/*! For license information please see main.0dae915e.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="75ca3073-54ed-4ebe-b93d-1579f3eb28c0",e._sentryDebugIdIdentifier="sentry-dbid-75ca3073-54ed-4ebe-b93d-1579f3eb28c0")}catch(e){}}(),(()=>{var e={21362:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},29522:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},69591:e=>{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},63882:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},38891:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},81370:(e,t,n)=>{var r=n(89299);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},96162:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},22781:(e,t,n)=>{var r=n(42187);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},42187:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},21344:(e,t,n)=>{var r=n(92218),i=n(21362);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},89299:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},92218:e=>{function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(r){return"function"===typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(r)}e.exports=n},92193:(e,t,n)=>{"use strict";function r(){const e=Date.now()+Math.random().toString(36);return{"x-request-id":e,"x-correlation-id":e}}function i(){return window.location.host.startsWith("localhost")}n.d(t,{a:()=>i,t:()=>r})},46038:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(85251),i=n(3308);class o{static authenticate(e){return i.Z.post("login",e)}static logout(e){return i.Z.get("logout",{params:{token:e}})}static googleAuth(e){return i.Z.get(`login/google/${e}`)}static agxAuth(e){return i.Z.get(`login/agx/${e}`)}static verifyEmailNew(e,t){return i.Z.post(`email-verification/${e}`,t)}static emailResetPassword(e){return i.Z.put("email-reset-password",{email:e})}static resetPassword(e){return i.Z.put("reset-password",e)}static updateUserPassword(e){return i.Z.put("profile/update-user-password",e)}static unImpersonateUser(){return(0,r.cW)(r.$$.IMPERSONATED_USER),i.Z.post("login/original_user",{params:{__skipPreloader:!0}})}}},79024:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>y,RN:()=>g,TI:()=>m,e0:()=>h,jv:()=>f});var r=n(66364),i=n(92480),o=n(37881),a=n(85251),s=n(37772),l=n(17859),c=n(39475),u=n(77440);const d=Object.keys(u.j),p=(e,t)=>{var n;return new URLSearchParams((null===(n=e.split("?"))||void 0===n?void 0:n[1])||"").has(t)};function h(e){var t,n,r;let a="";try{a=new URL(e.url).pathname.replace("/api/v1","")}catch(g){a=e.url.split("?")[0]}/^\//.test(a)&&(a=a.replace("/",""));let u=null;for(let o=0;o<d.length;o++){var h,f;const e=null===(h=d[o])||void 0===h||null===(f=h.split("?"))||void 0===f?void 0:f[0];if((0,i.Bo)(null!==e&&void 0!==e?e:"").exec(a)){u=d[o];break}}u||(u="development"===c.default.env?a:"");const m=(0,l._j)();return e.loadingURLPattern={key:m,pattern:u,skipPreloader:null===(t=e.params)||void 0===t?void 0:t.__skipPreloader},p(u,"skip")||null!==(n=e.params)&&void 0!==n&&n.__skipPreloader||!o.Z.dispatch||o.Z.dispatch((0,s.QP)(u,e.method,m)),null!==(r=e.params)&&void 0!==r&&r.__skipPreloader&&delete e.params.__skipPreloader,e}function f(e){if(e.config&&o.Z.dispatch){const{loadingURLPattern:t,method:n}=e.config;t.skipPreloader||o.Z.dispatch((0,s.Zk)(t.pattern,n,t.key))}return e}function m(e){var t;const n=(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.config)||(null===e||void 0===e?void 0:e.config);if(!r.default.isCancel(e)&&n&&o.Z.dispatch){const{loadingURLPattern:e,method:t}=n;e.skipPreloader||o.Z.dispatch((0,s.Zk)(e.pattern,t,e.key))}return e}function g(e){return r.default.isCancel(e)||401!==e.status||e.config.url.includes("/api/v1/profile")?e:new Promise(((t,n)=>{o.Z.dispatch((0,s.hE)(!0));(0,a.oi)(a.$$.TOKEN)&&o.Z.dispatch((0,s.IR)({config:e.config,resolve:t,reject:n}))}))}function y(e){var t,n;return!r.default.isAxiosError(e)||401!==(null===(t=e.response)||void 0===t?void 0:t.status)||null!==(n=e.response.config.url)&&void 0!==n&&n.includes("/api/v1/profile")?e:new Promise(((t,n)=>{var r;o.Z.dispatch((0,s.hE)(!0)),o.Z.dispatch((0,s.IR)({config:null===(r=e.response)||void 0===r?void 0:r.config,resolve:t,reject:n}))}))}},59556:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(55650),i=n(45718),o=n(39670);async function a(e){try{const t=await r.eV.getProjectContract(e),n=new Blob([t.data],{type:"application/pdf"}),i=window.URL.createObjectURL(n);window.open(i,"_blank"),o.Z.track("View contract")}catch(t){(0,i.e)(t)}}},55650:(e,t,n)=>{"use strict";n.d(t,{xq:()=>C,cf:()=>i,a0:()=>o,z9:()=>u.Z,Po:()=>a,Ti:()=>S,QF:()=>p,AG:()=>M,iP:()=>h,Ab:()=>l,be:()=>s,pZ:()=>y,eV:()=>g.ZP,sy:()=>w,iB:()=>b.i,ys:()=>_,Wj:()=>c,_u:()=>v});var r=n(3308);const i=class{static getGrowers(){return r.Z.get("sync/agworld/growers",{params:{__skipPreloader:!0}})}static syncGrowers(e,t,n){return r.Z.post("sync/agworld/import",e,{params:{__skipPreloader:!0,mrv_project_id:t,mrv_phase_id:n}})}static getFarms(e){return r.Z.get(`sync/agworld/growers/${e}/farms`,{params:{__skipPreloader:!0}})}static getFields(e){return r.Z.get(`sync/agworld/farms/${e}/fields`,{params:{__skipPreloader:!0}})}static getImportStatus(e){return r.Z.get(`sync/agworld/import/${e}`,{params:{__skipPreloader:!0}})}};const o=class{static syncV2(e,t){const n={__skipPreloader:!0};return t&&(n.mrv_project_id=t),r.Z.post("sync/agx",JSON.stringify(e),{params:n})}static getGrowers(){return r.Z.get("sync/agx/growers",{params:{__skipPreloader:!0}})}static getFarms(e){return r.Z.get(`sync/agx/grower/${e}/farms`,{params:{__skipPreloader:!0}})}static getFields(e,t){return r.Z.get(`sync/agx/grower/${e}/farm/${t}/fields`,{params:{__skipPreloader:!0}})}static saveZonesToAgX(e,t){return r.Z.post(`nrx/${e}`,t)}};class a{static getFarms(){return r.Z.get("sync/climate",{params:{__skipPreloader:!0}})}static syncFields(e,t,n){const i={__skipPreloader:!0};return t&&(i.mrv_project_id=t),n&&(i.mrv_phase_id=n),r.Z.post("sync/climate",`field_ids=${e.join(",")}`,{params:i})}static getSyncStatus(e){return r.Z.get(`sync/climate/status/${e}`,{params:{__skipPreloader:!0,include_summary:!0}})}static logOut(){return r.Z.delete("sync/climate/delete_user")}}class s{static getEntities(){return r.Z.get("sync/johndeere/entities",{params:{__skipPreloader:!0}})}static getOrganizations(){return r.Z.get("sync/johndeere/organizations",{params:{__skipPreloader:!0}})}static getClients(e){return r.Z.get(`sync/johndeere/organizations/${e}/clients`,{params:{__skipPreloader:!0}})}static getFarms(e,t){return r.Z.get(`sync/johndeere/organizations/${e}/clients/${t}/farms`,{params:{__skipPreloader:!0}})}static getFields(e,t){return r.Z.get(`sync/johndeere/organizations/${e}/farms/${t}/fields`,{params:{__skipPreloader:!0}})}static importData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Z.post("sync/johndeere/import",e,{params:{__skipPreloader:!0,importOperations:t}})}static importDataForMRV(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return r.Z.post("sync/johndeere/import",e,{params:{__skipPreloader:!0,mrv_project_id:t,mrv_phase_id:n,import_operations:i}})}static getImportStatus(e){return r.Z.get(`sync/johndeere/import/${e}`,{params:{__skipPreloader:!0}})}static logOut(){return r.Z.delete("sync/johndeere/delete_user")}}class l{static getAuthorizedPlatforms(){return r.Z.get("sync/connected_integrations",{params:{__skipPreloader:!0}})}}class c{static getProfile(){return r.Z.get("profile")}static update(e){return r.Z.put("profile",e)}static updatePassword(e){return r.Z.put("profile/updatePassword",e)}static updateProfileSettings(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Z.put("profile",e,{params:{__skipPreloader:t}})}static updateDemoFarmsList(e){return r.Z.put("demoFarms",e)}static accessRoles(e){return r.Z.get(`users/${e}/access_roles`)}}var u=n(46038),d=n(46386);class p{static getFarmsList(){return r.Z.get("groups",{params:{__skipPreloader:!0,page:1,per_page:5e4}})}static getFarmById(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Z.get(`groups/${e}`,{params:{__skipPreloader:t}})}static saveFarm(e){return r.Z.post("groups",e)}static updateFarm(e){return r.Z.put(`groups/${e.id}`,e)}static removeFarm(e){return r.Z.delete(`groups/${e}`)}static saveFields(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?d.O_:d.N;return r.Z.post(`files/kml?max_area_ha=${t}`,e)}}class h{static getFieldGeometriesByMD5s(e){return r.Z.post("fields/geometries",{md5s:e})}}var f=n(66364);const m=new class{constructor(){this.sources={}}generateSource(e){const t=f.default.CancelToken.source();return e&&this.setSource(e,t),t}setSource(e,t){this.sources[e]=t}cancel(e){var t;this.sources[e]&&(null===(t=this.sources[e])||void 0===t||t.cancel(`__canceled: ${e}`),delete this.sources[e])}};var g=n(62213);class y{static getList(e,t){return r.Z.get("dashboard",{params:{page:e,per_page:t}})}static getFileList(e,t){return r.Z.get(`kml/${e}`,{params:{__skipPreloader:!0,all:null!==t&&void 0!==t&&t.getAllLayers?"1":void 0,include_deleted:null!==t&&void 0!==t&&t.includeDeleted?"1":void 0,project_id:null===t||void 0===t?void 0:t.projectId}})}static saveData(e,t,n,i){return r.Z.put(`kml/${e}/${t}`,n,{params:{project_id:i}})}static downloadKml(e,t,n){return r.Z.post(`files/kml/${t}/download?name=Boundary_${encodeURIComponent(n)}`,e,{responseType:"blob"})}static removeKMLGroup(e,t){return r.Z.delete(`/kml/${e}/${t}`)}static getFieldsBoundariesFromBoundaryService(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;m.cancel("loadBoundariesFrommBoundaryService");const i=m.generateSource("loadBoundariesFrommBoundaryService"),o=`bbox=${e.join("&bbox=")}`;return r.Z.post(`${g.OL}/fields/land-units?${o}`,{exclude_field_ids:t,cancelToken:i.token,program_id:n})}}class v{static getAll(){return r.Z.get("admin/users",{params:{__skipPreloader:!0}})}static getOne(e){return r.Z.get(`admin/users/${e}`,{params:{__skipPreloader:!0}})}static newUser(e){return r.Z.post(`admin/users/${e.id}`,e)}static saveUser(e){return r.Z.put(`admin/users/${e.id}`,e)}static rm(e){return r.Z.delete(`admin/users/${e}`)}static updateWorkspaces(e,t){return r.Z.post(`admin/users/${e}/workspaces`,t,{params:{__skipPreloader:!0}})}}var b=n(72536);class _{static getUserActivityList(){return r.Z.get("admin/users/access_summaries",{params:{__skipPreloader:!0}})}static getSummary(e){return r.Z.get("admin/users/access_summaries",{params:{__skipPreloader:!0,just_summary:1,ids:e.join(",")}})}}class w{static loadSubscriptions(){return r.Z.get("subs")}static loadOrganizations(e){return r.Z.get(e?`subs/${e}/orgs`:"orgs")}static loadFarms(e){return r.Z.get(e?`orgs/${e}/farms`:"farms/access_metrics")}static createOrganization(e,t){return r.Z.post(`subs/${e}/orgs`,t)}static addFarm(e){return r.Z.put("farms/orgs",e)}static loadAllOrganizations(){return r.Z.get("orgs")}}var x=n(85251),k=n(62293);class C{static search(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m.cancel(`adminSearchEntity${t}`);const i=m.generateSource(`adminSearchEntity${t}`),o={...n};var a,s;n[k.vA.Years]&&(o[k.vA.Years]=(null!==(a=n[k.vA.Years])&&void 0!==a?a:[]).join(","));n[k.vA.Crops]&&(o[k.vA.Crops]=(null!==(s=n[k.vA.Crops])&&void 0!==s?s:[]).join(","));return r.Z.get("admin/fields/search",{cancelToken:i.token,params:{page:1,per_page:2e3,__skipPreloader:!0,q:e,fields:t,...o}})}static emailsToReview(){return r.Z.get("admin/emails/to_review")}static getRegions(){return r.Z.get("admin/regions")}static getCountries(){return r.Z.get("admin/regions")}static impersonateAsUser(e){return(0,x.yP)(x.$$.IMPERSONATED_USER,`${e}`),r.Z.get(`admin/users/${e}/impersonate`)}static updateCrop(e){return r.Z.post("crops",e)}}class S{static getMatchingRules(){return r.Z.get("crop_matching_rules",{params:{__skipPreloader:!0}})}static getUnmatchedCrops(){return r.Z.get("seasons/unmatched_crops",{params:{__skipPreloader:!0}})}static updateRule(e){return r.Z.put(`crop_matching_rules/${e.id}`,e)}static createRule(e){return r.Z.post("crop_matching_rules",e)}static applyRule(e){return r.Z.get(`seasons/match_crops/${e}`)}}const M=class{static getBoundaryConfigLabels(){return r.Z.get(`${g.OL}/programs/boundary-rule-configs/labels`)}static getBoundaryConfigRulesForProgram(e){return r.Z.get(`${g.OL}/programs/${e}/boundary-rule-configs/`)}static createBoundaryConfigRulesForProgram(e,t){return r.Z.post(`${g.OL}/programs/${e}/boundary-rule-configs/`,t)}static updateBoundaryConfigRule(e,t){return r.Z.patch(`${g.OL}/programs/${e}/boundary-rule-configs/${t.db_id}`,{params:{__skipError:!0},...t})}static deleteBoundaryConfigRule(e,t){return r.Z.delete(`${g.OL}/programs/${e}/boundary-rule-configs/${t}`)}}},26104:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(3308);class i{static getFarms(){return r.Z.get("sync/agriwebb/farms",{params:{__skipPreloader:!0}})}static syncFields(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return r.Z.post("sync/agriwebb/import",{farms:e,fields:t},{params:{__skipPreloader:!0,mrv_project_id:i,mrv_phase_id:n}})}static getSyncStatus(e){return r.Z.get(`sync/agriwebb/import/${e}`,{params:{__skipPreloader:!0}})}}},75573:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(3308);class i{static getEntities(){return r.Z.get("sync/smag/entities",{params:{__skipPreloader:!0}})}static syncFields(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return r.Z.post("sync/smag/import",{farms:e,fields:t},{params:{__skipPreloader:!0,mrv_project_id:i,mrv_phase_id:n}})}static getSyncStatus(e){return r.Z.get(`sync/smag/import/${e}`,{params:{__skipPreloader:!0}})}}},43230:(e,t,n)=>{"use strict";n.d(t,{v:()=>d});n(18178);var r=n(30057),i=n(50707),o=n(77140),a=n(67925),s=n(83312),l=n(5651);const c=()=>(0,l.jsx)("span",{children:(0,l.jsx)(r._H,{id:"doNotHaveAccessToTheFarm",values:{a:e=>(0,a.Bv)(e)},defaultMessage:"You don\u2019t have access to this farm, make sure the URL you entered is correct or contact <a>the support team</a>."})}),u={"User not found":()=>({title:s.NW.formatMessage({id:"note.wrongEmailOrPassword",defaultMessage:"Wrong email or password."}),message:s.NW.formatMessage({id:"tryAgainLogin",defaultMessage:"Try again or click Forgot password to reset it."})}),"Email address not found":()=>({title:s.NW.formatMessage({id:"wrongEmail",defaultMessage:"Wrong email"}),message:s.NW.formatMessage({id:"emailNotFound",defaultMessage:"Email address not found"})}),"This email address is already registered. You can reset your password using the sign-in page.":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:(0,l.jsx)(r._H,{id:"note.alreadyRegistered",defaultMessage:"The request couldn\u2019t be completed. Please get in touch with {email}",values:{email:(0,l.jsx)(i.Ln,{href:"mailto:support@regrow.ag",children:"support@regrow.ag"})}})}),"Group not found":()=>({title:s.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:(0,l.jsx)(c,{})}),"You do not have access to the farm":()=>({title:s.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:(0,l.jsx)(c,{})}),"Season dates overlap":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:s.NW.formatMessage({id:"datesOverlap",defaultMessage:"The selected dates are overlapping with another season, please change the dates so they don't overlap"}),type:"warning"}),"User already exists.":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:s.NW.formatMessage({id:"userAlreadyExist",defaultMessage:"User with this email already exists."}),type:"warning"}),"Could not generate second contract.":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:(0,l.jsx)(r._H,{id:"carbon.contractAlreadyGenerated",defaultMessage:"You already generated a contract. If you need to make changes to the contract, please contact {email}.",values:{email:(0,l.jsx)(i.Ln,{href:"mailto:support@regrow.ag",children:"support@regrow.ag"})}}),type:"warning"}),"Fields intersects.":()=>({title:s.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:"Some of your fields overlap, please make sure they don\u2019t overlap before you confirm your selection.",type:"error"}),"you do not have access to this program":()=>({title:s.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:"You don't have enough permissions to impersonate this user",type:"error"}),"user is not producer in program":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:"You can't impersonate an admin user.",type:"warning"}),"a user is super-admin":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:"You can't invite a super-admin to a program.",type:"warning"}),"Missing contact details: Please ensure your address and contact details are filled in your <a href='/profile?tab=profile'>profile<a> before signing your contract.":()=>({title:s.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:(0,l.jsxs)(l.Fragment,{children:["Missing contact details: Please ensure your address and contact details are filled in your"," ",(0,l.jsx)("span",{className:"global-link",onClick:e=>{e.preventDefault(),(0,o.m)("profile-dialog","true")},children:"profile"})," ","before signing your contract."]}),type:"warning"}),"Some fields are not in the allowed region":()=>({title:s.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:s.NW.formatMessage({id:"Some fields are not in the allowed region",defaultMessage:"Some fields are not in the allowed region"}),type:"error"})},d=e=>{var t;return null===(t=u[(e=>{if("string"!==typeof e||!e)return e;switch(!0){case null===e||void 0===e?void 0:e.includes("season dates overlap with another season"):return s.NW.formatMessage({id:"datesOverlap",defaultMessage:"The selected dates are overlapping with another season, please change the dates so they don't overlap"});case new RegExp("User [0-9]+ is already an Admin.").test(e):return"a user is super-admin";default:return e}})(e)])||void 0===t?void 0:t.call(u)}},62213:(e,t,n)=>{"use strict";n.d(t,{Nd:()=>h,OL:()=>p,ZP:()=>y,eV:()=>m,gu:()=>g});var r=n(66364),i=n(85251),o=n(13065),a=n(43033),s=n(17859),l=n(57550),c=n(39475),u=n(92964),d=n(3308);const p="mrv",h="/users/recent-programs",f=`${p}/static`;class m{static getProgramDump(e,t,n,r,i){return d.Z.get(`${p}/programs/${e}/dump_program_data`,{params:{deleted_fields:t,deleted_projects:n,reporting_enabled:r,values_source:i},responseType:"blob"}).then((t=>(0,a.Sv)(t.data,`${e}_program_dump.zip`,a.HY.ApplicationZIP)))}static requestProgramDumpNew(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return d.Z.get(`${p}/programs/${e}/export/all_data_export`,{params:{include_deleted_fields:t,include_deleted_projects:n,include_reporting_disabled:r}})}static getPresignedUrl(e){return d.Z.get(`${p}/programs/${e}/export/get_export_file`)}static fetchDumpFile(e,t){return r.default.get(e,{responseType:"blob"}).then((e=>{let{data:n}=e;return(0,a.Sv)(n,t,a.HY.ApplicationZIP)}))}static getAllProgramContracts(e){return d.Z.get(`${p}/programs/${e}/export_program_contract`,{responseType:"blob"}).then((t=>(0,a.Sv)(t.data,`${e}_program_dump.zip`,a.HY.ApplicationZIP)))}static getProgram(e){return d.Z.get(`${p}/programs/${e}`)}static addProgram(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return d.Z.post(`${p}/programs`,[e],{params:{ebdc_stages:String(t)}})}static updateProgram(e){const t={...e};return delete t.phases,d.Z.patch(`${p}/programs/${t.id}`,t)}static removeProgram(e){return d.Z.delete(`${p}/programs/${e}`)}static fetchProgramStage(e,t,n){return d.Z.get(`${p}/programs/${e}/phases/${t}/stages/${n}`)}static addStage(e,t,n){return d.Z.post(`${p}/programs/${e}/phases/${t}/stages`,[{...n,name:""}])}static removeStage(e,t,n){return d.Z.delete(`${p}/programs/${e}/phases/${t}/stages`,{data:[n]})}static updateStage(e,t,n,r){return d.Z.patch(`${p}/programs/${e}/phases/${t}/stages/${n}`,r)}static updateStages(e,t,n){return d.Z.patch(`${p}/programs/${e}/phases/${t}/stages`,n)}static addAttributes(e,t,n){return d.Z.post(`${p}/programs/${e}/phases/${t}/attributes`,n)}static updateAttribute(e,t,n,r){return d.Z.patch(`${p}/programs/${e}/phases/${t}/attributes/${n}`,r)}static updateAttributes(e,t,n){return d.Z.patch(`${p}/programs/${e}/phases/${t}/attributes`,n)}static removeAttribute(e,t,n){return d.Z.delete(`${p}/programs/${e}/phases/${t}/attributes`,{data:[n]})}static getStageIcons(){return d.Z.get(`${p}/programs/stage_icons`)}static getIconUrl(e){return`${c.default.baseUrl}api/v1/${p}${e}`}static getStageCompletion(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return d.Z.get(`${p}/projects/${e}/stages/${t}/completion`,{params:{include_validations:n}})}static createRecordYears(e){return d.Z.post(`${p}/projects/${e}/record_years`,{params:{__skipError:!0}})}static updateEntityValues(e,t,n){return d.Z.put(`${p}/projects/${e}/entities/values`,t,{params:{completion_stats:!1,...n}})}static removeProjectValues(e,t,n,r){return d.Z.delete(`${p}/projects/${e}/entities/values?completion_stats=true&entity_type=${n}`,{data:t,params:{include_validations:r}})}static addProjectFields(e,t){const n=(0,l.vv)("rerunOptis");return d.Z.post(`${p}/projects/${e}/fields`,t,{params:{undelete:!0,...n?{rerun_optis:!0}:{}}})}static removeProjectFields(e,t){return d.Z.delete(`${p}/projects/${e}/fields`,{data:t})}static getProject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.Z.get(`${p}/projects/${e}`,{params:{include_core_attributes:!0,include_user_sync_info:!1,...t}})}static updateProject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.Z.patch(`${p}/projects/${e}`,{...t})}static inviteMRVProducer(e){return d.Z.post(`${p}/invites`,{invites:(0,u.CZ)(e),role_id:e.role_id,role_type:e.role_type})}static addMRVProducer(e){return d.Z.post(`${p}/projects/new_user`,e)}static async inviteMRVProgramAdmin(e){const t=(0,u.CZ)(e);return e.restriction_values&&e.restriction_values.length>0&&await Promise.all(t.map((async(n,r)=>{let{program_id:i}=n;const{data:o}=await m.createUserRestriction({programId:i,input:{type:e.restriction_type,values:e.restriction_values,restriction_source_id:e.restriction_source_id}}),a=t[r];a&&(a.params={...a.params,restriction_ids:[o.id]})}))),d.Z.post(`${p}/invites`,{invites:t,role_id:e.role_id,role_type:e.role_type})}static getNewUserData(e){return d.Z.get(`mrv-sign-up/uuid/${e}`)}static signUpNewMRVUser(e,t){return d.Z.post(`mrv-sign-up/uuid/${t}`,e)}static selfRegisterNewUser(e,t){return d.Z.post(`mrv-sign-up/program/${t}`,e)}static enrollUserToProgram(e){return d.Z.post(`${p}/program_codes/${e}/enrol`)}static deleteProgramAdmin(e,t){return d.Z.delete(`${p}/programs/${e}/users`,{data:[t]})}static getProgramAdmins(e,t){return void 0!==t&&null!==t&&""!==t?d.Z.get(`${p}/programs/${e}/admins/search?query_string=${t}`):d.Z.get(`${p}/programs/${e}/admins/search`)}static programAdminsDoGet(e,t){return d.Z.get(`${p}/programs/${e}/admins/${t}`)}static programAdminsDoPatch(e,t,n){return d.Z.patch(`${p}/programs/${e}/admins/${t}`,n)}static updateProgramAdminRole(e,t,n,r){return d.Z.put(`${p}/programs/${e}/users/${t}/role`,{role_name:n,role_id:r})}static deleteProjectProducer(e,t){return d.Z.delete(`${p}/projects/${e}/users`,{data:[t]})}static impersonateProducer(e,t){return(0,i.yP)(i.$$.IMPERSONATED_USER,`${t}`),d.Z.post(`${p}/programs/${e}/users/${t}/impersonate`,{})}static getUserPermissions(){return d.Z.get("mrv/user")}static addProgramPhase(e,t){const n=Object.assign((0,u.Bp)(t.type_,t.start_date,t.end_date),t);return d.Z.post(`${p}/programs/${e}/phases`,{...n,name:t.type_})}static updateProgramPhase(e,t,n){return d.Z.patch(`${p}/programs/${e}/phases/${t}`,n)}static addProgramAssets(e,t){return d.Z.post(`${p}/programs/${e}/assets`,t)}static removeProgramAssets(e,t){return d.Z.delete(`${p}/programs/${e}/assets`,{data:t})}static addProgramPracticeChanges(e,t){return d.Z.post(`${p}/programs/${e}/practice_changes`,t)}static removeProgramPracticeChanges(e,t){return d.Z.delete(`${p}/programs/${e}/practice_changes`,{data:t})}static getInfoPracticeChanges(){return d.Z.get(`${p}/programs/practice_changes`)}static getPracticeIconUrl(e){return`${c.default.baseUrl}api/v1/${f}/practice_changes/${e}`}static addCropType(e,t){return d.Z.post(`${p}/programs/${e}/crop_types?program_id=${e}`,t)}static removeCropType(e,t){return d.Z.delete(`${p}/programs/${e}/crop_types?program_id=${e}`,{data:t})}static getProgramSelfRegisterConfig(e){return d.Z.get(`mrv-sign-up/program/${e}`)}static callDocusignCallBack(e){let{state:t,code:n}=e;return d.Z.get(`${p}/docusign/callback?state=${t}&code=${n}`)}static generateProjectContract(e){let{projectId:t,phaseId:n,redirect_url:r}=e;return d.Z.post(`${p}/projects/${t}/phases/${n}/contract`,{redirect_url:r})}static getContractAttributes(e){let{programId:t,phaseId:n}=e;return d.Z.get(`${p}/programs/${t}/phases/${n}/contract/attributes`)}static updateContractAttributes(e){let{programId:t,phaseId:n,attributeIds:r}=e;return d.Z.put(`${p}/programs/${t}/phases/${n}/contract/attributes`,r)}static uploadEnrollmentContractTemplate(e,t){const n=new FormData;return n.append("file",t),d.Z.post(`${p}/docusign/contract_template/phases/${e}`,n)}static getEnrollmentContractTemplate(e){return d.Z.get(`${p}/docusign/contract_template/phases/${e}`)}static deleteEnrollmentContractTemplate(e){return d.Z.delete(`${p}/docusign/contract_template/phases/${e}`)}static requestEnrollmentContractRemoving(e,t){return d.Z.post(`${p}/projects/${e}/contract/deletion_request`,{deletion_reason:t})}static getProjectContract(e){return d.Z.get(`${p}/projects/${e}/contract`,{responseType:"blob"})}static deleteProjectContract(e){return d.Z.delete(`${p}/projects/${e}/contract`)}static updateDocusignContractStatus(e){let{projectId:t,event:n}=e;return d.Z.get(`${p}/projects/${t}/docusign/callback?event=${n}&include_dndc_status=true&include_ofs_status=true`)}static getRegionsByName(e,t){return d.Z.get(`${p}/regions/names?name_filter=${e}&state_name_filter=${t}`)}static getRegionGeometry(e){return d.Z.post(`${p}/regions/filter`,{...e,ids:e.id?[e.id]:[]})}static getProgramBoundaries(e){return d.Z.get(`${p}/programs/${e}/boundaries`)}static updateProgramBoundaries(e,t){return d.Z.put(`${p}/programs/${e}/boundaries`,t)}static getUrlToUploadEnrollmentImage(e,t,n){return d.Z.post(`mrv/programs/${e}/upload_blob/${t}`,{blob_extension:null===n||void 0===n?void 0:n.replace("image/","")})}static uploadEnrollmentImage(e,t){return r.default.put(e,t,{headers:{"Content-Type":"application/octet-stream"}})}static getProjectNotifications(e){return d.Z.get(`${p}/projects/${e}/notifications`)}static deleteProjectNotifications(e,t){return d.Z.post(`${p}/projects/${e}/notifications/dismiss`,{data:{notification_ids:t}})}static getProgramNotifications(e){return d.Z.get(`${p}/programs/${e}/notifications`)}static deleteProgramNotifications(e,t){return d.Z.post(`${p}/programs/${e}/notifications/dismiss`,{data:{notification_ids:t}})}static getStageEligibilityMethods(e){return d.Z.get(`${p}/programs/${e}/eligibility_methods`)}static getStageEligibility(e,t){return d.Z.get(`${p}/projects/${e}/stages/${t}/eligibility`)}static getDNDCResults(e,t){return d.Z.post(`${p}/projects/${e}/phases/${t}/commercials`,null)}static runDNDC(e,t){return d.Z.post(`${p}/projects/${e}/run_dndc`,{field_ids:t})}static exploreSubmitProject(e,t){return d.Z.post(`${p}/modeling/explore/submit-project`,{project_id:e,field_ids:t})}static validateCargill(e){return d.Z.get(`${p}/validate-cargill?id=${e}`)}static renewProgramInvite(e){return d.Z.post(`${p}/invites/renew/${e}`)}static getProgramInvites(e){return d.Z.get(`${p}/programs/${e}/invites`)}static getSurvey(e,t){return d.Z.get(`${p}/projects/${e}/stages/${t}/survey`)}static postSurvey(e,t,n){const r=n?`?submission_id=${n}`:"";return d.Z.post(`${p}/projects/${e}/stages/${t}/survey${r}`)}static getCommercialRulePaymentTypes(e){return d.Z.get(`${p}/programs/${e}/phases/commercials/payment_types`)}static getCommercialRules(e){let{programId:t,phaseId:n}=e;return d.Z.get(`${p}/programs/${t}/phases/${n}/commercials`)}static createCommercialRule(e){let{programId:t,phaseId:n,commercialRule:r}=e;return d.Z.post(`${p}/programs/${t}/phases/${n}/commercials`,[r])}static updateCommercialRule(e){let{programId:t,phaseId:n,commercialRule:r}=e;return d.Z.patch(`${p}/programs/${t}/phases/${n}/commercials/${r.id}`,r)}static deleteCommercialRule(e){let{programId:t,phaseId:n,commercialRuleId:r}=e;return d.Z.delete(`${p}/programs/${t}/phases/${n}/commercials`,{data:[r]})}static createProgramConflicts(e){return d.Z.post(`${p}/programs/${e}/conflicts`,null)}static getCubeQueryCSV(e,t,n){return d.Z.post(`${p}/programs/${e}/reporting_dashboards/csv`,{query:t,title_map:n},{responseType:"text"})}static getCustomRegistrationInput(e){let{programId:t}=e;return d.Z.get(`${p}/programs/${t}/custom_inputs`)}static addCustomRegistrationInput(e){let{registrationInput:t,programId:n}=e;return d.Z.post(`${p}/programs/${n}/custom_inputs`,[t])}static getHistories(e,t){return d.Z.get(`${p}/projects/${e}/conflicts/${t}/resolution`)}static updateCustomRegistrationInput(e){let{registrationInput:t,programId:n}=e;return d.Z.put(`${p}/programs/${n}/custom_inputs`,[t])}static deleteCustomRegistrationInput(e){let{inputId:t,programId:n}=e;return d.Z.delete(`${p}/programs/${n}/custom_inputs`,{data:[t]})}static createMrvProjectCustomInputsValue(e){let{projectId:t,input:n}=e;return d.Z.post(`${p}/projects/${t}/values`,[n])}static updateMrvProjectCustomInputsValue(e){let{projectId:t,input:n}=e;return d.Z.put(`${p}/projects/${t}/values`,[n])}static validateValues(e,t){return d.Z.post(`${p}/programs/${e}/values/validate`,t,{params:{__skipPreloader:!0}})}static importCSV(e,t,n){return d.Z.post(`${p}/projects/${e}/stages/${t}/csv_import`,n.map((e=>({...e,field_id:Number(e.field_id)||null}))),{params:{__skipPreloader:!0}})}static fetchCredentials(){return d.Z.get(`${p}/docusign/credentials`)}static fetchCropTypes(e){let{program_id:t,phase_id:n,stage_id:r,attribute_id:i}=e;return d.Z.get(`${p}/programs/${t}/phases/${n}/stages/${r}/attributes/${i}/crop_types`)}static fetchMeasureAPIEnabledCrops(e){return d.Z.get(`${p}/default_crops`,{params:{phase_type:e}})}static deleteCropType(e){let{program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o}=e;return d.Z.delete(`${p}/programs/${t}/phases/${n}/stages/${r}/attributes/${i}/crop_types`,{data:o})}static addNewCropType(e){let{program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o}=e;return d.Z.post(`${p}/programs/${t}/phases/${n}/stages/${r}/attributes/${i}/crop_types`,o)}static bulkGetProjectConflictFiles(e,t){return d.Z.get(`${p}/projects/${e}/conflicts/files`,{params:{conflict_ids:t.join(",")}})}static bulkGetUrlsToUploadProjectConflictFiles(e,t,n){return d.Z.post(`${p}/projects/${e}/conflicts/files`,{conflict_ids:t,file_names:n})}static markFilesAsUploaded(e,t,n){return d.Z.put(`${p}/projects/${e}/conflicts/${t}/files`,n.map((e=>({id:e,is_uploaded:!0}))))}static getConflictsMetadata(e){return d.Z.get(`${p}/projects/${e}/conflicts/status`)}static updateConflictsMetadata(e,t){return d.Z.patch(`${p}/projects/${e}/conflicts/status`,t)}static updateConflictNotes(e){let{projectId:t,conflictId:n,notes:r}=e;return d.Z.patch(`${p}/projects/${t}/conflicts/${n}/notes`,{notes:r})}static bulkDeleteProjectConflictFile(e,t,n){return d.Z.delete(`${p}/projects/${e}/conflicts/files`,{data:{conflict_ids:t,file_ids:n}})}static bulkModifyConflictValues(e,t,n){return d.Z.patch(`${p}/projects/${e}/conflicts/bulk/value`,{conflict_ids:t,new_value:n})}static bulkUpdateFieldsFarm(e){let{projectId:t,field_data:n,target_farm_id:r}=e;return d.Z.put(`${p}/projects/${t}/fields/update_farm_id`,{field_data:n,target_farm_id:r})}static updateFarm(e){let{projectId:t,mrvFarmId:n,farm:r}=e;return d.Z.patch(`${p}/projects/${t}/farms/${n}`,r)}static deleteFarm(e){let{projectId:t,mrvFarmId:n}=e;return d.Z.delete(`${p}/projects/${t}/farms`,{data:[n]})}static updateMob(e){let{projectId:t,mobId:n,mobName:r}=e;return d.Z.patch(`${p}/projects/${t}/mobs/${n}`,{mob_name:r})}static createMobs(e){let{projectId:t,mobNames:n}=e;return d.Z.post(`${p}/projects/${t}/mobs`,{mob_names:n})}static deleteMobs(e){let{projectId:t,mobIds:n}=e;return d.Z.delete(`${p}/projects/${t}/mobs`,{data:n})}static fetchUserRestriction(e){let{programId:t,restrictionId:n}=e;return d.Z.get(`${p}/programs/${t}/user_restrictions/${n}`)}static createUserRestriction(e){let{programId:t,input:n}=e;return d.Z.post(`${p}/programs/${t}/user_restrictions`,n)}static updateUserRestriction(e){let{programId:t,input:n}=e;return d.Z.patch(`${p}/programs/${t}/user_restrictions/${n.id}`,(0,s.CE)(n,["id"]))}static deleteUserRestriction(e){let{programId:t,id:n}=e;return d.Z.delete(`${p}/programs/${t}/user_restrictions/${n}`)}static getAttributeOptionDefaults(e){return d.Z.get(`${p}/attribute_options_default/${e}`)}static downloadProjectCSVTemplate(e,t,n){return d.Z.get(`${p}/projects/${e}/stages/${t}/csv_import/template`,{responseType:"text",params:{separator:(0,o.Vd)(n)}})}static getDocuments(){return d.Z.get(`${p}/documents`)}static getDocument(e){return d.Z.get(`${p}/documents/${e}`)}static createDocument(e){return d.Z.post(`${p}/documents`,e)}static updateDocument(e,t){return d.Z.patch(`${p}/documents?document_id=${e}`,t)}static deleteDocument(e){return d.Z.delete(`${p}/documents?document_id=${e}`)}static replaceDocument(e,t){return d.Z.post(`${p}/documents/replace`,{query:[{document_ids:[e],values:Object.fromEntries(Object.entries(t).filter((e=>{let[t,n]=e;return void 0!==n&&null!==n})))}]})}static getDocumentUsers(e){return d.Z.get(`${p}/documents/${e}/users`)}static getProgramDocuments(e){let{programId:t}=e;return d.Z.get(`${p}/documents/program/${t}`)}static getUnauthenticatedDocuments(){return d.Z.get(`${p}/documents/public`)}static getUnauthenticatedProgramDocuments(e){let{programCode:t,programId:n}=e;if(!t&&!n)throw new Error("programCode or programId must be provided");return d.Z.get(`${p}/documents/program/public`,{params:{program_code:t,program_id:n}})}static associateProgramWithDocument(e){let{programId:t,documentId:n}=e;return d.Z.patch(`${p}/documents/program/${t}?document_id=${n}`)}static disassociateProgramWithDocument(e){let{programId:t,documentId:n}=e;return d.Z.patch(`${p}/documents/program/${t}?document_id=${n}&disassociate=true`)}static getDocumentsForUser(e){let{userId:t}=e;return d.Z.get(`${p}/documents/user/${t}`)}static getPendingDocuments(){return d.Z.get(`${p}/documents/pending`)}static postUserAgreeDocuments(e){let{documentIds:t}=e;return d.Z.post(`${p}/documents/agree`,[...t])}static postUserDeclineDocuments(e){let{documentIds:t}=e;return d.Z.post(`${p}/documents/decline`,[...t])}static getUniqueDocuments(e){let{field:t,category:n}=e;return d.Z.get(`${p}/documents/unique?field_name=${t}&category=${n}`)}static getStageTypes(){return d.Z.get(`${p}/programs/stage_types`)}static getDocusignTemplateData(e){return d.Z.get(`${p}/docusign/contract_template/phases/${e}/data`)}static createDocusignTemplateData(e,t){return d.Z.post(`${p}/docusign/contract_template/phases/${e}/noblob`,t)}static updateDocusignTemplateData(e,t){return d.Z.patch(`${p}/docusign/contract_template/phases/${e}`,t)}static completeProjectPhase(e,t){return d.Z.put(`${p}/projects/${e}/phases/${t}/completion`)}static undoCompleteProjectPhase(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return d.Z.put(`${p}/projects/${e}/phases/${t}/undo_completion`,void 0,{params:{allow_post_close_edit:n}})}static updateFieldBoundary(e,t){return d.Z.patch(`${p}/projects/${e}/update_field_boundary`,t,{validateStatus:d.m})}static postAttributesPrefill(e,t){return d.Z.post(`${p}/stages/${e}/attributes/prefill`,{prefill_config:t})}static lockProgram(e){return d.Z.post(`${p}/programs/${e}/lock`)}static unlockProgramForUser(e,t,n){return d.Z.post(`${p}/programs/${e}/unlock`,{reason:t,full_unlock:n})}static fetchProgramUnlockHistory(e){return d.Z.get(`${p}/programs/${e}/unlock/history`)}static fetchProgramProjectsFarmsFields(e,t){return d.Z.get(`${p}/programs/${e}/projects_farms_fields_for_overwrite`,{params:{phase_type:t}})}static overwriteFieldsValuesInProjects(e){let{program_id:t,phase_type:n,source_field_id:r,target_project_ids:i}=e;return d.Z.post(`${p}/fields/multiple_projects_values/overwrite`,{program_id:t,phase_type:n,source_field_id:r,target_project_ids:i})}static overwriteFieldsValuesInProject(e){let{program_id:t,phase_type:n,source_field_id:r,target_field_ids:i,target_stage_ids:o}=e;return d.Z.post(`${p}/fields/single_project_values/overwrite`,{program_id:t,phase_type:n,source_field_id:r,target_field_ids:i,target_stage_ids:o})}static getProgramModelingConfiguration(e){return d.Z.get(`${p}/programs/${e}/modeling-configuration`)}static patchConsumerId(e,t){return d.Z.patch(`${p}/programs/${e}/modeling-configuration`,{consumer_id:t})}static associateConsumerId(e,t){return d.Z.post(`${p}/programs/${e}/modeling-configuration`,{program_id:e,consumer_id:t,intentions_data_collection_style:"events"})}static addRecentProgram(e){let{program_id:t,project_id:n}=e;return d.Z.post(`${p}${h}`,{program_id:t,project_id:n})}static updateProjectGroups(e){let{projectId:t,groupIds:n}=e;return d.Z.post(`${p}/projects/${t}/user_groups`,{group_ids:n})}}m.enrollUserToProgramExceptionTypes={ALREADY_ENROLLED:"User already enrolled in program.",ENROLLMENT_CLOSED:"Enrolment or self enrol is closed.",PROGRAM_ID_MISSING:"Program ID missing from program code?",USER_ID_HEADER_MISSING:"UserID header missing."},m.getFmsOptions=()=>d.Z.get(`${p}/programs/fms_options`),m.getProtocols=()=>d.Z.get(`${p}/programs/protocols`),m.addFmsOptions=e=>{let{programId:t,option:n}=e;return d.Z.post(`${p}/programs/${t}/fms_options`,Array.isArray(n)?n:[n])},m.deleteFmsOptions=e=>{let{programId:t,option:n}=e;return d.Z.delete(`${p}/programs/${t}/fms_options`,{data:Array.isArray(n)?n:[n]})},m.features={featuresDoList:()=>d.Z.get(`${p}/features`),featuresDoUpdate:e=>d.Z.put(`${p}/features`,e),featuresDoCreate:e=>d.Z.post(`${p}/features`,e),featuresDoDescribe:e=>d.Z.options(`${p}/features?feature_id=${e}`),featuresDoPartialUpdate:e=>d.Z.patch(`${p}/features/${e.id}`,e),featuresDoListPublic:()=>d.Z.get(`${p}/features/public`),featuresDoRead:e=>d.Z.get(`${p}/features/${e}`),featuresDoDelete:e=>d.Z.delete(`${p}/features/${e}`)},m.groups={userGroupsDoSearch(e){let{programId:t,query:n}=e;return d.Z.get(`${p}/programs/${t}/user_groups/search${n?`?query_string=${n}`:""}`)},userGroupsDoCreate:(e,t)=>d.Z.post(`${p}/programs/${e}/user_groups`,t),userGroupsDoRead(e){let{programId:t,userGroupId:n}=e;return d.Z.get(`${p}/programs/${t}/user_groups/${n}`)},userGroupsDoDelete(e){let{programId:t,userGroupId:n}=e;return d.Z.delete(`${p}/programs/${t}/user_groups/${n}`)},userGroupsDoPartialUpdate(e){let{programId:t,userGroupId:n,data:r}=e;return d.Z.patch(`${p}/programs/${t}/user_groups/${n}`,r)},userGroupsDoReadStatistics(e){let{programId:t,groupId:n}=e;return d.Z.get(`${p}/programs/${t}/user_groups/${n}/statistics`)},adminGroupsGetGroupsForAdmin(e){let{programId:t,userId:n}=e;return d.Z.get(`${p}/programs/${t}/admin_groups/${n}`)},adminGroupsUpdateGroupsForAdmin(e){let{programId:t,userId:n,data:r}=e;return d.Z.post(`${p}/programs/${t}/admin_groups/${n}`,r)}};let g=function(e){return e.NeedsReview="NEEDS_REVIEW",e.InProgress="IN_PROGRESS",e.Done="DONE",e}({});const y=m},43199:(e,t,n)=>{"use strict";n.d(t,{Kk:()=>a,N_:()=>r,sy:()=>i,u9:()=>o});let r=function(e){return e.TONS_CO2E="Tons CO2e",e.HECTARES="hectares",e.FIELD_AREA="FIELD_AREA",e}({}),i=function(e){return e.agreeWithRegrow="agreed_with_regrow",e.agreeWithProducer="agreed_with_producer",e.unresolved="unresolved",e}({}),o=function(e){return e.SUPER_ADMIN="SUPER_ADMIN",e.PRODUCER="PRODUCER",e.ADMIN="ADMIN",e}({});function a(e){var t;return 400===(null===(t=e.response)||void 0===t?void 0:t.status)}},3308:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x,m:()=>w});var r=n(66364),i=n(26264),o=n(67541),a=n(79024),s=n(95853),l=n(85251),c=n(45718),u=n(39475),d=n(83312),p=n(50761),h=n(39670),f=n(92193),m=n(43230);const{baseUrl:g,authHeader:y}=u.default;(0,f.a)()||r.default.interceptors.request.use((e=>{var t;return e.headers=null!==(t=e.headers)&&void 0!==t?t:{},e.headers["x-fs-app-version"]=u.default.app_version,e})),r.default.interceptors.request.use(a.e0,(function(e){return Promise.reject(e)})),r.default.interceptors.response.use(a.jv,(function(e){return Promise.reject((0,a.TI)(e))})),r.default.interceptors.request.use(k,(function(e){return Promise.reject(e)}));const v=r.default.create({baseURL:`${g}api/v1/`,validateStatus:function(e){return e<500},headers:{[y]:(0,l.oi)(l.$$.TOKEN),...(0,f.a)()?{}:{"x-fs-app-version":u.default.app_version},...(0,f.t)()}});v.interceptors.request.use(a.e0),v.interceptors.response.use(a.jv,(function(e){return Promise.reject((0,a.TI)(e))})),v.interceptors.response.use(a.RN,(function(e){return Promise.reject((0,a.FQ)(e))})),v.interceptors.request.use(k,(function(e){return Promise.reject(e)})),v.interceptors.request.use((function(e){var t;const n=(0,o.Z)();e.headers=null!==(t=e.headers)&&void 0!==t?t:{},e.headers["X-Request-ID"]=n,e.headers["X-Correlation-ID"]=n;const r=(0,l.oi)(l.$$.TOKEN);return r&&(e.headers[y]=r),(0,p.L0)()&&(e.headers["x-fs-super-update"]="true"),e}),(function(e){return Promise.reject(e)}));const b=["tree_detection","sync/agworld/growers","crop_performance","sync/climate","sync/agx","sync/johndeere/organizations","mrv-sign-up",["/run_dndc",429]],_=[/mrv\/program_codes\/[a-zA-Z0-9-]*\/enrol/,/api\/v1\/reset-password/];function w(e){return e<400}v.interceptors.response.use((e=>{if(e.data&&e.status>=400&&401!==e.status&&!_.some((t=>t.test(e.request.responseURL)))){var t,n;if((e=>{var t;return null===e||void 0===e||null===(t=e.params)||void 0===t?void 0:t.__doNotCatchError})(e.config))return Promise.reject(e);if((0,m.v)(e.data.result||(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.detail)||void 0===n?void 0:n.message))){var r,o;const t=(0,m.v)(e.data.result||(null===e||void 0===e||null===(r=e.data)||void 0===r||null===(o=r.detail)||void 0===o?void 0:o.message));t&&((0,s.c)({type:"error",...t}),h.Z.errorMessage(String(null===t||void 0===t?void 0:t.message),e))}else if(!((e,t,n)=>{try{const e=JSON.parse(null!==n&&void 0!==n?n:"");if(e.params=e.params||{},e.params.__skipError)return!0}catch(r){}return b.some((n=>Array.isArray(n)?e.includes(n[0])&&n[1]===t:e.includes(n)))})(e.request.responseURL,e.status,e.config.data)){var a,l,u;const t=d.NW.formatMessage({id:"An error occurred, try to reload the page.",defaultMessage:"An error occurred, try to reload the page."}),n=(null===e||void 0===e||null===(a=e.data)||void 0===a||null===(l=a.detail)||void 0===l?void 0:l.message)||(null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.result),r=(null===n||void 0===n?void 0:n.length)>3?n:t;h.Z.errorMessage(n||"An error occurred, try to reload the page.",e),(0,s.c)({title:d.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:r,type:"error"}),(0,c.e)(JSON.stringify({requestError:!0,status:e,statusText:e.statusText,message:e.data?e.data.result:"NONE"}))}throw new i.d7(void 0,void 0,void 0,void 0,e)}return e}),(e=>Promise.reject(e)));const x=v;function k(e){if(!e.onUploadProgress)return e;const t=e.onUploadProgress;return e.uploaded=0,e.lastUpTime=0,e.onUploadProgress=function(n){const r=(new Date).getTime(),i=(1e3*(n.loaded-e.uploaded)/(1024*(r-e.lastUpTime))).toFixed(2);return e.uploaded=n.loaded,e.lastUpTime=r,n.fluroconfig=e,t(n,i)},e}},72536:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(3308);class i{static getSiMetrics(e){return r.Z.get("si/metrics",{params:{...e,__skipPreloader:!0}})}static getStates(){return r.Z.get("si/states",{params:{__skipPreloader:!0}})}static getCRDList(){return r.Z.get("si/states/crd",{params:{__skipPreloader:!0}})}static getCounties(){return r.Z.get("si/states/counties",{params:{__skipPreloader:!0}})}static getHUC8List(){return r.Z.get("/si/states/huc8",{params:{__skipPreloader:!0}})}static getHUC10List(){return r.Z.get("/si/states/huc10",{params:{__skipPreloader:!0}})}static getHUC12List(){return r.Z.get("/si/states/huc12",{params:{__skipPreloader:!0}})}static loadPolices(){return r.Z.get("si/policies_all",{params:{__skipPreloader:!0}})}static deletePolicy(e){return r.Z.delete(`si/policy?user_id=${e}`,{params:{__skipPreloader:!0}})}static updatePolicy(e){return r.Z.put("si/policy",{...e},{params:{__skipPreloader:!0}})}static getUserPolicy(){return r.Z.get("si/policy",{params:{__skipPreloader:!0}})}static getSummerCropTypes(){return r.Z.get("si/summer_crop_types",{params:{__skipPreloader:!0}})}static getGeometries(e){return r.Z.get("si/geometries",{params:{...e,__skipPreloader:!0}})}}},46242:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});n(18178);var r=n(30057),i=n(72907),o=n(95853),a=n(5651);const s=e=>{const t=(0,r.YB)(),n=e.onContainerClick||(n=>{n.target.closest(".react-datepicker__day--disabled")&&e.onDisabledClickMessage&&(0,o.c)({title:t.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:e.onDisabledClickMessage,type:"warning"})});return(0,a.jsx)(i.Y,{...e,onContainerClick:n})}},95853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ee,c:()=>Q});var r=n(19160),i=n.n(r),o=n(18178),a=n(97671),s=n(22297);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e){return"number"===typeof e&&!isNaN(e)}function d(e){return"boolean"===typeof e}function p(e){return"string"===typeof e}function h(e){return"function"===typeof e}function f(e){return p(e)||h(e)?e:null}function m(e){return 0===e||e}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function y(e){return(0,o.isValidElement)(e)||p(e)||h(e)||u(e)}var v={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},b={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function _(e){var t=e.enter,n=e.exit,r=e.appendPosition,i=void 0!==r&&r,a=e.collapse,s=void 0===a||a,l=e.collapseDuration,c=void 0===l?300:l;return function(e){var r=e.children,a=e.position,l=e.preventExitTransition,u=e.done,d=e.nodeRef,p=e.isIn,h=i?t+"--"+a:t,f=i?n+"--"+a:n,m=(0,o.useRef)(),g=(0,o.useRef)(0);function y(e){if(e.target===d.current){var t=d.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",y),t.removeEventListener("animationcancel",y),0===g.current&&(t.className=m.current)}}function v(){var e=d.current;e.removeEventListener("animationend",v),s?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame((function(){i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame((function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,u,c):u()}return(0,o.useLayoutEffect)((function(){!function(){var e=d.current;m.current=e.className,e.className+=" "+h,e.addEventListener("animationend",y),e.addEventListener("animationcancel",y)}()}),[]),(0,o.useEffect)((function(){p||(l?v():function(){g.current=1;var e=d.current;e.className+=" "+f,e.addEventListener("animationend",v)}())}),[p]),o.createElement(o.Fragment,null,r)}}var w={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.list.has(e)&&this.list.get(e).forEach((function(n){var i=setTimeout((function(){n.apply(void 0,r)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(i)}))}},x=["delay","staleId"];function k(e){var t=(0,o.useReducer)((function(e){return e+1}),0)[1],n=(0,o.useState)([]),r=n[0],i=n[1],a=(0,o.useRef)(null),s=(0,o.useRef)(new Map).current,l=function(e){return-1!==r.indexOf(e)},g=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:function(e){return s.get(e)}}).current;function v(e){var t=e.containerId;!g.props.limit||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function b(e){i((function(t){return m(e)?t.filter((function(t){return t!==e})):[]}))}function _(){var e=g.queue.shift();C(e.toastContent,e.toastProps,e.staleId)}function k(e,n){var r=n.delay,i=n.staleId,l=c(n,x);if(y(e)&&!function(e){return!a.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||s.has(e.toastId)&&null==e.updateId}(l)){var v=l.toastId,w=l.updateId,k=l.data,S=g.props,M=function(){return b(v)},T=null==w;T&&g.count++;var E,P,I={toastId:v,updateId:w,isLoading:l.isLoading,theme:l.theme||S.theme,icon:null!=l.icon?l.icon:S.icon,isIn:!1,key:l.key||g.toastKey++,type:l.type,closeToast:M,closeButton:l.closeButton,rtl:S.rtl,position:l.position||S.position,transition:l.transition||S.transition,className:f(l.className||S.toastClassName),bodyClassName:f(l.bodyClassName||S.bodyClassName),style:l.style||S.toastStyle,bodyStyle:l.bodyStyle||S.bodyStyle,onClick:l.onClick||S.onClick,pauseOnHover:d(l.pauseOnHover)?l.pauseOnHover:S.pauseOnHover,pauseOnFocusLoss:d(l.pauseOnFocusLoss)?l.pauseOnFocusLoss:S.pauseOnFocusLoss,draggable:d(l.draggable)?l.draggable:S.draggable,draggablePercent:l.draggablePercent||S.draggablePercent,draggableDirection:l.draggableDirection||S.draggableDirection,closeOnClick:d(l.closeOnClick)?l.closeOnClick:S.closeOnClick,progressClassName:f(l.progressClassName||S.progressClassName),progressStyle:l.progressStyle||S.progressStyle,autoClose:!l.isLoading&&(E=l.autoClose,P=S.autoClose,!1===E||u(E)&&E>0?E:P),hideProgressBar:d(l.hideProgressBar)?l.hideProgressBar:S.hideProgressBar,progress:l.progress,role:l.role||S.role,deleteToast:function(){s.delete(v);var e=g.queue.length;if(g.count=m(v)?g.count-1:g.count-g.displayedToast,g.count<0&&(g.count=0),e>0){var n=m(v)?1:g.props.limit;if(1===e||1===n)g.displayedToast++,_();else{var r=n>e?e:n;g.displayedToast=r;for(var i=0;i<r;i++)_()}}else t()}};h(l.onOpen)&&(I.onOpen=l.onOpen),h(l.onClose)&&(I.onClose=l.onClose),I.closeButton=S.closeButton,!1===l.closeButton||y(l.closeButton)?I.closeButton=l.closeButton:!0===l.closeButton&&(I.closeButton=!y(S.closeButton)||S.closeButton);var O=e;(0,o.isValidElement)(e)&&!p(e.type)?O=(0,o.cloneElement)(e,{closeToast:M,toastProps:I,data:k}):h(e)&&(O=e({closeToast:M,toastProps:I,data:k})),S.limit&&S.limit>0&&g.count>S.limit&&T?g.queue.push({toastContent:O,toastProps:I,staleId:i}):u(r)&&r>0?setTimeout((function(){C(O,I,i)}),r):C(O,I,i)}}function C(e,t,n){var r=t.toastId;n&&s.delete(n),s.set(r,{content:e,props:t}),i((function(e){return[].concat(e,[r]).filter((function(e){return e!==n}))}))}return(0,o.useEffect)((function(){return g.containerId=e.containerId,w.cancelEmit(3).on(0,k).on(1,(function(e){return a.current&&b(e)})).on(5,v).emit(2,g),function(){return w.emit(3,g)}}),[]),(0,o.useEffect)((function(){g.isToastActive=l,g.displayedToast=r.length,w.emit(4,r.length,e.containerId)}),[r]),(0,o.useEffect)((function(){g.props=e})),{getToastToRender:function(t){var n=new Map,r=Array.from(s.values());return e.newestOnTop&&r.reverse(),r.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:a,isToastActive:l}}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function S(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function M(e){var t=(0,o.useState)(!1),n=t[0],r=t[1],i=(0,o.useState)(!1),a=i[0],s=i[1],l=(0,o.useRef)(null),c=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=(0,o.useRef)(e),d=e.autoClose,p=e.pauseOnHover,f=e.closeToast,m=e.onClick,g=e.closeOnClick;function y(t){if(e.draggable){c.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",x);var n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=n.getBoundingClientRect(),n.style.transition="",c.x=C(t.nativeEvent),c.y=S(t.nativeEvent),"x"===e.draggableDirection?(c.start=c.x,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(){if(c.boundingRect){var t=c.boundingRect,n=t.top,r=t.bottom,i=t.left,o=t.right;e.pauseOnHover&&c.x>=i&&c.x<=o&&c.y>=n&&c.y<=r?_():b()}}function b(){r(!0)}function _(){r(!1)}function w(t){var r=l.current;c.canDrag&&r&&(c.didMove=!0,n&&_(),c.x=C(t),c.y=S(t),"x"===e.draggableDirection?c.delta=c.x-c.start:c.delta=c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+c.delta+"px)",r.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function x(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",x);var t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,o.useEffect)((function(){u.current=e})),(0,o.useEffect)((function(){return l.current&&l.current.addEventListener("d",b,{once:!0}),h(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),function(){var e=u.current;h(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)}}),[]),(0,o.useEffect)((function(){return e.pauseOnFocusLoss&&function(){document.hasFocus()||_();window.addEventListener("focus",b),window.addEventListener("blur",_)}(),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))}}),[e.pauseOnFocusLoss]);var k={onMouseDown:y,onTouchStart:y,onMouseUp:v,onTouchEnd:v};return d&&p&&(k.onMouseEnter=_,k.onMouseLeave=b),g&&(k.onClick=function(e){m&&m(e),c.canCloseOnClick&&f()}),{playToast:b,pauseToast:_,isRunning:n,preventExitTransition:a,toastRef:l,eventHandlers:k}}function T(e){var t=e.closeToast,n=e.theme,r=e.ariaLabel,i=void 0===r?"close":r;return(0,o.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},(0,o.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,o.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function E(e){var t,n,r=e.delay,i=e.isRunning,s=e.closeToast,c=e.type,u=e.hide,d=e.className,p=e.style,f=e.controlledProgress,m=e.progress,g=e.rtl,y=e.isIn,v=e.theme,b=l({},p,{animationDuration:r+"ms",animationPlayState:i?"running":"paused",opacity:u?0:1});f&&(b.transform="scaleX("+m+")");var _=(0,a.Z)("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+v,"Toastify__progress-bar--"+c,((t={})["Toastify__progress-bar--rtl"]=g,t)),w=h(d)?d({rtl:g,type:c,defaultClassName:_}):(0,a.Z)(_,d),x=((n={})[f&&m>=1?"onTransitionEnd":"onAnimationEnd"]=f&&m<1?null:function(){y&&s()},n);return(0,o.createElement)("div",Object.assign({role:"progressbar","aria-hidden":u?"true":"false","aria-label":"notification timer",className:w,style:b},x))}E.defaultProps={type:b.DEFAULT,hide:!1};var P=["theme","type"],I=function(e){var t=e.theme,n=e.type,r=c(e,P);return(0,o.createElement)("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")"},r))};var O={info:function(e){return(0,o.createElement)(I,Object.assign({},e),(0,o.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,o.createElement)(I,Object.assign({},e),(0,o.createElement)("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,o.createElement)(I,Object.assign({},e),(0,o.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,o.createElement)(I,Object.assign({},e),(0,o.createElement)("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,o.createElement)("div",{className:"Toastify__spinner"})}},L=function(e){var t,n,r=M(e),i=r.isRunning,s=r.preventExitTransition,l=r.toastRef,c=r.eventHandlers,u=e.closeButton,d=e.children,f=e.autoClose,m=e.onClick,g=e.type,y=e.hideProgressBar,v=e.closeToast,b=e.transition,_=e.position,w=e.className,x=e.style,k=e.bodyClassName,C=e.bodyStyle,S=e.progressClassName,T=e.progressStyle,P=e.updateId,I=e.role,L=e.progress,R=e.rtl,j=e.toastId,D=e.deleteToast,A=e.isIn,N=e.isLoading,F=e.icon,z=e.theme,B=(0,a.Z)("Toastify__toast","Toastify__toast-theme--"+z,"Toastify__toast--"+g,((t={})["Toastify__toast--rtl"]=R,t)),U=h(w)?w({rtl:R,position:_,type:g,defaultClassName:B}):(0,a.Z)(B,w),$=!!L,V=O[g],q={theme:z,type:g},Z=V&&V(q);return!1===F?Z=void 0:h(F)?Z=F(q):(0,o.isValidElement)(F)?Z=(0,o.cloneElement)(F,q):p(F)?Z=F:N&&(Z=O.spinner()),(0,o.createElement)(b,{isIn:A,done:D,position:_,preventExitTransition:s,nodeRef:l},(0,o.createElement)("div",Object.assign({id:j,onClick:m,className:U},c,{style:x,ref:l}),(0,o.createElement)("div",Object.assign({},A&&{role:I},{className:h(k)?k({type:g}):(0,a.Z)("Toastify__toast-body",k),style:C}),Z&&(0,o.createElement)("div",{className:(0,a.Z)("Toastify__toast-icon",(n={},n["Toastify--animate-icon Toastify__zoom-enter"]=!N,n))},Z),(0,o.createElement)("div",null,d)),function(e){if(e){var t={closeToast:v,type:g,theme:z};return h(e)?e(t):(0,o.isValidElement)(e)?(0,o.cloneElement)(e,t):void 0}}(u),(f||$)&&(0,o.createElement)(E,Object.assign({},P&&!$?{key:"pb-"+P}:{},{rtl:R,theme:z,delay:f,isRunning:i,isIn:A,closeToast:v,hide:y,type:g,style:T,className:S,controlledProgress:$,progress:L}))))},R=_({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),j=function(e){var t=k(e),n=t.getToastToRender,r=t.containerRef,i=t.isToastActive,s=e.className,c=e.style,u=e.rtl,d=e.containerId;function p(e){var t,n=(0,a.Z)("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=u,t));return h(s)?s({position:e,rtl:u,defaultClassName:n}):(0,a.Z)(n,f(s))}return(0,o.createElement)("div",{ref:r,className:"Toastify",id:d},n((function(e,t){var n=t.length?l({},c):l({},c,{pointerEvents:"none"});return(0,o.createElement)("div",{className:p(e),style:n,key:"container-"+e},t.map((function(e){var t=e.content,n=e.props;return(0,o.createElement)(L,Object.assign({},n,{isIn:i(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?T:n.closeButton}),t)})))})))};j.defaultProps={position:v.TOP_RIGHT,transition:R,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:T,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var D,A,N,F=new Map,z=[],B=!1;function U(){return Math.random().toString(36).substring(2,9)}function $(e){return e&&(p(e.toastId)||u(e.toastId))?e.toastId:U()}function V(e,t){return F.size>0?w.emit(0,e,t):(z.push({content:e,options:t}),B&&g&&(B=!1,A=document.createElement("div"),document.body.appendChild(A),(0,s.render)((0,o.createElement)(j,Object.assign({},N)),A))),t.toastId}function q(e,t){return l({},t,{type:t&&t.type||e,toastId:$(t)})}function Z(e){return function(t,n){return V(t,q(e,n))}}function H(e,t){return V(e,q(b.DEFAULT,t))}H.loading=function(e,t){return V(e,q(b.DEFAULT,l({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},H.promise=function(e,t,n){var r,i=t.pending,o=t.error,a=t.success;i&&(r=p(i)?H.loading(i,n):H.loading(i.render,l({},n,i)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=function(e,t,i){if(null!=t){var o=l({type:e},s,n,{data:i}),a=p(t)?{render:t}:t;return r?H.update(r,l({},o,a)):H(a.render,l({},o,a)),i}H.dismiss(r)},u=h(e)?e():e;return u.then((function(e){return c("success",a,e)})).catch((function(e){return c("error",o,e)})),u},H.success=Z(b.SUCCESS),H.info=Z(b.INFO),H.error=Z(b.ERROR),H.warning=Z(b.WARNING),H.warn=H.warning,H.dark=function(e,t){return V(e,q(b.DEFAULT,l({theme:"dark"},t)))},H.dismiss=function(e){return w.emit(1,e)},H.clearWaitingQueue=function(e){return void 0===e&&(e={}),w.emit(5,e)},H.isActive=function(e){var t=!1;return F.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=F.get(n||D);return r?r.getToast(e):null}(e,t);if(n){var r=n.props,i=n.content,o=l({},r,t,{toastId:t.toastId||e,updateId:U()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,V(a,o)}}),0)},H.done=function(e){H.update(e,{progress:1})},H.onChange=function(e){return h(e)&&w.on(4,e),function(){h(e)&&w.off(4,e)}},H.configure=function(e){void 0===e&&(e={}),B=!0,N=e},H.POSITION=v,H.TYPE=b,w.on(2,(function(e){D=e.containerId||e,F.set(D,e),z.forEach((function(e){w.emit(0,e.content,e.options)})),z=[]})).on(3,(function(e){F.delete(e.containerId||e),0===F.size&&w.off(0).off(1).off(5),g&&A&&document.body.removeChild(A)}));var G=n(84917),W=n(22221),Y=n(1730),K=n(64946),X=n(5651);const J=e=>{let{type:t}=e;const n=(0,G.Fg)();switch(t){case"success":return(0,X.jsx)(W.tm,{style:{width:"16px",color:n.color.text.success}});case"warning":return(0,X.jsx)(W.Pz,{style:{width:"16px",color:n.color.text.warning}});case"info":return(0,X.jsx)(W.sz,{style:{width:"16px",color:K.Z["dodger-blue"]}});case"error":return(0,X.jsx)(W.Pz,{style:{width:"16px",color:n.color.text.error}});default:return null}},Q=e=>{const{title:t,message:n,type:r="default",coloredNotification:o,autoClose:a=4e3,...s}=e;return H((0,X.jsxs)(X.Fragment,{children:[t&&(0,X.jsxs)(Y.x,{fontWeight:500,elementType:"span",children:[t,". "]}),(0,X.jsx)(Y.x,{elementType:"span",children:n})]}),{position:"bottom-right",autoClose:a,closeOnClick:!0,icon:(0,X.jsx)(J,{type:r}),type:r,toastId:s.toastId||String(n)+String(t),className:i()({colored:o}),role:"alert",...s})},ee=e=>{let{className:t}=e;return(0,X.jsx)(j,{className:t,hideProgressBar:!0})}},51429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(19160),i=n.n(r),o=n(18178),a=n(72457),s=n(58777),l=n(84917),c=n(17859),u=n(5651);const d=l.ZP.div`
  position: relative;

  .fluro-autocomplete__arrow {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  input {
    // padding for the arrow
    padding-right: 20px;
    text-overflow: ellipsis;
  }

  &.with-search-icon {
    .search-icon {
      position: absolute;
      bottom: 10px;
      left: 0;
    }

    label,
    input {
      padding-left: 25px;
    }
  }

  &.error {
    .md-divider {
      background-color: rgb(244, 67, 54);
    }
    .md-floating-label {
      color: rgb(244, 67, 54);
    }
  }
`,p=e=>{let{id:t,menuItems:n,value:r,label:l="",title:p="",name:h="",placeholder:f="",autoComplete:m="off",anchor:g,position:y=a.F2.Positions.BELOW,simplifiedMenu:v=!0,onBlur:b,onFocus:_,onAutocomplete:w,onChange:x,onFilter:k,onEnter:C,onMenuOpen:S,filter:M=null,onType:T,className:E="",containerClassName:P="",inputClassName:I="",fullWidth:O=!0,autoInputWidth:L,error:R,errorText:j,disabled:D,searchIcon:A,shouldNotResetOnFocus:N,defaultPagination:F=25,searchKey:z,dataLabel:B="label",dataValue:U="value",formatLabel:$,fixedToTop:V}=e;const[q,Z]=(0,o.useState)(!1),[H,G]=(0,o.useState)(F),[W,Y]=(0,o.useState)(r),[K,X]=(0,o.useState)(r),J=(0,o.useRef)(null),[Q,ee]=(0,o.useState)(n),te=(0,o.useMemo)((()=>L?{width:7.8*parseInt(`${r}`)+"px"}:{}),[L,r]);(0,o.useEffect)((()=>{ee(n)}),[n]),(0,o.useEffect)((()=>{X(r),Y(r)}),[r]);const ne=e=>{if(k)return ee(k(e));const t=new RegExp((0,c.hr)(`${e}`),"i"),r=z||B,i=n.filter((n=>"id"===r?""===e||n[r]===parseInt(`${e}`):""===e||t.test(n[r])));ee(i)},re=()=>{Y(" "),ee(n)},ie=()=>{Q.length>H&&G(H+F)},oe=(0,o.useMemo)((()=>{let e=Q.length&&!D?[...Q.map(((e,t)=>t>H?null:$?{...e,[B]:$(e)}:e)).slice(0,H),(0,u.jsx)(s.h,{onEnter:ie},"lazy-load")]:[];if(V&&!D){const t=V.map((e=>e[U]));e=e.filter((e=>!t.includes(e[U]))),e=[...V,...e]}return e}),[Q,r,H,D,U,B]);return(0,u.jsxs)(d,{className:i()(`fluro-autocomplete ${E}`,{error:R,"with-search-icon":A}),children:[A&&(0,u.jsx)(a.xu,{className:"search-icon",children:"search"}),(0,u.jsx)(a.F2,{onKeyUp:e=>{var t;if(13===e.keyCode)null===C||void 0===C||C((null===e||void 0===e||null===(t=e.currentTarget)||void 0===t?void 0:t.value)||"");else if(e.which<=90&&e.which>=64){var n;null===T||void 0===T||T(null===e||void 0===e||null===(n=e.currentTarget)||void 0===n?void 0:n.value)}},ref:J,id:t,name:h,value:W,inputStyle:te,label:l,data:oe,title:p,placeholder:f,dataLabel:B,dataValue:U,onMenuOpen:()=>{Z(!0),setTimeout((()=>null===S||void 0===S?void 0:S()),300)},onMenuClose:()=>{Z(!1),G(F)},simplifiedMenu:v,onAutocomplete:w,inputClassName:I,className:P,anchor:g,position:y,onBlur:()=>{Y(K),null===b||void 0===b||b()},onFocus:()=>{!N&&setTimeout((()=>{re()}),0),ee(n),null===_||void 0===_||_()},onChange:e=>{"string"===typeof e&&e.length&&" "===e[0]&&(e=e.replace(" ","")),null===x||void 0===x||x(e),Y(e),ne(e)},fullWidth:O,filter:M,disabled:D,autoComplete:m,rightIcon:(0,u.jsx)(a.xu,{className:"fluro-autocomplete__arrow",children:q?"arrow_drop_up":"arrow_drop_down"})}),R&&j&&(0,u.jsx)("div",{className:"md-text-field-message-container md-full-width md-text--error",children:j})]})}},13e3:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});n(18178);const r=["gold","orange","violet","skyblue"];var i=n(5651);const o=e=>{var t;let{values:n,colors:o=[...r],size:l=60}=e;const c=l/2-1,u=l/2-1-(l/4-1),d=n.reduce(((e,t)=>e+t),0);const h=n.map((e=>e/d)),f={x:l/2,y:l/2},m=1===h.length?a(f,u,c,null!==(t=o[0])&&void 0!==t?t:r[0]):s(f,u,c,h,o);return(0,i.jsx)("svg",{width:l,height:l,xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsxs)("g",{children:[p(f,c,d),m]})})},a=(e,t,n,r)=>{const i=u(e,t,n);return[d(i,r,0)]},s=(e,t,n,r,i)=>{const o=[];let a={x:e.x,y:e.y-t},s={x:e.x,y:e.y-n},u=-Math.PI/2;for(let p=0;p<r.length;p++){const h=r[p],f=i[p],{b1:m,b2:g,angle:y,largeArc:v}=l(e,t,n,null!==h&&void 0!==h?h:0,u),b=c(e,a,s,m,g,t,n,v);o.push(d(b,null!==f&&void 0!==f?f:"",p)),a=m,s=g,u=y}return o},l=(e,t,n,r,i)=>{const o=2*Math.PI*r,a=i+o;return{b1:{x:Math.cos(a)*t+e.x,y:Math.sin(a)*t+e.y},b2:{x:Math.cos(a)*n+e.x,y:Math.sin(a)*n+e.y},angle:a,largeArc:o>Math.PI?1:0}},c=(e,t,n,r,i,o,a,s)=>`\nM ${t.x} ${t.y}\nA ${o} ${o} 0 ${s} 1 ${r.x} ${r.y}\nL ${i.x} ${i.y}\nA ${a} ${a} 0 ${s} 0 ${n.x} ${n.y}\nZ`,u=(e,t,n)=>{const r=.999999,i=e.x+r,o=e.y-t,a=e.x+r,s=e.y-n;return`\nM ${i} ${o}\nA ${t} ${t} 0 1 1 ${e.x-r} ${e.y+t}\nA ${t} ${t} 0 1 1 ${i} ${o}\nM ${a} ${s}\nA ${n} ${n} 0 1 0 ${e.x-r} ${e.y+n}\nA ${n} ${n} 0 1 0 ${a} ${s}\nZ`},d=(e,t,n)=>(0,i.jsx)("path",{d:e,fill:t,stroke:"white",strokeWidth:1},n),p=(e,t,n)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("circle",{cx:e.x,cy:e.y,r:t,fill:"white"}),(0,i.jsx)("text",{x:e.x,y:e.y,textAnchor:"middle",dominantBaseline:"central",children:n})]})},23414:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});n(18178);var r=n(30057),i=n(36777),o=n(42832),a=n(5651);function s(e){let{label:t,toastLabel:n,value:s,valueIsHidden:l,valueIsObscured:c,color:u,variant:d="inherit",iconIsHidden:p}=e;const h=(0,r.YB)();return(0,a.jsxs)(i.xu,{display:"inline-flex",alignItems:"center",gap:1,children:[!p&&(0,a.jsx)(i.le,{type:"copy",color:u}),(0,a.jsx)(i.ZT,{color:u,variant:d,component:"span",sx:{cursor:"pointer",":hover":{textDecoration:"underline"}},role:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,o.H)(null!==n&&void 0!==n?n:t,`${s}`)},children:l?t:`${t}: ${c?h.formatMessage({id:"click to copy",defaultMessage:"click to copy"}):s}`})]})}},20304:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});n(18178);var r=n(36777),i=n(39475),o=n(5651);const a=e=>{let{cropType:t,iconSrc:n,size:a=25}=e;const s=n||(e=>{const t=encodeURIComponent(e);return t?`${i.default.baseUrl}api/v1/crops/${t}/icon`:`${i.default.baseUrl}api/v1/crops/other/icon`})(t);return(0,o.jsx)(r.qE,{sx:{width:a,height:a},alt:t,src:s})}},3911:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(19160),i=n.n(r),o=(n(18178),n(39475)),a=n(72457);const s=(0,n(84917).ZP)(a.qE)`
  width: 2em;
  height: 2em;
  min-width: 30px;
  min-height: 30px;
  max-width: 50px;
  max-height: 50px;

  transition:
    background-color 0.4s,
    color 0.4s,
    opacity 0.4s;

  &.bordered {
    border: 1px solid #ccc;
  }

  .md-avatar-content {
    transition:
      background-color 0.4s,
      color 0.4s;
  }
`;var l=n(5651);const c=e=>{let{className:t="",cropType:n,iconSrc:r,letter:a,version:c,...u}=e;const d=a||String(n).charAt(0).toUpperCase()||"?",p=encodeURIComponent(n),h=c?`?${c}`:"",f=r||n&&`${o.default.baseUrl}api/v1/crops/${p}/icon${h}`;return(0,l.jsx)(s,{...u,className:i()(`fluro-crop-avatar ${t}`),suffix:"white",src:f,children:d})}},71038:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(19160),i=n.n(r),o=(n(18178),n(74537)),a=n(5651);const s=e=>{let{className:t,children:n,basis:r,grow:s,auto:l=!1,cols:c}=e;return(0,a.jsx)(o.N,{className:i()(t,"flex-element__col",{"flex-element__col--auto":!r&&l,"flex-element__col--grow":!r&&!l&&s,[`flex-element__col--${c}`]:c}),style:{flexBasis:r},children:n})}},74537:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(84917);const i=r.ZP.div`
  display: flex;
  inherit: true;

  &.flex-element--inline {
    display: inline-flex;
  }
  &.flex-element--full-width {
    width: 100%;
  }
`,o=r.ZP.div`
  flex: 0 0 auto;

  &.flex-element__col--grow {
    flex-grow: 1;
  }

  &.flex-element__col--1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  &.flex-element__col--2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  &.flex-element__col--3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  &.flex-element__col--4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  &.flex-element__col--5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  &.flex-element__col--6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  &.flex-element__col--7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  &.flex-element__col--8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  &.flex-element__col--9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  &.flex-element__col--10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  &.flex-element__col--11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  &.flex-element__col--12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
`},51408:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(19160),i=n.n(r),o=(n(18178),n(74537)),a=n(5651);const s=e=>{let{alignItems:t,children:n,className:r,direction:s="row",inline:l=!1,justifyContent:c,nowrap:u=!1,style:d,basis:p,gap:h,fullWidth:f,margin:m,...g}=e;return(0,a.jsx)(o.b,{className:i()(r,"flex-element",{"flex-element--inline":l,"flex-element--full-width":f}),style:{flexWrap:u?"nowrap":"wrap",flexBasis:p,justifyContent:c,alignItems:t,flexDirection:s,gap:h,margin:m,...d},...g,children:n})};s.displayName="Flex"},35397:(e,t,n)=>{"use strict";n.d(t,{J:()=>i.J,k:()=>r.k});var r=n(51408),i=n(71038)},19429:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(19160),i=n.n(r),o=(n(18178),n(72457)),a=n(96073);var s=n(5651);const l=e=>{let{blank:t=!1,centerIconInside:n,className:r="",disabled:l,grayBorder:c,icon:u,iconEl:d,loading:p,noMargin:h,noPadding:f,primary:m,secondary:g,skin:y,transparent:v=!1,...b}=e;return(0,s.jsx)(o.zx,{...b,icon:u,primary:m,secondary:g,disabled:l||p,iconEl:p?(0,s.jsx)(a.Ho,{}):d,className:i()(`fluro-button ${r}`,{blank:t,noMargin:h,noPadding:f,transparent:v,secondary:g,disabled:l,warning:"warning"===y,"with-icon":!!d&&!u,"gray-bordered":c,"center-icon":Boolean(u&&n),"primary-icon":Boolean(u&&m)})})}},29869:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(19160),i=n.n(r),o=(n(18178),n(72457)),a=n(35397),s=n(73612);var l=n(5651);const c=e=>{let{active:t,disabled:n,dropdown:r,leftIcon:c,rightIcon:u,hasToggleIcon:d,id:p,label:h,onClick:f,size:m="medium",tone:g="light",className:y="",dragHandleRef:v,onRemove:b,noMargin:_,fitContent:w,noHover:x,style:k}=e;const C=()=>{null===b||void 0===b||b()};return(0,l.jsx)("button",{id:p,"data-testid":p,ref:v,"aria-disabled":n,disabled:n,style:k,className:i()("fluro-chip",m,y,{active:t,dropdown:r,[g]:!n,disabled:n,noMargin:_,fitContent:w,noHover:x}),onClick:()=>{if("function"!==typeof f)return;f(p||h)},children:(0,l.jsxs)(a.k,{alignItems:"center",className:"flex-nowrap",children:[c&&(0,l.jsx)(a.k,{alignItems:"center",className:"mr-05",children:c}),h,r&&(0,l.jsx)(o.xu,{className:"right-icon",children:"arrow_drop_down"}),d&&(0,l.jsx)(s.C,{onClick:C,size:18,className:"add-remove-icon-circle",children:(0,l.jsx)(o.xu,{onClick:C,className:"add-remove-icon",children:"add"})}),u]})})}},72907:(e,t,n)=>{"use strict";n.d(t,{P:()=>$,Y:()=>U});var r=n(19160),i=n.n(r),o=n(41921),a=n(90686),s=n(70759);function l(e,t){return(0,s.Z)(2,arguments),function(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e),r=(0,o.Z)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+r+1,0),i>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),i),n)}(e,12*(0,o.Z)(t))}var c=n(37882),u=n(67331),d=n(23635),p=n(20317),h=n(28867),f=n(99374),m={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};const g=function(e,t,n){var r,i=m[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"h\xe1 "+r:r};var y=n(72867);const v={date:(0,y.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,y.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,y.Z)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var b={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"};const _=function(e,t,n,r){var i=b[e];return"function"===typeof i?i(t):i};var w=n(90219);const x={ordinalNumber:function(e,t){var n=Number(e);return"week"===(null===t||void 0===t?void 0:t.unit)?n+"\xaa":n+"\xba"},era:(0,w.Z)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,w.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,w.Z)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,w.Z)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,w.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})};var k=n(54224);const C={code:"pt-BR",formatDistance:g,formatLong:v,formatRelative:_,localize:x,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,k.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,k.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,k.Z)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,k.Z)({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,k.Z)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var S=n(70229),M=n(59459),T=n(45929),E=n(96798),P=n(17176),I=n.n(P),O=(n(18178),n(70122)),L=n.n(O),R=n(72457),j=n(96765),D=n(73042),A=n(33022),N=n(22168);var F=n(55927),z=n(5651);(0,O.registerLocale)(A.g.Fr,p.Z),(0,O.registerLocale)(A.g.RoRO,S.Z),(0,O.registerLocale)(A.g.RuRU,M.Z),(0,O.registerLocale)(A.g.PtBr,C),(0,O.registerLocale)(A.g.PlPL,f.Z),(0,O.registerLocale)(A.g.EnGB,u.Z),(0,O.registerLocale)(A.g.DeDE,c.Z),(0,O.registerLocale)(A.g.EnUS,d.Z),(0,O.registerLocale)(A.g.HuHU,h.Z),(0,O.registerLocale)(A.g.ViVN,E.Z),(0,O.registerLocale)(A.g.UkUA,T.Z);const B=e=>{let{children:t}=e;return(0,z.jsx)(R.Uv,{visible:!0,children:t})},U=e=>{let{id:t,name:n,selected:r,portal:o,highlightDates:a,excludeDates:s,onChange:c,onContainerClick:u,disabled:d,className:p="",label:h,autoComplete:f,minDate:m=new Date("07-01-2015"),maxDate:g=l(new Date,2),error:y,errorText:v,showMonthDropdown:b=!0,showYearDropdown:_=!0,calendarContainer:w,hasPopper:x=!1,hasLabelIndent:k=!0,openToDate:C,fullWidth:S=!0,icon:M=!0}=e;const T=(0,F.C)(N.io),E=(0,j.wS)(T).replaceAll("Y","y").replaceAll("D","d");return(0,z.jsxs)("div",{onClick:e=>null===u||void 0===u?void 0:u(e),className:i()(`fluro-datepicker md-text-field-container md-text-field-container--input ${p}`,{disabled:d,"md-full-width":S}),children:[(0,z.jsx)("label",{className:i()("md-floating-label md-floating-label--floating md-text--secondary",{"md-floating-label--icon-offset":k}),"aria-label":n,id:"datepicker-label",children:h}),(0,z.jsxs)("div",{className:"md-text-field-icon-container",children:[M&&(0,z.jsx)("i",{className:"md-icon material-icons md-text-field-icon md-text-field-icon--positioned",children:"date_range"}),(0,z.jsxs)("div",{className:"md-text-field-divider-container md-text-field-divider-container--grow",children:[(0,z.jsx)(L(),{id:t,ariaLabelledBy:"datepicker-label",name:n||t,selected:r&&I()(r).isValid()?new Date(r):null,dateFormat:E,highlightDates:a,excludeDates:s,locale:T,onChange:(e,t)=>{Array.isArray(e)||(null!==t&&void 0!==t&&t.currentTarget.value||c(e),t&&t.currentTarget.value&&((e,t)=>{const n=t.replaceAll("y","Y").replaceAll("d","D");return I()(e,n,!0).isValid()})(t.currentTarget.value,E)&&c(e))},autoComplete:f,placeholderText:E.toLowerCase(),showMonthDropdown:b,showYearDropdown:_,minDate:m,maxDate:g,className:`"md-text-field ${h?"md-text-field--floating-margin":"md-text-field"} md-full-width md-text md-pointer--hover"`,calendarContainer:w,showPopperArrow:!1,portalId:o?(0,D.HD)(o)?o:"dialog-root":"",popperContainer:x?B:void 0,disabled:d,openToDate:C,fixedHeight:!0,nextMonthButtonLabel:(0,z.jsx)(R.xu,{children:"keyboard_arrow_right"}),previousMonthButtonLabel:(0,z.jsx)(R.xu,{children:"keyboard_arrow_left"})}),(0,z.jsx)("hr",{className:i()("md-divider md-divider--text-field md-divider--expand-from-left",{"md-divider--error":y})})]})]}),y&&v?(0,z.jsx)("div",{className:"md-text-field-message-container md-text-field-message-container--left-icon-offset md-full-width md-text--error",children:(0,z.jsx)("div",{className:"md-text-field-message md-text-field-message--active",children:v})}):null]})},$=e=>{let{defaultCalendar:t,children:n,className:r=""}=e;return(0,z.jsxs)(O.CalendarContainer,{className:`react-datepicker ${r}`,children:[(0,z.jsx)("div",{children:t}),n]})}},33419:(e,t,n)=>{"use strict";n.d(t,{l:()=>f});var r=n(18178),i=n(72457),o=n(29869),a=n(19160),s=n.n(a),l=n(12141),c=n(84917),u=n(48954);const d=c.ZP.div`
  display: inline-block;
  position: relative;

  .fluro-dropdown-base__dropdown {
    position: absolute;
    background: white;
    box-shadow:
      0 2px 2px 0 rgba(0, 0, 0, 0.08),
      0 1px 5px 0 rgba(0, 0, 0, 0.05),
      0 3px 1px -2px rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    padding: 0.875rem 1rem;
    max-height: 500px;
    min-width: 200px;
    z-index: ${u.K.Sticky};
    overflow-y: auto;
    overflow-x: hidden;
  }

  .fluro-chip {
    display: flex;
    align-items: center;
  }

  .filter-clear-button {
    display: block;
    line-height: 0;
    margin-left: 0.3em;
  }

  .md-selection-control-container {
    margin-left: -14px;
  }
`;var p=n(5651);const h=e=>{let{className:t,Button:n,expand:i,children:o,onExpand:a,onClose:c,dropdownStyle:u}=e;const[h,f]=(0,r.useState)(null);r.useEffect((()=>(0,l.c0)(h,i,c)),[h,i,c]);return(0,p.jsxs)(d,{ref:f,className:s()(t,"fluro-dropdown-base"),children:[(0,p.jsx)("div",{className:"fluro-dropdown-base__button-wrap",children:n&&(0,p.jsx)(n,{onClick:()=>{i?c():a()}})}),i&&(0,p.jsx)("div",{className:"fluro-dropdown-base__dropdown",style:u,children:o})]})},f=e=>{let{active:t,children:n,className:r,clearText:a,disabled:s,dropdownStyle:l,expand:c,label:u,onClear:d,setExpand:f,...m}=e;const g=t||c,y="function"===typeof d;return(0,p.jsx)(h,{className:r,expand:c,Button:e=>{let{onClick:n}=e;const r=y?(0,p.jsx)("span",{className:"filter-clear-button",role:"button",onClick:d,title:a||"Clear selection",children:(0,p.jsx)(i.xu,{children:"clear"})}):null;return(0,p.jsx)(o.A,{active:g,disabled:s,dropdown:!y||!t,rightIcon:t?r:void 0,label:u,onClick:n,...m})},dropdownStyle:l,onExpand:()=>f(!0),onClose:()=>f(!1),children:n})}},87455:(e,t,n)=>{"use strict";n.d(t,{C:()=>p});var r=n(19160),i=n.n(r),o=n(18178),a=n(72457),s=n(1730),l=n(17859),c=n(84917);const u=c.ZP.div`
  position: relative;
  margin-top: ${e=>{let{topMargin:t}=e;return t?"18px":"0"}};

  .label {
    color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
    box-sizing: border-box;
    margin-bottom: 4px;
    display: block;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    text-align: left;
    user-select: none;
    white-space: nowrap;
    width: 100%;
  }

  .input-container {
    ${e=>{let{theme:t,error:n}=e;return n?c.iv`
            border: 1px solid ${t.color.stroke.error};
          `:c.iv`
            border: 1px solid ${t.color.stroke.subtle};
          `}};

    border-radius: ${e=>{let{theme:t}=e;return t.borderRadius.small}};
    display: flex;
    align-items: center;

    &:hover,
    &:focus {
      outline: 0;
      border-color: ${e=>{let{theme:t}=e;return t.color.stroke.subtle}};
    }
  }

  .input {
    color: ${e=>{let{theme:t}=e;return t.color.text.main}};
    background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
    border: none;
    font-size: 14px;
    padding: 13px 10px;
    flex-grow: 1;

    &:hover,
    &:focus {
      outline: 0;
    }
    &:disabled {
      background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
      color: ${e=>{let{theme:t}=e;return t.color.text.secondary}}; /* MUI theme.palette.text.disabled */
      cursor: not-allowed;
    }
  }

  .pass-btn {
    display: flex;
    margin-right: 10px;
  }
`;var d=n(5651);const p=e=>{let{className:t,defaultValue:n,disabled:r,error:c=!1,errorText:p,helpText:h,id:f,label:m,name:g,onBlur:y,onChange:v,onClick:b,passwordIcon:_,placeholder:w,style:x,testId:k,topMargin:C=!0,type:S="text",value:M,ariaLabel:T}=e;const E=(0,o.useMemo)((()=>(0,l._j)()),[]),P=f||`input-${g}-${E}`,[I,O]=(0,o.useState)(M),[L,R]=(0,o.useState)(S);(0,o.useEffect)((()=>{M!==I&&O(M)}),[M]);const j=()=>{R("text"===L?"password":"text")},D=(0,o.useMemo)((()=>null===_?null:"password"===S?(0,d.jsx)("div",{className:"pass-btn",onClick:j,children:"text"===L?(0,d.jsx)(a.xu,{children:"visibility"}):(0,d.jsx)(a.xu,{children:"visibility_off"})}):null),[_,L]);return(0,d.jsxs)(u,{error:c,className:i()(t,{"not-empty":!!I}),style:x,topMargin:C,children:[m?(0,d.jsx)("label",{className:"label",htmlFor:P,children:m}):null,(0,d.jsxs)("div",{className:"input-container",children:[(0,d.jsx)("input",{"aria-label":T,"aria-invalid":c,className:"input","data-testid":k,defaultValue:n,disabled:r,id:P,name:g,onBlur:y,onClick:b,placeholder:w,type:L,value:I,onChange:e=>{const t=e.target.value;null===v||void 0===v||v(t),O(t)}}),D]}),h&&!p?(0,d.jsx)(s.x,{variant:"small",secondary:!0,className:"md-text md-text-field-message",children:h}):null,p?(0,d.jsx)("div",{className:"md-text md-text-field-message md-text--error",children:p}):null]})}},87802:(e,t,n)=>{"use strict";n.d(t,{C:()=>r.C,Q:()=>h});var r=n(87455),i=n(19160),o=n.n(i),a=n(18178),s=n(84917);const l=s.ZP.button`
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  text-align: initial;
`;var c=n(1730),u=n(17859);const d=s.ZP.div`
  position: relative;
  margin-top: 18px;

  .label {
    color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
    box-sizing: border-box;
    margin-bottom: 4px;
    display: block;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    text-align: left;
    user-select: none;
    white-space: nowrap;
    width: 100%;
  }

  .textarea {
    color: ${e=>{let{theme:t}=e;return t.color.text.main}};
    background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
    border: ${e=>{let{theme:t}=e;return`1px solid ${e=>e.error?t.color.stroke.error:t.color.stroke.subtle}`}};
    max-height: ${e=>`${e.maxHeight}px`};
    border-radius: 4px;
    font-size: 14px;
    padding: 13px 10px;
    width: 100%;
    max-width: 100%;
    &:hover,
    &:focus {
      outline: 0;
      border-color: ${e=>{let{theme:t}=e;return t.color.stroke.subtle}};
    }
  }
`;var p=n(5651);const h=e=>{let{className:t,error:n,placeholder:r,label:i,value:s,onChange:l,name:h,id:g,defaultValue:y,style:v,disabled:b,rows:_=2,maxHeight:w=150,maxLength:x,"data-cy":k,spellCheckDisabled:C=!1,onFormat:S}=e;const M=(0,a.useMemo)((()=>(0,u._j)()),[]),T=g||`input-${h}-${M}`,[E,P]=(0,a.useState)(s);return(0,a.useEffect)((()=>{s!==E&&P(s)}),[E,s]),(0,p.jsxs)(d,{"data-cy":k,error:!!n,maxHeight:w,className:o()(t,{"not-empty":!!E}),style:v,children:[i?(0,p.jsx)("label",{className:"label",htmlFor:T,children:i}):null,(0,p.jsxs)(m,{children:[S&&(0,p.jsx)(f,{type:"button",onClick:()=>S(E),children:"{}"}),(0,p.jsx)("textarea",{rows:_,name:h,className:"textarea",id:T,disabled:b,defaultValue:y,placeholder:r,value:E,onChange:e=>{const t=e.target.value;x&&t.length>x||(null===l||void 0===l||l(t),P(t))},spellCheck:!C})]}),n&&(0,p.jsx)("div",{className:"md-text md-text-field-message md-text--error",children:n}),x&&(0,p.jsxs)(c.x,{secondary:!0,variant:"small-thin",noMargin:!0,children:[(null===E||void 0===E?void 0:E.length)||0,"/",x]})]})},f=(0,s.ZP)(l)`
  position: absolute;
  top: 4px;
  right: 4px;
  user-select: none;
  padding: 5px;
  border-radius: 4px;
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.secondary}};
  visibility: hidden;
  font-size: 20px;
  font-family: 'Inter', monospace;
`,m=s.ZP.div`
  position: relative;

  :hover ${f} {
    visibility: visible;
  }
`},19629:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=e=>{const t=null===e||void 0===e?void 0:e.click;if("function"!==typeof t)return e;const n=e||{};return n.click=(e=>t=>{var n;null!==t&&void 0!==t&&null!==(n=t.originalEvent)&&void 0!==n&&n._simulated||e(t)})(t),n}},55001:(e,t,n)=>{"use strict";n.d(t,{MW:()=>s,wO:()=>m,aP:()=>c});var r=n(18178),i=n(33765),o=n(19629),a=n(5651);const s=(0,r.memo)((0,r.forwardRef)(((e,t)=>{let{eventHandlers:n,weight:s,opacity:l,fillColor:c,fillOpacity:u,color:d,className:p,...h}=e;const f=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>{n&&Object.keys(n).forEach((e=>{var n;null!==t&&void 0!==t||null===(n=f.current)||void 0===n||n.off(e)}))}),[n,t]);const m=(0,o.B)(n);return(0,a.jsx)(i.Q,{ref:null!==t&&void 0!==t?t:f,pathOptions:{weight:s,opacity:l,fillColor:c,fillOpacity:u,color:d,className:p},...h,eventHandlers:m})})));var l=n(25237);const c=(0,r.forwardRef)(((e,t)=>{let{eventHandlers:n,...r}=e;const i=(0,o.B)(n);return(0,a.jsx)(l.J,{ref:t,...r,eventHandlers:i})}));var u=n(19160),d=n.n(u),p=n(48766),h=n(5395);const f=(0,p.SO)((function(e,t){return{instance:new h.Popup(e,t.overlayContainer),context:t}}),(function(e,t,n,i){const{onClose:o,onOpen:a,position:s}=n;(0,r.useEffect)((function(){const{instance:n}=e;function r(e){e.popup===n&&(n.update(),i(!0),null==a||a())}function l(e){e.popup===n&&(i(!1),null==o||o())}return t.map.on({popupopen:r,popupclose:l}),null==t.overlayContainer?(null!=s&&n.setLatLng(s),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:r,popupclose:l}),null==(e=t.overlayContainer)||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,i,o,a,s])})),m=e=>{const{className:t="",children:n,...r}=e;return(0,a.jsx)(f,{className:d()(t,{"map-popup":!0}),...r,children:n})}},21719:(e,t,n)=>{"use strict";n.d(t,{Q:()=>Ue,H:()=>ze});var r=n(19160),i=n.n(r),o=n(18178),a=n(72457);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.round;function p(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;return c(e)&&t&&(r=n.width/e.offsetWidth||1,i=n.height/e.offsetHeight||1),{width:d(n.width/r),height:d(n.height/i),top:d(n.top/i),right:d(n.right/r),bottom:d(n.bottom/i),left:d(n.left/r),x:d(n.left/r),y:d(n.top/i)}}function h(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return p(m(e)).left+h(e).scrollLeft}function y(e){return s(e).getComputedStyle(e)}function v(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),o=m(t),a=p(e,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==f(t)||v(o))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:h(e);var t}(t)),c(t)?((u=p(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=g(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function _(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:c(e)&&v(e)?e:x(w(e))}function k(e,t){var n;void 0===t&&(t=[]);var r=x(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],v(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(k(w(a)))}function C(e){return["table","td","th"].indexOf(f(e))>=0}function S(e){return c(e)&&"fixed"!==y(e).position?e.offsetParent:null}function M(e){for(var t=s(e),n=S(e);n&&C(n)&&"static"===y(n).position;)n=S(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===y(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&c(e)&&"fixed"===y(e).position)return null;for(var n=w(e);c(n)&&["html","body"].indexOf(f(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var T="top",E="bottom",P="right",I="left",O="auto",L=[T,E,P,I],R="start",j="end",D="clippingParents",A="viewport",N="popper",F="reference",z=L.reduce((function(e,t){return e.concat([t+"-"+R,t+"-"+j])}),[]),B=[].concat(L,[O]).reduce((function(e,t){return e.concat([t,t+"-"+R,t+"-"+j])}),[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?q:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){u(),i.options=Object.assign({},o,i.options,n),i.scrollParents={reference:l(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var s=function(e){var t=$(e);return U.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Z(t,n)){i.rects={reference:b(t,M(n),"fixed"===i.options.strategy),popper:_(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!Z(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var G={passive:!0};const W={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,G)})),l&&c.addEventListener("resize",n.update,G),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),l&&c.removeEventListener("resize",n.update,G)}},data:{}};function Y(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Y(i):null,a=i?K(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case T:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case I:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?X(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case R:t[c]=t[c]-(n[u]/2-r[u]/2);break;case j:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const Q={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ee=Math.max,te=Math.min,ne=Math.round,re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ne(ne(t*r)/r)||0,y:ne(ne(n*r)/r)||0}}(o):"function"===typeof u?u(o):o,p=d.x,h=void 0===p?0:p,f=d.y,g=void 0===f?0:f,v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),_=I,w=T,x=window;if(c){var k=M(n),C="clientHeight",S="clientWidth";k===s(n)&&"static"!==y(k=m(n)).position&&(C="scrollHeight",S="scrollWidth"),i===T&&(w=E,g-=k[C]-r.height,g*=l?1:-1),i===I&&(_=P,h-=k[S]-r.width,h*=l?1:-1)}var O,L=Object.assign({position:a},c&&re);return l?Object.assign({},L,((O={})[w]=b?"0":"",O[_]=v?"0":"",O.transform=(x.devicePixelRatio||1)<2?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",O)):Object.assign({},L,((t={})[w]=b?g+"px":"",t[_]=v?h+"px":"",t.transform="",t))}const oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),i=[I,T].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[I,P].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pe(e,t){return t===A?de(function(e){var t=s(e),n=m(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,l=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:i,height:o,x:a+g(e),y:l}}(e)):c(t)?function(e){var t=p(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):de(function(e){var t,n=m(e),r=h(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=ee(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ee(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+g(e),l=-r.scrollTop;return"rtl"===y(i||n).direction&&(s+=ee(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(m(e)))}function he(e,t,n){var r="clippingParents"===t?function(e){var t=k(w(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&c(e)?M(e):e;return l(n)?t.filter((function(e){return l(e)&&ue(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=pe(e,n);return t.top=ee(r.top,t.top),t.right=te(r.right,t.right),t.bottom=te(r.bottom,t.bottom),t.left=ee(r.left,t.left),t}),pe(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ge(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?D:o,s=n.rootBoundary,c=void 0===s?A:s,u=n.elementContext,d=void 0===u?N:u,h=n.altBoundary,f=void 0!==h&&h,g=n.padding,y=void 0===g?0:g,v=fe("number"!==typeof y?y:me(y,L)),b=d===N?F:N,_=e.elements.reference,w=e.rects.popper,x=e.elements[f?b:d],k=he(l(x)?x:x.contextElement||m(e.elements.popper),a,c),C=p(_),S=J({reference:C,element:w,strategy:"absolute",placement:i}),M=de(Object.assign({},w,S)),I=d===N?M:C,O={top:k.top-I.top+v.top,bottom:I.bottom-k.bottom+v.bottom,left:k.left-I.left+v.left,right:I.right-k.right+v.right},R=e.modifiersData.offset;if(d===N&&R){var j=R[i];Object.keys(O).forEach((function(e){var t=[P,E].indexOf(e)>=0?1:-1,n=[T,E].indexOf(e)>=0?"y":"x";O[e]+=j[n]*t}))}return O}function ye(e,t,n){return ee(e,te(t,n))}const ve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=ge(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Y(t.placement),v=K(t.placement),b=!v,w=X(y),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,O="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L={x:0,y:0};if(k){if(o||s){var j="y"===w?T:I,D="y"===w?E:P,A="y"===w?"height":"width",N=k[w],F=k[w]+g[j],z=k[w]-g[D],B=h?-S[A]/2:0,U=v===R?C[A]:S[A],$=v===R?-S[A]:-C[A],V=t.elements.arrow,q=h&&V?_(V):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=Z[j],G=Z[D],W=ye(0,C[A],q[A]),J=b?C[A]/2-B-W-H-O:U-W-H-O,Q=b?-C[A]/2+B+W+G+O:$+W+G+O,ne=t.elements.arrow&&M(t.elements.arrow),re=ne?"y"===w?ne.clientTop||0:ne.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,oe=k[w]+J-ie-re,ae=k[w]+Q-ie;if(o){var se=ye(h?te(F,oe):F,N,h?ee(z,ae):z);k[w]=se,L[w]=se-N}if(s){var le="x"===w?T:I,ce="x"===w?E:P,ue=k[x],de=ue+g[le],pe=ue-g[ce],he=ye(h?te(de,oe):de,ue,h?ee(pe,ae):pe);k[x]=he,L[x]=he-ue}}t.modifiersData[r]=L}},requiresIfExists:["offset"]};const be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),l=X(s),c=[I,P].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return fe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:me(e,L))}(i.padding,n),d=_(o),p="y"===l?T:I,h="y"===l?E:P,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=M(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=u[p],w=y-d[c]-u[h],x=y/2-d[c]/2+v,k=ye(b,x,w),C=l;n.modifiersData[r]=((t={})[C]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ue(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function we(e){return[T,P,E,I].some((function(t){return e[t]>=0}))}var xe=H({defaultModifiers:[W,Q,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&f(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&f(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=Y(g),v=l||(y===g||!f?[se(g)]:function(e){if(Y(e)===O)return[];var t=se(e);return[ce(e),t,ce(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(Y(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?B:l,u=K(r),d=u?s?z:z.filter((function(e){return K(e)===u})):L,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=ge(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Y(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=b[0],S=0;S<b.length;S++){var M=b[S],j=Y(M),D=K(M)===R,A=[T,E].indexOf(j)>=0,N=A?"width":"height",F=ge(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),U=A?D?P:I:D?E:T;_[N]>w[N]&&(U=se(U));var $=se(U),V=[];if(o&&V.push(F[j]<=0),s&&V.push(F[U]<=0,F[$]<=0),V.every((function(e){return e}))){C=M,k=!1;break}x.set(M,V)}if(k)for(var q=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},Z=f?3:1;Z>0;Z--){if("break"===q(Z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ve,be,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ge(t,{elementContext:"reference"}),s=ge(t,{altBoundary:!0}),l=_e(a,r),c=_e(s,i,o),u=we(l),d=we(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ke=n(81849),Ce=n.n(ke),Se=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Me="undefined"!==typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,Te=[],Ee=n(58777),Pe=n(20304),Ie=n(35397),Oe=n(62957),Le=n(19299);var Re=n(12141),je=n(17859),De=n(44530);var Ae=n(30057),Ne=n(84917),Fe=n(5651);const ze=e=>{let{id:t,testId:n,items:r,fixedToTopItems:s=[],selectedValue:l,selectedItemComponent:c,placeholder:u,subtitle:d,Button:p,onSelect:h,isSearchable:f=!1,searchPlaceholderText:m,disabled:g,autoWidth:y,helpComponent:v,label:b,className:_,noSidePadding:w,itemStyle:x,selectedItemAutoWidth:k,error:C,errorText:S,onClose:M,allowUnexpectedValue:T,paginated:E,placement:P="top",nowrap:I,noPadding:O,hasBorder:L,name:R}=e;const j=(0,o.useMemo)((()=>t||(0,je._j)()),[t]),[D,A]=(0,o.useState)(null),[N,F]=(0,o.useState)(null),[z,B]=(0,o.useState)(!1),[U,$]=(0,o.useState)(""),[V,q]=(0,o.useState)(50),{getHeadingIsStuck:Z,updateStuckHeadings:H}=function(){const[e,t]=(0,o.useState)([]);return{getHeadingIsStuck:function(t){return e[0]===t},updateStuckHeadings:function(e,n){t((t=>{const r=t.includes(n);if(r&&!e)return t.filter((e=>e!==n));if(!r&&e){var i;const e=[...t];return n>(null!==(i=e[0])&&void 0!==i?i:0)?e.unshift(n):e.push(n),e}return t}))}}}(),{styles:G,attributes:W}=function(e,t,n){void 0===n&&(n={});var r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Te},a=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);l({styles:Se(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Se(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=o.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Ce()(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=o.useRef();return Me((function(){d.current&&d.current.setOptions(u)}),[u]),Me((function(){if(null!=e&&null!=t){var r=(n.createPopper||xe)(e,t,u);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(D,N,{placement:P}),Y=(0,Ae.YB)(),K=(0,o.useCallback)((()=>{z&&(B(!1),null===M||void 0===M||M())}),[z,M]);(0,o.useEffect)((()=>(E&&q(50),(0,Re.c0)([N,D],z,K))),[K,z,E,N,D]),(0,o.useEffect)((()=>{const e=null===D||void 0===D?void 0:D.parentElement,t=(0,Re.rP)(e);if(t&&z)return t.addEventListener("scroll",K),()=>{t.removeEventListener("scroll",K)}}),[z,K,null===D||void 0===D?void 0:D.parentElement]);const X=T&&"string"===typeof l?{value:l,label:(0,De.Sc)(l.replace(/[-_]/g," ")),icon:(0,Fe.jsx)(Pe.C,{cropType:l})}:{value:"unselected",label:u},J=(0,o.useMemo)((()=>function(e,t){const n=[];let r="";e=e.sort(((e,t)=>e.category&&t.category?e.category.localeCompare(t.category):0));for(const i of e)i.category&&r!==i.category&&(r=i.category,n.push({value:i.category,label:(0,De.fm)(t({id:`Option.${i.category}`,defaultMessage:i.category})),isHeading:!0})),n.push(i);return n}(r.filter((e=>e.value!==l)),Y.formatMessage)),[r,l,Y.formatMessage]),Q=(0,o.useMemo)((()=>{let e=[];if(f&&U){const t=U.toLowerCase();e=J.filter((e=>{const n="string"===typeof e.label?e.label.toLowerCase():(0,Re.qg)(e.label);return e.isHeading||n.includes(t)})).filter(((e,t,n)=>!e.isHeading||n.some((t=>t.category===e.value)))),E&&(e=e.slice(0,V))}else e=E?[...s,...J.slice(0,V)]:[...s,...J];return e}),[s,f,J,E,V,U]),ee=g||0===J.length&&0===Q.length,te=r.find((e=>e.value===l));return(0,Fe.jsxs)("div",{ref:A,className:i()(_,"fluro-select-lite",{isDisabled:ee,autoWidth:y}),"data-testid":n,role:"listbox","aria-label":R,children:[(0,Fe.jsx)("div",{className:"selected-item",children:p?(0,Fe.jsx)(p,{onClick:()=>!ee&&B((e=>!e))}):(0,Fe.jsx)($e,{style:x,noSidePadding:w,selectedItemAutoWidth:k,item:c||te||X,label:b,subtitle:d,rightIcon:v?(0,Fe.jsxs)("div",{className:"right-icon-block",children:[v," ",(0,Fe.jsx)(a.xu,{children:"arrow_drop_down"})]}):(0,Fe.jsx)(a.xu,{className:"right-icon",children:"arrow_drop_down"}),disabled:ee,onClick:()=>!ee&&B((e=>!e)),nowrap:I,hasBorder:L,noPadding:O})}),z&&(0,Fe.jsx)(Oe.h,{id:"fluro-select-lite-portal",children:(0,Fe.jsxs)("div",{ref:F,style:G.popper,...W.popper,className:"list-container",children:[f&&J.length>5&&(0,Fe.jsx)("div",{className:"fluro-select-lite__search-container",children:(0,Fe.jsx)(a.nv,{id:`search-input-${j}`,placeholder:m||Y.formatMessage({id:"Search",defaultMessage:"Search"}),value:U,onChange:e=>$(String(e)),inlineIndicator:(0,Fe.jsx)(a.xu,{className:"clear-search-btn",onClick:()=>$(""),children:"clear"})})}),(0,Fe.jsxs)("div",{className:"list",children:[Q.map(((e,t)=>(0,Fe.jsx)(Be,{item:e,onClick:(t,n,r)=>{var i,o;n.stopPropagation(),e.customSelectFunction?e.customSelectFunction():(i=t,o=r,null===h||void 0===h||h(i,o),K())},stuck:Z(t),onStuck:e=>H(e,t),nowrap:I},e.category?`${e.value}-${e.category}-${t}`:`${e.value}-${t}`))),E&&J.length>V&&(0,Fe.jsx)(Ee.h,{onEnter:()=>{q((e=>e+50))}},"lazy-load")]})]})}),C&&S?(0,Fe.jsx)("div",{className:"md-text md-text-field-message md-text--error",children:S}):null]})};const Be=e=>{let{item:t,subtitle:n,rightIcon:r,disabled:o,stuck:a,onClick:s,onStuck:l,label:c,noSidePadding:u,selectedItemAutoWidth:d,style:p,nowrap:h,noPadding:f,hasBorder:m,className:g}=e;const y=i()("fluro-select-lite-item",g,{disabled:o,"has-top-label":c,"no-side-padding":u,"width-auto":d,heading:t.isHeading,"no-padding":f}),v=(0,Fe.jsxs)(Fe.Fragment,{children:[c&&(0,Fe.jsx)("div",{className:"top-label",children:c}),(0,Fe.jsxs)(Ie.k,{alignItems:"center",justifyContent:"space-between",className:i()("item-title",{"has-border":m}),nowrap:h,role:"listitem","aria-label":`${t.label}`,children:[(0,Fe.jsxs)("div",{className:"main",children:[t.icon||(0,Fe.jsx)("span",{}),(0,Fe.jsxs)("div",{className:"label",children:[(0,Fe.jsx)("span",{className:i()("input",{"title--heading":t.isHeading}),children:t.label}),n&&(0,Fe.jsx)("span",{className:"subtitle",children:n})]})]}),r]})]});return t.isHeading?(0,Fe.jsx)(Le.L,{style:p,className:y,position:"top",stuck:a,onStuck:l,children:v}):(0,Fe.jsx)("div",{style:p,className:y,onClick:e=>null===s||void 0===s?void 0:s(t.value,e,t.category),children:v})},Ue=e=>{let{color:t}=e;return(0,Fe.jsx)("div",{className:"colored-circle",style:{backgroundColor:t}})},$e=(0,Ne.ZP)(Be)`
  .item-title {
    margin-bottom: -6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
`},68846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(19160),i=n.n(r),o=n(18178),a=n(72457),s=n(2782);var l=n(48954),c=n(5651);const u={boxShadow:"none",color:"rgba(0, 0, 0, 0.54)","&:hover":{borderColor:"#f1f1f1"},border:"1px solid #f1f1f1",borderRadius:"4px",fontSize:"1rem",padding:"3px 10px",height:44},d=()=>(0,c.jsx)(a.xu,{children:"arrow_drop_down"}),p=e=>{let{className:t="",error:n,errorText:r,id:a,isSearchable:p=!1,onChange:h,options:f,placeholder:m,selectClassName:g="",value:y}=e;const v=(0,o.useMemo)((()=>{var e;return null!==(e=f.find((e=>e.value===y)))&&void 0!==e?e:{label:y,value:y}}),[y,f]);return(0,c.jsxs)("div",{className:i()({"fluro-select":!0,[t]:!!t}),children:[m&&(0,c.jsx)("div",{className:"fluro-select-label",children:m}),(0,c.jsx)(s.ZP,{"aria-invalid":n,id:a,instanceId:a,components:{DropdownIndicator:d},isClearable:!1,isSearchable:p,placeholder:m||"Select...",options:f,onChange:e=>e&&h(e.value),value:v,menuPortalTarget:document.body,className:g,theme:e=>({...e,colors:{...e.colors,primary:"rgba(0,0,0,.12)",primary25:"rgba(0,0,0,.12)",primary50:"rgba(0,0,0,.12)"}}),styles:{option:(e,t)=>({...e,...t.isSelected&&{color:"#000"}}),placeholder:e=>({...e,color:"unset",fontSize:"14px"}),valueContainer:e=>({...e,paddingLeft:0,fontSize:"14px"}),indicatorSeparator:()=>({display:"none"}),menuPortal:e=>({...e,zIndex:l.K.Select}),control:e=>({...e,...u})}}),Boolean(n&&r)?(0,c.jsx)("div",{className:"md-text md-text-field-message md-text--error",children:r}):null]})}},10785:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=n(84917).ZP.div`
  color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
  font-size: 12px;
  white-space: ${e=>e.nowrap?"nowrap":"normal"};
`},97461:(e,t,n)=>{"use strict";n.d(t,{dU:()=>p,By:()=>d,uM:()=>u,qp:()=>l,EM:()=>h,Yu:()=>c});var r=n(19160),i=n.n(r),o=(n(18178),n(72457)),a=n(5229);var s=n(5651);const l=e=>{let{children:t,className:n="",sticky:r,...a}=e;return(0,s.jsx)(o.xD,{...a,className:i()({"fluro-table-header":!0,sticky:r,[n]:!0}),children:t})},c=e=>{let{hoverBg:t=!0,children:n,className:r="",...a}=e;return(0,s.jsx)(o.SC,{...a,className:i()("fluro-table-row",r,{"fluro-table-row--reset-bg":!t}),children:n})},u=e=>{let{children:t,className:n="",hasError:r,hasWarning:a,highlight:l=!1,id:c,nowrap:u=!1,title:d,type:p="text",verticalPadding:h,...f}=e;return(0,s.jsx)(o.Dw,{...f,className:i()("fluro-table-column",`type-${p}`,n,{nowrap:u,highlight:l,"pt-05":h,"pb-05":h,"validation-error":r,"soft-warning":!r&&a}),title:d,children:(0,s.jsx)("div",{id:c,children:t})})},d=e=>{let{children:t,className:n="",...r}=e;return(0,s.jsx)(o.RM,{...r,className:`fluro-table-body ${n}`,children:t})},p=e=>{let{children:t,className:n="",fixedDividers:r,baseId:a,plain:l=!0,elevated:c=!0,mini:u=!1,...d}=e;return(0,s.jsx)(o.wQ,{...d,baseId:a,plain:l,fixedDividers:r,className:i()("fluro-data-table",n,{elevated:c,mini:u}),children:t})},h=e=>{let{page:t,rows:n,rowsPerPage:r,rowsPerPageLabel:l=(0,a.t)({id:"Rows per page",defaultMessage:"Rows per page"}),onPagination:c,rowsPerPageItems:u,className:d="",...p}=e;return(0,s.jsx)(o.vI,{...p,className:i()({"fluro-table-pagination":!0,[d]:!0}),page:t,rows:n,rowsPerPage:r,rowsPerPageLabel:l,onPagination:c,rowsPerPageItems:u})}},6160:(e,t,n)=>{"use strict";n.d(t,{By:()=>r.By,EM:()=>r.EM,Yu:()=>r.Yu,dU:()=>r.dU,qp:()=>r.qp,uM:()=>r.uM});var r=n(97461)},8215:(e,t,n)=>{"use strict";n.d(t,{q:()=>s,U:()=>a});var r=n(19160),i=n.n(r);n(18178);var o=n(5651);let a=function(e){return e.Default="defaultSkin",e.Toggle="toggleSkin",e.Chips="chipsSkin",e}({});const s=e=>{let{skin:t=a.Default,tabs:n,selectedTab:r,containerClassName:s="",onTabClick:l,sticky:c,stopPropagation:u=!1,fullWidth:d,noMargin:p}=e;return(0,o.jsx)("div",{className:i()("fluro-tabs-container",s,t,{sticky:c,fullWidth:d,noMargin:p}),children:n.map((e=>(0,o.jsx)("div",{onClick:t=>{u&&t.stopPropagation(),l(e.value)},className:i()(`tab ${e.className||""}`,{active:r===e.value}),children:e.label},e.value)))})}},35448:(e,t,n)=>{"use strict";n.d(t,{EW:()=>u,XN:()=>c,uo:()=>l});var r=n(22219),i=n(29478),o=n.n(i),a=n(73042),s=n(5229);const l=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return 1;const t=o()(e||"");return(null===e||void 0===e?void 0:e.length)>=10&&!t.score?1:t.score},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"password",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z_)().test(e,"",(function(n){if((0,a.o8)(n))return!1;if(t&&(""===n||null===n))return!0;if(""===n||null===n)return this.createError({path:e,message:(0,s.t)({id:"password is required field",defaultMessage:"password is required field"})});if(n.length<10)return this.createError({path:e,message:(0,s.t)({id:"password must be at least {value} characters",defaultMessage:"password must be at least {value} characters"},{value:10})});if(!/[A-Z]/.test(n))return this.createError({path:e,message:(0,s.t)({id:"Reg.Validation.PassUppercaseMsg",defaultMessage:"Password must include an uppercase character"})});if(!/[a-z]/.test(n))return this.createError({path:e,message:(0,s.t)({id:"Reg.Validation.PassLowercaseMsg",defaultMessage:"Password must include a lowercase character"})});if(!/\d/.test(n))return this.createError({path:e,message:(0,s.t)({id:"Reg.Validation.PassNumberMsg",defaultMessage:"Password must include a number"})});if(!/[^a-zA-Z0-9]/.test(n))return this.createError({path:e,message:(0,s.t)({id:"Reg.Validation.PassSpecialCharactersMsg",defaultMessage:"Password must include a special character, e.g. !@#$"})});return!(l(n)<2)||this.createError({path:e,message:(0,s.t)({id:"Password must be stronger, minimum is an 'okay' rating",defaultMessage:"Password must be stronger, minimum is an 'okay' rating"})})}))};function u(e,t){return this.test({name:"equalTo",exclusive:!1,message:t||`${e.path} must be the same as ${e.key}`,params:{reference:e.path},test:function(t){return t===this.resolve(e)}})}},21299:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r=n(36888),i=n(18178),o=n(30057),a=n(12870),s=n(33765),l=n(36777),c=n(23414),u=n(48954),d=n(5651);const p=e=>{var t,n;let{size:p,data:h,style:f={},onEachFeature:m,mrvFieldId:g,kmlId:y}=e;const v=(0,o.YB)(),[b,_]=(0,i.useState)(),w=(0,i.useCallback)(((e,t)=>{null===m||void 0===m||m(e,t)}),[m]),x=(0,i.useMemo)((()=>(0,r.Scw)(h).geometry.coordinates.reverse().join(", ")),[h]);return(0,d.jsx)(l.u,{title:(0,d.jsxs)(l.xu,{display:"flex",flexDirection:"column",gap:3,children:[g&&(0,d.jsx)(c.l,{label:v.formatMessage({id:"MRV Field ID",defaultMessage:"MRV Field ID"}),value:g}),y&&(0,d.jsx)(c.l,{label:v.formatMessage({id:"KML ID",defaultMessage:"KML ID"}),value:y}),(0,d.jsx)(c.l,{label:v.formatMessage({id:"Coordinates (lat, long)",defaultMessage:"Coordinates (lat, long)"}),value:x,valueIsHidden:!0})]}),children:(0,d.jsx)(l.xu,{"aria-label":"geometry preview",position:"relative",zIndex:u.K.Base,children:(0,d.jsx)(a.h,{zoomControl:!1,scrollWheelZoom:!1,dragging:!1,touchZoom:!1,doubleClickZoom:!1,boxZoom:!1,keyboard:!1,tap:!1,attributionControl:!1,whenCreated:_,zoomSnap:.5,style:{width:null!==(t=null===p||void 0===p?void 0:p[0])&&void 0!==t?t:100,height:null!==(n=null===p||void 0===p?void 0:p[1])&&void 0!==n?n:100,backgroundColor:"transparent",...f},children:(0,d.jsx)(s.Q,{data:h,onEachFeature:w,ref:e=>{e&&b&&b.fitBounds(e.getBounds())}})})})})}},29646:(e,t,n)=>{"use strict";n.d(t,{nQ:()=>s,_m:()=>a});n(18178);var r=n(72457),i=n(84917),o=n(5651);const a=e=>(0,o.jsx)(r.qZ,{viewBox:"0 0 15 15",...e,children:(0,o.jsx)("path",{d:"M7.65909 1.31408C8.94867 2.60365 9.29075 4.48541 8.68205 6.08636L14.7251 12.1294L15 14.7387L11.5526 14.1483L11.4084 12.562L9.82217 12.4179L9.67795 10.8316L8.09171 10.6874L6.08636 8.68204C4.48542 9.29077 2.60366 8.94867 1.31409 7.6591C-0.43803 5.90698 -0.438028 3.06621 1.31409 1.3141C3.06621 -0.438024 5.90698 -0.438035 7.65909 1.31408V1.31408ZM4.34239 2.61192C3.86454 2.13407 3.08978 2.13408 2.61193 2.61194C2.13408 3.08978 2.13408 3.86454 2.61193 4.34239C3.08978 4.82024 3.86454 4.82023 4.34239 4.34238C4.82024 3.86453 4.82024 3.08977 4.34239 2.61192V2.61192Z",fill:"currentColor"})}),s=e=>{const{circleColor:t,checkMarkColor:n,...a}=e,s=(0,i.Fg)();return(0,o.jsxs)(r.qZ,{viewBox:"0 0 20 20",...a,children:[(0,o.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:t||s.color.text.success}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15L4 10.6731L5.26 9.46154L8.5 12.5769L15.34 6L16.6 7.21154L8.5 15Z",fill:n||"white"})]})}},22221:(e,t,n)=>{"use strict";n.d(t,{v:()=>T,J$:()=>v,S0:()=>d,_8:()=>c,f7:()=>S,dY:()=>p,Pz:()=>f,tE:()=>k,sz:()=>h,eY:()=>l,bV:()=>w,sQ:()=>C,CW:()=>x,$J:()=>y,NL:()=>g,tm:()=>m,oO:()=>M,rG:()=>u,l1:()=>_,Uo:()=>b});var r=n(5395),i=n.n(r),o=(n(18178),n(72457)),a=n(76516),s=n(5651);const l=e=>(0,s.jsx)(o.qZ,{...e,size:e.size?e.size:20,viewBox:"0 0 15 15",children:(0,s.jsx)("g",{id:"icon/source/leaf",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:(0,s.jsx)("path",{fill:e.fill?e.fill:void 0,d:"M8.34385481,9.22451198 C8.58190168,10.2909068 8.70154697,11.1633359 8.70154697,11.8409993 C8.70154697,12.3468635 8.68089976,12.7856614 8.63960379,13.1573929 C8.63474554,13.2075227 8.62685106,13.2543975 8.61652668,13.2993189 C8.61166842,13.3605153 8.60377395,13.4080417 8.59344957,13.4581715 C8.59830782,13.4972346 8.58859131,13.5389011 8.56247798,13.5831709 C8.48960411,13.9829023 8.37604524,14.3859005 8.22058098,14.7914985 C8.18960939,14.8748314 8.13009612,14.9360295 8.04204583,14.9750976 C7.9643137,15.0083008 7.88110923,15.0083008 7.79305427,14.9750976 C7.71532214,14.9360361 7.65823722,14.8748381 7.62179485,14.7914985 C7.59082326,14.6970973 7.59082326,14.6078994 7.62179485,14.5245665 C7.76693472,14.1359015 7.87321164,13.7550367 7.94062094,13.3826385 C7.9454792,13.3546436 7.95094377,13.3325087 7.95640989,13.3162322 C6.47464896,12.7075051 5.44037635,11.9047757 4.85505342,10.8996139 C4.28481052,9.92761857 4,8.77462416 4,7.44129728 C4,5.91330469 4.4505976,4.47447832 5.35241467,3.12498486 C6.2578696,1.74739153 7.47061518,0.705663248 8.98950098,0 C8.94820656,0.166665859 8.90144447,0.394531422 8.84982567,0.683596688 C8.76176916,1.21679411 8.71743853,1.61719217 8.71743853,1.88345754 C8.71743853,2.9446524 9.18140606,4.21161293 10.1087193,5.6836058 C10.5957577,6.45573539 10.9145838,6.99739943 11.0645757,7.30859793 C11.3548586,7.9199283 11.5,8.48892554 11.5,9.01692298 C11.5,9.93878519 11.1890715,10.7695812 10.5672145,11.5084109 C10.3698526,11.7414765 9.95810549,12.1112747 9.33139798,12.6164722 C9.34718693,12.3495402 9.35204518,12.0917414 9.34718693,11.8417426 C9.31621534,10.8749473 9.13221095,9.90808533 8.79516444,8.94209001 C8.57776322,8.38675937 8.37796056,7.88089515 8.1963783,7.42516403 C8.11864618,7.23049831 8.04880852,7.04496587 7.98625281,6.86656674 C7.98625281,7.05015918 7.99414729,7.21943503 8.00993624,7.40823411 C8.0614742,7.8860518 8.17321724,8.49151553 8.34385481,9.22451198 Z",id:"Page-1",transform:"translate(7.750000, 7.500000) rotate(-45.000000) translate(-7.750000, -7.500000) "})})}),c=e=>(0,s.jsx)(o.qZ,{...e,className:`fluro-icon__download ${e.className||""}`,children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",children:(0,s.jsx)("g",{transform:"translate(-227.000000, -421.000000)",children:(0,s.jsxs)("g",{transform:"translate(228.000000, 420.000000)",children:[(0,s.jsx)("path",{d:"M2.34920009,10.5088088 L0.0158337378,20.1887438 C-0.0807816295,20.5754572 0.279247465,21.0025624 0.701260104,20.9999884 L20.2987374,20.9999884 C20.7207501,21.0025665 21.0807885,20.5754572 20.9841638,20.1887438 L18.6507974,10.5088088 C18.5787921,10.2209187 18.2789055,9.99834621 17.9653711,10.0000622 L14.6986582,10.0000622 C14.3286096,9.99490544 13.9886148,10.3111621 13.9886148,10.6600578 C13.9886148,11.0089534 14.3285863,11.3252013 14.6986582,11.3200533 L17.4039631,11.3200533 L19.4164916,19.6799972 L1.58257258,19.6799972 L3.59510106,11.3200533 L6.30040601,11.3200533 C6.67045458,11.3252101 7.01044939,11.0089534 7.01044939,10.6600578 C7.01044939,10.3111621 6.67047791,9.99491424 6.30040601,10.0000622 L3.03369311,10.0000622 C2.70464179,10.0026406 2.41390434,10.2441286 2.34826675,10.5088088 L2.34920009,10.5088088 Z"}),(0,s.jsx)("path",{d:"M10.4986919,18 C10.3378411,17.9938845 10.1514914,17.9274773 10.0345953,17.8182572 L6.20931356,14.2393216 C5.99044894,13.9964237 5.89991577,13.5315647 6.15305942,13.2607064 C6.4026928,12.9933375 6.88699596,13.0020835 7.13750691,13.2676965 L9.82375473,15.7841356 L9.82375473,1.67105042 C9.82375473,1.30058585 10.126132,1 10.4988044,1 C10.8714769,1 11.1738542,1.30058585 11.1738542,1.67105042 L11.1738542,15.7841356 L13.860102,13.2676965 C14.0912615,13.0387788 14.5922834,12.9959658 14.8445495,13.2607064 C15.0968156,13.5245858 15.0159491,14.0068921 14.7882953,14.2393216 L10.9630136,17.8182572 C10.8320472,17.9405852 10.6782327,18 10.498917,18 L10.4986919,18 Z",id:"Fill-2"})]})})})}),u=e=>(0,s.jsx)(o.qZ,{...e,viewBox:"0 0 12 15",className:`fluro-icon__upload ${e.className||""}`,children:(0,s.jsx)("path",{d:"M3.49984 11.3333H8.49984V6.33333H11.8332L5.99984 0.5L0.166504 6.33333H3.49984V11.3333ZM0.166504 13H11.8332V14.6667H0.166504V13Z",fill:e.fill||"white"})}),d=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 38 38",...e,children:[(0,s.jsx)("path",{d:"M12.8811 22.1059C12.7474 21.8153 12.3987 21.6874 12.108 21.8211L3.88878 25.6633C3.59814 25.8028 3.47606 26.1458 3.60974 26.4364L6.0337 31.6214C6.12668 31.8249 6.24876 32.0167 6.38826 32.1911C6.88816 31.9411 7.44037 31.7783 8.02165 31.7203C8.539 30.8715 9.30629 30.2205 10.2073 29.8369L9.92822 29.2382C9.79454 28.9476 9.91662 28.6046 10.2073 28.4651C10.4979 28.3314 10.8467 28.4592 10.9804 28.7499L11.3408 29.523C11.5791 29.4823 11.8232 29.4648 12.0731 29.4648C12.3115 29.4648 12.544 29.4823 12.7765 29.5172C13.288 28.4418 14.1483 27.5699 15.1946 27.041L12.8811 22.1059Z",fill:e.fill||"white"}),(0,s.jsx)("path",{d:"M7.41134 18.0309L4.09223 19.5829L0.866149 12.6832C0.43601 11.7705 0.831273 10.6777 1.7497 10.2476C1.99965 10.1313 2.26701 10.0732 2.52859 10.0732C3.21449 10.0732 3.87716 10.4627 4.18525 11.1311L7.41134 18.0309Z",fill:e.fill||"white"}),(0,s.jsx)("path",{d:"M7.90464 19.0783L4.58557 20.6304L5.90083 23.443L9.2199 21.8909L7.90464 19.0783Z",fill:e.fill||"white"}),(0,s.jsx)("path",{d:"M36.9633 13.8219C36.2425 13.5836 34.8125 12.5605 32.3944 12.8338C27.8198 13.3104 26.5642 17.5479 26.4944 17.6525C24.7041 18.5593 23.28 19.6754 22.3906 20.4601C22.4662 17.7514 22.8092 14.8973 23.6404 12.3862C24.8029 12.5315 26.7386 12.3164 28.2557 11.677C32.2433 9.98545 33.6907 5.3876 32.8711 1.51045C32.8594 1.45234 32.8362 1.39423 32.8071 1.34193C32.6385 1.05129 32.3479 1.04547 32.0108 1.01638C23.6869 0.382731 19.9435 6.05019 22.5766 11.8514C22.0012 13.5197 21.6408 15.3158 21.4315 17.1294C21.0188 16.6063 20.4375 15.9959 19.647 15.3333C19.6412 15.2751 19.554 14.6648 19.554 14.6648C19.5482 14.6415 19.5424 14.624 19.5424 14.595C19.0134 11.0085 16.0198 8.36374 12.5263 8.15449C12.0148 8.12539 9.79434 8.19515 9.52115 8.57881C9.52115 8.58463 9.51533 8.58463 9.51533 8.59044C9.28863 8.89854 9.52115 11.4386 10.6488 13.2232C11.9858 15.3449 14.3399 16.7109 16.9383 16.7109C17.6823 16.7109 18.1357 16.6005 19.182 16.4725V16.4668H19.211L19.182 16.4725C20.6235 17.7339 21.1234 18.7163 21.2571 19.0418C20.9374 24.1803 21.664 29.0456 21.9489 30.7313C21.8733 30.7545 21.7977 30.772 21.728 30.7952C21.2687 28.9526 19.6063 27.604 17.6299 27.604C15.6187 27.604 13.9272 29.0281 13.5145 30.9231C13.0611 30.7255 12.5729 30.6266 12.0729 30.6266C10.5791 30.6266 9.27698 31.5218 8.74804 32.8646C6.66706 32.7251 4.91162 34.3875 4.91162 36.451C4.91162 36.7708 5.16739 37.0323 5.4929 37.0323H29.4008C29.7264 37.0323 29.9821 36.7708 29.9821 36.451C29.9821 34.3933 28.2557 32.7193 26.1573 32.8646C25.6574 31.609 24.489 30.7487 23.1172 30.6383C22.9138 29.4292 22.4081 26.023 22.3732 22.0761C22.8614 21.582 24.46 20.0649 26.7153 18.8616C27.6396 19.2336 28.6161 19.8149 30.3716 19.8149C33.1094 19.8149 35.7019 18.2106 36.8354 15.5658C37.2772 14.5136 37.2888 14.5718 37.3062 14.3974C37.3236 14.1532 37.1493 13.8974 36.9633 13.8219ZM27.9709 4.99811C28.651 4.64936 29.1916 5.66659 28.5057 6.0328C26.4131 7.11397 25.0064 8.9973 24.0647 11.2585C23.8671 11.2527 23.6927 11.2353 23.559 11.2236C23.4195 10.8923 23.309 10.5784 23.2219 10.2703C24.2565 8.02661 25.7678 6.13746 27.9709 4.99811ZM17.909 15.4727C16.8801 14.7403 15.5548 13.9614 13.8342 13.1825C13.1483 12.8686 13.6075 11.8049 14.3167 12.1188C15.9559 12.8628 17.258 13.6126 18.3101 14.3334C18.4263 14.874 18.3915 14.7984 18.4786 15.3914L17.909 15.4727ZM28.1162 18.1932C27.9767 18.1466 27.843 18.0827 27.6163 17.9838C27.9012 17.3387 27.8372 17.4375 28.0872 16.9491C29.273 16.5016 30.575 16.1703 31.9643 16.0889C32.284 16.0772 32.5572 16.3098 32.5804 16.6295C32.6385 17.6642 31.4527 16.8096 28.1162 18.1932Z",fill:e.fill||"white"})]}),p=e=>(0,s.jsx)(a.ZP,{...e,children:"edit"}),h=e=>(0,s.jsx)(o.qZ,{viewBox:"0 0 16 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0C3.58192 0 0 3.58192 0 8C0 12.4181 3.58192 16 8 16C12.4181 16 16 12.4181 16 8C16 3.58192 12.4181 0 8 0ZM8.31873 3.61248C8.49073 3.41747 8.70049 3.31874 8.94081 3.31874C9.13618 3.31874 9.30818 3.39186 9.43704 3.53061C9.56709 3.66873 9.6324 3.84498 9.6324 4.05435C9.6324 4.31685 9.54431 4.55061 9.37111 4.74872C9.19311 4.95309 8.98457 5.05685 8.75202 5.05685C8.56025 5.05685 8.39064 4.98185 8.2612 4.83997C8.13295 4.70122 8.06763 4.51934 8.06763 4.30059C8.06763 4.03309 8.15213 3.80122 8.31873 3.61246V3.61248ZM9.59704 11.1493C8.96118 11.773 8.5069 12.1618 8.20965 12.3387C7.89262 12.528 7.63073 12.6205 7.41078 12.6205C7.19203 12.6205 7.01345 12.5443 6.87981 12.3949C6.75036 12.2505 6.68504 12.0549 6.68504 11.8149C6.68504 11.2012 7.01825 9.77682 7.70445 7.45922C7.71583 7.41984 7.72542 7.38297 7.73142 7.34797C7.70564 7.35922 7.67628 7.37609 7.64152 7.39797C7.58518 7.43484 7.41438 7.57485 6.91396 8.08485C6.83785 8.16297 6.718 8.16985 6.63349 8.10172L6.33744 7.86297C6.29009 7.82485 6.26013 7.76797 6.25533 7.70609C6.24994 7.64422 6.27031 7.58297 6.30987 7.53672C6.77133 7.00672 7.20163 6.62235 7.58999 6.3936C7.99631 6.15485 8.33971 6.03859 8.63936 6.03859C8.83353 6.03859 8.98996 6.08859 9.10502 6.18859C9.23028 6.29796 9.2968 6.44921 9.2968 6.62672C9.2968 6.74359 9.24346 7.04734 8.85212 8.41728C8.29238 10.3754 8.15874 11.0861 8.14974 11.3323C8.25582 11.2673 8.50633 11.0817 9.04091 10.5573C9.12421 10.4748 9.25486 10.4767 9.33697 10.5598L9.59946 10.8267C9.64141 10.8692 9.66478 10.9279 9.66418 10.9886C9.66358 11.0498 9.63961 11.1073 9.59706 11.1492L9.59704 11.1493Z",fill:"currentColor"})}),f=e=>(0,s.jsx)(o.qZ,{viewBox:"0 0 16 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.584 3.576 0 7.992 0C12.416 0 16 3.584 16 8C16 12.416 12.416 16 7.992 16C3.576 16 0 12.416 0 8ZM7.36 5.28C7.36 4.83817 7.71817 4.48 8.16 4.48C8.60183 4.48 8.96 4.83817 8.96 5.28V8.48C8.96 8.92183 8.60183 9.28 8.16 9.28C7.71817 9.28 7.36 8.92183 7.36 8.48V5.28ZM8.96 11.04C8.96 11.4818 8.60183 11.84 8.16 11.84C7.71817 11.84 7.36 11.4818 7.36 11.04C7.36 10.5982 7.71817 10.24 8.16 10.24C8.60183 10.24 8.96 10.5982 8.96 11.04Z",fill:e.fill||"currentColor"})}),m=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 16 16",...e,children:[(0,s.jsx)("path",{d:"M0 8C0 3.58172 3.58172 0 8 0V0C12.4183 0 16 3.58172 16 8V8C16 12.4183 12.4183 16 8 16V16C3.58172 16 0 12.4183 0 8V8Z",fill:"currentColor"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.97451 10.8624C6.78109 11.0479 6.47586 11.0479 6.28243 10.8624L3.57632 8.26782C3.37104 8.071 3.37104 7.74282 3.57632 7.546L3.81386 7.31825C4.00729 7.13279 4.31252 7.13279 4.50594 7.31825L6.28243 9.02154C6.47586 9.20699 6.78109 9.20699 6.97451 9.02154L11.4939 4.68841C11.6873 4.50295 11.9925 4.50295 12.1859 4.68841L12.4235 4.91616C12.6288 5.11298 12.6288 5.44116 12.4235 5.63798L9.71419 8.23564L6.97451 10.8624Z",fill:"white"})]}),g=e=>(0,s.jsxs)(o.qZ,{...e,viewBox:"0 0 54 54",children:[(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0",children:(0,s.jsx)("path",{d:"M271 640 338 640 338 712 271 712Z",fillRule:"evenodd",clipRule:"evenodd"})})}),(0,s.jsxs)("g",{clipPath:"url(#clip0)",transform:"translate(-268 -658)",children:[(0,s.jsx)("text",{fill:"currentColor",fontSize:"33",transform:"translate(299.926 682)",children:"+"}),(0,s.jsx)("path",{d:"M286.5 668.5 292.5 668.5 292.5 673.5 286.5 673.5Z",stroke:"currentColor",strokeMiterlimit:"8",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M273.5 695.5 278.5 695.5 278.5 701.5 273.5 701.5Z",stroke:"currentColor",strokeMiterlimit:"8",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M301.5 700.5C301.5 698.843 302.843 697.5 304.5 697.5 306.157 697.5 307.5 698.843 307.5 700.5 307.5 702.157 306.157 703.5 304.5 703.5 302.843 703.5 301.5 702.157 301.5 700.5Z",stroke:"currentColor",strokeMiterlimit:"8",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M290.55 670.5 276.5 694.751",stroke:"currentColor",strokeMiterlimit:"8",fill:"none",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M279.5 698.5 300.577 700.83",stroke:"currentColor",strokeMiterlimit:"8",fill:"none",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M292.5 674.5C295.817 677.104 299.133 679.708 301.3 683.375 303.467 687.042 304.483 691.771 305.5 696.5",stroke:"currentColor",strokeMiterlimit:"8",strokeDasharray:"8 3",fill:"none",fillRule:"evenodd"})]})]}),y=e=>(0,s.jsxs)(o.qZ,{...e,viewBox:"0 0 144 144",children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{fill:"none",stroke:"currentColor",strokeWidth:"8",strokeLinecap:"round",strokeMiterlimit:"10",x1:"26.89",y1:"37.505",x2:"108.329",y2:"16.034"}),(0,s.jsx)("line",{fill:"none",stroke:"currentColor",strokeWidth:"8",strokeLinecap:"round",strokeMiterlimit:"10",x1:"108.329",y1:"17.158",x2:"126.376",y2:"126.299"}),(0,s.jsx)("line",{fill:"none",stroke:"currentColor",strokeWidth:"8",strokeLinecap:"round",strokeMiterlimit:"10",x1:"126.376",y1:"127.391",x2:"25.764",y2:"105.985"}),(0,s.jsx)("line",{fill:"none",stroke:"currentColor",strokeWidth:"8",strokeLinecap:"round",strokeMiterlimit:"10",x1:"24.311",y1:"105.397",x2:"27.217",y2:"38.476"})]}),(0,s.jsxs)("g",{children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("rect",{x:"110.198",y:"109.037",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"27.84",height:"26.674"}),(0,s.jsx)("rect",{x:"115.967",y:"113.892",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"17.306",height:"16.052"})]}),(0,s.jsxs)("g",{children:[(0,s.jsx)("rect",{x:"94.409",y:"3.821",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"27.84",height:"26.674"}),(0,s.jsx)("rect",{x:"100.178",y:"8.675",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"17.306",height:"16.052"})]}),(0,s.jsxs)("g",{children:[(0,s.jsx)("rect",{x:"13.297",y:"92.061",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"27.84",height:"26.674"}),(0,s.jsx)("rect",{x:"19.065",y:"96.915",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"17.306",height:"16.052"})]}),(0,s.jsxs)("g",{children:[(0,s.jsx)("rect",{x:"12.97",y:"25.139",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"27.84",height:"26.674"}),(0,s.jsx)("rect",{x:"18.738",y:"29.994",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel",strokeMiterlimit:"10",width:"17.306",height:"16.052"})]})]})]}),v=e=>(0,s.jsx)(o.qZ,{...e,viewBox:"0 0 1200 1200",children:(0,s.jsx)("g",{transform:"translate(600 600) scale(0.95 0.95) rotate(-141) translate(-600 -600)",children:(0,s.jsx)(o.qZ,{style:{color:"currentcolor"},viewBox:"0 0 60 60",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("ellipse",{fill:"inherit",cx:"30",cy:"30",rx:"5.5",ry:"5.4"}),(0,s.jsx)("path",{fill:"inherit",d:"M60,30C60,13.5,46.5,0,30,0S0,13.5,0,30s13.4,30,30,30c5.4,0,10.5-1.5,14.9-4c0.9,0.6,1.9,0.9,3,0.9c3,0,5.5-2.4,5.5-5.4   c0-0.8-0.2-1.5-0.5-2.2C57.3,44.1,60,37.3,60,30z M2.8,30C2.8,15,15,2.8,30,2.8S57.2,15,57.2,30c0,6.5-2.3,12.4-6.1,17.1   c-0.9-0.7-2-1.1-3.2-1.1c-3,0-5.5,2.4-5.5,5.4c0,0.9,0.2,1.7,0.6,2.4c-3.9,2.1-8.3,3.3-13.1,3.3C15,57.2,2.8,45,2.8,30z"})]})})})}),b=new(i().Icon)({iconUrl:"/assets/new-tsp-marker.svg",iconRetinaUrl:"/assets/new-tsp-marker.svg",popupAnchor:[0,-35],shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0/images/marker-shadow.png",shadowSize:[30,30],shadowAnchor:[10,30],iconSize:[20,35],iconAnchor:[10,35]}),_=new(i().Icon)({iconUrl:"/assets/regrow-location-pin.svg",iconSize:[40,60],iconAnchor:[20,60]}),w=e=>(0,s.jsxs)(o.qZ,{...e,viewBox:"0 0 48 48",children:[(0,s.jsx)("path",{d:"M38,36.75H10A2.75,2.75,0,0,1,7.25,34V14A2.75,2.75,0,0,1,10,11.25H38A2.75,2.75,0,0,1,40.75,14V34A2.75,2.75,0,0,1,38,36.75Zm-28-24A1.25,1.25,0,0,0,8.75,14V34A1.25,1.25,0,0,0,10,35.25H38A1.25,1.25,0,0,0,39.25,34V14A1.25,1.25,0,0,0,38,12.75Z"}),(0,s.jsx)("path",{d:"M24,24.25a2.79,2.79,0,0,1-1.65-.55L8.23,13.11a.75.75,0,1,1,.9-1.2L23.25,22.5a1.26,1.26,0,0,0,1.5,0L38.87,11.91a.75.75,0,1,1,.9,1.2L25.65,23.7A2.79,2.79,0,0,1,24,24.25Z"})]}),x=e=>(0,s.jsx)(o.qZ,{...e,viewBox:"0 0 100 100",children:(0,s.jsx)("path",{d:"M72.34,40.365h-5.215V29.558c0-9.442-7.683-17.125-17.125-17.125s-17.125,7.683-17.125,17.125v10.808H27.66  c-3.584,0-6.5,2.916-6.5,6.5v34.202c0,3.584,2.916,6.5,6.5,6.5h44.68c3.584,0,6.5-2.916,6.5-6.5V46.865  C78.84,43.281,75.924,40.365,72.34,40.365z M35.875,29.558c0-7.788,6.337-14.125,14.125-14.125s14.125,6.337,14.125,14.125v10.808  h-28.25V29.558z M75.84,81.067c0,1.93-1.57,3.5-3.5,3.5H27.66c-1.93,0-3.5-1.57-3.5-3.5V46.865c0-1.93,1.57-3.5,3.5-3.5h44.68  c1.93,0,3.5,1.57,3.5,3.5V81.067z M50,55.269c-2.781,0-5.044,2.263-5.044,5.044c0,2.256,1.498,4.147,3.544,4.79v7.065  c0,0.828,0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-7.065c2.046-0.643,3.544-2.534,3.544-4.79C55.044,57.531,52.781,55.269,50,55.269z   M50,62.356c-1.127,0-2.044-0.917-2.044-2.044s0.917-2.044,2.044-2.044s2.044,0.917,2.044,2.044S51.127,62.356,50,62.356z"})}),k=e=>(0,s.jsx)(o.qZ,{...e,viewBox:"0 0 18 11",children:(0,s.jsx)("g",{id:"FluroViewer",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("g",{id:"Icons",transform:"translate(-104.000000, -221.000000)",fill:"currentColor",fillRule:"nonzero",children:(0,s.jsx)("g",{id:"Icons/Other/icon-show",transform:"translate(102.000000, 216.000000)",children:(0,s.jsx)("path",{d:"M10.9991896,15.7999995 C9.08190631,15.7999995 7.38130231,15.1500299 5.89409456,14.1849236 C4.439717,13.242796 3.19545268,12.0052276 2.1448865,10.790638 C1.94790534,10.5641335 1.95447138,10.2293007 2.14816952,10.0060788 C3.30707534,8.66674755 4.83367932,7.29787223 6.51786823,6.33604857 C7.93613257,5.52851061 9.46930259,5 10.9991896,5 C12.5323596,5 14.0655296,5.52851061 15.483794,6.33604857 C17.1646999,7.30115491 18.6945869,8.67003022 19.8534927,10.0093615 C20.0504738,10.2391487 20.0471908,10.5739815 19.8534927,10.7939207 C18.8029265,12.0052276 17.5586622,13.2460786 16.1075676,14.1849236 C14.6203599,15.1500299 12.9197559,15.7999995 10.9991896,15.7999995 Z M10.9991896,7.28145886 C12.7227747,7.28145886 14.121341,8.67659557 14.121341,10.3999997 C14.121341,12.1234039 12.7227747,13.5218233 10.9991896,13.5218233 C9.27560445,13.5218233 7.88032124,12.1234039 7.88032124,10.3999997 C7.88032124,8.67659557 9.27560445,7.28145886 10.9991896,7.28145886 Z M6.54413238,13.1837078 C7.85077407,14.0306379 9.3346988,14.6018233 10.9991896,14.6018233 C12.6636804,14.6018233 14.1476051,14.0306379 15.4542468,13.1837078 C16.6426998,12.4122793 17.6899829,11.4143462 18.6026623,10.4032824 C17.5750773,9.28389038 16.2881337,8.17762903 14.8862845,7.37665642 C13.6387371,6.66431603 12.3058313,6.20145891 10.9991896,6.20145891 C9.69583092,6.20145891 8.36292508,6.66431603 7.11537774,7.37665642 C5.71352849,8.17762903 4.42658492,9.28389038 3.39899988,10.4032824 C4.30839623,11.4143462 5.35896241,12.4122793 6.54413238,13.1837078 Z",id:"Shape"})})})})}),C=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 23 22",fill:"#536E7A",...e,children:[(0,s.jsx)("path",{d:"M0.615234 4.71286V-0.00012207H8.31462L8.59292 4.36252L12.3037 6.37324V12.0376H0.615234V4.71286Z",fill:e.fill||"#536E7A"}),(0,s.jsx)("path",{d:"M22.3753 12.0376H13.5015L13.649 6.11339L9.52075 4.08814V-0.00012207H22.6152L22.3753 12.0376ZM14.6353 11.2074H21.2783L21.4859 0.830067H10.6339V3.64067L14.7733 5.67131L14.6353 11.2074Z",fill:e.fill||"#536E7A"}),(0,s.jsx)("path",{d:"M11.013 21.9999H0.615234V12.8678H12.8603V17.878L11.013 21.9999ZM1.72843 21.1697H10.2115L11.7471 17.7427V13.698H1.72843V21.1697Z",fill:e.fill||"#536E7A"}),(0,s.jsx)("path",{d:"M22.3226 21.9999H12.0818L14.2069 17.3745L13.9113 12.8678H22.3226V21.9999ZM13.6391 21.1697H21.2094V13.698H15.0796L15.3284 17.4932L13.6391 21.1697Z",fill:e.fill||"#536E7A"}),(0,s.jsx)("path",{d:"M6.98621 3.74985C6.23815 2.89434 5.37988 2.64238 4.59731 2.67849C3.84312 2.64238 2.95702 2.89434 2.2084 3.74985C0.32266 5.90627 4.59731 9.65666 4.59731 9.65666C4.59731 9.65666 8.87195 5.90627 6.98621 3.74985ZM4.59786 5.46876C3.8921 5.46876 3.31992 5.0491 3.31992 4.53106C3.31992 4.01344 3.8921 3.59336 4.59786 3.59336C5.30362 3.59336 5.8758 4.01302 5.8758 4.53106C5.8758 5.0491 5.30362 5.46876 4.59786 5.46876Z",fill:e.fill||"#536E7A"})]}),S=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 38 38",...e,children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.35593 7.27002C9.24859 7.27002 11.5973 9.68226 11.5973 12.6535C11.5973 15.6243 9.24859 18.0366 6.35593 18.0366C3.4629 18.0366 1.11414 15.6243 1.11414 12.6535C1.11414 9.68226 3.4629 7.27002 6.35593 7.27002ZM6.35593 9.39992C8.10418 9.39992 9.5235 10.8576 9.5235 12.6535C9.5235 14.449 8.10418 15.9067 6.35593 15.9067C4.60731 15.9067 3.18799 14.449 3.18799 12.6535C3.18799 10.8576 4.60731 9.39992 6.35593 9.39992Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.35593 21.95C9.24859 21.95 11.5973 24.3622 11.5973 27.333C11.5973 30.3043 9.24859 32.7165 6.35593 32.7165C3.4629 32.7165 1.11414 30.3043 1.11414 27.333C1.11414 24.3622 3.4629 21.95 6.35593 21.95ZM6.35593 24.0799C8.10418 24.0799 9.5235 25.5375 9.5235 27.333C9.5235 29.1289 8.10418 30.5866 6.35593 30.5866C4.60731 30.5866 3.18799 29.1289 3.18799 27.333C3.18799 25.5375 4.60731 24.0799 6.35593 24.0799Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.6443 7.27002C33.5373 7.27002 35.886 9.68226 35.886 12.6535C35.886 15.6243 33.5373 18.0366 30.6443 18.0366C27.7516 18.0366 25.4028 15.6243 25.4028 12.6535C25.4028 9.68226 27.7516 7.27002 30.6443 7.27002ZM30.6443 9.39992C32.3929 9.39992 33.8122 10.8576 33.8122 12.6535C33.8122 14.449 32.3929 15.9067 30.6443 15.9067C28.896 15.9067 27.4767 14.449 27.4767 12.6535C27.4767 10.8576 28.896 9.39992 30.6443 9.39992Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.6443 21.95C33.5373 21.95 35.886 24.3622 35.886 27.333C35.886 30.3043 33.5373 32.7165 30.6443 32.7165C27.7516 32.7165 25.4028 30.3043 25.4028 27.333C25.4028 24.3622 27.7516 21.95 30.6443 21.95ZM30.6443 24.0799C32.3929 24.0799 33.8122 25.5375 33.8122 27.333C33.8122 29.1289 32.3929 30.5866 30.6443 30.5866C28.896 30.5866 27.4767 29.1289 27.4767 27.333C27.4767 25.5375 28.896 24.0799 30.6443 24.0799Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{d:"M26.4463 26.2681H10.0283V28.398H26.4463V26.2681Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{d:"M26.4463 11.5884H10.0283V13.7183H26.4463V11.5884Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{d:"M5.31909 23.4156V17.0464C5.65061 17.2045 5.99804 17.2884 6.3562 17.2884C6.71399 17.2884 7.06142 17.2045 7.39294 17.0464V23.4156H5.31909Z",fill:e.fill||"#4988EF"}),(0,s.jsx)("path",{d:"M29.6078 23.4156V17.0464C29.9393 17.2045 30.2867 17.2884 30.6445 17.2884C31.0027 17.2884 31.3501 17.2045 31.6816 17.0464V23.4156H29.6078Z",fill:e.fill||"#4988EF"})]}),M=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 30 35",...e,children:[(0,s.jsx)("g",{clipPath:"url(#clip0_14639_224592)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5264 13.2934V18.3459V22.1861C16.5264 22.7597 16.058 23.1831 15.5022 23.2104C14.9491 23.235 14.478 22.7215 14.478 22.1861V20.7767V14.6514V13.2969C14.0528 13.7265 13.6277 14.156 13.2025 14.5847C12.6891 15.1036 12.1743 15.6226 11.6622 16.1416C11.258 16.5486 10.6203 16.5144 10.2147 16.1416C9.80497 15.766 9.83504 15.0764 10.2147 14.6939C10.4018 14.5028 10.5929 14.3116 10.7814 14.1204C11.6007 13.2927 12.42 12.4638 13.2394 11.6375C13.7387 11.1328 14.2394 10.6281 14.7375 10.1234C14.7502 10.108 14.7634 10.0929 14.777 10.078C14.9877 9.84719 15.3029 9.75519 15.6056 9.78857C15.7092 9.79645 15.8089 9.82287 15.902 9.8642C16.022 9.91379 16.1326 9.98542 16.2245 10.078C16.2254 10.0789 16.2264 10.0798 16.2273 10.0806C16.2511 10.1025 16.2734 10.1253 16.2943 10.1492C16.459 10.3166 16.6262 10.4841 16.7912 10.6516C17.6106 11.4792 18.4299 12.3082 19.2493 13.1345C19.7627 13.6534 20.2775 14.1724 20.7896 14.6914C21.1938 15.0983 21.1693 15.7293 20.7896 16.139C20.4182 16.546 19.7217 16.5214 19.3421 16.139C19.155 15.9478 18.9638 15.7566 18.7754 15.5654C18.0257 14.8082 17.2761 14.0498 16.5264 13.2934ZM16.229 3.05983H14.816V3.05905C14.395 3.0788 13.976 3.11565 13.5588 3.17146C13.6517 3.1578 13.7391 3.14687 13.832 3.13322C12.5662 3.30393 11.329 3.64261 10.1518 4.137C10.2337 4.10286 10.3157 4.06872 10.3976 4.03458C9.64925 4.35144 8.92958 4.73109 8.24271 5.16811C7.94231 5.35795 7.6446 5.5628 7.35783 5.77858C7.31003 5.81682 7.26223 5.85369 7.27999 5.83594C7.21171 5.89193 7.14069 5.94656 7.07242 6.00392C6.94542 6.10634 6.81979 6.21287 6.69689 6.32212C6.15883 6.79331 5.6563 7.30543 5.192 7.8517C5.06636 7.99921 4.94346 8.14944 4.87518 8.23684C4.84787 8.27235 4.82056 8.30513 4.79325 8.34337C4.74819 8.40346 4.70312 8.46219 4.65942 8.52364C4.44502 8.82001 4.24019 9.12729 4.049 9.43866C3.66799 10.06 3.33343 10.7128 3.04939 11.3848C3.08353 11.3028 3.11766 11.2209 3.1518 11.139C2.65609 12.3174 2.31879 13.552 2.1481 14.8194C2.16175 14.7265 2.17268 14.6391 2.18633 14.5462C2.01564 15.8382 2.01564 17.1452 2.18633 18.4357C2.17268 18.3429 2.16175 18.2555 2.1481 18.1626C2.3188 19.4285 2.65745 20.6658 3.1518 21.843C3.11766 21.7611 3.08353 21.6792 3.04939 21.5972C3.36622 22.3456 3.74584 23.0654 4.18283 23.7523C4.37265 24.0527 4.57748 24.3505 4.79325 24.6373C4.83148 24.6851 4.86835 24.7329 4.8506 24.7151C4.90659 24.7834 4.96122 24.8544 5.01857 24.9227C5.12099 25.0497 5.22751 25.1753 5.33675 25.2982C5.8079 25.8363 6.31998 26.3389 6.86621 26.8032C7.01371 26.9289 7.16392 27.0518 7.25132 27.1201C7.28683 27.1474 7.3196 27.1747 7.35784 27.202C7.41792 27.2471 7.47664 27.2922 7.53809 27.3359C7.83444 27.5503 8.14168 27.7551 8.45304 27.9463C9.07437 28.3274 9.72712 28.662 10.399 28.946C10.3171 28.9119 10.2351 28.8778 10.1532 28.8436C11.3316 29.3394 12.5661 29.6767 13.8333 29.8474C13.7405 29.8337 13.6531 29.8228 13.5602 29.8092C14.8521 29.9799 16.1589 29.9799 17.4494 29.8092C17.3566 29.8228 17.2692 29.8337 17.1763 29.8474C18.4421 29.6767 19.6793 29.338 20.8564 28.8436C20.7745 28.8778 20.6926 28.9119 20.6106 28.946C21.359 28.6292 22.0787 28.2495 22.7655 27.8125C23.0659 27.6227 23.3637 27.4178 23.6504 27.202C23.6982 27.1638 23.746 27.1269 23.7283 27.1447C23.7965 27.0887 23.8676 27.0341 23.9358 26.9767C24.0628 26.8743 24.1885 26.7677 24.3114 26.6585C24.8494 26.1873 25.352 25.6752 25.8162 25.1289C25.9419 24.9814 26.0648 24.8312 26.1331 24.7438C26.1604 24.7083 26.1877 24.6755 26.215 24.6372C26.2601 24.5772 26.3051 24.5184 26.3488 24.457C26.5632 24.1606 26.7681 23.8533 26.9592 23.542C27.3403 22.9206 27.6748 22.2678 27.9589 21.5958C27.9247 21.6778 27.8906 21.7597 27.8564 21.8417C28.3522 20.6632 28.6895 19.4286 28.8602 18.1612C28.8465 18.2541 28.8356 18.3415 28.8219 18.4344C28.9926 17.1424 28.9926 15.8355 28.8219 14.5449C28.8356 14.6377 28.8465 14.7251 28.8602 14.818C28.6895 13.5521 28.3508 12.3148 27.8564 11.1376C27.8906 11.2195 27.9247 11.3015 27.9589 11.3834C27.642 10.635 27.2624 9.91525 26.8254 9.22832C26.6356 8.9279 26.4308 8.63016 26.215 8.34337C26.1768 8.29557 26.1399 8.24777 26.1577 8.26552C26.1017 8.19724 26.047 8.12622 25.9897 8.05794C25.8873 7.93093 25.7807 7.80529 25.6715 7.68238C25.2004 7.14428 24.6883 6.6417 24.142 6.17738C23.9945 6.05173 23.8443 5.92881 23.7569 5.86053C23.7214 5.83322 23.6887 5.8059 23.6504 5.77859C23.5903 5.73352 23.5316 5.68845 23.4702 5.64475C23.1738 5.43033 22.8666 5.22548 22.5552 5.03428C21.9339 4.65323 21.2811 4.31865 20.6093 4.03458L20.8551 4.13701C19.6767 3.64125 18.4422 3.30393 17.1749 3.13322C17.2678 3.14688 17.3552 3.15781 17.448 3.17146C17.0426 3.11746 16.6366 3.08013 16.229 3.05983ZM16.2976 1.01301C16.9471 1.0424 17.3897 1.10825 17.9981 1.20077C21.0734 1.6759 23.9751 3.15373 26.2229 5.29515C28.4599 7.43236 30.0508 10.2703 30.6721 13.3049C30.9998 14.9124 31.0927 16.5731 30.9015 18.201C30.7062 19.8616 30.2734 21.4417 29.5837 22.9645C28.3179 25.767 26.1536 28.1569 23.5316 29.752C20.8031 31.4127 17.5394 32.1966 14.3549 31.948C12.7707 31.8251 11.2043 31.4796 9.73225 30.8759C8.22198 30.2587 6.84275 29.4393 5.58366 28.4013C3.19809 26.4375 1.43923 23.7197 0.592558 20.7534C-0.292361 17.6617 -0.188567 14.2528 0.920299 11.2319C2.01976 8.24512 3.9861 5.67752 6.57388 3.82699C8.97226 2.10997 11.8765 1.14544 14.816 1.00975V0.993164H16.2976V1.01301Z",fill:"#4988EF"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_14639_224592",children:(0,s.jsx)("rect",{width:"31",height:"31",fill:"white",transform:"translate(0 0.993164)"})})})]}),T=e=>(0,s.jsxs)(o.qZ,{viewBox:"0 0 30 35",...e,children:[(0,s.jsx)("path",{d:"M26.9936 11.3449H25.7721C25.65 10.9785 25.4973 10.5815 25.3141 10.2456L26.1691 9.39058C26.5661 9.02415 26.7798 8.53557 26.7798 7.98592C26.7798 7.43627 26.5661 6.91716 26.1996 6.55073L23.4209 3.77194C22.6269 3.00854 21.4055 3.00854 20.6115 3.80248L19.726 4.68803C19.3596 4.53535 18.9931 4.38267 18.6267 4.22999V3.00854C18.6267 1.90925 17.7412 0.993164 16.6113 0.993164H12.7332C11.6339 0.993164 10.7179 1.87871 10.7179 3.00854V4.22999C10.3209 4.35213 9.95446 4.50481 9.61856 4.68803L8.76355 3.83302C8.00015 3.06962 6.6871 3.06962 5.9237 3.83302L3.17546 6.58126C2.41205 7.3752 2.41205 8.62718 3.17546 9.42111L4.61065 10.8563C5.03816 11.2838 5.74048 11.2838 6.16799 10.8563C6.59549 10.4288 6.59549 9.72647 6.16799 9.29897L4.88548 8.01646L7.3589 5.57357L8.64141 6.85609C9.00784 7.22252 9.52695 7.28359 9.95446 7.0393C10.5957 6.67287 11.298 6.36751 12.1225 6.12322C12.5806 5.97054 12.9165 5.54304 12.9165 5.05446V3.2223H16.3976V5.05446C16.3976 5.54304 16.7335 6.00108 17.222 6.12322C18.016 6.33697 18.7488 6.64233 19.3901 7.00877C19.8176 7.25305 20.3673 7.19198 20.7031 6.82555L21.9857 5.54304L24.4591 8.01646L23.1766 9.32951C22.8407 9.69594 22.7491 10.2151 22.9934 10.6426C23.3598 11.2838 23.6651 12.0167 23.8789 12.8106C24.001 13.2992 24.4591 13.6351 24.9477 13.6351H26.7798V17.1162H24.9477C24.4591 17.1162 24.001 17.4521 23.8789 17.9407C23.6651 18.7346 23.3598 19.4675 22.9934 20.1087C22.7491 20.5362 22.8101 21.0859 23.1766 21.4523L24.4896 22.7348L22.0162 25.2083L20.7337 23.8952C20.3673 23.5288 19.8481 23.4677 19.3901 23.712C18.7183 24.109 17.9854 24.4143 17.222 24.5975C16.7335 24.7197 16.3976 25.1777 16.3976 25.6663V27.4985H12.9775V25.6968C12.9775 25.2083 12.6416 24.7502 12.1531 24.6281C11.3897 24.4143 10.6568 24.109 9.985 23.7425C9.55749 23.4982 9.00784 23.5593 8.67195 23.9257L7.38943 25.2083L4.94655 22.7654L6.22906 21.4829C6.65657 21.0553 6.65657 20.353 6.22906 19.9255C5.80156 19.498 5.09923 19.498 4.67172 19.9255L3.20599 21.2691C2.44259 22.063 2.44259 23.2845 3.23653 24.0784L5.98477 26.8267C6.35121 27.1931 6.83978 27.4068 7.41997 27.4068C7.96962 27.4068 8.45819 27.1931 8.79409 26.8267L9.67964 25.9411C10.0461 26.1243 10.4125 26.277 10.7789 26.3992V27.6206C10.7789 28.7199 11.6645 29.6054 12.7943 29.6054H16.7029C17.8022 29.6054 18.6878 28.7199 18.6878 27.6206V26.3686C19.0542 26.2465 19.4206 26.0938 19.7871 25.9106L20.6726 26.7961C21.436 27.529 22.7185 27.529 23.5125 26.7656L26.2912 23.9868C27.0241 23.2234 27.0241 21.9409 26.2607 21.147L25.4057 20.292C25.5584 19.9255 25.7111 19.5896 25.8637 19.1927H27.0852C28.1845 19.1927 29.1006 18.3071 29.1006 17.1773V13.3603C29.009 12.261 28.1234 11.3449 26.9936 11.3449Z",fill:"#4988EF"}),(0,s.jsx)("path",{d:"M12.9473 18.8263C12.5198 19.2538 12.5198 19.9561 12.9473 20.3836C13.161 20.5974 13.4359 20.7195 13.7412 20.7195C14.016 20.7195 14.3214 20.5974 14.5352 20.3836L18.8102 16.1086C19.2377 15.6811 19.2377 14.9787 18.8102 14.5512L14.5352 10.2762C14.1077 9.84869 13.4053 9.84869 12.9778 10.2762C12.5503 10.7037 12.5503 11.406 12.9778 11.8335L15.3902 14.2459H1.0993C0.488577 14.2459 0 14.7345 0 15.3452C0 15.9559 0.488577 16.4445 1.0993 16.4445H15.3291L12.9473 18.8263Z",fill:"#4988EF"})]})},96073:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>_,LX:()=>l,MT:()=>v,N4:()=>y,VV:()=>s,fE:()=>f,kz:()=>b,mT:()=>m,ml:()=>u,pt:()=>g,tl:()=>d,tt:()=>p,vH:()=>h,zx:()=>c});var r=n(19160),i=n.n(r),o=(n(18178),n(72457)),a=n(5651);const s=e=>(0,a.jsx)("svg",{width:"11",height:"19",viewBox:"0 0 11 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4.4 15.9645C4.4 17.1745 3.41 18.1645 2.2 18.1645C0.99 18.1645 0 17.1745 0 15.9645C0 14.7545 0.99 13.7645 2.2 13.7645C3.41 13.7645 4.4 14.7545 4.4 15.9645ZM2.2 7.16445C0.99 7.16445 0 8.15445 0 9.36445C0 10.5745 0.99 11.5645 2.2 11.5645C3.41 11.5645 4.4 10.5745 4.4 9.36445C4.4 8.15445 3.41 7.16445 2.2 7.16445ZM2.2 0.564453C0.99 0.564453 0 1.55445 0 2.76445C0 3.97445 0.99 4.96445 2.2 4.96445C3.41 4.96445 4.4 3.97445 4.4 2.76445C4.4 1.55445 3.41 0.564453 2.2 0.564453ZM8.8 4.96445C10.01 4.96445 11 3.97445 11 2.76445C11 1.55445 10.01 0.564453 8.8 0.564453C7.59 0.564453 6.6 1.55445 6.6 2.76445C6.6 3.97445 7.59 4.96445 8.8 4.96445ZM8.8 7.16445C7.59 7.16445 6.6 8.15445 6.6 9.36445C6.6 10.5745 7.59 11.5645 8.8 11.5645C10.01 11.5645 11 10.5745 11 9.36445C11 8.15445 10.01 7.16445 8.8 7.16445ZM8.8 13.7645C7.59 13.7645 6.6 14.7545 6.6 15.9645C6.6 17.1745 7.59 18.1645 8.8 18.1645C10.01 18.1645 11 17.1745 11 15.9645C11 14.7545 10.01 13.7645 8.8 13.7645Z",fill:e.fill||"#909090"})}),l=e=>(0,a.jsxs)("svg",{width:"16",height:"19",viewBox:"0 0 16 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3057 0.353027C13.1743 0.353027 15.5117 2.69044 15.5117 5.55908C15.5117 8.37459 13.1743 10.712 10.3057 10.712C7.43702 10.712 5.09961 8.37459 5.09961 5.55908C5.09961 2.69044 7.43702 0.353027 10.3057 0.353027ZM7.80888 6.35592C7.33077 6.35592 6.95891 5.98406 6.95891 5.55908C6.95891 5.08097 7.33077 4.70911 7.80888 4.70911H9.45569V3.0623C9.45569 2.58419 9.82755 2.21233 10.3057 2.21233C10.7838 2.21233 11.1556 2.58419 11.1556 3.0623V4.70911H12.8024C13.2805 4.70911 13.6524 5.08097 13.6524 5.55908C13.6524 5.98406 13.2805 6.35592 12.8024 6.35592H11.1556V8.05586C11.1556 8.48084 10.7838 8.8527 10.3057 8.8527C9.82755 8.8527 9.45569 8.48084 9.45569 8.05586V6.35592H7.80888Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M10.9433 10.7653C11.1558 11.3496 11.2621 11.934 11.2621 12.5715C11.2621 15.6526 8.71216 18.2025 5.63103 18.2025C2.49678 18.2025 0 15.6526 0 12.5715C0 9.6497 2.23116 7.20604 5.15293 6.94043C5.25917 7.25917 5.31229 7.52478 5.47166 7.7904C2.92176 7.89664 0.849967 9.96844 0.849967 12.5715C0.849967 15.1745 2.97489 17.2994 5.63103 17.2994C8.23406 17.2994 10.359 15.1745 10.359 12.5715C10.359 11.934 10.2527 11.3496 10.0402 10.8184H10.1465C10.4121 10.8184 10.6777 10.8184 10.9433 10.7653Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M3.13415 13.4216C2.65604 13.4216 2.28418 12.9966 2.28418 12.5716C2.28418 12.0935 2.65604 11.7217 3.13415 11.7217H8.1277C8.60581 11.7217 8.97767 12.0935 8.97767 12.5716C8.97767 12.9966 8.60581 13.4216 8.1277 13.4216H3.13415Z",fill:e.fill||"white"})]}),c=e=>(0,a.jsxs)(o.qZ,{size:23,viewBox:"0 0 36 35",...e,children:[(0,a.jsx)("path",{d:"M5.76351 26.3586C6.48665 26.2344 9.55553 25.6474 10.7544 24.4485L7.54367 21.2378C6.34481 22.4367 5.7585 25.5064 5.6345 26.2297C5.6314 26.2473 5.63259 26.2654 5.63798 26.2825C5.64336 26.2996 5.65279 26.3151 5.66545 26.3277C5.6781 26.3404 5.69363 26.3498 5.7107 26.3552C5.72777 26.3605 5.74588 26.3617 5.76351 26.3586V26.3586Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M26.6077 8.6598C26.7744 8.49308 26.8681 8.26696 26.8681 8.03118C26.8681 7.79541 26.7744 7.56929 26.6077 7.40256L24.5906 5.38538C24.508 5.30283 24.41 5.23734 24.3021 5.19267C24.1943 5.14799 24.0787 5.125 23.9619 5.125C23.8452 5.125 23.7296 5.148 23.6217 5.19268C23.5138 5.23737 23.4158 5.30286 23.3333 5.38542L21.2363 7.48234L24.5108 10.7567L26.6077 8.6598Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M20.3162 8.40314L8.43359 20.2856L11.7075 23.5596L23.5901 11.6771L20.3162 8.40314Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M5.97191 28.6232L6.60235 28.8818C7.35744 29.208 8.17951 29.3491 9.00015 29.2935C9.55147 29.2476 10.0765 28.9581 10.6322 28.6515C11.5253 28.1591 12.5368 27.6001 13.8834 27.9295C14.1216 27.9886 14.3422 28.1041 14.5264 28.2663C14.7107 28.4284 14.8533 28.6325 14.9422 28.8613C15.2552 29.6605 15.7372 29.7799 15.9967 29.7799C16.2561 29.7799 16.738 29.6605 17.051 28.8612L17.9698 26.5148C17.9762 26.4983 17.9826 26.4829 17.9888 26.4685C17.995 26.4829 18.0013 26.4984 18.0078 26.5148L18.9264 28.861C19.2394 29.6605 19.7214 29.7798 19.9808 29.7798C20.2403 29.7798 20.7222 29.6605 21.0352 28.861L21.9538 26.5148C21.9604 26.4984 21.9667 26.4828 21.973 26.4683C21.9792 26.4828 21.9855 26.4983 21.992 26.5147L22.9107 28.8613C23.2237 29.6606 23.7057 29.7799 23.9652 29.7799C24.2246 29.7798 24.7065 29.6605 25.0194 28.8612L25.9382 26.5148C25.9591 26.4615 25.9787 26.4176 25.9968 26.3818C29.0239 29.4181 29.4849 29.8752 29.7989 29.8752C29.8559 29.8726 29.9122 29.862 29.9661 29.8437C30.0732 29.8136 30.1688 29.7522 30.2407 29.6674C30.3126 29.5825 30.3574 29.478 30.3694 29.3675C30.3814 29.2569 30.36 29.1453 30.308 29.047C30.256 28.9487 30.1758 28.8682 30.0777 28.8158C29.7464 28.5385 28.0833 26.8999 26.6127 25.4252C26.5057 25.3185 26.3738 25.2402 26.229 25.1971C26.0842 25.154 25.9309 25.1475 25.783 25.1783C25.4078 25.2627 25.1117 25.5759 24.9028 26.1094L23.9841 28.4559C23.9775 28.4723 23.9713 28.4878 23.9651 28.5022C23.9588 28.4876 23.9526 28.4723 23.9461 28.4559L23.0273 26.1093C22.7143 25.3101 22.2323 25.1908 21.973 25.1908C21.7135 25.1908 21.2315 25.3101 20.9185 26.1095L19.9999 28.4558C19.9934 28.4722 19.987 28.4876 19.9807 28.5022C19.9746 28.4876 19.9683 28.4722 19.9617 28.4558L19.0431 26.1095C18.7303 25.3102 18.2483 25.1908 17.9888 25.1908C17.7294 25.1908 17.2474 25.3101 16.9344 26.1094L16.0157 28.4558C16.0092 28.4723 16.0028 28.4878 15.9967 28.5023C15.9904 28.4878 15.9841 28.4723 15.9775 28.4559C15.8235 28.061 15.5768 27.709 15.2583 27.4294C14.9398 27.1499 14.5587 26.9509 14.1472 26.8494C12.3797 26.4179 11.0592 27.1461 10.0951 27.6779C9.73325 27.9173 9.33107 28.0893 8.90798 28.1854C8.26258 28.2255 7.61688 28.1116 7.0242 27.853L6.39375 27.5944C6.32617 27.5666 6.25377 27.5523 6.18068 27.5525C6.10758 27.5527 6.03524 27.5672 5.96779 27.5954C5.90034 27.6235 5.8391 27.6647 5.78758 27.7166C5.73606 27.7684 5.69527 27.8299 5.66754 27.8975C5.63981 27.9652 5.62569 28.0376 5.62598 28.1107C5.62627 28.1838 5.64097 28.2561 5.66924 28.3235C5.69751 28.3909 5.7388 28.4521 5.79073 28.5035C5.84266 28.5549 5.90423 28.5956 5.9719 28.6232H5.97191Z",fill:e.fill||"white"})]}),u=e=>(0,a.jsxs)(o.qZ,{size:20,viewBox:"0 0 36 36",children:[(0,a.jsx)("path",{d:"M3.92153 6.42918C3.92153 7.19936 3.92153 7.96614 3.92153 8.73632C3.92153 10.582 3.92153 12.4277 3.92153 14.2734C3.92153 16.4958 3.92153 18.7147 3.92153 20.937C3.92153 22.8675 3.92153 24.7947 3.92153 26.7252C3.92153 27.6582 3.90143 28.5947 3.92153 29.5311C3.92153 29.5447 3.92153 29.5548 3.92153 29.5684C3.92153 29.9348 4.22975 30.247 4.59158 30.247C4.8328 30.247 5.07066 30.247 5.31188 30.247C5.96183 30.247 6.61177 30.247 7.26172 30.247C8.22659 30.247 9.19146 30.247 10.1563 30.247C11.3289 30.247 12.4981 30.247 13.6707 30.247C14.9539 30.247 16.237 30.247 17.5202 30.247C18.82 30.247 20.1233 30.247 21.4232 30.247C22.6326 30.247 23.8387 30.247 25.0481 30.247C26.0733 30.247 27.0985 30.247 28.1237 30.247C28.8574 30.247 29.5911 30.247 30.3248 30.247C30.6732 30.247 31.025 30.2538 31.3734 30.247C31.3868 30.247 31.4035 30.247 31.4169 30.247C31.7687 30.247 32.1037 29.9348 32.087 29.5684C32.0702 29.202 31.7922 28.8898 31.4169 28.8898C31.1757 28.8898 30.9379 28.8898 30.6966 28.8898C30.0467 28.8898 29.3968 28.8898 28.7468 28.8898C27.7819 28.8898 26.8171 28.8898 25.8522 28.8898C24.6796 28.8898 23.5104 28.8898 22.3378 28.8898C21.0547 28.8898 19.7715 28.8898 18.4884 28.8898C17.1885 28.8898 15.8852 28.8898 14.5853 28.8898C13.3759 28.8898 12.1698 28.8898 10.9604 28.8898C9.93521 28.8898 8.91004 28.8898 7.88487 28.8898C7.15116 28.8898 6.41746 28.8898 5.68376 28.8898C5.33533 28.8898 4.98356 28.8797 4.63513 28.8898C4.62173 28.8898 4.60498 28.8898 4.59158 28.8898C4.81605 29.1172 5.03716 29.3411 5.26163 29.5684C5.26163 28.7982 5.26163 28.0315 5.26163 27.2613C5.26163 25.4156 5.26163 23.5699 5.26163 21.7241C5.26163 19.5018 5.26163 17.2829 5.26163 15.0606C5.26163 13.1301 5.26163 11.2029 5.26163 9.27239C5.26163 8.33935 5.28173 7.40293 5.26163 6.4665C5.26163 6.45293 5.26163 6.44275 5.26163 6.42918C5.26163 6.07293 4.95341 5.73365 4.59158 5.75061C4.2264 5.76757 3.92153 6.04918 3.92153 6.42918Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M13.4565 17.2119H8.0459V26.8578H13.4565V17.2119Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M13.4567 26.1757C11.872 26.1757 10.2873 26.1757 8.70602 26.1757C8.48491 26.1757 8.26714 26.1757 8.04602 26.1757C8.27049 26.403 8.49161 26.6269 8.71607 26.8542C8.71607 25.7651 8.71607 24.6726 8.71607 23.5835C8.71607 21.8566 8.71607 20.133 8.71607 18.406C8.71607 18.0057 8.71607 17.6087 8.71607 17.2084C8.49161 17.4357 8.27049 17.6596 8.04602 17.8869C9.63069 17.8869 11.2154 17.8869 12.7967 17.8869C13.0178 17.8869 13.2355 17.8869 13.4567 17.8869C13.2322 17.6596 13.0111 17.4357 12.7866 17.2084C12.7866 18.2975 12.7866 19.39 12.7866 20.4791C12.7866 22.206 12.7866 23.9296 12.7866 25.6566C12.7866 26.0569 12.7866 26.4539 12.7866 26.8542C12.7866 27.2105 13.0948 27.5498 13.4567 27.5328C13.8185 27.5158 14.1267 27.2342 14.1267 26.8542C14.1267 25.7651 14.1267 24.6726 14.1267 23.5835C14.1267 21.8566 14.1267 20.133 14.1267 18.406C14.1267 18.0057 14.1267 17.6087 14.1267 17.2084C14.1267 16.8419 13.8185 16.5298 13.4567 16.5298C11.872 16.5298 10.2873 16.5298 8.70602 16.5298C8.48491 16.5298 8.26714 16.5298 8.04602 16.5298C7.6842 16.5298 7.37598 16.8419 7.37598 17.2084C7.37598 18.2975 7.37598 19.39 7.37598 20.4791C7.37598 22.206 7.37598 23.9296 7.37598 25.6566C7.37598 26.0569 7.37598 26.4539 7.37598 26.8542C7.37598 27.2207 7.6842 27.5328 8.04602 27.5328C9.63069 27.5328 11.2154 27.5328 12.7967 27.5328C13.0178 27.5328 13.2355 27.5328 13.4567 27.5328C13.8084 27.5328 14.1435 27.2207 14.1267 26.8542C14.1133 26.4878 13.8319 26.1757 13.4567 26.1757Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M21.3866 13.1841H16.8169V26.7623H21.3866V13.1841Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M21.3859 26.087C20.0491 26.087 18.7157 26.087 17.379 26.087C17.1914 26.087 17.0038 26.087 16.8161 26.087C17.0406 26.3143 17.2617 26.5382 17.4862 26.7655C17.4862 26.3143 17.4862 25.863 17.4862 25.4118C17.4862 24.3329 17.4862 23.2539 17.4862 22.1784C17.4862 20.8688 17.4862 19.5591 17.4862 18.2495C17.4862 17.1231 17.4862 15.9932 17.4862 14.8668C17.4862 14.3172 17.5096 13.7608 17.4862 13.2111C17.4862 13.2043 17.4862 13.1941 17.4862 13.1874C17.2617 13.4147 17.0406 13.6386 16.8161 13.8659C18.1529 13.8659 19.4863 13.8659 20.823 13.8659C21.0106 13.8659 21.1983 13.8659 21.3859 13.8659C21.1614 13.6386 20.9403 13.4147 20.7158 13.1874C20.7158 13.6386 20.7158 14.0899 20.7158 14.5411C20.7158 15.62 20.7158 16.699 20.7158 17.7745C20.7158 19.0841 20.7158 20.3938 20.7158 21.7034C20.7158 22.8298 20.7158 23.9597 20.7158 25.0861C20.7158 25.6357 20.7024 26.1888 20.7158 26.7418C20.7158 26.7486 20.7158 26.7588 20.7158 26.7655C20.7158 27.1218 21.024 27.4611 21.3859 27.4441C21.7477 27.4272 22.0559 27.1455 22.0559 26.7655C22.0559 26.3143 22.0559 25.863 22.0559 25.4118C22.0559 24.3329 22.0559 23.2539 22.0559 22.1784C22.0559 20.8688 22.0559 19.5591 22.0559 18.2495C22.0559 17.1231 22.0559 15.9932 22.0559 14.8668C22.0559 14.3172 22.0693 13.7641 22.0559 13.2111C22.0559 13.2043 22.0559 13.1941 22.0559 13.1874C22.0559 12.8209 21.7477 12.5088 21.3859 12.5088C20.0491 12.5088 18.7157 12.5088 17.379 12.5088C17.1914 12.5088 17.0038 12.5088 16.8161 12.5088C16.4543 12.5088 16.1461 12.8209 16.1461 13.1874C16.1461 13.6386 16.1461 14.0899 16.1461 14.5411C16.1461 15.62 16.1461 16.699 16.1461 17.7745C16.1461 19.0841 16.1461 20.3938 16.1461 21.7034C16.1461 22.8298 16.1461 23.9597 16.1461 25.0861C16.1461 25.6357 16.1327 26.1888 16.1461 26.7418C16.1461 26.7486 16.1461 26.7588 16.1461 26.7655C16.1461 27.132 16.4543 27.4441 16.8161 27.4441C18.1529 27.4441 19.4863 27.4441 20.823 27.4441C21.0106 27.4441 21.1983 27.4441 21.3859 27.4441C21.7376 27.4441 22.0727 27.132 22.0559 26.7655C22.0392 26.3957 21.7611 26.087 21.3859 26.087Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M30.6967 8.46826H25.4033V26.6777H30.6967V8.46826Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M30.6974 25.996C29.1496 25.996 27.6018 25.996 26.0507 25.996C25.8362 25.996 25.6185 25.996 25.4041 25.996C25.6285 26.2234 25.8496 26.4473 26.0741 26.6746C26.0741 26.0707 26.0741 25.4668 26.0741 24.8594C26.0741 23.4073 26.0741 21.9552 26.0741 20.503C26.0741 18.7523 26.0741 17.0016 26.0741 15.2543C26.0741 13.7411 26.0741 12.2279 26.0741 10.7146C26.0741 9.9784 26.1043 9.23197 26.0741 8.49573C26.0741 8.48555 26.0741 8.47537 26.0741 8.46519C25.8496 8.69251 25.6285 8.91644 25.4041 9.14376C26.9519 9.14376 28.4997 9.14376 30.0508 9.14376C30.2653 9.14376 30.483 9.14376 30.6974 9.14376C30.473 8.91644 30.2519 8.69251 30.0274 8.46519C30.0274 9.06912 30.0274 9.67305 30.0274 10.2804C30.0274 11.7325 30.0274 13.1846 30.0274 14.6368C30.0274 16.3875 30.0274 18.1382 30.0274 19.8855C30.0274 21.3987 30.0274 22.9119 30.0274 24.4252C30.0274 25.1648 30.0106 25.9044 30.0274 26.6441C30.0274 26.6543 30.0274 26.6644 30.0274 26.6746C30.0274 27.0309 30.3356 27.3701 30.6974 27.3532C31.0593 27.3362 31.3675 27.0546 31.3675 26.6746C31.3675 26.0707 31.3675 25.4668 31.3675 24.8594C31.3675 23.4073 31.3675 21.9552 31.3675 20.503C31.3675 18.7523 31.3675 17.0016 31.3675 15.2543C31.3675 13.7411 31.3675 12.2279 31.3675 10.7146C31.3675 9.97501 31.3842 9.23537 31.3675 8.49573C31.3675 8.48555 31.3675 8.47537 31.3675 8.46519C31.3675 8.09876 31.0593 7.78662 30.6974 7.78662C29.1496 7.78662 27.6018 7.78662 26.0507 7.78662C25.8362 7.78662 25.6185 7.78662 25.4041 7.78662C25.0422 7.78662 24.734 8.09876 24.734 8.46519C24.734 9.06912 24.734 9.67305 24.734 10.2804C24.734 11.7325 24.734 13.1846 24.734 14.6368C24.734 16.3875 24.734 18.1382 24.734 19.8855C24.734 21.3987 24.734 22.9119 24.734 24.4252C24.734 25.1648 24.7173 25.9044 24.734 26.6441C24.734 26.6543 24.734 26.6644 24.734 26.6746C24.734 27.041 25.0422 27.3532 25.4041 27.3532C26.9519 27.3532 28.4997 27.3532 30.0508 27.3532C30.2653 27.3532 30.483 27.3532 30.6974 27.3532C31.0492 27.3532 31.3842 27.041 31.3675 26.6746C31.3507 26.3082 31.0727 25.996 30.6974 25.996Z",fill:e.fill||"white"})]}),d=e=>{let{fill:t="white",style:n}=e;return(0,a.jsxs)(o.qZ,{style:n,size:18,viewBox:"0 0 15 15",children:[(0,a.jsx)("path",{d:"M0.00475633 0.415825C0.00475633 0.887362 0.00475633 1.35682 0.00475633 1.82836C0.00475633 2.95838 0.00475633 4.08841 0.00475633 5.21844C0.00475633 6.57904 0.00475633 7.93756 0.00475633 9.29817C0.00475633 10.4801 0.00475633 11.66 0.00475633 12.842C0.00475633 13.4132 -0.00594541 13.9865 0.00475633 14.5599C0.00475633 14.5682 0.00475633 14.5744 0.00475633 14.5827C0.00475633 14.807 0.16885 14.9982 0.361481 14.9982C0.489902 14.9982 0.616539 14.9982 0.74496 14.9982C1.09098 14.9982 1.43701 14.9982 1.78303 14.9982C2.29671 14.9982 2.8104 14.9982 3.32408 14.9982C3.94835 14.9982 4.57083 14.9982 5.1951 14.9982C5.87823 14.9982 6.56136 14.9982 7.24448 14.9982C7.93653 14.9982 8.63036 14.9982 9.32241 14.9982C9.96629 14.9982 10.6084 14.9982 11.2523 14.9982C11.7981 14.9982 12.3439 14.9982 12.8897 14.9982C13.2803 14.9982 13.6709 14.9982 14.0615 14.9982C14.247 14.9982 14.4343 15.0023 14.6198 14.9982C14.6269 14.9982 14.6358 14.9982 14.643 14.9982C14.8302 14.9982 15.0086 14.807 14.9997 14.5827C14.9908 14.3584 14.8427 14.1673 14.643 14.1673C14.5145 14.1673 14.3879 14.1673 14.2595 14.1673C13.9135 14.1673 13.5674 14.1673 13.2214 14.1673C12.7077 14.1673 12.194 14.1673 11.6804 14.1673C11.0561 14.1673 10.4336 14.1673 9.80934 14.1673C9.12621 14.1673 8.44308 14.1673 7.75995 14.1673C7.06791 14.1673 6.37408 14.1673 5.68203 14.1673C5.03814 14.1673 4.39604 14.1673 3.75215 14.1673C3.20636 14.1673 2.66057 14.1673 2.11478 14.1673C1.72417 14.1673 1.33356 14.1673 0.942942 14.1673C0.757445 14.1673 0.570165 14.161 0.384668 14.1673C0.377534 14.1673 0.368616 14.1673 0.361481 14.1673C0.480984 14.3064 0.598703 14.4435 0.718206 14.5827C0.718206 14.1112 0.718206 13.6417 0.718206 13.1702C0.718206 12.0401 0.718206 10.9101 0.718206 9.78009C0.718206 8.41949 0.718206 7.06096 0.718206 5.70036C0.718206 4.5184 0.718206 3.33852 0.718206 2.15656C0.718206 1.58532 0.728908 1.012 0.718206 0.438675C0.718206 0.430366 0.718206 0.424134 0.718206 0.415825C0.718206 0.197713 0.554112 -0.0100125 0.361481 0.000373791C0.167066 0.0107601 0.00475633 0.183172 0.00475633 0.415825Z",fill:t}),(0,a.jsx)("path",{d:"M5.08124 7.01746H2.20068V12.9231H5.08124V7.01746Z",fill:t}),(0,a.jsx)("path",{d:"M5.08127 12.5056C4.23762 12.5056 3.39396 12.5056 2.55209 12.5056C2.43437 12.5056 2.31844 12.5056 2.20072 12.5056C2.32022 12.6448 2.43794 12.7819 2.55744 12.9211C2.55744 12.2543 2.55744 11.5854 2.55744 10.9186C2.55744 9.86126 2.55744 8.80602 2.55744 7.7487C2.55744 7.50358 2.55744 7.26054 2.55744 7.01543C2.43794 7.1546 2.32022 7.2917 2.20072 7.43088C3.04437 7.43088 3.88803 7.43088 4.7299 7.43088C4.84762 7.43088 4.96355 7.43088 5.08127 7.43088C4.96177 7.2917 4.84405 7.1546 4.72455 7.01543C4.72455 7.68223 4.72455 8.3511 4.72455 9.0179C4.72455 10.0752 4.72455 11.1305 4.72455 12.1878C4.72455 12.4329 4.72455 12.6759 4.72455 12.9211C4.72455 13.1392 4.88864 13.3469 5.08127 13.3365C5.2739 13.3261 5.438 13.1537 5.438 12.9211C5.438 12.2543 5.438 11.5854 5.438 10.9186C5.438 9.86126 5.438 8.80602 5.438 7.7487C5.438 7.50358 5.438 7.26054 5.438 7.01543C5.438 6.79108 5.2739 6.59998 5.08127 6.59998C4.23762 6.59998 3.39396 6.59998 2.55209 6.59998C2.43437 6.59998 2.31844 6.59998 2.20072 6.59998C2.00809 6.59998 1.84399 6.79108 1.84399 7.01543C1.84399 7.68223 1.84399 8.3511 1.84399 9.0179C1.84399 10.0752 1.84399 11.1305 1.84399 12.1878C1.84399 12.4329 1.84399 12.6759 1.84399 12.9211C1.84399 13.1454 2.00809 13.3365 2.20072 13.3365C3.04437 13.3365 3.88803 13.3365 4.7299 13.3365C4.84762 13.3365 4.96355 13.3365 5.08127 13.3365C5.26855 13.3365 5.44691 13.1454 5.438 12.9211C5.43086 12.6967 5.28104 12.5056 5.08127 12.5056Z",fill:t}),(0,a.jsx)("path",{d:"M9.30298 4.55164H6.87012V12.8648H9.30298V4.55164Z",fill:t}),(0,a.jsx)("path",{d:"M9.30252 12.4514C8.59086 12.4514 7.88098 12.4514 7.16931 12.4514C7.06943 12.4514 6.96954 12.4514 6.86966 12.4514C6.98916 12.5905 7.10688 12.7276 7.22639 12.8668C7.22639 12.5905 7.22639 12.3143 7.22639 12.038C7.22639 11.3774 7.22639 10.7169 7.22639 10.0584C7.22639 9.25654 7.22639 8.45472 7.22639 7.6529C7.22639 6.96325 7.22639 6.27152 7.22639 5.58188C7.22639 5.24536 7.23887 4.90469 7.22639 4.56818C7.22639 4.56402 7.22639 4.55779 7.22639 4.55363C7.10688 4.69281 6.98916 4.82991 6.86966 4.96909C7.58133 4.96909 8.29121 4.96909 9.00287 4.96909C9.10276 4.96909 9.20264 4.96909 9.30252 4.96909C9.18302 4.82991 9.0653 4.69281 8.9458 4.55363C8.9458 4.82991 8.9458 5.10618 8.9458 5.38246C8.9458 6.04303 8.9458 6.70359 8.9458 7.36208C8.9458 8.1639 8.9458 8.96572 8.9458 9.76754C8.9458 10.4572 8.9458 11.1489 8.9458 11.8386C8.9458 12.1751 8.93867 12.5137 8.9458 12.8523C8.9458 12.8564 8.9458 12.8627 8.9458 12.8668C8.9458 13.0849 9.10989 13.2926 9.30252 13.2823C9.49516 13.2719 9.65925 13.0995 9.65925 12.8668C9.65925 12.5905 9.65925 12.3143 9.65925 12.038C9.65925 11.3774 9.65925 10.7169 9.65925 10.0584C9.65925 9.25654 9.65925 8.45472 9.65925 7.6529C9.65925 6.96325 9.65925 6.27152 9.65925 5.58188C9.65925 5.24536 9.66638 4.90677 9.65925 4.56818C9.65925 4.56402 9.65925 4.55779 9.65925 4.55363C9.65925 4.32929 9.49516 4.13818 9.30252 4.13818C8.59086 4.13818 7.88098 4.13818 7.16931 4.13818C7.06943 4.13818 6.96954 4.13818 6.86966 4.13818C6.67703 4.13818 6.51294 4.32929 6.51294 4.55363C6.51294 4.82991 6.51294 5.10618 6.51294 5.38246C6.51294 6.04303 6.51294 6.70359 6.51294 7.36208C6.51294 8.1639 6.51294 8.96572 6.51294 9.76754C6.51294 10.4572 6.51294 11.1489 6.51294 11.8386C6.51294 12.1751 6.5058 12.5137 6.51294 12.8523C6.51294 12.8564 6.51294 12.8627 6.51294 12.8668C6.51294 13.0912 6.67703 13.2823 6.86966 13.2823C7.58133 13.2823 8.29121 13.2823 9.00287 13.2823C9.10276 13.2823 9.20264 13.2823 9.30252 13.2823C9.4898 13.2823 9.66817 13.0912 9.65925 12.8668C9.65033 12.6404 9.50229 12.4514 9.30252 12.4514Z",fill:t}),(0,a.jsx)("path",{d:"M14.2593 1.66455H11.4412V12.8132H14.2593V1.66455Z",fill:t}),(0,a.jsx)("path",{d:"M14.2599 12.3957C13.4358 12.3957 12.6118 12.3957 11.786 12.3957C11.6718 12.3957 11.5559 12.3957 11.4417 12.3957C11.5612 12.5349 11.679 12.672 11.7985 12.8111C11.7985 12.4414 11.7985 12.0716 11.7985 11.6998C11.7985 10.8108 11.7985 9.92169 11.7985 9.03262C11.7985 7.96076 11.7985 6.88889 11.7985 5.81911C11.7985 4.89265 11.7985 3.9662 11.7985 3.03974C11.7985 2.58898 11.8145 2.13198 11.7985 1.68122C11.7985 1.67498 11.7985 1.66875 11.7985 1.66252C11.679 1.8017 11.5612 1.9388 11.4417 2.07797C12.2658 2.07797 13.0898 2.07797 13.9156 2.07797C14.0298 2.07797 14.1457 2.07797 14.2599 2.07797C14.1404 1.9388 14.0226 1.8017 13.9031 1.66252C13.9031 2.03227 13.9031 2.40202 13.9031 2.77385C13.9031 3.66292 13.9031 4.55198 13.9031 5.44105C13.9031 6.51291 13.9031 7.58477 13.9031 8.65456C13.9031 9.58102 13.9031 10.5075 13.9031 11.4339C13.9031 11.8868 13.8942 12.3396 13.9031 12.7925C13.9031 12.7987 13.9031 12.8049 13.9031 12.8111C13.9031 13.0293 14.0672 13.237 14.2599 13.2266C14.4525 13.2162 14.6166 13.0438 14.6166 12.8111C14.6166 12.4414 14.6166 12.0716 14.6166 11.6998C14.6166 10.8108 14.6166 9.92169 14.6166 9.03262C14.6166 7.96076 14.6166 6.88889 14.6166 5.81911C14.6166 4.89265 14.6166 3.9662 14.6166 3.03974C14.6166 2.5869 14.6255 2.13406 14.6166 1.68122C14.6166 1.67498 14.6166 1.66875 14.6166 1.66252C14.6166 1.43818 14.4525 1.24707 14.2599 1.24707C13.4358 1.24707 12.6118 1.24707 11.786 1.24707C11.6718 1.24707 11.5559 1.24707 11.4417 1.24707C11.2491 1.24707 11.085 1.43818 11.085 1.66252C11.085 2.03227 11.085 2.40202 11.085 2.77385C11.085 3.66292 11.085 4.55198 11.085 5.44105C11.085 6.51291 11.085 7.58477 11.085 8.65456C11.085 9.58102 11.085 10.5075 11.085 11.4339C11.085 11.8868 11.0761 12.3396 11.085 12.7925C11.085 12.7987 11.085 12.8049 11.085 12.8111C11.085 13.0355 11.2491 13.2266 11.4417 13.2266C12.2658 13.2266 13.0898 13.2266 13.9156 13.2266C14.0298 13.2266 14.1457 13.2266 14.2599 13.2266C14.4471 13.2266 14.6255 13.0355 14.6166 12.8111C14.6077 12.5868 14.4596 12.3957 14.2599 12.3957Z",fill:t})]})},p=e=>(0,a.jsx)(o.qZ,{size:20,viewBox:"0 0 18 20",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.846436C8.84642 2.93517 11.6724 7.91128 8.53925 15.7133C6.81911 13.0717 5.34471 9.63142 4.11604 5.39251C5.03754 9.93859 6.45051 14.4847 9.52218 18.1092C11.8567 16.2048 13.4539 13.3174 14.6826 10.6144C13.1468 13.3789 11.6109 15.529 10.0137 17.0649C8.90785 11.1058 11.6109 8.09558 18 7.97272C14.8669 12.1502 17.7543 16.3891 11.2423 17.1877C10.8737 17.4949 9.27645 19.0307 9.21502 19.1536C8.47782 18.1707 7.80205 17.1263 7.18771 16.0205C-2.51877 12.9488 3.13311 7.72698 0 0.846436Z",fill:e.fill||"white"})}),h=e=>(0,a.jsx)(o.qZ,{size:20,viewBox:"0 0 17 20",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0243 8.89043H15.3731L15.3731 8.8906C15.9346 8.8906 16.3999 9.36916 16.3999 9.92399C16.3999 10.4796 15.9346 10.9387 15.3731 10.9387H14.9653C14.9078 11.0531 14.8495 11.1682 14.7913 11.264L14.7716 11.2834C14.2102 11.8958 13.6487 12.5082 13.0479 13.1019C12.4668 13.6949 11.8471 14.2691 11.2078 14.8053C11.1495 14.8629 11.0716 14.8823 10.9944 14.8629C10.9172 14.8442 10.8589 14.7866 10.8203 14.729L10.3944 13.9057L9.98727 14.4037C9.94868 14.4613 9.89042 14.4995 9.81324 14.4995C9.75574 14.4995 9.69747 14.4613 9.63921 14.4232L9.23213 14.0209L9.29039 14.8247C9.31006 14.901 9.27147 14.9586 9.21321 15.0161C9.17462 15.0543 9.11636 15.0737 9.0581 15.0737H8.99983C7.54706 14.7671 5.90067 13.7905 4.46758 12.3743C3.09283 11.0157 2.12432 9.46485 1.7755 8.08675H1.42668C0.864479 8.08675 0.399902 7.62687 0.399902 7.07205C0.399902 6.51646 0.865254 6.05735 1.42668 6.05735H1.83377C1.89127 5.94296 1.94954 5.8278 2.0078 5.73209L2.02747 5.71265C2.5889 5.10024 3.15032 4.48784 3.75111 3.89412C4.33222 3.30117 4.95191 2.72689 5.59129 2.19076L5.61096 2.17131C5.70781 2.11448 5.82358 2.05691 5.9401 1.99933V1.59704C5.9401 1.04219 6.4047 0.582336 6.96612 0.582336C7.52833 0.582336 7.9929 1.04221 7.9929 1.59704V1.94175C9.38814 2.28631 10.9566 3.24351 12.3322 4.60292C13.707 5.96146 14.6755 7.51233 15.0243 8.89043ZM10.7841 14.939C10.3384 14.939 9.97067 15.3024 9.97067 15.7428C9.97067 16.1832 10.3384 16.5466 10.7841 16.5466C11.2297 16.5466 11.6171 16.1832 11.6171 15.7428C11.6171 15.3031 11.2494 14.939 10.7841 14.939ZM8.05661 16.6998C8.05661 16.2594 8.42434 15.896 8.87001 15.896V15.896C9.33536 15.896 9.70308 16.2788 9.70308 16.7193C9.70308 17.1597 9.31568 17.5044 8.87001 17.5037C8.42434 17.5037 8.05661 17.1403 8.05661 16.6998ZM9.97067 18.6139C9.97067 18.1734 10.3384 17.81 10.7841 17.81C11.2494 17.81 11.6171 18.1742 11.6171 18.6139C11.6171 19.0543 11.2297 19.4177 10.7841 19.4177C10.3384 19.4177 9.97067 19.0543 9.97067 18.6139Z",fill:e.fill||"white"})}),f=e=>(0,a.jsxs)(o.qZ,{size:18,viewBox:"0 0 14 20",children:[(0,a.jsx)("path",{d:"M4.23838 4.80016H9.43838C9.61077 4.80016 9.7761 4.73168 9.898 4.60978C10.0199 4.48788 10.0884 4.32255 10.0884 4.15016V2.85016C10.0884 2.67777 10.0199 2.51244 9.898 2.39054C9.7761 2.26864 9.61077 2.20016 9.43838 2.20016H8.70713L8.51928 1.87516C8.35001 1.57876 8.10537 1.33239 7.81017 1.16103C7.51497 0.98967 7.17971 0.899414 6.83838 0.899414C6.49705 0.899414 6.16179 0.98967 5.86659 1.16103C5.57139 1.33239 5.32675 1.57876 5.15748 1.87516L4.96963 2.20016H4.23838C4.06599 2.20016 3.90066 2.26864 3.77876 2.39054C3.65686 2.51244 3.58838 2.67777 3.58838 2.85016V4.15016C3.58838 4.32255 3.65686 4.48788 3.77876 4.60978C3.90066 4.73168 4.06599 4.80016 4.23838 4.80016Z",fill:e.fill||"white"}),(0,a.jsx)("path",{d:"M11.3884 2.8501V4.1501C11.3868 4.6668 11.1809 5.16189 10.8155 5.52725C10.4502 5.89261 9.95508 6.09855 9.43838 6.1001H4.23838C3.72168 6.09855 3.22659 5.89261 2.86123 5.52725C2.49586 5.16189 2.28992 4.6668 2.28838 4.1501V2.8501C1.77168 2.85164 1.27659 3.05758 0.911225 3.42294C0.545863 3.78831 0.339922 4.2834 0.338379 4.8001V17.1501C0.339922 17.6668 0.545863 18.1619 0.911225 18.5273C1.27659 18.8926 1.77168 19.0986 2.28838 19.1001H11.3884C11.9051 19.0986 12.4002 18.8926 12.7655 18.5273C13.1309 18.1619 13.3368 17.6668 13.3384 17.1501V4.8001C13.3368 4.2834 13.1309 3.78831 12.7655 3.42294C12.4002 3.05758 11.9051 2.85164 11.3884 2.8501ZM6.18838 10.6501C6.18838 10.4777 6.25686 10.3124 6.37876 10.1905C6.50066 10.0686 6.66599 10.0001 6.83838 10.0001C7.01077 10.0001 7.1761 10.0686 7.298 10.1905C7.4199 10.3124 7.48838 10.4777 7.48838 10.6501V12.6001C7.48838 12.7725 7.4199 12.9378 7.298 13.0597C7.1761 13.1816 7.01077 13.2501 6.83838 13.2501C6.66599 13.2501 6.50066 13.1816 6.37876 13.0597C6.25686 12.9378 6.18838 12.7725 6.18838 12.6001V10.6501ZM3.58838 11.3001C3.58838 11.1277 3.65686 10.9624 3.77876 10.8405C3.90066 10.7186 4.06599 10.6501 4.23838 10.6501C4.41077 10.6501 4.5761 10.7186 4.698 10.8405C4.8199 10.9624 4.88838 11.1277 4.88838 11.3001V12.6001C4.88838 12.7725 4.8199 12.9378 4.698 13.0597C4.5761 13.1816 4.41077 13.2501 4.23838 13.2501C4.06599 13.2501 3.90066 13.1816 3.77876 13.0597C3.65686 12.9378 3.58838 12.7725 3.58838 12.6001V11.3001ZM9.43838 16.5001H4.23838C4.06599 16.5001 3.90066 16.4316 3.77876 16.3097C3.65686 16.1878 3.58838 16.0225 3.58838 15.8501C3.58838 15.6777 3.65686 15.5124 3.77876 15.3905C3.90066 15.2686 4.06599 15.2001 4.23838 15.2001H9.43838C9.61077 15.2001 9.7761 15.2686 9.898 15.3905C10.0199 15.5124 10.0884 15.6777 10.0884 15.8501C10.0884 16.0225 10.0199 16.1878 9.898 16.3097C9.7761 16.4316 9.61077 16.5001 9.43838 16.5001ZM10.0884 12.6001C10.0884 12.7725 10.0199 12.9378 9.898 13.0597C9.7761 13.1816 9.61077 13.2501 9.43838 13.2501C9.26599 13.2501 9.10066 13.1816 8.97876 13.0597C8.85686 12.9378 8.78838 12.7725 8.78838 12.6001V9.3501C8.78838 9.17771 8.85686 9.01238 8.97876 8.89048C9.10066 8.76858 9.26599 8.7001 9.43838 8.7001C9.61077 8.7001 9.7761 8.76858 9.898 8.89048C10.0199 9.01238 10.0884 9.17771 10.0884 9.3501V12.6001Z",fill:e.fill||"white"})]}),m=e=>(0,a.jsx)(o.qZ,{size:20,viewBox:"0 0 18 16",children:(0,a.jsx)("path",{d:"M17.1031 12.1726L11.3235 6.72096L16.2938 2.68775L14.4446 0.944035L10.1676 5.63095L4.38636 0.18087C4.32562 0.123531 4.25349 0.0780442 4.1741 0.0470092C4.09471 0.0159743 4.00961 0 3.92366 0C3.83772 0 3.75262 0.0159743 3.67323 0.0470092C3.59383 0.0780442 3.52171 0.123531 3.46097 0.18087L1.95844 1.59774C1.92191 1.63302 1.89006 1.67237 1.86362 1.71491L0.455916 3.45092C0.407726 3.49326 0.369074 3.54432 0.342266 3.60106C0.315458 3.6578 0.301043 3.71904 0.299881 3.78115C0.298719 3.84325 0.310834 3.90494 0.335503 3.96253C0.360172 4.02012 0.396889 4.07244 0.443465 4.11636C0.490041 4.16028 0.545521 4.1949 0.606595 4.21817C0.66767 4.24143 0.733087 4.25285 0.798945 4.25176C0.864803 4.25066 0.929752 4.23707 0.989918 4.21179C1.05008 4.18651 1.10423 4.15006 1.14914 4.10462L3.11109 2.68775C3.17185 2.63045 3.24399 2.585 3.32337 2.55399C3.40276 2.52298 3.48785 2.50702 3.57378 2.50702C3.65971 2.50702 3.7448 2.52298 3.82419 2.55399C3.90358 2.585 3.97571 2.63045 4.03648 2.68775C4.09724 2.74505 4.14544 2.81307 4.17832 2.88793C4.2112 2.9628 4.22813 3.04304 4.22813 3.12407C4.22813 3.2051 4.2112 3.28534 4.17832 3.3602C4.14544 3.43506 4.09724 3.50308 4.03648 3.56038L2.53395 5.41048C2.44731 5.49816 2.40014 5.61413 2.40238 5.73395C2.40463 5.85378 2.4561 5.9681 2.54597 6.05285C2.63583 6.13759 2.75707 6.18613 2.88414 6.18824C3.01121 6.19036 3.13419 6.14588 3.22717 6.06418L5.18912 4.64731C5.31227 4.53037 5.47964 4.46434 5.65441 4.46377C5.82918 4.46319 5.99703 4.5281 6.12105 4.64423C6.24506 4.76036 6.31508 4.91818 6.31569 5.08299C6.3163 5.2478 6.24747 5.40608 6.12432 5.52303L4.61852 7.37312C4.56823 7.4147 4.52749 7.46553 4.4988 7.52249C4.47011 7.57946 4.45407 7.64136 4.45168 7.70438C4.44929 7.76741 4.46059 7.83023 4.48489 7.88898C4.50919 7.94774 4.54597 8.00119 4.59298 8.04604C4.63999 8.0909 4.69624 8.12622 4.75825 8.14982C4.82027 8.17343 4.88675 8.18483 4.95361 8.18332C5.02046 8.18181 5.08629 8.16742 5.14703 8.14104C5.20778 8.11465 5.26216 8.07684 5.30684 8.02991L7.26879 6.61304C7.3915 6.49732 7.55794 6.43231 7.73148 6.43231C7.90503 6.43231 8.07146 6.49732 8.19418 6.61304C8.31689 6.72876 8.38583 6.88571 8.38583 7.04936C8.38583 7.21301 8.31689 7.36995 8.19418 7.48567L6.69165 9.33577C6.59907 9.42348 6.54723 9.54227 6.54754 9.66602C6.54785 9.78977 6.60027 9.90834 6.69328 9.99564C6.78629 10.0829 6.91227 10.1318 7.0435 10.1315C7.17473 10.1312 7.30047 10.0818 7.39305 9.9941L9.355 8.57723C9.47771 8.46151 9.64415 8.3965 9.81769 8.3965C9.99123 8.3965 10.1577 8.46151 10.2804 8.57723C10.4031 8.69295 10.472 8.84989 10.472 9.01354C10.472 9.17719 10.4031 9.33414 10.2804 9.44986L8.77786 11.3C8.69122 11.3876 8.64405 11.5036 8.64629 11.6234C8.64853 11.7433 8.70001 11.8576 8.78987 11.9423C8.87974 12.0271 9.00098 12.0756 9.12805 12.0777C9.25512 12.0798 9.3781 12.0354 9.47108 11.9537L11.433 10.5368C11.5557 10.4211 11.7222 10.3561 11.8957 10.3561C12.0693 10.3561 12.2357 10.4211 12.3584 10.5368C12.4811 10.6525 12.5501 10.8095 12.5501 10.9731C12.5501 11.1368 12.4811 11.2937 12.3584 11.4094L10.8657 13.2626C10.7791 13.3503 10.7319 13.4662 10.7341 13.5861C10.7364 13.7059 10.7879 13.8202 10.8777 13.905C10.9676 13.9897 11.0888 14.0383 11.2159 14.0404C11.343 14.0425 11.4659 13.998 11.5589 13.9163L13.5209 12.4994C13.6436 12.3837 13.81 12.3187 13.9836 12.3187C14.1571 12.3187 14.3235 12.3837 14.4463 12.4994C14.569 12.6152 14.6379 12.7721 14.6379 12.9358C14.6379 13.0994 14.569 13.2563 14.4463 13.3721L12.9437 15.2222C12.8571 15.3098 12.8099 15.4258 12.8122 15.5456C12.8144 15.6655 12.8659 15.7798 12.9557 15.8645C13.0456 15.9493 13.1669 15.9978 13.2939 15.9999C13.421 16.002 13.544 15.9576 13.637 15.8759L15.4779 14.5484C15.5244 14.5257 15.5678 14.4978 15.6071 14.4652L17.1096 13.0483C17.1705 12.9906 17.2186 12.922 17.2513 12.8467C17.2839 12.7713 17.3004 12.6906 17.2998 12.6092C17.2992 12.5277 17.2815 12.4473 17.2477 12.3723C17.214 12.2974 17.1648 12.2295 17.1031 12.1726ZM14.098 2.3609C14.1666 2.29616 14.254 2.25205 14.3491 2.23416C14.4443 2.21626 14.543 2.22539 14.6326 2.26038C14.7223 2.29537 14.7989 2.35465 14.8528 2.43073C14.9068 2.5068 14.9355 2.59625 14.9355 2.68775C14.9355 2.77925 14.9068 2.8687 14.8528 2.94478C14.7989 3.02085 14.7223 3.08013 14.6326 3.11512C14.543 3.15011 14.4443 3.15924 14.3491 3.14135C14.254 3.12345 14.1666 3.07934 14.098 3.0146C14.0062 2.92788 13.9546 2.81032 13.9546 2.68775C13.9546 2.56518 14.0062 2.44762 14.098 2.3609Z",fill:e.fill||"white"})}),g=e=>(0,a.jsxs)(o.qZ,{size:30,viewBox:"0 0 30 30",children:[(0,a.jsx)("mask",{id:"mask0",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"30",height:"30",children:(0,a.jsx)("circle",{cx:"15.1895",cy:"14.5",r:"14.5",fill:"black"})}),(0,a.jsx)("g",{mask:"url(#mask0)",children:(0,a.jsx)("path",{d:"M10.4573 9.66663C9.85949 10.9202 9.41679 12.1845 9.07062 13.4559C8.83298 12.8736 8.57319 12.2988 8.28629 11.7327C8.53905 12.4341 8.75278 13.1815 8.93632 13.964C8.09944 17.2872 7.89056 20.6549 7.37505 24.0009C6.59672 19.5958 7.32562 15.191 2.90343 10.7859C5.91498 14.7233 5.85634 18.5384 6.07231 22.3649C4.62023 20.8065 3.05516 19.3746 0.689453 18.8353C4.15352 20.7704 5.33761 23.018 5.81176 25.1635C5.21438 23.9162 4.86712 23.1923 3.46751 23.14C4.64349 23.9957 4.82545 26.4795 4.81926 27.5306L8.64107 29.6573C8.91659 26.1451 8.8697 19.1213 9.26401 15.582C9.8171 18.754 9.92228 25.9802 10.0443 29.6573L11.4475 30.0826C11.9589 27.7966 12.4748 21.428 12.9775 19.1403C13.4182 17.1348 14.1159 15.1799 15.5366 13.3687C13.237 15.4197 11.9383 18.6286 11.0214 22.279C10.8227 19.5292 10.3288 16.877 9.41913 14.3622C9.63993 12.8255 9.96198 11.2661 10.4573 9.66663ZM12.9775 19.1403C14.5297 21.4494 14.459 28.6242 14.7217 30.9333L16.6461 30.7695C16.6669 27.1265 16.2628 18.7804 17.0032 15.1405C18.1621 20.7794 17.4333 28.4739 16.5927 30.9333L18.9314 30.0826C19.0393 25.5299 19.7549 15.6423 23.0468 10.3118C20.6199 12.4992 19.5727 15.7615 18.2281 18.792C18.1615 17.2371 17.7316 15.7906 17.1724 14.3821C17.2057 14.2452 17.2367 14.1082 17.2732 13.9713C17.2281 14.0819 17.1884 14.1985 17.1449 14.3109C16.9138 13.7338 16.6637 13.1625 16.4049 12.5937C16.6166 13.3972 16.7894 14.1411 16.9408 14.8522C16.0659 17.3069 15.5386 20.1447 15.2324 23.2259C14.8284 21.7404 14.1619 20.349 12.9775 19.1403ZM29.6895 11.001C26.9733 14.1563 25.7248 18.312 24.2629 22.3223C24.3839 20.7009 24.4111 19.0791 24.0454 17.4577C24.0795 19.0793 23.9428 20.5998 23.5679 21.9781C23.4728 19.7684 23.1072 17.558 22.4391 15.3483C23.0206 18.595 22.7198 21.7329 22.6997 24.9051C22.0895 22.8638 21.6472 20.7995 20.4561 18.8366C20.5524 18.2048 20.653 17.5735 20.7462 16.9416C20.6082 17.515 20.4766 18.0882 20.3453 18.6615C20.1997 18.4311 20.0466 18.2016 19.878 17.9744C20.036 18.2732 20.1723 18.575 20.295 18.8786C19.7526 21.2748 19.3692 27.2611 19.3991 29.6573L20.3346 29.232C19.8351 26.9322 20.0632 21.4674 20.4058 19.1676C21.231 21.4031 21.0765 26.9129 21.2701 29.232L25.0909 27.5306C25.5236 23.1368 26.5795 16.0653 29.6895 11.001ZM13.1924 20.6863C12.8406 22.5056 12.625 28.3589 12.8507 30.0826L13.7862 30.9333C13.3927 29.1398 13.0806 22.4798 13.1924 20.6863ZM27.6487 21.7197C26.7272 23.0869 26.311 26.0177 26.1244 27.5306H26.7925C26.73 26.0861 26.8996 23.1752 27.6487 21.7197Z",fill:e.fill||"white"})})]}),y=e=>(0,a.jsxs)(o.qZ,{...e,viewBox:"0 0 30 31",children:[(0,a.jsx)("path",{d:"M14.735 11.511C14.7889 11.5624 14.8588 11.5881 14.9285 11.5881C14.9944 11.5881 15.0598 11.5654 15.1127 11.5197C15.1816 11.4601 16.8012 10.0413 16.8429 8.19681C16.8836 6.35287 15.3299 4.86251 15.2638 4.79993C15.1582 4.70022 14.9954 4.69666 14.8853 4.79128C14.8164 4.85106 13.1973 6.2702 13.1561 8.11388C13.1151 9.95807 14.6686 11.4484 14.735 11.511Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M9.15729 19.9537C9.08633 19.9491 9.01459 19.974 8.96143 20.0221C8.90826 20.0707 8.87698 20.1386 8.87443 20.2106C8.87138 20.321 8.85052 22.8942 10.3546 24.5262C12.2072 26.537 14.0224 26.2254 14.418 26.1585C14.5408 26.1377 14.6939 26.0398 14.7 25.9151C14.7026 25.865 14.8995 20.3197 9.15729 19.9537Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M20.8419 19.9537C20.9129 19.9491 20.9849 19.974 21.0378 20.0221C21.0912 20.0707 21.1225 20.1386 21.1248 20.2106C21.1281 20.321 21.1487 22.8942 19.6446 24.5262C17.792 26.537 15.9771 26.2254 15.5813 26.1585C15.4584 26.1377 15.3055 26.0398 15.2992 25.9151C15.2964 25.865 15.0998 20.3197 20.8419 19.9537Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M9.9658 15.0617C9.89432 15.0551 9.82285 15.0777 9.76816 15.1245C9.71372 15.1713 9.68014 15.2382 9.67582 15.3102C9.66971 15.4084 9.58882 17.6962 10.8943 19.1764C12.0349 20.4694 13.629 20.7899 13.629 20.7899C13.8943 20.7899 14.1322 20.8089 14.4216 20.7688C14.5453 20.752 14.7037 20.6385 14.7142 20.5144C14.7175 20.4706 14.995 15.5394 9.9658 15.0617Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M20.033 15.0617C20.1042 15.0551 20.176 15.0777 20.2307 15.1245C20.2853 15.1713 20.3184 15.2382 20.3232 15.3102C20.3291 15.4084 20.4102 17.6962 19.1045 19.1764C17.9637 20.4694 16.3698 20.7899 16.3698 20.7899C16.1042 20.7899 15.8669 20.8089 15.5774 20.7688C15.4538 20.752 15.2948 20.6385 15.2849 20.5144C15.2816 20.4706 15.0038 15.5394 20.033 15.0617Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M14.2378 15.7447C14.2383 15.7447 14.2383 15.7447 14.2383 15.7447C14.2917 15.7447 14.3446 15.7442 14.399 15.7427C14.5234 15.7396 14.6295 15.6503 14.6534 15.528C14.6613 15.4873 15.3977 10.9007 10.7514 9.9275C10.6809 9.91275 10.6076 9.92725 10.5481 9.9682C10.4886 10.0084 10.4476 10.0712 10.4357 10.1422C10.4184 10.2391 10.0333 12.5366 11.2797 14.0201C11.9444 14.8114 12.9397 15.7447 14.2378 15.7447Z",fill:e.fill||"currentColor"}),(0,a.jsx)("path",{d:"M15.7617 15.7447C15.7614 15.7447 15.7614 15.7447 15.7614 15.7447C15.708 15.7447 15.6549 15.7442 15.6002 15.7427C15.4758 15.7396 15.37 15.6503 15.346 15.528C15.3379 15.4873 14.6018 10.9007 19.2481 9.9275C19.3186 9.91275 19.3918 9.92725 19.4513 9.9682C19.5109 10.0084 19.5516 10.0712 19.5638 10.1422C19.5811 10.2391 19.9659 12.5366 18.7198 14.0201C18.0551 14.8114 17.0597 15.7447 15.7617 15.7447Z",fill:e.fill||"currentColor"})]}),v=e=>(0,a.jsxs)(o.qZ,{...e,viewBox:"0 0 30 30",children:[(0,a.jsx)("path",{d:"M5.58881 21.8136C6.14504 21.718 8.50554 21.2665 9.4277 20.3444L6.95807 17.8748C6.03593 18.7969 5.58496 21.1581 5.48958 21.7144C5.48719 21.728 5.48811 21.7419 5.49225 21.755C5.4964 21.7681 5.50364 21.7801 5.51338 21.7898C5.52312 21.7995 5.53506 21.8068 5.54819 21.8109C5.56132 21.8151 5.57525 21.816 5.58881 21.8136Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.6208 8.20058C21.749 8.07233 21.8211 7.89841 21.8211 7.71706C21.8211 7.5357 21.749 7.36178 21.6208 7.23354L20.0693 5.68197C20.0058 5.61847 19.9304 5.5681 19.8474 5.53374C19.7644 5.49937 19.6755 5.48169 19.5857 5.48169C19.4959 5.48169 19.407 5.49938 19.324 5.53375C19.2411 5.56812 19.1657 5.61849 19.1022 5.68199L17.4893 7.2949L20.0079 9.81349L21.6208 8.20058Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M16.7814 8.00333L7.6416 17.1431L10.1598 19.6613L19.2996 10.5216L16.7814 8.00333Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M5.74948 23.5561L6.23441 23.755C6.8152 24.0058 7.44751 24.1144 8.07873 24.0716C8.5028 24.0363 8.90662 23.8136 9.33403 23.5778C10.021 23.199 10.7991 22.7691 11.8348 23.0225C12.0181 23.0679 12.1877 23.1568 12.3294 23.2815C12.4712 23.4062 12.5808 23.5632 12.6492 23.7392C12.89 24.3539 13.2607 24.4458 13.4603 24.4458C13.6598 24.4458 14.0305 24.3539 14.2713 23.7391L14.978 21.9343C14.9829 21.9216 14.9878 21.9098 14.9926 21.8987C14.9974 21.9098 15.0022 21.9217 15.0072 21.9343L15.7138 23.739C15.9545 24.3539 16.3252 24.4457 16.5247 24.4457C16.7244 24.4457 17.0951 24.3539 17.3358 23.739L18.0424 21.9343C18.0474 21.9217 18.0523 21.9097 18.0571 21.8985C18.0619 21.9097 18.0667 21.9216 18.0717 21.9342L18.7784 23.7392C19.0192 24.354 19.3899 24.4458 19.5895 24.4458C19.789 24.4457 20.1597 24.3539 20.4004 23.7391L21.107 21.9343C21.1231 21.8933 21.1383 21.8596 21.1521 21.832C23.4805 24.1674 23.8351 24.5191 24.0767 24.5191C24.1205 24.517 24.1638 24.5089 24.2053 24.4948C24.2876 24.4717 24.3612 24.4245 24.4164 24.3592C24.4717 24.2939 24.5062 24.2136 24.5154 24.1285C24.5247 24.0435 24.5082 23.9576 24.4682 23.882C24.4283 23.8064 24.3666 23.7445 24.2911 23.7042C24.0363 23.4909 22.7571 22.2305 21.6259 21.0962C21.5436 21.0142 21.4422 20.9539 21.3308 20.9207C21.2194 20.8876 21.1015 20.8826 20.9877 20.9063C20.6991 20.9713 20.4713 21.2121 20.3107 21.6225L19.604 23.4274C19.599 23.44 19.5942 23.4519 19.5894 23.4629C19.5846 23.4518 19.5798 23.44 19.5748 23.4274L18.8681 21.6224C18.6273 21.0077 18.2566 20.9159 18.0571 20.9159C17.8575 20.9159 17.4868 21.0077 17.246 21.6226L16.5395 23.4272C16.5344 23.4399 16.5295 23.4518 16.5247 23.4629C16.52 23.4518 16.5151 23.4399 16.5101 23.4272L15.8035 21.6226C15.5629 21.0078 15.1922 20.9159 14.9926 20.9159C14.7931 20.9159 14.4223 21.0077 14.1816 21.6225L13.4749 23.4272C13.4699 23.44 13.465 23.4519 13.4603 23.463C13.4555 23.4519 13.4506 23.44 13.4456 23.4274C13.3271 23.1236 13.1374 22.8529 12.8924 22.6378C12.6474 22.4228 12.3543 22.2698 12.0378 22.1917C10.6782 21.8598 9.66247 22.4199 8.92092 22.8289C8.64262 23.0131 8.33327 23.1453 8.00784 23.2193C7.51141 23.2502 7.01476 23.1625 6.55888 22.9636L6.07395 22.7647C6.02197 22.7433 5.96628 22.7324 5.91006 22.7325C5.85384 22.7326 5.7982 22.7438 5.74632 22.7655C5.69443 22.7871 5.64733 22.8188 5.6077 22.8587C5.56807 22.8986 5.5367 22.9459 5.51537 22.9979C5.49404 23.0499 5.48318 23.1056 5.4834 23.1618C5.48363 23.218 5.49493 23.2737 5.51668 23.3255C5.53842 23.3774 5.57018 23.4244 5.61012 23.464C5.65007 23.5035 5.69742 23.5348 5.74948 23.5561H5.74948Z",fill:"currentColor"})]}),b=e=>(0,a.jsx)("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7.09375 0.727539C3.59019 0.727539 0.75 2.14763 0.75 3.89941C0.75 5.65119 3.59019 7.07129 7.09375 7.07129C10.5973 7.07129 13.4375 5.65119 13.4375 3.89941C13.4375 2.14763 10.5973 0.727539 7.09375 0.727539ZM0.757069 6.20752V7.37573C1.01931 7.84528 1.55074 8.30356 2.34301 8.69971C3.5251 9.29076 5.22622 9.68382 7.10082 9.68382C8.9754 9.68382 10.6624 9.29076 11.8445 8.69971C12.6492 8.29735 13.1796 7.83156 13.4375 7.35449V6.20752C13.1015 6.48646 12.7081 6.74214 12.2764 6.95801C10.9165 7.63794 9.10517 8.0271 7.10082 8.0271C5.09644 8.0271 3.27103 7.63794 1.91113 6.95801C1.47955 6.74223 1.09184 6.48635 0.757069 6.20752ZM0.757069 8.87671V10.0945C1.01931 10.564 1.55074 11.0223 2.34301 11.4185C3.5251 12.0095 5.22622 12.4026 7.10082 12.4026C8.9754 12.4026 10.6624 12.0095 11.8445 11.4185C12.6492 11.0161 13.1796 10.5503 13.4375 10.0732V8.87671C13.1015 9.15556 12.708 9.40432 12.2764 9.62012C10.9165 10.3001 9.10517 10.6963 7.10082 10.6963C5.09644 10.6963 3.27103 10.3001 1.91113 9.62012C1.47967 9.40438 1.09179 9.15545 0.757069 8.87671ZM0.757069 11.5955V12.8062C1.01827 13.2775 1.54777 13.7396 2.34301 14.1372C3.5251 14.7283 5.22622 15.1213 7.10082 15.1213C7.69835 15.1213 8.27328 15.0752 8.82129 15.001C9.41135 13.7956 10.6497 12.9619 12.0781 12.9619C12.4683 12.9619 12.8442 13.024 13.1968 13.1389C13.2937 13.0234 13.3741 12.9092 13.4375 12.792V11.5955C13.1015 11.8743 12.708 12.1231 12.2764 12.3389C10.9165 13.0188 9.10517 13.415 7.10082 13.415C5.09644 13.415 3.27103 13.0188 1.91113 12.3389C1.47967 12.1231 1.09179 11.8742 0.757069 11.5955ZM12.0781 13.415C10.3263 13.415 8.90625 14.8351 8.90625 16.5869C8.90625 18.3387 10.3263 19.7588 12.0781 19.7588C13.8299 19.7588 15.25 18.3387 15.25 16.5869C15.25 14.8351 13.8299 13.415 12.0781 13.415ZM0.75 14.3142V14.7744C0.75 16.5262 3.59123 17.9463 7.09375 17.9463C7.64228 17.9463 8.17303 17.9058 8.67969 17.8401C8.53457 17.4488 8.45312 17.0276 8.45312 16.5869C8.45312 16.4083 8.47034 16.2348 8.49561 16.063C8.04345 16.1069 7.579 16.1338 7.10082 16.1338C5.09644 16.1338 3.27103 15.7376 1.91113 15.0576C1.47792 14.841 1.08563 14.5943 0.75 14.3142ZM13.6287 15.2275C13.7504 15.2192 13.8761 15.2625 13.9756 15.355C14.1681 15.5376 14.1407 15.7939 14.0181 15.9639L12.2056 18.2295C12.0624 18.4075 11.7792 18.4532 11.5896 18.3145L10.0037 17.1816C9.79048 17.0532 9.75321 16.7472 9.89746 16.5444C10.0417 16.3417 10.3426 16.2997 10.5276 16.4453L11.7666 17.3303L13.3101 15.3975C13.3892 15.2962 13.5069 15.236 13.6287 15.2275Z",fill:e.fill||"white"})}),_=e=>{let{className:t,...n}=e;return(0,a.jsxs)(o.qZ,{...n,className:i()("animation--spin",t),viewBox:"0 0 18 18",children:[(0,a.jsx)("path",{d:"M17.332,9.987c-0.459,-0.111 -0.918,0.168 -1.047,0.653c-0.734,3.316 -3.598,5.608 -6.958,5.608c-2.387,0 -4.572,-1.192 -5.875,-3.111l0.808,-0.56c0.238,-0.167 0.385,-0.465 0.348,-0.763c-0.036,-0.299 -0.238,-0.56 -0.514,-0.671l-2.956,-1.137c-0.238,-0.093 -0.514,-0.056 -0.734,0.093c-0.22,0.149 -0.349,0.392 -0.349,0.652l-0.055,3.224c0,0.298 0.165,0.578 0.422,0.727c0.11,0.056 0.257,0.093 0.386,0.093c0.165,-0 0.312,-0.056 0.441,-0.131l0.789,-0.54c1.616,2.404 4.333,3.876 7.307,3.876c4.168,-0 7.73,-2.87 8.63,-6.969c0.055,-0.224 0.018,-0.466 -0.092,-0.652c-0.129,-0.205 -0.331,-0.336 -0.551,-0.392Z"}),(0,a.jsx)("path",{d:"M0.661,8.012c0.459,0.112 0.918,-0.167 1.046,-0.652c0.734,-3.317 3.599,-5.608 6.959,-5.608c2.386,-0 4.571,1.192 5.875,3.111l-0.808,0.559c-0.239,0.168 -0.386,0.466 -0.349,0.764c0.037,0.298 0.239,0.559 0.514,0.671l2.956,1.137c0.239,0.093 0.514,0.056 0.735,-0.093c0.22,-0.149 0.349,-0.392 0.349,-0.653l0.055,-3.223c-0,-0.298 -0.166,-0.578 -0.423,-0.727c-0.11,-0.056 -0.257,-0.093 -0.385,-0.093c-0.165,-0 -0.312,0.056 -0.441,0.13l-0.771,0.559c-1.634,-2.403 -4.333,-3.894 -7.307,-3.894c-4.168,0 -7.73,2.87 -8.63,6.969c-0.055,0.224 -0.018,0.466 0.092,0.652c0.11,0.205 0.312,0.336 0.533,0.391Z"})]})}},48071:(e,t,n)=>{"use strict";n.d(t,{U8:()=>g,So:()=>y,ZP:()=>_});var r=n(19160),i=n.n(r),o=n(96620),a=n.n(o),s=(n(18178),n(72457)),l=n(84917),c=n(51408),u=n(22221),d=n(96073),p=n(1730),h=n(73042),f=n(64946),m=n(5651);const g=e=>{let{actions:t,appearance:n="info",bordered:r,children:o,className:a="",color:s="default",containerStyle:u={},fullWidth:d,hideIcon:h=!1,icon:f,iconColor:g,mini:_,noBackground:w,onIconClick:x,title:k,visible:C=!0,...S}=e;const M=(0,l.Fg)();return C?(0,m.jsxs)("div",{className:i()("info-block",`info-block__appearance-${b(M)[n].key}`,`info-block--color-${s}`,{[a]:!!a,"info-block--no-bg":w,"info-block--mini":_,"info-block--bordered":r,"info-block--full-width":d,clickable:!!S.onClick}),style:u,...S,children:[(0,m.jsxs)(c.k,{nowrap:!0,fullWidth:!0,alignItems:"center",children:[(0,m.jsx)(v,{onIconClick:x,hideIcon:h,appearance:n,icon:(0,m.jsx)(y,{appearance:n,icon:f,iconColor:g})}),(0,m.jsxs)("div",{className:"info-block__content",children:[k&&(0,m.jsx)(p.x,{variant:"small",fontWeight:500,className:"margin-right-5",children:k}),o]})]}),Boolean(t)?(0,m.jsx)(c.k,{className:"info-block__actions",gap:"10px",fullWidth:!0,justifyContent:"flex-end",children:t}):null]}):null},y=e=>{var t;let{appearance:n="default",icon:r,iconColor:i}=e;const o=(0,l.Fg)(),c=b(o)[n].icon,u=null!==(t=null!==i&&void 0!==i?i:b(o)[n].iconColor)&&void 0!==t?t:"default";return(0,h.HH)(r)?(0,m.jsx)(s.xu,{style:{color:u},children:r}):r?(0,m.jsx)(m.Fragment,{children:r}):(0,h.HH)(c)?(0,m.jsx)(s.xu,{style:{color:u,fontSize:"16px"},children:c}):a()(c)?c(u):(0,m.jsx)(m.Fragment,{})},v=e=>{let{appearance:t="default",icon:n,hideIcon:r,onIconClick:o}=e;const a=(0,l.Fg)();return r?null:(0,m.jsx)("span",{className:i()("info-block__info-icon",`info-block__icon-${b(a)[t].key}`,{_clickable:!!o}),onClick:o,children:n})},b=e=>({info:{icon:e=>(0,m.jsx)(u.sz,{style:{width:"16px",color:e}}),key:"info",iconColor:f.Z["dodger-blue"]},warning:{icon:e=>(0,m.jsx)(u.Pz,{style:{width:"16px",color:e}}),key:"warning",iconColor:e.color.text.warning},gray:{key:"gray"},error:{icon:e=>(0,m.jsx)(u.Pz,{style:{width:"16px",color:e}}),key:"error",iconColor:e.color.text.error},success:{icon:e=>(0,m.jsx)(u.tm,{style:{width:"16px",color:e}}),iconColor:e.color.text.success,key:"confirm"},default:{icon:"help_outline",key:"default",iconColor:e.color.text.secondary},processing:{icon:e=>(0,m.jsx)(d.Ho,{size:16,style:{color:e}}),key:"processing",iconColor:f.Z["dodger-blue"]},add:{icon:"add_circle_outline",key:"add",iconColor:e.color.text.secondary}}),_=g},23763:(e,t,n)=>{"use strict";n.d(t,{e:()=>i,l:()=>r});const r=["info","warning","error","success","default","processing","add","gray"],i=e=>{switch(e){case"info":case"default":case"processing":case"gray":return"info";case"warning":return"warning";case"error":return"error";case"success":case"add":return"success"}}},50707:(e,t,n)=>{"use strict";n.d(t,{Ln:()=>a});var r=n(18178),i=n(67925),o=n(5651);const a=(0,r.memo)((e=>{const{prevent:t,external:n,blank:a,...s}=e,l=(0,r.useMemo)((()=>n?String(e.href):(0,i.uz)()+e.href),[n,e.href]);return(0,o.jsx)("a",{...s,onClick:e=>{if(s.onClick&&s.onClick(e,l),t)return e.preventDefault(),!1},href:l,...a?{target:"_blank"}:{},children:e.children})}))},91924:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});n(18178);var r=n(5651);const i=e=>{let{width:t,height:n,borderRadius:i,...a}=e;const s=(null===a||void 0===a?void 0:a.style)||{};return t&&(s.width=t),n&&(s.height=n),i&&(s.borderRadius=o[i]),(0,r.jsx)("div",{className:"placeholder-loader animation--pulsate",style:s,...a})},o={s:"2px",m:"4px",l:"10px"}},62957:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(22297);const i=e=>{let{id:t,children:n}=e;const i=document.getElementById(t);return i?r.createPortal(n,i):null}},61790:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(84917);const i=n(64946).Z["panel-padding"],o=r.ZP.hr`
  margin-left: -${i};
  margin-right: -${i};
  border: ${e=>{let{theme:t}=e;return`1px solid ${t.color.stroke.subtle}`}};
  border-top: 0;
`},55449:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});n(18178);var r=n(72457),i=n(36777),o=n(5651);function a(e){let{value:t,onChange:n,onKeyDown:a,placeholder:s,loading:l}=e;return(0,o.jsxs)(i.xu,{display:"flex",alignContent:"center",children:[(0,o.jsx)(i.xu,{minWidth:e=>e.fixedWidths.xs,children:(0,o.jsx)(i.zu,{placeholder:s,startAdornment:(0,o.jsx)(i.oG,{position:"start",children:(0,o.jsx)(i.le,{type:"search"})}),value:t,inputProps:{"aria-label":s},onChange:e=>n(e.target.value),onKeyDown:a,fullWidth:!0})}),(0,o.jsx)(i.xu,{ml:2,display:"flex",alignItems:"center",children:l&&(0,o.jsx)(r.D8,{id:s,style:{margin:0},scale:.8})})]})}},73612:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});n(18178);var r=n(14009),i=n(5651);const o=e=>{const{size:t,...n}=e;return(0,i.jsx)(r.A,{...n,size:t||30,padding:!1,borderRadius:"100%",children:e.children})}},14009:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(19160),i=n.n(r),o=(n(18178),n(84917)),a=n(36777),s=n(5651);const l=e=>{let{children:t,className:n,size:r,color:l,borderRadius:c=0,borderColor:u,borderWidth:d=1,inline:p=!1,padding:h=!0,...f}=e;const m=(0,o.Fg)(),g=null!==l&&void 0!==l?l:m.color.stroke.subtle,y=r?{width:r,height:r}:{},v=p?{display:"inline-block"}:{},b=u?`${d}px solid ${null!==u&&void 0!==u?u:g}`:void 0;return(0,s.jsx)(a.xu,{display:"flex",flexWrap:"nowrap",justifyContent:"center",alignItems:"center",className:i()(n,"fluro-rectangle",{"p-05":h}),style:{background:g,borderRadius:c,border:b,...y,...v},...f,children:t})}},19299:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(19160),i=n.n(r),o=n(18178);var a=n(5651);const s=e=>{let{children:t,className:n,position:r="bottom",elevateStuck:s=!0,alwaysElevated:l,onClick:c,stuck:u,onStuck:d,variant:p,style:h}=e;const[f,m]=(0,o.useState)(u||!1),g=(0,o.useRef)(null);return(0,o.useEffect)((()=>{m(u||!1)}),[u]),(0,o.useEffect)((()=>{const e=g.current,t=new IntersectionObserver((e=>{let[t]=e;const n=t&&(null===t||void 0===t?void 0:t.intersectionRatio)>0&&(null===t||void 0===t?void 0:t.intersectionRatio)<1,i="top"===r?t&&t.boundingClientRect.top!==t.intersectionRect.top:t&&t.boundingClientRect.bottom!==t.intersectionRect.bottom,o=!(!n||!i);d?d(o):m(o)}),{threshold:[1]});return e&&t.observe(e),()=>{e&&t.unobserve(e)}}),[d,r]),(0,a.jsx)("div",{onClick:c,ref:g,style:h,className:i()(n,{"fluro-sticky":!0,"stuck-elevated":l||s&&f,stuck:f,[r]:!0,"sticky--container":"container"===p}),children:t})}},16929:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(18178);var r=n(84917),i=n(5651);const o=r.ZP.button`
  /* Hierachy=Primary, Icon=Default, State=Default */

  cursor: pointer;

  box-sizing: border-box;

  /* Auto layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  gap: 7.82px;

  height: 31px;

  /* FS Brand/Green 600 */
  background: #399d2b;
  mix-blend-mode: normal;
  border: 1.11765px solid rgba(0, 0, 0, 0.0001);
  box-shadow:
    0px 1px 1px rgba(0, 0, 0, 0.14),
    1.11765px 0px 1.11765px rgba(0, 0, 0, 0.14),
    -1.11765px 0px 1.11765px rgba(0, 0, 0, 0.14),
    0px 1px 1px rgba(0, 0, 0, 0.14);
  border-radius: 3px;

  &:active {
    /* FS Brand/Green 700 */
    background: #2e8023;
  }
  &:hover {
    /* FS Brand/Green 400 */
    background: #5fb854;
  }

  //   Text inside the button
  > span {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    /* FS Brand/White */
    color: #ffffff;
  }
`,a=r.ZP.button`
  /* Hierachy=Secondary, Icon=Default, State=Default */

  cursor: pointer;

  box-sizing: border-box;

  /* Auto layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  gap: 9px;

  height: 31px;

  background: #ffffff;
  mix-blend-mode: normal;

  /* FS Brand/Gray 300 */
  border: 1px solid #e0e0e0;
  border-radius: 3px;
`,s=e=>{let{hierachy:t,onClick:n,children:r,...s}=e;switch(t){case"primary":return(0,i.jsx)(o,{onClick:n,...s,children:(0,i.jsx)("span",{children:r})});case"secondary":return(0,i.jsx)(a,{onClick:n,...s,children:(0,i.jsx)("span",{children:r})});default:throw new Error("Invalid hierachy provided to Button")}}},88355:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(18178),i=n(84917),o=n(5651);const a=i.ZP.input`
  box-sizing: border-box;

  /* Auto layout */
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;

  height: 44px;

  /* FS Brand/Gray 300 */
  border: 1px solid #e0e0e0;
  border-radius: 4px;
`,s=(0,r.forwardRef)(((e,t)=>{let{fullWidth:n,id:r,name:i,...s}=e;const l=r||i,c=i||r;return(0,o.jsx)(a,{...s,style:{width:n?"100%":"initial"},id:l,name:c,ref:t})}))},34785:(e,t,n)=>{"use strict";n.d(t,{I:()=>s,N:()=>a});n(18178);var r=n(84917),i=n(88355),o=n(5651);const a=r.ZP.div`
  /* Auto layout */
  display: flex;
  flex-direction: column;
  padding: 0px;
  gap: 8px;

  /* Inside auto layout */
  // flex: none;
  align-self: stretch;
  flex-grow: ${e=>{let{flexGrow:t}=e;return t||0}};
  // flex-basis: 0;
`,s=e=>{let{disabled:t,errorText:n,fullWidth:s,id:l,inputMode:c,label:u,name:d,onChange:p,testId:h,type:f,value:m}=e;const g=(0,r.Fg)();return(0,o.jsxs)(a,{flexGrow:1,children:[(0,o.jsx)("label",{htmlFor:l,children:u}),(0,o.jsx)(i.X,{"data-testid":h,disabled:t,fullWidth:s,id:l,inputMode:c,name:d,onChange:p,type:f,value:m}),n?(0,o.jsx)("div",{style:{color:g.color.text.error},children:n}):null]})}},51571:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});const r=n(84917).ZP.span`
  /* FS Type/Headline 24 (Bold) */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;

  /* or 133% */

  color: #000000;

  /* Inside auto layout */
  flex: none;
  flex-grow: 0;
`},1730:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(19160),i=n.n(r);n(18178);var o=n(5651);const a={h1:"h1",h2:"h2",h3:"h3",p:"medium",small:"small",span:"medium",div:"medium",label:"medium"},s={h1:"h1",h2:"h2",h3:"h3",medium:"p",small:"small","small-thin":"small"},l=e=>{let{children:t,className:n,elementType:r,secondary:l=!1,tertiary:c=!1,inline:u=!1,nowrap:d=!1,variant:p,inheritColor:h=!0,marginBottom:f=!1,textCase:m="default",fontWeight:g,link:y,error:v,italic:b,fullWidth:_,primary:w,bold:x,noMargin:k,...C}=e;const S=p||r&&a[r],M=r||p&&s[p]||"p";return(0,o.jsx)(M,{className:i()(n,"text-element",{inline:u,italic:b,primary:w&&!y,secondary:l&&!y,tertiary:c&&!y,error:v&&!y,bold:x,link:!l&&y,"m-0":k,"mb-2":f,[`font-weight-${g}`]:!!g,[`text-element--${S}`]:S,"text-element--inherit-color":h,[`text-element--case-${m}`]:"default"!==m,"text-element--nowrap":d,"text-element--wrap":!d,"element-full-width":_}),...C,children:t})};l.displayName="Text"},44289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(19160),i=n.n(r),o=n(18178),a=n(72457),s=n(22221),l=n(5229);var c=n(5651);const u=e=>{let{id:t,name:n,label:r="",disabled:u,onChange:d,accept:p,icon:h,multiple:f=!1,className:m="",isUploading:g=!1}=e;const[y,v]=(0,o.useState)(!1);return(0,c.jsx)("div",{className:"upload-file-zone-container",children:(0,c.jsxs)("div",{onDragOver:()=>!y&&v(!0),onDragLeave:()=>y&&v(!1),className:i()("upload-file-zone",{active:g||y}),children:[(0,c.jsx)(a.S2,{disabled:u,id:t,className:`upload-file-zone__input ${m}`,accept:p,name:n,icon:h,label:r,multiple:f,onChange:d,allowDuplicates:!0}),(0,c.jsx)("img",{className:i()("upload-file-zone__loader",{hidden:!g}),alt:"loader",src:"/assets/material-loader.gif"}),!g&&(0,c.jsx)(s.rG,{className:"upload-file-zone__icon"}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"upload-file-zone__text",children:(0,l.t)({id:"Upload files",defaultMessage:"Upload files"})}),(0,c.jsx)("div",{className:"upload-file-zone__hint-text",children:(0,l.t)({id:"Drop files here or click to browse",defaultMessage:"Drop files here or click to browse"})})]})]})})}},46386:(e,t,n)=>{"use strict";n.d(t,{A2:()=>r,BG:()=>d,Lq:()=>u,Mg:()=>p,N:()=>l,O_:()=>c,SO:()=>s,TI:()=>a,UG:()=>o,ak:()=>h,dH:()=>i,lZ:()=>f});const r={0:{prop:"user",access:0},1:{prop:"agronomist",access:1},2:{prop:"farmer",access:2},3:{prop:"admin",access:3}},i="YYYY-MM-DD",o="MMM D, YYYY",a="YYYY-MM-DDTHH:mm:ss",s={month:"short",day:"2-digit",year:"numeric"},l=1e3,c=1e4,u=[[-125.468072,49.263537],[-95.470882,49.142552],[-89.082591,48.287357],[-84.360812,46.469502],[-79.824199,46.405699],[-75.935675,45.3096],[-71.399063,45.3096],[-69.177049,47.480208],[-67.603122,47.292155],[-66.677283,44.851983],[-75.380171,37.256015],[-75.195004,34.55686],[-80.935207,30.419467],[-79.36128,25.682518],[-80.194535,24.086817],[-82.601717,24.002267],[-83.62014,29.133753],[-86.953161,29.939261],[-90.378766,28.403354],[-94.267291,28.728607],[-95.748634,25.932567],[-97.692896,25.765926],[-99.544574,27.585856],[-101.025917,29.295367],[-103.062763,29.214592],[-104.63669,29.778674],[-106.580952,31.767209],[-108.432631,31.372803],[-113.802498,32.394773],[-117.320687,32.472915],[-120.653708,34.633074],[-123.523809,37.916309],[-124.912568,40.709311],[-125.468072,49.263537]],d=[[[-6.064453125,50.51342652633956],[-2.28515625,43.197167282501276],[3.251953125,41.705728515237524],[9.755859375,41.376808565702355],[8.4375,48.922499263758255],[-.87890625,56.022948079627454],[-5.361328125,54.87660665410869],[-6.064453125,50.51342652633956]]],p=[[22.6861,49.5771],[22.8861,49.0029],[19.7835,49.2002],[17.7244,50.319],[16.64,50.1089],[14.8283,50.8658],[14.2256,53.9286],[18.0433,54.834],[19.6511,54.4558],[19.2533,54.2782],[23.3561,54.2354],[23.9411,52.7497],[23.1654,52.2823],[24.1114,50.5669],[22.6861,49.5771]],h=404,f={paddingTopLeft:[32,32],paddingBottomRight:[function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?h:60}(!0),32]}},48954:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});let r=function(e){return e[e.FluroSelectLite=10001]="FluroSelectLite",e[e.NavBar=1e4]="NavBar",e[e.Select=9999]="Select",e[e.TemperatureChart=1100]="TemperatureChart",e[e.GlobalLoader=1e3]="GlobalLoader",e[e.DatePicker=999]="DatePicker",e[e.HistogramOverlay=900]="HistogramOverlay",e[e.Map=500]="Map",e[e.ColorSchemeOverlay=401]="ColorSchemeOverlay",e[e.CarbonColorsOverview=400]="CarbonColorsOverview",e[e.NewFieldsCancelButton=99]="NewFieldsCancelButton",e[e.FieldNameCol=30]="FieldNameCol",e[e.DatePicker2=25]="DatePicker2",e[e.TableViewHeader=20]="TableViewHeader",e[e.SelectorsToolbar=18]="SelectorsToolbar",e[e.CropInsightsTableColumnFieldName=17]="CropInsightsTableColumnFieldName",e[e.Popover=16]="Popover",e[e.CheckBoxTableColumn=15]="CheckBoxTableColumn",e[e.MapBar=14]="MapBar",e[e.SIMap=12]="SIMap",e[e.MapLoader=11]="MapLoader",e[e.Sticky=10]="Sticky",e[e.SelectorFieldWrapper=9]="SelectorFieldWrapper",e[e.DatePicker_Navigation=5]="DatePicker_Navigation",e[e.RandomTwo=2]="RandomTwo",e[e.RandomOne=1]="RandomOne",e[e.Base=0]="Base",e[e.BelowBase=-1]="BelowBase",e}({})},92299:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,d:()=>o});var r=n(18178);function i(e,t){const[n,i]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{i((t=>t===e?t:e))}),t);return()=>{clearTimeout(n)}}),[e,t]),n}function o(e,t){const[n,o]=(0,r.useState)(e),a=i(n,t);return(0,r.useMemo)((()=>[n,o,a]),[n,o,a])}},85254:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(18178),i=n(67954),o=n.n(i);const a=(e,t)=>(0,r.useMemo)(e,function(e){const t=(0,r.useRef)([]);o()(e,t.current)||(t.current=e);return t.current}(t))},85251:(e,t,n)=>{"use strict";n.d(t,{$$:()=>i,cW:()=>s,oi:()=>o,yP:()=>a});var r=n(80691);let i=function(e){return e.IMPERSONATED_USER="impersonatedUser",e.LANG="lang",e.REDIRECT_URL="redirectUrl",e.RELOAD_PAGE="reloadPage",e.TOKEN="token",e.UN_IMPERSONATE_REDIRECT_URL="unImpersonateRedirectUrl",e}({});function o(e){return(0,r.K)(localStorage.getItem(e))}function a(e,t){localStorage.setItem(e,JSON.stringify(t))}function s(e){localStorage.removeItem(e)}},89247:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(18178);const i=()=>{const e=(0,r.useRef)(!1);return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},53864:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(18178),i=n(55927),o=n(36996),a=n(75877),s=n(9694),l=n(39965);const c=()=>{const e=(0,i.C)(a.pD),t=(0,i.C)((e=>(0,s.XE)(e,l.jB.farmsList))),n=(0,i.T)();(0,r.useEffect)((()=>{0!==e.length||t&&t!==l.qb.Todo||n((0,o.Js)())}),[n,e,t])}},67547:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,_x:()=>l,tZ:()=>a});var r=n(18178),i=n(45581),o=n(79320);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(0,i.$B)(e);return(0,o.Az)((null===t||void 0===t?void 0:t.params)||{})},s=()=>{const{search:e}=(0,i.TH)();return(0,r.useMemo)((()=>new URLSearchParams(e)),[e])};function l(e){const t=s();let n=null;for(const[r,i]of t.entries())r.includes(e)&&(n=i);return n}},79320:(e,t,n)=>{"use strict";n.d(t,{Az:()=>a,CT:()=>l,H1:()=>u,_D:()=>c});var r=n(18178),i=n(45581),o=n(73042);function a(e){return JSON.parse(JSON.stringify(e),((e,t)=>{try{return JSON.parse(t)}catch(n){return t}}))}function s(e){return a([...new URLSearchParams(e).entries()].reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{}))}function l(e){const t=new URLSearchParams;Object.entries(e).forEach((e=>{let[n,r]=e;(0,o.kK)(r)?t.delete(n):t.set(n,String(r))}));return t.toString()}const c=(e,t)=>l({...s(e),...t}),u=()=>{const e=(0,i.k6)(),t=(0,i.TH)(),n=(0,r.useMemo)((()=>s(t.search)),[t.search]),o=(0,r.useCallback)((function(t){const r=t&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?{...n,...t}:t;if(!r)return{};const i=l(r);return setTimeout((()=>e.push({search:i}))),r||{}}),[e,n]);return[n,o]}},1398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(18178),i=n(17215);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=(0,r.useCallback)((()=>{const e=(0,i.i)();return t.map((t=>t(e)))}),[t]),[a,s]=(0,r.useState)(o);return(0,r.useEffect)((()=>{function e(){s((e=>{const t=o();return t.some(((t,n)=>t!==e[n]))?t:e}))}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[o,t]),a}},68746:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var r=n(18178),i=n(30057),o=n(10561),a=n(3308),s=n(45718);function l(e){const t=(0,i.YB)(),n=e?`/mrv/programs/${e}/crops`:"/crops",{data:l,mutate:c}=(0,o.Z)(n,(async()=>{const e=await a.Z.get(n);if(!e.data||0===e.data.result.length)return{cropByValue:{},cropById:{},cropByCDLId:{},crops:[]};const r={},i={},o={};for(const n of e.data.result)n.label=t.formatMessage({id:n.label,defaultMessage:n.label}),r[n.value]=n,i[n.id]=n,n.cdl_id&&(o[n.cdl_id]=n);return{crops:e.data.result,cropByValue:r,cropById:i,cropByCDLId:o}}),{onError:e=>(0,s.e)(e)});return(0,r.useMemo)((()=>l?{...l,mutateCrops:c}:{cropByValue:{},cropById:{},cropByCDLId:{},crops:[],mutateCrops:c}),[l,c])}},64510:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(18178);function i(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),t.current}},17215:(e,t,n)=>{"use strict";n.d(t,{d:()=>a,i:()=>o});var r=n(18178),i=n(36777);function o(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}const a=()=>{const[e,t]=(0,i.GN)(o(),200);return(0,r.useEffect)((()=>{function e(){t(o())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}},93686:(e,t,n)=>{"use strict";n.d(t,{Us:()=>N,LN:()=>F,hd:()=>z,mr:()=>W,Pj:()=>J,gB:()=>H,vJ:()=>re,fe:()=>te,$q:()=>me,g0:()=>ae,Ur:()=>ee,yS:()=>Y,yV:()=>K,k:()=>V,au:()=>he,FA:()=>fe,S$:()=>ye,HW:()=>ge,pQ:()=>ve,Hz:()=>Q,sh:()=>oe,nS:()=>B,lX:()=>U,cU:()=>G,U:()=>X,Ry:()=>Z,Lv:()=>$,GR:()=>q,a7:()=>ie,eE:()=>ne,NF:()=>le,uh:()=>se});var r=n(86216),i=n(36888),o=n(66364),a=n(26618),s=n.n(a),l=n(17176),c=n.n(l),u=n(55650),d=n(95853),p=n(36996),h=n(75877),f=n(27019),m=n(39965),g=n(59357),y=n(89805),v=n(49346),b=n(17859),_=n(45718),w=n(36075),x=n(73042),k=n(83312),C=n(22168),S=n(62793),M=n(82155),T=n(86661),E=n(37682);M.default.defs(E.lo.EPSG2154,"+proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"),M.default.defs(E.lo.UCS_2000_Gauss_Kruger_zone_6,"+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs");const P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.lo.EPSG2154;return(0,T.reproject)(e,t,E.lo.EPSG4326)};var I=function(e){return e.Kml="kml",e.Kmz="kmz",e.Zip="zip",e.GeoJSON="geojson",e}(I||{});const O=(e,t)=>{const n=e,r=t.split("/");return n.fileName=r[r.length-1],n};var L=n(90826),R=n(5307),j=n(34680),D=n(97714),A=n(60548);let N=function(e){return e.SetFieldPropsMapping="@add-fields/mapping/set",e.SetFieldPropMapping="@add-fields/mapping/prop/set",e.SetUploadFields="@add-fields/upload-fields/set",e.RemoveUploadFields="@add-fields/upload-fields/remove",e.SetUploadedFieldFilesNames="@add-fields/uploaded-field-files/set",e.SetFarmsFieldsAddedTo="@add-fields/farms-fields-added-to/set",e.SetUploadFieldProp="@add-fields/upload-fields-property/set",e.BulkSetUploadFieldsProp="@add-fields/upload-fields-property/bulk-set",e.UpdateIdsUploadFields="@add-fields/upload-field-ids/update",e.SetUploadedFieldsValueFromMappingProps="@add-fields/upload-fields-props-from-papping/set",e.AddDrawnFieldGeometry="@add-fields/drawn-field-geometry/add",e.RemoveDrawnFieldGeometry="@add-fields/drawn-field-geometry/remove",e.SetPropDrawnFieldGeometry="@add-fields/prop-drawn-field-geometry/set",e.BulkSetPropDrawnFieldGeometry="@add-fields/bulk-prop-drawn-field-geometry/set",e.SetAddFieldCurrentStep="@add-fields/change-current-step",e.SetCLUFieldBoundaries="@add-fields/CLU-field-boundaries/set",e.RemoveCLUFieldBoundaries="@add-fields/CLU-field-boundaries/remove",e.UpdateCLUFieldBoundariesProp="@add-fields/CLU-field-boundary/update-prop",e.BulkUpdateCLUFieldBoundariesProp="@add-fields/CLU-field-boundaries/bulk-update-prop",e.SetBoundaryIdsToUpload="@add-fields/boundary-ids-to-upload/set",e.ToggleBoundaryIdToUpload="@add-fields/boundary-id-to-upload/toggle",e.FetchProtectedAreas="@add-fields/protected-areas/fetch",e.AddProtectedAreas="@add-fields/protected-areas/add",e}({});const F=13.5,z=17,B=(e,t)=>({type:N.SetFieldPropMapping,propName:e,value:t}),U=e=>({type:N.SetFieldPropsMapping,mapping:e}),$=e=>({type:N.SetUploadFields,fields:e}),V=e=>({type:N.RemoveUploadFields,ids:e}),q=e=>({type:N.SetUploadedFieldFilesNames,names:e}),Z=(e,t,n)=>({type:N.SetUploadFieldProp,id:e,prop:t,value:n}),H=(e,t,n)=>({type:N.BulkSetUploadFieldsProp,ids:e,prop:t,value:n}),G=e=>(t,n)=>{const r=(0,h.pD)(n());t({type:N.SetUploadedFieldsValueFromMappingProps,mappingProp:e,farmsList:r})},W=e=>(t,n)=>{const r=(0,f.yS)(n());e.properties[A.h.Area]=s()((0,i.SOn)(e)).from("m2").to(v.Ug.MetricUnits),e.properties[A.h.Checked]=!0,e.properties[A.h.FarmId]=r||0,t({type:N.AddDrawnFieldGeometry,geoJSON:e})},Y=e=>(t,n)=>{if(window.leafletElement){const t=ge(n()),r=e||t.map((e=>e.properties[A.h.Id]));window.leafletElement.eachLayer((e=>{r.includes(e.fluroGeometryID)&&window.leafletElement.removeLayer(e)}))}t({type:N.RemoveDrawnFieldGeometry,ids:e})},K=()=>(e,t)=>{const n=ge(t()).filter((e=>!e.properties[A.h.Checked]));n.length&&e(Y(n.map((e=>e.properties[A.h.Id]))))},X=(e,t,n)=>({type:N.SetPropDrawnFieldGeometry,id:e,prop:t,value:n}),J=(e,t,n)=>({type:N.BulkSetPropDrawnFieldGeometry,ids:e,prop:t,value:n}),Q=e=>(t,n)=>{n().addFields.addFieldCurrentStep!==e&&t({type:N.SetAddFieldCurrentStep,step:e})},ee=e=>({type:N.RemoveCLUFieldBoundaries,ids:e}),te=()=>({type:N.SetCLUFieldBoundaries,fieldBoundaries:[]}),ne=(e,t,n)=>({type:N.UpdateCLUFieldBoundariesProp,id:e,prop:t,value:n}),re=(e,t,n)=>({type:N.BulkUpdateCLUFieldBoundariesProp,ids:e,prop:t,value:n}),ie=e=>({type:N.ToggleBoundaryIdToUpload,id:e}),oe=e=>({type:N.SetBoundaryIdsToUpload,boundaryIdsToUpload:e}),ae=e=>(t,n)=>{const r=n(),i=(0,g.zn)(r,m.iR.addNewField),a=(0,f.yS)(r),l=(0,D.lr)(r),c=(0,j.$k)(r),d=e.toBBoxString().split(",").map(Number),{lat:p,lng:h}=e.getCenter(),b=()=>{(0,D.sX)(n()).filter((e=>{var t;return null===e||void 0===e||null===(t=e.properties)||void 0===t?void 0:t[A.h.Checked]})).length?t(Q("select-boundaries")):t(Q("draw-fields")),t((0,m.CI)(m.jB.cluFieldBoundaries,m.qb.Todo)),!i&&t((0,m.qO)(m.iR.addNewField,!0))};(0,y.$T)(p,h)||(0,y.PL)(p,h)||(0,y.px)(p,h)?(t((0,m.CI)(m.jB.cluFieldBoundaries,m.qb.Pending)),u.pZ.getFieldsBoundariesFromBoundaryService(d,l,c).then((async e=>{let{data:r}=e;if(t((0,m.CI)(m.jB.cluFieldBoundaries,m.qb.Done)),"view-selected-boundaries"===(0,D.Ln)(n()))return;if(null===r||void 0===r||!r.length)return void b();const o={};var l;r.forEach(((e,t)=>{const n=e.properties.id;o[n]={...e.geometry,properties:{id:n,[A.h.Checked]:!1,[A.h.Id]:n,[A.h.FieldName]:k.NW.formatMessage({id:"DefaultFieldName",defaultMessage:"Field {id}"},{id:t+1}),[A.h.FarmId]:a||0,[A.h.Area]:s()(e.properties.area_m2).from("m2").to(v.Ug.MetricUnits)}}})),t((l=o,{type:N.SetCLUFieldBoundaries,fieldBoundaries:l})),t(Q("select-boundaries")),!i&&t((0,m.qO)(m.iR.addNewField,!0))})).catch((e=>{t((0,m.CI)(m.jB.cluFieldBoundaries,m.qb.Done)),o.default.isCancel(e)||b()}))):b()},se=(e,t)=>r=>{const i=[],o=[];e.forEach((e=>{e.type||e.name.endsWith(".kmz")||e.name.endsWith(".kml")?i.push(e):o.push(e)}));const a=[];if(o.length&&o.forEach((e=>{(0,d.c)({title:k.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:k.NW.formatMessage({id:"Unsupported file format. Try uploading a .zip version of the file instead name",defaultMessage:"Unsupported file format. Try uploading a .zip version of the file instead name"},{name:e.name}),type:"warning"})})),!i.length)return;r($([])),r(q(i.map((e=>e.name)))),r((0,m.CI)(m.jB.parseUploadedFields,m.qb.Pending));const{isWorkspaceMrv:s}=(0,L.Ex)(),l=s&&t&&t!==E.lo.EPSG4326?t:void 0;Promise.all(i.map((e=>((e,t)=>new Promise((r=>{const i=new FileReader,o=!!i.readAsBinaryString,a=e.name.split("."),s=a.pop(),l=a.join(".");i.onload=async e=>{const t=[],n=[];await c(t,n,l,e.target.result,s),r({features:t,errors:n})},!o||s!==I.Kml&&s!==I.GeoJSON?i.readAsArrayBuffer(e):i.readAsBinaryString(e);const c=async(r,i,o,a,s)=>{switch(s){case I.Kml:try{r.push(O((0,y.bf)(a),o))}catch(l){const e=`Could not parse the ${o} file`;(0,_.e)(`${e}: ${l}`),i.push(e)}break;case I.GeoJSON:{const e=JSON.parse(a);r.push(...e.features);break}case I.Zip:case I.Kmz:const s=(await n.e(709).then(n.t.bind(n,98709,23))).default,u=(await(new s).loadAsync(a)).file(/.+/).filter((e=>!e.name.includes("__MACOSX")&&!e.name.includes(".DS_Store")));if(!u.some((e=>e.name.endsWith(".shp")))){for(const e of u){const t=e.name.split("."),n=t.pop(),o=t.join(".");let a;switch(n){case I.Kml:a=await e.async("text");break;case I.Kmz:case I.Zip:a=await e.async("arraybuffer");break;default:i.push(`Unsupported file type: ${o}`);continue}await c(r,i,o,a,n)}return}const d=(await Promise.all([n.e(709),n.e(645),n.e(653)]).then(n.t.bind(n,59645,23))).default,p=a;try{const e=await d(p),n=!u.find((e=>e.name.endsWith(".prj")))&&t;e instanceof Array?r.push(...e.map((e=>{var r,i;const o=null!==(r=null===(i=e.fileName)||void 0===i?void 0:i.split("/"))&&void 0!==r?r:[];return{...n?P(e,t):e,fileName:o[o.length-1]}}))):r.push(n?P(e,t):e)}catch(l){const t=[`Archive ${e.name} contains invalid shape file format.`,"Make sure the archive does not contain another archive."].join(" ");(0,_.e)(`${t}: ${l}`),i.push(t)}break;default:i.push(`Unsupported file type: ${o}`)}}})))(e,l)))).then((e=>{const t=[],n=[],i=[];e.flatMap((e=>e.features)).forEach((e=>{if(e)try{(Array.isArray(e)?e:[e]).forEach((e=>be(e,t,n,i,a)))}catch(r){}}));if(e.flatMap((e=>e.errors)).forEach((e=>{(0,d.c)({title:k.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:e,type:"warning"})})),i.length){const{error:e,note:t}=(0,y.v5)(i,"fields");(0,_.e)(e),(0,d.c)({title:k.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:t,type:"warning"})}if(n.length){const e="Field"+(n.length>1?"s":""),t=n.length>1?"are":"is";(0,d.c)({title:k.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:`${e} ${n.join(", ")} ${t} too small (< 0.01 ha) and won\u2019t be uploaded`,type:"warning"})}r($(t)),t.length&&r(Q("parse-uploading-files")),r((0,m.CI)(m.jB.parseUploadedFields,m.qb.Done))})).catch((e=>{r((0,m.CI)(m.jB.parseUploadedFields,m.qb.Done)),e.forEach((e=>{(0,d.c)({title:k.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:e,type:"warning"})}))}))},le=async(e,t)=>{try{const{geoJsonFiles:n}=t().addFields,r=(0,C.rf)(t());e((0,m.CI)(m.jB.uploadingFieldsToBackend,m.qb.Pending)),await e(ce(n));const i=Object.values(A.h),o=(0,D._l)(t()).map((e=>{var t,n;const r=null===(t=e.properties)||void 0===t?void 0:t[A.h.FarmId],o=null===(n=e.properties)||void 0===n?void 0:n[A.h.FieldName],a={...e,properties:{...e.properties}};return i.forEach((e=>{e!==A.h.Id&&delete a.properties[e]})),{farm_id:r,name:o,kml:(0,w.K)(a)}})),a=(0,b.F3)(o,200),s=(await Promise.all(a.map((e=>u.QF.saveFields(e,r))))).map((e=>e.data.result)).flat().map((e=>e.field));e(ue(s))}catch(n){e(de(n))}},ce=e=>async(t,n)=>{const r=(0,h.wA)(n()),i=[],o={},a=[];e.forEach((e=>{var t,n;const s=null===(t=e.properties)||void 0===t?void 0:t[A.h.FarmId],l=String(null===(n=e.properties)||void 0===n?void 0:n[A.h.NewFarmName]);var c,u;if(s)i.push({id:s,name:null!==(c=null===(u=r[s])||void 0===u?void 0:u.name)&&void 0!==c?c:""});else if(l){var d,p;o[l]||(o[l]=[],a.push(l)),null===(d=o[l])||void 0===d||d.push(null===(p=e.properties)||void 0===p?void 0:p[A.h.Id])}}));const s=await Promise.all(a.map((e=>t((0,p.yL)({id:0,name:e})))));var l;t((l=[...(0,b.R1)(i,"name"),...(0,b.R1)(s,"name").map((e=>({id:e.id,name:e.name,isNew:!0})))],{type:N.SetFarmsFieldsAddedTo,farms:l})),a.forEach(((e,n)=>{const r=o[e];r&&t(H(r,A.h.FarmId,s[n].id))}))},ue=e=>async(t,n)=>{const r=n(),{geoJsonFiles:o}=r.addFields;if(!e.length)return void(0,d.c)({title:k.NW.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:k.NW.formatMessage({id:"No fields were uploaded.",defaultMessage:"No fields were uploaded."}),type:"warning"});let a,s=!1;const l={},c={},u={};return o.forEach((t=>{var n,o,d;const p=null===(n=t.properties)||void 0===n?void 0:n[A.h.FarmId],h=String(null===(o=t.properties)||void 0===o?void 0:o[A.h.FieldName])||(null===(d=t.properties)||void 0===d?void 0:d[A.h.FileName]),f=e.find((e=>e.Name===h));l[p]||(l[p]={});const m=l[p];if(f&&p&&m){m[f.ID]=f,c[f.MD5]=(0,i.uf4)([t]);const e=c[f.MD5];e&&(0,y.Vm)(e,p,f.ID),u[f.ID]=!0}a||(a=p),s||p!==r.global.currentGroupId||(s=!0)})),s?await t((0,S.lm)(r.global.currentGroupId)):a&&await t((0,S.lm)(a)),t(oe([])),t($([])),t(q([])),await t(pe(o.length)),t((0,m.CI)(m.jB.uploadingFieldsToBackend,m.qb.Done)),t((0,R.ly)(u)),t((0,S.mX)(c)),Object.keys(l).map(Number).forEach((e=>{const n=l[e];n&&t((0,S.n1)(e,n))})),e},de=e=>t=>{var n;(0,_.e)(`startUpload fields(), err = ${e}`),t((0,m.CI)(m.jB.uploadingFieldsToBackend,m.qb.Done)),(0,d.c)({title:k.NW.formatMessage({id:"note.error",defaultMessage:"Error"}),message:k.NW.formatMessage({id:"Fields upload failed error",defaultMessage:"Fields upload failed error"},{error:null===(n=e.data)||void 0===n?void 0:n.result}),type:"error"})},pe=e=>async t=>{t((0,m.qO)(m.iR.addNewField,!1)),t((0,S.hT)(!0)),e&&(0,d.c)({title:k.NW.formatMessage({id:"note.success",defaultMessage:"Success"}),message:k.NW.formatMessage({id:"The {count} successfully added.",defaultMessage:"{count} fields were successfully added."},{count:e}),type:"success"})},he=async(e,t)=>{const n=ge(t());e($(n.map((e=>{var t,n;return{...e,properties:{...e.properties,[A.h.FieldName]:(null===(t=e.properties)||void 0===t?void 0:t[A.h.FieldName])||`Field ${null===(n=e.properties)||void 0===n?void 0:n[A.h.Id]}`}}})))),await e(le),e(Y())},fe=async(e,t)=>{const n=(0,D.fj)(t());e($(n.map((e=>({type:"Feature",geometry:e,properties:e.properties}))))),await e(le),e(te())};function me(e){return"object"===typeof e?e instanceof Date?c()(e).format("DD MM YYYY"):"":"string"===typeof e&&e.length>50?`${e.slice(0,50)}...`:e}const ge=e=>e.addFields.drawnFieldsGeometries,ye=e=>e.addFields.propsMapping,ve=e=>e.addFields.uploadedFieldFilesNames,be=(e,t,n,o,a)=>{const{allowedGeometries:l,notAllowedGeometries:c}=(0,y.jF)(e.features);c.length&&o.push(...c),l.forEach((o=>{var l;const c=e.fileName;(0,y.uB)(o);if(r.hint(o).filter((e=>!y.CT.find((t=>t===e.message)))).length)return void a.push(k.NW.formatMessage({id:"KML error, file unable to be uploaded.",defaultMessage:"KML error, file unable to be uploaded."}));const u=(0,i.SOn)(o);if(u<100&&(0,x.$K)(c))return void n.push(c);(0,x.$K)(o.properties)&&(o.properties[A.h.Area]=s()(u).from("m2").to(v.Ug.MetricUnits),o.properties[A.h.FileName]=c,o.properties[A.h.FarmId]=0,o.properties[A.h.NewFarmName]="",o.properties[A.h.Checked]=!0,o.properties[A.h.Id]=(0,b._j)());const d=null===(l=o.properties)||void 0===l?void 0:l[A.h.Id];t.push(o),((0,x.kK)(c)||c.length<2||c.length>50)&&a.push(d)}))}},53135:(e,t,n)=>{"use strict";n.d(t,{MK:()=>r,Zq:()=>i,md:()=>o});const r=["zoom-is-too-low","search-location","select-boundaries","draw-fields"],i=["view-fields-from-files","view-drawn-fields","view-selected-boundaries"],o=e=>[...r,...i].includes(e)},97714:(e,t,n)=>{"use strict";n.d(t,{IF:()=>u,Ln:()=>l,OW:()=>c,Si:()=>f,_l:()=>v,fj:()=>g,gR:()=>y,lr:()=>p,oX:()=>m,sX:()=>h});var r=n(99730),i=n(59357),o=n(3851),a=n(73042),s=n(53135);function l(e){return e.addFields.addFieldCurrentStep}const c=(0,r.P1)([e=>(0,i.zn)(e,o.iR.addNewField),l],((e,t)=>e&&(0,s.md)(t))),u=(0,r.P1)([l],(e=>s.Zq.includes(e))),d=e=>e.addFields.cluFieldBoundaries,p=(0,r.P1)([d],(e=>Object.keys(e))),h=(0,r.P1)([d],(e=>Object.values(e))),f=e=>e.addFields.boundaryIdsToUpload,m=(0,r.P1)([f],(e=>{const t={};return e.forEach((e=>{t[e]=!0})),t})),g=(0,r.P1)([d,f],((e,t)=>t.map((t=>e[t])).filter(a.$K))),y=e=>e.addFields.protectedAreaBoundaries,v=e=>e.addFields.geoJsonFiles},60548:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,h:()=>r});let r=function(e){return e.Id="__id__",e.Checked="__checked__",e.FarmId="__farmId__",e.FileName="__fileName__",e.NewFarmName="__newFarmName__",e.Area="__area__",e.FieldName="__fieldName__",e.ProtectedArea="__protectedArea__",e}({}),i=function(e){return e.FieldSizeError="field-size-error",e.FieldNameError="field-name-error",e.FieldFarmNameError="field-farm-name-error",e.FieldProtectedAreaError="field-protected-area-error",e}({})},36996:(e,t,n)=>{"use strict";n.d(t,{Js:()=>v,Gw:()=>_,yL:()=>b});var r=n(95602),i=n(55650),o=n(95853),a=n(39965),s=n(45718),l=n(5229),c=n(20146),u=n(99987),d=n(39670);const p=new r.fK.Entity("seasons"),h=new r.fK.Entity("fields",{Seasons:[p]},{idAttribute:"FieldID"}),f=new r.fK.Entity("farms",{fields:[h]},{processStrategy:(e,t)=>Array.isArray(t.fields)?(e.fields=t.fields,e):e});var m=n(7360),g=n(75877),y=n(20328);const v=()=>async e=>{e((0,a.CI)(a.jB.farmsList,a.qb.Pending));try{var t;const n=null!==(t=(await i.QF.getFarmsList()).data.result.list)&&void 0!==t?t:[],{entities:o,result:s}=(0,r.Fv)(n,[f]),l={farms:{list:[],totalCount:0},entities:o,result:s};return e((0,m.c)(l)),e((0,a.CI)(a.jB.farmsList,a.qb.Done)),n}catch(n){return(0,s.e)(`getFarmsList() err = ${n}`),[]}},b=e=>async(t,n)=>{const o=n().map;if(!o)return;const{group:a}=o,s=0===e.id?"create":"update";return i.QF["create"===s?"saveFarm":"updateFarm"](e).then((e=>{let{data:{result:n}}=e;"create"===s&&d.Z.addNewFarm(n);const i=(0,r.Fv)(n,f);return t({type:"create"===s?y.P.CREATE_FARM:y.P.UPDATE_FARM,farm:n,payload:i}),a.id===n.id&&t({type:u.M.MAP_FARM_UPDATE,group:n}),n})).catch((()=>({})))},_=(e,t)=>(n,r)=>{const d=r(),p=(0,g.pD)(d);return i.QF.removeFarm(e).then((async r=>{let{data:{result:i}}=r;if(n({type:y.P.REMOVE_FARM,farmId:e}),n({type:u.M.MAP_FARM_DELETE,farmId:e}),n((0,a.qO)(a.iR.deleteDialog,!1)),n((0,a.qO)(a.iR.editFarm,!1)),(0,o.c)({title:(0,l.t)({id:"note.success",defaultMessage:"Success"}),message:(0,l.t)({id:"Your farm was successfully deleted",defaultMessage:"Your farm was successfully deleted"}),type:"success"}),!t){var s;(null===(s=p[0])||void 0===s?void 0:s.id)||await n((0,c.wt)())}return i})).catch((e=>(0,s.e)(`Remove farm error: ${e}`)))}},7360:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p,c:()=>c});var r=n(12581),i=n(60374),o=n(56346);const a=(e,t,n)=>{let{name:i,initialState:a={},reducers:s={}}=n;return(0,r.oM)({name:i,initialState:a,reducers:s,extraReducers:n=>n.addMatcher((n=>{var r,i;return n.type.includes(t)&&!(null===n||void 0===n||null===(r=n.payload)||void 0===r||null===(i=r.entities)||void 0===i||!i[e])}),((t,n)=>(0,o.V)(t,n.payload.entities[e])))})};var s=n(20328);const l=(0,r.oM)({name:"farms/list",initialState:[],reducers:{loadFarmsList:(e,t)=>[...t.payload.result||[]]},extraReducers:e=>e.addCase(s.P.CREATE_FARM,((e,t)=>[...e,t.farm.id])).addCase(s.P.REMOVE_FARM,((e,t)=>e.filter((e=>e!==t.farmId))))}),{loadFarmsList:c}=l.actions,u=(0,r.oM)({name:"farms/totalCount",initialState:0,reducers:{},extraReducers:e=>e.addCase(c.type,((e,t)=>t.payload.farms.totalCount)).addCase(s.P.CREATE_FARM,(e=>e+1)).addCase(s.P.REMOVE_FARM,(e=>e-1))}),d=(0,i.UY)({farms:a("farms","farms",{name:"monitoring/entities/farms"}).reducer,fields:a("fields","farms",{name:"monitoring/entities/farms"}).reducer,seasons:a("seasons","farms",{name:"monitoring/entities/farms"}).reducer}),p=(0,i.UY)({list:l.reducer,totalCount:u.reducer,entities:d})},75877:(e,t,n)=>{"use strict";n.d(t,{kj:()=>c,pD:()=>l,wA:()=>s});var r=n(99730),i=n(9694),o=n(39965),a=n(73042);const s=e=>e.farms.entities.farms,l=(0,r.P1)([s,e=>e.farms.list],((e,t)=>t.map((t=>e[t])).filter(a.$K))),c=e=>(0,i.XE)(e,o.jB.farmsList)===o.qb.Pending},20328:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});let r=function(e){return e.CREATE_FARM="farms/create-farm",e.UPDATE_FARM="farms/update-farm",e.REMOVE_FARM="farms/remove-farm",e.RELOAD_FARM="farms/reload-farm",e}({})},37772:(e,t,n)=>{"use strict";n.d(t,{IR:()=>s,QP:()=>i,TX:()=>l,Zk:()=>o,hE:()=>a});var r=n(4494);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0;return{type:r.A.ADD_LOADING,URLPattern:e,method:t,key:"data2/:md5"===e?"":n}},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0;return{type:r.A.REMOVE_LOADING,URLPattern:e,method:t,key:"data2/:md5"===e?"":n}},a=e=>({type:r.A.TOGGLE_SESSION_EXPIRED,sessionExpired:e}),s=e=>({type:r.A.ADD_SESSION_EXPIRED_REQUEST,request:e}),l=(e,t)=>({type:r.A.SET_TAB_NOTIFICATION,tabKey:e,tabData:t})},27019:(e,t,n)=>{"use strict";n.d(t,{AS:()=>m,JY:()=>h,MT:()=>c,XI:()=>u,Xp:()=>i,k4:()=>a,lc:()=>f,r7:()=>g,rm:()=>o,sE:()=>s,t8:()=>l,xP:()=>d,yS:()=>p});var r=n(99730);const i=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.fieldsByFarmId},o=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.fieldGeometries},a=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.highlightedFieldId},s=(0,r.P1)([i],(e=>{let t={};return Object.values(null!==e&&void 0!==e?e:{}).forEach((e=>{t={...t,...e}})),t})),l=(0,r.P1)([i],(e=>{const t={};return Object.values(null!==e&&void 0!==e?e:{}).forEach((e=>{Object.values(e).forEach((e=>{t[Number(e.FieldID)]=e}))})),t})),c=(0,r.P1)([s],(e=>Object.values(e))),u=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.feature},d=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.group},p=(0,r.P1)([d],(e=>null===e||void 0===e?void 0:e.id)),h=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.isMapBarOpen},f=e=>{var t,n;return null!==(t=null===(n=e.map)||void 0===n?void 0:n.drawControl)&&void 0!==t?t:{isDrawingMode:!1,isEditingMode:!1,drawingModeLayerType:""}},m=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.drawControl.isEditingMode},g=e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.drawControl.isDrawingMode}},9694:(e,t,n)=>{"use strict";n.d(t,{CT:()=>o,H8:()=>i,XE:()=>r,_6:()=>a});const r=(e,t)=>{var n;return null===(n=e.helpers.asyncStatuses[t])||void 0===n?void 0:n.status},i=e=>e.global.isMapLoading,o=e=>e.router.location.pathname.startsWith("/sustainability"),a=e=>e.global.sessionExpired},4494:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return e.TOGGLE_HEADER="global/toggle-header",e.TOGGLE_MAP_VIEW="toggle-map-view",e.SET_REPORT_VIEW="set-report-view",e.SET_GLOBAL_PARAM="global/set-global-param",e.IMPORTED_FROM_AGX="global/imported-from-agx",e.ADD_LOADING="global/add-loading",e.REMOVE_LOADING="global/remove/loading",e.MAP_LOADING="global/map/loading",e.TOGGLE_SESSION_EXPIRED="global/toggle-session-expired",e.ADD_SESSION_EXPIRED_REQUEST="global/add-session-expired-request",e.SET_TAB_NOTIFICATION="global/set-tab/notification",e.TOGGLE_GLOBAL_TOOLTIP="global/toggle-tooltip",e}({})},79501:(e,t,n)=>{"use strict";n.d(t,{CI:()=>a,qO:()=>i,ts:()=>o});var r=n(3851);const i=(e,t,n)=>({type:r.Us.DialogToggle,dialogKey:e,visible:t,payload:n}),o=()=>({type:r.Us.CloseAllDialogs}),a=(e,t,n)=>({type:r.Us.SetRequestStatus,key:e,status:t,errors:n})},39965:(e,t,n)=>{"use strict";n.d(t,{CI:()=>r.CI,iR:()=>i.iR,jB:()=>i.jB,mU:()=>i.mU,qO:()=>r.qO,qb:()=>i.qb,ts:()=>r.ts});var r=n(79501),i=n(3851)},59357:(e,t,n)=>{"use strict";n.d(t,{BQ:()=>f,JM:()=>h,RU:()=>p,_X:()=>l,xU:()=>d,zn:()=>s});var r=n(99730),i=n(3851);const o=e=>e.helpers.asyncRTK.status,a=e=>e.helpers.dialogs,s=(0,r.P1)([a,(e,t)=>t],((e,t)=>{var n;return null===(n=e[t])||void 0===n?void 0:n.visible})),l=(0,r.P1)([a,(e,t)=>t],((e,t)=>e[t]||{})),c=(e,t)=>(n,r)=>{const i=[].concat(r);return t?i.every((t=>n[t]===e)):i.some((t=>n[t]===e))},u=(e,t)=>t,d=(0,r.P1)([o,u],c(i.mU.pending)),p=(0,r.P1)([o,u],c(i.mU.rejected)),h=(0,r.P1)([o,u],c(i.mU.fulfilled)),f=(0,r.P1)([o,u],c(i.mU.fulfilled,!0))},3851:(e,t,n)=>{"use strict";n.d(t,{Us:()=>a,iR:()=>o,jB:()=>i,mU:()=>r,qb:()=>s});let r=function(e){return e.fulfilled="fulfilled",e.pending="pending",e.rejected="rejected",e}({}),i=function(e){return e.adminSearch="adminSearch",e.farmsList="farms",e.loadOneFarm="loadOneFarm",e.loadFields="loadFields",e.fieldsData="fieldsData",e.allFieldsData="allFieldsData",e.fieldGeometries="fieldGeometries",e.parseUploadedFields="parseUploadedFields",e.uploadingFieldsToBackend="uploadingFieldsToBackend",e.cropTypesMatching="cropTypesMatching",e.cluFieldBoundaries="cluFieldBoundaries",e.usersActivity="usersActivity",e.authorizedPlatforms="authorizedPlatforms",e.SILoadAllStates="SILoadAllStates",e.updateSIPolicy="updateSIPolicy",e}({}),o=function(e){return e.info="info",e.confirm="confirm",e.alert="alert",e.editFieldName="editFieldName",e.editCrop="editCrop",e.addNewField="addNewField",e.fmsIntegration="fmsIntegration",e.fmsSyncReport="fmsSyncReport",e.fmsSyncDialog="fmsSyncDialog",e.fmsSyncLoggedOutDialog="fmsSyncLoggedOutDialog",e.fmsSyncLoginToPlatformDialog="fmsSyncLoginToPlatformDialog",e.editFarm="editFarm",e.editFarmName="editFarmName",e.deleteDialog="deleteDialog",e.profile="profile",e.mrvPhasesInfo="mrvPhasesInfo",e.carbonSuccessfulSigned="carbonSuccessfulSigned",e.requestFSAccess="requestFSAccess",e.noContractInfo="noContractInfo",e}({}),a=function(e){return e.DialogToggle="@helpers/dialog/toggle",e.CloseAllDialogs="@helpers/dialog/close-all",e.SetFilter="@helpers/filter/set",e.SetRequestStatus="@helpers/ui/set-request-status",e}({}),s=function(e){return e.Todo="Todo",e.Pending="Pending",e.Done="Done",e}({})},56346:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(14291);const i=(e,t)=>(0,r.Os)(t||{}).reduce(((e,n)=>(e[n]={...e[n],...t[n]},e)),{...e})},77140:(e,t,n)=>{"use strict";n.d(t,{m:()=>l,v:()=>s});var r=n(90826),i=n(39670),o=n(47978);const{isWorkspaceMrv:a}=(0,r.Ex)(),s=()=>{let e;a&&i.x.urlChange(),o.m.listen((()=>{a&&(clearTimeout(e),e=setTimeout((()=>{i.x.urlChange()}),800))}))},l=(e,t)=>{setTimeout((()=>{const n=new URLSearchParams(window.location.search);null==t?n.delete(e):n.set(e,`${t}`),o.m.replace({search:n.toString()})}))}},47978:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(17073),i=n(67925),o=n(39475);const a=(0,i.GD)()||o.D0?"/":"/app",s=(0,r.lX)({basename:a})},91316:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.endsWith("mailslurp.com"),r=e.includes("playwright")&&e.endsWith("@regrow.ag"),i=e.endsWith("@regrow.ag")||e.endsWith("@flurosat.com");return!(n||r||i&&t)}},67925:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>s,GD:()=>a,ci:()=>o,uz:()=>l});n(18178);var r=n(46386),i=n(5651);const o=e=>Boolean(r.A2[e]&&"admin"===r.A2[e].prop),a=()=>window.location.host.includes("regrow.ag"),s=e=>(0,i.jsx)("a",{href:"mailto:support@regrow.ag",children:e}),l=()=>`${window.location.protocol}//${window.location.host}`},40010:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,p:()=>r});const r=(e,t)=>t.every((t=>e.includes(t)));function i(e){const t=new Set,n=[];for(const r of e)t.has(r)?n.push(r):t.add(r);return n}},42832:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,v:()=>a});n(18178);var r=n(30057),i=n(95853),o=n(5651);const a=async e=>await navigator.clipboard.writeText(e);async function s(e,t){try{await a(t),(0,i.c)({message:(0,o.jsx)(r._H,{id:"{valueToBeCopied} copied and ready to paste.",defaultMessage:"{valueToBeCopied} copied and ready to paste.",values:{valueToBeCopied:(0,o.jsx)("strong",{children:e})}}),type:"success"})}catch(n){(0,i.c)({message:(0,o.jsx)(r._H,{id:"Failed to copy {valueToBeCopied} to the clipboard. Please use a modern browser.",defaultMessage:"Failed to copy {valueToBeCopied} to the clipboard. Please use a modern browser.",values:{valueToBeCopied:(0,o.jsx)("strong",{children:e})}}),type:"error"})}}},22983:(e,t,n)=>{"use strict";n.d(t,{Bn:()=>c,J:()=>p,Pi:()=>d,Py:()=>i,U9:()=>u,aV:()=>r,mi:()=>l});const r=e=>{switch(!0){case e.startsWith("#")&&7===e.length:{const t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2);return{r:parseInt(t,16),g:parseInt(n,16),b:parseInt(r,16),a:1}}case e.startsWith("rgb"):{var t,n;const[,r]=null!==(t=a.exec(e))&&void 0!==t?t:[],[i,o,s,l]=null!==(n=null===r||void 0===r?void 0:r.split(","))&&void 0!==n?n:[];return{r:Number(i),g:Number(o),b:Number(s),a:Number(l)||0}}default:return{r:0,g:0,b:0,a:0}}},i=(e,t,n)=>{const i=r(e),a=r(t);return(e=>{const{r:t,g:n,b:r,a:i}=e;return`rgba(${t}, ${n}, ${r}, ${i})`})({r:o(i.r,a.r,n),g:o(i.g,a.g,n),b:o(i.b,a.b,n),a:1})},o=(e,t,n)=>e+(t-e)*n,a=/\((.*)\)/,s=e=>{let t="#";for(let n=0;n<6;n++)t+="0123456789ABCDEF"[Math.floor(e(n)%16)];return t},l=e=>s((function(){return e*((arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)+1)})),c="#546e7a",u="#7a7a7a",d="#3388ff",p="#e95e5faa"},12141:(e,t,n)=>{"use strict";n.d(t,{c0:()=>i,p3:()=>o,qg:()=>a,rP:()=>s});var r=n(73042);function i(e,t,n){if(!t)return;const r=r=>{if(!t)return;(Array.isArray(e)?e.every((e=>!o(e,r.target))):!o(e,r.target))&&n()},i=e=>{"Escape"===e.code&&n()};return document.addEventListener("mousedown",r),document.addEventListener("keydown",i),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",i)}}function o(e,t){return e===t||!!t.parentElement&&o(e,t.parentElement)}const a=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(a).join(""):"object"===typeof e&&e?a(e.props.children):"",s=e=>(0,r.kK)(e)?null:e.scrollHeight>e.clientHeight?e:s(e.parentNode)},75820:(e,t,n)=>{"use strict";n.d(t,{En:()=>s,LH:()=>c,_X:()=>l});var r=n(26618),i=n.n(r),o=n(49346),a=n(8854);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Ug.MetricUnits,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e===o.Ug.MetricUnits)return t===o.Ug.ImperialUnits?(0,a.gU)(n,1):n;switch(t){case"kg":return i()(n).from("kg").to("lb");case"mm":return r?i()(n).from("in").to("mm"):(0,a.gU)(i()(n).from("mm").to("in"),1);case"C":return(0,a.gU)(i()(n).from("C").to("F"),2);case"km/h":return i()(n).from("km/h").to("m/h");case"l":return i()(n).from("l").to("gal");case"ml":return i()(n).from("ml").to("fl-oz");case"g":return i()(n).from("g").to("oz");case"m":return i()(n).from("m").to("ft");case"cm":return r?i()(n).from("in").to("cm"):i()(n).from("cm").to("in");case"gdd":return Math.round(n/(5/9));case o.Ug.ImperialUnits:return r?(0,a.gU)(i()(n).from(o.Ug.ImperialUnits).to(o.Ug.MetricUnits),1):(0,a.gU)(i()(n).from(o.Ug.MetricUnits).to(o.Ug.ImperialUnits),1);case o.Ug.MetricUnits:return(0,a.gU)(i()(n).from(o.Ug.ImperialUnits).to(o.Ug.MetricUnits),1);case"ft2":return(0,a.gU)(i()(n).from("m2").to("ft2"),2);case"lb/ac":return r?1.12085*n:n/1.12085;case"gal/ac":return r?9.35396*n:n/9.35396;case"m2":return r?n/4046.86:4046.86*n;default:return n}}const l=e=>isNaN(e)||e<0?NaN:(0,a.gU)(s(o.Ug.ImperialUnits,"cm",e,!0),1),c=e=>isNaN(e)||e<0?NaN:(0,a.gU)(s(o.Ug.ImperialUnits,"cm",e,!1),1)},13065:(e,t,n)=>{"use strict";n.d(t,{B$:()=>u,TT:()=>s,Vd:()=>c,bW:()=>l,wd:()=>a});var r=n(40010),i=n(33022);const o='"';let a=function(e){return e.Comma=",",e.Semicolon=";",e.Pipe="|",e.Tab="\t",e}({}),s=function(e){return e.InconsistentRowLength="InconsistentRowLength",e.TooFewRows="TooFewRows",e.MissingRequiredColumns="MissingRequiredColumns",e.DuplicateColumns="DuplicateColumns",e.EmptyCells="EmptyCells",e.NoData="NoData",e}({});function l(e,t){const n={requiredColumns:[],ignoredColumns:[],emptyCellsForbidden:!1,requiresAdditionalData:!1,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},i=[],a=[];let l=[],c="",u="",d=!1;function p(){let e=!0;for(const t of l)if(""!==t){e=!1;break}e||(l.push(c.trim()),n.emptyCellsForbidden&&function(e,t,n){const r=e.filter((e=>""===e)).length;r>0&&n.push({code:s.EmptyCells,meta:{rowNumber:t,totalEmptyCells:r}})}(l,a.length,i),function(e,t,n){var r,i,o;t.length>0&&e.length!==(null===(r=t[0])||void 0===r?void 0:r.length)&&n.push({code:s.InconsistentRowLength,meta:{rowNumber:t.length,expected:null!==(i=null===(o=t[0])||void 0===o?void 0:o.length)&&void 0!==i?i:-1,parsed:e.length}})}(l,a,i),a.push(l))}for(let r=0;r<e.length;r++){const n=e[r],i=e[r+1];if(d)switch(n){case o:i===o?(c+=o,r++):d=!1;break;case"\r":c+="\n","\n"===i&&r++;break;default:c+=n}else switch(n){case o:d=!0;break;case t:"\r"!==u&&"\n"!==u&&(l.push(c.trim()),c="");break;case"\n":case"\r":"\r"===n&&"\n"===i&&r++,p(),l=[],c="";break;default:c+=n}u=null!==n&&void 0!==n?n:""}if(p(),function(e,t){e.length<2&&t.push({code:s.TooFewRows})}(a,i),i.length>0)return{columns:[],rows:[],errors:i};const{rows:h,columns:f}=function(e,t,n){var r;const i=e.shift(),o=null!==(r=null===n||void 0===n?void 0:n(i))&&void 0!==r?r:i,a=new Set(t.map((e=>o.indexOf(e)))),s=[];for(const c of e){const e={};for(let t=0;t<o.length;t++){var l;const n=o[t];!a.has(t)&&n&&(e[n]=null!==(l=c[t])&&void 0!==l?l:"")}s.push(e)}return{rows:s,columns:o.filter(((e,t)=>!a.has(t)))}}(a,n.ignoredColumns,n.transformColumns);return function(e,t,n){const r=t.filter((t=>!e.includes(t)));r.length>0&&n.push({code:s.MissingRequiredColumns,meta:{columns:r}})}(f,n.requiredColumns,i),function(e,t){const n=(0,r.V)(e);n.length>0&&t.push({code:s.DuplicateColumns,meta:{columns:n}})}(f,i),function(e,t,n,r,i,o){const a=new Set(n),l=new Set(r),c=e.filter((e=>!a.has(e)&&(!i||!l.has(e)))),u=!t.some((e=>c.some((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.trim())}))));u&&o.push({code:s.NoData})}(f,h,n.ignoredColumns,n.requiredColumns,n.requiresAdditionalData,i),{columns:i.length>0?[]:f,rows:i.length>0?[]:h,errors:i}}function c(e){switch(e){case a.Comma:return"comma";case a.Semicolon:return"semicolon";case a.Pipe:return"pipe";case a.Tab:return"tab"}}function u(e){switch(e){case i.g.DeDE:case i.g.HuHU:case i.g.RuRU:case i.g.UkUA:case i.g.PtBr:case i.g.PlPL:case i.g.RoRO:case i.g.Fr:case i.g.ViVN:return a.Semicolon;case i.g.EnGB:case i.g.EnUS:return a.Comma}}},96765:(e,t,n)=>{"use strict";n.d(t,{QC:()=>T,Y_:()=>w,wS:()=>C,x2:()=>k,gk:()=>M,Wg:()=>S});Math.pow(10,8);var r=6e4,i=36e5,o=n(70759),a=n(41921);function s(e,t){var n;(0,o.Z)(1,arguments);var s=(0,a.Z)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var g,y=function(e){var t,n={},r=e.split(l.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],l.timeZoneDelimiter.test(n.date)&&(n.date=e.split(l.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=l.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(y.date){var v=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(y.date,s);g=function(e,t){if(null===t)return new Date(NaN);var n=e.match(c);if(!n)return new Date(NaN);var r=!!n[4],i=p(n[1]),o=p(n[2])-1,a=p(n[3]),s=p(n[4]),l=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f[t]||(m(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(m(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,a)),u):new Date(NaN)}(v.restDateString,v.year)}if(!g||isNaN(g.getTime()))return new Date(NaN);var b,_=g.getTime(),w=0;if(y.time&&(w=function(e){var t=e.match(u);if(!t)return NaN;var n=h(t[1]),o=h(t[2]),a=h(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,a))return NaN;return n*i+o*r+1e3*a}(y.time),isNaN(w)))return new Date(NaN);if(!y.timezone){var x=new Date(_+w),k=new Date(0);return k.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),k.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),k}return b=function(e){if("Z"===e)return 0;var t=e.match(d);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(o*i+a*r)}(y.timezone),isNaN(b)?new Date(NaN):new Date(_+w+b)}var l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400===0||e%4===0&&e%100!==0}var g=n(17176),y=n.n(g),v=n(4975),b=n(46386),_=n(33022);const w=(e,t)=>{const n=[];if(!e||!t)return n;const r=new Date(t);let i=new Date(e);if(i>r)return n;for(;i<=r;)n.push(i),i=new Date(i),i.setDate(i.getDate()+1);return n},x=(0,v.extendMoment)(y()),k=()=>x().format("YYYY-MM-DD");function C(e){switch(e){case _.g.EnGB:case _.g.Fr:case _.g.PtBr:case _.g.RoRO:case _.g.ViVN:return"DD/MM/YYYY";case _.g.DeDE:case _.g.RuRU:case _.g.UkUA:return"DD.MM.YYYY";case _.g.PlPL:return"YYYY-MM-DD";case _.g.EnUS:return"MM/DD/YYYY";case _.g.HuHU:return"YYYY. MM. DD."}}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.sort((function(e,r){return e[t]?r[t]?x(e[t]).isBefore(x(r[t]))?n?1:-1:x(e[t]).isAfter(x(r[t]))?n?-1:1:0:1:-1}))}const M=e=>{if(!e||!e.match(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/))throw new Error(`Invalid date string: ${e}`);const t=s(e);return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))};function T(e,t){return`${Intl.DateTimeFormat(void 0,b.SO).format(e)} \u2014 ${Intl.DateTimeFormat(void 0,b.SO).format(t)}`}},43033:(e,t,n)=>{"use strict";n.d(t,{HY:()=>r,LR:()=>o,Sv:()=>i});let r=function(e){return e.TextPlain="text/plain",e.TextCSV="text/csv",e.ApplicationKML="application/vnd.google-earth.kml+xml",e.ApplicationZIP="application/zip",e.ApplicationPDF="application/pdf",e.ApplicationJSON="application/json",e.ApplicationOctetStream="application/octet-stream",e.ApplicationXlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e}({});function i(e,t,n){const r=new Blob([e],{type:n}),i=window.URL.createObjectURL(r),o=document.createElement("a");o.style.display="none",o.href=i,o.setAttribute("download",t),"undefined"===typeof o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(i)}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createElement("a"),i=n?t:`data:text/plain;charset=utf-8,${encodeURIComponent(t)}`;r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}},87050:(e,t,n)=>{"use strict";function r(e){return function(e){if(function(e){return"object"===typeof e&&null!==e&&"message"in e&&"string"===typeof e.message}(e))return e;try{return new Error(JSON.stringify(e))}catch{return new Error(String(e))}}(e).message}n.d(t,{e:()=>r})},89805:(e,t,n)=>{"use strict";n.d(t,{$T:()=>b,CT:()=>h,D:()=>S,PL:()=>w,Vm:()=>m,bf:()=>f,g8:()=>v,hF:()=>x,jF:()=>y,px:()=>_,uB:()=>C,v5:()=>g,vS:()=>M});var r=n(33999),i=n.n(r),o=n(36888),a=n(5395),s=n.n(a),l=n(2589),c=n.n(l),u=n(46386),d=n(45718),p=function(e){return e.Polygon="Polygon",e.MultiPolygon="MultiPolygon",e.GeometryCollection="GeometryCollection",e.Point="Point",e.LineString="LineString",e.MultiPoint="MultiPoint",e.MultiLineString="MultiLineString",e}(p||{});const h=["Polygons and MultiPolygons should follow the right-hand rule"],f=e=>{const t=(new DOMParser).parseFromString((e||"").trim(),"text/xml"),n=i().kml(t);if(!n.features.length)throw new Error("Could not parse the kml");return n},m=(e,t,n)=>(e.features.forEach((e=>{e.properties||(e.properties={}),e.properties.fluro_id=n,e.properties.fluro_farm_id=t})),e),g=(e,t)=>{const n=[...new Set(e)],r=[`During uploading ${t}, in handleFeatureCollection function`,`we found ${e.length} non-polygons: ${n.join(", ")}`].join(" "),i=e.length>1?"geometries":"geometry",o=n.length>1?"types":"type",a=n.length>1?"are":"is",s=n.join(", ");return{error:r,note:`${e.length} ${i} of ${o} ${s} ${a} not supported.`}},y=e=>{const t=[],n=[];return e.forEach((e=>{switch(e.geometry.type){case p.Polygon:case p.MultiPolygon:t.push(e);break;case p.GeometryCollection:e.geometry.geometries=e.geometry.geometries.filter((e=>{switch(e.type){case p.Polygon:case p.MultiPolygon:return!0;case p.Point:case p.LineString:case p.MultiPoint:case p.MultiLineString:return n.push(e.type),!1;default:return!1}})),t.push(e);break;case p.Point:case p.LineString:case p.MultiPoint:case p.MultiLineString:n.push(e.geometry.type)}})),{allowedGeometries:t,notAllowedGeometries:[...new Set(n)]}},v=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(n){const t=e.coordinates[0].length>e.coordinates[1].length?e.coordinates[1]:e.coordinates[0],n=e.coordinates[0].length>e.coordinates[1].length?e.coordinates[0]:e.coordinates[1];let r=-1/0,i=1/0,o=-1/0,a=-1/0;t.forEach((e=>{e[0]>o&&(o=e[0]),e[1]>r&&(r=e[1]),e[1]<i&&(i=e[1])})),n.forEach((e=>{e[0]>a&&(a=e[0])}));const s=Math.max(a,o)-(Math.max(a,o)-Math.min(a,o))/2;return[s,r-(r-i)/2]}switch(null===e||void 0===e?void 0:e.type){case"MultiPolygon":return c()(e.coordinates.flat(),2);case"GeometryCollection":return v(null===e||void 0===e?void 0:e.geometries[0]);case"FeatureCollection":return v(null===e||void 0===e||null===(t=e.features[0])||void 0===t?void 0:t.geometry);case"Feature":return v(null===e||void 0===e?void 0:e.geometry);default:return c()(e.coordinates,2)}}catch(r){return(0,d.e)(`Error in getShapeCoordinates() geometry type = ${null===e||void 0===e?void 0:e.type}`),[0,0]}},b=(e,t)=>k([t,e],u.Lq),_=(e,t)=>k([t,e],u.Mg),w=(e,t)=>(0,o.FWy)([t,e],(0,o.yue)(u.BG)),x=e=>{const t=new(s().LatLngBounds)([-90,-360],[90,360]),n=[[t.getNorthWest(),t.getNorthEast(),t.getSouthEast(),t.getSouthWest()]];return e.forEach((e=>{if("Polygon"===e.geometry.type){const t=[],r=e.geometry.coordinates[0];null===r||void 0===r||r.forEach((e=>{e[1]&&e[0]&&t.push(s().latLng(e[1],e[0]))})),n.push(t)}else"MultiPolygon"===e.geometry.type&&e.geometry.coordinates.forEach((e=>{var t;const r=[];null===(t=e[0])||void 0===t||t.forEach((e=>{e[1]&&e[0]&&r.push(s().latLng(e[1],e[0]))})),n.push(r)}))})),s().polygon(n).toGeoJSON()},k=(e,t)=>{const n=e[0],r=e[1];let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const e=t[o][0],s=t[o][1],l=t[a][0],c=t[a][1];s>r!==c>r&&n<(l-e)*(r-s)/(c-s)+e&&(i=!i)}return i},C=e=>{var t,n;if(e.geometry.type!==p.Polygon)return;if(!Array.isArray(e.geometry.coordinates)||!e.geometry.coordinates.length)return;const r=null===(t=e.geometry.coordinates[0])||void 0===t?void 0:t[0],i=null===(n=e.geometry.coordinates[0])||void 0===n?void 0:n[e.geometry.coordinates[0].length-1];var o;Array.isArray(r)&&Array.isArray(i)&&(r[0]===i[0]&&r[1]===i[1]||null===(o=e.geometry.coordinates[0])||void 0===o||o.push([...r]))},S=e=>{let t=!1;const n=e=>"number"===typeof e&&isFinite(e);if(e)try{t=e.isValid()&&n(e.getEast())&&n(e.getNorth())&&n(e.getSouth())&&n(e.getWest())}catch(r){t=!1}return t?e:void 0};function M(e){return"setStyle"in e&&e.hasOwnProperty("feature")&&function(e){return!!e&&e.hasOwnProperty("properties")&&e.hasOwnProperty("geometry")&&e.hasOwnProperty("type")&&"Feature"===e.type}(e.feature)}},80691:(e,t,n)=>{"use strict";function r(e){if(null===e)return null;try{return JSON.parse(e)}catch{return e}}n.d(t,{K:()=>r})},42931:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,S:()=>r});const r=e=>e.reduce(((e,t)=>e+t),0),i=(e,t)=>{if(!Number.isFinite(e)||0===t||!Number.isFinite(t))return NaN;return e/t*100}},49346:(e,t,n)=>{"use strict";n.d(t,{Q6:()=>o,Ug:()=>r,bG:()=>i,bX:()=>c});let r=function(e){return e.MetricUnits="ha",e.ImperialUnits="ac",e}({}),i=function(e){return e.Kg1Ha1="kg1ha-1",e.Mt1Ha1="mt1ha-1",e.L1Ha1="l1ha-1",e.Kg1Sqm1="kg1sqm-1",e.Mt1Sqm1="mt1sqm-1",e.L1Sqm1="l1sqm-1",e.Kg_HA="kg/ha",e.T_HA="t/ha",e.Cm="cm",e.Mm="mm",e.In="in",e}({}),o=function(e){return e.Lb1Ac1="lb1ac-1",e.Gal1Ac1="gal1ac-1",e.Tn1Ac1="tn1ac-1",e.Qt1Ac1="qt1ac-1",e.Lb_AC="lb/ac",e.Bu_AC="bu/ac",e.T_AC="T/ac",e.Gal="gal",e}({});const a=Object.values(o),s=Object.values(i),l=(e,t)=>({label:t({id:`Unit.${e}`,defaultMessage:e}),value:e}),c=(e,t,n)=>{const r=[],i=u(n,t);return e.forEach((e=>{const t=i[e];t&&r.push(t)})),r.length?r:e.map((e=>l(e,t)))},u=(e,t)=>e===r.MetricUnits?s.reduce(((e,n)=>(e[n]=l(n,t),e)),{}):a.reduce(((e,n)=>(e[n]=l(n,t),e)),{})},8854:(e,t,n)=>{"use strict";n.d(t,{cF:()=>a,dp:()=>l,gU:()=>i,sk:()=>o,wH:()=>s});var r=n(73042);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=(0,r.HD)(e)?parseFloat(e):e;return isFinite(n)&&!isNaN(n)?parseFloat(n.toFixed(t)):0}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2?arguments[2]:void 0,i=(0,r.HD)(e)?parseFloat(e):e;return isFinite(i)&&!isNaN(i)||(i=0),"string"===n?i.toFixed(t):parseFloat(i.toFixed(t))}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return isFinite(e)&&null!==e?0===(e=parseFloat(e))?e:parseFloat(e.toFixed(t)):0}const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Math.abs(e)<1e3?a(e,t):Math.abs(e)>1e6?`${a(e/1e6,1)}m`:`${a(e/1e3,1)}k`},l=e=>{try{return e.toLocaleString()}catch(t){return e}}},14291:(e,t,n)=>{"use strict";n.d(t,{IF:()=>s,O7:()=>a,Os:()=>r,_J:()=>i,iy:()=>l,pJ:()=>o});const r=Object.keys,i=Object.values,o=Object.entries;function a(e){for(const t in e)if(e.hasOwnProperty(t))return!0;return!1}function s(e,t){return Object.values(t).includes(e)}const l=s},17859:(e,t,n)=>{"use strict";n.d(t,{CE:()=>u,F3:()=>a,Jh:()=>h,R1:()=>l,Tw:()=>s,ZN:()=>c,_j:()=>r,hr:()=>o,oK:()=>i,o_:()=>p,td:()=>d});const r=function(){return Math.random().toString(36).substring(7)},i=(e,t)=>{throw new Error(t)};function o(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e,t){const n=[...e],r=[];for(;n.length;)r.push(n.splice(0,t));return r}function s(e){return[...new Set(e)]}function l(e){const t=new Set,n=[];for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(const a of e){const e=i.map((e=>`${String(e)}:${a[e]}`)).join();t.has(e)||(t.add(e),n.push(a))}return n}function c(e,t){return e.includes(t)?e.filter((e=>e!==t)):[...e,t]}function u(e,t){const n={...e};return t.forEach((e=>delete n[e])),n}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1e3));return`${parseFloat((e/Math.pow(1e3,r)).toFixed(n))}${["bytes","kB","MB","GB","TB"][r]}`}const p=e=>{switch(e){case"EUR":return"\u20ac";case"GBP":return"\xa3";default:return"$"}},h=e=>!!e&&e.includes("@")},45718:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(15690),i=n(87050);function o(e){const t="string"===typeof e?e:(0,i.e)(e);(0,r.Tb)(new Error(t))}},57550:(e,t,n)=>{"use strict";n.d(t,{F_:()=>o,XK:()=>a,vv:()=>i});var r=n(92480);const i=e=>{const t=new URLSearchParams(window.location.search);return t.get?t.get(e):null},o=(e,t)=>(0,r.MY)(e)(t),a=e=>e.endsWith("/")?e:`${e}/`},35551:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,U:()=>s});var r=n(6587),i=n.n(r),o=n(99730),a=n(82138);const s=(0,o.wN)(a.PW,{maxSize:20}),l=(0,o.wN)(a.PW,i())},56637:(e,t,n)=>{"use strict";n.d(t,{Rm:()=>i,Rt:()=>s,YC:()=>o,nO:()=>r,wP:()=>a});const r=(e,t)=>e<t?-1:e>t?1:0,i=(e,t)=>e<t?1:e>t?-1:0;function o(){let e=arguments.length>1?arguments[1]:void 0,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).sort((function(n,r){const i=null===n||void 0===n?void 0:n[e],o=null===r||void 0===r?void 0:r[e];if(!t&&"string"===typeof i&&"string"===typeof o){const e=i.toLowerCase(),t=o.toLowerCase();return e<t?-1:e>t?1:0}return i<o?-1:i>o?1:0}))}const a=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.sort((function(e,r){const o=e[t],a=r[t];return n||"string"!==typeof o||"string"!==typeof a?i(o,a):i(o.toLowerCase(),a.toLowerCase())}))};function s(e,t){return e.sort(((e,n)=>{const r=e[t],i=n[t];return"string"===typeof r&&"string"===typeof i?r.localeCompare(i,void 0,{numeric:!0,sensitivity:"base"}):0}))}},44530:(e,t,n)=>{"use strict";n.d(t,{E4:()=>r,GL:()=>l,I8:()=>c,LF:()=>a,Sc:()=>o,fm:()=>i,wR:()=>s});const r=(e,t,n)=>1===(Array.isArray(t)?t.length:t)?e:n||`${e}s`,i=e=>"string"===typeof e?e.charAt(0).toUpperCase()+e.slice(1):e,o=e=>{const t=e.split(" ");for(let o=0;o<t.length;o++){var n,r,i;t[o]=`${null===(n=t[o])||void 0===n||null===(r=n[0])||void 0===r?void 0:r.toUpperCase()}${null===(i=t[o])||void 0===i?void 0:i.substring(1)}`}return t.join(" ")},a=e=>e.split("_").filter((e=>e.length>0)).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" "),s=e=>i(e.toLowerCase().split("_").join(" "));function l(e){return e.split(" ").filter((e=>e.length>0)).map((e=>e.toLowerCase())).join("-")}const c=e=>"string"===typeof e?e.replace(/\s/g,""):e},36075:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var r=n(99865),i=n.n(r),o=n(73042);const a=e=>{var t;return"FeatureCollection"===e.type?(e.features.forEach((e=>a(e))),e):(Object.keys(null!==(t=e.properties)&&void 0!==t?t:{}).forEach((t=>{(0,o.$K)(e.properties)&&void 0===e.properties[t]&&delete e.properties[t]})),e)},s=(e,t)=>i()(a(e),t)},61766:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,b:()=>a});n(18178);var r=n(30057),i=n(5651);const o=()=>{const e=(0,r.YB)();return{"sustainability-insights":e.formatMessage({id:"Sustainability insights",defaultMessage:"Sustainability insights"}),carbon:e.formatMessage({id:"Carbon",defaultMessage:"Carbon"}),monitoring:e.formatMessage({id:"Monitoring",defaultMessage:"Monitoring"}),enrollment:e.formatMessage({id:"Enrollment",defaultMessage:"Enrollment"}),"mrv-admin":e.formatMessage({id:"Program settings",defaultMessage:"Program settings"}),"mrv-home":e.formatMessage({id:"Home",defaultMessage:"Home"}),"mrv-admin-program-dashboard":e.formatMessage({id:"Dashboards",defaultMessage:"Dashboards"}),"mrv-admin-program-configure":e.formatMessage({id:"Program settings",defaultMessage:"Program settings"}),workspace:e.formatMessage({id:"Workspace",defaultMessage:"Workspace"}),profile:e.formatMessage({id:"Profile",defaultMessage:"Profile"}),faq:e.formatMessage({id:"Help Center",defaultMessage:"Help Center"}),admin:e.formatMessage({id:"Regrow Internal Tools",defaultMessage:"Regrow Internal Tools"}),"log-out":e.formatMessage({id:"Log Out",defaultMessage:"Log Out"}),"si-admin":e.formatMessage({id:"Program Administration",defaultMessage:"Program Administration"}),"si-home":"","si-map":e.formatMessage({id:"Geospatial Analysis",defaultMessage:"Geospatial Analysis"}),"si-kpi":e.formatMessage({id:"Sustainability Reporting",defaultMessage:"Sustainability Reporting"}),"si-abatement-potential":e.formatMessage({id:"Abatement Potential Simulations",defaultMessage:"Abatement Potential Simulations"}),"si-supply-shed":e.formatMessage({id:"Supply sheds",defaultMessage:"Supply Sheds"}),"si-data-scenarios":e.formatMessage({id:"Data Scenarios",defaultMessage:"Data Scenarios"}),"si-comparison-dashboard":e.formatMessage({id:"Supply Shed Comparison",defaultMessage:"Supply Shed Comparison"}),"si-plan-dashboard":e.formatMessage({id:"Plan Dashboard",defaultMessage:"Plan Dashboard"}),"si-data-export":e.formatMessage({id:"Data Export",defaultMessage:"Data Export"}),"si-planning-reports":e.formatMessage({id:"Scenario Modeling",defaultMessage:"Scenario Modeling"})}},a=e=>{let{from:t,to:n,count:o}=e;return(0,i.jsx)(r._H,{id:"Showing {firstRow} - {lastRow} out of {totalRows}",defaultMessage:"Showing {firstRow} - {lastRow} out of {totalRows}",values:{firstRow:t,lastRow:n,totalRows:o}})}},73042:(e,t,n)=>{"use strict";n.d(t,{$K:()=>a,Ft:()=>r,HD:()=>c,HH:()=>d,Kn:()=>m,Of:()=>b,Qr:()=>g,X0:()=>s,fQ:()=>l,hj:()=>p,jn:()=>_,kJ:()=>y,kK:()=>o,ke:()=>u,o8:()=>i,yD:()=>v,yh:()=>f,z0:()=>h});const r=e=>null===e,i=e=>void 0===e,o=e=>r(e)||i(e),a=e=>!o(e),s=e=>o(e)||(e=>"boolean"===typeof e&&!1===e)(e)||u(e)||(e=>p(e)&&0===e)(e)||p(e)&&Number.isNaN(e),l=e=>!s(e),c=e=>"string"===typeof e,u=e=>c(e)&&""===e,d=e=>c(e)&&!u(e),p=e=>"number"===typeof e,h=e=>"number"===typeof e&&Number.isFinite(e),f=e=>p(e)&&!isNaN(e),m=e=>!o(e)&&"object"===typeof e&&e instanceof Object,g=e=>m(e)&&v(Object.keys(e)),y=e=>Array.isArray(e),v=e=>y(e)&&0===e.length,b=e=>y(e)&&e.length>0,_=e=>"boolean"===typeof e},39475:(e,t,n)=>{"use strict";n.d(t,{BB:()=>c,D0:()=>u,GS:()=>a,Lw:()=>r,MG:()=>i,SI:()=>o,default:()=>d});const r="mrv",i="carbon",o="sustainability",a="/global-admin",s="undefined"!==typeof window?window:{location:{host:""}},l={...{baseUrl:"https://app.dev.regrow.ag/",authHeader:"x-access-token",env:"development",version:0,app_version:"__APP_VERSION__",branch:"__BRANCH__",metriks:{yMetrika:49021181,gAnalytics:"UA-126135971-1"},captcha:{sitekey:"6LfN0DoUAAAAAIIoVzv6YGdeHOXNjonAaJXCP13a",theme:"light"},intercomSettings:{app_id:"gvmhgf3m",alignment:"left"},hubspot:{portalId:"4430549",formGuid:"e3f6fe2a-31d1-49ac-b3f4-b4b14c93bf64"},graphql:{uri:"http://localhost:4000/graphql"},posthog:{apiKey:"phc_Veht63U9lfASIj6ZDlUWvQK9zbpARY5d6XEiGCjhqQb",host:"https://ph.regrow.ag"}},...s.FLUROSENSE_CONFIG||{}},c="production"===l.env,u=(l.env,null===s||void 0===s?void 0:s.location.host.includes("localhost")),d=l},49582:(e,t,n)=>{"use strict";n.d(t,{PM:()=>h,Vx:()=>u,ZW:()=>p,mv:()=>d});var r=n(33022);const i={label:"English (US)",value:r.g.EnUS,flag:"us",momentLocale:"en"},o={label:"Portuguese (BR)",value:r.g.PtBr,flag:"pt",momentLocale:"pt-br"},a={label:"Russian",value:r.g.RuRU,flag:"ru",momentLocale:"ru"},s={label:"French",value:r.g.Fr,flag:"fr",momentLocale:"fr"},l={label:"Romanian",value:r.g.RoRO,momentLocale:"ro"},c={label:"Polish",value:r.g.PlPL,momentLocale:"pl"},u=[{label:"English (GB)",value:r.g.EnGB,momentLocale:"en-gb"},i,s,{label:"German",value:r.g.DeDE,momentLocale:"de"},c,o,l,a,{label:"Hungarian",value:r.g.HuHU,momentLocale:"hu"},{label:"Vietnamese",value:r.g.ViVN,momentLocale:"vi"},{label:"Ukrainian",value:r.g.UkUA,momentLocale:"uk"}],d=[r.g.EnUS,r.g.PtBr,r.g.RuRU,r.g.Fr,r.g.RoRO,r.g.PlPL,r.g.EnGB,r.g.DeDE,r.g.HuHU,r.g.ViVN,r.g.UkUA],p=r.g.EnUS,h=e=>d.includes(e)},83312:(e,t,n)=>{"use strict";n.d(t,{Fs:()=>o,NW:()=>a,l6:()=>s});var r=n(30057),i=n(49582);const o=(0,r.Sn)();let a=(0,r.dp)({locale:i.ZW,defaultLocale:i.ZW},o);const s=e=>a=e},5229:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(83312);const i=(e,t)=>r.NW.formatMessage(e,t)},33022:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});let r=function(e){return e.DeDE="de-DE",e.EnGB="en-GB",e.EnUS="en-US",e.Fr="fr",e.PlPL="pl-PL",e.PtBr="pt-BR",e.RoRO="ro-RO",e.RuRU="ru-RU",e.UkUA="uk-UA",e.HuHU="hu-HU",e.ViVN="vi-VN",e}({})},42069:(e,t,n)=>{"use strict";n.d(t,{K8:()=>ce,kE:()=>le,FD:()=>se});var r=n(66364),i=n(23635),o=n(20317),a=n(59459),s={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xeas",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};const l=function(e,t,n){var r,i=s[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"h\xe1 "+r:r};var c=n(72867);const u={date:(0,c.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,c.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,c.Z)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var d={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"};const p=function(e,t,n,r){var i=d[e];return"function"===typeof i?i(t):i};var h=n(90219);const f={ordinalNumber:function(e,t){return Number(e)+"\xba"},era:(0,h.Z)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:(0,h.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,h.Z)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,h.Z)({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xe1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xe1b"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,h.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})};var m=n(54224);const g={code:"pt",formatDistance:l,formatLong:u,formatRelative:p,localize:f,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(\xba|\xaa)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,m.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:(0,m.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba|\xaa)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,m.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,m.Z)({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,wide:/^(domingo|segunda-?\s?feira|ter\xe7a-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[\xe1a]/i]},defaultParseWidth:"any"}),dayPeriod:(0,m.Z)({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[\xe3a]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var y=n(45929),v=n(99374),b=n(70229),_=n(67331),w=n(37882),x=n(28867),k=n(96798),C={draw:{toolbar:{actions:{title:"\u1218\u1233\u120d \u1270\u12cd",text:"\u1270\u12cd"},finish:{title:"\u1218\u1233\u120d \u1328\u122d\u1235",text:"\u1328\u122d\u1235"},undo:{title:"\u1218\u1328\u1228\u123b \u12e8\u1270\u1233\u1208\u12cd\u1295 \u1290\u1325\u1265 \u12a0\u1325\u134b",text:"\u1218\u1328\u1228\u123b \u12e8\u1270\u1233\u1208\u12cd\u1295 \u1290\u1325\u1265 \u12a0\u1325\u134b"},buttons:{polyline:"\u1356\u120a\u120b\u12e8\u1295 \u1233\u120d",polygon:"\u1356\u120a\u130e\u1295 \u1233\u120d",rectangle:"\u12a0\u122b\u1275 \u1218\u12a0\u12d8\u1295 \u1233\u120d",circle:"\u12ad\u1265 \u1233\u120d",marker:"\u121d\u120d\u12ad\u1275 \u1233\u120d",circlemarker:"\u12ad\u1265 \u121d\u120d\u12ad\u1275 \u1233\u120d"}},handlers:{circle:{tooltip:{start:"\u12ad\u1265 \u1208\u1218\u1233\u120d \u1270\u132d\u1295\u12cd \u12ed\u130e\u1275\u1271"},radius:"\u122b\u12f2\u12e8\u1235"},circlemarker:{tooltip:{start:"\u12ad\u1265 \u121d\u120d\u12ad\u1275 \u1208\u1218\u1233\u120d \u12ab\u122d\u1273\u12cd\u1295 \u12ed\u132b\u1291 \u12ed\u130e\u1275\u1271"}},marker:{tooltip:{start:"\u121d\u120d\u12ad\u1275 \u1208\u1218\u1233\u120d \u12ab\u122d\u1273\u12cd\u1295 \u12ed\u132b\u1291 \u12ed\u130e\u1275\u1271"}},polygon:{tooltip:{start:"\u1245\u122d\u133d\u1295 \u1208\u1218\u1233\u120d \u12ab\u122d\u1273\u12cd\u1295 \u1270\u132d\u1290\u12cd \u12ed\u130e\u1275\u1271",cont:"\u1245\u122d\u133d\u1295 \u1218\u1233\u120e\u1295 \u1208\u1218\u1240\u1320\u120d \u12ed\u132b\u1291",end:"\u1245\u122d\u133d\u1295 \u1235\u120e \u1208\u1218\u1328\u1228\u1235 \u12e8\u1218\u1300\u1218\u122a\u12eb\u12cd\u1295 \u1290\u1325\u1265 \u12ed\u132b\u1291"}},polyline:{error:"<strong>\u1235\u1205\u1270\u1275:</strong> \u1218\u1235\u1218\u122e\u127d \u12a5\u122d\u1235 \u1260\u12a5\u122d\u1235 \u1218\u1270\u120b\u1208\u134d \u12a0\u12ed\u127d\u1209\u121d!",tooltip:{start:"\u1218\u1235\u1218\u122d \u1208\u1218\u1233\u120d \u12ab\u122d\u1273\u12cd\u1295 \u1270\u132d\u1290\u12cd \u12ed\u130e\u1275\u1271",cont:"\u1218\u1235\u1218\u122d \u1218\u1233\u120e\u1295 \u1208\u1218\u1240\u1320\u120d \u12ed\u132b\u1291",end:"\u1218\u1235\u1218\u122d \u1235\u120e \u1208\u1218\u1328\u1228\u1235 \u12e8\u1218\u1328\u1228\u123b\u12cd\u1295 \u1290\u1325\u1265 \u12ed\u132b\u1291"}},rectangle:{tooltip:{start:"\u12d0\u122b\u1275 \u1218\u12a0\u12dd\u1295 \u1208\u1218\u1233\u120d \u12ab\u122d\u1273\u12cd\u1295 \u12ed\u132b\u1291 \u12ed\u130e\u1275\u1271"}},simpleshape:{tooltip:{end:"\u1235\u1208\u12cd \u1208\u1218\u1328\u1228\u1235 \u12a0\u12ed\u1324\u1295 \u12ed\u120d\u1240\u1241"}}}},edit:{toolbar:{actions:{save:{title:"\u1208\u12cd\u1326\u1279\u1295 \u12a0\u1291\u122d",text:"\u12a0\u1291\u122d"},cancel:{title:"\u121b\u1235\u1270\u12ab\u12a8\u1209\u1295 \u1270\u12cd\u1363 \u1201\u1209\u1295\u121d \u1208\u12cd\u1326\u127d \u1230\u122d\u12dd",text:"\u1270\u12cd"},clearAll:{title:"\u1201\u1209\u1295\u121d \u12e8\u12ab\u122d\u1273 \u1308\u133e\u127d \u12a0\u1325\u134b",text:"\u1201\u1209\u1295\u121d \u12a0\u1325\u134b"}},buttons:{edit:"\u12e8\u12ab\u122d\u1273 \u1308\u133d \u12a0\u1235\u1270\u12ab\u12ad\u120d",editDisabled:"\u12e8\u121a\u1235\u1270\u12ab\u12a8\u120d \u12e8\u12ab\u122d\u1273 \u1308\u133d \u12e8\u1208\u121d",remove:"\u12e8\u12ab\u122d\u1273 \u1308\u133d \u1230\u122d\u12dd.",removeDisabled:"\u12e8\u121a\u1230\u1228\u12dd \u12e8\u12ab\u122d\u1273 \u1308\u133d \u12e8\u1208\u121d"}},handlers:{edit:{tooltip:{text:"\u1208\u121b\u1235\u1270\u12ab\u12a8\u120d \u121d\u120d\u12ad\u1271\u1295 \u12c8\u12ed\u121d \u1218\u12eb\u12e3\u12cd\u1295 \u12ed\u130e\u1275\u1271",subtext:"\u1208\u12cd\u1325\u1321\u1295 \u1208\u1218\u1270\u12cd \u1270\u12cd \u12e8\u121a\u1208\u12cd\u1295 \u12ed\u132b\u1291"}},remove:{tooltip:{text:"\u121b\u1325\u134b\u1275 \u12e8\u1348\u1208\u1309\u1275\u1295 \u12ed\u132b\u1291"}}}}},S={draw:{toolbar:{actions:{title:"Zru\u0161it kreslen\xed",text:"Zru\u0161it"},finish:{title:"Dokon\u010dit kreslen\xed",text:"Dokon\u010dit"},undo:{title:"Smazat posledn\xed nakreslen\xfd bod",text:"Smazat posledn\xed bod"},buttons:{polyline:"Nakreslit mnoho\xfaheln\xedk",polygon:"Nakreslit polygon",rectangle:"Nakreslit obd\xe9ln\xedk",circle:"Nakreslit kruh",marker:"Nakreslit zna\u010dku",circlemarker:"Nakreslit kruhovou zna\u010dku"}},handlers:{circle:{tooltip:{start:"Kliknout a t\xe1hnout pro nakreslen\xed kruhu."},radius:"Polom\u011br"},circlemarker:{tooltip:{start:"Kliknout do mapy pro um\xedst\u011bn\xed kruhov\xe9 zna\u010dky."}},marker:{tooltip:{start:"Kliknout do mapy pro um\xedst\u011bn\xed zna\u010dky."}},polygon:{tooltip:{start:"Kliknout pro za\u010d\xe1tek kreslen\xed tvaru.",cont:"Kliknout pro pokra\u010dov\xe1n\xed v kreslen\xed tvaru.",end:"Kliknout na pvn\xed bod k uzav\u0159en\xed tvaru."}},polyline:{error:"<strong>Chyba:</strong> hrany tvaru se nemohou prot\xednat!",tooltip:{start:"Kliknout pro za\u010d\xe1tek kreslen\xed \xfase\u010dky.",cont:"Kliknout pro pokra\u010dov\xe1n\xed v kreslen\xed \xfase\u010dky.",end:"Kliknout na koncov\xfd bod k ukon\u010den\xed kreslen\xed \xfase\u010dky."}},rectangle:{tooltip:{start:"Kliknout a t\xe1hnout k nakreslen\xed obd\xe9ln\xedku."}},simpleshape:{tooltip:{end:"Pustit my\u0161 k dokon\u010den\xed kreslen\xed."}}}},edit:{toolbar:{actions:{save:{title:"Ulo\u017eit zm\u011bny.",text:"Ulo\u017eit"},cancel:{title:"Zru\u0161it \xfapravu, zru\u0161\xed v\u0161echny zm\u011bny.",text:"Zru\u0161it"},clearAll:{title:"Vymazat v\u0161echny vrstvy.",text:"Vymazat v\u0161e"}},buttons:{edit:"Upravit vrstvy.",editDisabled:"\u017d\xe1dn\xe9 vrstvy k \xfaprav\u011b.",remove:"Vymazat vrstvy.",removeDisabled:"\u017d\xe1dn\xe1 vrstva k vymaz\xe1n\xed."}},handlers:{edit:{tooltip:{text:"T\xe1hnout za \xfachopy pro editaci tvaru.",subtext:"Kliknut\xedm na zru\u0161it vr\xe1tite zm\u011bny."}},remove:{tooltip:{text:"Kliknout na tvar pro smaz\xe1n\xed"}}}}},M={draw:{toolbar:{actions:{title:"Zeichnung abbrechen",text:"Abbrechen"},finish:{title:"Zeichnung fertigstellen",text:"Fertigstellen"},undo:{title:"L\xf6sche den zuletzt gezeichneten Punkt",text:"Letzter Punkt l\xf6schen"},buttons:{polyline:"Zeichne eine Linie",polygon:"Zeichne ein Polygon",rectangle:"Zeichne ein Rechteck",circle:"Zeichne einen Kreis",marker:"Zeichne einen Marker",circlemarker:"Zeichne einen Kreis-Marker"}},handlers:{circle:{tooltip:{start:"Klicken und ziehen um einen Kreis zu zeichnen."},radius:"Radius"},circlemarker:{tooltip:{start:"Karte anklicken um einen Kreis-Marker zu platzieren."}},marker:{tooltip:{start:"Karte anklicken um einen Marker zu platzieren."}},polygon:{tooltip:{start:"Klicken um mit dem Zeichnen einer Form zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Form fortzufahren.",end:"Erster Punkt anklicken um diese Form abzuschliessen."}},polyline:{error:"<strong>Fehler:</strong> Form-Ecken d\xfcrfen sich nicht \xfcberschneiden!",tooltip:{start:"Klicken um mit dem Zeichnen einer Linie zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Linie fortzufahren.",end:"Erster Punkt anklicken um diese Linie abzuschliessen."}},rectangle:{tooltip:{start:"Klicken und ziehen um ein Rechteck zu zeichnen."}},simpleshape:{tooltip:{end:"Maustaste loslassen um die Zeichnung fertigzustellen."}}}},edit:{toolbar:{actions:{save:{title:"Speichere \xc4nderungen.",text:"Speichern"},cancel:{title:"Bearbeitung abbrechen, alle \xc4nderungen verwerfen.",text:"Abbrechen"},clearAll:{title:"Alle Layer bereinigen.",text:"Alles bereinigen"}},buttons:{edit:"Layer bearbeiten.",editDisabled:"Keine Layer zum bearbeiten.",remove:"Layer l\xf6schen.",removeDisabled:"Keine Layer zum l\xf6schen."}},handlers:{edit:{tooltip:{text:"Ziehe den Griff oder den Marker um die Eigenschaft zu bearbeiten.",subtext:"Klicke abbrechen um \xc4nderungen r\xfcckg\xe4ngig zu machen."}},remove:{tooltip:{text:"Klicke auf eine Eigenschaft um diese zu entfernen."}}}}},T={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes.",text:"Save"},cancel:{title:"Cancel editing, discards all changes.",text:"Cancel"},clearAll:{title:"Clear all layers.",text:"Clear All"}},buttons:{edit:"Edit layers.",editDisabled:"No layers to edit.",remove:"Delete layers.",removeDisabled:"No layers to delete."}},handlers:{edit:{tooltip:{text:"Drag handles, or marker to edit feature.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove"}}}}},E={draw:{toolbar:{actions:{title:"Cancelar dibujo",text:"Cancelar"},finish:{title:"Terminar dibujo",text:"Terminar"},undo:{title:"Eliminar \xfaltimo punto dibujado",text:"Eliminar \xfaltimo punto"},buttons:{polyline:"Dibujar una polil\xednea",polygon:"Dibujar un pol\xedgono",rectangle:"Dibujar un rect\xe1ngulo",circle:"Dibujar un c\xedrculo",marker:"Dibujar un marcador",circlemarker:"Dibujar un marcador circular"}},handlers:{circle:{tooltip:{start:"Haz click y arrastra para dibujar un c\xedrculo"},radius:"Radio"},circlemarker:{tooltip:{start:"Haz click en el mapa para situar el marcador circular"}},marker:{tooltip:{start:"Haz click en el mapa para situar el marcador"}},polygon:{tooltip:{start:"Haz click para empezar a dibujar la forma",cont:"Haz click para continuar dibujando la forma",end:"Haz click en el primer punto para cerrar la forma"}},polyline:{error:"<strong>Error:</strong> las l\xedneas no deben cruzarse",tooltip:{start:"Haz click para empezar a dibujar la l\xednea",cont:"Haz click para continuar dibujando la l\xednea",end:"Haz click en el \xfaltimo punto para terminar la l\xednea"}},rectangle:{tooltip:{start:"Haz click y arrastra para dibujar un rect\xe1ngulo"}},simpleshape:{tooltip:{end:"Suelta el rat\xf3n para terminar de dibujar"}}}},edit:{toolbar:{actions:{save:{title:"Guardar los cambios",text:"Guardar"},cancel:{title:"Cancelar la edici\xf3n, descarta todos los cambios",text:"Cancelar"},clearAll:{title:"Limpiar todas las capas",text:"Limpiar todo"}},buttons:{edit:"Editar capas",editDisabled:"No hay capas que editar",remove:"Eliminar capas",removeDisabled:"No hay capas que eliminar"}},handlers:{edit:{tooltip:{text:"Arrastra el marcador para editar la forma",subtext:"Haz click en cancelar para deshacer los cambios"}},remove:{tooltip:{text:"Haz click en una forma para eliminarla"}}}}},P={draw:{toolbar:{actions:{title:"Peru piirustus",text:"Peru"},finish:{title:"Hyv\xe4ksy piirustus",text:"Hyv\xe4ksy"},undo:{title:"Poista viimeinen piirretty piste",text:"Poista viimeinen piste"},buttons:{polyline:"Piirr\xe4 murtoviiva",polygon:"Piirr\xe4 monikulmio",rectangle:"Piirr\xe4 suorakulmio",circle:"Piirr\xe4 ympyr\xe4",marker:"Piirr\xe4 merkki",circlemarker:"Piirr\xe4 piirimerkki"}},handlers:{circle:{tooltip:{start:"Piirr\xe4 ympyr\xe4 pit\xe4m\xe4ll\xe4 hiiri painettuna ja vet\xe4m\xe4ll\xe4."},radius:"S\xe4de"},circlemarker:{tooltip:{start:"Aseta ympyr\xe4merkki painamalla karttaa."}},marker:{tooltip:{start:"Aseta markkeri painamalla karttaa."}},polygon:{tooltip:{start:"Paina aloittaaksesi muodon piirt\xe4misen.",cont:"Paina jatkaaksesi muodon piirt\xe4mist\xe4.",end:"Sulje muoto painamalla ensimm\xe4ist\xe4 pistett\xe4."}},polyline:{error:"<strong>Virhe:</strong> muodon reunaa ei voi ylitt\xe4\xe4!",tooltip:{start:"Paina aloittaaksesi viivan piirt\xe4misen.",cont:"Paina jatkaaksesi viivan piirt\xe4mist\xe4.",end:"Paina viimeist\xe4 pistett\xe4 p\xe4\xe4tt\xe4ksesi viiva."}},rectangle:{tooltip:{start:"Piirr\xe4 suorakulmio pit\xe4m\xe4ll\xe4 hiiri painettuna ja vet\xe4m\xe4ll\xe4."}},simpleshape:{tooltip:{end:"Vapauta hiiri p\xe4\xe4tt\xe4\xe4ksesi piirt\xe4misen."}}}},edit:{toolbar:{actions:{save:{title:"Hyv\xe4ksy muutokset.",text:"Hyv\xe4ksy"},cancel:{title:"Peru muokkaus, hylk\xe4\xe4 kaikki muutokset.",text:"Peru"},clearAll:{title:"Poista kaikki tasot.",text:"Poista kaikki"}},buttons:{edit:"Muokkaa tasoja.",editDisabled:"Ei muokattavia tasoja.",remove:"Poista tasot.",removeDisabled:"Ei poistettavia tasoja."}},handlers:{edit:{tooltip:{text:"Ved\xe4 pistett\xe4 tai markkeria muokataksesi piirrettyj\xe4 ominaisuuksia.",subtext:"Kumoa muutokset painamalla peruuta."}},remove:{tooltip:{text:"Paina piirretty\xe4 ominaisuutta poistaaksesi"}}}}},I={draw:{toolbar:{actions:{title:"Annuler le dessin",text:"Annuler"},finish:{title:"Terminer le dessin",text:"Terminer"},undo:{title:"Supprimer le dernier point tir\xe9",text:"Supprimer le dernier point"},buttons:{polyline:"Dessinez une polyligne",polygon:"Dessinez un polygone",rectangle:"Dessinez un rectangle",circle:"Dessiner un cercle",marker:"Dessinez un marqueur",circlemarker:"Dessinez un marqueur circulaire"}},handlers:{circle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le cercle."},radius:"Rayon"},circlemarker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur circulaire."}},marker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur."}},polygon:{tooltip:{start:"Cliquez pour commencer \xe0 dessiner.",cont:"Cliquez pour continuer \xe0 dessiner.",end:"Cliquez sur le premier point pour fermer cette forme."}},polyline:{error:"<strong>Erreur:</strong> les polyligne ne peuvent pas traverser!",tooltip:{start:"Cliquez pour commencer \xe0 dessiner.",cont:"Cliquez pour continuer \xe0 dessiner.",end:"Cliquez sur le dernier point pour fermer cette forme."}},rectangle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le rectangle."}},simpleshape:{tooltip:{end:"Rel\xe2chez la souris pour terminer le dessin."}}}},edit:{toolbar:{actions:{save:{title:"Sauvegarder les modifications.",text:"Sauvegarder"},cancel:{title:"Annuler l'\xe9dition, rejette toutes les modifications.",text:"Annuler"},clearAll:{title:"Effacez toutes les collections.",text:"Tout effacer"}},buttons:{edit:"Modifier les collections.",editDisabled:"Pas de collections \xe0 \xe9diter.",remove:"Supprimez les collections.",removeDisabled:"Pas de collections \xe0 supprimer."}},handlers:{edit:{tooltip:{text:"S\xe9lectionnez les poign\xe9es ou le marqueur pour modifier l'entit\xe9.",subtext:"Cliquez sur annuler pour r\xe9tablir les modifications."}},remove:{tooltip:{text:"Cliquez sur une entit\xe9 pour supprimer"}}}}},O={draw:{toolbar:{actions:{title:"Rajzol\xe1s elvet\xe9se",text:"M\xe9gse"},finish:{title:"Rajzol\xe1s befejez\xe9se",text:"Befejez\xe9s"},undo:{title:"Legut\xf3bbi pont t\xf6rl\xe9se",text:"Legut\xf3bbi pont t\xf6rl\xe9se"},buttons:{polyline:"\xdatvonal rajzol\xe1sa",polygon:"Soksz\xf6g rajzol\xe1sa",rectangle:"N\xe9gysz\xf6g rajzol\xe1sa",circle:"K\xf6r rajzol\xe1sa",marker:"Jel\xf6l\u0151 rajzol\xe1sa",circlemarker:"K\xf6r-jel\xf6l\u0151 rajzol\xe1sa"}},handlers:{circle:{tooltip:{start:"Kattintson \xe9s tartsa nyomva a rajzol\xe1shoz."},radius:"Sug\xe1r"},circlemarker:{tooltip:{start:"K\xf6r-jel\xf6l\u0151 elhelyez\xe9s\xe9hez kattintson a t\xe9rk\xe9pre."}},marker:{tooltip:{start:"Jel\xf6l\u0151 elhelyez\xe9s\xe9hez kattintson a t\xe9rk\xe9pre."}},polygon:{tooltip:{start:"Alakzat rajzol\xe1s\xe1hoz kattintson a t\xe9rk\xe9pre.",cont:"Alakzat folytat\xe1s\xe1hoz kattintson a t\xe9rk\xe9pre.",end:"Alakzat befejez\xe9s\xe9hez kattintson a kezd\u0151pontra."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"\xdatvonal rajzol\xe1s\xe1hoz kattintson a t\xe9rk\xe9pre.",cont:"\xdatvonal folytat\xe1s\xe1hoz kattintson a t\xe9rk\xe9pre.",end:"\xdatvonal befejez\xe9s\xe9hez kattintson a v\xe9gpontra."}},rectangle:{tooltip:{start:"Kattintson \xe9s tartsa nyomva n\xe9gysz\xf6g rajzol\xe1s\xe1hoz."}},simpleshape:{tooltip:{end:"Ha el\xe9gedett az alakzattal, engedje fel az eg\xe9r gombj\xe1t."}}}},edit:{toolbar:{actions:{save:{title:"V\xe1ltoztat\xe1sok elment\xe9se.",text:"Ment\xe9s"},cancel:{title:"V\xe1ltoztat\xe1sok elvet\xe9se.",text:"M\xe9gse"},clearAll:{title:"\xd6sszes r\xe9teg t\xf6rl\xe9se.",text:"\xd6sszes t\xf6rl\xe9se"}},buttons:{edit:"R\xe9tegek szerkeszt\xe9se.",editDisabled:"Nem \xe1llnak rendelkez\xe9sre szerkeszthet\u0151 r\xe9tegek.",remove:"R\xe9tegek t\xf6rl\xe9se.",removeDisabled:"Nem \xe1llnak rendelkez\xe9sre t\xf6r\xf6lhet\u0151 r\xe9tegek."}},handlers:{edit:{tooltip:{text:"M\xf3dos\xedt\xe1shoz haszn\xe1lja a jel\xf6l\u0151k, alakzatok kezel\u0151it.",subtext:"V\xe1ltoz\xe1sok elvet\xe9s\xe9hez kattintson a 'M\xe9gse' gombra."}},remove:{tooltip:{text:"Kattintson a jel\xf6l\u0151kre, alakzatokra az elt\xe1vol\xedt\xe1sukhoz."}}}}},R={draw:{toolbar:{actions:{title:"Annulla disegno",text:"Annulla"},finish:{title:"Completa disegno",text:"Completa"},undo:{title:"Elimina l'ultimo punto disegnato",text:"Elimina l'ultimo punto"},buttons:{polyline:"Disegna una polilinea",polygon:"Disegna un poligono",rectangle:"Disegna un rettangolo",circle:"Disegna un cerchio",marker:"Disegna un marcatore",circlemarker:"Disegna un marker circolare"}},handlers:{circle:{tooltip:{start:"Clicca e trascina per disegnare un cerchio."},radius:"Raggio"},circlemarker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore circolare."}},marker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore."}},polygon:{tooltip:{start:"Clicca per iniziare a disegnare una figura.",cont:"Clicca per continuare a disegnare una figura.",end:"Clicca il primo punto per chiudere questa figura."}},polyline:{error:"<strong>Errore:</strong> i margini della figura non si possono incrociare!",tooltip:{start:"Clicca per iniziare a disegnare una linea.",cont:"Clicca per continuare a disegnare una linea",end:"Clicca l'ultimo punto per finire questa linea"}},rectangle:{tooltip:{start:"Clicca e trascina per disegnare un rettangolo."}},simpleshape:{tooltip:{end:"Rilascia il mouse per finire il disegno."}}}},edit:{toolbar:{actions:{save:{title:"Salva modifiche.",text:"Salva"},cancel:{title:"Annulla tutte le modifiche.",text:"Annulla"},clearAll:{title:"Pulisci tutti i livelli.",text:"Pulisci tutto"}},buttons:{edit:"Modifica i livelli.",editDisabled:"Nessun livello disponibile per la modifica.",remove:"Elimina livelli.",removeDisabled:"Nessun livello disponibile per l'eliminazione."}},handlers:{edit:{tooltip:{text:"Trascina le maniglie, o i marcatori per modificare l'elemento.",subtext:"Clicca annulla per annullare le modifiche."}},remove:{tooltip:{text:"Clicca un elemento per rimuoverlo"}}}}},j={draw:{toolbar:{actions:{title:"\u10ee\u10d0\u10e2\u10d5\u10d8\u10e1 \u10d2\u10d0\u10e3\u10e5\u10db\u10d4\u10d1\u10d0",text:"\u10d2\u10d0\u10e3\u10e5\u10db\u10d4\u10d1\u10d0"},finish:{title:"\u10ee\u10d0\u10e2\u10d5\u10d8\u10e1 \u10d3\u10d0\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10d0",text:"\u10d3\u10d0\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10d0"},undo:{title:"\u10d1\u10dd\u10da\u10dd \u10d3\u10d0\u10ee\u10d0\u10e2\u10e3\u10da\u10d8 \u10ec\u10d4\u10e0\u10e2\u10d8\u10da\u10d8\u10e1 \u10ec\u10d0\u10e8\u10da\u10d0",text:"\u10d1\u10dd\u10da\u10dd \u10ec\u10d4\u10e0\u10e2\u10d8\u10da\u10d8\u10e1 \u10ec\u10d0\u10e8\u10da\u10d0"},buttons:{polyline:"\u10de\u10dd\u10da\u10d8\u10da\u10d0\u10d8\u10dc\u10d8\u10e1 \u10d3\u10d0\u10ee\u10d0\u10d6\u10d5\u10d0",polygon:"\u10de\u10dd\u10da\u10d8\u10d2\u10dd\u10dc\u10d8\u10e1 \u10d3\u10d0\u10ee\u10d0\u10d6\u10d5\u10d0",rectangle:"\u10db\u10d0\u10e0\u10d7\u10d9\u10e3\u10d7\u10ee\u10d4\u10d3\u10d8\u10e1 \u10d3\u10d0\u10ee\u10d0\u10d6\u10d5\u10d0",circle:"\u10ec\u10e0\u10d8\u10e1 \u10d3\u10d0\u10ee\u10d0\u10d6\u10d5\u10d0",marker:"\u10d0\u10d3\u10d2\u10d8\u10da\u10db\u10d3\u10d4\u10d1\u10d0\u10e0\u10d4\u10dd\u10d1\u10d8\u10e1 \u10d3\u10d0\u10e2\u10d0\u10dc\u10d0",circlemarker:"\u10d0\u10d3\u10d2\u10d8\u10da\u10db\u10d3\u10d4\u10d1\u10d0\u10e0\u10d4\u10dd\u10d1\u10d8\u10e1 \u10d3\u10d0\u10e2\u10d0\u10dc\u10d0(\u10ec\u10e0\u10d8\u10e1 \u10e1\u10d0\u10ee\u10d8\u10d7)"}},handlers:{circle:{tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10d3\u10d0 \u10d2\u10d0\u10d3\u10d0\u10d8\u10e2\u10d0\u10dc\u10d4\u10d7 \u10d8\u10db\u10d8\u10e1\u10d0\u10d7\u10d5\u10d8\u10e1, \u10e0\u10dd\u10db \u10ec\u10e0\u10d4 \u10d3\u10d0\u10ee\u10d0\u10d6\u10dd\u10d7."},radius:"\u10e0\u10d0\u10d3\u10d8\u10e3\u10e1\u10d8"},circlemarker:{tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10e0\u10e3\u10d9\u10d0\u10d6\u10d4 \u10d0\u10d3\u10d2\u10d8\u10da\u10db\u10d3\u10d4\u10d1\u10d0\u10e0\u10d4\u10dd\u10d1\u10d8\u10e1 \u10e8\u10d4\u10e1\u10d0\u10e5\u10db\u10dc\u10d4\u10da\u10d0\u10d3."}},marker:{tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10e0\u10e3\u10d9\u10d0\u10d6\u10d4 \u10d0\u10d3\u10d2\u10d8\u10da\u10db\u10d3\u10d4\u10d1\u10d0\u10e0\u10d4\u10dd\u10d1\u10d8\u10e1 \u10e8\u10d4\u10e1\u10d0\u10e5\u10db\u10dc\u10d4\u10da\u10d0\u10d3."}},polygon:{tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7, \u10d9\u10dd\u10dc\u10e2\u10e3\u10e0\u10d8\u10e1 \u10ee\u10d0\u10d6\u10d5\u10d8\u10e1 \u10d3\u10d0\u10ec\u10e7\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",cont:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7, \u10d9\u10dd\u10dc\u10e2\u10e0\u10e3\u10e1\u10d8 \u10ee\u10d0\u10d6\u10d5\u10d8\u10e1 \u10d3\u10d0\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",end:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10de\u10d8\u10e0\u10d5\u10d4\u10da \u10ec\u10d4\u10e0\u10e2\u10d8\u10da\u10d6\u10d4, \u10e0\u10d0\u10d7\u10d0 \u10d3\u10d0\u10d0\u10e1\u10e0\u10e3\u10da\u10dd\u10d7 \u10d9\u10dd\u10dc\u10e2\u10e3\u10e0\u10d8\u10e1 \u10ee\u10d0\u10d6\u10d5\u10d0."}},polyline:{error:"<strong>\u10e8\u10d4\u10ea\u10d3\u10dd\u10db\u10d0:</strong> \u10ee\u10d0\u10d6\u10d8 \u10d5\u10d4\u10e0 \u10d2\u10d0\u10d3\u10d0\u10d9\u10d5\u10d4\u10d7\u10d0\u10d5\u10e1 \u10d7\u10d0\u10d5\u10d8\u10e1 \u10d7\u10d0\u10d5\u10e1",tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7, \u10ee\u10d0\u10d6\u10d8\u10e1 \u10ee\u10d0\u10d6\u10d5\u10d8\u10e1 \u10d3\u10d0\u10ec\u10e7\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",cont:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7, \u10ee\u10d0\u10d6\u10d8\u10e1 \u10ee\u10d0\u10d6\u10d5\u10d8\u10e1 \u10d3\u10d0\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",end:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10d1\u10dd\u10da\u10dd \u10ec\u10d4\u10e0\u10e2\u10d8\u10da\u10d6\u10d4, \u10e0\u10d0\u10d7\u10d0 \u10d3\u10d0\u10d0\u10e1\u10e0\u10e3\u10da\u10dd\u10d7 \u10ee\u10d0\u10d6\u10d8\u10e1 \u10ee\u10d0\u10d6\u10d5\u10d0."}},rectangle:{tooltip:{start:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10d3\u10d0 \u10d2\u10d0\u10d3\u10d0\u10d8\u10e2\u10d0\u10dc\u10d4\u10d7 \u10d8\u10db\u10d8\u10e1\u10d0\u10d7\u10d5\u10d8\u10e1, \u10e0\u10dd\u10db \u10db\u10d0\u10e0\u10d7\u10d9\u10e3\u10d7\u10ee\u10d4\u10d3\u10d8 \u10d3\u10d0\u10ee\u10d0\u10d6\u10dd\u10d7."}},simpleshape:{tooltip:{end:"\u10d2\u10d0\u10d0\u10d7\u10d0\u10d5\u10d8\u10e1\u10e3\u10e4\u10da\u10d4\u10d7 \u10d7\u10d0\u10d2\u10d5\u10d8\u10e1 \u10e6\u10d8\u10da\u10d0\u10d9\u10d8 \u10ee\u10d0\u10d6\u10d5\u10d8\u10e1 \u10d3\u10d0\u10e1\u10d0\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10da\u10d0\u10d3."}}}},edit:{toolbar:{actions:{save:{title:"\u10ea\u10d5\u10da\u10d8\u10da\u10d4\u10d1\u10d4\u10d1\u10d8\u10e1 \u10e8\u10d4\u10dc\u10d0\u10ee\u10d5\u10d0.",text:"\u10e8\u10d4\u10dc\u10d0\u10ee\u10d5\u10d0"},cancel:{title:"\u10e0\u10d4\u10d3\u10d0\u10e5\u10e2\u10d8\u10e0\u10d4\u10d1\u10d8\u10e1 \u10d2\u10d0\u10e3\u10e5\u10db\u10d4\u10d1\u10d0, \u10d3\u10d0\u10d0\u10d1\u10e0\u10e3\u10dc\u10d4 \u10e7\u10d5\u10d4\u10da\u10d0 \u10ea\u10d5\u10da\u10d8\u10da\u10d4\u10d1\u10d0.",text:"\u10d2\u10d0\u10e3\u10e5\u10db\u10d4\u10d1\u10d0"},clearAll:{title:"\u10e7\u10d5\u10d4\u10da\u10d0 \u10e0\u10d4\u10d3\u10d0\u10e5\u10e2\u10d8\u10e0\u10d4\u10d1\u10e3\u10da\u10d8 \u10e4\u10d4\u10dc\u10d8\u10e1 \u10d2\u10d0\u10e1\u10e3\u10e4\u10d7\u10d0\u10d5\u10d4\u10d1\u10d0.",text:"\u10d2\u10d0\u10e1\u10e3\u10e4\u10d7\u10d0\u10d5\u10d4\u10d1\u10d0"}},buttons:{edit:"\u10e0\u10d4\u10d3\u10d0\u10e5\u10e2\u10d8\u10e0\u10d4\u10d1\u10d0.",editDisabled:"\u10e4\u10d4\u10dc\u10d4\u10d1\u10d8 \u10d0\u10e0 \u10d0\u10e0\u10d8\u10e1 \u10e0\u10d4\u10d3\u10d0\u10e5\u10e2\u10d8\u10e0\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",remove:"\u10ec\u10d0\u10e8\u10da\u10d0.",removeDisabled:"\u10e4\u10d4\u10dc\u10d4\u10d1\u10d8 \u10d0\u10e0 \u10d0\u10e0\u10d8\u10e1 \u10ec\u10d0\u10e8\u10da\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1."}},handlers:{edit:{tooltip:{text:"\u10d2\u10d0\u10d3\u10d0\u10d8\u10e2\u10d0\u10dc\u10d4\u10d7 \u10ec\u10d5\u10d4\u10e0\u10d4\u10d1\u10d8 \u10d0\u10dc \u10ec\u10d4\u10e0\u10e2\u10d8\u10da\u10d4\u10d1\u10d8 \u10dd\u10d1\u10d8\u10d4\u10e5\u10e2\u10d8\u10e1 \u10e0\u10d4\u10d3\u10d0\u10e5\u10e2\u10d8\u10e0\u10d4\u10d1\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1.",subtext:'\u10d3\u10d0\u10d0\u10ed\u10d8\u10e0\u10d4\u10d7 "\u10d2\u10d0\u10e3\u10e5\u10db\u10d4\u10d1\u10d0", \u10e1\u10d0\u10ec\u10e7\u10d8\u10e1 \u10db\u10d3\u10d2\u10dd\u10db\u10d0\u10e0\u10d4\u10dd\u10d1\u10d0\u10e8\u10d8 \u10d3\u10d0\u10e1\u10d0\u10d1\u10e0\u10e3\u10dc\u10d4\u10d1\u10da\u10d0\u10d3.'}},remove:{tooltip:{text:"\u10d3\u10d0\u10d0\u10ec\u10d9\u10d0\u10de\u10e3\u10dc\u10d4\u10d7 \u10dd\u10d1\u10d8\u10d4\u10e5\u10e2\u10d6\u10d4 \u10ec\u10d0\u10e8\u10da\u10d8\u10e1\u10d7\u10d5\u10d8\u10e1"}}}}},D={draw:{toolbar:{actions:{title:"Tekening annuleren",text:"Annuleren"},finish:{title:"Tekening voltooien",text:"Voltooien"},undo:{title:"Laatst getekende punt verwijderen",text:"Verwijder laatst getekende punt"},buttons:{polyline:"Teken een polygonale lijn",polygon:"Teken een polygoon",rectangle:"Teken een rechthoek",circle:"Teken een cirkel",marker:"Plaats een marker",circlemarker:"Teken een cirkelmarkering"}},handlers:{circle:{tooltip:{start:"Klik en sleep om de cirkel te tekenen."},radius:"Radius"},circlemarker:{tooltip:{start:"Klik op de kaart om de cirkelmarkering te plaatsen."}},marker:{tooltip:{start:"Klik op de kaart om de markering te plaatsen."}},polygon:{tooltip:{start:"Klik om te beginnen met het tekenen van de polygoon.",cont:"Klik om door te gaan met het tekenen van de vorm.",end:"Klik op het eerste punt om dit polygoon te sluiten."}},polyline:{error:"<strong>Fout:</strong> vormranden kunnen niet kruisen!",tooltip:{start:"Klik om te beginnen met het tekenen van een lijn.",cont:"Klik om door te gaan met het tekenen van de lijn.",end:"Klik laatst getekende punt om deze lijn te voltooien."}},rectangle:{tooltip:{start:"Klik en sleep om een rechthoek te tekenen."}},simpleshape:{tooltip:{end:"Laat de muis los om de tekening te voltooien."}}}},edit:{toolbar:{actions:{save:{title:"Wijzigingen opslaan.",text:"Opslaan"},cancel:{title:"Annuleer bewerken en verwijder alle wijzigingen.",text:"Annuleren"},clearAll:{title:"Verwijder alle lagen.",text:"Verwijderd alles"}},buttons:{edit:"Lagen bewerken.",editDisabled:"Geen lagen om te bewerken.",remove:"Verwijder lagen.",removeDisabled:"Geen lagen om te verwijderen."}},handlers:{edit:{tooltip:{text:"Sleep hoeken om te schalen of middenpunt om te verplaatsen.",subtext:"Klik op annuleren om wijzigingen ongedaan te maken."}},remove:{tooltip:{text:"Klik op een vorm om die te verwijderen"}}}}},A={draw:{toolbar:{actions:{title:"Avbryt markering",text:"Avbryt"},finish:{title:"Ferdiggj\xf8r markering",text:"Ferdiggj\xf8r"},undo:{title:"Ta bort siste punkt",text:"Slett siste punkt"},buttons:{polyline:"Tegn flere linjer",polygon:"Tegn en mangekant",rectangle:"Tegn et rektangel",circle:"Tegn en sirkel",marker:"Sett et markeringspunkt",circlemarker:"Tegn et sirkelpunkt"}},handlers:{circle:{tooltip:{start:"Klikk og dra for \xe5 tegne en sirkel."},radius:"Radius"},circlemarker:{tooltip:{start:"Klikk p\xe5 kartet for \xe5 plassere et sirkelpunkt."}},marker:{tooltip:{start:"Klikk p\xe5 kartet for \xe5 markere et punkt."}},polygon:{tooltip:{start:"Klikk for \xe5 tegne et omr\xe5de.",cont:"Klikk for \xe5 fortsette tegningen.",end:"Klikk p\xe5 det f\xf8rste punktet for \xe5 lukke omr\xe5det."}},polyline:{error:"<strong>Error:</strong> kantene kan ikke krysses!",tooltip:{start:"Klikk for \xe5 tegne en linje.",cont:"Klikk for \xe5 fortsette \xe5 tegne linjen.",end:"Kikk siste punkt for \xe5 ferdiggj\xf8re linjen."}},rectangle:{tooltip:{start:"Klikk og dra for \xe5 tegne et rektangel."}},simpleshape:{tooltip:{end:"Slipp museknappen for \xe5 gj\xf8re tegningen ferdig."}}}},edit:{toolbar:{actions:{save:{title:"Lagre endringer.",text:"Lagre"},cancel:{title:"Avbryt redigering og forkast endringer.",text:"Avbryt"},clearAll:{title:"Nullstill alle figurer.",text:"Nullstill alt."}},buttons:{edit:"Rediger figur.",editDisabled:"Ingen figur \xe5 redigere.",remove:"Slett figur.",removeDisabled:"Ingen figur \xe5 slette."}},handlers:{edit:{tooltip:{text:"Dra mark\xf8r for \xe5 redigere.",subtext:"Klikk avbryt for \xe5 angre endringer."}},remove:{tooltip:{text:"Klikk for \xe5 ta bort"}}}}},N={draw:{toolbar:{actions:{title:"Anuluj wyznaczanie",text:"Anuluj"},finish:{title:"Zako\u0144cz wyznaczanie",text:"Zako\u0144cz"},undo:{title:"Usu\u0144 ostatnio wyznaczony punkt",text:"Usu\u0144 ostatni punkt"},buttons:{polyline:"Wyznacz wz\xf3r",polygon:"Wyznacz wielok\u0105t",rectangle:"Wyznacz prostok\u0105t",circle:"Wyznacz ko\u0142o",marker:"Umie\u015b\u0107 znacznik",circlemarker:"Umie\u015b\u0107 okr\u0105g\u0142y znacznik"}},handlers:{circle:{tooltip:{start:"Kliknij i przeci\u0105gnij, aby wyznaczy\u0107 ko\u0142o."},radius:"Promie\u0144"},circlemarker:{tooltip:{start:"Kliknij na map\u0119, aby umie\u015bci\u0107 okr\u0105g\u0142y znacznik."}},marker:{tooltip:{start:"Kliknij na map\u0119, aby umie\u015bci\u0107 znacznik."}},polygon:{tooltip:{start:"Kliknij, aby rozpocz\u0105\u0107 wyznaczanie kszta\u0142tu.",cont:"Kliknij, aby kontynuowa\u0107 wyznaczanie kszta\u0142tu.",end:"Kliknij pierwszy punkt, aby zako\u0144czy\u0107 ten kszta\u0142t."}},polyline:{error:"<strong>B\u0142\u0105d:</strong> odcinki nie mog\u0105 si\u0119 przecina\u0107!",tooltip:{start:"Kliknij, aby rozpocz\u0105\u0107 wyznaczanie lini.",cont:"Kliknij, aby kontynuowa\u0107 wyznaczanie lini.",end:"Kliknij ostatni punkt, aby uko\u0144czy\u0107 lini\u0119."}},rectangle:{tooltip:{start:"Kliknij i przeci\u0105gnij, aby wyznaczy\u0107 prostok\u0105t."}},simpleshape:{tooltip:{end:"Zwolnij przycisk myszy, aby uko\u0144czy\u0107 wyznaczanie."}}}},edit:{toolbar:{actions:{save:{title:"Zapisz zmiany.",text:"Zapisz"},cancel:{title:"Anuluj edytowanie i odrzu\u0107 zmiany.",text:"Anuluj"},clearAll:{title:"Wyczy\u015b\u0107 wszystkie warstwy.",text:"Wyczy\u015b\u0107 wszystko"}},buttons:{edit:"Edytuj warstwy.",editDisabled:"Brak warstw do edycji.",remove:"Usu\u0144 warstwy.",removeDisabled:"Brak warstw do usuni\u0119cia."}},handlers:{edit:{tooltip:{text:"Przeci\u0105gnij uchwyt lub znacznik, aby edytowa\u0107.",subtext:"Kliknij anuluj, aby odrzuci\u0107 zmiany."}},remove:{tooltip:{text:"Kliknij obiekt, aby go usun\u0105\u0107."}}}}},F={draw:{toolbar:{actions:{title:"Cancelar desenho",text:"Cancelar"},finish:{title:"Terminar desenho",text:"Terminar"},undo:{title:"Eliminar \xfaltimo ponto desenhado",text:"Eliminar \xfaltimo ponto"},buttons:{polyline:"Desenhar uma polilinha",polygon:"Desenhar um pol\xedgono",rectangle:"Desenhar um ret\xe2ngulo",circle:"Desenhar um c\xedrculo",marker:"Desenhar un marcador",circlemarker:"Desenhar um marcador circular"}},handlers:{circle:{tooltip:{start:"Clique e arrastrar para desenhar o c\xedrculo."},radius:"Raio"},circlemarker:{tooltip:{start:"Clique no mapa para colocar o marcador circular."}},marker:{tooltip:{start:"Clique no mapa para colocar o marcador."}},polygon:{tooltip:{start:"Clique para come\xe7ar a desenhar a figura.",cont:"Clique para continuar desenhando a figura.",end:"Clique no primeiro ponto para fechar esta figura."}},polyline:{error:"<strong>Erro:</strong> as bordas de uma forma n\xe3o podem atravessar!",tooltip:{start:"Clique para come\xe7ar a desenhar a linha.",cont:"Clique para continuar desenhando a linha.",end:"Clique no \xfaltimo ponto para terminar a linha."}},rectangle:{tooltip:{start:"Clique e arrastrar para desenhar o ret\xe2ngulo."}},simpleshape:{tooltip:{end:"Solte o mouse para terminar o desenho."}}}},edit:{toolbar:{actions:{save:{title:"Guardar altera\xe7\xf5es.",text:"Guardar"},cancel:{title:"Cancelar edi\xe7\xe3o, descarta todas as altera\xe7\xf5es.",text:"Cancelar"},clearAll:{title:"Limpar todas as camadas.",text:"Limpar tudo"}},buttons:{edit:"Editar camadas.",editDisabled:"Nenhuma camada que editar.",remove:"Eliminar camadas.",removeDisabled:"Nenhuma camada que eliminar."}},handlers:{edit:{tooltip:{text:"Arraste os manipuladores ou marcadores para editar a figura.",subtext:"Clique em cancelar para desfazer as altera\xe7\xf5es."}},remove:{tooltip:{text:"Clique em uma figura para remov\xea-la"}}}}},z={draw:{toolbar:{actions:{title:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435",text:"\u041e\u0442\u043c\u0435\u043d\u0430"},finish:{title:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435",text:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c"},undo:{title:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443",text:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0442\u043e\u0447\u043a\u0443"},buttons:{polyline:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u043b\u0438\u043d\u0438\u044e",polygon:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0433\u043e\u043d",rectangle:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a",circle:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0443\u0433",marker:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u043a\u0443",circlemarker:"\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u043a\u0443(\u0432 \u0432\u0438\u0434\u0435 \u043a\u0440\u0443\u0433\u0430)"}},handlers:{circle:{tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0443\u0433."},radius:"\u0420\u0430\u0434\u0438\u0443\u0441"},circlemarker:{tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0443 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0447\u043a\u0438."}},marker:{tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0443 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0447\u043a\u0438."}},polygon:{tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440.",cont:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440.",end:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u043e\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0443\u0440\u0430."}},polyline:{error:"<strong>\u041e\u0448\u0438\u0431\u043a\u0430:</strong> \u043b\u0438\u043d\u0438\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c\u043e\u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f!",tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u044e.",cont:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438.",end:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0442\u043e\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438."}},rectangle:{tooltip:{start:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a."}},simpleshape:{tooltip:{end:"\u041e\u0442\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u044b\u0448\u0438 \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f."}}}},edit:{toolbar:{actions:{save:{title:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.",text:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"},cancel:{title:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043e\u0442\u043a\u0430\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.",text:"\u041e\u0442\u043c\u0435\u043d\u0430"},clearAll:{title:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u043b\u043e\u0438.",text:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0451"}},buttons:{edit:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.",editDisabled:"\u041d\u0435\u0442 \u0441\u043b\u043e\u0451\u0432 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.",remove:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c.",removeDisabled:"\u041d\u0435\u0442 \u0441\u043b\u043e\u0451\u0432 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f."}},handlers:{edit:{tooltip:{text:"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0438\u043b\u0438 \u0442\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0438\u0433\u0443\u0440\u044b.",subtext:'\u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u041e\u0442\u043c\u0435\u043d\u0430", \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0430\u0442\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.'}},remove:{tooltip:{text:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0444\u0438\u0433\u0443\u0440\u0443 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f"}}}}},B={draw:{toolbar:{actions:{title:"Zru\u0161i\u0165 kreslenie",text:"Zru\u0161i\u0165"},finish:{title:"Dokon\u010di\u0165 kreslenie",text:"Dokon\u010di\u0165"},undo:{title:"Zmaza\u0165 posledn\xfd nakreslen\xfd bod",text:"Zmaza\u0165 posledn\xfd bod"},buttons:{polyline:"Nakresli\u0165 \u010diaru",polygon:"Nakresli\u0165 polyg\xf3n",rectangle:"Nakresli\u0165 obd\u013a\u017enik",circle:"Nakresli\u0165 kruh",marker:"Nakresli\u0165 bod",circlemarker:"Nakresli\u0165 kruhov\xfd bod"}},handlers:{circle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili kruh."},radius:"Polomer"},circlemarker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili kruhov\xfd bod."}},marker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili bod."}},polygon:{tooltip:{start:"Kliknite, aby ste za\u010dali kresli\u0165 \xfatvar.",cont:"Kliknite, aby ste nakreslili \u010fal\u0161\xed bod \xfatvaru.",end:"Kliknite na prv\xfd bod, aby ste uzavreli \xfatvar."}},polyline:{error:"<strong>Chyba:</strong> \u010diary sa nesm\xfa pret\xedna\u0165!",tooltip:{start:"Kliknite, aby ste za\u010dali kresli\u0165 \u010diaru.",cont:"Kliknite, aby ste nakreslili \u010fal\u0161\xed bod \u010diary.",end:"Kliknite posledn\xfd bod, aby ste dokon\u010dili \u010diaru."}},rectangle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili \u0161tvorec."}},simpleshape:{tooltip:{end:"Uvo\u013enen\xedm tla\u010didla my\u0161i ukon\u010d\xedte kreslenie."}}}},edit:{toolbar:{actions:{save:{title:"Ulo\u017ei\u0165 zmeny.",text:"Ulo\u017ei\u0165"},cancel:{title:"Ukon\u010di\u0165 \xfapravu, zru\u0161i\u0165 v\u0161etky zmeny.",text:"Zru\u0161i\u0165"},clearAll:{title:"Zmaza\u0165 v\u0161etky vrstvy.",text:"Zmaza\u0165 v\u0161etko"}},buttons:{edit:"Upravi\u0165 vrstvy.",editDisabled:"\u017diadne vrstvy pre \xfapravu",remove:"Zmaza\u0165 vrstvy.",removeDisabled:"\u017diadne vrstvy pre zmazanie."}},handlers:{edit:{tooltip:{text:"Potiahnut\xedm vyzna\u010den\xfdch \u0161tvor\u010dekov, alebo bodov uprav\xedte \xfatvar.",subtext:"Kliknite zru\u0161i\u0165, pre zru\u0161enie zmien."}},remove:{tooltip:{text:"Kliknite na \xfatvar pre jeho zmazanie."}}}}},U={draw:{toolbar:{actions:{title:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043a\u0440\u0435\u0441\u043b\u0435\u043d\u043d\u044f",text:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},finish:{title:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u043a\u0440\u0435\u0441\u043b\u0435\u043d\u043d\u044f",text:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438"},undo:{title:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u043d\u0430\u043d\u0435\u0441\u0435\u043d\u0443 \u0442\u043e\u0447\u043a\u0443",text:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0442\u043e\u0447\u043a\u0443"},buttons:{polyline:"\u041d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043a\u0440\u0438\u0432\u0443",polygon:"\u041d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043c\u043d\u043e\u0433\u043e\u043a\u0443\u0442\u043d\u0438\u043a",rectangle:"\u041d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a",circle:"\u041d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043a\u043e\u043b\u043e",marker:"\u0420\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440",circlemarker:"\u0420\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440-\u043a\u043e\u043b\u043e"}},handlers:{circle:{tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0456 \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u0443\u0439\u0442\u0435 \u0432\u043a\u0430\u0437\u0456\u0432\u043d\u0438\u043a, \u0449\u043e\u0431 \u043d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043a\u043e\u043b\u043e."},radius:"\u0420\u0430\u0434\u0456\u0443\u0441"},circlemarker:{tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u043c\u0430\u043f\u0443, \u0449\u043e\u0431 \u0440\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440-\u043a\u043e\u043b\u043e."}},marker:{tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u043c\u0430\u043f\u0443, \u0449\u043e\u0431 \u0440\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440."}},polygon:{tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u0444\u0456\u0433\u0443\u0440\u0443.",cont:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u043a\u0440\u0435\u0441\u043b\u0435\u043d\u043d\u044f \u0444\u0456\u0433\u0443\u0440\u0438.",end:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0442\u043e\u0447\u043a\u0443, \u0449\u043e\u0431 \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u0438 \u0446\u044e \u0444\u0456\u0433\u0443\u0440\u0443."}},polyline:{error:"<strong>\u041f\u043e\u043c\u0438\u043b\u043a\u0430:</strong> \u0441\u0442\u043e\u0440\u043e\u043d\u0438 \u0444\u0456\u0433\u0443\u0440\u0438 \u043d\u0435 \u043c\u0430\u044e\u0442\u044c \u043f\u0435\u0440\u0435\u0442\u0438\u043d\u0430\u0442\u0438\u0441\u044c!",tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043b\u0456\u043d\u0456\u044e.",cont:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u043a\u0440\u0435\u0441\u043b\u0435\u043d\u043d\u044f \u043b\u0456\u043d\u0456\u0457.",end:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0442\u043e\u0447\u043a\u0443, \u0449\u043e\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u043b\u0456\u043d\u0456\u044e."}},rectangle:{tooltip:{start:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0456 \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u0443\u0439\u0442\u0435 \u0432\u043a\u0430\u0437\u0456\u0432\u043d\u0438\u043a, \u0449\u043e\u0431 \u043d\u0430\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a."}},simpleshape:{tooltip:{end:"\u0412\u0456\u0434\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043c\u0438\u0448\u043a\u0443, \u0449\u043e\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0440\u0438\u0441\u0443\u0432\u0430\u043d\u043d\u044f."}}}},edit:{toolbar:{actions:{save:{title:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0437\u043c\u0456\u043d\u0438.",text:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438"},cancel:{title:"\u041f\u0440\u0438\u043f\u0438\u043d\u0438\u0442\u0438 \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f, \u0441\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0456 \u0437\u043c\u0456\u043d\u0438.",text:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},clearAll:{title:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0432\u0441\u0456 \u0448\u0430\u0440\u0438.",text:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0432\u0441\u0435"}},buttons:{edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0440\u0438.",editDisabled:"\u041d\u0435\u043c\u0430\u0454 \u0448\u0430\u0440\u0456\u0432 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f.",remove:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0448\u0430\u0440\u0438.",removeDisabled:"\u041d\u0435\u043c\u0430\u0454 \u0448\u0430\u0440\u0456\u0432 \u0434\u043b\u044f \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f."}},handlers:{edit:{tooltip:{text:"\u041f\u0435\u0440\u0435\u0442\u044f\u0433\u0443\u0439\u0442\u0435 \u0432\u0430\u0436\u0435\u043b\u0456 \u0430\u0431\u043e \u043c\u0430\u0440\u043a\u0435\u0440 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f \u0444\u0456\u0433\u0443\u0440\u0438.",subtext:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \xab\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438\xbb \u0434\u043b\u044f \u0441\u043a\u0430\u0441\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u043c\u0456\u043d."}},remove:{tooltip:{text:"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u0444\u0456\u0433\u0443\u0440\u0443 \u0434\u043b\u044f \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f"}}}}},$={draw:{toolbar:{actions:{title:"\u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0631\u0633\u0645",text:"\u0627\u0644\u063a\u0627\u0621"},finish:{title:"\u0627\u0646\u0647\u0627\u0621 \u0627\u0644\u0631\u0633\u0645",text:"\u0627\u0646\u0647\u0627\u0621"},undo:{title:"\u0645\u0633\u062d \u0627\u062e\u0631 \u0631\u0633\u0645\u0629",text:"\u0645\u0633\u062d \u0627\u062e\u0631 \u0646\u0642\u0637\u0629"},buttons:{polyline:"\u0631\u0633\u0645 \u062e\u0637",polygon:"\u0631\u0633\u0645 \u0645\u0646\u0637\u0642\u0629",rectangle:"\u0631\u0633\u0645 \u0645\u0633\u062a\u0637\u064a\u0644",circle:"\u0631\u0633\u0645 \u062f\u0627\u0626\u0631\u0629",marker:"\u0631\u0633\u0645 \u0639\u0644\u0627\u0645\u0629",circlemarker:"\u0631\u0633\u0645 \u0639\u0644\u0627\u0645\u0629 \u062f\u0627\u0626\u0631\u0629"}},handlers:{circle:{tooltip:{start:"\u0627\u0636\u063a\u0637 \u0648\u0627\u0633\u062d\u0628 \u0644\u0631\u0633\u0645 \u062f\u0627\u0626\u0631\u0629"},radius:"\u0627\u0644\u0642\u0637\u0631"},circlemarker:{tooltip:{start:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0644\u062e\u0631\u064a\u0637\u0629 \u0644\u0631\u0633\u0645 \u062f\u0627\u0626\u0631\u0629"}},marker:{tooltip:{start:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0644\u062e\u0631\u064a\u0637\u0629 \u0644\u0631\u0633\u0645 \u0646\u0642\u0637\u0629"}},polygon:{tooltip:{start:"\u0627\u0636\u063a\u0637 \u0644\u0628\u062f\u0621 \u0631\u0633\u0645 \u0645\u0646\u0637\u0642\u0629",cont:"\u0627\u0636\u063a\u0637 \u0644\u0627\u0633\u062a\u0645\u0631\u0627\u0631 \u0631\u0633\u0645 \u0645\u0646\u0637\u0642\u0629",end:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0648\u0644 \u0646\u0642\u0637\u0629 \u0644\u0627\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0646\u0637\u0642\u0629"}},polyline:{error:"<strong>\u062e\u0637\u0623:</strong> \u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0642\u0627\u0637\u0639 \u0627\u0644\u062e\u0637\u0648\u0637",tooltip:{start:"\u0627\u0636\u063a\u0637 \u0644\u0628\u062f\u0626 \u0631\u0633\u0645 \u0627\u0644\u062e\u0637",cont:"\u0627\u0636\u063a\u0637 \u0644\u0627\u0633\u062a\u0643\u0645\u0627\u0644 \u0631\u0633\u0645 \u0627\u0644\u062e\u0637",end:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u062e\u0631 \u0646\u0642\u0637\u0629 \u0644\u0644\u0627\u0646\u0647\u0627\u0621"}},rectangle:{tooltip:{start:"\u0627\u0636\u063a\u0637 \u0648\u0627\u0633\u062d\u0628 \u0644\u0631\u0633\u0645 \u0645\u0633\u062a\u0637\u064a\u0644"}},simpleshape:{tooltip:{end:"\u0627\u062a\u0631\u0643 \u0627\u0644\u0645\u0627\u0648\u0633 \u0644\u0644\u0627\u0646\u0647\u0627\u0621"}}}},edit:{toolbar:{actions:{save:{title:"\u062d\u0641\u0638 \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a",text:"\u062d\u0641\u0638"},cancel:{title:"\u0627\u0644\u063a\u0627\u0621 \u0643\u0644 \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a",text:"\u0627\u0644\u063a\u0627\u0621"},clearAll:{title:"\u0645\u0633\u062d \u0643\u0644 \u0627\u0644\u0637\u0628\u0642\u0627\u062a",text:"\u0645\u0633\u062d \u0627\u0644\u0643\u0644"}},buttons:{edit:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0637\u0628\u0642\u0627\u062a",editDisabled:"\u0644\u0627\u062a\u0648\u062c\u062f \u0637\u0628\u0642\u0627\u062a \u0644\u0644\u062a\u0639\u062f\u064a\u0644",remove:"\u0645\u0633\u062d \u0627\u0644\u0637\u0628\u0642\u0627\u062a",removeDisabled:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0637\u0628\u0642\u0627\u062a \u0644\u0644\u0645\u0633\u062d"}},handlers:{edit:{tooltip:{text:"\u0627\u0633\u062d\u0628 \u0644\u0644\u062a\u0639\u062f\u064a\u0644",subtext:"\u0627\u0636\u063a\u0637 \u0627\u0644\u063a\u0627\u0621 \u0644\u0645\u0633\u062d \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"}},remove:{tooltip:{text:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0631\u0633\u0645\u0629 \u0644\u0644\u0645\u0633\u062d"}}}}},V={draw:{toolbar:{actions:{title:"\u53d6\u6d88\u7ed8\u5236",text:"\u53d6\u6d88"},finish:{title:"\u7ed3\u675f\u7ed8\u5236",text:"\u7ed3\u675f"},undo:{title:"\u5220\u9664\u6700\u540e\u4e00\u4e2a\u7ed8\u5236\u70b9",text:"\u5220\u9664\u6700\u540e\u4e00\u4e2a\u70b9"},buttons:{polyline:"\u7ed8\u5236\u6298\u7ebf",polygon:"\u7ed8\u5236\u591a\u8fb9\u5f62",rectangle:"\u7ed8\u5236\u77e9\u5f62",circle:"\u7ed8\u5236\u5706\u5f62",marker:"\u7ed8\u5236\u6807\u5fd7\u7269",circlemarker:"\u7ed8\u5236\u5706\u5f62\u6807\u5fd7\u7269"}},handlers:{circle:{tooltip:{start:"\u5355\u51fb\u5e76\u62d6\u62fd\u7ed8\u5236\u5706\u5f62"},radius:"\u534a\u5f84"},circlemarker:{tooltip:{start:"\u5355\u51fb\u5730\u56fe\u653e\u7f6e\u5706\u5f62\u6807\u5fd7\u7269"}},marker:{tooltip:{start:"\u5355\u51fb\u5730\u56fe\u653e\u7f6e\u6807\u5fd7\u7269"}},polygon:{tooltip:{start:"\u5355\u51fb\u5730\u56fe\u7ed8\u5236\u56fe\u5f62",cont:"\u7ee7\u7eed\u5355\u51fb\u7ed8\u5236\u56fe\u5f62",end:"\u5355\u51fb\u8d77\u59cb\u70b9\u7ed3\u675f\u7ed8\u5236"}},polyline:{error:"<strong>\u9519\u8bef:</strong> \u56fe\u5f62\u8fb9\u7f18\u4e0d\u80fd\u4ea4\u53c9!",tooltip:{start:"\u5355\u51fb\u5730\u56fe\u7ed8\u5236\u6298\u7ebf",cont:"\u7ee7\u7eed\u5355\u51fb\u7ed8\u5236\u4e0b\u4e00\u6bb5\u6298\u7ebf",end:"\u5355\u51fb\u6700\u540e\u4e00\u4e2a\u70b9\u7ed3\u675f\u7ed8\u5236"}},rectangle:{tooltip:{start:"\u5355\u51fb\u5e76\u62d6\u62fd\u7ed8\u5236\u77e9\u5f62"}},simpleshape:{tooltip:{end:"\u677e\u5f00\u9f20\u6807\u7ed3\u675f\u7ed8\u5236"}}}},edit:{toolbar:{actions:{save:{title:"\u4fdd\u5b58\u53d8\u66f4",text:"\u4fdd\u5b58"},cancel:{title:"\u53d6\u6d88\u7f16\u8f91\uff0c\u653e\u5f03\u6240\u6709\u53d8\u66f4",text:"\u53d6\u6d88"},clearAll:{title:"\u6e05\u9664\u6240\u6709\u56fe\u5f62",text:"\u6e05\u9664\u6240\u6709"}},buttons:{edit:"\u7f16\u8f91\u56fe\u5f62",editDisabled:"\u65e0\u56fe\u5f62\u53ef\u7f16\u8f91",remove:"\u5220\u9664\u56fe\u5f62",removeDisabled:"\u65e0\u56fe\u5f62\u53ef\u5220\u9664"}},handlers:{edit:{tooltip:{text:"\u62d6\u62fd\u7ebf\u6bb5\u6216\u6807\u5fd7\u70b9\u4ee5\u7f16\u8f91\u56fe\u5f62",subtext:"\u70b9\u51fb<strong>\u53d6\u6d88</strong>\u6309\u94ae\u64a4\u9500\u53d8\u66f4"}},remove:{tooltip:{text:"\u5355\u51fb\u56fe\u5f62\u4ee5\u79fb\u9664"}}}}},q={draw:{toolbar:{actions:{title:"\xc7izimi iptal et",text:"\u0130ptal"},finish:{title:"\xc7izimi Bitir",text:"Bitir"},undo:{title:"\xc7izilen son noktay\u0131 sil",text:"Son noktay\u0131 sil"},buttons:{polyline:"\xc7oklu \xe7izgi \xe7iz",polygon:"\xc7okgen \xe7iz",rectangle:"Dikd\xf6rtgen \xe7iz",circle:"Yuvarlak \xe7iz",marker:"\u0130\u015faret\xe7i \xe7iz",circlemarker:"Yuvarlak i\u015faret\xe7i \xe7iz"}},handlers:{circle:{tooltip:{start:"Yuvarlak \xe7izmek i\xe7in t\u0131klay\u0131n ve s\xfcr\xfckleyin."},radius:"\xc7ap"},circlemarker:{tooltip:{start:"Yuvarlak i\u015faret\xe7i yerle\u015ftirmek i\xe7in haritaya t\u0131klay\u0131n."}},marker:{tooltip:{start:"\u0130\u015faret\xe7i yerle\u015ftirmek i\xe7in haritaya t\u0131klay\u0131n."}},polygon:{tooltip:{start:"\u015eekil \xe7izmeye ba\u015flamak i\xe7in t\u0131klay\u0131n.",cont:"\u015eekil \xe7izmeye devam etmek i\xe7in t\u0131klay\u0131n.",end:"Bu \u015fekli tamamlamak i\xe7in ilk noktay\u0131 t\u0131klay\u0131n."}},polyline:{error:"<strong>Hata:</strong> \u015fekil kenarlar\u0131 kesi\u015femez!",tooltip:{start:"Hat \xe7izmeye ba\u015flamak i\xe7in t\u0131klay\u0131n.",cont:"Hat \xe7izmeye devam etmek i\xe7in t\u0131klay\u0131n.",end:"Bu hatt\u0131 tamamlamak i\xe7in ilk noktay\u0131 t\u0131klay\u0131n."}},rectangle:{tooltip:{start:"Dikd\xf6rtgen \xe7izmek i\xe7in t\u0131klay\u0131n ve s\xfcr\xfckleyin."}},simpleshape:{tooltip:{end:"\xc7izimi bitirmek i\xe7in fareyi b\u0131rak\u0131n."}}}},edit:{toolbar:{actions:{save:{title:"De\u011fi\u015fiklikleri kaydet.",text:"Kaydet"},cancel:{title:"D\xfczenlemeyi iptal et, t\xfcm de\u011fi\u015fiklikleri \xe7\u0131kar.",text:"\u0130ptal"},clearAll:{title:"T\xfcm katmanlar\u0131 temizle.",text:"Hepsini temizle"}},buttons:{edit:"Katmanlar\u0131 d\xfczenle.",editDisabled:"D\xfczenlenecek katman bulunamad\u0131.",remove:"Katmanlar\u0131 sil.",removeDisabled:"Silinecek katman bulunamad\u0131."}},handlers:{edit:{tooltip:{text:"\xc7izimi d\xfczenlemek i\xe7in k\xf6\u015feleri veya i\u015faret\xe7iyi s\xfcr\xfckleyin.",subtext:"De\u011fi\u015fiklikleri geri almak i\xe7in iptale t\u0131klay\u0131n."}},remove:{tooltip:{text:"\xc7izimi silmek i\xe7in t\u0131klay\u0131n"}}}}},Z={draw:{toolbar:{actions:{title:"Anula\u021bi desenul",text:"Anulare"},finish:{title:"Termina\u021bi desenul",text:"Termina"},undo:{title:"\u0218terge ultimul punct desenat",text:"\u0218terge ultimul punct"},buttons:{polyline:"Desena\u021bi o polilinie",polygon:"Desena\u021bi un poligon",rectangle:"Desena\u021bi un dreptunghi",circle:"Deseneaz\u0103 un cerc",marker:"Desena\u021bi un marker",circlemarker:"Desena\u021bi un marcator de cerc"}},handlers:{circle:{tooltip:{start:"Da\u021bi clic \u0219i trage\u021bi pentru a desena cerc."},radius:"Raz\u0103"},circlemarker:{tooltip:{start:"Da\u021bi clic pe hart\u0103 pentru a plasa marcatorul cercului."}},marker:{tooltip:{start:"Da\u021bi clic pe hart\u0103 pentru a plasa marcatorul."}},polygon:{tooltip:{start:"Da\u021bi clic pentru a \xeencepe desenarea parcelei",cont:"Da\u021bi clic pentru a continua desenarea parcelei",end:"Da\u021bi clic pe primul punct pentru a \xeenchide aceast\u0103 parcelei."}},polyline:{error:"<strong>Eroare:</strong> marginile formei nu se pot traversa!",tooltip:{start:"Da\u0163i clic pentru a \xeencepe s\u0103 desenezi o linie.",cont:"Da\u0163i clic pentru a continua s\u0103 desenezi linia.",end:"Da\u021bi clic pe ultimul punct pentru a ajunge la linia de sosire."}},rectangle:{tooltip:{start:"Da\u021bi clic \u0219i trage\u021bi pentru a desena dreptunghi."}},simpleshape:{tooltip:{end:"Elibera\u021bi mouse-ul pentru a termina desenul."}}}},edit:{toolbar:{actions:{save:{title:"Salveaz\u0103 modific\u0103rile.",text:"Salva\u021bi"},cancel:{title:"Anuleaz\u0103 editarea, anuleaz\u0103 toate modific\u0103rile.",text:"Anulare"},clearAll:{title:"\u0218terge\u021bi toate straturile.",text:"Curata tot"}},buttons:{edit:"Edita\u021bi straturi.",editDisabled:"F\u0103r\u0103 straturi de editat.",remove:"\u0218terge\u021bi straturile.",removeDisabled:"Nu exist\u0103 straturi de \u0219ters."}},handlers:{edit:{tooltip:{text:"Trage\u021bi m\xe2nerele sau marcatorul pentru a edita caracteristica.",subtext:"Da\u021bi clic pe Anulare pentru a anula modific\u0103rile."}},remove:{tooltip:{text:"Da\u021bi clic pe o caracteristic\u0103 pentru a o elimina"}}}}},H=["ar","am","cs","de","en","es","fi","fr","hu","it","ka","nl","no","pl","pt","ru","sk","uk","zh","tr","ro"],G=n(17176),W=n.n(G),Y=n(18178),K=n(30057),X=n(45718),J=n(49582),Q=n(83312),ee=n(33022),te=(n(47608),n(91706),n(72477),n(15522),n(14211),n(94082),n(64981),n(27535),n(96645),n(68509),n(36777)),ne=n(55927),re=n(73042),ie=n(5651);function oe(e){var t,n;return null!==(t=null===(n=e.login.user.settings)||void 0===n?void 0:n.langLocale)&&void 0!==t?t:J.ZW}const ae=()=>{const e=(0,ne.C)(oe);return(0,Y.useEffect)((()=>{var t;const n=H.find((t=>e.includes(t)))||"en";!function(e){var t=T;switch(e.toLocaleLowerCase()){case"de":case"de-at":case"de-be":case"de-ch":case"de-de":case"de-li":case"de-lu":case"de-de.utf-8":case"german":t=M;break;case"en":case"en-us":case"en-ca":case"en-gb":case"en-us.utf-8":case"english":t=T;break;case"ar":case"ar-ae":case"ar-eg":case"arabic":t=$;break;case"fi":case"fi-fi":case"fi-fi.utf-8":case"finnish":t=P;break;case"fr":case"fr-us":case"fr-ca":case"fr-us.utf-8":case"french":t=I;break;case"es":case"es-us":case"es-ca":case"es-us.utf-8":case"spanish":t=E;break;case"sk":case"sk-sk":case"sk-sk.utf-8":case"slovak":t=B;break;case"pl":case"pl-pl":case"pl-pl.utf-8":case"polish":t=N;break;case"pt":case"pt-pt":case"pt-pt.utf-8":case"portuguese":t=F;break;case"uk":case"uk-ua":case"uk-ua.utf-8":case"ukrainian":t=U;break;case"cs":case"cs-cz":case"cs-cz.utf-8":case"czech":t=S;break;case"ru":case"ru-ru":case"ru-ru.utf-8":case"russian":t=z;break;case"ka":case"ka-ka":case"ka-ka.utf-8":case"georgian":t=j;break;case"no":case"no-no":case"no-no.utf-8":case"norwegian":t=A;break;case"am":case"am-et":case"am-et.utf-8":case"amharic":t=C;break;case"nl":case"nl-nl":case"nl-nl.utf-8":case"nl-be":case"nl-be.utf-8":case"dutch":case"belgian":case"flemish":t=D;break;case"it":case"it-it":case"it-ch":case"it-it.utf-8":case"it-ch.utf-8":case"italiano":case"italian":t=R;break;case"hu":case"hu-HU":case"hu-hu":case"hu-HU.utf-8":case"hu-hu.utf-8":case"magyar":case"hungarian":t=O;break;case"zh":case"zh-cn":case"zh-cn.utf-8":case"chinese":t=V;break;case"tr":case"tr-tr":case"tr-tr.utf-8":case"turkish":t=q;break;case"ro":case"ro-ro":case"ro-RO":case"ro-ro.utf-8":case"romanian":t=Z;break;default:throw new Error("[language] not found")}try{L&&L.drawLocal&&(L.drawLocal=t)}catch(C){}}(n);const r=(null===(t=J.Vx.find((t=>t.value===e)))||void 0===t?void 0:t.momentLocale)||J.ZW;W().locale(r)}),[e]),(0,Y.useCallback)((async()=>{try{const{data:t}=await r.default.get(`https://cdn.simplelocalize.io/46579228bf2542a3aa71fb0abffe6a55/_latest/${e}?t=${Date.now()}`);return t}catch(C){(0,re.$K)(X.e)&&(0,X.e)(`Lang key [${e}], Error: ${null===C||void 0===C?void 0:C.message}`)}}),[e])},se=()=>{const e=(0,ne.C)(oe),[t,n]=(0,Y.useState)(Q.NW),r=ae(),i=(0,Y.useRef)({}),o=(0,Y.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("MISSING_TRANSLATION"===e.code)i.current[e.name]||(console.warn(e,...n),i.current[e.name]=e.name);else console.error(e,...n)}),[]);return(0,Y.useEffect)((()=>{r().then((t=>{(0,Q.l6)((0,K.dp)({defaultLocale:J.ZW,locale:e,messages:t,onError:o},Q.Fs)),n(Q.NW)}))}),[r,e,o]),t};function le(){switch((0,ne.C)(oe)){case ee.g.EnUS:return i.Z;case ee.g.Fr:return o.Z;case ee.g.RuRU:return a.Z;case ee.g.PtBr:return g;case ee.g.UkUA:return y.Z;case ee.g.PlPL:return v.Z;case ee.g.RoRO:return b.Z;case ee.g.EnGB:return _.Z;case ee.g.DeDE:return w.Z;case ee.g.HuHU:return x.Z;case ee.g.ViVN:return k.Z}}const ce={br:()=>(0,ie.jsx)("br",{}),b:e=>(0,ie.jsx)(te.ZT,{component:"span",fontWeight:"bold",children:e}),a:e=>{const t=e.join(""),{text:n,attrs:r}=ue(t),{href:i,target:o}=r;return(0,ie.jsx)(te.rU,{target:o||"_blank",href:i,children:n})}},ue=e=>{const t=e.match(/\[ATTR:.+]$/);if(null===t||void 0===t||!t.length)return{text:e,attrs:{}};const n=e.replace(t[0],""),r=t[0].slice(6,-1),i={};return r.split("|").forEach((e=>{const t=e.indexOf("=");if(-1===t)return;const n=e.slice(0,t),r=e.slice(t+1);n&&r&&(i[n]=r)})),{text:n,attrs:i}}},92531:(e,t,n)=>{"use strict";n.d(t,{v:()=>p,x:()=>h});var r=n(18178),i=n(55927),o=n(85251),a=n(20146),s=n(22168),l=n(51821),c=n(5651);const u={refetchCurrentUser:()=>Promise.resolve()},d=(0,r.createContext)(u),p=e=>{let{children:t}=e;const n=(0,i.T)(),p=(0,i.C)(s.dy),h=(0,r.useCallback)((async()=>{await n((0,a.wt)())}),[n]);(0,r.useEffect)((()=>{if(!p||(null===p||void 0===p?void 0:p.id)===l.p.id){(0,o.oi)(o.$$.TOKEN)&&h()}}),[p,h]);const f=(0,r.useMemo)((()=>p?{currentUser:p,currentUserId:null===p||void 0===p?void 0:p.id,refetchCurrentUser:h}:u),[p,h]);return(0,c.jsx)(d.Provider,{value:f,children:t})},h=()=>(0,r.useContext)(d)},9784:(e,t,n)=>{"use strict";n.d(t,{JK:()=>r,be:()=>o,kl:()=>i});const r=(0,n(12581).oM)({name:"monitoring/filters",initialState:{visibility:!1,unreadMessages:0},reducers:{toggleMessagesVisibility:(e,t)=>{e.visibility=t.payload},setUnreadMessagesCount:(e,t)=>{e.unreadMessages=t.payload}}}),{toggleMessagesVisibility:i,setUnreadMessagesCount:o}=r.actions},15767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(81321),i=n(87807),o=n.n(i),a=n(56153),s=n(39475),l=n(17303);class c{}c.login=e=>{const{user:t}=e.response;return{event:"Login","User email":t.email,"User name":t.name,"Is agX user":t.agxSync}};const u=c;"production"===s.default.env&&s.default.metriks.gtmId&&o().initialize({gtmId:s.default.metriks.gtmId});const d=(0,r.Z)(),p=(0,a.J7)((e=>e.type===l.D.LOGIN?u.login:[]),d)},20146:(e,t,n)=>{"use strict";n.d(t,{YR:()=>I,wt:()=>L,kS:()=>R,kw:()=>O,IF:()=>j,R9:()=>P,b1:()=>A,Zy:()=>D,Lj:()=>N});var r=n(66364),i=n(62626),o=n(55650),a=n(43230),s=n(3308),l=n(67541),c=n(85251),u=n(39475),d=n(92193),p=n(79024);const{baseUrl:h,authHeader:f}=u.default,m=r.default.create({baseURL:`${h}services/`,validateStatus:function(e){return e<400},headers:{[f]:(0,c.oi)(c.$$.TOKEN),...(0,d.t)(),...(0,d.a)()?{}:{"x-fs-app-version":u.default.app_version}}});m.interceptors.request.use((e=>{var t;const n=(0,l.Z)();return e.headers=null!==(t=e.headers)&&void 0!==t?t:{},e.headers["X-Request-ID"]=n,e.headers["X-Correlation-ID"]=n,e})),m.interceptors.request.use(p.e0),m.interceptors.response.use(p.jv,(e=>Promise.reject((0,p.jv)(e)))),m.interceptors.response.use(p.RN,(function(e){return Promise.reject((0,p.FQ)(e))}));const g=m;var y=n(95853),v=n(37772),b=n(45718),_=n(49582),w=n(5229),x=n(62793),k=n(90826),C=n(50761),S=n(39670),M=n(22168),T=n(17303);const E=e=>{switch(e.config.baseURL){case"/api/v1/":return(0,s.Z)(e.config).then(e.resolve).catch(e.reject);case"/services/":return g(e.config).then(e.resolve).catch(e.reject);default:return(0,r.default)(e.config).then(e.resolve).catch(e.reject)}},P=(e,t)=>n=>{t&&S.Z.login(null===e||void 0===e?void 0:e.user,t),n({type:T.D.LOGIN,response:e})},I=(e,t)=>(n,r)=>o.z9.authenticate(e).then((async e=>{let{data:i}=e;const a=i.result.token,s=i.result.user;if((0,c.yP)(c.$$.TOKEN,a),a&&s.active){const e=r(),{isWorkspaceMrv:i}=(0,k.Ex)();if(i&&e.login.isImpersonated){const n=(0,M.dy)(e);if(t&&null!==n&&void 0!==n&&n.id&&"new"!==n.id){const e=await o.eV.impersonateProducer(t,n.id);(0,c.yP)(c.$$.TOKEN,e.data.result)}}else{const{data:{result:e}}=await o.Wj.getProfile(),t=(0,c.oi)(c.$$.LANG);null!==t&&_.mv.includes(t)&&e.user.settings&&!e.user.settings.langLocale&&(e.user.settings.langLocale=t),n(P(e,"Login form"))}}else(0,y.c)({title:(0,w.t)({id:"note.info",defaultMessage:"Info"}),message:(0,w.t)({id:"notActiveAccount",defaultMessage:"Your account is not active, please contact support@regrow.ag"}),type:"info",autoClose:3e4});const l=r().global.sessionExpiredRequests;l.forEach((e=>e.config.headers["x-access-token"]=a)),l.forEach(E),n((0,v.hE)(!1))})).catch((e=>{var t;(0,a.v)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.result)||(0,b.e)(`login error = ${JSON.stringify(e)}`)})),O=(e,t)=>n=>o.z9[`${e}Auth`]?o.z9[`${e}Auth`](t).then((e=>{let{data:t}=e;return t.result.user&&t.result.user.signupUUID?n((0,i.VF)(`/sign-up/${t.result.user.signupUUID}/g`)):t.result.user.active&&((0,c.yP)(c.$$.TOKEN,t.result.token),n((0,x.ZO)(!0)),n(P(t.result,"oAuth"))),t})).catch((t=>(0,b.e)(`oAuthLogin(), source=${e}, err = ${t}`))):Promise.reject("Undefined source"),L=()=>e=>new Promise(((t,n)=>{if(!(0,c.oi)(c.$$.TOKEN))return n("No token set");o.Wj.getProfile().then((async r=>{let{data:i,status:o}=r;if(401===o)return n(401);if(i.result)e(P(i.result,"Revalidate login"));else{if(200===o)return;(0,b.e)(`checkAuth() err = status: ${o}, data: ${i}`)}t(i)})).catch((e=>{(0,b.e)(`checkAuth() err = ${e}`),n(e)}))})),R=()=>async e=>{try{const t=(0,c.oi)(c.$$.TOKEN);t&&await o.z9.logout(t),(0,c.cW)(c.$$.TOKEN),S.Z.logout(),e({type:T.D.LOGOUT}),e((0,x.ZO)(!0)),(0,C.TC)()}catch(t){}},j=e=>t=>o.z9.emailResetPassword(e).then((e=>{let{data:t}=e;return t.result})).catch((e=>{var t,n;return"Email address not found"!==(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.result)&&(0,b.e)(`sendEmailResetPassword() err = ${e}`),Promise.reject(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.result)})),D=e=>()=>o.z9.updateUserPassword(e).then((e=>{let{data:t}=e;return(0,y.c)({title:(0,w.t)({id:"note.success",defaultMessage:"Success"}),message:(0,w.t)({id:"Password was changed.",defaultMessage:"Password was changed."}),type:"success"}),t})).catch((e=>(0,b.e)(`updateUserPassword() err = ${e}`))),A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r=>o.Wj.updateProfileSettings(e,n).then((n=>{let{data:i}=n;return!1!==t&&(0,y.c)({title:(0,w.t)({id:"note.success",defaultMessage:"Success"}),message:t||(0,w.t)({id:"Profile was updated.",defaultMessage:"Profile was updated."}),type:"success"}),r({type:T.D.UPDATE_USER_SETTINGS,data:e}),i})).catch((e=>(0,b.e)(`setProfileSettings() err = ${e}`)))},N=e=>t=>o.Wj.update(e).then((n=>{let{data:r}=n;return t({type:T.D.UPDATE_USER_DATA,data:e}),setTimeout((()=>{(0,y.c)({title:(0,w.t)({id:"note.success",defaultMessage:"Success"}),message:(0,w.t)({id:"Profile was updated.",defaultMessage:"Profile was updated."}),type:"success"})}),2e3),r})).catch((e=>(0,b.e)(`updateUserProfile() err = ${e}`)))},3844:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(18178);var r=n(84917),i=n(49363),o=n(5651);const a=r.ZP.div`
  background: url(${e=>{let{banner:t}=e;return t||i}});
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  height: 100vh;
  width: 100vw;
`,s=r.ZP.div`
  position: absolute;
  width: 100vw;
  min-height: 100vh;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
`,l=e=>{let{children:t,banner:n}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)(a,{banner:n}),(0,o.jsx)(s,{children:t})]})}},22168:(e,t,n)=>{"use strict";n.d(t,{$6:()=>T,B5:()=>_,DC:()=>M,FP:()=>I,I_:()=>m,Im:()=>w,Jt:()=>E,Kn:()=>C,OP:()=>y,QK:()=>S,XG:()=>v,dy:()=>f,io:()=>g,kG:()=>x,lI:()=>L,m8:()=>b,p9:()=>O,rf:()=>k,vn:()=>R,yX:()=>h});var r=n(99730),i=n(26618),o=n.n(i),a=n(46386),s=n(75877),l=n(67925),c=n(96765),u=n(49346),d=n(44530),p=n(96543);const h=e=>(0,l.ci)(e.login.user.perm),f=e=>e.login.user,m=e=>f(e).email,g=e=>e.login.user.settings.langLocale,y=(0,r.P1)([f],(e=>null===e||void 0===e?void 0:e.settings)),v=(0,r.P1)([g],(e=>(0,c.wS)(e))),b=(0,r.P1)([f,(e,t)=>t],((e,t)=>e.name?`${e.name}${t?` ${e.surname}`:""}`:e.email)),_=(0,r.P1)([f],(e=>{const{name:t,surname:n,email:r}=e,i=n?`${(0,d.fm)(n.charAt(0))}.`:"";return t.length?`${t} ${i}`:r})),w=e=>e.login.isImpersonated,x=e=>e.login.impersonatorUserId,k=(0,r.P1)([h,e=>e.login.isImpersonated&&!e.login.isImpersonatorNotSuperAdmin],((e,t)=>e||t)),C=(0,r.P1)([h,e=>f(e).groupIds,s.pD,s.kj],((e,t,n,r)=>Boolean(e||!r&&(null===n||void 0===n?void 0:n.length)||(null===t||void 0===t?void 0:t.length)))),S=e=>e.login.user.settings.si_tool_access,M=((0,r.P1)([y],(e=>e.si_saved_filters||{})),(0,r.P1)([S],(e=>e!==p.V.Off)),e=>e.login.user.settings.measurement),T=(0,r.P1)([M],(e=>e===u.Ug.MetricUnits?`${a.N} ha`:`${o()(a.N).from("ha").to("ac").toFixed()} ac`)),E=e=>e.login.isAuth,P=e=>{var t;return null===(t=f(e))||void 0===t?void 0:t.workspaces},I=e=>{var t;return null===(t=P(e))||void 0===t?void 0:t.si},O=e=>{var t;return null===(t=P(e))||void 0===t?void 0:t.mrv},L=e=>{var t;return null===(t=y(e))||void 0===t?void 0:t.mostRecentWorkspace},R=e=>{var t;return null===(t=f(e))||void 0===t?void 0:t.id}},17303:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});let r=function(e){return e.LOGIN="login/LOGIN",e.LOGOUT="login/LOGOUT",e.ERROR="login/ERROR",e.UPDATE_USER_SETTINGS="login/update-user-settings",e.UPDATE_USER_DATA="user/update-user-settings",e.UPDATE_USER_WORKSPACES="user/update-user-workspaces",e}({})},62793:(e,t,n)=>{"use strict";n.d(t,{ZO:()=>T,l7:()=>C,Fq:()=>_,NV:()=>w,Bc:()=>O,lm:()=>k,fO:()=>E,UH:()=>D,tM:()=>R,n1:()=>b,k4:()=>j,bX:()=>P,q2:()=>I,hT:()=>M,OT:()=>S,mX:()=>L});var r=n(12581),i=n(55650),o=n(95853),a=n(27019),s=n(39965),l=n(59357),c=n(77140),u=n(89805);const d=()=>{const e=window.location.href.match(/\/project\/(\d+)/);return e?Number(e[1]):null};var p=n(45718),h=n(5229),f=(n(22168),n(6856)),m=n(34680),g=(n(96543),n(95603)),y=(n(39670),n(99987)),v=n(5395);const b=(e,t)=>({type:y.M.MAP_SAVE_FIELDS,farmId:e,fieldsById:t}),_=(0,r.hg)("map/loadFarmsFields",(async(e,t)=>{const n=(0,m.JV)(t.getState()),r=n?(0,m.qz)(t.getState(),n.id):[];return await Promise.all(e.map((e=>t.dispatch(x(e,r)))))})),w=(0,r.hg)("map/loadFarmsFields",(async(e,t)=>{const n=(0,a.rm)(t.getState());if(!e.length)return;const r=(0,m.JV)(t.getState()),i=r?(0,m.qz)(t.getState(),r.id):[],o=await Promise.all(e.map((e=>t.dispatch(x(e,i))))),s=o.flatMap(((t,r)=>{const i=e[r],o=[];return Object.values(t).forEach((e=>{null!==n&&void 0!==n&&n[e.MD5]||!i||o.push({farmId:i,fieldId:e.ID,md5:e.MD5})})),o}));return s.length&&await t.dispatch(O(s)),o})),x=(e,t)=>n=>{const r=d();n((0,s.CI)(s.jB.fieldsData,s.qb.Pending));const o={};return(!t&&r?i.eV.getProject(r).then((e=>{var t;return null===(t=e.data[0])||void 0===t?void 0:t.fields})):Promise.resolve(t)).then((t=>i.pZ.getFileList(e,{includeDeleted:!0,projectId:r}).then((r=>{let{data:i}=r;n((0,s.CI)(s.jB.fieldsData,s.qb.Done));const a=null!==t&&void 0!==t&&t.length?i.result.fields.filter((e=>{const n=!(null===t||void 0===t||!t.find((t=>t.fs_field_id===e.FieldID)));return!(e.DeletedAt&&!n)})):i.result.fields;for(const e of a)o[e.ID]=e;return n(((e,t)=>({type:y.M.MAP_REPLACE_FIELDS,farmId:e,fieldsById:t}))(e,o)),null!==t&&void 0!==t&&t.length&&n(f.E.setMRVEnrolledFields({mrvFields:t})),o})).catch((t=>((0,p.e)(`Couldn't loadFields2 for farmId: ${e}. Error: ${t}`),n((0,s.CI)(s.jB.fieldsData,s.qb.Done)),o)))))},k=e=>(t,n)=>{const r=d();return t(T()),t((0,s.CI)(s.jB.loadFields,s.qb.Pending)),(r?i.eV.getProject(r):Promise.resolve({data:[]})).then((o=>i.pZ.getFileList(e,{includeDeleted:!0,projectId:r}).then((e=>{var r,i,a;let{data:s}=e;const l=null!==(r=o.data)&&void 0!==r&&r.length?s.result.fields.filter((e=>{var t,n;const r=!(null===(t=o.data[0])||void 0===t||null===(n=t.fields)||void 0===n||!n.find((t=>t.fs_field_id===e.FieldID)));return!(e.DeletedAt&&!r)})):s.result.fields,c=(l?(0,g.w0)(l,"Name","string"):[]).filter((e=>!(e.DeletedAt&&n().carbon.enrolledFields[e.ID]))),u={};for(const t of c)u[t.ID]=t;null!==(i=o.data[0])&&void 0!==i&&null!==(a=i.fields)&&void 0!==a&&a.length&&t(f.E.setMRVEnrolledFields({mrvFields:o.data[0].fields})),t({type:y.M.MAP_LOAD_FIELDS,fields:c,group:s.result.group})})).catch().finally((()=>{t((0,s.CI)(s.jB.loadFields,s.qb.Done))}))))},C=e=>t=>{t({type:y.M.MAP_HIGHLIGHT_FIELD,fieldId:e})},S=e=>((0,c.m)("tableView",e?"true":null),{type:y.M.MAP_TOGGLE_WHOLE_TABLE_VIEW,value:e}),M=e=>(t,n)=>{(0,l.zn)(n(),s.iR.addNewField)&&e||t({type:y.M.MAP_TOGGLE_BAR,value:e})},T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:y.M.MAP_HARD_CLEAR_STATE,setInitialState:e}},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>Promise.all(t.map((t=>i.pZ.removeKMLGroup(e,t)))).then((()=>{(0,o.c)({title:(0,h.t)({id:"note.success",defaultMessage:"Success"}),message:(0,h.t)({id:"Field was removed.",defaultMessage:"Field was removed."}),type:"success"}),n({type:y.M.MAP_DELETE_FIELD,kmlId:t,farmId:e}),n((0,s.qO)(s.iR.deleteDialog,!1))})).catch()},P=(e,t)=>n=>{n({type:y.M.MAP_TOGGLE_DRAWING_MODE,value:e,layerType:t}),e?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polygon";try{v.toolbar._toolbars.draw._modes[e]&&setTimeout((()=>{var t,n,r,i,o;return null===v.toolbar||void 0===v.toolbar||null===(t=v.toolbar._toolbars)||void 0===t||null===(n=t.draw)||void 0===n||null===(r=n._modes)||void 0===r||null===(i=r[e])||void 0===i||null===(o=i.handler)||void 0===o?void 0:o.enable()}),0)}catch(t){}}(t):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polygon";try{var t,n,r,i,o;v.toolbar._toolbars.draw._modes[e]&&(null===v.toolbar||void 0===v.toolbar||null===(t=v.toolbar._toolbars)||void 0===t||null===(n=t.draw)||void 0===n||null===(r=n._modes)||void 0===r||null===(i=r[e])||void 0===i||null===(o=i.handler)||void 0===o||o.disable(),setTimeout((()=>{var t,n,r,i,o;return null===v.toolbar||void 0===v.toolbar||null===(t=v.toolbar._toolbars)||void 0===t||null===(n=t.draw)||void 0===n||null===(r=n._modes)||void 0===r||null===(i=r[e])||void 0===i||null===(o=i.handler)||void 0===o?void 0:o.disable()}),0))}catch(a){}}(t)},I=(e,t)=>n=>{n({type:y.M.MAP_TOGGLE_EDITING_MODE,value:e,fieldId:t})},O=e=>async t=>{const n=e.map((e=>e.md5));t((0,s.CI)(s.jB.fieldGeometries,s.qb.Pending));const r=await i.iP.getFieldGeometriesByMD5s(n).then((e=>{let{data:t}=e;return t.data}));if(t((0,s.CI)(s.jB.fieldGeometries,s.qb.Done)),!r)return void(0,p.e)(`No field geometries for md5s ${n} at data2/fields api`);const o={};return e.forEach((e=>{const t=r[e.md5];t&&(0,u.Vm)(t,e.farmId,e.fieldId),o[e.md5]=e.fieldId})),t(L(r)),r},L=e=>({type:y.M.MAP_SET_FIELD_GEOMETRIES,fieldGeometries:e}),R=(e,t,n,r)=>a=>{const s=d();return Promise.all(r.map((r=>i.pZ.saveData(n,r,{[e]:t},s)))).then((()=>{a({type:y.M.MAP_BULK_CHANGE_FIELD_DATA,fieldData:{[e]:t},selectedKmlIds:r,farmId:n}),(0,o.c)({title:(0,h.t)({id:"note.success",defaultMessage:"Success"}),message:(0,h.t)({id:"{type} was successfully saved",defaultMessage:"{type} was successfully saved"},{type:e}),type:"success"})})).catch()},j=(e,t)=>({type:y.M.SET_LOCATION_MARKER_COORDINATES,markerPosition:[e,t]}),D=(e,t,n)=>({type:y.M.REPLACE_FIELD_AT_FIELDS_BY_FARM_ID,farmId:e,fieldId:t,field:n})},99987:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r=function(e){return e.MAP_FARM_UPDATE="map/farm-update",e.MAP_FARM_DELETE="map/farm-delete",e.MAP_LOAD_FIELDS="map/load-fields",e.MAP_SAVE_FIELDS="map/save-fields",e.MAP_REPLACE_FIELDS="map/replace-fields",e.MAP_HARD_CLEAR_STATE="map/hard-clear-state",e.MAP_TOGGLE_DRAWING_MODE="map/toggle-drawing-mode",e.MAP_TOGGLE_EDITING_MODE="map/toggle-edit-mode",e.MAP_SET_FIELD_GEOMETRIES="map/set-field-geometries",e.MAP_HIGHLIGHT_FIELD="map/highlight-field",e.MAP_SET_FEATURE="map/set-feature",e.MAP_TOGGLE_BAR="map/toggle-map-bar",e.MAP_TOGGLE_WHOLE_TABLE_VIEW="map/toggle-whole-table-view",e.MAP_BULK_CHANGE_FIELD_DATA="map/bulk-change-field-data",e.MAP_DELETE_FIELD="map/delete-field",e.REPLACE_FIELD_AT_FIELDS_BY_FARM_ID="map/REPLACE_FIELD_AT_FIELDS_BY_FARM_ID",e.SET_LOCATION_MARKER_COORDINATES="map/set-location-marker-coordinates",e}({})},4921:(e,t,n)=>{"use strict";n.d(t,{DD:()=>h,Ns:()=>m,OZ:()=>a,Vt:()=>u,Yl:()=>o,_d:()=>p,c8:()=>d,ck:()=>s,eB:()=>f});var r=n(14291),i=n(58146);const o=15,a=["supply_shed","state","crd","county","huc8","huc10","huc12"],s={supply_shed:"supply sheds",state:"states",county:"counties",crd:"CRD",huc8:"huc8",huc10:"huc10",huc12:"huc12"},l={[i.CZ.Perennial]:"#ffbb00",[i.CZ.WinterCommodity]:"#375e97",[i.CZ.CoverCrop]:"#37681c",[i.CZ.NoCoverCrop]:"#C2C2C2"},c=(i.CZ.Perennial,i.CZ.Perennial,i.CZ.WinterCommodity,i.CZ.WinterCommodity,i.CZ.CoverCrop,i.CZ.CoverCrop,i.CZ.NoCoverCrop,i.CZ.NoCoverCrop,{[i.OV.NoTill]:"No till",[i.OV.Conventional]:"Conventional till",[i.OV.Reduced]:"Reduced till"}),u=(i.OV.NoTill,i.OV.NoTill,i.OV.Reduced,i.OV.Reduced,i.OV.Conventional,i.OV.Conventional,i.OV.NoTill,i.OV.Conventional,i.OV.Reduced,["carbon","cover_crops","grower_demographics","tillage_practices","ghg","soc_sequestration","crop_yield","fertilizer","ef"]),d={carbon:["carbon_all","carbon_all_corn","carbon_corn_rotation","total_arable_area_ac"],cover_crops:["cc_area_ac","total_arable_area_ac"],grower_demographics:["cc_operations_nb","count_operations"],tillage_practices:["tillage","total_arable_area_ac"],ghg:["ghg","carbon_area_ac"],soc_sequestration:["soc","carbon_area_ac"],crop_yield:["crop_yield","kpi_area_ha"],fertilizer:["fertilizer","kpi_area_ha"],ef:["ef"]},p={carbon:"Abatement potential",cover_crops:"Cover crops",grower_demographics:"Grower demographics",tillage_practices:"Tillage practices",ghg:"GHG",soc_sequestration:"SOC Sequestration",crop_yield:"Yield",fertilizer:"Fertilizer",ef:"Emissions factor"},h=[2015,2016,2017,2018,2019,2020,2021,2022],f={1:"California Central Valley",2:"Great Lakes/Corn Belt",3:"Mid-Atlantic",4:"Mountain West",5:"Northern Plains",6:"Quebec",7:"Southern Plains",8:"Western Canada"},m=(0,r.Os)(f).reduce(((e,t)=>({...e,[t]:{name:f[t],id:t}})),{})},58146:(e,t,n)=>{"use strict";n.d(t,{CZ:()=>i,OV:()=>a,Us:()=>o,om:()=>r});let r=function(e){return e.CoverCrops="coverCrops",e.Tillage="tillage",e.GHG="ghg",e.SOC="soc",e.Yield="yield",e.Fertilizer="fertilizer",e.EmissionsFactor="ef",e}({}),i=function(e){return e.Perennial="Perennial",e.WinterCommodity="WinterCommodity",e.CoverCrop="CC",e.NoCoverCrop="NoCC",e}({});let o=function(e){return e.FETCH_STATES_LIST="si/fetch-states-list",e.FETCH_CRD_LIST="si/fetch-crd-list",e.FETCH_COUNTIES_LIST="si/fetch-counties-list",e.FETCH_HUC8_LIST="si/fetch-huc8-list",e.FETCH_HUC10_LIST="si/fetch-huc10-list",e.FETCH_HUC12_LIST="si/fetch-huc12-list",e.FETCH_AVAILABLE_AREA="si/fetch-available-area",e.FETCH_METRICS="si/fetch-metrics",e.FETCH_USER_POLICY="si/fetch-user-policy",e.FETCH_SUMMER_CROP_TYPES="si/fetch-summer-crop-types",e.FETCH_GEOMETRIES="si/fetch-geometries",e.SET_ACTIVE_GEOMETRIES_FILTER="si/set-active-geometries-filter",e.SELECT_ACTIVE_GEOMETRIES="si/select-active-geometries",e.SET_STATE_IDS_REQUEST_PARAM="si/set-state-ids-request-param",e.SET_SUPPLY_SHEDS_REQUEST_PARAM="si/set-supply-sheds-request-param",e.SET_AGG_LEVEL="si/set-agg-level",e.SET_AREA_UNITS="si/set-area-units",e.SET_CHART_TAB="si/set-chart-tab",e.SET_CROP_CHART_FILTER_ACTION="si/set-crop-chart-filter-action",e.SET_FILTER="si/set-filter",e.SET_CC_CARD_FILTER="si/set-cc-card-filter",e.SET_FILTER_KEY="si/set-filter-key",e.SET_FILTER_YEARS="si/set-filter-years",e.SET_HIGHLIGHT_GEOMETRY="si/set-highlight-geometry",e.TILLAGE_SET_SELECTED_PRACTICE="si/tillage/set-selected-practice",e.TILLAGE_SET_RANGE_VALUES="si/tillage/set-range-values",e.SET_SOC_FILTER="si/set-soc-filter",e.SET_GHG_FILTER="si/set-ghg-filter",e.SET_YIELD_FILTER="si/set-yield-filter",e.SET_EMISSIONS_FACTOR_FILTER="si/set-emissions-factor-filter",e.SET_FERTILIZERS_FILTER="si/set-fertilizers-filter",e}({}),a=function(e){return e.Conventional="1",e.Reduced="2",e.NoTill="3",e}({})},33506:(e,t,n)=>{"use strict";n.d(t,{mX:()=>r,qK:()=>i,s5:()=>o});const r=e=>{if(!e)return!1;const[t,n]=e;return Boolean(t&&n)},i=e=>{let t=0;return t=5===String(e).length&&0===String(e).indexOf("9")?parseInt(`999${String(e).slice(0,-2)}`,10):parseInt(String(e).slice(0,-3),10),t},o=e=>parseInt(e.toString(),10)},31962:(e,t,n)=>{"use strict";n.d(t,{_9:()=>c,fJ:()=>u,rB:()=>l});n(18178);var r=n(12870),i=n(66870),o=n(5395),a=n.n(o);!function(){const e=a().GridLayer.prototype._initTile;a().GridLayer.include({_initTile:function(t){e.call(this,t);const n=this.getTileSize();t.style.width=`${n.x+1}px`,t.style.height=`${n.y+1}px`}})}();var s=n(5651);const l="pk.eyJ1IjoiZ3JlYXRvem1lbiIsImEiOiJjaXNqemZkZ2cwMDNtMnNuNTI4bnY2YXR5In0.uqqfcJnOLENaCge8RTlGJA",c=`https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token=${l}`,u=e=>{let{children:t,trackResize:n=!1,onRefMap:o,className:a="",hasFarms:l=!1,eventHandlers:u,preferCanvas:d=!1}=e;return(0,s.jsxs)(r.h,{zoomControl:!1,trackResize:n,cursor:!0,id:"fluro-map",editable:!0,whenCreated:o,className:`map-v2__main ${a}`,center:[0,0],tap:!1,keyboard:!1,zoom:l?14:3,zoomDelta:1.1,zoomSnap:0,preferCanvas:d,children:[(0,s.jsx)(i.I,{attribution:"Regrow",id:"satellite-streets-v9",url:c,maxZoom:20,subdomains:["otile1","otile2","otile3","otile4"],minZoom:1.5,eventHandlers:u}),t]})}},76556:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});const r=e=>JSON.parse(JSON.stringify(e))},8242:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=48},4383:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=function(e){return e.Mrv="mrv",e.Si="si",e.Ci="ci",e}({})},62104:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(18178),i=n(45581),o=n(90826);function a(e){const t=(0,i.TH)(),n=(0,r.useMemo)((()=>{const{workspace:e,isWorkspaceMrv:n,isWorkspaceSi:r}=(0,o.Ex)(t.pathname);return{workspace:e,workspaceLink:o.Yd[e],isWorkspaceMrv:n,isWorkspaceSi:r}}),[t.pathname]);return void 0!==e?n[e]:n}},90826:(e,t,n)=>{"use strict";n.d(t,{Cw:()=>s,Ex:()=>u,Lg:()=>d,MF:()=>a,Yd:()=>l,oq:()=>c,wZ:()=>o});var r=n(39475),i=n(4383);const o=[i.j.Mrv,i.j.Si],a=e=>o.includes(e),s={mrv:"MRV",si:"Sustainability Insights",ci:"Crop Insights"},l={mrv:`/${r.Lw}`,si:`/${r.SI}`,ci:`/${r.Lw}`},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.pathname;switch(!0){case e.startsWith(l.mrv):return i.j.Mrv;case e.startsWith(l.si):return i.j.Si;default:return i.j.Mrv}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.pathname;const t=c(e);return{workspace:t,isWorkspaceMrv:t===i.j.Mrv,isWorkspaceSi:t===i.j.Si}},d=e=>{const t=e[c()];return void 0!==t?t:e.other}},26381:(e,t,n)=>{"use strict";n.d(t,{M:()=>l});var r=n(18178),i=n(62213),o=n(64510),a=n(45718),s=n(91350);function l(e,t){const n=(0,r.useRef)(!1),l=(0,r.useRef)(!1),c=(0,o.D)(e),u=(0,o.D)(t),{mutateRecentPrograms:d,loadingRecentPrograms:p}=(0,s.E)();(0,r.useEffect)((()=>{async function r(e,t){try{n.current=!0;const{data:r}=await i.ZP.addRecentProgram({program_id:e,project_id:t});d(r,!1)}catch(r){(0,a.e)(r)}finally{n.current=!1}}!e||p||n.current||l.current&&c===e&&u===t?l.current=!1:(r(e,t||null),l.current=!0)}),[p,e,t,d])}},60323:(e,t,n)=>{"use strict";n.d(t,{EM:()=>h,Ze:()=>m,hn:()=>f,nh:()=>g});var r=n(18178),i=n(54697),o=n(55927),a=n(55650),s=n(45718),l=n(92531),c=n(22168),u=n(16148),d=n(34680);const p="mrv/features/public";let h=function(e){return e.BOOLEAN="boolean",e.PERCENTAGE="percentage",e.PROGRAM="program",e.USER="user",e}({});const f={EXPLORE_API:"Explore API",PROGRESS_BLOCKING_VALIDATION:"Progress-blocking validations",NEW_ALERTS:"New Alerts",SIMULATIONS_OUTCOMES:"Simulations Outcomes",DUPLICATE_FIELD_DATA:"Duplicate Field Data",DUPLICATE_FIELD_DATA_PER_SINGLE_PROJECT:"Duplicate Field Data Per Single Project",DUPLICATE_FIELD_DATA_ACROSS_GROUPS:"Duplicate Field Data Across Groups",ADD_PRODUCER_DIRECTLY:"Add Producer Directly",...u.uu,ALLOW_ENROLMENT_STAGE_PROGRESS_WITHOUT_COMPLETION:"Allow enrolment stage progress without completion",MRV_DASHBOARD_FILTER_BAR:"Enable filter bar for applicable MRV Dashboard charts",FMS_ENABLED_PROGRAM:"Enable FMS Import for Programs"},m=()=>{const{data:e,mutate:t}=(0,i.ZP)("mrv/features",(()=>a.eV.features.featuresDoList().then((e=>e.data))));return{addFeature:async e=>{const n=await a.eV.features.featuresDoCreate(e).then((e=>e.data));return await t(),await(0,i.JG)(p),n},deleteFeature:async e=>{await a.eV.features.featuresDoDelete(e),await t(),await(0,i.JG)(p)},features:e,getFeature:t=>null===e||void 0===e?void 0:e.find((e=>e.id===t)),mutate:t,updateFeature:async e=>{const n=await a.eV.features.featuresDoPartialUpdate(e).then((e=>e.data));return await t(),await(0,i.JG)(p),n}}},g=e=>{const{data:t,isLoading:n}=(0,i.ZP)(p,(()=>a.eV.features.featuresDoListPublic().then((e=>e.data)))),u=(0,r.useMemo)((()=>null===t||void 0===t?void 0:t.find((t=>t.feature_name===e))),[t,e]),f=(0,o.C)(d.$k),{currentUserId:m}=(0,l.x)(),g=(0,o.C)(c.kG);return(0,r.useMemo)((()=>{if(n||!u)return!1;switch(u.strategy){case h.BOOLEAN:return"true"===u.strategy_value;case h.PERCENTAGE:return!1;case h.PROGRAM:if(f){const e=u.strategy_value.split(","),t=f.toString();return e.includes(t)}return!1;case h.USER:{if(!m&&!g)return!1;const e=null===m||void 0===m?void 0:m.toString(),t=null===g||void 0===g?void 0:g.toString();return!!u.strategy_value.split(",").find((n=>[e,t].includes(n)))}default:return(0,s.e)(`Feature flag's implementation not found: ${e}`),!1}}),[m,u,e,g,n,f])}},66791:(e,t,n)=>{"use strict";n.d(t,{C1:()=>f,E6:()=>m,IT:()=>c,Ni:()=>d,UB:()=>h,zE:()=>p});var r=n(18178),i=n(55927),o=n(14291),a=n(34680),s=n(37682),l=n(5651);const c=(0,r.createContext)({hasPermissionsLoaded:!1,allPermissions:[...Object.values(s.aR)],programRoles:{}}),u=[...Object.values(s.aR)],d=e=>{let{children:t}=e;const n=(0,i.C)(a.bB),o=(0,i.C)(a.Jj),s=(0,r.useMemo)((()=>({hasPermissionsLoaded:o,allPermissions:u,programRoles:n})),[n,o]);return(0,l.jsx)(c.Provider,{value:s,children:t})},p=e=>{const{programRoles:t}=(0,r.useContext)(c),n=(0,i.C)(a.$k),s=(0,r.useMemo)((()=>{if(n){var e;const r=null===(e=t[n])||void 0===e?void 0:e.permissions;return void 0===r?new Set:new Set(r)}return new Set((0,o._J)(t).flatMap((e=>e.permissions)))}),[n,t]);return(0,r.useMemo)((()=>e.map((e=>s.has(e)))),[e,s])},h=e=>{const t=m(),n=p(e);return(0,r.useMemo)((()=>t?e.length===n.length&&n.every((e=>e)):void 0),[n,t,e.length])},f=e=>{const t=m(),n=p(e);return(0,r.useMemo)((()=>t?e.length===n.length&&n.some((e=>e)):void 0),[n,t,e.length])},m=()=>{const{hasPermissionsLoaded:e}=(0,r.useContext)(c);return e}},91350:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(18178),i=n(10561),o=n(62213),a=n(45718);function s(){localStorage.removeItem("mrv-recentProgramsByUserId");const{data:e,mutate:t,isLoading:n}=(0,i.Z)(o.Nd,{onError:e=>(0,a.e)(e)});return(0,r.useMemo)((()=>({loadingRecentPrograms:n,recentPrograms:null!==e&&void 0!==e?e:[],mutateRecentPrograms:t})),[e,n,t])}},3661:(e,t,n)=>{"use strict";n.d(t,{BQ:()=>s,H_:()=>o,VJ:()=>a});var r=n(18178),i=n(80691);let o=function(e){return e.IGNORED_SIMILAR_WARNINGS="mrv-ignoredSimilarWarnings",e.IGNORED_WARNINGS="mrv-ignoredWarnings",e.PROGRAMS_LIST_FILTERED_PROGRAM_TYPES="mrv-programsListFilteredProgramTypes",e.PROGRAMS_LIST_ROWS_PER_PAGE="mrv-programsListRowsPerPage",e.PROGRAMS_LIST_VIEW_MODE="mrv-programsListViewMode",e.PRODUCERS_LIST_ROWS_PER_PAGE="mrv-producersListRowsPerPage",e.USE_LOCAL_CUBEJS_API="mrv-useLocalCubeJSAPI",e}({});function a(e){return(0,i.K)(localStorage.getItem(e))}function s(e,t){const[n,i]=(0,r.useState)((()=>{var n;return null!==(n=a(e))&&void 0!==n?n:t}));return(0,r.useEffect)((()=>{!function(e,t){localStorage.setItem(e,JSON.stringify(t))}(e,n)}),[e,n]),[n,i]}},2480:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(54697),i=n(55239),o=n(62213),a=n(45718);const s=e=>{const t=`/programs/${e}/custom_inputs`,{data:n}=(0,r.ZP)(t,{revalidateOnFocus:!1,onError:a.e,fallbackData:[]}),{trigger:s}=(0,i.Z)(t,(async(t,n)=>{let{arg:r}=n;return o.ZP.addCustomRegistrationInput({registrationInput:r,programId:e}).then((e=>e.data))}),{onError:a.e}),{trigger:l}=(0,i.Z)(t,(async(t,n)=>{let{arg:r}=n;return o.ZP.updateCustomRegistrationInput({registrationInput:r,programId:e}).then((e=>e.data))}),{onError:a.e}),{trigger:c}=(0,i.Z)(t,(async(t,n)=>{let{arg:r}=n;return o.ZP.deleteCustomRegistrationInput({inputId:r,programId:e}).then((e=>e.data))}),{onError:a.e});return{programCustomInputs:n,addProgramCustomInputs:s,updateProgramCustomInputs:l,deleteProgramCustomInputs:c}}},5746:(e,t,n)=>{"use strict";n.d(t,{F:()=>c,P:()=>u});var r=n(18178),i=n(54697),o=n(55239),a=n(62213),s=n(45718);const l=(e,t)=>t?`/projects/${e}/phases/${t}/completion`:null,c=(e,t)=>{const n=l(e,t),{data:c,isLoading:u}=(0,i.ZP)(n,{revalidateOnFocus:!1,onError:s.e}),{trigger:d,isMutating:p}=(0,o.Z)(n,(async()=>{if(t)return a.ZP.completeProjectPhase(e,t).then((e=>e.data))}),{onError:s.e,optimisticData:e=>e&&{...e,is_completed:!1},rollbackOnError:!0,populateCache:!0,revalidate:!1}),{trigger:h,isMutating:f}=(0,o.Z)(n,(async(n,r)=>{if(t)return a.ZP.undoCompleteProjectPhase(e,t,r.arg.allowPostCloseEdit).then((e=>e.data))}),{onError:s.e,optimisticData:e=>e&&{...e,is_completed:!1},rollbackOnError:!0,populateCache:!0,revalidate:!1});return(0,r.useMemo)((()=>({isProjectPhaseCompleted:!!t&&!(null===c||void 0===c||!c.is_completed),allowPostCloseEdit:!!t&&!(null===c||void 0===c||!c.allow_post_close_edit),completeProjectPhase:d,undoCompleteProjectPhase:h,isLoading:u,isMutating:p||f})),[t,null===c||void 0===c?void 0:c.is_completed,null===c||void 0===c?void 0:c.allow_post_close_edit,d,h,u,p,f])},u=(e,t)=>{const n=l(e,t);if(n)return(0,i.JG)(n)}},50761:(e,t,n)=>{"use strict";n.d(t,{Di:()=>l,L0:()=>c,TC:()=>u});var r=n(18178),i=n(55927),o=n(79320),a=n(22168);const s="superupdate",l=()=>{const[e]=(0,o.H1)(),t=(0,i.C)(a.rf)&&e.superupdate,[n,l]=(0,r.useState)(!!window.sessionStorage.getItem(s)||t);(0,r.useEffect)((()=>{t&&l(!0)}),[t]),(0,r.useEffect)((()=>{n?window.sessionStorage.setItem(s,"true"):window.sessionStorage.removeItem(s)}),[n]);const c=(0,r.useCallback)((e=>{e.key===s&&l(!!e.newValue)}),[]);return(0,r.useEffect)((()=>(window.addEventListener("storage",c),()=>{window.removeEventListener("storage",c)})),[c]),(0,r.useMemo)((()=>({isSuperUpdateEnabled:n,setIsSuperUpdateEnabled:l})),[n])},c=()=>!!window.sessionStorage.getItem(s),u=()=>window.sessionStorage.removeItem(s)},92964:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>g,Bp:()=>v,CZ:()=>y,nw:()=>m,w6:()=>f});var r=n(19160),i=n.n(r),o=n(17176),a=n.n(o),s=(n(18178),n(36777)),l=n(22221),c=n(96073),u=n(46386),d=n(89877),p=n(37682),h=n(5651);const f=e=>{let{testId:t,callToAction:n,...r}=e;return(0,h.jsx)(s.fl,{...r,"data-testid":t,color:"secondary",variant:"outlined",className:i()({"animation--pulsate-shadow":n}),children:(0,h.jsx)(d.gs,{})})},m={[p.UY.FIELD_BOUNDARIES]:(0,h.jsx)(l.$J,{style:{color:"#fff"}}),[p.UY.ASSIGN_PRACTICES]:(0,h.jsx)(c.LX,{}),[p.UY.CONFIRM_HISTORY]:(0,h.jsx)(c.tt,{}),[p.UY.SUMMER_CROPS]:(0,h.jsx)(c.tt,{}),[p.UY.WINTER_CROPS]:(0,h.jsx)(c.pt,{}),[p.UY.TILLAGE]:(0,h.jsx)(c.mT,{}),[p.UY.NUTRIENT_MGMT]:(0,h.jsx)(c.vH,{}),[p.UY.NUTRIENT_MGMT_INTENDED]:(0,h.jsx)(c.vH,{}),[p.UY.VIEW_OUTCOMES]:(0,h.jsx)(c.kz,{}),[p.UY.SURVEY]:(0,h.jsx)(c.fE,{}),[p.UY.CONTRACT]:(0,h.jsx)(c.zx,{}),[p.UY.ELIGIBILITY]:(0,h.jsx)(c.zx,{}),[p.UY.FIELD_INFORMATION]:(0,h.jsx)(l.sz,{}),[p.UY.RICE_CROP_HISTORY]:(0,h.jsx)(c.tt,{}),[p.UY.HISTORICAL_CROP_ROTATION]:(0,h.jsx)(c.tt,{}),[p.UY.HISTORICAL_TILLAGE]:(0,h.jsx)(c.mT,{}),[p.UY.INTENDED_COMMODITY_CROPS]:(0,h.jsx)(c.tt,{}),[p.UY.IRRIGATION]:(0,h.jsx)(c.tt,{}),[p.UY.MOB_HISTORY]:(0,h.jsx)(c.tt,{}),[p.UY.MOB_MOVEMENT]:(0,h.jsx)(c.tt,{}),[p.UY.FARM_LEVEL_MANAGEMENT]:(0,h.jsx)(c.tt,{}),[p.UY.IRRIGATION_EVENTS]:(0,h.jsx)(c.tt,{}),[p.UY.NUTRIENT_EVENTS]:(0,h.jsx)(c.vH,{}),[p.UY.CROP_EVENTS]:(0,h.jsx)(c.tt,{}),[p.UY.TILLAGE_EVENTS]:(0,h.jsx)(c.mT,{}),[p.UY.CHEMICAL_MANAGEMENT]:(0,h.jsx)(l.sz,{})},g={[p.UY.FIELD_BOUNDARIES]:"fields",[p.UY.ASSIGN_PRACTICES]:"harvest",[p.UY.CONFIRM_HISTORY]:"crop",[p.UY.SUMMER_CROPS]:"crop",[p.UY.WINTER_CROPS]:"crop",[p.UY.TILLAGE]:"tillage",[p.UY.NUTRIENT_MGMT]:"nutrients",[p.UY.NUTRIENT_MGMT_INTENDED]:"nutrients",[p.UY.VIEW_OUTCOMES]:"eligibility",[p.UY.SURVEY]:"template",[p.UY.CONTRACT]:"contract",[p.UY.ELIGIBILITY]:"contract",[p.UY.FIELD_INFORMATION]:"fields",[p.UY.RICE_CROP_HISTORY]:"crop",[p.UY.HISTORICAL_CROP_ROTATION]:"crop",[p.UY.HISTORICAL_TILLAGE]:"tillage",[p.UY.INTENDED_COMMODITY_CROPS]:"crop",[p.UY.IRRIGATION]:"irrigation",[p.UY.MOB_HISTORY]:"livestock",[p.UY.MOB_MOVEMENT]:"livestock",[p.UY.FARM_LEVEL_MANAGEMENT]:"farm",[p.UY.IRRIGATION_EVENTS]:"irrigation",[p.UY.NUTRIENT_EVENTS]:"nutrients",[p.UY.CROP_EVENTS]:"crop",[p.UY.TILLAGE_EVENTS]:"tillage",[p.UY.CHEMICAL_MANAGEMENT]:"nutrients"},y=e=>e.programs.map((t=>{const n={program_id:t,email:e.email,first_name:e.first_name,last_name:e.last_name,params:{}};return e.prevent_email&&(n.prevent_email=!0),e.custom_input_options_override&&(n.params.custom_input_options_override=e.custom_input_options_override),e.groupIds&&(n.params.group_ids=e.groupIds),e.unrestrictedGroupAccess&&(n.params.unrestricted_group_access=e.unrestrictedGroupAccess),n})),v=(e,t,n)=>{let r={type_:e,start_date:t||a()().format(u.TI),end_date:n||a()().format(u.TI)};return e===p.t5.Enrolment&&(r={...r,show_contract:!1,contract_type:"Docusign",params:{limit_program_ha:0,limit_project_ha:0,outcome_estimation:!0}}),r}},39304:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var r=n(18178),i=n(36777),o=n(48071),a=n(23763),s=n(60323),l=n(27679),c=n(5651);const u=/(.+(\((.)+\)))+/g,d=/\[(.*?)\]\(([^)]+)\)/,p=/\[.*?.*?\]\(.*?.*?\)|\S+/g,h=e=>{let{message:t,untouchedCells:n,RightButton:h,className:f}=e;const m=(0,s.nh)(s.hn.NEW_ALERTS),{highlightUntouchedCells:g}=(0,r.useContext)(l._),y=n?g:void 0,v=(0,r.useMemo)((()=>{const e=t.text;if("string"===typeof e&&e.matchAll(u)){const t=e.match(p);return null===t||void 0===t?void 0:t.reduce(((e,n,r)=>{if(!n||" "===n)return e;let i=n;if(d.test(i)){var o;const[e,t,n]=null!==(o=d.exec(i))&&void 0!==o?o:[];i=(0,c.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:t})}return(0,c.jsxs)(c.Fragment,{children:[e,i,r<(null===t||void 0===t?void 0:t.length)-1?" ":""]})}),(0,c.jsx)(c.Fragment,{}))}return e}),[t.text]);if(m){const e=(0,a.e)(t.type);return(0,c.jsx)(i.bZ,{title:t.title,severity:e,children:v})}return(0,c.jsx)(o.U8,{className:f,title:t.title,appearance:t.type,color:t.type,mini:!0,onClick:y,actions:h&&(0,c.jsx)(h,{}),children:(0,c.jsx)("div",{children:v})})}},21493:(e,t,n)=>{"use strict";n.d(t,{Qe:()=>l,uv:()=>c,xM:()=>s});var r=n(18178),i=n(55927),o=n(67547),a=n(34680);const s=(0,r.createContext)(!1),l=()=>(0,r.useContext)(s),c=()=>{const{programId:e}=(0,o.tZ)();return(0,i.C)((t=>(0,a._J)(t,e)))}},89877:(e,t,n)=>{"use strict";n.d(t,{gs:()=>l,ss:()=>s,tW:()=>a});n(18178);var r=n(36777),i=n(21493),o=n(5651);const a=e=>{let{children:t,disableBoxWrapper:n=!1,sx:a}=e;const s=(0,i.Qe)();return(0,o.jsx)(r.u,{title:s?"Program settings need to be unlocked before you can change this.":"",sx:a,children:n?t:(0,o.jsx)(r.xu,{children:t})})},s=e=>{const t=(0,i.Qe)(),{disabled:n,sx:s,...l}=e;return(0,o.jsx)(a,{disableBoxWrapper:!0,children:(0,o.jsx)(r.zx,{disabled:t||n,sx:{...null!==s&&void 0!==s?s:{},"&.Mui-disabled":{pointerEvents:"auto"}},...l})})},l=()=>{const e=(0,i.Qe)();return(0,o.jsx)(o.Fragment,{children:e?"View":"Edit"})}},2756:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>y,DM:()=>f,XY:()=>h,sR:()=>g,sY:()=>m});var r=n(18178),i=n(54697),o=n(22219),a=n(55927),s=n(55650),l=n(95853),c=n(45718),u=n(34680);const d=[],p=[],h=e=>{const t=(0,a.C)(u.$k),n=(0,a.C)(u.mJ),o=(null===e||void 0===e?void 0:e.searchValue)||"",h=n?`/programs/${t}/user_groups/search?query_string=${o}`:null,{data:f,error:g,isLoading:y,mutate:v}=(0,i.ZP)(h,(()=>t?s.eV.groups.userGroupsDoSearch({programId:t,query:o}).then((e=>e.data.items)):d)),b=(0,r.useMemo)((()=>(null===f||void 0===f?void 0:f.map((e=>({...e,color_category_index:m(e.color_category_index)}))))||p),[f]),_=(0,r.useMemo)((()=>b.map((e=>({label:e.display_name,value:e.id})))),[b]),w=(0,r.useCallback)((async e=>{if(t)try{const n=(await s.eV.groups.userGroupsDoRead({programId:t,userGroupId:e})).data;return{...n,color_category_index:m(n.color_category_index)}}catch(n){(0,c.e)(n),(0,l.c)({title:"Error",message:"Failed to load group.",type:"error"})}}),[t]),x=(0,r.useCallback)((async e=>{if(t)try{const n=(await s.eV.groups.userGroupsDoCreate(t,{...e,color_category_index:parseInt(e.color_category_index)})).data;return await v(),n}catch(n){(0,c.e)(n),(0,l.c)({title:"Error",message:"Failed to create group.",type:"error"})}}),[v,t]),k=(0,r.useCallback)((async(e,n)=>{if(!t)return;const r=(await s.eV.groups.userGroupsDoPartialUpdate({programId:t,userGroupId:e,data:{...n,color_category_index:parseInt(n.color_category_index)}})).data;return await v(),r}),[v,t]),C=(0,r.useCallback)((async e=>{if(t)try{const n=(await s.eV.groups.userGroupsDoDelete({programId:t,userGroupId:e})).data;return await v(),n}catch(n){(0,c.e)(n)}}),[v,t]);return(0,r.useMemo)((()=>({data:f,groups:b,error:g,isLoading:y,createGroup:x,deleteGroup:C,getGroup:w,partiallyUpdateGroup:k,groupsOptions:_})),[x,C,f,g,w,b,_,y,k])},f=["0","1","2","3","4","5","6","7","8"],m=e=>{switch(e){case 0:default:return"0";case 1:return"1";case 2:return"2";case 3:return"3";case 4:return"4";case 5:return"5";case 6:return"6";case 7:return"7";case 8:return"8"}},g=(0,o.Ry)().shape({name:(0,o.Z_)().required("Name is required")}),y=e=>{let{groupId:t,programId:n}=e;const{data:r,error:o,isLoading:a}=(0,i.ZP)(`/mrv/programs/${n}/groups/${t}/statistics`,(()=>s.eV.groups.userGroupsDoReadStatistics({programId:n,groupId:t}).then((e=>e.data))));return{data:r,error:o,isLoading:a}}},29501:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,l:()=>r});let r=function(e){return e.Configuration="configuration",e.Producers="producers",e.Admins="admins",e.Invites="invites",e.DashboardPlayground="dashboard-playground",e}({}),i=function(e){return e.LegacyProgram="Legacy program",e.EventBasedProgram="Event based program",e}({})},97165:(e,t,n)=>{"use strict";n.d(t,{Qe:()=>m,So:()=>h,bT:()=>f,q$:()=>u,v9:()=>d});n(18178);var r=n(30057),i=n(31810),o=n(20304),a=n(5229),s=n(54737),l=n(37682),c=n(5651);const u=e=>e?e.map((e=>({value:e.value,icon:(0,c.jsx)(o.C,{cropType:e.value,iconSrc:e.icon_url}),label:e.label}))):[],d=(e,t)=>({stageId:e,completion:{completed:0,is_completed:t,percentage_complete:t?100:0,to_complete:0,total:0}}),p=[l.UY.ELIGIBILITY,l.UY.SURVEY,l.UY.CONTRACT],h=e=>void 0!==e&&p.includes(e),f=e=>e?e.custom_name?e.custom_name:e.type_&&s.Z[e.type_]?s.Z[e.type_]():(0,a.t)({id:`MRVStageType.${e.type_}`,defaultMessage:`MRVStageType.${e.type_}`}):"",m=()=>{const e=(0,r.YB)(),t=(t,n)=>e.formatMessage({id:`MRVAttributeType.${t}`,defaultMessage:n});return e=>{var n;if(e.custom_name)return e.custom_name;const r={[i.id.SummerCropType]:()=>t(i.id.SummerCropType,"Crop type"),[i.id.SummerHarvestDate]:()=>t(i.id.SummerHarvestDate,"Harvest date"),[i.id.SummerDryYield]:()=>t(i.id.SummerDryYield,"Est. yield"),[i.id.SummerResidueHarvested]:()=>t(i.id.SummerResidueHarvested,"Residue harvested"),[i.id.IrrigationMethod]:()=>t(i.id.IrrigationMethod,"Irrigation Method"),[i.id.SummerPlantingDate]:()=>t(i.id.SummerPlantingDate,"Planting date"),[i.id.CropUsage]:()=>t(i.id.CropUsage,"Crop usage"),[i.id.WinterCropCommitment]:()=>t(i.id.WinterCropCommitment,"Winter crop"),[i.id.WinterCropType]:()=>t(i.id.WinterCropType,"Crop type"),[i.id.WinterCropTermination]:()=>t(i.id.WinterCropTermination,"Termination method"),[i.id.WinterHarvestDate]:()=>t(i.id.WinterHarvestDate,"Termination date"),[i.id.WinterDryYield]:()=>t(i.id.WinterDryYield,"Yield"),[i.id.WinterResidueHarvested]:()=>t(i.id.WinterResidueHarvested,"Residue harvested"),[i.id.IrrigationEnabled]:()=>t(i.id.IrrigationEnabled,"Irrigation"),[i.id.WinterPlantingDate]:()=>t(i.id.WinterPlantingDate,"Planting date"),[i.id.PlantingSeason]:()=>t(i.id.PlantingSeason,"Planting season"),[i.id.PlantingDate]:()=>t(i.id.PlantingDate,"Planting date"),[i.id.HarvestDate]:()=>t(i.id.HarvestDate,"Harvest date"),[i.id.StartDate]:()=>t(i.id.StartDate,"Start date"),[i.id.EndDate]:()=>t(i.id.EndDate,"End date"),[i.id.FallTillagePractice]:()=>t(i.id.FallTillagePractice,"Fall tillage practice"),[i.id.FallTillageDate]:()=>t(i.id.FallTillageDate,"Fall tillage date"),[i.id.FallTillageDepth]:()=>t(i.id.FallTillageDepth,"Fall tillage depth"),[i.id.SpringTillagePractice]:()=>t(i.id.SpringTillagePractice,"Spring tillage practice"),[i.id.SpringTillageDate]:()=>t(i.id.SpringTillageDate,"Spring tillage date"),[i.id.SpringTillageDepth]:()=>t(i.id.SpringTillageDepth,"Spring tillage depth"),[i.id.Harvest]:()=>t(i.id.Harvest,"Harvest"),[i.id.Planting]:()=>t(i.id.Planting,"Planting"),[i.id.CropType]:()=>t(i.id.CropType,"Crop type"),[i.id.CropYield]:()=>t(i.id.CropYield,"Crop yield"),[i.id.ResidueHarvested]:()=>t(i.id.ResidueHarvested,"Residue harvested"),[i.id.TillagePeriod]:()=>t(i.id.TillagePeriod,"Tillage period"),[i.id.TillagePractice]:()=>t(i.id.TillagePractice,"Tillage practice"),[i.id.TillageDate]:()=>t(i.id.TillageDate,"Tillage date"),[i.id.TillageDepth]:()=>t(i.id.TillageDepth,"Tillage depth"),[i.id.TillageEvent]:()=>t(i.id.TillageEvent,"Tillage event"),[i.id.StripFraction]:()=>t(i.id.StripFraction,"Strip  fraction"),[i.id.RecordYear]:()=>t(i.id.RecordYear,"Year"),[i.id.ApplicationProduct]:()=>t(i.id.ApplicationProduct,"Product"),[i.id.ApplicationDate]:()=>t(i.id.ApplicationDate,"Application date"),[i.id.ApplicationRate]:()=>t(i.id.ApplicationRate,"Rate amount"),[i.id.ApplicationRateType]:()=>t(i.id.ApplicationRateType,"Rate type"),[i.id.ApplicationRateUnit]:()=>t(i.id.ApplicationRateUnit,"Rate unit"),[i.id.Additives]:()=>t(i.id.Additives,"Additives"),[i.id.WaterAmount]:()=>t(i.id.WaterAmount,"Water amount"),[i.id.WaterAmountUnit]:()=>t(i.id.WaterAmountUnit,"Water unit"),[i.id.ApplicationArea]:()=>t(i.id.ApplicationArea,"Area applied"),[i.id.ApplicationDepth]:()=>t(i.id.ApplicationDepth,"Application depth"),[i.id.ApplicationMethod]:()=>t(i.id.ApplicationMethod,"Application method"),[i.id.YieldRateUnit]:()=>t(i.id.YieldRateUnit,"Yield unit"),[i.id.Practice]:()=>t(i.id.Practice,"Practice"),[i.id.SkipAssignPractice]:()=>t(i.id.SkipAssignPractice,"Skip assigning practices"),[i.id.FarmNumber]:()=>t(i.id.FarmNumber,"Farm number"),[i.id.CoverCropMix]:()=>t(i.id.CoverCropMix,"Cover crop class / mix"),[i.id.SoilInversion]:()=>t(i.id.SoilInversion,"Soil inversion"),[i.id.IrrigationRateUnit]:()=>t(i.id.IrrigationRateUnit,"Irrigation unit"),[i.id.SubsurfaceDripDepth]:()=>t(i.id.SubsurfaceDripDepth,"Subsurface drip depth"),[i.id.SubsurfaceDripDepthUnit]:()=>t(i.id.SubsurfaceDripDepth,"Subsurface drip depth unit"),[i.id.FloodPct]:()=>t(i.id.FloodPct,"Flood %"),[i.id.EnergySource]:()=>t(i.id.EnergySource,"Energy source"),[i.id.FuelType]:()=>t(i.id.FuelType,"Fuel type"),[i.id.PesticideFarmprintGaff]:()=>t(i.id.PesticideFarmprintGaff,"Product (Pesticide)"),[i.id.ChangeType]:()=>t(i.id.ChangeType,"Change type"),[i.id.HeadCount]:()=>t(i.id.HeadCount,"Head count"),[i.id.LivestockClass]:()=>t(i.id.LivestockClass,"Livestock class"),[i.id.ProductionSystem]:()=>t(i.id.ProductionSystem,"Livestock class"),[i.id.AreaSown]:()=>t(i.id.AreaSown,"Area sown"),[i.id.FarmName]:()=>t(i.id.FarmName,"Farm name"),[i.id.ResidueBurnt]:()=>t(i.id.ResidueBurnt,"Residue burnt"),[i.id.AreaTilledTotalPct]:()=>t(i.id.AreaTilledTotalPct,"Area tilled total percentage"),[i.id.AreaTilledForPastureRenewalPct]:()=>t(i.id.AreaTilledTotalPct,"Area tilled for pasture renewal percentage"),[i.id.NutrientManagementEnabled]:()=>t(i.id.NutrientManagementEnabled,"Nutrient management enabled"),[i.id.LandscapeModificationsFuelUsage]:()=>t(i.id.LandscapeModificationsFuelUsage,"Landscape modifications fuel usage"),[i.id.LandscapeModificationsFuelType]:()=>t(i.id.LandscapeModificationsFuelType,"Landscape modifications fuel type"),[i.id.IrrigationFuelUsage]:()=>t(i.id.IrrigationFuelUsage,"Irrigation fuel usage"),[i.id.IrrigationFuelType]:()=>t(i.id.IrrigationFuelType,"Irrigation fuel type"),[i.id.IrrigationElectricityUsage]:()=>t(i.id.IrrigationElectricityUsage,"Irrigation electricity usage"),[i.id.IrrigationElectricitySource]:()=>t(i.id.IrrigationElectricitySource,"Irrigation electricity source"),[i.id.IrrigationElectricityGridName]:()=>t(i.id.IrrigationElectricityGridName,"Irrigation electricity grid name"),[i.id.TotalArea]:()=>t(i.id.TotalArea,"Total area"),[i.id.TotalEnergyUsage]:()=>t(i.id.TotalEnergyUsage,"Total energy usage"),[i.id.TotalFuelUsage]:()=>t(i.id.TotalFuelUsage,"Total fuel usage"),[i.id.SeedingRate]:()=>t(i.id.SeedingRate,"Seeding Rate"),[i.id.SeedVariety]:()=>t(i.id.SeedVariety,"Seed Variety"),[i.id.SeedingRateUnit]:()=>t(i.id.SeedingRateUnit,"Seeding Rate Unit"),[i.id.FieldMargin]:()=>t(i.id.FieldMargin,"Field margin"),[i.id.VariableRate]:()=>t(i.id.VariableRate,"Variable rate"),[i.id.Date]:()=>t(i.id.Date,"Date"),[i.id.Bool]:()=>t(i.id.Bool,"Bool"),[i.id.Other]:()=>t(i.id.Other,"Other"),[i.id.Number]:()=>t(i.id.Number,"Number"),[i.id.String]:()=>t(i.id.String,"String"),[i.id.SpringTillage]:()=>t(i.id.SpringTillage,"Spring tillage"),[i.id.FallTillage]:()=>t(i.id.FallTillage,"Fall tillage"),[i.id.WinterCrop]:()=>t(i.id.WinterCrop,"Winter crop"),[i.id.SummerCrop]:()=>t(i.id.SummerCrop,"Summer crop"),[i.id.ApplicationRateUnitVanity]:()=>t(i.id.ApplicationRateUnitVanity,"Application rate unit"),[i.id.ApplicationRateVanity]:()=>t(i.id.ApplicationRateVanity,"Application rate"),[i.id.ApplicationAreaVanity]:()=>t(i.id.ApplicationAreaVanity,"Application area"),[i.id.AdditiveOne]:()=>t(i.id.AdditiveOne,"Additive one"),[i.id.AdditiveTwo]:()=>t(i.id.AdditiveTwo,"Additive two"),[i.id.PlantingMethod]:()=>t(i.id.PlantingMethod,"Planting method"),[i.id.PlantingRate]:()=>t(i.id.PlantingRate,"Planting rate"),[i.id.PlantingRateUnit]:()=>t(i.id.PlantingRateUnit,"Planting rate unit"),[i.id.TillageDepthUnit]:()=>t(i.id.TillageDepthUnit,"Tillage depth unit"),[i.id.ApplicationDepthUnit]:()=>t(i.id.ApplicationDepthUnit,"Application depth unit"),[i.id.FieldMarginArea]:()=>t(i.id.FieldMarginArea,"Field margin area")},o=null===(n=r[e.type])||void 0===n?void 0:n.call(r);return o||e.label}}},90454:(e,t,n)=>{"use strict";n.d(t,{L7:()=>u,LC:()=>c,Sg:()=>a});var r=n(18178),i=n(30057),o=n(44530);const a=e=>"string"===typeof e?e:e.value,s=(e,t)=>({label:(0,o.fm)(t({id:`Option.${e}`,defaultMessage:e})),value:e}),l=(e,t)=>({...e,label:(0,o.fm)(t({id:`Option.${e.value}`,defaultMessage:`${e.label}`}))});function c(){const e=(0,i.YB)();return(0,r.useCallback)((t=>t.map((t=>"string"===typeof t?s(t,e.formatMessage):l(t,e.formatMessage)))),[e])}const u=(e,t)=>e.map((e=>"string"===typeof e?s(e,t):l(e,t)))},60441:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});n(18178);var r=n(30057),i=n(37682),o=n(5651);function a(e){let{document:t}=e;switch(t.category){case i.bj.TANDC:return(0,o.jsx)(r._H,{id:"I have read and agree to the Regrow terms and conditions",defaultMessage:"I have read and agree to the Regrow terms and conditions"});case i.bj.PRIVACY:return(0,o.jsx)(r._H,{id:"I have read and agree to the Regrow privacy policy",defaultMessage:"I have read and agree to the Regrow privacy policy"});default:return(0,o.jsx)(o.Fragment,{children:t.description})}}},81340:(e,t,n)=>{"use strict";n.d(t,{aY:()=>S,PG:()=>M,M7:()=>_,ni:()=>T,kO:()=>E,QN:()=>b,Hz:()=>w,m7:()=>v,Gk:()=>C,cO:()=>k,QC:()=>x});var r=n(18178),i=n(54697),o=n(62213),a=n(3308),s=n(73042);var l=n(43033),c=n(66791),u=n(70228),d=n(37682);const p="/reporting_dashboards/full",h=(e,t)=>`/programs/${e}/reporting_dashboards/full/key/${t}`,f=e=>`/programs/${e}/reporting_dashboards/full`,m=e=>`/programs/${e}/reporting_dashboard_to_program`,g=(e,t)=>`/programs/${e}/reporting_dashboard_to_program/${t}`,y=()=>{return e="reporting_dashboard",(0,i.JG)((t=>(0,s.kJ)(t)?t.some((t=>(0,s.HD)(t)&&t.includes(e))):(0,s.HD)(t)?t.includes(e):t===e),t,n);var e,t,n},v=e=>{const[t]=(0,c.zE)([d.aR.GET_PROGRAM_REPORTING_DASHBOARDS_FULL]),n=(0,r.useMemo)((()=>t?f(e):null),[t,e]);return(0,i.ZP)(n)},b=()=>{const e=(0,c.E6)(),[t]=(0,c.zE)([d.aR.GET_REPORTING_DASHBOARDS_FULL]),n=e&&t,o=(0,r.useMemo)((()=>n?p:null),[n]);return(0,i.ZP)(o,null,{revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1})},_=()=>{const e=b(),t=(0,r.useCallback)((t=>{var n;return(0,u.T8)(null===(n=e.data)||void 0===n?void 0:n.find((e=>(null===e||void 0===e?void 0:e.key)===t)))}),[e.data]),n=(0,r.useCallback)((()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.reduce(((e,t)=>({...(0,u.T8)(t),...e})),{}))||{}}),[e.data]);return(0,r.useCallback)((e=>{let r={};return r=e?t(e):n(),(0,l.Sv)(JSON.stringify(r),"translationKeys.json",l.HY.TextCSV)}),[n,t])},w=(e,t)=>{const n=(0,c.E6)(),o=(0,c.UB)([d.aR.GET_PROGRAM_REPORTING_DASHBOARD_FULL_KEY_BY_KEY]),a=n&&o&&(0,s.$K)(e),l=(0,r.useMemo)((()=>a?h(e,t):null),[a,e,t]);return(0,i.ZP)(l,null,{revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1})},x=e=>{const t=(0,c.E6)(),n=(0,c.UB)([d.aR.GET_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM])&&(0,s.$K)(e),r=t&&n?m(e):null;return(0,i.ZP)(r,null,{revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1})},k=(e,t)=>{const n=x(e),i=(0,r.useMemo)((()=>{var e,r;return null===(e=n.data)||void 0===e||null===(r=e.find)||void 0===r?void 0:r.call(e,(e=>e.key===t))}),[t,n.data]);return(0,r.useMemo)((()=>({isLoading:null===n||void 0===n?void 0:n.isLoading,data:i})),[i,n])},C=e=>{const t=(0,r.useRef)(e),{data:n,isLoading:i}=v(e),{data:o,isLoading:a}=x(e),[l,c]=(0,r.useState)();(0,r.useEffect)((()=>{e!==t.current&&(t.current=e,c(void 0))}),[e]),(0,r.useEffect)((()=>{(0,s.kJ)(o)&&(0,s.kJ)(n)&&c((e=>{var t;const r={...null!==e&&void 0!==e?e:{}};return null===o||void 0===o||null===(t=o.forEach)||void 0===t||t.call(o,(e=>{var t;const i=null===n||void 0===n||null===(t=n.find)||void 0===t?void 0:t.call(n,(t=>(null===t||void 0===t?void 0:t.id)===(null===e||void 0===e?void 0:e.dashboard_id)));i&&(r[e.key]={relation:e,...i})})),r}))}),[o,n]);const u=i||a||void 0===l;return(0,r.useMemo)((()=>({data:l,isLoading:u})),[u,l])},S=()=>{const e=(0,c.UB)([d.aR.CREATE_REPORTING_DASHBOARDS_FULL]);return(0,r.useCallback)((t=>{const n=p;return e?a.Z.post(`${o.OL}${n}`,[t]).then((async e=>(await y(),e.data))):Promise.reject()}),[e])},M=()=>{const e=(0,c.UB)([d.aR.DELETE_REPORTING_DASHBOARDS_FULL]);return(0,r.useCallback)((t=>{const n=e&&(0,s.$K)(t)?p:null;return a.Z.delete(`${o.OL}${n}`,{data:[t]}).then((async e=>(await y(),null===e||void 0===e?void 0:e.data)))}),[e])},T=()=>{const e=(0,c.UB)([d.aR.UPDATE_REPORTING_DASHBOARDS_FULL]);return(0,r.useCallback)((t=>{const n=p;return e?a.Z.put(`${o.OL}${n}`,[t]).then((async e=>(await y(),null===e||void 0===e?void 0:e.data))):Promise.reject()}),[e])},E=()=>{const[e,t]=(0,c.zE)([d.aR.CREATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM,d.aR.UPDATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM_BY_ID]),n=(0,r.useCallback)((e=>{if(!t)return Promise.reject([]);const n=g(e.program_id,e.id);return a.Z.patch(`${o.OL}${n}`,e).then((async e=>(await y(),[null===e||void 0===e?void 0:e.data])))}),[t]),i=(0,r.useCallback)((t=>{if(!e)return Promise.reject([]);const n=m(t.program_id);return a.Z.post(`${o.OL}${n}`,[t.dashboard_id]).then((async e=>(await y(),null===e||void 0===e?void 0:e.data)))}),[e]);return(0,r.useCallback)((e=>e?e.id?n(e):i(e):Promise.reject([])),[i,n])}},70461:(e,t,n)=>{"use strict";n.d(t,{A1:()=>c,At:()=>a,E4:()=>y,Hm:()=>h,Ud:()=>f,Xi:()=>m,Xr:()=>g,YJ:()=>l,_k:()=>u,k5:()=>s,kj:()=>v,mS:()=>p,p:()=>d});var r=n(2243),i=n(85251),o=n(39475);const a=(0,r.ZP)(`Bearer ${(0,i.oi)(i.$$.TOKEN)}`,{apiUrl:`${o.default.baseUrl}api/v1/cubejs/cubejs-api/v1`}),s=(0,r.ZP)(`Bearer ${(0,i.oi)(i.$$.TOKEN)}`,{apiUrl:"http://localhost:4000/cubejs-api/v1"}),l=["#75CACF","#6391DC","#A571CB","#CC639C","#D05D5D","#E1AA58","#ECE071"];let c=function(e){return e.bar="bar",e.verticalBar="vertical_bar",e.horizontalBar="horizontal_bar",e.verticalBarStacked="vertical_bar_stacked",e.horizontalBarStacked="horizontal_bar_stacked",e.verticalBarGrouped="vertical_bar_grouped",e.horizontalBarGrouped="horizontal_bar_grouped",e.progress="progress",e.doughnut="doughnut",e.line="line",e.timestamp_line="timestamp_line",e.stat="stat",e.map="map",e.map_with_bubbles="map_with_bubbles",e.table="table",e.string="string",e.tab_table="tab_table",e}({}),u=function(e){return e.PROGRAM_AREA_MEASUREMENT="PROGRAM_AREA_MEASUREMENT",e.PROGRAM_AREA_MEASUREMENT_SYMBOL="PROGRAM_AREA_MEASUREMENT_SYMBOL",e.PROGRAM_CURRENCY_SYMBOL="PROGRAM_CURRENCY_SYMBOL",e.PROGRAM_PREVIOUS_YEAR="PROGRAM_PREVIOUS_YEAR",e.PROGRAM_CREDITING_YEAR="PROGRAM_CREDITING_YEAR",e.QUERY_PRODUCER_NAME="QUERY_PRODUCER_NAME",e}({});const d={PRACTICE_VERIFICATION:"PRACTICE_VERIFICATION",PROGRAM_OVERVIEW:"PROGRAM_OVERVIEW",ENROLLMENT:"ENROLLMENT",PROGRAM_DATA_REVIEW:"PROGRAM_DATA_REVIEW",PRODUCER:"PRODUCER",MEASUREMENT:"MEASUREMENT",PROGRAM_DATA_REVIEW_2:"PROGRAM_DATA_REVIEW_2",REGROW_ONLY_PROGRAM_DATA_REVIEW_2:"REGROW_ONLY_PROGRAM_DATA_REVIEW_2"},p="DEV_ONLY_",h="REGROW_ONLY_",f=[d.PROGRAM_OVERVIEW,d.ENROLLMENT,d.MEASUREMENT,d.PRACTICE_VERIFICATION,d.PROGRAM_DATA_REVIEW,d.PRODUCER],m="AreaAc",g="AreaHa",y="total_completion",v=`${y}_programId`},98864:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(18178),i=n(55927),o=n(22168),a=n(20326),s=n(46008);const l=()=>{const e=(0,i.C)(o.yX),t=(0,s.Zx)();return(0,r.useCallback)(((n,r,i,o)=>{const s=!!n,l=(0,a.Ly)(n,i,o);return!(!(s&&t&&(!l||e))||r)}),[e,t])}},46008:(e,t,n)=>{"use strict";n.d(t,{Zx:()=>u,iQ:()=>d,km:()=>p,wQ:()=>h});var r=n(18178),i=n(45581),o=n(67547),a=n(66791),s=n(37682),l=n(20326);const c=e=>{const{programId:t}=(0,o.tZ)(),n=(0,i.k6)();(0,r.useEffect)((()=>{void 0===e||e||(0,l.$X)(n,t)}),[e,n,t])},u=()=>(0,a.UB)([s.aR.VIEW_REPORTING_DASHBOARDS,s.aR.GET_PROGRAM_REPORTING_DASHBOARDS_FULL,s.aR.GET_PROGRAM_REPORTING_DASHBOARD_FULL_KEY_BY_KEY,s.aR.GET_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM]),d=()=>{const e=u(),t=(0,a.C1)([s.aR.CREATE_REPORTING_DASHBOARDS_FULL,s.aR.UPDATE_REPORTING_DASHBOARDS_FULL]);c(t&&e)},p=()=>{const e=u(),t=(0,a.UB)([s.aR.CREATE_REPORTING_DASHBOARDS_FULL]);c(t&&e)},h=()=>{const e=u();c(e)}},70228:(e,t,n)=>{"use strict";n.d(t,{Qu:()=>l,T8:()=>c});var r=n(44530),i=n(37682),o=n(70461);const a=e=>e.replace(/{{\s*(\w+(?:\s*\w+)*)\s*}}/g,((e,t)=>`{${t.trim()}}`)),s=/^\{[^{}]*\}$/,l=(e,t,n,r)=>(l,c)=>{var u,d,p;if(!l)return l;const h=a(l),f=c?a(c):c,m=null!==(u=i.YR[t])&&void 0!==u?u:i.YR.US_IMPERIAL,g=m===i.YR.METRIC?"ha":"ac",y={[o._k.PROGRAM_CURRENCY_SYMBOL]:null!==n&&void 0!==n?n:"$",[o._k.PROGRAM_AREA_MEASUREMENT]:e({id:m,defaultMessage:m}),[o._k.PROGRAM_AREA_MEASUREMENT_SYMBOL]:e({id:g,defaultMessage:g}),[o._k.PROGRAM_PREVIOUS_YEAR]:r?""+(r-1):"",[o._k.PROGRAM_CREDITING_YEAR]:null!==r&&void 0!==r?r:"",[o._k.QUERY_PRODUCER_NAME]:null!==(d=null===(p=new URLSearchParams(document.location.search))||void 0===p?void 0:p.get("producerName"))&&void 0!==d?d:""};if(h.match(s))for(const e in y){const t=`{${e}}`;if(h===t)return h.replace(t,`${y[e]}`)}return e({id:h,defaultMessage:f||h},y,{ignoreTag:!0})},c=e=>{const t={};if(!e)return t;const n=(e,n)=>{if(e){const r=a(e);t[r]=null!==n&&void 0!==n?n:r}};return n((0,r.LF)(e.key)),n(e.title),n(e.description),e.sections.forEach((e=>{n(e.title),n(e.description),e.rows.forEach((t=>{n(e.title),n(e.description),t.charts.forEach((e=>{var t,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y;(n(e.title),n(e.description),n(e.tooltip),null!==(t=e.prefix)&&void 0!==t&&t.key)&&n(null===(u=e.prefix)||void 0===u?void 0:u.key,null!==(d=null===(p=e.prefix)||void 0===p?void 0:p.default_message)&&void 0!==d?d:null===(h=e.prefix)||void 0===h?void 0:h.key);null!==(r=e.postfix)&&void 0!==r&&r.key&&n(null===(f=e.postfix)||void 0===f?void 0:f.key,null!==(m=null===(g=e.postfix)||void 0===g?void 0:g.default_message)&&void 0!==m?m:null===(y=e.postfix)||void 0===y?void 0:y.key);Object.values(null!==(i=e.title_map)&&void 0!==i?i:{}).forEach((e=>n(e))),null===e||void 0===e||null===(o=e.table_components)||void 0===o||o.forEach((e=>n(e.column_title))),null===e||void 0===e||null===(a=e.option_components)||void 0===a||a.forEach((e=>n(e.label))),null===(s=Object.values(null!==(l=null===(c=e.table_config)||void 0===c?void 0:c.column_map)&&void 0!==l?l:{}))||void 0===s||s.forEach((e=>{var t,r,i,o,a,s,l,c,u,d;null!==(t=e.postfix)&&void 0!==t&&t.key&&n(null===(i=e.postfix)||void 0===i?void 0:i.key,null!==(o=null===(a=e.postfix)||void 0===a?void 0:a.default_message)&&void 0!==o?o:null===(s=e.postfix)||void 0===s?void 0:s.key);null!==(r=e.prefix)&&void 0!==r&&r.key&&n(null===(l=e.prefix)||void 0===l?void 0:l.key,null!==(c=null===(u=e.prefix)||void 0===u?void 0:u.default_message)&&void 0!==c?c:null===(d=e.prefix)||void 0===d?void 0:d.key)}))}))}))})),t}},20326:(e,t,n)=>{"use strict";n.d(t,{$X:()=>m,Ar:()=>o,DK:()=>u,Ev:()=>l,IQ:()=>p,Ly:()=>h,bv:()=>s,gU:()=>f,iN:()=>d,sD:()=>c,zq:()=>a});var r=n(70461),i=n(73246);const o=e=>Number(Number(e).toFixed(2)),a=function(e){var t,n,r,i,o,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===(t=e.rawData())||void 0===t||null===(n=t[0])||void 0===n?void 0:n[null!==(r=null===(i=e.query)||void 0===i||null===(o=i.call(e))||void 0===o||null===(a=o.measures)||void 0===a?void 0:a[s])&&void 0!==r?r:0]},s=e=>"number"===typeof e&&!isNaN(e)||!isNaN(e)&&!isNaN(parseFloat(e)),l=e=>!!e&&!isNaN(new Date(e).getTime()),c=e=>!!(s(e)?Number(e):e),u=e=>"SUPER_ADMIN"===e,d=e=>e.startsWith(r.Hm)||e.startsWith(r.mS),p=(e,t)=>d(e)||u(t),h=(e,t,n)=>p(e,t)||u(n),f=e=>{const t=[],n=[];for(const i of e)r.Ud.includes(i.value)?t.push(i):n.push(i);return t.sort(((e,t)=>r.Ud.indexOf(e.value)-r.Ud.indexOf(t.value))),[...t,...n]},m=(e,t)=>{t?e.push(`${i.uj}/programs/${t}/configure/producers`):e.push(i.uj)}},12959:(e,t,n)=>{"use strict";n.d(t,{I:()=>d,O:()=>c});var r=n(94278),i=(n(18178),n(30057)),o=n(62213),a=n(37682),s=n(36415),l=n(5651);const c=e=>{let{value:t}=e;const n=(0,i.YB)(),r=a.Uf[t];return r?(0,l.jsx)(s.qE,{className:"practice-avatar",title:n.formatMessage({id:t,defaultMessage:t}),src:o.ZP.getPracticeIconUrl(r)}):(0,l.jsx)(s.pl,{className:"practice-avatar",title:t,children:null===t||void 0===t?void 0:t.charAt(0)})},u={width:24,height:24,backgroundColor:"#00bfbf",fontSize:e=>e.typography.body1.fontSize},d=e=>{let{value:t}=e;const n=(0,i.YB)(),s=a.Uf[t];return s?(0,l.jsx)(r.Z,{title:n.formatMessage({id:t,defaultMessage:t}),src:o.ZP.getPracticeIconUrl(s),sx:u}):(0,l.jsx)(r.Z,{sx:u,title:t,children:null===t||void 0===t?void 0:t.charAt(0)})}},36415:(e,t,n)=>{"use strict";n.d(t,{_Y:()=>a,pl:()=>o,qE:()=>i});var r=n(84917);const i=r.ZP.img`
  border-radius: 50%;
`,o=r.ZP.span`
  border-radius: 50%;
  border: 2px solid #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 1.3rem;
  background-color: #00bfbf;
  display: inline-block;
`,a=r.ZP.div`
  display: flex;
  max-width: 150px;

  .practice-avatar {
    transition: box-shadow 0.4s;
  }
  &.clickable:hover {
    .practice-avatar {
      transition: box-shadow 0.4s;
      box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }
  }

  .avatar-offset {
    display: inline-block;
    position: relative;
    margin-right: -10px;

    > img {
      width: 30px;
      height: 30px;
    }

    &:last-child {
      margin-right: 0px;
    }
  }

  &.no-circles {
    color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
  }
`},16148:(e,t,n)=>{"use strict";n.d(t,{$$:()=>r,aU:()=>o,en:()=>i,rv:()=>a,uu:()=>s});const r="MMM D YYYY",i=-1,o={radius:60,extent:256,maxZoom:11},a=-1,s={DISABLE_VALIDATION_RULE_PLANTING_HARVEST_DATES:"Disable validation rule #validate_planting_harvest_dates",DISABLE_VALIDATION_RULE_HARVEST_DATE_IN_RECORD_YEAR:"Disable validation rule #validate_harvest_date_in_record_year",DISABLE_VALIDATION_RULE_TILLAGE_EVENT:"Disable validation rule #validate_tillage_event",DISABLE_VALIDATION_RULE_CROPPING_EVENT_LENGTH:"Disable validation rule #validate_cropping_event_length",DISABLE_VALIDATION_RULE_DATE_AND_RECORD_YEAR:"Disable validation rule #validate_tillage_date_and_record_year",DISABLE_VALIDATION_RULE_CROP_TYPE_AND_CROP_USAGE:"Disable validation rule #validate_crop_type_and_crop_usage",DISABLE_VALIDATION_RULE_ADDITIVES_LIMIT:"Disable validation rule #validate_additives_limit_attr",DISABLE_VALIDATION_RULE_APPLICATION_DEPTH:"Disable validation rule #validate_application_depth",DISABLE_VALIDATION_RULE_APPLICATION_RATE:"Disable validation rule #validate_application_rate",DISABLE_VALIDATION_RULE_WATER_AMOUNT:"Disable validation rule #validate_water_amount",DISABLE_VALIDATION_RULE_PRODUCT_MEASURE_APPROVED:"Disable validation rule #validate_if_product_is_measure_approved",DISABLE_VALIDATION_RULE_ADDITIVES_MEASURE_APPROVED:"Disable validation rule #validate_if_additives_are_measure_approved",DISABLE_VALIDATION_RULE_ADDITIVES_UNIQUE_ATTR:"Disable validation rule #validate_additives_unique_attr",DISABLE_VALIDATION_RULE_PRODUCT_LIQUID_OR_DRY:"Disable validation rule #validate_product_liquid_or_dry",DISABLE_VALIDATION_RULE_CROP_TYPE:"Disable validation rule #validate_crop_type",DISABLE_VALIDATION_RULE_CROP_YIELD:"Disable validation rule #validate_crop_yield",DISABLE_VALIDATION_RULE_INTERVALS_OVERLAP:"Disable validation rule #validate_intervals_overlap",DISABLE_VALIDATION_RULE_FLOOD_PERCENTAGE:"Disable validation rule #validate_flood_percentage",DISABLE_VALIDATION_RULE_SUBSURFACE_DRIP_DEPTH:"Disable validation rule #validate_subsurface_drip_depth",DISABLE_VALIDATION_RULE_TILLAGE_DEPTH:"Disable validation rule #validate_tillage_depth"}},43830:(e,t,n)=>{"use strict";n.d(t,{i:()=>u,p:()=>d});var r=n(16028),i=n(18178),o=n(46386),a=n(48954),s=n(89805),l=n(45718),c=n(5651);const u=(0,i.createContext)({fitBounds:()=>null,fieldBoundaryAlert:null,setFieldBoundaryAlert:()=>null}),d=e=>{let{children:t}=e;const n=(0,r.mE)().map,[d,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{window.leafletElement=n,n.createPane("field-geometry"),n.getPane("field-geometry").style.zIndex=`${a.K.Map}`}),[n]);const h=(0,i.useCallback)(((e,t)=>{try{if(!n||!(0,s.D)(e))return;n.fitBounds(e,t||o.lZ)}catch(r){(0,l.e)(`fitBounds Err = ${r}`)}}),[n]),f=(0,i.useMemo)((()=>({fitBounds:h,fieldBoundaryAlert:d,setFieldBoundaryAlert:p})),[h,d]);return(0,c.jsx)(u.Provider,{value:f,children:t})}},98995:(e,t,n)=>{"use strict";n.d(t,{BJ:()=>s,EA:()=>c,VK:()=>l,kl:()=>a});var r=n(5229),i=n(37682);let o=function(e){return e.NoTill="no till",e.Low="reduced till",e.Conventional="conventional till",e}({});const a={[o.NoTill]:"#5cc5ef",[o.Low]:"#ffb745",[o.Conventional]:"#e7552c"},s={[o.NoTill]:()=>(0,r.t)({id:"TillageLabels.NoTillage",defaultMessage:"No Tillage"}),[o.Low]:()=>(0,r.t)({id:"TillageLabels.ReducedTillage",defaultMessage:"Reduced Tillage"}),[o.Conventional]:()=>(0,r.t)({id:"TillageLabels.ConventionalTillage",defaultMessage:"Conventional Tillage"})},l=(new Date).getFullYear(),c=[i.UY.ASSIGN_PRACTICES,i.UY.VIEW_OUTCOMES,i.UY.FIELD_BOUNDARIES,i.UY.CONTRACT,i.UY.ELIGIBILITY,i.UY.SURVEY]},83256:(e,t,n)=>{"use strict";n.d(t,{Mh:()=>i,NK:()=>a,OL:()=>o});var r=n(97165);const i=e=>{switch(e){case"no cover":return"fallow";case"commodity crop":return"winter_commodity_crop";default:return e}},o=e=>{switch(e){case"fallow":return"no cover";case"winter_commodity_crop":return"commodity crop";default:return e}},a=(e,t,n)=>{const i=(0,r.q$)(u.map((t=>e[t])).filter((e=>{var n;return void 0!==(null===e||void 0===e?void 0:e.id)&&c.includes(e.id)?l.includes(t):!!e&&!(null!==(n=s[e.id])&&void 0!==n&&n.includes(t))}))),o=(0,r.q$)(d.map((t=>e[t])).filter((e=>{var n;return void 0!==(null===e||void 0===e?void 0:e.id)&&c.includes(e.id)?l.includes(t):!!e&&!(null!==(n=s[e.id])&&void 0!==n&&n.includes(t))})));o.forEach((e=>{"winter_commodity_crop"===e.value&&(e.label="Winter Wheat")}));return{summerCropItems:i,winterCropItems:o,additionalCropItems:(0,r.q$)(p.map((t=>e[t])).filter((e=>n&&!!e)))}},s={},l=[116,117,118],c=[445,446],u=[4,16,446,380,62,76,105,106,118,126,127,134,149,161,181,183,215,218,225,234,239,241,244,424,260,265,273,276,426,299,302,314,315,319,320,343,356],d=[16,443,445,48,62,86,127,181,225,234,244,442,267,276,299,343,345,347,357],p=[182,467,468]},29766:(e,t,n)=>{"use strict";n.d(t,{D7:()=>o,w5:()=>a,zM:()=>i});var r=function(e){return e.NoTill="no till",e.Low="reduced till",e.Conventional="conventional till",e}(r||{});let i=function(e){return e.SpringTillage="Spring tillage",e.SummerCrop="Summer crop",e.FallTillage="Fall tillage",e.WinterCrop="Winter crop",e}({});const o=e=>null!==e&&void 0!==e&&e>40;function a(e){return!!e&&Object.values(r).includes(e)}},6856:(e,t,n)=>{"use strict";n.d(t,{E:()=>p,F:()=>d});var r=n(12581),i=n(57550),o=n(98995),a=n(29766),s=n(29771);const l=(0,i.vv)("enrollmentStep"),c={step:l&&(u=l,[s.l.Fields,s.l.CropPractices,s.l.AssignPractices,s.l.ViewOutcomes].includes(u))?l:s.l.Fields,year:o.VK,quarter:a.zM.SummerCrop,farmId:void 0,enrolledFields:{},mrvEnrolledFields:{},importedFields:{},overlapFields:[],eligibleRegionFields:{},ineligibleRegionFields:{},assignPracticesSelectedFields:[],dndcResults:{payment:0,tonsSequestered:0,detailedItems:[]},dndcPercentCompleted:0,ofsProgress:{hasOptisValues:!1,hasUserValues:!1,percentCompleted:0}};var u;const d=(0,r.oM)({name:"carbon",initialState:c,reducers:{updateStep:(e,t)=>{e.step=t.payload},setYear:(e,t)=>{e.year=t.payload},setQuarter:(e,t)=>{e.quarter=t.payload},setFarmId:(e,t)=>{e.farmId=t.payload},setEnrolledFields:(e,t)=>{e.enrolledFields={...e.enrolledFields,...t.payload}},setMRVEnrolledFields:(e,t)=>{var n;const r=(null!==(n=t.payload.mrvFields)&&void 0!==n?n:[]).reduce(((e,t)=>({...e,[t.fs_field_id]:t})),{});e.mrvEnrolledFields={...e.mrvEnrolledFields,...r}},setImportedFields:(e,t)=>{e.importedFields={...e.importedFields,...t.payload}},setOverlapFields:(e,t)=>{e.overlapFields=t.payload},setEligibleRegionFields:(e,t)=>{e.eligibleRegionFields={...e.eligibleRegionFields,...t.payload}},setIneligibleRegionFields:(e,t)=>{e.ineligibleRegionFields={...e.ineligibleRegionFields,...t.payload}},setAssignPracticeSelectedFields:(e,t)=>{e.assignPracticesSelectedFields=t.payload},removeKMLsFromRedux:(e,t)=>{const n={...e.enrolledFields};Object.keys(n).forEach((e=>{t.payload.kmlIds.includes(parseInt(e))&&delete n[parseInt(e)]})),e.enrolledFields=n},setDNDCResults:(e,t)=>{e.dndcResults=t.payload},setDNDCPercentCompleted:(e,t)=>{e.dndcPercentCompleted=t.payload},setOFSProgress:(e,t)=>{e.ofsProgress=t.payload}}}),p=d.actions},5307:(e,t,n)=>{"use strict";n.d(t,{_Z:()=>E,k4:()=>T,ly:()=>C,nj:()=>k,t1:()=>S,v9:()=>M});var r=n(12581),i=n(36888),o=n(26264),a=n(5395),s=n(62213),l=n(43199),c=n(95853),u=n(46386),d=n(97714),p=n(87050),h=n(14291),f=n(45718),m=n(36075),g=n(73042),y=n(62793),v=n(99630),b=n(57313),_=n(60463),w=n(37682),x=n(6856);const k=(0,r.hg)("carbon/setStep",(async(e,t)=>{var n;let{step:r,isReadOnly:i}=e;const o=t.getState(),a=null===(n=o.map)||void 0===n?void 0:n.drawControl.isEditingMode;if((0,d.OW)(o)||a)return;const s=t.dispatch((0,_.k)(r));if(!i&&!s)return;o.carbon.step!==r&&t.dispatch(x.E.updateStep(r))})),C=(0,r.hg)("carbon/enrollFields",(async(e,t)=>{t.dispatch(x.E.setEnrolledFields(e));const n=t.getState().carbon.overlapFields;if(n.length){const r=n.map((t=>{const n=t.filter((t=>!(t in e)));return n.length>1?n:void 0})).filter(g.$K);t.dispatch(x.E.setOverlapFields(r))}})),S=(0,r.hg)("carbon/toggleEnrollFields",(async(e,t)=>{let{fieldId:n}=e;await t.dispatch(C({[n]:!t.getState().carbon.enrolledFields[n]}))})),M=(0,r.hg)("carbon/importFields",(async(e,t)=>{t.dispatch(x.E.setImportedFields(e));const n=t.getState();if(n.carbon.overlapFields.length){const r=n.carbon.overlapFields.map((t=>{const n=t.filter((t=>!(t in e)));return n.length>1?n:void 0})).filter(g.$K);t.dispatch(x.E.setOverlapFields(r))}})),T=(0,r.hg)("carbon/saveEditedField",(async(e,t)=>{let{data:n,projectId:r,setBoundaryViolationsByFieldId:d}=e;try{var g,v,b,_,w,x,k,S;const e=t.getState(),o=null===(g=e.map)||void 0===g||null===(v=g.fieldsByFarmId[null===(b=n.properties)||void 0===b?void 0:b.fluro_farm_id])||void 0===v?void 0:v[null===(_=n.properties)||void 0===_?void 0:_.fluro_id];if(!o)return;const l={...null===(w=e.map)||void 0===w?void 0:w.fieldGeometries},p=await s.ZP.updateFieldBoundary(r,{core_farm_id:null===(x=n.properties)||void 0===x?void 0:x.fluro_farm_id,core_field_name:o.Name,kml:(0,m.K)(n),from_kml_group_id:o.FieldID});for(const t of p.data.boundary_rule_violations)(0,c.c)({message:t.message,type:t.error_level});p.data.boundary_rule_violations.length>0&&d((e=>({...e,[p.data.core_field.FieldID]:p.data.boundary_rule_violations})));const h=p.data.core_field;if(e.carbon.enrolledFields[o.ID]){const e={[o.ID]:!1,[h.ID]:!0};await t.dispatch(C(e))}delete l[o.MD5],n.properties=null!==(k=n.properties)&&void 0!==k?k:{},n.properties.fluro_id=h.ID,l[h.MD5]=(0,i.uf4)([n]),t.dispatch((0,y.UH)(null===(S=n.properties)||void 0===S?void 0:S.fluro_farm_id,o.ID,h)),t.dispatch((0,y.mX)(l)),setTimeout((()=>{const e=new a.GeoJSON(n);window.leafletElement.fitBounds(e.getBounds(),u.lZ)}),100)}catch(I){if((0,o.IZ)(I)&&(0,l.Kk)(I)){var M,T,E,P;const e=(0,h.pJ)(null!==(M=null===(T=I.response)||void 0===T||null===(E=T.data)||void 0===E||null===(P=E.detail)||void 0===P?void 0:P.results)&&void 0!==M?M:{}),t={};for(const[n,r]of e)t[n]=r;return void d(t)}(0,f.e)(`Cannot edit field boundary: ${(0,p.e)(I)}`)}})),E=(0,r.hg)(b.U.GET_DNDC_RESULTS,(async(e,t)=>{let{projectId:n,phaseId:r}=e;try{const e=await s.ZP.getDNDCResults(n,r),{line_items_summary:{total_carbon_sequestered:i,total_payment:o},line_items:a}=e.data;t.dispatch(x.E.setDNDCResults({payment:o,tonsSequestered:i,detailedItems:a}))}catch(i){t.dispatch((0,v.KA)({projectId:n,status:w.Xp.Failed})),(0,f.e)(i)}}))},54737:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,t:()=>a});var r=n(5229),i=n(37682),o=n(29771);const a={[o.l.Fields]:()=>(0,r.t)({id:"EnrollmentStep.Fields & Boundaries",defaultMessage:"Fields & Boundaries"}),[o.l.CropPractices]:()=>(0,r.t)({id:"EnrollmentStep.Crop history",defaultMessage:"Crop history"}),[o.l.AssignPractices]:()=>(0,r.t)({id:"EnrollmentStep.Assign Practices",defaultMessage:"Assign Practices"}),[o.l.ViewOutcomes]:()=>(0,r.t)({id:"EnrollmentStep.View Outcomes",defaultMessage:"View estimated outcomes"}),[o.l.Survey]:()=>(0,r.t)({id:"EnrollmentStep.Survey",defaultMessage:"Survey"})},s={[i.UY.FIELD_BOUNDARIES]:()=>(0,r.t)({id:`MRVStageType.${i.UY.FIELD_BOUNDARIES}`,defaultMessage:"Fields & Boundaries"}),[i.UY.CONFIRM_HISTORY]:()=>(0,r.t)({id:`MRVStageType.${i.UY.CONFIRM_HISTORY}`,defaultMessage:"Confirm History"}),[i.UY.ASSIGN_PRACTICES]:()=>(0,r.t)({id:"MRVStageType.INTENDED_PRACTICES",defaultMessage:"Intended Practices"}),[i.UY.VIEW_OUTCOMES]:()=>(0,r.t)({id:`MRVStageType.${i.UY.VIEW_OUTCOMES}`,defaultMessage:"Review estimates"}),[i.UY.HISTORICAL_CROP_ROTATION]:()=>(0,r.t)({id:`EnrollmentStep.${i.UY.HISTORICAL_CROP_ROTATION}`,defaultMessage:"Crop history"}),[i.UY.HISTORICAL_TILLAGE]:()=>(0,r.t)({id:`MRVStageType.${i.UY.HISTORICAL_TILLAGE}`,defaultMessage:"Tillage History"}),[i.UY.INTENDED_COMMODITY_CROPS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.INTENDED_COMMODITY_CROPS}`,defaultMessage:"Intended Commodity Crops"}),[i.UY.SURVEY]:()=>(0,r.t)({id:`MRVStageType.${i.UY.SURVEY}`,defaultMessage:"Survey"}),[i.UY.SUMMER_CROPS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.SUMMER_CROPS}`,defaultMessage:"Summer Crops"}),[i.UY.WINTER_CROPS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.WINTER_CROPS}`,defaultMessage:"Winter Crops"}),[i.UY.TILLAGE]:()=>(0,r.t)({id:`MRVStageType.${i.UY.TILLAGE}`,defaultMessage:"Tillage"}),[i.UY.NUTRIENT_MGMT]:()=>(0,r.t)({id:`MRVStageType.${i.UY.NUTRIENT_MGMT}`,defaultMessage:"Nutrient Management"}),[i.UY.NUTRIENT_MGMT_INTENDED]:()=>(0,r.t)({id:`MRVStageType.${i.UY.NUTRIENT_MGMT_INTENDED}`,defaultMessage:"Intended Nutrient Management"}),[i.UY.CONTRACT]:()=>(0,r.t)({id:`MRVStageType.${i.UY.CONTRACT}`,defaultMessage:"Contract"}),[i.UY.ELIGIBILITY]:()=>(0,r.t)({id:`MRVStageType.${i.UY.ELIGIBILITY}`,defaultMessage:"Eligibility"}),[i.UY.FIELD_INFORMATION]:()=>(0,r.t)({id:`MRVStageType.${i.UY.FIELD_INFORMATION}`,defaultMessage:"Field Information"}),[i.UY.IRRIGATION]:()=>(0,r.t)({id:`MRVStageType.${i.UY.IRRIGATION}`,defaultMessage:"Irrigation"}),[i.UY.RICE_CROP_HISTORY]:()=>(0,r.t)({id:`MRVStageType.${i.UY.RICE_CROP_HISTORY}`,defaultMessage:"Crop History"}),[i.UY.MOB_HISTORY]:()=>(0,r.t)({id:`MRVStageType.${i.UY.MOB_HISTORY}`,defaultMessage:"Mob History"}),[i.UY.MOB_MOVEMENT]:()=>(0,r.t)({id:`MRVStageType.${i.UY.MOB_MOVEMENT}`,defaultMessage:"Mob Movement"}),[i.UY.FARM_LEVEL_MANAGEMENT]:()=>(0,r.t)({id:`MRVStageType.${i.UY.FARM_LEVEL_MANAGEMENT}`,defaultMessage:"Farm Level Management"}),[i.UY.NUTRIENT_EVENTS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.NUTRIENT_EVENTS}`,defaultMessage:"Nutrients"}),[i.UY.CROP_EVENTS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.CROP_EVENTS}`,defaultMessage:"Crops"}),[i.UY.IRRIGATION_EVENTS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.IRRIGATION_EVENTS}`,defaultMessage:"Irrigation"}),[i.UY.TILLAGE_EVENTS]:()=>(0,r.t)({id:`MRVStageType.${i.UY.TILLAGE_EVENTS}`,defaultMessage:"Tillage"}),[i.UY.CHEMICAL_MANAGEMENT]:()=>(0,r.t)({id:`MRVStageType.${i.UY.CHEMICAL_MANAGEMENT}`,defaultMessage:"Chemical Management"})}},7170:(e,t,n)=>{"use strict";n.d(t,{D8:()=>_,KD:()=>v,OJ:()=>x,Z$:()=>p,Zf:()=>h,jU:()=>y,v7:()=>b,w2:()=>C,wu:()=>w,xj:()=>S,yl:()=>k});var r=n(99730),i=n(17176),o=n.n(i),a=n(27019),s=n(96765),l=n(5229),c=n(82037),u=n(34680),d=n(37682);const p=e=>e.carbon.step,h=e=>e.carbon,f=(0,r.P1)([u.JV],(e=>{var t;return Boolean(null===e||void 0===e||null===(t=e.contracts)||void 0===t?void 0:t.length)})),m=(0,r.P1)([c.SJ],(e=>Boolean((null===e||void 0===e?void 0:e.contract_type)===d.WN.ContractTemplate))),g=(0,r.P1)([u.JV,e=>(0,u.d1)(e,d.t5.Enrolment)],((e,t)=>{var n,r;return Boolean((null===t||void 0===t?void 0:t.show_contract)&&(null===e||void 0===e||null===(n=e.contracts)||void 0===n?void 0:n.length)&&"completed"===(null===(r=e.contracts[0])||void 0===r?void 0:r.docusign_status)&&e.contract_link)})),y=(0,r.P1)([m,f,g],((e,t,n)=>e?t:n)),v=(0,r.P1)([u.JV],(e=>{var t;return!(null===e||void 0===e||null===(t=e.contracts)||void 0===t||!t.find((e=>!!e.deletion_reason)))})),b=(0,r.P1)([u.JV,h],((e,t)=>({percentCompleted:null===t||void 0===t?void 0:t.dndcPercentCompleted,status:null===e||void 0===e?void 0:e.dndc_status,payment:null===t||void 0===t?void 0:t.dndcResults.payment,tonsSequestered:null===t||void 0===t?void 0:t.dndcResults.tonsSequestered,detailedItems:null===t||void 0===t?void 0:t.dndcResults.detailedItems}))),_=(0,r.P1)([u.JV,h],((e,t)=>{const{hasUserValues:n,hasOptisValues:r,percentCompleted:i}=null===t||void 0===t?void 0:t.ofsProgress;return{hasUserValues:n,hasOptisValues:r,percentCompleted:i,status:null===e||void 0===e?void 0:e.ofs_status}})),w=(0,r.P1)([g,u.JV,c.SJ,s.x2,f,b],((e,t,n,r,i,o)=>x(e,n,r,i,o,t))),x=(e,t,n,r,i,a)=>{const s=(null===t||void 0===t?void 0:t.contract_type)===d.WN.ContractTemplate,c=t&&o()(n).isBefore(o()(t.start_date)),u=t&&o()(n).isAfter(o()(t.end_date)),p=c||u,h=i.status===d.Xp.InProgress,f=e||p||s&&r||h;let m=null,g="";const y=(0,l.t)({id:"PhaseReadOnlyReason.EnrolledInProgram",defaultMessage:"you already enrolled in {program}"},{program:null===a||void 0===a?void 0:a.program_name});switch(!0){case e:case s&&r:m=d.Mk.ContractIsSigned,g=y;break;case c:m=d.Mk.TooEarly,g=(0,l.t)({id:"PhaseReadOnlyReason.EnrollmentStartsOnDate",defaultMessage:"enrollment starts on {date}"},{date:o()(null===t||void 0===t?void 0:t.start_date).format("MMMM D, YYYY")});break;case u:m=d.Mk.TooLate,g=(0,l.t)({id:"PhaseReadOnlyReason.EnrollmentHasEndedOnDate",defaultMessage:"enrollment has ended on {date}"},{date:o()(null===t||void 0===t?void 0:t.end_date).format("MMMM D, YYYY")});break;case h:m=d.Mk.CalculatingDNDC,g=(0,l.t)({id:"PhaseReadOnlyReason.OutcomesAreBeingCalculated",defaultMessage:"outcomes are being calculated. You can continue editing your fields once this process is done"});break;default:m=d.Mk.Unknown,g=""}return{isReadOnly:f,reason:m,detailedReason:g}},k=(0,r.P1)([a.MT,e=>e.carbon.enrolledFields],((e,t)=>e.filter((e=>t[e.ID])))),C=(0,r.P1)([a.MT,e=>e.carbon.importedFields],((e,t)=>e.filter((e=>t[e.ID])))),S=e=>e.carbon.assignPracticesSelectedFields},29771:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,l:()=>r});let r=function(e){return e.Fields="Enroll fields",e.AssignPractices="Assign Practices",e.ViewOutcomes="View estimated outcomes",e.CropPractices="Confirm history",e.Survey="Survey",e}({}),i=function(e){return e.ENROLL_FIELDS="carbon/enrollFields",e.SAVE_EDITED_FIELD="carbon/saveEditedField",e}({})},26167:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,a:()=>a});var r=n(22983);const i=[40,40],o={stroke:!0,color:r.U9,fillColor:r.U9,fillOpacity:.1,weight:1},a=(e,t)=>{t.setStyle(o)}},11184:(e,t,n)=>{"use strict";n.d(t,{k:()=>L,h:()=>O});var r=n(16962),i=n(18178),o=n(90359),a=n(48720),s=n(64991),l=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function c(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||l(r)&&l(i)))return!1;var r,i;return!0}const u=function(e,t){var n;void 0===t&&(t=c);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}};var d="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function p(e){cancelAnimationFrame(e.id)}function h(e,t){var n=d();var r={id:requestAnimationFrame((function i(){d()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var f=-1;function m(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}var g=null;function y(e){if(void 0===e&&(e=!1),null===g||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?g="positive-descending":(t.scrollLeft=1,g=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),g}return g}var v=function(e,t){return e};function b(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,l=e.getItemSize,c=e.getOffsetForIndexAndAlignment,d=e.getStartIndexForOffset,f=e.getStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,w=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,(0,a.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,a.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=u((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=u((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,o=i.direction,a=i.itemSize,s=i.layout,c=r._getItemStyleCache(b&&a,b&&s,b&&o);if(c.hasOwnProperty(e))t=c[e];else{var u=n(r.props,e,r._instanceProps),d=l(r.props,e,r._instanceProps),p="horizontal"===o||"horizontal"===s,h="rtl"===o,f=p?u:0;c[e]=t={position:"absolute",left:h?void 0:f,right:h?f:void 0,top:p?0:u,height:p?"100%":d,width:p?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=u((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(y()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&p(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=h(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,s.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return _(e,t),w(e),null};var x=t.prototype;return x.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},x.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===i?s.scrollWidth>s.clientWidth?m():0:s.scrollHeight>s.clientHeight?m():0}this.scrollTo(c(this.props,e,t,o,this._instanceProps,a))},x.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},x.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(y()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},x.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&p(this._resetIsScrollingTimeoutId)},x.render=function(){var e=this.props,t=e.children,n=e.className,a=e.direction,s=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemCount,p=e.itemData,h=e.itemKey,f=void 0===h?v:h,m=e.layout,g=e.outerElementType,y=e.outerTagName,b=e.style,_=e.useIsScrolling,w=e.width,x=this.state.isScrolling,k="horizontal"===a||"horizontal"===m,C=k?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),M=S[0],T=S[1],E=[];if(d>0)for(var P=M;P<=T;P++)E.push((0,i.createElement)(t,{data:p,key:f(P,p),index:P,isScrolling:_?x:void 0,style:this._getItemStyle(P)}));var I=r(this.props,this._instanceProps);return(0,i.createElement)(g||y||"div",{className:n,onScroll:C,ref:this._outerRefSetter,style:(0,o.Z)({position:"relative",height:s,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:a},b)},(0,i.createElement)(c||u||"div",{children:E,ref:l,style:{height:k?"100%":I,pointerEvents:x?"none":void 0,width:k?I:"100%"}}))},x._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},x._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=d(this.props,a,this._instanceProps),l=f(this.props,s,a,this._instanceProps),c=i&&"backward"!==o?1:Math.max(1,n),u=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,l+u)),s,l]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var _=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},w=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},x=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=w(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},k=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&w(e,n,t).offset<r;)n+=o,o*=2;return x(e,t,Math.min(n,i-1),Math.floor(n/2),r)},C=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},S=b({getItemOffset:function(e,t,n){return w(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:C,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=w(e,t,i),p=C(e,i),h=Math.max(0,Math.min(p-u,d.offset)),f=Math.max(0,d.offset-u+d.size+o);switch("smart"===n&&(n=r>=f-u&&r<=h+u?"auto":"center"),n){case"start":return h;case"end":return f;case"center":return Math.round(f+(h-f)/2);default:return r>=f&&r<=h?r:r<f?f:h}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?x(e,t,i,0,n):k(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=w(e,t,r),d=n+c,p=u.offset+u.size,h=t;h<a-1&&p<d;)h++,p+=w(e,h,r).size;return h},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var M=n(36777),T=n(5651);const E=i.memo((e=>{var t;let{data:n,index:r,style:i}=e;const o=n[r],a="select-all"===(null===(t=n[0])||void 0===t?void 0:t.props.option.value)?30:0,s={...i,top:Number(i.top)-a+8},l=null===o||void 0===o?void 0:o.key,c=null===o||void 0===o?void 0:o.props;return o&&null!==c&&void 0!==c&&c.option.value&&["select-all","deselect-all"].includes(null===c||void 0===c?void 0:c.option.value)?o:(0,T.jsx)(M.ZT,{component:"li",...c,noWrap:!0,style:s,children:o},l)})),P=i.createContext({}),I=i.forwardRef(((e,t)=>{const n=i.useContext(P);return(0,T.jsx)("div",{ref:t,...e,...n})}));const O=i.forwardRef((function(e,t){const{children:n,...r}=e,o=[];Array.isArray(n)&&n.forEach((e=>{o.push(e),o.push(...e.children||[])}));const a=(0,M.Fg)(),s=(0,M.ac)(a.breakpoints.up("sm"),{noSsr:!0}),l=o.length,c=s?36:48,u=function(){const e=i.useRef(null);return null!==e.current&&e.current.resetAfterIndex(0,!0),e}();return(0,T.jsx)("div",{ref:t,children:(0,T.jsx)(P.Provider,{value:r,children:(0,T.jsx)(S,{style:{padding:0,margin:0},itemData:o,height:16+(l>10?10*c:l*c),width:"100%",ref:u,outerElementType:I,innerElementType:"ul",itemSize:()=>c,overscanCount:5,itemCount:l,children:E})})})})),L=(0,M.zo)(r.Z)({"& ul":{padding:0}})},28768:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>a,N_:()=>s,RI:()=>i,mG:()=>d,u9:()=>u});var r=n(49346);let i=function(e){return e.Liquid="liquid",e.Dry="dry",e}({});var o=function(e){return e.Mass="mass",e.Volume="volume",e}(o||{});const a=(e,t,n,r)=>{const a=[],s=u(n,r);if(!e||!t.length)return Object.values(s);for(const l of t){const t=s[l];if(!t)continue;const n=e===i.Liquid&&t.category===o.Volume,r=e===i.Dry&&t.category===o.Mass;(n||r)&&a.push(t)}return a},s=(e,t)=>{const n={...c(t),...l(t)};return Object(n)[e]||null},l=e=>({[r.bG.Kg1Sqm1]:{label:e({id:"Unit.Kg/sqm",defaultMessage:"kg/sqm"}),value:r.bG.Kg1Sqm1,category:o.Mass},[r.bG.Kg1Ha1]:{label:e({id:"Unit.Kg/ha",defaultMessage:"kg/ha"}),value:r.bG.Kg1Ha1,category:o.Mass},[r.bG.Mt1Ha1]:{label:e({id:"Unit.mt/ha",defaultMessage:"mt/ha"}),value:r.bG.Mt1Ha1,category:o.Mass},[r.bG.Mt1Sqm1]:{label:e({id:"Unit.mt/sqm",defaultMessage:"mt/sqm"}),value:r.bG.Mt1Sqm1,category:o.Mass},[r.bG.L1Ha1]:{label:e({id:"Unit.L/ha",defaultMessage:"L/ha"}),value:r.bG.L1Ha1,category:o.Volume},[r.bG.L1Sqm1]:{label:e({id:"Unit.L/sqm",defaultMessage:"L/sqm"}),value:r.bG.L1Sqm1,category:o.Volume}}),c=e=>({[r.Q6.Gal1Ac1]:{label:e({id:"Unit.Gal/ac",defaultMessage:"gal/ac"}),value:r.Q6.Gal1Ac1,category:o.Volume},[r.Q6.Lb1Ac1]:{label:e({id:"Unit.Lb/ac",defaultMessage:"lb/ac"}),value:r.Q6.Lb1Ac1,category:o.Mass},[r.Q6.Tn1Ac1]:{label:e({id:"Unit.Tn/ac",defaultMessage:"tn/ac"}),value:r.Q6.Tn1Ac1,category:o.Mass},[r.Q6.Qt1Ac1]:{label:e({id:"Unit.Qt/ac",defaultMessage:"qt/ac"}),value:r.Q6.Qt1Ac1,category:o.Volume}}),u=(e,t)=>e?l(t):c(t),d=(e,t)=>{const n=null===t||void 0===t?void 0:t.options.find((t=>"string"!==typeof t&&t.value===e));return(null===n||void 0===n?void 0:n.meta)||null}},25433:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(18178),i=n(72457),o=n(5229),a=n(56585),s=n(5651);const l=e=>{let{onChange:t,getLabel:n}=e;const{id:l,defaultValue:c,value:u,name:d,disabled:p,label:h,placeholder:f}=(0,r.useContext)(a.r),m=Boolean(Number(u||c)),g=h?` (${f})`:"";return(0,s.jsx)(i.cv,{defaultChecked:m,checked:m,id:`${l}|${Math.random()}`,label:n?n(m):(m?(0,o.t)({id:"BooleanLabelYes",defaultMessage:"Yes"}):(0,o.t)({id:"BooleanLabelNo",defaultMessage:"No"}))+g,"aria-label":h,disabled:p,name:d||"",type:"switch",onChange:e=>t(Boolean(e)?"1":"0")})}},88512:(e,t,n)=>{"use strict";n.d(t,{am:()=>le,Ob:()=>ce,X8:()=>se});var r=n(18178),i=n(30057),o=n(55927),a=n(75820),s=n(49346),l=n(44530),c=n(22168),u=n(90454),d=n(83312);const p={metric:[{label:d.NW.formatMessage({id:"Unit.kg/ha",defaultMessage:"kg/ha"}),value:"kg/ha"},{label:d.NW.formatMessage({id:"Unit.t/ha",defaultMessage:"t/ha"}),value:"t/ha"}],imperial:[{label:d.NW.formatMessage({id:"Unit.bu/ac",defaultMessage:"bu/ac"}),value:"bu/ac"},{label:d.NW.formatMessage({id:"Unit.T/ac",defaultMessage:"T/ac"}),value:"T/ac"},{label:d.NW.formatMessage({id:"Unit.lb/ac",defaultMessage:"lb/ac"}),value:"lb/ac"}]},h={metric:[{label:d.NW.formatMessage({id:"mm",defaultMessage:"mm"}),value:"mm"},{label:d.NW.formatMessage({id:"mm/ha",defaultMessage:"mm/ha"}),value:"mm1ha-1"},{label:d.NW.formatMessage({id:"mL/ha",defaultMessage:"mL/ha"}),value:"mL1ha-1"},{label:d.NW.formatMessage({id:"Unit.ML/ha",defaultMessage:"ML/ha"}),value:"ML1ha-1"}],imperial:[{label:d.NW.formatMessage({id:"Unit.in",defaultMessage:"in"}),value:"in"},{label:d.NW.formatMessage({id:"Unit.in/ac",defaultMessage:"in/ac"}),value:"in1ac-1"},{label:d.NW.formatMessage({id:"oz/ac",defaultMessage:"oz/ac"}),value:"oz1ac-1"}]};var f=n(72457),m=n(2782),g=n(36777),y=n(48954),v=n(56585),b=n(84917);const _=b.ZP.div`
  width: ${e=>e.width||"100%"};
  flex: 1;

  .input-crop-select {
    min-width: 140px;
  }

  > div {
    width: 100%;

    .fluro-select-lite-item {
      width: auto;
      min-width: auto;
      .item-title {
        flex-wrap: nowrap !important;
      }
    }

    .selected-item .fluro-select-lite-item {
      padding: 8px 0;
    }

    .list {
      .fluro-select-lite-item {
        min-width: 200px;
      }
    }
  }
`;var w=n(5651);const x={option:(e,t)=>({...e,...t.isSelected&&{color:"#000"},...t.isFocused&&{backgroundColor:"unset"},minHeight:"52px",padding:"8px 16px",borderTop:`1px solid ${g.rS.colorPalette.fs_main.gray_200}`,display:"flex",alignItems:"center",cursor:"pointer",":active":{backgroundColor:"unset"}}),placeholder:e=>({...e,fontSize:"14px",color:g.rS.color.text.main}),valueContainer:e=>({...e,paddingLeft:0,fontSize:"14px",borderBottom:"1px solid rgba(0,0,0,0.12)",paddingBottom:"4px"}),indicatorSeparator:()=>({display:"none"}),menuPortal:e=>({...e,zIndex:y.K.Select,borderRadius:"4px",border:"none",backgroundColor:"red"}),menuList:e=>({...e,padding:0}),menu:e=>({...e,border:"none",boxShadow:"0 2px 4px 2px rgba(60, 64, 67, 0.28)",padding:0}),control:e=>({...e,boxShadow:"none",color:"rgba(0, 0, 0, 0.54)","&:hover":{borderColor:g.rS.colorPalette.fs_main.gray_200},borderRadius:"4px",fontSize:"1rem",padding:"3px 10px",height:44,backgroundColor:"transparent",border:0})},k=e=>{let{onChange:t,testId:n,maxOptionSelection:o,voidSelectionOptionValue:a=null,options:s,translationPrefix:l=""}=e;const c=(0,i.YB)(),u=(0,r.useContext)(v.r),{value:d,disabled:p}=u;return(0,w.jsx)(_,{width:"300px",children:(0,w.jsx)(m.ZP,{"data-testid":n,options:s,isMulti:!0,onChange:e=>{(e=>{t(e.map((e=>e.value)).join(","))})(e)},isOptionDisabled:e=>!(null===d||void 0===d||!d.length)&&(o&&d.split(",").length>=o||e.value===a||d===a),menuPortalTarget:document.body,isDisabled:p,menuPlacement:"top",placeholder:c.formatMessage({id:"Placeholder.SelectOption",defaultMessage:"Select option"}),components:{DropdownIndicator:()=>(0,w.jsx)(f.xu,{children:"arrow_drop_down"}),CrossIcon:()=>(0,w.jsx)(g.JO,{type:"cross",size:14})},value:null!==d&&void 0!==d&&d.length?d.split(",").map((e=>({value:e,label:c.formatMessage({id:`${l}${e}`,defaultMessage:e})}))):[],styles:x})})};var C=n(21719),S=n(5229);const M=e=>{let{options:t,testId:n,onChange:i}=e;const o=(0,r.useContext)(v.r),{id:a,label:s,value:l,options:c,disabled:u,placeholder:d,defaultValue:p,name:h}=o,f=(0,r.useMemo)((()=>{var e;return null!==t&&void 0!==t&&t.length?t:null!==c&&void 0!==c&&c.length?null===(e="string"===typeof c?[]:c)||void 0===e?void 0:e.map((e=>({value:e,label:e}))):[]}),[t,c]);return(0,w.jsx)(_,{children:(0,w.jsx)(C.H,{testId:n,id:a,items:f,disabled:u,selectedValue:l||p,placeholder:d||(0,S.t)({id:"Placeholder.Select option",defaultMessage:"Select option"}),label:s,onSelect:e=>i(e),name:h})})},T=e=>{let{onChange:t,isMetric:n}=e;const i=(0,r.useContext)(v.r),{options:o}=i,a=(0,r.useMemo)((()=>{const e=n?p.metric:p.imperial,t=e.filter((e=>null===o||void 0===o?void 0:o.includes(e.value)));return t.length?t:e}),[o,n]);return(0,w.jsx)(M,{onChange:t,options:a})};function E(e){let{onChange:t}=e;const n=(0,i.YB)(),{id:o,value:a,defaultValue:s,options:l,disabled:c,placeholder:d,label:p,name:h}=(0,r.useContext)(v.r),f=(0,u.LC)(),m=(0,r.useMemo)((()=>f(l||[])),[l,f]),g=a||s,y=e=>null===e||void 0===e?void 0:e.toLowerCase().replace(/[^a-z0-9]/gi,""),b=y(g),x=m.find((e=>y(e.value)===b));return(0,w.jsx)(_,{children:(0,w.jsx)(C.H,{id:o,name:h,items:m,disabled:c,selectedValue:null===x||void 0===x?void 0:x.value,placeholder:d||n.formatMessage({id:"Placeholder.Select product",defaultMessage:"Select product"}),label:x?p:g,onSelect:e=>t(e,!0),className:"product-select",isSearchable:!0})})}var P=n(34680),I=n(37682),O=n(20304),L=n(35397),R=n(1730),j=n(57550),D=n(83256);const A=e=>{let{options:t,onChange:n}=e;const{id:o,label:a,value:s,defaultValue:l,subtitle:c,options:u,disabled:d,placeholder:p}=(0,r.useContext)(v.r),{formatMessage:h}=(0,i.YB)(),f="true"===(0,j.vv)("debugValues"),m=(0,r.useMemo)((()=>null!==t&&void 0!==t&&t.length?t:u?u.map((e=>{const t=h({id:e.label,defaultMessage:e.label});return{value:e.value,icon:(0,w.jsx)(O.C,{cropType:e.value,iconSrc:e.icon_url}),label:t}})):[]),[t,u]),g=s||l;let y=c;return!m.some((e=>e.value===g))&&g&&(y=void 0),(0,w.jsxs)(_,{children:[(0,w.jsx)(C.H,{id:o,items:m,disabled:d,selectedValue:(0,D.Mh)(g),placeholder:p||h({id:"Placeholder.Select crop",defaultMessage:"Select crop"}),label:a,subtitle:y,onSelect:e=>n((0,D.OL)(e)),className:"input-crop-select",isSearchable:!0}),f&&(0,w.jsxs)(L.k,{gap:"4px",children:[(0,w.jsx)(R.x,{secondary:!0,variant:"small-thin",children:o}),(0,w.jsx)(R.x,{secondary:!0,variant:"small-thin",className:"font-weight-500",children:s})]})]})};var N=n(25433),F=n(46242);const z=e=>{let{onChange:t,openToDate:n}=e;const{id:i,value:o,defaultValue:a,label:s,disabled:l,name:c}=(0,r.useContext)(v.r),u=o||a;return(0,w.jsx)(B,{id:i,autoComplete:"false",disabled:l,label:s,onChange:e=>{var n;t(null!==(n=null===e||void 0===e?void 0:e.toISOString())&&void 0!==n?n:"")},selected:u,hasLabelIndent:!1,className:"input-date",openToDate:n,name:c,portal:!0,hideFormat:!0})},B=(0,b.ZP)(F.$)`
  min-width: 130px;
`;var U=n(73042),$=n(56624);const V=e=>{let{disabled:t,onChange:n,totalDecimalPlaces:i=1}=e;const{id:a,value:s,label:l,placeholder:u,disabled:d,name:p,minValue:h,maxValue:f}=(0,r.useContext)(v.r),m=(0,o.C)(c.DC),g=q(s,i),{bulkEditDialogVisible:y}=(0,r.useContext)($.z);const b=e=>{const t=e.target.value;n(t)},_=y?"bulk-edit":m;return(0,w.jsx)(Z,{type:"text",id:a,defaultValue:g,label:l,placeholder:u,disabled:t||d,onChange:e=>function(e){var t,r;if((null!==(t=null===(r=e.split(".")[1])||void 0===r?void 0:r.length)&&void 0!==t?t:-1)>i)return;let o=e.replace(/[^\d.]/g,"").replace(/(\..*)\.$/,"$1");const a=Number(o);isNaN(a)||((0,U.$K)(h)&&a<h?o=`${h}`:(0,U.$K)(f)&&a>f&&(o=`${f}`)),n(o,!1)}(String(e)),onKeyUp:e=>"Enter"===e.code&&b,onBlur:b,name:p,"aria-label":p,min:h,max:f},_)},q=(e,t)=>"string"===typeof e&&-1!==e.indexOf(".")?Number(e).toFixed(t):e,Z=(0,b.ZP)(f.nv)`
  min-width: 80px;
`,H=e=>{let{disabled:t,onChange:n,totalDecimalPlaces:i=1,postfix:a,convertImperialToMetric:l,convertMetricToImperial:u}=e;const{id:d,value:p,label:h,placeholder:f,disabled:m,name:g,minValue:y,maxValue:b}=(0,r.useContext)(v.r),_=(0,o.C)(c.DC),x=_===s.Ug.ImperialUnits,{bulkEditDialogVisible:k}=(0,r.useContext)($.z),C=(0,r.useMemo)((()=>{const e=x&&u?`${u(Number(p))}`:p;return q(e,i)}),[u,x,i,p]),S=e=>{const t=e.target.value;if(x&&l){const e=`${l(Number(t))}`;e!==p&&n(e)}else n(t)};const{convertedMinValue:M,convertedMaxValue:T}=(0,r.useMemo)((()=>({convertedMinValue:x&&u&&(0,U.$K)(y)?u(y):y,convertedMaxValue:x&&u&&(0,U.$K)(b)?u(b):b})),[u,x,b,y]),E=k?"bulk-edit":_;return(0,w.jsx)(Z,{type:"text",id:d,defaultValue:C,label:h,placeholder:f,disabled:t||m,onChange:e=>function(e){var t,r;if((null!==(t=null===(r=e.split(".")[1])||void 0===r?void 0:r.length)&&void 0!==t?t:-1)>i)return;let o=e.replace(/[^\d.]/g,"").replace(/(\..*)\.$/,"$1");const a=Number(o);isNaN(a)||((0,U.$K)(M)&&a<M?o=`${M}`:(0,U.$K)(T)&&a>T&&(o=`${T}`)),n(o,!1)}(String(e)),onKeyUp:e=>"Enter"===e.code&&S(e),onBlur:S,name:g,"aria-label":g,rightIcon:a,min:M,max:T},E)},G=e=>{let{onChange:t}=e;const{id:n,value:i,label:o,placeholder:a,disabled:s}=(0,r.useContext)(v.r),[l,c]=(0,r.useState)(i);return(0,r.useEffect)((()=>{i!==l&&c(i)}),[i]),(0,w.jsx)(f.nv,{type:"text",id:n,value:l,label:o,placeholder:a,disabled:s,onChange:e=>function(e){const n=e.replace(/[^\w.-]/g,"");c(n),t(n,!1)}(e),onBlur:function(){t(l)}})};var W=n(28768);const Y=b.ZP.div`
  display: flex;
  align-items: center;
  width: 100%;

  > div {
    display: inline-block;
    padding-right: 12px;
  }

  :first-child {
    width: 100%;
  }
`,K=e=>{var t,n,a,s;let{onChange:l,isMetric:c}=e;const u=(0,i.YB)(),{entityValueRows:d,stageId:p,usingHackyCompositeInput:h}=(0,r.useContext)($.z),{value:f,defaultValue:m,entityId:g,disabled:y,combinedInputValue:b,rowId:x}=(0,r.useContext)(v.r),k=null!==f&&void 0!==f?f:m,S=(0,o.C)((e=>(0,P.TG)(e,p))),M=g&&d&&(null===(t=d[g])||void 0===t?void 0:t.find((e=>e.row_id===x))),T=null===M||void 0===M?void 0:M.values,E=null===S||void 0===S?void 0:S.find((e=>{let{type:t}=e;return t===I.Zi.ApplicationRateType})),O="Nitrogen rate"===(E&&T&&(null===(n=T[E.id])||void 0===n?void 0:n.value)),L=null===S||void 0===S?void 0:S.find((e=>{let{type:t}=e;return t===I.Zi.ApplicationProduct||t===I.Zi.PesticideFarmprintGaff})),R=L&&T&&(null===(a=T[L.id])||void 0===a?void 0:a.value),{applicationProductType:j,rateUnitAttribute:D}=(0,r.useMemo)((()=>({applicationProductType:O?W.RI.Dry:(0,W.mG)(R,L),rateUnitAttribute:null===S||void 0===S?void 0:S.find((e=>{let{type:t}=e;return t===I.Zi.ApplicationRateUnit}))})),[L,O,R,S]),A=b||(null!==D&&void 0!==D&&D.id&&M?null===(s=T[D.id])||void 0===s?void 0:s.value:null===D||void 0===D?void 0:D.default_value),{hackedRateUnitOpts:N,selectedRateUnitValue:F}=(0,r.useMemo)((()=>{var e,t;let n=(0,W.Ho)(j||null,(null===D||void 0===D?void 0:D.options)||[],c,u.formatMessage),r=null===(e=n)||void 0===e?void 0:e.find((e=>e.value===A));if(n.length&&A&&!r){const e=(0,W.N_)(A,u.formatMessage);e&&(n=[...n,e],r=e)}return{hackedRateUnitOpts:n,selectedRateUnitValue:null===(t=r)||void 0===t?void 0:t.value}}),[j,null===D||void 0===D?void 0:D.options,c,u.formatMessage,A]);return(0,w.jsxs)(Y,{children:[(0,w.jsx)(V,{disabled:h&&!R,onChange:l,totalDecimalPlaces:2}),D&&h&&(0,w.jsx)(_,{children:(0,w.jsx)(C.H,{items:N,selectedValue:F,placeholder:u.formatMessage({id:"Placeholder.SelectOption",defaultMessage:"Select option"}),label:D.label,onSelect:e=>{l(k,!0,[{attribute:D,value:e}])},disabled:y||!R,name:D.name||u.formatMessage({id:"Placeholder.RateUnit",defaultMessage:"Rate unit"})})})]})},X=e=>{let{type:t,onChange:n,disabled:i}=e;const{id:o,value:a="",label:s,placeholder:l,disabled:c}=(0,r.useContext)(v.r);return(0,w.jsx)(f.nv,{type:t,id:o,value:a,label:s,placeholder:l,disabled:i||c,onChange:e=>n(e)})},J=b.ZP.div`
  display: flex;
  align-items: center;
  width: 100%;

  > div {
    display: inline-block;
    padding-right: 12px;
  }

  :first-child {
    width: 100%;
  }
`,Q=e=>{var t,n,i;let{onChange:a}=e;const{entityValueRows:s,stageId:l,usingHackyCompositeInput:c}=(0,r.useContext)($.z),{value:u,defaultValue:d,entityId:p,disabled:h,combinedInputValue:f,rowId:m}=(0,r.useContext)(v.r),g=null!==u&&void 0!==u?u:d,y=(0,o.C)((e=>(0,P.TG)(e,l))).find((e=>{let{type:t}=e;return t===I.Zi.WaterAmountUnit})),b=p&&s&&(null===(t=s[p])||void 0===t?void 0:t.find((e=>e.row_id===m))),x=null===b||void 0===b?void 0:b.values,k=f||(null!==y&&void 0!==y&&y.id&&b?null===(n=x[y.id])||void 0===n?void 0:n.value:null===y||void 0===y?void 0:y.default_value),M=null!==(i=null===y||void 0===y?void 0:y.options.map((e=>"string"===typeof e?{label:e,value:e}:e)))&&void 0!==i?i:[],T=M.find((e=>e.value===k));return(0,w.jsxs)(J,{children:[(0,w.jsx)(V,{onChange:a,totalDecimalPlaces:0}),y&&c&&(0,w.jsx)(_,{children:(0,w.jsx)(C.H,{items:M,selectedValue:null===T||void 0===T?void 0:T.value,placeholder:(0,S.t)({id:"Placeholder.Select option",defaultMessage:"Select option"}),label:y.label,onSelect:e=>{a(g,!0,[{attribute:y,value:e}])},disabled:h,name:y.name||"Water Unit"})})]})};var ee=n(19429),te=n(29869),ne=n(98995);const re=e=>{let{onChange:t}=e;const{id:n,value:i,defaultValue:a,label:s,placeholder:l,disabled:u}=(0,r.useContext)(v.r),d=(0,b.Fg)();return(0,o.C)(c.rf)?a?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(te.A,{label:i||ne.VK,tone:"dimmed",disabled:!0}),(0,w.jsx)(ee.w,{icon:!0,iconEl:(0,w.jsx)(g.JO,{type:"cross-circled",color:d.color.text.secondary}),onClick:()=>t(void 0),disabled:u})]}):(0,w.jsx)(f.nv,{type:"text",id:n,value:i,label:s,placeholder:l,disabled:u,onChange:e=>function(e){const n=e.replace(/[^\w.-]/g,"");t(n,!1)}(e),onBlur:()=>t(i)}):(0,w.jsx)(te.A,{label:i||ne.VK,tone:"dimmed",disabled:!0})},ie=e=>{let{onChange:t,options:n}=e;const r=(0,i.YB)(),o=(0,u.LC)(),a=null!==n&&void 0!==n&&n.length?o(n):[{value:"0%",label:r.formatMessage({id:"Option.No residue harvested",defaultMessage:"No residue harvested"})},{value:"25%",label:r.formatMessage({id:"Option.HarvestedPercent",defaultMessage:"{percent}% harvested"},{percent:25})},{value:"50%",label:r.formatMessage({id:"Option.HarvestedPercent",defaultMessage:"{percent}% harvested"},{percent:50})},{value:"75%",label:r.formatMessage({id:"Option.HarvestedPercent",defaultMessage:"{percent}% harvested"},{percent:75})},{value:"100%",label:r.formatMessage({id:"Option.All residue harvested",defaultMessage:"All residue harvested"})}];return(0,w.jsx)(M,{testId:"MRV-table-cell-input-select--Residue harvested",options:a,onChange:t})},oe=e=>{let{onChange:t}=e;const n=[{value:"fall",label:(0,S.t)({id:"TillagePeriodSelect.Fall",defaultMessage:"Fall"})},{value:"spring",label:(0,S.t)({id:"TillagePeriodSelect.Spring",defaultMessage:"Spring"})}];return(0,w.jsx)(M,{testId:"MRV-table-cell-input-select--Tillage period",options:n,onChange:t})},ae=e=>{let{onChange:t,testId:n}=e;const{disabled:i,value:o,options:a,placeholder:s,defaultValue:l,label:c,subtitle:d}=(0,r.useContext)(v.r),p=(0,u.LC)(),h=(0,r.useMemo)((()=>p(a||[]).map((e=>{var t;return{...e,label:ne.BJ[e.value](),icon:(0,w.jsx)(C.Q,{color:null!==(t=ne.kl[e.value])&&void 0!==t?t:"#fff"})}}))||[]),[a,p]);return(0,w.jsx)(_,{children:(0,w.jsx)(C.H,{testId:n,disabled:i,placeholder:s||(0,S.t)({id:"Placeholder.Select tillage",defaultMessage:"Select tillage"}),selectedValue:o||l,items:h,onSelect:e=>t(e),label:c,subtitle:d})})},se=e=>[I.Zi.Number,I.Zi.CropYield,I.Zi.SummerDryYield,I.Zi.WinterDryYield,I.Zi.ApplicationArea,I.Zi.HeadCount,I.Zi.AreaTilledForPastureRenewalPct,I.Zi.AreaTilledTotalPct,I.Zi.LandscapeModificationsFuelUsage,I.Zi.IrrigationFuelUsage,I.Zi.IrrigationElectricityUsage,I.Zi.TotalEnergyUsage,I.Zi.TotalFuelUsage,I.Zi.TotalArea,I.Zi.SubsurfaceDripDepth,I.Zi.FloodPct,I.Zi.StripFraction,I.Zi.FallTillageDepth,I.Zi.SpringTillageDepth,I.Zi.TillageDepth,I.Zi.ApplicationDepth,I.Zi.SeedingRate].includes(e),le=e=>{const{onChange:t,...n}=e,{type:r,name:i,options:o}=n;return(0,w.jsx)(v.z,{value:n,children:(0,w.jsx)(ue,{name:i,type:r,options:o,onChange:t})})},ce=(0,r.memo)(le),ue=e=>{let{type:t,options:n,onChange:r}=e;const d=(0,i.YB)(),p=(0,o.C)(P.$k),f=(0,o.C)(c.DC)===s.Ug.MetricUnits,m=f?d.formatMessage({id:"Unit.cm",defaultMessage:"cm"}):d.formatMessage({id:"Unit.in",defaultMessage:"in"}),g=(0,u.LC)();switch(t){case I.Zi.TillagePeriod:return(0,w.jsx)(oe,{onChange:r});case I.Zi.SpringTillagePractice:case I.Zi.TillagePractice:case I.Zi.FallTillagePractice:return(0,w.jsx)(ae,{testId:"MRV-table-cell-input-select--Tillage practice",onChange:r});case I.Zi.SummerResidueHarvested:case I.Zi.WinterResidueHarvested:case I.Zi.ResidueHarvested:return(0,w.jsx)(ie,{onChange:r,options:n});case I.Zi.SummerCropType:case I.Zi.WinterCropType:case I.Zi.CropType:return(0,w.jsx)(A,{onChange:r});case I.Zi.ApplicationProduct:return(0,w.jsx)(E,{onChange:r});case I.Zi.SummerHarvestDate:case I.Zi.WinterPlantingDate:case I.Zi.PlantingDate:case I.Zi.HarvestDate:case I.Zi.TillageDate:case I.Zi.StartDate:case I.Zi.EndDate:case I.Zi.SummerPlantingDate:case I.Zi.WinterHarvestDate:case I.Zi.FallTillageDate:case I.Zi.SpringTillageDate:case I.Zi.ApplicationDate:case I.Zi.Date:return(0,w.jsx)(z,{onChange:r});case I.Zi.WinterCropCommitment:case I.Zi.Bool:case I.Zi.SoilInversion:case I.Zi.IrrigationEnabled:case I.Zi.NutrientManagementEnabled:case I.Zi.TillageEvent:return(0,w.jsx)(N.y,{onChange:r});case I.Zi.ResidueBurnt:return(0,w.jsx)(N.y,{onChange:r,getLabel:e=>d.formatMessage({id:"Option."+(e?"Burnt":"Unburnt"),defaultMessage:e?"Burnt":"Unburnt"})});case I.Zi.ApplicationRate:return(0,w.jsx)(K,{onChange:r,isMetric:f});case I.Zi.WaterAmount:return(0,w.jsx)(Q,{onChange:r});case I.Zi.Number:case I.Zi.CropYield:case I.Zi.SummerDryYield:case I.Zi.WinterDryYield:case I.Zi.ApplicationArea:case I.Zi.HeadCount:case I.Zi.AreaTilledForPastureRenewalPct:case I.Zi.AreaTilledTotalPct:case I.Zi.LandscapeModificationsFuelUsage:case I.Zi.IrrigationFuelUsage:case I.Zi.IrrigationElectricityUsage:case I.Zi.TotalEnergyUsage:case I.Zi.TotalFuelUsage:case I.Zi.TotalArea:case I.Zi.SubsurfaceDripDepth:case I.Zi.FloodPct:case I.Zi.StripFraction:case I.Zi.PlantingRate:case I.Zi.FieldMarginArea:return(0,w.jsx)(V,{onChange:r,totalDecimalPlaces:3});case I.Zi.FallTillageDepth:case I.Zi.SpringTillageDepth:case I.Zi.TillageDepth:case I.Zi.ApplicationDepth:return(0,w.jsx)(H,{onChange:r,totalDecimalPlaces:1,convertImperialToMetric:a._X,convertMetricToImperial:a.LH,postfix:(0,w.jsx)("span",{children:m})});case I.Zi.SeedingRate:return(0,w.jsx)(V,{onChange:r,totalDecimalPlaces:0});case I.Zi.String:case I.Zi.IrrigationElectricityGridName:case I.Zi.FarmName:case I.Zi.SeedVariety:case I.Zi.Other:return(0,w.jsx)(X,{onChange:r});case I.Zi.FarmNumber:return(0,w.jsx)(G,{onChange:r});case I.Zi.RecordYear:return(0,w.jsx)(re,{onChange:r});case I.Zi.ApplicationRateUnit:return(0,w.jsx)(M,{onChange:r,options:n});case I.Zi.YieldRateUnit:return(0,w.jsx)(T,{onChange:r,isMetric:f});case I.Zi.IrrigationMethod:case I.Zi.WinterCropTermination:case I.Zi.ApplicationMethod:case I.Zi.PlantingSeason:case I.Zi.CoverCropMix:case I.Zi.CropUsage:case I.Zi.ProductionSystem:case I.Zi.PlantingMethod:case I.Zi.PlantingRateUnit:return(0,w.jsx)(M,{testId:`MRV-table-cell-input-select--${(0,l.LF)(t)}`,onChange:r,options:g(n||[])});case I.Zi.WaterAmountUnit:return(0,w.jsx)(M,{onChange:r});case I.Zi.IrrigationRateUnit:{const e=function(e,t){switch(e){case 133:return[{label:(0,S.t)({id:"Unit.ML/ha",defaultMessage:"ML/ha"}),value:"mL1ha-1"},{label:(0,S.t)({id:"Unit.mm/ha",defaultMessage:"mm/ha"}),value:"mm1ha-1"}];case 275:return[{label:(0,S.t)({id:"Unit.ML/ha",defaultMessage:"ML/ha"}),value:"mL1ha-1"}];default:return t}}(p,f?h.metric:h.imperial);return(0,w.jsx)(M,{onChange:r,options:e})}case I.Zi.LivestockClass:return n?(0,w.jsx)(M,{options:g(n),onChange:r}):null;case I.Zi.SubsurfaceDripDepthUnit:case I.Zi.ApplicationRateType:return(0,w.jsx)(M,{onChange:r,options:g(n||[])});case I.Zi.Additives:return(0,w.jsx)(k,{onChange:r,maxOptionSelection:2,translationPrefix:"Option.additives-short.",voidSelectionOptionValue:d.formatMessage({id:"Option.No additives",defaultMessage:"No additives"}),options:g(n||[])})}return null!==n&&void 0!==n&&n.length?(0,w.jsx)(M,{onChange:r}):null}},56585:(e,t,n)=>{"use strict";n.d(t,{r:()=>r,z:()=>i});const r=(0,n(18178).createContext)({}),{Provider:i}=r},56624:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(18178),i=n(37682);const o=(0,r.createContext)({entityValueRows:{},usingHackyCompositeInput:!0,setUsingHackyCompositeInput:()=>null,revalidateEntityValueRows:()=>Promise.resolve(void 0),phaseType:i.t5.Enrolment,bulkEditDialogVisible:!1})},84159:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(37682);function i(e){return!!e.type_&&[r.UY.HISTORICAL_CROP_ROTATION,r.UY.HISTORICAL_TILLAGE,r.UY.INTENDED_COMMODITY_CROPS,r.UY.TILLAGE,r.UY.IRRIGATION,r.UY.NUTRIENT_MGMT,r.UY.NUTRIENT_MGMT_INTENDED].includes(e.type_)}},45943:(e,t,n)=>{"use strict";n.d(t,{_k:()=>P,uS:()=>D,iy:()=>I,e3:()=>O,xG:()=>E});var r=n(69548),i=(n(18178),n(30057)),o=n(68746),a=n(14291),s=n(55927),l=n(69014),c=n(97165),u=n(5651);function d(e){let{attribute:t,value:n}=e;const r=(0,c.Qe)();return t?(0,u.jsxs)("div",{children:[(0,u.jsxs)("strong",{children:[r(t),":"]})," ",n]}):null}var p=n(37682),h=n(19303);function f(e){var t;let{attributes:n,values:r,startDate:o}=e;const{formatMessage:a}=(0,i.YB)(),s=(null===(t=r.find((e=>e.attribute_type===p.Zi.IrrigationMethod)))||void 0===t?void 0:t.value)||a({id:"Unknown",defaultMessage:"Unknown"}),c=n.find((e=>e.type===p.Zi.IrrigationMethod)),f=n.find((e=>(0,h.VU)(e.type)));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d,{attribute:c,value:s}),(0,u.jsx)(d,{attribute:f,value:(0,l.Z)(o)})]})}var m=n(49346),g=n(22168);function y(e){var t,n,r,o,a,c;let{attributes:f,values:y,startDate:v}=e;const{formatMessage:b}=(0,i.YB)(),_=b({id:"Unknown",defaultMessage:"Unknown"}),w=(0,s.C)(g.DC),x=(0,i.YB)(),k=w===m.Ug.MetricUnits?x.formatMessage({id:"Unit.cm",defaultMessage:"cm"}):x.formatMessage({id:"Unit.in",defaultMessage:"in"}),C=f.find((e=>e.type===p.Zi.ApplicationProduct)),S=(null===(t=y.find((e=>e.attribute_type===p.Zi.ApplicationProduct)))||void 0===t?void 0:t.value)||_,M=f.find((e=>e.type===p.Zi.ApplicationMethod)),T=(null===(n=y.find((e=>e.attribute_type===p.Zi.ApplicationMethod)))||void 0===n?void 0:n.value)||_,E=f.find((e=>e.type===p.Zi.ApplicationDepth)),P=null===(r=y.find((e=>e.attribute_type===p.Zi.ApplicationDepth)))||void 0===r?void 0:r.value,I=P?`${P}${k}`:_,O=f.find((e=>e.type===p.Zi.ApplicationArea)),L=(null===(o=y.find((e=>e.attribute_type===p.Zi.ApplicationArea)))||void 0===o?void 0:o.value)||_,R=f.find((e=>e.type===p.Zi.ApplicationRate)),j=`${(null===(a=y.find((e=>e.attribute_type===p.Zi.ApplicationRate)))||void 0===a?void 0:a.value)||_} ${(null===(c=y.find((e=>e.attribute_type===p.Zi.ApplicationRateUnit)))||void 0===c?void 0:c.value)||_}`,D=f.find((e=>(0,h.VU)(e.type)));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d,{attribute:C,value:S}),(0,u.jsx)(d,{attribute:M,value:T}),(0,u.jsx)(d,{attribute:E,value:I}),(0,u.jsx)(d,{attribute:O,value:L}),(0,u.jsx)(d,{attribute:R,value:j}),(0,u.jsx)(d,{attribute:D,value:(0,l.Z)(v)})]})}var v=n(75820),b=n(8854),_=n(98995),w=n(29766);function x(e){var t,n;let{attributes:r,values:o,startDate:a}=e;const{formatMessage:c}=(0,i.YB)(),f=c({id:"Unknown",defaultMessage:"Unknown"}),y=(0,s.C)(g.DC),x=(0,i.YB)(),k=y===m.Ug.MetricUnits?x.formatMessage({id:"Unit.cm",defaultMessage:"cm"}):x.formatMessage({id:"Unit.in",defaultMessage:"in"}),C=null===(t=o.find((e=>e.attribute_type===p.Zi.TillagePractice)))||void 0===t?void 0:t.value,S=C,M=C&&(0,w.w5)(S)?_.BJ[S]():f,T=null===(n=o.find((e=>e.attribute_type===p.Zi.TillageDepth)))||void 0===n?void 0:n.value,E=y===m.Ug.MetricUnits?Number(null!==T&&void 0!==T?T:0):(0,b.gU)((0,v.En)(null,"cm",T),1),P=T?`${E} ${k}`:f,I=r.find((e=>e.type===p.Zi.TillagePractice)),O=r.find((e=>e.type===p.Zi.TillageDepth)),L=r.find((e=>(0,h.VU)(e.type)));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d,{attribute:L,value:(0,l.Z)(a)}),(0,u.jsx)(d,{attribute:O,value:P}),(0,u.jsx)(d,{attribute:I,value:M})]})}var k=n(34680),C=n(4436);function S(e){var t;let{attributes:n,values:r,startDate:a,endDate:s}=e;const{cropByValue:c}=(0,o.n)(),h=D(r),{formatMessage:f}=(0,i.YB)(),m=f({id:"Unknown",defaultMessage:"Unknown"}),g=h?(0,C.A)(c,h,f):m,y=null===(t=r.find((e=>e.attribute_type===p.Zi.CoverCropMix)))||void 0===t?void 0:t.value,v=s?`${(0,l.Z)(a)} - ${(0,l.Z)(s)}`:`${(0,l.Z)(a)} - `,b=n.find((e=>e.type===p.Zi.CropType)),_=n.find((e=>e.type===p.Zi.CoverCropMix));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d,{attribute:b,value:null!==g&&void 0!==g?g:""}),(0,u.jsx)(d,{attribute:_,value:y?f({id:`Option.${y}`,defaultMessage:y}):m}),(0,u.jsxs)("div",{children:[(0,u.jsxs)("strong",{children:[f({id:"Growing period",defaultMessage:"Growing period"}),":"]})," ",v]})]})}function M(e){let{stageId:t,values:n,stageCategory:r,startDate:i,endDate:o}=e;const a=(0,s.C)((e=>(0,k.kq)(e,t)));switch(r){case P.Crop:return(0,u.jsx)(S,{startDate:i,endDate:o,attributes:a,values:n});case P.Tillage:return(0,u.jsx)(x,{startDate:i,attributes:a,values:n});case P.Irrigation:return(0,u.jsx)(f,{startDate:i,attributes:a,values:n});case P.Nutrient:return(0,u.jsx)(y,{startDate:i,attributes:a,values:n})}}var T=n(84159);function E(e,t,n,r){const{cropByValue:a}=(0,o.n)(),{formatMessage:s}=(0,i.YB)(),l=[];for(const i of r){if(!(0,T.S)(i)||!i.timeline_enabled||i.phase_type!==n.phase_type)continue;const r=I(i.type_);if(!N(n,r))continue;const o=l.find((e=>e.id===r)),c=R(i,e,t,a,s);o?o.events.push(...c):l.push({id:r,title:O(r,s),events:c})}return l}let P=function(e){return e.Crop="crop",e.Tillage="tillage",e.Irrigation="irrigation",e.Nutrient="nutrient",e}({});function I(e){switch(e){case p.UY.HISTORICAL_CROP_ROTATION:case p.UY.INTENDED_COMMODITY_CROPS:return P.Crop;case p.UY.HISTORICAL_TILLAGE:case p.UY.TILLAGE:return P.Tillage;case p.UY.IRRIGATION:return P.Irrigation;case p.UY.NUTRIENT_MGMT:case p.UY.NUTRIENT_MGMT_INTENDED:return P.Nutrient}}function O(e,t){switch(e){case P.Crop:return t({id:"Crop",defaultMessage:"Crop"});case P.Tillage:return t({id:"Tillage",defaultMessage:"Tillage"});case P.Irrigation:return t({id:"Irrigation",defaultMessage:"Irrigation"});case P.Nutrient:return t({id:"Nutrient",defaultMessage:"Nutrient"})}}var L=function(e){return e.Historical="historical",e.Intended="intended",e.Actual="actual",e}(L||{});function R(e,t,n,r,i){const o=[],s=n[t];if(!s)return o;for(const l of s){const t=(0,a._J)(l.values).filter((t=>e.attributes.includes(t.attribute_id)));if(0===t.length)continue;const n=j(e.type_,t,`${l.entity_id}-${l.row_id}`,e.id,r,i);n&&o.push(n)}return o}function j(e,t,n,i,o,a){const{startDate:s,endDate:l}=function(e){var t,n;const i=null===(t=e.find((e=>(0,h.VU)(e.attribute_type))))||void 0===t?void 0:t.value,o=new Date(i),a=null===(n=e.find((e=>(0,h.Ux)(e.attribute_type))))||void 0===n?void 0:n.value,s=new Date(a);return{startDate:i&&(0,r.Z)(o)?o:void 0,endDate:a&&(0,r.Z)(s)?s:void 0}}(t);if(!s||function(e){const t=e.find((e=>e.attribute_type===p.Zi.TillageEvent||e.attribute_type===p.Zi.IrrigationEnabled||e.attribute_type===p.Zi.NutrientManagementEnabled||e.attribute_type===p.Zi.WinterCropCommitment));return"0"===(null===t||void 0===t?void 0:t.value)}(t))return null;const c=I(e),d={id:n,startDate:s,endDate:l,color:A(e),tooltip:(0,u.jsx)(M,{values:t,stageCategory:c,stageId:i,startDate:s,endDate:l})};if(c===P.Crop){const e=D(t);e&&(d.title=(0,C.A)(o,e,a))}return function(e){switch(e){case p.UY.HISTORICAL_CROP_ROTATION:case p.UY.HISTORICAL_TILLAGE:return L.Historical;case p.UY.INTENDED_COMMODITY_CROPS:case p.UY.NUTRIENT_MGMT_INTENDED:return L.Intended;case p.UY.TILLAGE:case p.UY.IRRIGATION:case p.UY.NUTRIENT_MGMT:return L.Actual}}(e)===L.Intended&&(d.variant="subtle"),d}function D(e){var t;return null===(t=e.find((e=>e.attribute_type===p.Zi.CropType||e.attribute_type===p.Zi.SummerCropType||e.attribute_type===p.Zi.WinterCropType)))||void 0===t?void 0:t.value}function A(e){switch(I(e)){case P.Crop:return"1";case P.Tillage:return"6";case P.Irrigation:return"4";case P.Nutrient:return"2"}}function N(e,t){switch(t){case P.Crop:return!!e.timeline_has_crop_events;case P.Irrigation:return!!e.timeline_has_irrigation_events;case P.Tillage:return!!e.timeline_has_tillage_events;case P.Nutrient:return!!e.timeline_has_nutrient_events}}},27679:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,m:()=>a});var r=n(18178),i=n(5651);const o=(0,r.createContext)({highlighting:!1,highlightUntouchedCells:()=>{}}),a=e=>{const[t,n]=(0,r.useState)(0),[a,s]=(0,r.useState)(!1);(0,r.useEffect)((()=>{s(!0);const e=setTimeout((()=>s(!1)),700);return()=>clearTimeout(e)}),[t]);const l=(0,r.useCallback)((()=>n((e=>e+1))),[]),c=(0,r.useMemo)((()=>({highlighting:a,highlightUntouchedCells:l})),[a,l]);return(0,i.jsx)(o.Provider,{value:c,children:e.children})}},30765:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r=n(45581),i=n(55927),o=n(67547),a=n(79320),s=n(34680);const l=()=>{const{projectId:e,programId:t}=(0,o.tZ)(),[{stageId:n,programId:l,entityId:c,event:u,summerCrops:d,configView:p,tableView:h}]=(0,a.H1)(),f=(0,r.TH)(),m=(0,i.C)((t=>(0,s.Jf)(t,e)));return{projectId:e,programId:m||t||l,stageId:parseInt(String(n)),entityId:parseInt(String(c)),contractEvent:u,summerCrops:d?String(d).split(","):[],configView:p,isMonitoring:f.pathname.includes("monitoring"),isEnrollment:f.pathname.includes("enrollment"),isMRVHomePage:f.pathname.includes("home"),isTableView:!!h}}},99630:(e,t,n)=>{"use strict";n.d(t,{E$:()=>f,Hr:()=>y,KA:()=>h,Ni:()=>v,RB:()=>c,SQ:()=>u,ST:()=>d,bk:()=>s,hd:()=>m,nr:()=>b,pg:()=>p,uM:()=>l,xn:()=>g});var r=n(77432),i=n(93294),o=n(26630),a=n(8022);const{addProgramInvites:s,removeProgramInvite:l,removeStage:c,setProgramInvites:u,updateFieldDNDCStatus:d,updateFieldOFSStatus:p,updateProjectDNDCStatus:h,updateProjectOFSStatus:f,updateProjectCustomRegValues:m,updateStage:g}=o.entitiesActions,{addAccess:y}=r.accessActions,{setStageCompletion:v}=i.completionSliceActions,{setBoundaries:b}=a.programBoundariesSliceActions},47457:(e,t,n)=>{"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(let n=0;n<e.length;n++){const r=e[n];if(!r||!i(r,t))return!0}return!1}function i(e,t){if(o(e))return function(e,t){var n;const{id:r,operator:i,value:o}=e,a=null===(n=t[r])||void 0===n?void 0:n.value;if(!a)return!1;if("is"===i)return o===a;return o!==a}(e,t);if(a(e)){const{dependencies:n,operator:r}=e;if("and"===r){for(let e=0;e<n.length;e++){const r=n[e];if(!r||!i(r,t))return!1}return!0}return n.some((e=>i(e,t)))}return!0}function o(e){return void 0!==e.id}function a(e){return void 0!==e.dependencies}n.d(t,{k8:()=>a,ou:()=>o,x$:()=>r})},62383:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,r:()=>l});var r=n(95602),i=n(33022),o=n(37682),a=n(72766);const s={name:"New program",description:"description",version:1,editable:!0,crediting_year:(new Date).getFullYear(),owner_org:1,assets:[],practice_changes:[],carbon_price:0,self_enrol:!1,locale:i.g.EnUS,units:o.H_.US_IMPERIAL,is_optis_enabled:!0,program_type:o.vw.Internal,group_management:!1},l=e=>(0,r.Fv)(e,[a.J2])},96446:(e,t,n)=>{"use strict";n.d(t,{Vr:()=>C,c4:()=>x,EA:()=>k,Mv:()=>w});var r=n(12581),i=n(62213),o=n(3308),a=n(45718);class s{static getMRVUserType(e){return o.Z.get(`${i.OL}/external_integrations/hubspot/mrv_user_type`,{params:{email:e}})}static updateMRVUserType(e,t){return o.Z.post(`${i.OL}/external_integrations/hubspot/mrv_user_type`,{email:e,properties:[{property:"mrv_user_type",value:t}]})}}var l=n(39965),c=n(91316),u=n(39475),d=n(22168),p=n(90826),h=n(5307),f=n(37682),m=n(39670),g=n(99630),y=n(62383),v=n(34680),b=n(5197),_=n(57313);const w=(0,r.hg)(_.U.FETCH_WHOLE_PROJECT,(async function(e,t){let{projectId:n}=e,{dispatch:r,getState:i}=t;const o=r((0,b.GG)({projectId:n,params:{include_dndc_status:!0,include_ofs_status:!0}})),{payload:{result:a,entities:{projects:s}}}=await o,l=s[a];await r((0,b.Lv)({programId:l.program_id}));const c=(0,v.qz)(i(),n),u={};c.forEach((e=>{var t;u[null===(t=e.core_attributes)||void 0===t?void 0:t.kml_id]=!0})),await r((0,h.ly)(u))})),x=e=>async(t,n)=>{var r,i,o,a,s;const c=n(),u=(0,v.sZ)(c,f.t5.Monitoring),{isWorkspaceMrv:d}=(0,p.Ex)(),h=null===e||void 0===e||null===(r=e.data)||void 0===r||null===(i=r.status_desc)||void 0===i||null===(o=i.results)||void 0===o?void 0:o.mrv;if(!d||!h)return;const m=null===e||void 0===e||null===(a=e.data)||void 0===a||null===(s=a.payload)||void 0===s?void 0:s.mrv_project_id;m&&(await t(w({projectId:m})),await Promise.all(null===u||void 0===u?void 0:u.map((async e=>t((0,b.r7)({projectId:m,stageId:e.id})))))),t((0,l.qO)(l.iR.fmsSyncReport,!0,{data:h.values}))},k=(0,r.hg)(_.U.FETCH_USER_PERMISSIONS,(async(e,t)=>{let{dispatch:n,getState:r}=t;const o=(await i.ZP.getUserPermissions()).data,l=o.project_producer,p=o.program_admin,{original_user_program_roles:h}=o,f=(0,d.I_)(r()),y=o.program_admin.length&&"Program-admin",v=o.project_producer.length&&"Producer",b=y||v;if(b&&(0,c.e)(f,!0)){m.Z.people.set({"MRV user type":b});const e=v?"producer":"program-admin";u.BB&&(async(e,t)=>{try{var n,r;const l=await s.getMRVUserType(e),c=null===(n=l.data.properties)||void 0===n||null===(r=n.mrv_user_type)||void 0===r?void 0:r.value;var i;if("error"===l.data.status&&"contact does not exist"!==l.data.message)return void(0,a.e)(`Error in HubspotApi.getMRVUserType ${null===(i=l.data)||void 0===i?void 0:i.message}`);if(c!==t)try{await s.updateMRVUserType(e,t)}catch(o){(0,a.e)(`Error in HubspotApi.updateMRVUserType ${o}`)}}catch(o){(0,a.e)(`Error in HubspotApi.getMRVUserType ${o}`)}})(f,e)}return n((0,g.Hr)({admin:p,producer:l,program_roles:h})),o})),C=(0,r.hg)(_.U.ADD_PROGRAM,(async(e,t)=>{let{program:n,shouldCreateEBDCStages:r}=e;const o=await i.ZP.addProgram(n,r),a=(0,y.r)(null===o||void 0===o?void 0:o.data);return t.dispatch(k()),a}))},82037:(e,t,n)=>{"use strict";n.d(t,{GD:()=>d,J3:()=>l,SJ:()=>s,nA:()=>f,q3:()=>c,qG:()=>u,sJ:()=>p});var r=n(99730),i=n(37682),o=n(63114),a=n(34680);const s=(0,r.P1)([e=>(0,a.d1)(e,i.t5.Enrolment)],(e=>e)),l=(0,r.P1)([e=>(0,a.YN)(e,i.t5.Enrolment)],(e=>null===e||void 0===e?void 0:e.find((e=>e.type_===i.UY.VIEW_OUTCOMES)))),c=(0,r.P1)([e=>(0,a.YN)(e,i.t5.Enrolment)],(e=>null===e||void 0===e?void 0:e.find((e=>e.type_===i.UY.ASSIGN_PRACTICES)))),u=(0,r.P1)([c,a.NX],((e,t)=>{if(e)return Object.values(t).find((t=>t.parent_stage_id===e.id))})),d=(0,r.P1)([c,a.NX],((e,t)=>{if(e)return Object.values(t).find((t=>t.parent_stage_id===e.id&&t.type===i.Zi.SkipAssignPractice))})),p=(0,r.P1)([e=>(0,a.YN)(e,i.t5.Enrolment)],(e=>null===e||void 0===e?void 0:e.find((e=>e.type_===i.UY.CONFIRM_HISTORY)))),h=(0,r.P1)([a.CC,(e,t)=>t],((e,t)=>Object.values(e).filter((e=>e.attribute_id===t)))),f=(0,r.P1)([h,a.$t,(e,t)=>t],((e,t,n)=>e.filter((e=>{const n=(0,o.B)(e);return null!==e.value&&!t[n]}))))},72766:(e,t,n)=>{"use strict";n.d(t,{B5:()=>u,Dx:()=>i,J2:()=>s,_y:()=>o});var r=n(95602);const i=new r.fK.Entity("attributes"),o=new r.fK.Entity("stages",{attributes:[i]}),a=new r.fK.Entity("phases",{stages:[o]}),s=new r.fK.Entity("programs",{phases:[a]}),l=new r.fK.Entity("fields"),c=new r.fK.Entity("projectValues",{}),u=new r.fK.Entity("projects",{fields:[l],program:s,values:[c]})},34680:(e,t,n)=>{"use strict";n.d(t,{$k:()=>K,$t:()=>Ie,AI:()=>W,AT:()=>Pe,Av:()=>De,Bs:()=>be,Bx:()=>Se,CC:()=>B,FO:()=>V,Fc:()=>O,Fu:()=>He,JV:()=>Y,Je:()=>Te,Jf:()=>G,Jj:()=>j,Jp:()=>ge,LI:()=>$e,LY:()=>N,M0:()=>Le,NX:()=>D,Ok:()=>Ye,PM:()=>Ze,PP:()=>Z,Pk:()=>F,SI:()=>Ue,SS:()=>de,Sl:()=>ne,TG:()=>je,YN:()=>pe,Yn:()=>We,_I:()=>U,_J:()=>nt,_S:()=>ee,aD:()=>Re,aH:()=>q,aU:()=>z,ai:()=>ce,ar:()=>re,bB:()=>R,cF:()=>Ve,d1:()=>le,dD:()=>he,dL:()=>et,dl:()=>ze,gi:()=>Ee,hy:()=>Je,i:()=>qe,iZ:()=>oe,ie:()=>A,j:()=>te,k7:()=>se,kq:()=>Ae,kv:()=>Qe,lK:()=>Oe,lT:()=>H,lm:()=>L,lp:()=>ie,mJ:()=>rt,mV:()=>Ge,no:()=>I,nv:()=>we,of:()=>Q,p6:()=>ye,pj:()=>Ne,qB:()=>Fe,qz:()=>Ce,rI:()=>Me,sZ:()=>_e,w2:()=>xe,yb:()=>tt,zV:()=>Ke,zq:()=>X});var r=n(99730),i=n(33094),o=n(27225),a=n.n(o),s=n(91295),l=n.n(s),c=n(22111),u=n.n(c),d=n(17176),p=n.n(d),h=n(61676),f=n(27019),m=n(96765),g=n(89805),y=n(14291),v=n(57550),b=n(35551),_=n(56637),w=n(73042),x=n(5229),k=n(73246),C=n(37682),S=n(19303),M=n(70044),T=n(55006),E=n(66793);const P=e=>e.monitoring.entities,I=e=>e.monitoring.completion,O=e=>e.monitoring.access.producer,L=(0,r.P1)([e=>e.monitoring.access.admin],(e=>!!e.length)),R=e=>e.monitoring.access.programRoles,j=e=>e.monitoring.access.hasLoaded,D=(0,r.P1)([P],(e=>e.attributes)),A=(0,r.P1)([P],(e=>e.stages)),N=(0,r.P1)([P],(e=>e.fields)),F=(0,r.P1)([P],(e=>e.phases||{})),z=(0,r.P1)([P],(e=>e.programs)),B=(0,r.P1)([P],(e=>e.projectValues)),U=(0,r.P1)([P],(e=>e.projects)),$=(e,t)=>t,V=(e,t)=>null===e||void 0===e?void 0:e[t],q=e=>{var t;const n=(0,i.cu)({path:k.SS})(e);return parseInt(`${null===n||void 0===n||null===(t=n.params)||void 0===t?void 0:t.projectId}`)},Z=(0,r.P1)([z,(e,t)=>t],((e,t)=>t&&e[t]||null)),H=(0,b.U)([U,$],((e,t)=>V(e,t))),G=(0,b.U)([H],(e=>null===e||void 0===e?void 0:e.program_id)),W=(0,b.U)([H],(e=>null===e||void 0===e?void 0:e.custom_reg_values)),Y=(0,r.P1)([U,q],((e,t)=>V(e,t))),K=(0,r.P1)([Y,e=>{var t;const n=(0,i.cu)({path:k.sQ})(e);return parseInt(`${null===n||void 0===n||null===(t=n.params)||void 0===t?void 0:t.programId}`)}],((e,t)=>(null===e||void 0===e?void 0:e.program_id)||t||void 0)),X=(0,r.P1)([K,z],((e,t)=>e?t[e]:void 0)),J=(e,t)=>void 0!==t?Z(e,t):X(e),Q=e=>t=>{const n=J(t,e);return[null===n||void 0===n?void 0:n.units,null===n||void 0===n?void 0:n.crediting_year,null===n||void 0===n?void 0:n.currency_char,!!n]},ee=e=>t=>{var n;return null===(n=J(t,e))||void 0===n?void 0:n.units},te=(0,r.P1)([X],(e=>(null===e||void 0===e?void 0:e.currency_char)||"$")),ne=(0,r.P1)([H,z],((e,t)=>{const n=null===e||void 0===e?void 0:e.program_id;if(n)return t[n]})),re=(0,r.P1)([X,e=>e.monitoring.programBoundaries],((e,t)=>{if(e)return t[e.id]})),ie=(e,t)=>{var n;const r={};return null===t||void 0===t||null===(n=t.phases)||void 0===n||n.forEach((t=>{const n=null===e||void 0===e?void 0:e[t];n&&(r[n.type_]=n)})),r},oe=(0,r.P1)([F,(e,t)=>t],((e,t)=>t?e[t]:void 0)),ae=(0,r.P1)([F,X],ie),se=(0,r.P1)([(e,t)=>t,z,F],((e,t,n)=>{const r=t[e];return ie(n,r)})),le=(0,b.U)([ae,(e,t)=>t],((e,t)=>t?e[t]:void 0)),ce=(0,b.U)([le],(e=>(0,S.$s)(null===e||void 0===e?void 0:e.start_date,null===e||void 0===e?void 0:e.end_date))),ue=(0,b.U)([ae,(e,t)=>t],((e,t)=>null===t||void 0===t?void 0:t.map((t=>e[t])))),de=(0,b.U)([ae],(e=>{const t=e[C.t5.Enrolment];return Boolean((null===t||void 0===t?void 0:t.start_date)&&(null===t||void 0===t?void 0:t.end_date)&&(p()().isBefore(p()(null===t||void 0===t?void 0:t.start_date))||p()().isAfter(p()(null===t||void 0===t?void 0:t.end_date))))})),pe=(0,b.U)([le,A],((e,t)=>l()(null===e||void 0===e?void 0:e.stages.map((e=>t[e])).filter(w.$K),"order")||[])),he=(0,b.U)([le,A],((e,t)=>l()(null===e||void 0===e?void 0:e.stages.map((e=>{var n;return null===(n=t[e])||void 0===n?void 0:n.type_})).filter(w.$K),"order")||[])),fe=(0,b.U)([ue,A],((e,t)=>e.flatMap((e=>l()(null===e||void 0===e?void 0:e.stages.map((e=>t[e])).filter(w.$K),"order")||[])))),me=(0,b.U)([pe],(e=>{const t={};return null===e||void 0===e||e.forEach((e=>{e.type_&&(t[e.type_]=e)})),t})),ge=(0,b.U)([me,(e,t,n)=>n],((e,t)=>e[t])),ye=(0,b.U)([A],(e=>Object.values(e).filter((e=>e.id&&e.enabled))||[])),ve=(e,t,n)=>null!==t&&void 0!==t&&t.length?u()(t.filter((t=>t.enabled&&(0===t.attributes.length||t.attributes.some((e=>{var t;return null===(t=n[e])||void 0===t?void 0:t.enabled})))||t.type_===C.UY.CONTRACT&&!!e.find((e=>null===e||void 0===e?void 0:e.show_contract))||t.type_===C.UY.VIEW_OUTCOMES&&!!e.find((e=>{var t;return null===e||void 0===e||null===(t=e.params)||void 0===t?void 0:t.outcome_estimation})))),"order"):[],be=(0,b.U)([ue,fe,D],((e,t,n)=>ve(e,t,n))),_e=(0,b.U)([le,pe,D],((e,t,n)=>ve([e],t,n))),we=(0,r.P1)([Y],(e=>(null===e||void 0===e?void 0:e.farms)||[])),xe=(0,r.P1)([H],(e=>(null===e||void 0===e?void 0:e.fields)||[])),ke=(0,r.P1)([Y],(e=>(null===e||void 0===e?void 0:e.fields)||[])),Ce=(0,r.P1)([xe,N],((e,t)=>null===e||void 0===e?void 0:e.map((e=>t[e])).filter((e=>!!e&&!(null!==e&&void 0!==e&&e.deleted_at))))),Se=(0,r.P1)([ke,N],((e,t)=>null===e||void 0===e?void 0:e.map((e=>t[e])).filter((e=>!!e&&!e.deleted_at)))),Me=(0,r.P1)([ke,N],((e,t)=>null===e||void 0===e?void 0:e.filter((e=>{var n,r;return t[e]&&!(null!==(n=t[e])&&void 0!==n&&n.deleted_at)&&(null===(r=t[e])||void 0===r?void 0:r.ofs_status)===C.TV.InProgress})))),Te=((0,r.P1)([Se],(e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>(e[t.id]=t,e)),{}))),(0,r.P1)([Se,f.t8],((e,t)=>{const n={};return e.forEach((e=>{const r=t[e.fs_field_id];r&&(n[r.ID]=e.id)})),n}))),Ee=(0,r.P1)([e=>e.carbon.mrvEnrolledFields,f.t8],((e,t)=>{const n={};for(const i in e){var r;const o=null===(r=t[i])||void 0===r?void 0:r.ID,a=e[i];o&&a&&(n[o]=a)}return n})),Pe=(0,r.P1)([Se,f.t8],((e,t)=>{const n={};return e.forEach((e=>{const r=t[e.fs_field_id];r&&(n[e.id]=r.ID)})),n})),Ie=(0,r.P1)([ke,N],((e,t)=>{const n={};return e.forEach((e=>{var r;null!==(r=t[e])&&void 0!==r&&r.deleted_at&&(n[e]=!0)})),n})),Oe=(0,r.P1)(Ce,(e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.map((e=>{var t,n,r;if(null===e||void 0===e||null===(t=e.core_attributes)||void 0===t||!t.geometry)return null;const i={...null===(n=e.core_attributes)||void 0===n?void 0:n.geometry},[o=0,a=0]=(0,g.g8)(i);return i.properties={fieldId:e.id,name:null===(r=e.core_attributes)||void 0===r?void 0:r.field_name,position:{lat:a,lng:o}},i})).filter(w.$K))&&void 0!==t?t:[]})),Le=(0,b.U)([A,(e,t)=>t],((e,t)=>{if(t)return null===e||void 0===e?void 0:e[t]})),Re=(0,b.U)([A,D,(e,t)=>t],((e,t,n)=>{const r=n?null===e||void 0===e?void 0:e[n]:void 0,i={};return r?(r.attributes.forEach((e=>{const n=t[e];n&&(i[n.type]=e)})),i):i})),je=(0,b.U)([Le,D],((e,t)=>(0,_.YC)((null===e||void 0===e?void 0:e.attributes.map((e=>t[e])).filter((e=>!!e)))||[],"order")||[])),De=(0,b.U)([je],(e=>e.map((e=>e.type)))),Ae=(0,b.U)([je],(e=>null===e||void 0===e?void 0:e.filter((e=>e.enabled)))),Ne=(0,b.U)([D,$],((e,t)=>e[t])),Fe=(0,b.U)([N,$],((e,t)=>V(e,t))),ze=(0,r.P1)([Y,B],((e,t)=>{var n;return(null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.map((e=>t[e])))||[]})),Be=(0,r.P1)([ze,A,(e,t)=>t],((e,t,n)=>{var r;const i=t[n];if(null===e||void 0===e||!e.length||null===i||void 0===i||null===(r=i.attributes)||void 0===r||!r.length)return[];const o=i.attributes.reduce(((e,t)=>({...e,[t]:!0})),{});return e.filter((e=>void 0!==(null===e||void 0===e?void 0:e.attribute_id)&&!!o[null===e||void 0===e?void 0:e.attribute_id]))})),Ue=(0,r.P1)([Be],(e=>a()(e,"field_id"))),$e=(e,t)=>{var n;return null===(n=z(e))||void 0===n?void 0:n[t]},Ve=e=>t=>!!e&&!!t.monitoring.entities.programsLoading[e],qe=(e,t)=>{const n=H(e,t);if(n){const t=$e(e,n.program_id);return(null===t||void 0===t?void 0:t.practice_changes)||[]}return[]},Ze=(0,r.P1)([O,U],((e,t)=>e.map((e=>t[e])).filter(w.$K))),He=(0,r.P1)([q],(e=>e?`?redirect=${(0,v.F_)(k.sZ,{projectId:e})}`:"")),Ge=(0,r.P1)([q],(e=>e?`?redirect=${(0,v.F_)(k.qc,{projectId:e})}`:"")),We=(0,r.P1)([Ce],(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((e=>{var t;return!(null===e||void 0===e||null===(t=e.core_attributes)||void 0===t||!t.external_service)}))})),Ye=(0,r.P1)([We],(e=>{var t,n;let r=null===(t=e[0])||void 0===t||null===(n=t.core_attributes)||void 0===n?void 0:n.external_service;return"john_deere"===r&&(r=E.F.JohnDeere),r})),Ke=e=>(0,y.O7)(e.carbon.enrolledFields),Xe=(0,r.P1)([Y,e=>le(e,C.t5.Monitoring)],((e,t)=>{var n,r;return Boolean((null===t||void 0===t?void 0:t.show_contract)&&(null===e||void 0===e||null===(n=e.contracts)||void 0===n?void 0:n.length)&&"completed"===(null===(r=e.contracts[0])||void 0===r?void 0:r.docusign_status)&&e.contract_link)})),Je=(0,r.P1)([Xe,Y,e=>le(e,C.t5.Monitoring),m.x2,Ke],((e,t,n,r,i)=>Qe(e,n,r,i,t))),Qe=(e,t,n,r,i)=>{const o=!p()(n).isSameOrAfter(p()(null===t||void 0===t?void 0:t.start_date),"day"),a=p()(n).isAfter(p()(null===t||void 0===t?void 0:t.end_date),"day");return e?{isReadOnly:!0,reason:C.Mk.ContractIsSigned,detailedReason:(0,x.t)({id:"PhaseReadOnlyReason.EnrolledInProgram",defaultMessage:"you already enrolled in {program}"},{program:null===i||void 0===i?void 0:i.program_name})}:o?{isReadOnly:!0,reason:C.Mk.TooEarly,detailedReason:`monitoring starts on ${p()(null===t||void 0===t?void 0:t.start_date).format("MMMM D, YYYY")}`}:a?{isReadOnly:!0,reason:C.Mk.TooLate,detailedReason:`monitoring has ended on ${p()(null===t||void 0===t?void 0:t.end_date).format("MMMM D, YYYY")}`}:r?{isReadOnly:!1,reason:C.Mk.Unknown,detailedReason:"unknown"}:{isReadOnly:!0,reason:C.Mk.NoFieldsEnrolled,detailedReason:"You'll need to enrol some fields before proceeding to the Measuring phase"}},et=e=>{const t=[E.F.JohnDeere,E.F.Climate].map((t=>{var n;return{platform:t,status:null===(n=(0,M.tL)(e,t))||void 0===n?void 0:n.syncStatus}})),n=t.some((e=>{let{status:t}=e;return t===h.e.Loading})),r=t.find((e=>{let{status:t}=e;return t===h.e.Loading}));return{isSync:n,checkRequestStatus:e=>t.some((t=>{let{status:n}=t;return n===e})),syncingPlatformName:r?(0,T.h$)(r.platform):""}},tt=((0,b.U)([P,$],((e,t)=>e.invites[t])),(0,b.U)([X],(e=>null===e||void 0===e?void 0:e.fallback_coordinate_system))),nt=(0,r.P1)([Z],(e=>Boolean(null===e||void 0===e?void 0:e.locked))),rt=(0,r.P1)([X],(e=>null===e||void 0===e?void 0:e.group_management))},77432:(e,t,n)=>{"use strict";n.d(t,{accessActions:()=>s,g:()=>a});var r=n(12581),i=n(17303);const o={producer:[],admin:[],programRoles:{},hasLoaded:!1},a=(0,r.oM)({name:"monitoring/access",initialState:o,reducers:{addAccess:(e,t)=>({...e,producer:t.payload.producer,admin:t.payload.admin,programRoles:t.payload.program_roles,hasLoaded:!0})},extraReducers:e=>{e.addCase(i.D.LOGOUT,(e=>({...e,...o})))}}),s=a.actions},93294:(e,t,n)=>{"use strict";n.d(t,{completionSliceActions:()=>s,y:()=>a});var r=n(12581),i=n(17303),o=n(5197);const a=(0,r.oM)({name:"monitoring/completion",initialState:{},reducers:{setStageCompletion:(e,t)=>({...e,[t.payload.stageId]:t.payload.completion})},extraReducers:e=>{e.addCase(i.D.LOGOUT,(e=>({}))).addCase(o.r7.fulfilled.type,((e,t)=>({...e,[t.payload.stageId]:t.payload.completion})))}}),s=a.actions},26630:(e,t,n)=>{"use strict";n.d(t,{entitiesActions:()=>c,g:()=>l});var r=n(12581),i=n(56346),o=n(17303),a=n(5197),s=n(96446);const l=(0,r.oM)({name:"monitoring/entities",initialState:{attributes:{},fields:{},phases:{},programs:{},programsLoading:{},projects:{},projectValues:{},stages:{},invites:{}},reducers:{addMonitoringPrograms:(e,t)=>{const{entities:n}=t.payload;return{...e,...n,programs:(0,i.V)(e.programs,t.payload.entities.programs||{})}},updateFieldOFSStatus:(e,t)=>{const{mrvFieldId:n,status:r}=t.payload;return e.fields[n]?{...e,fields:{...e.fields,[n]:{...e.fields[n],ofs_status:r}}}:e},updateProjectOFSStatus:(e,t)=>{const{projectId:n,status:r}=t.payload;return e.projects[n]?{...e,projects:{...e.projects,[n]:{...e.projects[n],ofs_status:r}}}:e},updateFieldDNDCStatus:(e,t)=>{const{fieldId:n,status:r}=t.payload;return e.fields[n]?{...e,fields:{...e.fields,[n]:{...e.fields[n],dndc_status:r}}}:e},updateProjectDNDCStatus:(e,t)=>{const{projectId:n,status:r}=t.payload;return e.projects[n]?{...e,projects:{...e.projects,[n]:{...e.projects[n],dndc_status:r}}}:e},updateProjectCustomRegValues:(e,t)=>{var n;const{projectId:r,customInputValue:i}=t.payload;if(!e.projects[r])return e;const o=[...(null===(n=e.projects[r])||void 0===n?void 0:n.custom_reg_values)||[]],a=!o.some((e=>e.key===i.key))?[...o,i]:o.map((e=>e.key===i.key?i:e));return{...e,projects:{...e.projects,[r]:{...e.projects[r],custom_reg_values:a}}}},setProgramInvites:(e,t)=>{const{invites:n,programId:r}=t.payload;return{...e,invites:{...e.invites,[r]:n}}},addProgramInvites:(e,t)=>{const{invites:n}=t.payload,r=n.reduce(((e,t)=>{var n;return{...e,[t.program_id]:[...null!==(n=e[t.program_id])&&void 0!==n?n:[],t]}}),e.invites);return{...e,invites:r}},removeProgramInvite:(e,t)=>{var n;const{inviteId:r,programId:i}=t.payload;return{...e,invites:{...e.invites,[i]:(null!==(n=e.invites[i])&&void 0!==n?n:[]).filter((e=>e.id!==r))}}},removeStage:(e,t)=>{const{stageId:n}=t.payload;delete e.stages[n]},updateStage:(e,t)=>{const{entities:n}=t.payload;e.stages=(0,i.V)(e.stages,n.stages)}},extraReducers:e=>{e.addCase(o.D.LOGOUT,(e=>({...e,attributes:{},fields:{},programs:{},projects:{},projectValues:{},stages:{},stats:{}}))).addCase(a.aR.fulfilled.type,((e,t)=>{const n=t.payload;return{...e,programs:{...e.programs,[n]:void 0}}})).addCase(a.GG.fulfilled.type,((e,t)=>({...e,...t.payload.entities,projects:(0,i.V)(e.projects,t.payload.entities.projects)}))).addCase(a.k4.fulfilled.type,((e,t)=>({...e,...t.payload.entities,projects:(0,i.V)(e.projects,t.payload.entities.projects)}))).addCase(a.KP.fulfilled.type,((e,t)=>{var n,r,i;const{project:o,deletion_reason:a,id:s}=t.payload;return{...e,projects:{...e.projects,[o]:{...e.projects[o],contracts:null===(n=null!==(r=null===(i=e.projects[o])||void 0===i?void 0:i.contracts)&&void 0!==r?r:[])||void 0===n?void 0:n.map((e=>e.id===s?{...e,deletion_reason:a}:e))}}}})).addCase(a.pW.fulfilled.type,((e,t)=>{var n;const{entities:r,result:o}=t.payload,{phaseId:a}=t.meta.arg;return{...e,phases:{...e.phases,[a]:{...e.phases[a],stages:[...(null===(n=e.phases[a])||void 0===n?void 0:n.stages)||[],...o]}},stages:(0,i.V)(e.stages,r.stages),attributes:(0,i.V)(e.attributes,r.attributes)}})).addCase(a.t2.fulfilled.type,((e,t)=>{const{entities:n}=t.payload;return{...e,stages:(0,i.V)(e.stages,n.stages)}})).addCase(a.TQ.fulfilled.type,((e,t)=>{const{entities:n}=t.payload;return{...e,stages:(0,i.V)(e.stages,n.stages)}})).addCase(a.xx.fulfilled.type,((e,t)=>{const{entities:n}=t.payload;return{...e,stages:(0,i.V)(e.stages,n.stages)}})).addCase(a.tR.fulfilled.type,((e,t)=>{var n;const{entities:r,result:o}=t.payload,a=t.meta.arg.stageId;return{...e,stages:{...e.stages,[a]:{...e.stages[a],attributes:[...(null===(n=e.stages[a])||void 0===n?void 0:n.attributes)||[],...o]}},attributes:(0,i.V)(e.attributes,r.attributes)}})).addCase(a.tS.fulfilled.type,((e,t)=>{const n=t.payload,r=t.meta.arg.stageId,i=e.stages[r];i&&(i.attributes=i.attributes.filter((e=>e!==n))),delete e.attributes[n]})).addCase(a.Yu.fulfilled.type,((e,t)=>{var n;const{projectId:r,mrvFieldIds:i}=t.payload,o={...e.fields};return i.forEach((e=>{delete o[e]})),{...e,fields:o,projects:{...e.projects,[r]:e.projects[r]?{...e.projects[r],fields:null===(n=e.projects[r])||void 0===n?void 0:n.fields.filter((e=>!i.includes(e)))}:void 0}}})).addCase(a.Lv.pending,((e,t)=>{const n=t.meta.arg.programId;return e.programsLoading[n]?e:{...e,programsLoading:{...e.programsLoading,[n]:t.meta.requestId}}})).addCase(a.Lv.fulfilled,((e,t)=>{var n;return null!==(n=t.payload)&&void 0!==n&&n.entities?{...e,programsLoading:{...e.programsLoading,[t.meta.arg.programId]:!1},programs:(0,i.V)(e.programs,t.payload.entities.programs)}:e})).addCase(a.Gl.fulfilled,((e,t)=>{const{reasons:n,programId:r}=t.payload;return n&&r?{...e,programs:{...e.programs,[r]:{...e.programs[r]||{},unlock_reasons_history:n}}}:e})).addCase(a.Lv.rejected,((e,t)=>({...e,programsLoading:{...e.programsLoading,[t.meta.arg.programId]:!1}}))).addMatcher((e=>[s.Vr.fulfilled.type,a.Lv.fulfilled.type,a.u6.fulfilled.type,a.yS.fulfilled.type,a.DC.fulfilled.type,a.Bc.fulfilled.type,a.El.fulfilled.type,a.wo.fulfilled.type,a.EH.fulfilled.type,a.y0.fulfilled.type,a.u2.fulfilled.type,a.aj.fulfilled.type,a.Ej.fulfilled.type,a.Nb.fulfilled.type].includes(e.type)),((e,t)=>{var n;const r=null===(n=t.payload)||void 0===n?void 0:n.entities;return r?(0,i.V)(e,r):e}))}}),c=l.actions},8022:(e,t,n)=>{"use strict";n.d(t,{programBoundariesSliceActions:()=>i,x:()=>r});const r=(0,n(12581).oM)({name:"monitoring/programBoundaries",initialState:{},reducers:{setBoundaries:(e,t)=>({...e,[t.payload.programId]:t.payload.boundaries})}}),i=r.actions},5197:(e,t,n)=>{"use strict";n.d(t,{Av:()=>re,Bc:()=>K,DC:()=>Y,Dx:()=>O,EH:()=>Z,Ej:()=>V,El:()=>X,Fj:()=>ce,GG:()=>S,Gl:()=>J,IE:()=>de,KP:()=>T,Lv:()=>x,M9:()=>se,Mf:()=>be,NB:()=>me,Nb:()=>W,OS:()=>ye,Og:()=>we,SM:()=>ne,TQ:()=>z,WW:()=>le,Yu:()=>L,aR:()=>D,aj:()=>$,c4:()=>fe,cC:()=>ue,dh:()=>ae,jB:()=>he,k4:()=>M,nj:()=>ee,nx:()=>te,ob:()=>F,om:()=>R,pL:()=>ve,pW:()=>N,pw:()=>E,r7:()=>Q,rc:()=>P,sY:()=>ge,sp:()=>_e,su:()=>oe,t2:()=>A,t3:()=>I,tR:()=>U,tS:()=>q,u2:()=>G,u6:()=>k,wo:()=>j,wx:()=>ie,xx:()=>B,y0:()=>H,yS:()=>C,yh:()=>pe});var r=n(12581),i=n(27225),o=n.n(i),a=n(95602),s=n(62213),l=n(95853),c=n(39965),u=n(45718),d=n(44530),p=n(97165),h=n(6856),f=n(37682),m=n(63114),g=n(99630),y=n(62383),v=n(82037),b=n(72766),_=n(34680),w=n(57313);const x=(0,r.hg)(w.U.FETCH_PROGRAM,(async(e,t)=>{var n;let{programId:r}=e;if((null===(n=t.getState().monitoring.entities.programsLoading)||void 0===n?void 0:n[r])!==t.requestId)return;const i=(await s.ZP.getProgram(r)).data;return(0,a.Fv)(i,b.J2)})),k=(0,r.hg)(w.U.ADD_CROP_TYPE,(async e=>{let{programId:t,cropType:n}=e;const r=(await s.ZP.addCropType(t,[n])).data;return(0,a.Fv)(r,b.J2)})),C=(0,r.hg)(w.U.REMOVE_CROP_TYPE,(async e=>{let{programId:t,mrvCropTypeId:n}=e;const r=(await s.ZP.removeCropType(t,[n])).data;return(0,a.Fv)(r,b.J2)})),S=(0,r.hg)(w.U.FETCH_PROJECT,(async(e,t)=>{var n,r;let{projectId:i,params:o}=e,{dispatch:l}=t;const c=await s.ZP.getProject(i,o);null!==(n=c.data[0])&&void 0!==n&&null!==(r=n.fields)&&void 0!==r&&r.length&&l(h.E.setMRVEnrolledFields({mrvFields:c.data[0].fields}));const[u]=c.data;return(0,a.Fv)(u,b.B5)})),M=(0,r.hg)(w.U.UPDATE_CONTRACT_STATUS,(async e=>{let{projectId:t,event:n}=e;const r=(await s.ZP.updateDocusignContractStatus({projectId:t,event:n})).data;return(0,a.Fv)(r,b.B5)})),T=(0,r.hg)(w.U.REQUEST_CONTRACT_REMOVING,(async e=>{let{projectId:t,reason:n}=e;return(await s.ZP.requestEnrollmentContractRemoving(t,n)).data})),E=(0,r.hg)(w.U.FETCH_PROJECTS_LIST,(async(e,t)=>{let{ids:n}=e,{dispatch:r}=t;return await Promise.all(n.map((e=>r(S({projectId:e})))))})),P=(0,r.hg)(w.U.UPDATE_PROJECT_VALUES,(async(e,t)=>{let{projectId:n,update:r,entityType:i,shouldValidateAssignPractice:o=!0,enableCompletionValidation:a}=e;t.dispatch(R({projectId:n}));const l=await s.ZP.updateEntityValues(n,r,{entity_type:i,completion_stats:!0,include_validations:a});o&&t.dispatch(O({enableCompletionValidation:a}));const c=l.data.stage_id,u=l.data.completion;c&&u&&t.dispatch((0,g.Ni)({stageId:c,completion:u}));const d=(0,_.Jp)(t.getState(),f.t5.Monitoring,f.UY.ELIGIBILITY),h=(0,_.M0)(t.getState(),c);return d&&h&&h.order<d.order&&t.dispatch((0,g.Ni)((0,p.v9)(d.id,!1))),l.data.values})),I=(0,r.hg)(w.U.REMOVE_PROJECT_VALUES,(async(e,t)=>{let{projectId:n,valueIds:r,entityType:i,enableCompletionValidation:o}=e;t.dispatch(R({projectId:n}));const a=await s.ZP.removeProjectValues(n,r,i,o),l=a.data.stage_id,c=a.data.completion;return l&&c&&t.dispatch((0,g.Ni)({stageId:l,completion:c})),{projectId:n,valueIds:r}})),O=e=>{let{externalFieldsEligibility:t,enableCompletionValidation:n}=e;return async(e,r)=>{const i=r(),a=(0,_.aH)(i),l=(0,_.Jp)(i,f.t5.Enrolment,f.UY.ASSIGN_PRACTICES);if(!l)return;e(Q({projectId:a,stageId:null===l||void 0===l?void 0:l.id,enableValidation:n}));const c=null===l||void 0===l?void 0:l.entity_type,u=(0,v.qG)(i),d=(0,_.w2)(i,a),p=(0,v.nA)(i,null===u||void 0===u?void 0:u.id).filter((e=>d.includes((0,m.B)(e))));if(!p.length)return;let h=t;if(!h){const e=await s.ZP.getStageEligibility(a,null===l||void 0===l?void 0:l.id);h=e.data}const g=o()(p,"field_id"),y=[];Object.values(g).forEach((e=>{var t,n,r,i,o;const a=e[0]?(0,m.B)(e[0]):void 0;!1!==(null===(t=h)||void 0===t||null===(n=t[a])||void 0===n?void 0:n.eligible)&&(null===(r=h)||void 0===r||null===(i=r[a])||void 0===i||null===(o=i.eligible_practices)||void 0===o?void 0:o.some((t=>e.length===t.length&&e.every((e=>t.includes(e.value))))))||y.push(...e.map((e=>{let{id:t}=e;return t})))})),y.length&&c&&e(I({projectId:a,valueIds:y,entityType:c,enableCompletionValidation:n}))}},L=(0,r.hg)(w.U.REMOVE_PROJECT_FIELDS,(async(e,t)=>{let{projectId:n,mrvFieldIds:r,stageId:i}=e;return t.dispatch(R({projectId:n})),await s.ZP.removeProjectFields(n,r).catch(u.e),i&&await t.dispatch(Q({projectId:n,stageId:i})),{projectId:n,mrvFieldIds:r,stageId:i}})),R=(0,r.hg)(w.U.CLEAR_DNDC_RESULTS,(async(e,t)=>{let{projectId:n}=e;t.dispatch((0,g.KA)({projectId:n,status:null})),t.dispatch(h.E.setDNDCPercentCompleted(0)),t.dispatch(h.E.setDNDCResults({payment:0,tonsSequestered:0}))})),j=(0,r.hg)(w.U.UPDATE_PROGRAM_PHASE,(async e=>{let{programId:t,phase:n}=e,r=null;r=n.id?await s.ZP.updateProgramPhase(t,n.id,n):await s.ZP.addProgramPhase(t,n);return(0,y.r)([r.data])})),D=(0,r.hg)(w.U.REMOVE_PROGRAM,(async e=>{let{programId:t}=e;return await s.ZP.removeProgram(t),t})),A=(0,r.hg)(w.U.FETCH_PROGRAM_STAGE,(async e=>{let{programId:t,phaseId:n,stageId:r}=e;const i=await s.ZP.fetchProgramStage(t,n,r);return(0,a.Fv)(i.data,[b._y])})),N=(0,r.hg)(w.U.ADD_PROGRAM_MONITORING_STAGE,(async e=>{let{programId:t,phaseId:n,stage:r}=e;const i=await s.ZP.addStage(t,n,r);return(0,a.Fv)(i.data,[b._y])})),F=(0,r.hg)(w.U.REMOVE_PROGRAM_MONITORING_STAGE,(async(e,t)=>{let{programId:n,phaseId:r,stageId:i}=e;s.ZP.removeStage(n,r,i),t.dispatch((0,g.RB)({stageId:i}))})),z=(0,r.hg)(w.U.UPDATE_PROGRAM_STAGE,(async e=>{let{programId:t,phaseId:n,stageId:r,stage:i}=e;const o=await s.ZP.updateStage(t,n,r,i);return(0,a.Fv)(o.data,b._y)})),B=(0,r.hg)(w.U.UPDATE_PROGRAM_STAGES,(async e=>{let{programId:t,phaseId:n,stages:r}=e;const i=await s.ZP.updateStages(t,n,r);return(0,a.Fv)(i.data,[b._y])})),U=(0,r.hg)(w.U.ADD_PROGRAM_MONITORING_ATTRIBUTE,(async e=>{let{programId:t,phaseId:n,attributes:r}=e;const i=await s.ZP.addAttributes(t,n,r);return(0,a.Fv)(i.data,[b.Dx])})),$=(0,r.hg)(w.U.UPDATE_PROGRAM_MONITORING_ATTRIBUTE,(async e=>{let{programId:t,phaseId:n,attributeId:r,attribute:i}=e;const o=await s.ZP.updateAttribute(t,n,r,i);return(0,a.Fv)(o.data,b.Dx)})),V=(0,r.hg)(w.U.UPDATE_PROGRAM_MONITORING_ATTRIBUTE,(async e=>{let{programId:t,phaseId:n,attributes:r}=e;const i=await s.ZP.updateAttributes(t,n,r);return(0,a.Fv)(i.data,[b.Dx])})),q=(0,r.hg)(w.U.REMOVE_PROGRAM_MONITORING_ATTRIBUTE,(async e=>{let{programId:t,phaseId:n,attributeId:r}=e;return await s.ZP.removeAttribute(t,n,r),r})),Z=(0,r.hg)(w.U.UPDATE_PROGRAM_ASSETS,(async e=>{let{programId:t,assets:n}=e;const r=await s.ZP.addProgramAssets(t,n);return(0,a.Fv)(r.data,b.J2)})),H=(0,r.hg)(w.U.REMOVE_PROGRAM_ASSETS,(async e=>{let{programId:t,assets:n}=e;const r=await s.ZP.removeProgramAssets(t,n);return(0,a.Fv)(r.data,b.J2)})),G=(0,r.hg)(w.U.UPDATE_PROGRAM_PRACTICE_CHANGES,(async e=>{let{programId:t,practices:n}=e;const r=await s.ZP.addProgramPracticeChanges(t,n);return(0,a.Fv)(r.data,b.J2)})),W=(0,r.hg)(w.U.UPDATE_PROGRAM_PRACTICE_CHANGES,(async e=>{let{programId:t,practices:n}=e;const r=await s.ZP.removeProgramPracticeChanges(t,n);return(0,a.Fv)(r.data,b.J2)})),Y=(0,r.hg)(w.U.UPDATE_PROGRAM,(async e=>{const t=await s.ZP.updateProgram(e);return(0,a.Fv)(t.data,b.J2)})),K=(0,r.hg)(w.U.LOCK_PROGRAM,(async e=>{const t=await s.ZP.lockProgram(e);return(0,a.Fv)(t.data,b.J2)})),X=(0,r.hg)(w.U.LOCK_PROGRAM,(async e=>{var t;let{program:n,reason:r,unlockForAll:i}=e;const o=[...null!==(t=n.unlock_reasons_history)&&void 0!==t?t:[],r],l=await s.ZP.unlockProgramForUser(n.id,r.unlocked_reason,i);return{...(0,a.Fv)(l.data,b.J2),unlock_reasons_history:o}})),J=(0,r.hg)(w.U.FETCH_PROGRAM_UNLOCK_HISTORY,(async e=>({reasons:(await s.ZP.fetchProgramUnlockHistory(e)).data,programId:e}))),Q=(0,r.hg)(w.U.FETCH_STAGE_COMPLETION,(async e=>{let{projectId:t,stageId:n,enableValidation:r}=e;return{stageId:n,completion:(await s.ZP.getStageCompletion(t,n,r)).data}})),ee=(0,r.hg)(w.U.GENERATE_ENROLLMENT_PROJECT_CONTRACT,(async(e,t)=>{let{projectId:n,phaseId:r,redirect_url:i}=e,{rejectWithValue:o,dispatch:a}=t;try{const e=await s.ZP.generateProjectContract({projectId:n,phaseId:r,redirect_url:i});if(e.data)return null===e||void 0===e?void 0:e.data;o("")}catch(l){a((0,c.qO)(c.iR.noContractInfo,!0,{phaseId:r}))}})),te=(0,r.hg)(w.U.FETCH_REGIONS,(async e=>{let{regionName:t="",stateName:n=""}=e;return(await s.ZP.getRegionsByName(t,n)).data})),ne=(0,r.hg)(w.U.FETCH_PROGRAM_BOUNDARIES,(async(e,t)=>{let{dispatch:n}=t;try{const t=await s.ZP.getProgramBoundaries(e);if(200!==t.status)return;return n((0,g.nr)({programId:e,boundaries:t.data})),t.data}catch(r){(0,u.e)(r)}})),re=async e=>{try{return(await s.ZP.getRegionGeometry(e)).data}catch(t){(0,u.e)(t)}},ie=((0,r.hg)(w.U.FETCH_PROGRAM_INVITES,(async(e,t)=>{let{dispatch:n}=t;try{const t=await s.ZP.getProgramInvites(e);n((0,g.SQ)({programId:e,invites:t.data.result}))}catch(r){(0,u.e)(r)}})),(0,r.hg)(w.U.RENEW_PROGRAM_INVITE,(async(e,t)=>{let{inviteId:n,programId:r}=e,{dispatch:i}=t;try{const e=await s.ZP.renewProgramInvite(n);i((0,g.uM)({programId:r,inviteId:n})),i((0,g.bk)({invites:[e.data.result]}))}catch(o){(0,u.e)(o)}}))),oe=((0,r.hg)(w.U.FETCH_PROGRAM_INVITES,(async(e,t)=>{let{formData:n}=e,{dispatch:r}=t;try{const e=(await s.ZP.inviteMRVProducer(n)).data.result,t=e.projects[n.email];null!==t&&void 0!==t&&t.length?(t.forEach((e=>{r(S({projectId:e.id}))})),(0,l.c)({type:"success",title:"Success",message:`A new producer was added to ${(0,d.E4)("project",t)}`})):e.new_invites[n.email]&&((0,l.c)({type:"success",title:"Success",message:`An invite was sent to the user ${n.email}`}),r((0,g.bk)({invites:Array.isArray(e.new_invites[n.email])?e.new_invites[n.email]:[e.new_invites[n.email]]})))}catch(i){(0,l.c)({type:"error",title:"Error",message:"Couldn't add producer to the project"})}})),async e=>{try{return(await s.ZP.getCommercialRulePaymentTypes(e)).data}catch(t){(0,u.e)(t)}}),ae=async e=>{let{programId:t,phaseId:n}=e;try{return(await s.ZP.getCommercialRules({programId:t,phaseId:n})).data}catch(r){(0,u.e)(r)}},se=async e=>{let{programId:t,phaseId:n,commercialRule:r}=e;try{return(await s.ZP.createCommercialRule({programId:t,phaseId:n,commercialRule:r})).data}catch(i){(0,u.e)(i)}},le=async e=>{let{programId:t,phaseId:n,commercialRule:r}=e;try{return await s.ZP.updateCommercialRule({programId:t,phaseId:n,commercialRule:r})}catch(i){(0,u.e)(i)}},ce=async e=>{let{programId:t,phaseId:n,commercialRuleId:r}=e;try{return await s.ZP.deleteCommercialRule({programId:t,phaseId:n,commercialRuleId:r})}catch(i){(0,u.e)(i)}},ue=async()=>{try{return(await s.ZP.getFmsOptions()).data}catch(e){(0,u.e)(e)}},de=async()=>{try{return(await s.ZP.getProtocols()).data}catch(e){(0,u.e)(e)}},pe=async e=>{let{programId:t,option:n}=e;try{await s.ZP.addFmsOptions({programId:t,option:n})}catch(r){(0,u.e)(r)}},he=async e=>{let{programId:t,option:n}=e;try{await s.ZP.deleteFmsOptions({programId:t,option:n})}catch(r){(0,u.e)(r)}},fe=async e=>{let{projectId:t,input:n}=e;try{return(await s.ZP.createMrvProjectCustomInputsValue({projectId:t,input:n})).data}catch(r){(0,u.e)(r)}},me=async e=>{let{projectId:t,input:n}=e;try{return(await s.ZP.updateMrvProjectCustomInputsValue({projectId:t,input:n})).data}catch(r){(0,u.e)(r)}},ge=async()=>{try{return(await s.ZP.fetchCredentials()).data}catch(e){(0,u.e)(e)}},ye=async e=>{let{program_id:t,phase_id:n,stage_id:r,attribute_id:i}=e;try{return(await s.ZP.fetchCropTypes({program_id:t,phase_id:n,stage_id:r,attribute_id:i})).data}catch(o){(0,u.e)(o)}},ve=async e=>{let{program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o}=e;try{return(await s.ZP.deleteCropType({program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o})).data}catch(a){(0,u.e)(a)}},be=async e=>{let{program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o}=e;try{return(await s.ZP.addNewCropType({program_id:t,phase_id:n,stage_id:r,attribute_id:i,crop_type_ids:o})).data}catch(a){(0,u.e)(a)}},_e=async e=>{let{projectId:t,field_data:n,target_farm_id:r}=e;try{return(await s.ZP.bulkUpdateFieldsFarm({projectId:t,field_data:n,target_farm_id:r})).data}catch(i){(0,u.e)(i)}},we=async e=>{let{projectId:t,mrvFarmId:n}=e;try{return(await s.ZP.deleteFarm({projectId:t,mrvFarmId:n})).data}catch(r){(0,u.e)(r)}}},57313:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,q:()=>r});let r=function(e){return e.SIGNING_COMPLETE="signing_complete",e.VIEWING_COMPLETE="viewing_complete",e}({}),i=function(e){return e.FETCH_PROGRAM="monitoring/fetch-program",e.FETCH_PROJECT="monitoring/fetch-project",e.FETCH_PROJECTS_LIST="monitoring/fetch-projects-list",e.FETCH_PROJECT_VALUES="monitoring/fetch-project-values",e.FETCH_WHOLE_PROJECT="monitoring/fetch-whole-project",e.FETCH_USER_PERMISSIONS="monitoring/fetch-user-permissions",e.UPDATE_PROJECT_VALUES="monitoring/update-project-values",e.REMOVE_PROJECT_VALUES="monitoring/remove-project-values",e.UPDATE_CONTRACT_STATUS="monitoring/update-contract-status",e.REQUEST_CONTRACT_REMOVING="monitoring/request_contract_removing",e.FETCH_PROGRAM_BOUNDARIES="monitoring/fetch-program-boundaries",e.CLASSIFY_SYNC_RESPONSE_DATA="monitoring/classify-sync-response-data",e.FETCH_REGIONS="mrv/fetch-regions",e.GET_DNDC_RESULTS="mrv/get-dndc-results",e.CLEAR_DNDC_RESULTS="mrv/clear-dndc-results",e.FETCH_PROGRAM_INVITES="mrv/admin/fetch-program-invites",e.RENEW_PROGRAM_INVITE="mrv/admin/renew-program-invite",e.ADD_PROGRAM="mrv/add-program",e.REMOVE_PROGRAM="mrv/remove-program",e.UPDATE_PROGRAM="mrv/update-program",e.LOCK_PROGRAM="mrv/lock-program",e.FETCH_PROGRAM_UNLOCK_HISTORY="mrv/fetch-program-unlock-history",e.UNLOCK_PROGRAM="mrv/unlock-program",e.ADD_PROGRAM_BOUNDARY="mrv/add-program-boundary",e.DELETE_PROGRAM_BOUNDARY="mrv/delete-program-boundary",e.UPDATE_PROGRAM_ENROLLMENT="mrv/update-program-enrollment",e.UPDATE_PROGRAM_PHASE="mrv/update-program-phase",e.ADD_PROGRAM_MONITORING_STAGE="mrv/add-program-monitoring-stage",e.REMOVE_PROGRAM_MONITORING_STAGE="mrv/remove-program-monitoring-stage",e.ADD_PROGRAM_MONITORING_ATTRIBUTE="mrv/add-program-monitoring-attribute",e.UPDATE_PROGRAM_MONITORING_ATTRIBUTE="mrv/update-program-monitoring-attribute",e.REMOVE_PROGRAM_MONITORING_ATTRIBUTE="mrv/remove-program-monitoring-attribute",e.FETCH_PROGRAM_STAGE="mrv/fetch-program-stage",e.UPDATE_PROGRAM_STAGE="mrv/update-program-stage",e.UPDATE_PROGRAM_STAGES="mrv/update-program-stages",e.UPDATE_PROGRAM_ASSETS="mrv/update-program-assets",e.REMOVE_PROGRAM_ASSETS="mrv/remove-program-assets",e.POST_ATTRIBUTES_PREFILL="mrv/post-attributes-prefill",e.UPDATE_PROGRAM_PRACTICE_CHANGES="mrv/update-program-practice-changes",e.REMOVE_PROGRAM_PRACTICE_CHANGES="mrv/remove-program-practice-changes",e.REMOVE_PROJECT_FIELDS="mrv/remove-project-fields",e.REMOVE_PROJECT_VALUES_ROW="mrv/remove-project-values-row",e.FETCH_STAGE_COMPLETION="mrv/fetch-stage-completion",e.GENERATE_ENROLLMENT_PROJECT_CONTRACT="mrv/generate-enrollment-project-contract",e.ADD_CROP_TYPE="mrv/add-crop-type",e.REMOVE_CROP_TYPE="mrv/remove-crop-type",e}({})},60463:(e,t,n)=>{"use strict";n.d(t,{k:()=>d});var r=n(99730),i=n(95853),o=n(5229),a=n(22168),s=n(7170),l=n(29771),c=n(37682),u=n(34680);(0,r.P1)([(e,t)=>t===c.t5.Monitoring?(0,u.hy)(e):(0,s.wu)(e)],(e=>e));const d=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return(r,s)=>{const c=s();let d=!0;const p=(0,a.Kn)(c),h=(0,u.qz)(c,(0,u.aH)(c));let f="";if(e===l.l.CropPractices)d=!!h.length||(n&&!!n.length||Object.values(c.carbon.enrolledFields).some(Boolean)),f=d?f:p?(0,o.t)({id:"Select fields to enroll first",defaultMessage:"Select fields to enroll first"}):(0,o.t)({id:"Import your fields first",defaultMessage:"Import your fields first"});return!d&&t&&f&&(0,i.c)({title:(0,o.t)({id:"note.warning",defaultMessage:"Warning"}),message:f,type:"warning"}),d}}},73246:(e,t,n)=>{"use strict";n.d(t,{$T:()=>s,CP:()=>m,Ej:()=>p,Hk:()=>o,K5:()=>P,O0:()=>h,Or:()=>_,Q3:()=>u,SS:()=>l,WC:()=>a,X:()=>T,Yh:()=>v,_j:()=>d,aA:()=>E,aJ:()=>k,e8:()=>M,lk:()=>y,p$:()=>x,qc:()=>g,sQ:()=>C,sZ:()=>f,uj:()=>b,v:()=>S});var r=n(39475);const i=":stageType",o=`/${r.Lw}/sign-up-confirmation/:uuid`,a=`/${r.Lw}/register`,s=`/${r.Lw}/project/select`,l=`/${r.Lw}/project/:projectId`,c=`${l}/:phaseType`,u=`${c}/${i}`,d=`${l}/home`,p=[`${c}/field_boundaries`,`${c}/contract`],h=[d,...p],f=`${l}/enrollment`,m=`${l}/enrollment/${i}`,g=`${l}/monitoring`,y=`${l}/monitoring/${i}`,v=`/${r.Lw}/profile`,b=`/${r.Lw}/admin`,_=`/${r.Lw}/admin/programs`,w=`/${r.Lw}/global-admin/mrv-config`,x=`/${r.Lw}/global-admin`,k=`${b}/docusign-consent`,C=`${b}/programs/:programId`,S=`${C}/dashboard/:tab?/:subTab?`,M=`${b}/programs/00/dashboard/dashboard-playground`,T={index:w,policies:{regrowPolicies:`${w}/policies/regrow`},developmentTools:{featureToggles:`${w}/development-tools/feature-toggles`},simulations:{outcomes:`${w}/simulations/outcomes`}},E=`${C}/configure`,P=`${E}/:tab?/:subTab?`},35888:(e,t,n)=>{"use strict";n.d(t,{iN:()=>a,sw:()=>s});var r=n(14291),i=n(73042),o=n(60323);const a=e=>!(0,i.o8)(e)&&Object.hasOwn(e,"core_attributes")&&Object.hasOwn(e,"md5"),s=e=>(0,r.IF)(e,o.hn)},37682:(e,t,n)=>{"use strict";n.d(t,{H_:()=>r.H_,KS:()=>u,Mk:()=>f,Pj:()=>g,Q9:()=>i,QT:()=>r.QT,TV:()=>l,UY:()=>r.w,Uf:()=>h,WN:()=>d,X:()=>r.X,Xp:()=>r.Xp,YR:()=>o,Zi:()=>r.id,aR:()=>w,bj:()=>k,cQ:()=>x,eL:()=>C,fb:()=>r.fb,gG:()=>_,hJ:()=>y,hX:()=>b,j9:()=>v,lo:()=>s,nH:()=>p,nO:()=>r.nO,t5:()=>c,vw:()=>a,wg:()=>m});var r=n(31810);const i="Cargill-custom";let o=function(e){return e.US_IMPERIAL="acres",e.METRIC="hectares",e}({}),a=function(e){return e.Live="live",e.Demo="demo",e.Internal="internal",e.Automation="automation",e}({}),s=function(e){return e.EPSG2154="EPSG:2154",e.EPSG4326="EPSG:4326",e.UCS_2000_Gauss_Kruger_zone_6='PROJCS["UCS_2000_Gauss_Kruger_zone_6",GEOGCS["GCS_UCS-2000",DATUM["D_Ukraine_2000",SPHEROID["Krasovsky_1940",6378245,298.3]],TOWGS84[25,-141,-78.5,0,0.35,0.736,0],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",33],PARAMETER["scale_factor",1],PARAMETER["false_easting",6500000],PARAMETER["false_northing",0],UNIT["Meter",1]]\r\n',e}({}),l=function(e){return e.Success="success",e.Failed="failed",e.InProgress="in_progress",e}({}),c=function(e){return e.Monitoring="MONITORING",e.Enrolment="ENROLMENT",e}({});const u={[c.Monitoring]:r.nO.Monitoring,[c.Enrolment]:r.nO.Enrolment};let d=function(e){return e.ContractTemplate="Contract Template",e.Docusign="Docusign",e}({}),p=function(e){return e.Low="Low confidence",e.High="High confidence",e.Confirmed="Confirmed",e}({});const h={[r.X.TillageReduction]:"tillage_reduction.svg",[r.X.CoverCrops]:"grass.svg",[r.X.NutrientManagement]:"seeds.svg",[r.X.IntegratedGrazing]:"cow.svg",[r.X.CropRotation]:"corn.svg",[r.X.ConservationPractices]:"conservation.svg",[r.X.FertilizerReduction]:"",[r.X.Composting]:"composting.svg",[r.X.WholeOrchardRecycling]:"whole_orchard_recycling.svg",[r.X.IrrigationManagement]:"drip.svg",[r.X.NoTill]:"no_till.svg",[r.X.ReducedTill]:"reduce_till.svg",[r.X.BasicCoverCrops]:"basic_cover_crops.svg",[r.X.PremiumCoverCrops]:"premium_cover_crops.svg",[r.X.StubbleRetention]:"grass.svg",[r.X.StockingIntensity]:"stocking_intensity.svg",[r.X.StockingDuration]:"stocking_duration.svg",[r.X.SoilAmendments]:"soil_amendment.svg",[r.X.IncorporateLegumes]:"incorporate_legumes.svg",[r.X.SeedingOrPastureCropping]:"seeding_or_pasture_cropping.svg",[r.X.LandscapeModification]:"landscape_modification.svg",[r.X.ThinningWoodyVegetation]:"thinning_woody_vegetation.svg",[r.X.ClearWoodyVegetation]:"clear_woody_vegetation.svg","Conversion to perennial":"tree.svg","No Practices":"no_practices.svg"};let f=function(e){return e.TooEarly="TooEarly",e.TooLate="TooLate",e.ContractIsSigned="ContractIsSigned",e.Unknown="Unknown",e.CalculatingDNDC="CalculatingDNDC",e.NoFieldsEnrolled="NoFieldsEnrolled",e}({}),m=function(e){return e.Project="Projects",e.Field="Fields",e}({}),g=function(e){return e.OPTIS="optis",e.DNDC="dndc",e.MRV="mrv",e.MRV_VALUES_OVERWRITE="mrv_values_overwrite",e.MRV_EXPORT="mrv_export",e}({}),y=function(e){return e[e.Processing=0]="Processing",e[e.NewData=1]="NewData",e[e.NoData=2]="NoData",e[e.AllDone=3]="AllDone",e[e.Error=4]="Error",e}({}),v=function(e){return e.AccountID="Account ID",e.Restriction="Restriction",e}({}),b=function(e){return e.Regex="Regex",e.Dropdown="Dropdown",e.UserGroup="User Group",e}({}),_=function(e){return e.CargillAPI="Cargill Grain API",e.None="None",e}({}),w=function(e){return e.CREATE_ROLES="CREATE_ROLES",e.CREATE_ROLES_PERMISSIONS="CREATE_ROLES_PERMISSIONS",e.CREATE_ROLES_USERS="CREATE_ROLES_USERS",e.GET_PERMISSIONS="GET_PERMISSIONS",e.GET_USER_PERMISSIONS="GET_USER_PERMISSIONS",e.GET_PROGRAM="GET_PROGRAM",e.PATCH_PROGRAM="PATCH_PROGRAM",e.DELETE_PROGRAM="DELETE_PROGRAM",e.GET_PROGRAM_USER="PROGRAM_USER",e.UPDATE_PROGRAM_USER="UPDATE_PROGRAM_USER",e.GET_PROGRAM_USERS="GET_PROGRAM_USERS",e.CREATE_PROGRAM_USERS="CREATE_PROGRAM_USERS",e.DELETE_PROGRAM_USERS="DELETE_PROGRAM_USERS",e.CREATE_PROGRAM_CROP_TYPES="CREATE_PROGRAM_CROP_TYPES",e.GET_PROGRAM_CROP_TYPES="GET_PROGRAM_CROP_TYPES",e.DELETE_PROGRAM_CROP_TYPES="DELETE_PROGRAM_CROP_TYPES",e.GET_PROGRAM_PROJECTS="GET_PROGRAM_PROJECTS",e.GET_DUMP_PROGRAM_DATA="GET_DUMP_PROGRAM_DATA",e.EXPORT_PROGRAM_CONTRACTS="EXPORT_PROGRAM_CONTRACTS",e.CREATE_PROGRAM_FIX_MONITORING_DATA="CREATE_PROGRAM_FIX_MONITORING_DATA",e.CREATE_PROGRAM_FIX_ENROLMENT_DATA="CREATE_PROGRAM_FIX_ENROLMENT_DATA",e.CREATE_PHASE_PRACTICE_CONFIG="CREATE_PHASE_PRACTICE_CONFIG",e.GET_PROJECT="GET_PROJECT",e.CREATE_PROJECT="CREATE_PROJECT",e.DELETE_PROJECT="DELETE_PROJECT",e.GET_PROJECTS="GET_PROJECTS",e.EXPORT_PROJECTS="EXPORT_PROJECTS",e.GET_PROJECT_USERS="GET_PROJECT_USERS",e.CREATE_PROJECT_USERS="CREATE_PROJECT_USERS",e.DELETE_PROJECT_USERS="DELETE_PROJECT_USERS",e.GET_PROJECT_FIELD="GET_PROJECT_FIELD",e.CREATE_PROJECT_FIELDS="CREATE_PROJECT_FIELDS",e.DELETE_PROJECT_FIELDS="DELETE_PROJECT_FIELDS",e.GET_PROJECT_CONTRACT="GET_PROJECT_CONTRACT",e.CREATE_PROJECT_CONTRACT="CREATE_PROJECT_CONTRACT",e.DELETE_PROJECT_CONTRACT="DELETE_PROJECT_CONTRACT",e.GET_PROJECT_COMPLETION="GET_PROJECT_COMPLETION",e.CREATE_CONTRACT_DELETION_REQUEST="CREATE_CONTRACT_DELETION_REQUEST",e.PATCH_PROJECT_CONFIG="PATCH_PROJECT_CONFIG",e.CREATE_PROJECT_RECORDING_YEARS="CREATE_PROJECT_RECORDING_YEARS",e.CREATE_PROJECT_FIX_MONITORING_DATA="CREATE_PROJECT_FIX_MONITORING_DATA",e.CREATE_PROJECT_FIX_ENROLMENT_DATA="CREATE_PROJECT_FIX_ENROLMENT_DATA",e.GET_PROJECT_USER="GET_PROJECT_USER",e.PATCH_PROJECT_USER="PATCH_PROJECT_USER",e.GET_DOCUSIGN_CALLBACK="GET_DOCUSIGN_CALLBACK",e.GET_DOCUSIGN_CLIENT_ACCESS_DETAILS="GET_DOCUSIGN_CLIENT_ACCESS_DETAILS",e.GET_DOCUSIGN_CALLBACK_AFTER_SIGNING_CONTRACT="GET_DOCUSIGN_CALLBACK_AFTER_SIGNING_CONTRACT",e.GET_CONTRACT_TEMPLATE_FOR_ENROLMENT="GET_CONTRACT_TEMPLATE_FOR_ENROLMENT",e.CREATE_CONTRACT_TEMPLATE_FOR_PHASE="CREATE_CONTRACT_TEMPLATE_FOR_PHASE",e.DELETE_CONTRACT_TEMPLATE_FOR_ENROLMENT="DELETE_CONTRACT_TEMPLATE_FOR_ENROLMENT",e.GET_DOCUSIGN_TOKEN_CHECK="GET_DOCUSIGN_TOKEN_CHECK",e.GET_DNDC_RESULT_FOR_PROJECT="GET_DNDC_RESULT_FOR_PROJECT",e.RUN_DNDC_FOR_PROJECT_FIELDS="RUN_DNDC_FOR_PROJECT_FIELDS",e.DNDC_CALLBACK_WEBHOOK="DNDC_CALLBACK_WEBHOOK",e.GET_NOTIFICATIONS="GET_NOTIFICATIONS",e.DISMISS_NOTIFICATIONS="DISMISS_NOTIFICATIONS",e.CREATE_PROGRAMS="CREATE_PROGRAMS",e.GET_PROGRAMS_LIST="GET_PROGRAMS_LIST",e.UPDATE_PROGRAM_BOUNDARIES="UPDATE_PROGRAM_BOUNDARIES",e.CREATE_BLOB="CREATE_BLOB",e.GET_ELIGIBILITY="GET_ELIGIBILITY",e.GET_ASSETS="GET_ASSETS",e.ADD_ASSETS="ADD_ASSETS",e.REMOVE_ASSETS="REMOVE_ASSETS",e.GET_PRACTICE_CHANGES="GET_PRACTICE_CHANGES",e.ADD_PRACTICE_CHANGES="ADD_PRACTICE_CHANGES",e.REMOVE_PRACTICE_CHANGES="REMOVE_PRACTICE_CHANGES",e.GET_PROGRAM_PHASES="GET_PROGRAM_PHASES",e.CREATE_PROGRAM_PHASE="CREATE_PROGRAM_PHASE",e.GET_PROGRAM_PHASE="GET_PROGRAM_PHASE",e.UPDATE_PROGRAM_PHASE="UPDATE_PROGRAM_PHASE",e.DELETE_PROGRAM_PHASE="DELETE_PROGRAM_PHASE",e.GET_PROGRAM_STAGES="GET_PROGRAM_STAGES",e.CREATE_PROGRAM_STAGES="CREATE_PROGRAM_STAGES",e.DELETE_PROGRAM_STAGES="DELETE_PROGRAM_STAGES",e.GET_PROGRAM_STAGE="GET_PROGRAM_STAGE",e.FETCH_PROGRAM_STAGE="FETCH_PROGRAM_STAGE",e.UPDATE_PROGRAM_STAGE="UPDATE_PROGRAM_STAGE",e.UPDATE_PROGRAM_STAGES="UPDATE_PROGRAM_STAGES",e.GET_PROGRAM_ATTRIBUTES="GET_PROGRAM_ATTRIBUTES",e.CREATE_PROGRAM_ATTRIBUTES="CREATE_PROGRAM_ATTRIBUTES",e.DELETE_PROGRAM_ATTRIBUTES="DELETE_PROGRAM_ATTRIBUTES",e.GET_PROGRAM_ATTRIBUTE="GET_PROGRAM_ATTRIBUTE",e.UPDATE_PROGRAM_ATTRIBUTE="UPDATE_PROGRAM_ATTRIBUTE",e.UPDATE_PROGRAM_ATTRIBUTES="UPDATE_PROGRAM_ATTRIBUTES",e.GET_PROJECT_VALUES_FROM_OPTIS="GET_PROJECT_VALUES_FROM_OPTIS",e.GET_CONTRACT_LINE_ITEMS="GET_CONTRACT_LINE_ITEMS",e.CREATE_CONTRACT_LINE_ITEMS="CREATE_CONTRACT_LINE_ITEMS",e.PATCH_CONTRACT_LINE_ITEMS="PATCH_CONTRACT_LINE_ITEMS",e.DELETE_CONTRACT_LINE_ITEMS="DELETE_CONTRACT_LINE_ITEMS",e.GET_COMMERCIALS="GET_COMMERCIALS",e.CREATE_COMMERCIALS="CREATE_COMMERCIALS",e.PATCH_COMMERCIALS="PATCH_COMMERCIALS",e.DELETE_COMMERCIALS="DELETE_COMMERCIALS",e.GET_FMS_OPTION_NAMES="GET_FMS_OPTION_NAMES",e.CREATE_FMS_OPTIONS="CREATE_FMS_OPTIONS",e.DELETE_FMS_OPTIONS="DELETE_FMS_OPTIONS",e.GET_PROGRAM_CONTRACT_ATTRIBUTES="GET_PROGRAM_CONTRACT_ATTRIBUTES",e.UPDATE_PROGRAM_CONTRACT_ATTRIBUTES="UPDATE_PROGRAM_CONTRACT_ATTRIBUTES",e.CREATE_PROJECT_COMMERCIALS="CREATE_PROJECT_COMMERCIALS",e.GET_PAYMENT_TYPES="GET_PAYMENT_TYPES",e.GET_PROJECT_SURVEY="GET_PROJECT_SURVEY",e.CREATE_PROJECT_SURVEY="CREATE_PROJECT_SURVEY",e.GET_PROGRAM_BOUNDARIES="GET_PROGRAM_BOUNDARIES",e.GET_ELIGIBILITY_METHODS="GET_ELIGIBILITY_METHODS",e.CREATE_STAGE_ELIGIBILITY_CONFIG="CREATE_STAGE_ELIGIBILITY_CONFIG",e.GET_PROJECT_FIELD_VALUES="GET_PROJECT_FIELD_VALUES",e.GET_PROJECT_FIELD_VALUES_BY_ID="GET_PROJECT_FIELD_VALUES_BY_ID",e.GET_ALL_STRUCTURED_PROJECT_FIELD_VALUES="GET_ALL_STRUCTURED_PROJECT_FIELD_VALUES",e.GET_PROJECT_VALUES_FOR_FIELDS="GET_PROJECT_VALUES_FOR_FIELDS",e.UPDATE_PROJECT_FIELD_VALUES="UPDATE_PROJECT_FIELD_VALUES",e.DELETE_PROJECT_FIELD_VALUES="DELETE_PROJECT_FIELD_VALUES",e.DELETE_SPECIFIC_PROJECT_FIELD_VALUES="DELETE_SPECIFIC_PROJECT_FIELD_VALUES",e.IMPORT_PROJECT_FIELD_VALUES="IMPORT_PROJECT_FIELD_VALUES",e.UPDATE_PROJECT_FIELDS="UPDATE_PROJECT_FIELDS",e.OVERWRITE_SINGLE_PROJECT_FIELD_VALUES="OVERWRITE_SINGLE_PROJECT_FIELD_VALUES",e.OVERWRITE_MULTIPLE_PROJECTS_FIELD_VALUES="OVERWRITE_MULTIPLE_PROJECTS_FIELD_VALUES",e.UPDATE_PROJECT_FIELDS_FARM_ID="UPDATE_PROJECT_FIELDS_FARM_ID",e.GET_CUSTOM_INPUTS="GET_CUSTOM_INPUTS",e.UPDATE_CUSTOM_INPUTS="UPDATE_CUSTOM_INPUTS",e.CREATE_CUSTOM_INPUTS="CREATE_CUSTOM_INPUTS",e.DELETE_CUSTOM_INPUTS="DELETE_CUSTOM_INPUTS",e.GET_PROJECT_VALUES="GET_PROJECT_VALUES",e.UPDATE_PROJECT_VALUES="UPDATE_PROJECT_VALUES",e.CREATE_PROJECT_VALUES="CREATE_PROJECT_VALUES",e.DELETE_PROJECT_VALUES="DELETE_PROJECT_VALUES",e.CREATE_VALUES_TEMPLATES="CREATE_VALUES_TEMPLATES",e.GET_VALUES_TEMPLATES="GET_VALUES_TEMPLATES",e.UPDATE_VALUES_TEMPLATES="UPDATE_VALUES_TEMPLATES",e.DELETE_VALUES_TEMPLATES="DELETE_VALUES_TEMPLATES",e.GET_OPTIS_LABELS_MAPPING="GET_OPTIS_LABELS_MAPPING",e.CREATE_OPTIS_LABELS_MAPPING="CREATE_OPTIS_LABELS_MAPPING",e.GET_CONFLICTS="GET_CONFLICTS",e.CREATE_CONFLICTS="CREATE_CONFLICTS",e.GET_CONFLICT_RESOLUTION="GET_CONFLICT_RESOLUTION",e.CREATE_CONFLICT_RESOLUTION="CREATE_CONFLICT_RESOLUTION",e.GET_CONFLICT_RESOLUTION_FILES="GET_CONFLICT_RESOLUTION_FILES",e.UPDATE_CONFLICT_RESOLUTION_FILES="UPDATE_CONFLICT_RESOLUTION_FILES",e.CREATE_CONFLICT_RESOLUTION_FILES="CREATE_CONFLICT_RESOLUTION_FILES",e.DELETE_CONFLICT_RESOLUTION_FILES="DELETE_CONFLICT_RESOLUTION_FILES",e.GET_CONFLICTS_CSV="GET_CONFLICTS_CSV",e.GET_UNITS_OPTIONS="GET_UNITS_OPTIONS",e.GET_PROJECT_ENTITIES_VALUES="GET_PROJECT_ENTITIES_VALUES",e.UPDATE_PROJECT_ENTITIES_VALUES="UPDATE_PROJECT_ENTITIES_VALUES",e.DELETE_PROJECT_ENTITIES_VALUES="DELETE_PROJECT_ENTITIES_VALUES",e.VIEW_REPORTING_DASHBOARDS="VIEW_REPORTING_DASHBOARDS",e.GET_REPORTING_DASHBOARDS_FULL="GET_REPORTING_DASHBOARDS_FULL",e.CREATE_REPORTING_DASHBOARDS_FULL="CREATE_REPORTING_DASHBOARDS_FULL",e.UPDATE_REPORTING_DASHBOARDS_FULL="UPDATE_REPORTING_DASHBOARDS_FULL",e.DELETE_REPORTING_DASHBOARDS_FULL="DELETE_REPORTING_DASHBOARDS_FULL",e.GET_PROGRAM_REPORTING_DASHBOARD_FULL_KEY_BY_KEY="GET_PROGRAM_REPORTING_DASHBOARD_FULL_KEY_BY_KEY",e.GET_PROGRAM_REPORTING_DASHBOARDS_FULL="GET_PROGRAM_REPORTING_DASHBOARDS_FULL",e.UPDATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM_BY_ID="UPDATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM_BY_ID",e.GET_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM="GET_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM",e.CREATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM="CREATE_PROGRAM_REPORTING_DASHBOARD_TO_PROGRAM",e.GET_REPORTING_DASHBOARDS_CHART_TYPES="GET_REPORTING_DASHBOARDS_CHART_TYPES",e.CREATE_PROGRAM_REPORTING_DASHBOARDS_CSV="CREATE_PROGRAM_REPORTING_DASHBOARDS_CSV",e.GET_PROJECT_MOB_BY_ID="GET_PROJECT_MOB_BY_ID",e.UPDATE_PROJECT_MOB_BY_ID="UPDATE_PROJECT_MOB_BY_ID",e.GET_PROJECT_MOBS="GET_PROJECT_MOBS",e.CREATE_PROJECT_MOBS="CREATE_PROJECT_MOBS",e.DELETE_PROJECT_MOBS="DELETE_PROJECT_MOBS",e.CREATE_ENROL_PROGRAM_CODES="CREATE_ENROL_PROGRAM_CODES",e.GET_PROJECT_FARM="GET_PROJECT_FARM",e.GET_PROJECT_FARMS="GET_PROJECT_FARMS",e.CREATE_PROJECT_FARMS="CREATE_PROJECT_FARMS",e.UPDATE_PROJECT_FARM="UPDATE_PROJECT_FARM",e.DELETE_PROJECT_FARMS="DELETE_PROJECT_FARMS",e.GET_USER_RESTRICTION="GET_USER_RESTRICTION",e.CREATE_USER_RESTRICTION="CREATE_USER_RESTRICTION",e.UPDATE_USER_RESTRICTION="UPDATE_USER_RESTRICTION",e.DELETE_USER_RESTRICTION="DELETE_USER_RESTRICTION",e.UPDATE_USER_PROFILE="UPDATE_USER_PROFILE",e.EDIT_DOCUMENTS="EDIT_DOCUMENTS",e.EDIT_FEATURES="EDIT_FEATURES",e.VIEW_FEATURES="VIEW_FEATURES",e.COMPLETE_PROJECT_PHASE="COMPLETE_PROJECT_PHASE",e.UNDO_COMPLETE_PROJECT_PHASE="UNDO_COMPLETE_PROJECT_PHASE",e.GET_USER_GROUPS="GET_USER_GROUPS",e.CREATE_USER_GROUP="CREATE_USER_GROUP",e.UPDATE_USER_GROUP="UPDATE_USER_GROUP",e.DELETE_USER_GROUP="DELETE_USER_GROUP",e.GET_GROUPS_FOR_ADMIN="GET_GROUPS_FOR_ADMIN",e.UPDATE_GROUPS_FOR_ADMIN="UPDATE_GROUPS_FOR_ADMIN",e}({}),x=function(e){return e.CustomInput="CUSTOM_INPUT",e}({});const k={TANDC:"tandc",PRIVACY:"privacy",CLIENT:"client"};let C=function(e){return e.FieldLevelOutcomes="Field level outcomes",e.FieldLevelPayments="Field level payments",e}({})},19303:(e,t,n)=>{"use strict";n.d(t,{$2:()=>C,$s:()=>_,Ai:()=>x,CL:()=>y,Cl:()=>j,Gc:()=>E,ID:()=>D,MV:()=>R,Rj:()=>P,SK:()=>N,Ux:()=>T,VU:()=>M,YE:()=>A,bB:()=>w,bM:()=>b,bi:()=>S,jo:()=>I,o8:()=>L,oS:()=>k,sG:()=>v,vM:()=>O});var r=n(17176),i=n.n(r),o=n(18178),a=n(30057),s=n(45581),l=n(31810),c=n(46386),u=n(67547),d=n(57550),p=n(44530),h=n(5229),f=n(37682),m=n(16148),g=n(73246);const y=(e,t,n)=>{const r={};if(e)for(const i in e){const o=e[i],a=null===o||void 0===o?void 0:o.ID;a&&t[a]&&(r[a]=n)}return r},v=(e,t)=>Object.keys(null!==e&&void 0!==e?e:{}).map(Number).filter((n=>Object.values((null===e||void 0===e?void 0:e[n])||{}).some((e=>t[e.ID])))),b=(e,t,n)=>{if(!t&&!n)return;const r=i()(),o=i()(t,c.dH),a=i()(n,c.dH),s=o.format(m.$$),l=a.format(m.$$);return r.isBefore(o)?(0,h.t)({id:"Open {date}",defaultMessage:"Open {date}"},{date:s}):_(t,n)||!e?`${s} - ${l}`:(0,h.t)({id:"Closed: View only",defaultMessage:"Closed: View only"})},_=(e,t)=>{const n=i()();return!(!e||!t)&&(n.isSameOrAfter(i()(e,c.dH),"day")&&!n.isAfter(i()(t,c.dH),"day"))},w=()=>{const e=(0,s.k6)(),{projectId:t}=(0,u.tZ)();return()=>e.push((0,d.F_)(g._j,{projectId:t}))},x=e=>(0,h.t)({id:"FMSSync.ProcessStartedInfoText",defaultMessage:"Data is currently being imported and could take up to 10 minutes. Data entry will be disabled until import is complete."},{platformName:e}),k=e=>e===f.UY.CROP_EVENTS||e===f.UY.TILLAGE_EVENTS||e===f.UY.IRRIGATION_EVENTS||e===f.UY.NUTRIENT_EVENTS,C=e=>e===f.UY.HISTORICAL_CROP_ROTATION||e===f.UY.TILLAGE||e===f.UY.NUTRIENT_MGMT_INTENDED||e===f.UY.IRRIGATION||e===f.UY.SURVEY||e===f.UY.ELIGIBILITY||e===f.UY.CONTRACT||e===f.UY.VIEW_OUTCOMES,S=e=>e?(0,p.fm)(e.replace(/_/g," ").toLocaleLowerCase()):"stage";function M(e){return e===f.Zi.StartDate||e===f.Zi.Date||e===f.Zi.PlantingDate||e===f.Zi.TillageDate||e===f.Zi.ApplicationDate||e===f.Zi.FallTillageDate||e===f.Zi.SpringTillageDate||e===f.Zi.WinterPlantingDate||e===f.Zi.SummerPlantingDate}function T(e){return e===f.Zi.EndDate||e===f.Zi.HarvestDate||e===f.Zi.WinterHarvestDate||e===f.Zi.SummerHarvestDate}function E(e){return M(e)||T(e)}function P(e){return"enrollment"===e?f.t5.Enrolment:null===e||void 0===e?void 0:e.toUpperCase()}function I(e){return null===e||void 0===e?void 0:e.toUpperCase()}function O(e){return null===e||void 0===e?void 0:e.toLowerCase()}function L(e){return e===f.UY.FIELD_BOUNDARIES}function R(e){return null!==(0,s.LX)(e,g.Ej)}function j(e){return!e.enabled||!e.visible||e.type===f.Zi.ApplicationRateUnit||e.type===f.Zi.WaterAmountUnit}function D(){const e=(0,a.YB)();return(0,o.useMemo)((()=>({[f.vw.Automation]:e.formatMessage({id:"Automation test",defaultMessage:"Automation test"}),[f.vw.Demo]:e.formatMessage({id:"Demo",defaultMessage:"Demo"}),[f.vw.Internal]:e.formatMessage({id:"Internal",defaultMessage:"Internal"}),[f.vw.Live]:e.formatMessage({id:"Live",defaultMessage:"Live"})})),[e])}function A(){const e=(0,a.YB)();return(0,o.useMemo)((()=>({[f.t5.Enrolment]:e.formatMessage({id:"EnrollmentStepName.Enrollment",defaultMessage:"Enrollment"}),[f.t5.Monitoring]:e.formatMessage({id:"MonitoringStageStep.Monitoring",defaultMessage:"Monitoring"}),[l.HM.QA_QC]:e.formatMessage({id:"PhaseTypes.QA_QC",defaultMessage:"QA"}),[l.HM.SOIL_SAMPLING]:e.formatMessage({id:"PhaseTypes.SOIL_SAMPLING",defaultMessage:"Soil Sampling"}),[l.HM.VERIFICATION]:e.formatMessage({id:"PhaseTypes.VERIFICATION",defaultMessage:"Verification"}),[l.HM.DASHBOARDS]:e.formatMessage({id:"PhaseTypes.DASHBOARDS",defaultMessage:"Dashboards"})})),[e])}function N(){const e=(0,a.YB)();return(0,o.useMemo)((()=>({[f.QT.Agriwebb]:"AgriWebb",[f.QT.Agx]:"AgX",[f.QT.Agworld]:"Agworld",[f.QT.Climate]:"Climate FieldView",[f.QT.Csv]:"CSV",[f.QT.Efc]:"EFC",[f.QT.JohnDeere]:"John Deere",[f.QT.Optis]:"Optis",[f.QT.OtherFms]:e.formatMessage({id:"Other FMS",defaultMessage:"Other FMS"}),[f.QT.Smag]:"smag",[f.QT.Template]:e.formatMessage({id:"Template",defaultMessage:"Template"}),[f.QT.Terravion]:"Terravion",[f.QT.User]:e.formatMessage({id:"User",defaultMessage:"User"})})),[e])}},63114:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,v:()=>i});const r=e=>"field"===e.entity_type?e.field_id:e.entity_id,i=(e,t,n,r,i)=>({..."field"===e?{entity_type:e,field_id:t}:{entity_type:e,entity_id:t},row_id:n,year:r,values:i})},92473:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,W:()=>o});var r=n(84917),i=n(36777);const o=r.ZP.form`
  fieldset {
    padding: 0;
  }

  .phone-tel-input {
    border: unset;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 8px;
    padding-top: 8px;
    outline: none;
    width: 100%;
  }

  .user-phone {
    min-height: 59px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    .intl-tel-input {
      width: 100%;
    }
  }
`,a=(0,r.ZP)(i.o9)`
  .user-settings-container {
    display: flex;
    height: 100%;
    flex-wrap: nowrap;
    align-items: stretch;

    .fluro-sticky {
      padding: 16px;
      background-color: #fff;
      z-index: $z-index-Sticky;
    }
  }

  .user-settings-content {
    position: relative;
    flex-grow: 1;
    height: 100%;
  }

  .user-settings-inner-container {
    position: relative;
    height: 100%;
    overflow: auto;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    max-width: 100%;

    .email-block {
      display: flex;
      width: 100%;

      .text-block {
        margin-left: 15px;
        .title {
        }
        .subtitle {
          color: rgba(0, 0, 0, 0.54);
        }
      }
    }

    .md-selection-control-group {
      padding: 0;
      margin: 0;

      > legend {
        margin-bottom: 0;
      }
    }

    .select-element {
      display: flex;
      .md-select-field__toggle {
        width: 100%;
        .md-icon-text {
          max-width: 100%;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }

    .select-radio-element {
      margin-bottom: 5px;
      legend {
        color: rgba(0, 0, 0, 0.54);
        font-size: 14px;
      }
    }

    .btn-container {
      button {
        margin-top: 10px;
      }
    }

    .fluro-sticky {
      position: sticky;
      background-color: #fff;
      padding: 20px;
      min-width: 99%;
      width: calc(100% - 2px); // right panel box-shadow
    }

    @media (max-width: 500px) {
      .md-text-field-container {
        min-width: 390px;
      }

      .flex-element__col {
        flex-basis: 1;
      }
    }
  }

  .md-btn--right {
    margin-left: auto;
    margin-right: 0;
  }
`},84257:(e,t,n)=>{"use strict";n.d(t,{c:()=>V,w:()=>$});var r=n(63392),i=n(19160),o=n.n(i),a=n(63002),s=n(80421),l=n.n(s),c=n(18178),u=n(19298),d=n(81440),p=n(72457),h=n(22219),f=n(36777),m=n(55927),g=n(51429),y=n(71038),v=n(51408),b=n(1730);const _=JSON.parse('[{"value":"Dateline Standard Time","abbr":"DST","offset":-12,"isdst":false,"text":"(UTC-12:00) International Date Line West","utc":["Etc/GMT+12"],"_value":"0:-12:DST","_label":"0:(UTC-12:00) International Date Line West (Dateline Standard Time)","id":"e5879i"},{"value":"UTC-11","abbr":"U","offset":-11,"isdst":false,"text":"(UTC-11:00) Coordinated Universal Time-11","utc":["Etc/GMT+11","Pacific/Midway","Pacific/Niue","Pacific/Pago_Pago"],"_value":"1:-11:U","_label":"1:(UTC-11:00) Coordinated Universal Time-11 (UTC-11)","id":"1nchyq"},{"value":"Hawaiian Standard Time","abbr":"HST","offset":-10,"isdst":false,"text":"(UTC-10:00) Hawaii","utc":["Etc/GMT+10","Pacific/Honolulu","Pacific/Johnston","Pacific/Rarotonga","Pacific/Tahiti"],"_value":"2:-10:HST","_label":"2:(UTC-10:00) Hawaii (Hawaiian Standard Time)","id":"v3socr"},{"value":"Alaskan Standard Time","abbr":"AKDT","offset":-8,"isdst":true,"text":"(UTC-09:00) Alaska","utc":["America/Anchorage","America/Juneau","America/Nome","America/Sitka","America/Yakutat"],"_value":"3:-8:AKDT","_label":"3:(UTC-09:00) Alaska (Alaskan Standard Time)","id":"cbcclr"},{"value":"Pacific Standard Time (Mexico)","abbr":"PDT","offset":-7,"isdst":true,"text":"(UTC-08:00) Baja California","utc":["America/Santa_Isabel"],"_value":"4:-7:PDT","_label":"4:(UTC-08:00) Baja California (Pacific Standard Time (Mexico))","id":"8udghf"},{"value":"Pacific Daylight Time","abbr":"PDT","offset":-7,"isdst":true,"text":"(UTC-07:00) Pacific Time (US & Canada)","utc":["America/Dawson","America/Los_Angeles","America/Tijuana","America/Vancouver","America/Whitehorse"],"_value":"5:-7:PDT","_label":"5:(UTC-07:00) Pacific Time (US & Canada) (Pacific Daylight Time)","id":"121t6"},{"value":"Pacific Standard Time","abbr":"PST","offset":-8,"isdst":false,"text":"(UTC-08:00) Pacific Time (US & Canada)","utc":["America/Dawson","America/Los_Angeles","America/Tijuana","America/Vancouver","America/Whitehorse","PST8PDT"],"_value":"6:-8:PST","_label":"6:(UTC-08:00) Pacific Time (US & Canada) (Pacific Standard Time)","id":"lk2y9p"},{"value":"US Mountain Standard Time","abbr":"UMST","offset":-7,"isdst":false,"text":"(UTC-07:00) Arizona","utc":["America/Creston","America/Dawson_Creek","America/Hermosillo","America/Phoenix","Etc/GMT+7"],"_value":"7:-7:UMST","_label":"7:(UTC-07:00) Arizona (US Mountain Standard Time)","id":"4d2wj5"},{"value":"Mountain Standard Time (Mexico)","abbr":"MDT","offset":-6,"isdst":true,"text":"(UTC-07:00) Chihuahua, La Paz, Mazatlan","utc":["America/Chihuahua","America/Mazatlan"],"_value":"8:-6:MDT","_label":"8:(UTC-07:00) Chihuahua, La Paz, Mazatlan (Mountain Standard Time (Mexico))","id":"dkb18g"},{"value":"Mountain Standard Time","abbr":"MDT","offset":-6,"isdst":true,"text":"(UTC-07:00) Mountain Time (US & Canada)","utc":["America/Boise","America/Cambridge_Bay","America/Denver","America/Edmonton","America/Inuvik","America/Ojinaga","America/Yellowknife","MST7MDT"],"_value":"9:-6:MDT","_label":"9:(UTC-07:00) Mountain Time (US & Canada) (Mountain Standard Time)","id":"ocpzgb"},{"value":"Central America Standard Time","abbr":"CAST","offset":-6,"isdst":false,"text":"(UTC-06:00) Central America","utc":["America/Belize","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Tegucigalpa","Etc/GMT+6","Pacific/Galapagos"],"_value":"10:-6:CAST","_label":"10:(UTC-06:00) Central America (Central America Standard Time)","id":"zp8qrp"},{"value":"Central Standard Time","abbr":"CDT","offset":-5,"isdst":true,"text":"(UTC-06:00) Central Time (US & Canada)","utc":["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg","CST6CDT"],"_value":"11:-5:CDT","_label":"11:(UTC-06:00) Central Time (US & Canada) (Central Standard Time)","id":"zw0ora"},{"value":"Central Standard Time (Mexico)","abbr":"CDT","offset":-5,"isdst":true,"text":"(UTC-06:00) Guadalajara, Mexico City, Monterrey","utc":["America/Bahia_Banderas","America/Cancun","America/Merida","America/Mexico_City","America/Monterrey"],"_value":"12:-5:CDT","_label":"12:(UTC-06:00) Guadalajara, Mexico City, Monterrey (Central Standard Time (Mexico))","id":"6bspqr"},{"value":"Canada Central Standard Time","abbr":"CCST","offset":-6,"isdst":false,"text":"(UTC-06:00) Saskatchewan","utc":["America/Regina","America/Swift_Current"],"_value":"13:-6:CCST","_label":"13:(UTC-06:00) Saskatchewan (Canada Central Standard Time)","id":"po3j9h"},{"value":"SA Pacific Standard Time","abbr":"SPST","offset":-5,"isdst":false,"text":"(UTC-05:00) Bogota, Lima, Quito","utc":["America/Bogota","America/Cayman","America/Coral_Harbour","America/Eirunepe","America/Guayaquil","America/Jamaica","America/Lima","America/Panama","America/Rio_Branco","Etc/GMT+5"],"_value":"14:-5:SPST","_label":"14:(UTC-05:00) Bogota, Lima, Quito (SA Pacific Standard Time)","id":"cmigqq"},{"value":"Eastern Standard Time","abbr":"EDT","offset":-4,"isdst":true,"text":"(UTC-05:00) Eastern Time (US & Canada)","utc":["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto","EST5EDT"],"_value":"15:-4:EDT","_label":"15:(UTC-05:00) Eastern Time (US & Canada) (Eastern Standard Time)","id":"uc640e"},{"value":"US Eastern Standard Time","abbr":"UEDT","offset":-4,"isdst":true,"text":"(UTC-05:00) Indiana (East)","utc":["America/Indiana/Marengo","America/Indiana/Vevay","America/Indianapolis"],"_value":"16:-4:UEDT","_label":"16:(UTC-05:00) Indiana (East) (US Eastern Standard Time)","id":"10zt3"},{"value":"Venezuela Standard Time","abbr":"VST","offset":-4.5,"isdst":false,"text":"(UTC-04:30) Caracas","utc":["America/Caracas"],"_value":"17:-4.5:VST","_label":"17:(UTC-04:30) Caracas (Venezuela Standard Time)","id":"p0wa8"},{"value":"Paraguay Standard Time","abbr":"PYT","offset":-4,"isdst":false,"text":"(UTC-04:00) Asuncion","utc":["America/Asuncion"],"_value":"18:-4:PYT","_label":"18:(UTC-04:00) Asuncion (Paraguay Standard Time)","id":"zc9oq"},{"value":"Atlantic Standard Time","abbr":"ADT","offset":-3,"isdst":true,"text":"(UTC-04:00) Atlantic Time (Canada)","utc":["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"],"_value":"19:-3:ADT","_label":"19:(UTC-04:00) Atlantic Time (Canada) (Atlantic Standard Time)","id":"aelb1h"},{"value":"Central Brazilian Standard Time","abbr":"CBST","offset":-4,"isdst":false,"text":"(UTC-04:00) Cuiaba","utc":["America/Campo_Grande","America/Cuiaba"],"_value":"20:-4:CBST","_label":"20:(UTC-04:00) Cuiaba (Central Brazilian Standard Time)","id":"k1f6ok"},{"value":"SA Western Standard Time","abbr":"SWST","offset":-4,"isdst":false,"text":"(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","utc":["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Boa_Vista","America/Curacao","America/Dominica","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guyana","America/Kralendijk","America/La_Paz","America/Lower_Princes","America/Manaus","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola","Etc/GMT+4"],"_value":"21:-4:SWST","_label":"21:(UTC-04:00) Georgetown, La Paz, Manaus, San Juan (SA Western Standard Time)","id":"8q59sa"},{"value":"Pacific SA Standard Time","abbr":"PSST","offset":-4,"isdst":false,"text":"(UTC-04:00) Santiago","utc":["America/Santiago","Antarctica/Palmer"],"_value":"22:-4:PSST","_label":"22:(UTC-04:00) Santiago (Pacific SA Standard Time)","id":"vcg2b8o"},{"value":"Newfoundland Standard Time","abbr":"NDT","offset":-2.5,"isdst":true,"text":"(UTC-03:30) Newfoundland","utc":["America/St_Johns"],"_value":"23:-2.5:NDT","_label":"23:(UTC-03:30) Newfoundland (Newfoundland Standard Time)","id":"fq369b"},{"value":"E. South America Standard Time","abbr":"ESAST","offset":-3,"isdst":false,"text":"(UTC-03:00) Brasilia","utc":["America/Sao_Paulo"],"_value":"24:-3:ESAST","_label":"24:(UTC-03:00) Brasilia (E. South America Standard Time)","id":"b2jtw"},{"value":"Argentina Standard Time","abbr":"AST","offset":-3,"isdst":false,"text":"(UTC-03:00) Buenos Aires","utc":["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"],"_value":"25:-3:AST","_label":"25:(UTC-03:00) Buenos Aires (Argentina Standard Time)","id":"o8831"},{"value":"SA Eastern Standard Time","abbr":"SEST","offset":-3,"isdst":false,"text":"(UTC-03:00) Cayenne, Fortaleza","utc":["America/Araguaina","America/Belem","America/Cayenne","America/Fortaleza","America/Maceio","America/Paramaribo","America/Recife","America/Santarem","Antarctica/Rothera","Atlantic/Stanley","Etc/GMT+3"],"_value":"26:-3:SEST","_label":"26:(UTC-03:00) Cayenne, Fortaleza (SA Eastern Standard Time)","id":"9ozpcq"},{"value":"Greenland Standard Time","abbr":"GDT","offset":-3,"isdst":true,"text":"(UTC-03:00) Greenland","utc":["America/Godthab"],"_value":"27:-3:GDT","_label":"27:(UTC-03:00) Greenland (Greenland Standard Time)","id":"0mj8cr"},{"value":"Montevideo Standard Time","abbr":"MST","offset":-3,"isdst":false,"text":"(UTC-03:00) Montevideo","utc":["America/Montevideo"],"_value":"28:-3:MST","_label":"28:(UTC-03:00) Montevideo (Montevideo Standard Time)","id":"emx5fs"},{"value":"Bahia Standard Time","abbr":"BST","offset":-3,"isdst":false,"text":"(UTC-03:00) Salvador","utc":["America/Bahia"],"_value":"29:-3:BST","_label":"29:(UTC-03:00) Salvador (Bahia Standard Time)","id":"1zwfw"},{"value":"UTC-02","abbr":"U","offset":-2,"isdst":false,"text":"(UTC-02:00) Coordinated Universal Time-02","utc":["America/Noronha","Atlantic/South_Georgia","Etc/GMT+2"],"_value":"30:-2:U","_label":"30:(UTC-02:00) Coordinated Universal Time-02 (UTC-02)","id":"qwohg"},{"value":"Mid-Atlantic Standard Time","abbr":"MDT","offset":-1,"isdst":true,"text":"(UTC-02:00) Mid-Atlantic - Old","utc":[],"_value":"31:-1:MDT","_label":"31:(UTC-02:00) Mid-Atlantic - Old (Mid-Atlantic Standard Time)","id":"7prgk"},{"value":"Azores Standard Time","abbr":"ADT","offset":0,"isdst":true,"text":"(UTC-01:00) Azores","utc":["America/Scoresbysund","Atlantic/Azores"],"_value":"32:0:ADT","_label":"32:(UTC-01:00) Azores (Azores Standard Time)","id":"cwqi1a"},{"value":"Cape Verde Standard Time","abbr":"CVST","offset":-1,"isdst":false,"text":"(UTC-01:00) Cape Verde Is.","utc":["Atlantic/Cape_Verde","Etc/GMT+1"],"_value":"33:-1:CVST","_label":"33:(UTC-01:00) Cape Verde Is. (Cape Verde Standard Time)","id":"nyx33u"},{"value":"Morocco Standard Time","abbr":"MDT","offset":1,"isdst":true,"text":"(UTC) Casablanca","utc":["Africa/Casablanca","Africa/El_Aaiun"],"_value":"34:1:MDT","_label":"34:(UTC) Casablanca (Morocco Standard Time)","id":"vvmqe5"},{"value":"UTC","abbr":"UTC","offset":0,"isdst":false,"text":"(UTC) Coordinated Universal Time","utc":["America/Danmarkshavn","Etc/GMT"],"_value":"35:0:UTC","_label":"35:(UTC) Coordinated Universal Time (UTC)","id":"nvvrrt"},{"value":"Greenwich Mean Time","abbr":"GMT","offset":0,"isdst":false,"text":"(UTC) Edinburgh, London","utc":["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"],"_value":"36:0:GMT","_label":"36:(UTC) Edinburgh, London (Greenwich Mean Time)","id":"n35knp"},{"value":"British Summer Time","abbr":"BST","offset":1,"isdst":true,"text":"(UTC+01:00) Edinburgh, London","utc":["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"],"_value":"37:1:BST","_label":"37:(UTC+01:00) Edinburgh, London (British Summer Time)","id":"ztpm6o"},{"value":"GMT Standard Time","abbr":"GDT","offset":1,"isdst":true,"text":"(UTC) Dublin, Lisbon","utc":["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Dublin","Europe/Lisbon"],"_value":"38:1:GDT","_label":"38:(UTC) Dublin, Lisbon (GMT Standard Time)","id":"d9f1e"},{"value":"Greenwich Standard Time","abbr":"GST","offset":0,"isdst":false,"text":"(UTC) Monrovia, Reykjavik","utc":["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","Atlantic/Reykjavik","Atlantic/St_Helena"],"_value":"39:0:GST","_label":"39:(UTC) Monrovia, Reykjavik (Greenwich Standard Time)","id":"5ezc3j"},{"value":"W. Europe Standard Time","abbr":"WEDT","offset":2,"isdst":true,"text":"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","utc":["Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Berlin","Europe/Busingen","Europe/Gibraltar","Europe/Luxembourg","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Rome","Europe/San_Marino","Europe/Stockholm","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Zurich"],"_value":"40:2:WEDT","_label":"40:(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (W. Europe Standard Time)","id":"o31mmh"},{"value":"Central Europe Standard Time","abbr":"CEDT","offset":2,"isdst":true,"text":"(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","utc":["Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Podgorica","Europe/Prague","Europe/Tirane"],"_value":"41:2:CEDT","_label":"41:(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague (Central Europe Standard Time)","id":"89m2wc"},{"value":"Romance Standard Time","abbr":"RDT","offset":2,"isdst":true,"text":"(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","utc":["Africa/Ceuta","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris"],"_value":"42:2:RDT","_label":"42:(UTC+01:00) Brussels, Copenhagen, Madrid, Paris (Romance Standard Time)","id":"n82e6"},{"value":"Central European Standard Time","abbr":"CEDT","offset":2,"isdst":true,"text":"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","utc":["Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb"],"_value":"43:2:CEDT","_label":"43:(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb (Central European Standard Time)","id":"2ttmw"},{"value":"W. Central Africa Standard Time","abbr":"WCAST","offset":1,"isdst":false,"text":"(UTC+01:00) West Central Africa","utc":["Africa/Algiers","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo","Africa/Tunis","Etc/GMT-1"],"_value":"44:1:WCAST","_label":"44:(UTC+01:00) West Central Africa (W. Central Africa Standard Time)","id":"b9k04l"},{"value":"Namibia Standard Time","abbr":"NST","offset":1,"isdst":false,"text":"(UTC+01:00) Windhoek","utc":["Africa/Windhoek"],"_value":"45:1:NST","_label":"45:(UTC+01:00) Windhoek (Namibia Standard Time)","id":"90bjdd"},{"value":"GTB Standard Time","abbr":"GDT","offset":3,"isdst":true,"text":"(UTC+02:00) Athens, Bucharest","utc":["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau"],"_value":"46:3:GDT","_label":"46:(UTC+02:00) Athens, Bucharest (GTB Standard Time)","id":"se2vl"},{"value":"Middle East Standard Time","abbr":"MEDT","offset":3,"isdst":true,"text":"(UTC+02:00) Beirut","utc":["Asia/Beirut"],"_value":"47:3:MEDT","_label":"47:(UTC+02:00) Beirut (Middle East Standard Time)","id":"xfs4xs"},{"value":"Egypt Standard Time","abbr":"EST","offset":2,"isdst":false,"text":"(UTC+02:00) Cairo","utc":["Africa/Cairo"],"_value":"48:2:EST","_label":"48:(UTC+02:00) Cairo (Egypt Standard Time)","id":"r9w1i9"},{"value":"Syria Standard Time","abbr":"SDT","offset":3,"isdst":true,"text":"(UTC+02:00) Damascus","utc":["Asia/Damascus"],"_value":"49:3:SDT","_label":"49:(UTC+02:00) Damascus (Syria Standard Time)","id":"eyysz"},{"value":"E. Europe Standard Time","abbr":"EEDT","offset":3,"isdst":true,"text":"(UTC+02:00) E. Europe","utc":["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Nicosia","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"],"_value":"50:3:EEDT","_label":"50:(UTC+02:00) E. Europe (E. Europe Standard Time)","id":"2mu0hw"},{"value":"South Africa Standard Time","abbr":"SAST","offset":2,"isdst":false,"text":"(UTC+02:00) Harare, Pretoria","utc":["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Etc/GMT-2"],"_value":"51:2:SAST","_label":"51:(UTC+02:00) Harare, Pretoria (South Africa Standard Time)","id":"371r8k"},{"value":"FLE Standard Time","abbr":"FDT","offset":3,"isdst":true,"text":"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","utc":["Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"],"_value":"52:3:FDT","_label":"52:(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius (FLE Standard Time)","id":"sb56s"},{"value":"Turkey Standard Time","abbr":"TDT","offset":3,"isdst":false,"text":"(UTC+03:00) Istanbul","utc":["Europe/Istanbul"],"_value":"53:3:TDT","_label":"53:(UTC+03:00) Istanbul (Turkey Standard Time)","id":"068pr1"},{"value":"Israel Standard Time","abbr":"JDT","offset":3,"isdst":true,"text":"(UTC+02:00) Jerusalem","utc":["Asia/Jerusalem"],"_value":"54:3:JDT","_label":"54:(UTC+02:00) Jerusalem (Israel Standard Time)","id":"n17ve"},{"value":"Libya Standard Time","abbr":"LST","offset":2,"isdst":false,"text":"(UTC+02:00) Tripoli","utc":["Africa/Tripoli"],"_value":"55:2:LST","_label":"55:(UTC+02:00) Tripoli (Libya Standard Time)","id":"aelolp"},{"value":"Jordan Standard Time","abbr":"JST","offset":3,"isdst":false,"text":"(UTC+03:00) Amman","utc":["Asia/Amman"],"_value":"56:3:JST","_label":"56:(UTC+03:00) Amman (Jordan Standard Time)","id":"4epcpg"},{"value":"Arabic Standard Time","abbr":"AST","offset":3,"isdst":false,"text":"(UTC+03:00) Baghdad","utc":["Asia/Baghdad"],"_value":"57:3:AST","_label":"57:(UTC+03:00) Baghdad (Arabic Standard Time)","id":"zke6w"},{"value":"Kaliningrad Standard Time","abbr":"KST","offset":3,"isdst":false,"text":"(UTC+03:00) Kaliningrad, Minsk","utc":["Europe/Kaliningrad","Europe/Minsk"],"_value":"58:3:KST","_label":"58:(UTC+03:00) Kaliningrad, Minsk (Kaliningrad Standard Time)","id":"luhghp"},{"value":"Arab Standard Time","abbr":"AST","offset":3,"isdst":false,"text":"(UTC+03:00) Kuwait, Riyadh","utc":["Asia/Aden","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"],"_value":"59:3:AST","_label":"59:(UTC+03:00) Kuwait, Riyadh (Arab Standard Time)","id":"zjrknv"},{"value":"E. Africa Standard Time","abbr":"EAST","offset":3,"isdst":false,"text":"(UTC+03:00) Nairobi","utc":["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Mogadishu","Africa/Nairobi","Antarctica/Syowa","Etc/GMT-3","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"],"_value":"60:3:EAST","_label":"60:(UTC+03:00) Nairobi (E. Africa Standard Time)","id":"9ji0ua"},{"value":"Moscow Standard Time","abbr":"MSK","offset":3,"isdst":false,"text":"(UTC+03:00) Moscow, St. Petersburg, Volgograd","utc":["Europe/Kirov","Europe/Moscow","Europe/Simferopol","Europe/Volgograd"],"_value":"61:3:MSK","_label":"61:(UTC+03:00) Moscow, St. Petersburg, Volgograd (Moscow Standard Time)","id":"71l7li"},{"value":"Samara Time","abbr":"SAMT","offset":4,"isdst":false,"text":"(UTC+04:00) Samara, Ulyanovsk, Saratov","utc":["Europe/Astrakhan","Europe/Samara","Europe/Ulyanovsk"],"_value":"62:4:SAMT","_label":"62:(UTC+04:00) Samara, Ulyanovsk, Saratov (Samara Time)","id":"0yutyf"},{"value":"Iran Standard Time","abbr":"IDT","offset":4.5,"isdst":true,"text":"(UTC+03:30) Tehran","utc":["Asia/Tehran"],"_value":"63:4.5:IDT","_label":"63:(UTC+03:30) Tehran (Iran Standard Time)","id":"eeaq9t"},{"value":"Arabian Standard Time","abbr":"AST","offset":4,"isdst":false,"text":"(UTC+04:00) Abu Dhabi, Muscat","utc":["Asia/Dubai","Asia/Muscat","Etc/GMT-4"],"_value":"64:4:AST","_label":"64:(UTC+04:00) Abu Dhabi, Muscat (Arabian Standard Time)","id":"0x9diq"},{"value":"Azerbaijan Standard Time","abbr":"ADT","offset":5,"isdst":true,"text":"(UTC+04:00) Baku","utc":["Asia/Baku"],"_value":"65:5:ADT","_label":"65:(UTC+04:00) Baku (Azerbaijan Standard Time)","id":"c0wt0x"},{"value":"Mauritius Standard Time","abbr":"MST","offset":4,"isdst":false,"text":"(UTC+04:00) Port Louis","utc":["Indian/Mahe","Indian/Mauritius","Indian/Reunion"],"_value":"66:4:MST","_label":"66:(UTC+04:00) Port Louis (Mauritius Standard Time)","id":"57i4v"},{"value":"Georgian Standard Time","abbr":"GST","offset":4,"isdst":false,"text":"(UTC+04:00) Tbilisi","utc":["Asia/Tbilisi"],"_value":"67:4:GST","_label":"67:(UTC+04:00) Tbilisi (Georgian Standard Time)","id":"9n1ilk"},{"value":"Caucasus Standard Time","abbr":"CST","offset":4,"isdst":false,"text":"(UTC+04:00) Yerevan","utc":["Asia/Yerevan"],"_value":"68:4:CST","_label":"68:(UTC+04:00) Yerevan (Caucasus Standard Time)","id":"0zeg7o"},{"value":"Afghanistan Standard Time","abbr":"AST","offset":4.5,"isdst":false,"text":"(UTC+04:30) Kabul","utc":["Asia/Kabul"],"_value":"69:4.5:AST","_label":"69:(UTC+04:30) Kabul (Afghanistan Standard Time)","id":"fscynp"},{"value":"West Asia Standard Time","abbr":"WAST","offset":5,"isdst":false,"text":"(UTC+05:00) Ashgabat, Tashkent","utc":["Antarctica/Mawson","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Dushanbe","Asia/Oral","Asia/Samarkand","Asia/Tashkent","Etc/GMT-5","Indian/Kerguelen","Indian/Maldives"],"_value":"70:5:WAST","_label":"70:(UTC+05:00) Ashgabat, Tashkent (West Asia Standard Time)","id":"u8dwfb"},{"value":"Yekaterinburg Time","abbr":"YEKT","offset":5,"isdst":false,"text":"(UTC+05:00) Yekaterinburg","utc":["Asia/Yekaterinburg"],"_value":"71:5:YEKT","_label":"71:(UTC+05:00) Yekaterinburg (Yekaterinburg Time)","id":"u8xpsq"},{"value":"Pakistan Standard Time","abbr":"PKT","offset":5,"isdst":false,"text":"(UTC+05:00) Islamabad, Karachi","utc":["Asia/Karachi"],"_value":"72:5:PKT","_label":"72:(UTC+05:00) Islamabad, Karachi (Pakistan Standard Time)","id":"oqatea"},{"value":"India Standard Time","abbr":"IST","offset":5.5,"isdst":false,"text":"(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","utc":["Asia/Kolkata"],"_value":"73:5.5:IST","_label":"73:(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi (India Standard Time)","id":"c3m8sj"},{"value":"Sri Lanka Standard Time","abbr":"SLST","offset":5.5,"isdst":false,"text":"(UTC+05:30) Sri Jayawardenepura","utc":["Asia/Colombo"],"_value":"74:5.5:SLST","_label":"74:(UTC+05:30) Sri Jayawardenepura (Sri Lanka Standard Time)","id":"f4vybl"},{"value":"Nepal Standard Time","abbr":"NST","offset":5.75,"isdst":false,"text":"(UTC+05:45) Kathmandu","utc":["Asia/Katmandu"],"_value":"75:5.75:NST","_label":"75:(UTC+05:45) Kathmandu (Nepal Standard Time)","id":"e1houh"},{"value":"Central Asia Standard Time","abbr":"CAST","offset":6,"isdst":false,"text":"(UTC+06:00) Astana","utc":["Antarctica/Vostok","Asia/Almaty","Asia/Bishkek","Asia/Qyzylorda","Asia/Urumqi","Etc/GMT-6","Indian/Chagos"],"_value":"76:6:CAST","_label":"76:(UTC+06:00) Astana (Central Asia Standard Time)","id":"pzrb7t"},{"value":"Bangladesh Standard Time","abbr":"BST","offset":6,"isdst":false,"text":"(UTC+06:00) Dhaka","utc":["Asia/Dhaka","Asia/Thimphu"],"_value":"77:6:BST","_label":"77:(UTC+06:00) Dhaka (Bangladesh Standard Time)","id":"bkb83e"},{"value":"Myanmar Standard Time","abbr":"MST","offset":6.5,"isdst":false,"text":"(UTC+06:30) Yangon (Rangoon)","utc":["Asia/Rangoon","Indian/Cocos"],"_value":"78:6.5:MST","_label":"78:(UTC+06:30) Yangon (Rangoon) (Myanmar Standard Time)","id":"xfl8hl"},{"value":"SE Asia Standard Time","abbr":"SAST","offset":7,"isdst":false,"text":"(UTC+07:00) Bangkok, Hanoi, Jakarta","utc":["Antarctica/Davis","Asia/Bangkok","Asia/Hovd","Asia/Jakarta","Asia/Phnom_Penh","Asia/Pontianak","Asia/Saigon","Asia/Vientiane","Etc/GMT-7","Indian/Christmas"],"_value":"79:7:SAST","_label":"79:(UTC+07:00) Bangkok, Hanoi, Jakarta (SE Asia Standard Time)","id":"hnyzgk"},{"value":"N. Central Asia Standard Time","abbr":"NCAST","offset":7,"isdst":false,"text":"(UTC+07:00) Novosibirsk","utc":["Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk"],"_value":"80:7:NCAST","_label":"80:(UTC+07:00) Novosibirsk (N. Central Asia Standard Time)","id":"kizzb6"},{"value":"China Standard Time","abbr":"CST","offset":8,"isdst":false,"text":"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","utc":["Asia/Hong_Kong","Asia/Macau","Asia/Shanghai"],"_value":"81:8:CST","_label":"81:(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi (China Standard Time)","id":"c91gzp"},{"value":"North Asia Standard Time","abbr":"NAST","offset":8,"isdst":false,"text":"(UTC+08:00) Krasnoyarsk","utc":["Asia/Krasnoyarsk"],"_value":"82:8:NAST","_label":"82:(UTC+08:00) Krasnoyarsk (North Asia Standard Time)","id":"7p4bet"},{"value":"Singapore Standard Time","abbr":"MPST","offset":8,"isdst":false,"text":"(UTC+08:00) Kuala Lumpur, Singapore","utc":["Asia/Brunei","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Makassar","Asia/Manila","Asia/Singapore","Etc/GMT-8"],"_value":"83:8:MPST","_label":"83:(UTC+08:00) Kuala Lumpur, Singapore (Singapore Standard Time)","id":"t3jg29"},{"value":"W. Australia Standard Time","abbr":"WAST","offset":8,"isdst":false,"text":"(UTC+08:00) Perth","utc":["Antarctica/Casey","Australia/Perth"],"_value":"84:8:WAST","_label":"84:(UTC+08:00) Perth (W. Australia Standard Time)","id":"zr0mco"},{"value":"Taipei Standard Time","abbr":"TST","offset":8,"isdst":false,"text":"(UTC+08:00) Taipei","utc":["Asia/Taipei"],"_value":"85:8:TST","_label":"85:(UTC+08:00) Taipei (Taipei Standard Time)","id":"hdryxsi"},{"value":"Ulaanbaatar Standard Time","abbr":"UST","offset":8,"isdst":false,"text":"(UTC+08:00) Ulaanbaatar","utc":["Asia/Choibalsan","Asia/Ulaanbaatar"],"_value":"86:8:UST","_label":"86:(UTC+08:00) Ulaanbaatar (Ulaanbaatar Standard Time)","id":"gpwjy0w"},{"value":"North Asia East Standard Time","abbr":"NAEST","offset":9,"isdst":false,"text":"(UTC+09:00) Irkutsk","utc":["Asia/Irkutsk"],"_value":"87:9:NAEST","_label":"87:(UTC+09:00) Irkutsk (North Asia East Standard Time)","id":"jykhr"},{"value":"Japan Standard Time","abbr":"JST","offset":9,"isdst":false,"text":"(UTC+09:00) Osaka, Sapporo, Tokyo","utc":["Asia/Dili","Asia/Jayapura","Asia/Tokyo","Etc/GMT-9","Pacific/Palau"],"_value":"88:9:JST","_label":"88:(UTC+09:00) Osaka, Sapporo, Tokyo (Japan Standard Time)","id":"tydlnf"},{"value":"Korea Standard Time","abbr":"KST","offset":9,"isdst":false,"text":"(UTC+09:00) Seoul","utc":["Asia/Pyongyang","Asia/Seoul"],"_value":"89:9:KST","_label":"89:(UTC+09:00) Seoul (Korea Standard Time)","id":"70giqa"},{"value":"Cen. Australia Standard Time","abbr":"CAST","offset":9.5,"isdst":false,"text":"(UTC+09:30) Adelaide","utc":["Australia/Adelaide","Australia/Broken_Hill"],"_value":"90:9.5:CAST","_label":"90:(UTC+09:30) Adelaide (Cen. Australia Standard Time)","id":"70nszy"},{"value":"AUS Central Standard Time","abbr":"ACST","offset":9.5,"isdst":false,"text":"(UTC+09:30) Darwin","utc":["Australia/Darwin"],"_value":"91:9.5:ACST","_label":"91:(UTC+09:30) Darwin (AUS Central Standard Time)","id":"mgftmq"},{"value":"E. Australia Standard Time","abbr":"EAST","offset":10,"isdst":false,"text":"(UTC+10:00) Brisbane","utc":["Australia/Brisbane","Australia/Lindeman"],"_value":"92:10:EAST","_label":"92:(UTC+10:00) Brisbane (E. Australia Standard Time)","id":"q12coc"},{"value":"AUS Eastern Standard Time","abbr":"AEST","offset":10,"isdst":false,"text":"(UTC+10:00) Canberra, Melbourne, Sydney","utc":["Australia/Melbourne","Australia/Sydney"],"_value":"93:10:AEST","_label":"93:(UTC+10:00) Canberra, Melbourne, Sydney (AUS Eastern Standard Time)","id":"2eirus"},{"value":"West Pacific Standard Time","abbr":"WPST","offset":10,"isdst":false,"text":"(UTC+10:00) Guam, Port Moresby","utc":["Antarctica/DumontDUrville","Etc/GMT-10","Pacific/Guam","Pacific/Port_Moresby","Pacific/Saipan","Pacific/Truk"],"_value":"94:10:WPST","_label":"94:(UTC+10:00) Guam, Port Moresby (West Pacific Standard Time)","id":"14gklu"},{"value":"Tasmania Standard Time","abbr":"TST","offset":10,"isdst":false,"text":"(UTC+10:00) Hobart","utc":["Australia/Currie","Australia/Hobart"],"_value":"95:10:TST","_label":"95:(UTC+10:00) Hobart (Tasmania Standard Time)","id":"d6u82n"},{"value":"Yakutsk Standard Time","abbr":"YST","offset":10,"isdst":false,"text":"(UTC+10:00) Yakutsk","utc":["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"],"_value":"96:10:YST","_label":"96:(UTC+10:00) Yakutsk (Yakutsk Standard Time)","id":"rb7gxs"},{"value":"Central Pacific Standard Time","abbr":"CPST","offset":11,"isdst":false,"text":"(UTC+11:00) Solomon Is., New Caledonia","utc":["Antarctica/Macquarie","Etc/GMT-11","Pacific/Efate","Pacific/Guadalcanal","Pacific/Kosrae","Pacific/Noumea","Pacific/Ponape"],"_value":"97:11:CPST","_label":"97:(UTC+11:00) Solomon Is., New Caledonia (Central Pacific Standard Time)","id":"wxi9ps"},{"value":"Vladivostok Standard Time","abbr":"VST","offset":11,"isdst":false,"text":"(UTC+11:00) Vladivostok","utc":["Asia/Sakhalin","Asia/Ust-Nera","Asia/Vladivostok"],"_value":"98:11:VST","_label":"98:(UTC+11:00) Vladivostok (Vladivostok Standard Time)","id":"g1hcv"},{"value":"New Zealand Standard Time","abbr":"NZST","offset":12,"isdst":false,"text":"(UTC+12:00) Auckland, Wellington","utc":["Antarctica/McMurdo","Pacific/Auckland"],"_value":"99:12:NZST","_label":"99:(UTC+12:00) Auckland, Wellington (New Zealand Standard Time)","id":"solg2b"},{"value":"UTC+12","abbr":"U","offset":12,"isdst":false,"text":"(UTC+12:00) Coordinated Universal Time+12","utc":["Etc/GMT-12","Pacific/Funafuti","Pacific/Kwajalein","Pacific/Majuro","Pacific/Nauru","Pacific/Tarawa","Pacific/Wake","Pacific/Wallis"],"_value":"100:12:U","_label":"100:(UTC+12:00) Coordinated Universal Time+12 (UTC+12)","id":"ftzq4j"},{"value":"Fiji Standard Time","abbr":"FST","offset":12,"isdst":false,"text":"(UTC+12:00) Fiji","utc":["Pacific/Fiji"],"_value":"101:12:FST","_label":"101:(UTC+12:00) Fiji (Fiji Standard Time)","id":"lasrdw"},{"value":"Magadan Standard Time","abbr":"MST","offset":12,"isdst":false,"text":"(UTC+12:00) Magadan","utc":["Asia/Anadyr","Asia/Kamchatka","Asia/Magadan","Asia/Srednekolymsk"],"_value":"102:12:MST","_label":"102:(UTC+12:00) Magadan (Magadan Standard Time)","id":"rppo1v"},{"value":"Kamchatka Standard Time","abbr":"KDT","offset":13,"isdst":true,"text":"(UTC+12:00) Petropavlovsk-Kamchatsky - Old","utc":["Asia/Kamchatka"],"_value":"103:13:KDT","_label":"103:(UTC+12:00) Petropavlovsk-Kamchatsky - Old (Kamchatka Standard Time)","id":"qkzcto"},{"value":"Tonga Standard Time","abbr":"TST","offset":13,"isdst":false,"text":"(UTC+13:00) Nuku\'alofa","utc":["Etc/GMT-13","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Tongatapu"],"_value":"104:13:TST","_label":"104:(UTC+13:00) Nuku\'alofa (Tonga Standard Time)","id":"4nloe5"},{"value":"Samoa Standard Time","abbr":"SST","offset":13,"isdst":false,"text":"(UTC+13:00) Samoa","utc":["Pacific/Apia"],"_value":"105:13:SST","_label":"105:(UTC+13:00) Samoa (Samoa Standard Time)","id":"vvsmok"}]');var w=n(9694),x=n(49346),k=n(49582),C=n(5229),S=n(33022),M=n(22168),T=n(92473),E=n(5651);const P=c.memo(p.nv),I=l()(_,"id"),O=e=>(0,C.t)({id:"minimum length {value}",defaultMessage:"minimum length {value}"},{value:e}),L=e=>(0,C.t)({id:"maximum length {value}",defaultMessage:"minimum length {value}"},{value:e}),R=()=>(0,C.t)({id:"First name is a required field",defaultMessage:"First name is a required field"}),j=()=>(0,C.t)({id:"Surname is a required field",defaultMessage:"Surname is a required field"}),D=()=>(0,C.t)({id:"Invalid phone number",defaultMessage:"Invalid phone number"}),A=e=>(0,C.t)({id:"Max length of country is {value}",defaultMessage:"Max length of country is {value}"},{value:e}),N=e=>(0,C.t)({id:"Max length of address is {value}",defaultMessage:"Max length of address is {value}"},{value:e}),F=e=>(0,C.t)({id:"Max length of city is {value}",defaultMessage:"Max length of city is {value}"},{value:e}),z=e=>(0,C.t)({id:"Max length of zip is {value}",defaultMessage:"Max length of zip is {value}"},{value:e}),B=(0,h.Ry)().shape({name:(0,h.Z_)().min(2,O(2)).max(64,L(64)).required(R()),surname:(0,h.Z_)().min(2,O(2)).max(64,L(64)).required(j()),phone:(0,h.Z_)().test("phone","",(function(){return!!this.parent._validPhone||this.createError({path:this.path,message:D()})})),country:(0,h.Z_)().max(100,A(100)).required(),street:(0,h.Z_)().min(3,(0,C.t)({id:"Street is required (min 3 characters)",defaultMessage:"Street is required (min 3 characters)"})).max(100,N(100)).required(),city:(0,h.Z_)().max(100,F(100)).required(),zip:(0,h.Z_)().min(3,(0,C.t)({id:"Zip required (min 3 characters)",defaultMessage:"Zip required (min 3 characters)"})).max(100,z(100)).required(),state:(0,h.Z_)().min(3,(0,C.t)({id:"Region is required",defaultMessage:"Region is required"})).required((0,C.t)({id:"Region is required",defaultMessage:"Region is required"}))}),U=(0,h.Ry)().shape({name:(0,h.Z_)().min(2,O(2)).max(64,L(64)).required(R()),surname:(0,h.Z_)().min(2,O(2)).max(64,L(64)).required(j()),phone:(0,h.Z_)().test("phone","",(function(){return this.parent._validPhone||this.createError({path:this.path,message:D()})})),country:(0,h.Z_)().max(100,A(100)),street:(0,h.Z_)().max(100,N(100)),city:(0,h.Z_)().max(100,F(100)),zip:(0,h.Z_)().max(100,z(100)),state:(0,h.Z_)()}),$="new",V=e=>{var t,n,i,s,l,c,h,O,L,R,j,D,A,N,F,z,V,q,Z,H,G,W,Y,K,X,J,Q,ee;let{handleOnFormSubmit:te,user:ne}=e;const re=(0,m.C)(w.CT),ie=(0,m.C)(M.yX),oe={langLocale:null!==(t=null===(n=ne.settings)||void 0===n?void 0:n.langLocale)&&void 0!==t?t:S.g.EnUS,measurement:null!==(i=null===(s=ne.settings)||void 0===s?void 0:s.measurement)&&void 0!==i?i:x.Ug.MetricUnits,timezone:(null===(l=ne.settings)||void 0===l?void 0:l.timezone)||"",phone:ne.phone,name:ne.name,email:ne.email,surname:ne.surname,country:(null===(c=ne.settings)||void 0===c||null===(h=c.company)||void 0===h?void 0:h.country)||"",street:(null===(O=ne.settings)||void 0===O||null===(L=O.company)||void 0===L?void 0:L.street)||"",state:(null===(R=ne.settings)||void 0===R||null===(j=R.company)||void 0===j?void 0:j.state)||"",city:(null===(D=ne.settings)||void 0===D||null===(A=D.company)||void 0===A?void 0:A.city)||"",zip:(null===(N=ne.settings)||void 0===N||null===(F=N.company)||void 0===F?void 0:F.zip)||"",_validPhone:!0},{handleSubmit:ae,control:se,setValue:le,formState:{errors:ce},watch:ue}=(0,u.cI)({resolver:re||ie?(0,r.X)(U):(0,r.X)(B),defaultValues:oe}),de=ue(),pe=(0,a.getCountries)().map((e=>{let{name:t}=e;return{label:t,value:t}})),he=(e,t)=>{"country"===e&&le("state","",{shouldValidate:!1}),le(e,t,{shouldValidate:!0})},fe=null===(z=(0,a.getFilteredCountries)([de.country]))||void 0===z?void 0:z[0],me=(0,a.getStates)(null===fe||void 0===fe?void 0:fe.code)||[];return(0,E.jsxs)(T.W,{onSubmit:ae((e=>te({...e,phone:(e.phoneFullNumber||e.phone||"").replace(/\D/g,"")}))),children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(b.x,{elementType:"h2",className:"m-0",children:(0,C.t)({id:"General",defaultMessage:"General"})}),(0,E.jsxs)(v.k,{gap:"16px 32px",className:"margin-bottom-20",children:[(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{id:"user-name",name:"name",value:de.name,label:(0,C.t)({id:"First name",defaultMessage:"First name"}),error:!(null===ce||void 0===ce||!ce.name),errorText:null===ce||void 0===ce||null===(V=ce.name)||void 0===V?void 0:V.message,onChange:e=>he("name",e)})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{name:"surname",value:de.surname,id:"user-surname",label:(0,C.t)({id:"Surname",defaultMessage:"Surname"}),error:!(null===ce||void 0===ce||!ce.surname),errorText:null===ce||void 0===ce||null===(q=ce.surname)||void 0===q?void 0:q.message,onChange:e=>he("surname",e)})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{id:"user-email",name:(0,C.t)({id:"Email",defaultMessage:"Email"}),label:(0,C.t)({id:"Email",defaultMessage:"Email"}),value:de.email,onChange:e=>he("email",e),disabled:ne.id!==$,readOnly:!ie,autoComplete:"off",error:!!ce.email,errorText:null===(Z=ce.email)||void 0===Z?void 0:Z.message})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsxs)("div",{className:o()("user-phone",{error:(null===ce||void 0===ce||null===(H=ce.phone)||void 0===H?void 0:H.message)&&de.phone}),children:[(0,E.jsx)("div",{children:(0,E.jsx)(b.x,{secondary:!0,variant:"small",role:"textbox",elementType:"label",className:o()("user-phone__label",{error:(null===ce||void 0===ce||null===(G=ce.phone)||void 0===G?void 0:G.message)&&de.phone}),children:(0,C.t)({id:"Phone number",defaultMessage:"Phone number"})})}),(0,E.jsx)(d.Z,{inputClassName:"phone-tel-input",preferredCountries:["us","au"],defaultCountry:(null===fe||void 0===fe?void 0:fe.code)||"us",onPhoneNumberChange:(e,t,n,r)=>((e,t,n)=>{le("_validPhone",!t||e),le("phoneFullNumber",n),he("phone",t)})(e,t,r),autoHideDialCode:!0,dropdownContainer:"div",value:null===de||void 0===de?void 0:de.phone,nationalMode:!1}),null!==ce&&void 0!==ce&&ce.phone?(0,E.jsx)("div",{className:"md-text md-text--error",children:null===(W=ce.phone)||void 0===W?void 0:W.message}):null]})})]}),(0,E.jsx)(b.x,{elementType:"h2",children:(0,C.t)({id:"Address",defaultMessage:"Address"})}),(0,E.jsxs)(v.k,{gap:"16px 32px",className:"margin-bottom-20",children:[(0,E.jsxs)(y.J,{basis:"calc(50% - 16px)",children:[(0,E.jsx)(g.Z,{id:"user-country",label:(0,C.t)({id:"Country",defaultMessage:"Country"}),title:(0,C.t)({id:"Country",defaultMessage:"Country"}),menuItems:pe,onAutocomplete:e=>he("country",e),value:null===de||void 0===de?void 0:de.country,className:"select-element",error:!!ce.country}),null!==ce&&void 0!==ce&&ce.country?(0,E.jsx)("div",{className:"md-text md-text--error",children:null===ce||void 0===ce||null===(Y=ce.country)||void 0===Y?void 0:Y.message}):null]}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:me.length?(0,E.jsx)(g.Z,{id:"user-region",label:(0,C.t)({id:"Region",defaultMessage:"Region"}),title:(0,C.t)({id:"Region",defaultMessage:"Region"}),onAutocomplete:e=>he("state",e),placeholder:"Region",menuItems:me,value:de.state,error:!!ce.state,errorText:null===(K=ce.state)||void 0===K?void 0:K.message}):(0,E.jsx)(P,{id:"user-region",label:(0,C.t)({id:"Region",defaultMessage:"Region"}),value:de.state,onChange:e=>he("state",e),error:!!ce.state,errorText:null===(X=ce.state)||void 0===X?void 0:X.message})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{name:"city",value:de.city,id:"user-city",label:(0,C.t)({id:"Reg.City",defaultMessage:"City"}),error:!(null===ce||void 0===ce||!ce.city),errorText:null===ce||void 0===ce||null===(J=ce.city)||void 0===J?void 0:J.message,onChange:e=>he("city",e)})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{name:"street",id:"user-street",label:(0,C.t)({id:"Reg.Street",defaultMessage:"Street"}),value:de.street,error:!(null===ce||void 0===ce||!ce.street),errorText:null===ce||void 0===ce||null===(Q=ce.street)||void 0===Q?void 0:Q.message,onChange:e=>he("street",e)})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(P,{name:"zip",id:"user-zip",label:(0,C.t)({id:"Reg.Zip",defaultMessage:"Zip"}),value:de.zip,error:!(null===ce||void 0===ce||!ce.zip),errorText:null===ce||void 0===ce||null===(ee=ce.zip)||void 0===ee?void 0:ee.message,onChange:e=>he("zip",e)})})]}),(0,E.jsx)(b.x,{elementType:"h2",children:(0,C.t)({id:"Preferences",defaultMessage:"Preferences"})}),(0,E.jsxs)(v.k,{gap:"20px 32px",children:[(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(u.Qr,{control:se,name:"langLocale",render:e=>{let{field:t}=e;return(0,E.jsx)(p.mg,{id:"lang-select",className:"select-element",label:(0,C.t)({id:"Language",defaultMessage:"Language"}),menuItems:k.Vx,simplifiedMenu:!0,...t})}})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(u.Qr,{name:"timezone",control:se,render:e=>{var t,n;const{field:{value:r,onChange:i}}=e,o=I[r];return(0,E.jsx)(g.Z,{id:"timezone-field",label:(0,C.t)({id:"Timezone",defaultMessage:"Timezone"}),title:(null===o||void 0===o?void 0:o._label)||"",menuItems:_,dataLabel:"text",dataValue:"id",onAutocomplete:i,value:null!==(t=null===(n=I[r])||void 0===n?void 0:n.text)&&void 0!==t?t:"",className:"select-element"})}})}),(0,E.jsx)(y.J,{basis:"calc(50% - 16px)",children:(0,E.jsx)(u.Qr,{name:"measurement",control:se,render:e=>{let{field:t}=e;return(0,E.jsx)(p.rT,{id:"selection-control-group-radios",name:"radio",type:"radio",className:"select-units",label:(0,E.jsx)(b.x,{variant:"small",elementType:"label",secondary:!0,children:(0,C.t)({id:"Measurement units",defaultMessage:"Measurement units"})}),inline:!0,value:t.value,onChange:e=>{le("measurement",e),e===x.Ug.ImperialUnits?le("locale","en-US"):e===x.Ug.MetricUnits&&le("locale","uk-UA")},controls:[{label:(0,C.t)({id:"Metric Units",defaultMessage:"Metric Units"}),value:x.Ug.MetricUnits},{label:(0,C.t)({id:"U.S. Units",defaultMessage:"U.S. Units"}),value:x.Ug.ImperialUnits}]})}})})]})]}),(0,E.jsx)(v.k,{justifyContent:"flex-end",className:"padding-top-20",children:(0,E.jsx)(f.zx,{type:"submit",children:(0,C.t)({id:"Save",defaultMessage:"Save"})})})]})}},74942:(e,t,n)=>{"use strict";n.d(t,{G3:()=>M,Og:()=>H,UZ:()=>k,Us:()=>x,Uw:()=>$,ZJ:()=>S,bX:()=>V,h_:()=>F,mH:()=>L,nd:()=>D,o9:()=>C,yq:()=>I});n(18178);var r=n(30057),i=n(31810),o=n(61676),a=n(55650),s=n(26104),l=n(75573),c=n(95853),u=n(36996),d=n(39965),p=n(67925),h=n(45718),f=n(5229),m=n(20146),g=n(62793),y=n(96446),v=n(34680),b=n(66793),_=n(39952),w=n(5651);let x=function(e){return e.AGWORLD_SYNC_GROWERS="integrations/sync-agworld-growers",e.AGRIWEBB_SYNC_FIELDS="integrations/sync-agriwebb-fields",e.SMAG_SYNC_FIELDS="integrations/sync-smag-fields",e.CLIMATE_SYNC_FIELDS="integrations/sync-climate-fields",e.JOHN_DEERE_SYNC_GROWERS="integrations/sync-john-deere-growers",e.AGX_SYNC_GROWERS="integrations/sync-agx-growers",e.SELECT_PLATFORM_TO_IMPORT="integrations/select-platform-to-import",e.SET_PRESELECTED_PLATFORMS="integrations/set-preselected-platform",e.LOG_OUT_FROM_PLATFORM="integrations/log-out-from-platform",e.SET_PLATFORM_AUTH_VALUE="integrations/set-platform-auth-status",e}({});const k=e=>({type:x.SELECT_PLATFORM_TO_IMPORT,platform:e}),C=e=>({type:x.LOG_OUT_FROM_PLATFORM,platform:e}),S=(e,t)=>n=>{n({type:x.SET_PLATFORM_AUTH_VALUE,platform:e,value:t})};const M=(e,t,n)=>r=>{(0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"agWorldImportProgress ",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "}),type:"info",autoClose:1e4}),r({type:x.AGWORLD_SYNC_GROWERS,syncStatus:o.e.Loading});const i=(s=e).growers?(0,f.t)({id:"growers",defaultMessage:"growers"}):s.farms?(0,f.t)({id:"farms",defaultMessage:"farms"}):s.fields?(0,f.t)({id:"fields",defaultMessage:"fields"}):void 0;var s;a.cf.syncGrowers(e,t,n).then((async e=>{let{data:t}=e;t.data.status===_.Q.Ready&&i&&await r(T(t.data.id,i))})).catch((e=>{(0,h.e)(`Couldn't sync Agworld growers. Error: ${e}`),(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,f.t)({id:"agWorldSyncErr",defaultMessage:"Couldn't sync Agworld growers."}),type:"error",autoClose:6e4}),r({type:x.AGWORLD_SYNC_GROWERS,syncStatus:o.e.Error})}))},T=(e,t)=>n=>a.cf.getImportStatus(e).then((async r=>{let{data:i}=r;i.data.status===_.Q.Succeeded?(n({type:x.AGWORLD_SYNC_GROWERS,syncStatus:o.e.Success}),await n(P(b.F.Agworld)),(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"agWorldSyncDoneOk",defaultMessage:"Agworld growers synchronized successfully!\n\n              Check the Farm dropdown in the top left of the screen."}),type:"success",autoClose:6e4}),n((0,d.qO)(d.iR.fmsIntegration,!1))):[_.Q.Ready,_.Q.Importing].includes(i.data.status)?setTimeout((()=>n(T(e,t))),5e3):i.data.status===_.Q.Failed&&n(E(`Sync status === ${i.data.status}`,t))})).catch((e=>n(E(e,t)))),E=(e,t)=>n=>(n({type:x.AGWORLD_SYNC_GROWERS,syncStatus:o.e.Error}),(0,h.e)(`Agworld sync err, err= ${e}`),(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,w.jsx)(r._H,{id:"agWorldSyncErr",defaultMessage:"Couldn't sync Agworld growers.",values:{highestEntity:t,a:e=>(0,p.Bv)(e)}}),type:"error"})),P=e=>async t=>{await a.Wj.getProfile().then((e=>{let{data:n}=e;t((0,m.R9)(n.result))})),t((0,u.Js)()).then((async n=>{t((0,g.hT)(!0));const r=n.filter((t=>t.external_service===e)).map((e=>e.id));await t((0,g.NV)(r))})).catch((e=>{(0,h.e)(`Error loading Regrow farms during integration sync: ${e}`)}))},I=e=>async(t,n)=>{const r=(0,v.aH)(n());return(0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"agxGrowersImportProgress ",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "}),type:"info",autoClose:1e4}),t({type:x.AGX_SYNC_GROWERS,syncStatus:o.e.Loading}),a.a0.syncV2(e,r).then((async()=>{await t(P(b.F.Agx)),t(O())})).catch((()=>{(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,f.t)({id:"agxSyncErr",defaultMessage:"Couldn't sync AgX growers."}),type:"error",autoClose:6e4}),t({type:x.AGX_SYNC_GROWERS,syncStatus:o.e.Error})}))},O=()=>e=>{(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"agxGrowersSyncOk",defaultMessage:"AgX growers were synchronized successfully!"}),type:"success",autoClose:6e4}),e({type:x.AGX_SYNC_GROWERS,syncStatus:o.e.Success}),e((0,d.qO)(d.iR.fmsIntegration,!1))},L=(e,t,n)=>async(r,i)=>{const a=(0,v.aH)(i())||void 0;r({type:x.AGRIWEBB_SYNC_FIELDS,syncStatus:o.e.Loading});try{const i=await s.E.syncFields(t,e,n,a),{data:{status:o,id:l}}=i;o===_.Q.Ready&&l&&((0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"AgriWebbFieldsImportProgress ",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "}),type:"info"}),await r(R(l)))}catch(l){r(j(l))}},R=e=>async t=>{try{const n=await s.E.getSyncStatus(e),{status:r}=n.data;if(r===_.Q.Succeeded)t({type:x.AGRIWEBB_SYNC_FIELDS,syncStatus:o.e.Success}),await t(P(b.F.AgriWebb)),(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"agriWebbFieldsImportOk",defaultMessage:"Your fields were successfully imported from AgriWebb."}),type:"success",autoClose:6e4}),t((0,d.qO)(d.iR.fmsIntegration,!1));else{if(r!==_.Q.Importing&&r!==_.Q.Ready)throw new Error(`Sync status === ${r}`);setTimeout((()=>t(R(e))),5e3)}}catch(n){t(j(n))}},j=e=>t=>(t({type:x.AGRIWEBB_SYNC_FIELDS,syncStatus:o.e.Error}),(0,h.e)(`AgriWebb sync error, error= ${e}`),(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,w.jsx)(r._H,{id:"agriWebbFieldsImportError",defaultMessage:"Could not import AgriWebb fields, please try again later or contact <a>the support team</a>.",values:{a:e=>(0,p.Bv)(e)}}),type:"error"})),D=(e,t,n)=>async(r,i)=>{const a=(0,v.aH)(i())||void 0;r({type:x.SMAG_SYNC_FIELDS,syncStatus:o.e.Loading});try{const i=await l.g.syncFields(t,e,n,a),{data:{status:o,id:s}}=i;o===_.Q.Ready&&s&&((0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"smagFieldsImportProgress",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "}),type:"info"}),await r(A(s)))}catch(s){r(N(s))}},A=e=>async t=>{try{const n=await l.g.getSyncStatus(e),{status:r}=n.data;if(r===_.Q.Succeeded)t({type:x.SMAG_SYNC_FIELDS,syncStatus:o.e.Success}),await t(P(b.F.Smag)),(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"smagFieldsImportOk",defaultMessage:"Your fields were successfully imported from smag."}),type:"success",autoClose:6e4}),t((0,d.qO)(d.iR.fmsIntegration,!1));else{if(r!==_.Q.Importing&&r!==_.Q.Ready)throw new Error(`Sync status === ${r}`);setTimeout((()=>t(A(e))),5e3)}}catch(n){t(N(n))}},N=e=>t=>(t({type:x.SMAG_SYNC_FIELDS,syncStatus:o.e.Error}),(0,h.e)(`smag sync error, error= ${e}`),(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,w.jsx)(r._H,{id:"smagFieldsImportError",defaultMessage:"Could not import smag fields, please try again later or contact <a>the support team</a>.",values:{a:e=>(0,p.Bv)(e)}}),type:"error"})),F=e=>{let{fieldIds:t,phaseId:n}=e;return(e,r)=>{const i=(0,v.aH)(r());e({type:x.CLIMATE_SYNC_FIELDS,syncStatus:o.e.Loading}),a.Po.syncFields(t,i,n).then((async t=>{let{data:n}=t;n.status!==_.Q.Ready&&n.status!==_.Q.Importing||!n.result.job_id||((0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"climateFieldsImportProgress",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "}),type:"info"}),await e(z(n.result.job_id)))})).catch((t=>{e(B(t))}))}},z=e=>t=>a.Po.getSyncStatus(e).then((async n=>{let{data:r}=n;const i=r.result.status||r.result.data.status;switch(i){case _.Q.Succeeded:await t((0,y.c4)(null===r||void 0===r?void 0:r.result)),t({type:x.CLIMATE_SYNC_FIELDS,syncStatus:o.e.Success}),await t(P(b.F.Climate)),(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"climateFieldsImportOk",defaultMessage:"Your fields were successfully imported from Climate."}),type:"success",autoClose:6e4}),t((0,d.qO)(d.iR.fmsIntegration,!1));break;case _.Q.PartiallySucceeded:await t((0,y.c4)(null===r||void 0===r?void 0:r.result)),t({type:x.CLIMATE_SYNC_FIELDS,syncStatus:o.e.Success}),await t(P(b.F.Climate)),(0,c.c)({title:(0,f.t)({id:"note.partialSuccess",defaultMessage:"Partial Success"}),message:(0,f.t)({id:"climateFieldsImportPartialSuccess",defaultMessage:"Some fields were successfully imported from Climate."}),type:"warning",autoClose:6e4}),t((0,d.qO)(d.iR.fmsIntegration,!1));break;case _.Q.Importing:case _.Q.Ready:setTimeout((()=>t(z(e))),5e3);break;case _.Q.TimedOut:t({type:x.CLIMATE_SYNC_FIELDS,syncStatus:o.e.Timeout}),t((0,d.qO)(d.iR.fmsIntegration,!1));break;case _.Q.Failed:default:t(B(`Sync status === ${i}`))}})).catch((e=>t(B(e)))),B=e=>t=>(t({type:x.CLIMATE_SYNC_FIELDS,syncStatus:o.e.Error}),(0,h.e)(`Climate sync err, err= ${e}`),(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,w.jsx)(r._H,{id:"climateFieldsImportErr",defaultMessage:"Could not import Climate fields, please try again later or contact <a>the support team</a>.",values:{a:e=>(0,p.Bv)(e)}}),type:"error"})),U=e=>e.clients?(0,f.t)({id:"clients",defaultMessage:"clients"}):e.farms?(0,f.t)({id:"farms",defaultMessage:"farms"}):e.fields?(0,f.t)({id:"fields",defaultMessage:"fields"}):(0,f.t)({id:"organizations",defaultMessage:"organizations"}),$=e=>{let{payload:t,stage:n,importOperations:r=!1}=e;return e=>{e({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.Loading});const s=void 0!==n&&n===i.w.FIELD_BOUNDARIES,l=U(t);a.be.importData(t,r).then((async t=>{let{data:n}=t;n.data.status===_.Q.Ready&&(s&&(0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"johnDeereImportProgress",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "},{highestEntity:l}),type:"info"}),await e(q(n.data.id,l,s)))})).catch((t=>{e(Z(t,l,s))}))}},V=e=>{let{payload:t,projectId:n,phaseId:r,stage:s,importOperations:l=!0}=e;return e=>{e({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.Loading});const u=void 0!==s&&s===i.w.FIELD_BOUNDARIES,d=U(t);a.be.importDataForMRV(t,n,r,l).then((async t=>{let{data:n}=t;n.data.status===_.Q.Ready&&(u&&(0,c.c)({title:(0,f.t)({id:"note.info",defaultMessage:"Info"}),message:(0,f.t)({id:"johnDeereImportProgress",defaultMessage:"Data is currently being imported. Data entry will be locked until import is complete. This could take up to 10 minutes. "},{highestEntity:d}),type:"info"}),await e(q(n.data.id,d,u)))})).catch((t=>{e(Z(t,d,u))}))}},q=(e,t,n)=>r=>a.be.getImportStatus(e).then((async i=>{let{data:a}=i;switch(a.data.status){case _.Q.Succeeded:await r((0,y.c4)(a)),r({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.Success}),await r(P(b.F.JohnDeere)),n&&(0,c.c)({title:(0,f.t)({id:"note.success",defaultMessage:"Success"}),message:(0,f.t)({id:"johnDeereImportOk",defaultMessage:"Your {highestEntity} were successfully imported."},{highestEntity:t}),type:"success",autoClose:6e4}),r((0,d.qO)(d.iR.fmsIntegration,!1));break;case _.Q.PartiallySucceeded:await r((0,y.c4)(a)),r({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.PartialSuccess}),await r(P(b.F.JohnDeere)),n&&(0,c.c)({title:(0,f.t)({id:"PartialSuccess",defaultMessage:"Partial Success"}),message:(0,f.t)({id:"Fms.Sync.ImportPartialSuccess",defaultMessage:"Some of your data was successfully imported."}),type:"warning",autoClose:6e3}),r((0,d.qO)(d.iR.fmsIntegration,!1));break;case _.Q.Failed:r(Z(`Sync status === ${a.data.status}`,t,n));break;case _.Q.Importing:case _.Q.Ready:setTimeout((()=>r(q(e,t,n))),5e3);break;case _.Q.TimedOut:r({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.Timeout}),n&&(0,c.c)({title:(0,f.t)({id:"Error",defaultMessage:"Error"}),message:(0,f.t)({id:"Fms.Sync.ImportFailed.Timeout",defaultMessage:"Import failed due to a timeout."}),type:"error",autoClose:6e3}),r((0,d.qO)(d.iR.fmsIntegration,!1))}})).catch((e=>r(Z(e,t,n)))),Z=(e,t,n)=>i=>{if(i({type:x.JOHN_DEERE_SYNC_GROWERS,syncStatus:o.e.Error}),(0,h.e)(`JD sync err, err= ${e}`),n)return(0,c.c)({title:(0,f.t)({id:"note.error",defaultMessage:"Error"}),message:(0,w.jsx)(r._H,{id:"johnDeereImportErr",defaultMessage:"Could not import John Deere {highestEntity}, please try again later or contact <a>the support team</a>.",values:{highestEntity:t,a:e=>(0,p.Bv)(e)}}),type:"error"})},H=()=>e=>{e((0,d.CI)(d.jB.authorizedPlatforms,d.qb.Pending)),a.Ab.getAuthorizedPlatforms().then((t=>{let{data:n}=t;e({type:x.SET_PRESELECTED_PLATFORMS,platforms:n.result})})).finally((()=>e((0,d.CI)(d.jB.authorizedPlatforms,d.qb.Done))))}},70044:(e,t,n)=>{"use strict";n.d(t,{B8:()=>a,tL:()=>o,vJ:()=>i});var r=n(99730);const i=e=>e.integrations.platforms,o=(0,r.P1)([i,(e,t)=>t],((e,t)=>e[t])),a=e=>e.integrations.selectedPlatformToImport},39952:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,e:()=>r});let r=function(e){return e.Organization="organization",e.Owner="owner",e.Farm="farm",e.FieldGroup="field_group",e.Field="field",e}({}),i=function(e){return e.Ready="ready",e.Importing="importing",e.TimedOut="timed_out",e.Failed="failed",e.PartiallySucceeded="partially_succeeded",e.Succeeded="succeeded",e}({})},55006:(e,t,n)=>{"use strict";n.d(t,{MW:()=>d,Nd:()=>g,X1:()=>p,Zd:()=>h,bV:()=>m,h$:()=>c,tF:()=>l,wg:()=>f,y8:()=>u});n(18178);var r=n(30057),i=n(39475),o=n(39952),a=n(66793),s=n(5651);function l(e){switch(e){case a.F.AgriWebb:return"/assets/integration/agriwebb-logo-round.svg";case a.F.Agworld:return"/assets/integration/agworld-logo-round.svg";case a.F.Agx:return"/assets/integration/proagrica-logo-round.svg";case a.F.Climate:return"/assets/integration/climate-logo-round.svg";case a.F.JohnDeere:return"/assets/integration/john_deere-logo-round.svg";case a.F.Smag:return"/assets/integration/smag-logo-round.svg"}}function c(e){switch(e){default:case a.F.Agworld:return"Agworld";case a.F.JohnDeere:return"John Deere";case a.F.AgriWebb:return"AgriWebb";case a.F.Climate:return"Climate FieldView";case a.F.Agx:return"agX";case a.F.Smag:return"smag"}}function u(e){switch(e){case a.F.Agworld:return"Agworld";case a.F.JohnDeere:return"MyJohnDeere";case a.F.AgriWebb:return"AgriWebb";case a.F.Climate:return"Climate FieldView";case a.F.Agx:return"agX";case a.F.Smag:return"smag"}}function d(e){switch(e){case a.F.Agworld:return"Agworld";case a.F.JohnDeere:return"John Deere";case a.F.AgriWebb:return"AgriWebb";case a.F.Climate:return"Climate";case a.F.Agx:return"Proagrica";case a.F.Smag:return"Smart Agriculture"}}function p(e){return e===a.F.Climate||e===a.F.JohnDeere}function h(e,t){switch(e){case a.F.AgriWebb:return`${i.default.baseUrl}login/agriwebb`;case a.F.Agworld:return`${i.default.baseUrl}login/agworld`;case a.F.Agx:return`${i.default.baseUrl}api/v1/login/agx`;case a.F.Climate:return`${i.default.baseUrl}login/climate${t}`;case a.F.JohnDeere:return`${i.default.baseUrl}login/johndeere${t}`;case a.F.Smag:return`${i.default.baseUrl}login/smag`}}function f(){return{selected:{[o.e.Organization]:new Set,[o.e.Owner]:new Set,[o.e.Farm]:new Set,[o.e.FieldGroup]:new Set,[o.e.Field]:new Set},partiallySelected:{[o.e.Organization]:new Set,[o.e.Owner]:new Set,[o.e.Farm]:new Set,[o.e.FieldGroup]:new Set}}}function m(e,t,n){const r=[...e];for(;r.length>0;){const e=r.shift();if("break"===t(e))return;null!==n&&void 0!==n&&n.siblingsProcessedBeforeChildren?r.push(...e.children):r.unshift(...e.children)}}function g(e,t){const n=function(e,t){switch(e){case o.e.Organization:return"organizations";case o.e.Owner:switch(t){case a.F.Agx:case a.F.Agworld:return"growers";case a.F.JohnDeere:return"clients";default:return"owners"}case o.e.Farm:return"farms";case o.e.FieldGroup:return t===a.F.Smag?"fields":"field groups";default:case o.e.Field:return t===a.F.Smag?"plots":"fields"}}(e,t);return(0,s.jsx)(r._H,{id:n,defaultMessage:n})}},28230:(e,t,n)=>{"use strict";n.d(t,{t:()=>E});var r=n(63392),i=(n(18178),n(19298)),o=n(72457),a=n(22219),s=n(36777),l=n(55927),c=n(35397),u=n(51408),d=n(35448),p=n(48071),h=n(84917),f=n(87455),m=n(1730),g=n(5229),y=n(5651),v=function(e){return e.ToShort="#f44336",e.Weak="#f44336",e.Okay="orange",e.Good="#43a047",e.Strong="green",e}(v||{});const b=h.ZP.div`
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 12px;

  .scale {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: no-wrap;
    gap: 4px;

    > span {
      display: block;
      height: 4px;
      width: 32px;
      background: rgba(0, 0, 0, 0.2);
    }
  }

  // too short
  &.password-strong-score-0 {
    color: ${v.ToShort};
    .scale {
      > span:nth-child(1) {
        background-color: ${v.ToShort};
      }
    }
  }

  &.password-strong-score-1 {
    color: ${v.Weak};
    .scale {
      > span:nth-child(1),
      > span:nth-child(2) {
        background-color: ${v.Weak};
      }
    }
  }

  &.password-strong-score-2 {
    color: ${v.Okay};
    .scale {
      > span:nth-child(1),
      > span:nth-child(2),
      > span:nth-child(3) {
        background-color: ${v.Okay};
      }
    }
  }

  &.password-strong-score-3 {
    color: ${v.Good};
    .scale {
      > span:nth-child(1),
      > span:nth-child(2),
      > span:nth-child(3),
      > span:nth-child(4) {
        background-color: ${v.Good};
      }
    }
  }

  &.password-strong-score-4 {
    color: ${v.Strong};
    .scale {
      > span {
        background-color: ${v.Strong};
      }
    }
  }
`,_=function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0){case 0:return(0,g.t)({id:"PassValidation.Too short",defaultMessage:"Too short"});case 1:return(0,g.t)({id:"PassValidation.Weak",defaultMessage:"Weak"});case 2:return(0,g.t)({id:"PassValidation.Okay",defaultMessage:"Okay"});case 3:return(0,g.t)({id:"PassValidation.Good",defaultMessage:"Good"});case 4:return(0,g.t)({id:"PassValidation.Strong",defaultMessage:"Strong"})}},w=e=>{let{value:t}=e;return(0,y.jsx)(b,{className:`password-strong-score-${t}`,children:(0,y.jsxs)(c.k,{alignItems:"center",justifyContent:"space-between",gap:"15px",children:[(0,y.jsxs)("div",{className:"scale",children:[(0,y.jsx)("span",{}),(0,y.jsx)("span",{}),(0,y.jsx)("span",{}),(0,y.jsx)("span",{}),(0,y.jsx)("span",{})]}),(0,y.jsx)("span",{children:_(t)})]})})},x=h.ZP.div`
  .strength-help-text {
    color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
  }
`,k=e=>{let{isDirty:t,appearance:n="md",...r}=e;return(0,y.jsxs)(x,{children:["md"===n?(0,y.jsx)(o.nv,{...r,onChange:e=>{var t;return null===r||void 0===r||null===(t=r.onChange)||void 0===t?void 0:t.call(r,`${e}`)},label:r.label,type:"password"}):(0,y.jsx)(f.C,{...r,type:"password"}),(0,y.jsx)(w,{value:t?(0,d.uo)(r.value||"",!!r.errorText):-1}),(0,y.jsx)(m.x,{variant:"small",className:"strength-help-text",children:(0,g.t)({id:"InputPasswordStrengthMessage",defaultMessage:"Create a strong password by using uppercase letters, lowercase letters, numbers, special characters, and uncommon words."})})]})};var C=n(45718),S=n(20146),M=n(84257);(0,a.kM)(a.Z_,"equalTo",d.EW);const T=(0,a.Ry)().shape({password:(0,d.XN)("password"),confirmPassword:(0,a.Z_)().equalTo((0,a.iH)("password"),(0,g.t)({id:"confirm new password must be the same as new password",defaultMessage:"confirm new password must be the same as new password"}))}),E=e=>{let{handlePasswordReset:t,user:n}=e;const a=(0,l.T)(),{handleSubmit:d,control:h,reset:f}=(0,i.cI)({mode:"onChange",resolver:(0,r.X)(T),defaultValues:{password:"",confirmPassword:""}});return(0,y.jsxs)("form",{onSubmit:d((async e=>{try{await(t?t(e):a((0,S.Zy)(e))),f()}catch(n){(0,C.e)(n)}})),children:[(0,y.jsx)(m.x,{elementType:"h2",className:"m-0",children:(0,g.t)({id:"ResetPasswordTitle",defaultMessage:"Reset password"})}),(0,y.jsxs)(u.k,{gap:"16px 32px",className:"margin-bottom-20",children:[(0,y.jsx)(c.J,{basis:"calc(50% - 16px)",children:(0,y.jsx)(i.Qr,{control:h,name:"password",render:e=>{let{field:{name:t,onBlur:n,onChange:r,value:i},fieldState:{isTouched:o,isDirty:a,error:s}}=e;return(0,y.jsx)(k,{autoComplete:"off",error:!(!o||null===s||void 0===s||!s.message),errorText:null===s||void 0===s?void 0:s.message,id:"reset-password",isDirty:a,label:(0,g.t)({id:"New Password",defaultMessage:"New Password"}),name:t,onBlur:n,onChange:r,value:i})}})}),(0,y.jsx)(c.J,{basis:"calc(50% - 16px)",children:(0,y.jsx)(i.Qr,{control:h,name:"confirmPassword",render:e=>{let{field:t,fieldState:{isTouched:n,error:r}}=e;return(0,y.jsx)(o.nv,{error:!(!n||null===r||void 0===r||!r.message),errorText:null===r||void 0===r?void 0:r.message,id:"rest-confirm-password",label:(0,g.t)({id:"Confirm New Password",defaultMessage:"Confirm New Password"}),lineDirection:"center",passwordIcon:void 0,type:"password",...t})}})})]}),(0,y.jsx)(u.k,{justifyContent:"flex-end",className:" padding-top-20",children:(0,y.jsx)(s.zx,{type:"submit",disabled:(null===n||void 0===n?void 0:n.id)===M.w,children:(0,g.t)({id:"Reset",defaultMessage:"Reset"})})}),(null===n||void 0===n?void 0:n.id)===M.w&&(0,y.jsx)(p.U8,{appearance:"warning",className:"inside-a-pop-up",children:(0,g.t)({id:"Please create your new user by saving the changes above before attempting to update password.",defaultMessage:"Please create your new user by saving the changes above before attempting to update password."})})]})}},9580:(e,t,n)=>{"use strict";n.d(t,{HD:()=>s,I6:()=>u,Jr:()=>c,UQ:()=>l});var r=n(56637),i=n(13521),o=n(18956);const a={list:[],sortBy:"status",desc:!1,page:1,perPage:i.y,startIndex:0},s=(e,t)=>({type:o.U.Sort,sortBy:e,desc:t}),l=(e,t)=>({type:o.U.AddRuleTList,id:e,data:t}),c=(e,t,n)=>({type:o.U.SetPagination,page:e,perPage:t,startIndex:n}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.U.SetPagination:return{...e,page:t.page,startIndex:t.startIndex,perPage:t.perPage};case o.U.AddRuleTList:return{...e,list:e.list.map((e=>e.id===t.id?{...e,...t.data}:e))};case o.U.Sort:{const n=(0,r.YC)(e.list,t.sortBy);return{...e,sortBy:t.sortBy,desc:t.desc,list:t.desc?n:n.reverse()}}case o.U.FetchCropMatching:{const n=(0,r.YC)(t.list,e.sortBy);return{...e,list:e.desc?n:n.reverse()}}default:return e}}},18956:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,U:()=>r});let r=function(e){return e.FetchCropMatching="@crop-types-matching/fetch",e.Sort="@crop-types-matching/sort",e.AddRuleTList="@crop-types-matching/rule/add",e.SetPagination="@crop-types-matching/pagination/set",e}({}),i=function(e){return e.Matched="matched",e.NoMatch="no match",e}({})},62293:(e,t,n)=>{"use strict";n.d(t,{CS:()=>a,Us:()=>i,V7:()=>o,vA:()=>s});var r=n(66793);let i=function(e){return e.SWITCH_FEATURE="features/switch-feature",e.BULK_SWITCH_FEATURE="features/bulk-switch-feature",e.SET_SEARCH_RESULT="features/set-search-result",e.SET_TAG_KEYS="features/set-tag-keys",e.SET_ENTITIES="features/set-entities",e.SET_ACTIVATION_RESULT="features/set-activation-result",e.SET_FARMS_RESULT="features/set-farms-result",e.SET_EMAILS="features/set-emails",e.EXTEND_ENTITIES="features/extend-entities",e.SET_SELECTOR_SEASON="features/set-season-selector",e.SI_TAGGING_LOAD_POLICES="features/SI-tagging/load-polices",e.SI_TAGGING_UPDATE_POLICY="features/SI-tagging/update-policy",e.SI_TAGGING_DELETE_POLICY="features/SI-tagging/delete-policy",e.SI_TAGGING_LOAD_ALL_STATES="features/SI-tagging/load-states",e}({});const o={[r.$.NRx]:"Crop Nutrition",[r.$.AnomalyDetection]:"Crop Stress (old)",[r.$.CropStress]:"Crop Stress",[r.$.TreeAnalysis]:"Tree Analysis",[r.$.SustainabilityInsights]:"Sustainability Insights"};let a=function(e){return e.Field="field",e.Season="season",e}({}),s=function(e){return e.Years="years",e.Crops="crop_types",e.Entities="entities",e.ActivatedState="tags",e}({})},87259:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r=function(e){return e.SET_USER_ACTIVITY="user-activity/set",e.UPDATE_SUMMARY_USER_ACTIVITY="user-activity/update-summary",e}({})},48890:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,L:()=>o});let r=function(e){return e.SetAccessData="@access-data/set",e}({});const i={roles:{subs:[],orgs:[],farms:[]},subscriptions:[],organizations:[]},o=e=>({type:r.SetAccessData,roles:e}),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;return t.type===r.SetAccessData?{...e,roles:{...t.roles}}:e}},55536:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>c,Hd:()=>d,JR:()=>p,Wu:()=>f,fU:()=>h});var r=n(12581),i=n(62626),o=n(55650),a=n(45718),s=n(51821),l=n(96543);const c=(0,r.hg)("getUsersList",((e,t)=>o._u.getAll().then((e=>{let{data:n}=e;return t.dispatch({type:l.U.LOAD_USERS_LIST,list:[...n.result]}),n.result})).catch((e=>(0,a.e)(`getUsersList() err = ${e}`))))),u=()=>({...s.p,id:"new",settings:{...s.p.settings}}),d=e=>()=>"new"===e?Promise.resolve(u()):(e="number"===typeof e?e:parseInt(e),new Promise((t=>{o._u.getOne(e).then((e=>{let{data:n}=e;t(n.result)})).catch((e=>{(0,a.e)(`Users, getOne() err = ${e}`),t(u())}))}))),p=(e,t)=>n=>o._u["new"===e.id?"newUser":"saveUser"](e).then((r=>{let{data:o}=r;return o&&o.result&&"new"===e.id&&n((0,i.VF)(`${t}/${o.result.id}`)),o.result})).catch(),h=(e,t)=>n=>o._u.rm(e).then((()=>{n((0,i.VF)(t))})).catch(),f=()=>e=>o.sy.loadAllOrganizations().then((t=>{let{data:n}=t;return e({type:l.U.SET_ORGS,organizations:n.result||[]}),n.result||[]})).catch((e=>(0,a.e)(`loadOrganizations() err = ${e}`)))},51821:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(85251),i=n(49346),o=n(49582),a=n(90826),s=n(96543);const l={email:"",name:"",perm:0,id:0,groupIds:[],agxSync:!1,photo:"",active:0,emailConfirmed:!1,demoFarms:[],settings:{showDemoFarms:!0,zoning:{doNotShowConfirmPopUp:!1,favoriteZoningMethod:{}},langLocale:function(){const e=(0,r.oi)(r.$$.LANG);if(null!==e&&(0,o.PM)(e))return e;return o.ZW}(),measurement:(0,a.Lg)({mrv:i.Ug.ImperialUnits,other:i.Ug.MetricUnits}),onboarding:{re_enroll_fields_onboarded:!1},company:{companyName:"",businessActivity:"",jobTitle:"",country:"",street:"",state:"",city:"",zip:"",licenses:{PCA:!1,CCA:!1,CPCC:!1}},timezone:"2eirus",si_tool_access:s.V.Off,si_saved_filters:{},mostRecentWorkspace:void 0}}},6132:(e,t,n)=>{"use strict";n.d(t,{du:()=>o,j2:()=>s,qp:()=>a,vs:()=>i});var r=n(84917);const i=r.ZP.div`
  padding: 10px 20px;

  h3 {
    font-size: 17px;
    margin-bottom: 5px;
  }

  @media (min-width: 415px) {
    h3 {
      font-size: 20px;
    }
  }
  .fluro-sticky {
    background-color: #fff;
    padding: 10px;
    display: flex;
    width: calc(100% + 38px);
    margin-left: -19px;
    margin-right: -19px;
  }
  .close-btn {
    margin-right: auto;
  }

  @media (max-width: 600px) {
    .md-text-field-container {
      min-width: 400px;
    }

    .flex-element__col {
      flex-basis: 1;
    }
  }
`,o=r.ZP.div`
  @media (min-width: 415px) {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  > h3 {
    margin-bottom: 0;
    font-weight: 100;
    font-size: 25px;
  }
`,a=r.ZP.div`
  border: 1px solid #d6d8da;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 16px 24px;

  .access-table {
    th,
    td {
      padding-left: 0;
    }
  }

  .md-list--menu {
    max-width: inherit;
  }
`,s=r.ZP.div`
  height: 40px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  border-radius: 4px;
  cursor: pointer;
  position: relative;

  &:hover {
    background: rgba(0, 0, 0, 0.1);
    .md-icon {
      transform: translateX(10px);
    }
  }

  .md-icon {
    color: ${e=>{let{theme:t}=e;return t.color.text.success}};
    transition: all 0.3s;
  }
`},3063:(e,t,n)=>{"use strict";n.d(t,{W:()=>w,n:()=>x});var r=n(18178),i=n(45581),o=n(55927),a=n(55650),s=n(95853),l=n(85251),c=n(39965),u=n(57550),d=n(73042),p=n(20146),h=n(22168),f=n(4383),m=n(62104),g=n(29501),y=n(73246),v=n(39670),b=n(55536),_=n(51021);const w=()=>{const e=(0,o.T)(),t=(0,o.C)(_.B),n=(0,o.C)(h.yX),i=(0,o.C)((e=>e.helpers.asyncRTK.status[b.Fp.typePrefix]===c.mU.pending)),[a,s]=(0,r.useState)(""),l=(0,r.useMemo)((()=>{const e=a.toLowerCase();return t.filter((t=>{var n,r,i,o,a,s;return(null===(n=t.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(e))||(null===(r=t.email)||void 0===r?void 0:r.toLocaleLowerCase().includes(e))||(null===(i=t.firstName)||void 0===i?void 0:i.toLocaleLowerCase().includes(e))||(null===(o=t.surname)||void 0===o?void 0:o.toLocaleLowerCase().includes(e))||`${null===(a=t.name)||void 0===a?void 0:a.toLocaleLowerCase()} ${null===(s=t.surname)||void 0===s?void 0:s.toLocaleLowerCase()}`.includes(e)}))}),[t,a]);return(0,r.useEffect)((()=>{n&&(t.length||e((0,b.Fp)()))}),[n]),(0,r.useMemo)((()=>{const e=[],n={};return t.forEach((t=>{e.push({label:t.email,value:t.id}),n[t.id]=t})),{filteredList:l,isLoading:i,setSearch:s,searchString:a,usersList:t,usersMenuList:e,usersRecordById:n}}),[t,i,a,l])};function x(e){const t=(0,m.c)("workspaceLink"),n=(0,o.T)(),{replace:c}=(0,i.k6)(),b=(0,o.C)(h.vn),_=(0,r.useCallback)((e=>(0,s.c)({type:"error",title:"Error",message:e})),[]),w=(0,r.useCallback)((async e=>{let{userId:n,programId:r,unImpersonateRedirectUrl:i,redirectUrl:o,email:u}=e;if(b===n)return;const p=null!==u&&void 0!==u?u:"the user";try{let e;var h,f,m;if((0,d.$K)(r))e=null===(h=(await a.eV.impersonateProducer(r,n)).data)||void 0===h?void 0:h.result;else e=null===(f=(await a.xq.impersonateAsUser(n)).data)||void 0===f||null===(m=f.result)||void 0===m?void 0:m.token;e||_(`Couldn't impersonate ${p} due to no token being returned`),(0,l.yP)(l.$$.TOKEN,e),i&&(0,l.yP)(l.$$.UN_IMPERSONATE_REDIRECT_URL,i),o?window.location.assign(o):c(t),v.Z.track("Impersonate user"),(0,s.c)({type:"success",title:"Success",message:`You successfully impersonated ${p}`})}catch(g){_(`Couldn't impersonate ${p}`),c(t)}}),[b,c,_,t]),x=(0,r.useCallback)((async e=>{let{workspace:t,programId:r}=e;await a.z9.unImpersonateUser().then((e=>{let{data:i}=e;if((0,l.yP)(l.$$.TOKEN,i.result.token),n((0,p.R9)(i.result,"UnImpersonate login")),t===f.j.Mrv){const e=(0,l.oi)(l.$$.UN_IMPERSONATE_REDIRECT_URL);(0,l.cW)(l.$$.UN_IMPERSONATE_REDIRECT_URL);const t=r?(0,u.F_)(y.K5,{programId:r,tab:g.l.Producers}):y.uj;window.location.assign(`${e||t}`)}else window.location.reload()}))}),[n]);return(0,r.useMemo)((()=>{const t={impersonateUser:w,unImpersonateUser:x};return e?t[e]:t}),[w,e,x])}},36757:(e,t,n)=>{"use strict";n.d(t,{j:()=>h});var r=n(18178),i=n(30057),o=n(36777),a=n(55927),s=n(29646),l=n(95853),c=n(39965),u=n(87050),d=n(3063),p=n(5651);function h(e){let{email:t,userId:n,variant:h="icon",redirectUrl:f}=e;const m=(0,a.T)(),g=(0,i.YB)(),y=(0,d.n)("impersonateUser"),v=(0,r.useCallback)((()=>{try{m((0,c.qO)(c.iR.confirm,!0,{okLabel:"Login",okAction:()=>{y({userId:n,redirectUrl:f})},title:"Login as user",message:(0,p.jsxs)("span",{children:["Do you want to login as ",(0,p.jsx)("strong",{children:t}),"?"]})}))}catch(e){(0,l.c)({title:g.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:(0,u.e)(e),type:"warning"})}}),[m,t,y,n,f,g]);return"button"===h?(0,p.jsx)(o.zx,{startIcon:(0,p.jsx)(s._m,{size:16}),onClick:v,variant:"outlined",color:"secondary",children:"Login as user"}):(0,p.jsx)(o.hU,{onClick:v,children:(0,p.jsx)(s._m,{size:16})})}},96543:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,V:()=>i});let r=function(e){return e.LOAD_USERS_LIST="users/load-users-list",e.LOAD_USERS_ONE="users/load-users-one",e.SET_ORGS="users/set-organizations",e.SET_SUBS="users/set-subscriptions",e}({}),i=function(e){return e.Off="off",e.On="on",e.SIOnly="si_only",e}({})},51021:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=e=>e.users.list},77440:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r={"geometry/:groupID/:fieldID":{messages:{get:"Loading field geometry...",post:"Saving field geometry..."}},"kml/:groupID/:fieldID":{messages:{get:"Loading field data...",put:"Updating field data...",post:""}},profile:{messages:{get:"Loading profile...",put:"Saving profile settings.."}},"kml/:groupID":{messages:{get:"Loading farm data...",post:""}},login:{messages:{get:"",post:"Login..."}},"data2/:md5":{messages:{post:"",get:"Loading field geometry..."}},"sync/agworld?skip":{messages:{get:"Loading Agworld growers list...",post:"Importing Agworld growers..."}},":id/_latest/en-US":{messages:{get:"Loading translations..."}},":id/_latest/fr":{messages:{get:"Chargement des traductions..."}},":id/_latest/pl-PL":{messages:{get:"\u0141adowanie t\u0142umacze\u0144"}},":id/_latest/ro-RO)":{messages:{get:"Se \xeencarc\u0103 traduceri"}},":id/_latest/de-DE":{messages:{get:"\xdcbersetzungen werden geladen"}},":id/_latest/pt-BR":{messages:{get:"Carregando tradu\xe7\xf5es"}},":id/_latest/ru-RU":{messages:{get:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432"}},":id/_latest/en_GB":{messages:{get:"Loading translations..."}},"admin/emails/to_review?skip":{messages:{post:"",get:""}}}},66793:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,F:()=>r});let r=function(e){return e.AgriWebb="agriwebb",e.Agworld="agworld",e.Agx="agx",e.Climate="climate",e.JohnDeere="jd",e.Smag="smag",e}({}),i=function(e){return e.AnomalyDetection="anomaly_detection",e.NRx="nrx",e.CropStress="crop_stress",e.TreeAnalysis="tree_analysis",e.SustainabilityInsights="sustainability_insights",e}({})},4436:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t,n)=>{var r;if(!e[t])return t;const i=null===(r=e[t])||void 0===r?void 0:r.label;return n?n({id:null!==i&&void 0!==i?i:t,defaultMessage:null!==i&&void 0!==i?i:t}):i}},95603:(e,t,n)=>{"use strict";n.d(t,{BS:()=>a,Di:()=>s,uy:()=>l,w0:()=>c});var r=n(60548),i=n(96765),o=n(56637);const a=e=>({farmName:e.find((e=>/^(farm)((\W|_|-)+name)/i.test(e.trim())))||"__currentFarm__",fieldName:e.find((e=>/^((field|item)(\W|_|-)+)?name|field$/i.test(e.trim())))||r.h.FileName,growerName:e.find((e=>/^grower$/i.test(e.trim())))}),s=(e,t,n)=>{var i,o,a;const s=n||(null===(i=e.properties)||void 0===i?void 0:i[r.h.FarmId]);return s?(null===(o=t[s])||void 0===o?void 0:o.name)||s:(null===(a=e.properties)||void 0===a?void 0:a[r.h.NewFarmName])||n},l=(e,t)=>t&&e.find((e=>e.id===t))||null;function c(e,t,n){switch(n){case"date":return(0,i.Wg)(e,t);case"string":return[...(r=e,a=t,r.sort(((e,t)=>{var n;return null===(n=e[a])||void 0===n?void 0:n.localeCompare(t[a],void 0,{numeric:!0,sensitivity:"base"})})))];case"number":return(0,o.YC)(e,t);default:return e}var r,a}},7601:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>d,Kr:()=>l,yX:()=>c});var r=n(75820),i=n(49346),o=n(8854),a=n(49582),s=n(5229);function l(e,t){return`${(0,o.wH)((0,r.En)(t,i.Ug.ImperialUnits,e||0))} ${(0,s.t)({id:t,defaultMessage:t})}`}const c=(e,t)=>{try{return Intl.NumberFormat(t||a.ZW).format(e)}catch(n){return e}},u={kg:"lb",mm:"in",C:"F","km/h":"mph",l:"gal",ml:"fl-oz",g:"oz",m:"ft",ha:i.Ug.ImperialUnits,AUD:"USD","kg / ha":"lb / ac","kg/ha":"lb/ac","l/ha":"gal/ac","l / ha":"gal / ac","BU / HA":"BU / AC","plants/m\xb2":"plants/ac"};function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Ug.MetricUnits,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e===i.Ug.MetricUnits?t:u[t]?u[t]:""}},43694:(e,t,n)=>{"use strict";n.d(t,{d:()=>d,f:()=>p});var r=n(18178),i=n(55927),o=n(85254),a=n(73042),s=n(30765),l=n(34680),c=n(39670);const u={"Program ID":null,"Project ID":null,"Program Name":null},d=(e,t)=>{const n=(0,o.v)((()=>(0,a.Ft)(t)?{Page:e,...u}:t?{Page:e,...t}:{Page:e}),[e,t]);(0,r.useEffect)((()=>{c.Z.trackMRVPageView(n)}),[n])},p=()=>{const{programId:e,projectId:t}=(0,s.B)(),n=(0,i.C)((t=>(0,l.PP)(t,e)));(0,r.useEffect)((()=>{c.Z.registerMRVSuperProps({"Project ID":t,"Program ID":e,"Program Name":null===n||void 0===n?void 0:n.name})}),[t,e,null===n||void 0===n?void 0:n.name])}},39670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d,x:()=>u});var r=n(70942),i=n.n(r),o=n(91316),a=n(39475),s=n(90826);let l=!1;"localhost"===window.location.hostname&&(a.default.mp_token=""),a.default.mp_token&&(i().init(a.default.mp_token,{track_pageview:"url-with-path"}),l=!0);const c={identify:e=>{i().identify(`${e}`)},alias:e=>{l&&(null===i()||void 0===i()||i().alias(e))},track:(e,t)=>{l&&(null===i()||void 0===i()||i().track(e,t))},trackMRVPageView:e=>{l&&(null===i()||void 0===i()||i().track("MRV page view",e))},people:{set:e=>{l&&i().people.set(e)}},pageView:()=>{const{isWorkspaceMrv:e}=(0,s.Ex)();!e&&c.track("Page View")},login:(e,t)=>{l&&(0,o.e)(e.email)&&(c.identify(e.id),c.people.set({$name:`${e.name} ${e.surname}`,$email:e.email,"Account Type":e.apiUser||e.settings.scenarioPlanningTool}),c.track("Login",{Type:t}))},logout:()=>{c.track("Logout"),l&&i().reset()},registerMRVSuperProps:(e,t)=>{l&&i().register(e,t)},locateMe:()=>c.track("Locate me"),openExpandedView:e=>c.track("Open Expanded View",{Tab:e}),addNewFarm:e=>c.track("Farm Creation",{"Farm Name":e.name}),errorMessage:(e,t)=>{c.track("Error Message",{Message:e,URL:t.config.url,Method:t.config.method})},openKnowledgeBase:e=>{c.track("Call knowledge base",{Link:e})}};const u=new class{track(e,t){l&&c.track(e,t)}signUp(){this.track("Register")}clickOnYouTubeVideo(){this.track("Youtube video")}clickOnConfirmSelection(){this.track("Confirm selection")}urlChange(){this.track("Carbon Page View")}measurementTableOpen(e){this.track(`measurement_${e}_table`)}measurementBulkEdit(e){this.track(`measurement_${e}_bulk_edit`)}measurementNmTemplate(e){this.track(`measurement_${e}_create_nm_template`)}measurementUnlock(e){this.track(`measurement_${e}_unlock`)}},d=c},13521:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,y:()=>o});const r=[{label:10,value:10},{label:50,value:50},{label:100,value:100},{label:500,value:500}],i=e=>{const t=r.filter((t=>t.value<e||50===t.value));return e<=1e3?[...t,{label:"All",value:e}]:t},o=50},38216:(e,t,n)=>{"use strict";n.d(t,{j:()=>o,Z:()=>a});var r=n(3308);const i=e=>{const t=e?"true":"false";return`recompute_area=${t}&recompute_fields=${t}&compute_subsection_boundaries=${t}&compute_data_scenario_fields=${t}`},o="si/v2";const a=class{static getPrograms(){return r.Z.get(`${o}/programs`)}static getProgram(e){return r.Z.get(`${o}/programs/${e}`)}static addProgram(e){return r.Z.post(`${o}/programs`,[e])}static updateProgram(e,t){return r.Z.put(`${o}/programs/${e}`,t)}static removeProgram(e){return r.Z.delete(`${o}/programs/${e}`)}static getGoldenProgramId(){return r.Z.get(`${o}/programs/golden_program_id/`)}static getProgramUsers(e){return r.Z.get(`${o}/programs/${e}/users/users`)}static getProgramAdmins(e){return r.Z.get(`${o}/programs/${e}/users/admins`)}static addProgramUser(e,t,n){return r.Z.post(`${o}/programs/${e}/users/invite`,{user_id:t,role:n})}static deleteProgramUsers(e,t){return r.Z.delete(`${o}/programs/${e}/users`,{data:t})}static getProgramGeometries(e){return r.Z.get(`${o}/programs/${e}/geometries`)}static getSupplySheds(e){return r.Z.get(`${o}/programs/${e}/supply_sheds`)}static getSupplyShedById(e,t){return r.Z.get(`${o}/programs/${e}/supply_sheds/${t}`)}static addSupplyShed(e,t){return r.Z.post(`${o}/programs/${e}/supply_sheds`,[t])}static updateSupplyShed(e,t,n){return r.Z.put(`${o}/programs/${e}/supply_sheds/${t}`,n)}static removeSupplyShed(e,t){return r.Z.delete(`${o}/programs/${e}/supply_sheds/${t}`)}static getSupplyShedSubsections(e,t){return r.Z.get(`${o}/programs/${e}/supply_sheds/${t}/subsections`)}static addSupplyShedSubsections(e,t,n){return r.Z.post(`${o}/programs/${e}/supply_sheds/${t}/subsections`,n)}static updateSupplyShedSubsection(e,t,n,i){return r.Z.put(`${o}/programs/${e}/supply_sheds/${t}/subsections/${n}`,i)}static removeSupplyShedSubsection(e,t,n){return r.Z.delete(`${o}/programs/${e}/supply_sheds/${t}/subsections/${n}`)}static getSubsectionById(e,t,n){return r.Z.get(`${o}/programs/${e}/supply_sheds/${t}/subsections/${n}`)}static convertFileToFeatureCollection(e,t){const n=new FormData;return n.append("file",e),r.Z.post(`${o}/convert?should_union=${t}`,n,{headers:{"Content-Type":"multipart/form-data",accept:"application/json"}})}static getKPIData(e,t){return r.Z.get(`${o}/programs/${e}/supply_sheds/kpis/${t}`)}static getKPIDataV2(e,t){return r.Z.post(`${o}/programs/${e}/supply_sheds/kpi_data`,{data:t})}static getBoundaryMetaData(e,t){return r.Z.post(`${o}/programs/${e}/boundary_metadata`,t)}static getBookValues(e){return r.Z.get(`${o}/programs/${e}/book_values`)}static getAllKPIFilters(e){return r.Z.get(`${o}/programs/${e}/supply_sheds/kpi_filters`)}static setAllKPIFilters(e,t){return r.Z.post(`${o}/programs/${e}/supply_sheds/kpi_filters`,t)}static recomputeProgram(e,t,n){return r.Z.post(`${o}/programs/${e}/compute?failed_only=${t?"true":"false"}&${i(n)}`)}static recomputeSubsection(e,t,n,a){return r.Z.post(`${o}/programs/${e}/supply_sheds/${t}/subsections/${n}/compute?${i(a)}`)}static getPlanningReports(e){return r.Z.get(`${o}/programs/${e}/imt_reports`)}static addPlanningReport(e,t){return r.Z.post(`${o}/programs/${e}/imt_reports`,[t])}static updatePlanningReport(e,t,n){return r.Z.put(`${o}/programs/${e}/imt_reports/${t}`,n)}static deletePlanningReport(e,t){return r.Z.delete(`${o}/programs/${e}/imt_reports/${t}`)}static getAverageAnnualReportOutcomes(e,t,n){return r.Z.post(`${o}/programs/${e}/imt_reports/${t}/get_average_annual_outcomes`,n)}static getAPReportScenarios(e,t){return r.Z.get(`${o}/programs/${e}/imt_reports/${t}/scenario_executions`)}static getPPReportScenarios(e,t){return r.Z.get(`${o}/programs/${e}/imt_reports/${t}/program_plan_scenario_executions`)}static getComparisons(e){return r.Z.get(`${o}/programs/${e}/comparisons`)}static postComparisons(e,t){return r.Z.post(`${o}/programs/${e}/comparisons`,t)}static getSupplyShedCSV(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return r.Z.post(`${o}/programs/${e}/export`,{aggregation_unit:t,supply_sheds:n,crop_ids:i,year_of_interest:a})}static getDataExport(e,t){return r.Z.post(`${o}/programs/${e}/export/reporting-data`,t,{responseType:"arraybuffer"})}static addDataScenario(e,t){return r.Z.post(`${o}/programs/${e}/data_scenario`,[t])}static renameDataScenario(e,t,n){return r.Z.put(`${o}/programs/${e}/data_scenario/${t}`,n)}static deleteDataScenario(e,t){return r.Z.delete(`${o}/programs/${e}/data_scenario/${t}`)}static postGhgpReportExport(e,t){return r.Z.post(`${o}/programs/${e}/export/ghgp`,t,{responseType:"arraybuffer"})}static addCommoditySource(e,t){return r.Z.post(`${o}/programs/${e}/commodity_sources`,t)}static updateCommoditySource(e,t,n){return r.Z.patch(`${o}/programs/${e}/commodity_sources/${t}`,n)}static deleteCommoditySource(e,t){return r.Z.delete(`${o}/programs/${e}/commodity_sources/${t}`)}static createPlan(e,t){return r.Z.post(`${o}/programs/${e}/plan`,t)}}},22195:(e,t,n)=>{"use strict";n.d(t,{LD:()=>a,T5:()=>i,_S:()=>o,cI:()=>r});const r={cover_cropping:"rgba(5, 116, 228, 1)",crop_rotation:"rgba(107, 135, 97, 1)",tillage:"rgba(234, 140, 0, 1)",fertilizer_usage:"rgba(215, 94, 59, 1)",living_root:"rgba(41, 143, 119, 1)",lulc:"rgba(73, 14, 108, 1)",farm_ownership:"rgba(0, 0, 0, 1)"},i=["#88DA9F","#75CACF","#6391DC","#A571CB","#CC639C","#D05D5D","#E1AA58","#ECE071"],o=["#9FD8DC","#A8BCDC","#BE9CD8","#D590B5","#DDB478","#F8EE9B","#ADE2A7","#75CACF","#6391DC","#A571CB","#CC639C","#E1AA58","#ECE071","#85C97D"],a=[{range:"No data",color:"#B96F0E"},{range:"<=0.0",color:"#E08918"},{range:"0.0-0.25",color:"#E1B558"},{range:"0.25-0.4",color:"#ECE071"},{range:"0.4-0.5",color:"#7DC9A8"},{range:"0.5-0.6",color:"#2B9D81"},{range:"0.6-0.7",color:"#147A70"},{range:"0.7-1",color:"#147A70"}]},6535:(e,t,n)=>{"use strict";n.d(t,{b:()=>f});var r=n(18178),i=n(33419),o=n(72457),a=n(36777),s=n(73042),l=n(5651);const c=e=>{let{id:t,name:n,value:i,label:o,options:c,search:u,selectedMap:d,onChange:p}=e;const[h,f]=(0,r.useState)(!1),m=[],g=!u||o.toLowerCase().includes(u.toLowerCase()),y=null!==c&&void 0!==c&&c.length?c.map((e=>{const t=!u||e.label.toLowerCase().includes(u.toLowerCase());if(!g&&!t)return null;const n=!!d[e.value];return n&&m.push(Number(e.value)),(0,l.jsx)(a.xu,{mb:4,children:(0,l.jsx)(a.t8,{label:e.label,control:(0,l.jsx)(a.XZ,{checked:n,value:e.value,onChange:e=>((e,t)=>{const{value:n}=t.target;p({groupValue:i,selected:e,selectedOptionsLength:null===m||void 0===m?void 0:m.length,type:"option",value:n,values:[n]},t)})(e.target.checked,e)})})},e.value)})).filter(s.$K):null;if(null!==c&&void 0!==c&&c.length&&(null===y||void 0===y||!y.length))return null;const v=!!y,b=v&&(h||u),_=Boolean((null===c||void 0===c?void 0:c.length)&&m.length===c.length);return(0,l.jsxs)(a.xu,{children:[(0,l.jsxs)(a.xu,{display:"flex",mb:4,alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",children:[(0,l.jsx)(a.t8,{id:t||`${i}-${n}`,label:`${o}${v?` (${null===m||void 0===m?void 0:m.length})`:""}`,control:(0,l.jsx)(a.XZ,{indeterminate:!!m.length&&!(m.length===(null===c||void 0===c?void 0:c.length)),checked:!(!d[i]&&!_),value:i,onChange:e=>((e,t)=>{const n=(null===c||void 0===c?void 0:c.map((e=>e.value)))||null;p({selected:e,value:i,values:n,type:"group"},t)})(e.target.checked,e)})}),v&&(0,l.jsx)(a.zx,{onClick:()=>f((e=>!e)),color:"secondary",variant:"text",children:(0,l.jsx)(a.le,{type:b?"chevron-up":"chevron-down"})})]}),b&&(0,l.jsx)("div",{style:{marginLeft:"20px"},children:y})]})},u=e=>{let{id:t,name:n,selectedMap:i,selected:s,options:u,onChange:d,allLabel:p="Select all",allSelected:h,allowSearch:f=!1,allowSelectAll:m=!1}=e;const[g,y]=(0,r.useState)(""),v=i||s.reduce(((e,t)=>({...e,[t]:!0})),{});return(0,l.jsxs)("div",{className:"grouped-selection-control",children:[f&&(0,l.jsx)(o.nv,{id:"county-select-search",className:"color-dark",placeholder:"Search",value:g,onChange:e=>y(String(e))}),m&&(0,l.jsx)(a.xu,{mb:4,mt:4,children:(0,l.jsx)(a.t8,{id:`all-${t}`,label:p,control:(0,l.jsx)(a.XZ,{indeterminate:!!s.length&&!h,checked:h,value:"all",name:"all",onChange:e=>d(e.target.checked,e)})})}),!(null===u||void 0===u||!u.length)&&(null===u||void 0===u?void 0:u.map((e=>{let{value:r,label:i,options:o}=e;const a=i.toLowerCase().includes(g.toLowerCase());return!f||o||a?(0,l.jsx)(c,{id:`${t}-${r}`,search:g,name:`${n}-${r}`,selectedMap:v,value:r,label:i,options:o,onChange:d},`${t}-${r}`):null})))]})};var d=n(5516),p=n.n(d);const h=(e,t,n,r)=>{var i,o,a,l,c,u,d,h;const f=e=>String(e.value)===String(t[0]);switch(!0){case(0,s.$K)(n)&&0===t.length:return n;case 1===t.length:return null!==(i=null===(o=e.find((e=>{var t;return null===(t=e.options)||void 0===t?void 0:t.some(f)})))||void 0===o||null===(a=o.options)||void 0===a||null===(l=a.find(f))||void 0===l?void 0:l.label)&&void 0!==i?i:null===(c=e.find(f))||void 0===c?void 0:c.label;default:return null!==(u=null===(d=((e,t)=>{if(0===e.length||0===t.length)return;return e.find((e=>{var n;const r=null===(n=e.options)||void 0===n?void 0:n.map((e=>String(e.value)));return void 0!==r&&t.length===r.length&&0===p()(t,r).length}))})(e,t))||void 0===d?void 0:d.label)&&void 0!==u?u:`${t.length} ${null!==(h=null===r||void 0===r?void 0:r.concat(" "))&&void 0!==h?h:""}selected`}},f=e=>{let{allLabel:t,allSelected:n=!1,allowSearch:o,allowSelectAll:a,className:s,onSelect:c,options:d,selected:p,selectedLabel:f,disabled:m=!1,selectedMap:g,onClear:y,style:v,active:b,noneSelectedLabel:_,id:w}=e;const[x,k]=(0,r.useState)(!1),C=(0,r.useMemo)((()=>g||p.reduce(((e,t)=>({...e,[t]:!0})),{})),[p,g]),S=(0,r.useMemo)((()=>h(d,p,_,f)),[_,d,p,f]);return(0,l.jsx)(i.l,{id:w,className:s,expand:x&&!m,setExpand:k,label:S,disabled:m,active:b,dropdownStyle:{minWidth:"250px",...v},onClear:y,children:x&&!m&&(0,l.jsx)(u,{allLabel:t,allowSearch:o,allowSelectAll:a,allSelected:n,id:"area-counties-select",name:"counties",onChange:(e,t)=>{requestAnimationFrame((()=>{c(e,t)}))},options:d,selected:p,selectedMap:C})})}},82079:(e,t,n)=>{"use strict";n.d(t,{$s:()=>O,A1:()=>R,CH:()=>U,Cg:()=>h,Fm:()=>L,HF:()=>S,IJ:()=>N,J0:()=>d,K5:()=>F,LM:()=>E,Lq:()=>V,QE:()=>D,RZ:()=>I,S5:()=>g,SP:()=>y,Vq:()=>_,WY:()=>T,X7:()=>s,_Q:()=>u,_h:()=>p,b4:()=>w,dL:()=>C,gI:()=>P,hM:()=>x,iF:()=>q,jc:()=>o,kc:()=>k,kh:()=>z,kr:()=>A,kx:()=>c,lL:()=>l,lj:()=>f,ob:()=>M,oj:()=>m,rg:()=>b,tI:()=>j,wt:()=>B,xB:()=>i,y2:()=>v,yB:()=>a,zi:()=>$});var r=n(77084);const i=Object.keys({fert_k_kg:0,fert_s_kg:0,fert_p_kg:0,fert_n_kg:0}).length,o={36:"alfalfa",21:"barley",34:"rapeseed",1:"corn",2:"cotton",32:"flax",37:"hay",29:"millet",28:"oats",53:"peas",43:"potatoes",3:"rice",27:"rye",4:"sorghum",5:"soybeans",41:"sugar_beets",6:"sunflowers",205:"triticale",23:"wheat_spring",24:"wheat_winter",61:"fallow"},a={36:"alfalfa",21:"barley",34:"rapeseed",1:"corn",2:"cotton",32:"flax",37:"hay",29:"millet",28:"oats",53:"peas",43:"potatoes",3:"rice",27:"rye",4:"sorghum",5:"soybeans",41:"sugar_beets",6:"sunflowers",205:"triticale",23:"wheat_spring",24:"wheat_winter",61:"fallow"},s={ghg_emission:"GHG emission",soc_sequestration:"\u0394SOC sequestration",net_emission:"Net emission",ghg_emissions_factor:"Field GHG emission factor",net_ghg_emissions_factor:"Field net emission factor",fert_emissions_factor:"Fertilizer emission factor",soc_emissions_factor:"Field dSOC emission factor",ef_book_values:"EF book values",yield:"Yield"},l={cover_cropping:"Cover crops",crop_rotation:"Crop rotation",tillage:"Tillage",fertilizer_usage:"Chemical disturbance",living_root:"Living root",lulc:"LULC",farm_ownership:"Farm ownership"},c={admin:"Program Administration",supply_shed:"Supply Shed Configuration",kpi:"Sustainability Reporting",ghgp:"GHGp-Aligned Reporting",abatement_potential:"Abatement Potential",plan_dashboard:"Plan Dashboard",data_export:"Data Export",comparison_dashboard:"Supply Shed Comparison",data_scenarios:"Data Scenarios",spatial_exploration:"Spatial Exploration",commodity_sources:"Commodity Sources"},u=[{groupType:"configure",groupTitle:"Configure",items:[{id:"admin",label:c.admin},{id:"supply_shed",label:c.supply_shed},{id:"data_scenarios",label:c.data_scenarios},{id:"commodity_sources",label:c.commodity_sources}],route:r.y9},{groupType:"report",groupTitle:"Report",items:[{id:"kpi",label:c.kpi},{id:"ghgp",label:c.ghgp},{id:"comparison_dashboard",label:c.comparison_dashboard},{id:"spatial_exploration",label:c.spatial_exploration},{id:"data_export",label:c.data_export}],route:r.RS},{groupType:"plan",groupTitle:"Plan",items:[{id:"plan_dashboard",label:"Scenario Modeling"}],route:r.wh}],d=[{groupType:"sustainability-outcome",groupTitle:"Outcomes",groupDescription:"This section covers the effects that regenerative agriculture practices have on emissions, removals, and yields in your sourcing regions.",articles:[],items:[{id:"ghg_emission",label:s.ghg_emission},{id:"soc_sequestration",label:s.soc_sequestration},{id:"net_emission",label:s.net_emission},{id:"yield",label:s.yield}]},{groupType:"emission-factor",groupTitle:"Emission Factors",groupDescription:"These are emissions factors specific to your sourcing regions to help quantify Scope 3 emissions. Learn more about how these metrics are calculated {{ExternalLink}}",articles:[{href:"https://help.regrow.ag/knowledge/si-emission-factor-metrics",content:"here."}],items:[{id:"ghg_emissions_factor",label:s.ghg_emissions_factor},{id:"soc_emissions_factor",label:s.soc_emissions_factor},{id:"net_ghg_emissions_factor",label:s.net_ghg_emissions_factor},{id:"fert_emissions_factor",label:s.fert_emissions_factor},{id:"ef_book_values",label:s.ef_book_values}]}],p=[{groupType:"agroecosystem",groupTitle:"Agroecosystem trends",groupDescription:"Monitor trends and changes in the agricultural ecosystem landscape within a supply shed. Learn more {{ExternalLink}} about Regrow's calculations and methodology for ESG reporting.",articles:[{href:"https://help.regrow.ag/knowledge/si-agricultural-practice-metrics#agro-metrics",content:"here"}],items:[{id:"living_root",label:l.living_root},{id:"fertilizer_usage",label:l.fertilizer_usage},{id:"lulc",label:l.lulc}]},{groupType:"agriculture-practices",groupTitle:"Agricultural practices",groupDescription:"Analyze supply shed specific baselines and patterns for soil management practice adoption. Learn more {{ExternalLink}} about Regrow's calculations and methodology for ESG reporting.",articles:[{href:"https://help.regrow.ag/knowledge/si-agricultural-practice-metrics#soil-practices",content:"here"}],items:[{id:"crop_rotation",label:l.crop_rotation},{id:"cover_cropping",label:l.cover_cropping},{id:"tillage",label:l.tillage},{id:"farm_ownership",label:l.farm_ownership}]}],h={dndc:"DNDC v9.5",mems:"MEMS v1.1"},f={vm0042:"VM0042",CAR_SEP:"CAR SEP v1"},m={abatement_potential:"Abatement Potential",program_plan:"Program Plan"},g={ef_reductions:"EF change",ghg_reductions:"Reductions (\u0394GHG)",soc_removals:"Removals (\u0394SOC)",net_ghg:"Net emissions \u0394"},y={yield_per_area:["yield"],crop_area:[],ghg_kg_per_m2:["ghg_emission"],soc_kg_per_m2:["soc_sequestration"],net_impact_kg_per_m2:["soc_sequestration","ghg_emission","net_emission"],ghg_emissions_factor:["ghg_emissions_factor"],fert_emissions_factor:["fert_emissions_factor"],net_ghg_emissions_factor:["net_ghg_emissions_factor"],soc_emissions_factor:["soc_emissions_factor"],cover_crop:["cover_cropping"],tillage:["tillage"],fertilizer_per_area:["fertilizer_usage"],living_root_cover:["living_root"],living_root_health:["living_root"],living_root_confidence:["living_root"],cropland_to_grassland_lulc:["lulc"],grassland_to_cropland_lulc:["lulc"],grassland_to_cropland_dluc:["lulc"],crop_rotation_number:["crop_rotation"],crop_rotation_fallow:["crop_rotation"],crop_rotation_common_rotations:["crop_rotation"],farm_count:["farm_ownership"]},v=[...y.ghg_emissions_factor,...y.net_ghg_emissions_factor,...y.fert_emissions_factor],b={KPI:{cropArea:"A crop type is the commodity that is cultivated during the main growing season. This metric shows the total area containing each crop type in your selected sourcing regions.",coverCrops:"Cover crop is a crop grown for the protection and enrichment of the soil during the fall, winter, or spring seasons.",tillage:"A regenerative agricultural management approach that aims to minimize the frequency or intensity of field tillage. Reduced tillage can greatly improve soil health.",fertilizerApplication:{card:"Fertilizer is a substance containing one or more essential nutrients applied to crops to provide a production benefit. An excess application of fertilizer can negatively affect soil biology.",pctUp:"",pctDown:""},yield:"The amount of a crop harvested per unit of land area.",ghg_emissions_factor:"GHG per unit of yield of a crop. This represents the amount of CO2e released into the atmosphere as a result of field activities such as planting, fertilization,  and crop harvesting."},dashboard:{reductionsAndRemovals:"Intervention scenarios and crops by % reduction and removal"}},_={kg:"Kilograms (kg)",lb:"Pounds (lbs)",mt:"Metric Tons (mt)",t:"Tons (t)"},w={noTill100:{label:"No-till on 100% of cropland",intervention_type:"no_till",percentage:100,interventionOption:"tillage"},reduceTill100:{label:"Reduced till on 100% of cropland",intervention_type:"reduce_till",percentage:100,interventionOption:"tillage"},coverCrop100:{label:"Cover crop on 100% of cropland",intervention_type:"cover_crop",percentage:100,interventionOption:"cover_cropping"},reduceN10:{label:"Reduce N by 10%",intervention_type:"reduce_nitrogen",percentage:10,interventionOption:"fertilizer_usage"},reduceN20:{label:"Reduce N by 20%",intervention_type:"reduce_nitrogen",percentage:20,interventionOption:"fertilizer_usage"},manure30:{label:"Use 30% manure",intervention_type:"use_manure",percentage:30,interventionOption:"fertilizer_usage"}},x={add_till:{label:e=>`Add till on ${e}% of cropland`,interventionOption:"tillage"},no_till:{label:e=>`No-till on ${e}% of cropland`,interventionOption:"tillage"},reduce_till:{label:e=>`Reduced till on ${e}% of cropland`,interventionOption:"tillage"},cover_crop:{label:e=>`Cover crop on ${e}% of cropland`,interventionOption:"cover_cropping"},reduce_cover:{label:e=>`Reduced cover crop on ${e}% of cropland`,interventionOption:"cover_cropping"},reduce_nitrogen:{label:e=>`Reduce N by ${e}%`,interventionOption:"fertilizer_usage"},use_manure:{label:e=>`Use ${e}% manure`,interventionOption:"fertilizer_usage"}},k=[{label:m.abatement_potential,value:"abatement_potential"},{label:m.program_plan,value:"program_plan"}],C=[{label:h.dndc,value:"dndc"},{label:h.mems,value:"mems"}],S=[{label:f.vm0042,value:"vm0042"},{label:f.CAR_SEP,value:"CAR_SEP"}],M=[{label:g.ghg_reductions,value:"ghg_reductions"},{label:g.soc_removals,value:"soc_removals"},{label:g.net_ghg,value:"net_ghg"},{label:g.ef_reductions,value:"ef_reductions"}],T=[{label:g.ghg_reductions,value:"ghg_reductions"},{label:g.soc_removals,value:"soc_removals"},{label:g.net_ghg,value:"net_ghg"}],E={ghg_emissions_factor:{label:"Field emissions from fertilizer application",color:"#E1AA58",order:9},fert_emissions_factor:{label:"Fertilizer production",color:"#E0E0E0",order:8},trace_metals:{label:"Trace metals",color:"#D1D1D1",order:7},crop_residues:{label:"Crop residues management",color:"#C2C2C2",order:6},seeds_seedlings_orchards:{label:"Seeds, seedlings and orchard",color:"#A7A7A7",order:5},irrigation:{label:"Irrigation",color:"#909090",order:4},luluc:{label:"LULUC",color:"#7A7A7A",order:3},plant_protection:{label:"Plant protection",color:"#606060",order:2},other:{label:"Other inputs and farm activities",color:"#464646",order:1}},P={...E,ghg_emissions_factor:{label:"Field emissions",color:E.ghg_emissions_factor.color,order:9},fert_emissions_factor:{label:"Fertilizer",color:E.fert_emissions_factor.color,order:8},crop_residues:{label:"Residue management",color:E.crop_residues.color,order:6},seeds_seedlings_orchards:{label:"Seeds",color:E.seeds_seedlings_orchards.color,order:5},other:{label:"Other",color:E.other.color,order:1}},I={book:"Book value",baseline:"Regrow baseline",scenario:"With interventions"},O=3,L=5,R={fert_emissions_factor:0,ghg_emissions_factor:0,trace_metals:0,crop_residues:0,seeds_seedlings_orchards:0,irrigation:0,luluc:0,plant_protection:0,other:0},j=1500,D="--",A=2,N="Select saved view",F="None selected",z="\u0394",B="verified",U="unverified",$="due to limited satellite imagery.",V="not applicable",q="from cropland with observed green cover classified as perennial, winter commodities or others which are not considered cover crop."},40292:(e,t,n)=>{"use strict";n.d(t,{E$:()=>u,WF:()=>l,Yr:()=>h,_q:()=>p,aJ:()=>c,m_:()=>d});var r=n(95602),i=n(22983),o=n(73042),a=n(22195),s=n(25960);const l={name:"New SI program",acreage_limit_ha:0,crop_year_start:(new Date).getFullYear(),crop_year_end:(new Date).getFullYear(),practice_kpis:[],outcome_kpis:[],tab_accesses:["admin","supply_shed"]},c={name:"New Supply Shed"},u=e=>(0,r.Fv)(e,[s.T]),d=e=>(0,r.Fv)([e],[s.T]),p=e=>e.map(((e,t)=>{var n;return{...e,color:t>=a.T5.length?(0,i.mi)(e.id):null!==(n=a.T5[t%a.T5.length])&&void 0!==n?n:a.T5[0]}})),h=e=>{let{geometries:t,idsToInclude:n,type:r}=e;const i=(e,t)=>(0,o.$K)(n)&&r===t&&!n.includes(e),a=p(t).filter((e=>!i(e.id,"supply-shed"))).flatMap((e=>e.subsection_geometries.filter((e=>!i(e.id,"sub-section"))).flatMap((t=>((e,t,n)=>{var r;return{...e.geometries,properties:{...null!==(r=e.geometries.properties)&&void 0!==r?r:{},type:"geojson",color:t.color,id:"supply-shed"===n?t.id:e.id}}})(t,e,r)))));return{type:"FeatureCollection",features:a}}},25960:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,T:()=>o});var r=n(95602);const i=new r.fK.Entity("program"),o=new r.fK.Entity("programs",{programs:i})},92541:(e,t,n)=>{"use strict";n.d(t,{a6:()=>Me,gB:()=>be,ps:()=>xe,ZP:()=>Le,Si:()=>Te,sN:()=>_e,rJ:()=>ke,bV:()=>Pe,Ws:()=>Q,fp:()=>U,cY:()=>ce,UE:()=>le,AI:()=>pe,tt:()=>oe,pe:()=>ae,w5:()=>ie,PT:()=>te,qU:()=>ne,I1:()=>re,VC:()=>ue,cC:()=>se,zf:()=>q,e2:()=>Oe,cd:()=>ge,c1:()=>X,vZ:()=>J,WD:()=>G,jZ:()=>ee,Bp:()=>Y,md:()=>Z,If:()=>K,nw:()=>W,OE:()=>H,cO:()=>B,Ib:()=>V,tp:()=>Ce,w9:()=>me,qm:()=>ye,ek:()=>Se,t7:()=>ve,_0:()=>we,AG:()=>Ie,Pf:()=>fe,oi:()=>he,U:()=>de,wD:()=>F,a8:()=>Ee});var r=n(60374),i=n(12581),o=n(56346),a=n(17303),s=n(91741),l=n(81943);const c=(0,i.oM)({name:"si/access",initialState:{},reducers:{},extraReducers:e=>{e.addCase(a.D.LOGOUT,(e=>({}))).addCase(l.U.CLEAR_PROGRAM_STATE,(e=>({}))).addCase(s.gK.fulfilled.type,((e,t)=>(0,o.V)(e,t.payload))).addCase(s.kS.fulfilled.type,((e,t)=>(0,o.V)(e,t.payload))).addCase(s.vX.fulfilled.type,((e,t)=>{var n,r;const{programId:i,user_id:o,role:a}=t.payload,s="user"===a?"users":"admins";return{...e,[i]:{...e[i],[s]:(null!==(n=null===e||void 0===e||null===(r=e[i])||void 0===r?void 0:r[s])&&void 0!==n?n:[]).filter((e=>e.user_id!==o))}}}))}});var u=n(95169),d=n.n(u),p=n(67541);const h=[],f=(e,t)=>e.findIndex((e=>e.id===t)),m=(0,i.oM)({name:"si/compareFilter",initialState:h,reducers:{removeCompareFilter:(e,t)=>{const n=[...e],r=f(e,t.payload.id);return-1!==r?[...n.slice(0,r),...n.slice(r+1)]:n},addCompareFilter:(e,t)=>[...e,t.payload],updateFilter:(e,t)=>{if(d()(t.payload.id))return e;const n=f(e,t.payload.id),r=[...e];return-1!==n?[...r.slice(0,n),{...r[n],...t.payload},...r.slice(n+1)]:e},setComparisons:(e,t)=>t.payload.map((e=>{var t;return{...e,id:null!==(t=e.id)&&void 0!==t?t:(0,p.Z)()}}))},extraReducers:e=>{e.addCase(a.D.LOGOUT,(e=>h)),e.addCase(l.U.CLEAR_PROGRAM_STATE,(e=>h))}});var g=n(32236),y=n.n(g),v=n(40292);const b={programs:{},supplyShedColors:{}},_=(0,i.oM)({name:"si/entities",initialState:b,reducers:{setSupplyShedColors:(e,t)=>{const n=(0,v._q)(t.payload),r=y()(n.map((e=>{let{id:t,color:n}=e;return[t,n]})));return{...e,supplyShedColors:{...e.supplyShedColors,...r}}}},extraReducers:e=>{e.addCase(a.D.LOGOUT,(e=>b)).addCase(s.$.fulfilled.type,((e,t)=>{const n=t.payload;delete e.programs[n]})).addCase(s.MH.fulfilled.type,((e,t)=>({...e,...t.payload.entities,programs:(0,o.V)(e.programs,t.payload.entities.program)}))).addMatcher((e=>[s.V6.fulfilled.type,s.Kl.fulfilled.type,s.Ob.fulfilled.type].includes(e.type)),((e,t)=>(0,o.V)(e,t.payload.entities)))}}),w={selectedYear:null,selectedSubregionIds:null,selectedCropIds:null},x=(0,i.oM)({name:"si/ghgpFilter",initialState:w,reducers:{setGhgpFilter:(e,t)=>({...e,...t.payload}),clearGhgpFilter:()=>w},extraReducers:e=>{e.addCase(a.D.LOGOUT,(()=>w)),e.addCase(l.U.CLEAR_PROGRAM_STATE,(()=>w))}});var k=n(17859),C=n(73042);const S={years:[2020],visibleSubsectionIds:[],selectedCropTypes:[],cropHaBySubsectionIdsByYear:{},saved:[],selectedScenarioId:void 0},M=(0,i.oM)({name:"si/kpiFilter",initialState:S,reducers:{setSIYearsFilter:(e,t)=>({...e,years:t.payload}),setSIVisibleSubsectionIds:(e,t)=>({...e,visibleSubsectionIds:t.payload}),toggleSISubsectionVisibility:(e,t)=>({...e,visibleSubsectionIds:(0,k.ZN)(e.visibleSubsectionIds,t.payload)}),setSISelectedCropTypes:(e,t)=>({...e,selectedCropTypes:t.payload}),setPartialKPIFilter:(e,t)=>({...e,...t.payload}),setCurrentKPIFilter:(e,t)=>{const{selected_crop_types:n,visible_subsection_ids:r,years:i,data_scenario_id:o}=t.payload.filter;return{...e,years:i,visibleSubsectionIds:r,selectedCropTypes:n,selectedScenarioId:null!==o&&void 0!==o?o:void 0}},setSelectedScenarioId:(e,t)=>({...e,selectedScenarioId:t.payload})},extraReducers:e=>{e.addCase(s.yK.fulfilled.type,((e,t)=>{const{subsection_summary:n,year:r}=t.payload;(0,C.$K)(n)&&Object.entries(n).forEach((t=>{var n,i;const[o,a]=t;e.cropHaBySubsectionIdsByYear={...e.cropHaBySubsectionIdsByYear,[Number(o)]:{...null!==(n=e.cropHaBySubsectionIdsByYear[Number(o)])&&void 0!==n?n:{},[r]:null!==(i=a/1e4)&&void 0!==i?i:0}}}))})).addCase(s.Mb.fulfilled.type,((e,t)=>{e.saved=t.payload})).addCase(s.l_.fulfilled.type,((e,t)=>{e.saved=t.payload})).addCase(a.D.LOGOUT,(e=>({...e,...S}))).addCase(l.U.CLEAR_PROGRAM_STATE,(e=>({...e,...S})))}}),T=(0,i.oM)({name:"si/kpis",initialState:{bookValues:[]},reducers:{},extraReducers:e=>{e.addCase(s.Yx.fulfilled.type,((e,t)=>{var n;const r=t.payload[0];return{...e,bookValues:[...null!==(n=null===r||void 0===r?void 0:r.crop_book_values)&&void 0!==n?n:[]]}}))}});var E=n(41752);const P={style:E.ai.satellite,initialView:{longitude:-90,latitude:40,zoom:4}},I=(0,i.oM)({name:"si/map",initialState:P,reducers:{switchMapStyle(e,t){const n=t.payload;if("road"===n)e.style=E.ai.road;else if("satellite"===n)e.style=E.ai.satellite;else{if("light"!==n)throw new Error(`Unknown map style target: ${n}`);e.style=E.ai.light}}}});var O=n(65423);const L={planningReports:{},new:{name:"",startYear:(new Date).getFullYear()-5,endYear:(new Date).getFullYear(),reportType:"abatement_potential",model:"dndc",protocol:"vm0042",areas:{},crops:{},interventions:[],cropStepBlocked:!0},data:{},dashboard:{programId:null,reportId:null,reportType:"abatement_potential",pageIndex:0,pageSize:5,orderBy:"net_ghg",orderDirection:"desc",onlyTopScenarios:!1,dataUnits:"num",cropFilter:[],sourcingRegionFilter:[],interventionFilter:[]}},R=(0,i.oM)({name:"si/plans",initialState:L,reducers:{setNewName(e,t){e.new.name=t.payload},setNewStartYear(e,t){e.new.startYear=t.payload},setNewEndYear(e,t){e.new.endYear=t.payload},setNewReportType(e,t){e.new.reportType=t.payload,"program_plan"===t.payload&&(e.new.interventions=[])},setNewModel(e,t){e.new.model=t.payload},setNewProtocol(e,t){e.new.protocol=t.payload},setNewAreas(e,t){e.new.areas=t.payload},setNewCrops(e,t){e.new.crops=t.payload},setCropStepBlocked(e,t){e.new.cropStepBlocked=t.payload},setNewInterventions(e,t){e.new.interventions=t.payload},setDashboardProgramId(e,t){e.dashboard.programId=t.payload},setDashboardReportId(e,t){e.dashboard.reportId=t.payload},setDashboardReportType(e,t){e.dashboard.reportType=t.payload},setDashboardPageIndex(e,t){e.dashboard.pageIndex=t.payload},setDashboardOrderBy(e,t){e.dashboard.orderBy=t.payload},setDashboardOrderDirection(e,t){e.dashboard.orderDirection=t.payload},setDashboardTopScenarios(e,t){e.dashboard.onlyTopScenarios=t.payload},setDashboardDataUnits(e,t){e.dashboard.dataUnits=t.payload},setDashboardCropFilter(e,t){e.dashboard.cropFilter=t.payload},setDashboardSourcingRegionFilter(e,t){e.dashboard.sourcingRegionFilter=t.payload},toggleDashboardSourcingRegionFilter(e,t){e.dashboard.sourcingRegionFilter=(0,k.ZN)(e.dashboard.sourcingRegionFilter,t.payload)},setDashboardInterventionFilter(e,t){e.dashboard.interventionFilter=t.payload},toggleDashboardInterventionFilter(e,t){e.dashboard.interventionFilter=(0,k.ZN)(e.dashboard.interventionFilter,t.payload)}},extraReducers:e=>{e.addCase(a.D.LOGOUT,(e=>L)).addCase(l.U.CLEAR_PROGRAM_STATE,(e=>L)).addCase(s.$8.fulfilled.type,((e,t)=>{const{scenarios:n,programId:r,reportId:i}=t.payload,o=n.reduce(((e,t)=>{const n=t.crop_type;return e.includes(n)||e.push(n),e}),[]),a=n.reduce(((e,t)=>{const n=`${t.sourcing_region_id.unit_id}+++${t.sourcing_region_id.unit_type}`;return e.includes(n)||e.push(n),e}),[]),s=n.reduce(((e,t)=>{const n=t.scenario_id;return e.includes(n)||e.push(n),e}),[]);return{...e,data:{...e.data,[i]:n},dashboard:{...e.dashboard,programId:r,reportId:i,reportType:"abatement_potential",cropFilter:o,sourcingRegionFilter:a,interventionFilter:s,recordCount:n.length}}})).addCase(s.o9.fulfilled.type,((e,t)=>{const{scenarios:n,programId:r,reportId:i}=t.payload,o=n.reduce(((e,t)=>{const n=t.crop_type;return e.includes(n)||e.push(n),e}),[]),a=n.reduce(((e,t)=>{const n=(0,O.bx)(t.sourcing_region_id.unit_id,t.sourcing_region_id.unit_type);return e.includes(n)||e.push(n),e}),[]),s=n.reduce(((e,t)=>{const n=t.scenario_id;return e.includes(n)||e.push(n),e}),[]);return{...e,data:{...e.data,[i]:n},dashboard:{...e.dashboard,programId:r,reportId:i,reportType:"program_plan",cropFilter:o,sourcingRegionFilter:a,interventionFilter:s}}})).addMatcher((e=>[s.iI.fulfilled.type,s.aF.fulfilled.type,s.Bc.fulfilled.type].includes(e.type)),((e,t)=>(0,o.V)(e,t.payload.plans)))}});var j=n(39921);const D=(0,i.oM)({name:"si/supplyShedMap",initialState:{interactionType:"select",selection:{layerID:"admin1"},showTools:!0,subsectionGeometryById:{},subsectionSelectedFeatureById:{},programGeometries:null,showProgramGeometries:!0},reducers:{setSelectLayerID(e,t){e.selection.layerID=t.payload},setInteractionType(e,t){e.interactionType=t.payload},setShouldShowMapTools(e,t){e.showTools=t.payload},setSubsectionGeometryById(e,t){e.subsectionGeometryById=t.payload},addSubsectionGeometryById(e,t){const{featureID:n,feature:r}=t.payload;e.subsectionGeometryById[n]=r},removeSubsectionGeometryById(e,t){const{featureID:n}=t.payload;delete e.subsectionGeometryById[n]},setSubsectionSelectedFeatureById(e,t){e.subsectionSelectedFeatureById=t.payload},addSubsectionSelectedFeatureById(e,t){const{featureID:n,feature:r}=t.payload;e.subsectionSelectedFeatureById[n]=r},removeSubsectionSelectedFeatureById(e,t){const{featureID:n}=t.payload;delete e.subsectionSelectedFeatureById[n]},setProgramGeometries(e,t){e.programGeometries=t.payload},setShowProgramGeometries(e,t){e.showProgramGeometries=t.payload}}}),{setSIYearsFilter:A,setSIVisibleSubsectionIds:N,toggleSISubsectionVisibility:F,setSISelectedCropTypes:z,setPartialKPIFilter:B,setCurrentKPIFilter:U,setSelectedScenarioId:$}=M.actions,{setProcessing:V,setDataExportAgreement:q}=j.programsSlice.actions,{setNewName:Z,setNewStartYear:H,setNewEndYear:G,setNewReportType:W,setNewModel:Y,setNewProtocol:K,setNewAreas:X,setNewCrops:J,setCropStepBlocked:Q,setNewInterventions:ee,setDashboardProgramId:te,setDashboardReportId:ne,setDashboardReportType:re,setDashboardPageIndex:ie,setDashboardOrderBy:oe,setDashboardOrderDirection:ae,setDashboardTopScenarios:se,setDashboardDataUnits:le,setDashboardCropFilter:ce,setDashboardSourcingRegionFilter:ue,toggleDashboardSourcingRegionFilter:de,setDashboardInterventionFilter:pe,toggleDashboardInterventionFilter:he}=R.actions,{switchMapStyle:fe}=I.actions,{setSelectLayerID:me,setInteractionType:ge,setShouldShowMapTools:ye,setSubsectionGeometryById:ve,addSubsectionGeometryById:be,removeSubsectionGeometryById:_e,setSubsectionSelectedFeatureById:we,addSubsectionSelectedFeatureById:xe,removeSubsectionSelectedFeatureById:ke,setProgramGeometries:Ce,setShowProgramGeometries:Se}=D.actions,{addCompareFilter:Me,removeCompareFilter:Te,updateFilter:Ee,setComparisons:Pe}=m.actions,{setSupplyShedColors:Ie}=_.actions,{setGhgpFilter:Oe}=x.actions,Le=(0,r.UY)({access:c.reducer,programs:j.programsSlice.reducer,plans:R.reducer,entities:_.reducer,kpiFilter:M.reducer,compareColumns:m.reducer,map:I.reducer,supplyShedMap:D.reducer,kpis:T.reducer,ghgpFilter:x.reducer})},53315:(e,t,n)=>{"use strict";n.d(t,{OH:()=>r,PR:()=>i,u6:()=>o});const r=(e,t)=>t,i=e=>e.si.programs.processing,o=e=>e.si.programs.dataExportAgreement},78049:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>O,UH:()=>F,Co:()=>j,jO:()=>N,YP:()=>D,Kb:()=>M,XC:()=>L,_K:()=>m,Q1:()=>g,dp:()=>S,ec:()=>P,Rk:()=>E,eP:()=>C,gy:()=>x,PN:()=>w,te:()=>R,x4:()=>T,Ow:()=>_,ZD:()=>A,z6:()=>z,Z$:()=>I});var r=n(84735),i=n.n(r),o=n(99730),a=n(56637),s=n(73042),l=n(22168),c=n(82079),u=n(65423);const d=e=>{let{scenarios:t,sourcingRegionFilter:n,cropFilter:r,interventionFilter:i}=e;return t.filter((e=>(e=>n.includes((0,u.bx)(e.sourcing_region_id.unit_id,e.sourcing_region_id.unit_type)))(e)&&(e=>r.includes(e.crop_type))(e)&&(e=>i.includes(e.scenario_id))(e)))};var p=n(53315),h=n(81797);const f=e=>e.si.plans,m=(0,o.P1)([f],(e=>e.data)),g=(0,o.P1)([m,p.OH],((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:[]})),y=(0,o.P1)([f],(e=>e.dashboard)),v=(0,o.P1)([y],(e=>e.programId)),b=(0,o.P1)([y],(e=>e.reportId)),_=(0,o.P1)([y],(e=>e.reportType)),w=(0,o.P1)([y],(e=>{let{pageIndex:t,pageSize:n}=e;return{pageIndex:t,pageSize:n,startNumber:t*n+1}})),x=(0,o.P1)([y],(e=>e.orderBy)),k=(0,o.P1)([y],(e=>e.orderDirection)),C=(0,o.P1)([y],(e=>e.onlyTopScenarios)),S=(0,o.P1)([y],(e=>e.dataUnits)),M=(0,o.P1)([y],(e=>e.cropFilter)),T=(0,o.P1)([y],(e=>e.sourcingRegionFilter)),E=(0,o.P1)([y],(e=>e.interventionFilter)),P=(0,o.P1)([e=>z(e,Number(v(e))),p.OH],((e,t)=>e.find((e=>e.id===Number(t))))),I=(0,o.P1)([e=>g(e,Number(b(e))),x,M,T,E],((e,t,n,r,i)=>{const o=d({scenarios:e,cropFilter:n,sourcingRegionFilter:r,interventionFilter:i}).sort(((e,n)=>{const r=(0,u.Wk)({scenario:e,kpi:t}),i=(0,u.Wk)({scenario:n,kpi:t});return(0,a.Rm)(r,i)}));return o.map(((e,t)=>({...e,rank:t+1})))})),O=(0,o.P1)([e=>g(e,Number(b(e))),x,k,S,M,T,E,C,l.DC],((e,t,n,r,o,a,l,c,u)=>{const p="asc"===n?1:-1;let f=d({scenarios:e,cropFilter:o,sourcingRegionFilter:a,interventionFilter:l});if(c){const e=new Set,n=new Set,o=new Set;f.forEach((t=>{"abatement_potential"===t.tag&&(e.add(`${t.sourcing_region_id.unit_id}+++${t.sourcing_region_id.unit_type}`),n.add(t.crop_type))})),e.forEach((e=>{const a=e.split("+++")[0],l=e.split("+++")[1];n.forEach((e=>{let n=[];n=f.filter((t=>{if("abatement_potential"===t.tag){return t.sourcing_region_id.unit_id===Number(a)&&t.sourcing_region_id.unit_type===l&&t.crop_type===e}return!1}));const c=i()(n.sort(((e,n)=>{const i=(0,h.o0)({scenario:e,kpi:t,units:r,measurement:u,round:!1}).value,o=(0,h.o0)({scenario:n,kpi:t,units:r,measurement:u,round:!1}).value;return i<o?p:i>o?-1*p:0})));(0,s.$K)(c)&&o.add(c.rank)}))})),f=f.filter((e=>o.has(e.rank)))}return t&&(f=f.sort(((e,n)=>{const i=(0,h.o0)({scenario:e,kpi:t,units:r,measurement:u,round:!1}).value,o=(0,h.o0)({scenario:n,kpi:t,units:r,measurement:u,round:!1}).value;return i<o?p:i>o?-1*p:0}))),f})),L=(0,o.P1)([O,w],((e,t)=>{var n;let{pageIndex:r,pageSize:i}=t;return null!==(n=e.slice(r*i,r*i+i))&&void 0!==n?n:[]})),R=(0,o.P1)([O],(e=>{var t;return null!==(t=e.length)&&void 0!==t?t:0})),j=(0,o.P1)([e=>P(e,Number(b(e)))],(e=>t=>{var n,r;const i={},o=null!==(n=null===e||void 0===e||null===(r=e.sourcing_regions)||void 0===r?void 0:r.map((e=>[e.unit_id,e.unit_type])))&&void 0!==n?n:[];return t.map((e=>(null!==o&&void 0!==o&&o.some((t=>t[0]===e.id&&"supply_shed"===t[1]||null))&&(i[`${e.id}+++supply_shed`]=e.name),e.subsections.map((t=>null!==o&&void 0!==o&&o.some((e=>e[0]===t.id&&"subsection"===e[1]||null))?i[`${t.id}+++subsection`]=`${e.name} / ${t.name}`:null))))),i})),D=(0,o.P1)([e=>P(e,Number(b(e)))],(e=>{var t;const n={};return null===e||void 0===e||null===(t=e.intervention_scenarios)||void 0===t||t.map((e=>{var t;const r=e.map((e=>c.hM[e.intervention_type].label(e.percentage)));return n[Number(null===(t=e[0])||void 0===t?void 0:t.scenario_id)]=r.join(" + ")})),n})),A=(0,o.P1)([f],(e=>e.planningReports)),N=(0,o.P1)([f],(e=>e.new)),F=(0,o.P1)([N],(e=>e.cropStepBlocked)),z=(0,o.P1)([A,p.OH],((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:[]}))},39921:(e,t,n)=>{"use strict";n.d(t,{programsSlice:()=>o});var r=n(12581),i=n(17303);const o=(0,r.oM)({name:"si/programs",initialState:{list:[],processing:!1,dataExportAgreement:!1},reducers:{loadSIProgramsList(e,t){var n;e.list=null!==(n=t.payload)&&void 0!==n?n:[]},setProcessing(e,t){e.processing=t.payload},setDataExportAgreement(e,t){e.dataExportAgreement=t.payload}},extraReducers:e=>{e.addCase(i.D.LOGOUT,(e=>({...e,list:[]})))}})},91741:(e,t,n)=>{"use strict";n.d(t,{$:()=>m,$8:()=>M,Bc:()=>S,Kl:()=>p,MH:()=>h,Mb:()=>_,Ob:()=>d,V6:()=>f,Yx:()=>x,aF:()=>C,gK:()=>g,iI:()=>k,kS:()=>y,l_:()=>w,o9:()=>T,vX:()=>v,yK:()=>b});var r=n(12581),i=n(95602),o=n(38216),a=n(40292),s=n(25960),l=n(78049),c=n(39921),u=n(81943);const d=(0,r.hg)(u.U.FETCH_ALL_SI_PROGRAMS,(async(e,t)=>{const n=await o.Z.getPrograms(),r=(0,a.E$)(n.data),i=r.result;return null!==i&&void 0!==i&&i.length&&t.dispatch(c.programsSlice.actions.loadSIProgramsList(i)),r})),p=(0,r.hg)(u.U.FETCH_SI_PROGRAM,(async e=>{const t=await o.Z.getProgram(e);return(0,a.m_)(t.data)})),h=(0,r.hg)(u.U.UPDATE_SI_PROGRAM,(async e=>{let{programId:t,program:n}=e;const r=await o.Z.updateProgram(t,n);return(0,i.Fv)(r.data,s.J)})),f=(0,r.hg)(u.U.ADD_SI_PROGRAM,(async e=>{let{program:t}=e;const n=await o.Z.addProgram(t);return(0,a.E$)(null===n||void 0===n?void 0:n.data)})),m=(0,r.hg)(u.U.REMOVE_SI_PROGRAM,(async e=>{let{programId:t}=e;return await o.Z.removeProgram(t),t})),g=(0,r.hg)(u.U.FETCH_SI_PROGRAM_USERS,(async e=>({[e]:{users:(await o.Z.getProgramUsers(e)).data}}))),y=(0,r.hg)(u.U.FETCH_SI_PROGRAM_ADMINS,(async e=>({[e]:{admins:(await o.Z.getProgramAdmins(e)).data}}))),v=(0,r.hg)(u.U.REMOVE_SI_PROGRAM_USER,(async e=>{let{programId:t,user_id:n,role:r}=e;return await o.Z.deleteProgramUsers(t,[n]),{programId:t,user_id:n,role:r}})),b=(0,r.hg)(u.U.FETCH_KPI_SUBSECTION_AREA,(async e=>{let{programId:t,year:n}=e;const r=`crop_area?year_of_interest=${n}&summarize_by=subsection`;return(await o.Z.getKPIData(t,r)).data})),_=(0,r.hg)(u.U.FETCH_KPI_FILTERS,(async e=>{let{programId:t}=e;return(await o.Z.getAllKPIFilters(t)).data})),w=(0,r.hg)(u.U.SET_KPI_FILTERS,(async e=>{let{programId:t,filters:n}=e;return await o.Z.setAllKPIFilters(t,n),n})),x=(0,r.hg)(u.U.FETCH_BOOK_VALUES,(async e=>{let{programId:t}=e;const{data:n}=await o.Z.getBookValues(t);return n})),k=(0,r.hg)(u.U.FETCH_PLANNING_REPORTS,(async e=>({plans:{planningReports:{[e]:(await o.Z.getPlanningReports(e)).data}}}))),C=(0,r.hg)(u.U.ADD_PLANNING_REPORT,(async(e,t)=>{let{programId:n,plan:r}=e;const i=await o.Z.addPlanningReport(n,r);return{plans:{planningReports:{[n]:[...(0,l.z6)(t.getState(),n),i.data[0]]}}}})),S=(0,r.hg)(u.U.UPDATE_PLANNING_REPORT,(async(e,t)=>{let{programId:n,reportId:r,plan:i}=e;const a=await o.Z.updatePlanningReport(n,r,i),s=(0,l.z6)(t.getState(),n),c=a.data[0];return{plans:{planningReports:{[n]:s.map((e=>e.id===(null===c||void 0===c?void 0:c.id)?c:e))}}}})),M=(0,r.hg)(u.U.FETCH_PLANNING_REPORT_SCENARIOS_AP,(async e=>{let{programId:t,reportId:n}=e;return{scenarios:(await o.Z.getAPReportScenarios(t,n)).data.map(((e,t)=>({...e,rank:t,tag:"abatement_potential"}))),programId:t,reportId:n}})),T=(0,r.hg)(u.U.FETCH_PLANNING_REPORT_SCENARIOS_PP,(async e=>{let{programId:t,reportId:n}=e;const{data:r}=await o.Z.getPPReportScenarios(t,n);return{scenarios:r.map(((e,t)=>({...e,rank:t+1,tag:"program_plan"}))),programId:t,reportId:n}}))},81943:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r=function(e){return e.ADD_SI_PROGRAM="si/add-program",e.FETCH_ALL_SI_PROGRAMS="si/fetch-all-programs",e.FETCH_SI_PROGRAM="si/fetch-program",e.REMOVE_SI_PROGRAM="si/remove-program",e.UPDATE_SI_PROGRAM="si/update-program",e.FETCH_SI_PROGRAM_USERS="si/fetch-program-users",e.FETCH_SI_PROGRAM_ADMINS="si/fetch-program-admins",e.REMOVE_SI_PROGRAM_USER="si/remove-program-user",e.FETCH_KPI_SUBSECTION_AREA="si/fetch-kpi-subsection-area",e.FETCH_KPI_FILTERS="si/fetch-kpi-filters",e.SET_KPI_FILTERS="si/set-kpi-filters",e.FETCH_KPI="si/fetch-kpi",e.FETCH_BOOK_VALUES="si/fetch-book-values",e.FETCH_PLANNING_REPORTS="si/fetch-planning-reports",e.ADD_PLANNING_REPORT="si/add-planning-report",e.UPDATE_PLANNING_REPORT="si/update-planning-report",e.UPDATE_PLANNING_REPORT_URL="si/update-planning-report-url",e.FETCH_PLANNING_REPORT_SCENARIOS_AP="si/fetch-report-scenarios-ap",e.FETCH_PLANNING_REPORT_SCENARIOS_PP="si/fetch-report-scenarios-pp",e.CLEAR_PROGRAM_STATE="si/clear-program-state",e}({})},18218:(e,t,n)=>{"use strict";n.d(t,{Hm:()=>u,Jc:()=>d,KT:()=>c,Pw:()=>s,cn:()=>p,nv:()=>l});var r=n(16619),i=n.n(r),o=n(77392);const a=e=>(e.baseline.ghg_kg_per_m2-e.baseline.soc_kg_per_m2)*e.additional_m2,s=(e,t)=>-1*(e.simulation.ghg_kg_per_m2-e.baseline.ghg_kg_per_m2)*(t*e.additional_m2),l=(e,t)=>(e.simulation.soc_kg_per_m2-e.baseline.soc_kg_per_m2)*(t*e.additional_m2),c=e=>t=>t.map((t=>{let{year:n,percentage:r}=t;const i=r/100,o=a(e),c=s(e,i),u=l(e,i);var d,p;return{year:n,percentage:r,baselineKgCO2e:o,estReductionsKgCO2e:c,estRemovalsKgCO2e:u,estNetImprovementKgCO2e:c+u,estSimulatedNetKgCO2e:(p=i,a(d=e)*(1-p)+(d.simulation.ghg_kg_per_m2-d.simulation.soc_kg_per_m2)*(p*d.additional_m2))}})),u=e=>e.reduce(((e,t)=>({baselineKgCO2e:e.baselineKgCO2e+t.baselineKgCO2e,estNetImprovementKgCO2e:e.estNetImprovementKgCO2e+t.estNetImprovementKgCO2e,estReductionsKgCO2e:e.estReductionsKgCO2e+t.estReductionsKgCO2e,estRemovalsKgCO2e:e.estRemovalsKgCO2e+t.estRemovalsKgCO2e})),{baselineKgCO2e:0,estNetImprovementKgCO2e:0,estReductionsKgCO2e:0,estRemovalsKgCO2e:0}),d=e=>{const t=t=>{var n;return null!==(n=(0,o.tA)(t,e.length))&&void 0!==n?n:0},n=u(e);return{baselineKgCO2e:t(n.baselineKgCO2e),estNetImprovementKgCO2e:t(n.estNetImprovementKgCO2e),estReductionsKgCO2e:t(n.estReductionsKgCO2e),estRemovalsKgCO2e:t(n.estRemovalsKgCO2e)}},p=e=>{const t=(e,t)=>e.reduce(((e,n)=>{var r,o;const a={year:n.year,cumulativeNet:(null!==(r=null===(o=i()(e))||void 0===o?void 0:o.cumulativeNet)&&void 0!==r?r:0)+n[t]};return[...e,a]}),[]);return{baselineCumulativeKgCO2e:t(e,"baselineKgCO2e"),simulatedCumulativeKgCO2e:t(e,"estSimulatedNetKgCO2e")}}},44025:(e,t,n)=>{"use strict";n.d(t,{Hf:()=>u,Sq:()=>s,du:()=>c,zR:()=>l});var r=n(26618),i=n.n(r),o=n(6402),a=n(64095);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return parseFloat(i()(e).from("kg").to("mt").toPrecision(t))},l=function(e){const t=s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:3);return(0,o._H)(t)},c=(e,t)=>{const n=i()(e).from("kg").to("mt")*t;return Math.max(0,n)},u=(e,t)=>{const n=c(e,t);return(0,a.xG)(n)}},81797:(e,t,n)=>{"use strict";n.d(t,{gB:()=>c,o0:()=>d,tu:()=>u,xL:()=>p});var r=n(42931),i=n(8854),o=n(14291),a=n(73042),s=n(41752),l=n(87295);const c=e=>{let{scenario:t,baseline:n}=e;return 0===n?0:(t-n)/n*100},u=e=>{let{scenarios:t,units:n,measurement:r}=e;const i=(e=>{let{scenarios:t,units:n,measurement:r}=e;return t.flatMap((e=>Object.values(s.jx).map((t=>{const i=d({scenario:e,kpi:t,units:n,measurement:r,round:!1}).value;return isFinite(i)?i:0}))))})({scenarios:t,units:n,measurement:r});return{lowest:Math.min(0,...i),highest:Math.max(0,...i)}},d=e=>{let{scenario:t,kpi:n,units:s,measurement:u,round:d=!0,decimals:p=2,precision:h}=e,f=0,m=0,g=0;switch(n){case"ef_reductions":var y,v;if("abatement_potential"===t.tag)m=(0,r.S)((0,o._J)(null===(y=t.baseline)||void 0===y?void 0:y.emission_factors)),g=(0,r.S)((0,o._J)(null===(v=t.simulation)||void 0===v?void 0:v.emission_factors));break;case"ghg_reductions":m=t.baseline.ghg_kg_per_m2,g=t.simulation.ghg_kg_per_m2;break;case"soc_removals":m=t.baseline.soc_kg_per_m2,g=t.simulation.soc_kg_per_m2;break;case"net_ghg":m=t.baseline.ghg_kg_per_m2-t.baseline.soc_kg_per_m2,g=t.simulation.ghg_kg_per_m2-t.simulation.soc_kg_per_m2}return"num"===s?f=g-m:"pct"===s&&(f="net_ghg"===n&&m<0?(e=>{let{scenario:t,baseline:n}=e;return 0===n?0:(n-t)/n*100})({scenario:g,baseline:m}):c({scenario:g,baseline:m})),"num"===s&&(f=(0,l.MA)(f,u).value),(0,a.$K)(h)?f=Number(f.toPrecision(h)):d&&(f=(0,i.gU)(f,p)),{value:f,unit:"num"===s?"":"%"}},p=function(e,t){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,s=arguments.length>4?arguments[4]:void 0,u=0,d=0,p=0;switch(t){case"ghg_reductions":u=(0,l.MA)(e.baseline.ghg_kg_per_m2,s).value,d=(0,l.MA)(e.simulation.ghg_kg_per_m2,s).value;break;case"soc_removals":u=(0,l.MA)(e.baseline.soc_kg_per_m2,s).value,d=(0,l.MA)(e.simulation.soc_kg_per_m2,s).value;break;case"net_ghg":u=(0,l.MA)(e.baseline.ghg_kg_per_m2-e.baseline.soc_kg_per_m2,s).value,d=(0,l.MA)(e.simulation.ghg_kg_per_m2-e.simulation.soc_kg_per_m2,s).value;break;case"fert_emissions_factor":case"ghg_emissions_factor":case"trace_metals":case"crop_residues":case"seeds_seedlings_orchards":case"irrigation":case"luluc":case"plant_protection":case"other":var h,f;if("abatement_potential"===e.tag)n=e.book.emission_factors[t],u=null!==(h=e.baseline.emission_factors[t])&&void 0!==h?h:0,d=null!==(f=e.simulation.emission_factors[t])&&void 0!==f?f:0}p=d-u;const m=(0,i.gU)(c({scenario:d,baseline:u}),0);return r&&(n=(0,a.$K)(n)?Number(n.toPrecision(o)):void 0,u=Number(u.toPrecision(o)),d=Number(d.toPrecision(o)),p=Number(p.toPrecision(o))),{baseline:u,withInterventions:d,difference:p,percentChange:m,book:n}}},65423:(e,t,n)=>{"use strict";n.d(t,{F7:()=>u,Wk:()=>c,bx:()=>l});var r=n(26618),i=n.n(r),o=n(18218),a=n(44025),s=n(77392);const l=(e,t)=>`${e}+++${t}`,c=e=>{let{scenario:{baseline:t,simulation:n,additionality:{additional_m2:r}},kpi:i}=e;const s=(0,o.Pw)({baseline:t,simulation:n,additional_m2:r},1),l=(0,o.nv)({baseline:t,simulation:n,additional_m2:r},1),c=s+l;switch(i){case"ghg_reductions":return(0,a.Sq)(s);case"soc_removals":return(0,a.Sq)(l);case"net_ghg":return(0,a.Sq)(c)}},u=e=>{var t;let{value:n,measurement:r,additional_m2:o}=e;const a=i()(o).from("m2").to(r);return null!==(t=(0,s.tA)(n,a))&&void 0!==t?t:0}},77084:(e,t,n)=>{"use strict";n.d(t,{$C:()=>k,G_:()=>b,Go:()=>a,LW:()=>f,P8:()=>g,PI:()=>m,RS:()=>u,Sr:()=>v,Xc:()=>_,Xm:()=>y,Y9:()=>i,d:()=>s,eI:()=>o,et:()=>h,ng:()=>x,oA:()=>l,ou:()=>w,wh:()=>d,y2:()=>p,y9:()=>c});var r=n(39475);const i=`/${r.SI}/programs`,o=`/${r.SI}/admin`,a=`/${r.SI}/global-admin`,s=`/${r.SI}/profile`,l=`${i}/:programId`,c=`${l}/configure`,u=`${l}/report`,d=`${l}/plan`,p=`${c}/supply-sheds`,h=`${p}/:supplyShedId/add`,f=`${c}/settings`,m=`${c}/data-scenarios`,g=`${c}/commodity-sources`,y=`${u}/kpi`,v=`${u}/ghgp`,b=`${u}/spatial-exploration`,_=`${u}/compare`,w=`${u}/export`,x=`${d}/plans`,k=`${x}/:planId`},41752:(e,t,n)=>{"use strict";n.d(t,{$c:()=>i,ai:()=>r,jx:()=>a,qZ:()=>o});const r={road:"mapbox://styles/mapbox/streets-v11",satellite:"mapbox://styles/mapbox/satellite-streets-v11",light:"mapbox://styles/mapbox/light-v10"},i={admin2:{label:"Admin 2 - Counties and Districts",url:"mapbox://greatozmen.455rmhu6",layer:"admin_2_geoboundaries_cgazgeojsonld",collection_id:"admin_2_geoboundaries_cgaz",name_getter:e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t.shapeName}},admin1:{label:"Admin 1 - States and Provinces",url:"mapbox://greatozmen.2hcayjrq",layer:"admin_1_geoboundaries_cgazgeojsonld",collection_id:"admin_1_geoboundaries_cgaz",name_getter:e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t.shapeName}},admin0:{label:"Admin 0 - Countries",url:"mapbox://greatozmen.1aon9cvn",layer:"admin_0_geoboundaries_cgazgeojsonld",collection_id:"admin_0_geoboundaries_cgaz",name_getter:e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t.ISO_CODE}},huc8:{label:"Watersheds - HUC8",url:"mapbox://greatozmen.6uz9v1mg",layer:"watersheds_usgs_wbd_huc_8geojsonld",collection_id:"watersheds_usgs_wbd_huc_8",name_getter:e=>{var t;return`HUC8 - ${null===(t=e.properties)||void 0===t?void 0:t.name}`}},huc10:{label:"Watersheds - HUC10",url:"mapbox://greatozmen.7htxkuf7",layer:"watersheds_usgs_wbd_huc_10geojsonld",collection_id:"watersheds_usgs_wbd_huc_10",name_getter:e=>{var t;return`HUC 10 - ${null===(t=e.properties)||void 0===t?void 0:t.name}`}}},o=["ghg_reductions","soc_removals","net_ghg"],a=[...o,"ef_reductions"]},87295:(e,t,n)=>{"use strict";n.d(t,{$F:()=>d,Ai:()=>p,MA:()=>c,T1:()=>u,Wy:()=>s,eo:()=>l});var r=n(26618),i=n.n(r),o=n(73042),a=n(77392);const s=e=>{const t=i()().getUnit(e);return{unit:t.abbr,unitName:{singular:t.unit.name.singular.toLowerCase(),plural:t.unit.name.plural.toLowerCase(),abbr:t.abbr}}},l=e=>{let{unit1:t,unit2:n,subUnit1:r,subUnit2:i}=e;const a=s(t),l=s(n),c=(0,o.$K)(r)?` ${r}`:"",u=(0,o.$K)(i)?` ${i}`:"";return{unit:`${a.unit}/${l.unit}`,unitName:{singular:`${a.unitName.singular}${c} / ${l.unitName.singular}${u}`,plural:`${a.unitName.plural}${c} / ${l.unitName.singular}${u}`,abbr:`${a.unitName.abbr}${c} / ${l.unitName.abbr}${u}`}}},c=(e,t)=>{var n;return{value:null!==(n=(0,a.tA)(i()(e).from("kg").to("mt"),i()(1).from("m2").to(t)))&&void 0!==n?n:0,unit:l({unit1:"mt",unit2:t}).unit}},u=(e,t)=>{var n;return{value:null!==(n=(0,a.tA)(e,i()(1).from("m2").to(t)))&&void 0!==n?n:0,unit:l({unit1:"kg",unit2:t}).unit}},d=e=>{let{value:t,from:n,to:r}=e;return{value:i()(null!==t&&void 0!==t?t:0).from(n).to(r),unit:s(r).unit}},p=e=>{let{value:t,from:n,to:r}=e;return i()(t).from(n).to(r)}},6402:(e,t,n)=>{"use strict";n.d(t,{Kr:()=>s,O:()=>a,_H:()=>l});var r=n(75820),i=n(49346),o=n(8854);const a=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return`${e===i.Ug.MetricUnits?"hectare":"acre"}${t?"s":""}`};function s(e){let{area:t,measurement:n,abbreviated:s=!1}=e;return`${(0,o.wH)((0,r.En)(n,i.Ug.ImperialUnits,null!==t&&void 0!==t?t:0))} ${s?n:a(n)}`}const l=Intl.NumberFormat("en").format},64095:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,ar:()=>d,d5:()=>l,pl:()=>a,tW:()=>c,vy:()=>u,xG:()=>o});var r=n(73042),i=n(82079);const o=Intl.NumberFormat("en",{style:"currency",currency:"USD"}).format,a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{notation:"compact"};return Number.isFinite(e)?Intl.NumberFormat("en",{notation:t.notation,..."standard"===t.notation?{maximumFractionDigits:0}:{}}).format(e):i.QE},s=e=>"-0"===e?"0":e,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Number.isFinite(e))return i.QE;const{sigDigits:n=i.$s,maxFractionDigits:r=i.Fm,forceFormatFunction:o}=t;switch(null!==o&&void 0!==o?o:Math.abs(e)<1?"precision":"fixed"){case"fixed":return s(e.toLocaleString("en",{maximumFractionDigits:n}));case"precision":{const t=e.toLocaleString("fullwide",{useGrouping:!1,maximumSignificantDigits:n});return s(Number(t).toLocaleString("fullwide",{maximumFractionDigits:r}))}}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return Number.isFinite(e)?Math.abs(e)<1e3?l(e,t):a(e,t):i.QE},u=(e,t)=>Number.isFinite(e)?`${c(100*e,t)}%`:i.QE,d=e=>{const{unit:t,value:n}=e;if("unit-interval"!==t||!Number.isFinite(n))return n;const r=10**i.$s;return Math.round(100*n*r)/r},p=e=>(0,r.$K)(e)&&Number.isFinite(e)?`\xb1 ${l(e)}`:i.QE},77392:(e,t,n)=>{"use strict";n.d(t,{AG:()=>h,FY:()=>l,Gr:()=>f,Ji:()=>p,V9:()=>y,WG:()=>s,Wl:()=>u,aW:()=>m,sq:()=>g,tA:()=>d,xb:()=>c});var r=n(78494),i=n.n(r),o=n(14291),a=n(73042);const s=e=>(0,a.kK)(e)||(0,a.ke)(e),l=e=>!s(e),c=e=>s(e)||(e=>(0,a.kK)(e)||(0,a.yD)(e)||(0,a.Qr)(e))(e),u=e=>(t,n)=>[...e.slice(0,t),n,...e.slice(t+1)],d=(e,t)=>{if((0,a.hj)(e)&&(0,a.hj)(t)){const n=e/t;return isFinite(n)?n:null}return null},p=e=>Object.values(e).filter(a.$K),h=(e,t,n)=>(0,a.$K)(e)?t(e):n,f=(e,t)=>h(e,t,null);function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i()(e,((e,n)=>({...e,[n]:t})),{})}const g=e=>(0,a.$K)(e)?e:[],y=(e,t)=>(0,o.Os)(e).find((n=>e[n]===t))},97463:(e,t,n)=>{"use strict";var r=n(18178),i=n(22297),o=n(77140),a=n(19160),s=n.n(a),l=n(33094),c=n(93240),u=n(45581),d=n(36777),p=n(37881),h=n(55927),f=n(30057),m=n(93686),g=n(97714),y=n(62793),v=n(44289),b=n(39965),_=n(34680),w=n(5651);const x=e=>{let{changeCurrentStep:t}=e;const n=(0,f.YB)(),r=(0,h.T)(),i=(0,h.C)((e=>e.helpers.asyncStatuses)),o=i[b.jB.parseUploadedFields].status===b.qb.Pending,a=i[b.jB.uploadingFieldsToBackend].status===b.qb.Pending,s=(0,h.C)(_.yb);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"add-new-fields-container",children:(0,w.jsx)(v.Z,{id:"map-upload-kml",accept:".kml,.kmz,.zip",multiple:!0,onChange:e=>{r((0,m.uh)(e,s))},disabled:o||a,isUploading:o})}),(0,w.jsxs)(d.bZ,{severity:"info",children:[(0,w.jsx)(d.ZT,{variant:"body2",children:n.formatMessage({id:"You can upload .kml, .kmz or .shp files.",defaultMessage:"You can upload .kml, .kmz or .shp files."})}),(0,w.jsx)(d.ZT,{variant:"body2",children:n.formatMessage({id:"If are uploading .shp files, zip archive them before sending and make sure the archive contains the following files extensions: .shp, .shx and .dbf.",defaultMessage:"If are uploading .shp files, zip archive them before sending and make sure the archive contains the following files extensions: .shp, .shx and .dbf."})})]}),(0,w.jsx)("div",{className:"new-fields-nav-container",children:(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:()=>t("add-fields"),children:n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})})})]})};var k=n(22221),C=n(45718),S=n(22168),M=n(62104);const T=e=>{let{title:t,subtitle:n,icon:r,iconClassName:i,onClick:o,hasFarms:a}=e;return(0,w.jsxs)(d.zx,{onClick:o,variant:"outlined",color:"secondary",className:s()("global-bordered-container add-fields-option",{[i]:!0,farmless:!a}),sx:{textAlign:"left"},children:[(0,w.jsx)("div",{className:`icon-container ${i}`,children:r}),(0,w.jsxs)("div",{className:"text-container",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",fontSize:"body1",children:t}),n&&(0,w.jsx)(d.ZT,{fontSize:"small",color:"secondary",children:n})]})]})},E=e=>{var t;let{changeCurrentStep:n}=e;const i=(0,f.YB)(),{isWorkspaceMrv:o}=(0,M.c)(),a=(0,h.T)(),s=(0,h.C)(S.Kn),l=(0,h.C)(_.zq),c=(0,r.useCallback)((()=>{const e=document.querySelector(".search-location-button");if(!e)return void(0,C.e)("Tried to draw fields without the location button on the map");e.click();const t=document.querySelector("#search-on-map-btn");t&&t.click(),n("search-location"),a((0,y.hT)(!1))}),[]),u=(0,r.useCallback)((()=>{n("select-files-to-upload"),a((0,y.hT)(!1))}),[]),d=(0,r.useCallback)((()=>{a((0,b.qO)(b.iR.addNewField,!1)),setTimeout((()=>{a((0,y.hT)(!1)),a((0,b.qO)(b.iR.fmsIntegration,!0))}),0)}),[]),p=()=>{s||a((0,b.qO)(b.iR.addNewField,!0))};return(0,w.jsxs)("div",{className:"add-new-fields-container",children:[(!o||o&&!(null===l||void 0===l||null===(t=l.fms_options)||void 0===t||!t.length))&&(0,w.jsx)(T,{title:i.formatMessage({id:"importAFieldFromFarmManagementSystems",defaultMessage:"Import from farm management system"}),subtitle:"MyJohnDeere, Climate, AgriWebb, ...",iconClassName:"import",icon:(0,w.jsx)(k.v,{}),onClick:d,hasFarms:s}),(0,w.jsx)(T,{title:i.formatMessage({id:"uploadBoundary",defaultMessage:"Upload boundaries"}),subtitle:".KML or SHP",iconClassName:"upload",icon:(0,w.jsx)(k.oO,{}),onClick:()=>{p(),u()},hasFarms:s}),(0,w.jsx)(T,{title:i.formatMessage({id:"selectOrDrawAField",defaultMessage:"Select or draw fields on the map"}),iconClassName:"draw",icon:(0,w.jsx)(k.f7,{}),onClick:()=>{p(),c()},hasFarms:s})]})};function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}var I="undefined"===typeof window,O=function e(t){return Object.keys(t).forEach((function(n){t[n]&&"object"===typeof t[n]?e(t[n]):void 0===t[n]&&delete t[n]})),t},R=function(e){if(!I&&window.Intercom){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return window.Intercom.apply(null,[e].concat(n))}},j=(0,r.createContext)(void 0),D=function(e){return P({company_id:e.companyId,name:e.name,created_at:e.createdAt,plan:e.plan,monthly_spend:e.monthlySpend,user_count:e.userCount,size:e.size,website:e.website,industry:e.industry},e.customAttributes)},A=function(e){return{type:e.type,image_url:e.imageUrl}},N=function(e){return O(P({},{custom_launcher_selector:(t=e).customLauncherSelector,alignment:t.alignment,vertical_padding:t.verticalPadding,horizontal_padding:t.horizontalPadding,hide_default_launcher:t.hideDefaultLauncher,session_duration:t.sessionDuration,action_color:t.actionColor,background_color:t.backgroundColor},function(e){var t;return P({email:e.email,user_id:e.userId,created_at:e.createdAt,name:e.name,phone:e.phone,last_request_at:e.lastRequestAt,unsubscribed_from_emails:e.unsubscribedFromEmails,language_override:e.languageOverride,utm_campaign:e.utmCampaign,utm_content:e.utmContent,utm_medium:e.utmMedium,utm_source:e.utmSource,utm_term:e.utmTerm,avatar:e.avatar&&A(e.avatar),user_hash:e.userHash,company:e.company&&D(e.company),companies:null==(t=e.companies)?void 0:t.map(D)},e.customAttributes)}(e)));var t},F=function(e){var t=e.appId,n=e.autoBoot,i=void 0!==n&&n,o=e.autoBootProps,a=e.children,s=e.onHide,l=e.onShow,c=e.onUnreadCountChange,u=e.shouldInitialize,d=void 0===u?!I:u,p=e.apiBase,h=e.initializeDelay,f=(function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n])}(e,["appId","autoBoot","autoBootProps","children","onHide","onShow","onUnreadCountChange","shouldInitialize","apiBase","initializeDelay"]),(0,r.useRef)(!1)),m=(0,r.useRef)(!1),g=(0,r.useCallback)((function(e){if((window.Intercom||d)&&!f.current){var n=P({app_id:t},p&&{api_base:p},e&&N(e));window.intercomSettings=n,R("boot",n),f.current=!0}}),[p,t,d]);I||!d||m.current||(!function(e,t){void 0===t&&(t=0);var n=window,r=n.Intercom;if("function"===typeof r)r("reattach_activator"),r("update",n.intercomSettings);else{var i=document,o=function e(){e.c(arguments)};o.q=[],o.c=function(e){o.q.push(e)},n.Intercom=o;var a=function(){setTimeout((function(){var t=i.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://widget.intercom.io/widget/"+e;var n=i.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}),t)};"complete"===document.readyState?a():n.attachEvent?n.attachEvent("onload",a):n.addEventListener("load",a,!1)}}(t,h),s&&R("onHide",s),l&&R("onShow",l),c&&R("onUnreadCountChange",c),i&&g(o),m.current=!0);var y=(0,r.useCallback)((function(e,t){if(void 0===e&&(e="A function"),window.Intercom||d){if(f.current)return t();["'"+e+"' was called but Intercom has not booted yet. ","Please call 'boot' before calling '"+e+"' or ","set 'autoBoot' to true in the IntercomProvider."].join("")}}),[d]),v=(0,r.useCallback)((function(){f.current&&(R("shutdown"),delete window.intercomSettings,f.current=!1)}),[]),b=(0,r.useCallback)((function(){f.current&&(R("shutdown"),delete window.Intercom,delete window.intercomSettings,f.current=!1)}),[]),_=(0,r.useCallback)((function(){y("update",(function(){var e=(new Date).getTime();R("update",{last_requested_at:e})}))}),[y]),w=(0,r.useCallback)((function(e){y("update",(function(){if(e){var t=N(e);window.intercomSettings=P({},window.intercomSettings,t),R("update",t)}else _()}))}),[y,_]),x=(0,r.useCallback)((function(){y("hide",(function(){R("hide")}))}),[y]),k=(0,r.useCallback)((function(){y("show",(function(){return R("show")}))}),[y]),C=(0,r.useCallback)((function(){y("showMessages",(function(){R("showMessages")}))}),[y]),S=(0,r.useCallback)((function(e){y("showNewMessage",(function(){e?R("showNewMessage",e):R("showNewMessage")}))}),[y]),M=(0,r.useCallback)((function(){return y("getVisitorId",(function(){return R("getVisitorId")}))}),[y]),T=(0,r.useCallback)((function(e){y("startTour",(function(){R("startTour",e)}))}),[y]),E=(0,r.useCallback)((function(e,t){y("trackEvent",(function(){t?R("trackEvent",e,t):R("trackEvent",e)}))}),[y]),O=(0,r.useCallback)((function(e){return y("showArticle",(function(){R("showArticle",e)}))}),[y]),L=(0,r.useMemo)((function(){return{boot:g,shutdown:v,hardShutdown:b,update:w,hide:x,show:k,showMessages:C,showNewMessages:S,getVisitorId:M,startTour:T,trackEvent:E,showArticle:O}}),[g,v,b,w,x,k,C,S,M,T,E,O]);return(0,r.createElement)(j.Provider,{value:L},a)},z=function(){return(0,r.useContext)(j)},B=n(46386),U=n(91316),$=n(39475);const V=()=>{const{startTour:e,trackEvent:t}=z();return(0,w.jsx)(d.le,{type:"question-circled",onClick:()=>{t("draw-fields-tutorial"),e(213433)},fontSize:"body1",color:"secondary",className:"how-to-draw-your-fields-info"})},q=e=>{let{backToMainStep:t}=e;const n=(0,f.YB)(),{email:i}=(0,h.C)(S.dy),o=(0,h.T)(),a=(0,h.C)(m.HW),l=(0,r.useMemo)((()=>a.filter((e=>1e-4*e.properties.area>B.N))),[a]),c=(0,r.useMemo)((()=>(0,w.jsxs)("div",{className:"draw-buttons-container",children:[t&&(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:()=>t(),children:n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})}),(0,w.jsx)(d.zx,{id:"draw-a-new-polygon-field",variant:"outlined",color:"secondary",onClick:()=>u("polygon"),startIcon:(0,w.jsx)(k.$J,{}),children:n.formatMessage({id:"polygon",defaultMessage:"Polygon"})}),(0,w.jsx)(d.zx,{id:"draw-a-new-circle-field",variant:"outlined",color:"secondary",onClick:()=>u("circle"),startIcon:(0,w.jsx)(k.J$,{}),children:n.formatMessage({id:"circle",defaultMessage:"Circle"})})]})),[]),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polygon";o((0,y.hT)(!1)),o((0,y.bX)(!0,e))},p=$.default.intercomSettings&&(0,U.e)(i);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:s()("draw-fields-container"),children:[(0,w.jsxs)("div",{className:"how-to-draw-container",children:[n.formatMessage({id:"how-to-draw-field-instruction",defaultMessage:"Make sure you only outline the crop area in the field"}),p?(0,w.jsx)(V,{}):(0,w.jsx)(d.le,{fontSize:"body1",color:"secondary",type:"cross",className:"how-to-draw-your-fields-info"})]}),(0,w.jsx)("div",{className:"draw-field-info",children:c})]}),0!==l.length&&(0,w.jsx)(d.xu,{mt:2,children:(0,w.jsx)(d.bZ,{severity:"info",children:n.formatMessage({id:"tooBigDrawArea",defaultMessage:"The size of the {count, plural, one {field} other {fields}} you just drew is higher than expected for this area. Please make sure this boundary has no more than one field for correct analysis."},{count:l.length})})})]})};var Z=n(84917);const H=Z.ZP.span`
  padding: 7px;
  border-radius: 4px;
  display: inline;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
  &:not(:first-child) {
    margin-left: 4px;
  }

  &.actionable {
    cursor: pointer;
  }
`,G=e=>{let{backgroundColor:t="#fff",color:n="inherit",children:r,actionable:i,className:o}=e;return(0,w.jsx)(H,{className:s()(o,{"fluro-cp-badge":!0,actionable:i}),style:{backgroundColor:t,color:n},children:r})};var W=n(60548),Y=n(22983);const K=e=>{let{backToMainStep:t}=e;const n=(0,f.YB)(),i=(0,h.T)(),o=(0,h.C)(g.sX),a=(0,h.C)(g.Si);(0,r.useEffect)((function(){o.length||i((0,m.Hz)("draw-fields"))}),[o]);const s=(0,r.useCallback)((()=>i((0,m.Hz)("draw-fields"))),[]);return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",children:[(0,w.jsx)(d.xu,{display:"flex",className:"fields-legend",gap:1,flexWrap:"nowrap",children:!!a.length&&(0,w.jsx)(G,{backgroundColor:Y.Pi,color:"#fff",children:n.formatMessage({id:"BudgeSelectedFieldsNumber",defaultMessage:"Selected {fieldsNumber, plural, one {field} other {fields}} {fieldsNumber}"},{fieldsNumber:a.length})})}),(0,w.jsx)("div",{children:t&&(0,w.jsx)(d.zx,{id:"back-btn",variant:"outlined",color:"secondary",onClick:t,children:n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})})}),a.length?(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:4,children:[(0,w.jsx)(d.ZT,{color:"secondary",children:n.formatMessage({id:"{count} fields selected",defaultMessage:"{count} fields selected"},{count:a.length})}),(0,w.jsx)(d.zx,{id:"clear-selected-boundaries-btn",onClick:()=>{i((0,m.sh)([])),i((0,m.vJ)([],W.h.Checked,!1))},variant:"outlined",color:"secondary",children:n.formatMessage({id:"Reset selection",defaultMessage:"Reset selection"})}),(0,w.jsx)(d.zx,{id:"save-selected-boundaries-btn",onClick:()=>{i((0,m.Hz)("view-selected-boundaries"))},children:n.formatMessage({id:"BtnLabel.Next",defaultMessage:"Next"})})]}):(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,w.jsx)(d.ZT,{variant:"body1",color:"secondary",children:n.formatMessage({id:"Or",defaultMessage:"Or"})}),(0,w.jsxs)(d.zx,{color:"secondary",variant:"outlined",endIcon:(0,w.jsx)(k.f7,{fill:"#000"}),onClick:s,children:[n.formatMessage({id:"Draw fields",defaultMessage:"Draw fields"})," "]})]})]})};function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function ee(e){return ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e,t){if(t&&("object"===ee(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ie(e,t){return ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ie(e,t)}function oe(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}var ae=n(28344);function se(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function le(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function ce(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function ue(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?i="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=e.displayName||e.name,a="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==r?"\n  "+r:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=se,t.componentWillReceiveProps=le),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ce;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}se.__suppressDeprecationWarning=!0,le.__suppressDeprecationWarning=!0,ce.__suppressDeprecationWarning=!0;var de=n(65900),pe=n(97671);function he(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===o&&("number"!==typeof n&&"number"!==typeof a||n===a)||(r(i),l>=0&&l===s&&c())}var fe=n(94750);function me(e,t){if(null==e)return{};var n,r,i=(0,fe.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ge=n(47781),ye=n.n(ge),ve=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;X(this,e),(0,ae.Z)(this,"_cellSizeAndPositionData",{}),(0,ae.Z)(this,"_lastMeasuredIndex",-1),(0,ae.Z)(this,"_lastBatchedIndex",-1),(0,ae.Z)(this,"_cellCount",void 0),(0,ae.Z)(this,"_cellSizeGetter",void 0),(0,ae.Z)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return Q(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(o),l=s.offset,c=l-r+s.size;switch(n){case"start":a=l;break;case"end":a=c;break;case"center":a=l-(r-s.size)/2;break;default:a=Math.max(c,Math.min(l,i))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,i=this._findNearestCell(n),o=this.getSizeAndPositionOfCell(i);n=o.offset+o.size;for(var a=i;n<r&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:i,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===n)return r;i<n?t=r+1:i>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),be=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},_e=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?be():n,i=me(t,["maxScrollSize"]);X(this,e),(0,ae.Z)(this,"_cellSizeAndPositionManager",void 0),(0,ae.Z)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new ve(i),this._maxScrollSize=r}return Q(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;i=this._safeOffsetToOffset({containerSize:r,offset:i});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:i,targetIndex:o});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(o*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(r-t))}}]),e}();function we(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==Object.keys(t).length||o.some((function(e){var n=t[e],r=i[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=i,a&&s&&r(i)}}function xe(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,p=e.sizeJustIncreasedFromZero,h=e.updateScrollIndexCallback,f=n.getCellCount(),m=u>=0&&u<f;m&&(d!==s||p||!i||"number"===typeof t&&t!==i||c!==o||u!==a)?h(u):!m&&f>0&&(d<s||f<r)&&l>n.getTotalSize()-d&&h(f-1)}const ke=!("undefined"===typeof window||!window.document||!window.document.createElement);var Ce,Se;function Me(e){if((!Ce&&0!==Ce||e)&&ke){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ce=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ce}var Te,Ee,Pe=(Se="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||Se.webkitRequestAnimationFrame||Se.mozRequestAnimationFrame||Se.oRequestAnimationFrame||Se.msRequestAnimationFrame||function(e){return Se.setTimeout(e,1e3/60)},Ie=Se.cancelAnimationFrame||Se.webkitCancelAnimationFrame||Se.mozCancelAnimationFrame||Se.oCancelAnimationFrame||Se.msCancelAnimationFrame||function(e){Se.clearTimeout(e)},Oe=Pe,Le=Ie,Re=function(e){return Le(e.id)},je=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:Oe((function i(){Date.now()-n>=t?e.call():r.id=Oe(i)}))};return r};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne="observed",Fe="requested",ze=(Ee=Te=function(e){function t(e){var n;X(this,t),n=ne(this,re(t).call(this,e)),(0,ae.Z)(te(n),"_onGridRenderedMemoizer",we()),(0,ae.Z)(te(n),"_onScrollMemoizer",we(!1)),(0,ae.Z)(te(n),"_deferredInvalidateColumnIndex",null),(0,ae.Z)(te(n),"_deferredInvalidateRowIndex",null),(0,ae.Z)(te(n),"_recomputeScrollLeftFlag",!1),(0,ae.Z)(te(n),"_recomputeScrollTopFlag",!1),(0,ae.Z)(te(n),"_horizontalScrollBarSize",0),(0,ae.Z)(te(n),"_verticalScrollBarSize",0),(0,ae.Z)(te(n),"_scrollbarPresenceChanged",!1),(0,ae.Z)(te(n),"_scrollingContainer",void 0),(0,ae.Z)(te(n),"_childrenToDisplay",void 0),(0,ae.Z)(te(n),"_columnStartIndex",void 0),(0,ae.Z)(te(n),"_columnStopIndex",void 0),(0,ae.Z)(te(n),"_rowStartIndex",void 0),(0,ae.Z)(te(n),"_rowStopIndex",void 0),(0,ae.Z)(te(n),"_renderedColumnStartIndex",0),(0,ae.Z)(te(n),"_renderedColumnStopIndex",0),(0,ae.Z)(te(n),"_renderedRowStartIndex",0),(0,ae.Z)(te(n),"_renderedRowStopIndex",0),(0,ae.Z)(te(n),"_initialScrollTop",void 0),(0,ae.Z)(te(n),"_initialScrollLeft",void 0),(0,ae.Z)(te(n),"_disablePointerEventsTimeoutId",void 0),(0,ae.Z)(te(n),"_styleCache",{}),(0,ae.Z)(te(n),"_cellCache",{}),(0,ae.Z)(te(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),(0,ae.Z)(te(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),(0,ae.Z)(te(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),(0,ae.Z)(te(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var r=new _e({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new _e({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return oe(t,e),Q(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,o=e.rowIndex,a=void 0===o?this.props.scrollToRow:o,s=Ae({},this.props,{scrollToAlignment:n,scrollToColumn:i,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r;if(!(i<0)){this._debounceScrollEnded();var o=this.props,a=o.autoHeight,s=o.autoWidth,l=o.height,c=o.width,u=this.state.instanceProps,d=u.scrollbarSize,p=u.rowSizeAndPositionManager.getTotalSize(),h=u.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,h-c+d),n),m=Math.min(Math.max(0,p-l+d),i);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:Ne};a||(g.scrollTop=m),s||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:h,totalRowsHeight:p})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.scrollToColumn,s=o.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,i=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(Ae({},i,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(Ae({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,i=e.scrollLeft,o=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Ae({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof i&&i>=0||"number"===typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&l>0;o>=0&&d&&this._updateScrollLeftForScrollToColumn(),s>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.autoHeight,o=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,d=r.scrollToRow,p=r.width,h=this.state,f=h.scrollLeft,m=h.scrollPositionChangeReason,g=h.scrollTop,y=h.instanceProps;this._handleInvalidatedGridSize();var v=a>0&&0===e.columnCount||l>0&&0===e.rowCount;m===Fe&&(!o&&f>=0&&(f!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=f),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&s>0&&p>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):xe({cellSizeAndPositionManager:y.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:u,size:p,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):xe({cellSizeAndPositionManager:y.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:s,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var _=y.rowSizeAndPositionManager.getTotalSize(),w=y.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:w,totalRowsHeight:_})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Re(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,i=e.autoWidth,o=e.className,a=e.containerProps,s=e.containerRole,l=e.containerStyle,c=e.height,u=e.id,d=e.noContentRenderer,p=e.role,h=e.style,f=e.tabIndex,m=e.width,g=this.state,y=g.instanceProps,v=g.needToResetStyleCache,b=this._isScrolling(),_={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:i?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};v&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=y.columnSizeAndPositionManager.getTotalSize(),x=y.rowSizeAndPositionManager.getTotalSize(),k=x>c?y.scrollbarSize:0,C=w>m?y.scrollbarSize:0;C===this._horizontalScrollBarSize&&k===this._verticalScrollBarSize||(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=k,this._scrollbarPresenceChanged=!0),_.overflowX=w+k<=m?"hidden":"auto",_.overflowY=x+C<=c?"hidden":"auto";var S=this._childrenToDisplay,M=0===S.length&&c>0&&m>0;return r.createElement("div",(0,de.Z)({ref:this._setScrollingContainerRef},a,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,pe.Z)("ReactVirtualized__Grid",o),id:u,onScroll:this._onScroll,role:p,style:Ae({},_,{},h),tabIndex:f}),S.length>0&&r.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:Ae({width:t?"auto":w,height:x,maxWidth:w,maxHeight:x,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},l)},S),M&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,o=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,p=e.isScrollingOptOut,h=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,y=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:y}),_=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:g}),w=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:y}),x=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var k=l({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:h,startIndex:"number"===typeof b.start?b.start:0,stopIndex:"number"===typeof b.stop?b.stop:-1}),C=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:f,startIndex:"number"===typeof _.start?_.start:0,stopIndex:"number"===typeof _.stop?_.stop:-1}),S=k.overscanStartIndex,M=k.overscanStopIndex,T=C.overscanStartIndex,E=C.overscanStopIndex;if(o){if(!o.hasFixedHeight())for(var P=T;P<=E;P++)if(!o.has(P,0)){S=0,M=i-1;break}if(!o.hasFixedWidth())for(var I=S;I<=M;I++)if(!o.has(0,I)){T=0,E=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:S,columnStopIndex:M,deferredMeasurementCache:o,horizontalOffsetAdjustment:w,isScrolling:v,isScrollingOptOut:p,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:E,scrollLeft:y,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:x,visibleColumnIndices:b,visibleRowIndices:_}),this._columnStartIndex=S,this._columnStopIndex=M,this._rowStartIndex=T,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Re(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=je(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,o=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var o="".concat(r,"-").concat(i);this._styleCache[o]=e[o],n&&(this._cellCache[o]=t[o])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i,o,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),he({cellCount:a.prevColumnCount,cellSize:"number"===typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),he({cellCount:a.prevRowCount,cellSize:"number"===typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,Ae({},r,{},i,{},o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:Fe};return"number"===typeof n&&n>=0&&(i.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,i.scrollLeft=n),"number"===typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"===typeof n&&n>=0&&n!==t.scrollLeft||"number"===typeof r&&r>=0&&r!==t.scrollTop?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,i=e.scrollToAlignment,o=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=o<0?c:Math.min(c,o),d=l.rowSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&d>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-p,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,i=t._getCalculatedScrollLeft(e,n);return"number"===typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,i=e.scrollToAlignment,o=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=o<0?c:Math.min(c,o),d=l.columnSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&d>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:n-p,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,i=t._getCalculatedScrollTop(e,n);return"number"===typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:i}):{}}}]),t}(r.PureComponent),(0,ae.Z)(Te,"propTypes",null),Ee);(0,ae.Z)(ze,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,p=e.rowStartIndex,h=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,y=e.visibleRowIndices,v=[],b=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),_=!l&&!b,w=p;w<=h;w++)for(var x=d.getSizeAndPositionOfCell(w),k=i;k<=o;k++){var C=r.getSizeAndPositionOfCell(k),S=k>=g.start&&k<=g.stop&&w>=y.start&&w<=y.stop,M="".concat(w,"-").concat(k),T=void 0;_&&f[M]?T=f[M]:a&&!a.has(w,k)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:x.size,left:C.offset+s,position:"absolute",top:x.offset+m,width:C.size},f[M]=T);var E={columnIndex:k,isScrolling:l,isVisible:S,key:M,parent:u,rowIndex:w,style:T},P=void 0;!c&&!l||s||m?P=n(E):(t[M]||(t[M]=n(E)),P=t[M]),null!=P&&!1!==P&&v.push(P)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Me,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),ue(ze);const Be=ze;function Ue(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o+1)}}var $e,Ve;function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ze=(Ve=$e=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),(0,ae.Z)(te(n),"_columnStartIndex",0),(0,ae.Z)(te(n),"_columnStopIndex",0),(0,ae.Z)(te(n),"_rowStartIndex",0),(0,ae.Z)(te(n),"_rowStopIndex",0),(0,ae.Z)(te(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,i=t.disabled,o=t.mode,a=t.rowCount;if(!i){var s=n._getScrollState(),l=s.scrollToColumn,c=s.scrollToRow,u=n._getScrollState(),d=u.scrollToColumn,p=u.scrollToRow;switch(e.key){case"ArrowDown":p="cells"===o?Math.min(p+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===o?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===o?Math.min(d+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":p="cells"===o?Math.max(p-1,0):Math.max(n._rowStartIndex-1,0)}d===l&&p===c||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:p}))}})),(0,ae.Z)(te(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=i,n._rowStopIndex=o})),n}return oe(t,e),Q(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,i=this._getScrollState(),o=i.scrollToColumn,a=i.scrollToRow;return r.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:a}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,i=r.isControlled,o=r.onScrollToChange;"function"===typeof o&&o({scrollToColumn:t,scrollToRow:n}),i||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(r.PureComponent),(0,ae.Z)($e,"propTypes",null),Ve);(0,ae.Z)(Ze,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),ue(Ze);function He(e,t){var r,i="undefined"!==typeof(r="undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g).document&&r.document.attachEvent;if(!i){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,u="",d="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=r.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<p.length;m++)if(void 0!==f.style[p[m]+"AnimationName"]){u="-"+p[m].toLowerCase()+"-",d=h[m],c=!0;break}var g="resizeanim",y="@"+u+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",v=u+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,n){if(i)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var o=t.ownerDocument,a=r.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(v||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(o),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var u=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=u.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&s(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(ag){}}}}}var Ge,We;function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xe=(We=Ge=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),(0,ae.Z)(te(n),"_parentNode",void 0),(0,ae.Z)(te(n),"_autoSizer",void 0),(0,ae.Z)(te(n),"_window",void 0),(0,ae.Z)(te(n),"_detectElementResize",void 0),(0,ae.Z)(te(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,p=o-u-d,h=a-l-c;(!t&&n.state.height!==p||!r&&n.state.width!==h)&&(n.setState({height:o-u-d,width:a-l-c}),i({height:o,width:a}))}})),(0,ae.Z)(te(n),"_setRef",(function(e){n._autoSizer=e})),n}return oe(t,e),Q(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=He(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,s=this.state,l=s.height,c=s.width,u={overflow:"visible"},d={};return i||(u.height=0,d.height=l),o||(u.width=0,d.width=c),r.createElement("div",{className:n,ref:this._setRef,style:Ke({},u,{},a)},t(d))}}]),t}(r.Component),(0,ae.Z)(Ge,"propTypes",null),We);(0,ae.Z)(Xe,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Je,Qe,et=(Qe=Je=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"_child",void 0),(0,ae.Z)(te(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,o=e.parent,a=e.rowIndex,s=void 0===a?n.props.index||0:a,l=n._getCellMeasurements(),c=l.height,u=l.width;c===t.getHeight(s,i)&&u===t.getWidth(s,i)||(t.set(s,i,u,c),o&&"function"===typeof o.recomputeGridSize&&o.recomputeGridSize({columnIndex:i,rowIndex:s}))})),(0,ae.Z)(te(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return oe(t,e),Q(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"===typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,i.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var o=Math.ceil(t.offsetHeight),a=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:o,width:a}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,o=e.rowIndex,a=void 0===o?this.props.index||0:o;if(!t.has(a,r)){var s=this._getCellMeasurements(),l=s.height,c=s.width;t.set(a,r,c,l),i&&"function"===typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}]),t}(r.PureComponent),(0,ae.Z)(Je,"propTypes",null),Qe);(0,ae.Z)(et,"__internalCellMeasurerFlag",!1);var tt=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};X(this,e),(0,ae.Z)(this,"_cellHeightCache",{}),(0,ae.Z)(this,"_cellWidthCache",{}),(0,ae.Z)(this,"_columnWidthCache",{}),(0,ae.Z)(this,"_rowHeightCache",{}),(0,ae.Z)(this,"_defaultHeight",void 0),(0,ae.Z)(this,"_defaultWidth",void 0),(0,ae.Z)(this,"_minHeight",void 0),(0,ae.Z)(this,"_minWidth",void 0),(0,ae.Z)(this,"_keyMapper",void 0),(0,ae.Z)(this,"_hasFixedHeight",void 0),(0,ae.Z)(this,"_hasFixedWidth",void 0),(0,ae.Z)(this,"_columnCount",0),(0,ae.Z)(this,"_rowCount",0),(0,ae.Z)(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),(0,ae.Z)(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,i=n.defaultWidth,o=n.fixedHeight,a=n.fixedWidth,s=n.keyMapper,l=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===o,this._hasFixedWidth=!0===a,this._minHeight=l||0,this._minWidth=c||0,this._keyMapper=s||nt,this._defaultHeight=Math.max(this._minHeight,"number"===typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"===typeof i?i:100)}return Q(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var i=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[i]=r,this._cellWidthCache[i]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var i=this._keyMapper(0,t);this._columnWidthCache[i]=n}if(!this._hasFixedHeight){for(var o=0,a=0;a<this._columnCount;a++)o=Math.max(o,this.getHeight(e,a));var s=this._keyMapper(e,0);this._rowHeightCache[s]=o}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function nt(e,t){return"".concat(e,"-").concat(t)}function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot="observed",at="requested",st=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),(0,ae.Z)(te(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),(0,ae.Z)(te(n),"_onSectionRenderedMemoizer",we()),(0,ae.Z)(te(n),"_onScrollMemoizer",we(!1)),(0,ae.Z)(te(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),(0,ae.Z)(te(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),(0,ae.Z)(te(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,o=e.scrollToCell,a=e.width,s=n.state,l=s.scrollLeft,c=s.scrollTop;if(o>=0){var u=t.getScrollPositionForCell({align:i,cellIndex:o,height:r,scrollLeft:l,scrollTop:c,width:a});u.scrollLeft===l&&u.scrollTop===c||n._setScrollPosition(u)}})),(0,ae.Z)(te(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,i=t.height,o=t.isScrollingChange,a=t.width,s=n._scrollbarSize,l=r.getTotalSize(),c=l.height,u=l.width,d=Math.max(0,Math.min(u-a+s,e.target.scrollLeft)),p=Math.max(0,Math.min(c-i+s,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==p){var h=e.cancelable?ot:at;n.state.isScrolling||o(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:p})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:p,totalWidth:u,totalHeight:c})}})),n._scrollbarSize=Me(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return oe(t,e),Q(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Me(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||i>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,i=n.scrollToAlignment,o=n.scrollToCell,a=n.width,s=this.state,l=s.scrollLeft,c=s.scrollPositionChangeReason,u=s.scrollTop;c===at&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,i=e.cellLayoutManager,o=e.className,a=e.height,s=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,u=e.style,d=e.verticalOverscanSize,p=e.width,h=this.state,f=h.isScrolling,m=h.scrollLeft,g=h.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var y=i.getTotalSize(),v=y.height,b=y.width,_=Math.max(0,m-s),w=Math.max(0,g-d),x=Math.min(b,m+p+s),k=Math.min(v,g+a+d),C=a>0&&p>0?i.cellRenderers({height:k-w,isScrolling:f,width:x-_,x:_,y:w}):[],S={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},M=v>a?this._scrollbarSize:0,T=b>p?this._scrollbarSize:0;return S.overflowX=b+M<=p?"hidden":"auto",S.overflowY=v+T<=a?"hidden":"auto",r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,pe.Z)("ReactVirtualized__Collection",o),id:l,onScroll:this._onScroll,role:"grid",style:it({},S,{},u),tabIndex:0},n>0&&r.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:v,maxHeight:v,maxWidth:b,overflow:"hidden",pointerEvents:f?"none":"",width:b}},C),0===n&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:at};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:at}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:at}}}]),t}(r.PureComponent);(0,ae.Z)(st,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),st.propTypes={},ue(st);const lt=st;var ct=function(){function e(t){var n=t.height,r=t.width,i=t.x,o=t.y;X(this,e),this.height=n,this.width=r,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return Q(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ut=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;X(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Q(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,i=e.y,o={};return this.getSections({height:t,width:n,x:r,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),Object.keys(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,i=e.y,o=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),l=Math.floor((i+t-1)/this._sectionSize),c=[],u=o;u<=a;u++)for(var d=s;d<=l;d++){var p="".concat(u,".").concat(d);this._sections[p]||(this._sections[p]=new ct({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[p])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function dt(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=r,l=s-o+i;switch(n){case"start":return s;case"end":return l;case"center":return s-(o-i)/2;default:return Math.max(l,Math.min(s,a))}}var pt=function(e){function t(e,n){var r;return X(this,t),(r=ne(this,re(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(te(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(te(r)),r}return oe(t,e),Q(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,de.Z)({},this.props);return r.createElement(lt,(0,de.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,i=[],o=new ut(r),a=0,s=0,l=0;l<t;l++){var c=n({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n        x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),s=Math.max(s,c.x+c.width),i[l]=c,o.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:i,height:a,sectionManager:o,width:s}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,i=e.scrollLeft,o=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var l=this._cellMetadata[n];i=dt({align:t,cellOffset:l.x,cellSize:l.width,containerSize:a,currentOffset:i,targetIndex:n}),o=dt({align:t,cellOffset:l.y,cellSize:l.height,containerSize:r,currentOffset:o,targetIndex:n})}return{scrollLeft:i,scrollTop:o}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,i=e.width,o=e.x,a=e.y,s=this.props,l=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:i,x:o,y:a}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(r.PureComponent);(0,ae.Z)(pt,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map((function(e){var i=r({index:e}),a={index:e,isScrolling:o,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return o?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),pt.propTypes={};var ht=function(e){function t(e,n){var r;return X(this,t),(r=ne(this,re(t).call(this,e,n)))._registerChild=r._registerChild.bind(te(r)),r}return oe(t,e),Q(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,o=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&i===e.columnCount&&o===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,o=e.width,a=r||1,s=n?Math.min(n,o):o,l=o/i;return l=Math.max(a,l),l=Math.min(s,l),l=Math.floor(l),t({adjustedWidth:Math.min(o,l*i),columnWidth:l,getColumnWidth:function(){return l},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!==typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(r.PureComponent);ht.propTypes={};function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mt(e,t){if(e){if("string"===typeof e)return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}function gt(e){return function(e){if(Array.isArray(e))return ft(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var yt=function(e){function t(e,n){var r;return X(this,t),(r=ne(this,re(t).call(this,e,n)))._loadMoreRowsMemoizer=we(),r._onRowsRendered=r._onRowsRendered.bind(te(r)),r._registerChild=r._registerChild.bind(te(r)),r}return oe(t,e),Q(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=we(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)})({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,i=this.props,o=i.isRowLoaded,a=i.minimumBatchSize,s=i.rowCount,l=i.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],s=null,l=null,c=i;c<=o;c++){t({index:c})?null!==l&&(a.push({startIndex:s,stopIndex:l}),s=l=null):(l=c,null===s&&(s=c))}if(null!==l){for(var u=Math.min(Math.max(l,s+n-1),r-1),d=l+1;d<=u&&!t({index:d});d++)l=d;a.push({startIndex:s,stopIndex:l})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+1<n&&p.startIndex>0;){var h=p.startIndex-1;if(t({index:h}))break;p.startIndex=h}return a}({isRowLoaded:o,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(s-1,t+l)}),u=(n=[]).concat.apply(n,gt(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(r.PureComponent);(0,ae.Z)(yt,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),yt.propTypes={};var vt,bt,_t=(bt=vt=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"Grid",void 0),(0,ae.Z)(te(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,i=e.style,o=e.isScrolling,a=e.isVisible,s=e.key,l=n.props.rowRenderer,c=Object.getOwnPropertyDescriptor(i,"width");return c&&c.writable&&(i.width="100%"),l({index:r,style:i,isScrolling:o,isVisible:a,key:s,parent:t})})),(0,ae.Z)(te(n),"_setRef",(function(e){n.Grid=e})),(0,ae.Z)(te(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})})),(0,ae.Z)(te(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:o})})),n}return oe(t,e),Q(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,i=e.scrollToIndex,o=e.width,a=(0,pe.Z)("ReactVirtualized__List",t);return r.createElement(Be,(0,de.Z)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:a,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:i}))}}]),t}(r.PureComponent),(0,ae.Z)(vt,"propTypes",null),bt);function wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||mt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(0,ae.Z)(_t,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Ue,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const xt={ge:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>=0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>=r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=t-1;t<=n;){var a=t+n>>>1;i(e[a],r)<0?(o=a,t=a+1):n=a-1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1;e[o]<r?(i=o,t=o+1):n=o-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},le:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=t-1;t<=n;){var a=t+n>>>1;i(e[a],r)<=0?(o=a,t=a+1):n=a-1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1;e[o]<=r?(i=o,t=o+1):n=o-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(;t<=n;){var o=t+n>>>1,a=i(e[o],r);if(0===a)return o;a<=0?t=o+1:n=o-1}return-1}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(;t<=n;){var i=t+n>>>1,o=e[i];if(o===r)return i;o<=r?t=i+1:n=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function kt(e,t,n,r,i){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Ct=kt.prototype;function St(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Mt(e,t){var n=Dt(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Tt(e,t){var n=e.intervals([]);n.push(t),Mt(e,n)}function Et(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Mt(e,n),1)}function Pt(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=n(e[r]);if(i)return i}}function It(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=n(e[r]);if(i)return i}}function Ot(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function Lt(e,t){return e-t}function Rt(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function jt(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function Dt(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(Lt);var r=t[t.length>>1],i=[],o=[],a=[];for(n=0;n<e.length;++n){var s=e[n];s[1]<r?i.push(s):r<s[0]?o.push(s):a.push(s)}var l=a,c=a.slice();return l.sort(Rt),c.sort(jt),new kt(r,Dt(i),Dt(o),l,c)}function At(e){this.root=e}Ct.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Ct.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Tt(this,e):this.left.insert(e):this.left=Dt([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Tt(this,e):this.right.insert(e):this.right=Dt([e]);else{var n=xt.ge(this.leftPoints,e,Rt),r=xt.ge(this.rightPoints,e,jt);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Ct.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Et(this,e):2===(o=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Et(this,e):2===(o=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var i=this.left,o=this.right;n.count-=r.count,n.right=r.left,r.left=i,r.right=o}St(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?St(this,this.left):St(this,this.right);return 1}for(i=xt.ge(this.leftPoints,e,Rt);i<this.leftPoints.length&&this.leftPoints[i][0]===e[0];++i)if(this.leftPoints[i]===e){this.count-=1,this.leftPoints.splice(i,1);for(o=xt.ge(this.rightPoints,e,jt);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1}return 0},Ct.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return Pt(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return It(this.rightPoints,e,t)}return Ot(this.leftPoints,t)},Ct.queryInterval=function(e,t,n){var r;if(e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n)))return r;if(t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return t<this.mid?Pt(this.leftPoints,t,n):e>this.mid?It(this.rightPoints,e,n):Ot(this.leftPoints,n)};var Nt=At.prototype;Nt.insert=function(e){this.root?this.root.insert(e):this.root=new kt(e[0],null,null,[e],[e])},Nt.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Nt.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Nt.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Nt,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Nt,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ft,zt,Bt=function(){function e(){var t;X(this,e),(0,ae.Z)(this,"_columnSizeMap",{}),(0,ae.Z)(this,"_intervalTree",t&&0!==t.length?new At(Dt(t)):new At(null)),(0,ae.Z)(this,"_leftMap",{})}return Q(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=wt(e,3),i=t[0],o=(t[1],t[2]);return n(o,r._leftMap[o],i)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,o=i[t];i[t]=void 0===o?n+r:Math.max(o,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vt=(zt=Ft=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"state",{isScrolling:!1,scrollTop:0}),(0,ae.Z)(te(n),"_debounceResetIsScrollingId",void 0),(0,ae.Z)(te(n),"_invalidateOnUpdateStartIndex",null),(0,ae.Z)(te(n),"_invalidateOnUpdateStopIndex",null),(0,ae.Z)(te(n),"_positionCache",new Bt),(0,ae.Z)(te(n),"_startIndex",null),(0,ae.Z)(te(n),"_startIndexMemoized",null),(0,ae.Z)(te(n),"_stopIndex",null),(0,ae.Z)(te(n),"_stopIndexMemoized",null),(0,ae.Z)(te(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),(0,ae.Z)(te(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),(0,ae.Z)(te(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===i&&(n._debounceResetIsScrolling(),n.state.scrollTop!==i&&n.setState({isScrolling:!0,scrollTop:i}))})),n}return oe(t,e),Q(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Bt,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Bt,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Re(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.autoHeight,o=n.cellCount,a=n.cellMeasurerCache,s=n.cellRenderer,l=n.className,c=n.height,u=n.id,d=n.keyMapper,p=n.overscanByPixels,h=n.role,f=n.style,m=n.tabIndex,g=n.width,y=n.rowDirection,v=this.state,b=v.isScrolling,_=v.scrollTop,w=[],x=this._getEstimatedTotalHeight(),k=this._positionCache.shortestColumnSize,C=this._positionCache.count,S=0;if(this._positionCache.range(Math.max(0,_-p),c+2*p,(function(n,r,i){var o;"undefined"===typeof e?(S=n,e=n):(S=Math.min(S,n),e=Math.max(e,n)),w.push(s({index:n,isScrolling:b,key:d(n),parent:t,style:(o={height:a.getHeight(n)},(0,ae.Z)(o,"ltr"===y?"left":"right",r),(0,ae.Z)(o,"position","absolute"),(0,ae.Z)(o,"top",i),(0,ae.Z)(o,"width",a.getWidth(n)),o)}))})),k<_+c+p&&C<o)for(var M=Math.min(o-C,Math.ceil((_+c+p-k)/a.defaultHeight*g/a.defaultWidth)),T=C;T<C+M;T++)e=T,w.push(s({index:T,isScrolling:b,key:d(T),parent:this,style:{width:a.getWidth(T)}}));return this._startIndex=S,this._stopIndex=e,r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,pe.Z)("ReactVirtualized__Masonry",l),id:u,onScroll:this._onScroll,role:h,style:$t({boxSizing:"border-box",direction:"ltr",height:i?"auto":c,overflowX:"hidden",overflowY:x<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},r.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:x,maxWidth:"100%",maxHeight:x,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"}},w))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"===typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Re(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=je(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,i=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,i,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,i=n.cellPositioner,o=e;o<=t;o++){var a=i(o),s=a.left,l=a.top;this._positionCache.setPosition(o,s,l,r.getHeight(o))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(r.PureComponent),(0,ae.Z)(Ft,"propTypes",null),zt);function qt(){}(0,ae.Z)(Vt,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:qt,onScroll:qt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});ue(Vt);var Zt=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};X(this,e),(0,ae.Z)(this,"_cellMeasurerCache",void 0),(0,ae.Z)(this,"_columnIndexOffset",void 0),(0,ae.Z)(this,"_rowIndexOffset",void 0),(0,ae.Z)(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),(0,ae.Z)(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,i=n.columnIndexOffset,o=void 0===i?0:i,a=n.rowIndexOffset,s=void 0===a?0:a;this._cellMeasurerCache=r,this._columnIndexOffset=o,this._rowIndexOffset=s}return Q(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wt=function(e){function t(e,n){var i;X(this,t),i=ne(this,re(t).call(this,e,n)),(0,ae.Z)(te(i),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),(0,ae.Z)(te(i),"_deferredInvalidateColumnIndex",null),(0,ae.Z)(te(i),"_deferredInvalidateRowIndex",null),(0,ae.Z)(te(i),"_bottomLeftGridRef",(function(e){i._bottomLeftGrid=e})),(0,ae.Z)(te(i),"_bottomRightGridRef",(function(e){i._bottomRightGrid=e})),(0,ae.Z)(te(i),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=me(e,["rowIndex"]),o=i.props,a=o.cellRenderer,s=o.fixedRowCount;return t===o.rowCount-s?r.createElement("div",{key:n.key,style:Gt({},n.style,{height:20})}):a(Gt({},n,{parent:te(i),rowIndex:t+s}))})),(0,ae.Z)(te(i),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,r=me(e,["columnIndex","rowIndex"]),o=i.props,a=o.cellRenderer,s=o.fixedColumnCount,l=o.fixedRowCount;return a(Gt({},r,{columnIndex:t+s,parent:te(i),rowIndex:n+l}))})),(0,ae.Z)(te(i),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=me(e,["columnIndex"]),o=i.props,a=o.cellRenderer,s=o.columnCount,l=o.fixedColumnCount;return t===s-l?r.createElement("div",{key:n.key,style:Gt({},n.style,{width:20})}):a(Gt({},n,{columnIndex:t+l,parent:te(i)}))})),(0,ae.Z)(te(i),"_columnWidthRightGrid",(function(e){var t=e.index,n=i.props,r=n.columnCount,o=n.fixedColumnCount,a=n.columnWidth,s=i.state,l=s.scrollbarSize;return s.showHorizontalScrollbar&&t===r-o?l:"function"===typeof a?a({index:t+o}):a})),(0,ae.Z)(te(i),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;i.setState({scrollLeft:t,scrollTop:n});var r=i.props.onScroll;r&&r(e)})),(0,ae.Z)(te(i),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,r=e.vertical,o=i.state,a=o.showHorizontalScrollbar,s=o.showVerticalScrollbar;if(t!==a||r!==s){i.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=i.props.onScrollbarPresenceChange;"function"===typeof l&&l({horizontal:t,size:n,vertical:r})}})),(0,ae.Z)(te(i),"_onScrollLeft",(function(e){var t=e.scrollLeft;i._onScroll({scrollLeft:t,scrollTop:i.state.scrollTop})})),(0,ae.Z)(te(i),"_onScrollTop",(function(e){var t=e.scrollTop;i._onScroll({scrollTop:t,scrollLeft:i.state.scrollLeft})})),(0,ae.Z)(te(i),"_rowHeightBottomGrid",(function(e){var t=e.index,n=i.props,r=n.fixedRowCount,o=n.rowCount,a=n.rowHeight,s=i.state,l=s.scrollbarSize;return s.showVerticalScrollbar&&t===o-r?l:"function"===typeof a?a({index:t+r}):a})),(0,ae.Z)(te(i),"_topLeftGridRef",(function(e){i._topLeftGrid=e})),(0,ae.Z)(te(i),"_topRightGridRef",(function(e){i._topRightGrid=e}));var o=e.deferredMeasurementCache,a=e.fixedColumnCount,s=e.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=s>0?new Zt({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:s}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Zt({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:s}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new Zt({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return oe(t,e),Q(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.fixedColumnCount,s=o.fixedRowCount,l=Math.max(0,n-a),c=Math.max(0,i-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,i=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),a=me(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,c=s.scrollTop;return r.createElement("div",{style:this._containerOuterStyle},r.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(a),this._renderTopRightGrid(Gt({},a,{onScroll:t,scrollLeft:l}))),r.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Gt({},a,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Gt({},a,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:i,scrollToRow:o,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"===typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,o=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,l=t.rowHeight,c=t.style,u=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,p=t.styleTopLeftGrid,h=t.styleTopRightGrid,f=t.width,m=e||o!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,y=e||s!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Gt({height:o,overflow:"visible",width:f},c)),(e||m||y)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:o-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Gt({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},u)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Gt({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||p!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Gt({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},p)),(e||g||h!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Gt({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},h)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=o,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=p,this._lastRenderedStyleTopRightGrid=h,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,i=e.fixedRowCount,o=e.rowCount,a=e.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!n)return null;var l=s?1:0,c=this._getBottomGridHeight(e),u=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,p=a?u+d:u,h=r.createElement(Be,(0,de.Z)({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,o-i)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:p}));return a?r.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Gt({},this._bottomLeftGridStyle,{height:c,width:u,overflowY:"hidden"})},h):h}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,i=e.fixedRowCount,o=e.rowCount,a=e.scrollToColumn,s=e.scrollToRow;return r.createElement(Be,(0,de.Z)({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,o-i),rowHeight:this._rowHeightBottomGrid,scrollToColumn:a-n,scrollToRow:s-i,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?r.createElement(Be,(0,de.Z)({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,i=e.fixedColumnCount,o=e.fixedRowCount,a=e.scrollLeft,s=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,u=l.scrollbarSize;if(!o)return null;var d=c?1:0,p=this._getTopGridHeight(e),h=this._getRightGridWidth(e),f=c?u:0,m=p,g=this._topRightGridStyle;s&&(m=p+f,g=Gt({},this._topRightGridStyle,{left:0}));var y=r.createElement(Be,(0,de.Z)({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-i)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:o,scrollLeft:a,style:g,tabIndex:null,width:h}));return s?r.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Gt({},this._topRightGridStyle,{height:p,width:h,overflowX:"hidden"})},y):y}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(r.PureComponent);(0,ae.Z)(Wt,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Wt.propTypes={},ue(Wt);var Yt=function(e){function t(e,n){var r;return X(this,t),(r=ne(this,re(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(te(r)),r}return oe(t,e),Q(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,o=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:o,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,o=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:i,scrollTop:o,scrollWidth:a})}}]),t}(r.PureComponent);Yt.propTypes={};function Kt(e){var t=e.className,n=e.columns,i=e.style;return r.createElement("div",{className:t,role:"row",style:i},n)}Kt.propTypes=null;const Xt={ASC:"ASC",DESC:"DESC"};function Jt(e){var t=e.sortDirection,n=(0,pe.Z)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Xt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Xt.DESC});return r.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===Xt.ASC?r.createElement("path",{d:"M7 14l5-5 5 5z"}):r.createElement("path",{d:"M7 10l5 5 5-5z"}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Qt(e){var t=e.dataKey,n=e.label,i=e.sortBy,o=e.sortDirection,a=i===t,s=[r.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof n?n:null},n)];return a&&s.push(r.createElement(Jt,{key:"SortIndicator",sortDirection:o})),s}function en(e){var t=e.className,n=e.columns,i=e.index,o=e.key,a=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,u=e.onRowRightClick,d=e.rowData,p=e.style,h={"aria-rowindex":i+1};return(a||s||l||c||u)&&(h["aria-label"]="row",h.tabIndex=0,a&&(h.onClick=function(e){return a({event:e,index:i,rowData:d})}),s&&(h.onDoubleClick=function(e){return s({event:e,index:i,rowData:d})}),l&&(h.onMouseOut=function(e){return l({event:e,index:i,rowData:d})}),c&&(h.onMouseOver=function(e){return c({event:e,index:i,rowData:d})}),u&&(h.onContextMenu=function(e){return u({event:e,index:i,rowData:d})})),r.createElement("div",(0,de.Z)({},h,{className:t,key:o,role:"row",style:p}),n)}Jt.propTypes={},Qt.propTypes=null,en.propTypes=null;var tn=function(e){function t(){return X(this,t),ne(this,re(t).apply(this,arguments))}return oe(t,e),t}(r.Component);function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,ae.Z)(tn,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"===typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Xt.ASC,flexGrow:0,flexShrink:1,headerRenderer:Qt,style:{}}),tn.propTypes={};var on=function(e){function t(e){var n;return X(this,t),(n=ne(this,re(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(te(n)),n._createRow=n._createRow.bind(te(n)),n._onScroll=n._onScroll.bind(te(n)),n._onSectionRendered=n._onSectionRendered.bind(te(n)),n._setRef=n._setRef.bind(te(n)),n}return oe(t,e),Q(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,i.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.className,o=t.disableHeader,a=t.gridClassName,s=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,u=t.height,d=t.id,p=t.noRowsRenderer,h=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,v=this.state.scrollbarWidth,b=o?u:u-l,_="function"===typeof h?h({index:-1}):h,w="function"===typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],r.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=rn({overflow:"hidden"},r)})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:(0,pe.Z)("ReactVirtualized__Table",i),id:d,role:"grid",style:g},!o&&c({className:(0,pe.Z)("ReactVirtualized__Table__headerRow",_),columns:this._getHeaderColumns(),style:rn({height:l,overflow:"hidden",paddingRight:v,width:y},w)}),r.createElement(Be,(0,de.Z)({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:(0,pe.Z)("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:v,scrollToRow:m,style:rn({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,i=e.isScrolling,o=e.parent,a=e.rowData,s=e.rowIndex,l=this.props.onColumnClick,c=t.props,u=c.cellDataGetter,d=c.cellRenderer,p=c.className,h=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:u({columnData:h,dataKey:f,rowData:a}),columnData:h,columnIndex:n,dataKey:f,isScrolling:i,parent:o,rowData:a,rowIndex:s}),y=this._cachedColumnStyles[n],v="string"===typeof g?g:null;return r.createElement("div",{"aria-colindex":n+1,"aria-describedby":m,className:(0,pe.Z)("ReactVirtualized__Table__rowColumn",p),key:"Row"+s+"-Col"+n,onClick:function(e){l&&l({columnData:h,dataKey:f,event:e})},role:"gridcell",style:y,title:v},g)}},{key:"_createHeader",value:function(e){var t,n,i,o,a,s=e.column,l=e.index,c=this.props,u=c.headerClassName,d=c.headerStyle,p=c.onHeaderClick,h=c.sort,f=c.sortBy,m=c.sortDirection,g=s.props,y=g.columnData,v=g.dataKey,b=g.defaultSortDirection,_=g.disableSort,w=g.headerRenderer,x=g.id,k=g.label,C=!_&&h,S=(0,pe.Z)("ReactVirtualized__Table__headerColumn",u,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:C}),M=this._getFlexStyleForColumn(s,rn({},d,{},s.props.headerStyle)),T=w({columnData:y,dataKey:v,disableSort:_,label:k,sortBy:f,sortDirection:m});if(C||p){var E=f!==v?b:m===Xt.DESC?Xt.ASC:Xt.DESC,P=function(e){C&&h({defaultSortDirection:b,event:e,sortBy:v,sortDirection:E}),p&&p({columnData:y,dataKey:v,event:e})};a=s.props["aria-label"]||k||v,o="none",i=0,t=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return f===v&&(o=m===Xt.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":a,"aria-sort":o,className:S,id:x,key:"Header-Col"+l,onClick:t,onKeyDown:n,role:"columnheader",style:M,tabIndex:i},T)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,i=e.isScrolling,o=e.key,a=e.parent,s=e.style,l=this.props,c=l.children,u=l.onRowClick,d=l.onRowDoubleClick,p=l.onRowRightClick,h=l.onRowMouseOver,f=l.onRowMouseOut,m=l.rowClassName,g=l.rowGetter,y=l.rowRenderer,v=l.rowStyle,b=this.state.scrollbarWidth,_="function"===typeof m?m({index:n}):m,w="function"===typeof v?v({index:n}):v,x=g({index:n}),k=r.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:i,parent:a,rowData:x,rowIndex:n,scrollbarWidth:b})})),C=(0,pe.Z)("ReactVirtualized__Table__row",_),S=rn({},s,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},w);return y({className:C,columns:k,index:n,isScrolling:i,key:o,onRowClick:u,onRowDoubleClick:d,onRowRightClick:p,onRowMouseOver:h,onRowMouseOut:f,rowData:x,style:S})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=rn({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:r.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(r.PureComponent);(0,ae.Z)(on,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Ue,overscanRowCount:10,rowRenderer:en,headerRowRenderer:Kt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),on.propTypes={};var an=[],sn=null,ln=null;function cn(){ln&&(ln=null,document.body&&null!=sn&&(document.body.style.pointerEvents=sn),sn=null)}function un(){cn(),an.forEach((function(e){return e.__resetIsScrolling()}))}function dn(e){e.currentTarget===window&&null==sn&&document.body&&(sn=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){ln&&Re(ln);var e=0;an.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),ln=je(un,e)}(),an.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function pn(e,t){an.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",dn),an.push(e)}function hn(e,t){(an=an.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",dn),ln&&(Re(ln),cn()))}var fn,mn,gn=function(e){return e===window},yn=function(e){return e.getBoundingClientRect()};function vn(e,t){if(e){if(gn(e)){var n=window,r=n.innerHeight,i=n.innerWidth;return{height:"number"===typeof r?r:0,width:"number"===typeof i?i:0}}return yn(e)}return{height:t.serverHeight,width:t.serverWidth}}function bn(e){return gn(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wn=function(){return"undefined"!==typeof window?window:void 0},xn=(mn=fn=function(e){function t(){var e,n;X(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=ne(this,(e=re(t)).call.apply(e,[this].concat(i))),(0,ae.Z)(te(n),"_window",wn()),(0,ae.Z)(te(n),"_isMounted",!1),(0,ae.Z)(te(n),"_positionFromTop",0),(0,ae.Z)(te(n),"_positionFromLeft",0),(0,ae.Z)(te(n),"_detectElementResize",void 0),(0,ae.Z)(te(n),"_child",void 0),(0,ae.Z)(te(n),"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(n,!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},vn(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),(0,ae.Z)(te(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),(0,ae.Z)(te(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"===typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),(0,ae.Z)(te(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),(0,ae.Z)(te(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),(0,ae.Z)(te(n),"_onResize",(function(){n.updatePosition()})),(0,ae.Z)(te(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=bn(t),i=Math.max(0,r.left-n._positionFromLeft),o=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:i,scrollTop:o}),e({scrollLeft:i,scrollTop:o})}}})),(0,ae.Z)(te(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return oe(t,e),Q(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,a=this._child||i.findDOMNode(this);if(a instanceof Element&&e){var s=function(e,t){if(gn(t)&&document.documentElement){var n=document.documentElement,r=yn(e),i=yn(n);return{top:r.top-i.top,left:r.left-i.left}}var o=bn(t),a=yn(e),s=yn(t);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}(a,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=vn(e,this.props);r===l.height&&o===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=He(),this.updatePosition(e),e&&(pn(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),hn(this,r),pn(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(hn(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,o=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:o,isScrolling:n,scrollLeft:i,scrollTop:r,width:a})}}]),t}(r.PureComponent),(0,ae.Z)(fn,"propTypes",null),mn);(0,ae.Z)(xn,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:wn(),serverHeight:0,serverWidth:0});var kn=n(63392),Cn=n(19298),Sn=n(21719);const Mn=e=>{let{keys:t,callback:n,keysUpCallback:i}=e;const[o,a]=(0,r.useState)(new Set([])),s=e=>{let{key:r}=e;o.has(r)||(a(o.add(r)),(()=>{const e=new Set(t);for(const t of o)e.delete(t);return 0===e.size})()&&n())},l=e=>{let{key:n}=e;o.delete(n),a(o),t.includes(n)&&i&&i()};return(0,r.useEffect)((()=>(window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)})),[n]),null};var Tn=n(75877),En=n(27019),Pn=n(95603),In=n(7601),On=n(72457),Ln=n(21299),Rn=n(1730),jn=n(17859),Dn=n(5229);const An=(0,Z.ZP)("div")`
  .field-upload-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.subtle}}};

    &.clickable {
      cursor: pointer;
    }
    &.highlighted {
      background-color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_100}};;
    }

    .field-upload-item__preview {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 51px;
      height: 51px;
      margin-right: 5px;

      .field-upload-item > div {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .leaflet-container {
        background: #fff;
      }
    }

    .field-upload-item__controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-grow: 1;
    }

    .field-upload-item__area {
      color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_600}};;
      padding-right: 15px;
      padding-left: 20px;
    }

    .field-upload-item__field-name {
      padding-right: 10px;

      .md-divider--text-field {
        margin-bottom: 3px;
        margin-top: 4px;
      }

      .md-text-field {
        margin-top: 8px;
        font-size: 14px;
      }
      .md-text-field-message {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .md-text-field-message--inactive {
        display: none;
      }
    }

    .delete-field-btn {
      color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_400}};;
      margin-left: auto;
      margin-right: 2px;
      cursor: pointer;
      width: 35px;
      height: 35px;
      .md-icon {
        font-size: 17px;
      }
    }
  }
`,Nn=e=>{let{selected:t,onSelect:n,fieldName:i,id:o,errors:a,onChangeName:l,onBlur:c,onFocus:u,preview:p,farmName:f,fieldArea:m,farmsSelector:g}=e;const v=(0,h.T)(),b=(0,Z.Fg)(),_=(0,r.useMemo)((()=>o||(0,jn._j)()),[]),x=(0,h.C)(En.k4),k=(0,r.useMemo)((()=>Boolean(null===a||void 0===a?void 0:a[W.B.FieldProtectedAreaError])),[Boolean(null===a||void 0===a?void 0:a[W.B.FieldProtectedAreaError])]),C=(0,r.useCallback)(((e,t)=>{t.setStyle({color:k?b.color.text.warning:Y.Pi,weight:1,fillColor:Y.Pi})}),[k]),S=!g&&(null===a||void 0===a?void 0:a[W.B.FieldFarmNameError])||(null===a||void 0===a?void 0:a[W.B.FieldNameError]);return(0,w.jsxs)(An,{children:[(0,w.jsxs)(d.xu,{onClick:g?void 0:()=>v((0,y.l7)(o)),className:s()("field-upload-item",{clickable:Boolean(!g),highlighted:Boolean(!g)&&x===o}),children:[(0,w.jsx)(d.xu,{ml:2,children:(0,w.jsx)(d.XZ,{id:`select-${o}-field`,name:`select-${o}-field`,checked:!!t,onChange:e=>n(e.target.checked)})}),(0,w.jsx)("div",{className:"field-upload-item__preview",children:(0,w.jsx)(Ln.$,{onEachFeature:C,size:[40,40],data:p},`str-${k}`)}),(0,w.jsx)("div",{className:"field-upload-item__controls",children:(0,w.jsx)(On.nv,{id:`field-name-${_}`,label:"",lineDirection:"center",className:"field-upload-item__field-name",placeholder:(0,Dn.t)({id:"Field name",defaultMessage:"Field name"}),value:i,error:Boolean(null===a||void 0===a?void 0:a[W.B.FieldNameError]),onChange:e=>l(o,String(e)),onBlur:c,onFocus:u,helpText:S?(0,w.jsx)(Rn.x,{error:!0,variant:"small",children:S}):f?(0,w.jsx)(Rn.x,{secondary:!0,variant:"small",children:f}):null})}),(0,w.jsx)(Rn.x,{variant:"small",nowrap:!0,className:"field-upload-item__area",children:m}),g]}),null===a||void 0===a?void 0:a[W.B.FieldSizeError],!g&&(null===a||void 0===a?void 0:a[W.B.FieldProtectedAreaError])]})},Fn=e=>{var t,n,r,i;let{index:o,style:a,parent:s,field:l,rowHeightCache:c,errors:u,farmsSelector:d,farm:p,onSelectField:f,onChangeFieldName:m}=e;const g=(0,h.C)(S.DC),y=(0,h.C)(Tn.wA),v=(0,In.Kr)(null===(t=l.properties)||void 0===t?void 0:t[W.h.Area],g),b=null===(n=l.properties)||void 0===n?void 0:n[W.h.FieldName],_=null===(r=l.properties)||void 0===r?void 0:r[W.h.Id],x=null===(i=l.properties)||void 0===i?void 0:i[W.h.Checked],k=(0,Pn.Di)(l,y,p);return(0,w.jsx)(et,{cache:c,parent:s,columnIndex:0,rowIndex:o,children:(0,w.jsx)("div",{style:a,children:(0,w.jsx)(Nn,{id:_,selected:x,preview:l,fieldArea:v,fieldName:b,farmName:k,farmsSelector:d,errors:u,onChangeName:m,onSelect:e=>f(_,e)})})},_)};var zn=n(22219);const Bn=(0,zn.Z_)().required("Farm name is required").trim().min(2,"Min. 2 characters").max(200,"Max. 200 characters"),Un=(0,zn.Ry)().shape({farmName:Bn}),$n=Z.ZP.div`
  width: 100%;
  margin-top: ${e=>{let{first:t}=e;return t?0:"20px"}};

  > .md-menu--select-field {
    width: 100%;
  }

  .md-select-field--text-field {
    overflow: hidden;
  }

  td {
    white-space: nowrap;
  }
`,Vn=Z.ZP.div`
  color: ${Y.Bn};
  background-color: rgba(207, 216, 220, 0.2);
  margin-top: 10px;

  .fluro-data-table {
    max-height: 300px;
  }

  td {
    white-space: nowrap;
  }
`,qn=Z.ZP.div`
  display: flex;
  flex-direction: column;
  height: 100%;

  @media (max-width: 460px) {
    .md-table-column--adjusted {
      padding-right: 10px;
    }
  }
  .md-text-field-message {
    white-space: nowrap;
  }

  .md-table-column--adjusted {
    padding-right: 20px;
  }
`,Zn=Z.ZP.div`
  overflow-x: auto;
  overflow-y: hidden;
  flex-grow: 1;
  flex-basis: 1;
  min-height: ${e=>{let{minHeight:t}=e;return t?`${t}px`:"auto"}};
  border-radius: 3px;
  box-shadow:
    0px 0px 3px rgba(63, 63, 68, 0.1),
    0px -1px 0px rgba(224, 226, 228, 0.8),
    -1px 0px 0px rgba(224, 226, 228, 0.8),
    0px 1px 0px rgba(224, 226, 228, 0.8),
    1px 0px 0px rgba(224, 226, 228, 0.8);
`,Hn=Z.ZP.div`
  display: flex;
  .input {
    padding: 7px 10px;
    border-color: ${e=>{let{theme:t}=e;return t.color.stroke.subtleInverted}};
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }
  .add-btn {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    width: 48px;
  }

  .md-text--error {
    margin-bottom: -4px; // fix the fluro-select-lite item
  }
`,Gn=e=>{let{visible:t,onBulkSelectFields:n,fieldsToProcess:i,getFieldErrors:o,selectedFieldIds:a,setFarmForFields:l,setNewFarmForSelectedFields:c,closeDialog:u,onSelectField:p,onChangeFieldName:m,createNewFarm:g}=e;const y=(0,f.YB)(),v=(0,r.useRef)(null),b=(0,h.C)(Tn.pD),_=(0,h.C)(En.yS),[x,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)({}),{formState:{errors:M},control:T,reset:E,watch:P}=(0,Cn.cI)({mode:"onChange",resolver:(0,kn.X)(Un),defaultValues:{farmName:""}}),I=P(),O=(0,r.useMemo)((()=>b.map((e=>({label:e.name,value:e.id})))),[b]),L=(0,r.useCallback)(((e,t)=>{S((r=>{const i={...r};return t?(i[t]=e,p(t,!1)):(a.forEach((t=>i[t]=e)),n(!1,a)),i}))}),[n,p,a]),R=(0,r.useCallback)((async e=>{const t=I.farmName.trim();if(!await Un.isValid({farmName:t}))return;const n=O.find((e=>e.label.toLowerCase()===t.toLowerCase()));let r=null===n||void 0===n?void 0:n.value;r||(r=await g(t)),await L(r,e),k(!1),E()}),[g,O,L,E,I.farmName]),j=()=>{k(!1),E()},D=()=>{u(),Wn.clearAll(),S({}),n(!0,i.map((e=>e.properties[W.h.Id])))},A=(0,r.useCallback)((e=>{const t=(0,Pn.uy)(b,_),n=[];if(x){const t=y.formatMessage({id:"New farm name",defaultMessage:"New farm name"});n.push({customSelectFunction:()=>null,value:"new-farm",label:(0,w.jsxs)(Hn,{children:[(0,w.jsx)(Cn.Qr,{name:"farmName",control:T,render:e=>{var n;let{field:{value:r,onChange:i}}=e;return(0,w.jsx)(d.nv,{name:t,onChange:e=>i(e.target.value),value:r,error:!!M.farmName,helperText:null===(n=M.farmName)||void 0===n?void 0:n.message,inputProps:{"data-testid":"new-farm-name-input"}})}}),(0,w.jsx)(d.zx,{className:"add-btn",size:"small",onClick:()=>{R(e)},children:(0,w.jsx)(f._H,{id:"Add",defaultMessage:"Add"})}),(0,w.jsx)(Mn,{callback:()=>R(e),keys:["Enter"]})]})})}else n.push({customSelectFunction:()=>k(!0),value:"new-farm",label:(0,w.jsx)(d.zx,{fullWidth:!0,variant:"text",startIcon:(0,w.jsx)(d.le,{fontSize:"h5",type:"plus"}),children:(0,w.jsx)(f._H,{id:"Add farm",defaultMessage:"Add farm"})})});return t&&O.length>1&&n.push({value:t.id,label:y.formatMessage({id:"Upload to current farm: {farmName}",defaultMessage:"Upload to current farm: {farmName}"},{farmName:t.name})}),n}),[x,T,_,M.farmName,b,O.length,R,y]);return(0,w.jsxs)(d.o9,{title:y.formatMessage({id:"Assign fields to farms",defaultMessage:"Assign fields to farms"}),onClose:D,open:t,id:"assign-farms-to-fields",maxWidth:"md",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Select fields and assign them to a farm. You can also rename your fields."})}),i.length>1&&(0,w.jsxs)(d.xu,{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,w.jsx)(d.xu,{m:4,children:(0,w.jsx)(d.t8,{label:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(f._H,{id:"Select all fields",defaultMessage:"Select all fields"})," (",a.length,"/",i.length,")"]}),control:(0,w.jsx)(d.XZ,{indeterminate:!!a.length&&!(a.length===i.length),checked:a.length===i.length,id:"parser-select-all-fields",name:"parser-select-all-fields",onChange:e=>{n(e.target.checked,i.map((e=>e.properties[W.h.Id])))}})})}),a.length>0&&(0,w.jsx)(Sn.H,{items:O,isSearchable:!0,fixedToTopItems:A(),selectedValue:null,placement:"bottom",onSelect:e=>L(e),onClose:()=>{j(),Wn.clearAll()},Button:e=>{let{onClick:t}=e;return(0,w.jsx)(d.zx,{onClick:t,variant:"outlined",color:"secondary",children:(0,w.jsx)(f._H,{id:"Assign selection",defaultMessage:"Assign selection"})})}})]}),(0,w.jsx)(Zn,{className:"field-items-container margin-top-10",minHeight:260,children:(0,w.jsx)(Xe,{children:e=>{let{width:t,height:n}=e;return(0,w.jsx)(_t,{ref:v,createFolder:!0,width:t,height:n,rowHeight:Wn.rowHeight,deferredMeasurementCache:Wn,rowRenderer:e=>{var t,n;const r=i[e.index],a=null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t[W.h.Id],l=null===r||void 0===r||null===(n=r.properties)||void 0===n?void 0:n[W.h.FarmId],c=a&&C[a]||l;return r?(0,w.jsx)(Fn,{field:r,errors:o(a),rowHeightCache:Wn,onSelectField:p,onChangeFieldName:m,farmsSelector:(0,w.jsx)(Sn.H,{placement:"bottom",placeholder:c?String(c):y.formatMessage({id:"Select farm",defaultMessage:"Select farm"}),items:O,isSearchable:!0,fixedToTopItems:A(a),selectedValue:c,onSelect:async t=>{await L(t,a),Wn.clear(e.index,e.columnIndex)},className:s()("field-row-farm-selector",{unselected:!c}),onClose:j}),farm:c,...e}):null},rowCount:i.length,overscanRowCount:10})}})})]}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:D,variant:"outlined",color:"secondary",children:(0,w.jsx)(f._H,{id:"BtnLabel.Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{onClick:()=>{const e={};i.forEach((t=>{var n;const r=t.properties[W.h.Id],i=C[r];i&&(e[i]||(e[i]=[]),null===(n=e[i])||void 0===n||n.push(r))})),Object.keys(e).forEach((t=>{var n;"string"===typeof t&&c(t,null!==(n=null===e||void 0===e?void 0:e[t])&&void 0!==n?n:[]);l(Number(t),e[Number(t)])})),D()},children:(0,w.jsx)(f._H,{id:"BtnLabel.Done",defaultMessage:"Done"})})]})]})},Wn=new tt({fixedWidth:!0,defaultHeight:55});var Yn=n(95853),Kn=n(61790),Xn=n(64510),Jn=n(36996),Qn=n(9694),er=n(73042),tr=n(39670),nr=n(48071);const rr=e=>{let{className:t=""}=e;return(0,w.jsx)(nr.ZP,{className:t,title:(0,Dn.t)({id:"Overlapping protected area.",defaultMessage:"Overlapping protected area."}),mini:!0,appearance:"warning",color:"warning",children:(0,Dn.t)({id:"This field will require additional review if selected.",defaultMessage:"This field will require additional review if selected."})})},ir=()=>{const e=(0,h.C)(S.rf),t=(0,h.C)(S.$6);return(0,f.YB)().formatMessage(e?{id:"admin field size warning",defaultMessage:"Field size is > {fieldSizeLimit}. Verify before uploading."}:{id:"field size error",defaultMessage:"Field size is > {fieldSizeLimit}. This field won't be uploaded."},{fieldSizeLimit:t})},or=(e,t,n)=>{const r=sr();return ar.forEach((i=>{var o;e&&null!==(o=t[i])&&void 0!==o&&o.has(e)&&(r[i]=ur(n)[i])})),r},ar=[W.B.FieldNameError,W.B.FieldFarmNameError,W.B.FieldSizeError,W.B.FieldProtectedAreaError],sr=()=>({[W.B.FieldNameError]:void 0,[W.B.FieldFarmNameError]:void 0,[W.B.FieldSizeError]:void 0,[W.B.FieldProtectedAreaError]:void 0}),lr=()=>(0,w.jsx)(rr,{className:"info-block-wrapper"}),cr=()=>{const e=ir();return(0,w.jsx)(nr.U8,{className:"info-block-wrapper",mini:!0,appearance:"warning",color:"warning",children:e})},ur=e=>({[W.B.FieldNameError]:e({id:"Field name must be range characters",defaultMessage:"Field name must be {range} characters"},{range:"1-50"}),[W.B.FieldFarmNameError]:e({id:"No farm selected",defaultMessage:"No farm selected"}),[W.B.FieldSizeError]:(0,w.jsx)(cr,{}),[W.B.FieldProtectedAreaError]:(0,w.jsx)(lr,{})}),dr=()=>{var e,t;const n=(0,f.YB)(),i=(0,h.T)(),o=(0,h.C)(g._l),a=(0,h.C)(m.HW),s=(0,h.C)(Tn.wA),l=(0,h.C)(g.Ln),c=(0,h.C)(En.AS),u=(0,h.C)(En.yS),p=(0,h.C)(g.Si),y=(0,h.C)(g.fj),v=(0,h.C)(S.rf),_=(0,h.C)((e=>(0,Qn.XE)(e,b.jB.uploadingFieldsToBackend)))===b.qb.Pending,[x,k]=(0,r.useState)(!1),C=(0,Xn.D)(u),M=(0,r.useRef)(null),T=(0,r.useMemo)((()=>{switch(l){case"view-fields-from-files":return o;case"view-drawn-fields":return a;case"view-selected-boundaries":return y;default:return[]}}),[l,o,a,y]),E=(0,r.useMemo)((()=>T.filter((e=>e.properties[W.h.Checked])).map((e=>e.properties[W.h.Id]))),[T]),{errors:P,getFieldErrors:I}=(e=>{const t=(0,f.YB)(),n=(0,h.C)(Tn.wA),i=(0,h.C)(g.gR),o=(0,r.useMemo)((()=>{const t=sr();return ar.forEach((e=>{t[e]=new Set})),e.forEach((e=>{const r=e.properties[W.h.Id]||0,o=e.properties[W.h.Area]||0,a=e.properties[W.h.FieldName]||"";var s,l,c,u;o>B.N&&(null===(s=t[W.B.FieldSizeError])||void 0===s||s.add(r)),(a.length<1||a.length>50)&&(null===(l=t[W.B.FieldNameError])||void 0===l||l.add(r)),(0,Pn.Di)(e,n)||null===(c=t[W.B.FieldFarmNameError])||void 0===c||c.add(r),i[r]&&(null===(u=t[W.B.FieldProtectedAreaError])||void 0===u||u.add(r))})),t}),[e,i,n]),a=(0,r.useCallback)((e=>or(e,o,t.formatMessage)),[o,t.formatMessage]);return{errors:o,getFieldErrors:a}})(T),{fieldErrorDescription:O,fieldFarmNameErrorLength:L,fieldFarmNameLengthTooLong:R,fieldNameLengthTooLong:j,fieldSizeTooLarge:D}=(e=>{const t=(0,f.YB)(),n=ir(),i=(0,r.useMemo)((()=>{var t,n,r,i,o,a;const s=null!==(t=null===(n=e[W.B.FieldFarmNameError])||void 0===n?void 0:n.size)&&void 0!==t?t:0;return{fieldFarmNameErrorLength:s,fieldFarmNameLengthTooLong:s>0,fieldNameLengthTooLong:(null!==(r=null===(i=e[W.B.FieldNameError])||void 0===i?void 0:i.size)&&void 0!==r?r:0)>0,fieldSizeTooLarge:(null!==(o=null===(a=e[W.B.FieldSizeError])||void 0===a?void 0:a.size)&&void 0!==o?o:0)>0}}),[e]),o=(0,r.useMemo)((()=>{let e;return i.fieldFarmNameLengthTooLong&&(e=t.formatMessage({id:"No farm selected",defaultMessage:"No farm selected"})),i.fieldNameLengthTooLong&&(e=`${e?`${e}\n`:""}${t.formatMessage({id:"Field name must be range characters",defaultMessage:"Field name must be {range} characters"},{range:"1-50"})}`),i.fieldSizeTooLarge&&(e=`${e?`${e}\n`:""}${n}`),e}),[i,n,t]);return(0,r.useMemo)((()=>({fieldErrorDescription:o,...i})),[o,i])})(P);(0,r.useEffect)((function(){if(!T.length&&!_)switch(l){case"view-fields-from-files":i((0,m.Hz)("select-files-to-upload"));break;case"view-drawn-fields":i((0,m.Hz)("draw-fields"));break;case"view-selected-boundaries":i((0,m.Hz)("select-boundaries"))}}),[T.length,_]),(0,r.useEffect)((()=>{pr.clearAll()}),[T]);const A=(e,t,n)=>{switch(l){case"view-fields-from-files":{const r=e||o.map((e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t[W.h.Id]}));i((0,m.gB)(r,n,t));break}case"view-drawn-fields":{const r=e||a.map((e=>e.properties[W.h.Id]));i((0,m.Pj)(r,n,t));break}case"view-selected-boundaries":{const r=e||p;i((0,m.vJ)(r,n,t))}}},N=(e,t)=>{const n=t||E;s[e]&&(A(n,"",W.h.NewFarmName),A(n,e,W.h.FarmId))};(0,r.useEffect)((function(){const e=T.filter((e=>e.properties[W.h.FarmId]===C));C&&u&&e.length&&N(u,e.map((e=>e.properties[W.h.Id])))}),[u]);const F=(e,t,n)=>{switch(l){case"view-fields-from-files":i((0,m.Ry)(e,t,n));break;case"view-drawn-fields":i((0,m.U)(e,t,n));break;case"view-selected-boundaries":i((0,m.eE)(e,t,n))}},z=(e,t)=>{F(e,W.h.FieldName,t)},U=(e,t)=>{F(e,W.h.Checked,t)},$=0===E.length||_||(R||j||D)&&!v;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(qn,{className:"preview-fields",children:[(0,w.jsx)(d.ZT,{children:n.formatMessage({id:"Make sure all of your fields are assigned to a farm. You can also rename your fields. Once all of your fields are assigned to a farm, you will be able to upload them.",defaultMessage:"Make sure all of your fields are assigned to a farm. You can also rename your fields. Once all of your fields are assigned to a farm, you will be able to upload them."})}),(0,w.jsx)(Kn.d,{}),L>0&&(0,w.jsxs)(d.bZ,{severity:"error",children:[(0,w.jsx)(d.Cd,{children:n.formatMessage({id:"Missing farms.",defaultMessage:"Missing farms."})}),n.formatMessage({id:"{count} {count, plural, one {field} other {fields}} not assigned to farms.",defaultMessage:"{count} {count, plural, one {field} other {fields}} not assigned to farms."},{count:null===(e=P[W.B.FieldFarmNameError])||void 0===e?void 0:e.size})]}),(0,w.jsxs)(d.xu,{display:"flex",mt:3,mb:2,justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(d.zx,{color:null!==(t=P[W.B.FieldFarmNameError])&&void 0!==t&&t.size?"primary":"secondary",variant:P[W.B.FieldFarmNameError]?"contained":"outlined",onClick:()=>k(!0),children:n.formatMessage({id:"Assign to farms",defaultMessage:"Assign to farms"})}),(0,w.jsx)(d.ZT,{color:"secondary",children:n.formatMessage({id:"{count1}/{count2} fields assigned to farms.",defaultMessage:"{count1}/{count2} fields assigned to farms."},{count1:T.length-L,count2:T.length})})]}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(d.xu,{margin:4,children:(0,w.jsx)(d.t8,{id:"select-all",label:n.formatMessage({id:"Select all",defaultMessage:"Select all"}),control:(0,w.jsx)(d.XZ,{indeterminate:!!E.length&&!(E.length===T.length),checked:T.length>0&&E.length===T.length,onChange:e=>{A(T.map((e=>e.properties[W.h.Id])),e.target.checked,W.h.Checked)}})})}),(0,w.jsx)(d.ZT,{color:"secondary",children:n.formatMessage({id:"{count1}/{count2} selected",defaultMessage:"{count1}/{count2} selected"},{count1:E.length,count2:T.length})})]}),(0,w.jsx)(Zn,{children:(0,w.jsx)(Xe,{children:e=>{let{width:t,height:n}=e;return(0,w.jsx)(_t,{ref:M,createFolder:!0,width:t,height:n,rowHeight:pr.rowHeight,deferredMeasurementCache:pr,rowRenderer:e=>{var t;const n=T[e.index],r=null===(t=n.properties)||void 0===t?void 0:t[W.h.Id];return(0,w.jsx)(Fn,{field:n,errors:I(r),rowHeightCache:pr,onChangeFieldName:z,onSelectField:U,...e})},rowCount:T.length,overscanRowCount:10})}})}),(0,w.jsxs)("div",{className:"new-fields-nav-container in-right-panel",children:[(0,w.jsx)(d.zx,{id:"view-fields-from-files"===l?"back-btn":"add-more-fields",variant:"outlined",color:"secondary",startIcon:(0,w.jsx)(d.le,{fontSize:"h5",type:"plus"}),onClick:()=>{switch(l){case"view-fields-from-files":i((0,m.gB)(o.map((e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t[W.h.Id]})),W.h.FarmId,0)),i((0,m.Hz)("parse-uploading-files"));break;case"view-drawn-fields":i((0,m.Hz)("draw-fields"));break;case"view-selected-boundaries":i((0,m.Hz)("select-boundaries"))}},children:"view-fields-from-files"===l?n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"}):n.formatMessage({id:"Add fields",defaultMessage:"Add fields"})}),(0,w.jsx)(d.u,{title:O,children:(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.fl,{id:"save-new-fields",onClick:async()=>{var e,t;if(null!==(e=P[W.B.FieldNameError])&&void 0!==e&&e.size)(0,Yn.c)({title:n.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:n.formatMessage({id:"Some fields have invalid names, please correct.",defaultMessage:"Some fields have invalid names, please correct."}),type:"warning"});else if(null!==(t=P[W.B.FieldFarmNameError])&&void 0!==t&&t.size)(0,Yn.c)({title:n.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:n.formatMessage({id:"Make sure you select a farm first.",defaultMessage:"Make sure you select a farm first."}),type:"warning"});else if(c)(0,Yn.c)({title:n.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:n.formatMessage({id:"Please save or cancel your changes before saving.",defaultMessage:"Please save or cancel your changes before saving."}),type:"warning"});else switch((e=>{switch(l){case"view-fields-from-files":i((0,m.k)(e));break;case"view-drawn-fields":i((0,m.yS)(e));break;case"view-selected-boundaries":i((0,m.Ur)(e))}})(T.filter((e=>!e.properties[W.h.Checked])).map((e=>e.properties[W.h.Id]))),l){case"view-fields-from-files":tr.Z.track("Add new fields from files"),i(m.NF);break;case"view-drawn-fields":tr.Z.track("Add new fields from drawn fields"),i(m.au);break;case"view-selected-boundaries":tr.Z.track("Add new fields from selected boundaries"),i(m.FA)}},loading:_,disabled:$,children:n.formatMessage({id:"Upload fields",defaultMessage:"Upload fields"})})})})]})]}),(0,w.jsx)(Gn,{visible:x,fieldsToProcess:T,onBulkSelectFields:(e,t)=>{(0,er.$K)(t)&&A(t,e,W.h.Checked)},getFieldErrors:I,onSelectField:U,onChangeFieldName:z,selectedFieldIds:E,setFarmForFields:N,setNewFarmForSelectedFields:(e,t)=>{switch(l){case"view-fields-from-files":i((0,m.gB)(t,W.h.FarmId,0)),i((0,m.gB)(t,W.h.NewFarmName,e));break;case"view-drawn-fields":i((0,m.Pj)(t,W.h.FarmId,0)),i((0,m.Pj)(t,W.h.NewFarmName,e));break;case"view-selected-boundaries":i((0,m.vJ)(t,W.h.FarmId,0)),i((0,m.vJ)(t,W.h.NewFarmName,e))}},closeDialog:()=>k(!1),createNewFarm:async e=>{const t=await i((0,Jn.yL)({id:0,name:e}));return null===t||void 0===t?void 0:t.id}})]})},pr=new tt({fixedWidth:!0,defaultHeight:55});var hr=n(66791),fr=n(5746),mr=n(50761),gr=n(30765),yr=n(99730),vr=n(7170),br=n(37682);const _r=(0,yr.P1)([(e,t)=>t===br.t5.Monitoring?(0,_.hy)(e):(0,vr.wu)(e)],(e=>e)),wr=e=>{const t=(0,f.YB)(),n=(0,h.C)(_.JV),{projectId:i}=(0,gr.B)(),o=(0,h.C)((t=>(0,_.d1)(t,e))),a=(0,h.C)((t=>_r(t,e))),{isProjectPhaseCompleted:s,allowPostCloseEdit:l}=(0,fr.F)((null===n||void 0===n?void 0:n.id)||i,null===o||void 0===o?void 0:o.id),{isSuperUpdateEnabled:c}=(0,mr.Di)();return(0,r.useMemo)((()=>{return c?{isReadOnly:!1,reason:br.Mk.Unknown,detailedReason:"unknown"}:s?{isReadOnly:!0,reason:br.Mk.ContractIsSigned,detailedReason:t.formatMessage({id:"PhaseReadOnlyReason.EnrolledInProgram",defaultMessage:"you already enrolled in {program}"},{program:null!==(e=null===n||void 0===n?void 0:n.program_name)&&void 0!==e?e:"this program"})}:a.reason===br.Mk.TooLate&&l?{isReadOnly:!1,reason:br.Mk.Unknown,detailedReason:"unknown"}:a;var e}),[l,t,s,c,a,null===n||void 0===n?void 0:n.program_name])};var xr=n(60323);const kr=()=>{const e=(0,f.YB)(),{isReadOnly:t,detailedReason:n}=wr(br.t5.Enrolment),[i]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),o=i?n:e.formatMessage({id:"PhaseReadOnlyReason.NoRequiredPermission",defaultMessage:"you do not have the permission to edit"}),a=t||!i;return(0,r.useMemo)((()=>({isReadOnly:a,detailedReason:o})),[a,o])},Cr=()=>{const{isReadOnly:e,detailedReason:t}=kr(),n=(0,xr.nh)(xr.hn.NEW_ALERTS);return e?n?(0,w.jsx)(d.xu,{py:2,children:(0,w.jsx)(d.bZ,{icon:(0,w.jsx)(d.le,{type:"lock"}),children:(0,w.jsx)(f._H,{defaultMessage:"This section is locked because {detailedReason}.",id:"EnrollSectionLockReason",values:{detailedReason:t}})})}):(0,w.jsx)(d.xu,{py:2,children:(0,w.jsx)(d.bZ,{icon:(0,w.jsx)(d.le,{type:"lock"}),severity:"info",children:(0,w.jsx)(f._H,{defaultMessage:"This section is locked because {detailedReason}.",id:"EnrollSectionLockReason",values:{detailedReason:t}})})}):null};var Sr=n(68846),Mr=n(6160);const Tr=()=>{var e,t;const n=(0,r.useMemo)((()=>(0,jn._j)()),[]),i=(0,h.T)(),{}=(0,Cn.cI)({resolver:(0,kn.X)(Un),mode:"onChange",defaultValues:{farmName:""}}),o=(0,h.C)(g._l),a=(0,h.C)(En.yS),s=(0,h.C)(Tn.pD),l=(0,h.C)(m.S$),c=(0,h.C)(m.pQ),u=(0,f.YB)(),p=(0,r.useMemo)((()=>s.find((e=>e.id===a))),[a,s]),[y,v]=(0,r.useState)(0),b=(0,r.useMemo)((()=>{var e;return(null===(e=o[y])||void 0===e?void 0:e.properties)||null}),[o,y]),_=(0,r.useMemo)((()=>{if(!b)return[];const e=Object.values(W.h);return Object.keys(b).filter((t=>!e.some((e=>e===t))))}),[b]),x=(0,r.useMemo)((()=>[{label:u.formatMessage({id:"-- File name --",defaultMessage:"-- File name --"}),value:W.h.FileName},..._.map((e=>({label:e,value:e})))]),[_,u]),k=(0,r.useMemo)((()=>p?[{label:u.formatMessage({id:"Upload to current farm {farmName}",defaultMessage:"Upload to current farm {farmName}"},{farmName:p.name}),value:"__currentFarm__"},...x]:x),[p,x,u]);(0,r.useEffect)((()=>{i((0,m.lX)((0,Pn.BS)(_)))}),[_]);const C=(0,r.useCallback)(((e,t)=>{i((0,m.nS)(e,t))}),[]),S=(0,r.useMemo)((()=>o.slice(0,20)),[o,20,_]),M=e=>null!==e&&void 0!==e&&e.includes("id")||null!==e&&void 0!==e&&e.includes("area")?"number":"text",T=null===(e=k.find((e=>e.value===l.farmName)))||void 0===e?void 0:e.value,E=null===(t=x.find((e=>e.value===l.fieldName)))||void 0===t?void 0:t.value;return(0,w.jsxs)(qn,{className:"field-properties-parser",children:[c.length>1&&(0,w.jsx)($n,{first:!0,children:(0,w.jsx)(On.mg,{id:`parse-structure-select-${n}`,label:u.formatMessage({id:"Select the file you want to use to parse the properties",defaultMessage:"Select the file you want to use to parse the properties"}),placeholder:u.formatMessage({id:"Select field",defaultMessage:"Select field"}),menuItems:c.map(((e,t)=>({label:e,value:t}))),simplifiedMenu:!0,value:y,onChange:e=>v(e)})}),(0,w.jsx)(d.ZT,{children:u.formatMessage({id:"Here is a sample of your data",defaultMessage:"Here is a sample of your data"})}),(0,w.jsx)(Vn,{children:(0,w.jsxs)(Mr.dU,{mini:!0,children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsx)(Mr.Yu,{children:_.map(((e,t)=>(0,w.jsx)(Mr.uM,{type:M(e),adjusted:!1,children:e},e+t)))})}),(0,w.jsx)(Mr.By,{children:S.map((e=>{var t;return(0,w.jsx)(Mr.Yu,{children:_.map(((t,n)=>{var r;return(0,w.jsx)(Mr.uM,{type:M(t),adjusted:!1,children:(0,m.$q)(null===(r=e.properties)||void 0===r?void 0:r[t])},`${t}-val-${n}`)}))},null===(t=e.properties)||void 0===t?void 0:t[W.h.Id])}))})]})}),(0,w.jsxs)("div",{className:"mt-4",children:[(0,w.jsx)(Sr.Z,{id:"select-field-name",placeholder:u.formatMessage({id:"Select column that represents field name",defaultMessage:"Select column that represents field name"}),options:x,value:E,onChange:e=>C("fieldName",e)}),!E&&(0,w.jsx)(d.bZ,{severity:"info",children:(0,w.jsx)(d.ZT,{variant:"body2",children:(0,w.jsx)(f._H,{id:"We couldn't find a column that represents the field name. But don't worry, you can select it later.",defaultMessage:"We couldn't find a column that represents the field name. But don't worry, you can select it later."})})}),(0,w.jsx)(Sr.Z,{placeholder:u.formatMessage({id:"Select column that represents farm name",defaultMessage:"Select column that represents farm name"}),options:k,value:T,onChange:e=>C("farmName",e)}),!T&&(0,w.jsx)(d.xu,{mt:3,children:(0,w.jsx)(d.bZ,{severity:"info",children:(0,w.jsx)(d.ZT,{variant:"body2",children:(0,w.jsx)(f._H,{id:"We couldn't find a column that represents the farm name. But don't worry, you can select it later.",defaultMessage:"We couldn't find a column that represents the farm name. But don't worry, you can select it later."})})})})]}),(0,w.jsxs)("div",{className:"new-fields-nav-container sticky mt-4",children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:()=>{i((0,m.Lv)([])),i((0,m.GR)([])),i((0,m.Hz)("select-files-to-upload"))},children:u.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})}),(0,w.jsx)(d.zx,{id:"go-next",onClick:()=>{var e;null!==l&&void 0!==l&&null!==(e=l.farmName)&&void 0!==e&&e.includes("__currentFarm__")&&p?i((0,m.gB)(o.map((e=>{var t;return null===e||void 0===e||null===(t=e.properties)||void 0===t?void 0:t[W.h.Id]})),W.h.FarmId,p.id)):i((0,m.cU)("farmName")),i((0,m.cU)("fieldName")),i((0,m.Hz)("view-fields-from-files"))},children:u.formatMessage({id:"Next",defaultMessage:"Next"})})]})]})};function Er(e){let{backToMainStep:t}=e;const n=(0,f.YB)();return(0,w.jsx)(w.Fragment,{children:t&&(0,w.jsx)(d.zx,{id:"back-btn",onClick:t,variant:"outlined",color:"secondary",children:n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})})})}const Pr=()=>{const e=(0,h.T)(),t=(0,h.C)(g.Ln),n=t=>e((0,m.Hz)(t)),{isReadOnly:r}=wr(br.t5.Enrolment),[i]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS]),o=r||!i,a=(0,h.C)(g.IF),l=()=>{e((0,m.Lv)([])),e((0,m.yS)()),e((0,m.Hz)("add-fields")),e((0,y.bX)(!1,"polygon")),e((0,m.fe)())};return o?(0,w.jsx)(Cr,{}):(0,w.jsxs)("div",{className:s()("field-items-container",{"name-uploaded-fields":a}),children:["zoom-is-too-low"===t&&(0,w.jsx)(Er,{backToMainStep:l}),"add-fields"===t&&(0,w.jsx)(E,{changeCurrentStep:n}),"select-boundaries"===t&&(0,w.jsx)(K,{backToMainStep:l}),"draw-fields"===t&&(0,w.jsx)(q,{backToMainStep:l}),"select-files-to-upload"===t&&(0,w.jsx)(x,{changeCurrentStep:n}),"parse-uploading-files"===t&&(0,w.jsx)(Tr,{}),a&&(0,w.jsx)(dr,{})]})};var Ir=n(53135),Or=n(59357);const Lr=["draw-fields","search-location","zoom-is-too-low","select-boundaries"],Rr=()=>{const e=(0,h.T)(),t=(0,h.C)((e=>(0,Or.zn)(e,b.iR.addNewField))),{isDrawingMode:n,drawingModeLayerType:i}=(0,h.C)(En.lc),o=(0,h.C)(m.HW),a=(0,h.C)(g._l),l=(0,h.C)(g.Ln),c=(0,h.C)(g.Si),u=(0,h.C)(g.IF),p=(0,f.YB)();(0,r.useEffect)((()=>()=>v()),[]),(0,r.useEffect)((()=>{t&&"add-fields"===l&&o.length&&e((0,m.Hz)("draw-fields")),t&&n&&e((0,y.bX)(!1,i))}),[t]);const v=()=>{e((0,b.qO)(b.iR.addNewField,!1)),e((0,m.Lv)([])),e((0,m.yS)()),e((0,m.Hz)("add-fields")),e((0,y.hT)(!0)),e((0,y.bX)(!1,"polygon")),e((0,m.fe)())},_=(0,r.useMemo)((()=>{switch(l){case"add-fields":default:return p.formatMessage({id:"Add fields",defaultMessage:"Add fields"});case"select-boundaries":return p.formatMessage({id:"Select fields on the map",defaultMessage:"Select fields on the map"});case"zoom-is-too-low":return p.formatMessage({id:"Zoom level is too low",defaultMessage:"Zoom level is too low"});case"select-files-to-upload":return p.formatMessage({id:"Upload field boundaries",defaultMessage:"Upload field boundaries"});case"parse-uploading-files":return p.formatMessage({id:"Review and configure import",defaultMessage:"Review and configure import"});case"view-fields-from-files":case"view-drawn-fields":case"view-selected-boundaries":return p.formatMessage({id:"Upload Fields",defaultMessage:"Upload Fields"});case"draw-fields":return p.formatMessage({id:"Draw your fields here or search for a location",defaultMessage:"Draw your fields here or search for a location"})}}),[l,a,o,p]),x=["zoom-is-too-low","select-boundaries"].includes(l)||"draw-fields"===l;return"search-location"===l?null:t?(0,w.jsxs)(w.Fragment,{children:[!n&&(0,w.jsx)(d.o9,{id:"field-edit--dialog",open:t&&!n,title:_,disableEnforceFocus:!0,className:s()("field-edit--dialog",{"right-aligned":u,"bottom-aligned":x,[l]:!0}),onClose:()=>{if(Lr.includes(l)&&(o.length||c.length)){const t=o.length?"view-drawn-fields":"view-selected-boundaries";e((0,m.Hz)(t))}else v()},disableBackdropClick:x||u,hideBackdrop:x||u,children:(0,w.jsxs)(d.cZ,{children:[Ir.MK.includes(l)&&!o.length?(0,w.jsxs)("div",{onClick:v,className:"adding-fields__cancel-btn cancel-adding-fields-mode-btn",children:[p.formatMessage({id:"Cancel field creation",defaultMessage:"Cancel field creation"}),(0,w.jsx)(d.le,{type:"cross",fontSize:"h4"})]}):null,(0,w.jsx)(Pr,{})]})}),"draw-fields"===l&&n?(0,w.jsxs)("div",{onClick:()=>{e((0,y.bX)(!1,i))},className:"adding-fields__cancel-btn",children:[p.formatMessage({id:"Cancel drawing",defaultMessage:"Cancel drawing"}),(0,w.jsx)(d.le,{type:"cross",fontSize:"h4"})]}):null]}):null},jr=()=>{const e=(0,r.useMemo)((()=>(0,jn._j)()),[]),t=(0,h.T)(),{visible:n,payload:i}=(0,h.C)((e=>(0,Or._X)(e,b.iR.alert))),o=(0,f.YB)(),a=(0,r.useMemo)((()=>(null===i||void 0===i?void 0:i.title)||o.formatMessage({id:"note.info",defaultMessage:"Info"})),[i,o]),s=(0,r.useMemo)((()=>(null===i||void 0===i?void 0:i.okLabel)||o.formatMessage({id:"BtnLabel.Okay",defaultMessage:"Ok"})),[i,o]),l=(0,r.useMemo)((()=>(null===i||void 0===i?void 0:i.message)||""),[i]),c=(0,r.useCallback)((()=>t((0,b.qO)(b.iR.alert,!1))),[t]),u=(0,r.useCallback)((()=>{null!==i&&void 0!==i&&i.okAction&&i.okAction(),c()}),[i,c]);return(0,w.jsxs)(d.o9,{id:`alert-dialog-${e}`,open:!!n,title:a,onClose:c,children:[(0,w.jsx)(d.cZ,{children:l}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:u,children:s})})]})},Dr=()=>{const e=(0,r.useMemo)((()=>(0,jn._j)()),[]),t=(0,h.T)(),{visible:n,payload:i}=(0,h.C)((e=>(0,Or._X)(e,b.iR.confirm))),o=(0,f.YB)(),[a,s]=(0,r.useState)(!1);(0,r.useEffect)((()=>{i.agreementsMessage}),[i.agreementsMessage]);const l=(0,r.useMemo)((()=>(null===i||void 0===i?void 0:i.title)||o.formatMessage({id:"Confirm",defaultMessage:"Confirm"})),[i,o]),c=(0,r.useMemo)((()=>(null===i||void 0===i?void 0:i.okLabel)||o.formatMessage({id:"BtnLabel.Okay",defaultMessage:"Ok"})),[i,o]),u=(0,r.useMemo)((()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.xu,{children:(null===i||void 0===i?void 0:i.message)||o.formatMessage({id:"ConfirmDialogDefaultTitle",defaultMessage:"Are you sure?"})}),null!==i&&void 0!==i&&i.agreementsMessage?(0,w.jsxs)(d.xu,{display:"flex",ml:-2,alignItems:"center",className:"agreements-message",children:[(0,w.jsx)(d.XZ,{id:`checkbox-${e}`,name:`checkbox-${e}`,onChange:()=>s(!a),checked:a}),(0,w.jsx)(d.ZT,{children:i.agreementsMessage})]}):null]})),[i,a,o,e]),p=(0,r.useCallback)((()=>t((0,b.qO)(b.iR.confirm,!1))),[t]),m=(0,r.useCallback)((()=>{null!==i&&void 0!==i&&i.okAction&&(i.okAction(),p())}),[i,p]);return(0,w.jsxs)(d.o9,{id:`confirm-dialog-${e}`,open:!!n,title:l,onClose:p,children:[(0,w.jsx)(d.cZ,{children:u}),(0,w.jsx)(d.kX,{children:null!==i&&void 0!==i&&i.hideButtons?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:p,children:o.formatMessage({id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{onClick:m,disabled:(null===i||void 0===i?void 0:i.agreementsMessage)&&!a,children:c})]})})]})},Ar=()=>{var e;const t=(0,h.T)(),[n,i]=(0,r.useState)(""),o=(0,f.YB)(),{title:a,onSubmit:s}=(null===(e=(0,h.C)((e=>(0,Or._X)(e,b.iR.deleteDialog))))||void 0===e?void 0:e.payload)||{},l=(0,r.useCallback)((()=>{t((0,b.qO)(b.iR.deleteDialog,!1))}),[]);return(0,w.jsx)(d.o9,{id:"delete-dialog",open:!0,onClose:l,title:a,children:(0,w.jsxs)("form",{onSubmit:e=>{e.preventDefault(),s()},children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.nv,{id:"confirm-delete-input",label:o.formatMessage({id:"Type in the word 'DELETE' to confirm",defaultMessage:'Type in the word "DELETE" to confirm'}),value:n,onChange:e=>i(e.target.value),fullWidth:!0,autoFocus:!0,autoComplete:"off"})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:l,children:o.formatMessage({id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{id:"confirm-delete-btn",type:"submit",disabled:!(n===o.formatMessage({id:"TypeToConfirm.DELETE",defaultMessage:"DELETE"})),children:o.formatMessage({id:"Confirm",defaultMessage:"Confirm"})})]})]})})};var Nr=n(55650),Fr=n(5197);const zr=()=>{var e;const t=(0,h.T)(),{projectId:n,farmId:i,farmName:o}=(null===(e=(0,h.C)((e=>(0,Or._X)(e,b.iR.editFarmName))))||void 0===e?void 0:e.payload)||{},a=(0,h.C)(_.nv),s=(0,f.YB)(),[l,c]=(0,r.useState)(o||""),[u,p]=(0,r.useState)(!1),m=()=>{t((0,b.qO)(b.iR.editFarmName,!1))},g=l.length>50||l.length<2;return(0,w.jsx)(d.o9,{id:"farm-edit-name--dialog",open:!0,title:s.formatMessage({id:"Edit farm name",defaultMessage:"Edit farm name"}),onClose:m,children:(0,w.jsxs)("form",{onSubmit:async e=>{var r;e.preventDefault(),p(!0),await t((0,Jn.yL)({id:i,name:l}));const o=null===(r=a.find((e=>e.core_farm_group_id===i)))||void 0===r?void 0:r.id;o&&(await Nr.eV.updateFarm({projectId:n,mrvFarmId:o,farm:{farm_name:l}}),await t((0,Fr.GG)({projectId:n}))),p(!1),(0,Yn.c)({title:s.formatMessage({id:"note.success",defaultMessage:"Success"}),message:s.formatMessage({id:"{type} was successfully saved",defaultMessage:"{type} was successfully saved"},{type:s.formatMessage({id:"Name",defaultMessage:"Name"})}),type:"success"}),m()},children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.nv,{fullWidth:!0,autoFocus:!0,label:"Farm name",placeholder:s.formatMessage({id:"Farm name",defaultMessage:"Farm name"}),value:l,onChange:e=>c(e.target.value),error:g,helperText:g?s.formatMessage({id:"Farm name must be range characters",defaultMessage:"Farm name must be range characters"},{range:"2-50"}):void 0})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{type:"submit",disabled:g||u,children:s.formatMessage({id:"Save name",defaultMessage:"Save name"})})})]})})};var Br=n(78168),Ur=n.n(Br),$r=n(3851);const Vr=()=>{const e=(0,r.useRef)(null),t=(0,h.T)(),n=(0,h.C)((e=>(0,Or.zn)(e,$r.iR.requestFSAccess))),[i,o]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{window.hbspt&&n&&e.current&&!i&&window.hbspt.forms.create({portalId:"4430549",formId:"f0a90902-8df2-4142-b7a7-c9e7a2f9d177",target:"#rq-form-container"})}),[i,n,e.current]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ur(),{url:"//js.hsforms.net/forms/shell.js",onLoad:()=>o(!1)}),(0,w.jsx)(d.o9,{id:"request-fs-access-dialog",title:"",open:!!n,onClose:()=>t((0,b.qO)($r.iR.requestFSAccess,!1)),children:(0,w.jsx)(d.cZ,{children:(0,w.jsx)("div",{id:"rq-form-container",ref:e})})})]})};var qr=n(96446);const Zr=()=>e=>{e((0,b.qO)(b.iR.profile,!0)),(0,o.m)("profile-dialog","true")};var Hr=n(92473),Gr=n(85251),Wr=n(92531),Yr=n(20146),Kr=n(27225),Xr=n.n(Kr),Jr=n(77198),Qr=n.n(Jr),ei=n(20751),ti=n.n(ei),ni=n(51408),ri=n(87455),ii=n(14291),oi=n(6132),ai=n(54697),si=n(62213);const li=e=>{const t=[["/projects","/programs/custom_inputs"],e],{data:n,mutate:i,isLoading:o,isValidating:a}=(0,ai.ZP)(t,(async()=>{const t=[],n={};return await Promise.all(e.map((async e=>{const[r]=(await si.ZP.getProject(e)).data;if(!r)return;null!==r&&void 0!==r&&r.program_id&&!n[r.program_id]&&(n[r.program_id]=(await si.ZP.getCustomRegistrationInput({programId:r.program_id})).data);const i=n[r.program_id];null!==i&&void 0!==i&&i.length&&t.push(...(e=>{let{project:t,programCustomInputs:n}=e;const r=t.custom_reg_values||[];return n.map((e=>{const n=r.find((t=>Number(t.key)===e.id));return n?{id:n.id,key:n.key,name:e.name,config:e.config,type_:e.type_,visibility:e.visibility,program_name:t.program_name,program_id:t.program_id,project_id:t.id,value:n.value}:{id:"new",key:`${e.id}`,name:e.name,config:e.config,type_:e.type_,visibility:e.visibility,program_name:t.program_name,program_id:t.program_id,project_id:t.id,value:""}}))})({project:r,programCustomInputs:i}))}))),t}),{revalidateOnFocus:!1,onError:C.e,fallbackData:[]}),s=(0,r.useCallback)((async e=>{let{projectId:t,input:r}=e,o=[];try{if("id"in r){const e=null===n||void 0===n?void 0:n.find((e=>Number(e.id)===Number(r.id)));if(e&&e.value===r.value)return;o=(await si.ZP.updateMrvProjectCustomInputsValue({projectId:t,input:r})).data}else o=(await si.ZP.createMrvProjectCustomInputsValue({projectId:t,input:r})).data}catch(ag){(0,C.e)(ag)}const a=null===n||void 0===n?void 0:n.map((e=>Number(e.id)===Number(r.id)?{...e,value:r.value}:e));return await i(a,{revalidate:!1}),o}),[n,i]);return{isLoading:o||a||!n,customInputs:n,updateCustomInput:s}};var ci=function(e){return e[e.type_=0]="type_",e[e.project_id=1]="project_id",e[e.program_id=2]="program_id",e[e.key=3]="key",e[e.id=4]="id",e}(ci||{}),ui=function(e){return e.TYPE_="type_",e.PROJECT_ID="project_id",e.PROGRAM_ID="program_id",e.KEY="key",e.ID="id",e}(ui||{});const di=e=>[ui.TYPE_,ui.PROJECT_ID,ui.PROGRAM_ID,ui.KEY,ui.ID].map((t=>e[t])).join("_"),pi=e=>{let{customInputsValidation:t}=e;return Object.keys(t).forEach((e=>{var n;const{regex:r,label:i,message:o}=null!==(n=t[e])&&void 0!==n?n:{};t[e]=r?(0,zn.Z_)().test(e,o,(e=>(0,er.$K)(e)&&e.match(new RegExp(r)))):(0,zn.Z_)().required(`${i} is a required field`)})),(0,zn.Ry)().shape({}).default(t)},hi=()=>{const e=(0,h.C)(_.Fc),{customInputs:t,isLoading:n,updateCustomInput:i}=li(e),o={},a={};null===t||void 0===t||t.forEach((e=>{const t=di(e),{name:n,type_:r,value:i,config:s}=e;o[t]=null!==i&&void 0!==i?i:"",a[t]={regex:"Regex"===r?s:"",message:"Invalid Value",label:n}}));const s=Qr()(Xr()(t,"program_name"),(e=>e.map((e=>ti()(e,"program_name"))))),{handleSubmit:l,watch:c,register:u,setValue:p,formState:f}=(0,Cn.cI)({resolver:(0,kn.X)(pi({customInputsValidation:a})),defaultValues:{...o}});(0,r.useEffect)((()=>{if(!n){t.forEach((e=>u(`${e.type_}_${e.project_id}_${e.program_id}_${e.key}`)));for(const[e,t]of(0,ii.pJ)(o))p(e,t)}}),[n,p,t,u]);const m=c(),g=(e,t)=>{p(e,t,{shouldValidate:!0})};return(0,w.jsxs)("form",{autoComplete:"off",onSubmit:l((async()=>{Object.keys(m).forEach((e=>{void 0===m[e]&&delete m[e]}));for(const r in m){const o=r.split("_"),a=o[o.length-1];if(void 0!==m[r]){var e,t;const s={type_:o[ci[ui.TYPE_]],project_id:Number(o[ci[ui.PROJECT_ID]]),key:null!==(e=o[ci[ui.KEY]])&&void 0!==e?e:"",value:null!==(t=m[r])&&void 0!==t?t:"",..."new"===a?void 0:{id:a}};try{const e=Number(o[1]);await i({projectId:e,input:s}),(0,Yn.c)({title:(0,Dn.t)({id:"note.success",defaultMessage:"Success"}),message:"Updated",type:"success"})}catch(n){(0,C.e)(`Update Custom Input Error ${n}`)}}}})),children:[!!t.length&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Rn.x,{elementType:"h2",style:{marginBottom:"36px"},children:(0,Dn.t)({id:"Custom registration inputs",defaultMessage:"Custom registration inputs"})}),(0,w.jsx)(oi.qp,{children:Object.keys(s).sort(((e,t)=>e.localeCompare(t))).map((e=>{var t;return(0,w.jsxs)(oi.qp,{className:"form-row",children:[(0,w.jsx)(Rn.x,{elementType:"h2",children:e}),null===(t=s[e])||void 0===t?void 0:t.map((e=>{const{type_:t,value:n,config:r}=e,i=di(e);var o;if("Regex"===t)return(0,w.jsx)("div",{style:{flexGrow:1},children:(0,w.jsx)(ri.C,{id:i,name:i,value:m[i]||n,label:e.name,error:!!f.errors[i],errorText:null===(o=f.errors[i])||void 0===o?void 0:o.message,onChange:e=>g(i,e)})},i);if("Dropdown"===t){var a,s,l;const t=(null===r||void 0===r||null===(a=r.split(","))||void 0===a?void 0:a.map((e=>({label:e.trim(),value:e.trim()}))))||[];return(0,w.jsx)("div",{style:{flexGrow:1},children:(0,w.jsx)(Sr.Z,{id:i,value:null!==(s=m[i])&&void 0!==s?s:"",error:!!f.errors[i],errorText:null===(l=f.errors[i])||void 0===l?void 0:l.message,placeholder:e.name,onChange:e=>g(i,e),options:t})},i)}return null}))]},e)}))})]}),!!t.length&&(0,w.jsx)(ni.k,{justifyContent:"flex-end",children:(0,w.jsx)(d.zx,{type:"submit",children:(0,Dn.t)({id:"Save",defaultMessage:"Save"})})})]})};var fi=n(84257),mi=n(28230);const gi=()=>{const{isWorkspaceMrv:e}=(0,M.c)(),t=(0,h.T)(),{currentUser:n,refetchCurrentUser:r}=(0,Wr.x)();return(0,w.jsxs)("div",{className:"user-settings-inner-container",children:[(0,w.jsx)(oi.qp,{children:n?(0,w.jsx)(fi.c,{user:n,handleOnFormSubmit:async e=>{if(null!==n&&void 0!==n&&n.settings&&null!==n&&void 0!==n&&n.settings.company)try{await t((0,Yr.Lj)({...n.settings,...e,company:{...n.settings.company,country:e.country,street:e.street,state:e.state,city:e.city,zip:e.zip}})),r(),(0,Gr.yP)(Gr.$$.LANG,e.langLocale)}catch(i){}}}):null}),(0,w.jsx)(oi.qp,{children:(0,w.jsx)(mi.t,{})}),e&&"new"!==(null===n||void 0===n?void 0:n.id)&&(0,w.jsx)(hi,{})]})},yi=()=>{const e=(0,h.T)(),{isWorkspaceMrv:t}=(0,M.c)(),n=(0,f.YB)();return(0,r.useEffect)((()=>{tr.Z.track("Visit profile page")}),[]),(0,r.useEffect)((()=>{t&&e((0,qr.EA)())}),[t,e]),(0,w.jsx)(Hr.I,{id:"profile-dialog",title:n.formatMessage({id:"User profile",defaultMessage:"User profile"}),className:"profile-dialog",open:!0,onClose:()=>e((e=>{e((0,b.qO)(b.iR.profile,!1)),(0,o.m)("profile-dialog",null)})),maxWidth:"lg",children:(0,w.jsx)(d.cZ,{children:(0,w.jsx)("div",{className:"user-settings-container",children:(0,w.jsx)("div",{className:"user-settings-content",children:(0,w.jsx)(gi,{})})})})})},vi=()=>{const{workspaceLink:e}=(0,M.c)(),t=(0,h.T)(),n=(0,h.C)((e=>(0,Or.zn)(e,b.iR.profile))),i=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsIntegration))),o=(0,u.TH)().pathname.includes("profile/integration");return(0,r.useEffect)((()=>{o||n?o&&!i&&t((0,b.qO)(b.iR.fmsIntegration,!0)):t(Zr())}),[t,n,o,i]),(0,w.jsx)(u.l_,{to:e})};var bi=n(67925);const _i=e=>{let{onClick:t,expanded:n}=e;return(0,w.jsx)(d.xu,{onClick:t,children:(0,w.jsx)(d.le,{fontSize:"h5",type:n?"chevron-up":"chevron-down"})})};var wi=n(67547),xi=n(44530),ki=n(19303),Ci=n(74942),Si=n(70044),Mi=n(55006),Ti=n(66793);const Ei=(0,yr.P1)([_.dl],(e=>e.filter((e=>(null===e||void 0===e?void 0:e.source)!==br.QT.User)))),Pi=20,Ii=()=>{var e;const t=(0,h.T)(),{stageId:n,projectId:i,isEnrollment:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsSyncDialog))),s=(0,h.C)((e=>(0,_.d1)(e,o?br.t5.Enrolment:br.t5.Monitoring))),l=null===s||void 0===s?void 0:s.id,c=(0,h.C)((e=>(0,_.M0)(e,n))),[u,p]=(0,r.useState)([]),[m,g]=(0,r.useState)({}),y=(0,h.C)((e=>(0,_.Yn)(e,i))),v=(0,h.C)((e=>(0,_.Ok)(e,i))),x=(0,f.YB)();Li();const k=(0,r.useCallback)((()=>{t((0,b.qO)(b.iR.fmsSyncDialog,!1))}),[t]),C=(0,Mi.h$)(v),{farmIds:S,farms:M,flatFieldsObjects:T,importedFieldsByFarm:E}=(0,r.useMemo)((()=>{const e={},t={};return y.forEach((n=>{const r=null===n||void 0===n?void 0:n.farm_id;var i;r&&(t[n.core_attributes.external_service_id]=n,e[r]||(e[r]={fields:[],name:n.core_attributes.farm_name}),null===(i=e[r])||void 0===i||i.fields.push(n))})),{farmIds:Object.keys(e).map((e=>parseInt(e,10))),farms:e,flatFieldsObjects:t,importedFieldsByFarm:Object.values(e).flatMap((e=>e.fields))}}),[y]),P=`${u.length} ${(0,xi.E4)("field",u)} selected`,I=[br.UY.WINTER_CROPS,br.UY.SUMMER_CROPS,br.UY.HISTORICAL_CROP_ROTATION,br.UY.CROP_EVENTS,br.UY.TILLAGE],O=(null===c||void 0===c?void 0:c.type_)&&I.includes(c.type_),L=(0,ki.$s)(null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date),R=(0,xr.nh)(xr.hn.FMS_ENABLED_PROGRAM),j=null!==(e=a&&R&&O&&L)&&void 0!==e&&e;return(0,w.jsxs)(d.o9,{onClose:k,title:x.formatMessage({id:"Import from FMS",defaultMessage:"Import from FMS"}),open:v===Ti.F.JohnDeere&&j,id:"fms-sync-dialog",maxWidth:"md",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",children:x.formatMessage({id:"Fms.Sync.ImportMessage",defaultMessage:"You have imported the following field boundaries from {externalServiceLabel}. Select the fields for which you want to import data. To optimize performance, a maximum of 20 fields can be selected at a time."},{externalServiceLabel:C})}),(0,w.jsx)(d.ZT,{color:"secondary",children:x.formatMessage({id:"Fms.Sync.ImportMessageSubHeader",defaultMessage:"We will import compatible crop and tillage events."})}),(0,w.jsxs)(d.xu,{border:e=>`1px solid ${e.palette.grey[200]}`,padding:4,my:4,borderRadius:2,children:[S.length>1&&(0,w.jsx)(d.t8,{control:(0,w.jsx)(d.XZ,{onChange:e=>(e=>{if(e){const e=E.slice(0,Pi);p(e.map((e=>{var t;return null===e||void 0===e||null===(t=e.core_attributes)||void 0===t?void 0:t.external_service_id})))}else p([])})(e.target.checked),value:y.length===u.length,checked:u.length===Pi||y.length===u.length}),label:x.formatMessage({id:"SelectLabel.Mrv.Select all",defaultMessage:"Select all"})}),S.map((e=>{var t,n,i;const o=null!==(t=null===(n=M[e])||void 0===n?void 0:n.fields)&&void 0!==t?t:[],a=null===(i=M[e])||void 0===i?void 0:i.name,s=null===o||void 0===o?void 0:o.filter((e=>u.includes(e.core_attributes.external_service_id))),l=o.length===s.length,c=u.length>=Pi&&!l;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsxs)(d.xu,{pl:4,py:2,display:"flex",width:"100%",justifyContent:"space-between",children:[(0,w.jsx)(d.t8,{disabled:c,control:(0,w.jsx)(d.XZ,{onChange:e=>((e,t)=>{if(t){const t=e.slice(0,Pi-u.length);p([...new Set([...u,...t.map((e=>e.core_attributes.external_service_id))])])}else p(u.filter((t=>!e.find((e=>e.core_attributes.external_service_id===t)))))})(o,e.target.checked),value:l,checked:l}),label:a+Oi(o,s)}),(0,w.jsx)(_i,{onClick:()=>(e=>{g({...m,[e]:!m[e]})})(e),expanded:!!m[e]})]}),m[e]&&(0,w.jsx)(d.xu,{pl:12,children:null===o||void 0===o?void 0:o.map((e=>{const t=e.core_attributes.external_service_id,n=u.includes(t),r=u.length>=Pi&&!n;return(0,w.jsx)(d.xu,{py:2,children:(0,w.jsx)(d.t8,{disabled:r,control:(0,w.jsx)(d.XZ,{onChange:e=>((e,t)=>{p(t?[...new Set([...u,e])]:u.filter((t=>e!==t)))})(t,e.target.checked),value:n,checked:n}),label:e.core_attributes.field_name})},t)}))})]},e)}))]}),(0,w.jsx)("div",{className:"disconnect-fms-container",children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:1,children:[(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.ZT,{variant:"body1",fontWeight:"bold",children:P})}),(0,w.jsx)(d.rU,{component:"button",onClick:async()=>{v===Ti.F.JohnDeere?await Nr.be.logOut():v===Ti.F.Climate&&await Nr.Po.logOut(),k(),t((0,b.qO)(b.iR.fmsSyncLoggedOutDialog,!0)),t((0,Ci.o9)(v))},color:"secondary",children:x.formatMessage({id:"BtnLabel.LogoutOf",defaultMessage:"Logout of {externalServiceLabel}"},{externalServiceLabel:C})})]})})]}),(0,w.jsx)(d.kX,{children:(0,w.jsxs)(d.xu,{width:"100%",display:"flex",justifyContent:"space-between",children:[(0,w.jsx)(d.zx,{onClick:k,color:"secondary",variant:"outlined",children:x.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})}),(0,w.jsxs)(d.xu,{gap:2,alignItems:"center",display:"flex",children:[(0,w.jsx)(d.zx,{onClick:k,color:"secondary",variant:"outlined",children:x.formatMessage({id:"BtnLabel.Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{disabled:!u.length,onClick:async()=>{var e;const n=[],r={fields:[]},o=[],a=[];u.forEach((e=>{const t=T[e];switch(t||alert(`no field ${e}`),null===t||void 0===t?void 0:t.core_attributes.external_service){case"john_deere":case Ti.F.JohnDeere:{const n={field_id:e,org_id:null===t||void 0===t?void 0:t.core_attributes.external_grower_id};r.fields?r.fields.push(n):r.fields=[n];break}case Ti.F.Climate:n.push(e);break;case Ti.F.Smag:o.push(e),a.push(`${null===t||void 0===t?void 0:t.farm_id}`)}})),n.length&&t((0,Ci.h_)({fieldIds:n,phaseId:l})),null!==(e=r.fields)&&void 0!==e&&e.length&&l&&i&&t((0,Ci.bX)({payload:r,phaseId:l,projectId:i,stage:null===c||void 0===c?void 0:c.type_})),o.length&&await t((0,Ci.nd)(o,a,l)),tr.x.track("FMS_sync_operations"),k()},children:x.formatMessage({id:"BtnLabel.ImportFromFms",defaultMessage:"Import"})})]})]})})]})},Oi=(e,t)=>e?` (${(null===t||void 0===t?void 0:t.length)||0}/${e.length})`:"",Li=()=>{const e=(0,h.T)(),t=(0,h.C)(_.aH),n=(0,h.C)(Ei),i=(0,h.C)((e=>(0,_.Yn)(e,t))),o=(0,h.C)((e=>(0,_.Ok)(e,t))),a=(0,h.C)(Si.vJ),s=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),l=(0,h.C)((e=>(0,Or._X)(e,b.iR.fmsSyncDialog))),c=l.phaseId||(null===s||void 0===s?void 0:s.id),u=(0,h.C)((e=>((e,t)=>{var n;return null===(n=e.helpers.asyncStatuses[t])||void 0===n?void 0:n.status})(e,b.jB.authorizedPlatforms))),[d,p]=(0,r.useState)(!0),f="true"===(0,wi.Kx)().get("tableView");(0,r.useEffect)((()=>{u===b.qb.Todo&&e((0,Ci.Og)())}),[]),(0,r.useEffect)((()=>{var t;d&&c&&f&&u===b.qb.Done&&o&&null!==(t=a[o])&&void 0!==t&&t.authorized&&null!==i&&void 0!==i&&i.length&&!n.length&&(e((0,b.qO)(b.iR.fmsSyncDialog,!0,{phaseId:c})),p(!1))}),[n,i,u,o,a,d,c,e,f])};var Ri=n(61676),ji=n(26104),Di=n(75573),Ai=n(19299);const Ni=()=>{const e=(0,h.T)(),t=(0,r.useCallback)((()=>{e((0,Ci.UZ)(null))}),[e]);return(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:t,children:(0,w.jsx)(f._H,{id:"BtnLabel.Back",defaultMessage:"Back"})})},Fi=(0,Z.ZP)(Ai.L)`
  padding: 10px 15px;
  border-end-start-radius: ${e=>{let{theme:t}=e;return t.borderRadius.small}};
  border-end-end-radius: ${e=>{let{theme:t}=e;return t.borderRadius.small}};
  border-top: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.subtle}};
  display: flex;
  justify-content: space-between;
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
`;var zi=n(73612);const Bi={green:"#5fb854",gray:"#c2c2c2"},Ui=e=>{let{status:t,className:n}=e;return(0,w.jsx)(zi.C,{inline:!0,size:13,color:Bi[t],className:s()("fluro-status-circle",t,n)})};function $i(e){let{authorized:t,onAuthorize:n,onLogout:r,platform:i,loading:o,hideAuthControls:a}=e;const s=(0,h.T)(),l=!!(0,h.C)(Si.B8);const c=(0,Mi.tF)(i),u=(0,Mi.y8)(i),p=(0,Mi.MW)(i),m=!1;return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",flexDirection:"column",borderRadius:"4px",padding:2,border:e=>`1px solid ${e.palette.semanticPalette.stroke.secondary}`,onClick:function(){l||s((0,Ci.UZ)(i))},style:{cursor:"pointer"},children:[(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:4,children:[(0,w.jsx)(qi,{alt:c,src:c}),(0,w.jsxs)("div",{children:[(0,w.jsx)(d.ZT,{variant:"h4",children:u}),(0,w.jsx)(d.ZT,{variant:"body2",children:p})]}),l&&o&&(0,w.jsx)(Zi,{children:(0,w.jsx)(On.D8,{id:`${p}-loader`})})]}),l&&!a&&(0,w.jsx)(Vi,{authorized:t,onAuthorize:n,onLogout:r}),!l&&(0,w.jsx)(d.xu,{display:"flex",gap:2,alignItems:"center",children:t?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ui,{status:"green"}),(0,w.jsx)(f._H,{id:"Connected",defaultMessage:"Connected"})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ui,{status:"gray"}),(0,w.jsx)(f._H,{id:"Not connected",defaultMessage:"Not connected"})]})})]}),m]})}function Vi(e){let{authorized:t,onAuthorize:n,onLogout:r}=e;return t?(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:2,children:[(0,w.jsx)(d.zx,{onClick:n,children:(0,w.jsx)(f._H,{id:"Re-authorize",defaultMessage:"Re-authorize"})}),r&&(0,w.jsx)(d.zx,{onClick:r,children:(0,w.jsx)(f._H,{id:"Log Out",defaultMessage:"Log Out"})})]}):(0,w.jsx)(d.zx,{color:"primary",onClick:n,children:(0,w.jsx)(f._H,{id:"Login",defaultMessage:"Login"})})}const qi=Z.ZP.img`
  width: 35px;
  height: 35px;
  align-self: center;
`,Zi=Z.ZP.div`
  display: flex;
  align-items: center;
  margin-left: 8px;

  .md-progress {
    margin: 0;
  }
`;var Hi=n(39952);var Gi=n(50707);const Wi=e=>(0,w.jsx)(Gi.Ln,{...e,onClick:(e,t)=>{t.includes("help.flurosense.com")&&tr.Z.openKnowledgeBase(t)}});var Yi=n(92299);function Ki(e){let{entity:t,entities:n,selectedEntities:i,setSelectedEntities:o}=e;const[a,s]=(0,r.useState)(!1),l=i.selected[t.type].has(t.id),c=t.type!==Hi.e.Field&&i.partiallySelected[t.type].has(t.id),u=i.selected[Hi.e.Field].size>=Pi,p=!l&&u&&!c&&u,h=(0,r.useCallback)((e=>{let t;return(0,Mi.bV)(n,(n=>{if(n.id===e)return t=n,"break"})),t}),[n]);function f(e,t){t.selected[e.type].add(e.id),e.type!==Hi.e.Field&&t.partiallySelected[e.type].delete(e.id)}function m(e,t){t.selected[e.type].delete(e.id),e.type!==Hi.e.Field&&t.partiallySelected[e.type].add(e.id)}function g(e,t){t.selected[e.type].delete(e.id),e.type!==Hi.e.Field&&t.partiallySelected[e.type].delete(e.id)}const y=(0,r.useCallback)(((e,n)=>{o((r=>{const i={selected:{[Hi.e.Organization]:new Set(r.selected[Hi.e.Organization]),[Hi.e.Owner]:new Set(r.selected[Hi.e.Owner]),[Hi.e.Farm]:new Set(r.selected[Hi.e.Farm]),[Hi.e.FieldGroup]:new Set(r.selected[Hi.e.FieldGroup]),[Hi.e.Field]:new Set(r.selected[Hi.e.Field])},partiallySelected:{[Hi.e.Organization]:new Set(r.partiallySelected[Hi.e.Organization]),[Hi.e.Owner]:new Set(r.partiallySelected[Hi.e.Owner]),[Hi.e.Farm]:new Set(r.partiallySelected[Hi.e.Farm]),[Hi.e.FieldGroup]:new Set(r.partiallySelected[Hi.e.FieldGroup])}};if((0,Mi.bV)([t],(t=>{let{id:r,type:o}=t;if(e||n){if(i.selected[Hi.e.Field].size>=Pi)return"break";i.selected[o].add(r),n&&o!==Hi.e.Field&&i.partiallySelected[o].delete(r)}else i.selected[o].delete(r)})),(0,er.$K)(t.parentId)){let e=h(t.parentId);for(;void 0!==e;){const t=e.children.every((e=>i.selected[e.type].has(e.id))),n=e.children.some((e=>i.selected[e.type].has(e.id)||e.type!==Hi.e.Field&&i.partiallySelected[e.type].has(e.id)));t?f(e,i):n?m(e,i):g(e,i),e=e.parentId?h(e.parentId):void 0}}return i}))}),[t,h,o]);return t.type===Hi.e.Field?(0,w.jsx)(d.xu,{margin:2,children:(0,w.jsx)(d.t8,{label:t.name,disabled:p,control:(0,w.jsx)(d.XZ,{checked:l,onChange:e=>y(e.target.checked,!1)})})}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",margin:2,children:[(0,w.jsx)(d.t8,{label:t.name,control:(0,w.jsx)(d.XZ,{indeterminate:c,disabled:p,checked:l,onChange:e=>y(e.target.checked,c)})}),(0,w.jsx)(_i,{onClick:()=>s((e=>!e)),expanded:a})]}),a&&(0,w.jsx)(d.xu,{ml:5,children:t.children.map((e=>(0,w.jsx)(Ki,{entity:e,entities:n,selectedEntities:i,setSelectedEntities:o},e.id)))})]})}function Xi(e){var t;let{entities:n,selectedEntities:i,setSelectedEntities:o,platform:a}=e;const[s,l]=(0,r.useState)(null===(t=n[0])||void 0===t?void 0:t.type),[c,u]=(0,r.useState)(""),p=(0,Yi.c)(c,200),h=(0,r.useMemo)((()=>{const e=new Set;return(0,Mi.bV)(n,(t=>{let{type:n,children:r}=t;if(e.add(n),0===r.length)return"break"})),[...e].map((e=>({label:(0,Mi.Nd)(e,a),value:e})))}),[n,a]),m=(0,r.useMemo)((()=>{if(!s)return n;const e=[];return(0,Mi.bV)(n,(t=>{if(e.length>0&&t.type!==s)return"break";t.type===s&&t.name.toLowerCase().includes(p.toLowerCase())&&e.push(t)}),{siblingsProcessedBeforeChildren:!0}),e.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"})))}),[n,s,p]),g=e=>{const t=[...n];for(;t.length>0;){const n=t.pop();if((null===n||void 0===n?void 0:n.id)===e)return n;null!==n&&void 0!==n&&n.children&&t.push(...n.children)}},y=(0,r.useCallback)((e=>{const t=(0,Mi.wg)();e?(0,Mi.bV)(m.length?m:n,(e=>{let{type:n,id:r}=e;if(t.selected.field.size>=Pi)return"break";t.selected[n].add(r)})):(0,Mi.bV)(m.length?m:n,(e=>{let{type:n,id:r}=e;t.selected[n].delete(r)}));Array.from(t.selected.field).forEach((e=>{let n=g(e);for(;null!==(r=n)&&void 0!==r&&r.parentId;){var r;const e=g(n.parentId);if(null===e||void 0===e||!e.children)break;const{children:i,type:o,id:a}=e,s=i.every((e=>t.selected[e.type].has(e.id))),l=i.some((e=>t.selected[e.type].has(e.id)||e.type!==Hi.e.Field&&t.partiallySelected[e.type].has(e.id)));s?(t.selected[o].add(a),o!==Hi.e.Field&&t.partiallySelected[o].delete(a)):l?(t.selected[o].delete(a),o!==Hi.e.Field&&t.partiallySelected[o].add(a)):(t.selected[o].delete(a),o!==Hi.e.Field&&t.partiallySelected[o].delete(a)),n=e}})),o(t)}),[o,m,n]),v=m[0],b=void 0!==(null===v||void 0===v?void 0:v.type)?i.selected[null===v||void 0===v?void 0:v.type]:void 0;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",my:2,children:[(0,w.jsx)(d.ZT,{variant:"body1",color:"secondary",children:(0,w.jsx)(f._H,{id:"Select farms and fields to import.",defaultMessage:"Select farms and fields to import."})}),(0,w.jsx)(Wi,{blank:!0,external:!0,href:"https://help.app.regrow.ag/en/collections/2564248-integrations",children:(0,w.jsx)(d.le,{type:"question-circled",fontSize:"h5",color:"secondary"})})]}),h.length>0&&(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:5,justifyContent:"space-between",my:4,alignContent:"start",children:[(0,w.jsxs)(d.NI,{fullWidth:!0,children:[(0,w.jsx)(d.lX,{children:(0,w.jsx)(f._H,{id:"Filter by",defaultMessage:"Filter by"})}),(0,w.jsx)(d.xu,{mt:2,children:(0,w.jsx)(d.mg,{id:"filter-by-select",label:(0,w.jsx)(f._H,{id:"Filter by",defaultMessage:"Filter by"}),options:h,fullWidth:!0,value:s,onChange:e=>l(e.target.value)})})]}),(0,w.jsx)(d.xu,{minWidth:"50%",children:(0,w.jsx)(d.nv,{id:"filter-by-input",fullWidth:!0,label:(0,w.jsx)(f._H,{id:"Search",defaultMessage:"Search"}),value:c,onChange:e=>u(`${e.target.value}`)})})]}),m.length>1&&(0,w.jsx)(d.xu,{margin:2,children:(0,w.jsx)(d.t8,{label:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(f._H,{id:"Select all",defaultMessage:"Select all"})," ",v?(0,Mi.Nd)(null===v||void 0===v?void 0:v.type,a):null," ",null===b||void 0===b?void 0:b.size,"/",m.length]}),control:(0,w.jsx)(d.XZ,{indeterminate:!(null===b||void 0===b||!b.size)&&!((null===b||void 0===b?void 0:b.size)===m.length),checked:(null===b||void 0===b?void 0:b.size)===m.length||i.selected.field.size===Pi,onChange:e=>y(e.target.checked)})})}),0===m.length&&(0,w.jsx)(f._H,{id:"No {entityType} found.",defaultMessage:"No {entityType} found.",values:{entityType:(0,Mi.Nd)(s,a)}}),m.map(((e,t)=>(0,w.jsx)(Ki,{entity:e,entities:n,selectedEntities:i,setSelectedEntities:o},t)))]})}function Ji(e){var t;let{platform:n,syncStatus:i,authorized:o}=e;const a=(0,f.YB)(),s=(0,h.T)(),l=(0,h.C)(_.Fu),{stageId:c}=(0,gr.B)(),u=null===(t=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))))||void 0===t?void 0:t.id,p=(0,h.C)(_.aH),m=(0,h.C)((e=>(0,_.M0)(e,c))),[g,y]=(0,r.useState)([]),[v,x]=(0,r.useState)((0,Mi.wg)()),[k,C]=(0,r.useState)(!1),S=(0,h.C)((e=>e.helpers.asyncStatuses[b.jB.authorizedPlatforms].status===b.qb.Pending)),[M,T]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!M&&o&&async function(e){try{C(!0),y(await async function(e){const t={[Ti.F.AgriWebb]:async()=>(await ji.E.getFarms()).data.map((e=>{var t;return{id:e.id,name:e.name,type:Hi.e.Farm,children:(null===(t=e.fields)||void 0===t?void 0:t.map((t=>({id:t.id,parentId:e.id,name:t.name,type:Hi.e.Field,children:[]}))))||[]}})),[Ti.F.Agworld]:async()=>async function(e){return await Promise.all(e.map((async e=>{const t=(await Nr.cf.getFarms(e.guid)).data;return{id:e.guid,name:e.name,type:Hi.e.Owner,children:await Promise.all(t.map((async t=>{const n=(await Nr.cf.getFields(t.guid)).data;return{id:t.guid,parentId:e.guid,name:t.name,type:Hi.e.Farm,children:n.map((e=>({id:e.guid,parentId:t.guid,name:e.name,type:Hi.e.Field,children:[]})))}})))}})))}((await Nr.cf.getGrowers()).data),[Ti.F.Agx]:async()=>async function(e){const t=e.result.map((async e=>(await Nr.a0.getFarms(e.ID)).data)),n=(await Promise.all(t)).map((e=>e.result)).flat();return await Promise.all(n.map((async e=>({id:e.ID,name:e.Name,type:Hi.e.Farm,children:(await Nr.a0.getFields(e.GrowerID,e.ID)).data.result.map((t=>({id:t.ID,parentId:e.ID,name:t.Name,type:Hi.e.Field,children:[]})))}))))}((await Nr.a0.getGrowers()).data),[Ti.F.Climate]:async()=>{return e=(await Nr.Po.getFarms()).data,Object.keys(e.result.farms).map((t=>{var n,r,i,o,a;return{id:t,name:null!==(n=null===(r=e.result.farms[t])||void 0===r||null===(i=r[0])||void 0===i?void 0:i.farm_name)&&void 0!==n?n:"",type:Hi.e.Farm,children:null!==(o=null===(a=e.result.farms[t])||void 0===a?void 0:a.map((e=>{let{field_name:n,field_id:r}=e;return{id:r,parentId:t,name:n,type:Hi.e.Field,children:[]}})))&&void 0!==o?o:[]}}));var e},[Ti.F.JohnDeere]:async()=>(await Nr.be.getEntities()).data,[Ti.F.Smag]:async()=>(await Di.g.getEntities()).data},n=await t[e]();return eo(n)}(e)),T(!0)}catch(t){s((0,Ci.ZJ)(e,!1)),(0,Yn.c)({title:a.formatMessage({id:"note.error",defaultMessage:"Error"}),message:a.formatMessage({id:"IntegrationPlatform.FetchEntitiesError",defaultMessage:"Couldn't fetch {platform} entities."},{platform:(0,Mi.h$)(e)}),type:"error"})}finally{C(!1)}}(n)}),[o,s,M,a,n]);const E=!v.selected[Hi.e.Field].size;return(0,w.jsxs)(d.xu,{mt:2,className:"integration-platform selected",children:[(0,w.jsx)($i,{authorized:o,onAuthorize:()=>{return e=n,void window.location.assign((0,Mi.Zd)(e,l));var e},onLogout:(0,Mi.X1)(n)?()=>async function(e){switch(e){case Ti.F.Climate:await Nr.Po.logOut(),s((0,Ci.ZJ)(Ti.F.Climate,!1));break;case Ti.F.JohnDeere:await Nr.be.logOut(),s((0,Ci.ZJ)(Ti.F.JohnDeere,!1));break;default:throw new Error(`logout is not implemented for FMSPlatform: ${e}`)}}(n):void 0,platform:n,loading:k||S}),(0,w.jsx)(d.xu,{paddingX:4,children:g.length>0&&(0,w.jsx)(Xi,{platform:n,entities:g,selectedEntities:v,setSelectedEntities:x})}),(0,w.jsxs)(Fi,{children:[(0,w.jsx)(Ni,{}),o&&!k&&g.length>0&&(0,w.jsx)(d.u,{id:"fms-integration-platform-import-button-tooltip",title:E?(0,w.jsx)(f._H,{id:"Select farms and fields to import.",defaultMessage:"Select farms and fields to import."}):null,children:(0,w.jsx)("div",{children:(0,w.jsxs)(d.fl,{variant:"contained",color:"primary",disabled:E,loading:i===Ri.e.Loading,onClick:function(){tr.Z.track("Add new fields from FMS");const e=to(v,Hi.e.Field),t=to(v,Hi.e.Farm),r=to(v,Hi.e.Owner);switch(n){case Ti.F.AgriWebb:s((0,Ci.mH)(e,t,u));break;case Ti.F.Agworld:u&&s((0,Ci.G3)({growers:r,farms:t,fields:e},p,u));break;case Ti.F.Agx:s((0,Ci.yq)({growerIds:r,farmIds:t,fieldIds:e}));break;case Ti.F.Climate:s((0,Ci.h_)({fieldIds:e,phaseId:u}));break;case Ti.F.JohnDeere:const i=function(e,t){const n={orgs:[...e.selected[Hi.e.Organization]]},r=t.map((e=>({entity:e,orgId:e.id})));for(;r.length>0;){const{entity:t,orgId:i}=r.pop();for(const o of t.children){switch(o.type){case Hi.e.Organization:throw new Error("Unexpected child Organization in FMS Sync integration");case Hi.e.Owner:if(!e.selected[Hi.e.Owner].has(o.id))break;const t={org_id:i,client_id:o.id};n.clients?n.clients.push(t):n.clients=[t];break;case Hi.e.Farm:if(!e.selected[Hi.e.Farm].has(o.id))break;const r={org_id:i,farm_id:o.id};n.farms?n.farms.push(r):n.farms=[r];break;case Hi.e.Field:if(!e.selected[Hi.e.Field].has(o.id))break;const a={org_id:i,field_id:o.id};n.fields?n.fields.push(a):n.fields=[a]}r.push({entity:o,orgId:i})}}return n}(v,g);s((0,Ci.Uw)({payload:i,stage:null===m||void 0===m?void 0:m.type_}));break;case Ti.F.Smag:s((0,Ci.nd)([...v.selected[Hi.e.Field]],[...v.selected[Hi.e.Farm]],u));break;default:throw new Error(`sync is not implemented for FMSPlatform: ${n}`)}},children:[(0,w.jsx)(f._H,{id:"Import",defaultMessage:"Import"}),v.selected[Hi.e.Field].size?` ${v.selected[Hi.e.Field].size} `:" ",(0,Mi.Nd)(Hi.e.Field,n)]})})})]})]})}const Qi=e=>(e.children.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))),e.children.forEach(Qi),e),eo=e=>(e.forEach(Qi),e.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))));function to(e,t){return t===Hi.e.Field?[...e.selected[t]]:[...e.selected[t],...e.partiallySelected[t]]}function no(){const{isWorkspaceMrv:e}=(0,M.c)(),t=(0,h.T)(),n=(0,h.C)(_.zq),i=(0,f.YB)(),o=(0,h.C)(Si.B8),a=(0,h.C)(Si.vJ),s=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsIntegration))),l=(0,h.C)((e=>(0,Qn.XE)(e,b.jB.authorizedPlatforms)));(0,r.useEffect)((()=>(l===b.qb.Todo&&t((0,Ci.Og)()),()=>{t((0,Ci.UZ)(null))})),[l,t]);const c=(0,r.useMemo)((()=>o?i.formatMessage({id:"FMS.ImportFieldsFromFMS",defaultMessage:"Import fields from your FMS"}):i.formatMessage({id:"FMS.ConnectToYourFMS",defaultMessage:"Connect to your FMS"})),[o,e,i]),{topSectionPlatforms:u,bottomSectionPlatforms:p}=(0,r.useMemo)((()=>{var t,r;let i=[],o=[];if(e&&(null===n||void 0===n||null===(t=n.fms_options)||void 0===t||!t.length))return{topSectionPlatforms:i,bottomSectionPlatforms:o};const s=(e&&null!==n&&void 0!==n&&null!==(r=n.fms_options)&&void 0!==r&&r.length?n.fms_options.map(ro).filter(er.$K):(0,ii._J)(Ti.F)).sort();for(const e of s)a[e].authorized?i.push(e):o.push(e);return 0===i.length&&(i=s,o=[]),{topSectionPlatforms:i,bottomSectionPlatforms:o}}),[e,null===n||void 0===n?void 0:n.fms_options,a]);return l===b.qb.Pending?(0,w.jsx)(d.xu,{height:400,maxHeight:"90vh",display:"flex",alignItems:"center",justifyContent:"center",children:(0,w.jsx)(On.D8,{id:"loading-connection-status"})}):(0,w.jsx)(d.o9,{id:"integration-platforms--dialog",title:c,description:e&&o&&i.formatMessage({id:"FMS.ImportFieldsFromFMS.Description",defaultMessage:"To optimize performance, a maximum of {FieldSelectionLimit} fields can be selected at a time."},{FieldSelectionLimit:Pi}),open:!!s,onClose:()=>{t((0,b.qO)(b.iR.fmsIntegration,!1)),t((0,b.qO)(b.iR.addNewField,!0)),t((0,y.hT)(!0))},maxWidth:"md",children:(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(io,{children:[!o&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"body1",color:"secondary",children:(0,w.jsx)(f._H,{id:"Select where you would like to import your fields from.",defaultMessage:"Select where you would like to import your fields from."})}),(0,w.jsx)(d.xu,{mt:2,children:(0,w.jsxs)(d.xu,{flexGrow:1,flexBasis:0,children:[u.map((e=>(0,w.jsx)("div",{className:"integration-platform",children:(0,w.jsx)($i,{authorized:a[e].authorized,platform:e})},e))),p.length>0&&(0,w.jsxs)(d.UQ,{children:[(0,w.jsx)(d._O,{sx:{"&.MuiButtonBase-root":{padding:0}},children:(0,w.jsx)(f._H,{id:"Show more",defaultMessage:"Show more"})}),(0,w.jsx)(d.rN,{sx:{"&&":{padding:0}},children:(0,w.jsx)(w.Fragment,{children:p.map((e=>(0,w.jsx)("div",{className:"integration-platform",children:(0,w.jsx)($i,{platform:e})},e)))})})]})]})})]}),o&&(0,w.jsx)(Ji,{platform:o,syncStatus:a[o].syncStatus,authorized:a[o].authorized}),!o&&(0,w.jsxs)(d.xu,{pt:3,pb:3,width:"100%",color:e=>e.palette.secondary.main,children:[(0,w.jsx)(f._H,{id:"Don't see your FMS?",defaultMessage:"Don't see your FMS?"})," ",(0,bi.Bv)(`${i.formatMessage({id:"Contact us",defaultMessage:"Contact us"})}.`)]})]})})})}function ro(e){switch(e){case"John Deere":return Ti.F.JohnDeere;case"Climate FieldView":return Ti.F.Climate;case"Proagrica":return Ti.F.Agx;case"Agworld":return Ti.F.Agworld;case"AgriWebb":return Ti.F.AgriWebb;case"Smag":return Ti.F.Smag}}const io=(0,d.zo)(d.xu)`
  flex-grow: 1;
  flex-basis: 0;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  display: flex;
  overflow: visible;
  h3 {
    margin-top: 0;
  }

  .integration-platform {
    position: relative;
    border: 1px solid ${e=>{let{theme:t}=e;return t.palette.divider}};
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: ${e=>{let{theme:t}=e;return t.palette.background.paper}};
    flex-grow: 1;
    display: flex;
    gap: 10px;
    flex-direction: column;

    &.selected,
    &:hover {
      border-color: ${e=>{let{theme:t}=e;return t.palette.grey[300]}};
    }

    &__colored-border {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 4px;
      width: 100%;
      border-bottom-right-radius: 3px;
      border-bottom-left-radius: 3px;
    }

    &__description {
      margin-top: 12px;
    }

    &__sync-status {
      color: $main-app-color;
      margin-right: 10px;
      animation: spin 4s linear infinite;
    }

    &.john-deere {
      .request-to-connect {
        font-size: 16px;
        padding-left: 15px;
        margin-top: 10px;
      }

      .filter-by {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 10px;

        &--selector {
          margin-right: 20px;
          min-width: 250px;
        }

        &--text-input {
          width: auto;
          flex-grow: 1;
        }
      }
    }

    .pagination {
      .md-table-column {
        // fix a strange bug when you see the table and open a pop-up
        text-align: right;
        .md-table-pagination {
          margin-left: 0 !important;
        }
      }

      .md-data-table--responsive {
        overflow: hidden; // just hide the 1px scroll
      }
      .md-table-pagination:empty {
        display: none;
      }
      .md-table-column--adjusted {
        padding-right: 0;
      }
      .md-table-pagination--controls {
        position: static;
      }
    }
  }
`,oo=()=>{const e=(0,r.useMemo)((()=>(0,jn._j)()),[]),t=(0,h.T)(),n=(0,f.YB)(),{payload:i={}}=(0,h.C)((e=>(0,Or._X)(e,b.iR.editFieldName))),{field:o,farmId:a}=i,[s,l]=(0,r.useState)(o.Name||"");return(0,w.jsx)(d.o9,{id:`field-${e}`,open:!0,title:n.formatMessage({id:"Edit name",defaultMessage:"Edit name"}),onClose:()=>t((0,b.qO)(b.iR.editFieldName,!1)),children:(0,w.jsxs)("form",{onSubmit:e=>{e.preventDefault(),t((0,y.tM)("Name",s,a,[o.ID])),t((0,b.qO)(b.iR.editFieldName,!1))},children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.nv,{autoFocus:!0,id:`edit-field-name-${e}`,placeholder:n.formatMessage({id:"Field name",defaultMessage:"Field name"}),value:s,label:n.formatMessage({id:"Field name",defaultMessage:"Field name"}),onChange:e=>l(e.target.value),fullWidth:!0})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{disabled:!s.trim()||s===o.Name,type:"submit",children:n.formatMessage({id:"Save name",defaultMessage:"Save name"})})})]})})},ao=()=>{const e=(0,h.C)((e=>(0,Or.zn)(e,b.iR.confirm))),t=(0,h.C)((e=>(0,Or.zn)(e,b.iR.alert))),n=(0,h.C)((e=>(0,Or.zn)(e,b.iR.editFieldName))),r=(0,h.C)((e=>(0,Or.zn)(e,b.iR.editFarmName))),i=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsIntegration))),o=(0,h.C)((e=>(0,Or.zn)(e,b.iR.deleteDialog))),a=(0,h.C)((e=>(0,Or.zn)(e,b.iR.requestFSAccess))),s=(0,h.C)((e=>(0,Or.zn)(e,b.iR.addNewField))),l=(0,h.C)((e=>(0,Or.zn)(e,b.iR.profile)));return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(d.hO,{muiThemeKey:0,children:[e&&(0,w.jsx)(Dr,{}),t&&(0,w.jsx)(jr,{}),n&&(0,w.jsx)(oo,{}),r&&(0,w.jsx)(zr,{}),i&&(0,w.jsx)(no,{}),o&&(0,w.jsx)(Ar,{}),a&&(0,w.jsx)(Vr,{}),s&&(0,w.jsx)(Rr,{}),l&&(0,w.jsx)(yi,{})]})})};var so=n(47978),lo=n(3844);const co=e=>{let{title:t,subtitle:n,actionButton:r}=e;const i=(0,d.Fg)();return(0,w.jsx)(lo.Z,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:"400px",padding:i.spacing(10,5),gap:5,margin:5,borderRadius:2,boxShadow:i.boxShadows.lg,bgcolor:i.palette.semanticPalette.surface.main,children:[(0,w.jsx)("img",{width:"100px",className:"regrow-logo-component",src:"/assets/logos/regrow/regrow_logo.png",alt:"regrow-logo"}),(0,w.jsx)(d.ZT,{variant:"h3",color:i.palette.semanticPalette.text.main,children:t}),(0,w.jsx)(d.ZT,{variant:"body1",color:i.palette.semanticPalette.text.secondary,children:n}),r]})})},uo=()=>{var e;const t=null!==(e=$.default.maintenanceEndTime)&&void 0!==e?e:"shortly",n=(0,f.YB)();return(0,w.jsx)(co,{title:(0,w.jsx)(f._H,{id:"Scheduled maintenance: enhancing your experience",defaultMessage:"Scheduled maintenance: enhancing your experience"}),subtitle:(0,w.jsx)(f._H,{id:"We are performing scheduled maintenance and will be back up {maintenanceEndTime}. If you have an urgent request, please <a>contact support</a>.",defaultMessage:"We are performing scheduled maintenance and will be back up {maintenanceEndTime}. If you have an urgent request, please <a>contact support</a>.",values:{maintenanceEndTime:n.formatMessage({id:t,defaultMessage:t}),a:e=>(0,bi.Bv)(e)}})})};var po=n(9784);const ho=e=>{let{children:t}=e;const n=(0,h.T)(),{email:r,id:i,name:o,createdAt:a,surname:s}=(0,h.C)(S.dy),l=`${o} ${s}`;return $.default.intercomSettings&&(0,U.e)(r)?(0,w.jsx)(F,{appId:$.default.intercomSettings.app_id,onHide:()=>n((0,po.kl)(!1)),onShow:()=>n((0,po.kl)(!0)),onUnreadCountChange:e=>n((0,po.be)(e)),autoBoot:!0,shouldInitialize:!0,autoBootProps:{horizontalPadding:60,verticalPadding:20,hideDefaultLauncher:!0,alignment:$.default.intercomSettings.alignment,customLauncherSelector:"#intercom-launch",email:r,userId:String(i),name:l,createdAt:a},children:t}):(0,w.jsx)(w.Fragment,{children:t})};var fo=n(79320);const mo=e=>{let{children:t}=e;const n=(0,h.T)(),[{token:i,redirectUrl:o}]=(0,fo.H1)(),[a,s]=(0,r.useState)(!0),l=(0,h.C)((e=>e.global.sessionExpired));return(0,r.useEffect)((()=>{i?((0,Gr.yP)(Gr.$$.TOKEN,i),window.location.assign(o||"/")):(async()=>{try{await n((0,Yr.wt)())}catch(ag){"No token set"!==ag&&(0,C.e)(ag)}finally{s(!1)}})()}),[]),(0,r.useEffect)((()=>{l&&s(!1)}),[l]),a?null:t};var go=n(15690),yo=n(3667);class vo extends r.Component{constructor(){super(...arguments),this.addListeners=()=>{window.addEventListener("unhandledrejection",this.handleRejection),window.addEventListener("rejectionhandled",this.handleRejection)},this.removeListeners=()=>{window.removeEventListener("unhandledrejection",this.handleRejection),window.removeEventListener("rejectionhandled",this.handleRejection)},this.errorHandler=e=>{(0,go.Tb)(e)},this.handleRejection=e=>{(0,go.Tb)(new Error(`[promise rejection]: ${e.type}, ${e.target}`))}}componentDidMount(){this.addListeners()}componentWillUnmount(){this.removeListeners()}componentDidCatch(e){this.props.expectedError||e&&("ChunkLoadError"!==e.name?this.errorHandler(e):window.location.reload())}componentDidUpdate(e){if(this.props.userEmail!==e.userEmail){const e=(0,yo.nZ)();e.setUser({email:this.props.userEmail}),e.setLevel("warning")}}render(){return this.props.children}}const bo=(0,c.$j)((e=>{let{login:t}=e;return{userEmail:null===t||void 0===t?void 0:t.user.email}}),{})(vo);var _o=n(53864),wo=n(1398),xo=n(57550);const ko=r.lazy((()=>n.e(160).then(n.bind(n,84160)))),Co=e=>{let{showEvenWhenLoggedIn:t,visible:n}=e;const{isWorkspaceMrv:i}=(0,M.c)();return(0,w.jsx)(d.o9,{className:s()({"embed-login":!0,closeable:t}),open:n,onClose:()=>null,maxWidth:i?"sm":"md",title:"",children:(0,w.jsx)(d.cZ,{children:(0,w.jsx)(r.Suspense,{fallback:(0,w.jsx)(f._H,{id:"Loading...",defaultMessage:"Loading..."}),children:(0,w.jsx)(ko,{embed:!0,showEvenWhenLoggedIn:t})})})})};var So=n(26381);function Mo(e,t,n){const i=(0,r.useRef)(),o=(0,r.useRef)(n);(0,r.useEffect)((()=>{i.current=e}),[e]),(0,r.useEffect)((()=>{o.current=n}),[n]),(0,r.useEffect)((()=>{let e;return async function n(){if(o.current)try{var r;await(null===(r=i.current)||void 0===r?void 0:r.call(i)),e=setTimeout(n,t)}catch(a){(0,C.e)(a)}}(),()=>{clearTimeout(e)}}),[t,n])}var To=n(97165),Eo=n(63114);const Po=()=>{var e;const{stageId:t}=(0,gr.B)(),n=(0,h.C)(_.no);return{validationErrors:null===n||void 0===n||null===(e=n[t])||void 0===e?void 0:e.validation_errors}},Io=[],Oo={};function Lo(e){const t=e?Ro(e):null,{data:n,isLoading:i,error:o,mutate:a}=(0,ai.ZP)(t,{compare:(e,t)=>e===t,revalidateOnFocus:!1}),s=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),{validationErrors:l}=Po(),c=(0,h.T)(),u=(0,r.useCallback)((e=>{let{stageId:t,entityId:r,rowIndex:i,values:o}=e;if(!n)return;const a=n[t]||{},s=[...a[r]||[]],l=s[i];if(null!==l&&void 0!==l&&l.values)for(const n of o)l.values[n.attribute_id]=n;l&&(s[i]=l);return{...n,[t]:{...a,[r]:s}}}),[n]),d=(0,r.useCallback)((async t=>{if(!n||!e)return;const{entityId:r,entityType:i,values:o}=t,l=u(t);await a(l,{revalidate:!1,optimisticData:l});const d=await c((0,Fr.rc)({update:{[r]:o},projectId:e,entityType:i,enableCompletionValidation:s})).unwrap(),p=u({...t,values:d});await a(p,{revalidate:!1,optimisticData:p})}),[n,e,u,a,c,s]),p=(0,r.useCallback)((async t=>{var r;let{entityId:i,stageId:o,entityType:l,values:u}=t;if(!n||!e)return;const d=[];for(const e of u){const t={id:e.id,confirmed:e.confirmed,locked:!1,value:e.value,progress:e.progress,attribute_id:e.attribute_id,attribute_type:e.attribute_type,entity_type:l,row_id:e.row_id};"field"===l?d.push({...t,field_id:i}):d.push(t)}await c((0,Fr.rc)({update:{[i]:d},projectId:e,entityType:l,enableCompletionValidation:s}));const p=n[o]||{},h=[...null!==(r=p[i])&&void 0!==r?r:[]];for(const e of u){const t=h.find((t=>t.row_id===e.row_id));t&&(t.values[e.attribute_id]=e)}const f={...n,[o]:{...p,[i]:h}};await a(f,{revalidate:!1,optimisticData:f})}),[a,c,e,n,s]),f=(0,r.useCallback)((e=>{let{entityId:t,entityType:r,stageEndYear:i,stageId:o,values:s}=e;if(!n)return;const l=n[o]||{},c=[...l[t]||[],...s.map((e=>(0,Eo.v)(r,t,e.row_id,i,{[e.attribute_id]:e})))],u={...n,[o]:{...l,[t]:c}};a(u,{revalidate:!1,optimisticData:u})}),[a,n]),m=(0,r.useCallback)((e=>{if(!n)return Io;const t=(0,ii._J)(n[e]||{});return null!==t&&void 0!==t&&t.length?t.flat():Io}),[n]),g=(0,r.useMemo)((()=>{if(!n)return Oo;const e=(0,ii._J)(n),t={};for(let n=0;n<e.length;n++){var r;const a=(0,ii.pJ)(null!==(r=e[n])&&void 0!==r?r:[]);for(let e=0;e<a.length;e++){var i,o;const n=null===(i=a[e])||void 0===i?void 0:i[0],r=null===(o=a[e])||void 0===o?void 0:o[1];n&&(t[n]=[...t[n]||[],...r||[]])}}return t}),[n]);return{allRowsByEntityId:g,entityRowsByStageId:n,errorLoadingStageValues:o,getValueRows:m,loadingStageValues:i,revalidate:a,updateAssignPractices:f,updateValues:d,updateAllValuesForEntity:p,validationErrors:l}}function Ro(e){return`/projects/${e}/entities/values/all/structured`}var jo=n(82037),Do=n(6856),Ao=n(99630);function No(){const e=(0,h.T)();!function(){const e=(0,h.T)(),t=(0,h.C)(_.Bx);(0,r.useEffect)((()=>{const n=(null===t||void 0===t?void 0:t.length)||0,r=(null===t||void 0===t?void 0:t.filter((e=>e.dndc_status===br.Xp.Success||e.dndc_status===br.Xp.Failed)).length)||0,i=n?Math.round(100*r/n):0;e(Do.E.setDNDCPercentCompleted(i))}),[e,t])}(),function(){const e=(0,h.T)(),t=(0,h.C)(_.Bx),n=(0,h.C)(_.CC),i=(0,h.C)(_.JV);(0,r.useEffect)((()=>{const r=Object.values(n),i=r.some((e=>e.value&&e.source===br.QT.User)),o=r.some((e=>e.value&&e.source===br.QT.Optis)),a=(null===t||void 0===t?void 0:t.length)||0,s=null===t||void 0===t?void 0:t.filter((e=>e.ofs_status===br.TV.Success||e.ofs_status===br.TV.Failed)),l=(null===s||void 0===s?void 0:s.length)||0,c=a?Math.round(100*l/a):0;e(Do.E.setOFSProgress({hasUserValues:i,hasOptisValues:o,percentCompleted:c}))}),[t,n,e,null===i||void 0===i?void 0:i.ofs_status])}();const t=(0,h.C)(_.JV),n=(0,h.C)((e=>(0,_.sZ)(e,br.t5.Enrolment))),i=(0,h.C)(_.rI),o=(0,h.C)(jo.J3),a=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),{ofs_status:s,dndc_status:l,id:c}=t||{},u=(0,r.useCallback)((t=>{const n=new Set(i);if(t.entity===br.wg.Field&&t.body.code===br.hJ.AllDone&&n.delete(t.entity_id),t.entity===br.wg.Project){if(!c)return;switch(t.body.code){case br.hJ.AllDone:0===n.size&&e((0,Ao.E$)({projectId:c,status:br.TV.Success}));break;case br.hJ.Error:e((0,Ao.E$)({projectId:c,status:br.TV.Failed}))}}}),[e,i,c]),d=(0,r.useCallback)((t=>{if(t.entity===br.wg.Field)switch(t.body.code){case br.hJ.AllDone:e((0,Ao.ST)({fieldId:t.entity_id,status:br.Xp.Success}));break;case br.hJ.Error:e((0,Ao.ST)({fieldId:t.entity_id,status:br.Xp.Failed}))}if(t.entity===br.wg.Project){if(!c)return;switch(t.body.code){case br.hJ.AllDone:e((0,Ao.KA)({projectId:c,status:br.Xp.Success})),o&&e((0,Ao.Ni)((0,To.v9)(o.id,!0)));break;case br.hJ.Error:e((0,Ao.KA)({projectId:c,status:br.Xp.Failed}))}}}),[e,c,o]),p=(0,r.useCallback)((async()=>{if(!c)return;let t=[];try{t=(await Nr.eV.getProjectNotifications(c)).data}catch(r){s===br.TV.InProgress&&e((0,Ao.E$)({projectId:c,status:br.TV.Failed})),l===br.Xp.InProgress&&e((0,Ao.KA)({projectId:c,status:br.Xp.Failed})),(0,C.e)(r)}if(0!==t.length){for(const e of t)s===br.TV.InProgress&&e.source===br.Pj.OPTIS&&u(e),l===br.Xp.InProgress&&e.source===br.Pj.DNDC&&d(e);try{const r=(0,jn.Tw)(t.filter((e=>e.source===br.Pj.OPTIS&&e.entity===br.wg.Field)).map((e=>e.entity_id)));r.length>0&&(await(0,ai.JG)(Ro(c)),r.forEach((t=>{e((0,Ao.pg)({mrvFieldId:t,status:br.TV.Success}))})));const i=t.some((e=>e.source===br.Pj.OPTIS&&e.entity===br.wg.Project&&e.body.code===br.hJ.AllDone));if(i){await(0,ai.JG)(Ro(c));for(const t of n)await e((0,Fr.r7)({projectId:c,stageId:t.id,enableValidation:a}))}const o=t.filter((e=>e.source!==br.Pj.MRV_VALUES_OVERWRITE));o.length&&await Nr.eV.deleteProjectNotifications(c,o.map((e=>e.id)))}catch(r){(0,C.e)(r)}}}),[e,l,n,s,d,u,c,a]),f=s===br.TV.InProgress||l===br.Xp.InProgress||i.length>0;Mo(p,5e3,!!c&&f)}var Fo=n(16929);const zo=Z.ZP.p`
  /* FS Type/Body Text 16 */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;

  /* or 150% */
  text-align: center;

  /* FS Semantic Primaries/Secondary text */
  color: #7a7a7a;

  /* Inside auto layout */
  flex: none;
  align-self: stretch;
  flex-grow: 0;
`;var Bo=n(51571);const Uo=Z.ZP.div`
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
`,$o=()=>{const e=(0,u.k6)();return(0,w.jsxs)(Uo,{children:[(0,w.jsx)(Bo.g,{style:{textAlign:"center"},children:"Please continue on a laptop or computer"}),(0,w.jsx)(zo,{children:"Our MRV programs do not currently support mobile devices."}),(0,w.jsx)(Fo.Z,{hierachy:"secondary",onClick:()=>e.push("/mrv/project/select"),children:"BACK TO PROGRAMS"})]})},Vo=()=>{const e=(0,h.T)(),t=(0,h.C)((e=>(0,Or.zn)(e,b.iR.profile))),n=(0,u.TH)();return(0,r.useEffect)((()=>{"true"===(0,xo.vv)("integration-pop-up")&&((0,o.m)("integration-pop-up",null),e((0,b.qO)(b.iR.fmsIntegration,!0)))}),[null===n||void 0===n?void 0:n.search]),(0,r.useEffect)((()=>{setTimeout((()=>{"true"!==(0,xo.vv)("profile-dialog")||t||e(Zr())}),100)}),[n.search,t]),null};var qo=n(80421),Zo=n.n(qo),Ho=n(55629),Go=n(16148),Wo=n(73246);const Yo=()=>{const e=(0,u.k6)(),{projectId:t,programId:n,contractEvent:i}=(0,gr.B)();return{isFinishStage:e=>e===Go.rv,navigateToFinishStage:(0,r.useCallback)((r=>{const o={programId:n,stageId:Go.rv,tableView:!0,entityId:Go.en,...i&&{event:i}};e.push(`${(0,xo.F_)(r===br.t5.Enrolment?Wo.CP:Wo.lk,{projectId:t,programId:n,stageType:"finish"})}?${(0,fo.CT)(o)}`)}),[i,e,n,t])}};function Ko(e,t){const n=(0,h.C)((t=>(0,_.sZ)(t,e)));return(0,r.useMemo)((()=>{if(!t)return{};if(t===Go.rv)return{prevStage:n[n.length-1],currentStage:void 0,nextStage:void 0};const e=n.findIndex((e=>e.id===t));return{prevStage:0===e?void 0:n[e-1],nextStage:e===n.length-1?void 0:n[e+1],currentStage:n[e]}}),[t,n])}var Xo=n(92964);const Jo=e=>{const t=(0,h.C)((t=>(0,_.sZ)(t,e))),n=(0,h.C)(_.no),i=(0,h.C)(_.JV),o=e===br.t5.Enrolment,a=(0,h.C)(_.Bx),s=(0,h.C)((t=>(0,_.d1)(t,e))),l=(0,xr.nh)(xr.hn.ALLOW_ENROLMENT_STAGE_PROGRESS_WITHOUT_COMPLETION),c=(0,r.useCallback)((e=>{var t;return e.type_===br.UY.FIELD_BOUNDARIES?0===a.length:e.type_===br.UY.VIEW_OUTCOMES?0===a.length||(null===i||void 0===i?void 0:i.dndc_status)!==br.Xp.Success:(null===n||void 0===n?void 0:n[e.id])&&!(null!==(t=n[e.id])&&void 0!==t&&t.is_completed)}),[n,null===i||void 0===i?void 0:i.dndc_status,a.length]),{disabledAfterOrder:u,eligibilityDisabled:d,contractDisabled:p}=(0,r.useMemo)((()=>{const e=null===t||void 0===t?void 0:t.find((e=>e.type_===br.UY.ELIGIBILITY)),n=null===t||void 0===t?void 0:t.find((e=>e.type_===br.UY.CONTRACT)),r=!!n&&t.some((e=>e.required&&e.order<(null===n||void 0===n?void 0:n.order)&&c(e))),i=!!e&&t.some((t=>t.required&&t.order<(null===e||void 0===e?void 0:e.order)&&c(t))),a=!!e&&e.required&&c(e);let s=-1;if(o)for(let o=0;o<t.length;o++){const e=t[o];if(null!==e&&void 0!==e&&e.required&&c(e)){s=null===e||void 0===e?void 0:e.order;break}}else(i||a)&&(s=e.order);return{disabledAfterOrder:s,eligibilityDisabled:i,contractDisabled:r}}),[t,c,o]);return(0,r.useCallback)((e=>{if(!e)return!0;if(l)return!1;const t=(0,ki.$s)(null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date),r=(0,ki.oS)(e.type_);if(!t&&!r){if(Object.values(n).some((e=>{let{validation_errors:t}=e;return t&&Object.values(t).length>0})))return!1}return-1!==u&&(null===e||void 0===e?void 0:e.order)>u||e.type_===br.UY.CONTRACT&&p||e.type_===br.UY.ELIGIBILITY&&d}),[n,u,p,d])},Qo=e=>{let{phaseType:t}=e;const{projectId:n,stageId:i}=(0,gr.B)(),o=(0,h.C)(_.JV),a=(0,u.k6)(),{search:s}=(0,u.TH)(),l=(0,h.C)((e=>(0,_.sZ)(e,t))),c=(0,h.C)(_.no),p=(0,f.YB)(),m=(0,h.C)((e=>(0,_.d1)(e,t))),{isProjectPhaseCompleted:g}=(0,fr.F)(n,null===m||void 0===m?void 0:m.id),y=Jo(t),{isFinishStage:v,navigateToFinishStage:b}=Yo(),x=t===br.t5.Monitoring?Wo.lk:Wo.CP,k=(0,r.useMemo)((()=>0===l.filter((e=>{var t;return e.required&&!(null!==(t=c[e.id])&&void 0!==t&&t.is_completed)})).length),[c,l]),C=(0,r.useMemo)((()=>({label:p.formatMessage({id:"EnrollmentStep.Finish",defaultMessage:"Finish"}),type:br.UY.CONTRACT,value:Go.rv,icon:(0,w.jsx)(d.le,{type:"finalize"}),percentCompleted:g?100:0,disabled:!k})),[k,p,g]),S=(0,r.useMemo)((()=>null===l||void 0===l?void 0:l.map((e=>{var t,n;const{id:r,type_:i}=e,a={label:(0,To.bT)(e),value:r,type:i,percentCompleted:null!==(t=c[r])&&void 0!==t&&t.is_completed?100:(null===(n=c[r])||void 0===n?void 0:n.percentage_complete)||0,disabled:y(e)};return i===br.UY.VIEW_OUTCOMES&&(a.percentCompleted=(null===o||void 0===o?void 0:o.dndc_status)===br.Xp.Success?100:0),a}))),[l,c,y,,o]),M=(0,r.useMemo)((()=>(null===S||void 0===S||S.push(C),S)),[S,C]),T=(0,r.useCallback)((e=>{if(v(e))return void(k&&b(t));const r=null===l||void 0===l?void 0:l.find((t=>t.id===e));!n||!e||r&&y(r)||a.push({pathname:(0,xo.F_)(x,{projectId:n,stageType:(0,ki.vM)(null===r||void 0===r?void 0:r.type_)}),search:(0,fo._D)(s,{stageId:e})})}),[l,n,y,a,x,s,k]),{selectedStageIndex:E,selectedStageType:P}=(0,r.useMemo)((()=>{var e,t;const n=null!==(e=null===l||void 0===l?void 0:l.findIndex((e=>e.id===i)))&&void 0!==e?e:0;return-1===n?{selectedStageIndex:0,selectedStageType:null}:{selectedStageIndex:n,selectedStageType:null===(t=l[n])||void 0===t?void 0:t.type_}}),[l,i]),I=(0,r.useMemo)((()=>M.map(((e,t)=>{var n;return(0,w.jsx)(d.h8,{onClick:()=>T(e.value),disabled:e.disabled,completed:100===e.percentCompleted&&e.type!==P,children:(0,w.jsx)(d.M_,{icon:void 0===e.type?null:null!==(n=e.icon)&&void 0!==n?n:(0,w.jsx)(d.le,{type:Xo.Bj[e.type]}),componentsProps:{label:{style:{maxWidth:"100%"}}},children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[(0,w.jsx)(d.bd,{color:"secondary.main",variant:"h5",component:"span",clampLines:1,TooltipProps:{placement:"bottom"},children:e.label}),(0,w.jsxs)(d.ZT,{color:"secondary.main",variant:"body2",component:"span","aria-label":`${e.label} completion`,children:["\xa0",e.percentCompleted,"%"]})]})})},t)}))),[M,T,P]);return(0,w.jsx)(d.xu,{display:"flex",alignItems:"center",width:"100%",sx:{overflowX:"scroll",overscrollBehaviorX:"contain",msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},children:(0,w.jsx)(d.vF,{activeStep:E,sx:{".MuiStepConnector-line":{borderColor:e=>e.palette.grey[200],minWidth:e=>e.spacing(5)}},children:I})})},ea=e=>{let{phaseType:t}=e;const n=(0,f.YB)(),{projectId:i,stageId:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,_.sZ)(e,t))),s=(0,r.useMemo)((()=>Zo()(a,(e=>Number(e.id)))),[a]),{isReadOnly:l}=wr(t),c=(0,u.TH)(),p=(0,h.C)(_.no),{prevStage:m,nextStage:g}=Ko(t,o),y=Jo(t),{navigateToFinishStage:v}=Yo(),b=(0,r.useMemo)((()=>a.map((e=>{var t;return null!==(t=p[e.id])&&void 0!==t&&t.is_completed?null:Number(e.id)})).filter(er.$K)),[p,a]),x=(0,r.useMemo)((()=>0===b.filter((e=>{var t;return null===(t=s[e])||void 0===t?void 0:t.required})).length),[b,s]),k=t===br.t5.Monitoring?Wo.lk:Wo.CP,C=g&&y(g);return(0,w.jsx)(d.xu,{role:"navigation",bgcolor:e=>e.palette.common.white,borderBottom:e=>`1px solid ${e.palette.semanticPalette.stroke.secondary}`,padding:e=>e.spacing(3,5),width:"100%",height:61,children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:3,children:[(0,w.jsxs)(d.xu,{gap:3,display:"flex",alignItems:"center",children:[(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.zx,{"aria-label":n.formatMessage({id:"Home",defaultMessage:"Home"}),color:"secondary",component:Ho.rU,variant:"outlined",size:"medium",to:{pathname:(0,xo.F_)(Wo._j,{projectId:i})},children:(0,w.jsx)(d.le,{type:"home",fontSize:"h5"})})}),m&&(0,w.jsx)(d.zx,{color:"secondary",component:Ho.rU,variant:"outlined",startIcon:(0,w.jsx)(d.le,{type:"chevron-left"}),to:{pathname:(0,xo.F_)(k,{projectId:i,stageType:(0,ki.vM)(m.type_)}),search:(0,fo._D)(c.search,{stageId:m.id})},children:n.formatMessage({id:"BtnLabel.Back",defaultMessage:"Back"})})]}),(0,w.jsx)(d.xu,{alignItems:"center",minWidth:0,children:(0,w.jsx)(Qo,{phaseType:t})}),(0,w.jsx)(d.xu,{display:"flex",gap:3,justifyContent:"end",children:g?(0,w.jsx)(d.zx,{color:"primary",component:Ho.rU,disabled:C,endIcon:(0,w.jsx)(d.le,{type:"chevron-right"}),variant:"contained",to:{pathname:(0,xo.F_)(k,{projectId:i,stageType:(0,ki.vM)(g.type_)}),search:(0,fo._D)(c.search,{stageId:g.id})},children:n.formatMessage({id:"BtnLabel.Next",defaultMessage:"Next"})}):(0,w.jsx)(d.zx,{color:"primary",variant:"contained",onClick:()=>v(t),disabled:!x||l,children:n.formatMessage({id:"BtnLabel.Finish",defaultMessage:"Finish"})})})]})})};var ta=n(5836),na="Invariant Violation",ra=Object.setPrototypeOf,ia=void 0===ra?function(e,t){return e.__proto__=t,e}:ra,oa=function(e){function t(n){void 0===n&&(n=na);var r=e.call(this,"number"===typeof n?na+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=na,ia(r,t.prototype),r}return(0,ta.__extends)(t,e),t}(Error);function aa(e,t){if(!e)throw new oa(t)}var sa=["debug","log","warn","error","silent"],la=sa.indexOf("log");function ca(e){return function(){if(sa.indexOf(e)>=la)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=ca("debug"),e.log=ca("log"),e.warn=ca("warn"),e.error=ca("error")}(aa||(aa={}));var ua="3.9.8";function da(e){try{return e()}catch(ra){}}const pa=da((function(){return globalThis}))||da((function(){return window}))||da((function(){return self}))||da((function(){return global}))||da((function(){return da.constructor("return this")()}));var ha=new Map;function fa(e){var t=ha.get(e)||1;return ha.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function ma(e,t){void 0===t&&(t=0);var n=fa("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("<undefined>")}function ga(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"===typeof t){var i=t;(t=wa(i))||(t=xa(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var ya=Object.assign((function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||aa(e,wa(t,n)||xa(t,n))}),{debug:ga(aa.debug),log:ga(aa.log),warn:ga(aa.warn),error:ga(aa.error)});function va(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new oa(wa(e,t)||xa(e,t))}var ba=Symbol.for("ApolloErrorMessageHandler_"+ua);function _a(e){return"string"==typeof e?e:ma(e,2).slice(0,1e3)}function wa(e,t){if(void 0===t&&(t=[]),e)return pa[ba]&&pa[ba](e,t.map(_a))}function xa(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:ua,message:e,args:t.map(_a)})))}globalThis.__DEV__;var ka=n(41131),Ca=n.t(ka,2),Sa="function"===typeof WeakMap&&!da((function(){return"ReactNative"==navigator.product&&!global.HermesInternal})),Ma="function"===typeof WeakSet,Ta="function"===typeof Symbol&&"function"===typeof Symbol.for,Ea=Ta&&Symbol.asyncIterator,Pa="function"===typeof da((function(){return window.document.createElement})),Ia=da((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,Oa=Pa&&!Ia,La=!1,Ra=Ca.useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||La||r===t()||(La=!0,!1!==globalThis.__DEV__&&ya.error(58));var i=ka.useState({inst:{value:r,getSnapshot:t}}),o=i[0].inst,a=i[1];return Oa?ka.useLayoutEffect((function(){Object.assign(o,{value:r,getSnapshot:t}),ja(o)&&a({inst:o})}),[e,r,t]):Object.assign(o,{value:r,getSnapshot:t}),ka.useEffect((function(){return ja(o)&&a({inst:o}),e((function(){ja(o)&&a({inst:o})}))}),[e]),r};function ja(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(r){return!0}}const{toString:Da,hasOwnProperty:Aa}=Object.prototype,Na=Function.prototype.toString,Fa=new Map;function za(e,t){try{return Ua(e,t)}finally{Fa.clear()}}const Ba=za;function Ua(e,t){if(e===t)return!0;const n=Da.call(e);if(n!==Da.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Za(e,t))return!0;const n=$a(e),r=$a(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Aa.call(t,n[e]))return!1;for(let o=0;o<i;++o){const r=n[o];if(!Ua(e[r],t[r]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Za(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!Ua(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Na.call(e);return n===Na.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,qa)}}return!1}function $a(e){return Object.keys(e).filter(Va,e)}function Va(e){return void 0!==this[e]}const qa="{ [native code] }";function Za(e,t){let n=Fa.get(e);if(n){if(n.has(t))return!0}else Fa.set(e,n=new Set);return n.add(t),!1}function Ha(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function Ga(e,t){return Ha(e,t,t.variables&&{variables:Ha((0,ta.__assign)((0,ta.__assign)({},e&&e.variables),t.variables))})}var Wa=Ta?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Ya(){ya(!0,45);var e=ka.createContext[Wa];return e||(Object.defineProperty(ka.createContext,Wa,{value:e=ka.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}function Ka(e){return null!==e&&"object"===typeof e}var Xa=Symbol();var Ja,Qa=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=r||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||function(e){var t=(0,ta.__spreadArray)((0,ta.__spreadArray)((0,ta.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return Ka(e)&&e.message||"Error message not found."})).join("\n")}(c),c.extraInfo=l,c.__proto__=t.prototype,c}return(0,ta.__extends)(t,e),t}(Error);function es(e){return!!e&&e<7}function ts(){}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Ja||(Ja={}));const ns=ts,rs="undefined"!==typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},is="undefined"!==typeof WeakMap?WeakMap:Map,os="undefined"!==typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:ts,unregister:ts}};class as{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ns;this.max=e,this.dispose=t,this.map=new is,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new rs(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new os(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function ss(){}class ls{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ss;this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var cs=new WeakSet;function us(e){cs.has(e)||(cs.add(e),setTimeout((function(){e.clean(),cs.delete(e)}),100))}var ds=function(e,t){var n=new as(e,t);return n.set=function(e,t){return us(this),as.prototype.set.call(this,e,t)},n},ps=function(e,t){var n=new ls(e,t);return n.set=function(e,t){return us(this),ls.prototype.set.call(this,e,t)},n},hs=Symbol.for("apollo.cacheSize"),fs=(0,ta.__assign)({},pa[hs]),ms={};function gs(e,t){ms[e]=t}var ys,vs,bs=!1!==globalThis.__DEV__?function(){var e,t,n,r,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:xs(),sizes:(0,ta.__assign)({print:null===(e=ms.print)||void 0===e?void 0:e.call(ms),parser:null===(t=ms.parser)||void 0===t?void 0:t.call(ms),canonicalStringify:null===(n=ms.canonicalStringify)||void 0===n?void 0:n.call(ms),links:Es(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Ms(this.queryManager.documentTransform)}},null===(i=(r=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(r))}}:void 0,_s=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,ta.__assign)((0,ta.__assign)({},ks.apply(this)),{addTypenameDocumentTransform:Ms(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Cs(this.storeReader.executeSelectionSet),executeSubSelectedArray:Cs(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Cs(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Cs(null===e||void 0===e?void 0:e.findFragmentSpreads),lookup:Cs(null===e||void 0===e?void 0:e.lookup),transform:Cs(null===e||void 0===e?void 0:e.transform)}})}:void 0,ws=!1!==globalThis.__DEV__?ks:void 0;function xs(){return Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],n=e[1];return[t,fs[t]||n]})))}function ks(){return{cache:{fragmentQueryDocuments:Cs(this.getFragmentDoc)}}}function Cs(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function Ss(e){return null!=e}function Ms(e){return Ts(e).map((function(e){return{cache:e}}))}function Ts(e){return e?(0,ta.__spreadArray)((0,ta.__spreadArray)([Cs(null===e||void 0===e?void 0:e.performWork)],Ts(null===e||void 0===e?void 0:e.left),!0),Ts(null===e||void 0===e?void 0:e.right),!0).filter(Ss):[]}function Es(e){var t;return e?(0,ta.__spreadArray)((0,ta.__spreadArray)([null===(t=null===e||void 0===e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],Es(null===e||void 0===e?void 0:e.left),!0),Es(null===e||void 0===e?void 0:e.right),!0).filter(Ss):[]}function Ps(e){var t;switch(e){case ys.Query:t="Query";break;case ys.Mutation:t="Mutation";break;case ys.Subscription:t="Subscription"}return t}function Is(e){vs||(vs=new ds(fs.parser||1e3));var t,n,r=vs.get(e);if(r)return r;ya(!!e&&!!e.kind,59,e);for(var i=[],o=[],a=[],s=[],l=0,c=e.definitions;l<c.length;l++){var u=c[l];if("FragmentDefinition"!==u.kind){if("OperationDefinition"===u.kind)switch(u.operation){case"query":o.push(u);break;case"mutation":a.push(u);break;case"subscription":s.push(u)}}else i.push(u)}ya(!i.length||o.length||a.length||s.length,60),ya(o.length+a.length+s.length<=1,61,e,o.length,s.length,a.length),n=o.length?ys.Query:ys.Mutation,o.length||a.length||(n=ys.Subscription);var d=o.length?o:a.length?a:s;ya(1===d.length,62,e,d.length);var p=d[0];t=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:t};return vs.set(e,h),h}function Os(e,t){var n=Is(e),r=Ps(t),i=Ps(n.type);ya(n.type===t,63,r,r,i)}function Ls(e){var t=ka.useContext(Ya()),n=e||t.client;return ya(!!n,49),n}function Rs(e){var t=new Set([e]);return t.forEach((function(e){Ka(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(ag){if(ag instanceof TypeError)return null;throw ag}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){Ka(e[n])&&t.add(e[n])}))})),e}function js(e){return!1!==globalThis.__DEV__&&Rs(e),e}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(ys||(ys={})),Is.resetCache=function(){vs=void 0},!1!==globalThis.__DEV__&&gs("parser",(function(){return vs?vs.size:0}));var Ds=Array.isArray;function As(e){return Array.isArray(e)&&e.length>0}var Ns=Symbol.for("apollo.hook.wrappers");var Fs=Object.prototype.hasOwnProperty;function zs(e,t){return void 0===t&&(t=Object.create(null)),function(e,t,n){var r=n.queryManager,i=r&&r[Ns],o=i&&i[e];return o?o(t):t}("useQuery",Bs,Ls(t&&t.client))(e,t)}function Bs(e,t){return function(e,t){var n=ka.useRef();n.current&&e===n.current.client&&t===n.current.query||(n.current=new Us(e,t,n.current));var r=n.current;return r.forceUpdateState=ka.useReducer((function(e){return e+1}),0)[1],r}(Ls(t.client),e).useQuery(t)}var Us=function(){function e(e,t,n){var r=this;this.client=e,this.query=t,this.forceUpdate=function(){return r.forceUpdateState()},this.ssrDisabledResult=js({loading:!0,data:void 0,error:void 0,networkStatus:Ja.loading}),this.skipStandbyResult=js({loading:!1,data:void 0,error:void 0,networkStatus:Ja.ready}),this.toQueryResultCache=new(Sa?WeakMap:Map),Os(t,ys.Query);var i=n&&n.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&ya.warn(51)},e.prototype.executeQuery=function(e){var t,n=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var r=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;r.subscribe({next:function(e){t=e},error:function(){e(n.toQueryResult(n.observable.getCurrentResult()))},complete:function(){e(n.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=ka.useContext(Ya()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=Ra(ka.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var r=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&za(e.data,r.data)||t.setResult(r)},i=function(e){if(o.unsubscribe(),o=n.resubscribeAfterError(r,i),!Fs.call(e,"graphQLErrors"))throw e;var a=t.result;(!a||a&&a.loading||!za(e,a.error))&&t.setResult({data:a&&a.data,error:e,loading:!1,networkStatus:Ja.error})},o=n.subscribe(r,i);return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(r),this.toQueryResult(r)},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;za(r,i)||(this.watchQueryOptions=r,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(Ha(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(Ga)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,r=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,ta.__rest)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),i=Object.assign(r,{query:this.query});if(!this.renderPromises||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy||(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),n){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy,l=void 0===s?a:s;Object.assign(i,{initialFetchPolicy:l,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=ka.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var n=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then((function(){r?n.onError(r):e.data&&(null===t||void 0===t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===Ja.ready&&n.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&ya.warn(e)}))}},e.prototype.toApolloError=function(e){return As(e.errors)?new Qa({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,r=(e.partial,(0,ta.__rest)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,ta.__assign)((0,ta.__assign)((0,ta.__assign)({data:n},r),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&As(e.errors)&&(t.error=new Qa({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:Ja.refetch}),this.observable.refetch())},e}(),$s=n(31810);const Vs={"\n  mutation createOrUpdateFieldEvent($fieldId: ID!, $stageId: ID!, $event: FieldEventInput!) {\n    createOrUpdateFieldEvent(fieldId: $fieldId, stageId: $stageId, event: $event) {\n      ... on CroppingEvent {\n        ...CroppingEventAttributes\n      }\n      ... on TillageEvent {\n        ...TillageEventAttributes\n      }\n      ... on IrrigationEvent {\n        ...IrrigationEventAttributes\n      }\n      ... on ApplicationEvent {\n        ...ApplicationEventAttributes\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createOrUpdateFieldEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fieldId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"event"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FieldEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateFieldEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fieldId"},value:{kind:"Variable",name:{kind:"Name",value:"fieldId"}}},{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}},{kind:"Argument",name:{kind:"Name",value:"event"},value:{kind:"Variable",name:{kind:"Name",value:"event"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CroppingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CroppingEventAttributes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TillageEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TillageEventAttributes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IrrigationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"IrrigationEventAttributes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplicationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ApplicationEventAttributes"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CroppingEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CroppingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"planting_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"harvest_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_yield"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"yield_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"winter_crop_termination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"residue_harvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_usage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TillageEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TillageEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tillage_practice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"soil_inversion"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IrrigationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IrrigationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"end_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"flood_pct"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"irrigation_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApplicationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplicationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"application_product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"additives"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n  mutation deleteFieldEvent($fieldId: ID!, $eventId: ID!) {\n    deleteFieldEvent(fieldId: $fieldId, eventId: $eventId)\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteFieldEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fieldId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eventId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteFieldEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fieldId"},value:{kind:"Variable",name:{kind:"Name",value:"fieldId"}}},{kind:"Argument",name:{kind:"Name",value:"eventId"},value:{kind:"Variable",name:{kind:"Name",value:"eventId"}}}]}]}}]},"\n  query getDefaultAttributes($phaseType: String) {\n    defaults {\n      application_product(phaseType: $phaseType) {\n        id\n        name\n        type\n        is_dry\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getDefaultAttributes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phaseType"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaults"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"application_product"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phaseType"},value:{kind:"Variable",name:{kind:"Name",value:"phaseType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"is_dry"}}]}}]}}]}}]},"\n  query getFieldEvents($projectId: ID!, $fieldId: ID!, $stageId: ID, $phaseId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        field(fieldId: $fieldId) {\n          id\n          events(stageId: $stageId, phaseId: $phaseId) {\n            ...CroppingEventAttributes\n            ...TillageEventAttributes\n            ...ApplicationEventAttributes\n            ...IrrigationEventAttributes\n          }\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getFieldEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fieldId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phaseId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fieldId"},value:{kind:"Variable",name:{kind:"Name",value:"fieldId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"events"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}},{kind:"Argument",name:{kind:"Name",value:"phaseId"},value:{kind:"Variable",name:{kind:"Name",value:"phaseId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CroppingEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TillageEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ApplicationEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IrrigationEventAttributes"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CroppingEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CroppingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"planting_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"harvest_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_yield"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"yield_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"winter_crop_termination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"residue_harvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_usage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TillageEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TillageEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tillage_practice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"soil_inversion"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApplicationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplicationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"application_product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"additives"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IrrigationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IrrigationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"end_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"flood_pct"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"irrigation_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n  query getCultivationCycleEvents($projectId: ID!, $fieldId: ID!, $stageId: ID!) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        field(fieldId: $fieldId) {\n          id\n          ...FieldWithEvents\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCultivationCycleEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fieldId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fieldId"},value:{kind:"Variable",name:{kind:"Name",value:"fieldId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FieldWithEvents"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CroppingEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CroppingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"planting_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"harvest_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_yield"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"yield_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"winter_crop_termination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"residue_harvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_usage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TillageEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TillageEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tillage_practice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"soil_inversion"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApplicationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplicationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"application_product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"additives"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IrrigationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IrrigationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"end_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"flood_pct"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"irrigation_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FieldWithEvents"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"core_farm_group_id"}},{kind:"Field",name:{kind:"Name",value:"area"}},{kind:"Field",name:{kind:"Name",value:"geometry"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"coordinates"}}]}},{kind:"Field",name:{kind:"Name",value:"cultivation_cycles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"}},{kind:"Field",name:{kind:"Name",value:"end_date"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"events"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CroppingEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TillageEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ApplicationEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IrrigationEventAttributes"}}]}}]}}]}}]},"\n  query getCultivationCycles($projectId: ID!, $stageId: ID!, $farmId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        farms(farmId: $farmId, filterWithEnrolledFields: true) {\n          id\n          name\n          core_farm_group_id\n          fields(stageId: $stageId) {\n            id\n            ...FieldWithEvents\n          }\n        }\n      }\n    }\n  }\n\n  fragment CroppingEventAttributes on CroppingEvent {\n    id\n    planting_date {\n      value\n      attribute_type\n    }\n    harvest_date {\n      value\n      attribute_type\n    }\n    crop_type {\n      value\n      attribute_type\n    }\n    crop_yield {\n      value\n      attribute_type\n    }\n    yield_rate_unit {\n      value\n      attribute_type\n    }\n    winter_crop_termination {\n      value\n      attribute_type\n    }\n    residue_harvested {\n      value\n      attribute_type\n    }\n    crop_usage {\n      value\n      attribute_type\n    }\n  }\n\n  fragment TillageEventAttributes on TillageEvent {\n    id\n    tillage_practice {\n      attribute_type\n      value\n    }\n    tillage_date {\n      attribute_type\n      value\n    }\n    tillage_depth {\n      attribute_type\n      value\n    }\n    soil_inversion {\n      attribute_type\n      value\n    }\n  }\n\n  fragment IrrigationEventAttributes on IrrigationEvent {\n    id\n    start_date {\n      attribute_type\n      value\n    }\n    end_date {\n      attribute_type\n      value\n    }\n    subsurface_drip_depth {\n      attribute_type\n      value\n    }\n    subsurface_drip_depth_unit {\n      attribute_type\n      value\n    }\n    flood_pct {\n      attribute_type\n      value\n    }\n    irrigation_method {\n      attribute_type\n      value\n    }\n  }\n\n  fragment ApplicationEventAttributes on ApplicationEvent {\n    id\n    application_product {\n      attribute_type\n      value\n    }\n    application_date {\n      attribute_type\n      value\n    }\n    application_rate {\n      attribute_type\n      value\n    }\n    application_rate_unit {\n      attribute_type\n      value\n    }\n    application_method {\n      attribute_type\n      value\n    }\n    application_depth {\n      attribute_type\n      value\n    }\n    water_amount {\n      attribute_type\n      value\n    }\n    water_amount_unit {\n      attribute_type\n      value\n    }\n    additives {\n      attribute_type\n      value\n    }\n  }\n\n  fragment FieldWithEvents on Field {\n    name\n    core_farm_group_id\n    area\n    geometry {\n      type\n      coordinates\n    }\n    cultivation_cycles(stageId: $stageId) {\n      id\n      start_date\n      end_date\n      name\n      events {\n        ...CroppingEventAttributes\n        ...TillageEventAttributes\n        ...ApplicationEventAttributes\n        ...IrrigationEventAttributes\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCultivationCycles"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"farmId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"farms"},arguments:[{kind:"Argument",name:{kind:"Name",value:"farmId"},value:{kind:"Variable",name:{kind:"Name",value:"farmId"}}},{kind:"Argument",name:{kind:"Name",value:"filterWithEnrolledFields"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"core_farm_group_id"}},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FieldWithEvents"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CroppingEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CroppingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"planting_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"harvest_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_yield"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"yield_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"winter_crop_termination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"residue_harvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}},{kind:"Field",name:{kind:"Name",value:"crop_usage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"attribute_type"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TillageEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TillageEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tillage_practice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"tillage_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"soil_inversion"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApplicationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplicationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"application_product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_rate_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"application_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"water_amount_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"additives"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IrrigationEventAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IrrigationEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"end_date"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth_unit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"flood_pct"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"irrigation_method"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attribute_type"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FieldWithEvents"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"core_farm_group_id"}},{kind:"Field",name:{kind:"Name",value:"area"}},{kind:"Field",name:{kind:"Name",value:"geometry"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"coordinates"}}]}},{kind:"Field",name:{kind:"Name",value:"cultivation_cycles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"start_date"}},{kind:"Field",name:{kind:"Name",value:"end_date"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"events"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CroppingEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TillageEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ApplicationEventAttributes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IrrigationEventAttributes"}}]}}]}}]}}]},"\n  query getPhases($projectId: ID!, $phaseType: String) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        program {\n          id\n          crediting_year\n          phases(phaseType: $phaseType) {\n            id\n            name\n            type\n            crops {\n              id\n              label\n              value\n            }\n            stages {\n              id\n              name\n              type\n              custom_name\n              description\n              locked\n              enabled\n              order\n              required\n              optis_prefill\n              icon\n            }\n          }\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPhases"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phaseType"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"program"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"crediting_year"}},{kind:"Field",name:{kind:"Name",value:"phases"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phaseType"},value:{kind:"Variable",name:{kind:"Name",value:"phaseType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"crops"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"stages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"custom_name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"locked"}},{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"optis_prefill"}},{kind:"Field",name:{kind:"Name",value:"icon"}}]}}]}}]}}]}}]}}]}}]},"\n  query getFarmsAndEnrolledFields($projectId: ID!, $farmId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        farms(farmId: $farmId, filterWithEnrolledFields: true) {\n          id\n          name\n          core_farm_group_id\n          fields {\n            id\n            name\n            core_farm_group_id\n            area\n            geometry {\n              type\n              coordinates\n            }\n          }\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getFarmsAndEnrolledFields"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"farmId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"farms"},arguments:[{kind:"Argument",name:{kind:"Name",value:"farmId"},value:{kind:"Variable",name:{kind:"Name",value:"farmId"}}},{kind:"Argument",name:{kind:"Name",value:"filterWithEnrolledFields"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"core_farm_group_id"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"core_farm_group_id"}},{kind:"Field",name:{kind:"Name",value:"area"}},{kind:"Field",name:{kind:"Name",value:"geometry"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"coordinates"}}]}}]}}]}}]}}]}}]}}]},"\n  query getStageAttributes($projectId: ID!, $stageId: ID!) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        program {\n          id\n          stage(stageId: $stageId) {\n            id\n            type\n            attribute_options {\n              crop_usage\n              winter_crop_termination\n              yield_rate_unit\n              application_depth\n              application_method\n              application_product\n              application_rate_type\n              application_rate_unit\n              water_amount_unit\n              additives\n              irrigation_method\n              subsurface_drip_depth_unit\n              tillage_practice\n              residue_harvested\n            }\n          }\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getStageAttributes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mrv"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"program"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"stage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"attribute_options"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"crop_usage"}},{kind:"Field",name:{kind:"Name",value:"winter_crop_termination"}},{kind:"Field",name:{kind:"Name",value:"yield_rate_unit"}},{kind:"Field",name:{kind:"Name",value:"application_depth"}},{kind:"Field",name:{kind:"Name",value:"application_method"}},{kind:"Field",name:{kind:"Name",value:"application_product"}},{kind:"Field",name:{kind:"Name",value:"application_rate_type"}},{kind:"Field",name:{kind:"Name",value:"application_rate_unit"}},{kind:"Field",name:{kind:"Name",value:"water_amount_unit"}},{kind:"Field",name:{kind:"Name",value:"additives"}},{kind:"Field",name:{kind:"Name",value:"irrigation_method"}},{kind:"Field",name:{kind:"Name",value:"subsurface_drip_depth_unit"}},{kind:"Field",name:{kind:"Name",value:"tillage_practice"}},{kind:"Field",name:{kind:"Name",value:"residue_harvested"}}]}}]}}]}}]}}]}}]}}]}};function qs(e){var t;return null!==(t=Vs[e])&&void 0!==t?t:{}}const Zs=qs("\n  query getPhases($projectId: ID!, $phaseType: String) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        program {\n          id\n          crediting_year\n          phases(phaseType: $phaseType) {\n            id\n            name\n            type\n            crops {\n              id\n              label\n              value\n            }\n            stages {\n              id\n              name\n              type\n              custom_name\n              description\n              locked\n              enabled\n              order\n              required\n              optis_prefill\n              icon\n            }\n          }\n        }\n      }\n    }\n  }\n"),Hs=(0,r.createContext)({isLoading:!0,currentPhase:null,error:null,currentProgram:null}),Gs=e=>{var t,n,i;let{children:o}=e;const{phaseType:a}=(0,wi.tZ)(),{projectId:s}=(0,wi.tZ)(),l=(0,r.useMemo)((()=>{const e=a.toUpperCase();return"ENROLLMENT"===e?$s.HM.ENROLMENT:e}),[a]),{data:c,loading:d,error:p}=zs(Zs,{variables:{projectId:s,phaseType:l},skip:!s||!l}),h=(0,r.useMemo)((()=>{var e,t;return((null===c||void 0===c||null===(e=c.mrv.project)||void 0===e||null===(t=e.program)||void 0===t?void 0:t.phases)||[]).find((e=>{let{type:t}=e;return t===l}))||null}),[null===c||void 0===c||null===(t=c.mrv.project)||void 0===t||null===(n=t.program)||void 0===n?void 0:n.phases,l]),f=(0,r.useMemo)((()=>{var e;return null===c||void 0===c||null===(e=c.mrv.project)||void 0===e?void 0:e.program}),[null===c||void 0===c||null===(i=c.mrv.project)||void 0===i?void 0:i.program]),m=(0,r.useMemo)((()=>({currentProgram:f||null,currentPhase:h||null,isLoading:d&&!h,error:p?p.message:null})),[h,d,p,f]);return!c||d||p||h?(0,w.jsx)(Hs.Provider,{value:m,children:o}):(0,w.jsx)(u.l_,{to:`/mrv/project/${s}/home`})},Ws=()=>(0,r.useContext)(Hs),Ys=()=>{const{currentPhase:e,isLoading:t}=Ws(),n=null===e||void 0===e?void 0:e.type;return(0,w.jsx)(d.xu,{display:"flex",width:"100%",justifyContent:"center",children:n&&!t?(0,w.jsx)(ea,{phaseType:n}):(0,w.jsx)(d.Od,{role:"navigation",variant:"rectangular",width:"100%",height:61,"aria-label":"loading","aria-busy":!0,"aria-live":"polite"})})};function Ks(e,t){var n=Ls(null===t||void 0===t?void 0:t.client);Os(e,ys.Mutation);var r=ka.useState({called:!1,loading:!1,client:n}),i=r[0],o=r[1],a=ka.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(a.current,{client:n,options:t,mutation:e});var s=ka.useCallback((function(e){void 0===e&&(e={});var t=a.current,n=t.options,r=t.mutation,i=(0,ta.__assign)((0,ta.__assign)({},n),{mutation:r}),s=e.client||a.current.client;a.current.result.loading||i.ignoreResults||!a.current.isMounted||o(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var l=++a.current.mutationId,c=Ga(i,e);return s.mutate(c).then((function(t){var n,r,i=t.data,u=t.errors,d=u&&u.length>0?new Qa({graphQLErrors:u}):void 0,p=e.onError||(null===(n=a.current.options)||void 0===n?void 0:n.onError);if(d&&p&&p(d,c),l===a.current.mutationId&&!c.ignoreResults){var h={called:!0,loading:!1,data:i,error:d,client:s};a.current.isMounted&&!za(a.current.result,h)&&o(a.current.result=h)}var f=e.onCompleted||(null===(r=a.current.options)||void 0===r?void 0:r.onCompleted);return d||null===f||void 0===f||f(t.data,c),t})).catch((function(t){var n;if(l===a.current.mutationId&&a.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:s};za(a.current.result,r)||o(a.current.result=r)}var i=e.onError||(null===(n=a.current.options)||void 0===n?void 0:n.onError);if(i)return i(t,c),{data:void 0,errors:t};throw t}))}),[]),l=ka.useCallback((function(){if(a.current.isMounted){var e={called:!1,loading:!1,client:n};Object.assign(a.current,{mutationId:0,result:e}),o(e)}}),[]);return ka.useEffect((function(){return a.current.isMounted=!0,function(){a.current.isMounted=!1}}),[]),[s,(0,ta.__assign)({reset:l},i)]}const Xs=qs("\n  mutation createOrUpdateFieldEvent($fieldId: ID!, $stageId: ID!, $event: FieldEventInput!) {\n    createOrUpdateFieldEvent(fieldId: $fieldId, stageId: $stageId, event: $event) {\n      ... on CroppingEvent {\n        ...CroppingEventAttributes\n      }\n      ... on TillageEvent {\n        ...TillageEventAttributes\n      }\n      ... on IrrigationEvent {\n        ...IrrigationEventAttributes\n      }\n      ... on ApplicationEvent {\n        ...ApplicationEventAttributes\n      }\n    }\n  }\n"),Js=qs("\n  mutation deleteFieldEvent($fieldId: ID!, $eventId: ID!) {\n    deleteFieldEvent(fieldId: $fieldId, eventId: $eventId)\n  }\n"),Qs=qs("\n  query getFieldEvents($projectId: ID!, $fieldId: ID!, $stageId: ID, $phaseId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        field(fieldId: $fieldId) {\n          id\n          events(stageId: $stageId, phaseId: $phaseId) {\n            ...CroppingEventAttributes\n            ...TillageEventAttributes\n            ...ApplicationEventAttributes\n            ...IrrigationEventAttributes\n          }\n        }\n      }\n    }\n  }\n"),el=qs("\n  query getCultivationCycleEvents($projectId: ID!, $fieldId: ID!, $stageId: ID!) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        field(fieldId: $fieldId) {\n          id\n          ...FieldWithEvents\n        }\n      }\n    }\n  }\n"),tl=qs("\n  query getCultivationCycles($projectId: ID!, $stageId: ID!, $farmId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        farms(farmId: $farmId, filterWithEnrolledFields: true) {\n          id\n          name\n          core_farm_group_id\n          fields(stageId: $stageId) {\n            id\n            ...FieldWithEvents\n          }\n        }\n      }\n    }\n  }\n\n  fragment CroppingEventAttributes on CroppingEvent {\n    id\n    planting_date {\n      value\n      attribute_type\n    }\n    harvest_date {\n      value\n      attribute_type\n    }\n    crop_type {\n      value\n      attribute_type\n    }\n    crop_yield {\n      value\n      attribute_type\n    }\n    yield_rate_unit {\n      value\n      attribute_type\n    }\n    winter_crop_termination {\n      value\n      attribute_type\n    }\n    residue_harvested {\n      value\n      attribute_type\n    }\n    crop_usage {\n      value\n      attribute_type\n    }\n  }\n\n  fragment TillageEventAttributes on TillageEvent {\n    id\n    tillage_practice {\n      attribute_type\n      value\n    }\n    tillage_date {\n      attribute_type\n      value\n    }\n    tillage_depth {\n      attribute_type\n      value\n    }\n    soil_inversion {\n      attribute_type\n      value\n    }\n  }\n\n  fragment IrrigationEventAttributes on IrrigationEvent {\n    id\n    start_date {\n      attribute_type\n      value\n    }\n    end_date {\n      attribute_type\n      value\n    }\n    subsurface_drip_depth {\n      attribute_type\n      value\n    }\n    subsurface_drip_depth_unit {\n      attribute_type\n      value\n    }\n    flood_pct {\n      attribute_type\n      value\n    }\n    irrigation_method {\n      attribute_type\n      value\n    }\n  }\n\n  fragment ApplicationEventAttributes on ApplicationEvent {\n    id\n    application_product {\n      attribute_type\n      value\n    }\n    application_date {\n      attribute_type\n      value\n    }\n    application_rate {\n      attribute_type\n      value\n    }\n    application_rate_unit {\n      attribute_type\n      value\n    }\n    application_method {\n      attribute_type\n      value\n    }\n    application_depth {\n      attribute_type\n      value\n    }\n    water_amount {\n      attribute_type\n      value\n    }\n    water_amount_unit {\n      attribute_type\n      value\n    }\n    additives {\n      attribute_type\n      value\n    }\n  }\n\n  fragment FieldWithEvents on Field {\n    name\n    core_farm_group_id\n    area\n    geometry {\n      type\n      coordinates\n    }\n    cultivation_cycles(stageId: $stageId) {\n      id\n      start_date\n      end_date\n      name\n      events {\n        ...CroppingEventAttributes\n        ...TillageEventAttributes\n        ...ApplicationEventAttributes\n        ...IrrigationEventAttributes\n      }\n    }\n  }\n"),nl=qs("\n  query getFarmsAndEnrolledFields($projectId: ID!, $farmId: ID) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        farms(farmId: $farmId, filterWithEnrolledFields: true) {\n          id\n          name\n          core_farm_group_id\n          fields {\n            id\n            name\n            core_farm_group_id\n            area\n            geometry {\n              type\n              coordinates\n            }\n          }\n        }\n      }\n    }\n  }\n"),rl=qs("\n  query getDefaultAttributes($phaseType: String) {\n    defaults {\n      application_product(phaseType: $phaseType) {\n        id\n        name\n        type\n        is_dry\n      }\n    }\n  }\n"),il=qs("\n  query getStageAttributes($projectId: ID!, $stageId: ID!) {\n    mrv {\n      project(projectId: $projectId) {\n        id\n        program {\n          id\n          stage(stageId: $stageId) {\n            id\n            type\n            attribute_options {\n              crop_usage\n              winter_crop_termination\n              yield_rate_unit\n              application_depth\n              application_method\n              application_product\n              application_rate_type\n              application_rate_unit\n              water_amount_unit\n              additives\n              irrigation_method\n              subsurface_drip_depth_unit\n              tillage_practice\n              residue_harvested\n            }\n          }\n        }\n      }\n    }\n  }\n");var ol=n(49346);const al=(0,r.createContext)({currentStage:null,attributeOptions:{},applicationProducts:[],isLoading:!0,error:null}),sl=e=>{var t,n,i,o,a;let{children:s}=e;const{currentUser:l}=(0,Wr.x)(),{stageType:c,projectId:d}=(0,wi.tZ)(),p=(0,f.YB)(),{currentPhase:h,isLoading:m}=Ws(),g=(0,r.useMemo)((()=>{var e;const t=c.toUpperCase();return(null===h||void 0===h||null===(e=h.stages)||void 0===e?void 0:e.find((e=>{let{type:n}=e;return n===t})))||null}),[null===h||void 0===h?void 0:h.stages,c]),{data:y,loading:v,error:b}=zs(il,{variables:{projectId:d,stageId:g?g.id:""},skip:!g}),_=(null===y||void 0===y||null===(t=y.mrv)||void 0===t||null===(n=t.project)||void 0===n||null===(i=n.program)||void 0===i||null===(o=i.stage)||void 0===o?void 0:o.attribute_options)||null,{data:x}=zs(rl,{variables:{phaseType:null===h||void 0===h?void 0:h.type},skip:!h||!(null!==_&&void 0!==_&&_.application_product)}),k=(0,r.useMemo)((()=>null!==h&&void 0!==h&&h.crops?null===h||void 0===h?void 0:h.crops.map((e=>({...e,label:p.formatMessage({id:e.label,defaultMessage:e.label})}))):[]),[null===h||void 0===h?void 0:h.crops,p]),C=(0,r.useMemo)((()=>{if(!_)return{crop_type:k};const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ol.Ug.ImperialUnits;const r={};return Object.entries(e).forEach((e=>{let[i,o]=e;if(!(0,er.$K)(o))return null;if((null===o||void 0===o?void 0:o.length)>0&&"__typename"!==i)if(i.includes("_unit")){const e=(0,ol.bX)(o,t,n);r[i]=e}else{const e=null===o||void 0===o?void 0:o.map((e=>({value:e,label:(0,xi.fm)(t({id:`Option.${e}`,defaultMessage:e.toString()}))})));r[i]=e}})),r}(_,p.formatMessage,null===l||void 0===l?void 0:l.settings.measurement);return e.crop_type=k,e}),[_,p.formatMessage,null===l||void 0===l?void 0:l.settings.measurement,k]),S=(0,r.useMemo)((()=>{var e;const t=null===x||void 0===x||null===(e=x.defaults)||void 0===e?void 0:e.application_product;return!t||null!==C&&void 0!==C&&C.application_product?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return null===e||void 0===e?void 0:e.reduce(((e,r)=>{const i=t.find((e=>e.value===r.type));return i&&e.push({...i,...r,label:(0,xi.fm)(n({id:`Option.${i.value}`,defaultMessage:r.name}))}),e}),[])}(t||[],(null===C||void 0===C?void 0:C.application_product)||[],p.formatMessage):[]}),[null===x||void 0===x||null===(a=x.defaults)||void 0===a?void 0:a.application_product,null===C||void 0===C?void 0:C.application_product,p.formatMessage]),M=(0,r.useMemo)((()=>({currentStage:g,attributeOptions:C,applicationProducts:S,isLoading:v,error:b?b.message:null})),[g,C,S,v,b]);return m||g?(0,w.jsx)(al.Provider,{value:M,children:s}):(0,w.jsx)(u.l_,{to:`/mrv/project/${d}/home`})},ll=()=>(0,r.useContext)(al),cl=["id","__typename","isUnsavedEvent","meta"],ul=(0,r.createContext)({createOrUpdateEvent:async()=>Promise.resolve({}),createOrUpdateDataGridEvent:async()=>Promise.resolve({}),createOrUpdateLoading:!1,deleteFieldEvent:async()=>Promise.resolve({}),deleteLoading:!1,error:null,isLoading:!0,farms:[],selectedFarm:null,selectedField:null,setSelectedField:()=>{}}),dl=e=>{var t,n;let{children:i}=e;const o=(0,f.YB)(),{projectId:a}=(0,wi.tZ)(),{currentStage:s}=ll(),l=(0,u.k6)(),{currentPhase:c}=Ws(),d=(0,r.useMemo)((()=>new URLSearchParams(l.location.search)),[l.location.search]),p=d.get("fieldId"),h=(0,r.useCallback)((e=>{d.set("fieldId",e),l.push({search:d.toString()})}),[l,d]),{data:m,loading:g,error:y}=zs(nl,{variables:{projectId:a},fetchPolicy:"cache-and-network"}),{data:v}=zs(tl,{variables:{projectId:a,stageId:String(null===s||void 0===s?void 0:s.id)},skip:!s,fetchPolicy:"cache-and-network"}),{data:b,error:_,networkStatus:x,refetch:k}=zs(el,{variables:{fieldId:String(p),projectId:a,stageId:String(null===s||void 0===s?void 0:s.id)},skip:!s||!(0,er.$K)(p),fetchPolicy:"cache-and-network"}),C=y||_,S=!s||g||x<Ja.ready,M=(0,r.useMemo)((()=>{var e;return(null===m||void 0===m||null===(e=m.mrv.project)||void 0===e?void 0:e.farms)||[]}),[m]);(0,r.useEffect)((()=>{var e,t;const n=null===M||void 0===M||null===(e=M[0])||void 0===e||null===(t=e.fields)||void 0===t?void 0:t[0];null===p&&n&&h(n.id)}),[M,p,h]);const T=(0,r.useMemo)((()=>{var e,t;if(!v)return{};const n=(null===v||void 0===v||null===(e=v.mrv)||void 0===e||null===(t=e.project)||void 0===t?void 0:t.farms)||[];return null===n||void 0===n?void 0:n.reduce(((e,t)=>{var n;return null===(n=t.fields)||void 0===n||n.forEach((t=>{(0,er.$K)(t.id)&&(e[t.id]=t)})),e}),{})}),[v]),E=null===b||void 0===b||null===(t=b.mrv.project)||void 0===t?void 0:t.field,P=(0,er.$K)(E)?E:(0,er.$K)(p)&&null!==(n=T[p])&&void 0!==n?n:null,{selectedFarm:I,selectedField:O}=(0,r.useMemo)((()=>{var e,t,n;const r=null!==p&&null!==(e=M.find((e=>{var t;return null===(t=e.fields)||void 0===t?void 0:t.find((e=>e.id===p))})))&&void 0!==e?e:null;return{selectedFarm:r,selectedField:null!==r&&null!==(t=null===(n=r.fields)||void 0===n?void 0:n.find((e=>e.id===p)))&&void 0!==t?t:null}}),[M,p]),L=(0,r.useMemo)((()=>({refetchQueries:[{query:Qs,variables:{fieldId:p,projectId:a,phaseId:null===c||void 0===c?void 0:c.id},fetchPolicy:"network-only"}],onCompleted:()=>{k()}})),[null===c||void 0===c?void 0:c.id,a,k,p]),[R,{loading:j}]=Ks(Xs,{onError:e=>{let{message:t}=e;(0,Yn.c)({message:o.formatMessage({id:t||"Errors.CreateUpdateEvent",defaultMessage:t||"There was an issue updating your event"}),type:"error"})},...L}),[D,{loading:A}]=Ks(Js,{onError:()=>{(0,Yn.c)({message:o.formatMessage({id:"Errors.DeleteEvent",defaultMessage:"There was an issue deleting your event"}),type:"error"})},...L}),N=(0,r.useCallback)((async(e,t)=>D({variables:{fieldId:e,eventId:t}})),[D]),F=(0,r.useCallback)((async e=>{if(!(0,er.$K)(null===s||void 0===s?void 0:s.id))return Promise.reject("Stage not found");if(!(0,er.$K)(p))return Promise.reject("No field selected");const t=Object.keys(e).reduce(((t,n)=>{if(!cl.includes(n)){const r=e[n];if(!r)return t;t[n]={value:r.value,attribute_type:r.attribute_type}}return t}),{}),n={id:!0===(null===e||void 0===e?void 0:e.isUnsavedEvent)?null:e.id,event_values:t};return R({variables:{fieldId:p,stageId:null===s||void 0===s?void 0:s.id,event:n}})}),[R,null===s||void 0===s?void 0:s.id,p]),z=(0,r.useCallback)((async e=>{if(!(0,er.$K)(null===s||void 0===s?void 0:s.id))return Promise.reject("Stage not found");if(!(0,er.$K)(p))return Promise.reject("No field selected");const t=Object.keys(e).reduce(((t,n)=>{if(!cl.includes(n)){const r=Object(e)[n];if(!(0,er.fQ)(r))return t;t[n]={value:r,attribute_type:n}}return t}),{}),n={id:(0,er.fQ)(null===e||void 0===e?void 0:e.meta.isUnsavedEvent)?null:String(e.id),event_values:t};return R({variables:{fieldId:p,stageId:null===s||void 0===s?void 0:s.id,event:n}})}),[R,null===s||void 0===s?void 0:s.id,p]),B=(0,r.useMemo)((()=>({createOrUpdateEvent:F,createOrUpdateDataGridEvent:z,createOrUpdateLoading:j,deleteFieldEvent:N,deleteLoading:A,error:C?C.message:null,farms:M,isLoading:S,selectedFarm:I,selectedField:null===P?O:P,setSelectedField:h})),[F,z,j,A,N,M,C,S,I,P,O,h]);return(0,w.jsx)(ul.Provider,{value:B,children:i})},pl=()=>(0,r.useContext)(ul);var hl=n(47514),fl=n.n(hl),ml=n(51779),gl=n.n(ml),yl=n(69548),vl=n(33538),bl=n(22337);const _l=e=>{const t=(0,er.$K)(e)?new Date(e):void 0;if(t&&(0,yl.Z)(t)){const e=new Date(t.valueOf()+60*t.getTimezoneOffset()*1e3);return(0,vl.Z)(e,"yyyy-MM-dd")}return null},wl=e=>{const t=null===e||void 0===e?void 0:e.value;return null!==t&&void 0!==t?_l(t):void 0},xl=e=>(0,vl.Z)(new Date(e),"MMM YYY"),kl=(e,t)=>{const n=new Date(e),r=new Date(t.start_date),i=new Date(t.end_date);return(0,bl.Z)(n,{start:r,end:i})},Cl=e=>(0,er.$K)(e.value)&&""!==e.value?"number"===e.type?parseFloat(e.value):e.value:null,Sl=()=>({id:gl()(),isUnsavedEvent:!0}),Ml=e=>{let{cultivationCycle:t}=e;const n=xl(t.start_date),r=xl(t.end_date);return(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.ZT,{variant:"h6",textTransform:"capitalize",children:t.name}),(0,w.jsxs)(d.ZT,{children:[n,"\xa0-\xa0",r]})]})},Tl=r.memo((e=>{let{formatMessage:t,cultivationCycle:n}=e;const r=(n.events||[]).length>0,i=r?"Yes":"No";return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ml,{cultivationCycle:n}),(0,w.jsx)(d.pj,{align:"center",width:160,children:(0,w.jsx)(d.t8,{control:(0,w.jsx)(d.rs,{inputProps:{"aria-label":t({id:"Placeholder.CultivationCycleEventsToggle",defaultMessage:"Cultivation cycle events toggle"}),name:"events toggle"},checked:r}),label:(0,w.jsx)(d.lX,{children:t({id:i,defaultMessage:i})}),sx:{pointerEvents:"none"}})})]})}));var El=n(4794),Pl=n.n(El);const Il=e=>{let{cellCount:t}=e;return(0,w.jsx)(w.Fragment,{children:Pl()(t,(e=>(0,w.jsx)(d.pj,{},e)))})},Ol=e=>{let{handleOnClick:t}=e;return(0,w.jsx)(d.xu,{p:2,justifyContent:"right",display:"flex",children:(0,w.jsx)(d.zx,{startIcon:(0,w.jsx)(d.le,{type:"plus"}),size:"small",onClick:t,variant:"outlined",color:"secondary",children:"Add event"})})};var Ll=n(98091),Rl=n.n(Ll);const jl=e=>{let{attributeType:t,stageType:n,formatMessage:r,validator:i}=e;return{field:t,headerName:r({id:`stage.form.${n}.headers.${t}`,defaultMessage:Rl()(t.split("_").join(" "))}),valueGetter:e=>{let{value:t}=e;return null===t||void 0===t?void 0:t.value},flex:1,editable:!0,sortable:!1,preProcessEditCellProps:i?e=>{let{row:n,props:o,otherFieldsProps:a}=e;const s=Object(n)[t],l={...n,...a,[t]:{...s,value:o.value}};return{...o,error:(0,er.$K)(o.value)?i(l,r,l.meta.cultivationCycle):null}}:void 0}},Dl=e=>{let{columns:t}=e;const{selectedField:n,isLoading:i,deleteFieldEvent:o,createOrUpdateDataGridEvent:a}=pl(),{currentStage:s}=ll(),l=(0,r.useMemo)((()=>{return(e=null===n||void 0===n?void 0:n.cultivation_cycles)?e.flatMap((e=>{var t,n;return(0,er.fQ)(null===e||void 0===e||null===(t=e.events)||void 0===t?void 0:t.length)&&null!==e&&void 0!==e&&null!==(n=e.events)&&void 0!==n&&n.length?e.events.map(((t,n)=>({...t,meta:{cultivationCycle:e,showCultivationCycle:0===n}}))):[{id:e.id,meta:{cultivationCycle:e,showCultivationCycle:!0}}]})):[];var e}),[n]),[c,u]=r.useState([]),p=(0,r.useMemo)((()=>c.length?l.length?[...l,...c]:c:l),[l,c]),[h,f]=r.useState({}),m=(0,r.useCallback)((e=>()=>{f({...h,[e]:{mode:d.DQ.GridRowModes.Edit}})}),[h]),g=(0,r.useCallback)((e=>()=>{f({...h,[e]:{mode:d.DQ.GridRowModes.View}})}),[h]),y=(0,r.useCallback)((e=>{const t=fl()(c,{id:e});u((e=>{const n=[...e];return n.splice(t,1),n}))}),[c]),v=(0,r.useCallback)((e=>async()=>{n&&((0,er.fQ)(e.meta.isUnsavedEvent)?y(e.id):await o(null===n||void 0===n?void 0:n.id,e.id))}),[o,y,n]),b=(0,r.useCallback)((e=>()=>{(0,er.fQ)(e.meta.isUnsavedEvent)?y(e.id):f({...h,[e.id]:{mode:d.DQ.GridRowModes.View,ignoreModifications:!0}})}),[y,h]),_=(0,r.useCallback)((async e=>{const{errors:t,data:n}=await a(e);return t?Promise.reject():((0,er.fQ)(e.meta.isUnsavedEvent)&&y(e.id),{...e,...null===n||void 0===n?void 0:n.createOrUpdateFieldEvent})}),[a,y]),x=(0,r.useCallback)((()=>{const e=gl()();u((t=>[...t,{id:e,meta:{isUnsavedEvent:!0}}])),f((t=>({...t,[e]:{mode:d.DQ.GridRowModes.Edit}})))}),[]),k=(0,r.useMemo)((()=>[{field:"cultivationCycle",headerName:"Cultivation Cycle",minWidth:160,sortable:!1,renderCell:e=>{var t,n;let{row:r}=e;const i=null===r||void 0===r||null===(t=r.meta)||void 0===t?void 0:t.cultivationCycle,o=null===r||void 0===r||null===(n=r.meta)||void 0===n?void 0:n.showCultivationCycle;return(0,er.fQ)(o)&&i?(0,w.jsx)(Ml,{cultivationCycle:i}):null}},...t,{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:e=>{var t,n,r;let{id:i,row:o}=e;return(null===(t=h[i])||void 0===t?void 0:t.mode)===d.DQ.GridRowModes.Edit?[(0,w.jsx)(d.DQ.GridActionsCellItem,{"aria-label":`Save event ${o.id}`,icon:(0,w.jsx)(d.le,{type:"save",color:"primary"}),label:"Save",onClick:g(o.id)},"save-button"),(0,w.jsx)(d.DQ.GridActionsCellItem,{"aria-label":`Cancel edit event ${o.id}`,icon:(0,w.jsx)(d.le,{type:"cross",color:"main"}),label:"Cancel",onClick:b(o)},"cancel-button")]:0===(null===o||void 0===o||null===(n=o.meta.cultivationCycle)||void 0===n||null===(r=n.events)||void 0===r?void 0:r.length)?[]:[(0,w.jsx)(d.DQ.GridActionsCellItem,{"aria-label":`Edit event ${o.id}`,icon:(0,w.jsx)(d.le,{type:"pencil",color:"main"}),label:"Edit",onClick:m(o.id)},"edit-button"),(0,w.jsx)(d.DQ.GridActionsCellItem,{"aria-label":`Delete event ${o.id}`,icon:(0,w.jsx)(d.le,{type:"delete",color:"main"}),label:"Delete",onClick:v(o)},"delete-button")]}}]),[t,b,v,m,g,h]);return(0,w.jsx)(d.xu,{width:"100%",height:p.length||i?"auto":"270px",children:(0,w.jsx)(d.DQ.DataGrid,{"aria-label":`Field ${null===n||void 0===n?void 0:n.id} ${null===s||void 0===s?void 0:s.type} table`,disableChildrenSorting:!0,disableColumnReorder:!0,disableColumnPinning:!0,disableColumnFilter:!0,rows:p,columns:k,editMode:"row",rowModesModel:h,onRowModesModelChange:f,processRowUpdate:_,slots:{toolbar:()=>(0,w.jsx)(Ol,{handleOnClick:x})},slotProps:{toolbar:{setRowModesModel:f}},sx:{".MuiFilledInput-root.Mui-focused":{border:"transparent"},width:"100%",flexDirection:"column"}})})};var Al=n(75306);const Nl=e=>{let{children:t,error:n}=e;return n?(0,w.jsx)(Fl,{title:n,children:(0,w.jsx)(d.xu,{width:"100%",children:t})}):(0,w.jsx)(w.Fragment,{children:t})},Fl=(0,d.zo)((e=>{let{className:t,...n}=e;return(0,w.jsx)(d.u,{...n,classes:{popper:t},placement:"right"})}))((e=>{let{theme:t}=e;return{width:t.spacing(44),[`& .${Al.Z.tooltip}`]:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,boxShadow:t.shadows[3]},[`& .${Al.Z.arrow}`]:{color:t.palette.text.primary,"&::before":{backgroundColor:t.palette.background.paper,boxShadow:t.shadows[3]}}}}));let zl=function(e){return e.Commodity="Commodity",e.Cover="Cover",e}({}),Bl=function(e){return e.Drip="Drip",e.Furrow="Furrow",e.SubsurfaceDrip="Subsurface drip",e.Flood="Flood",e}({}),Ul=function(e){return e.Herbicide="Herbicide",e.WinterKill="Winterkill",e.Tillage="Tillage",e.Mechanical="Mechanical",e.ForageHarvest="Forage Harvest",e.GrainHarvest="Grain Harvest",e}({});var $l=n(90686),Vl=n(29494),ql=n(40582),Zl=n(70759),Hl=864e5;function Gl(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Wl(e,t){(0,Zl.Z)(2,arguments);var n=(0,$l.Z)(e),r=(0,$l.Z)(t),i=Gl(n,r),o=Math.abs(function(e,t){(0,Zl.Z)(2,arguments);var n=(0,ql.Z)(e),r=(0,ql.Z)(t),i=n.getTime()-(0,Vl.Z)(n),o=r.getTime()-(0,Vl.Z)(r);return Math.round((i-o)/Hl)}(n,r));n.setDate(n.getDate()-i*o);var a=i*(o-Number(Gl(n,r)===-i));return 0===a?0:a}const Yl=[Ul.Herbicide,Ul.WinterKill,Ul.Tillage,Ul.Mechanical],Kl={[$s.id.CropUsage]:{[$s.id.CropType]:{[zl.Cover]:{id:`Validations.${$s.id.CropUsage}.${$s.id.CropType}.${zl.Cover}`,defaultMessage:"Crop usage must be 'Cover' for your selected crop type"}}},[$s.id.CropYield]:{required:{id:`Validations.${$s.id.CropYield}.required`,defaultMessage:"Crop yield is required"},value:{0:{id:`Validations.${$s.id.CropYield}.value.0`,defaultMessage:"Crop yield must be greater than 0"}},[$s.id.WinterCropTermination]:{invalid:{id:`Validations.${$s.id.CropYield}.${$s.id.WinterCropTermination}.invalid`,defaultMessage:"Crop Yield is only available when the termination method implies some type of harvest."}}},[$s.id.YieldRateUnit]:{required:{id:`Validations.${$s.id.YieldRateUnit}.required`,defaultMessage:"Yield rate unit is required"}},[$s.id.PlantingDate]:{[zl.Commodity]:{length:{id:`Validations.${$s.id.PlantingDate}.${zl.Commodity}.length`,defaultMessage:"Commodity crop cannot have a season length that is less than 60 days long"}},[$s.id.HarvestDate]:{length:{id:`Validations.${$s.id.PlantingDate}.${$s.id.HarvestDate}.length`,defaultMessage:"Planting date must be before the harvest/termination date"}},length:{id:`Validations.${$s.id.PlantingDate}.length`,defaultMessage:"Cultivation cycle cannot be longer than a year"},required:{id:`Validations.${$s.id.PlantingDate}.required`,defaultMessage:"Planting date is required"}},[$s.id.HarvestDate]:{[$s.id.PlantingDate]:{length:{id:`Validations.${$s.id.HarvestDate}.${$s.id.PlantingDate}`,defaultMessage:"Harvest/termination date cannot be before the planting date"}},required:{id:`Validations.${$s.id.HarvestDate}.required`,defaultMessage:"Harvest date is required"}},[$s.id.WinterCropTermination]:{required:{id:`Validations.${$s.id.WinterCropTermination}.required`,defaultMessage:"Termination method is required"},invalid:{id:`Validations.${$s.id.WinterCropTermination}.invalid`,defaultMessage:"Termination method can only be selected for cover crops"}},[$s.id.ResidueHarvested]:{[$s.id.CropUsage]:{[zl.Commodity]:{invalid:{id:`Validations.${$s.id.ResidueHarvested}.${$s.id.CropUsage}.${zl.Commodity}.required`,defaultMessage:"Residue harvested is only available for commodity crops"}}}}},Xl=(e,t)=>{var n;const{crop_type:r,crop_usage:i}=e;return(0,er.$K)(null===r||void 0===r?void 0:r.value)&&Boolean(null===r||void 0===r||null===(n=r.value)||void 0===n?void 0:n.toLowerCase().includes("cover crop"))&&(null===i||void 0===i?void 0:i.value)!==zl.Cover?t(Kl[$s.id.CropUsage][$s.id.CropType][zl.Cover]):null},Jl=(e,t)=>{const{crop_yield:n,crop_usage:r,yield_rate_unit:i,winter_crop_termination:o}=e,a=(0,er.$K)(null===n||void 0===n?void 0:n.value),s=(null===r||void 0===r?void 0:r.value)===zl.Commodity;if(!a&&(0,er.$K)(null===i||void 0===i?void 0:i.value))return t(Kl[$s.id.CropYield].required);if(s&&(0,er.$K)(n)&&parseInt(String(null===n||void 0===n?void 0:n.value))<=0)return t(Kl[$s.id.CropYield].value[0]);var l;return(0,er.$K)(null===n||void 0===n?void 0:n.value)&&0!==(null===n||void 0===n?void 0:n.value)&&(l=null===o||void 0===o?void 0:o.value,Yl.some((e=>e===l)))?t(Kl[$s.id.CropYield][$s.id.WinterCropTermination].invalid):null},Ql=(e,t)=>{const{crop_yield:n,yield_rate_unit:r}=e,i=null===n||void 0===n?void 0:n.value;return(0,er.$K)(i)&&!(0,er.$K)(null===r||void 0===r?void 0:r.value)&&i>0?t(Kl[$s.id.YieldRateUnit].required):null},ec=(e,t)=>{const{planting_date:n,harvest_date:r,crop_usage:i}=e;if(!(0,er.$K)(null===n||void 0===n?void 0:n.value)||!(0,er.$K)(null===r||void 0===r?void 0:r.value))return null;const o=new Date(String(null===n||void 0===n?void 0:n.value)),a=Wl(new Date(String(null===r||void 0===r?void 0:r.value)),o);if((0,er.$K)(null===i||void 0===i?void 0:i.value)&&(null===i||void 0===i?void 0:i.value)===zl.Commodity&&a<60)return t(Kl[$s.id.PlantingDate][zl.Commodity].length);return a>365?t(Kl[$s.id.PlantingDate].length):null},tc=(e,t)=>{const{planting_date:n,harvest_date:r}=e;if(!(0,er.$K)(null===n||void 0===n?void 0:n.value))return null;return(0,er.$K)(null===r||void 0===r?void 0:r.value)&&String(null===n||void 0===n?void 0:n.value)>String(null===r||void 0===r?void 0:r.value)?t(Kl[$s.id.PlantingDate][$s.id.HarvestDate].length):ec(e,t)},nc=(e,t)=>{const{harvest_date:n,planting_date:r}=e;if(!(0,er.$K)(null===n||void 0===n?void 0:n.value))return null;return(0,er.$K)(null===n||void 0===n?void 0:n.value)&&String(null===r||void 0===r?void 0:r.value)>String(null===n||void 0===n?void 0:n.value)?t(Kl[$s.id.HarvestDate][$s.id.PlantingDate].length):ec(e,t)},rc=(e,t)=>{const{winter_crop_termination:n,crop_usage:r}=e;return(null===r||void 0===r?void 0:r.value)!==zl.Cover&&(0,er.$K)(null===n||void 0===n?void 0:n.value)&&(0,er.HH)(null===n||void 0===n?void 0:n.value)?t(Kl[$s.id.WinterCropTermination].invalid):null},ic=(e,t)=>{const{crop_usage:n,residue_harvested:r}=e;return(null===n||void 0===n?void 0:n.value)!==zl.Commodity&&(0,er.$K)(null===r||void 0===r?void 0:r.value)&&(0,er.HH)(null===r||void 0===r?void 0:r.value)?t(Kl[$s.id.ResidueHarvested][$s.id.CropUsage][zl.Commodity].invalid):null};var oc=n(41921);function ac(e,t){(0,Zl.Z)(2,arguments);var n=(0,$l.Z)(e),r=(0,oc.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}const sc=new Date,lc=_l(ac(sc,sc.getFullYear()-10).toISOString()),cc=_l(ac(sc,sc.getFullYear()+10).toISOString()),uc=e=>{let{value:t,onChange:n,error:r,required:i,name:o,min:a=lc,max:s=cc,color:l,inputRef:c,...u}=e;const{"aria-label":p,...h}=u;return(0,w.jsx)(d.mQ,{type:"date",inputProps:{"aria-label":p,min:a,max:s,name:o},value:t,onChange:n,color:l,error:(0,er.$K)(t)&&(0,er.$K)(r)&&(0,er.fQ)(r),required:i,fullWidth:!0,inputRef:c,...h})},dc=e=>{const t=r.useRef(null);return r.useEffect((()=>{e&&t.current&&t.current.focus()}),[e]),t};var pc=n(20304);const hc="placeholder",fc=e=>{let{value:t,options:n=[],onChange:r,formatMessage:i,hasFocus:o}=e;const a=dc(!!(0,er.$K)(o)&&o);return n.length?(0,w.jsxs)(d.nv,{variant:"filled",inputProps:{"aria-label":i({id:`MRVAttributeType.${$s.id.CropType}`,defaultMessage:"crop type"}),name:$s.id.CropType},inputRef:a,value:null!==t&&void 0!==t?t:hc,onChange:r,sx:{"& .MuiInputBase-input":{height:"auto"}},color:(0,er.$K)(t)?void 0:"warning",select:!0,required:!0,fullWidth:!0,title:i({id:`MRVAttributeType.${$s.id.CropType}`,defaultMessage:"crop type"}),children:[(0,w.jsx)(d.sN,{value:hc,disabled:!0,children:i({id:"Placeholder.selectCrop",defaultMessage:"Select crop"})}),null===n||void 0===n?void 0:n.map((e=>{let{value:t,label:n}=e;return(0,w.jsx)(d.sN,{value:t,children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",width:"100%",gap:2,children:[(0,w.jsx)(pc.C,{cropType:t,size:20}),(0,w.jsx)(d.bd,{children:n})]})},t)}))]}):(0,er.$K)(t)&&(0,er.HD)(t)?(0,w.jsx)(d.xu,{display:"flex",alignItems:"center",textTransform:"capitalize",children:(0,w.jsxs)(d.xu,{ml:e=>{let{spacing:t}=e;return t(2)},width:"100%",display:"flex",alignItems:"center",gap:2,children:[(0,w.jsx)(pc.C,{cropType:t,size:20}),(0,w.jsx)(d.bd,{children:i({id:t,defaultMessage:t})})]})}):(0,w.jsx)(w.Fragment,{})},mc=e=>{let{value:t,options:n,onChange:r,error:i,formatMessage:o,hasFocus:a,...s}=e;const l=dc(!!(0,er.$K)(a)&&a),c=(0,er.$K)(t)&&(0,er.$K)(i)&&(0,er.fQ)(i);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":o({id:`MRVAttributeType.${$s.id.CropUsage}`,defaultMessage:"crop usage"}),name:$s.id.CropUsage},inputRef:l,value:null!==t&&void 0!==t?t:"",onChange:r,options:n,placeholder:o({id:"Placeholder.selectUsage",defaultMessage:"Select usage"}),color:(0,er.$K)(t)?void 0:"warning",required:!0,error:c,title:o({id:`MRVAttributeType.${$s.id.CropUsage}`,defaultMessage:"crop usage"}),fullWidth:!0,...s})},gc=e=>{let{value:t,error:n,onChange:r,formatMessage:i,hasFocus:o,...a}=e;const s=dc(!!(0,er.$K)(o)&&o);return(0,w.jsx)(uc,{inputRef:s,formatMessage:i,"aria-label":i({id:`MRVAttributeType.${$s.id.PlantingDate}`,defaultMessage:"planting date"}),name:$s.id.PlantingDate,value:t,onChange:r,error:n,color:(0,er.$K)(t)?void 0:"warning",required:!0,...a})},yc=e=>{let{value:t,error:n,onChange:r,formatMessage:i,hasFocus:o,...a}=e;const s=dc(!!(0,er.$K)(o)&&o);return(0,w.jsx)(uc,{"aria-label":i({id:`MRVAttributeType.${$s.id.HarvestDate}`,defaultMessage:"harvest date"}),name:$s.id.HarvestDate,value:t,onChange:r,color:(0,er.$K)(t)?void 0:"warning",required:!0,error:n,formatMessage:i,inputRef:s,...a})},vc=e=>{let{value:t,error:n,options:r,isCoverCrop:i=!1,onChange:o,formatMessage:a,hasFocus:s}=e;const l=dc(!!(0,er.$K)(s)&&s),c=!(0,er.$K)(t)&&!i,u=(0,er.$K)(t)&&(0,er.$K)(n)&&(0,er.fQ)(n);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":a({id:`MRVAttributeType.${$s.id.WinterCropTermination}`,defaultMessage:"termination method"}),name:$s.id.WinterCropTermination,required:i,tabIndex:0},value:t,onChange:o,options:r,placeholder:a({id:"Placeholder.selectMethod",defaultMessage:"Select method"}),disabled:c,readOnly:c,color:i&&!(0,er.$K)(t)?"warning":void 0,error:u,title:a({id:`MRVAttributeType.${$s.id.WinterCropTermination}`,defaultMessage:"termination method"}),required:i,inputRef:l,fullWidth:!0,hasClear:u})},bc=e=>{let{value:t,error:n,isCommodityCrop:r=!1,onChange:i,formatMessage:o,hasFocus:a}=e;const s=dc(!!(0,er.$K)(a)&&a),l=(0,er.$K)(n)&&(0,er.fQ)(n);return(0,w.jsx)(d.mQ,{type:"number",inputProps:{name:$s.id.CropYield,"aria-label":o({id:`MRVAttributeType.${$s.id.CropYield}`,defaultMessage:"crop yield"}),min:r?1:0,step:.5,sx:{"& input":{textAlign:"right"}}},defaultValue:t,onChange:i,placeholder:o({id:`Placeholder.${$s.id.CropYield}`,defaultMessage:"Yield"}),required:r,color:!(0,er.$K)(t)&&r?"warning":void 0,error:l,title:o({id:`MRVAttributeType.${$s.id.CropYield}`,defaultMessage:"crop yield"}),inputRef:s,fullWidth:!0,endAdornment:l?(0,w.jsx)(d.oG,{position:"end",onClick:()=>{i({target:{value:0}})},children:(0,w.jsx)(d.le,{type:"cross-circled",color:"error"})}):void 0})},_c=e=>{let{value:t,options:n,error:r,isCommodityCrop:i=!1,onChange:o,formatMessage:a,hasFocus:s}=e;const l=dc(!!(0,er.$K)(s)&&s),c=!(0,er.$K)(t)&&!i,u=(0,er.$K)(t)&&(0,er.$K)(r)&&(0,er.fQ)(r);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":a({id:`MRVAttributeType.${$s.id.YieldRateUnit}`,defaultMessage:"yield rate unit"}),required:i,tabIndex:0},value:t,onChange:o,options:n,placeholder:a({id:"Placeholder.selectUnit",defaultMessage:"Select Unit"}),disabled:c,readOnly:c,required:i,color:!(0,er.$K)(t)&&i?"warning":void 0,error:(0,er.$K)(t)&&(0,er.$K)(r)&&(0,er.fQ)(r),title:a({id:`MRVAttributeType.${$s.id.YieldRateUnit}`,defaultMessage:"yield rate unit"}),inputRef:l,fullWidth:!0,hasClear:u})},wc=e=>{let{value:t,error:n,options:r,isCommodityCrop:i=!1,onChange:o,formatMessage:a,hasFocus:s}=e;const l=dc(!!(0,er.$K)(s)&&s),c=!i&&!(0,er.$K)(t),u=(0,er.$K)(t)&&(0,er.$K)(n)&&(0,er.fQ)(n);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":a({id:`MRVAttributeType.${$s.id.ResidueHarvested}`,defaultMessage:"residue harvested"}),name:$s.id.ResidueHarvested,required:i,tabIndex:0},value:t,defaultValue:t,onChange:o,options:r,placeholder:a({id:"Placeholder.selectOption",defaultMessage:"Select option"}),color:!(0,er.$K)(t)&&i?"warning":void 0,error:(0,er.$K)(t)&&(0,er.$K)(n)&&(0,er.fQ)(n),title:a({id:`MRVAttributeType.${$s.id.ResidueHarvested}`,defaultMessage:"residue harvested"}),disabled:c,readOnly:c,required:i,inputRef:l,fullWidth:!0,hasClear:u})},xc=()=>{const{formatMessage:e}=(0,f.YB)(),{attributeOptions:t}=ll(),n=(e=>{let{attributeOptions:t,formatMessage:n}=e;const r=[{...jl({attributeType:$s.id.CropType,stageType:$s.w.CROP_EVENTS,formatMessage:n}),renderCell:e=>{let{value:t}=e;return(0,w.jsx)(fc,{formatMessage:n,value:t})},renderEditCell:e=>{let{value:r,api:i,id:o,field:a,hasFocus:s}=e;return(0,w.jsx)(fc,{formatMessage:n,onChange:e=>{const t=e.target.value;i.setEditCellValue({id:o,field:a,value:t})},value:r,options:t.crop_type,hasFocus:s})}},{...jl({attributeType:$s.id.CropUsage,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:Xl}),renderEditCell:e=>{let{value:r,api:i,id:o,field:a,error:s,hasFocus:l}=e;return(0,w.jsx)(Nl,{error:s,children:(0,w.jsx)(mc,{formatMessage:n,onChange:e=>{const t=e.target.value;i.setEditCellValue({id:o,field:a,value:t})},value:r,options:t.crop_usage,error:s,hasFocus:l})})}},{...jl({attributeType:$s.id.PlantingDate,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:tc}),renderEditCell:e=>{let{value:t,api:r,id:i,field:o,error:a,hasFocus:s}=e;return(0,w.jsx)(Nl,{error:a,children:(0,w.jsx)(gc,{formatMessage:n,onChange:e=>{const t=e.target.value;r.setEditCellValue({id:i,field:o,value:t})},value:t,error:a,hasFocus:s})})}},{...jl({attributeType:$s.id.HarvestDate,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:nc}),renderEditCell:e=>{let{value:t,api:r,id:i,field:o,error:a,hasFocus:s}=e;return(0,w.jsx)(Nl,{error:a,children:(0,w.jsx)(yc,{formatMessage:n,onChange:e=>{const t=e.target.value;r.setEditCellValue({id:i,field:o,value:t})},value:t,error:a,hasFocus:s})})}},{...jl({attributeType:$s.id.WinterCropTermination,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:rc}),headerName:n({id:`stage.form.${$s.w.CROP_EVENTS}.headers.${$s.id.WinterCropTermination}`,defaultMessage:"Termination Method"}),renderEditCell:e=>{let{value:r,row:i,api:o,id:a,field:s,error:l,hasFocus:c}=e;return(0,w.jsx)(Nl,{error:l,children:(0,w.jsx)(vc,{formatMessage:n,onChange:e=>{const t=e.target.value;o.setEditCellValue({id:a,field:s,value:t})},options:t.winter_crop_termination,value:r,error:l,isCoverCrop:i.crop_usage===zl.Cover,hasFocus:c})})}},{...jl({attributeType:$s.id.CropYield,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:Jl}),type:"number",renderEditCell:e=>{let{value:t,row:r,api:i,id:o,field:a,error:s,hasFocus:l}=e;return(0,w.jsx)(Nl,{error:s,children:(0,w.jsx)(bc,{formatMessage:n,onChange:e=>{const t=e.target.value;i.setEditCellValue({id:o,field:a,value:t})},value:t,error:s,isCommodityCrop:r.crop_usage===zl.Commodity,hasFocus:l})})}},{...jl({attributeType:$s.id.YieldRateUnit,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:Ql}),renderEditCell:e=>{let{value:r,row:i,api:o,id:a,field:s,error:l,hasFocus:c}=e;return(0,w.jsx)(Nl,{error:l,children:(0,w.jsx)(_c,{formatMessage:n,onChange:e=>{const t=e.target.value;o.setEditCellValue({id:a,field:s,value:t})},value:r,error:l,options:t.yield_rate_unit,isCommodityCrop:i.crop_usage===zl.Commodity,hasFocus:c})})}},{...jl({attributeType:$s.id.ResidueHarvested,stageType:$s.w.CROP_EVENTS,formatMessage:n,validator:ic}),renderEditCell:e=>{let{value:r,row:i,api:o,id:a,field:s,error:l,hasFocus:c}=e;const u=i.crop_usage===zl.Commodity;return(0,w.jsx)(Nl,{error:l,children:(0,w.jsx)(wc,{formatMessage:n,onChange:e=>{const t=e.target.value;o.setEditCellValue({id:a,field:s,value:t})},value:r,error:l,options:t.residue_harvested,isCommodityCrop:u,hasFocus:c})})}}];return r})({formatMessage:e,attributeOptions:t});return(0,w.jsx)(Dl,{columns:n})},kc=r.memo((e=>{let{TableHeaders:t,TableEventRow:n,AddEventRow:i,...o}=e;const a=(0,f.YB)(),s=(0,d.Fg)(),{currentUser:l}=(0,Wr.x)(),{attributeOptions:c,applicationProducts:u,currentStage:p}=ll(),h=null===l||void 0===l?void 0:l.settings.measurement,{fieldPractices:m,handleRowDelete:g,handleRowUpdate:y,unsavedEvent:v}=(()=>{const{selectedField:e,deleteFieldEvent:t,createOrUpdateEvent:n}=pl(),[i,o]=(0,r.useState)(Sl()),a=(0,r.useCallback)((async n=>{if(n===(null===i||void 0===i?void 0:i.id))return o(Sl()),Promise.reject();if(e&&e.id){const{data:r}=await t(e.id,n);if(!0===(null===r||void 0===r?void 0:r.deleteFieldEvent))return Promise.resolve()}return Promise.reject()}),[null===i||void 0===i?void 0:i.id,e,t]);return{handleRowUpdate:(0,r.useCallback)((async e=>{const{data:t,errors:r}=await n(e);t&&!r&&e.isUnsavedEvent&&o(Sl())}),[n]),handleRowDelete:a,fieldPractices:(null===e||void 0===e?void 0:e.cultivation_cycles)||[],unsavedEvent:i}})(),{isLoading:b,selectedField:_}=pl(),x=u.length?u:[];return(0,w.jsx)(d.xu,{...o,overflow:"auto",pb:3,sx:{scrollbarWidth:"thin"},children:(0,w.jsx)(d.xu,{display:"flex",children:(0,w.jsxs)(Mc,{children:[(0,w.jsx)(d.ss,{sx:{borderBottom:`2px solid ${s.palette.semanticPalette.stroke.secondary}`,width:s.fixedWidths.md,lineHeight:s.typography.h4.lineHeight},children:(0,w.jsx)(d.SC,{children:(0,w.jsx)(t,{})})}),b&&!_?(0,w.jsx)(Sc,{}):(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(d.RM,{"aria-label":"Field practices",sx:{paddingBottom:s.spacing(4),scrollbarWidth:"thin"},children:null===m||void 0===m?void 0:m.map((e=>(0,w.jsx)(n,{cultivationCycle:e,onRowDelete:g,onRowUpdate:y,attributeOptions:c,applicationProducts:x,measurement:h},`${e.id}-${null===p||void 0===p?void 0:p.type}`)))},null===p||void 0===p?void 0:p.type)}),(0,w.jsx)(d.RM,{"aria-label":"Add event",children:(0,w.jsx)(d.SC,{children:(0,w.jsx)(i,{disabled:b,event:v,onRowDelete:g,onRowUpdate:y,attributeOptions:c,applicationProducts:x,formatMessage:a.formatMessage,measurement:h},null===v||void 0===v?void 0:v.id)})})]})})})})),Cc=()=>(0,w.jsx)(d.SC,{children:(0,w.jsx)(d.pj,{colSpan:100,children:(0,w.jsx)(d.Od,{variant:"rounded",height:"100%",width:"100%"})})}),Sc=()=>(0,w.jsx)(d.RM,{"aria-label":"loading","aria-busy":!0,"aria-live":"polite",children:Pl()(3,(e=>(0,w.jsx)(Cc,{},e)))}),Mc=(0,d.zo)(d.iA)`
  th,
  td {
    text-overflow: ellipsis;
    text-wrap: nowrap;
    height: 54px;
  }

  td {
    white-space: nowrap;
    padding: 0;
  }

  tbody {
    > tr {
      border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.palette.grey[200]}};
      & > :first-child {
        padding-left: 0;
      }

      &:hover {
        background-color: ${e=>{let{theme:t}=e;return t.palette.grey[100]}};
      }
    }
  }
`,Tc=()=>{const e=(0,f.YB)();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.cultivationCycle",defaultMessage:"Cultivation cycle"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.irrigation.headers.irrigated",defaultMessage:"Irrigated?"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.irrigation.headers.irrigationPeriod",defaultMessage:"Irrigation period"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.irrigation.headers.irrigationMethod",defaultMessage:"Irrigation method"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.irrigation.headers.subsurfaceDripDepth",defaultMessage:"Subsurface drip depth"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.irrigation.headers.floorPercent",defaultMessage:"Flood percent"})}),(0,w.jsx)(d.pj,{sx:{minWidth:"52px",width:"52px"}})]})};var Ec=n(93775),Pc=n.n(Ec);const Ic="160px",Oc=(0,r.memo)((e=>{let{onRowDelete:t,disabled:n=!1}=e;const i=(0,f.YB)(),[o,a]=(0,r.useState)(!1);return(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.xu,{ml:2,children:(0,w.jsx)(d.zx,{"aria-label":i.formatMessage({id:"stage.form.deleteRow",defaultMessage:"Delete Row"}),variant:"outlined",color:"secondary",size:"small",disabled:o||n,onClick:()=>{(async()=>{if(t){a(!0);try{await t()}catch(e){o&&a(!1)}}})()},children:(0,w.jsx)(d.JO,{type:"delete"})})})})})),Lc={[$s.id.FloodPct]:{range:{id:`Validations.${$s.id.FloodPct}.range`,defaultMessage:"Flood percentage must be between 0 and 100"},invalid:{id:`Validations.${$s.id.FloodPct}.invalid`,defaultMessage:"Flood percentage can only be set when the irrigation method is furrow"}},[$s.id.SubsurfaceDripDepth]:{range:{id:`Validations.${$s.id.SubsurfaceDripDepth}.range`,defaultMessage:"Subsurface drip depth must be greater than 0"},required:{id:`Validations.${$s.id.SubsurfaceDripDepth}.required`,defaultMessage:"Subsurface drip depth is required when unit is selected"},invalid:{id:`Validations.${$s.id.SubsurfaceDripDepth}.invalid`,defaultMessage:"Subsurface drip depth is only available for subsurface drip irrigation method"}},[$s.id.SubsurfaceDripDepthUnit]:{required:{id:`Validations.${$s.id.SubsurfaceDripDepthUnit}.required`,defaultMessage:"Subsurface drip depth unit is required when depth is entered"}},[$s.id.StartDate]:{[$s.id.EndDate]:{length:{id:`Validations.${$s.id.StartDate}.${$s.id.EndDate}.length`,defaultMessage:"Start date must be before the end date"}},length:{long:{id:`Validations.${$s.id.StartDate}.length`,defaultMessage:"Irrigation cycle cannot be longer than a year"},short:{id:`Validations.${$s.id.StartDate}.short`,defaultMessage:"Irrigation cycle is too short"}},required:{id:`Validations.${$s.id.StartDate}.required`,defaultMessage:"Start date is required"},invalid:{id:`Validations.${$s.id.StartDate}.invalid`,defaultMessage:"Start date must be within the cultivation cycle"}},[$s.id.EndDate]:{[$s.id.StartDate]:{length:{id:`Validations.${$s.id.EndDate}.${$s.id.StartDate}`,defaultMessage:"End date cannot be before the start date"}},required:{id:`Validations.${$s.id.EndDate}.required`,defaultMessage:"End date is required"},invalid:{id:`Validations.${$s.id.EndDate}.invalid`,defaultMessage:"End date must be within the cultivation cycle"}}},Rc=(e,t)=>{const{flood_pct:n,irrigation_method:r}=e,i=null===r||void 0===r?void 0:r.value,o=null===n||void 0===n?void 0:n.value,a=(0,er.$K)(o)&&(o<=0||o>100),s=i===Bl.Furrow;return(0,er.$K)(o)&&0!==o&&!s?t(Lc[$s.id.FloodPct].invalid):s&&a?t(Lc[$s.id.FloodPct].range):null},jc=(e,t)=>{const{subsurface_drip_depth:n,subsurface_drip_depth_unit:r,irrigation_method:i}=e,o=null===n||void 0===n?void 0:n.value;if((0,er.$K)(o)&&(null===i||void 0===i?void 0:i.value)!==Bl.SubsurfaceDrip)return t(Lc[$s.id.SubsurfaceDripDepth].invalid);if(!(0,er.$K)(o)&&(0,er.$K)(null===r||void 0===r?void 0:r.value))return t(Lc[$s.id.SubsurfaceDripDepth].required);return(0,er.$K)(o)&&o<=0?t(Lc[$s.id.SubsurfaceDripDepth].range):null},Dc=(e,t)=>{const{subsurface_drip_depth:n,subsurface_drip_depth_unit:r,irrigation_method:i}=e,o=null===n||void 0===n?void 0:n.value,a=null===r||void 0===r?void 0:r.value;return(0,er.$K)(a)&&(null===i||void 0===i?void 0:i.value)!==Bl.SubsurfaceDrip?t(Lc[$s.id.SubsurfaceDripDepth].invalid):(0,er.$K)(o)&&!(0,er.$K)(a)?t(Lc[$s.id.SubsurfaceDripDepthUnit].required):null},Ac=(e,t)=>{const{start_date:n,end_date:r}=e;if(!(0,er.$K)(null===n||void 0===n?void 0:n.value)||!(0,er.$K)(null===r||void 0===r?void 0:r.value))return null;const i=new Date(String(null===n||void 0===n?void 0:n.value)),o=Wl(new Date(String(null===r||void 0===r?void 0:r.value)),i);if(o<2)return t(Lc[$s.id.StartDate].length.short);return o>365?t(Lc[$s.id.StartDate].length.long):null},Nc=(e,t,n)=>{const{start_date:r,end_date:i}=e,o=(0,er.$K)(null===r||void 0===r?void 0:r.value)?null===r||void 0===r?void 0:r.value:null,a=null===i||void 0===i?void 0:i.value;if(!(0,er.$K)(o)||!(0,er.$K)(a))return null;return o>String(null===i||void 0===i?void 0:i.value)?t(Lc[$s.id.StartDate][$s.id.EndDate].length):(0,er.$K)(n)&&!kl(o,n)?t(Lc[$s.id.StartDate].invalid):Ac(e,t)},Fc=(e,t,n)=>{const{end_date:r,start_date:i}=e,o=null===r||void 0===r?void 0:r.value;if(!(0,er.$K)(o)||!(0,er.$K)(null===i||void 0===i?void 0:i.value))return null;return String(null===i||void 0===i?void 0:i.value)>String(o)?t(Lc[$s.id.EndDate][$s.id.StartDate].length):(0,er.$K)(n)&&!kl(o,n)?t(Lc[$s.id.EndDate].invalid):Ac(e,t)},zc=e=>{const{irrigation_method:t,start_date:n,end_date:r,subsurface_drip_depth:i,subsurface_drip_depth_unit:o,flood_pct:a}=e,s=(null===t||void 0===t?void 0:t.value)===Bl.Furrow;return{[$s.id.FloodPct]:!(0,er.$K)(null===a||void 0===a?void 0:a.value)&&s,[$s.id.SubsurfaceDripDepth]:!(0,er.$K)(null===i||void 0===i?void 0:i.value)&&(null===t||void 0===t?void 0:t.value)===Bl.SubsurfaceDrip,[$s.id.SubsurfaceDripDepthUnit]:!(0,er.$K)(null===o||void 0===o?void 0:o.value)&&(null===t||void 0===t?void 0:t.value)===Bl.SubsurfaceDrip,[$s.id.IrrigationMethod]:!(0,er.$K)(null===t||void 0===t?void 0:t.value),[$s.id.StartDate]:!(0,er.$K)(null===n||void 0===n?void 0:n.value),[$s.id.EndDate]:!(0,er.$K)(null===r||void 0===r?void 0:r.value)}},Bc=(0,r.memo)((e=>{let{cultivationCycle:t,attributeOptions:n,onRowDelete:r,onRowUpdate:i}=e;const o=(0,f.YB)(),a=null===t||void 0===t?void 0:t.events,s=(null===a||void 0===a?void 0:a.length)>0;return(0,w.jsx)(w.Fragment,{children:null!==a&&void 0!==a&&a.length?a.map(((e,a)=>(0,w.jsxs)(d.SC,{children:[0===a?(0,w.jsx)(Tl,{formatMessage:o.formatMessage,cultivationCycle:t}):(0,w.jsx)(Il,{cellCount:2}),s?(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(Uc,{attributeOptions:n,event:e,onRowUpdate:i,onRowDelete:r,formatMessage:o.formatMessage,cultivationCycle:t})}):(0,w.jsx)(Il,{cellCount:6})]},e.id))):(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(Tl,{formatMessage:o.formatMessage,cultivationCycle:t}),(0,w.jsx)(Il,{cellCount:6})]})})})),Uc=(0,r.memo)((e=>{var t,n,i,o,a,s,l;let{cultivationCycle:c,event:u,attributeOptions:p,onRowUpdate:h,onRowDelete:f,formatMessage:m,disabled:g=!1}=e;const[y,v]=(0,r.useState)(!1),[b,_]=(0,r.useState)(u),{isUnsavedEvent:x,start_date:k,end_date:C,irrigation_method:S,subsurface_drip_depth:M,subsurface_drip_depth_unit:T,flood_pct:E}=b,P=e=>{_((t=>({...t,[e.target.name]:{attribute_type:e.target.name,value:Cl(e.target)}}))),y||v(!0)},I=(0,r.useMemo)((()=>Pc()(h,x?800:2e3)),[x,h]),{dependencyErrors:O,requiredErrors:L,hasErrors:R}=(0,r.useMemo)((()=>{const e=((e,t,n)=>({[$s.id.FloodPct]:Rc(e,t),[$s.id.SubsurfaceDripDepth]:jc(e,t),[$s.id.SubsurfaceDripDepthUnit]:Dc(e,t),[$s.id.StartDate]:Nc(e,t,n),[$s.id.EndDate]:Fc(e,t,n),[$s.id.IrrigationMethod]:null}))(b,m,c);return{dependencyErrors:e,requiredErrors:zc(b),hasErrors:Object.values(e).some((e=>e))}}),[b,c,m]);(0,r.useEffect)((()=>{if(y&&!R){if(Object.values(L).some((e=>e)))return;try{I(b)}finally{v(!1)}}}),[y,R,L,b,I,x]),R&&y&&I.cancel();const j=(0,r.useMemo)((()=>wl(k)),[k]),D=(0,r.useMemo)((()=>wl(C)),[C]),{cultCycleStartDate:A,cultCycleEndDate:N}=(0,r.useMemo)((()=>({cultCycleStartDate:(0,er.$K)(null===c||void 0===c?void 0:c.start_date)?_l(null===c||void 0===c?void 0:c.start_date):null,cultCycleEndDate:(0,er.$K)(null===c||void 0===c?void 0:c.start_date)?_l(null===c||void 0===c?void 0:c.end_date):null})),[null===c||void 0===c?void 0:c.start_date,null===c||void 0===c?void 0:c.end_date]),F=(null===S||void 0===S?void 0:S.value)===Bl.Furrow,z=(null===S||void 0===S?void 0:S.value)===Bl.SubsurfaceDrip;return(0,w.jsxs)(w.Fragment,{children:[(0,er.$K)(c)?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.pj,{}),(0,w.jsx)(d.pj,{})]}),(0,w.jsxs)(d.pj,{sx:{maxWidth:"260px"},children:[(0,w.jsx)(d.mQ,{type:"date",inputProps:{"aria-label":m({id:`MRVAttributeType.${$s.id.StartDate}`,defaultMessage:"start date"}),min:A,max:N,name:$s.id.StartDate},defaultValue:j,onChange:P,color:L.start_date?"warning":void 0,error:null!==O.start_date,title:null!==(t=O.start_date)&&void 0!==t?t:void 0,sx:{maxWidth:"50%"},required:!0,disabled:g}),(0,w.jsx)(d.mQ,{type:"date",defaultValue:D,inputProps:{"aria-label":m({id:`MRVAttributeType.${$s.id.EndDate}`,defaultMessage:"end date"}),min:A,max:N,name:$s.id.EndDate},onChange:P,color:L.end_date?"warning":void 0,error:null!==O.end_date,title:null!==(n=O.end_date)&&void 0!==n?n:void 0,sx:{maxWidth:"50%"},disabled:g,required:!0})]}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":m({id:`MRVAttributeType.${$s.id.IrrigationMethod}`,defaultMessage:"irrigation method"}),name:$s.id.IrrigationMethod},value:null===S||void 0===S?void 0:S.value,onChange:P,placeholder:m({id:"Placeholder.selectMethod",defaultMessage:"Select method"}),options:p.irrigation_method,color:L.irrigation_method?"warning":void 0,error:null!==O.irrigation_method,title:null!==(i=O.irrigation_method)&&void 0!==i?i:void 0,disabled:g,fullWidth:!0,required:!0})}),(0,w.jsx)(d.pj,{sx:{maxWidth:Ic},children:(0,w.jsx)(d.NI,{fullWidth:!0,children:(0,w.jsx)(d.vL,{variant:"filled",type:"number",textAlign:"left",inputProps:{name:$s.id.SubsurfaceDripDepth,"aria-label":m({id:`MRVAttributeType.${$s.id.SubsurfaceDripDepth}`,defaultMessage:"subsurface drip depth"}),min:0},SelectProps:{inputProps:{name:$s.id.SubsurfaceDripDepthUnit,"aria-label":m({id:`MRVAttributeType.${$s.id.SubsurfaceDripDepthUnit}`,defaultMessage:"subsurface drip depth unit"})},placeholder:m({id:"Placeholder.selectUnit",defaultMessage:"Select unit"}),required:z,onChange:P},value:null===M||void 0===M?void 0:M.value,selectDefaultValue:null!==(o=null===T||void 0===T?void 0:T.value)&&void 0!==o?o:void 0,onChange:P,selectOptions:p.subsurface_drip_depth_unit,required:z,placeholder:m({id:`Placeholder.${$s.id.SubsurfaceDripDepth}`,defaultMessage:"Depth"}),color:L.subsurface_drip_depth||L.subsurface_drip_depth_unit?"warning":void 0,error:null!==O.subsurface_drip_depth||null!==O.subsurface_drip_depth_unit,title:null!==(a=null!==(s=O.subsurface_drip_depth)&&void 0!==s?s:O.subsurface_drip_depth_unit)&&void 0!==a?a:void 0,disabled:g||!(0,er.$K)(null===M||void 0===M?void 0:M.value)&&!(0,er.$K)(null===T||void 0===T?void 0:T.value)&&!z,fullWidth:!0})})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mQ,{type:"number",inputProps:{name:$s.id.FloodPct,"aria-label":m({id:`MRVAttributeType.${$s.id.FloodPct}`,defaultMessage:"flood percent"}),min:F?1:0,max:100,style:{textAlign:"right"}},defaultValue:null===E||void 0===E?void 0:E.value,onChange:P,endAdornment:(0,w.jsx)(d.oG,{position:"end",children:"%"}),required:F,color:L.flood_pct?"warning":void 0,error:null!==O.flood_pct,title:null!==(l=O.flood_pct)&&void 0!==l?l:void 0,placeholder:m({id:`Placeholder.${$s.id.FloodPct}`,defaultMessage:"Flood"}),disabled:g||!(0,er.$K)(null===E||void 0===E?void 0:E.value)&&!F,fullWidth:!0})}),(0,w.jsx)(Oc,{onRowDelete:async()=>{await f(u.id)},disabled:g||x&&!y})]})})),$c=()=>{const e=(0,f.YB)();return(0,w.jsx)(kc,{"aria-label":e.formatMessage({id:"stage.form.irrigation_events.title",defaultMessage:"Irrigation form"}),TableHeaders:Tc,TableEventRow:Bc,AddEventRow:Uc})},Vc=()=>{const e=(0,f.YB)();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.cultivationCycle",defaultMessage:"Cultivation cycle"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.nutrientsApplied",defaultMessage:"Nutrients applied?"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.applicationDate",defaultMessage:"Application date"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.product",defaultMessage:"Product"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.rate",defaultMessage:"Rate"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.applicationMethod",defaultMessage:"Application method"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.applicationDepth",defaultMessage:"Application depth"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.waterAmount",defaultMessage:"Water amount"})}),(0,w.jsx)(d.pj,{children:e.formatMessage({id:"stage.form.nutrient_events.headers.additives",defaultMessage:"Additives"})}),(0,w.jsx)(d.pj,{sx:{minWidth:"52px",width:"52px"}})]})},qc=[ol.bG.L1Ha1,ol.bG.L1Sqm1,ol.Q6.Gal1Ac1,ol.Q6.Qt1Ac1,ol.Q6.Gal],Zc=[ol.bG.Kg1Ha1,ol.bG.Kg1Sqm1,ol.bG.Mt1Ha1,ol.bG.Mt1Sqm1,ol.bG.Kg_HA,ol.bG.T_HA,ol.bG.Cm,ol.bG.Mm,ol.bG.In,ol.Q6.Lb1Ac1,ol.Q6.Tn1Ac1,ol.Q6.Bu_AC,ol.Q6.Lb_AC,ol.Q6.T_AC],Hc={[$s.id.Additives]:{length:{long:{id:`Validations.${$s.id.Additives}.length.long`,defaultMessage:"You can only add up to 2 additives"}},unique:{id:`Validations.${$s.id.Additives}.unique`,defaultMessage:"Additives must be unique"},[$s.Ds.Fertigation]:{id:`Validations.${$s.id.Additives}.${$s.Ds.Fertigation}`,defaultMessage:'Additives must be empty when application method is "Fertigation"'}},[$s.id.ApplicationDepth]:{length:{short:{id:`Validations.${$s.id.ApplicationDepth}.length.short`,defaultMessage:"Application depth must be greater than 0"}},[$s.Ds.Broadcasted]:{id:`Validations.${$s.id.ApplicationDepth}.${$s.Ds.Broadcasted}`,defaultMessage:'Application depth must be 0 when application method is "Broadcasted"'}},[$s.id.ApplicationRate]:{length:{short:{id:`Validations.${$s.id.ApplicationRate}.length.short`,defaultMessage:"Application rate must be greater than 0"},long:{id:`Validations.${$s.id.ApplicationRate}.length.long`,defaultMessage:"Application rate must be less than 1000"}}},[$s.id.WaterAmount]:{length:{short:{id:`Validations.${$s.id.WaterAmount}.length.short`,defaultMessage:"Water amount must be greater than 0"}},invalid:{id:`Validations.${$s.id.WaterAmount}.invalid`,defaultMessage:"Water amount can only be specified for Fertigation and Aviation"}},[$s.id.ApplicationDate]:{required:{id:`Validations.${$s.id.ApplicationDate}.required`,defaultMessage:"Application date is required"},invalid:{id:`Validations.${$s.id.ApplicationDate}.invalid`,defaultMessage:"Application date must be within the cultivation cycle"}}},Gc=(e,t)=>{const{additives:n,application_method:r}=e,i=null===n||void 0===n?void 0:n.value,o=(0,er.kJ)(i)&&i.length>0;return(null===r||void 0===r?void 0:r.value)===$s.Ds.Fertigation&&o?t(Hc[$s.id.Additives][$s.Ds.Fertigation]):o&&i.length>2?t(Hc[$s.id.Additives].length.long):o&&i.length>1&&i[0]===i[1]?t(Hc[$s.id.Additives].unique):null},Wc=(e,t)=>{const{application_method:n,application_depth:r}=e,i=null===r||void 0===r?void 0:r.value;if((0,er.$K)(i)&&(null===n||void 0===n?void 0:n.value)===$s.Ds.Broadcasted&&0!==i)return t(Hc[$s.id.ApplicationDepth][$s.Ds.Broadcasted]);if((null===n||void 0===n?void 0:n.value)!==$s.Ds.Broadcasted){if((0,er.$K)(i)&&i<=0)return t(Hc[$s.id.ApplicationDepth].length.short)}return null},Yc=(e,t)=>{const{application_rate:n}=e,r=null===n||void 0===n?void 0:n.value;if((0,er.$K)(r)&&r<=0)return t(Hc[$s.id.ApplicationRate].length.short);return(0,er.$K)(r)&&r>=1e3?t(Hc[$s.id.ApplicationRate].length.long):null},Kc=(e,t)=>{const{application_method:n,water_amount:r}=e,i=null===r||void 0===r?void 0:r.value;return(null===n||void 0===n?void 0:n.value)===$s.Ds.Fertigation&&(0,er.$K)(i)&&i<=0?t(Hc[$s.id.WaterAmount].length.short):(0,er.$K)(i)&&0!==i&&(null===n||void 0===n?void 0:n.value)!==$s.Ds.Fertigation&&(null===n||void 0===n?void 0:n.value)!==$s.Ds.Aviation?t(Hc[$s.id.WaterAmount].invalid):null},Xc=(e,t,n)=>{const{application_date:r}=e,i=(0,er.$K)(null===r||void 0===r?void 0:r.value)?null===r||void 0===r?void 0:r.value:null;return(0,er.$K)(i)&&(0,er.$K)(n)&&!kl(i,n)?t(Hc[$s.id.ApplicationDate].invalid):null},Jc=[$s.Ds.Fertigation,$s.Ds.Injected,$s.Ds.Incorporated],Qc=e=>{const{additives:t,application_date:n,application_depth:r,application_method:i,application_product:o,application_rate:a,application_rate_unit:s,water_amount:l,water_amount_unit:c}=e,u=null===i||void 0===i?void 0:i.value,d=u===$s.Ds.Fertigation,p=!!(0,er.$K)(u)&&Jc.includes(u);return{[$s.id.Additives]:!(0,er.$K)(t),[$s.id.ApplicationDepth]:!(0,er.$K)(r)&&p,[$s.id.ApplicationRate]:!(0,er.$K)(a),[$s.id.ApplicationRateUnit]:!(0,er.$K)(s),[$s.id.ApplicationDate]:!(0,er.$K)(n),[$s.id.ApplicationMethod]:!(0,er.$K)(i),[$s.id.ApplicationProduct]:!(0,er.$K)(o),[$s.id.WaterAmount]:(!(0,er.$K)(l)||0===l.value)&&d,[$s.id.WaterAmountUnit]:!(0,er.$K)(c)&&d}},eu=(0,r.memo)((e=>{let{cultivationCycle:t,attributeOptions:n,applicationProducts:r,onRowDelete:i,onRowUpdate:o}=e;const a=(0,f.YB)(),s=t.events,l=(null===s||void 0===s?void 0:s.length)>0;return(0,w.jsx)(w.Fragment,{children:null!==s&&void 0!==s&&s.length?null===s||void 0===s?void 0:s.map(((e,s)=>(0,w.jsxs)(d.SC,{children:[0===s?(0,w.jsx)(Tl,{formatMessage:a.formatMessage,cultivationCycle:t}):(0,w.jsx)(Il,{cellCount:2}),l?(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(nu,{attributeOptions:n,event:e,applicationProducts:r,onRowUpdate:o,onRowDelete:i,formatMessage:a.formatMessage,cultivationCycle:t})}):(0,w.jsx)(Il,{cellCount:9})]},e.id))):(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(Tl,{formatMessage:a.formatMessage,cultivationCycle:t}),(0,w.jsx)(Il,{cellCount:9})]})})})),tu=e=>{const t=null===e||void 0===e?void 0:e.value,n=(0,er.HD)(t)?t.split(","):t;return(0,er.$K)(n)?n:[]},nu=(0,r.memo)((e=>{var t,n,i,o,a,s,l,c,u,p,h,f;let{cultivationCycle:m,event:g,attributeOptions:y,applicationProducts:v,onRowUpdate:b,onRowDelete:_,formatMessage:x,disabled:k=!1}=e;const[C,S]=(0,r.useState)(!1),M=(0,r.useMemo)((()=>({...g,additives:{...g.additives,attribute_type:$s.id.Additives,value:tu(g.additives)}})),[g]),[T,E]=(0,r.useState)(M),{isUnsavedEvent:P,application_date:I,application_depth:O,water_amount:L,water_amount_unit:R,additives:j,application_method:D,application_product:A,application_rate:N,application_rate_unit:F}=T,z=e=>{E((t=>{var n;return{...t,[e.target.name]:{attribute_type:e.target.name,value:Cl(e.target)},...e.target.name===$s.id.ApplicationRate&&!F&&void 0!==Z&&{application_rate_unit:{attribute_type:$s.id.ApplicationRateUnit,value:null===(n=Z[0])||void 0===n?void 0:n.label}}}})),C||S(!0)},B=(0,r.useMemo)((()=>Pc()(b,P?800:2e3)),[P,b]),{dependencyErrors:U,requiredErrors:$,hasErrors:V}=(0,r.useMemo)((()=>{const e=((e,t,n)=>({[$s.id.Additives]:Gc(e,t),[$s.id.ApplicationDepth]:Wc(e,t),[$s.id.ApplicationRate]:Yc(e,t),[$s.id.WaterAmount]:Kc(e,t),[$s.id.ApplicationDate]:Xc(e,t,n),[$s.id.ApplicationMethod]:null,[$s.id.ApplicationProduct]:null,[$s.id.ApplicationRateUnit]:null,[$s.id.WaterAmountUnit]:null}))(T,x,m);return{dependencyErrors:e,requiredErrors:Qc(T),hasErrors:Object.values(e).some((e=>e))}}),[T,x,m]);(0,r.useEffect)((()=>{if(C&&!V){if(P&&Object.values($).some((e=>e)))return;try{const e={...T,additives:{...T.additives,value:(0,er.kJ)(T.additives.value)?T.additives.value.join(","):T.additives.value}};B(e)}finally{S(!1)}}}),[T,C,V,$,B,P]),V&&C&&B.cancel();const q=(0,r.useMemo)((()=>wl(I)),[I]),Z=(0,r.useMemo)((()=>{var e;const t=null===F||void 0===F?void 0:F.value,n=null===v||void 0===v?void 0:v.find((e=>e.type===(null===A||void 0===A?void 0:A.value))),r=void 0!==n?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return t.forEach((t=>{const r=t.value,i=!e&&qc.includes(r),o=e&&Zc.includes(r);(i||o)&&n.push(t)})),n.length?n:t}(null!==(e=null===n||void 0===n?void 0:n.is_dry)&&void 0!==e&&e,y.application_rate_unit):y.application_rate_unit,i=(0,er.$K)(t)&&void 0!==r&&!r.some((e=>e.value===t))?[...r,{label:t,value:t}]:r;return i}),[v,null===A||void 0===A?void 0:A.value,null===F||void 0===F?void 0:F.value,y.application_rate_unit]),H=null!==(t=null===F||void 0===F?void 0:F.value)&&void 0!==t?t:(0,er.$K)(Z)?null===(n=Z[0])||void 0===n?void 0:n.value:"",G=(0,r.useMemo)((()=>{const e=null===j||void 0===j?void 0:j.value;return(0,er.$K)(e)&&(0,er.$K)(y.additives)?null===y||void 0===y?void 0:y.additives.map((t=>e.includes(t.value)?t:e.length>=2?{...t,disabled:!0}:t)):y.additives}),[null===j||void 0===j?void 0:j.value,y.additives]),{cultCycleStartDate:W,cultCycleEndDate:Y}=(0,r.useMemo)((()=>({cultCycleStartDate:(0,er.$K)(null===m||void 0===m?void 0:m.start_date)?_l(null===m||void 0===m?void 0:m.start_date):null,cultCycleEndDate:(0,er.$K)(null===m||void 0===m?void 0:m.start_date)?_l(null===m||void 0===m?void 0:m.end_date):null})),[null===m||void 0===m?void 0:m.start_date,null===m||void 0===m?void 0:m.end_date]),K=(null===D||void 0===D?void 0:D.value)===$s.Ds.Fertigation,X=(null===D||void 0===D?void 0:D.value)!==$s.Ds.Fertigation&&(null===D||void 0===D?void 0:D.value)!==$s.Ds.Aviation;return(0,w.jsxs)(w.Fragment,{children:[(0,er.$K)(m)?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.pj,{}),(0,w.jsx)(d.pj,{})]}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mQ,{type:"date",inputProps:{"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationDate}`,defaultMessage:"application date"}),min:W,max:Y,name:$s.id.ApplicationDate},defaultValue:q,onChange:z,color:$.application_date?"warning":void 0,error:null!==U.application_date,title:null!==(i=U.application_date)&&void 0!==i?i:void 0,sx:{maxWidth:Ic},disabled:k,fullWidth:!0,required:!0})}),(0,w.jsx)(d.pj,{sx:{maxWidth:"210px"},children:(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationProduct}`,defaultMessage:"application product"}),name:$s.id.ApplicationProduct},value:null===A||void 0===A?void 0:A.value,onChange:z,options:v,placeholder:x({id:"Placeholder.Select product",defaultMessage:"Select product"}),color:$.application_product?"warning":void 0,error:null!==U.application_product,title:null!==(o=U.application_product)&&void 0!==o?o:void 0,disabled:k,fullWidth:!0,required:!0})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.NI,{children:(0,w.jsx)(d.vL,{variant:"filled",type:"number",textAlign:"left",inputProps:{name:$s.id.ApplicationRate,min:0,"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationRate}`,defaultMessage:"application rate"})},SelectProps:{inputProps:{name:$s.id.ApplicationRateUnit,"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationRateUnit}`,defaultMessage:"application rate unit"})},placeholder:x({id:"Placeholder.selectUnit",defaultMessage:"Select unit"}),onChange:z,value:H},value:null===N||void 0===N?void 0:N.value,onChange:z,selectOptions:Z,selectDefaultValue:H,color:$.application_rate_unit||$.application_rate?"warning":void 0,error:null!==U.application_rate_unit&&null!==U.application_rate,title:null!==(a=null!==(s=U.application_rate_unit)&&void 0!==s?s:U.application_rate)&&void 0!==a?a:void 0,placeholder:x({id:`Placeholder.${$s.id.ApplicationRate}`,defaultMessage:"Rate"}),disabled:k,required:!0})})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationMethod}`,defaultMessage:"application method"}),name:$s.id.ApplicationMethod},value:null===D||void 0===D?void 0:D.value,onChange:z,options:y.application_method,placeholder:x({id:"Placeholder.SelectMethod",defaultMessage:"Select method"}),color:$.application_method?"warning":void 0,error:null!==U.application_method,title:null!==(l=U.application_method)&&void 0!==l?l:void 0,disabled:k,fullWidth:!0,required:!0})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mQ,{type:"number",inputProps:{name:$s.id.ApplicationDepth,min:0,max:1e3,"aria-label":x({id:`MRVAttributeType.${$s.id.ApplicationDepth}`,defaultMessage:"application depth"}),style:{textAlign:"right"}},defaultValue:null===O||void 0===O?void 0:O.value,onChange:z,required:K,color:$.application_depth?"warning":void 0,error:null!==U.application_depth,title:null!==(c=U.application_depth)&&void 0!==c?c:void 0,endAdornment:(0,w.jsx)(d.oG,{position:"end",children:"cm"}),placeholder:x({id:`Placeholder.${$s.id.ApplicationDepth}`,defaultMessage:"Depth"}),disabled:k||!(0,er.$K)(null===O||void 0===O?void 0:O.value)&&(null===D||void 0===D?void 0:D.value)===$s.Ds.Broadcasted})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.NI,{children:(0,w.jsx)(d.vL,{variant:"filled",type:"number",textAlign:"left",inputProps:{name:$s.id.WaterAmount,min:0,"aria-label":x({id:`MRVAttributeType.${$s.id.WaterAmount}`,defaultMessage:"water amount"})},SelectProps:{inputProps:{name:$s.id.WaterAmountUnit,"aria-label":x({id:`MRVAttributeType.${$s.id.WaterAmountUnit}`,defaultMessage:"water amount unit"})},placeholder:x({id:"Placeholder.selectUnit",defaultMessage:"Select unit"}),required:K,onChange:z},value:null===L||void 0===L?void 0:L.value,selectDefaultValue:null!==(u=null===R||void 0===R?void 0:R.value)&&void 0!==u?u:void 0,onChange:z,selectOptions:y.water_amount_unit,required:K,color:$.water_amount_unit||$.water_amount?"warning":void 0,error:null!==U.water_amount||null!==U.water_amount_unit,title:null!==(p=null!==(h=U.water_amount_unit)&&void 0!==h?h:U.water_amount)&&void 0!==p?p:void 0,placeholder:x({id:`Placeholder.${$s.id.WaterAmount}`,defaultMessage:"Amount"}),disabled:k||X&&!(0,er.$K)(L)})})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":x({id:`MRVAttributeType.${$s.id.Additives}`,defaultMessage:"additives"}),name:$s.id.Additives},value:null===j||void 0===j?void 0:j.value,onChange:z,options:G,placeholder:x({id:"Placeholder.selectAdditives",defaultMessage:"Select additives"}),localeText:{getMultiSelectText:e=>{let{selectedCount:t}=e;return`${x({id:"Selected",defaultMessage:`${t} selected`})}`}},color:$.additives?"warning":void 0,error:null!==U.additives,title:null!==(f=U.additives)&&void 0!==f?f:void 0,disabled:0===j.value.length&&K||k,fullWidth:!0,required:!0,multiple:!0})}),(0,w.jsx)(Oc,{onRowDelete:async()=>{await _(g.id)},disabled:k||P&&!C})]})})),ru=()=>{const e=(0,f.YB)();return(0,w.jsx)(kc,{"aria-label":e.formatMessage({id:"stage.form.nutrient_events.title",defaultMessage:"Nutrients form"}),TableHeaders:Vc,TableEventRow:eu,AddEventRow:nu})};var iu=n(75820);const ou={[$s.id.TillageDepth]:{length:{short:{id:`Validations.${$s.id.TillageDepth}.length.short`,defaultMessage:"Tillage depth must be greater than 0"},long:{id:`Validations.${$s.id.TillageDepth}.length.long`,defaultMessage:"Tillage depth must be {maxDepthValue} {unit} or less"}}},[$s.id.TillageDate]:{required:{id:`Validations.${$s.id.TillageDate}.required`,defaultMessage:"Tillage date is required"},invalid:{id:`Validations.${$s.id.TillageDate}.invalid`,defaultMessage:"Tillage date must be within the cultivation cycle"}}},au=e=>function(t,n){const{tillage_depth:r}=t,i=null===r||void 0===r?void 0:r.value;if((0,er.$K)(i)&&i<0)return n(ou[$s.id.TillageDepth].length.short);const o=e?(0,iu.LH)(50.8):50.8;return(0,er.$K)(i)&&i>o?n(ou[$s.id.TillageDepth].length.long,{maxDepthValue:o,unit:e?"inches":"centimeters"}):null},su=(e,t,n)=>{const{tillage_date:r}=e,i=(0,er.$K)(null===r||void 0===r?void 0:r.value)?null===r||void 0===r?void 0:r.value:null;return(0,er.$K)(i)&&(0,er.$K)(n)&&!kl(i,n)?t(ou[$s.id.TillageDate].invalid):null},lu=e=>{let{value:t,error:n,options:r,onChange:i,formatMessage:o,hasFocus:a,disabled:s}=e;const l=dc(!!(0,er.$K)(a)&&a),c=(0,er.$K)(n)&&(0,er.fQ)(n);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":o({id:`MRVAttributeType.${$s.id.TillagePractice}`,defaultMessage:"tillage practice"}),name:$s.id.TillagePractice},inputRef:l,value:t,onChange:i,options:r,placeholder:o({id:"Placeholder.selectPractice",defaultMessage:"Select practice"}),color:(0,er.$K)(t)?void 0:"warning",error:c,title:o({id:`MRVAttributeType.${$s.id.TillagePractice}`,defaultMessage:"tillage practice"}),fullWidth:!0,required:!0,disabled:s})},cu=e=>{let{value:t,error:n,onChange:r,formatMessage:i,hasFocus:o,...a}=e;const s=dc(!!(0,er.$K)(o)&&o);return(0,w.jsx)(uc,{inputRef:s,formatMessage:i,"aria-label":i({id:`MRVAttributeType.${$s.id.TillageDate}`,defaultMessage:"tillage date"}),name:$s.id.TillageDate,value:t,onChange:r,error:n,color:(0,er.$K)(t)?void 0:"warning",required:!0,...a})},uu=e=>{let{value:t,error:n,onChange:r,formatMessage:i,hasFocus:o,...a}=e;const s=dc(!!(0,er.$K)(o)&&o),l=(0,er.$K)(n)&&(0,er.fQ)(n),{currentUser:c}=(0,Wr.x)(),u=i((null===c||void 0===c?void 0:c.settings.measurement)===ol.Ug.ImperialUnits?{id:"Unit.in",defaultMessage:"in"}:{id:"Unit.cm",defaultMessage:"cm"});return(0,w.jsx)(d.mQ,{type:"number",inputRef:s,inputProps:{name:$s.id.TillageDepth,min:0,max:60,"aria-label":i({id:`MRVAttributeType.${$s.id.TillageDepth}`,defaultMessage:"tillage depth"}),style:{textAlign:"right"}},defaultValue:t,onChange:r,endAdornment:(0,w.jsx)(d.oG,{position:"end",children:u}),color:(0,er.$K)(t)?void 0:"warning",error:l,placeholder:i({id:`Placeholder.${$s.id.TillageDepth}`,defaultMessage:"Depth"}),required:!0,...a})},du=e=>{let{value:t,error:n,onChange:r,formatMessage:i,hasFocus:o,...a}=e;const s=dc(!!(0,er.$K)(o)&&o),l=(0,er.$K)(n)&&(0,er.fQ)(n);return(0,w.jsx)(d.mg,{variant:"filled",inputProps:{"aria-label":i({id:`MRVAttributeType.${$s.id.SoilInversion}`,defaultMessage:"soil inverted"}),name:$s.id.SoilInversion},inputRef:s,value:t,onChange:r,options:[{value:!0,label:i({id:"Yes",defaultMessage:"Yes"})},{value:!1,label:i({id:"No",defaultMessage:"No"})}],color:(0,er.$K)(t)?"warning":void 0,error:l,fullWidth:!0,required:!0,...a})},pu=()=>{const{formatMessage:e}=(0,f.YB)(),{attributeOptions:t}=ll(),{currentUser:n}=(0,Wr.x)(),r=(e=>{let{attributeOptions:t,formatMessage:n,measurement:r}=e;const i=r===ol.Ug.ImperialUnits,o=au(i);return[{...jl({attributeType:"Tilled",stageType:$s.w.TILLAGE_EVENTS,formatMessage:n}),editable:!1,maxWidth:120,renderCell:e=>{let{row:t}=e;if(!0!==t.meta.showCultivationCycle)return null;const n=0!==t.meta.cultivationCycle.events.length;return(0,w.jsx)(d.rs,{defaultChecked:n,value:n,sx:{pointerEvents:"none"}})}},{...jl({attributeType:$s.id.TillagePractice,stageType:$s.w.TILLAGE_EVENTS,formatMessage:n}),valueFormatter:e=>{let{value:t}=e;return(0,xi.fm)(t)},renderEditCell:e=>{let{value:r,api:i,id:o,field:a,hasFocus:s,error:l}=e;return(0,w.jsx)(Nl,{error:l,children:(0,w.jsx)(lu,{onChange:e=>{const t=e.target.value;i.setEditCellValue({id:o,field:a,value:t})},formatMessage:n,value:r,hasFocus:s,error:l,options:null===t||void 0===t?void 0:t.tillage_practice})})}},{...jl({attributeType:$s.id.TillageDate,stageType:$s.w.TILLAGE_EVENTS,formatMessage:n,validator:su}),renderEditCell:e=>{let{value:t,api:r,id:i,field:o,hasFocus:a,error:s}=e;return(0,w.jsx)(Nl,{error:s,children:(0,w.jsx)(cu,{onChange:e=>{const t=e.target.value;r.setEditCellValue({id:i,field:o,value:t})},formatMessage:n,value:t,hasFocus:a,error:s})})}},{...jl({attributeType:$s.id.TillageDepth,stageType:$s.w.TILLAGE_EVENTS,formatMessage:n,validator:o}),type:"number",renderEditCell:e=>{let{value:t,api:r,id:i,field:o,hasFocus:a,error:s}=e;return(0,w.jsx)(Nl,{error:s,children:(0,w.jsx)(uu,{onChange:e=>{const t=e.target.value;r.setEditCellValue({id:i,field:o,value:t})},formatMessage:n,value:t,hasFocus:a,error:s})})}},{...jl({attributeType:$s.id.SoilInversion,stageType:$s.w.TILLAGE_EVENTS,formatMessage:n}),renderEditCell:e=>{let{value:t,api:r,id:i,field:o,hasFocus:a,error:s}=e;return(0,w.jsx)(Nl,{error:s,children:(0,w.jsx)(du,{onChange:e=>{const t=e.target.value;r.setEditCellValue({id:i,field:o,value:t})},formatMessage:n,value:t,hasFocus:a,error:s})})}}]})({formatMessage:e,attributeOptions:t,measurement:null===n||void 0===n?void 0:n.settings.measurement});return(0,w.jsx)(Dl,{columns:r})},hu=e=>{var t;let{farm:n,onFieldClick:i,selectedFieldId:o}=e;const[a,s]=(0,r.useState)(!0),l=(0,d.Fg)();return(0,w.jsx)(d.xu,{width:"100%",mb:2,children:(0,w.jsxs)(d.UQ,{size:"small",expanded:a,onChange:()=>{s(!a)},sx:{backgroundColor:l.palette.semanticPalette.surface.secondary},children:[(0,w.jsx)(d._O,{id:`farm-header-${n.name}`,"aria-controls":`farm-fields-${n.name}`,children:(0,w.jsx)(d.ZT,{variant:"h6",component:"span",children:n.name})}),(0,w.jsx)(d.rN,{id:`farm-fields-${n.name}`,children:(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",gap:2,children:null===n||void 0===n||null===(t=n.fields)||void 0===t?void 0:t.map((e=>(0,w.jsx)(gu,{field:e,onFieldClick:i,selectedFieldId:o},e.id)))})})]})})},fu=r.memo(hu),mu=e=>{let{field:t,selectedFieldId:n,onFieldClick:i}=e;const o=(0,r.useRef)(null),a=(0,d.Fg)(),[s,l]=(0,r.useState)(!1),c=n===t.id;(0,r.useEffect)((()=>{o.current&&c&&o.current.scrollIntoView({behavior:"smooth",block:"nearest"})}),[c]),(0,r.useEffect)((()=>{const e=new IntersectionObserver((e=>{let[t]=e;(0,er.X0)(null===t||void 0===t?void 0:t.isIntersecting)&&l(!1)}),{root:document.querySelector("#field-sidebar-wrapper"),rootMargin:"0px",threshold:1});return o.current&&e.observe(o.current),()=>{e.disconnect()}}),[]);return(0,w.jsxs)(d.zx,{ref:o,variant:c?"contained":"text",color:"secondary",fullWidth:!0,"aria-current":c,sx:{backgroundColor:c?a.palette.semanticPalette.stroke.main:"transparent",fontSize:a.typography.fontSize,justifyContent:"space-between","&.MuiButtonBase-root":{p:2},textAlign:"left"},onClick:()=>{i(t.id)},children:[(0,w.jsx)(d.bd,{clampLines:1,fontWeight:c?a.typography.fontWeightBold:a.typography.fontWeightRegular,TooltipProps:{onOpen:()=>{l(!0)},open:s,onClose:()=>{l(!1)}},children:t.name}),null]},t.id)},gu=r.memo(mu),yu=e=>{let{farms:t,onFieldClick:n,selectedFieldId:r}=e;return(0,w.jsx)(d.xu,{sx:{position:"absolute",overflowY:"auto",top:0,bottom:0,left:0,right:0,paddingBottom:"60px",scrollPaddingBottom:"60px",scrollbarWidth:"thin"},children:t.map((e=>(0,w.jsx)(fu,{farm:e,selectedFieldId:r,onFieldClick:n},`${e.name}-${e.id}`)))})},vu=r.memo((e=>{let{farms:t,selectedFieldId:n=null,onFieldClick:i,isLoading:o=!1}=e;const a=(0,d.Fg)(),s=(0,r.useMemo)((()=>a.palette.semanticPalette.surface.secondary),[a]);return o&&!t.length?(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",width:"200px",mr:1,p:1,position:"relative",role:"navigation",component:"nav","aria-label":"loading","aria-busy":!0,"aria-live":"polite",children:(0,w.jsx)(d.Od,{variant:"rounded",height:"100%"})}):(0,w.jsx)(d.xu,{id:"field-sidebar-wrapper",display:"flex",flexDirection:"column",width:"200px",position:"relative",role:"navigation","aria-label":"Farm field navigation",component:"nav",sx:{"&::before":{pointerEvents:"none",content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,height:"100%",width:"calc(100% - 15px)",backgroundImage:`linear-gradient(to bottom, transparent calc(100% - 60px), ${s} 100%)`,zIndex:10}},children:(0,w.jsx)(yu,{farms:t,onFieldClick:i,selectedFieldId:n})})})),bu=e=>{let{farms:t,selectedFieldId:n,setSelectedField:i}=e;const o=(0,r.useMemo)((()=>t.flatMap((e=>{var t,n;return null!==(t=null===(n=e.fields)||void 0===n?void 0:n.flatMap((e=>e.id)))&&void 0!==t?t:[]}))),[t]),a=null!==n?o.indexOf(n):-1;return(0,w.jsxs)(d.hE,{children:[(0,w.jsx)(d.zx,{size:"small","aria-label":"Previous Field",title:"Previous Field",onClick:()=>{if(a>0){const e=o[a-1];void 0!==e&&i(e)}},disabled:0===a,children:(0,w.jsx)(d.le,{type:"chevron-left"})}),(0,w.jsx)(d.zx,{size:"small","aria-label":"Next Field",title:"Next Field",onClick:()=>{if(a<o.length-1){const e=o[a+1];void 0!==e&&i(e)}},disabled:a===o.length-1,children:(0,w.jsx)(d.le,{type:"chevron-right"})})]})};var _u=n(8854);const wu=e=>{let{geometry:t,mrvFieldId:n,kmlId:r}=e;return t?(0,w.jsx)(Ln.$,{onEachFeature:Cu,style:xu,data:t,size:ku,kmlId:r,mrvFieldId:n}):null},xu={backgroundColor:"transparent"},ku=[40,40],Cu=(e,t)=>{t.setStyle({color:Y.U9,fillColor:Y.U9,fillOpacity:.2,weight:1})},Su=e=>{let{farm:t,field:n}=e;const r=(0,f.YB)(),{id:i,area:o,name:a,geometry:s,is_returning:l,baseline_year:c}=n||{},{name:u,id:p}=t||{},{currentUser:h}=(0,Wr.x)(),m=null===h||void 0===h?void 0:h.settings.measurement,g=(0,er.$K)(o)?(0,_u.wH)((0,iu.En)(m,ol.Ug.ImperialUnits,o)):null,y=null!==g&&null!==m?`(${g} ${m} / #${i})`:null,v=`${r.formatMessage({id:"Farm ID",defaultMessage:"Farm ID"})}: ${p}`,b=`${r.formatMessage({id:"Field ID",defaultMessage:"Field ID"})}: ${i}`;return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",flexWrap:"nowrap",gap:3,children:[s&&(0,w.jsx)(wu,{geometry:s},null===n||void 0===n?void 0:n.id),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[(0,w.jsx)(d.ZT,{component:"div",title:v,children:u}),(0,w.jsx)(d.xu,{px:1,children:"/"}),(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.ZT,{component:"span",fontWeight:"bold",title:b,children:a}),(0,w.jsx)(d.xu,{ml:1,component:"span",display:"inline-block",children:(0,w.jsx)(d.ZT,{component:"span",fontWeight:"normal",color:"semanticPalette.textInverted.secondary",children:y})})]}),(0,w.jsx)(d.xu,{px:2,py:1,ml:4,my:"auto",borderRadius:e=>e.borderRadii.sm,bgcolor:e=>null!==l&&void 0!==l&&l?e.palette.semanticPalette.surface.secondary:e.palette.semanticPalette.surface.info,children:(0,w.jsx)(d.ZT,{color:e=>null!==l&&void 0!==l&&l?e.palette.semanticPalette.text.secondary:e.palette.semanticPalette.text.info,children:null!==l&&void 0!==l&&l?(0,w.jsx)(f._H,{id:"FieldBaselineIndication.ReturningField",defaultMessage:"First enrolled in {baselineYear}",values:{baselineYear:c}}):(0,w.jsx)(f._H,{id:"FieldBaselineIndication.NewField",defaultMessage:"New field"})})})]})]})},Mu=r.memo((e=>{var t;let{children:n}=e;const r=(0,d.Fg)(),{farms:i,selectedFarm:o,selectedField:a,setSelectedField:s,isLoading:l,createOrUpdateLoading:c,deleteLoading:u}=pl();return(0,w.jsx)(d.xu,{display:"flex",gap:r.spacing(3),flexGrow:1,children:(0,w.jsxs)(d.xu,{display:"flex",width:"100%",height:"100%",mt:6,overflow:"hidden",children:[(0,w.jsx)(vu,{farms:i,selectedFieldId:a?a.id:null,onFieldClick:s,isLoading:l}),(0,w.jsxs)(d.xu,{width:"100%",height:"100%",overflow:"auto",border:1,px:3,pt:3,borderRadius:r.borderRadii.md,borderColor:r.palette.grey[200],sx:{backgroundColor:r.palette.background.paper,scrollbarWidth:"thin"},children:[!l||o||a?(0,w.jsx)(d.xu,{display:"flex",children:o&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Su,{farm:o,field:a}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",ml:"auto",children:[c?(0,w.jsx)(d.xu,{display:"inline",mr:2,children:(0,w.jsxs)(d.ZT,{color:"primary",children:[(0,w.jsx)(f._H,{id:"Saving",defaultMessage:"Saving"}),"..."]})}):u?(0,w.jsx)(d.xu,{display:"inline",mr:2,children:(0,w.jsxs)(d.ZT,{color:"primary",children:[(0,w.jsx)(f._H,{id:"Deleting",defaultMessage:"Deleting"}),"..."]})}):null,(0,w.jsx)(bu,{farms:i,selectedFieldId:null!==(t=null===a||void 0===a?void 0:a.id)&&void 0!==t?t:null,setSelectedField:s})]})]})}):(0,w.jsxs)(d.xu,{display:"inline-flex",alignContent:"center",alignItems:"center",gap:2,"aria-label":"loading","aria-busy":!0,"aria-live":"polite",children:[(0,w.jsx)(d.Od,{variant:"rounded",width:25,height:25}),(0,w.jsx)(d.Od,{variant:"rounded",width:125})]}),n]})]})})})),Tu=e=>{let{title:t,description:n,children:r}=e;const i=(0,d.Fg)();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{maxWidth:i.fixedWidths.md,children:[(0,w.jsx)(d.ZT,{variant:"h2",children:t}),(0,w.jsx)(d.ZT,{variant:"body1",children:n})]}),(0,w.jsx)(Mu,{children:r})]})},Eu=e=>{switch(e.__typename){case ju.CroppingEvent:return"1";case ju.TillageEvent:return"4";case ju.ApplicationEvent:return"5";case ju.IrrigationEvent:return"2";default:return"1"}},Pu=(e,t)=>{return(0,er.$K)(e)&&(0,er.$K)(t)?(n=e,(r=t).getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())>18?d.FB.Biannual:d.FB.Monthly):d.FB.Monthly;var n,r},Iu=e=>{const t=["__typename","id"],n=Object.entries(e).filter((e=>{let[n,r]=e;return!t.includes(n)&&(0,er.$K)(r)})).sort(((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)})).map((e=>{let[t,n]=e;const r=null!==n&&"object"===typeof n?n.value:n;return(0,er.$K)(r)?(0,w.jsx)(d.xu,{children:(0,w.jsxs)(d.ZT,{variant:"body2",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",component:"span",variant:"body2",children:(0,xi.LF)(t)}),":"," ","string"===typeof r?(0,xi.fm)(r):null===r||void 0===r?void 0:r.toString()]})},t):null}));return(0,w.jsx)(d.xu,{children:n.filter(Boolean)})},Ou=e=>{var t,n,r,i,o;const a=(e=>{var t,n,r,i;switch(e.__typename){case ju.CroppingEvent:return null===(t=e.planting_date)||void 0===t?void 0:t.value;case ju.TillageEvent:return null===(n=e.tillage_date)||void 0===n?void 0:n.value;case ju.ApplicationEvent:return null===(r=e.application_date)||void 0===r?void 0:r.value;case ju.IrrigationEvent:return null===(i=e.start_date)||void 0===i?void 0:i.value;default:return null}})(e),s=(e=>{var t,n;switch(e.__typename){case ju.CroppingEvent:return null===(t=e.harvest_date)||void 0===t?void 0:t.value;case ju.TillageEvent:case ju.ApplicationEvent:return null;case ju.IrrigationEvent:return null===(n=e.end_date)||void 0===n?void 0:n.value;default:return null}})(e);return(0,er.$K)(a)?{id:e.id,title:e.__typename===ju.CroppingEvent&&(0,er.$K)(null===(t=e.crop_type)||void 0===t?void 0:t.value)&&null!==(n=(0,xi.fm)(null===(r=e.crop_type)||void 0===r?void 0:r.value))&&void 0!==n?n:"",icon:e.__typename===ju.CroppingEvent&&(0,er.$K)(null===(i=e.crop_type)||void 0===i?void 0:i.value)?null===(o=e.crop_type)||void 0===o?void 0:o.value:void 0,startDate:new Date(a),endDate:(0,er.$K)(s)?new Date(s):null,color:Eu(e),tooltip:Iu(e)}:null};var Lu=n(42069),Ru=n(54737);let ju=function(e){return e.CroppingEvent="CroppingEvent",e.TillageEvent="TillageEvent",e.ApplicationEvent="ApplicationEvent",e.IrrigationEvent="IrrigationEvent",e}({});const Du=()=>{var e,t,n,r,i,o;const a=(0,Lu.kE)(),{formatMessage:s}=(0,f.YB)(),{projectId:l}=(0,wi.tZ)(),{selectedField:c}=pl(),{currentPhase:u,currentProgram:p}=Ws(),{currentStage:h}=ll(),m=(null===u||void 0===u||null===(e=u.stages)||void 0===e?void 0:e.filter((e=>{let{enabled:t}=e;return t})))||[],{data:g,networkStatus:y}=zs(Qs,{variables:{fieldId:String(null===c||void 0===c?void 0:c.id),projectId:l,phaseId:String(null===u||void 0===u?void 0:u.id)},skip:!(0,er.$K)(null===c||void 0===c?void 0:c.id)||!(0,er.$K)(null===u||void 0===u?void 0:u.id),fetchPolicy:"cache-and-network"}),v=null!==(t=null===g||void 0===g||null===(n=g.mrv)||void 0===n||null===(r=n.project)||void 0===r||null===(i=r.field)||void 0===i?void 0:i.events)&&void 0!==t?t:[],b={...null===c||void 0===c||null===(o=c.cultivation_cycles)||void 0===o?void 0:o.flatMap((e=>e.events)),...v},_={};let x,k;m.forEach((e=>{if((0,er.$K)(e)&&(0,er.$K)(e.type)){const t=(e=>{switch(e){case br.UY.CROP_EVENTS:return ju.CroppingEvent;case br.UY.TILLAGE_EVENTS:return ju.TillageEvent;case br.UY.NUTRIENT_EVENTS:return ju.ApplicationEvent;case br.UY.IRRIGATION_EVENTS:return ju.IrrigationEvent;default:return""}})(e.type);_[t]={id:e.id,title:Ru.Z[e.type](),events:[]}}}));const C=Object.values(b);(0,er.$K)(C)&&C.forEach((e=>{if((0,er.$K)(e)&&e.__typename&&(0,er.$K)(_[e.__typename])){const i=Ou(e);if(i){var t;n=i.startDate,r=null!==(t=i.endDate)&&void 0!==t?t:null,(!x||n<x)&&(x=n),r&&(!k||r>k)&&(k=r);const o=_[e.__typename];(0,er.$K)(o)&&o.events.push(i)}}var n,r}));const S=((e,t)=>{const n=(0,er.$K)(e)?new Date(e,0):new Date,r=(0,er.$K)(e)?new Date(e,0):new Date;return r.setFullYear(r.getFullYear()+1),(null===t||void 0===t?void 0:t.type)===br.t5.Enrolment&&n.setFullYear(n.getFullYear()-5),{startDate:n,endDate:r}})(null===p||void 0===p?void 0:p.crediting_year,u),M=Object.values(_),T=Pu(x,k);return y<Ja.ready&&!C.length?(0,w.jsx)(d.xu,{height:50*m.length,children:(0,w.jsx)(d.Od,{variant:"rounded",height:"100%",width:"100%"})}):(0,w.jsx)(d.TY,{ariaLabel:"Field events timeline",locale:a,rows:M,initialStartDate:S.startDate,initialEndDate:S.endDate,timeScale:T,highlightedRowId:null===h||void 0===h?void 0:h.id,emptyMessage:s({id:"FieldEventsTimeline.Empty",defaultMessage:"Fill out the table below to get started."})})},Au=()=>{const e=(0,f.YB)(),{currentPhase:t}=Ws(),{currentStage:n}=ll(),{title:i,description:o,Form:a}=(0,r.useMemo)((()=>((e,t,n)=>{switch(e){case $s.w.CROP_EVENTS:return{title:n({id:"stage.crops.name",defaultMessage:"Crops"}),description:n({id:`${t}.stage.crops.description`,defaultMessage:"Enter the last five years of your crop rotation as well as the intended rotation for the upcoming cultivation cycle for each of your fields."}),Form:xc};case $s.w.IRRIGATION_EVENTS:return{title:n({id:"stage.irrigation.name",defaultMessage:"Irrigation"}),description:n({id:`${t}.stage.irrigation.description`,defaultMessage:"Enter the last five years of your irrigation events as well as the intended irrigation events for the upcoming cultivation cycle for each of your fields"}),Form:$c};case $s.w.NUTRIENT_EVENTS:return{title:n({id:"stage.nutrients.name",defaultMessage:"Nutrients"}),description:n({id:`${t}.stage.nutrients.description`,defaultMessage:"Enter the last five years of your nutrient events as well as the intended nutrient events for the upcoming cultivation cycle for each of your fields."}),Form:ru};case $s.w.TILLAGE_EVENTS:return{title:n({id:"stage.tillage.name",defaultMessage:"Tillage"}),description:n({id:`${t}.stage.tillage.description`,defaultMessage:"Enter the last five years of your tillage events as well as the intended tillage events for the upcoming cultivation cycle for each of your fields."}),Form:pu};default:return{title:"",description:"",Form:()=>(0,w.jsx)(u.l_,{to:Wo._j})}}})(null===n||void 0===n?void 0:n.type,null===t||void 0===t?void 0:t.type,e.formatMessage)),[null===n||void 0===n?void 0:n.type,null===t||void 0===t?void 0:t.type,e.formatMessage]);return(0,er.$K)(null===n||void 0===n?void 0:n.type)?(0,w.jsxs)(Tu,{title:i,description:o,children:[(0,w.jsx)(Du,{}),(0,w.jsx)(a,{})]}):(0,w.jsx)(w.Fragment,{})},Nu=()=>(0,w.jsx)(Gs,{children:(0,w.jsxs)(d.xu,{height:"100%",children:[(0,w.jsx)(Ys,{}),(0,w.jsx)(d.xu,{p:4,height:"calc(100% - 61px)",overflow:"auto",children:(0,w.jsx)(u.AW,{path:Wo.Q3,children:(0,w.jsx)(sl,{children:(0,w.jsx)(dl,{children:(0,w.jsx)(Au,{})})})})})]})});var Fu=n(49363),zu=n(8242);const Bu=e=>{const t=(0,h.T)(),{projectId:n}=(0,gr.B)(),i=(0,h.C)(_.Bx),o=(0,h.C)(_.no),a=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION);(0,r.useEffect)((()=>{e.forEach((e=>{let{id:r}=e;o[r]||t((0,Fr.r7)({projectId:n,stageId:r,enableValidation:a}))}))}),[t,n,i,a])};var Uu=n(98995),$u=n(5307),Vu=n(29771),qu=n(57313);const Zu=e=>{let{phaseType:t}=e;const{projectId:n,contractEvent:i}=(0,gr.B)(),o=(0,u.k6)(),a=(0,h.C)((e=>(0,_.d1)(e,t))),{isProjectPhaseCompleted:s,completeProjectPhase:l}=(0,fr.F)(n,null===a||void 0===a?void 0:a.id),{prevStage:c}=Ko(t,Go.rv),p=t===br.t5.Monitoring?Wo.lk:Wo.CP,f=i===qu.q.SIGNING_COMPLETE,m=(0,r.useMemo)((()=>s||f?Gu:Hu),[s,f]);return(0,w.jsx)(d.xu,{display:"flex",width:"100%",height:"80%",justifyContent:"center",alignItems:"center",children:(0,w.jsx)(d.Xk,{children:(0,w.jsx)(m,{phaseType:t,goBack:()=>{c&&o.push({pathname:(0,xo.F_)(p,{projectId:n,stageType:(0,ki.vM)(c.type_)}),search:(0,fo._D)(location.search,{stageId:c.id})})},finishPhase:()=>{tr.Z.track("Complete phase",{phaseId:null===a||void 0===a?void 0:a.id,phaseType:t}),l()}})})})},Hu=e=>{let{phaseType:t,finishPhase:n,goBack:i}=e;const o=(0,f.YB)(),a=(0,d.Fg)(),{title:s,description:l,buttonLabel:c}=(0,r.useMemo)((()=>({title:t===br.t5.Enrolment?o.formatMessage({id:"MRV.FinishPhaseDialog.FinishEnrolmentTitle",defaultMessage:"Are you ready to finish enrollment?"}):o.formatMessage({id:"MRV.FinishPhaseDialog.FinishMonitoringTitle",defaultMessage:"Are you ready to submit your measurement data?"}),description:t===br.t5.Enrolment?o.formatMessage({id:"MRV.FinishPhaseDialog.FinishEnrolmentDescription",defaultMessage:"When you finish enrollment, you won't be able to edit any of the data you entered."}):o.formatMessage({id:"MRV.FinishPhaseDialog.FinishMonitoringDescription",defaultMessage:"Once you finish measurement, you won't be able to edit any of the data you entered."}),buttonLabel:t===br.t5.Enrolment?o.formatMessage({id:"Complete enrollment",defaultMessage:"Complete enrollment"}):o.formatMessage({id:"Complete measurement",defaultMessage:"Complete measurement"})})),[t,o]);return(0,w.jsxs)(d.Kq,{width:a.fixedWidths.sm,children:[(0,w.jsx)(d.xu,{p:5,children:(0,w.jsx)(d.ZT,{variant:"h3",children:s})}),(0,w.jsx)(d.xu,{px:5,children:(0,w.jsxs)(d.bZ,{severity:"warning",children:[(0,w.jsxs)(d.ZT,{variant:"h5",component:"span",children:[(0,w.jsx)(f._H,{id:"Note",defaultMessage:"Note"}),":"," "]}),l]})}),(0,w.jsxs)(d.xu,{p:5,display:"flex",justifyContent:"flex-end",columnGap:2,children:[(0,w.jsx)(d.zx,{onClick:i,color:"secondary",variant:"outlined",children:o.formatMessage({id:"Go back",defaultMessage:"Go back"})}),(0,w.jsx)(d.zx,{"data-testid":"finish-phase-button",onClick:n,color:"primary",children:c})]})]})},Gu=e=>{let{phaseType:t}=e;const{projectId:n}=(0,gr.B)(),r=(0,u.k6)(),i=(0,f.YB)(),o=(0,d.Fg)();return(0,w.jsxs)(d.Kq,{width:o.fixedWidths.sm,gap:3,p:5,justifyContent:"center",alignItems:"center",textAlign:"center",children:[(0,w.jsx)(d.Kq,{justifyContent:"center",alignItems:"center",children:(0,w.jsx)(d.le,{type:"check-mark-circled",fontSize:"h1",color:"primary"})}),(0,w.jsx)(d.ZT,{variant:"h3",children:t===br.t5.Enrolment?i.formatMessage({id:"MRV.FinishPhaseDialog.CompletedEnrolmentTitle",defaultMessage:"Thank you for finishing the enrollment phase!"}):i.formatMessage({id:"MRV.FinishPhaseDialog.CompletedMonitoringTitle",defaultMessage:"Thank you for finishing the measurement phase!"})}),(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"MRV.FinishPhaseDialog.CompletedPhaseDescription",defaultMessage:"A program representative will be in contact with you for next steps."})}),(0,w.jsx)(d.xu,{pt:5,children:(0,w.jsx)(d.zx,{"data-testid":"back-to-home-button",color:"primary",onClick:()=>{r.push({pathname:(0,xo.F_)(Wo._j,{projectId:n})})},children:i.formatMessage({id:"Back to program home",defaultMessage:"Back to program home"})})})]})},Wu=()=>{var e;const[t,n]=(0,fo.H1)(),i=null!==(e=t.tableView)&&void 0!==e&&e,o=(0,r.useCallback)((e=>{n({tableView:!!e||void 0})}),[n]);return[i,o]},Yu=e=>{let{children:t}=e;const[n]=Wu();return n?(0,w.jsx)(w.Fragment,{children:t}):null},Ku=e=>{let{children:t}=e;const[n]=Wu();return n?null:(0,w.jsx)(w.Fragment,{children:t})};var Xu=n(39304),Ju=n(10561),Qu=n(55239);const ed=(e,t)=>{const n=`/projects/${e}/mobs`,{data:i,error:o,mutate:a}=(0,Ju.Z)("mob"===t?n:null,{onError:C.e}),s=!i&&!o,l=(0,r.useCallback)((async(t,n)=>{let{arg:r}=n;const{creates:i,updates:o,deletes:a}=r,s=[];if(i.length&&s.push(Nr.eV.createMobs({projectId:e,mobNames:i})),o.length)for(const{id:l,name:c}of o)s.push(Nr.eV.updateMob({projectId:e,mobId:l,mobName:c}));a.length&&s.push(Nr.eV.deleteMobs({projectId:e,mobIds:a})),await Promise.all(s),await Nr.eV.createRecordYears(e)}),[e]),{trigger:c,isMutating:u}=(0,Qu.Z)(n,l,{onError:C.e});return{mobs:i||[],loading:s||u,error:o,updateMobs:c,revalidate:a}};var td=n(96073),nd=n(64946);const rd=e=>{let{onClick:t}=e;const n=(0,f.YB)(),r=(0,d.Fg)();return(0,w.jsx)(d.zx,{onClick:t,title:n.formatMessage({id:"BtnLabel.Confirm",defaultMessage:"Confirm"}),"data-testid":"button--confirm",variant:"outlined",color:"secondary",sx:{backgroundColor:r.palette.semanticPalette.surface.main},children:(0,w.jsx)(d.le,{type:"check-mark"})})},id=()=>{var e,t;const n=(0,f.YB)(),i=(0,h.C)(vr.D8),o=(0,h.C)(_.rI),a=(0,h.C)(_.no),{stageId:s}=(0,gr.B)(),l=(0,h.C)((e=>(0,_.M0)(e,s))),c=null===(e=a[s])||void 0===e?void 0:e.to_complete,u=null===(t=a[s])||void 0===t?void 0:t.validation_errors,p=(0,r.useMemo)((()=>(0,ii.O7)(null!==u&&void 0!==u?u:{})),[u]),m=(0,r.useMemo)((()=>(0,To.bT)(l)||n.formatMessage({id:"stage",defaultMessage:"stage"})),[l,n]);return o.length>0?(0,w.jsx)(nr.U8,{icon:(0,w.jsx)(td.Ho,{style:{color:nd.Z["main-blue-600"]}}),mini:!0,appearance:"info",color:"info",fullWidth:!0,children:(0,w.jsxs)(d.xu,{display:"flex",width:"100%",justifyContent:"space-between",children:[(0,w.jsx)("span",{children:(0,w.jsx)(f._H,{id:"<strong>Detecting {stageName} data.</strong> As fields load you can confirm the {stageName} data. You will also be notified by email when this process is complete.",defaultMessage:"<strong>Detecting {stageName} data.</strong> As fields load you can confirm the {stageName} data. You will also be notified by email when this process is complete.",values:{strong:e=>(0,w.jsx)("strong",{children:e}),stageName:m}})}),(0,w.jsx)("strong",{children:(0,w.jsx)(f._H,{id:"{percentCompleted}% complete",defaultMessage:"{percentCompleted}% complete",values:{percentCompleted:i.percentCompleted}})})]})}):i.status===br.TV.Failed?(0,w.jsx)(nr.U8,{mini:!0,appearance:"error",color:"error",title:n.formatMessage({id:"Unable to detect {stageName} data.",defaultMessage:"Unable to detect {stageName} data."},{stageName:m}),children:(0,w.jsx)(f._H,{id:"Please fill in your information manually.",defaultMessage:"Please fill in your information manually."})}):c?(0,w.jsx)(Xu.f,{untouchedCells:!0,message:{type:"warning",title:n.formatMessage({id:"{totalCellsIncomplete} cell(s) incomplete for {stageName}.",defaultMessage:"{totalCellsIncomplete} cell(s) incomplete for {stageName}."},{totalCellsIncomplete:c,stageName:m}),text:(0,w.jsx)(f._H,{id:"Fill in missing information or use the {icon} to confirm missing information. Make sure to check all farms and crop types.",defaultMessage:"Fill in missing information or use the {icon} to confirm missing information. Make sure to check all farms and crop types.",values:{icon:(0,w.jsx)(rd,{onClick:()=>null})}})}}):!c&&p?(0,w.jsx)(Xu.f,{untouchedCells:!0,message:{type:"error",text:(0,w.jsx)(f._H,{id:"Correct the information highlighted in red.",defaultMessage:"Correct the information highlighted in red."})}}):null},od=(0,r.createContext)([[],()=>null]),ad=e=>{let{children:t,initialValue:n=[]}=e;const{projectId:i,stageId:o,entityId:a}=(0,gr.B)(),[s,l]=(0,r.useState)(n);return(0,r.useEffect)((()=>{l([])}),[i,o,a]),(0,w.jsx)(od.Provider,{value:[s,l],children:t})},sd=(0,yr.P1)([e=>(0,_.YN)(e,br.t5.Monitoring),_.NX],((e,t)=>{const n=[];return null===e||void 0===e||e.forEach((e=>{e.attributes.forEach((e=>{const r=t[e];r&&n.push(r)}))})),n})),ld=(0,yr.P1)([_.dl,sd,(e,t)=>t],((e,t,n)=>{if(null===e||void 0===e||!e.length||null===t||void 0===t||!t.length)return[];const r=t.find((e=>e.type===n));return r?e.filter((e=>(null===e||void 0===e?void 0:e.attribute_id)===r.id)):[]})),cd=(0,yr.P1)([_.Bx,ld,(e,t,n,r)=>r,(e,t,n,r)=>n],((e,t,n,r)=>{const i={};return e.forEach((e=>{i[e.id]=!0})),n&&e.forEach((e=>{const t=e.id;i[t]&&(i[t]=e.farm_id===n)})),e.filter((e=>i[e.id]))}));var ud=n(48954);const dd=(0,d.zo)("div")`
  position: relative;
  width: 30px;
  height: 30px;

  &.percentage {
    width: 40px;
    height: 40px;
    margin-top: 10px;
  }

  &.active {
    .icon {
      background: ${e=>{let{theme:t}=e;return t.palette.success.main}};
      color: white;

      .item {
        background: white;
      }
    }

    .md-circular-progress-path {
      stroke: ${e=>{let{theme:t}=e;return t.palette.success.main}};
    }

    path {
      fill: white;
    }
  }

  &.disabled {
    .icon {
      background: ${e=>{let{theme:t}=e;return t.palette.grey[300]}};
      .item {
        background: white;
      }
    }

    .md-circular-progress-path {
      stroke: ${e=>{let{theme:t}=e;return t.palette.grey[300]}};
    }

    path {
      fill: white;
    }
  }

  .icon {
    position: relative;
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    border-radius: 100%;
    background: ${e=>{let{theme:t}=e;return t.palette.grey[300]}};
    color: ${e=>{let{theme:t}=e;return t.palette.success.main}}; /* primary */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    overflow: hidden;

    .md-icon {
      color: currentColor;
    }

    .item {
      width: 30px;
      height: 30px;
      background: ${e=>{let{theme:t}=e;return t.palette.success.main}}; /* primary */
    }
  }

  .progress-container {
    position: absolute;
    top: -20px;
    left: calc(50% - 21px); // progress bar width / 2

    .progress-bar {
      position: absolute;
      transform: rotate3d(0, 0, 1, -85deg) !important; // always start from the same place
      height: 42px;
      width: 42px;
      z-index: ${ud.K.RandomOne};

      &.bottom-layout {
        z-index: ${ud.K.Base};
        .md-circular-progress-path {
          stroke: ${e=>{let{theme:t}=e;return t.palette.grey[300]}};
        }
      }
    }

    .progress-badge {
      position: absolute;
      top: 10px;
      right: -44px;
    }

    .progress-label {
      position: absolute;
      top: 10px;
      right: -52px;
      padding: 0 2px;
      background-color: #fdf3d9;
      color: #ff9123;
      font-size: 12px;
      font-weight: 500;
      border-radius: 5px;
      z-index: ${ud.K.RandomOne};
      min-width: 22px;
      text-align: center;
    }
  }
`,pd=e=>{let{id:t,percentCompleted:n,badge:r,icon:i,outlined:o=!1,active:a,disabled:l,hideProgressLabel:c}=e;return(0,w.jsxs)(dd,{className:s()("fluro-progress-icon",{percentage:void 0!==n||o,active:a,disabled:l}),children:[(0,w.jsx)("div",{className:s()("icon"),children:(0,w.jsx)(hd,{icon:i})}),(0,w.jsx)(fd,{value:n,badge:r,id:`progress-id${t}`,outlined:o,hideProgressLabel:c})]})},hd=e=>{let{icon:t}=e;if(!t)return null;if("string"===typeof t){const e=`url(${t}) no-repeat center`;return(0,w.jsx)("div",{style:{mask:e,WebkitMask:e},className:"item"})}return t},fd=e=>{let{value:t,id:n,outlined:r,badge:i,hideProgressLabel:o}=e;const a=void 0!==t;return a||r?(0,w.jsxs)("div",{className:"progress-container",children:[a&&(0,w.jsx)(On.D8,{className:"progress-bar top-layout-progress",id:n,value:t}),100!==t&&(0,w.jsx)(On.D8,{className:"progress-bar bottom-layout",id:`${n}bottom`,value:100}),i?(0,w.jsx)(zi.C,{size:10,color:md(i),className:"progress-badge"}):a&&!o&&(0,w.jsxs)("div",{className:"progress-label",children:[t,"%"]})]}):null};function md(e){switch(e){case"error":return"red";case"info":return"blue"}}var gd=n(29646);const yd=e=>{let{iconUrl:t,imagePlaceholder:n,iconColor:i,stageType:o}=e;const a=(0,Z.Fg)(),[s,l]=(0,r.useState)(""),c=!(null!==t&&void 0!==t&&t.includes("/static/"));if((0,r.useEffect)((()=>{t&&!c&&l(si.ZP.getIconUrl(t))}),[t,c]),c&&o)return(0,w.jsx)(zi.C,{className:"crop-icon",color:a.color.text.success,children:Xo.nw[o]});if(!s)return n||(0,w.jsx)(k.eY,{fill:a.color.text.success});const u=`url(${s}) no-repeat center`,d={mask:u,WebkitMask:u,width:"100%",height:"100%"};return i&&(d.background=i),(0,w.jsx)("div",{style:d,className:"item"})},vd=Z.ZP.div`
  margin-top: 11px;
`,bd=e=>{let{defaultCollapsed:t=!0,title:n,subtitle:i,programStageSubItems:o,active:a,disabled:l,infoIconAction:c}=e;const[u,p]=(0,r.useState)(t);(0,r.useEffect)((()=>{p(t)}),[t]);return(0,w.jsxs)("div",{className:"element-full-width margin-bottom-15",children:[(0,w.jsxs)(d.xu,{onClick:l?void 0:()=>p(!u),display:"flex",justifyContent:"space-between",alignItems:"center",className:s()({"program-stage-item":!0,active:a,disabled:l}),children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"h4",children:n}),c&&(0,w.jsx)(k.sz,{className:"info-icon",onClick:e=>{e.preventDefault(),e.stopPropagation(),c&&c()}})]}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,w.jsx)(d.ZT,{variant:"body2",children:i}),(0,w.jsx)(d.hU,{disabled:l,children:(0,w.jsx)(d.le,{fontSize:"h4",type:u?"chevron-right":"chevron-down"})})]})]}),!u&&(0,w.jsx)("div",{className:"program-stage-subitems-container",children:o.map((e=>(0,w.jsx)(_d,{...e},e.title)))})]})},_d=e=>{let{onClick:t,title:n,subtitle:r,badge:i,percentComplete:o,outlined:a,icon:l,actionLabel:c,disabled:u,disabledTooltip:p,loading:h,customAction:m,message:g}=e;const y=(0,f.YB)(),v=(0,Z.Fg)(),b=100===o,_=o&&!b&&"start"===c?"continue":c,x=_?(0,xi.fm)(_):"";return(0,w.jsxs)("div",{className:s()("program-stage-subitem",{done:b,disabled:u}),children:[(0,w.jsxs)(d.xu,{gap:4,alignItems:"center",onClick:!u&&c&&t?t:void 0,flexWrap:"nowrap",display:"flex",children:[(0,w.jsx)(pd,{id:n,badge:i,icon:b?(0,w.jsx)(gd.nQ,{circleColor:"transparent",checkMarkColor:v.color.text.success,className:"done-icon"}):l,percentCompleted:o,outlined:!b&&a,disabled:u,active:!0}),(0,w.jsxs)(d.xu,{flexDirection:"column",children:[(0,w.jsx)(d.ZT,{className:"label","data-testid":`program-stage-subItem-title--${n}`,children:n}),r&&(0,w.jsx)(d.ZT,{style:{margin:0},variant:"body2",color:"secondary",children:r})]}),(0,w.jsx)(d.xu,{marginLeft:"auto",children:m||(c&&t?(0,w.jsx)(d.u,{title:p,placement:"left",children:(0,w.jsx)(d.fl,{className:"action-button",onClick:e=>{e.stopPropagation(),e.preventDefault(),t()},color:["start","continue"].includes(c)?"primary":"secondary",variant:["start","continue"].includes(c)?"contained":"outlined",disabled:u,loading:h,"aria-label":n,"data-testid":`program-stage-subItem-action-button--${n}`,children:(0,w.jsx)(d.ZT,{variant:"body2",textTransform:"capitalize",fontWeight:"bold",children:y.formatMessage({id:`BtnLabel.${x}`,defaultMessage:x})})})}):null)})]},n),g]})},wd=e=>{let{stage:t,surveyId:n,onSubmit:i,onHide:o}=e;return(0,r.useEffect)((()=>{const e=document.createElement("script");e.src="https://paperform.co/__embed.min.js",document.body.appendChild(e);const t=e=>{const t=e.detail.submission_id;i(t)};return document.addEventListener("PaperformSubmission",t),()=>{document.removeEventListener("PaperformSubmission",t)}}),[null===t||void 0===t?void 0:t.id]),(0,w.jsx)(d.o9,{id:"survey",title:"",onClose:o,maxWidth:"md",open:!0,children:(0,w.jsx)(d.cZ,{children:(0,w.jsx)(xd,{"data-paperform-id":n,"data-spinner":!0})})})},xd=Z.ZP.div`
  max-height: 600px;
  overflow: scroll;
`;var kd=n(19429),Cd=n(35397);const Sd=e=>{let{illustration:t,children:n}=e;return(0,w.jsx)(Md,{children:(0,w.jsxs)(Cd.k,{direction:"column",gap:"40px",alignItems:"center",children:[(0,w.jsx)("div",{}),t,n]})})},Md=Z.ZP.div`
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.secondary}};
  padding: 20px;
  border-radius: 10px;
`,Td=(0,r.memo)((e=>{let{surveyId:t,loading:n,pdfUrl:i,onSubmit:o}=e;return(0,r.useEffect)((()=>{const e=document.createElement("script");e.src="https://paperform.co/__embed.min.js",document.body.appendChild(e);const t=e=>{const t=e.detail.submission_id;o(t)};return document.addEventListener("PaperformSubmission",t),()=>{document.removeEventListener("PaperformSubmission",t)}}),[]),n||i?(0,w.jsx)(Sd,{illustration:(0,w.jsx)("img",{src:"/assets/mrv/survey_illustration.svg",alt:"survey"}),children:i?(0,w.jsxs)(ni.k,{direction:"column",gap:"10px",children:[(0,w.jsxs)(ni.k,{alignItems:"center",gap:"10px",children:[(0,w.jsx)(pd,{icon:(0,w.jsx)(gd.nQ,{style:{width:30,height:30}}),outlined:!0,active:!0,percentCompleted:100,hideProgressLabel:!0,id:"success-survey"}),(0,w.jsx)(Rn.x,{variant:"h3",inline:!0,children:(0,Dn.t)({id:"Survey complete!",defaultMessage:"Survey complete!"})})]}),(0,w.jsx)(kd.w,{raised:!0,primary:!0,onClick:()=>Ed(i),children:(0,Dn.t)({id:"Download PDF",defaultMessage:"Download PDF"})})]}):(0,w.jsx)(kd.w,{raised:!0,primary:!0,loading:!0,children:(0,Dn.t)({id:"Loading...",defaultMessage:"Loading..."})})}):(0,w.jsx)(Pd,{"data-paperform-id":t,"data-spinner":!0})})),Ed=e=>window.open(e,"_blank"),Pd=Z.ZP.div`
  max-height: 600px;
  overflow: scroll;
  iframe {
    margin-top: 24px;
  }
`,Id=e=>{var t;const n=(0,h.T)(),{projectId:i,stageId:o}=(0,gr.B)(),a=(0,h.C)((t=>(0,_.Jp)(t,e,br.UY.SURVEY))),s=(0,h.C)(_.no),l=Jo(e),c=(null===a||void 0===a?void 0:a.id)===o,[u,d]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!1),[m,g]=(0,r.useState)(),[y,v]=(0,r.useState)(!1),b=Od(e,u,a,m),x=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION);Mo((async()=>{if(!a)return;const e=await k(i,a.id);null!==e&&void 0!==e&&e.results_pdf_url&&(v(!1),d(!1))}),5e3,y);const k=async(e,t)=>{if(e&&t)try{const n=(await Nr.eV.getSurvey(e,t)).data;if(!n)return;return g(n),n}catch(ag){(0,C.e)(`Couldn't fetch survey for project "${e}" and stage "${t}": ${ag}`)}},S=(0,r.useCallback)((async e=>{if(a&&e)try{d(!0);const t=await Nr.eV.postSurvey(i,a.id,e);g(t.data),await n((0,Fr.r7)({projectId:i,stageId:a.id,enableValidation:x})),v(!0)}catch(ag){d(!1),(0,C.e)(`Couldn't post survey "${a.id}" with submission id "${e}"`)}}),[i,a,n,x]);(0,r.useEffect)((()=>{if(null===a||void 0===a||!a.survey_id||!i)return;(async()=>{d(!0);const e=await k(i,null===a||void 0===a?void 0:a.id);if(d(!1),null===(null===e||void 0===e?void 0:e.completed))try{const e=await Nr.eV.postSurvey(i,a.id);g(e.data)}catch(ag){(0,C.e)(`Couldn't post survey for project "${i}" and stage "${a.id}": ${ag}`)}})()}),[i,null===a||void 0===a?void 0:a.id,null===a||void 0===a?void 0:a.survey_id]);const M=a?{title:(0,To.bT)(a),icon:(0,w.jsx)(yd,{iconUrl:null===a||void 0===a?void 0:a.icon,stageType:null===a||void 0===a?void 0:a.type_}),onClick:async()=>{if(a&&(f(!0),null===(null===m||void 0===m?void 0:m.completed)))try{const e=await Nr.eV.postSurvey(i,a.id);g(e.data)}catch(ag){(0,C.e)(`Couldn't post survey for project "${i}" and stage "${a.id}": ${ag}`)}},percentComplete:(null===s||void 0===s||null===(t=s[null===a||void 0===a?void 0:a.id])||void 0===t?void 0:t.percentage_complete)||0,actionLabel:b,disabled:!(null!==m&&void 0!==m&&m.survey_id)||a&&l(a),loading:u,order:null===a||void 0===a?void 0:a.order}:{title:"",icon:(0,w.jsx)(yd,{}),percentComplete:0,order:0};return{surveyItem:M,surveyDialog:p&&null!==m&&void 0!==m&&m.survey_id&&a?(0,w.jsx)(wd,{stage:a,surveyId:null===m||void 0===m?void 0:m.survey_id,onHide:()=>f(!1),onSubmit:S}):null,surveyView:c&&null!==m&&void 0!==m&&m.survey_id?(0,w.jsx)(Td,{surveyId:null===m||void 0===m?void 0:m.survey_id,loading:u,pdfUrl:null===m||void 0===m?void 0:m.results_pdf_url,onSubmit:S}):null}},Od=(e,t,n,r)=>{var i,o;const a=(0,h.C)(_.no);e!==br.t5.Enrolment&&e!==br.t5.Monitoring&&(0,C.e)(`useSurveyItem is not implemented for the phase type: "${e}"`);const{isReadOnly:s}=wr(e);return t?(0,Dn.t)({id:"BtnLabel.Loading",defaultMessage:"Loading"}):n&&null!==r&&void 0!==r&&r.survey_id?null!==(i=a[null===n||void 0===n?void 0:n.id])&&void 0!==i&&i.is_completed||s?(0,Dn.t)({id:"BtnLabel.View",defaultMessage:"View"}):0!==(null===(o=a[null===n||void 0===n?void 0:n.id])||void 0===o?void 0:o.percentage_complete)||!1===(null===r||void 0===r?void 0:r.completed)?(0,Dn.t)({id:"BtnLabel.Continue",defaultMessage:"Continue"}):(0,Dn.t)({id:"BtnLabel.Start",defaultMessage:"Start"}):(0,Dn.t)({id:"BtnLabel.Unconfigured",defaultMessage:"Unconfigured"})};var Ld=n(56624);const Rd=e=>{let{children:t}=e;const[n]=(0,r.useContext)(od),i=(0,f.YB)();return n.length?(0,w.jsx)(w.Fragment,{children:t}):(0,w.jsx)(d.u,{id:"bulk-edit-tooltip",placement:"left",title:i.formatMessage({id:"BulkEdit.EditFieldMessage",defaultMessage:"Select fields below by checking the box under the field geometry image. Then click the bulk edit button to enter the same value for multiple fields. This is helpful if you have done the same practices on multiple fields or worked in multiple fields on the same date."}),PopperProps:{style:{zIndex:ud.K.FluroSelectLite}},children:(0,w.jsx)(d.xu,{children:t})})},jd=()=>(0,f.YB)().formatMessage({id:"current field",defaultMessage:"current field"}),Dd=[];let Ad=function(e){return e.SelectSourceAndDestination="selectSourceAndDestination",e.ConfirmOverwrites="confirmOverwrites",e.Processing="processing",e.Success="success",e.Error="error",e}({}),Nd=function(e){return e.CopyToProjects="Across producers",e.CopyToCurrentProject="For this producer",e.CopyToGroups="Across groups",e}({});const Fd=(0,r.createContext)({onCloseDialog:()=>null,currentTab:Nd.CopyToCurrentProject,setCurrentTab:()=>null,currentField:void 0,phaseType:br.t5.Enrolment,setStep:()=>null,step:Ad.SelectSourceAndDestination,setSelectedEntities:()=>null,selectedEntities:{fields:[],sourceField:void 0,stages:[],projectsWithFields:[],groups:[]}}),zd=e=>{let{children:t,phaseType:n,setDialogVisibility:i,currentField:o}=e;const[a,s]=r.useState(Ad.SelectSourceAndDestination),l=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA_PER_SINGLE_PROJECT),c=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA),[u,d]=r.useState(l?Nd.CopyToCurrentProject:c?Nd.CopyToProjects:Nd.CopyToGroups),p=jd(),[h,f]=r.useState({fields:[],stages:[],projectsWithFields:[],groups:[],sourceField:o?{value:o.id,label:`${o.core_attributes.field_name} (${p})`}:void 0}),m=(0,r.useCallback)((e=>{f((t=>({...t,...e})))}),[f]),g=(0,r.useCallback)((()=>i(!1)),[i]),y=(0,r.useCallback)((e=>{d(e),m({fields:[],projectsWithFields:[],groups:[]}),s(Ad.SelectSourceAndDestination)}),[m]);return(0,w.jsx)(Fd.Provider,{value:{onCloseDialog:g,currentTab:u,setCurrentTab:y,currentField:o,phaseType:n,setStep:s,step:a,selectedEntities:h,setSelectedEntities:m},children:t})},Bd=()=>(0,r.useContext)(Fd),Ud=()=>{const{currentTab:e,setCurrentTab:t,step:n}=Bd(),i=(0,f.YB)(),[o,a]=(0,hr.zE)([br.aR.OVERWRITE_SINGLE_PROJECT_FIELD_VALUES,br.aR.OVERWRITE_MULTIPLE_PROJECTS_FIELD_VALUES]),s=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA_PER_SINGLE_PROJECT),l=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA),c=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA_ACROSS_GROUPS),u=(0,h.C)(_.mJ),p=(0,r.useMemo)((()=>{const e=[];return o&&s&&e.push((0,w.jsx)(d.OK,{value:Nd.CopyToCurrentProject,label:i.formatMessage({id:"DuplicateFields.forThisProducer",defaultMessage:Nd.CopyToCurrentProject})},"DuplicateFields.forThisProducer")),a&&l&&e.push((0,w.jsx)(d.OK,{value:Nd.CopyToProjects,label:i.formatMessage({id:"DuplicateFields.acrossProducers",defaultMessage:Nd.CopyToProjects})},"DuplicateFields.acrossProducers")),a&&c&&u&&e.push((0,w.jsx)(d.OK,{value:Nd.CopyToGroups,label:i.formatMessage({id:"DuplicateFields.acrossGroups",defaultMessage:Nd.CopyToGroups})},"DuplicateFields.acrossGroups")),e}),[o,a,i,c,l,s]);return n!==Ad.SelectSourceAndDestination||p.length<=1?null:(0,w.jsx)(d.V2,{value:e,onChange:(e,n)=>t(n),variant:"fullWidth",children:p})},$d=e=>{let{onConfirmOverwrites:t}=e;const n=(0,d.Fg)(),{currentTab:i,setStep:o}=Bd(),a=Vd(),s=qd(),l=Zd(),c=(0,r.useMemo)((()=>{switch(i){case Nd.CopyToCurrentProject:return a;case Nd.CopyToProjects:return s;case Nd.CopyToGroups:return l}}),[i,a,s,l]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:5,flex:"1 0 0",padding:n.spacing(5,0),children:[(0,w.jsxs)(d.xu,{width:"40%",alignSelf:"stretch",display:"flex",flexDirection:"column",gap:3,children:[(0,w.jsx)(d.le,{type:"warning-triangled",fontSize:"h3",sx:{color:n.palette.semanticPalette.text.warning}}),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:c.message}),(0,w.jsx)(d.ZT,{variant:"body1",color:"secondary",children:(0,w.jsx)(f._H,{id:"DuplicateFields.thisCannotBeUndone",defaultMessage:"This cannot be undone."})})]})]}),(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",gap:3,flex:"1 0 0",alignSelf:"stretch",borderRadius:n.borderRadii.md,boxShadow:n.boxShadows.sm,padding:n.spacing(3),children:(0,w.jsx)(d.xu,{component:"ul",paddingLeft:3,margin:0,color:n.palette.semanticPalette.text.warning,maxHeight:"200px",overflow:"auto",children:c.overwriteList})})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:()=>o(Ad.SelectSourceAndDestination),color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"BtnLabel.Back",defaultMessage:"Back"})}),(0,w.jsx)(d.zx,{onClick:t,children:(0,w.jsx)(f._H,{id:"DuplicateFields.copyToOtherFields",defaultMessage:"Copy to other fields"})})]})]})},Vd=()=>{const{selectedEntities:e}=Bd(),t=(0,h.C)(_.Bx),n=(0,r.useMemo)((()=>{const n=e.fields.map((e=>e.value)),r=t.filter((e=>n.includes(e.id))).map((e=>({farmName:e.core_attributes.farm_name,fieldName:e.core_attributes.field_name})));return Xr()(r,"farmName")}),[e.fields,t]),i=(0,r.useMemo)((()=>Object.keys(n).map((e=>{var t;return(0,w.jsx)("li",{children:(0,w.jsxs)(d.ZT,{variant:"body1",children:[(0,w.jsxs)(d.ZT,{component:"span",fontWeight:600,children:[e,":"]}),"\xa0",null===(t=n[e])||void 0===t?void 0:t.map((e=>{let{fieldName:t}=e;return t})).join(", ")]})},e)}))),[n]);return{message:(0,w.jsx)(f._H,{id:"DuplicateFields.fieldsInSelectedFarmsWillBeOverwrittenWarning",defaultMessage:"Data for {countFields} {countFields, plural, one {field} other {fields}} across {countFarms} selected {countFarms, plural, one {farm} other {farms}} will be overwritten. Are you sure?",values:{countFields:e.fields.length,countFarms:Object.keys(n).length}}),overwriteList:i}},qd=()=>{const{selectedEntities:e}=Bd(),t=e.projectsWithFields.length,n=(0,r.useMemo)((()=>e.projectsWithFields.flatMap((e=>{let{fields:t}=e;return t})).length),[e.projectsWithFields]),i=(0,r.useMemo)((()=>e.projectsWithFields.map((e=>{let{projectId:t,producerName:n,fields:r}=e;return(0,w.jsx)("li",{children:(0,w.jsxs)(d.ZT,{variant:"body1",children:[(0,w.jsxs)(d.ZT,{component:"span",fontWeight:600,children:[n,":"]}),"\xa0",r.map((e=>{let{name:t}=e;return t})).join(", ")]})},`project-to-overwrite-${t}`)}))),[e.projectsWithFields]);return{message:(0,w.jsx)(f._H,{id:"DuplicateFields.fieldsInSelectedProjectsWillBeOverwrittenWarning.v1",defaultMessage:"{countFields} {countFields, plural, one {field} other {fields}} across {countProjects} selected {countProjects, plural, one {producer} other {producers}} have existing data. Are you sure you want to overwrite data on these field?",values:{countFields:n,countProjects:t}}),overwriteList:i}},Zd=()=>{const{selectedEntities:e}=Bd(),t=e.groups.length,n=e.projectsWithFields.length,i=(0,r.useMemo)((()=>e.projectsWithFields.flatMap((e=>{let{fields:t}=e;return t})).length),[e.projectsWithFields]),o=(0,r.useMemo)((()=>e.projectsWithFields.map((e=>{let{projectId:t,producerName:n,fields:r}=e;return(0,w.jsx)("li",{children:(0,w.jsxs)(d.ZT,{variant:"body1",children:[(0,w.jsxs)(d.ZT,{component:"span",fontWeight:600,children:[n,":"]}),"\xa0",r.map((e=>{let{name:t}=e;return t})).join(", ")]})},`project-to-overwrite-${t}`)}))),[e.projectsWithFields]);return{message:(0,w.jsx)(f._H,{id:"DuplicateFields.fieldsInSelectedGroupsWillBeOverwrittenWarning",defaultMessage:"{countFields} {countFields, plural, one {field} other {fields}} across {countProjects} {countProjects, plural, one {producer} other {producers}} across {countGroups} {countGroups, plural, one {group} other {groups}} have existing data. Are you sure you want to overwrite data on these field?",values:{countFields:i,countProjects:n,countGroups:t}}),overwriteList:o}},Hd=()=>{const{onCloseDialog:e}=Bd();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{height:200,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:3,children:[(0,w.jsx)(d.le,{type:"warning-triangled",fontSize:"h1",color:"error"}),(0,w.jsx)(d.ZT,{variant:"h3",children:(0,w.jsx)(f._H,{id:"An error occurred, try to reload the page.",defaultMessage:"An error occurred, try to reload the page."})})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:e,children:(0,w.jsx)(f._H,{id:"BtnLabel.Close",defaultMessage:"Close"})})})]})};var Gd=n(61120);const Wd=e=>{let{isProcessing:t,phaseName:n}=e;const{onCloseDialog:r}=Bd();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",gap:3,padding:[0,15],children:[(0,w.jsx)(Gd.Z,{size:40}),(0,w.jsx)(d.ZT,{variant:"body1",children:(0,w.jsx)(f._H,{id:"DuplicateFields.duplicatingPhaseFieldData",defaultMessage:"Duplicating {phase} field data...",values:{phase:n}})})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:r,disabled:t,children:(0,w.jsx)(f._H,{id:"BtnLabel.Done",defaultMessage:"Done"})})})]})};var Yd=n(28438),Kd=n(2756),Xd=n(11184);const Jd=(0,Yd.D)({stringify:e=>e.label+e.value.toString()}),Qd=()=>{const e=(0,d.Fg)(),t=(0,f.YB)(),{onCloseDialog:n,currentTab:i,selectedEntities:o,setSelectedEntities:a,currentField:s,setStep:l}=Bd(),c=jd(),u=(0,r.useMemo)((()=>{let e;switch(i){case Nd.CopyToCurrentProject:e=o.fields.length;break;case Nd.CopyToProjects:case Nd.CopyToGroups:e=o.projectsWithFields.length}let t=!e;return i===Nd.CopyToCurrentProject&&(t=!(e&&o.stages.length)),t}),[i,o.fields.length,o.projectsWithFields.length,o.stages.length]),p=(0,h.C)(_.Bx),m=(0,r.useMemo)((()=>p.map((e=>{let{id:t,core_attributes:n}=e;const r=(null===s||void 0===s?void 0:s.id)===t,i=n.farm_name;return{value:t,label:`${n.field_name} (${r?c:i})`}}))),[p,s,c]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:5,padding:e.spacing(5,0),children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignSelf:"stretch",gap:3,flex:"1 0 0",width:"30%",borderRadius:e.borderRadii.md,boxShadow:e.boxShadows.sm,padding:e.spacing(3),children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"DuplicateFields.selectDuplicationSource",defaultMessage:"Select duplication source"})}),i!==Nd.CopyToCurrentProject?(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:(0,w.jsx)(f._H,{id:"DuplicateFields.StagesWillBeDuplicated",defaultMessage:"Event data across crop, tillage, nutrient, and irrigation stages will be duplicated."})}):null]}),(0,w.jsx)(d.F2,{placeholder:t.formatMessage({id:"DuplicateFields.selectSourceField",defaultMessage:"Select source field"}),options:m,value:o.sourceField,onChange:(e,t)=>a({sourceField:t})}),i===Nd.CopyToCurrentProject?(0,w.jsx)(rp,{}):null]}),(0,w.jsx)(d.le,{type:"arrow-right",fontSize:"h2"}),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignSelf:"stretch",gap:3,flex:"1 0 0",width:"30%",borderRadius:e.borderRadii.md,boxShadow:e.boxShadows.sm,padding:e.spacing(3),children:[i===Nd.CopyToCurrentProject?(0,w.jsx)(ep,{}):null,i===Nd.CopyToProjects||i===Nd.CopyToGroups?(0,w.jsx)(tp,{}):null]})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:n,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"BtnLabel.Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{disabled:u,onClick:()=>l(Ad.ConfirmOverwrites),children:(0,w.jsx)(f._H,{id:"DuplicateFields.copyToOtherFields",defaultMessage:"Copy to other fields"})})]})]})},ep=()=>{const e=(0,f.YB)(),t=(0,h.C)(_.Bx),{selectedEntities:n,setSelectedEntities:i}=Bd(),o=(0,r.useCallback)((e=>{i({fields:e})}),[i]);(0,r.useEffect)((()=>{n.fields.find((e=>{var t;return e.value===(null===(t=n.sourceField)||void 0===t?void 0:t.value)}))&&i({fields:n.fields.filter((e=>{var t;return e.value!==(null===(t=n.sourceField)||void 0===t?void 0:t.value)}))})}),[n.sourceField,i,n.fields]);const a=(0,r.useMemo)((()=>t.filter((e=>{var t;return e.id!==(null===(t=n.sourceField)||void 0===t?void 0:t.value)})).map((e=>({label:e.core_attributes.field_name,value:e.id,group:e.core_attributes.farm_name})))),[t,n.sourceField]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"DuplicateFields.fieldsToDuplicateDataTo",defaultMessage:"Fields to duplicate data to"})}),(0,w.jsx)(d.F2,{placeholder:e.formatMessage({id:"DuplicateFields.selectFields",defaultMessage:"Select fields"}),options:a,multiple:!0,value:n.fields,onChange:(e,t)=>o(t)})]})},tp=()=>{const e=(0,f.YB)(),{currentTab:t,phaseType:n,setStep:i}=Bd(),{programId:o}=(0,gr.B)(),{programProjectsFields:a,isLoading:s,error:l}=(e=>{let{programId:t,phaseType:n}=e;const i=`/programs/${t}/projects_farms_fields_for_overwrite`,{data:o,isLoading:a,isValidating:s,error:l}=(0,ai.ZP)(i,(async()=>(await Nr.eV.fetchProgramProjectsFarmsFields(t,n)).data.map((e=>{let{name:t,id:n,surname:r,farms_list:i,group_ids:o}=e;return{producerName:`${t} ${r}`,projectId:n,fields:i.flatMap((e=>{let{fields:t}=e;return t})),groupIds:o}}))),{revalidateOnFocus:!1,fallbackData:Dd,onError:e=>(0,C.e)(`Failed fetching project fields = ${e}`)});return(0,r.useMemo)((()=>({programProjectsFields:o||Dd,isLoading:a||s,error:l})),[l,a,s,o])})({programId:o,phaseType:n}),{options:c,setSelected:u,values:p}=np({projectFields:a});(0,r.useEffect)((()=>{l&&i(Ad.Error)}),[l,i]);const m=(0,h.C)(_.mJ);return t!==Nd.CopyToGroups||m?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:t===Nd.CopyToGroups?(0,w.jsx)(f._H,{id:"DuplicateFields.targetGroups",defaultMessage:"Groups to duplicate data to"}):(0,w.jsx)(f._H,{id:"DuplicateFields.targetProducers",defaultMessage:"Producers to duplicate data to"})}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:t===Nd.CopyToGroups?(0,w.jsx)(f._H,{id:"DuplicateFields.selectedGroupsFieldsWillBeOverwritten",defaultMessage:"Note: This will apply to all fields for all producers across selected groups. Also, this will override any corresponding existing data on those fields."}):(0,w.jsx)(f._H,{id:"DuplicateFields.selectedProducersFieldsWillBeOverwritten",defaultMessage:"Note: This will apply to all fields for selected producers. Also, this will override any corresponding existing data on those fields."})})]}),(0,w.jsx)(d.F2,{placeholder:t===Nd.CopyToGroups?e.formatMessage({id:"DuplicateFields.selectGroups",defaultMessage:"Select groups"}):e.formatMessage({id:"DuplicateFields.selectProducers",defaultMessage:"Select producers"}),options:c,PopperComponent:Xd.k,hasSelectAll:!0,fullWidth:!0,disableCloseOnSelect:!0,multiple:!0,ListboxComponent:Xd.h,disabled:s,value:p,onChange:(e,t)=>u(t),filterOptions:Jd}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:(0,w.jsx)(f._H,{id:"DuplicateFields.enrolledProjectsCannotBeModified",defaultMessage:"*Enrolled projects can't be modified."})}),s&&(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,children:[(0,w.jsx)(d.ZT,{variant:"body1",color:"secondary",children:(0,w.jsx)(f._H,{id:"DuplicateFields.loadingProjects",defaultMessage:"Loading projects"})}),(0,w.jsx)(Gd.Z,{size:24})]})]}):null},np=e=>{let{projectFields:t}=e;const n=(0,f.YB)(),{groupsOptions:i}=(0,Kd.XY)(),{currentTab:o,selectedEntities:a,setSelectedEntities:s}=Bd(),l=(0,r.useMemo)((()=>{const e={};return t.forEach((t=>{let{groupIds:n,fields:r}=t;n.forEach((t=>e[t]=(e[t]||0)+r.length))})),e}),[t]),c=(0,r.useMemo)((()=>t.map((e=>{let{producerName:t,fields:r,projectId:i}=e;return{value:i,label:`${t} (${n.formatMessage({id:"{count} fields",defaultMessage:"{count} fields"},{count:r.length})})`}}))),[t,n]),u=(0,r.useMemo)((()=>{const e=new Set(t.flatMap((e=>{let{groupIds:t}=e;return t})));return i.filter((t=>{let{value:n}=t;return e.has(n)})).map((e=>{let{label:t,value:r}=e;return{value:r,label:`${n.formatMessage({id:"DuplicateFields.group",defaultMessage:"{groupName}"},{groupName:t})} (${n.formatMessage({id:"{count} fields",defaultMessage:"{count} fields"},{count:l[r]})})`}}))}),[i,l,n,t]),d=(0,r.useMemo)((()=>{const e=new Set(a.projectsWithFields.map((e=>{let{projectId:t}=e;return t})));return c.filter((t=>{let{value:n}=t;return e.has(n)}))}),[c,a.projectsWithFields]),p=(0,r.useCallback)((e=>{const n=new Set(e.map((e=>{let{value:t}=e;return t})));s({projectsWithFields:t.filter((e=>{let{projectId:t}=e;return n.has(t)}))})}),[s,t]),h=a.groups,m=(0,r.useCallback)((e=>{const n=new Set(e.map((e=>{let{value:t}=e;return t})));s({groups:e,projectsWithFields:t.filter((e=>{let{groupIds:t}=e;return t.some((e=>n.has(e)))}))})}),[t,s]);return(0,r.useMemo)((()=>o===Nd.CopyToGroups?{options:u,values:h,setSelected:m}:{options:c,values:d,setSelected:p}),[u,o,c,d,h,m,p])},rp=()=>{const{phaseType:e,selectedEntities:{stages:t},setSelectedEntities:n}=Bd(),i=(0,r.useCallback)((e=>{n({stages:e})}),[n]),o=(0,h.C)((t=>(0,_.YN)(t,e))),{projectId:a}=(0,gr.B)(),{getValueRows:s}=Lo(a),l=(0,r.useMemo)((()=>o.filter((e=>e.attributes.length>0&&e.enabled)).map((e=>(0,w.jsx)(d.t8,{label:(0,To.bT)(e),disabled:!s(e.id).length,onChange:(n,r)=>i(r?[...t,e.id]:t.filter((t=>t!==e.id))),control:(0,w.jsx)(d.XZ,{checked:t.includes(e.id),color:"primary"})},e.id)))),[o,s,t,i]);return(0,w.jsx)(d.xu,{mt:3,children:(0,w.jsx)(d.cw,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"DuplicateFields.selectFieldDataToDuplicate",defaultMessage:"Select field data to duplicate"})}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:(0,w.jsx)(f._H,{id:"DuplicateFields.selectStagesToDuplicate",defaultMessage:"Only stages with existing data can be duplicated."})}),l]})})})},ip=()=>{const{onCloseDialog:e,currentTab:t}=Bd(),n=(0,r.useMemo)((()=>{switch(t){case Nd.CopyToCurrentProject:return(0,w.jsx)(op,{});case Nd.CopyToProjects:return(0,w.jsx)(ap,{});case Nd.CopyToGroups:return(0,w.jsx)(sp,{})}}),[t]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{height:200,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:3,children:[(0,w.jsx)(d.le,{type:"check-mark-circled",fontSize:"h1",color:"primary"}),(0,w.jsx)(d.ZT,{variant:"h3",color:"primary",children:n})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:e,children:(0,w.jsx)(f._H,{id:"BtnLabel.Done",defaultMessage:"Done"})})})]})},op=()=>{const{selectedEntities:e}=Bd(),t=(0,h.C)(_.Bx),n=(0,r.useMemo)((()=>{const n=e.fields.map((e=>e.value)),r=new Set(t.filter((e=>n.includes(e.id))).map((e=>e.core_attributes.farm_name)));return[...r]}),[e.fields,t]);return(0,w.jsx)(f._H,{id:"DuplicateFields.currentProjectFieldsUpdated",defaultMessage:"{fieldsCount} {fieldsCount, plural, one {field} other {fields}} across {farmsCount} {farmsCount, plural, one {farm} other {farms}} updated.",values:{fieldsCount:e.fields.length,farmsCount:n.length}})},ap=()=>{const{selectedEntities:e}=Bd(),t=(0,r.useMemo)((()=>e.projectsWithFields.flatMap((e=>{let{fields:t}=e;return t})).length),[e.projectsWithFields]);return(0,w.jsx)(f._H,{id:"DuplicateFields.producersFieldsUpdated",defaultMessage:"{fieldsCount} {fieldsCount, plural, one {field} other {fields}} across {projectsCount} {projectsCount, plural, one {producer} other {producers}} updated.",values:{fieldsCount:t,projectsCount:e.projectsWithFields.length}})},sp=()=>{const{selectedEntities:e}=Bd(),t=(0,r.useMemo)((()=>e.projectsWithFields.flatMap((e=>{let{fields:t}=e;return t})).length),[e.projectsWithFields]);return(0,w.jsx)(f._H,{id:"DuplicateFields.groupsFieldsUpdated",defaultMessage:"{fieldsCount} {fieldsCount, plural, one {field} other {fields}} across {projectsCount} {projectsCount, plural, one {producer} other {producers}} and {groupsCount} {groupsCount, plural, one {group} other {groups}} updated.",values:{fieldsCount:t,projectsCount:e.projectsWithFields.length,groupsCount:e.groups.length}})},lp=e=>{let{phaseType:t}=e;const n=(0,h.C)((e=>(0,_.d1)(e,t))),{programId:i,projectId:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,_.sZ)(e,t))),s=(0,h.T)(),l=(0,ki.YE)()[t].toLowerCase(),c=(0,f.YB)(),{step:u,setStep:p,selectedEntities:m,onCloseDialog:g,currentTab:y}=Bd(),v=(0,r.useCallback)((e=>{(0,ai.JG)(Ro(e));for(const t of a)s((0,Fr.r7)({projectId:e,stageId:t.id}))}),[a,s]),b=(0,r.useCallback)((async e=>{const t=e.map((e=>e.id));if(t.length)try{await Nr.eV.deleteProjectNotifications(o,t)}catch(ag){(0,C.e)(`Error dismissing notifications. notification ids: ${t.join(", ")} = ${ag}`)}}),[o]),x=(0,r.useCallback)((async()=>{try{const e=(await Nr.eV.getProjectNotifications(o)).data.filter((e=>e.source===br.Pj.MRV_VALUES_OVERWRITE)),t=e.find((e=>e.body.code===br.hJ.AllDone)),n=e.find((e=>e.body.code===br.hJ.Error));if(n)throw new Error(`Notification failed:${n.id}`);t&&(p(Ad.Success),b(e),y!==Nd.CopyToCurrentProject&&m.projectsWithFields.some((e=>{let{projectId:t}=e;return t===o}))||v(o)),e.length&&setTimeout(x,5e3)}catch(ag){(0,C.e)(`Error getting notifications = ${ag}`),p(Ad.Error)}}),[o,m,b,p,y,v]),k=(0,r.useCallback)((async()=>{var e;if(null===(e=m.sourceField)||void 0===e||!e.value||!n)return;const t=y===Nd.CopyToCurrentProject,r=m.projectsWithFields.map((e=>{let{projectId:t}=e;return t})),o=m.fields.map((e=>{let{value:t}=e;return t}));p(Ad.Processing);try{const e={program_id:Number(i),phase_type:n.type_,source_field_id:m.sourceField.value};t?await Nr.eV.overwriteFieldsValuesInProject({...e,target_field_ids:o,target_stage_ids:m.stages}):await Nr.eV.overwriteFieldsValuesInProjects({...e,target_project_ids:r}),x()}catch(ag){(0,C.e)(`Error overwriting field values = ${ag}`),p(Ad.Error)}}),[i,m,n,x,p,y]);return(0,w.jsxs)(d.o9,{open:!0,onClose:g,hideCloseIcon:"processing"===u,disableBackdropClick:"processing"===u,description:c.formatMessage({id:"Duplicate events from one field to other fields.",defaultMessage:"Duplicate events from one field to other fields."}),title:c.formatMessage({id:"BulkTool.duplicatePhaseFieldData",defaultMessage:"Duplicate {phase} field data"},{phase:l}),maxWidth:"lg",children:[(0,w.jsx)(Ud,{}),"selectSourceAndDestination"===u&&(0,w.jsx)(Qd,{}),"confirmOverwrites"===u&&(0,w.jsx)($d,{onConfirmOverwrites:k}),"processing"===u&&(0,w.jsx)(Wd,{phaseName:l,isProcessing:!0}),"success"===u&&(0,w.jsx)(ip,{}),"error"===u&&(0,w.jsx)(Hd,{})]})};function cp(e){let{stageName:t,rows:n,onCancel:i}=e;const o=(0,f.YB)(),{projectId:a,stageId:s}=(0,gr.B)(),[l,c]=(0,r.useState)(!1),{revalidateEntityValueRows:u}=(0,r.useContext)(Ld.z),p=(0,h.C)((e=>(0,_.M0)(e,s)));return(0,w.jsxs)(d.xu,{display:"flex",gap:"20px",flexDirection:"column",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",component:"span",children:(0,w.jsx)(f._H,{id:"{totalRowsToUpload} {stageName} records will be added.",defaultMessage:"{totalRowsToUpload} {stageName} records will be added.",values:{totalRowsToUpload:n.length,stageName:t}})})," ",(0,w.jsx)(d.ZT,{component:"span",children:(0,w.jsx)(f._H,{id:"Import data?",defaultMessage:"Import data?"})})]}),(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"warning",color:"warning",title:o.formatMessage({id:"note.warning",defaultMessage:"Warning"}),mini:!0,children:(0,w.jsx)(f._H,{id:"This action will upload many records and cannot be undone.",defaultMessage:"This action will upload many records and cannot be undone."})}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"end",gap:"8px",children:[(0,w.jsx)(d.zx,{onClick:i,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.fl,{onClick:async function(){try{c(!0),await Nr.eV.importCSV(a,s,n),i(),await u(),tr.Z.track("MRV CSV file successfully uploaded",{Stage:null===p||void 0===p?void 0:p.type_}),(0,Yn.c)({type:"success",coloredNotification:!0,title:o.formatMessage({id:"{totalRowsToUpload} {stageName} records added",defaultMessage:"{totalRowsToUpload} {stageName} records added"},{totalRowsToUpload:n.length,stageName:t}),message:o.formatMessage({id:"Review data before proceeding to the next step.",defaultMessage:"Review data before proceeding to the next step."})})}catch(e){(0,C.e)(e),(0,Yn.c)({type:"error",coloredNotification:!0,message:o.formatMessage({id:"Error uploading {stageName} records.",defaultMessage:"Error uploading {stageName} records."},{stageName:t})})}finally{c(!1)}},loading:l,variant:"contained",children:(0,w.jsx)(f._H,{id:"Import",defaultMessage:"Import"})})]})]})}var up=n(13065);function dp(){const e=function(){const e=(0,f.YB)();return(0,r.useCallback)((t=>{const n=`CSVError.${t.code}`;switch(t.code){case up.TT.InconsistentRowLength:return e.formatMessage({id:n,defaultMessage:"Row #{rowNumber} has a different length to the header row: expected {expected} cells but found {parsed}"},{rowNumber:t.meta.rowNumber,parsed:t.meta.parsed,expected:t.meta.expected});case up.TT.TooFewRows:return e.formatMessage({id:n,defaultMessage:"At least two rows are required: a header row and one or more data rows"});case up.TT.MissingRequiredColumns:return e.formatMessage({id:n,defaultMessage:"Missing required columns: {columns}"},{columns:t.meta.columns.join(", ")});case up.TT.DuplicateColumns:return e.formatMessage({id:n,defaultMessage:"Duplicate column headers: {columns}"},{columns:t.meta.columns.join(", ")});case up.TT.EmptyCells:return e.formatMessage({id:n,defaultMessage:"Row #{rowNumber} contains {totalEmptyCells} empty {totalEmptyCells, plural, one {cell} other {cells}}"},{rowNumber:t.meta.rowNumber,totalEmptyCells:t.meta.totalEmptyCells});case up.TT.NoData:return e.formatMessage({id:n,defaultMessage:"It looks like your CSV file doesn't contain any columns we can import. Please make sure you're using the correct file and not a blank template."})}}),[e])}();return(0,r.useCallback)((function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,up.bW)(t,n,r);return{...i,errors:i.errors.map(e)}}),[e])}var pp=n(96765),hp=n(43033);function fp(e){const t=/\(id: (\d+)\)/.exec(e),n=null===t||void 0===t?void 0:t[1];if(!n)return;const r=parseInt(n);return isNaN(r)?void 0:r}function mp(e){const t=/\(key: (.+)\)/.exec(e);return(null===t||void 0===t?void 0:t[1])||e}function gp(e){let{stageName:t,onNext:n,onCancel:i,thereAreCSVRows:o,setRows:a,fileName:s,setFileName:l,requiredColumns:c,ignoredColumns:u,existingFieldIds:p}=e;const m=(0,d.Fg)(),g=(0,f.YB)(),{programId:y,projectId:v,stageId:b}=(0,gr.B)(),x=(0,h.C)((e=>(0,_.PP)(e,y))),k=(0,h.C)(S.io),[M,T]=(0,r.useState)([]),[E,P]=(0,r.useState)((0,up.B$)(k)),I=dp();const O=0===M.length&&o;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(vp,{variant:"h4",children:(0,w.jsx)(f._H,{id:"Step 1: Download our {stageName} template",defaultMessage:"Step 1: Download our {stageName} template",values:{stageName:t}})}),(0,w.jsx)(d.xu,{mb:2,children:(0,w.jsxs)(d.nv,{label:(0,w.jsx)(f._H,{id:"CSV separator",defaultMessage:"CSV separator"}),value:E,onChange:e=>P(e.target.value),select:!0,children:[(0,w.jsxs)(d.sN,{value:up.wd.Semicolon,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.semicolon",defaultMessage:"Semicolon"})," ( ; )"]}),(0,w.jsxs)(d.sN,{value:up.wd.Comma,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.comma",defaultMessage:"Comma"})," ( , )"]}),(0,w.jsxs)(d.sN,{value:up.wd.Pipe,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.pipe",defaultMessage:"Pipe"})," ( | )"]}),(0,w.jsx)(d.sN,{value:up.wd.Tab,children:(0,w.jsx)(f._H,{id:"CSVSeparator.tab",defaultMessage:"Tab"})})]})}),(0,w.jsxs)(d.zx,{type:"button",startIcon:(0,w.jsx)(d.le,{type:"download"}),color:"secondary",variant:"outlined",onClick:async function(){try{var e;const n=await Nr.eV.downloadProjectCSVTemplate(v,b,E);(0,hp.Sv)(n.data,`${(0,xi.GL)(null!==(e=null===x||void 0===x?void 0:x.name)&&void 0!==e?e:"")}_${(0,xi.GL)(t)}.csv`,hp.HY.TextCSV)}catch(n){(0,C.e)(n)}},children:[(0,w.jsx)(f._H,{id:"Download template",defaultMessage:"Download template"})," (.csv)"]}),(0,w.jsx)(yp,{}),(0,w.jsx)(vp,{variant:"h4",children:(0,w.jsx)(f._H,{id:"Step 2: Add your {stageName} data to the template",defaultMessage:"Step 2: Add your {stageName} data to the template",values:{stageName:t}})}),(0,w.jsx)(f._H,{id:"Tips for formatting data:",defaultMessage:"Tips for formatting data:"}),(0,w.jsx)("ul",{children:(0,w.jsx)("li",{children:(0,w.jsx)(f._H,{id:"Make sure that dates are formatted as YYYY-MM-DD or {localeDateFormat}",defaultMessage:"Make sure that dates are formatted as YYYY-MM-DD or {localeDateFormat}",values:{localeDateFormat:(0,pp.wS)(k)}})})}),(0,w.jsx)(yp,{}),(0,w.jsx)(vp,{variant:"h4",children:(0,w.jsx)(f._H,{id:"Step 3: Upload your {stageName} data",defaultMessage:"Step 3: Upload your {stageName} data",values:{stageName:t}})}),(0,w.jsx)(d.xu,{mb:2,children:(0,w.jsxs)(d.nv,{label:(0,w.jsx)(f._H,{id:"CSV separator",defaultMessage:"CSV separator"}),value:E,onChange:e=>P(e.target.value),select:!0,children:[(0,w.jsxs)(d.sN,{value:up.wd.Semicolon,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.semicolon",defaultMessage:"Semicolon"})," ( ; )"]}),(0,w.jsxs)(d.sN,{value:up.wd.Comma,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.comma",defaultMessage:"Comma"})," ( , )"]}),(0,w.jsxs)(d.sN,{value:up.wd.Pipe,children:[(0,w.jsx)(f._H,{id:"CSVSeparator.pipe",defaultMessage:"Pipe"})," ( | )"]}),(0,w.jsx)(d.sN,{value:up.wd.Tab,children:(0,w.jsx)(f._H,{id:"CSVSeparator.tab",defaultMessage:"Tab"})})]})}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:"8px",children:[(0,w.jsxs)(d.zx,{component:"label",startIcon:O?(0,w.jsx)(d.le,{type:"file"}):(0,w.jsx)(d.le,{type:"upload"}),endIcon:O&&(0,w.jsx)(d.le,{type:"cross"}),color:"secondary",variant:"outlined",children:[O?s:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(f._H,{id:"Upload data",defaultMessage:"Upload data"})," (.csv)"]}),(0,w.jsx)("input",{accept:".csv",type:"file",onChange:async function(e){var t;T([]);const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(e.target.value="",!n||n.type!==hp.HY.TextCSV)return void T((e=>[...e,g.formatMessage({id:"Please upload a .csv file.",defaultMessage:"Please upload a .csv file."})]));const r=await n.text(),i=I(r,E,{requiredColumns:c,ignoredColumns:u,transformColumns:e=>e.map(mp)});if(i.errors.length>0)return void T((e=>[...e,...i.errors.map((e=>e))]));const o=i.rows.filter((e=>p.includes(Number(e.field_id))));o.length<i.rows.length&&(0,Yn.c)({type:"warning",coloredNotification:!0,message:g.formatMessage({id:"{totalFieldsSkipped}/{totalFields} fields were skipped, they do not exist in this stage.",defaultMessage:"{totalFieldsSkipped}/{totalFields} fields were skipped, they do not exist in this stage."},{totalFieldsSkipped:i.rows.length-o.length,totalFields:i.rows.length})}),a(o),l(n.name)},hidden:!0,"aria-hidden":!0})]}),O&&(0,w.jsx)(d.le,{type:"check-mark",fontSize:"h3",htmlColor:m.palette.success.main})]}),M.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(yp,{}),(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",gap:"8px",marginBottom:"24px",children:M.map((e=>(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"error",color:"error",mini:!0,children:e},e)))})]}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"end",gap:"8px",children:[(0,w.jsx)(d.zx,{onClick:i,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{disabled:!O,onClick:n,children:(0,w.jsx)(f._H,{id:"Next",defaultMessage:"Next"})})]})]})}const yp=Z.ZP.hr`
  border: none;
  margin: 24px 0px;
  border-top: 1px solid #f1f1ec;
`,vp=(0,Z.ZP)(d.ZT)`
  margin-bottom: 12px;
`,bp="placeholder",_p="no-mapping";var wp=n(17176),xp=n.n(wp);function kp(e){let{stageId:t,stageName:n,onNext:i,onCancel:o,rows:a,requiredColumns:s}=e;const l=(0,f.YB)(),c=(0,d.Fg)(),u=(0,h.C)((e=>(0,_.kq)(e,t))),p=(0,h.C)(S.io),m=(0,To.Qe)(),[g,y]=(0,r.useState)(new Map),[v,b]=(0,r.useState)([]);(0,r.useEffect)((()=>{var e;if(v.length>0)return;const t=[],n=new Map,r=Object.keys(null!==(e=a[0])&&void 0!==e?e:{}).filter((e=>!s.includes(e)));for(const i of r){const e=[];let r=0;for(const t of a){const n=t[i];if(n&&(e.push(n),r+=n.length,r>50))break}const o=fp(i),s=u.find((e=>e.id===o));s&&n.set(s.id,i),t.push({label:i,exampleValues:e.join(", ")})}b(t.sort(((e,t)=>e.label.localeCompare(t.label)))),y(n)}),[u,v.length,a,s]);const x=(0,r.useCallback)(((e,t)=>{y((n=>{const r=new Map(n);if(t!==_p){var i;const[e]=null!==(i=[...r.entries()].find((e=>{let[,n]=e;return n===t})))&&void 0!==i?i:[];e&&r.delete(e)}return r.set(e,t),r}))}),[]),k=u.length-g.size,C=(0,r.useMemo)((()=>u.find((e=>e.type===br.Zi.RecordYear))),[u]),M=(0,r.useMemo)((()=>!!C&&(!g.has(C.id)||g.get(C.id)===_p)),[g,C]),T=(0,r.useMemo)((()=>{if(!C)return!1;const e=g.get(C.id);return!(!e||e===_p)&&a.some((t=>!t[e]))}),[a,C,g]);function E(e,t){const n=e===(null===C||void 0===C?void 0:C.id)&&(M||T);if(!t||n)return c.palette.semanticPalette.surface.warning}const P=k>0||M||T;return(0,w.jsxs)(d.xu,{display:"flex",gap:"20px",flexDirection:"column",children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Map the columns of your imported data to the {stageName} columns.",defaultMessage:"Map the columns of your imported data to the {stageName} columns.",values:{stageName:n}})}),(0,w.jsx)(d.Xk,{variant:"outlined",children:(0,w.jsx)(d.xJ,{style:{maxHeight:"310px",borderRadius:"8px"},children:(0,w.jsxs)(d.iA,{style:{tableLayout:"fixed"},stickyHeader:!0,children:[(0,w.jsx)(d.ss,{children:(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:(0,w.jsx)(f._H,{id:"System column",defaultMessage:"System column"})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(f._H,{id:"Imported column",defaultMessage:"Imported column"})})]})}),(0,w.jsx)(d.RM,{children:u.map(((e,t)=>{const n=t===u.length-1?"none":void 0,r=m(e),i=g.get(e.id);return(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{style:{borderBottom:n},children:e.description?(0,w.jsx)(d.u,{id:`attribute-tooltip-${e.type}`,title:e.description,children:(0,w.jsxs)(d.xu,{display:"inline-flex",gap:"8px",alignItems:"center",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body1",children:r}),(0,w.jsx)(d.JO,{type:"question-circled",color:c.palette.grey[500]})]})}):(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body1",children:r})}),(0,w.jsx)(d.pj,{style:{borderBottom:n,padding:0,paddingRight:"8px",backgroundColor:E(e.id,i)},children:(0,w.jsx)(Cp,{onChange:t=>x(e.id,t),label:i,options:v})})]},e.id)}))})]})})}),!P&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"success",color:"success",title:l.formatMessage({id:"Column mapping completed.",defaultMessage:"Column mapping completed."}),mini:!0,children:(0,w.jsx)(f._H,{id:"Ready to map data.",defaultMessage:"Ready to map data."})}),k>0&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"warning",color:"warning",title:l.formatMessage({id:"{totalUnmappedColumns} {totalUnmappedColumns, plural, one {column} other {columns}} left to map.",defaultMessage:"{totalUnmappedColumns} {totalUnmappedColumns, plural, one {column} other {columns}} left to map."},{totalUnmappedColumns:k}),mini:!0,children:(0,w.jsx)(f._H,{id:"Scroll down to resolve all remaining column mapping.",defaultMessage:"Scroll down to resolve all remaining column mapping."})}),C&&M&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"warning",color:"warning",mini:!0,children:(0,w.jsx)(f._H,{id:"The {columnName} column is required.",defaultMessage:"The {columnName} column is required.",values:{columnName:m(C)}})}),C&&T&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"warning",color:"warning",mini:!0,children:(0,w.jsx)(f._H,{id:"Make sure every row in the {columnName} column has a value.",defaultMessage:"Make sure every row in the {columnName} column has a value.",values:{columnName:m(C)}})}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"end",gap:"8px",children:[(0,w.jsx)(d.zx,{onClick:o,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{disabled:P,onClick:()=>i(function(e,t,n,r,i){const o=new Map;for(const u of r)o.set(u.id,u.type);const a=[...n.entries()],s=[];for(const u of t){const t={};for(const n of e){var l;t[n]=null!==(l=u[n])&&void 0!==l?l:""}for(const[e,n]of a){var c;if(n===_p)continue;let r=u[n];const a=o.get(e);if(a&&(0,ki.Gc)(a)){const e=xp()(r,i);e.isValid()&&(r=e.format(B.dH))}t[e]=null!==(c=r)&&void 0!==c?c:""}s.push(t)}return s}(s,a,g,u,(0,pp.wS)(p))),children:(0,w.jsx)(f._H,{id:"Next",defaultMessage:"Next"})})]})]})}function Cp(e){let{options:t,onChange:n,label:r}=e;return(0,w.jsxs)(d.nv,{sx:{"& .MuiInputBase-root":{height:"auto"}},variant:"filled",fullWidth:!0,select:!0,SelectProps:{MenuProps:{slotProps:{paper:{sx:{maxHeight:"300px"}}},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}},value:null!==r&&void 0!==r?r:bp,onChange:e=>{e.target.value!==bp&&n(e.target.value)},children:[(0,w.jsx)(d.sN,{style:{display:"none"},value:bp,children:"Select a column"}),(0,w.jsx)(d.sN,{value:_p,children:(0,w.jsx)(d.xu,{padding:"4px",children:(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body1",children:"No mapping"})})}),t.map((e=>(0,w.jsx)(d.sN,{value:e.label,children:(0,w.jsxs)(d.xu,{padding:"4px",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body1",children:e.label}),e.exampleValues&&(0,w.jsx)(d.bd,{style:{display:"inline-block",width:"100%"},color:"secondary",variant:"body2",tooltipContent:"",children:e.exampleValues})]})},e.label)))]})}function Sp(e){let{totalRemainingIssues:t,totalInitialIssues:n}=e;return 0===n?(0,w.jsx)(Mp,{color:"success",children:(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"No issues",defaultMessage:"No issues"})})}):0===t?(0,w.jsx)(Mp,{color:"success",children:(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Resolved",defaultMessage:"Resolved"})})}):(0,w.jsx)(Mp,{color:"warning",children:(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"{totalRemainingIssues} {totalRemainingIssues, plural, one {issue} other {issues}}",defaultMessage:"{totalRemainingIssues} {totalRemainingIssues, plural, one {issue} other {issues}}",values:{totalRemainingIssues:t}})})})}const Mp=(0,d.zo)("div")`
  display: inline-flex;
  text-align: center;
  padding: 4px 8px;
  border-radius: 8px;
  background-color: ${e=>{let{color:t,theme:n}=e;return"success"===t?n.palette.semanticPalette.surface.success:n.palette.semanticPalette.surface.warning}};
  color: ${e=>{let{color:t,theme:n}=e;return"success"===t?n.palette.semanticPalette.text.success:n.palette.semanticPalette.text.warning}};
`;var Tp=n(28768);var Ep=n(88512);function Pp(e){let{totalRemainingIssues:t,initialIssues:n,attribute:i,setRemainingIssues:o,valueById:a,setValueById:s}=e;const l=(0,f.YB)(),c=(0,h.C)(S.DC),u=(0,r.useRef)(null),p=(0,To.Qe)(),m=(0,r.useMemo)((()=>i.type===br.Zi.ApplicationRateUnit?function(e,t,n){const r=(0,Tp.u9)(t,n),i=[];for(const o of e){if("string"!==typeof o)continue;const e=r[o];e&&i.push(e)}return i}(i.options,c===ol.Ug.MetricUnits,l.formatMessage):i.options),[i,l.formatMessage,c]);return(0,w.jsxs)(Op,{children:[(0,w.jsx)("div",{style:{position:"sticky",top:0,zIndex:ud.K.RandomOne},children:(0,w.jsx)(Ip,{children:i?(0,w.jsxs)(d.xu,{display:"flex",gap:"10px",alignItems:"center",children:[(0,w.jsx)(d.ZT,{style:{fontWeight:"bold"},children:p(i)}),(0,w.jsx)(Sp,{totalRemainingIssues:t,totalInitialIssues:n.length})]}):(0,w.jsx)(d.ZT,{style:{fontWeight:"bold"},children:(0,w.jsx)(f._H,{id:"Issues",defaultMessage:"Issues"})})})}),(0,w.jsx)("div",{style:{padding:"20px"},children:i?(0,w.jsx)(d.xu,{display:"grid",gridTemplateColumns:"minmax(100px, max-content) 1fr",gap:"12px",alignItems:"center",children:n.map((e=>{const t=`${e.attribute_id}-${e.value}`;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(d.bd,{tooltipContent:e.value,children:e.value}),(0,w.jsx)(Ep.am,{id:t,type:i.type,name:`${i.id}`,value:a.get(t),options:m,onChange:n=>{o((t=>t.filter((t=>t.attribute_id!==e.attribute_id||t.value!==e.value)))),s((e=>{const r=new Map(e);return r.set(t,n),r}))}})]},t)}))}):(0,w.jsx)(d.ZT,{ref:u,children:(0,w.jsx)(f._H,{id:"Select an attribute to fix issues.",defaultMessage:"Select an attribute to fix issues."})})})]})}const Ip=(0,d.zo)("div")`
  padding: 14px 16px;
  border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.palette.semanticPalette.stroke.secondary}};
  border-top-right-radius: 8px;
  background-color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.surface.main}};
`,Op=(0,d.zo)("div")`
  position: relative;
  display: flex;
  flex-direction: column;
  width: 50%;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 310px;
  background-color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.surface.secondary}};
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
`,Lp="";function Rp(e){let{onCancel:t,onNext:n,rows:i,requiredColumns:o}=e;const a=(0,f.YB)(),s=(0,d.Fg)(),{stageId:l,programId:c}=(0,gr.B)(),u=(0,h.C)((e=>(0,_.kq)(e,l))),[p,m]=(0,r.useState)([]),[g,y]=(0,r.useState)([]),[v,b]=(0,r.useState)(!1),[x,k]=(0,r.useState)(),[S,M]=(0,r.useState)(!1),T=(0,To.Qe)(),[E,P]=(0,r.useState)(new Map),I=(0,r.useCallback)((async(e,t)=>{try{M(!0);const n=[];for(const t of e)for(const[e,r]of Object.entries(t))o.includes(e)||r===Lp||n.push({attribute_id:Number(e),value:r});const r=(await Nr.eV.validateValues(c,(0,jn.R1)(n,"attribute_id","value"))).data.filter((e=>!e.is_valid)).sort(((e,t)=>e.value.localeCompare(t.value)));if(y(r),t){m(r),b(!0);const e=u.find((e=>r.some((t=>t.attribute_id===e.id))));k(e)}return 0===r.length}catch(n){return(0,C.e)(n),!1}finally{M(!1)}}),[c,o,u]);(0,r.useEffect)((()=>{v||async function(){await I(i,!0)}()}),[v,I,i]);const O=(0,r.useMemo)((()=>{var e;const t=new Set(Object.keys(null!==(e=i[0])&&void 0!==e?e:{}).map((e=>Number(e))).filter(Boolean)),n=[];for(const r of u)t.has(r.id)&&n.push({label:T(r),attributeId:r.id});return n}),[i,u]),L=(0,r.useMemo)((()=>g.filter((e=>e.attribute_id===(null===x||void 0===x?void 0:x.id))).length),[g,x]),R=(0,r.useMemo)((()=>p.filter((e=>e.attribute_id===(null===x||void 0===x?void 0:x.id)))),[p,x]),j=(0,r.useCallback)((async()=>{try{M(!0);const e=function(e,t,n){const r=[];for(const o of e){const e={};for(const n of t){var i;e[n]=null!==(i=o[n])&&void 0!==i?i:""}for(const[t,r]of Object.entries(o)){if(""===r)continue;const i=Number(t),o=n.get(`${i}-${r}`);i&&o?e[i]=o:e[t]=r}r.push(e)}return r}(i,o,E);await I(e)&&n(e)}catch(e){(0,C.e)(e)}finally{M(!1)}}),[i,o,E,I,n]);return(0,w.jsxs)(d.xu,{display:"flex",gap:"20px",flexDirection:"column",children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Select any system columns that are not ready to import and resolve data formatting or mapping issues to continue.",defaultMessage:"Select any system columns that are not ready to import and resolve data formatting or mapping issues to continue."})}),(0,w.jsxs)(d.Xk,{style:{display:"flex",borderRadius:"8px"},variant:"outlined",children:[(0,w.jsx)(d.xJ,{style:{maxHeight:"310px",width:p.length>0?"50%":void 0,borderRadius:"8px"},children:(0,w.jsxs)(d.iA,{stickyHeader:!0,children:[(0,w.jsx)(d.ss,{children:(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:(0,w.jsx)(f._H,{id:"System column",defaultMessage:"System column"})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(f._H,{id:"Status",defaultMessage:"Status"})})]})}),(0,w.jsx)(d.RM,{children:O.map(((e,t)=>{let{attributeId:n,label:r}=e;const i=p.filter((e=>e.attribute_id===n)).length,o=g.filter((e=>e.attribute_id===n)).length,l=t===O.length-1?"none":void 0,c=(null===x||void 0===x?void 0:x.id)===n?s.palette.semanticPalette.surface.secondary:void 0;return(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{style:{backgroundColor:c,borderBottom:l},children:(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body1",children:r})}),(0,w.jsx)(d.pj,{style:{paddingRight:"8px",backgroundColor:c,borderBottom:l},children:(0,w.jsxs)(d.xu,{display:"inline-flex",justifyContent:"space-between",width:"100%",gap:"8px",children:[(0,w.jsx)(Sp,{totalRemainingIssues:o,totalInitialIssues:i}),i>0&&(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",size:"small",onClick:()=>k(u.find((e=>e.id===n))),"aria-label":a.formatMessage({id:"view issues for {attributeLabel}",defaultMessage:"view issues for {attributeLabel}"},{attributeLabel:r}),children:(0,w.jsx)(d.JO,{type:"chevron-right"})})]})})]},n)}))})]})}),p.length>0&&x&&(0,w.jsx)(Pp,{attribute:x,totalRemainingIssues:L,initialIssues:R,setRemainingIssues:y,valueById:E,setValueById:P})]}),p.length>0&&g.length>0&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"warning",color:"warning",title:a.formatMessage({id:"{totalRemainingIssues} {totalRemainingIssues, plural, one {issue} other {issues}} left to map.",defaultMessage:"{totalRemainingIssues} {totalRemainingIssues, plural, one {issue} other {issues}} left to map."},{totalRemainingIssues:g.length}),mini:!0,children:(0,w.jsx)(f._H,{id:"Scroll down to complete all remaining data mapping.",defaultMessage:"Scroll down to complete all remaining data mapping."})}),v&&0===g.length&&(0,w.jsx)(nr.U8,{style:{margin:0},appearance:"success",color:"success",title:a.formatMessage({id:"Mapping completed.",defaultMessage:"Mapping completed."}),mini:!0,children:(0,w.jsx)(f._H,{id:"Ready for import.",defaultMessage:"Ready for import."})}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"end",gap:"8px",children:[(0,w.jsx)(d.zx,{onClick:t,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.u,{id:"import-btn-disabled-tooltip",title:g.length>0?a.formatMessage({id:"You must fix all issues before importing.",defaultMessage:"You must fix all issues before importing."}):void 0,children:(0,w.jsx)("div",{children:(0,w.jsx)(d.fl,{disabled:!v||g.length>0,loading:S,variant:"contained",onClick:j,children:(0,w.jsx)(f._H,{id:"Import",defaultMessage:"Import"})})})})]})]})}var jp=function(e){return e[e.ImportData=0]="ImportData",e[e.MapColumns=1]="MapColumns",e[e.MapData=2]="MapData",e[e.ConfirmImport=3]="ConfirmImport",e}(jp||{});const Dp=["field_id"],Ap=["field_name","farm_name"];function Np(e){let{existingFieldIds:t,setDialogVisibility:n}=e;const i=(0,f.YB)(),{stageId:o}=(0,gr.B)(),a=(0,d.Fg)(),{setUsingHackyCompositeInput:s}=(0,r.useContext)(Ld.z),l=(0,h.C)((e=>(0,_.M0)(e,o))),c=(0,To.bT)(l).toLocaleLowerCase(),u=[{label:i.formatMessage({id:"Import data",defaultMessage:"Import data"}),icon:(0,w.jsx)(d.le,{type:"upload",sx:{color:a.palette.common.white}})},{label:i.formatMessage({id:"Map columns",defaultMessage:"Map columns"}),icon:(0,w.jsx)(d.le,{type:"unfold-less",sx:{color:a.palette.common.white}})},{label:i.formatMessage({id:"Map data",defaultMessage:"Map data"}),icon:(0,w.jsx)(d.le,{type:"table",sx:{color:a.palette.common.white}})},{label:i.formatMessage({id:"Confirm import",defaultMessage:"Confirm import"}),icon:(0,w.jsx)(d.le,{type:"plus",sx:{color:a.palette.common.white}})}],[p,m]=(0,r.useState)(0),[g,y]=(0,r.useState)(new Set),[v,b]=(0,r.useState)([]),[x,k]=(0,r.useState)("");function C(){s(!0),n(!1)}function S(){m((e=>(y((t=>{const n=new Set(t);return n.add(e),n})),e===u.length-1?(C(),e):e+1)))}return(0,w.jsx)(d.o9,{title:i.formatMessage({id:"Import from .csv",defaultMessage:"Import from .csv"}),open:!0,onClose:C,disableBackdropClick:!0,disableEscapeKeyDown:!0,maxWidth:"md",children:(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.vF,{style:{marginBottom:"36px"},nonLinear:!0,activeStep:p,children:u.map(((e,t)=>(0,w.jsx)(d.h8,{completed:g.has(t),children:(0,w.jsx)(d.M_,{icon:(0,w.jsx)(zi.C,{color:p===t||g.has(t)?a.palette.success.dark:a.palette.text.disabled,children:g.has(t)?(0,w.jsx)(d.le,{type:"check-mark",sx:{color:a.palette.common.white}}):e.icon}),children:e.label})},e.label)))}),p===jp.ImportData&&(0,w.jsx)(gp,{stageName:c,thereAreCSVRows:v.length>0,setRows:b,fileName:x,setFileName:k,requiredColumns:Dp,ignoredColumns:Ap,existingFieldIds:t,onNext:S,onCancel:C}),p===jp.MapColumns&&(0,w.jsx)(kp,{stageId:o,stageName:c,rows:v,requiredColumns:Dp,onNext:e=>{b(e),S()},onCancel:C}),p===jp.MapData&&(0,w.jsx)(Rp,{rows:v,requiredColumns:Dp,onNext:e=>{b(e),S()},onCancel:C}),p===jp.ConfirmImport&&(0,w.jsx)(cp,{stageName:c,rows:v,onCancel:C})]})})}var Fp=n(35888);const zp=e=>{const t=(0,r.useMemo)((()=>e.reduce(((e,t)=>{const n=t.core_attributes.farm_name,r=e.findIndex((e=>e.farmName===n));if(r>=0){var i,o,a;const n={fieldName:null!==(i=t.core_attributes.field_name)&&void 0!==i?i:"",id:t.id};var s;if(null===(o=e[r])||void 0===o||o.fields.push(n),null===(a=e[r])||void 0===a||!a.farmIds.includes(t.farm_id))null===(s=e[r])||void 0===s||s.farmIds.push(t.farm_id);return e}const l={farmName:t.core_attributes.farm_name,farmIds:[t.farm_id],fields:[{fieldName:t.core_attributes.field_name,id:t.id}]};return e.push(l),e}),[])),[e]);return t},Bp=e=>{let{onChange:t,farmGroups:n,currentSelectedFarms:i}=e;const[o]=(0,r.useContext)(od),a=(0,f.YB)(),s=a.formatMessage({id:"bulkedit.selectPlaceholder",defaultMessage:"Select all fields by farm"}),l=a.formatMessage({id:"bulkedit.selectAllFarms",defaultMessage:"Select all farms"}),c=(0,r.useCallback)((e=>{if(0===o.length)return(0,w.jsx)(d.ZT,{color:"text.disabled",children:s});if(1===e.length)return(0,w.jsx)(d.ZT,{children:e[0]});if(e.length>1){const t="+"+(e.length-1);return(0,w.jsx)(d.ZT,{children:`${e[0]} ${t}`})}return(0,w.jsx)(d.ZT,{color:"text.disabled",children:s})}),[s,o.length]);return(0,w.jsx)(d.NI,{children:(0,w.jsxs)(d.Ph,{id:"bulk-edit-all-farms",variant:"outlined",onChange:t,displayEmpty:!0,value:i,renderValue:c,multiple:!0,children:[(0,w.jsx)(d.sN,{value:"all",children:l}),n.map((e=>(0,w.jsx)(d.sN,{value:e.farmName,children:e.farmName},e.farmName)))]})})},Up=e=>{let{fields:t}=e;const[n,i]=(0,r.useState)([]),{stageId:o,projectId:a}=(0,gr.B)(),{entityRowsByStageId:s,loadingStageValues:l}=Lo(a),[c,u]=(0,r.useContext)(od),p=zp(t),h=(0,r.useMemo)((()=>{var e;return null!==(e=null===s||void 0===s?void 0:s[o])&&void 0!==e?e:{}}),[s,o]),f=(0,r.useMemo)((()=>{const e={};for(const r of p){let i=0,o=0;for(const e of r.fields){var t,n;if(null!==h&&void 0!==h&&h[e.id])i+=null!==(t=null===h||void 0===h||null===(n=h[e.id])||void 0===n?void 0:n.length)&&void 0!==t?t:-1;o+=c.filter((t=>t.entityId===e.id)).length||0}e[r.farmName]={...r,totalRows:i,totalSelectedRows:o}}return e}),[h,p,c]),m=(0,r.useCallback)((e=>{const t=[];for(const i of e){var n,r;t.push(...null!==(n=null===(r=f[i])||void 0===r?void 0:r.fields.map((e=>e.id)))&&void 0!==n?n:[])}return t}),[f]),g=(0,r.useCallback)((e=>{const t=[];return e.forEach((e=>{var n;null===(n=h[e])||void 0===n||n.forEach((n=>t.push({entityId:e,rowId:n.row_id})))})),t}),[h]),y=(0,r.useCallback)((e=>{const t=[];for(const n of c)t.push(n.entityId);return[...new Set([...e,...t])]}),[c]),v=(0,r.useCallback)((e=>{const t=m(e),n=y(t);return g(n)}),[y,m,g]),b=(0,r.useCallback)((e=>{if(!h)return;const t=e.includes("all")?Object.keys(f):e,n=v(t);i(t),u(n)}),[h,f,v,u]),_=(0,r.useCallback)((e=>{let t=e;0===e.length&&(t=n),e.length>0&&e.length<n.length&&(t=n.filter((t=>!e.includes(t))));const r=m(t),o=c.filter((e=>!r.includes(e.entityId)));i(e),u(o)}),[m,c,u,n]),x=(0,r.useCallback)((e=>{let t=[];if(e.length>0&&e.length>n.length){const r=e.filter((e=>!n.includes(e)));t=[...n,...r]}const r=v(t);i(e),u(r)}),[n,v,u]),k=(0,r.useCallback)((()=>{const e=[];for(const t in f){const n=f[t];(null===n||void 0===n?void 0:n.totalRows)===(null===n||void 0===n?void 0:n.totalSelectedRows)&&e.push(t)}i(e)}),[f]),C=(0,r.useCallback)((e=>{const t=e.target.value;(c.length<=0||t.includes("all"))&&b(t),c.length>0&&n.length<t.length&&!t.includes("all")&&x(t),c.length>0&&n.length>t.length&&_(t)}),[c.length,n.length,b,x,_]);return(0,r.useEffect)((()=>{0===c.length?i([]):k()}),[k,c.length]),(0,w.jsx)(w.Fragment,{children:l?(0,w.jsx)(d.Od,{width:"188px",height:"36px",variant:"rounded"}):(0,w.jsx)(Bp,{onChange:C,farmGroups:p,currentSelectedFarms:n})})};var $p=n(47457);const Vp=e=>{let{practice:t,onUnlock:n,isDialogView:i}=e;const[o,a]=(0,r.useState)(!1),s=(0,f.YB)(),{stageId:l}=(0,gr.B)(),c=(0,h.C)((e=>(0,_.M0)(e,l))),u=s.formatMessage({id:"UnlockField.Report a Practice Change",defaultMessage:"Report a Practice Change"}),p=(0,w.jsx)(d.hU,{onClick:()=>{a(!0),null!==c&&void 0!==c&&c.type_&&tr.x.measurementUnlock(c.type_)},children:(0,w.jsx)(d.le,{type:"lock"})}),m=(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:3,children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"UnlockField.Thanks",defaultMessage:"Thank you for reporting changes to your <strong>{practice} practice</strong>.",values:{practice:t,strong:e=>(0,w.jsx)("strong",{children:e})}})}),(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"We will use this change to ensure your payment is as accurate as possible.",defaultMessage:"We will use this change to ensure your payment is as accurate as possible."})}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:3,children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:()=>a(!1),children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{onClick:()=>{a(!1),null===n||void 0===n||n()},children:(0,w.jsx)(f._H,{id:"BtnLabel.Continue",defaultMessage:"Continue"})})]})]});return i?(0,w.jsxs)(w.Fragment,{children:[p,o&&(0,w.jsxs)(qp,{className:"unlock-field-block",children:[(0,w.jsx)(d.ZT,{variant:"h4",fontWeight:400,children:u}),m]})]}):(0,w.jsxs)(w.Fragment,{children:[p,(0,w.jsx)(d.o9,{id:"unlock-practice-change",title:u,onClose:()=>a(!1),open:o,children:(0,w.jsx)(d.cZ,{children:m})})]})},qp=Z.ZP.div`
  margin-top: 10px;
  border: 1px solid #c2c2c2;
  border-radius: 3px;
  background-color: #f7f7f7;
  padding: 15px;

  > h2 {
    font-size: 1rem;
  }
`;let Zp=function(e){return e.TABLE="table",e.BULK_EDIT="bulk-edit",e.CREATE_NM_TEMPLATE="create-nm-template",e}({});const Hp=e=>{const{stageId:t,programId:n,isMonitoring:i}=(0,gr.B)(),o=(0,h.C)((e=>(0,_.M0)(e,t)));(0,r.useEffect)((()=>{if(null!==o&&void 0!==o&&o.type_)switch(e){case Zp.TABLE:tr.x.measurementTableOpen(o.type_),tr.Z.trackMRVPageView({Page:o.name||String(o.custom_name||o.type_),Phase:i?"Monitoring":"Enrollment"});break;case Zp.BULK_EDIT:tr.x.measurementBulkEdit(o.type_);break;case Zp.CREATE_NM_TEMPLATE:tr.x.measurementNmTemplate(o.type_)}}),[o,e,n,i])},Gp=e=>{let{stage:t,defaultValues:n,cascadingDates:i={},attributes:o,selectedFields:a,selectedYears:s=[],onHide:l,onSubmit:c,setCascadingDates:u,loading:p}=e;Hp(Zp.BULK_EDIT);const m=(0,f.YB)(),g=(0,d.Fg)(),y=(0,h.C)(S.DC)===ol.Ug.MetricUnits,[v,b]=(0,r.useState)(new Set),_=(0,To.Qe)(),x=(0,Cn.cI)({defaultValues:n}),{handleSubmit:k,watch:C,setValue:M,formState:{dirtyFields:T,isDirty:E}}=x,P=C(),I=(0,r.useCallback)(((e,t)=>{var r,i,o,a,s,l,c,u,d,p,h,f,m,g,y;return{...e,disabledRowsNumber:null!==(r=null!==(i=null===e||void 0===e?void 0:e.disabledRowsNumber)&&void 0!==i?i:null===(o=n[t])||void 0===o?void 0:o.disabledRowsNumber)&&void 0!==r?r:0,lockedRowsNumber:null!==(a=null!==(s=null===e||void 0===e?void 0:e.lockedRowsNumber)&&void 0!==s?s:null===(l=n[t])||void 0===l?void 0:l.lockedRowsNumber)&&void 0!==a?a:0,totalRowsNumber:null!==(c=null!==(u=null===e||void 0===e?void 0:e.totalRowsNumber)&&void 0!==u?u:null===(d=n[t])||void 0===d?void 0:d.totalRowsNumber)&&void 0!==c?c:0,value:null!==(p=null===e||void 0===e?void 0:e.value)&&void 0!==p?p:null===(h=n[t])||void 0===h?void 0:h.value,isMultipleValuesSelected:!!(null!==(f=null===e||void 0===e?void 0:e.isMultipleValuesSelected)&&void 0!==f?f:null===(m=n[t])||void 0===m?void 0:m.isMultipleValuesSelected),isLocked:!!(null!==(g=null===e||void 0===e?void 0:e.isLocked)&&void 0!==g?g:null===(y=n[t])||void 0===y?void 0:y.isLocked)}}),[n]),O=e=>{if(!E)return;const t=Object.keys(T).reduce(((t,n)=>{var r;const i=Number(n);return t[i]=I(null!==(r=e[i])&&void 0!==r?r:{},i),t}),{});c(t)},L=(()=>{const e=o.filter((e=>T[e.id]));if(!e.length)return"";const t=e.map((e=>m.formatMessage({id:`MRVAttributeType.${e.type}`,defaultMessage:e.name}))).join(", "),r=Math.max(...e.map((e=>{var t;const r=I(null!==(t=n[e.id])&&void 0!==t?t:{},e.id);return r.totalRowsNumber-r.disabledRowsNumber})));return(0,w.jsxs)(w.Fragment,{children:[m.formatMessage({id:"EditField.UpdateFieldsMessage",defaultMessage:"{dirtyLabels} will be updated for {selectedFields} row(s)"},{dirtyLabels:t,selectedFields:r}),"."]})})();return(0,w.jsx)(d.o9,{id:"bulk-edit-dialog","aria-label":"Bulk edit dialog",title:"",onClose:l,open:!0,children:(0,w.jsxs)("form",{onSubmit:k(O),children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Cd.k,{alignItems:"center",nowrap:!0,justifyContent:"space-between",children:(0,w.jsxs)(Cd.k,{alignItems:"center",gap:"15px",children:[(0,w.jsx)(zi.C,{className:"crop-icon",color:g.palette.semanticPalette.text.success,children:!!t.type_&&Xo.nw[t.type_]}),(0,w.jsx)(d.ZT,{variant:"h3",children:(0,To.bT)(t)})]})}),(0,w.jsx)(d.xu,{mt:2,mb:2,children:(0,w.jsx)(d.ZT,{color:"secondary",variant:"body2",children:m.formatMessage({id:"SelectedRowsNumber",defaultMessage:"{numberRows} row(s) selected"},{numberRows:a.length})})}),(0,w.jsx)(Cd.k,{gap:"4px",children:null===s||void 0===s?void 0:s.map(((e,t)=>(0,w.jsx)(d.Af,{label:e},`${e}-${t}`)))})]}),o.filter((e=>e.type!==br.Zi.RecordYear)).map(((e,t)=>{var r,a,s;const{name:l,type:c,options:p,locked:h,enabled:g,default_value:x}=e,k=_(e),C=`bulk-edit-${e.id}`,S=null!==(r=P[e.id])&&void 0!==r?r:n[e.id],T=String(e.id),E=h||(null===S||void 0===S?void 0:S.isLocked),O=!v.has(e.id),L=(null===S||void 0===S?void 0:S.disabledRowsNumber)===(null===S||void 0===S?void 0:S.totalRowsNumber);let R=p;if(c===br.Zi.ApplicationRateUnit){var j;const e=o.find((e=>e.type===br.Zi.ApplicationProduct)),t=e&&(null===(j=P[e.id])||void 0===j?void 0:j.value),n=e?(0,Tp.mG)(t,e):null;R=(0,Tp.Ho)(n,p||[],y,m.formatMessage)}return g&&!L?(0,w.jsxs)(Cd.k,{alignItems:"flex-end",justifyContent:"space-between",children:[(0,w.jsxs)("div",{style:{width:E?"85%":"100%"},children:[(0,w.jsx)(Ep.am,{id:C,disabled:E,defaultValue:null!==S&&void 0!==S&&S.isMultipleValuesSelected?null:x,type:c,name:T,value:null!==S&&void 0!==S&&S.isMultipleValuesSelected?null:null===S||void 0===S?void 0:S.value,label:E&&(null!==(a=null===S||void 0===S?void 0:S.lockedRowsNumber)&&void 0!==a?a:0)>1?`${k} (Locked ${null===S||void 0===S?void 0:S.lockedRowsNumber} of ${null===S||void 0===S?void 0:S.totalRowsNumber} row(s))`:k,placeholder:null!==S&&void 0!==S&&S.isMultipleValuesSelected?m.formatMessage({id:"Multiple Values Selected",defaultMessage:"Multiple Values Selected"}):k,options:R,onChange:t=>{if((null===S||void 0===S||!S.isMultipleValuesSelected)&&(null===S||void 0===S?void 0:S.value)===t)return;O&&(0,ki.Gc)(c)&&t&&(null===u||void 0===u||u(c,t));const n=I({...S,value:t,isLocked:!1,isMultipleValuesSelected:!1},e.id);M(T,n,{shouldDirty:!0})}},C),(0,ki.Gc)(c)&&(0,w.jsxs)(d.xu,{style:{marginTop:"-8px",marginBottom:"20px"},children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:4,children:[(0,w.jsx)(On.cv,{id:`${c}-cascading-${t}`,name:`${c}-cascading-${t}`,type:"switch",onChange:()=>b((t=>{const n=new Set(t);return n.has(e.id)?(n.delete(e.id),null===u||void 0===u||u(c,null===S||void 0===S?void 0:S.value)):(n.add(e.id),null===u||void 0===u||u(c,null)),n})),checked:O,label:(0,w.jsx)(w.Fragment,{children:O?(0,w.jsx)(f._H,{id:"yearly increments",defaultMessage:"yearly increments"}):(0,w.jsx)(f._H,{id:"same date every year",defaultMessage:"same date every year"})})}),(0,w.jsx)(d.u,{id:`${c}-cascading-${t}-tooltip`,title:O?m.formatMessage({id:"Dates will be updated retrospectively in line with the record year.",defaultMessage:"Dates will be updated retrospectively in line with the record year."}):m.formatMessage({id:"Dates will be updated with the same value.",defaultMessage:"Dates will be updated with the same value."}),placement:"right",children:(0,w.jsx)("div",{style:{display:"flex"},children:(0,w.jsx)(On.xu,{children:"help_outline"})})})]}),O&&!(null===S||void 0===S||!S.value)&&!!i[c]&&(0,jn.R1)(null!==(s=i[c])&&void 0!==s?s:[],"recordYear","date").map(((e,t)=>{let{date:n,recordYear:r}=e;return(0,w.jsxs)("div",{children:[(0,w.jsxs)(Rn.x,{bold:!0,inline:!0,children:[r,":\xa0"]}),(0,w.jsx)(Rn.x,{inline:!0,noMargin:!0,children:(0,vl.Z)(new Date(String(n)),"d MMM YYY")})]},`${r}-${n}-${t}`)}))]})]}),E&&(0,w.jsx)(Vp,{practice:l,isDialogView:!0,onUnlock:()=>{const t=I({...S,...P[e.id],isLocked:!1},e.id);M(T,t,{shouldDirty:!0})}})]},e.id):null})),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:2,children:[L&&(0,w.jsx)(d.bZ,{severity:"info",children:L}),(0,w.jsx)(d.bZ,{severity:"info",children:(0,w.jsx)(f._H,{id:"BulkEditDialog.ValuesOnlyBeUpdatedIfValid",defaultMessage:"Values will only be updated if they are valid and available for the cell."})})]})]}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:l,variant:"outlined",color:"secondary",children:m.formatMessage({id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.fl,{onClick:k(O),loading:p,children:m.formatMessage({id:"BtnLabel.ConfirmChanges",defaultMessage:"Confirm changes"})})]})]})})},Wp=e=>{let{phaseType:t,setDialogVisibility:n}=e;const{entityValueRows:i,revalidateEntityValueRows:o,setUsingHackyCompositeInput:a}=(0,r.useContext)(Ld.z),s=(0,h.T)(),{stageId:l,projectId:c}=(0,gr.B)(),u=(0,h.C)((e=>(0,_.M0)(e,l))),d=(0,h.C)((e=>(0,_.kq)(e,l))),p=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),[f]=(0,r.useContext)(od),[m,g]=(0,r.useState)({}),[y,v]=(0,r.useState)(!1),{selectedYears:b,recordYearsByAttributeType:x}=(0,r.useMemo)((()=>{const e=new Set,t={},n=d.filter((e=>(0,ki.Gc)(e.type)));for(const o of f){const a=i[o.entityId];for(const i of null!==a&&void 0!==a?a:[])if(i.row_id===o.rowId&&i.year){e.add(i.year);for(const e of n){var r;if(t[e.type])null===(r=t[e.type])||void 0===r||r.push(i.year);else t[e.type]=[i.year]}}}return{selectedYears:e,recordYearsByAttributeType:t}}),[d,i,f]);if(!u)return null;const k=d.reduce(((e,t)=>{const n=new Set;let r=0,o=0,a=0;f.forEach((e=>{var s,l;const c=null===(s=i[e.entityId])||void 0===s?void 0:s.find((t=>t.row_id===e.rowId));if(!c)return;const u=(0,$p.x$)(null===t||void 0===t?void 0:t.dependencies,c.values);var d;u||n.add(null===(d=c.values[t.id])||void 0===d?void 0:d.value);u&&(a+=1),null!==(l=c.values[t.id])&&void 0!==l&&l.locked&&(o+=1),r+=1}));const s=[...n].filter(er.$K)[0];return{...e,[t.id]:{value:s||"",isLocked:o>0,isMultipleValuesSelected:n.size>1,disabledRowsNumber:a,lockedRowsNumber:o,totalRowsNumber:r}}}),{});return(0,w.jsx)(Gp,{cascadingDates:m,setCascadingDates:(e,t)=>{const n=x[e];if(null===n||void 0===n||!n.length)return;if(null===t)return void g({...m,[e]:[]});const r=Math.max(...n),i=n.sort(((e,t)=>t-e)).map((e=>{const n=new Date(t),i=Number(r)-n.getFullYear();return n.setFullYear(Number(e)-i),{date:n,recordYear:`${e}`}}));g({...m,[e]:i})},selectedFields:f,defaultValues:k,stage:u,selectedYears:[...b],attributes:d,onHide:()=>{n(!1),a(!0)},onSubmit:async e=>{v(!0);const r=u.entity_type,l=(0,ii.pJ)(e).map((e=>{let[n,i]=e;return{confirmed:!0,locked:i.isLocked,entity_type:r,attribute_id:parseInt(n,10),progress:br.KS[t],value:i.value}})),h=f.reduce(((t,n)=>{var r,o;t[n.entityId]||(t[n.entityId]=[]);const a=null===(r=i[n.entityId])||void 0===r?void 0:r.find((e=>e.row_id===n.rowId)),s=(null===a||void 0===a?void 0:a.values)||{},c={...e,...s},u=l.map((e=>{const t=d.find((t=>t.id===e.attribute_id));if(t&&(0,$p.x$)(t.dependencies,c)||!t)return null;if((0,ki.Gc)(t.type)&&m[t.type]){var r;const n=Object.values(s).find((e=>e.attribute_type===br.Zi.RecordYear)),i=null===(r=m[t.type])||void 0===r?void 0:r.find((e=>e.recordYear===(null===n||void 0===n?void 0:n.value)));i&&(e.value=i.date)}return{...e,row_id:n.rowId,attribute_type:t.type}})).filter(er.$K);return t[n.entityId]=[...null!==(o=t[n.entityId])&&void 0!==o?o:[],...u],t}),{});await s((0,Fr.rc)({projectId:c,update:h,entityType:r,enableCompletionValidation:p})),await o(),v(!1),n(!1),a(!0)},loading:y})},Yp=e=>{let{phaseType:t,activeEntity:n,fields:i,bulkEditDialogVisible:o,setBulkEditDialogVisible:a}=e;const{projectId:s,stageId:l}=(0,gr.B)(),c=(0,h.C)((e=>(0,_.M0)(e,l))),u=(0,h.C)((e=>(0,_.d1)(e,t))),[p,m]=(0,r.useState)(null),[g,y]=(0,r.useState)(!1),[v,x]=(0,r.useState)(!1),k=(0,h.C)((e=>(0,_.Yn)(e,s))),C=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA),S=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA_PER_SINGLE_PROJECT),M=(0,xr.nh)(xr.hn.DUPLICATE_FIELD_DATA_ACROSS_GROUPS),[T,E,P]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS,br.aR.OVERWRITE_SINGLE_PROJECT_FIELD_VALUES,br.aR.OVERWRITE_MULTIPLE_PROJECTS_FIELD_VALUES]),{isReadOnly:I}=wr(t),O=I||!T,L=(e=>{let{phaseType:t,setDialogVisibility:n}=e;const{setUsingHackyCompositeInput:i}=(0,r.useContext)(Ld.z),[o]=(0,r.useContext)(od),a=(0,h.C)(_.dL).isSync,{isReadOnly:s}=wr(t),{stageId:l}=(0,gr.B)(),c=(0,h.C)((e=>(0,_.M0)(e,l))),[u]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),d=a||s||!u,p=(0,f.YB)(),m=!o.length||d;return{onClick:(0,r.useCallback)((()=>{n(!0),i(!1),tr.Z.track("MRV Bulk edit rows",{Stage:null===c||void 0===c?void 0:c.type_})}),[n,i,null===c||void 0===c?void 0:c.type_]),title:p.formatMessage({id:"BtnLabel.BulkEditRows",defaultMessage:"Bulk edit rows"}),content:p.formatMessage({id:"BulkTool.BulkEditItemDescription",defaultMessage:"Apply the same values to multiple rows in your tables. Select rows using the checkbox on the left side of the row"}),disabled:m}})({phaseType:t,setDialogVisibility:a}),R=(e=>{let{setDialogVisibility:t,phaseType:n}=e;const r=(0,f.YB)(),{isReadOnly:i}=wr(n);return{onClick:()=>t(!0),title:r.formatMessage({id:"Duplicate field data",defaultMessage:"Duplicate field data"}),content:r.formatMessage({id:"Duplicate events from one field to another.",defaultMessage:"Duplicate events from one field to another."}),disabled:i}})({setDialogVisibility:y,phaseType:t}),j=function(e){let{setDialogVisibility:t}=e;const{stageId:n}=(0,gr.B)(),{setUsingHackyCompositeInput:i}=(0,r.useContext)(Ld.z),o=(0,f.YB)(),a=(0,h.C)((e=>(0,_.M0)(e,n)));return{onClick:function(){tr.Z.track("MRV Import CSV button clicked",{Stage:null===a||void 0===a?void 0:a.type_}),i(!1),t(!0)},title:o.formatMessage({id:"BulkTool.importFromCSV",defaultMessage:"Import from CSV"}),content:o.formatMessage({id:"BulkTool.importFromCSVItemDescription",defaultMessage:"Import events that you\u2019ve created externally into this MRV program as a .csv file."})}}({setDialogVisibility:x}),D=function(e){let{phaseType:t}=e;const n=(0,f.YB)(),r=(0,h.T)(),{projectId:i}=(0,gr.B)(),o=(0,h.C)(Si.vJ),a=(0,h.C)((e=>(0,_.Ok)(e,i))),s=(0,h.C)((e=>(0,_.d1)(e,t))),l=(0,ki.$s)(null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date),{isSync:c,syncingPlatformName:u}=(0,h.C)(_.dL);return{onClick:()=>{var e;c?(0,Yn.c)({autoClose:!1,title:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:"10px",children:[(0,w.jsx)(d.le,{type:"upload",color:"inherit",fontSize:"h4"}),n.formatMessage({id:"Fms.Sync.Import in progress",defaultMessage:"Import in progress"})]}),message:(0,ki.Ai)(u),type:"info"}):void 0!==a&&null!==(e=o[a])&&void 0!==e&&e.authorized?r((0,b.qO)(b.iR.fmsSyncDialog,!0,{phaseId:null===s||void 0===s?void 0:s.id})):(r((0,b.qO)(b.iR.fmsSyncLoginToPlatformDialog,!0)),void 0!==a&&r((0,Ci.UZ)(a)))},title:n.formatMessage({id:"BulkTool.importFromFMS",defaultMessage:"Import from FMS"}),content:n.formatMessage({id:"BulkTool.importFromFMSDescription",defaultMessage:" Import events from your farm management systems into this MRV program."}),disabled:c||!l}}({phaseType:t}),A=(0,Fp.iN)(n),N=(S||C||M)&&(E||P)&&A,F=(0,r.useMemo)((()=>i.map((e=>e.id))),[i]),z=(0,h.C)((e=>((e,t)=>{var n;return null===(n=e.helpers.asyncStatuses[t])||void 0===n?void 0:n.status})(e,b.jB.authorizedPlatforms)))===b.qb.Done,B=(0,h.C)((e=>(0,_.Ok)(e,s))),U=(0,xr.nh)(xr.hn.FMS_ENABLED_PROGRAM),$=!s||!(null!==u&&void 0!==u&&u.id)||!k.length||!z||B!==Ti.F.JohnDeere||!U,V=()=>{m(null)};return(0,w.jsxs)(w.Fragment,{children:[(null===c||void 0===c?void 0:c.entity_type)!==$s.v1.Field||O?null:(0,w.jsx)(Up,{fields:i}),(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:e=>{m(e.currentTarget)},endIcon:(0,w.jsx)(d.le,{type:"chevron-down"}),children:(0,w.jsx)(f._H,{id:"Bulk editing options",defaultMessage:"Bulk editing options"})}),(0,w.jsxs)(d.v2,{anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorEl:p,onClose:V,open:(0,er.$K)(p),children:[(0,w.jsx)(Rd,{children:(0,w.jsx)(Kp,{disabled:L.disabled,onClick:L.onClick,title:L.title,content:L.content,handleClose:V},"bulk-edit")}),(0,w.jsx)(Xp,{component:"li"}),N&&(0,w.jsx)(Kp,{disabled:R.disabled,onClick:R.onClick,title:R.title,content:R.content,handleClose:V},"duplicate-field-values"),N&&(0,w.jsx)(Xp,{component:"li"}),(null===c||void 0===c?void 0:c.csv_import_enabled)&&(0,w.jsx)(Kp,{disabled:j.disabled,onClick:j.onClick,title:j.title,content:j.content,handleClose:V},"import-csv"),!$&&(0,w.jsx)(Kp,{disabled:D.disabled,onClick:D.onClick,title:D.title,content:D.content,handleClose:V},"fms-sync")]}),o&&(0,w.jsx)(Wp,{setDialogVisibility:a,phaseType:t}),g&&N&&(0,w.jsx)(zd,{phaseType:t,currentField:n,setDialogVisibility:y,children:(0,w.jsx)(lp,{phaseType:t})}),v&&(0,w.jsx)(Np,{setDialogVisibility:x,existingFieldIds:F})]})},Kp=e=>{let{disabled:t,onClick:n,title:r,content:i,handleClose:o}=e;const a=(0,d.Fg)();return(0,w.jsx)(d.sN,{disabled:t,onClick:()=>{"function"===typeof n&&n(),o()},children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",whiteSpace:"normal",gap:1,width:a.fixedWidths.xs,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:r}),(0,w.jsx)(d.ZT,{variant:"body2",color:"textSecondary",children:i})]})})},Xp=(0,d.zo)(d.iz)`
  && {
    margin-top: 0;
    margin-bottom: 0;
  }
`,Jp=e=>{let{mob:t,onChange:n}=e;const[i,o]=(0,r.useState)(t.name),a=(0,Z.Fg)();return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3,children:[t.isEditing?(0,w.jsx)(d.nv,{value:i,onChange:e=>o(e.target.value)}):(0,w.jsx)(d.ZT,{children:i}),(0,w.jsxs)(ni.k,{alignItems:"center",children:[t.isEditing?(0,w.jsx)(d.hU,{onClick:()=>{n({...t,name:i,isEditing:!1})},children:(0,w.jsx)(gd.nQ,{circleColor:"transparent",checkMarkColor:a.colorPalette.fs_main.green_400})}):(0,w.jsx)(d.hU,{onClick:()=>{n({...t,isEditing:!0})},children:(0,w.jsx)(d.le,{type:"pencil"})}),(0,w.jsx)(d.hU,{onClick:()=>{n(null)},children:(0,w.jsx)(d.le,{type:"delete"})})]})]})};function Qp(e){let{onHide:t}=e;const n=(0,h.C)(_.aH),{mobs:i,loading:o,updateMobs:a}=ed(n,"mob"),{revalidate:s}=Lo(n),l=(0,f.YB)(),[c,u]=(0,r.useState)(i.map((e=>({name:e.mob_name,id:e.id,isEditing:!1})))),[p,m]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!p){const e=document.getElementById("add-mob-input");e&&(e.value="")}}),[p]);return(0,w.jsx)(d.o9,{id:"monitoring-mob-edit-fields-dialog",title:l.formatMessage({id:"EditMobsDialog.Title",defaultMessage:"Add or edit mobs"}),description:l.formatMessage({id:"EditMobsDialog.Description",defaultMessage:"You can add mobs one at a time or you can add all of your mobs before returning to the table to input data."}),onClose:t,open:!0,children:(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(ni.k,{direction:"column",nowrap:!0,justifyContent:"space-between",children:[(0,w.jsx)(d.nv,{id:"add-mob-input",value:p,label:l.formatMessage({id:"Add a new mob: mob name",defaultMessage:"Add a new mob: mob name"}),fullWidth:!0,onChange:e=>m(e.target.value)}),(0,w.jsx)(ni.k,{className:"mt-3",justifyContent:"flex-end",children:(0,w.jsx)(d.zx,{onClick:()=>{p&&p.trim()&&(u([...c,{name:p.trim(),id:1/0,isEditing:!1}]),m(""))},variant:"outlined",color:"secondary",children:l.formatMessage({id:"+ Add mob",defaultMessage:"+ Add mob"})})}),c.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.xu,{mt:3,mb:3,children:(0,w.jsx)(d.iz,{})}),(0,w.jsx)(d.ZT,{variant:"h3",fontWeight:500,children:l.formatMessage({id:"Existing mobs",defaultMessage:"Existing mobs"})}),c.map(((e,t)=>(0,w.jsx)(Jp,{mob:e,onChange:e=>((e,t)=>{const n=[...c];e?n[t]=e:n.splice(t,1),u(n)})(e,t)},`${t}-${e.name}`))),(0,w.jsx)(ni.k,{justifyContent:"flex-end",className:"mt-2",children:(0,w.jsx)(d.zx,{onClick:async()=>{const e={};i.forEach((t=>e[t.id]=t.mob_name));const n=c.filter((e=>e.id===1/0)).map((e=>e.name)),r=c.filter((t=>t.id!==1/0&&e[t.id]!==t.name)).map((e=>({id:e.id,name:e.name})));c.forEach((t=>delete e[t.id]));const o=Object.keys(e).map((e=>parseInt(e,10)));await a({creates:n,updates:r,deletes:o}),t(),await s()},disabled:o||c.some((e=>e.isEditing)),children:l.formatMessage({id:"Done",defaultMessage:"Done"})})})]}):null]})})})}function eh(){const[e,t]=(0,r.useState)(!1),{stageId:n}=(0,gr.B)(),i=(0,h.C)((e=>(0,_.M0)(e,n))),o=(0,f.YB)();return i?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:2,children:[(0,w.jsx)(d.zx,{onClick:()=>t(!0),variant:"outlined",color:"secondary",children:o.formatMessage({id:"BtnLabel.EditMobs",defaultMessage:"Add / Edit Mobs"})}),(0,w.jsx)(d.u,{id:"monit-mob-edit-fields",placement:"top",title:o.formatMessage({id:"EditMobMessage",defaultMessage:"Click this button to add or remove mobs."}),children:(0,w.jsx)("div",{children:(0,w.jsx)(d.le,{fontSize:"h5",type:"question-circled"})})})]}),e&&(0,w.jsx)(Qp,{onHide:()=>t(!1)})]}):null}const th=e=>{let{title:t,subtitle:n,severity:r,setVisible:i}=e;return(0,w.jsx)(d.bZ,{severity:r,sx:{alignSelf:"flex-end"},onClose:()=>i(!1),children:(0,w.jsxs)(d.xu,{display:"flex",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",children:t}),n&&(0,w.jsxs)(d.ZT,{component:"span",children:["\xa0",n]})]})})},nh=()=>{const{isSync:e,syncingPlatformName:t,checkRequestStatus:n}=(0,h.C)(_.dL),i=(0,Xn.D)({syncing:e}),o=n(Ri.e.Success),a=n(Ri.e.Error),s=n(Ri.e.Timeout),l=n(Ri.e.PartialSuccess),[c,u]=r.useState(!1);(0,r.useEffect)((()=>{null!==i&&void 0!==i&&i.syncing&&!e&&(o||a||s||l)&&u(!0)}),[a,o,null===i||void 0===i?void 0:i.syncing,l,s,e]);const p=(0,f.YB)();if(c){if(a)return(0,w.jsx)(th,{title:p.formatMessage({id:"Fms.Sync.Import failed",defaultMessage:"There was an error importing data."}),subtitle:p.formatMessage({id:"Fms.Sync.ImportFailedMessage",defaultMessage:"Try again or reach out to support for assistance."}),severity:"error",setVisible:u});if(s)return(0,w.jsx)(th,{title:p.formatMessage({id:"Fms.Sync.ImportFailed.Timeout",defaultMessage:"Import failed due to a timeout."}),subtitle:p.formatMessage({id:"Fms.Sync.ImportFailed.Timeout.Message",defaultMessage:"Try importing fewer fields or reach out to support for assistance."}),severity:"error",setVisible:u});if(l)return(0,w.jsx)(th,{title:p.formatMessage({id:"Fms.Sync.ImportPartialSuccess",defaultMessage:"Some of your data was successfully imported."}),subtitle:p.formatMessage({id:"Fms.Sync.ImportPartialSuccess.Message",defaultMessage:"Some of your fields could not be imported. Please reach out to support for assistance."}),severity:"warning",setVisible:u});if(o)return(0,w.jsx)(th,{title:p.formatMessage({id:"Fms.Sync.ImportSuccess",defaultMessage:"Your data was successfully imported!"}),severity:"success",setVisible:u})}return e?(0,w.jsx)(d.bZ,{severity:"info",sx:{alignSelf:"flex-end"},icon:(0,w.jsx)(d.le,{type:"refresh"}),children:(0,w.jsxs)(d.xu,{children:[(0,w.jsxs)(d.ZT,{fontWeight:"bold",component:"span",children:[p.formatMessage({id:"Fms.Sync.ImportProgress",defaultMessage:"Import from FMS is in progress."}),"\xa0"]}),(0,ki.Ai)(t)]})}):null};var rh=n(59556);function ih(){const e=(0,h.C)(S.Im);return(0,r.useMemo)((()=>{if(e)return(0,w.jsx)(f._H,{id:"signContractIsDisabledTooltip.userIsImpersonated",defaultMessage:"You can not sign a contract on behalf of the producer, please ask them to log in to their account with their credentials."})}),[e])}function oh(e){let{projectId:t,phaseId:n,isReadOnly:i}=e;const o=(0,h.T)(),[a,s]=(0,r.useState)(!1),l=(0,h.C)((e=>{var t;return null===(t=(0,_.iZ)(e,n))||void 0===t?void 0:t.contract_type})),c=(0,h.C)(vr.jU),u=(0,h.C)(S.Im),p=(0,ki.bB)(),{formatMessage:m}=(0,f.YB)(),g=ih();const y=!i&&!c&&!u;return(0,w.jsx)(Sd,{illustration:(0,w.jsx)("img",{src:"/assets/mrv/signing-document-illustration.svg",alt:"signing a document"}),children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,children:[c&&(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,w.jsx)(pd,{icon:(0,w.jsx)(d.le,{type:"check-mark",sx:{width:30,height:30}}),outlined:!0,active:!0,percentCompleted:100,hideProgressLabel:!0,id:"producer-agreement-signed"}),(0,w.jsx)(d.ZT,{variant:"h3",children:m({id:"Producer Agreement Signed!",defaultMessage:"Producer Agreement Signed!"})})]}),i||c?(0,w.jsx)(d.fl,{loading:a,disabled:!c,onClick:c?()=>(0,rh.y)(t):void 0,children:m({id:"View Producer Agreement",defaultMessage:"View Producer Agreement"})}):(0,w.jsx)(d.u,{title:g,placement:"top",children:(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.fl,{loading:a,disabled:!y,onClick:y?async function(){try{s(!0),l===br.WN.Docusign&&await Nr.eV.getDNDCResults(t,n);const e=await o((0,Fr.nj)({projectId:t,phaseId:n,redirect_url:`${location.origin}${(0,xo.F_)(Wo._j,{projectId:t})}`}));"fulfilled"===e.meta.requestStatus&&(window.open(e.payload,"_self"),tr.Z.track("Generate contract")),p()}catch(e){(0,C.e)(e)}finally{s(!1)}}:void 0,children:m({id:"Sign Producer Agreement",defaultMessage:"Sign Producer Agreement"})})})})]})})}const ah=(e,t)=>{var n,i;const o=(0,h.C)(_.no);return{isFieldComplete:(0,r.useMemo)((()=>{const n=o[t];if(n&&n.entity_attribute_completion&&null!==n.entity_attribute_completion){const t=null===n||void 0===n?void 0:n.entity_attribute_completion[e];if(t){const{completed:e,total:n}=t;return e===n}}return!1}),[e,o,t]),hasErrors:!(null===o||void 0===o||null===(n=o[t])||void 0===n||null===(i=n.validation_errors)||void 0===i||!i[e])}},sh=e=>{let{field:t,activeEntityId:n,handleFieldNavigationClick:i}=e;const o=(0,r.useRef)(null),a=(0,d.Fg)(),{stageId:s}=(0,gr.B)(),[l,c]=(0,r.useState)(!1),[u]=(0,r.useContext)(od),p=n===t.id,h=u.some((e=>e.entityId===t.id));(0,r.useEffect)((()=>{o.current&&p&&o.current.scrollIntoView({behavior:"smooth",block:"nearest"})}),[p]),(0,r.useEffect)((()=>{const e=new IntersectionObserver((e=>{let[t]=e;null!==t&&void 0!==t&&t.isIntersecting||c(!1)}),{root:document.querySelector("#field-sidebar-wrapper"),rootMargin:"0px",threshold:1});return o.current&&e.observe(o.current),()=>{e.disconnect()}}),[]);const{isFieldComplete:f,hasErrors:m}=ah(t.id,s);return(0,w.jsxs)(d.zx,{ref:o,variant:p?"contained":"text",color:"secondary",fullWidth:!0,sx:{backgroundColor:p?a.palette.semanticPalette.stroke.main:"transparent",fontSize:a.typography.fontSize,justifyContent:"space-between","&.MuiButtonBase-root":{p:2},textAlign:"left",...h&&{borderRadius:0,borderLeft:2,borderLeftColor:a.palette.primary.main}},onClick:()=>i(t.id),children:[(0,w.jsx)(d.bd,{clampLines:1,fontWeight:p?a.typography.fontWeightBold:a.typography.fontWeightRegular,TooltipProps:{onOpen:()=>c(!0),open:l,onClose:()=>c(!1)},children:t.fieldName}),f&&!m?(0,w.jsx)(d.le,{color:"primary",type:"check-mark",fontSize:"body1"}):null,f&&m&&(0,w.jsx)(d.le,{color:"error",type:"cross-circled",fontSize:"body1"})]},t.id)},lh=r.memo(sh),ch=e=>{let{farm:t,farmIds:n,handleFieldNavigationClick:i,activeEntity:o}=e;const[a,s]=(0,r.useState)(!0),l=(0,d.Fg)(),c=t.farmName.split(" ").join("").toLowerCase();return(0,w.jsx)(d.xu,{width:"100%",mb:2,children:(0,w.jsxs)(d.UQ,{size:"small",expanded:a,onChange:()=>s(!a),sx:{backgroundColor:l.palette.semanticPalette.surface.secondary},children:[(0,w.jsx)(d._O,{id:`farm-header-${c}`,"aria-controls":`farm-fields-${c}`,"data-farmids":n,children:(0,w.jsx)(d.ZT,{variant:"h6",component:"span",children:t.farmName})}),(0,w.jsx)(d.rN,{id:`farm-fields-${c}`,children:(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",gap:1,children:t.fields.map((e=>(0,w.jsx)(lh,{field:e,handleFieldNavigationClick:i,activeEntityId:o.id},e.id)))})})]})},`field-sidebar-section-${c}`)},uh=r.memo(ch),dh=e=>{let{sidebarFields:t,handleFieldNavigationClick:n,activeEntity:r}=e;return(0,w.jsx)(d.xu,{sx:{position:"absolute",overflowY:"auto",top:0,bottom:0,left:0,right:0,paddingBottom:"60px",scrollPaddingBottom:"60px"},children:t.map((e=>(0,w.jsx)(uh,{farm:e,farmIds:e.farmIds,activeEntity:r,handleFieldNavigationClick:n},`${e.farmName}-${e.farmIds[0]}`)))})},ph=e=>{let{sidebarFields:t,handleFieldNavigationClick:n,activeEntity:i}=e;const o=(0,d.Fg)(),a=(0,r.useMemo)((()=>o.palette.semanticPalette.surface.secondary),[o]);return(0,w.jsx)(d.xu,{id:"field-sidebar-wrapper",display:"flex",flexDirection:"column",width:"200px",position:"relative",sx:{scrollbarWidth:"thin","&::before":{pointerEvents:"none",content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,height:"100%",width:"calc(100% - 15px)",backgroundImage:`linear-gradient(to bottom, transparent calc(100% - 60px), ${a} 100%)`,zIndex:10}},children:(0,w.jsx)(dh,{activeEntity:i,handleFieldNavigationClick:n,sidebarFields:t})})};var hh=n(91924),fh=n(26167);const mh=e=>{let{projectId:t,stage:n}=e;const i=(0,h.T)(),o=(0,h.C)(_.LY),a=(0,h.C)(_.AT),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)(!1);(0,r.useEffect)((()=>{null!==n&&void 0!==n&&n.eligibility_method&&(u(!0),si.eV.getStageEligibility(t,null===n||void 0===n?void 0:n.id).then((e=>{let{data:t}=e;setTimeout((()=>u(!1)),500);const r=Object.keys(t).map(Number).filter((e=>{var n;return!(null!==(n=t[e])&&void 0!==n&&n.eligible)}));l(r),i((0,Ao.Ni)((0,To.v9)(null===n||void 0===n?void 0:n.id,!r.length)))})).catch((e=>{setTimeout((()=>u(!1)),500),(0,C.e)(`Error fetching stage eligibility project: ${t}, stage: ${null===n||void 0===n?void 0:n.id}, error: ${e}`)})))}),[i,t,null===n||void 0===n?void 0:n.eligibility_method,null===n||void 0===n?void 0:n.id]);return(0,w.jsxs)(ni.k,{direction:"column",gap:"40px",alignItems:"center",className:"eligibility-view",children:[(0,w.jsx)("div",{}),(0,w.jsx)("img",{src:"/assets/mrv/eligibility_illustration.svg",alt:"eligibility"}),c?(0,w.jsx)(hh.F,{width:230,height:50}):s.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Rn.x,{variant:"h3",children:(0,Dn.t)({id:"IneligibleFieldsMessage",defaultMessage:"The fields below are ineligible for this program based on past management practices."})}),(0,w.jsx)(ni.k,{direction:"column",className:"ineligible-fields",children:s.map((e=>{const t=o[e];if(!t)return null;const{field_name:n,geometry:r}=t.core_attributes;return(0,w.jsxs)(ni.k,{alignItems:"center",gap:"10px",className:"ineligible-fields--item",children:[(0,w.jsx)(Ln.$,{data:r,size:fh.W,onEachFeature:fh.a,kmlId:a[t.id],mrvFieldId:t.id}),(0,w.jsx)(Rn.x,{inline:!0,children:n})]},e)})).filter(er.$K)}),(0,w.jsx)(kd.w,{raised:!0,primary:!0,onClick:async()=>{try{await i((0,Fr.Yu)({projectId:t,mrvFieldIds:s,stageId:n.id}));const e=s.map((e=>a[e])).filter(er.$K);i(Do.E.removeKMLsFromRedux({kmlIds:e})),null!==n&&void 0!==n&&n.id&&i((0,Ao.Ni)((0,To.v9)(n.id,!0))),l([])}catch(ag){}},children:(0,Dn.t)({id:"Remove ineligible fields",defaultMessage:"Remove ineligible fields"})})]}):(0,w.jsxs)(ni.k,{alignItems:"center",gap:"10px",children:[(0,w.jsx)(pd,{icon:(0,w.jsx)(gd.nQ,{style:{width:30,height:30}}),outlined:!0,active:!0,percentCompleted:100,hideProgressLabel:!0,id:"success-eligibility"}),(0,w.jsx)(Rn.x,{variant:"h3",inline:!0,children:(0,Dn.t)({id:"Eligibility check passed!",defaultMessage:"Eligibility check passed!"})})]})]})};var gh=n(97461);const yh=(e,t,n)=>{const i=(0,h.T)(),o=null===n||void 0===n?void 0:n.entity_type,a=null===n||void 0===n?void 0:n.id,s=(0,h.C)((e=>(0,_.aD)(e,a))),l=(0,h.C)((e=>(0,_.TG)(e,a))),c=Ro(t),{entityRowsByStageId:u}=Lo(t),d=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),p=(0,r.useCallback)(((e,t,n)=>{(0,ai.JG)(c,(r=>{var i;if(!r||!a)return;const o=r[a],s=[...null!==(i=null===o||void 0===o?void 0:o[t])&&void 0!==i?i:[]],l=s[n+1];if(!l)return r;s[n+1]={...l};for(const t of e){var c;l.values[t.attribute_id]={...t,value:t.value||(null===(c=l.values[t.attribute_id])||void 0===c?void 0:c.value)}}return{...r,[a]:{...o,[t]:s}}}),{revalidate:!1})}),[c,a]),f=(0,r.useCallback)((async(n,r,h)=>{var f,m,g;if(!o||!a)return;const y=null!==(f=null===u||void 0===u?void 0:u[a])&&void 0!==f?f:{},v=null!==(m=y[n])&&void 0!==m?m:[],b=v.map((e=>e.row_id)),_=Math.max(...b)+1,w=l.map((e=>{var t;return e.enabled?{attributeId:e.id,attributeType:e.type,value:e.type===br.Zi.RecordYear||e.type===br.Zi.TillagePeriod||e.type===br.Zi.PlantingSeason||e.type===br.Zi.IrrigationEnabled||e.type===br.Zi.NutrientManagementEnabled?null===(t=Object.values(h.values).find((t=>t.attribute_id===e.id)))||void 0===t?void 0:t.value:void 0}:null})).filter(er.$K),x=((e,t,n,r)=>r.map((r=>({entity_type:t,row_id:n,attribute_id:r.attributeId,attribute_type:r.attributeType,value:r.value,locked:!1,confirmed:!0,progress:e===br.t5.Enrolment?br.nO.Enrolment:br.nO.Monitoring}))))(e,h.entity_type,_,w),k=Number(null===(g=x.find((e=>e.attribute_id===s[br.Zi.RecordYear])))||void 0===g?void 0:g.value)||Uu.VK,C=[...v],S=(0,Eo.v)(o,n,_,k,Zo()(x,"attribute_id"));C.splice(r+1,0,S),(0,ai.JG)(c,(e=>({...e,[a]:{...y,[n]:C}})),{revalidate:!1,optimisticData:e=>({...null!==e&&void 0!==e?e:{},[a]:{...y,[n]:C}})});const M=await i((0,Fr.rc)({update:{[n]:x},projectId:t,entityType:o,enableCompletionValidation:d})).unwrap();p(M,n,r)}),[o,a,u,l,e,c,i,t,d,p,s]);return{addRow:f,removeRow:(0,r.useCallback)(((e,n,r)=>{var s,l;if(!o||!a)return;i((0,Fr.t3)({valueIds:r,projectId:t,entityType:o,enableCompletionValidation:d}));const p=null!==(s=null===u||void 0===u?void 0:u[a])&&void 0!==s?s:{},h=[...null!==(l=p[e])&&void 0!==l?l:[]];h.splice(n,1),(0,ai.JG)(c,(t=>({...t,[a]:{...p,[e]:h}})),{revalidate:!1,optimisticData:t=>({...null!==t&&void 0!==t?t:{},[a]:{...p,[e]:h}})})}),[o,a,i,t,u,c,d])}},vh=(0,r.createContext)({setIgnoredSimilarWarnings:()=>{},setIgnoredWarnings:()=>{},ignoredSimilarWarnings:[],ignoredWarnings:[]});var bh=n(45943);function _h(e){let{entityId:t,stage:n,initialStartDate:r,initialEndDate:i,stages:o,rowsByEntityId:a,loading:s}=e;const l=(0,Lu.kE)(),c=(0,bh.xG)(t,a,n,o),u=(0,f.YB)();return s?(0,w.jsx)(d.Od,{height:30*o.length}):0===c.length?null:(0,w.jsx)(d.TY,{ariaLabel:"MRV Timeline",locale:l,rows:c,highlightedRowId:(0,bh.iy)(n.type_),timeScale:n.timeline_time_scale,initialStartDate:r,initialEndDate:i,scrollToEnd:!0,emptyMessage:u.formatMessage({id:"FieldEventsTimeline.emptyMessage",defaultMessage:"Fill out the table below to get started."})})}var wh=n(84159);const xh={[br.Zi.SummerDryYield]:"120px",[br.Zi.WinterDryYield]:"120px",[br.Zi.RecordYear]:"50px"},kh=(e,t)=>"field"===e;var Ch=n(23414);const Sh=e=>{let{entityType:t,entity:n}=e;switch(t){case"field":return kh(t)?(0,w.jsx)(Mh,{field:n}):null;case"farm":return((e,t)=>"farm"===e)(t)?(0,w.jsx)(Th,{farm:n}):null;case"mob":return((e,t)=>"mob"===e)(t)?(0,w.jsx)(Eh,{mob:n}):null;default:(0,jn.oK)(t,`<EntityName/> component doesn't support ${t} entity type`)}return null},Mh=e=>{var t,n,r,i;let{field:o}=e;const a=(0,f.YB)(),s=null===o||void 0===o||null===(t=o.core_attributes)||void 0===t?void 0:t.geometry,l=null===o||void 0===o?void 0:o.id,c=null===o||void 0===o||null===(n=o.core_attributes)||void 0===n?void 0:n.field_name,u=null===o||void 0===o||null===(r=o.core_attributes)||void 0===r?void 0:r.field_area,p=null===o||void 0===o||null===(i=o.core_attributes)||void 0===i?void 0:i.farm_name,m=null===o||void 0===o?void 0:o.farm_id,g=(0,h.C)(S.DC),y=(0,h.C)(_.AT),v=(0,_u.wH)((0,iu.En)(g,ol.Ug.ImperialUnits,u)),b=`${a.formatMessage({id:"Farm ID",defaultMessage:"Farm ID"})}: ${m}`;return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",flexWrap:"nowrap",gap:3,children:[!!s&&(0,w.jsx)(wu,{geometry:s,kmlId:y[l],mrvFieldId:l}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[(0,w.jsx)(d.ZT,{className:"farm-name",component:"div",title:b,children:p}),(0,w.jsx)(d.xu,{px:1,children:"/"}),(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.ZT,{className:"field-name",component:"span",fontWeight:"bold",children:c}),(0,w.jsx)(d.xu,{ml:1,component:"span",display:"inline-block",children:(0,w.jsxs)(d.ZT,{className:"field-info",component:"div",sx:{display:"flex"},fontWeight:"normal",color:"semanticPalette.textInverted.secondary",children:["(",(0,w.jsxs)("span",{children:[v," ",g]})," / ",(0,w.jsx)(Ch.l,{label:`#${l}`,toastLabel:a.formatMessage({id:"Field ID",defaultMessage:"Field ID"}),value:l,iconIsHidden:!0,valueIsHidden:!0}),")"]})})]})]})]})},Th=e=>{let{farm:t}=e;return(0,w.jsx)("div",{children:t.farm_name})},Eh=e=>{let{mob:t}=e;return(0,w.jsx)("div",{children:t.mob_name})},Ph=(e,t,n)=>{const{programId:i}=(0,gr.B)(),o=(0,h.C)(_.NX),a=(0,h.C)(S.DC),s=(0,h.C)(S.dy),l=(0,f.YB)(),c=(0,r.useMemo)((()=>"new"===s.id?{errors:[],warnings:[]}:function(e,t,n,r,i,o,a,s){const l=[],c=[],u=Object.assign({},...e.map((e=>({[e.row_id]:e.year}))));function d(e){switch(e.type){case"YieldHigherThanExpectedWarning":if(a.some((t=>function(e){return"YieldHigherThanExpectedWarning"===e.type}(t)&&t.attributeId===e.attributeId&&t.userId===e.userId&&t.cropType===e.cropType&&t.yieldUnit===e.yieldUnit)))return!0;break;case"YieldZeroWarning":if(a.some((t=>function(e){return"YieldZeroWarning"===e.type}(t)&&t.attributeId===e.attributeId&&t.userId===e.userId)))return!0}return o.some((t=>t.attributeId===e.attributeId&&t.userId===e.userId&&t.valueId===e.valueId&&t.type===e.type))}for(let v=0;v<e.length;v++){var p,h;const o=(0,ii.pJ)(null!==(p=null===(h=e[v])||void 0===h?void 0:h.values)&&void 0!==p?p:{}).map((e=>{let[t,n]=e;return n}));for(let a=0;a<o.length;a++){const p=o[a];if(!p)continue;const h=t[p.attribute_id];if(!h)continue;const{type:v}=h;if((68===n||155===n)&&r===ol.Ug.ImperialUnits&&(v===br.Zi.WinterCropType||v===br.Zi.SummerCropType)){var f;const e=o.find((e=>{var n,r,i;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.enabled)&&((null===(r=t[e.attribute_id])||void 0===r?void 0:r.type)===br.Zi.SummerDryYield||(null===(i=t[e.attribute_id])||void 0===i?void 0:i.type)===br.Zi.WinterDryYield)}));if(!e||!e.id)continue;const n=parseInt(e.value),r=isNaN(n)?null:n;if(null===r)continue;if(0===r){const t={type:"YieldZeroWarning",attributeId:e.attribute_id,rowId:p.row_id,userId:i,valueId:e.id,message:s.formatMessage({id:"Generally the yield should be greater than 0. Please double check the value.",defaultMessage:"Generally the yield should be greater than 0. Please double check the value."})};d(t)||c.push(t);continue}const a=null===(f=o.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.YieldRateUnit&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===f?void 0:f.value;if(!a)continue;if("corn"===p.value&&"bu/ac"===a&&r>350||"soybeans"===p.value&&"bu/ac"===a&&r>150||"sugar_beets"===p.value&&"T/ac"===a&&r>60||"sorghum"===p.value&&"bu/ac"===a&&r>200||"wheat_spring"===p.value&&"bu/ac"===a&&r>150||"small_grains"===p.value&&"bu/ac"===a&&r>200||"hay"===p.value&&"lb/ac"===a&&r>15e3||"cotton"===p.value&&"lb/ac"===a&&r>2e3||"alfalfa"===p.value&&"T/ac"===a&&r>26||"oat"===p.value&&"bu/ac"===a&&r>200||"canola"===p.value&&("bu/ac"===a&&r>120||"lb/ac"===a&&r>6e3)||"lentils"===p.value&&"lb/ac"===a&&r>4e3||"spring_barley"===p.value&&"bu/ac"===a&&r>120||"millet"===p.value&&"bu/ac"===a&&r>140||"peanuts"===p.value&&"lb/ac"===a&&r>6800||"pumpkins"===p.value&&"lb/ac"===a&&r>6e4||"peas"===p.value&&"bu/ac"===a&&r>180||"sunflowers"===p.value&&("bu/ac"===a&&r>150||"lb/ac"===a&&r>2600)||"triticale"===p.value&&("bu/ac"===a&&r>160||"lb/ac"===a&&r>16e3)||"sweet_corn"===p.value&&"bu/ac"===a&&r>400||"rice"===p.value&&"lb/ac"===a&&r>18e3||"potatoes"===p.value&&"lb/ac"===a&&r>1e5||"dry_beans"===p.value&&"bu/ac"===a&&r>80||"winter_barley"===p.value&&"bu/ac"===a&&r>150||"buckwheat"===p.value&&"lb/ac"===a&&r>4e3||"clover"===p.value&&"lb/ac"===a&&r>8e3||"vetch"===p.value&&"lb/ac"===a&&r>12e3||"rye"===p.value&&"bu/ac"===a&&r>200||"wheat_winter"===p.value&&"bu/ac"===a&&r>150){const t={type:"YieldHigherThanExpectedWarning",message:s.formatMessage({id:"This number looks higher than expected for the given yield unit. Please double check the value.",defaultMessage:"This number looks higher than expected for the given yield unit. Please double check the value."}),attributeId:e.attribute_id,rowId:p.row_id,userId:i,valueId:e.id,cropType:p.value,yieldUnit:a};d(t)||c.push(t);continue}}const b=o.find((e=>e.attribute_type===br.Zi.ApplicationRate)),_=b&&o.find((e=>e.attribute_type===br.Zi.ApplicationRateUnit));b&&!_&&l.push({attributeId:b.attribute_id,rowId:b.row_id,message:s.formatMessage({id:"You must select a unit for the rate amount.",defaultMessage:"You must select a unit for the rate amount."})});const w=o.find((e=>e.attribute_type===br.Zi.WaterAmount)),x=w&&o.find((e=>e.attribute_type===br.Zi.WaterAmountUnit));if(w&&!x&&l.push({attributeId:w.attribute_id,rowId:w.row_id,message:s.formatMessage({id:"You must select a unit for the water amount.",defaultMessage:"You must select a unit for the water amount."})}),v===br.Zi.TillagePractice){var m,g;const n="no till",r=s.formatMessage({id:"You cannot have a field with both no tillage and tillage during the same tillage period.",defaultMessage:"You cannot have a field with both no tillage and tillage during the same tillage period."});if(p.value!==n)continue;const i=null===(m=o.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.RecordYear&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===m?void 0:m.value,a=null===(g=o.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.TillagePeriod&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===g?void 0:g.value,c=e.filter((e=>{var r,o,s;const l=(0,ii.pJ)(null===e||void 0===e?void 0:e.values).map((e=>{let[t,n]=e;return n})),c=null===(r=l.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.RecordYear&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===r?void 0:r.value;if(!c)return!1;const u=null===(o=l.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.TillagePeriod&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===o?void 0:o.value;if(!u)return!1;const d=null===(s=l.find((e=>{var n,r;return(null===(n=t[e.attribute_id])||void 0===n?void 0:n.type)===br.Zi.TillagePractice&&(null===(r=t[e.attribute_id])||void 0===r?void 0:r.enabled)})))||void 0===s?void 0:s.value;return!!d&&(c===i&&u===a&&d!==n)}));c.length>0&&l.push({attributeId:p.attribute_id,rowId:p.row_id,message:r});for(let e=0;e<c.length;e++){var y;const t=null===(y=c[e])||void 0===y?void 0:y.values[p.attribute_id];t&&(t.value!==n&&l.push({attributeId:t.attribute_id,rowId:t.row_id,message:r}))}}if(Ih.includes(v)&&p.value>100&&l.push({attributeId:p.attribute_id,rowId:p.row_id,message:s.formatMessage({id:"The percentage cannot be greater than 100%. Please check your values.",defaultMessage:"The percentage cannot be greater than 100%. Please check your values."})}),(h.min_val||h.max_val)&&p.value){const e=s.formatMessage({id:"The value you have entered is out of range.",defaultMessage:"The value you have entered is out of range."}),t={attributeId:p.attribute_id,rowId:p.row_id,message:e},n=e=>{var t,n;return null!==(t=p.value)&&void 0!==t&&null!==(n=t.includes)&&void 0!==n&&n.call(t,"-")?Date.parse(xp()(e).format("YYYY-MM-DD")):parseInt(e||"")},r=n(p.value),{min_val:i,max_val:o}=h,a=u[null===p||void 0===p?void 0:p.row_id],c=(null!==a&&void 0!==a?a:0)-Math.min(...Object.values(u)),d=e=>{var t,n;return null!==(t=p.value)&&void 0!==t&&null!==(n=t.includes)&&void 0!==n&&n.call(t,"-")?Date.parse(xp()(e).add(c,"y").format("YYYY-MM-DD")):parseInt(e||"")+c};(i&&r<d(i)||o&&r>d(o))&&l.push(t)}}}return{errors:l,warnings:c}}(e,o,i,a,s.id,t,n,l)),[o,n,t,a,i,e,s.id,l,JSON.stringify(e.map((e=>e.values)))]);return c},Ih=[br.Zi.AreaTilledTotalPct,br.Zi.AreaTilledForPastureRenewalPct];const Oh=Z.ZP.div`
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: gold;
  opacity: 0;
  z-index: ${ud.K.BelowBase}; // hide behind other elements when is not blinking

  ${e=>{let{blinking:t}=e;return t?Z.iv`
          z-index: ${ud.K.Base}; // move the blinking item to the initial position
          animation: blink 0.75s ease-out;
        `:void 0}}}
`,Lh=e=>{let{blinking:t}=e;return(0,w.jsx)(Oh,{blinking:t})};var Rh=n(90454),jh=n(29766),Dh=n(27679),Ah=n(3661);const Nh=e=>{let{error:t,warning:n}=e;const{setIgnoredSimilarWarnings:i,setIgnoredWarnings:o}=(0,r.useContext)(vh);return(0,w.jsxs)(d.xu,{children:[t&&(0,w.jsx)(w.Fragment,{children:t.message}),n&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{children:n.message}),(0,w.jsxs)(d.xu,{display:"flex",gap:2,alignItems:"center",justifyContent:"space-between",mt:4,children:[(0,w.jsx)(d.zx,{size:"small",onClick:()=>{const e=(0,Ah.VJ)(Ah.H_.IGNORED_WARNINGS)||[];o([...e,n])},children:"Ignore"}),(0,w.jsx)(d.zx,{size:"small",onClick:()=>{const e=(0,Ah.VJ)(Ah.H_.IGNORED_SIMILAR_WARNINGS)||[];i([...e,n])},children:"Suppress similar warnings"})]})]})]})},Fh=(0,d.zo)((e=>{let{className:t,...n}=e;return(0,w.jsx)(d.u,{...n,classes:{popper:t}})}))((e=>{let{theme:t}=e;return{zIndex:ud.K.Popover,[`& .${Al.Z.tooltip}`]:{backgroundColor:t.palette.semanticPalette.surface.main,color:t.palette.semanticPalette.text.main,maxWidth:230,border:"unset",filter:`drop-shadow(0px 2px ${t.boxShadows.lg}px rgba(0, 0, 0, .25))`},[`& .${Al.Z.arrow}`]:{color:t.palette.semanticPalette.surface.main}}})),zh=e=>{var t;let{attributeId:n,entityId:i,entityType:o,error:a,onChange:s,phaseType:l,projectValue:c,readOnly:u,rowId:p,rowIndex:m,values:g,warning:y}=e;const{stageId:v}=(0,gr.B)(),b=(0,h.C)((e=>(0,_.M0)(e,v))),x=(0,h.C)(_.$k),k=(0,h.C)((e=>(0,_.pj)(e,n))),C=(0,f.YB)(),S=(0,Z.Fg)(),{isSuperUpdateEnabled:M}=(0,mr.Di)(),{highlighting:T}=(0,r.useContext)(Dh._),E=(0,r.useCallback)((e=>[68,21].includes(x)&&(null===k||void 0===k?void 0:k.type)===br.Zi.RecordYear&&void 0===(null===c||void 0===c?void 0:c.value)?null!==b&&void 0!==b&&b.year_end?b.year_end-p:void 0:e),[b,null===k||void 0===k?void 0:k.type,null===c||void 0===c?void 0:c.value,p,x]),[P,I]=(0,r.useState)(E(null===c||void 0===c?void 0:c.value));(0,r.useEffect)((()=>{I(E(null===c||void 0===c?void 0:c.value))}),[null===c||void 0===c?void 0:c.value,E]);const O=(0,r.useCallback)((function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(I(e),!t)return;const r=[...k?[{id:null===c||void 0===c?void 0:c.id,confirmed:!0,locked:!1,value:e,progress:br.KS[l],attribute_id:k.id,attribute_type:k.type,entity_type:o,row_id:p}]:[]];for(let i=0;i<n.length;i++){var a;const{attribute:e,value:t}=null!==(a=n[i])&&void 0!==a?a:{};e&&r.push({id:void 0,confirmed:!0,locked:!1,value:t,progress:br.KS[l],attribute_id:e.id,attribute_type:e.type,entity_type:o,row_id:p})}s({entityId:i,stageId:v,entityType:o,rowIndex:m,values:r})}),[null===k||void 0===k?void 0:k.id,null===k||void 0===k?void 0:k.type,i,o,s,l,null===c||void 0===c?void 0:c.id,p,m,v]),L=()=>{O(P||V)};if(!k)return null;const{type:R,name:j,label:D,default_value:A,min_val:N,max_val:F}=k,z=(0,er.$K)(F)?Number(F):void 0,B=(0,er.$K)(z)&&isNaN(z)?Number.POSITIVE_INFINITY:z,U=(0,er.$K)(N)?Number(N):void 0,$=(0,er.$K)(U)&&isNaN(U)?0:U;if((0,ki.Cl)(k))return null;if((0,$p.x$)(null===k||void 0===k?void 0:k.dependencies,g))return(0,w.jsx)(gh.uM,{style:{backgroundColor:S.color.surface.secondary}});const V=A,q=P===(null===c||void 0===c?void 0:c.value)&&(null===c||void 0===c?void 0:c.confirmed),H=!M&&(null===c||void 0===c?void 0:c.locked),G=null!==c&&void 0!==c&&c.confirmed||!(0,er.$K)(null===c||void 0===c?void 0:c.confidence)?"":(0,jh.D7)(null===c||void 0===c?void 0:c.confidence)?C.formatMessage({id:br.nH.High,defaultMessage:br.nH.High}):C.formatMessage({id:br.nH.Low,defaultMessage:br.nH.Low}),W=Bh(R,P?"":V),Y=!P&&!V;if(u&&!P)return(0,w.jsx)(gh.uM,{highlight:Y||!q||W,children:"-"});const K=!u&&(Y||!q||W),X=k.options,J=!H&&!q&&(P||V)&&!(R===br.Zi.CropType&&(null===X||void 0===X||!X.some((e=>(0,Rh.Sg)(e)===P))))&&!(0,Ep.X8)(R),Q=`${R}-E${i}-A${n}-R${p}-V${null!==(t=null===c||void 0===c?void 0:c.id)&&void 0!==t?t:""}`,ee=(null===c||void 0===c?void 0:c.id)&&y||void 0;return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(gh.uM,{highlight:K,hasError:!!a,children:[K&&(0,w.jsx)(Lh,{blinking:T}),(0,w.jsx)(Fh,{placement:"right",title:(a||ee)&&(0,w.jsx)(Nh,{error:a,warning:ee}),children:(0,w.jsxs)(d.xu,{"data-testid":`MRV-table--cell--${n}`,alignItems:"center",gap:".5em",flexWrap:"nowrap",display:"flex",children:[(0,w.jsx)(Ep.Ob,{defaultValue:A||(null===c||void 0===c?void 0:c.value),disabled:H||u,id:Q,maxValue:B,minValue:$,name:j,onChange:O,options:X,subtitle:G,type:R,value:P,entityId:i,rowId:p},A),a&&(0,w.jsx)(d.le,{type:"cross-circled",fontSize:"h5",color:"error"}),y&&(0,w.jsx)(d.le,{type:"info-circled",fontSize:"h5"}),!u&&H&&(0,w.jsx)(Vp,{practice:D,onUnlock:L}),!u&&J&&(0,w.jsx)(rd,{onClick:L})]})})]})})},Bh=(e,t)=>e!==br.Zi.WinterCropCommitment&&("No Irrigation"===t||"0%"===t||"other"===t),Uh=(0,d.zo)("ul")`
  padding: ${e=>{let{theme:t}=e;return t.spacing(0,4)}};
  li {
    padding: ${e=>{let{theme:t}=e;return t.spacing(2,0)}};
    list-style: ${e=>{let{hasMarker:t}=e;return t?"disc":"none"}};

    &:first-child {
      padding-top: 0;
    }

    &:last-child {
      padding-bottom: 0;
    }
  }
`,$h=e=>{let{value:t}=e;const{formatMessage:n}=(0,f.YB)(),i=(0,r.useCallback)((e=>n({id:`Stage error: ${e}`,defaultMessage:e})),[n]);return(0,w.jsx)(Uh,{hasMarker:(null===t||void 0===t?void 0:t.length)>1,children:null===t||void 0===t?void 0:t.map((e=>(0,w.jsx)("li",{children:i(e)},e)))})},Vh=e=>{let{attributesIds:t,canAddRow:n,canDeleteRow:i,errors:o,hideCheckbox:a,isLoading:l,isSelected:c,onAddRow:u,onChange:p,onRemoveRow:h,onSelect:m,phaseType:g,readOnly:y,row:v,rowIndex:b,warnings:_=[]}=e;const x=(0,f.YB)(),{field_id:k,row_id:C,values:S}=v,M=(0,Eo.B)(v),T=(0,r.useCallback)((e=>M&&(null===m||void 0===m?void 0:m(M,C,e.target.checked))),[m,M,C]);return(0,w.jsxs)("tr",{className:s()("field-row",{"field-row-top":0===b}),"data-testid":`MRV-table--row--${C}`,children:[!a&&(0,w.jsx)(gh.uM,{className:"mrv-form__checkbox-column",children:(0,w.jsx)(d.XZ,{onChange:T,checked:!!c,disabled:y})}),t.map((e=>{var t;const n=null===(t=v.values[e])||void 0===t?void 0:t.attribute_type,r=n?null===o||void 0===o?void 0:o[n]:void 0;let i;null!==r&&void 0!==r&&r.length&&(i={attributeId:e,rowId:v.row_id,message:(0,w.jsx)($h,{value:r})});const a=S[e];return l?(0,w.jsx)(gh.uM,{children:(0,w.jsx)(hh.F,{width:200,height:30})},e):(0,w.jsx)(zh,{phaseType:g,entityType:v.entity_type,attributeId:e,rowId:C,rowIndex:b,entityId:M,values:S,projectValue:a,onChange:p||qh,readOnly:y,error:i,warning:_.find((t=>t.attributeId===e&&t.rowId===C))},`${e}-${k}`)})),(n||i)&&(0,w.jsxs)(gh.uM,{className:"mrv-form__multiple-rows-column",nowrap:!0,children:[(0,w.jsx)(On.zx,{tooltipLabel:x.formatMessage({id:"BtnLabel.AddEvent",defaultMessage:"Add event"}),tooltipPosition:"top",style:{width:50,height:50,visibility:n?"visible":"hidden"},disabled:!n,icon:!0,onClick:()=>M&&(null===u||void 0===u?void 0:u(M,b,v)),children:(0,w.jsx)(On.xu,{style:{fontSize:30},children:"add_circle"})}),(0,w.jsx)(On.zx,{tooltipLabel:x.formatMessage({id:"BtnLabel.RemoveEvent",defaultMessage:"Remove event"}),tooltipPosition:"top",style:{width:50,height:50,visibility:i?"visible":"hidden"},disabled:!i,icon:!0,onClick:()=>{confirm(x.formatMessage({id:"rowDeleteConfirmation",defaultMessage:"Are you sure you want to DELETE the row?"}))&&M&&(null===h||void 0===h||h(M,b,Object.values(S).map((e=>e.id)).filter(er.$K)))},children:(0,w.jsx)(On.xu,{style:{fontSize:30},children:"delete_outline"})})]})]})},qh=()=>{},Zh=(0,r.memo)(Vh),Hh=e=>{let{entityId:t,isLoading:n,isSelected:i,onAddRow:o,onRemoveRow:a,onSelectRow:s,onUpdateValues:l,phaseType:c,readOnly:u,rows:d,validationErrors:p,stageId:f}=e;const m=(0,h.C)(S.rf),g=(0,h.C)((e=>(0,_.M0)(e,f))),y=(null===g||void 0===g?void 0:g.attributes)||[],[v,b]=(0,hr.zE)([br.aR.DELETE_PROJECT_ENTITIES_VALUES,br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),{ignoredSimilarWarnings:x,ignoredWarnings:k}=(0,r.useContext)(vh),{warnings:C}=Ph(d,k,x),M=(0,r.useMemo)((()=>function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];null!==r&&void 0!==r&&r.year&&(t[r.year]=n)}return t}(d)),[d]);return(0,w.jsx)(w.Fragment,{children:d.map(((e,r)=>{const h=m||!u&&!!e.year&&d.some((t=>t.year===e.year&&t.row_id!==e.row_id)),f=!u&&!!e.year&&M[e.year]===r;return(0,w.jsx)(Zh,{"data-testid":"mrv-table--entity-rows",attributesIds:y,canAddRow:b&&f,canDeleteRow:v&&h,errors:p[e.row_id],isLoading:n,isSelected:i(t,e.row_id),onAddRow:o,onChange:l,onRemoveRow:a,onSelect:s,phaseType:c,readOnly:!b||u,row:e,rowIndex:r,warnings:C},`${null===g||void 0===g?void 0:g.id}-${t}-${e.row_id}`)}))})},Gh=e=>{let{attributes:t,getAttributeLabel:n,selectAllCheckbox:r=null}=e;return(0,w.jsx)(Mr.qp,{"data-testid":"MRV-table--header",className:"sentry-unmask",children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{children:r}),t.map((e=>{const{id:t,type:r,description:i}=e;if((0,ki.Cl)(e))return null;const o=n(e),a=xh[r]||"140px";return(0,w.jsx)(Wh,{id:t,label:o,description:i,minWidth:a},t)}))]})})},Wh=e=>{let{label:t,description:n,minWidth:r,id:i}=e;return(0,w.jsx)(Mr.uM,{nowrap:!0,"data-testid":`mrv-table--attribute--${i}--header`,children:(0,w.jsxs)(Cd.k,{alignItems:"center",gap:"5px",nowrap:!0,style:{minWidth:r},children:[t," ",n&&(0,w.jsx)(d.u,{id:Yh,placement:"top",title:n,children:(0,w.jsx)("div",{children:(0,w.jsx)(On.xu,{children:"help_outline"})})})]})})},Yh="tooltip-baby",Kh=e=>{let{fieldIds:t,selectedFieldId:n,setSelectedField:r}=e;const i=t.indexOf(n);return(0,w.jsxs)(d.hE,{children:[(0,w.jsx)(d.zx,{size:"small","aria-label":"Previous Field",title:"Previous Field",onClick:()=>{if(i>0){const e=t[i-1];void 0!==e&&r(e)}},disabled:0===i,children:(0,w.jsx)(d.le,{type:"chevron-left"})}),(0,w.jsx)(d.zx,{size:"small","aria-label":"Next Field",title:"Next Field",onClick:()=>{if(i<t.length-1){const e=t[i+1];void 0!==e&&r(e)}},disabled:i===t.length-1,children:(0,w.jsx)(d.le,{type:"chevron-right"})})]})},Xh=[],Jh={},Qh=[],ef=e=>{var t,n;let{phaseType:i,activeEntity:o,onUpdate:a,sidebarFields:l,handleFieldNavigationClick:c}=e;Hp(Zp.TABLE);const{stageId:u,projectId:p}=(0,gr.B)(),m=(0,d.Fg)(),g=(0,f.YB)(),v=(0,h.T)(),b=(0,h.C)((e=>(0,_.TG)(e,u))),x=(0,h.C)((e=>(0,_.M0)(e,u))),k=(0,h.C)((e=>(0,_.sZ)(e,i))),C=(0,h.C)((e=>{var t;return null===(t=(0,_.dL)(e))||void 0===t?void 0:t.isSync})),[S]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS]),[M,T]=(0,r.useContext)(od),{isReadOnly:E}=wr(i),P=E||!S,[I,O]=(0,Ah.BQ)(Ah.H_.IGNORED_SIMILAR_WARNINGS,[]),[L,R]=(0,Ah.BQ)(Ah.H_.IGNORED_WARNINGS,[]),[j,D]=(0,r.useState)(!1),{entityRowsByStageId:A,loadingStageValues:N,allRowsByEntityId:F,updateAllValuesForEntity:z,validationErrors:B}=Lo(p),{isFieldComplete:U,hasErrors:$}=ah(o.id,u),V=(0,To.Qe)(),{addRow:q,removeRow:Z}=yh(i,p,x),H=(0,r.useCallback)(((e,t,n)=>{T((r=>n?r.concat({entityId:e,rowId:t}):r.filter((n=>`${n.entityId}-${n.rowId}`!==`${e}-${t}`))))}),[T]),G=(0,r.useMemo)((()=>l.flatMap((e=>{var t,n;return null!==(t=null===(n=e.fields)||void 0===n?void 0:n.flatMap((e=>e.id)))&&void 0!==t?t:Xh}))),[l]);(0,r.useEffect)((()=>{v((0,y.OT)("monitoring"))}),[v]);const W=(0,r.useMemo)((()=>{var e;return null!==(e=null===A||void 0===A?void 0:A[u])&&void 0!==e?e:Jh}),[A,u]),Y=(0,r.useCallback)(((e,t)=>!!M.find((n=>n.entityId===e&&n.rowId===t))),[M]),K=(0,r.useMemo)((()=>{var e;return W&&(0,ii.O7)(W)?(null!==(e=W[o.id])&&void 0!==e?e:[]).flatMap((e=>Object.values(e.values))).filter((e=>!e.confirmed)):Qh}),[W,o.id]),X=(0,r.useMemo)((()=>{var e;const t=[],n=null!==(e=W[o.id])&&void 0!==e?e:[],r=i===br.t5.Enrolment?br.nO.Enrolment:br.nO.Monitoring;for(const i of b)if(i.default_value)for(const e of n)x&&!e.values[i.id.toString()]&&t.push({confirmed:!0,locked:!1,value:i.default_value,progress:r,attribute_id:i.id,attribute_type:i.type,entity_type:x.entity_type,row_id:e.row_id,field_id:o.id});return t}),[W,o.id,b,i,x]),J=(0,r.useMemo)((()=>(e=>!!(void 0!==e&&(0,wh.S)(e)&&e.timeline_enabled&&e.timeline_start_date&&e.timeline_end_date))(x)?x:void 0),[x]),Q=(0,r.useCallback)((e=>!(null===x||void 0===x||!x.entity_type)&&kh(x.entity_type)&&e.ofs_status===br.TV.InProgress),[null===x||void 0===x?void 0:x.entity_type]),ee=(0,r.useMemo)((()=>U&&!$?(0,w.jsxs)(d.xu,{mr:1,children:[(0,w.jsx)(d.ZT,{variant:"body1",color:"primary.main",component:"span",children:(0,w.jsx)(f._H,{id:"TableCompletion.Completed",defaultMessage:"Completed"})}),(0,w.jsx)(d.xu,{ml:1,component:"span",children:(0,w.jsx)(d.le,{color:"primary",type:"check-mark",fontSize:"body1"})})]}):(0,w.jsx)(d.xu,{mr:3,children:(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalette.text.warning",children:(0,w.jsx)(f._H,{id:"TableCompletion.Incomplete",defaultMessage:"Incomplete"})})})),[U,$]),te=(0,r.useMemo)((()=>{var e;return null===(e=M.filter((e=>e.entityId===o.id)))||void 0===e?void 0:e.length}),[o.id,M]);if(null===x||void 0===x||!x.entity_type)return null;if(!o)return(0,w.jsx)(nr.U8,{children:"No entities found. Try removing the crop filters above."});return(0,w.jsxs)(d.xu,{className:"mrv-field-table",display:"flex",gap:10,flexWrap:"nowrap",border:1,p:4,pr:0,pb:0,borderRadius:m.borderRadii.md,borderColor:m.palette.grey[200],bgcolor:m.palette.background.paper,sx:{backgroundColor:m.palette.background.paper,overflow:"hidden"},width:"100%",children:[x?(0,w.jsx)(nf,{stage:x},x.id):null,(0,w.jsxs)(d.xu,{id:`mrv-table-${o.id}`,display:"flex",flexDirection:"column",width:"100%",children:[(0,w.jsxs)(d.xu,{display:"flex",pr:4,children:[(0,w.jsx)(Sh,{entity:o,entityType:x.entity_type}),kh(x.entity_type)&&o.baseline_year&&(0,w.jsx)(d.xu,{px:2,py:1,ml:4,my:"auto",borderRadius:m.borderRadii.sm,bgcolor:o.is_returning?m.palette.semanticPalette.surface.secondary:m.palette.semanticPalette.surface.info,children:(0,w.jsx)(d.ZT,{color:o.is_returning?m.palette.semanticPalette.text.secondary:m.palette.semanticPalette.text.info,children:o.is_returning?(0,w.jsx)(f._H,{id:"FieldBaselineIndication.ReturningField",defaultMessage:"First enrolled in {baselineYear}",values:{baselineYear:o.baseline_year}}):(0,w.jsx)(f._H,{id:"FieldBaselineIndication.NewField",defaultMessage:"New field"})})}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",ml:"auto",children:[K.length>0||X.length>0?(0,w.jsx)(d.xu,{mr:1,children:(0,w.jsx)(d.fl,{color:"secondary",variant:"outlined",size:"small","aria-label":"Confirm all pre-filled cells",title:"Confirm all pre-filled cells",onClick:async()=>{if(D(!0),null!==x&&void 0!==x&&x.entity_type&&null!==K&&void 0!==K&&K.length){const e=K.map((e=>({...e,confirmed:!0})));await z({entityId:o.id,stageId:u,entityType:x.entity_type,values:e})}null!==x&&void 0!==x&&x.entity_type&&null!==X&&void 0!==X&&X.length&&await z({entityId:o.id,stageId:u,entityType:x.entity_type,values:X}),D(!1)},startIcon:(0,w.jsx)(d.le,{type:"check-mark"}),loading:j,children:g.formatMessage({id:"Confirm all pre-filled cells",defaultMessage:"Confirm all pre-filled cells"})})}):null,ee,(0,w.jsx)(Kh,{fieldIds:G,selectedFieldId:o.id,setSelectedField:c})]})]}),(0,w.jsx)(d.xu,{children:x.type_===br.UY.NUTRIENT_MGMT_INTENDED&&kh(x.entity_type)&&(0,w.jsx)(tf,{eligible:o.eligible})}),(0,w.jsxs)(d.xu,{gap:12,height:"100%",children:[J&&(0,w.jsx)(_h,{entityId:o.id,stage:J,stages:k,rowsByEntityId:F,initialStartDate:new Date(J.timeline_start_date),initialEndDate:new Date(J.timeline_end_date),loading:N}),(0,w.jsx)(d.xu,{sx:{overflowX:"auto",scrollbarWidth:"thin"},paddingBottom:2,children:(0,w.jsxs)(gh.dU,{className:s()("mrv-table",{"syncing-operations":C}),responsive:!1,"data-testid":`mrv-field-table--${o.id}`,children:[(0,w.jsx)(Gh,{attributes:b,getAttributeLabel:V,selectAllCheckbox:(0,w.jsx)(d.XZ,{checked:(0,er.$K)(te)&&te===(null===(t=W[o.id])||void 0===t?void 0:t.length),indeterminate:te>0&&!(te===(null===(n=W[o.id])||void 0===n?void 0:n.length)),disabled:C||P,onChange:e=>{return t=e.target.checked,n=o.id,void T((e=>{var r;const i=e.filter((e=>e.entityId!==n)),o=null===(r=W[n])||void 0===r?void 0:r.map((e=>({entityId:n,rowId:e.row_id})));return t&&null!==o&&void 0!==o&&o.length?[...i,...o]:i}));var t,n},inputProps:{"aria-label":"Select all rows"}})}),(0,w.jsx)(gh.By,{"data-testid":"mrv-table--body",children:(0,w.jsx)(vh.Provider,{value:{setIgnoredSimilarWarnings:O,setIgnoredWarnings:R,ignoredSimilarWarnings:I,ignoredWarnings:L},children:N?(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(gh.uM,{children:(0,w.jsx)(hh.F,{width:30,height:30})}),b.map(((e,t)=>(0,w.jsx)(gh.uM,{children:(0,w.jsx)(hh.F,{width:200,height:30})},t)))]}):(0,w.jsx)(Hh,{phaseType:i,stageId:u,entityId:o.id,rows:W[o.id]||[],validationErrors:(null===B||void 0===B?void 0:B[o.id])||{},readOnly:C||P,isLoading:i===br.t5.Enrolment&&Q(o),isSelected:Y,onSelectRow:H,onUpdateValues:a,onAddRow:q,onRemoveRow:Z},o.id)})})]})})]})]},o.id)]})};function tf(e){let{eligible:t}=e;return t?(0,w.jsx)(d.ZT,{color:"semanticPalette.success.main",sx:{m:0},children:"This field has eligible history."}):(0,w.jsx)(d.ZT,{color:"semanticPalette.grey.600",children:"This field has ineligible history."})}const nf=e=>{let{stage:t}=e;const n=(0,h.C)(_.no),[i,o]=(0,r.useState)();return(0,r.useEffect)((()=>{if(t&&n){var e;const r=null===(e=n[t.id])||void 0===e?void 0:e.is_completed;!1===i&&r&&(o(!0),tr.Z.track("MRV Stage completed",{Stage:t.type_})),i!==r&&o(r)}}),[n,t,i]),null},rf=e=>{let{fields:t,phaseType:n,activeEntity:i,setActiveEntity:o,onUpdate:a}=e;const{stageId:s,projectId:l}=(0,gr.B)(),{isReadOnly:c}=wr(n),u=(0,h.C)((e=>(0,_.M0)(e,s))),[p]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),f=c||!p,{surveyView:m}=Id(br.t5.Monitoring),g=zp(t),{isFinishStage:y}=Yo(),v=(0,r.useMemo)((()=>t.find((e=>e.id===(null===i||void 0===i?void 0:i.id)))),[t,null===i||void 0===i?void 0:i.id]),b=(0,r.useCallback)((e=>{const n=t.find((t=>t.id===e));n&&o(n)}),[t,o]);return y(s)?(0,w.jsx)(Zu,{phaseType:n}):(null===u||void 0===u?void 0:u.type_)===br.UY.CONTRACT&&l&&null!==u&&void 0!==u&&u.phase_id?(0,w.jsx)(oh,{projectId:l,phaseId:u.phase_id,isReadOnly:f}):(null===u||void 0===u?void 0:u.type_)===br.UY.ELIGIBILITY&&l&&u?(0,w.jsx)(mh,{projectId:l,stage:u}):(null===u||void 0===u?void 0:u.type_)===br.UY.SURVEY?m:(0,w.jsx)(w.Fragment,{children:g.length&&v?(0,w.jsxs)(d.xu,{display:"flex",flexGrow:1,height:"100%",children:[(0,w.jsx)(ph,{activeEntity:v,handleFieldNavigationClick:b,sidebarFields:g}),(0,w.jsx)(ef,{phaseType:n,activeEntity:v,onUpdate:a,sidebarFields:g,handleFieldNavigationClick:b})]}):(0,w.jsx)(d.ZT,{sx:{mb:4},children:"Loading..."})})},of=e=>{let{entityId:t,rowId:n,disabled:i}=e;const o=(0,c.I0)(),[a,s]=(0,r.useState)(!1),{projectId:l,stageId:u}=(0,gr.B)(),d=(0,h.C)((e=>(0,_.M0)(e,u))),p=(0,h.C)((e=>(0,_.kq)(e,u))),[f,m]=(0,r.useState)(!1),g=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),{entityRowsByStageId:y}=Lo(l),v=((null===y||void 0===y?void 0:y[u])||{})[t],b=null===v||void 0===v?void 0:v.find((e=>(0,Eo.B)(e)===n));if(!d||!b)return null;const x=p.reduce(((e,t)=>{var n,r,i;const o=(0,$p.x$)(null===t||void 0===t?void 0:t.dependencies,b.values);return{...e,[t.id]:{totalRowsNumber:null===v||void 0===v?void 0:v.length,lockedRowsNumber:null!==b&&void 0!==b&&null!==(n=b.values[t.id])&&void 0!==n&&n.locked?1:0,disabledRowsNumber:o?1:0,isLocked:null===b||void 0===b||null===(r=b.values[t.id])||void 0===r?void 0:r.locked,value:(null===b||void 0===b||null===(i=b.values[t.id])||void 0===i?void 0:i.value)||""}}}),{});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(kd.w,{disabled:i,onClick:()=>s(!0),icon:!0,iconEl:(0,w.jsx)(k.dY,{})}),a&&(0,w.jsx)(Gp,{defaultValues:x,selectedFields:[{entityId:t,rowId:n}],stage:d,attributes:p,onHide:()=>s(!1),onSubmit:async e=>{m(!0);const n=Object.entries(e).map((e=>{let[t,n]=e;const r=parseInt(t,10);return{entity_type:d.entity_type,row_id:null===b||void 0===b?void 0:b.row_id,attribute_id:r,value:n.value,locked:n.isLocked,confirmed:!0,progress:br.nO.Monitoring}}));await o((0,Fr.rc)({update:{[t]:n},projectId:l,entityType:d.entity_type,enableCompletionValidation:g})),m(!1),s(!1)},loading:f})]})},af=e=>{var t,n,r,i,o,a;let{row:l,readOnly:c,isSelected:u,onSelect:d}=e;const p=(0,h.T)(),{row_id:f}=l,m=(0,Eo.B)(l),g=(0,h.C)((e=>(0,_.qB)(e,m))),v=(0,h.C)(S.DC),b=null===g||void 0===g||null===(t=g.core_attributes)||void 0===t?void 0:t.farm_name,x=null===g||void 0===g||null===(n=g.core_attributes)||void 0===n?void 0:n.field_name,k=null===g||void 0===g||null===(r=g.core_attributes)||void 0===r?void 0:r.field_area,C=(0,h.C)(En.k4)===m,M=(0,h.C)(_.AT),T=null===g||void 0===g||null===(i=g.core_attributes)||void 0===i?void 0:i.geometry;return(0,w.jsxs)(gh.Yu,{onClick:()=>{p((0,y.l7)(m))},className:s()({"field-map-row":!0,highlighted:C}),children:[(0,w.jsx)(gh.uM,{className:"mrv-form__checkbox-column",children:(0,w.jsx)(On.XZ,{id:`field-${m}-${f}`,name:`field-${m}-${f}`,onChange:e=>d(m,f,e),disabled:c,checked:u,"aria-label":"select field"})}),(0,w.jsx)(gh.uM,{className:"mrv-form__field-preview-name-column",children:(0,w.jsxs)(Cd.k,{gap:"10px",nowrap:!0,alignItems:"center",children:[T?(0,w.jsx)(wu,{geometry:null===g||void 0===g||null===(o=g.core_attributes)||void 0===o?void 0:o.geometry,kmlId:M[null!==(a=null===g||void 0===g?void 0:g.id)&&void 0!==a?a:-1],mrvFieldId:null===g||void 0===g?void 0:g.id}):null,(0,w.jsxs)("div",{children:[(0,w.jsx)(Rn.x,{className:"field-name",elementType:"div",variant:"medium",title:x,children:x}),(0,w.jsx)(Rn.x,{className:"farm-name",elementType:"div",variant:"small",title:b,children:b})]})]})}),(0,w.jsx)(gh.uM,{nowrap:!0,type:"number",children:(0,w.jsxs)(Rn.x,{secondary:!0,elementType:"small",children:[(0,In.yX)((0,iu.En)(v,ol.Ug.ImperialUnits,k)),(0,In.Ac)(v,ol.Ug.MetricUnits)]})}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)(of,{disabled:c,entityId:m,rowId:f})})]})};function sf(){const{stageId:e,projectId:t}=(0,gr.B)(),n=(0,h.C)((t=>(0,_.M0)(t,e))),[i,o]=(0,r.useContext)(od),a=(0,h.C)(_.dL).isSync,{isReadOnly:l}=wr(br.t5.Monitoring),[c]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),u=a||l||!c,{getValueRows:d}=Lo(t),p=d(e),f=p.length===i.length,m=i.reduce(((e,t)=>({...e,[`${t.entityId}-${t.rowId}`]:!0})),{}),g=(e,t,n)=>{o((r=>n?r.concat({entityId:e,rowId:t}):r.filter((n=>`${n.entityId}-${n.rowId}`!==`${e}-${t}`))))};return(0,w.jsxs)("div",{className:"monitoring-map-view-container",children:[(0,w.jsxs)(Cd.k,{className:"margin-bottom-10",alignItems:"center",justifyContent:"space-between",children:[(0,w.jsx)(Rn.x,{elementType:"div",onClick:()=>{return e=!f,void(u||o(e?p.map((e=>({entityId:(0,Eo.B)(e),rowId:e.row_id}))):[]));var e},link:!0,children:(0,Dn.t)({id:"SelectLabel.Mrv.Select all",defaultMessage:"Select all"})}),(0,w.jsx)(Cd.k,{alignItems:"center",gap:"1rem",children:"mob"===(null===n||void 0===n?void 0:n.entity_type)?(0,w.jsx)(eh,{}):null})]}),(0,w.jsx)(gh.dU,{className:s()({"mrv-table-small":!0,"syncing-operations":a}),responsive:!1,children:(0,w.jsx)(gh.By,{children:p.length?p.map((e=>(0,w.jsx)(af,{row:e,onSelect:g,isSelected:!!m[`${e.field_id}-${e.row_id}`],readOnly:u},`${e.field_id}-${e.row_id}`))):(0,w.jsx)(w.Fragment,{children:"No data"})})})]})}const lf=e=>{let{id:t,title:n,children:r,className:i,style:o,noBorder:a,tooltip:s,info:l,fullWidth:c,isOpen:u,onToggle:p}=e;const h=`${t}-tooltip`;return(0,w.jsxs)(uf,{style:o,className:i,noBorder:a,collapsed:!u,fullWidth:c,children:[(0,w.jsxs)(cf,{"data-testid":t,onClick:p,collapsed:!u,children:[(0,w.jsxs)(ni.k,{alignItems:"center",gap:"8px",children:[n,s&&(0,w.jsx)(d.u,{id:h,title:s,children:(0,w.jsx)(pf,{children:(0,w.jsx)(On.xu,{style:{cursor:"pointer"},"data-for":h,"data-tip":"",children:"help_outline"})})})]}),(0,w.jsxs)(ni.k,{alignItems:"center",gap:"8px",children:[l,(0,w.jsx)(On.xu,{children:u?"keyboard_arrow_down":"keyboard_arrow_right"})]})]}),(0,w.jsx)(On.UO,{animate:!1,collapsed:!u,children:(0,w.jsx)(df,{children:r})})]})},cf=Z.ZP.div`
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 8px;

  ${e=>{let{collapsed:t}=e;return t&&Z.iv`
      padding: 8px;
    `}}
`,uf=Z.ZP.div`
  ${e=>{let{noBorder:t,collapsed:n}=e;return!t&&Z.iv`
      border-radius: 4px;
      border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};

      ${!n&&Z.iv`
        padding: 8px;
      `};
    `}};

  ${e=>{let{fullWidth:t}=e;return t&&Z.iv`
      width: 100%;
    `}};
`,df=Z.ZP.div`
  margin-top: 8px;
`,pf=Z.ZP.div`
  display: flex;
  align-items: center;
`,hf=e=>{var t,n,i;let{phaseType:o,entities:a,onUpdate:l}=e;const c=(0,h.T)(),{stageId:u,projectId:p}=(0,gr.B)(),m=(0,h.C)((e=>(0,_.TG)(e,u))),g=(0,h.C)((e=>(0,_.M0)(e,u))),v=(0,h.C)((e=>(0,_.sZ)(e,o))),[b,x]=(0,r.useContext)(od),k=(0,h.C)(_.dL).isSync,{isReadOnly:C}=wr(o),[S]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS]),M=C||!S,[T,E]=(0,r.useState)(mf(a)),P=(0,wi.Kx)().get("mode"),[I,O]=(0,r.useState)(null===(t=a[0])||void 0===t?void 0:t.id),L=(0,Xn.D)(u),{entityRowsByStageId:R,loadingStageValues:j,allRowsByEntityId:D,validationErrors:A}=Lo(p),N=null!==(n=null===R||void 0===R?void 0:R[u])&&void 0!==n?n:{},F=null!==(i=null===A||void 0===A?void 0:A[u])&&void 0!==i?i:{},[z,B]=(0,Ah.BQ)(Ah.H_.IGNORED_SIMILAR_WARNINGS,[]),[U,$]=(0,Ah.BQ)(Ah.H_.IGNORED_WARNINGS,[]),V=(0,To.Qe)(),{surveyView:q}=Id(br.t5.Monitoring);Hp(Zp.TABLE);const{addRow:Z,removeRow:H}=yh(o,p,g),G=(0,r.useCallback)(((e,t,n)=>{x((r=>n?r.concat({entityId:e,rowId:t}):r.filter((n=>`${n.entityId}-${n.rowId}`!==`${e}-${t}`))))}),[x]);(0,r.useEffect)((()=>{c((0,y.OT)("monitoring"))}),[c]),(0,r.useEffect)((()=>{var e;u!==L&&("sequential"===P?O(null===(e=a[0])||void 0===e?void 0:e.id):E(mf(a)))}),[a,L,u,P]);const W=(0,r.useMemo)((()=>b.reduce(((e,t)=>({...e,[`${t.entityId}-${t.rowId}`]:!0})),{})),[b]);const Y=(0,r.useCallback)(((e,t)=>!!W[`${e}-${t}`]),[W]),K=(0,r.useCallback)((e=>!(null===g||void 0===g||!g.entity_type)&&kh(g.entity_type)&&e.ofs_status===br.TV.InProgress),[null===g||void 0===g?void 0:g.entity_type]);return null!==g&&void 0!==g&&g.entity_type?a.length?g.type_===br.UY.ELIGIBILITY&&p&&g?(0,w.jsx)(mh,{projectId:p,stage:g}):g.type_===br.UY.CONTRACT&&p&&g.phase_id?(0,w.jsx)(oh,{projectId:p,phaseId:g.phase_id,isReadOnly:M}):g.type_===br.UY.SURVEY?q:(0,w.jsxs)(d.xu,{className:"mrv-table-legacy",display:"flex",flexDirection:"column",gap:10,mb:5,children:[g?(0,w.jsx)(gf,{stage:g},g.id):null,a.map(((e,t)=>{var n,r,i;const c=null===(n=b.filter((t=>t.entityId===e.id)))||void 0===n?void 0:n.length;return(0,w.jsxs)(lf,{id:`mrv-table-${e.id}`,title:(0,w.jsx)(d.xu,{ml:3,onClick:e=>e.stopPropagation(),children:(0,w.jsx)(d.t8,{label:(0,w.jsx)(Sh,{entityType:g.entity_type,entity:e}),control:(0,w.jsx)(d.XZ,{indeterminate:c>0&&!(c===(null===(r=N[e.id])||void 0===r?void 0:r.length)),checked:(0,er.$K)(c)&&c===(null===(i=N[e.id])||void 0===i?void 0:i.length),disabled:k||M,onChange:t=>{return n=t.target.checked,r=e.id,void x((e=>{var t;const i=e.filter((e=>e.entityId!==r)),o=(null===(t=N[r])||void 0===t?void 0:t.map((e=>({entityId:r,rowId:e.row_id}))))||[];return n?[...i,...o]:i}));var n,r}})})}),info:g.type_===br.UY.NUTRIENT_MGMT_INTENDED&&kh(g.entity_type)&&(0,w.jsx)(ff,{eligible:e.eligible}),isOpen:!!("sequential"===P?I===e.id:T[e.id]),onToggle:()=>{"sequential"===P?O((t=>t===e.id?void 0:e.id)):E((t=>({...t,[e.id]:!t[e.id]})))},fullWidth:!0,children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:12,children:[(0,wh.S)(g)&&g.timeline_enabled&&g.timeline_start_date&&g.timeline_end_date&&(0,w.jsx)(_h,{entityId:e.id,stage:g,stages:v,rowsByEntityId:D,initialStartDate:new Date(g.timeline_start_date),initialEndDate:new Date(g.timeline_end_date),loading:j}),(0,w.jsx)(d.xu,{"data-testid":"mrv-form--mrv-table",pb:2,width:"100%",display:"flex",flexDirection:"column",flexGrow:1,sx:{overflow:"auto"},children:(0,w.jsxs)(gh.dU,{"data-testid":"mrv-table",className:s()("mrv-table",{"syncing-operations":k}),responsive:!1,children:[(0,w.jsx)(Gh,{attributes:m,getAttributeLabel:V}),(0,w.jsx)(gh.By,{"data-testid":"mrv-table--body",children:(0,w.jsx)(vh.Provider,{value:{setIgnoredSimilarWarnings:B,setIgnoredWarnings:$,ignoredSimilarWarnings:z,ignoredWarnings:U},children:j?(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(gh.uM,{children:(0,w.jsx)(hh.F,{width:30,height:30})}),m.map(((e,t)=>(0,w.jsx)(gh.uM,{children:(0,w.jsx)(hh.F,{width:200,height:30})},t)))]}):(0,w.jsx)(Hh,{phaseType:o,stageId:u,entityId:e.id,rows:N[e.id]||[],validationErrors:F[e.id]||{},readOnly:k||M,isLoading:o===br.t5.Enrolment&&K(e),isSelected:Y,onSelectRow:G,onUpdateValues:l,onAddRow:Z,onRemoveRow:H},e.id)})})]})})]}),"sequential"===P&&(0,w.jsxs)(d.xu,{display:"flex",gap:8,justifyContent:"end",pt:2,children:[t>0&&(0,w.jsx)(d.zx,{sx:{color:"palette.common.white",bgcolor:"palette.primary.light"},onClick:()=>{var e;O(null===(e=a[t-1])||void 0===e?void 0:e.id)},children:(0,w.jsx)(f._H,{id:"BtnLabel.Back",defaultMessage:"Back"})}),t<a.length-1&&(0,w.jsx)(d.zx,{color:"primary",onClick:()=>{var e;O(null===(e=a[t+1])||void 0===e?void 0:e.id)},children:(0,w.jsx)(f._H,{id:"Next",defaultMessage:"Next"})})]})]},e.id)}))]}):(0,w.jsx)(nr.U8,{children:"No entities found. Try removing the crop filters above."}):null};function ff(e){let{eligible:t}=e;return t?(0,w.jsx)(d.ZT,{color:"semanticPalette.text.success",sx:{m:0},children:(0,w.jsx)(f._H,{id:"FieldHistory.Eligible",defaultMessage:"This field has eligible history."})}):(0,w.jsxs)(d.ZT,{color:"palette.grey.600",sx:{m:0},children:[(0,w.jsx)(f._H,{id:"FieldHistory.Ineligible",defaultMessage:"This field has ineligible history"}),"."]})}function mf(e){const t={};for(let r=0;r<e.length;r++){var n;const i=null===(n=e[r])||void 0===n?void 0:n.id;i&&(t[i]=!0)}return t}const gf=e=>{let{stage:t}=e;const n=(0,h.C)(_.no),[i,o]=(0,r.useState)();return(0,r.useEffect)((()=>{if(t&&n){var e;const r=null===(e=n[t.id])||void 0===e?void 0:e.is_completed;!1===i&&r&&(o(!0),tr.Z.track("MRV Stage completed",{Stage:t.type_})),i!==r&&o(r)}}),[n,t,i]),null},yf=[qu.U.UPDATE_PROJECT_VALUES],vf=[qu.U.FETCH_PROGRAM,qu.U.FETCH_PROJECT,qu.U.FETCH_PROJECT_VALUES],bf=[],_f=e=>{var t,n,i;let{phaseType:o}=e;const a=(0,f.YB)(),s=(0,u.TH)(),l=(0,h.T)(),c=(0,h.C)((e=>(0,_.Bs)(e,[br.t5.Monitoring,br.t5.Enrolment])));Bu(c);const{projectId:p,programId:m,stageId:g,entityId:v,summerCrops:b}=(0,gr.B)(),[x,k]=(0,r.useContext)(od),[C,S]=(0,r.useState)(!1),[M,T]=(0,r.useState)(!0),[E,P]=(0,r.useState)(),I=(0,h.C)((e=>(0,_.d1)(e,br.t5.Monitoring))),O=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),L=(0,h.C)(_.nv),R=(0,h.C)((e=>(0,_.M0)(e,g))),j=(0,h.C)((e=>(0,Or.xU)(e,vf))),D=(0,h.C)((e=>(0,Or.xU)(e,yf))),A=(0,h.C)((e=>(0,Or.JM)(e,yf))),N=(0,h.C)((e=>(0,Or.RU)(e,yf))),F=(0,h.C)((e=>cd(e,br.Zi.SummerCropType,b,-1===v?void 0:v))),z=(0,To.bT)(R),{surveyView:B}=Id(br.t5.Enrolment),{isFinishStage:U}=Yo(),{mobs:$}=ed(p,null===R||void 0===R?void 0:R.entity_type),{entityRowsByStageId:V,updateValues:q,revalidate:Z}=Lo(p),H=Jo(o);(0,r.useEffect)((()=>{l((0,y.OT)("enrollment"))}),[]);const G=(0,r.useMemo)((()=>-1===v?$:$.filter((e=>e.id===v))),[$,v]),W=(0,r.useMemo)((()=>{switch(null===R||void 0===R?void 0:R.entity_type){case"farm":return L;case"field":return F;case"mob":return G}return bf}),[L,F,G,null===R||void 0===R?void 0:R.entity_type]);if((0,r.useEffect)((()=>{W.length&&!E&&P(W[0])}),[W,E,P]),null===I||void 0===I||null===(t=I.stages)||void 0===t||!t.length)return null;const Y=o===br.t5.Monitoring?Wo.lk:Wo.CP;if(!g||R&&H(R)){const[e]=I.stages;return e?(0,w.jsx)(u.l_,{to:{pathname:(0,xo.F_)(Y,{projectId:p,stageType:(0,ki.vM)(null===R||void 0===R?void 0:R.type_)}),search:(0,fo._D)(s.search,{stageId:e,programId:m})}}):(0,w.jsx)(w.Fragment,{children:"Program has no stages"})}if(!v){const[e]=L;return null!==e&&void 0!==e&&e.id?(0,w.jsx)(u.l_,{to:{pathname:(0,xo.F_)(Y,{projectId:p,stageType:(0,ki.vM)(null===R||void 0===R?void 0:R.type_)}),search:(0,fo._D)(s.search,{stageId:g,entityId:Go.en,programId:m})}}):(0,w.jsx)(w.Fragment,{children:a.formatMessage({id:"Project has no fields",defaultMessage:"Project has no fields"})})}const K=a.formatMessage({id:"{rowsNumber} {rowsNumber, plural, one {row} other {rows}} selected",defaultMessage:"{rowsNumber} {rowsNumber, plural, one {row} other {rows}} selected"},{rowsNumber:x.length});return(0,w.jsx)(Ld.z.Provider,{value:{entityValueRows:(null===V||void 0===V?void 0:V[g])||{},stageId:null===R||void 0===R?void 0:R.id,usingHackyCompositeInput:M,setUsingHackyCompositeInput:T,revalidateEntityValueRows:Z,phaseType:o,bulkEditDialogVisible:C},children:(0,w.jsxs)(wf,{className:"mrv-form","data-testid":"mrv-form",children:[o===br.t5.Enrolment&&(null===R||void 0===R?void 0:R.type_)===br.UY.SURVEY&&B,!(0,To.So)(null===R||void 0===R?void 0:R.type_)&&!U(g)&&(0,w.jsxs)(d.xu,{className:"mrv-form-header-wrapper",children:[(0,w.jsxs)(d.xu,{className:"mrv-form-header-elements",display:"flex",justifyContent:"space-between",children:[(0,w.jsx)(d.xu,{className:"mrv-form-stage-text-wrapper",display:"flex",alignItems:"flex-end",justifyContent:"space-between",mb:4,flexBasis:"50%",children:(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.xu,{className:"mrv-stage-title-wrapper",display:"flex",alignItems:"center",children:(0,w.jsx)(d.ZT,{variant:"h2",children:o===br.t5.Enrolment?O&&z?z:a.formatMessage({id:"Enroll.Fields and boundaries",defaultMessage:"Fields and boundaries"}):(0,To.bT)(R)||a.formatMessage({id:"MonitoringStageStep.Measurement",defaultMessage:"Measurement"})})}),(0,w.jsxs)(d.xu,{className:"mrv-stage-description-wrapper",mt:4,children:[(0,w.jsx)(Ku,{children:(0,w.jsx)(d.ZT,{className:"description",children:a.formatMessage({id:"Select fields from the list below or map to fill in operation information.",defaultMessage:"Select fields from the list below or map to fill in operation information."})})}),(0,w.jsx)(Yu,{children:(0,w.jsx)(d.ZT,{className:"description",children:null!==(n=null===R||void 0===R?void 0:R.description)&&void 0!==n?n:a.formatMessage({id:"MonitFillInfoMessage",defaultMessage:"Fill out your management information for each of the fields below. To move on to the next operation, use the horizontal navigation or the button at the bottom of the screen."})})})]})]})}),(0,w.jsx)(d.xu,{className:"mrv-form-action-buttons-wrapper",display:"flex",alignItems:"end",justifyContent:"space-between","data-cy":"monitoring-filters-panel",ml:4,mb:4,flexBasis:"fit-content",flexShrink:0,children:(0,w.jsx)(Yu,{children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:4,ml:"auto",children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[j&&(0,w.jsxs)(d.ZT,{color:"secondary",children:[(0,w.jsx)(d.xu,{mr:2,display:"inline-block",children:(0,w.jsx)(d.le,{type:"cloud-saving",fontSize:"h5"})}),a.formatMessage({id:"Entity.Value.Saving",defaultMessage:"Saving..."})]}),!j&&(0,w.jsxs)(w.Fragment,{children:[D&&(0,w.jsxs)(d.ZT,{color:"secondary",children:[(0,w.jsx)(d.xu,{mr:2,display:"inline-block",children:(0,w.jsx)(d.le,{type:"cloud-saving",fontSize:"h5"})}),a.formatMessage({id:"Entity.Value.Saving",defaultMessage:"Saving..."})]}),A&&(0,w.jsxs)(d.ZT,{color:"secondary",children:[(0,w.jsx)(d.xu,{mr:2,display:"inline-block",children:(0,w.jsx)(d.le,{type:"cloud-saved",fontSize:"h5"})}),a.formatMessage({id:"Entity.Value.Saved",defaultMessage:"Saved"})]}),N&&(0,w.jsx)(d.u,{placement:"top",title:a.formatMessage({id:"Entity.Value.ErrorMessage",defaultMessage:"Check your internet connection or reach out to support for assistance."}),children:(0,w.jsxs)(d.ZT,{color:"error",children:[(0,w.jsx)(d.xu,{mr:2,display:"inline-block",children:(0,w.jsx)(d.le,{type:"cloud-error",fontSize:"h5"})}),a.formatMessage({id:"Entity.Value.Error",defaultMessage:"Error saving"})]})})]})]}),!!x.length&&(0,w.jsx)(d.xu,{sx:{".MuiChip-root:has(>svg)":{py:"2px"}},children:(0,w.jsx)(d.Af,{color:"primary",label:K,onDelete:()=>k([]),deleteIcon:(0,w.jsx)(d.le,{type:"cross"})})}),"mob"===(null===R||void 0===R?void 0:R.entity_type)?(0,w.jsx)(eh,{}):null,(0,w.jsx)(Yp,{fields:F,activeEntity:E,phaseType:o,bulkEditDialogVisible:C,setBulkEditDialogVisible:S})]})})})]}),(0,w.jsxs)(d.xu,{className:"mrv-stage-notifications",mb:4,children:[o===br.t5.Enrolment&&(null===R||void 0===R?void 0:R.type_)!==br.UY.SURVEY&&(null===R||void 0===R?void 0:R.optis_prefill)&&(0,w.jsx)(id,{}),null===R||void 0===R||null===(i=R.messages)||void 0===i?void 0:i.map(((e,t)=>(0,w.jsx)(Xu.f,{message:e},t)))]}),(0,w.jsx)(d.xu,{mb:4,children:(0,w.jsx)(nh,{})})]}),(0,w.jsx)(Yu,{children:"field"===(null===R||void 0===R?void 0:R.entity_type)||U(g)?(0,w.jsx)(rf,{fields:F,activeEntity:E,setActiveEntity:P,phaseType:o,onUpdate:q}):(0,w.jsx)(hf,{phaseType:o,entities:W,onUpdate:q})}),(0,w.jsx)(Ku,{children:(0,w.jsx)(sf,{})})]})})},wf=(0,Z.ZP)(d.xu).attrs({display:"flex",flexDirection:"column",flexGrow:1,height:"100%",minHeight:`calc(100vh - ${zu.M+61+16}px)`,pb:4})`
  .description {
    color: #000000de;
  }

  .fluro-table-column:first-child {
    padding-left: 5px;
  }

  .mrv-form__checkbox-column.fluro-table-column {
    padding: 0 5px;
    width: 60px;
  }
  .mrv-form__field-preview-name-column.fluro-table-column {
    padding: 0 10px;
  }

  .field-name {
    color: #000000de;
  }

  .farm-name {
    color: #7a7a7a;
  }

  .farm-name,
  .field-name {
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .monitoring-map-view-container {
    .farm-name,
    .field-name {
      width: 90px;
    }

    .md-table-column:first-child {
      padding-left: 0;
      padding-right: 0;
    }
  }
`;function xf(){const e=(0,h.C)(_.aH),t=(0,h.C)(vr.yl),n=(0,h.C)((t=>(0,_.qz)(t,e)));return(0,r.useMemo)((()=>{const e=new Set(t.map((e=>e.FieldID))),r=new Set(n.map((e=>e.fs_field_id))),i=[],o=[];for(const n of t){r.has(n.FieldID)||i.push({fs_field_id:n.FieldID})}for(const t of n){!e.has(t.fs_field_id)&&o.push(t.id)}return{fieldsToEnroll:i,fieldsToRemove:o}}),[n,t])}const kf=(0,r.createContext)({boundaryViolationsByFieldId:{},setBoundaryViolationsByFieldId:()=>{}});var Cf=n(12581),Sf=n(26264);const Mf=(0,Cf.hg)("carbon/saveEnrolledFields",(async(e,t)=>{let{fieldsToEnroll:n,fieldsToRemove:r}=e;const i=t.getState(),o=(0,_.aH)(i),a=(0,_.Sl)(i,o);return(0,_.d1)(i,br.t5.Enrolment)?o?(r.length&&await(async(e,t,n,r)=>{await t((0,Fr.Yu)({projectId:e,mrvFieldIds:n,stageId:r}))})(o,t.dispatch,r,void 0),n.length?await async function(e,t,n){try{const i=await Nr.eV.addProjectFields(e,n),o={};for(const e of i.data){var r;null!==(r=e.boundary_rule_violations)&&void 0!==r&&r.length&&(o[e.fs_field_id]=e.boundary_rule_violations)}return(0,ii.O7)(o)?{hasError:!0,fieldsWithBoundaryViolations:o}:(await t((0,qr.Mv)({projectId:e})),{hasError:!1})}catch(a){if((0,Sf.IZ)(a)){var i,o;const e=null===a||void 0===a||null===(i=a.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.detail,n=null===e||void 0===e?void 0:e.results;if(n&&(0,ii.O7)(n))return{hasError:!0,fieldsWithBoundaryViolations:n};const r=null===e||void 0===e?void 0:e.disallowed_fields;if(null!==r&&void 0!==r&&r.length){const e={};for(const t of r)e[t]=!0;t(Do.E.setIneligibleRegionFields(e))}}return{hasError:!0}}}(o,t.dispatch,n):{hasError:!1}):{hasError:!0}:((0,C.e)(`Trying to save enrolled fields without enrolment phase in the program: ${null===a||void 0===a?void 0:a.id}`),(0,Yn.c)({title:"Error",message:"Enrollment phase is not configured correctly. Please contact your administrator.",type:"error"}),{hasError:!0})}));var Tf=n(60463);const Ef=e=>{let{onClose:t,onContinue:n}=e;const r=(0,f.YB)();return(0,w.jsxs)(d.o9,{title:r.formatMessage({id:"Confirm field boundaries",defaultMessage:"Confirm field boundaries"}),onClose:t,open:!0,id:"confirm-enrol-fields",maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.ZT,{children:r.formatMessage({id:"Some of your enrolled fields contain boundary warnings. Either continue to the next step, or fix your field boundaries to resolve the warnings.",defaultMessage:"Some of your enrolled fields contain boundary warnings. Either continue to the next step, or fix your field boundaries to resolve the warnings."})})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:n,children:r.formatMessage({id:"BtnLabel.Continue",defaultMessage:"Continue"})}),(0,w.jsx)(d.zx,{onClick:t,children:r.formatMessage({id:"BtnLabel.ReviewFields",defaultMessage:"Fix boundaries"})})]})]})},Pf=(0,d.zo)(d.xu)`
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-top: ${e=>{let{theme:t}=e;return t.spacing(2)}};
  .description {
    color: ${e=>{let{theme:t}=e;return t.palette.text.primary}};
    span {
      font-weight: 500;
    }
  }

  .notice-info-block,
  .notice-warn-block {
    padding: 10px;
    margin-bottom: 10px;
    color: $main-gray-700;
    .title {
      font-weight: 500;
    }
    .emphasize {
      font-weight: 500;
      text-decoration: underline;
    }
  }

  .farm-list {
    border-radius: 4px;
    border: 1px solid ${e=>{let{theme:t}=e;return t.palette.divider}};

    .farm {
      .farm__row {
        background: ${e=>{let{theme:t}=e;return t.palette.divider}};
        height: 52px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        font-weight: 500;

        &.overlap {
          background: #fdf3d9;
        }

        .farm-checkbox-container {
          margin-right: auto;
          width: 166px;
        }

        .checkbox-label {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          width: 128px;
          font-size: 16px;
          color: ${e=>{let{theme:t}=e;return t.palette.text.primary}};
          font-weight: 400;
          .subtext {
            font-size: 12px;
            color: ${e=>{let{theme:t}=e;return t.palette.text.secondary}};
          }
        }

        .farm-area {
          width: 57px;
          margin: 0 2px;
          font-size: 14px;
          font-weight: 400;
          color: ${e=>{let{theme:t}=e;return t.palette.grey[600]}};
        }
        @media (max-width: 560px) {
          .farm-checkbox-container {
            width: 152px;
          }
          .checkbox-label {
            width: 110px;
          }
        }
      }

      .field {
        position: relative;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.palette.divider}};
        cursor: pointer; // the whole row is clickable (highlight field action)

        &.no-border {
          border-bottom: none;
        }

        &.overlap {
          background: #fdf3d9;
        }

        &.highlighted {
          background-color: ${e=>{let{theme:t}=e;return t.palette.grey[100]}};
        }

        .field-checkbox {
          margin-left: 28px;
          margin-right: auto;
        }
      }

      &:first-child {
        .farm__row {
          border-radius: 4px 4px 0 0;
        }
      }

      &:last-child:not(.farm--expanded) {
        .farm__row {
          border-radius: 0 0 4px 4px;
        }
      }
    }

    .actions-button__menu-list {
      .md-list-item {
        font-weight: 400;
      }
    }

    .expand-btn {
      width: 35px;
      height: 35px;
      padding: 6px;
    }
  }

  .sticky--container {
    margin-top: auto;
  }

  .field-area {
    margin: 0 2px;
    color: ${e=>{let{theme:t}=e;return t.palette.grey[600]}};
    white-space: nowrap;
  }

  .field-item-right-block {
    display: flex;
    align-items: center;
  }

  .ineligible-icon {
    width: 15px;
    height: 15px;
    margin-right: 4px;
    margin-left: 4px;

    &.overlap {
      color: #f9d76d;
    }
  }

  .selected-fields-info {
    color: ${e=>{let{theme:t}=e;return t.palette.grey[600]}};
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  .md-selection-control-toggle.md-text--disabled {
    color: gray;
  }

  .message-wrapper {
    padding: 5px 10px;
    border-bottom: 1px solid #f1f1f1;
  }

  .protected-area-block {
    b {
      color: ${e=>{let{theme:t}=e;return t.palette.grey[600]}};};
      font-weight: 500;
    }

    > div {
      margin-top: 0;
    }
  }
`,If=()=>(0,w.jsx)(f._H,{id:"The field is located outside the eligible regions.",defaultMessage:"The field is located outside the eligible regions."}),Of=e=>{let{label:t,disabled:n,actions:i}=e;const[o,a]=(0,r.useState)(null),s=Boolean(o),l=()=>{a(null)},c=(0,r.useMemo)((()=>i.filter((e=>e)).map(((e,t)=>{let{onClick:n,label:r}=e;return(0,w.jsx)(d.sN,{onClick:()=>{n(),l()},children:r},t)}))),[i]);return c.length?(0,w.jsxs)(d.xu,{mr:2,ml:1,children:[(0,w.jsx)(d.zx,{"aria-label":t,"aria-expanded":s?"true":void 0,onClick:e=>{a(e.currentTarget)},disabled:n,color:"secondary",variant:"text",children:(0,w.jsx)(d.le,{type:"dots-vertical"})}),(0,w.jsx)(d.v2,{anchorEl:o,open:s,onClose:l,children:c})]}):null};function Lf(e){let{currentFarmId:t,fieldsByFarmId:n,onClose:i}=e;const o=(0,f.YB)(),a=(0,h.T)(),l=(0,h.C)((e=>e.carbon)),c=(0,h.C)(_.Je),{projectId:u}=(0,wi.tZ)(),p=(0,h.C)(S.DC),g=(0,h.C)(En.rm),v=(0,h.C)(En.k4),b=(0,r.useMemo)((()=>Object.values((null===n||void 0===n?void 0:n[t])||{})),[n,t]),[x,k]=(0,r.useState)(new Set),M=(0,h.C)(Tn.pD),T=(0,r.useMemo)((()=>M.map((e=>({label:e.name,value:e.id})))),[M]),[E,P]=(0,r.useState)({}),[I,O]=(0,r.useState)(!1),[L,R]=(0,r.useState)((()=>(0,Pn.w0)(b,"Name","string"))),[j,D]=(0,r.useState)(!1),{formState:{errors:A},control:N,reset:F,watch:z}=(0,Cn.cI)({mode:"onChange",resolver:(0,kn.X)(Un),defaultValues:{farmName:""}}),B=z(),U=(0,r.useCallback)(((e,t)=>{a((0,m.eE)(e,W.h.Checked,t))}),[a]),$=(0,r.useCallback)(((e,t,n)=>{const r=e;a((0,m.vJ)(r,n,t))}),[a]),V=(0,r.useCallback)(((e,t)=>{$(t,e,W.h.Checked)}),[$]),q=(0,r.useCallback)((async(e,t)=>{const n={...E};if(t)n[t]=e,U(t,!1);else{const t=[...x].map((t=>(n[t]=e).toString()));V(!1,t)}P(n)}),[V,U,E,x]),Z=(0,r.useCallback)((async e=>{const t=B.farmName.trim();if(!await Un.isValid({farmName:t}))return;const n=T.find((e=>e.label.toLowerCase()===t.toLowerCase()));let r=null===n||void 0===n?void 0:n.value;var i;r||(r=null===(i=await a((0,Jn.yL)({id:0,name:t})))||void 0===i?void 0:i.id);r&&e&&await q(r,e),O(!1),F()}),[a,T,q,F,B.farmName]),H=(0,r.useCallback)((e=>{const n=(0,Pn.uy)(M,t),r=[];return I?r.push({customSelectFunction:()=>null,value:"new-farm",label:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"flex-start",gap:4,justifyContent:"space-between",children:[(0,w.jsx)(Cn.Qr,{name:"farmName",control:N,render:e=>{var t;let{field:{value:n,onChange:r}}=e;return(0,w.jsx)(d.nv,{onChange:e=>r(e.target.value),value:n,helperText:null===A||void 0===A||null===(t=A.farmName)||void 0===t?void 0:t.message,error:!!A.farmName,fullWidth:!0})}}),(0,w.jsx)(d.zx,{onClick:()=>{Z(e)},children:(0,w.jsx)(f._H,{id:"Add",defaultMessage:"Add"})}),(0,w.jsx)(Mn,{callback:()=>Z(e),keys:["Enter"]})]})}):r.push({customSelectFunction:()=>O(!0),value:"new-farm",label:(0,w.jsx)(d.zx,{startIcon:(0,w.jsx)(d.le,{type:"plus"}),variant:"outlined",children:(0,w.jsx)(f._H,{id:"Add farm",defaultMessage:"Add farm"})})}),n&&T.length>1&&r.push({value:n.id,label:o.formatMessage({id:"Upload to current farm: {farmName}",defaultMessage:"Upload to current farm: {farmName}"},{farmName:n.name})}),r}),[I,N,t,A.farmName,M,T.length,Z,o]);return(0,w.jsxs)(d.o9,{title:o.formatMessage({id:"Edit fields",defaultMessage:"Edit fields"}),onClose:i,open:!0,id:"edit-farms-fields",maxWidth:"lg",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.ZT,{children:o.formatMessage({id:"Below you can rename fields or assign them to a new farm.",defaultMessage:"Below you can rename fields or assign them to a new farm."})}),L.length>0&&(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",ml:4,mt:4,mb:4,children:[(0,w.jsx)(d.t8,{label:o.formatMessage({id:"{count1} / {count2} fields selected",defaultMessage:"{count1} / {count2} fields selected"},{count1:x.size,count2:b.length}),control:(0,w.jsx)(d.XZ,{indeterminate:x.size>0&&x.size<b.length,checked:x.size===b.length,onChange:(e,t)=>k((e=>{const n=new Set(e);if(t)for(const t of b)n.add(t.ID);else n.clear();return n}))})}),x.size>0&&(0,w.jsx)(Sn.H,{items:T,isSearchable:!0,fixedToTopItems:H(),selectedValue:null,onSelect:q,Button:e=>{let{onClick:t}=e;return(0,w.jsx)(d.zx,{onClick:t,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Assign to farm",defaultMessage:"Assign to farm"})})}})]}),(0,w.jsx)(d.xJ,{children:(0,w.jsx)(d.iA,{children:(0,w.jsx)(d.RM,{children:L.map((e=>{const n=null===g||void 0===g?void 0:g[e.MD5],r=v===e.ID,i=!l.eligibleRegionFields[e.ID],a=`${(0,iu.En)(p,ol.Ug.ImperialUnits,e.Area)} ${o.formatMessage({id:p,defaultMessage:p})}`,u=E[e.ID]||t;return(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{size:"small",className:s()({highlighted:r}),children:(0,w.jsx)(d.xu,{display:"flex",justifyContent:"center",children:(0,w.jsx)(d.XZ,{checked:x.has(e.ID),disabled:i,onChange:(t,n)=>{k((t=>{const r=new Set(t);return n?r.add(e.ID):r.delete(e.ID),r}))}})})}),n&&(0,w.jsx)(d.pj,{size:"small",children:(0,w.jsx)(d.xu,{display:"flex",justifyContent:"center",children:(0,w.jsx)(Ln.$,{data:n,size:fh.W,onEachFeature:fh.a,kmlId:e.ID,mrvFieldId:c[e.ID]})})}),(0,w.jsx)(d.pj,{size:"small",children:(0,w.jsx)(d.nv,{id:`edit-field-name-${e.ID}`,value:e.Name,fullWidth:!0,onChange:t=>{return n=e.ID,r=t.target.value,void R((e=>e.map((e=>e.ID===n?{...e,Name:r}:e))));var n,r}})}),(0,w.jsx)(d.pj,{size:"small",children:(0,w.jsx)(d.ZT,{color:"secondary",children:a})}),(0,w.jsx)(d.pj,{size:"small",children:(0,w.jsx)(Sn.H,{placeholder:u?String(u):o.formatMessage({id:"Select farm",defaultMessage:"Select farm"}),items:T,isSearchable:!0,fixedToTopItems:H(e.ID.toString()),selectedValue:u,onSelect:async t=>{await q(t,e.ID.toString())},className:s()("field-row-farm-selector",{unselected:!u})})})]},e.FieldID)}))})})})]}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:i,children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.fl,{loading:j,onClick:async()=>{try{D(!0);const n={};for(const t of Object.entries(E)){const r=Number(t[0]),i=L.find((e=>e.ID===r));if(i){const o=c[r],a=Number(t[1]);var e;if(n[a])null===(e=n[a])||void 0===e||e.push({fs_field_id:i.FieldID,mrv_field_id:o});else n[a]=[{fs_field_id:i.FieldID,mrv_field_id:o}]}}await Promise.all(Object.entries(n).map((async e=>{let[t,n]=e;return(0,Fr.sp)({projectId:u,target_farm_id:Number(t),field_data:n})})));const r=[];for(const e of b)for(const n of L)e.ID===n.ID&&e.Name!==n.Name&&r.push(a((0,y.tM)("Name",n.Name,Number(E[n.ID])||t,[n.ID])));await Promise.all(r);const o=M.map((e=>e.id));await a((0,y.NV)(o)),i()}catch(n){D(!1),(0,Yn.c)({message:o.formatMessage({id:"An error occurred while updating the fields.",defaultMessage:"An error occurred while updating the fields."}),type:"error"}),(0,C.e)(n)}},children:(0,w.jsx)(f._H,{id:"Save",defaultMessage:"Save"})})]})]})}var Rf=n(16028),jf=n(5395),Df=n.n(jf),Af=n(83312);const Nf=e=>{let{boundaryViolations:t=[],canCreateFields:n,canDeleteFields:i,checkboxIsDisabled:o,editable:a,selected:l,farmId:c,field:u,fieldArea:p,geometry:f,hasProtectedArea:m,highlighted:g,ineligible:v,isReadOnly:x,overlap:k}=e;const{ID:S,Name:M,MD5:T}=u,E=(0,h.T)(),P=(0,Rf.mE)().map,I=(0,h.C)(_.aH),O=(0,h.C)(_.Je),L=(0,r.useCallback)((()=>{try{E((0,y.hT)(!1));const e=new jf.GeoJSON(f);P.fitBounds(e.getBounds(),{padding:[50,50]}),setTimeout((()=>E((0,y.q2)(!0,S))),500)}catch(ag){(0,C.e)("Edit field boundary")}}),[S,f]),R=[{label:Af.NW.formatMessage({id:"Download field boundary",defaultMessage:"Download field boundary"}),onClick:()=>E(((e,t,n)=>()=>{const r=new FormData;r.set("md5",e.join(",")),Nr.pZ.downloadKml(r,t,n).then((e=>{let{data:t}=e;(0,hp.Sv)(t,`Boundary_${n}.zip`,hp.HY.ApplicationZIP)})).catch((e=>{(0,Yn.c)({title:(0,Dn.t)({id:"note.error",defaultMessage:"Error"}),message:(0,Dn.t)({id:"Cannot download KMLs",defaultMessage:"Cannot download KMLs"}),type:"error"}),reportError(`Error during downloading kmls err=${e}`)}))})([T],c,M))}];n&&R.push({label:Af.NW.formatMessage({id:"Edit name",defaultMessage:"Edit name"}),onClick:()=>E((0,b.qO)(b.iR.editFieldName,!0,{field:u,farmId:c}))}),i&&R.push({label:Af.NW.formatMessage({id:"Delete",defaultMessage:"Delete"}),onClick:()=>E((0,b.qO)(b.iR.deleteDialog,!0,{title:Af.NW.formatMessage({id:"Delete field?",defaultMessage:"Delete field?"}),onSubmit:async()=>{E(Do.E.removeKMLsFromRedux({kmlIds:[S]})),E((0,y.fO)(c,[S]));const e=O[S];e&&E((0,Fr.Yu)({projectId:I,mrvFieldIds:[e],stageId:void 0}))}}))}),a&&R.unshift({label:Af.NW.formatMessage({id:"Edit boundary",defaultMessage:"Edit boundary"}),onClick:L});const j=(0,r.useCallback)((()=>{E((0,y.l7)(S)),o||E((0,$u.ly)({[S]:!l}))}),[E,S,l,o]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:s()("field pl-6",{overlap:k,highlighted:g,"no-border":m||v}),onClick:j,children:[(0,w.jsxs)(d.xu,{display:"flex",minWidth:"200px",flexWrap:"nowrap",alignItems:"center",gap:2,children:[(0,w.jsx)(d.XZ,{inputProps:{"aria-label":M},checked:l,disabled:o}),f&&(0,w.jsx)(Ln.$,{kmlId:S,mrvFieldId:O[S],data:f,onEachFeature:fh.a,size:fh.W}),(0,w.jsx)(d.bd,{className:"field-name",variant:"body1",children:M})]}),(0,w.jsxs)("div",{className:"field-item-right-block",children:[(0,w.jsx)("div",{className:"field-area",children:p}),(0,w.jsx)(Of,{actions:R,disabled:x,label:`${M}-field-menu-action-button`})]})]}),m&&(0,w.jsx)("div",{className:"message-wrapper protected-area-block",children:(0,w.jsx)(rr,{})}),k&&(0,w.jsx)("div",{className:"message-wrapper protected-area-block",children:(0,w.jsx)(nr.U8,{appearance:"error",className:"mt-0",color:"error",mini:!0,title:Af.NW.formatMessage({id:"Overlapping fields.",defaultMessage:"Overlapping fields."}),children:Af.NW.formatMessage({id:"This field overlaps another field. Please deselect one of them or edit the boundaries.",defaultMessage:"This field overlaps another field. Please deselect one of them or edit the boundaries."})})}),v&&(0,w.jsx)("div",{className:"message-wrapper",children:(0,w.jsx)(nr.U8,{appearance:"error",className:"mt-0",color:"error",mini:!0,title:Af.NW.formatMessage({id:"Ineligible location.",defaultMessage:"Ineligible location"}),children:Af.NW.formatMessage({id:"This field is outside the program boundary, please deselect it.",defaultMessage:"This field is outside the program boundary, please deselect it."})})}),t.map((e=>{let{rule:t,error_level:n,message:r}=e;return"error"===n||"warning"===n?(0,w.jsx)("div",{className:"message-wrapper",role:"error"===n?"alert":"status","aria-label":r,children:(0,w.jsx)(nr.U8,{appearance:n,className:"mt-0",color:n,mini:!0,children:Af.NW.formatMessage({id:r,defaultMessage:r})})},t+n):null}))]})},Ff=e=>{let{boundaryViolationsByFieldId:t={}}=e;const n=(0,h.T)(),i=(0,h.C)((e=>e.carbon)),o=i.enrolledFields,a=(0,h.C)(_.gi),l=(0,h.C)(En.Xp),c=(0,h.C)(Tn.pD),u=(0,h.C)(_.nv),p=(0,h.C)(En.xP),m=(0,h.C)(S.DC),y=(0,h.C)(En.rm),v=(0,h.C)(En.MT),{projectId:x}=(0,wi.tZ)(),{isReadOnly:k}=wr(br.t5.Enrolment),C=(0,h.C)(En.k4),M=(0,h.C)(g.gR),[T,E]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS,br.aR.DELETE_PROJECT_FIELDS]),P=(0,h.C)(S.Im),I=((0,h.C)(S.yX)||P)&&E,O=(0,h.C)(jo.sJ),L=(0,h.C)((e=>(0,_.SI)(e,null===O||void 0===O?void 0:O.id))),[R,j]=(0,r.useState)({}),[D,A]=(0,r.useState)(null),N=(0,f.YB)(),F=(0,r.useMemo)((()=>Object.keys(l||{}).reduce(((e,t)=>{const n=Number(t),r=(0,Pn.uy)(c,n);return r?[...e,r]:e}),[])),[l,c]);(0,r.useEffect)((()=>{if(F&&(0,ii.O7)(t)){const e=Object.entries(l||{}).reduce(((e,n)=>{let[r,i]=n;return Object.values(i).some((e=>t[e.FieldID]))?{...e,[r]:!0}:e}),{});(0,ii.O7)(e)&&j(e)}}),[t,F,l]),(0,r.useEffect)((()=>{const e={};v.forEach((t=>{e[t.ID]=!0})),n(Do.E.setEligibleRegionFields(e))}),[n,v,y]);const z=(e,t)=>{j((n=>({...n,[e]:void 0!==t?t:!n[e]})))},B=e=>{const t=[];let n=!0;for(const i in null===l||void 0===l?void 0:l[e]){var r;const s=Number(i),c=null===(r=l[e])||void 0===r?void 0:r[s];null!==c&&void 0!==c&&c.DeletedAt&&!a[s]||(n&&!o[s]&&(n=!1),t.push(s))}return t.length>0&&n},U=(0,r.useMemo)((()=>new Set(i.overlapFields.flat())),[i.overlapFields]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"farm-list",children:F.map((e=>{var r;const h=e.id,f=Object.values((null===l||void 0===l?void 0:l[h])||{}).filter((e=>!e.DeletedAt||a[e.ID])),g=Object.keys((null===l||void 0===l?void 0:l[h])||{}).map(Number),_=g.some((e=>U.has(e)));if(!f.length)return null;const S=(null===(r=c.find((e=>e.id===h)))||void 0===r?void 0:r.name)||(null===p||void 0===p?void 0:p.id)===h&&(null===p||void 0===p?void 0:p.name)||"",E=(0,iu.En)(m,ol.Ug.ImperialUnits,f.reduce(((e,t)=>e+t.Area),0)),P=E>1e3?`${(0,_u.cF)(E/1e3,1)}k `:E,O=f.filter((e=>o[e.ID])),j=B(h),D=f.every((e=>!i.eligibleRegionFields[e.ID])),F=R[h],$=F?(0,Pn.w0)(f,"Name","string"):[],V=[];return T&&V.push({label:N.formatMessage({id:"Edit name",defaultMessage:"Edit name"}),onClick:()=>n((0,b.qO)(b.iR.editFarmName,!0,{farmId:h,farmName:S,projectId:x}))},{label:N.formatMessage({id:"Move field(s) to another farm",defaultMessage:"Move field(s) to another farm"}),onClick:()=>A(h)}),I&&V.push({label:N.formatMessage({id:"Delete",defaultMessage:"Delete"}),onClick:()=>n((0,b.qO)(b.iR.deleteDialog,!0,{title:N.formatMessage({id:"Delete farm?",defaultMessage:"Delete farm?"}),onSubmit:async()=>{var e;n(Do.E.removeKMLsFromRedux({kmlIds:g}));const t=g.map((e=>{var t;return null===(t=a[e])||void 0===t?void 0:t.id})).filter(er.$K);await n((0,Fr.Yu)({projectId:x,mrvFieldIds:t,stageId:void 0})),await n((0,Jn.Gw)(h,!0));const r=null===(e=u.find((e=>e.core_farm_group_id===h)))||void 0===e?void 0:e.id;(0,er.$K)(r)&&(0,Fr.Og)({projectId:x,mrvFarmId:r})}}))}),(0,w.jsxs)("div",{className:s()("farm",{"farm--expanded":F}),children:[(0,w.jsxs)("div",{className:s()("farm__row",{overlap:_}),children:[(0,w.jsx)("div",{className:"farm-checkbox-container ml-05",onClick:()=>{D&&z(h,!0)},children:(0,w.jsx)(d.t8,{label:(0,w.jsxs)("div",{title:S,className:"checkbox-label",children:[S,(0,w.jsx)("div",{className:"subtext",children:N.formatMessage({id:"{count1} / {count2} fields selected",defaultMessage:"{count1} / {count2} fields selected"},{count1:O.length,count2:f.length})})]}),control:(0,w.jsx)(d.XZ,{inputProps:{"aria-label":N.formatMessage({id:"Select all fields for {farmName}",defaultMessage:"Select all fields for {farmName}"},{farmName:S})},indeterminate:O.length>0&&!j,disabled:k||!T,checked:!!j,onChange:()=>(async(e,t)=>{const r=void 0!==t?t:!B(e),o=null===l||void 0===l?void 0:l[e],s=i.eligibleRegionFields,c=(0,ki.CL)(o,s,r);if(r)return void await n((0,$u.ly)(c));const u=Object.keys(c).map(Number).some((e=>{var t,n;const r=null===(t=a[e])||void 0===t?void 0:t.id;return null===(n=r?L[r]:[])||void 0===n?void 0:n.find((e=>e.value&&"user"===e.source))}));if(!u)return void await n((0,$u.ly)(c));confirm(N.formatMessage({id:"If you decide to enroll this farm again, you will need to re-enter its cropping practices.",defaultMessage:"If you decide to enroll this farm again, you will need to re-enter its cropping practices."}))&&await n((0,$u.ly)(c))})(h,!j&&!O.length)})})}),(0,w.jsx)(On.zx,{"aria-label":`${S} field list`,"aria-controls":`#${S}-field-list`,"aria-expanded":F,className:"expand-btn",icon:!0,onClick:()=>z(h),children:F?"keyboard_arrow_down":"keyboard_arrow_right"}),(0,w.jsxs)("div",{className:"farm-area",children:[P,"\xa0",N.formatMessage({id:m,defaultMessage:m})]}),(0,w.jsx)(Of,{label:`${S}-farm-menu-action-button`,disabled:k||!T,actions:V})]}),F&&(0,w.jsx)("div",{id:`${S}-field-list`,children:$.map((n=>{var r,s;const l=!(null===(r=v.find((e=>e.ID===n.ID)))||void 0===r||!r.DeletedAt),c=!!o[n.ID],u=a[n.ID];if(l&&!u)return null;const d=null===y||void 0===y?void 0:y[n.MD5],p=!(null!==(s=n.Seasons)&&void 0!==s&&s.length)&&!n.external_service&&T,h=C===n.ID,f=U.has(n.ID),g=!!i.ineligibleRegionFields[n.FieldID],b=k||!i.eligibleRegionFields[n.ID]||!T,_=null===d||void 0===d?void 0:d.features.some((e=>!!M[n.MD5])),x=`${(0,iu.En)(m,ol.Ug.ImperialUnits,n.Area)} ${N.formatMessage({id:m,defaultMessage:m})}`;return(0,w.jsx)(Nf,{canCreateFields:!!T,canDeleteFields:!!I,checkboxIsDisabled:b,editable:!!p,selected:c,farmId:e.id,field:n,fieldArea:x,geometry:d,hasProtectedArea:_,boundaryViolations:t[n.FieldID],highlighted:h,ineligible:g,isReadOnly:k,overlap:f},n.ID)}))})]},h)}))}),null!==D&&(0,w.jsx)(Lf,{currentFarmId:D,fieldsByFarmId:l,onClose:()=>{A(null)}})]})},zf=()=>{var e;const t=(0,Z.Fg)(),n=(0,c.I0)(),i=(0,h.T)(),o=(0,h.C)(S.DC),a=(0,h.C)(En.rm),s=(0,h.C)(vr.yl),l=(0,h.C)(vr.Zf),u=(0,r.useMemo)((()=>s.filter((e=>!e.DeletedAt||l.enrolledFields[e.ID]))),[s,l.enrolledFields]),p=(0,h.C)(En.MT),m=(0,r.useMemo)((()=>p.filter((e=>!e.DeletedAt||l.enrolledFields[e.ID]))),[p,l.enrolledFields]),g=(0,h.C)(S.Kn),{projectId:v}=(0,wi.tZ)(),{isReadOnly:x}=wr(br.t5.Enrolment),M=(0,h.C)(_.JV),[T,E]=(0,r.useState)(!1),P=(0,h.C)(_.p6),I=(0,h.C)((e=>(0,Or.xU)(e,[Vu.M.SAVE_EDITED_FIELD]))),[O]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS]),L=(0,xr.nh)(xr.hn.NEW_ALERTS),R=x||!O,j=(0,ki.bB)(),D=(0,h.C)((e=>M?(0,_.PP)(e,null===M||void 0===M?void 0:M.program_id):null)),A=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),N=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),F=(null===A||void 0===A||null===(e=A.params)||void 0===e?void 0:e.limit_project_ha)||1/0,[z,B]=(0,r.useState)(!1),{boundaryViolationsByFieldId:U,setBoundaryViolationsByFieldId:$}=(0,r.useContext)(kf),V=(0,f.YB)();(0,r.useEffect)((()=>{n((0,y.OT)(null))}),[n]);const{totalEnrolledFieldsArea:q,enrollmentMaxArea:H}=(0,r.useMemo)((()=>{const e=u.reduce(((e,t)=>e+t.Area),0);return{totalEnrolledFieldsArea:(0,iu.En)(o,ol.Ug.ImperialUnits,e),enrollmentMaxArea:(0,iu.En)(o,ol.Ug.ImperialUnits,F)||1/0}}),[u,o,F]);(0,r.useEffect)((()=>{const e={};for(const t of m)e[t.ID]=!0;n(Do.E.setEligibleRegionFields(e))}),[n,m,a]);const G=(0,r.useCallback)((()=>{n((0,y.hT)(!1)),n((0,b.qO)(b.iR.addNewField,!0,{projectId:v}))}),[n,v]),W=async()=>{await Nr.eV.createRecordYears(v),await(0,ai.JG)((e=>"string"===typeof e&&e.startsWith(Ro(v))),void 0,{revalidate:!1}),P.forEach((e=>{n((0,Fr.r7)({projectId:v,stageId:e.id,enableValidation:N}))})),j(),tr.x.clickOnConfirmSelection()},{fieldsToEnroll:Y,fieldsToRemove:K}=xf(),X=Y.length>0||K.length>0,J=(0,r.useMemo)((()=>X?q>H?V.formatMessage({id:"Project area limit reached",defaultMessage:"Project area limit reached"}):void 0:V.formatMessage({id:"Change your selection before confirming",defaultMessage:"Change your selection before confirming"})),[X,q,H,V]),Q=(0,r.useMemo)((()=>{if(!O)return V.formatMessage({id:"This account doesn't have permission to enroll fields",defaultMessage:"This account doesn't have permission to enroll fields"})}),[O,V]),ee=V.formatMessage({id:"BtnLabel.ConfirmSelection",defaultMessage:"Confirm selection"}),te=V.formatMessage({id:"Back to home",defaultMessage:"Back to home"});return(0,w.jsxs)(Pf,{children:[(0,w.jsx)(d.ZT,{className:"description",children:m.length?R?(0,w.jsx)(w.Fragment,{children:V.formatMessage({id:"Enroll.ReadOnlyHelpMessage",defaultMessage:"Below are the fields you plan to implement new or expanded practices during the next growing season. You can view your selection but are unable to edit at this point because you are already enrolled in {program}."},{program:null===D||void 0===D?void 0:D.name})}):(0,w.jsx)(w.Fragment,{children:V.formatMessage({id:"Please select the fields you would like to enroll in this program.",defaultMessage:"Please select the fields you would like to enroll in this program."})}):(0,w.jsx)(w.Fragment,{children:V.formatMessage({id:"Lets start by selecting your fields. Select the import format you prefer.",defaultMessage:"Lets start by selecting your fields. Select the import format you prefer."})})}),g?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Cr,{}),m.length>0&&(0,w.jsx)("div",{className:"selected-fields-info",children:V.formatMessage({id:"Enroll.NumberSelectedFieldsWithArea",defaultMessage:"{selected}/{totalSelected} field(s) selected, {totalArea}{measurement}"},{selected:u.length,totalSelected:m.length,totalArea:q,measurement:V.formatMessage({id:o,defaultMessage:o})})}),R&&q>H?L?(0,w.jsx)(d.xu,{pb:2,children:(0,w.jsx)(d.bZ,{severity:"error",children:(0,w.jsx)(f._H,{id:"Enroll.MaxAreaSizeMessage",defaultMessage:"<span>You have reached the enrollment limit.</span> A maximum of {enrollmentMaxArea} can be enrolled. Deselect some fields from the list below to proceed.",values:{span:e=>(0,w.jsx)("span",{className:"title",children:e}),enrollmentMaxArea:H+V.formatMessage({id:o,defaultMessage:o})}})})}):(0,w.jsx)(nr.ZP,{icon:(0,w.jsx)(k.Pz,{fill:t.color.text.error}),mini:!0,appearance:"error",color:"error",className:"mb-1 notice-warn-block",children:(0,w.jsx)(f._H,{id:"Enroll.MaxAreaSizeMessage",defaultMessage:"<span>You have reached the enrollment limit.</span> A maximum of {enrollmentMaxArea} can be enrolled. Deselect some fields from the list below to proceed.",values:{span:e=>(0,w.jsx)("span",{className:"title",children:e}),enrollmentMaxArea:H+V.formatMessage({id:o,defaultMessage:o})}})}):null,(0,w.jsx)(Ff,{boundaryViolationsByFieldId:U}),(0,w.jsxs)(Ai.L,{variant:"container",children:[(0,w.jsx)(d.u,{title:Q,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:G,startIcon:(0,w.jsx)(d.le,{type:"plus"}),"aria-label":V.formatMessage({id:"Add fields",defaultMessage:"Add fields"}),disabled:R||!!Q||I||T,children:V.formatMessage({id:"Add fields",defaultMessage:"Add fields"})})})}),!R&&O?(0,w.jsx)(d.u,{title:J,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.fl,{disabled:!!J,"data-disabled-reason":J,loading:T||I,onClick:async()=>{try{E(!0);const e=n((0,Tf.k)(Vu.l.CropPractices)),{hasError:t,fieldsWithBoundaryViolations:r}=await i(Mf({fieldsToEnroll:Y,fieldsToRemove:K})).unwrap();if(t&&r){$(r);let e=!1,t=!1;for(const n of Object.values(r))if(0!==n.length&&(e||(e=n.some((e=>"error"===e.error_level))),t||(t=n.some((e=>"warning"===e.error_level))),e&&t))break;return void(!e&&t&&B(!0))}e&&await W()}catch(e){(0,C.e)(e)}finally{E(!1),await i((0,Fr.om)({projectId:v}))}},color:"primary",variant:"contained","aria-label":ee,children:ee})})}):(0,w.jsx)(d.zx,{onClick:j,color:"primary",variant:"contained","aria-label":te,children:te})]})]}):O?(0,w.jsx)(Pr,{}):(0,w.jsx)("span",{children:" You do not have permissions to create new fields "}),z&&(0,w.jsx)(Ef,{onClose:()=>B(!1),onContinue:W})]})},Bf=r.memo((function(){const e=(0,f.YB)(),{isReadOnly:t,detailedReason:n}=kr();return(0,w.jsx)(d.xu,{className:"mrv-form-header-wrapper",pb:"20px",children:(0,w.jsxs)(d.xu,{className:"mrv-form-header-elements",display:"flex",justifyContent:"space-between",flexDirection:"column",children:[(0,w.jsx)(d.xu,{className:"mrv-form-stage-text-wrapper",display:"flex",alignItems:"flex-end",justifyContent:"space-between",mb:4,flexBasis:"50%",children:(0,w.jsxs)(d.xu,{maxWidth:680,children:[(0,w.jsx)(d.xu,{className:"mrv-stage-title-wrapper",display:"flex",alignItems:"center",children:(0,w.jsx)(d.ZT,{variant:"h2",children:e.formatMessage({id:"Stage.IntendedPractices.Title",defaultMessage:"Intended Practices"})})}),(0,w.jsx)(d.xu,{className:"mrv-stage-description-wrapper",mt:4,children:(0,w.jsx)(d.ZT,{className:"description",children:e.formatMessage({id:"Stage.IntendedPractices.DescriptionText",defaultMessage:"Select your intended practices to complete in the upcoming cultivation cycle."})})})]})}),t&&(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.bZ,{severity:"info",children:e.formatMessage({id:"EnrollSectionLockReason",defaultMessage:"This section is locked because {detailedReason}."},{detailedReason:n})})})]})})}));var Uf=n(22111),$f=n.n(Uf),Vf=n(68027),qf=n.n(Vf);const Zf=r.memo((function(){var e,t;const n=(0,f.YB)(),i=(0,h.T)(),{projectId:o}=(0,wi.tZ)(),a=(0,h.C)(_.zq),s=(0,h.C)(vr.v7),l=(0,h.C)((e=>(0,_.qz)(e,o))),c=(0,h.C)(S.DC),u=(0,h.C)(jo.J3),p=(0,h.C)(jo.q3),m=(0,h.C)(jo.GD),g=(0,h.C)(jo.qG),{entityRowsByStageId:y}=Lo(o),[v,b]=(0,r.useState)(null),x=(0,d.Fg)();(0,r.useEffect)((()=>{o&&null!==p&&void 0!==p&&p.id&&(null!==p&&void 0!==p&&p.eligibility_method?Nr.eV.getStageEligibility(o,null===p||void 0===p?void 0:p.id).then((e=>{let{data:t}=e;b(t)})):(0,C.e)("Assign practices stage is not configured with ELIGIBILITY METHOD and a grower is trying to use it."))}),[i,o,null===p||void 0===p?void 0:p.id,null===p||void 0===p?void 0:p.eligibility_method]);const k=(0,r.useMemo)((()=>p&&null!==y&&void 0!==y&&y[p.id]?y[p.id]:{}),[p,y]),M=(0,r.useMemo)((()=>{var e;const t={};return null===(e=s.detailedItems)||void 0===e||e.forEach((e=>{t[e.field_id]=e})),t}),[s.detailedItems]),T=(0,r.useCallback)((e=>{var t;return m&&(null===k||void 0===k||null===(t=k[e])||void 0===t?void 0:t.map((e=>{var t;return null===(t=e.values[m.id])||void 0===t?void 0:t.value})).includes("1"))||!1}),[k,m]),E=(0,r.useCallback)((e=>{var t;return g?qf()(null===k||void 0===k||null===(t=k[e])||void 0===t?void 0:t.map((e=>{var t;return null===(t=e.values[null===g||void 0===g?void 0:g.id])||void 0===t?void 0:t.value}))):[]}),[g,k]),P=(0,r.useMemo)((()=>Object.values(Xr()(l,(e=>null===e||void 0===e?void 0:e.farm_id))).flatMap((e=>{var t;const n=e.map((e=>({field:e,farmName:""}))),r=n[0];var i;r&&null!==(t=e[0])&&void 0!==t&&t.core_attributes.farm_name&&(r.farmName=null===(i=e[0])||void 0===i?void 0:i.core_attributes.farm_name);return n}))),[l]);return(0,w.jsx)(d.Xk,{children:(0,w.jsx)(d.xJ,{children:(0,w.jsxs)(d.iA,{children:[(0,w.jsx)(d.ss,{children:(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:n.formatMessage({id:"Farm",defaultMessage:"Farm"})}),(0,w.jsx)(d.pj,{sx:{padding:"0px 12px !important"},children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 1 0",p:"0px 0px",justifyContent:"center",children:[(0,w.jsx)(d.ZT,{variant:"h5",sx:{minWidth:"max-content"},children:(0,w.jsx)(f._H,{id:"Field"})}),(0,w.jsxs)(d.ZT,{variant:"body2",color:x.palette.semanticPalette.text.secondary,children:[n.formatMessage({id:c,defaultMessage:c}),"\xa0-\xa0",n.formatMessage({id:"ID",defaultMessage:"ID"})]})]})}),(0,w.jsx)(d.pj,{children:n.formatMessage({id:"First enrolled",defaultMessage:"First enrolled"})}),(0,w.jsx)(d.pj,{children:n.formatMessage({id:"Intended practices",defaultMessage:"Intended practices"})}),(0,w.jsx)(d.pj,{children:n.formatMessage({id:"Field eligibility",defaultMessage:"Field eligibility"})}),(null===u||void 0===u||null===(e=u.enabled_metrics)||void 0===e?void 0:e.includes(br.eL.FieldLevelOutcomes))&&(0,w.jsx)(d.pj,{children:n.formatMessage({id:"Est. outcomes",defaultMessage:"Est. outcomes"})}),(null===u||void 0===u||null===(t=u.enabled_metrics)||void 0===t?void 0:t.includes(br.eL.FieldLevelPayments))&&(0,w.jsx)(d.pj,{children:n.formatMessage({id:"Est. payout",defaultMessage:"Est. payout"})})]})}),(0,w.jsx)(d.RM,{children:P.map((e=>{var t,r,i,o,l,p,h;let{field:m,farmName:g}=e;if(null===m||void 0===m||!m.id||!(0,er.$K)(m.fs_field_id))return null;const y=E(m.id);return(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"h5",children:g})}),(0,w.jsx)(d.pj,{padding:"none",children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 1 0",p:"0px 16px",height:"52px",justifyContent:"center",children:[(0,w.jsx)(d.ZT,{variant:"h5",children:m.core_attributes.field_name}),(0,w.jsxs)(d.ZT,{variant:"body2",color:x.palette.semanticPalette.text.secondary,children:[(0,iu.En)(c,ol.Ug.ImperialUnits,m.area),"\xa0",n.formatMessage({id:c,defaultMessage:c}),"\xa0-\xa0#",null===m||void 0===m?void 0:m.id]})]})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"body1",children:null===m||void 0===m?void 0:m.baseline_year})}),(0,w.jsx)(d.pj,{padding:"none",children:(0,w.jsx)(d.xu,{padding:"0px 16px",display:"flex",alignItems:"center",children:T(m.id)||null===y||void 0===y||!y.length?(0,w.jsx)(d.ZT,{variant:"body1",children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.NoPractices",defaultMessage:"I do not plan on any regenerative practices this year"})}):(0,w.jsx)(Hf,{practices:y})})}),(0,w.jsx)(d.pj,{padding:"none",children:(0,w.jsx)(d.xu,{padding:"0px 16px",display:"flex",alignItems:"center",children:null!==v&&void 0!==v&&null!==(t=v[m.id])&&void 0!==t&&t.eligible?(0,w.jsx)(d.Af,{color:"success",label:(0,w.jsx)(f._H,{id:"Eligible"})}):(0,w.jsx)(d.Af,{color:"error",label:(0,w.jsx)(f._H,{id:"Ineligible"})})})}),(null===u||void 0===u||null===(r=u.enabled_metrics)||void 0===r?void 0:r.includes(br.eL.FieldLevelOutcomes))&&(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"body1",children:(null===s||void 0===s?void 0:s.status)===br.Xp.Success&&null!==(i=M[m.id])&&void 0!==i&&i.quantity?`${(0,_u.wH)(null===(o=M[m.id])||void 0===o?void 0:o.quantity)} tCO2e`:"\u2014"})}),(null===u||void 0===u||null===(l=u.enabled_metrics)||void 0===l?void 0:l.includes(br.eL.FieldLevelPayments))&&(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{color:"semanticPalette.text.success",fontWeight:"bold",children:(null===s||void 0===s?void 0:s.status)===br.Xp.Success&&null!==(p=M[null===m||void 0===m?void 0:m.id])&&void 0!==p&&p.value?`${null===a||void 0===a?void 0:a.currency_char}${(0,_u.wH)(null===(h=M[m.id])||void 0===h?void 0:h.value,2)||"\u2014"}`:"\u2014"})})]},m.id)}))})]})})})})),Hf=e=>{let{practices:t}=e;const n=(0,d.Fg)(),i=(0,r.useMemo)((()=>$f()(t.map((e=>{switch(e){case br.X.CoverCrops:case br.X.BasicCoverCrops:case br.X.PremiumCoverCrops:case br.X.NoCoverCrop:return{practice:e,icon:"crop",colorCategory:"2",order:0};case br.X.NoTill:case br.X.ReducedTill:case br.X.ConventionalTill:return{practice:e,icon:"tillage",colorCategory:"7",order:1};default:return{practice:e,colorCategory:"7",order:2}}})),(e=>e.order))),[t]);return(0,w.jsx)(d.xu,{display:"flex",gap:2,children:i.map((e=>{let{practice:t,colorCategory:r,icon:i}=e;return(0,w.jsx)(Gf,{icon:i&&(0,w.jsx)(d.le,{type:i}),color:r,label:(0,w.jsx)(d.ZT,{color:n.palette.categoryPalette[r].text,children:(0,w.jsx)(f._H,{id:t,defaultMessage:t})})},t)}))})},Gf=(0,d.zo)(d.Af)`
  & svg {
    color: ${e=>{var t;let{theme:n,color:r}=e;return r?`${null===(t=n.palette.categoryPalette[r])||void 0===t?void 0:t.text} !important`:"inherit"}};
  }
`,Wf=e=>{let{eligibleButUnassigned:t,fieldPractices:n,ineligible:i,onAssignPractices:o,practicesItems:a,readonly:s}=e;const l=(0,f.YB)(),[c,u]=(0,r.useState)(n||[]),p=(0,r.useMemo)((()=>a.filter((e=>1===e.length)).flat()),[a]),h=(0,r.useMemo)((()=>p.map((e=>({label:(0,w.jsx)(Hf,{practices:[e]}),value:e})))),[p]);return(0,w.jsx)(d.mg,{autoWidth:!0,color:t?"warning":void 0,disabled:i||s,sx:{padding:"0px !important","& .MuiSelect-select":{height:"auto",display:"flex",alignItems:"center",paddingLeft:"12px !important",paddingTop:"8px !important",paddingBottom:"8px !important"}},value:c,onChange:e=>{u(e.target.value),o(e.target.value)},multiple:!0,options:h,localeText:{getMultiSelectText:()=>"Select practices"},variant:"filled",renderValue:e=>t?(0,w.jsx)(d.xu,{children:l.formatMessage({id:"Select practices",defaultMessage:"Select practices"})}):(0,w.jsx)(d.xu,{display:"flex",flexWrap:"wrap",gap:2,children:e.map((e=>{var t;return(null===(t=h.find((t=>t.value===e)))||void 0===t?void 0:t.label)||null}))})})},Yf=e=>{let{eligibleButUnassigned:t,fieldPractices:n,ineligible:i,onAssignPractices:o,practicesItems:a,readonly:s}=e;const l=(0,f.YB)(),c=[...n].sort(),u=a.findIndex((e=>e.sort().join()===c.join())),[p,h]=(0,r.useState)("");let m="";return m=""!==p?p:-1===u||t?"":u,(0,w.jsx)(d.Ph,{color:t?"warning":void 0,sx:{padding:"0px !important","& .MuiSelect-select":{height:"48px",display:"flex",alignItems:"center",paddingLeft:"12px !important"}},variant:"filled",autoWidth:!0,onChange:e=>{let{target:{value:t}}=e;const n=a[t];void 0!==n&&(h(t),o(n))},value:m,displayEmpty:i||t,renderValue:i||t?()=>i?(0,w.jsx)(d.xu,{children:l.formatMessage({id:"No eligible practice improvements available",defaultMessage:"No eligible practice improvements available"})}):!!t&&(0,w.jsx)(d.xu,{children:l.formatMessage({id:"Select practices",defaultMessage:"Select practices"})}):void 0,disabled:i||s,children:a.map(((e,t)=>(0,w.jsx)(d.sN,{value:t,children:(0,w.jsx)(Hf,{practices:e})},t)))})},Kf=e=>{let{eligibilityMethod:t,eligibleButUnassigned:n,fieldPractices:r,ineligible:i,onAssignPractices:o,practicesItems:a,readonly:s}=e;return t===br.fb.ELIGIBILITY_ALWAYS_TRUE?(0,w.jsx)(Wf,{eligibilityMethod:t,eligibleButUnassigned:n,fieldPractices:r,ineligible:i,onAssignPractices:o,practicesItems:a,readonly:s}):(0,w.jsx)(Yf,{eligibilityMethod:t,eligibleButUnassigned:n,fieldPractices:r,ineligible:i,onAssignPractices:o,practicesItems:a,readonly:s})},Xf=e=>{let{open:t,onClose:n,onRemoveField:r}=e;const i=(0,f.YB)();return(0,w.jsxs)(d.o9,{title:i.formatMessage({id:"Remove field from program?",defaultMessage:"Remove field from program?"}),onClose:n,open:t,id:"remove-field-dialog",className:"remove-field-dialog",children:[(0,w.jsx)(d.xu,{py:2,px:5,children:(0,w.jsxs)(d.bZ,{severity:"warning",children:[(0,w.jsx)(d.Cd,{children:(0,w.jsx)(f._H,{id:"Remove field from enrollment.",defaultMessage:"Remove field from enrollment."})}),(0,w.jsx)(d.ZT,{variant:"body2",children:(0,w.jsx)(f._H,{id:"You can add this field again in the Fields and Boundaries step.",defaultMessage:"You can add this field again in the Fields and Boundaries step."})})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:n,children:(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{onClick:r,children:(0,w.jsx)(f._H,{id:"BtnLabel.RemoveField",defaultMessage:"Remove field"})})]})]})},Jf=()=>{const e=(0,h.T)(),{projectId:t}=(0,wi.tZ)(Wo.Q3),n=parseInt(t,10),{isReadOnly:i}=wr(br.t5.Enrolment),o=(0,h.C)((e=>(0,_.i)(e,n))),a=(0,h.C)((e=>(0,_.qz)(e,n))),s=(0,h.C)((e=>(0,_.lT)(e,n))),l=(0,h.C)((e=>(0,_.PP)(e,null===s||void 0===s?void 0:s.program_id))),c=(0,h.C)((e=>(0,_.Jp)(e,br.t5.Enrolment,br.UY.ASSIGN_PRACTICES))),u=(0,h.C)(jo.qG),d=(0,h.C)(jo.GD),p=(0,h.C)(En.Xp),f=(0,h.C)(Tn.wA),[m,g]=(0,r.useState)(null),{entityRowsByStageId:y,revalidate:v,updateAssignPractices:b}=Lo(n),w=(0,r.useMemo)((()=>(null===c||void 0===c?void 0:c.id)&&(null===y||void 0===y?void 0:y[null===c||void 0===c?void 0:c.id])||{}),[null===c||void 0===c?void 0:c.id,y]),x=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION);(0,r.useEffect)((()=>{n&&null!==c&&void 0!==c&&c.id&&(null!==c&&void 0!==c&&c.eligibility_method?Nr.eV.getStageEligibility(n,null===c||void 0===c?void 0:c.id).then((t=>{let{data:n}=t;e((0,Fr.Dx)({enableCompletionValidation:x})),g(n)})):(0,C.e)("Assign practices stage is not configured with ELIGIBILITY METHOD and a grower is trying to use it."))}),[e,n,null===c||void 0===c?void 0:c.id,null===c||void 0===c?void 0:c.eligibility_method,x]);const k=(0,r.useCallback)((async(t,r)=>{if(!c||!u)return;const i=(w[t]||[]).map((e=>e.values[u.id]||e.values[(null===d||void 0===d?void 0:d.id)||0])),o=c.entity_type,a=[];i.forEach((e=>{null!==e&&void 0!==e&&e.id&&a.push(e.id)})),a.length&&await e((0,Fr.t3)({valueIds:a,projectId:n,entityType:o,enableCompletionValidation:x}));let s=0;const l=r.map((e=>({value:e,entity_type:o,locked:!1,confirmed:!0,attribute_id:u.id,progress:br.nO.Enrolment,row_id:++s,attribute_type:u.type})));l.length&&await e((0,Fr.rc)({update:{[t]:l},projectId:n,entityType:o,enableCompletionValidation:x})),b({entityId:t,values:l,stageEndYear:c.year_end,entityType:c.entity_type,stageId:c.id}),await v(),e((0,Fr.om)({projectId:n})),e((0,Fr.r7)({projectId:n,stageId:c.id,enableValidation:x}))}),[u,c,e,w,n,v,null===d||void 0===d?void 0:d.id,b,x]),S=(0,r.useCallback)((async t=>{if(!c||!u||!d)return d||(0,C.e)("User tried to assign no practices (EWAP) but the attribute is not configured so mrv_values could not be posted."),void(0,Yn.c)({type:"error",title:"Error",message:"the attribute is not configured, please contact support"});const r=w[t]||[],i=c.entity_type,o=r.map((e=>e.values[u.id]||e.values[(null===d||void 0===d?void 0:d.id)||0])),a=o.map((e=>null===e||void 0===e?void 0:e.id)).filter(er.$K);await e((0,Fr.t3)({valueIds:a,projectId:n,entityType:i,enableCompletionValidation:x}));const s=[{attribute_id:d.id,attribute_type:d.type,confirmed:!0,entity_type:i,locked:!1,progress:br.nO.Enrolment,row_id:0,value:1}];s.length&&await e((0,Fr.rc)({update:{[t]:s},projectId:n,entityType:i,enableCompletionValidation:x}));const l=[...o,...s].filter(er.$K);b({entityId:t,values:l,stageEndYear:c.year_end,entityType:c.entity_type,stageId:c.id}),await v(),e((0,Fr.om)({projectId:n})),e((0,Fr.r7)({projectId:n,stageId:c.id,enableValidation:x}))}),[u,c,e,w,n,v,d,b,x]),M=(0,r.useCallback)((e=>{var t;return(u&&(null===(t=w[e])||void 0===t?void 0:t.map((e=>{var t;return null===(t=e.values[null===u||void 0===u?void 0:u.id])||void 0===t?void 0:t.value})))||[]).filter(er.$K)}),[u,w]),T=(0,r.useCallback)((e=>{var t;return d&&(null===(t=w[e])||void 0===t?void 0:t.map((e=>{var t;return null===(t=e.values[d.id])||void 0===t?void 0:t.value})).includes("1"))||!1}),[w,d]);return(0,r.useMemo)((()=>({assignPracticesStage:c,assignNoPracicesToAField:S,assignPracticesToAField:k,farms:f,fieldsByFarmId:p,fieldsEligibility:m,getFieldsPractices:M,getIsEnrollingWithoutAssignedPractices:T,isEnrollmentReadOnly:i,practicesList:o,program:l,projectFields:a,projectId:n})),[S,c,k,f,p,m,M,T,i,o,l,a,n])},Qf=(0,d.zo)(d.iA)`
  th,
  td {
    padding: 16px 12px;
  }
`,em=r.memo((function(e){let{projectFields:t}=e;const n=(0,f.YB)(),i=(0,h.C)(S.DC),{assignPracticesStage:o,assignPracticesToAField:a,assignNoPracicesToAField:s,fieldsEligibility:l,getFieldsPractices:c,getIsEnrollingWithoutAssignedPractices:u,isEnrollmentReadOnly:p,projectId:m}=Jf(),g=(0,d.Fg)(),y=Boolean(null===o||void 0===o?void 0:o.allow_enrol_without_assigned_practice),[v]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),b=p||!v,_=(0,h.T)(),[x,k]=r.useState(null),C=()=>{var e,n;if(k(null),b||!x)return;const r=null===(e=t.find((e=>e.id===x)))||void 0===e||null===(n=e.core_attributes)||void 0===n?void 0:n.kml_id;_((0,Fr.Yu)({projectId:m,mrvFieldIds:[x],stageId:null===o||void 0===o?void 0:o.id})),(0,er.$K)(r)&&_((0,$u.ly)({[r]:!1}))};return void 0===o||null===l?null:(0,w.jsx)(d.xJ,{children:(0,w.jsxs)(Qf,{children:[(0,w.jsx)(d.ss,{children:(0,w.jsxs)(d.SC,{sx:{height:52},children:[(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"Farm",defaultMessage:"Farm"})})}),(0,w.jsx)(d.pj,{sx:{padding:"0px 12px !important"},children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 1 0",p:"0px 0px",justifyContent:"center",children:[(0,w.jsx)(d.ZT,{variant:"h5",sx:{minWidth:"max-content"},children:(0,w.jsx)(f._H,{id:"Field"})}),(0,w.jsxs)(d.ZT,{variant:"body2",color:g.palette.semanticPalette.text.secondary,children:[n.formatMessage({id:i,defaultMessage:i}),"\xa0-\xa0",n.formatMessage({id:"ID",defaultMessage:"ID"})]})]})}),(0,w.jsx)(d.pj,{sx:{width:135,padding:"0px 16px !important",height:52},children:(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"First Enrollment Year"})})}),y&&(0,w.jsx)(d.pj,{width:160,sx:{padding:"0px 16px !important",height:52},children:(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"Do you plan on regen practices?"})})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"Intended Practices"})})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"h5",children:(0,w.jsx)(f._H,{id:"Field Eligibility"})})}),!b&&(0,w.jsx)(d.pj,{padding:"none"})]})}),(0,w.jsx)(d.RM,{children:t.map((e=>{var t,r;const p=null===l||void 0===l||null===(t=l[e.id])||void 0===t?void 0:t.eligible,h=c(e.id),m=u(e.id),v=Boolean(p&&0===h.length),_=e.is_returning,S=b||!(y&&_),M=b?n.formatMessage({id:"Stage is read only",defaultMessage:"Stage is read only"}):_?"":n.formatMessage({id:"Fields in their first enrollment year must plan to have regen practices.",defaultMessage:"Fields in their first enrollment year must plan to have regen practices."});return(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"h5",sx:{minWidth:"max-content"},children:e.core_attributes.farm_name})}),(0,w.jsx)(d.pj,{sx:{padding:"0px 12px !important"},children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 1 0",p:"0px 0px",justifyContent:"center",children:[(0,w.jsx)(d.ZT,{variant:"h5",sx:{minWidth:"max-content"},children:e.core_attributes.field_name}),(0,w.jsxs)(d.ZT,{variant:"body2",color:g.palette.semanticPalette.text.secondary,children:[(0,iu.En)(i,ol.Ug.ImperialUnits,e.area),"\xa0",n.formatMessage({id:i,defaultMessage:i}),"\xa0-\xa0 #",e.id]})]})}),(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.ZT,{variant:"body1",children:e.baseline_year})}),y&&(0,w.jsx)(d.pj,{children:(0,w.jsx)(d.u,{title:S?M:null,children:(0,w.jsx)(d.t8,{control:(0,w.jsx)(d.rs,{checked:Boolean(!m),onChange:async t=>{t.target.checked?await a(e.id,[]):await s(e.id)},disabled:S}),label:m?(0,w.jsx)(f._H,{id:"No",defaultMessage:"No"}):(0,w.jsx)(f._H,{id:"Yes",defaultMessage:"Yes"})})})}),(0,w.jsx)(d.pj,{sx:{backgroundColor:v?g.palette.semanticPalette.surface.warning:"inherit",padding:"0px 0px !important"},children:(0,w.jsx)(d.xu,{padding:"0px 0px",display:"flex",children:!m&&(0,w.jsx)(Kf,{eligibilityMethod:o.eligibility_method,eligibleButUnassigned:v,fieldPractices:h,ineligible:!p,onAssignPractices:t=>a(e.id,t),practicesItems:(null===l||void 0===l||null===(r=l[e.id])||void 0===r?void 0:r.eligible_practices)||[],readonly:b})})}),(0,w.jsx)(d.pj,{sx:{padding:"0px !important"},children:(0,w.jsx)(d.xu,{padding:"0px 16px",display:"flex",alignItems:"center",children:p?(0,w.jsx)(d.Af,{color:"success",size:"medium",label:(0,w.jsx)(f._H,{id:"Eligible"})}):(0,w.jsx)(d.Af,{color:"error",size:"medium",label:(0,w.jsx)(f._H,{id:"Ineligible"})})})}),!b&&(0,w.jsxs)(d.pj,{align:"center",sx:{padding:"0px 8px !important"},children:[(0,w.jsx)(d.zx,{size:"small",variant:"outlined",color:"secondary",onClick:()=>k(e.id),disabled:b,children:(0,w.jsx)(d.le,{type:"cross"})}),(0,w.jsx)(Xf,{open:!!x,onClose:()=>k(null),onRemoveField:C})]})]},e.id)}))})]})})})),tm=()=>{const e=[qu.U.FETCH_PROGRAM,qu.U.FETCH_PROJECT,qu.U.FETCH_PROJECT_VALUES],t=(0,h.C)((t=>(0,Or.xU)(t,e))),{projectFields:n}=Jf(),r=(0,d.Fg)();return(0,w.jsxs)(wf,{children:[(0,w.jsx)(Bf,{}),(0,w.jsx)(d.xu,{className:"mrv-field-table",display:"flex",gap:10,flexWrap:"nowrap",border:1,pr:0,pb:0,borderRadius:r.borderRadii.md,borderColor:r.palette.grey[200],sx:{backgroundColor:r.palette.background.paper,overflowY:"hidden"},width:"100%",children:!t&&(0,w.jsx)(em,{projectFields:n})})]})},nm=()=>{const e=(0,xr.nh)(xr.hn.NEW_ALERTS),t=(0,f.YB)();return e?(0,w.jsx)(d.xu,{p:2,pt:4,children:(0,w.jsx)(d.bZ,{severity:"error",children:(0,w.jsx)(f._H,{id:"OutcomeEstimationErrorMessage",defaultMessage:"Experiencing difficulties? We noticed you may be running into trouble while calculating outcomes. Please email support@regrow.ag."})})}):(0,w.jsx)(nr.U8,{mini:!0,appearance:"error",color:"error",title:t.formatMessage({id:"OutcomeEstimationErrorMessage.Title",defaultMessage:"Experiencing difficulties?"}),children:(0,w.jsx)(f._H,{id:"OutcomeEstimationErrorMessage",defaultMessage:"Experiencing difficulties? We noticed you may be running into trouble while calculating outcomes. Please email support@regrow.ag."})})};function rm(e){let{isOnMainPage:t}=e;const{status:n}=(0,h.C)(vr.v7),r=(0,xr.nh)(xr.hn.NEW_ALERTS);switch(n){case br.Xp.InProgress:return r?(0,w.jsx)(d.xu,{paddingTop:3,children:(0,w.jsx)(d.bZ,{severity:"info",icon:(0,w.jsx)(td.Ho,{style:{color:nd.Z["main-blue-600"]}}),children:t?(0,w.jsx)(f._H,{id:"DNDCMessage.Message.MainPage",defaultMessage:"You will be able to continue editing your fields once this process is done."}):(0,w.jsx)(f._H,{id:"DNDCMessage.Message",defaultMessage:"You will be notified by email when this process is complete. Exciting things coming soon!"})})}):(0,w.jsxs)(nr.ZP,{icon:(0,w.jsx)(td.Ho,{style:{color:nd.Z["main-blue-600"]}}),mini:!0,appearance:"info",color:"info",children:[(0,w.jsx)("strong",{children:(0,Dn.t)({id:"DNDCMessage.Title",defaultMessage:"Calculating outcomes."})})," ",t?(0,Dn.t)({id:"DNDCMessage.Message.MainPage",defaultMessage:"You will be able to continue editing your fields once this process is done."}):(0,Dn.t)({id:"DNDCMessage.Message",defaultMessage:"You will be notified by email when this process is complete. Exciting things coming soon!"})]});case br.Xp.Failed:return(0,w.jsx)(nm,{});default:return null}}const im=e=>{let{open:t,onClose:n,onStartCalculation:i}=e;const o=(0,f.YB)(),a=(0,h.T)(),s=(0,h.C)(_.JV),l=(0,xr.nh)(xr.hn.EXPLORE_API),[c,u]=(0,r.useState)(!1),p=(0,r.useCallback)((async()=>{if(s&&!c&&s.dndc_status!==br.Xp.InProgress){u(!0);try{l?await Nr.eV.exploreSubmitProject(s.id,null===s||void 0===s?void 0:s.fields):await Nr.eV.runDNDC(s.id,null===s||void 0===s?void 0:s.fields),a((0,Ao.KA)({projectId:s.id,status:br.Xp.InProgress}))}catch(e){a((0,Ao.KA)({projectId:s.id,status:br.Xp.Failed})),(0,C.e)(e)}null===i||void 0===i||i(),u(!1)}}),[a,c,i,s,l]);return(0,w.jsx)(d.o9,{title:o.formatMessage({id:"Stage.ReviewEstimates.DialogTitle",defaultMessage:"Ready to start the calculation?"}),open:t,onClose:n,children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",px:5,children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.DialogDescription",defaultMessage:"Calculations may take a few minutes. While estimates are being calculated, you will not be able to edit your fields."})}),(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"end",pt:5,gap:3,children:[(0,w.jsx)(d.zx,{onClick:n,color:"secondary",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.fl,{onClick:p,loading:c||(null===s||void 0===s?void 0:s.dndc_status)===br.Xp.InProgress,color:"primary",children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.Start",defaultMessage:"Get started"})})]})]})})},om=r.memo((function(e){let{onStartCalculation:t}=e;const n=(0,f.YB)(),i=(0,h.C)(vr.v7),{isReadOnly:o}=wr(br.t5.Enrolment),[a]=(0,hr.zE)([br.aR.RUN_DNDC_FOR_PROJECT_FIELDS]),s=(0,h.C)(vr.jU),l=o||!a||s,[c,u]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!(null!==i&&void 0!==i&&i.status)),g=(0,r.useCallback)((()=>u((e=>!e))),[]),y=(0,r.useCallback)((()=>m(!1)),[]),v=(0,r.useCallback)((()=>{u(!1),m(!1),t()}),[t]),b=(0,r.useMemo)((()=>{switch(null===i||void 0===i?void 0:i.status){case br.Xp.InProgress:return n.formatMessage({id:"Stage.ReviewEstimates.CalculatingEstimates",defaultMessage:"Calculating estimates..."});case br.Xp.Success:return n.formatMessage({id:"Stage.ReviewEstimates.RecalculateEstimates",defaultMessage:"Recalculate estimates"});default:return n.formatMessage({id:"Stage.ReviewEstimates.CalculateEstimates",defaultMessage:"Calculate estimates"})}}),[null===i||void 0===i?void 0:i.status,n]);return(0,w.jsxs)(d.xu,{className:"mrv-form-header-wrapper",children:[(0,w.jsxs)(d.xu,{className:"mrv-form-header-elements",display:"flex",justifyContent:"space-between",children:[(0,w.jsx)(d.xu,{className:"mrv-form-stage-text-wrapper",display:"flex",alignItems:"flex-end",justifyContent:"space-between",mb:4,flexBasis:"50%",children:(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.xu,{className:"mrv-stage-title-wrapper",display:"flex",alignItems:"center",children:(0,w.jsx)(d.ZT,{variant:"h2",children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.Title",defaultMessage:"Review estimates"})})}),(0,w.jsx)(d.xu,{className:"mrv-stage-description-wrapper",mt:4,children:(0,w.jsx)(d.ZT,{className:"description",children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.DescriptionText",defaultMessage:"Below are the estimated sequestration and payments based on the history and intended practices of your field."})})})]})}),(0,w.jsxs)(d.xu,{className:"mrv-form-stage-text-wrapper",display:"flex",alignItems:"flex-end",mb:4,children:[(0,w.jsx)(d.xu,{children:(0,w.jsx)(am,{open:p,placement:"left",title:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.CalculateEstimates.Tooltip",defaultMessage:"Click this button to calculate your estimates when you are ready."})," ",(0,w.jsx)(sm,{onClick:y,children:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.CalculateEstimates.Dismiss",defaultMessage:"Dismiss"})})]}),children:(0,w.jsx)(d.fl,{onClick:g,disabled:l||(null===i||void 0===i?void 0:i.status)===br.Xp.InProgress,loading:(null===i||void 0===i?void 0:i.status)===br.Xp.InProgress,children:b})})}),(0,w.jsx)(im,{open:c,onClose:g,onStartCalculation:v})]})]}),(0,w.jsx)(rm,{})]})})),am=(0,d.zo)((e=>{let{className:t,...n}=e;return(0,w.jsx)(d.u,{...n,classes:{popper:t}})}))((e=>{let{theme:t}=e;return{[`& .${Al.Z.tooltip}`]:{maxWidth:t.fixedWidths.xs,fontSize:t.typography.body1.fontSize}}})),sm=(0,d.zo)(d.ZT)`
  text-decoration: underline;
  color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.textInverted.main}};
  cursor: pointer;
`;var lm=n(43199);const cm=r.memo((function(){const e=[qu.U.GET_DNDC_RESULTS,qu.U.FETCH_PROJECT,qu.U.FETCH_PROJECT_VALUES,qu.U.GET_DNDC_RESULTS],t=(0,h.C)((t=>(0,Or.xU)(t,e))),n=(0,f.YB)(),{projectId:i}=(0,wi.tZ)(),o=(0,h.C)(_.zq),a=(0,h.C)(vr.v7),s=(0,h.C)(S.DC),l=(0,h.C)((e=>(0,_.qz)(e,i))),c=l.length,u=(0,r.useMemo)((()=>l.reduce(((e,t)=>e+t.area),0)),[l]),p=(0,r.useMemo)((()=>{var e;return(null!==a&&void 0!==a&&null!==(e=a.detailedItems)&&void 0!==e&&e.some((e=>e.units===lm.N_.TONS_CO2E))?lm.N_.TONS_CO2E:lm.N_.HECTARES)===lm.N_.TONS_CO2E?lm.N_.TONS_CO2E:(null===o||void 0===o?void 0:o.units)===br.H_.METRIC?ol.Ug.MetricUnits:ol.Ug.ImperialUnits}),[null===a||void 0===a?void 0:a.detailedItems,null===o||void 0===o?void 0:o.units]);return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",gap:5,py:5,children:[(0,w.jsx)(d.xu,{display:"flex",flex:1,children:(0,w.jsx)(d.Bj,{title:n.formatMessage({id:"Stage.ReviewEstimates.TotalPayout",defaultMessage:"Total estimated payout"}),tooltip:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.TotalPayout.Tooltip",defaultMessage:"This is calculated using {programName} pricing structure of {currencyType}{carbonPrice} per {measurementUnit}.",values:{currencyType:null===o||void 0===o?void 0:o.currency_char,carbonPrice:(null===o||void 0===o?void 0:o.carbon_price)||" -",programName:null===o||void 0===o?void 0:o.name,measurementUnit:n.formatMessage({id:p,defaultMessage:p})}}),children:(0,w.jsx)(d.xu,{display:"flex",height:"100%",alignItems:"end",children:(0,w.jsx)(d.ZT,{variant:"h3",color:"semanticPalette.text.success",children:a.status!==br.Xp.Success||t||!a.payment?"\u2014":`${null===o||void 0===o?void 0:o.currency_char}${(0,_u.wH)(a.payment,2)||"\u2014"}`})})})}),(0,w.jsx)(d.xu,{display:"flex",flex:1,children:(0,w.jsx)(d.Bj,{title:n.formatMessage({id:"Stage.ReviewEstimates.TotalGHGReduction",defaultMessage:"Total estimated GHG reductions"}),tooltip:(0,w.jsx)(f._H,{id:"Stage.ReviewEstimates.TotalGHGReduction.Tooltip",defaultMessage:"The sequestration value should be treated as a directional estimate. Actual outcomes will be calculated based on the measurement and verification process conducted before the end of the contract period."}),children:(0,w.jsx)(d.ZT,{variant:"h3",color:"semanticPalette.text.success",children:a.status!==br.Xp.Success||t||!a.tonsSequestered?"\u2014":`${(0,_u.wH)(a.tonsSequestered)} tCO2e`})})}),(0,w.jsx)(d.xu,{display:"flex",flex:1,children:(0,w.jsx)(d.Bj,{title:n.formatMessage({id:"Stage.ReviewEstimates.TotalFields",defaultMessage:"Total fields"}),children:(0,w.jsx)(d.xu,{display:"flex",height:"100%",alignItems:"end",children:(0,w.jsx)(d.ZT,{variant:"h3",children:c||"\u2014"})})})}),(0,w.jsx)(d.xu,{display:"flex",flex:1,children:(0,w.jsx)(d.Bj,{title:s===ol.Ug.ImperialUnits?n.formatMessage({id:"Stage.ReviewEstimates.TotalAreaEnrolled.Acres",defaultMessage:"Total acres"}):n.formatMessage({id:"Stage.ReviewEstimates.TotalAreaEnrolled.Hectares",defaultMessage:"Total hectares"}),children:(0,w.jsx)(d.xu,{display:"flex",height:"100%",alignItems:"end",children:(0,w.jsx)(d.ZT,{variant:"h3",children:u?`${(0,iu.En)(s,ol.Ug.ImperialUnits,u)} ${s===ol.Ug.ImperialUnits?n.formatMessage({id:"Stage.ReviewEstimates.Acres",defaultMessage:"acres"}):n.formatMessage({id:"Stage.ReviewEstimates.Hectares",defaultMessage:"hectares"})}`:"\u2014"})})})})]})})),um=()=>{const e=[qu.U.FETCH_PROGRAM,qu.U.FETCH_PROJECT,qu.U.FETCH_PROJECT_VALUES],t=(0,h.C)((t=>(0,Or.xU)(t,e))),n=(0,h.T)(),i=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),{projectId:o}=(0,wi.tZ)(),a=(0,h.C)(vr.v7),s=(0,r.useRef)(!0);return(0,r.useEffect)((()=>{(async()=>{s.current&&o&&null!==i&&void 0!==i&&i.id&&a.status===br.Xp.Success&&(await n((0,$u._Z)({projectId:o,phaseId:null===i||void 0===i?void 0:i.id})),s.current=!1)})()}),[n,a.status,a.tonsSequestered,null===i||void 0===i?void 0:i.id,o]),(0,w.jsxs)(wf,{children:[(0,w.jsx)(om,{onStartCalculation:()=>{s.current=!0}}),(0,w.jsx)(cm,{}),!t&&(0,w.jsx)(Zf,{})]})},dm=()=>{const[e,t]=(0,r.useState)(!1),n=(0,h.T)(),{stageId:i,programId:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,_.M0)(e,i))),s=(0,h.C)((e=>e.carbon)),l=(0,h.C)(S.dy),c=(0,h.C)(En.Xp),u=(0,h.C)(_.Bx),d=(0,h.C)((e=>e.helpers.asyncRTK.status[Fr.Lv.typePrefix]===b.mU.fulfilled)),p=(0,h.C)((e=>e.helpers.asyncRTK.status[Fr.GG.typePrefix]===b.mU.fulfilled)),{isFinishStage:f}=Yo();Bu(a?[a]:[]),(0,r.useEffect)((()=>{(null===a||void 0===a?void 0:a.type_)===br.UY.CONFIRM_HISTORY&&n((0,y.OT)("monitoring"))}),[n,a]),(0,r.useEffect)((()=>{const e=(0,ki.sG)(c,s.enrolledFields),t=e[0];t&&!e.includes(s.farmId)&&n(Do.E.setFarmId(t))}),[c,s.enrolledFields,s.farmId]);const m=(0,r.useCallback)((async e=>{const t=e.filter((e=>!(null!==c&&void 0!==c&&c[e])));if(!t.length)return;const r=(await n((0,y.Fq)(t))).payload,i=r.flatMap((e=>Object.values(e))),o=r.flatMap(((e,n)=>Object.values(e).map((e=>{var r,i;return{farmId:null!==(r=t[n])&&void 0!==r?r:-1,fieldId:null!==(i=e.ID)&&void 0!==i?i:-1,md5:e.MD5}})))),a=i.length?await n((0,y.Bc)(o)):{},s={};return i.forEach((e=>{a[e.MD5]&&(s[e.ID]=!0)})),n(Do.E.setEligibleRegionFields(s)),{fields:i,geometries:a,eligibility:s}}),[c]);(0,r.useEffect)((()=>{var r;if(p&&e&&null!==(r=l.groupIds)&&void 0!==r&&r.length)return void m(l.groupIds);const i={};u.forEach((e=>{var t;i[null===(t=e.core_attributes)||void 0===t?void 0:t.kml_id]=!0})),n((0,$u.ly)(i)),t(!0)}),[n,l.groupIds,u,e,p]);const g=r.useMemo((()=>{if(!d)return null;if(f(i))return tr.Z.trackMRVPageView({Page:"Finish",Phase:"Enrollment"}),(0,w.jsx)(Zu,{phaseType:br.t5.Enrolment});if(a&&tr.Z.trackMRVPageView({Page:a.name||String(a.custom_name||a.type_),Phase:"Enrollment"}),null!==a&&void 0!==a&&a.type_&&!Uu.EA.includes(null===a||void 0===a?void 0:a.type_))return(0,w.jsx)(_f,{phaseType:br.t5.Enrolment});switch(null===a||void 0===a?void 0:a.type_){case br.UY.FIELD_BOUNDARIES:return(0,w.jsx)(zf,{});case br.UY.ASSIGN_PRACTICES:return(0,w.jsx)(tm,{});case br.UY.VIEW_OUTCOMES:return(0,w.jsx)(um,{});case br.UY.SURVEY:case br.UY.ELIGIBILITY:case br.UY.CONTRACT:return(0,w.jsx)(_f,{phaseType:br.t5.Enrolment})}switch(s.step){case Vu.l.Fields:return(0,w.jsx)(zf,{});case Vu.l.CropPractices:return(0,w.jsx)(_f,{phaseType:br.t5.Enrolment});case Vu.l.AssignPractices:case Vu.l.ViewOutcomes:break;case Vu.l.Survey:return;default:(0,jn.oK)(s.step,`Carbon panel for step ${s.step} is not implemented`)}}),[s.step,a,d,o,f,i]);return(0,w.jsx)(pm,{children:g})},pm=(0,d.zo)("div")`
  height: 100%;

  .map-bar__feature-carbon {
    background-color: #fff !important;

    .section-container {
      flex-direction: column;
      min-height: 100%;
    }

    .line-separator {
      margin-left: -12px;
      margin-right: -12px;
      border: 1px solid #f1f1f1;
    }

    .description {
      color: #000000de;
      margin-bottom: 10px;

      &.last-of-type {
        margin-bottom: 0;
      }
    }
  }
`,hm=()=>{const e=(0,d.Fg)();return(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",flexGrow:1,height:"100%",sx:{".save-icon.material-icons.md-icon":{fontSize:e.typography.h3}},children:(0,w.jsx)(u.rs,{children:(0,w.jsx)(u.AW,{path:Wo.lk,component:fm})})})},fm=()=>(0,w.jsx)(_f,{phaseType:br.t5.Monitoring}),mm=(0,r.memo)((()=>{var e;const t=(0,u.k6)(),{projectId:n,stageType:i,phaseType:o}=(0,wi.tZ)(),{stageId:a}=(0,gr.B)(),s=(0,ki.jo)(i),l=(0,ki.Rj)(o),c=(null===(e=(0,h.C)(_.zq))||void 0===e?void 0:e.signup_vertical_banner_image_url)||Fu,p=Jo(l),f=(0,h.C)((e=>(0,_.sZ)(e,l))),{isFinishStage:m}=Yo(),g=(0,h.C)((e=>!(0,Or.BQ)(e,[qu.U.FETCH_PROGRAM,qu.U.FETCH_PROJECT,qu.U.FETCH_WHOLE_PROJECT]))),y=(0,r.useMemo)((()=>f.find((e=>e.type_===s))),[f,s]);if(g)return(0,w.jsx)(d.xu,{p:4,height:"100%",children:"Loading..."});if(!!y&&a!==y.id)return(0,w.jsx)(u.l_,{to:`/mrv/project/${n}/${o}/${i}?${(0,fo._D)(t.location.search,{stageId:y.id})}`});const v=!!y&&p(y),b=s===br.UY.SURVEY&&!(null!==y&&void 0!==y&&y.survey_id);if(f.length>0&&(!y||v||b)&&!m(a))return(0,w.jsx)(u.l_,{to:`/mrv/project/${n}/${o}`});if((0,ki.oS)(s))return(0,w.jsx)(Nu,{});const x=[br.UY.FIELD_BOUNDARIES,br.UY.VIEW_OUTCOMES,br.UY.CONTRACT],k=(!(null===y||void 0===y||!y.enabled)||!!a&&x.includes(s))&&(!!y||f.some((e=>e.id===a)))||m(a);return k&&l===br.t5.Enrolment?(0,w.jsx)(gm,{phaseType:l,backgroundImage:m(a)?c:void 0,children:(0,w.jsx)(dm,{})}):k&&l===br.t5.Monitoring?(0,w.jsx)(gm,{phaseType:l,backgroundImage:m(a)?c:void 0,children:(0,w.jsx)(hm,{})}):(0,w.jsx)(u.l_,{to:`/mrv/project/${n}/${o}`})})),gm=(0,r.memo)((e=>{let{phaseType:t,children:n,backgroundImage:r}=e;const{isTableView:i}=(0,gr.B)();return(0,w.jsxs)(w.Fragment,{children:[i?(0,w.jsx)(ea,{phaseType:t}):null,(0,w.jsx)(d.xu,{position:"fixed",top:zu.M+(i?61:0),left:0,right:0,bottom:0,children:(0,w.jsx)(d.xu,{position:"relative",height:"100%",overflow:"auto",children:(0,w.jsx)(Dh.m,{children:(0,w.jsx)(ad,{children:(0,w.jsx)(ym,{backgroundImage:r,padding:4,pb:0,height:"max-content",children:n})})})})})]})})),ym=(0,d.zo)(d.xu)`
  ${e=>{let{backgroundImage:t}=e;return t?`\n        background: url(${t});\n        background-position: center;\n        background-repeat: no-repeat;\n        background-size: cover;\n        position: fixed;\n        height: 100vh;\n        width: 100vw;\n      `:""}}
`,vm=e=>{var t;let{isAdminOnly:n,children:r,component:i,...o}=e;const a=(0,h.C)((e=>e.login.isAuth)),s=(0,h.C)(S.yX),{currentUser:l}=(0,Wr.x)(),{isWorkspaceMrv:c,workspace:d}=(0,M.c)();if(a&&n&&!s)return(0,w.jsx)(u.l_,{to:"/"});const p=s||(null===l||void 0===l||null===(t=l.workspaces)||void 0===t?void 0:t[d]);return(0,w.jsx)(u.AW,{...o,render:e=>{var t,n;switch(!0){case a&&!p:return null!==l&&void 0!==l&&null!==(t=l.workspaces)&&void 0!==t&&t.mrv?(0,w.jsx)(u.l_,{to:`/${$.Lw}`}):null!==l&&void 0!==l&&null!==(n=l.workspaces)&&void 0!==n&&n.si?(0,w.jsx)(u.l_,{to:`/${$.SI}`}):(0,w.jsx)(u.l_,{to:"/"});case a:return(0,w.jsx)(i,{...e});case c:return window.location.pathname.includes("sign-up-confirmation")?(0,w.jsx)(i,{...e}):(0,w.jsx)(u.l_,{to:{pathname:"/mrv/login",search:`?redirect=${encodeURIComponent(window.location.pathname)+(e.location.search?e.location.search.replace("?","&"):"")}`}});default:return(0,w.jsx)(u.l_,{to:`/login?redirect=${encodeURIComponent(window.location.pathname)+(window.location.search?window.location.search.replace("?","&"):"")}`})}},children:r})};var bm=n(43694);const _m=Z.ZP.div`
  padding: 20px;
  text-align: center;
`,wm=()=>{const[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(null),[{state:o,code:a}]=(0,fo.H1)();return(0,r.useEffect)((()=>{o&&a?Nr.eV.callDocusignCallBack({state:o,code:a}).then((()=>{t(!0),i(null)})).catch((()=>i((0,w.jsxs)(Rn.x,{variant:"h1",children:["Request error, try again later. Or ",(0,bi.Bv)("contact support team")]})))):o&&a||i((0,w.jsxs)(Rn.x,{variant:"h1",children:["Missing ",(0,w.jsx)("b",{children:"state"})," or ",(0,w.jsx)("b",{children:"code"})," parameters, please check if the link is correct. Or"," ",(0,bi.Bv)("contact support team")]}))}),[o,a]),n?(0,w.jsx)(_m,{children:n}):(0,w.jsx)(_m,{children:e?(0,w.jsx)(Rn.x,{className:"md-text-center element-full-width margin-top-20",variant:"h1",children:"Request is successful"}):(0,w.jsxs)(Cd.k,{gap:"10px",fullWidth:!0,justifyContent:"center",alignItems:"center",children:[(0,w.jsx)(Rn.x,{className:"margin-bottom-0",variant:"h1",children:"Making the request"}),(0,w.jsx)(On.D8,{centered:!1,id:"DocusignConsentPage"})]})})};var xm=n(81746);const km=e=>{let{program:t}=e;const n=(0,d.Fg)(),r=(0,f.YB)();return(0,w.jsxs)(Cm,{children:[(0,w.jsxs)(Sm,{children:[(0,w.jsx)(d.JO,{color:n.palette.semanticPalette.stroke.brand,type:"bell"}),r.formatMessage({id:"Announcement",defaultMessage:"Announcement"})]}),(0,w.jsx)(Rn.x,{variant:"medium",fontWeight:500,children:t.announcement_title}),(0,w.jsx)(Mm,{dangerouslySetInnerHTML:{__html:(0,xm.sanitize)(t.announcement_description||"")}})]})},Cm=Z.ZP.div`
  width: 250px;
  text-align: left;
  padding: 20px 15px;
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
  border-radius: ${e=>{let{theme:t}=e;return t.borderRadius.medium}};
`,Sm=(0,Z.ZP)(Cd.k)`
  align-items: center;
  gap: 4px;
  width: fit-content;
  color: ${e=>{let{theme:t}=e;return t.color.text.success}};
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.success}};
  padding: 5px 10px;
  border-radius: ${e=>{let{theme:t}=e;return t.borderRadius.medium}};
  margin-bottom: 1em;
`,Mm=Z.ZP.div`
  p {
    font-size: 13px; // override the font size change caused by media query
  }
`,Tm=()=>{const e=(0,h.C)(_.zq);return null!==e&&void 0!==e&&e.display_announcement?(0,w.jsx)(Em,{children:(0,w.jsx)(km,{program:e})}):null},Em=Z.ZP.div`
  position: absolute;
  left: 15px;
  bottom: 100px;
  width: 250px;
  z-index: ${ud.K.CarbonColorsOverview};
`,Pm=()=>{const{isMRVHomePage:e}=(0,gr.B)(),t=(0,f.YB)(),{isReadOnly:n,reason:i}=wr(br.t5.Enrolment),{isReadOnly:o,reason:a}=wr(br.t5.Monitoring),s=(0,h.C)((e=>(0,_.sZ)(e,br.t5.Enrolment))),[l,c]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=s.some((e=>e.type_===br.UY.CONTRACT));e&&n&&i===br.Mk.TooLate&&o&&a===br.Mk.TooEarly&&c(!0)}),[n,i,o,a,s]);return(0,w.jsx)(d.o9,{id:"mrv-enrollment-contract-is-not-singed",title:t.formatMessage({id:"Enrollment contract is not signed",defaultMessage:"Enrollment contract is not signed"}),onClose:()=>c(!1),open:l&&e,children:(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"YouDidNotSignContractMessage",defaultMessage:"You did not sign a contract for this program before the end of the enrollment period, please contact your program administrator for support."})})})})},Im=()=>{const e=(0,h.T)(),t=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsSyncLoggedOutDialog))),n=(0,f.YB)(),i=(0,r.useCallback)((()=>e((0,b.qO)(b.iR.fmsSyncLoggedOutDialog,!1))),[]);return(0,w.jsxs)(d.o9,{id:"fms-sync-logged-out-dialog",title:n.formatMessage({id:"Logged out of FMS",defaultMessage:"Logged out of FMS"}),onClose:i,open:!!t,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Fms.Sync.SuccessLoggedOutMessage",defaultMessage:"You have successfully logged out of your Farm Management System. We will not be able to reimport automatically your data until you log back in. Please manually enter your practice details."})})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:i,children:(0,w.jsx)(f._H,{id:"BtnLabel.Close",defaultMessage:"Close"})})})]})},Om=()=>{const e=(0,f.YB)(),t=(0,h.T)(),{projectId:n}=(0,gr.B)(),i=(0,h.C)((e=>(0,_.Ok)(e,n))),o=(0,h.C)(_.mV),a=(0,h.C)((e=>(0,Or.zn)(e,b.iR.fmsSyncLoginToPlatformDialog))),s=(0,r.useCallback)((()=>{t((0,b.qO)(b.iR.fmsSyncLoginToPlatformDialog,!1)),setTimeout((()=>t((0,Ci.UZ)(null))),1e3)}),[t]),l=(0,r.useCallback)((()=>{switch(i){case Ti.F.JohnDeere:window.location.assign(`${$.default.baseUrl}login/johndeere${o}`);break;case Ti.F.Climate:window.location.assign(`${$.default.baseUrl}login/climate${o}`);break;default:(0,C.e)(`Monitoring sync login unsupported FMS ${i}`)}}),[i,o]);return(0,w.jsx)(d.o9,{id:"fms-sync-logged-out-dialog",title:e.formatMessage({id:"FMSDialog.ConnectAccount",defaultMessage:"Connect to your FMS"}),onClose:s,open:!!a,children:(0,w.jsx)(d.cZ,{children:void 0!==i?(0,w.jsx)($i,{platform:i,onAuthorize:l}):null})})},Lm=e=>{let{onChange:t}=e;const n=(0,h.T)(),[i,o]=(0,r.useState)(!1),a=(0,h.C)(S.dy),l=(0,h.C)(vr.Zf),c=(0,h.C)(Tn.pD),u=(0,h.C)(En.Xp),p=(0,h.C)(En.xP),m=(0,h.C)(vr.w2),g=(0,h.C)(En.MT),v=(0,h.C)(En.rm),{isReadOnly:b}=wr(br.t5.Enrolment),[_]=(0,hr.zE)([br.aR.CREATE_PROJECT_FIELDS]),x=b||!_,k=(0,h.C)(En.k4),C=(0,r.useMemo)((()=>new Set(l.overlapFields.flat())),[l.overlapFields]),[M,T]=(0,r.useState)({});(0,r.useEffect)((()=>{(async()=>{l.enrolledFields&&await n((0,$u.v9)(l.enrolledFields))})()}),[l.enrolledFields]),(0,r.useEffect)((()=>{l.importedFields&&t(m)}),[l.importedFields,m]),(0,r.useEffect)((()=>{(async e=>{const t=null===(e=a.groupIds)||void 0===e?void 0:e.filter((e=>!(null!==u&&void 0!==u&&u[e])));t.length&&await n((0,y.Fq)(t))})()}),[]),(0,r.useEffect)((()=>{const e={};g.forEach((t=>{e[t.ID]=!0})),n(Do.E.setEligibleRegionFields(e))}),[g,v]);const E=(0,r.useMemo)((()=>Object.keys(u||{}).reduce(((e,t)=>{const n=Number(t),r=(0,Pn.uy)(c,n),i=[...Object.values((null===u||void 0===u?void 0:u[n])||{}).filter((e=>l.enrolledFields[e.ID]))];return r&&i.length?[...e,r]:e}),[])),[u,c,l.enrolledFields]),P=e=>{const t=Object.keys((null===u||void 0===u?void 0:u[e])||{}).map(Number).filter((e=>l.enrolledFields[e]));return t.length>0&&t.every((e=>l.importedFields[e]))},I=(e,t)=>{T((n=>({...n,[e]:void 0!==t?t:!n[e]})))},O=async(e,t)=>{const r=void 0!==t?t:!P(e),i=(0,ki.CL)(null===u||void 0===u?void 0:u[e],l.eligibleRegionFields,r);await n((0,$u.v9)(i))},L=Object.values(l.importedFields).some(Boolean),R=Object.values(l.importedFields).every(Boolean),j=E.every((e=>P(e.id)));return(0,w.jsxs)("div",{className:"farm-container",children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",className:"farm-container-header",children:[(0,w.jsx)(d.xu,{margin:4,children:(0,w.jsx)(d.t8,{label:"All fields selected",control:(0,w.jsx)(d.XZ,{indeterminate:L&&!R,checked:j,disabled:x,onChange:()=>{E.forEach((async e=>{await O(e.id,!j&&!L)}))}})})}),(0,w.jsx)(kd.w,{className:"expand-btn",icon:!0,onClick:()=>o(!i),children:i?"keyboard_arrow_down":"keyboard_arrow_right"})]}),i&&(0,w.jsx)("div",{className:"farm-list",children:E.map((e=>{var t;const r=e.id,i=[...Object.values((null===u||void 0===u?void 0:u[r])||{}).filter((e=>l.enrolledFields[e.ID]))],o=Object.keys((null===u||void 0===u?void 0:u[r])||{}).map(Number).some((e=>C.has(e)));if(!i.length)return null;const a=(null===(t=c.find((e=>e.id===r)))||void 0===t?void 0:t.name)||(null===p||void 0===p?void 0:p.id)===r&&(null===p||void 0===p?void 0:p.name)||"",h=i.filter((e=>l.importedFields[e.ID])),m=P(r),g=i.every((e=>l.ineligibleRegionFields[e.FieldID])),y=!M[r];return(0,w.jsxs)("div",{className:s()("farm",{"farm--expanded":y},"clickeable"),children:[(0,w.jsxs)("div",{className:s()("farm__row",{overlap:o}),children:[(0,w.jsx)(d.xu,{onClick:()=>{g&&I(r,!0)},children:(0,w.jsx)(d.xu,{margin:4,children:(0,w.jsx)(d.t8,{label:a,control:(0,w.jsx)(d.XZ,{indeterminate:!!h.length&&!(i.length===h.length),checked:m,disabled:x,onChange:()=>O(r,!m&&!h.length)})})})}),(0,w.jsx)(Rn.x,{secondary:!0,variant:"small",children:(0,Dn.t)({id:"{count1} / {count2} fields selected",defaultMessage:"{count1} / {count2} fields selected"},{count1:h.length,count2:i.length})}),(0,w.jsx)(kd.w,{className:"expand-btn",icon:!0,onClick:()=>I(r),children:y?"keyboard_arrow_down":"keyboard_arrow_right"})]}),y&&(0,w.jsx)("div",{children:(0,Pn.w0)(i,"Name","string").map((e=>{var t;const r=e.ID,i=C.has(e.ID),o=k===r,a=!(null===v||void 0===v||null===(t=v[e.MD5])||void 0===t||!t.features.some((e=>{var t,n;return null===(t=e.properties)||void 0===t||null===(n=t[W.h.ProtectedArea])||void 0===n?void 0:n.length}))),c=l.ineligibleRegionFields[e.FieldID];return(0,w.jsx)(d.u,{id:`tooltip-${r}`,title:c||i?i?(0,w.jsx)(f._H,{id:"The field overlaps with some other field.",defaultMessage:"The field overlaps with some other field."}):If():"",placement:"top",children:(0,w.jsx)(d.xu,{className:s()("field",{overlap:i,highlighted:o,"no-border":a||c}),children:(0,w.jsx)(d.xu,{margin:4,ml:8,children:(0,w.jsx)(d.t8,{label:e.Name,control:(0,w.jsx)(d.XZ,{checked:!!l.importedFields[e.ID],onChange:()=>(async(e,t)=>{const r=void 0!==t?t:!l.importedFields[e];await n((0,$u.v9)({[e]:r}))})(e.ID)})})})})},e.ID)}))})]},r)}))})]})};var Rm=function(e){return e[e.ImportFields=1]="ImportFields",e[e.AddMoreFields=2]="AddMoreFields",e}(Rm||{});const jm=e=>{let{onCloseDialog:t,navigateToStep:n}=e;const[i,o]=(0,r.useState)(Rm.ImportFields),[a,s]=(0,r.useState)([]),l=(0,h.T)(),c=(0,h.T)(),u=(0,h.C)(En.MT),p=(0,h.C)((e=>(0,_.sZ)(e,br.t5.Enrolment))),{projectId:m}=(0,wi.tZ)(),g=(0,h.C)(S.OP),[v,x]=(0,r.useState)(!1),{fieldsToEnroll:k,fieldsToRemove:C}=xf(),M=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),T=async()=>{t();const e={...g,onboarding:{...g.onboarding,re_enroll_fields_onboarded:!0}};await l((0,Yr.b1)(e,!1,!0))};return(0,w.jsxs)(d.o9,{id:"fields-pop-up",title:"",open:!0,maxWidth:"md",onClose:T,className:"fields-popup-container",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)("div",{className:"header-image",children:(0,w.jsx)("img",{src:"/assets/mrv/re-enroll-fields-pop-up-background.jpg",alt:"fields-on-map"})}),(0,w.jsx)("div",{className:"fields-popups",children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:2,children:[(0,w.jsx)(d.ZT,{variant:"body2",children:(0,w.jsx)(f._H,{id:"Step {step} of 2",defaultMessage:"Step {step} of 2",values:{step:i}})}),(0,w.jsx)(d.ZT,{variant:"h3",children:i===Rm.ImportFields?(0,w.jsx)(f._H,{id:"Easily re-enroll your fields",defaultMessage:"Easily re-enroll your fields"}):(0,w.jsx)(f._H,{id:"Add more fields",defaultMessage:"Add more fields"})}),i===Rm.ImportFields?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"h4",fontWeight:400,children:(0,w.jsx)(f._H,{id:"Re-enroll your fields from last year with one click. Your cropping history will be copied as well.",defaultMessage:"Re-enroll your fields from last year with one click. Your cropping history will be copied as well."})}),(0,w.jsx)("div",{className:"enroll-popup-container",children:(0,w.jsx)(Lm,{onChange:e=>s(e)})})]}):(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Continue your carbon farming journey, sequester more carbon and get paid even more! Add fields today.",defaultMessage:"Continue your carbon farming journey, sequester more carbon and get paid even more! Add fields today."})})]})})]}),(0,w.jsx)(d.kX,{children:i===Rm.ImportFields?(0,w.jsxs)(d.xu,{display:"flex",gap:3,alignItems:"center",children:[(0,w.jsx)(d.ZT,{color:"secondary",children:(0,w.jsx)(f._H,{id:"ReEnrollSelectedFields",defaultMessage:"{numberFields} {numberFields, plural, one {field} other {fields}} selected",values:{numberFields:a.length}})}),(0,w.jsx)(d.zx,{disabled:v,onClick:async()=>{x(!0);if(l((0,Tf.k)(Vu.l.CropPractices,!0,a))){const e={};for(const n of u)e[n.ID]=!!a.find((e=>e.ID===n.ID));await l((0,$u.ly)(e));const{hasError:t}=await c(Mf({fieldsToEnroll:k,fieldsToRemove:C})).unwrap();if(t)return;for(const n of p)await l((0,Fr.r7)({projectId:m,stageId:n.id,enableValidation:M}));o(Rm.AddMoreFields)}x(!1)},children:(0,w.jsx)(f._H,{id:"ImportFieldsAndRecords",defaultMessage:"Import fields and records"})})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:T,children:(0,w.jsx)(f._H,{id:"BtnLabel.Skip",defaultMessage:"Skip"})}),(0,w.jsx)(d.zx,{onClick:async()=>{await T(),l((0,y.hT)(!1)),n(Vu.l.Fields),l((0,b.qO)(b.iR.addNewField,!0,{projectId:m}))},children:(0,w.jsx)(f._H,{id:"BtnLabel.AddMoreFields",defaultMessage:"Add more fields"})})]})})]})};var Dm=n(62957);const Am=e=>(0,w.jsx)(On.qZ,{viewBox:"0 0 23 23",...e,children:(0,w.jsx)("path",{d:"M20.1497 12.6385L20.1381 12.6615C20.1846 12.282 20.2312 11.891 20.2312 11.5C20.2312 11.109 20.1963 10.741 20.1497 10.3615L20.1614 10.3845L23 8.1765L20.173 3.3235L16.8341 4.6575L16.8457 4.669C16.2408 4.209 15.5776 3.818 14.8563 3.519H14.868L14.3328 0H8.66717L8.15529 3.5305H8.16692C7.44563 3.8295 6.7825 4.2205 6.17754 4.6805L6.18918 4.669L2.83864 3.3235L0 8.1765L2.83864 10.3845L2.85028 10.3615C2.80374 10.741 2.76884 11.109 2.76884 11.5C2.76884 11.891 2.80374 12.282 2.86191 12.6615L2.85028 12.6385L0.407183 14.536L0.0232678 14.835L2.85028 19.665L6.20081 18.3425L6.17754 18.2965C6.79413 18.768 7.45726 19.159 8.19019 19.458H8.15529L8.67881 23H14.3212C14.3212 23 14.3561 22.793 14.391 22.517L14.8331 19.4695H14.8214C15.5427 19.1705 16.2175 18.7795 16.8341 18.308L16.8108 18.354L20.1614 19.6765L22.9884 14.8465C22.9884 14.8465 22.8255 14.7085 22.6045 14.5475L20.1497 12.6385V12.6385ZM11.4942 15.525C9.24886 15.525 7.42236 13.7195 7.42236 11.5C7.42236 9.2805 9.24886 7.475 11.4942 7.475C13.7395 7.475 15.566 9.2805 15.566 11.5C15.566 13.7195 13.7395 15.525 11.4942 15.525Z",fill:"currentColor"})}),Nm=e=>(0,w.jsx)(On.qZ,{viewBox:"0 0 32 32",...e,children:(0,w.jsx)("path",{d:"M15.3139 8.99813C15.3139 8.65244 15.4553 8.33817 15.7381 8.05533C16.021 7.77248 16.3352 7.63106 16.6809 7.63106L22.4792 7.63106C22.6678 7.63106 22.8369 7.66626 22.9864 7.73666C23.1354 7.80768 23.2727 7.90605 23.3985 8.03176C23.5242 8.15746 23.6266 8.29888 23.7058 8.45602C23.7837 8.61315 23.8149 8.77815 23.7991 8.95099L23.7991 14.7964C23.7991 15.1421 23.6577 15.4482 23.3749 15.7147C23.092 15.9825 22.7778 16.1163 22.4321 16.1163C22.0864 16.1163 21.7721 15.9749 21.4893 15.6921C21.2064 15.4092 21.065 15.095 21.065 14.7493L21.065 10.3652L16.6338 10.3652C16.2881 10.3652 15.9817 10.2241 15.7146 9.94189C15.4474 9.65841 15.3139 9.34383 15.3139 8.99813ZM7.32356 24.1066C7.19785 23.9809 7.10357 23.8395 7.04072 23.6824C6.97786 23.5252 6.93858 23.3603 6.92287 23.1874L6.92287 17.3891C6.92287 17.0434 7.06429 16.7292 7.34713 16.4463C7.62997 16.1635 7.94425 16.0221 8.28994 16.0221C8.63564 16.0221 8.94991 16.1635 9.23275 16.4463C9.51559 16.7292 9.65701 17.0434 9.65701 17.3891L9.65701 21.7732L14.0882 21.7732C14.4339 21.7732 14.74 21.9146 15.0065 22.1975C15.2743 22.4803 15.4081 22.7946 15.4081 23.1403C15.4081 23.486 15.2667 23.8002 14.9839 24.0831C14.701 24.3659 14.3868 24.5073 14.0411 24.5073L8.2428 24.5073C8.08567 24.5073 7.92476 24.4721 7.76008 24.4017C7.59478 24.3307 7.44927 24.2324 7.32356 24.1066Z",fill:"currentColor"})}),Fm=e=>(0,w.jsx)(On.qZ,{viewBox:"0 0 32 32",...e,children:(0,w.jsx)("path",{d:"M18.3737 13.6217C18.248 13.496 18.15 13.3508 18.0796 13.1861C18.0085 13.0208 17.973 12.8596 17.973 12.7024L17.973 6.85703C17.973 6.51134 18.1066 6.20492 18.3737 5.93779C18.6409 5.67066 18.9473 5.5371 19.293 5.5371C19.6387 5.5371 19.9451 5.67066 20.2122 5.93779C20.4793 6.20492 20.6129 6.51134 20.6129 6.85703L20.6129 11.3825L25.1384 11.3825C25.4841 11.3825 25.7905 11.5161 26.0576 11.7832C26.3248 12.0503 26.4583 12.3568 26.4583 12.7024C26.4583 13.0481 26.3248 13.3546 26.0576 13.6217C25.7905 13.8888 25.4841 14.0224 25.1384 14.0224L19.293 14.0224C19.1044 14.0224 18.9356 13.9869 18.7867 13.9158C18.6371 13.8454 18.4994 13.7474 18.3737 13.6217ZM5.52796 19.3021C5.52796 18.9564 5.66152 18.65 5.92865 18.3829C6.19578 18.1157 6.50219 17.9822 6.84789 17.9822L12.6933 17.9822C12.8819 17.9822 13.0506 18.0177 13.1996 18.0887C13.3492 18.1591 13.4868 18.2572 13.6125 18.3829C13.7383 18.5086 13.8404 18.6503 13.919 18.8081C13.9975 18.9646 14.029 19.1293 14.0132 19.3021L14.0132 25.1947C14.0132 25.5404 13.8797 25.8386 13.6125 26.0894C13.3454 26.3414 13.039 26.4675 12.6933 26.4675C12.3476 26.4675 12.0412 26.3339 11.7741 26.0668C11.5069 25.7996 11.3734 25.4932 11.3734 25.1475L11.3734 20.622L6.84789 20.622C6.50219 20.622 6.19578 20.4885 5.92865 20.2214C5.66152 19.9542 5.52796 19.6478 5.52796 19.3021Z",fill:"currentColor"})}),zm=e=>{let{hideTableToggle:t}=e;const{projectId:n}=(0,wi.tZ)(Wo.SS),[r]=Wu(),i=(0,u.k6)().location.search.includes("entityId");return(0,w.jsxs)($m,{children:[(!!r||i)&&(0,w.jsx)(d.zx,{style:{marginRight:"auto"},color:"secondary",variant:"outlined",component:Ho.rU,to:{pathname:(0,xo.F_)(Wo._j,{projectId:n})},"aria-label":(0,Dn.t)({id:"Home",defaultMessage:"Home"}),children:(0,w.jsx)(d.le,{type:"home",fontSize:"h5"})}),(0,w.jsx)(Bm,{hideTableToggle:t}),(0,w.jsx)(Um,{})]})},Bm=e=>{let{hideTableToggle:t}=e;const n=(0,h.T)(),[i]=Wu(),o=(0,h.C)(En.XI),{workspace:a}=(0,M.c)(),s=(0,Z.Fg)(),l="mrv"!==a&&"carbon"===o,c=(0,r.useCallback)((()=>{const e=i?void 0:o;e&&tr.Z.openExpandedView(e),n((0,y.OT)(e)),n((0,y.bX)(!1,"marker"))}),[n,o,i]);return!l||t?null:(0,w.jsx)(kd.w,{className:"round-button",icon:!0,onClick:c,children:i?(0,w.jsx)(Fm,{size:32,style:{color:s.color.text.secondary}}):(0,w.jsx)(Nm,{size:32,style:{color:s.color.text.secondary}})})},Um=e=>{let{openMapBar:t=!1}=e;const n=(0,h.T)(),i=(0,h.C)(En.JY),o=(0,h.C)((e=>(0,Or.zn)(e,b.iR.addNewField))),a=(0,h.C)((e=>(0,Or.zn)(e,b.iR.carbonSuccessfulSigned))),s=(0,h.C)(En.AS),[l]=Wu(),c=(0,r.useCallback)((()=>n((0,y.hT)(!i))),[i]);return a||l||o||s?null:(0,w.jsx)(kd.w,{className:t?"show-right-panel-btn":"round-button",onClick:c,icon:!t,raised:t,children:(0,w.jsx)(d.le,{color:"secondary",type:i?"chevron-up":"chevron-down",fontSize:"h4"})})},$m=Z.ZP.div`
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: ${ud.K.RandomOne};
  &:not(:empty) {
    border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.color.surface.secondary}};
  }
  &:empty {
    display: none;
  }

  .round-button {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }
`,Vm=e=>{let{children:t,className:n,hideExpand:r=!1}=e;const[i]=Wu(),o=(0,h.C)(En.JY),a=(0,h.C)(En.XI),{workspace:l}=(0,M.c)();return(0,w.jsx)(Dm.h,{id:"map-bar-root",children:(0,w.jsxs)("div",{className:s()("map-bar",n,{"whole-table-view":i,"mrv-feature-pack":"mrv"===l,"si-feature-pack":"si"===l}),children:[!o&&(0,w.jsx)(Um,{openMapBar:!0}),(0,w.jsxs)("div",{className:s()("map-bar__panel",`map-bar__feature-${a}`,{"map-bar__panel--open":o}),children:[(0,w.jsx)(zm,{hideTableToggle:r}),t]})]})})};var qm=n(31962),Zm=n(43830),Hm=n(48766);const Gm=(0,Hm.vm)((function(e){return new jf.Control.Zoom(e)})),Wm=Z.ZP.div`
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  z-index: ${ud.K.MapLoader};
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;

  .box {
    width: 40px;
    height: 40px;
    box-shadow:
      0 4px 5px 0 rgba(0, 0, 0, 0.14),
      0 1px 10px 0 rgba(0, 0, 0, 0.12),
      0 2px 4px -1px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .md-circular-progress-path {
    stroke: #fff;
  }
`,Ym=e=>{let{loading:t}=e;return t?(0,w.jsx)(On.Uv,{visible:!0,children:(0,w.jsx)(Wm,{children:(0,w.jsx)("div",{className:"box",children:(0,w.jsx)(On.D8,{id:"image-layer-preloader"})})})}):null};var Km=n(11774),Xm=n(68481);const Jm=jf.Control.extend({options:{className:"",onOff:"",handleOff:function(){}},onAdd(){const e=jf.DomUtil.create("div",this.options.className);return jf.DomEvent.disableClickPropagation(e),jf.DomEvent.disableScrollPropagation(e),e},onRemove(e){return this.options.onOff&&e.off(this.options.onOff,this.options.handleOff,this),this}}),Qm=(0,Km.I)(((e,t)=>{const n=new Jm(e);return{instance:n,context:{...t,overlayContainer:n}}})),eg=(0,Xm.y)(Qm),tg=(e=>{const t=(t,n)=>{const o=(()=>{const[e,t]=(0,r.useState)(0);return()=>t((e=>e+1))})(),{instance:a}=e(t,n).current;(0,r.useEffect)((()=>{o()}),[]);const s=a.getContainer();return s?(0,i.createPortal)(t.children,s):null};return(0,r.forwardRef)(t)})(eg),ng=(0,d.zo)(d.zx)`
  max-width: 36px;
  max-height: 36px;
  background-color: #fff;
  &:hover {
    background-color: #fff;
  }
`,rg=e=>{let{iconType:t,...n}=e;return(0,w.jsx)(ng,{variant:"outlined",color:"secondary",...n,children:(0,w.jsx)(d.le,{fontSize:"h4",type:t})})},ig=e=>{let{fitBounds:t}=e;const n=(0,f.YB)();return(0,w.jsx)(tg,{position:"topleft",children:(0,w.jsx)(rg,{onClick:t,className:"locate-to-farm",iconType:"farm",title:n.formatMessage({id:"Go to field",defaultMessage:"Go to field"})})})};var og=n(3251);function ag(){return(ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function lg(e,t,n,r){void 0===t&&(t=""),void 0===r&&(r={});var i=document.createElement(e);return t&&(i.className=t),Object.keys(r).forEach((function(e){if("function"==typeof r[e]){var t=0===e.indexOf("on")?e.substr(2).toLowerCase():e;i.addEventListener(t,r[e])}else"html"===e?i.innerHTML=r[e]:"text"===e?i.innerText=r[e]:i.setAttribute(e,r[e])})),n&&n.appendChild(i),i}function cg(e){e.preventDefault(),e.stopPropagation()}var ug=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ").trim()};function dg(e,t){e&&e.classList&&(Array.isArray(t)?t:[t]).forEach((function(t){e.classList.contains(t)||e.classList.add(t)}))}function pg(e,t){e&&e.classList&&(Array.isArray(t)?t:[t]).forEach((function(t){e.classList.contains(t)&&e.classList.remove(t)}))}var hg,fg=13,mg=40,gg=38,yg=[fg,27,mg,gg,37,39],vg=function(){function e(e){var t=this,n=e.handleSubmit,r=e.searchLabel,i=e.classNames,o=void 0===i?{}:i;this.hasError=!1,this.container=lg("div",ug("geosearch",o.container)),this.form=lg("form",["",o.form].join(" "),this.container,{autocomplete:"none",onClick:cg,onDblClick:cg,touchStart:cg,touchEnd:cg}),this.input=lg("input",["glass",o.input].join(" "),this.form,{type:"text",placeholder:r||"search",onInput:this.onInput,onKeyUp:function(e){return t.onKeyUp(e)},onKeyPress:function(e){return t.onKeyPress(e)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){t.input.focus(),t.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=n}var t=e.prototype;return t.onFocus=function(){dg(this.form,"active")},t.onBlur=function(){pg(this.form,"active")},t.onSubmit=function(e){try{var t=this;return cg(e),pg(n=t.container,"error"),dg(n,"pending"),Promise.resolve(t.handleSubmit({query:t.input.value})).then((function(){pg(t.container,"pending")}))}catch(e){return Promise.reject(e)}var n},t.onInput=function(){this.hasError&&(pg(this.container,"error"),this.hasError=!1)},t.onKeyUp=function(e){27===e.keyCode&&(pg(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},t.onKeyPress=function(e){e.keyCode===fg&&this.onSubmit(e)},t.setQuery=function(e){this.input.value=e},e}(),bg=function(){function e(e){var t=this,n=e.handleClick,r=e.classNames,i=void 0===r?{}:r;this.selected=-1,this.results=[],this.onClick=function(e){if("function"==typeof t.handleClick){var n=e.target;if(n&&t.container.contains(n)&&n.hasAttribute("data-key")){var r=Number(n.getAttribute("data-key"));t.clear(),t.handleClick({result:t.results[r]})}}},this.handleClick=n,this.container=lg("div",ug("results",i.container)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=lg("div",ug(i.item))}var t=e.prototype;return t.render=function(e,t){var n=this;void 0===e&&(e=[]),this.clear(),e.forEach((function(e,r){var i=n.resultItem.cloneNode(!0);i.setAttribute("data-key",""+r),i.innerHTML=t({result:e}),n.container.appendChild(i)})),e.length>0&&(dg(this.container.parentElement,"open"),dg(this.container,"active")),this.results=e},t.select=function(e){return Array.from(this.container.children).forEach((function(t,n){return n===e?dg(t,"active"):pg(t,"active")})),this.selected=e,this.results[e]},t.count=function(){return this.results?this.results.length:0},t.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);pg(this.container.parentElement,"open"),pg(this.container,"active")},e}(),_g={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(e){return""+e.result.label},resultFormat:function(e){return""+e.result.label},marker:{icon:Df()&&Df().Icon?new(Df().Icon.Default):void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",notFoundMessage:"Sorry, that address could not be found.",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:""},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0},wg="Leaflet must be loaded before instantiating the GeoSearch control";ag({},_g),ag({},_g.classNames);!function(e){e[e.SEARCH=0]="SEARCH",e[e.REVERSE=1]="REVERSE"}(hg||(hg={}));var xg=function(){function e(e){void 0===e&&(e={}),this.options=e}var t=e.prototype;return t.getParamString=function(e){void 0===e&&(e={});var t=ag({},this.options.params,{},e);return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")},t.getUrl=function(e,t){return e+"?"+this.getParamString(t)},t.search=function(e){try{var t=this,n=t.endpoint({query:e.query,type:hg.SEARCH});return Promise.resolve(fetch(n)).then((function(e){return Promise.resolve(e.json()).then((function(e){return t.parse({data:e})}))}))}catch(e){return Promise.reject(e)}},e}(),kg=(function(e){function t(){return e.apply(this,arguments)||this}sg(t,e);var n=t.prototype;n.endpoint=function(){return"https://places-dsn.algolia.net/1/places/query"},n.findBestMatchLevelIndex=function(e){var t=e.find((function(e){return"full"===e.matchLevel}))||e.find((function(e){return"partial"===e.matchLevel}));return t?e.indexOf(t):0},n.getLabel=function(e){var t,n,r,i;return[null==(t=e.locale_names)?void 0:t.default[this.findBestMatchLevelIndex(e._highlightResult.locale_names.default)],null==(n=e.city)?void 0:n.default[this.findBestMatchLevelIndex(e._highlightResult.city.default)],e.administrative[this.findBestMatchLevelIndex(e._highlightResult.administrative)],null==(r=e.postcode)?void 0:r[this.findBestMatchLevelIndex(e._highlightResult.postcode)],null==(i=e.country)?void 0:i.default].filter(Boolean).join(", ")},n.parse=function(e){var t=this;return e.data.hits.map((function(e){return{x:e._geoloc.lng,y:e._geoloc.lat,label:t.getLabel(e),bounds:null,raw:e}}))},n.search=function(e){var t=e.query;try{var n=this,r="string"==typeof t?{query:t}:t;return Promise.resolve(fetch(n.endpoint(),{method:"POST",body:JSON.stringify(ag({},n.options.params,{},r))})).then((function(e){return Promise.resolve(e.json()).then((function(e){return n.parse({data:e})}))}))}catch(e){return Promise.reject(e)}}}(xg),function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchUrl="https://dev.virtualearth.net/REST/v1/Locations",t}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query,n="string"==typeof t?{q:t}:t;return n.jsonp=e.jsonp,this.getUrl(this.searchUrl,n)},n.parse=function(e){return 0===e.data.resourceSets.length?[]:e.data.resourceSets[0].resources.map((function(e){return{x:e.point.coordinates[1],y:e.point.coordinates[0],label:e.address.formattedAddress,bounds:[[e.bbox[0],e.bbox[1]],[e.bbox[2],e.bbox[3]]],raw:e}}))},n.search=function(e){var t,n,r,i=e.query;try{var o=this,a="BING_JSONP_CB_"+Date.now();return Promise.resolve((t=o.endpoint({query:i,jsonp:a}),n=a,r=lg("script",null,document.body),r.setAttribute("type","text/javascript"),new Promise((function(e){window[n]=function(t){r.remove(),delete window[n],e(t)},r.setAttribute("src",t)})))).then((function(e){return o.parse({data:e})}))}catch(e){return Promise.reject(e)}}}(xg),function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchUrl="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",t}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query,n="string"==typeof t?{text:t}:t;return n.f="json",this.getUrl(this.searchUrl,n)},n.parse=function(e){return e.data.locations.map((function(e){return{x:e.feature.geometry.x,y:e.feature.geometry.y,label:e.name,bounds:[[e.extent.ymin,e.extent.xmin],[e.extent.ymax,e.extent.xmax]],raw:e}}))}}(xg),function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchUrl="https://maps.googleapis.com/maps/api/geocode/json",t}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query;return this.getUrl(this.searchUrl,"string"==typeof t?{address:t}:t)},n.parse=function(e){return e.data.results.map((function(e){return{x:e.geometry.location.lng,y:e.geometry.location.lat,label:e.formatted_address,bounds:[[e.geometry.viewport.southwest.lat,e.geometry.viewport.southwest.lng],[e.geometry.viewport.northeast.lat,e.geometry.viewport.northeast.lng]],raw:e}}))}}(xg),function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchUrl="https://geocode.search.hereapi.com/v1/geocode",t}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query;return this.getUrl(this.searchUrl,"string"==typeof t?{q:t}:t)},n.parse=function(e){return e.data.items.map((function(e){return{x:e.position.lng,y:e.position.lat,label:e.address.label,bounds:null,raw:e}}))}}(xg),function(e){function t(t){var n;void 0===t&&(t={});var r="https://nominatim.openstreetmap.org";return(n=e.call(this,t)||this).searchUrl=t.searchUrl||r+"/search",n.reverseUrl=t.reverseUrl||r+"/reverse",n}sg(t,e);var n=t.prototype;return n.endpoint=function(e){var t=e.query,n=e.type,r="string"==typeof t?{q:t}:t;return r.format="json",n===hg.REVERSE?this.getUrl(this.reverseUrl,r):this.getUrl(this.searchUrl,r)},n.parse=function(e){return(Array.isArray(e.data)?e.data:[e.data]).map((function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}}))},t}(xg)),Cg=(function(e){function t(t){return e.call(this,ag({},t,{searchUrl:"https://locationiq.org/v1/search.php",reverseUrl:"https://locationiq.org/v1/reverse.php"}))||this}sg(t,e)}(kg),function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchUrl="https://api.opencagedata.com/geocode/v1/json",t}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query,n="string"==typeof t?{q:t}:t;return n.format="json",this.getUrl(this.searchUrl,n)},n.parse=function(e){return e.data.results.map((function(e){return{x:e.geometry.lng,y:e.geometry.lat,label:e.formatted,bounds:[[e.bounds.southwest.lat,e.bounds.southwest.lng],[e.bounds.northeast.lat,e.bounds.northeast.lng]],raw:e}}))},n.search=function(t){try{return Promise.resolve(t.query.length<2?[]:e.prototype.search.call(this,t))}catch(e){return Promise.reject(e)}}}(xg),function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).searchUrl=t.searchUrl||"https://a.tiles.mapbox.com/v4/geocode/mapbox.places/",n}sg(t,e);var n=t.prototype;return n.endpoint=function(e){return this.getUrl(""+this.searchUrl+e.query+".json")},n.parse=function(e){return(Array.isArray(e.data.features)?e.data.features:[]).map((function(e){var t=null;return e.bbox&&(t=[[parseFloat(e.bbox[1]),parseFloat(e.bbox[0])],[parseFloat(e.bbox[3]),parseFloat(e.bbox[2])]]),{x:Number(e.center[0]),y:Number(e.center[1]),label:e.place_name?e.place_name:e.text,bounds:t,raw:e}}))},t}(xg));!function(e){function t(t){var n;void 0===t&&(t={});var r="https://api-adresse.data.gouv.fr";return(n=e.call(this,t)||this).searchUrl=t.searchUrl||r+"/search",n.reverseUrl=t.reverseUrl||r+"/reverse",n}sg(t,e);var n=t.prototype;n.endpoint=function(e){var t=e.query,n="string"==typeof t?{q:t}:t;return e.type===hg.REVERSE?this.getUrl(this.reverseUrl,n):this.getUrl(this.searchUrl,n)},n.parse=function(e){return e.data.features.map((function(e){return{x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e}}))}}(xg);const Sg=e=>{let{title:t,value:n,onBlur:i,onChange:o,onAutocomplete:a,onKeyDown:s}=e;const[l,c]=(0,r.useState)([]),u=new Cg({params:{access_token:qm.rB,limit:10,autocomplete:!0}}),d=(0,r.useRef)(0),p=(0,r.useRef)(null),{formatMessage:h}=(0,f.YB)();return(0,w.jsx)(On.F2,{title:t,value:n,onBlur:i,id:"toolbar-search",className:"toolbar-search",type:"search",data:l,placeholder:h({id:"Search location",defaultMessage:"Search location"}),onChange:e=>{o(e),p.current&&clearTimeout(p.current),p.current=setTimeout((()=>(async e=>{const t=d.current+1;d.current=t;const n=await u.search({query:e});if(t!==d.current)return;const r=n.map((e=>({...e,value:e.raw.id,title:e.label,x:e.x,y:e.y})));c(r)})(e)),750)},onAutocomplete:e=>{const t=l.find((t=>t.raw.id===e));t&&a(t)},onKeyDown:e=>{"Enter"===e.key&&s(l.length)},block:!0,dataLabel:"label",dataValue:"value",filter:null})};function Mg(e,t,n){if(!e)return;const r=Df().geoJSON(e).getBounds(),i=t.getBounds().contains(r),o=t.getZoom()>=15;i&&o||n(r,{maxZoom:15,...B.lZ})}const Tg=e=>{const t=/^-?([0-8]?[0-9]|90)(\.[0-9]{1,10})?$/,n=/^-?([0-9]{1,2}|1[0-7][0-9]|180)(\.[0-9]{1,10})?$/,r=(0,xi.I8)(e),i=r.includes(",")?r.split(","):r.includes(";")?r.split(";"):r,o=null===i||void 0===i?void 0:i[0],a=null===i||void 0===i?void 0:i[1];if(2===i.length&&void 0!==o&&void 0!==a){let e,r;return o.match(t)&&a.match(n)?(e=parseFloat(o),r=parseFloat(a)):o.match(n)&&a.match(t)&&(e=parseFloat(a),r=parseFloat(o)),e&&r?[e,r]:null}return null},Eg=()=>{const e=(0,h.T)(),[t,n]=(0,r.useState)(""),i=(0,h.C)(g.Ln),o=(0,h.C)(En.JY),a=(0,Xn.D)({addFieldCurrentStep:i}),l=Ir.MK.includes(i),[c,u]=(0,r.useState)(!1),[d,p]=(0,r.useState)(!1),{formatMessage:v}=(0,f.YB)(),b=r.useRef(null);(0,r.useEffect)((()=>{Ir.MK.includes(a.addFieldCurrentStep)&&!l&&x(!1)}),[i]);(0,r.useEffect)((()=>{d&&(b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{p(!1)}),100))}),[d]);const _=(0,og.Sx)();if(!_)return null;const x=e=>{u(e),e&&setTimeout((()=>{var e;document.getElementById("toolbar-search")&&(null===(e=document.getElementById("toolbar-search"))||void 0===e||e.focus())}),200)},k=e=>{n(e)};return(0,w.jsx)(tg,{position:"topleft",children:(0,w.jsxs)("div",{className:s()("location-buttons",{active:l||c}),children:[(0,w.jsx)(rg,{className:"search-location-button",onClick:()=>d?void 0:x(!c),iconType:"search"}),c&&(0,w.jsx)(Sg,{title:t,value:t,onBlur:()=>{l||(x(!1),p(!0))},onChange:k,onAutocomplete:e=>{e&&(k(e.label),!l&&x(!1),_&&(e=>{e.bounds?null===_||void 0===_||_.fitBounds(e.bounds,{paddingBottomRight:[o?300:0,70],maxZoom:20}):null===_||void 0===_||_.panTo([e.y,e.x])})(e))},onKeyDown:n=>{const r=Tg(t);if(r){(()=>{const n=Tg(t);if(!Array.isArray(n)||!n[0]||!n[1])return;e((0,y.k4)(n[0],n[1]));const r=(0,jf.latLng)(n[0],n[1]).toBounds(500);_.fitBounds(r,{maxZoom:m.hd,paddingBottomRight:[o?300:0,70]})})();const n=document.querySelector(".map-v2__main");n&&n.click()}else if(1!==n||r)0!==n||r||(0,Yn.c)({title:v({id:"warning",defaultMessage:"Warning"}),message:v({id:"cannotFindValue",defaultMessage:"Cannot find {search}"},{search:t}),type:"warning"});else{const e=document.querySelector("#toolbar-search-menu-list .md-list-item");e&&e.click()}}})]})})};var Pg=n(25237);const Ig=()=>{const e=(0,h.C)((e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.locationMarkerPosition}));return(0,og.Sx)()&&null!==e&&void 0!==e&&e[0]&&null!==e&&void 0!==e&&e[1]?(0,w.jsx)(Pg.J,{position:Df().latLng(e[0],e[1]),icon:k.l1}):null};var Og=n(55001),Lg=n(89805),Rg=n(12959),jg=n(36415);const Dg=e=>{let{value:t,id:n,onClick:r}=e;return t.length?(0,w.jsxs)(jg._Y,{className:s()({clickable:!!r}),onClick:r,title:t.join(", "),children:[t.slice(0,3).filter((e=>e!==br.X.NoCoverCrop)).map(((e,r)=>(0,w.jsx)("div",{className:"avatar-offset",style:{zIndex:t.length-r},children:(0,w.jsx)(Rg.O,{value:e})},n+e+r))),t.length>3&&(0,w.jsx)("div",{className:"avatar-offset",style:{zIndex:1},children:(0,w.jsxs)(zi.C,{className:"practice-avatar",size:30,children:["+",t.length-3]})})]}):(0,w.jsx)(jg._Y,{onClick:r,className:"no-circles",children:"No practices selected"})},Ag=e=>{let{fieldId:t}=e;const n=(0,h.T)(),r=(0,h.C)(En.Xp),i=(0,h.C)(En.rm),{projectId:o,isEnrollment:a}=(0,gr.B)(),s=(0,h.C)((e=>(0,_.qz)(e,o))),l=(0,h.C)(jo.qG);let c;for(const h in r){var u;const e=Number(h);if(c=Object.values(null!==(u=r[e])&&void 0!==u?u:{}).find((e=>e.ID===t)),c)break}const d=s.find((e=>{var t;return e.fs_field_id===(null===(t=c)||void 0===t?void 0:t.FieldID)})),p=(0,h.C)((e=>null!==l&&void 0!==l&&l.id?(0,jo.nA)(e,null===l||void 0===l?void 0:l.id):[])).filter((e=>(0,Eo.B)(e)===(null===d||void 0===d?void 0:d.id))).map((e=>e.value));if(!c||!d)return null;const f=null===i||void 0===i?void 0:i[c.MD5];if(!f)return null;if(!a)return null;const[m=0,g=0]=(0,Lg.g8)(f),v={lat:g,lng:m};return(0,w.jsx)(Ng,{position:v,autoPan:!1,className:"assign-practices-popup",onClose:()=>n((0,y.l7)(void 0)),children:(0,w.jsxs)("div",{className:"practices-popup-content",children:[(0,w.jsx)(Rn.x,{nowrap:!0,className:"margin-right-10 margin-bottom-0",elementType:"h2",children:c.Name}),(0,w.jsx)(Dg,{id:`${c.ID}practices`,value:p})]})})},Ng=(0,Z.ZP)(Og.wO)`
  &.assign-practices-popup {
    .leaflet-popup-content {
      min-width: 150px;
    }

    .practices-popup-content {
      padding-top: 5px;
    }
  }
`;var Fg=n(36888),zg=n(39481),Bg=n(91622),Ug=n(13e3);const $g=e=>{let{dataAndColors:t}=e;if(!t.data.length)return null;const n=[],r=[];return t.data.forEach((e=>{n.push(e.value),r.push(t.getColor(e))})),(0,w.jsx)("div",{className:"crop-type-chart-plot",children:(0,w.jsx)(Ug.Y,{values:n.sort(((e,t)=>t-e)),colors:r})})},Vg=e=>{let{fitBounds:t,fieldIds:n,fieldColors:i,fieldColorsBorder:o,fieldCategories:a={},onGeometryClick:s,CustomPopup:l,saveBoundsToFit:c}=e;const u=(0,h.T)(),d=(0,h.C)(En.Xp),p=(0,h.C)((e=>e.carbon)),f=(0,r.useMemo)((()=>{const e=[];for(const n in d){const r=Number(n);for(const n in d[r]){var t;const i=null===(t=d[r])||void 0===t?void 0:t[Number(n)];!i||null!==i&&void 0!==i&&i.DeletedAt&&!p.enrolledFields[i.ID]||e.push(i)}}return e}),[d,p.enrolledFields]),m=(0,h.C)(En.rm),g=(0,h.C)(En.AS),v=(0,h.C)(En.k4),_=(0,h.C)(vr.Z$),x=(0,h.C)((e=>(0,Or.zn)(e,b.iR.addNewField))),k=(0,og.Sx)(),C=(0,r.useMemo)((()=>new Set(p.overlapFields.flat())),[p.overlapFields]),S=(0,r.useMemo)((()=>{const e={};for(const r of f)if(!n||n[r.ID]){const n=null===m||void 0===m?void 0:m[r.MD5];if(n&&(e[r.ID]=n),e[r.ID]){var t;const[n=0,i=0]=(0,Lg.g8)(null===m||void 0===m?void 0:m[r.MD5]),o=null===e||void 0===e||null===(t=e[r.ID])||void 0===t?void 0:t.features[0];o&&(o.properties={...o.properties,position:{lat:i,lng:n}})}}return e}),[f,m,n]);(0,r.useEffect)((()=>{const e=Object.values(S).filter(er.$K);if(!e.length)return;const t=e.filter((e=>{var t,n,r;return!!i[null===e||void 0===e||null===(t=e.features)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.properties)||void 0===r?void 0:r.fluro_id]})),n=t.length?t:e,r=(0,Fg.uf4)(n.flatMap((e=>e.features))),o=Df().geoJSON(r).getBounds();c(o)}),[i,S,c]),(0,r.useEffect)((()=>{const e=S[Number(v)];e&&Mg(e,k,t)}),[t,S,v,k]),(0,r.useEffect)((function(){u((0,y.l7)(void 0))}),[u,_,x]);const M=(0,r.useMemo)((()=>Object.entries(S).filter((e=>{let[t,n]=e;return n}))),[S]),{unclusteredIds:T,clusterMarkersRendered:E}=((e,t,n,i,o,a)=>{const[s,l]=(0,r.useState)({clusters:[],clusteredGeometries:{},clusteredGeometryIsSeason:{}}),[c,u]=(0,r.useState)({}),d=(0,r.useRef)(),p=(0,r.useCallback)((()=>{if(!d.current)return;const n=e.getBounds(),r=d.current.getClusters([n.getWest(),n.getSouth(),n.getEast(),n.getNorth()],Math.round(e.getZoom())),i={},o={},a={};r.forEach((e=>{var t,n;if(!e.properties.cluster)return void(i[e.properties.seasonId]=!0);const r=null!==(t=null===(n=d.current)||void 0===n?void 0:n.getLeaves(e.properties.cluster_id,1/0))&&void 0!==t?t:[],s=r.map((e=>e.properties.seasonId));r.forEach((e=>a[e.properties.seasonId]=e.properties.isSeason)),o[e.properties.cluster_id]=s,a[e.properties.cluster_id]=e.properties.isSeason,e.properties.point_count=s.length,e.properties.point_count_abbreviated=s.length})),u(i),l({clusters:r,clusteredGeometries:o,clusteredGeometryIsSeason:a}),t()}),[]);(0,r.useEffect)((()=>(e[a?"off":"on"]("moveend",p),()=>{e.off("moveend",p)})),[p,a]),(0,r.useEffect)((()=>{const e=Object.entries(n).filter((e=>{let[t,n]=e;return n})).flatMap((e=>{var t;let[n,r]=e;const i=[],o=(0,Fg.Scw)((0,Fg.uf4)(r.features));return o.properties=null!==(t=o.properties)&&void 0!==t?t:{},o.properties.seasonId=n,o.properties.isSeason=!1,i.push(o),i}));d.current=new Bg.Z(Go.aU).load(e),p()}),[n]);const h=(0,r.useCallback)(((e,t)=>{const n={},r={};e.forEach((e=>{const t=o[e];t&&(n[t]||(n[t]=i[e]||"#c7c7c7"),r[t]||(r[t]=0),r[t]+=1)}));const a={data:Object.entries(r).map((e=>{let[t,n]=e;return{id:t,label:t,value:n}})),getColor:e=>{var t;return null!==(t=n[e.id])&&void 0!==t?t:""}};return(0,zg.renderToString)((0,w.jsx)($g,{dataAndColors:a}))}),[i,o]),f=s.clusters.map((t=>{const r=t.properties.cluster_id,i=s.clusteredGeometries[r],[o,a]=t.geometry.coordinates;if(r)return(0,w.jsx)(Og.aP,{position:{lat:a,lng:o},icon:Df().divIcon({html:h(null!==i&&void 0!==i?i:[],s.clusteredGeometryIsSeason),className:"marker-cluster marker-cluster-medium",iconSize:Df().point(60,60)}),eventHandlers:{click:t=>{var n;const i=null===(n=d.current)||void 0===n?void 0:n.getClusterExpansionZoom(r);e.flyTo(t.latlng,i)}}},r);if(e.getZoom()>11.5)return null;const l=t.properties.seasonId;return(0,w.jsx)(Og.aP,{position:{lat:a,lng:o},icon:Df().divIcon({html:h([l],{[l]:t.properties.isSeason}),className:"marker-cluster marker-cluster-medium",iconSize:Df().point(60,60)}),eventHandlers:{click:()=>{const t=n[l],r=Df().geoJSON(t).getBounds();e.fitBounds(r,B.lZ)}}},l)}));return{unclusteredIds:c,clusterMarkersRendered:f}})(k,(()=>null),S,i,a,g),P=r.useCallback((e=>{g||(u((0,y.l7)(e)),null===s||void 0===s||s(e))}),[g,u,s]);return(0,w.jsxs)(w.Fragment,{children:[M.map((e=>{var t,n,a;let[s,c]=e;if(!T[s])return null;const u=Number(s),h=x?void 0:i[u],f=v===u,m=null===c||void 0===c||null===(t=c.features)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.properties,g=null===d||void 0===d||null===(a=d[null===m||void 0===m?void 0:m.fluro_farm_id])||void 0===a?void 0:a[null===m||void 0===m?void 0:m.fluro_id];if(null!==g&&void 0!==g&&g.DeletedAt&&!p.enrolledFields[g.ID])return null;const y=null===g||void 0===g?void 0:g.Name;let b=(null===o||void 0===o?void 0:o[u])||"white";return C.has(u)&&(b=nd.Z["error-shape-color"]),(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(qg,{id:u,geometry:c,onFieldClick:P,color:h,borderColor:b}),f&&(l?(0,w.jsx)(l,{fieldId:u}):(0,w.jsx)(Og.wO,{autoPan:!1,onClose:()=>{},position:null===m||void 0===m?void 0:m.position,children:(0,w.jsx)("div",{className:"margin-right-10",children:y})}))]},u)})),E]})},qg=e=>{let{id:t,geometry:n,color:i,borderColor:o,onFieldClick:a}=e;const s=(0,r.useMemo)((()=>({click:()=>a(t)})),[a,t]);return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(Og.MW,{weight:2,opacity:1,fillColor:i||"white",fillOpacity:i?.95:.25,color:o,data:n,eventHandlers:s},t)})};function Zg(e){let{onFitBounds:t,setLastBounds:n}=e;const{projectId:i}=(0,gr.B)(),o=(0,h.T)(),a=(0,h.C)((e=>(0,_.qz)(e,i))),s=(0,h.C)(En.t8),l=(0,h.C)(vr.xj),{fieldColors:c,enrolledFieldIds:u}=(0,r.useMemo)((()=>{const e={},t={};for(const r of a){var n;const i=null===(n=s[r.fs_field_id])||void 0===n?void 0:n.ID;i&&(e[i]=l.includes(r.id)?Y.Pi:"",t[i]=!0)}return{fieldColors:e,enrolledFieldIds:t}}),[l,s,a]);return(0,w.jsx)(Vg,{fitBounds:t,fieldIds:u,fieldColors:c,CustomPopup:Ag,saveBoundsToFit:n,onGeometryClick:e=>{var t;const n=null===(t=a.find((t=>{var n;return(null===(n=t.core_attributes)||void 0===n?void 0:n.kml_id)===e})))||void 0===t?void 0:t.id;if(n){const e=l.includes(n);o(e?Do.E.setAssignPracticeSelectedFields(l.filter((e=>e!==n))):Do.E.setAssignPracticeSelectedFields([...l,n]))}}})}const Hg=(0,Hm.Au)((function(e,t){let{children:n,...r}=e;const i=new jf.FeatureGroup([],r);return{instance:i,context:{...t,layerContainer:i,overlayContainer:i}}}));n(14596);var Gg=n(90581),Wg=n.n(Gg);function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){Xg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jg={onEdited:"draw:edited",onDrawStart:"draw:drawstart",onDrawStop:"draw:drawstop",onDrawVertex:"draw:drawvertex",onEditStart:"draw:editstart",onEditMove:"draw:editmove",onEditResize:"draw:editresize",onEditVertex:"draw:editvertex",onEditStop:"draw:editstop",onDeleted:"draw:deleted",onDeleteStart:"draw:deletestart",onDeleteStop:"draw:deletestop"};function Qg(e){var t=(0,Rf.mE)(),n=(0,r.useRef)(),i=(0,r.useRef)(e),o=function(n){var r=e.onCreated;(t.layerContainer||t.map).addLayer(n.layer),r&&r(n)};return r.useEffect((function(){var r=t.map,i=e.onMounted;for(var a in Jg)r.on(Jg[a],(function(t){var n=Object.keys(Jg).filter((function(e){return Jg[e]===t.type}));if(1===n.length){var r=n[0];e[r]&&e[r](t)}}));return r.on(Df().Draw.Event.CREATED,o),n.current=ey(e,t),r.addControl(n.current),i&&i(n.current),function(){for(var t in r.off(Df().Draw.Event.CREATED,o),Jg)e[t]&&r.off(Jg[t],e[t])}}),[]),r.useEffect((function(){if(Wg()(e.draw,i.current.draw)&&Wg()(e.edit,i.current.edit)&&e.position===i.current.position)return!1;var r=t.map;n.current.remove(r),n.current=ey(e,t),n.current.addTo(r);var o=e.onMounted;return o&&o(n.current),null}),[e.draw,e.edit,e.position]),null}function ey(e,t){var n=t.layerContainer,r=e.draw,i=e.edit,o=e.position,a={edit:Kg(Kg({},i),{},{featureGroup:n})};return r&&(a.draw=Kg({},r)),o&&(a.position=o),new jf.Control.Draw(a)}Qg.propTypes=Kg(Kg({},Object.keys(Jg).reduce((function(e,t){return e[t]=ge.PropTypes.func,e}),{})),{},{onCreated:ge.PropTypes.func,onMounted:ge.PropTypes.func,draw:ge.PropTypes.shape({polyline:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),polygon:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),rectangle:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),circle:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),marker:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool])}),edit:ge.PropTypes.shape({edit:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),remove:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),poly:ge.PropTypes.oneOfType([ge.PropTypes.object,ge.PropTypes.bool]),allowIntersection:ge.PropTypes.bool}),position:ge.PropTypes.oneOf(["topright","topleft","bottomright","bottomleft"]),leaflet:ge.PropTypes.shape({map:ge.PropTypes.instanceOf(jf.Map),layerContainer:ge.PropTypes.shape({addLayer:ge.PropTypes.func.isRequired,removeLayer:ge.PropTypes.func.isRequired})})});const ty=Qg;var ny=n(76556);const ry=()=>{const e=(0,c.I0)(),t=(0,h.C)(S.DC),n=(0,h.C)(m.HW),i=(0,h.C)(En.JY),o=(0,h.C)(En.lc),a=(0,og.Sx)();(0,r.useEffect)((()=>{const e=jf.Draw.Polyline.prototype._onTouch;jf.Draw.Polyline.prototype._onTouch=t=>{if("mouse"!==t.originalEvent.pointerType&&"touch"!==t.originalEvent.pointerType)return e.call(void 0,t)}}),[]);const s=t=>{i!==t&&e((0,y.hT)(t))},l=(t,n)=>{n.geometryType="field",e((0,m.mr)(t)),e((0,m.yV)()),e((0,m.Hz)("view-drawn-fields")),e((0,b.qO)(b.iR.addNewField,!0))};return a?(0,w.jsx)(ty,{position:"topleft",onCreated:t=>{const{drawingModeLayerType:r}=o;e((0,y.bX)(!1,r));let i=(0,ny.p)(t.layer.toGeoJSON());const a=(0,jn._j)();t.layer.fluroGeometryID=a,i.properties[W.h.Id]=a,i.properties.id=a,i.properties[W.h.FieldName]=(0,Dn.t)({id:"DefaultFieldName",defaultMessage:"Field {id}"},{id:n.length+1}),"circle"===t.layerType&&(i=iy(i,t.layer.getRadius())),l(i,t.layer),t.layer.remove()},onEdited:e=>{var t;null===e||void 0===e||null===(t=e.layers)||void 0===t||t.eachLayer((e=>{if(void 0!==e.fluroGeometryID){s(!0);let t=e.toGeoJSON();e.getRadius&&(t=iy(t,e.getRadius())),t.properties.id=e.fluroGeometryID,"field"===e.geometryType&&l(t,e)}else s(!0)}))},draw:{rectangle:!1,polyline:!0,circlemarker:!1,polygon:!0,circle:{metric:t===ol.Ug.MetricUnits},marker:!1}},(0,jn._j)()):null},iy=(e,t)=>(0,Fg.Xwo)(e,t,{units:"meters",properties:{...e.properties,radius:t}});var oy=n(19629);const ay=e=>{let{requestTypes:t}=e;const n=(0,c.v9)((e=>e.helpers.asyncStatuses)),i=(0,c.v9)((e=>e.global.loaders)),o=t.some((e=>n[e].status===b.qb.Pending)),a=(0,r.useMemo)((()=>(0,ii.O7)(i)),[i]);return(0,w.jsx)(Ym,{loading:o&&!a})},sy=e=>{let{fitBounds:t}=e;const n=(0,h.T)(),i=(0,Z.Fg)(),o=(0,h.C)(m.HW),a=(0,h.C)(g._l),s=(0,h.C)(g.Ln),l=(0,h.C)(g.fj),[c,u]=(0,r.useState)(1),d=(0,h.C)(g.IF),p=(0,h.C)(g.oX),f=(0,h.C)(g.gR),v=(0,h.C)(En.k4),_=(0,r.useMemo)((()=>{switch(u(c+1),s){case"view-fields-from-files":return a;case"view-drawn-fields":case"draw-fields":return o;case"view-selected-boundaries":return l;default:return[]}}),[s,a,o,l]);(0,r.useEffect)((()=>{"view-fields-from-files"===s&&x()}),[s]),(0,r.useEffect)((()=>{_.length&&(1===_.length&&"draw-fields"===s||x())}),[_.length]);const x=()=>{if(_.length)try{const e=(0,Fg.uf4)(_),n=Df().geoJSON(e);t(n.getBounds(),void 0,!0)}catch(e){(0,C.e)(`tried fitBounds in addning-new-fields-geometries.tsx ${e}`)}};if(!["view-fields-from-files","view-drawn-fields","view-selected-boundaries","draw-fields","select-boundaries"].includes(s))return null;return(0,w.jsxs)(w.Fragment,{children:[_.map((e=>{const t=e.properties[W.h.Id],o=t===v,a=d||p[t]||e.properties[W.h.Checked],s=f[t],[l=0,c=0]=o?(0,Lg.g8)(e):[];return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(Og.MW,{pathOptions:{color:s?i.color.text.warning:i.color.text.mainInverted,fillColor:a?Y.Pi:"transparent",className:"field-boundary-shape "+(a?"selected":""),weight:2,fillOpacity:1},data:e,eventHandlers:(0,oy.B)({click:()=>n((0,y.l7)(t))})}),o?(0,w.jsx)(Og.wO,{autoPanPaddingBottomRight:[100,B.ak],autoPanPaddingTopLeft:[100,100],onClose:()=>{t===v&&n((0,y.l7)(void 0))},position:{lat:c,lng:l},children:(0,w.jsx)("div",{className:"margin-right-10",children:e.properties[W.h.FieldName]})}):null]},t)})),(0,w.jsx)(ay,{requestTypes:[b.jB.cluFieldBoundaries]})]})},ly=()=>{const e=(0,h.T)(),t=(0,h.C)(g.sX),n=(0,h.C)(g.oX),i=(0,h.C)(g.gR),o=(0,h.C)(m.HW),a=(0,h.C)(g.Ln),s=(0,h.C)(En.r7),l=(0,h.C)((e=>(0,Or.zn)(e,b.iR.addNewField))),c=(0,og.Sx)(),u=(0,r.useRef)(!1),[d,p]=(0,r.useState)(1),f=["zoom-is-too-low","search-location","select-boundaries"].includes(a)||"draw-fields"===a&&!o.length;(0,r.useEffect)((function(){u.current=f}),[f]);const y=(0,r.useCallback)((()=>{if(!u.current)return;c.getZoom()>=m.LN?e((0,m.g0)(c.getBounds())):v()}),[]),v=()=>{if(!u.current)return;c.getZoom()<m.LN&&e((0,m.Hz)("zoom-is-too-low"))};return(0,r.useEffect)((function(){"search-location"===a&&y()}),[a]),(0,og.$_)("moveend",(()=>{f&&y()})),(0,og.$_)("zoomend",(()=>{l&&f&&v()})),(0,r.useEffect)((()=>{p(d+1)}),[t,a,i,n]),(0,w.jsx)(w.Fragment,{children:f&&!s&&(0,w.jsx)(w.Fragment,{children:t.map((e=>{const t=e.properties,r=(null===t||void 0===t?void 0:t.id)||t[W.h.Id],o=i[String(r)],s=n[String(r)];return r?(0,w.jsx)(cy,{id:r,boundary:e,selected:!!s,warning:Boolean(o),isDrawFields:"draw-fields"===a},r):null}))})})},cy=e=>{let{id:t,boundary:n,selected:i,warning:o,isDrawFields:a}=e;const l=(0,h.T)(),c=(0,Z.Fg)(),u=(0,r.useMemo)((()=>({click:()=>{var e;t&&(l((0,m.a7)(t)),l((0,m.eE)(t,W.h.Checked,!(null!==(e=n.properties)&&void 0!==e&&e[W.h.Checked]))),a&&l((0,m.Hz)("select-boundaries")))},mouseover:e=>{var t;const n=null===e||void 0===e?void 0:e.target;null===n||void 0===n||null===(t=n.setStyle)||void 0===t||t.call(n,{fillColor:Y.Pi})},mouseout:e=>{var t;const n=null===e||void 0===e?void 0:e.target;null===n||void 0===n||null===(t=n.setStyle)||void 0===t||t.call(n,{fillColor:i?Y.Pi:"transparent"})}})),[t,i]);return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(Og.MW,{fillColor:i?Y.Pi:"transparent",className:s()("field-boundary-shape",{selected:i}),color:o?c.color.text.warning:c.color.text.mainInverted,fillOpacity:1,weight:2,data:n,eventHandlers:u},t)})};function uy(e){let{ineligibleRegionFields:t,enrolledFields:n,overlapFields:i,onFitBounds:o,setLastBounds:a}=e;const s=(0,Z.Fg)(),l=(0,f.YB)(),c=(0,h.T)(),u=(0,h.C)(En.sE),d=(0,h.C)(g.gR),{isReadOnly:p}=wr(br.t5.Enrolment),[m]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),y=p||!m,v=(0,r.useCallback)((async e=>{var n;if(y)return;const r=null===u||void 0===u||null===(n=u[e])||void 0===n?void 0:n.FieldID;(r?null===t||void 0===t?void 0:t[r]:void 0)?(0,Yn.c)({title:l.formatMessage({id:"note.warning",defaultMessage:"Warning"}),message:If(),type:"warning"}):await c((0,$u.t1)({fieldId:e}))}),[y,t,u,c,l]),{fieldColors:b,fieldColorsBorder:_,fieldCategories:x}=(0,r.useMemo)((()=>{const e={},r={},o={};for(const l in n)if(n[l]){var a;const n=i.find((e=>e.includes(Number(l)))),c=null===u||void 0===u||null===(a=u[l])||void 0===a?void 0:a.FieldID,p=void 0!==c?null===t||void 0===t?void 0:t[c]:void 0,h=d[l];r[l]=p?s.color.stroke.error:h?s.color.stroke.warning:s.color.stroke.subtle,e[l]=p?Y.J:Y.Pi,o[l]=n?"overlap":"enrolled"}else o[l]="notenrolled";return{fieldColors:e,fieldColorsBorder:r,fieldCategories:o}}),[n,u,t,i,d,s.color.stroke.error,s.color.stroke.subtle,s.color.stroke.warning]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(Hg,{children:[(0,w.jsx)(ry,{}),(0,w.jsx)(ly,{})]},"featureGroupReDrawId"),(0,w.jsx)(Vg,{fitBounds:o,fieldColors:b,fieldColorsBorder:_,fieldCategories:x,onGeometryClick:v,saveBoundsToFit:a}),(0,w.jsx)(sy,{fitBounds:o})]})}function dy(e){let{onFitBounds:t,setLastBounds:n}=e;const{projectId:i}=(0,gr.B)(),o=(0,h.C)(En.t8),a=(0,h.C)((e=>(0,_.qz)(e,i))),{fieldColors:s,enrolledFieldIds:l}=(0,r.useMemo)((()=>{const e={},t={};for(const r of a){var n;const i=null===(n=o[r.fs_field_id])||void 0===n?void 0:n.ID;i&&(e[i]="",t[i]=!0)}return{fieldColors:e,enrolledFieldIds:t}}),[o,a]);return(0,w.jsx)(Vg,{fitBounds:t,fieldIds:l,fieldColors:s,saveBoundsToFit:n})}function py(e){let{setLastBounds:t,ineligibleRegionFields:n,enrolledFields:r,overlapFields:i,step:o,onFitBounds:a}=e;switch(o){case Vu.l.Fields:case Vu.l.CropPractices:return(0,w.jsx)(uy,{ineligibleRegionFields:n,enrolledFields:r,overlapFields:i,onFitBounds:a,setLastBounds:t});case Vu.l.AssignPractices:return(0,w.jsx)(Zg,{onFitBounds:a,setLastBounds:t});case Vu.l.ViewOutcomes:return(0,w.jsx)(dy,{onFitBounds:a,setLastBounds:t})}}const hy=()=>{const{fitBounds:e}=(0,r.useContext)(Zm.i),t=(0,h.C)((e=>e.carbon)),n=(0,h.C)((e=>e.helpers.asyncStatuses)),i=(0,h.C)(S.Kn),[o,a]=(0,r.useState)(void 0),s=(0,h.C)(En.AS),{isEnrollment:l}=(0,gr.B)(),c=(0,r.useRef)(!1),u=n[b.jB.allFieldsData].status===b.qb.Pending||n[b.jB.fieldGeometries].status===b.qb.Pending,d=(0,r.useCallback)(((t,n)=>{e(t,n)}),[e]);return(0,r.useEffect)((()=>{!c.current&&o&&(d(o),c.current=!0)}),[o,d]),(0,w.jsxs)("div",{className:"carbon-overlay",children:[(t.step===Vu.l.Fields||!i)&&!s&&(0,w.jsx)(Eg,{}),(0,w.jsx)(Ig,{}),l&&i&&!s&&(0,w.jsx)(ig,{fitBounds:()=>o?d(o):null}),(0,w.jsx)(Gm,{position:"topleft"}),t.step!==Vu.l.Survey&&(0,w.jsx)(py,{ineligibleRegionFields:t.ineligibleRegionFields,enrolledFields:t.enrolledFields,overlapFields:t.overlapFields,step:t.step,setLastBounds:a,onFitBounds:d}),(0,w.jsx)(Ym,{loading:u})]})};n(72014);const fy={color:"#fff",fillColor:"#43A047",fillOpacity:.3},my=e=>{let{onSave:t,onCancel:n}=e;const{fieldBoundaryAlert:i}=(0,r.useContext)(Zm.i);return(()=>{const e=(0,og.Sx)(),t=(0,f.YB)(),n=(0,d.Fg)(),{isEditingMode:i,fieldId:o}=(0,h.C)(En.lc),a=(0,h.C)(Qn.H8),{isWorkspaceMrv:s}=(0,M.c)(),{setFieldBoundaryAlert:l}=(0,r.useContext)(Zm.i),c=(0,h.C)(S.rf),u=(0,h.C)(S.DC),p=(0,h.C)(S.io),m=(0,r.useCallback)((e=>Intl.NumberFormat(p,{style:"unit",unit:"ha"===u?"hectare":"acre",maximumFractionDigits:0}).format((0,iu.En)(u,ol.Ug.ImperialUnits,e))),[p,u]),g=(0,r.useCallback)((e=>{let{layer:r}=e;const i=r.toGeoJSON();if("Feature"!==(null===i||void 0===i?void 0:i.type))return;const o=(0,Fg.SOn)(i)/1e4;if(o<=B.N)return r.setStyle(fy),void l(null);const a=m(o);if(c&&o<=B.O_)return r.setStyle({color:n.palette.common.white,fillColor:n.palette.warning.main,fillOpacity:.3}),void l({type:"warning",message:t.formatMessage({id:"Field size of {fieldSize} exceeds the {fieldSizeLimit} limit. Verify before uploading.",defaultMessage:"Field size of {fieldSize} exceeds the {fieldSizeLimit} limit. Verify before uploading."},{fieldSize:a,fieldSizeLimit:m(B.N)})});r.setStyle({color:n.palette.common.white,fillColor:n.palette.error.main,fillOpacity:.3}),l({type:"error",message:t.formatMessage({id:"Field size of {fieldSize} exceeds the {fieldSizeLimit} limit.",defaultMessage:"Field size of {fieldSize} exceeds the {fieldSizeLimit} limit."},{fieldSize:a,fieldSizeLimit:m(c?B.O_:B.N)})})}),[m,t,c,l,n.palette.common.white,n.palette.error.main,n.palette.warning.main]);(0,r.useEffect)((()=>{i&&e&&setTimeout((()=>{e.eachLayer((e=>{(0,Lg.vS)(e)&&e.feature.properties.fluro_id===o&&(g({layer:e}),e.pm.enable(),e.on("pm:edit",g))}))}),100)}),[g,o,i,s,e,a])})(),(0,w.jsx)(d.xu,{width:"100%",top:zu.M+20,zIndex:ud.K.DatePicker,position:"fixed",children:(0,w.jsxs)(gy,{className:"edit-field-control-container",children:[(0,w.jsx)("div",{className:"edit-field-wrapper",children:(0,w.jsxs)("div",{className:"edit-field-control-buttons",children:[(0,w.jsxs)("button",{onClick:n,children:[(0,w.jsx)(f._H,{id:"Cancel",defaultMessage:"Cancel"}),(0,w.jsx)(On.xu,{children:"close"})]}),(0,w.jsx)("button",{onClick:t,disabled:"error"===(null===i||void 0===i?void 0:i.type),children:(0,w.jsx)(f._H,{id:"Save",defaultMessage:"Save"})})]})}),(0,w.jsx)("div",{className:"edit-field-control-msg",children:(0,w.jsx)(f._H,{id:"Drag the points to edit the boundary. Right click to delete a point.",defaultMessage:"Drag the points to edit the boundary. Right click to delete a point."})}),i&&(0,w.jsx)(d.bZ,{severity:i.type,children:i.message})]})})},gy=(0,d.zo)("div")`
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 16px;
  transition: background-color 0.3s;
  text-align: center;

  @media (max-width: 560px) {
    bottom: calc(100vh - 50px);
    white-space: nowrap;
  }

  .edit-field-wrapper {
    display: inline-block;
  }

  .edit-field-control-buttons {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s;
    overflow: hidden;
    width: min-content;

    > button:first-child {
      border-right: 1px solid ${e=>{let{theme:t}=e;return t.palette.grey[400]}};
    }

    > button {
      color: #fff;
      background: transparent;
      border: unset;
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 10px 20px;

      &:hover {
        background-color: rgba(0, 0, 0, 0.8);
      }

      &:disabled {
        cursor: not-allowed;
        background-color: unset;
      }
    }

    .md-icon {
      color: inherit;
    }
  }

  .edit-field-control-msg {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 12px;
  }
`;function yy(){const e=(0,Rf.mE)().map,t=(0,h.T)(),n=(0,h.C)((e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.drawControl.fieldId})),i=(0,h.C)((e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.fieldGeometries})),o=(0,h.C)(_.JV),{id:a}=o||{},{setBoundaryViolationsByFieldId:s}=(0,r.useContext)(kf),l=(0,r.useCallback)((()=>{e.pm.disableGlobalEditMode(),t((0,y.q2)(!1)),t((0,y.mX)({...i})),t((0,y.hT)(!0))}),[i,e.pm,t]),c=(0,r.useCallback)((()=>{a&&(e.pm.disableGlobalEditMode(),t((0,y.q2)(!1)),e.eachLayer((e=>{var r,i;if((null===(r=e.feature)||void 0===r||null===(i=r.properties)||void 0===i?void 0:i.fluro_id)===n){const n=e.toGeoJSON();t((0,$u.k4)({data:n,projectId:a,setBoundaryViolationsByFieldId:s}))}})),t((0,y.hT)(!0)))}),[e,n,a,t,s]);return(0,w.jsx)(my,{onSave:c,onCancel:l})}const vy=()=>{const{fitBounds:e}=(0,r.useContext)(Zm.i),t=(0,h.T)(),[n]=Wu(),{projectId:i,stageId:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,_.lK)(e,i))),[s,l]=(0,r.useContext)(od),c=(0,h.C)(En.k4),u=(0,og.Sx)(),{getValueRows:d}=Lo(i),p=d(o),[f,m]=(0,r.useState)(!1),g=()=>Df().geoJSON((0,Fg.dqO)(a)).getBounds(),v=()=>{t((0,y.l7)(void 0))};(0,r.useEffect)((()=>{const t=c?a.find((e=>{var t;return(null===e||void 0===e||null===(t=e.properties)||void 0===t?void 0:t.fieldId)===c})):void 0;(0,er.$K)(t)&&Mg(t,u,e)}),[c]),(0,r.useEffect)((()=>{if(f&&null!==a&&void 0!==a&&a.length){const t=g();e(t),m(!1)}}),[f,null===a||void 0===a?void 0:a.length,e]),(0,r.useEffect)((()=>{n||m(!0)}),[n,t]);return null!==a&&void 0!==a&&a.length?(0,w.jsxs)(w.Fragment,{children:[a.map((e=>{var n,i;const{fieldId:o,position:a}=null!==(n=e.properties)&&void 0!==n?n:{},u=s.some((e=>e.entityId===o)),d=c===o;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(Og.MW,{pathOptions:{weight:2,opacity:1,fillColor:"#4988EF",fillOpacity:u?1:0,color:"white"},data:e,eventHandlers:{click:()=>{o&&((e,n)=>{t((0,y.l7)(e)),l((t=>n?t.concat(p.filter((t=>(0,Eo.B)(t)===e)).map((e=>({entityId:(0,Eo.B)(e),rowId:e.row_id})))):t.filter((t=>t.entityId!==e))))})(o,!u)}}},o),d&&(null===(i=e.properties)||void 0===i?void 0:i.name)&&(0,w.jsx)(Og.wO,{autoPan:!1,position:a,minWidth:60,onClose:v,children:(0,w.jsx)("div",{className:"margin-right-10",children:e.properties.name})})]},o)})),(0,w.jsx)(ig,{fitBounds:()=>e(g())})]}):null};var by=n(33765);const _y=()=>{const{fitBounds:e}=(0,r.useContext)(Zm.i),t=(0,h.C)(_.zV),n=(0,h.C)(_.ar),i=(0,r.useMemo)((()=>null===n||void 0===n?void 0:n.map((e=>e.geom)).filter(er.$K).map((e=>({type:"Feature",geometry:e})))),[n]),o=(0,r.useMemo)((()=>{if(null!==i&&void 0!==i&&i.length)return(0,Lg.hF)(i)}),[i]);return(0,r.useEffect)((()=>{if(null===i||void 0===i||!i.length||t)return;const n=(0,Fg.uf4)(i),r=L.geoJSON(n).getBounds();e(r)}),[i,t,e]),o?(0,w.jsx)(by.Q,{pathOptions:{weight:4,opacity:1,color:"white",fillOpacity:.4,fillColor:"black"},data:o}):null};n(37772);const wy=(0,r.createContext)({patchedFitBounds:()=>{}}),{Provider:xy}=wy;n(45644);Df().Control.Measure.include({_baseHandleMeasureClick:Df().Control.Measure.prototype._handleMeasureClick,_handleMeasureClick:function(e){this._baseHandleMeasureClick(e);const t=Df().extend({},this._resultsModel,{points:this._latlngs});this._map.fire("measureclick",t,!1)},update:function(e){Df().setOptions(this,{...this.options,...e}),this._updateResults()}}),Df().DivIcon.SVGIcon=Df().DivIcon.extend({options:{circleText:"",className:"svg-icon",circleAnchor:null,circleColor:null,circleOpacity:null,circleFillColor:"rgb(255,255,255)",circleFillOpacity:null,circleRatio:.5,circleWeight:null,color:"rgb(0,102,255)",fillColor:null,fillOpacity:.4,fontColor:"rgb(0, 0, 0)",fontOpacity:"1",fontSize:null,iconAnchor:null,iconSize:Df().point(32,48),opacity:1,popupAnchor:null,weight:2},initialize:function(e){(e=Df().Util.setOptions(this,e)).iconSize=Df().point(e.iconSize),e.circleAnchor?e.circleAnchor=Df().point(e.circleAnchor):e.circleAnchor=Df().point(Number(e.iconSize.x)/2,Number(e.iconSize.x)/2),e.circleColor||(e.circleColor=e.color),e.circleFillOpacity||(e.circleFillOpacity=e.opacity),e.circleOpacity||(e.circleOpacity=e.opacity),e.circleWeight||(e.circleWeight=e.weight),e.fillColor||(e.fillColor=e.color),e.fontSize||(e.fontSize=Number(e.iconSize.x/4)),e.iconAnchor?e.iconAnchor=Df().point(e.iconAnchor):e.iconAnchor=Df().point(Number(e.iconSize.x)/2,Number(e.iconSize.y)),e.popupAnchor?e.popupAnchor=Df().point(e.popupAnchor):e.popupAnchor=Df().point(0,-.75*e.iconSize.y),e.html=this._createSVG()},_createCircle:function(){const e=Number(this.options.circleAnchor.x),t=Number(this.options.circleAnchor.y),n=this.options.iconSize.x/2*Number(this.options.circleRatio),r=this.options.circleFillColor,i=this.options.circleFillOpacity,o=this.options.circleColor,a=this.options.circleOpacity,s=this.options.circleWeight;return`<circle class="${`${this.options.className}-circle`}" cx="${e}" cy="${t}" r="${n}" fill="${r}" fill-opacity="${i}" stroke="${o}" stroke-opacity=${a}" stroke-width="${s}"/>`},_createPathDescription:function(){const e=Number(this.options.iconSize.y),t=Number(this.options.iconSize.x),n=Number(this.options.weight),r=n/2;return`M ${r} ${t/2} `+`L ${t/2} ${e-n} `+`L ${t-r} ${t/2} `+`A ${t/4} ${t/4} 0 0 0 ${r} ${t/2} Z`},_createPath:function(){const e=this._createPathDescription(),t=this.options.weight,n=this.options.color,r=this.options.Opacity,i=this.options.fillColor,o=this.options.fillOpacity;return`<path class="${`${this.options.className}-path`}" d="${e}" stroke-width="${t}" stroke="${n}" stroke-opacity="${r}" fill="${i}" fill-opacity="${o}"/>`},_createSVG:function(){const e=this._createPath(),t=this._createCircle(),n=this._createText();return`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="${`${this.options.className}-svg`}" style="${`width:${this.options.iconSize.x}px; height:${this.options.iconSize.y}px;`}">${e}${t}${n}</svg>`},_createText:function(){const e=`${this.options.fontSize}px`,t=Number(this.options.fontSize),n=Number(this.options.iconSize.x)/2,r=n+.35*t,i=this.options.circleText;return`<text text-anchor="middle" x="${n}" y="${r}" style="font-size: ${e}" fill="${this.options.fontColor.replace("rgb(","rgba(").replace(")",`,${this.options.fontOpacity})`)}">${i}</text>`}}),Df().divIcon.svgIcon=function(e){return new(Df().DivIcon.SVGIcon)(e)},Df().Marker.SVGMarker=Df().Marker.extend({options:{iconFactory:Df().divIcon.svgIcon,iconOptions:{}},initialize:function(e,t){(t=Df().Util.setOptions(this,t)).icon=t.iconFactory(t.iconOptions),this._latlng=e},onAdd:function(e){Df().Marker.prototype.onAdd.call(this,e)},setStyle:function(e){if(this._icon){const t=this._icon.children[0].children[0],n=this._icon.children[0].children[1];if(e.color&&!e.iconOptions){const r=e.color.replace("rgb","rgba").replace(")",`,${this.options.icon.options.opacity})`),i=e.color.replace("rgb","rgba").replace(")",`,${this.options.icon.options.fillOpacity})`);t.setAttribute("stroke",r),t.setAttribute("fill",i),n.setAttribute("stroke",r),this.options.icon.fillColor=i,this.options.icon.color=r,this.options.icon.circleColor=r}if(e.opacity&&this.setOpacity(e.opacity),e.iconOptions){e.color&&(e.iconOptions.color=e.color);const t=Df().Util.setOptions(this.options.icon,e.iconOptions);this.setIcon(Df().divIcon.svgIcon(t))}}}}),Df().marker.svgMarker=function(e,t){return new(Df().Marker.SVGMarker)(e,t)},delete Df().Icon.Default.prototype._getIconUrl,Object.keys(k.Uo.options).forEach((e=>{Df().Icon.Default.prototype.options[e]=k.Uo.options[e]})),Df().drawLocal.draw.handlers.marker.tooltip.start="";const ky=e=>{let{children:t}=e;const n=(0,h.C)(En.AS);return(0,w.jsx)("div",{className:"map-v2__container",children:(0,w.jsx)(qm.fJ,{children:(0,w.jsxs)(Zm.p,{children:[(0,w.jsx)(Vm,{children:(0,w.jsx)(Cy,{className:"section-container mrv-right-panel-section-container",children:t})}),(0,w.jsx)(_y,{}),(0,w.jsx)(u.AW,{path:[Wo.sZ],component:hy}),(0,w.jsx)(u.AW,{path:[Wo.qc,Wo._j],component:vy}),n&&(0,w.jsx)(yy,{})]})})})},Cy=Z.ZP.div`
  .mrv-right-panel-section-container {
    flex-grow: 1;

    .continue-sticky {
      margin-top: auto;
      text-align: right;

      .fluro-button {
        min-width: 160px;
      }
    }
  }
`;var Sy=n(12141);const My=Z.ZP.div`
  position: relative;
  .button {
    display: flex;
    cursor: pointer;
  }
  .content {
    position: absolute;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.2);
    z-index: ${ud.K.Sticky};
  }

  .semi-white-skin-button {
    background-color: rgba(255, 255, 255, 0.88);
    color: ${e=>{let{theme:t}=e;return t.color.text.main}};
    border-radius: 5px;
    box-shadow: none;
    font-size: 16px;
    text-transform: none;
    font-weight: 400;
    height: 43px;
  }

  &.expanded {
    .semi-white-skin-button {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
`,Ty=e=>{let{button:t,children:n,anchor:i,multiselect:o=!0,className:a=""}=e;const l=(0,r.useRef)(null),[c,u]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!c)return;const e=e=>{c&&(o&&(0,Sy.p3)(l.current,e.target)||setTimeout((()=>u(!1)),250))},t=e=>{"Escape"===e.code&&u(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[c,o]),(0,w.jsxs)(My,{ref:l,className:s()({expanded:c,[a]:!!a}),children:[(0,w.jsx)("div",{className:"button",onClick:()=>u((e=>!e)),children:t}),c&&(0,w.jsx)("div",{className:"content",style:{right:"right"===i?0:"auto"},children:n})]})};var Ey=n(2480),Py=n(79501);const Iy=e=>{var t,n,i,o,a,s;let{onHide:l,requestContractDeletion:c}=e;const u=(0,f.YB)(),[p,h]=(0,r.useState)(),m=[{label:u.formatMessage({id:"Change in lease status",defaultMessage:"Change in lease status"}),value:"Change in lease status"},{label:u.formatMessage({id:"Unable to perform practices",defaultMessage:"Unable to perform practices"}),value:"Unable to perform practices"},{label:u.formatMessage({id:"Other",defaultMessage:"Other"}),value:"Other"}],{handleSubmit:g,formState:{errors:y},watch:v,register:b,setValue:_}=(0,Cn.cI)({resolver:(0,kn.X)((0,zn.Ry)().shape({reason:(0,zn.Z_)().min(1,u.formatMessage({id:"ContractDeleteValidator.Reason is required",defaultMessage:"Reason is required"})).required(u.formatMessage({id:"ContractDeleteValidator.Reason is required",defaultMessage:"Reason is required"}))})),defaultValues:{reason:""}});(0,r.useEffect)((()=>{var e;let t=p;"Other"===p&&(t=""),_("reason",null!==(e=t)&&void 0!==e?e:"",{shouldValidate:!!t})}),[p]),b("reason");const x=v(),k="Other"===p;return(0,w.jsxs)(d.o9,{id:"contract-wip",title:u.formatMessage({id:"Contract deletion request",defaultMessage:"Contract deletion request"}),onClose:l,open:!0,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:3,children:[(0,w.jsx)(d.ZT,{variant:"h4",fontWeight:400,children:u.formatMessage({id:"Reason for contract deletion",defaultMessage:"Reason for contract deletion"})}),(0,w.jsx)(d.ZT,{color:"secondary",children:u.formatMessage({id:"ContractDeletionChooseReason",defaultMessage:"Please choose which reasons describe why you want to delete your agreement below."})}),(0,w.jsx)(d.mg,{label:u.formatMessage({id:"Reason for return",defaultMessage:"Reason for return"}),options:m,onChange:e=>h(e.target.value),value:p,fullWidth:!0,error:k?void 0:!(null===(t=y.reason)||void 0===t||!t.message)}),!k&&null!==(n=y.reason)&&void 0!==n&&n.message?(0,w.jsxs)(d.Q6,{error:!0,children:[null===(i=y.reason)||void 0===i?void 0:i.message," "]}):null,k&&(0,w.jsx)(d.nv,{rows:3,value:x.reason,fullWidth:!0,placeholder:u.formatMessage({id:"ExplainWhyDeleteContract",defaultMessage:"Please explain why you want to delete your contract so that we can better support you..."}),error:!(null===(o=y.reason)||void 0===o||!o.message),helperText:null!==(a=null===(s=y.reason)||void 0===s?void 0:s.message)&&void 0!==a?a:"",onChange:e=>_("reason",e.target.value,{shouldValidate:!0})})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:l,children:u.formatMessage({id:"Cancel",defaultMessage:"Cancel"})}),(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:g((e=>{let{reason:t}=e;c(t),l()})),children:u.formatMessage({id:"Submit request",defaultMessage:"Submit request"})})]})]})};var Oy=n(89247);const Ly={},Ry=e=>{let{cargillCustomInput:t}=e;const n=(0,h.T)(),{projectId:i,programId:o}=(0,gr.B)(),a=(0,h.C)((e=>(0,_.lT)(e,i))),s=(0,h.C)((e=>(0,_.PP)(e,null===a||void 0===a?void 0:a.program_id))),[l,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(""),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),b=(0,Oy.t)(),x=(0,f.YB)(),k=(0,r.useMemo)((()=>{if(t.id)return Zo()((null===a||void 0===a?void 0:a.custom_reg_values)||[],"key")[t.id]}),[t.id,null===a||void 0===a?void 0:a.custom_reg_values]),S=(0,r.useCallback)((async e=>{const t={data:{name:e}};if(Ly[e])return t;if(68===o&&("FarmLogs2022"===e||/JohnDeere2022/i.test(e)))return Ly[e]=!0,t;v(e);try{const t=await Nr.eV.validateCargill(Number(e));return b&&(v(!1),Ly[e]=!0),t}catch(n){return b&&(v(!1),g(!0),Ly[e]=!1),(0,C.e)(`Cargill account validation endpoint error: ${JSON.stringify(n)}`),!1}}),[b,o]);(0,r.useEffect)((()=>{if(!t.id)return;const e=null===k||void 0===k?void 0:k.value;e?e.match(/^\d+$/)&&S(e).then((t=>{!t&&b&&(p(e),c(!0))})):c(!0)}),[b,S,t,k]);return(0,w.jsxs)(d.o9,{id:"mrv-cargill-account-check-dialog",title:x.formatMessage({id:"Enter Cargill Account ID",defaultMessage:"Enter Cargill Account ID"}),open:l,hideCloseIcon:!0,onClose:()=>null,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:3,children:[(0,w.jsx)(d.ZT,{variant:"body2",children:x.formatMessage({id:"ProvideCargillAccIdMessage",defaultMessage:"To ensure the security of your information, please provide your Cargill Account ID. This Account ID will also be used to issue payment(s) per the Grower Agreement."})}),(0,w.jsx)(d.nv,{name:"mrv-cargill-account-check-dialog-field",placeholder:x.formatMessage({id:"Cargill Account ID",defaultMessage:"Cargill Account ID"}),value:u,onChange:e=>p(e.target.value),fullWidth:!0,error:m,helperText:m?x.formatMessage({id:"Invalid Account ID",defaultMessage:"Invalid Account ID"}):x.formatMessage({id:"CargillAccIdMinLength",defaultMessage:"Minimum length 6 digits"})}),(0,w.jsx)(d.bZ,{severity:"info",children:(0,w.jsx)(d.ZT,{variant:"body2",children:(0,w.jsx)(f._H,{id:"CargillAccIdHelpInfo",defaultMessage:"Need help with your Account ID? Contact the <a>Cargill support team</a>.",values:{a:e=>(0,w.jsx)("a",{href:"mailto:regenconnect@cargill.com",children:e})}})})})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:()=>n((0,Yr.kS)()),variant:"outlined",color:"secondary",children:x.formatMessage({id:"Logout",defaultMessage:"Logout"})}),(0,w.jsx)(d.zx,{disabled:!1!==y||!u||`${u}`.length<6,onClick:()=>u&&(async e=>{var r;if(!t||!e)return;const o=await S(e);if(o){g(!1),c(!1);try{let r;k?(r={...k,value:e},await(0,Fr.NB)({projectId:i,input:r})):(r={key:`${t.id}`,name:t.name,config:t.config,type_:t.type_,program_name:null===s||void 0===s?void 0:s.name,program_id:null===s||void 0===s?void 0:s.id,project_id:i,value:e},await(0,Fr.c4)({projectId:i,input:r})),n((0,Ao.hd)({projectId:i,customInputValue:r}))}catch(l){(0,C.e)(`Cargill account id update error: ${JSON.stringify(l)}`)}var a;null!==o&&void 0!==o&&null!==(r=o.data)&&void 0!==r&&r.name&&(0,Yn.c)({autoClose:1e4,title:x.formatMessage({id:"Confirmed account ID",defaultMessage:"Confirmed account ID"}),message:(0,w.jsxs)("span",{children:[(0,w.jsx)("br",{}),x.formatMessage({id:"CargillAccIdConfirmed",defaultMessage:"Cargill Account ID {accountId} is confirmed as {name}"},{accountId:e,name:null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.name})]}),type:"success"})}})(u),children:x.formatMessage({id:"BtnLabel.Submit",defaultMessage:"Submit"})})]})]})},jy=()=>{const e=(0,f.YB)(),{visible:t=!1,payload:n}=(0,h.C)((e=>(0,Or._X)(e,b.iR.noContractInfo))),{programId:i}=(0,gr.B)(),o=(0,h.C)((e=>(0,_.PP)(e,i))),a=(0,h.C)((e=>(0,_.iZ)(e,null===n||void 0===n?void 0:n.phaseId))),s=(0,h.T)(),l=(0,r.useCallback)((()=>s((0,b.qO)(b.iR.noContractInfo,!1))),[s]);return(0,w.jsxs)(d.o9,{id:"mrv-no-contract-dialog",title:e.formatMessage({id:"NoContractDialog.Title",defaultMessage:"Contract not yet available"}),onClose:l,open:t,hideCloseIcon:!0,children:[(0,w.jsx)(d.cZ,{children:null!==a&&void 0!==a&&a.no_contract_message?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,xm.sanitize)(null===a||void 0===a?void 0:a.no_contract_message)}}):(0,w.jsx)(f._H,{id:"NoContractDialog.Desc",defaultMessage:"<p>Thank you for participating in {programName}.</p><p>A signature will be required to participate in the program but is not yet available.</p><p>Return later to sign your contract.</p>",values:{programName:null===o||void 0===o?void 0:o.name,p:e=>(0,w.jsx)("p",{children:e})}})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:l,children:e.formatMessage({id:"BtnLabel.Okay",defaultMessage:"Ok"})})})]})},Dy=e=>{var t;let{onInfoDialogToggle:n}=e;const i=(0,u.k6)(),o=(0,f.YB)(),a=(0,Z.Fg)(),{projectId:s,programId:l}=(0,gr.B)(),c=(0,h.T)(),p=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),m=(0,h.C)(_.Bx),g=(0,h.C)(vr.jU),y=(0,h.C)(vr.KD),v=(0,h.C)(_.no),b=(0,h.C)((e=>(0,_.sZ)(e,br.t5.Enrolment))),x=(0,h.C)((e=>(0,_.Jp)(e,br.t5.Enrolment,br.UY.FIELD_BOUNDARIES))),S=(0,h.C)(vr.v7),M=(0,h.C)((e=>(0,_.AI)(e,s))),T=(0,h.C)((e=>(0,_.YN)(e,br.t5.Enrolment))),E=(0,h.C)((e=>(0,_.ai)(e,br.t5.Enrolment)));Bu(b);const{surveyDialog:P}=Id(br.t5.Enrolment),I=Jo(br.t5.Enrolment),{navigateToFinishStage:O}=Yo(),L=ih(),{programCustomInputs:R}=(0,Ey.p)(l),{isProjectPhaseCompleted:j}=(0,fr.F)(s,null===p||void 0===p?void 0:p.id),D=(0,hr.UB)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),A=(0,xr.nh)(xr.hn.NEW_ALERTS),[N,F]=(0,r.useState)(!1),[z,B]=(0,r.useState)(!1),[U,$]=(0,r.useState)(!1),{isReadOnly:V}=wr(br.t5.Enrolment),q=V||!D,H=(0,r.useMemo)((()=>0===b.filter((e=>{var t;return e.required&&!(null!==(t=v[e.id])&&void 0!==t&&t.is_completed)})).length),[v,b]),G=(0,r.useCallback)((()=>B((e=>!e))),[]),W=(0,r.useCallback)(((e,t)=>{const n={programId:l,enrollmentStep:e,stageId:t};i.push(`${(0,xo.F_)(Wo.sZ,{projectId:s})}?${(0,fo.CT)(n)}`),c((0,$u.nj)({step:e,isReadOnly:q}))}),[c,i,q,l,s]),{canOpenDNDCModal:Y,openDNDCModal:K}=function(e){const t=(0,h.T)(),n=(0,h.C)(_.JV),{isReadOnly:i}=wr(br.t5.Enrolment),[o]=(0,hr.zE)([br.aR.RUN_DNDC_FOR_PROJECT_FIELDS]),a=i||!o,s=(0,h.C)(vr.jU),l=(0,h.C)(vr.v7),c=(0,f.YB)(),u=(0,xr.nh)(xr.hn.EXPLORE_API),[d,p]=(0,r.useState)(!1),m=(0,r.useCallback)((async()=>{if(n&&!d&&n.dndc_status!==br.Xp.InProgress){p(!0);try{u?await si.ZP.exploreSubmitProject(n.id,null===n||void 0===n?void 0:n.fields):await si.ZP.runDNDC(n.id,null===n||void 0===n?void 0:n.fields),t((0,Ao.KA)({projectId:n.id,status:br.Xp.InProgress})),null===e||void 0===e||e(Vu.l.ViewOutcomes)}catch(r){t((0,Ao.KA)({projectId:n.id,status:br.Xp.Failed})),(0,C.e)(r)}p(!1)}}),[t,d,e,n,u]);return{canOpenDNDCModal:!a&&!s&&null===l.status,openDNDCModal:()=>t((0,Py.qO)($r.iR.confirm,!0,{okLabel:c.formatMessage({id:"BtnLabel.GetStarted",defaultMessage:"Get started"}),okAction:m,title:c.formatMessage({id:"DNDCModalMessageTitle",defaultMessage:"Are you sure?"}),message:(0,w.jsx)(f._H,{id:"DNDCModalMessage",defaultMessage:"<Text>Calculations may take a few moments.</Text> <Text> While outcomes are being calculated you will not be able to edit your fields. </Text>",values:{Text:e=>(0,w.jsx)(Rn.x,{children:e})}})}))}}(W),X=(0,r.useCallback)((async()=>{if(null===p||void 0===p||!p.id)return;F(!0),(null===p||void 0===p?void 0:p.contract_type)===br.WN.Docusign&&await Nr.eV.getDNDCResults(s,null===p||void 0===p?void 0:p.id);const e=await c((0,Fr.nj)({projectId:s,phaseId:null===p||void 0===p?void 0:p.id,redirect_url:`${location.origin}${(0,xo.F_)(Wo._j,{projectId:s})}`}));var t;(F(!1),"fulfilled"===e.meta.requestStatus)&&window.open(null!==(t=e.payload)&&void 0!==t?t:"","_self")}),[null===p||void 0===p?void 0:p.id,null===p||void 0===p?void 0:p.contract_type,c,s]),J=(0,r.useCallback)((e=>{let{disabled:t}=e;return(0,w.jsxs)(Ty,{className:"margin-left-auto margin-right-16",button:(0,w.jsx)(kd.w,{disabled:t,icon:!0,children:"more_vert"}),anchor:"right",children:[(0,w.jsx)(On.HC,{onClick:()=>(0,rh.y)(s),className:"list-style-none",primaryText:o.formatMessage({id:"ContractActions.View",defaultMessage:"View"})},"view"),(0,w.jsx)(On.HC,{className:"list-style-none",onClick:()=>$(!0),primaryText:o.formatMessage({id:"ContractActions.Delete",defaultMessage:"Delete"})},"delete")]})}),[o,s]),Q=(0,r.useCallback)((e=>{const t={programId:l,stageId:e.id,tableView:!(0,ki.o8)(e.type_),entityId:Go.en};i.push(`${(0,xo.F_)(Wo.CP,{projectId:s,programId:l,stageType:(0,ki.vM)(e.type_)})}?${(0,fo.CT)(t)}`)}),[i,l,s]),ee=(0,r.useMemo)((()=>{var e;const t=!!m.length,n=[{title:Ru.t[Vu.l.Fields](),icon:(0,w.jsx)(k.$J,{fill:a.color.text.success}),outlined:!0,onClick:()=>null!==x&&void 0!==x&&x.id?Q(x):W(Vu.l.Fields),actionLabel:q?"view":t?"edit":"start",percentComplete:t?100:0,order:-1}],r=((null===T||void 0===T?void 0:T.filter((e=>e.enabled&&e.type_&&!Uu.EA.includes(e.type_))))||[]).map((e=>{var t,n;const{icon:r,id:i,type_:o,order:a}=e,s=null===v||void 0===v||null===(t=v[i])||void 0===t?void 0:t.is_completed;return{title:(0,To.bT)(e),icon:(0,w.jsx)(yd,{iconUrl:r,stageType:o}),onClick:()=>Q(e),percentComplete:(null===v||void 0===v||null===(n=v[i])||void 0===n?void 0:n.percentage_complete)||0,actionLabel:q?"view":s?"edit":"start",disabled:I(e),order:a}}));n.push(...r);const i=b.find((e=>e.type_===br.UY.ASSIGN_PRACTICES));if(null!==i&&void 0!==i&&i.enabled){const E=v[i.id];n.push({title:(0,To.bT)(i),icon:(0,w.jsx)(td.N4,{size:30,fill:a.color.text.success}),outlined:!0,onClick:()=>Q(i),actionLabel:q?"view":null!==E&&void 0!==E&&E.is_completed?"edit":"start",percentComplete:(null===E||void 0===E?void 0:E.percentage_complete)||0,disabled:I(i),order:i.order})}const l=b.find((e=>e.type_===br.UY.VIEW_OUTCOMES));if((null===p||void 0===p||null===(e=p.params)||void 0===e?void 0:e.outcome_estimation)&&l){function P(){if(S.status&&S.status!==br.Xp.Success)return S.status===br.Xp.Failed?o.formatMessage({id:"Error calculating outcomes",defaultMessage:"Error calculating outcomes"}):(0,w.jsx)(w.Fragment,{children:o.formatMessage({id:"Calculating...",defaultMessage:"Calculating..."})})}n.push({title:(0,To.bT)(l),subtitle:P(),badge:S.status===br.Xp.Failed?"error":void 0,icon:(0,w.jsx)(td.kz,{size:30,fill:a.color.text.success}),outlined:!0,disabled:I(l),onClick:()=>{Y?G():Q(l)},message:(0,w.jsx)(rm,{isOnMainPage:!0}),actionLabel:q?"view":Y?"start":S.status===br.Xp.Success?"edit":"view",percentComplete:S.status===br.Xp.Success?100:0,order:null===l||void 0===l?void 0:l.order})}const c=b.find((e=>e.type_===br.UY.ELIGIBILITY));if(c){var u,h;const R=null===v||void 0===v||null===(u=v[c.id])||void 0===u?void 0:u.is_completed;n.push({title:(0,To.bT)(c),icon:(0,w.jsx)(yd,{iconUrl:c.icon,stageType:c.type_}),onClick:()=>Q(c),percentComplete:(null===v||void 0===v||null===(h=v[c.id])||void 0===h?void 0:h.percentage_complete)||0,actionLabel:q||R?"view":"start",disabled:I(c),order:null===c||void 0===c?void 0:c.order})}const f=b.find((e=>e.type_===br.UY.SURVEY));if(f){var _,C;const D=null===v||void 0===v||null===(_=v[f.id])||void 0===_?void 0:_.is_completed;n.push({title:(0,To.bT)(f),icon:(0,w.jsx)(d.le,{type:Xo.Bj[br.UY.SURVEY],fontSize:"h4"}),onClick:()=>Q(f),percentComplete:(null===v||void 0===v||null===(C=v[f.id])||void 0===C?void 0:C.percentage_complete)||0,actionLabel:q?"view":D?"edit":"start",disabled:I(f),order:null===f||void 0===f?void 0:f.order})}const M=b.find((e=>e.type_===br.UY.CONTRACT));if(null!==p&&void 0!==p&&p.show_contract&&M){const A=(I(M)||N||!!L)&&!g,F=g?()=>(0,rh.y)(s):X,z=g||q,B=z?"view":"start",U=g&&!y?(0,w.jsx)(J,{disabled:A}):void 0;n.push({title:o.formatMessage({id:"EnrollmentStep.Producer agreement",defaultMessage:"Producer agreement"}),icon:(0,w.jsx)(td.MT,{size:30,fill:a.color.text.success}),outlined:!0,disabled:A,disabledTooltip:!z&&L,percentComplete:g?100:0,onClick:U?void 0:F,actionLabel:U?void 0:B,customAction:U,order:null===M||void 0===M?void 0:M.order})}n.push({title:o.formatMessage({id:"EnrollmentStep.Finish",defaultMessage:"Finish"}),icon:(0,w.jsx)(d.le,{type:"finalize",fontSize:"h4"}),outlined:!0,disabled:!H,percentComplete:j?100:0,onClick:()=>O(br.t5.Enrolment),actionLabel:j?"view":"start",customAction:void 0,order:1e3}),n.sort(((e,t)=>e.order-t.order));return n.map((e=>m.length?e:{...e,disabled:-1!==e.order}))}),[H,Y,v,y,g,S.status,null===p||void 0===p?void 0:p.show_contract,null===p||void 0===p||null===(t=p.params)||void 0===t?void 0:t.outcome_estimation,x,J,X,o,N,j,q,I,Q,W,O,K,m.length,s,L,T,b,a.color.text.success]),te=R.find((e=>"Cargill Grain API"===e.validation_rule)),ne=null===M||void 0===M?void 0:M.find((e=>"JohnDeere"===e.value&&"Regex"===e.type_));return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(bd,{active:E&&!q,defaultCollapsed:!E,infoIconAction:null!==p&&void 0!==p&&p.resources?()=>n("enrollment"):void 0,programStageSubItems:ee,subtitle:(0,ki.bM)(q,null===p||void 0===p?void 0:p.start_date,null===p||void 0===p?void 0:p.end_date),title:o.formatMessage({id:"EnrollmentStepName.Enrollment",defaultMessage:"Enrollment"})}),y?A?(0,w.jsx)(d.xu,{pt:2,pb:4,children:(0,w.jsx)(d.bZ,{severity:"info",action:(0,w.jsx)(d.zx,{onClick:()=>c((0,Yr.kS)()),size:"small",variant:"outlined",children:(0,w.jsx)(f._H,{id:"Logout",defaultMessage:"Logout"})}),children:(0,w.jsx)(f._H,{id:"DeleteProducerAgreementRequestMessage",defaultMessage:"A request to delete your producer agreement has been sent to your program admin. You will be notified about next steps soon."})})}):(0,w.jsx)(nr.U8,{mini:!0,appearance:"info",color:"info",actions:(0,w.jsx)(kd.w,{onClick:()=>c((0,Yr.kS)()),blank:!0,raised:!0,children:o.formatMessage({id:"Logout",defaultMessage:"Logout"})}),className:"margin-bottom-15",children:o.formatMessage({id:"DeleteProducerAgreementRequestMessage",defaultMessage:"A request to delete your producer agreement has been sent to your program admin. You will be notified about next steps soon."})}):null,U&&(0,w.jsx)(Iy,{requestContractDeletion:e=>{c((0,Fr.KP)({projectId:s,reason:e}))},onHide:()=>$(!1)}),P,te&&!ne&&(0,w.jsx)(Ry,{cargillCustomInput:te}),(0,w.jsx)(jy,{}),(0,w.jsx)(im,{open:z,onClose:G,onStartCalculation:G})]})},Ay=e=>{let{onInfoDialogToggle:t}=e;const{projectId:n,programId:i}=(0,gr.B)(),o=(0,f.YB)(),a=(0,h.C)((e=>(0,_.sZ)(e,br.t5.Monitoring))),s=(0,h.C)(_.no),l=(0,h.C)((e=>(0,_.d1)(e,br.t5.Monitoring))),c=(0,u.k6)(),{isReadOnly:p,reason:m}=wr(br.t5.Monitoring),[g]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),y=p||!g,{surveyDialog:v}=Id(br.t5.Monitoring),{isProjectPhaseCompleted:b}=(0,fr.F)(n,null===l||void 0===l?void 0:l.id),x=(0,r.useMemo)((()=>0===a.filter((e=>{var t;return e.required&&!(null!==(t=s[e.id])&&void 0!==t&&t.is_completed)})).length),[s,a]),{navigateToFinishStage:k}=Yo(),C=(0,ki.$s)(null===l||void 0===l?void 0:l.start_date,null===l||void 0===l?void 0:l.end_date);Bu(a);const S=Jo(br.t5.Monitoring),M=(0,r.useCallback)((e=>{const t={programId:i,stageId:e.id,tableView:!(0,ki.o8)(null===e||void 0===e?void 0:e.type_),entityId:Go.en};c.push(`${(0,xo.F_)(Wo.lk,{projectId:n,programId:i,stageType:(0,ki.vM)(e.type_)})}?${(0,fo.CT)(t)}`)}),[c,i,n]),T=(0,r.useMemo)((()=>{const e=(a||[]).map((e=>{var t,n;const{icon:r,id:i,type_:o,order:a}=e,l=null===s||void 0===s||null===(t=s[i])||void 0===t?void 0:t.is_completed;return{title:(0,To.bT)(e),icon:(0,w.jsx)(yd,{iconUrl:r,stageType:o}),onClick:()=>M(e),percentComplete:(null===s||void 0===s||null===(n=s[i])||void 0===n?void 0:n.percentage_complete)||0,actionLabel:y?"view":l?"edit":"start",disabled:S(e),order:a}}));return e.push({title:o.formatMessage({id:"MonitoringStep.Finish",defaultMessage:"Finish"}),icon:(0,w.jsx)(d.le,{type:"finalize",fontSize:"h4"}),onClick:()=>k(br.t5.Monitoring),percentComplete:b?100:0,actionLabel:b?"view":"start",disabled:!x,order:1e3}),e}),[a,s,y,S,M,k,b,o,x]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(bd,{title:o.formatMessage({id:"ProgramStageItem.Measuring",defaultMessage:"Measuring"}),subtitle:(0,ki.bM)(y,null===l||void 0===l?void 0:l.start_date,null===l||void 0===l?void 0:l.end_date),defaultCollapsed:!C||m===br.Mk.NoFieldsEnrolled,programStageSubItems:T,active:C&&!y,infoIconAction:null!==l&&void 0!==l&&l.resources?()=>t("monitoring"):void 0}),v]})},Ny=()=>{const{visible:e=!1,payload:t}=(0,h.C)((e=>(0,Or._X)(e,b.iR.mrvPhasesInfo))),{programId:n}=(0,gr.B)(),i=(0,h.C)((e=>(0,_.PP)(e,n))),o=(0,h.C)((e=>(0,_.d1)(e,br.t5.Monitoring))),a=(0,h.C)((e=>(0,_.d1)(e,br.t5.Enrolment))),s=(0,h.T)(),l=(0,r.useCallback)((()=>s((0,b.qO)(b.iR.mrvPhasesInfo,!1))),[]),c=(0,r.useMemo)((()=>e?"monitoring"===(null===t||void 0===t?void 0:t.phase)?(0,w.jsx)(zy,{programName:(null===i||void 0===i?void 0:i.name)||"program",blob:null===o||void 0===o?void 0:o.resources}):(0,w.jsx)(Fy,{programName:(null===i||void 0===i?void 0:i.name)||"program",blob:null===a||void 0===a?void 0:a.resources}):null),[null===a||void 0===a?void 0:a.resources,null===o||void 0===o?void 0:o.resources,null===t||void 0===t?void 0:t.phase,null===i||void 0===i?void 0:i.name,e]);return(0,w.jsx)(d.o9,{title:"",onClose:l,open:e,maxWidth:"lg",id:"mrv-faq-dialog",children:(0,w.jsx)(d.cZ,{children:c})})},Fy=e=>{let{blob:t}=e;return(0,w.jsx)(w.Fragment,{children:t&&(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})},zy=e=>{let{blob:t}=e;return(0,w.jsx)(w.Fragment,{children:t&&(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})},By=()=>{var e;const t=(0,h.T)(),n=(0,u.k6)(),i=(0,f.YB)(),o=(0,xr.nh)(xr.hn.PROGRESS_BLOCKING_VALIDATION),{programId:a,projectId:s,contractEvent:l}=(0,gr.B)(),c=(0,h.C)(S.m8),[p]=(0,hr.zE)([br.aR.UPDATE_PROJECT_ENTITIES_VALUES]),m=(0,h.C)((e=>(0,Or.xU)(e,[qu.U.FETCH_PROGRAM,qu.U.GENERATE_ENROLLMENT_PROJECT_CONTRACT]))),[{programId:g},y]=(0,fo.H1)(),v=(0,h.C)(_.ie),x=(0,h.C)((e=>(0,_.lT)(e,s))),k=(0,h.C)((e=>(0,_.PP)(e,a))),C=(0,h.C)(_.Pk),M=(0,h.C)(S.OP),T=(0,xo.vv)("importFields"),E=(0,u.TH)(),P=(0,ki.MV)(E.pathname),[I,O]=(0,r.useState)({}),[L,R]=(0,r.useState)(!1),{navigateToFinishStage:j}=Yo(),{isReadOnly:D}=wr(br.t5.Enrolment),A=D||!p;(0,r.useEffect)((()=>{var e;if(!a||!k)return;if(68!==a)return;if(T)return;if(!0===(null===M||void 0===M||null===(e=M.onboarding)||void 0===e?void 0:e.re_enroll_fields_onboarded))return;const t=null===C||void 0===C?void 0:C[0];t&&null!==x&&void 0!==x&&x.created_at&&(null===x||void 0===x?void 0:x.created_at)<(null===t||void 0===t?void 0:t.start_date)&&R(!0)}),[T,k,C,a,x,null===M||void 0===M||null===(e=M.onboarding)||void 0===e?void 0:e.re_enroll_fields_onboarded]),(0,r.useEffect)((()=>{a&&tr.Z.trackMRVPageView({Page:"MRV home"})}),[a]),(0,r.useEffect)((()=>{T&&R(!0)}),[T]),(0,r.useEffect)((()=>{a&&a!==g&&y({programId:a})}),[a,g,y]);const N=(0,r.useMemo)((()=>{const e=Object.values(v).find((e=>e.type_===br.UY.CONTRACT));if(e)return Object.values(C).find((t=>t.id===e.phase_id))}),[C,v]),F=(0,r.useCallback)((async e=>{var n;await t((0,Fr.k4)({projectId:s,event:e})),tr.Z.track("Sign contract");const r=null===(n=Object.values(v).find((e=>e.type_===br.UY.VIEW_OUTCOMES)))||void 0===n?void 0:n.id;r&&await t((0,Fr.r7)({projectId:s,stageId:r,enableValidation:o})),N&&(0,fr.P)(s,N.id)}),[t,s,v,N,o]);(0,r.useEffect)((()=>{l!==qu.q.SIGNING_COMPLETE&&l!==qu.q.VIEWING_COMPLETE||F(l),l===qu.q.SIGNING_COMPLETE&&N&&j(N.type_)}),[l,j,N,F]);const z=(0,r.useCallback)((e=>t((0,b.qO)(b.iR.mrvPhasesInfo,!0,{phase:e}))),[t]),{shouldDisplayEnrollment:B,shouldDisplayMeasurement:U}=(0,r.useMemo)((()=>{var e,t;return{shouldDisplayEnrollment:null===(e=Object.values(C))||void 0===e?void 0:e.some((e=>e.type_===br.t5.Enrolment&&e.enabled)),shouldDisplayMeasurement:null===(t=Object.values(C))||void 0===t?void 0:t.some((e=>e.type_===br.t5.Monitoring&&e.enabled))}}),[C]),$=(0,r.useMemo)((()=>({boundaryViolationsByFieldId:I,setBoundaryViolationsByFieldId:O})),[I]);return P?(0,w.jsx)(kf.Provider,{value:$,children:(0,w.jsx)(ky,{children:(0,w.jsx)(dm,{})})}):(0,w.jsx)(kf.Provider,{value:$,children:(0,w.jsxs)(ky,{children:[L&&(0,w.jsx)(jm,{onCloseDialog:()=>R(!1),navigateToStep:e=>((e,r)=>{const i={programId:a,enrollmentStep:e,stageId:r};e===Vu.l.CropPractices&&(i.tableView=!0),n.push(`${(0,xo.F_)(Wo.sZ,{projectId:s})}?${(0,fo.CT)(i)}`),t((0,$u.nj)({step:e,isReadOnly:A}))})(e)}),(0,w.jsxs)(d.xu,{alignItems:"center",gap:3,mb:2,children:[(0,w.jsx)(d.ZT,{variant:"h3",className:"tab-title mrv-home-title",children:(null===k||void 0===k?void 0:k.name)||i.formatMessage({id:"ProgramDefaultName",defaultMessage:"Program"})}),m&&(0,w.jsx)(On.D8,{centered:!1,id:"program-loader"})]}),(0,w.jsx)("div",{className:"divider"}),(0,w.jsx)(d.ZT,{className:"mrv-home-subtitle",children:(0,w.jsx)(f._H,{id:"HomePage.WelcomeUser",defaultMessage:"<b>Welcome, {userVisibleName}!</b> You will be guided through each of the program phases. The open phase is highlighted in blue. All phases must be completed to receive credits.",values:{userVisibleName:c,b:e=>(0,w.jsx)("b",{children:e})}})}),(0,w.jsxs)(vd,{children:[B&&(0,w.jsx)(Dy,{onInfoDialogToggle:z}),U&&(0,w.jsx)(Ay,{onInfoDialogToggle:z})]}),(0,w.jsx)(Ny,{})]})})};var Uy=n(19932);const $y=e=>{let{percentCompleted:t,disabled:n,label:r,icon:i,line:o=!1,className:a,active:l=!1,...c}=e;const u=(0,Z.Fg)(),d=void 0!==t&&t>=100,p=d&&l?u.color.text.mainInverted:u.color.text.success;return(0,w.jsxs)("div",{className:s()("fluro-step",a,{active:l,done:d,disabled:n}),...c,children:[(0,w.jsx)(pd,{id:r,icon:d?(0,w.jsx)(gd.nQ,{circleColor:"transparent",checkMarkColor:p,className:"done-icon"}):i,percentCompleted:t,disabled:n}),o&&(0,w.jsx)("div",{className:"line"}),(0,w.jsx)("span",{className:"label",children:r})]})},Vy=e=>{let{items:t,selectedItem:n,containerClassName:i="",onItemClick:o,greenSkin:a=!1,sliderPercentageSeed:l}=e;const[c]=(0,fo.H1)(),u=(0,r.useRef)(null),[d,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(100),[m,g]=(0,r.useState)(0);(0,r.useEffect)((()=>{if(!d)return;const e=t.findIndex((e=>{let{value:t}=e;return t===n}));g(e)}),[d,n,m,t]);const y=(0,r.useCallback)((()=>{var e;if(!u.current)return;const n=getComputedStyle(u.current),r=parseInt(n.paddingLeft)+parseInt(n.paddingRight),i=(null===u||void 0===u||null===(e=u.current)||void 0===e?void 0:e.offsetWidth)-r,o=130*t.length-i>65,a=(0,_u.gU)(130/i*100,0);p(o),f(a)}),[t]);(0,r.useEffect)((()=>{setTimeout(y,500)}),[l,t,y]);const v=e=>{let{children:t}=e;return d?(0,w.jsx)(Uy.lr,{showThumbs:!1,showIndicators:!1,showStatus:!1,className:"fluro-steps-slider",centerMode:!0,infiniteLoop:!1,centerSlidePercentage:h,emulateTouch:!0,renderArrowNext:(e,t)=>t&&(0,w.jsx)(On.xu,{className:"control-btn next",onClick:e,children:"navigate_next"}),renderArrowPrev:(e,t)=>t&&(0,w.jsx)(On.xu,{className:"control-btn prev",onClick:e,children:"navigate_before"}),selectedItem:m,children:t}):(0,w.jsx)(w.Fragment,{children:t})};return(0,w.jsx)("div",{ref:u,className:s()("fluro-steps-container",{[i]:!!i,greenSkin:a},{smallStepperContainer:!c.tableView}),children:(0,w.jsx)(v,{children:t.map(((e,t)=>{const{icon:r,value:i,label:a,percentCompleted:s,disabled:l}=e;return(0,w.jsx)($y,{onClick:()=>l?void 0:o(i),active:n===i,label:a,icon:null!==r&&void 0!==r?r:"",line:t>0,percentCompleted:s,disabled:l},i)}))})})},qy=Vy,Zy=Z.ZP.div`
  border: 0.5px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
`,Hy=(0,yr.P1)([_._I,(e,t)=>t],((e,t)=>(0,_.FO)(e,t))),Gy=(0,yr.P1)([Hy,_.aU],((e,t)=>null!==e&&void 0!==e&&e.program_id?t[e.program_id]:void 0)),Wy=(0,yr.P1)([_.Pk,Gy],_.lp),Yy=(0,yr.P1)([Hy,Gy,_.Pk,(e,t,n)=>n],((e,t,n,r)=>{var i,o,a;const s=null===t||void 0===t||null===(i=t.phases)||void 0===i?void 0:i.find((e=>{var t;return(null===(t=n[e])||void 0===t?void 0:t.type_)===r}));if(!s)return!1;const l=n[s];return Boolean((null===l||void 0===l?void 0:l.show_contract)&&(null===e||void 0===e||null===(o=e.contracts)||void 0===o?void 0:o.length)&&"completed"===(null===(a=e.contracts[0])||void 0===a?void 0:a.docusign_status)&&e.contract_link)})),Ky=(0,yr.P1)([Hy],(e=>{var t;return Boolean(null===e||void 0===e||null===(t=e.contracts)||void 0===t?void 0:t.length)})),Xy=(0,yr.P1)([Hy,vr.Zf],((e,t)=>({percentCompleted:null===t||void 0===t?void 0:t.dndcPercentCompleted,status:null===e||void 0===e?void 0:e.dndc_status,payment:null===t||void 0===t?void 0:t.dndcResults.payment,tonsSequestered:null===t||void 0===t?void 0:t.dndcResults.tonsSequestered}))),Jy=(0,yr.P1)([(e,t)=>Yy(e,t,br.t5.Enrolment),Hy,Wy,pp.x2,Ky,Xy],((e,t,n,r,i,o)=>{const a=n[br.t5.Enrolment];return(0,vr.OJ)(e,a,r,i,o,t)})),Qy=(0,yr.P1)([(e,t)=>Yy(e,t,br.t5.Monitoring),Hy,Wy,pp.x2,_.zV],((e,t,n,r,i)=>{const o=n[br.t5.Monitoring];return(0,_.kv)(e,o,r,i,t)})),ev=e=>{let{project:t}=e;const n=(0,h.C)((e=>(0,_.LI)(e,null===t||void 0===t?void 0:t.program_id))),r=(0,h.C)((e=>(0,_.k7)(e,null===t||void 0===t?void 0:t.program_id))),i=(0,h.C)(S.DC),o=(0,f.YB)(),{isSuperUpdateEnabled:a}=(0,mr.Di)(),s=null===r||void 0===r?void 0:r[br.t5.Enrolment],l=null===r||void 0===r?void 0:r[br.t5.Monitoring],{isReadOnly:c}=(0,h.C)((e=>Jy(e,t.id))),{isProjectPhaseCompleted:u}=(0,fr.F)(t.id,null===s||void 0===s?void 0:s.id),{isReadOnly:d}=(0,h.C)((e=>Qy(e,t.id))),{isProjectPhaseCompleted:p}=(0,fr.F)(t.id,null===l||void 0===l?void 0:l.id),m=[{label:"",value:"1",icon:(0,w.jsx)(td.zx,{}),active:(0,ki.$s)(null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date),buttonLabel:a||!u&&!c?o.formatMessage({id:"Enroll today",defaultMessage:"Enroll today"}):o.formatMessage({id:"View Enrollment",defaultMessage:"View Enrollment"}),percentCompleted:0,...s,name:o.formatMessage({id:"EnrollmentStepName.Enrollment",defaultMessage:"Enrollment"}),isReadOnly:!a&&(u||c)},{label:"",value:"2",icon:(0,w.jsx)(td.ml,{}),active:(0,ki.$s)(null===l||void 0===l?void 0:l.start_date,null===l||void 0===l?void 0:l.end_date),buttonLabel:a||!p&&!d?o.formatMessage({id:"Complete Measurement",defaultMessage:"Complete Measurement"}):o.formatMessage({id:"View Monitoring",defaultMessage:"View Monitoring"}),percentCompleted:0,...l,name:o.formatMessage({id:"MonitoringStepName.Monitoring",defaultMessage:"Monitoring"}),isReadOnly:!a&&(p||d)},{label:"",value:"3",percentCompleted:0,icon:(0,w.jsx)(td.tl,{})}],g=m.find((e=>e.active));return t?(0,w.jsxs)(ni.k,{className:"project-item",fullWidth:!0,nowrap:!0,children:[(0,w.jsx)("div",{className:"project-banner",style:{backgroundImage:`url(${(null===n||void 0===n?void 0:n.signup_vertical_banner_image_url)||`${$.default.baseUrl}api/v1/mrv/static/images/signup_vertical_banner_image.png`})`}}),(0,w.jsxs)("div",{className:"project-info",children:[(0,w.jsx)("div",{className:"project-name",children:t.program_name}),(0,w.jsxs)("div",{className:"project-values",children:[(0,w.jsxs)("span",{className:"project-fields-number",children:[t.fields.length," ",o.formatMessage({id:"field plural",defaultMessage:"{count, plural, one {field} other {fields}}"},{count:t.fields.length})," ","-"," "]}),(0,w.jsxs)("span",{className:"project-fields-area",children:[(0,_u.gU)((0,iu.En)(i,"ac",t.field_area_ha),2)," ",o.formatMessage({id:i,defaultMessage:i})]})]}),(0,w.jsx)(Vy,{items:m,onItemClick:()=>{},selectedItem:null===g||void 0===g?void 0:g.value}),(0,w.jsxs)(ni.k,{alignItems:"center",justifyContent:"center",gap:"10px",className:"phase-block",children:[g&&(0,w.jsx)("span",{className:"phase-name",children:(0,xi.fm)(g.name||"")}),(null===g||void 0===g?void 0:g.start_date)&&!(null!==g&&void 0!==g&&g.isReadOnly)&&(0,w.jsx)("div",{className:"program-stage-item active phase-dates",children:(0,ki.bM)(null===g||void 0===g?void 0:g.isReadOnly,null===g||void 0===g?void 0:g.start_date,null===g||void 0===g?void 0:g.end_date)}),(null===g||void 0===g?void 0:g.isReadOnly)&&(0,w.jsx)("div",{className:"program-stage-item disabled",children:o.formatMessage({id:"Closed: Read Only",defaultMessage:"Closed: Read Only"})})]}),(0,w.jsx)(kd.w,{component:Ho.rU,to:(0,xo.F_)(Wo._j,{projectId:t.id}),raised:!0,primary:!0,children:(null===g||void 0===g?void 0:g.buttonLabel)||o.formatMessage({id:"BtnLabel.View",defaultMessage:"View"})})]}),(null===n||void 0===n?void 0:n.display_announcement)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Zy,{}),(0,w.jsx)(km,{program:n})]})]}):null},tv=()=>((0,bm.d)("Projects list",null),null),nv=()=>{const e=(0,h.T)(),{currentUser:t}=(0,Wr.x)(),n=(0,h.C)(S.yX),i=(0,h.C)(_.lm),o=(0,wi.Kx)().get("program_code"),a=(0,h.C)((e=>(0,Or.xU)(e,[qu.U.FETCH_PROJECTS_LIST,qr.EA.pending.type]))),s=(0,h.C)(_.PM),l=(0,h.C)(_.Fc),[c,d]=(0,r.useState)(!1),p=(0,Xn.D)({isProgramAdmin:i}),m=(0,f.YB)();(0,r.useEffect)((()=>{!1===(null===p||void 0===p?void 0:p.isProgramAdmin)&&i&&d(!0)}),[i]),(0,r.useEffect)((()=>{(null!==t&&void 0!==t&&t.id||"new"===String(null===t||void 0===t?void 0:t.id))&&(async()=>{l.length&&l.length!==s.length&&await e((0,Fr.pw)({ids:l}))})()}),[e,l,t]),(0,r.useEffect)((()=>{s.length===l.length&&s.forEach((t=>{e((0,Fr.Lv)({programId:t.program_id}))}))}),[s,l]),(0,r.useEffect)((()=>{o&&Nr.eV.enrollUserToProgram(o).then((t=>{if(400===t.status&&null!==t.data)switch(t.data.detail){case Nr.eV.enrollUserToProgramExceptionTypes.ALREADY_ENROLLED:break;case Nr.eV.enrollUserToProgramExceptionTypes.ENROLLMENT_CLOSED:(0,Yn.c)({title:m.formatMessage({id:"note.error",defaultMessage:"Error"}),message:m.formatMessage({id:"Enrollment phase is closed.",defaultMessage:"Enrollment phase is closed."}),type:"error"});case Nr.eV.enrollUserToProgramExceptionTypes.USER_ID_HEADER_MISSING:case Nr.eV.enrollUserToProgramExceptionTypes.PROGRAM_ID_MISSING:}else e((0,qr.EA)())})).catch()}),[o,e]);const g=(0,r.useMemo)((()=>(0,pp.Wg)(s,"created_at",!0)),[s]);return(n||i)&&c?(0,w.jsx)(u.l_,{to:Wo.uj}):a||o||1!==s.length||s.length!==l.length?(0,w.jsx)("div",{className:"producer-list-bg",children:(0,w.jsx)("div",{className:"mrv-project-select-container",children:(0,w.jsxs)("div",{className:"inner-wrapper",children:[(0,w.jsx)(tv,{}),(0,w.jsx)("h1",{className:"user-title",children:m.formatMessage({id:"WelcomeBackUser",defaultMessage:"Welcome Back, {name}!"},{name:(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.email)})}),(0,w.jsx)("h3",{className:"select-program-title",children:m.formatMessage({id:"Choose from your current programs listed below.",defaultMessage:"Choose from your current programs listed below."})}),(0,w.jsxs)("div",{className:"project-info-wrapper",children:[a&&(0,w.jsx)(w.Fragment,{children:m.formatMessage({id:"Loading...",defaultMessage:"Loading..."})}),!a&&!!s.length&&g.map((e=>(0,w.jsx)(ev,{project:e},e.id))),!a&&!s.length&&(0,w.jsxs)(w.Fragment,{children:[(n||i)&&(0,w.jsx)(u.l_,{to:Wo.uj}),(0,w.jsx)(Rn.x,{variant:"h3",children:(0,w.jsx)(f._H,{id:"NoProgramDetected",defaultMessage:"No programs detected, contact us using the chat button below or email us at <a>support@regrow.ag.</a>.",values:{a:e=>(0,w.jsx)("a",{href:"mailto:support@regrow.ag",children:e})}})})]})]})]})})}):(0,w.jsx)(u.l_,{to:(0,xo.F_)(Wo._j,{projectId:null===(y=s[0])||void 0===y?void 0:y.id})});var y};var rv=n(3308);const iv={fetcher:async e=>(await rv.Z.get(`${si.OL}${e}`)).data},ov=e=>{let{children:t}=e;return(0,w.jsx)(ai.J$,{value:iv,children:t})},av=[],sv=()=>{const e=(0,h.C)(_.$k),{programRoles:t}=(0,r.useContext)(hr.IT),{data:n,mutate:i}=(0,ai.ZP)("/documents/pending",{revalidateOnFocus:!1,revalidateOnMount:!0,onError:C.e,fallbackData:void 0});(0,r.useEffect)((()=>()=>{i(void 0,{revalidate:!1})}),[]);return{agreeToDocuments:async e=>{await Nr.eV.postUserAgreeDocuments({documentIds:e}),await i()},declineToDocuments:async e=>{await Nr.eV.postUserDeclineDocuments({documentIds:e}),await i()},pendingDocuments:(0,r.useMemo)((()=>{var r;if(!n||!t||(0,er.Qr)(t))return av;const i=e=>e.category===br.bj.PRIVACY||e.category===br.bj.TANDC,o=e?t[e]:void 0,a=(null===o||void 0===o||null===(r=o.role_info)||void 0===r?void 0:r.role_type)===lm.u9.ADMIN;return!e||a?n.filter(i):n.filter((t=>i(t)||(t=>t.program_id===e)(t)))}),[n,t,e])}};var lv=n(60441),cv=function(e){return e.NEW="NEW_POLICY_OUTSTANDING",e.DECLINING="CONSIDERING_DECLINING_POLICY",e.DECLINED="OUTSTANDING_POLICY_DECLINED",e.NONE="NO_NEW_POLICIES",e}(cv||{});const uv=()=>{},dv=e=>{let{pendingDocuments:t,setPolicyStatus:n,agree:r}=e;const i=(0,f.YB)(),o=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:()=>n(cv.DECLINING),children:(0,w.jsx)(f._H,{id:"Policy.DeclineNewPoliciesDeclineButton",defaultMessage:"Decline"})}),(0,w.jsx)(d.zx,{variant:"contained",onClick:r,children:(0,w.jsx)(f._H,{id:"Policy.AcceptButton",defaultMessage:"Accept"})})]});return(0,w.jsxs)(d.o9,{id:"policy-changes-popup",title:i.formatMessage({id:"Policy.PolicyChangesHeader",defaultMessage:"Policy changes"}),onClose:uv,open:!0,hideCloseIcon:!0,disableBackdropClick:!0,disableEscapeKeyDown:!0,maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.Kq,{spacing:5,py:2,children:[(0,w.jsxs)(d.ZT,{children:[(0,w.jsx)(f._H,{id:"Policy.PolicyChangesDecription1.v1",defaultMessage:"There have been changes to the policies below. Please review the new policies and choose, {acceptElement} to navigate back to the platform. Please note that declining new policies will restrict you from accessing the platform.",values:{acceptElement:(0,w.jsx)(d.ZT,{component:"span",variant:"h5",children:(0,w.jsx)(f._H,{id:"Policy.PolicyChangesBody.Accept",defaultMessage:"Accept"})})}}),(0,w.jsx)("br",{}),(0,w.jsx)(f._H,{id:"Policy.PolicyChangesDescription2.v1",defaultMessage:"*You are accepting the following policies on your own behalf."})]}),null===t||void 0===t?void 0:t.map((e=>(0,w.jsx)(d.xu,{children:(0,w.jsx)("span",{children:(0,w.jsx)("a",{target:"_blank",rel:"noreferrer",href:e.content,children:(0,w.jsx)(d.ZT,{component:"span",sx:{textDecoration:"underline"},children:(0,w.jsx)(lv.T,{document:e})})})})},e.document_id)))]})}),(0,w.jsx)(d.kX,{children:o})]})},pv=e=>{let{pendingDocuments:t,setPolicyStatus:n,decline:r}=e;const i=(0,f.YB)(),o=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:r,children:(0,w.jsx)(f._H,{id:"Policy.DeclineNewPoliciesDeclineButton",defaultMessage:"Decline"})}),(0,w.jsx)(d.zx,{variant:"contained",onClick:()=>n(cv.NEW),children:(0,w.jsx)(f._H,{id:"Policy.DeclineNewPoliciesCancelButton",defaultMessage:"No, go back"})})]});return(0,w.jsxs)(d.o9,{id:"policy-changes-popup",title:i.formatMessage({id:"Policy.DecliningNewPoliciesHeader",defaultMessage:"Declining new policies"}),onClose:uv,open:!0,maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.Kq,{spacing:5,py:2,children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Policy.DecliningNewPoliciesBody",defaultMessage:"Are you sure that you want to decline the new policies below? Declining new policies will restrict you from accessing the platform."})}),null===t||void 0===t?void 0:t.map((e=>(0,w.jsx)(d.xu,{children:(0,w.jsx)("span",{children:(0,w.jsx)("a",{target:"_blank",rel:"noreferrer",href:e.content,children:(0,w.jsx)(d.ZT,{component:"span",sx:{textDecoration:"underline"},children:(0,w.jsx)(lv.T,{document:e})})})})},e.document_id)))]})}),(0,w.jsx)(d.kX,{children:o})]})},hv=e=>{let{setPolicyStatus:t}=e;const n=(0,f.YB)(),r=(0,h.T)(),i=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:()=>t(cv.NEW),children:(0,w.jsx)(f._H,{id:"Go back and accept",defaultMessage:"Go back and accept"})}),(0,w.jsx)(d.zx,{variant:"contained",onClick:()=>r((0,Yr.kS)()),children:(0,w.jsx)(f._H,{id:"Logout",defaultMessage:"Logout"})})]});return(0,w.jsxs)(d.o9,{id:"policy-changes-popup",title:n.formatMessage({id:"Policy.DeclinedNewPoliciesHeader",defaultMessage:"Declined new policies"}),onClose:uv,hideCloseIcon:!0,open:!0,maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.Kq,{spacing:5,py:2,children:[(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Policy.DeclinedNewPoliciesDescription1.v2",defaultMessage:"You have declined all new policies. Declining policies restricts your access to the platform. We apologize for any inconvenience this may cause."})}),(0,w.jsx)(d.ZT,{children:(0,w.jsx)(f._H,{id:"Policy.DeclinedNewPoliciesDescription2",defaultMessage:"Questions or concerns? Please contact us at {emailLink}.",values:{emailLink:(0,w.jsx)("a",{target:"_blank",rel:"noreferrer",href:"mailto:support@regrow.ag",children:(0,w.jsx)(d.ZT,{component:"span",sx:{textDecoration:"underline"},children:"support@regrow.ag"})})}})})]})}),(0,w.jsx)(d.kX,{children:i})]})},fv=()=>{const[e,t]=(0,r.useState)(cv.NONE),{pendingDocuments:n,agreeToDocuments:i,declineToDocuments:o}=sv(),a=async()=>{await i(n.map((e=>e.document_id)).filter(er.$K)),t(cv.NONE)},s=async()=>{await o(n.map((e=>e.document_id)).filter(er.$K)),t(cv.DECLINED)};if((0,r.useEffect)((()=>{n.length&&t(n.some((e=>e.declined_at))?cv.DECLINED:cv.NEW)}),[n]),!n.length)return null;switch(e){case cv.NEW:return(0,w.jsx)(dv,{pendingDocuments:n,setPolicyStatus:t,agree:a});case cv.DECLINING:return(0,w.jsx)(pv,{setPolicyStatus:t,pendingDocuments:n,decline:s});case cv.DECLINED:return(0,w.jsx)(hv,{setPolicyStatus:t});case cv.NONE:default:return null}},mv=()=>{const e=(0,h.C)((e=>e.login.isAuth)),{isWorkspaceMrv:t}=(0,M.c)();return e&&t?(0,w.jsx)(fv,{}):null},gv=r.lazy((()=>Promise.all([n.e(587),n.e(520)]).then(n.bind(n,27301)))),yv=r.lazy((()=>Promise.all([n.e(662),n.e(603)]).then(n.bind(n,7603)))),vv=r.lazy((()=>Promise.all([n.e(662),n.e(449)]).then(n.bind(n,42449)))),bv=r.lazy((()=>Promise.all([n.e(525),n.e(125)]).then(n.bind(n,68125)))),_v=()=>{const e=(0,h.T)(),{projectId:t,programId:n}=(0,gr.B)(),i=(0,h.C)(_.Fc),o=(0,h.C)((e=>e.global.sessionExpired)),[a]=(0,wo.Z)((e=>{let{width:t}=e;return t<768})),s=(0,h.C)(jo.SJ),l=(0,h.C)((e=>(0,_.d1)(e,br.t5.Monitoring))),c=(0,h.C)((e=>s?(0,_.YN)(e,s.type_):void 0)),p=null===c||void 0===c?void 0:c.some((e=>{let{type_:t}=e;return(0,ki.oS)(t)})),f=(0,xr.nh)(xr.hn.FMS_ENABLED_PROGRAM);(0,So.M)(n,t),No(),(0,bm.f)(),(0,_o.u)();const m=(0,r.useCallback)((async e=>{if(!p)try{await Nr.eV.createRecordYears(e)}catch(t){(0,C.e)(t)}}),[p]);return(0,r.useEffect)((()=>{isNaN(parseInt(t))||e((0,qr.Mv)({projectId:t}))}),[e,t]),(0,r.useEffect)((()=>{((0,ki.$s)(null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date)||(0,ki.$s)(null===l||void 0===l?void 0:l.start_date,null===l||void 0===l?void 0:l.end_date))&&m(t)}),[m,null===s||void 0===s?void 0:s.start_date,null===s||void 0===s?void 0:s.end_date,t,null===l||void 0===l?void 0:l.start_date,null===l||void 0===l?void 0:l.end_date]),(0,r.useEffect)((()=>{n&&e((0,Fr.SM)(n))}),[n,e]),i.length&&!i.includes(t)?(0,w.jsx)(u.l_,{to:Wo.$T}):a?(0,w.jsx)($o,{}):(0,w.jsxs)(d.xu,{height:"100%",bgcolor:"semanticPalette.surface.secondary",children:[o&&(0,w.jsx)(Co,{visible:!0}),(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(u.AW,{exact:!0,path:Wo.O0,component:By}),(0,w.jsx)(u.AW,{path:Wo.Q3,component:mm}),(0,w.jsx)(u.AW,{render:()=>(0,w.jsx)(u.l_,{to:{pathname:(0,xo.F_)(Wo._j,{projectId:t})}})})]}),(0,w.jsx)(Vo,{}),(0,w.jsx)(Pm,{}),(0,w.jsx)(Om,{}),f&&(0,w.jsx)(Ii,{}),(0,w.jsx)(Im,{}),(0,w.jsx)(Tm,{})]})},wv=()=>{const e=(0,h.T)(),t=(0,h.C)(S.Jt),n=(0,h.C)(S.yX),i=(0,h.C)(_.lm);(0,r.useEffect)((()=>{document.title="MRV - Regrow"}),[]),(0,mr.Di)(),(0,r.useEffect)((()=>{t&&e((0,qr.EA)())}),[t,e]);const o=(0,r.useMemo)((()=>n||i?Wo.uj:Wo.$T),[n,i]);return(0,w.jsx)(d.hO,{muiThemeKey:0,children:(0,w.jsxs)(ov,{children:[(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{exact:!0,path:Wo.$T,component:nv}),(0,w.jsx)(vm,{path:Wo.SS,component:_v}),(0,w.jsx)(vm,{exact:!0,path:Wo.aJ,component:wm}),(0,w.jsx)(vm,{path:Wo.uj,component:gv}),(0,w.jsx)(u.AW,{path:Wo.WC,component:yv}),(0,w.jsx)(u.AW,{path:Wo.Hk,component:vv}),(0,w.jsx)(vm,{path:Wo.Yh,component:vi}),(0,w.jsx)(vm,{isAdminOnly:!0,path:Wo.p$,component:bv}),(0,w.jsx)(u.l_,{to:o})]}),(0,w.jsx)(mv,{})]})})};function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xv(Object(n),!0).forEach((function(t){Ev(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cv(e){return Cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cv(e)}function Sv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tv(e,t,n){return t&&Mv(e.prototype,t),n&&Mv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Ov(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iv(e){return function(e){if(Array.isArray(e))return Lv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ov(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ov(e,t){if(e){if("string"==typeof e)return Lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lv(e,t):void 0}}function Lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ov(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var jv={DEBUG:!1,LIB_VERSION:"1.143.0"},Dv=Array.isArray,Av=Object.prototype,Nv=Av.hasOwnProperty,Fv=Av.toString,zv=Dv||function(e){return"[object Array]"===Fv.call(e)},Bv=function(e){return"function"==typeof e},Uv=function(e){return e===Object(e)&&!zv(e)},$v=function(e){if(Uv(e)){for(var t in e)if(Nv.call(e,t))return!1;return!0}return!1},Vv=function(e){return void 0===e},qv=function(e){return"[object String]"==Fv.call(e)},Zv=function(e){return qv(e)&&0===e.trim().length},Hv=function(e){return null===e},Gv=function(e){return Vv(e)||Hv(e)},Wv=function(e){return"[object Number]"==Fv.call(e)},Yv=function(e){return"[object Boolean]"===Fv.call(e)},Kv=function(e){return e instanceof FormData},Xv="undefined"!=typeof window?window:void 0,Jv="undefined"!=typeof globalThis?globalThis:Xv,Qv=Array.prototype,eb=Qv.forEach,tb=Qv.indexOf,nb=null==Jv?void 0:Jv.navigator,rb=null==Jv?void 0:Jv.document,ib=null==Jv?void 0:Jv.location,ob=null==Jv?void 0:Jv.fetch,ab=null!=Jv&&Jv.XMLHttpRequest&&"withCredentials"in new Jv.XMLHttpRequest?Jv.XMLHttpRequest:void 0,sb=null==Jv?void 0:Jv.AbortController,lb=null==nb?void 0:nb.userAgent,cb=null!=Xv?Xv:{},ub="[PostHog.js]",db={_log:function(e){if(Xv&&(jv.DEBUG||cb.POSTHOG_DEBUG)&&!Vv(Xv.console)&&Xv.console){for(var t=("__rrweb_original__"in Xv.console[e]?Xv.console[e].__rrweb_original__:Xv.console[e]),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.apply(void 0,[ub].concat(r))}},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];db._log.apply(db,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];db._log.apply(db,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];db._log.apply(db,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,[ub].concat(n))},uninitializedWarning:function(e){db.error("You must initialize PostHog before calling ".concat(e))}},pb={},hb=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function fb(e,t,n){if(zv(e))if(eb&&e.forEach===eb)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===pb)return}function mb(e,t,n){if(!Gv(e)){if(zv(e))return fb(e,t,n);if(Kv(e)){var r,i=Rv(e.entries());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(t.call(n,o[1],o[0])===pb)return}}catch(e){i.e(e)}finally{i.f()}}else for(var a in e)if(Nv.call(e,a)&&t.call(n,e[a],a)===pb)return}}var gb=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return fb(n,(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e};function yb(e,t){return-1!==e.indexOf(t)}function vb(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var bb=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},_b=function(e){try{return e()}catch(e){return}},wb=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){db.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),db.critical(e)}}},xb=function(e){var t={};return mb(e,(function(e,n){qv(e)&&e.length>0&&(t[n]=e)})),t},kb=function(e){return e.replace(/^\$/,"")};var Cb,Sb=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{var a="on"+n,s=t[a];t[a]=function(t,n,r){return function(i){if(i=i||e(null==Xv?void 0:Xv.event)){var o,a=!0;Bv(r)&&(o=r(i));var s=n.call(t,i);return!1!==o&&!1!==s||(a=!1),a}}}(t,r,s)}else db.error("No valid element provided to register_event")}}();function Mb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}!function(e){e.GZipJS="gzip-js",e.Base64="base64"}(Cb||(Cb={}));var Tb="$people_distinct_id",Eb="__alias",Pb="__timers",Ib="$autocapture_disabled_server_side",Ob="$heatmaps_enabled_server_side",Lb="$exception_capture_enabled_server_side",Rb="$web_vitals_enabled_server_side",jb="$session_recording_enabled_server_side",Db="$console_log_recording_enabled_server_side",Ab="$session_recording_network_payload_capture",Nb="$session_recording_canvas_recording",Fb="$replay_sample_rate",zb="$replay_minimum_duration",Bb="$sesid",Ub="$session_is_sampled",$b="$enabled_feature_flags",Vb="$early_access_features",qb="$stored_person_properties",Zb="$stored_group_properties",Hb="$surveys",Gb="$surveys_activated",Wb="$flag_call_reported",Yb="$user_state",Kb="$client_session_props",Xb="$capture_rate_limit",Jb="$initial_campaign_params",Qb="$initial_referrer_info",e_="$initial_person_info",t_="$epp",n_="__POSTHOG_TOOLBAR__",r_=[Tb,Eb,"__cmpns",Pb,jb,Ob,Bb,$b,Yb,Vb,Zb,qb,Hb,Wb,Kb,Xb,Jb,Qb,t_],i_="$active_feature_flags",o_="$override_feature_flags",a_="$feature_flag_payloads",s_=function(e){var t,n={},r=Rv(vb(e||{}));try{for(r.s();!(t=r.n()).done;){var i=Pv(t.value,2),o=i[0],a=i[1];a&&(n[o]=a)}}catch(e){r.e(e)}finally{r.f()}return n},l_=function(){function e(t){Sv(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Tv(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property($b),t=this.instance.get_property(o_);if(!t)return e||{};for(var n=gb({},e),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this._override_warning||(db.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(a_)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout((function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())}),5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var t=this.instance.config.token,n=this.instance.get_property(qb),r=this.instance.get_property(Zb),i={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:r,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:i,compression:this.instance.config.disable_compression?void 0:Cb.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){var n;e.setReloadingPaused(!1);var r=!0;200===t.statusCode&&(e.$anon_distinct_id=void 0,r=!1),e.receivedFeatureFlags(null!==(n=t.json)&&void 0!==n?n:{},r),e._startReloadTimer()}})}}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n,r=this.getFlagVariants()[e],i="".concat(r),o=this.instance.get_property(Wb)||{};return!t.send_event&&"send_event"in t||e in o&&o[e].includes(i)||(zv(o[e])?o[e].push(i):o[e]=[i],null===(n=this.instance.persistence)||void 0===n||n.register(Ev({},Wb,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r})),r}db.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);db.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((function(t){return t!==e}))}},{key:"receivedFeatureFlags",value:function(e,t){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();!function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.featureFlags,a=e.featureFlagPayloads;if(o)if(zv(o)){var s,l={};if(o)for(var c=0;c<o.length;c++)l[o[c]]=!0;t&&t.register((Ev(s={},i_,o),Ev(s,$b,l),s))}else{var u=o,d=a;e.errorsWhileComputingFlags&&(u=kv(kv({},r),u),d=kv(kv({},i),d)),t&&t.register((Ev(n={},i_,Object.keys(s_(u))),Ev(n,$b,u||{}),Ev(n,a_,d||{}),n))}}(e,this.instance.persistence,n,r),this._fireFeatureFlagsCallbacks(t)}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return db.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(o_);else if(zv(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;this.instance.persistence.register(Ev({},o_,t))}else this.instance.persistence.register(Ev({},o_,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks(),r=n.flags,i=n.flagVariants;e(r,i)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var n,r,i=Ev({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:i}),this.setPersonPropertiesForFlags(i,!1);var o=kv(kv({},this.getFlagVariants()),{},Ev({},e,t));null===(n=this.instance.persistence)||void 0===n||n.register((Ev(r={},i_,Object.keys(s_(o))),Ev(r,$b,o),r)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.instance.get_property(Vb);if(r&&!n)return e(r);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:function(n){var r;if(n.json){var i=n.json.earlyAccessFeatures;return null===(r=t.instance.persistence)||void 0===r||r.register(Ev({},Vb,i)),e(i)}}})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((function(e){return t[e]})),flagVariants:Object.keys(t).filter((function(e){return t[e]})).reduce((function(e,n){return e[n]=t[n],e}),{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach((function(t){return t(n,r,{errorsLoading:e})}))}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(qb)||{};this.instance.register(Ev({},qb,kv(kv({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(qb)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(Zb)||{};0!==Object.keys(n).length&&Object.keys(n).forEach((function(t){n[t]=kv(kv({},n[t]),e[t]),delete e[t]})),this.instance.register(Ev({},Zb,kv(kv({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(Zb)||{};this.instance.register(Ev({},Zb,kv(kv({},t),{},Ev({},e,{}))))}else this.instance.unregister(Zb)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Wv(e)&&isFinite(e)&&Math.floor(e)===e});var c_="0123456789abcdef",u_=function(){function e(t){if(Sv(this,e),this.bytes=t,16!==t.length)throw new TypeError("not 128-bit length")}return Tv(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+c_.charAt(this.bytes[t]>>>4)+c_.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/Math.pow(2,40),o[1]=t/Math.pow(2,32),o[2]=t/Math.pow(2,24),o[3]=t/Math.pow(2,16),o[4]=t/Math.pow(2,8),o[5]=t,o[6]=112|n>>>8,o[7]=n,o[8]=128|r>>>24,o[9]=r>>>16,o[10]=r>>>8,o[11]=r,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new e(o)}}]),e}(),d_=function(){function e(){Sv(this,e),Ev(this,"timestamp",0),Ev(this,"counter",0),Ev(this,"random",new f_)}return Tv(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(Vv(e)){this.timestamp=0;var t=this.generateOrAbort();if(Vv(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return u_.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),p_=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};Xv&&!Vv(Xv.crypto)&&crypto.getRandomValues&&(p_=function(e){return crypto.getRandomValues(e)});var h_,f_=function(){function e(){Sv(this,e),Ev(this,"buffer",new Uint32Array(8)),Ev(this,"cursor",1/0)}return Tv(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(p_(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),m_=function(){return g_().toString()},g_=function(){return(h_||(h_=new d_)).generate()},y_="",v_=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;var b_,__={is_supported:function(){return!!rb},error:function(e){db.error("cookieStore error: "+e)},get:function(e){if(rb){try{for(var t=e+"=",n=rb.cookie.split(";").filter((function(e){return e.length})),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}},parse:function(e){var t;try{t=JSON.parse(__.get(e))||{}}catch(e){}return t},set:function(e,t,n,r,i){if(rb)try{var o="",a="",s=function(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rb;if(y_)return y_;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+m_(),o=new RegExp("(^|;)\\s*"+i+"=1");!y_&&r--;){var a=n.slice(r).join("."),s=i+"=1;domain=."+a;t.cookie=s,o.test(t.cookie)&&(t.cookie=s+";expires=Thu, 01 Jan 1970 00:00:00 GMT",y_=a)}return y_}(e);if(!n){var r=function(e){var t=e.match(v_);return t?t[0]:""}(e);r!==n&&db.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}(rb.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),o="; expires="+l.toUTCString()}i&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+s+a;return c.length>3686.4&&db.warn("cookieStore warning: large cookie, len="+c.length),rb.cookie=c,c}catch(e){return}},remove:function(e,t){try{__.set(e,"",-1,t)}catch(e){return}}},w_=null,x_={is_supported:function(){if(!Hv(w_))return w_;var e=!0;if(Vv(Xv))e=!1;else try{var t="__mplssupport__";x_.set(t,"xyz"),'"xyz"'!==x_.get(t)&&(e=!1),x_.remove(t)}catch(t){e=!1}return e||db.error("localStorage unsupported; falling back to cookie store"),w_=e,e},error:function(e){db.error("localStorage error: "+e)},get:function(e){try{return null==Xv?void 0:Xv.localStorage.getItem(e)}catch(e){x_.error(e)}return null},parse:function(e){try{return JSON.parse(x_.get(e))||{}}catch(e){}return null},set:function(e,t){try{null==Xv||Xv.localStorage.setItem(e,JSON.stringify(t))}catch(e){x_.error(e)}},remove:function(e){try{null==Xv||Xv.localStorage.removeItem(e)}catch(e){x_.error(e)}}},k_=["distinct_id",Bb,Ub,t_],C_=kv(kv({},x_),{},{parse:function(e){try{var t={};try{t=__.parse(e)||{}}catch(e){}var n=gb(t,JSON.parse(x_.get(e)||"{}"));return x_.set(e,n),n}catch(e){}return null},set:function(e,t,n,r,i){try{x_.set(e,t);var o={};k_.forEach((function(e){t[e]&&(o[e]=t[e])})),Object.keys(o).length&&__.set(e,o,n,r,i)}catch(e){x_.error(e)}},remove:function(e,t){try{null==Xv||Xv.localStorage.removeItem(e),__.remove(e,t)}catch(e){x_.error(e)}}}),S_={},M_={is_supported:function(){return!0},error:function(e){db.error("memoryStorage error: "+e)},get:function(e){return S_[e]||null},parse:function(e){return S_[e]||null},set:function(e,t){S_[e]=t},remove:function(e){delete S_[e]}},T_=null,E_={is_supported:function(){if(!Hv(T_))return T_;if(T_=!0,Vv(Xv))T_=!1;else try{var e="__support__";E_.set(e,"xyz"),'"xyz"'!==E_.get(e)&&(T_=!1),E_.remove(e)}catch(e){T_=!1}return T_},error:function(e){db.error("sessionStorage error: ",e)},get:function(e){try{return null==Xv?void 0:Xv.sessionStorage.getItem(e)}catch(e){E_.error(e)}return null},parse:function(e){try{return JSON.parse(E_.get(e))||null}catch(e){}return null},set:function(e,t){try{null==Xv||Xv.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){E_.error(e)}},remove:function(e){try{null==Xv||Xv.sessionStorage.removeItem(e)}catch(e){E_.error(e)}}},P_=["localhost","127.0.0.1"],I_=function(e){var t=null==rb?void 0:rb.createElement("a");return Vv(t)?null:(t.href=e,t)},O_=function(e,t){return!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t)&&new RegExp(t).test(e)},L_=function(e,t){for(var n,r=((e.split("#")[0]||"").split("?")[1]||"").split("&"),i=0;i<r.length;i++){var o=r[i].split("=");if(o[0]===t){n=o;break}}if(!zv(n)||n.length<2)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(e){db.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},R_=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},j_="Mobile",D_="iOS",A_="Android",N_="Tablet",F_=A_+" "+N_,z_="iPad",B_="Apple",U_=B_+" Watch",$_="Safari",V_="BlackBerry",q_="Samsung",Z_=q_+"Browser",H_=q_+" Internet",G_="Chrome",W_=G_+" OS",Y_=G_+" "+D_,K_="Internet Explorer",X_=K_+" "+j_,J_="Opera",Q_=J_+" Mini",ew="Edge",tw="Microsoft "+ew,nw="Firefox",rw=nw+" "+D_,iw="Nintendo",ow="PlayStation",aw="Xbox",sw=A_+" "+j_,lw=j_+" "+$_,cw="Windows",uw=cw+" Phone",dw="Nokia",pw="Ouya",hw="Generic",fw=hw+" "+j_.toLowerCase(),mw=hw+" "+N_.toLowerCase(),gw="Konqueror",yw="(\\d+(\\.\\d+)?)",vw=new RegExp("Version/"+yw),bw=new RegExp(aw,"i"),_w=new RegExp(ow+" \\w+","i"),ww=new RegExp(iw+" \\w+","i"),xw=new RegExp(V_+"|PlayBook|BB10","i"),kw={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Cw=function(e,t){return t=t||"",yb(e," OPR/")&&yb(e,"Mini")?Q_:yb(e," OPR/")?J_:xw.test(e)?V_:yb(e,"IE"+j_)||yb(e,"WPDesktop")?X_:yb(e,Z_)?H_:yb(e,ew)||yb(e,"Edg/")?tw:yb(e,"FBIOS")?"Facebook "+j_:yb(e,"UCWEB")||yb(e,"UCBrowser")?"UC Browser":yb(e,"CriOS")?Y_:yb(e,"CrMo")?G_:yb(e,A_)&&yb(e,$_)?sw:yb(e,G_)?G_:yb(e,"FxiOS")?rw:yb(e.toLowerCase(),gw.toLowerCase())?gw:function(e,t){return t&&yb(t,B_)||function(e){return yb(e,$_)&&!yb(e,G_)&&!yb(e,A_)}(e)}(e,t)?yb(e,j_)?lw:$_:yb(e,nw)?nw:yb(e,"MSIE")||yb(e,"Trident/")?K_:yb(e,"Gecko")?nw:""},Sw=(Ev(b_={},X_,[new RegExp("rv:"+yw)]),Ev(b_,tw,[new RegExp(ew+"?\\/"+yw)]),Ev(b_,G_,[new RegExp("("+G_+"|CrMo)\\/"+yw)]),Ev(b_,Y_,[new RegExp("CriOS\\/"+yw)]),Ev(b_,"UC Browser",[new RegExp("(UCBrowser|UCWEB)\\/"+yw)]),Ev(b_,$_,[vw]),Ev(b_,lw,[vw]),Ev(b_,J_,[new RegExp("(Opera|OPR)\\/"+yw)]),Ev(b_,nw,[new RegExp(nw+"\\/"+yw)]),Ev(b_,rw,[new RegExp("FxiOS\\/"+yw)]),Ev(b_,gw,[new RegExp("Konqueror[:/]?"+yw,"i")]),Ev(b_,V_,[new RegExp(V_+" "+yw),vw]),Ev(b_,sw,[new RegExp("android\\s"+yw,"i")]),Ev(b_,H_,[new RegExp(Z_+"\\/"+yw)]),Ev(b_,K_,[new RegExp("(rv:|MSIE )"+yw)]),Ev(b_,"Mozilla",[new RegExp("rv:"+yw)]),b_),Mw=[[new RegExp(aw+"; "+aw+" (.*?)[);]","i"),function(e){return[aw,e&&e[1]||""]}],[new RegExp(iw,"i"),[iw,""]],[new RegExp(ow,"i"),[ow,""]],[xw,[V_,""]],[new RegExp(cw,"i"),function(e,t){if(/Phone/.test(t)||/WPDesktop/.test(t))return[uw,""];if(new RegExp(j_).test(t)&&!/IEMobile\b/.test(t))return[cw+" "+j_,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],i=kw[r]||"";return/arm/i.test(t)&&(i="RT"),[cw,i]}return[cw,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,function(e){if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[D_,t.join(".")]}return[D_,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,function(e){var t="";return e&&e.length>=3&&(t=Vv(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+A_+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+A_+")","i"),function(e){if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[A_,t.join(".")]}return[A_,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,function(e){var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[W_,""]],[/Linux|debian/i,["Linux",""]]],Tw=function(e){return ww.test(e)?iw:_w.test(e)?ow:bw.test(e)?aw:new RegExp(pw,"i").test(e)?pw:new RegExp("("+uw+"|WPDesktop)","i").test(e)?uw:/iPad/.test(e)?z_:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?U_:xw.test(e)?V_:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(dw,"i").test(e)?dw:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(j_).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?A_:F_:A_:new RegExp("(pda|"+j_+")","i").test(e)?fw:new RegExp(N_,"i").test(e)&&!new RegExp(N_+" pc","i").test(e)?mw:""},Ew="https?://(.*)",Pw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid"],Iw={campaignParams:function(e){return rb?this._campaignParamsFromUrl(rb.URL,e):{}},_campaignParamsFromUrl:function(e,t){var n=Pw.concat(t||[]),r={};return mb(n,(function(t){var n=L_(e,t);n&&(r[t]=n)})),r},_searchEngine:function(e){return e?0===e.search(Ew+"google.([^/?]*)")?"google":0===e.search(Ew+"bing.com")?"bing":0===e.search(Ew+"yahoo.com")?"yahoo":0===e.search(Ew+"duckduckgo.com")?"duckduckgo":null:null},_searchInfoFromReferrer:function(e){var t=Iw._searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(!Hv(t)){r.$search_engine=t;var i=rb?L_(rb.referrer,n):"";i.length&&(r.ph_keyword=i)}return r},searchInfo:function(){var e=null==rb?void 0:rb.referrer;return e?this._searchInfoFromReferrer(e):{}},browser:Cw,browserVersion:function(e,t){var n=Cw(e,t),r=Sw[n];if(Vv(r))return null;for(var i=0;i<r.length;i++){var o=r[i],a=e.match(o);if(a)return parseFloat(a[a.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(var t=0;t<Mw.length;t++){var n=Pv(Mw[t],2),r=n[0],i=n[1],o=r.exec(e),a=o&&(Bv(i)?i(o,e):i);if(a)return a}return["",""]},device:Tw,deviceType:function(e){var t=Tw(e);return t===z_||t===F_||"Kobo"===t||"Kindle Fire"===t||t===mw?N_:t===iw||t===aw||t===ow||t===pw?"Console":t===U_?"Wearable":t?j_:"Desktop"},referrer:function(){return(null==rb?void 0:rb.referrer)||"$direct"},referringDomain:function(){var e;return null!=rb&&rb.referrer&&(null===(e=I_(rb.referrer))||void 0===e?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},initialPersonInfo:function(){return{r:this.referrer(),u:null==ib?void 0:ib.href}},initialPersonPropsFromInfo:function(e){var t,n=e.r,r=e.u,i={$initial_referrer:n,$initial_referring_domain:null==n?void 0:"$direct"==n?"$direct":null===(t=I_(n))||void 0===t?void 0:t.host};if(r){i.$initial_current_url=r;var o=I_(r);i.$initial_host=null==o?void 0:o.host,i.$initial_pathname=null==o?void 0:o.pathname,mb(this._campaignParamsFromUrl(r),(function(e,t){i["$initial_"+kb(t)]=e}))}return n&&mb(this._searchInfoFromReferrer(n),(function(e,t){i["$initial_"+kb(t)]=e})),i},properties:function(){if(!lb)return{};var e=Pv(Iw.os(lb),2),t=e[0],n=e[1];return gb(xb({$os:t,$os_version:n,$browser:Iw.browser(lb,navigator.vendor),$device:Iw.device(lb),$device_type:Iw.deviceType(lb)}),{$current_url:null==ib?void 0:ib.href,$host:null==ib?void 0:ib.host,$pathname:null==ib?void 0:ib.pathname,$raw_user_agent:lb.length>1e3?lb.substring(0,997)+"...":lb,$browser_version:Iw.browserVersion(lb,navigator.vendor),$browser_language:Iw.browserLanguage(),$screen_height:null==Xv?void 0:Xv.screen.height,$screen_width:null==Xv?void 0:Xv.screen.width,$viewport_height:null==Xv?void 0:Xv.innerHeight,$viewport_width:null==Xv?void 0:Xv.innerWidth,$lib:"web",$lib_version:jv.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:bb()/1e3})},people_properties:function(){if(!lb)return{};var e=Pv(Iw.os(lb),2),t=e[0],n=e[1];return gb(xb({$os:t,$os_version:n,$browser:Iw.browser(lb,navigator.vendor)}),{$browser_version:Iw.browserVersion(lb,navigator.vendor)})}},Ow=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Lw=function(){function e(t){Sv(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=function(e){var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"}(t),this.storage=this.buildStorage(t),this.load(),this.update_config(t,t),this.save()}return Tv(e,[{key:"buildStorage",value:function(e){-1===Ow.indexOf(e.persistence.toLowerCase())&&(db.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&x_.is_supported()?x_:"localstorage+cookie"===t&&C_.is_supported()?C_:"sessionstorage"===t&&E_.is_supported()?E_:"memory"===t?M_:"cookie"===t?__:C_.is_supported()?C_:__}},{key:"properties",value:function(){var e={};return mb(this.props,(function(t,n){if(n===$b&&Uv(t))for(var r=Object.keys(t),i=0;i<r.length;i++)e["$feature/".concat(r[i])]=t[r[i]];else a=n,s=!1,(Hv(o=r_)?s:tb&&o.indexOf===tb?-1!=o.indexOf(a):(mb(o,(function(e){if(s||(s=e===a))return pb})),s))||(e[n]=t);var o,a,s})),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=gb({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,n){var r=this;if(Uv(e)){Vv(t)&&(t="None"),this.expire_days=Vv(n)?this.default_expiry:n;var i=!1;if(mb(e,(function(e,n){r.props.hasOwnProperty(n)&&r.props[n]!==t||(r.props[n]=e,i=!0)})),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(Uv(e)){this.expire_days=Vv(t)?this.default_expiry:t;var r=!1;if(mb(e,(function(t,i){e.hasOwnProperty(i)&&n.props[i]!==t&&(n.props[i]=t,r=!0)})),r)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(Iw.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(Iw.searchInfo())}},{key:"update_referrer_info",value:function(){this.register(Iw.referrerInfo())}},{key:"set_initial_person_info",value:function(){this.props[Jb]||this.props[Qb]||this.register_once(Ev({},e_,Iw.initialPersonInfo()),void 0)}},{key:"get_referrer_info",value:function(){return xb({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"get_initial_props",value:function(){var e=this,t={};mb([Qb,Jb],(function(n){var r=e.props[n];r&&mb(r,(function(e,n){t["$initial_"+kb(n)]=e}))}));var n=this.props[e_];if(n){var r=Iw.initialPersonPropsFromInfo(n);gb(t,r)}return t}},{key:"safe_merge",value:function(e){return mb(this.props,(function(t,n){n in e||(e[n]=t)})),e}},{key:"update_config",value:function(e,t){if(this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.buildStorage(e),r=this.props;this.clear(),this.storage=n,this.props=r,this.save()}}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var n=this.props[Pb]||{};n[e]=t,this.props[Pb]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[Pb]||{})[e];return Vv(t)||(delete this.props[Pb][e],this.save()),t}},{key:"get_property",value:function(e){return this.props[e]}},{key:"set_property",value:function(e,t){this.props[e]=t,this.save()}}]),e}(),Rw=2,jw=4,Dw=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Dw||{}),Aw=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Aw||{});function Nw(e){return e?hb(e).split(/\s+/):[]}function Fw(e){var t="";switch(Cv(e.className)){case"string":t=e.className;break;case"object":t=("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Nw(t)}function zw(e){return Gv(e)?null:hb(e).split(/(\s+)/).filter((function(e){return tx(e)})).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Bw(e){var t="";return Gw(e)&&!Ww(e)&&e.childNodes&&e.childNodes.length&&mb(e.childNodes,(function(e){var n;Vw(e)&&e.textContent&&(t+=null!==(n=zw(e.textContent))&&void 0!==n?n:"")})),hb(t)}function Uw(e){return!!e&&1===e.nodeType}function $w(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Vw(e){return!!e&&3===e.nodeType}function qw(e){return!!e&&11===e.nodeType}var Zw=["a","button","form","input","select","textarea","label"];function Hw(e){var t=e.parentNode;return!(!t||!Uw(t))&&t}function Gw(e){for(var t=e;t.parentNode&&!$w(t,"body");t=t.parentNode){var n=Fw(t);if(yb(n,"ph-sensitive")||yb(n,"ph-no-capture"))return!1}if(yb(Fw(e),"ph-include"))return!0;var r=e.type||"";if(qv(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!qv(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function Ww(e){return!!($w(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||$w(e,"select")||$w(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Yw="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Kw=new RegExp("^(?:".concat(Yw,")$")),Xw=new RegExp(Yw),Jw="\\d{3}-?\\d{2}-?\\d{4}",Qw=new RegExp("^(".concat(Jw,")$")),ex=new RegExp("(".concat(Jw,")"));function tx(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Gv(e))return!1;if(qv(e)){if(e=hb(e),(t?Kw:Xw).test((e||"").replace(/[- ]/g,"")))return!1;if((t?Qw:ex).test(e))return!1}return!0}function nx(e){var t=Bw(e);return tx(t="".concat(t," ").concat(rx(e)).trim())?t:""}function rx(e){var t="";return e&&e.childNodes&&e.childNodes.length&&mb(e.childNodes,(function(e){var n;if(e&&"span"===(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase()))try{var r=Bw(e);t="".concat(t," ").concat(r).trim(),e.childNodes&&e.childNodes.length&&(t="".concat(t," ").concat(rx(e)).trim())}catch(e){db.error(e)}})),t}function ix(e){return function(e){var t=e.map((function(e){var t,n,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class){e.attr_class.sort();var i,o=Rv(e.attr_class);try{for(o.s();!(i=o.n()).done;){var a=i.value;r+=".".concat(a.replace(/"/g,""))}}catch(e){o.e(e)}finally{o.f()}}var s=kv(kv(kv(kv({},e.text?{text:e.text}:{}),{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),l={};return vb(s).sort((function(e,t){var n=Pv(e,1)[0],r=Pv(t,1)[0];return n.localeCompare(r)})).forEach((function(e){var t=Pv(e,2),n=t[0],r=t[1];return l[ox(n.toString())]=ox(r.toString())})),(r+=":")+vb(s).map((function(e){var t=Pv(e,2),n=t[0],r=t[1];return"".concat(n,'="').concat(r,'"')})).join("")}));return t.join(";")}(function(e){return e.map((function(e){var t,n,r={text:null===(t=e.$el_text)||void 0===t?void 0:t.slice(0,400),tag_name:e.tag_name,href:null===(n=e.attr__href)||void 0===n?void 0:n.slice(0,2048),attr_class:ax(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return vb(e).filter((function(e){return 0===Pv(e,1)[0].indexOf("attr__")})).forEach((function(e){var t=Pv(e,2),n=t[0],i=t[1];return r.attributes[n]=i})),r}))}(e))}function ox(e){return e.replace(/"|\\"/g,'\\"')}function ax(e){var t=e.attr__class;return t?zv(t)?t:Nw(t):void 0}var sx="[SessionRecording]",lx="redacted",cx={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},ux=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],dx=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],px=["/s/","/e/","/i/"];function hx(e,t,n,r){if(Gv(e))return e;var i=(null==t?void 0:t["content-length"])||function(e){return new Blob([e]).size}(e);return qv(i)&&(i=parseInt(i)),i>n?sx+" ".concat(r," body too large to record (").concat(i," bytes)"):e}function fx(e,t){if(Gv(e))return e;var n=e;return tx(n,!1)||(n=sx+" "+t+" body "+lx),mb(dx,(function(e){var r,i;null!==(r=n)&&void 0!==r&&r.length&&-1!==(null===(i=n)||void 0===i?void 0:i.indexOf(e))&&(n=sx+" "+t+" body "+lx+" as might contain: "+e)})),n}var mx=Tv((function e(t){var n,r,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sv(this,e),Ev(this,"bucketSize",100),Ev(this,"refillRate",10),Ev(this,"mutationBuckets",{}),Ev(this,"loggedTracker",{}),Ev(this,"refillBuckets",(function(){Object.keys(i.mutationBuckets).forEach((function(e){i.mutationBuckets[e]=i.mutationBuckets[e]+i.refillRate,i.mutationBuckets[e]>=i.bucketSize&&delete i.mutationBuckets[e]}))})),Ev(this,"getNodeOrRelevantParent",(function(e){var t=i.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest("svg");if(n)return[i.rrweb.mirror.getId(n),n]}return[e,t]})),Ev(this,"numberOfChanges",(function(e){var t,n,r,i,o,a,s,l;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(r=null===(i=e.attributes)||void 0===i?void 0:i.length)&&void 0!==r?r:0)+(null!==(o=null===(a=e.texts)||void 0===a?void 0:a.length)&&void 0!==o?o:0)+(null!==(s=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==s?s:0)})),Ev(this,"throttleMutations",(function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=i.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter((function(e){var t,n,r,o=Pv(i.getNodeOrRelevantParent(e.id),2),a=o[0],s=o[1];return 0!==i.mutationBuckets[a]&&(i.mutationBuckets[a]=null!==(t=i.mutationBuckets[a])&&void 0!==t?t:i.bucketSize,i.mutationBuckets[a]=Math.max(i.mutationBuckets[a]-1,0),0===i.mutationBuckets[a]&&(i.loggedTracker[a]||(i.loggedTracker[a]=!0,null===(n=(r=i.options).onBlockedNode)||void 0===n||n.call(r,a,s))),e)})));var r=i.numberOfChanges(t);return 0!==r||n===r?e:void 0})),this.rrweb=t,this.options=o,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(r=this.options.bucketSize)&&void 0!==r?r:this.bucketSize,setInterval((function(){i.refillBuckets()}),1e3)})),gx=[Aw.MouseMove,Aw.MouseInteraction,Aw.Scroll,Aw.ViewportResize,Aw.Input,Aw.TouchMove,Aw.MediaInteraction,Aw.Drag],yx=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},vx="[SessionRecording]";var bx,_x=function(){function e(t){var n=this;if(Sv(this,e),Ev(this,"queuedRRWebEvents",[]),Ev(this,"isIdle",!1),Ev(this,"_linkedFlagSeen",!1),Ev(this,"_lastActivityTimestamp",Date.now()),Ev(this,"_linkedFlag",null),Ev(this,"_forceAllowLocalhostNetworkCapture",!1),Ev(this,"_samplingSessionListener",null),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,null==Xv||Xv.addEventListener("beforeunload",(function(){n._flushBuffer()})),null==Xv||Xv.addEventListener("offline",(function(){n._tryAddCustomEvent("browser offline",{})})),null==Xv||Xv.addEventListener("online",(function(){n._tryAddCustomEvent("browser online",{})})),null==Xv||Xv.addEventListener("visibilitychange",(function(){if(null!=rb&&rb.visibilityState){var e="window "+rb.visibilityState;n._tryAddCustomEvent(e,{})}})),!this.instance.sessionManager)throw db.error(vx+" started without valid sessionManager"),new Error(vx+" started without valid sessionManager. This is a bug.");var r=this.sessionManager.checkAndGetSessionAndWindowId(),i=r.sessionId,o=r.windowId;this.sessionId=i,this.windowId=o,this.buffer=this.clearBuffer(),this._setupSampling()}return Tv(e,[{key:"rrwebRecord",get:function(){var e;return null==cb||null===(e=cb.rrweb)||void 0===e?void 0:e.record}},{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw new Error(vx+" must be started with a valid sessionManager.");return this.instance.sessionManager}},{key:"fullSnapshotIntervalMillis",get:function(){var e;return(null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.full_snapshot_interval_millis)||3e5}},{key:"isSampled",get:function(){var e=this.instance.get_property(Ub);return Yv(e)?e:null}},{key:"sessionDuration",get:function(){var e,t,n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],r=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return n?n.timestamp-r:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(jb),t=!this.instance.config.disable_session_recording;return Xv&&e&&t}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(Db),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:"canvasRecording",get:function(){var e=this.instance.get_property(Nb);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:"networkPayloadCapture",get:function(){var e,t,n=this.instance.get_property(Ab),r={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},i=(null==r?void 0:r.recordHeaders)||(null==n?void 0:n.recordHeaders),o=(null==r?void 0:r.recordBody)||(null==n?void 0:n.recordBody),a=Uv(this.instance.config.capture_performance)?this.instance.config.capture_performance.network_timing:this.instance.config.capture_performance,s=!!(Yv(a)?a:null==n?void 0:n.capturePerformance);return i||o||s?{recordHeaders:i,recordBody:o,recordPerformance:s}:void 0}},{key:"sampleRate",get:function(){var e=this.instance.get_property(Fb);return Wv(e)?e:null}},{key:"minimumDuration",get:function(){var e=this.instance.get_property(zb);return Wv(e)?e:null}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?Gv(this._linkedFlag)||this._linkedFlagSeen?Yv(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}},{key:"startIfEnabledOrStop",value:function(){this.isRecordingEnabled?(this._startCapture(),db.info(vx+" started")):(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,db.info(vx+" stopped"))}},{key:"makeSamplingDecision",value:function(e){var t,n=this.sessionId!==e,r=this.sampleRate;if(Wv(r)){var i,o=this.isSampled,a=n||!Yv(o);!(i=a?Math.random()<r:o)&&a&&db.warn(vx+" Sample rate (".concat(r,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:r}),null===(t=this.instance.persistence)||void 0===t||t.register(Ev({},Ub,i))}else{var s;null===(s=this.instance.persistence)||void 0===s||s.register(Ev({},Ub,null))}}},{key:"afterDecideResponse",value:function(e){var t,n,r,i=this;if(this._persistDecideResponse(e),this._linkedFlag=(null===(t=e.sessionRecording)||void 0===t?void 0:t.linkedFlag)||null,null!==(n=e.sessionRecording)&&void 0!==n&&n.endpoint&&(this._endpoint=null===(r=e.sessionRecording)||void 0===r?void 0:r.endpoint),this._setupSampling(),!Gv(this._linkedFlag)){var o=qv(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,a=qv(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags((function(e,t){var n=Uv(t)&&o in t,r=a?t[o]===a:n;if(r){var s={linkedFlag:o,linkedVariant:a},l="linked flag matched";db.info(vx+" "+l,s),i._tryAddCustomEvent(l,s)}i._linkedFlagSeen=r}))}this.receivedDecide=!0,this.startIfEnabledOrStop()}},{key:"_setupSampling",value:function(){var e=this;Wv(this.sampleRate)&&Hv(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId((function(t){e.makeSamplingDecision(t)})))}},{key:"_persistDecideResponse",value:function(e){if(this.instance.persistence){var t=this.instance.persistence,n=function(){var n,r,i,o,a,s,l,c,u=null===(n=e.sessionRecording)||void 0===n?void 0:n.sampleRate,d=Gv(u)?null:parseFloat(u),p=null===(r=e.sessionRecording)||void 0===r?void 0:r.minimumDurationMilliseconds;t.register((Ev(c={},jb,!!e.sessionRecording),Ev(c,Db,null===(i=e.sessionRecording)||void 0===i?void 0:i.consoleLogRecordingEnabled),Ev(c,Ab,kv({capturePerformance:e.capturePerformance},null===(o=e.sessionRecording)||void 0===o?void 0:o.networkPayloadCapture)),Ev(c,Nb,{enabled:null===(a=e.sessionRecording)||void 0===a?void 0:a.recordCanvas,fps:null===(s=e.sessionRecording)||void 0===s?void 0:s.canvasFps,quality:null===(l=e.sessionRecording)||void 0===l?void 0:l.canvasQuality}),Ev(c,Fb,d),Ev(c,zb,Vv(p)?null:p),c))};n(),this.sessionManager.onSessionId(n)}}},{key:"log",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:bb()})}},{key:"_startCapture",value:function(){var e=this;Vv(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut()||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():this.instance.requestRouter.loadScript("/static/recorder.js?v=".concat(jv.LIB_VERSION),(function(t){if(t)return db.error(vx+" could not load recorder.js",t);e._onScriptLoaded()})))}},{key:"isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==gx.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>3e5&&(this.isIdle=!0,clearTimeout(this._fullSnapshotTimer),this._flushBuffer());var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),!this.isIdle){var r=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),i=r.windowId,o=r.sessionId,a=this.sessionId!==o,s=this.windowId!==i;this.windowId=i,this.sessionId=o,(n||-1===[Rw,jw].indexOf(e.type)&&(s||a||Vv(this._fullSnapshotTimer)))&&this._tryTakeFullSnapshot()}}},{key:"_tryRRWebMethod",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):db.warn(vx+" could not emit queued rrweb event.",t,e),!1}}},{key:"_tryAddCustomEvent",value:function(e,t){var n=this;return this._tryRRWebMethod(yx((function(){return n.rrwebRecord.addCustomEvent(e,t)})))}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRWebMethod(yx((function(){return e.rrwebRecord.takeFullSnapshot()})))}},{key:"_onScriptLoaded",value:function(){for(var e,t=this,n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},r=this.instance.config.session_recording,i=0,o=Object.entries(r||{});i<o.length;i++){var a=Pv(o[i],2),s=a[0],l=a[1];s in n&&(n[s]=l)}if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.rrwebRecord){this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new mx(this.rrwebRecord,{onBlockedNode:function(e,n){var r="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");db.info(r,{node:n}),t.log(vx+" "+r,"warn")}});var c=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(kv({emit:function(e){t.onRRwebEmit(e)},plugins:c},n)),this.instance._addCaptureHook((function(e){try{if("$pageview"===e){var n=Xv?t._maskUrl(Xv.location.href):"";if(!n)return;t._tryAddCustomEvent("$pageview",{href:n}),t._tryTakeFullSnapshot()}}catch(e){db.error("Could not add $pageview to rrweb session",e)}})),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:c.map((function(e){return null==e?void 0:e.name}))}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}else db.error(vx+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_scheduleFullSnapshot",value:function(){var e=this;if(this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),!this.isIdle){var t=this.fullSnapshotIntervalMillis;t&&(this._fullSnapshotTimer=setInterval((function(){e._tryTakeFullSnapshot()}),t))}}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return cb.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(cb.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&Bv(cb.getRecordNetworkPlugin)&&(!P_.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(cb.getRecordNetworkPlugin(function(e,t){var n,r,i,o={payloadSizeLimitBytes:cx.payloadSizeLimitBytes,performanceEntryTypeToObserve:Iv(cx.performanceEntryTypeToObserve)},a=!1!==e.session_recording.recordHeaders&&t.recordHeaders,s=!1!==e.session_recording.recordBody&&t.recordBody,l=!1!==e.capture_performance&&t.recordPerformance,c=(n=o,i=Math.min(1e6,null!==(r=n.payloadSizeLimitBytes)&&void 0!==r?r:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=hx(e.requestBody,e.requestHeaders,i,"Request")),null!=e&&e.responseBody&&(e.responseBody=hx(e.responseBody,e.responseHeaders,i,"Response")),e}),u=function(e){return c(function(e){var t=I_(e.name);if(!(t&&t.pathname&&px.some((function(e){return 0===t.pathname.indexOf(e)}))))return e}((n=(t=e).requestHeaders,Gv(n)||mb(Object.keys(null!=n?n:{}),(function(e){ux.includes(e.toLowerCase())&&(n[e]=lx)})),t)));var t,n},d=Bv(e.session_recording.maskNetworkRequestFn);return d&&Bv(e.session_recording.maskCapturedNetworkRequestFn)&&db.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),d&&(e.session_recording.maskCapturedNetworkRequestFn=function(t){var n=e.session_recording.maskNetworkRequestFn({url:t.name});return kv(kv({},t),{},{name:null==n?void 0:n.url})}),o.maskRequestFn=Bv(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,r,i,o=u(t);return o&&null!==(n=null===(r=(i=e.session_recording).maskCapturedNetworkRequestFn)||void 0===r?void 0:r.call(i,o))&&void 0!==n?n:void 0}:function(e){return function(e){if(!Vv(e))return e.requestBody=fx(e.requestBody,"Request"),e.responseBody=fx(e.responseBody,"Response"),e}(u(e))},kv(kv(kv({},cx),o),{},{recordHeaders:a,recordBody:s,recordPerformance:l,recordInitialRequests:l})}(this.instance.config,this.networkPayloadCapture))):db.info(vx+" NetworkCapture not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(this._processQueuedEvents(),e&&Uv(e)){if(e.type===Dw.Meta){var t=this._maskUrl(e.data.href);if(this._lastHref=t,!t)return;e.data.href=t}else this._pageViewFallBack();e.type===Dw.FullSnapshot&&this._scheduleFullSnapshot();var n=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(n){var r=function(e){var t=e;if(t&&Uv(t)&&6===t.type&&Uv(t.data)&&"rrweb/console@1"===t.data.plugin){t.data.payload.payload.length>10&&(t.data.payload.payload=t.data.payload.payload.slice(0,10),t.data.payload.payload.push("...[truncated]"));for(var n=[],r=0;r<t.data.payload.payload.length;r++)t.data.payload.payload[r]&&t.data.payload.payload[r].length>2e3?n.push(t.data.payload.payload[r].slice(0,2e3)+"...[truncated]"):n.push(t.data.payload.payload[r]);return t.data.payload.payload=n,e}return e}(n),i=function(e){return JSON.stringify(e,(t=[],function(e,n){if(Uv(n)){for(;t.length>0&&t.at(-1)!==this;)t.pop();return t.includes(n)?"[Circular]":(t.push(n),n)}return n})).length;var t}(r);if(this._updateWindowAndSessionIds(r),!this.isIdle||r.type===Dw.Custom){var o={$snapshot_bytes:i,$snapshot_data:r,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(o):this.clearBuffer()}}}}},{key:"_pageViewFallBack",value:function(){if(!this.instance.config.capture_pageview&&Xv){var e=this._maskUrl(Xv.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}}},{key:"_processQueuedEvents",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=Iv(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach((function(t){Date.now()-t.enqueuedAt<=2e3&&e._tryRRWebMethod(t)}))}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n,r={url:e};return null===(n=r=t.maskNetworkRequestFn(r))||void 0===n?void 0:n.url}return e}},{key:"clearBuffer",value:function(){return this.buffer={size:0,data:[],sessionId:this.sessionId,windowId:this.windowId},this.buffer}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,n=this.sessionDuration,r=Wv(n)&&n>=0,i=Wv(t)&&r&&n<t;return"buffering"===this.status||i?(this.flushBufferTimer=setTimeout((function(){e._flushBuffer()}),2e3),this.buffer):(this.buffer.data.length>0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer())}},{key:"_captureSnapshotBuffered",value:function(e){var t,n=this,r=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(this.buffer.size+e.$snapshot_bytes+r>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout((function(){n._flushBuffer()}),2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",_noHeatmaps:!0})}}]),e}(),wx=function(){function e(t){Sv(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Tv(e,[{key:"call",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(qb),group_properties:this.instance.get_property(Zb),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:this.instance.config.disable_compression?void 0:Cb.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:"parseDecideResponse",value:function(e){var t=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var n=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},n),n)db.error("Failed to fetch feature flags from PostHog.");else{if(!rb||!rb.body)return db.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((function(){t.parseDecideResponse(e)}),500);if(this.instance._afterDecideResponse(e),e.siteApps)if(this.instance.config.opt_in_site_apps){var r,i=Rv(e.siteApps);try{var o=function(){var e=r.value,n=e.id,i=e.url,o=t.instance.requestRouter.endpointFor("api",i);cb["__$$ph_site_app_".concat(n)]=t.instance,t.instance.requestRouter.loadScript(o,(function(e){e&&db.error("Error while initializing PostHog app with config id ".concat(n),e)}))};for(i.s();!(r=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}else e.siteApps.length>0&&db.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}]),e}(),xx=null!=Xv&&Xv.location?R_(Xv.location.hash,"__posthog")||R_(location.hash,"state"):null,kx="_postHogToolbarParams";!function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(bx||(bx={}));var Cx=function(){function e(t){Sv(this,e),this.instance=t}return Tv(e,[{key:"setToolbarState",value:function(e){cb.ph_toolbar_state=e}},{key:"getToolbarState",value:function(){var e;return null!==(e=cb.ph_toolbar_state)&&void 0!==e?e:bx.UNINITIALIZED}},{key:"maybeLoadToolbar",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!Xv||!rb)return!1;n=null!==(e=n)&&void 0!==e?e:Xv.location,i=null!==(t=i)&&void 0!==t?t:Xv.history;try{if(!r){try{Xv.localStorage.setItem("test","test"),Xv.localStorage.removeItem("test")}catch(e){return!1}r=null==Xv?void 0:Xv.localStorage}var o,a=xx||R_(n.hash,"__posthog")||R_(n.hash,"state"),s=a?_b((function(){return JSON.parse(atob(decodeURIComponent(a)))}))||_b((function(){return JSON.parse(decodeURIComponent(a))})):null;return s&&"ph_authorize"===s.action?((o=s).source="url",o&&Object.keys(o).length>0&&(s.desiredHash?n.hash=s.desiredHash:i?i.replaceState(i.state,"",n.pathname+n.search):n.hash="")):((o=JSON.parse(r.getItem(kx)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token)&&(this.loadToolbar(o),!0)}catch(e){return!1}}},{key:"_callLoadToolbar",value:function(e){(cb.ph_load_toolbar||cb.ph_load_editor)(e,this.instance)}},{key:"loadToolbar",value:function(e){var t=this,n=!(null==rb||!rb.getElementById(n_));if(!Xv||n)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,i=kv(kv({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(Xv.localStorage.setItem(kx,JSON.stringify(kv(kv({},i),{},{source:void 0}))),this.getToolbarState()===bx.LOADED)this._callLoadToolbar(i);else if(this.getToolbarState()===bx.UNINITIALIZED){this.setToolbarState(bx.LOADING);var o=3e5,a=Math.floor(Date.now()/o)*o;this.instance.requestRouter.loadScript("/static/toolbar.js?t=".concat(a),(function(e){if(e)return db.error("Failed to load toolbar",e),void t.setToolbarState(bx.UNINITIALIZED);t.setToolbarState(bx.LOADED),t._callLoadToolbar(i)})),Sb(Xv,"turbolinks:load",(function(){t.setToolbarState(bx.UNINITIALIZED),t.loadToolbar(i)}))}return!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),Sx=function(){function e(t){Sv(this,e),Ev(this,"isPaused",!0),Ev(this,"queue",[]),Ev(this,"flushTimeoutMs",3e3),this.sendRequest=t}return Tv(e,[{key:"enqueue",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:"unload",value:function(){var e=this;this.clearFlushTimeout();var t=this.queue.length>0?this.formatQueue():{},n=Object.values(t),r=[].concat(Iv(n.filter((function(e){return 0===e.url.indexOf("/e")}))),Iv(n.filter((function(e){return 0!==e.url.indexOf("/e")}))));r.map((function(t){e.sendRequest(kv(kv({},t),{},{transport:"sendBeacon"}))}))}},{key:"enable",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:"setFlushTimeout",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout((function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue(),n=function(n){var r=t[n],i=(new Date).getTime();r.data&&zv(r.data)&&mb(r.data,(function(e){e.offset=Math.abs(e.timestamp-i),delete e.timestamp})),e.sendRequest(r)};for(var r in t)n(r)}}),this.flushTimeoutMs))}},{key:"clearFlushTimeout",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:"formatQueue",value:function(){var e={};return mb(this.queue,(function(t){var n,r=t,i=(r?r.batchKey:null)||r.url;Vv(e[i])&&(e[i]=kv(kv({},r),{},{data:[]})),null===(n=e[i].data)||void 0===n||n.push(r.data)})),this.queue=[],e}}]),e}(),Mx=Uint8Array,Tx=Uint16Array,Ex=Uint32Array,Px=new Mx([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ix=new Mx([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ox=new Mx([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lx=function(e,t){for(var n=new Tx(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Ex(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Rx=Lx(Px,2),jx=Rx[0],Dx=Rx[1];jx[28]=258,Dx[258]=28;for(var Ax=Lx(Ix,0)[1],Nx=new Tx(32768),Fx=0;Fx<32768;++Fx){var zx=(43690&Fx)>>>1|(21845&Fx)<<1;zx=(61680&(zx=(52428&zx)>>>2|(13107&zx)<<2))>>>4|(3855&zx)<<4,Nx[Fx]=((65280&zx)>>>8|(255&zx)<<8)>>>1}var Bx=function(e,t,n){for(var r=e.length,i=0,o=new Tx(t);i<r;++i)++o[e[i]-1];var a,s=new Tx(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new Tx(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,p=d|(1<<u)-1;d<=p;++d)a[Nx[d]>>>l]=c}else for(a=new Tx(r),i=0;i<r;++i)a[i]=Nx[s[e[i]-1]++]>>>15-e[i];return a},Ux=new Mx(288);for(Fx=0;Fx<144;++Fx)Ux[Fx]=8;for(Fx=144;Fx<256;++Fx)Ux[Fx]=9;for(Fx=256;Fx<280;++Fx)Ux[Fx]=7;for(Fx=280;Fx<288;++Fx)Ux[Fx]=8;var $x=new Mx(32);for(Fx=0;Fx<32;++Fx)$x[Fx]=5;var Vx=Bx(Ux,9,0),qx=Bx($x,5,0),Zx=function(e){return(e/8>>0)+(7&e&&1)},Hx=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof Tx?Tx:e instanceof Ex?Ex:Mx)(n-t);return r.set(e.subarray(t,n)),r},Gx=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Wx=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Yx=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new Mx(0),0];if(1==i){var a=new Mx(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:s.f+l.f,l:s,r:l};var p=o[0].s;for(r=1;r<i;++r)o[r].s>p&&(p=o[r].s);var h=new Tx(p+1),f=Kx(n[u-1],h,0);if(f>t){r=0;var m=0,g=f-t,y=1<<g;for(o.sort((function(e,t){return h[t.s]-h[e.s]||e.f-t.f}));r<i;++r){var v=o[r].s;if(!(h[v]>t))break;m+=y-(1<<f-h[v]),h[v]=t}for(m>>>=g;m>0;){var b=o[r].s;h[b]<t?m-=1<<t-h[b]++-1:++r}for(;r>=0&&m;--r){var _=o[r].s;h[_]==t&&(--h[_],++m)}f=t}return[new Mx(h),f]},Kx=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Xx=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Tx(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},Jx=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Qx=function(e,t,n){var r=n.length,i=Zx(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},ek=function(e,t,n,r,i,o,a,s,l,c,u){Gx(t,u++,n),++i[256];for(var d=Yx(i,15),p=d[0],h=d[1],f=Yx(o,15),m=f[0],g=f[1],y=Xx(p),v=y[0],b=y[1],_=Xx(m),w=_[0],x=_[1],k=new Tx(19),C=0;C<v.length;++C)k[31&v[C]]++;for(C=0;C<w.length;++C)k[31&w[C]]++;for(var S=Yx(k,7),M=S[0],T=S[1],E=19;E>4&&!M[Ox[E-1]];--E);var P,I,O,L,R=c+5<<3,j=Jx(i,Ux)+Jx(o,$x)+a,D=Jx(i,p)+Jx(o,m)+a+14+3*E+Jx(k,M)+(2*k[16]+3*k[17]+7*k[18]);if(R<=j&&R<=D)return Qx(t,u,e.subarray(l,l+c));if(Gx(t,u,1+(D<j)),u+=2,D<j){P=Bx(p,h,0),I=p,O=Bx(m,g,0),L=m;var A=Bx(M,T,0);for(Gx(t,u,b-257),Gx(t,u+5,x-1),Gx(t,u+10,E-4),u+=14,C=0;C<E;++C)Gx(t,u+3*C,M[Ox[C]]);u+=3*E;for(var N=[v,w],F=0;F<2;++F){var z=N[F];for(C=0;C<z.length;++C){var B=31&z[C];Gx(t,u,A[B]),u+=M[B],B>15&&(Gx(t,u,z[C]>>>5&127),u+=z[C]>>>12)}}}else P=Vx,I=Ux,O=qx,L=$x;for(C=0;C<s;++C)if(r[C]>255){B=r[C]>>>18&31,Wx(t,u,P[B+257]),u+=I[B+257],B>7&&(Gx(t,u,r[C]>>>23&31),u+=Px[B]);var U=31&r[C];Wx(t,u,O[U]),u+=L[U],U>3&&(Wx(t,u,r[C]>>>5&8191),u+=Ix[U])}else Wx(t,u,P[r[C]]),u+=I[r[C]];return Wx(t,u,P[256]),u+I[256]},tk=new Ex([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nk=new Mx(0),rk=function(){for(var e=new Ex(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ik=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function ok(e,t){void 0===t&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=rk[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}}(),r=e.length;n.p(e);var i=function(e,t,n,r,i){return function(e,t,n,r,i,o){var a=e.length,s=new Mx(r+a+5*(1+Math.floor(a/7e3))+i),l=s.subarray(r,s.length-i),c=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d<a?c=Qx(l,c,e.subarray(u,d)):(l[u]=o,c=Qx(l,c,e.subarray(u,a)))}else{for(var p=tk[t-1],h=p>>>13,f=8191&p,m=(1<<n)-1,g=new Tx(32768),y=new Tx(m+1),v=Math.ceil(n/3),b=2*v,_=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<b)&m},w=new Ex(25e3),x=new Tx(288),k=new Tx(32),C=0,S=0,M=(u=0,0),T=0,E=0;u<a;++u){var P=_(u),I=32767&u,O=y[P];if(g[I]=O,y[P]=I,T<=u){var L=a-u;if((C>7e3||M>24576)&&L>423){c=ek(e,l,0,w,x,k,S,M,E,u-E,c),M=C=S=0,E=u;for(var R=0;R<286;++R)x[R]=0;for(R=0;R<30;++R)k[R]=0}var j=2,D=0,A=f,N=I-O&32767;if(L>2&&P==_(u-N))for(var F=Math.min(h,L)-1,z=Math.min(32767,u),B=Math.min(258,L);N<=z&&--A&&I!=O;){if(e[u+j]==e[u+j-N]){for(var U=0;U<B&&e[u+U]==e[u+U-N];++U);if(U>j){if(j=U,D=N,U>F)break;var $=Math.min(N,U-2),V=0;for(R=0;R<$;++R){var q=u-N+R+32768&32767,Z=q-g[q]+32768&32767;Z>V&&(V=Z,O=q)}}}N+=(I=O)-(O=g[I])+32768&32767}if(D){w[M++]=268435456|Dx[j]<<18|Ax[D];var H=31&Dx[j],G=31&Ax[D];S+=Px[H]+Ix[G],++x[257+H],++k[G],T=u+j,++C}else w[M++]=e[u],++x[e[u]]}}c=ek(e,l,o,w,x,k,S,M,E,u-E,c),o||(c=Qx(l,c,nk))}return Hx(s,0,r+Zx(c)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)}(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=i.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ik(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(i,t),ik(i,o-8,n.d()),ik(i,o-4,r),i}var ak=!!ab||!!ob,sk="text/plain",lk=function(e,t){var n=Pv(e.split("?"),2),r=n[0],i=n[1],o=kv({},t);null==i||i.split("&").forEach((function(e){var t=Pv(e.split("="),1)[0];delete o[t]}));var a=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return mb(e,(function(e,r){Vv(e)||Vv(r)||"undefined"===r||(t=encodeURIComponent(function(e){return e instanceof File}(e)?e.name:e.toString()),n=encodeURIComponent(r),i[i.length]=n+"="+t)})),i.join(r)}(o);return a=a?(i?i+"&":"")+a:i,"".concat(r,"?").concat(a)},ck=function(e){return"data="+encodeURIComponent("string"==typeof e?e:JSON.stringify(e))},uk=function(e){var t=e.data,n=e.compression;if(t){if(n===Cb.GZipJS){var r=ok(function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Mx(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},a=0;a<n;++a){if(i+5>r.length){var s=new Mx(i+8+(n-a<<1));s.set(r),r=s}var l=e.charCodeAt(a);l<128?o(l):l<2048?(o(192|l>>>6),o(128|63&l)):l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63),o(128|l>>>6&63),o(128|63&l)):(o(224|l>>>12),o(128|l>>>6&63),o(128|63&l))}return Hx(r,0,i)}(JSON.stringify(t)),{mtime:0});return{contentType:sk,body:new Blob([r],{type:sk})}}if(n===Cb.Base64){var i=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),Hv(s)||(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o}(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(JSON.stringify(t));return{contentType:"application/x-www-form-urlencoded",body:ck(i)}}return{contentType:"application/json",body:JSON.stringify(t)}}},dk=[];ab&&dk.push({transport:"XHR",method:function(e){var t,n=new ab;n.open(e.method||"GET",e.url,!0);var r=null!==(t=uk(e))&&void 0!==t?t:{},i=r.contentType,o=r.body;mb(e.headers,(function(e,t){n.setRequestHeader(t,e)})),i&&n.setRequestHeader("Content-Type",i),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=function(){if(4===n.readyState){var t,r={statusCode:n.status,text:n.responseText};if(200===n.status)try{r.json=JSON.parse(n.responseText)}catch(e){}null===(t=e.callback)||void 0===t||t.call(e,r)}},n.send(o)}}),ob&&dk.push({transport:"fetch",method:function(e){var t,n,r=null!==(t=uk(e))&&void 0!==t?t:{},i=r.contentType,o=r.body,a=new Headers;mb(a,(function(e,t){a.append(t,e)})),i&&a.append("Content-Type",i);var s=e.url,l=null;if(sb){var c=new sb;l={signal:c.signal,timeout:setTimeout((function(){return c.abort()}),e.timeout)}}ob(s,{method:(null==e?void 0:e.method)||"GET",headers:a,keepalive:"POST"===e.method,body:o,signal:null===(n=l)||void 0===n?void 0:n.signal}).then((function(t){return t.text().then((function(n){var r,i={statusCode:t.status,text:n};if(200===t.status)try{i.json=JSON.parse(n)}catch(e){db.error(e)}null===(r=e.callback)||void 0===r||r.call(e,i)}))})).catch((function(t){var n;db.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})})).finally((function(){return l?clearTimeout(l.timeout):null}))}}),null!=nb&&nb.sendBeacon&&dk.push({transport:"sendBeacon",method:function(e){var t=lk(e.url,{beacon:"1"});try{var n,r=null!==(n=uk(e))&&void 0!==n?n:{},i=r.contentType,o=r.body,a="string"==typeof o?new Blob([o],{type:i}):o;nb.sendBeacon(t,a)}catch(e){}}});var pk,hk=["retriesPerformedSoFar"],fk=function(){function e(t){var n=this;Sv(this,e),Ev(this,"isPolling",!1),Ev(this,"pollIntervalMs",3e3),Ev(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!Vv(Xv)&&"onLine"in Xv.navigator&&(this.areWeOnline=Xv.navigator.onLine,Xv.addEventListener("online",(function(){n.areWeOnline=!0,n.flush()})),Xv.addEventListener("offline",(function(){n.areWeOnline=!1})))}return Tv(e,[{key:"retriableRequest",value:function(e){var t=this,n=e.retriesPerformedSoFar,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,hk);Wv(n)&&n>0&&(r.url=lk(r.url,{retry_count:n})),this.instance._send_request(kv(kv({},r),{},{callback:function(e){var i;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=n?n:0)<10?t.enqueue(kv({retriesPerformedSoFar:n},r)):null===(i=r.callback)||void 0===i||i.call(r,e)}}))}},{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=function(e){var t=3e3*Math.pow(2,e),n=t/2,r=Math.min(18e5,t),i=(Math.random()-.5)*(r-n);return Math.ceil(r+i)}(t),r=Date.now()+n;this.queue.push({retryAt:r,requestOptions:e});var i="Enqueued failed request for retry in ".concat(n);navigator.onLine||(i+=" (Browser is offline)"),db.warn(i),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;this.poller&&clearTimeout(this.poller),this.poller=setTimeout((function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()}),this.pollIntervalMs)}},{key:"flush",value:function(){var e=Date.now(),t=[],n=this.queue.filter((function(n){return n.retryAt<e||(t.push(n),!1)}));if(this.queue=t,n.length>0){var r,i=Rv(n);try{for(i.s();!(r=i.n()).done;){var o=r.value.requestOptions;this.retriableRequest(o)}}catch(e){i.e(e)}finally{i.f()}}}},{key:"unload",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,t=Rv(this.queue);try{for(t.s();!(e=t.n()).done;){var n=e.value.requestOptions;try{this.instance._send_request(kv(kv({},n),{},{transport:"sendBeacon"}))}catch(e){db.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}}]),e}(),mk=1800,gk=function(){function e(t,n,r,i){var o;Sv(this,e),Ev(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=r||m_,this._windowIdGenerator=i||m_;var a=t.persistence_name||t.token,s=t.session_idle_timeout_seconds||mk;if(Wv(s)?s>mk?db.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):s<60&&db.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(db.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),s=mk),this._sessionTimeoutMs=1e3*Math.min(Math.max(s,60),mk),this._window_id_storage_key="ph_"+a+"_window_id",this._primary_window_exists_storage_key="ph_"+a+"_primary_window_exists",this._canUseSessionStorage()){var l=E_.parse(this._window_id_storage_key),c=E_.parse(this._primary_window_exists_storage_key);l&&!c?this._windowId=l:E_.remove(this._window_id_storage_key),E_.set(this._primary_window_exists_storage_key,!0)}if(null!==(o=this.config.bootstrap)&&void 0!==o&&o.sessionID)try{var u=function(e){var t=e.replace(/-/g,"");if(32!==t.length)throw new Error("Not a valid UUID");if("7"!==t[12])throw new Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)}(this.config.bootstrap.sessionID);this._setSessionId(this.config.bootstrap.sessionID,(new Date).getTime(),u)}catch(e){db.error("Invalid sessionID in bootstrap",e)}this._listenToReloadWindow()}return Tv(e,[{key:"onSessionId",value:function(e){var t=this;return Vv(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter((function(t){return t!==e}))}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&E_.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&E_.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?E_.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(Ev({},Bb,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[Bb];return zv(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;null==Xv||Xv.addEventListener("beforeunload",(function(){e._canUseSessionStorage()&&E_.remove(e._primary_window_exists_storage_key)}))}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=Pv(this._getSessionId(),3),r=n[0],i=n[1],o=n[2],a=this._getWindowId(),s=o&&o>0&&Math.abs(t-o)>864e5,l=!1,c=!i,u=!e&&Math.abs(t-r)>this._sessionTimeoutMs;c||u||s?(i=this._sessionIdGenerator(),a=this._windowIdGenerator(),db.info("[SessionId] new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),o=t,l=!0):a||(a=this._windowIdGenerator(),l=!0);var d=0===r||!e||s?t:r,p=0===o?(new Date).getTime():o;return this._setWindowId(a),this._setSessionId(i,d,p),l&&this._sessionIdChangedHandlers.forEach((function(e){return e(i,a)})),{sessionId:i,windowId:a,sessionStartTimestamp:p}}}]),e}();!function(e){e.US="us",e.EU="eu",e.CUSTOM="custom"}(pk||(pk={}));var yk="i.posthog.com",vk=function(){function e(t){Sv(this,e),Ev(this,"_regionCache",{}),this.instance=t}return Tv(e,[{key:"apiHost",get:function(){return this.instance.config.api_host.trim().replace(/\/$/,"")}},{key:"uiHost",get:function(){var e,t=null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"");return"https://app.posthog.com"===t?"https://us.posthog.com":t}},{key:"region",get:function(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=pk.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=pk.EU:this._regionCache[this.apiHost]=pk.CUSTOM),this._regionCache[this.apiHost]}},{key:"endpointFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:"/".concat(t)),"ui"===e)return(this.uiHost||this.apiHost.replace(".".concat(yk),".posthog.com"))+t;if(this.region===pk.CUSTOM)return this.apiHost+t;var n=yk+t;switch(e){case"assets":return"https://".concat(this.region,"-assets.").concat(n);case"api":return"https://".concat(this.region,".").concat(n)}}},{key:"loadScript",value:function(e,t){if(this.instance.config.disable_external_dependency_loading)return db.warn("".concat(e," was requested but loading of external scripts is disabled.")),t("Loading of external scripts is disabled");var n="/"===e[0]?this.endpointFor("assets",e):e,r=function(){if(!rb)return t("document not found");var e=rb.createElement("script");e.type="text/javascript",e.src=n,e.onload=function(e){return t(void 0,e)},e.onerror=function(e){return t(e)};var r,i=rb.querySelectorAll("body > script");i.length>0?null===(r=i[0].parentNode)||void 0===r||r.insertBefore(e,i[0]):rb.body.appendChild(e)};null!=rb&&rb.body?r():null==rb||rb.addEventListener("DOMContentLoaded",r)}}]),e}(),bk="posthog-js";function _k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.organization,r=t.projectId,i=t.prefix,o=t.severityAllowList,a=void 0===o?["error"]:o;return function(t){var o,s,l,c,u;if("*"!==a&&!a.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var d=e.requestRouter.endpointFor("ui","/project/".concat(e.config.token,"/person/").concat(e.get_distinct_id()));t.tags["PostHog Person URL"]=d,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=(null===(o=t.exception)||void 0===o?void 0:o.values)||[],h={$exception_message:(null===(s=p[0])||void 0===s?void 0:s.value)||t.message,$exception_type:null===(l=p[0])||void 0===l?void 0:l.type,$exception_personURL:d,$exception_level:t.level,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null===(c=p[0])||void 0===c?void 0:c.value)||t.message,$sentry_exception_type:null===(u=p[0])||void 0===u?void 0:u.type,$sentry_tags:t.tags,$level:t.level};return n&&r&&(h.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+t.event_id),e.capture("$exception",h),t}}var wk=Tv((function e(t,n,r,i,o){Sv(this,e),this.name=bk,this.setupOnce=function(e){e(_k(t,{organization:n,projectId:r,prefix:i,severityAllowList:o}))}}));var xk,kk,Ck,Sk=function(){function e(t){Sv(this,e),this._instance=t}return Tv(e,[{key:"doPageView",value:function(){var e,t=this._previousScrollProperties();return this._currentPath=null!==(e=null==Xv?void 0:Xv.location.pathname)&&void 0!==e?e:"",this._instance.scrollManager.resetContext(),t}},{key:"doPageLeave",value:function(){return this._previousScrollProperties()}},{key:"_previousScrollProperties",value:function(){var e=this._currentPath,t=this._instance.scrollManager.getContext();if(!e||!t)return{};var n=t.maxScrollHeight,r=t.lastScrollY,i=t.maxScrollY,o=t.maxContentHeight,a=t.lastContentY,s=t.maxContentY;return Vv(n)||Vv(r)||Vv(i)||Vv(o)||Vv(a)||Vv(s)?{}:(n=Math.ceil(n),r=Math.ceil(r),i=Math.ceil(i),o=Math.ceil(o),a=Math.ceil(a),s=Math.ceil(s),{$prev_pageview_pathname:e,$prev_pageview_last_scroll:r,$prev_pageview_last_scroll_percentage:n<=1?1:Mk(r/n,0,1),$prev_pageview_max_scroll:i,$prev_pageview_max_scroll_percentage:n<=1?1:Mk(i/n,0,1),$prev_pageview_last_content:a,$prev_pageview_last_content_percentage:o<=1?1:Mk(a/o,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:o<=1?1:Mk(s/o,0,1)})}}]),e}();function Mk(e,t,n){return Math.max(t,Math.min(e,n))}!function(e){e.Popover="popover",e.API="api",e.Widget="widget"}(xk||(xk={})),function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}(kk||(kk={})),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}(Ck||(Ck={}));var Tk=function(){function e(t){Sv(this,e),this.persistence=t,this.eventRegistry=new Map}return Tv(e,[{key:"register",value:function(e){var t=this;e.forEach((function(e){var n,r,i,o,a;null!==(n=e.conditions)&&void 0!==n&&n.events&&null!==(r=e.conditions)&&void 0!==r&&null!==(i=r.events)&&void 0!==i&&i.values&&(null===(o=e.conditions)||void 0===o?void 0:o.events.values.length)>0&&t.eventRegistry.set(e.id,null===(a=e.conditions)||void 0===a?void 0:a.events.values.map((function(e){return e.name})))}))}},{key:"on",value:function(t,n){var r,i=[],o=(null===(r=this.persistence)||void 0===r?void 0:r.props[Gb])||[];if(e.SURVEY_SHOWN_EVENT_NAME==t&&n&&o.length>0){var a,s=null==n||null===(a=n.properties)||void 0===a?void 0:a.$survey_id;if(s){var l=o.indexOf(s);l>=0&&o.splice(l,1)}}else this.eventRegistry.forEach((function(e,n){e.includes(t)&&i.push(n)}));var c=o.concat(i);this._saveSurveysToStorage(c)}},{key:"getSurveys",value:function(){var e;return(null===(e=this.persistence)||void 0===e?void 0:e.props[Gb])||[]}},{key:"getEventRegistry",value:function(){return this.eventRegistry}},{key:"_saveSurveysToStorage",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.register(Ev({},Gb,Iv(new Set(e))))}}]),e}();Ev(Tk,"SURVEY_SHOWN_EVENT_NAME","survey shown");var Ek,Pk,Ik,Ok,Lk,Rk,jk,Dk,Ak={},Nk=[],Fk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,zk=Array.isArray;function Bk(e,t){for(var n in t)e[n]=t[n];return e}function Uk(e){var t=e.parentNode;t&&t.removeChild(e)}function $k(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++Ik:i,__i:-1,__u:0};return null==i&&null!=Pk.vnode&&Pk.vnode(o),o}function Vk(e){return e.children}function qk(e,t){this.props=e,this.context=t}function Zk(e,t){if(null==t)return e.__?Zk(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Zk(e):null}function Hk(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Hk(e)}}function Gk(e){(!e.__d&&(e.__d=!0)&&Ok.push(e)&&!Wk.__r++||Lk!==Pk.debounceRendering)&&((Lk=Pk.debounceRendering)||Rk)(Wk)}function Wk(){var e,t,n,r,i,o,a,s,l;for(Ok.sort(jk);e=Ok.shift();)e.__d&&(t=Ok.length,r=void 0,o=(i=(n=e).__v).__e,s=[],l=[],(a=n.__P)&&((r=Bk({},i)).__v=i.__v+1,Pk.vnode&&Pk.vnode(r),nC(a,r,i,n.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,s,null==o?Zk(i):o,!!(32&i.__u),l),r.__.__k[r.__i]=r,rC(s,r,l),r.__e!=o&&Hk(r)),Ok.length>t&&Ok.sort(jk));Wk.__r=0}function Yk(e,t,n,r,i,o,a,s,l,c,u){var d,p,h,f,m,g=r&&r.__k||Nk,y=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?$k(null,i,null,null,i):zk(i)?$k(Vk,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?$k(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=Xk(i,n,a=r+d,u),i.__i=s,o=null,-1!==s&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(i.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=Zk(o)),oC(o,o,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(o=n[r])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Zk(o)),oC(o,o))}(n,t,g),l=n.__d,d=0;d<y;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?Ak:g[h.__i]||Ak,h.__i=d,nC(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&iC(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?l=Kk(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=m}function Kk(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Kk(r[i],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Xk(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Jk(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Fk.test(t)?n:n+"px"}function Qk(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Jk(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Jk(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?tC:eC,o)):e.removeEventListener(t,o?tC:eC,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function eC(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(Pk.event?Pk.event(e):e)}function tC(e){return this.l[e.type+!0](Pk.event?Pk.event(e):e)}function nC(e,t,n,r,i,o,a,s,l,c){var u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=Pk.__b)&&u(t);e:if("function"==typeof S)try{if(y=t.props,v=(u=S.contextType)&&r[u.__c],b=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(y,b):(t.__c=d=new qk(y,b),d.constructor=S,d.render=aC),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Bk({},d.__s)),Bk(d.__s,S.getDerivedStateFromProps(y,d.__s))),h=d.props,f=d.state,d.__v=t,p)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,m)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,w=Pk.__r,x=0,"prototype"in S&&S.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(r=Bk(Bk({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),Yk(e,zk(C=null!=u&&u.type===Vk&&null==u.key?u.props.children:u)?C:[C],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),Pk.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,p,h,f,m,g=n.props,y=t.props,v=t.type;if("svg"===v&&(i=!0),null!=o)for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!v&&(v?h.localName===v:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),o=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(o=o&&Ek.call(e.childNodes),g=n.props||Ak,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=h:"key"===c||c in y||Qk(e,c,null,h,i));for(c in y)h=y[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?m=h:"key"===c||s&&"function"!=typeof h||g[c]===h||Qk(e,c,h,g[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Yk(e,zk(p)?p:[p],t,n,r,i&&"foreignObject"!==v,o,a,o?o[0]:n.__k&&Zk(n,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&Uk(o[c]);s||(c="value",void 0!==f&&(f!==e[c]||"progress"===v&&!f||"option"===v&&f!==g[c])&&Qk(e,c,f,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&Qk(e,c,m,g[c],!1))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=Pk.diffed)&&u(t)}function rC(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)iC(n[r],n[++r],n[++r]);Pk.__c&&Pk.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Pk.__e(e,t.__v)}}))}function iC(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Pk.__e(e,n)}}function oC(e,t,n){var r,i;if(Pk.unmount&&Pk.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||iC(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Pk.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&oC(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||Uk(e.__e),e.__=e.__e=e.__d=void 0}function aC(e,t,n){return this.constructor(e,n)}Ek=Nk.slice,Pk={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},Ik=0,qk.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Bk({},this.state),"function"==typeof e&&(e=e(Bk({},n),this.props)),e&&Bk(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Gk(this))},qk.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gk(this))},qk.prototype.render=Vk,Ok=[],Rk="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,jk=function(e,t){return e.__v.__b-t.__v.__b},Wk.__r=0,Dk=0;var sC=function(e){var t,n,r,i,o,a;return null!=(null===(t=e.conditions)||void 0===t||null===(n=t.events)||void 0===n||null===(r=n.values)||void 0===r?void 0:r.length)&&(null===(i=e.conditions)||void 0===i||null===(o=i.events)||void 0===o||null===(a=o.values)||void 0===a?void 0:a.length)>0};!function(e,t){var n={__c:t="__cC"+Dk++,__:{isPreviewMode:!1,previewPageIndex:0,handleCloseSurveyPopup:function(){}},Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,Gk(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};n.Provider.__=n.Consumer.contextType=n}();var lC={icontains:function(e){return!!Xv&&Xv.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},not_icontains:function(e){return!!Xv&&-1===Xv.location.href.toLowerCase().indexOf(e.toLowerCase())},regex:function(e){return!!Xv&&O_(Xv.location.href,e)},not_regex:function(e){return!!Xv&&!O_(Xv.location.href,e)},exact:function(e){return(null==Xv?void 0:Xv.location.href)===e},is_not:function(e){return(null==Xv?void 0:Xv.location.href)!==e}},cC=function(){function e(t){Sv(this,e),this.instance=t,this._surveyEventReceiver=null}return Tv(e,[{key:"afterDecideResponse",value:function(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}},{key:"loadIfEnabled",value:function(){var e=this,t=null==cb?void 0:cb.extendPostHogWithSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||t||(null==this._surveyEventReceiver&&(this._surveyEventReceiver=new Tk(this.instance.persistence)),this.instance.requestRouter.loadScript("/static/surveys.js",(function(t){if(t)return db.error("Could not load surveys script",t);cb.extendPostHogWithSurveys(e.instance)})))}},{key:"getSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);null==this._surveyEventReceiver&&(this._surveyEventReceiver=new Tk(this.instance.persistence));var r=this.instance.get_property(Hb);if(r&&!n)return e(r);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(n){var r;if(200!==n.statusCode||!n.json)return e([]);var i,o=n.json.surveys||[],a=o.filter((function(e){var t,n,r,i,o,a;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(r=n.events)||void 0===r?void 0:r.values)&&(null===(i=e.conditions)||void 0===i||null===(o=i.events)||void 0===o||null===(a=o.values)||void 0===a?void 0:a.length)>0}));a.length>0&&!Vv(t.instance._addCaptureHook)&&(null===(i=t._surveyEventReceiver)||void 0===i||i.register(a),t.instance._addCaptureHook((function(e,n){var r;null===(r=t._surveyEventReceiver)||void 0===r||r.on(e,n)})));return null===(r=t.instance.persistence)||void 0===r||r.register(Ev({},Hb,o)),e(o)}})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys((function(n){var r,i=n.filter((function(e){return!(!e.start_date||e.end_date)})).filter((function(e){var t,n,r,i;if(!e.conditions)return!0;var o=null===(t=e.conditions)||void 0===t||!t.url||lC[null!==(n=null===(r=e.conditions)||void 0===r?void 0:r.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),a=null===(i=e.conditions)||void 0===i||!i.selector||(null==rb?void 0:rb.querySelector(e.conditions.selector));return o&&a})),o=null===(r=t._surveyEventReceiver)||void 0===r?void 0:r.getSurveys(),a=i.filter((function(e){if(!e.linked_flag_key&&!e.targeting_flag_key&&!e.internal_targeting_flag_key)return!0;var n=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),r=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),i=!sC(e)||(null==o?void 0:o.includes(e.id)),a=function(e){var t,n;return!(null===(t=e.conditions)||void 0===t||null===(n=t.events)||void 0===n||!n.repeatedActivation||!sC(e))}(e),s=!(e.internal_targeting_flag_key&&!a)||t.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key);return n&&r&&s&&i}));return e(a)}),n)}},{key:"getNextSurveyStep",value:function(e,t,n){var r,i=e.questions[t],o=t+1;if(null===(r=i.branching)||void 0===r||!r.type)return t===e.questions.length-1?Ck.End:o;if(i.branching.type===Ck.End)return Ck.End;if(i.branching.type===Ck.SpecificQuestion){if(Number.isInteger(i.branching.index))return i.branching.index}else if(i.branching.type===Ck.ResponseBased){if(i.type===kk.SingleChoice){var a,s,l=i.choices.indexOf("".concat(n));if(null!==(a=i.branching)&&void 0!==a&&null!==(s=a.responseValues)&&void 0!==s&&s.hasOwnProperty(l)){var c=i.branching.responseValues[l];return Number.isInteger(c)?c:c===Ck.End?Ck.End:o}}else if(i.type===kk.Rating){var u,d;if("number"!=typeof n||!Number.isInteger(n))throw new Error("The response type must be an integer");var p=function(e,t){if(3===t){if(e<1||e>3)throw new Error("The response must be in range 1-3");return 1===e?"negative":2===e?"neutral":"positive"}if(5===t){if(e<1||e>5)throw new Error("The response must be in range 1-5");return e<=2?"negative":3===e?"neutral":"positive"}if(10===t){if(e<0||e>10)throw new Error("The response must be in range 0-10");return e<=6?"detractors":e<=8?"passives":"promoters"}throw new Error("The scale must be one of: 3, 5, 10")}(n,i.scale);if(null!==(u=i.branching)&&void 0!==u&&null!==(d=u.responseValues)&&void 0!==d&&d.hasOwnProperty(p)){var h=i.branching.responseValues[p];return Number.isInteger(h)?h:h===Ck.End?Ck.End:o}}return o}return console.warn("Falling back to next question index due to unexpected branching type"),o}}]),e}(),uC=function(){function e(t){var n,r,i=this;Sv(this,e),Ev(this,"serverLimits",{}),Ev(this,"lastEventRateLimited",!1),Ev(this,"checkForLimiting",(function(e){var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach((function(e){db.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),i.serverLimits[e]=(new Date).getTime()+6e4}))}catch(e){return void db.warn('[RateLimiter] could not rate limit - continuing. Error: "'.concat(null==e?void 0:e.message,'"'),{text:t})}})),this.instance=t,this.captureEventsPerSecond=(null===(n=t.config.rate_limiting)||void 0===n?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(r=t.config.rate_limiting)||void 0===r?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}return Tv(e,[{key:"clientRateLimitContext",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(new Date).getTime(),o=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(Xb))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||r||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||r||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to ".concat(this.captureEventsPerSecond," events per second and ").concat(this.captureEventsBurstLimit," events burst limit.")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,null===(n=this.instance.persistence)||void 0===n||n.set_property(Xb,o),{isRateLimited:a,remainingTokens:o.tokens}}},{key:"isServerRateLimited",value:function(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),dC=function(){return kv({initialPathName:(null==ib?void 0:ib.pathname)||"",referringDomain:Iw.referringDomain()},Iw.campaignParams())},pC=function(){function e(t,n,r){var i=this;Sv(this,e),Ev(this,"_onSessionIdCallback",(function(e){var t=i._getStoredProps();if(!t||t.sessionId!==e){var n={sessionId:e,props:i._sessionSourceParamGenerator()};i._persistence.register(Ev({},Kb,n))}})),this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=r||dC,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return Tv(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[Kb]}},{key:"getSessionProps",value:function(){var e,t=null===(e=this._getStoredProps())||void 0===e?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}]),e}(),hC=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],fC=function(e,t){if(!e)return!1;var n=e.toLowerCase();return hC.concat(t||[]).some((function(e){var t=e.toLowerCase();return-1!==n.indexOf(t)}))},mC=function(){function e(){Sv(this,e),this.clicks=[]}return Tv(e,[{key:"isRageClick",value:function(e,t,n){var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}();function gC(e){var t;return e.id===n_||!(null===(t=e.closest)||void 0===t||!t.call(e,"#"+n_))}var yC=function(){function e(t){var n;Sv(this,e),Ev(this,"rageclicks",new mC),Ev(this,"_enabledServerSide",!1),Ev(this,"_initialized",!1),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[Ob])}return Tv(e,[{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(db.info("[heatmaps] Heatmaps enabled, starting..."),this._setupListeners())}},{key:"isEnabled",get:function(){return Vv(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps}},{key:"afterDecideResponse",value:function(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register(Ev({},Ob,t)),this._enabledServerSide=t,this.startIfEnabled()}},{key:"getAndClearBuffer",value:function(){var e=this.buffer;return this.buffer=void 0,e}},{key:"_setupListeners",value:function(){var e=this;Xv&&rb&&(Sb(rb,"click",(function(t){return e._onClick(t||(null==Xv?void 0:Xv.event))}),!1,!0),Sb(rb,"mousemove",(function(t){return e._onMouseMove(t||(null==Xv?void 0:Xv.event))}),!1,!0),this._initialized=!0)}},{key:"_getProperties",value:function(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(e,t,n){for(var r=e;r&&!$w(r,"body");){if(r===n)return!1;if(yb(t,null==Xv?void 0:Xv.getComputedStyle(r).position))return!0;r=Hw(r)}return!1}(e.target,["fixed","sticky"],i);return{x:e.clientX+(o?0:r),y:e.clientY+(o?0:n),target_fixed:o,type:t}}},{key:"_onClick",value:function(e){var t;if(!gC(e.target)){var n=this._getProperties(e,"click");null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._capture(kv(kv({},n),{},{type:"rageclick"})),this._capture(n)}}},{key:"_onMouseMove",value:function(e){var t=this;gC(e.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout((function(){t._capture(t._getProperties(e,"mousemove"))}),500))}},{key:"_capture",value:function(e){if(Xv){var t=Xv.location.href;this.buffer=this.buffer||{},this.buffer[t]||(this.buffer[t]=[]),this.buffer[t].push(e)}}}]),e}(),vC=function(){function e(t){var n=this;Sv(this,e),Ev(this,"_updateScrollData",(function(){var e,t,r,i;n.context||(n.context={});var o=n.scrollElement(),a=n.scrollY(),s=o?Math.max(0,o.scrollHeight-o.clientHeight):0,l=a+((null==o?void 0:o.clientHeight)||0),c=(null==o?void 0:o.scrollHeight)||0;n.context.lastScrollY=Math.ceil(a),n.context.maxScrollY=Math.max(a,null!==(e=n.context.maxScrollY)&&void 0!==e?e:0),n.context.maxScrollHeight=Math.max(s,null!==(t=n.context.maxScrollHeight)&&void 0!==t?t:0),n.context.lastContentY=l,n.context.maxContentY=Math.max(l,null!==(r=n.context.maxContentY)&&void 0!==r?r:0),n.context.maxContentHeight=Math.max(c,null!==(i=n.context.maxContentHeight)&&void 0!==i?i:0)})),this.instance=t}return Tv(e,[{key:"getContext",value:function(){return this.context}},{key:"resetContext",value:function(){var e=this.context;return setTimeout(this._updateScrollData,0),e}},{key:"startMeasuringScrollPosition",value:function(){null==Xv||Xv.addEventListener("scroll",this._updateScrollData,!0),null==Xv||Xv.addEventListener("scrollend",this._updateScrollData,!0),null==Xv||Xv.addEventListener("resize",this._updateScrollData)}},{key:"scrollElement",value:function(){if(!this.instance.config.scroll_root_selector)return null==Xv?void 0:Xv.document.documentElement;var e,t=Rv(zv(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=null==Xv?void 0:Xv.document.querySelector(n);if(r)return r}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollY",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return Xv&&(Xv.scrollY||Xv.pageYOffset||Xv.document.documentElement.scrollTop)||0}},{key:"scrollX",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return Xv&&(Xv.scrollX||Xv.pageXOffset||Xv.document.documentElement.scrollLeft)||0}}]),e}(),bC=function(){function e(){Sv(this,e),Ev(this,"events",{}),this.events={}}return Tv(e,[{key:"on",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter((function(e){return e!==t}))}}},{key:"emit",value:function(e,t){var n,r=Rv(this.events[e]||[]);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t)}catch(e){r.e(e)}finally{r.f()}var i,o=Rv(this.events["*"]||[]);try{for(o.s();!(i=o.n()).done;)(0,i.value)(e,t)}catch(e){o.e(e)}finally{o.f()}}}]),e}(),_C="$copy_autocapture";function wC(e,t){return t.length>e?t.slice(0,e)+"...":t}var xC,kC=function(){function e(t){Sv(this,e),Ev(this,"_initialized",!1),Ev(this,"_isDisabledServerSide",null),Ev(this,"rageclicks",new mC),Ev(this,"_elementsChainAsString",!1),this.instance=t}return Tv(e,[{key:"config",get:function(){var e,t=Uv(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=null===(e=t.url_allowlist)||void 0===e?void 0:e.map((function(e){return new RegExp(e)})),t}},{key:"_addDomEventHandlers",value:function(){var e=this;if(this.isBrowserSupported()){if(Xv&&rb){var t=function(t){t=t||(null==Xv?void 0:Xv.event);try{e._captureEvent(t)}catch(e){db.error("Failed to capture event",e)}},n=function(t){t=t||(null==Xv?void 0:Xv.event),e._captureEvent(t,_C)};Sb(rb,"submit",t,!1,!0),Sb(rb,"change",t,!1,!0),Sb(rb,"click",t,!1,!0),this.config.capture_copied_text&&(Sb(rb,"copy",n,!1,!0),Sb(rb,"cut",n,!1,!0))}}else db.info("Disabling Automatic Event Collection because this browser is not supported")}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}},{key:"afterDecideResponse",value:function(e){e.elementsChainAsString&&(this._elementsChainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register(Ev({},Ib,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}},{key:"isEnabled",get:function(){var e,t,n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[Ib],r=this._isDisabledServerSide;if(Hv(r)&&!Yv(n)&&!this.instance.config.advanced_disable_decide)return!1;var i=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}},{key:"_previousElementSibling",value:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Uw(t));return t}},{key:"_getAugmentPropertiesFromElement",value:function(e){if(!Gw(e))return{};var t={};return mb(e.attributes,(function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&tx(r)&&(t[n]=r)}})),t}},{key:"_getPropertiesFromElement",value:function(e,t,n){var r,i=e.tagName.toLowerCase(),o={tag_name:i};Zw.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=wC(1024,nx(e)):o.$el_text=wC(1024,Bw(e)));var a=Fw(e);a.length>0&&(o.classes=a.filter((function(e){return""!==e})));var s=null===(r=this.config)||void 0===r?void 0:r.element_attribute_ignorelist;mb(e.attributes,(function(n){var r;if((!Ww(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==s||!s.includes(n.name))&&!t&&tx(n.value)&&(r=n.name,!qv(r)||"_ngcontent"!==r.substring(0,10)&&"_nghost"!==r.substring(0,7))){var i=n.value;"class"===n.name&&(i=Nw(i).join(" ")),o["attr__"+n.name]=wC(1024,i)}}));for(var l=1,c=1,u=e;u=this._previousElementSibling(u);)l++,u.tagName===e.tagName&&c++;return o.nth_child=l,o.nth_of_type=c,o}},{key:"_getDefaultProperties",value:function(e){return{$event_type:e,$ce_version:1}}},{key:"_getEventTarget",value:function(e){return Vv(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}},{key:"_captureEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(this.isEnabled){var r,i=this._getEventTarget(e);Vw(i)&&(i=i.parentNode||null),"$autocapture"===n&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!==(r=this.rageclicks)&&void 0!==r&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,"$rageclick");var o=n===_C;if(i&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!Xv||!e||$w(e,"html")||!Uw(e))return!1;if(null!=n&&n.url_allowlist){var o=Xv.location.href,a=n.url_allowlist;if(a&&!a.some((function(e){return o.match(e)})))return!1}if(null!=n&&n.dom_event_allowlist){var s=n.dom_event_allowlist;if(s&&!s.some((function(e){return t.type===e})))return!1}for(var l=!1,c=[e],u=!0,d=e;d.parentNode&&!$w(d,"body");)if(qw(d.parentNode))c.push(d.parentNode.host),d=d.parentNode.host;else{if(!(u=Hw(d)))break;if(r||Zw.indexOf(u.tagName.toLowerCase())>-1)l=!0;else{var p=Xv.getComputedStyle(u);p&&"pointer"===p.getPropertyValue("cursor")&&(l=!0)}c.push(u),d=u}if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(Vv(n))return!0;var r,i=Rv(e);try{var o=function(){var e=r.value;if(n.some((function(t){return e.tagName.toLowerCase()===t})))return{v:!0}};for(i.s();!(r=i.n()).done;){var a=o();if("object"===Cv(a))return a.v}}catch(e){i.e(e)}finally{i.f()}return!1}(c,n))return!1;if(!function(e,t){var n=null==t?void 0:t.css_selector_allowlist;if(Vv(n))return!0;var r,i=Rv(e);try{var o=function(){var e=r.value;if(n.some((function(t){return e.matches(t)})))return{v:!0}};for(i.s();!(r=i.n()).done;){var a=o();if("object"===Cv(a))return a.v}}catch(e){i.e(e)}finally{i.f()}return!1}(c,n))return!1;var h=Xv.getComputedStyle(e);if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return l?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Zw.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(i,e,this.config,o,o?["copy","cut"]:void 0)){for(var a,s,l=[i],c=i;c.parentNode&&!$w(c,"body");)qw(c.parentNode)?(l.push(c.parentNode.host),c=c.parentNode.host):(l.push(c.parentNode),c=c.parentNode);var u,d,p=[],h={},f=!1;if(mb(l,(function(e){var n=Gw(e);"a"===e.tagName.toLowerCase()&&(u=e.getAttribute("href"),u=n&&tx(u)&&u),yb(Fw(e),"ph-no-capture")&&(f=!0),p.push(t._getPropertiesFromElement(e,t.instance.config.mask_all_element_attributes,t.instance.config.mask_all_text));var r=t._getAugmentPropertiesFromElement(e);gb(h,r)})),this.instance.config.mask_all_text||("a"===i.tagName.toLowerCase()||"button"===i.tagName.toLowerCase()?p[0].$el_text=nx(i):p[0].$el_text=Bw(i)),u){var m,g;p[0].attr__href=u;var y=null===(m=I_(u))||void 0===m?void 0:m.host,v=null==Xv||null===(g=Xv.location)||void 0===g?void 0:g.host;y&&v&&y!==v&&(d=u)}if(f)return!1;var b=gb(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:ix(p)}:{$elements:p},null!==(a=p[0])&&void 0!==a&&a.$el_text?{$el_text:null===(s=p[0])||void 0===s?void 0:s.$el_text}:{},d&&"click"===e.type?{$external_click_url:d}:{},h);if(n===_C){var _,w=zw(null==Xv||null===(_=Xv.getSelection())||void 0===_?void 0:_.toString()),x=e.type||"clipboard";if(!w)return!1;b.$selected_content=w,b.$copy_type=x}return this.instance.capture(n,b),!0}}}},{key:"isBrowserSupported",value:function(){return Bv(null==rb?void 0:rb.querySelectorAll)}}]),e}(),CC=function(){function e(t){var n=this;Sv(this,e),Ev(this,"_restoreXHRPatch",void 0),Ev(this,"_restoreFetchPatch",void 0),Ev(this,"_startCapturing",(function(){Vv(n._restoreXHRPatch)&&cb.postHogTracingHeadersPatchFns._patchXHR(n.instance.sessionManager),Vv(n._restoreFetchPatch)&&cb.postHogTracingHeadersPatchFns._patchFetch(n.instance.sessionManager)})),this.instance=t}return Tv(e,[{key:"_loadScript",value:function(e){cb.postHogTracingHeadersPatchFns&&e(),this.instance.requestRouter.loadScript("/static/tracing-headers.js?v=".concat(jv.LIB_VERSION),(function(t){t&&db.error("[TRACING-HEADERS] failed to load script",t),e()}))}},{key:"startIfEnabledOrStop",value:function(){var e,t;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):(null===(e=this._restoreXHRPatch)||void 0===e||e.call(this),null===(t=this._restoreFetchPatch)||void 0===t||t.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}}]),e}();!function(e){e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED"}(xC||(xC={}));var SC=function(){function e(t){Sv(this,e),this.instance=t}return Tv(e,[{key:"config",get:function(){return this.instance.config}},{key:"consent",get:function(){return this.getDnt()?xC.DENIED:this.storedConsent}},{key:"isOptedOut",value:function(){return this.consent===xC.DENIED||this.consent===xC.PENDING&&this.config.opt_out_capturing_by_default}},{key:"isOptedIn",value:function(){return!this.isOptedOut()}},{key:"optInOut",value:function(e){this.storage.set(this.storageKey,e?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}},{key:"reset",value:function(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}},{key:"storageKey",get:function(){var e=this.instance.config,t=e.token;return(e.opt_out_capturing_cookie_prefix||"__ph_opt_in_out_")+t}},{key:"storedConsent",get:function(){var e=this.storage.get(this.storageKey);return"1"===e?xC.GRANTED:"0"===e?xC.DENIED:xC.PENDING}},{key:"storage",get:function(){if(!this._storage){var e=this.config.opt_out_capturing_persistence_type;this._storage="localStorage"===e?x_:__;var t="localStorage"===e?__:x_;t.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut("1"===t.get(this.storageKey)),t.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}},{key:"getDnt",value:function(){return!!this.config.respect_dnt&&!!Mb([null==nb?void 0:nb.doNotTrack,null==nb?void 0:nb.msDoNotTrack,cb.doNotTrack],(function(e){return yb([!0,1,"1","yes"],e)}))}}]),e}(),MC="[Exception Capture]",TC=function(){function e(t){var n,r=this;Sv(this,e),Ev(this,"_endpoint","/e/"),Ev(this,"originalOnUnhandledRejectionHandler",void 0),Ev(this,"startCapturing",(function(){var e;if(Xv&&r.isEnabled&&!r.hasHandlers&&(null===(e=Xv.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)){var t=Xv.posthogErrorWrappingFunctions.wrapOnError,n=Xv.posthogErrorWrappingFunctions.wrapUnhandledRejection;if(t&&n)try{r.unwrapOnError=t(r.captureException.bind(r)),r.unwrapUnhandledRejection=n(r.captureException.bind(r))}catch(e){db.error(MC+" failed to start",e),r.stopCapturing()}else db.error(MC+" failed to load error wrapping functions - cannot start")}})),this.instance=t,this.remoteEnabled=!(null===(n=this.instance.persistence)||void 0===n||!n.props[Lb]),this.startIfEnabled()}return Tv(e,[{key:"isEnabled",get:function(){var e;return null!==(e=this.remoteEnabled)&&void 0!==e&&e}},{key:"isCapturing",get:function(){var e;return!(null==Xv||null===(e=Xv.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)}},{key:"hasHandlers",get:function(){return this.originalOnUnhandledRejectionHandler||this.unwrapOnError}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this.isCapturing&&(db.info(MC+" enabled, starting..."),this.loadScript(this.startCapturing))}},{key:"loadScript",value:function(e){this.hasHandlers&&e(),this.instance.requestRouter.loadScript(this.instance.requestRouter.endpointFor("assets","/static/exception-autocapture.js?v=".concat(jv.LIB_VERSION)),(function(t){t&&db.error(MC+" failed to load script",t),e()}))}},{key:"stopCapturing",value:function(){var e,t;null===(e=this.unwrapOnError)||void 0===e||e.call(this),null===(t=this.unwrapUnhandledRejection)||void 0===t||t.call(this)}},{key:"afterDecideResponse",value:function(e){var t=e.autocaptureExceptions;this.remoteEnabled=!!t||!1,this._endpoint=Uv(t)&&t.endpoint||"/e/",this.instance.persistence&&(this.instance.persistence.register(Ev({},Lb,this.remoteEnabled)),this.instance.persistence.register(Ev({},"$exception_capture_endpoint",this._endpoint))),this.startIfEnabled()}},{key:"captureException",value:function(e){var t=this.instance.requestRouter.endpointFor("ui");e.$exception_personURL="".concat(t,"/project/").concat(this.instance.config.token,"/person/").concat(this.instance.get_distinct_id()),this.sendExceptionEvent(e)}},{key:"sendExceptionEvent",value:function(e){this.instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent",_noHeatmaps:!0,_url:this._endpoint})}}]),e}(),EC="[Web Vitals]",PC=function(){function e(t){var n,r=this;Sv(this,e),Ev(this,"_enabledServerSide",!1),Ev(this,"_initialized",!1),Ev(this,"buffer",{url:void 0,metrics:[],firstMetricTimestamp:void 0}),Ev(this,"_flushToCapture",(function(){clearTimeout(r._delayedFlushTimer),0!==r.buffer.metrics.length&&(r.instance.capture("$web_vitals",r.buffer.metrics.reduce((function(e,t){var n;return kv(kv({},e),{},(Ev(n={},"$web_vitals_".concat(t.name,"_event"),kv({},t)),Ev(n,"$web_vitals_".concat(t.name,"_value"),t.value),n))}),{})),r.buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})})),Ev(this,"_addToBuffer",(function(e){var t,n=null===(t=r.instance.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0);if(Vv(n))db.error(EC+"Could not read session ID. Dropping metrics!");else{r.buffer=r.buffer||{};var i=r._currentURL();Vv(i)||(Gv(null==e?void 0:e.name)||Gv(null==e?void 0:e.value)?db.error(EC+"Invalid metric received",e):(r.buffer.url!==i&&(r._flushToCapture(),r._delayedFlushTimer=setTimeout(r._flushToCapture,8e3)),Vv(r.buffer.url)&&(r.buffer.url=i),r.buffer.firstMetricTimestamp=Vv(r.buffer.firstMetricTimestamp)?Date.now():r.buffer.firstMetricTimestamp,r.buffer.metrics.push(kv(kv({},e),{},{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),4===r.buffer.metrics.length&&r._flushToCapture()))}})),Ev(this,"_startCapturing",(function(){var e=cb.postHogWebVitalsCallbacks,t=e.onLCP,n=e.onCLS,i=e.onFCP,o=e.onINP;t(r._addToBuffer),n(r._addToBuffer),i(r._addToBuffer),o(r._addToBuffer),r._initialized=!0})),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[Rb]),this.startIfEnabled()}return Tv(e,[{key:"isEnabled",get:function(){var e=Uv(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals:void 0;return Yv(e)?e:this._enabledServerSide}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(db.info(EC+" enabled, starting..."),this.loadScript(this._startCapturing))}},{key:"afterDecideResponse",value:function(e){var t=Uv(e.capturePerformance)&&!!e.capturePerformance.web_vitals;this.instance.persistence&&this.instance.persistence.register(Ev({},Rb,t)),this._enabledServerSide=t,this.startIfEnabled()}},{key:"loadScript",value:function(e){Xv.postHogWebVitalsCallbacks&&e(),this.instance.requestRouter.loadScript(this.instance.requestRouter.endpointFor("assets","/static/web-vitals.js?v=".concat(jv.LIB_VERSION)),(function(t){t&&db.error(EC+" failed to load script",t),e()}))}},{key:"_currentURL",value:function(){var e=Xv?Xv.location.href:void 0;return e||db.error(EC+"Could not determine current URL"),e}}]),e}(),IC={},OC=function(){},LC="posthog",RC=!ak&&-1===(null==lb?void 0:lb.indexOf("MSIE"))&&-1===(null==lb?void 0:lb.indexOf("Mozilla")),jC=function(){var e,t,n;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(t=null==rb?void 0:rb.location,n=null==t?void 0:t.hostname,!!qv(n)&&"herokuapp.com"!==n.split(".").slice(-2).join(".")),persistence:"localStorage+cookie",persistence_name:"",loaded:OC,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:ib&&qv(null==ib?void 0:ib.search)&&-1!==ib.search.indexOf("__posthog_debug=true")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==Xv||null===(e=Xv.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t="Bad HTTP status: "+e.statusCode+" "+e.text;db.error(t)},get_device_id:function(e){return e},_onCapture:OC,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"always",__add_tracing_headers:!1}},DC=function(e){var t={};Vv(e.process_person)||(t.person_profiles=e.process_person),Vv(e.xhr_headers)||(t.request_headers=e.xhr_headers),Vv(e.cookie_name)||(t.persistence_name=e.cookie_name),Vv(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);var n=gb({},t,e);return zv(e.property_blacklist)&&(Vv(e.property_denylist)?n.property_denylist=e.property_blacklist:zv(e.property_denylist)?n.property_denylist=[].concat(Iv(e.property_blacklist),Iv(e.property_denylist)):db.error("Invalid value for property_denylist config: "+e.property_denylist)),n},AC=function(){function e(){Sv(this,e),Ev(this,"__forceAllowLocalhost",!1)}return Tv(e,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){db.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),e}(),NC=function(){function e(){var t=this;Sv(this,e),Ev(this,"webPerformance",new AC),Ev(this,"_internalEventEmitter",new bC),this.config=jC(),this.decideEndpointWasHit=!1,this.SentryIntegration=wk,this.sentryIntegration=function(e){return function(e,t){var n=_k(e,t);return{name:bk,processEvent:function(e){return n(e)}}}(t,e)},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.featureFlags=new l_(this),this.toolbar=new Cx(this),this.scrollManager=new vC(this),this.pageViewManager=new Sk(this),this.surveys=new cC(this),this.rateLimiter=new uC(this),this.requestRouter=new vk(this),this.consent=new SC(this),this.people={set:function(e,n,r){var i=qv(e)?Ev({},e,n):e;t.setPersonProperties(i),null==r||r({})},set_once:function(e,n,r){var i=qv(e)?Ev({},e,n):e;t.setPersonProperties(void 0,i),null==r||r({})}},this.on("eventCaptured",(function(e){return db.info("send",e)}))}return Tv(e,[{key:"init",value:function(t,n,r){if(r&&r!==LC){var i,o=null!==(i=IC[r])&&void 0!==i?i:new e;return o._init(t,n,r),IC[r]=o,IC[LC][r]=o,o}return this._init(t,n,r)}},{key:"_init",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(Vv(e)||Zv(e))return db.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return db.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;if(this.__loaded=!0,this.config={},this._triggered_notifs=[],this.set_config(gb({},jC(),DC(i),{name:o,token:e})),this.compression=i.disable_compression?void 0:Cb.Base64,this.persistence=new Lw(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new Lw(kv(kv({},this.config),{},{persistence:"sessionStorage"})),this._requestQueue=new Sx((function(e){return r._send_retriable_request(e)})),this._retryQueue=new fk(this),this.__request_queue=[],this.sessionManager=new gk(this.config,this.persistence),this.sessionPropsManager=new pC(this.sessionManager,this.persistence),new CC(this).startIfEnabledOrStop(),this.sessionRecording=new _x(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new kC(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new yC(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new PC(this),this.exceptionObserver=new TC(this),this.exceptionObserver.startIfEnabled(),jv.DEBUG=jv.DEBUG||this.config.debug,this._sync_opt_out_with_persistence(),void 0!==(null===(t=i.bootstrap)||void 0===t?void 0:t.distinctID)){var a,s,l=this.config.get_device_id(m_()),c=null!==(a=i.bootstrap)&&void 0!==a&&a.isIdentifiedID?l:i.bootstrap.distinctID;this.persistence.set_property(Yb,null!==(s=i.bootstrap)&&void 0!==s&&s.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:i.bootstrap.distinctID,$device_id:c})}if(this._hasBootstrappedFeatureFlags()){var u,d,p=Object.keys((null===(u=i.bootstrap)||void 0===u?void 0:u.featureFlags)||{}).filter((function(e){var t,n;return!(null===(t=i.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])})).reduce((function(e,t){var n,r;return e[t]=(null===(n=i.bootstrap)||void 0===n||null===(r=n.featureFlags)||void 0===r?void 0:r[t])||!1,e}),{}),h=Object.keys((null===(d=i.bootstrap)||void 0===d?void 0:d.featureFlagPayloads)||{}).filter((function(e){return p[e]})).reduce((function(e,t){var n,r,o,a;return null!==(n=i.bootstrap)&&void 0!==n&&null!==(r=n.featureFlagPayloads)&&void 0!==r&&r[t]&&(e[t]=null===(o=i.bootstrap)||void 0===o||null===(a=o.featureFlagPayloads)||void 0===a?void 0:a[t]),e}),{});this.featureFlags.receivedFeatureFlags({featureFlags:p,featureFlagPayloads:h})}if(!this.get_distinct_id()){var f=this.config.get_device_id(m_());this.register_once({distinct_id:f,$device_id:f},""),this.persistence.set_property(Yb,"anonymous")}return null==Xv||null===(n=Xv.addEventListener)||void 0===n||n.call(Xv,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),i.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var r=function(n){var r=function(){return n.anonymousId()||m_()};e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(Yb,"identified")),t()},i=n.user();"then"in i&&Bv(i.then)?i.then((function(e){return r(e)})):r(i)}(e,(function(){n.register(function(e){Promise&&Promise.resolve||db.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(t,n){var r;if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(n,null!==(r=t.event.properties)&&void 0!==r?r:{});return t.event.properties=Object.assign({},i,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,"$pageview")},identify:function(e){return t(e,"$identify")},screen:function(e){return t(e,"$screen")}}}(e)).then((function(){t()}))}))}(this,(function(){return r._loaded()})):this._loaded(),Bv(this.config._onCapture)&&this.on("eventCaptured",(function(e){return r.config._onCapture(e.event,e)})),this}},{key:"_afterDecideResponse",value:function(e){var t,n,r,i,o,a,s;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=yb(e.supportedCompression,Cb.GZipJS)?Cb.GZipJS:yb(e.supportedCompression,Cb.Base64)?Cb.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(r=this.autocapture)||void 0===r||r.afterDecideResponse(e),null===(i=this.heatmaps)||void 0===i||i.afterDecideResponse(e),null===(o=this.surveys)||void 0===o||o.afterDecideResponse(e),null===(a=this.webVitalsAutocapture)||void 0===a||a.afterDecideResponse(e),null===(s=this.exceptionObserver)||void 0===s||s.afterDecideResponse(e)}},{key:"_loaded",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){db.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout((function(){rb&&e.capture("$pageview",{title:rb.title},{send_instantly:!0})}),1),t||(new wx(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||fb(this.__request_queue,(function(t){return e._send_retriable_request(t)})),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_handle_unload",value:function(){var e,t;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_send_request",value:function(e){var t=this;this.__loaded&&(RC?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=lk(e.url,{ip:this.config.ip?1:0}),e.headers=this.config.request_headers,e.compression="best-available"===e.compression?this.compression:e.compression,function(e){var t,n,r,i=kv({},e);i.timeout=i.timeout||6e4,i.url=lk(i.url,{_:(new Date).getTime().toString(),ver:jv.LIB_VERSION,compression:i.compression});var o=null!==(t=i.transport)&&void 0!==t?t:"XHR",a=null!==(n=null===(r=Mb(dk,(function(e){return e.transport===o})))||void 0===r?void 0:r.method)&&void 0!==n?n:dk[0].method;if(!a)throw new Error("No available transport method");a(i)}(kv(kv({},e),{},{callback:function(n){var r,i,o;t.rateLimiter.checkForLimiting(n),n.statusCode>=400&&(null===(i=(o=t.config).on_request_error)||void 0===i||i.call(o,n)),null===(r=e.callback)||void 0===r||r.call(e,n)}}))))}},{key:"_send_retriable_request",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:"_execute_array",value:function(e){var t,n=this,r=[],i=[],o=[];fb(e,(function(e){e&&(t=e[0],zv(t)?o.push(e):Bv(e)?e.call(n):zv(e)&&"alias"===t?r.push(e):zv(e)&&-1!==t.indexOf("capture")&&Bv(n[t])?o.push(e):i.push(e))}));var a=function(e,t){fb(e,(function(e){if(zv(e[0])){var n=t;mb(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};a(r,this),a(i,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t,n){var r;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return db.uninitializedWarning("posthog.capture");if(!this.consent.isOptedOut())if(!Vv(e)&&qv(e)){if(!lb||this.config.opt_out_useragent_filter||!fC(lb,this.config.custom_blocked_useragents)){var i=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==i||!i.isRateLimited){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.store_google||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o={uuid:m_(),event:e,properties:this._calculate_event_properties(e,t||{},n)};i&&(o.properties.$lib_rate_limit_remaining_tokens=i.remainingTokens),(null==n?void 0:n.$set)&&(o.$set=null==n?void 0:n.$set);var a=this._calculate_set_once_properties(null==n?void 0:n.$set_once);a&&(o.$set_once=a),(o=function(e,t){return n=e,r=function(e){return qv(e)&&!Hv(t)?e.slice(0,t):e},i=new Set,function e(t,n){return t!==Object(t)?r?r(t):t:i.has(t)?void 0:(i.add(t),zv(t)?(o=[],fb(t,(function(t){o.push(e(t))}))):(o={},mb(t,(function(t,n){i.has(t)||(o[n]=e(t,n))}))),o);var o}(n);var n,r,i}(o,null!=n&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=(null==n?void 0:n.timestamp)||new Date,Vv(null==n?void 0:n.timestamp)||(o.properties.$event_time_override_provided=!0,o.properties.$event_time_override_system_time=new Date);var s=kv(kv({},o.properties.$set),o.$set);$v(s)||this.setPersonPropertiesForFlags(s),this._internalEventEmitter.emit("eventCaptured",o);var l={method:"POST",url:null!==(r=null==n?void 0:n._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:o,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(l):this._requestQueue.enqueue(l),o}db.critical("This capture call is ignored due to client rate limiting.")}}else db.error("No event name provided to posthog.capture")}},{key:"_addCaptureHook",value:function(e){this.on("eventCaptured",(function(t){return e(t.event,t)}))}},{key:"_calculate_event_properties",value:function(e,t,n){if(!this.persistence||!this.sessionPersistence)return t;var r=this.persistence.remove_event_timer(e),i=kv({},t);if(i.token=this.config.token,"$snapshot"===e){var o=kv(kv({},this.persistence.properties()),this.sessionPersistence.properties());return i.distinct_id=o.distinct_id,(!qv(i.distinct_id)&&!Wv(i.distinct_id)||Zv(i.distinct_id))&&db.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),i}var a=Iw.properties();if(this.sessionManager){var s=this.sessionManager.checkAndGetSessionAndWindowId(),l=s.sessionId,c=s.windowId;i.$session_id=l,i.$window_id=c}if(this.requestRouter.region===pk.CUSTOM&&(i.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var u=this.sessionPropsManager.getSessionProps();i=gb(i,u)}if(!this.config.disable_scroll_properties){var d={};"$pageview"===e?d=this.pageViewManager.doPageView():"$pageleave"===e&&(d=this.pageViewManager.doPageLeave()),i=gb(i,d)}if("$pageview"===e&&rb&&(i.title=rb.title),!Vv(r)){var p=(new Date).getTime()-r;i.$duration=parseFloat((p/1e3).toFixed(3))}if(lb&&this.config.opt_out_useragent_filter&&(i.$browser_type=fC(lb,this.config.custom_blocked_useragents)?"bot":"browser"),(i=gb({},a,this.persistence.properties(),this.sessionPersistence.properties(),i)).$is_identified=this._isIdentified(),null==n||!n._noHeatmaps){var h,f=null===(h=this.heatmaps)||void 0===h?void 0:h.getAndClearBuffer();f&&(i.$heatmap_data=f)}zv(this.config.property_denylist)?mb(this.config.property_denylist,(function(e){delete i[e]})):db.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var m=this.config.sanitize_properties;return m&&(i=m(i,e)),i.$process_person_profile=this._hasPersonProcessing(),i}},{key:"_calculate_set_once_properties",value:function(e){if(!this.persistence||!this._hasPersonProcessing())return e;var t=gb({},this.persistence.get_initial_props(),e||{});return $v(t)?void 0:t}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var r;null===(r=this.persistence)||void 0===r||r.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(Ev({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"on",value:function(e,t){return this._internalEventEmitter.on(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"getNextSurveyStep",value:function(e,t,n){return this.surveys.getNextSurveyStep(e,t,n)}},{key:"identify",value:function(e,t,n){if(!this.__loaded||!this.persistence)return db.uninitializedWarning("posthog.identify");if(Wv(e)&&(e=e.toString(),db.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e){if(["distinct_id","distinctid"].includes(e.toLowerCase()))db.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else if(this._requirePersonProcessing("posthog.identify")){var r=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==r&&e!==this.get_property(Eb)&&(this.unregister(Eb),this.register({distinct_id:e}));var o="anonymous"===(this.persistence.get_property(Yb)||"anonymous");e!==r&&o?(this.persistence.set_property(Yb,"identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(Wb))}}else db.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,n){if(e&&t){if(this._requirePersonProcessing("posthog.group")){var r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:kv(kv({},r),{},Ev({},e,t))}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags(Ev({},e,n))),r[e]===t||n||this.reloadFeatureFlags()}}else db.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var t,n,r,i;if(!this.__loaded)return db.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");this.consent.reset(),null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(r=this.persistence)||void 0===r||r.set_property(Yb,"anonymous"),null===(i=this.sessionManager)||void 0===i||i.resetSessionId();var a=this.config.get_device_id(m_());this.register_once({distinct_id:a,$device_id:e?a:o},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,r=t.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/project/".concat(this.config.token,"/replay/").concat(n));if(null!=e&&e.withTimestamp&&r){var o,a=null!==(o=e.timestampLookBack)&&void 0!==o?o:10;if(!r)return i;var s=Math.max(Math.floor(((new Date).getTime()-r)/1e3)-a,0);i+="?t=".concat(s)}return i}},{key:"alias",value:function(e,t){return e===this.get_property(Tb)?(db.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(Vv(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Eb,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(db.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}},{key:"set_config",value:function(e){var t,n,r,i,o=kv({},this.config);Uv(e)&&(gb(this.config,DC(e)),null===(t=this.persistence)||void 0===t||t.update_config(this.config,o),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new Lw(kv(kv({},this.config),{},{persistence:"sessionStorage"})),x_.is_supported()&&"true"===x_.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(jv.DEBUG=!0),null===(n=this.sessionRecording)||void 0===n||n.startIfEnabledOrStop(),null===(r=this.autocapture)||void 0===r||r.startIfEnabled(),null===(i=this.heatmaps)||void 0===i||i.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}},{key:"startSessionRecording",value:function(e){if(null!=e&&e.sampling){var t,n,r=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId();null===(n=this.persistence)||void 0===n||n.register(Ev({},Ub,!0)),db.info("Session recording started with sampling override for session: ",null==r?void 0:r.sessionId)}this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:LC;return t!==LC&&(t=LC+"."+t),t}},{key:"_isIdentified",value:function(){var e,t;return"identified"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(Yb))||"identified"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(Yb))}},{key:"_hasPersonProcessing",value:function(){var e,t,n,r;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&$v(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[Eb])&&(null===(n=this.persistence)||void 0===n||null===(r=n.props)||void 0===r||!r[t_]))}},{key:"_shouldCapturePageleave",value:function(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}},{key:"createPersonProfile",value:function(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}},{key:"_requirePersonProcessing",value:function(e){return"never"===this.config.person_profiles?(db.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(t_,!0),!0)}},{key:"_sync_opt_out_with_persistence",value:function(){var e,t,n,r,i=this.consent.isOptedOut(),o=this.config.opt_out_persistence_by_default,a=this.config.disable_persistence||i&&!!o;(null===(e=this.persistence)||void 0===e?void 0:e.disabled)!==a&&(null===(n=this.persistence)||void 0===n||n.set_disabled(a)),(null===(t=this.sessionPersistence)||void 0===t?void 0:t.disabled)!==a&&(null===(r=this.sessionPersistence)||void 0===r||r.set_disabled(a))}},{key:"opt_in_capturing",value:function(e){var t;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),(Vv(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(t=null==e?void 0:e.captureEventName)&&void 0!==t?t:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0})}},{key:"opt_out_capturing",value:function(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}},{key:"has_opted_in_capturing",value:function(){return this.consent.isOptedIn()}},{key:"has_opted_out_capturing",value:function(){return this.consent.isOptedOut()}},{key:"clear_opt_in_out_capturing",value:function(){this.consent.reset(),this._sync_opt_out_with_persistence()}},{key:"debug",value:function(e){!1===e?(null==Xv||Xv.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==Xv||Xv.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=wb(e.prototype[t[n]])}(NC,["identify"]);var FC,zC=(FC=IC[LC]=new NC,function(){function e(){e.done||(e.done=!0,RC=!1,mb(IC,(function(e){e._dom_loaded()})))}null!=rb&&rb.addEventListener&&("complete"===rb.readyState?e():rb.addEventListener("DOMContentLoaded",e,!1)),Xv&&Sb(Xv,"load",e,!0)}(),FC),BC=(0,r.createContext)({client:zC});function UC(e){var t=e.children,n=e.client,i=e.apiKey,o=e.options,a=(0,r.useMemo)((function(){return n&&i&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&o&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n||(i&&(zC.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),zC.init(i,o)),zC)}),[n,i]);return r.createElement(BC.Provider,{value:{client:a}},t)}var $C=function(){return(0,r.useContext)(BC).client};function VC(e){var t=$C(),n=(0,r.useState)(),i=n[0],o=n[1];return(0,r.useEffect)((function(){return t.onFeatureFlags((function(){o(t.isFeatureEnabled(e))}))}),[t,e]),i}var qC=n(38216);const ZC=e=>async function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return Promise.reject(null);return(await rv.Z.get(`${qC.j}${t}`,{params:{__doNotCatchError:n}})).data};var HC=n(91741),GC=n(81943),WC=n(77084);const YC=()=>{const{programId:e}=(0,wi.tZ)(WC.oA);return{programId:(0,er.$K)(e)?Number(e):void 0}},KC=()=>{const e=$C(),t=(0,h.C)(S.dy),{programId:n}=YC();return r.useEffect((()=>{(0,er.$K)(e)&&e.identify(String(t.id),{email:t.email,programId:n,environment:$.default.env})}),[e,n,t.email,t.id]),null},XC=e=>{let{children:t,...n}=e;return(0,w.jsx)(d.Kq,{p:6,flexGrow:1,...n,children:t})},JC=e=>{let{children:t,ref:n,...r}=e;return(0,w.jsx)(d.xu,{display:"flex",justifyContent:"space-between",mb:6,ref:n,...r,children:t})},QC=e=>{let{children:t}=e;return(0,w.jsx)(d.ZT,{component:"h1",variant:"h3",children:t})},eS=e=>{let{children:t,...n}=e;return(0,w.jsx)(d.Kq,{p:6,gap:6,...n,children:t})},tS=(0,yr.P1)([e=>e.si.entities],(e=>e.programs)),nS=(0,yr.P1)([tS,(e,t)=>t],((e,t)=>{var n;return null!==(n=(0,er.$K)(t)?e[t]:void 0)&&void 0!==n?n:null})),rS=(0,yr.P1)([tS],(e=>Object.entries(e).sort(((e,t)=>Number(t[0])-Number(e[0]))).map((e=>{let[t,n]=e;return n})))),iS=(0,yr.P1)([e=>e.si.entities.supplyShedColors],(e=>t=>{var n;return null!==(n=e[t])&&void 0!==n?n:(0,Y.mi)(t)}));var oS=n(62626),aS=n(29869),sS=n(55449),lS=n(56637);const cS=e=>{let{title:t,subtitle:n,value:i,onSave:o,onHide:a,type:s="text",saveText:l="Save",noCancel:c=!1,disabled:u=!1,maxLength:p=50}=e;const[h,f]=(0,r.useState)(i);return(0,w.jsxs)(d.o9,{id:"si-text-input-popup",title:t,onClose:a,open:!0,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",children:[(0,er.$K)(n)&&(0,w.jsx)(d.ZT,{color:"secondary",children:n}),(0,w.jsx)(d.nv,{type:s,id:"si-text-input",name:"si-text-input",value:h,className:"mt-0",onChange:e=>{p&&String(e.target.value).length>p||f(e.target.value)}})]})}),(0,w.jsxs)(d.kX,{children:[c?null:(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:a,children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:()=>o(h),disabled:u,children:l})]})]})};var uS=n(82079);const dS=()=>{const{programId:e}=YC(),t=(0,h.C)((t=>nS(t,e))),n=(0,h.C)(S.yX),r="admin"===(null===t||void 0===t?void 0:t.current_user_role);return{isRegrowAdmin:n,isProgramAdmin:r,isRegrowOrProgramAdmin:n||r}},pS={fetchKPIData:(e,t)=>`/programs/${e}/supply_sheds/kpis/${t}`,fetchKPIDataV2:(e,t)=>`/programs/${e}/supply_sheds/kpi_data/${t}`,fetchSavedComparisons:e=>`/programs/${e}/comparisons`,fetchSupplyShedGeometries:e=>`/programs/${e}/geometries`,fetchBookValues:e=>`/programs/${e}/book_values`,fetchSupplySheds:e=>`/programs/${e}/supply_sheds`,fetchGhgpReport:e=>`/programs/${e}/ghgp_report`,fetchCommoditySources:e=>`/programs/${e}/commodity_sources`,fetchGoldenProgramId:"/programs/golden_program_id/",fetchBoundaryMetadata:e=>`/programs/${e}/boundary_metadata`,fetchPlan:e=>`/programs/${e}/plan`,fetchPlanInterventionTypes:e=>`/programs/${e}/plan/plan_interventions`},hS=()=>{const{goldenProgramId:e,isLoading:t}=(()=>{const{workspace:e}=(0,M.c)(),{data:t,isLoading:n}=(0,Ju.Z)("si"===e?pS.fetchGoldenProgramId:null,(()=>qC.Z.getGoldenProgramId().then((e=>e.data))));return{goldenProgramId:null===t||void 0===t?void 0:t.program_id,isLoading:n}})(),n=(0,h.C)(rS),i=(0,r.useMemo)((()=>t?[]:n.filter((t=>t.id!==e))),[t,n,e]);return{nonGoldenPrograms:i}};var fS=n(40292),mS=n(6402),gS=n(61017),yS=n.n(gS),vS=n(66925),bS=n.n(vS);const _S=(e,t)=>n=>{const r=n.toLocaleLowerCase();return e.filter((e=>bS()(yS()(e,t)).filter(er.$K).map((e=>String(e).toLocaleLowerCase())).join(" ").includes(r)))},wS=()=>{const{isRegrowAdmin:e}=dS(),t=(0,f.YB)(),{nonGoldenPrograms:n}=hS(),i=(0,h.T)(),o=(0,h.C)(S.DC),[a,s]=(0,r.useState)(!1),[l,c,u]=(0,Yi.d)("",300),d=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS,GC.U.FETCH_SI_PROGRAM]))),p=(0,r.useMemo)((()=>(0,lS.Rt)(n,"name")),[n]),m=(0,r.useMemo)((()=>_S(p,["name","id"])(u)),[u,p]),g=(e,t,n)=>{var r;null===n||void 0===n||null===(r=n.stopPropagation)||void 0===r||r.call(n),i({type:GC.U.CLEAR_PROGRAM_STATE}),i((0,oS.VF)((0,xo.F_)(e,{programId:t})))};return(0,w.jsx)(w.Fragment,{children:d?(0,w.jsx)(On.D8,{className:"progress",id:"si-programs-table"}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(Cd.k,{justifyContent:"space-between",className:"mb-1",nowrap:!0,children:[(0,w.jsx)(sS.M,{loading:d,value:l,onChange:c,placeholder:"Search programs"}),e&&(0,w.jsx)(kd.w,{primary:!0,raised:!0,onClick:()=>s(!0),"data-testid":"program-admin-program-create--SI",children:"Create a program"})]}),m.length>0&&(0,w.jsxs)(Mr.dU,{children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{children:"Program"}),(0,w.jsx)(Mr.uM,{children:"Users"}),(0,w.jsx)(Mr.uM,{children:"Years"}),(0,w.jsx)(Mr.uM,{children:"Area Purchased"}),(0,w.jsx)(Mr.uM,{children:"Data Products"}),(0,w.jsx)(Mr.uM,{})]})}),(0,w.jsx)(Mr.By,{children:m.map((n=>{var r,a;return(0,w.jsxs)(Mr.Yu,{"data-testid":`program-list-row--${n.id}`,onClick:e=>g(WC.RS,n.id,e),className:"cursor-pointer",children:[(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{alignItems:"center",children:[n.name,"\xa0",(0,w.jsxs)(Rn.x,{className:"ml-05",secondary:!0,variant:"small-thin",children:["#",n.id]})]})}),(0,w.jsx)(Mr.uM,{children:null!==(r=n.total_user_count)&&void 0!==r?r:0}),(0,w.jsx)(Mr.uM,{children:`${n.crop_year_start} - ${n.crop_year_end}`}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"center",children:[(0,mS._H)(Number((0,iu.En)(o,ol.Ug.ImperialUnits,null!==(a=null===n||void 0===n?void 0:n.acreage_limit_ha)&&void 0!==a?a:0).toFixed())),"\xa0",o]})}),(0,w.jsx)(Mr.uM,{children:(0,w.jsx)(Cd.k,{alignItems:"center",nowrap:!0,children:(0,w.jsxs)(Cd.k,{gap:"4px",className:"ml-05",children:[n.practice_kpis.map((e=>(0,w.jsx)(aS.A,{tone:"light",size:"small",label:uS.lL[e]},e))),n.outcome_kpis.map((e=>{const t=uS.X7[e];return(0,er.$K)(t)?(0,w.jsx)(aS.A,{tone:"light",size:"small",label:t},e):null}))]})})}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{gap:"10px",nowrap:!0,alignItems:"center",children:[(0,w.jsx)(kd.w,{primary:!0,raised:!0,onClick:e=>{g(WC.RS,n.id,e)},children:"View Program"}),(0,w.jsx)(kd.w,{icon:!0,iconEl:(0,w.jsx)(Am,{}),tooltipPosition:"left",tooltipLabel:"Program configuration",onClick:e=>{g(WC.y9,n.id,e)}}),e&&(0,w.jsx)(kd.w,{"data-testid":"program-list-delete-program-button--SI",icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"delete"}),onClick:async e=>{e.stopPropagation(),await(async(e,n)=>{window.confirm(`Are you sure you want to delete the "${n}" program?`)&&(await i((0,HC.$)({programId:e})),(0,Yn.c)({title:t.formatMessage({id:"note.success",defaultMessage:"Success"}),message:`The "${n}" program was deleted.`,type:"success"}))})(n.id,n.name)},tooltipPosition:"left",tooltipLabel:"Delete program"})]})})]},n.id)}))})]}),0===m.length?0!==n.length&&u?`No program found for search = ${u}`:"The list programs is empty you can create a program.":null,a&&(0,w.jsx)(cS,{title:"Create a new program",subtitle:"Program Name",type:"text",value:"",onHide:()=>s(!1),onSave:async e=>{const n={...fS.WF,name:String(e)};s(!1),await i((0,HC.V6)({program:n})),(0,Yn.c)({title:t.formatMessage({id:"note.success",defaultMessage:"Success"}),message:`Program "${e}" successfully created`,type:"success"})}})]})})},xS=()=>{const e=(0,h.C)(rS),t=(0,h.C)((e=>(0,Or.RU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),n=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_ALL_SI_PROGRAMS])));var r;return n&&1===e.length?(0,w.jsx)(u.l_,{to:(0,xo.F_)(WC.Xm,{programId:null===(r=e[0])||void 0===r?void 0:r.id})}):(0,w.jsxs)(XC,{children:[(0,w.jsx)(JC,{children:(0,w.jsx)(QC,{children:"Sustainability Insights programs"})}),n&&(0,w.jsx)(wS,{}),t&&(0,w.jsx)(kS,{})]})},kS=()=>(0,w.jsx)(CS,{children:(0,w.jsx)(Rn.x,{variant:"h3",children:(0,w.jsx)(f._H,{id:"NoProgramDetected",defaultMessage:"No programs detected, contact us using the chat button below or email us at <a>support@regrow.ag.</a>.",values:{a:e=>(0,w.jsx)("a",{href:"mailto:support@regrow.ag",children:e})}})})}),CS=Z.ZP.div`
  display: flex;
  justify-content: center;
  padding: 32px;
`;var SS=n(48035),MS=n.n(SS),TS=n(15108),ES=n.n(TS),PS=n(54709),IS=n.n(PS),OS=n(40010),LS=n(77392);const RS=e=>{if((0,er.o8)(e))return[];let t;return t=e.crop_year_end<e.crop_year_start?[e.crop_year_end,e.crop_year_start]:[e.crop_year_start,e.crop_year_end],IS()(t[0],t[1]+1)},jS=()=>{const{programId:e}=YC(),t=(0,h.C)((t=>nS(t,e))),n=(e=>{var t;const n=new Set((null!==(t=null===e||void 0===e?void 0:e.tab_accesses)&&void 0!==t?t:[]).filter((e=>ES()(uS.kx).includes(e))));return n.add("admin"),n.add("supply_shed"),Array.from(n)})(t),i=(0,r.useCallback)((e=>n.includes(e)),[n]);return{programTabAccess:n,getHasTabAccess:i}},DS={id:1,status:"ACTIVE",intervention_type_ids:[12,6,2],subregion_ids:[872,873,874,875],crop_ids:[1,5],annualized_adoption_rates:{2025:.1,2026:.1,2027:.1,2028:.1,2029:.1,2030:.1},selected_plan_scenarios:[{id:1,crop_type:1,subregion_id:872,intervention_type_id:12,is_selected:!0,annualized_data:{2030:{total_area_m2:100,avg_historical_practicing_area_m2:25,incentivized_area_m2:60,abatement_potential_kg_per_m2:{vs_bau_year:.3},ghg_kg:1e3,soc_kg:-90,net_kg:1090,is_historical:!1}},annualized_adoption_rates:{2025:.1,2026:.1,2027:.1,2028:.1,2029:.1,2030:.1}},{id:2,crop_type:1,subregion_id:873,intervention_type_id:6,is_selected:!0,annualized_data:{2030:{total_area_m2:100,avg_historical_practicing_area_m2:25,incentivized_area_m2:60,abatement_potential_kg_per_m2:{vs_bau_year:.3},ghg_kg:1e3,soc_kg:-90,net_kg:1090,is_historical:!1}},annualized_adoption_rates:{2025:.1,2026:.1,2027:.1,2028:.1,2029:.1,2030:.1}},{id:3,crop_type:1,subregion_id:874,intervention_type_id:2,is_selected:!0,annualized_data:{2030:{total_area_m2:100,avg_historical_practicing_area_m2:25,incentivized_area_m2:60,abatement_potential_kg_per_m2:{vs_bau_year:.3},ghg_kg:1e3,soc_kg:-90,net_kg:1090,is_historical:!1}},annualized_adoption_rates:{2025:.1,2026:.1,2027:.1,2028:.1,2029:.1,2030:.1}},{id:4,crop_type:5,subregion_id:875,intervention_type_id:6,is_selected:!0,annualized_data:{2030:{total_area_m2:100,avg_historical_practicing_area_m2:25,incentivized_area_m2:60,abatement_potential_kg_per_m2:{vs_bau_year:.3},ghg_kg:1e3,soc_kg:-90,net_kg:1090,is_historical:!1}},annualized_adoption_rates:{2025:.1,2026:.1,2027:.1,2028:.1,2029:.1,2030:.1}}]},AS=e=>{const{shouldFetch:t}={shouldFetch:!0,...e},{programId:n}=YC(),r=(0,er.$K)(n),i=t&&r,{data:o,isLoading:a,...s}=(0,Ju.Z)(i?pS.fetchSupplySheds(n):null);return{data:o,isLoading:a,...s}};var NS=n(68746);function FS(){const{cropByCDLId:e}=(0,NS.n)();return(0,r.useCallback)((t=>{var n,r,i;return`${null!==(n=null!==(r=null===(i=e[Number(t)])||void 0===i?void 0:i.label)&&void 0!==r?r:t)&&void 0!==n?n:""}`}),[e])}const zS=()=>{const{data:e}=AS(),t=(0,r.useCallback)((t=>null===e||void 0===e?void 0:e.find((e=>e.id===t))),[e]);return{getSubsectionById:(0,r.useCallback)((t=>null===e||void 0===e?void 0:e.flatMap((e=>e.subsections)).find((e=>e.id===t))),[e]),getSupplyShedById:t}};var BS=n(32236),US=n.n(BS);const $S=e=>!!uS.jc.hasOwnProperty(e),VS=e=>"year"in e&&(0,er.$K)(e.year)&&e.cropIds.length>0&&e.subsectionIds.length>0,qS=(e,t)=>e.map((e=>({...e,subsections:e.subsections.filter((e=>{let{id:n}=e;return t.includes(n)}))}))).filter((e=>(0,er.Of)(e.subsections))),ZS=(e,t)=>e.find((e=>e.id===Number(t))),HS=(e,t)=>{var n;return null===(n=e.find((e=>e.subsections.some((e=>e.id===Number(t))))))||void 0===n?void 0:n.id},GS=e=>e.some((e=>e.subsections.some((e=>"ACTIVE"!==e.status)))),WS=e=>{const t={};return e.forEach((e=>{e.subsections.forEach((n=>{t[n.id]=e.id}))})),t},YS=e=>{const t={};return e.map((e=>{const n=e.id,r=e.subsections.map((e=>e.id));return t[n]=r})),t},KS=(e,t)=>e.flatMap((e=>{let{subsections:n}=e;return(0,er.kK)(t)?n:n.filter((e=>t.includes(Number(e.id))))})),XS=(e,t)=>qf()(KS(e,t).flatMap((e=>{let{commodities:t=[]}=e;return t.map((e=>{let{id:t}=e;return t}))}))).filter($S),JS=(e,t)=>KS(e,t).map((e=>e.id)),QS=(e,t)=>KS(e,t).filter((e=>"ACTIVE"===e.status)).map((e=>e.id)),eM=e=>(0,er.Of)(JS(e)),tM=e=>e.map((e=>({label:e.name,value:`${e.id}-supply-shed`,options:e.subsections.map((e=>({label:e.name,value:e.id})))}))),nM=(e,t,n)=>XS(e,n).reduce(((e,n)=>{const r=t.find((e=>String(e.value)===String(n)));return(0,er.$K)(r)?{cropOptions:[...e.cropOptions,r],cropIds:[...e.cropIds,n]}:e}),{cropOptions:[],cropIds:[]}),rM=e=>{let{labels:t,maxItems:n,chipMaxWidth:i,renderLabel:o,renderIcon:a,color:s}=e;const l=t.length>n,c=(0,r.useMemo)((()=>{if(!l)return"";const e=t.slice(n,t.length);return((0,er.$K)(o)?e.map((e=>o(e))):e).join(", ")}),[t,n,o,l]);return(0,w.jsxs)(w.Fragment,{children:[t.slice(0,n).map((e=>{var t;return(0,w.jsx)(d.xu,{maxWidth:i,children:(0,w.jsx)(d.Af,{label:null!==(t=null===o||void 0===o?void 0:o(e))&&void 0!==t?t:e,size:"small",variant:"outlined",icon:null===a||void 0===a?void 0:a(e),color:s})},String(e))})),l&&(0,w.jsx)(d.u,{title:c,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.Af,{variant:"outlined",size:"small",color:"secondary",icon:(0,w.jsx)(d.le,{type:"plus"}),label:t.length-n+" more"})})})]})},iM=e=>{let{metricDetail:{formattedValue:t,unitName:{abbr:n}}}=e;return(0,w.jsxs)(d.Kq,{direction:"row",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:t}),(0,w.jsx)(d.ZT,{variant:"h3",fontWeight:e=>e.typography.fontWeightRegular,children:n})]})},oM=e=>{let{label:t,trendMetricDetail:{formattedValue:n,unitName:{abbr:r},trend:i}}=e;return(0,w.jsxs)(d.Kq,{direction:"row",gap:1,children:[(0,w.jsxs)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:[uS.kh," ",t,":"]}),(0,w.jsxs)(d.Kq,{direction:"row",gap:1,children:[(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",children:[(0,w.jsx)(d.le,{color:"secondary",type:`arrow-${i}`}),(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:n})]}),(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:r})]})]})},aM="2030",sM={1:"Business as usual",2:"Cover crops",3:"Reduced till",4:"No till",5:"Reduce N by 10%",6:"Cover crop & no till",7:"Cover crop & reduced till",8:"Cover crop & reduce N by 10%",9:"No till & reduce N by 10%",10:"Reduced till & reduce N by 10%",11:"Cover crop & reduced till & reduce N by 10%",12:"Cover crop & no till & reduce N by 10%"},lM={2:"crop",3:"tillage",4:"tillage",5:"nutrients"},cM={ghg:"GHG (reductions)",soc:"dSOC (removals)",net:"net emissions"},uM=e=>{let{topLevelViewContent:{scenarioCount:t,selectedEmission:n,subregionIds:i,cropIds:o,interventionIds:a,totalEmissions:s,regenArea:l,incentivizedArea:c}}=e;const{getSubsectionById:u,getSupplyShedById:p}=zS(),{data:h}=AS(),f=FS(),m=(0,r.useMemo)((()=>WS(null!==h&&void 0!==h?h:[])),[h]);return(0,w.jsx)(d.Xk,{children:(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-evenly",p:5,children:[(0,w.jsxs)(d.Kq,{gap:5,flex:1,pr:5,children:[(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:"Proposed MRV scenarios"}),(0,w.jsxs)(d.ZT,{variant:"h3",children:[t," MRV scenarios"]})]}),(0,w.jsxs)(d.Kq,{gap:3,children:[(0,w.jsx)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:"Supply sheds"}),(0,w.jsx)(d.Kq,{direction:"row",flexWrap:"wrap",gap:1,children:(0,w.jsx)(rM,{labels:i,maxItems:4,color:"4",renderLabel:e=>{var t;const n=m[e];return(0,er.$K)(n)?null===(t=p(n))||void 0===t?void 0:t.name:void 0},chipMaxWidth:100})})]}),(0,w.jsxs)(d.Kq,{gap:3,children:[(0,w.jsx)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:"Subregions"}),(0,w.jsx)(d.Kq,{direction:"row",flexWrap:"wrap",gap:1,children:(0,w.jsx)(rM,{labels:i,maxItems:4,color:"4",renderLabel:e=>{var t;return null===(t=u(e))||void 0===t?void 0:t.name},chipMaxWidth:100})})]})]}),(0,w.jsx)(d.iz,{orientation:"vertical",flexItem:!0}),(0,w.jsxs)(d.Kq,{gap:5,flex:1,px:5,children:[(0,w.jsx)(d.Kq,{gap:3,children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:"Crops"}),(0,w.jsx)(d.Kq,{direction:"row",flexWrap:"wrap",gap:1,children:(0,w.jsx)(rM,{labels:o,maxItems:4,renderIcon:e=>(0,w.jsx)(d.le,{type:$S(e)?uS.yB[e]:"corn"}),renderLabel:e=>f(e)})})]})}),(0,w.jsx)(d.Kq,{gap:3,children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:"Interventions"}),(0,w.jsx)(d.Kq,{direction:"row",flexWrap:"wrap",gap:1,children:(0,w.jsx)(rM,{labels:a,color:"2",maxItems:4,renderLabel:e=>sM[e],renderIcon:e=>{const t=lM[e];if((0,er.$K)(t))return(0,w.jsx)(d.le,{type:t})}})})]})})]}),(0,w.jsx)(d.iz,{orientation:"vertical",flexItem:!0}),(0,w.jsx)(d.Kq,{flex:1,px:5,children:(0,w.jsxs)(d.Kq,{gap:8,children:[(0,w.jsxs)(d.xu,{children:[(0,w.jsxs)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:["Total ",cM[n]," in ",aM]}),(0,w.jsx)(iM,{metricDetail:s.topLevelMetric}),(0,w.jsx)(oM,{label:"2023",trendMetricDetail:s.yearTrendMetric}),(0,w.jsx)(oM,{label:"BAU",trendMetricDetail:s.BAUTrendMetric})]}),(0,w.jsxs)(d.xu,{children:[(0,w.jsxs)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:["Regen acres in ",aM]}),(0,w.jsx)(iM,{metricDetail:l.topLevelMetric}),(0,w.jsx)(oM,{label:"2023",trendMetricDetail:l.yearTrendMetric}),(0,w.jsx)(oM,{label:"BAU",trendMetricDetail:l.BAUTrendMetric})]})]})}),(0,w.jsx)(d.iz,{orientation:"vertical",flexItem:!0}),(0,w.jsxs)(d.Kq,{flex:1,pl:5,children:[(0,w.jsxs)(d.ZT,{color:"semanticPalette.text.secondary",variant:"h4",children:["Incentivized area in ",aM]}),(0,w.jsx)(iM,{metricDetail:c.topLevelMetric})]})]})})},dM={topLevelMetric:{formattedValue:"909K",unit:"mt",value:909e3,unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},yearTrendMetric:{formattedValue:"90",unit:"mt",value:90,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},BAUTrendMetric:{formattedValue:"120",unit:"mt",value:120,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}}},pM={topLevelMetric:{formattedValue:"1.5M",unit:"mt",value:15e5,unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},yearTrendMetric:{formattedValue:"90",unit:"mt",value:90,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},BAUTrendMetric:{formattedValue:"120",unit:"mt",value:120,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}}},hM={topLevelMetric:{formattedValue:"591K",unit:"mt",value:591e3,unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},yearTrendMetric:{formattedValue:"90",unit:"mt",value:90,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},BAUTrendMetric:{formattedValue:"120",unit:"mt",value:120,trend:"down",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}}},fM={scenarioCount:5,selectedEmission:"ghg",subregionIds:[872,873,874,875,16648],cropIds:[1,5,23,21,32,26,27,29],interventionIds:[2,3,4,5],totalEmissions:pM,regenArea:{topLevelMetric:{value:65e5,unit:"ac",formattedValue:"6.5M",unitName:{singular:"hectare",plural:"hectares",abbr:"ac"}},yearTrendMetric:{value:1e6,unit:"ac",formattedValue:"1M",trend:"up",unitName:{singular:"hectare",plural:"hectares",abbr:"ac"}},BAUTrendMetric:{value:12e5,unit:"ac",formattedValue:"1.2M",trend:"up",unitName:{singular:"hectare",plural:"hectares",abbr:"ac"}}},incentivizedArea:{topLevelMetric:{value:65e5,unit:"ac",formattedValue:"6.5M",unitName:{singular:"hectare",plural:"hectares",abbr:"ac"}}}},mM=()=>{const{programId:e}=YC();return(0,ai.ZP)((0,er.$K)(e)?pS.fetchPlanInterventionTypes(e):void 0)},gM={value:223e3,unit:"mt",formattedValue:"223K",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},yM={value:34e4,unit:"mt",formattedValue:"340K",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},vM={value:117e3,unit:"mt",formattedValue:"117K",unitName:{singular:"metric tonne CO2e",plural:"metric tonnes CO2e",abbr:"mt CO2e"}},bM={value:23,unit:"mt/ac",formattedValue:"23",trend:"down",unitName:{singular:"metric tonne CO2e / acre",plural:"metric tonnes CO2e / acre",abbr:"mt CO2e / ac"}},_M={value:37,unit:"mt/ac",formattedValue:"37",trend:"down",unitName:{singular:"metric tonne CO2e / acre",plural:"metric tonnes CO2e / acre",abbr:"mt CO2e / ac"}},wM={value:11,unit:"mt/ac",formattedValue:"11",trend:"down",unitName:{singular:"metric tonne CO2e / acre",plural:"metric tonnes CO2e / acre",abbr:"mt CO2e / ac"}},xM={totalCurrentArea:{value:12e5,unit:"ac",formattedValue:"1.2M",unitName:{singular:"acre",plural:"acres",abbr:"ac"}},currentAreaWithInterventions:{value:12e5,unit:"ac",formattedValue:"1.2M",unitName:{singular:"acre",plural:"acres",abbr:"ac"}},incentivizedArea:{value:12e5,unit:"ac",formattedValue:"1.2M",unitName:{singular:"acre",plural:"acres",abbr:"ac"}},totalEmissions:yM,abatementPotential:_M},kM=[{title:"Adoption rates projected out to 2030",description:"We assume a YoY 10% increase based on rate of growth in historical MRV programs.",icon:"line-chart"},{title:"Annual net emissions simulated",description:"GHG emissions and SOC removals are simulated based on projected practice adoption rates across all your subregions, crops, and interventions.",icon:"quantification"},{title:"MRV scenarios ranked",description:"We rank scenarios by abatement potential increase to choose the most valuable MRV scenarios.",icon:"last-page"},{title:"Top MRV scenarios compiled into your proposed plan",description:"The top 5 scenarios are added to your proposed plan. Analyze your emissions, and other relevant data in your proposed plan dashboard in a myriad of ways. Fine-tune your scenarios as you see fit.",icon:"dashboard"}],CM={totalCurrentArea:"This is defined as the average total area in the last 7 years in this subregion growing the selected commodity. ",currentAreaWithInterventions:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{children:"This is defined as the average practice adoption rate in the last 7 years in this subregion of the intervention practices for the selected commodity."}),(0,w.jsx)(d.ZT,{children:"Note that if a field has adopted multiple practices (e.g., cover crop and no till), it will be counted towards the practice adoption rate of each singular practice (e.g., cover crop) as well."})]}),incentivizedArea:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{children:"The incentivized area is defined as the area in producers are paid to do the intervention practices."}),(0,w.jsx)(d.ZT,{children:"For this program, it includes both acres that adopted the intervention practices due to the MRV program as well as any acres that were already doing the practice before you intervened."})]}),abatementPotential:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{children:"Abatement potential is defined as the average difference in net emissions per acre between the MRV scenario path and the business as usual (BAU) path."}),(0,w.jsx)(d.ZT,{children:"The difference in net emissions is due to the increase in practice adoption rates due to an MRV program intervention over what the practice adoption rate would be given no intervention."})]})},SM=e=>2===e||3===e||4===e||5===e,MM=(e,t)=>{const n=t[e];if((0,er.o8)(n))return null;return n.split("_and_").map((e=>Number((0,LS.V9)(t,e)))).filter(SM)},TM=e=>{let{colDef:{headerName:t},field:n}=e;return(0,w.jsxs)(d.Kq,{gap:2,direction:"row",whiteSpace:"pre-wrap",alignItems:"center",children:[(0,w.jsx)(d.bd,{clampLines:2,variant:"h5",children:t}),(0,w.jsx)(d.u,{title:(r=n,"totalCurrentArea"===r||"currentAreaWithInterventions"===r||"incentivizedArea"===r||"abatementPotential"===r?CM[n]:""),children:(0,w.jsx)(d.Kq,{justifyContent:"center",children:(0,w.jsx)(d.le,{fontSize:"body1",type:"info-circled"})})})]});var r},EM=(e,t)=>{const n=((e,t)=>{const{getSubsectionById:n}=zS(),i=FS(),{data:o}=mM(),a=(0,r.useMemo)((()=>{if((0,er.kK)(e.selected_plan_scenarios)||(0,er.o8)(o))return null;const n={ghg:yM,soc:vM,net:gM},r={ghg:_M,soc:wM,net:bM};return e.selected_plan_scenarios.map((e=>({id:e.id,subregionId:e.subregion_id,commodityId:e.crop_type,interventionIds:MM(e.intervention_type_id,o.intervention_types),...xM,totalEmissions:n[t],abatementPotential:r[t]})))}),[e.selected_plan_scenarios,o,t]);return{columns:[{headerName:"Subregion",field:"subregion",type:"text",minWidth:150,renderCell:e=>{var t;let{row:{subregionId:r}}=e;return(0,w.jsx)(d.bd,{children:null===(t=n(r))||void 0===t?void 0:t.name})}},{headerName:"Commodity",field:"commodity",type:"text",renderCell:e=>{let{row:{commodityId:t}}=e;return(0,w.jsx)(d.Af,{size:"small",variant:"outlined",label:i(t),icon:(0,w.jsx)(d.le,{type:$S(t)?uS.yB[t]:"corn"})})}},{headerName:"Interventions",field:"interventions",minWidth:340,type:"text",renderCell:e=>{let{row:{interventionIds:t}}=e;return(0,er.kK)(t)?(0,w.jsx)("div",{children:"Unavailable interventions"}):(0,w.jsx)(d.Kq,{gap:2,direction:"row",children:(0,w.jsx)(rM,{labels:t,maxItems:2,renderLabel:e=>sM[e],renderIcon:e=>(0,w.jsx)(d.le,{type:lM[e]}),color:"2"})})}},{headerName:"Total current area",field:"totalCurrentArea",type:"text",flex:1,minWidth:150,sortable:!1,headerAlign:"center",renderHeader:TM,valueGetter:e=>{let{row:{totalCurrentArea:{formattedValue:t,unitName:{abbr:n}}}}=e;return`${t} ${n}`}},{headerName:"Current area with intervention practices",field:"currentAreaWithInterventions",type:"text",minWidth:175,renderHeader:TM,sortable:!1,headerAlign:"center",valueGetter:e=>{let{row:{currentAreaWithInterventions:{formattedValue:t,unitName:{abbr:n}}}}=e;return`${t} ${n}`}},{headerName:`Incentivized area in ${aM}`,field:"incentivizedArea",type:"text",minWidth:175,sortable:!1,headerAlign:"center",renderHeader:TM,valueGetter:e=>{let{row:{incentivizedArea:{formattedValue:t,unitName:{abbr:n}}}}=e;return`${t} ${n}`}},{headerName:`Total ${cM[t]} in ${aM}`,field:"totalEmissions",type:"text",minWidth:175,sortable:!1,valueGetter:e=>{let{row:{totalEmissions:{formattedValue:t,unitName:{abbr:n}}}}=e;return`${t} ${n}`}},{headerName:`Abatement potential in ${aM}`,field:"abatementPotential",type:"text",minWidth:175,headerAlign:"center",renderHeader:TM,renderCell:e=>{let{row:{abatementPotential:{formattedValue:t,trend:n,unitName:{abbr:r}}}}=e;return(0,w.jsxs)(d.Kq,{direction:"row",alignContent:"center",gap:1,children:[(0,w.jsx)(d.le,{type:`arrow-${n}`})," ",`${t} ${r}`]})}}],rows:null!==a&&void 0!==a?a:[]}})(e,t);return{topLevelViewContent:{...fM,selectedEmission:t,totalEmissions:{ghg:pM,soc:hM,net:dM}[t]},tableViewContent:n}},PM=e=>{let{data:t}=e;const[n,i]=(0,r.useState)("ghg"),{topLevelViewContent:o,tableViewContent:{columns:a,rows:s}}=EM(t,n);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(eS,{gap:5,pb:0,children:[(0,w.jsx)(JC,{children:(0,w.jsxs)(d.Kq,{gap:4,children:[(0,w.jsxs)(d.xu,{display:"flex",gap:2,alignItems:"center",children:[(0,w.jsx)(QC,{children:"Proposed plan"}),(0,w.jsx)(d.Af,{color:"info",label:"Beta",variant:"outlined",size:"small"})]}),(0,w.jsx)(d.ZT,{children:"A bird's eye view of all your proposed MRV scenarios alongside their estimated outcomes and costs."})]})}),(0,w.jsxs)(d.bZ,{severity:"info",children:[(0,w.jsx)(d.Cd,{children:"Modeled estimated outcomes are directional and should not to be considered as guarantees."}),"Actual numbers will be dependent on future regional weather conditions, the soil type of fields selected for practice adoption, whether producers maintain practices over time, and other factors."," ",(0,w.jsx)(d.ZT,{component:"span",children:(0,w.jsx)(d.rU,{href:"/",underline:"always",color:"semanticPalette.text.info",children:"Learn more about how we model proposed plans."})})]}),(0,w.jsx)(d.Xk,{children:(0,w.jsx)(d.Kq,{p:3,alignItems:"end",children:(0,w.jsx)(d.mg,{required:!0,options:[{label:"GHG emissions only",value:"ghg"},{label:"SOC removals only",value:"soc"},{label:"Net emissions",value:"net"}],onChange:e=>i(e.target.value),value:n})})})]}),(0,w.jsx)(eS,{children:(0,w.jsx)(uM,{topLevelViewContent:o})}),(0,w.jsxs)(eS,{children:[(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:"MRV scenarios"}),(0,w.jsxs)(d.ZT,{children:["Below are a list of currently proposed MRV scenarios."," "]})]}),(0,w.jsx)(d.Xk,{children:(0,w.jsx)(d.DQ.DataGrid,{columns:a,rows:s,disableRowSelectionOnClick:!0})})]})]})},IM=e=>{let{mutatePlan:t,programId:n}=e;const{data:i}=AS(),{data:o}=mM(),a=(0,er.$K)(i)&&As(i)&&eM(i)&&!GS(i),s=(0,r.useCallback)((async e=>{if(e.preventDefault(),a&&(0,er.$K)(o)&&As(Object.entries(o.intervention_types))){const e=JS(i),r={crop_ids:XS(i),subregion_ids:e,intervention_type_ids:(0,ii.Os)(o.intervention_types).map(Number)},{data:a}=await qC.Z.createPlan(n,r);await t(a)}}),[a,o,i,n,t]);return(0,w.jsx)(d.xu,{width:800,m:"auto",children:(0,w.jsx)(d.Xk,{fullWidth:!1,elevation:8,children:(0,w.jsxs)(d.Kq,{direction:"row",children:[(0,w.jsxs)(d.Kq,{p:5,gap:9,width:e=>e.fixedWidths.sm,children:[(0,w.jsx)(d.ZT,{variant:"h2",children:"Create your proposed plan"}),(0,w.jsx)(d.ZT,{children:"Once you have configured your subregions and supply sheds, click below to generate a recommended set of MRV programs based on Regrow defaults. You can always adjust this recommended plan later. Alternatively, review and configure your own defaults now."}),(0,w.jsxs)(d.Kq,{gap:5,children:[(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.zx,{disabled:!a,onClick:e=>s(e),children:"Generate recommended plan"})}),!a&&(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:"Plans cannot be generated until your subregions are configured and computed. Please try again in a few minutes."})]})]}),(0,w.jsx)(d.Kq,{width:e=>e.fixedWidths.sm,py:5,px:10,bgcolor:"semanticPalette.surface.secondary",borderRadius:e=>`0 ${e.borderRadii.md*e.shape.borderRadius}px ${e.borderRadii.md*e.shape.borderRadius}px 0`,children:(0,w.jsx)(d.vF,{orientation:"vertical",nonLinear:!0,connector:(0,w.jsx)(d._V,{}),children:kM.map((e=>(0,w.jsxs)(d.h8,{active:!0,children:[(0,w.jsx)(d.M_,{icon:(0,w.jsx)(d.le,{type:e.icon}),slotProps:{label:{style:{maxWidth:"none",whiteSpace:"pre-wrap"}}},children:(0,w.jsx)(d.ZT,{variant:"h5",children:e.title})}),(0,w.jsx)(d.Pj,{children:(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:e.description})})]},e.title)))})})]})})})},OM=()=>(0,w.jsx)(d.xu,{width:e=>e.fixedWidths.sm,m:"auto",children:(0,w.jsx)(d.Xk,{elevation:8,children:(0,w.jsxs)(d.Kq,{gap:5,p:5,alignItems:"center",children:[(0,w.jsx)(d.le,{type:"cross-circled",fontSize:"h1",color:"error"}),(0,w.jsx)(d.xu,{textAlign:"center",children:(0,w.jsx)(d.ZT,{variant:"h3",color:"semanticPalette.text.error",children:"We encountered issues generating your plan."})}),(0,w.jsx)(d.xu,{textAlign:"center",children:(0,w.jsxs)(d.ZT,{children:["Please try again or"," ",(0,w.jsx)(d.rU,{href:"https://app.dev.regrow.ag/",rel:"noopener",target:"_blank",children:"contact support."})]})})]})})}),LM=()=>(0,w.jsx)(d.xu,{width:e=>e.fixedWidths.sm,m:"auto",children:(0,w.jsx)(d.Xk,{fullWidth:!1,elevation:8,children:(0,w.jsxs)(d.Kq,{gap:5,p:5,alignItems:"center",children:[(0,w.jsx)(d.D8,{}),(0,w.jsx)(d.ZT,{variant:"h3",children:"Generating your plan..."}),(0,w.jsx)(d.xu,{textAlign:"center",children:(0,w.jsx)(d.ZT,{children:"Modeling MRV scenarios across all of your subregions and commodities may take a few hours."})}),(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",children:"Learn about how we generate a plan"})]})})}),RM=e=>{let{programId:t}=e;const{data:n,isLoading:r,error:i,mutatePlan:o}=(e=>{const{programId:t}=YC(),n=(0,h.C)(S.Jt),{isLoading:r,data:i,error:o,mutate:a}=(0,ai.ZP)((0,er.$K)(t)?pS.fetchPlan(t):void 0,(e=>ZC(n)(e,!0)),{...(0,er.$K)(e)&&{refreshInterval:e}});return{data:i,isLoading:r,error:o,mutatePlan:a}})(5e3);if(VC("si-plan-v2-dashboard-only"))return(0,w.jsx)(PM,{programId:t,data:DS});if(r)return(0,w.jsx)(d.D8,{"aria-label":"Loading plan..."});if((0,er.$K)(i)&&404===i.status)return(0,w.jsx)(IM,{mutatePlan:o,programId:t});if((0,er.$K)(i))return(0,w.jsx)(OM,{});if((0,er.o8)(n))return(0,w.jsx)(OM,{});switch(null===n||void 0===n?void 0:n.status){case"FAILED":return(0,w.jsx)(OM,{});case"ACTIVE":return(0,w.jsx)(PM,{programId:t,data:n});case"IN_PROGRESS":case"ACCEPTED":return(0,w.jsx)(LM,{})}};var jM=n(8215);const DM=()=>{const{programId:e}=YC(),t=(0,h.C)(S.Jt);return(0,Ju.Z)((0,er.$K)(e)?pS.fetchCommoditySources(e):null,(e=>ZC(t)(e,!0)))};var AM=n(41326),NM=n.n(AM);const FM=e=>(0,er.$K)(e)&&"other"===e.source_type,zM=[er.$K,"Required"],BM=e=>e[1]===zM[1]&&e[0]===zM[0];var UM=n(81858),$M=n.n(UM);const VM=[e=>(0,er.HD)(e)&&(0,er.HH)(e.trim()),"Required"],qM=e=>[t=>(0,er.HD)(t)&&t.trim().length>=e,`Must be at least ${e} ${(0,xi.E4)("character",e)}`],ZM=e=>[t=>(0,er.HD)(t)&&t.length<=e,`Must be at most ${e} ${(0,xi.E4)("character",e)}`],HM=[zM,VM,qM(2),ZM(40)],GM=[zM,[e=>!FM(e)||(0,er.$K)(e.custom_type)&&(0,er.HH)(e.custom_type),'You should provide a custom source type if you select "Other" as the source type'],[e=>!FM(e)||ZM(40)[0](e.custom_type),ZM(40)[1]],[e=>!FM(e)||qM(2)[0](e.custom_type),qM(2)[1]]],WM=[ZM(40)],YM=[ZM(240)];var KM=n(79792),XM=n.n(KM);const JM=(e,t)=>{const n={predicate:null,message:""};return{allPass:e.every((e=>{let[r,i]=e;return!!r(t)||(n.predicate=r,n.message=i,!1)})),failure:n}},QM=e=>t=>{const{isRequired:n,sortedPredicates:r}=(e=>{const[t,n]=XM()(e,BM);return{isRequired:(0,er.Of)(t),sortedPredicates:[...t,...n]}})(e);return n||(0,er.$K)(t)?JM(r,t):JM([],t)},eT=e=>{const{allPass:t,failure:{message:n}}=QM(HM)(e.name),{allPass:r,failure:{message:i}}=QM(GM)(e.source_type),{allPass:o,failure:{message:a}}=QM(WM)(e.address),{allPass:s,failure:{message:l}}=QM(YM)(e.description);return{allPass:[t,r,o,s].every(er.fQ),errors:{name:n,source_type:i,address:a,description:l}}},tT=(e,t)=>e.dirty.includes(t)?e.errors[t]:"",nT=(e,t)=>t.some((t=>{const n=e[t];return(0,er.HD)(n)?(0,er.HH)(n):!(0,er.Kn)(n)||(0,ii._J)(n).some(er.HH)})),rT=e=>{var t;let{onSetFormState:n,commoditySourceFormState:i}=e;const o=r.useCallback((e=>{var t;const r=tT(i,e);return{onChange:t=>n({[e]:t.target.value}),error:(0,er.HH)(r),helperText:(0,er.HH)(r)?r:" ",value:null!==(t=i.state[e])&&void 0!==t?t:""}}),[i,n]),a=tT(i,"source_type"),{source_type:s}=i.state,l=FM(s);return(0,w.jsxs)(d.Kq,{mx:5,children:[(0,w.jsx)(d.nv,{label:"Source name",...o("name")}),(0,w.jsxs)(d.Kq,{spacing:2,children:[(0,w.jsxs)(d.nv,{label:"Source type",select:!0,SelectProps:{displayEmpty:!0,renderValue:e=>(0,er.ke)(e)?(0,w.jsx)(d.ZT,{color:"text.disabled",children:"Select source type"}):e},error:(0,er.HH)(a),onChange:e=>n({source_type:{source_type:e.target.value.toLowerCase()}}),value:null!==(t=(0,LS.Gr)(null===s||void 0===s?void 0:s.source_type,xi.fm))&&void 0!==t?t:"",helperText:l?void 0:" ",children:[(0,w.jsx)(d.sN,{value:"Grower",children:"Grower"}),(0,w.jsx)(d.sN,{value:"Elevator",children:"Elevator"}),(0,w.jsx)(d.sN,{value:"Miller",children:"Miller"}),(0,w.jsx)(d.sN,{value:"Processor",children:"Processor"}),(0,w.jsx)(d.sN,{value:"Producer",children:"Producer"}),(0,w.jsx)(d.sN,{value:"Other",children:"Other"})]}),l&&(0,w.jsx)(d.nv,{placeholder:"Briefly describe the source type here",error:(0,er.HH)(a),helperText:(0,er.HH)(a)?a:" ",value:l?null===s||void 0===s?void 0:s.custom_type:"",onChange:e=>n({source_type:{source_type:"other",custom_type:e.target.value}})})]}),(0,w.jsx)(d.nv,{label:"Address (optional)",...o("address")}),(0,w.jsx)(d.nv,{label:"Description (optional)",InputProps:{multiline:!0,maxRows:3},...o("description")})]})},iT=e=>(0,er.kK)(e)?"EMPTY":"string"===typeof e?e:FM(e)?e.custom_type:e.source_type,oT={name:"",source_type:void 0,address:void 0,description:void 0},aT={name:"Source name",source_type:"Source type",address:"Address",description:"Description"},sT=[{headerName:aT.name,field:"name",minWidth:140,type:"text"},{headerName:"Source type",field:"source_type",minWidth:170,type:"text",flex:1,renderCell:e=>{let{row:{source_type:t}}=e;return iT(t)}},{headerName:"Address",field:"address",minWidth:480,type:"text",sortable:!1,flex:1},{headerName:"Description",field:"description",minWidth:480,type:"text",sortable:!1,flex:1}],lT={state:oT,dirty:[],errors:eT(oT).errors},cT=e=>{let{open:t,onClose:n}=e;const{programId:i}=YC(),{mutate:o}=(0,ai.kY)(),[a,s]=r.useState(!1),[l,c]=r.useState(lT),u=r.useCallback((e=>{const t=NM()((0,ii.Os)(e),l.dirty),n={...l.state,...e},{errors:r}=eT(n);c({dirty:t,state:n,errors:r})}),[l.dirty,l.state]),p=nT(l.errors,(0,ii.Os)(l.state)),h=async()=>{if((0,er.$K)(i)&&(0,er.$K)(l.state.source_type)){s(!0);const{status:e}=await qC.Z.addCommoditySource(i,{...l.state,source_type:l.state.source_type});s(!1),201===e&&(await o(pS.fetchCommoditySources(i)),(0,Yn.c)({type:"success",message:"New commodity source added"}))}};return(0,w.jsxs)(d.o9,{maxWidth:"md",title:"Add commodity source",open:t,onClose:n,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(rT,{onSetFormState:u,commoditySourceFormState:l})}),(0,w.jsx)(d.kX,{children:(0,w.jsxs)(d.Kq,{direction:"row",spacing:2,children:[(0,w.jsx)(d.zx,{variant:"text",onClick:e=>n(e,"iconClick"),children:"Cancel"}),(0,w.jsx)(d.fl,{variant:"outlined",color:"primary",loading:a,disabled:p,onClick:async()=>{await h(),c({...lT})},children:"Save & add another"}),(0,w.jsx)(d.fl,{variant:"contained",color:"primary",loading:a,disabled:p,onClick:async e=>{await h(),n(e,"iconClick")},children:"Save"})]})})]})},uT=()=>(0,w.jsx)(d.Xk,{variant:"elevation",square:!0,children:(0,w.jsxs)(d.Kq,{gap:4,py:5,children:[(0,w.jsx)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"center",children:(0,w.jsx)(d.le,{type:"farm",fontSize:"large"})}),(0,w.jsx)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"center",children:(0,w.jsx)(d.ZT,{variant:"h5",color:"text.secondary",children:"No commodity sources to display...yet. Add a new source to get started."})})]})}),dT=e=>{let{open:t,onClose:n,csId:r}=e;const{programId:i}=YC(),{data:o=[],mutate:a}=DM();return(0,w.jsxs)(d.o9,{title:"Delete commodity source",open:t,onClose:n,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.Kq,{children:(0,w.jsxs)(d.ZT,{children:["Deleting this commodity source will ",(0,w.jsx)("strong",{children:"delete all volume data entries"})," ","associated with the source. Once this change is made, it cannot be undone. Do you wish to proceed?"]})})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:e=>n(e,"iconClick"),children:"Cancel"}),(0,w.jsx)(d.zx,{color:"error",onClick:async e=>{(0,er.o8)(i)||(await qC.Z.deleteCommoditySource(i,r),n(e,"iconClick"),await a([...o.filter((e=>e.id!==r))]),(0,Yn.c)({type:"success",title:"Success",message:"Commodity source deleted."}))},children:"Delete"})]})]})};var pT=n(6587),hT=n.n(pT);const fT=e=>{let{open:t,onClose:n,csId:i}=e;const{programId:o}=YC(),{data:a=[],mutate:s}=DM(),[l,c]=r.useState(!1),[u,p]=r.useState([]),h=r.useMemo((()=>{const e=a.find((e=>e.id===i));return(0,er.$K)(e)?ti()(e,["id","program_id"]):oT}),[a,i]),[f,m]=r.useState({state:h,dirty:[],errors:eT(h).errors}),g=r.useCallback((e=>{const t=NM()((0,ii.Os)(e),f.dirty),n={...f.state,...e},{errors:r}=eT(n),i=(0,ii.pJ)(n).filter((e=>{let[t,n]=e;return!hT()(n,h[t])}));p(i),m({dirty:t,state:n,errors:r})}),[f.dirty,f.state,h]);return r.useEffect((()=>{p([]),c(!1)}),[t]),(0,w.jsxs)(d.o9,{maxWidth:"md",title:"Edit commodity source",open:t,onClose:n,children:[(0,w.jsx)(d.cZ,{children:l?(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.xu,{children:u.map((e=>{let[t,n]=e;const r=aT[t],i=iT(h[t]),o=iT(n);return(0,w.jsxs)(d.ZT,{children:["You have updated ",r," from ",(0,w.jsx)("em",{children:i})," to ",(0,w.jsx)("em",{children:o})]},t)}))}),(0,w.jsx)(d.ZT,{children:"This change will affect all volume entries associated with this commodity source. Once this change is made, it cannot be undone. Do you wish to proceed?"})]}):(0,w.jsx)(rT,{commoditySourceFormState:f,onSetFormState:g})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:e=>l?c(!1):n(e,"iconClick"),variant:"outlined",color:"secondary",children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:async e=>{if(!l)return void c(!0);const t=a.map((e=>e.id===i?{...e,...f.state}:e));(0,er.$K)(o)&&(0,er.$K)(i)&&(await qC.Z.updateCommoditySource(o,i,f.state),n(e,"iconClick"),await s(t),(0,Yn.c)({type:"success",title:"Success",message:"Commodity source updated."}))},disabled:nT(f.errors,(0,ii.Os)(f.state))||(0,er.yD)(u),children:l?"Save and finish":"Save changes"})]})]})},mT=e=>{let{commoditySourceList:t,isLoading:n}=e;const[i,o]=r.useState(!1),[a,s]=r.useState(!1),[l,c]=r.useState(null),u=[...sT,{headerName:"",field:"actions",minWidth:120,type:"actions",sortable:!1,getActions:e=>{let{id:t,row:n}=e;return[(0,w.jsx)(d.zx,{onClick:()=>{return e=n.id,c(e),void o(!0);var e},size:"small",variant:"outlined",color:"secondary",children:(0,w.jsx)(d.le,{type:"pencil"})},t),(0,w.jsx)(d.zx,{size:"small",variant:"outlined",color:"secondary",onClick:()=>{return e=n.id,c(e),void s(!0);var e},children:(0,w.jsx)(d.le,{type:"delete"})},t)]}}];return(0,w.jsxs)(d.Xk,{children:[(0,w.jsx)(d.DQ.DataGrid,{loading:n,columns:u,rows:t}),i&&(0,er.$K)(l)&&(0,w.jsx)(fT,{open:!0,onClose:()=>{c(null),o(!1)},csId:l}),a&&(0,er.$K)(l)&&(0,w.jsx)(dT,{open:!0,onClose:()=>{c(null),s(!1)},csId:l})]})},gT=()=>{const{programId:e}=YC(),[t,n]=r.useState(!1),{isRegrowOrProgramAdmin:i}=dS(),{data:o=[],isLoading:a,error:s}=DM();return(0,w.jsxs)(XC,{children:[(0,w.jsxs)(JC,{children:[(0,w.jsxs)(d.Kq,{width:e=>e.fixedWidths.md,children:[(0,w.jsx)(QC,{children:"Commodity Sources"}),(0,w.jsx)(d.ZT,{variant:"body1",children:"Commodity sources are the growers, suppliers, aggregators, or other vendors that you acquire your commodities from. Use sources to provide more granular information about yields in your regions."})]}),(0,w.jsx)(d.Kq,{justifyContent:"flex-end",children:i&&(0,w.jsx)(d.zx,{variant:"contained",onClick:()=>n(!0),children:"Add commodity source"})})]}),(0,er.$K)(s)?(0,w.jsx)(d.xu,{alignSelf:"center",children:(0,w.jsxs)(d.bZ,{severity:"error",children:[(0,w.jsx)(d.Cd,{children:"Error"}),"Something went wrong while fetching your commodity sources."]})}):(0,er.yD)(o)?(0,w.jsx)(uT,{}):(0,w.jsx)(mT,{commoditySourceList:o,isLoading:a}),t&&(0,er.$K)(e)&&(0,w.jsx)(cT,{open:t,onClose:()=>n(!1)})]})};var yT=n(92541);const vT=e=>{var t;const n=(0,h.T)(),{programId:i}=(0,wi.tZ)(),{data:o,...a}=(0,Ju.Z)((0,er.$K)(null===e||void 0===e?void 0:e.customProgramId)||(0,er.$K)(i)?pS.fetchSupplySheds(null!==(t=null===e||void 0===e?void 0:e.customProgramId)&&void 0!==t?t:i):null,(()=>qC.Z.getSupplySheds(i).then((t=>{const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";const n=(0,lS.YC)(e,t).map((e=>({...e,subsections:(0,lS.YC)([...e.subsections],t)})));return n}(t.data,null===e||void 0===e?void 0:e.sortKey);return n((0,yT.AG)(r)),r})))),s=(0,r.useMemo)((()=>[]),[]);return{programSupplySheds:null!==o&&void 0!==o?o:s,...a}},bT=e=>{let{id:t}=e;return(0,w.jsx)(d.xu,{display:"flex",width:"100%",height:"100%",flexGrow:1,minHeight:0,alignItems:"center",justifyContent:"center",children:(0,w.jsx)(On.D8,{id:t})})};var _T=n(84735),wT=n.n(_T),xT=n(43603),kT=n.n(xT);let CT=function(e){return e[e.NAME=0]="NAME",e[e.REGIONS=1]="REGIONS",e[e.CROPS=2]="CROPS",e[e.KPIS_AND_GROWER_DEMOGRAPHICS=3]="KPIS_AND_GROWER_DEMOGRAPHICS",e[e.SUMMARY=4]="SUMMARY",e}({});const ST=["conventional_till","conservation_till"],MT=["reduce_till","no_till"],TT={conventional_till:"Conventional Till",conservation_till:"Conservation Till (Reduced Till/No Till)"},ET=["cover_crop","no_cover_crop"],PT={cover_crop:"Yes",no_cover_crop:"No"},IT={consistent_adopter:"Consistent Adopter",new_adopter:"New Adopter"},OT={new_adopter:'"New Adopter" is defined as implementing a practice in the selected cycle, but NOT having implemented that practice within the previous 2 harvest to harvest cultivation cycles.',consistent_adopter:'"Consistent Adopter" is defined as implementing a practice in the selected cycle, AND having implemented that practice within the previous 2 harvest to harvest cultivation cycles.'},LT={field:"Field",farm:"Farm"},RT={name:null,regions:null,crops:null,cropRotations:null,fieldOrFarm:"field",size:{min:null,max:null},coverCrop:null,coverCropAdopterType:null,tillage:null,tillageAdopterType:null},jT=["regions","crops","cropRotations","size","tillage","tillageAdopterType","coverCrop","coverCropAdopterType"],DT={variant:"h5"},AT={variant:"body1"};var NT=n(87295);const FT={crops:null,cropRotations:null,coverCrop:null,coverCropAdopterType:null,tillage:null,tillageAdopterType:null,size:{min:null,max:null},fieldOrFarm:"field"},zT=(e,t)=>{const n=((e,t)=>e.reduce(((e,n)=>{var r,i,o;switch(n.filter_type){case"cover_crop":return{...e,coverCrop:null!==(r=wT()(n.practices))&&void 0!==r?r:null,fieldOrFarm:n.aggregation_level};case"cover_crop_adopter":return{...e,coverCropAdopterType:null!==(i=wT()(n.practices))&&void 0!==i?i:null,fieldOrFarm:n.aggregation_level};case"crop":return{...e,crops:n.crop_ids};case"crop_rotation":return{...e,cropRotations:n.crop_rotation_csvs};case"size":const a=e=>(0,NT.$F)({value:e,from:"m2",to:t}).value;return{...e,size:{min:(0,LS.Gr)(n.min_area_m2,a),max:(0,LS.Gr)(n.max_area_m2,a)},fieldOrFarm:n.aggregation_level};case"tillage":const s=n.practices.includes("conventional_till")?"conventional_till":(0,er.Of)(kT()(n.practices,["no_till","reduce_till"]))?"conservation_till":null;return{...e,tillage:s,fieldOrFarm:n.aggregation_level};case"tillage_adopter":return{...e,tillageAdopterType:null!==(o=wT()(n.practices))&&void 0!==o?o:null,fieldOrFarm:n.aggregation_level}}return e}),FT))(e.field_level_filters,t),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"subsection";return e.filter((e=>e.unit_type===t)).map((e=>e.unit_id))}(e.sourcing_regions);return{...yS()(e,["id","name","status"]),regions:r,...n}},BT=(e,t)=>{const n=(e=>{const[t,n]=XM()(e,(e=>e.field_level_filters.some((e=>"tillage"===e.filter_type&&1===kT()(e.practices,MT).length))));if((0,er.Of)(t)){const e=`Data Scenario(s) with invalid tillage type: ${JSON.stringify(t,null,2)}`;(0,C.e)(e)}return n})(e);return n.map((e=>zT(e,t)))},UT=(e,t)=>[{value:e,config:DT},{value:t,config:AT}],$T=()=>{const{programId:e}=(0,wi.tZ)(),t=(0,h.C)(S.DC),n=(0,h.C)((t=>nS(t,e))),i=(0,r.useMemo)((()=>{var e;return null!==(e=null===n||void 0===n?void 0:n.data_scenarios)&&void 0!==e?e:[]}),[n]),o=(0,r.useMemo)((()=>BT(i,t)),[i,t]);return{dataScenarios:i,flattenedScenarios:o}},VT=e=>{let{isDisabled:t,onClick:n}=e;return(0,w.jsx)(d.u,{id:"data scenarios creation button tooltip",placement:"bottom",title:t&&"Please add supply sheds and sub-regions on the 'Supply Shed Configuration' page to enable data scenario creation",children:(0,w.jsx)("div",{children:(0,w.jsx)(d.zx,{variant:"contained",startIcon:(0,w.jsx)(d.le,{type:"plus"}),onClick:n,disabled:t,children:"Create Data Scenario"})})})},qT=e=>{var t,n;let{stepItems:r,currentStep:i,onUpdateStep:o,finalStepComponent:a,hideBackNextControls:s=!1}=e;const l=r[0],c=r[r.length-1],u=null!==(t=r[ZT(i-1,r)])&&void 0!==t?t:l,p=null!==(n=r[ZT(i+1,r)])&&void 0!==n?n:c;return(0,w.jsxs)(HT,{children:[!s&&(0,w.jsx)(d.zx,{disabled:i===(null===l||void 0===l?void 0:l.value),onClick:()=>u&&o(u.value),startIcon:(0,w.jsx)(d.le,{type:"chevron-left"}),children:"Back"}),(0,w.jsx)(qy,{items:r,onItemClick:o,selectedItem:i}),!s&&(i===(null===c||void 0===c?void 0:c.value)&&(0,er.$K)(a)?a:(0,w.jsx)(d.zx,{disabled:i===(null===c||void 0===c?void 0:c.value)||(null===p||void 0===p?void 0:p.disabled),onClick:()=>void 0!==p&&o(null===p||void 0===p?void 0:p.value),endIcon:(0,w.jsx)(d.le,{type:"chevron-right"}),children:"Next"}))]})},ZT=(e,t)=>t.findIndex((t=>t.value&&t.value===e)),HT=Z.ZP.div`
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;

  /* Unfortunately, using styled(FluroSteps) doesn't work, and I have to target classname */
  .fluro-steps-container {
    width: fit-content;
    margin: -10px 0 0 0;
    padding: 0;
  }
  .fluro-step {
    width: unset;
    max-width: 150px;
    .line {
      top: 15px;
    }
  }
`,GT=e=>{let{title:t,subtitle:n,handleBackClick:r,handleClose:i,handleContinueClick:o,isFirstStep:a,isLastStep:s,isNextDisabled:l,isVisible:c,children:u,isSubmitting:p}=e;return(0,w.jsxs)(d.o9,{id:"create-data-scenarios-modal",onClose:i,title:t,description:n,open:c,maxWidth:a?"sm":"lg",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.xu,{pb:2,children:u})}),(0,w.jsxs)(d.kX,{children:[!a&&(0,w.jsx)(d.xu,{mr:"auto",children:(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:r,children:"Back"})}),(0,w.jsx)(d.zx,{onClick:i,variant:"outlined",color:"secondary",children:"Cancel"}),(0,w.jsx)(d.fl,{variant:"contained",onClick:o,disabled:l,loading:s&&p,children:s?"Finish":"Continue"})]})]})},WT=[e=>(0,er.Ft)(e)||(0,er.Of)(e),'Invalid "crops" value'],YT=[e=>(0,er.Ft)(e)||(0,er.Of)(e),'Invalid "crop rotations" value'],KT=[e=>(0,er.$K)(e)&&((0,er.Of)(e.crops)||(0,er.Of)(e.cropRotations)),"Must select at least one value on this step"],XT=[e=>(0,er.$K)(e)&&!((0,er.Of)(e.crops)&&(0,er.Of)(e.cropRotations)),"Cannot choose options from both crops and crop rotations."],JT=[e=>!isNaN(Number(e)),"Invalid input"],QT=e=>[t=>(0,LS.FY)(t)&&Number(t)>=e,`Value must be at least ${e}`],eE=e=>[t=>(0,LS.FY)(t)&&Number(t)<=e,`Value must be at most ${e}`],tE=e=>[e=>(0,er.$K)(e)&&((0,er.kK)(e.min)||(0,er.kK)(e.max)||e.min<=e.max),`Minimum must be less than or equal to maximum ${e} size`],nE=[QT(0)],rE=[(e=>[t=>(0,LS.FY)(t)&&Number(t)>e,`Value must be greater than ${e}`])(0)],iE=[e=>(0,er.kK)(e)||ST.includes(e),"Invalid tillage value"],oE=[e=>(0,er.$K)(e)&&((0,er.kK)(e.tillageAdopterType)||"conservation_till"===e.tillage),`Tillage adopter can only be set when ${TT.conservation_till} is selected`],aE=[e=>(0,er.$K)(e)&&((0,er.kK)(e.coverCropAdopterType)||"cover_crop"===e.coverCrop),'Cover crop adopter can only be set when cover crop is set to "yes"'];var sE=n(36927),lE=n.n(sE);const cE=[zM,VM,ZM(30),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[n=>(0,er.HD)(n)&&!(t?e.includes(n):e.map($M()).includes(n.toLowerCase())),"Disallowed value"]}([uS.K5])],uE=[zM,(e=>[t=>(0,er.kJ)(t)&&t.length>=e,`Must have at least ${e} ${(0,xi.E4)("value",e)}`])(1),[e=>(0,er.kJ)(e)&&lE()(e,dE).length===e.length,"Must have no duplicate values"]];var dE;const pE=e=>{const{allPass:t,failure:{message:n}}=QM(cE)(e.name),{allPass:r,failure:{message:i}}=QM(uE)(e.regions),{allPass:o,errors:a}=(e=>{const{allPass:t,failure:{message:n}}=QM([WT])(e.crops),{allPass:r,failure:{message:i}}=QM([YT])(e.cropRotations),{allPass:o,failure:{message:a}}=QM([KT,XT])(e);return{allPass:t&&r&&o,errors:{crops:n||a,cropRotations:i||a}}})(yS()(e,["crops","cropRotations"])),{allPass:s,errors:l}=(c=e.fieldOrFarm,e=>{const{allPass:t,failure:n}=QM(nE)(e.min),{allPass:r,failure:i}=QM(rE)(e.max),{allPass:o,failure:a}=QM([tE(c)])(e);return{allPass:t&&r&&o,errors:{min:n.message||a.message,max:i.message||a.message}}})(e.size);var c;const{allPass:u,errors:d}=(e=>{const{allPass:t,failure:{message:n}}=QM([iE])(e.tillage),{allPass:r,failure:{message:i}}=QM([oE])(e);return{allPass:t&&r,errors:{tillageAdopterType:i,tillage:n||i}}})(yS()(e,["tillage","tillageAdopterType"])),{allPass:p,errors:h}=(e=>{const{allPass:t,failure:n}=QM([aE])(e);return{allPass:t,errors:{coverCrop:n.message,coverCropAdopterType:n.message}}})(yS()(e,["coverCrop","coverCropAdopterType"]));return{allPass:[t,r,o,s,u,p].every(er.fQ),errors:{fieldOrFarm:"",name:n,regions:i,...a,size:l,...d,...h}}};var hE=n(27441),fE=n.n(hE),mE=n(34135),gE=n.n(mE);const yE=(e,t)=>{let{size:n,fieldOrFarm:r}=e;const i=(0,LS.Gr)(n.min,(e=>(0,NT.$F)({value:e,from:t,to:"m2"}).value)),o=(0,LS.Gr)(n.max,(e=>(0,NT.$F)({value:e,from:t,to:"m2"}).value));return(0,er.$K)(i)||(0,er.$K)(o)?{filter_type:"size",aggregation_level:r,min_area_m2:null!==i&&void 0!==i?i:void 0,max_area_m2:null!==o&&void 0!==o?o:void 0}:null},vE=e=>{let{tillage:t,fieldOrFarm:n}=e;return(0,LS.Gr)((()=>{switch(t){case null:return null;case"conventional_till":return["conventional_till"];case"conservation_till":return["reduce_till","no_till"]}})(),(e=>({filter_type:"tillage",aggregation_level:n,practices:e})))},bE=e=>{let{tillageAdopterType:t,fieldOrFarm:n}=e;return(0,LS.Gr)(t,(e=>({filter_type:"tillage_adopter",aggregation_level:n,practices:[e]})))},_E=e=>{let{coverCrop:t,fieldOrFarm:n}=e;return(0,LS.Gr)(t,(e=>({filter_type:"cover_crop",aggregation_level:n,practices:[e]})))},wE=e=>{let{coverCropAdopterType:t,fieldOrFarm:n}=e;return(0,LS.Gr)(t,(e=>({filter_type:"cover_crop_adopter",aggregation_level:n,practices:[e]})))},xE=(e,t)=>{const n=(0,h.T)(),{programId:r}=(0,wi.tZ)(),i=(0,h.C)(S.DC);return o=>{t(!0);const{allPass:a}=pE(o);if(!a)return t(!1),(0,Yn.c)({type:"error",title:"Unable to create Data Senario",message:"Please review choices, and resolve any errors."});const s=((e,t)=>{const n=fE()([yE(e,t),(i=e.crops,(0,LS.Gr)(i,(e=>({filter_type:"crop",crop_ids:e})))),(r=e.cropRotations,(0,LS.Gr)(r,(e=>({filter_type:"crop_rotation",crop_rotation_csvs:e})))),vE(e),bE(e),_E(e),wE(e)]);var r,i,o;return{name:String(e.name),sourcing_regions:(o=e.regions,(null!==o&&void 0!==o?o:[]).map((e=>({unit_type:"subsection",unit_id:e})))),field_level_filters:n}})(o,i);qC.Z.addDataScenario(r,s).then((t=>{n((0,HC.Ob)()),(0,Yn.c)({type:"success",title:"New Data Scenario created",message:"Please note that you won't be able to use your new scenario until we finish processing the scenario data."}),e()})).catch((e=>{t(!1),(0,Yn.c)({type:"error",title:"Unable to create Data Scenario",message:"Something went wrong on our end and we cannot create your Data Scenario. Please try again later."})}))}},kE=()=>{const{programId:e}=YC(),t=(0,h.C)((t=>nS(t,e))),n=(0,r.useMemo)((()=>{var e;return(0,er.Of)(kT()((0,ii.Os)(uS.X7),null!==(e=null===t||void 0===t?void 0:t.outcome_kpis)&&void 0!==e?e:[]))}),[null===t||void 0===t?void 0:t.outcome_kpis]),i=(0,r.useMemo)((()=>{var e;return(0,er.Of)(kT()((0,ii.Os)(uS.lL),null!==(e=null===t||void 0===t?void 0:t.practice_kpis)&&void 0!==e?e:[]))}),[null===t||void 0===t?void 0:t.practice_kpis]);return{isKPIAvailable:(0,r.useMemo)((()=>(e=>t=>{var n,r;const i=[...null!==(n=null===e||void 0===e?void 0:e.practice_kpis)&&void 0!==n?n:[],...null!==(r=null===e||void 0===e?void 0:e.outcome_kpis)&&void 0!==r?r:[]];return(0,er.kJ)(t)?(0,OS.p)(i,t):i.includes(t)})(null!==t&&void 0!==t?t:void 0)),[t]),hasAnyActiveOutcomeKpi:n,hasAnyActivePracticeKpi:i}};var CE=n(72926),SE=n.n(CE);const ME=e=>{let{kpi:t,summarizeBy:n,year:i,topNCrops:o,subsectionIds:a=[],cropIds:s=[],dataScenarioId:l,debounceMS:c=uS.tI}=e;const{programId:u}=YC(),{isKPIAvailable:d}=kE(),[p,h]=(0,r.useState)(!1),[f,m]=(0,r.useState)(""),g=(0,r.useMemo)((()=>d(uS.SP[t])),[d,t]),y=(0,er.$K)(u)&&(0,er.$K)(i)&&(0,er.Of)(s)&&(0,er.Of)(a),v=g&&y,b=v?(e=>{let{kpi:t,summarizeBy:n,year:r,topNCrops:i,subsectionIds:o,cropIds:a,dataScenarioId:s}=e;const l=e=>e.slice().sort(lS.nO).join(","),c=!["crop_rotation_number","crop_rotation_fallow"].includes(t),u={year_of_interest:r,summarize_by:l(c?n:n.filter((e=>!["crop_type","crop_rotations"].includes(e))))};return`${t}?${(0,fo.CT)(u)}${c?`&include_crop_types=${l(a)}`:""}&include_subsections=${l(o)}${(0,er.fQ)(i)?`&top_n=${i}`:""}${(0,er.$K)(s)?`&data_scenario_id=${s}`:""}`})({kpi:t,summarizeBy:n,year:i,topNCrops:o,cropIds:s,subsectionIds:a,dataScenarioId:l}):"",{data:_,isLoading:w}=(0,Ju.Z)(v?pS.fetchKPIData(u,f):null);return(0,r.useEffect)((()=>{if(!v)return;m(""),h(!0);const e=setTimeout((()=>{m(b),h(!1)}),c);return()=>clearTimeout(e)}),[v,b,c]),{response:_,loading:w||p}};var TE=n(29204),EE=n.n(TE);const PE=e=>{let{min:t,max:n,defaultVal:r="Any"}=e;return(0,er.kK)(t)&&(0,er.kK)(n)?r:`${(0,_u.gU)(null!==t&&void 0!==t?t:0,uS.$s)}${(0,er.$K)(n)?` - ${(0,_u.gU)(n,uS.$s)}`:"+"}`},IE=(e,t,n)=>$S(e)?t(e):(0,er.$K)(n)?n(e):`${t(e)}*`,OE=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"N/A";return(0,er.kK)(e)||(0,er.yD)(e)?r:(0,OS.p)(e,t)?"All crops":(0,xi.wR)(e.map((e=>IE(e,n))).join(", "))},LE=e=>(0,er.Of)(e)?qf()(e.map((e=>e.split(","))).flat()).filter((e=>$S(Number(e)))).map((e=>Number(e))).sort(((e,t)=>e-t)):null,RE=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"N/A";return(0,er.Of)(e)?(0,xi.wR)(e.map((e=>e.split(",").map((e=>IE(Number(e),t))).join("-"))).join(", ")):n},jE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Any";return(0,er.$K)(e)?(0,xi.wR)(IT[e]):t},DE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Any";return(0,er.$K)(e)?(0,xi.wR)(PT[e]):t},AE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Any";return(0,er.$K)(e)?(0,xi.wR)(TT[e]):t},NE=(e,t,n,r)=>{const i=jT.filter((t=>"size"===t?(0,er.$K)(e[t].min)&&(0,er.$K)(e[t].max):(0,er.$K)(e[t]))).map((i=>{switch(i){case"regions":return UT("Sourcing regions",zE(((e,t)=>(0,er.Of)(e)?t(e):"N/A")(e[i],n),{charLimit:100,splitString:"; ",listItemsLabel:"supply sheds"}));case"crops":return UT("Crops",OE(e[i],t,r));case"cropRotations":return UT("Crop rotations",zE(RE(e[i],r),{charLimit:100,splitString:", ",listItemsLabel:"crop rotations"}));case"size":return UT("Field size",PE(e[i]));case"tillage":return UT("Tillage",AE(e[i]));case"tillageAdopterType":return UT("Tillage adopter",jE(e[i]));case"coverCrop":return UT("Cover crop",DE(e[i]));case"coverCropAdopterType":return UT("Cover crop adopter",jE(e[i]));default:return[{value:"default"},{value:"default"}]}}));return i},FE=(e,t,n)=>{var r;const{id:i,subsections:o}=e;if((null===(r=t(i))||void 0===r?void 0:r.subsections.length)===o.length)return"All Subregions";const a=o.length<=n?o.map((e=>e.name)):EE()(o.slice(0,n).map((e=>e.name)),`+${o.length-n} more`);return a.join(", ")},zE=(e,t)=>{const n=e.split(t.splitString),r=n.length;if(r<=1)return e;let i=0;return n.map((e=>e.length)).reduce(((e,n,r)=>e+n>t.charLimit&&0===i?i=r:e+n)),i>0?`${n.slice(0,i).join(t.splitString)}${t.splitString}+${r-i} more ${t.listItemsLabel}...`:e},BE=e=>{var t;let{subregionIds:n,cropIds:i}=e;const{programId:o}=(0,wi.tZ)(),a=FS(),s=(0,h.C)((e=>nS(e,o))),l=(new Date).getFullYear()-1,c=null!==(t=null===s||void 0===s?void 0:s.crop_year_end)&&void 0!==t?t:l,{response:u,loading:d}=ME({kpi:"crop_rotation_common_rotations",summarizeBy:["crop_rotations"],year:SE()([l,c]),topNCrops:20,subsectionIds:n,cropIds:i,debounceMS:0}),p=r.useMemo((()=>((e,t)=>(0,er.o8)(e)?[]:(0,ii.pJ)(e).sort(((e,t)=>{let[n,r]=e,[i,o]=t;return o-r})).map((e=>{let[n]=e;return{label:RE([n],t),value:n}})))(null===u||void 0===u?void 0:u.crop_rotations_summary,a)),[null===u||void 0===u?void 0:u.crop_rotations_summary,a]);return{cropRotations:r.useMemo((()=>{var e;return(0,ii.Os)(null!==(e=null===u||void 0===u?void 0:u.crop_rotations_summary)&&void 0!==e?e:{})}),[null===u||void 0===u?void 0:u.crop_rotations_summary]),cropRotationOptions:p,loading:d}};function UE(){const{cropByValue:e}=(0,NS.n)();return(0,r.useMemo)((()=>{const t=(0,ii.pJ)(uS.jc).map((t=>{let[n,r]=t;const i=e[r];if((0,er.kK)(i))return null;const{label:o,color:a,icon:s}=i;return{label:o,value:String(n),color:null!==a&&void 0!==a?a:"",icon:null!==s&&void 0!==s?s:"",type:r}})).filter(er.$K);return(0,lS.Rt)(t,"label")}),[e])}const $E=e=>{const{data:t}=AS(),n=UE();return(0,r.useMemo)((()=>nM(null!==t&&void 0!==t?t:[],n,e)),[n,t,e])};var VE=n(5516),qE=n.n(VE);const ZE=e=>{let{children:t}=e;const n=(0,d.Fg)();return(0,w.jsx)(d.xu,{minHeight:16,children:(0,w.jsx)(d.ZT,{variant:"body2",color:n.palette.error.main,children:t})})};var HE=n(6535);const GE=Z.ZP.div`
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  display: inline-block;
  width: 8px;
  border-radius: 4px 0px 0px 4px;
  border-left: 8px solid #9fd8dc;
  border-color: ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
  border-left-color: ${e=>{let{headerColor:t}=e;return null!==t&&void 0!==t?t:"#9fd8dc"}};
`,WE=(0,Z.ZP)(Ai.L)`
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.secondary}};
  margin: 0;
  padding: 8px 20px 8px 20px;
`,YE=Z.ZP.div`
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
`,KE=Z.ZP.div`
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
`,XE=Z.ZP.div`
  &.expandable {
    .fluro-dropdown-base__dropdown {
      max-height: 270px;
      position: relative;
    }
  }
  .fluro-dropdown-base {
    display: block;
  }
  .fluro-dropdown-base__dropdown {
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    max-height: 300px;
    margin-top: 4px;
    position: absolute;
  }
  .fluro-dropdown-base__button-wrap {
    .fluro-chip.light,
    .fluro-chip.light.active,
    .fluro-chip.light:hover,
    .fluro-chip.light:hover:not(.fluro-chip.light.noHover),
    .fluro-chip.light.active:hover:not(.fluro-chip.light.active.noHover) {
      background-color: white;
      border-radius: 4px;
      border: 1px solid #f1f1f1;
      box-shadow: none;
      color: #464646;
      font-size: 14px;
      height: 44px;
      padding: 3px 10px;
      .md-icon {
        color: rgba(0, 0, 0, 0.54);
      }
    }
    .fluro-chip.disabled {
      border-radius: 4px;
      border: 1px solid #f1f1f1;
      height: 44px;
    }
  }
`,JE=e=>{let{onChange:t,cropRotationOptions:n,allCropRotations:r,selectedCropRotations:i,error:o}=e;const a=(0,d.Fg)(),s=(0,er.yD)(n);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.u,{id:"crop-rotation-select-disabled",title:s?"No common crop rotations found":"",children:(0,w.jsx)(XE,{children:(0,w.jsx)(QE,{children:(0,w.jsx)(HE.b,{className:"area-select-menu",allowSelectAll:!0,allowSearch:!0,noneSelectedLabel:"Select most common rotations",allLabel:"Select all rotations",selectedLabel:"rotations",onSelect:e=>{if("boolean"===typeof e)e&&((0,er.Of)(qE()(r,i))?t(r):t([]));else{const n=(0,jn.ZN)(i,String(e.value));t(n)}},options:n,disabled:s,selected:i})})})}),!s&&((0,er.HH)(o)?(0,w.jsx)(ZE,{children:o}):(0,w.jsx)(d.xu,{minHeight:16,children:(0,w.jsx)(d.ZT,{variant:"body2",color:a.palette.text.secondary,children:"Crops marked with an asterisk (*) are not currently supported and will not be shown in the data displayed"})}))]})},QE=(0,d.zo)("div")`
  .md-selection-control-container {
    height: auto;
    max-width: 220px;
  }
`,eP=e=>{let{selectedIds:t,allAvailableIds:n}=e;return e=>{if("boolean"===typeof e)return e?n:[];{const n=((0,er.$K)(e.values)?e.values:(0,er.$K)(e.value)?[e.value]:[]).map(Number);return e.selected?NM()(t,n):qE()(t,n)}}},tP=e=>{let{cropTypeOptions:t,selectedCropIds:n,onChange:i,preselectAll:o=!1,withAdmin:a=!1}=e;const{isRegrowAdmin:s}=dS(),l=s&&a,c=(0,r.useMemo)((()=>t.every((e=>{let{value:t}=e;return n.includes(Number(t))}))),[t,n]),u=(0,r.useMemo)((()=>{const e=t.map((e=>{let{label:t,value:n}=e;return{label:l?`${t} (#${n})`:t,value:n}}));return(0,lS.Rt)(e,"label")}),[t,l]),d=(0,r.useMemo)((()=>{const[e,t]=XM()(u,(e=>{let{value:t}=e;return n.includes(Number(t))}));return[...e,...t]}),[u,n]),p=(0,r.useMemo)((()=>t.map((e=>{let{value:t}=e;return Number(t)}))),[t]),[h,f]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{h&&o&&p.length&&!n.length&&(i(p),f(!1))}),[n,p,i,o,h]),(0,r.useEffect)((()=>{qE()(n,p).length>0&&i(kT()(n,p))}),[n,p,i]),(0,w.jsx)(HE.b,{id:"crop-type-filter",className:"area-select-menu",allowSelectAll:!0,allowSearch:!0,allLabel:"Select all crops",selectedLabel:"crops",noneSelectedLabel:"Select crops",options:d,selected:n.map(String),disabled:!1,allSelected:c,onSelect:e=>{const t=eP({selectedIds:n,allAvailableIds:p})(e);i(t)},onClear:()=>{i([])}})},nP=e=>{let{subregionIds:t,selectedCropIds:n,onChange:r,error:i}=e;const{cropOptions:o}=$E(t);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(XE,{children:(0,w.jsx)(tP,{cropTypeOptions:o,onChange:r,selectedCropIds:n})}),(0,w.jsx)(ZE,{children:i})]})},rP=e=>{let{label:t,children:n}=e;return(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",flexBasis:250,children:[(0,w.jsx)(d.xu,{mb:2,children:(0,w.jsx)(d.ZT,{variant:"body2",children:t})}),n]})},iP=e=>(0,w.jsx)(d.xu,{display:"flex",alignItems:"center",height:68,...e});var oP=n(22195);const aP=e=>{var t;return(0,w.jsxs)(On.qZ,{size:20,viewBox:"0 0 30 30",children:[(0,w.jsx)("mask",{id:"mask0",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"30",height:"30",children:(0,w.jsx)("circle",{cx:"15.1895",cy:"14.5",r:"14.5",fill:"black"})}),(0,w.jsx)("g",{mask:"url(#mask0)",children:(0,w.jsx)("path",{d:"M10.4573 9.66663C9.85949 10.9202 9.41679 12.1845 9.07062 13.4559C8.83298 12.8736 8.57319 12.2988 8.28629 11.7327C8.53905 12.4341 8.75278 13.1815 8.93632 13.964C8.09944 17.2872 7.89056 20.6549 7.37505 24.0009C6.59672 19.5958 7.32562 15.191 2.90343 10.7859C5.91498 14.7233 5.85634 18.5384 6.07231 22.3649C4.62023 20.8065 3.05516 19.3746 0.689453 18.8353C4.15352 20.7704 5.33761 23.018 5.81176 25.1635C5.21438 23.9162 4.86712 23.1923 3.46751 23.14C4.64349 23.9957 4.82545 26.4795 4.81926 27.5306L8.64107 29.6573C8.91659 26.1451 8.8697 19.1213 9.26401 15.582C9.8171 18.754 9.92228 25.9802 10.0443 29.6573L11.4475 30.0826C11.9589 27.7966 12.4748 21.428 12.9775 19.1403C13.4182 17.1348 14.1159 15.1799 15.5366 13.3687C13.237 15.4197 11.9383 18.6286 11.0214 22.279C10.8227 19.5292 10.3288 16.877 9.41913 14.3622C9.63993 12.8255 9.96198 11.2661 10.4573 9.66663ZM12.9775 19.1403C14.5297 21.4494 14.459 28.6242 14.7217 30.9333L16.6461 30.7695C16.6669 27.1265 16.2628 18.7804 17.0032 15.1405C18.1621 20.7794 17.4333 28.4739 16.5927 30.9333L18.9314 30.0826C19.0393 25.5299 19.7549 15.6423 23.0468 10.3118C20.6199 12.4992 19.5727 15.7615 18.2281 18.792C18.1615 17.2371 17.7316 15.7906 17.1724 14.3821C17.2057 14.2452 17.2367 14.1082 17.2732 13.9713C17.2281 14.0819 17.1884 14.1985 17.1449 14.3109C16.9138 13.7338 16.6637 13.1625 16.4049 12.5937C16.6166 13.3972 16.7894 14.1411 16.9408 14.8522C16.0659 17.3069 15.5386 20.1447 15.2324 23.2259C14.8284 21.7404 14.1619 20.349 12.9775 19.1403ZM29.6895 11.001C26.9733 14.1563 25.7248 18.312 24.2629 22.3223C24.3839 20.7009 24.4111 19.0791 24.0454 17.4577C24.0795 19.0793 23.9428 20.5998 23.5679 21.9781C23.4728 19.7684 23.1072 17.558 22.4391 15.3483C23.0206 18.595 22.7198 21.7329 22.6997 24.9051C22.0895 22.8638 21.6472 20.7995 20.4561 18.8366C20.5524 18.2048 20.653 17.5735 20.7462 16.9416C20.6082 17.515 20.4766 18.0882 20.3453 18.6615C20.1997 18.4311 20.0466 18.2016 19.878 17.9744C20.036 18.2732 20.1723 18.575 20.295 18.8786C19.7526 21.2748 19.3692 27.2611 19.3991 29.6573L20.3346 29.232C19.8351 26.9322 20.0632 21.4674 20.4058 19.1676C21.231 21.4031 21.0765 26.9129 21.2701 29.232L25.0909 27.5306C25.5236 23.1368 26.5795 16.0653 29.6895 11.001ZM13.1924 20.6863C12.8406 22.5056 12.625 28.3589 12.8507 30.0826L13.7862 30.9333C13.3927 29.1398 13.0806 22.4798 13.1924 20.6863ZM27.6487 21.7197C26.7272 23.0869 26.311 26.0177 26.1244 27.5306H26.7925C26.73 26.0861 26.8996 23.1752 27.6487 21.7197Z",fill:null!==(t=e.fill)&&void 0!==t?t:"white"})})]})},sP=e=>{var t,n;return(0,w.jsxs)(On.qZ,{size:20,viewBox:"8 8 20 20",children:[(0,w.jsx)("path",{d:"M18.1266 21.4072C18.1266 21.6211 17.9537 21.794 17.7399 21.794C17.526 21.794 17.3531 21.6211 17.3531 21.4072C17.3531 18.7607 16.2126 15.606 10.7783 15.606C12.2457 15.606 13.4856 18.2626 13.4856 21.4072C13.4856 25.4012 15.1556 27.982 17.7399 27.982C20.3245 27.982 21.9941 25.4012 21.9941 21.4072C21.9941 18.2626 23.2341 15.606 24.7014 15.606C19.2672 15.606 18.1266 18.7607 18.1266 21.4072Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#6B8761"}),(0,w.jsx)("path",{d:"M17.74 18.8807C18.2671 17.3159 19.4575 15.7794 21.9822 15.142C21.8562 11.1275 20.1142 8.25781 17.74 8.25781C15.3661 8.25781 13.6237 11.1275 13.498 15.1424C16.0224 15.7794 17.2128 17.3159 17.74 18.8807ZM18.5135 12.1253C18.9404 12.1253 19.287 12.4719 19.287 12.8988C19.287 13.3258 18.9404 13.6724 18.5135 13.6724C18.0865 13.6724 17.74 13.3258 17.74 12.8988C17.74 12.4719 18.0865 12.1253 18.5135 12.1253ZM17.74 14.4459C18.1669 14.4459 18.5135 14.7924 18.5135 15.2194C18.5135 15.6463 18.1669 15.9929 17.74 15.9929C17.313 15.9929 16.9664 15.6463 16.9664 15.2194C16.9664 14.7924 17.313 14.4459 17.74 14.4459ZM16.1929 12.8988C16.6199 12.8988 16.9664 13.2454 16.9664 13.6724C16.9664 14.0993 16.6199 14.4459 16.1929 14.4459C15.766 14.4459 15.4194 14.0993 15.4194 13.6724C15.4194 13.2454 15.766 12.8988 16.1929 12.8988Z",fill:null!==(n=e.fill)&&void 0!==n?n:"#6B8761"})]})},lP=e=>{var t;return(0,w.jsx)(On.qZ,{size:20,viewBox:"0 0 18 16",children:(0,w.jsx)("path",{d:"M17.1031 12.1726L11.3235 6.72096L16.2938 2.68775L14.4446 0.944035L10.1676 5.63095L4.38636 0.18087C4.32562 0.123531 4.25349 0.0780442 4.1741 0.0470092C4.09471 0.0159743 4.00961 0 3.92366 0C3.83772 0 3.75262 0.0159743 3.67323 0.0470092C3.59383 0.0780442 3.52171 0.123531 3.46097 0.18087L1.95844 1.59774C1.92191 1.63302 1.89006 1.67237 1.86362 1.71491L0.455916 3.45092C0.407726 3.49326 0.369074 3.54432 0.342266 3.60106C0.315458 3.6578 0.301043 3.71904 0.299881 3.78115C0.298719 3.84325 0.310834 3.90494 0.335503 3.96253C0.360172 4.02012 0.396889 4.07244 0.443465 4.11636C0.490041 4.16028 0.545521 4.1949 0.606595 4.21817C0.66767 4.24143 0.733087 4.25285 0.798945 4.25176C0.864803 4.25066 0.929752 4.23707 0.989918 4.21179C1.05008 4.18651 1.10423 4.15006 1.14914 4.10462L3.11109 2.68775C3.17185 2.63045 3.24399 2.585 3.32337 2.55399C3.40276 2.52298 3.48785 2.50702 3.57378 2.50702C3.65971 2.50702 3.7448 2.52298 3.82419 2.55399C3.90358 2.585 3.97571 2.63045 4.03648 2.68775C4.09724 2.74505 4.14544 2.81307 4.17832 2.88793C4.2112 2.9628 4.22813 3.04304 4.22813 3.12407C4.22813 3.2051 4.2112 3.28534 4.17832 3.3602C4.14544 3.43506 4.09724 3.50308 4.03648 3.56038L2.53395 5.41048C2.44731 5.49816 2.40014 5.61413 2.40238 5.73395C2.40463 5.85378 2.4561 5.9681 2.54597 6.05285C2.63583 6.13759 2.75707 6.18613 2.88414 6.18824C3.01121 6.19036 3.13419 6.14588 3.22717 6.06418L5.18912 4.64731C5.31227 4.53037 5.47964 4.46434 5.65441 4.46377C5.82918 4.46319 5.99703 4.5281 6.12105 4.64423C6.24506 4.76036 6.31508 4.91818 6.31569 5.08299C6.3163 5.2478 6.24747 5.40608 6.12432 5.52303L4.61852 7.37312C4.56823 7.4147 4.52749 7.46553 4.4988 7.52249C4.47011 7.57946 4.45407 7.64136 4.45168 7.70438C4.44929 7.76741 4.46059 7.83023 4.48489 7.88898C4.50919 7.94774 4.54597 8.00119 4.59298 8.04604C4.63999 8.0909 4.69624 8.12622 4.75825 8.14982C4.82027 8.17343 4.88675 8.18483 4.95361 8.18332C5.02046 8.18181 5.08629 8.16742 5.14703 8.14104C5.20778 8.11465 5.26216 8.07684 5.30684 8.02991L7.26879 6.61304C7.3915 6.49732 7.55794 6.43231 7.73148 6.43231C7.90503 6.43231 8.07146 6.49732 8.19418 6.61304C8.31689 6.72876 8.38583 6.88571 8.38583 7.04936C8.38583 7.21301 8.31689 7.36995 8.19418 7.48567L6.69165 9.33577C6.59907 9.42348 6.54723 9.54227 6.54754 9.66602C6.54785 9.78977 6.60027 9.90834 6.69328 9.99564C6.78629 10.0829 6.91227 10.1318 7.0435 10.1315C7.17473 10.1312 7.30047 10.0818 7.39305 9.9941L9.355 8.57723C9.47771 8.46151 9.64415 8.3965 9.81769 8.3965C9.99123 8.3965 10.1577 8.46151 10.2804 8.57723C10.4031 8.69295 10.472 8.84989 10.472 9.01354C10.472 9.17719 10.4031 9.33414 10.2804 9.44986L8.77786 11.3C8.69122 11.3876 8.64405 11.5036 8.64629 11.6234C8.64853 11.7433 8.70001 11.8576 8.78987 11.9423C8.87974 12.0271 9.00098 12.0756 9.12805 12.0777C9.25512 12.0798 9.3781 12.0354 9.47108 11.9537L11.433 10.5368C11.5557 10.4211 11.7222 10.3561 11.8957 10.3561C12.0693 10.3561 12.2357 10.4211 12.3584 10.5368C12.4811 10.6525 12.5501 10.8095 12.5501 10.9731C12.5501 11.1368 12.4811 11.2937 12.3584 11.4094L10.8657 13.2626C10.7791 13.3503 10.7319 13.4662 10.7341 13.5861C10.7364 13.7059 10.7879 13.8202 10.8777 13.905C10.9676 13.9897 11.0888 14.0383 11.2159 14.0404C11.343 14.0425 11.4659 13.998 11.5589 13.9163L13.5209 12.4994C13.6436 12.3837 13.81 12.3187 13.9836 12.3187C14.1571 12.3187 14.3235 12.3837 14.4463 12.4994C14.569 12.6152 14.6379 12.7721 14.6379 12.9358C14.6379 13.0994 14.569 13.2563 14.4463 13.3721L12.9437 15.2222C12.8571 15.3098 12.8099 15.4258 12.8122 15.5456C12.8144 15.6655 12.8659 15.7798 12.9557 15.8645C13.0456 15.9493 13.1669 15.9978 13.2939 15.9999C13.421 16.002 13.544 15.9576 13.637 15.8759L15.4779 14.5484C15.5244 14.5257 15.5678 14.4978 15.6071 14.4652L17.1096 13.0483C17.1705 12.9906 17.2186 12.922 17.2513 12.8467C17.2839 12.7713 17.3004 12.6906 17.2998 12.6092C17.2992 12.5277 17.2815 12.4473 17.2477 12.3723C17.214 12.2974 17.1648 12.2295 17.1031 12.1726ZM14.098 2.3609C14.1666 2.29616 14.254 2.25205 14.3491 2.23416C14.4443 2.21626 14.543 2.22539 14.6326 2.26038C14.7223 2.29537 14.7989 2.35465 14.8528 2.43073C14.9068 2.5068 14.9355 2.59625 14.9355 2.68775C14.9355 2.77925 14.9068 2.8687 14.8528 2.94478C14.7989 3.02085 14.7223 3.08013 14.6326 3.11512C14.543 3.15011 14.4443 3.15924 14.3491 3.14135C14.254 3.12345 14.1666 3.07934 14.098 3.0146C14.0062 2.92788 13.9546 2.81032 13.9546 2.68775C13.9546 2.56518 14.0062 2.44762 14.098 2.3609Z",fill:null!==(t=e.fill)&&void 0!==t?t:"white"})})},cP=e=>{var t;return(0,w.jsx)(On.qZ,{size:20,viewBox:"0 0 17 20",children:(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0243 8.89043H15.3731L15.3731 8.8906C15.9346 8.8906 16.3999 9.36916 16.3999 9.92399C16.3999 10.4796 15.9346 10.9387 15.3731 10.9387H14.9653C14.9078 11.0531 14.8495 11.1682 14.7913 11.264L14.7716 11.2834C14.2102 11.8958 13.6487 12.5082 13.0479 13.1019C12.4668 13.6949 11.8471 14.2691 11.2078 14.8053C11.1495 14.8629 11.0716 14.8823 10.9944 14.8629C10.9172 14.8442 10.8589 14.7866 10.8203 14.729L10.3944 13.9057L9.98727 14.4037C9.94868 14.4613 9.89042 14.4995 9.81324 14.4995C9.75574 14.4995 9.69747 14.4613 9.63921 14.4232L9.23213 14.0209L9.29039 14.8247C9.31006 14.901 9.27147 14.9586 9.21321 15.0161C9.17462 15.0543 9.11636 15.0737 9.0581 15.0737H8.99983C7.54706 14.7671 5.90067 13.7905 4.46758 12.3743C3.09283 11.0157 2.12432 9.46485 1.7755 8.08675H1.42668C0.864479 8.08675 0.399902 7.62687 0.399902 7.07205C0.399902 6.51646 0.865254 6.05735 1.42668 6.05735H1.83377C1.89127 5.94296 1.94954 5.8278 2.0078 5.73209L2.02747 5.71265C2.5889 5.10024 3.15032 4.48784 3.75111 3.89412C4.33222 3.30117 4.95191 2.72689 5.59129 2.19076L5.61096 2.17131C5.70781 2.11448 5.82358 2.05691 5.9401 1.99933V1.59704C5.9401 1.04219 6.4047 0.582336 6.96612 0.582336C7.52833 0.582336 7.9929 1.04221 7.9929 1.59704V1.94175C9.38814 2.28631 10.9566 3.24351 12.3322 4.60292C13.707 5.96146 14.6755 7.51233 15.0243 8.89043ZM10.7841 14.939C10.3384 14.939 9.97067 15.3024 9.97067 15.7428C9.97067 16.1832 10.3384 16.5466 10.7841 16.5466C11.2297 16.5466 11.6171 16.1832 11.6171 15.7428C11.6171 15.3031 11.2494 14.939 10.7841 14.939ZM8.05661 16.6998C8.05661 16.2594 8.42434 15.896 8.87001 15.896V15.896C9.33536 15.896 9.70308 16.2788 9.70308 16.7193C9.70308 17.1597 9.31568 17.5044 8.87001 17.5037C8.42434 17.5037 8.05661 17.1403 8.05661 16.6998ZM9.97067 18.6139C9.97067 18.1734 10.3384 17.81 10.7841 17.81C11.2494 17.81 11.6171 18.1742 11.6171 18.6139C11.6171 19.0543 11.2297 19.4177 10.7841 19.4177C10.3384 19.4177 9.97067 19.0543 9.97067 18.6139Z",fill:null!==(t=e.fill)&&void 0!==t?t:"white"})})},uP=e=>{var t;return(0,w.jsx)(On.qZ,{...e,viewBox:"0 0 28 31",children:(0,w.jsx)("g",{transform:"translate(-822 -379)",children:(0,w.jsx)("path",{d:"M848.164 388.767C848.164 386.52 846.392 384.672 844.119 384.445 843.481 382.79 841.83 381.608 839.887 381.608 839.036 381.608 838.243 381.838 837.564 382.231 836.792 380.901 835.316 380 833.62 380 831.37 380 829.51 381.584 829.165 383.654 828.981 383.632 828.796 383.618 828.606 383.618 826.111 383.618 824.089 385.563 824.089 387.964 824.089 388.081 824.098 388.196 824.107 388.312 822.842 389.082 822 390.436 822 391.983 822 393.35 822.658 394.568 823.684 395.365 823.679 395.443 823.671 395.521 823.671 395.6 823.671 398 825.693 399.946 828.189 399.946 828.936 399.946 829.64 399.768 830.261 399.459 831.121 400.054 832.354 400.798 832.95 400.65 832.95 400.65 833.172 403.957 833.124 404.797 833.033 406.395 833.115 407.449 832.764 408.888L837.093 409C837.093 409 836.815 406.404 836.78 405.333 836.745 404.261 837.128 402.287 837.128 402.287L839.012 400.412C839.737 400.889 840.613 401.161 841.558 401.161 843.894 401.161 845.815 399.451 846.051 397.264 847.771 396.65 849 395.058 849 393.188 849 392.085 848.569 391.081 847.865 390.314 848.055 389.833 848.164 389.313 848.164 388.767ZM834.621 399.846C834.162 399.926 833.38 398.566 832.825 397.461 833.44 397.763 834.135 397.937 834.873 397.937 835.063 397.937 835.249 397.922 835.432 397.9 835.29 398.784 835.038 399.772 834.621 399.846ZM836.571 400.716C835.509 400.999 836.145 398.884 836.449 397.659 836.669 397.58 836.882 397.488 837.085 397.378 837.207 398.271 837.61 399.076 838.207 399.713 837.69 400.155 837.094 400.576 836.571 400.716Z",fillRule:"evenodd",fill:null!==(t=e.fill)&&void 0!==t?t:"white"})})})},dP=e=>{var t;return(0,w.jsx)(On.qZ,{size:20,viewBox:"8 6 20 20",children:(0,w.jsx)("path",{d:"M22.3679 17.9006H20.7767L21.4781 23.2088C21.5828 23.9996 21.7188 23.9996 21.8759 23.9996H22.3993C22.682 23.9996 22.6924 24.043 22.6505 23.198L22.3679 17.9006ZM25.2154 19.9914C25.0583 19.8289 25.0688 19.5798 25.2363 19.4064C25.3933 19.2439 25.6341 19.2656 25.7911 19.4281C25.9482 19.5906 25.9377 19.8397 25.7702 19.9914C25.6027 20.1431 25.3724 20.1539 25.2154 19.9914ZM18.4526 23.458C18.4108 23.9996 18.4108 23.9996 18.7458 23.9996H19.154C19.489 23.9996 19.489 23.9996 19.5728 23.458L20.18 19.6664H18.7353L18.4526 23.458ZM15.5738 18.6048L11.7527 18.9298L14.5688 19.9372C14.8619 20.0456 15.155 19.8939 15.2493 19.5906L15.5738 18.6048ZM13.6894 20.2622L12.1505 19.7206L12.4751 23.458C12.5169 23.9996 12.5169 23.9996 12.8519 23.9996H13.2812C13.5638 23.9996 13.5638 23.9996 13.5847 23.458L13.6894 20.2622ZM11.334 19.6448C13.8779 18.1281 16.7672 19.1356 20.1486 19.1248C21.1326 19.1248 21.6246 19.1248 21.7502 19.1248C24.0743 19.1248 24.3883 23.9996 26.5763 22.613L26.5553 18.4531C27.508 18.5506 27.8325 18.7131 28 18.1281C27.3405 17.9006 26.9531 17.6623 26.1052 16.4382C23.1635 12.8308 22.2946 11 19.154 11H11.3445C10.4232 11 9.59621 11.4442 9.59621 12.7441C9.59621 14.5424 9.61715 15.8965 8.77966 17.0448C7.78514 17.0448 7.24078 17.5106 7 18.5614C9.86839 18.3448 10.3185 16.4165 10.3185 12.7441C10.3185 12.2891 10.842 12.2891 10.842 12.7441V15.8532C10.842 17.9223 9.62762 18.3556 9.58574 19.2981L9.40778 23.458C9.38684 23.9996 9.38684 23.9996 9.72183 23.9996H10.1825C10.5174 23.9996 10.507 23.9996 10.6012 23.458L11.334 19.6448Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#490E6C"})})},pP={cover_cropping:(0,w.jsx)(zi.C,{color:oP.cI.cover_cropping,children:(0,w.jsx)(aP,{})}),crop_rotation:(0,w.jsx)(zi.C,{color:oP.cI.crop_rotation,children:(0,w.jsx)(sP,{fill:"white"})}),tillage:(0,w.jsx)(zi.C,{color:oP.cI.tillage,children:(0,w.jsx)(lP,{})}),fertilizer_usage:(0,w.jsx)(zi.C,{color:oP.cI.fertilizer_usage,children:(0,w.jsx)(cP,{})}),living_root:(0,w.jsx)(zi.C,{color:oP.cI.living_root,children:(0,w.jsx)(uP,{})}),lulc:(0,w.jsx)(zi.C,{color:oP.cI.lulc,children:(0,w.jsx)(dP,{fill:"white"})})},hP=e=>{let{icon:t,titleText:n,children:r}=e;const i=(0,d.Fg)();return(0,w.jsx)(d.Kq,{flex:"1 1 50%",children:(0,w.jsxs)(d.Xk,{sx:{flexGrow:1},children:[(0,w.jsxs)(d.xu,{p:4,display:"flex",gap:2,alignItems:"center",borderBottom:`1px solid ${i.palette.semanticPalette.stroke.secondary}`,children:[t,(0,w.jsx)(d.ZT,{variant:"h4",children:n})]}),r]})})},fP=e=>{let{children:t}=e;return(0,w.jsx)(d.Kq,{margin:4,children:t})},mP=e=>{let{children:t}=e;const n=(0,d.Fg)();return(0,w.jsx)(d.Kq,{padding:4,gap:2,borderTop:`1px solid ${n.palette.semanticPalette.stroke.secondary}`,children:t})},gP=e=>{let{adopterType:t,setAdopterType:n,error:r}=e;return(0,w.jsx)(mP,{children:(0,w.jsxs)(d.nv,{select:!0,label:"Adopter type (optional)",SelectProps:{displayEmpty:!0,renderValue:e=>(0,LS.WG)(e)?"Any":IT[e]},variant:"outlined",value:null!==t&&void 0!==t?t:"",onChange:e=>{let{target:{value:t}}=e;return n(""===t?null:t)},error:(0,er.HH)(r),helperText:r||" ",children:[(0,w.jsx)(d.sN,{value:"",children:"Any"}),(0,w.jsx)(d.sN,{value:"new_adopter",children:(0,w.jsx)(yP,{adopterType:"new_adopter"})}),(0,w.jsx)(d.sN,{value:"consistent_adopter",children:(0,w.jsx)(yP,{adopterType:"consistent_adopter"})})]})})},yP=e=>{let{adopterType:t}=e;return(0,w.jsxs)(d.xu,{display:"flex",gap:2,children:[IT[t],(0,w.jsx)(d.u,{id:`option-${t}`,placement:"right",title:OT[t],children:(0,w.jsx)("div",{children:(0,w.jsx)(d.JO,{type:"info-circled"})})})]})},vP=e=>{var t;let{coverCropAndAdopter:{coverCrop:n,coverCropAdopterType:i},setCoverCropAndAdopter:o,errors:a}=e;const s=r.useCallback((e=>"cover_crop"===e),[]),l=r.useCallback((e=>{o({coverCrop:n,coverCropAdopterType:s(e.coverCrop)?i:null,...e})}),[n,i,o,s]);return(0,w.jsxs)(hP,{titleText:"Cover Crop",icon:null!==(t=pP.cover_cropping)&&void 0!==t?t:(0,w.jsx)(w.Fragment,{}),children:[(0,w.jsxs)(fP,{children:[ET.map((e=>(0,w.jsx)(d.xu,{margin:2,children:(0,w.jsx)(d.t8,{label:PT[e],control:(0,w.jsx)(d.XZ,{checked:n===e,onChange:t=>l({coverCrop:t.target.checked?e:null}),inputProps:{"aria-label":`select ${e}`}})})},e))),(0,w.jsx)(ZE,{children:a.coverCrop})]}),s(n)&&(0,w.jsx)(gP,{adopterType:i,setAdopterType:e=>l({coverCropAdopterType:e}),error:a.coverCropAdopterType})]})};var bP=n(88355),_P=n(34785);const wP=e=>{var t,n;let{value:i,setValue:o,required:a,customPredicates:s=[],InputProps:l={},externalError:c}=e;const[u,d]=r.useState(""),p=r.useRef(i),h=r.useCallback((e=>{1!==e.key.length||/[\d.-]/.test(e.key)||e.preventDefault()}),[]),f=r.useMemo((()=>[...a?[zM,VM]:[],JT]),[a]),m=r.useCallback(QM([...f,...s]),[f,s]),g=r.useCallback((e=>{const t=e.target.value,{allPass:n,failure:r}=m(t);d(r.message),n&&(!1===a&&(0,er.ke)(t)?o(null):o(Number(t)))}),[m,a,o]);return(0,w.jsxs)(_P.N,{children:[(0,w.jsx)(bP.X,{type:"number",defaultValue:null!==(t=p.current)&&void 0!==t?t:void 0,onKeyDown:h,onChange:g,...l}),(0,w.jsx)(ZE,{children:null!==(n=u||c)&&void 0!==n?n:""})]})},xP=e=>{let{measurement:t,size:{min:n,max:r},fieldOrFarm:i,setSize:o,errors:a}=e;return(0,w.jsxs)(d.xu,{mt:4,minHeight:102,children:[(0,w.jsx)(d.ZT,{variant:"body2",children:`${LT[i]} size, in ${(0,mS.O)(t)} (optional)`}),(0,w.jsxs)(d.xu,{display:"flex",gap:2,children:[(0,w.jsx)(d.xu,{width:200,children:(0,w.jsx)(wP,{required:!1,value:n,externalError:a.min,InputProps:{placeholder:`Minimum ${i} Size`,min:0},setValue:e=>o({max:r,min:e})})}),(0,w.jsx)(kP,{children:"-"}),(0,w.jsx)(d.xu,{width:200,children:(0,w.jsx)(wP,{required:!1,value:r,externalError:a.max,InputProps:{placeholder:`Maximum ${i} Size`,min:0},setValue:e=>o({min:n,max:e})})})]})]})},kP=e=>(0,w.jsx)(d.xu,{display:"flex",alignItems:"center",height:44,...e}),CP=e=>{var t;let{tillageAndTillageAdopter:{tillage:n,tillageAdopterType:i},setTillageAndTillageAdopter:o,errors:a}=e;const s=r.useCallback((e=>"conservation_till"===e),[]),l=r.useCallback((e=>{o({tillage:n,tillageAdopterType:s(e.tillage)?i:null,...e})}),[n,s,i,o]);return(0,w.jsxs)(hP,{titleText:"Tillage",icon:null!==(t=pP.tillage)&&void 0!==t?t:(0,w.jsx)(w.Fragment,{}),children:[(0,w.jsxs)(fP,{children:[ST.map((e=>(0,w.jsx)(d.xu,{margin:2,children:(0,w.jsx)(d.t8,{label:TT[e],control:(0,w.jsx)(d.XZ,{checked:n===e,onChange:t=>l({tillage:t.target.checked?e:null}),inputProps:{"aria-label":`select ${e}`}})})},e))),(0,w.jsx)(ZE,{children:a.tillage})]}),s(n)&&(0,w.jsx)(gP,{adopterType:i,setAdopterType:e=>l({tillageAdopterType:e}),error:a.tillageAdopterType})]})},SP=e=>{let{children:t}=e;return(0,w.jsx)(d.xu,{display:"flex",alignItems:"stretch",flexGrow:1,minWidth:0,justifyContent:"space-between",gap:4,mb:4,children:t})},MP=e=>{var t,n;let{supplyShed:i,selectedAreas:o,selectedSubsections:a,handleSupplyShedCheckboxChange:s,handleSubsectionCheckboxChange:l}=e;const{programSupplySheds:c}=vT(),u=(0,h.C)(iS),p=(0,h.C)(S.DC),[f,m]=(0,r.useState)(!1),g=r.useMemo((()=>YS(c)),[c]),y=o.includes(i.id),v=a.filter((e=>{var t;return null===(t=g[i.id])||void 0===t?void 0:t.includes(e)}));return(0,er.o8)(g[i.id])?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap",mb:4,children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",children:[(0,w.jsx)(d.XZ,{checked:y,onChange:()=>s(i.id),indeterminate:(null===(t=g[i.id])||void 0===t?void 0:t.length)!==v.length&&0!==v.length}),(0,w.jsx)(d.xu,{onClick:()=>m(!f),children:(0,w.jsx)(d.le,{fontSize:"h4",type:f?"chevron-down":"chevron-right"})}),(0,w.jsx)(zi.C,{inline:!0,size:13,color:u(i.id),className:"area-circle"}),(0,w.jsx)(d.xu,{ml:2,children:(0,w.jsx)(d.ZT,{fontWeight:y?"bold":"normal",component:"span",children:i.name})})]}),(0,w.jsx)(d.ZT,{fontWeight:y?"bold":"normal",children:(0,In.Kr)(Math.round(null!==(n=i.total_field_area_ha)&&void 0!==n?n:0),p)})]},i.id),f&&(0,w.jsx)(d.xu,{display:"flex",ml:6,flexDirection:"column",children:(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",children:i.subsections.map((e=>{var t;const n=a.includes(e.id);return(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap",mb:4,children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",children:[(0,w.jsx)(d.XZ,{checked:n,onChange:()=>l(i.id,e.id)}),(0,w.jsx)(zi.C,{inline:!0,size:13,color:u(i.id),className:"area-circle"}),(0,w.jsx)(d.xu,{ml:2,children:(0,w.jsx)(d.ZT,{component:"span",fontWeight:n?"bold":"normal",children:e.name})})]}),(0,w.jsx)(d.ZT,{fontWeight:n?"bold":"normal",noWrap:!0,children:(0,In.Kr)(Math.round(null!==(t=e.field_area_ha)&&void 0!==t?t:0),p)})]},e.id)}))})})]})},TP=r.createContext(null);function EP(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function PP(e,t){const n=t.viewState||t;let r=!1;if("longitude"in n&&"latitude"in n){const t=e.center;e.center=new t.constructor(n.longitude,n.latitude),r=r||t!==e.center}if("zoom"in n){const t=e.zoom;e.zoom=n.zoom,r=r||t!==e.zoom}if("bearing"in n){const t=e.bearing;e.bearing=n.bearing,r=r||t!==e.bearing}if("pitch"in n){const t=e.pitch;e.pitch=n.pitch,r=r||t!==e.pitch}return n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),r}const IP=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function OP(e){if(!e)return null;if("string"===typeof e)return e;if("toJS"in e&&(e=e.toJS()),!e.layers)return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map((e=>{const n=t[e.ref];let r=null;if("interactive"in e&&(r={...e},delete r.interactive),n){r=r||{...e},delete r.ref;for(const e of IP)e in n&&(r[e]=n[e])}return r||e}));return{...e,layers:n}}function LP(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!LP(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"===typeof e&&"object"===typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){if(!t.hasOwnProperty(i))return!1;if(!LP(e[i],t[i]))return!1}return!0}return!1}const RP={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},jP={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},DP={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},AP=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],NP=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class FP{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{const t=this.props[DP[e.type]];t&&t(e)},this._onPointerEvent=e=>{"mousemove"!==e.type&&"mouseout"!==e.type||this._updateHover(e);const t=this.props[RP[e.type]];if(t){if(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type){const t=this._hoveredFeatures||this._map.queryRenderedFeatures(e.point,{layers:this.props.interactiveLayerIds});e.features=t}t(e),delete e.features}},this._onCameraEvent=e=>{if(!this._internalUpdate){const t=this.props[jP[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){const t=this.props;this.props=e;const n=this._updateSettings(e,t);n&&this._createShadowTransform(this._map);const r=this._updateSize(e),i=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){const n=FP.savedMaps.pop();if(!n)return null;const r=n.map,i=r.getContainer();for(t.className=i.className;i.childNodes.length>0;)t.appendChild(i.childNodes[0]);r._container=t,n.setProps({...e,styleDiffing:!1}),r.resize();const{initialViewState:o}=e;return o&&(o.bounds?r.fitBounds(o.bounds,{...o.fitBoundsOptions,duration:0}):n._updateViewState(o,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",(()=>r.fire("load"))),n}_initialize(e){const{props:t}=this,n={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||zP()||null,container:e,style:OP(t.mapStyle)},r=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),t.gl){const e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}const i=new this._MapClass(n);r.padding&&i.setPadding(r.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),this._createShadowTransform(i);const o=i._render;i._render=e=>{this._inRender=!0,o.call(i,e),this._inRender=!1};const a=i._renderTaskQueue.run;i._renderTaskQueue.run=e=>{a.call(i._renderTaskQueue,e),this._onBeforeRepaint()},i.on("render",(()=>this._onAfterRepaint()));const s=i.fire;i.fire=this._fireEvent.bind(this,s),i.on("resize",(()=>{this._renderTransform.resize(i.transform.width,i.transform.height)})),i.on("styledata",(()=>this._updateStyleComponents(this.props,{}))),i.on("sourcedata",(()=>this._updateStyleComponents(this.props,{})));for(const l in RP)i.on(l,this._onPointerEvent);for(const l in jP)i.on(l,this._onCameraEvent);for(const l in DP)i.on(l,this._onEvent);this._map=i}recycle(){FP.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){const t=function(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){const{viewState:t}=e;if(t){const e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:i,pitch:o,bearing:a}=r,s=n.isMoving();s&&(r.cameraElevationReference="sea");const l=PP(r,{...EP(n.transform),...e});if(s&&(r.cameraElevationReference="ground"),l&&t){const e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=i!==r.zoom),e.rotate||(e.rotate=a!==r.bearing),e.pitch||(e.pitch=o!==r.pitch)}return s||PP(n.transform,e),l}_updateSettings(e,t){const n=this._map;let r=!1;for(const i of AP)i in e&&!LP(e[i],t[i])&&(r=!0,n[`set${i[0].toUpperCase()}${i.slice(1)}`](e[i]));return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor),e.mapStyle!==t.mapStyle){const t={diff:e.styleDiffing};return"localIdeographFontFamily"in e&&(t.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(OP(e.mapStyle),t),!0}return!1}_updateStyleComponents(e,t){const n=this._map;let r=!1;return n.style.loaded()&&("light"in e&&!LP(e.light,t.light)&&(r=!0,n.setLight(e.light)),"fog"in e&&!LP(e.fog,t.fog)&&(r=!0,n.setFog(e.fog)),"terrain"in e&&!LP(e.terrain,t.terrain)&&(e.terrain&&!n.getSource(e.terrain.source)||(r=!0,n.setTerrain(e.terrain)))),r}_updateHandlers(e,t){const n=this._map;let r=!1;for(const i of NP){const o=e[i];LP(o,t[i])||(r=!0,o?n[i].enable(o):n[i].disable())}return r}_updateHover(e){var t;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=e.type,o=(null===(t=this._hoveredFeatures)||void 0===t?void 0:t.length)>0;let a;if("mousemove"===i)try{a=this._map.queryRenderedFeatures(e.point,{layers:n.interactiveLayerIds})}catch(r){a=[]}else a=[];const s=a.length>0;!s&&o&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=a,s&&!o&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=i}else this._hoveredFeatures=null}_fireEvent(e,t,n){const r=this._map,i=r.transform,o="string"===typeof t?t:t.type;return"move"===o&&this._updateViewState(this.props,!1),o in jP&&("object"===typeof t&&(t.viewState=EP(i)),this._map.isMoving())?(r.transform=this._renderTransform,e.call(r,t,n),r.transform=i,r):(e.call(r,t,n),r)}_onBeforeRepaint(){const e=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&e.fire(n);this._internalUpdate=!1;const t=this._map.transform;this._map.transform=this._renderTransform,this._onAfterRepaint=()=>{this._map.transform=t}}}function zP(){let e=null;if("undefined"!==typeof location){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.MapboxAccessToken}catch(ra){}try{e=e||{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(t){}return e}FP.savedMaps=[];const BP=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function UP(e,t){if(!e)return null;const n=e.map,r={getMap:()=>n,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>e.transform.locationPoint(t.LngLat.convert(n)),unproject:n=>e.transform.pointLocation(t.Point.convert(n)),queryTerrainElevation:(t,r)=>{const i=n.transform;n.transform=e.transform;const o=n.queryTerrainElevation(t,r);return n.transform=i,o}};for(const i of function(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))"_"!==r[0]&&"function"===typeof e[r]&&"fire"!==r&&"setEventedParent"!==r&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}(n))i in r||BP.includes(i)||(r[i]=n[i].bind(n));return r}const $P="undefined"!==typeof document?r.useLayoutEffect:r.useEffect,VP=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];const qP=r.createContext(null),ZP={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:e=>console.error(e.error),RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},HP=(0,r.forwardRef)(((e,t)=>{const i=(0,r.useContext)(TP),[o,a]=(0,r.useState)(null),s=(0,r.useRef)(),{current:l}=(0,r.useRef)({mapLib:null,map:null});(0,r.useEffect)((()=>{const t=e.mapLib;let r,o=!0;return Promise.resolve(t||Promise.resolve().then(n.t.bind(n,27770,23))).then((t=>{if(o){if(t.Map||(t=t.default),!t||!t.Map)throw new Error("Invalid mapLib");if(!t.supported(e))throw new Error("Map is not supported by this browser");!function(e,t){for(const n of VP)n in t&&(e[n]=t[n]);t.RTLTextPlugin&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()&&e.setRTLTextPlugin(t.RTLTextPlugin,(e=>{e&&console.error(e)}),!1)}(t,e),e.reuseMaps&&(r=FP.reuse(e,s.current)),r||(r=new FP(t.Map,e,s.current)),l.map=UP(r,t),l.mapLib=t,a(r),null===i||void 0===i||i.onMapMount(l.map,e.id)}})).catch((t=>{e.onError({type:"error",target:null,originalEvent:null,error:t})})),()=>{o=!1,r&&(null===i||void 0===i||i.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}}),[]),$P((()=>{o&&o.setProps(e)})),(0,r.useImperativeHandle)(t,(()=>l.map),[o]);const c=(0,r.useMemo)((()=>({position:"relative",width:"100%",height:"100%",...e.style})),[e.style]);return r.createElement("div",{id:e.id,ref:s,style:c},o&&r.createElement(qP.Provider,{value:l},e.children))}));HP.displayName="Map",HP.defaultProps=ZP;const GP=HP,WP=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function YP(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const e=t[r];Number.isFinite(e)&&!WP.test(r)?n[r]=`${e}px`:n[r]=e}}function KP(e){const{map:t,mapLib:n}=(0,r.useContext)(qP),o=(0,r.useRef)({props:e});o.current.props=e;const a=(0,r.useMemo)((()=>{let t=!1;r.Children.forEach(e.children,(e=>{e&&(t=!0)}));const i={...e,element:t?document.createElement("div"):null},s=new n.Marker(i).setLngLat([e.longitude,e.latitude]);return s.getElement().addEventListener("click",(e=>{var t,n;null===(n=(t=o.current.props).onClick)||void 0===n||n.call(t,{type:"click",target:s,originalEvent:e})})),s.on("dragstart",(e=>{var t,n;const r=e;r.lngLat=a.getLngLat(),null===(n=(t=o.current.props).onDragStart)||void 0===n||n.call(t,r)})),s.on("drag",(e=>{var t,n;const r=e;r.lngLat=a.getLngLat(),null===(n=(t=o.current.props).onDrag)||void 0===n||n.call(t,r)})),s.on("dragend",(e=>{var t,n;const r=e;r.lngLat=a.getLngLat(),null===(n=(t=o.current.props).onDragEnd)||void 0===n||n.call(t,r)})),s}),[]);return(0,r.useEffect)((()=>(a.addTo(t.getMap()),()=>{a.remove()})),[]),(0,r.useEffect)((()=>{YP(a.getElement(),e.style)}),[e.style]),a.getLngLat().lng===e.longitude&&a.getLngLat().lat===e.latitude||a.setLngLat([e.longitude,e.latitude]),e.offset&&!function(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,o=Array.isArray(t)?t[1]:t?t.y:0;return n===i&&r===o}(a.getOffset(),e.offset)&&a.setOffset(e.offset),a.isDraggable()!==e.draggable&&a.setDraggable(e.draggable),a.getRotation()!==e.rotation&&a.setRotation(e.rotation),a.getRotationAlignment()!==e.rotationAlignment&&a.setRotationAlignment(e.rotationAlignment),a.getPitchAlignment()!==e.pitchAlignment&&a.setPitchAlignment(e.pitchAlignment),a.getPopup()!==e.popup&&a.setPopup(e.popup),(0,i.createPortal)(e.children,a.getElement())}KP.defaultProps={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};r.memo(KP);function XP(e){return new Set(e?e.trim().split(/\s+/):[])}const JP=r.memo((function(e){const{map:t,mapLib:n}=(0,r.useContext)(qP),o=(0,r.useMemo)((()=>document.createElement("div")),[]),a=(0,r.useRef)({props:e});a.current.props=e;const s=(0,r.useMemo)((()=>{const t={...e},r=new n.Popup(t).setLngLat([e.longitude,e.latitude]);return r.once("open",(e=>{var t,n;null===(n=(t=a.current.props).onOpen)||void 0===n||n.call(t,e)})),r}),[]);if((0,r.useEffect)((()=>{const e=e=>{var t,n;null===(n=(t=a.current.props).onClose)||void 0===n||n.call(t,e)};return s.on("close",e),s.setDOMContent(o).addTo(t.getMap()),()=>{s.off("close",e),s.isOpen()&&s.remove()}}),[]),(0,r.useEffect)((()=>{YP(s.getElement(),e.style)}),[e.style]),s.isOpen()&&(s.getLngLat().lng===e.longitude&&s.getLngLat().lat===e.latitude||s.setLngLat([e.longitude,e.latitude]),e.offset&&!LP(s.options.offset,e.offset)&&s.setOffset(e.offset),s.options.anchor===e.anchor&&s.options.maxWidth===e.maxWidth||(s.options.anchor=e.anchor,s.setMaxWidth(e.maxWidth)),s.options.className!==e.className)){const t=XP(s.options.className),n=XP(e.className);for(const e of t)n.has(e)||s.removeClassName(e);for(const e of n)t.has(e)||s.addClassName(e);s.options.className=e.className}return(0,i.createPortal)(e.children,o)}));const QP=function(e,t,n,i){const o=(0,r.useContext)(qP),a=(0,r.useMemo)((()=>e(o)),[]);return(0,r.useEffect)((()=>{const e=i||n||t,r="function"===typeof t&&"function"===typeof n?t:null,s="function"===typeof n?n:"function"===typeof t?t:null,{map:l}=o;return l.hasControl(a)||(l.addControl(a,null===e||void 0===e?void 0:e.position),r&&r(o)),()=>{s&&s(o),l.hasControl(a)&&l.removeControl(a)}}),[]),a};r.memo((function(e){const t=QP((t=>{let{mapLib:n}=t;return new n.AttributionControl(e)}),{position:e.position});return(0,r.useEffect)((()=>{YP(t._container,e.style)}),[e.style]),null}));r.memo((function(e){const t=QP((t=>{let{mapLib:n}=t;return new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)})}),{position:e.position});return(0,r.useEffect)((()=>{YP(t._controlContainer,e.style)}),[e.style]),null}));const eI=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)({props:e}),i=QP((t=>{let{mapLib:r}=t;const i=new r.GeolocateControl(e),o=i._setupUI;return i._setupUI=e=>{i._container.hasChildNodes()||o(e)},i.on("geolocate",(e=>{var t,r;null===(r=(t=n.current.props).onGeolocate)||void 0===r||r.call(t,e)})),i.on("error",(e=>{var t,r;null===(r=(t=n.current.props).onError)||void 0===r||r.call(t,e)})),i.on("outofmaxbounds",(e=>{var t,r;null===(r=(t=n.current.props).onOutOfMaxBounds)||void 0===r||r.call(t,e)})),i.on("trackuserlocationstart",(e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationStart)||void 0===r||r.call(t,e)})),i.on("trackuserlocationend",(e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationEnd)||void 0===r||r.call(t,e)})),i}),{position:e.position});return n.current.props=e,(0,r.useImperativeHandle)(t,(()=>({trigger:()=>i.trigger()})),[]),(0,r.useEffect)((()=>{YP(i._container,e.style)}),[e.style]),null}));eI.displayName="GeolocateControl";r.memo(eI);const tI=r.memo((function(e){const t=QP((t=>{let{mapLib:n}=t;return new n.NavigationControl(e)}),{position:e.position});return(0,r.useEffect)((()=>{YP(t._container,e.style)}),[e.style]),null}));function nI(e){const t=QP((t=>{let{mapLib:n}=t;return new n.ScaleControl(e)}),{position:e.position});return t.options.unit===e.unit&&t.options.maxWidth===e.maxWidth||(t.options.maxWidth=e.maxWidth,t.setUnit(e.unit)),(0,r.useEffect)((()=>{YP(t._container,e.style)}),[e.style]),null}nI.defaultProps={unit:"metric",maxWidth:100};r.memo(nI);function rI(e,t){if(!e)throw new Error(t)}let iI=0;const oI=function(e){const t=(0,r.useContext)(qP).map.getMap(),n=(0,r.useRef)(e),[,i]=(0,r.useState)(0),o=(0,r.useMemo)((()=>e.id||"jsx-source-"+iI++),[]);(0,r.useEffect)((()=>{if(t){const e=()=>i((e=>e+1));return t.on("styledata",e),e(),()=>{var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(o)){const e=null===(n=t.getStyle())||void 0===n?void 0:n.layers;if(e)for(const n of e)n.source===o&&t.removeLayer(n.id);t.removeSource(o)}}}}),[t]);let a=t&&t.style&&t.getSource(o);return a?function(e,t,n){rI(t.id===n.id,"source id changed"),rI(t.type===n.type,"source type changed");let r="",i=0;for(const a in t)"children"===a||"id"===a||LP(n[a],t[a])||(r=a,i++);if(!i)return;const o=t.type;if("geojson"===o)e.setData(t.data);else if("image"===o)e.updateImage({url:t.url,coordinates:t.coordinates});else if("canvas"!==o&&"video"!==o||1!==i||"coordinates"!==r)if("vector"===o&&"setUrl"in e)switch(r){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn(`Unable to update <Source> prop: ${r}`);else e.setCoordinates(t.coordinates)}(a,e,n.current):a=function(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}(t,o,e),n.current=e,a&&r.Children.map(e.children,(e=>e&&(0,r.cloneElement)(e,{source:o})))||null};let aI=0;const sI=function(e){const t=(0,r.useContext)(qP).map.getMap(),n=(0,r.useRef)(e),[,i]=(0,r.useState)(0),o=(0,r.useMemo)((()=>e.id||"jsx-layer-"+aI++),[]);if((0,r.useEffect)((()=>{if(t){const e=()=>i((e=>e+1));return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}}),[t]),t&&t.style&&t.getLayer(o))try{!function(e,t,n,r){if(rI(n.id===r.id,"layer id changed"),rI(n.type===r.type,"layer type changed"),"custom"===n.type||"custom"===r.type)return;const{layout:i={},paint:o={},filter:a,minzoom:s,maxzoom:l,beforeId:c}=n;if(c!==r.beforeId&&e.moveLayer(t,c),i!==r.layout){const n=r.layout||{};for(const r in i)LP(i[r],n[r])||e.setLayoutProperty(t,r,i[r]);for(const r in n)i.hasOwnProperty(r)||e.setLayoutProperty(t,r,void 0)}if(o!==r.paint){const n=r.paint||{};for(const r in o)LP(o[r],n[r])||e.setPaintProperty(t,r,o[r]);for(const r in n)o.hasOwnProperty(r)||e.setPaintProperty(t,r,void 0)}LP(a,r.filter)||e.setFilter(t,a),s===r.minzoom&&l===r.maxzoom||e.setLayerZoomRange(t,s,l)}(t,o,e,n.current)}catch(a){console.warn(a)}else!function(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}(t,o,e);return n.current=e,null},lI=e=>{const{programId:t}=(0,wi.tZ)(),{data:n,...i}=(0,Ju.Z)((0,er.$K)(t)?pS.fetchSupplyShedGeometries(t):null),[o,a]=r.useState(null),s=(0,r.useMemo)((()=>(0,lS.YC)(null!==n&&void 0!==n?n:[],"id")),[n]);return r.useEffect((()=>{const t=(0,fS.Yr)({geometries:s,type:e});a(t)}),[s,e]),{geometries:s,allGeometryFeatures:o,...i}};var cI=n(27770),uI=n.n(cI);const dI=e=>{let{mapBoundsGeometries:t}=e;const{current:n}=function(){var e;const t=null===(e=(0,r.useContext)(TP))||void 0===e?void 0:e.maps,n=(0,r.useContext)(qP);return(0,r.useMemo)((()=>({...t,current:null===n||void 0===n?void 0:n.map})),[t,n])}(),i=null===n||void 0===n?void 0:n.areTilesLoaded();return(0,r.useEffect)((()=>{if((0,er.X0)(i)||(0,er.kK)(n)||(0,er.kK)(t)||(0,er.yD)(null===t||void 0===t?void 0:t.features))return;const[e,r,o,a]=(0,Fg.VWR)(t);n.fitBounds([[e,r],[o,a]],{padding:10,duration:700})}),[n,t,i]),null},pI=e=>e.si.map,hI=e=>e.si.supplyShedMap,fI=(0,yr.P1)([pI],(e=>e.style)),mI=(0,yr.P1)([pI],(e=>e.initialView)),gI=(0,yr.P1)([hI],(e=>e.selection.layerID)),yI=(0,yr.P1)([hI],(e=>e.interactionType)),vI=(0,yr.P1)([hI],(e=>e.showTools)),bI=(0,yr.P1)([hI],(e=>e.subsectionGeometryById)),_I=(0,yr.P1)([bI],(e=>Object.values(e))),wI=(0,yr.P1)([hI],(e=>e.subsectionSelectedFeatureById)),xI=(0,yr.P1)([wI],(e=>Object.values(e))),kI=(0,yr.P1)([hI],(e=>e.programGeometries)),CI=(0,yr.P1)([hI],(e=>e.showProgramGeometries));var SI=n(41752);const MI={position:"absolute",width:"100%",height:"auto",bottom:0,right:0,left:0,top:`${zu.M+45}px`};uI().workerClass=function(){return new Worker(n.p+"static/js/mapbox-gl-csp-worker.ce6c933f.worker.js")};const TI=e=>{let{children:t,mapRef:n,interactiveLayerIds:i,mapBoundsGeometries:o,onClick:a,onLoad:s,resizeChangeKey:l,style:c=MI,styleSelectors:u=!0,overrideMapStyle:p=null}=e;const f=(0,h.T)(),m=(0,h.C)(fI),g=(0,h.C)(mI),y=(0,r.useRef)(null);(e=>{let{shouldTriggerResize:t,mapRef:n}=e;const i=n.current,o=null===i||void 0===i?void 0:i.areTilesLoaded();(0,r.useEffect)((()=>{(0,er.o8)(t)||(0,er.kK)(i)||(0,er.X0)(o)||i.resize()}),[i,o,t])})({shouldTriggerResize:l,mapRef:null!==n&&void 0!==n?n:y});const v=e=>{f((0,yT.Pf)(e))};return(0,w.jsxs)(GP,{ref:null!==n&&void 0!==n?n:y,initialViewState:g,mapboxAccessToken:"pk.eyJ1IjoiZ3JlYXRvem1lbiIsImEiOiJjbDc4NTB5am8wNWFlM3Bxcjc1Mnd0OW15In0.pnN6uS4xwXMVMqz81gRPcg",style:c,mapStyle:p?SI.ai[p]:m,hash:!0,interactiveLayerIds:i,onClick:a,onLoad:s,children:[(0,er.$K)(o)&&(0,w.jsx)(dI,{mapBoundsGeometries:o}),t,u&&(0,w.jsxs)(d.Kq,{gap:1,direction:"row",position:"absolute",left:20,bottom:60,children:[(0,w.jsx)(d.zx,{variant:"outlined",onClick:()=>v("road"),children:"Road"}),(0,w.jsx)(d.zx,{variant:"outlined",onClick:()=>v("satellite"),children:"Satellite"})]})]})},EI={id:"project-geometries-fill",type:"fill",paint:{"fill-color":["get","color"],"fill-opacity":.8,"fill-outline-color":"white"}},PI={id:"clickable-features-fill",type:"fill",paint:{"fill-color":"#7a7a7a","fill-opacity":.3}},II={id:"clickable-features-line",type:"line",paint:{"line-color":"white","line-opacity":1,"line-width":1}},OI={type:"fill",paint:{"fill-color":"#4988ef","fill-opacity":.8,"fill-outline-color":"white"}},LI={type:"line",paint:{"line-color":"white","line-opacity":1,"line-width":2}},RI="#4988ef",jI=.8,DI="white",AI=2,NI="#4988ef",FI=.8,zI="white",BI=2;var UI=n(35551);const $I=e=>e.si.kpiFilter,VI=(0,UI.C)([$I],(e=>e.visibleSubsectionIds)),qI=(0,yr.P1)([$I],(e=>e.saved)),ZI=(0,yr.P1)([$I],(e=>({years:e.years,selectedCropTypes:e.selectedCropTypes,visibleSubsectionIds:e.visibleSubsectionIds,selectedScenarioId:e.selectedScenarioId}))),HI=(0,yr.P1)([$I],(e=>e.years)),GI=(0,yr.P1)([HI],(e=>e[0])),WI=(0,yr.P1)([$I],(e=>e.selectedCropTypes)),YI=(0,yr.P1)([$I],(e=>{var t;return null!==(t=e.cropHaBySubsectionIdsByYear)&&void 0!==t?t:{}})),KI=(0,yr.P1)([$I],(e=>e.selectedScenarioId)),XI=(0,UI.C)([YI,VI,GI],((e,t,n)=>{const r=null!==n&&void 0!==n?n:(new Date).getFullYear();return(0,ii.pJ)(e).map((e=>{let[n,i]=e;return t.includes(Number(n))&&(0,er.$K)(i[r])?Number(i[r]):0})).reduce(((e,t)=>e+t),0)})),JI=(0,yr.P1)([YI,VI,GI],((e,t,n)=>(0,ii.pJ)(e).some((e=>{let[r,i]=e;return t.includes(Number(r))&&(0,er.$K)(i[null!==n&&void 0!==n?n:(new Date).getFullYear()])})))),QI=(0,yr.P1)((e=>e.si.kpis),(e=>e.bookValues)),eO={width:"100%",height:"100%",position:"relative"},tO=e=>{let{selectedSubsectionIds:t}=e;const n=(0,h.T)(),{programId:i}=YC(),o=(0,h.C)(GI),a=(0,h.C)((e=>JI(e))),[s,l]=(0,r.useState)(null),{isLoading:c,geometries:u,allGeometryFeatures:d}=lI("supply-shed");return(0,r.useEffect)((()=>{const e=(0,fS.Yr)({geometries:u,idsToInclude:t,type:"sub-section"});l(e)}),[u,t]),(0,r.useEffect)((()=>{(0,er.kK)(i)||void 0===o||a||n((0,HC.yK)({programId:i,year:o}))}),[i,n,a,o]),(0,w.jsx)("div",{className:"map-container",children:(0,w.jsx)("div",{className:"kpi-map",children:c?(0,w.jsx)(bT,{id:"loading-map"}):(0,w.jsxs)(TI,{styleSelectors:!1,style:eO,overrideMapStyle:"light",interactiveLayerIds:["clickable-features-fill"],mapBoundsGeometries:(0,er.Of)(null===s||void 0===s?void 0:s.features)?s:d,children:[d&&(0,w.jsx)(oI,{id:"kpi-geometries",type:"geojson",data:d,children:(0,w.jsx)(sI,{...PI})}),s&&(0,w.jsx)(oI,{id:"kpi-clickable-geometries",type:"geojson",data:s,children:(0,w.jsx)(sI,{...EI})})]})})})},nO=e=>{let{onChange:t,selectedSubsections:n,initialSelectedSupplySheds:i=[],mapLoading:o=!1}=e;const{programSupplySheds:a}=vT(),s=r.useMemo((()=>YS(a)),[a]),[l,c]=(0,r.useState)(i),u=e=>{if(l.includes(e)){var r;const i=[];null===(r=s[e])||void 0===r||r.forEach((e=>{n.includes(e)&&i.push(e)})),t(n.filter((e=>!i.includes(e))))}else{var i;const r=[];null===(i=s[e])||void 0===i||i.forEach((e=>{!n.includes(e)&&r.push(e)})),t([...n,...r])}c((0,jn.ZN)(l,e))},d=(e,r)=>{var i;const o=n.includes(r),a=(null===(i=s[e])||void 0===i?void 0:i.length)===n.filter((t=>{var n;return null===(n=s[e])||void 0===n?void 0:n.includes(t)})).length+1;!o&&a&&!l.includes(e)&&c((0,jn.ZN)(l,e)),o&&l.includes(e)&&c((0,jn.ZN)(l,e)),t((0,jn.ZN)(n,r))};return(0,w.jsxs)("div",{className:"areas-step",children:[(0,w.jsxs)("div",{className:"select-areas-column",children:[(0,w.jsxs)("div",{className:"areas-select-row",children:[(0,w.jsx)(Rn.x,{bold:!0,nowrap:!0,children:"Select program regions"}),o&&(0,w.jsx)("div",{className:"areas-loading",children:(0,w.jsx)(On.D8,{className:"progress",id:"si-ap-areas-step"})})]}),(0,w.jsx)(Cd.k,{direction:"column",children:null===a||void 0===a?void 0:a.map((e=>(0,w.jsx)(MP,{supplyShed:e,selectedAreas:l,selectedSubsections:n,handleSupplyShedCheckboxChange:u,handleSubsectionCheckboxChange:d},e.id)))})]}),(0,w.jsx)("div",{className:"map-column",children:(0,w.jsx)(tO,{selectedSubsectionIds:n})})]})};var rO=n(87802);const iO=()=>{const{programSupplySheds:e}=vT(),{getSupplyShedById:t}=zS();return{getSourcingRegionsText:r.useCallback((n=>function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return qS(n,e).reduce(((e,n)=>[...e,`${n.name} - ${FE(n,t,r)}`]),[]).join("; ")}(n,t,e)),[t,e])}},oO=e=>{let{startText:t,values:n,onEdit:r}=e;return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",gap:4,alignItems:"center",children:[(0,w.jsxs)(d.xu,{display:"flex",gap:1,flex:"1",minWidth:"0",children:[(0,w.jsx)(d.ZT,{children:t}),(0,w.jsx)(d.ZT,{sx:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},title:n,children:n})]}),(0,w.jsx)(d.zx,{onClick:r,color:"secondary",variant:"outlined",children:"Edit"})]})},aO=[{title:"Create a new data scenario",subtitle:"Compare the performance of your supply sheds and crops across multiple key metrics.",StepComponent:e=>{var t;let{formState:n,onSetFormState:i}=e;const o=r.useCallback((function(){i({name:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||null})}),[i]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(rO.C,{placeholder:"Scenario name",label:"Name your data scenario",onChange:o,value:null!==(t=n.state.name)&&void 0!==t?t:void 0}),(0,w.jsx)(ZE,{children:tT(n,"name")})]})},order:CT.NAME,isNextDisabled:e=>nT(e,["name"])},{title:"Regions",subtitle:"Select which regions you\u2019d like to focus on.",StepperIconComponent:k.sQ,StepComponent:e=>{var t;let{formState:n,onSetFormState:i}=e;const{programSupplySheds:o}=vT(),a=null!==(t=n.state.regions)&&void 0!==t?t:[],s=r.useMemo((()=>qf()(a.map((e=>HS(o,e))).filter(er.$K))),[]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ZE,{children:tT(n,"regions")}),(0,w.jsx)(nO,{onChange:e=>function(){i({regions:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null})}(e),selectedSubsections:a,initialSelectedSupplySheds:s})]})},order:CT.REGIONS,isNextDisabled:e=>nT(e,["name","regions"])},{title:"Crops",subtitle:"Select which crops or crop rotations you\u2019d like to include.",StepperIconComponent:td.pt,StepComponent:e=>{var t,n,i;let{formState:o,onSetFormState:a}=e;const{isKPIAvailable:s}=kE(),l=null!==(t=o.state.regions)&&void 0!==t?t:[],c=null!==(n=o.state.crops)&&void 0!==n?n:[],u=null!==(i=o.state.cropRotations)&&void 0!==i?i:[],{cropIds:p}=$E(l),{cropRotationOptions:h,cropRotations:f,loading:m}=BE({subregionIds:l,cropIds:p}),g=e=>{a({crops:null,cropRotations:null,...e})};return m?(0,w.jsx)(d.xu,{minHeight:274,display:"flex",alignItems:"center",children:(0,w.jsx)(bT,{id:"loading crop roations"})}):(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(d.xu,{mb:30,children:[(0,w.jsx)(d.xu,{mb:4,children:(0,w.jsx)(d.ZT,{variant:"h5",children:"Select one:"})}),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:3,children:[(0,w.jsx)(rP,{label:"By crop",children:(0,w.jsx)(nP,{onChange:e=>{const t=(0,er.kK)(e)||(0,er.yD)(e)?null:e;g({crops:t})},subregionIds:l,selectedCropIds:c,error:tT(o,"crops")})}),s("crop_rotation")&&(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(iP,{children:(0,w.jsx)(d.ZT,{variant:"h6",children:"Or"})}),(0,w.jsx)(rP,{label:"By crop rotation",children:(0,w.jsx)(JE,{onChange:e=>{const t=(0,er.kK)(e)||(0,er.yD)(e)?null:e;g({cropRotations:t})},cropRotationOptions:h,allCropRotations:f,selectedCropRotations:u,error:tT(o,"cropRotations")})})]})]})]})})},order:CT.CROPS,isNextDisabled:e=>nT(e,["name","regions","crops","cropRotations"])},{title:"KPI\u2019s & Grower Demographics (optional)",StepperIconComponent:td.fE,StepComponent:e=>{let{formState:{state:t,errors:n},onSetFormState:r}=e;const{isKPIAvailable:i}=kE(),o=(0,h.C)(S.DC);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"h5",children:"Select the scale and size of the operations you'd like to view:"}),(0,w.jsxs)(d.xu,{display:"flex",gap:6,children:[(0,w.jsxs)(d.Kq,{my:4,children:[(0,w.jsx)(d.ZT,{variant:"body2",children:"Scale"}),(0,w.jsx)(On.rT,{id:"regrow-baseline-selection",name:"radio",type:"radio",className:"si-toggle-group si-toggle-group--inline select-units margin-top-8",inline:!0,value:t.fieldOrFarm,onChange:e=>r({fieldOrFarm:e}),controls:[{label:"Farm level",value:"farm"},{label:"Field level",value:"field"}]})]}),(0,w.jsx)(xP,{size:t.size,fieldOrFarm:t.fieldOrFarm,measurement:o,setSize:e=>{r({size:e})},errors:n.size})]}),(0,w.jsxs)(d.Kq,{gap:4,children:[(i("tillage")||i("cover_cropping"))&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.iz,{}),(0,w.jsx)(d.ZT,{variant:"h5",children:`(Optional) Select agricultural practices to view at the ${t.fieldOrFarm} level:`})]}),(0,w.jsxs)(SP,{children:[i("tillage")&&(0,w.jsx)(CP,{setTillageAndTillageAdopter:e=>{let{tillage:t,tillageAdopterType:n}=e;r({tillage:t,tillageAdopterType:n})},tillageAndTillageAdopter:yS()(t,["tillage","tillageAdopterType"]),errors:yS()(n,["tillage","tillageAdopterType"])}),i("cover_cropping")&&(0,w.jsx)(vP,{coverCropAndAdopter:yS()(t,["coverCrop","coverCropAdopterType"]),setCoverCropAndAdopter:e=>{let{coverCrop:t,coverCropAdopterType:n}=e;r({coverCrop:t,coverCropAdopterType:n})},errors:yS()(n,["coverCrop","coverCropAdopterType"])})]})]})]})},order:CT.KPIS_AND_GROWER_DEMOGRAPHICS,isNextDisabled:e=>nT(e,(0,ii.Os)(e))},{title:"Summary",subtitle:"Below is a summary of all the elements you have selected for your new data scenario.",StepperIconComponent:k.tE,StepComponent:e=>{var t;let{formState:{state:n},setCurrentStep:i}=e;const o=(0,h.C)(S.DC),a=FS(),{cropIds:s}=$E(null!==(t=n.regions)&&void 0!==t?t:[]),{getSourcingRegionsText:l}=iO(),c=(0,r.useMemo)((()=>{var e;return l(null!==(e=n.regions)&&void 0!==e?e:[])}),[l,n.regions]);return(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:"The following filters will be created as part of your new data scenario:"}),(0,w.jsx)(d.Xk,{children:(0,w.jsxs)(d.Kq,{gap:2,p:4,children:[(0,w.jsx)(oO,{startText:"Regions: ",values:c,onEdit:()=>i(CT.REGIONS)}),(0,er.$K)(n.crops)&&(0,w.jsx)(oO,{startText:"Crops: ",values:OE(n.crops,s,a),onEdit:()=>i(CT.CROPS)}),(0,er.$K)(n.cropRotations)&&(0,w.jsx)(oO,{startText:"Crop Rotations: ",values:RE(n.cropRotations,a),onEdit:()=>i(CT.CROPS)}),((0,er.$K)(n.size.min)||(0,er.$K)(n.size.max))&&(0,w.jsx)(oO,{startText:`With a ${n.fieldOrFarm} size of `,values:`${PE(n.size)} ${(0,mS.O)(o)}`,onEdit:()=>i(CT.KPIS_AND_GROWER_DEMOGRAPHICS)}),(0,er.$K)(n.tillage)&&(0,w.jsx)(oO,{startText:"Tillage: ",values:AE(n.tillage),onEdit:()=>i(CT.KPIS_AND_GROWER_DEMOGRAPHICS)}),(0,er.$K)(n.tillageAdopterType)&&(0,w.jsx)(oO,{startText:"Tillage Adopter Type: ",values:jE(n.tillageAdopterType),onEdit:()=>i(CT.KPIS_AND_GROWER_DEMOGRAPHICS)}),(0,er.$K)(n.coverCrop)&&(0,w.jsx)(oO,{startText:"Cover Crop: ",values:DE(n.coverCrop),onEdit:()=>i(CT.KPIS_AND_GROWER_DEMOGRAPHICS)}),(0,er.$K)(n.coverCropAdopterType)&&(0,w.jsx)(oO,{startText:"Cover Crop Adopter Type: ",values:jE(n.coverCropAdopterType),onEdit:()=>i(CT.KPIS_AND_GROWER_DEMOGRAPHICS)})]})})]})},order:CT.SUMMARY,isNextDisabled:e=>nT(e,(0,ii.Os)(e))}],sO={state:RT,dirty:[],errors:pE(RT).errors},lO=e=>{var t,n,i;let{onClose:o,isVisible:a}=e;const s=(0,d.Fg)(),[l,c]=(0,r.useState)(sO),[u,p]=(0,r.useState)(0),[h,f]=(0,r.useState)(!1),m=xE(o,f),g=r.useCallback((e=>{const t=NM()((0,ii.Os)(e),l.dirty),n={...l.state,...e},{errors:r}=pE(n);c({dirty:t,state:n,errors:r})}),[l.dirty,l.state]),y=null!==(t=aO.find((e=>e.order===u)))&&void 0!==t?t:aO[0],v=null!==(n=null===y||void 0===y?void 0:y.StepComponent)&&void 0!==n?n:()=>(0,w.jsx)(w.Fragment,{}),b=((e,t,n)=>{const r=[...e].sort(((e,t)=>e.order-t.order));return r.map(((e,i)=>{var o,a;let{title:s,StepperIconComponent:l,order:c}=e;const u=null!==(o=null===(a=gE()(r,i-1))||void 0===a?void 0:a.isNextDisabled(t))&&void 0!==o&&o;return{label:s,icon:l?(0,w.jsx)(l,{fill:n}):void 0,disabled:u,value:Number(c)}})).filter((e=>(0,er.$K)(e.icon)))})(aO,l.errors,s.palette.semanticPalette.text.brand);return(0,w.jsxs)(GT,{title:null!==(i=null===y||void 0===y?void 0:y.title)&&void 0!==i?i:"",subtitle:null===y||void 0===y?void 0:y.subtitle,handleBackClick:()=>{p((e=>e>0?e-1:e))},handleClose:()=>{o(),c(sO),p(0)},handleContinueClick:()=>{u===CT.SUMMARY?m(l.state):p((e=>e+1))},isFirstStep:u===CT.NAME,isLastStep:u===CT.SUMMARY,isNextDisabled:!0===(null===y||void 0===y?void 0:y.isNextDisabled(l.errors)),isVisible:a,isSubmitting:h,children:[u!==CT.NAME&&(0,w.jsx)(d.xu,{my:5,children:(0,w.jsx)(qT,{stepItems:b,onUpdateStep:e=>p(Number(e)),currentStep:u,hideBackNextControls:!0})}),(0,w.jsx)(v,{formState:l,onSetFormState:g,setCurrentStep:p})]})},cO=e=>{var t;let{charCount:n,children:r,TooltipProps:i={},tooltipCharCount:o=1e3,...a}=e;const s="...";var l;return r.length>n+3?(0,w.jsx)(d.u,{id:"_tooltip_id_legacy",title:r.length>o+3?`${r.slice(0,o)}${s}`:r,...i,children:(0,w.jsxs)(d.ZT,{...a,component:"span",sx:{whiteSpace:"nowrap",...null!==(l=a.sx)&&void 0!==l?l:{}},children:[r.slice(0,n),s]})}):(0,w.jsx)(d.ZT,{...a,component:"span",sx:{whiteSpace:"nowrap",...null!==(t=a.sx)&&void 0!==t?t:{}},children:r})},uO=e=>{let{scenario:t,setModalProps:n}=e;const i=r.useRef(null),[o,a]=r.useState(!1);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.hU,{ref:i,onClick:()=>a(!0),children:(0,w.jsx)(d.JO,{type:"dots-vertical"})}),(0,w.jsxs)(d.v2,{open:o,onClose:()=>a(!1),anchorEl:i.current,children:[(0,w.jsx)(d.sN,{onClick:()=>{a(!1),n({type:"edit",scenarioId:t.id,scenarioName:t.name})},children:"Rename"}),(0,w.jsx)(d.sN,{onClick:()=>{a(!1),n({type:"delete",scenarioId:t.id,scenarioName:t.name})},children:"Delete"})]})]})},dO={ACTIVE:null,ACCEPTED:{tooltip:"We're still processing data for this scenario - please check back later."},IN_PROGRESS:{tooltip:"We're still processing data for this scenario - please check back later."},QUEUED:{tooltip:"We're still processing data for this scenario - please check back later."},FAILED:{icon:"warning-triangled",tooltip:"We are unable to add this scenario at this time - please reach out to your customer support representative for assistance"}},pO=e=>{let{icon:t="info-circled",color:n="warning",tooltip:r}=e;const i=(0,d.Fg)().palette.semanticPalette.text[n];return(0,LS.xb)(r)||(d.xu,d.JO),(0,w.jsx)(d.xu,{ml:2,component:"span",children:(0,w.jsx)(d.u,{title:r,slotProps:{tooltip:{sx:{maxWidth:170}}},children:(0,w.jsx)(d.xu,{component:"span",children:(0,w.jsx)(d.JO,{type:t,color:i})})})})},hO=e=>{let{scenario:t,isAdmin:n,setModalProps:i}=e;const o=FS(),{getSourcingRegionsText:a}=iO(),{cropIds:s}=$E(t.regions),l=r.useMemo((()=>OE(t.crops,s,o)),[t.crops,s,o]),c=r.useMemo((()=>RE(t.cropRotations,o)),[o,t.cropRotations]),u=r.useMemo((()=>PE({min:t.size.min,max:t.size.max})),[t.size.max,t.size.min]),p=r.useMemo((()=>a(t.regions)),[t.regions,a]),h=dO[t.status];return(0,w.jsxs)(d.SC,{id:`data-scenario-row-${t.id}`,className:"cursor-pointer",children:[(0,w.jsxs)(d.pj,{sx:{whiteSpace:"nowrap"},children:[(0,w.jsx)(cO,{charCount:20,children:t.name}),h&&(0,w.jsx)(pO,{...h})]}),(0,w.jsx)(fO,{TooltipProps:{placement:"right",disableInteractive:!0},children:p}),(0,w.jsx)(fO,{children:l}),(0,w.jsx)(fO,{children:c}),(0,w.jsx)(d.pj,{children:LT[t.fieldOrFarm]}),(0,w.jsx)(d.pj,{children:u}),(0,w.jsx)(fO,{children:AE(t.tillage)}),(0,w.jsx)(d.pj,{children:jE(t.tillageAdopterType)}),(0,w.jsx)(d.pj,{children:DE(t.coverCrop)}),(0,w.jsx)(d.pj,{children:jE(t.coverCropAdopterType)}),(0,w.jsx)(d.pj,{padding:"none",children:n&&(0,w.jsx)(uO,{scenario:t,setModalProps:i})})]},t.id)},fO=e=>{let{children:t,...n}=e;return(0,w.jsx)(d.pj,{children:(0,w.jsx)(cO,{charCount:20,...n,children:t})})},mO=e=>{const t=(0,h.T)(),n=r.useCallback((()=>{qC.Z.deleteDataScenario(e.programId,e.scenarioId).then((()=>{(0,Yn.c)({type:"success",message:`Successfully deleted ${e.scenarioName}.`}),t((0,HC.Ob)()),e.onClose()})).catch((()=>{(0,Yn.c)({type:"error",message:`Could not delete ${e.scenarioName}.`})}))}),[t,e]);return(0,w.jsxs)(d.o9,{id:`delete-${e.scenarioId}`,open:!0,onClose:e.onClose,title:"Delete Data Scenario",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.ZT,{children:"Once you delete this scenario, it cannot be recovered. Do you wish to proceed?"})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:e.onClose,children:"Cancel"}),(0,w.jsx)(d.zx,{variant:"contained",color:"primary",onClick:n,children:"Delete Scenario"})]})]})},gO=e=>{const t=(0,h.T)(),[n,i]=r.useState(e.scenarioName),[o,a]=r.useState(""),s=n===e.scenarioName||(0,er.HH)(o),l=r.useCallback((()=>{qC.Z.renameDataScenario(e.programId,e.scenarioId,{name:n}).then((()=>{(0,Yn.c)({type:"success",message:"Data scenario successfully renamed."}),t((0,HC.Ob)()),e.onClose()})).catch((()=>{(0,Yn.c)({type:"error",message:"Data scenario could not be renamed."})}))}),[t,e,n]);return(0,w.jsxs)(d.o9,{id:`rename-${e.scenarioId}`,open:!0,onClose:e.onClose,title:"Rename Data Scenario",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.nv,{fullWidth:!0,placeholder:"Scenario name",label:"Name your data scenario",onChange:e=>{i(e.target.value),a(QM(cE)(e.target.value).failure.message)},value:n}),(0,w.jsx)(ZE,{children:o})]}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:e.onClose,children:"Cancel"}),(0,w.jsx)(d.zx,{variant:"contained",color:"primary",disabled:s,onClick:l,children:"Save"})]})]})},yO=e=>{let{flattenedScenarios:t,isAdmin:n}=e;const{programId:i}=(0,wi.tZ)(),o=(0,h.C)(S.DC),[a,s,l]=(0,Yi.d)("",300),[c,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>_S(t,["name","id"])(l)),[t,l]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.Kq,{mb:4,direction:"row",justifyContent:"space-between",children:(0,w.jsx)(sS.M,{placeholder:"Search scenarios",onChange:s,value:a})}),(0,er.Of)(p)&&(0,w.jsx)(d.Xk,{variant:"outlined",children:(0,w.jsx)(d.xu,{p:3,children:(0,w.jsx)(d.xJ,{children:(0,w.jsxs)(d.iA,{children:[(0,w.jsx)(d.ss,{children:(0,w.jsxs)(d.SC,{children:[(0,w.jsx)(d.pj,{children:"Scenario name"}),(0,w.jsx)(d.pj,{children:"Sourcing region"}),(0,w.jsx)(d.pj,{children:"Crops"}),(0,w.jsx)(d.pj,{children:"Most common crop rotations"}),(0,w.jsx)(d.pj,{children:"Scale"}),(0,w.jsx)(d.pj,{children:`Size (${o})`}),(0,w.jsx)(d.pj,{children:"Tillage"}),(0,w.jsx)(d.pj,{children:"Tillage adopter"}),(0,w.jsx)(d.pj,{children:"Cover crop"}),(0,w.jsx)(d.pj,{children:"Cover crop adopter"}),n&&(0,w.jsx)(d.pj,{})]})}),(0,w.jsx)(d.RM,{children:p.map((e=>(0,w.jsx)(hO,{scenario:e,isAdmin:n,setModalProps:u},e.id)))})]})})})}),(0,er.yD)(p)&&l&&`No data scenario found for search = ${l}`,"edit"===(null===c||void 0===c?void 0:c.type)&&(0,w.jsx)(gO,{onClose:()=>u(null),programId:i,...c}),"delete"===(null===c||void 0===c?void 0:c.type)&&(0,w.jsx)(mO,{onClose:()=>u(null),programId:i,...c})]})},vO=()=>{const[e,t]=(0,r.useState)(!1),{flattenedScenarios:n}=$T(),{isRegrowOrProgramAdmin:i}=dS(),{isLoading:o,programSupplySheds:a}=vT(),s=o||!eM(a);return(0,w.jsxs)(XC,{children:[(0,w.jsxs)(JC,{children:[(0,w.jsx)(QC,{children:"Data Scenarios"}),i&&(0,w.jsx)(VT,{isDisabled:s,onClick:()=>t(!0)})]}),o?(0,w.jsx)(bT,{id:"loading-supply-sheds"}):(0,w.jsxs)(w.Fragment,{children:[(0,er.Of)(n)?(0,w.jsx)(yO,{flattenedScenarios:n,isAdmin:i}):(0,w.jsx)(d.ZT,{children:"No data scenarios found, please create a new data scenario to get started."}),(0,w.jsx)(lO,{isVisible:e,onClose:()=>{t(!1)}})]})]})};var bO=n(10785),_O=n(36757);const wO=e=>{let{title:t,text:n,onHide:r,onConfirm:i,saveText:o="Save",noCancel:a=!1,disabled:s=!1,width:l="sm",visible:c=!0}=e;return(0,w.jsxs)(d.o9,{id:"si-dialog-popup",title:t,onClose:r,open:c,maxWidth:l,children:[(0,w.jsx)(d.cZ,{children:n}),(0,w.jsxs)(d.kX,{children:[a?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:r,children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:i,disabled:s,children:o})]})]})};var xO=n(53315);const kO=(0,yr.P1)([e=>e.si],(e=>e.access)),CO=(0,yr.P1)([kO,xO.OH],((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:null})),SO=(0,yr.P1)([CO],(e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.users)&&void 0!==t?t:[]})),MO=(0,yr.P1)([CO],(e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.admins)&&void 0!==t?t:[]}));var TO=n(55536),EO=n(51021),PO=n(2782);const IO=()=>(0,w.jsx)(On.xu,{children:"arrow_drop_down"}),OO=e=>{let{id:t,options:n,onChange:i,value:o,className:a="",selectClassName:l="",theme:c="primary",disabled:u=!1,...d}=e;const p=(0,r.useMemo)((()=>n.find((e=>e.value===o))||{label:String(o),value:o}),[o,n]),h=()=>"green"===c?{singleValue:{color:"#2E8023"},control:{background:"white",border:"1px solid #D7EBD5"},dropdownIndicator:{color:"#2E8023"}}:{singleValue:{color:"#7E54D8"},control:{background:"white",border:"1px solid #e0e0e0"},dropdownIndicator:{color:"#7A7A7A"}};return(0,w.jsx)("div",{className:s()({"fluro-select":!0,[a]:!!a,"m-0":!0}),children:(0,w.jsx)(PO.ZP,{id:t,instanceId:t,components:{DropdownIndicator:IO},isClearable:!1,options:n,onChange:e=>{i(e.value)},value:(0,er.fQ)(p.value)?p:"",menuPortalTarget:document.body,className:l,isDisabled:u,...d,theme:e=>({...e,colors:{...e.colors,primary:"rgba(0,0,0,.12)",primary25:"rgba(0,0,0,.12)",primary50:"rgba(0,0,0,.12)"}}),styles:{option:(e,t)=>({...e,...t.isSelected&&{color:"#000"}}),placeholder:e=>({...e,fontSize:"14px"}),valueContainer:e=>({...e,fontSize:"14px",fontWeight:400,height:"30px",padding:"0 6px",flexWrap:"nowrap"}),singleValue:e=>({...e,color:h().singleValue.color,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),indicatorSeparator:()=>({display:"none",height:"30px"}),menuPortal:e=>({...e,zIndex:ud.K.Select}),input:e=>({...e,margin:"0px"}),control:e=>({...e,boxShadow:"none",background:h().control.background,border:h().control.border,fontSize:"1rem",padding:"0px 10px",borderRadius:20,height:30,minHeight:30,cursor:"pointer"}),dropdownIndicator:e=>({...e,color:h().dropdownIndicator.color})}})})},LO=(0,zn.Ry)().shape({program:(0,zn.Rx)(),email:(0,zn.Z_)().email().required(),user_id:(0,zn.Rx)().required()}),RO=e=>{var t;let{onHide:n,onAdd:i,title:o,programId:a}=e;const s=(0,h.T)(),l=(0,h.C)(EO.B),c=(0,h.C)((e=>nS(e,a))),{isRegrowAdmin:u}=dS(),[p,f]=r.useState(!1);(0,r.useEffect)((()=>{u&&(0,er.yD)(l)&&s((0,TO.Fp)())}),[s,u,l]);const{usersMenuList:m,usersRecordById:g}=(0,r.useMemo)((()=>{const e=l.filter((e=>{var t;return!0===(null===(t=e.workspaces)||void 0===t?void 0:t.si)})),t=Zo()(e,"id"),n=e.map((e=>({label:e.email,value:e.id})));return{usersMenuList:n,usersRecordById:t}}),[l]),{handleSubmit:y,watch:v,register:b,setValue:_}=(0,Cn.cI)({resolver:(0,kn.X)(LO)});(0,r.useEffect)((()=>{b("email"),b("program"),b("user_id")}),[b]);const x=v();(0,r.useEffect)((()=>{(0,er.$K)(a)&&_("program",a)}),[a,_]);const k=p||(0,er.kK)(x.user_id),C=e=>{k||i(e)};return(0,w.jsx)(d.o9,{id:"add-si-user-popup",title:o,onClose:n,open:!0,maxWidth:"md",children:(0,w.jsxs)("form",{onSubmit:y(C),children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsxs)(Rn.x,{children:[null!==(t=null===c||void 0===c?void 0:c.name)&&void 0!==t?t:"Program"," (#",a,")"]}),(0,w.jsx)(OO,{value:x.user_id,id:"select-si-user",placeholder:"Email address",name:"select-si-user",options:m,onChange:e=>(e=>{var t;const{email:n}=null!==(t=g[e])&&void 0!==t?t:{};_("email",null!==n&&void 0!==n?n:""),_("user_id",e)})(Number(e)),theme:"green",onInputChange:e=>{f((0,er.HH)(e))}})]}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{disabled:k,onClick:y(C),children:o})})]})})},jO=e=>{let{selectedProgramId:t}=e;const n=(0,h.T)(),{isRegrowAdmin:i}=dS(),o=(0,h.C)((e=>MO(e,t))),a=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_SI_PROGRAM_ADMINS]))),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(null),p=(0,h.C)(S.DC),[f,m,g]=(0,Yi.d)("",300);(0,r.useEffect)((()=>{n((0,HC.kS)(t))}),[n,t]);const y=(0,r.useMemo)((()=>o.map((e=>({...e,loweredFirstName:(e.first_name||"").toLowerCase(),loweredLastName:(e.last_name||"").toLowerCase(),loweredEmail:e.email.toLowerCase()})))),[o]),v=(0,r.useMemo)((()=>{const e=g.toLowerCase();return y.filter((t=>t.loweredFirstName.includes(e)||t.loweredLastName.includes(e)||t.loweredEmail.includes(e)))}),[y,g]);return(0,w.jsxs)("div",{className:"margin-bottom-auto",children:[(0,w.jsxs)(Rn.x,{variant:"h1",secondary:!0,children:["Program admins ",0!==o.length&&`(${o.length})`]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",className:"mb-1",children:[(0,w.jsx)(sS.M,{loading:a,value:f,onChange:m,placeholder:"Search program admins"}),i&&(0,w.jsx)(d.zx,{onClick:()=>l(!0),children:"Add new program admin"})]}),v.length>0?(0,w.jsxs)(Mr.dU,{children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsxs)(Mr.uM,{children:[(0,w.jsx)("div",{children:"Name"}),(0,w.jsx)(bO.O,{children:"Email"})]}),(0,w.jsx)(Mr.uM,{type:"date",children:"Last login"}),(0,w.jsxs)(Mr.uM,{children:["# ",p," enrolled"]})]})}),(0,w.jsx)(Mr.By,{children:v.map((e=>(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsxs)(Mr.uM,{children:[(0,w.jsxs)("div",{children:[null===e||void 0===e?void 0:e.first_name," ",null===e||void 0===e?void 0:e.last_name]}),(0,w.jsx)(bO.O,{children:null===e||void 0===e?void 0:e.email})]}),(0,w.jsx)(Mr.uM,{type:"date",children:(null===e||void 0===e?void 0:e.last_login_time)||""}),(0,w.jsx)(Mr.uM,{children:"-"}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(d.xu,{display:"flex",gap:3,flexWrap:"nowrap",justifyContent:"flex-end",children:[i&&(0,w.jsx)(_O.j,{email:null===e||void 0===e?void 0:e.email,userId:Number(null===e||void 0===e?void 0:e.user_id),variant:"button"}),i&&(0,w.jsx)(d.hU,{onClick:()=>u({programId:t,userId:e.user_id}),children:(0,w.jsx)(d.le,{type:"delete"})})]})})]},e.user_id)))})]}):null,a?(0,w.jsx)(On.D8,{className:"progress",id:"si-admins-table"}):0===v.length?0!==o.length&&g?`No program admins found for search = ${g}`:"There are currently no admins for the current program.":null,s&&(0,w.jsx)(RO,{title:"Add new admin",onHide:()=>l(!1),onAdd:async e=>{l(!1);try{await qC.Z.addProgramUser(e.program,e.user_id,"admin"),await n((0,HC.kS)(t)),(0,Yn.c)({type:"success",title:"Success",message:`${e.email} was invited as an admin to the program.`})}catch(r){(0,Yn.c)({type:"error",title:"Error",message:"Couldn't add admin to the program"})}},programId:t,userToAddType:"admin"}),!!c&&(0,w.jsx)(wO,{title:"Remove program admin",text:(0,w.jsx)("div",{children:"This individual will lose it\u2019s Program Admin access to the platform, but Project and User Accounts that this individual manages will remain intact."}),onHide:()=>u(null),onConfirm:()=>(async()=>{(0,er.$K)(c)?(await n((0,HC.vX)({programId:c.programId,user_id:c.userId,role:"admin"})),(0,Yn.c)({type:"success",title:"Success",message:"The program admin was removed."}),u(null)):(0,Yn.c)({type:"error",title:"Error",message:"The program admin could not be removed."})})(),saveText:"Remove program admin"})]})},DO=e=>{let{groupTitle:t,items:n,isActive:r,onChange:i,isDisabled:o,getTooltip:a,tooltipProps:s={}}=e;return(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",padding:2,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:t}),(0,w.jsx)(d.xu,{display:"flex",flexDirection:"column",padding:2,children:n.map((e=>{var t;let{id:n,label:l}=e;const c=r(n),u=o(n),p=null!==(t=null===a||void 0===a?void 0:a(n))&&void 0!==t?t:"";return(0,w.jsx)(d.xu,{margin:2,children:(0,w.jsx)(d.u,{id:String(n),title:p,...s,children:(0,w.jsx)(d.t8,{label:l,disabled:u,control:(0,w.jsx)(d.XZ,{checked:c,onChange:e=>i(n,e.target.checked),inputProps:{"aria-label":`select ${l}`}})})})},`checkbox-${n}`)}))})]},t)};var AO=n(90478),NO=n.n(AO);const FO=e=>t=>{const n=e.find((e=>{let[n,r]=e;return n(t)}));return n?n[1]:""},zO=e=>{let{outcomeKPIsChecked:t,setOutcomeKPIs:n}=e;const i=r.useCallback((e=>{const r=(e=>{const t=NO()(e,"emission_factor"),n=(0,OS.p)(t,["ghg_emission","soc_sequestration"])?t:NO()(t,"net_emission");return(0,OS.p)(n,uS.y2)?n:NO()(n,"ef_book_values")})((0,jn.ZN)(t,e));n(r)}),[t,n]),o=e=>"net_emission"===e&&!(0,OS.p)(t,["soc_sequestration","ghg_emission"]),a=e=>"ef_book_values"===e&&!(0,OS.p)(t,uS.y2),s=[[o,`Check ${uS.X7.ghg_emission} and ${uS.X7.soc_sequestration} to re-enable ${uS.X7.net_emission}`],[a,`Check ${uS.X7.ghg_emissions_factor}, ${uS.X7.net_ghg_emissions_factor}, and ${uS.X7.fert_emissions_factor} to re-enable ${uS.X7.ef_book_values}`],[e=>"ef_book_values"===e,"This feature is only available to shared Quantis customers"]];return(0,w.jsx)(w.Fragment,{children:uS.J0.map((e=>{let{groupTitle:n,items:r}=e;return(0,w.jsx)(DO,{groupTitle:n,items:r,onChange:i,isDisabled:e=>o(e)||a(e),isActive:e=>t.includes(e),getTooltip:FO(s),tooltipProps:{placement:"bottom"}},n)}))})},BO=e=>{let{title:t,outcome_kpis:n,practice_kpis:i,onHide:o,onSave:a}=e;const[s,l]=r.useState(n),[c,u]=r.useState(i);return(0,w.jsxs)(d.o9,{id:"edit-kpis-popup",title:t,onClose:o,open:!0,maxWidth:"lg",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(UO,{children:[(0,w.jsx)(KE,{children:(0,w.jsxs)(ni.k,{direction:"column",children:[(0,w.jsx)(d.ZT,{variant:"h3",children:"Measure"}),(0,w.jsx)(zO,{outcomeKPIsChecked:s,setOutcomeKPIs:l})]})}),(0,w.jsx)(KE,{children:(0,w.jsxs)(ni.k,{direction:"column",children:[(0,w.jsx)(d.ZT,{variant:"h3",children:"Monitor"}),uS._h.map((e=>{let{groupTitle:t,items:n}=e;return(0,w.jsx)(DO,{groupTitle:t,items:n,onChange:e=>{u((0,jn.ZN)(c,e))},isDisabled:e=>!1,isActive:e=>c.includes(e)},t)}))]})})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:()=>{a({practice_kpis:qf()(c),outcome_kpis:qf()(s)}),o()},children:"Save"})})]})},UO=(0,Z.ZP)(YE)`
  padding: 4px 12px;
`,$O=e=>{let{title:t,tabAccesses:n=[],onHide:i,onSave:o}=e;const[a,s]=(0,r.useState)(n),l=(0,r.useCallback)((e=>{const t=(e=>{const t=NM()(["admin","supply_shed"],e),n=NO()(t,"data_export");return e.includes("kpi")?t:n})((0,jn.ZN)(a,e));s(t)}),[a]);return(0,w.jsxs)(d.o9,{id:"edit-tabs-popup",title:t,onClose:i,open:!0,maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.Kq,{direction:"column",children:uS._Q.map((e=>{let{groupTitle:t,items:n}=e;return(0,w.jsx)(DO,{groupTitle:t,items:n,onChange:l,isDisabled:e=>((e,t)=>"data_export"===e?!t.includes("kpi"):["admin","supply_shed"].includes(e))(e,a),isActive:e=>a.includes(e),getTooltip:e=>"data_export"!==e||a.includes("kpi")?"":`Check ${uS.kx.kpi} to enable ${uS.kx.data_export}`,tooltipProps:{placement:"bottom"}},t)}))})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:()=>{o(qf()(a)),i()},children:"Save"})})]},"edit-tabs-popup")},VO=(0,Z.ZP)(On.xu)`
  color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.green_600}} !important;
`,qO=()=>{var e,t,n,i,o,a;const s=(0,Z.Fg)(),l=(0,h.T)(),{programId:c}=(0,wi.tZ)(),{programTabAccess:u}=jS(),{isRegrowAdmin:d}=dS(),p=(0,h.C)((e=>nS(e,c))),f=(0,h.C)(S.DC),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),[b,_]=(0,r.useState)(null),x=Number((0,iu.En)(f,ol.Ug.ImperialUnits,null===p||void 0===p?void 0:p.acreage_limit_ha).toFixed()),k={Area:{key:"acreage_limit_ha",type:"number",defaultValue:x}},C=(0,r.useMemo)((()=>(new Date).getFullYear()),[]),M=(0,r.useMemo)((()=>IS()(Math.max(C-10,2015),C+6).map((e=>({label:e.toString(),value:e})))),[C]),T=(0,r.useCallback)((async e=>{let{practice_kpis:t,outcome_kpis:n}=e;await l((0,HC.MH)({programId:c,program:{practice_kpis:t,outcome_kpis:n}}))}),[l,c]),E=(0,r.useCallback)((async e=>{const t={tab_accesses:e};await l((0,HC.MH)({programId:c,program:t}))}),[l,c]),P=async e=>{let{key:t,value:n}=e;if("acreage_limit_ha"===t&&(n=f===ol.Ug.MetricUnits?n:(0,iu.En)(f,ol.Ug.MetricUnits,n)),"crop_year_start"===t&&(0,er.$K)(p)&&Number(n)>p.crop_year_end)return void(0,Yn.c)({title:"Error",message:"The start year must be before the end year.",type:"error"});if("crop_year_end"===t&&(0,er.$K)(p)&&Number(n)<p.crop_year_start)return void(0,Yn.c)({title:"Error",message:"The end year must be after the start year.",type:"error"});const r={[t]:n};await l((0,HC.MH)({programId:c,program:r})),_(null)};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(gh.dU,{className:"program-config-table",children:(0,w.jsxs)(gh.By,{children:[(0,w.jsxs)(gh.Yu,{hoverBg:!1,children:[(0,w.jsx)(gh.uM,{children:(0,w.jsxs)(ni.k,{nowrap:!0,alignItems:"center",children:[(0,w.jsx)(zi.C,{children:(0,w.jsx)(VO,{children:"straighten"})}),(0,w.jsx)(Rn.x,{nowrap:!0,inline:!0,className:"ml-05",children:f===ol.Ug.MetricUnits?"Hectares":"Acreage"})]})}),(0,w.jsxs)(gh.uM,{children:[null!==x&&void 0!==x?x:0," ",f]}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)(ni.k,{justifyContent:"flex-end",children:(0,w.jsx)(kd.w,{flat:!0,blank:!0,disabled:!d,onClick:()=>_("Area"),children:"edit"})})})]}),(0,w.jsxs)(gh.Yu,{hoverBg:!1,children:[(0,w.jsx)(gh.uM,{children:(0,w.jsxs)(ni.k,{nowrap:!0,alignItems:"center",children:[(0,w.jsx)(zi.C,{children:(0,w.jsx)(VO,{children:"date_range"})}),(0,w.jsx)(Rn.x,{nowrap:!0,inline:!0,className:"ml-05",children:"Years"})]})}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)("div",{className:"pt-2 pb-2",children:(0,w.jsxs)(ni.k,{nowrap:!0,alignItems:"center",children:[(0,w.jsx)("div",{style:{width:"100px"},children:(0,w.jsx)(OO,{options:M,value:null!==(e=null===p||void 0===p?void 0:p.crop_year_start)&&void 0!==e?e:C,onChange:e=>P({key:"crop_year_start",value:e}),disabled:!d})}),(0,w.jsx)("span",{className:"pl-1 pr-1",children:"-"}),(0,w.jsx)("div",{style:{width:"100px"},children:(0,w.jsx)(OO,{options:M,value:null!==(t=null===p||void 0===p?void 0:p.crop_year_end)&&void 0!==t?t:C,onChange:e=>P({key:"crop_year_end",value:e}),disabled:!d})})]})})})]}),(0,w.jsxs)(gh.Yu,{hoverBg:!1,children:[(0,w.jsx)(gh.uM,{children:(0,w.jsxs)(ni.k,{nowrap:!0,alignItems:"center",children:[(0,w.jsx)(zi.C,{children:(0,w.jsx)(td.fE,{fill:s.colorPalette.fs_main.green_600})}),(0,w.jsx)(Rn.x,{nowrap:!0,inline:!0,className:"ml-05",children:"Data Products (KPIs)"})]})}),(0,w.jsx)(gh.uM,{children:(0,w.jsxs)(ni.k,{gap:"4px",children:[null===p||void 0===p||null===(n=p.practice_kpis)||void 0===n?void 0:n.map((e=>(0,w.jsx)(aS.A,{tone:"light",size:"small",label:uS.lL[e]},e))),null===p||void 0===p||null===(i=p.outcome_kpis)||void 0===i?void 0:i.map((e=>{const t=uS.X7[e];return(0,er.$K)(t)&&(0,w.jsx)(aS.A,{tone:"light",size:"small",label:t},e)}))]})}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)(ni.k,{justifyContent:"flex-end",children:(0,w.jsx)(kd.w,{flat:!0,blank:!0,disabled:!d,onClick:()=>g(!0),children:"edit"})})})]}),(0,w.jsxs)(gh.Yu,{hoverBg:!1,children:[(0,w.jsx)(gh.uM,{children:(0,w.jsxs)(ni.k,{nowrap:!0,alignItems:"center",children:[(0,w.jsx)(zi.C,{children:(0,w.jsx)(VO,{children:"check_circle"})}),(0,w.jsx)(Rn.x,{nowrap:!0,inline:!0,className:"ml-05",children:"Product Features"})]})}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)(ni.k,{gap:"4px",children:u.map((e=>(0,w.jsx)(aS.A,{tone:"light",size:"small",label:uS.kx[e]},e)))})}),(0,w.jsx)(gh.uM,{children:(0,w.jsx)(ni.k,{justifyContent:"flex-end",children:(0,w.jsx)(kd.w,{flat:!0,blank:!0,disabled:!d,onClick:()=>v(!0),children:"edit"})})})]})]})}),b&&(0,w.jsx)(cS,{title:f===ol.Ug.MetricUnits?"Set Program Hectares":" Set Program Acreage",type:"number",value:x,onSave:async e=>{var t;const n=null===(t=k[b])||void 0===t?void 0:t.key;n&&await P({key:n,value:e})},onHide:()=>_(null)}),m&&(0,w.jsx)(BO,{title:"Data Products (KPIs)",outcome_kpis:null!==(o=null===p||void 0===p?void 0:p.outcome_kpis)&&void 0!==o?o:[],practice_kpis:null!==(a=null===p||void 0===p?void 0:p.practice_kpis)&&void 0!==a?a:[],onSave:T,onHide:()=>g(!1)}),y&&(0,w.jsx)($O,{title:"Product Features",tabAccesses:u,onSave:E,onHide:()=>v(!1)})]})},ZO=e=>{let{selectedProgramId:t}=e;const n=(0,h.T)(),{isRegrowAdmin:i}=dS(),o=(0,h.C)((e=>SO(e,t))),a=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_SI_PROGRAM_USERS]))),[s,l]=(0,r.useState)(!1),[c,u,p]=(0,Yi.d)("",300);(0,r.useEffect)((()=>{n((0,HC.gK)(t))}),[n,t]);const f=(0,r.useMemo)((()=>o.map((e=>({...e,loweredFirstName:e.first_name.toLowerCase(),loweredLastName:e.last_name.toLowerCase(),loweredEmail:e.email.toLowerCase()})))),[o]),m=(0,r.useMemo)((()=>{const e=p.toLowerCase();return f.filter((t=>t.loweredFirstName.includes(e)||t.loweredLastName.includes(e)||t.loweredEmail.includes(e)))}),[f,p]);return(0,w.jsxs)("div",{className:"margin-bottom-auto",children:[(0,w.jsxs)(Rn.x,{variant:"h1",secondary:!0,children:["Users ",0!==o.length&&`(${o.length})`]}),(0,w.jsxs)(ni.k,{justifyContent:"space-between",className:"mb-1",children:[(0,w.jsx)(sS.M,{loading:a,placeholder:"Search users",value:c,onChange:e=>{u(e)}}),i&&(0,w.jsx)(d.zx,{onClick:()=>l(!0),children:"Add a user"})]}),m.length>0?(0,w.jsxs)(Mr.dU,{children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsxs)(Mr.uM,{children:[(0,w.jsx)("div",{children:"Name"}),(0,w.jsx)(bO.O,{children:"Email"})]}),(0,w.jsx)(Mr.uM,{type:"date",children:"Last login date"}),(0,w.jsx)(Mr.uM,{})]})}),(0,w.jsx)(Mr.By,{children:m.map((e=>{const{email:r,first_name:o,last_name:a,user_id:s,last_login_time:l}=null!==e&&void 0!==e?e:{};return(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsxs)(Mr.uM,{children:[(0,w.jsxs)("div",{children:[o," ",a]}),(0,w.jsx)(bO.O,{children:(0,w.jsx)(ni.k,{alignItems:"center",gap:"4px",children:r||(0,w.jsx)(hh.F,{width:150})})})]}),(0,w.jsx)(Mr.uM,{type:"date",children:l}),(0,w.jsx)(Mr.uM,{children:(0,w.jsx)(ni.k,{gap:"10px",nowrap:!0,justifyContent:"flex-end",children:i&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_O.j,{email:r,userId:s,variant:"button"}),(0,w.jsx)(d.u,{title:"Remove access",children:(0,w.jsx)(d.hU,{onClick:()=>(async(e,r,i)=>{confirm(`Are you sure you want to delete ${i} from the program?`)&&(await n((0,HC.vX)({programId:e,user_id:r,role:"user"})),(0,Yn.c)({type:"success",title:"Success",message:"The program user was removed."}),n((0,HC.gK)(t)))})(t,s,r),children:(0,w.jsx)(d.le,{type:"delete"})})})]})})})]},s)}))})]}):null,a?(0,w.jsx)(On.D8,{className:"progress",id:"si-users-table"}):0===m.length?0!==f.length&&p?`No users found for search = ${p}`:"There are currently no users for the current program.":null,s&&(0,w.jsx)(RO,{title:"Add new user",onHide:()=>l(!1),onAdd:async e=>{l(!1);try{await qC.Z.addProgramUser(e.program,e.user_id,"user"),await n((0,HC.gK)(t)),(0,Yn.c)({type:"success",title:"Success",message:`${e.email} was added to the program.`})}catch(r){(0,Yn.c)({type:"error",title:"Error",message:"Couldn't add user to the program"})}},programId:t,userToAddType:"user"})]})},HO=[{label:"Program Parameters",value:"parameters"},{label:"Admins",value:"admins"},{label:"Users",value:"users"}],GO=()=>{var e;const t=(0,h.T)(),{programId:n}=(0,wi.tZ)(),{isRegrowAdmin:i,isRegrowOrProgramAdmin:o}=dS(),a=(0,h.C)((e=>nS(e,n))),[s,l]=(0,r.useState)("parameters"),[c,p]=(0,r.useState)(!1);return o?(0,w.jsxs)(XC,{children:[(0,w.jsx)(JC,{children:(0,w.jsxs)(d.xu,{alignItems:"center",display:"flex",gap:2,children:[(0,w.jsx)(QC,{children:(0,er.$K)(null===a||void 0===a?void 0:a.name)?`${null===a||void 0===a?void 0:a.name} (#${null===a||void 0===a?void 0:a.id})`:(0,w.jsx)(hh.F,{width:200,height:26})}),i&&(0,w.jsx)(d.hU,{onClick:()=>p(!0),children:(0,w.jsx)(d.le,{type:"pencil"})})]})}),(0,w.jsx)(jM.q,{tabs:HO,selectedTab:s,onTabClick:e=>{l(e)}}),"parameters"===s&&(0,w.jsx)(qO,{}),"admins"===s&&(0,w.jsx)(jO,{selectedProgramId:n}),"users"===s&&(0,w.jsx)(ZO,{selectedProgramId:n}),(0,w.jsx)(d.xu,{mt:3,children:(0,w.jsx)(d.zx,{component:Ho.rU,to:WC.eI,startIcon:(0,w.jsx)(d.le,{type:"chevron-left"}),variant:"outlined",color:"secondary",children:"Back"})}),c&&(0,w.jsx)(cS,{title:"Edit Program Name",subtitle:"Program Name",type:"text",value:null!==(e=null===a||void 0===a?void 0:a.name)&&void 0!==e?e:"",onSave:async e=>{await t((0,HC.MH)({programId:n,program:{name:String(e)}})),p(!1)},onHide:()=>p(!1)})]}):(0,w.jsx)(u.l_,{to:WC.Y9})},WO={select:"Boundary type",circle:"Click and drag to draw a circle",polygon:"Click to add points, double click to finish",upload:"Upload boundary files",none:""},YO=e=>{let{canAddNewFeature:t=!1,handleAddNewFeature:n}=e;const i=(0,h.T)(),[o,a]=(0,r.useState)([]),s=e=>{i((0,yT.cd)(e))},l=(0,h.C)(yI),c=(0,h.C)(gI);(0,r.useEffect)((()=>{const e=Object.entries(SI.$c).map((e=>{const[t,n]=e;return{value:t,label:n.label}}));a(e)}),[]);return(0,w.jsxs)(KO,{className:"map-input-tools-container",children:[(0,w.jsxs)("div",{className:"add-areas-row",children:[(0,w.jsx)("div",{className:"map-input-text",children:"Add areas"}),(0,w.jsxs)("div",{className:"draw-buttons-container",children:[(0,w.jsx)(kd.w,{raised:!0,primary:"select"===l,secondary:"select"!==l,onClick:()=>s("select"),value:"select",className:"draw-button",iconEl:(0,w.jsx)(k.sQ,{fill:"inherit"}),children:"Select on Map"}),(0,w.jsx)(kd.w,{raised:!0,primary:"circle"===l,secondary:"circle"!==l,onClick:()=>s("circle"),value:"circle",className:"draw-button",iconEl:(0,w.jsx)(k.J$,{}),children:"Draw Circle"}),(0,w.jsx)(kd.w,{raised:!0,primary:"polygon"===l,secondary:"polygon"!==l,onClick:()=>s("polygon"),value:"polygon",className:"draw-button",iconEl:(0,w.jsx)(k.NL,{}),children:"Draw Polygon"}),(0,w.jsx)(kd.w,{raised:!0,primary:"upload"===l,secondary:"upload"!==l,onClick:()=>s("upload"),value:"polygon",className:"draw-button",iconEl:(0,w.jsx)(k.rG,{fill:"currentColor"}),children:"Upload Files"})]})]}),(0,w.jsxs)("div",{className:"boundary-row",children:[(0,w.jsx)("div",{className:"map-input-text",children:WO[l]}),(0,w.jsxs)("div",{className:"boundary-type-container",children:["select"===l&&(0,w.jsx)(Sr.Z,{value:c,onChange:e=>{return t=e,void i((0,yT.w9)(t));var t},options:o,className:"boundary-drop-down"}),"circle"===l&&t&&(0,w.jsx)(kd.w,{raised:!0,primary:!0,onClick:()=>n("circle"),children:"Add Another Circle"}),"polygon"===l&&t&&(0,w.jsx)(kd.w,{raised:!0,primary:!0,onClick:()=>n("polygon"),children:"Add Another Polygon"})]})]})]})},KO=(0,d.zo)("div")`
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 24px;
  gap: 12px;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;

  .map-input-text {
    color: white;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    min-width: 120px;
  }

  .add-areas-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    .draw-buttons-container {
      display: flex;
      flex-direction: row;
      align-items: center;

      .draw-button {
        box-shadow: none;
        border: none;
      }

      .draw-button:first-child {
        border-radius: 4px 0px 0px 4px;
      }

      .draw-button:not(:first-child):not(:last-child) {
        border-width: 0px 1px;
        border-style: solid;
        border-color: #7a7a7a;
        border-radius: 0;
      }

      .draw-button:last-child {
        border-radius: 0px 4px 4px 0px;
      }
    }
  }

  .boundary-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    .boundary-type-container {
      display: flex;
      justify-content: flex-end;
      width: inherit;

      .boundary-drop-down {
        margin: 0;
        width: inherit;
      }
    }
  }
`;var XO=n(64674),JO=n.n(XO);const QO="simple_select",eL="Feature",tL="Polygon",nL="add",rL="polygon",iL={...JO().modes.draw_polygon},oL={enable(e){setTimeout((()=>{e.map.dragPan.enable()}),0)},disable(e){setTimeout((()=>{e.map&&e.map.doubleClickZoom&&e.map.dragPan.disable()}),0)}};iL.onSetup=function(){const e=this.newFeature({type:eL,properties:{center:[],radiusInKm:0},geometry:{type:tL,coordinates:[[]]}});return this.addFeature(e),oL.disable(this),this.clearSelectedFeatures(),this.updateUIClasses({mouse:nL}),this.activateUIButton(rL),{polygon:e,currentVertexPosition:0}},iL.onMouseDown=iL.onTouchStart=function(e,t){e.polygon.properties.center=[t.lngLat.lng,t.lngLat.lat]},iL.onDrag=iL.onMouseMove=function(e,t){const n=e.polygon.properties.center;if(n.length>0){const r=(0,Fg.TE$)(Fg.BM7.point(n),Fg.BM7.point([t.lngLat.lng,t.lngLat.lat]),{units:"kilometers"}),i=(0,Fg.Xwo)(n,r);e.polygon.incomingCoords(i.geometry.coordinates),e.polygon.properties.radiusInKm=r}},iL.onMouseUp=iL.onTouchEnd=function(e){return oL.enable(this),this.changeMode(QO,{featureIds:[e.polygon.id]})},iL.onClick=iL.onTap=function(e){e.polygon.properties.center=[]};class aL extends(JO()){constructor(e){var t,n,r,i;super({defaultMode:"simple_select",displayControlsDefault:!1,controls:{polygon:!1,trash:!1},modes:{...JO().modes,drag_circle:iL},styles:[{id:"gl-draw-line",type:"line",filter:["all",["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":e.activeLineColor,"line-width":null!==(t=e.activeLineWidth)&&void 0!==t?t:2}},{id:"gl-draw-polygon-fill",type:"fill",filter:["all",["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":e.activeFillColor,"fill-outline-color":e.activeLineColor,"fill-opacity":null!==(n=e.activeFillOpacity)&&void 0!==n?n:.25}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":4,"circle-color":e.activeLineColor}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":e.activeLineColor,"line-width":null!==(r=e.inactiveLineWidth)&&void 0!==r?r:2}},{id:"gl-draw-polygon-and-line-vertex-halo-active",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":4,"circle-color":"#FFF"}},{id:"gl-draw-polygon-and-line-vertex-active",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":4,"circle-color":e.activeLineColor}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","$type","LineString"],["==","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":e.inactiveLineColor,"line-width":3}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","$type","Polygon"],["==","mode","static"]],paint:{"fill-color":e.inactiveFillColor,"fill-outline-color":e.inactiveLineColor,"fill-opacity":null!==(i=e.inactiveFillOpacity)&&void 0!==i?i:.5}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","$type","Polygon"],["==","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":e.inactiveLineColor,"line-width":3}}]})}}const sL=()=>{var e,t,n;const i=(0,r.useRef)(null),o=(0,h.T)(),[a,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(""),[p,f]=(0,r.useState)(null),[m,g]=(0,r.useState)([]),y=(0,h.C)(yI),v=(0,h.C)(vI),b=(0,h.C)(_I),_=(0,h.C)(wI),x=(0,h.C)(kI),k=(0,h.C)(CI),C=(0,h.C)(gI),M=(0,h.C)(S.DC),T=(0,r.useRef)(0),E=(0,r.useRef)(0);(0,r.useEffect)((()=>{if("select"===y)g(["clickable-features-fill"]);else{const e=(0,ii.Os)(SI.$c).map((e=>`selected-features-${e}-fill`));g(e)}}),[y]);const P=e=>{o((0,yT.rJ)({featureID:e}))},I=(e,t)=>{f(t),d(e)},O=()=>{f(null),d("")},L=(0,r.useCallback)((e=>{(0,er.$K)(l)&&a&&("circle"===e?l.changeMode("drag_circle"):"polygon"===e&&l.changeMode("draw_polygon"))}),[l,a]),R=(0,r.useCallback)((e=>{const t=e.features[0];(0,er.kK)(null===t||void 0===t?void 0:t.properties)||(t.properties.name=(0,er.fQ)(t.properties.center)?"Circle "+ ++T.current:"Polygon "+ ++E.current,o((0,yT.gB)({featureID:`${t.id}`,feature:t})),"move"===e.action&&O())}),[o]),j=(0,r.useCallback)((e=>{if((0,er.Of)(e.features)){var t;const n=null===(t=e.features[0])||void 0===t?void 0:t.id;(0,er.$K)(n)&&I(String(n),e.features[0])}}),[]);(0,r.useEffect)((()=>{if(i.current){if(!a){const e=new aL({activeFillColor:RI,activeFillOpacity:jI,activeLineColor:DI,activeLineWidth:AI,inactiveFillColor:NI,inactiveLineColor:zI,inactiveFillOpacity:FI,inactiveLineWidth:BI});s(!0),c(e),i.current.addControl(e),i.current.on("draw.create",R),i.current.on("draw.update",R),i.current.on("draw.selectionchange",j)}(0,er.$K)(l)&&("circle"===y?l.changeMode("drag_circle"):"polygon"===y?l.changeMode("draw_polygon"):l.changeMode("simple_select"))}}),[y,l,a,R,j]),(0,r.useEffect)((()=>{(0,er.$K)(l)&&l.set({type:"FeatureCollection",features:b})}),[b]);const D=(0,r.useMemo)((()=>{if(p&&u)return(0,Fg.Scw)(p)}),[p,u]),A=(0,r.useMemo)((()=>{var e;if(p&&u)return(0,iu.En)(ol.Ug.MetricUnits,ol.Ug.ImperialUnits,null!==(e=(0,Fg.SOn)(p)/1e4)&&void 0!==e?e:0).toFixed()}),[p,u]),N=e=>{l&&a&&((e=>{o((0,yT.sN)({featureID:e}))})(e),P(e),O())},F=(0,er.HH)(u)&&(0,er.$K)(p)&&(0,er.$K)(D)&&(0,er.$K)(A),z=(0,r.useMemo)((()=>{const e=(0,ii.Os)(_);return["any",["in",["get","id"],["literal",e]],["in",["get","FIPS"],["literal",e]]]}),[_]),B=(0,r.useMemo)((()=>(0,ii.pJ)(SI.$c).map((e=>{let[t,n]=e;return(0,w.jsxs)(oI,{id:`selected-features-${t}`,type:"vector",url:n.url,children:[(0,w.jsx)(sI,{id:`selected-features-${t}-fill`,"source-layer":n.layer,...OI,filter:z},`selected-features-${t}-fill`),(0,w.jsx)(sI,{id:`selected-features-${t}-line`,"source-layer":n.layer,...LI,filter:z},`selected-features-${t}-line`)]},`selected-features-${t}`)}))),[z]),{layer:U,url:$}=SI.$c[C];return(0,w.jsxs)(TI,{mapRef:i,interactiveLayerIds:m,onClick:e=>{if((0,er.Of)(e.features)){var t;const n=e.features[0];if((0,er.kK)(null===n||void 0===n?void 0:n.properties))return;const r=null!==(t=n.properties.id)&&void 0!==t?t:n.properties.FIPS,i=n.sourceLayer;n.properties.collection_id=(e=>{var t,n;return null!==(t=null===(n=(0,ii._J)(SI.$c).find((t=>t.layer===e)))||void 0===n?void 0:n.collection_id)&&void 0!==t?t:null})(i),n.properties.feature_name=((e,t)=>{var n,r,i;return null!==(n=null===(r=(0,ii._J)(SI.$c).find((e=>e.layer===t)))||void 0===r?void 0:r.name_getter(e))&&void 0!==n?n:null===(i=e.properties)||void 0===i?void 0:i.name})(n,i),(0,er.$K)(r)&&("select"===y?(0,er.$K)(_[r])?P(r):((e,t)=>{o((0,yT.ps)({featureID:e,feature:t}))})(r,n):I(r,n))}},mapBoundsGeometries:x,children:[k&&x&&(0,w.jsx)(oI,{id:"project-geometries",type:"geojson",data:x,children:(0,w.jsx)(sI,{...EI})}),"select"===y&&(0,w.jsxs)(oI,{type:"vector",url:$,children:[(0,w.jsx)(sI,{"source-layer":U,...PI},`${U}-fill`),(0,w.jsx)(sI,{"source-layer":U,...II},`${U}-line`)]},U),[...B],v&&(0,w.jsx)(YO,{mapRef:i,canAddNewFeature:"circle"===y||"polygon"===y,handleAddNewFeature:L}),F&&(0,w.jsxs)(JP,{longitude:null!==(e=D.geometry.coordinates[0])&&void 0!==e?e:0,latitude:null!==(t=D.geometry.coordinates[1])&&void 0!==t?t:0,anchor:"bottom",onClose:O,children:[(null===(n=p.properties)||void 0===n?void 0:n.name)&&(0,w.jsx)(Rn.x,{bold:!0,children:p.properties.name}),(0,w.jsxs)(Rn.x,{children:["Total area: ",(0,In.Kr)(Math.round(Number(A)),M)]}),(0,w.jsx)(ni.k,{justifyContent:"flex-end",children:(0,w.jsx)(kd.w,{raised:!0,grayBorder:!0,blank:!0,onClick:()=>{N(u)},children:"Delete"})})]})]})},lL=e=>{let{selected:t,onCropsChange:n,...r}=e;const{options:i}=r,o=t.filter((e=>{let{disabled:t}=e;return(0,er.X0)(t)})).length,a=o===i.length?"All":`${o}`;return(0,w.jsx)(d.xu,{minWidth:(0,er.yD)(t)?240:180,children:(0,w.jsx)(d.F2,{...r,"aria-label":"Select crops",disableCloseOnSelect:!0,hasSelectAll:!0,hasClear:!0,multiple:!0,placeholder:"Select commodity crops",localeText:{getLimitTagsText:()=>`${a} commodity crops selected`,getLimitTagsTextFocused:()=>`${a} commodity crops selected`,selectAll:"Select all",deselectAll:"Deselect all"},options:i,onChange:(e,t)=>n(t.map((e=>{let{value:t}=e;return Number(t)}))),value:t,slotProps:{popper:{sx:{minWidth:"max-content"}}},ListboxProps:{sx:{minWidth:(0,er.yD)(t)?"240px":"180px"}}})})},cL=e=>{let{cropIds:t,onCropsChange:n}=e;const i=UE(),o=(0,r.useMemo)((()=>i.filter((e=>t.includes(Number(e.value))))),[t,i]);return(0,w.jsx)(lL,{options:i,selected:o,onCropsChange:n})};function uL(e){let{onHide:t}=e;const n=(0,h.T)(),[i,o]=(0,r.useState)(),[a,s]=(0,r.useState)(!0),[l,c]=(0,r.useState)(),[u,p]=(0,r.useState)(!1),[f,m]=(0,r.useState)([]),g=(0,r.useRef)([]);async function y(e,t){let n=[];try{p(!0);n=(await qC.Z.convertFileToFeatureCollection(e,t)).data.features,g.current=n}catch(o){var r,i;(0,Yn.c)({type:"error",title:"Error",message:null!==(r=null===o||void 0===o||null===(i=o.data)||void 0===i?void 0:i.detail)&&void 0!==r?r:"There was a problem processing the boundaries."})}finally{return p(!1),n}}const b=!a&&void 0!==l&&""===l;return(0,w.jsxs)(d.o9,{title:"Upload boundaries",onClose:t,open:!0,children:[(0,w.jsx)(d.cZ,{children:i?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"h4",children:i.name}),(0,w.jsx)(d.Ee,{value:a?"merge":"separate",onChange:async function(e,t){const n="merge"===t;if(s(n),!n&&i&&0===f.length){var r,o;const e=await y(i,n);m(Object.keys(null!==(r=null===(o=e[0])||void 0===o?void 0:o.properties)&&void 0!==r?r:{}).map((e=>({label:e,value:e}))))}},row:!0,children:(0,w.jsxs)(d.Kq,{gap:4,mt:2,children:[(0,w.jsx)(d.t8,{value:"merge",control:(0,w.jsx)(d.Y8,{}),label:"Merge features into a single boundary"}),(0,w.jsx)(d.t8,{value:"separate",control:(0,w.jsx)(d.Y8,{}),label:"Keep each feature as a separate boundary"})]})}),!a&&(0,w.jsxs)(d.NI,{sx:{marginTop:"16px"},children:[(0,w.jsx)(d.lX,{component:"h3",children:"Property to use for the subregion name"}),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",alignItems:"center",gap:2,children:[(0,w.jsx)(d.mg,{id:"role",name:"subregionNameKey",variant:"outlined",options:f,value:l,placeholder:"Select a property",onChange:e=>c(e.target.value),disabled:u}),u&&(0,w.jsx)(Gd.Z,{size:20})]})]})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(v.Z,{id:"boundary-upload",accept:".kml,.geojson",onChange:function(e){e&&!Array.isArray(e)&&o(e)}}),(0,w.jsx)(d.bZ,{severity:"info",children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{children:"You can upload either a .kml or .geojson file."}),(0,w.jsx)(d.ZT,{children:"Be sure that your file is no larger than 25MB and has no more than 1000 features. For geojson files, geometries cannot be nested within a `geometryCollection`"}),(0,w.jsx)(d.ZT,{children:"Note, if the file has more than one feature, it can be merged into one boundary area, or kept as separate areas."})]})})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:t,children:"Cancel"}),(0,w.jsx)(d.fl,{color:"primary",onClick:async function(){let e=g.current;if(0===e.length&&i&&(e=await y(i,a)),0!==e.length){if(void 0!==l&&"name"!==l)for(const t of e){var r;void 0!==(null===(r=t.properties)||void 0===r?void 0:r[l])&&(t.properties.name=`${t.properties[l]}`,delete t.properties[l])}for(const t of e){var o,s,c,u;t.id=`${null!==(o=null!==(s=null===(c=t.properties)||void 0===c?void 0:c.id)&&void 0!==s?s:null===(u=t.properties)||void 0===u?void 0:u.FIPS)&&void 0!==o?o:(0,jn._j)()}`,n((0,yT.gB)({featureID:t.id,feature:t}))}(0,Yn.c)({type:"success",title:"Success",message:"The boundaries were successfully added."}),t()}},loading:u,disabled:!i||b,children:"Add"})]})]})}function dL(e){var t,n,r,i;const o=null!==(t=null!==(n=null===(r=e.properties)||void 0===r?void 0:r.id)&&void 0!==n?n:null===(i=e.properties)||void 0===i?void 0:i.FIPS)&&void 0!==t?t:e.id;if("string"!==typeof o)throw new Error(`Feature ID was expected to be a string, found: ${o}`);return o}function pL(e){var t,n,r;const i=null!==(t=null===(n=e.properties)||void 0===n?void 0:n.collection_id)&&void 0!==t?t:null===(r=e.properties)||void 0===r?void 0:r.layer;if("string"!==typeof i)throw new Error(`Collection ID was expected to be a string, found: ${i}`);return i}function hL(e){var t,n,r,i,o,a;return null!==(t=null!==(n=null!==(r=null===(i=e.properties)||void 0===i?void 0:i.feature_name)&&void 0!==r?r:null===(o=e.properties)||void 0===o?void 0:o.title)&&void 0!==n?n:null===(a=e.properties)||void 0===a?void 0:a.name)&&void 0!==t?t:"New Subsection"}function fL(e){var t,n;return null!==(t=null===(n=e.properties)||void 0===n?void 0:n.name)&&void 0!==t?t:"New Subsection"}function mL(e){let{color:t}=e;const n=(0,h.T)(),i=(0,h.C)(xI),o=(0,h.C)(_I),a=(0,h.C)(bI),s=i.length+o.length,l=(e,t)=>{confirm(`Are you sure you want to delete ${t}?`)&&((0,Yn.c)({type:"success",title:"Success",message:`${t} was removed.`}),n((0,yT.rJ)({featureID:e})))},c=(e,t)=>{confirm(`Are you sure you want to delete ${t}?`)&&((0,Yn.c)({type:"success",title:"Success",message:`${t} was removed.`}),n((0,yT.sN)({featureID:e})))},u=(0,r.useCallback)(((e,t)=>{var r;let i=a[e];void 0!==i&&(i={...i,properties:{...null!==(r=i.properties)&&void 0!==r?r:{},name:t}},n((0,yT.gB)({featureID:e,feature:i})))}),[n,a]);return(0,w.jsxs)("div",{className:"subsection-card mt-3",children:[(0,w.jsxs)("div",{className:"subsection-header",children:[(0,w.jsx)("div",{className:"subsection-color",style:{borderLeftColor:t}}),(0,w.jsx)(d.xu,{flexDirection:"row",alignItems:"center",children:(0,w.jsx)("div",{className:"subsection-name",children:0===s?"Select an area on the map":`${s} areas selected`})})]}),i.map((e=>{const t=dL(e);return(0,w.jsx)(gL,{id:t,name:hL(e),onDelete:l},t)})),o.map((e=>{var t;const n=dL(e);return(0,w.jsx)(yL,{id:n,initialName:fL(e),onDelete:c,isCircle:(0,er.fQ)(null===(t=e.properties)||void 0===t?void 0:t.center),onChangeName:u},n)}))]})}function gL(e){let{id:t,name:n,onDelete:r}=e;return(0,w.jsxs)(d.xu,{className:"subsection-row",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:2,flexWrap:"nowrap",children:[(0,w.jsx)(k.sQ,{fill:"inherit"}),(0,w.jsx)(d.xu,{flex:1,children:n}),(0,w.jsx)(d.hU,{"aria-label":"remove subregion",onClick:()=>r(t,n),children:(0,w.jsx)(d.le,{type:"delete"})})]})}function yL(e){let{id:t,initialName:n,onDelete:i,onChangeName:o,isCircle:a}=e;const[s,l]=(0,r.useState)(n);return(0,r.useEffect)((()=>{if(s===n)return;const e=setTimeout((()=>{o(t,s)}),300);return()=>{clearTimeout(e)}}),[t,s,n,o]),(0,w.jsxs)(d.xu,{className:"subsection-row",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:2,flexWrap:"nowrap",children:[a?(0,w.jsx)(k.J$,{}):(0,w.jsx)(k.NL,{}),(0,w.jsx)(d.xu,{flex:1,children:(0,w.jsx)(d.zu,{onChange:e=>l(e.target.value),value:s,fullWidth:!0})}),(0,w.jsx)(d.hU,{"aria-label":"remove subregion",onClick:()=>i(t,s),children:(0,w.jsx)(d.le,{type:"delete"})})]})}const vL=()=>{const e=(0,h.T)(),{mutate:t}=(0,ai.kY)(),{programSupplySheds:n,isLoading:i}=vT(),{programId:o,supplyShedId:a}=(0,wi.tZ)(),{isRegrowOrProgramAdmin:s}=dS(),l=(0,h.C)(xI),c=(0,h.C)(_I),d=(0,h.C)(yI),p=(0,h.C)(iS),[f,m]=(0,r.useState)([]),[g,y]=(0,r.useState)(!1),[v,b]=(0,r.useState)(!1),_=(0,r.useMemo)((()=>ZS(n,a)),[n,a]),{isLoading:x,allGeometryFeatures:k}=lI("supply-shed");(0,r.useEffect)((()=>{e((0,yT.qm)(!0)),e((0,yT.cd)("select"))}),[e,o,a]),(0,r.useEffect)((()=>{"upload"===d&&y(!0)}),[e,d]),(0,r.useEffect)((()=>{e((0,yT.tp)(k)),e((0,yT.ek)(!0))}),[e,k]);const C=(0,r.useCallback)((async()=>{b(!0);const n=[...c].map((e=>({supply_shed_id:a,name:fL(e),commodities:f,geometries:[e]}))),r=[...l].map((e=>{const t=hL(e),n=dL(e);return{supply_shed_id:a,name:t,commodities:f,selected_features:[{feature_id:n,collection_id:pL(e),feature_name:t}]}}));try{await qC.Z.addSupplyShedSubsections(o,a,[...n,...r]),await t(pS.fetchSupplySheds(o)),await t(pS.fetchSupplyShedGeometries(o)),e((0,yT.t7)({})),e((0,yT._0)({})),e((0,yT.Ib)(!0)),e((0,oS.VF)((0,xo.F_)(WC.y2,{programId:o,supplyShedId:a})))}catch(i){b(!1),(0,Yn.c)({type:"error",title:"Error",message:"There was an error creating the subsection."})}}),[f,e,t,o,c,l,a]),S=(0,r.useMemo)((()=>c.every((e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t.name}))),[c]);return s?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"subregion-header",children:(0,w.jsxs)(Cd.k,{direction:"column",children:[(0,w.jsxs)(Cd.k,{alignItems:"center",children:[(0,w.jsx)(Rn.x,{variant:"h1",className:"mt-2 margin-bottom-8",children:"Add Subregions"}),(i||x)&&(0,w.jsx)(On.D8,{className:"mt-0 mb-0 ml-05 mr-0",scale:.7,id:"map-bar-header-progress"})]}),!i&&!x&&(0,w.jsx)(Rn.x,{variant:"h3",className:"mb-0",children:null===_||void 0===_?void 0:_.name})]})}),(0,w.jsxs)(Cd.k,{className:"margin-top-15 margin-bottom-10",fullWidth:!0,justifyContent:"center",direction:"column",children:[(0,w.jsx)(Rn.x,{className:"mt-1",children:"Crops"}),(0,w.jsx)(XE,{className:"expandable",children:(0,w.jsx)(cL,{onCropsChange:e=>{const t=e.map((e=>({id:e,volume:0})));m(t)},cropIds:f.map((e=>{let{id:t}=e;return t}))})})]}),(0,er.$K)(_)&&(0,w.jsx)(mL,{color:p(_.id)}),i||x?(0,w.jsx)(On.D8,{className:"progress",id:"loading-supply-sheds"}):(0,w.jsx)(Cd.k,{direction:"column",justifyContent:"flex-end",className:"subregion-buttons-container",children:(0,w.jsxs)(Cd.k,{className:"margin-top-10",fullWidth:!0,justifyContent:"space-between",gap:"10px",nowrap:!0,children:[(0,w.jsx)(kd.w,{id:"cancel-add-subregion",component:Ho.rU,secondary:!0,raised:!0,className:"element-full-width",to:{pathname:(0,xo.F_)(WC.y2,{programId:o})},onClick:()=>{e((0,yT.t7)({})),e((0,yT._0)({}))},children:"Cancel"}),(0,w.jsx)(kd.w,{loading:v,raised:!0,primary:!0,className:"element-full-width",disabled:v||!f.length||0===c.length&&0===l.length||!S,onClick:C,children:"Save"})]})}),g&&(0,w.jsx)(uL,{onHide:()=>{e((0,yT.cd)("select")),y(!1)}})]}):(0,w.jsx)(u.l_,{to:WC.y2})},bL=e=>{let{programId:t,onHide:n}=e;const i=(0,d.Fg)(),{programSupplySheds:o}=vT(),a=(0,h.C)((e=>nS(e,t))),s=(0,h.C)(iS),[l,c]=(0,r.useState)("true"),[u,p]=(0,r.useState)(!1),[f,m]=(0,r.useState)(!1);return(0,w.jsxs)(d.o9,{title:`Recompute ${null===a||void 0===a?void 0:a.name} (#${null===a||void 0===a?void 0:a.id})`,id:"si-program-name-popup",onClose:n,open:!0,maxWidth:"lg",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.Kq,{gap:4,children:[(0,w.jsxs)(d.NI,{children:[(0,w.jsx)(d.lX,{sx:{mb:2},children:"Include Area"}),(0,w.jsx)(d.t8,{label:"Recompute Area",control:(0,w.jsx)(d.XZ,{checked:u,onChange:e=>p(e.target.checked)})})]}),(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:"Recompute Entire Program"}),(0,w.jsxs)(d.xu,{display:"flex",gap:4,justifyContent:"space-between",alignItems:"center",children:[(0,w.jsxs)(d.NI,{children:[(0,w.jsx)(d.lX,{sx:{mb:2},children:"Recompute"}),(0,w.jsxs)(d.Ee,{row:!0,name:"failed-only-radio",value:l,onChange:e=>c(e.target.value),children:[(0,w.jsx)(d.t8,{value:"true",control:(0,w.jsx)(d.Y8,{}),label:"Recompute Failed Only"}),(0,w.jsx)(d.t8,{value:"false",control:(0,w.jsx)(d.Y8,{}),label:"Recompute All"})]})]}),(0,w.jsx)(d.fl,{loading:f,onClick:async()=>{m(!0),qC.Z.recomputeProgram(t,"true"===l,u).then((()=>(0,Yn.c)({type:"success",title:"Success",message:"Program reprocessing."}))).catch((()=>{})).finally((()=>{m(!1)}))},children:"Recompute Program"})]})]}),(0,w.jsx)(d.iz,{}),(0,w.jsx)(d.ZT,{variant:"h3",children:"Recompute by Subregion"}),null===o||void 0===o?void 0:o.map((e=>(0,w.jsxs)(d.Xk,{sx:{position:"relative",p:3},bgcolor:"semanticPalette.surface.secondary",children:[(0,w.jsx)(GE,{headerColor:s(e.id)}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"baseline",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:"Supply Shed:"}),(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalette.text.brand",children:e.name}),(0,w.jsx)(d.ZT,{variant:"body2",children:`#${e.id}`})]}),e.subsections.map((n=>{const r="PROCESSING"===n.status?{color:"warning",icon:(0,w.jsx)(td.Ho,{fill:i.palette.semanticPalette.textInverted.main})}:"FAILED"===n.status?{color:"error",icon:(0,w.jsx)(k.Pz,{fill:i.palette.semanticPalette.textInverted.main})}:{};return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",p:2,children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:2,children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"baseline",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:"Subregion:"}),(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalette.text.brand",children:n.name}),(0,w.jsx)(d.ZT,{variant:"body2",children:`#${n.id}`})]}),(0,w.jsx)(d.Af,{size:"small",label:n.status,variant:"outlined",...r})]}),(0,w.jsxs)(d.zx,{onClick:()=>(async(e,n)=>{const r=await qC.Z.recomputeSubsection(t,e,n,u);console.log("recomputeSubsection response",r),(0,Yn.c)({type:"success",title:"Success",message:"Subsection reprocessing."})})(e.id,n.id),children:["Recompute ",n.name]})]},n.id)}))]},e.id)))]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:n,children:"Cancel"})})]})},_L=e=>{let{title:t,name:n,onSave:i,onHide:o}=e;const[a,s]=(0,r.useState)(n);return(0,w.jsxs)(d.o9,{id:"si-supply-shed-name-popup",title:t,onClose:o,open:!0,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.nv,{type:"text",id:"si-supply-shed-name",name:"si-supply-shed-name",label:"Name",value:a,onChange:e=>s(e.target.value),fullWidth:!0})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{color:"secondary",variant:"outlined",onClick:o,children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:()=>i(a),children:"Save"})]})]})},wL=Object.keys(uS.jc).map(Number),xL=e=>wL.includes(e),kL=e=>{var t,n,i,o;let{supplyShed:a,deleteArea:s,updateName:l}=e;const c=(0,r.useRef)(null),[u,p]=(0,r.useState)(!1),{isRegrowAdmin:f,isRegrowOrProgramAdmin:m}=dS(),{cropByCDLId:g}=(0,NS.n)(),y=(0,h.C)(S.DC),[v,b]=(0,r.useState)(!1),[_,x]=(0,r.useState)(null),[k,C]=(0,r.useState)(null),[M,T]=(0,r.useState)(""),[E,P]=(0,r.useState)(!1),I=(0,h.C)(iS)(a.id),O={shed:{key:"shed",title:"Rename Supply Shed",name:a.name},region:{key:"region",title:"Rename Subregion",name:M}};return(0,w.jsxs)(d.xu,{className:"supply-shed-card margin-bottom-16",children:[(0,w.jsxs)(d.xu,{className:"supply-shed-header",onClick:()=>{b(!v)},children:[(0,w.jsx)(GE,{headerColor:I})," ",(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",children:[(0,w.jsx)(d.le,{fontSize:"h5",type:v?"chevron-down":"chevron-right"}),(0,w.jsx)(d.ZT,{variant:"h4",fontWeight:e=>e.typography.fontWeightRegular,children:a.name})]}),(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:(0,In.Kr)(Math.round(Number(null===a||void 0===a?void 0:a.total_field_area_ha)),y)}),m&&(0,w.jsxs)(d.zx,{onClick:e=>{e.stopPropagation(),p(!u)},variant:"text",color:"secondary",ref:c,children:[(0,w.jsx)(d.le,{type:"dots-vertical"}),(0,w.jsxs)(d.v2,{open:u,anchorEl:c.current,children:[(0,w.jsx)(CL,{onClick:()=>{x("shed")},iconType:"pencil",children:"Rename Supply Shed"}),(0,w.jsx)(CL,{onClick:()=>s("shed",a.id),iconType:"delete",children:"Delete Supply Shed"}),f&&(0,w.jsx)(CL,{onClick:()=>P(!0),iconType:"refresh",children:"Recompute"})]})]})]})]}),v&&(0,w.jsx)("div",{className:"supply-shed-subsections",children:a.subsections.map((e=>(0,w.jsx)(SL,{subregion:e,cropByCDLId:g,measurement:y,onEdit:()=>{T(e.name),x("region"),C(e.id)},onDeleteSubregion:()=>s("region",a.id,e.id)},e.id)))}),m&&(0,w.jsxs)(r.Fragment,{children:[0===a.subsections.length&&(0,w.jsx)(d.Kq,{p:2,children:(0,w.jsxs)(d.bZ,{severity:"warning",children:[(0,w.jsx)(d.Cd,{children:"No empty supply sheds."}),"Supply sheds require at least one sub-region to be defined."]})}),(0,w.jsxs)(d.zx,{fullWidth:!0,color:"secondary",variant:"text",component:Ho.rU,to:{pathname:(0,xo.F_)(WC.et,{programId:a.program_id,supplyShedId:a.id})},children:[(0,w.jsx)(d.le,{type:"plus"}),"Sub-Region"]})]}),_&&(0,w.jsx)(_L,{title:null!==(t=null===(n=O[_])||void 0===n?void 0:n.title)&&void 0!==t?t:"",name:null!==(i=null===(o=O[_])||void 0===o?void 0:o.name)&&void 0!==i?i:"",onHide:()=>x(null),onSave:e=>{l(_,e,a.id,k),x(null),C(null)}}),E&&(0,w.jsx)(bL,{programId:Number(a.program_id),onHide:()=>P(!1)})]})},CL=e=>{let{children:t,iconType:n,onClick:r}=e;return(0,w.jsx)(d.sN,{onClick:r,children:(0,w.jsxs)(d.Kq,{direction:"row",gap:2,alignItems:"center",children:[(0,w.jsx)(d.le,{type:n}),t]})})},SL=e=>{let{subregion:t,cropByCDLId:n,measurement:i,onEdit:o,onDeleteSubregion:a}=e;const{isRegrowOrProgramAdmin:s}=dS(),[l,c]=(0,r.useState)(!1),u=(0,r.useRef)(null),p=t.commodities.filter((e=>xL(e.id)));return(0,w.jsxs)(d.Kq,{className:"subsection",direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,w.jsx)(d.Kq,{direction:"row",alignItems:"center",children:(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.xu,{mb:1,children:(0,w.jsx)(d.ZT,{children:t.name})}),(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",gap:1,children:[(0,er.Of)(p)&&(0,w.jsx)(d.u,{id:`${t.id}-commodities`,title:p.map((e=>{var t;return null===(t=n[Number(e.id)])||void 0===t?void 0:t.label})).join(", "),placement:"left",children:(0,w.jsx)(d.Af,{label:`${p.length} ${(0,xi.E4)("crop",p.length)}`,size:"small"})}),"PROCESSING"===(null===t||void 0===t?void 0:t.status)&&(0,w.jsx)(d.Af,{color:"info",icon:(0,w.jsx)(td.Ho,{}),label:"Region processing",size:"small"}),"FAILED"===(null===t||void 0===t?void 0:t.status)&&(0,w.jsx)(d.Af,{color:"error",icon:(0,w.jsx)(d.le,{type:"info-circled"}),label:"Processing failed",size:"small"})]})]})}),(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",children:[(0,w.jsx)(d.ZT,{variant:"body1",fontWeight:e=>e.typography.fontWeightBold,children:(0,In.Kr)(Math.round(Number(null===t||void 0===t?void 0:t.field_area_ha)),i)}),s&&(0,w.jsxs)(d.zx,{onClick:e=>{e.stopPropagation(),c(!l)},variant:"text",color:"secondary",ref:u,children:[(0,w.jsx)(d.le,{type:"dots-vertical"}),(0,w.jsxs)(d.v2,{open:l,anchorEl:u.current,children:[(0,w.jsx)(CL,{onClick:o,iconType:"pencil",children:"Rename subregion"}),(0,w.jsx)(CL,{iconType:"delete",onClick:a,children:"Delete Subregion"})]})]})]})]},t.id)},ML=e=>{let{name:t,onSave:n,onHide:i}=e;const[o,a]=(0,r.useState)(t||"");return(0,w.jsxs)(d.o9,{id:"add-supply-shed-popup",title:"Add supply shed",onClose:i,open:!0,maxWidth:"md",children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",gap:3,children:[(0,w.jsx)(d.ZT,{children:"A supply shed is a geographic area whose boundary is defined by a collection of sub-sections."}),(0,w.jsx)(d.nv,{fullWidth:!0,id:"supply-shed-name",name:"supply-shed-name",label:"Name",value:o,onChange:e=>a(e.target.value)})]})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:i,children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:()=>n(o),disabled:!o,children:"Save"})]})]})},TL=e=>{let{onHide:t}=e;return(0,w.jsxs)(d.o9,{title:"Processing Sourcing Regions...",id:"si-processing-popup",onClose:t,open:!0,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.xu,{display:"flex",gap:3,flexDirection:"column",children:[(0,w.jsx)(d.ZT,{children:"We\u2019re re-calculating all of your Practice and Outcome metrics based on your updated supply shed geographies."}),(0,w.jsx)(d.ZT,{children:"This may take up to 60 minutes or more to complete. Your Sustainability Dashboard will automatically refresh with the updated metrics once processing is complete."})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:t,children:"Continue"})})]})},EL=()=>{var e;const t=(0,h.T)(),{programSupplySheds:n,isLoading:i,mutate:o}=vT(),{programId:a}=(0,wi.tZ)(),{isRegrowOrProgramAdmin:s}=dS(),l=(0,h.C)((e=>nS(e,a))),c=(0,h.C)(S.DC),u=(0,h.C)(xO.PR),[p,f]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(0),{isLoading:b,geometries:_,allGeometryFeatures:x,mutate:k}=lI("supply-shed");u&&!p&&(t((0,yT.Ib)(!1)),f(!0)),(0,r.useEffect)((()=>{t((0,yT.qm)(!1)),t((0,yT.cd)("none")),t((0,yT.ek)(!0))}),[t]),(0,r.useEffect)((()=>{t((0,yT.tp)(x))}),[t,x]),(0,r.useEffect)((()=>{const e=null===n||void 0===n?void 0:n.reduce(((e,t)=>{var n;return e+(null!==(n=null===t||void 0===t?void 0:t.total_field_area_ha)&&void 0!==n?n:0)}),0);v(e)}),[n]);const C=(0,r.useCallback)((async e=>{await qC.Z.removeSupplyShed(a,e);const t=((e,t)=>e.filter((e=>e.id!==t)))(n,e);await o(t);const r=((e,t)=>e.filter((e=>e.id!==t)))(_,e);await k(r)}),[_,k,o,a,n]),M=(0,r.useCallback)((async(e,t)=>{await qC.Z.removeSupplyShedSubsection(a,e,t);const r=((e,t,n)=>e.map((e=>e.id===t?{...e,subsections:e.subsections.filter((e=>e.id!==n))}:e)))(n,e,t);await o(r);const i=((e,t,n)=>e.map((e=>e.id===t?{...e,subsection_geometries:e.subsection_geometries.filter((e=>e.id!==n))}:e)))(_,e,t);await k(i)}),[_,k,o,a,n]),T=async(e,t,n)=>{"shed"===e?confirm("Are you sure you want to delete the supply shed? All subregions will also be deleted.")&&(await C(t),(0,Yn.c)({type:"success",title:"Success",message:"The supply shed was removed"})):(0,er.$K)(n)&&"region"===e&&confirm("Are you sure you want to delete the subregion?")&&(await M(t,n),(0,Yn.c)({type:"success",title:"Success",message:"The subregion was removed."}))},E=async(e,t,r,i)=>{if("shed"===e){const{data:e}=await qC.Z.updateSupplyShed(a,r,{name:t}),i=((e,t,n)=>e.map((e=>e.id===t?{...e,...n}:e)))(n,r,e);await o(i)}else if((0,er.$K)(i)&&"region"===e){const{data:e}=await qC.Z.updateSupplyShedSubsection(a,r,i,{name:t}),s=((e,t)=>{const{id:n,supply_shed_id:r}=t;return e.map((e=>e.id===r?{...e,subsections:e.subsections.map((e=>e.id===n?t:e))}:e))})(n,e);await o(s)}};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.Kq,{py:3,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,w.jsxs)(d.xu,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h3",fontWeight:e=>e.typography.fontWeightRegular,children:"Supply Sheds"}),(0,w.jsxs)(d.ZT,{variant:"h4",fontWeight:e=>e.typography.fontWeightRegular,children:[(0,In.Kr)(Math.round(y),c)," / ",(0,In.Kr)(Math.round(null!==(e=null===l||void 0===l?void 0:l.acreage_limit_ha)&&void 0!==e?e:0),c)]})]}),s&&(0,w.jsx)(d.zx,{variant:"outlined",onClick:()=>g(!0),children:"+ Supply Shed"})]}),(0,w.jsx)(d.Kq,{mb:4,alignItems:"center",children:i||b?(0,w.jsx)(On.D8,{className:"progress",id:"loading-supply-sheds"}):0===(null===n||void 0===n?void 0:n.length)?(0,w.jsx)(Rn.x,{secondary:!0,children:" Add a supply shed to get started"}):null}),null===n||void 0===n?void 0:n.map((e=>(0,w.jsx)(kL,{supplyShed:e,deleteArea:T,updateName:E},e.id))),m&&(0,w.jsx)(ML,{name:"",description:"Description",onHide:()=>g(!1),onSave:async e=>{g(!1);const r={...fS.aJ,name:e},{data:i}=await qC.Z.addSupplyShed(a,r),s=i[0];t((0,yT.AG)([...n,...s?[s]:[]])),await o([...n,...s?[s]:[]])}}),p&&(0,w.jsx)(TL,{onHide:()=>f(!1)})]})},PL=()=>{const e=(0,h.C)((e=>e.global.sessionExpired)),{programId:t}=YC();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(sL,{}),e&&(0,w.jsx)(Co,{visible:!0}),(0,w.jsx)(Vm,{hideExpand:!0,children:(0,w.jsx)("div",{className:"section-container si-right-panel-section-container",children:(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(u.AW,{path:WC.et,component:vL}),(0,w.jsx)(u.AW,{path:WC.y2,component:EL}),(0,w.jsx)(u.AW,{path:WC.y2,component:()=>(0,er.$K)(t)?(0,w.jsx)(u.l_,{to:(0,xo.F_)(WC.y2,{programId:t})}):(0,w.jsx)(u.l_,{to:WC.Y9})})]})})})]})},IL=e=>{let{programId:t}=e;const{push:n}=(0,u.k6)(),i=(0,u.TH)(),{getHasTabAccess:o}=jS(),{isRegrowOrProgramAdmin:a}=dS(),s=(0,r.useMemo)((()=>[{accessKey:"supply_shed",label:uS.kx.supply_shed,value:(0,xo.F_)(WC.y2,{programId:t})},{accessKey:"data_scenarios",label:uS.kx.data_scenarios,value:(0,xo.F_)(WC.PI,{programId:t})},{accessKey:"commodity_sources",label:uS.kx.commodity_sources,value:(0,xo.F_)(WC.P8,{programId:t})},...a?[{accessKey:"admin",label:uS.kx.admin,value:(0,xo.F_)(WC.LW,{programId:t})}]:[]].filter((e=>o(e.accessKey)))),[a,t,o]),l=(0,r.useMemo)((()=>{var e;return String(null===(e=s.find((e=>{let{value:t}=e;return i.pathname.includes(t)})))||void 0===e?void 0:e.value)}),[i,s]);return s.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(jM.q,{containerClassName:"second-level-menu-tabs",tabs:s,selectedTab:l,onTabClick:e=>n(e)}),(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{path:WC.y2,component:PL}),(0,er.$K)(s.find((e=>{let{accessKey:t}=e;return"data_scenarios"===t})))&&(0,w.jsx)(vm,{path:WC.PI,component:vO}),(0,er.$K)(s.find((e=>{let{accessKey:t}=e;return"commodity_sources"===t})))&&(0,w.jsx)(vm,{path:WC.P8,component:gT}),(0,w.jsx)(vm,{path:WC.LW,component:GO}),(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:(0,xo.F_)(WC.y2,{programId:t})})})]})]}):(0,w.jsx)(u.l_,{to:WC.Y9})};var OL=n(78049);const LL=e=>{let{className:t}=e;const n=(0,h.T)(),{programId:r}=(0,wi.tZ)();return(0,w.jsx)(RL,{flat:!0,className:t,secondary:!0,iconEl:(0,w.jsx)(On.xu,{children:"keyboard_arrow_left"}),onClick:()=>{n((0,oS.VF)((0,xo.F_)(WC.ng,{programId:r})))},children:"Back to All Plans"})},RL=(0,Z.ZP)(kd.w)`
  width: 200px;
  padding: 12px;
  color: ${e=>e.theme.color.text.main} !important;
  border-color: ${e=>e.theme.color.stroke.strong} !important;

  .md-icon-text {
    line-height: 1;
    padding-left: 0px;
    text-transform: uppercase;
  }
`,jL=e=>(0,w.jsx)(d.u,{disableInteractive:!0,...e,children:(0,w.jsx)("div",{children:(0,w.jsx)(On.xu,{children:"help_outline"})})}),DL=e=>{let{children:t}=e;return(0,w.jsx)(Rn.x,{variant:"h3",className:"m-0",bold:!0,children:t})},AL=e=>{let{children:t}=e;return(0,w.jsx)(Rn.x,{tertiary:!0,variant:"medium",style:{height:22,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:"string"===typeof t?t:void 0,noMargin:!0,children:t})},NL=Z.ZP.div`
  display: flex;
  justify-content: center;
  width: calc(300px - 32px);
`,FL=Z.ZP.div`
  display: flex;
  justify-content: space-between;

  .nav-btn {
    color: ${e=>{let{theme:t}=e;return t.color.text.secondary}};
    font-size: 12px;
    text-transform: none;
    cursor: pointer;
    padding: 5px;
    font-weight: 600;

    &.disabled {
      cursor: default;
      color: ${e=>{let{theme:t}=e;return t.color.text.secondaryInverted}}; /* MUI palette.text.disabled */
    }

    .md-icon {
      color: inherit;
    }
  }
`,zL=e=>{let{title:t,subtitle:n,tooltip:r,tooltipPlacement:i="bottom"}=e;return(0,w.jsxs)("div",{children:[(0,w.jsxs)(Cd.k,{justifyContent:"space-between",children:[(0,w.jsx)(DL,{children:t}),(0,er.$K)(r)&&(0,w.jsx)(jL,{id:`tooltip for ${t}`,title:r,placement:i})]}),(0,er.$K)(n)&&(0,w.jsx)(AL,{children:n})]})},BL=e=>{let{titleText:t,startIcon:n}=e;return(0,w.jsxs)($L,{children:[n,(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,noMargin:!0,children:t})]})},UL=Z.ZP.div`
  border-radius: 8px;
  border: ${e=>{let{theme:t}=e;return`1px solid ${t.colorPalette.fs_main.gray_300}`}};
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  gap: 10px;
  max-width: 100%;
`,$L=Z.ZP.div`
  display: flex;
  align-items: center;
  gap: 8px;
  .md-icon {
    color: ${e=>{let{theme:t}=e;return t.color.text.main}};
  }
`,VL=()=>{const{programSupplySheds:e}=vT(),t=(0,h.C)(OL.Co);return(0,r.useMemo)((()=>t(e)),[t,e])};var qL=n(93284);let ZL=aR();const HL=e=>nR(e,ZL);let GL=aR();HL.write=e=>nR(e,GL);let WL=aR();HL.onStart=e=>nR(e,WL);let YL=aR();HL.onFrame=e=>nR(e,YL);let KL=aR();HL.onFinish=e=>nR(e,KL);let XL=[];HL.setTimeout=(e,t)=>{let n=HL.now()+t,r=()=>{let e=XL.findIndex((e=>e.cancel==r));~e&&XL.splice(e,1),lR.count-=~e?1:0},i={time:n,handler:e,cancel:r};return XL.splice(JL(n),0,i),lR.count+=1,rR(),i};let JL=e=>~(~XL.findIndex((t=>t.time>e))||~XL.length);HL.cancel=e=>{ZL.delete(e),GL.delete(e)},HL.sync=e=>{tR=!0,HL.batchedUpdates(e),tR=!1},HL.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t=r,HL.onStart(n)}return r.handler=e,r.cancel=()=>{WL.delete(n),t=null},r};let QL="undefined"!=typeof window?window.requestAnimationFrame:()=>{};HL.use=e=>QL=e,HL.now="undefined"!=typeof performance?()=>performance.now():Date.now,HL.batchedUpdates=e=>e(),HL.catch=console.error;let eR=-1,tR=!1;function nR(e,t){tR?(t.delete(e),e(0)):(t.add(e),rR())}function rR(){eR<0&&(eR=0,QL(iR))}function iR(){~eR&&(QL(iR),HL.batchedUpdates(oR))}function oR(){let e=eR;eR=HL.now();let t=JL(eR);t&&(sR(XL.splice(0,t),(e=>e.handler())),lR.count-=t),WL.flush(),ZL.flush(e?Math.min(64,eR-e):16.667),YL.flush(),GL.flush(),KL.flush()}function aR(){let e=new Set,t=e;return{add(n){lR.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(lR.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,lR.count-=t.size,sR(t,(t=>t(n)&&e.add(t))),lR.count+=e.size,t=e)}}}function sR(e,t){e.forEach((e=>{try{t(e)}catch(ag){HL.catch(ag)}}))}const lR={count:0,clear(){eR=-1,XL=[],WL=aR(),ZL=aR(),YL=aR(),GL=aR(),KL=aR(),lR.count=0}};function cR(){}const uR={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e};function dR(e,t){if(uR.arr(e)){if(!uR.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const pR=(e,t)=>e.forEach(t);function hR(e,t,n){for(const r in e)t.call(n,e[r],r)}const fR=e=>uR.und(e)?[]:uR.arr(e)?e:[e];function mR(e,t){if(e.size){const n=Array.from(e);e.clear(),pR(n,t)}}const gR=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return mR(e,(e=>e(...n)))};let yR,vR,bR=null,_R=!1,wR=cR;var xR=Object.freeze({__proto__:null,get createStringInterpolator(){return yR},get to(){return vR},get colors(){return bR},get skipAnimation(){return _R},get willAdvance(){return wR},assign:e=>{e.to&&(vR=e.to),e.now&&(HL.now=e.now),void 0!==e.colors&&(bR=e.colors),null!=e.skipAnimation&&(_R=e.skipAnimation),e.createStringInterpolator&&(yR=e.createStringInterpolator),e.requestAnimationFrame&&HL.use(e.requestAnimationFrame),e.batchedUpdates&&(HL.batchedUpdates=e.batchedUpdates),e.willAdvance&&(wR=e.willAdvance)}});const kR=new Set;let CR=[],SR=[],MR=0;const TR={get idle(){return!kR.size&&!CR.length},start(e){MR>e.priority?(kR.add(e),HL.onStart(ER)):(PR(e),HL(OR))},advance:OR,sort(e){if(MR)HL.onFrame((()=>TR.sort(e)));else{const t=CR.indexOf(e);~t&&(CR.splice(t,1),IR(e))}},clear(){CR=[],kR.clear()}};function ER(){kR.forEach(PR),kR.clear(),HL(OR)}function PR(e){CR.includes(e)||IR(e)}function IR(e){CR.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(CR,(t=>t.priority>e.priority)),0,e)}function OR(e){const t=SR;for(let n=0;n<CR.length;n++){const r=CR[n];MR=r.priority,r.idle||(wR(r),r.advance(e),r.idle||t.push(r))}return MR=0,SR=CR,SR.length=0,CR=t,CR.length>0}const LR="[-+]?\\d*\\.?\\d+",RR=LR+"%";function jR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const DR=new RegExp("rgb"+jR(LR,LR,LR)),AR=new RegExp("rgba"+jR(LR,LR,LR,LR)),NR=new RegExp("hsl"+jR(LR,RR,RR)),FR=new RegExp("hsla"+jR(LR,RR,RR,LR)),zR=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,BR=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,UR=/^#([0-9a-fA-F]{6})$/,$R=/^#([0-9a-fA-F]{8})$/;function VR(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=VR(i,r,e+1/3),a=VR(i,r,e),s=VR(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ZR(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function HR(e){return(parseFloat(e)%360+360)%360/360}function GR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function WR(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function YR(e){let t=function(e){let t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=UR.exec(e))?parseInt(t[1]+"ff",16)>>>0:bR&&void 0!==bR[e]?bR[e]:(t=DR.exec(e))?(ZR(t[1])<<24|ZR(t[2])<<16|ZR(t[3])<<8|255)>>>0:(t=AR.exec(e))?(ZR(t[1])<<24|ZR(t[2])<<16|ZR(t[3])<<8|GR(t[4]))>>>0:(t=zR.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=$R.exec(e))?parseInt(t[1],16)>>>0:(t=BR.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=NR.exec(e))?(255|qR(HR(t[1]),WR(t[2]),WR(t[3])))>>>0:(t=FR.exec(e))?(qR(HR(t[1]),WR(t[2]),WR(t[3]))|GR(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const KR=(e,t,n)=>{if(uR.fun(e))return e;if(uR.arr(e))return KR({range:e,output:t,extrapolate:n});if(uR.str(e.output[0]))return yR(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};const XR=Symbol.for("FluidValue.get"),JR=Symbol.for("FluidValue.observers"),QR=e=>Boolean(e&&e[XR]),ej=e=>e&&e[XR]?e[XR]():e,tj=e=>e[JR]||null;function nj(e,t){let n=e[JR];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class rj{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ij(this,e)}}const ij=(e,t)=>sj(e,XR,t);function oj(e,t){if(e[XR]){let n=e[JR];n||sj(e,JR,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function aj(e,t){let n=e[JR];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[JR]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const sj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),lj=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,cj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let uj;const dj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pj=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,hj=e=>{uj||(uj=bR?new RegExp(`(${Object.keys(bR).join("|")})`,"g"):/^\b$/);const t=e.output.map((e=>ej(e).replace(cj,YR).replace(uj,YR))),n=t.map((e=>e.match(lj).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),i=r.map((t=>KR({...e,output:t})));return e=>{let n=0;return t[0].replace(lj,(()=>String(i[n++](e)))).replace(dj,pj)}},fj="react-spring: ",mj=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${fj}once requires a function parameter`);return function(){n||(t(...arguments),n=!0)}},gj=mj(console.warn);const yj=mj(console.warn);function vj(e){return uR.str(e)&&("#"==e[0]||/\d/.test(e)||e in(bR||{}))}const bj=e=>(0,r.useEffect)(e,_j),_j=[];function wj(){const e=(0,r.useState)()[1],t=(0,r.useState)(xj)[0];return bj(t.unmount),()=>{t.current&&e({})}}function xj(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function kj(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}const Cj="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Sj=Symbol.for("Animated:node"),Mj=e=>e&&e[Sj],Tj=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Sj,t),Ej=e=>e&&e[Sj]&&e[Sj].getPayload();class Pj{constructor(){Tj(this,this)}getPayload(){return this.payload||[]}}class Ij extends Pj{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,uR.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ij(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return uR.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,uR.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Oj extends Ij{constructor(e){super(0),this._string=null,this._toString=KR({output:[e,e]})}static create(e){return new Oj(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(uR.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=KR({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Lj={dependencies:null};class Rj extends Pj{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return hR(this.source,((n,r)=>{(e=>!!e&&e[Sj]===e)(n)?t[r]=n.getValue(e):QR(n)?t[r]=ej(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&pR(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return hR(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Lj.dependencies&&QR(e)&&Lj.dependencies.add(e);const t=Ej(e);t&&pR(t,(e=>this.add(e)))}}class jj extends Rj{constructor(e){super(e)}static create(e){return new jj(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.some(((t,n)=>t.setValue(e[n]))):(super.setValue(e.map(Dj)),!0)}}function Dj(e){return(vj(e)?Oj:Ij).create(e)}function Aj(e){const t=Mj(e);return t?t.constructor:uR.arr(e)?jj:vj(e)?Oj:Ij}const Nj=(e,t)=>{const n=!uR.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((i,o)=>{const a=(0,r.useRef)(null),s=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(uR.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[l,c]=function(e,t){const n=new Set;Lj.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Rj(e),Lj.dependencies=null,[e,n]}(i,t),u=wj(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},p=new Fj(d,c),h=(0,r.useRef)();Cj((()=>{const e=h.current;h.current=p,pR(c,(e=>oj(e,p))),e&&(pR(e.deps,(t=>aj(t,e))),HL.cancel(e.update))})),(0,r.useEffect)(d,[]),bj((()=>()=>{const e=h.current;pR(e.deps,(t=>aj(t,e)))}));const f=t.getComponentProps(l.getValue());return(0,r.createElement)(e,{...f,ref:s})}))};class Fj{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&HL.write(this.update)}}const zj=Symbol.for("AnimatedComponent"),Bj=e=>uR.str(e)?e:e&&uR.str(e.displayName)?e.displayName:uR.fun(e)&&e.name||null;function Uj(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return uR.fun(e)?e(...n):e}const $j=(e,t)=>!0===e||!!(t&&e&&(uR.fun(e)?e(t):fR(e).includes(t))),Vj=(e,t)=>uR.obj(e)?t&&e[t]:e,qj=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Zj=e=>e,Hj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zj,n=Gj;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);uR.und(n)||(r[i]=n)}return r},Gj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Wj={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Yj(e){const t=function(e){const t={};let n=0;if(hR(e,((e,r)=>{Wj[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return hR(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Kj(e){return e=ej(e),uR.arr(e)?e.map(Kj):vj(e)?xR.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Xj(e){for(const t in e)return!0;return!1}function Jj(e){return uR.fun(e)||uR.arr(e)&&uR.obj(e[0])}function Qj(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function eD(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const tD={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},nD={...tD.default,mass:1,damping:1,easing:e=>e,clamp:!1};class rD{constructor(){this.velocity=0,Object.assign(this,nD)}}function iD(e,t){if(uR.und(t.decay)){const n=!uR.und(t.tension)||!uR.und(t.friction);!n&&uR.und(t.frequency)&&uR.und(t.damping)&&uR.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const oD=[];class aD{constructor(){this.changed=!1,this.values=oD,this.toValues=null,this.fromValues=oD,this.config=new rD,this.immediate=!1}}function sD(e,t){let{key:n,props:r,defaultProps:i,state:o,actions:a}=t;return new Promise(((t,s)=>{var l;let c,u,d=$j(null!=(l=r.cancel)?l:null==i?void 0:i.cancel,n);if(d)f();else{uR.und(r.pause)||(o.paused=$j(r.pause,n));let e=null==i?void 0:i.pause;!0!==e&&(e=o.paused||$j(e,n)),c=Uj(r.delay||0,n),e?(o.resumeQueue.add(h),a.pause()):(a.resume(),h())}function p(){o.resumeQueue.add(h),o.timeouts.delete(u),u.cancel(),c=u.time-HL.now()}function h(){c>0?(u=HL.setTimeout(f,c),o.pauseQueue.add(p),o.timeouts.add(u)):f()}function f(){o.pauseQueue.delete(p),o.timeouts.delete(u),e<=(o.cancelId||0)&&(d=!0);try{a.start({...r,callId:e,cancel:d},t)}catch(n){s(n)}}}))}const lD=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?dD(e.get()):t.every((e=>e.noop))?cD(e.get()):uD(e.get(),t.every((e=>e.finished))),cD=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),uD=function(e,t){return{value:e,finished:t,cancelled:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},dD=e=>({value:e,cancelled:!0,finished:!1});function pD(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Hj(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=i<=(n.cancelId||0)&&dD(r)||i!==n.asyncId&&uD(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new fD,a=new mD;return(async()=>{if(xR.skipAnimation)throw hD(n),a.result=uD(r,!1),d(a),a;h(o);const s=uR.obj(e)?{...e}:{...t,to:e};s.parentId=i,hR(c,((e,t)=>{uR.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return h(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(xR.skipAnimation)return hD(n),uD(r,!1);try{let t;t=uR.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=uD(r.get(),!0,!1)}catch(g){if(g instanceof fD)m=g.result;else{if(!(g instanceof mD))throw g;m=g.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return uR.fun(a)&&HL.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function hD(e,t){mR(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class fD extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}}class mD extends Error{constructor(){super("SkipAnimationSignal")}}const gD=e=>e instanceof vD;let yD=1;class vD extends rj{constructor(){super(...arguments),this.id=yD++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Mj(this);return e&&e.getValue()}to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xR.to(this,t)}interpolate(){gj(`${fj}The "interpolate" function is deprecated in v9 (use "to" instead)`);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xR.to(this,t)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e){nj(this,{type:"change",parent:this,value:e,idle:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})}_onPriorityChange(e){this.idle||TR.sort(this),nj(this,{type:"priority",parent:this,priority:e})}}const bD=Symbol.for("SpringPhase"),_D=e=>(1&e[bD])>0,wD=e=>(2&e[bD])>0,xD=e=>(4&e[bD])>0,kD=(e,t)=>t?e[bD]|=3:e[bD]&=-3,CD=(e,t)=>t?e[bD]|=4:e[bD]&=-5;class SD extends vD{constructor(e,t){if(super(),this.animation=new aD,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!uR.und(e)||!uR.und(t)){const n=uR.obj(e)?{...e}:{...t,from:e};uR.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wD(this)||this._state.asyncTo)||xD(this)}get goal(){return ej(this.animation.to)}get velocity(){const e=Mj(this);return e instanceof Ij?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return _D(this)}get isAnimating(){return wD(this)}get isPaused(){return xD(this)}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=Ej(r.to);!a&&QR(r.to)&&(o=fR(ej(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Oj?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=uR.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(uR.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<.1,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),r=i.restVelocity||t/10,l=i.clamp?0:i.bounce,p=!uR.und(l),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(f=Math.abs(a)>r,f||(u=Math.abs(c-d)<=t,!u));++e){p&&(m=d==c||d>c==h,m&&(a=-a*l,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=Mj(this);if(t){const e=ej(r.to);(s.setValue(e)||n)&&this._onChange(e),this._stop()}else n&&this._onChange(s.getValue())}set(e){return HL.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wD(this)){const{to:e,config:t}=this.animation;HL.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return uR.und(e)?(n=this.queue||[],this.queue=[]):n=[uR.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>lD(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),hD(this._state,e&&this._lastCallId),HL.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=uR.obj(n)?n[t]:n,(null==n||Jj(n))&&(n=void 0),r=uR.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return _D(this)||(e.reverse&&([n,r]=[r,n]),r=ej(r),uR.und(r)?Mj(this)||this._set(n):this._set(r)),i}_update(e,t){let{...n}=e;const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Hj(n,((e,t)=>/^on/.test(t)?Vj(e,r):e))),LD(this,n,"onProps"),RD(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return sD(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{xD(this)||(CD(this,!0),gR(a.pauseQueue),RD(this,"onPause",uD(this,MD(this,this.animation.to)),this))},resume:()=>{xD(this)&&(CD(this,!1),wD(this)&&this._resume(),gR(a.resumeQueue),RD(this,"onResume",uD(this,MD(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=TD(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(dD(this));const r=!uR.und(e.to),i=!uR.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(dD(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!uR.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!dR(d,c);p&&(s.from=d),d=ej(d);const h=!dR(u,l);h&&this._focus(u);const f=Jj(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||i)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(iD(n={...n},t),t={...n,...t}),iD(e,t),Object.assign(e,t);for(const a in nD)null==e[a]&&(e[a]=nD[a]);let{mass:r,frequency:i,damping:o}=e;uR.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(m,Uj(t.config,o),t.config!==a.config?Uj(a.config,o):void 0);let v=Mj(this);if(!v||uR.und(u))return n(uD(this,!0));const b=uR.und(t.reset)?i&&!t.default:!uR.und(d)&&$j(t.reset,o),_=b?d:this.get(),w=Kj(u),x=uR.num(w)||uR.arr(w)||vj(w),k=!f&&(!x||$j(a.immediate||t.immediate,o));if(h){const e=Aj(u);if(e!==v.constructor){if(!k)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(w)}}const C=v.constructor;let S=QR(u),M=!1;if(!S){const e=b||!_D(this)&&p;(h||e)&&(M=dR(Kj(_),w),S=!M),dR(m.decay,g)&&dR(m.velocity,y)||(S=!0)}if(M&&wD(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||QR(l))&&(s.values=v.getPayload(),s.toValues=QR(u)?null:C==Oj?[1]:fR(w)),s.immediate!=k&&(s.immediate=k,k||b||this._set(l)),S)){const{onRest:e}=s;pR(OD,(e=>LD(this,t,e)));const r=uD(this,MD(this,l));gR(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&HL.batchedUpdates((()=>{var t;s.changed=!b,null==e||e(r,this),b?Uj(a.onRest,r):null==(t=s.onStart)||t.call(s,r,this)}))}b&&this._set(_),f?n(pD(t.to,t,this._state,this)):S?this._start():wD(this)&&!h?this._pendingCalls.add(n):n(cD(_))}_focus(e){const t=this.animation;e!==t.to&&(tj(this)&&this._detach(),t.to=e,tj(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;QR(t)&&(oj(t,this),gD(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;QR(e)&&aj(e,this)}_set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=ej(e);if(!uR.und(n)){const e=Mj(this);if(!e||!dR(n,e.getValue())){const r=Aj(n);e&&e.constructor==r?e.setValue(n):Tj(this,r.create(n)),e&&HL.batchedUpdates((()=>{this._onChange(n,t)}))}}return Mj(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,RD(this,"onStart",uD(this,MD(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Uj(this.animation.onChange,e,this)),Uj(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Mj(this).reset(ej(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),wD(this)||(kD(this,!0),xD(this)||this._resume())}_resume(){xR.skipAnimation?this.finish():TR.start(this)}_stop(e,t){if(wD(this)){kD(this,!1);const n=this.animation;pR(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),nj(this,{type:"idle",parent:this});const r=t?dD(this.get()):uD(this.get(),MD(this,null!=e?e:n.to));gR(this._pendingCalls,r),n.changed&&(n.changed=!1,RD(this,"onRest",r,this))}}}function MD(e,t){const n=Kj(t);return dR(Kj(e.get()),n)}function TD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to,r=Uj(t);if(r){const i=!0!==r&&Yj(r),o=(i||e).reverse,a=!i||i.reset;return ED({...e,loop:t,default:!1,pause:void 0,to:!o||Jj(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ED(e){const{to:t,from:n}=e=Yj(e),r=new Set;return uR.obj(t)&&ID(t,r),uR.obj(n)&&ID(n,r),e.keys=r.size?Array.from(r):null,e}function PD(e){const t=ED(e);return uR.und(t.default)&&(t.default=Hj(t)),t}function ID(e,t){hR(e,((e,n)=>null!=e&&t.add(n)))}const OD=["onStart","onRest","onChange","onPause","onResume"];function LD(e,t,n){e.animation[n]=t[n]!==qj(t,n)?Vj(t[n],e.key):void 0}function RD(e,t){for(var n,r,i,o,a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];null==(r=(n=e.animation)[t])||r.call(n,...s),null==(o=(i=e.defaultProps)[t])||o.call(i,...s)}const jD=["onStart","onChange","onRest"];let DD=1;class AD{constructor(e,t){this.id=DD++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];uR.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ED(e)),this}start(e){let{queue:t}=this;return e?t=fR(e).map(ED):this.queue=[],this._flush?this._flush(this,t):(VD(this,t),ND(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;pR(fR(t),(t=>n[t].stop(!!e)))}else hD(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(uR.und(e))this.start({pause:!0});else{const t=this.springs;pR(fR(e),(e=>t[e].pause()))}return this}resume(e){if(uR.und(e))this.start({pause:!1});else{const t=this.springs;pR(fR(e),(e=>t[e].resume()))}return this}each(e){hR(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,mR(e,(e=>{let[t,n]=e;n.value=this.get(),t(n,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&mR(t,(e=>{let[t,n]=e;n.value=a,t(n,this,this._item)})),o&&(this._started=!1,mR(n,(e=>{let[t,n]=e;n.value=a,t(n,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}HL.onFrame(this._onFrame)}}function ND(e,t){return Promise.all(t.map((t=>FD(e,t)))).then((t=>lD(e,t)))}async function FD(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=uR.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=uR.arr(i)||uR.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):pR(jD,(n=>{const r=t[n];if(uR.fun(r)){const i=e._events[n];t[n]=e=>{let{finished:t,cancelled:n}=e;const o=i.get(r);o?(t||(o.finished=!1),n&&(o.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:n||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,gR(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===qj(t,"cancel");(u||h&&d.asyncId)&&p.push(sD(++e._lastAsyncId,{props:t,state:d,actions:{pause:cR,resume:cR,start(t,n){h?(hD(d,e._lastAsyncId),n(dD(e))):(t.onRest=s,n(pD(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=lD(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=TD(t,a,i);if(n)return VD(e,[n]),FD(e,n,!0)}return l&&HL.batchedUpdates((()=>l(f,e,e.item))),f}function zD(e,t){const n={...e.springs};return t&&pR(fR(t),(e=>{uR.und(e.keys)&&(e=ED(e)),uR.obj(e.to)||(e={...e,to:void 0}),$D(n,e,(e=>UD(e)))})),n}function BD(e,t){hR(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,oj(t,e))}))}function UD(e,t){const n=new SD;return n.key=e,t&&oj(n,t),n}function $D(e,t,n){t.keys&&pR(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function VD(e,t){pR(t,(t=>{$D(e.springs,t,(t=>UD(t,e)))}))}const qD=e=>{let{children:t,...n}=e;const i=(0,r.useContext)(ZD),o=n.pause||!!i.pause,a=n.immediate||!!i.immediate;n=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),i=(0,r.useRef)(),o=i.current;let a=o;if(a){const n=Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs));n||(a={inputs:t,result:e()})}else a=n;return(0,r.useEffect)((()=>{i.current=a,o==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:a})),[o,a]);const{Provider:s}=ZD;return(0,r.createElement)(s,{value:n},t)},ZD=function(e,t){return Object.assign(e,(0,r.createContext)(t)),e.Provider._context=e,e.Consumer._context=e,e}(qD,{});qD.Provider=ZD.Provider,qD.Consumer=ZD.Consumer;class HD extends Function{constructor(){super("return arguments.callee._call.apply(arguments.callee, arguments)"),this.current=[]}_call(e){yj(`${fj}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)`),this.start(e)}set(e){pR(this.current,(t=>t.set(e)))}start(e){const t=[];return pR(this.current,((n,r)=>{if(uR.und(e))t.push(n.start());else{const i=this._getProps(e,n,r);i&&t.push(n.start(i))}})),t}update(e){return pR(this.current,((t,n)=>t.update(this._getProps(e,t,n)))),this}add(e){this.current.includes(e)||this.current.push(e)}delete(e){const t=this.current.indexOf(e);~t&&this.current.splice(t,1)}_getProps(e,t,n){return uR.fun(e)?e(n,t):e}}function GD(e,t,n){const i=uR.fun(t)&&t;i&&!n&&(n=[]);const o=(0,r.useMemo)((()=>i||3==arguments.length?new HD:void 0),[]),a=(0,r.useRef)(0),s=wj(),l=(0,r.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=zD(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?ND(e,t):new Promise((r=>{BD(e,n),l.queue.push((()=>{r(ND(e,t))})),s()}))}})),[]),c=[...l.ctrls],u=[],d=kj(e)||0,p=c.slice(e,d);function h(e,n){for(let r=e;r<n;r++){const e=c[r]||(c[r]=new AD(null,l.flush)),n=i?i(r,e):t[r];n&&(u[r]=PD(n))}}(0,r.useMemo)((()=>{c.length=e,h(d,e)}),[e]),(0,r.useMemo)((()=>{h(0,Math.min(d,e))}),n);const f=c.map(((e,t)=>zD(e,u[t]))),m=(0,r.useContext)(qD),g=kj(m),y=m!==g&&Xj(m);Cj((()=>{a.current++,l.ctrls=c;const{queue:e}=l;e.length&&(l.queue=[],pR(e,(e=>e()))),pR(p,(e=>{Qj(e,o),e.stop(!0)})),pR(c,((e,t)=>{BD(e,f[t]),null==o||o.add(e),y&&e.start({default:m});const n=u[t];n&&(eD(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),bj((()=>()=>{pR(l.ctrls,(e=>e.stop(!0)))}));const v=f.map((e=>({...e})));return o?[v,o]:v}function WD(e,t){const n=uR.fun(e),[[r],i]=GD(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}pR(["stop","pause","resume"],(e=>{HD.prototype[e]=function(){return pR(this.current,(t=>t[e](...arguments))),this}}));const YD="mount",KD="enter",XD="update",JD="leave";function QD(e,t,n){const{reset:i,sort:o,trail:a=0,expires:s=!0,onDestroyed:l}=t,c=(0,r.useMemo)((()=>3==arguments.length?new HD:void 0),[]),u=fR(e),d=[],p=(0,r.useRef)(null),h=i?null:p.current;Cj((()=>{p.current=d})),bj((()=>()=>pR(p.current,(e=>{e.expired&&clearTimeout(e.expirationId),Qj(e.ctrl,c),e.ctrl.stop(!0)}))));const f=function(e,t,n){let{key:r,keys:i=r}=t;if(null===i){const t=new Set;return e.map((e=>{const r=n&&n.find((n=>n.item===e&&n.phase!==JD&&!t.has(n)));return r?(t.add(r),r.key):eA++}))}return uR.und(i)?e:uR.fun(i)?e.map(i):fR(i)}(u,t,h),m=i&&p.current||[];Cj((()=>pR(m,(e=>{let{ctrl:t,item:n,key:r}=e;Qj(t,c),Uj(l,n,r)}))));const g=[];if(h&&pR(h,((e,t)=>{e.expired?(clearTimeout(e.expirationId),m.push(e)):~(t=g[t]=f.indexOf(e.key))&&(d[t]=e)})),pR(u,((e,t)=>{d[t]||(d[t]={key:f[t],item:e,phase:YD,ctrl:new AD},d[t].ctrl.item=e)})),g.length){let e=-1;pR(g,((n,r)=>{const i=h[r];~n?(e=d.indexOf(i),d[e]={...i,item:u[n]}):t.leave&&d.splice(++e,0,i)}))}uR.fun(o)&&d.sort(((e,t)=>o(e.item,t.item)));let y=-a;const v=wj(),b=Hj(t),_=new Map;pR(d,((e,n)=>{const r=e.key,i=e.phase;let o,l;if(i==YD)o=t.enter,l=KD;else{const e=f.indexOf(r)<0;if(i!=JD)if(e)o=t.leave,l=JD;else{if(!(o=t.update))return;l=XD}else{if(e)return;o=t.enter,l=KD}}if(o=Uj(o,e.item,n),o=uR.obj(o)?Yj(o):{to:o},!o.config){const r=t.config||b.config;o.config=Uj(r,e.item,n,l)}const c={...b,delay:y+=a,reset:!1,...o};if(l==KD&&uR.und(c.from)){const r=uR.und(t.initial)||h?t.from:t.initial;c.from=Uj(r,e.item,n)}const{onResolve:u}=c;c.onResolve=e=>{Uj(u,e);const t=p.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||n.phase==XD)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if(n.phase==JD){const t=Uj(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(v,r)))}}e&&t.some((e=>e.expired))&&v()}};const d=zD(e.ctrl,c);_.set(e,{phase:l,springs:d,payload:c})}));const w=(0,r.useContext)(qD),x=kj(w),k=w!==x&&Xj(w);Cj((()=>{k&&pR(d,(e=>{e.ctrl.start({default:w})}))}),[w]),Cj((()=>{pR(_,((e,t)=>{let{phase:n,springs:r,payload:i}=e;const{ctrl:o}=t;t.phase=n,null==c||c.add(o),eD(o,i.ref),BD(o,r),k&&n==KD&&o.start({default:w}),o[o.ref?"update":"start"](i)}))}),i?void 0:n);const C=e=>(0,r.createElement)(r.Fragment,null,d.map(((t,n)=>{const{springs:i}=_.get(t)||t.ctrl,o=e({...i},t.item,t,n);return o&&o.type?(0,r.createElement)(o.type,{...o.props,key:uR.str(t.key)||uR.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return c?[C,c]:C}let eA=1;class tA extends vD{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=KR(...t);const n=this._get(),r=Aj(n);Tj(this,r.create(n))}advance(e){const t=this._get();dR(t,this.get())||(Mj(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&rA(this._active)&&iA(this)}_get(){const e=uR.arr(this.source)?this.source.map(ej):fR(ej(this.source));return this.calc(...e)}_start(){this.idle&&!rA(this._active)&&(this.idle=!1,pR(Ej(this),(e=>{e.done=!1})),xR.skipAnimation?(HL.batchedUpdates((()=>this.advance())),iA(this)):TR.start(this))}_attach(){let e=1;pR(fR(this.source),(t=>{QR(t)&&oj(t,this),gD(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){pR(fR(this.source),(e=>{QR(e)&&aj(e,this)})),this._active.clear(),iA(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=fR(this.source).reduce(((e,t)=>Math.max(e,(gD(t)?t.priority:0)+1)),0))}}function nA(e){return!1!==e.idle}function rA(e){return!e.size||Array.from(e).every(nA)}function iA(e){e.idle||(e.idle=!0,pR(Ej(e),(e=>{e.done=!0})),nj(e,{type:"idle",parent:e}))}xR.assign({createStringInterpolator:hj,to:(e,t)=>new tA(e,t)});TR.advance;const oA=/^--/;function aA(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||oA.test(e)||lA.hasOwnProperty(e)&&lA[e]?(""+t).trim():t+"px"}const sA={};let lA={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const cA=["Webkit","Ms","Moz","O"];lA=Object.keys(lA).reduce(((e,t)=>(cA.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),lA);const uA=/^(matrix|translate|scale|rotate|skew)/,dA=/^(translate)/,pA=/^(rotate|skew)/,hA=(e,t)=>uR.num(e)&&0!==e?e+t:e,fA=(e,t)=>uR.arr(e)?e.every((e=>fA(e,t))):uR.num(e)?e===t:parseFloat(e)===t;class mA extends Rj{constructor(e){let{x:t,y:n,z:r,...i}=e;const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>hA(e,"px"))).join(",")})`,fA(e,0)]))),hR(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(uA.test(t)){if(delete i[t],uR.und(e))return;const n=dA.test(t)?"px":pA.test(t)?"deg":"";o.push(fR(e)),a.push("rotate3d"===t?e=>{let[t,r,i,o]=e;return[`rotate3d(${t},${r},${i},${hA(o,n)})`,fA(o,0)]}:e=>[`${t}(${e.map((e=>hA(e,n))).join(",")})`,fA(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new gA(o,a)),super(i)}}class gA extends rj{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return pR(this.inputs,((n,r)=>{const i=ej(n[0]),[o,a]=this.transforms[r](uR.arr(i)?i:n.map(ej));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&pR(this.inputs,(e=>pR(e,(e=>QR(e)&&oj(e,this)))))}observerRemoved(e){0==e&&pR(this.inputs,(e=>pR(e,(e=>QR(e)&&aj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),nj(this,e)}}xR.assign({batchedUpdates:i.unstable_batchedUpdates,createStringInterpolator:hj,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const yA=function(e){let{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Rj(e)),getComponentProps:r=(e=>e)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Bj(e)||"Anonymous";return(e=uR.str(e)?o[e]||(o[e]=Nj(e,i)):e[zj]||(e[zj]=Nj(e,i))).displayName=`Animated(${t})`,e};return hR(e,((t,n)=>{uR.arr(e)&&(n=Bj(t)),o[n]=o(t)})),{animated:o}}(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,...s}=t,l=Object.values(s),c=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:sA[t]||(sA[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let u in r)if(r.hasOwnProperty(u)){const t=aA(u,r[u]);"float"===u?u="cssFloat":oA.test(u)?e.style.setProperty(u,t):e.style[u]=t}c.forEach(((t,n)=>{e.setAttribute(t,l[n])})),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a)},createAnimatedStyle:e=>new mA(e),getComponentProps:e=>{let{scrollTop:t,scrollLeft:n,...r}=e;return r}}),vA=yA.animated;function bA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_A(Object(n),!0).forEach((function(t){bA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return xA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xA(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var CA={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},SA=function(e,t){return"translate(".concat(e,"px, ").concat(t,"px)")},MA=(0,r.memo)((function(e){var t,n=e.position,i=e.anchor,o=e.children,a=Iq(),s=LV(),l=s.animate,c=s.config,u=kA(Sq(),2),d=u[0],p=u[1],h=(0,r.useRef)(!1),f=void 0,m=!1,g=p.width>0&&p.height>0,y=Math.round(n[0]),v=Math.round(n[1]);g&&("top"===i?(y-=p.width/2,v-=p.height+14):"right"===i?(y+=14,v-=p.height/2):"bottom"===i?(y-=p.width/2,v+=14):"left"===i?(y-=p.width+14,v-=p.height/2):"center"===i&&(y-=p.width/2,v-=p.height/2),f={transform:SA(y,v)},h.current||(m=!0),h.current=[y,v]);var b=WD({to:f,config:c,immediate:!l||m}),_=wA(wA(wA({},CA),a.tooltip),{},{transform:null!==(t=b.transform)&&void 0!==t?t:SA(y,v)});return r.createElement(vA.div,{ref:d,style:_},o)}));MA.displayName="TooltipWrapper";var TA=(0,r.memo)((function(e){var t=e.size,n=void 0===t?12:t,i=e.color,o=e.style,a=void 0===o?{}:o;return r.createElement("span",{style:wA({display:"block",width:n,height:n,background:i},a)})})),EA=(0,r.memo)((function(e){var t,n=e.id,i=e.value,o=e.format,a=e.enableChip,s=void 0!==a&&a,l=e.color,c=e.renderContent,u=Iq(),d=Mq(o);if("function"===typeof c)t=c();else{var p=i;void 0!==d&&void 0!==p&&(p=d(p)),t=r.createElement("div",{style:u.tooltip.basic},s&&r.createElement(TA,{color:l,style:u.tooltip.chip}),void 0!==p?r.createElement("span",null,n,": ",r.createElement("strong",null,"".concat(p))):n)}return r.createElement("div",{style:u.tooltip.container},t)})),PA={width:"100%",borderCollapse:"collapse"},IA=(0,r.memo)((function(e){var t,n=e.title,i=e.rows,o=void 0===i?[]:i,a=e.renderContent,s=Iq();return o.length?(t="function"===typeof a?a():r.createElement("div",null,n&&n,r.createElement("table",{style:wA(wA({},PA),s.tooltip.table)},r.createElement("tbody",null,o.map((function(e,t){return r.createElement("tr",{key:t},e.map((function(e,t){return r.createElement("td",{key:t,style:s.tooltip.tableCell},e)})))}))))),r.createElement("div",{style:s.tooltip.container},t)):null}));IA.displayName="TableTooltip";var OA=(0,r.memo)((function(e){var t=e.x0,n=e.x1,i=e.y0,o=e.y1,a=Iq(),s=LV(),l=s.animate,c=s.config,u=(0,r.useMemo)((function(){return wA(wA({},a.crosshair.line),{},{pointerEvents:"none"})}),[a.crosshair.line]),d=WD({x1:t,x2:n,y1:i,y2:o,config:c,immediate:!l});return r.createElement(vA.line,Object.assign({},d,{fill:"none",style:u}))}));OA.displayName="CrosshairLine";var LA=(0,r.memo)((function(e){var t,n,i=e.width,o=e.height,a=e.type,s=e.x,l=e.y;return"cross"===a?(t={x0:s,x1:s,y0:0,y1:o},n={x0:0,x1:i,y0:l,y1:l}):"top-left"===a?(t={x0:s,x1:s,y0:0,y1:l},n={x0:0,x1:s,y0:l,y1:l}):"top"===a?t={x0:s,x1:s,y0:0,y1:l}:"top-right"===a?(t={x0:s,x1:s,y0:0,y1:l},n={x0:s,x1:i,y0:l,y1:l}):"right"===a?n={x0:s,x1:i,y0:l,y1:l}:"bottom-right"===a?(t={x0:s,x1:s,y0:l,y1:o},n={x0:s,x1:i,y0:l,y1:l}):"bottom"===a?t={x0:s,x1:s,y0:l,y1:o}:"bottom-left"===a?(t={x0:s,x1:s,y0:l,y1:o},n={x0:0,x1:s,y0:l,y1:l}):"left"===a?n={x0:0,x1:s,y0:l,y1:l}:"x"===a?t={x0:s,x1:s,y0:0,y1:o}:"y"===a&&(n={x0:0,x1:i,y0:l,y1:l}),r.createElement(r.Fragment,null,t&&r.createElement(OA,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&r.createElement(OA,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1}))}));LA.displayName="Crosshair";var RA=(0,r.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),jA={isVisible:!1,position:[null,null],content:null,anchor:null},DA=(0,r.createContext)(jA),AA=function(e){var t=kA((0,r.useState)(jA),2),n=t[0],i=t[1],o=(0,r.useCallback)((function(e,t){var n=kA(t,2),r=n[0],o=n[1];i({isVisible:!0,position:[r,o],anchor:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",content:e})}),[i]),a=(0,r.useCallback)((function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",o=e.current.getBoundingClientRect(),a=n.clientX-o.left,s=n.clientY-o.top;"left"!==r&&"right"!==r||(r=a<o.width/2?"right":"left"),i({isVisible:!0,position:[a,s],anchor:r,content:t})}),[e,i]),s=(0,r.useCallback)((function(){i(jA)}),[i]);return{actions:(0,r.useMemo)((function(){return{showTooltipAt:o,showTooltipFromEvent:a,hideTooltip:s}}),[o,a,s]),state:n}},NA=function(){var e=(0,r.useContext)(RA);if(void 0===e)throw new Error("useTooltip must be used within a TooltipProvider");return e},FA=function(){var e=function(){var e=(0,r.useContext)(DA);if(void 0===e)throw new Error("useTooltipState must be used within a TooltipProvider");return e}();return function(e){return!0===e.isVisible}(e)?r.createElement(MA,{position:e.position,anchor:e.anchor},e.content):null},zA=function(e){var t=e.container,n=e.children,i=AA(t),o=i.actions,a=i.state;return r.createElement(RA.Provider,{value:o},r.createElement(DA.Provider,{value:a},n))},BA=n(74318),UA=n.n(BA),$A=n(36844),VA=n.n($A),qA=n(21236),ZA=n.n(qA);function HA(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var GA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,WA=new RegExp(GA.source,"g");function YA(e,t){var n,r,i,o=GA.lastIndex=WA.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=GA.exec(e))&&(r=WA.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:HA(n,r)})),o=WA.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}var KA=n(13785),XA=n.n(KA),JA=n(16619),QA=n.n(JA);n(36228);function eN(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const tN=Symbol("implicit");function nN(){var e=new Map,t=[],n=[],r=tN;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==tN)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nN(t,n).unknown(r)},eN.apply(i,arguments),i}function rN(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}function iN(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oN(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function aN(){}var sN=.7,lN=1/sN,cN="\\s*([+-]?\\d+)\\s*",uN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pN=/^#([0-9a-f]{3,8})$/,hN=new RegExp(`^rgb\\(${cN},${cN},${cN}\\)$`),fN=new RegExp(`^rgb\\(${dN},${dN},${dN}\\)$`),mN=new RegExp(`^rgba\\(${cN},${cN},${cN},${uN}\\)$`),gN=new RegExp(`^rgba\\(${dN},${dN},${dN},${uN}\\)$`),yN=new RegExp(`^hsl\\(${uN},${dN},${dN}\\)$`),vN=new RegExp(`^hsla\\(${uN},${dN},${dN},${uN}\\)$`),bN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _N(){return this.rgb().formatHex()}function wN(){return this.rgb().formatRgb()}function xN(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?kN(t):3===n?new TN(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?CN(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?CN(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=hN.exec(e))?new TN(t[1],t[2],t[3],1):(t=fN.exec(e))?new TN(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mN.exec(e))?CN(t[1],t[2],t[3],t[4]):(t=gN.exec(e))?CN(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yN.exec(e))?RN(t[1],t[2]/100,t[3]/100,1):(t=vN.exec(e))?RN(t[1],t[2]/100,t[3]/100,t[4]):bN.hasOwnProperty(e)?kN(bN[e]):"transparent"===e?new TN(NaN,NaN,NaN,0):null}function kN(e){return new TN(e>>16&255,e>>8&255,255&e,1)}function CN(e,t,n,r){return r<=0&&(e=t=n=NaN),new TN(e,t,n,r)}function SN(e){return e instanceof aN||(e=xN(e)),e?new TN((e=e.rgb()).r,e.g,e.b,e.opacity):new TN}function MN(e,t,n,r){return 1===arguments.length?SN(e):new TN(e,t,n,null==r?1:r)}function TN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function EN(){return`#${LN(this.r)}${LN(this.g)}${LN(this.b)}`}function PN(){const e=IN(this.opacity);return`${1===e?"rgb(":"rgba("}${ON(this.r)}, ${ON(this.g)}, ${ON(this.b)}${1===e?")":`, ${e})`}`}function IN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ON(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function LN(e){return((e=ON(e))<16?"0":"")+e.toString(16)}function RN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new DN(e,t,n,r)}function jN(e){if(e instanceof DN)return new DN(e.h,e.s,e.l,e.opacity);if(e instanceof aN||(e=xN(e)),!e)return new DN;if(e instanceof DN)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new DN(a,s,l,e.opacity)}function DN(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function AN(e){return(e=(e||0)%360)<0?e+360:e}function NN(e){return Math.max(0,Math.min(1,e||0))}function FN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function zN(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}iN(aN,xN,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_N,formatHex:_N,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jN(this).formatHsl()},formatRgb:wN,toString:wN}),iN(TN,MN,oN(aN,{brighter(e){return e=null==e?lN:Math.pow(lN,e),new TN(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?sN:Math.pow(sN,e),new TN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new TN(ON(this.r),ON(this.g),ON(this.b),IN(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:EN,formatHex:EN,formatHex8:function(){return`#${LN(this.r)}${LN(this.g)}${LN(this.b)}${LN(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:PN,toString:PN})),iN(DN,(function(e,t,n,r){return 1===arguments.length?jN(e):new DN(e,t,n,null==r?1:r)}),oN(aN,{brighter(e){return e=null==e?lN:Math.pow(lN,e),new DN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sN:Math.pow(sN,e),new DN(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new TN(FN(e>=240?e-240:e+120,i,r),FN(e,i,r),FN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new DN(AN(this.h),NN(this.s),NN(this.l),IN(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=IN(this.opacity);return`${1===e?"hsl(":"hsla("}${AN(this.h)}, ${100*NN(this.s)}%, ${100*NN(this.l)}%${1===e?")":`, ${e})`}`}}));const BN=e=>()=>e;function UN(e,t){return function(n){return e+n*t}}function $N(e){return 1===(e=+e)?VN:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):BN(isNaN(t)?n:t)}}function VN(e,t){var n=t-e;return n?UN(e,n):BN(isNaN(e)?t:e)}const qN=function e(t){var n=$N(t);function r(e,t){var r=n((e=MN(e)).r,(t=MN(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=VN(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function ZN(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=MN(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var HN=ZN((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return zN((n-r/t)*t,a,i,o,s)}}));ZN((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return zN((n-r/t)*t,i,o,a,s)}}));const GN=e=>HN(e[e.length-1]);var WN=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(rN);const YN=GN(WN);var KN=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(rN);const XN=GN(KN);var JN=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(rN);const QN=GN(JN);var eF=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(rN);const tF=GN(eF);var nF=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(rN);const rF=GN(nF);var iF=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(rN);const oF=GN(iF);var aF=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(rN);const sF=GN(aF);var lF=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(rN);const cF=GN(lF);var uF=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(rN);const dF=GN(uF);var pF=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(rN);const hF=GN(pF);var fF=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(rN);const mF=GN(fF);var gF=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(rN);const yF=GN(gF);var vF=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(rN);const bF=GN(vF);var _F=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(rN);const wF=GN(_F);var xF=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(rN);const kF=GN(xF);var CF=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(rN);const SF=GN(CF);var MF=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(rN);const TF=GN(MF);var EF=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(rN);const PF=GN(EF);var IF=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(rN);const OF=GN(IF);var LF=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(rN);const RF=GN(LF);var jF=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(rN);const DF=GN(jF);var AF=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(rN);const NF=GN(AF);var FF=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(rN);const zF=GN(FF);var BF=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(rN);const UF=GN(BF);var $F=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(rN);const VF=GN($F);var qF=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(rN);const ZF=GN(qF);var HF=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(rN);const GF=GN(HF),WF=rN("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),YF=rN("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),KF=rN("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),XF=rN("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),JF=rN("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),QF=rN("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ez=rN("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),tz=rN("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),nz=rN("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function rz(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const iz=rz(rN("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var oz=rz(rN("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),az=rz(rN("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sz=rz(rN("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));const lz=Math.PI/180,cz=180/Math.PI;var uz=-.14861,dz=1.78277,pz=-.29227,hz=-.90649,fz=1.97294,mz=fz*hz,gz=fz*dz,yz=dz*pz-hz*uz;function vz(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bz)return new bz(e.h,e.s,e.l,e.opacity);e instanceof TN||(e=SN(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(yz*r+mz*t-gz*n)/(yz+mz-gz),o=r-i,a=(fz*(n-i)-pz*o)/hz,s=Math.sqrt(a*a+o*o)/(fz*i*(1-i)),l=s?Math.atan2(a,o)*cz-120:NaN;return new bz(l<0?l+360:l,s,i,e.opacity)}(e):new bz(e,t,n,null==r?1:r)}function bz(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function _z(e){return function t(n){function r(t,r){var i=e((t=vz(t)).h,(r=vz(r)).h),o=VN(t.s,r.s),a=VN(t.l,r.l),s=VN(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}iN(bz,vz,oN(aN,{brighter(e){return e=null==e?lN:Math.pow(lN,e),new bz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sN:Math.pow(sN,e),new bz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*lz,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new TN(255*(t+n*(uz*r+dz*i)),255*(t+n*(pz*r+hz*i)),255*(t+n*(fz*r)),this.opacity)}}));_z((function(e,t){var n=t-e;return n?UN(e,n>180||n<-180?n-360*Math.round(n/360):n):BN(isNaN(e)?t:e)}));var wz=_z(VN),xz=wz(vz(-100,.75,.35),vz(80,1.5,.8)),kz=wz(vz(260,.75,.35),vz(80,1.5,.8)),Cz=vz();function Sz(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Cz.h=360*e-100,Cz.s=1.5-1.5*t,Cz.l=.8-.9*t,Cz+""}const Mz=wz(vz(300,.5,0),vz(-240,.5,1));var Tz=MN(),Ez=Math.PI/3,Pz=2*Math.PI/3;function Iz(e){var t;return e=(.5-e)*Math.PI,Tz.r=255*(t=Math.sin(e))*t,Tz.g=255*(t=Math.sin(e+Ez))*t,Tz.b=255*(t=Math.sin(e+Pz))*t,Tz+""}var Oz=n(96620),Lz=n.n(Oz);function Rz(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function jz(e){this._context=e}function Dz(){}function Az(e){this._context=e}function Nz(e){this._context=e}function Fz(e,t){this._basis=new jz(e),this._beta=t}jz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Rz(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Rz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Az.prototype={areaStart:Dz,areaEnd:Dz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Rz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Nz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Rz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Fz.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const zz=function e(t){function n(e){return 1===t?new jz(e):new Fz(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Bz(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Uz(e,t){this._context=e,this._k=(1-t)/6}Uz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Bz(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Bz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $z=function e(t){function n(e){return new Uz(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Vz(e,t){this._context=e,this._k=(1-t)/6}Vz.prototype={areaStart:Dz,areaEnd:Dz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Bz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qz=function e(t){function n(e){return new Vz(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Zz(e,t){this._context=e,this._k=(1-t)/6}Zz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hz=function e(t){function n(e){return new Zz(e,t)}return n.tension=function(t){return e(+t)},n}(0);Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI;function Gz(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Wz(e,t){this._context=e,this._alpha=t}Wz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Gz(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yz=function e(t){function n(e){return t?new Wz(e,t):new Uz(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Kz(e,t){this._context=e,this._alpha=t}Kz.prototype={areaStart:Dz,areaEnd:Dz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Gz(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Xz=function e(t){function n(e){return t?new Kz(e,t):new Vz(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Jz(e,t){this._context=e,this._alpha=t}Jz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Gz(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Qz=function e(t){function n(e){return t?new Jz(e,t):new Zz(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function eB(e){this._context=e}function tB(e){return new eB(e)}function nB(e){this._context=e}function rB(e){return e<0?-1:1}function iB(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(rB(o)+rB(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function oB(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aB(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function sB(e){this._context=e}function lB(e){this._context=new cB(e)}function cB(e){this._context=e}function uB(e){this._context=e}function dB(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function pB(e,t){this._context=e,this._t=t}function hB(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function fB(e){var t=e.map(mB);return hB(e).sort((function(e,n){return t[e]-t[n]}))}function mB(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function gB(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function yB(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function vB(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,c=e[t[0]].length;l<c;++l)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function bB(e,t,n,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-t)/e.value;++s<l;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function _B(e,t,n,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-n)/e.value;++s<l;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}eB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},nB.prototype={areaStart:Dz,areaEnd:Dz,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},sB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aB(this,this._t0,oB(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aB(this,oB(this,n=iB(this,e,t)),n);break;default:aB(this,this._t0,n=iB(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(lB.prototype=Object.create(sB.prototype)).point=function(e,t){sB.prototype.point.call(this,t,e)},cB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},uB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=dB(e),i=dB(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},pB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var wB=(1+Math.sqrt(5))/2;function xB(e,t,n,r,i,o){for(var a,s,l,c,u,d,p,h,f,m,g,y=[],v=t.children,b=0,_=0,w=v.length,x=t.value;b<w;){l=i-n,c=o-r;do{u=v[_++].value}while(!u&&_<w);for(d=p=u,g=u*u*(m=Math.max(c/l,l/c)/(x*e)),f=Math.max(p/g,g/d);_<w;++_){if(u+=s=v[_].value,s<d&&(d=s),s>p&&(p=s),g=u*u*m,(h=Math.max(p/g,g/d))>f){u-=s;break}f=h}y.push(a={value:u,dice:l<c,children:v.slice(b,_)}),a.dice?bB(a,n,r,i,x?r+=c*u/x:o):_B(a,n,r,x?n+=l*u/x:i,o),x-=u,b=_}return y}const kB=function e(t){function n(e,n,r,i,o){xB(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wB),CB=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,d=-1,p=a.length,h=e.value;++d<p;){for(l=(s=a[d]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?bB(s,n,r,i,r+=(o-r)*s.value/h):_B(s,n,r,n+=(i-n)*s.value/h,o),h-=s.value}else e._squarify=a=xB(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wB);function SB(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function MB(e){return(e=SB(Math.abs(e)))?e[1]:NaN}var TB,EB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function PB(e){if(!(t=EB.exec(e)))throw new Error("invalid format: "+e);var t;return new IB({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function IB(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function OB(e,t){var n=SB(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}PB.prototype=IB.prototype,IB.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const LB={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return OB(100*e,t)},r:OB,s:function(e,t){var n=SB(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(TB=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+SB(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function RB(e){return e}var jB,DB,AB,NB=Array.prototype.map,FB=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zB(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?RB:(t=NB.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?RB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(NB.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=PB(e)).fill,n=e.align,d=e.sign,p=e.symbol,h=e.zero,f=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):LB[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===p?o:/[%p]/.test(v)?l:"",w=LB[v],x=/[defgprs%]/.test(v);function k(e){var i,o,l,p=b,k=_;if("c"===v)k=w(e)+k,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0===+e&&"+"!==d&&(C=!1),p=(C?"("===d?d:c:"-"===d||"("===d?"":d)+p,k=("s"===v?FB[8+TB/3]:"")+k+(C&&"("===d?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var S=p.length+e.length+k.length,M=S<f?new Array(f-S+1).join(t):"";switch(m&&h&&(e=r(M+e,M.length?f-k.length:1/0),M=""),n){case"<":e=p+e+k+M;break;case"=":e=p+M+e+k;break;case"^":e=M.slice(0,S=M.length>>1)+p+e+k+M.slice(S);break;default:e=M+p+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=PB(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(MB(t)/3))),i=Math.pow(10,-r),o=FB[8+r/3];return function(e){return n(i*e)+o}}}}jB=zB({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),DB=jB.format,AB=jB.formatPrefix;var BB=new Date,UB=new Date;function $B(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return $B((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return BB.setTime(+t),UB.setTime(+r),e(BB),e(UB),Math.floor(n(BB,UB))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var VB=1e3,qB=6e4,ZB=36e5,HB=864e5,GB=6048e5;function WB(e){return $B((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/GB}))}var YB=WB(0),KB=WB(1),XB=WB(2),JB=WB(3),QB=WB(4),eU=WB(5),tU=WB(6),nU=(YB.range,KB.range,XB.range,JB.range,QB.range,eU.range,tU.range,$B((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/HB}),(function(e){return e.getUTCDate()-1})));const rU=nU;nU.range;function iU(e){return $B((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qB)/GB}))}var oU=iU(0),aU=iU(1),sU=iU(2),lU=iU(3),cU=iU(4),uU=iU(5),dU=iU(6),pU=(oU.range,aU.range,sU.range,lU.range,cU.range,uU.range,dU.range,$B((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qB)/HB}),(function(e){return e.getDate()-1})));const hU=pU;pU.range;var fU=$B((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));fU.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$B((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const mU=fU;fU.range;var gU=$B((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));gU.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$B((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const yU=gU;gU.range;function vU(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function bU(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function _U(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var wU,xU,kU,CU,SU,MU={"-":"",_:" ",0:"0"},TU=/^\s*\d+/,EU=/^%/,PU=/[\\^$*+?|[\]().{}]/g;function IU(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function OU(e){return e.replace(PU,"\\$&")}function LU(e){return new RegExp("^(?:"+e.map(OU).join("|")+")","i")}function RU(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function jU(e,t,n){var r=TU.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function DU(e,t,n){var r=TU.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function AU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function NU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zU(e,t,n){var r=TU.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function BU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function UU(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function $U(e,t,n){var r=TU.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function VU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ZU(e,t,n){var r=TU.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function HU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function GU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function WU(e,t,n){var r=TU.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function YU(e,t,n){var r=TU.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function KU(e,t,n){var r=TU.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function XU(e,t,n){var r=EU.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function JU(e,t,n){var r=TU.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function QU(e,t,n){var r=TU.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function e$(e,t){return IU(e.getDate(),t,2)}function t$(e,t){return IU(e.getHours(),t,2)}function n$(e,t){return IU(e.getHours()%12||12,t,2)}function r$(e,t){return IU(1+hU.count(mU(e),e),t,3)}function i$(e,t){return IU(e.getMilliseconds(),t,3)}function o$(e,t){return i$(e,t)+"000"}function a$(e,t){return IU(e.getMonth()+1,t,2)}function s$(e,t){return IU(e.getMinutes(),t,2)}function l$(e,t){return IU(e.getSeconds(),t,2)}function c$(e){var t=e.getDay();return 0===t?7:t}function u$(e,t){return IU(oU.count(mU(e)-1,e),t,2)}function d$(e){var t=e.getDay();return t>=4||0===t?cU(e):cU.ceil(e)}function p$(e,t){return e=d$(e),IU(cU.count(mU(e),e)+(4===mU(e).getDay()),t,2)}function h$(e){return e.getDay()}function f$(e,t){return IU(aU.count(mU(e)-1,e),t,2)}function m$(e,t){return IU(e.getFullYear()%100,t,2)}function g$(e,t){return IU((e=d$(e)).getFullYear()%100,t,2)}function y$(e,t){return IU(e.getFullYear()%1e4,t,4)}function v$(e,t){var n=e.getDay();return IU((e=n>=4||0===n?cU(e):cU.ceil(e)).getFullYear()%1e4,t,4)}function b$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+IU(t/60|0,"0",2)+IU(t%60,"0",2)}function _$(e,t){return IU(e.getUTCDate(),t,2)}function w$(e,t){return IU(e.getUTCHours(),t,2)}function x$(e,t){return IU(e.getUTCHours()%12||12,t,2)}function k$(e,t){return IU(1+rU.count(yU(e),e),t,3)}function C$(e,t){return IU(e.getUTCMilliseconds(),t,3)}function S$(e,t){return C$(e,t)+"000"}function M$(e,t){return IU(e.getUTCMonth()+1,t,2)}function T$(e,t){return IU(e.getUTCMinutes(),t,2)}function E$(e,t){return IU(e.getUTCSeconds(),t,2)}function P$(e){var t=e.getUTCDay();return 0===t?7:t}function I$(e,t){return IU(YB.count(yU(e)-1,e),t,2)}function O$(e){var t=e.getUTCDay();return t>=4||0===t?QB(e):QB.ceil(e)}function L$(e,t){return e=O$(e),IU(QB.count(yU(e),e)+(4===yU(e).getUTCDay()),t,2)}function R$(e){return e.getUTCDay()}function j$(e,t){return IU(KB.count(yU(e)-1,e),t,2)}function D$(e,t){return IU(e.getUTCFullYear()%100,t,2)}function A$(e,t){return IU((e=O$(e)).getUTCFullYear()%100,t,2)}function N$(e,t){return IU(e.getUTCFullYear()%1e4,t,4)}function F$(e,t){var n=e.getUTCDay();return IU((e=n>=4||0===n?QB(e):QB.ceil(e)).getUTCFullYear()%1e4,t,4)}function z$(){return"+0000"}function B$(){return"%"}function U$(e){return+e}function $$(e){return Math.floor(+e/1e3)}!function(e){wU=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=LU(i),u=RU(i),d=LU(o),p=RU(o),h=LU(a),f=RU(a),m=LU(s),g=RU(s),y=LU(l),v=RU(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:e$,e:e$,f:o$,g:g$,G:v$,H:t$,I:n$,j:r$,L:i$,m:a$,M:s$,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:U$,s:$$,S:l$,u:c$,U:u$,V:p$,w:h$,W:f$,x:null,X:null,y:m$,Y:y$,Z:b$,"%":B$},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:_$,e:_$,f:S$,g:A$,G:F$,H:w$,I:x$,j:k$,L:C$,m:M$,M:T$,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:U$,s:$$,S:E$,u:P$,U:I$,V:L$,w:R$,W:j$,x:null,X:null,y:D$,Y:N$,Z:z$,"%":B$},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:qU,e:qU,f:KU,g:BU,G:zU,H:HU,I:HU,j:ZU,L:YU,m:VU,M:GU,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:$U,Q:JU,s:QU,S:WU,u:DU,U:AU,V:NU,w:jU,W:FU,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:BU,Y:zU,Z:UU,"%":XU};function x(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=MU[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function k(e,t){return function(n){var r,i,o=_U(1900,void 0,1);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=bU(_U(o.y,0,1))).getUTCDay(),r=i>4||0===i?KB.ceil(r):KB(r),r=rU.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=vU(_U(o.y,0,1))).getDay(),r=i>4||0===i?aU.ceil(r):aU(r),r=hU.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?bU(_U(o.y,0,1)).getUTCDay():vU(_U(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,bU(o)):vU(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in MU?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),xU=wU.format,kU=wU.parse,CU=wU.utcFormat,SU=wU.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var V$=function(e,t){return function(n){return n[e]=t,n}},q$=function(e){return V$("displayName",e)},Z$=Object.prototype.hasOwnProperty;function H$(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function G$(e,t){if(H$(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Z$.call(t,n[i])||!H$(e[n[i]],t[n[i]]))return!1;return!0}function W$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K$(e,t,n){return t&&Y$(e.prototype,t),n&&Y$(e,n),e}function X$(e,t){return X$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X$(e,t)}function J$(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X$(e,t)}function Q$(e){return Q$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Q$(e)}function eV(e){return eV="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eV(e)}function tV(e,t){return!t||"object"!==eV(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nV(e){return function(){var t,n=Q$(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(ag){return!1}}()){var r=Q$(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return tV(this,t)}}var rV=function(e){var t,n=(t=function(e,t){return!G$(e,t)},function(e){var n=(0,r.createFactory)(e),i=function(e){J$(i,e);var r=nV(i);function i(){return W$(this,i),r.apply(this,arguments)}return K$(i,[{key:"shouldComponentUpdate",value:function(e){return t(this.props,e)}},{key:"render",value:function(){return n(this.props)}}]),i}(r.Component);return i});return n(e)},iV=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}),(function(e){return e}))};function oV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aV(Object(n),!0).forEach((function(t){oV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lV=function(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r];e.hasOwnProperty(i)&&(n[i]=e[i])}return n},cV=function(e,t){return function(n){var i=(0,r.createFactory)(n),o="function"===typeof e?e:function(t,n){return!G$(lV(t,e),lV(n,e))},a=function(e){J$(r,e);var n=nV(r);function r(){var e;W$(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).state={computedProps:t(e.props),prevProps:e.props},e}return K$(r,[{key:"render",value:function(){return i(sV(sV({},this.props),this.state.computedProps))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return o(n.prevProps,e)?{computedProps:t(e),prevProps:e}:{prevProps:e}}}]),r}(r.Component);return ue(a),a}},uV=function(e){return function(t){var n=(0,r.createFactory)(t),i=function(e){return n(e)};return i.defaultProps=e,i}},dV=function(e){return V$("propTypes",e)},pV=n(48291),hV=n.n(pV);function fV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mV(Object(n),!0).forEach((function(t){fV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yV={fill:ye().string,fontSize:ye().number,fontFamily:ye().string},vV=ye().shape({domain:ye().shape({line:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,strokeDasharray:ye().string}).isRequired}).isRequired,ticks:ye().shape({line:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,strokeDasharray:ye().string}).isRequired,text:ye().shape(gV({},yV)).isRequired}).isRequired,legend:ye().shape({text:ye().shape(gV({},yV)).isRequired}).isRequired}),bV=ye().shape({line:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,strokeDasharray:ye().string}).isRequired}),_V=ye().shape({text:ye().shape(gV({},yV)).isRequired}),wV=ye().shape({text:ye().shape(gV({},yV)).isRequired}),xV=ye().shape({text:ye().shape(gV({},yV)).isRequired}),kV=ye().shape({text:ye().shape(gV({},yV)).isRequired}),CV=ye().shape({line:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,strokeDasharray:ye().string}).isRequired}),SV=ye().shape({text:ye().shape(gV(gV({},yV),{},{outlineWidth:ye().number.isRequired,outlineColor:ye().string.isRequired})).isRequired,link:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,outlineWidth:ye().number.isRequired,outlineColor:ye().string.isRequired}).isRequired,outline:ye().shape({stroke:ye().string.isRequired,strokeWidth:ye().number.isRequired,outlineWidth:ye().number.isRequired,outlineColor:ye().string.isRequired}).isRequired,symbol:ye().shape({fill:ye().string.isRequired,outlineWidth:ye().number.isRequired,outlineColor:ye().string.isRequired}).isRequired}),MV=(ye().shape({background:ye().string.isRequired,fontFamily:ye().string.isRequired,fontSize:ye().number.isRequired,textColor:ye().string.isRequired,axis:vV.isRequired,grid:bV.isRequired,legends:_V.isRequired,labels:wV.isRequired,dots:xV.isRequired,markers:kV,crosshair:CV.isRequired,annotations:SV.isRequired}),{background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{text:{}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff"},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff"},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff"},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff"}}}),TV=["axis.ticks.text","axis.legend.text","legends.text","labels.text","dots.text","markers.text","annotations.text"],EV=function(e,t){var n=UA()({},e,t);return TV.forEach((function(e){void 0===VA()(n,"".concat(e,".fontFamily"))&&ZA()(n,"".concat(e,".fontFamily"),n.fontFamily),void 0===VA()(n,"".concat(e,".fontSize"))&&ZA()(n,"".concat(e,".fontSize"),n.fontSize),void 0===VA()(n,"".concat(e,".fill"))&&ZA()(n,"".concat(e,".fill"),n.textColor)})),n},PV=(0,r.createContext)(),IV=function(e){var t=e.children,n=e.animate,i=e.stiffness,o=e.damping,a=e.config,s=(0,r.useMemo)((function(){var e=XA()(a)?tD[a]:a;return{animate:n,springConfig:{stiffness:i,damping:o},config:e}}),[n,i,o,a]);return r.createElement(PV.Provider,{value:s},t)},OV={animate:ye().bool,motionStiffness:ye().number,motionDamping:ye().number,motionConfig:ye().oneOfType([ye().oneOf(Object.keys(tD)),ye().shape({mass:ye().number,tension:ye().number,friction:ye().number,clamp:ye().bool,precision:ye().number,velocity:ye().number,duration:ye().number,easing:ye().func})])};IV.defaultProps={animate:!0,stiffness:90,damping:15,config:"default"};var LV=function(){return(0,r.useContext)(PV)},RV=function(e){var t=LV(),n=t.animate,i=t.config,o=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current}(e),a=(0,r.useMemo)((function(){return YA(o,e)}),[o,e]);return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new tA(e,n)}(WD({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!n}).value,a)},jV={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:QA()(WN),PRGn:QA()(KN),PiYG:QA()(JN),PuOr:QA()(eF),RdBu:QA()(nF),RdGy:QA()(iF),RdYlBu:QA()(aF),RdYlGn:QA()(lF),spectral:QA()(uF),blues:QA()(pF),greens:QA()(fF),greys:QA()(gF),oranges:QA()(vF),purples:QA()(_F),reds:QA()(xF),BuGn:QA()(CF),BuPu:QA()(MF),GnBu:QA()(EF),OrRd:QA()(IF),PuBuGn:QA()(LF),PuBu:QA()(jF),PuRd:QA()(AF),RdPu:QA()(FF),YlGnBu:QA()(BF),YlGn:QA()($F),YlOrBr:QA()(qF),YlOrRd:QA()(HF)},DV=Object.keys(jV),AV=(QA()(WN),QA()(KN),QA()(JN),QA()(eF),QA()(nF),QA()(iF),QA()(aF),QA()(lF),QA()(uF),QA()(pF),QA()(fF),QA()(gF),QA()(vF),QA()(_F),QA()(xF),QA()(CF),QA()(MF),QA()(EF),QA()(IF),QA()(LF),QA()(jF),QA()(AF),QA()(FF),QA()(BF),QA()($F),QA()(qF),QA()(HF),ye().oneOfType([ye().oneOf(DV),ye().func,ye().arrayOf(ye().string)]),{basis:function(e){return new jz(e)},basisClosed:function(e){return new Az(e)},basisOpen:function(e){return new Nz(e)},bundle:zz,cardinal:$z,cardinalClosed:qz,cardinalOpen:Hz,catmullRom:Yz,catmullRomClosed:Xz,catmullRomOpen:Qz,linear:tB,linearClosed:function(e){return new nB(e)},monotoneX:function(e){return new sB(e)},monotoneY:function(e){return new lB(e)},natural:function(e){return new uB(e)},step:function(e){return new pB(e,.5)},stepAfter:function(e){return new pB(e,1)},stepBefore:function(e){return new pB(e,0)}}),NV=Object.keys(AV),FV=(ye().oneOf(NV),NV.filter((function(e){return e.endsWith("Closed")}))),zV=(ye().oneOf(FV),NO()(NV,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),BV=(ye().oneOf(zV),NO()(NV,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),UV=ye().oneOf(BV),$V=function(e){if(!AV[e])throw new TypeError("'".concat(e,"', is not a valid curve interpolator identifier."));return AV[e]},VV={defs:ye().arrayOf(ye().shape({id:ye().string.isRequired})).isRequired,fill:ye().arrayOf(ye().shape({id:ye().string.isRequired,match:ye().oneOfType([ye().oneOf(["*"]),ye().object,ye().func]).isRequired})).isRequired},qV={ascending:fB,descending:function(e){return fB(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(mB),o=function(e){var t=e.map(gB);return hB(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],c=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],l.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(l)},none:hB,reverse:function(e){return hB(e).reverse()}},ZV=Object.keys(qV),HV=(ye().oneOf(ZV),{expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}yB(e,t)}},diverging:vB,none:yB,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}yB(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=e[t[s]],d=u[a][1]||0,p=(d-(u[a-1][1]||0))/2,h=0;h<s;++h){var f=e[t[h]];p+=(f[a][1]||0)-(f[a-1][1]||0)}l+=d,c+=p*d}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,yB(e,t)}}}),GV=Object.keys(HV),WV=(ye().oneOf(GV),{binary:function(e,t,n,r,i){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;!function e(t,n,r,i,o,a,l){if(t>=n-1){var u=s[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=l)}var d=c[t],p=r/2+d,h=t+1,f=n-1;for(;h<f;){var m=h+f>>>1;c[m]<p?h=m+1:f=m}p-c[h-1]<c[h]-p&&t+1<h&&--h;var g=c[h]-d,y=r-g;if(a-i>l-o){var v=(i*y+a*g)/r;e(t,h,g,i,o,v,l),e(h,n,y,v,o,a,l)}else{var b=(o*y+l*g)/r;e(t,h,g,i,o,a,b),e(h,n,y,i,b,a,l)}}(0,l,e.value,t,n,r,i)},dice:bB,slice:_B,sliceDice:function(e,t,n,r,i){(1&e.depth?_B:bB)(e,t,n,r,i)},squarify:kB,resquarify:CB}),YV=Object.keys(WV),KV=(ye().oneOf(YV),ye().shape({top:ye().number,right:ye().number,bottom:ye().number,left:ye().number}).isRequired),XV=ye().oneOf(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]),JV=(nN(nz),{top:0,right:0,bottom:0,left:0}),QV=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,r.useMemo)((function(){var r=gV(gV({},JV),n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])};function eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tq(e,t){if(e){if("string"===typeof e)return eq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eq(e,t):void 0}}function nq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||tq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rq=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),iq="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,oq="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),aq="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(oq):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var sq=["top","right","bottom","left","width","height","size","weight"],lq="undefined"!==typeof MutationObserver,cq=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){aq(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){iq&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),lq?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){iq&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;sq.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),uq=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},dq=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||oq},pq=vq(0,0,0,0);function hq(e){return parseFloat(e)||0}function fq(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+hq(e["border-"+n+"-width"])}),0)}function mq(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return pq;var r=dq(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=hq(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=hq(r.width),l=hq(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=fq(r,"left","right")+o),Math.round(l+a)!==n&&(l-=fq(r,"top","bottom")+a)),!function(e){return e===dq(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return vq(i.left,i.top,s,l)}var gq="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof dq(e).SVGGraphicsElement}:function(e){return e instanceof dq(e).SVGElement&&"function"===typeof e.getBBox};function yq(e){return iq?gq(e)?function(e){var t=e.getBBox();return vq(0,0,t.width,t.height)}(e):mq(e):pq}function vq(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bq=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vq(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=yq(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_q=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return uq(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);uq(this,{target:e,contentRect:n})},wq=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new rq,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dq(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new bq(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dq(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new _q(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),xq="undefined"!==typeof WeakMap?new WeakMap:new rq,kq=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=cq.getInstance(),r=new wq(t,n,this);xq.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){kq.prototype[e]=function(){var t;return(t=xq.get(this))[e].apply(t,arguments)}}));var Cq="undefined"!==typeof oq.ResizeObserver?oq.ResizeObserver:kq,Sq=function(){var e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=nq((0,r.useState)({left:0,top:0,width:0,height:0}),2),i=n[0],o=n[1],a=(0,r.useState)((function(){return new Cq((function(e){var n=nq(e,1)[0];t.current=requestAnimationFrame((function(){o(n.contentRect)}))}))})),s=nq(a,1)[0];return(0,r.useEffect)((function(){return e.current&&s.observe(e.current),function(){t.current&&cancelAnimationFrame(t.current),s.disconnect()}}),[]),[e,i]},Mq=function(e){return(0,r.useMemo)((function(){return"function"===typeof(t=e)?t:"string"===typeof t?0===t.indexOf("time:")?xU(t.slice("5")):DB(t):function(e){return"".concat(e)};var t}),[e])},Tq=(0,r.createContext)(),Eq={},Pq=function(e){var t=e.theme,n=void 0===t?Eq:t,i=e.children,o=function(e){return(0,r.useMemo)((function(){return EV(MV,e)}),[e])}(n);return r.createElement(Tq.Provider,{value:o},i)},Iq=function(){return(0,r.useContext)(Tq)},Oq=function(e){var t=e.children,n=e.condition,i=e.wrapper;return n?(0,r.cloneElement)(i,{},t):t},Lq={position:"relative"},Rq=function(e){var t=e.children,n=e.theme,i=e.renderWrapper,o=void 0===i||i,a=e.isInteractive,s=void 0===a||a,l=e.animate,c=e.motionStiffness,u=e.motionDamping,d=e.motionConfig,p=(0,r.useRef)(null);return r.createElement(Pq,{theme:n},r.createElement(IV,{animate:l,stiffness:c,damping:u,config:d},r.createElement(zA,{container:p},r.createElement(Oq,{condition:o,wrapper:r.createElement("div",{style:Lq,ref:p})},t,s&&r.createElement(FA,null)))))},jq=function(){},Dq={position:"relative"},Aq=function(e){var t=e.children,n=e.theme,i=e.isInteractive,o=void 0===i||i,a=e.renderWrapper,s=void 0===a||a,l=e.animate,c=e.motionStiffness,u=e.motionDamping,d=e.motionConfig,p=(0,r.useRef)(null),h=AA(p),f=h.actions,m=h.state,g=(0,r.useCallback)((function(e,t){return f.showTooltipFromEvent(e,t)}),[f.showTooltipFromEvent]),y=(0,r.useMemo)((function(){return{showTooltip:o?g:jq,hideTooltip:o?f.hideTooltip:jq}}),[f.hideTooltip,o,g]);return r.createElement(Pq,{theme:n},r.createElement(IV,{animate:l,stiffness:c,damping:u,config:d},r.createElement(RA.Provider,{value:f},r.createElement(DA.Provider,{value:m},r.createElement(Oq,{condition:s,wrapper:r.createElement("div",{style:Dq,ref:p})},t(y),o&&r.createElement(FA,null))))))},Nq=function(e){var t=e.children,n=nq(Sq(),2),i=n[0],o=n[1],a=o.width>0&&o.height>0;return r.createElement("div",{ref:i,style:{width:"100%",height:"100%"}},a&&t({width:o.width,height:o.height}))},Fq={linearGradient:function(e){var t=e.id,n=e.colors;return r.createElement("linearGradient",{id:t,x1:0,x2:0,y1:0,y2:1},n.map((function(e){var t=e.offset,n=e.color,i=e.opacity;return r.createElement("stop",{key:t,offset:"".concat(t,"%"),stopColor:n,stopOpacity:void 0!==i?i:1})})))}},zq=(0,r.memo)((function(e){var t=e.id,n=e.background,i=e.color,o=e.size,a=e.padding,s=e.stagger,l=o+a,c=o/2,u=a/2;return!0===s&&(l=2*o+2*a),r.createElement("pattern",{id:t,width:l,height:l,patternUnits:"userSpaceOnUse"},r.createElement("rect",{width:l,height:l,fill:n}),r.createElement("circle",{cx:u+c,cy:u+c,r:c,fill:i}),s&&r.createElement("circle",{cx:1.5*a+o+c,cy:1.5*a+o+c,r:c,fill:i}))}));zq.displayName="PatternDots",zq.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};Math.PI;var Bq=function(e){return e*Math.PI/180},Uq=function(e){return 180*e/Math.PI},$q=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Vq={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},qq=(0,r.memo)((function(e){var t=e.id,n=e.spacing,i=e.rotation,o=e.background,a=e.color,s=e.lineWidth,l=Math.round(i)%360,c=Math.abs(n);l>180?l-=360:l>90?l-=180:l<-180?l+=360:l<-90&&(l+=180);var u,d=c,p=c;return 0===l?u="\n                M 0 0 L ".concat(d," 0\n                M 0 ").concat(p," L ").concat(d," ").concat(p,"\n            "):90===l?u="\n                M 0 0 L 0 ".concat(p,"\n                M ").concat(d," 0 L ").concat(d," ").concat(p,"\n            "):(d=Math.abs(c/Math.sin(Bq(l))),p=c/Math.sin(Bq(90-l)),u=l>0?"\n                    M 0 ".concat(-p," L ").concat(2*d," ").concat(p,"\n                    M ").concat(-d," ").concat(-p," L ").concat(d," ").concat(p,"\n                    M ").concat(-d," 0 L ").concat(d," ").concat(2*p,"\n                "):"\n                    M ".concat(-d," ").concat(p," L ").concat(d," ").concat(-p,"\n                    M ").concat(-d," ").concat(2*p," L ").concat(2*d," ").concat(-p,"\n                    M 0 ").concat(2*p," L ").concat(2*d," 0\n                ")),r.createElement("pattern",{id:t,width:d,height:p,patternUnits:"userSpaceOnUse"},r.createElement("rect",{width:d,height:p,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),r.createElement("path",{d:u,strokeWidth:s,stroke:a,strokeLinecap:"square"}))}));qq.displayName="PatternLines",qq.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Zq=(0,r.memo)((function(e){var t=e.id,n=e.background,i=e.color,o=e.size,a=e.padding,s=e.stagger,l=o+a,c=a/2;return!0===s&&(l=2*o+2*a),r.createElement("pattern",{id:t,width:l,height:l,patternUnits:"userSpaceOnUse"},r.createElement("rect",{width:l,height:l,fill:n}),r.createElement("rect",{x:c,y:c,width:o,height:o,fill:i}),s&&r.createElement("rect",{x:1.5*a+o,y:1.5*a+o,width:o,height:o,fill:i}))}));Zq.displayName="PatternSquares",Zq.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Hq={patternDots:zq,patternLines:qq,patternSquares:Zq};function Gq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wq=gV(gV({},Fq),Hq),Yq=(0,r.memo)((function(e){var t=e.defs;return!t||t.length<1?null:r.createElement("defs",null,t.map((function(e){var t=e.type,n=Gq(e,["type"]);return Wq[t]?r.createElement(Wq[t],gV({key:n.id},n)):null})))})),Kq=function(e){var t=e.width,n=e.height,i=e.margin,o=e.defs,a=e.children,s=e.role,l=Iq();return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",role:s,width:t,height:n},r.createElement(Yq,{defs:o}),r.createElement("rect",{width:t,height:n,fill:l.background}),r.createElement("g",{transform:"translate(".concat(i.left,",").concat(i.top,")")},a))},Xq=(0,r.memo)((function(e){var t=e.size,n=e.color,i=e.borderWidth,o=e.borderColor;return r.createElement("circle",{r:t/2,fill:n,stroke:o,strokeWidth:i,style:{pointerEvents:"none"}})})),Jq=function(e){var t=e.x,n=e.y,i=e.symbol,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,p=e.labelYOffset,h=e.theme,f=LV(),m=f.animate,g=f.config,y=WD({transform:"translate(".concat(t,", ").concat(n,")"),config:g,immediate:!m});return r.createElement(vA.g,{transform:y.transform,style:{pointerEvents:"none"}},r.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&r.createElement("text",{textAnchor:d,y:p,style:h.dots.text},u))};Jq.defaultProps={symbol:Xq,labelTextAnchor:"middle",labelYOffset:-12};var Qq=(0,r.memo)(Jq),eZ=function(e){var t=e.width,n=e.height,i=e.axis,o=e.scale,a=e.value,s=e.lineStyle,l=e.textStyle,c=e.legend,u=e.legendPosition,d=e.legendOffsetX,p=e.legendOffsetY,h=e.legendOrientation,f=Iq(),m=0,g=0,y=0,v=0;"y"===i?(y=o(a),g=t):(m=o(a),v=n);var b=null;if(c){var _=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,o=e.offsetX,a=e.offsetY,s=e.orientation,l=0,c=0,u="vertical"===s?-90:0,d="start";if("x"===t)switch(i){case"top-left":l=-o,c=a,d="end";break;case"top":c=-a,d="horizontal"===s?"middle":"start";break;case"top-right":l=o,c=a,d="horizontal"===s?"start":"end";break;case"right":l=o,c=r/2,d="horizontal"===s?"start":"middle";break;case"bottom-right":l=o,c=r-a,d="start";break;case"bottom":c=r+a,d="horizontal"===s?"middle":"end";break;case"bottom-left":c=r-a,l=-o,d="horizontal"===s?"end":"start";break;case"left":l=-o,c=r/2,d="horizontal"===s?"end":"middle"}else switch(i){case"top-left":l=o,c=-a,d="start";break;case"top":l=n/2,c=-a,d="horizontal"===s?"middle":"start";break;case"top-right":l=n-o,c=-a,d="horizontal"===s?"end":"start";break;case"right":l=n+o,d="horizontal"===s?"start":"middle";break;case"bottom-right":l=n-o,c=a,d="end";break;case"bottom":l=n/2,c=a,d="horizontal"===s?"middle":"end";break;case"bottom-left":l=o,c=a,d="horizontal"===s?"start":"end";break;case"left":l=-o,d="horizontal"===s?"end":"middle"}return{x:l,y:c,rotation:u,textAnchor:d}}({axis:i,width:t,height:n,position:u,offsetX:d,offsetY:p,orientation:h});b=r.createElement("text",{transform:"translate(".concat(_.x,", ").concat(_.y,") rotate(").concat(_.rotation,")"),textAnchor:_.textAnchor,dominantBaseline:"central",style:l},c)}return r.createElement("g",{transform:"translate(".concat(m,", ").concat(y,")")},r.createElement("line",{x1:0,x2:g,y1:0,y2:v,stroke:f.markers.lineColor,strokeWidth:f.markers.lineStrokeWidth,style:s}),b)};eZ.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var tZ=(0,r.memo)(eZ),nZ=(0,r.memo)((function(e){var t=e.markers,n=e.width,i=e.height,o=e.xScale,a=e.yScale;return t&&0!==t.length?t.map((function(e,t){return r.createElement(tZ,Object.assign({key:t},e,{width:n,height:i,scale:"y"===e.axis?a:o}))})):null})),rZ=function(e,t){var n,r=Lz()(e)?e:function(t){return VA()(t,e)};return t&&(n=Lz()(t)?t:DB(t)),n?function(e){return n(r(e))}:r},iZ=function(e){return Lz()(e)?e:function(t){return VA()(t,e)}};function oZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aZ(e,t){return aZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aZ(e,t)}function sZ(e){return sZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sZ(e)}function lZ(e){return lZ="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lZ(e)}function cZ(e,t){return!t||"object"!==lZ(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uZ(e){return function(){var t,n=sZ(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(ag){return!1}}()){var r=sZ(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return cZ(this,t)}}var dZ=function(e){return function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aZ(e,t)}(s,t);var n,i,o,a=uZ(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(i=[{key:"render",value:function(){var t=this.props,n=t.theme,i=t.renderWrapper,o=t.animate,a=t.motionStiffness,s=t.motionDamping,l=t.motionConfig,c=Gq(t,["theme","renderWrapper","animate","motionStiffness","motionDamping","motionConfig"]);return r.createElement(Rq,{theme:n,renderWrapper:i,isInteractive:c.isInteractive,animate:o,motionStiffness:a,motionDamping:s,motionConfig:l},r.createElement(e,c))}}])&&oZ(n.prototype,i),o&&oZ(n,o),s}(r.Component)},pZ=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},hZ=function(e,t){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return[n-i.left,r-i.top]};function fZ(e){return function(e){if(Array.isArray(e))return eq(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||tq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mZ=Object.keys(Fq),gZ=Object.keys(Hq),yZ=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.dataKey,o=r.colorKey,a=void 0===o?"color":o,s=r.targetKey,l=void 0===s?"fill":s,c=[],u={};return e.length&&t.length&&(c=fZ(e),t.forEach((function(t){for(var r=function(r){var o=n[r],s=o.id;if(function(e,t,n){if("*"===e)return!0;if(Lz()(e))return e(t);if(hV()(e)){var r=n?VA()(t,n):t;return hT()(yS()(r,Object.keys(e)),e)}return!1}(o.match,t,i)){var d=e.find((function(e){return e.id===s}));if(d)if(gZ.includes(d.type))if("inherit"===d.background||"inherit"===d.color){var p=VA()(t,a),h=d.background,f=d.color,m=s;"inherit"===d.background&&(m="".concat(m,".bg.").concat(p),h=p),"inherit"===d.color&&(m="".concat(m,".fg.").concat(p),f=p),ZA()(t,l,"url(#".concat(m,")")),u[m]||(c.push(gV(gV({},d),{},{id:m,background:h,color:f})),u[m]=1)}else ZA()(t,l,"url(#".concat(s,")"));else if(mZ.includes(d.type)){if(d.colors.map((function(e){return e.color})).includes("inherit")){var g=VA()(t,a),y=s,v=gV(gV({},d),{},{colors:d.colors.map((function(e,t){return"inherit"!==e.color?e:(y="".concat(y,".").concat(t,".").concat(g),gV(gV({},e),{},{color:"inherit"===e.color?g:e.color}))}))});v.id=y,ZA()(t,l,"url(#".concat(y,")")),u[y]||(c.push(v),u[y]=1)}else ZA()(t,l,"url(#".concat(s,")"))}return"break"}},o=0;o<n.length;o++){if("break"===r(o))break}}))),c},vZ=$B((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));vZ.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?$B((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):vZ:null};const bZ=vZ;vZ.range;var _Z=$B((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*VB)}),(function(e,t){return(t-e)/VB}),(function(e){return e.getUTCSeconds()}));const wZ=_Z;_Z.range;var xZ=$B((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*VB)}),(function(e,t){e.setTime(+e+t*qB)}),(function(e,t){return(t-e)/qB}),(function(e){return e.getMinutes()}));const kZ=xZ;xZ.range;var CZ=$B((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*qB)}),(function(e,t){return(t-e)/qB}),(function(e){return e.getUTCMinutes()}));const SZ=CZ;CZ.range;var MZ=$B((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*VB-e.getMinutes()*qB)}),(function(e,t){e.setTime(+e+t*ZB)}),(function(e,t){return(t-e)/ZB}),(function(e){return e.getHours()}));const TZ=MZ;MZ.range;var EZ=$B((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ZB)}),(function(e,t){return(t-e)/ZB}),(function(e){return e.getUTCHours()}));const PZ=EZ;EZ.range;var IZ=$B((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const OZ=IZ;IZ.range;var LZ=$B((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const RZ=LZ;LZ.range;function jZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DZ(Object(n),!0).forEach((function(t){jZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NZ=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!==(r=e(t))&&void 0!==r?r:0)+n}},FZ={millisecond:[bZ,bZ],second:[wZ,wZ],minute:[kZ,SZ],hour:[TZ,PZ],day:[hU,rU],week:[oU,YB],sunday:[oU,YB],monday:[aU,KB],tuesday:[sU,XB],wednesday:[lU,JB],thursday:[cU,QB],friday:[uU,eU],saturday:[dU,tU],month:[OZ,RZ],year:[mU,yU]},zZ=Object.keys(FZ),BZ=new RegExp("^every\\s*(\\d+)?\\s*(".concat(zZ.join("|"),")s?$"),"i"),UZ=function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},$Z=function(e,t){if(Array.isArray(t))return t;if("ticks"in e){if(void 0===t)return e.ticks();if(UZ(t))return e.ticks(t);if("string"===typeof t&&"useUTC"in e){var n=t.match(BZ);if(n){var r=FZ[n[2]][e.useUTC?1:0];if(void 0===n[1])return e.ticks(r);var i=r.every(Number(n[1]));if(i)return e.ticks(i)}throw new Error("Invalid tickValues: ".concat(t))}}return e.domain()},VZ=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.engine,u=void 0===c?"svg":c,d=$Z(r,o),p=Vq[u],h="bandwidth"in r?NZ(r):r,f={lineX:0,lineY:0},m={textX:0,textY:0},g="object"===typeof document&&"rtl"===document.dir,y=p.align.center,v=p.baseline.center;"x"===n?(t=function(e){var t;return{x:null!==(t=h(e))&&void 0!==t?t:0,y:0}},f.lineY=a*("after"===i?1:-1),m.textY=(a+s)*("after"===i?1:-1),v="after"===i?p.baseline.top:p.baseline.bottom,0===l?y=p.align.center:"after"===i&&l<0||"before"===i&&l>0?(y=p.align[g?"left":"right"],v=p.baseline.center):("after"===i&&l>0||"before"===i&&l<0)&&(y=p.align[g?"right":"left"],v=p.baseline.center)):(t=function(e){var t;return{x:0,y:null!==(t=h(e))&&void 0!==t?t:0}},f.lineX=a*("after"===i?1:-1),m.textX=(a+s)*("after"===i?1:-1),y="after"===i?p.align.left:p.align.right);var b=d.map((function(e){return AZ(AZ(AZ({key:"number"===typeof e||"string"===typeof e?e:"".concat(e),value:e},t(e)),f),m)}));return{ticks:b,textAlign:y,textBaseline:v}},qZ=function(e,t){if("undefined"===typeof e||"function"===typeof e)return e;if("time"===t.type){var n=xU(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return DB(e)},ZZ=function(e){var t=e.width,n=e.height,r=e.scale,i=e.axis,o=e.values,a=function(e){return Array.isArray(e)}(o)?o:void 0,s=UZ(o)?o:void 0,l=a||$Z(r,s),c="bandwidth"in r?NZ(r):r,u="x"===i?l.map((function(e){var t,r;return{key:"".concat(e),x1:null!==(t=c(e))&&void 0!==t?t:0,x2:null!==(r=c(e))&&void 0!==r?r:0,y1:0,y2:n}})):l.map((function(e){var n,r;return{key:"".concat(e),x1:0,x2:t,y1:null!==(n=c(e))&&void 0!==n?n:0,y2:null!==(r=c(e))&&void 0!==r?r:0}}));return u},HZ=(0,r.memo)((function(e){var t,n=e.value,i=e.format,o=e.lineX,a=e.lineY,s=e.onClick,l=e.textBaseline,c=e.textAnchor,u=e.animatedProps,d=Iq(),p=null!==(t=null===i||void 0===i?void 0:i(n))&&void 0!==t?t:n,h=(0,r.useMemo)((function(){var e={opacity:u.opacity};return s?{style:AZ(AZ({},e),{},{cursor:"pointer"}),onClick:function(e){return s(e,p)}}:{style:e}}),[u.opacity,s,p]);return r.createElement(vA.g,Object.assign({transform:u.transform},h),r.createElement("line",{x1:0,x2:o,y1:0,y2:a,style:d.axis.ticks.line}),r.createElement(vA.text,{dominantBaseline:l,textAnchor:c,transform:u.textTransform,style:d.axis.ticks.text},p))})),GZ=(0,r.memo)((function(e){var t=e.axis,n=e.scale,i=e.x,o=void 0===i?0:i,a=e.y,s=void 0===a?0:a,l=e.length,c=e.ticksPosition,u=e.tickValues,d=e.tickSize,p=void 0===d?5:d,h=e.tickPadding,f=void 0===h?5:h,m=e.tickRotation,g=void 0===m?0:m,y=e.format,v=e.renderTick,b=void 0===v?HZ:v,_=e.legend,w=e.legendPosition,x=void 0===w?"end":w,k=e.legendOffset,C=void 0===k?0:k,S=e.onClick,M=e.ariaHidden,T=Iq(),E=(0,r.useMemo)((function(){return qZ(y,n)}),[y,n]),P=VZ({axis:t,scale:n,ticksPosition:c,tickValues:u,tickSize:p,tickPadding:f,tickRotation:g}),I=P.ticks,O=P.textAlign,L=P.textBaseline,R=null;if(void 0!==_){var j,D=0,A=0,N=0;"y"===t?(N=-90,D=C,"start"===x?(j="start",A=l):"middle"===x?(j="middle",A=l/2):"end"===x&&(j="end")):(A=C,"start"===x?j="start":"middle"===x?(j="middle",D=l/2):"end"===x&&(j="end",D=l)),R=r.createElement("text",{transform:"translate(".concat(D,", ").concat(A,") rotate(").concat(N,")"),textAnchor:j,style:AZ({dominantBaseline:"central"},T.axis.legend.text)},_)}var F=LV(),z=F.animate,B=F.config,U=WD({transform:"translate(".concat(o,",").concat(s,")"),lineX2:"x"===t?l:0,lineY2:"x"===t?0:l,config:B,immediate:!z}),$=QD(I,{keys:function(e){return e.key},initial:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},from:function(e){return{opacity:0,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},enter:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},update:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},leave:{opacity:0},config:B,immediate:!z});return r.createElement(vA.g,{transform:U.transform,"aria-hidden":M},$((function(e,t,n,i){return r.createElement(b,AZ(AZ({tickIndex:i,format:E,rotate:g,textBaseline:L,textAnchor:O,animatedProps:e},t),S?{onClick:S}:{}))})),r.createElement(vA.line,{style:T.axis.domain.line,x1:0,x2:U.lineX2,y1:0,y2:U.lineY2}),R)})),WZ={ticksPosition:ye().oneOf(["before","after"]),tickValues:ye().oneOfType([ye().number,ye().arrayOf(ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)])),ye().string]),tickSize:ye().number,tickPadding:ye().number,tickRotation:ye().number,format:ye().oneOfType([ye().func,ye().string]),renderTick:ye().func,legend:ye().node,legendPosition:ye().oneOf(["start","middle","end"]),legendOffset:ye().number,ariaHidden:ye().bool},YZ=ye().shape(WZ),KZ=["top","right","bottom","left"],XZ=(0,r.memo)((function(e){var t=e.xScale,n=e.yScale,i=e.width,o=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return r.createElement(r.Fragment,null,KZ.map((function(e){var s=a[e];if(!s)return null;var l="top"===e||"bottom"===e,c="top"===e||"left"===e?"before":"after";return r.createElement(GZ,Object.assign({key:e},s,{axis:l?"x":"y",x:"right"===e?i:0,y:"bottom"===e?o:0,scale:l?t:n,length:l?i:o,ticksPosition:c}))})))})),JZ=(0,r.memo)((function(e){var t=e.animatedProps,n=Iq();return r.createElement(vA.line,Object.assign({},t,n.grid.line))})),QZ=(0,r.memo)((function(e){var t=e.lines,n=LV(),i=n.animate,o=QD(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!i});return r.createElement("g",null,o((function(e,t){return r.createElement(JZ,Object.assign({},t,{key:t.key,animatedProps:e}))})))})),eH=(0,r.memo)((function(e){var t=e.width,n=e.height,i=e.xScale,o=e.yScale,a=e.xValues,s=e.yValues,l=(0,r.useMemo)((function(){return!!i&&ZZ({width:t,height:n,scale:i,axis:"x",values:a})}),[i,a,t,n]),c=(0,r.useMemo)((function(){return!!o&&ZZ({width:t,height:n,scale:o,axis:"y",values:s})}),[n,t,o,s]);return r.createElement(r.Fragment,null,l&&r.createElement(QZ,{lines:l}),c&&r.createElement(QZ,{lines:c}))})),tH=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};KZ.forEach((function(t){var a=d[t];if(!a)return null;var s="top"===t||"bottom"===t,l="top"===t||"left"===t?"before":"after",c=s?n:r,p=qZ(a.format,c);!function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=void 0===o?0:o,s=t.y,l=void 0===s?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,p=t.tickSize,h=void 0===p?5:p,f=t.tickPadding,m=void 0===f?5:f,g=t.tickRotation,y=void 0===g?0:g,v=t.format,b=t.legend,_=t.legendPosition,w=void 0===_?"end":_,x=t.legendOffset,k=void 0===x?0:x,C=t.theme,S=VZ({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:m,tickRotation:y,engine:"canvas"}),M=S.ticks,T=S.textAlign,E=S.textBaseline;e.save(),e.translate(a,l),e.textAlign=T,e.textBaseline=E,e.font="".concat(C.axis.ticks.text.fontSize,"px ").concat(C.axis.ticks.text.fontFamily),(null!==(n=C.axis.domain.line.strokeWidth)&&void 0!==n?n:0)>0&&(e.lineWidth=Number(C.axis.domain.line.strokeWidth),e.lineCap="square",C.axis.domain.line.stroke&&(e.strokeStyle=C.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===r?c:0,"x"===r?0:c),e.stroke());var P="function"===typeof v?v:function(e){return"".concat(e)};if(M.forEach((function(t){var n;(null!==(n=C.axis.ticks.line.strokeWidth)&&void 0!==n?n:0)>0&&(e.lineWidth=Number(C.axis.ticks.line.strokeWidth),e.lineCap="square",C.axis.ticks.line.stroke&&(e.strokeStyle=C.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var r=P(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(Bq(y)),C.axis.ticks.text.fill&&(e.fillStyle=C.axis.ticks.text.fill),e.fillText(String(r),0,0),e.restore()})),void 0!==b){var I=0,O=0,L=0,R="center";"y"===r?(L=-90,I=k,"start"===w?(R="start",O=c):"middle"===w?(R="center",O=c/2):"end"===w&&(R="end")):(O=k,"start"===w?R="start":"middle"===w?(R="center",I=c/2):"end"===w&&(R="end",I=c)),e.translate(I,O),e.rotate(Bq(L)),e.font="".concat(C.axis.legend.text.fontWeight?"".concat(C.axis.legend.text.fontWeight," "):"").concat(C.axis.legend.text.fontSize,"px ").concat(C.axis.legend.text.fontFamily),C.axis.legend.text.fill&&(e.fillStyle=C.axis.legend.text.fill),e.textAlign=R,e.textBaseline="middle",e.fillText(b,0,0)}e.restore()}(e,AZ(AZ({},a),{},{axis:s?"x":"y",x:"right"===t?i:0,y:"bottom"===t?o:0,scale:c,format:p,length:s?i:o,ticksPosition:l,theme:u}))}))},nH=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;ZZ({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))};function rH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iH(Object(n),!0).forEach((function(t){rH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return aH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lH={top:0,right:0,bottom:0,left:0},cH=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if("number"!==typeof i&&("object"!==typeof(t=i)||Array.isArray(t)||null===t))throw new Error("Invalid property padding, must be one of: number, object");var l="number"===typeof i?{top:i,right:i,bottom:i,left:i}:oH(oH({},lH),i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,p=s+u,h=(o-1)*r;return"row"===n?d=a*o+h+c:"column"===n&&(p=s*o+h+u),{width:d,height:p,padding:l}},uH=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},dH=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,p=e.height;switch(s){case"left-to-right":t=0,n=(p-c)/2,i=p/2,a="central",!0===l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(p-c)/2,i=p/2,a="central",!0===l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",!0===l?(i=p,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=p-c,r=d/2,o="middle",!0===l?(i=0,a="text-before-edge"):(i=p-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},pH={circle:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,a=e.borderWidth,s=void 0===a?0:a,l=e.borderColor,c=void 0===l?"transparent":l;return r.createElement("circle",{r:i/2,cx:t+i/2,cy:n+i/2,fill:o,strokeWidth:s,stroke:c,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,a=e.borderWidth,s=void 0===a?0:a,l=e.borderColor,c=void 0===l?"transparent":l;return r.createElement("g",{transform:"translate(".concat(t,",").concat(n,")")},r.createElement("path",{d:"\n                    M".concat(i/2," 0\n                    L").concat(.8*i," ").concat(i/2,"\n                    L").concat(i/2," ").concat(i,"\n                    L").concat(.2*i," ").concat(i/2,"\n                    L").concat(i/2," 0\n                "),fill:o,strokeWidth:s,stroke:c,style:{pointerEvents:"none"}}))},square:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,a=e.borderWidth,s=void 0===a?0:a,l=e.borderColor,c=void 0===l?"transparent":l;return r.createElement("rect",{x:t,y:n,fill:o,strokeWidth:s,stroke:c,width:i,height:i,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,a=e.borderWidth,s=void 0===a?0:a,l=e.borderColor,c=void 0===l?"transparent":l;return r.createElement("g",{transform:"translate(".concat(t,",").concat(n,")")},r.createElement("path",{d:"\n                M".concat(i/2," 0\n                L").concat(i," ").concat(i,"\n                L0 ").concat(i,"\n                L").concat(i/2," 0\n            "),fill:o,strokeWidth:s,stroke:c,style:{pointerEvents:"none"}}))}},hH=function(e){var t,n,i,o,a,s,l,c,u,d,p,h=e.x,f=e.y,m=e.width,g=e.height,y=e.data,v=e.direction,b=void 0===v?"left-to-right":v,_=e.justify,w=void 0!==_&&_,x=e.textColor,k=e.background,C=void 0===k?"transparent":k,S=e.opacity,M=void 0===S?1:S,T=e.symbolShape,E=void 0===T?"square":T,P=e.symbolSize,I=void 0===P?16:P,O=e.symbolSpacing,L=void 0===O?8:O,R=e.symbolBorderWidth,j=void 0===R?0:R,D=e.symbolBorderColor,A=void 0===D?"transparent":D,N=e.onClick,F=e.onMouseEnter,z=e.onMouseLeave,B=e.effects,U=sH((0,r.useState)({}),2),$=U[0],V=U[1],q=Iq(),Z=(0,r.useCallback)((function(e){if(B){var t=B.filter((function(e){return"hover"===e.on})).reduce((function(e,t){return oH(oH({},e),t.style)}),{});V(t)}null===F||void 0===F||F(y,e)}),[F,y,B]),H=(0,r.useCallback)((function(e){if(B){var t=B.filter((function(e){return"hover"!==e.on})).reduce((function(e,t){return oH(oH({},e),t.style)}),{});V(t)}null===z||void 0===z||z(y,e)}),[z,y,B]),G=dH({direction:b,justify:w,symbolSize:null!==(t=$.symbolSize)&&void 0!==t?t:I,symbolSpacing:L,width:m,height:g}),W=G.symbolX,Y=G.symbolY,K=G.labelX,X=G.labelY,J=G.labelAnchor,Q=G.labelAlignment,ee=[N,F,z].some((function(e){return void 0!==e})),te="function"===typeof E?E:pH[E];return r.createElement("g",{transform:"translate(".concat(h,",").concat(f,")"),style:{opacity:null!==(n=$.itemOpacity)&&void 0!==n?n:M}},r.createElement("rect",{width:m,height:g,fill:null!==(i=$.itemBackground)&&void 0!==i?i:C,style:{cursor:ee?"pointer":"auto"},onClick:function(e){null===N||void 0===N||N(y,e)},onMouseEnter:Z,onMouseLeave:H}),r.createElement(te,{id:y.id,x:W,y:Y,size:null!==(o=$.symbolSize)&&void 0!==o?o:I,fill:null!==(a=null!==(s=y.fill)&&void 0!==s?s:y.color)&&void 0!==a?a:"black",borderWidth:null!==(l=$.symbolBorderWidth)&&void 0!==l?l:j,borderColor:null!==(c=$.symbolBorderColor)&&void 0!==c?c:A}),r.createElement("text",{textAnchor:J,style:oH(oH({},q.legends.text),{},{fill:null!==(u=null!==(d=null!==(p=$.itemTextColor)&&void 0!==p?p:x)&&void 0!==d?d:q.legends.text.fill)&&void 0!==u?u:"black",dominantBaseline:Q,pointerEvents:"none",userSelect:"none"}),x:K,y:X},y.label))},fH=function(e){var t=e.data,n=e.x,i=e.y,o=e.direction,a=e.padding,s=void 0===a?0:a,l=e.justify,c=e.effects,u=e.itemWidth,d=e.itemHeight,p=e.itemDirection,h=void 0===p?"left-to-right":p,f=e.itemsSpacing,m=void 0===f?0:f,g=e.itemTextColor,y=e.itemBackground,v=void 0===y?"transparent":y,b=e.itemOpacity,_=void 0===b?1:b,w=e.symbolShape,x=e.symbolSize,k=e.symbolSpacing,C=e.symbolBorderWidth,S=e.symbolBorderColor,M=e.onClick,T=e.onMouseEnter,E=e.onMouseLeave,P=cH({itemCount:t.length,itemWidth:u,itemHeight:d,itemsSpacing:m,direction:o,padding:s}).padding,I="row"===o?u+m:0,O="column"===o?d+m:0;return r.createElement("g",{transform:"translate(".concat(n,",").concat(i,")")},t.map((function(e,t){return r.createElement(hH,{key:t,data:e,x:t*I+P.left,y:t*O+P.top,width:u,height:d,direction:h,justify:l,effects:c,textColor:g,background:v,opacity:_,symbolShape:w,symbolSize:x,symbolSpacing:k,symbolBorderWidth:C,symbolBorderColor:S,onClick:M,onMouseEnter:T,onMouseLeave:E})})))},mH=function(e){var t=e.data,n=e.containerWidth,i=e.containerHeight,o=e.translateX,a=void 0===o?0:o,s=e.translateY,l=void 0===s?0:s,c=e.anchor,u=e.direction,d=e.padding,p=void 0===d?0:d,h=e.justify,f=e.itemsSpacing,m=void 0===f?0:f,g=e.itemWidth,y=e.itemHeight,v=e.itemDirection,b=e.itemTextColor,_=e.itemBackground,w=e.itemOpacity,x=e.symbolShape,k=e.symbolSize,C=e.symbolSpacing,S=e.symbolBorderWidth,M=e.symbolBorderColor,T=e.onClick,E=e.onMouseEnter,P=e.onMouseLeave,I=e.effects,O=cH({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:y,direction:u,padding:p}),L=O.width,R=O.height,j=uH({anchor:c,translateX:a,translateY:l,containerWidth:n,containerHeight:i,width:L,height:R}),D=j.x,A=j.y;return r.createElement(fH,{data:t,x:D,y:A,direction:u,padding:p,justify:h,effects:I,itemsSpacing:m,itemWidth:g,itemHeight:y,itemDirection:v,itemTextColor:b,itemBackground:_,itemOpacity:w,symbolShape:x,symbolSize:k,symbolSpacing:C,symbolBorderWidth:S,symbolBorderColor:M,onClick:T,onMouseEnter:E,onMouseLeave:P})},gH={start:"left",middle:"center",end:"right"},yH=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=void 0===o?0:o,s=t.translateY,l=void 0===s?0:s,c=t.anchor,u=t.direction,d=t.padding,p=void 0===d?0:d,h=t.justify,f=void 0!==h&&h,m=t.itemsSpacing,g=void 0===m?0:m,y=t.itemWidth,v=t.itemHeight,b=t.itemDirection,_=void 0===b?"left-to-right":b,w=t.itemTextColor,x=t.symbolSize,k=void 0===x?16:x,C=t.symbolSpacing,S=void 0===C?8:C,M=t.theme,T=cH({itemCount:n.length,itemWidth:y,itemHeight:v,itemsSpacing:g,direction:u,padding:p}),E=T.width,P=T.height,I=T.padding,O=uH({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:E,height:P}),L=O.x,R=O.y,j="row"===u?y+g:0,D="column"===u?v+g:0;e.save(),e.translate(L,R),e.font="".concat(M.legends.text.fontSize,"px ").concat(M.legends.text.fontFamily||"sans-serif"),n.forEach((function(t,n){var r,i,o=n*j+I.left,a=n*D+I.top,s=dH({direction:_,justify:f,symbolSize:k,symbolSpacing:S,width:y,height:v}),l=s.symbolX,c=s.symbolY,u=s.labelX,d=s.labelY,p=s.labelAnchor,h=s.labelAlignment;e.fillStyle=null!==(r=t.color)&&void 0!==r?r:"black",e.fillRect(o+l,a+c,k,k),e.textAlign=gH[p],"central"===h&&(e.textBaseline="middle"),e.fillStyle=null!==(i=null!==w&&void 0!==w?w:M.legends.text.fill)&&void 0!==i?i:"black",e.fillText(String(t.label),o+u,a+d)})),e.restore()},vH={data:ye().arrayOf(ye().shape({id:ye().oneOfType([ye().string,ye().number]).isRequired,label:ye().oneOfType([ye().string,ye().number]).isRequired,color:ye().string,fill:ye().string})),anchor:ye().oneOf(["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left","center"]).isRequired,translateX:ye().number,translateY:ye().number,direction:ye().oneOf(["row","column"]).isRequired,itemsSpacing:ye().number,itemWidth:ye().number.isRequired,itemHeight:ye().number.isRequired,itemDirection:ye().oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]),itemTextColor:ye().string,itemBackground:ye().string,itemOpacity:ye().number,symbolShape:ye().oneOfType([ye().oneOf(["circle","diamond","square","triangle"]),ye().func]),symbolSize:ye().number,symbolSpacing:ye().number,symbolBorderWidth:ye().number,symbolBorderColor:ye().string,onClick:ye().func,onMouseEnter:ye().func,onMouseLeave:ye().func,effects:ye().arrayOf(ye().shape({on:ye().oneOfType([ye().oneOf(["hover"])]).isRequired,style:ye().shape({itemTextColor:ye().string,itemBackground:ye().string,itemOpacity:ye().number,symbolSize:ye().number,symbolBorderWidth:ye().number,symbolBorderColor:ye().string}).isRequired}))},bH=Math.sqrt(50),_H=Math.sqrt(10),wH=Math.sqrt(2);function xH(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=kH(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function kH(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=bH?10:o>=_H?5:o>=wH?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bH?10:o>=_H?5:o>=wH?2:1)}function CH(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=bH?i*=10:o>=_H?i*=5:o>=wH&&(i*=2),t<e?-i:i}function SH(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function MH(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>SH(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}const TH=MH(SH),EH=TH.right,PH=(TH.left,MH((function(e){return null===e?NaN:+e})).center,EH);function IH(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=jH(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function OH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function LH(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=jH(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}function RH(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function jH(e,t){var n,r=typeof t;return null==t||"boolean"===r?BN(t):("number"===r?HA:"string"===r?(n=xN(t))?(t=n,qN):YA:t instanceof xN?qN:t instanceof Date?OH:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?RH:Array.isArray(t)?IH:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?LH:HA)(e,t)}function DH(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function AH(e){return+e}var NH=[0,1];function FH(e){return e}function zH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function BH(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=zH(i,r),o=n(a,o)):(r=zH(r,i),o=n(o,a)),function(e){return o(r(e))}}function UH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=zH(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=PH(e,t,1,r)-1;return o[n](i[n](t))}}function $H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function VH(){var e,t,n,r,i,o,a=NH,s=NH,l=jH,c=FH;function u(){var e=Math.min(a.length,s.length);return c!==FH&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?UH:BH,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),HA)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,AH),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=DH,u()},d.clamp=function(e){return arguments.length?(c=!!e||FH,u()):c!==FH},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function qH(){return VH()(FH,FH)}function ZH(e,t,n,r){var i,o=CH(e,t,n);switch((r=PB(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(MB(t)/3)))-MB(Math.abs(e)))}(o,a))||(r.precision=i),AB(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,MB(t)-MB(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-MB(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return DB(r)}function HH(e){var t=e.domain;return e.ticks=function(e){var n=t();return xH(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ZH(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=kH(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function GH(){var e=qH();return e.copy=function(){return $H(e,GH())},eN.apply(e,arguments),HH(e)}function WH(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function YH(e){return Math.log(e)}function KH(e){return Math.exp(e)}function XH(e){return-Math.log(-e)}function JH(e){return-Math.exp(-e)}function QH(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eG(e){return function(t){return-e(-t)}}function tG(e){var t,n,r=e(YH,KH),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?QH:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=eG(t),n=eG(n),e(XH,JH)):e(YH,KH),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],l=a[a.length-1];(r=l<s)&&(p=s,s=l,l=p);var c,u,d,p=t(s),h=t(l),f=null==e?10:+e,m=[];if(!(o%1)&&h-p<f){if(p=Math.floor(p),h=Math.ceil(h),s>0){for(;p<=h;++p)for(u=1,c=n(p);u<o;++u)if(!((d=c*u)<s)){if(d>l)break;m.push(d)}}else for(;p<=h;++p)for(u=o-1,c=n(p);u>=1;--u)if(!((d=c*u)<s)){if(d>l)break;m.push(d)}2*m.length<f&&(m=xH(s,l,f))}else m=xH(p,h,Math.min(h-p,f)).map(n);return r?m.reverse():m},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=DB(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(WH(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function nG(){var e=tG(VH()).domain([1,10]);return e.copy=function(){return $H(e,nG()).base(e.base())},eN.apply(e,arguments),e}function rG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iG(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function oG(){var e=function(e){var t=1,n=e(rG(t),iG(t));return n.constant=function(n){return arguments.length?e(rG(t=+n),iG(t)):t},HH(n)}(VH());return e.copy=function(){return $H(e,oG()).constant(e.constant())},eN.apply(e,arguments)}function aG(){var e,t,n=nN().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a<o,p=d?a:o,h=d?o:a;e=(h-p)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),p+=(h-p-e*(n-l))*u,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return aG(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},eN.apply(d(),arguments)}function sG(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sG(t())},e}function lG(){return sG(aG.apply(null,arguments).paddingInner(1))}const cG=1e3,uG=6e4,dG=36e5,pG=864e5,hG=6048e5,fG=2592e6,mG=31536e6;var gG=new Date,yG=new Date;function vG(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return vG((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return gG.setTime(+t),yG.setTime(+r),e(gG),e(yG),Math.floor(n(gG,yG))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var bG=vG((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));bG.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vG((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):bG:null};const _G=bG;bG.range;var wG=vG((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*cG)}),(function(e,t){return(t-e)/cG}),(function(e){return e.getUTCSeconds()}));const xG=wG;wG.range;var kG=vG((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cG)}),(function(e,t){e.setTime(+e+t*uG)}),(function(e,t){return(t-e)/uG}),(function(e){return e.getMinutes()}));const CG=kG;kG.range;var SG=vG((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cG-e.getMinutes()*uG)}),(function(e,t){e.setTime(+e+t*dG)}),(function(e,t){return(t-e)/dG}),(function(e){return e.getHours()}));const MG=SG;SG.range;var TG=vG((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uG)/pG),(e=>e.getDate()-1));const EG=TG;TG.range;function PG(e){return vG((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uG)/hG}))}var IG=PG(0),OG=PG(1),LG=PG(2),RG=PG(3),jG=PG(4),DG=PG(5),AG=PG(6),NG=(IG.range,OG.range,LG.range,RG.range,jG.range,DG.range,AG.range,vG((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})));const FG=NG;NG.range;var zG=vG((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));zG.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vG((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const BG=zG;zG.range;var UG=vG((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*uG)}),(function(e,t){return(t-e)/uG}),(function(e){return e.getUTCMinutes()}));const $G=UG;UG.range;var VG=vG((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*dG)}),(function(e,t){return(t-e)/dG}),(function(e){return e.getUTCHours()}));const qG=VG;VG.range;var ZG=vG((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/pG}),(function(e){return e.getUTCDate()-1}));const HG=ZG;ZG.range;function GG(e){return vG((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/hG}))}var WG=GG(0),YG=GG(1),KG=GG(2),XG=GG(3),JG=GG(4),QG=GG(5),eW=GG(6),tW=(WG.range,YG.range,KG.range,XG.range,JG.range,QG.range,eW.range,vG((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})));const nW=tW;tW.range;var rW=vG((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));rW.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vG((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const iW=rW;rW.range;function oW(e,t,n,r,i,o){const a=[[xG,1,cG],[xG,5,5e3],[xG,15,15e3],[xG,30,3e4],[o,1,uG],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,dG],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,pG],[r,2,1728e5],[n,1,hG],[t,1,fG],[t,3,7776e6],[e,1,mG]];function s(t,n,r){const i=Math.abs(n-t)/r,o=MH((e=>{let[,,t]=e;return t})).right(a,i);if(o===a.length)return e.every(CH(t/mG,n/mG,r));if(0===o)return _G.every(Math.max(CH(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"===typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}const[aW,sW]=oW(iW,nW,WG,HG,qG,$G),[lW,cW]=oW(BG,FG,IG,EG,MG,CG);function uW(e){return new Date(e)}function dW(e){return e instanceof Date?+e:+new Date(+e)}function pW(e,t,n,r,i,o,a,s,l,c){var u=qH(),d=u.invert,p=u.domain,h=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),b=c("%B"),_=c("%Y");function w(e){return(l(e)<e?h:s(e)<e?f:a(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?y:v:n(e)<e?b:_)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,dW)):p().map(uW)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(WH(n,e)):u},u.copy=function(){return $H(u,pW(e,t,n,r,i,o,a,s,l,c))},u}var hW,fW=n(3483),mW=n.n(fW),gW=n(85868),yW=n.n(gW),vW={type:ye().oneOf(["linear"]).isRequired,min:ye().oneOfType([ye().oneOf(["auto"]),ye().number]),max:ye().oneOfType([ye().oneOf(["auto"]),ye().number]),stacked:ye().bool,reverse:ye().bool,clamp:ye().bool,nice:ye().oneOfType([ye().number,ye().bool])},bW=function(e,t,n,r){var i,o=e.axis,a=e.base,s=void 0===a?10:a,l=e.min,c=void 0===l?"auto":l,u=e.max,d=void 0===u?"auto":u,p=t[o],h="x"===o?n:r,f=p.all.some((function(e){return 0===e})),m=!1;if(p.all.filter((function(e){return null!=e})).forEach((function(e){!0!==m&&(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(m=!0))})),f||m)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join("\n"));var g=c;"auto"===c&&(g=p.min);var y=d;"auto"===d&&(y=p.max);var v=nG().domain([g,y]).rangeRound("x"===o?[0,h]:[h,0]).base(s).nice();return v.type="log",v},_W={type:ye().oneOf(["log"]).isRequired,base:ye().number,min:ye().oneOfType([ye().oneOf(["auto"]),ye().number]),max:ye().oneOfType([ye().oneOf(["auto"]),ye().number])},wW={type:ye().oneOf(["symlog"]).isRequired,constant:ye().number,min:ye().oneOfType([ye().oneOf(["auto"]),ye().number]),max:ye().oneOfType([ye().oneOf(["auto"]),ye().number])},xW={type:ye().oneOf(["point"]).isRequired};function kW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CW="millisecond",SW="second",MW="minute",TW="hour",EW="month",PW="year",IW=[CW,SW,MW,TW,"day",EW,PW],OW=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],LW=(kW(hW={},CW,[]),kW(hW,SW,OW.slice(0,1)),kW(hW,MW,OW.slice(0,2)),kW(hW,TW,OW.slice(0,3)),kW(hW,"day",OW.slice(0,4)),kW(hW,EW,OW.slice(0,5)),kW(hW,PW,OW.slice(0,6)),hW),RW=function(e){var t=e.format,n=void 0===t?"native":t,r=e.precision,i=void 0===r?"millisecond":r,o=e.useUTC,a=void 0===o||o,s=function(e){return function(t){return LW[e].forEach((function(e){e(t)})),t}}(i);if("native"===n)return function(e){return s(e)};var l=a?SU(n):kU(n);return function(e){return s(l(e))}},jW=function(e,t,n,r){var i=e.axis,o=e.format,a=void 0===o?"native":o,s=e.precision,l=void 0===s?CW:s,c=e.min,u=void 0===c?"auto":c,d=e.max,p=void 0===d?"auto":d,h=e.useUTC,f=void 0===h||h,m=e.nice,g=void 0!==m&&m,y=t[i],v="x"===i?n:r,b=RW({format:a,precision:l,useUTC:f}),_=u;"auto"===u?_=y.min:"native"!==a&&(_=b(u));var w=p;"auto"===p?w=y.max:"native"!==a&&(w=b(p));var x=f?function(){return eN.apply(pW(aW,sW,iW,nW,WG,HG,qG,$G,xG,CU).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}():function(){return eN.apply(pW(lW,cW,BG,FG,IG,EG,MG,CG,xG,xU).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();return x.domain([_,w]).range([0,v]),!0===g?x.nice():"object"!==typeof g&&"number"!==typeof g||x.nice(g),x.type="time",x.useUTC=f,x},DW={type:ye().oneOf(["time"]).isRequired,format:ye().string,precision:ye().oneOf(IW),nice:ye().oneOfType([ye().bool,ye().number,ye().object])},AW={type:ye().oneOf(["band"]).isRequired,round:ye().bool};function NW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FW(e){return function(e){if(Array.isArray(e))return NW(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return NW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NW(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zW(Object(n),!0).forEach((function(t){kW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UW=function(e){return"x"===e?"y":"x"},$W=function(e,t){return e===t},VW=function(e,t){return e.getTime()===t.getTime()},qW=function(e,t,n,r,i){var o=e.map((function(e){return BW(BW({},e),{},{data:e.data.map((function(e){return{data:BW({},e)}}))})})),a=HW(o,t,n);!0===t.stacked&&YW(n.type,a,o),!0===n.stacked&&KW(t.type,a,o);var s=ZW(BW(BW({},t),{},{axis:"x"}),a,r,i),l=ZW(BW(BW({},n),{},{axis:"y"}),a,r,i);return o.forEach((function(e){e.data.forEach((function(e){e.position={x:!0===s.stacked?null===e.data.xStacked?null:s(e.data.xStacked):null===e.data.x?null:s(e.data.x),y:!0===l.stacked?null===e.data.yStacked?null:l(e.data.yStacked):null===e.data.y?null:l(e.data.y)}}))})),BW(BW({},a),{},{series:o,xScale:s,yScale:l})},ZW=function(e,t,n,r){return"linear"===e.type?function(e,t,n,r){var i=e.axis,o=e.min,a=void 0===o?0:o,s=e.max,l=void 0===s?"auto":s,c=e.stacked,u=void 0!==c&&c,d=e.reverse,p=void 0!==d&&d,h=e.clamp,f=void 0!==h&&h,m=e.nice,g=void 0!==m&&m,y=t[i],v="x"===i?n:r,b=a;"auto"===a&&(b=!0===u?y.minStacked:y.min);var _=l;"auto"===l&&(_=!0===u?y.maxStacked:y.max);var w=GH().rangeRound("x"===i?[0,v]:[v,0]);return!0===p?w.domain([_,b]):w.domain([b,_]),!0===g?w.nice():"number"===typeof g&&w.nice(g),w.type="linear",w.stacked=u,w.clamp(f),w}(e,t,n,r):"point"===e.type?function(e,t,n,r){var i=e.axis,o=t[i],a="x"===i?n:r,s=lG().range([0,a]).domain(o.all);return s.type="point",s}(e,t,n,r):"time"===e.type?jW(e,t,n,r):"log"===e.type?bW(e,t,n,r):"symlog"===e.type?function(e,t,n,r){var i=e.axis,o=e.constant,a=void 0===o?1:o,s=e.min,l=void 0===s?"auto":s,c=e.max,u=void 0===c?"auto":c,d=t[i],p="x"===i?n:r,h=l;"auto"===l&&(h=d.min);var f=u;"auto"===u&&(f=d.max);var m=oG().domain([h,f]).constant(a).rangeRound("x"===i?[0,p]:[p,0]).nice();return m.type="symlog",m}(e,t,n,r):void 0},HW=function(e,t,n){return{x:GW(e,"x",t),y:GW(e,"y",n)}},GW=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getValue,o=void 0===i?function(e){return e.data[t]}:i,a=r.setValue,s=void 0===a?function(e,n){e.data[t]=n}:a;if("linear"===n.type)e.forEach((function(e){e.data.forEach((function(e){s(e,null===o(e)?null:parseFloat(o(e)))}))}));else if("time"===n.type&&"native"!==n.format){var l=RW(n);e.forEach((function(e){e.data.forEach((function(e){s(e,null===o(e)?null:l(o(e)))}))}))}var c,u,d=[];return e.forEach((function(e){e.data.forEach((function(e){d.push(o(e))}))})),"linear"===n.type?(d=qf()(d),d=$f()(d,(function(e){return e})),c=Math.min.apply(Math,FW(d)),u=Math.max.apply(Math,FW(d))):"time"===n.type?(d=mW()(d,(function(e){return e.getTime()})),d=d.slice(0).sort((function(e,t){return t-e})).reverse(),c=d[0],u=QA()(d)):(c=(d=qf()(d))[0],u=QA()(d)),{all:d,min:c,max:u}},WW=function(e,t,n,r){var i=UW(e),o=[];n[i].all.forEach((function(t){var n=yW()(t)?VW:$W,a=[];r.forEach((function(r){var s=r.data.find((function(e){return n(e.data[i],t)})),l=null,c=null;if(void 0!==s){if(null!==(l=s.data[e])){var u=QA()(a);void 0===u?c=l:null!==u&&(c=u+l)}s.data["".concat(e,"Stacked")]=c}a.push(c),o.push(c)}))})),o=o.filter((function(e){return null!==e})),n[e].minStacked=Math.min.apply(Math,FW(o)),n[e].maxStacked=Math.max.apply(Math,FW(o))},YW=function(e,t,n){return WW("x",0,t,n)},KW=function(e,t,n){return WW("y",0,t,n)},XW=ye().oneOfType([ye().shape(vW),ye().shape(xW),ye().shape(DW),ye().shape(_W),ye().shape(wW),ye().shape(AW)]),JW=Array.prototype.slice;function QW(e){return function(){return e}}function eY(e,t){return e[t]}function tY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nY(Object(n),!0).forEach((function(t){tY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iY={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:WF,accent:YF,dark2:KF,paired:XF,pastel1:JF,pastel2:QF,set1:ez,set2:tz,set3:nz},oY=Object.keys(iY),aY={brown_blueGreen:WN,purpleRed_green:KN,pink_yellowGreen:JN,purple_orange:eF,red_blue:nF,red_grey:iF,red_yellow_blue:aF,red_yellow_green:lF,spectral:uF},sY=Object.keys(aY),lY={brown_blueGreen:YN,purpleRed_green:XN,pink_yellowGreen:QN,purple_orange:tF,red_blue:rF,red_grey:oF,red_yellow_blue:sF,red_yellow_green:cF,spectral:dF},cY={blues:pF,greens:fF,greys:gF,oranges:vF,purples:_F,reds:xF,blue_green:CF,blue_purple:MF,green_blue:EF,orange_red:IF,purple_blue_green:LF,purple_blue:jF,purple_red:AF,red_purple:FF,yellow_green_blue:BF,yellow_green:$F,yellow_orange_brown:qF,yellow_orange_red:HF},uY=Object.keys(cY),dY={blues:hF,greens:mF,greys:yF,oranges:bF,purples:wF,reds:kF,turbo:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:iz,inferno:az,magma:oz,plasma:sz,cividis:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:xz,cool:kz,cubehelixDefault:Mz,blue_green:SF,blue_purple:TF,green_blue:PF,orange_red:OF,purple_blue_green:RF,purple_blue:DF,purple_red:NF,red_purple:zF,yellow_green_blue:UF,yellow_green:VF,yellow_orange_brown:ZF,yellow_orange_red:GF},pY=rY(rY(rY({},iY),aY),cY),hY=Object.keys(pY),fY={rainbow:Sz,sinebow:Iz},mY=rY(rY(rY({},lY),dY),fY);Object.keys(mY);function gY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yY(e,t){if(e){if("string"===typeof e)return gY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gY(e,t):void 0}}function vY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||yY(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var bY=function(e,t){if("function"===typeof e)return e;if(hV()(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=VA()(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '".concat(e.theme,"'"));return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return VA()(t,e.from)};if(Array.isArray(e.modifiers)){var i,o=[],a=function(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=yY(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(e.modifiers);try{var s=function(){var e=vY(i.value,2),t=e[0],n=e[1];if("brighter"===t)o.push((function(e){return e.brighter(n)}));else if("darker"===t)o.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '".concat(t,"', must be one of: 'brighter', 'darker', 'opacity'"));o.push((function(e){return e.opacity=n,e}))}};for(a.s();!(i=a.n()).done;)s()}catch(l){a.e(l)}finally{a.f()}return 0===o.length?r:function(e){return o.reduce((function(e,t){return t(e)}),MN(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},_Y=function(e,t){return(0,r.useMemo)((function(){return bY(e,t)}),[e,t])},wY=function(e,t){if("function"===typeof e)return e;var n="function"===typeof t?t:function(e){return VA()(e,t)};if(Array.isArray(e)){var r=nN(e),i=function(e){return r(n(e))};return i.scale=r,i}if(hV()(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return VA()(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return oY.includes(e)}(e.scheme)){var o=nN(pY[e.scheme]),a=function(e){return o(n(e))};return a.scale=o,a}if(function(e){return sY.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '".concat(e.size,"' for diverging color scheme '").concat(e.scheme,"', must be between 3~11"));var s=nN(pY[e.scheme][e.size||11]),l=function(e){return s(n(e))};return l.scale=s,l}if(function(e){return uY.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '".concat(e.size,"' for sequential color scheme '").concat(e.scheme,"', must be between 3~9"));var c=nN(pY[e.scheme][e.size||9]),u=function(e){return c(n(e))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},xY=function(e,t){return(0,r.useMemo)((function(){return wY(e,t)}),[e,t])},kY=ye().oneOfType([ye().func,ye().arrayOf(ye().string),ye().shape({scheme:ye().oneOf(hY).isRequired,size:ye().number}),ye().shape({datum:ye().string.isRequired}),ye().string]),CY=ye().oneOfType([ye().func,ye().string]),SY=ye().oneOfType([ye().string,ye().func,ye().shape({theme:ye().string.isRequired}),ye().shape({from:ye().string.isRequired,modifiers:ye().arrayOf(ye().array)})]),MY=n(99571),TY=n.n(MY),EY=ye().shape({match:ye().oneOfType([ye().func,ye().object]).isRequired,type:ye().oneOf(["circle","rect","dot"]).isRequired,noteX:ye().oneOfType([ye().number,ye().shape({abs:ye().number.isRequired})]).isRequired,noteY:ye().oneOfType([ye().number,ye().shape({abs:ye().number.isRequired})]).isRequired,noteWidth:ye().number,noteTextOffset:ye().number,note:ye().oneOfType([ye().node,ye().func]).isRequired,offset:ye().number}),PY=120,IY=8;function OY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LY(Object(n),!0).forEach((function(t){OY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jY=function(e){return{x:e.x,y:e.y}},DY=function(e){var t,n,r=e.type,i=e.x,o=e.y,a=e.size,s=e.width,l=e.height,c=e.noteX,u=e.noteY,d=e.noteWidth,p=void 0===d?PY:d,h=e.noteTextOffset,f=void 0===h?IY:h;hV()(c)?void 0!==c.abs&&(t=c.abs):t=i+c,hV()(u)?void 0!==u.abs&&(n=u.abs):n=o+u;var m=i,g=o,y=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return function(e){var t=e%360;return t<0&&(t+=360),t}(Uq(i))}(i,o,t,n);if("circle"===r){var v=$q(Bq(y),a/2);m+=v.x,g+=v.y}if("rect"===r){var b=Math.round((y+90)/45)%8;0===b&&(g-=l/2),1===b&&(m+=s/2,g-=l/2),2===b&&(m+=s/2),3===b&&(m+=s/2,g+=l/2),4===b&&(g+=l/2),5===b&&(m-=s/2,g+=l/2),6===b&&(m-=s/2),7===b&&(m-=s/2,g-=l/2)}var _=t,w=t;return(y+90)%360>180?(_-=p,w-=p):w+=p,{points:[[m,g],[t,n],[w,n]],text:[_,n-f],angle:y+90}},AY=function(e){var t=e.items,n=e.annotations,i=e.getPosition,o=e.getDimensions;return(0,r.useMemo)((function(){return function(e){var t=e.items,n=e.annotations,r=e.getPosition,i=void 0===r?jY:r,o=e.getDimensions;return n.reduce((function(e,n){return TY()(t,n.match).forEach((function(t){var r=i(t),a=o(t,n.offset||0);e.push(RY(RY(RY(RY({},ti()(n,["match","offset"])),r),a),{},{datum:t,size:n.size||a.size}))})),e}),[])}({items:t,annotations:n,getPosition:i,getDimensions:o})}),[t,n,i,o])},NY=(0,r.memo)((function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=Iq(),s=LV(),l=s.animate,c=WD({x:n,y:i,config:s.config,immediate:!l});return"function"===typeof o?o({x:n,y:i,datum:t}):r.createElement(r.Fragment,null,a.annotations.text.outlineWidth>0&&r.createElement(vA.text,{x:c.x,y:c.y,style:RY(RY({},a.annotations.text),{},{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor})},o),r.createElement(vA.text,{x:c.x,y:c.y,style:ti()(a.annotations.text,["outlineWidth","outlineColor"])},o))}));function FY(e){if(Array.isArray(e))return e}function zY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BY(e,t){if(e){if("string"===typeof e)return zY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zY(e,t):void 0}}function UY(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $Y(e,t){return FY(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||BY(e,t)||UY()}function VY(e){return FY(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||BY(e)||UY()}function qY(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}NY.displayName="AnnotationNote",NY.defaultProps={};var ZY=(0,r.memo)((function(e){var t=e.isOutline,n=qY(e,["isOutline"]),i=Iq(),o=VY(n.points),a=o[0],s=o.slice(1).reduce((function(e,t){var n=$Y(t,2),r=n[0],i=n[1];return"".concat(e," L").concat(r,",").concat(i)}),"M".concat(a[0],",").concat(a[1])),l=RV(s);if(t&&i.annotations.link.outlineWidth<=0)return null;var c=RY({},i.annotations.link);return t&&(c.strokeLinecap="square",c.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,c.stroke=i.annotations.link.outlineColor),r.createElement(vA.path,{fill:"none",d:l,style:c})}));ZY.displayName="AnnotationLink",ZY.defaultProps={isOutline:!1};var HY=(0,r.memo)((function(e){var t=e.x,n=e.y,i=e.size,o=Iq(),a=LV(),s=a.animate,l=WD({x:t,y:n,radius:i/2,config:a.config,immediate:!s});return r.createElement(r.Fragment,null,o.annotations.outline.outlineWidth>0&&r.createElement(vA.circle,{cx:l.x,cy:l.y,r:l.radius,style:RY(RY({},o.annotations.outline),{},{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor})}),r.createElement(vA.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.outline}))}));HY.displayName="CircleAnnotationOutline";var GY=(0,r.memo)((function(e){var t=e.x,n=e.y,i=e.size,o=Iq(),a=LV(),s=a.animate,l=WD({x:t,y:n,radius:i/2,config:a.config,immediate:!s});return r.createElement(r.Fragment,null,o.annotations.outline.outlineWidth>0&&r.createElement(vA.circle,{cx:l.x,cy:l.y,r:l.radius,style:RY(RY({},o.annotations.outline),{},{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor})}),r.createElement(vA.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.symbol}))}));GY.displayName="DotAnnotationOutline",GY.defaultProps={size:4};var WY=(0,r.memo)((function(e){var t=e.x,n=e.y,i=e.width,o=e.height,a=Iq(),s=LV(),l=s.animate,c=WD({x:t-i/2,y:n-o/2,width:i,height:o,config:s.config,immediate:!l});return r.createElement(r.Fragment,null,a.annotations.outline.outlineWidth>0&&r.createElement(vA.rect,{x:c.x,y:c.y,width:c.width,height:c.height,style:RY(RY({},a.annotations.outline),{},{fill:"none",strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor})}),r.createElement(vA.rect,{x:c.x,y:c.y,width:c.width,height:c.height,style:a.annotations.outline}))}));WY.displayName="RectAnnotationOutline";var YY=(0,r.memo)((function(e){var t=e.datum,n=e.type,i=e.containerWidth,o=e.containerHeight,a=e.x,s=e.y,l=e.size,c=e.width,u=e.height,d=e.noteX,p=e.noteY,h=e.noteWidth,f=e.noteTextOffset,m=e.note,g=function(e){var t=e.type,n=e.containerWidth,i=e.containerHeight,o=e.x,a=e.y,s=e.size,l=e.width,c=e.height,u=e.noteX,d=e.noteY,p=e.noteWidth,h=e.noteTextOffset;return(0,r.useMemo)((function(){return DY({type:t,containerWidth:n,containerHeight:i,x:o,y:a,size:s,width:l,height:c,noteX:u,noteY:d,noteWidth:p,noteTextOffset:h})}),[t,n,i,o,a,s,l,c,u,d,p,h])}({type:n,containerWidth:i,containerHeight:o,x:a,y:s,size:l,width:c,height:u,noteX:d,noteY:p,noteWidth:h,noteTextOffset:f});return r.createElement(r.Fragment,null,r.createElement(ZY,{points:g.points,isOutline:!0}),"circle"===n&&r.createElement(HY,{x:a,y:s,size:l}),"dot"===n&&r.createElement(GY,{x:a,y:s,size:l}),"rect"===n&&r.createElement(WY,{x:a,y:s,width:c,height:u}),r.createElement(ZY,{points:g.points}),r.createElement(NY,{datum:t,x:g.text[0],y:g.text[1],note:m}))}));YY.displayName="Annotation",YY.defaultProps={noteWidth:PY,noteTextOffset:IY};var KY=function(e,t){t.forEach((function(t,n){var r=$Y(t,2),i=r[0],o=r[1];0===n?e.moveTo(i,o):e.lineTo(i,o)}))};function XY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JY(Object(n),!0).forEach((function(t){XY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tK(e,t){if(e){if("string"===typeof e)return eK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eK(e,t):void 0}}function nK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||tK(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rK(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function iK(e){return function(e){if(Array.isArray(e))return eK(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||tK(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var oK=function(e,t,n,r,i){return aG().domain(e.map(t)).range(n).round(Boolean(i.round)).padding(r)},aK=function(e,t){return e.map((function(e){return QY(QY({},t.reduce((function(e,t){return e[t]=null,e}),{})),e)}))},sK=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},lK=function(e,t){return e>t},cK=function(e,t){return e<t},uK=function(e){var t;return(t=[]).concat.apply(t,iK(e))},dK=function(e,t){return Array.from(" ".repeat(t-e),(function(t,n){return e+n}))},pK=function(e){return lK(e,0)?0:e},hK=function(e,t,n,r){var i=e.data,o=e.getIndex,a=e.keys,s=e.getColor,l=e.innerPadding,c=e.xScale,u=e.yScale,d=n?cK:lK,p=i.map(sK),h=uK(a.map((function(e,n){return dK(0,c.domain().length).map((function(a){var h=c(o(i[a]))+t*n+l*n,f=function(e){return d(e,0)?u(e):r}(i[a][e]),m=function(e,t){return d(e,0)?r-t:u(e)-r}(i[a][e],f),g={id:e,value:i[a][e],index:a,indexValue:o(i[a]),data:p[a]};return{key:"".concat(e,".").concat(g.indexValue),data:g,x:h,y:f,width:t,height:m,color:s(g)}}))})));return h},fK=function(e,t,n,r){var i=e.data,o=e.getIndex,a=e.keys,s=e.getColor,l=e.innerPadding,c=void 0===l?0:l,u=e.xScale,d=e.yScale,p=n?cK:lK,h=i.map(sK),f=uK(a.map((function(e,n){return dK(0,d.domain().length).map((function(a){var l=function(e){return p(e,0)?r:u(e)}(i[a][e]),f=d(o(i[a]))+t*n+c*n,m=function(e,t){return p(e,0)?u(e)-r:r-t}(i[a][e],l),g={id:e,value:i[a][e],index:a,indexValue:o(i[a]),data:h[a]};return{key:"".concat(e,".").concat(g.indexValue),data:g,x:l,y:f,width:m,height:t,color:s(g)}}))})));return f},mK=function(e){var t=e.layout,n=e.keys,r=e.minValue,i=e.maxValue,o=e.reverse,a=e.width,s=e.height,l=e.padding,c=void 0===l?0:l,u=e.innerPadding,d=void 0===u?0:u,p=e.valueScale,h=e.indexScale,f=rK(e,["layout","keys","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale"]),m=aK(f.data,n),g=nK("vertical"===t?["y",[0,a]]:["x",[s,0]],2),y=g[0],v=g[1],b=oK(m,f.getIndex,v,c,h),_=QY({axis:y,max:i,min:r,reverse:o},p),w="auto"===_.min?pK:function(e){return e},x=m.reduce((function(e,t){return[].concat(iK(e),iK(n.map((function(e){return t[e]}))))}),[]).filter(Boolean),k=w(Math.min.apply(Math,iK(x))),C=Math.max.apply(Math,iK(x)),S=ZW(_,XY({},y,{min:k,max:C}),a,s),M=nK("vertical"===t?[b,S]:[S,b],2),T=M[0],E=M[1],P=(b.bandwidth()-d*(n.length-1))/n.length,I=[QY(QY({},f),{},{data:m,keys:n,innerPadding:d,xScale:T,yScale:E}),P,_.reverse,S(0)];return{xScale:T,yScale:E,bars:P>0?"vertical"===t?hK.apply(void 0,I):fK.apply(void 0,I):[]}},gK=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n>0?t.reduce((function(t,r){return t.concat(Array.isArray(r)?e(r,n-1):r)}),[]):t.slice()},yK=function(e,t,n){var r=e.getIndex,i=e.getColor,o=e.innerPadding,a=e.stackedData,s=e.xScale,l=e.yScale,c=gK(a.map((function(e){return s.domain().map((function(a,c){var u=e[c],d=s(r(u.data)),p=function(e){return l(e[n?0:1])}(u)+.5*o,h=function(e,t){return l(e[n?1:0])-t}(u,p)-o,f={id:e.key,value:u.data[e.key],index:c,indexValue:a,data:sK(u.data)};return{key:"".concat(e.key,".").concat(a),data:f,x:d,y:p,width:t,height:h,color:i(f)}}))})));return c},vK=function(e,t,n){var r=e.getIndex,i=e.getColor,o=e.innerPadding,a=e.stackedData,s=e.xScale,l=e.yScale,c=gK(a.map((function(e){return l.domain().map((function(a,c){var u=e[c],d=l(r(u.data)),p=function(e){return s(e[n?1:0])}(u)+.5*o,h=function(e,t){return s(e[n?0:1])-t}(u,p)-o,f={id:e.key,value:u.data[e.key],index:c,indexValue:a,data:sK(u.data)};return{key:"".concat(e.key,".").concat(a),data:f,x:p,y:d,width:h,height:t,color:i(f)}}))})));return c},bK=function(e){var t=e.data,n=e.keys,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=void 0===c?0:c,d=e.valueScale,p=e.indexScale,h=rK(e,["data","keys","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale"]),f=function(){var e=QW([]),t=hB,n=yB,r=eY;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,p=s[o],h=u[o]=new Array(l),f=0;f<l;++f)h[f]=d=[0,+r(i[f],p,f,i)],d.data=i[f];h.key=p}for(o=0,a=t(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:QW(JW.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:QW(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?hB:"function"===typeof e?e:QW(JW.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?yB:e,i):n},i}().keys(n).offset(vB)(aK(t,n)),m=nK("vertical"===r?["y",[0,s]]:["x",[l,0]],2),g=m[0],y=m[1],v=oK(t,h.getIndex,y,u,p),b=QY({axis:g,max:o,min:i,reverse:a},d),_=gK(f,2),w=Math.min.apply(Math,iK(_)),x=Math.max.apply(Math,iK(_)),k=ZW(b,XY({},g,{min:w,max:x}),s,l),C=nK("vertical"===r?[v,k]:[k,v],2),S=C[0],M=C[1],T=h.innerPadding>0?h.innerPadding:0,E=v.bandwidth(),P=[QY(QY({},h),{},{innerPadding:T,stackedData:f,xScale:S,yScale:M}),E,b.reverse];return{xScale:S,yScale:M,bars:E>0?"vertical"===r?yK.apply(void 0,P):vK.apply(void 0,P):[]}},_K=function(e){var t=e.from,n=e.bars,r=e.layout,i=e.direction,o=e.groupMode,a=e.reverse;return"indexes"===t?function(e){return mW()(e.map((function(e){return{id:e.data.indexValue,label:e.data.label||e.data.indexValue,color:e.color,fill:e.data.fill}})),(function(e){return e.id}))}(n):function(e,t,n,r,i){var o=mW()(e.map((function(e){return{id:e.data.id,label:e.data.label||e.data.id,color:e.color,fill:e.data.fill}})),(function(e){return e.id}));return("vertical"===t&&"stacked"===r&&"column"===n&&!0!==i||"horizontal"===t&&"stacked"===r&&!0===i)&&o.reverse(),o}(n,r,i,o,a)},wK=iV(cV(["data","color","onClick"],(function(e){var t=e.data,n=e.color,r=e.onClick;return{onClick:function(e){return r(QY({color:n},t),e)}}})),cV(["data","color","theme","tooltip","getTooltipLabel","tooltipFormat"],(function(e){var t=e.data,n=e.color,i=e.theme,o=e.tooltip,a=e.getTooltipLabel,s=e.tooltipFormat;return{tooltip:r.createElement(EA,{id:a(t),value:t.value,enableChip:!0,color:n,theme:i,format:s,renderContent:"function"===typeof o?o.bind(null,QY({color:n,theme:i},t)):null})}})),rV),xK=wK((function(e){var t=e.data,n=e.x,i=e.y,o=e.width,a=e.height,s=e.borderRadius,l=e.color,c=e.borderWidth,u=e.borderColor,d=e.label,p=e.shouldRenderLabel,h=e.labelColor,f=e.showTooltip,m=e.hideTooltip,g=e.onClick,y=e.onMouseEnter,v=e.onMouseLeave,b=e.tooltip,_=e.theme;return r.createElement("g",{transform:"translate(".concat(n,", ").concat(i,")")},r.createElement("rect",{width:o,height:a,rx:s,ry:s,fill:t.fill?t.fill:l,strokeWidth:c,stroke:u,onMouseEnter:function(e){y(t,e),f(b,e)},onMouseMove:function(e){return f(b,e)},onMouseLeave:function(e){v(t,e),m(e)},onClick:g}),p&&r.createElement("text",{x:o/2,y:a/2,textAnchor:"middle",dominantBaseline:"central",style:QY(QY({},_.labels.text),{},{pointerEvents:"none",fill:h})},d))})),kK=QY(QY({data:ye().arrayOf(ye().object).isRequired,indexBy:ye().oneOfType([ye().string,ye().func]).isRequired,getIndex:ye().func.isRequired,keys:ye().arrayOf(ye().oneOfType([ye().string,ye().number])).isRequired,layers:ye().arrayOf(ye().oneOfType([ye().oneOf(["grid","axes","bars","markers","legends","annotations"]),ye().func])).isRequired,groupMode:ye().oneOf(["stacked","grouped"]).isRequired,layout:ye().oneOf(["horizontal","vertical"]).isRequired,reverse:ye().bool.isRequired,valueScale:XW.isRequired,indexScale:AW.isRequired,minValue:ye().oneOfType([ye().number,ye().oneOf(["auto"])]).isRequired,maxValue:ye().oneOfType([ye().number,ye().oneOf(["auto"])]).isRequired,padding:ye().number.isRequired,innerPadding:ye().number.isRequired,axisTop:YZ,axisRight:YZ,axisBottom:YZ,axisLeft:YZ,enableGridX:ye().bool.isRequired,enableGridY:ye().bool.isRequired,gridXValues:ye().oneOfType([ye().number,ye().arrayOf(ye().oneOfType([ye().number,ye().string]))]),gridYValues:ye().oneOfType([ye().number,ye().arrayOf(ye().oneOfType([ye().number,ye().string]))]),barComponent:ye().func.isRequired,enableLabel:ye().bool.isRequired,label:ye().oneOfType([ye().string,ye().func]).isRequired,labelFormat:ye().oneOfType([ye().string,ye().func]),getLabel:ye().func.isRequired,labelSkipWidth:ye().number.isRequired,labelSkipHeight:ye().number.isRequired,labelTextColor:SY.isRequired,getLabelTextColor:ye().func.isRequired,labelLinkColor:SY.isRequired,getLabelLinkColor:ye().func.isRequired,colors:kY.isRequired,colorBy:CY.isRequired,borderRadius:ye().number.isRequired,getColor:ye().func.isRequired},VV),{},{borderWidth:ye().number.isRequired,borderColor:SY.isRequired,getBorderColor:ye().func.isRequired,isInteractive:ye().bool,onClick:ye().func.isRequired,onMouseEnter:ye().func.isRequired,onMouseLeave:ye().func.isRequired,tooltipLabel:ye().func,getTooltipLabel:ye().func.isRequired,tooltipFormat:ye().oneOfType([ye().func,ye().string]),tooltip:ye().func,legends:ye().arrayOf(ye().shape(QY({dataFrom:ye().oneOf(["indexes","keys"]).isRequired},vH))).isRequired,renderWrapper:ye().bool,pixelRatio:ye().number.isRequired}),CK=(QY(QY({},kK),{},{role:ye().string.isRequired}),{indexBy:"id",keys:["value"],layers:["grid","axes","bars","markers","legends","annotations"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,barComponent:xK,enableLabel:!0,label:"value",labelSkipWidth:0,labelSkipHeight:0,labelLinkColor:"theme",labelTextColor:"theme",colors:{scheme:"nivo"},colorBy:"id",defs:[],fill:[],borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,onClick:jq,onMouseEnter:jq,onMouseLeave:jq,legends:[],annotations:[],pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1}),SK=QY(QY({},CK),{},{role:"img"}),MK=function(e){return iV(uV(CK),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.srcKey,n=void 0===t?"theme":t,r=e.destKey,i=void 0===r?"theme":r;return iV(dV(fV({},n,ye().object)),cV([n],(function(e){return fV({},i,EV(MV,e[n]))})))}(),iV(uV({margin:JV}),dV({width:ye().number.isRequired,height:ye().number.isRequired,margin:KV}),cV((function(e,t){return e.width!==t.width||e.height!==t.height||!hT()(e.margin,t.margin)}),(function(e){var t=Object.assign({},JV,e.margin);return{margin:t,width:e.width-t.left-t.right,height:e.height-t.top-t.bottom,outerWidth:e.width,outerHeight:e.height}}))),iV(dV(OV),uV({animate:!0,motionDamping:15,motionStiffness:90})),cV(["colors","colorBy"],(function(e){var t=e.colors,n=e.colorBy;return{getColor:wY(t,n)}})),cV(["indexBy"],(function(e){var t=e.indexBy;return{getIndex:iZ(t)}})),cV(["labelTextColor","theme"],(function(e){var t=e.labelTextColor,n=e.theme;return{getLabelTextColor:bY(t,n)}})),cV(["labelLinkColor","theme"],(function(e){var t=e.labelLinkColor,n=e.theme;return{getLabelLinkColor:bY(t,n)}})),cV(["label","labelFormat"],(function(e){var t=e.label,n=e.labelFormat;return{getLabel:rZ(t,n)}})),cV(["borderColor","theme"],(function(e){var t=e.borderColor,n=e.theme;return{getBorderColor:bY(t,n)}})),cV(["tooltipLabel"],(function(e){var t=e.tooltipLabel,n=function(e){return"".concat(e.id," - ").concat(e.indexValue)};return"function"===typeof t&&(n=t),{getTooltipLabel:n}})),rV)(e)},TK=function(e){var t=e.bars,n=e.annotations,i=e.animate,o=e.innerWidth,a=e.innerHeight,s=e.motionStiffness,l=e.motionDamping;return AY({items:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e,t){var n=e.width+2*t,r=e.height+2*t;return{width:n,height:r,size:Math.max(n,r)}}}).map((function(e,t){return r.createElement(YY,Object.assign({key:t},e,{containerWidth:o,containerHeight:a,animate:i,motionStiffness:s,motionDamping:l}))}))},EK=function(e){var t=e.style;return{x:t.x.val,y:t.y.val,width:0,height:t.height.val}},PK=function(e){var t=e.style;return{x:t.x.val,y:t.y.val+t.height.val,width:t.width.val,height:0}},IK=function(e){var t=e.data,n=e.getIndex,i=e.keys,o=e.groupMode,a=e.layout,s=e.reverse,l=e.minValue,c=e.maxValue,u=e.valueScale,d=e.indexScale,p=e.margin,h=e.width,f=e.height,m=e.outerWidth,g=e.outerHeight,y=e.padding,v=e.innerPadding,b=e.axisTop,_=e.axisRight,w=e.axisBottom,x=e.axisLeft,k=e.enableGridX,C=e.enableGridY,S=e.gridXValues,M=e.gridYValues,T=e.layers,E=e.barComponent,P=e.enableLabel,I=e.getLabel,O=e.labelSkipWidth,L=e.labelSkipHeight,R=e.getLabelTextColor,j=e.markers,D=e.theme,A=e.getColor,N=e.defs,F=e.fill,z=e.borderRadius,B=e.borderWidth,U=e.getBorderColor,$=e.annotations,V=e.isInteractive,q=e.getTooltipLabel,Z=e.tooltipFormat,H=e.tooltip,G=e.onClick,W=e.onMouseEnter,Y=e.onMouseLeave,K=e.legends,X=e.animate,J=e.motionStiffness,Q=e.motionDamping,ee=e.renderWrapper,te=e.role,ne=("grouped"===o?mK:bK)({layout:a,reverse:s,data:t,getIndex:n,keys:i,minValue:l,maxValue:c,width:h,height:f,getColor:A,padding:y,innerPadding:v,valueScale:u,indexScale:d}),re={animate:X,motionDamping:Q,motionStiffness:J},ie={damping:Q,stiffness:J},oe="vertical"===a?PK:EK,ae="vertical"===a?function(e){return function(t){var n=t.style;return{x:n.x,y:(0,qL.ST)(n.y.val+n.height.val,e),width:n.width,height:(0,qL.ST)(0,e)}}}(ie):function(e){return function(t){var n=t.style;return{x:n.x,y:n.y,width:(0,qL.ST)(0,e),height:n.height}}}(ie),se=function(e){var t=e.width,n=e.height;return!!P&&(!(O>0&&t<O)&&!(L>0&&n<L))},le=yZ(N,ne.bars,F,{dataKey:"data",targetKey:"data.fill"});return r.createElement(Aq,{animate:X,isInteractive:V,motionStiffness:J,motionDamping:Q,renderWrapper:ee,theme:D},(function(t){var n,i=t.showTooltip,l=t.hideTooltip,c={borderRadius:z,borderWidth:B,enableLabel:P,labelSkipWidth:O,labelSkipHeight:L,showTooltip:i,hideTooltip:l,onClick:G,onMouseEnter:W,onMouseLeave:Y,theme:D,getTooltipLabel:q,tooltipFormat:Z,tooltip:H};n=!0===X?r.createElement(qL.bg,{key:"bars",willEnter:oe,willLeave:ae,styles:ne.bars.filter((function(e){return null!==e.data.value})).map((function(e){return{key:e.key,data:e,style:{x:(0,qL.ST)(e.x,ie),y:(0,qL.ST)(e.y,ie),width:(0,qL.ST)(e.width,ie),height:(0,qL.ST)(e.height,ie)}}}))},(function(e){return r.createElement("g",null,e.map((function(e){var t=e.key,n=e.style,i=e.data,o=QY(QY({},i),n);return r.createElement(E,QY(QY(QY({key:t},o),c),{},{shouldRenderLabel:se(o),width:Math.max(n.width,0),height:Math.max(n.height,0),label:I(i.data),labelColor:R(o,D),borderColor:U(o),theme:D}))})))})):ne.bars.filter((function(e){return null!==e.data.value})).map((function(e){return r.createElement(E,QY(QY(QY({key:e.key},e),c),{},{label:I(e.data),shouldRenderLabel:se(e),labelColor:R(e,D),borderColor:U(e),theme:D}))}));var u={grid:r.createElement(eH,{key:"grid",width:h,height:f,xScale:k?ne.xScale:null,yScale:C?ne.yScale:null,xValues:S,yValues:M}),axes:r.createElement(XZ,{key:"axes",xScale:ne.xScale,yScale:ne.yScale,width:h,height:f,top:b,right:_,bottom:w,left:x}),bars:n,markers:r.createElement(nZ,{key:"markers",markers:j,width:h,height:f,xScale:ne.xScale,yScale:ne.yScale,theme:D}),legends:K.map((function(e,t){var n=_K({from:e.dataFrom,bars:ne.bars,layout:a,direction:e.direction,groupMode:o,reverse:s});return void 0===n?null:r.createElement(mH,Object.assign({key:t},e,{containerWidth:h,containerHeight:f,data:n,theme:D}))})),annotations:r.createElement(TK,Object.assign({key:"annotations",innerWidth:h,innerHeight:f,bars:ne.bars,annotations:$},re))};return r.createElement(Kq,{width:m,height:g,margin:p,defs:le,theme:D,role:te},T.map((function(t,n){return"function"===typeof t?r.createElement(r.Fragment,{key:n},t(QY(QY(QY({},e),ne),{},{showTooltip:i,hideTooltip:l}))):u[t]})))}))};IK.defaultProps=SK;var OK=q$("Bar")(MK(IK));function LK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RK(e,t){return RK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RK(e,t)}function jK(e){return jK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jK(e)}function DK(e){return DK="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DK(e)}function AK(e,t){return!t||"object"!==DK(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function NK(e){return function(){var t,n=jK(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(ag){return!1}}()){var r=jK(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return AK(this,t)}}var FK=function(e,t,n,r){return e.find((function(e){return pZ(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},zK=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RK(e,t)}(a,e);var t,n,i,o=NK(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).handleMouseHover=function(t,n){return function(i){if(e.bars){var o=e.props,a=o.margin,s=o.theme,l=o.tooltip,c=o.getTooltipLabel,u=o.tooltipFormat,d=nK(hZ(e.surface,i),2),p=d[0],h=d[1],f=FK(e.bars,a,p,h);void 0!==f?t(r.createElement(EA,{id:c(f.data),value:f.data.value,enableChip:!0,color:f.color,theme:s,format:u,renderContent:"function"===typeof l?l.bind(null,QY({color:f.color},f.data)):null}),i):n()}}},e.handleMouseLeave=function(e){return function(){e()}},e.handleClick=function(t){if(e.bars){var n=e.props,r=n.margin,i=n.onClick,o=nK(hZ(e.surface,t),2),a=o[0],s=o[1],l=FK(e.bars,r,a,s);void 0!==l&&i(l.data,t)}},e}return t=a,n=[{key:"componentDidMount",value:function(){this.ctx=this.surface.getContext("2d"),this.draw(this.props)}},{key:"shouldComponentUpdate",value:function(e){return this.props.outerWidth!==e.outerWidth||this.props.outerHeight!==e.outerHeight||this.props.isInteractive!==e.isInteractive||this.props.theme!==e.theme||(this.draw(e),!1)}},{key:"componentDidUpdate",value:function(){this.ctx=this.surface.getContext("2d"),this.draw(this.props)}},{key:"draw",value:function(e){var t=this,n=e.data,r=e.keys,i=e.getIndex,o=e.minValue,a=e.maxValue,s=e.valueScale,l=e.indexScale,c=e.width,u=e.height,d=e.outerWidth,p=e.outerHeight,h=e.pixelRatio,f=e.margin,m=e.layout,g=e.reverse,y=e.groupMode,v=e.padding,b=e.innerPadding,_=e.axisTop,w=e.axisRight,x=e.axisBottom,k=e.axisLeft,C=e.theme,S=e.getColor,M=e.borderWidth,T=e.getBorderColor,E=e.legends,P=e.enableGridX,I=e.gridXValues,O=e.enableGridY,L=e.gridYValues;this.surface.width=d*h,this.surface.height=p*h,this.ctx.scale(h,h);var R={layout:m,reverse:g,data:n,getIndex:i,keys:r,minValue:o,maxValue:a,width:c,height:u,getColor:S,padding:v,innerPadding:b,valueScale:s,indexScale:l},j="grouped"===y?mK(R):bK(R);this.bars=j.bars,this.ctx.fillStyle=C.background,this.ctx.fillRect(0,0,d,p),this.ctx.translate(f.left,f.top),C.grid.line.strokeWidth>0&&(this.ctx.lineWidth=C.grid.line.strokeWidth,this.ctx.strokeStyle=C.grid.line.stroke,P&&nH(this.ctx,{width:c,height:u,scale:j.xScale,axis:"x",values:I}),O&&nH(this.ctx,{width:c,height:u,scale:j.yScale,axis:"y",values:L})),this.ctx.strokeStyle="#dddddd";var D=mW()(j.bars.map((function(e){return{id:e.data.id,label:e.data.id,color:e.color,fill:e.data.fill}})).reverse(),(function(e){return e.id})),A=mW()(j.bars.map((function(e){return{id:e.data.indexValue,label:e.data.indexValue,color:e.color,fill:e.data.fill}})),(function(e){return e.id}));E.forEach((function(e){var n;if("keys"===e.dataFrom?n=D:"indexes"===e.dataFrom&&(n=A),void 0===n)return null;yH(t.ctx,QY(QY({},e),{},{data:n,containerWidth:c,containerHeight:u,itemTextColor:"#999",symbolSize:16,theme:C}))})),tH(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:u,top:_,right:w,bottom:x,left:k,theme:C}),j.bars.forEach((function(e){var n=e.x,r=e.y,i=e.color,o=e.width,a=e.height;t.ctx.fillStyle=i,M>0&&(t.ctx.strokeStyle=T(e),t.ctx.lineWidth=M),t.ctx.beginPath(),t.ctx.rect(n,r,o,a),t.ctx.fill(),M>0&&t.ctx.stroke()}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.outerWidth,i=t.outerHeight,o=t.pixelRatio,a=t.isInteractive,s=t.renderWrapper,l=t.theme,c=t.canvasRef;return r.createElement(Aq,Object.assign({isInteractive:a,renderWrapper:s,theme:l},{animate:!1}),(function(t){var a=t.showTooltip,s=t.hideTooltip;return r.createElement("canvas",{ref:function(t){e.surface=t,c&&(c.current=t)},width:n*o,height:i*o,style:{width:n,height:i},onMouseEnter:e.handleMouseHover(a,s),onMouseMove:e.handleMouseHover(a,s),onMouseLeave:e.handleMouseLeave(s),onClick:e.handleClick})}))}}],n&&LK(t.prototype,n),i&&LK(t,i),a}(r.Component);zK.defaultProps=CK;var BK=q$("BarCanvas")(MK(zK)),UK=r.forwardRef((function(e,t){return r.createElement(BK,Object.assign({},e,{canvasRef:t}))})),$K=function(e){return r.createElement(Nq,null,(function(t){var n=t.width,i=t.height;return r.createElement(OK,Object.assign({width:n,height:i},e))}))};r.forwardRef((function(e,t){return r.createElement(Nq,null,(function(n){var i=n.width,o=n.height;return r.createElement(UK,Object.assign({width:i,height:o},e,{ref:t}))}))}));const VK=e=>{let{dataLength:t,itemsPerPage:n,onPageChange:i}=e;const[o,a]=(0,r.useState)(0),l=n*(o+1)<t;(0,r.useEffect)((()=>{i(o)}),[o,i]);return(0,w.jsxs)(FL,{children:[(0,w.jsx)(Cd.k,{onClick:()=>{o>=1&&a(o-1)},className:s()({"nav-btn":!0,disabled:0===o}),alignItems:"center",children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(On.xu,{children:"navigate_before"}),"Previous"," ",n]})}),(0,w.jsx)(Cd.k,{className:s()({"nav-btn":!0,disabled:!l}),alignItems:"center",onClick:()=>{l&&a(o+1)},children:(0,w.jsxs)(w.Fragment,{children:["Next"," ",n,(0,w.jsx)(On.xu,{children:"navigate_next"})]})})]})},qK=e=>{let{data:t,colors:n,kiloConvert:i,unit:o,margin:a={},customRenderTick:s,sorted:l=!0,negativeLabelPlacement:c="right",...u}=e;const[p,h]=(0,r.useState)(0),f=(0,r.useMemo)((()=>l?(0,lS.wP)(t,"value"):t),[t,l]),m=(0,r.useMemo)((()=>{const e=10*p;return f.length<=10?f.reverse():f.slice(e,e+10).reverse()}),[p,f]),g=f.length>10;return(0,w.jsxs)(d.Kq,{height:"100%",children:[t.length?(0,w.jsx)(d.xu,{flexGrow:1,width:"100%",height:g?250:272,children:(0,w.jsx)($K,{data:m,indexBy:"label",layout:"horizontal",enableGridY:!1,margin:{top:0,right:55,bottom:0,left:75,...a},padding:.3,enableLabel:!1,colors:e=>{var t,r;return null!==(t=null!==(r=n[e.index])&&void 0!==r?r:n[0])&&void 0!==t?t:"#60b854"},isInteractive:!1,axisLeft:{tickSize:0,renderTick:s||void 0},layers:["grid","axes","bars","markers",e=>(0,w.jsx)(ZK,{...e,kiloConvert:i,selectedUnit:o,negativeLabelPlacement:c})],legends:[],role:"application",...u})}):(0,w.jsx)(NL,{children:(0,w.jsx)(Rn.x,{variant:"h1",bold:!0,children:"No Data"})}),g&&(0,w.jsx)(d.xu,{children:(0,w.jsx)(VK,{dataLength:t.length,itemsPerPage:10,onPageChange:e=>h(e)})})]})},ZK=e=>{let{bars:t,kiloConvert:n,selectedUnit:r="num",negativeLabelPlacement:i}=e;return(0,w.jsx)(w.Fragment,{children:t.map(((e,t)=>{const{key:o,width:a,height:s,x:l,y:c,data:{value:u,data:{secondaryValue:d}}}=e;return(0,w.jsx)("g",{transform:`translate(${l}, ${c})`,children:(0,w.jsxs)("text",{transform:`translate(${u>=0?a+5:"left"===i?-5:a+5}, ${s/2+3})`,textAnchor:""+(u>=0?"start":"left"===i?"end":"start"),fontSize:"12px",fontWeight:600,children:[n?(0,_u.wH)(u):u,"pct"===r?"%":"",(0,er.$K)(d)&&(0,w.jsx)("tspan",{fontSize:"12px",fontWeight:300,children:` ${d}`})]})},`${o}${t}`)}))})},HK=Z.ZP.div`
  width: 200px;

  #ef-tooltip-circle {
    flex: 0 0 12px;
    margin-right: 8px;
  }
`,GK=Z.ZP.div`
  position: relative;
  border-radius: 4px;
  color: white;
  background-color: black;
  padding: 8px;
  max-width: 270px;
  ::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: calc(50% - 10px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 13px solid black;
  }

  .scenario-name {
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(100% - 29px);
    left: 29px;
    top: 5px;
    margin-bottom: 15px;
    ::before {
      position: absolute;
      display: flex;
      content: '${e=>e.scenarioRank}';
      width: 24px;
      height: 24px;
      text-align: center;
      left: -29px;
      top: 0px;
      background-color: ${e=>e.color};
      color: black;
      border-radius: 50%;
      justify-content: center;
      align-items: center;
    }
  }
`,WK=Z.ZP.div`
  background-color: white;
  border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
  border-radius: 4px;
  padding: 20px 16px 0;
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  height: 357px;

  .chart-container {
    position: absolute;
    top: 86px;
    bottom: 0;
    width: calc(100% - 32px);
    height: calc(100% - 86px - 16px);

    .responsive-chart {
      height: 100%;
      width: 100%;
    }

    &.bar-charts {
      width: 100%;
    }
  }

  &.emission-card {
    border: none;
    padding: 0;
    height: 315px;

    .chart-container {
      top: 40px;
    }
  }

  .scatterplot-tooltip {
    background-color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.black}};
    color: white;
    border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
    border-radius: 4px;
    padding: 8px;

    .scatterplot-circle {
      color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.black}};
    }
  }

  .ef-legend {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .ef-legend-circle {
      flex: 0 0 12px;
    }

    .ef-legend-text {
      font-size: 10px;
      line-height: 12px;
      color: ${e=>{let{theme:t}=e;return t.color.text.main}};
    }
  }
`,YK=(0,Z.ZP)(WK)`
  max-width: ${e=>{var t;return null!==(t=e.max)&&void 0!==t?t:504}}px;
  min-width: ${e=>{var t;return null!==(t=e.min)&&void 0!==t?t:300}}px;
  flex: 1 1 ${e=>{var t;return null!==(t=e.base)&&void 0!==t?t:504}}px;
  height: ${e=>{var t;return null!==(t=e.height)&&void 0!==t?t:375}}px;
`,KK=Z.ZP.div`
  position: relative;
  top: 240px;
  padding-left: 12px;
  padding-right: 40px;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
`,XK=Z.ZP.div`
  margin-bottom: 5px;
  height: 8px;
  background: linear-gradient(
    90deg,
    ${e=>e.startColor} 0%,
    ${e=>e.endColor} 100%
  );
`,JK=Z.ZP.div`
  display: flex;
  flex-direction: column;
  flex-basis: 49%;
  ${XK} {
    border-radius: ${e=>{let{direction:t}=e;return"right"===t?"0 2px 2px 0":"2px 0 0 2px"}};
  }
  text-align: ${e=>{let{direction:t}=e;return t}};
`,QK=(e,t)=>{var n;return null!==(n=t[`${e.sourcing_region_id.unit_id}+++${e.sourcing_region_id.unit_type}`])&&void 0!==n?n:""},eX=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return"";switch(e.tag){case"abatement_potential":return`${"supply_shed"===e.sourcing_region_id.unit_type?"Supply Shed":"Subsection"} #${e.sourcing_region_id.unit_id}`;case"program_plan":return"";default:return e}},tX=()=>{const e=(0,h.C)(OL.XC),{cropByCDLId:t}=(0,NS.n)(),n=VL(),{startNumber:i}=(0,h.C)(OL.PN),[o,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const r=[];e.map(((e,o)=>{var a,s,l;const c=null!==(a=null===(s=t[Number(e.crop_type)])||void 0===s?void 0:s.label)&&void 0!==a?a:e.crop_type,u=`${o}+++${QK(e,n)}+++${c}+++${e.rank}`;return r.push({barDetails:{color:null!==(l=oP._S[o])&&void 0!==l?l:oP._S[0],scenario:i+o},label:u,value:0})})),a(r)}),[n,t,e,i]),(0,w.jsxs)(YK,{className:"emission-card",min:200,max:240,children:[(0,w.jsx)(Rn.x,{bold:!0,className:"scenarios",variant:"h3",children:"Scenarios"}),(0,w.jsx)("div",{className:"chart-container",children:(0,w.jsx)(qK,{data:o,colors:[],margin:{bottom:40,left:138},minValue:0,maxValue:0,enableLabel:!1,enableGridX:!1,enableGridY:!1,sorted:!1,isInteractive:!1,axisBottom:null,layers:["axes"],axisLeft:{renderTick:e=>{var t,n;const r=e.x-100,a=r-15-4,s=o.length-e.tickIndex-1+i,l=o.length-e.tickIndex-1;let c=null!==(t=e.value.split("+++")[1])&&void 0!==t?t:"No data";c=c.length>30?`${c.substring(0,30)}...`:c;const u=null!==(n=e.value.split("+++")[2])&&void 0!==n?n:"No data";return(0,w.jsxs)("g",{transform:`translate(${e.x},${e.y})`,children:[(0,w.jsx)("circle",{r:12,fill:oP._S[l],cx:a}),(0,w.jsx)("text",{textAnchor:"middle",alignmentBaseline:"middle",x:a,children:s}),(0,w.jsxs)("text",{textAnchor:"start",x:r,style:{fontSize:"12px",fill:"#000"},dy:0,children:[(0,w.jsx)("tspan",{x:r,style:{fontWeight:600},children:c}),(0,w.jsx)("tspan",{x:r,dy:"12px",children:u})]})]})}}})})]})},nX=()=>{const e=(0,Z.Fg)(),[t,n,r,i]=[e.colorPalette.fs_main.green_800,e.colorPalette.fs_main.green_400,"#F0C6D5",e.colorPalette.fs_category.red_600];return{highestColorNegative:t,lowestColorNegative:n,lowestColorPositive:r,highestColorPositive:i}},rX=e=>{let{leftLabel:t,rightLabel:n,inverted:r=!1}=e;const{highestColorNegative:i,lowestColorNegative:o,lowestColorPositive:a,highestColorPositive:s}=nX();return(0,w.jsxs)(KK,{children:[(0,w.jsxs)(JK,{direction:"left",children:[(0,w.jsx)(XK,{startColor:r?s:i,endColor:r?a:o}),(0,w.jsx)(Rn.x,{variant:"small",children:t})]}),(0,w.jsxs)(JK,{direction:"right",children:[(0,w.jsx)(XK,{startColor:r?o:a,endColor:r?i:s}),(0,w.jsx)(Rn.x,{variant:"small",children:n})]})]})};var iX=n(81797);const oX=e=>{let{lowest:t,highest:n}=e;const i=(0,h.C)(OL.Y_),o=(0,h.C)(OL.dp),a=(0,h.C)(S.DC),{highestColorNegative:s,lowestColorNegative:l,lowestColorPositive:c,highestColorPositive:u}=nX(),{highest:d,lowest:p}=(0,r.useMemo)((()=>(0,iX.tu)({scenarios:i,units:o,measurement:a})),[i,o,a]),f=Math.max(Math.abs((0,er.$K)(n)?n:d),Math.abs((0,er.$K)(t)?t:p));return e=>{let{value:t,lowValueIsBad:n=!1}=e;const r=Math.abs(t)/f;return t<0?n?(0,Y.Py)(c,u,r):(0,Y.Py)(l,s,r):n?(0,Y.Py)(l,s,r):(0,Y.Py)(c,u,r)}},aX=e=>{let{commonBarProps:t}=e;const n=(0,h.C)(OL.XC),i=(0,h.C)(OL.dp),{cropByCDLId:o}=(0,NS.n)(),a=VL(),s=(0,h.C)(S.DC),l=oX({}),{startNumber:c}=(0,h.C)(OL.PN),[u,d]=(0,r.useState)([]);(0,r.useEffect)((()=>{const e=[];n.map(((t,n)=>{var r,l,u;const d=null!==(r=null===(l=o[Number(t.crop_type)])||void 0===l?void 0:l.label)&&void 0!==r?r:t.crop_type,p=`${n}+++${QK(t,a)}+++${d}+++${t.rank}`,h=(0,iX.o0)({scenario:t,kpi:"ghg_reductions",units:i,measurement:s,round:!0,precision:uS.$s}).value;return e.push({barDetails:{color:null!==(u=oP._S[n])&&void 0!==u?u:oP._S[0],scenario:c+n,...(0,iX.xL)(t,"ghg_reductions",!0,3,s)},label:p,value:h})})),d(e)}),[a,o,n,s,c,i]);const p=u.map((e=>l({value:e.value})));return(0,w.jsxs)(YK,{className:"emission-card",base:390,min:220,max:400,children:[(0,w.jsx)(zL,{title:uS.S5.ghg_reductions,subtitle:`metric tons / ${(0,mS.O)(s,!1)}`}),(0,w.jsx)("div",{className:"chart-container bar-charts",children:(0,w.jsx)(qK,{...t,data:u,colors:p.reverse()})}),(0,w.jsx)(rX,{leftLabel:"GHG emissions decrease",rightLabel:"GHG emissions increase"})]})},sX=e=>{let{commonBarProps:t}=e;const n=(0,h.C)(OL.XC),i=(0,h.C)(OL.dp),{cropByCDLId:o}=(0,NS.n)(),a=VL(),s=(0,h.C)(S.DC),l=oX({}),{startNumber:c}=(0,h.C)(OL.PN),[u,d]=(0,r.useState)([]);(0,r.useEffect)((()=>{const e=[];n.map(((t,n)=>{var r,l,u;const d=null!==(r=null===(l=o[Number(t.crop_type)])||void 0===l?void 0:l.label)&&void 0!==r?r:t.crop_type,p=`${n}+++${QK(t,a)}+++${d}+++${t.rank}`,h=(0,iX.o0)({scenario:t,kpi:"net_ghg",units:i,measurement:s,round:!0,precision:uS.$s}).value;return e.push({barDetails:{color:null!==(u=oP._S[n])&&void 0!==u?u:oP._S[0],scenario:c+n,...(0,iX.xL)(t,"net_ghg",!0,3,s)},label:p,value:h})})),d(e)}),[a,o,n,s,c,i]);const p=u.map((e=>l({value:e.value})));return(0,w.jsxs)(YK,{className:"emission-card",base:390,min:220,max:400,children:[(0,w.jsx)(zL,{title:uS.S5.net_ghg,subtitle:`metric tons / ${(0,mS.O)(s,!1)}`}),(0,w.jsx)("div",{className:"chart-container bar-charts",children:(0,w.jsx)(qK,{...t,data:u,colors:p.reverse()})}),(0,w.jsx)(rX,{leftLabel:"Net emissions decrease",rightLabel:"Net emissions increase"})]})},lX=e=>{let{data:{indexValue:t,data:{barDetails:n}}}=e;if((0,er.kK)(n))return null;const r=String(t).split("+++"),i=r[1],o=r[2];return(0,w.jsxs)(GK,{color:n.color,scenarioRank:n.scenario,children:[(0,w.jsx)(Cd.k,{className:"mb-0",children:(0,w.jsxs)(Rn.x,{variant:"medium",bold:!0,className:"scenario-name",children:[i,(0,w.jsx)(Rn.x,{elementType:"span",noMargin:!0,children:o})]})}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",fullWidth:!0,gap:8,children:[(0,w.jsx)(Rn.x,{variant:"medium",noMargin:!0,children:"Baseline"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,noMargin:!0,children:n.baseline})]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",fullWidth:!0,gap:8,children:[(0,w.jsx)(Rn.x,{variant:"medium",children:"With interventions"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,children:n.withInterventions})]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",fullWidth:!0,gap:8,children:[(0,w.jsx)(Rn.x,{variant:"medium",noMargin:!0,children:"Difference"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,noMargin:!0,children:n.difference})]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",fullWidth:!0,gap:8,children:[(0,w.jsx)(Rn.x,{variant:"medium",noMargin:!0,children:"% change"}),(0,w.jsxs)(Rn.x,{variant:"medium",bold:!0,noMargin:!0,children:[n.percentChange,"%"]})]})]})},cX=e=>{let{data:t,x:n,y:r,width:i,height:o,color:a,showTooltip:s,hideTooltip:l}=e;return(0,w.jsxs)("g",{onMouseMove:e=>{s((0,w.jsx)(lX,{data:t}),e)},onMouseLeave:l,children:[(0,w.jsx)("clipPath",{id:`rounded-${t.index}${t.value}`,children:(0,w.jsx)("rect",{x:(()=>{const e=t.value>0;return n-(e?5:0)})(),y:r,width:i+5,height:o,rx:"5",ry:"5"})}),(0,w.jsx)("rect",{x:n,y:r,width:i,height:o,fill:a,clipPath:`url(#rounded-${t.index}${t.value})`})]})},uX=e=>{let{commonBarProps:t}=e;const n=(0,h.C)(OL.XC),i=(0,h.C)(OL.dp),{cropByCDLId:o}=(0,NS.n)(),a=VL(),s=(0,h.C)(S.DC),l=oX({}),{startNumber:c}=(0,h.C)(OL.PN),[u,d]=(0,r.useState)([]);(0,r.useEffect)((()=>{const e=[];n.map(((t,n)=>{var r,l,u;const d=null!==(r=null===(l=o[Number(t.crop_type)])||void 0===l?void 0:l.label)&&void 0!==r?r:t.crop_type,p=`${n}+++${QK(t,a)}+++${d}+++${t.rank}`,h=(0,iX.o0)({scenario:t,kpi:"soc_removals",units:i,measurement:s,round:!0,precision:uS.$s}).value;return e.push({barDetails:{color:null!==(u=oP._S[n])&&void 0!==u?u:oP._S[0],scenario:c+n,...(0,iX.xL)(t,"soc_removals",!0,3,s)},label:p,value:h})})),d(e)}),[a,o,n,s,c,i]);const p=u.map((e=>l({value:e.value,lowValueIsBad:!0})));return(0,w.jsxs)(YK,{className:"emission-card",base:390,min:220,max:400,children:[(0,w.jsx)(zL,{title:uS.S5.soc_removals,subtitle:`metric tons / ${(0,mS.O)(s,!1)}`}),(0,w.jsx)("div",{className:"chart-container bar-charts",children:(0,w.jsx)(qK,{...t,data:u,colors:p.reverse()})}),(0,w.jsx)(rX,{inverted:!0,leftLabel:"Soil carbon loss",rightLabel:"Soil carbon gain"})]})},dX={axis:{domain:{line:{stroke:"#E0E0E0",strokeWidth:1}}},grid:{line:{stroke:"#E0E0E0",strokeWidth:1}}},pX=()=>{const e=(0,h.C)(OL.Y_),t=(0,h.C)(OL.dp),n=(0,h.C)(S.DC),{lowest:r,highest:i}=(0,iX.tu)({scenarios:e,units:t,measurement:n}),o=1.25*Math.max(Math.abs(i),Math.abs(r)),a={enableGridX:!0,gridXValues:[0],barComponent:cX,sorted:!1,isInteractive:!0,theme:dX,unit:t,margin:{left:12,bottom:40},minValue:(0,_u.gU)(-o,"pct"===t?0:2),maxValue:(0,_u.gU)(o,"pct"===t?0:2),axisLeft:null,axisBottom:{tickSize:0,tickValues:[(0,_u.gU)(-o,"pct"===t?0:2),0,(0,_u.gU)(o,"pct"===t?0:2)],format:e=>`${e}${"pct"===t?"%":""}`},negativeLabelPlacement:"left"};return(0,w.jsxs)(UL,{children:[(0,w.jsx)(zL,{title:"Scope 3 emissions analysis",subtitle:`Average annual change per ${(0,mS.O)(n,!1)} relative to the baseline`,tooltip:(0,w.jsxs)(Rn.x,{variant:"small",children:[`The statistics shown below are all annual per ${(0,mS.O)(n,!1)} average change per the practice\n            intervention changes relative to the baseline. The practice intervention change is the\n            counter factual scenario while the baseline scenario is the factual as determined by\n            Regrow's monitor and measure methods. The x-axis values of each chart are the minimum\n            and maximum values across all scenarios. This table is sorted according to the `,(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Rank by"})," ","filter at the top of the plan."]})}),(0,w.jsxs)(hX,{children:[(0,w.jsx)(tX,{}),(0,w.jsx)(aX,{commonBarProps:a}),(0,w.jsx)(uX,{commonBarProps:a}),(0,w.jsx)(sX,{commonBarProps:a})]})]})},hX=Z.ZP.div`
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
`;var fX=n(42931);const mX=(0,w.jsxs)(w.Fragment,{children:["The emission factor is shown in collaboration with Quantis as the"," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Book value"})," ","number is the number from the World Food LCA Database with no adjustments (per country when available, otherwise global)."," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Regrow baseline"})," ","replaces the"," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Field emissions"})," ","and"," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Fertilizer"})," ","components with Regrow calculated values specific to the supply shed."," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"With Interventions"})," ","incorporates the simulated practice change outcomes. For clarity, any component in the black to grey spectrum is NOT updated by Regrow. This chart is sorted according to the"," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Rank by"})," ","filter at the top of the plan."]}),gX=(0,Z.ZP)(Cd.k).attrs({direction:"row",nowrap:!0,justifyContent:"space-between",alignItems:"center"})``,yX=(0,r.memo)((e=>{let{details:t,detailedData:n,efComponent:r}=e;const i=(0,h.C)(S.DC),{book:o,baseline:a,withInterventions:s}=(0,iX.xL)(n.fullScenario,r,!0,3,i);return(0,w.jsxs)(HK,{children:[(0,w.jsxs)(Cd.k,{direction:"row",nowrap:!0,justifyContent:"flex-start",alignItems:"center",className:"margin-bottom-8",children:[(0,w.jsx)(zi.C,{inline:!0,size:12,color:null===t||void 0===t?void 0:t.color,id:"ef-tooltip-circle"}),(0,w.jsx)(Rn.x,{bold:!0,noMargin:!0,children:null===t||void 0===t?void 0:t.label})]}),(0,w.jsxs)(Cd.k,{direction:"column",children:[void 0!==o&&(0,w.jsxs)(gX,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:"Book value"}),(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:o})]}),(0,w.jsxs)(gX,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:"Baseline"}),(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:a})]}),(0,w.jsxs)(gX,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:"With interventions"}),(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:s})]})]})]})})),vX=e=>{let{legends:t,margin:n,outerWidth:r}=e;return(0,w.jsx)(w.Fragment,{children:null===t||void 0===t?void 0:t.map((e=>{var t,i;return(0,w.jsx)("g",{transform:`translate(${0-(null!==(t=null===n||void 0===n?void 0:n.left)&&void 0!==t?t:310)}, 8)`,children:(0,w.jsx)("foreignObject",{style:{overflow:"visible"},width:r,height:"1",children:(0,w.jsx)("div",{className:"ef-legend",children:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.map((e=>{const{id:t,label:n,color:r}=e;return(0,w.jsxs)(Cd.k,{direction:"row",nowrap:!0,alignItems:"flex-start",fullWidth:!0,gap:"4px",children:[(0,w.jsx)(zi.C,{inline:!0,size:12,color:r,className:"ef-legend-circle"}),(0,w.jsx)("div",{className:"ef-legend-text",children:n})]},t)}))})})},"legend")}))})},bX=e=>{var t;let{x:n,y:r,width:i,height:o,data:a,renderTooltip:s}=e;const l=(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.detailedData)[a.id],c=Object.entries(l).sort(((e,t)=>{const n=uS.LM[e[0]].order,r=uS.LM[t[0]].order;return n<r?-1:n>r?1:0})),u=a.value,p=i/u,h=c.reduce(((e,t,r)=>{let[i,o]=t;return e[i]=0===r?{x:n,width:o*p}:{x:e[Object.keys(e)[r-1]].x+e[Object.keys(e)[r-1]].width,width:o*p},e}),{});return(0,w.jsxs)("g",{children:[c.map((e=>{let[t,n]=e;const l=(0,er.yh)(p)?n*p:n,c=l<0,u=uS.LM[t].color;return(0,w.jsx)("foreignObject",{style:{overflow:"visible"},width:(0,er.yh)(i)?i:0,height:o,x:(0,er.yh)(h[t].x)?h[t].x-(c?Math.abs(l):0):0,y:r,children:(0,w.jsx)(d.u,{id:"ef-tooltip",placement:"left",title:s&&s(a,t),disableInteractive:!0,children:(0,w.jsx)("div",{style:{backgroundColor:u||"#464646",height:o,width:c?Math.abs(l):l,...c&&{background:`repeating-linear-gradient(45deg,  ${u}, ${u} 10px, ${u}aa 10px, ${u}aa 20px)`}}})})},t)})),(0,w.jsx)("text",{x:((0,er.yh)(n)?n:0)-4,y:r+o/2,fill:"#1B1B1B",textAnchor:"end",alignmentBaseline:"middle",fontSize:10,children:uS.RZ[a.id]})]})},_X=Z.ZP.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  height: 100%;
`,wX=e=>{let{bars:t,units:n}=e;return(0,w.jsx)(w.Fragment,{children:t.map((e=>{var t;const{width:r,height:i,x:o,y:a,data:s}=e,l=`${s.data.index}-${s.id}`;return(0,w.jsx)("g",{transform:`translate(${(0,er.yh)(o)?o:0}, ${a})`,children:(0,w.jsx)("foreignObject",{style:{overflow:"visible"},width:outerWidth,height:i,transform:`translate(${(0,er.yh)(r)?r+8:8}, 0)`,children:(0,w.jsxs)(_X,{children:[(0,w.jsx)(Rn.x,{variant:"small",bold:!0,noMargin:!0,children:Number(s.value.toPrecision(3))}),"scenario"===s.id&&(0,w.jsxs)(Rn.x,{variant:"small-thin",noMargin:!0,children:["(",null!==(t=s.data.ef)&&void 0!==t?t:0,"pct"===n?"%":"",")"]})]})})},l)}))})},xX=Z.ZP.div`
  width: 160px;
  margin: auto;
`,kX=e=>{let{barChartData:t,reverse:n,keys:i,layout:o,customTick:a,pagination:s,renderTooltip:l,legends:c,margin:u}=e;const d=(0,r.useMemo)((()=>n?t.reverse():t),[t,n]),[p,h]=(0,r.useState)(0),f=(0,r.useMemo)((()=>{if((0,er.$K)(s)){const{itemsPerPage:e}=s,t=p*e;if(d.length<=e)return d;return d.slice(t,t+e).reverse()}return d}),[p,d,s]);return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)($K,{data:f,indexBy:"index",keys:i,layout:o,enableGridY:!1,margin:{top:0,right:200,bottom:30,left:310,...u},padding:.2,innerPadding:2,enableLabel:!1,colors:e=>oP._S[e.index]||oP._S[0]||"#60b854",isInteractive:!1,axisLeft:{tickSize:5,tickPadding:10,renderTick:a},barComponent:e=>(0,w.jsx)(bX,{x:e.x,y:e.y,width:e.width,height:e.height,data:e.data,renderTooltip:l}),groupMode:"grouped",layers:["grid","axes","bars","markers",vX,e=>(0,w.jsx)(wX,{...e})],legends:[{dataFrom:"indexes",data:c,anchor:"top-right",direction:"column",justify:!1,translateX:220,translateY:0,itemWidth:120,itemHeight:200}]}),(0,er.$K)(s)&&(0,w.jsx)(xX,{children:(0,w.jsx)(VK,{dataLength:d.length,itemsPerPage:s.itemsPerPage,onPageChange:e=>h(e)})})]})},CX=e=>{var t,n;let{startNumber:r,dataLength:i,region:o=!1,circle:a,textOffset:s,...l}=e;const c=l.x-(null!==s&&void 0!==s?s:278),u=c-15-4,d=i-l.tickIndex-1+r,p=i-l.tickIndex-1;let h=null!==(t=l.value.split("+++")[1])&&void 0!==t?t:"No data";h=h.length>30?`${h.substring(0,30)}...`:h;const f=o?null!==(n=l.value.split("+++")[2])&&void 0!==n?n:"No data":l.value;return(0,w.jsxs)("g",{transform:`translate(${l.x},${l.y})`,children:[(0,er.fQ)(a)&&(0,w.jsx)("circle",{r:12,fill:oP._S[p],cx:u}),(0,er.fQ)(a)&&(0,w.jsx)("text",{textAnchor:"middle",alignmentBaseline:"middle",x:u,children:d}),(0,w.jsxs)("text",{textAnchor:"start",x:c,style:{fontSize:"12px",fill:"#000"},dy:0,children:[(0,er.fQ)(o)&&(0,w.jsx)("tspan",{x:c,style:{fontWeight:600},children:h}),(0,w.jsx)("tspan",{x:c,dy:(0,er.fQ)(o)?"12px":5,children:f})]})]})},SX=()=>{const e=(0,h.C)(OL.XC),t=(0,h.C)(OL.dp),{cropByCDLId:n}=(0,NS.n)(),i=VL(),o=(0,h.C)(S.DC),{startNumber:a}=(0,h.C)(OL.PN),[s,l]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const r=[];e.map(((e,a)=>{var s,l;const c=(null!==(s=null===(l=n[Number(e.crop_type)])||void 0===l?void 0:l.label)&&void 0!==s?s:"")||e.crop_type,u=`${a}+++${QK(e,i)}+++${c}+++${e.rank}`,d=(0,iX.o0)({scenario:e,kpi:"ef_reductions",units:t,measurement:o,round:!0,decimals:2}).value;return r.push({index:u,book:(0,fX.S)((0,ii._J)(e.book.emission_factors)),baseline:(0,fX.S)((0,ii._J)(e.baseline.emission_factors)),scenario:(0,fX.S)((0,ii._J)(e.simulation.emission_factors)),ef:d,detailedData:{book:e.book.emission_factors,baseline:e.baseline.emission_factors,scenario:e.simulation.emission_factors,fullScenario:e}})})),l(r)}),[i,n,e,o,t]),(0,w.jsxs)(YK,{max:1560,min:823,base:1560,height:500,children:[(0,w.jsx)(zL,{title:"Emission factor analysis",subtitle:"Annual average change of CO2 eq. per kilogram of yield relative to the baseline",tooltip:mX,tooltipPlacement:"left"}),(0,w.jsx)("div",{className:"chart-container",children:(0,w.jsx)(kX,{barChartData:s,keys:["book","baseline","scenario"],layout:"horizontal",reverse:!0,customTick:e=>(0,w.jsx)(CX,{startNumber:a,dataLength:s.length,circle:!0,region:!0,...e}),renderTooltip:(e,t)=>(0,w.jsx)(yX,{details:uS.LM[t],detailedData:e.data.detailedData,efComponent:t},t),legends:(0,ii._J)(uS.LM).map((e=>({id:e.label,label:e.label,color:e.color})))})})]})};var MX=n(39099),TX=n.n(MX);const EX=Math.pow(2,-52),PX=new Uint32Array(512);class IX{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zX;const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new IX(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,s=1/0,l=-1/0,c=-1/0;for(let S=0;S<o;S++){const t=e[2*S],n=e[2*S+1];t<a&&(a=t),n<s&&(s=n),t>l&&(l=t),n>c&&(c=n),this._ids[S]=S}const u=(a+l)/2,d=(s+c)/2;let p,h,f,m=1/0;for(let S=0;S<o;S++){const t=OX(u,d,e[2*S],e[2*S+1]);t<m&&(p=S,m=t)}const g=e[2*p],y=e[2*p+1];m=1/0;for(let S=0;S<o;S++){if(S===p)continue;const t=OX(g,y,e[2*S],e[2*S+1]);t<m&&t>0&&(h=S,m=t)}let v=e[2*h],b=e[2*h+1],_=1/0;for(let S=0;S<o;S++){if(S===p||S===h)continue;const t=DX(g,y,v,b,e[2*S],e[2*S+1]);t<_&&(f=S,_=t)}let w=e[2*f],x=e[2*f+1];if(_===1/0){for(let r=0;r<o;r++)this._dists[r]=e[2*r]-e[0]||e[2*r+1]-e[1];AX(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(RX(g,y,v,b,w,x)){const e=h,t=v,n=b;h=f,v=w,b=x,f=e,w=t,x=n}const k=function(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,p=.5/(a*c-s*l),h=e+(c*u-s*d)*p,f=t+(a*d-l*u)*p;return{x:h,y:f}}(g,y,v,b,w,x);this._cx=k.x,this._cy=k.y;for(let S=0;S<o;S++)this._dists[S]=OX(e[2*S],e[2*S+1],k.x,k.y);AX(this._ids,this._dists,0,o-1),this._hullStart=p;let C=3;n[p]=t[f]=h,n[h]=t[p]=f,n[f]=t[h]=p,r[p]=0,r[h]=1,r[f]=2,i.fill(-1),i[this._hashKey(g,y)]=p,i[this._hashKey(v,b)]=h,i[this._hashKey(w,x)]=f,this.trianglesLen=0,this._addTriangle(p,h,f,-1,-1,-1);for(let S,M,T=0;T<this._ids.length;T++){const o=this._ids[T],a=e[2*o],s=e[2*o+1];if(T>0&&Math.abs(a-S)<=EX&&Math.abs(s-M)<=EX)continue;if(S=a,M=s,o===p||o===h||o===f)continue;let l=0;for(let e=0,t=this._hashKey(a,s);e<this._hashSize&&(l=i[(t+e)%this._hashSize],-1===l||l===n[l]);e++);l=t[l];let c,u=l;for(;c=n[u],!RX(a,s,e[2*u],e[2*u+1],e[2*c],e[2*c+1]);)if(u=c,u===l){u=-1;break}if(-1===u)continue;let d=this._addTriangle(u,o,n[u],-1,-1,r[u]);r[o]=this._legalize(d+2),r[u]=d,C++;let m=n[u];for(;c=n[m],RX(a,s,e[2*m],e[2*m+1],e[2*c],e[2*c+1]);)d=this._addTriangle(m,o,c,r[o],-1,r[m]),r[o]=this._legalize(d+2),n[m]=m,C--,m=c;if(u===l)for(;c=t[u],RX(a,s,e[2*c],e[2*c+1],e[2*u],e[2*u+1]);)d=this._addTriangle(c,o,u,-1,r[u],r[c]),this._legalize(d+2),r[c]=d,n[u]=u,C--,u=c;this._hullStart=t[o]=u,n[u]=t[m]=o,n[o]=m,i[this._hashKey(a,s)]=o,i[this._hashKey(e[2*u],e[2*u+1])]=u}this.hull=new Uint32Array(C);for(let S=0,M=this._hullStart;S<C;S++)this.hull[S]=M,M=n[M];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=PX[--i];continue}const l=a-a%3,c=s+(e+1)%3,u=l+(a+2)%3,d=t[o],p=t[e],h=t[c],f=t[u];if(jX(r[2*d],r[2*d+1],r[2*p],r[2*p+1],r[2*h],r[2*h+1],r[2*f],r[2*f+1])){t[e]=f,t[a]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,u);const s=l+(a+1)%3;i<PX.length&&(PX[i++]=s)}else{if(0===i)break;e=PX[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function OX(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function LX(e,t,n,r,i,o){const a=(r-t)*(i-e),s=(n-e)*(o-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function RX(e,t,n,r,i,o){return(LX(i,o,e,t,n,r)||LX(e,t,n,r,i,o)||LX(n,r,i,o,e,t))<0}function jX(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,p=i-a,h=o-s,f=u*u+d*d,m=p*p+h*h;return l*(d*m-f*h)-c*(u*m-f*p)+(l*l+c*c)*(u*h-d*p)<0}function DX(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,p=.5/(a*c-s*l),h=(c*u-s*d)*p,f=(a*d-l*u)*p;return h*h+f*f}function AX(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;NX(e,n+r>>1,i),t[e[n]]>t[e[r]]&&NX(e,n,r),t[e[i]]>t[e[r]]&&NX(e,i,r),t[e[n]]>t[e[i]]&&NX(e,n,i);const a=e[i],s=t[a];for(;;){do{i++}while(t[e[i]]<s);do{o--}while(t[e[o]]>s);if(o<i)break;NX(e,i,o)}e[n+1]=e[o],e[o]=a,r-i+1>=o-n?(AX(e,t,i,r),AX(e,t,n,o-1)):(AX(e,t,n,o-1),AX(e,t,i,r))}}function NX(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function FX(e){return e[0]}function zX(e){return e[1]}const BX=1e-6;class UX{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>BX||Math.abs(this._y1-i)>BX)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class $X{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class VX{constructor(e){let[t,n,r,i]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500];if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p,h,f=0,m=0,g=n.length;f<g;f+=3,m+=2){const t=2*n[f],r=2*n[f+1],o=2*n[f+2],a=e[t],s=e[t+1],l=e[r],c=e[r+1],u=e[o],d=e[o+1],g=l-a,y=c-s,v=u-a,b=d-s,_=g*g+y*y,w=v*v+b*b,x=2*(g*b-y*v);if(x)if(Math.abs(x)<1e-8)p=(a+u)/2,h=(s+d)/2;else{const e=1/x;p=a+(b*_-y*w)*e,h=s+(g*w-v*_)*e}else p=(a+u)/2-1e8*b,h=(s+d)/2+1e8*v;i[m]=p,i[m+1]=h}let o,a,s,l=t[t.length-1],c=4*l,u=e[2*l],d=e[2*l+1];r.fill(0);for(let p=0;p<t.length;++p)l=t[p],o=c,a=u,s=d,c=4*l,u=e[2*l],d=e[2*l+1],r[o+2]=r[c]=s-d,r[o+3]=r[c+1]=u-a}render(e){const t=null==e?e=new UX:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let c=0,u=n.length;c<u;++c){const t=n[c];if(t<c)continue;const r=2*Math.floor(c/3),i=2*Math.floor(t/3),a=o[r],s=o[r+1],l=o[i],u=o[i+1];this._renderSegment(a,s,l,u,e)}let s,l=i[i.length-1];for(let c=0;c<i.length;++c){s=l,l=i[c];const t=2*Math.floor(r[l]/3),n=o[t],u=o[t+1],d=4*s,p=this._project(n,u,a[d+2],a[d+3]);p&&this._renderSegment(n,u,p[0],p[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new UX:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new UX:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let o=2;o<i;o+=2)r[o]===r[o-2]&&r[o+1]===r[o-1]||t.lineTo(r[o],r[o+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new $X;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const a=this._regioncode(e,t),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)===t&&(n=+n)===n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,a=e.length;o<a;o+=2)if(t[r]==e[o]&&t[r+1]==e[o+1]&&t[(r+2)%i]==e[(o+a-2)%a]&&t[(r+3)%i]==e[(o+a-1)%a]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(t[2*n],t[2*n+1]),s=s%3===2?s-2:s+1,i[s]!==e)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t)}_clipFinite(e,t){const n=t.length;let r,i,o,a,s,l=null,c=t[n-2],u=t[n-1],d=this._regioncode(c,u);for(let p=0;p<n;p+=2)if(r=c,i=u,c=t[p],u=t[p+1],o=d,d=this._regioncode(c,u),0===o&&0===d)a=s,s=0,l?l.push(c,u):l=[c,u];else{let t,n,p,h,f;if(0===o){if(null===(t=this._clipSegment(r,i,c,u,o,d)))continue;[n,p,h,f]=t}else{if(null===(t=this._clipSegment(c,u,r,i,d,o)))continue;[h,f,n,p]=t,a=s,s=this._edgecode(n,p),a&&s&&this._edge(e,a,s,l,l.length),l?l.push(n,p):l=[n,p]}a=s,s=this._edgecode(h,f),a&&s&&this._edge(e,a,s,l,l.length),l?l.push(h,f):l=[h,f]}if(l)a=s,s=this._edgecode(l[0],l[1]),a&&s&&this._edge(e,a,s,l,l.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return l}_clipSegment(e,t,n,r,i,o){for(;;){if(0===i&&0===o)return[e,t,n,r];if(i&o)return null;let a,s,l=i||o;8&l?(a=e+(n-e)*(this.ymax-t)/(r-t),s=this.ymax):4&l?(a=e+(n-e)*(this.ymin-t)/(r-t),s=this.ymin):2&l?(s=t+(r-t)*(this.xmax-e)/(n-e),a=this.xmax):(s=t+(r-t)*(this.xmin-e)/(n-e),a=this.xmin),i?(e=a,t=s,i=this._regioncode(e,t)):(n=a,r=s,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let a,s=Array.from(t);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(e,s))for(let l,c=0,u=s.length,d=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)l=d,d=this._edgecode(s[c],s[c+1]),l&&d&&(c=this._edge(e,l,d,s,c),u=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let o=0;o<r.length;o+=2){const e=(o+2)%r.length,t=(o+4)%r.length;(r[o]===r[e]&&r[e]===r[t]||r[o+1]===r[e+1]&&r[e+1]===r[t+1])&&(r.splice(e,2),o-=2)}return i}_project(e,t,n,r){let i,o,a,s=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<s&&(a=this.ymin,o=e+(s=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<s&&(a=this.ymax,o=e+(s=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<s&&(o=this.xmax,a=t+(s=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<s&&(o=this.xmin,a=t+(s=i)*r)}return[o,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}}const qX=2*Math.PI,ZX=Math.pow;function HX(e){return e[0]}function GX(e){return e[1]}function WX(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class YX{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:HX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GX,r=arguments.length>3?arguments[3]:void 0;return new YX("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=e[a];o[2*a]=t.call(r,i,a,e),o[2*a+1]=n.call(r,i,a,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new IX(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const e=2*t[r],i=2*t[r+1],o=2*t[r+2];if((n[o]-n[e])*(n[i+1]-n[e+1])-(n[i]-n[e])*(n[o+1]-n[e+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let o=0,a=t.length/2;o<a;++o){const e=WX(t[2*o],t[2*o+1],i);t[2*o]=e[0],t[2*o+1]=e[1]}this._delaunator=new IX(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let s=0,l=n.length;s<l;++s){const e=i[s%3===2?s-2:s+1];-1!==n[s]&&-1!==o[e]||(o[e]=s)}for(let s=0,l=r.length;s<l;++s)a[r[s]]=s;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new VX(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const s=t[e];if(-1===s)return;let l=s,c=-1;do{if(yield c=o[l],l=l%3===2?l-2:l+1,o[l]!==e)return;if(l=i[l],-1===l){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(l!==s)}find(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((e=+e)!==e||(t=+t)!==t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=ZX(t-l[2*e],2)+ZX(n-l[2*e+1],2);const d=r[e];let p=d;do{let r=s[p];const d=ZX(t-l[2*r],2)+ZX(n-l[2*r+1],2);if(d<u&&(u=d,c=r),p=p%3===2?p-2:p+1,s[p]!==e)break;if(p=a[p],-1===p){if(p=i[(o[e]+1)%i.length],p!==r&&ZX(t-l[2*p],2)+ZX(n-l[2*p+1],2)<u)return p;break}}while(p!==d);return c}render(e){const t=null==e?e=new UX:void 0,{points:n,halfedges:r,triangles:i}=this;for(let o=0,a=r.length;o<a;++o){const t=r[o];if(t<o)continue;const a=2*i[o],s=2*i[t];e.moveTo(n[a],n[a+1]),e.lineTo(n[s],n[s+1])}return this.renderHull(e),t&&t.value()}renderPoints(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=null==e?e=new UX:void 0,{points:r}=this;for(let i=0,o=r.length;i<o;i+=2){const n=r[i],o=r[i+1];e.moveTo(n+t,o),e.arc(n,o,t,0,qX)}return n&&n.value()}renderHull(e){const t=null==e?e=new UX:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let a=1;a<o;++a){const t=2*n[a];e.lineTo(r[t],r[t+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new $X;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new UX:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],a=2*i[e+1],s=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[a],r[a+1]),t.lineTo(r[s],r[s+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new $X;return this.renderTriangle(e,t),t.value()}}var KX=function(e){return"function"===typeof e?e:function(t){return t[e]}},XX=function(e){var t=e.points,n=e.x,i=e.y,o=e.width,a=e.height,s=e.debug,l=(0,r.useMemo)((function(){return function(e){var t=e.points,n=e.x,r=void 0===n?"x":n,i=e.y,o=void 0===i?"y":i,a=KX(r),s=KX(o);return t.map((function(e){return[a(e),s(e)]}))}({points:t,x:n,y:i})}),[t,n,i]);return(0,r.useMemo)((function(){return function(e){var t=e.points,n=e.width,r=e.height,i=e.debug,o=YX.from(t),a=i?o.voronoi([0,0,n,r]):void 0;return{delaunay:o,voronoi:a}}({points:l,width:o,height:a,debug:s})}),[l,o,a,s])};function JX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return JX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JX(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eJ=function(e){var t=e.nodes,n=e.width,i=e.height,o=e.x,a=e.y,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick,d=e.debug,p=(0,r.useRef)(null),h=QX((0,r.useState)(null),2),f=h[0],m=h[1],g=XX({points:t,x:o,y:a,width:n,height:i,debug:d}),y=g.delaunay,v=g.voronoi,b=(0,r.useMemo)((function(){if(d&&v)return v.render()}),[d,v]),_=(0,r.useCallback)((function(e){if(!p.current)return[null,null];var n=QX(hZ(p.current,e),2),r=n[0],i=n[1],o=y.find(r,i);return[o,void 0!==o?t[o]:null]}),[p,y]),w=(0,r.useCallback)((function(e){var t=QX(_(e),2),n=t[0],r=t[1];m(n),r&&(null===s||void 0===s||s(r,e))}),[_,m,s]),x=(0,r.useCallback)((function(e){var t=QX(_(e),2),n=t[0],r=t[1];m(n),r&&(null===l||void 0===l||l(r,e))}),[_,m,l]),k=(0,r.useCallback)((function(e){if(m(null),c){var n=void 0;null!==f&&(n=t[f]),n&&c(n,e)}}),[m,f,c,t]),C=(0,r.useCallback)((function(e){var t=QX(_(e),2),n=t[0],r=t[1];m(n),r&&(null===u||void 0===u||u(r,e))}),[_,m,u]);return r.createElement("g",{ref:p},d&&v&&r.createElement(r.Fragment,null,r.createElement("path",{d:b,stroke:"red",strokeWidth:1,opacity:.75}),null!==f&&r.createElement("path",{fill:"pink",opacity:.35,d:v.renderCell(f)})),r.createElement("rect",{width:n,height:i,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:w,onMouseMove:x,onMouseLeave:k,onClick:C}))},tJ=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},nJ=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="red",e.fill(),e.restore()};function rJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iJ(Object(n),!0).forEach((function(t){rJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sJ(e,t){if(e){if("string"===typeof e)return aJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aJ(e,t):void 0}}function lJ(e){return function(e){if(Array.isArray(e))return aJ(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||sJ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var cJ=function(e){return(0,r.useMemo)((function(){return function(e){if("function"===typeof e)return e;if(TX()(e))return function(){return e};if(hV()(e)){if(!XA()(e.key))throw new Error("symbolSize is invalid, key should be a string pointing to the property to use to determine node size");if(!Array.isArray(e.values)||2!==e.values.length)throw new Error("symbolSize is invalid, values spec should be an array containing two values, min and max");if(!Array.isArray(e.sizes)||2!==e.sizes.length)throw new Error("symbolSize is invalid, sizes spec should be an array containing two values, min and max");var t=GH().domain([e.values[0],e.values[1]]).range([e.sizes[0],e.sizes[1]]);return function(n){return t(VA()(n,e.key))}}throw new Error("symbolSize is invalid, it should be either a function, a number or an object")}(e)}),[e])},uJ=function(e){var t=e.data,n=e.xScaleSpec,i=e.xFormat,o=e.yScaleSpec,a=e.yFormat,s=e.width,l=e.height,c=e.nodeSize,u=e.colors,d=(0,r.useMemo)((function(){return qW(t,n,o,s,l)}),[t,n,o,s,l]),p=d.series,h=d.xScale,f=d.yScale,m=Mq(i),g=Mq(a),y=(0,r.useMemo)((function(){return function(e){var t=e.series,n=e.formatX,r=e.formatY;return t.reduce((function(e,t){return[].concat(lJ(e),lJ(t.data.map((function(i,o){return{index:e.length+o,id:"".concat(t.id,".").concat(o),x:i.position.x,y:i.position.y,data:oJ(oJ({},i.data),{},{id:"".concat(t.id,".").concat(o),serieId:t.id,formattedX:n(i.data.x),formattedY:r(i.data.y)})}}))))}),[])}({series:p,formatX:m,formatY:g})}),[p,m,g]),v=cJ(c),b=xY(u,"serieId");return{xScale:h,yScale:f,nodes:(0,r.useMemo)((function(){return y.map((function(e){return oJ(oJ({},e),{},{size:v(e.data),style:{color:b(e.data)}})}))}),[y,v,b]),legendData:(0,r.useMemo)((function(){return p.map((function(e){return{id:e.id,label:e.id,color:b({serieId:e.id})}}))}),[p,b])}},dJ=function(e,t){return AY({items:e,annotations:t,getDimensions:function(e,t){var n=e.size+2*t;return{size:n,width:n,height:n}}})},pJ=(0,r.memo)((function(e){var t=e.x,n=e.y,i=e.size,o=e.color,a=e.blendMode,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick;return r.createElement("circle",{cx:t,cy:n,r:i/2,fill:o,style:{mixBlendMode:a},onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onClick:u})})),hJ=(0,r.memo)((function(e){var t=e.node;return r.createElement(EA,{id:t.data.serieId,value:"x: ".concat(t.data.formattedX,", y: ").concat(t.data.formattedY),enableChip:!0,color:t.style.color})})),fJ={data:ye().arrayOf(ye().shape({id:ye().oneOfType([ye().string,ye().number]).isRequired,data:ye().arrayOf(ye().shape({x:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired,y:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired})).isRequired})).isRequired,xScale:XW.isRequired,xFormat:ye().any,yScale:XW.isRequired,yFormat:ye().any,layers:ye().arrayOf(ye().oneOfType([ye().oneOf(["grid","axes","nodes","markers","mesh","legends","annotations"]),ye().func])).isRequired,enableGridX:ye().bool.isRequired,enableGridY:ye().bool.isRequired,axisTop:YZ,axisRight:YZ,axisBottom:YZ,axisLeft:YZ,annotations:ye().arrayOf(EY).isRequired,nodeSize:ye().oneOfType([ye().number,ye().shape({key:ye().string.isRequired,values:ye().arrayOf(ye().number).isRequired,sizes:ye().arrayOf(ye().number).isRequired}),ye().func]).isRequired,renderNode:ye().oneOfType([ye().func,ye().object]).isRequired,colors:kY.isRequired,blendMode:XV.isRequired,isInteractive:ye().bool.isRequired,debugMesh:ye().bool.isRequired,onMouseEnter:ye().func,onMouseMove:ye().func,onMouseLeave:ye().func,onClick:ye().func,tooltip:ye().oneOfType([ye().func,ye().object]).isRequired,markers:ye().arrayOf(ye().shape({axis:ye().oneOf(["x","y"]).isRequired,value:ye().oneOfType([ye().number,ye().string]).isRequired,style:ye().object})),legends:ye().arrayOf(ye().shape(vH)).isRequired},mJ=(oJ(oJ({},fJ),{},{role:ye().string.isRequired,useMesh:ye().bool.isRequired},OV),oJ(oJ({},fJ),{},{pixelRatio:ye().number.isRequired}),{xScale:{type:"linear",min:0,max:"auto"},yScale:{type:"linear",min:0,max:"auto"},enableGridX:!0,enableGridY:!0,axisBottom:{},axisLeft:{},nodeSize:9,renderNode:pJ,colors:{scheme:"nivo"},blendMode:"normal",isInteractive:!0,debugMesh:!1,tooltip:hJ,markers:[],legends:[],annotations:[]}),gJ=oJ(oJ({},mJ),{},{layers:["grid","axes","nodes","markers","mesh","legends","annotations"],role:"img",useMesh:!0,animate:!0,motionStiffness:90,motionDamping:15}),yJ=oJ(oJ({},mJ),{},{layers:["grid","axes","nodes","mesh","legends","annotations"],pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1}),vJ=(ye().shape({id:ye().string.isRequired,x:ye().number.isRequired,y:ye().number.isRequired,size:ye().number.isRequired,data:ye().shape({id:ye().string.isRequired,serieId:ye().oneOfType([ye().string,ye().number]).isRequired,x:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired,formattedX:ye().oneOfType([ye().string,ye().number]).isRequired,y:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired,formattedY:ye().oneOfType([ye().string,ye().number]).isRequired}).isRequired,style:ye().shape({color:ye().string.isRequired}).isRequired}),(0,r.memo)((function(e){var t=e.node,n=e.renderNode,i=e.x,o=e.y,a=e.size,s=e.color,l=e.isInteractive,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,p=e.onClick,h=e.tooltip,f=e.blendMode,m=NA(),g=m.showTooltipFromEvent,y=m.hideTooltip,v=(0,r.useCallback)((function(e){g(r.createElement(h,{node:t}),e),c&&c(t,e)}),[t,h,g,c]),b=(0,r.useCallback)((function(e){g(r.createElement(h,{node:t}),e),u&&u(t,e)}),[t,h,g,u]),_=(0,r.useCallback)((function(e){y(),d&&d(t,e)}),[t,y,d]),w=(0,r.useCallback)((function(e){p&&p(t,e)}),[t,p]);return r.createElement(n,{node:t,x:i,y:o,size:a,color:s,blendMode:f,onMouseEnter:l?v:void 0,onMouseMove:l?b:void 0,onMouseLeave:l?_:void 0,onClick:l&&p?w:void 0})}))),bJ=(0,r.memo)((function(e){var t=e.nodes,n=e.renderNode,i=e.isInteractive,o=e.onMouseEnter,a=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=e.tooltip,u=e.blendMode,d=LV().springConfig;return r.createElement(qL.bg,{styles:t.map((function(e){return{key:e.id,data:e,style:{x:(0,qL.ST)(e.x,d),y:(0,qL.ST)(e.y,d),size:(0,qL.ST)(e.size,d)}}}))},(function(e){return r.createElement(r.Fragment,null,e.map((function(e){var t=e.key,d=e.style,p=e.data;return r.createElement(vJ,{key:t,node:p,renderNode:n,x:d.x,y:d.y,size:d.size,color:p.style.color,isInteractive:i,onMouseEnter:o,onMouseMove:a,onMouseLeave:s,onClick:l,tooltip:c,blendMode:u})})))}))})),_J=function(e){var t=e.nodes,n=e.annotations,i=e.innerWidth,o=e.innerHeight;return dJ(t,n).map((function(e,t){return r.createElement(YY,Object.assign({key:t},e,{containerWidth:i,containerHeight:o}))}))},wJ=(0,r.memo)((function(e){var t=e.nodes,n=e.renderNode,i=e.isInteractive,o=e.onMouseEnter,a=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=e.tooltip,u=e.blendMode;return t.map((function(e){return r.createElement(vJ,{key:e.id,node:e,renderNode:n,x:e.x,y:e.y,size:e.size,color:e.style.color,isInteractive:i,onMouseEnter:o,onMouseMove:a,onMouseLeave:s,onClick:l,tooltip:c,blendMode:u})}))})),xJ=(0,r.memo)((function(e){var t=e.nodes,n=e.width,i=e.height,o=e.onMouseEnter,a=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=e.tooltip,u=e.debug,d=NA(),p=d.showTooltipFromEvent,h=d.hideTooltip,f=(0,r.useCallback)((function(e,t){p(r.createElement(c,{node:e}),t),o&&o(e,t)}),[p,c,o]),m=(0,r.useCallback)((function(e,t){p(r.createElement(c,{node:e}),t),a&&a(e,t)}),[p,c,a]),g=(0,r.useCallback)((function(e,t){h(),s&&s(e,t)}),[h,s]),y=(0,r.useCallback)((function(e,t){l&&l(e,t)}),[l]);return r.createElement(eJ,{nodes:t,width:n,height:i,onMouseEnter:f,onMouseMove:m,onMouseLeave:g,onClick:y,debug:u})})),kJ=function(e){var t=e.data,n=e.xScale,i=e.xFormat,o=e.yScale,a=e.yFormat,s=e.width,l=e.height,c=e.margin,u=e.layers,d=e.colors,p=e.blendMode,h=e.nodeSize,f=e.renderNode,m=e.enableGridX,g=e.enableGridY,y=e.gridXValues,v=e.gridYValues,b=e.axisTop,_=e.axisRight,w=e.axisBottom,x=e.axisLeft,k=e.annotations,C=e.isInteractive,S=e.useMesh,M=e.debugMesh,T=e.onMouseEnter,E=e.onMouseMove,P=e.onMouseLeave,I=e.onClick,O=e.tooltip,L=e.markers,R=e.legends,j=e.role,D=QV(s,l,c),A=D.margin,N=D.innerWidth,F=D.innerHeight,z=D.outerWidth,B=D.outerHeight,U=Iq(),$=LV().animate,V=uJ({data:t,xScaleSpec:n,xFormat:i,yScaleSpec:o,yFormat:a,width:N,height:F,nodeSize:h,colors:d}),q=V.xScale,Z=V.yScale,H=V.nodes,G=V.legendData,W=(0,r.useMemo)((function(){return oJ(oJ({},e),{},{xScale:q,yScale:Z,nodes:H,margin:A,innerWidth:N,innerHeight:F,outerWidth:z,outerHeight:B})}),[q,Z,H,A,N,F,z,B]),Y=$?bJ:wJ,K={grid:r.createElement(eH,{key:"grid",width:N,height:F,xScale:m?q:null,yScale:g?Z:null,xValues:y,yValues:v}),axes:r.createElement(XZ,{key:"axes",xScale:q,yScale:Z,width:N,height:F,top:b,right:_,bottom:w,left:x}),nodes:r.createElement(Y,{key:"nodes",nodes:H,renderNode:f,isInteractive:C,onMouseEnter:T,onMouseMove:E,onMouseLeave:P,onClick:I,tooltip:O,blendMode:p}),markers:r.createElement(nZ,{key:"markers",markers:L,width:N,height:F,xScale:q,yScale:Z}),mesh:null,annotations:r.createElement(_J,{key:"annotations",nodes:H,annotations:k,innerWidth:N,innerHeight:F,animate:$}),legends:R.map((function(e,t){return r.createElement(mH,Object.assign({key:t},e,{containerWidth:N,containerHeight:F,data:G,theme:U}))}))};return!0===C&&!0===S&&(K.mesh=r.createElement(xJ,{key:"mesh",nodes:H,width:N,height:F,onMouseEnter:T,onMouseMove:E,onMouseLeave:P,onClick:I,tooltip:O,debug:M})),r.createElement(Kq,{width:z,height:B,margin:A,theme:U,role:j},u.map((function(e,t){if(void 0!==K[e])return K[e];if("function"===typeof e)return r.createElement(r.Fragment,{key:t},r.createElement(e,W));throw new Error("Unknown layer (".concat(e,")"))})))};kJ.defaultProps=gJ;var CJ=(0,r.memo)(dZ(kJ)),SJ=function(e){return r.createElement(Nq,null,(function(t){var n=t.width,i=t.height;return r.createElement(CJ,Object.assign({width:n,height:i},e))}))};function MJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||sJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TJ=function(e){var t=e.data,n=e.xScale,i=e.xFormat,o=e.yScale,a=e.yFormat,s=e.width,l=e.height,c=e.margin,u=e.pixelRatio,d=e.layers,p=e.colors,h=e.nodeSize,f=e.renderNode,m=e.enableGridX,g=e.gridXValues,y=e.enableGridY,v=e.gridYValues,b=e.axisTop,_=e.axisRight,w=e.axisBottom,x=e.axisLeft,k=e.annotations,C=e.isInteractive,S=e.debugMesh,M=e.onMouseEnter,T=e.onMouseMove,E=e.onMouseLeave,P=e.onClick,I=e.tooltip,O=e.legends,L=(0,r.useRef)(null),R=Iq(),j=MJ((0,r.useState)(null),2),D=j[0],A=j[1],N=QV(s,l,c),F=N.margin,z=N.innerWidth,B=N.innerHeight,U=N.outerWidth,$=N.outerHeight,V=uJ({data:t,xScaleSpec:n,xFormat:i,yScaleSpec:o,yFormat:a,width:z,height:B,nodeSize:h,colors:p}),q=V.xScale,Z=V.yScale,H=V.nodes,G=V.legendData,W=dJ(H,k),Y=XX({points:H,width:z,height:B,debug:S}),K=Y.delaunay,X=Y.voronoi,J=(0,r.useMemo)((function(){return oJ(oJ({},e),{},{xScale:q,yScale:Z,nodes:H,margin:F,innerWidth:z,innerHeight:B,outerWidth:U,outerHeight:$})}),[q,Z,H,F,z,B,U,$]);(0,r.useEffect)((function(){L.current.width=U*u,L.current.height=$*u;var e=L.current.getContext("2d");e.scale(u,u),e.fillStyle=R.background,e.fillRect(0,0,U,$),e.translate(F.left,F.top),d.forEach((function(t){if("grid"===t)e.lineWidth=R.grid.line.strokeWidth,e.strokeStyle=R.grid.line.stroke,m&&nH(e,{width:z,height:B,scale:q,axis:"x",values:g}),y&&nH(e,{width:z,height:B,scale:Z,axis:"y",values:v});else if("annotations"===t)!function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach((function(t){r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),KY(e,t.computed.points),e.stroke(),e.lineCap="butt"),"circle"===t.type&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),"dot"===t.type&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),"rect"===t.type&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),KY(e,t.computed.points),e.stroke(),"circle"===t.type&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),"dot"===t.type&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),"rect"===t.type&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"===typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font="".concat(r.annotations.text.fontSize,"px ").concat(r.annotations.text.fontFamily),e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())}(e,{annotations:W,theme:R});else if("axes"===t)tH(e,{xScale:q,yScale:Z,width:z,height:B,top:b,right:_,bottom:w,left:x,theme:R});else if("nodes"===t)H.forEach((function(t){f(e,t)}));else if("mesh"===t)!0===S&&(tJ(e,X),D&&nJ(e,X,D.index));else if("legends"===t)O.forEach((function(t){yH(e,oJ(oJ({},t),{},{data:G,containerWidth:z,containerHeight:B,theme:R}))}));else{if("function"!==typeof t)throw new Error("Invalid layer: ".concat(t));t(e,J)}}))}),[L,z,B,U,$,F.top,F.left,u,f,d,J,R,q,Z,H,m,y,b,_,w,x,O,G,S,X,D]);var Q=NA(),ee=Q.showTooltipFromEvent,te=Q.hideTooltip,ne=(0,r.useCallback)((function(e){var t=MJ(hZ(L.current,e),2),n=t[0],r=t[1];if(!pZ(F.left,F.top,z,B,n,r))return null;var i=K.find(n-F.left,r-F.top);return H[i]}),[L,F,z,B,K]),re=(0,r.useCallback)((function(e){var t=ne(e);A(t),t?(ee(r.createElement(I,{node:t}),e),D&&D.id!==t.id&&(E&&E(D,e),M&&M(t,e)),D||M&&M(t,e),T&&T(t,e)):(te(),D&&E&&E(D,e))}),[ne,D,A,ee,te,I,M,T,E]),ie=(0,r.useCallback)((function(e){te(),A(null),D&&E&&E(D,e)}),[te,D,A,E]),oe=(0,r.useCallback)((function(e){if(P){var t=ne(e);t&&P(t,e)}}),[ne,P]);return r.createElement("canvas",{ref:L,width:U*u,height:$*u,style:{width:U,height:$,cursor:C?"auto":"normal"},onMouseEnter:C?re:void 0,onMouseMove:C?re:void 0,onMouseLeave:C?ie:void 0,onClick:C?oe:void 0})};TJ.defaultProps=oJ(oJ({},yJ),{},{renderNode:function(e,t){e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fillStyle=t.style.color,e.fill()}});(0,r.memo)(dZ(TJ));const EJ=(0,w.jsxs)(w.Fragment,{children:["This matrix shows comparison of the reduction vs. removal of each practice change intervention. The highlighted scenarios are displayed in color below with all scenarios in the plan shown in gray for perspective. This table is sorted according to the"," ",(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Rank by"})," ","filter at the top of the plan."]}),PJ=()=>{const e=(0,h.C)(OL.Y_),t=(0,h.C)(OL.te),n=(0,h.C)(OL.dp),{cropByCDLId:i}=(0,NS.n)(),o=VL(),{pageIndex:a,pageSize:s,startNumber:l}=(0,h.C)(OL.PN),c=(0,h.C)(S.DC),[u,d]=(0,r.useState)([]),p=[...Array(a*s)].map((()=>"#909090")),f=[...Array(s)].map(((e,t)=>oP._S[t])).filter(er.$K),m=[...Array(Math.abs(t-s-a*s))].map((()=>"#909090")),g=p.concat(f).concat(m);return(0,r.useEffect)((()=>{const t=[];e.map((e=>{var r,a;const s=null!==(r=null===(a=i[Number(e.crop_type)])||void 0===a?void 0:a.label)&&void 0!==r?r:e.crop_type,l=`${QK(e,o)}+++${s}+++${e.rank}`,u=(0,iX.o0)({scenario:e,kpi:"ghg_reductions",units:n,measurement:c,round:!0,precision:uS.$s}),d=(0,iX.o0)({scenario:e,kpi:"soc_removals",units:n,measurement:c,round:!0,precision:uS.$s});return t.push({id:l,data:[{x:d.value,xData:d,y:u.value,yData:u}]})})),d(t)}),[o,i,e,c,n]),(0,w.jsxs)(YK,{max:1560,base:1560,height:500,children:[(0,w.jsx)(zL,{title:"Reduction and removal potential",subtitle:"Intervention scenarios and crops by % reduction and removal",tooltip:EJ,tooltipPlacement:"left"}),(0,w.jsx)("div",{className:"chart-container",children:(0,w.jsx)(SJ,{data:u,margin:{top:16,right:16,bottom:40,left:42},xScale:{type:"linear",min:"auto",max:"auto"},gridXValues:[0],yScale:{type:"linear",min:"auto",max:"auto"},gridYValues:[0],nodeSize:12,useMesh:!1,colors:g,layers:["grid","axes",IJ,"nodes","markers"],tooltip:e=>{var t,n,r;let{node:i}=e;return(0,w.jsxs)(Cd.k,{direction:"column",className:"scatterplot-tooltip",children:[(0,w.jsxs)(Cd.k,{direction:"row",nowrap:!0,justifyContent:"flex-start",alignItems:"center",className:"margin-bottom-8",gap:8,children:[(0,w.jsx)(zi.C,{size:24,color:null!==(t=g[i.index])&&void 0!==t?t:"#60b854",className:"scatterplot-circle",children:i.index+1}),(0,w.jsxs)(Cd.k,{className:"mb-0",direction:"column",children:[(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,noMargin:!0,children:null!==(n=i.data.serieId.split("+++")[0])&&void 0!==n?n:"No data"}),(0,w.jsx)(Rn.x,{elementType:"span",noMargin:!0,children:null!==(r=i.data.serieId.split("+++")[1])&&void 0!==r?r:"No data"})]})]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",children:[(0,w.jsx)(Rn.x,{className:"margin-right-12",children:"GHG reduction"}),(0,w.jsxs)(Rn.x,{children:[i.data.yData.value," ",i.data.yData.unit]})]}),(0,w.jsxs)(Cd.k,{justifyContent:"space-between",children:[(0,w.jsx)(Rn.x,{className:"margin-right-12",children:"SOC removal"}),(0,w.jsxs)(Rn.x,{children:[i.data.xData.value," ",i.data.xData.unit]})]})]})},axisBottom:{tickSize:0,tickPadding:10,tickRotation:0,tickValues:3,legend:uS.S5.soc_removals,legendPosition:"middle",legendOffset:32,format:e=>"pct"===n?`${e} %`:e},axisLeft:{tickSize:0,tickPadding:20,tickRotation:-90,tickValues:3,legend:uS.S5.ghg_reductions,legendPosition:"middle",legendOffset:-36,format:e=>"pct"===n?`${e} %`:e},renderNode:e=>{let{node:t,x:n,y:r,size:i,color:o,onMouseEnter:a,onMouseMove:s,onMouseLeave:c}=e;const u=oP._S.indexOf(o);return(0,w.jsxs)("g",{transform:`translate(${n},${r})`,children:[(0,w.jsx)("circle",{r:u>=0?i:i-4,fill:g[t.index],onMouseEnter:a,onMouseMove:s,onMouseLeave:c,opacity:u>=0?1:.5}),(0,w.jsx)("text",{textAnchor:"middle",alignmentBaseline:"middle",onMouseEnter:a,onMouseMove:s,onMouseLeave:c,children:u>=0?l+u:""})]})}})})]})},IJ=e=>{let{innerWidth:t,innerHeight:n,xScale:r,yScale:i}=e;const[o,a]=r.domain(),[s,l]=i.domain(),c=(0-o)*(t/(a-o)),u=n-(0-s)*(n/(l-s)),d=t-c,p=n-u,h=c,f=u,m=d>=0&&p>=0,g=h>=0&&f>=0;return(0,w.jsxs)("g",{children:[(0,w.jsxs)("defs",{children:[(0,w.jsxs)("linearGradient",{id:"green-grad",x1:"0.15",y1:"0.15",x2:"0.85",y2:"0.85",children:[(0,w.jsx)("stop",{offset:"0%",stopColor:"rgb(255, 255, 255, .2)"}),(0,w.jsx)("stop",{offset:"100%",stopColor:"rgb(95, 184, 84, .4)"})]}),(0,w.jsxs)("linearGradient",{id:"red-grad",x1:"0.15",y1:"0.15",x2:"0.85",y2:"0.85",children:[(0,w.jsx)("stop",{offset:"0%",stopColor:"rgb(227, 102, 125, .4)"}),(0,w.jsx)("stop",{offset:"100%",stopColor:"rgb(255, 255, 255, .2)"})]})]}),m&&(0,w.jsx)("rect",{x:c,y:u,width:d,height:p,fill:"url(#green-grad)"}),g&&(0,w.jsx)("rect",{x:0,y:0,width:h,height:f,fill:"url(#red-grad)"})]})},OJ=()=>{const e=(0,h.T)(),{planId:t}=(0,wi.tZ)(),n=(0,h.C)((e=>(0,OL.Q1)(e,t))),i=UE(),o=(0,r.useMemo)((()=>{const e=new Set;return n.forEach((t=>{const n=i.find((e=>String(e.value)===String(t.crop_type)));n&&e.add(n)})),Array.from(e)}),[n,i]),a=(0,h.C)(OL.Kb);return(0,w.jsx)(Cd.k,{alignItems:"center",nowrap:!0,children:(0,w.jsx)(tP,{cropTypeOptions:o,onChange:t=>{(0,c.dC)((()=>{e((0,yT.cY)(t)),e((0,yT.w5)(0))}))},selectedCropIds:a,withAdmin:!0})})},LJ={width:"max-content",paddingBottom:0,paddingTop:"5px"},RJ=()=>{const e=(0,h.T)(),t=(0,h.C)(OL.YP),n=(0,h.C)(OL.Rk),{isRegrowAdmin:i}=dS(),o=(0,r.useMemo)((()=>{const e=Object.entries(t).map((e=>{const[t,n]=e;return{label:i?`${n} (#${t})`:n,value:t}}));return(0,lS.Rt)(e,"label")}),[t,i]),a=n.length===(null===o||void 0===o?void 0:o.length);return(0,w.jsx)(Cd.k,{alignItems:"center",nowrap:!0,children:(0,w.jsx)(HE.b,{className:"intervention-filter-menu",allowSelectAll:!0,allowSearch:!0,allLabel:"Select all interventions",selectedLabel:"interventions",options:o,selected:n.map(String),disabled:!1,allSelected:a,onSelect:n=>{"boolean"!==typeof n?(0,c.dC)((()=>{e((0,yT.oi)(Number(n.value))),e((0,yT.w5)(0))})):(0,c.dC)((()=>{e((0,yT.AI)(n?(0,ii.Os)(t).map(Number):[])),e((0,yT.w5)(0))}))},onClear:()=>{e((0,yT.AI)([]))},style:LJ})})};var jJ=n(33419);function DJ(e){let{id:t,name:n,className:r,controlClassName:i="nowrap",controls:o,onChange:a,type:l,value:c,inline:u}=e;return(0,w.jsx)(On.rT,{id:t,name:n,className:s()(r,"fluro-selection-control-group",{inline:u}),controlClassName:i,controls:o,onChange:(e,t)=>null===a||void 0===a?void 0:a(e,t),type:l,value:c})}const AJ=()=>{const[e,t]=(0,r.useState)(!1),n=(0,h.T)(),i=(0,h.C)(OL.gy),o=(0,h.C)(OL.Ow);return(0,w.jsx)(jJ.l,{expand:e,className:"scenario-order-chip-dropdown",label:uS.S5[i],setExpand:t,children:(0,w.jsx)(DJ,{id:"operation-status-radio",name:"operationStatus",type:"radio",value:i,onChange:e=>{return r=e,t(!1),void("soc_removals"!==r?(0,c.dC)((()=>{n((0,yT.tt)(r)),n((0,yT.pe)("desc")),n((0,yT.w5)(0))})):(0,c.dC)((()=>{n((0,yT.tt)("soc_removals")),n((0,yT.pe)("asc")),n((0,yT.w5)(0))})));var r},controls:"abatement_potential"===o?uS.ob:uS.WY})})},NJ=(0,Z.ZP)(gh.uM)((e=>{let{background:t}=e;return Z.iv`
    font-weight: 500 !important;
    background-color: ${t} !important;
    color: ${e=>{let{theme:n}=e;return((e,t,n)=>{const{r:r,g:i,b:o}=(0,Y.aV)(e);return(.299*r+.587*i+.114*o)/255>.5?n:t})(t,n.color.text.mainInverted,n.color.text.main)}} !important;
  `})),FJ=e=>{let{scenario:t,kpi:n,highest:r,lowest:i,lowValueIsBad:o}=e;const a=oX({highest:r,lowest:i}),s=(0,h.C)(OL.dp),l=(0,h.C)(S.DC),c=(0,iX.o0)({scenario:t,kpi:n,units:s,measurement:l,round:!0,precision:uS.$s}),u=a({value:c.value,lowValueIsBad:o});return(0,w.jsxs)(NJ,{type:"number",background:u,children:[c.value," ",c.unit]})},zJ=()=>{const e=(0,h.C)(OL.XC),t=(0,h.C)(OL.dp),n=(0,h.C)(S.DC),{isRegrowAdmin:i}=dS(),{cropByCDLId:o}=(0,NS.n)(),a=VL(),s=(0,h.C)(OL.YP),l=(0,h.C)(OL.Ow),c=(0,r.useMemo)((()=>(0,mS.O)(n,!1)),[n]),u=(0,h.C)(OL.Y_),{highest:d,lowest:p}=r.useMemo((()=>(0,iX.tu)({scenarios:u,units:t,measurement:n})),[u,t,n]),{startNumber:f}=(0,h.C)(OL.PN);return(0,w.jsxs)(BJ,{children:[(0,w.jsx)(zL,{title:"Top ranked scenarios",subtitle:`Annual per ${(0,mS.O)(n,!1)} average change relative to the baseline`,tooltip:(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(Rn.x,{variant:"small",children:[`The statistics shown below are all annual per ${(0,mS.O)(n,!1)} average change per the practice\n              intervention changes relative to the baseline. The practice intervention change is the\n              counter factual scenario while the baseline scenario is the factual as determined by\n              Regrow's monitor and measure methods. The coloring of each cell is determined by the\n              scenario bar chart range shown in the section below. This table is sorted according to\n              the `,(0,w.jsx)(Rn.x,{variant:"small",bold:!0,children:"Rank by"})," ","filter at the top of the plan."]})})}),e.length>0&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(Mr.dU,{elevated:!1,children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{type:"date",children:"#"}),(0,w.jsx)(Mr.uM,{children:"Geography"}),(0,w.jsx)(Mr.uM,{children:"Crop"}),(0,w.jsx)(Mr.uM,{children:"Practice interventions"}),"program_plan"===l&&(0,w.jsx)(Mr.uM,{type:"number",children:"Baseline"}),(0,w.jsx)(Mr.uM,{type:"number",children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-start",children:[uS.S5.ghg_reductions,(0,w.jsx)(Rn.x,{variant:"small-thin",children:`metric tons / ${c}`})]})}),(0,w.jsx)(Mr.uM,{type:"number",children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-start",children:[uS.S5.soc_removals,(0,w.jsx)(Rn.x,{variant:"small-thin",children:`metric tons / ${c}`})]})}),(0,w.jsx)(Mr.uM,{type:"number",children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-start",children:[uS.S5.net_ghg,(0,w.jsx)(Rn.x,{variant:"small-thin",children:`metric tons / ${c}`})]})}),"abatement_potential"===l&&(0,w.jsx)(Mr.uM,{type:"number",children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-start",children:[uS.S5.ef_reductions,(0,w.jsx)(Rn.x,{variant:"small-thin",children:"kg CO2 eq / kg yield"})]})})]})}),(0,w.jsx)(Mr.By,{children:e.map(((e,t)=>{var n,r;return(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{type:"date",children:(0,w.jsx)(zi.C,{color:null!==(n=oP._S[t])&&void 0!==n?n:"#60b854",children:f+t})}),(0,w.jsxs)(Mr.uM,{children:[QK(e,a),i&&(0,w.jsxs)(Rn.x,{inline:!0,className:"margin-left-8",tertiary:!0,variant:"small-thin",children:["(",eX(e,i),")"]})]}),(0,w.jsxs)(Mr.uM,{children:[null===(r=o[e.crop_type])||void 0===r?void 0:r.label,i&&(0,w.jsxs)(Rn.x,{inline:!0,className:"margin-left-8",tertiary:!0,variant:"small-thin",children:["(#",e.crop_type,")"]})]}),(0,w.jsxs)(Mr.uM,{children:[s[e.scenario_id],i&&(0,w.jsxs)(Rn.x,{inline:!0,className:"margin-left-8",tertiary:!0,variant:"small-thin",children:["(#",e.scenario_id,")"]})]}),(0,w.jsx)(FJ,{scenario:e,kpi:"ghg_reductions",highest:d,lowest:p}),(0,w.jsx)(FJ,{scenario:e,kpi:"soc_removals",highest:d,lowest:p,lowValueIsBad:!0}),(0,w.jsx)(FJ,{scenario:e,kpi:"net_ghg",highest:d,lowest:p}),(0,w.jsx)(FJ,{scenario:e,kpi:"ef_reductions",highest:d,lowest:p})]},e.rank)}))})]})})]})},BJ=(0,Z.ZP)(UL)`
  .md-table-column:first-child {
    padding-left: 12px;
    padding-right: 0;
  }
`,UJ={width:"max-content",paddingBottom:0,paddingTop:"5px"},$J=()=>{const e=(0,h.T)(),t=VL(),n=(0,h.C)(OL.x4),i=(0,r.useMemo)((()=>Object.keys(t).length===n.length),[t,n]),o=(0,r.useMemo)((()=>{const e=Object.entries(t).map((e=>{const[t,n]=e;return{label:n,value:t}}));return(0,lS.Rt)(e,"label")}),[t]);return(0,w.jsx)(Cd.k,{alignItems:"center",nowrap:!0,children:(0,w.jsx)(HE.b,{className:"sourcing-region-filter-menu",allowSelectAll:!0,allowSearch:!0,allLabel:"Select all sourcing regions",selectedLabel:"sourcing regions",options:o,selected:n.map(String),disabled:!1,allSelected:i,onSelect:n=>{"boolean"!==typeof n?(0,c.dC)((()=>{e((0,yT.U)(n.value)),e((0,yT.w5)(0))})):(0,c.dC)((()=>{e((0,yT.VC)(n?Object.keys(t):[])),e((0,yT.w5)(0))}))},onClear:()=>{e((0,yT.VC)([]))},style:UJ})})},VJ=()=>{const e=(0,h.T)(),t=(0,h.C)(OL.dp);return(0,w.jsx)(On.rT,{id:"dashboard-unit-type-select",name:"radio",type:"radio",className:"si-toggle-group si-toggle-group--inline select-units",inline:!0,value:t,onChange:t=>e((0,yT.UE)(t)),controls:[{label:"Percentage (%)",value:"pct"},{label:"Number (#)",value:"num"}]})},qJ=()=>{const e=(0,h.T)(),{programId:t,planId:n}=(0,wi.tZ)(),{isKPIAvailable:i}=kE(),o=(0,h.C)((e=>(0,OL.ec)(e,n))),{pageIndex:a,pageSize:s}=(0,h.C)(OL.PN),l=(0,h.C)(OL.te),u=(0,h.C)(OL.eP),p=(0,h.C)(OL._K),f=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_PLANNING_REPORT_SCENARIOS_AP]))),{isRegrowAdmin:m}=dS(),g=a*s+1,y=Math.min((a+1)*s,l);(0,r.useEffect)((()=>{((0,er.kK)(o)||(null===o||void 0===o?void 0:o.id)!==n||!f||(0,er.kK)(p[n]))&&e((0,HC.$8)({programId:t,reportId:n}))}),[e,t,n,o,f,p]);const v=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_PLANNING_REPORT_SCENARIOS_AP])));return!v&&f&&(0,er.$K)(o)&&o.id===n&&(0,er.$K)(p[n])?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(ZJ,{children:[(0,w.jsxs)(ni.k,{direction:"column",children:[(0,w.jsx)(HJ,{}),(0,w.jsxs)(ni.k,{alignItems:"center",children:[(0,w.jsx)(d.ZT,{component:"h1",variant:"h2",children:"Abatement potential"}),(0,w.jsxs)(Rn.x,{className:"mb-0 margin-left-12",variant:"h1",children:[null===o||void 0===o?void 0:o.name," ",m?(0,w.jsxs)(Rn.x,{className:"margin-left-8",tertiary:!0,variant:"small-thin",children:["(#",null===o||void 0===o?void 0:o.id,")"]}):" "]})]}),(0,w.jsx)(Rn.x,{children:"Compare top scenarios between geographies and crops and identify opportunities with the greatest impact on GHG reductions, SOC removals and emission factors."})]}),(0,w.jsxs)(ni.k,{direction:"row",nowrap:!0,alignItems:"center",children:[(0,w.jsxs)(ni.k,{direction:"row",nowrap:!0,className:"margin-right-24",children:[(0,w.jsx)(On.xu,{style:{fontSize:"16px"},inherit:!0,children:"calendar_today"}),(0,w.jsx)(Rn.x,{bold:!0,nowrap:!0,className:"margin-left-8 margin-right-8",children:"Program years:"}),(0,w.jsxs)(Rn.x,{nowrap:!0,children:[null===o||void 0===o?void 0:o.start_year," - ",null===o||void 0===o?void 0:o.end_year]})]}),(0,w.jsxs)(ni.k,{direction:"row",nowrap:!0,className:"margin-right-24",children:[(0,w.jsx)(On.xu,{style:{fontSize:"16px"},inherit:!0,children:"science"}),(0,w.jsx)(Rn.x,{bold:!0,nowrap:!0,className:"margin-left-8 margin-right-8",children:"Scientific model:"}),(0,w.jsx)(Rn.x,{nowrap:!0,children:null!==o&&void 0!==o&&o.model?uS.Cg[null===o||void 0===o?void 0:o.model]:""})]})]})]},n),(0,w.jsxs)(WE,{position:"top",children:[(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"baseline",mb:3,children:[(0,w.jsxs)(d.xu,{display:"flex",gap:3,alignItems:"center",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",children:"Rank by:"}),(0,w.jsx)(AJ,{}),(0,w.jsx)(d.xu,{children:(0,w.jsx)(d.t8,{label:"Only show top scenario for each geography and crop",control:(0,w.jsx)(d.XZ,{checked:u,onChange:()=>(0,c.dC)((()=>{e((0,yT.cC)(!u)),e((0,yT.w5)(0))}))})})})]}),(0,w.jsxs)(d.xu,{display:"flex",gap:3,alignItems:"center",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",children:"Data display:"}),(0,w.jsx)(VJ,{})]})]}),(0,w.jsxs)(ni.k,{direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",children:[(0,w.jsx)(d.ZT,{fontWeight:"bold",className:"mb-0 margin-right-8",children:"Filter by:"}),(0,w.jsxs)(ni.k,{gap:12,children:[(0,w.jsx)($J,{}),(0,w.jsx)(OJ,{}),(0,w.jsx)(RJ,{})]})]}),(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",gap:"12px",children:[(0,w.jsxs)(Rn.x,{bold:!0,className:"mb-0",children:["Showing ",g," - ",y," of ",l,":"]}),(0,w.jsxs)(kd.w,{primary:!0,raised:!0,disabled:0===a,onClick:()=>{e((0,yT.w5)(a-1))},iconBefore:!0,iconEl:(0,w.jsx)(On.xu,{children:"keyboard_arrow_left"}),children:["Previous ",s]}),(0,w.jsxs)(kd.w,{primary:!0,raised:!0,disabled:y>=l,onClick:()=>{e((0,yT.w5)(a+1))},iconBefore:!1,iconEl:(0,w.jsx)(On.xu,{children:"keyboard_arrow_right"}),children:["Next ",s]})]})]})]}),(0,w.jsxs)(eS,{children:[(0,w.jsx)(zJ,{}),(0,w.jsx)("div",{children:(0,w.jsx)(pX,{})}),(0,w.jsx)("div",{children:["ef_book_values",...uS.y2].every(i)&&(0,w.jsx)(d.xu,{width:"100%",className:"ef-stacked-chart",children:(0,w.jsx)(SX,{})})}),(0,w.jsx)("div",{children:(0,w.jsx)(PJ,{})})]})]}):(0,w.jsx)("div",{children:(0,w.jsx)(On.D8,{className:"progress",id:"si-plans-table","aria-busy":"true"})})},ZJ=Z.ZP.div`
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;

  margin: 24px 0;
  padding: 0 20px;
`,HJ=(0,Z.ZP)(LL)`
  margin-bottom: 20px;
`;var GJ=n(26618),WJ=n.n(GJ),YJ=n(44025),KJ=n(64095);const XJ=e=>{let{awaitingUpdate:t,totalArea:n,totalOutcomes:i,priceOfCarbon:o}=e;const a=r.useMemo((()=>e=>{let{titleText:t,content:n}=e;return(0,w.jsx)(KE,{children:(0,w.jsxs)(JJ,{children:[(0,w.jsx)(BL,{titleText:t}),(0,w.jsx)(Rn.x,{noMargin:!0,variant:"h1",elementType:"span",bold:!0,children:n})]})},t)}),[]);return(0,w.jsxs)("div",{children:[(0,w.jsx)(Rn.x,{variant:"h2",bold:!0,children:"Estimated program outcomes"}),(0,w.jsxs)(QJ,{children:[(0,w.jsx)(a,{titleText:"Total additional area",content:`${t?"--":n.areaValueString} ${n.measurementSuffix}`}),(0,w.jsx)(a,{titleText:"Cumulative reductions",content:`${t?"--":(0,KJ.pl)((0,YJ.Sq)(i.estReductionsKgCO2e))} tonnes CO2e`}),(0,w.jsx)(a,{titleText:"Cumulative removals",content:`${t?"--":(0,KJ.pl)((0,YJ.Sq)(i.estRemovalsKgCO2e))} tonnes CO2e`}),(0,w.jsx)(a,{titleText:"Estimated credits",content:`$${t?"--":(0,KJ.pl)((0,YJ.du)(i.estNetImprovementKgCO2e,o))}`})]})]})},JJ=(0,Z.ZP)(UL)`
  flex-grow: 1;
`,QJ=(0,Z.ZP)(YE)`
  gap: 12px;
`,eQ=e=>{let{currentStep:t,setCurrentStep:n}=e;const i=(0,Z.Fg)(),o=r.useMemo((()=>[{label:"Program details",icon:(0,w.jsx)(d.JO,{type:"settings",color:i.colorPalette.fs_main.green_600}),disabled:!1,value:0},{label:"Scenario selection",icon:(0,w.jsx)(d.JO,{type:"check-mark-circled",color:i.colorPalette.fs_main.green_600}),disabled:!1,value:1},{label:"Practice adoption",icon:(0,w.jsx)(td.mT,{fill:i.colorPalette.fs_main.green_600}),disabled:!1,value:2},{label:"Launch MRV program (Coming soon)",icon:(0,w.jsx)(td.tt,{fill:i.colorPalette.fs_main.green_600}),disabled:!0,value:3}]),[i.colorPalette.fs_main.green_600]);return(0,w.jsx)(tQ,{children:(0,w.jsx)(qT,{currentStep:t,stepItems:o,onUpdateStep:n})})},tQ=Z.ZP.div`
  margin-bottom: 16px;
`;var nQ=n(44791),rQ=n.n(nQ);const iQ={additional_m2:0,baseline:{soc_kg_per_m2:0,scaled_soc_kg_per_m2:0,ghg_kg_per_m2:0},simulation:{soc_kg_per_m2:0,scaled_soc_kg_per_m2:0,ghg_kg_per_m2:0}};var oQ=n(76943);oQ.kL.register(...oQ.zX);const aQ=oQ.kL,sQ=e=>{let{title:t,data:n,options:i={},plugins:o=[]}=e;const[a,s]=r.useState(),l=r.useRef(null),{plugins:c,...u}=i;return r.useEffect((()=>{if((0,er.$K)(l.current)&&!(0,er.$K)(a)){const e=new aQ(l.current,{type:"line",data:n,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top",align:"end",labels:{usePointStyle:!0}},title:(0,er.$K)(t)?{display:!0,text:t}:void 0,...null!==c&&void 0!==c?c:{}},...null!==u&&void 0!==u?u:{}},plugins:[...o]});s(e)}return()=>null===a||void 0===a?void 0:a.destroy()}),[]),r.useEffect((()=>{(0,er.$K)(a)&&(a.data=n,a.update())}),[n,a]),(0,w.jsx)(uQ,{children:(0,w.jsx)(cQ,{children:(0,w.jsx)(lQ,{ref:l})})})},lQ=Z.ZP.canvas`
  height: 100% !important;
  width: 100% !important;
`,cQ=Z.ZP.div`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
`,uQ=Z.ZP.div`
  position: relative;
  height: 100%;
  width: 100%;
`;var dQ=n(18218);const pQ=e=>{let{practiceAdoptionDataByYear:t}=e;const n=(0,Z.Fg)(),[i,o]=r.useMemo((()=>{const{baselineCumulativeKgCO2e:e,simulatedCumulativeKgCO2e:n}=(0,dQ.cn)(t);return[e.map((e=>(0,YJ.Sq)(e.cumulativeNet))),n.map((e=>(0,YJ.Sq)(e.cumulativeNet)))]}),[t]),a={fill:!1,pointRadius:5,pointHoverRadius:6,pointBackgroundColor:"white",pointHoverBackgroundColor:"white",borderWidth:1};return(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Estimated annual outcomes based on practice adoption"}),(0,w.jsx)(Rn.x,{children:"Change the practice adoption percentage to better reflect how practice interventions will be implemented over the duration of the program"}),(0,w.jsx)(hQ,{children:(0,w.jsx)(sQ,{data:{labels:t.map((e=>e.year)),datasets:[{label:"Program cumulative emissions",data:o,borderColor:n.categoryColor.olive.chart,backgroundColor:n.categoryColor.olive.chart,...a},{label:"Baseline cumulative emissions",data:i,borderColor:n.categoryColor.orange.chart,backgroundColor:n.categoryColor.orange.chart,...a}]},options:{animation:{duration:0},scales:{y:{ticks:{callback:e=>`${(0,KJ.pl)(Number(e))} t CO2e`}}},plugins:{legend:{position:"top",align:"end",labels:{usePointStyle:!0,boxWidth:8,boxHeight:8,generateLabels:e=>{var t,n;return(null!==(t=null===(n=e.config.data)||void 0===n?void 0:n.datasets)&&void 0!==t?t:[]).map((e=>{var t;return{text:null!==(t=e.label)&&void 0!==t?t:"",fillStyle:"white",strokeStyle:e.borderColor,lineWidth:1}}))}}}}}})})]})},hQ=Z.ZP.div`
  height: 300px;
  width: 100%;
`,fQ=()=>(0,w.jsx)(nr.U8,{appearance:"info",color:"info",title:"Ex ante estimates only",children:(0,w.jsx)(Rn.x,{children:"The information provided in this plan is a estimate only. Although the information provided is a predictive estimate of results, it will not match the end results of an MRV program. This plan does not guarantee the estimated results. The data provided is based upon estimated intervention adoption and field boundaries that have not been confirmed by enrolling producers."})}),mQ=(0,Z.ZP)(gh.uM).attrs({type:"number"})``,gQ=e=>{let{headerText:t,subText:n}=e;return(0,w.jsxs)(Cd.k,{direction:"column",children:[(0,w.jsx)(Rn.x,{bold:!0,noMargin:!0,children:t}),(0,er.$K)(n)&&(0,w.jsx)(Rn.x,{noMargin:!0,variant:"small-thin",children:n})]})},yQ=e=>{let{timeframe:t,data:n,priceOfCarbon:r}=e;return(0,w.jsxs)(Mr.Yu,{"data-test-id":"avg"===t?"yearly-average-row":"lifetime-row",children:[(0,w.jsx)(Mr.uM,{"data-test-id":"timeframe",children:"avg"===t?"Yearly average":"Program Lifetime"}),(0,w.jsx)(mQ,{"data-test-id":"baseline",children:(0,YJ.zR)(n.baselineKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"reductions",children:(0,YJ.zR)(n.estReductionsKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"removals",children:(0,YJ.zR)(n.estRemovalsKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"net",children:(0,YJ.zR)(n.estNetImprovementKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"credits",children:(0,YJ.Hf)(n.estNetImprovementKgCO2e,r)})]})},vQ=e=>{let{priceOfCarbon:t,yearlyAverageData:n,lifetimeData:r}=e;return(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Estimated program lifetime outcomes and annual averages"}),(0,w.jsxs)(Mr.dU,{"data-test-id":"practice-adoption-aggregates-table",elevated:!1,children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{"data-test-id":"timeframe-header-column",children:(0,w.jsx)(gQ,{headerText:"Timeframe"})}),(0,w.jsx)(mQ,{"data-test-id":"baseline-header-column",children:(0,w.jsx)(gQ,{headerText:"Baseline",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"reductions-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated reduction",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"removals-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated removal",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"net-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated net",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{children:(0,w.jsx)(gQ,{headerText:"Estimated Credits"})})]})}),(0,w.jsxs)(Mr.By,{children:[(0,w.jsx)(yQ,{priceOfCarbon:t,timeframe:"avg",data:n}),(0,w.jsx)(yQ,{priceOfCarbon:t,timeframe:"lifetime",data:r})]})]})]})},bQ=e=>{let{priceOfCarbon:t,practiceAdoptionDataByYear:n,adoptionRateByYear:i,setPercentAdoptionByYear:o}=e;const a=r.useMemo((()=>[QT(0),eE(100)]),[]);return(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Estimated annual outcomes based on practice adoption"}),(0,w.jsx)(Rn.x,{children:"Change the practice adoption percentage to better reflect how practice interventions will be implemented over the duration of the program"}),(0,w.jsxs)(Mr.dU,{"data-test-id":"practice-adoption-by-year-table",elevated:!1,children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{"data-test-id":"year-header-column",children:(0,w.jsx)(gQ,{headerText:"Year"})}),(0,w.jsx)(Mr.uM,{"data-test-id":"rate-header-column",children:(0,w.jsx)(gQ,{headerText:"Practice Adoption"})}),(0,w.jsx)(mQ,{"data-test-id":"baseline-header-column",children:(0,w.jsx)(gQ,{headerText:"Baseline",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"reduction-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated reduction",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"removal-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated removal",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"net-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated net",subText:"Metric tons CO2e"})}),(0,w.jsx)(mQ,{"data-test-id":"credits-header-column",children:(0,w.jsx)(gQ,{headerText:"Estimated Credits"})})]})}),(0,w.jsx)(Mr.By,{children:n.map((e=>{return(0,w.jsxs)(Mr.Yu,{"data-test-id":`table-row-${e.year}`,children:[(0,w.jsx)(Mr.uM,{"data-test-id":"year",children:e.year}),(0,w.jsx)(Mr.uM,{"data-test-id":"rate-input",children:(0,w.jsxs)(_Q,{children:[(0,w.jsx)(wP,{required:!0,InputProps:{min:0,max:100},value:e.percentage,setValue:(n=e.year,e=>{const t=i.findIndex((e=>{let{year:t}=e;return t===n}));if(-1!==t){const r=(0,LS.Wl)(i)(t,{year:n,percentage:e});o(r)}}),customPredicates:a},e.year),(0,w.jsx)(wQ,{children:"%"})]})}),(0,w.jsx)(mQ,{"data-test-id":"baseline",children:(0,YJ.zR)(e.baselineKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"reductions",children:(0,YJ.zR)(e.estReductionsKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"removals",children:(0,YJ.zR)(e.estRemovalsKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"net",children:(0,YJ.zR)(e.estNetImprovementKgCO2e)}),(0,w.jsx)(mQ,{"data-test-id":"credits",children:(0,YJ.Hf)(e.estNetImprovementKgCO2e,t)})]},e.year);var n}))})]})]})},_Q=Z.ZP.div`
  display: flex;
  padding-top: 1.2em;
  gap: 8px;
`,wQ=Z.ZP.span`
  margin-top: 15px;
`,xQ=e=>{let{priceOfCarbon:t,setPriceOfCarbon:n,averageAnnualData:r,totalData:i,adoptionRateByYear:o,setAdoptionRateByYear:a,practiceAdoptionDataByYear:s}=e;return(0,w.jsxs)(Cd.k,{direction:"column",gap:12,children:[(0,w.jsxs)(Cd.k,{justifyContent:"space-between",gap:16,alignItems:"flex-end",children:[(0,w.jsxs)(Cd.k,{direction:"column",children:[(0,w.jsx)(Rn.x,{variant:"h2",bold:!0,children:"Practice adoption and program outcomes by year"}),(0,w.jsx)(Rn.x,{children:"Estimated outcomes based on successful practice adoption per the specified program duration"})]}),(0,w.jsxs)(Cd.k,{gap:8,alignItems:"flex-start",style:{marginBottom:"-12px"},children:[(0,w.jsx)(Rn.x,{elementType:"span",style:{margin:"15px 0 0 0"},children:"Price of carbon per tonne (USD): $"}),(0,w.jsx)(kQ,{required:!0,value:t,setValue:n,InputProps:{min:1},customPredicates:[QT(1)]})]})]}),(0,w.jsx)(vQ,{priceOfCarbon:t,yearlyAverageData:r,lifetimeData:i}),(0,w.jsx)(bQ,{adoptionRateByYear:o,setPercentAdoptionByYear:a,priceOfCarbon:t,practiceAdoptionDataByYear:s}),(0,w.jsx)(pQ,{practiceAdoptionDataByYear:s}),(0,w.jsx)(fQ,{})]})},kQ=(0,Z.ZP)(wP)``;var CQ=n(3911);const SQ=e=>{let{cropType:t}=e;return(0,w.jsxs)(Cd.k,{gap:4,alignItems:"center",children:[(0,w.jsx)(CQ.f,{cropType:t.value,className:"crop-type-select__avatar"}),t.label]})},MQ=e=>{let{region:t}=e;const n=(0,h.C)(S.DC),{cropByCDLId:i}=(0,NS.n)(),{getSubsectionById:o,getSupplyShedById:a}=zS(),[s="",l]=r.useMemo((()=>{if("supply_shed"===t.unit_type){const e=a(t.unit_id);return[null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.total_field_area_ha]}{const e=o(t.unit_id);return[null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.field_area_ha]}}),[o,a,t.unit_id,t.unit_type]);return(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:s}),(0,w.jsx)(Cd.k,{gap:16,children:fE()(t.commodities.map((e=>i[e.id]))).map((e=>(0,w.jsx)(SQ,{cropType:e},e.id)))}),(0,w.jsx)(Rn.x,{variant:"h2",bold:!0,children:(0,mS.Kr)({area:l,measurement:n})})]},`${t.unit_type}-${t.unit_id}`)},TQ=e=>{var t,n;let{plan:r}=e;return(0,w.jsxs)(PQ,{children:[(0,w.jsxs)(IQ,{children:[(0,w.jsx)(EQ,{headerText:"1. Program parameters"}),(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Program duration",startIcon:(0,w.jsx)(d.JO,{type:"calendar"})}),(0,w.jsx)(Rn.x,{bold:!0,variant:"h2",children:`${r.start_year}-${r.end_year}`})]}),(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Measurement method",startIcon:(0,w.jsx)(On.xu,{children:"science"})}),(0,w.jsx)(Rn.x,{bold:!0,variant:"h2",children:null!==(t=uS.Cg[r.model])&&void 0!==t?t:r.model})]}),(0,w.jsxs)(UL,{children:[(0,w.jsx)(BL,{titleText:"Protocol",startIcon:(0,w.jsx)(On.xu,{children:"list_alt"})}),(0,w.jsx)(Rn.x,{bold:!0,variant:"h2",children:null!==(n=uS.lj[r.protocol])&&void 0!==n?n:r.protocol})]})]}),(0,w.jsxs)(IQ,{children:[(0,w.jsx)(EQ,{headerText:"2. Program regions and crops"}),r.sourcing_regions.map((e=>(0,w.jsx)(MQ,{region:e},e.unit_id)))]}),(0,w.jsxs)(IQ,{children:[(0,w.jsx)(EQ,{headerText:"3. Practice interventions"}),r.intervention_scenarios.map(((e,t)=>(0,w.jsx)(UL,{children:e.map((e=>{let{intervention_type:t,percentage:n}=e;const{label:r,interventionOption:i}=uS.hM[t];return(0,w.jsxs)(Cd.k,{gap:8,alignItems:"center",children:[pP[i]," ",r(n)]},t)}))},t)))]})]})},EQ=e=>{let{headerText:t}=e;return(0,w.jsxs)(Cd.k,{gap:8,alignItems:"center",children:[(0,w.jsx)(Rn.x,{bold:!0,variant:"h2",noMargin:!0,children:t}),(0,w.jsx)(On.xu,{children:"lock"})]})},PQ=(0,Z.ZP)(YE)`
  flex-wrap: wrap;
`,IQ=(0,Z.ZP)(KE)`
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  min-width: 200px;
`;var OQ=n(40207),LQ=n.n(OQ),RQ=n(16697),jQ=n.n(RQ),DQ=n(65423);const AQ=e=>{let{scenario:t,kpi:n,highest:r,lowest:i}=e;const o=(0,Z.Fg)(),a=(0,h.C)(S.DC),s=oX({highest:r,lowest:i}),l=(0,DQ.Wk)({scenario:t,kpi:n}),c=(0,DQ.F7)({value:l,additional_m2:t.additionality.additional_m2,measurement:a}),u=t.additionality.additional_m2>0?s({value:l,lowValueIsBad:!0}):o.colorPalette.fs_main.gray_300;return(0,w.jsxs)(NJ,{type:"number",background:u,children:[(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:(0,mS._H)(Math.round(l))}),(0,w.jsx)(Rn.x,{noMargin:!0,variant:"small",children:`${c.toPrecision(3)} / ${a}`})]})},NQ=e=>{let{pinnedScenarios:t,scenarios:n,onAddScenario:i,onRemoveScenario:o}=e;const a=(0,h.C)(S.DC),s=VL(),l=(0,h.C)(OL.YP),{cropByCDLId:c}=(0,NS.n)(),u=(0,r.useMemo)((()=>t.concat(n)),[t,n]),{highest:p,lowest:f}=r.useMemo((()=>{const e=u.flatMap((e=>Object.values(SI.qZ).map((t=>{const n=(0,DQ.Wk)({scenario:e,kpi:t});return isFinite(n)?n:0}))));return{highest:Math.max(0,...e),lowest:Math.min(0,...e)}}),[u]);return(0,w.jsx)(r.Fragment,{children:u.map(((e,n)=>{var u;const h=`${e.additionality.additional_counties} of ${e.additionality.additional_counties+e.additionality.non_additional_counties} counties`,m=(0,NT.$F)({value:e.additionality.additional_m2,from:"m2",to:a}).value,g=`${(0,_u.wH)(m)} ${(0,mS.O)(a)}`,y=n<t.length,v={id:e.rank,scenario_id:e.scenario_id,crop_type:e.crop_type,sourcing_region_id:e.sourcing_region_id};return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{type:"date",children:(0,w.jsx)(d.XZ,{checked:y,onChange:()=>y?o(v):i(v)})}),(0,w.jsx)(Mr.uM,{children:e.rank}),(0,w.jsx)(Mr.uM,{children:QK(e,s)}),(0,w.jsx)(Mr.uM,{children:null===(u=c[e.crop_type])||void 0===u?void 0:u.label}),(0,w.jsx)(Mr.uM,{children:(b=e.scenario_id,l[b])}),(0,w.jsx)(Mr.uM,{children:e.additionality.additional_m2>0?(0,w.jsx)(Cd.k,{direction:"column",alignItems:"flex-start",children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-end",children:[h,(0,w.jsx)(Rn.x,{variant:"small-thin",children:g})]})}):"No additionality"}),(0,w.jsx)(AQ,{scenario:e,kpi:"ghg_reductions",highest:p,lowest:f}),(0,w.jsx)(AQ,{scenario:e,kpi:"soc_removals",highest:p,lowest:f}),(0,w.jsx)(AQ,{scenario:e,kpi:"net_ghg",highest:p,lowest:f})]}),n===t.length-1&&(0,w.jsx)(FQ,{})]},e.rank);var b}))})},FQ=Z.ZP.tr`
  width: 100%;
  height: 1px;
  border-bottom: 3px solid ${e=>e.theme.color.stroke.strong};
`,zQ=e=>{let{dataLength:t,pinnedDataLength:n,pageSize:i,onChange:o}=e;const[a,s]=r.useState(0);return r.useEffect((()=>{o(a)}),[o,a]),(0,w.jsx)(d.tl,{page:a,onSetPage:s,rowsPerPage:i,count:t-n,showFirstButton:!0,showLastButton:!0,showDisplayedRowsLabel:!0})},BQ=()=>(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"baseline",gap:40,nowrap:!0,children:[(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"center",gap:12,children:[(0,w.jsx)(Rn.x,{bold:!0,noMargin:!0,children:"Rank by:"}),(0,w.jsx)(AJ,{})]}),(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"center",gap:12,children:[(0,w.jsx)(Rn.x,{bold:!0,noMargin:!0,children:"Filter by:"}),(0,w.jsx)($J,{}),(0,w.jsx)(RJ,{}),(0,w.jsx)(OJ,{})]})]}),UQ=(e,t)=>e.crop_type===t.crop_type&&e.scenario_id===t.scenario_id&&e.sourcing_region_id.unit_id===t.sourcing_region_id.unit_id&&e.sourcing_region_id.unit_type===t.sourcing_region_id.unit_type,$Q=e=>{let{onSelectionChange:t,selectedScenarios:n}=e;const{programId:i,planId:o}=(0,wi.tZ)(),a=(0,h.T)(),s=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_PLANNING_REPORT_SCENARIOS_PP]))),l=(0,h.C)(OL._K),c=(0,h.C)(OL.Z$),[u,d]=(0,r.useState)(0);r.useEffect((()=>{s&&!(0,er.kK)(l[o])||a((0,HC.o9)({programId:i,reportId:o}))}),[a,i,o,s,l]);const p=(0,r.useMemo)((()=>LQ()(c,n,UQ)),[c,n]),f=(0,r.useMemo)((()=>jQ()(c,n,UQ)),[c,n]),m=(0,r.useMemo)((()=>p.slice(5*u,5*u+5)),[p,u]);return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(Rn.x,{variant:"h2",bold:!0,className:"margin-bottom-4",children:"Scenario Selection"}),(0,w.jsx)(Rn.x,{children:"Select practice intervention scenarios for specific crops to explore carbon outcomes based on county additionality requirements."}),(0,w.jsx)(BQ,{})]}),(0,w.jsxs)(UL,{children:[(0,w.jsxs)(Cd.k,{className:"header",fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,noMargin:!0,children:"Top ranked scenarios"}),(0,w.jsx)(zQ,{dataLength:c.length,pinnedDataLength:f.length,pageSize:5,onChange:e=>d(e)})]}),(0,w.jsx)(VQ,{children:(0,w.jsxs)(Mr.dU,{elevated:!1,fullWidth:!0,children:[(0,w.jsx)(Mr.qp,{children:(0,w.jsxs)(Mr.Yu,{children:[(0,w.jsx)(Mr.uM,{children:"Selections"}),(0,w.jsx)(Mr.uM,{children:"Rank"}),(0,w.jsx)(Mr.uM,{children:"Geography"}),(0,w.jsx)(Mr.uM,{children:"Crop"}),(0,w.jsx)(Mr.uM,{children:"Practice interventions"}),(0,w.jsx)(Mr.uM,{children:"Additionality check"}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-end",children:[uS.S5.ghg_reductions,(0,w.jsx)(Rn.x,{variant:"small-thin",children:"Metric tons CO2e"})]})}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-end",children:[uS.S5.soc_removals,(0,w.jsx)(Rn.x,{variant:"small-thin",children:"Metric tons CO2e"})]})}),(0,w.jsx)(Mr.uM,{children:(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-end",children:[uS.S5.net_ghg,(0,w.jsx)(Rn.x,{variant:"small-thin",children:"Metric tons CO2e"})]})})]})}),(0,w.jsx)(Mr.By,{children:(0,w.jsx)(NQ,{pinnedScenarios:f,scenarios:m,onAddScenario:e=>t((t=>[...t,e])),onRemoveScenario:e=>t((t=>t.filter((t=>!UQ(t,e)))))})})]})})]})]})},VQ=Z.ZP.div`
  width: 100%;
`,qQ=e=>{var t,n,i;let{programId:o,plan:a}=e;const s=(0,h.T)(),l=(0,h.C)(S.DC),c=(0,h.C)(OL.Ow),[u,p]=r.useState(0),[f,m]=r.useState(null!==(t=a.carbon_price)&&void 0!==t?t:20),[g,y]=r.useState(null!==(n=a.adoption_rates)&&void 0!==n?n:[]),[v,b]=r.useState(null!==(i=a.saved_scenario_executions)&&void 0!==i?i:[]),[_,x]=r.useState(!1),{fetchAverageAnnualOutcomes:k,averageAnnualOutcomes:C,updatingOutcomes:M}=(e=>{let{programId:t,reportId:n,delay:i}=e;const[o,a]=r.useState(!0),[s,l]=r.useState(iQ),c=r.useRef(rQ()((async e=>{if((0,er.Of)(e)){const r=await qC.Z.getAverageAnnualReportOutcomes(t,n,e);(0,er.$K)(r.data)&&(a(!1),l(r.data))}else a(!0),l(iQ)}),i)).current;return{fetchAverageAnnualOutcomes:r.useCallback((()=>(a(!0),c)),[c]),updatingOutcomes:o,averageAnnualOutcomes:s}})({programId:o,reportId:a.id,delay:3e3});r.useEffect((()=>{"program_plan"!==c&&s((0,yT.I1)("program_plan"))}),[s,c]);const T=r.useRef(Pc()((e=>{let{carbonPrice:t,adoptionRate:n,selectedScenarios:r}=e;s((0,HC.Bc)({programId:o,reportId:a.id,plan:{adoption_rates:n,carbon_price:t,currency:"USD",saved_scenario_executions:r.map((e=>{let{id:t,...n}=e;return n}))}}))}),1e4)).current;r.useEffect((()=>{_&&T({carbonPrice:f,adoptionRate:g,selectedScenarios:v})}),[g,_,f,T,v]),r.useEffect((()=>{k()(v)}),[k,v]);const E=r.useMemo((()=>({areaValueString:(0,KJ.pl)(WJ()(C.additional_m2).from("m2").to(l)),measurementSuffix:(0,mS.O)(l)})),[C.additional_m2,l]),P=r.useMemo((()=>(0,dQ.KT)(C)(g)),[g,C]),I=r.useMemo((()=>(0,dQ.Jc)(P)),[P]),O=r.useMemo((()=>(0,dQ.Hm)(P)),[P]),L=r.useCallback((e=>{x(!0),b(e)}),[]),R=r.useCallback((e=>{x(!0),m(e)}),[]),j=r.useCallback((e=>{x(!0),y(e)}),[]);return(0,w.jsxs)(eS,{children:[(0,w.jsx)(LL,{}),(0,w.jsxs)("div",{children:[(0,w.jsxs)(d.ZT,{component:"h1",variant:"h2",children:["Program plan ",a.name&&`: ${a.name}`]}),(0,w.jsx)(Rn.x,{children:"Examine a specific area and identify crops and intervention scenarios to generate ex-ante estimates for carbon outcomes and financial estimates of generated credits."})]}),(0,w.jsx)(eQ,{currentStep:u,setCurrentStep:p}),u>0&&(0,w.jsx)(XJ,{awaitingUpdate:M,totalArea:E,totalOutcomes:O,priceOfCarbon:f}),0===u&&(0,w.jsx)(TQ,{plan:a},"program-details"),1===u&&(0,w.jsx)($Q,{onSelectionChange:L,selectedScenarios:v},"scenario-selection"),2===u&&(0,w.jsx)(xQ,{priceOfCarbon:f,setPriceOfCarbon:R,adoptionRateByYear:g,setAdoptionRateByYear:j,averageAnnualData:I,totalData:O,practiceAdoptionDataByYear:P},"practice-adoption")]})},ZQ=()=>{const{isLoading:e}=vT(),t=(0,h.T)(),{programId:n,planId:i}=(0,wi.tZ)(),o=(0,h.C)((e=>(0,OL.ec)(e,i)));(0,r.useEffect)((()=>{t((0,yT.PT)(n)),t((0,yT.qU)(i))}),[t,n,i]);const a=(0,w.jsx)("div",{children:(0,w.jsx)(On.D8,{className:"progress",id:"si-reports-table","aria-busy":"true"})});if(e)return a;switch(null===o||void 0===o?void 0:o.report_type){case"program_plan":return(0,w.jsx)(qQ,{programId:n,plan:o});case"abatement_potential":return(0,w.jsx)(qJ,{});default:return a}},HQ=()=>{const e=(0,h.T)(),{programSupplySheds:t}=vT(),n=(0,h.C)(OL.jO),i=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_KPI_SUBSECTION_AREA]))),o=r.useMemo((()=>YS(t)),[t]),a=r.useMemo((()=>(0,ii._J)(n.areas).flat()),[n.areas]),s=r.useMemo((()=>(0,ii.pJ)(n.areas).filter((e=>{var t;let[n,r]=e;return(0,ii.Os)(o).includes(n)&&(null===(t=o[Number(n)])||void 0===t?void 0:t.length)===r.length})).map((e=>{let[t]=e;return Number(t)}))),[n.areas,o]);return(0,w.jsx)(nO,{onChange:t=>{const n=(0,ii.pJ)(o).reduce(((e,n)=>{let[r,i]=n;const o=kT()(i,t);return(0,er.Of)(o)?{...e,[r]:o}:e}),{});e((0,yT.c1)(n))},selectedSubsections:a,initialSelectedSupplySheds:s,mapLoading:i})},GQ=e=>(0,w.jsxs)("div",{id:`ap-crop-select-${e.value}`,style:{display:"flex",alignItems:"center"},children:[(0,w.jsx)(CQ.f,{cropType:e.type,className:"crop-type-select__avatar"}),(0,w.jsx)("span",{className:"label",style:{paddingLeft:8,paddingBottom:0},children:e.label})]}),WQ=(0,r.memo)((e=>{let{cropValue:t,onChange:n,availableCommodities:i}=e;const o=UE(),a=(0,r.useMemo)((()=>{const e=Object.values(o.filter((e=>i.includes(Number(e.value)))));return(0,lS.Rt)(e,"label")}),[o,i]),s=(0,r.useMemo)((()=>a.find((e=>e.value===t))),[a,t]);return(0,w.jsx)(PO.ZP,{placeholder:"Select a crop",value:s,formatOptionLabel:GQ,options:a,onChange:e=>{var t,r,i;return n(null!==(t=null===e||void 0===e?void 0:e.value)&&void 0!==t?t:"",null!==(r=null===e||void 0===e?void 0:e.label)&&void 0!==r?r:"",null!==(i=null===e||void 0===e?void 0:e.type)&&void 0!==i?i:"")},menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:ud.K.Select}),control:e=>({...e,border:"1px solid lightgray","&:hover":{borderColor:"gray"},boxShadow:"none"})}})})),YQ=e=>{let{supplyShedId:t,areaId:n,onSelectSupplyShedCrops:i,color:o,name:a,areaHa:s,areaType:l,selectedCommodities:c,availableCommodities:u}=e;const d=(0,h.C)(OL.jO),p=(0,h.C)(S.DC),[f,m]=(0,r.useState)(!0),[g,y]=(0,r.useState)(c.map((e=>({key:(0,jn._j)(),label:(null===e||void 0===e?void 0:e.label)||"",type:(null===e||void 0===e?void 0:e.type)||"",volume_units:(null===e||void 0===e?void 0:e.volume_units)||"",value:String(null===e||void 0===e?void 0:e.id)||"",volume:(null===e||void 0===e?void 0:e.volume)||0})))),v=e=>{const r=e.map((e=>({id:Number(null===e||void 0===e?void 0:e.value),label:null===e||void 0===e?void 0:e.label,type:null===e||void 0===e?void 0:e.type,volume_units:null===e||void 0===e?void 0:e.volume_units,volume:null===e||void 0===e?void 0:e.volume})));i(t,n,l,r)};return(0,w.jsxs)("div",{className:"selected-crops-card margin-bottom-16",children:[(0,w.jsxs)("div",{className:"selected-crops-card-header",onClick:()=>{m(!f)},children:[(0,w.jsx)(GE,{headerColor:o}),(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",children:[(0,w.jsx)(On.xu,{forceSize:35,forceFontSize:!0,children:f?"expand_more":"chevron_right"}),(0,w.jsx)("div",{className:"selected-crops-card-name",children:a})]}),(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",children:[(0,w.jsxs)("div",{className:"selected-crops-card-area mr-2",children:[g.length," ",(0,xi.E4)("crop",g.length)]}),(0,w.jsx)("div",{className:"selected-crops-card-area",children:(0,In.Kr)(Math.round(s),p)})]})]}),f&&(0,w.jsx)("div",{className:"selected-crops-container",children:g.map((e=>{var t;const n=u.filter((t=>String(t)===e.value||!g.find((e=>e.value===String(t)))));return(0,w.jsxs)(ni.k,{className:"selected-crops-row",direction:"row",alignItems:"center",nowrap:!0,justifyContent:"space-between",children:[(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",nowrap:!0,className:"crop-selections",children:[(0,w.jsx)("div",{className:"crop-select",children:(0,w.jsx)(WQ,{cropValue:e.value,onChange:(t,n,r)=>((e,t,n,r)=>{const i=g.map((i=>i.key===e?{...i,value:t,label:n,type:r}:i));y(i),v(i)})(e.key,t,n,r),availableCommodities:n})}),"abatement_potential"===d.reportType&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(rO.C,{type:"number",id:"crop-volume",name:"crop-volume",value:e.volume||0,className:"volume-input",onChange:t=>((e,t)=>{const n=g.map((n=>n.key===e?{...n,volume:t}:n));y(n),v(n)})(e.key,Number(t)),placeholder:"Enter sourcing volume (optional)"}),(0,w.jsx)(Sr.Z,{value:null!==(t=e.volume_units)&&void 0!==t?t:"lb",onChange:t=>((e,t)=>{const n=g.map((n=>n.key===e?{...n,volume_units:t}:n));y(n),v(n)})(e.key,t),options:Object.entries(uS.Vq).map((e=>{let[t,n]=e;return{label:n,value:t}})),className:"unit-select"})]})]}),(0,w.jsx)(kd.w,{icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"delete"}),onClick:t=>{(e=>{const t=g.filter((t=>t.key!==e));y(t),v(t)})(e.key),t.stopPropagation()},tooltipPosition:"left",tooltipLabel:"Remove crop",tooltipStyle:{left:"-20px"}})]},e.key)}))}),(0,w.jsx)(kd.w,{raised:!0,blank:!0,className:"add-crop-button",onClick:()=>y([...g,{value:"",label:"",type:"",volume:0,key:(0,jn._j)(),volume_units:"lb"}]),children:"+ Crop"})]})},KQ=()=>{const e=(0,h.T)(),{programSupplySheds:t}=vT(),n=(0,h.C)(OL.jO),i=(0,h.C)(iS),[o,a]=(0,r.useState)(n.crops),s=r.useMemo((()=>YS(t)),[t]);(0,r.useEffect)((()=>{const t=(0,ii.pJ)(n.areas).map((e=>{var t;let[n,r]=e;return(null===(t=s[Number(n)])||void 0===t?void 0:t.length)===r.length?1:r.length})).reduce(((e,t)=>e+t),0),r=Object.values(n.crops).reduce(((e,t)=>{var n,r;return null!==t&&void 0!==t&&t.commodities&&(null===t||void 0===t||null===(n=t.commodities)||void 0===n?void 0:n.length)>0?e+1:t.subsection?null===(r=Object.values(null===t||void 0===t?void 0:t.subsection))||void 0===r?void 0:r.reduce(((e,t)=>t.length>0?e+1:e),e):e}),0);e((0,yT.Ws)(t!==r))}),[n.areas,n.crops,e,s]);const l=(t,n,r,i)=>{const s={...o},l=i.filter((e=>{let{label:t}=e;return(0,er.HH)(t)}));var c,u;"supplyShed"===r?s[t]={commodities:l}:s[t]={...s[t],subsection:{...null!==(c=null===(u=s[t])||void 0===u?void 0:u.subsection)&&void 0!==c?c:{},[n]:l}};a(s),e((0,yT.vZ)(s))};return(0,w.jsxs)("div",{className:"crops-step",children:[(0,w.jsx)(Rn.x,{bold:!0,nowrap:!0,children:"Specify crop and sourcing volume for each area"}),(0,ii.pJ)(n.areas).map((e=>{var n,r;let[a,c]=e;const u=ZS(t,a);if((0,er.kK)(u))return null;const d=(null===(n=s[Number(a)])||void 0===n?void 0:n.length)===c.length,p=i(u.id),h=null!==(r=u.name)&&void 0!==r?r:"";if(d){var f,m;const e=u.subsections.flatMap((e=>{var t,n;return null!==(t=null===(n=e.commodities)||void 0===n?void 0:n.map((e=>e.id)))&&void 0!==t?t:[]}));return(0,w.jsx)(YQ,{supplyShedId:Number(a),areaId:Number(a),onSelectSupplyShedCrops:l,color:p,name:h,areaHa:null!==(f=null===u||void 0===u?void 0:u.total_field_area_ha)&&void 0!==f?f:0,areaType:"supplyShed",selectedCommodities:(null===(m=o[Number(a)])||void 0===m?void 0:m.commodities)||[{id:0,label:"",type:"",volume_units:"lb",volume:0}],availableCommodities:null!==e&&void 0!==e?e:[]},a)}return c.map((e=>{var t,n,r,i,s,c;const d=u.subsections.filter((t=>t.id===Number(e)))[0],f=null===d||void 0===d||null===(t=d.commodities)||void 0===t?void 0:t.map((e=>{let{id:t}=e;return t}));return(0,w.jsx)(YQ,{supplyShedId:Number(a),areaId:Number(e),onSelectSupplyShedCrops:l,color:p,name:`${h}: ${null!==(n=null===d||void 0===d?void 0:d.name)&&void 0!==n?n:""}`,areaHa:null!==(r=null===d||void 0===d?void 0:d.field_area_ha)&&void 0!==r?r:0,areaType:"subsection",selectedCommodities:null!==(i=null===(s=o[Number(a)])||void 0===s||null===(c=s.subsection)||void 0===c?void 0:c[Number(e)])&&void 0!==i?i:[{id:0,label:"",type:"",volume_units:"lb",volume:0}],availableCommodities:null!==f&&void 0!==f?f:[]},null===d||void 0===d?void 0:d.id)}))}))]})},XQ=()=>{const e=(0,h.T)(),t=(0,h.C)(OL.jO),n=(0,r.useMemo)((()=>{const e=(new Date).getFullYear(),t=e-10,n=[];for(let r=e+10;r>=t;r--)n.push({label:r.toString(),value:r.toString()});return n}),[]);return(0,w.jsx)(ni.k,{direction:"column",alignItems:"center",className:"details-step",children:(0,w.jsxs)(ni.k,{direction:"column",alignItems:"center",className:"details-container",children:[(0,w.jsxs)("div",{className:"details-row",children:[(0,w.jsx)(Rn.x,{children:"Plan Name"}),(0,w.jsx)(ri.C,{type:"text",id:"new-plan-name",name:"new-plan-name",value:t.name,className:"details-value",onChange:t=>e((0,yT.md)(String(t))),placeholder:"Enter plan name"})]}),(0,w.jsxs)("div",{className:"details-row",children:[(0,w.jsx)(Rn.x,{children:"Plan Type"}),(0,w.jsx)(Sr.Z,{value:t.reportType,onChange:t=>e((0,yT.nw)(t)),options:uS.kc,className:"details-value"})]}),(0,w.jsxs)("div",{className:"details-row",children:[(0,w.jsx)(Rn.x,{children:"Plan Years"}),(0,w.jsxs)("div",{className:"details-years-value",children:[(0,w.jsx)(Sr.Z,{value:String(t.startYear),onChange:t=>e((0,yT.OE)(Number(t))),options:n,className:"details-year-selector"}),(0,w.jsx)("span",{className:"pl-1 pr-1",children:"-"}),(0,w.jsx)(Sr.Z,{value:String(t.endYear),onChange:t=>e((0,yT.WD)(Number(t))),options:n,className:"details-year-selector"})]})]}),(0,w.jsxs)("div",{className:"details-row",children:[(0,w.jsx)(Rn.x,{children:"Model"}),(0,w.jsx)(Sr.Z,{value:t.model,onChange:t=>e((0,yT.Bp)(t)),options:uS.dL,className:"details-value"})]}),(0,w.jsxs)("div",{className:"details-row",children:[(0,w.jsx)(Rn.x,{children:"Protocol"}),(0,w.jsx)(Sr.Z,{value:t.protocol,onChange:t=>e((0,yT.If)(t)),options:uS.HF,className:"details-value"})]})]})})};let JQ=function(e){return e[e.CC=0]="CC",e[e.RT=1]="RT",e[e.NT=2]="NT",e[e.RN=3]="RN",e}({}),QQ=function(e){return e[e.NT_RN=4]="NT_RN",e[e.CC_NT=5]="CC_NT",e[e.CC_RN=6]="CC_RN",e[e.RT_RN=7]="RT_RN",e[e.CC_RT=8]="CC_RT",e}({}),e1=function(e){return e[e.CC_NT_RN=9]="CC_NT_RN",e[e.CC_RT_RN=10]="CC_RT_RN",e}({});const t1={[JQ.CC]:{tillage:"",cover_cropping:"coverCrop100",fertilizer_usage:""},[JQ.RT]:{tillage:"reduceTill100",cover_cropping:"",fertilizer_usage:""},[JQ.NT]:{tillage:"noTill100",cover_cropping:"",fertilizer_usage:""},[JQ.RN]:{tillage:"",cover_cropping:"",fertilizer_usage:"reduceN10"},[QQ.NT_RN]:{tillage:"noTill100",cover_cropping:"",fertilizer_usage:"reduceN10"},[QQ.CC_NT]:{tillage:"noTill100",cover_cropping:"coverCrop100",fertilizer_usage:""},[QQ.CC_RN]:{tillage:"",cover_cropping:"coverCrop100",fertilizer_usage:"reduceN10"},[QQ.RT_RN]:{tillage:"reduceTill100",cover_cropping:"",fertilizer_usage:"reduceN10"},[QQ.CC_RT]:{tillage:"reduceTill100",cover_cropping:"coverCrop100",fertilizer_usage:""},[e1.CC_NT_RN]:{tillage:"noTill100",cover_cropping:"coverCrop100",fertilizer_usage:"reduceN10"},[e1.CC_RT_RN]:{tillage:"reduceTill100",cover_cropping:"coverCrop100",fertilizer_usage:"reduceN10"}},n1=[{value:JQ.CC,label:"Cover Crop on 100% of cropland"},{value:JQ.RT,label:"Reduced Till on 100% of cropland"},{value:JQ.NT,label:"No-till on 100% of cropland"},{value:JQ.RN,label:"Reduce N by 10%"},{value:QQ.NT_RN,label:"No-till on 100% of cropland and Reduce N by 10%"},{value:QQ.CC_NT,label:"Cover Crop and No-till on 100% of cropland"},{value:QQ.CC_RN,label:"Cover Crop on 100% of cropland and Reduce N by 10%"},{value:QQ.RT_RN,label:"Reduced Till on 100% of cropland and Reduce N by 10%"},{value:QQ.CC_RT,label:"Cover Crop and Reduced Till on 100% of cropland"},{value:e1.CC_NT_RN,label:"Cover Crop and No-till on 100% of cropland and Reduce N by 10%"},{value:e1.CC_RT_RN,label:"Cover Crop and Reduced Till on 100% of cropland and Reduce N by 10%"}],r1=e=>{let{interventions:t,onChange:n,reportType:i}=e;const o=(0,r.useMemo)((()=>n1.filter((e=>t.includes(e.value)))),[t]),a=n1.filter((e=>e.value===JQ.CC||e.value===JQ.RT||e.value===JQ.NT)),s=o.length===n1.length?"All intervention scenarios selected":`${o.length} interventions scenarios selected`;return(0,w.jsx)(d.F2,{"aria-label":"Select intervention scenarios to model",options:"abatement_potential"===i?n1:a,multiple:!0,disableCloseOnSelect:!0,onChange:(e,t)=>{n(t.map((e=>{let{value:t}=e;return t})))},value:o,label:"Intervention scenarios",placeholder:"Select intervention scenarios to model",localeText:{getLimitTagsText:()=>`${s}`,getLimitTagsTextFocused:()=>`${s}`}})},i1=()=>{const e=(0,h.T)(),t=(0,h.C)(OL.jO),n=(0,r.useMemo)((()=>(0,ii.pJ)(t1).filter((e=>{let[n,r]=e;return t.interventions.includes(r)})).map((e=>{let[t,n]=e;return Number(t)}))),[t.interventions]);return(0,w.jsx)(d.Kq,{mt:4,maxWidth:e=>e.fixedWidths.md,children:(0,w.jsx)(r1,{interventions:n,onChange:t=>{const n=t.map((e=>t1[e]));e((0,yT.jZ)([...n]))},reportType:t.reportType})})},o1=e=>{let{scenarioNumber:t,interventionScenarioArray:n,removeIntervention:r}=e;return(0,w.jsxs)("div",{className:"intervention-scenario",children:[(0,w.jsxs)("div",{className:"intervention-info",children:[(0,w.jsxs)("div",{className:"intervention-label",children:["Scenario ",t,": "]}),n.map((e=>{var t,n;const[r,i]=e;return""===i?null:(0,w.jsxs)(Cd.k,{className:"margin-left-12",direction:"row",alignItems:"center",nowrap:!0,gap:"4px",children:[pP[r]," ",null!==(t=null===(n=uS.b4[i])||void 0===n?void 0:n.label)&&void 0!==t?t:i]},i)}))]}),(0,w.jsx)("div",{children:r&&(0,w.jsx)(kd.w,{icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"delete"}),onClick:r,tooltipPosition:"left",tooltipLabel:"Remove intervention",tooltipStyle:{left:"-40px"}})})]})},a1=e=>{let{areaId:t,areaName:n,color:r,commodities:i,unitType:o,reportType:a="abatement_potential",convertUnits:s=!1}=e;const{cropByCDLId:l}=(0,NS.n)(),c=(e,t)=>{switch(t){case"lb":return WJ()(e).from("lb").to("kg");case"t":return WJ()(e).from("t").to("kg");case"mt":return WJ()(e).from("mt").to("kg");default:return e}};return(0,w.jsxs)("div",{className:"summary-container",children:[(0,w.jsx)("div",{className:"shed-color",style:{borderLeftColor:r}}),(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"baseline",nowrap:!0,gap:"4px",justifyContent:"space-between",children:[(0,w.jsx)(Rn.x,{variant:"h2",className:"mb-0.5",primary:!0,children:n}),(0,w.jsx)(aS.A,{label:"supply_shed"===o?"Supply Shed":"Subregion",tone:"dimmed",size:"small",className:"margin-right-4",disabled:!0},t)]}),(0,w.jsx)("div",{className:"crop-col",children:i.map((e=>{var t,n,r,i,o;return(0,w.jsxs)("div",{className:"crop-row",children:[(0,w.jsxs)(Cd.k,{direction:"row",alignItems:"center",nowrap:!0,gap:"4px",children:[(0,w.jsx)(CQ.f,{cropType:null!==(t=null===(n=l[Number(e.id)])||void 0===n?void 0:n.value)&&void 0!==t?t:"",className:"crop-type-select__avatar"}),(0,w.jsxs)("div",{children:[null===(r=l[Number(e.id)])||void 0===r?void 0:r.label," "]})]}),"abatement_potential"===a&&(0,w.jsxs)(Cd.k,{children:[(0,w.jsx)(Rn.x,{bold:!0,className:"ml-1",children:s?c(null===e||void 0===e?void 0:e.volume,null!==(i=null===e||void 0===e?void 0:e.volume_units)&&void 0!==i?i:"kg"):null===e||void 0===e?void 0:e.volume}),(0,w.jsx)(Rn.x,{bold:!0,className:"ml-1",children:null!==(o=null===e||void 0===e?void 0:e.volume_units)&&void 0!==o?o:"kg"})]})]},e.id)}))})]},t)},s1=()=>{const{programSupplySheds:e}=vT(),t=(0,h.C)(OL.jO),n=(0,h.C)(iS);return(0,w.jsx)(Cd.k,{direction:"row",justifyContent:"space-between",className:"summary-step",children:(0,w.jsxs)("div",{className:"summary-column",children:[(0,w.jsx)(Rn.x,{variant:"h2",bold:!0,children:"Plan Summary"}),(0,w.jsxs)("div",{className:"summary-card-container",children:[(0,w.jsxs)("div",{className:"summary-card",children:[(0,w.jsx)("div",{className:"summary-card-header",children:"Name"}),(0,w.jsx)("div",{className:"summary-card-body",children:t.name})]}),(0,w.jsxs)("div",{className:"summary-card",children:[(0,w.jsx)("div",{className:"summary-card-header",children:"Type"}),(0,w.jsx)("div",{className:"summary-card-body",children:uS.oj[t.reportType]})]}),(0,w.jsxs)("div",{className:"summary-card",children:[(0,w.jsx)("div",{className:"summary-card-header",children:"Years"}),(0,w.jsxs)("div",{className:"summary-card-body",children:[t.startYear," - ",t.endYear]})]}),(0,w.jsxs)("div",{className:"summary-card",children:[(0,w.jsx)("div",{className:"summary-card-header",children:"Model"}),(0,w.jsx)("div",{className:"summary-card-body",children:uS.Cg[t.model]})]}),(0,w.jsxs)("div",{className:"summary-card",children:[(0,w.jsx)("div",{className:"summary-card-header",children:"Protocol"}),(0,w.jsx)("div",{className:"summary-card-body",children:uS.lj[t.protocol]})]})]}),(0,w.jsx)(Rn.x,{variant:"h2",className:"mt-1",children:"Areas and Crops"}),(0,w.jsx)("div",{children:(0,ii.pJ)(t.crops).map((r=>{let[i,o]=r;const a=ZS(e,i);return(0,er.kK)(a)?null:o.commodities?(0,w.jsx)(a1,{areaId:a.id,areaName:`${a.name}`,color:n(a.id),commodities:o.commodities,unitType:"supply_shed",reportType:t.reportType},a.id):(0,w.jsx)("div",{children:(null===o||void 0===o?void 0:o.subsection)&&(0,ii.pJ)(null===o||void 0===o?void 0:o.subsection).map((e=>{let[r,i]=e;const o=a.subsections.find((e=>e.id===Number(r)));return(0,er.$K)(o)&&(0,w.jsx)(a1,{areaId:o.id,areaName:`${a.name}: ${o.name}`,color:n(a.id),commodities:i,unitType:"subsection",reportType:t.reportType},o.id)}))},a.id)}))}),(0,w.jsx)(Rn.x,{variant:"h2",className:"mt-3",children:"Intervention Scenarios"}),t.interventions.map(((e,t)=>(0,w.jsx)(o1,{scenarioNumber:t+1,interventionScenarioArray:(0,ii.pJ)(e)},t)))]})})},l1=e=>{var t;let{onHide:n}=e;const i=(0,h.T)(),{programId:o}=(0,wi.tZ)(),a=(0,h.C)(OL.UH),s=(0,h.C)(OL.jO),l=(0,h.C)((e=>(0,S.m8)(e,!0))),[c,u]=(0,r.useState)(0),p=(e,t)=>{switch(t){case"lb":return WJ()(e).from("lb").to("kg");case"t":return WJ()(e).from("t").to("kg");case"mt":return WJ()(e).from("mt").to("kg");default:return e}},f=(0,r.useMemo)((()=>[{label:"Plan details",icon:(0,w.jsx)(k.sQ,{fill:"white"}),screen:(0,w.jsx)(XQ,{}),disabled:!1,value:0},{label:"Program regions",icon:(0,w.jsx)(k.sQ,{fill:"white"}),screen:(0,w.jsx)(HQ,{}),disabled:""===s.name,value:1},{label:"Crops",icon:(0,w.jsx)(k.S0,{}),screen:(0,w.jsx)(KQ,{}),disabled:0===Object.keys(s.areas).length,value:2},{label:"Interventions",icon:(0,w.jsx)(On.xu,{style:{color:"white"},children:"dashboard"}),screen:(0,w.jsx)(i1,{}),disabled:a,value:3},{label:"Summary",icon:(0,w.jsx)(td.tl,{}),screen:(0,w.jsx)(s1,{}),disabled:0===s.interventions.length,value:4}]),[s.interventions,s.areas,a,s.name]);return(0,w.jsxs)(d.o9,{id:"create-plan-popup",onClose:n,open:!0,maxWidth:"lg",title:"New plan",description:"Identify areas of opportunity and plan reduction / removal programs.",children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(qT,{stepItems:f,currentStep:c,onUpdateStep:u,finalStepComponent:(0,w.jsx)(d.zx,{onClick:async()=>{const e=[];(0,ii.pJ)(s.crops).map((t=>{let[n,r]=t;if(r.commodities){const t=r.commodities.map((e=>({id:e.id,volume:p(e.volume,e.volume_units),volume_units:e.volume_units})));return e.push({unit_id:Number(n),unit_type:"supply_shed",commodities:t})}return(null===r||void 0===r?void 0:r.subsection)&&(0,ii.pJ)(null===r||void 0===r?void 0:r.subsection).map((t=>{let[n,r]=t;const i=r.map((e=>({id:e.id,volume:p(e.volume,e.volume_units),volume_units:e.volume_units})));return e.push({unit_id:Number(n),unit_type:"subsection",commodities:i})}))}));const t=s.interventions.map((e=>{const t=[];if(Object.keys(uS.b4).includes(e.tillage)){const n=uS.b4[e.tillage],r={intervention_type:n.intervention_type,percentage:n.percentage};t.push(r)}if(Object.keys(uS.b4).includes(e.cover_cropping)){const n=uS.b4[e.cover_cropping],r={intervention_type:n.intervention_type,percentage:n.percentage};t.push(r)}if(Object.keys(uS.b4).includes(e.fertilizer_usage)){const n=uS.b4[e.fertilizer_usage],r={intervention_type:n.intervention_type,percentage:n.percentage};t.push(r)}return t})),r={name:s.name,owner:l,report_type:s.reportType,model:s.model,protocol:s.protocol,sourcing_regions:e,intervention_scenarios:t,start_year:s.startYear,end_year:s.endYear};await i((0,HC.aF)({programId:o,plan:r})),n()},children:"Request"})}),null===(t=f[c])||void 0===t?void 0:t.screen]}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:n,children:"Cancel"})})]})},c1=e=>{let{name:t,onSave:n,onHide:i}=e;const[o,a]=(0,r.useState)(t);return(0,w.jsxs)(d.o9,{id:"plan-name-popup",title:"Plan Name",onClose:i,open:!0,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsx)(d.nv,{type:"text",id:"plan-name",name:"plan-name",label:"Plan name",value:o,onChange:e=>a(e.target.value),fullWidth:!0})}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",onClick:i,children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:()=>n(o),children:"Save"})]})]})},u1=e=>{let{plan:t,onHide:n}=e;const i=(0,h.T)(),{programSupplySheds:o,isLoading:a}=vT(),{programId:s}=(0,wi.tZ)(),l=(0,h.C)(iS),{isRegrowAdmin:c}=dS();return(0,w.jsxs)(d.o9,{id:"plan-summary-popup",onClose:n,open:!0,maxWidth:"lg",description:c&&`(#${t.id})`,title:a?"Loading Plan Summary...":`${t.name} (${t.start_year} - ${t.end_year})`,children:[(0,w.jsx)(d.cZ,{children:!a&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.xu,{display:"flex",justifyContent:"flex-end",children:(0,w.jsx)(d.zx,{onClick:()=>{i((0,oS.VF)((0,xo.F_)(WC.$C,{programId:s,planId:t.id})))},children:"View Plan"})}),(0,w.jsxs)(d.xu,{display:"flex",flexDirection:"column",className:"summary-step",children:[(0,w.jsx)(d.ZT,{variant:"h3",children:"Areas and Crops"}),(0,w.jsx)("div",{children:t.sourcing_regions.map((e=>{const t="supply_shed"===e.unit_type?Number(e.unit_id):HS(o,e.unit_id),n=(0,er.$K)(t)?ZS(o,t):void 0;if((0,er.kK)(n))return(0,w.jsx)(w.Fragment,{});if("supply_shed"===e.unit_type)return(0,w.jsx)(a1,{areaId:n.id,areaName:`${n.name}`,color:l(n.id),commodities:e.commodities,unitType:e.unit_type,convertUnits:!0},e.unit_id);{const t=wT()(n.subsections.filter((t=>t.id===Number(e.unit_id))));return(0,er.$K)(t)?(0,w.jsx)(a1,{areaId:t.id,areaName:`${n.name}: ${t.name}`,color:l(n.id),commodities:e.commodities,unitType:e.unit_type,convertUnits:!0},e.unit_id):(0,w.jsx)(w.Fragment,{})}}))}),(0,w.jsx)(d.xu,{mt:3,children:(0,w.jsx)(d.ZT,{variant:"h3",children:"Intervention Scenarios"})}),(0,w.jsx)("div",{className:"interventions-step",children:t.intervention_scenarios.map(((e,t)=>{var n;const i=e.map(((e,t)=>[uS.hM[e.intervention_type].interventionOption,uS.hM[e.intervention_type].label(e.percentage)]));return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(o1,{scenarioNumber:t+1,interventionScenarioArray:i}),c?(0,w.jsx)(d.xu,{ml:4,children:(0,w.jsx)(d.ZT,{children:`Scenario ${t+1}: scenario_id ${null===(n=e[0])||void 0===n?void 0:n.scenario_id}`})}):" "]},t)}))})]})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(d.zx,{onClick:n,children:"Close"})})]})},d1=()=>{const e=(0,h.T)(),{programId:t}=(0,wi.tZ)(),{isRegrowAdmin:n}=dS(),i=(0,h.C)((e=>(0,OL.z6)(e,t))),o=(0,h.C)(S.XG),[a,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(),[p,f]=(0,r.useState)({id:0,name:""}),m=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_PLANNING_REPORTS]))),g=n=>{e((0,oS.VF)((0,xo.F_)(WC.$C,{programId:t,planId:n})))};return(0,w.jsxs)("div",{children:[i.length>0&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(gh.dU,{children:[(0,w.jsx)(gh.qp,{children:(0,w.jsxs)(gh.Yu,{children:[(0,w.jsx)(gh.uM,{children:"Plan Name"}),(0,w.jsx)(gh.uM,{children:"Type"}),(0,w.jsx)(gh.uM,{children:"Created "}),(0,w.jsx)(gh.uM,{children:"Model"}),(0,w.jsx)(gh.uM,{children:"Plan Years"}),(0,w.jsx)(gh.uM,{})]})}),(0,w.jsx)(gh.By,{children:i.map((r=>(0,w.jsxs)(gh.Yu,{children:[(0,w.jsx)(gh.uM,{onClick:()=>g(r.id),className:"cursor-pointer",children:(0,w.jsxs)(ni.k,{alignItems:"center",children:[r.name,n?(0,w.jsxs)(Rn.x,{inline:!0,className:"margin-left-8",tertiary:!0,variant:"small-thin",children:["(#",r.id,")"]}):" "]})}),(0,w.jsx)(gh.uM,{onClick:()=>g(r.id),className:"cursor-pointer",children:uS.oj[r.report_type]}),(0,w.jsx)(gh.uM,{onClick:()=>g(r.id),className:"cursor-pointer",children:xp()(r.created_at).format(o)}),(0,w.jsx)(gh.uM,{onClick:()=>g(r.id),className:"cursor-pointer",children:null!==r&&void 0!==r&&r.model?uS.Cg[r.model]:""}),(0,w.jsxs)(gh.uM,{onClick:()=>g(r.id),className:"cursor-pointer",children:[r.start_year," - ",r.end_year]}),(0,w.jsx)(gh.uM,{type:"number",children:(0,w.jsxs)(ni.k,{gap:"10px",nowrap:!0,justifyContent:"flex-end",alignItems:"center",children:[(0,w.jsx)(kd.w,{primary:!0,raised:!0,onClick:()=>{e((0,oS.VF)((0,xo.F_)(WC.$C,{programId:t,planId:r.id})))},children:"View Plan"}),(0,w.jsx)(On.aN,{id:"plan-menu",icon:!0,menuItems:[(0,w.jsx)(On.HC,{onClick:()=>{d(r),c(!0)},leftIcon:(0,w.jsx)(On.xu,{children:"info"}),primaryText:"View Request Summary"},1),n&&(0,w.jsx)(On.HC,{leftIcon:(0,w.jsx)(On.xu,{children:"edit"}),onClick:e=>{e.stopPropagation(),f({id:null===r||void 0===r?void 0:r.id,name:null===r||void 0===r?void 0:r.name}),s(!0)},primaryText:"Rename Plan"},2),n&&(0,w.jsx)(On.HC,{leftIcon:(0,w.jsx)(On.xu,{children:"delete"}),onClick:n=>{n.stopPropagation(),(async(n,r)=>{window.confirm(`Are you sure you want to delete the "${r}" plan?`)&&qC.Z.deletePlanningReport(t,n).then((async()=>{await e((0,HC.iI)(t)),(0,Yn.c)({title:"Success",message:`The "${r}" plan was deleted.`,type:"success"})})).catch((()=>{(0,Yn.c)({type:"error",title:"Error",message:`The "${r}" plan was not deleted.`})}))})(r.id,r.name)},primaryText:"Delete Plan"},3)],children:(0,w.jsx)(On.xu,{inherit:!0,children:"more_vert"})})]})})]},r.id)))})]})}),m?(0,w.jsx)(On.D8,{className:"progress",id:"si-plans-table"}):0===i.length?"No plans found, please create a new plan to get started.":null,a&&(0,w.jsx)(c1,{onHide:()=>s(!1),name:p.name,onSave:async n=>{await e((0,HC.Bc)({programId:t,reportId:p.id,plan:{name:n}})),s(!1),f({id:0,name:""})}}),l&&u&&(0,w.jsx)(u1,{onHide:()=>c(!1),plan:u})]})},p1=()=>{const[e,t]=(0,r.useState)(!1),{isRegrowOrProgramAdmin:n}=dS();return(0,w.jsxs)(XC,{children:[(0,w.jsxs)(JC,{children:[(0,w.jsx)(QC,{children:"Scenario Modeling"}),n&&(0,w.jsx)(d.zx,{variant:"contained",startIcon:(0,w.jsx)(d.JO,{type:"plus"}),onClick:()=>t(!0),children:"New Plan"})]}),(0,w.jsx)(d1,{}),e&&(0,w.jsx)(l1,{onHide:()=>t(!1)})]})},h1=e=>{let{programId:t}=e;const n=(0,h.T)(),i=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_PLANNING_REPORTS]))),o=(0,h.C)(OL.ZD);return r.useEffect((()=>{!i&&(0,er.kK)(o[t])&&n((0,HC.iI)(t))}),[n,t,i,o]),(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{path:WC.$C,component:ZQ}),(0,w.jsx)(vm,{path:WC.ng,component:p1}),(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:(0,xo.F_)(WC.ng,{programId:t})})})]})},f1=e=>(0,r.useMemo)((()=>JS(e)),[e]),m1=e=>e.si.compareColumns,g1=(0,yr.P1)(m1,(e=>e.map((e=>{let{id:t}=e;return t})).filter(er.$K))),y1=(0,yr.P1)(m1,((e,t)=>t),((e,t)=>e.find((e=>e.id===t)))),v1=(0,yr.P1)(m1,(e=>e.every((e=>(0,er.yD)(e.crop_types)||(0,er.yD)(e.subsection_ids)||(0,er.yD)(e.years))))),b1=(0,yr.P1)(((e,t)=>y1(e,t)),(e=>(0,er.yD)(null===e||void 0===e?void 0:e.crop_types)||(0,er.yD)(null===e||void 0===e?void 0:e.subsection_ids)||(0,er.yD)(null===e||void 0===e?void 0:e.years)));var _1=n(67541);const w1=(0,Z.ZP)(YE)`
  gap: 25px;
`,x1=(0,Z.ZP)(KE)`
  min-width: 150px;
  flex-basis: ${e=>{let{itemsLength:t}=e;return(0,er.kK)((0,LS.tA)(100,t))?"auto":`${(0,LS.tA)(100,t)}%`}};
`,k1=Z.ZP.div`
  height: ${e=>{let{height:t}=e;return(0,er.$K)(t)?t:"52"}}px;
  display: flex;
  align-items: ${e=>{let{alignItems:t="center"}=e;return t}};
  justify-content: ${e=>{let{justifyContent:t="center"}=e;return t}};
  border-bottom: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
`,C1=Z.ZP.div`
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex-grow: 1;
  min-width: 0;
`,S1=e=>{let{rowHeaders:t}=e;const n=t.filter(er.$K);return(0,w.jsx)(T1,{children:n.map((e=>{let{enabled:t=!0,...n}=e;return(0,er.X0)(t)?null:(0,w.jsxs)(E1,{direction:"column",alignItems:"flex-end",justifyContent:"center",hasDivider:(0,er.fQ)(n.divider),height:n.height,children:[(0,w.jsx)(M1,{variant:"medium",bold:!0,noMargin:!0,children:n.title}),(0,er.$K)(n.subtitle)&&(0,w.jsx)(M1,{variant:"small-thin",noMargin:!0,children:n.subtitle})]},n.title)}))})},M1=(0,Z.ZP)(Rn.x)`
  text-align: end;
`,T1=Z.ZP.div`
  min-width: 230px;
  max-width: 270px;
  width: 20%;
`,E1=(0,Z.ZP)(Cd.k)`
  height: ${e=>{let{height:t}=e;return(0,er.$K)(t)?t:"52"}}px;
  padding: 0 16px;
  border-bottom: ${e=>{let{hasDivider:t}=e;return t?"4px":"1px"}} solid
    ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
  border-right: 2px solid #e0e0e0;
`;var P1=n(67838),I1=n.n(P1);const O1=e=>{let{title:t,year:n,rows:r}=e;return(0,w.jsx)(L1,{children:(0,w.jsxs)(Cd.k,{fullWidth:!0,direction:"column",gap:5,children:[(0,w.jsxs)(Cd.k,{justifyContent:"space-between",children:[(0,er.$K)(t)&&(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,children:t}),(0,er.$K)(n)&&(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,children:n})]}),r.map(((e,t)=>{let[n,r]=e;return(0,w.jsxs)(Cd.k,{fullWidth:!0,justifyContent:"space-between",children:[(0,w.jsx)(R1,{children:(0,w.jsx)(d.ZT,{...n.config,children:n.value})}),(0,w.jsx)(j1,{children:(0,w.jsx)(d.ZT,{variant:"h5",...r.config,children:r.value})})]},t)}))]})})},L1=Z.ZP.div`
  max-width: 250px;
`,R1=Z.ZP.div`
  max-width: 50%;
`,j1=(0,Z.ZP)(R1)`
  text-align: right;
`,D1=e=>{let{onChange:t,selectedId:n}=e;const{cropIds:r}=$E(),{getSourcingRegionsText:i}=iO(),o=FS(),{flattenedScenarios:a}=$T(),s={value:void 0,label:uS.K5},l=[s,...(c=a,c.filter((e=>"ACTIVE"===e.status))).map((e=>({value:e.id,label:e.name,scenario:e})))];var c;const u=l.find((e=>e.value===n));return(0,w.jsx)(A1,{children:(0,w.jsx)(PO.ZP,{id:"data-scenario-select",isSearchable:!1,value:u,classNamePrefix:"scenario-select",formatOptionLabel:e=>{let{label:t,value:n,scenario:a}=e;return(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(d.ZT,{children:t}),(0,er.$K)(a)&&(0,w.jsx)(d.u,{id:`option-${n}`,placement:"right",title:(0,w.jsx)(O1,{rows:NE(a,r,i,o)}),children:(0,w.jsx)("div",{className:"tooltip-icon",children:(0,w.jsx)(d.JO,{type:"info-circled"})})})]})},options:l,onChange:e=>(0,er.$K)(e)&&t(e.value),defaultValue:s})})},A1=(0,d.zo)("div")`
  .scenario-select {
    &__control {
      display: flex;
      align-content: center;
      border-radius: 20px;
      min-height: 32px;
      height: 32px;
      .tooltip-icon {
        display: none;
      }
    }

    &__menu {
      width: 200px;
    }

    &__indicator-separator {
      display: none;
    }

    &__option {
      &--is-focused {
        background-color: ${e=>e.theme.palette.semanticPalette.surface.main};
      }
      &--is-selected {
        color: ${e=>e.theme.palette.semanticPalette.text.main};
        background-color: ${e=>e.theme.palette.semanticPalette.surface.secondary};
      }
    }
  }
`,N1=e=>{let{selectedIds:t,availableSubsectionIds:n,options:i,onChange:o}=e;const a=r.useMemo((()=>0!==t.length&&t.length===n.length),[n.length,t.length]),s=(0,r.useCallback)((e=>{o(e)}),[o]),l=(0,r.useCallback)((()=>{s([])}),[s]);return(0,w.jsx)(HE.b,{id:"regions-filter",className:"area-select-menu",allowSelectAll:!0,allowSearch:!0,allLabel:"Select all regions",selectedLabel:"sub-regions",noneSelectedLabel:"Select regions",options:i,selected:t.map(String),disabled:!1,allSelected:a,onSelect:e=>{const r=eP({selectedIds:t,allAvailableIds:n})(e);s(r)},onClear:l})},F1=e=>{let{defaultValue:t=[],onChange:n,yearsAvailable:i}=e;const[o,a]=(0,r.useState)(false),[s,l]=(0,r.useState)(t),[c,u]=s,d=o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(ni.k,{justifyContent:"space-between",className:"mb-2",nowrap:!0,children:[(0,w.jsx)(On.mg,{id:"years-select-year-from",name:"years-select-year-from",menuItems:i,value:c,onChange:e=>{const t=[c,u||c];t[1]&&t[1]<Number(e)?l([Number(e),Number(e)]):(t[0]=Number(e),l(t))}}),(0,w.jsx)(On.mg,{id:"years-select-min-year-to",name:"years-select-min-year-to",menuItems:i.filter((e=>e>=(null!==c&&void 0!==c?c:0))),value:u||c,onChange:e=>{const t=[...s];t[1]=Number(e),l(t)}},c)]}),(0,w.jsx)(ni.k,{justifyContent:"center",children:(0,w.jsx)(kd.w,{flat:!0,onClick:()=>{const e=qf()(s.filter(er.$K));n(e)},children:"Apply"})})]}):(0,w.jsx)(On.aV,{children:i.map((e=>{const t=[c,u].includes(e);return(0,w.jsx)(On.HC,{primaryText:e,primaryTextStyle:{color:t?"green":"black"},role:"button",onClick:()=>{n([e])}},e)}))});return(0,w.jsxs)(w.Fragment,{children:[false,d]})},z1=e=>{let{selectedYears:t=[],allAvailableYears:n,onChange:i}=e;const[o,a]=(0,r.useState)(!1),s=`Crop ${(0,xi.E4)("year",t)} ${t.filter(er.$K).join(" - ")}`,[l,c]=t;return(0,w.jsx)(jJ.l,{id:"years-select",className:"area-select-menu divider",expand:o,setExpand:a,label:s,dropdownStyle:{overflow:"visible"},children:(0,w.jsx)(F1,{yearsAvailable:n,defaultValue:[l,c],onChange:e=>{a(!1),i(e)}})})},B1=()=>{const{flattenedScenarios:e}=$T(),t=(0,r.useCallback)((t=>(0,er.o8)(t)?void 0:e.find((e=>e.id===t))),[e]);return{getDataScenarioById:t}},U1=e=>{var t,n,i,o,a,s;let{filterId:l,canRemove:c}=e;const{programId:u}=YC(),{programSupplySheds:p}=vT(),{getSourcingRegionsText:f}=iO(),{getDataScenarioById:m}=B1(),{getHasTabAccess:g}=jS(),y=(0,h.T)(),v=(0,h.C)((e=>nS(e,u))),b=(0,h.C)((e=>y1(e,l))),_=(0,h.C)((e=>b1(e,l))),x=(0,h.C)(S.DC),k=UE(),C=RS(null!==v&&void 0!==v?v:void 0),M=null===b||void 0===b?void 0:b.data_scenario_id,T=(0,r.useMemo)((()=>(0,er.$K)(M)?m(M):void 0),[m,M]),{loading:E,response:P}=ME({kpi:"crop_area",summarizeBy:[],subsectionIds:null===b||void 0===b?void 0:b.subsection_ids,cropIds:null===b||void 0===b?void 0:b.crop_types,year:null===b||void 0===b?void 0:b.years[0],dataScenarioId:null!==M&&void 0!==M?M:void 0}),I=(0,r.useMemo)((()=>(0,er.$K)(T)&&(0,er.Of)(T.regions)?qS(p,T.regions):p),[T,p]),O=JS(I),L=r.useMemo((()=>tM(I)),[I]),R=r.useMemo((()=>{var e,t;if(I1()(null===T||void 0===T?void 0:T.crops)&&I1()(null===T||void 0===T?void 0:T.cropRotations))return k;const n=null!==(e=null===T||void 0===T?void 0:T.crops)&&void 0!==e?e:LE(null!==(t=null===T||void 0===T?void 0:T.cropRotations)&&void 0!==t?t:null);return(0,er.Of)(n)?k.filter((e=>n.includes(Number(e.value)))):k}),[k,null===T||void 0===T?void 0:T.cropRotations,null===T||void 0===T?void 0:T.crops]),{cropOptions:j}=r.useMemo((()=>nM(p,R,null===b||void 0===b?void 0:b.subsection_ids)),[R,null===b||void 0===b?void 0:b.subsection_ids,p]),D=r.useMemo((()=>{var e,t,n;return(t=null!==(e=null===b||void 0===b?void 0:b.crop_types)&&void 0!==e?e:[],n=j,t.map((e=>{var t;return null===(t=n.find((t=>String(t.value)===String(e))))||void 0===t?void 0:t.label}))).filter(er.$K).join("; ")}),[j,null===b||void 0===b?void 0:b.crop_types]);return(0,w.jsxs)($1,{children:[g("data_scenarios")&&(0,w.jsx)(k1,{height:39,justifyContent:"flex-start",children:(0,w.jsx)(D1,{onChange:e=>{y((0,yT.a8)({id:l,data_scenario_id:e,subsection_ids:[],crop_types:[],years:[]}))},selectedId:null===b||void 0===b?void 0:b.data_scenario_id})}),(0,w.jsx)(d.u,{title:f(null!==(t=null===b||void 0===b?void 0:b.subsection_ids)&&void 0!==t?t:[]),id:`selected-subregions-tooltip-${l}`,disableInteractive:!0,children:(0,w.jsx)(k1,{height:39,children:(0,w.jsx)(N1,{selectedIds:null!==(n=null===b||void 0===b?void 0:b.subsection_ids)&&void 0!==n?n:[],availableSubsectionIds:O,options:L,onChange:e=>{y((0,yT.a8)({id:l,subsection_ids:e}))}})})}),(0,w.jsx)(d.u,{title:(null!==(i=null===b||void 0===b?void 0:b.crop_types.length)&&void 0!==i?i:0)>1?D:"",id:`selected-crops-tooltip-${l}`,disableInteractive:!0,children:(0,w.jsx)(k1,{height:39,children:(0,w.jsx)(tP,{selectedCropIds:null!==(o=null===b||void 0===b?void 0:b.crop_types)&&void 0!==o?o:[],cropTypeOptions:j,onChange:e=>{y((0,yT.a8)({id:l,crop_types:e}))}})})}),(0,w.jsx)(k1,{height:39,children:(0,w.jsx)(z1,{selectedYears:null!==(a=null===b||void 0===b?void 0:b.years)&&void 0!==a?a:[],allAvailableYears:C,onChange:e=>{y((0,yT.a8)({id:l,years:e}))}})}),(0,w.jsxs)(k1,{height:39,justifyContent:"space-between",children:[!_&&(0,er.X0)(E)&&(0,er.$K)(P)?(0,_u.wH)((0,NT.$F)({value:null===(s=P.metric)||void 0===s?void 0:s.value,from:"m2",to:x}).value):uS.QE,(0,w.jsxs)(d.xu,{display:"flex",gap:2,alignItems:"center",children:[c&&(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",size:"small",onClick:()=>y((0,yT.Si)({id:l})),children:(0,w.jsx)(d.JO,{type:"delete"})}),(0,w.jsx)(d.zx,{variant:"outlined",color:"secondary",size:"small",onClick:()=>{y((0,yT.a8)({id:l,subsection_ids:[],crop_types:[],years:[],data_scenario_id:void 0}))},children:"Clear"})]})]})]})},$1=(0,Z.ZP)(C1)`
  //Overriding styles for fluro-chip
  .area-select-menu {
    .fluro-chip {
      border: none;
      border-bottom: 1px solid ${e=>e.theme.color.stroke.strong};
      height: 39px;
      border-radius: 0;
      width: 100%;
      background-color: ${e=>e.theme.color.stroke.subtle};
    }
    &.divider {
      .fluro-chip {
        border-bottom: 4px solid ${e=>e.theme.color.stroke.strong};
      }
    }
  }
`,V1=e=>{let{defaultFilterItem:t}=e;const{getHasTabAccess:n}=jS(),i=(0,h.T)(),o=(0,h.C)(g1),a=(0,h.C)(S.DC),s=r.useCallback((()=>{const e=(0,_1.Z)();i((0,yT.a6)({id:e,...t}))}),[t,i]);return r.useEffect((()=>{(0,er.yD)(o)&&(0,c.dC)((()=>{for(let e=0;e<uS.kr;e++)s()}))}),[o,s]),(0,w.jsx)(WE,{position:"top",style:{padding:"0"},children:(0,w.jsxs)(UL,{children:[(0,w.jsxs)(Cd.k,{justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(zL,{title:"Select regions to compare",subtitle:"Select supply sheds or sub-regions, crops and crop years and then click apply"}),(0,w.jsx)(d.zx,{disabled:o.length>=5,onClick:s,startIcon:(0,w.jsx)(d.JO,{type:"plus"}),children:"Compare another region"})]}),(0,w.jsxs)(w1,{children:[(0,w.jsx)(S1,{rowHeaders:[n("data_scenarios")?{title:"Data scenario",height:39}:void 0,{title:"Supply sheds or sub-regions",height:39},{title:"Crops",height:39},{title:"Crop year",height:39,divider:!0},{title:"Total land",height:39,subtitle:(0,xi.LF)((0,mS.O)(a))}]}),o.map((e=>(0,w.jsx)(x1,{itemsLength:o.length,children:(0,w.jsx)(U1,{filterId:e,canRemove:o.length>uS.kr},e)},e)))]})]})})},q1=e=>{let{rowHeaders:t,title:n,subtitle:r,tooltip:i,children:o}=e;return(0,w.jsxs)(UL,{children:[(0,w.jsx)(zL,{title:n,subtitle:r,tooltip:i}),(0,w.jsxs)(w1,{children:[(0,w.jsx)(S1,{rowHeaders:t}),o]})]})},Z1=e=>{let{copy:t}=e;return(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalette.text.secondary",fontStyle:"italic",children:null!==t&&void 0!==t?t:"No data available"})},H1=(e,t,n)=>{switch(t){case"crop_area":case"cover_crop":case"cropland_to_grassland_lulc":case"grassland_to_cropland_lulc":case"grassland_to_cropland_dluc":case"tillage":return(0,NT.$F)({value:e,from:"m2",to:n}).value;case"ghg_kg_per_m2":case"soc_kg_per_m2":case"net_impact_kg_per_m2":return(0,NT.MA)(e,n).value;case"living_root_cover":return 100*e;case"fertilizer_per_area":return(0,NT.T1)(e,n).value*uS.xB;case"yield_per_area":return(0,NT.T1)(e,n).value;case"fert_emissions_factor":case"ghg_emissions_factor":case"soc_emissions_factor":case"net_ghg_emissions_factor":case"living_root_health":case"living_root_confidence":case"crop_rotation_number":case"crop_rotation_fallow":case"crop_rotation_common_rotations":case"farm_count":return e}};var G1=n(59025),W1=n.n(G1),Y1=n(67954),K1=n.n(Y1);function X1(e){const t=(0,r.useRef)(e);return K1()(t.current,e)||(t.current=e),t.current}const J1=e=>{let{debounceMS:t=uS.tI,payload:n,shouldFetch:i=!0}=e;const{programId:o}=YC(),[a,s]=(0,r.useState)(!1),{isKPIAvailable:l}=kE(),c=(0,r.useMemo)((()=>!(null===n||void 0===n||!n.kpi_type)&&l(uS.SP[n.kpi_type])),[l,null===n||void 0===n?void 0:n.kpi_type]),u=(0,er.$K)(o)&&(0,er.$K)(n)&&(0,er.Of)(n.common_filters.crop_types)&&(0,er.Of)(n.common_filters.sourcing_regions),d=c&&u&&i,p=(0,r.useMemo)((()=>null!==n&&void 0!==n&&n.common_filters?{...n,common_filters:{...n.common_filters,crop_types:null===n||void 0===n?void 0:n.common_filters.crop_types.toSorted(),sourcing_regions:null===n||void 0===n?void 0:n.common_filters.sourcing_regions.toSorted(((e,t)=>e.unit_id-t.unit_id))}}:n),[n]),{data:h,isLoading:f,...m}=(0,Ju.Z)(d&&!a?[pS.fetchKPIDataV2(o,n.kpi_type),o,p]:null,(async()=>{if((0,er.kK)(o)||(0,er.kK)(n))return Promise.reject("Missing request parameters");const e=await qC.Z.getKPIDataV2(o,n);return Promise.resolve(e.data.data)}));return(0,r.useEffect)((()=>{if(!d)return;s(!0);const e=setTimeout((()=>{s(!1)}),t);return()=>clearTimeout(e)}),[d,t,n]),{response:h,isLoading:f||a,...m}};var Q1=n(89225),e0=n.n(Q1);const t0=(e,t)=>(0,er.$K)(e)?t(e.metric):null,n0=(e,t)=>Object.entries(e).map((e=>{let[n,r]=e;return[n,t(r)]})),r0=(e,t)=>(0,er.$K)(e)&&(0,er.$K)(e.boundary_summary)?n0(e.boundary_summary,t):null,i0=(e,t)=>(0,er.$K)(e)&&(0,er.$K)(e.annualized_summary)?n0(e.annualized_summary,t):null,o0=(e,t)=>(0,er.$K)(e)&&(0,er.$K)(null===e||void 0===e?void 0:e.boundary_annualized_summary)?Object.entries(e.boundary_annualized_summary).map((e=>{let[n,r]=e;return[n,(0,er.$K)(r)?n0(r,t):null]})):null,a0=(e,t,n)=>{const r=e[0].value-e[1].value;return{value:r,unit:t,formattedValue:n(r)}},s0=e=>{let{kpi:t,summaries:n,commonFilters:i,kpiTransformer:o,shouldFetch:a,debounceMS:s}=e;const l=X1(o),c=X1(n),u=X1(i),d=(0,r.useMemo)((()=>((e,t,n)=>(0,er.kK)(n)?void 0:{kpi_type:e,summarize_by:t,common_filters:n})(t,c,u)),[u,t,c]),{response:p,isLoading:h}=J1({shouldFetch:a,debounceMS:s,payload:d}),f=(0,r.useCallback)(((e,t,n)=>{if(W1()(c,e))return((e,t)=>(null!==e&&void 0!==e?e:{}).hasOwnProperty(t))(p,t)?n(p):null}),[p,c]),m=(0,r.useMemo)((()=>t0(p,l)),[l,p]),g=(0,r.useMemo)((()=>f("boundary","boundary_summary",(e=>r0(e,l)))),[f,l]),y=(0,r.useMemo)((()=>f("annualized","annualized_summary",(e=>i0(e,l)))),[f,l]),v=(0,r.useMemo)((()=>f("crop_type","crop_type_summary",(e=>((e,t)=>(0,er.$K)(e)&&(0,er.$K)(e.crop_type_summary)?n0(e.crop_type_summary,t):null)(e,l)))),[f,l]),b=(0,r.useMemo)((()=>f("boundary_annualized","boundary_annualized_summary",(e=>o0(e,l)))),[f,l]);return{rawResponse:p,isLoading:h,topLevel:m,boundarySummary:g,annualizedSummary:y,cropTypeSummary:v,boundaryAnnualizedSummary:b}},l0=e=>(0,NT.Wy)(e),c0={covercroppedArea:KJ.pl,totalTrackedArea:KJ.pl,adoption:e=>(0,KJ.vy)(e,{sigDigits:1}),unknownArea:KJ.pl,notApplicableArea:KJ.pl},u0={covercroppedArea:l0,totalTrackedArea:l0,adoption:()=>({unit:"unit-interval",unitName:{singular:"% of cropland area practicing",plural:"% of cropland area practicing",abbr:""}}),unknownArea:l0,notApplicableArea:l0},d0=e=>t=>{var n,r,i,o;if(!Number.isFinite(t.cover_cc_area_m2)||!Number.isFinite(t.cover_nocc_area_m2)||!Number.isFinite(null!==(n=t.cover_unknowncc_area_m2)&&void 0!==n?n:0)||!Number.isFinite(null!==(r=t.cover_not_applicable_cc_area_m2)&&void 0!==r?r:0)||(0,er.kK)(t.cover_cc_area_m2)||(0,er.kK)(t.cover_nocc_area_m2))return null;const a=t.cover_cc_area_m2+t.cover_nocc_area_m2;if(0===a)return null;const s=(0,NT.Ai)({value:t.cover_cc_area_m2,from:"m2",to:e}),l=u0.covercroppedArea(e),c=(0,NT.Ai)({value:a,from:"m2",to:e}),u=u0.totalTrackedArea(e),d=t.cover_cc_area_m2/a,p=u0.adoption(e),h=(0,NT.Ai)({value:null!==(i=t.cover_unknowncc_area_m2)&&void 0!==i?i:0,from:"m2",to:e}),f=u0.unknownArea(e),m=(0,NT.Ai)({value:null!==(o=t.cover_not_applicable_cc_area_m2)&&void 0!==o?o:0,from:"m2",to:e}),g=u0.notApplicableArea(e);return{covercroppedArea:{value:s,unit:l.unit,formattedValue:c0.covercroppedArea(s)},totalTrackedArea:{value:c,unit:u.unit,formattedValue:c0.totalTrackedArea(c)},adoption:{value:d,unit:p.unit,formattedValue:c0.adoption(d)},unknownArea:{value:h,unit:f.unit,formattedValue:c0.unknownArea(h)},notApplicableArea:{value:m,unit:g.unit,formattedValue:c0.notApplicableArea(m)}}},p0={farm_count:KJ.tW},h0=()=>({unit:"count",unitName:{singular:"farm",plural:"farms",abbr:""}}),f0=e=>{if((0,er.kK)(e.farm_count)||!Number.isFinite(e.farm_count))return null;const t=h0();return{farm_count:{value:e.farm_count,unit:t.unit,formattedValue:p0.farm_count(e.farm_count)}}},m0=e=>(0,NT.eo)({unit1:"kg",unit2:e}),g0={fertMassPerArea:KJ.tW,fertKPerArea:KJ.tW,fertSPerArea:KJ.tW,fertNPerArea:KJ.tW,fertPPerArea:KJ.tW},y0={fertMassPerArea:m0,fertKPerArea:m0,fertSPerArea:m0,fertNPerArea:m0,fertPPerArea:m0},v0=e=>t=>{const n=(0,ii._J)(t);if((0,er.kK)(t.fert_kg_per_m2)||0===t.fert_kg_per_m2||n.every(er.kK)||n.some((e=>!Number.isFinite(null!==e&&void 0!==e?e:0))))return null;const r=t=>t/(0,NT.Ai)({value:1,from:"m2",to:e}),i=y0.fertMassPerArea(e),o=r(t.fert_kg_per_m2),a=(0,LS.Gr)(t.fert_k_kg_per_m2,r),s=(0,LS.Gr)(t.fert_s_kg_per_m2,r),l=(0,LS.Gr)(t.fert_p_kg_per_m2,r),c=(0,LS.Gr)(t.fert_n_kg_per_m2,r);return{fertMassPerArea:{value:o,unit:i.unit,formattedValue:g0.fertMassPerArea(o)},fertKPerArea:(0,er.$K)(a)?{value:a,unit:i.unit,formattedValue:g0.fertKPerArea(a)}:null,fertSPerArea:(0,er.$K)(s)?{value:s,unit:i.unit,formattedValue:g0.fertSPerArea(s)}:null,fertPPerArea:(0,er.$K)(l)?{value:l,unit:i.unit,formattedValue:g0.fertPPerArea(l)}:null,fertNPerArea:(0,er.$K)(c)?{value:c,unit:i.unit,formattedValue:g0.fertNPerArea(c)}:null}},b0={unit:"unit-interval",unitName:{singular:"% cover",plural:"% cover",abbr:""}},_0=e=>(0,KJ.vy)(e,{sigDigits:1}),w0={yearAvg:_0,Jan:_0,Feb:_0,Mar:_0,Apr:_0,May:_0,Jun:_0,Jul:_0,Aug:_0,Sep:_0,Oct:_0,Nov:_0,Dec:_0},x0={yearAvg:b0,Jan:b0,Feb:b0,Mar:b0,Apr:b0,May:b0,Jun:b0,Jul:b0,Aug:b0,Sep:b0,Oct:b0,Nov:b0,Dec:b0},k0=e=>{const t=(0,ii._J)(e);if(t.every(er.kK)||t.some((e=>!Number.isFinite(null!==e&&void 0!==e?e:0))))return null;const n=e0()((0,ii._J)(e)),r=(e,t)=>(0,er.$K)(t)?{value:t,unit:x0[e].unit,formattedValue:w0[e](t)}:null;return{yearAvg:Number.isFinite(n)?r("yearAvg",n):null,Jan:r("Jan",e.living_root_cover_1),Feb:r("Feb",e.living_root_cover_2),Mar:r("Mar",e.living_root_cover_3),Apr:r("Apr",e.living_root_cover_4),May:r("May",e.living_root_cover_5),Jun:r("Jun",e.living_root_cover_6),Jul:r("Jul",e.living_root_cover_7),Aug:r("Aug",e.living_root_cover_8),Sep:r("Sep",e.living_root_cover_9),Oct:r("Oct",e.living_root_cover_10),Nov:r("Nov",e.living_root_cover_11),Dec:r("Dec",e.living_root_cover_12)}},C0=(e,t)=>n=>{let{kpi:r,children:i,...o}=n;const{isKPIAvailable:a}=kE();return a(r)?(0,w.jsx)(k1,{...o,children:e||t?uS.QE:(0,er.kK)(i)?(0,w.jsx)(Z1,{}):i}):null},S0=e=>{var t,n;if(!((0,er.kK)(e)||(0,er.kK)(e.year)||(0,er.yD)(e.cropIds)||(0,er.yD)(e.subsectionIds)))return{sourcing_regions:(t=e.subsectionIds.toSorted(lS.nO),n="subsection",t.map((e=>({unit_id:e,unit_type:n})))),crop_types:e.cropIds.toSorted(lS.nO),data_scenario_id:e.dataScenarioId,year_of_interest:e.year,boundary_type:"subsection"}},M0=e=>(0,er.kK)(e)?void 0:S0({year:e.years[0],subsectionIds:e.subsection_ids,cropIds:e.crop_types,dataScenarioId:e.data_scenario_id});var T0=n(98813),E0=n.n(T0);const P0=e=>{let{kpi:t,summarizeBy:n,topNCrops:r,...i}=e;const o=(0,h.C)(WI),a=(0,h.C)(HI),s=(0,h.C)(VI),l=(0,h.C)(KI),{response:c,loading:u}=ME({kpi:t,summarizeBy:n,year:a[0],topNCrops:r,subsectionIds:s,cropIds:o,dataScenarioId:null!==l&&void 0!==l?l:void 0,...i});return{response:c,loading:u}},I0=e=>{var t;let{panels:n,description:i,isLoading:o=!1,onPanelChange:a,...s}=e;if(qf()(n.map((e=>{let{label:t}=e;return t}))).length!==n.length)throw new Error("MultiPanelChartTile: Panel labels must be unique");const[l,c]=r.useState(0),{component:u,subtitle:p}=null!==(t=n[l])&&void 0!==t?t:{};return r.useEffect((()=>c(0)),[n.length]),(0,w.jsx)(d.Bj,{description:null!==p&&void 0!==p?p:i,...s,children:o||n.length<1?(0,w.jsx)(bT,{id:"multi-panel-chart-tile"}):(0,w.jsxs)(d.Kq,{display:"flex",height:1,children:[(0,w.jsx)(d.xu,{flexGrow:1,children:u}),n.length>1&&(0,w.jsx)(d.xu,{display:"flex",justifyContent:"center",my:2,children:(0,w.jsx)(d.th,{size:"small",value:l,children:n.map(((e,t)=>{var r;let{label:i}=e;return(0,w.jsx)(d.CO,{onClick:()=>(e=>{c(e),null===a||void 0===a||a(e)})(t),value:t,children:(0,w.jsx)(d.u,{title:null===(r=n[t])||void 0===r?void 0:r.tooltip,id:`button-${t}-tooltip`,children:(0,w.jsx)("div",{children:i})})},i)}))})})]})})},O0=2015;let L0=function(e){return e.OVER_TIME="Over time",e.BY_CROP_TYPE="By crop type",e.BY_AREA="By area",e.EMISSION_BREAKDOWN="Emission breakdown",e.BY_NUMBER_OF_CROPS="By # of crops",e.BY_ROTATION_TYPE="By rotation type",e.FALLOW="Fallow",e.BY_NUTRIENT_TYPE="By nutrient type",e.CONVERSION="Conversion",e.BY_DLUC="By dLUC",e.RESTORATION="Restoration",e.BY_MONTH="By month",e.BY_TILLAGE_TYPE="By tillage type",e.BY_TILLAGE_TYPE_TIME="By tillage type / time",e}({});const R0="in metric tons of CO2e per",j0=e=>`${R0} ${(0,mS.O)(e,!1)}`,D0="in kg CO2e / kg yield",A0={ghg_emission:{title:"GHG emissions",description:j0,cardTooltip:"This metric measures greenhouse gas (GHG) emissions, specifically N2O (nitrous oxide) and CH4 (methane) emissions, from crop production.",panelTooltips:{[L0.BY_CROP_TYPE]:"Here you can see average GHG emissions per individual crop type in your selected regions.",[L0.BY_AREA]:"Here you can see average GHG emissions per individual county in your selected regions."}},soc_sequestration:{title:"Soil organic carbon (dSOC) sequestration",description:j0,cardTooltip:["Soil organic carbon (SOC) is the ability of soil to store, or sequester, greenhouse gases in the form of carbon. Regrow measures dSOC, is which is the difference of soil organic carbon. This is calculated by taking the difference of SOC values between 2 points in time, such as at the start and end of a year.","Regenerative agriculture practices can help the soil's ability to remove greenhouse gases from the atmosphere."],panelTooltips:{[L0.BY_CROP_TYPE]:"Here you can see average dSOC sequestration per individual crop type in your selected regions.",[L0.BY_AREA]:"Here you can see average dSOC sequestration per individual county in your selected regions."}},net_emission:{title:"Net emissions",description:j0,cardTooltip:["Net emissions is the combination of GHG emissions and soil organic carbon sequestration. This represents the net impact from agricultural activities. In other words:","Net emissions = GHG emissions - removals from SOC sequestration."],panelTooltips:{[L0.BY_CROP_TYPE]:"Here you can see average net emissions per individual crop type in your selected regions.",[L0.BY_AREA]:"Here you can see average net emissions per individual county in your selected regions.",[L0.EMISSION_BREAKDOWN]:"Here you can see average net emissions broken down by total GHG emissions minus dSOC sequestration."}},yield:{title:"Crop yield",description:e=>`in kg/${(0,mS.O)(e)}`,cardTooltip:"Crop yield is the amount of a crop harvested per unit of land area."},crop_rotation:{title:"Crop rotation",cardTooltip:"Crop rotation is agriculture practice which involves alternating the types of crops that are grown in the same place with the aim of improving the efficiency of the crops, minimizing soil wear, and controlling the development of diseases and pests.",panelDescriptions:{[L0.BY_NUMBER_OF_CROPS]:(e,t)=>`# of crops in rotation between ${e}-${t}`,[L0.BY_ROTATION_TYPE]:e=>`Most common crop rotations in ${(0,mS.O)(e)}`,[L0.FALLOW]:(e,t)=>`Frequency of fallow between ${e}-${t}`},panelTooltips:{[L0.BY_ROTATION_TYPE]:"Here you can view the specific combinations of crops that comprise the most common crop rotations in your regions. Regrow calculates these metrics for each field in your selected regions over a 5 year period.",[L0.FALLOW]:"Here you can view the frequency of fallow seasons in your crop rotations. A piece of land is considered fallow if it has been intentionally left unplanted for a season so as to allow time for the soil to regenerate between harvests."}},cover_cropping:{title:"Cover cropping",description:e=>`Area of cropland with cover crop in ${(0,mS.O)(e)}`,cardTooltip:["A cover crop is a crop grown for the protection and enrichment of the soil.","Planting a cover crop helps minimize the amount of bare soil on the land and prevents erosion."],panelTooltips:{[L0.BY_CROP_TYPE]:"Here you can view the area of cropland with cover crop present, per individual crop type in your selected regions."}},tillage:{title:"Tillage",description:()=>"Area of cropland practicing conservation tillage",cardTooltip:["Tillage is the process of turning over the soil in a field. Conservation tillage is a regenerative agriculture approach that aims to minimize the frequency or intensity of field tillage. Reduced or eliminated tillage can greatly improve soil health.","Area of conservation tillage = area of reduced tillage + area of no tillage"],panelTooltips:{[L0.BY_TILLAGE_TYPE]:"Here you can view the percentage of land area practicing different tillage methods in your selected regions.",[L0.BY_TILLAGE_TYPE_TIME]:"Here you can view the portion of land area practicing different tillage methods in your selected regions over the past 5 years."}},fertilizer_usage:{title:"Fertilizer application",cardTooltip:"Fertilizer is a substance containing one or more essential nutrients applied to crops to provide a production benefit. An excess application of fertilizer can negatively affect soil biology.",description:e=>`Average application in kg/${(0,mS.O)(e)}`,panelTooltips:{[L0.BY_NUTRIENT_TYPE]:"Here you can view the average quantity of different nutrient types that have been applied to your region over the past 5 years.",[L0.BY_CROP_TYPE]:"Here you can see average quantity of fertilizer applied per individual crop type in your selected regions."}},living_root:{title:"Living root",cardTooltip:["Living root is an indicator of the quantity of plant life (either intentional or voluntary) with roots in the ground. This includes both commodity crops and cover crops planted over the course of the year.","This helps to protect the soil from erosion, provides potential for grazing, and helps with weed control for the following crop while helping to reduce leaching of nutrients and improve soil infiltration"],panelTooltips:{[L0.BY_MONTH]:"The presence of living root cover can be correlated to crop health. The absence of living root cover, bare soil, is an indicator of poor crop health, whereas a high level of healthy vegetation indicates high crop health. "},panelDescriptions:{[L0.OVER_TIME]:"Portion of land area with living root per year",[L0.BY_MONTH]:"Portion of living root and crop health by month"}},lulc:{title:"Land use change",cardTooltip:"Land use change is a measure of changes in the way land is being used or managed by humans. These changes include certain continuous characteristics of the land such as vegetation type, soil properties, etc.",panelDescriptions:{[L0.CONVERSION]:"Annual grassland area converted to cropland",[L0.BY_DLUC]:"Grassland converted to cropland with 20 year discounting",[L0.RESTORATION]:"Annual cropland area restored to grassland"},panelTooltips:{[L0.BY_DLUC]:"A discounting factor is used to distribute the emissions from land use change over a given reporting period. This is because converting grassland to cropland in one year has lasting repercussions that may not appear until a few years after that conversion.",[L0.RESTORATION]:"Here you can view the portion of cropland that has been restored to native grassland from 2015 to 2018."}},ghg_emissions_factor:{title:"Field GHG emission factor",description:()=>D0,cardTooltip:["Field GHG emission factor measures GHG emissions per unit of yield. This represents the amount of CO2e released into the atmosphere as a result of field activities such as planting, fertilization, and crop harvesting. ","CO2e is a way of measuring the global warming potential of various GHG's by converting the amounts of other gases to the equivalent amount of carbon dioxide."]},net_ghg_emissions_factor:{title:"Field net emission factor",description:()=>D0,cardTooltip:"Field net emission factor measures the net emissions (GHG - SOC) per unit of yield. This represents the net amount of CO2e released into the atmosphere as a result of field activities such as planting, fertilization, and crop harvesting."},soc_emissions_factor:{title:"Field dSOC emission factor",description:()=>D0,cardTooltip:"Field dSOC emission factor measures the change in soil organic carbon (dSOC) per unit of yield. This represents the amount of CO2e captured by the soil or released into the atmosphere as a result of activities such as planting, harvest, land management, fertilization, and external natural events."},fert_emissions_factor:{title:"Fertilizer production emission factor",description:()=>D0,cardTooltip:["Fertilizer production emission factor measures the emissions from fertilizer production per unit of yield.","This represents the amount of CO2e released into the atmosphere in order to produce the quantity of fertilizer that is applied to a field."]},ef_book_values:{title:"Field to farm gate emission factor",description:()=>"in kg CO2e / kg of yield, sorted by descending book value",cardTooltip:["This emission factor is a combination of values that measures the emissions per unit of yield for several aspects of production from the field to the farm gate.","Regrow supplies the baseline value for the Emissions and Fertilizer components, where applicable.","For all other components, Quantis supplies the book values for this metric from the World Food LCA Database. All of the Quantis-supplied values are not updated by Regrow."]},farm_ownership:{title:"",description:()=>"",cardTooltip:""}};let N0=function(e){return e.OVER_TIME="Over time",e.BY_CROP_TYPE="By crop",e.BY_AREA="By area",e}({});const F0=10,z0={PREVIOUS_YEAR:`${uS.kh} from previous year`,YOY_AVERAGE:`${uS.kh} from YoY average`},B0=r.createContext({pagination:{setPaginationLength:()=>{},setPageSize:()=>{},page:0,pageSize:F0}}),U0=e=>{let{...t}=e;const[n,i]=r.useState(0),[o,a]=r.useState(0),[s,l]=r.useState(F0),c=(0,h.C)(WI),u=(0,h.C)(HI),p=(0,h.C)(VI),f=r.useMemo((()=>({pagination:{setPaginationLength:a,page:n,pageSize:s,setPageSize:l}})),[n,s]);return r.useEffect((()=>i(0)),[c,u,p]),(0,w.jsx)(B0.Provider,{value:f,children:(0,w.jsx)(I0,{...t,onPanelChange:()=>{i(0),a(0)},pagination:o>s?(0,w.jsx)(d.tl,{count:o,rowsPerPage:s,page:n,onSetPage:i}):null})})};var $0=n(7065),V0=n.n($0);const q0=e=>(t,n)=>({datum:(0,NT.Ai)({value:t,from:"m2",to:n}),label:e}),Z0=(e,t,n)=>{if(!(0,er.$K)(null===n||void 0===n?void 0:n.kpi_subtype_summary))return{datasets:[],labels:[]};const r=t.reduce(((e,t)=>{let[n,r,i]=t;return e[n]=(0,er.$K)(i)?i(r):(e=>(t,n)=>({datum:t,label:e}))(r),e}),{});const i=Object.entries(n.kpi_subtype_summary).toSorted(((e,t)=>{let[,n]=e,[,r]=t;return r-n})).reduce(((t,n)=>{let[i,o]=n;if(!(0,er.$K)(r[i]))return t;const{datum:a,label:s}=r[i](o,e);return t.datasets[0]?t.datasets[0].data.push(a):t={...t,datasets:[{data:[a]}]},t.labels?t.labels.push(s):t={...t,labels:[s]},t}),{datasets:[{data:[]}],labels:[]});return i},H0=[["nofallow_m2","No fallow",q0],["lowfallow_m2","1 fallow season",q0],["midfallow_m2","2 fallow seasons",q0],["highfallow_m2","3+ fallow seasons",q0],["croprtn_1_m2","1 crop",q0],["croprtn_2_m2","2 crops",q0],["croprtn_3_m2","3+ crops",q0]];var G0=n(54774),W0=n.n(G0);const Y0=()=>(0,w.jsxs)(d.Kq,{height:1,alignItems:"center",justifyContent:"center",direction:"row",gap:1,children:[(0,w.jsx)(d.le,{type:"chart",color:"disabled"}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:"Data is unavailable"})]}),K0=e=>{let{value:t}=e;return(0,w.jsx)(d.Kq,{direction:"row",gap:1,justifyContent:"start",paddingBottom:1,children:(0,w.jsx)(d.ZT,{variant:"h4",className:"label",children:t})})},X0=e=>{let{data:t,options:n,label:i}=e;const[o,a]=(0,r.useState)(),s=(0,r.useMemo)((()=>{const e={events:[],plugins:{tooltip:{enabled:!1}}};return(0,er.$K)(n)?W0()(e,n):e}),[n]);return(0,r.useEffect)((()=>{a(t)}),[t]),(0,er.$K)(o)&&!(0,LS.xb)(null===o||void 0===o?void 0:o.datasets)?(0,w.jsxs)(d.Kq,{height:1,children:[(0,er.$K)(i)?(0,w.jsx)(K0,{value:i}):null,(0,w.jsx)(d.Kq,{height:"100%",children:(0,w.jsx)(d.LD,{data:o,options:s})})]}):(0,w.jsx)(Y0,{})},J0={ac:"acres",ha:"hectares"},Q0=e=>(t,n)=>{var r;const i=null===(r=n.chart.data.labels)||void 0===r?void 0:r[n.dataIndex];return`${(0,er.$K)(i)?i:""}\n${(0,_u.wH)(t)} ${e}`},e2=(e,t)=>`${(0,KJ.tW)(t)} ${J0[e]} total`,t2=e=>t=>{let{raw:n}=t;return`${(0,er.hj)(n)?(0,KJ.tW)(n):n} ${J0[e]}`},n2=(e,t,n)=>{const r=(0,ii.pJ)(e).sort(((e,t)=>{let[,n]=e,[,r]=t;return r-n})),i=r.map((e=>{let[n]=e;return r2(n,t)})),o=r.map((e=>{let[t,r]=e;return(0,NT.$F)({value:r,from:"m2",to:n}).value}));return{datasets:[{data:o}],labels:i}},r2=(e,t)=>e.split(",").map((e=>{var n;return null===(n=t[Number(e)])||void 0===n?void 0:n.label})).join(" - "),i2=e=>{var t,n,i;let{filterId:o}=e;const a=VC("si-data-audit-numeric-changes"),s=(0,h.C)((e=>y1(e,o))),l=(0,h.C)((e=>b1(e,o))),{cropByCDLId:c}=(0,NS.n)(),u=(0,h.C)(S.DC),d=r.useMemo((()=>{var e;return{summarizeBy:[],subsectionIds:null===s||void 0===s?void 0:s.subsection_ids,cropIds:null===s||void 0===s?void 0:s.crop_types,year:null===s||void 0===s?void 0:s.years[0],dataScenarioId:null!==(e=null===s||void 0===s?void 0:s.data_scenario_id)&&void 0!==e?e:void 0}}),[null===s||void 0===s?void 0:s.crop_types,null===s||void 0===s?void 0:s.data_scenario_id,null===s||void 0===s?void 0:s.subsection_ids,null===s||void 0===s?void 0:s.years]),p=(0,r.useMemo)((()=>M0(s)),[s]),{isLoading:f,topLevel:m}=s0({kpi:"living_root_cover",summaries:[],commonFilters:p,kpiTransformer:k0}),{response:g,loading:y}=ME({kpi:"tillage",...d,summarizeBy:["kpi_subtype"]}),{response:v,loading:b}=ME({kpi:"grassland_to_cropland_lulc",...d}),{response:_,loading:x}=ME({kpi:"fertilizer_per_area",...d}),{isLoading:k,topLevel:C}=s0({kpi:"fertilizer_per_area",summaries:[],commonFilters:p,kpiTransformer:v0(u),shouldFetch:a}),M=(0,er.fQ)(a)?k:x,{response:T,loading:E}=ME({kpi:"crop_rotation_common_rotations",...d,summarizeBy:["crop_rotations"],topNCrops:5}),{isLoading:P,topLevel:I}=s0({kpi:"farm_count",summaries:[],commonFilters:p,kpiTransformer:f0}),{topLevel:O,isLoading:L}=s0({kpi:"cover_crop",summaries:[],commonFilters:p,kpiTransformer:d0(u)}),R=P||f||L||y||b||M||E,j=(0,r.useMemo)((()=>C0(l,R)),[l,R]),{conventionalTillValue:D,reducedTillValue:A,noTillValue:N}=(0,r.useMemo)((()=>{if(y)return{conventionalTillValue:uS.QE,reducedTillValue:uS.QE,noTillValue:uS.QE};const{kpi_subtype_summary:e}=null!==g&&void 0!==g?g:{};if((0,er.kK)(e))return{conventionalTillValue:(0,w.jsx)(Z1,{}),reducedTillValue:(0,w.jsx)(Z1,{}),noTillValue:(0,w.jsx)(Z1,{})};const{till_conv_area_m2:t=0,till_redu_area_m2:n=0,till_notill_area_m2:r=0}=e,i=t+n+r;if(0===i)return{conventionalTillValue:(0,w.jsx)(Z1,{}),reducedTillValue:(0,w.jsx)(Z1,{}),noTillValue:(0,w.jsx)(Z1,{})};return{conventionalTillValue:(0,KJ.vy)(t/i),reducedTillValue:(0,KJ.vy)(n/i),noTillValue:(0,KJ.vy)(r/i)}}),[y,g]),F=(0,r.useMemo)((()=>{if(b)return uS.QE;const{crop_area:e,metric:t}=null!==v&&void 0!==v?v:{};return(0,er.kK)(e)||(0,er.kK)(t)||0===e.value?(0,w.jsx)(Z1,{}):(0,KJ.vy)(t.value/e.value)}),[b,v]),z=(0,r.useMemo)((()=>{if((0,er.fQ)(a))return null===C||void 0===C?void 0:C.fertMassPerArea.formattedValue;{var e;const t=null===_||void 0===_||null===(e=_.metric)||void 0===e?void 0:e.value;return(0,er.$K)(t)?H1(t,"fertilizer_per_area",u).toFixed(2):null}}),[null===_||void 0===_||null===(t=_.metric)||void 0===t?void 0:t.value,null===C||void 0===C?void 0:C.fertMassPerArea.formattedValue,a,u]),{commonRotations:B}=(0,r.useMemo)((()=>{var e;return{commonRotations:n2(null!==(e=null===T||void 0===T?void 0:T.crop_rotations_summary)&&void 0!==e?e:{},c,u)}}),[null===T||void 0===T?void 0:T.crop_rotations_summary,c,u]);return(0,w.jsxs)(C1,{children:[(0,w.jsx)(j,{kpi:"farm_ownership",children:null===I||void 0===I?void 0:I.farm_count.formattedValue}),(0,w.jsx)(j,{kpi:"crop_rotation",height:290,children:(0,w.jsx)(o2,{direction:"column",justifyContent:"space-evenly",alignItems:"flex-end",children:(0,er.Of)(B.labels)?null===(n=B.datasets[0])||void 0===n?void 0:n.data.map(((e,t)=>{var n;return(0,w.jsxs)(Cd.k,{direction:"column",alignItems:"flex-end",children:[(0,w.jsx)("div",{children:null===(n=B.labels)||void 0===n?void 0:n[t]}),(0,w.jsx)(Rn.x,{noMargin:!0,variant:"small-thin",children:(0,_u.wH)(Number(e))})]},`${t}-${e}`)})):(0,w.jsx)(Z1,{})})}),(0,w.jsx)(j,{kpi:"living_root",children:null===m||void 0===m||null===(i=m.yearAvg)||void 0===i?void 0:i.formattedValue}),(0,w.jsx)(j,{kpi:"cover_cropping",children:null===O||void 0===O?void 0:O.adoption.formattedValue}),(0,w.jsx)(j,{kpi:"tillage",children:D}),(0,w.jsx)(j,{kpi:"tillage",children:A}),(0,w.jsx)(j,{kpi:"tillage",children:N}),(0,w.jsx)(j,{kpi:"lulc",children:F}),(0,w.jsx)(j,{kpi:"fertilizer_usage",children:z})]})},o2=(0,Z.ZP)(Cd.k)`
  height: 100%;
`,a2=()=>{const e=(0,h.C)(g1),t=(0,h.C)(S.DC),{isKPIAvailable:n}=kE();return(0,w.jsx)(q1,{title:"Agricultural Practices",rowHeaders:[{title:"Number of farms",enabled:n("farm_ownership")},{title:"5 most common crop rotations",subtitle:(0,xi.LF)((0,mS.O)(t)),height:290,enabled:n("crop_rotation")},{title:"Living root",subtitle:"% of year with living root cover",enabled:n("living_root")},{title:"Cover cropping",subtitle:"% of total land area planted with cover crop",enabled:n("cover_cropping")},{title:"Conventional till",subtitle:"% of total land area",enabled:n("tillage")},{title:"Reduced till",subtitle:"% of total land area",enabled:n("tillage")},{title:"No Till",subtitle:"% of total land area",enabled:n("tillage")},{title:"Land use land change",subtitle:"% of grassland converted to cropland",enabled:n("lulc")},{title:"Fertilizer application",subtitle:`kg / ${(0,mS.O)(t,!1)}`,enabled:n("fertilizer_usage")}],children:e.map((t=>(0,w.jsx)(x1,{itemsLength:e.length,children:(0,w.jsx)(i2,{filterId:t},t)},t)))})},s2=(0,NT.eo)({unit1:"kg",unit2:"kg",subUnit1:"CO2e",subUnit2:"yield"}),l2={fertEmissionsPerYield:KJ.tW},c2={fertEmissionsPerYield:s2},u2=e=>{if((0,er.kK)(e.fert_emissions_factor)||!Number.isFinite(e.fert_emissions_factor))return null;const t=e.fert_emissions_factor;return{fertEmissionsPerYield:{value:t,unit:c2.fertEmissionsPerYield.unit,formattedValue:l2.fertEmissionsPerYield(t)}}},d2=(0,NT.eo)({unit1:"kg",unit2:"kg",subUnit1:"CO2e",subUnit2:"yield"}),p2={ghgEmissionsPerYield:KJ.tW},h2={ghgEmissionsPerYield:d2},f2=e=>{if((0,er.kK)(e.ghg_emissions_factor)||!Number.isFinite(e.ghg_emissions_factor))return null;const t=e.ghg_emissions_factor;return{ghgEmissionsPerYield:{value:t,unit:h2.ghgEmissionsPerYield.unit,formattedValue:p2.ghgEmissionsPerYield(t)}}},m2=(0,NT.eo)({unit1:"kg",unit2:"kg",subUnit1:"CO2e",subUnit2:"yield"}),g2={netGhgEmissionsPerYield:KJ.tW},y2={netGhgEmissionsPerYield:m2},v2=e=>{if((0,er.kK)(e.net_ghg_emissions_factor)||!Number.isFinite(e.net_ghg_emissions_factor))return null;const t=e.net_ghg_emissions_factor;return{netGhgEmissionsPerYield:{value:t,unit:y2.netGhgEmissionsPerYield.unit,formattedValue:g2.netGhgEmissionsPerYield(t)}}},b2=e=>{let{children:t,id:n,disabled:i=!1,...o}=e;return(0,w.jsx)(r.Fragment,{children:(0,w.jsx)(d.u,{id:n,disableHoverListener:i,disableInteractive:!0,title:(0,w.jsx)(O1,{...o}),placement:"left",children:(0,w.jsx)("div",{children:t})})})},_2=e=>{let{negativeIsGood:t=!1,value:n,colorArrow:r=!0,size:i="medium"}=e;const o=(0,d.Fg)(),a=n>=0,s=a?t?o.palette.error.light:o.palette.success.light:t?o.palette.success.light:o.palette.error.light;return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[(0,w.jsx)(d.JO,{size:"medium"===i?20:16,color:r?s:void 0,type:a?"arrow-up":"arrow-down"}),(0,w.jsxs)(d.ZT,{color:s,variant:"medium"===i?"h5":"h6",children:[Math.abs(n),"%"]})]})},w2=e=>{var t;let{efMetricValue:n,bookValue:i,...o}=e;const a=(0,r.useMemo)((()=>{var e;return[[{value:"Book value"},{value:(0,KJ.tW)(i)}],[{value:"Regrow Baseline"},{value:null!==(e=null===n||void 0===n?void 0:n.formattedValue)&&void 0!==e?e:uS.QE}],[{value:"Compared to book value"},{value:(0,er.kK)(n)||(0,er.kK)(i)?(0,w.jsx)(w.Fragment,{children:uS.QE}):(0,w.jsx)(_2,{negativeIsGood:!0,value:(0,_u.gU)((0,iX.gB)({scenario:n.value,baseline:i}),0)})}]]}),[i,n]),s=(0,r.useMemo)((()=>o.isLoading?(0,w.jsx)(w.Fragment,{children:uS.QE}):o.isOneCropSelected?(0,er.$K)(n)?(0,w.jsx)(w.Fragment,{children:n.formattedValue}):(0,w.jsx)(Z1,{}):(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalatte.text.secondary",fontStyle:"italic",children:"Select one crop to see EF"})),[o.isOneCropSelected,n,o.isLoading]);return(0,w.jsx)(k1,{children:(0,w.jsx)(b2,{title:o.tooltipTitle,rows:a,disabled:!o.isOneCropSelected||o.isLoading||!o.hasBookValueAccess,year:null!==(t=o.year)&&void 0!==t?t:uS.QE,children:s})})},x2=e=>{let{filterId:t}=e;const n=(0,h.C)((e=>y1(e,t))),i=(0,h.C)((e=>b1(e,t))),{isKPIAvailable:o}=kE(),a=(0,r.useMemo)((()=>o("ef_book_values")),[o]),[s,l]=(0,r.useMemo)((()=>{const e=1===(null===n||void 0===n?void 0:n.crop_types.length);return[e,e?wT()(null===n||void 0===n?void 0:n.crop_types):void 0]}),[null===n||void 0===n?void 0:n.crop_types]),{programId:c}=(0,wi.tZ)(),{data:u}=(0,Ju.Z)(s&&o("ef_book_values")?pS.fetchBookValues(c):null),d=(0,r.useMemo)((()=>M0(n)),[n]),{isLoading:p,topLevel:f}=s0({kpi:"ghg_emissions_factor",summaries:[],commonFilters:d,kpiTransformer:f2,shouldFetch:s}),{topLevel:m}=s0({kpi:"net_ghg_emissions_factor",summaries:[],commonFilters:d,kpiTransformer:v2,shouldFetch:s}),{topLevel:g}=s0({kpi:"fert_emissions_factor",summaries:[],commonFilters:d,kpiTransformer:u2,shouldFetch:s}),[y,v]=(0,r.useMemo)((()=>{var e,t;const n=null===(e=wT()(u))||void 0===e||null===(t=e.crop_book_values.find((e=>e.crop_id===l)))||void 0===t?void 0:t.emission_factor_details;return[null===n||void 0===n?void 0:n.ghg_emissions_factor,null===n||void 0===n?void 0:n.fert_emissions_factor]}),[u,l]),b=(0,r.useMemo)((()=>({year:wT()(null===n||void 0===n?void 0:n.years),isOneCropSelected:s,isLoading:p||i,hasBookValueAccess:a})),[null===n||void 0===n?void 0:n.years,i,a,p,s]);return(0,w.jsxs)(C1,{children:[o(uS.SP.ghg_emissions_factor)&&(0,w.jsx)(w2,{efMetricValue:null===f||void 0===f?void 0:f.ghgEmissionsPerYield,bookValue:y,tooltipTitle:"Field GHG EF",...b}),o(uS.SP.net_ghg_emissions_factor)&&(0,w.jsx)(w2,{efMetricValue:null===m||void 0===m?void 0:m.netGhgEmissionsPerYield,bookValue:y,tooltipTitle:"Field net EF",...b}),o(uS.SP.fert_emissions_factor)&&(0,w.jsx)(w2,{efMetricValue:null===g||void 0===g?void 0:g.fertEmissionsPerYield,bookValue:v,tooltipTitle:"Fertilizer EF",...b})]})},k2=e=>{let{availableEFDataProducts:t}=e;const n=(0,h.C)(g1),r=t.map((e=>({title:uS.X7[e],subtitle:"kg CO2e / 1 kg of yield"})));return(0,er.Of)(t)?(0,w.jsx)(q1,{title:"Emissions factors",rowHeaders:r,children:n.map((e=>(0,w.jsx)(x1,{itemsLength:n.length,children:(0,w.jsx)(x2,{filterId:e},e)},e)))}):null},C2={ghgMassPerArea:KJ.tW},S2={ghgMassPerArea:e=>(0,NT.eo)({unit1:"mt",unit2:e,subUnit1:"CO2e"})},M2=e=>t=>{if((0,er.kK)(t.ghg_kg_per_m2)||!Number.isFinite(t.ghg_kg_per_m2))return null;const n=(0,NT.Ai)({value:t.ghg_kg_per_m2,from:"kg",to:"mt"})/(0,NT.Ai)({value:1,from:"m2",to:e});return{ghgMassPerArea:{value:n,unit:S2.ghgMassPerArea(e).unit,formattedValue:C2.ghgMassPerArea(n)}}},T2={netImpact:KJ.tW},E2=e=>(0,NT.eo)({unit1:"mt",unit2:e,subUnit1:"CO2e"}),P2={dSocMassPerArea:KJ.tW},I2={dSocMassPerArea:e=>(0,NT.eo)({unit1:"mt",unit2:e,subUnit1:"CO2e"})},O2=e=>t=>{if((0,er.kK)(t.soc_kg_per_m2)||!Number.isFinite(t.soc_kg_per_m2))return null;const n=(0,NT.Ai)({value:t.soc_kg_per_m2,from:"kg",to:"mt"})/(0,NT.Ai)({value:1,from:"m2",to:e});return{dSocMassPerArea:{value:n,unit:I2.dSocMassPerArea(e).unit,formattedValue:P2.dSocMassPerArea(n)}}},L2={yieldPerArea:KJ.tW},R2=e=>(0,NT.eo)({unit1:"kg",unit2:e}),j2=e=>{let{filterState:t,measurement:n,isInitialState:i}=e;const o=(0,r.useMemo)((()=>M0(t)),[t]),{isLoading:a,topLevel:s}=s0({kpi:"yield_per_area",summaries:[],commonFilters:o,kpiTransformer:(l=n,e=>{if((0,er.kK)(e.yield_kg_per_m2)||!Number.isFinite(e.yield_kg_per_m2))return null;const t=e.yield_kg_per_m2/(0,NT.Ai)({value:1,from:"m2",to:l});return{yieldPerArea:{value:t,unit:R2(l).unit,formattedValue:L2.yieldPerArea(t)}}}),shouldFetch:1===(null===t||void 0===t?void 0:t.crop_types.length)});var l;const c=(0,r.useMemo)((()=>C0(i,a)),[i,a]),u=(0,r.useMemo)((()=>{var e;return 1!==(null!==(e=null===t||void 0===t?void 0:t.crop_types.length)&&void 0!==e?e:0)?(0,w.jsx)(d.ZT,{variant:"body1",color:"semanticPalette.text.secondary",fontStyle:"italic",children:"Select one crop to see yield"}):null===s||void 0===s?void 0:s.yieldPerArea.formattedValue}),[null===t||void 0===t?void 0:t.crop_types.length,s]);return(0,w.jsx)(c,{kpi:"yield",children:u})},D2=e=>{let{ghgMetric:t,socMetric:n,loading:r,GHGTooltipProps:i,SOCTooltipProps:o,NetTooltipProps:a}=e;const s=(0,Z.Fg)();if((0,er.fQ)(r))return(0,w.jsx)(On.D8,{className:"progress",id:"loading-net-bars"});if((0,er.kK)(t)||(0,er.kK)(n))return(0,w.jsx)(Z1,{});const l=t.value,c=n.value;let u=l-c;if(l>0&&c<0&&(u=l),l<0&&c>0&&(u=c),l<0&&c<0&&(u=-Math.abs(u)),!u)return(0,w.jsx)(Z1,{});const d=[{label:"GHG",value:l,formattedValue:t.formattedValue},{label:"dSOC",value:c,formattedValue:n.formattedValue},{label:"Net Emissions",value:u,formattedValue:(0,KJ.tW)(u)}];return(0,w.jsx)($K,{data:d,indexBy:"label",layout:"vertical",enableGridY:!1,margin:{top:30,right:0,bottom:20,left:0},padding:.3,enableLabel:!1,colors:s.colorPalette.fs_main.gray_300,isInteractive:!1,axisLeft:null,axisBottom:{tickSize:0,tickPadding:10},layers:["grid","axes","bars","markers",e=>(0,w.jsx)(N2,{tooltipProps:a,...e})],barComponent:e=>(0,w.jsx)(A2,{GHGTooltipProps:i,SOCTooltipProps:o,...e})})},A2=e=>{let{data:t,x:n,y:r,width:i,height:o,color:a,GHGTooltipProps:s,SOCTooltipProps:l}=e;if("Net Emissions"===t.data.label)return null;const c=(0,er.$K)(s)&&"GHG"===t.data.label?s:(0,er.$K)(l)&&"dSOC"===t.data.label?l:null;return(0,w.jsx)("g",{children:(0,er.$K)(c)?(0,w.jsx)("foreignObject",{width:i,height:o,x:n,y:r,children:(0,w.jsx)(b2,{...c,children:(0,w.jsx)("div",{style:{width:i,height:o,backgroundColor:a}})})}):(0,w.jsx)("rect",{x:n,y:r,width:i,height:o,fill:a})},t.data.label)},N2=e=>{let{bars:t,tooltipProps:n}=e;const r=(0,Z.Fg)(),i=t.find((e=>"GHG"===e.data.data.label)),o=t.find((e=>"dSOC"===e.data.data.label)),a=t.find((e=>"Net Emissions"===e.data.data.label)),s=i.x,l=i.y,c=i.height,u=i.data.value,d=o.x,p=o.y,h=o.height,f=o.data.value,m=a.x,g=a.y,y=a.height,v=a.width,b=u-f;let _=0,x=0,k=0,C=0,S=0,M=0,T=0,E=0,P=m,I=g,O=y;return u>0&&f>0?(_=s,x=m+v,k=l,C=l,S=d,M=m+v,T=p,E=p,P=m,I=Math.min(l,p),O=y):u<0&&f>0?(_=s,x=m+v,k=l+c,C=l+c,S=d,M=m+v,T=p,E=p,P=m,I=p,O=c+h):u>0&&f<0?(_=s,x=m+v,k=l,C=l,S=d,M=m+v,T=p+h,E=p+h,P=m,I=l,O=c+h):u<0&&f<0&&(_=s,x=m+v,k=l+c,C=l+c,S=d,M=m+v,T=p+h,E=p+h,P=m,I=Math.max(l,p)+Math.min(c,h),O=y),(0,w.jsxs)(w.Fragment,{children:[t.map((e=>{const{width:t,x:n,data:{value:i}}=e,o=e.data.data.label,a="Net Emissions"===o?b:i,s=e.data.data.formattedValue;let c=0;return"Net Emissions"===o?c=I:"GHG"===o?c=l:"dSOC"===o&&(c=p),(0,w.jsx)("g",{transform:`translate(${n}, 0)`,children:(0,w.jsx)("text",{transform:`translate(${t/2}, ${c-4})`,textAnchor:"middle",fontSize:"12px",fontWeight:600,fill:r.colorPalette.fs_main.black,children:s})},`${o}${a}`)})),(0,w.jsx)("line",{x1:_,y1:k,x2:x,y2:C,stroke:r.colorPalette.fs_main.gray_600,strokeDasharray:"2"}),(0,w.jsx)("line",{x1:S,y1:T,x2:M,y2:E,stroke:r.colorPalette.fs_main.gray_600,strokeDasharray:"2"}),(0,er.$K)(n)?(0,w.jsx)("foreignObject",{width:v,height:O,x:P,y:I,children:(0,w.jsx)(b2,{...n,children:(0,w.jsx)("div",{style:{width:v,height:O,backgroundColor:b>0?r.colorPalette.fs_category.red_600:r.colorPalette.fs_main.green_600}})})}):(0,w.jsx)("rect",{x:P,y:I,width:v,height:O,fill:b>0?r.colorPalette.fs_category.red_600:r.colorPalette.fs_main.green_600})]})},F2=2020,z2=e=>{var t,n,i,o,a,s,l;let{filterId:c,setMaxEmissions:u,highestEmission:d}=e;const p=(0,h.C)((e=>y1(e,c))),f=(0,h.C)(S.DC),m=(0,h.C)((e=>b1(e,c))),{isKPIAvailable:g}=kE(),y=(0,r.useMemo)((()=>M0(p)),[p]),{isLoading:v,topLevel:b,annualizedSummary:_}=s0({kpi:"ghg_kg_per_m2",summaries:["annualized"],commonFilters:y,kpiTransformer:M2(f)}),{topLevel:x,annualizedSummary:k}=s0({kpi:"soc_kg_per_m2",summaries:["annualized"],commonFilters:y,kpiTransformer:O2(f)}),{topLevel:C,annualizedSummary:M}=s0({kpi:"net_impact_kg_per_m2",summaries:["annualized"],commonFilters:y,kpiTransformer:(T=f,e=>{if((0,er.kK)(e.net_impact_kg_per_m2)||!Number.isFinite(e.net_impact_kg_per_m2))return null;const t=(0,NT.Ai)({value:e.net_impact_kg_per_m2,from:"kg",to:"mt"})/(0,NT.Ai)({value:1,from:"m2",to:T});return{netImpact:{value:t,unit:E2(T).unit,formattedValue:T2.netImpact(t)}}})});var T;const E=(0,r.useMemo)((()=>C0(m,v)),[v,m]),P=null!==(t=null===b||void 0===b?void 0:b.ghgMassPerArea.value)&&void 0!==t?t:0,I=null!==(n=null===x||void 0===x?void 0:x.dSocMassPerArea.value)&&void 0!==n?n:0,O=null!==(i=null===C||void 0===C?void 0:C.netImpact.value)&&void 0!==i?i:0,L=Math.max(P,I,O),R=(null!==(o=null===p||void 0===p?void 0:p.years[0])&&void 0!==o?o:F2)-1,j=(0,r.useMemo)((()=>US()(null===_||void 0===_?void 0:_.map((e=>{var t;let[n,r]=e;return[n,null!==(t=null===r||void 0===r?void 0:r.ghgMassPerArea)&&void 0!==t?t:null]})))),[_]),D=(0,r.useMemo)((()=>US()(null===k||void 0===k?void 0:k.map((e=>{var t;let[n,r]=e;return[n,null!==(t=null===r||void 0===r?void 0:r.dSocMassPerArea)&&void 0!==t?t:null]})))),[k]),A=(0,r.useMemo)((()=>US()(null===M||void 0===M?void 0:M.map((e=>{var t;let[n,r]=e;return[n,null!==(t=null===r||void 0===r?void 0:r.netImpact)&&void 0!==t?t:null]})))),[M]);(0,r.useEffect)((()=>u(c,L)),[c,L,u]);const N=(0,r.useMemo)((()=>{var e;return 100*(null!==(e=(0,LS.tA)(L,d))&&void 0!==e?e:0)}),[d,L]),F=(0,r.useCallback)(((e,t,n)=>{var r,i;if((0,er.kK)(t))return[];const o=null!==(r=null===t||void 0===t?void 0:t.value)&&void 0!==r?r:0,a=Object.keys(n).map(Number),s=(()=>{const t=n[R];if((0,er.kK)(t))return"NA";{const n=(0,_u.gU)((0,iX.gB)({baseline:t.value,scenario:o}),0);return(0,w.jsx)(_2,{negativeIsGood:"soc_kg_per_m2"!==e,value:n})}})(),l=0===a.length?null:a.length,c=(()=>{if((0,er.kK)(l))return null;const e=a.reduce(((e,t)=>{var r,i;return e+(null!==(r=null===n||void 0===n||null===(i=n[t])||void 0===i?void 0:i.value)&&void 0!==r?r:0)}),0);return e/l})(),u=(()=>{if((0,er.kK)(c))return null;const t=(0,_u.gU)((0,iX.gB)({baseline:c,scenario:o}),0);return(0,w.jsx)(_2,{negativeIsGood:"soc_kg_per_m2"!==e,value:t})})(),[d,h]=a.length<1?[F2,F2]:[Math.min(...a),Math.max(...a)],m=[[{value:"Compared to "+((null!==(i=null===p||void 0===p?void 0:p.years[0])&&void 0!==i?i:F2)-1)},{value:s}]];return(0,er.$K)(l)&&(0,er.$K)(u)&&m.push([{value:`Compared to ${l} year average`},{value:u}]),(0,er.$K)(l)&&(0,er.$K)(c)&&m.push([{value:(0,w.jsxs)(Cd.k,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:`${l} years average`}),(0,w.jsx)(Rn.x,{noMargin:!0,secondary:!0,children:`(${d} - ${h})`})]})},{value:`${(0,KJ.tW)(c)} tonnes / ${(0,mS.O)(f,!1)}`}]),m}),[null===p||void 0===p?void 0:p.years,f,R]);return(0,w.jsxs)(C1,{children:[g(uS.SP.net_impact_kg_per_m2)&&(0,w.jsx)(E,{kpi:["ghg_emission","soc_sequestration"],height:270,alignItems:m?"center":"flex-end",children:(0,w.jsx)(B2,{height:N,children:(0,w.jsx)(D2,{ghgMetric:null===b||void 0===b?void 0:b.ghgMassPerArea,socMetric:null===x||void 0===x?void 0:x.dSocMassPerArea,loading:v,GHGTooltipProps:{id:`ghg-emission-tooltip-${c}`,title:"GHG Emissions",year:null!==(a=null===p||void 0===p?void 0:p.years[0])&&void 0!==a?a:F2,rows:F("ghg_kg_per_m2",null===b||void 0===b?void 0:b.ghgMassPerArea,j)},SOCTooltipProps:{id:`soc-emission-tooltip-${c}`,title:"SOC Emissions",year:null!==(s=null===p||void 0===p?void 0:p.years[0])&&void 0!==s?s:F2,rows:F("soc_kg_per_m2",null===x||void 0===x?void 0:x.dSocMassPerArea,D)},NetTooltipProps:{id:`net-emission-tooltip-${c}`,title:"Net Emissions",year:null!==(l=null===p||void 0===p?void 0:p.years[0])&&void 0!==l?l:F2,rows:F("net_impact_kg_per_m2",null===C||void 0===C?void 0:C.netImpact,A)}})})}),g(uS.SP.yield_per_area)&&(0,w.jsx)(j2,{filterState:p,measurement:f,isInitialState:m})]})},B2=Z.ZP.div`
  min-height: 30%;
  height: ${e=>{let{height:t}=e;return t}}%;
  width: 190px;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
`,U2=()=>{const e=(0,h.C)(g1),t=(0,h.C)(S.DC),{isKPIAvailable:n}=kE(),[i,o]=r.useState([]),a=(0,r.useMemo)((()=>Math.max(...i.map((e=>{let{value:t}=e;return t})))),[i]),s=r.useCallback(((e,t)=>{var n;const r=i.findIndex((t=>{let{filterId:n}=t;return n===e}));if(-1===r)o([...i,{filterId:e,value:t}]);else if((null===(n=i[r])||void 0===n?void 0:n.value)!==t){const n=(0,LS.Wl)(i)(r,{filterId:e,value:t});o(n)}}),[i]);return(0,w.jsx)(q1,{title:"Sustainability outcomes",rowHeaders:[{title:"Emissions",subtitle:`Metric tonnes CO2e / ${(0,mS.O)(t,!1)}`,height:270,enabled:n(uS.SP.net_impact_kg_per_m2)},{title:"Crop yield",subtitle:`kg / ${(0,mS.O)(t,!1)}`,enabled:n(uS.SP.yield_per_area)}],children:e.map((t=>(0,w.jsx)(x1,{itemsLength:e.length,children:(0,w.jsx)(z2,{filterId:t,highestEmission:a,setMaxEmissions:s},t)},t)))})},$2=e=>{let{programId:t}=e;const n=(0,h.C)(v1),i=(0,h.C)((e=>nS(e,t))),{isKPIAvailable:o}=kE(),a={years:[],subsection_ids:[],crop_types:[],supply_shed_ids:[],data_scenario_id:void 0};return(0,w.jsxs)(ni.k,{direction:"column",gap:22,children:[(0,w.jsx)(V1,{defaultFilterItem:a}),n?(0,w.jsxs)(V2,{bordered:!0,hideIcon:!0,color:"warning",mini:!0,children:[(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,noMargin:!0,children:"Get started by selecting regions, crops and years in the table above."}),(0,w.jsx)(Rn.x,{variant:"medium",noMargin:!0,children:"Choose different combinations of supply sheds or sub-regions, crops and crop years to compare sustainability outcomes, emission factors and agricultural practices against one another."})]}):(0,w.jsxs)(r.Fragment,{children:[(0,er.Of)(null===i||void 0===i?void 0:i.outcome_kpis)&&(0,w.jsxs)(r.Fragment,{children:[(o(uS.SP.net_impact_kg_per_m2)||o(uS.SP.yield_per_area))&&(0,w.jsx)(U2,{}),(0,w.jsx)(k2,{availableEFDataProducts:uS.y2.filter(o)})]}),(0,er.Of)(null===i||void 0===i?void 0:i.practice_kpis)&&(0,w.jsx)(a2,{})]})]})},V2=(0,Z.ZP)(nr.U8)`
  width: 50%;
  max-width: 650px;
  min-width: 450px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.warning}};
  padding: 32px 48px;
  color: ${e=>{let{theme:t}=e;return t.color.text.main}};
`,q2=e=>{let{onHide:t,name:n="",submit:r}=e;const{handleSubmit:i,control:o}=(0,Cn.cI)({resolver:(0,kn.X)((0,zn.Ry)().shape({name:(0,zn.Z_)().required().max(25)})),mode:"onChange",defaultValues:{name:n}});return(0,w.jsx)(d.o9,{id:"save-filter",title:"Save Dashboard View",open:!0,onClose:t,children:(0,w.jsxs)("form",{onSubmit:i((e=>{let{name:t}=e;return r(t)})),children:[(0,w.jsxs)(d.cZ,{children:[(0,w.jsx)(d.ZT,{color:"secondary",children:"Save your current Sustainability Reporting filters so you can revisit this view anytime"}),(0,w.jsx)(d.xu,{mt:2,children:(0,w.jsx)(Cn.Qr,{name:"name",control:o,render:e=>{let{field:{value:t,onChange:n},fieldState:{error:r}}=e;return(0,w.jsx)(d.nv,{id:"filter-name",value:t,onChange:n,label:"Name",error:!!r,fullWidth:!0,helperText:null===r||void 0===r?void 0:r.message})}})})]}),(0,w.jsxs)(d.kX,{children:[(0,w.jsx)(d.zx,{onClick:t,color:"secondary",variant:"outlined",children:"Cancel"}),(0,w.jsx)(d.zx,{onClick:i((e=>{let{name:t}=e;return r(t)})),children:"Save"})]})]})})},Z2={width:"max-content",right:0,paddingBottom:0,paddingTop:"5px"},H2=()=>{const{programSupplySheds:e}=vT(),{programId:t}=(0,wi.tZ)(),n=(0,h.T)(),i=(0,h.C)(m1),o=(0,h.C)(v1),[a,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[d,p]=(0,r.useState)(),[f,m]=(0,r.useState)(),{data:g=[],mutate:y}=(0,ai.ZP)(pS.fetchSavedComparisons(t),{revalidateOnFocus:!1}),v=f1(e),b=(0,r.useMemo)((()=>{var e;return null===(e=g.find((e=>e.id===d)))||void 0===e?void 0:e.name}),[d,g]),_=r.useCallback((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>({...e,crop_types:e.crop_types.filter(xL),subsection_ids:e.subsection_ids.filter((e=>v.includes(e)))})))}),[v]);r.useEffect((()=>{if((0,er.$K)(d)){const e=g.find((e=>e.id===d));if((0,er.$K)(e)){const t=_(e.filter_columns).map((e=>ti()(e,["id"]))),n=i.map((e=>ti()(e,["id"])));hT()(t,n)||p(void 0)}}}),[d,g,i,_]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(G2,{id:"saved-view-dropdown",active:(0,er.$K)(b),expand:a,dropdownStyle:Z2,setExpand:l,onClear:()=>{n((0,yT.bV)([])),p(void 0)},label:null!==b&&void 0!==b?b:uS.IJ,children:(0,w.jsxs)(w.Fragment,{children:[(0,er.$K)(g)&&g.map((e=>(0,w.jsxs)(Cd.k,{alignItems:"center",nowrap:!0,gap:"5px",children:[(0,w.jsx)(On.cv,{id:e.id,name:e.name,type:"radio",label:e.name,checked:d===e.id,onClick:()=>(async e=>{var t;p(e);const r=g.find((t=>t.id===e)),i={...r,filter_columns:_(null===r||void 0===r?void 0:r.filter_columns)};n((0,yT.bV)(null!==(t=null===i||void 0===i?void 0:i.filter_columns)&&void 0!==t?t:[]))})(e.id)}),(0,w.jsx)(kd.w,{className:"filter-action-btn margin-left-auto",icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"edit"}),onClick:()=>{return t=e.id,n=e.name,m({comparisonId:t,label:n}),void u(!0);var t,n}}),(0,w.jsx)(kd.w,{className:"filter-action-btn",icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"delete"}),onClick:()=>(async e=>{const n=g.filter((t=>t.id!==e));(0,er.$K)(n)&&await qC.Z.postComparisons(t,n).then((async e=>{let{data:t}=e;await y(t)}))})(e.id)})]},e.id))),(0,w.jsx)(Cd.k,{className:s()({"save-new-view-container":!0,bordered:g.length>0}),fullWidth:!0,justifyContent:"center",children:(0,w.jsx)(kd.w,{disabled:o,raised:!0,blank:!0,transparent:!0,onClick:()=>{m({comparisonId:-1,label:""}),u(!0)},children:"+ Save new view"})})]})}),c&&(0,w.jsx)(q2,{onHide:()=>{u(!1)},name:null===f||void 0===f?void 0:f.label,submit:async e=>{if((0,er.o8)(f))return;-1!==f.comparisonId?await qC.Z.postComparisons(t,g.map((t=>t.id===f.comparisonId?{...t,name:e}:t))).then((async e=>{let{data:t}=e;await y(t),m(void 0)})):await qC.Z.postComparisons(t,[...null!==g&&void 0!==g?g:[],{name:e,filter_columns:i}]).then((async e=>{var t;let{data:n}=e;const r=[...null!==g&&void 0!==g?g:[],...n[0]?[n[0]]:[]];await y(r),p(null===(t=n[0])||void 0===t?void 0:t.id),m(void 0)})),u(!1)}})]})},G2=(0,Z.ZP)(jJ.l)`
  .fluro-dropdown-base__dropdown {
    z-index: ${ud.K.MapLoader};
  }
`,W2=()=>{const{programId:e}=YC(),{programSupplySheds:t,isLoading:n}=vT(),i=UE(),o=f1(t),{cropIds:a}=r.useMemo((()=>nM(t,i,o)),[o,i,t]),s=n||(0,er.yD)(a)||(0,er.yD)(o);return(0,w.jsxs)(XC,{children:[(0,w.jsxs)(JC,{children:[(0,w.jsx)(QC,{children:"Supply Shed Comparison"}),(0,w.jsx)(H2,{})]}),s?(0,w.jsx)(On.D8,{id:"comparison-dashboard-content"}):(0,w.jsx)($2,{programId:Number(e)})]})},Y2=e=>(0,w.jsx)(wO,{visible:e.isOpen,title:"Data Agreement",text:(0,w.jsx)(d.ZT,{variant:"body1",children:'Customer shall not, directly, indirectly or through its Authorized Users, employees and/or the services of independent contractors: (a) attempt to sell, transfer, assign, rent, lend, lease, sublicense or otherwise provide third parties rights to the data; (b) "frame," "mirror," copy or otherwise enable third parties to use the data (or any component thereof); (c) allow access to the data by multiple individuals impersonating a single end user; (d) use the data in a manner that interferes with, degrades, or disrupts the integrity or performance of any Regrow technologies, services, data, systems or other offerings, including data transmission, storage and backup; (e) use the data for the purpose of developing a product or service that competes with the Regrow online products and services; (f) circumvent or disable any security features or functionality associated with the data; or (g) use the data in any manner prohibited by law. All rights not expressly granted to Customer are reserved by Regrow, its suppliers and licensor.'}),onHide:e.onClose,onConfirm:()=>{e.onClose(),e.onConfirm()},saveText:"I accept these conditions",width:"md"}),K2=e=>{let{children:t,onDownload:n,...i}=e;const o=(0,h.T)(),a=(0,h.C)(xO.u6),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),p=(0,r.useCallback)((async()=>{l(!0);try{await n()}catch(e){(0,C.e)(`Error in SI download ${JSON.stringify(e)}`),(0,Yn.c)({type:"error",title:"Download error",message:"There was a problem downloading this file."})}l(!1)}),[n]),f=(0,r.useCallback)((()=>{a?p():u(!0)}),[a,p]),m=(0,r.useCallback)((()=>{o((0,yT.zf)(!0)),u(!1),p()}),[o,p]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.fl,{variant:"contained",color:"primary",loading:s,onClick:f,...i,children:t}),(0,w.jsx)(Y2,{isOpen:c,onClose:()=>u(!1),onConfirm:m})]})},X2=Z.ZP.div`
  border-radius: 4px;
  border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
  margin-bottom: 16px;
`,J2=Z.ZP.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.main}};
`,Q2=(0,Z.ZP)(J2)`
  cursor: pointer;
  position: relative;
  padding: 10px 8px 10px 16px;
`,e5=(0,Z.ZP)(J2)`
  padding: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
  width: 100%;
  .export-drop-down {
    margin: 0;
    width: inherit;
    flex: 0 1 300px;

    .fluro-select-label {
      color: #7a7a7a;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      display: block;
      font-size: 0.8125em;
      line-height: 1;
      overflow: hidden;
      padding: 0.5em 0;
      pointer-events: none;
      text-overflow: ellipsis;
      text-align: left;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      white-space: nowrap;
      width: 100%;
    }
  }
`,t5=Z.ZP.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex: 1;
`,n5=e=>{let{supplyShed:t,downloadCSV:n}=e;const i=(0,h.C)(S.DC),o=UE(),a=(0,h.C)(iS),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)("admin_1"),[p,f]=(0,r.useState)("all"),[m,g]=(0,r.useState)([]),y=(0,r.useMemo)((()=>{const e=(new Date).getFullYear(),t=[...Array(e-2015+1).keys()].map((t=>e-t));return[{label:"All years",value:"all"},...t.map((e=>({label:e.toString(),value:e.toString()})))]}),[]),v=qf()(t.subsections.flatMap((e=>{let{commodities:t}=e;return t.map((e=>{let{id:t}=e;return Number(t)}))}))),b=o.filter((e=>{let{value:t}=e;return v.includes(Number(t))}));return(0,w.jsxs)(X2,{children:[(0,w.jsxs)(Q2,{role:"button",onClick:()=>{l(!s)},onKeyDown:()=>{l(!s)},tabIndex:0,children:[(0,w.jsx)(GE,{headerColor:a(t.id)}),(0,w.jsxs)(ni.k,{direction:"row",alignItems:"center",nowrap:!0,basis:"500px",children:[(0,w.jsx)(On.xu,{forceSize:35,forceFontSize:!0,children:s?"expand_more":"chevron_right"}),(0,w.jsx)(Rn.x,{variant:"h3",noMargin:!0,children:t.name})]}),(0,w.jsx)(ni.k,{direction:"row",alignItems:"center",children:(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,noMargin:!0,children:(0,In.Kr)(Math.round(Number(t.total_field_area_ha)),i)})})]}),s&&(0,w.jsxs)(e5,{children:[(0,w.jsxs)(t5,{children:[(0,w.jsx)(Sr.Z,{placeholder:"Select export aggregation level",value:c,onChange:e=>u(e),options:[{label:"States and Provinces",value:"admin_1"},{label:"Counties and Districts",value:"admin_2"},{label:"Supply Shed Subregions",value:"subsection"}],className:"export-drop-down"}),(0,w.jsxs)(XE,{className:"export-drop-down",children:[(0,w.jsx)("div",{className:"fluro-select-label",children:"Select crops to export"}),(0,w.jsx)(tP,{cropTypeOptions:b,onChange:g,selectedCropIds:m})]}),(0,w.jsx)(Sr.Z,{placeholder:"Select years to export",value:p,onChange:f,options:y,className:"export-drop-down"})]}),(0,w.jsx)(K2,{startIcon:(0,w.jsx)(d.le,{type:"download"}),disabled:0===m.length,onDownload:()=>n("Data Export",t.id,c,m,p),children:"Download CSV"})]})]},t.id)},r5=()=>{const{programId:e}=(0,wi.tZ)(),{programSupplySheds:t,isLoading:n}=vT(),r=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_KPI_SUBSECTION_AREA])));if(r||n)return(0,w.jsx)(On.D8,{className:"progress",id:"si-ap-areas-step"});const i=async(t,n,r,i,o)=>{try{const a=await qC.Z.getSupplyShedCSV(e,r,[n],i,"all"===o?void 0:Number(o)),s=`${(new Date).toISOString().split("T")[0]}_${t}_${r}${"all"===o?"":`_${o}`}.csv`;return Promise.resolve((0,hp.Sv)(a.data,s,hp.HY.TextCSV))}catch(a){return Promise.reject(a)}};return(0,w.jsxs)(XC,{children:[(0,w.jsx)(JC,{children:(0,w.jsx)(QC,{children:"Data Export"})}),null===t||void 0===t?void 0:t.map((e=>(0,w.jsx)(n5,{supplyShed:e,downloadCSV:i},e.id)))]})},i5=e=>{let{children:t,...n}=e;return(0,w.jsx)(o5,{...n,target:"_blank",children:t})},o5=Z.ZP.a`
  color: ${e=>{let{theme:t}=e;return t.color.text.success}};

  :hover {
    text-decoration: underline;
  }
`,a5=e=>{let{textContent:t,links:n=[]}=e;const i=(0,f.YB)(),o=t.split("{{ExternalLink}}");if(o.length>1&&o.length!==n.length+1)return(0,w.jsx)(r.Fragment,{children:i.formatMessage({id:t,defaultMessage:t})});const a=n.flatMap(((e,t)=>{let{href:n,content:r,...i}=e;return[o[t],(0,w.jsx)(i5,{href:n,...i,children:r},n)," "]})),s=o.slice(n.length).map((e=>(0,er.HH)(e)?i.formatMessage({id:e,defaultMessage:e}):e));return(0,w.jsx)(r.Fragment,{children:[...a,...s]})},s5=e=>{let{title:t,subtitle:n,...r}=e;const i=(0,d.Fg)();return(0,w.jsx)(d.xu,{display:"flex",py:10,mx:-6,...r,children:(0,w.jsxs)(d.Kq,{px:6,gap:2,flexBasis:"50%",minWidth:i.fixedWidths.md,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:t}),(0,er.HD)(n)?(0,w.jsx)(d.ZT,{children:n}):n]})})},l5=[{title:"A) Emissions",description:"This is a summary of tools and methodologies used to calculate Scope 3 emissions. For all emissions values, uncertainty is provided using a standard error methodology. Please see section A.4 for more details.",accordionItems:[{summary:"A.1: Methods, data sources, and assumptions used to calculate scope 3 emissions (by scope 3 category):",details:[(0,w.jsx)(d.ZT,{variant:"body2",fontStyle:"italic",children:"The following methodology does not comment on allocation methods for scope 3 emissions. It is the responsibility of the reporting company to ensure discussion of allocation is complete according to GHGp reporting requirements. Furthermore, the reporting company should ensure the following methodology is reported under the appropriate Scope 3 category."},"The following methodology does not comment"),"Regrow models on-farm emissions using the Denitrification-Decomposition (DNDC) model,\n              which is a biogeochemical model that is based on first principles of soil\n              biogeochemistry and estimates nutrient cycling in the soil, including dynamic soil\n              responses to practice change adoption. The model predicts greenhouse gas emissions,\n              soil carbon sequestration, and other environmental outcomes and feedbacks of crop\n              production, such as crop growth and yield, based on a series of environmental drivers\n              (crop management, weather, and soil data, cultivar etc.).","Calculation of emissions begins with monitoring a continuous series of agricultural\n              practices at the crop field scale that both inform and drive DNDC. For more\n              information on the data sources used to catalog field-level historical events and\n              create crop field boundaries, please refer to section A.2. Earth observation satellite\n              data along with local climate and weather inputs are compiled over each and every\n              field boundary and implemented in Regrow algorithms to identify agricultural practices\n              or events.","The methods to detect these practices or events are built on peer-reviewed remote\n              sensing science publications and further advanced by Regrow\u2019s expertise and\n              technologies (OpTIS - Operational Tillage Information System). These include\n              information on crop types and cycles, cover cropping, and tillage events and\n              intensity.","Each practice or event, and the compounding factor of multiple events, will affect\n              emissions. For example, adoption of multiple practices such as crop rotations,\n              planting consistent cover crops, and limited to no tillage will have positive effects\n              on soil health and be reflected in the estimated emissions. This comprehensive field\n              level history is passed to the DNDC soil biogeochemical model, which quantifies the\n              effects of these practices on critical soil properties and processes, so that Regrow\n              can simulate GHG emissions (measured in tonnes of carbon dioxide equivalent, or CO2e)\n              consisting of the following components: CH4, N20 (indirect/direct), and soil organic\n              carbon (SOC). Components are converted to CO2e by their global warming potential\n              following IPCC 2014 AR5 values.","N2O emissions from DNDC cannot be explicitly traced to a specific nitrogen source\n              (i.e. fertilizer N vs mineralized N). As such, direct and indirect N2O emissions as\n              displayed in the product are inclusive of all nitrogen sources in the soil, not\n              exclusively that from fertilizer application."]},{summary:"A.2: For each scope and scope 3 category, a description of the types and sources of data, including activity data, emission factors and GWP values, used to calculate  emissions, and a description of the data quality of reported emissions data",details:["Regrow utilizes a number of third-party sources as inputs to the OpTIS and DNDC models.\n            In addition, OpTIS data are inputs to the DNDC model.","Field events: Regrow\u2019s OpTIS\n            system catalogs a complete history of events for each crop field in an area of interest\n            using a suite of satellite earth observation data provided primarily by the National\n            Aeronautics and Space Administration (NASA) and the European Space Agency (ESA). The\n            data are sourced primarily from the NASA Landsat and ESA Sentinel missions which provide\n            observations from 10m to 30m resolution and 8-10 day intervals. These data provide\n            continuous high resolution observations (approximately 4 to 36 samples per acre) at\n            temporal intervals that maximize data retrieval opportunities. All remote sensing data\n            undergo robust quality assurance and control to properly account for cloud cover and\n            atmospheric effects prior to algorithm implementation. Yearly median plant and harvest\n            dates are estimated at the geohash 3 level using a time series of Landsat and Sentinel\n            normalized difference vegetation index (NDVI) observations, and these dates are used to\n            parameterize the cover crop and residue cover mapping.","Crop field boundaries: Field\n            boundaries are delineated from Regrow\u2019s machine-learning (ML) parcel identification\n            algorithm or open-source datasets, such as the USDA Crop Sequence Boundaries and Common\n            Land Units. These are then further bolstered and refined using Regrow\u2019s ML algorithm\n            which capitalizes on remote sensing time series data. Field identification and\n            boundaries account for factors that may bisect or interfere with detection and\n            monitoring of agronomic practices (such as roads, waterways, or buffer strips) to ensure\n            only data related to field level practices are used in calculations.","Precipitation:\n            OpTIS uses PRISM (PRISM Climate Group) and ERA 5 in Canada to account for soil and crop\n            residue moisture effects.","Yield: Regrow utilizes primary data, publicly available\n            data sources (e.g. USDA ARMS and NASS surveys, USGS NAWQA, STATCAN for data for Canada)\n            as well as partnerships in key sourcing regions. The scientific model DNDC also models\n            crop growth and yields. The Regrow platform will utilize the data source with the\n            highest level of certainty per its determination."]},{summary:"A.3: For each scope 3 category, the percentage of scope 3 emissions calculated using data obtained from suppliers or other value chain partners",details:["Emissions factors provided in Sustainability Insights do not include data from customer\n            suppliers or other value chain partners. It is the responsibility of the reporting\n            company to ensure these scope 3 emissions data are obtained and accounted for according\n            to GHGp reporting requirements. "]},{summary:"A.4: The uncertainty range associated with reported scope 3 emissions, with justification for how reported emissions use conservative assumptions and values",details:["Regrow has taken a standard error approach to calculating uncertainty for emissions and\n            removals values in Sustainability Insights. Within emissions, standard error is provided\n            for each constituent component of GHG emissions (CH4, direct N2O, indirect N2O) for\n            every region and crop of interest. This is a measure of the variability of the estimated\n            emissions that indicates how much the estimated emissions deviate from a true population\n            regional mean. The variability of standard error will increase as supply shed size\n            decreases. ","This calculation methodology is a type of scenario uncertainty, as\n            described in Section 16.6.1 of the draft GHGp Land Sector and Removals Guidance (LSRG).\n            It is important to note that SI uncertainty does not provide an estimate of DNDC\n            structural uncertainty that Regrow uses in the MRV product."]}]},{title:"B) Removals",description:"This is a summary of tools and methodologies used to calculate removals in the form of soil organic carbon sequestration. For all removals values, uncertainty is provided using a standard error methodology. Please see section B.4 for more details.",accordionItems:[{summary:"B.1: Methods, data sources and assumptions used to calculate scope 3 removals",details:["SOC is the ability of soil to store, or sequester, greenhouse gasses in the form of\n            carbon. Regrow uses DNDC to measure dSOC, which is the difference of soil organic\n            carbon, by taking the difference of soil organic carbon stock values between 2 points in\n            time (i.e. annual difference). The soil organic carbon stock values encompass the total\n            soil carbon in the soil pools down to a specified depth, but does not include any\n            residue (litter) pools.","Please refer to section A.1 for more details on the data and\n            processes employed by DNDC."]},{summary:"B.2: Systems and procedures for long-term monitoring of carbon pools owned/controlled by the relevant entities in the value chain corresponding to reported scope 3 removals",details:["SOC removals provided in Sustainability Insights do not include data from customer\n            suppliers or other value chain partners, and therefore does not provide complete chain\n            of custody information or traceability from farm to end customer. If relevant, it is the\n            responsibility of the reporting company to ensure these scope 3 data are obtained and\n            accounted for according to GHGp reporting requirements."]},{summary:"B.3: Description of the types and sources of data, including activity data and emission factors, used to calculate scope 3 removals, and a description of the data quality of reported removals data",details:["Regrow uses the biogeochemical model (DNDC) to model both on-field emissions and\n            removals. Please refer to section A.2 for more details on the types and sources of data\n            used in OpTIS and DNDC in Regrow calculations."]},{summary:"B.4: The uncertainty range associated with reported scope 3 removals, with justification for how reported removals use conservative assumptions and values",details:["Regrow has taken a standard error approach to calculating uncertainty for emissions and\n            removals values in Sustainability Insights. Within removals, standard error is provided\n            for dSOC (YoY delta of soil organic carbon sequestration) for every region and crop of\n            interest. This is a measure of the variability of the estimated emissions that indicates\n            how much the estimated emissions deviate from a true population regional mean. The\n            variability of standard error will increase as supply shed size decreases.","This\n            calculation methodology is a type of scenario uncertainty, as described in Section\n            16.6.1 of the draft GHGp LSRG. It is important to note that SI uncertainty does not\n            provide an estimate of DNDC structural uncertainty that Regrow uses in the MRV product.\n            "]}]},{title:"C) Land Use & Land Tracking ",description:"This is a summary of tools and methodologies used to calculate land occupation. Please note that this does not include any emissions factors associated with land use change.",accordionItems:[{summary:"C.1: Data sources, methods, and assumptions used to quantify selected land tracking metric(s)",details:["Land occupation is provided in the GHGp reporting feature for each crop and region\n            combination configured in a user\u2019s Sustainability Insights instance. This area is\n            calculated using OpTIS, which utilizes satellite earth observation data provided\n            primarily by the National Aeronautics and Space Administration (NASA) and the European\n            Space Agency (ESA). The data are sourced primarily from the NASA Landsat and ESA\n            Sentinel missions which provide observations from 10m to 30m resolution and 8-10 day\n            intervals. These data provide continuous high resolution observations (approximately 4\n            to 36 samples per acre) at temporal intervals that maximize data retrieval\n            opportunities.","Please note that region and subregion configurations in Sustainability\n            Insights may be an overestimate of the true land area occupied by entities in a\n            customer\u2019s scope 3 agricultural supply chain. It is the responsibility of the reporting\n            company to ensure these land occupation data are scoped and accounted for according to\n            GHGp reporting requirements."]}]}],c5=()=>(0,w.jsx)(s5,{title:"Part 2: Inventory Methodology",subtitle:(0,w.jsxs)(d.ZT,{children:["This section will cover the methods used by Regrow to calculate the values provided in this report. Please note that the timescale for all of these calculations is a single crop year, defined as the period from November 1 in a given year to October 31 the following year. For example, for the season from 11/1/2022 to 10/31/2023, the \u201ccrop year\u201d would be 2023. You can also review our methodologies ",(0,w.jsx)(i5,{href:"https://help.regrow.ag/knowledge/ghgp-methodology",children:"here"}),"."]}),bgcolor:"semanticPalette.surface.info",color:"semanticPalette.text.main"}),u5=()=>{const e=(0,d.Fg)();return(0,w.jsx)(JC,{alignItems:"flex-end",flexWrap:"wrap",gap:4,mb:0,children:(0,w.jsxs)(d.Kq,{gap:2,flexBasis:"50%",minWidth:e.fixedWidths.md,children:[(0,w.jsx)(d.ZT,{component:"h1",variant:"h2",children:"Greenhouse Gas Inventory Summary"}),(0,w.jsxs)(d.ZT,{children:["This is a summary of data available from Regrow that has been formatted to match the requirements for emissions reporting set by the Greenhouse Gas Protocol (GHGp) Land Sector and Removals Draft Guidance. To learn more, visit the"," ",(0,w.jsx)(i5,{href:"https://ghgprotocol.org/land-sector-and-removals-guidance",children:"GHGp website here"}),". Please note that Regrow plans to release additional metric reporting when the final version of the guidance is published."]})]})})},d5=()=>(0,w.jsx)(s5,{pb:7,title:"Part 1: Greenhouse Gas Emissions by GHGp Accounting Category",subtitle:(0,w.jsxs)(d.ZT,{children:["Unless otherwise stated, figures are shown in"," ",(0,w.jsx)(d.ZT,{fontStyle:"italic",component:"span",children:"metric tonnes of CO2 equivalent per hectare (MtCO2e/ha)"}),", which is the unit required by GHGp, at the region level. Please see the downloadable export file for subregion-level data. Each metric here is shown with a calculation error range that is expected with the DNDC model. The ranges shown represent the upper and lower limits of standard error."]})}),p5=e=>e.si.ghgpFilter;function h5(e){let{page:t,onPageChange:n}=e;const r=d.DQ.useGridApiContext(),i=d.DQ.useGridSelector(r,d.DQ.gridRowCountSelector);return(0,w.jsx)(d.xu,{px:2,children:(0,w.jsx)(d.tl,{page:t,onSetPage:e=>n(null,e),count:i,showFirstButton:!0,showLastButton:!0})})}function f5(e){return(0,w.jsx)(d.DQ.GridPagination,{ActionsComponent:h5,...e})}const m5=e=>{let{rowData:t}=e;return(0,w.jsxs)(d.Kq,{flex:1,minWidth:0,children:[(0,w.jsx)(d.ZT,{variant:"body1",children:t.formattedValue}),(0,w.jsx)(d.bd,{variant:"body2",color:"secondary",children:t.uncertainty})]})},g5=e=>"m2"===e.units,y5=e=>Object.values(e).every(er.$K),v5=e=>{let{children:t,headerCategory:n,section:r,scrollToRef:i}=e;return(0,w.jsxs)(d.xu,{display:"flex",flex:1,minWidth:0,gap:1,alignItems:"center",justifyContent:"space-between",children:[t,(0,w.jsx)(d.u,{id:n,placement:"right",title:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsxs)(d.ZT,{children:["For more information on how Regrow calculates emissions data, see"," ",(0,w.jsxs)("a",{href:"#methodology",onClick:e=>{var t;e.preventDefault(),(0,er.$K)(i)&&(null===(t=i.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))},children:["section ",r," of the Inventory Methodology"]})," ","below."]}),(0,w.jsx)(d.ZT,{children:`Please note that this does not include all aspects of your ${n}, only those metrics for which Regrow has data. For full accounting category emissions, please refer to additional sources.`})]}),children:(0,w.jsx)(d.Kq,{children:(0,w.jsx)(d.le,{fontSize:"small",type:"question-circled"})})})]},n)},b5=e=>{let{headerName:t}=e;return(0,w.jsxs)(d.Kq,{flex:1,minWidth:0,alignItems:"center",children:[(0,w.jsx)(d.bd,{clampLines:1,variant:"h5",children:t}),(0,w.jsx)(d.bd,{clampLines:1,variant:"body2",children:"\xb1 standard error"})]})},_5=e=>[{groupId:"ghgp-accounting-category-1",headerName:"GHGp accounting category:",headerAlign:"left",headerClassName:"accounting-1",children:[{groupId:"ghgp-accounting-category-spacer",headerName:"",headerClassName:"accounting-2",children:[{groupId:"ghgp-accounting-category-3-subcategory",headerName:"Sub-category",headerAlign:"left",headerClassName:"accounting-3",children:[{field:"region"},{field:"subregion"},{field:"crop"}]}]}]},{headerName:"Emissions (MtCO2e/ha)",groupId:"emissions-1",headerAlign:"center",headerClassName:"emissions-1",children:[{headerName:"Land emissions (net)",groupId:"emissions-2-landnet",headerClassName:"emissions-2",headerAlign:"center",children:[{groupId:"emissions-3-landmgmt-co2",headerClassName:"emissions-3",headerAlign:"center",headerName:"Land management net CO2 emissions",renderHeaderGroup:t=>{var n;return(0,w.jsx)(v5,{section:"A",headerCategory:"land management net CO2 emissions",scrollToRef:e,children:(0,w.jsx)(b5,{headerName:null!==(n=t.headerName)&&void 0!==n?n:""})})},children:[{field:"ghg_kg_per_m2"}]},{groupId:"emissions-3-landmgmt-non-co2",headerClassName:"emissions-3",headerAlign:"center",headerName:"Land management non-CO2 emissions",renderHeaderGroup:t=>{var n;return(0,w.jsx)(v5,{section:"A",headerCategory:"land management non-CO2 emissions",scrollToRef:e,children:(0,w.jsx)(b5,{headerName:null!==(n=t.headerName)&&void 0!==n?n:""})})},children:[{field:"ch4_kg_per_m2"},{field:"n2o_direct_kg_per_m2"},{field:"n2o_indirect_kg_per_m2"}]}]}]},{groupId:"removals",headerName:"Removals (net, MtCO2e/ha)",headerAlign:"center",headerClassName:"removals-1",children:[{headerName:"Land management net removals",groupId:"removals-2-landmgmt",headerClassName:"removals-2",headerAlign:"center",children:[{groupId:"removals-3-landmgmt",headerClassName:"removals-3",headerAlign:"center",headerName:"Land management net removals",renderHeaderGroup:t=>{var n;return(0,w.jsx)(v5,{section:"B",headerCategory:"land management net removals",scrollToRef:e,children:(0,w.jsx)(b5,{headerName:null!==(n=t.headerName)&&void 0!==n?n:""})})},children:[{field:"soc_kg_per_m2"}]}]}]},{groupId:"land-tracking",headerName:"Land tracking (hectares)",headerAlign:"center",headerClassName:"land-tracking-1",children:[{headerName:"Land tracking metrics",groupId:"land-tracking-2-metrics",headerClassName:"land-tracking-2",headerAlign:"center",children:[{groupId:"land-tracking-3-occ",headerClassName:"land-tracking-3",headerAlign:"center",headerName:"Land occupation",renderHeaderGroup:t=>(0,w.jsx)(v5,{section:"C",headerCategory:"land occupation",scrollToRef:e,children:(0,w.jsx)(d.bd,{clampLines:1,variant:"h5",children:t.headerName})}),children:[{field:"area_m2"}]}]}]}],w5=[{headerName:"CH4 emissions",field:"ch4_kg_per_m2"},{headerName:"Direct N2O emissions",field:"n2o_direct_kg_per_m2"},{headerName:"Indirect N2O emissions",field:"n2o_indirect_kg_per_m2"},{headerName:"Soil carbon sequestration",field:"soc_kg_per_m2"},{headerName:"The amount of land needed to produce crops, livestock, or forestry products",field:"area_m2"}].map((e=>({flex:1,type:"number",headerAlign:"left",align:"left",renderHeader:e=>(0,w.jsx)(d.bd,{variant:"h5",clampLines:2,children:e.colDef.headerName}),renderCell:e=>{let{value:t}=e;return(0,er.kK)(t)?(0,w.jsx)(d.ZT,{color:"secondary",children:"No data available"}):(n=t,(0,er.Kn)(n)&&Object.hasOwn(n,"uncertainty")&&(0,er.$K)(t.uncertainty)?(0,w.jsx)(m5,{rowData:t}):(e=>(0,er.Kn)(e)&&Object.hasOwn(e,"unit"))(t)?t.formattedValue:t);var n},sortComparator:(e,t)=>{var n,r;return(null!==(n=null===e||void 0===e?void 0:e.value)&&void 0!==n?n:-1/0)-(null!==(r=null===t||void 0===t?void 0:t.value)&&void 0!==r?r:-1/0)},...e}))),x5=[{headerName:"Region",field:"region",width:150,type:"text"},{headerName:"Subregion",field:"subregion",width:150,type:"text"},{headerName:"Crop Type",field:"crop",width:115,type:"text"}].map((e=>({...e,renderCell:e=>{let{value:t}=e;return(0,w.jsx)(d.bd,{clampLines:1,children:t})}}))),k5=[...x5,...w5],C5=e=>{if(g5(e))return null;const t=(0,er.$K)(e.uncertainty)?(0,NT.MA)(e.uncertainty,ol.Ug.MetricUnits).value:void 0;return(0,KJ.$P)(t)},S5=(e,t)=>e.reduce(((e,t)=>{const n=g5(r=t)?(0,NT.$F)({value:r.value,from:r.units,to:"ha"}):(0,NT.MA)(r.value,ol.Ug.MetricUnits);var r;const i={...n,formattedValue:(0,KJ.tW)(n.value,{notation:"standard"}),uncertainty:C5(t)};return{...e,[t.name]:i}}),t),M5=()=>{const e=FS(),{selectedYear:t,selectedCropIds:n,selectedSubregionIds:i}=(0,h.C)(p5),{programSupplySheds:o}=vT(),{ghgpResponse:a=[],isLoading:s}=(e=>{const{programId:t}=YC(),n=(0,er.$K)(t)?`${qC.j}${pS.fetchGhgpReport(t)}`:null,{data:r,...i}=(0,Ju.Z)([n,e],(async()=>(0,er.$K)(n)&&(0,er.$K)(e)?(await rv.Z.post(n,{year:e})).data:[]));return{ghgpResponse:r,...i}})(t),l=(0,r.useMemo)((()=>(e=>{const t=US()(e.flatMap((e=>e.subsections.map((t=>[t.id,{subregionId:t.id,regionId:e.id,region:e.name,subregion:t.name}])))));return e=>{var n;return null!==(n=t[e])&&void 0!==n?n:{region:"Unknown",subregion:"Unknown",subregionId:e,regionId:-1}}})(o)),[o]),c=(0,r.useMemo)((()=>{return e=a,qf()(e.flatMap((e=>e.metrics.map((e=>e.name)))));var e}),[a]),u=(0,r.useMemo)((()=>["region","subregion","crop",...c]),[c]),d=(0,r.useMemo)((()=>(0,LS.aW)(c)),[c]),p=(0,r.useMemo)((()=>k5.filter((e=>u.includes(e.field)))),[u]),f=(0,r.useMemo)((()=>a.map((t=>((e,t,n,r)=>{let{sourcing_region_id:i,crop_id:o,metrics:a}=e;return{...S5(a,t),...r(i.unit_id),id:`${i.unit_type}+${i.unit_id}+${o}`,cropId:o,crop:n(o)}})(t,d,e,l))).sort(((e,t)=>e.region.localeCompare(t.region)||e.subregion.localeCompare(t.subregion)||e.crop.localeCompare(t.crop)))),[a,d,e,l]);return{tableRowData:(0,r.useMemo)((()=>{return(e=f,(t,n)=>e.filter((e=>(0,LS.sq)(t).includes(e.cropId)&&(0,LS.sq)(n).includes(e.subregionId))))(n,i);var e}),[f,n,i]),tableColumns:p,isLoading:s}},T5=e=>{let{methodologyRef:t}=e;const n=(0,d.Fg)(),{selectedYear:i}=(0,h.C)(p5),{tableRowData:o,tableColumns:a,isLoading:s}=M5(),l=(0,r.useMemo)((()=>{return[{category:"accounting",colors:[{backgroundColor:(e=n.palette).grey[300]},{backgroundColor:e.grey[300]},{backgroundColor:e.grey[100]}]},{category:"emissions",colors:[{backgroundColor:e.categoryPalette[2].chart,color:e.semanticPalette.textInverted.main},{backgroundColor:e.categoryPalette[2].highlight},{backgroundColor:e.categoryPalette[2].surface}]},{category:"removals",colors:[{backgroundColor:e.categoryPalette[1].chart,color:e.semanticPalette.textInverted.main},{backgroundColor:e.categoryPalette[1].highlight},{backgroundColor:e.categoryPalette[1].surface}]},{category:"land-tracking",colors:[{backgroundColor:e.categoryPalette[7].chart,color:e.semanticPalette.textInverted.main},{backgroundColor:e.categoryPalette[7].highlight},{backgroundColor:e.categoryPalette[7].surface}]}];var e}),[n.palette]),c=(0,r.useMemo)((()=>US()(((e,t)=>e.flatMap((e=>{let{category:n,colors:r}=e;return r.map(((e,r)=>{const i="accounting"===n&&1===r;return{className:`${n}-${r+1}`,styles:{border:`1px solid ${t.palette.semanticPalette.surface.main}`,...i?{borderTop:"none"}:{},...e}}}))})))(l,n).map((e=>{let{className:t,styles:n}=e;return[`& .${t}`,n]})))),[l,n]);return(0,w.jsx)(d.Xk,{children:(0,w.jsx)(d.Kq,{height:800,width:"100%",sx:c,children:(0,er.kK)(i)||s?(0,w.jsx)(bT,{id:"table"}):(0,w.jsx)(d.DQ.DataGrid,{columnHeaderHeight:56,autoHeight:!0,rowSpacingType:"border",experimentalFeatures:{columnGrouping:!0},rows:o,columns:a,columnGroupingModel:_5(t),disableColumnMenu:!0,hideFooter:!1,hideFooterPagination:!1,pageSizeOptions:[10],pagination:!0,slots:{pagination:f5},initialState:{sorting:{sortModel:[{field:"region",sort:"asc"}]},pagination:{paginationModel:{pageSize:10}}}})})})},E5=()=>{const{programId:e}=YC(),t=(0,h.C)(p5),n=(0,r.useMemo)((()=>!y5(t)),[t]),i=(0,r.useCallback)((async()=>{if(!(0,er.$K)(e)||!y5(t))return Promise.reject("Invalid request");try{const n=await qC.Z.postGhgpReportExport(e,{sourcing_region_ids:t.selectedSubregionIds.map((e=>({unit_id:e,unit_type:"subsection"}))),crop_types:t.selectedCropIds,year:t.selectedYear}),r=`ghgp_report_${t.selectedYear}.xlsx`;return Promise.resolve((0,hp.Sv)(n.data,r,hp.HY.ApplicationXlsx))}catch(n){return Promise.reject(n)}}),[t,e]);return(0,w.jsx)(K2,{onDownload:i,disabled:n,children:"Download .xlsx"})},P5=()=>{var e,t;const n=(0,h.T)(),{isLoading:i,allAvailableYears:o,allAvailableSubregionIds:a,allAvailableCropIds:s,filteredCropOptions:l,regionOptions:c}=(()=>{const{programId:e}=YC(),{programSupplySheds:t,isLoading:n}=vT({sortKey:"name"}),i=(0,h.C)((t=>nS(t,e))),{selectedSubregionIds:o}=(0,h.C)(p5),a=(0,r.useMemo)((()=>JS(t)),[t]),s=(0,r.useMemo)((()=>XS(t)),[t]),l=(0,r.useMemo)((()=>RS(null!==i&&void 0!==i?i:void 0)),[i]),{cropIds:c,cropOptions:u}=$E(null!==o&&void 0!==o?o:void 0);return{isLoading:n,allAvailableCropIds:s,allAvailableSubregionIds:a,allAvailableYears:l,filteredCropIds:c,filteredCropOptions:u,regionOptions:(0,r.useMemo)((()=>tM(t)),[t])}})(),u=(0,h.C)(p5),p=(0,r.useCallback)((e=>{n((0,yT.e2)(e))}),[n]);return(0,r.useEffect)((()=>{var e;!i&&bS()(u).some(er.Ft)&&p({selectedYear:null!==(e=QA()(o))&&void 0!==e?e:null,selectedSubregionIds:a,selectedCropIds:s})}),[a,o,i,u,s,p]),(0,w.jsxs)(d.xu,{display:"flex",gap:2,width:"fit-content",alignItems:"center",children:[(0,w.jsx)(I5,{children:"Show data for the year "}),(0,w.jsx)(z1,{allAvailableYears:o,selectedYears:(0,er.$K)(u.selectedYear)?[u.selectedYear]:[],onChange:e=>{var t;return p({selectedYear:null!==(t=wT()(e))&&void 0!==t?t:null})}}),(0,w.jsx)(I5,{children:"across"}),(0,w.jsx)(N1,{options:c,selectedIds:null!==(e=u.selectedSubregionIds)&&void 0!==e?e:[],availableSubsectionIds:a,onChange:e=>p({selectedSubregionIds:e})}),(0,w.jsx)(I5,{children:"and"}),(0,w.jsx)(tP,{cropTypeOptions:l,selectedCropIds:null!==(t=u.selectedCropIds)&&void 0!==t?t:[],onChange:e=>p({selectedCropIds:e})})]})},I5=e=>{let{children:t,...n}=e;return(0,w.jsx)(d.ZT,{component:"span",variant:"h5",sx:{whiteSpace:"nowrap"},...n,children:t})},O5=()=>(0,w.jsx)(WE,{position:"top",style:{margin:"0 -16px"},children:(0,w.jsxs)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,w.jsx)(P5,{}),(0,w.jsx)(E5,{})]})}),L5=e=>{let{methodologyRef:t}=e;return(0,w.jsx)(d.Xk,{ref:t,children:(0,w.jsxs)(d.Kq,{p:5,spacing:6,children:[(0,w.jsx)(d.Kq,{direction:"row",spacing:6,children:l5.map((e=>{let{title:t,description:n}=e;return(0,w.jsx)(d.Kq,{spacing:5,flex:1,children:(0,w.jsxs)(d.Kq,{spacing:4,children:[(0,w.jsx)(d.ZT,{variant:"h4",children:t}),(0,w.jsx)(d.ZT,{variant:"body2",children:n})]})},t)}))}),(0,w.jsx)(d.Kq,{direction:"row",spacing:6,children:l5.map((e=>{let{title:t,accordionItems:n}=e;return(0,w.jsx)(d.Kq,{spacing:5,flex:1,children:n.map((e=>(0,w.jsx)(d.xu,{children:(0,w.jsxs)(d.UQ,{color:"default",elevation:1,children:[(0,w.jsx)(d._O,{children:(0,w.jsx)(d.ZT,{variant:"h5",children:e.summary})}),(0,w.jsx)(d.rN,{children:(0,w.jsx)(d.Kq,{gap:3,children:e.details.map((e=>(0,er.HD)(e)?(0,w.jsx)(d.ZT,{variant:"body2",children:e},e):e))})})]})},e.summary)))},t)}))})]})})},R5=()=>{const e=(0,r.useRef)(null);return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(eS,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(u5,{}),(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d5,{}),(0,w.jsx)(O5,{}),(0,w.jsx)(T5,{methodologyRef:e})]})]})}),(0,w.jsxs)(eS,{bgcolor:"semanticPalette.surface.info",gap:0,pt:0,children:[(0,w.jsx)(c5,{}),(0,w.jsx)(L5,{methodologyRef:e})]})]})};var j5=n(15875),D5=n.n(j5);const A5=e=>{const t=(0,h.C)(S.DC),n=(0,h.C)(HI),i=(0,er.$K)(null===n||void 0===n?void 0:n[0])?n[0]-1:null,[o,a]=(0,r.useState)({labels:[],datasets:[]}),[s,l]=(0,r.useState)(0),[c,u]=(0,r.useState)(0),[d,p]=(0,r.useState)(null),[f,m]=(0,r.useState)(null),g=e=>e<1?e<0&&e>-1?Math.floor(e):Math.ceil(e):Math.round(e);(0,r.useEffect)((()=>{var n,r,o,s,c,d,h,f,y,v;if(!e)return;const b={labels:[],datasets:[]};Object.keys(null!==(n=null===e||void 0===e?void 0:e.annualized_summary)&&void 0!==n?n:[]).forEach((n=>{var r,i;b.labels.push(n),b.datasets.push((0,_u.gU)(H1(null!==(r=null===(i=e.annualized_summary)||void 0===i?void 0:i[Number(n)])&&void 0!==r?r:0,null===e||void 0===e?void 0:e.kpi_name,t),15))})),a(b);const _=null!==(r=null===(o=e.crop_area)||void 0===o?void 0:o.value)&&void 0!==r?r:0,w=(0,NT.$F)({value:_,from:"m2",to:t}).value;u(w);const x=null!==(s=null===e||void 0===e||null===(c=e.metric)||void 0===c?void 0:c.value)&&void 0!==s?s:0,k=H1(x,null===e||void 0===e?void 0:e.kpi_name,t);if(l(k),(0,er.$K)(null===e||void 0===e?void 0:e.annualized_summary)&&(0,er.$K)(null===e||void 0===e||null===(d=e.metric)||void 0===d?void 0:d.value)&&(0,er.$K)(null===e||void 0===e||null===(h=e.crop_area)||void 0===h?void 0:h.value)&&e.crop_area.value>0){const t=D5()((0,ii._J)(e.annualized_summary)),n=0!==t?g((e.metric.value-t)/Math.abs(t)*100):null;p(n)}else p(null);const C=(0,er.$K)(i)?null===e||void 0===e||null===(f=e.annualized_summary)||void 0===f?void 0:f[String(i)]:null;if((0,er.$K)(C)&&(0,er.$K)(null===e||void 0===e||null===(y=e.metric)||void 0===y?void 0:y.value)&&(0,er.$K)(null===e||void 0===e||null===(v=e.crop_area)||void 0===v?void 0:v.value)&&e.crop_area.value>0){const t=0!==C?g((e.metric.value-C)/Math.abs(C)*100):null;m(t)}else m(null)}),[e,t,i]);return{timeTrendChartData:o,metric:s,cropArea:c,comparisonValues:[{label:(0,er.$K)(i)?`Compared to ${i}`:"",displayValue:(0,er.$K)(f)&&Number.isFinite(f)?`${Math.abs(f)}%`:"--",rawValue:(0,er.$K)(f)&&Number.isFinite(f)?f:null},{label:`Compared to ${o.datasets.length} year avg.`,displayValue:(0,er.$K)(d)&&Number.isFinite(d)?`${Math.abs(d)}%`:"--",rawValue:(0,er.$K)(d)&&Number.isFinite(d)?d:null}]}},N5=()=>{const{programSupplySheds:e}=vT(),t=(0,h.C)(VI),n=UE(),i=(0,r.useMemo)((()=>nM(e,n,t).cropOptions),[n,e,t]);return(0,r.useMemo)((()=>i.map((e=>Number(e.value)))),[i])},F5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=FS(),i=(0,h.C)(WI),o=(0,r.useMemo)((()=>{const r=(0,ii.pJ)(e).filter((e=>{let[t]=e;return i.includes(Number(t))})).sort(((e,t)=>{let[,n]=e,[,r]=t;return r-n})),o=r.map((e=>{let[t]=e;return n(t)})),a=r.map((e=>{let[n,r]=e;return(0,er.$K)(t)?t(r):(0,_u.gU)(r,2)}));return{datasets:[{data:a}],labels:o}}),[e,n,i,t]);return o},z5=e=>{var t;let{cropSummary:n,unit:i}=e;const o=(0,h.C)(S.DC),{pagination:{page:a,setPaginationLength:s,setPageSize:l,pageSize:c}}=r.useContext(B0),u=(0,mS.O)(o),p=F5(n,(e=>(0,NT.$F)({value:e,from:"m2",to:o}).value)),f=(0,r.useMemo)((()=>{var e;const t=null===(e=p.datasets[0])||void 0===e?void 0:e.data,n=(0,fX.S)(t);return{...p,datasets:[{data:t.map((e=>(0,fX.F)(e,n)))}]}}),[p]),m=(0,r.useMemo)((()=>"pct"===i?f:p),[p,f,i]),{paginatedData:g}=(0,d.HB)({data:m,pageSize:c,page:a,paginated:!0});return r.useEffect((()=>{var e,t;s(null!==(e=null===(t=m.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0),l(5)}),[null===(t=m.labels)||void 0===t?void 0:t.length,l,s]),(0,w.jsx)(d.Gm,{data:g,options:{scales:{x:{ticks:{callback:e=>"pct"===i?`${e}%`:(0,KJ.tW)(Number(e))}}},plugins:{tooltip:{yAlign:"bottom",callbacks:{title:()=>"",label:e=>{let{raw:t}=e;const n="num"===i?` ${u}`:"%";return`${(0,KJ.tW)(t)}${n}`}}}}}})},B5=e=>{let{label:t,rawValue:n,displayValue:r,reverse:i=!1}=e;const{palette:o}=(0,d.Fg)(),{iconType:a,color:s}=((e,t,n)=>{const{green:r,red:i,neutral:o}=n;return(0,er.kK)(e)||0===e?{color:o,iconType:"minus"}:e>0?{color:t?i:r,iconType:"arrow-up"}:{color:t?r:i,iconType:"arrow-down"}})(n,i,{neutral:o.semanticPalette.text.secondary,red:o.semanticPalette.text.error,green:o.semanticPalette.text.success});return(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:2,children:[(0,w.jsx)(d.ZT,{variant:"body2",color:"text.secondary",children:t}),(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",children:[(0,w.jsx)(d.JO,{size:16,type:a}),(0,w.jsx)(d.ZT,{color:s,variant:"h6",children:r})]})]},t)},U5=e=>{let{primaryLabel:t,secondaryLabel:n,comparisons:r,reverse:i}=e;return(0,w.jsxs)(d.Kq,{bgcolor:"semanticPalette.surface.secondary",borderRadius:e=>e.borderRadii.md,direction:"row",justifyContent:"space-between",p:3,children:[(0,w.jsxs)(d.Kq,{justifyContent:"center",spacing:1,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:t}),(0,er.$K)(n)&&(0,er.HH)(n)&&(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:n})]}),(0,w.jsx)(d.Kq,{justifyContent:"center",spacing:2,children:r.map((e=>(0,er.$K)(e)&&(0,w.jsx)(B5,{label:e.label,rawValue:e.rawValue,displayValue:e.displayValue,reverse:i},e.label)))})]})},$5=e=>{let{comparisonProps:t,timeTrendProps:n}=e;const{primaryLabel:r,secondaryLabel:i,comparisons:o,reverse:a}=t,{labels:s,datasets:l,unitLabel:c,options:u}=n;return(0,w.jsxs)(d.Kq,{height:"100%",children:[(0,w.jsx)(U5,{primaryLabel:r,secondaryLabel:i,comparisons:o,reverse:a}),(0,w.jsx)(d.xu,{mt:3,flex:1,children:(0,w.jsx)(d.yW,{data:{labels:s,datasets:[{data:l}]},unitLabel:c,options:u})})]})},V5=()=>{const e=(0,h.C)(WI),t=(0,h.C)(S.DC),n=N5(),[i,o]=(0,r.useState)("num"),{response:a,loading:s}=P0({kpi:"crop_area",summarizeBy:["crop_type","annualized"],cropIds:1!==e.length?n:e}),l=(0,mS.O)(t),c=e.length>1,u=e=>{o(e)},{timeTrendChartData:d,metric:p,comparisonValues:f}=A5(a),m=c&&!s?[{label:"",component:(0,w.jsx)(z5,{cropSummary:null===a||void 0===a?void 0:a.crop_type_summary,unit:i})}]:[{label:"",component:(0,w.jsx)($5,{comparisonProps:{primaryLabel:(0,KJ.tW)(p),comparisons:f},timeTrendProps:{...d,unitLabel:l}})}];return(0,w.jsx)(U0,{title:"Area by crop type",description:`in ${l}`,menuItems:c?[{label:"Number",onClick:()=>u("num")},{label:"Percentage",onClick:()=>u("pct")}]:void 0,tooltip:uS.rg.KPI.cropArea,panels:m,isLoading:s})},q5=(e,t,n)=>{var r;return(0,ii.pJ)(null!==(r=e.emission_factor_details)&&void 0!==r?r:uS.A1).map((e=>{let[r,i]=e;return"ghg_emissions_factor"===r?t:"fert_emissions_factor"===r?n:i})).reduce(((e,t)=>e+t),0)},Z5=e=>{var t;return(0,ii._J)(null!==(t=e.emission_factor_details)&&void 0!==t?t:uS.A1).reduce(((e,t)=>e+t),0)},H5=(e,t,n)=>{var r,i,o,a;const s=null===(r=e.emission_factor_details)||void 0===r?void 0:r[t];return(0,er.X0)(s)?0:null!==(i=null!==(o=null===n||void 0===n||null===(a=n.crop_type_summary)||void 0===a?void 0:a[e.crop_id])&&void 0!==o?o:s)&&void 0!==i?i:0},G5=()=>{const{cropByCDLId:e}=(0,NS.n)(),t=(0,h.C)(QI),n=(0,h.C)(WI),i=N5(),o=(0,h.C)(S.DC),{response:a,loading:s}=P0({kpi:"ghg_emissions_factor",summarizeBy:["crop_type"],cropIds:i}),{response:l,loading:c}=P0({kpi:"net_ghg_emissions_factor",summarizeBy:["crop_type"],cropIds:i}),u=void 0,p=s||c||!1,[f,m]=(0,r.useState)("ghg"),g=(0,r.useCallback)(((n,r)=>t.map((t=>{var i,o,a,s;const l=H5(t,"ghg_emissions_factor",n),c=H5(t,"fert_emissions_factor",r);return{id:String(t.crop_id),index:null!==(i=null===(o=e[t.crop_id])||void 0===o?void 0:o.label)&&void 0!==i?i:uS.jc[t.crop_id],book:Z5(t),baseline:q5(t,l,c),scenario:0,ef:0,detailedData:{book:null!==(a=t.emission_factor_details)&&void 0!==a?a:uS.A1,baseline:{...null!==(s=t.emission_factor_details)&&void 0!==s?s:uS.A1,fert_emissions_factor:c,ghg_emissions_factor:l},scenario:uS.A1,fullScenario:{}}}})).sort(((e,t)=>t.book-e.book))),[t,e]),y=(0,r.useMemo)((()=>g(a,u)),[u,a,g]),v=(0,r.useMemo)((()=>g(l,u)),[u,l,g]),b=(0,r.useMemo)((()=>("ghg"===f?y:v).filter((e=>n.includes(Number(e.id))))),[f,y,v,n]),_=e=>{m(e)};return(0,w.jsx)(d.Bj,{title:A0.ef_book_values.title,description:A0.ef_book_values.description(o),tooltip:A0.ef_book_values.cardTooltip,menuItems:[{label:"Field GHG EF",onClick:()=>_("ghg")},{label:"Field net EF",onClick:()=>_("net_ghg")}],children:p?(0,w.jsx)(bT,{id:"loading-field-to-farm"}):(0,w.jsx)(W5,{children:(0,w.jsx)(kX,{reverse:!1,barChartData:b,keys:["book","baseline"],layout:"horizontal",margin:{left:185},customTick:e=>(0,w.jsx)(CX,{startNumber:0,textOffset:180,dataLength:b.length,...e}),pagination:{itemsPerPage:5},renderTooltip:(e,t)=>{const n=uS.LM[t],r=e.data.detailedData.book[t].toPrecision(3),i=e.data.detailedData.baseline[t].toPrecision(3);return(0,w.jsxs)(HK,{children:[(0,w.jsxs)(Cd.k,{direction:"row",nowrap:!0,justifyContent:"flex-start",alignItems:"center",className:"margin-bottom-8",children:[(0,w.jsx)(zi.C,{inline:!0,size:12,color:null===n||void 0===n?void 0:n.color,id:"ef-tooltip-circle"}),(0,w.jsx)(Rn.x,{bold:!0,noMargin:!0,children:null===n||void 0===n?void 0:n.label})]}),(0,w.jsxs)(Cd.k,{direction:"column",children:[void 0!==r&&(0,w.jsxs)(gX,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:"Book value"}),(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:r})]}),(0,w.jsxs)(gX,{children:[(0,w.jsx)(Rn.x,{noMargin:!0,children:"Regrow Baseline"}),(0,w.jsx)(Rn.x,{noMargin:!0,bold:!0,children:i})]})]})]})},legends:(0,ii._J)(uS.gI).map((e=>({id:e.label,label:e.label,color:e.color})))})})})},W5=Z.ZP.div`
  height: 300px;
  width: 100%;
  padding-bottom: 15px;
  .responsive-chart {
    height: 100%;
    width: 100%;
  }

  &.bar-charts {
    width: 100%;
  }
  .ef-legend {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .ef-legend-circle {
      flex: 0 0 12px;
    }

    .ef-legend-text {
      font-size: 12px;
      line-height: 12px;
      color: ${e=>{let{theme:t}=e;return t.color.text.main}};
    }
  }
`,Y5={width:"100%",height:"100%",position:"relative"},K5=e=>{let{shouldTriggerResize:t}=e;const n=(0,h.T)(),i=(0,h.C)(VI),{isLoading:o,geometries:a,allGeometryFeatures:s}=lI("sub-section"),l=r.useMemo((()=>(0,fS.Yr)({geometries:a,idsToInclude:i,type:"sub-section"})),[a,i]),c=r.useMemo((()=>(0,er.kK)(s)||(0,er.yD)(null===s||void 0===s?void 0:s.features)?null:(0,er.Of)(null===l||void 0===l?void 0:l.features)?l:s),[l,s]);return(0,w.jsx)("div",{className:"kpi-map",children:o?(0,w.jsx)(bT,{id:"loading-map"}):(0,w.jsxs)(TI,{styleSelectors:!1,style:Y5,overrideMapStyle:"light",onClick:e=>{if(e.features&&e.features.length){var t;const r=e.features[0],i=null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.id;n((0,yT.wD)(Number(i)))}},mapBoundsGeometries:c,resizeChangeKey:t,interactiveLayerIds:["clickable-features-fill","project-geometries-fill"],children:[s&&(0,w.jsx)(oI,{id:"kpi-geometries",type:"geojson",data:s,children:(0,w.jsx)(sI,{...PI})}),(0,w.jsx)(oI,{id:"kpi-clickable-geometries",type:"geojson",data:l,children:(0,w.jsx)(sI,{...EI})})]})})},X5=e=>{let{programId:t}=e;const n=(0,h.T)(),{isLoading:i}=vT(),o=(0,h.C)(GI),a=(0,h.C)(XI),s=(0,h.C)((e=>JI(e))),l=(0,h.C)(S.DC),c=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_KPI_SUBSECTION_AREA]))),u=(0,r.useMemo)((()=>(0,_u.wH)((0,NT.$F)({value:a,from:"ha",to:l}).value)),[a,l]);return(0,r.useEffect)((()=>{const e=o;void 0===e||s||n((0,HC.yK)({programId:t,year:e}))}),[t,n,s,o]),(0,w.jsx)(Cd.k,{className:"margin-8",alignItems:"center",justifyContent:"space-between",children:(0,w.jsxs)(Cd.k,{children:[(0,w.jsxs)(Rn.x,{className:"mb-0",variant:"h3",bold:!0,children:[(0,w.jsx)(f._H,{id:"Sourcing regions",defaultMessage:"Sourcing regions"})," "]}),c&&!i?(0,w.jsxs)(Rn.x,{className:"mb-0 margin-left-5",variant:"h3",children:[u," ",l]}):(0,w.jsx)(On.D8,{id:"kpi-map-loading",scale:.5,className:"m-0"})]})})},J5=e=>{let{programId:t,shouldTriggerResize:n}=e;return(0,w.jsxs)("div",{className:"map-container",children:[(0,w.jsx)(X5,{programId:t}),(0,w.jsx)(K5,{shouldTriggerResize:n})]})},Q5=e=>{var t;let{cropTypeSummary:n}=e;const i=(0,h.C)(S.DC),{pagination:{page:o,setPaginationLength:a}}=r.useContext(B0),s=F5(n,(e=>(0,NT.$F)({value:e,from:"m2",to:i}).value)),{paginatedData:l}=(0,d.HB)({data:s,pageSize:F0,page:o,paginated:!0});return r.useEffect((()=>{var e,t;return a(null!==(e=null===(t=s.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0)}),[null===(t=s.labels)||void 0===t?void 0:t.length,a]),(0,w.jsx)(d.Gm,{data:l,options:{scales:{x:{ticks:{callback:e=>(0,KJ.tW)(Number(e))}}},plugins:{tooltip:{callbacks:{label:e=>{let{raw:t}=e;return`${(0,KJ.tW)(t)} ${(0,mS.O)(i)}`}}}}}})},e3=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return`${(0,_u.gU)((0,fX.F)(t,e),n)}`},t3=[["till_notill_area_m2","No-till"],["till_redu_area_m2","Reduced Till"],["till_conv_area_m2","Conventional"]];var n3=n(27594);const r3=e=>{let{data:t}=e;return(0,w.jsx)(n3.x1,{data:t,height:200,options:{scales:{x:{beginAtZero:!1,ticks:{padding:10},grid:{drawOnChartArea:!1,drawTicks:!1}},y:{beginAtZero:!0,min:0,max:100,ticks:{maxTicksLimit:10,padding:5},grid:{drawTicks:!1}}},plugins:{legend:{position:"bottom",align:"start",labels:{usePointStyle:!0,padding:20,font:{size:12},boxWidth:5,generateLabels:e=>{var t,n;return(null!==(t=null===(n=e.config.data)||void 0===n?void 0:n.datasets)&&void 0!==t?t:[]).map((e=>{var t;return{text:null!==(t=e.label)&&void 0!==t?t:"",fillStyle:e.borderColor,strokeStyle:e.borderColor}}))}}},tooltip:{callbacks:{label:e=>{const{datasetIndex:t,raw:n}=e;return(0,er.$K)(t)&&(0,er.$K)(e.dataset.label)?`${e.dataset.label}: ${n}%`:`${n}`}},displayColors:!1}}}})},i3=(0,Z.ZP)(d.W2)`
  .map-container {
    border: 1px solid ${e=>{let{theme:t}=e;return t.color.stroke.strong}};
    border-radius: 4px;
    padding: 8px 16px 20px;
    height: 400px;
    min-width: 610px;
    flex: 1;
    background-color: white;

    .kpi-map {
      width: 100%;
      height: 323px;
      z-index: ${ud.K.Base};

      .mapboxgl-ctrl-bottom-left,
      .mapboxgl-ctrl-bottom-right {
        display: none;
      }
    }

    .text-element--h3 {
      margin-top: 0;
    }
  }
`,o3=Z.ZP.div`
  height: inherit;
  background-color: ${e=>e.color};
  flex-grow: 1;
`,a3=Z.ZP.div`
  position: relative;
  height: ${e=>{var t;return null!==(t=e.barHeight)&&void 0!==t?t:200}}px;
  .line {
    position: absolute;
    height: inherit;
    width: 100%;
  }
  .legend {
    height: 72px;
    .confidence {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      height: 24px;
      .label {
        margin-right: 4px;
        ::before {
          content: '';
          display: inline-block;
          width: 15px;
          height: 10px;
          transform: scaleY(0.2);
          background-color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_400}};
          margin-right: 4px;
        }
      }
      .tooltip {
        div {
          display: flex;
          align-items: center;
        }
      }
    }
    .health {
      height: 48px;
      .buckets {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0px;
        gap: 2px;
        width: 100%;
        height: 6px;
      }
      .labels {
        display: flex;
        justify-content: space-between;
        color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_600}};
      }
    }
  }
`,s3=Z.ZP.div`
  padding: 10px;
  background-color: black;
  color: white;
  border-radius: 4px;
  opacity: 0.9;
`,l3=Z.ZP.div`
  margin-top: 20px;
`,c3=(e,t)=>(0,_u.gU)((0,fX.F)(e,t),2),u3=e=>{var t;let{cropSummary:n={}}=e;const i=(0,h.C)(S.DC),{pagination:{page:o,setPaginationLength:a}}=r.useContext(B0),s=F5(n,(e=>(0,_u.gU)((0,NT.T1)(e,i).value*uS.xB,2))),{paginatedData:l}=(0,d.HB)({data:s,pageSize:F0,page:o,paginated:!0});return r.useEffect((()=>{var e,t;return a(null!==(e=null===(t=s.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0)}),[null===(t=s.labels)||void 0===t?void 0:t.length,a]),(0,w.jsx)(d.Gm,{data:l,options:{scales:{x:{ticks:{callback:e=>(0,KJ.tW)(Number(e))}}}}})},d3=e=>{let{data:t}=e;const n=(0,h.C)(S.DC),{timeTrendChartData:r,metric:i,comparisonValues:o}=A5(t);return(0,w.jsx)($5,{comparisonProps:{primaryLabel:i?`${(0,_u.gU)(i,2)}`:"No Data",comparisons:o,reverse:!0},timeTrendProps:{...r,unitLabel:`kg/${(0,mS.O)(n)}`,formatter:e=>String((0,_u.gU)(e,2))}})},p3=[["fert_k_kg_per_m2","K (Potassium)"],["fert_n_kg_per_m2","N (Nitrogen)"],["fert_p_kg_per_m2","P (Phosphorus)"],["fert_s_kg_per_m2","S (Sulfur)"]],h3=e=>{var t;let{cropSummary:n}=e;const i=(0,h.C)(S.DC),{pagination:{page:o,setPaginationLength:a,pageSize:s,setPageSize:l}}=r.useContext(B0),c=F5(n,(e=>(0,NT.T1)(e,i).value)),{paginatedData:u}=(0,d.HB)({data:c,pageSize:s,page:o,paginated:!0});return r.useEffect((()=>{var e,t;a(null!==(e=null===(t=c.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0),l(5)}),[null===(t=c.labels)||void 0===t?void 0:t.length,a,l]),(0,w.jsx)(d.Gm,{data:u,options:{scales:{x:{ticks:{callback:e=>(0,KJ.tW)(Number(e))}}},plugins:{tooltip:{yAlign:"bottom",callbacks:{title:()=>"",label:e=>{let{raw:t}=e;return`${(0,KJ.tW)(Number(t))} kg/${(0,mS.O)(i)}`}}}}}})},f3=e=>{var t;let{cropSummary:n,valueConversion:i}=e;const{pagination:{setPaginationLength:o,page:a}}=r.useContext(B0),s=F5(n,(e=>{var t;return(0,_u.gU)(null!==(t=null===i||void 0===i?void 0:i(e))&&void 0!==t?t:e,uS.$s)})),{paginatedData:l}=(0,d.HB)({data:s,pageSize:F0,page:a,paginated:!0});return r.useEffect((()=>{var e,t;return o(null!==(e=null===(t=s.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0)}),[null===(t=s.labels)||void 0===t?void 0:t.length,o]),(0,w.jsx)(d.Gm,{data:l,options:{scales:{x:{ticks:{callback:e=>(0,KJ.tW)(Number(e))}}}}})},m3=e=>{let{data:t,comparisonTimeTrendNegativeIsGain:n}=e;const{timeTrendChartData:r,metric:i,comparisonValues:o}=A5(t);return(0,w.jsx)($5,{comparisonProps:{primaryLabel:0===i?"No Data":`${String((0,_u.wH)(i,3)).toUpperCase()}`,comparisons:o,reverse:n},timeTrendProps:{...r,unitLabel:"kg CO2e / kg yield"}})},g3=e=>{var t;let{subsectionSummary:n,valueConversion:i}=e;const{pagination:{page:o,setPaginationLength:a}}=r.useContext(B0),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const{programSupplySheds:n}=vT(),i=n.map((e=>e.subsections.map((e=>({id:e.id,name:e.name}))))).flat(),o=(0,r.useCallback)((e=>{var t,n;return null!==(t=null===(n=i.find((t=>t.id===Number(e))))||void 0===n?void 0:n.name)&&void 0!==t?t:""}),[i]),a=(0,r.useMemo)((()=>{const n=(0,ii.pJ)(e).sort(((e,t)=>{let[,n]=e,[,r]=t;return r-n})),r=n.map((e=>{let[t]=e;return o(t)})),i=n.map((e=>{let[n,r]=e;return(0,er.$K)(t)?t(r):(0,_u.gU)(r,2)}));return{datasets:[{data:i}],labels:r}}),[o,e,t]);return a}(n,(e=>{var t;return(0,_u.gU)(null!==(t=null===i||void 0===i?void 0:i(e))&&void 0!==t?t:e,uS.$s)})),{paginatedData:l}=(0,d.HB)({data:s,page:o,pageSize:F0,paginated:!0});return r.useEffect((()=>{var e,t;return a(null!==(e=null===(t=s.labels)||void 0===t?void 0:t.length)&&void 0!==e?e:0)}),[null===(t=s.labels)||void 0===t?void 0:t.length,a]),(0,w.jsx)(d.Gm,{data:l,options:{scales:{y:{ticks:{callback(e){return`${E0()(this.getLabelForValue(Number(e)),{length:16})}`}}}}}})},y3=e=>{let{kpi:t,comparisonTimeTrendNegativeIsGain:n}=e;const r=N5(),i=(0,h.C)(WI),o=(0,h.C)(VI),a=(0,h.C)(S.DC),s=o.length>1&&1===i.length,l=i.length>1;let c=[],u=i;l?(c=["crop_type"],u=r):(c=["annualized"],s&&c.push("subsection"));const{response:d,loading:p}=P0({kpi:t,summarizeBy:c,cropIds:u}),f=[];return(0,er.$K)(null===d||void 0===d?void 0:d.crop_type_summary)&&f.push({label:L0.BY_CROP_TYPE,component:(0,w.jsx)(f3,{cropSummary:null===d||void 0===d?void 0:d.crop_type_summary,valueConversion:e=>e})}),!l&&(0,er.$K)(d)&&f.push({label:L0.OVER_TIME,component:(0,w.jsx)(m3,{data:d,comparisonTimeTrendNegativeIsGain:n})}),(0,er.$K)(null===d||void 0===d?void 0:d.subsection_summary)&&f.push({label:L0.BY_AREA,component:(0,w.jsx)(g3,{subsectionSummary:null===d||void 0===d?void 0:d.subsection_summary})}),(0,w.jsx)(U0,{title:A0[t].title,description:A0[t].description(a),tooltip:A0[t].cardTooltip,isLoading:p,panels:f})},v3=e=>{let{data:t,unitsLabel:n,negativeIsGain:r=!1}=e;const{timeTrendChartData:i,metric:o,comparisonValues:a}=A5(t);return(0,w.jsx)($5,{comparisonProps:{primaryLabel:0===o?"No Data":`${(0,_u.sk)(o,3,"string")}`,comparisons:a,reverse:r},timeTrendProps:{...i,unitLabel:n,formatter:e=>(0,KJ.d5)(e,{maxFractionDigits:3})}})},b3=e=>{let{response:t,measurement:n,negativeIsGain:r,bigNumberStyle:i}=e;const{metric:o,comparisonValues:a,timeTrendChartData:s,cropArea:l}=A5(t),c=`${(0,_u.gU)((0,fX.F)(o,l))}%`,u=`${String((0,_u.wH)(o))} ${(0,mS.O)(n)}`,d="percent"===i?c:u,p="percent"===i?u:"";return(0,w.jsx)($5,{comparisonProps:{primaryLabel:0===o?"No Data":d,secondaryLabel:0===o?"":p,comparisons:a,reverse:r},timeTrendProps:{...s,unitLabel:`${(0,mS.O)(n)}`}})};var _3=Math.PI,w3=2*_3,x3=1e-6,k3=w3-x3;function C3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function S3(){return new C3}C3.prototype=S3.prototype={constructor:C3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>x3)if(Math.abs(u*s-l*c)>x3&&i){var p=n-o,h=r-a,f=s*s+l*l,m=p*p+h*h,g=Math.sqrt(f),y=Math.sqrt(d),v=i*Math.tan((_3-Math.acos((f+d-m)/(2*g*y)))/2),b=v/y,_=v/g;Math.abs(b-1)>x3&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*p>c*h)+","+(this._x1=e+_*s)+","+(this._y1=t+_*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>x3||Math.abs(this._y1-c)>x3)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%w3+w3),d>k3?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>x3&&(this._+="A"+n+","+n+",0,"+ +(d>=_3)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const M3=S3;function T3(e){return e[0]}function E3(e){return e[1]}function P3(){var e=T3,t=E3,n=QW(!0),r=null,i=tB,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=M3())),s=0;s<=u;++s)!(s<u&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"===typeof t?t:QW(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:QW(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:QW(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function I3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O3(Object(n),!0).forEach((function(t){I3(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j3(e,t){if(e){if("string"===typeof e)return R3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R3(e,t):void 0}}function D3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||j3(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A3(e){return function(e){if(Array.isArray(e))return R3(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||j3(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N3=(0,r.memo)((function(e){var t=e.point;return r.createElement(EA,{id:r.createElement("span",null,"x: ",r.createElement("strong",null,t.data.xFormatted),", y:"," ",r.createElement("strong",null,t.data.yFormatted)),enableChip:!0,color:t.serieColor})})),F3=(0,r.memo)((function(e){var t=e.slice,n=e.axis,i=Iq(),o="x"===n?"y":"x";return r.createElement(IA,{rows:t.points.map((function(e){return[r.createElement(TA,{key:"chip",color:e.serieColor,style:i.tooltip.chip}),e.serieId,r.createElement("span",{key:"value",style:i.tooltip.tableCellValue},e.data["".concat(o,"Formatted")])]}))})})),z3={data:ye().arrayOf(ye().shape({id:ye().oneOfType([ye().string,ye().number]).isRequired,data:ye().arrayOf(ye().shape({x:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]),y:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)])})).isRequired})).isRequired,xScale:XW.isRequired,xFormat:ye().oneOfType([ye().func,ye().string]),yScale:XW.isRequired,yFormat:ye().oneOfType([ye().func,ye().string]),layers:ye().arrayOf(ye().oneOfType([ye().oneOf(["grid","markers","axes","areas","crosshair","lines","slices","points","mesh","legends"]),ye().func])).isRequired,curve:UV.isRequired,axisTop:YZ,axisRight:YZ,axisBottom:YZ,axisLeft:YZ,enableGridX:ye().bool.isRequired,enableGridY:ye().bool.isRequired,gridXValues:ye().oneOfType([ye().number,ye().arrayOf(ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]))]),gridYValues:ye().oneOfType([ye().number,ye().arrayOf(ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]))]),enablePoints:ye().bool.isRequired,pointSymbol:ye().func,pointSize:ye().number.isRequired,pointColor:ye().any.isRequired,pointBorderWidth:ye().number.isRequired,pointBorderColor:ye().any.isRequired,enablePointLabel:ye().bool.isRequired,pointLabel:ye().oneOfType([ye().string,ye().func]).isRequired,markers:ye().arrayOf(ye().shape({axis:ye().oneOf(["x","y"]).isRequired,value:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired,style:ye().object})),colors:kY.isRequired,enableArea:ye().bool.isRequired,areaOpacity:ye().number.isRequired,areaBlendMode:XV.isRequired,areaBaselineValue:ye().oneOfType([ye().number,ye().string,ye().instanceOf(Date)]).isRequired,lineWidth:ye().number.isRequired,legends:ye().arrayOf(ye().shape(vH)).isRequired,isInteractive:ye().bool.isRequired,debugMesh:ye().bool.isRequired,tooltip:ye().oneOfType([ye().func,ye().object]).isRequired,enableSlices:ye().oneOf(["x","y",!1]).isRequired,debugSlices:ye().bool.isRequired,sliceTooltip:ye().oneOfType([ye().func,ye().object]).isRequired,enableCrosshair:ye().bool.isRequired,crosshairType:ye().string.isRequired},B3=(L3(L3(L3({},z3),{},{enablePointLabel:ye().bool.isRequired,role:ye().string.isRequired,useMesh:ye().bool.isRequired},OV),VV),L3({pixelRatio:ye().number.isRequired},z3),{curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:N3,enableSlices:!1,debugSlices:!1,sliceTooltip:F3,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"}),U3=L3(L3({},B3),{},{enablePointLabel:!1,useMesh:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"}),$3=L3(L3({},B3),{},{pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1}),V3=function(e){var t=e.curve,n=e.yScale,i=e.areaBaselineValue;return(0,r.useMemo)((function(){return function(){var e=T3,t=null,n=QW(0),r=E3,i=QW(!0),o=null,a=tB,s=null;function l(l){var c,u,d,p,h,f=l.length,m=!1,g=new Array(f),y=new Array(f);for(null==o&&(s=a(h=M3())),c=0;c<=f;++c){if(!(c<f&&i(p=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(g[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(p,c,l),y[c]=+n(p,c,l),s.point(t?+t(p,c,l):g[c],r?+r(p,c,l):y[c]))}if(h)return s=null,h+""||null}function c(){return P3().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"===typeof n?n:QW(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"===typeof t?t:QW(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:QW(+e),l):t},l.y=function(e){return arguments.length?(n="function"===typeof e?e:QW(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"===typeof e?e:QW(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:QW(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"===typeof e?e:QW(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y1((function(e){return e.y})).curve($V(t)).y0(n(i))}),[t,n,i])},q3=function(e){var t=e.data,n=e.xScale,i=void 0===n?U3.xScale:n,o=e.xFormat,a=e.yScale,s=void 0===a?U3.yScale:a,l=e.yFormat,c=e.width,u=e.height,d=e.colors,p=void 0===d?U3.colors:d,h=e.curve,f=void 0===h?U3.curve:h,m=e.areaBaselineValue,g=void 0===m?U3.areaBaselineValue:m,y=e.pointColor,v=void 0===y?U3.pointColor:y,b=e.pointBorderColor,_=void 0===b?U3.pointBorderColor:b,w=e.enableSlices,x=void 0===w?U3.enableSlicesTooltip:w,k=Mq(o),C=Mq(l),S=xY(p,"id"),M=Iq(),T=_Y(v,M),E=_Y(_,M),P=(0,r.useMemo)((function(){return qW(t,i,s,c,u)}),[t,i,s,c,u]),I=P.xScale,O=P.yScale,L=P.series,R=(0,r.useMemo)((function(){return L.map((function(e){return L3(L3({},e),{},{color:S(e)})}))}),[L,S]),j=function(e){var t=e.series,n=e.getPointColor,i=e.getPointBorderColor,o=e.formatX,a=e.formatY;return(0,r.useMemo)((function(){return t.reduce((function(e,t){return[].concat(A3(e),A3(t.data.filter((function(e){return null!==e.position.x&&null!==e.position.y})).map((function(r,s){var l={id:"".concat(t.id,".").concat(s),index:e.length+s,serieId:t.id,serieColor:t.color,x:r.position.x,y:r.position.y};return l.color=n(t),l.borderColor=i(l),l.data=L3(L3({},r.data),{},{xFormatted:o(r.data.x),yFormatted:a(r.data.y)}),l}))))}),[])}),[t,n,i,o,a])}({series:R,getPointColor:T,getPointBorderColor:E,formatX:k,formatY:C}),D=function(e){var t=e.enableSlices,n=e.points,i=e.width,o=e.height;return(0,r.useMemo)((function(){if(!1===t)return[];if("x"===t){var e=new Map;return n.forEach((function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))})),Array.from(e.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,n){var r,a=D3(e,2),s=a[0],l=a[1],c=n[t-1],u=n[t+1];return{id:s,x0:r=c?s-(s-c[0])/2:s,x:s,y0:0,y:0,width:u?s-r+(u[0]-s)/2:i-r,height:o,points:l.reverse()}}))}if("y"===t){var r=new Map;return n.forEach((function(e){null!==e.data.x&&null!==e.data.y&&(r.has(e.y)?r.get(e.y).push(e):r.set(e.y,[e]))})),Array.from(r.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,n){var r,a,s=D3(e,2),l=s[0],c=s[1],u=n[t-1],d=n[t+1];return r=u?l-(l-u[0])/2:l,a=d?l-r+(d[0]-l)/2:o-r,{id:l,x0:0,x:0,y0:r,y:l,width:i,height:a,points:c.reverse()}}))}}),[t,n])}({enableSlices:x,points:j,width:c,height:u}),A=function(e){var t=e.curve;return(0,r.useMemo)((function(){return P3().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y((function(e){return e.y})).curve($V(t))}),[t])}({curve:f});return{lineGenerator:A,areaGenerator:V3({curve:f,yScale:O,areaBaselineValue:g}),getColor:S,series:R,xScale:I,yScale:O,slices:D,points:j}},Z3=function(e){var t=e.areaBlendMode,n=e.areaOpacity,i=e.color,o=e.fill,a=e.path,s=LV(),l=s.animate,c=s.config,u=RV(a),d=WD({color:i,config:c,immediate:!l});return r.createElement(vA.path,{d:u,fill:o||d.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},H3=(0,r.memo)((function(e){var t=e.areaGenerator,n=e.areaOpacity,i=e.areaBlendMode,o=e.lines.slice(0).reverse();return r.createElement("g",null,o.map((function(e){return r.createElement(Z3,Object.assign({key:e.id,path:t(e.data.map((function(e){return e.position})))},L3({areaOpacity:n,areaBlendMode:i},e)))})))})),G3=(0,r.memo)((function(e){var t=e.lineGenerator,n=e.points,i=e.color,o=e.thickness,a=(0,r.useMemo)((function(){return t(n)}),[t,n]),s=RV(a);return r.createElement(vA.path,{d:s,fill:"none",strokeWidth:o,stroke:i})})),W3=(0,r.memo)((function(e){var t=e.lines,n=e.lineGenerator,i=e.lineWidth;return t.reverse().map((function(e){var t=e.id,o=e.data,a=e.color;return r.createElement(G3,{key:t,id:t,points:o.map((function(e){return e.position})),lineGenerator:n,color:a,thickness:i})}))})),Y3=(0,r.memo)((function(e){var t=e.slice,n=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,l=NA(),c=l.showTooltipFromEvent,u=l.hideTooltip,d=(0,r.useCallback)((function(e){c(r.createElement(o,{slice:t,axis:n}),e,"right"),s(t)}),[c,o,t]),p=(0,r.useCallback)((function(e){c(r.createElement(o,{slice:t,axis:n}),e,"right")}),[c,o,t]),h=(0,r.useCallback)((function(){u(),s(null)}),[u]);return r.createElement("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:d,onMouseMove:p,onMouseLeave:h})})),K3=(0,r.memo)((function(e){var t=e.slices,n=e.axis,i=e.debug,o=e.height,a=e.tooltip,s=e.current,l=e.setCurrent;return t.map((function(e){return r.createElement(Y3,{key:e.id,slice:e,axis:n,debug:i,height:o,tooltip:a,setCurrent:l,isCurrent:null!==s&&s.id===e.id})}))})),X3=(0,r.memo)((function(e){var t=e.points,n=e.symbol,i=e.size,o=e.borderWidth,a=e.enableLabel,s=e.label,l=e.labelYOffset,c=Iq(),u=rZ(s),d=t.reverse().map((function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:a?u(e.data):null}}));return r.createElement("g",null,d.map((function(e){return r.createElement(Qq,{key:e.id,x:e.x,y:e.y,datum:e.datum,symbol:n,size:i,color:e.fill,borderWidth:o,borderColor:e.stroke,label:e.label,labelYOffset:l,theme:c})})))})),J3=(0,r.memo)((function(e){var t=e.points,n=e.width,i=e.height,o=e.margin,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick,d=e.tooltip,p=e.debug,h=NA(),f=h.showTooltipAt,m=h.hideTooltip,g=(0,r.useCallback)((function(e,t){f(r.createElement(d,{point:e}),[e.x+o.left,e.y+o.top],"top"),a(e),s&&s(e,t)}),[a,f,d,s,o]),y=(0,r.useCallback)((function(e,t){f(r.createElement(d,{point:e}),[e.x+o.left,e.y+o.top],"top"),a(e),l&&l(e,t)}),[a,f,d,l]),v=(0,r.useCallback)((function(e,t){m(),a(null),c&&c(e,t)}),[m,a,c]),b=(0,r.useCallback)((function(e,t){u&&u(e,t)}),[u]);return r.createElement(eJ,{nodes:t,width:n,height:i,onMouseEnter:g,onMouseMove:y,onMouseLeave:v,onClick:b,debug:p})})),Q3=function(e){var t=e.data,n=e.xScale,i=e.xFormat,o=e.yScale,a=e.yFormat,s=e.layers,l=e.curve,c=e.areaBaselineValue,u=e.colors,d=e.margin,p=e.width,h=e.height,f=e.axisTop,m=e.axisRight,g=e.axisBottom,y=e.axisLeft,v=e.enableGridX,b=e.enableGridY,_=e.gridXValues,w=e.gridYValues,x=e.lineWidth,k=e.enableArea,C=e.areaOpacity,S=e.areaBlendMode,M=e.enablePoints,T=e.pointSymbol,E=e.pointSize,P=e.pointColor,I=e.pointBorderWidth,O=e.pointBorderColor,L=e.enablePointLabel,R=e.pointLabel,j=e.pointLabelYOffset,D=e.defs,A=e.fill,N=e.markers,F=e.legends,z=e.isInteractive,B=e.useMesh,U=e.debugMesh,$=e.onMouseEnter,V=e.onMouseMove,q=e.onMouseLeave,Z=e.onClick,H=e.tooltip,G=e.enableSlices,W=e.debugSlices,Y=e.sliceTooltip,K=e.enableCrosshair,X=e.crosshairType,J=e.role,Q=QV(p,h,d),ee=Q.margin,te=Q.innerWidth,ne=Q.innerHeight,re=Q.outerWidth,ie=Q.outerHeight,oe=q3({data:t,xScale:n,xFormat:i,yScale:o,yFormat:a,width:te,height:ne,colors:u,curve:l,areaBaselineValue:c,pointColor:P,pointBorderColor:O,enableSlices:G}),ae=oe.lineGenerator,se=oe.areaGenerator,le=oe.series,ce=oe.xScale,ue=oe.yScale,de=oe.slices,pe=oe.points,he=Iq(),fe=_Y(P,he),me=_Y(O,he),ge=D3((0,r.useState)(null),2),ye=ge[0],ve=ge[1],be=D3((0,r.useState)(null),2),_e=be[0],we=be[1],xe=(0,r.useMemo)((function(){return le.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse()}),[le]),ke={grid:r.createElement(eH,{key:"grid",theme:he,width:te,height:ne,xScale:v?ce:null,yScale:b?ue:null,xValues:_,yValues:w}),markers:r.createElement(nZ,{key:"markers",markers:N,width:te,height:ne,xScale:ce,yScale:ue,theme:he}),axes:r.createElement(XZ,{key:"axes",xScale:ce,yScale:ue,width:te,height:ne,theme:he,top:f,right:m,bottom:g,left:y}),areas:null,lines:r.createElement(W3,{key:"lines",lines:le,lineGenerator:ae,lineWidth:x}),slices:null,points:null,crosshair:null,mesh:null,legends:F.map((function(e,t){return r.createElement(mH,Object.assign({key:"legend.".concat(t)},e,{containerWidth:te,containerHeight:ne,data:e.data||xe,theme:he}))}))},Ce=yZ(D,le,A);return k&&(ke.areas=r.createElement(H3,{key:"areas",areaGenerator:se,areaOpacity:C,areaBlendMode:S,lines:le})),z&&!1!==G&&(ke.slices=r.createElement(K3,{key:"slices",slices:de,axis:G,debug:W,height:ne,tooltip:Y,current:_e,setCurrent:we})),M&&(ke.points=r.createElement(X3,{key:"points",points:pe,symbol:T,size:E,color:fe,borderWidth:I,borderColor:me,enableLabel:L,label:R,labelYOffset:j})),z&&K&&(null!==ye&&(ke.crosshair=r.createElement(LA,{key:"crosshair",width:te,height:ne,x:ye.x,y:ye.y,type:X})),null!==_e&&(ke.crosshair=r.createElement(LA,{key:"crosshair",width:te,height:ne,x:_e.x,y:_e.y,type:G}))),z&&B&&!1===G&&(ke.mesh=r.createElement(J3,{key:"mesh",points:pe,width:te,height:ne,margin:ee,current:ye,setCurrent:ve,onMouseEnter:$,onMouseMove:V,onMouseLeave:q,onClick:Z,tooltip:H,debug:U})),r.createElement(Kq,{defs:Ce,width:re,height:ie,margin:ee,role:J},s.map((function(t,n){return"function"===typeof t?r.createElement(r.Fragment,{key:n},t(L3(L3({},e),{},{innerWidth:te,innerHeight:ne,series:le,slices:de,points:pe,xScale:ce,yScale:ue,lineGenerator:ae,areaGenerator:se,currentPoint:ye,setCurrentPoint:ve,currentSlice:_e,setCurrentSlice:we}))):ke[t]})))};Q3.defaultProps=U3;var e4=dZ(Q3),t4=function(e){return r.createElement(Nq,null,(function(t){var n=t.width,i=t.height;return r.createElement(e4,Object.assign({width:n,height:i},e))}))},n4=function(e){var t=e.width,n=e.height,i=e.margin,o=e.pixelRatio,a=e.data,s=e.xScale,l=e.xFormat,c=e.yScale,u=e.yFormat,d=e.curve,p=e.layers,h=e.colors,f=e.lineWidth,m=e.enableArea,g=e.areaBaselineValue,y=e.areaOpacity,v=e.enablePoints,b=e.pointSize,_=e.pointColor,w=e.pointBorderWidth,x=e.pointBorderColor,k=e.enableGridX,C=e.gridXValues,S=e.enableGridY,M=e.gridYValues,T=e.axisTop,E=e.axisRight,P=e.axisBottom,I=e.axisLeft,O=e.legends,L=e.isInteractive,R=e.debugMesh,j=e.onMouseLeave,D=e.onClick,A=e.tooltip,N=e.canvasRef,F=(0,r.useRef)(null),z=QV(t,n,i),B=z.margin,U=z.innerWidth,$=z.innerHeight,V=z.outerWidth,q=z.outerHeight,Z=Iq(),H=D3((0,r.useState)(null),2),G=H[0],W=H[1],Y=q3({data:a,xScale:s,xFormat:l,yScale:c,yFormat:u,width:U,height:$,colors:h,curve:d,areaBaselineValue:g,pointColor:_,pointBorderColor:x}),K=Y.lineGenerator,X=Y.areaGenerator,J=Y.series,Q=Y.xScale,ee=Y.yScale,te=Y.points,ne=XX({points:te,width:U,height:$,debug:R}),re=ne.delaunay,ie=ne.voronoi;(0,r.useEffect)((function(){N&&(N.current=F.current),F.current.width=V*o,F.current.height=q*o;var e=F.current.getContext("2d");e.scale(o,o),e.fillStyle=Z.background,e.fillRect(0,0,V,q),e.translate(B.left,B.top),p.forEach((function(t){if("function"===typeof t&&t({ctx:e,innerWidth:U,innerHeight:$,series:J,points:te,xScale:Q,yScale:ee,lineWidth:f,lineGenerator:K,areaGenerator:X,currentPoint:G,setCurrentPoint:W}),"grid"===t&&Z.grid.line.strokeWidth>0&&(e.lineWidth=Z.grid.line.strokeWidth,e.strokeStyle=Z.grid.line.stroke,k&&nH(e,{width:U,height:$,scale:Q,axis:"x",values:C}),S&&nH(e,{width:U,height:$,scale:ee,axis:"y",values:M})),"axes"===t&&tH(e,{xScale:Q,yScale:ee,width:U,height:$,top:T,right:E,bottom:P,left:I,theme:Z}),"areas"===t&&!0===m&&(e.save(),e.globalAlpha=y,X.context(e),J.forEach((function(t){e.fillStyle=t.color,e.beginPath(),X(t.data.map((function(e){return e.position}))),e.fill()})),e.restore()),"lines"===t&&(K.context(e),J.forEach((function(t){e.strokeStyle=t.color,e.lineWidth=f,e.beginPath(),K(t.data.map((function(e){return e.position}))),e.stroke()}))),"points"===t&&!0===v&&b>0&&te.forEach((function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,b/2,0,2*Math.PI),e.fill(),w>0&&(e.strokeStyle=t.borderColor,e.lineWidth=w,e.stroke())})),"mesh"===t&&!0===R&&(tJ(e,ie),G&&nJ(e,ie,G.index)),"legends"===t){var n=J.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse();O.forEach((function(t){yH(e,L3(L3({},t),{},{data:t.data||n,containerWidth:U,containerHeight:$,theme:Z}))}))}}))}),[F,V,q,p,Z,K,J,Q,ee,k,C,S,M,T,E,P,I,O,te,v,b,G]);var oe=(0,r.useCallback)((function(e){var t=D3(hZ(F.current,e),2),n=t[0],r=t[1];if(!pZ(B.left,B.top,U,$,n,r))return null;var i=re.find(n-B.left,r-B.top);return te[i]}),[F,B,U,$,re]),ae=NA(),se=ae.showTooltipFromEvent,le=ae.hideTooltip,ce=(0,r.useCallback)((function(e){var t=oe(e);W(t),t?se(r.createElement(A,{point:t}),e):le()}),[oe,W,se,le,A]),ue=(0,r.useCallback)((function(e){le(),W(null),G&&j&&j(G,e)}),[le,W,j]),de=(0,r.useCallback)((function(e){if(D){var t=oe(e);t&&D(t,e)}}),[oe,D]);return r.createElement("canvas",{ref:F,width:V*o,height:q*o,style:{width:V,height:q,cursor:L?"auto":"normal"},onMouseEnter:L?ce:void 0,onMouseMove:L?ce:void 0,onMouseLeave:L?ue:void 0,onClick:L?de:void 0})};n4.defaultProps=$3;var r4=dZ(n4),i4=(0,r.forwardRef)((function(e,t){return r.createElement(r4,Object.assign({},e,{canvasRef:t}))}));(0,r.forwardRef)((function(e,t){return r.createElement(Nq,null,(function(n){var i=n.width,o=n.height;return r.createElement(i4,Object.assign({width:i,height:o},e,{ref:t}))}))}));const o4=(e,t)=>{const n=e.slice(-2),r=t.slice(0,10);return n.concat(r)},a4=e=>{const t=oP.LD.find((t=>t.color===e));return t?t.range:"No data"},s4=e=>(0,_u.gU)(e/100*365,0),l4=e=>{var t,n;let{ghgResponse:r,socResponse:i,loading:o,GHGTooltipProps:a,SOCTooltipProps:s,NetTooltipProps:l}=e;const c=(0,Z.Fg)(),u=(0,h.C)(S.DC);if((0,er.fQ)(o))return(0,w.jsx)(On.D8,{className:"progress",id:"loading-net-bars"});const d=null===r||void 0===r||null===(t=r.metric)||void 0===t?void 0:t.value,p=null===i||void 0===i||null===(n=i.metric)||void 0===n?void 0:n.value;if(!(0,er.$K)(d)||!(0,er.$K)(p))return(0,w.jsx)(Rn.x,{italic:!0,noMargin:!0,secondary:!0,children:"No data available"});const f=H1(d,"ghg_kg_per_m2",u),m=H1(p,"soc_kg_per_m2",u);let g=f-m;if(f>0&&m<0&&(g=f),f<0&&m>0&&(g=m),f<0&&m<0&&(g=-Math.abs(g)),!g)return(0,w.jsx)(Rn.x,{italic:!0,noMargin:!0,secondary:!0,children:"No data available"});const y=[{label:"GHG",value:f},{label:"dSOC",value:m},{label:"Net Emissions",value:g}];return(0,w.jsx)($K,{data:y,indexBy:"label",layout:"vertical",enableGridY:!1,margin:{top:30,right:0,bottom:20,left:0},padding:.3,enableLabel:!1,colors:c.colorPalette.fs_main.gray_300,isInteractive:!1,axisLeft:null,axisBottom:{tickSize:0,tickPadding:10},layers:["grid","axes","bars","markers",e=>(0,w.jsx)(u4,{tooltipProps:l,...e})],barComponent:e=>(0,w.jsx)(c4,{GHGTooltipProps:a,SOCTooltipProps:s,...e})})},c4=e=>{let{data:t,x:n,y:r,width:i,height:o,color:a,GHGTooltipProps:s,SOCTooltipProps:l}=e;if("Net Emissions"===t.data.label)return null;const c=(0,er.$K)(s)&&"GHG"===t.data.label?s:(0,er.$K)(l)&&"dSOC"===t.data.label?l:null;return(0,w.jsx)("g",{children:(0,er.$K)(c)?(0,w.jsx)("foreignObject",{width:i,height:o,x:n,y:r,children:(0,w.jsx)(b2,{...c,children:(0,w.jsx)("div",{style:{width:i,height:o,backgroundColor:a}})})}):(0,w.jsx)("rect",{x:n,y:r,width:i,height:o,fill:a})},t.data.label)},u4=e=>{let{bars:t,tooltipProps:n}=e;const r=(0,Z.Fg)(),i=t.find((e=>"GHG"===e.data.data.label)),o=t.find((e=>"dSOC"===e.data.data.label)),a=t.find((e=>"Net Emissions"===e.data.data.label)),s=i.x,l=i.y,c=i.height,u=i.data.value,d=o.x,p=o.y,h=o.height,f=o.data.value,m=a.x,g=a.y,y=a.height,v=a.width,b=u-f;let _=0,x=0,k=0,C=0,S=0,M=0,T=0,E=0,P=m,I=g,O=y;return u>0&&f>0?(_=s,x=m+v,k=l,C=l,S=d,M=m+v,T=p,E=p,P=m,I=Math.min(l,p),O=y):u<0&&f>0?(_=s,x=m+v,k=l+c,C=l+c,S=d,M=m+v,T=p,E=p,P=m,I=p,O=c+h):u>0&&f<0?(_=s,x=m+v,k=l,C=l,S=d,M=m+v,T=p+h,E=p+h,P=m,I=l,O=c+h):u<0&&f<0&&(_=s,x=m+v,k=l+c,C=l+c,S=d,M=m+v,T=p+h,E=p+h,P=m,I=Math.max(l,p)+Math.min(c,h),O=y),(0,w.jsxs)(w.Fragment,{children:[t.map((e=>{const{width:t,x:n,data:{value:i}}=e,o=e.data.data.label,a="Net Emissions"===o?b:i;let s=0;return"Net Emissions"===o?s=I:"GHG"===o?s=l:"dSOC"===o&&(s=p),(0,w.jsx)("g",{transform:`translate(${n}, 0)`,children:(0,w.jsx)("text",{transform:`translate(${t/2}, ${s-4})`,textAnchor:"middle",fontSize:"12px",fontWeight:600,fill:r.colorPalette.fs_main.black,children:a.toFixed(3)})},`${o}${a}`)})),(0,w.jsx)("line",{x1:_,y1:k,x2:x,y2:C,stroke:r.colorPalette.fs_main.gray_600,strokeDasharray:"2"}),(0,w.jsx)("line",{x1:S,y1:T,x2:M,y2:E,stroke:r.colorPalette.fs_main.gray_600,strokeDasharray:"2"}),(0,er.$K)(n)?(0,w.jsx)("foreignObject",{width:v,height:O,x:P,y:I,children:(0,w.jsx)(b2,{...n,children:(0,w.jsx)("div",{style:{width:v,height:O,backgroundColor:b>0?r.colorPalette.fs_category.red_600:r.colorPalette.fs_main.green_600}})})}):(0,w.jsx)("rect",{x:P,y:I,width:v,height:O,fill:b>0?r.colorPalette.fs_category.red_600:r.colorPalette.fs_main.green_600})]})},d4=()=>{const{response:e,loading:t}=P0({kpi:"ghg_kg_per_m2",summarizeBy:[]}),{response:n,loading:r}=P0({kpi:"soc_kg_per_m2",summarizeBy:[]});return(0,w.jsx)(l4,{ghgResponse:e,socResponse:n,loading:t||r})},p4="Cover cropping",h4="Percentage of cropland area practicing cover cropping",f4="A cover crop is a crop grown for the protection and enrichment of the soil. Planting a cover crop helps minimize the amount of bare soil on the land and prevents erosion.",m4={ByYear:{label:N0.OVER_TIME,tooltip:"Cover crop adoption, over time, for your selected filters"},ByCrop:{label:N0.BY_CROP_TYPE,tooltip:"Cover crop adoption, by crop, for your selected filters."},ByBoundary:{label:N0.BY_AREA,tooltip:"Cover crop adoption, by subregion, for your selected filters."}},g4=(e,t)=>{const n=US()(e),r=null!==t&&void 0!==t?t:(0,ii.Os)(n);return e=>US()(r.map((t=>{var r,i;return[t,null!==(r=null===(i=n[t])||void 0===i?void 0:i[e])&&void 0!==r?r:null]})))},y4=e=>{let{makeLookup:t,metricMap:n}=e;return{primaryMetrics:t(n.primaryMetricKey),secondaryMetrics:(0,LS.AG)(n.secondaryMetricKey,t,void 0),trackedMetrics:(0,LS.AG)(n.trackedMetricKey,t,void 0),unknownMetrics:(0,LS.AG)(n.unknownMetricKey,t,void 0),notApplicableMetrics:(0,LS.AG)(n.notApplicableMetricKey,t,void 0)}},v4=(e,t)=>{const{secondaryMetric:n,trackedMetric:r,unknownMetric:i,notApplicableMetric:o}=e;let a,s,l,c;const u=(0,er.HH)(t.unitName.abbr)?` ${t.unitName.abbr}`:"";(0,er.o8)(n)||(a=(0,er.Ft)(n)?uS.QE:`${n.formattedValue}${u}`),(0,er.$K)(r)&&(s=`${r.formattedValue}`,s=(0,er.$K)(i)&&i.value>0?`${s} ${uS.wt}${u}`:`${s}${u}`),(0,er.$K)(n)&&(0,er.$K)(r)&&(a=`${a} / ${s}`),(0,er.$K)(i)&&i.value>0&&(l=`${i.formattedValue} ${uS.CH}${u}`),(0,er.$K)(o)&&o.value>0&&(c=`${o.formattedValue} ${uS.Lq}${u}`);return{subTextLine1:a,subTextLine2:l,subTextLine3:c}},b4=e=>{if((0,er.kK)(e))return null;const{bySubtypeBySummaryTypeKeyMetricLookups:t,unitAndMetricHelpers:n,summaryTypeNameToIdLookup:r}=e,i=$f()((0,ii.pJ)(r),(e=>{let[t,n]=e;return t})),o=i.map((e=>{let[t,n]=e;return t})),a=i.map((e=>{let[t,n]=e;return n})),s=a.map((e=>{var n,r;return null!==(n=null===(r=t.primaryMetrics[e])||void 0===r?void 0:r.value)&&void 0!==n?n:null})),l=n.primaryMetricUnitDetails,c=n.primaryMetricFormatter,u=ti()(t,"primaryMetrics"),d=(0,ii._J)(u).some((e=>!(0,er.o8)(e)))&&!(0,er.o8)(n.secondaryMetricUnitDetails)?(e=>{let{subMetricLookups:t,unitDetail:n,summaryTypeKeys:r}=e;return r.map((e=>{var r,i,o,a;const s={secondaryMetric:null===(r=t.secondaryMetrics)||void 0===r?void 0:r[e],trackedMetric:null===(i=t.trackedMetrics)||void 0===i?void 0:i[e],unknownMetric:null===(o=t.unknownMetrics)||void 0===o?void 0:o[e],notApplicableMetric:null===(a=t.notApplicableMetrics)||void 0===a?void 0:a[e]};return v4(s,n)}))})({summaryTypeKeys:a,subMetricLookups:u,unitDetail:n.secondaryMetricUnitDetails}):void 0;return{formatter:c,labels:o,data:s,unitDetail:l,tooltipSubText:d}},_4=e=>{let{formatterMap:t,metricMap:n,unitMap:i}=e;const o=(0,h.C)(S.DC),a=(0,r.useMemo)((()=>{const e=t[n.primaryMetricKey];return{primaryMetricUnitDetails:i[n.primaryMetricKey](o),secondaryMetricUnitDetails:(0,er.$K)(null===n||void 0===n?void 0:n.secondaryMetricKey)?i[n.secondaryMetricKey](o):void 0,primaryMetricFormatter:e,primaryMetricDifferenceFormatter:e=>t[n.primaryMetricKey](Math.abs(e))}}),[t,n,i,o]);return a},w4=e=>{let{byCropMetricsPairs:t,filtersState:n,isLoading:i,formatterMap:o,metricMap:a,unitMap:s}=e;const l=VS(n),{cropOptions:c}=$E(),u=(0,r.useMemo)((()=>c.map((e=>{let{label:t,value:n}=e;return[t,n]}))),[c]),d=(0,r.useMemo)((()=>{if(!l)return null;const e=n.cropIds.map((e=>String(e)));return US()(TY()(u,(t=>{let[n,r]=t;return e.includes(r)})))}),[n.cropIds,l,u]),p=(0,r.useMemo)((()=>{if(!l||i||(0,er.kK)(t))return null;const e=g4(t);return y4({makeLookup:e,metricMap:a})}),[t,l,i,a]),h=_4({unitMap:s,metricMap:a,formatterMap:o});return(0,r.useMemo)((()=>!l||(0,er.kK)(p)||(0,er.kK)(d)?b4(null):b4({bySubtypeBySummaryTypeKeyMetricLookups:p,summaryTypeNameToIdLookup:d,unitAndMetricHelpers:h})),[p,d,l,h])},x4=e=>{const t=(0,h.C)(WI),n=(0,h.C)(HI),i=(0,h.C)(VI),o=(0,h.C)(KI),a=(0,r.useMemo)((()=>({cropIds:t,subsectionIds:i,year:n[0],dataScenarioId:o,...null!==e&&void 0!==e?e:{}})),[e,t,o,i,n]);return{commonFilters:(0,r.useMemo)((()=>S0(a)),[a]),filtersState:a}},k4=()=>{const{programId:e}=YC(),t=(0,h.C)((t=>nS(t,e))),n=RS(null!==t&&void 0!==t?t:void 0);return{programYears:n,defaultYear:n.at(-1)}},C4=e=>{var t,n,r,i,o,a;const s={primaryMetric:null,comparisonMetric1:null,comparisonMetric1Text:z0.PREVIOUS_YEAR,comparisonMetric2:null,comparisonMetric2Text:z0.YOY_AVERAGE,isDownwardChangePositive:!1};if((0,er.kK)(e))return s;const{bySubtypeByYearMetricLookups:l,selectedYear:c,unitAndMetricHelpers:u}=e,d=String(c-1),p=String(c),{primaryMetricUnitDetails:h,primaryMetricFormatter:f,primaryMetricDifferenceFormatter:m}=u,g=null!==(t=l.primaryMetrics[p])&&void 0!==t?t:null,y=(0,er.$K)(l.secondaryMetrics)?null!==(n=l.secondaryMetrics[p])&&void 0!==n?n:null:void 0,v=null===(r=l.trackedMetrics)||void 0===r?void 0:r[p],b=null===(i=l.unknownMetrics)||void 0===i?void 0:i[p],_=null===(o=l.notApplicableMetrics)||void 0===o?void 0:o[p],w=null!==(a=l.primaryMetrics[d])&&void 0!==a?a:null,x=TY()(l.primaryMetrics,er.$K),k=x.length>1?((e,t,n)=>{const r=TY()(e,er.$K),i=(0,er.Of)(r)?e0()(r,"value"):null;return(0,er.kK)(i)?null:{value:i,unit:t,formattedValue:n(i)}})(x,h.unit,f):null;if((0,er.kK)(g))return s;const C={secondaryMetric:y,trackedMetric:v,unknownMetric:b,notApplicableMetric:_},S=(0,ii._J)(C).some((e=>!(0,er.o8)(e)))&&!(0,er.o8)(u.secondaryMetricUnitDetails)?v4(C,u.secondaryMetricUnitDetails):{},{subTextLine1:M,subTextLine2:T,subTextLine3:E}=S,P=[];(0,er.$K)(T)&&P.push(`${T} ${uS.zi}`),(0,er.$K)(E)&&P.push(`${E} ${uS.iF}`);return{...{...s,primaryMetric:null!==g&&void 0!==g?g:null,subText:M,subTextTooltip:As(P)?P.join(" "):void 0},comparisonMetric1:(0,er.$K)(w)?a0([w,g],h.unit,m):null,comparisonMetric2:(0,er.$K)(k)?a0([k,g],h.unit,m):null}},S4=e=>{let{byYearMetricsPairs:t,isLoading:n,filtersState:i,formatterMap:o,metricMap:a,unitMap:s}=e;const l=VS(i),{programYears:c}=k4(),u=(0,r.useMemo)((()=>l?US()(c.map((e=>[String(e),String(e)]))):null),[l,c]),d=(0,r.useMemo)((()=>{if(!l||n||(0,er.kK)(t))return null;const e=t.filter((e=>{let[t,n]=e;return c.includes(Number(t))})),r=g4(e);return y4({makeLookup:r,metricMap:a})}),[t,l,n,a,c]),p=_4({unitMap:s,metricMap:a,formatterMap:o}),h=(0,r.useMemo)((()=>{if(!l||(0,er.kK)(d))return C4(null);const e=i.year;return C4({selectedYear:e,unitAndMetricHelpers:p,bySubtypeByYearMetricLookups:d})}),[d,i.year,l,p]);return{timeTrendTileContent:(0,r.useMemo)((()=>{if(!l||(0,er.kK)(d)||(0,er.kK)(u))return b4(null);const e=b4({bySubtypeBySummaryTypeKeyMetricLookups:d,summaryTypeNameToIdLookup:u,unitAndMetricHelpers:p});if((0,er.kK)(e))return null;const t=i.year,n=e.labels.indexOf(String(t)),r="unit-interval"===p.primaryMetricUnitDetails.unit;return{...e,activePointIndex:n,beginYAxisAtZero:r}}),[d,i.year,l,u,p]),primaryMetricTileContent:h}},M4=(e,t)=>{const{filterTo:n}=W0()({filterTo:{subsections:{status:["ACTIVE"]},supplySheds:{hasSubsections:!0}}},null!==t&&void 0!==t?t:{}),{supplyShedsLookup:r,subsectionsLookup:i}=e.reduce(((e,t)=>{var r;const i=t.subsections.reduce(((e,r)=>{var i,o;if((0,er.$K)(null===n||void 0===n||null===(i=n.subsections)||void 0===i?void 0:i.status)&&!n.subsections.status.includes(r.status)||(0,er.$K)(null===n||void 0===n||null===(o=n.subsections)||void 0===o?void 0:o.ids)&&!n.subsections.ids.includes(String(r.id)))return e;const a={id:String(r.id),name:r.name,parentId:String(t.id),parentName:t.name};return{...e,[String(r.id)]:a}}),{});if((0,er.fQ)(null===n||void 0===n||null===(r=n.supplySheds)||void 0===r?void 0:r.hasSubsections)&&!Object.keys(i).length)return e;const o={id:String(t.id),name:t.name,parentId:String(t.program_id)};return e.supplyShedsLookup={...e.supplyShedsLookup,[String(t.id)]:o},e.subsectionsLookup={...e.subsectionsLookup,...i},e}),{supplyShedsLookup:{},subsectionsLookup:{}});return{subsections:i,supplySheds:r}},T4=e=>{let{bySubregionMetricsPairs:t,filtersState:n,isLoading:i,formatterMap:o,metricMap:a,unitMap:s}=e;const l=VS(n),{isLoading:c,data:u}=AS(),d=(0,r.useMemo)((()=>{if(c||(0,er.kK)(u))return null;const{subsections:e}=M4(u,{filterTo:{subsections:{status:void 0}}});return(0,ii._J)(e).map((e=>{let{id:t,name:n}=e;return[n,t]}))}),[c,u]),p=(0,r.useMemo)((()=>{if(!l)return null;const e=n.subsectionIds.map((e=>String(e)));return US()(TY()(d,(t=>{let[n,r]=t;return e.includes(r)})))}),[d,n.subsectionIds,l]),h=(0,r.useMemo)((()=>{if(!l||i||(0,er.kK)(t))return null;const e=g4(t);return y4({makeLookup:e,metricMap:a})}),[l,i,a,t]),f=_4({unitMap:s,metricMap:a,formatterMap:o});return(0,r.useMemo)((()=>!l||(0,er.kK)(h)||(0,er.kK)(p)?b4(null):b4({bySubtypeBySummaryTypeKeyMetricLookups:h,summaryTypeNameToIdLookup:p,unitAndMetricHelpers:f})),[l,h,p,f])},E4=c0,P4=u0,I4={primaryMetricKey:"adoption",secondaryMetricKey:"covercroppedArea",trackedMetricKey:"totalTrackedArea",unknownMetricKey:"unknownArea",notApplicableMetricKey:"notApplicableArea"},O4=e=>{var t;let{primaryMetric:n,subText:r,subTextTooltip:i,comparisonMetric1:o,comparisonMetric1Text:a,comparisonMetric2:s,comparisonMetric2Text:l,isDownwardChangePositive:c}=e;return(0,w.jsxs)(d.Kq,{bgcolor:"semanticPalette.surface.secondary",borderRadius:e=>e.borderRadii.md,direction:"row",justifyContent:"space-between",p:3,children:[(0,w.jsxs)(d.Kq,{justifyContent:"flex-end",spacing:1,children:[(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",gap:1,children:[(0,w.jsx)(d.ZT,{"data-testid":"si-primary-metric-tile--metric",variant:"h3",children:null!==(t=null===n||void 0===n?void 0:n.formattedValue)&&void 0!==t?t:uS.QE}),!(0,er.$K)(r)&&(0,er.$K)(i)&&(0,w.jsx)(d.u,{"data-testid":"si-primary-metric-tile--subtexttooltip",title:i,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"body2","aria-label":"(hover for additional info)",color:"secondary"})})})]}),(0,er.$K)(r)&&(0,w.jsxs)(d.ZT,{"data-testid":"si-primary-metric-tile--subtext",variant:"body2",color:"semanticPalette.text.secondary",component:"span",children:[r,(0,er.$K)(i)&&(0,w.jsx)(d.xu,{ml:1,component:"span",children:(0,w.jsx)(d.u,{"data-testid":"si-primary-metric-tile--subtexttooltip",title:i,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"body2","aria-label":"(hover for additional info)"})})})})]})]}),(0,w.jsxs)(d.Kq,{justifyContent:"flex-end",spacing:2,children:[(0,w.jsx)(L4,{changeMetric:(0,er.$K)(n)?o:null,changeMetricText:a,isDownwardChangePositive:c}),(0,w.jsx)(L4,{changeMetric:(0,er.$K)(n)?s:null,changeMetricText:l,isDownwardChangePositive:c})]})]})},L4=e=>{let{changeMetric:t,changeMetricText:n,isDownwardChangePositive:r}=e;const{palette:{semanticPalette:i}}=(0,d.Fg)(),{value:o,formattedValue:a}=null!==t&&void 0!==t?t:{};let s=i.text.secondary,l="minus";return(0,er.kK)(o)?l=void 0:o>0?(s=r?i.text.success:i.text.error,l="arrow-down"):o<0&&(s=r?i.text.error:i.text.success,l="arrow-up"),(0,w.jsxs)(d.Kq,{"data-testid":"si-primary-metric-tile--comparison-text",direction:"row",gap:1,justifyContent:"flex-end",children:[(0,w.jsx)(d.ZT,{color:"secondary",variant:"body2",component:"span",children:n}),(0,er.$K)(l)&&(0,w.jsx)(d.le,{type:l,titleAccess:l}),(0,w.jsx)(d.ZT,{color:s,variant:"h6",children:null!==a&&void 0!==a?a:uS.QE})]})},R4=e=>{let{activePointIndex:t,beginYAxisAtZero:n,data:r,formatter:i,labels:o,tooltipSubText:a,unitDetail:s}=e;const{palette:l}=(0,d.Fg)();return(0,w.jsx)(d.Kq,{alignItems:"stretch",children:(0,w.jsx)(d.yW,{formatter:i,data:{labels:o,datasets:[{data:r}]},unitLabel:s.unitName.abbr,options:{datasets:{line:{pointBorderColor:e=>e.dataIndex===t?l.categoryPalette[1].chart:"transparent",pointBackgroundColor:e=>e.dataIndex===t?l.semanticPalette.surface.main:"transparent",pointBorderWidth:1}},layout:{padding:{left:-6}},scales:{y:{title:{display:!0,text:s.unitName.plural},beginAtZero:n}},plugins:{tooltip:{yAlign:void 0,callbacks:{title:e=>{var t;const n=null===(t=e[0])||void 0===t?void 0:t.label;return null!==n&&void 0!==n?n:""},afterTitle:e=>{var t;const n=null===(t=e[0])||void 0===t?void 0:t.raw,r=s.unitName.abbr;return n?[i(Number(n)),r].join(" "):""},beforeLabel:e=>{var t,n;let{dataIndex:r}=e;return null!==(t=null===a||void 0===a||null===(n=a[r])||void 0===n?void 0:n.subTextLine1)&&void 0!==t?t:""},label:()=>"",afterLabel:e=>{var t,n;let{dataIndex:r}=e;return null!==(t=null===a||void 0===a||null===(n=a[r])||void 0===n?void 0:n.subTextLine2)&&void 0!==t?t:""},afterBody:e=>{var t,n,r;const i=null!==(t=null===(n=e[0])||void 0===n?void 0:n.dataIndex)&&void 0!==t?t:-1,o=null===a||void 0===a||null===(r=a[i])||void 0===r?void 0:r.subTextLine3;return null!==o&&void 0!==o?o:""}}}}}})})},j4=e=>{let{primaryMetricTileContent:t,timeTrendTileContent:n}=e;return(0,er.$K)(t)&&(0,er.$K)(n)?(0,w.jsxs)(d.Kq,{height:1,gap:3,children:[(0,w.jsx)(O4,{...t}),(0,w.jsx)(R4,{...n})]}):(0,w.jsx)(Y0,{})};var D4=n(47986),A4=n.n(D4);const N4=e=>{let{formatter:t,data:n,labels:r,tooltipSubText:i,unitDetail:o}=e;return(0,w.jsx)(d.Kq,{height:"100%",children:(0,w.jsx)(d.Gm,{data:{labels:r,datasets:[{data:n}]},options:{scales:{x:{title:{display:!0,text:o.unitName.plural},ticks:{callback:e=>t(Number(e))}},y:{ticks:{callback:function(e){const t=String(this.getLabelForValue(Number(e)));return t.length>16?`${String(t).substring(0,13)}...`:t}}}},plugins:{tooltip:{callbacks:{title:e=>{var t;const n=null===(t=e[0])||void 0===t?void 0:t.label;return null!==n&&void 0!==n?n:""},afterTitle:e=>{var n;const r=null===(n=e[0])||void 0===n?void 0:n.raw,i=o.unitName.abbr;return r?[t(Number(r)),i].join(" "):""},beforeLabel:e=>{var t,n;let{dataIndex:r}=e;return null!==(t=null===i||void 0===i||null===(n=i[r])||void 0===n?void 0:n.subTextLine1)&&void 0!==t?t:""},label:()=>"",afterLabel:e=>{var t,n;let{dataIndex:r}=e;return null!==(t=null===i||void 0===i||null===(n=i[r])||void 0===n?void 0:n.subTextLine2)&&void 0!==t?t:""},afterBody:e=>{var t,n,r;const o=null!==(t=null===(n=e[0])||void 0===n?void 0:n.dataIndex)&&void 0!==t?t:-1,a=null===i||void 0===i||null===(r=i[o])||void 0===r?void 0:r.subTextLine3;return null!==a&&void 0!==a?a:""}}}}}})})},F4=e=>{let{isLoading:t,summaryTypeBarChartProps:n,defaultSort:{by:i,direction:o,valueSortDirection:a}}=e;const[s,l]=(0,r.useState)(0),[c,u]=(0,r.useState)(void 0),[p,h]=(0,r.useState)(i),[f,m]=(0,r.useState)(o);(0,r.useEffect)((()=>{l(0)}),[p,f]);const g=(0,r.useCallback)((e=>{h((t=>(t===e?m((e=>"ASC"===e?"DESC":"ASC")):"LABEL"===e?m("ASC"):"VALUE"===e&&m(a),e)))}),[a]),y=(0,r.useMemo)((()=>{if((0,er.kK)(n))return null;const{data:e,labels:t,tooltipSubText:r}=(e=>{let{data:t,labels:n,tooltipSubText:r,sortBy:i,sortDirection:o}=e;const a="VALUE"===i?(e,n)=>{const r=t[e],i=t[n];return(0,er.kK)(r)?"ASC"===o?-1:1:(0,er.kK)(i)?"ASC"===o?1:-1:"ASC"===o?r-i:i-r}:(e,t)=>{const r=n[e],i=n[t];return void 0!==r&&void 0!==i?"ASC"===o?r.localeCompare(i):i.localeCompare(r):0},s=Array.from(n.keys()).toSorted(a);return{labels:s.map((e=>{var t;return null!==(t=n[e])&&void 0!==t?t:""})),data:s.map((e=>{var n;return null!==(n=t[e])&&void 0!==n?n:null})),tooltipSubText:(0,er.$K)(r)?s.map((e=>{var t;return null!==(t=r[e])&&void 0!==t?t:{subTextLine1:void 0,subTextLine2:void 0,subTextLine3:void 0}})):void 0}})({data:n.data,labels:n.labels,tooltipSubText:n.tooltipSubText,sortBy:p,sortDirection:f});return{...n,data:e,labels:t,tooltipSubText:r}}),[p,f,n]);(0,r.useEffect)((()=>{t||(0,er.kK)(null===y||void 0===y?void 0:y.labels)||A4()(c,null===y||void 0===y?void 0:y.labels)||(u(null===y||void 0===y?void 0:y.labels),l(0))}),[t,c,null===y||void 0===y?void 0:y.labels]);const v=(0,r.useMemo)((()=>{if((0,er.kK)(y))return null;const{data:e,labels:t,tooltipSubText:n}=(e=>{let{page:t,rowsPerPage:n,labels:r,data:i,tooltipSubText:o}=e;if(r.length<=n)return{data:i,labels:r,tooltipSubText:o};const a=t*n,s=a+n;return{data:i.slice(a,s),labels:r.slice(a,s),tooltipSubText:(0,er.$K)(o)?o.slice(a,s):void 0}})({page:s,rowsPerPage:F0,data:y.data,labels:y.labels,tooltipSubText:y.tooltipSubText});return{...y,data:e,labels:t,tooltipSubText:n}}),[s,y]),{ChartComponent:b,PaginationComponent:_,SortComponent:x}=(0,r.useMemo)((()=>{if((0,er.kK)(null===n||void 0===n?void 0:n.labels)||(0,er.kK)(v))return{ChartComponent:(0,w.jsx)(Y0,{}),PaginationComponent:void 0,SortComponent:void 0};const e=n.labels.length;return{PaginationComponent:e>F0?(0,w.jsx)(d.tl,{count:e,rowsPerPage:F0,page:s,onSetPage:l}):void 0,SortComponent:[{label:(0,w.jsxs)(d.Kq,{direction:"row",gap:1,alignItems:"center",children:[(0,w.jsx)(d.le,{type:"sort",fontSize:"body2"})," Sort by value"]}),onClick:()=>g("VALUE")},{label:(0,w.jsxs)(d.Kq,{direction:"row",gap:1,alignItems:"center",children:[(0,w.jsx)(d.le,{type:"sort",fontSize:"body2"})," Sort by label"]}),onClick:()=>g("LABEL")}],ChartComponent:(0,w.jsx)(d.Kq,{height:1,children:(0,w.jsx)(N4,{...v})})}}),[g,s,v,null===n||void 0===n?void 0:n.labels]);return{ChartComponent:b,PaginationComponent:_,SortComponent:x}},z4=e=>{let{onChange:t,panelToggles:n,value:r}=e;return n.length<=1?null:(0,w.jsx)(d.xu,{display:"flex",justifyContent:"center",my:2,children:(0,w.jsx)(d.th,{exclusive:!0,size:"small",value:r,onChange:t,children:n.map((e=>{let{label:t,tooltip:n}=e;return(0,w.jsx)(d.CO,{value:t,children:(0,w.jsx)(d.u,{title:null!==n&&void 0!==n?n:"",children:(0,w.jsx)("span",{children:t})})},t)}))})})},B4=e=>{let{defaultActivePanelId:t,panelsLookup:n,isLoading:i,...o}=e;const[a,s]=r.useState(t),l=(0,r.useCallback)(((e,t)=>{(0,er.$K)(t)&&s(t)}),[]),c=(0,r.useMemo)((()=>n[a]),[a,n]);if(i)return(0,w.jsx)(d.Bj,{...o,children:(0,w.jsx)(bT,{id:"multi-panel-chart-tile"})});if((0,er.o8)(c))return(0,w.jsx)(d.Bj,{...o,children:(0,w.jsx)(Y0,{})});const{component:u,description:p,menuItems:h,pagination:f}=c,m=(0,ii._J)(n).map((e=>{let{label:t,tooltip:n}=e;return{label:t,tooltip:n}}));return(0,w.jsx)(d.Bj,{...o,description:null!==p&&void 0!==p?p:o.description,menuItems:h,pagination:f,children:(0,w.jsxs)(d.Kq,{height:1,children:[(0,w.jsx)(d.xu,{flexGrow:1,children:u}),(0,w.jsx)(z4,{onChange:l,value:a,panelToggles:m})]})})},U4="Fertilizer application",$4="Mass of fertilizer applied per unit of cropland area for macro nutrients (N, P, K, S) with known data.",V4="Fertilizer is a substance containing one or more essential nutrients applied to crops to provide a production benefit. An excess application of fertilizer can negatively affect soil biology.",q4={ByYear:{label:N0.OVER_TIME,tooltip:"Fertilizer application, over time, for your selected filters"},ByCrop:{label:N0.BY_CROP_TYPE,tooltip:"Fertilizer application, by crop, for your selected filters."},ByBoundary:{label:N0.BY_AREA,tooltip:"Fertilizer application, by subregion, for your selected filters."}},Z4=g0,H4=y0,G4={primaryMetricKey:"fertMassPerArea"},W4="Conservation tillage",Y4="Percentage of cropland area practicing no tillage or reduced tillage",K4="Tillage is the process of turning over the soil in a field. Conservation tillage is a regenerative agriculture approach that aims to minimize the frequency or intensity of field tillage. Reduced or eliminated tillage can greatly improve soil health. Conservation tillage includes reduced tillage and no tillage practices.",X4={ByYear:{label:N0.OVER_TIME,tooltip:"Conservation tillage adoption, over time, for your selected filters"},ByCrop:{label:N0.BY_CROP_TYPE,tooltip:"Conservation tillage adoption, by crop, for your selected filters."},ByBoundary:{label:N0.BY_AREA,tooltip:"Conservation tillage adoption, by subregion, for your selected filters."},ByType:{description:"Cropland area by tillage classification type",label:"By tillage type"}},J4={noTillageArea:{label:"no till",color:"1"},reducedTillageArea:{label:"reduced till",color:"0"},conventionalTillageArea:{label:"conventional till",color:"7"},unknownArea:{label:uS.CH,color:"8"}},Q4=e=>(0,NT.Wy)(e),e6={adoption:e=>(0,KJ.vy)(e,{sigDigits:1}),conservationTillageArea:KJ.pl,noTillageArea:KJ.pl,reducedTillageArea:KJ.pl,conventionalTillageArea:KJ.pl,totalTrackedArea:KJ.pl,unknownArea:KJ.pl},t6={adoption:()=>({unit:"unit-interval",unitName:{singular:"% of cropland area practicing",plural:"% of cropland area practicing",abbr:""}}),conservationTillageArea:Q4,noTillageArea:Q4,reducedTillageArea:Q4,conventionalTillageArea:Q4,totalTrackedArea:Q4,unknownArea:Q4},n6=e=>t=>{const{till_conv_area_m2:n,till_notill_area_m2:r,till_redu_area_m2:i,till_unknown_area_m2:o}=t;if(!Number.isFinite(n)||!Number.isFinite(i)||!Number.isFinite(r)||!Number.isFinite(null!==o&&void 0!==o?o:0)||(0,er.kK)(n)||(0,er.kK)(i)||(0,er.kK)(r))return null;const a=i+r,s=n+a;if(0===s)return null;const l=(0,NT.Ai)({value:n,from:"m2",to:e}),c=(0,NT.Ai)({value:i,from:"m2",to:e}),u=(0,NT.Ai)({value:r,from:"m2",to:e}),d=(0,NT.Ai)({value:a,from:"m2",to:e}),p=(0,NT.Ai)({value:s,from:"m2",to:e}),h=a/s,f=(0,NT.Ai)({value:null!==o&&void 0!==o?o:0,from:"m2",to:e});return{adoption:{value:h,unit:t6.adoption(e).unit,formattedValue:e6.adoption(h)},conservationTillageArea:{value:d,unit:t6.conservationTillageArea(e).unit,formattedValue:e6.conservationTillageArea(d)},noTillageArea:{value:u,unit:t6.noTillageArea(e).unit,formattedValue:e6.noTillageArea(u)},reducedTillageArea:{value:c,unit:t6.reducedTillageArea(e).unit,formattedValue:e6.reducedTillageArea(c)},conventionalTillageArea:{value:l,unit:t6.conventionalTillageArea(e).unit,formattedValue:e6.conventionalTillageArea(l)},totalTrackedArea:{value:p,unit:t6.totalTrackedArea(e).unit,formattedValue:e6.totalTrackedArea(p)},unknownArea:{value:f,unit:t6.unknownArea(e).unit,formattedValue:e6.unknownArea(f)}}},r6=e6,i6=t6,o6={primaryMetricKey:"adoption",secondaryMetricKey:"conservationTillageArea",trackedMetricKey:"totalTrackedArea",unknownMetricKey:"unknownArea"},a6=()=>{const{filtersState:e,commonFilters:t}=x4(),n=(0,h.C)(S.DC),i=(0,r.useMemo)((()=>n6(n)),[n]),{isLoading:o,annualizedSummary:a,boundarySummary:s,cropTypeSummary:l}=s0({kpi:"tillage",summaries:["annualized","boundary","crop_type"],commonFilters:t,kpiTransformer:i}),{primaryMetricTileContent:c,timeTrendTileContent:u}=S4({byYearMetricsPairs:a,filtersState:e,isLoading:o,formatterMap:r6,metricMap:o6,unitMap:i6}),p=(e=>{let{byYearMetricsPairs:t,formatterMap:n,metricMap:i,extendedMetricMap:o,timeTrendTileContent:a,unitMap:s}=e;const{palette:{categoryPalette:l}}=(0,d.Fg)(),c=(0,h.C)(S.DC),u=(0,r.useMemo)((()=>{var e;return null!==(e=null===a||void 0===a?void 0:a.labels)&&void 0!==e?e:null}),[null===a||void 0===a?void 0:a.labels]),p=(0,r.useMemo)((()=>(0,ii.Os)(o)),[o]),f=(0,r.useMemo)((()=>{if((0,er.kK)(u)||(0,er.kK)(t))return null;const e=t.filter((e=>{let[t,n]=e;return u.includes(t)})),n=g4(e);return US()(p.map((e=>[e,n(e)])))}),[t,p,u]),m=(0,r.useMemo)((()=>{if((0,er.kK)(u)||(0,er.kK)(f)||(0,er.kK)(i.secondaryMetricKey))return null;const e=p.map((e=>{const t=J4[e].label,n=l[J4[e].color].highlight,r=u.map((t=>{var n,r,i;return null!==(n=null===(r=f[e])||void 0===r||null===(i=r[t])||void 0===i?void 0:i.value)&&void 0!==n?n:null}));return{label:t,data:r,backgroundColor:n,type:"bar",stack:"extended"}})),t=n[i.secondaryMetricKey],r=s[i.secondaryMetricKey](c);return{datasets:e,labels:u,formatter:t,unitDetail:r}}),[f,l,p,n,i.secondaryMetricKey,s,c,u]);return m})({byYearMetricsPairs:a,extendedMetricMap:J4,formatterMap:r6,metricMap:o6,unitMap:i6,timeTrendTileContent:u}),f=w4({byCropMetricsPairs:l,filtersState:e,isLoading:o,formatterMap:r6,metricMap:o6,unitMap:i6});return{isLoading:o,data:{subregionSummaryTypeBarChartContent:T4({bySubregionMetricsPairs:s,isLoading:o,filtersState:e,formatterMap:r6,metricMap:o6,unitMap:i6}),cropSummaryTypeBarChartContent:f,tillageTypeOverTimeBarChartContent:p,primaryMetricTileContent:c,timeTrendTileContent:u}}};var s6=n(40977),l6=n.n(s6);const c6=e=>{let{labels:t,datasets:n,unitDetail:r,formatter:i}=e;return(0,w.jsx)(d.Kq,{height:"100%",children:(0,w.jsx)(d.vz,{data:{labels:t,datasets:n},options:{scales:{y:{title:{display:!0,text:r.unitName.plural},ticks:{callback:e=>i(Number(e))}}},plugins:{tooltip:{callbacks:{title:e=>{var t;const n=null===(t=e[0])||void 0===t?void 0:t.label;return null!==n&&void 0!==n?n:""},afterBody:e=>{const t=l6()(e,"raw"),n=e.map((e=>{const n=(0,er.$K)(e.raw)?Number(e.raw):null;return`${e.dataset.label}: ${(0,er.$K)(n)?`${i(n)} ${r.unit}`:uS.QE}${(0,er.$K)(n)&&0!==t?` (${(0,KJ.vy)(n/t,{sigDigits:1})})`:""}`}));return n},label:()=>""}}}}})})},u6={ghg_emission:()=>{const e=(0,h.C)(WI),t=(0,h.C)(VI),n=(0,h.C)(S.DC),{response:r,loading:i}=P0({kpi:"ghg_kg_per_m2",summarizeBy:["annualized","crop_type","subsection"]}),o=`${R0} ${(0,mS.O)(n,!1)}`,a=[{label:L0.OVER_TIME,component:(0,er.$K)(r)?(0,w.jsx)(v3,{data:r,unitsLabel:o,negativeIsGain:!0}):null}];var s,l;e.length>1&&(0,er.$K)(null===r||void 0===r?void 0:r.crop_type_summary)&&a.push({label:L0.BY_CROP_TYPE,tooltip:null===(s=A0.ghg_emission.panelTooltips)||void 0===s?void 0:s[L0.BY_CROP_TYPE],component:(0,w.jsx)(f3,{cropSummary:null===r||void 0===r?void 0:r.crop_type_summary,valueConversion:e=>(0,NT.MA)(e,n).value})});t.length>1&&(0,er.$K)(null===r||void 0===r?void 0:r.subsection_summary)&&a.push({label:L0.BY_AREA,tooltip:null===(l=A0.ghg_emission.panelTooltips)||void 0===l?void 0:l[L0.BY_AREA],component:(0,w.jsx)(g3,{subsectionSummary:null===r||void 0===r?void 0:r.subsection_summary,valueConversion:e=>(0,NT.MA)(e,n).value})});return(0,w.jsx)(U0,{title:A0.ghg_emission.title,description:A0.ghg_emission.description(n),tooltip:A0.ghg_emission.cardTooltip,isLoading:i,panels:a})},soc_sequestration:()=>{const e=(0,h.C)(S.DC),t=(0,h.C)(WI),n=(0,h.C)(VI),{response:r,loading:i}=P0({kpi:"soc_kg_per_m2",summarizeBy:["annualized","crop_type","subsection"]}),o=`${R0} ${(0,mS.O)(e,!1)}`,a=[{label:L0.OVER_TIME,component:(0,er.$K)(r)&&(0,w.jsx)(v3,{data:r,unitsLabel:o})}];var s,l;t.length>1&&(0,er.$K)(null===r||void 0===r?void 0:r.crop_type_summary)&&a.push({label:L0.BY_CROP_TYPE,tooltip:null===(s=A0.soc_sequestration.panelTooltips)||void 0===s?void 0:s[L0.BY_CROP_TYPE],component:(0,w.jsx)(f3,{cropSummary:null===r||void 0===r?void 0:r.crop_type_summary,valueConversion:t=>(0,NT.MA)(t,e).value})});n.length>1&&(0,er.$K)(null===r||void 0===r?void 0:r.subsection_summary)&&a.push({label:L0.BY_AREA,tooltip:null===(l=A0.soc_sequestration.panelTooltips)||void 0===l?void 0:l[L0.BY_AREA],component:(0,w.jsx)(g3,{subsectionSummary:null===r||void 0===r?void 0:r.subsection_summary,valueConversion:t=>(0,NT.MA)(t,e).value})});return(0,w.jsx)(U0,{title:A0.soc_sequestration.title,description:A0.soc_sequestration.description(e),tooltip:A0.soc_sequestration.cardTooltip,isLoading:i,panels:a})},net_emission:()=>{var e;const t=(0,h.C)(WI),n=(0,h.C)(VI),r=(0,h.C)(S.DC),{response:i,loading:o}=P0({kpi:"net_impact_kg_per_m2",summarizeBy:["annualized","crop_type","subsection"]}),a=`${R0} ${(0,mS.O)(r,!1)}`,s=[{label:L0.OVER_TIME,component:(0,er.$K)(i)&&(0,w.jsx)(v3,{data:i,unitsLabel:a,negativeIsGain:!0})}];var l,c;t.length>1&&(0,er.$K)(null===i||void 0===i?void 0:i.crop_type_summary)&&s.push({label:L0.BY_CROP_TYPE,tooltip:null===(l=A0.net_emission.panelTooltips)||void 0===l?void 0:l[L0.BY_CROP_TYPE],component:(0,w.jsx)(f3,{cropSummary:null===i||void 0===i?void 0:i.crop_type_summary,valueConversion:e=>(0,NT.MA)(e,r).value})});n.length>1&&(0,er.$K)(null===i||void 0===i?void 0:i.subsection_summary)&&s.push({label:L0.BY_AREA,tooltip:null===(c=A0.net_emission.panelTooltips)||void 0===c?void 0:c[L0.BY_AREA],component:(0,w.jsx)(g3,{subsectionSummary:null===i||void 0===i?void 0:i.subsection_summary,valueConversion:e=>(0,NT.MA)(e,r).value})});return s.push({label:L0.EMISSION_BREAKDOWN,tooltip:null===(e=A0.net_emission.panelTooltips)||void 0===e?void 0:e[L0.EMISSION_BREAKDOWN],component:(0,w.jsx)(a3,{barHeight:280,children:(0,w.jsx)(d4,{})})}),(0,w.jsx)(U0,{title:A0.net_emission.title,description:A0.net_emission.description(r),tooltip:A0.net_emission.cardTooltip,isLoading:o,panels:s})},yield:()=>{const e=(0,h.C)(WI),t=(0,h.C)(S.DC),n=N5(),{response:r,loading:i}=P0({kpi:"yield_per_area",summarizeBy:["crop_type","annualized"],cropIds:1!==e.length?n:e}),{timeTrendChartData:o,metric:a,comparisonValues:s}=A5(r),l=e.length>1?[{label:"",component:(0,w.jsx)(h3,{cropSummary:null===r||void 0===r?void 0:r.crop_type_summary})}]:[{label:"",component:(0,w.jsx)($5,{comparisonProps:{primaryLabel:(0,KJ.tW)(a),comparisons:s},timeTrendProps:{...o,unitLabel:`kg/${(0,mS.O)(t)}`}})}];return(0,w.jsx)(U0,{title:A0.yield.title,description:A0.yield.description(t),tooltip:A0.yield.cardTooltip,panels:l,isLoading:i})},ghg_emissions_factor:()=>(0,w.jsx)(y3,{kpi:"ghg_emissions_factor",comparisonTimeTrendNegativeIsGain:!0}),net_ghg_emissions_factor:()=>(0,w.jsx)(y3,{kpi:"net_ghg_emissions_factor",comparisonTimeTrendNegativeIsGain:!0}),fert_emissions_factor:()=>(0,w.jsx)(y3,{kpi:"fert_emissions_factor",comparisonTimeTrendNegativeIsGain:!0}),soc_emissions_factor:()=>(0,w.jsx)(y3,{kpi:"soc_emissions_factor"}),living_root:()=>{var e;const t=(0,h.C)(GI),{response:n,loading:i}=P0({kpi:"living_root_cover",summarizeBy:["annualized","kpi_subtype"]}),{response:o}=P0({kpi:"living_root_health",summarizeBy:["kpi_subtype"]}),{response:a}=P0({kpi:"living_root_confidence",summarizeBy:["kpi_subtype"]}),s=(null!==t&&void 0!==t?t:(new Date).getFullYear())-1,{response:l}=P0({kpi:"living_root_cover",summarizeBy:["annualized","kpi_subtype"],year:s}),{response:c}=P0({kpi:"living_root_health",summarizeBy:["kpi_subtype"],year:s}),{response:u}=P0({kpi:"living_root_confidence",summarizeBy:["kpi_subtype"],year:s}),d=(0,Z.Fg)(),{metric:p,comparisonValues:f,timeTrendChartData:m}=A5(n),[g,y]=(0,r.useState)([{month:"Nov"},{month:"Dec"},{month:"Jan"},{month:"Feb"},{month:"Mar"},{month:"Apr"},{month:"May"},{month:"Jun"},{month:"Jul"},{month:"Aug"},{month:"Sep"},{month:"Oct"}]),v=(0,r.useRef)({id:"confidence",color:d.colorPalette.fs_main.gray_400,data:[]}),[b,_]=(0,r.useState)([v.current]);(0,r.useEffect)((()=>{if(null===n||void 0===n||!n.kpi_subtype_summary||null===o||void 0===o||!o.kpi_subtype_summary||null===l||void 0===l||!l.kpi_subtype_summary||null===c||void 0===c||!c.kpi_subtype_summary)return;const e=(0,LS.Ji)(l.kpi_subtype_summary),r=(0,LS.Ji)(c.kpi_subtype_summary),i=(0,LS.Ji)(n.kpi_subtype_summary),a=(0,LS.Ji)(o.kpi_subtype_summary),u=o4(e,i),d=o4(r,a),p=g.map(((e,n)=>{const r=(0,_u.gU)(100*u[n]),i=(e=>{const t=Math.floor(e),n=oP.LD[t];return(0,er.$K)(n)?n.color:""})(d[n]);return{month:0===n?`${e.month.split(" ").shift()} ${s}`:2===n?`${e.month.split(" ").shift()} ${t}`:e.month,pct:r,color:i}}));y(p)}),[n,o,l,c,t,s]),(0,r.useEffect)((()=>{if(null===a||void 0===a||!a.kpi_subtype_summary||null===u||void 0===u||!u.kpi_subtype_summary)return;const e=(0,LS.Ji)(u.kpi_subtype_summary),t=(0,LS.Ji)(a.kpi_subtype_summary),n=o4(e,t).map(((e,t)=>({x:t,y:100*e})));_((e=>[{...v.current,...e,data:n}]))}),[a,u]);return(0,w.jsx)(U0,{title:A0.living_root.title,tooltip:A0.living_root.cardTooltip,isLoading:i,panels:[{label:L0.OVER_TIME,subtitle:A0.living_root.panelDescriptions[L0.OVER_TIME],component:(0,w.jsx)($5,{comparisonProps:{primaryLabel:0===p?"No Data":String(`${(0,_u.wH)(p)}%`),secondaryLabel:`${s4(p)} days with living root`,comparisons:f},timeTrendProps:{...m,unitLabel:"%",options:{plugins:{tooltip:{callbacks:{afterLabel:e=>`${s4(Number(e.raw))} days`}}}}}})},{label:L0.BY_MONTH,tooltip:null===(e=A0.living_root.panelTooltips)||void 0===e?void 0:e[L0.BY_MONTH],subtitle:A0.living_root.panelDescriptions[L0.BY_MONTH],component:(0,w.jsxs)(a3,{barHeight:270,style:{paddingBottom:80},children:[(0,w.jsx)("div",{className:"line",children:(0,w.jsx)(t4,{data:b,margin:{bottom:33,left:55,right:15,top:5},yScale:{type:"linear",min:0,max:100},colors:{datum:"color"},axisTop:null,axisRight:null,axisBottom:null,axisLeft:null,enableGridX:!1,enableGridY:!1,enablePoints:!1,useMesh:!0})}),(0,w.jsx)($K,{data:g,keys:["pct"],indexBy:"month",margin:{top:5,right:0,bottom:33,left:40},maxValue:100,minValue:0,gridYValues:[20,40,60,80,100],padding:.4,valueScale:{type:"linear"},indexScale:{type:"band",round:!0},axisTop:null,axisRight:null,axisBottom:{tickValues:[`Nov ${s}`,`Jan ${t}`,"Mar","May","Jul","Sep"],tickSize:0,tickPadding:10,tickRotation:25},axisLeft:{tickValues:[0,20,40,60,80,100],format:e=>`${e}%`,tickSize:0,tickPadding:10,tickRotation:0},colors:{datum:"data.color"},role:"application",enableLabel:!1,tooltip:e=>{var n,r,i;return(0,w.jsx)("div",{children:(0,w.jsx)(Dm.h,{id:"living-root-tooltip-portal",children:(0,w.jsx)(s3,{children:(0,w.jsxs)(ni.k,{style:{width:"180px",height:"100px"},children:[(0,w.jsx)(Rn.x,{variant:"medium",style:{width:"100%",textAlign:"center"},children:`${e.indexValue} ${(e=>{switch(e){case 0:case 2:return"";case 1:return s;default:return t}})(e.index)}`}),(0,w.jsxs)(ni.k,{justifyContent:"space-between",fullWidth:!0,children:[(0,w.jsx)(Rn.x,{variant:"medium",children:"Living root cover"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,children:`${(0,_u.gU)(e.value,1)}%`})]}),(0,w.jsxs)(ni.k,{justifyContent:"space-between",fullWidth:!0,children:[(0,w.jsx)(Rn.x,{variant:"medium",children:"Crop health (NDVI)"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,children:a4(e.color)})]}),(0,w.jsxs)(ni.k,{justifyContent:"space-between",fullWidth:!0,children:[(0,w.jsx)(Rn.x,{variant:"medium",children:"Image availability"}),(0,w.jsx)(Rn.x,{variant:"medium",bold:!0,children:`${(0,_u.gU)(null===(n=b[0])||void 0===n||null===(r=n.data)||void 0===r||null===(i=r[e.index])||void 0===i?void 0:i.y,1)}%`})]})]})})})})},theme:{tooltip:{container:{color:"white",background:"black",opacity:0}}}}),(0,w.jsxs)("div",{className:"legend",children:[(0,w.jsx)("div",{className:"confidence",children:(0,w.jsx)("div",{className:"label",children:"Image Availability %"})}),(0,w.jsxs)("div",{className:"health",children:[(0,w.jsx)("div",{children:"Crop Health"}),(0,w.jsx)("div",{className:"buckets",children:oP.LD.slice(0,-1).map((e=>(0,w.jsx)(o3,{color:e.color},e.range)))}),(0,w.jsxs)("div",{className:"labels",children:[(0,w.jsx)(Rn.x,{variant:"medium",children:"Bare soil"}),(0,w.jsx)(Rn.x,{variant:"medium",children:"Healthy vegetation"})]})]})]})]})}]})},fertilizer_usage:()=>{var e;const t=(0,h.C)(S.DC),n=(0,h.C)(WI),i=VC("si-data-audit-numeric-changes"),{response:o,loading:a}=P0({kpi:"fertilizer_per_area",summarizeBy:["annualized","kpi_subtype","crop_type","annualized_kpi_subtype","crop_type_kpi_subtype"]}),{fertDoughnutChartData:s,isLoading:l}=(()=>{const e=(0,h.C)(S.DC),[t,n]=(0,r.useState)(!0),[i,o]=(0,r.useState)({datasets:[],labels:[]}),{response:a,loading:s}=P0({kpi:"fertilizer_per_area",summarizeBy:["annualized","kpi_subtype","crop_type"]});return(0,r.useEffect)((()=>{const t=Z0(e,p3,a);o(t),n(s)}),[s,a,e]),{isLoading:t,fertDoughnutChartData:i}})(),c=(0,r.useMemo)((()=>Boolean(i)&&(0,er.$K)(o)?(e=>{var t,n,r,i,o,a;return{...e,metric:{value:(null!==(t=null===(n=e.kpi_subtype_summary)||void 0===n?void 0:n.fert_kg_per_m2)&&void 0!==t?t:0)/4,label:null!==(r=null===(i=e.metric)||void 0===i?void 0:i.label)&&void 0!==r?r:[]},crop_type_summary:US()((0,ii.pJ)(null!==(o=e.crop_type_kpi_subtype_summary)&&void 0!==o?o:{}).map((e=>{var t;let[n,r]=e;return[n,(null!==(t=r.fert_kg_per_m2)&&void 0!==t?t:0)/4]}))),annualized_summary:US()((0,ii.pJ)(null!==(a=e.annualized_kpi_subtype_summary)&&void 0!==a?a:{}).map((e=>{var t;let[n,r]=e;return[n,(null!==(t=r.fert_kg_per_m2)&&void 0!==t?t:0)/4]})))}})(o):o),[i,o]),u=[{label:L0.OVER_TIME,component:(0,er.$K)(c)&&!a&&(0,w.jsx)(d3,{data:c})},{label:L0.BY_NUTRIENT_TYPE,component:(0,er.$K)(s)&&!l&&(0,w.jsx)(X0,{data:s,options:{plugins:{colorThemes:{type:"multi"}}}}),tooltip:null===(e=A0.fertilizer_usage.panelTooltips)||void 0===e?void 0:e[L0.BY_NUTRIENT_TYPE]}];var d;n.length>1&&u.push({label:L0.BY_CROP_TYPE,component:(0,er.$K)(c)&&!a&&(0,w.jsx)(u3,{cropSummary:c.crop_type_summary}),tooltip:null===(d=A0.fertilizer_usage.panelTooltips)||void 0===d?void 0:d[L0.BY_CROP_TYPE]});return(0,w.jsx)(U0,{title:A0.fertilizer_usage.title,description:A0.fertilizer_usage.description(t),tooltip:A0.fertilizer_usage.cardTooltip,isLoading:a,panels:u})},lulc:()=>{var e,t,n;const r=(0,h.C)(S.DC),{response:i,loading:o}=P0({kpi:"grassland_to_cropland_lulc",summarizeBy:["annualized"]}),{response:a,loading:s}=P0({kpi:"grassland_to_cropland_dluc",summarizeBy:["annualized"]}),{response:l,loading:c}=P0({kpi:"cropland_to_grassland_lulc",summarizeBy:["annualized"]}),u=o||s||c;return(0,w.jsx)(U0,{title:A0.lulc.title,tooltip:A0.lulc.cardTooltip,isLoading:u,panels:[{label:L0.CONVERSION,tooltip:null===(e=A0.lulc.panelTooltips)||void 0===e?void 0:e[L0.CONVERSION],subtitle:A0.lulc.panelDescriptions[L0.CONVERSION],component:(0,w.jsx)(b3,{bigNumberStyle:"percent",response:i,measurement:r,negativeIsGain:!0})},{label:L0.BY_DLUC,tooltip:null===(t=A0.lulc.panelTooltips)||void 0===t?void 0:t[L0.BY_DLUC],subtitle:A0.lulc.panelDescriptions[L0.BY_DLUC],component:(0,w.jsx)(b3,{bigNumberStyle:"area",response:a,measurement:r,negativeIsGain:!0})},{label:L0.RESTORATION,tooltip:null===(n=A0.lulc.panelTooltips)||void 0===n?void 0:n[L0.RESTORATION],subtitle:A0.lulc.panelDescriptions[L0.RESTORATION],component:(0,w.jsx)(b3,{bigNumberStyle:"area",response:l,measurement:r})}]})},crop_rotation:()=>{const{cropByCDLId:e}=(0,NS.n)(),t=(0,h.C)(S.DC),n=(0,h.C)(GI),i=null!==n&&void 0!==n?n:O0,{fallowData:o,fallowTotal:a,cropRotationNumData:s,cropRotationNumTotal:l,isLoading:c}=(()=>{const e=(0,h.C)(S.DC),[t,n]=(0,r.useState)(0),[i,o]=(0,r.useState)(0),[a,s]=(0,r.useState)(!0),[l,c]=(0,r.useState)({datasets:[],labels:[]}),[u,d]=(0,r.useState)({datasets:[],labels:[]}),{response:p,loading:f}=P0({kpi:"crop_rotation_fallow",summarizeBy:["kpi_subtype"]}),{response:m,loading:g}=P0({kpi:"crop_rotation_number",summarizeBy:["kpi_subtype"]});return(0,r.useEffect)((()=>{var t,r;const i=Z0(e,H0,m),a=V0()((0,ii._J)(null!==(t=null===m||void 0===m?void 0:m.kpi_subtype_summary)&&void 0!==t?t:{})),l=Z0(e,H0,p),u=V0()((0,ii._J)(null!==(r=null===p||void 0===p?void 0:p.kpi_subtype_summary)&&void 0!==r?r:{}));d(i),c(l),o((0,NT.Ai)({value:a,from:"m2",to:e})),n((0,NT.Ai)({value:u,from:"m2",to:e})),s(f&&g)}),[f,g,p,m,e]),{isLoading:a,cropRotationNumData:u,fallowData:l,fallowTotal:t,cropRotationNumTotal:i}})(),{response:u,loading:p}=P0({kpi:"crop_rotation_common_rotations",summarizeBy:["crop_rotations"],topNCrops:8}),f=r.useMemo((()=>{var n;return n2(null!==(n=null===u||void 0===u?void 0:u.crop_rotations_summary)&&void 0!==n?n:{},e,t)}),[u,e,t]),m=i-4,g=m<O0?O0:m,y=(0,r.useMemo)((()=>({events:["mousemove"],plugins:{datalabels:{formatter:Q0(t)},tooltip:{enabled:!0,callbacks:{label:t2(t)}}}})),[t]);return(0,w.jsx)(U0,{title:"Crop rotation",panels:[{label:L0.BY_NUMBER_OF_CROPS,subtitle:A0.crop_rotation.panelDescriptions[L0.BY_NUMBER_OF_CROPS](g,null!==i&&void 0!==i?i:g),component:(0,w.jsx)(X0,{data:s,options:y,label:e2(t,l)})},{label:L0.BY_ROTATION_TYPE,subtitle:A0.crop_rotation.panelDescriptions[L0.BY_ROTATION_TYPE](t),component:(0,w.jsx)(d.Gm,{data:f,options:{scales:{x:{ticks:{callback:e=>(0,KJ.tW)(Number(e))}},y:{ticks:{callback(e){return`${E0()(this.getLabelForValue(Number(e)),{length:16})}`}}}},plugins:{tooltip:{yAlign:"bottom",callbacks:{label:e=>{let{raw:n}=e;return`${(0,KJ.tW)(Number(n))} ${(0,mS.O)(t)}`}}}}}})},{label:L0.FALLOW,subtitle:A0.crop_rotation.panelDescriptions[L0.FALLOW](g,i),component:(0,w.jsx)(X0,{data:o,options:y,label:e2(t,a)})}],tooltip:A0.crop_rotation.cardTooltip,isLoading:c&&p})},cover_cropping:()=>{var e;const t=(0,h.C)(S.DC),n=(0,mS.O)(t),{response:r,loading:i}=P0({kpi:"cover_crop",summarizeBy:["annualized","crop_type"],topNCrops:10}),{timeTrendChartData:o,metric:a,comparisonValues:s,cropArea:l}=A5(r);return(0,w.jsx)(U0,{title:A0.cover_cropping.title,description:A0.cover_cropping.description(t),tooltip:A0.cover_cropping.cardTooltip,isLoading:i,panels:[{label:L0.OVER_TIME,component:(0,w.jsx)($5,{comparisonProps:{primaryLabel:`${e3(l,a)}%`,secondaryLabel:0===a?"No Data":`${String((0,_u.wH)(a)).toUpperCase()} ${(0,mS.O)(t)}`,comparisons:s},timeTrendProps:{...o,unitLabel:n}})},{label:L0.BY_CROP_TYPE,component:(0,w.jsx)(Q5,{cropTypeSummary:null===r||void 0===r?void 0:r.crop_type_summary}),tooltip:null===(e=A0.cover_cropping.panelTooltips)||void 0===e?void 0:e[L0.BY_CROP_TYPE]}]})},tillage:()=>{var e,t,n,i;const o=(0,h.C)(S.DC),[a,s]=(0,r.useState)({pieData:[],conservationTillagePercentage:0,conservationTillage:0}),l=(0,Z.Fg)(),{tillageDoughnutChartData:c,isLoading:u}=(()=>{const e=(0,h.C)(S.DC),[t,n]=(0,r.useState)(!0),[i,o]=(0,r.useState)({datasets:[],labels:[]}),{response:a,loading:s}=P0({kpi:"tillage",summarizeBy:["annualized","kpi_subtype","annualized_kpi_subtype"]});return(0,r.useEffect)((()=>{const t=Z0(e,t3,a);o(t),n(s)}),[s,a,e]),{isLoading:t,tillageDoughnutChartData:i}})(),{response:d,loading:p}=P0({kpi:"tillage",summarizeBy:["annualized","kpi_subtype","annualized_kpi_subtype"]}),{timeTrendChartData:f,comparisonValues:m}=A5(d);(0,r.useEffect)((()=>{var e,t,n,r,i,a;if((0,er.kK)(d))return;const c=WJ()(null!==(e=null===(t=d.kpi_subtype_summary)||void 0===t?void 0:t.till_conv_area_m2)&&void 0!==e?e:0).from("m2").to(o),u=WJ()(null!==(n=null===(r=d.kpi_subtype_summary)||void 0===r?void 0:r.till_redu_area_m2)&&void 0!==n?n:0).from("m2").to(o),p=WJ()(null!==(i=null===(a=d.kpi_subtype_summary)||void 0===a?void 0:a.till_notill_area_m2)&&void 0!==i?i:0).from("m2").to(o),h=c+u+p,f=p+u,m=c3(p+u,h);s({pieData:[{id:"No-till",label:"No-till",value:c3(p,h),color:l.colorPalette.fs_main.green_600},{id:"Reduced-till",label:"Reduced Till",value:c3(u,h),color:l.colorPalette.fs_main.green_400},{id:"Conventional",label:"Conventional",value:c3(c,h),color:l.colorPalette.fs_main.orange_400}],conservationTillagePercentage:m,conservationTillage:f})}),[d,l,o]);const g=(0,r.useMemo)((()=>{var e;if((0,er.kK)(d))return{datasets:[],labels:[]};const t=e=>{switch(e){case"till_conv_area_m2":return{borderColor:l.colorPalette.fs_main.orange_400,label:"Conventional till"};case"till_notill_area_m2":return{borderColor:l.colorPalette.fs_main.green_600,label:"No till"};case"till_redu_area_m2":return{borderColor:l.colorPalette.fs_main.green_400,label:"Reduced till"}}},n=Object.keys(null!==(e=d.annualized_kpi_subtype_summary)&&void 0!==e?e:{}),r=["till_conv_area_m2","till_redu_area_m2","till_notill_area_m2"].map((e=>{var n;return{fill:!1,tension:.15,pointRadius:4,pointHoverRadius:5,pointBackgroundColor:"white",borderWidth:1.5,data:(0,LS.Ji)(null!==(n=d.annualized_kpi_subtype_summary)&&void 0!==n?n:{}).map((t=>{var n;const r=(0,fX.S)((0,LS.Ji)(t));return c3(null!==(n=t[e])&&void 0!==n?n:0,r)})),...t(e)}}));return{datasets:r,labels:n}}),[d,l]);return(0,w.jsx)(U0,{title:A0.tillage.title,description:A0.tillage.description(o),tooltip:A0.tillage.cardTooltip,isLoading:p&&u,panels:[{label:L0.OVER_TIME,component:(0,w.jsx)($5,{comparisonProps:{primaryLabel:`${null!==(e=a.conservationTillagePercentage)&&void 0!==e?e:0}%`,secondaryLabel:`${(0,_u.wH)(a.conservationTillage)} ${(0,mS.O)(o)}`,comparisons:m},timeTrendProps:{...f,unitLabel:`${(0,mS.O)(o)}`}}),tooltip:null===(t=A0.tillage.panelTooltips)||void 0===t?void 0:t[L0.BY_TILLAGE_TYPE]},{label:L0.BY_TILLAGE_TYPE,component:(0,w.jsx)(X0,{data:c,options:{plugins:{colorThemes:{type:"multi"}}},label:`Conservation tillage ${null!==(n=a.conservationTillagePercentage)&&void 0!==n?n:0}%`})},{label:L0.BY_TILLAGE_TYPE_TIME,component:(0,w.jsx)(l3,{children:(0,w.jsx)(r3,{data:g})}),tooltip:null===(i=A0.tillage.panelTooltips)||void 0===i?void 0:i[L0.BY_TILLAGE_TYPE_TIME]}]})},ef_book_values:void 0,farm_ownership:void 0},d6={cover_cropping:()=>{const{isLoading:e,data:t}=(()=>{const{filtersState:e,commonFilters:t}=x4(),n=(0,h.C)(S.DC),i=(0,r.useMemo)((()=>d0(n)),[n]),{isLoading:o,annualizedSummary:a,boundarySummary:s,cropTypeSummary:l}=s0({kpi:"cover_crop",summaries:["annualized","boundary","crop_type"],commonFilters:t,kpiTransformer:i}),{primaryMetricTileContent:c,timeTrendTileContent:u}=S4({byYearMetricsPairs:a,filtersState:e,isLoading:o,formatterMap:E4,metricMap:I4,unitMap:P4}),d=w4({byCropMetricsPairs:l,filtersState:e,isLoading:o,formatterMap:E4,metricMap:I4,unitMap:P4});return{isLoading:o,data:{subregionSummaryTypeBarChartContent:T4({bySubregionMetricsPairs:s,isLoading:o,filtersState:e,formatterMap:E4,metricMap:I4,unitMap:P4}),cropSummaryTypeBarChartContent:d,primaryMetricTileContent:c,timeTrendTileContent:u}}})(),n=(e=>{let{isLoading:t,data:{primaryMetricTileContent:n,timeTrendTileContent:i,cropSummaryTypeBarChartContent:o,subregionSummaryTypeBarChartContent:a}}=e;const s=(0,r.useMemo)((()=>(0,w.jsx)(j4,{primaryMetricTileContent:n,timeTrendTileContent:i})),[n,i]),{PaginationComponent:l,SortComponent:c,ChartComponent:u}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:o}),{PaginationComponent:d,SortComponent:p,ChartComponent:h}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:a});return(0,r.useMemo)((()=>({[m4.ByYear.label]:{component:s,...m4.ByYear},[m4.ByCrop.label]:{component:u,pagination:l,menuItems:c,...m4.ByCrop},[m4.ByBoundary.label]:{component:h,pagination:d,menuItems:p,...m4.ByBoundary}})),[u,l,c,h,d,p,s])})({isLoading:e,data:t});return(0,w.jsx)(B4,{title:p4,description:h4,tooltip:f4,isLoading:e,panelsLookup:n,defaultActivePanelId:m4.ByYear.label})},tillage:()=>{const{isLoading:e,data:t}=a6(),n=(e=>{let{isLoading:t,data:{primaryMetricTileContent:n,timeTrendTileContent:i,tillageTypeOverTimeBarChartContent:o,cropSummaryTypeBarChartContent:a,subregionSummaryTypeBarChartContent:s}}=e;const l=(0,r.useMemo)((()=>(0,w.jsx)(j4,{primaryMetricTileContent:n,timeTrendTileContent:i})),[n,i]),{PaginationComponent:c,SortComponent:u,ChartComponent:d}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:a}),{PaginationComponent:p,SortComponent:h,ChartComponent:f}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:s}),m=(0,r.useMemo)((()=>(0,er.kK)(o)?(0,w.jsx)(Y0,{}):(0,w.jsx)(c6,{...o})),[o]);return(0,r.useMemo)((()=>({[X4.ByYear.label]:{component:l,...X4.ByYear},[X4.ByCrop.label]:{component:d,pagination:c,menuItems:u,...X4.ByCrop},[X4.ByBoundary.label]:{component:f,pagination:p,menuItems:h,...X4.ByBoundary},[X4.ByType.label]:{component:m,...X4.ByType}})),[d,c,u,f,p,h,m,l])})({isLoading:e,data:t});return(0,w.jsx)(B4,{title:W4,description:Y4,tooltip:K4,isLoading:e,panelsLookup:n,defaultActivePanelId:X4.ByYear.label})},fertilizer_usage:()=>{const{isLoading:e,data:t}=(()=>{const{filtersState:e,commonFilters:t}=x4(),n=(0,h.C)(S.DC),i=(0,r.useMemo)((()=>v0(n)),[n]),{isLoading:o,annualizedSummary:a,boundarySummary:s,cropTypeSummary:l}=s0({kpi:"fertilizer_per_area",summaries:["annualized","boundary","crop_type"],commonFilters:t,kpiTransformer:i}),{primaryMetricTileContent:c,timeTrendTileContent:u}=S4({byYearMetricsPairs:a,filtersState:e,isLoading:o,formatterMap:Z4,metricMap:G4,unitMap:H4}),d=w4({byCropMetricsPairs:l,filtersState:e,isLoading:o,formatterMap:Z4,metricMap:G4,unitMap:H4});return{isLoading:o,data:{subregionSummaryTypeBarChartContent:T4({bySubregionMetricsPairs:s,isLoading:o,filtersState:e,formatterMap:Z4,metricMap:G4,unitMap:H4}),cropSummaryTypeBarChartContent:d,primaryMetricTileContent:c,timeTrendTileContent:u}}})(),n=(e=>{let{isLoading:t,data:{primaryMetricTileContent:n,timeTrendTileContent:i,cropSummaryTypeBarChartContent:o,subregionSummaryTypeBarChartContent:a}}=e;const s=(0,r.useMemo)((()=>(0,w.jsx)(j4,{primaryMetricTileContent:n,timeTrendTileContent:i})),[n,i]),{PaginationComponent:l,SortComponent:c,ChartComponent:u}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:o}),{PaginationComponent:d,SortComponent:p,ChartComponent:h}=F4({isLoading:t,defaultSort:{by:"VALUE",direction:"DESC",valueSortDirection:"DESC"},summaryTypeBarChartProps:a});return(0,r.useMemo)((()=>({[q4.ByYear.label]:{component:s,...q4.ByYear},[q4.ByCrop.label]:{component:u,pagination:l,menuItems:c,...q4.ByCrop},[q4.ByBoundary.label]:{component:h,pagination:d,menuItems:p,...q4.ByBoundary}})),[u,l,c,h,d,p,s])})({isLoading:e,data:t});return(0,w.jsx)(B4,{title:U4,description:$4,tooltip:V4,isLoading:e,panelsLookup:n,defaultActivePanelId:q4.ByYear.label})}},p6=e=>{let{groupContent:t}=e;const{isKPIAvailable:n}=kE(),i=VC("si-data-audit");return(0,w.jsx)(r.Fragment,{children:t.map((e=>{let{groupTitle:t,groupDescription:r,articles:o,items:a}=e;return a.some((e=>n(e.id)))?(0,w.jsxs)(d.Kq,{gap:5,py:10,children:[(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:t}),(0,er.$K)(r)&&(0,w.jsx)(d.ZT,{variant:"body1",children:(0,w.jsx)(a5,{textContent:r,links:o})})]}),(0,w.jsx)(d.Kq,{direction:"row",gap:5,flexWrap:"wrap",children:a.map((e=>{let{id:t}=e;const r=(0,er.fQ)(i)&&(0,er.$K)(d6[t])?d6[t]:u6[t];return n(t)&&(0,er.$K)(r)&&(0,w.jsx)(d.xu,{flexBasis:"calc(33% - 10px)",height:420,children:(0,w.jsx)(r,{})},t)}))})]},t):null}))})},h6=e=>{let{label:t,message:n}=e;return(0,w.jsxs)(d.Kq,{width:"100%",direction:"row",gap:2,alignItems:"center",children:[(0,w.jsx)(d.xu,{children:t}),(0,w.jsx)(d.u,{title:n,disableInteractive:!0,placement:"right",children:(0,w.jsx)("span",{style:{pointerEvents:"auto"},children:(0,w.jsx)(d.le,{fontSize:"body1",type:"warning-triangled"})})})]})},f6=e=>{let{cropIds:t,regionIds:n,dataScenarioId:i,onCropsChange:o,label:a}=e;const{data:s}=AS(),{getDataScenarioById:l}=B1(),{cropByCDLId:c}=(0,NS.n)(),u=l(i),d=(0,r.useMemo)((()=>{var e;if(!(0,er.$K)(s))return[];const t=XS(s),r=(0,er.$K)(u)?null!==(e=u.crops)&&void 0!==e?e:LE(u.cropRotations):XS(s,n);return t.map((e=>{var t,n;const i=null!==(t=null===(n=c[e])||void 0===n?void 0:n.label)&&void 0!==t?t:e,o=!(null!==r&&void 0!==r?r:[]).includes(e);return{label:String(i),value:e,disabled:o,DisplayLabel:o?(0,w.jsx)(h6,{label:String(i),message:"This crop is not available in the Data scenario and/or Subregion"}):void 0}})).toSorted(((e,t)=>{let{label:n}=e,{label:r}=t;return n.localeCompare(r)}))}),[c,u,s,n]),p=d.filter((e=>t.includes(Number(e.value))));return(0,w.jsx)(lL,{options:d,onCropsChange:o,selected:p,label:a})},m6=[],g6=e=>{var t;let{dataScenarioId:n,onDataScenarioChange:i,label:o}=e;const{dataScenarios:a}=$T(),{cropIds:s}=$E(),{getSourcingRegionsText:l}=iO(),c=FS(),u=(0,h.C)(S.DC),p=null===(t=a.find((e=>e.id===n)))||void 0===t?void 0:t.name,f=r.useMemo((()=>US()(a.map((e=>[e.id,NE(zT(e,u),s,l,c)])))),[a,s,l,c,u]);return(0,w.jsx)(d.NI,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,er.$K)(o)&&(0,w.jsx)(d.lX,{children:o}),(0,w.jsxs)(d.Ph,{"aria-label":"Select data scenario",placeholder:"Default data scenario",onChange:e=>i((0,er.ke)(e.target.value)?void 0:e.target.value),displayEmpty:!0,renderValue:e=>(0,er.ke)(e)?(0,w.jsx)(d.ZT,{children:"Default data scenario"}):p,value:null!==n&&void 0!==n?n:"",children:[(0,w.jsx)(d.sN,{value:"",children:(0,w.jsx)(d.ZT,{children:"Default"})}),a.map((e=>{var t;return(0,w.jsx)(d.sN,{value:e.id,children:(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",alignContent:"center",gap:1,width:"100%",children:[(0,w.jsx)(d.xu,{children:e.name}),(0,w.jsx)(d.u,{placement:"right",title:(0,w.jsx)(O1,{rows:null!==(t=f[e.id])&&void 0!==t?t:m6}),children:(0,w.jsx)("span",{"data-testid":"info-icon",children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"h5"})})})]})},e.id)}))]})]})})},y6=e=>{let{regionIds:t,dataScenarioId:n,onRegionsChange:i,label:o}=e;const{data:a}=AS(),{getDataScenarioById:s}=B1(),l=s(n),c=(0,r.useMemo)((()=>(0,er.kK)(a)?[]:v6(a,l)),[l,a]),u=(0,r.useMemo)((()=>c.filter((e=>t.includes(Number(e.value))))),[c,t]),p=u.filter((e=>{let{disabled:t}=e;return(0,er.X0)(t)})).length,h=p===c.length?"All subregions":`${p} subregions selected`;return(0,w.jsx)(d.F2,{"aria-label":"Select subregions",fullWidth:!0,disableCloseOnSelect:!0,hasSelectAll:!0,hasClear:!0,multiple:!0,placeholder:"Select subregions",localeText:{getLimitTagsText:()=>`${h}`,getLimitTagsTextFocused:()=>`${h}`,selectAll:"Select all",deselectAll:"Deselect all"},options:c,onChange:(e,t)=>i(t.map((e=>{let{value:t}=e;return Number(t)}))),value:u,label:o})},v6=(e,t)=>KS(e).map((n=>{var r;const i=(0,er.$K)(t)&&!t.regions.includes(n.id),o="ACTIVE"!==n.status,a=i||o;return{label:n.name,value:n.id,group:null===(r=ZS(e,n.supply_shed_id))||void 0===r?void 0:r.name,disabled:a,DisplayLabel:a?(0,w.jsx)(h6,{label:n.name,message:i?"This region is not available in the selected data scenario":`This region is not available due to its processing status: ${n.status}. Please contact your account manager for more information.`}):void 0}})),b6=e=>{let{year:t,onYearChange:n,label:r}=e;const{programYears:i}=k4();return(0,w.jsx)(d.NI,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,er.$K)(r)&&(0,w.jsx)(d.lX,{children:r}),(0,w.jsx)(d.mg,{"aria-label":"Select year",required:!0,options:i.map((e=>({label:`${e}`,value:e}))),onChange:e=>n(e.target.value),value:t})]})})};var _6=n(51660),w6=n.n(_6);const x6={width:"max-content",right:0,paddingBottom:0,paddingTop:"5px"},k6=()=>{const e=(0,h.T)(),{programSupplySheds:t}=vT(),{programId:n}=YC(),i=(0,h.C)(ZI),o=(0,h.C)(qI),[a,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(""),[d,p]=(0,r.useState)(),[f,m]=(0,r.useState)(!1),[g,y]=(0,r.useState)(!1),[v,b]=(0,r.useState)({years:i.years,selected_crop_types:i.selectedCropTypes,visible_subsection_ids:i.visibleSubsectionIds,data_scenario_id:i.selectedScenarioId}),_=f1(t),x=r.useCallback((e=>({...e,selected_crop_types:e.selected_crop_types.filter(xL),visible_subsection_ids:e.visible_subsection_ids.filter((e=>_.includes(e)))})),[_]);(0,r.useEffect)((()=>{(0,er.kK)(n)||e((0,HC.Mb)({programId:n}))}),[e,n]),(0,r.useEffect)((()=>{u("")}),[i.selectedCropTypes,i.visibleSubsectionIds,i.years]);const k=()=>y(!1),C=()=>{u(""),e((0,yT.fp)({filter:v}))};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(jJ.l,{id:"saved-view-dropdown",active:!!c,expand:a,dropdownStyle:x6,setExpand:l,onClear:C,label:c||uS.IJ,children:(0,w.jsxs)(w.Fragment,{children:[null===o||void 0===o?void 0:o.map((t=>(0,w.jsxs)(ni.k,{alignItems:"center",nowrap:!0,gap:"5px",children:[(0,w.jsx)(On.cv,{id:t.name,name:t.name,type:"radio",label:t.name,checked:c===t.name,onClick:()=>(t=>{c||b({years:i.years,selected_crop_types:i.selectedCropTypes,visible_subsection_ids:i.visibleSubsectionIds,data_scenario_id:i.selectedScenarioId});const n=o.find((e=>e.name===t));(0,er.$K)(n)&&e((0,yT.fp)({filter:x(n)})),l(!1),setTimeout((()=>u(t)),1e3)})(t.name)}),(0,w.jsx)(kd.w,{className:"filter-action-btn margin-left-auto",icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"edit"}),onClick:()=>(e=>{const t=o.filter((t=>t.name===e))[0];p(t),m(!0),y(!0)})(t.name)}),(0,w.jsx)(kd.w,{className:"filter-action-btn",icon:!0,iconEl:(0,w.jsx)(On.xu,{children:"delete"}),onClick:()=>(async t=>{if(confirm("Are you sure? This will delete the filter for all users.")&&(0,er.$K)(n)){const r=o.filter((e=>e.name!==t));await e((0,HC.l_)({programId:n,filters:r})),l(!1),C()}})(t.name)})]},t.name))),(0,w.jsx)(ni.k,{className:s()({"save-new-view-container":!0,bordered:o.length>0}),fullWidth:!0,justifyContent:"center",children:(0,w.jsx)("div",{children:(0,w.jsx)(kd.w,{raised:!0,blank:!0,transparent:!0,onClick:()=>(p({name:"",years:i.years,selected_crop_types:i.selectedCropTypes,visible_subsection_ids:i.visibleSubsectionIds,data_scenario_id:i.selectedScenarioId}),void y(!0)),children:"+ Save new view"})})})]})}),g&&(0,w.jsx)(q2,{onHide:k,name:null===d||void 0===d?void 0:d.name,submit:async t=>{if(k(),(0,er.$K)(d)&&(0,er.$K)(n)){const r=w6()(o);if(f)r.map((e=>e.name===d.name?{...e,name:t}:e)),m(!1);else{const e={...x(d),name:t};r.push(e)}await e((0,HC.l_)({programId:n,filters:r})),e((0,yT.fp)({filter:d})),setTimeout((()=>u(t)),1e3)}}})]})},C6=()=>{const e=(0,h.T)(),{getHasTabAccess:t}=jS(),{getDataScenarioById:n}=B1(),i=(0,h.C)(KI),o=(0,h.C)(VI),a=(0,h.C)(WI),s=(0,h.C)(HI),{data:l,isLoading:c}=AS(),{defaultYear:u}=k4();(0,r.useEffect)((()=>{if(c)return;const t=JS(null!==l&&void 0!==l?l:[]),n=XS(null!==l&&void 0!==l?l:[]),r=(0,er.$K)(u)?[u]:void 0;e((0,yT.cO)({years:r,selectedCropTypes:n,visibleSubsectionIds:t}))}),[u,e,c,l]);const p=(0,r.useCallback)((t=>{e((0,yT.cO)({years:(0,er.$K)(t)?[t]:void 0}))}),[e]),f=(0,r.useCallback)((t=>e((0,yT.cO)({selectedCropTypes:t}))),[e]),m=(0,r.useCallback)((t=>{const n=kT()(a,XS(null!==l&&void 0!==l?l:[],t));e((0,yT.cO)({selectedCropTypes:n,visibleSubsectionIds:t}))}),[e,l,a]),g=(0,r.useCallback)((t=>{var r,i,o;const a=n(t),s=(0,er.$K)(null===a||void 0===a?void 0:a.regions)?JS(null!==l&&void 0!==l?l:[],a.regions):JS(null!==l&&void 0!==l?l:[]),c=null!==(r=null!==(i=null===a||void 0===a?void 0:a.crops)&&void 0!==i?i:LE(null!==(o=null===a||void 0===a?void 0:a.cropRotations)&&void 0!==o?o:null))&&void 0!==r?r:void 0,u=(0,er.$K)(c)?kT()(c,XS(null!==l&&void 0!==l?l:[],s)):XS(null!==l&&void 0!==l?l:[],s);e((0,yT.cO)({selectedScenarioId:t,visibleSubsectionIds:s,selectedCropTypes:u}))}),[e,n,l]);return(0,w.jsxs)(d.Kq,{"data-testid":"kpi-dashboard-filters",alignItems:"center",bgcolor:"semanticPalette.surface.secondary",direction:"row",flexWrap:"wrap",gap:3,py:2,children:[(0,w.jsx)(d.le,{color:"inherit",fontSize:"medium",type:"filter"}),t("data_scenarios")?(0,w.jsx)(g6,{dataScenarioId:i,onDataScenarioChange:g}):null,(0,w.jsx)(d.xu,{width:e=>e.fixedWidths.xs,children:(0,w.jsx)(y6,{regionIds:o,dataScenarioId:i,onRegionsChange:m})}),(0,w.jsx)(f6,{onCropsChange:f,cropIds:a,regionIds:o,dataScenarioId:i}),(0,w.jsx)(b6,{year:s[0],onYearChange:p}),(0,w.jsx)(d.xu,{sx:e=>({"& #saved-view-dropdown":{borderRadius:e.borderRadii.sm,paddingBottom:"6px",paddingTop:"6px"}}),children:(0,w.jsx)(k6,{})})]})},S6=e=>{let{processing:t}=e;return(0,w.jsxs)(d.Kq,{maxWidth:680,children:[(0,w.jsxs)(d.xu,{display:"flex",gap:2,flexWrap:"wrap",children:[(0,w.jsx)(QC,{children:"Sustainability Reporting"}),t&&(0,w.jsx)(aS.A,{label:"Processing Sourcing Regions",tone:"dimmed",size:"small",className:"ml-8",leftIcon:(0,w.jsx)(td.Ho,{}),disabled:!0},"processing")]}),(0,w.jsx)(d.ZT,{children:"Metrics in this dashboard can be used to baseline, monitor, and report the effects of transitioning your sourcing regions to regenerative agriculture practices."})]})},M6={spatialExploration:"SI::SPATIAL_EXPLORATION",dataExport:"SI::DATA_EXPORT"},T6={supply_shed:"Supply sheds",subsection:"Supply sheds and subregions",admin_1:"States and provinces",admin_2:"Counties and districts"},E6=e=>{let{aggregationUnit:t,dataScenarioId:n,onAggregationLevelChange:r,label:i}=e;const o=(0,er.$K)(n);return(0,w.jsx)(d.NI,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,er.$K)(i)&&(0,w.jsx)(d.lX,{children:i}),(0,w.jsx)(d.Ph,{"aria-label":"Select aggregation level",displayEmpty:!0,onChange:e=>r((0,er.ke)(e.target.value)?void 0:e.target.value),value:null!==t&&void 0!==t?t:"",label:i,renderValue:e=>(0,er.ke)(e)||(0,er.o8)(e)?(0,w.jsx)(d.ZT,{color:"text.placeholder",children:"Select aggregation level"}):T6[e],children:(0,ii.pJ)(T6).map((e=>{let[t,n]=e;return"subsection"===t?(0,w.jsxs)(d.sN,{value:"subsection",children:[T6.subsection," "]},t):(0,w.jsx)(d.sN,{value:t,disabled:o,children:o?(0,w.jsx)(h6,{label:n,message:`Aggregation by ${n} is only available with the Default data scenario`}):n},t)}))})]})})},P6=e=>{let{regionIds:t,onRegionsChange:n,label:i}=e;const{data:o}=AS(),a=WS(null!==o&&void 0!==o?o:[]),s=YS(null!==o&&void 0!==o?o:[]),l=(0,r.useMemo)((()=>(0,er.kK)(o)?[]:I6(o)),[o]),c=qf()(t.map((e=>a[e]))),u=(0,r.useMemo)((()=>l.filter((e=>c.includes(Number(e.value))))),[l,c]),p=u.filter((e=>{let{disabled:t}=e;return(0,er.X0)(t)})).length;return(0,w.jsx)(d.F2,{"aria-label":"Select supply sheds",fullWidth:!0,disableCloseOnSelect:!0,hasSelectAll:!0,hasClear:!0,multiple:!0,placeholder:"Select supply sheds",localeText:{getLimitTagsText:()=>`${p} supply sheds selected`,getLimitTagsTextFocused:()=>`${p}  supply sheds selected`,selectAll:"Select all",deselectAll:"Deselect all"},options:l,onChange:(e,t)=>{const r=t.map((e=>{let{value:t}=e;return Number(t)}));return n(r.flatMap((e=>s[e])).filter(er.$K))},value:u,label:i})},I6=e=>e.map((e=>({label:e.name,value:e.id}))),O6=e=>{let{onClose:t}=e;const{programId:n}=YC(),{data:i}=AS(),[o,a]=r.useState(void 0),{setFilterState:s,filtersState:l,validCropIds:c,validSubsectionIds:u}=(e=>{const{data:t,isLoading:n}=AS(),{defaultYear:i}=k4(),{getDataScenarioById:o}=B1(),[a,s]=r.useState({year:i,cropIds:[],subsectionIds:[],dataScenarioId:void 0}),{validSubsectionIds:l,validCropIds:c}=(0,r.useMemo)((()=>{const e=o(a.dataScenarioId);var n;if(e)return{validSubsectionIds:kT()(e.regions,a.subsectionIds),validCropIds:kT()(null!==(n=e.crops)&&void 0!==n?n:LE(e.cropRotations),a.cropIds)};{const e=(0,er.$K)(t)?kT()(XS(t,a.subsectionIds),a.cropIds):a.cropIds;return{validSubsectionIds:a.subsectionIds,validCropIds:e}}}),[a.cropIds,a.dataScenarioId,a.subsectionIds,o,t]),u=r.useCallback((e=>{(0,er.Qr)(e)||s({...a,...e})}),[a]);return r.useEffect((()=>{if(!(0,er.fQ)(null===e||void 0===e?void 0:e.preventInitialization)&&!n&&(0,er.$K)(t)){const e=QS(t),n=XS(t,e);s((t=>({...t,subsectionIds:e,cropIds:n})))}}),[n,null===e||void 0===e?void 0:e.preventInitialization,t]),{filtersState:a,validSubsectionIds:l,validCropIds:c,setFilterState:u}})({preventInitialization:!0}),p=(0,r.useMemo)((()=>WS(null!==i&&void 0!==i?i:[])),[i]),h=(0,r.useMemo)((()=>(0,er.$K)(o)&&As(l.cropIds)&&As(l.subsectionIds)),[o,l.cropIds,l.subsectionIds]),f=(0,r.useCallback)((async()=>{tr.Z.track(`click::${M6.dataExport}::export-trigger-button`);if(!((0,er.$K)(n)&&(0,er.$K)(l.year)&&(0,er.$K)(o)))return Promise.reject("Invalid request");try{const t=await qC.Z.getDataExport(n,{data:"supply_shed"===o?{crop_ids:c,boundary_unit_ids:(e=u,qf()(e.map((e=>p[e]))).filter(er.$K)),year_of_interest:l.year,aggregation_unit:o,boundary_unit_type:"supply_shed"}:{crop_ids:c,boundary_unit_ids:u,year_of_interest:l.year,aggregation_unit:(0,er.$K)(l.dataScenarioId)?"subsection":o,boundary_unit_type:"subsection",data_scenario_id:l.dataScenarioId}}),r=`Regrow Sustainability Insights Export_${l.year}.xlsx`;return Promise.resolve((0,hp.Sv)(t.data,r,hp.HY.ApplicationXlsx))}catch(r){return Promise.reject(r)}finally{t({},"backdropClick")}var e}),[o,l.dataScenarioId,l.year,t,n,p,c,u]);return(0,r.useEffect)((()=>{(0,er.$K)(l.dataScenarioId)&&a((e=>"subsection"!==e?void 0:e))}),[l.dataScenarioId]),(0,w.jsxs)(d.o9,{open:!0,title:"Export data",onClose:t,children:[(0,w.jsx)(d.cZ,{children:(0,w.jsxs)(d.Kq,{gap:2,children:[(0,w.jsx)(g6,{dataScenarioId:l.dataScenarioId,onDataScenarioChange:e=>s({dataScenarioId:e}),label:"Data scenario"}),(0,w.jsx)(E6,{aggregationUnit:o,dataScenarioId:l.dataScenarioId,onAggregationLevelChange:e=>a(e),label:"Aggregation level"}),"supply_shed"===o?(0,w.jsx)(P6,{regionIds:l.subsectionIds,onRegionsChange:e=>s({subsectionIds:e}),label:"Supply sheds"}):(0,w.jsx)(y6,{regionIds:l.subsectionIds,dataScenarioId:l.dataScenarioId,onRegionsChange:e=>s({subsectionIds:e}),label:"Subregions"}),(0,w.jsx)(f6,{cropIds:l.cropIds,regionIds:l.subsectionIds,dataScenarioId:l.dataScenarioId,onCropsChange:e=>s({cropIds:e}),label:"Crops"}),(0,w.jsx)(b6,{year:l.year,onYearChange:e=>s({year:e}),label:"Year"})]})}),(0,w.jsx)(d.kX,{children:(0,w.jsx)(K2,{disabled:!h,onDownload:f,children:"Export"})})]})},L6=()=>{const e=VC("si-data-exports"),{getHasTabAccess:t}=jS(),n=t("data_export"),[i,o]=r.useState(!1);return(0,er.X0)(e)?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.u,{title:n?null:"Please contact your Regrow account team to enable Data export feature",children:(0,w.jsx)("span",{children:(0,w.jsx)(d.zx,{onClick:()=>{tr.Z.track(`click::${M6.dataExport}::data-export-button`),o(!0)},disabled:!n,children:"Export data"})})}),i&&(0,w.jsx)(O6,{onClose:()=>o(!1)})]})},R6=()=>{const e=(0,h.T)(),{data:t,isLoading:n}=AS(),{programId:i}=(0,wi.tZ)(),o=(0,h.C)(VI),a=(0,h.C)(WI),s=(0,h.C)(HI),{isKPIAvailable:l}=kE(),[c,u]=(0,r.useState)(!1),p=(0,r.useMemo)((()=>GS(null!==t&&void 0!==t?t:[])),[t]);(0,r.useEffect)((()=>{u(p)}),[p]),(0,r.useEffect)((()=>{e((0,HC.Yx)({programId:i}))}),[e,i]);const f=(0,er.Of)(o)&&(0,er.Of)(a)&&(0,er.Of)(s),m=(0,r.useMemo)((()=>(0,w.jsx)(J5,{programId:i,shouldTriggerResize:f})),[f,i]);return n?(0,w.jsx)(bT,{id:"sustainability-reporting-loader"}):(0,w.jsxs)(i3,{children:[(0,w.jsx)(Ai.L,{elevateStuck:!1,position:"top",children:(0,w.jsx)(C6,{})}),(0,w.jsxs)(d.Kq,{children:[(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",children:[(0,w.jsx)(S6,{processing:p}),(0,w.jsx)(L6,{})]}),(0,w.jsxs)(d.Kq,{gap:2,py:10,children:[(0,w.jsxs)(d.Kq,{direction:"row",gap:5,flexWrap:"wrap",children:[(0,w.jsx)(d.xu,{flexGrow:1,height:400,children:m}),f&&(0,w.jsx)(d.xu,{height:400,flexBasis:"calc(33% - 10px)",children:(0,w.jsx)(V5,{})})]}),!f&&(0,w.jsxs)(nr.U8,{bordered:!0,hideIcon:!0,color:"warning",mini:!0,fullWidth:!0,children:[(0,w.jsx)(Rn.x,{variant:"h3",bold:!0,className:"m-0",children:"Get started by selecting regions, crops and years in the filters above."}),(0,w.jsx)(Rn.x,{variant:"medium",noMargin:!0,children:"Choose different combinations of supply sheds or sub-regions, crops and crop years to view sustainability outcomes, emission factors and agricultural practices metrics."})]})]}),f&&(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(p6,{groupContent:uS.J0}),["ef_book_values",...uS.y2].every(l)&&(0,w.jsx)(d.xu,{width:"100%",className:"ef-stacked-chart",children:(0,w.jsx)(G5,{})}),(0,w.jsx)(p6,{groupContent:uS._h}),c&&(0,w.jsx)(TL,{onHide:()=>u(!1)})]})]})]})},j6=e=>(0,NT.Wy)(e),D6={restoredArea:KJ.pl,totalTrackedArea:KJ.pl,restoration:e=>(0,KJ.vy)(e,{sigDigits:1})},A6={restoredArea:j6,totalTrackedArea:j6,restoration:()=>({unit:"unit-interval",unitName:{singular:"% of land area restored",plural:"% of land area restored",abbr:""}})},N6=e=>(0,NT.Wy)(e),F6={convertedArea:KJ.pl,totalTrackedArea:KJ.pl,conversion:e=>(0,KJ.vy)(e,{sigDigits:1})},z6={convertedArea:N6,totalTrackedArea:N6,conversion:()=>({unit:"unit-interval",unitName:{singular:"% of land area converted",plural:"% of land area converted",abbr:""}})},B6={topLevelTitle:"cover cropping",topLevelDescription:"Percentage of cropland area practicing cover cropping",primaryMetricKey:"adoption",secondaryMetricKey:"covercroppedArea",trackedMetricKey:"totalTrackedArea",unknownMetricKey:"unknownArea",notApplicableMetricKey:"notApplicableArea",label:"Cover cropping",categoryColorKey:"7",choroplethKey:"adoption",choroplethGroupFormatter:c0.adoption,choroplethUnit:u0.adoption,sortOrder:"desc"},U6={topLevelTitle:"sequestration (dSOC)",topLevelDescription:"Average change in soil organic carbon in CO2 equivalents per unit of cropland",primaryMetricKey:"dSocMassPerArea",label:"Sequestration (dSOC)",categoryColorKey:"2",choroplethKey:"dSocMassPerArea",choroplethGroupFormatter:P2.dSocMassPerArea,choroplethUnit:e=>I2.dSocMassPerArea(e),sortOrder:"desc"},$6={topLevelTitle:"GHG emissions",topLevelDescription:"Average field emissions (CH4 and N2O) in CO2 equivalents per unit of cropland",primaryMetricKey:"ghgMassPerArea",label:"GHG emissions",categoryColorKey:"2",choroplethKey:"ghgMassPerArea",choroplethGroupFormatter:C2.ghgMassPerArea,choroplethUnit:S2.ghgMassPerArea,sortOrder:"asc"},V6={topLevelTitle:"conservation tillage",topLevelDescription:"Percentage of cropland area practicing reduced till and no till",primaryMetricKey:"adoption",secondaryMetricKey:"conservationTillageArea",trackedMetricKey:"totalTrackedArea",unknownMetricKey:"unknownArea",label:"Conservation tillage",categoryColorKey:"7",choroplethKey:"adoption",choroplethGroupFormatter:e6.adoption,choroplethUnit:t6.adoption,sortOrder:"desc"},q6={topLevelTitle:"land use, land use change (LULUC) - conversion",topLevelDescription:"Percentage of observed land area converted from grassland to cropland",primaryMetricKey:"conversion",secondaryMetricKey:"convertedArea",trackedMetricKey:"totalTrackedArea",label:"Conversion (LULUC)",categoryColorKey:"7",choroplethKey:"conversion",choroplethGroupFormatter:F6.conversion,choroplethUnit:z6.conversion,sortOrder:"asc"},Z6={topLevelTitle:"land use, land use change (LULUC) - restoration",topLevelDescription:"Percentage of observed land area restored from cropland to grassland",primaryMetricKey:"restoration",secondaryMetricKey:"restoredArea",trackedMetricKey:"totalTrackedArea",label:"Restoration (LULUC)",categoryColorKey:"7",choroplethKey:"restoration",choroplethGroupFormatter:D6.restoration,choroplethUnit:A6.restoration,sortOrder:"desc"},H6={cover_crop:B6,soc_kg_per_m2:U6,ghg_kg_per_m2:$6,tillage:V6,grassland_to_cropland_lulc:q6,cropland_to_grassland_lulc:Z6},G6="Total farms",W6={cover_crop:B6.label,soc_kg_per_m2:U6.label,ghg_kg_per_m2:$6.label,tillage:V6.label,grassland_to_cropland_lulc:q6.label,cropland_to_grassland_lulc:Z6.label},Y6={cover_crop:"cover_cropping",soc_kg_per_m2:"soc_sequestration",ghg_kg_per_m2:"ghg_emission",tillage:"tillage",grassland_to_cropland_lulc:"lulc",cropland_to_grassland_lulc:"lulc"},K6=["annualized","boundary_annualized"],X6=["1","2","4","6","8"],J6="unavailable",Q6="unavailableDataFillPattern",e8="Average",t8=[{rule:e=>"admin2"===e.boundaryType,message:"Average metrics can differ when aggregated at the county and district level because all fields of a county or district are included when even a partial county or district intersects with the selected subregions."},{rule:e=>e.isTimeTrendEnabled&&"subsection"===e.boundaryType&&e.subsectionIds.length>5,message:"The multiline annualized chart is not available when selecting more than five subregions."},{rule:e=>e.isTimeTrendEnabled&&"admin2"===e.boundaryType,message:"The multiline annualized chart in not available when aggregated by counties and districts."}],n8=[{rule:e=>(0,er.$K)(e.kpi)&&(0,er.$K)(e.boundaryType)&&["grassland_to_cropland_lulc","cropland_to_grassland_lulc"].includes(e.kpi)&&["admin2"].includes(e.boundaryType),message:"Data scenario filtering is not available with county and district reporting and land use change reporting"},{rule:e=>(0,er.$K)(e.kpi)&&["grassland_to_cropland_lulc","cropland_to_grassland_lulc"].includes(e.kpi),message:"Data scenario filtering is not available with land use change reporting"},{rule:e=>(0,er.$K)(e.boundaryType)&&["admin2"].includes(e.boundaryType),message:"Data scenario filtering is not available with county and district reporting"}],r8="This reporting feature is not available for use with data scenario filtering",i8={admin2:"counties and districts",subsection:"subregions"},o8=e=>{let{boundaryType:t,dataScenarioId:n,onAggregationLevelChange:i}=e;const o=(0,r.useCallback)((e=>i(e.target.value)),[i]),a="Select aggregation level",s=(0,er.$K)(t)?`Aggregated by ${i8[t]}`:a;return(0,w.jsxs)(d.Ph,{"aria-label":a,required:!0,onChange:o,value:null!==t&&void 0!==t?t:"subsection",renderValue:()=>`${s}`,children:[(0,w.jsx)(d.sN,{value:"subsection",children:i8.subsection}),(0,er.$K)(n)?(0,w.jsx)(d.sN,{disabled:!0,children:(0,w.jsx)(h6,{label:`${i8.admin2}`,message:r8})}):(0,w.jsx)(d.sN,{value:"admin2",children:i8.admin2})]})},a8=e=>{let{children:t,isLoading:n,fixedContent:r}=e;const i=(0,d.Fg)();return(0,w.jsx)(d.xu,{position:"absolute",top:0,bottom:0,right:0,maxHeight:900,display:"flex",flexDirection:"column",p:5,pb:8,minWidth:i.fixedWidths.md,width:.25,children:(0,w.jsx)(d.Xk,{fullHeight:!0,fullWidth:!0,elevation:i.boxShadows.sm,children:(0,w.jsxs)(d.Kq,{p:5,height:1,children:[(0,er.$K)(r)&&(0,w.jsx)(d.xu,{mb:5,children:r}),(0,w.jsx)(d.Kq,{flexGrow:1,gap:4,height:1,width:1,overflow:"auto",children:n?(0,w.jsx)(bT,{id:"spatial-exploration-table-loading"}):t})]})})})},s8=[],l8=e=>{var t;let{dataScenarioId:n,onDataScenarioChange:i,kpi:o,boundaryType:a}=e;const{dataScenarios:s}=$T(),{cropIds:l}=$E(),{getSourcingRegionsText:c}=iO(),u=FS(),p=(0,h.C)(S.DC),f=null===(t=s.find((e=>e.id===n)))||void 0===t?void 0:t.name,m=r.useMemo((()=>US()(s.map((e=>[e.id,NE(zT(e,p),l,c,u)])))),[s,l,c,u,p]),g=(0,r.useMemo)((()=>{const e=n8.find((e=>{let{rule:t}=e;return t({kpi:o,boundaryType:a})}));return{status:(0,er.$K)(e),message:null===e||void 0===e?void 0:e.message}}),[a,o]),y=(0,r.useCallback)((e=>i((0,er.ke)(e.target.value)?void 0:e.target.value)),[i]),v=(0,r.useCallback)((e=>(0,er.ke)(e)?g.status&&(0,er.$K)(g.message)?(0,w.jsx)(h6,{label:"Default data scenario",message:g.message}):(0,w.jsx)(d.ZT,{children:"Default data scenario"}):f),[g.message,g.status,f]);return(0,w.jsxs)(d.Ph,{"aria-label":"Select data scenario",placeholder:"Default data scenario",onChange:y,displayEmpty:!0,renderValue:v,value:null!==n&&void 0!==n?n:"",disabled:g.status,children:[(0,w.jsx)(d.sN,{value:"",children:(0,w.jsx)(d.ZT,{children:"Default"})}),s.map((e=>{var t;return(0,w.jsx)(d.sN,{value:e.id,children:(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",alignContent:"center",gap:1,width:"100%",children:[(0,w.jsx)(d.xu,{children:e.name}),(0,w.jsx)(d.u,{placement:"right",title:(0,w.jsx)(O1,{rows:null!==(t=m[e.id])&&void 0!==t?t:s8}),children:(0,w.jsx)("span",{children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"h5"})})})]})},e.id)}))]})},c8=e=>{let{kpi:t,onKPIChange:n,dataScenarioId:i}=e;const{isKPIAvailable:o}=kE(),a=(0,r.useMemo)((()=>(0,ii.pJ)(Y6).filter((e=>{let[t,n]=e;return o(n)})).map((e=>{let[t]=e;return["grassland_to_cropland_lulc","cropland_to_grassland_lulc"].includes(t)&&(0,er.$K)(i)?{label:(0,w.jsx)(h6,{label:`${W6[t]}`,message:r8}),value:t,disabled:!0}:{label:W6[t],value:t}}))),[i,o]);return(0,w.jsx)(d.mg,{"aria-label":"Select KPI",onChange:e=>n(e.target.value),value:t,options:a})},u8=e=>{let{mapLegendContent:t}=e;const{boxShadows:n,spacing:r}=(0,d.Fg)();if((0,er.kK)(t))return null;const{title:i,subtitle:o,choroplethGroups:a}=t;return(0,w.jsx)(d.xu,{position:"absolute",bottom:32,left:20,"data-testid":"spatial-exploration--map-legend",children:(0,w.jsx)(d.Xk,{fullWidth:!0,fullHeight:!0,elevation:n.sm,children:(0,w.jsxs)(d.Kq,{padding:3,gap:3,children:[(0,w.jsxs)(d.xu,{children:[(0,w.jsx)(d.ZT,{variant:"h6",children:i}),!(0,er.kK)(o)&&(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:o})]}),(0,w.jsx)(d.Kq,{gap:2,children:a.map((e=>{const{color:t,label:n}=e;return(0,w.jsxs)(d.Kq,{display:"flex",direction:"row",gap:2,children:[(0,w.jsx)(d.xu,{width:r(6),height:r(4),bgcolor:t}),(0,w.jsx)(d.ZT,{component:"span",variant:"body2",children:n})]},t)}))})]})})})},d8=()=>(0,w.jsxs)(d.Kq,{height:1,alignItems:"center",justifyContent:"center",direction:"row",gap:1,children:[(0,w.jsx)(d.le,{type:"chart",color:"disabled"}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:"Data is unavailable"})]}),p8=e=>{let{interactiveLayerIds:t,children:n,mapBoundsGeometries:i,mapStyle:o,onClick:a,onLoad:s,onMouseMove:l,padding:c,mapRef:u}=e;const d=(0,r.useRef)(null),p=(0,r.useMemo)((()=>null!==u&&void 0!==u?u:d),[u]),[h,f]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if((0,er.kK)(i)||(0,er.yD)(null===i||void 0===i?void 0:i.features)||!h)return;const{current:e}=p,[t,n,r,o]=(0,Fg.VWR)(i);null===e||void 0===e||e.fitBounds([[t,n],[r,o]],{padding:c||10,duration:700})}),[h,i,c,p]);const m=(0,r.useCallback)((()=>{f(!0),null===s||void 0===s||s()}),[s]);return(0,w.jsxs)(GP,{ref:p,mapboxAccessToken:"pk.eyJ1IjoiZ3JlYXRvem1lbiIsImEiOiJjbDc4NTB5am8wNWFlM3Bxcjc1Mnd0OW15In0.pnN6uS4xwXMVMqz81gRPcg",mapStyle:o,interactiveLayerIds:t,onClick:a,onLoad:m,onMouseMove:l,children:[(0,w.jsx)(tI,{position:"top-left",style:{margin:"20px 0 0 20px"}}),n]})},h8=e=>{const{shouldFetch:t,subsection_ids:n}={shouldFetch:!0,...e},{programId:i}=YC(),o=(0,er.$K)(i),a=t&&o,s=(0,r.useMemo)((()=>({subsection_ids:(0,er.$K)(n)?n.map((e=>Number(e))).toSorted():void 0})),[n]),{data:l,isLoading:c,...u}=(0,Ju.Z)(a?[pS.fetchBoundaryMetadata(i),i,s]:null,(async()=>{if((0,er.kK)(i)||(0,er.kK)(s))return Promise.reject("Missing request parameters");const e=await qC.Z.getBoundaryMetaData(i,s);return Promise.resolve(e.data)}));return{data:l,isLoading:c,...u}},f8=e=>{let{choroplethLookup:t}=e;const{palette:{semanticPalette:n}}=(0,d.Fg)(),i=(0,r.useMemo)((()=>({deselected:{fill:{"fill-color":n.surface.main,"fill-opacity":.25},line:{"line-width":1,"line-color":n.stroke.main,"line-opacity":.25}},selectedAvailableData:{fill:{"fill-opacity":.75}},selectedUnavailableData:{fill:{"fill-pattern":Q6,"fill-opacity":1},line:{"line-width":1,"line-color":n.stroke.main,"line-opacity":.5}},selectedHover:{line:{"line-width":["case",["boolean",["feature-state","hover"],!1],3,0]}}})),[n.stroke.main,n.surface.main]),o=(0,r.useMemo)((()=>{if((0,er.kK)(t))return"transparent";const e=Xr()((0,ii.pJ)(null!==t&&void 0!==t?t:{}).map((e=>{let[t,{color:n}]=e;return{id:t,color:n}})),"color"),n=(0,ii.pJ)(e).flatMap((e=>{let[t,n]=e;return[["in",["get","id"],["literal",n.map((e=>e.id))]],t]}));return["case",...n,i.deselected.fill["fill-color"]]}),[i,t]);return{boundaryFilterRules:(0,r.useMemo)((()=>{const e=(0,er.$K)(t)?Object.keys(t):[],n=(0,er.$K)(t)?(0,ii.pJ)(t).filter((e=>{let[t,n]=e;return n.group===J6})).map((e=>{let[t,n]=e;return t})):[];return{deselectedRules:["!",["in",["get","id"],["literal",e]]],selectedRules:["in",["get","id"],["literal",e]],selectedUnavailableDataRules:["in",["get","id"],["literal",n]],selectedAvailableDataRules:["in",["get","id"],["literal",qE()(e,n)]]}}),[t]),commonBoundaryPaintRules:i,selectedBoundaryPaintRules:o}},m8=e=>{let{isMapLoading:t,choroplethLookup:n}=e;const{layer:i,url:o}=(0,r.useMemo)((()=>SI.$c.admin2),[]),{data:a,isLoading:s}=h8(),{selectedBoundaryPaintRules:l,boundaryFilterRules:c,commonBoundaryPaintRules:u}=f8({choroplethLookup:n}),d=(0,r.useMemo)((()=>{if(s||(0,er.kK)(a))return c.deselectedRules;const e=a.map((e=>{let{feature_id:t}=e;return t}));return["all",c.deselectedRules,["in",["get","id"],["literal",[...e]]]]}),[c.deselectedRules,a,s]);return t||s?null:(0,w.jsxs)(oI,{id:"source-admin2",type:"vector",url:o,promoteId:"id",children:[(0,w.jsx)(sI,{id:"deselected-fill","source-layer":i,type:"fill",paint:{...u.deselected.fill},filter:d}),(0,w.jsx)(sI,{id:"deselected-outline","source-layer":i,type:"line",filter:d,paint:{...u.deselected.line}}),(0,w.jsx)(sI,{id:"selected-availabledata-fill","source-layer":i,type:"fill",paint:{"fill-color":l,...u.selectedAvailableData.fill},filter:c.selectedAvailableDataRules}),(0,w.jsx)(sI,{id:"selected-unavailabledata-fill","source-layer":i,type:"fill",paint:{...u.selectedUnavailableData.fill},filter:c.selectedUnavailableDataRules}),(0,w.jsx)(sI,{id:"selected-unavailabledata-outline","source-layer":i,type:"line",paint:{...u.selectedUnavailableData.line},filter:c.selectedUnavailableDataRules}),(0,w.jsx)(sI,{id:"selected-outline","source-layer":i,type:"line",paint:{"line-color":l,...u.selectedHover.line},filter:c.selectedRules})]})},g8=e=>{let{lngLat:t,children:n}=e;return(0,er.kK)(t)?null:(0,w.jsx)(y8,{longitude:t.lng,latitude:t.lat,closeButton:!1,closeOnClick:!1,offset:15,children:n})},y8=(0,d.zo)(JP)`
  &&.mapboxgl-popup {
    width: ${e=>{let{theme:t}=e;return t.fixedWidths.xs}}px;
    max-width: none !important; // needed to override maxwidth on element
  }
  &.mapboxgl-popup .mapboxgl-popup-content {
    background: ${e=>{let{theme:t}=e;return t.palette.common.black}};
    color: ${e=>{let{theme:t}=e;return t.palette.common.white}};
    padding: ${e=>{let{theme:t}=e;return t.spacing(2)}};
  }
  &.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
  &.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
  &.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
    border-bottom-color: ${e=>{let{theme:t}=e;return t.palette.common.black}};
  }
  &.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
  &.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
  &.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
    border-top-color: ${e=>{let{theme:t}=e;return t.palette.common.black}};
  }
  &.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: ${e=>{let{theme:t}=e;return t.palette.common.black}};
  }
  &.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: ${e=>{let{theme:t}=e;return t.palette.common.black}};
  }
`,v8=e=>{let{color:t}=e;return(0,er.$K)(t)?(0,w.jsx)(d.xu,{border:2,borderColor:t,height:e=>e.spacing(2.5),width:e=>e.spacing(2.5),borderRadius:e=>e.borderRadii.pill}):null},b8=e=>{var t,n,r,i,o;let{lngLat:a,tooltipContent:s}=e;return(0,er.kK)(a)||(0,er.kK)(s)?null:(0,w.jsxs)(g8,{lngLat:a,children:[(0,w.jsxs)(d.Kq,{mb:4,children:[(0,w.jsxs)(d.Kq,{direction:"row",gap:1,alignItems:"center",children:[(0,w.jsx)(v8,{color:null!==(t=s.boundaryTimeTrendColor)&&void 0!==t?t:null===(n=s.choropleth)||void 0===n?void 0:n.color}),(0,w.jsx)(d.ZT,{variant:"h5",children:s.boundaryName})]}),(0,w.jsx)(d.ZT,{variant:"body2",children:null!==(r=s.crop_area)&&void 0!==r?r:uS.QE})]}),(0,w.jsxs)(d.Kq,{gap:1,children:[(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",children:[(0,w.jsx)(d.ZT,{variant:"body2",children:s.kpi.label}),(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body2",children:null!==(i=s.kpi.content)&&void 0!==i?i:uS.QE})]}),(0,er.Of)(s.kpiSubText)&&s.kpiSubText.map(((e,t)=>(0,w.jsx)(d.Kq,{direction:"row",justifyContent:"right",children:(0,w.jsx)(d.ZT,{variant:"body2",children:e})},`kpisubtext-${t}`))),(0,er.$K)(s.farm_count)&&(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",children:[(0,w.jsx)(d.ZT,{variant:"body2",children:s.farm_count.label}),(0,w.jsx)(d.ZT,{fontWeight:"bold",variant:"body2",children:null!==(o=s.farm_count.content)&&void 0!==o?o:uS.QE})]})]})]})},_8=e=>{let{isMapLoading:t,subsectionFeatures:n,choroplethLookup:r}=e;const{selectedBoundaryPaintRules:i,boundaryFilterRules:o,commonBoundaryPaintRules:a}=f8({choroplethLookup:r});return t?null:(0,w.jsxs)(oI,{id:"source-subsection",type:"geojson",data:n,promoteId:"id",children:[(0,w.jsx)(sI,{id:"deselected-fill",type:"fill",paint:{...a.deselected.fill},filter:o.deselectedRules}),(0,w.jsx)(sI,{id:"deselected-outline",type:"line",paint:{...a.deselected.line},filter:o.deselectedRules}),(0,w.jsx)(sI,{id:"selected-availabledata-fill",type:"fill",paint:{"fill-color":i,...a.selectedAvailableData.fill},filter:o.selectedAvailableDataRules}),(0,w.jsx)(sI,{id:"selected-unavailabledata-fill",type:"fill",paint:{...a.selectedUnavailableData.fill},filter:o.selectedUnavailableDataRules}),(0,w.jsx)(sI,{id:"selected-unavailabledata-outline",type:"line",paint:{...a.selectedUnavailableData.line},filter:o.selectedUnavailableDataRules}),(0,w.jsx)(sI,{id:"selected-outline",type:"line",paint:{"line-color":i,...a.selectedHover.line},filter:o.selectedRules})]})},w8=e=>{let{choroplethLookup:t,mapTooltipContentLookup:n,boundaryType:i}=e;const o=(0,r.useRef)(null),[a,s]=(0,r.useState)(!0),{activeBoundaryId:l,tooltipLngLat:c,onMouseMove:u}=(e=>{let{boundaryType:t,map:n}=e;const{layer:i}=(0,r.useMemo)((()=>SI.$c.admin2),[]),[o,a]=(0,r.useState)(void 0),[s,l]=(0,r.useState)(void 0),[c,u]=(0,r.useState)(void 0),d=(0,r.useMemo)((()=>{let e={source:""};return"admin2"===t?e={source:"source-admin2",sourceLayer:i}:"subsection"===t&&(e={source:"source-subsection"}),e}),[i,t]);return(0,r.useEffect)((()=>{u((e=>((0,er.$K)(e)&&(null===n||void 0===n||n.off("mousemove",e)),e=>{var t,r;let{lngLat:i,features:o}=e;const s=null===o||void 0===o||null===(t=o[0])||void 0===t||null===(r=t.properties)||void 0===r?void 0:r.id;a((0,er.$K)(s)?i:void 0),l((e=>((0,er.$K)(e)&&(null===n||void 0===n||n.setFeatureState({...d,id:e},{hover:!1})),(0,er.$K)(s)&&(null===n||void 0===n||n.setFeatureState({...d,id:s},{hover:!0})),s)))})))}),[n,d]),{activeBoundaryId:s,tooltipLngLat:o,onMouseMove:c}})({boundaryType:i,map:null===o||void 0===o?void 0:o.current}),{fixedWidths:p}=(0,d.Fg)(),h=(0,r.useMemo)((()=>({right:p.md,top:0,bottom:0,left:40})),[p]),{data:f}=(e=>{let{shouldFetch:t=!0}=e;const{programId:n}=YC(),r=(0,er.$K)(n),i=t&&r,{data:o,isLoading:a,...s}=(0,Ju.Z)(i?pS.fetchSupplyShedGeometries(n):null);return{data:o,isLoading:a,...s}})({shouldFetch:!0}),m=(0,r.useMemo)((()=>{const e=(0,er.$K)(f)?(0,fS.Yr)({geometries:f,type:"sub-section"}):{type:"FeatureCollection",features:[]},t=(0,er.$K)(e)?e.features.map((e=>{var t,n;return{...e,properties:{id:(0,er.$K)(null===(t=e.properties)||void 0===t?void 0:t.id)?String(null===(n=e.properties)||void 0===n?void 0:n.id):void 0}}})):[];return{...e,features:t}}),[f]),g=(e=>(0,r.useCallback)((()=>{const t=new Image(5,5);t.src="/assets/si/patterns/pattern-hatch.png",t.onload=()=>{var n;return null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.addImage(Q6,t)}}),[e]))(o),y=(0,r.useCallback)((()=>{g(),s(!1)}),[g]);return(0,w.jsxs)(p8,{mapStyle:"mapbox://styles/mapbox/satellite-v9",onMouseMove:u,interactiveLayerIds:["selected-availabledata-fill","selected-unavailabledata-fill"],mapBoundsGeometries:m,onLoad:y,padding:h,mapRef:o,children:["subsection"===i?(0,w.jsx)(_8,{isMapLoading:a,choroplethLookup:t,subsectionFeatures:m}):(0,w.jsx)(w.Fragment,{}),"admin2"===i?(0,w.jsx)(m8,{isMapLoading:a,choroplethLookup:t}):(0,w.jsx)(w.Fragment,{}),(0,w.jsx)(b8,{lngLat:c,tooltipContent:(0,er.$K)(l)?null===n||void 0===n?void 0:n[l]:void 0})]})},x8=e=>{let{tablePanelContent:t}=e;if((0,er.kK)(t))return(0,w.jsx)(d.Xk,{variant:"outlined",fullWidth:!0,fullHeight:!0,children:(0,w.jsx)(d.Kq,{p:3,pt:2,minHeight:1,justifyContent:"center",children:(0,w.jsx)(d8,{})})});const{rows:n,columns:r,sorting:i,choroplethGroups:o}=t,a=k8(o);return(0,w.jsx)(d.Xk,{variant:"outlined",fullWidth:!0,fullHeight:!0,"data-testid":"spatial-exploration--card-table-panel",children:(0,w.jsx)(d.Kq,{p:3,pt:2,minHeight:1,justifyContent:"center",children:(0,w.jsx)(d.DQ.DataGrid,{initialState:{sorting:i},columns:r,rows:n,sx:a,disableRowSelectionOnClick:!0})})})},k8=e=>{if((0,er.kK)(e))return;const t=US()(e.map(((t,n)=>[`&.choropleth--${n+1}-${e.length}`,{borderLeftColor:t.color}])));return{'& .MuiDataGrid-cell[data-colindex="0"]':{borderLeftWidth:"4px",borderLeftStyle:"solid",...t},"& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within":{outline:"none"}}},C8=e=>{let{metric:t,unitDetail:n,subText:r,subTextTooltip:i}=e;return(0,w.jsxs)(d.Kq,{children:[(0,w.jsxs)(d.Kq,{alignItems:"center",direction:"row",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h3",children:t.formattedValue})," ",(0,w.jsx)(d.ZT,{variant:"h3",color:"secondary",children:(0,er.$K)(n)?n.unitName.abbr:t.unit})]}),(0,er.$K)(r)&&(0,w.jsxs)(d.ZT,{"data-testid":"si-top-level-number--subtext",variant:"body2",color:"semanticPalette.text.secondary",component:"span",children:[r,(0,er.$K)(i)&&(0,er.HH)(i)&&(0,w.jsx)(d.xu,{ml:1,component:"span",children:(0,w.jsx)(d.u,{"data-testid":"si-top-level-number--subtexttooltip",title:i,children:(0,w.jsx)("span",{children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"body2","aria-label":"(hover for additional info)"})})})})]})]})},S8=e=>{let{topLevelPanelContent:t,children:n}=e;if((0,er.kK)(t))return(0,w.jsx)(d.Xk,{variant:"outlined",fullWidth:!0,children:(0,w.jsx)(d.Kq,{p:3,pt:2,height:145,width:1,justifyContent:"center",children:(0,w.jsx)(d8,{})})});const{title:r,description:i,notifications:o}=t,a=null===o||void 0===o?void 0:o.map((e=>(0,w.jsx)(d.ZT,{variant:"body2",children:e},e)));return(0,w.jsx)(d.Xk,{variant:"outlined",fullWidth:!0,"data-testid":"spatial-exploration--card-top-level-panel",children:(0,w.jsxs)(d.Kq,{p:3,width:1,children:[(0,w.jsxs)(d.Kq,{direction:"row",gap:1,children:[(0,w.jsx)(d.ZT,{variant:"h5",children:r}),(0,er.$K)(a)&&(0,er.Of)(a)&&(0,w.jsx)(d.u,{title:(0,w.jsx)(d.Kq,{gap:4,children:a}),children:(0,w.jsx)(d.xu,{color:"info.main",children:(0,w.jsx)(d.le,{type:"warning-triangled",fontSize:"h5",color:"inherit"})})})]}),(0,er.$K)(i)&&(0,w.jsx)(d.ZT,{variant:"body2",color:"semanticPalette.text.secondary",children:i}),n]})})},M8=e=>{let{data:t,unitDetail:n,lineChartColorLookup:r}=e;return(0,w.jsxs)(d.Kq,{gap:1,children:[(0,w.jsx)(d.xu,{height:200,width:1,children:(0,w.jsx)(d.wW,{data:t,options:{layout:{padding:{left:-6}},scales:{y:{title:{display:!0,text:n.unitName.singular}}},plugins:{colorThemes:{type:"disabled"},legend:{display:!1}}}})}),t.datasets.length>1?(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",gap:1,justifyContent:"center",children:[(0,w.jsx)(v8,{color:r.get(e8)}),(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:e8})]}):null]})},T8=(e,t)=>t.map((t=>{let[n,r]=t;return[n,(0,er.$K)(r)&&(0,er.$K)(r[e.primaryMetricKey])?E8(e,r):null]})),E8=(e,t)=>({primary:t[e.primaryMetricKey],secondary:(0,er.$K)(e.secondaryMetricKey)?t[e.secondaryMetricKey]:void 0,tracked:(0,er.$K)(e.trackedMetricKey)?t[e.trackedMetricKey]:void 0,unknown:(0,er.$K)(e.unknownMetricKey)?t[e.unknownMetricKey]:void 0,notApplicable:(0,er.$K)(e.notApplicableMetricKey)?t[e.notApplicableMetricKey]:void 0}),P8=e=>{let{kpiMetrics:t,unitsDetail:n}=e;return(0,er.$K)(t)&&(0,er.$K)(n)?`${t.primary.formattedValue} ${n.primary.unitName.abbr}`.trim():null},I8=e=>{let{subKpiMetrics:t,subUnitDetail:n}=e;return(0,er.kK)(t)||(0,ii._J)(t).every(er.o8)||(0,er.kK)(n)?null:O8(t,n)},O8=(e,t)=>{const{secondary:n,tracked:r,unknown:i,notApplicable:o}=e,a=(0,er.HH)(t.unitName.abbr)?` ${t.unitName.abbr}`:"";let s;(0,er.o8)(n)||(s=(0,er.Ft)(n)?uS.QE:`${n.formattedValue}${a}`);return{subTextLine1:s,subTextLine2:(0,er.$K)(r)?`${r.formattedValue} ${uS.wt}${a}`:void 0,subTextLine3:(0,er.$K)(i)&&i.value>0?`${i.formattedValue} ${uS.CH}${a}`:void 0,subTextLine4:(0,er.$K)(o)&&o.value>0?`${o.formattedValue} ${uS.Lq}${a}`:void 0}},L8=e=>{const t=e.subsectionIds.map((e=>String(e))),{isLoading:n,data:i}=AS({shouldFetch:"subsection"===e.boundaryType}),{isLoading:o,data:a}=h8({shouldFetch:"admin2"===e.boundaryType,subsection_ids:t}),s=(0,r.useMemo)((()=>{if("subsection"!==e.boundaryType||n||(0,er.kK)(i)||(0,er.yD)(i))return null;const{subsections:r}=M4(i,{filterTo:{subsections:{ids:t,status:void 0}}});return r}),[e.boundaryType,n,i,t]),l={admin2:(0,r.useMemo)((()=>{if("admin2"!==e.boundaryType||o||(0,er.kK)(a)||(0,er.yD)(a))return null;const{admin2:t={}}=((e,t)=>{const{filterTo:n}=W0()({filterTo:{boundary_type:["admin2"]}},null!==t&&void 0!==t?t:{});return e.reduce(((e,t)=>{let{feature_id:r,feature_name:i,boundary_type:o}=t;if((0,er.$K)(null===n||void 0===n?void 0:n.boundary_type)&&!n.boundary_type.includes(o))return e;const a={id:String(r),name:i},s={...e[o],[String(r)]:a};return{...e,[o]:s}}),{})})(a);return t}),[e.boundaryType,o,a]),subsection:s};return{isLoading:o||n,data:{boundaryLevelLookup:(0,er.$K)(e.boundaryType)?l[e.boundaryType]:null}}};function R8(e){return null===e?NaN:+e}var j8=n(91295),D8=n.n(j8);const A8=e=>{var t,n;let{colors:r,choroplethValues:i,darkToLight:o,labelFormatter:a}=e;if((0,er.yD)(r)||(0,er.yD)(i))return null;const s=$f()(i),l=s.length<r.length?s.length:r.length,c=null!==(t=function(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}(s))&&void 0!==t?t:null,u=null!==(n=function(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}(s))&&void 0!==n?n:null,d=IS()(l).map((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R8;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}(s,(e+1)/l)));if((0,er.kK)(c)||(0,er.kK)(u)||(0,er.kK)(d)||!d.every(er.$K))return null;const p=d.map(((e,t)=>({exclusiveLowerBound:0===t?c:d[t-1],inclusiveUpperBound:e})));return N8({groups:p,darkToLight:o,colors:r,labelMaker:e=>{let{exclusiveLowerBound:t,inclusiveUpperBound:n,index:r}=e;return`Quantile ${r+1} (${a(t)} - ${a(n)})`}})},N8=e=>{let{colors:t,darkToLight:n,groups:r,labelMaker:i}=e;const o=((0,er.fQ)(n)?r.toReversed():r).map(((e,n)=>{let{exclusiveLowerBound:r,inclusiveUpperBound:o}=e;return{exclusiveLowerBound:r,inclusiveUpperBound:o,color:t[n],label:i({exclusiveLowerBound:r,inclusiveUpperBound:o,index:n})}}));return o},F8=e=>{let{boundaryKpiLookup:t,boundaryLookup:n,content:i}=e;const{palette:{categoryPalette:o,semanticPalette:a}}=(0,d.Fg)(),s=(0,r.useMemo)((()=>(0,er.kK)(t)?null:(0,ii.pJ)(t).reduce(((e,t)=>{const[n,r]=t,i=null===r||void 0===r?void 0:r.choroplethValue;return(0,er.kK)(i)?e:[...e,i]}),[])),[t]),l=(0,r.useMemo)((()=>{if((0,er.kK)(i)||(0,er.kK)(s))return null;const e=(e=>{let t,{categoryColorKey:n,categoryPalette:r}=e;switch(n){case"2":t="#C4DAD9";break;case"7":t="#E9DAB5"}return[r[n].surface,t,r[n].highlight,r[n].chart,r[n].text]})({categoryPalette:o,categoryColorKey:i.categoryColorKey}),t=i.choroplethGroupFormatter;return A8({colors:e,choroplethValues:s,darkToLight:"asc"===i.sortOrder,labelFormatter:t})}),[i,s,o]),c=(0,r.useMemo)((()=>{if((0,er.kK)(l)||(0,er.kK)(n)||(0,er.kK)(t))return null;const e=(e=>{let{unavailableColor:t,choroplethGroups:n}=e;return e=>{if((0,er.kK)(e)||!Number.isFinite(e)||(0,er.yD)(n))return{color:t,group:J6};const r=D8()(n,["exclusiveLowerBound"]);if(e<r[0].exclusiveLowerBound||e>r.at(-1).inclusiveUpperBound)return{color:t,group:J6};const i=r.length,o=r.findIndex((t=>{let{inclusiveUpperBound:n}=t;return e<=n}));return{color:-1===o||(0,er.kK)(null===r||void 0===r?void 0:r[o])?t:r[o].color,group:`${o+1}-${i}`}}})({unavailableColor:a.stroke.main,choroplethGroups:l});return US()((0,ii.pJ)(n).map((n=>{var r;let[i]=n;return[i,e(null===(r=t[i])||void 0===r?void 0:r.choroplethValue)]})))}),[l,n,t,a]);return(0,er.kK)(l)||(0,er.kK)(c)?null:{choroplethGroups:l,choroplethLookup:c}},z8=e=>{const t=ti()(e,"boundaryType"),n=S0(t);return(0,er.kK)(n)?void 0:{...n,boundary_type:e.boundaryType}},B8=H6.cover_crop,U8=u0,$8={crop_area:KJ.pl},V8=e=>(0,NT.Wy)(e),q8=e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"crop_area",summarize_by:["boundary"],common_filters:t}:void 0}),[e]),{response:i,isLoading:o}=J1({payload:n}),a=(0,r.useMemo)((()=>{if(o)return null;const e=r0(i,(n=t,e=>{if((0,er.kK)(e.area_m2)||!Number.isFinite(e.area_m2))return null;const t=(0,NT.Ai)({value:e.area_m2,from:"m2",to:n});return{crop_area:{value:t,unit:V8(n).unit,formattedValue:$8.crop_area(t)}}}));var n;return(0,er.$K)(e)?US()(e.map((e=>{var t;let[n,r]=e;return[n,null!==(t=null===r||void 0===r?void 0:r.crop_area)&&void 0!==t?t:null]}))):null}),[o,i,t]);return{isLoading:o,data:{boundaryLevelLookup:a}}},Z8=H6.cropland_to_grassland_lulc,H8=A6,G8=e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>{return e=t,t=>{const{c2g_lulc_conversion_area_m2:n,c2g_lulc_total_tracked_area_m2:r}=t;if(!Number.isFinite(n)||!Number.isFinite(r)||(0,er.kK)(n)||(0,er.kK)(r))return null;if(0===r)return null;const i=(0,NT.Ai)({value:n,from:"m2",to:e}),o=A6.restoredArea(e),a=(0,NT.Ai)({value:r,from:"m2",to:e}),s=A6.totalTrackedArea(e),l=n/r,c=A6.restoration(e);return{restoredArea:{value:i,unit:o.unit,formattedValue:D6.restoredArea(i)},totalTrackedArea:{value:a,unit:s.unit,formattedValue:D6.totalTrackedArea(a)},restoration:{value:l,unit:c.unit,formattedValue:D6.restoration(l)}}};var e}),[t]),i=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"cropland_to_grassland_lulc",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),{response:o,isLoading:a}=J1({payload:i,shouldFetch:"cropland_to_grassland_lulc"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,n)),[n,a,o]),l=(0,r.useMemo)((()=>a?null:r0(o,n)),[n,a,o]),c=(0,r.useMemo)((()=>a?null:i0(o,n)),[n,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,n)),[n,a,o]),d=(0,r.useMemo)((()=>({primary:H8[Z8.primaryMetricKey](t),secondary:(0,er.$K)(Z8.secondaryMetricKey)?H8[Z8.secondaryMetricKey](t):void 0})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=T8(Z8,c),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=T8(Z8,n);return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];return[t,{choroplethValue:n[Z8.choroplethKey].value,kpiMetrics:E8(Z8,n)}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>{if((0,er.kK)(s))return null;return E8(Z8,s)}),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}},W8=H6.ghg_kg_per_m2,Y8=S2,K8=H6.grassland_to_cropland_lulc,X8=z6,J8=e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"grassland_to_cropland_lulc",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),i=(0,r.useMemo)((()=>{return e=t,t=>{const n=null===t||void 0===t?void 0:t.g2c_lulc_conversion_area_m2,r=null===t||void 0===t?void 0:t.g2c_lulc_total_tracked_area_m2;if(!Number.isFinite(n)||!Number.isFinite(r)||(0,er.kK)(n)||(0,er.kK)(r))return null;if(0===r)return null;const i=(0,NT.Ai)({value:n,from:"m2",to:e}),o=z6.convertedArea(e),a=(0,NT.Ai)({value:r,from:"m2",to:e}),s=z6.totalTrackedArea(e),l=n/r,c=z6.conversion(e);return{convertedArea:{value:i,unit:o.unit,formattedValue:F6.convertedArea(i)},totalTrackedArea:{value:a,unit:s.unit,formattedValue:F6.totalTrackedArea(a)},conversion:{value:l,unit:c.unit,formattedValue:F6.conversion(l)}}};var e}),[t]),{response:o,isLoading:a}=J1({payload:n,shouldFetch:"grassland_to_cropland_lulc"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,i)),[i,a,o]),l=(0,r.useMemo)((()=>a?null:r0(o,i)),[i,a,o]),c=(0,r.useMemo)((()=>a?null:i0(o,i)),[i,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,i)),[i,a,o]),d=(0,r.useMemo)((()=>({primary:X8[K8.primaryMetricKey](t),secondary:(0,er.$K)(K8.secondaryMetricKey)?X8[K8.secondaryMetricKey](t):void 0})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=T8(K8,c),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=T8(K8,n);return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];return[t,{choroplethValue:n[K8.choroplethKey].value,kpiMetrics:E8(K8,n)}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>{if((0,er.kK)(s))return null;return E8(K8,s)}),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}},Q8=H6.soc_kg_per_m2,e7=I2,t7=()=>(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:uS.QE}),n7=e=>{let{farmCountMetric:t}=e;return(0,w.jsx)(d.Kq,{children:(0,er.kK)(t)?(0,w.jsx)(t7,{}):(0,w.jsx)(d.ZT,{variant:"body1",children:t.formattedValue})})},r7=e=>{let{primaryMetric:t,subText:n,subTextTooltip:r}=e;return(0,w.jsx)(d.Kq,{alignItems:"flex-end",children:(0,er.kK)(t)?(0,w.jsx)(t7,{}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.ZT,{variant:"body1",children:t.formattedValue}),(0,er.$K)(n)&&(0,w.jsxs)(d.ZT,{variant:"body2",color:"secondary",children:[n,(0,er.Of)(r)&&(0,w.jsx)(d.xu,{ml:1,component:"span",children:(0,w.jsx)(d.u,{"data-testid":"si-primary-metric-tile--subtexttooltip",title:r.map(((e,t)=>(0,w.jsx)(d.Kq,{direction:"row",justifyContent:"right",children:(0,w.jsx)(d.ZT,{variant:"body2",children:e})},`kpisubtext-${t}`))),children:(0,w.jsx)("span",{children:(0,w.jsx)(d.le,{type:"info-circled",fontSize:"body2","aria-label":"(hover for additional info)"})})})})]})]})})},i7=e=>{let{boundaryName:t,cropAreaMetric:n,color:r}=e;return(0,w.jsxs)(d.Kq,{width:1,children:[(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",gap:1,children:[(0,w.jsx)(d.bd,{variant:"h5",children:t}),(0,w.jsx)(v8,{color:r})]}),(0,er.kK)(n)?(0,w.jsx)(t7,{}):(0,w.jsx)(d.ZT,{variant:"body2",color:"secondary",children:`${n.formattedValue} ${n.unit}`})]})},o7=e=>{let{headerName:t,field:n,sortOrder:r,unitDetail:i,subMetricUnitDetail:o,width:a}=e;return{headerName:t,renderHeader:()=>(0,w.jsxs)(d.Kq,{alignItems:"flex-end",whiteSpace:"pre-wrap",textAlign:"right",children:[(0,w.jsx)(d.ZT,{variant:"h5",children:t}),(0,w.jsxs)(d.ZT,{variant:"body2",color:"secondary",component:"span",children:["(",(0,er.HH)(null===i||void 0===i?void 0:i.unitName.abbr)?null===i||void 0===i?void 0:i.unitName.abbr:null===i||void 0===i?void 0:i.unitName.singular,")"]})]}),field:n,flex:1,minWidth:null!==a&&void 0!==a?a:150,type:"number",valueGetter:e=>{var t,r;let{row:i}=e;return null!==(t=null===(r=i[n])||void 0===r?void 0:r.primary.value)&&void 0!==t?t:null},renderCell:e=>{var t;let{row:r}=e;const i=null===(t=r[n])||void 0===t?void 0:t.primary,a=I8({subKpiMetrics:r[n],subUnitDetail:o});return(0,w.jsx)(r7,{primaryMetric:i,subText:null===a||void 0===a?void 0:a.subTextLine1,subTextTooltip:(0,ii._J)(yS()(a,["subTextLine2","subTextLine3","subTextLine4"])).filter(er.$K)})},sortComparator:(s=r,(e,t)=>{const n="asc"===s?-1:1;return(0,er.kK)(e)?-1*n:(0,er.kK)(t)?1*n:e-t})};var s},a7=e=>({boundary:{headerName:"Region name",renderHeader:()=>(0,w.jsxs)(d.Kq,{children:[(0,w.jsx)(d.ZT,{variant:"h5",children:"Region name"}),(0,w.jsxs)(d.ZT,{variant:"body2",color:"secondary",children:["(","cropland"," in ",V8(e).unitName.plural,")"]})]}),field:"boundaryName",flex:1,minWidth:125,renderCell:e=>{let{row:{boundaryName:t,cropAreaMetric:n,boundaryTimeTrendColor:r}}=e;return(0,w.jsx)(i7,{boundaryName:t,cropAreaMetric:n,color:r})},cellClassName:e=>{var t;let{row:{choroplethColor:n}}=e;return`choropleth--${null!==(t=null===n||void 0===n?void 0:n.group)&&void 0!==t?t:J6}`}},farm_count:{headerName:G6,renderHeader:()=>(0,w.jsxs)(d.Kq,{alignItems:"flex-end",children:[(0,w.jsx)(d.ZT,{variant:"h5",children:G6}),(0,w.jsxs)(d.ZT,{variant:"body2",color:"secondary",children:["(",h0().unitName.plural,")"]})]}),field:"farm_count",maxWidth:125,type:"number",valueGetter:e=>{var t;let{row:{farmCountMetric:n}}=e;return null!==(t=null===n||void 0===n?void 0:n.value)&&void 0!==t?t:null},renderCell:e=>{let{row:{farmCountMetric:t}}=e;return(0,w.jsx)(n7,{farmCountMetric:t})}}}),s7=H6.tillage,l7=t6,c7=e=>{var t,n;const i=(0,h.C)(S.DC),{kpi:o}=e,{isLoading:a,data:s}=L8(e),{isLoading:l,data:c}=q8(e),{isLoading:u,data:p}=(e=>{const t=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"farm_count",summarize_by:["boundary"],common_filters:t}:void 0}),[e]),{response:n,isLoading:i}=J1({payload:t,shouldFetch:"subsection"===e.boundaryType}),o=(0,r.useMemo)((()=>{if(i)return null;const e=r0(n,f0);return(0,er.$K)(e)?US()(e.map((e=>{var t;let[n,r]=e;return[n,null!==(t=null===r||void 0===r?void 0:r.farm_count)&&void 0!==t?t:null]}))):null}),[i,n]);return{isLoading:i,data:{boundaryLevelLookup:o}}})(e),{isLoading:f,data:m}=(e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>d0(t)),[t]),i=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"cover_crop",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),{response:o,isLoading:a}=J1({payload:i,shouldFetch:"cover_crop"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,n)),[n,a,o]),l=(0,r.useMemo)((()=>a?null:r0(o,n)),[n,a,o]),c=(0,r.useMemo)((()=>a?null:i0(o,n)),[n,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,n)),[n,a,o]),d=(0,r.useMemo)((()=>({primary:U8[B8.primaryMetricKey](t),secondary:(0,er.$K)(B8.secondaryMetricKey)?U8[B8.secondaryMetricKey](t):void 0})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=T8(B8,c),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=T8(B8,n);return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;return(0,er.kK)(n)?[t,null]:[t,{choroplethValue:n[B8.choroplethKey].value,kpiMetrics:E8(B8,n)}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>(0,er.kK)(s)?null:E8(B8,s)),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}})(e),{isLoading:g,data:y}=(e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>O2(t)),[t]),i=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"soc_kg_per_m2",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),{response:o,isLoading:a}=J1({payload:i,shouldFetch:"soc_kg_per_m2"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,n)),[a,o,n]),l=(0,r.useMemo)((()=>a?null:r0(o,n)),[a,o,n]),c=(0,r.useMemo)((()=>a?null:i0(o,n)),[n,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,n)),[n,a,o]),d=(0,r.useMemo)((()=>({primary:e7[Q8.primaryMetricKey](t)})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=c.map((e=>{let[t,n]=e;return[t,(0,er.$K)(n)?{primary:n[Q8.primaryMetricKey]}:null]})),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=n.map((e=>{let[t,n]=e;return[t,(0,er.$K)(n)?{primary:n[Q8.primaryMetricKey]}:null]}));return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;return(0,er.kK)(n)?[t,null]:[t,{choroplethValue:null===n||void 0===n?void 0:n[Q8.choroplethKey].value,kpiMetrics:{primary:n[Q8.primaryMetricKey]}}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>(0,er.kK)(s)?null:{primary:s[Q8.primaryMetricKey]}),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}})(e),{isLoading:v,data:b}=(e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>M2(t)),[t]),i=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"ghg_kg_per_m2",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),{response:o,isLoading:a}=J1({payload:i,shouldFetch:"ghg_kg_per_m2"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,n)),[n,a,o]),l=(0,r.useMemo)((()=>a?null:r0(o,n)),[n,a,o]),c=(0,r.useMemo)((()=>a?null:i0(o,n)),[n,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,n)),[n,a,o]),d=(0,r.useMemo)((()=>({primary:Y8[W8.primaryMetricKey](t)})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=c.map((e=>{let[t,n]=e;return[t,(0,er.$K)(n)?{primary:n[W8.primaryMetricKey]}:null]})),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=n.map((e=>{let[t,n]=e;return[t,(0,er.$K)(n)?{primary:n[W8.primaryMetricKey]}:null]}));return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;return(0,er.kK)(n)?[t,null]:[t,{choroplethValue:null===n||void 0===n?void 0:n[W8.choroplethKey].value,kpiMetrics:{primary:n[W8.primaryMetricKey]}}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>(0,er.kK)(s)?null:{primary:s[W8.primaryMetricKey]}),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}})(e),{isLoading:_,data:w}=(e=>{const t=(0,h.C)(S.DC),n=(0,r.useMemo)((()=>n6(t)),[t]),i=(0,r.useMemo)((()=>{const t=z8(e);return(0,er.$K)(t)?{kpi_type:"tillage",summarize_by:["boundary",...e.isTimeTrendEnabled?K6:[]],common_filters:t}:void 0}),[e]),{response:o,isLoading:a}=J1({payload:i,shouldFetch:"tillage"===e.kpi}),s=(0,r.useMemo)((()=>a?null:t0(o,n)),[a,o,n]),l=(0,r.useMemo)((()=>a?null:r0(o,n)),[a,o,n]),c=(0,r.useMemo)((()=>a?null:i0(o,n)),[n,a,o]),u=(0,r.useMemo)((()=>a?null:o0(o,n)),[n,a,o]),d=(0,r.useMemo)((()=>({primary:l7[s7.primaryMetricKey](t),secondary:(0,er.$K)(s7.secondaryMetricKey)?l7[s7.secondaryMetricKey](t):void 0})),[t]),p=(0,r.useMemo)((()=>{if((0,er.kK)(c)||(0,er.kK)(u))return null;const e=T8(s7,c),t=u.map((e=>{let[t,n]=e;if((0,er.kK)(n))return[t,null];const r=T8(s7,n);return[t,new Map(r)]}));return{topLevel:new Map(e),boundaryLevel:new Map(t)}}),[c,u]),f=(0,r.useMemo)((()=>{if((0,er.kK)(l))return null;const e=l.map((e=>{let[t,n]=e;return(0,er.kK)(n)?[t,null]:[t,{choroplethValue:n[s7.choroplethKey].value,kpiMetrics:E8(s7,n)}]}));return US()(e)}),[l]),m=(0,r.useMemo)((()=>(0,er.kK)(s)?null:E8(s7,s)),[s]);return{isLoading:a,data:{boundaryLevelLookup:f,topLevelLookup:m,annualizedLookup:p,unitsDetail:d}}})(e),{isLoading:x,data:k}=J8(e),{isLoading:C,data:M}=G8(e),{topLevelLookup:T,annualizedLookup:E,boundaryLevelLookup:P,unitsDetail:I,content:O}=(0,r.useMemo)((()=>{if((0,er.kK)(o))return{boundaryLevelLookup:null,annualizedLookup:null,topLevelLookup:null,unitsDetail:null,content:null};return{...{cover_crop:m,soc_kg_per_m2:y,ghg_kg_per_m2:b,tillage:w,grassland_to_cropland_lulc:k,cropland_to_grassland_lulc:M}[o],content:H6[o]}}),[o,m,y,b,w,k,M]),L=(0,r.useMemo)((()=>{if((0,er.kK)(T))return null;const e=(e=>{let{subKpiMetrics:t,subUnitDetail:n}=e;if((0,er.kK)(t)||(0,ii._J)(t).every(er.o8)||(0,er.kK)(n))return null;const r=O8(t,n),{subTextLine1:i,subTextLine2:o}=r;let{subTextLine3:a,subTextLine4:s}=r;return(0,er.$K)(a)&&(a=`${a} ${uS.zi}`),(0,er.$K)(s)&&(s=`${s} ${uS.iF}`),{subTextLine1:i,subTextLine2:o,subTextLine3:a,subTextLine4:s}})({subKpiMetrics:T,subUnitDetail:null===I||void 0===I?void 0:I.secondary});return{metric:T.primary,unitDetail:null===I||void 0===I?void 0:I.primary,subText:(0,er.$K)(null===e||void 0===e?void 0:e.subTextLine2)?`${null===e||void 0===e?void 0:e.subTextLine1} / ${null===e||void 0===e?void 0:e.subTextLine2}`:null===e||void 0===e?void 0:e.subTextLine1,subTextTooltip:(0,ii._J)(yS()(e,["subTextLine3","subTextLine4"])).filter(er.$K).join(" ")}}),[T,I]),R=(e=>{let{annualizedKpiLookup:t,filtersState:n,boundaryLookup:i,unitsDetail:o}=e;const{boundaryType:a,isTimeTrendEnabled:s,startYear:l,year:c,subsectionIds:u}=n,{palette:{categoryPalette:p,common:h}}=(0,d.Fg)(),f=(0,r.useMemo)((()=>{if(!s||(0,er.kK)(l)||(0,er.kK)(c)||(0,er.yD)(u)||(0,er.kK)(t)||(0,er.kK)(i)||(0,er.kK)(o))return null;const e=c-l+1,n=Array.from({length:e},((e,t)=>`${t+l}`)),r="subsection"===a&&u.length<=5,d=new Map(r?u.map(((e,t)=>{const n=p[X6[t%X6.length]].chart;return[String(e),n]})):[]);d.set(e8,h.black);const f=r?u.map((e=>{var r;const o=String(e),a=null===(r=i[o])||void 0===r?void 0:r.name,s=t.boundaryLevel.get(o),l=d.get(o),c=n.map((e=>{var t;const n=null===s||void 0===s||null===(t=s.get(e))||void 0===t?void 0:t.primary;return(0,er.$K)(n)?(0,KJ.ar)(n):null}));return{label:a,data:c,borderColor:l}})):[],m=u.length>1?[{label:e8,borderColor:d.get(e8),data:n.map((e=>{var n;const r=null===(n=t.topLevel.get(e))||void 0===n?void 0:n.primary;return(0,er.$K)(r)?(0,KJ.ar)(r):null})),...r?{borderDash:[5,5]}:{}}]:[];return{data:{labels:n,datasets:[...m,...f]},unitDetail:o.primary,lineChartColorLookup:d}}),[t,i,a,p,h.black,s,u,c,l,o]);return f})({annualizedKpiLookup:E,filtersState:e,boundaryLookup:s.boundaryLevelLookup,unitsDetail:I}),j=(0,r.useMemo)((()=>{const t=[];t8.forEach((n=>{let{rule:r,message:i}=n;r({boundaryType:e.boundaryType,isTimeTrendEnabled:e.isTimeTrendEnabled,subsectionIds:e.subsectionIds})&&t.push(i)}));const n=null===O||void 0===O?void 0:O.topLevelDescription;return(0,er.kK)(O)?null:{title:`Average ${O.topLevelTitle}${e.isTimeTrendEnabled?" over time":""}`,description:n,notifications:t,topLevelNumberContent:L,topLevelTimeTrendChartContent:R}}),[O,e.boundaryType,e.isTimeTrendEnabled,e.subsectionIds,L,R]),D=F8({content:O,boundaryLookup:s.boundaryLevelLookup,boundaryKpiLookup:P}),A=(e=>{var t;let{annualizedKpiLookup:n,boundaryCropAreaLookup:i,boundaryFarmCountLookup:o,boundaryKpiLookup:a,boundaryLookup:s,choroplethLookup:l,content:c,filtersState:{boundaryType:u,isTimeTrendEnabled:d,startYear:p,year:f},timeTrendLineChartColorLookup:m,unitsDetail:g}=e;const{isKPIAvailable:y}=kE(),v=(0,h.C)(S.DC),b=r.useMemo((()=>(0,er.kK)(s)?null:(0,ii.pJ)(s).map((e=>{var t,r,s,c,u,h,g,y,v,b;let[_,w]=e;return{id:_,boundaryName:w.name,boundaryTimeTrendColor:null!==(t=null===m||void 0===m?void 0:m.get(_))&&void 0!==t?t:null,choroplethColor:null!==(r=null===l||void 0===l?void 0:l.choroplethLookup[_])&&void 0!==r?r:null,cropAreaMetric:null!==(s=null===i||void 0===i?void 0:i[_])&&void 0!==s?s:null,farmCountMetric:null!==(c=null===o||void 0===o?void 0:o[_])&&void 0!==c?c:null,kpiMetrics:d?null!==(u=null===n||void 0===n||null===(h=n.boundaryLevel.get(_))||void 0===h?void 0:h.get(String(f)))&&void 0!==u?u:null:null!==(g=null===a||void 0===a||null===(y=a[_])||void 0===y?void 0:y.kpiMetrics)&&void 0!==g?g:null,startYearKpiMetrics:d?null!==(v=null===n||void 0===n||null===(b=n.boundaryLevel.get(_))||void 0===b?void 0:b.get(String(p)))&&void 0!==v?v:null:void 0}}))),[null===n||void 0===n?void 0:n.boundaryLevel,i,o,a,s,null===l||void 0===l?void 0:l.choroplethLookup,d,f,p,m]),_=r.useMemo((()=>{var e,t;const n=[a7(v).boundary],r=d&&p!==f;return[(0,er.$K)(c)&&r?o7({headerName:`${p}`,field:"startYearKpiMetrics",sortOrder:c.sortOrder,unitDetail:null!==(e=null===g||void 0===g?void 0:g.primary)&&void 0!==e?e:null,subMetricUnitDetail:null===g||void 0===g?void 0:g.secondary,width:100}):null,(0,er.$K)(c)?o7({headerName:d?`${f}`:c.label,field:"kpiMetrics",sortOrder:c.sortOrder,unitDetail:null!==(t=null===g||void 0===g?void 0:g.primary)&&void 0!==t?t:null,subMetricUnitDetail:null===g||void 0===g?void 0:g.secondary,width:r?100:150}):null].forEach((e=>{(0,er.$K)(e)&&n.push(e)})),y("farm_ownership")&&"subsection"===u&&n.push(a7(v).farm_count),n}),[u,c,y,d,f,p,g,v]),w=r.useMemo((()=>(0,er.kK)(c)?{sortModel:[{field:"boundaryName",sort:"asc"}]}:{sortModel:[{field:"kpiMetrics",sort:c.sortOrder}]}),[c]);return(0,er.kK)(b)?null:{rows:b,columns:_,sorting:w,choroplethGroups:null!==(t=null===l||void 0===l?void 0:l.choroplethGroups)&&void 0!==t?t:null}})({annualizedKpiLookup:E,timeTrendLineChartColorLookup:null!==(t=null===R||void 0===R?void 0:R.lineChartColorLookup)&&void 0!==t?t:null,content:O,choroplethLookup:D,boundaryCropAreaLookup:c.boundaryLevelLookup,boundaryFarmCountLookup:p.boundaryLevelLookup,boundaryKpiLookup:P,boundaryLookup:s.boundaryLevelLookup,filtersState:e,unitsDetail:I}),N=(e=>{let{timeTrendLineChartColorLookup:t,content:n,choroplethLookup:i,boundaryCropAreaLookup:o,boundaryFarmCountLookup:a,boundaryKpiLookup:s,boundaryLookup:l,filtersState:{boundaryType:c},unitsDetail:u}=e;const{isKPIAvailable:d}=kE();return(0,r.useMemo)((()=>(0,er.kK)(n)||(0,er.kK)(l)?null:US()((0,ii.pJ)(l).map((e=>{var r,l,p,h,f,m,g,y,v,b;let[_,w]=e;return[_,{boundaryName:w.name,boundaryTimeTrendColor:null!==(r=null===t||void 0===t?void 0:t.get(_))&&void 0!==r?r:null,choropleth:null!==(l=null===i||void 0===i?void 0:i.choroplethLookup[_])&&void 0!==l?l:null,crop_area:(0,er.$K)(null===o||void 0===o?void 0:o[_])?`${null===(p=o[_])||void 0===p?void 0:p.formattedValue} ${null===(h=o[_])||void 0===h?void 0:h.unit} of cropland`:null,kpi:{label:n.label,content:P8({kpiMetrics:null!==(f=null===s||void 0===s||null===(m=s[_])||void 0===m?void 0:m.kpiMetrics)&&void 0!==f?f:null,unitsDetail:u})},kpiSubText:(0,ii._J)(yS()(I8({subKpiMetrics:null!==(g=null===s||void 0===s||null===(y=s[_])||void 0===y?void 0:y.kpiMetrics)&&void 0!==g?g:null,subUnitDetail:null===u||void 0===u?void 0:u.secondary}),["subTextLine1","subTextLine2","subTextLine3","subTextLine4"])).filter(er.$K),...d("farm_ownership")&&"subsection"===c?{farm_count:{label:G6,content:null!==(v=null===a||void 0===a||null===(b=a[_])||void 0===b?void 0:b.formattedValue)&&void 0!==v?v:null}}:{}}]})))),[o,a,s,l,c,null===i||void 0===i?void 0:i.choroplethLookup,n,d,t,u])})({timeTrendLineChartColorLookup:null!==(n=null===R||void 0===R?void 0:R.lineChartColorLookup)&&void 0!==n?n:null,content:O,choroplethLookup:D,boundaryCropAreaLookup:c.boundaryLevelLookup,boundaryFarmCountLookup:p.boundaryLevelLookup,boundaryKpiLookup:P,boundaryLookup:s.boundaryLevelLookup,filtersState:e,unitsDetail:I}),F=(0,r.useMemo)((()=>{var e;return{choroplethLookup:null!==(e=null===D||void 0===D?void 0:D.choroplethLookup)&&void 0!==e?e:null,mapTooltipContentLookup:N}}),[null===D||void 0===D?void 0:D.choroplethLookup,N]);return{isLoading:a||l||u||f||g||v||_||x||C,topLevelPanelContent:j,tablePanelContent:A,mapLegendContent:(0,r.useMemo)((()=>{const e=null===D||void 0===D?void 0:D.choroplethGroups;return(0,er.kK)(O)||(0,er.kK)(e)?null:{choroplethGroups:e,title:O.label,subtitle:O.choroplethUnit(i).unitName.plural}}),[O,null===D||void 0===D?void 0:D.choroplethGroups,i]),mapContent:F,content:O}},u7=()=>{const{filtersState:e,setFilterState:t,validSubsectionIds:n,validCropIds:i}=(()=>{const{data:e,isLoading:t}=AS(),{defaultYear:n,programYears:i}=k4(),{getDataScenarioById:o}=B1(),{isKPIAvailable:a}=kE(),s=(0,ii.pJ)(Y6).filter((e=>{let[t,n]=e;return a(n)})).map((e=>{let[t]=e;return t})).shift(),[l,c]=r.useState({kpi:s,year:n,cropIds:[],subsectionIds:[],dataScenarioId:void 0,isTimeTrendEnabled:!1,startYear:i.at(0),boundaryType:"subsection"}),{validSubsectionIds:u,validCropIds:d}=(0,r.useMemo)((()=>{const t=o(l.dataScenarioId);var n;if(t)return{validSubsectionIds:kT()(t.regions,l.subsectionIds),validCropIds:kT()(null!==(n=t.crops)&&void 0!==n?n:LE(t.cropRotations),l.cropIds)};{const t=kT()(XS(null!==e&&void 0!==e?e:[],l.subsectionIds),l.cropIds);return{validSubsectionIds:l.subsectionIds,validCropIds:t}}}),[l.cropIds,l.dataScenarioId,l.subsectionIds,o,e]),p=r.useCallback((e=>{(0,er.Qr)(e)||c({...l,...e})}),[l]);return r.useEffect((()=>{if(t||(0,er.kK)(e))return;const n=QS(e),r=XS(e,n);c((e=>({...e,subsectionIds:n,cropIds:r})))}),[t,e]),{filtersState:l,validSubsectionIds:u,validCropIds:d,setFilterState:p}})(),o=(0,r.useMemo)((()=>({...e,subsectionIds:n,cropIds:i})),[e,n,i]),{isLoading:a,mapContent:s,mapLegendContent:l,topLevelPanelContent:c,tablePanelContent:u}=c7(o),{getHasTabAccess:p}=jS(),h=(0,r.useMemo)((()=>{const t=(0,er.kK)(null===c||void 0===c?void 0:c.topLevelNumberContent)?(0,w.jsx)(d8,{}):(0,w.jsx)(C8,{...c.topLevelNumberContent}),n=(0,er.kK)(null===c||void 0===c?void 0:c.topLevelTimeTrendChartContent)?(0,w.jsx)(d8,{}):(0,w.jsx)(M8,{...c.topLevelTimeTrendChartContent});return e.isTimeTrendEnabled?n:t}),[e.isTimeTrendEnabled,null===c||void 0===c?void 0:c.topLevelNumberContent,null===c||void 0===c?void 0:c.topLevelTimeTrendChartContent]);return(0,w.jsxs)(d.xu,{display:"flex",flexGrow:1,flexDirection:"column",children:[(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",spacing:1,pl:3,useFlexGap:!0,children:[(0,w.jsx)(d.xu,{display:"inline-block",mt:1,children:(0,w.jsx)(d.le,{color:"inherit",fontSize:"medium",type:"filter"})}),(0,w.jsxs)(d.Kq,{direction:"row",alignItems:"center",spacing:2,px:3,py:2,useFlexGap:!0,flexWrap:"wrap",children:[p("data_scenarios")?(0,w.jsx)(l8,{dataScenarioId:e.dataScenarioId,onDataScenarioChange:e=>t({dataScenarioId:e}),kpi:e.kpi,boundaryType:e.boundaryType}):null,(0,w.jsx)(d.xu,{width:e=>e.fixedWidths.xs,children:(0,w.jsx)(y6,{regionIds:e.subsectionIds,dataScenarioId:e.dataScenarioId,onRegionsChange:e=>t({subsectionIds:e})})}),(0,w.jsx)(o8,{boundaryType:e.boundaryType,dataScenarioId:e.dataScenarioId,onAggregationLevelChange:e=>t({boundaryType:e})}),(0,w.jsx)(f6,{cropIds:e.cropIds,regionIds:e.subsectionIds,dataScenarioId:e.dataScenarioId,onCropsChange:e=>t({cropIds:e})}),(0,w.jsx)(b6,{year:e.year,onYearChange:e=>t({year:e})})]})]}),(0,w.jsxs)(d.Kq,{flexGrow:1,justifyContent:"right",position:"relative",children:[(0,w.jsxs)(d.xu,{bottom:0,left:0,right:0,top:0,position:"absolute",children:[(0,w.jsx)(w8,{...s,boundaryType:e.boundaryType}),(0,w.jsx)(u8,{mapLegendContent:l})]}),(0,w.jsx)(a8,{isLoading:a,fixedContent:(0,w.jsx)(d.Kq,{gap:2,children:(0,w.jsxs)(d.Kq,{direction:"row",justifyContent:"space-between",children:[(0,w.jsx)(c8,{kpi:e.kpi,onKPIChange:e=>t({kpi:e}),dataScenarioId:e.dataScenarioId}),(0,w.jsx)(d.th,{exclusive:!0,value:e.isTimeTrendEnabled,onChange:(e,n)=>{tr.Z.track(`click::${M6.spatialExploration}::timetrend::${!!n}`),t({isTimeTrendEnabled:null!==n&&void 0!==n&&n})},children:(0,w.jsx)(d.CO,{value:!0,children:(0,w.jsxs)(d.Kq,{direction:"row",gap:2,alignItems:"center",children:[(0,w.jsx)(d.le,{type:"line-chart"}),(0,w.jsx)(d.xu,{children:"Show trend"})]})})})]})}),children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.Kq,{gap:4,children:(0,w.jsx)(S8,{topLevelPanelContent:c,children:(0,w.jsx)(d.xu,{mt:2,children:h})})}),(0,w.jsx)(d.Kq,{flexGrow:1,alignSelf:"stretch",children:(0,w.jsx)(x8,{tablePanelContent:u})})]})})]})]})},d7=e=>{let{programId:t}=e;const{push:n}=(0,u.k6)(),i=(0,u.TH)(),{getHasTabAccess:o}=jS(),a=VC("si-data-exports"),s=(0,r.useMemo)((()=>[{accessKey:"kpi",label:uS.kx.kpi,value:(0,xo.F_)(WC.Xm,{programId:t}),path:WC.Xm,component:R6},{accessKey:"comparison_dashboard",label:uS.kx.comparison_dashboard,value:(0,xo.F_)(WC.Xc,{programId:t}),path:WC.Xc,component:W2},{accessKey:"spatial_exploration",label:uS.kx.spatial_exploration,value:(0,xo.F_)(WC.G_,{programId:t}),path:WC.G_,component:u7},(0,er.fQ)(a)?void 0:{accessKey:"data_export",label:uS.kx.data_export,value:(0,xo.F_)(WC.ou,{programId:t}),path:WC.ou,component:r5},{accessKey:"ghgp",label:uS.kx.ghgp,value:(0,xo.F_)(WC.Sr,{programId:t}),path:WC.Sr,component:R5}].filter(er.$K).filter((e=>o(e.accessKey)))),[t,a,o]),l=(0,r.useMemo)((()=>{var e;const t=s.find((e=>"kpi"===e.accessKey));return(0,er.$K)(t)?t.value:null===(e=s[0])||void 0===e?void 0:e.value}),[s]),c=(0,r.useMemo)((()=>{var e;return String(null===(e=s.find((e=>{let{value:t}=e;return i.pathname.includes(t)})))||void 0===e?void 0:e.value)}),[s,i]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(jM.q,{containerClassName:"second-level-menu-tabs",tabs:s,selectedTab:c,onTabClick:e=>n(e)}),(0,w.jsxs)(u.rs,{children:[s.map((e=>{let{path:t,component:n}=e;return(0,w.jsx)(vm,{path:t,component:n},t)})),(0,er.$K)(l)&&(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:l})})]})]})},p7=()=>{const{programId:e}=YC(),t=VC("si-plan-v2"),n=(0,h.C)(tS),i=(0,h.C)((e=>(0,Or.RU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),{programTabAccess:o}=jS(),a=(0,r.useMemo)((()=>{return e=o,uS._Q.reduce(((t,n)=>({...t,[n.groupType]:n.items.some((t=>{let{id:n}=t;return e.includes(n)}))})),{configure:!1,report:!1,plan:!1});var e}),[o]);if((0,er.kK)(e)||i)return(0,w.jsx)(u.l_,{to:WC.Y9});const s=a.report?WC.RS:a.plan?WC.wh:WC.y9;return MS()(n)?(0,w.jsx)(On.D8,{id:"Loading Programs..."}):(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{path:WC.y9,component:()=>(0,w.jsx)(IL,{programId:e})}),a.report&&(0,w.jsx)(vm,{path:WC.RS,component:()=>(0,w.jsx)(d7,{programId:e})}),a.plan&&(0,w.jsx)(vm,{path:WC.wh,component:()=>t?(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{exact:!0,path:WC.wh,component:()=>(0,w.jsx)(RM,{programId:e})}),(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:(0,xo.F_)(WC.wh,{programId:e})})})]}):(0,w.jsx)(h1,{programId:e})}),(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:(0,xo.F_)(s,{programId:e})})})]})},h7={api_host:$.default.posthog.host,autocapture:!1},f7=Z.ZP.div`
  display: flex;
  flex-direction: column;
  background-color: ${e=>{let{theme:t}=e;return t.color.surface.secondary}};
  min-height: 100%;

  .second-level-menu-tabs {
    margin: 0;
    background-color: white;
    z-index: ${ud.K.MapBar};
  }

  .map-v2__container {
    top: 45px; // 45px as secondary nav bar's height
  }
`,m7=()=>{const e=(0,h.T)(),t=(0,h.C)(S.Jt);(0,r.useEffect)((()=>{document.title="Sustainability insights - Regrow"}),[]);const i=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),o=(0,h.C)((e=>(0,Or.RU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),a=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS])));return r.useEffect((()=>{!t||i||a||o||e((0,HC.Ob)())}),[i,a,e,t,o]),(0,w.jsx)(ai.J$,{value:{fetcher:ZC(t),errorRetryCount:2},children:(0,w.jsxs)(UC,{options:h7,apiKey:$.default.posthog.apiKey,children:[(0,w.jsx)(KC,{}),(0,w.jsx)(f7,{children:(0,w.jsxs)(u.rs,{children:[(0,w.jsx)(vm,{path:WC.oA,component:p7}),(0,w.jsx)(vm,{path:WC.Y9,component:xS}),(0,w.jsx)(vm,{path:WC.d,component:vi}),(0,w.jsx)(vm,{isAdminOnly:!0,path:WC.Go,component:r.lazy((()=>Promise.all([n.e(525),n.e(125)]).then(n.bind(n,68125))))}),(0,w.jsx)(u.AW,{component:()=>(0,w.jsx)(u.l_,{to:WC.Y9})})]})})]})})},g7=e=>{let{children:t}=e;const n=(0,Lu.FD)();return(0,w.jsx)(f.eU,{value:n,children:t})},y7=()=>{const e=(0,r.useCallback)((async()=>{try{var e;const t=await fetch("/assets/app-config.js?t="+ +new Date),n=await t.text(),r=/app_version: '(.*)'/,[,i]=null!==(e=r.exec(n))&&void 0!==e?e:[];$.default.app_version!==i&&(0,Yn.c)({title:"\ud83d\ude80 Update",message:(0,w.jsx)(f._H,{id:"A new version of Regrow has been released",defaultMessage:"A new version of Regrow has been released. <a>Reload the page</a> to get the best of Regrow and to make sure everything works as expected.",values:{a:e=>(0,w.jsx)("a",{href:"",onClick:()=>(0,Gr.yP)(Gr.$$.RELOAD_PAGE,!0),children:e})}}),type:"info",autoClose:!1})}catch(ag){(0,C.e)(`Could not fetch or parse new config:${ag}`)}}),[]);(0,r.useEffect)((()=>{window.checkUpdate=e,setInterval(e,18e5),window.addEventListener("storage",(e=>{let{key:t,newValue:n}=e;t===Gr.$$.RELOAD_PAGE&&null!==n&&(window.location.reload(),(0,Gr.cW)(Gr.$$.RELOAD_PAGE))}))}),[])};var v7=function(e){var t=e.client,n=e.children,r=Ya(),i=ka.useContext(r),o=ka.useMemo((function(){return(0,ta.__assign)((0,ta.__assign)({},i),{client:t||i.client})}),[i,t]);return ya(o.client,46),ka.createElement(r.Provider,{value:o},n)};function b7(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return _7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _7(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x7(e,t,n){return t&&w7(e.prototype,t),n&&w7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var k7=function(){return"function"===typeof Symbol},C7=function(e){return k7()&&Boolean(Symbol[e])},S7=function(e){return C7(e)?Symbol[e]:"@@"+e};k7()&&!C7("observable")&&(Symbol.observable=Symbol("observable"));var M7=S7("iterator"),T7=S7("observable"),E7=S7("species");function P7(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function I7(e){var t=e.constructor;return void 0!==t&&null===(t=t[E7])&&(t=void 0),void 0!==t?t:B7}function O7(e){return e instanceof B7}function L7(e){L7.log?L7.log(e):setTimeout((function(){throw e}))}function R7(e){Promise.resolve().then((function(){try{e()}catch(ag){L7(ag)}}))}function j7(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=P7(t,"unsubscribe");n&&n.call(t)}}catch(ag){L7(ag)}}function D7(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function A7(e,t,n){e._state="running";var r=e._observer;try{var i=P7(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(D7(e),!i)throw n;i.call(r,n);break;case"complete":D7(e),i&&i.call(r)}}catch(ag){L7(ag)}"closed"===e._state?j7(e):"running"===e._state&&(e._state="ready")}function N7(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void R7((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(A7(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void A7(e,t,n);e._queue.push({type:t,value:n})}}var F7=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new z7(this);try{this._cleanup=t.call(void 0,n)}catch(ag){n.error(ag)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(D7(this),j7(this))},x7(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),z7=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){N7(this._subscription,"next",e)},t.error=function(e){N7(this._subscription,"error",e)},t.complete=function(){N7(this._subscription,"complete")},x7(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),B7=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new F7(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(ag){r(ag),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(I7(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(ag){return n.error(ag)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(I7(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(ag){return n.error(ag)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=I7(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(ag){return n.error(ag)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=I7(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=I7(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(ag){return r.error(ag)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[T7]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=P7(t,T7);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return O7(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(C7("iterator")&&(r=P7(t,M7)))return new n((function(e){R7((function(){if(!e.closed){for(var n,i=b7(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){R7((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"===typeof this?this:e)((function(e){R7((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},x7(e,null,[{key:E7,get:function(){return this}}]),e}();function U7(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw va(71,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(ya(1===r.length,72,r.length),n=r[0].name.value),(0,ta.__assign)((0,ta.__assign)({},e),{definitions:(0,ta.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function $7(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function V7(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"===typeof t)return t(n);var r=t&&t[n];return ya(r,73,n),r||null;default:return null}}k7()&&Object.defineProperty(B7,Symbol("extensions"),{value:{symbol:T7,hostReportError:L7},configurable:!0});var q7,Z7=Object.assign((function(e){return JSON.stringify(e,H7)}),{reset:function(){q7=new ps(fs.canonicalStringify||1e3)}});function H7(e,t){if(t&&"object"===typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(G7))return t;var i=JSON.stringify(r),o=q7.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=q7.get(a)||r,q7.set(i,o),q7.set(a,o)}var s=Object.create(n);return o.forEach((function(e){s[e]=t[e]})),s}}return t}function G7(e,t,n){return 0===t||n[t-1]<=e}function W7(e){return{__ref:String(e)}}function Y7(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function K7(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return K7(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return K7(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw va(82,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&gs("canonicalStringify",(function(){return q7.size})),Z7.reset();var X7=["connection","include","skip","client","rest","export","nonreactive"],J7=Z7,Q7=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(J7(i),")")}return n.connection.key}var o=e;if(t){var a=J7(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===X7.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(J7(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=J7;return J7=e,t}});function e9(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return K7(n,r,i,t)})),n}return null}function t9(e){return e.alias?e.alias.value:e.name.value}function n9(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++){if(r9(l=o[i])){if("__typename"===l.name.value)return e[t9(l)]}else r?r.push(l):r=[l]}if("string"===typeof e.__typename)return e.__typename;if(r)for(var a=0,s=r;a<s.length;a++){var l,c=n9(e,V7(l=s[a],n).selectionSet,n);if("string"===typeof c)return c}}function r9(e){return"Field"===e.kind}function i9(e){ya(e&&"Document"===e.kind,74);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw va(75,e.kind);return e}));return ya(t.length<=1,76,t.length),e}function o9(e){return i9(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function a9(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function s9(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function l9(e){var t=o9(e);return ya(t&&"query"===t.operation,77),t}function c9(e){var t;i9(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw va(81)}function u9(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&K7(t,e.variable.name,e.defaultValue)})),t}function d9(e,t){return t?t(e):B7.of()}function p9(e){return"function"===typeof e?new f9(e):e}function h9(e){return e.request.length<=1}var f9=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return B7.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(p9).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i,o=p9(n),a=p9(r||new e(d9));return i=h9(o)&&h9(a)?new e((function(e){return t(e)?o.request(e)||B7.of():a.request(e)||B7.of()})):new e((function(e,n){return t(e)?o.request(e,n)||B7.of():a.request(e,n)||B7.of()})),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=(0,ta.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"===typeof e?(0,ta.__assign)((0,ta.__assign)({},n),e(n)):(0,ta.__assign)((0,ta.__assign)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,ta.__assign)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?a9(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw va(43,i)}return e}(t))))||B7.of()},e.concat=function(t,n){var r=p9(t);if(h9(r))return!1!==globalThis.__DEV__&&ya.warn(35,r),r;var i,o=p9(n);return i=h9(o)?new e((function(e){return r.request(e,(function(e){return o.request(e)||B7.of()}))||B7.of()})):new e((function(e,t){return r.request(e,(function(e){return o.request(e,t)||B7.of()}))||B7.of()})),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(d9)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw va(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();function m9(e,t){if(!Boolean(e))throw new Error(t)}const g9=10,y9=2;function v9(e){return b9(e,[])}function b9(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"===typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"===typeof t?t:b9(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>y9)return"[Array]";const n=Math.min(g9,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(b9(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`);return"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>y9)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((e=>{let[n,r]=e;return n+": "+b9(r,t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}Symbol.toStringTag;Symbol.toStringTag;const _9={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w9=new Set(Object.keys(_9));function x9(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&w9.has(t)}var k9,C9;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(k9||(k9={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(C9||(C9={}));const S9=Object.freeze({});function M9(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_9;const r=new Map;for(const y of Object.values(C9))r.set(y,T9(t,y));let i,o,a,s=Array.isArray(e),l=[e],c=-1,u=[],d=e;const p=[],h=[];do{c++;const e=c===l.length,y=e&&0!==u.length;if(e){if(o=0===h.length?void 0:p[p.length-1],d=a,a=h.pop(),y)if(s){d=d.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of u)d[e]=t}c=i.index,l=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?c:l[c],d=a[o],null===d||void 0===d)continue;p.push(o)}let v;if(!Array.isArray(d)){var f,m;x9(d)||m9(!1,`Invalid AST Node: ${v9(d)}.`);const n=e?null===(f=r.get(d.kind))||void 0===f?void 0:f.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(v=null===n||void 0===n?void 0:n.call(t,d,o,a,p,h),v===S9)break;if(!1===v){if(!e){p.pop();continue}}else if(void 0!==v&&(u.push([o,v]),!e)){if(!x9(v)){p.pop();continue}d=v}}var g;if(void 0===v&&y&&u.push([o,d]),e)p.pop();else i={inArray:s,index:c,keys:l,edits:u,prev:i},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],c=-1,u=[],a&&h.push(a),a=d}while(void 0!==i);return 0!==u.length?u[u.length-1][1]:e}function T9(e,t){const n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function E9(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;ya(n&&1===n.length,68,r);var i=n[0];ya(i.name&&"if"===i.name.value,69,r);var o=i.value;ya(o&&("Variable"===o.kind||"BooleanValue"===o.kind),70,r),t.push({directive:e,ifArgument:i})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],ya(void 0!==i,67,n.name.value)):i=r.value.value,"skip"===n.name.value?!i:i}))}function P9(e,t,n){var r=new Set(e),i=r.size;return M9(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return S9}}),n?!r.size:r.size<i}function I9(e){return e&&P9(["client","export"],e,!0)}var O9=function(e,t){var n;try{n=JSON.stringify(e)}catch(ag){var r=va(39,t,ag.message);throw r.parseError=ag,r}return n};function L9(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function l(){r=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return new Promise((function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])}))}};return Ea&&(c[Symbol.asyncIterator]=function(){return this}),c}function R9(e){var t={next:function(){return e.read()}};return Ea&&(t[Symbol.asyncIterator]=function(){return this}),t}function j9(e){var t=e;if(function(e){return!!e.body}(e)&&(t=e.body),function(e){return!(!Ea||!e[Symbol.asyncIterator])}(t))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return R9(t.getReader());if(function(e){return!!e.stream}(t))return R9(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,n){e.then((function(e){t({value:e,done:!1})})).catch(n)})))}};return Ea&&(n[Symbol.asyncIterator]=function(){return this}),n}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return L9(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var D9=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},A9=Object.prototype.hasOwnProperty;function N9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F9(e)}function F9(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new B9,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var z9=function(e,t,n){return this.merge(e[n],t[n])},B9=function(){function e(e){void 0===e&&(e=z9),this.reconciler=e,this.isObject=Ka,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Ka(t)&&Ka(e)?(Object.keys(t).forEach((function(i){if(A9.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,ta.__spreadArray)([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Ka(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,ta.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function U9(e){return"incremental"in e}function $9(e){return Ka(e)&&"payload"in e}function V9(e,t){var n=e,r=new B9;return U9(t)&&As(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}n=r.merge(n,t)})),n}var q9=Object.prototype.hasOwnProperty;function Z9(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function H9(e,t){if(e.status>=300){D9(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function G9(e){return 9===e||32===e}const W9=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Y9(e){return K9[e.charCodeAt(0)]}const K9=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];const X9={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>J9(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=eee("(",J9(e.variableDefinitions,", "),")"),n=J9([e.operation,J9([e.name,t]),J9(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:i}=e;return t+": "+n+eee(" = ",r)+eee(" ",J9(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return Q9(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:i,selectionSet:o}=e;const a=eee("",t,": ")+n;let s=a+eee("(",J9(r,", "),")");return s.length>80&&(s=a+eee("(\n",tee(J9(r,"\n")),"\n)")),J9([s,J9(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+eee(" ",J9(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return J9(["...",eee("on ",t),J9(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:i,selectionSet:o}=e;return`fragment ${t}${eee("(",J9(r,", "),")")} on ${n} ${eee("",J9(i," ")," ")}`+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?function(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||G9(e.charCodeAt(0)))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),c=s||l,u=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||c||o||a);let d="";const p=i&&G9(e.charCodeAt(0));return(u&&!p||o)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(t):`"${t.replace(W9,Y9)}"`}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+J9(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+J9(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+eee("(",J9(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return eee("",t,"\n")+J9(["schema",J9(n," "),Q9(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return eee("",t,"\n")+J9(["scalar",n,J9(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return eee("",t,"\n")+J9(["type",n,eee("implements ",J9(r," & ")),J9(i," "),Q9(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:i,directives:o}=e;return eee("",t,"\n")+n+(nee(r)?eee("(\n",tee(J9(r,"\n")),"\n)"):eee("(",J9(r,", "),")"))+": "+i+eee(" ",J9(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:i,directives:o}=e;return eee("",t,"\n")+J9([n+": "+r,eee("= ",i),J9(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return eee("",t,"\n")+J9(["interface",n,eee("implements ",J9(r," & ")),J9(i," "),Q9(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:i}=e;return eee("",t,"\n")+J9(["union",n,J9(r," "),eee("= ",J9(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:i}=e;return eee("",t,"\n")+J9(["enum",n,J9(r," "),Q9(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return eee("",t,"\n")+J9([n,J9(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:i}=e;return eee("",t,"\n")+J9(["input",n,J9(r," "),Q9(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:i,locations:o}=e;return eee("",t,"\n")+"directive @"+n+(nee(r)?eee("(\n",tee(J9(r,"\n")),"\n)"):eee("(",J9(r,", "),")"))+(i?" repeatable":"")+" on "+J9(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return J9(["extend schema",J9(t," "),Q9(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return J9(["extend scalar",t,J9(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return J9(["extend type",t,eee("implements ",J9(n," & ")),J9(r," "),Q9(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return J9(["extend interface",t,eee("implements ",J9(n," & ")),J9(r," "),Q9(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return J9(["extend union",t,J9(n," "),eee("= ",J9(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return J9(["extend enum",t,J9(n," "),Q9(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return J9(["extend input",t,J9(n," "),Q9(r)]," ")}}};function J9(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Q9(e){return eee("{\n",tee(J9(e,"\n")),"\n}")}function eee(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function tee(e){return eee("  ",e.replace(/\n/g,"\n  "))}function nee(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var ree,iee=Object.assign((function(e){var t=ree.get(e);return t||(t=function(e){return M9(e,X9)}(e),ree.set(e,t)),t}),{reset:function(){ree=new ds(fs.print||2e3)}});iee.reset(),!1!==globalThis.__DEV__&&gs("print",(function(){return ree?ree.size:0}));var oee={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},aee=function(e,t){return t(e)};function see(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach((function(e){i=(0,ta.__assign)((0,ta.__assign)((0,ta.__assign)({},i),e.options),{headers:(0,ta.__assign)((0,ta.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,ta.__assign)((0,ta.__assign)({},o),e.http)})),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]=e[t]})),n}var r=Object.create(null);Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(r).forEach((function(e){i[r[e].originalName]=r[e].value})),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,l=e.variables,c=e.query,u={operationName:a,variables:l};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(c,iee)),{options:i,body:u}}function lee(e){return new B7((function(t){t.error(e)}))}var cee={kind:C9.FIELD,name:{kind:C9.NAME,value:"__typename"}};function uee(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===C9.FRAGMENT_SPREAD&&uee(t[e.name.value],t)}))}function dee(e){return uee(o9(e)||function(e){ya("Document"===e.kind,78),ya(e.definitions.length<=1,79);var t=e.definitions[0];return ya("FragmentDefinition"===t.kind,80),t}(e),$7(s9(e)))?null:e}function pee(e){var t=new Map,n=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))})),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach((function(t,n){n(e)&&(r=t)})),r}}function hee(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function fee(e,t){i9(t);for(var n=hee(""),r=hee(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Ds(i)){if(i.kind===C9.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===C9.FRAGMENT_DEFINITION)return r(i.name.value)}return!1!==globalThis.__DEV__&&ya.error(83),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===C9.OPERATION_DEFINITION&&++o;var s=pee(e),l=function(e){return As(e)&&e.map(s).some((function(e){return e&&e.remove}))},c=new Map,u=!1,d={enter:function(e){if(l(e.directives))return u=!0,null}},p=M9(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(l(e.directives))return u=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){c.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===c.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===C9.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,u=!0,null):void 0}},Directive:{leave:function(e){if(s(e))return u=!0,null}}});if(!u)return t;var h=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){h(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},f=new Set;p.definitions.forEach((function(e){e.kind===C9.OPERATION_DEFINITION?h(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){f.add(e)})):e.kind!==C9.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||f.add(e.name.value)})),f.forEach((function(e){h(r(e)).fragmentSpreads.forEach((function(e){f.add(e)}))}));var m={enter:function(e){if(t=e.name.value,!f.has(t)||r(t).removed)return null;var t}};return dee(M9(p,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=h(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,ta.__assign)((0,ta.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var mee=Object.assign((function(e){return M9(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==C9.OPERATION_DEFINITION){var r=e.selections;if(r)if(!r.some((function(e){return r9(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(r9(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,ta.__assign)((0,ta.__assign)({},e),{selections:(0,ta.__spreadArray)((0,ta.__spreadArray)([],r,!0),[cee],!1)})}}}}})}),{added:function(e){return e===cee}});function gee(e){return"query"===c9(e).operation?e:M9(e,{OperationDefinition:{enter:function(e){return(0,ta.__assign)((0,ta.__assign)({},e),{operation:"query"})}}})}function yee(e){return i9(e),fee([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var vee=da((function(){return fetch})),bee=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?aee:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,c=e.includeUnusedVariables,u=void 0!==c&&c,d=(0,ta.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"===typeof fetch)throw va(37)}(r||vee);var p={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new f9((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"===typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,c=s.name,d=s.version;c&&(a["apollographql-client-name"]=c),d&&(a["apollographql-client-version"]=d)}var h=(0,ta.__assign)((0,ta.__assign)({},a),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(P9(["client"],e.query)){var m=yee(e.query);if(!m)return lee(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var g,y=see(e,o,oee,p,f),v=y.options,b=y.body;b.variables&&!u&&(b.variables=function(e,t){var n=(0,ta.__assign)({},e),r=new Set(Object.keys(e));return M9(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach((function(e){delete n[e]})),n}(b.variables,e.query)),v.signal||"undefined"===typeof AbortController||(g=new AbortController,v.signal=g.signal);var _=function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}(c9(e.query)),w=P9(["defer"],e.query);if(l&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(v.method="GET"),w||_){v.headers=v.headers||{};var x="multipart/mixed;";_&&w&&!1!==globalThis.__DEV__&&ya.warn(38),_?x+="boundary=graphql;subscriptionSpec=1.0,application/json":w&&(x+="deferSpec=20220824,application/json"),v.headers.accept=x}if("GET"===v.method){var k=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=O9(t.variables,"Variables map")}catch(S){return{parseError:S}}r("variables",i)}if(t.extensions){var o=void 0;try{o=O9(t.extensions,"Extensions map")}catch(S){return{parseError:S}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,b),C=k.newURI,S=k.parseError;if(S)return lee(S);t=C}else try{v.body=O9(b,"Payload")}catch(S){return lee(S)}return new B7((function(n){var i=r||da((function(){return fetch}))||vee,o=n.next.bind(n);return i(t,v).then((function(t){var n;e.setContext({response:t});var r,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return(0,ta.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S;return(0,ta.__generator)(this,(function(M){switch(M.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(S=e.headers)||void 0===S?void 0:S.get("content-type"),i="boundary=",o=(null===r||void 0===r?void 0:r.includes(i))?null===r||void 0===r?void 0:r.substring((null===r||void 0===r?void 0:r.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",l=j9(e),c=!0,M.label=1;case 1:return c?[4,l.next()]:[3,3];case 2:for(u=M.sent(),d=u.value,p=u.done,h="string"===typeof d?d:n.decode(d),f=s.length-a.length+1,c=!p,m=(s+=h).indexOf(a,f);m>-1;){if(g=void 0,k=[s.slice(0,m),s.slice(m+a.length)],s=k[1],y=(g=k[0]).indexOf("\r\n\r\n"),v=Z9(g.slice(0,y)),(b=v["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(_=g.slice(y))if(w=H9(e,_),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if($9(w)){if(x={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];x=(0,ta.__assign)({},w.payload)}"errors"in w&&(x=(0,ta.__assign)((0,ta.__assign)({},x),{extensions:(0,ta.__assign)((0,ta.__assign)({},"extensions"in x?x.extensions:null),(C={},C[Xa]=w.errors,C))})),t(x)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):(r=e,function(e){return e.text().then((function(t){return H9(e,t)})).then((function(t){return Array.isArray(t)||q9.call(t,"data")||q9.call(t,"errors")||D9(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(t).then(o)})).then((function(){g=void 0,n.complete()})).catch((function(e){g=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){g&&g.abort()}}))}))},_ee=f9.execute,wee=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,bee(t).request)||this;return n.options=t,n}return(0,ta.__extends)(t,e),t}(f9);const xee=()=>Object.create(null),{forEach:kee,slice:Cee}=Array.prototype,{hasOwnProperty:See}=Object.prototype;class Mee{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xee;this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return kee.call(e,(e=>t=t.getChildTrie(e))),See.call(t,"data")?t.data:t.data=this.makeData(Cee.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(Cee.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new Mee(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}const Tee=()=>Object.create(null),{forEach:Eee,slice:Pee}=Array.prototype,{hasOwnProperty:Iee}=Object.prototype;class Oee{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tee;this.weakness=e,this.makeData=t}lookup(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.lookupArray(t)}lookupArray(e){let t=this;return Eee.call(e,(e=>t=t.getChildTrie(e))),Iee.call(t,"data")?t.data:t.data=this.makeData(Pee.call(e))}peek(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.peekArray(t)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=this.weakness&&Lee(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&Lee(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new Oee(this.weakness,this.makeData)),n}}function Lee(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let Ree=null;const jee={};let Dee=1;function Aee(e){try{return e()}catch(t){}}const Nee="@wry/context:Slot",Fee=Aee((()=>globalThis))||Aee((()=>global))||Object.create(null),zee=Fee[Nee]||Array[Nee]||function(e){try{Object.defineProperty(Fee,Nee,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Dee++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Ree;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===jee)break;return e!==Ree&&(Ree.slots[this.id]=t),!0}return Ree&&(Ree.slots[this.id]=jee),!1}getValue(){if(this.hasValue())return Ree.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Ree;Ree={parent:o,slots:i};try{return t.apply(r,n)}finally{Ree=o}}static bind(e){const t=Ree;return function(){const n=Ree;try{return Ree=t,e.apply(this,arguments)}finally{Ree=n}}}static noContext(e,t,n){if(!Ree)return e.apply(n,t);{const r=Ree;try{return Ree=null,e.apply(n,t)}finally{Ree=r}}}}),{bind:Bee,noContext:Uee}=zee;const $ee=new zee;const{hasOwnProperty:Vee}=Object.prototype,qee=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function Zee(e){const{unsubscribe:t}=e;"function"===typeof t&&(e.unsubscribe=void 0,t())}const Hee=[],Gee=100;function Wee(e,t){if(!e)throw new Error(t||"assertion failure")}function Yee(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Kee(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Xee(e){return e.slice(0)}class Jee{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Jee.count}peek(){if(1===this.value.length&&!tte(this))return Qee(this),this.value[0]}recompute(e){return Wee(!this.recomputing,"already recomputing"),Qee(this),tte(this)?function(e,t){lte(e),$ee.withValue(e,ete,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{Zee(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(ag){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,tte(e))return;rte(e)}(e);return Kee(e.value)}(this,e):Kee(this.value)}setDirty(){this.dirty||(this.dirty=!0,nte(this),Zee(this))}dispose(){this.setDirty(),lte(this),ite(this,((e,t)=>{e.setDirty(),cte(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Hee.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(qee(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),Hee.push(this.deps),this.deps=null)}}function Qee(e){const t=$ee.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tte(e)?ote(t,e):ate(t,e),t}function ete(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Xee(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Yee(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(ra){}}catch(ag){e.value[1]=ag}e.recomputing=!1}function tte(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function nte(e){ite(e,ote)}function rte(e){ite(e,ate)}function ite(e,t){const n=e.parents.size;if(n){const r=qee(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function ote(e,t){Wee(e.childValues.has(t)),Wee(tte(t));const n=!tte(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Hee.pop()||new Set;e.dirtyChildren.add(t),n&&nte(e)}function ate(e,t){Wee(e.childValues.has(t)),Wee(!tte(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,Xee(t.value)):Yee(n,t.value)||e.setDirty(),ste(e,t),tte(e)||rte(e)}function ste(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Hee.length<Gee&&Hee.push(n),e.dirtyChildren=null))}function lte(e){e.childValues.size>0&&e.childValues.forEach(((t,n)=>{cte(e,n)})),e.forgetDeps(),Wee(null===e.dirtyChildren)}function cte(e,t){t.parents.delete(e),e.childValues.delete(t),ste(e,t)}Jee.count=0;const ute={setDirty:!0,dispose:!0,forget:!0};function dte(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=$ee.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(Zee(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&Vee.call(ute,n)?n:"setDirty";qee(r).forEach((e=>e[i]())),t.delete(e),Zee(r)}},r}let pte;function hte(){const e=pte||(pte=new Oee("function"===typeof WeakMap));for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.lookupArray(n)}const fte=new Set;function mte(e){let{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=hte,normalizeResult:i,subscribe:o,cache:a=ls}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);const s="function"===typeof a?new a(t,(e=>e.dispose())):a,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new Jee(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),fte.add(s),$ee.hasValue()||(fte.forEach((e=>e.clean())),fte.clear()),l};function c(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function gte(e){return e}var yte=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=Ma?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(gte,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Mee(Sa);this.performWork=mte(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return ya(Array.isArray(r),66),n.lookupArray(r)},max:fs["documentTransform.cache"],cache:as})}},e.prototype.performWork=function(e){return i9(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}();function vte(e,t,n){return new B7((function(r){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then((function(){return r.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function bte(e){return As(_te(e))}function _te(e){var t=As(e.errors)?e.errors.slice(0):[];return U9(e)&&As(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function wte(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function xte(e){function t(t){Object.defineProperty(e,t,{value:B7})}return Ta&&Symbol.species&&t(Symbol.species),t("@@species"),e}function kte(e){return e&&"function"===typeof e.then}var Cte=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),wte(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),wte(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?kte(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),wte(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new B7(t)]),kte(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,ta.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(B7);xte(Cte);var Ste=Object.prototype.toString;function Mte(e){return Tte(e)}function Tte(e,t){switch(Ste.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=Tte(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=Tte(e[n],t)})),r;default:return e}}function Ete(e,t,n,r){var i=t.data,o=(0,ta.__rest)(t,["data"]),a=n.data,s=(0,ta.__rest)(n,["data"]);return Ba(o,s)&&Pte(c9(e).selectionSet,i,a,{fragmentMap:$7(s9(e)),variables:r})}function Pte(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!E9(e,r.variables))return!0;if(Ite(e))return!0;if(r9(e)){var o=t9(e),a=t&&t[o],s=n&&n[o],l=e.selectionSet;if(!l)return Ba(a,s);var c=Array.isArray(a),u=Array.isArray(s);if(c!==u)return!1;if(c&&u){var d=a.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!Pte(l,a[p],s[p],r))return!1;return!0}return Pte(l,a,s,r)}var h=V7(e,r.fragmentMap);return h?!!Ite(h)||Pte(h.selectionSet,t,n,r):void 0}))}function Ite(e){return!!e.directives&&e.directives.some(Ote)}function Ote(e){return"nonreactive"===e.name.value}var Lte=Object.assign,Rte=Object.hasOwnProperty,jte=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=Ate)}catch(t){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.waitForOwnResult=Fte(i.fetchPolicy),o.isTornDown=!1;var a=n.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,l=void 0===s?"cache-first":s,c=i.fetchPolicy,u=void 0===c?l:c,d=i.initialFetchPolicy,p=void 0===d?"standby"===u?l:u:d;o.options=(0,ta.__assign)((0,ta.__assign)({},i),{initialFetchPolicy:p,fetchPolicy:u}),o.queryId=r.queryId||n.generateQueryId();var h=o9(o.query);return o.queryName=h&&h.name&&h.name.value,o}return(0,ta.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Ja.ready,r=(0,ta.__assign)((0,ta.__assign)({},t),{loading:es(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(Fte(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),za(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==Ja.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Ja.ready,r.loading=!1)):r.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Nte(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Ete(this.query,this.last.result,e,this.variables):!za(this.last.result,e))||t&&!za(this.last.variables,t))},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||za(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Rte.call(e,"variables")){var i=l9(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&ya.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!za(this.options.variables,e)&&(n.variables=this.options.variables=(0,ta.__assign)((0,ta.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Ja.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,ta.__assign)((0,ta.__assign)({},e.query?e:(0,ta.__assign)((0,ta.__assign)((0,ta.__assign)((0,ta.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,ta.__assign)((0,ta.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=Ja.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,Ja.fetchMore).then((function(s){return t.queryManager.removeQuery(r),i.networkStatus===Ja.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s})).finally((function(){a.has(t.query)||Dte(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&ya.error(21,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=Ha(this.options,e||{});Lte(this.options,t)},t.prototype.setVariables=function(e){return za(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Ja.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){ya(n,22),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&(es(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Ja.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!za(t,this.last.variables)&&(n=void 0),this.last=(0,ta.__assign)({result:this.queryManager.assumeImmutableResults?e:Mte(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===Ja.refetch||t===Ja.fetchMore||t===Ja.poll,i=this.options.variables,o=this.options.fetchPolicy,a=Ha(this.options,e||{}),s=r?a:Lte(this.options,a),l=this.transformDocument(s.query);this.lastQuery=l,r||(this.updatePolling(),e&&e.variables&&!za(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=Ja.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Fte(s.fetchPolicy));var c=function(){n.concast===p&&(n.waitForOwnResult=!1)},u=s.variables&&(0,ta.__assign)({},s.variables),d=this.fetch(s,t,l),p=d.concast,h=d.fromLink,f={next:function(e){za(n.variables,u)&&(c(),n.reportResult(e,u))},error:function(e){za(n.variables,u)&&(c(),n.reportError(e,u))}};return r||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=f),p.addObserver(f),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&wte(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=(0,ta.__assign)((0,ta.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Ja.error,loading:!1});this.updateLastResult(n,t),wte(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(B7);function Dte(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function Ate(e){!1!==globalThis.__DEV__&&ya.error(23,e.message,e.stack)}function Nte(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&ya.debug(24,e)}function Fte(e){return"network-only"===e||"no-cache"===e||"standby"===e}function zte(e){return e.kind===C9.FIELD||e.kind===C9.FRAGMENT_SPREAD||e.kind===C9.INLINE_FRAGMENT}xte(jte);var Bte=new zee,Ute=new WeakMap;function $te(e){var t=Ute.get(e);return t||Ute.set(e,t={vars:new Set,dep:dte()}),t}function Vte(e){$te(e).vars.forEach((function(t){return t.forgetCache(e)}))}function qte(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){$te(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Bte.getValue();s&&(i(s),$te(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),$te(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Zte=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=N9(t.resolvers,e)})):this.resolvers=N9(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,ta.__awaiter)(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,ta.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,ta.__assign)((0,ta.__assign)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return P9(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return yee(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,ta.__assign)((0,ta.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,ta.__awaiter)(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,ta.__generator)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,ta.__assign)((0,ta.__assign)({},t),e.exportedVariables)}))]:[2,(0,ta.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return M9(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return S9}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:gee(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,ta.__awaiter)(this,arguments,void 0,(function(e,t,n,r,i,o){var a,s,l,c,u,d,p,h,f,m;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,ta.__generator)(this,(function(g){return a=c9(e),s=s9(e),l=$7(s),c=this.collectSelectionsToResolve(a,l),u=a.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",h=(p=this).cache,f=p.client,m={fragmentMap:l,context:(0,ta.__assign)((0,ta.__assign)({},n),{cache:h,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return(0,ta.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,l,c=this;return(0,ta.__generator)(this,(function(u){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],l=function(e){return(0,ta.__awaiter)(c,void 0,void 0,(function(){var l,c;return(0,ta.__generator)(this,(function(u){return(t||r.selectionsToResolve.has(e))&&E9(e,a)?r9(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;"undefined"!==typeof t&&s.push(((n={})[t9(e)]=t,n))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(l=i[e.name.value],ya(l,18,e.name.value)):l=e,l&&l.typeCondition&&(c=l.typeCondition.name.value,r.fragmentMatcher(n,c,o))?[2,this.resolveSelectionSet(l.selectionSet,t,n,r).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return F9(s)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return(0,ta.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,d,p,h=this;return(0,ta.__generator)(this,(function(f){return n?(i=r.variables,o=e.name.value,a=t9(e),s=o!==a,l=n[a]||n[o],c=Promise.resolve(l),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?o:a])&&(c=Promise.resolve(Bte.withValue(this.cache,p,[n,e9(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then((function(n){var i,o;if(void 0===n&&(n=l),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),M9(i,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach((function(e){n(e)&&zte(e)&&o.add(e)}))},FragmentSpread:function(r,i,a,s,l){var c=t[r.name.value];ya(c,19,r.name.value);var u=e(c);u.size>0&&(l.forEach((function(e){n(e)&&zte(e)&&o.add(e)})),o.add(r),u.forEach((function(e){o.add(e)})))}})}return r.get(i)}(e)},e}(),Hte=new(Sa?WeakMap:Map);function Gte(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return Hte.set(e,(Hte.get(e)+1)%1e15),n.apply(this,arguments)})}function Wte(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Yte=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Hte.has(n)||(Hte.set(n,0),Gte(n,"evict"),Gte(n,"modify"),Gte(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Ja.loading;return this.variables&&this.networkStatus!==Ja.loading&&!za(this.variables,e.variables)&&(t=Ja.setVariables),za(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Wte(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&za(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;(!e||e.complete||(null===(t=this.observableQuery)||void 0===t?void 0:t.options.returnPartialData)||r&&r.complete)&&(this.updateLastDiff(e),this.dirty||za(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Dte(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Wte(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(es(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,ta.__assign)((0,ta.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&za(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Hte.get(this.cache)&&za(t,n.variables)&&za(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new B9,a=As(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&As(e.incremental)){var s=V9(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Kte(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:Hte.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&za(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ja.ready},e.prototype.markError=function(e){return this.networkStatus=Ja.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Kte(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!bte(e);return!r&&n&&e.data&&(r=!0),r}var Xte=Object.prototype.hasOwnProperty,Jte=Object.create(null),Qte=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=void 0!==o&&o,s=e.onBroadcast,l=e.ssrMode,c=void 0!==l&&l,u=e.clientAwareness,d=void 0===u?{}:u,p=e.localState,h=e.assumeImmutableResults,f=void 0===h?!!t.assumeImmutableResults:h,m=e.defaultContext,g=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ds(fs["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Mee(!1);var y=new yte((function(e){return g.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,this.localState=p||new Zte({cache:t}),this.ssrMode=c,this.assumeImmutableResults=f,this.documentTransform=i?y.concat(i).concat(y):y,this.defaultContext=m||Object.create(null),(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(va(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,ta.__awaiter)(this,arguments,void 0,(function(e){var t,n,r,i,o,a,s,l=e.mutation,c=e.variables,u=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,h=void 0===p?[]:p,f=e.awaitRefetchQueries,m=void 0!==f&&f,g=e.update,y=e.onQueryUpdated,v=e.fetchPolicy,b=void 0===v?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":v,_=e.errorPolicy,w=void 0===_?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":_,x=e.keepRootFields,k=e.context;return(0,ta.__generator)(this,(function(e){switch(e.label){case 0:return ya(l,26),ya("network-only"===b||"no-cache"===b,27),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,c=this.getVariables(l,c),n?[4,this.localState.addExportedVariables(l,c,k)]:[3,2];case 1:c=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:c,loading:!0,error:null}),i=u&&this.markMutationOptimistic(u,{mutationId:t,document:l,variables:c,fetchPolicy:b,errorPolicy:w,context:k,updateQueries:d,update:g,keepRootFields:x}),this.broadcastQueries(),o=this,[2,new Promise((function(e,n){return vte(o.getObservableFromLink(l,(0,ta.__assign)((0,ta.__assign)({},k),{optimisticResponse:i?u:void 0}),c,!1),(function(e){if(bte(e)&&"none"===w)throw new Qa({graphQLErrors:_te(e)});r&&(r.loading=!1,r.error=null);var n=(0,ta.__assign)({},e);return"function"===typeof h&&(h=h(n)),"ignore"===w&&bte(n)&&delete n.errors,o.markMutationResult({mutationId:t,result:n,document:l,variables:c,fetchPolicy:b,errorPolicy:w,context:k,update:g,updateQueries:d,awaitRefetchQueries:m,refetchQueries:h,removeOptimistic:i?t:void 0,onQueryUpdated:y,keepRootFields:x})})).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){r&&(r.loading=!1,r.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),n(e instanceof Qa?e:new Qa({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Kte(r,e.errorPolicy)){if(U9(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),U9(r)&&As(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=V9(a.result,r)),"undefined"!==typeof s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach((function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&Xte.call(l,s)){var c=l[s],u=n.queries.get(o),d=u.document,p=u.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var m=c(f,{mutationResult:r,queryName:d&&a9(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update,s=!function(e){return U9(e)||function(e){return"hasNext"in e&&"data"in e}(e)}(r)||U9(r)&&!r.hasNext;if(a){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=(0,ta.__assign)((0,ta.__assign)({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}s&&a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!s||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables,{IGNORE:Jte}):e;return r!==Jte&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,ta.__assign)((0,ta.__assign)({},t),{result:{data:r}}),e)}catch(i){!1!==globalThis.__DEV__&&ya.error(i)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:I9(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:P9(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:fee([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:u9(o9(e)),asQuery:(0,ta.__assign)((0,ta.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,ta.__assign)((0,ta.__assign)({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,ta.__assign)((0,ta.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);"undefined"===typeof(e=(0,ta.__assign)((0,ta.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new Yte(this),r=new jte({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),ya(e.query,28),ya("Document"===e.query.kind,29),ya(!e.returnPartialData,30),ya(!e.pollInterval,31),this.fetchQuery(t,(0,ta.__assign)((0,ta.__assign)({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(va(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Ja.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?r.set(e,!1):!function(e){return Ka(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?Ka(e)&&e.query&&i.add(e):r.set(t.transform(e),!1)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=fa("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new jte({queryManager:t,queryInfo:i,options:(0,ta.__assign)((0,ta.__assign)({},e),{fetchPolicy:"network-only"})});ya(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),!1!==globalThis.__DEV__&&r.size&&r.forEach((function(e,t){e||!1!==globalThis.__DEV__&&ya.warn("string"===typeof t?33:34,t)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,l=void 0===s?{}:s;n=this.transform(n),a=this.getVariables(n,a);var c=function(e){return t.getObservableFromLink(n,l,e).map((function(i){"no-cache"!==r&&(Kte(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=bte(i),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[Xa])}(i);if(a||s){var l={};if(a&&(l.graphQLErrors=i.errors),s&&(l.protocolErrors=i.extensions[Xa]),"none"===o||s)throw new Qa(l)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,l).then(c);return new B7((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.getDocumentInfo(e),l=s.serverQuery,c=s.clientQuery;if(l){var u=this.inFlightLinkObservables,d=this.link,p={query:l,variables:n,operationName:a9(l)||void 0,context:this.prepareContext((0,ta.__assign)((0,ta.__assign)({},t),{forceFetch:!r}))};if(t=p.context,r){var h=iee(l),f=Z7(n),m=u.lookup(h,f);if(!(o=m.observable)){var g=new Cte([_ee(d,p)]);o=m.observable=g,g.beforeNext((function(){u.remove(h,f)}))}}else o=new Cte([_ee(d,p)])}else o=new Cte([B7.of({data:{}})]),t=this.prepareContext(t);return c&&(o=vte(o,(function(e){return a.localState.runResolvers({document:c,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return vte(this.getObservableFromLink(i,n.context,n.variables),(function(o){var a=_te(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new Qa({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:Ja.ready};return s&&"ignore"!==n.errorPolicy&&(l.errors=a,l.networkStatus=Ja.error),l}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Qa({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=Ja.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),l=this.getQuery(e),c=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?c&&c.fetchPolicy||"cache-first":u,p=t.errorPolicy,h=void 0===p?c&&c.errorPolicy||"none":p,f=t.returnPartialData,m=void 0!==f&&f,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,b=void 0===v?{}:v,_=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:y,context:b}),w=function(e){_.variables=e;var r=i.fetchQueryByPolicy(l,_,n);return"standby"!==_.fetchPolicy&&r.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),r},x=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){x(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new Cte(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then((function(e){return e.sources}))),a=!0;else{var k=w(_.variables);a=k.fromLink,o=new Cte(k.sources)}return o.promise.then(x,x),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?fa("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Yte&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=l(i,a,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,c=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var h=function(){return e.getDiff()},f=function(t,n){void 0===n&&(n=e.networkStatus||Ja.loading);var a=t.result;!1===globalThis.__DEV__||c||za(a,{})||Nte(t.missing);var s=function(e){return B7.of((0,ta.__assign)({data:e,loading:es(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===l&&n===Ja.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:n===Ja.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{query:i,variables:o,context:u,fetchPolicy:a,errorPolicy:l})},y=d&&"number"===typeof p&&p!==n&&es(n);switch(a){default:case"cache-first":return(v=h()).complete?{fromLink:!1,sources:[f(v,e.markReady())]}:c||y?{fromLink:!0,sources:[f(v),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var v;return(v=h()).complete||c||y?{fromLink:!0,sources:[f(v),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":return y?{fromLink:!0,sources:[f(h()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return y?{fromLink:!0,sources:[f(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Yte(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,ta.__assign)((0,ta.__assign)((0,ta.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),ene=!1,tne=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw va(15);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,l=void 0!==s&&s,c=e.ssrForceFetchDelay,u=void 0===c?0:c,d=e.connectToDevTools,p=void 0===d?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,h=e.queryDeduplication,f=void 0===h||h,m=e.defaultOptions,g=e.defaultContext,y=e.assumeImmutableResults,v=void 0===y?o.assumeImmutableResults:y,b=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,x=e.name,k=e.version,C=e.link;C||(C=n?new wee({uri:n,credentials:r,headers:i}):f9.empty()),this.link=C,this.cache=o,this.disableNetworkFetches=l||u>0,this.queryDeduplication=f,this.defaultOptions=m||Object.create(null),this.typeDefs=_,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ua,this.localState=new Zte({cache:o,client:this,resolvers:b,fragmentMatcher:w}),this.queryManager=new Qte({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:a,queryDeduplication:f,ssrMode:l,clientAwareness:{name:x,version:k},localState:this.localState,assumeImmutableResults:v,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),p&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"===typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}ene||!1===globalThis.__DEV__||(ene=!0,setTimeout((function(){if("undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"===typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&ya.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Ga(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,ta.__assign)((0,ta.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Ga(this.defaultOptions.query,e)),ya("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,ta.__assign)((0,ta.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ga(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return _ee(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){!1!==globalThis.__DEV__&&ya.debug(17,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(tne.prototype.getMemoryInternals=bs);var nne=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=mte(U7,{max:fs["cache.fragmentQueryDocuments"]||1e3,cache:as})}return e.prototype.batch=function(e){var t,n=this,r="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,ta.__assign)((0,ta.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,ta.__assign)((0,ta.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,ta.__rest)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,ta.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return void 0===i||null===i?r:(n.writeQuery((0,ta.__assign)((0,ta.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return void 0===i||null===i?r:(n.writeFragment((0,ta.__assign)((0,ta.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(nne.prototype.getMemoryInternals=ws);var rne=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,ta.__extends)(t,e),t}(Error),ine=Object.prototype.hasOwnProperty;function one(e){return null===e||void 0===e}function ane(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=one(r)?one(i)?void 0:{_id:i}:{id:r}),one(r)&&!one(i)&&(r=i),!one(r)))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var sne={dataIdFromObject:ane,addTypename:!0,resultCaching:!0,canonizeResults:!1};function lne(e){var t=e.canonizeResults;return void 0===t?sne.canonizeResults:t}var cne=/^[_a-z][_0-9a-z]*/i;function une(e){var t=e.match(cne);return t?t[0]:e}function dne(e,t,n){return!!Ka(t)&&(Ds(t)?t.every((function(t){return dne(e,t,n)})):e.selections.every((function(e){if(r9(e)&&E9(e,n)){var r=t9(e);return ine.call(t,r)&&(!e.selectionSet||dne(e.selectionSet,t[r],n))}return!0})))}function pne(e){return Ka(e)&&!Y7(e)&&!Ds(e)}function hne(e,t){var n=$7(s9(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var fne=Object.create(null),mne=function(){return fne},gne=Object.create(null),yne=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return js(Y7(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Y7(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return W7(e);if(Y7(e))return e;var r=n.policies.identify(e)[0];if(r){var i=W7(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,ta.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ine.call(this.data,e)){var n=this.data[e];if(n&&ine.call(n,t))return n[t]}return"__typename"===t&&ine.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof wne?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),ine.call(this.data,e)?this.data[e]:this instanceof wne?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Y7(e)&&(e=e.__ref),Y7(t)&&(t=t.__ref);var i="string"===typeof e?this.lookup(n=e):e,o="string"===typeof t?this.lookup(n=t):t;if(o){ya("string"===typeof n,1);var a=new B9(kne).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=une(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof wne||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:fne,INVALIDATE:gne,isReference:Y7,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||W7(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var c=une(l),u=r[l];if(void 0!==u){var d="function"===typeof t?t:t[l]||t[c];if(d){var p=d===mne?fne:d(js(u),(0,ta.__assign)((0,ta.__assign)({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));if(p===gne)n.group.dirty(e,l);else if(p===fne&&(p=void 0),p!==u&&(i[l]=p,o=!0,u=p,!1!==globalThis.__DEV__)){var h=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&ya.warn(2,e),!0};if(Y7(p))h(p);else if(Array.isArray(p))for(var f=!1,m=void 0,g=0,y=p;g<y.length;g++){var v=y[g];if(Y7(v)){if(f=!0,h(v))break}else if("object"===typeof v&&v)n.policies.identify(v)[0]&&(m=v);if(f&&void 0!==m){!1!==globalThis.__DEV__&&ya.warn(3,m);break}}}}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof wne?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=mne,r):mne)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(ine.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof wne&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){ine.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&ine.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,ta.__rest)(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof wne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){ine.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof wne;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!ine.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Y7(e)&&(t[e.__ref]=!0),Ka(e)&&Object.keys(e).forEach((function(t){var n=e[t];Ka(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),vne=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?dte():null,this.keyMaker=new Mee(Sa)},e.prototype.depend=function(e,t){if(this.d){this.d(bne(e,t));var n=une(t);n!==t&&this.d(bne(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(bne(e,t),"__exists"===t?"forget":"setDirty")},e}();function bne(e,t){return t+"#"+e}function _ne(e,t){Cne(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new vne(i))||this;return a.stump=new xne(a),a.storageTrie=new Mee(Sa),o&&a.replace(o),a}return(0,ta.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(yne||(yne={}));var wne=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,ta.__extends)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){za(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,ta.__assign)((0,ta.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ine.call(this.data,t)?(0,ta.__assign)((0,ta.__assign)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(yne),xne=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new vne(t.group.caching,t.group))||this}return(0,ta.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(wne);function kne(e,t,n){var r=e[n],i=t[n];return za(r,i)?r:i}function Cne(e){return!!(e instanceof yne&&e.group.caching)}var Sne=function(){function e(){this.known=new(Ma?WeakSet:Set),this.pool=new Mee(Sa),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Ka(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Ka(e)){var t=function(e){return Ka(e)?Ds(e)?e.slice(0):(0,ta.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Ka(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,l=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[l+t]})),!1!==globalThis.__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function Mne(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Tne=function(){function e(e){var t=this;this.knownResults=new(Sa?WeakMap:Map),this.config=Ha(e,{addTypename:!1!==e.addTypename,canonizeResults:lne(e)}),this.canon=e.canon||new Sne,this.executeSelectionSet=mte((function(e){var n,r=e.context.canonizeResults,i=Mne(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,ta.__assign)((0,ta.__assign)({},o),{result:t.canon.admit(o.result)}):o:(_ne(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||fs["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Mne,makeCacheKey:function(e,t,n,r){if(Cne(n.store))return n.store.makeCacheKey(e,Y7(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=mte((function(e){return _ne(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||fs["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Cne(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Sne},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,l=e.canonizeResults,c=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;o=(0,ta.__assign)((0,ta.__assign)({},u9(l9(n))),o);var d,p=W7(i),h=this.executeSelectionSet({selectionSet:c9(n).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,ta.__assign)({store:t,query:n,policies:u,variables:o,varString:Z7(o),canonizeResults:c},hne(n,this.config.fragments))});if(h.missing&&(d=[new rne(Ene(h.missing),h.missing,n,o)],!s))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(Cne(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Y7(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,l=o.policies,c=o.store.getFieldValue(r,"__typename"),u=[],d=new B9;function p(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof c&&!l.rootIdsByTypename[c]&&u.push({__typename:c});var h=new Set(n.selections);h.forEach((function(e){var n,f;if(E9(e,s))if(r9(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=t9(e);void 0===m?mee.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(Y7(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Ds(m)?m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:Y7(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((f={})[g]=m,f))}else{var y=V7(e,o.lookupFragment);if(!y&&e.kind===C9.FRAGMENT_SPREAD)throw va(9,e.name.value);y&&l.fragmentMatches(y,c)&&y.selectionSet.selections.forEach(h.add,h)}}));var f={result:F9(u),missing:a},m=o.canonizeResults?this.canon.admit(f):js(f);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new B9;function l(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Ds(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Y7(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Ka(n)&&(ya(!Y7(n),10,function(e,t){return Y7(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Ene(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var Pne=Object.create(null);function Ine(e){var t=JSON.stringify(e);return Pne[t]||(Pne[t]=Object.create(null))}function One(e){var t=Ine(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=Rne(e,(function(e){var i=Ane(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&ine.call(t,e[0])&&(i=Ane(t,e,Dne)),ya(void 0!==i,4,e.join("."),t),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function Lne(e){var t=Ine(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=Rne(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return Ane(t,e)}else{var a=n.slice(1);if(i&&ine.call(i,a)){var s=e.slice(0);return s[0]=a,Ane(i,s)}}else if(r&&As(r.directives)){var l=n.slice(1),c=r.directives.find((function(e){return e.name.value===l})),u=c&&e9(c,i);return u&&Ane(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function Rne(e,t){var n=new B9;return jne(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function jne(e){var t=Ine(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){Ds(t)?(jne(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),Ds(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function Dne(e,t){return e[t]}function Ane(e,t,n){return n=n||Dne,Nne(t.reduce((function e(t,r){return Ds(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function Nne(e){return Ka(e)?Ds(e)?e.map(Nne):Rne(Object.keys(e).sort(),(function(t){return Ane(e,t)})):e}function Fne(e){return void 0!==e.args?e.args:e.field?e9(e.field,e.variables):null}var zne=function(){},Bne=function(e,t){return t.fieldName},Une=function(e,t,n){return(0,n.mergeObjects)(e,t)},$ne=function(e,t){return t},Vne=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,ta.__assign)({dataIdFromObject:ane},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=(0,ta.__assign)((0,ta.__assign)({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=Zne(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var u=c((0,ta.__assign)((0,ta.__assign)({},e),a),s);if(!Ds(u)){o=u;break}c=One(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=(0,ta.__rest)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),ine.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?Une:!1===t?$ne:e.merge}a(r,t.merge),r.keyFn=!1===i?zne:Ds(i)?One(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,c=i.merge;r.keyFn=!1===s?Bne:Ds(s)?Lne(s):"function"===typeof s?s:r.keyFn,"function"===typeof l&&(r.read=l),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Bne)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(ya(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(cne);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!ine.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=(0,ta.__rest)(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(o))return a.has(o)||(u&&!1!==globalThis.__DEV__&&ya.warn(6,t,o),a.add(o)),!0;p.forEach(l),c&&d===s.length-1&&dne(e.selectionSet,n,r)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Fne(e);o;){var l=o(s,a);if(!Ds(l)){t=l||r;break}o=Lne(l)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return K7(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return K7(r,n,i,t)}))),Q7(e.name.value,r,n)}(e.field,e.variables):Q7(r,Fne(e))),!1===t?r:r===une(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=une(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var c=qne(this,n,e,t,t.store.getStorage(Y7(n)?n.__ref:n,i));return Bte.withValue(this.cache,l,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===Une?Hne(r.store)(e,t):s===$ne?t:(r.overwrite&&(e=void 0),s(e,t,qne(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function qne(e,t,n,r,i){var o=e.getStoreFieldName(n),a=une(o),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:Fne(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Y7,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Zne(arguments,t,s),r)},mergeObjects:Hne(r.store)}}function Zne(e,t,n){var r,i=e[0],o=e[1],a=e.length;return"string"===typeof i?r={fieldName:i,from:a>1?o:t}:(r=(0,ta.__assign)({},i),ine.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&ya.warn(7,ma(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function Hne(e){return function(t,n){if(Ds(t)||Ds(n))throw va(8);if(Ka(t)&&Ka(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Y7(t)&&pne(n))return e.merge(t.__ref,n),t;if(pne(t)&&Y7(n))return e.merge(t,n.__ref),n;if(pne(t)&&pne(n))return(0,ta.__assign)((0,ta.__assign)({},t),n)}return n}}function Gne(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,ta.__assign)((0,ta.__assign)({},e),{clientOnly:t,deferred:n})),i}var Wne=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,l=o9(r),c=new B9;a=(0,ta.__assign)((0,ta.__assign)({},u9(l)),a);var u=(0,ta.__assign)((0,ta.__assign)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:Z7(a)},hne(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!Y7(d))throw va(11,i);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=W7(r);if(o&&o.map.size){var l=n.applyMerges(o,s,i,u);if(Y7(l))return;i=l}if(!1!==globalThis.__DEV__&&!u.overwrite){var c=Object.create(null);a.forEach((function(e){e.selectionSet&&(c[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===c[une(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(Y7(o))return;if(za(o,a))return;if(Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=une(n),c="".concat(s,".").concat(l);if(ere.has(c))return;ere.add(c);var u=[];Ds(o)||Ds(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||u.includes(t)||u.push(t)}));!1!==globalThis.__DEV__&&ya.warn(14,l,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",c,o,a)}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,l=Object.create(null),c=n&&s.rootTypenamesById[n]||n9(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"===typeof c&&(l.__typename=c);var u=function(){var e=Zne(arguments,l,o.variables);if(Y7(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField((0,ta.__assign)((0,ta.__assign)({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},d=new Set;this.flattenFields(i,r,o,c).forEach((function(e,n){var i,o=t9(n),p=r[o];if(d.add(n),void 0!==p){var h=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),f=Kne(a,h),m=t.processFieldValue(p,n,n.selectionSet?Gne(e,!1,!1):e,f),g=void 0;n.selectionSet&&(Y7(m)||pne(m))&&(g=u("__typename",m));var y=s.getMergeFunction(c,n.name.value,g);y?f.info={field:n,typename:c,merge:y}:Qne(a,h),l=e.merge(l,((i={})[h]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||mee.added(n)||s.getReadFunction(c,n.name.value)||!1!==globalThis.__DEV__&&ya.error(12,t9(n),r)}));try{var p=s.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:u}),h=p[0],f=p[1];n=n||h,f&&(l=o.merge(l,f))}catch(ag){if(!n)throw ag}if("string"===typeof n){var m=W7(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var y=o.incomingById.get(n);return y?(y.storeObject=o.merge(y.storeObject,l),y.mergeTree=Xne(y.mergeTree,a),d.forEach((function(e){return y.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:l,mergeTree:Jne(a)?void 0:a,fieldNodeSet:d}),m}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Ds(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,Kne(r,o));return Qne(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?Mte(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=n9(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Mee(!1);return function e(s,l){var c=a.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach((function(a){if(E9(a,n.variables)){var s=l.clientOnly,c=l.deferred;if(s&&c||!As(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=e9(e,n.variables);r&&!1===r.if||(c=!0)}})),r9(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,c=c&&u.deferred),i.set(a,Gne(n,s,c))}else{var d=V7(a,n.lookupFragment);if(!d&&a.kind===C9.FRAGMENT_SPREAD)throw va(13,a.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,Gne(n,s,c))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Y7(n)){var s,l=Ds(n)||!Y7(t)&&!pne(t)?void 0:t,c=n;l&&!i&&(i=[Y7(l)?l.__ref:l]);var u=function(e,t){return Ds(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(l,t),o=u(c,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&ya(i.pop()===t)}})),s&&(n=Ds(c)?c.slice(0):(0,ta.__assign)({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),Yne=[];function Kne(e,t){var n=e.map;return n.has(t)||n.set(t,Yne.pop()||{map:new Map}),n.get(t)}function Xne(e,t){if(e===t||!t||Jne(t))return e;if(!e||Jne(e))return t;var n=e.info&&t.info?(0,ta.__assign)((0,ta.__assign)({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,Xne(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,Xne(t.map.get(n),e.map.get(n)))}))}return i}function Jne(e){return!e||!(e.info||e.map.size)}function Qne(e,t){var n=e.map,r=n.get(t);r&&Jne(r)&&(Yne.push(r),n.delete(t))}var ere=new Set;var tre,nre=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new yte(mee),n.assumeImmutableResults=!0,n.makeVar=qte,n.txCount=0,n.config=function(e){return Ha(sne,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Vne({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,ta.__extends)(t,e),t.prototype.init=function(){var e=this.data=new yne.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new Wne(this,this.storeReader=new Tne({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:lne(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=mte((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||fs["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Cne(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,Z7({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,ta.__assign)((0,ta.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(ag){if(ag instanceof rne)return null;throw ag}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ine.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,ta.__assign)((0,ta.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){$te(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Vte(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;Z7.reset(),iee.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Y7(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(ag){!1!==globalThis.__DEV__&&ya.warn(ag)}},t.prototype.evict=function(e){if(!e.id){if(ine.call(e,"id"))return!1;e=(0,ta.__assign)((0,ta.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Z7.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Vte(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,ta.__assign)((0,ta.__assign)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"===typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches((0,ta.__assign)((0,ta.__assign)({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&za(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(nne);!1!==globalThis.__DEV__&&(nre.prototype.getMemoryInternals=_s);const rre=bee({uri:null===$.default||void 0===$.default||null===(tre=$.default.graphql)||void 0===tre?void 0:tre.uri}),ire=(ore=(e,t)=>{var n;let{headers:r}=t;return{headers:{...r,"x-access-token":null===(n=localStorage.getItem("token"))||void 0===n?void 0:n.toString().replace(/['"]+/g,"")}}},new f9((function(e,t){var n=(0,ta.__rest)(e,[]);return new B7((function(r){var i,o=!1;return Promise.resolve(n).then((function(t){return ore(t,e.getContext())})).then(e.setContext).then((function(){o||(i=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){o=!0,i&&i.unsubscribe()}}))})));var ore;const are=new tne({link:ire.concat(rre),cache:new nre,credentials:"cross-origin"}),sre=()=>(0,w.jsx)(co,{title:(0,w.jsx)(f._H,{id:"Sorry, the page you are looking for does not exist.",defaultMessage:"Sorry, the page you are looking for does not exist."}),subtitle:(0,w.jsx)(f._H,{id:"Consider returning back to your product homepage or <a>contact support</a> if you are still having issues.",defaultMessage:"Consider returning back to your product homepage or <a>contact support</a> if you are still having issues.",values:{a:e=>(0,bi.Bv)(e)}}),actionButton:(0,w.jsx)(d.xu,{marginTop:5,children:(0,w.jsx)(d.zx,{href:"/",children:(0,w.jsx)(f._H,{id:"Return to your homepage",defaultMessage:"Return to your homepage"})})})}),lre=["mrv-admin-program-dashboard","mrv-admin-program-configure"],cre={"mrv-admin":Wo.uj,"mrv-admin-program-dashboard":Wo.v,"mrv-admin-program-configure":Wo.K5,carbon:Wo._j,monitoring:Wo.qc,"mrv-home":Wo._j};var ure=n(61766);const dre=e=>{let{onClick:t,disabled:n=!1,children:i}=e;const o=(0,d.Fg)(),a=(0,r.useMemo)((()=>({color:o.palette.semanticPalette.textInverted.main,"&.MuiMenuItem-root:active":{backgroundColor:o.palette.semanticPalette.surfaceInverted.main},"&.MuiMenuItem-root:hover":{backgroundColor:o.palette.semanticPalette.surfaceInverted.secondary},"&.MuiMenuItem-root.Mui-disabled":{opacity:1,color:o.palette.semanticPalette.textInverted.secondary}})),[o.palette]);return(0,w.jsx)(d.sN,{disabled:n,onClick:t,sx:a,children:i})},pre=[{label:"Users",url:"global-admin/users"},{label:"Premium Apps",url:"global-admin/features"},{label:"User Activity",url:"global-admin/user-activity"},{label:"Crop Types Manager",url:"global-admin/crop/edit-crop"},{label:"Feature Toggles",url:"global-admin/mrv-config/development-tools/feature-toggles"},{label:"Document Manager",url:"global-admin/documents-manager"}],hre=e=>{let{children:t}=e;const n=(0,d.Fg)(),i=(0,r.useMemo)((()=>({color:n.palette.semanticPalette.textInverted.main,textDecoration:"none"})),[n.palette]);return(0,w.jsx)(fre,{placement:"right",title:(0,w.jsx)(d.xu,{ml:-2,mr:-2,children:pre.map((e=>{let{label:t,url:n}=e;return(0,w.jsx)(d.rU,{sx:i,href:`/mrv/${n}`,children:(0,w.jsx)(dre,{children:t})},n)}))}),children:(0,w.jsx)(d.ZT,{component:"span",children:t})})},fre=(0,d.zo)((e=>{let{className:t,...n}=e;return(0,w.jsx)(d.u,{...n,classes:{popper:t}})}))((e=>{let{theme:t}=e;return{[`& .${Al.Z.tooltip}`]:{borderRadius:t.spacing(t.borderRadii.md)}}})),mre=()=>{const[e,t]=(0,r.useState)(!1);(0,r.useEffect)((()=>{let e=0;const n=setInterval((()=>{var r,i,o;e+=1,e>=120&&clearInterval(n),window.HubSpotConversations&&null!==(r=window.HubSpotConversations)&&void 0!==r&&null!==(i=r.widget)&&void 0!==i&&null!==(o=i.status)&&void 0!==o&&o.call(i).loaded&&(t(!0),clearInterval(n))}),1e3)}),[]);return e?(0,w.jsx)(d.hU,{color:"secondary",title:"Hubspot chat",size:"small",onClick:()=>{window.HubSpotConversations.widget.open()},children:(0,w.jsx)(d.le,{type:"question-circled"})}):null};function gre(e){let{options:t,handleClose:n,...r}=e;const i=(0,d.Fg)();return(0,w.jsx)(d.v2,{...r,variant:"selectedMenu",sx:{"& .MuiPaper-root":{backgroundColor:i.palette.semanticPalette.surfaceInverted.main}},children:t.map((e=>{let{onClick:t,label:r,title:o,topHorizontalSeparator:a,value:s}=e;const l=(0,w.jsx)(dre,{onClick:()=>{n(),t()},children:r},r),c=["admin"===s?(0,w.jsx)(hre,{children:l},r):l];return o&&c.unshift((0,w.jsx)(dre,{disabled:!0,onClick:()=>{n(),t()},children:(0,w.jsx)(d.ZT,{variant:"body2",children:o})},o)),a&&c.unshift((0,w.jsx)(d.iz,{sx:{borderColor:i.palette.semanticPalette.strokeInverted.secondary}})),c}))})}const yre=e=>{let{onClick:t,showMenuIcon:n=!0,children:r,ariaLabel:i}=e;const o=(0,d.Fg)();return(0,w.jsx)(d.xu,{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",height:"100%",onClick:t,children:(0,w.jsx)(d.aV,{sx:{height:"100%"},disablePadding:!0,children:(0,w.jsxs)(d.nZ,{"aria-label":i,sx:{height:"100%","&:hover":{backgroundColor:o.palette.grey[800]}},children:[(0,w.jsx)(d.ZT,{fontWeight:"fontWeightBold",color:"semanticPalette.textInverted.main",component:"span",children:r}),n&&(0,w.jsx)(d.le,{type:"chevron-down",color:"secondary",sx:{marginLeft:2}})]})})})};var vre=n(81340),bre=n(98864);const _re=e=>{const t=(0,bre.o)(),{data:n}=(0,vre.Gk)(e);return(0,r.useMemo)((()=>{let e=!1;for(const r in n){const i=n[r];e=e||!!i&&t(i.key,i.disabled||i.relation.disabled,i.visibility,i.relation.visibility)}return e}),[t,n])},wre=Z.ZP.div`
  display: flex;
  align-items: center;
  gap: 24px;
`,xre=Z.ZP.div`
  font-size: 14px;
  color: ${e=>{let{theme:t}=e;return t.colorPalette.fs_main.gray_400}};
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.3s,
    font-wight 0.3s;
  &:hover {
    color: #fff;
  }
  &.selected {
    color: #fff;
    font-weight: 700;
  }
`;function kre(){const{pathname:e}=(0,u.TH)(),{programId:t}=(0,wi.tZ)(Wo.sQ),n=null!==(0,u.LX)(e,{path:Wo.uj});return(0,w.jsx)(ov,{children:n&&void 0!==t&&(0,w.jsx)(Cre,{programId:t,pathname:e})})}function Cre(e){let{programId:t,pathname:n}=e;const i=(0,u.k6)(),[o]=(0,wo.Z)((e=>{let{width:t}=e;return t<=900})),a=(0,ure.Q)(),l=_re(t),[c,p]=(0,r.useState)(null),h=(0,r.useCallback)((e=>{i.push((0,xo.F_)(cre[e],{programId:t}))}),[i,t]),f=(0,r.useMemo)((()=>{const e=lre.map((e=>({value:e,label:a[e],onClick:()=>h(e)})));if(!l){const t=lre.findIndex((e=>"mrv-admin-program-dashboard"===e));t>-1&&e.splice(t,1)}return e}),[a,l,h]);function m(){p(null)}const g=e=>{const t=cre[e];return!!t&&null!==(0,u.LX)(n,{path:t,strict:!1})};return o&&f.length>1?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Sre,{onClick:function(e){p(e.currentTarget)}}),(0,w.jsx)(gre,{anchorEl:c,open:!!c,onClose:m,handleClose:m,options:f})]}):(0,w.jsx)(w.Fragment,{children:f.map((e=>(0,w.jsx)(xre,{onClick:()=>e.onClick(),className:s()({selected:g(e.value)}),children:(0,w.jsx)(d.ZT,{fontWeight:"bold",children:e.label})},e.label)))})}const Sre=e=>{let{onClick:t}=e;const{pathname:n}=(0,u.TH)(),r=(0,ure.Q)();let i=null;switch(!0){case!!(0,u.LX)(n,{path:Wo.K5,strict:!1}):i="mrv-admin-program-configure";break;case!!(0,u.LX)(n,{path:Wo.v,strict:!1}):i="mrv-admin-program-dashboard";break;default:i=null}return(0,w.jsx)(yre,{onClick:t,ariaLabel:"menubar mrv navigation",children:i?r[i]:null})};var Mre=n(90826);const Tre=e=>{let{onClick:t}=e;const n=(0,u.$B)(WC.y9),r=(0,u.$B)(WC.RS),i=(0,u.$B)(WC.wh),o=(0,f.YB)();let a=null;switch(!0){case(0,er.$K)(n):a=o.formatMessage({id:"Configure",defaultMessage:"Configure"});break;case(0,er.$K)(r):a=o.formatMessage({id:"Report",defaultMessage:"Report"});break;case(0,er.$K)(i):a=o.formatMessage({id:"Plan",defaultMessage:"Plan"})}return(0,w.jsx)(yre,{onClick:t,ariaLabel:"menubar si navigation",children:a})},Ere=()=>{const e=(0,u.k6)(),{pathname:t}=(0,u.TH)(),{programId:n}=YC(),{getHasTabAccess:i}=jS(),[o]=(0,wo.Z)((e=>{let{width:t}=e;return t<=1e3})),[a,l]=(0,r.useState)(null),c=(0,r.useMemo)((()=>(0,er.kK)(n)?[]:uS._Q.filter((e=>{let{items:t}=e;return t.find((e=>{let{id:t}=e;return i(t)}))})).map((t=>{let{groupTitle:r,route:i}=t;const o=(0,er.$K)(i)?(0,xo.F_)(i,{programId:n}):WC.Y9;return{value:o,label:r,onClick:()=>e.push(o)}}))),[n,i,e]);if((0,er.kK)(n))return null;const d=()=>{l(null)};return!0===o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Tre,{onClick:e=>{l(e.currentTarget)}}),(0,w.jsx)(gre,{anchorEl:a,open:!!a,onClose:d,handleClose:d,options:c})]}):(0,w.jsx)(wre,{className:"middle-nav-container",children:c.map((n=>{return(0,w.jsx)(xre,{onClick:()=>e.push(n.value),className:s()({selected:(r=n.value,!!r&&t.includes(r))}),children:n.label},n.value);var r}))})},Pre=()=>{const e=(0,Mre.oq)(window.location.pathname),{pathname:t}=(0,u.TH)();return t.includes($.GS)?(0,w.jsx)("div",{}):(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",gap:6,children:["si"===e?(0,w.jsx)(Ere,{}):null,"mrv"===e?(0,w.jsx)(kre,{}):null]})};var Ire=n(3063),Ore=n(4383);const Lre=e=>{let{onClick:t}=e;const n=(0,f.YB)(),r=(0,h.C)(S.Im),i=(0,h.C)(S.B5);return(0,w.jsx)(yre,{onClick:t,showMenuIcon:!1,ariaLabel:"menubar profile",children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",height:"100%",component:"span",maxWidth:"25vw",color:e=>r?e.palette.warning.light:e.palette.semanticPalette.textInverted.main,children:[(0,w.jsx)(d.xu,{display:"flex",alignItems:"center",component:"span",mr:2,children:(0,w.jsx)(d.le,{type:"profile",fontSize:"small",color:"inherit"})}),(0,w.jsxs)(d.ZT,{title:i,color:"inherit",component:"span",sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[r?(0,w.jsxs)(w.Fragment,{children:[n.formatMessage({id:"Using as",defaultMessage:"Using as"}),"\xa0"]}):"",i]})]})})},Rre=()=>{const e=(0,h.T)(),t=(0,h.C)(S.Im),n=(0,h.C)(S.B5),{programId:i}=(0,gr.B)(),{workspace:o}=(0,M.c)(),[a,s]=(0,r.useState)(null),[l]=(0,hr.zE)([br.aR.UPDATE_USER_PROFILE]),c=(0,f.YB)(),u=(0,Ire.n)("unImpersonateUser"),p=(0,r.useMemo)((()=>{const r=[{label:c.formatMessage({id:"Logout",defaultMessage:"Logout"}),value:"logout",onClick:()=>e((0,Yr.kS)())}];return t&&r.unshift({label:`${c.formatMessage({id:"Stop using as",defaultMessage:"Stop using as"})} ${n}`,value:"exit-impersonation",onClick:()=>u({workspace:o,programId:i}),lineSeparator:!0}),t&&!l||r.unshift({label:c.formatMessage({id:"User profile",defaultMessage:"User profile"}),value:"profile",onClick:()=>e(Zr())}),r}),[c,t,l,e,n,u,o,i]),m=()=>{s(null)};return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",children:[(0,w.jsx)(d.xu,{mr:1,children:o===Ore.j.Mrv?(0,w.jsx)(mre,{}):(0,w.jsx)(d.hU,{id:"intercom-launch",color:"secondary",title:"Help",size:"small",children:(0,w.jsx)(d.le,{type:"question-circled"})})}),(0,w.jsx)(Lre,{onClick:e=>{s(e.currentTarget)}}),(0,w.jsx)(gre,{anchorEl:a,open:!!a,onClose:m,handleClose:m,options:p,anchorOrigin:{vertical:"bottom",horizontal:"right"}})]})};var jre=n(91350),Dre=n(29501);const Are=e=>{let{onClick:t,options:n}=e;const r=(0,d.Fg)(),{pathname:i}=(0,u.TH)(),o=(0,Mre.oq)(i),a=(0,f.YB)(),s=i.includes($.GS),l=s?a.formatMessage({id:"Regrow Internal Tools",defaultMessage:"Regrow Internal Tools"}):Mre.Cw[o],{workspaceBreadcrumb:c,workspaceBreadcrumbTitle:p}=Nre(s);return(0,w.jsx)(d.xu,{display:"flex",flexWrap:"nowrap",alignItems:"center",maxHeight:zu.M,height:"100%",children:(0,w.jsx)(yre,{onClick:t,showMenuIcon:n.length>1,ariaLabel:"menubar workspaces",children:(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",pl:2,children:[(0,w.jsx)("img",{src:"/assets/logos/regrow/menubar_regrow_logo_white_outlined.svg",alt:"regrow-logo"}),(0,w.jsxs)(d.xu,{display:"flex",maxWidth:"22vw",ml:3,children:[(0,w.jsx)(d.ZT,{fontWeight:"fontWeightBold",color:c?r.palette.grey[500]:r.palette.grey[100],component:"span",title:l,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l}),c?(0,w.jsxs)(d.ZT,{color:r.palette.grey[100],fontWeight:"fontWeightBold",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},component:"span",title:p,children:[(0,w.jsx)(d.xu,{mx:2,component:"span",children:"-"}),c]}):null]})]})})})},Nre=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,Mre.oq)(window.location.pathname),{programId:n}=YC(),r=(0,h.C)((e=>nS(e,Number(n)))),{programId:i}=(0,gr.B)(),{programId:o}=(0,wi.tZ)(Wo.sQ),a=(0,h.C)((e=>(0,_.PP)(e,o||i))),{pathname:s}=(0,u.TH)();if(e)return{workspaceBreadcrumb:"",workspaceBreadcrumbTitle:""};switch(t){case"mrv":return{workspaceBreadcrumb:null===a||void 0===a?void 0:a.name,workspaceBreadcrumbTitle:`${null===a||void 0===a?void 0:a.name} #${null===a||void 0===a?void 0:a.id}`};case"si":const e=s===WC.Y9?"":null===r||void 0===r?void 0:r.name;return{workspaceBreadcrumb:e,workspaceBreadcrumbTitle:`${e} #${null===r||void 0===r?void 0:r.id}`};default:return{workspaceBreadcrumb:"",workspaceBreadcrumbTitle:""}}},Fre=()=>{const{currentUser:e}=(0,Wr.x)(),t=(0,f.YB)(),n=(0,h.C)(S.yX),{workspaceLink:i}=(0,M.c)(),o=(0,u.k6)(),a=(0,ure.Q)(),s=zre(),l=Bre(),[c,p]=(0,r.useState)(null),m=(0,r.useMemo)((()=>{const r=Mre.wZ.filter((t=>{var n;return null===e||void 0===e||null===(n=e.workspaces)||void 0===n?void 0:n[t]})).filter((e=>e!==Ore.j.Ci)).map((e=>({label:Mre.Cw[e],value:e,onClick:()=>{o.push(`${Mre.Yd[e]}`)}})));return n&&r.push({label:a.admin,value:"admin",onClick:()=>{o.push(`${i}/global-admin/users`)}}),r[0]&&(r[0].title=t.formatMessage({id:"Workspaces",defaultMessage:"Workspaces"})),r}),[n,null===e||void 0===e?void 0:e.workspaces,o,a,i,t]),g=()=>{p(null)},y=[...m,...s,...l];return(0,w.jsxs)(d.xu,{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%",children:[(0,w.jsx)(Are,{onClick:e=>{p(e.currentTarget)},options:y}),(0,w.jsx)(gre,{anchorEl:c,open:!!c,onClose:g,handleClose:g,options:y})]})},zre=()=>{const{isWorkspaceMrv:e}=(0,M.c)(),t=(0,u.k6)(),{pathname:n}=(0,u.TH)(),i=(0,f.YB)(),o=n.includes($.GS),a=(0,h.C)(S.yX),s=(0,h.C)(S.Im),{recentPrograms:l}=(0,jre.E)(),c=(0,r.useMemo)((()=>{if(!e||o||s)return[];const n=l.map(((e,n)=>({title:0===n?i.formatMessage({id:"Your MRV programs",defaultMessage:"Your MRV programs"}):void 0,topHorizontalSeparator:0===n,label:e.program_name,value:e.program_name,onClick:()=>{a?t.push((0,xo.F_)(Wo.K5,{programId:e.program_id,tab:Dre.l.Configuration})):t.push((0,xo.F_)(Wo.SS,{projectId:e.project_id}))}})));return[...n,{label:`${i.formatMessage({id:"Show all",defaultMessage:"Show all"})}...`,value:"navigate to the programs list",onClick:()=>t.push(a?Wo.uj:Wo.$T)}]}),[e,o,s,i,a,t,l]);return c},Bre=()=>{const e=(0,h.T)(),{workspace:t}=(0,M.c)(),n="si"===t,i=(0,u.k6)(),o=(0,f.YB)(),{pathname:a}=(0,u.TH)(),s=a.includes($.GS),l=(0,h.C)((e=>(0,Or.xU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),c=(0,h.C)((e=>(0,Or.JM)(e,[GC.U.FETCH_ALL_SI_PROGRAMS]))),{nonGoldenPrograms:d}=hS(),p=(0,h.C)((e=>(0,Or.RU)(e,[GC.U.FETCH_ALL_SI_PROGRAMS])));(0,r.useEffect)((()=>{c||l||!n||p||e((0,HC.Ob)())}),[c,e,l,n,p]);const m=(0,r.useMemo)((()=>{if(!n||s||(null===d||void 0===d?void 0:d.length)<=1||l)return[];const e=(0,lS.Rt)(d,"id").slice(0,5).map(((e,t)=>({title:0===t?o.formatMessage({id:"Recent Sustainability Insights programs",defaultMessage:"Recent Sustainability Insights programs"}):void 0,topHorizontalSeparator:0===t,label:e.name,value:e.name,onClick:()=>{i.push((0,xo.F_)(WC.Xm,{programId:e.id}))}})));return[...e,{label:`${o.formatMessage({id:"Show all",defaultMessage:"Show all"})}...`,value:"navigate to the programs list",onClick:()=>i.push(WC.Y9)}]}),[n,s,d,l,o,i]);return m},Ure=()=>(0,w.jsxs)(d.xu,{"aria-label":"global menubar",role:"banner",height:`${zu.M}px`,width:"100%",display:"grid",gridTemplateColumns:"minmax(max-content, 1fr) minmax(max-content, 1fr) minmax(max-content, 1fr)",alignItems:"center",zIndex:ud.K.NavBar,bgcolor:"semanticPalette.surfaceInverted.main",children:[(0,w.jsx)(Fre,{}),(0,w.jsx)(Pre,{}),(0,w.jsx)(Rre,{})]}),$re=e=>{let{children:t}=e;const n=(0,h.T)(),i=r.useRef(null),o=(0,h.C)(S.Jt),a=(0,h.C)(S.OP),{workspace:s}=(0,M.c)();return(e=>{const t=(0,u.TH)();r.useLayoutEffect((()=>{(0,er.$K)(e.current)&&0!==e.current.scrollTop&&e.current.scrollTo(0,0)}),[t,e])})(i),(0,r.useEffect)((function(){if(o&&s!==(null===a||void 0===a?void 0:a.mostRecentWorkspace)){const e={mostRecentWorkspace:s};n((0,Yr.b1)(e,!1))}}),[o,null===a||void 0===a?void 0:a.mostRecentWorkspace,s,n,a]),(0,r.useEffect)((()=>{o||n((0,b.ts)())}),[o,n]),(0,r.useEffect)((()=>{const e=()=>{const e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),o?(0,w.jsxs)(d.xu,{height:"100vh",width:"100vw",overflow:"hidden",bgcolor:"semanticPalette.surface.secondary",children:[(0,w.jsx)(d.hO,{muiThemeKey:0,children:(0,w.jsx)(Ure,{})}),(0,w.jsx)(d.xu,{height:`calc(100vh - ${zu.M}px)`,overflow:"auto",ref:i,children:t})]}):(0,w.jsx)("div",{className:"unauthorized-container",children:t})};function Vre(){switch((0,h.C)(S.lI)){case Ore.j.Si:return(0,w.jsx)(u.l_,{to:`/${$.SI}`});case Ore.j.Mrv:default:return(0,w.jsx)(u.l_,{to:`/${$.Lw}`})}}const qre=e=>{let{children:t}=e;const n=(0,u.TH)(),i=(0,r.useCallback)((()=>{window.setTimeout((()=>{window.scrollTo(0,0)}),0)}),[]);return(0,r.useEffect)((()=>{i()}),[n]),(0,w.jsx)(w.Fragment,{children:t})},Zre=()=>{y7(),(()=>{const e=(0,h.C)(S.Jt),{programId:t}=(0,gr.B)(),{email:n}=(0,c.v9)(S.dy),{isWorkspaceMrv:i}=(0,M.c)();(0,r.useEffect)((()=>{if("localhost"!==window.location.hostname&&(0,U.e)(n)&&t&&e&&i&&!document.getElementById("hs-script-loader")){const e=document.createElement("script");e.setAttribute("id","hs-script-loader"),e.src="//js.hs-scripts.com/4430549.js",e.async=!0,document.body.appendChild(e)}}),[e,t,n,i])})();const{isWorkspaceMrv:e}=(0,M.c)();return(0,r.useEffect)((()=>{document.body.style.overscrollBehavior="none"}),[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)($re,{children:[(0,w.jsxs)(u.rs,{children:[(0,bi.GD)()||$.D0?(0,w.jsx)(u.AW,{path:"/app",render:e=>(0,w.jsx)(u.l_,{to:e.location.pathname.replace("/app","")+e.location.search})}):null,(0,w.jsx)(vm,{exact:!0,path:"/",component:Vre}),(0,w.jsx)(u.AW,{path:Ri.j.Login,component:r.lazy((()=>n.e(381).then(n.bind(n,70381))))}),(0,w.jsx)(u.AW,{path:"/oauth/:source/:code",component:r.lazy((()=>n.e(48).then(n.bind(n,56048))))}),(0,w.jsx)(u.AW,{path:Ri.j.ResetPasswordConfirm,component:r.lazy((()=>n.e(962).then(n.bind(n,83962))))}),(0,w.jsx)(u.AW,{path:Ri.j.ResetPassword,component:r.lazy((()=>n.e(401).then(n.bind(n,19401))))}),(0,w.jsx)(u.AW,{path:`/${$.MG}`,component:wv}),(0,w.jsx)(u.AW,{path:`/${$.Lw}`,component:wv}),(0,w.jsx)(u.AW,{path:`/${$.SI}`,component:m7}),(0,w.jsx)(vm,{isAdminOnly:!0,path:"/admin",component:r.lazy((()=>Promise.all([n.e(525),n.e(125)]).then(n.bind(n,68125))))}),(0,w.jsx)(u.AW,{path:"/profile",component:vi}),(0,w.jsx)(u.AW,{path:"https://www.regrow.ag/privacy-policy",component:r.lazy((()=>n.e(96).then(n.bind(n,13096))))}),(0,w.jsx)(u.AW,{component:sre})]}),(0,w.jsx)(ao,{})]}),(0,w.jsx)(Yn.Z,{className:s()({mrv:e})})]})},Hre=()=>(0,w.jsx)(c.zt,{store:p.Z,children:(0,w.jsx)(bo,{children:(0,w.jsx)(r.Suspense,{fallback:(0,w.jsx)(w.Fragment,{}),children:(0,w.jsx)(l.xI,{history:so.m,children:(0,w.jsx)(mo,{children:(0,w.jsx)(Wr.v,{children:(0,w.jsx)(v7,{client:are,children:(0,w.jsx)(ho,{children:(0,w.jsx)(g7,{children:(0,w.jsx)(qre,{children:(0,w.jsx)(d.hO,{children:(0,w.jsx)(hr.Ni,{children:$.default.maintenanceEnabled?(0,w.jsx)(uo,{}):(0,w.jsx)(Zre,{})})})})})})})})})})})})});n(15767);var Gre=n(47555),Wre=n(60003),Yre=n(85346),Kre=n(54518);function Xre(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=(0,yo.s3)();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}var Jre=n(62533),Qre=n(59426),eie=n(53049),tie=n(28940);function nie(e){if("boolean"===typeof e)return Number(e);const t="string"===typeof e?parseFloat(e):e;if(!("number"!==typeof t||isNaN(t)||t<0||t>1))return t;tie.X&&eie.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}var rie=n(86540);class iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=e.traceId||(0,rie.DM)(),this._spanId=e.spanId||(0,rie.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Gre.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}var oie=n(12770),aie=n(42787),sie=n(43921);const lie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function cie(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function uie(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function die(e){const t="string"===typeof e?function(e){const t=lie.exec(e);if(!t)return void(0,eie.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return uie({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):uie(e);if(t&&function(e){if(!sie.X)return!0;const{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(eie.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?!t||!isNaN(parseInt(t,10))||(eie.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eie.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(eie.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}var pie=n(78353),hie=n(22873);function fie(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function mie(e,t){const[n,r]=e;return[n,[...r,t]]}function gie(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function yie(e){return hie.GLOBAL_OBJ.__SENTRY__&&hie.GLOBAL_OBJ.__SENTRY__.encodePolyfill?hie.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function vie(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"===typeof r?r="string"===typeof e?r+e:[yie(r),e]:r.push("string"===typeof e?yie(e):e)}for(const o of n){const[e,t]=o;if(i(`\n${JSON.stringify(e)}\n`),"string"===typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch(ag){e=JSON.stringify((0,pie.Fv)(t))}i(e)}}return"string"===typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(r)}function bie(e){return[{type:"span"},e]}function _ie(e){const t="string"===typeof e.data?yie(e.data):e.data;return[(0,aie.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const wie={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function xie(e){return wie[e]}function kie(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Cie(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:cie(r)},...i&&{trace:(0,aie.Jr)({...i})}}}var Sie=n(65217);function Mie(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[Kre.E1],i=n[Kre.Wb];"string"===typeof r&&"number"===typeof i&&(t[e.name]={value:i,unit:r})})),t}const Tie="_sentryScope",Eie="_sentryIsolationScope";function Pie(e){return{scope:e[Tie],isolationScope:e[Eie]}}class Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=e.traceId||(0,rie.DM)(),this._spanId=e.spanId||(0,rie.DM)().substring(16),this._startTime=e.startTimestamp||(0,oie.ph)(),this._attributes={},this.setAttributes({[Kre.S3]:"manual",[Kre.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Gre.i0:Gre.ve}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=(0,Gre.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,Gre.$k)(e),function(e){if(!tie.X)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,Gre.XU)(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${(0,Gre.Gx)(e)===e?"root ":""}span "${t}" with ID ${r}`;eie.kg.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return(0,aie.Jr)({data:this._attributes,description:this._name,op:this._attributes[Kre.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,Gre._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Kre.S3],_metrics_summary:(0,Sie.y)(this),profile_id:this._attributes[Kre.p6],exclusive_time:this._attributes[Kre.JQ],measurements:Mie(this._events),is_segment:this._isStandaloneSpan&&(0,Gre.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,Gre.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){tie.X&&eie.kg.log("[Tracing] Adding an event to span:",e);const r=Oie(t)?t:n||(0,oie.ph)(),i=Oie(t)?{}:t||{},o={name:e,time:(0,Gre.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,yo.s3)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,Gre.Gx)(this)))return;if(this._isStandaloneSpan)return void function(e){const t=(0,yo.s3)();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{tie.X&&eie.kg.error("Error while sending span:",e)}))}(function(e,t){const n=(0,Qre.jC)(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:cie(r)}},a=t&&t.getOptions().beforeSendSpan,s=a?e=>a((0,Gre.XU)(e)):e=>(0,Gre.XU)(e),l=[];for(const c of e){const e=s(c);e&&l.push(bie(e))}return fie(o,l)}([this],e));const t=this._convertSpanToTransaction();if(t){(Pie(this).scope||(0,yo.nZ)()).captureEvent(t)}}_convertSpanToTransaction(){if(!Lie((0,Gre.XU)(this)))return;this._name||(tie.X&&eie.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=Pie(this),n=(e||(0,yo.nZ)()).getClient()||(0,yo.s3)();if(!0!==this._sampled)return tie.X&&eie.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=(0,Gre.Dp)(this).filter((e=>e!==this&&!function(e){return e instanceof Iie&&e.isStandaloneSpan()}(e))).map((e=>(0,Gre.XU)(e))).filter(Lie),i=this._attributes[Kre.Zj],o={contexts:{trace:(0,Gre.HR)(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,aie.Jr)({dynamicSamplingContext:(0,Qre.jC)(this)})},_metrics_summary:(0,Sie.y)(this),...i&&{transaction_info:{source:i}}},a=Mie(this._events);return a&&Object.keys(a).length&&(tie.X&&eie.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),o.measurements=a),o}}function Oie(e){return e&&"number"===typeof e||e instanceof Date||Array.isArray(e)}function Lie(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}const Rie="__SENTRY_SUPPRESS_TRACING__";function jie(e){const t=Fie();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Nie(e),r=e.scope||(0,yo.nZ)(),i=Bie(r);return e.onlyIfParent&&!i?new iie:Aie({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function Die(e,t){const n=Fie();return n.withActiveSpan?n.withActiveSpan(e,t):(0,yo.$e)((n=>((0,Jre.D)(n,e||void 0),t(n))))}function Aie(e){let{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}=e;if(!Xre())return new iie;const o=(0,yo.aF)();let a;if(t&&!r)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[Rie]&&(0,Gre.Tt)(e),a=o?new Iie({...n,parentSpanId:r,traceId:i,sampled:o}):new iie({traceId:i});(0,Gre.j5)(e,a);const s=(0,yo.s3)();s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a));return a}(t,i,n),(0,Gre.j5)(t,a);else if(t){const e=(0,Qre.jC)(t),{traceId:r,spanId:o}=t.spanContext(),s=(0,Gre.Tt)(t);a=zie({traceId:r,parentSpanId:o,...n},i,s),(0,Qre.Lh)(a,e)}else{const{traceId:e,dsc:t,parentSpanId:r,sampled:s}={...o.getPropagationContext(),...i.getPropagationContext()};a=zie({traceId:e,parentSpanId:r,...n},i,s),t&&(0,Qre.Lh)(a,t)}return function(e){if(!tie.X)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,Gre.XU)(e),{spanId:i}=e.spanContext(),o=(0,Gre.Tt)(e),a=(0,Gre.Gx)(e),s=a===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){const{op:e,description:t}=(0,Gre.XU)(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}eie.kg.log(`${l}\n  ${c.join("\n  ")}`)}(a),function(e,t,n){e&&((0,aie.xp)(e,Eie,n),(0,aie.xp)(e,Tie,t))}(a,i,o),a}function Nie(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,Gre.$k)(e.startTime),delete n.startTime,n}return t}function Fie(){const e=(0,Wre.c)();return(0,Yre.G)(e)}function zie(e,t,n){const r=(0,yo.s3)(),i=r&&r.getOptions()||{},{name:o="",attributes:a}=e,[s,l]=t.getScopeData().sdkProcessingMetadata[Rie]?[!1]:function(e,t){if(!Xre(e))return[!1];let n;n="function"===typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:"undefined"!==typeof e.tracesSampleRate?e.tracesSampleRate:1;const r=nie(n);return void 0===r?(tie.X&&eie.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(tie.X&&eie.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(tie.X&&eie.kg.log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(i,{name:o,parentSampled:n,attributes:a,transactionContext:{name:o,parentSampled:n}}),c=new Iie({...e,attributes:{[Kre.Zj]:"custom",...e.attributes},sampled:s});return void 0!==l&&c.setAttribute(Kre.TE,l),r&&r.emit("spanStart",c),c}function Bie(e){const t=(0,Jre.Y)(e);if(!t)return;const n=(0,yo.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,Gre.Gx)(t):t}var Uie=n(96170);function $ie(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Vie="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,qie=hie.GLOBAL_OBJ;var Zie=n(74234);const Hie=(e,t,n,r)=>{let i,o;return a=>{t.value>=0&&(a||r)&&(o=t.value-(i||0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Gie=()=>qie.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Wie=()=>{const e=Gie();return e&&e.activationStart||0},Yie=(e,t)=>{const n=Gie();let r="navigate";n&&(qie.document&&qie.document.prerendering||Wie()>0?r="prerender":qie.document&&qie.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Kie=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(ag){}},Xie=e=>{const t=t=>{("pagehide"===t.type||qie.document&&"hidden"===qie.document.visibilityState)&&e(t)};qie.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Jie=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Qie=-1;const eoe=e=>{"hidden"===qie.document.visibilityState&&Qie>-1&&(Qie="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",eoe,!0),removeEventListener("prerenderingchange",eoe,!0))},toe=()=>(qie.document&&Qie<0&&(Qie="hidden"!==qie.document.visibilityState||qie.document.prerendering?1/0:0,addEventListener("visibilitychange",eoe,!0),addEventListener("prerenderingchange",eoe,!0)),{get firstHiddenTime(){return Qie}}),noe=e=>{qie.document&&qie.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},roe=[1800,3e3],ioe=[.1,.25],ooe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};noe((()=>{const n=toe(),r=Yie("FCP");let i;const o=Kie("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Wie(),0),r.entries.push(e),i(!0)))}))}));o&&(i=Hie(e,r,roe,t.reportAllChanges))}))}(Jie((()=>{const n=Yie("CLS",0);let r,i=0,o=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}})),i>n.value&&(n.value=i,n.entries=o,r())},s=Kie("layout-shift",a);s&&(r=Hie(e,n,ioe,t.reportAllChanges),Xie((()=>{a(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},aoe=[100,300],soe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};noe((()=>{const n=toe(),r=Yie("FID");let i;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},a=e=>{e.forEach(o)},s=Kie("first-input",a);i=Hie(e,r,aoe,t.reportAllChanges),s&&Xie(Jie((()=>{a(s.takeRecords()),s.disconnect()})))}))};let loe=0,coe=1/0,uoe=0;const doe=e=>{e.forEach((e=>{e.interactionId&&(coe=Math.min(coe,e.interactionId),uoe=Math.max(uoe,e.interactionId),loe=uoe?(uoe-coe)/7+1:0)}))};let poe;const hoe=()=>{"interactionCount"in performance||poe||(poe=Kie("event",doe,{type:"event",buffered:!0,durationThreshold:0}))},foe=[200,500],moe=()=>(poe?loe:performance.interactionCount||0)-0,goe=[],yoe={},voe=e=>{const t=goe[goe.length-1],n=yoe[e.interactionId];if(n||goe.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};yoe[t.id]=t,goe.push(t)}goe.sort(((e,t)=>t.latency-e.latency)),goe.splice(10).forEach((e=>{delete yoe[e.id]}))}},boe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};noe((()=>{hoe();const n=Yie("INP");let r;const i=e=>{e.forEach((e=>{if(e.interactionId&&voe(e),"first-input"===e.entryType){!goe.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&voe(e)}}));const t=(()=>{const e=Math.min(goe.length-1,Math.floor(moe()/50));return goe[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=Kie("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Hie(e,n,foe,t.reportAllChanges),o&&("PerformanceEventTiming"in qie&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),Xie((()=>{i(o.takeRecords()),n.value<0&&moe()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},_oe=[2500,4e3],woe={},xoe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};noe((()=>{const n=toe(),r=Yie("LCP");let i;const o=e=>{const t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wie(),0),r.entries=[t],i())},a=Kie("largest-contentful-paint",o);if(a){i=Hie(e,r,_oe,t.reportAllChanges);const n=Jie((()=>{woe[r.id]||(o(a.takeRecords()),a.disconnect(),woe[r.id]=!0,i(!0))}));["keydown","click"].forEach((e=>{qie.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),Xie(n)}}))},koe=[800,1800],Coe=e=>{qie.document&&qie.document.prerendering?noe((()=>Coe(e))):qie.document&&"complete"!==qie.document.readyState?addEventListener("load",(()=>Coe(e)),!0):setTimeout(e,0)},Soe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Yie("TTFB"),r=Hie(e,n,koe,t.reportAllChanges);Coe((()=>{const e=Gie();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-Wie(),0),n.entries=[e],r(!0)}}))},Moe={},Toe={};let Eoe,Poe,Ioe,Ooe,Loe;function Roe(e){return qoe("cls",e,zoe,Eoe,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function joe(e){return qoe("lcp",e,Uoe,Ioe,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Doe(e){return qoe("fid",e,Boe,Poe)}function Aoe(e){return qoe("inp",e,Voe,Loe)}function Noe(e,t){return Zoe(e,t),Toe[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Kie(e,(t=>{Foe(e,{entries:t})}),t)}(e),Toe[e]=!0),Hoe(e,t)}function Foe(e,t){const n=Moe[e];if(n&&n.length)for(const r of n)try{r(t)}catch(ag){Vie&&eie.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,Zie.$P)(r)}\nError:`,ag)}}function zoe(){return ooe((e=>{Foe("cls",{metric:e}),Eoe=e}),{reportAllChanges:!0})}function Boe(){return soe((e=>{Foe("fid",{metric:e}),Poe=e}))}function Uoe(){return xoe((e=>{Foe("lcp",{metric:e}),Ioe=e}),{reportAllChanges:!0})}function $oe(){return Soe((e=>{Foe("ttfb",{metric:e}),Ooe=e}))}function Voe(){return boe((e=>{Foe("inp",{metric:e}),Loe=e}))}function qoe(e,t,n,r){let i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return Zoe(e,t),Toe[e]||(i=n(),Toe[e]=!0),r&&t({metric:r}),Hoe(e,t,o?i:void 0)}function Zoe(e,t){Moe[e]=Moe[e]||[],Moe[e].push(t)}function Hoe(e,t,n){return()=>{n&&n();const r=Moe[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function Goe(e){return"number"===typeof e&&isFinite(e)}function Woe(e,t,n,r){let{...i}=r;const o=(0,Gre.XU)(e).start_timestamp;return o&&o>t&&"function"===typeof e.updateStartTime&&e.updateStartTime(t),Die(e,(()=>{const e=jie({startTime:t,...i});return e&&e.end(n),e}))}function Yoe(){return qie&&qie.addEventListener&&qie.performance}function Koe(e){return e/1e3}const Xoe=2147483647;let Joe,Qoe,eae=0,tae={};function nae(){const e=Yoe();if(e&&oie.Z1){e.mark&&qie.performance.mark("sentry-tracing-init");const t=Doe((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];if(!n)return;const r=Koe(oie.Z1),i=Koe(n.startTime);Vie&&eie.kg.log("[Measurements] Adding FID"),tae.fid={value:t.value,unit:"millisecond"},tae["mark.fid"]={value:r+i,unit:"second"}})),n=Roe((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(Vie&&eie.kg.log("[Measurements] Adding CLS"),tae.cls={value:t.value,unit:""},Qoe=n)}),!0),r=joe((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(Vie&&eie.kg.log("[Measurements] Adding LCP"),tae.lcp={value:t.value,unit:"millisecond"},Joe=n)}),!0),i=function(){return e=e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(Vie&&eie.kg.log("[Measurements] Adding TTFB"),tae.ttfb={value:t.value,unit:"millisecond"})},qoe("ttfb",e,$oe,Ooe);var e}();return()=>{t(),n(),r(),i()}}return()=>{}}function rae(e){const t=Yoe();if(!t||!qie.performance.getEntries||!oie.Z1)return;Vie&&eie.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=Koe(oie.Z1),r=t.getEntries(),{op:i,start_timestamp:o}=(0,Gre.XU)(e);if(r.slice(eae).forEach((t=>{const r=Koe(t.startTime),a=Koe(t.duration);if(!("navigation"===i&&o&&n+r<o))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{iae(e,t,r,n)})),iae(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),iae(e,t,"fetch",n,"cache","domainLookupStart"),iae(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Woe(e,n+Koe(t.requestStart),n+Koe(t.responseEnd),{op:"browser",name:"request",attributes:{[Kre.S3]:"auto.ui.browser.metrics"}}),Woe(e,n+Koe(t.responseStart),n+Koe(t.responseEnd),{op:"browser",name:"response",attributes:{[Kre.S3]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const o=i+n,a=o+r;Woe(e,o,a,{name:t.name,op:t.entryType,attributes:{[Kre.S3]:"auto.resource.browser.metrics"}})}(e,t,r,a,n);const i=toe(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(Vie&&eie.kg.log("[Measurements] Adding FP"),tae.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(Vie&&eie.kg.log("[Measurements] Adding FCP"),tae.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=$ie(n),s={[Kre.S3]:"auto.resource.browser.metrics"};oae(s,t,"transferSize","http.response_transfer_size"),oae(s,t,"encodedBodySize","http.response_content_length"),oae(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop());a.host&&(s["server.address"]=a.host);s["url.same_origin"]=n.includes(qie.location.origin);const l=o+r,c=l+i;Woe(e,l,c,{name:n.replace(qie.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}(e,t,t.name,r,a,n)}})),eae=Math.max(r.length-1,0),function(e){const t=qie.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Goe(n.rtt)&&(tae["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Goe(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);Goe(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){!function(e){const t=Gie();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Vie&&eie.kg.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(tae),["fcp","fp","lcp"].forEach((e=>{if(!tae[e]||!o||n>=o)return;const t=tae[e].value,r=n+Koe(t),i=Math.abs(1e3*(r-o)),a=i-t;Vie&&eie.kg.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${a})`),tae[e].value=i}));const t=tae["mark.fid"];t&&tae.fid&&(Woe(e,t.value,t.value+Koe(tae.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Kre.S3]:"auto.ui.browser.metrics"}}),delete tae["mark.fid"]),"fcp"in tae||delete tae.cls,Object.keys(tae).forEach((e=>{!function(e,t,n){const r=(0,Gre.HN)(),i=r&&(0,Gre.Gx)(r);i&&i.addEvent(e,{[Kre.Wb]:t,[Kre.E1]:n})}(e,tae[e].value,tae[e].unit)})),function(e){Joe&&(Vie&&eie.kg.log("[Measurements] Adding LCP Data"),Joe.element&&e.setAttribute("lcp.element",(0,Uie.Rt)(Joe.element)),Joe.id&&e.setAttribute("lcp.id",Joe.id),Joe.url&&e.setAttribute("lcp.url",Joe.url.trim().slice(0,200)),e.setAttribute("lcp.size",Joe.size));Qoe&&Qoe.sources&&(Vie&&eie.kg.log("[Measurements] Adding CLS Data"),Qoe.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,Uie.Rt)(t.node)))))}(e)}Joe=void 0,Qoe=void 0,tae={}}function iae(e,t,n,r,i,o){const a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Woe(e,r+Koe(s),r+Koe(a),{op:"browser",name:i||n,attributes:{[Kre.S3]:"auto.ui.browser.metrics"}})}function oae(e,t,n,r){const i=t[n];null!=i&&i<Xoe&&(e[r]=i)}const aae=[],sae=new Map;function lae(){if(Yoe()&&oie.Z1){const e=Aoe((e=>{let{metric:t}=e;const n=(0,yo.s3)();if(!n||void 0==t.value)return;const r=t.entries.find((e=>e.duration===t.value&&cae[e.name]));if(!r)return;const{interactionId:i}=r,o=cae[r.name],a=n.getOptions(),s=Koe(oie.Z1+r.startTime),l=Koe(t.value),c=(0,yo.nZ)(),u=(0,Gre.HN)(),d=u?(0,Gre.Gx)(u):void 0,p=(null!=i?sae.get(i):void 0)||(d?(0,Gre.XU)(d).description:c.getScopeData().transactionName),h=c.getUser(),f=n.getIntegrationByName("Replay"),m=f&&f.getReplayId(),g=void 0!==h?h.email||h.id||h.ip_address:void 0;let y;try{y=c.getScopeData().contexts.profile.profile_id}catch(ag){}const v=jie({name:(0,Uie.Rt)(r.target),op:`ui.interaction.${o}`,attributes:(0,aie.Jr)({release:a.release,environment:a.environment,transaction:p,[Kre.JQ]:t.value,[Kre.S3]:"auto.http.browser.inp",user:g||void 0,profile_id:y||void 0,replay_id:m||void 0}),startTime:s,experimental:{standalone:!0}});v.addEvent("inp",{[Kre.E1]:"millisecond",[Kre.Wb]:t.value}),v.end(s+l)}));return()=>{e()}}return()=>{}}const cae={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};const uae={},dae={};function pae(e,t){uae[e]=uae[e]||[],uae[e].push(t)}function hae(e,t){dae[e]||(t(),dae[e]=!0)}function fae(e,t){const n=e&&uae[e];if(n)for(const r of n)try{r(t)}catch(ag){sie.X&&eie.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,Zie.$P)(r)}\nError:`,ag)}}const mae=hie.GLOBAL_OBJ;let gae;function yae(e){const t="history";pae(t,e),hae(t,vae)}function vae(){if(!function(){const e=mae.chrome,t=e&&e.app&&e.app.runtime,n="history"in mae&&!!mae.history.pushState&&!!mae.history.replaceState;return!t&&n}())return;const e=qie.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.length>2?n[2]:void 0;if(i){const e=gae,t=String(i);gae=t;fae("history",{from:e,to:t})}return e.apply(this,n)}}qie.onpopstate=function(){const t=qie.location.href,n=gae;gae=t;if(fae("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}catch(a){}},(0,aie.hl)(qie.history,"pushState",t),(0,aie.hl)(qie.history,"replaceState",t)}var bae=n(828);const _ae={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},wae="heartbeatFailed",xae="idleTimeout",kae="finalTimeout",Cae="externalFinish";function Sae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Map;let r,i=!1,o=Cae,a=!t.disableAutoFinish;const{idleTimeout:s=_ae.idleTimeout,finalTimeout:l=_ae.finalTimeout,childSpanTimeout:c=_ae.childSpanTimeout,beforeSpanEnd:u}=t,d=(0,yo.s3)();if(!d||!Xre())return new iie;const p=(0,yo.nZ)(),h=(0,Gre.HN)(),f=function(e){const t=jie(e);return(0,Jre.D)((0,yo.nZ)(),t),tie.X&&eie.kg.log("[Tracing] Started span is an idle span"),t}(e);function m(){r&&(clearTimeout(r),r=void 0)}function g(e){m(),r=setTimeout((()=>{!i&&0===n.size&&a&&(o=xae,f.end(e))}),s)}function y(e){r=setTimeout((()=>{!i&&a&&(o=wae,f.end(e))}),c)}function v(e){i=!0,n.clear(),(0,Jre.D)(p,h);const t=(0,Gre.XU)(f),{start_timestamp:r}=t;if(!r)return;(t.data||{})[Kre.ju]||f.setAttribute(Kre.ju,o),eie.kg.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,Gre.Dp)(f).filter((e=>e!==f));let c=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:bae.jt,message:"cancelled"}),t.end(e),tie.X&&eie.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,Gre.XU)(t),{timestamp:r=0,start_timestamp:i=0}=n,o=i<=e,a=r-i<=(l+s)/1e3;if(tie.X){const e=JSON.stringify(t,void 0,2);o?a||eie.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):eie.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&o||((0,Gre.ed)(f,t),c++)})),c>0&&f.setAttribute("sentry.idle_span_discarded_spans",c)}return f.end=new Proxy(f.end,{apply(e,t,n){u&&u(f);const[r,...i]=n,o=r||(0,oie.ph)(),a=(0,Gre.$k)(o),s=(0,Gre.Dp)(f).filter((e=>e!==f));if(!s.length)return v(a),Reflect.apply(e,t,[a,...i]);const c=s.map((e=>(0,Gre.XU)(e).timestamp)).filter((e=>!!e)),d=c.length?Math.max(...c):void 0,p=(0,Gre.XU)(f).start_timestamp,h=Math.min(p?p+l/1e3:1/0,Math.max(p||-1/0,Math.min(a,d||1/0)));return v(h),Reflect.apply(e,t,[h,...i])}}),d.on("spanStart",(e=>{if(i||e===f||(0,Gre.XU)(e).timestamp)return;var t;(0,Gre.Dp)(f).includes(e)&&(t=e.spanContext().spanId,m(),n.set(t,!0),y((0,oie.ph)()+c/1e3))})),d.on("spanEnd",(e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&g((0,oie.ph)()+s/1e3))})),d.on("idleSpanEnableAutoFinish",(e=>{e===f&&(a=!0,g(),n.size&&y())})),t.disableAutoFinish||g(),setTimeout((()=>{i||(f.setStatus({code:bae.jt,message:"deadline_exceeded"}),o=kae,f.end())}),l),f}let Mae=null;function Tae(e){const t="error";pae(t,e),hae(t,Eae)}function Eae(){Mae=hie.GLOBAL_OBJ.onerror,hie.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return fae("error",{column:r,error:i,line:n,msg:e,url:t}),!(!Mae||Mae.__SENTRY_LOADER__)&&Mae.apply(this,arguments)},hie.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let Pae=null;function Iae(e){const t="unhandledrejection";pae(t,e),hae(t,Oae)}function Oae(){Pae=hie.GLOBAL_OBJ.onunhandledrejection,hie.GLOBAL_OBJ.onunhandledrejection=function(e){return fae("unhandledrejection",e),!(Pae&&!Pae.__SENTRY_LOADER__)||Pae.apply(this,arguments)},hie.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Lae=!1;function Rae(){const e=(0,Gre.HN)(),t=e&&(0,Gre.Gx)(e);if(t){const e="internal_error";tie.X&&eie.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:bae.jt,message:e})}}Rae.tag="sentry_tracingErrorCallback";var jae=n(10003),Dae=n(67054);const Aae="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Nae=hie.GLOBAL_OBJ;let Fae=0;function zae(){return Fae>0}function Bae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,aie.HK)(e))return e}catch(ag){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const i=r.map((e=>Bae(e,t)));return e.apply(this,i)}catch(i){throw Fae++,setTimeout((()=>{Fae--})),(0,yo.$e)((e=>{e.addEventProcessor((e=>(t.mechanism&&((0,rie.Db)(e,void 0,void 0),(0,rie.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),(0,go.Tb)(i)})),i}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}(0,aie.$Q)(r,e),(0,aie.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}var Uae=n(75754);const $ae="__sentry_xhr_v3__";function Vae(e){pae("xhr",e),hae("xhr",qae)}function qae(){if(!qie.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,aie.hl)(e,"open",(function(e){return function(){const t=1e3*(0,oie.ph)();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=(0,Uae.HD)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,Uae.HD)(e))return e;try{return e.toString()}catch(wH){}return}(r[1]);if(!o||!a)return e.apply(this,r);this[$ae]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[$ae];if(e&&4===this.readyState){try{e.status_code=this.status}catch(ag){}fae("xhr",{endTimestamp:1e3*(0,oie.ph)(),startTimestamp:t,xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,aie.hl)(this,"onreadystatechange",(function(e){return function(){s();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}})):this.addEventListener("readystatechange",s),(0,aie.hl)(this,"setRequestHeader",(function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const[i,o]=n,a=this[$ae];return a&&(0,Uae.HD)(i)&&(0,Uae.HD)(o)&&(a.request_headers[i.toLowerCase()]=o),e.apply(this,n)}})),e.apply(this,r)}})),(0,aie.hl)(e,"send",(function(e){return function(){const t=this[$ae];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!t)return e.apply(this,r);void 0!==r[0]&&(t.body=r[0]);return fae("xhr",{startTimestamp:1e3*(0,oie.ph)(),xhr:this}),e.apply(this,r)}}))}var Zae=n(43014);function Hae(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(!e.fetchData)return;const o=Xre()&&t(e.fetchData.url);if(e.endTimestamp&&o){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){(0,bae.Q0)(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:bae.jt,message:"internal_error"});e.end()}(n,e),delete r[t]))}const a=(0,yo.nZ)(),s=(0,yo.s3)(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(ag){return}}(c),d=u?$ie(u).host:void 0,p=!!(0,Gre.HN)(),h=o&&p?jie({name:`${l} ${c}`,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[Kre.S3]:i,[Kre.$J]:"http.client"}}):new iie;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const o=(0,yo.aF)(),{traceId:a,spanId:s,sampled:l,dsc:c}={...o.getPropagationContext(),...n.getPropagationContext()},u=i?(0,Gre.Hb)(i):(0,jae.$p)(a,s,l),d=(0,Zae.IQ)(c||(i?(0,Qre.jC)(i):(0,Qre._l)(a,t))),p=r.headers||("undefined"!==typeof Request&&(0,Uae.V9)(e,Request)?e.headers:void 0);if(p){if("undefined"!==typeof Headers&&(0,Uae.V9)(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",u),d&&e.append(Zae.bU,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",u]];return d&&e.push([Zae.bU,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:d}}(t,s,a,n,Xre()&&p?h:void 0)}return h}const Gae=hie.GLOBAL_OBJ;function Wae(){if(!("fetch"in Gae))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(ag){return!1}}function Yae(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Kae(e){const t="fetch";pae(t,e),hae(t,Xae)}function Xae(){(function(){if("string"===typeof EdgeRuntime)return!0;if(!Wae())return!1;if(Yae(Gae.fetch))return!0;let e=!1;const t=Gae.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Yae(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){sie.X&&eie.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e})()&&(0,aie.hl)(hie.GLOBAL_OBJ,"fetch",(function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Qae(t),method:Jae(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Qae(t),method:Jae(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*(0,oie.ph)()};fae("fetch",{...a});const s=(new Error).stack;return e.apply(hie.GLOBAL_OBJ,n).then((e=>(fae("fetch",{...a,endTimestamp:1e3*(0,oie.ph)(),response:e}),e)),(e=>{throw fae("fetch",{...a,endTimestamp:1e3*(0,oie.ph)(),error:e}),(0,Uae.VZ)(e)&&void 0===e.stack&&(e.stack=s,(0,aie.xp)(e,"framesToPop",1)),e}))}}))}function Jae(e,t){return!!e&&"object"===typeof e&&!!e[t]}function Qae(e){return"string"===typeof e?e:e?Jae(e,"url")?e.url:e.toString?e.toString():"":""}var ese=n(79268);const tse={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function nse(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:i,tracePropagationTargets:o}={traceFetch:tse.traceFetch,traceXHR:tse.traceXHR,...e},a="function"===typeof r?r:e=>!0,s=e=>function(e,t){const n=Nae.location&&Nae.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(ag){return!1}const o=r.origin===i;return t?(0,ese.U0)(r.toString(),t)||o&&(0,ese.U0)(r.pathname,t):o}{const n=!!e.match(/^\/(?!\/)/);return t?(0,ese.U0)(e,t):n}}(e,o),l={};t&&Kae((e=>{const t=Hae(e,a,s,l);if(t){const n=ose(e.fetchData.url),r=n?$ie(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&rse(t)})),n&&Vae((e=>{const t=function(e,t,n,r){const i=e.xhr,o=i&&i[$ae];if(!i||i.__sentry_own_request__||!o)return;const a=Xre()&&t(o.url);if(e.endTimestamp&&a){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==o.status_code&&((0,bae.Q0)(t,o.status_code),t.end(),delete r[e]))}const s=ose(o.url),l=s?$ie(s).host:void 0,c=!!(0,Gre.HN)(),u=a&&c?jie({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":s,url:o.url,"server.address":l,[Kre.S3]:"auto.http.browser",[Kre.$J]:"http.client"}}):new iie;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;const d=(0,yo.s3)();i.setRequestHeader&&n(o.url)&&d&&function(e,t,n){const r=(0,yo.nZ)(),i=(0,yo.aF)(),{traceId:o,spanId:a,sampled:s,dsc:l}={...i.getPropagationContext(),...r.getPropagationContext()},c=n&&Xre()?(0,Gre.Hb)(n):(0,jae.$p)(o,a,s),u=(0,Zae.IQ)(l||(n?(0,Qre.jC)(n):(0,Qre._l)(o,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Zae.bU,n)}catch(Av){}}(e,c,u)}(i,d,Xre()&&c?u:void 0);return u}(e,a,s,l);i&&t&&rse(t)}))}function rse(e){const{url:t}=(0,Gre.XU)(e).data||{};if(!t||"string"!==typeof t)return;const n=Noe("resource",(r=>{let{entries:i}=r;i.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!oie.Z1)return r;return[...r,["http.request.redirect_start",ise(e.redirectStart)],["http.request.fetch_start",ise(e.fetchStart)],["http.request.domain_lookup_start",ise(e.domainLookupStart)],["http.request.domain_lookup_end",ise(e.domainLookupEnd)],["http.request.connect_start",ise(e.connectStart)],["http.request.secure_connection_start",ise(e.secureConnectionStart)],["http.request.connection_end",ise(e.connectEnd)],["http.request.request_start",ise(e.requestStart)],["http.request.response_start",ise(e.responseStart)],["http.request.response_end",ise(e.responseEnd)]]}(r);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function ise(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((oie.Z1||performance.timeOrigin)+e)/1e3}function ose(e){try{return new URL(e,Nae.location.origin).href}catch(wH){return}}const ase={..._ae,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...tse};function sse(e){const t=(0,Uie.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function lse(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}const cse=100;function use(e,t){const n=(0,yo.s3)(),r=(0,yo.aF)();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=cse}=n.getOptions();if(o<=0)return;const a={timestamp:(0,oie.yW)(),...e},s=i?(0,eie.Cf)((()=>i(a,t))):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function dse(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return pse(e)===pse(t)}(e,r)}function pse(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var hse=n(42639),fse=n(39579);const mse=6e4;function gse(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>n}function yse(e,t){let{statusCode:n,headers:r}=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[e,t,,,n]=l.split(":",5),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(t)for(const s of t.split(";"))"metric_bucket"===s&&n&&!n.split(";").includes("custom")||(o[s]=i+a);else o.all=i+a}else s?o.all=i+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?mse:r-t}(s,i):429===n&&(o.all=i+6e4);return o}function vse(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function bse(){return"undefined"!==typeof window&&(!vse()||void 0!==hie.GLOBAL_OBJ.process&&"renderer"===hie.GLOBAL_OBJ.process.type)}const _se={};function wse(e){const t=_se[e];if(t)return t;let n=qie[e];if(Yae(n))return _se[e]=n.bind(qie);const r=qie.document;if(r&&"function"===typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(ag){Vie&&eie.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,ag)}return n?_se[e]=n.bind(qie):n}function xse(e){_se[e]=void 0}function kse(){return wse("setTimeout")(...arguments)}const Cse=1e3;let Sse,Mse,Tse;function Ese(e){pae("dom",e),hae("dom",Pse)}function Pse(){if(!qie.document)return;const e=fae.bind(null,"dom"),t=Ise(e,!0);qie.document.addEventListener("click",t,!1),qie.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=qie[t]&&qie[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,aie.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=Ise(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(ag){}return t.call(this,n,r,i)}})),(0,aie.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(ag){}return e.call(this,t,n,r)}})))}))}function Ise(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(ag){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,aie.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,aie.xp)(r,"_sentryId",(0,rie.DM)());const i="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Mse)return!1;try{if(!e.target||e.target._sentryId!==Tse)return!1}catch(ag){}return!0}(n)){e({event:n,name:i,global:t}),Mse=n.type,Tse=r?r._sentryId:void 0}clearTimeout(Sse),Sse=qie.setTimeout((()=>{Tse=void 0,Mse=void 0}),Cse)}}const Ose=hie.GLOBAL_OBJ,Lse="sentryReplaySession",Rse="replay_event",jse="Unable to send Replay",Dse=5e3,Ase=5500,Nse=15e4,Fse=5e3,zse=2e7,Bse=4999,Use=36e5;function $se(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}var Vse;function qse(e){const t=$se([e,"optionalAccess",e=>e.host]);return Boolean($se([t,"optionalAccess",e=>e.shadowRoot])===e)}function Zse(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Hse(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Gse).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function Gse(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Hse(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Vse||(Vse={}));class Wse{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=$se([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Yse(e){let{maskInputOptions:t,tagName:n,type:r}=e;return"OPTION"===n&&(n="SELECT"),Boolean(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function Kse(e){let{isMasked:t,element:n,value:r,maskInputFn:i}=e,o=r||"";return t?(i&&(o=i(o,n)),"*".repeat(o.length)):o}function Xse(e){return e.toLowerCase()}function Jse(e){return e.toUpperCase()}const Qse="__rrweb_original__";function ele(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Xse(t):null}function tle(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let nle=1;const rle=new RegExp("[^a-z0-9-_:]"),ile=-2;function ole(){return nle++}let ale,sle;const lle=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cle=/^(?:[a-z+]+:)?\/\//i,ule=/^www\..*/i,dle=/^(data:)([^,]*),(.*)/i;function ple(e,t){return(e||"").replace(lle,((e,n,r,i,o,a)=>{const s=r||o||a,l=n||i||"";if(!s)return e;if(cle.test(s)||ule.test(s))return`url(${l}${s}${l})`;if(dle.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const t of u)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${l}${c.join("/")}${l})`}))}const hle=/^[^ \t\n\r\u000c]+/,fle=/^[, \t\n\r\u000c]+/;function mle(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function gle(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function yle(){const e=document.createElement("a");return e.href="",e.href}function vle(e,t,n,r,i,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?mle(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(fle),!(n>=t.length);){let o=r(hle);if(","===o.slice(-1))o=mle(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=mle(e,o);let a=!1;for(;;){const e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?ple(r,yle()):"object"===t&&"data"===n?mle(e,r):"function"===typeof o?o(n,r,i):r:mle(e,r):r}function ble(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _le(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_le(e.parentNode,t,n,r+1):-1}function wle(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(wH){return!1}}}function xle(e,t,n,r,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if(l=_le(a,wle(r,i)),l<0)return!0;s=_le(a,wle(t,n),l>=0?l:1/0)}else{if(s=_le(a,wle(t,n)),s<0)return!1;l=_le(a,wle(r,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(ag){}return!!o}function kle(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,x=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Vse.Document,childNodes:[],compatMode:e.compatMode}:{type:Vse.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Vse.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"===typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(ag){}return!1}(e,r,i,o),x=function(e){if(e instanceof HTMLFormElement)return"form";const t=Xse(e.tagName);return rle.test(t)?"div":t}(e);let k={};const C=e.attributes.length;for(let M=0;M<C;M++){const t=e.attributes[M];t.name&&!ble(x,t.name,t.value)&&(k[t.name]=vle(n,x,Xse(t.name),t.value,e,l))}if("link"===x&&a){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Hse(t)),r&&(delete k.rel,delete k.href,k._cssText=ple(r,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Hse(e.sheet);t&&(k._cssText=ple(t,yle()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){const t=e,n=ele(t),r=tle(t,Jse(x),n),i=t.checked;if("submit"!==n&&"button"!==n&&r){const e=xle(t,y,b,v,_,Yse({type:n,tagName:Jse(x),maskInputOptions:s}));k.value=Kse({isMasked:e,element:t,value:r,maskInputFn:c})}i&&(k.checked=i)}"option"===x&&(e.selected&&!s.select?k.selected=!0:delete k.selected);if("canvas"===x&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const i=t.getImageData,o=Qse in i?i[Qse]:i;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(k.rr_dataURL=t)}if("img"===x&&d){ale||(ale=n.createElement("canvas"),sle=ale.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{ale.width=t.naturalWidth,ale.height=t.naturalHeight,sle.drawImage(t,0,0),k.rr_dataURL=ale.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==x&&"video"!==x||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==x||h(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);let S;try{customElements.get(x)&&(S=!0)}catch(ag){}return{type:Vse.Element,tagName:x,attributes:k,childNodes:[],isSVG:gle(e)||void 0,needBlock:w,rootId:m,isCustom:S}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:x,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||$se([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Hse(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}p=ple(p,yle())}f&&(p="SCRIPT_PLACEHOLDER");const g=xle(e,r,o,i,a,n);h||f||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=Kse({isMasked:xle(e,r,o,i,a,Yse({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})}return{type:Vse.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:x});case e.CDATA_SECTION_NODE:return{type:Vse.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Vse.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function Cle(e){return void 0===e||null===e?"":e.toLowerCase()}function Sle(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:C=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:E=!1}=t;let{preserveWhiteSpace:P=!0}=t;const I=kle(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:E});if(!I)return console.warn(e,"not serialized"),null;let O;O=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Vse.Comment)return!0;if(e.type===Vse.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Cle(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Cle(e.attributes.name)||"icon"===Cle(e.attributes.rel)||"apple-touch-icon"===Cle(e.attributes.rel)||"shortcut icon"===Cle(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Cle(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Cle(e.attributes.property).match(/^(og|twitter|fb):/)||Cle(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Cle(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Cle(e.attributes.name)||"googlebot"===Cle(e.attributes.name)||"bingbot"===Cle(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Cle(e.attributes.name)||"generator"===Cle(e.attributes.name)||"framework"===Cle(e.attributes.name)||"publisher"===Cle(e.attributes.name)||"progid"===Cle(e.attributes.name)||Cle(e.attributes.property).match(/^article:/)||Cle(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Cle(e.attributes.name)||"yandex-verification"===Cle(e.attributes.name)||"csrf-token"===Cle(e.attributes.name)||"p:domain_verify"===Cle(e.attributes.name)||"verify-v1"===Cle(e.attributes.name)||"verification"===Cle(e.attributes.name)||"shopify-checkout-api-token"===Cle(e.attributes.name)))return!0}}return!1}(I,v)&&(P||I.type!==Vse.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?ole():ile;const L=Object.assign(I,{id:O});if(r.add(e,L),O===ile)return null;x&&x(e);let R=!p;if(L.type===Vse.Element){R=R&&!L.needBlock,delete L.needBlock;const t=e.shadowRoot;t&&Zse(t)&&(L.isShadowHost=!0)}if((L.type===Vse.Document||L.type===Vse.Element)&&R){v.headWhitespace&&L.type===Vse.Element&&"head"===L.tagName&&(P=!1);const t={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:S,stylesheetLoadTimeout:M,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Sle(n,t);e&&L.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Sle(n,t);r&&(Zse(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}return e.parentNode&&qse(e.parentNode)&&Zse(e.parentNode)&&(L.isShadow=!0),L.type===Vse.Element&&"iframe"===L.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(s){return}if("complete"!==i){const r=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),o=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=Sle(t,{doc:t,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:S,stylesheetLoadTimeout:M,keepIframeSrcFn:T});n&&k(e,n)}}),C),L.type===Vse.Element&&"link"===L.tagName&&"stylesheet"===L.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(a){return}if(r)return;const o=setTimeout((()=>{i||(t(),i=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(S){const t=Sle(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:S,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&S(e,t)}}),M),L}function Mle(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}function Tle(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ele="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Ple={map:{},getId:()=>(console.error(Ele),-1),getNode:()=>(console.error(Ele),null),removeNodeFromMap(){console.error(Ele)},has:()=>(console.error(Ele),!1),reset(){console.error(Ele)}};function Ile(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=0;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const l=Date.now();i||!1!==n.leading||(i=l);const c=t-(l-i),u=this;c<=0||c>t?(r&&(!function(){Kle("clearTimeout")(...arguments)}(r),r=null),i=l,e.apply(u,a)):r||!1===n.trailing||(r=Xle((()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(u,a)}),c))}}function Ole(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Xle((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Ole(e,t,o||{},!0)}function Lle(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(wH){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Ple=new Proxy(Ple,{get:(e,t,n)=>("map"===t&&console.error(Ele),Reflect.get(e,t,n))}));let Rle=Date.now;function jle(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Mle([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Mle([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Mle([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Mle([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Mle([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Mle([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Dle(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ale(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nle(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Fle(e,t,n,r,i){if(!e)return!1;const o=Nle(e);if(!o)return!1;const a=wle(t,n);if(!i){const e=r&&o.matches(r);return a(o)&&!e}const s=_le(o,a);let l=-1;return!(s<0)&&(r&&(l=_le(o,wle(null,r))),s>-1&&l<0||s<l)}function zle(e,t){return t.getId(e)===ile}function Ble(e,t){if(qse(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ble(e.parentNode,t))}function Ule(e){return Boolean(e.changedTouches)}function $le(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Vle(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qle(e){return Boolean(Mle([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Rle=()=>(new Date).getTime());class Zle{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Hle(e){let t=null;return Mle([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Gle(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Hle(n);)n=t;return n}(e);return t.contains(n)}function Wle(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Gle(e))}const Yle={};function Kle(e){const t=Yle[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(ag){}return Yle[e]=r.bind(window)}function Xle(){return Kle("setTimeout")(...arguments)}var Jle=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Jle||{}),Qle=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Qle||{}),ece=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ece||{}),tce=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(tce||{});function nce(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}function rce(e){return"__ln"in e}class ice{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=nce([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&rce(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&rce(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const oce=(e,t)=>`${e}@${t}`;class ace{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new ice,r=e=>{let t=e,n=ile;for(;n===ile;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Wle(i))return;const o=qse(i.parentNode)?this.mirror.getId(Hle(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);const s=Sle(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{$le(e,this.mirror)&&this.iframeManager.addIframe(e),Vle(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qle(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const s of this.movedSet)lce(this.removes,s,this.mirror)&&!this.movedSet.has(s.parentNode)||i(s);for(const s of this.addedSet)uce(this.droppedSet,s)||lce(this.removes,s,this.mirror)?uce(this.movedSet,s)?i(s):this.droppedSet.add(s):i(s);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"===typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!zle(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Fle(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:xle(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Nle(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=ele(t),i=t.tagName;r=tle(t,i,n);const o=Yse({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Kse({isMasked:xle(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Fle(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ble(t.tagName,n)&&(i.attributes[n]=vle(this.doc,Xse(t.tagName),Xse(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(ag){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===o?r:[r,o]:i._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(Fle(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=qse(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Fle(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||zle(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(sce(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Ble(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[oce(n,r)]?sce(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!qse(e.target)||!Zse(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(zle(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[oce(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Fle(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),qle(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function sce(e,t){e.delete(t),t.childNodes.forEach((t=>sce(e,t)))}function lce(e,t,n){return 0!==e.length&&cce(e,t,n)}function cce(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return!!e.some((e=>e.id===i))||cce(e,r,n)}function uce(e,t){return 0!==e.size&&dce(e,t)}function dce(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||dce(e,n))}let pce;function hce(e){pce=e}function fce(){pce=void 0}const mce=e=>{if(!pce)return e;return function(){try{return e(...arguments)}catch(t){if(pce&&!0===pce(t))return()=>{};throw t}}};function gce(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}const yce=[];function vce(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(wH){}return e&&e.target}function bce(e,t){const n=new ace;yce.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=gce([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(mce((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function _ce(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,sampling:s}=e;if(!1===s.mouseInteraction)return()=>{};const l=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(ece).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e])).forEach((e=>{let s=Xse(e);const l=(e=>n=>{const s=vce(n);if(Fle(s,i,o,a,!0))return;let l=null,c=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=tce.Mouse;break;case"touch":l=tce.Touch;break;case"pen":l=tce.Pen}l===tce.Touch?ece[e]===ece.MouseDown?c="TouchStart":ece[e]===ece.MouseUp&&(c="TouchEnd"):tce.Pen}else Ule(n)&&(l=tce.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===tce.Touch||c.startsWith("Mouse")&&l===tce.Mouse)&&(l=null)):ece[e]===ece.Click&&(l=u,u=null);const d=Ule(n)?n.changedTouches[0]:n;if(!d)return;const p=r.getId(s),{clientX:h,clientY:f}=d;mce(t)({type:ece[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})})(e);if(window.PointerEvent)switch(ece[e]){case ece.MouseDown:case ece.MouseUp:s=s.replace("mouse","pointer");break;case ece.TouchStart:case ece.TouchEnd:return}c.push(Tle(s,l,n))})),mce((()=>{c.forEach((e=>e()))}))}function wce(e){let{scrollCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,sampling:s}=e;return Tle("scroll",mce(Ile(mce((e=>{const s=vce(e);if(!s||Fle(s,i,o,a,!0))return;const l=r.getId(s);if(s===n&&n.defaultView){const e=jle(n.defaultView);t({id:l,x:e.left,y:e.top})}else t({id:l,x:s.scrollLeft,y:s.scrollTop})})),s.scroll||100)),n)}const xce=["INPUT","TEXTAREA","SELECT"],kce=new WeakMap;function Cce(e){let{inputCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:p,maskTextClass:h,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:g}=e;function y(e){let t=vce(e);const r=e.isTrusted,d=t&&Jse(t.tagName);if("OPTION"===d&&(t=t.parentElement),!t||!d||xce.indexOf(d)<0||Fle(t,i,o,a,!0))return;const y=t;if(y.classList.contains(s)||l&&y.matches(l))return;const b=ele(t);let _=tle(y,d,b),w=!1;const x=Yse({maskInputOptions:c,tagName:d,type:b}),k=xle(t,h,m,f,g,x);"radio"!==b&&"checkbox"!==b||(w=t.checked),_=Kse({isMasked:k,element:t,value:_,maskInputFn:u}),v(t,p?{text:_,isChecked:w,userTriggered:r}:{text:_,isChecked:w});const C=t.name;"radio"===b&&C&&w&&n.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==t){const t=Kse({isMasked:k,element:e,value:tle(e,d,b),maskInputFn:u});v(e,p?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function v(e,n){const i=kce.get(e);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){kce.set(e,n);const i=r.getId(e);mce(t)({...n,id:i})}}const b=("last"===d.input?["change"]:["input","change"]).map((e=>Tle(e,mce(y),n))),_=n.defaultView;if(!_)return()=>{b.forEach((e=>e()))};const w=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),x=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push(...x.map((e=>Ole(e[0],e[1],{set(){mce(y)({target:this,isTrusted:!1})}},!1,_)))),mce((()=>{b.forEach((e=>e()))}))}function Sce(e){return function(e,t){if(Pce("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Pce("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Pce("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Pce("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Mce(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Tce(e,t){let{mirror:n,stylesheetManager:r}=e,i=null;i="#document"===t.nodeName?n.getId(t):n.getId(t.host);const o="#document"===t.nodeName?gce([t,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):gce([t,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=gce([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(gce([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&o&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return gce([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const t=gce([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==i&&-1!==i)try{r.adoptStyleSheets(e,i)}catch(ag){}return t}}),mce((()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function Ece(e){const t=e.doc.defaultView;if(!t)return()=>{};const n=bce(e,e.doc),r=function(e){let{mousemoveCb:t,sampling:n,doc:r,mirror:i}=e;if(!1===n.mousemove)return()=>{};const o="number"===typeof n.mousemove?n.mousemove:50,a="number"===typeof n.mousemoveCallback?n.mousemoveCallback:500;let s,l=[];const c=Ile(mce((e=>{const n=Date.now()-s;t(l.map((e=>(e.timeOffset-=n,e))),e),l=[],s=null})),a),u=mce(Ile(mce((e=>{const t=vce(e),{clientX:n,clientY:r}=Ule(e)?e.changedTouches[0]:e;s||(s=Rle()),l.push({x:n,y:r,id:i.getId(t),timeOffset:Rle()-s}),c("undefined"!==typeof DragEvent&&e instanceof DragEvent?Qle.Drag:e instanceof MouseEvent?Qle.MouseMove:Qle.TouchMove)})),o,{trailing:!1})),d=[Tle("mousemove",u,r),Tle("touchmove",u,r),Tle("drag",u,r)];return mce((()=>{d.forEach((e=>e()))}))}(e),i=_ce(e),o=wce(e),a=function(e,t){let{viewportResizeCb:n}=e,{win:r}=t,i=-1,o=-1;return Tle("resize",mce(Ile(mce((()=>{const e=Dle(),t=Ale();i===e&&o===t||(n({width:Number(t),height:Number(e)}),i=e,o=t)})),200)),r)}(e,{win:t}),s=Cce(e),l=function(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:i,mirror:o,sampling:a,doc:s}=e;const l=mce((e=>Ile(mce((a=>{const s=vce(a);if(!s||Fle(s,n,r,i,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=s;t({type:e,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})})),a.media||500))),c=[Tle("play",l(0),s),Tle("pause",l(1),s),Tle("seeked",l(2),s),Tle("volumechange",l(3),s),Tle("ratechange",l(4),s)];return mce((()=>{c.forEach((e=>e()))}))}(e),c=function(e,t){let{styleSheetRuleCb:n,mirror:r,stylesheetManager:i}=e,{win:o}=t;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const a=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:mce(((e,t,o)=>{const[a,s]=o,{id:l,styleId:c}=Mce(t,r,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,adds:[{rule:a,index:s}]}),e.apply(t,o)}))});const s=o.CSSStyleSheet.prototype.deleteRule;let l,c;o.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:mce(((e,t,o)=>{const[a]=o,{id:s,styleId:l}=Mce(t,r,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,removes:[{index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.replace&&(l=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:mce(((e,t,o)=>{const[a]=o,{id:s,styleId:l}=Mce(t,r,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,replace:a}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:mce(((e,t,o)=>{const[a]=o,{id:s,styleId:l}=Mce(t,r,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,replaceSync:a}),e.apply(t,o)}))}));const u={};Ice("CSSGroupingRule")?u.CSSGroupingRule=o.CSSGroupingRule:(Ice("CSSMediaRule")&&(u.CSSMediaRule=o.CSSMediaRule),Ice("CSSConditionRule")&&(u.CSSConditionRule=o.CSSConditionRule),Ice("CSSSupportsRule")&&(u.CSSSupportsRule=o.CSSSupportsRule));const d={};return Object.entries(u).forEach((e=>{let[t,o]=e;d[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(d[t].insertRule,{apply:mce(((e,t,o)=>{const[a,s]=o,{id:l,styleId:c}=Mce(t.parentStyleSheet,r,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,adds:[{rule:a,index:[...Sce(t),s||0]}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:mce(((e,t,o)=>{const[a]=o,{id:s,styleId:l}=Mce(t.parentStyleSheet,r,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,removes:[{index:[...Sce(t),a]}]}),e.apply(t,o)}))})})),mce((()=>{o.CSSStyleSheet.prototype.insertRule=a,o.CSSStyleSheet.prototype.deleteRule=s,l&&(o.CSSStyleSheet.prototype.replace=l),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((e=>{let[t,n]=e;n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule}))}))}(e,{win:t}),u=Tce(e,e.doc),d=function(e,t){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:i,stylesheetManager:o}=e,{win:a}=t;const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:mce(((e,t,a)=>{const[l,c,u]=a;if(i.has(l))return s.apply(t,[l,c,u]);const{id:d,styleId:p}=Mce(gce([t,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),r,o.styleMirror);return(d&&-1!==d||p&&-1!==p)&&n({id:d,styleId:p,set:{property:l,value:c,priority:u},index:Sce(t.parentRule)}),e.apply(t,a)}))});const l=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:mce(((e,t,a)=>{const[s]=a;if(i.has(s))return l.apply(t,[s]);const{id:c,styleId:u}=Mce(gce([t,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,remove:{property:s},index:Sce(t.parentRule)}),e.apply(t,a)}))}),mce((()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=l}))}(e,{win:t}),p=e.collectFonts?function(e){let{fontCb:t,doc:n}=e;const r=n.defaultView;if(!r)return()=>{};const i=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,n){const r=new a(e,t,n);return o.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=Lle(n.fonts,"add",(function(e){return function(n){return Xle(mce((()=>{const e=o.get(n);e&&(t(e),o.delete(n))})),0),e.apply(this,[n])}}));return i.push((()=>{r.FontFace=a})),i.push(s),mce((()=>{i.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const l=mce((()=>{const e=t.getSelection();if(!e||s&&gce([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:u,endOffset:d}=a;Fle(s,r,i,o,!0)||Fle(u,r,i,o,!0)||l.push({start:n.getId(s),startOffset:c,end:n.getId(u),endOffset:d})}a({ranges:l})}));return l(),Tle("selectionchange",l)}(e),f=function(e){let{doc:t,customElementCb:n}=e;const r=t.defaultView;return r&&r.customElements?Lle(r.customElements,"define",(function(e){return function(t,r,i){try{n({define:{name:t}})}catch(ag){}return e.apply(this,[t,r,i])}})):()=>{}}(e),m=[];for(const g of e.plugins)m.push(g.observer(g.callback,t,g.options));return mce((()=>{yce.forEach((e=>e.reset())),n.disconnect(),r(),i(),o(),a(),s(),l(),c(),u(),d(),p(),h(),f(),m.forEach((e=>e()))}))}function Pce(e){return"undefined"!==typeof window[e]}function Ice(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Oce{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;const i=r.get(t);return i||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Lce(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}class Rce{constructor(){this.crossOriginIframeMirror=new Oce(ole),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class jce{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Oce(ole),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Oce(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Lce([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Jle.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Jle.IncrementalSnapshot,data:{source:Qle.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Jle.Meta:case Jle.Load:case Jle.DomContentLoaded:return!1;case Jle.Plugin:return t;case Jle.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Jle.IncrementalSnapshot:switch(t.data.source){case Qle.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Qle.Drag:case Qle.TouchMove:case Qle.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Qle.ViewportResize:return!1;case Qle.MediaInteraction:case Qle.MouseInteraction:case Qle.Scroll:case Qle.CanvasMutation:case Qle.Input:return this.replaceIds(t.data,e,["id"]),t;case Qle.StyleSheetRule:case Qle.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Qle.Font:return t;case Qle.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Qle.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Lce([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||"number"===typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Vse.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Dce{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ace{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Zse(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=bce({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(wce({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Xle((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Tce({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Lle(e.prototype,"attachShadow",(function(e){return function(r){const i=e.call(this,r);return this.shadowRoot&&Wle(this)&&n.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(ag){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Nce{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Fce{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Zle,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const i of e){let e;this.styleMirror.has(i)?e=this.styleMirror.getId(i):(e=this.styleMirror.add(i),r.push({styleId:e,rules:Array.from(i.rules||CSSRule,((e,t)=>({rule:Gse(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class zce{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(){Kle("requestAnimationFrame")(...arguments)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Bce,Uce;const $ce=new Wse;function Vce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:x,sampling:k={},dataURLOptions:C={},mousemoveWait:S,recordCanvas:M=!1,recordCrossOriginIframes:T=!1,recordAfter:E=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:P=!1,collectFonts:I=!1,inlineImages:O=!1,plugins:L,keepIframeSrcFn:R=(()=>!1),ignoreCSSAttributes:j=new Set([]),errorHandler:D,onMutation:A,getCanvasManager:N}=e;hce(D);const F=!T||window.parent===window;let z=!1;if(!F)try{window.parent.document&&(z=!1)}catch(ag){z=!0}if(F&&!t)throw new Error("emit function is required");void 0!==S&&void 0===k.mousemove&&(k.mousemove=S),$ce.reset();const B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},U=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let $;!function(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do{if(e===i)return!0}while(i=i&&i.parentNode);return!1})}();let V=0;const q=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!z&&(e=x(e)),e};Bce=(e,i)=>{const o=e;if(o.timestamp=Rle(),!lse([yce,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||o.type===Jle.FullSnapshot||o.type===Jle.IncrementalSnapshot&&o.data.source===Qle.Mutation||yce.forEach((e=>e.unfreeze())),F)lse([t,"optionalCall",e=>e(q(o),i)]);else if(z){const e={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===Jle.FullSnapshot)$=o,V=0;else if(o.type===Jle.IncrementalSnapshot){if(o.data.source===Qle.Mutation&&o.data.isAttachIframe)return;V++;const e=r&&V>=r,t=n&&$&&o.timestamp-$.timestamp>n;(e||t)&&Q(!0)}};const Z=e=>{Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.Mutation,...e}})},H=e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.Scroll,...e}}),G=e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.CanvasMutation,...e}}),W=new Fce({mutationCb:Z,adoptedStyleSheetCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.AdoptedStyleSheet,...e}})}),Y="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Rce:new jce({mirror:$ce,mutationCb:Z,stylesheetManager:W,recordCrossOriginIframes:T,wrappedEmit:Bce});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:$ce,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const K=new zce,X=function(e,t){try{return e?e(t):new Nce}catch(wH){return console.warn("Unable to initialize CanvasManager"),new Nce}}(N,{mirror:$ce,win:window,mutationCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.CanvasMutation,...e}}),recordCanvas:M,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:w,sampling:k.canvas,dataURLOptions:C,errorHandler:D}),J="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Dce:new Ace({mutationCb:Z,scrollCb:H,bypassOptions:{onMutation:A,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:B,dataURLOptions:C,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:M,inlineImages:O,sampling:k,slimDOMOptions:U,iframeManager:Y,stylesheetManager:W,canvasManager:X,keepIframeSrcFn:R,processedNodeManager:K},mirror:$ce}),Q=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Bce({type:Jle.Meta,data:{href:window.location.href,width:Ale(),height:Dle()}},e),W.reset(),J.init(),yce.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Wse,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:k,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:M=(()=>!1)}=t||{};return Sle(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:h,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:k,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:M,newlyAddedElement:!1})}(document,{mirror:$ce,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:B,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:U,dataURLOptions:C,recordCanvas:M,inlineImages:O,onSerialize:e=>{$le(e,$ce)&&Y.addIframe(e),Vle(e,$ce)&&W.trackLinkElement(e),qle(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{W.attachLinkElement(e,t)},keepIframeSrcFn:R});if(!t)return console.warn("Failed to snapshot the document");Bce({type:Jle.FullSnapshot,data:{node:t,initialOffset:jle(window)}}),yce.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,$ce.getId(document))};Uce=Q;try{const e=[],t=e=>mce(Ece)({onMutation:A,mutationCb:Z,mousemoveCb:(e,t)=>Bce({type:Jle.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.MouseInteraction,...e}}),scrollCb:H,viewportResizeCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.ViewportResize,...e}}),inputCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.Input,...e}}),mediaInteractionCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.MediaInteraction,...e}}),styleSheetRuleCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.StyleSheetRule,...e}}),styleDeclarationCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.Font,...e}}),selectionCb:e=>{Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.Selection,...e}})},customElementCb:e=>{Bce({type:Jle.IncrementalSnapshot,data:{source:Qle.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:B,inlineStylesheet:f,sampling:k,recordCanvas:M,inlineImages:O,userTriggeredOnInput:P,collectFonts:I,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:R,blockSelector:o,unblockSelector:a,slimDOMOptions:U,dataURLOptions:C,mirror:$ce,iframeManager:Y,stylesheetManager:W,shadowDomManager:J,processedNodeManager:K,canvasManager:X,ignoreCSSAttributes:j,plugins:lse([L,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Bce({type:Jle.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(r){console.warn(r)}}));const n=()=>{Q(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Tle("DOMContentLoaded",(()=>{Bce({type:Jle.DomContentLoaded,data:{}}),"DOMContentLoaded"===E&&n()}))),e.push(Tle("load",(()=>{Bce({type:Jle.Load,data:{}}),"load"===E&&n()}),window))),()=>{e.forEach((e=>e())),K.destroy(),Uce=void 0,fce()}}catch(ee){console.warn(ee)}}Vce.mirror=$ce,Vce.takeFullSnapshot=function(e){if(!Uce)throw new Error("please take full snapshot after start recording");Uce(e)};const qce=3;function Zce(e){return e>9999999999?e:1e3*e}function Hce(e){return e>9999999999?e/1e3:e}function Gce(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Jle.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,pie.Fv)(t,10,1e3)}}),"console"===t.category))))}const Wce="button,a";function Yce(e){return e.closest(Wce)||e}function Kce(e){const t=Xce(e);return t&&t instanceof Element?Yce(t):t}function Xce(e){return function(e){return"object"===typeof e&&!!e&&"target"in e}(e)?e.target:e}let Jce;function Qce(e){return Jce||(Jce=[],(0,aie.hl)(Ose,"open",(function(e){return function(){if(Jce)try{Jce.forEach((e=>e()))}catch(ag){}for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(Ose,n)}}))),Jce.push(e),()=>{const t=Jce?Jce.indexOf(e):-1;t>-1&&Jce.splice(t,1)}}class eue{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gce;this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Qce((()=>{this._lastMutation=nue()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!tue.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!==typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Hce(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=Hce(e)}registerScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=Hce(e)}registerClick(e){const t=Yce(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=nue();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:a}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Ose.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Ose.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=kse((()=>this._checkClicks()),1e3)}}const tue=["A","BUTTON","INPUT"];function nue(){return Date.now()/1e3}function rue(e,t){try{if(!function(e){return e.type===qce}(t))return;const{source:n}=t.data;if(n===Qle.Mutation&&e.registerMutation(t.timestamp),n===Qle.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Qle.MouseInteraction}(t)){const{type:n,id:r}=t.data,i=Vce.mirror.getNode(r);i instanceof HTMLElement&&n===ece.Click&&e.registerClick(i)}}catch(ag){}}function iue(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oue;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(oue||(oue={}));const aue=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sue(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(aue.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const lue=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Kce(e.event):Xce(e.event),n=(0,Uie.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(ag){n="<unknown>"}return{target:r,message:n}}(e);return iue({category:`ui.${e.name}`,...cue(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r?t.event:void 0;var o,a,s;!(r&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=n,s=Kce(t.event),o.handleClick(a,s)),Gce(e,n)};function cue(e,t){const n=Vce.mirror.getId(e),r=n&&Vce.mirror.getNode(n),i=r&&Vce.mirror.getMeta(r),o=i&&function(e){return e.type===oue.Element}(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===oue.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:sue(o.attributes)}}:{}}}function uue(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||r||i,l=1===o.length;if(!s&&l)return null;const c=(0,Uie.Rt)(a,{maxStringLength:200})||"<unknown>",u=cue(a,c);return iue({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(t);n&&Gce(e,n)}const due={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:fue(o),end:fue(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=fue(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:fue(h),end:fue(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function pue(e,t){return n=>{let{metric:r}=n;t.replayPerformanceEntries.push(e(r))}}function hue(e){return due[e.entryType]?due[e.entryType](e):null}function fue(e){return((oie.Z1||Ose.performance.timeOrigin)+e)/1e3}function mue(e){const t=e.entries[e.entries.length-1];return bue(e,"largest-contentful-paint",t?t.element:void 0)}function gue(e){const t=e.entries[0];return bue(e,"cumulative-layout-shift",t&&t.sources?t.sources[0].node:void 0)}function yue(e){const t=e.entries[e.entries.length-1];return bue(e,"first-input-delay",t?t.target:void 0)}function vue(e){const t=e.entries[e.entries.length-1];return bue(e,"interaction-to-next-paint",t?t.target:void 0)}function bue(e,t,n){const r=e.value,i=e.rating,o=fue(r);return{type:"web-vital",name:t,start:o,end:o,data:{value:r,size:r,rating:i,nodeId:n?Vce.mirror.getId(n):void 0}}}const _ue="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,wue='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function xue(e,t){_ue&&(eie.kg.info(e),t&&Cue(e))}function kue(e,t){_ue&&(eie.kg.info(e),t&&kse((()=>{Cue(e)}),0))}function Cue(e){use({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Sue extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Mue{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>zse)throw new Sue;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Zce(e):null}}class Tue{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(n=>{let{data:r}=n;r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){xue("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=t=>{let{data:a}=t;const s=a;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return _ue&&eie.kg.error("[Replay]",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Eue{constructor(e){this._worker=new Tue(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Zce(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>zse?Promise.reject(new Sue):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{_ue&&eie.kg.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Pue{constructor(e){this._fallback=new Mue,this._compression=new Eue(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void xue("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const i of e)n.push(this._compression.addEvent(i));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(r){_ue&&eie.kg.warn("[Replay] Failed to add events when switching buffers.",r)}}}function Iue(e){let{useCompression:t,workerUrl:n}=e;if(t&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([wue]);return URL.createObjectURL(e)}();return""}();if(!t)return;xue("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Pue(n)}catch(t){xue("[Replay] Failed to create compression worker")}}(n);if(e)return e}return xue("[Replay] Using simple buffer"),new Mue}function Oue(){try{return"sessionStorage"in Ose&&!!Ose.sessionStorage}catch(ag){return!1}}function Lue(e){!function(){if(!Oue())return;try{Ose.sessionStorage.removeItem(Lse)}catch(ag){}}(),e.session=void 0}function Rue(e){return void 0!==e&&Math.random()<e}function jue(e){const t=Date.now();return{id:e.id||(0,rie.DM)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Due(e){if(Oue())try{Ose.sessionStorage.setItem(Lse,JSON.stringify(e))}catch(ag){}}function Aue(e){let{sessionSampleRate:t,allowBuffering:n,stickySession:r=!1}=e,{previousSessionId:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=function(e,t){return Rue(e)?"session":!!t&&"buffer"}(t,n),a=jue({sampled:o,previousSessionId:i});return r&&Due(a),a}function Nue(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Fue(e,t){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:i=Date.now()}=t;return Nue(e.started,n,i)||Nue(e.lastActivity,r,i)}function zue(e,t){let{sessionIdleExpire:n,maxReplayDuration:r}=t;return!!Fue(e,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Bue(e,t){let{traceInternals:n,sessionIdleExpire:r,maxReplayDuration:i,previousSessionId:o}=e;const a=t.stickySession&&function(e){if(!Oue())return null;try{const t=Ose.sessionStorage.getItem(Lse);if(!t)return null;const n=JSON.parse(t);return kue("[Replay] Loading existing session",e),jue(n)}catch(ag){return null}}(n);return a?zue(a,{sessionIdleExpire:r,maxReplayDuration:i})?(kue("[Replay] Session in sessionStorage is expired, creating new one..."),Aue(t,{previousSessionId:a.id})):a:(kue("[Replay] Creating new session",n),Aue(t,{previousSessionId:o}))}function Uue(e,t,n){return!!Vue(e,t)&&($ue(e,t,n),!0)}async function $ue(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"===typeof t&&function(e){return e.type===Jle.Custom}(e))return t(e)}catch(n){return _ue&&eie.kg.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(r){const t=r&&r instanceof Sue?"addEventSizeExceeded":"addEvent";_ue&&eie.kg.error(r),await e.stop({reason:t});const n=(0,yo.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Vue(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Zce(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(kue(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function que(e){return!e.type}function Zue(e){return"transaction"===e.type}function Hue(e){return"feedback"===e.type}function Gue(e){return(t,n)=>{if(!e.isEnabled()||!que(t)&&!Zue(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(Zue(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"===typeof r&&!r(t))return;kse((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function Wue(e){return t=>{e.isEnabled()&&que(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Gce(e,iue({category:"replay.hydrate-error"}))}}(e,t)}}function Yue(e){const t=(0,yo.s3)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!Kue(t))return;const n=function(e){if(!Kue(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return iue(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"===typeof e)return e.length>Fse?(n=!0,`${e.slice(0,Fse)}\u2026`):e;if("object"===typeof e)try{const t=(0,pie.Fv)(e,7);return JSON.stringify(t).length>Fse?(n=!0,`${JSON.stringify(t,null,2).slice(0,Fse)}\u2026`):t}catch(ag){}return e}));return iue({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return iue(e)}(t);n&&Gce(e,n)}(e,t)))}function Kue(e){return!!e.category}function Xue(e){return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!que(t)&&!Zue(t)&&!Hue(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Hue(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Jle.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return _ue&&eie.kg.log("[Replay] Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==jse&&!(!t.exception||t.type)&&Rue(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function Jue(e,t){return t.map((t=>{let{type:n,start:r,end:i,name:o,data:a}=t;const s=e.throttledAddEvent({type:Jle.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:a}}});return"string"===typeof s?Promise.resolve(null):s}))}function Que(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Jue(e,[n]),!1))))}}function ede(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!_ue||!e.getOptions()._experiments.traceInternals)&&dse(t,(0,yo.s3)())}(e,t.name)||e.addUpdate((()=>(Jue(e,[t]),!0))))}function tde(e){if(!e)return;const t=new TextEncoder;try{if("string"===typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=cde(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(ag){}}function nde(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function rde(e){try{if("string"===typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[cde(e)];if(!e)return[void 0]}catch(wH){return _ue&&eie.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return _ue&&eie.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ide(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ode(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,aie.Jr)({method:o,statusCode:a,request:s,response:l})}}function ade(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sde(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!==typeof e)return{body:e};const t=e.length>Nse,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Nse);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function lde(e,t){return Object.keys(e).reduce(((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n}),{})}function cde(e){return new URLSearchParams(e).toString()}function ude(e,t){const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ose.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ose.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,ese.U0)(n,t)}async function dde(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=ude(a,n.networkDetailAllowUrls)&&!ude(a,n.networkDetailDenyUrls),p=d?function(e,t,n){let{networkCaptureBodies:r,networkRequestHeaders:i}=e;const o=t?function(e,t){if(1===e.length&&"string"!==typeof e[0])return fde(e[0],t);if(2===e.length)return fde(e[1],t);return{}}(t,i):{};if(!r)return sde(o,n,void 0);const a=pde(t),[s,l]=rde(a),c=sde(o,n,s);if(l)return ide(c,l);return c}(n,t.input,c):ade(c),h=await async function(e,t,n,r){let{networkCaptureBodies:i,networkResponseHeaders:o}=t;if(!e&&void 0!==r)return ade(r);const a=n?hde(n.headers,o):{};if(!n||!i&&void 0!==r)return sde(a,r,void 0);const[s,l]=await async function(e){const t=function(e){try{return e.clone()}catch(t){_ue&&eie.kg.warn("[Replay] Failed to clone response body",t)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=kse((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(n){return _ue&&eie.kg.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}(n),c=function(e,t){let{networkCaptureBodies:n,responseBodySize:r,captureDetails:i,headers:o}=t;try{const t=e&&e.length&&void 0===r?tde(e):r;return i?sde(o,t,n?e:void 0):ade(t)}catch(a){return _ue&&eie.kg.warn("[Replay] Failed to serialize response body",a),sde(o,r,void 0)}}(s,{networkCaptureBodies:i,responseBodySize:r,captureDetails:e,headers:a});if(l)return ide(c,l);return c}(d,n,t.response,u);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:p,response:h}}(e,t,n),i=ode("resource.fetch",r);ede(n.replay,i)}catch(r){_ue&&eie.kg.error("[Replay] Failed to capture fetch breadcrumb",r)}}function pde(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"===typeof e[1])return e[1].body}function hde(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function fde(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?hde(n,t):Array.isArray(n)?{}:lde(n,t):{}}async function mde(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!ude(l,n.networkDetailAllowUrls)||ude(l,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:ade(d),response:ade(p)}}const h=s[$ae],f=h?lde(h.request_headers,n.networkRequestHeaders):{},m=lde(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{})}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?rde(a):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(ag){t.push(ag)}try{return function(e,t){try{if("string"===typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"===typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(wH){return _ue&&eie.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return _ue&&eie.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(ag){t.push(ag)}return _ue&&eie.kg.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],_=sde(f,d,g),w=sde(m,p,v);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:y?ide(_,y):_,response:b?ide(w,b):w}}(e,t,n),i=ode("resource.xhr",r);ede(n.replay,i)}catch(r){_ue&&eie.kg.error("[Replay] Failed to capture xhr breadcrumb",r)}}function gde(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=tde(r),o=n.getResponseHeader("content-length")?nde(n.getResponseHeader("content-length")):function(e,t){try{return tde("json"===t&&e&&"object"===typeof e?JSON.stringify(e):e)}catch(n){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}function yde(e){const t=(0,yo.s3)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(gde(t,n),mde(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,i=tde(n?pde(n):void 0),o=r?nde(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),dde(t,n,e))}catch(ag){_ue&&eie.kg.warn("Error when enriching network breadcrumb")}}(s,e,t)))}catch(wH){}}function vde(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function bde(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(_ue&&eie.kg.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&rue(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Uue(e,n,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Uue(e,function(e){const t=e.getOptions();return{type:Jle.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(xue(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Due(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function _de(e){let{recordingData:t,replayId:n,segmentId:r,eventContext:i,timestamp:o,session:a}=e;const s=function(e){let t,{recordingData:n,headers:r}=e;const i=`${JSON.stringify(r)}\n`;if("string"===typeof n)t=`${i}${n}`;else{const e=(new TextEncoder).encode(i);t=new Uint8Array(e.length+n.length),t.set(e),t.set(n,e.length)}return t}({recordingData:t,headers:{segment_id:r}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=i,p=(0,yo.s3)(),h=(0,yo.nZ)(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!p||!f||!m||!a.sampled)return(0,fse.WD)({});const g={type:Rse,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:n,segment_id:r,replay_type:a.sampled},y=await async function(e){let{client:t,scope:n,replayId:r,event:i}=e;const o={event_id:r,integrations:"object"!==typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",i,o);const a=await(0,hse.R)(t.getOptions(),i,o,n,t,(0,yo.aF)());if(!a)return null;a.platform=a.platform||"javascript";const s=t.getSdkMetadata(),{name:l,version:c}=s&&s.sdk||{};return a.sdk={...a.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0"},a}({scope:h,client:p,replayId:n,event:g});if(!y)return p.recordDroppedEvent("event_processor","replay",g),xue("An event processor returned `null`, will not send event."),(0,fse.WD)({});delete y.sdkProcessingMetadata;const v=function(e,t,n,r){return fie(Cie(e,kie(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"===typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,s,m,p.getOptions().tunnel);let b;try{b=await f.send(v)}catch(w){const e=new Error(jse);try{e.cause=w}catch(ag){}throw e}if("number"===typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new wde(b.statusCode);const _=yse({},b);if(gse(_,"replay"))throw new xde(_);return b}class wde extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class xde extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function kde(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3};const{recordingData:n,options:r}=e;if(n.length)try{return await _de(e),!0}catch(i){if(i instanceof wde||i instanceof xde)throw i;if((0,go.v)("Replays",{_retryCount:t.count}),_ue&&r._experiments&&r._experiments.captureExceptions&&(0,go.Tb)(i),t.count>=3){const e=new Error(`${jse} - max retries exceeded`);try{e.cause=i}catch(ag){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{kse((async()=>{try{await kde(e,t),n(!0)}catch(i){r(i)}}),t.interval)}))}}const Cde="__THROTTLED";function Sde(e,t,n){const r=new Map;let i=!1;return function(){const o=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(o),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":Cde}i=!1;const a=r.get(o)||0;return r.set(o,a+1),e(...arguments)}}class Mde{constructor(e){let{options:t,recordingOptions:n}=e;Mde.prototype.__init.call(this),Mde.prototype.__init2.call(this),Mde.prototype.__init3.call(this),Mde.prototype.__init4.call(this),Mde.prototype.__init5.call(this),Mde.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=function(e,t,n){let r,i,o;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=kse(s,t),a&&void 0===o&&(o=kse(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Sde(((e,t)=>function(e,t,n){return Vue(e,t)?$ue(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;o&&(this.clickDetector=new eue(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",kue(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");kue("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Bue({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");kue("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Bue({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Vce({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:bde(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop(){let{forceFlush:e=!1,reason:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1;try{xue("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Lue(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),xue("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),xue("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();xue("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Nue(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Ose.location.pathname}${Ose.location.hash}${Ose.location.search}`,t=`${Ose.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Cde){const e=iue({category:"replay.throttled"});this.addUpdate((()=>!Uue(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,Gre.HN)(),t=e&&(0,Gre.Gx)(e),n=(t&&(0,Gre.XU)(t).data||{})[Kre.Zj];if(t&&n&&["route","custom"].includes(n))return(0,Gre.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Iue({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){_ue&&eie.kg.error("[Replay]",e),_ue&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,go.Tb)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Bue({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!zue(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Ose.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ose.addEventListener("blur",this._handleWindowBlur),Ose.addEventListener("focus",this._handleWindowFocus),Ose.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,yo.s3)();Ese(lue(e)),yae(Que(e)),Yue(e),yde(e);const n=Xue(e);(0,go.Qy)(n),t&&(t.on("beforeSendEvent",Wue(e)),t.on("afterSendEvent",Gue(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){let{entries:n}=e;n.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Noe(e,n))})),r.push(joe(pue(mue,e)),Roe(pue(gue,e)),Doe(pue(yue,e)),Aoe(pue(vue,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{Ose.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ose.removeEventListener("blur",this._handleWindowBlur),Ose.removeEventListener("focus",this._handleWindowFocus),Ose.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ose.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=iue({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=iue({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{uue(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Fue(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):xue("[Replay] Document has become active, but session has expired")}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Jle.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(hue).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Jue(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Jue(e,[vde(Ose.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await kde({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});const e=(0,yo.s3)();e&&e.recordDroppedEvent("send_error","replay")}}else _ue&&eie.kg.error("[Replay] No session or eventBuffer found to flush.")}__init5(){var e=this;this._flush=async function(){let{force:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e._isEnabled&&!t)return;if(!e.checkAndHandleExpiredSession())return void(_ue&&eie.kg.error("[Replay] Attempting to finish replay event after session expired."));if(!e.session)return;const n=e.session.started,r=Date.now()-n;e._debouncedFlush.cancel();const i=r<e._options.minReplayDuration,o=r>e._options.maxReplayDuration+5e3;if(i||o)return xue(`[Replay] Session duration (${Math.floor(r/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,e._options._experiments.traceInternals),void(i&&e._debouncedFlush());const a=e.eventBuffer;if(a&&0===e.session.segmentId&&!a.hasCheckout&&xue("[Replay] Flushing initial segment without checkout.",e._options._experiments.traceInternals),!e._flushLock)return e._flushLock=e._runFlush(),await e._flushLock,void(e._flushLock=void 0);try{await e._flushLock}catch(s){_ue&&eie.kg.error(s)}finally{e._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Due(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=iue({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Tde(e,t){return[...e,...t].join(",")}const Ede='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Pde=["content-length","content-type","accept"];let Ide=!1;class Ode{static __initStatic(){this.id="Replay"}constructor(){let{flushMinDelay:e=Dse,flushMaxDelay:t=Ase,minReplayDuration:n=Bse,maxReplayDuration:r=Use,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:x=[],block:k=[],unblock:C=[],ignore:S=[],maskFn:M,beforeAddRecordingEvent:T,beforeErrorSampling:E}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Ode.id;const P=function(e){let{mask:t,unmask:n,block:r,unblock:i,ignore:o}=e;return{maskTextSelector:Tde(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Tde(n,[]),blockSelector:Tde(r,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:Tde(i,[]),ignoreSelector:Tde(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:_,unmask:x,block:k,unblock:C,ignore:S});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:M,maskInputFn:M,maskAttributeFn:(e,t,n)=>function(e){let{el:t,key:n,maskAttributes:r,maskAllText:i,privacyOptions:o,value:a}=e;return i?o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?a:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:w,maskAllText:l,privacyOptions:P,key:e,value:t,el:n}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,Use),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Lde(v),networkResponseHeaders:Lde(b),beforeAddRecordingEvent:T,beforeErrorSampling:E,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ede}`:Ede),this._isInitialized&&bse())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ide}set _isInitialized(e){Ide=e}setupOnce(){bse()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,yo.s3)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,aie.Jr)(e)};if(!n)return(0,eie.Cf)((()=>{console.warn("SDK client is not available.")})),r;const i=nie(n.replaysSessionSampleRate),o=nie(n.replaysOnErrorSampleRate);null==i&&null==o&&(0,eie.Cf)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=i&&(r.sessionSampleRate=i);null!=o&&(r.errorSampleRate=o);return r}(this._initialOptions);this._replay=new Mde({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,yo.s3)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(ag){}}}function Lde(e){return[...Pde,...e.map((e=>e.toLowerCase()))]}Ode.__initStatic();const Rde=[];function jde(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"===typeof n?(0,rie.lE)(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(i,(e=>"Debug"===e.name));if(-1!==o){const[e]=i.splice(o,1);i.push(e)}return i}function Dde(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ade(e,t,n){if(n[t.name])tie.X&&eie.kg.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Rde.indexOf(t.name)&&"function"===typeof t.setupOnce&&(t.setupOnce(),Rde.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}tie.X&&eie.kg.log(`Integration installed: ${t.name}`)}}const Nde=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],Fde=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"InboundFilters",processEvent(t,n,r){const i=r.getOptions(),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Nde],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(ag){}return!1}(e))return tie.X&&eie.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,rie.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(ag){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some((e=>(0,ese.U0)(e,t)))}(e,t.ignoreErrors))return tie.X&&eie.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,rie.jH)(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return tie.X&&eie.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,rie.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,ese.U0)(n,t)}(e,t.ignoreTransactions))return tie.X&&eie.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,rie.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=zde(e);return!!n&&(0,ese.U0)(n,t)}(e,t.denyUrls))return tie.X&&eie.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,rie.jH)(e)}.\nUrl: ${zde(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=zde(e);return!n||(0,ese.U0)(n,t)}(e,t.allowUrls))return tie.X&&eie.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,rie.jH)(e)}.\nUrl: ${zde(e)}`),!0;return!1}(t,o)?null:t}}};function zde(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(ag){}return t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return tie.X&&eie.kg.error(`Cannot extract url for event ${(0,rie.jH)(e)}`),null}}let Bde;const Ude=new WeakMap,$de=()=>({name:"FunctionToString",setupOnce(){Bde=Function.prototype.toString;try{Function.prototype.toString=function(){const e=(0,aie.HK)(this),t=Ude.has((0,yo.s3)())&&void 0!==e?e:this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Bde.apply(t,r)}}catch(ag){}},setup(e){Ude.set(e,!0)}}),Vde=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Zde(e,t))return!1;if(!qde(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Hde(t),r=Hde(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Zde(e,t))return!1;if(!qde(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return tie.X&&eie.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function qde(e,t){let n=(0,Zie.Fr)(e),r=(0,Zie.Fr)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Zde(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Hde(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Gde(e,t){!0===t.debug&&(tie.X?eie.kg.enable():(0,eie.Cf)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,yo.nZ)().update(t.initialScope);const n=new e(t);!function(e){(0,yo.nZ)().setClient(e)}(n),n.init()}class Wde extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Yde="7";function Kde(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Xde(e,t,n){return t||`${function(e){return`${Kde(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,aie._j)({sentry_key:e.publicKey,sentry_version:Yde,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,n)}`}var Jde=n(63872);const Qde="Not capturing exception because it's already been captured.";class epe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=die(e.dsn):tie.X&&eie.kg.warn("No DSN provided, client will not send events."),this._dsn){const t=Xde(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=(0,rie.DM)();if((0,rie.YO)(e))return tie.X&&eie.kg.log(Qde),r;const i={event_id:r,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,r){const i={event_id:(0,rie.DM)(),...n},o=(0,Uae.Le)(e)?e:String(e),a=(0,Uae.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=(0,rie.DM)();if(t&&t.originalException&&(0,rie.YO)(t.originalException))return tie.X&&eie.kg.log(Qde),r;const i={event_id:r,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){"string"!==typeof e.release?tie.X&&eie.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Jde.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,fse.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Ade(this,e,this._integrations),t||Dde(this,[e])}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=kie(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=Cie(e,i,r,t);return delete e.sdkProcessingMetadata,fie(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=mie(n,_ie(i));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=kie(n);return fie({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:cie(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;tie.X&&eie.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._hooks[e]&&this._hooks[e].forEach((e=>e(...n)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(tie.X&&eie.kg.error("Error while sending event:",e),e))):(tie.X&&eie.kg.error("Transport disabled"),(0,fse.WD)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Ade(e,t,n)})),n}(this,e),Dde(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,Jde.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new fse.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,yo.aF)();const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,hse.R)(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,aie.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};const a=o||(0,Qre._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(tie.X){const t=e;"log"===t.logLevel?eie.kg.log(t.message):eie.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=npe(e),a=tpe(e),s=e.type||"error",l=`before send for type \`${s}\``,c="undefined"===typeof i?void 0:nie(i);if(a&&"number"===typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,fse.$2)(new Wde(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Wde("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:o}=e;if(tpe(t)&&r)return r(t,n);if(npe(t)){if(t.spans&&o){const e=[];for(const n of t.spans){const t=o(n);t&&e.push(t)}t.spans=e}if(i)return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,Uae.J8)(e))return e.then((e=>{if(!(0,Uae.PO)(e)&&null!==e)throw new Wde(n);return e}),(e=>{throw new Wde(`${t} rejected with ${e}`)}));if(!(0,Uae.PO)(e)&&null!==e)throw new Wde(n);return e}(i,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Wde(`${l} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Wde)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Wde(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function tpe(e){return void 0===e.type}function npe(e){return"transaction"===e.type}var rpe=n(56469);function ipe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:rpe.J}))),version:rpe.J}),e._metadata=i}function ope(e,t){const n=lpe(e,t),r={type:t&&t.name,value:upe(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ape(e,t,n,r){const i=(0,yo.s3)(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),s={__serialized__:(0,pie.Qy)(t,o)};if(a)return{exception:{values:[ope(e,a)]},extra:s};const l={exception:{values:[{type:(0,Uae.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:hpe(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=lpe(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function spe(e,t){return{exception:{values:[ope(e,t)]}}}function lpe(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&cpe.test(e.message))return 1;return 0}(t),i=function(e){if("number"===typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,i)}catch(ag){}return[]}const cpe=/Minified React error #\d+;/i;function upe(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function dpe(e,t,n,r,i){let o;if((0,Uae.VW)(t)&&t.error){return spe(e,t.error)}if((0,Uae.TX)(t)||(0,Uae.fm)(t)){const i=t;if("stack"in t)o=spe(e,t);else{const t=i.name||((0,Uae.TX)(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=ppe(e,a,n,r),(0,rie.Db)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}if((0,Uae.VZ)(t))return spe(e,t);if((0,Uae.PO)(t)||(0,Uae.cO)(t)){return o=ape(e,t,n,i),(0,rie.EG)(o,{synthetic:!0}),o}return o=ppe(e,t,n,r),(0,rie.Db)(o,`${t}`,void 0),(0,rie.EG)(o,{synthetic:!0}),o}function ppe(e,t,n,r){const i={};if(r&&n){const r=lpe(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,Uae.Le)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function hpe(e,t){let{isUnhandledRejection:n}=t;const r=(0,aie.zf)(e),i=n?"promise rejection":"exception";if((0,Uae.VW)(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if((0,Uae.cO)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(ag){}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${r}`}class fpe extends epe{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};ipe(t,"browser",["browser"],Nae.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Nae.document&&Nae.document.addEventListener("visibilitychange",(()=>{"hidden"===Nae.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=dpe(e,t,n&&n.syntheticException||void 0,r);return(0,rie.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,fse.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const o=ppe(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,fse.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Aae&&eie.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,t){let{metadata:n,tunnel:r,dsn:i}=t;const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:cie(i)}},a=function(e){return[{type:"user_report"},e]}(e);return fie(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Aae&&eie.kg.log("No outcomes to send"));if(!this._dsn)return void(Aae&&eie.kg.log("No dsn provided, will not send outcomes"));Aae&&eie.kg.log("Sending outcomes:",e);const t=(n=e,fie((r=this._options.tunnel&&cie(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||(0,oie.yW)(),discarded_events:n}]]));var n,r,i;this.sendEnvelope(t)}}function mpe(){"console"in hie.GLOBAL_OBJ&&eie.RU.forEach((function(e){e in hie.GLOBAL_OBJ.console&&(0,aie.hl)(hie.GLOBAL_OBJ.console,e,(function(t){return eie.LD[e]=t,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];fae("console",{args:n,level:e});const i=eie.LD[e];i&&i.apply(hie.GLOBAL_OBJ.console,n)}}))}))}const gpe=["fatal","error","warning","log","info","debug"];function ype(e){return"warn"===e?"warning":gpe.includes(e)?e:"log"}const vpe=1024,bpe=function(){const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"Breadcrumbs",setup(t){e.console&&function(e){const t="console";pae(t,e),hae(t,mpe)}(function(e){return function(t){if((0,yo.s3)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:ype(t.level),message:(0,ese.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,ese.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}use(n,{input:t.args,level:t.level})}}(t)),e.dom&&Ese(function(e,t){return function(n){if((0,yo.s3)()!==e)return;let r,i,o="object"===typeof t?t.serializeAttribute:void 0,a="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>vpe&&(Aae&&eie.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=vpe),"string"===typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,Uie.Rt)(t,{keyAttrs:o,maxStringLength:a}),i=(0,Uie.iY)(t)}catch(ag){r="<unknown>"}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),use(s,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&Vae(function(e){return function(t){if((0,yo.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[$ae];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:l}=i;use({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&Kae(function(e){return function(t){if((0,yo.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){use({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;use({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&yae(function(e){return function(t){if((0,yo.s3)()!==e)return;let n=t.from,r=t.to;const i=$ie(Nae.location.href);let o=n?$ie(n):void 0;const a=$ie(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),use({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(e){return function(t){(0,yo.s3)()===e&&use({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,rie.jH)(t)},{event:t})}}(t))}}};const _pe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],wpe=function(){const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&(0,aie.hl)(Nae,"setTimeout",xpe),e.setInterval&&(0,aie.hl)(Nae,"setInterval",xpe),e.requestAnimationFrame&&(0,aie.hl)(Nae,"requestAnimationFrame",kpe),e.XMLHttpRequest&&"XMLHttpRequest"in Nae&&(0,aie.hl)(XMLHttpRequest.prototype,"send",Cpe);const t=e.eventTarget;if(t){(Array.isArray(t)?t:_pe).forEach(Spe)}}}};function xpe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n[0];return n[0]=Bae(i,{mechanism:{data:{function:(0,Zie.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function kpe(e){return function(t){return e.apply(this,[Bae(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Zie.$P)(e)},handled:!1,type:"instrument"}})])}}function Cpe(e){return function(){const t=this;["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in t&&"function"===typeof t[e]&&(0,aie.hl)(t,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,Zie.$P)(t)},handled:!1,type:"instrument"}},r=(0,aie.HK)(t);return r&&(n.mechanism.data.handler=(0,Zie.$P)(r)),Bae(t,n)}))}));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(this,r)}}function Spe(e){const t=Nae,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,aie.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=Bae(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Zie.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(o){}return t.apply(this,[n,Bae(r,{mechanism:{data:{function:"addEventListener",handler:(0,Zie.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}})),(0,aie.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(ag){}return e.call(this,t,i,r)}})))}const Mpe=function(){const e={onerror:!0,onunhandledrejection:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(e){Tae((t=>{const{stackParser:n,attachStacktrace:r}=Epe();if((0,yo.s3)()!==e||zae())return;const{msg:i,url:o,line:a,column:s,error:l}=t,c=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,Uae.HD)(t)&&t.length>0?t:(0,Uie.l4)();0===l.length&&l.push({colno:c,filename:d,function:Zie.Fi,in_app:!0,lineno:u});return e}(dpe(n,l||i,void 0,r,!1),o,a,s);c.level="error",(0,go.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(t),Tpe("onerror")),e.onunhandledrejection&&(!function(e){Iae((t=>{const{stackParser:n,attachStacktrace:r}=Epe();if((0,yo.s3)()!==e||zae())return;const i=function(e){if((0,Uae.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(wH){}return e}(t),o=(0,Uae.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:dpe(n,i,void 0,r,!0);o.level="error",(0,go.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Tpe("onunhandledrejection"))}}};function Tpe(e){Aae&&eie.kg.log(`Global Handler attached: ${e}`)}function Epe(){const e=(0,yo.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ppe=()=>({name:"HttpContext",preprocessEvent(e){if(!Nae.navigator&&!Nae.location&&!Nae.document)return;const t=e.request&&e.request.url||Nae.location&&Nae.location.href,{referrer:n}=Nae.document||{},{userAgent:r}=Nae.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function Ipe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(!o.exception||!o.exception.values||!a||!(0,Uae.V9)(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var l,c;s&&(o.exception.values=(l=Ope(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,l.map((e=>(e.value&&(e.value=(0,ese.$G)(e.value,c)),e)))))}function Ope(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let l=[...o];if((0,Uae.V9)(r[i],Error)){Lpe(a,s);const o=e(t,r[i]),c=l.length;Rpe(o,i,c,s),l=Ope(e,t,n,r[i],i,[o,...l],o,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if((0,Uae.V9)(r,Error)){Lpe(a,s);const c=e(t,r),u=l.length;Rpe(c,`errors[${o}]`,u,s),l=Ope(e,t,n,r,i,[c,...l],c,u)}})),l}function Lpe(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Rpe(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const jpe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const o=i.getOptions();Ipe(ope,o.stackParser,o.maxValueLength,n,t,e,r)}}};function Dpe(e,t,n,r){const i={filename:e,function:"<anonymous>"===t?Zie.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const Ape=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Npe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fpe=/\((\S*)(?::(\d+))(?::(\d+))\)/,zpe=[30,e=>{const t=Ape.exec(e);if(t){const[,e,n,r]=t;return Dpe(e,Zie.Fi,+n,+r)}const n=Npe.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Fpe.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=Zpe(n[1]||Zie.Fi,n[2]);return Dpe(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Bpe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Upe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$pe=[50,e=>{const t=Bpe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Upe.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Zie.Fi;return[n,e]=Zpe(n,e),Dpe(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Vpe=[zpe,$pe],qpe=(0,Zie.pE)(...Vpe),Zpe=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Zie.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Hpe(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,fse.$2)(new Wde("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new fse.cW(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,fse.WD)(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}const Gpe=64;function Wpe(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Ype(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wse("fetch"),n=0,r=0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hpe(e.bufferSize||Gpe),r={};return{send:function(i){const o=[];if(gie(i,((t,n)=>{const i=xie(n);if(gse(r,i)){const r=Wpe(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return(0,fse.WD)({});const a=fie(i[0],o),s=t=>{gie(a,((n,r)=>{const i=Wpe(n,r);e.recordDroppedEvent(t,xie(r),i)}))};return n.add((()=>t({body:vie(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&tie.X&&eie.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=yse(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Wde)return tie.X&&eie.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,fse.WD)({});throw e}))},flush:e=>n.drain(e)}}(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return xse("fetch"),(0,fse.$2)("No fetch implementation available");try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(ag){return xse("fetch"),n-=o,r--,(0,fse.$2)(ag)}}))}function Kpe(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{defaultIntegrations:[Fde(),$de(),wpe(),bpe(),Mpe(),jpe(),Vde(),Ppe()],release:"string"===typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Nae.SENTRY_RELEASE&&Nae.SENTRY_RELEASE.id?Nae.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});if(function(){const e=Nae[Nae.chrome?"chrome":"browser"],t=e&&e.runtime&&e.runtime.id,n=Nae.location&&Nae.location.href||"",r=!!t&&Nae===Nae.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>n.startsWith(`${e}//`)));return!!t&&!r}())return void(0,eie.Cf)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));Aae&&(Wae()||eie.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const t={...e,stackParser:(0,Zie.Sq)(e.stackParser||qpe),integrations:jde(e),transport:e.transport||Ype};Gde(fpe,t),e.autoSessionTracking&&function(){if("undefined"===typeof Nae.document)return void(Aae&&eie.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,go.yj)({ignoreDuration:!0}),(0,go.cg)(),yae((e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&((0,go.yj)({ignoreDuration:!0}),(0,go.cg)())}))}()}const Xpe="prod",Jpe={enabled:!0,environment:Xpe,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Lae||(Lae=!0,Tae(Rae),Iae(Rae));const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:i,idleTimeout:o,finalTimeout:a,childSpanTimeout:s,markBackgroundSpan:l,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:p,instrumentPageLoad:h,instrumentNavigation:f}={...ase,...e},m=nae();t&&lae(),n&&Noe("longtask",(e=>{let{entries:t}=e;for(const n of t){if(!(0,Gre.HN)())return;const e=Koe(oie.Z1+n.startTime),t=Koe(n.duration),r=jie({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[Kre.S3]:"auto.ui.browser.metrics"}});r&&r.end(e+t)}})),r&&Noe("event",(e=>{let{entries:t}=e;for(const n of t){if(!(0,Gre.HN)())return;if("click"===n.name){const e=Koe(oie.Z1+n.startTime),t=Koe(n.duration),r={name:(0,Uie.Rt)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[Kre.S3]:"auto.ui.browser.metrics"}},i=(0,Uie.iY)(n.target);i&&(r.attributes["ui.component_name"]=i);const o=jie(r);o&&o.end(e+t)}}}));const g={name:void 0,source:void 0};function y(e,t){const n="pageload"===t.op,r=i?i(t):t,l=r.attributes||{};t.name!==r.name&&(l[Kre.Zj]="custom",r.attributes=l),g.name=r.name,g.source=l[Kre.Zj];const c=Sae(r,{idleTimeout:o,finalTimeout:a,childSpanTimeout:s,disableAutoFinish:n,beforeSpanEnd:e=>{m(),rae(e)}});function u(){["interactive","complete"].includes(Nae.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return n&&Nae.document&&(Nae.document.addEventListener("readystatechange",(()=>{u()})),u()),c}return{name:"BrowserTracing",afterAllSetup(e){let n,i=Nae.location&&Nae.location.href;e.on("startNavigationSpan",(t=>{(0,yo.s3)()===e&&(n&&(Aae&&eie.kg.log(`[Tracing] Finishing current root span with op: ${(0,Gre.XU)(n).op}`),n.end()),n=y(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,yo.s3)()!==e)return;n&&(Aae&&eie.kg.log(`[Tracing] Finishing current root span with op: ${(0,Gre.XU)(n).op}`),n.end());const i=r.sentryTrace||sse("sentry-trace"),o=r.baggage||sse("baggage"),a=(0,jae.pT)(i,o);(0,yo.nZ)().setPropagationContext(a),n=y(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=(0,Gre.XU)(e).op;if(e!==(0,Gre.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;const n=(0,yo.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,Gre.Tt)(e),dsc:r.dsc||(0,Qre.jC)(e)})})),Nae.location&&(h&&function(e,t,n){e.emit("startPageLoadSpan",t,n),(0,yo.nZ)().setTransactionName(t.name);const r=(0,Gre.HN)();r&&(0,Gre.XU)(r).op}(e,{name:Nae.location.pathname,startTime:oie.Z1?oie.Z1/1e3:void 0,attributes:{[Kre.Zj]:"url",[Kre.S3]:"auto.pageload.browser"}}),f&&yae((t=>{let{to:n,from:r}=t;void 0===r&&i&&-1!==i.indexOf(n)?i=void 0:r!==n&&(i=void 0,function(e,t){(0,yo.aF)().setPropagationContext((0,Dae.Q)()),(0,yo.nZ)().setPropagationContext((0,Dae.Q)()),e.emit("startNavigationSpan",t),(0,yo.nZ)().setTransactionName(t.name);const n=(0,Gre.HN)();n&&(0,Gre.XU)(n).op}(e,{name:Nae.location.pathname,attributes:{[Kre.Zj]:"url",[Kre.S3]:"auto.navigation.browser"}}))}))),l&&(Nae&&Nae.document?Nae.document.addEventListener("visibilitychange",(()=>{const e=(0,Gre.HN)();if(!e)return;const t=(0,Gre.Gx)(e);if(Nae.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,Gre.XU)(t);Aae&&eie.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:bae.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):Aae&&eie.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,r){let i;const o=()=>{const o="ui.action.click",a=(0,Gre.HN)(),s=a&&(0,Gre.Gx)(a);if(s){const e=(0,Gre.XU)(s).op;if(["navigation","pageload"].includes(e))return void(Aae&&eie.kg.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`))}i&&(i.setAttribute(Kre.ju,"interactionInterrupted"),i.end(),i=void 0),r.name?i=Sae({name:r.name,op:o,attributes:{[Kre.Zj]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Aae&&eie.kg.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`)};Nae.document&&addEventListener("click",o,{once:!1,capture:!0})}(o,a,s,g),t&&function(e){const t=t=>{let{entries:n}=t;n.forEach((t=>{if(!function(e){return"duration"in e}(t)||!e.name)return;const n=t.interactionId;if(null!=n&&!sae.has(n)){if(aae.length>10){const e=aae.shift();sae.delete(e)}aae.push(n),sae.set(n,e.name)}}))};Noe("event",t),Noe("first-input",t)}(g),nse({traceFetch:c,traceXHR:u,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}}}()],...(0,Mre.Lg)({mrv:{dsn:"https://ca1b6cdfc4874f41b48b2d26caf7c800@sentry.io/1506605",release:`flurosense-ui@${$.default.app_version}`},other:{}})};if(Jpe.integrations){const e=new Ode(Qpe);Array.isArray(Jpe.integrations)&&Jpe.integrations.push(e)}var Qpe;!function(e){const t={...e};ipe(t,"react"),Kpe(t)}(Jpe),i.render((0,w.jsx)(Hre,{}),document.getElementById("root")),(0,o.v)()},37881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>En});var r=n(12581),i=(n(69528),n(35770)),o=n(39475),a=n(15767),s=n(62626);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const u=function(e){return function(t){return function(t){return function(n){if(n.type!==s.J6)return t(n);var r=n.payload,i=r.method,o=r.args;e[i].apply(e,l(o))}}}};var d=n(47978),p=n(33094),h=n(60374),f=n(95603),m=n(93686),g=n(60548);const y={propsMapping:{farmName:"__currentFarm__",fieldName:g.h.FileName,growerName:""},geoJsonFiles:[],uploadedFieldFilesNames:[],farmsFieldsAddedTo:[],drawnFieldsGeometries:[],addFieldCurrentStep:"add-fields",cluFieldBoundaries:{},protectedAreaBoundaries:{},boundaryIdsToUpload:[]},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case m.Us.UpdateIdsUploadFields:return{...e,geoJsonFiles:e.geoJsonFiles.map((e=>{var n,r;return(null===(n=e.properties)||void 0===n?void 0:n[t.prop])!==t.farmName||null!==(r=e.properties)&&void 0!==r&&r[g.h.FarmId]?e:{...e,properties:{...e.properties,[g.h.FarmId]:t.farmId}}}))};case m.Us.SetUploadFieldProp:return{...e,geoJsonFiles:e.geoJsonFiles.map((e=>{var n;return(null===(n=e.properties)||void 0===n?void 0:n[g.h.Id])===t.id?{...e,properties:{...e.properties,[t.prop]:t.value}}:e}))};case m.Us.BulkSetUploadFieldsProp:return{...e,geoJsonFiles:e.geoJsonFiles.map((e=>{var n;return t.ids.includes(null===(n=e.properties)||void 0===n?void 0:n[g.h.Id])?{...e,properties:{...e.properties,[t.prop]:t.value}}:e}))};case m.Us.SetUploadFields:return{...e,geoJsonFiles:t.fields};case m.Us.RemoveUploadFields:return{...e,geoJsonFiles:e.geoJsonFiles.filter((e=>{var n;return!t.ids.includes(null===(n=e.properties)||void 0===n?void 0:n[g.h.Id])}))};case m.Us.SetUploadedFieldFilesNames:return{...e,uploadedFieldFilesNames:t.names};case m.Us.SetFarmsFieldsAddedTo:return{...e,farmsFieldsAddedTo:t.farms};case m.Us.SetFieldPropsMapping:return{...e,propsMapping:{...t.mapping}};case m.Us.SetFieldPropMapping:return{...e,propsMapping:{...e.propsMapping,[t.propName]:t.value}};case m.Us.SetUploadedFieldsValueFromMappingProps:return{...e,geoJsonFiles:e.geoJsonFiles.map((n=>{let r={};switch(t.mappingProp){case"fieldName":if(e.propsMapping.fieldName){var i;const t=null===(i=n.properties)||void 0===i?void 0:i[e.propsMapping.fieldName];r={[g.h.FieldName]:t?String(t):""}}break;case"farmName":if(e.propsMapping.farmName){var o,a;const i=(0,f.uy)(t.farmsList,null===(o=n.properties)||void 0===o?void 0:o[e.propsMapping.farmName])?g.h.FarmId:g.h.NewFarmName,s=null===(a=n.properties)||void 0===a?void 0:a[e.propsMapping.farmName];r={[i]:s?String(s):""}}}return{...n,properties:{...n.properties,...r}}}))};case m.Us.AddDrawnFieldGeometry:return{...e,drawnFieldsGeometries:-1===e.drawnFieldsGeometries.findIndex((e=>t.geoJSON.properties[g.h.Id]===e.properties[g.h.Id]))?[...e.drawnFieldsGeometries,t.geoJSON]:e.drawnFieldsGeometries.map((e=>t.geoJSON.properties[g.h.Id]===e.properties[g.h.Id]?{...e,geometry:{...t.geoJSON.geometry},properties:{...e.properties,...t.geoJSON.properties}}:{...e}))};case m.Us.RemoveDrawnFieldGeometry:return{...e,drawnFieldsGeometries:t.ids?e.drawnFieldsGeometries.filter((e=>!t.ids.includes(e.properties[g.h.Id]))):[]};case m.Us.SetPropDrawnFieldGeometry:return{...e,drawnFieldsGeometries:e.drawnFieldsGeometries.map((e=>e.properties[g.h.Id]===t.id?{...e,properties:{...e.properties,[t.prop]:t.value}}:e))};case m.Us.BulkSetPropDrawnFieldGeometry:return{...e,drawnFieldsGeometries:e.drawnFieldsGeometries.map((e=>t.ids.includes(e.properties[g.h.Id])?{...e,properties:{...e.properties,[t.prop]:t.value}}:e))};case m.Us.SetAddFieldCurrentStep:return{...e,addFieldCurrentStep:t.step};case m.Us.SetCLUFieldBoundaries:return{...e,cluFieldBoundaries:{...e.cluFieldBoundaries,...t.fieldBoundaries}};case m.Us.RemoveCLUFieldBoundaries:return{...e,boundaryIdsToUpload:e.boundaryIdsToUpload.filter((e=>!t.ids.includes(e)))};case m.Us.UpdateCLUFieldBoundariesProp:{const n=e.cluFieldBoundaries[t.id];return{...e,cluFieldBoundaries:{...e.cluFieldBoundaries,[t.id]:{...n,properties:{...null===n||void 0===n?void 0:n.properties,[t.prop]:t.value}}}}}case m.Us.BulkUpdateCLUFieldBoundariesProp:{const n={...e.cluFieldBoundaries};return t.ids.forEach((e=>{const r=n[e];r&&(n[e]={...r,properties:{...null===r||void 0===r?void 0:r.properties,[t.prop]:t.value}})})),{...e,cluFieldBoundaries:n}}case m.Us.SetBoundaryIdsToUpload:return{...e,boundaryIdsToUpload:t.boundaryIdsToUpload};case m.Us.ToggleBoundaryIdToUpload:return{...e,boundaryIdsToUpload:e.boundaryIdsToUpload.includes(t.id)?e.boundaryIdsToUpload.filter((e=>e!==t.id)):[...e.boundaryIdsToUpload,t.id]};case m.Us.AddProtectedAreas:return{...e,protectedAreaBoundaries:{...e.protectedAreaBoundaries,...t.protectedAreaBoundaries}};default:return e}};var b=n(7360),_=n(49582),w=n(5229),x=n(77440),k=n(4494);const C={currentGroupId:0,growerName:"",isHeaderExpanded:!1,isMapLoading:!1,isMapView:!1,isReportView:!1,loaders:{},locale:_.ZW,sessionExpired:!1,sessionExpiredRequests:[],tabNotifications:{}},S=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case k.A.ADD_LOADING:return{...n,loaders:{...n.loaders,[r.method+r.URLPattern+r.key]:x.j[r.URLPattern]?null===(e=x.j[r.URLPattern])||void 0===e||null===(t=e.messages)||void 0===t?void 0:t[r.method]:`${(0,w.t)({id:"Loading",defaultMessage:"Loading"})} ${r.URLPattern}...`}};case k.A.REMOVE_LOADING:return delete n.loaders[r.method+r.URLPattern+r.key],{...n,loaders:{...n.loaders}};case k.A.MAP_LOADING:return{...n,isMapLoading:r.value};case k.A.TOGGLE_HEADER:return{...n,isHeaderExpanded:r.value};case k.A.TOGGLE_MAP_VIEW:return{...n,isMapView:r.value};case k.A.SET_REPORT_VIEW:return{...n,isReportView:r.value};case k.A.SET_GLOBAL_PARAM:return{...n,[r.propName]:r.value};case k.A.TOGGLE_SESSION_EXPIRED:return{...n,sessionExpired:r.sessionExpired,sessionExpiredRequests:r.sessionExpired?n.sessionExpiredRequests:[]};case k.A.ADD_SESSION_EXPIRED_REQUEST:return{...n,sessionExpiredRequests:[...n.sessionExpiredRequests,r.request]};case k.A.SET_TAB_NOTIFICATION:return{...n,tabNotifications:{...n.tabNotifications,[r.tabKey]:{...r.tabData}}};default:return n}};var M=n(9784),T=n(17303),E=n(3851);const P={errors:{},status:{}},I=e=>{const t=e.match(/(.+)\/(fulfilled|pending|rejected)$/i);if(!t)return null;const[,n,r]=t;return{actionType:null!==n&&void 0!==n?n:"",requestStatus:r}},O=(0,h.UY)({errors:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P.errors,t=arguments.length>1?arguments[1]:void 0;if(t.type===T.D.LOGOUT)return P.errors;const n=I(t.type);if(!n)return e;const{actionType:r,requestStatus:i}=n;return{...e,[r]:i===E.mU.rejected?t.error:null}},status:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P.status,t=arguments.length>1?arguments[1]:void 0;if(t.type===T.D.LOGOUT)return P.status;const n=I(t.type);if(!n)return e;const{actionType:r,requestStatus:i}=n;return{...e,[r]:i}}}),R={[E.jB.adminSearch]:{},[E.jB.farmsList]:{},[E.jB.loadOneFarm]:{},[E.jB.fieldsData]:{},[E.jB.allFieldsData]:{},[E.jB.loadFields]:{},[E.jB.fieldGeometries]:{},[E.jB.cluFieldBoundaries]:{},[E.jB.parseUploadedFields]:{},[E.jB.uploadingFieldsToBackend]:{},[E.jB.cropTypesMatching]:{},[E.jB.usersActivity]:{},[E.jB.authorizedPlatforms]:{status:E.qb.Todo},[E.jB.SILoadAllStates]:{},[E.jB.updateSIPolicy]:{}},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case E.Us.SetRequestStatus:return{...e,[t.key]:{status:t.status,errors:t.errors||null}};case T.D.LOGOUT:return{...e,...R};default:return e}},D={info:{visible:!1},confirm:{visible:!1},alert:{visible:!1},editFieldName:{visible:!1},[E.iR.editCrop]:{visible:!1},[E.iR.fmsSyncReport]:{visible:!1,payload:{}},[E.iR.fmsSyncDialog]:{visible:!1,payload:{}},[E.iR.fmsIntegration]:{visible:!1},[E.iR.addNewField]:{visible:!1},[E.iR.mrvPhasesInfo]:{visible:!1},[E.iR.noContractInfo]:{visible:!1},[E.iR.editFarm]:{visible:!1},[E.iR.editFarmName]:{visible:!1},[E.iR.deleteDialog]:{visible:!1},[E.iR.requestFSAccess]:{visible:!1}},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case E.Us.DialogToggle:return{...e,[t.dialogKey]:{visible:t.visible,payload:t.visible&&t.payload||void 0}};case E.Us.CloseAllDialogs:return{...D};default:return e}},N={subscriptionsFarmId:0,subscriptionsOrgId:0,subscriptionsSubId:0},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;return t.type===E.Us.SetFilter?{...e,[t.name]:t.value}:e},z=(0,h.UY)({asyncRTK:O,asyncStatuses:j,dialogs:A,filters:F,intercom:M.JK.reducer});var B=n(20328),U=n(67925),$=n(51821);const V={farmEndDialog:!1,isAuth:!1,isImpersonated:!1,isImpersonatorNotSuperAdmin:!1,impersonatorUserId:null,message:[""],token:"",user:{...$.p}},q=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case T.D.LOGIN:const{user:r,token:i,is_impersonated:o,is_impersonator_not_super_admin:a,impersonator_user_id:s}=n.response;return{...t,isAuth:!0,isImpersonated:!!o,isImpersonatorNotSuperAdmin:!!a,impersonatorUserId:null!==s&&void 0!==s?s:null,user:{...r,demoFarms:V.user.demoFarms,groupIds:null!==(e=r.groupIds)&&void 0!==e&&e.length?r.groupIds:(0,U.ci)(r.perm)?[136]:r.groupIds,settings:{...V.user.settings,...r.settings,langLocale:r.settings.langLocale||V.user.settings.langLocale||_.ZW,measurement:r.settings.measurement||V.user.settings.measurement,timezone:r.settings.timezone||V.user.settings.timezone}},token:i};case T.D.UPDATE_USER_SETTINGS:return{...t,user:{...t.user,settings:{...t.user.settings,...n.data}}};case T.D.UPDATE_USER_DATA:return{...t,user:{...t.user,...n.data}};case T.D.UPDATE_USER_WORKSPACES:return{...t,user:{...t.user,workspaces:{...t.user.workspaces,...n.payload.workspaces}}};case T.D.LOGOUT:return{...t,isAuth:!1,isImpersonated:!1,user:{...$.p}};case T.D.ERROR:const{status:l,message:c}=n.response;return Object.assign({},t,{status:l,message:c});case B.P.CREATE_FARM:return{...t,user:{...t.user,groupIds:[...t.user.groupIds,n.farm.id]}};case B.P.REMOVE_FARM:return{...t,user:{...t.user,groupIds:t.user.groupIds.filter((e=>e!==n.farmId))}};default:return t}};var Z=n(76556),H=n(99987);const G={isEditingMode:!1,highlightedFieldId:void 0,group:{id:0,name:""},edit:!1,fields:[],fieldsByFarmId:{},fieldGeometries:{},isMapBarOpen:!0,feature:"mrv-home",geometry:[],drawControl:{isDrawingMode:!1,isEditingMode:!1,drawingModeLayerType:""},locationMarkerPosition:[0,0]},W=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!==typeof t[0]&&t.shift(),i=t;if("undefined"===typeof r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var s="undefined"===typeof e,l="undefined"===typeof t;return s&&l&&r?r:i.reduce((function(e,n,r){if("undefined"===typeof n)throw new TypeError("An undefined reducer was passed in at index "+r);return n.apply(void 0,[e,t].concat(o))}),s&&!l&&r?r:e)}}((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case H.M.MAP_TOGGLE_BAR:return{...e,isMapBarOpen:t.value,wholeTableViewOpen:t.value?e.wholeTableViewOpen:t.value};case H.M.MAP_HARD_CLEAR_STATE:return t.setInitialState?(0,Z.p)(G):{...(0,Z.p)(G),fieldGeometries:e.fieldGeometries,fieldsByFarmId:e.fieldsByFarmId,feature:e.feature,wholeTableViewOpen:e.wholeTableViewOpen,isMapBarOpen:e.isMapBarOpen,group:e.group};case H.M.MAP_SET_FEATURE:return{...e,feature:t.feature,isMapBarOpen:!0};case H.M.MAP_TOGGLE_WHOLE_TABLE_VIEW:return{...e,wholeTableViewOpen:t.value};default:return e}}),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case H.M.MAP_LOAD_FIELDS:const r={};return t.fields.forEach((e=>r[e.ID]=e)),{...e,fields:t.fields,group:{...t.group},fieldsByFarmId:{...e.fieldsByFarmId,[t.group.id]:r}};case H.M.MAP_SAVE_FIELDS:return{...e,fieldsByFarmId:{...e.fieldsByFarmId,[t.farmId]:{...e.fieldsByFarmId[t.farmId],...t.fieldsById}}};case H.M.MAP_REPLACE_FIELDS:return{...e,fieldsByFarmId:{...e.fieldsByFarmId,[t.farmId]:t.fieldsById}};case H.M.MAP_FARM_UPDATE:return{...e,group:{...e.group,...t.group}};case H.M.MAP_FARM_DELETE:return delete e.fieldsByFarmId[t.farmId],{...e,fieldsByFarmId:{...e.fieldsByFarmId},group:t.farmId===e.group.id?{...G.group}:e.group};case H.M.MAP_HIGHLIGHT_FIELD:return{...e,highlightedFieldId:t.fieldId};case H.M.MAP_DELETE_FIELD:{const n=e.fields.filter((e=>!t.kmlId.includes(e.ID)));return t.farmId&&t.kmlId.forEach((n=>{var r,i;null===(r=e.fieldsByFarmId)||void 0===r||(null===(i=r[t.farmId])||void 0===i||delete i[n])})),{...e,fields:n,fieldsByFarmId:{...e.fieldsByFarmId}}}case H.M.MAP_BULK_CHANGE_FIELD_DATA:{const n={...e.fieldsByFarmId};return t.selectedKmlIds.forEach((e=>{const r=n[t.farmId],i=null===r||void 0===r?void 0:r[e];i&&(r[e]={...i,...t.fieldData})})),{...e,fields:e.fields.map((e=>t.selectedKmlIds.includes(e.ID)?{...e,...t.fieldData}:e)),fieldsByFarmId:n}}case H.M.MAP_SET_FIELD_GEOMETRIES:return{...e,fieldGeometries:{...e.fieldGeometries,...t.fieldGeometries}};case H.M.MAP_TOGGLE_DRAWING_MODE:return{...e,drawControl:{...e.drawControl,isDrawingMode:t.value,drawingModeLayerType:t.layerType}};case H.M.MAP_TOGGLE_EDITING_MODE:return{...e,drawControl:{...e.drawControl,isEditingMode:t.value,isDrawingMode:!1,drawingModeLayerType:"",fieldId:t.value?t.fieldId:void 0}};case H.M.SET_LOCATION_MARKER_COORDINATES:return{...e,locationMarkerPosition:t.markerPosition};case H.M.REPLACE_FIELD_AT_FIELDS_BY_FARM_ID:var n;return null===(n=e.fieldsByFarmId[t.farmId])||void 0===n||delete n[Number(t.fieldId)],{...e,fieldsByFarmId:{...e.fieldsByFarmId,[t.farmId]:{...e.fieldsByFarmId[t.farmId],[t.field.ID]:{...t.field}}}};default:return e}}));var Y=n(14291),K=n(73042),X=n(4921),J=n(6629),Q=n.n(J),ee=n(95602),te=n(72536),ne=n(45718),re=n(99730),ie=n(36888),oe=n(58090),ae=n.n(oe),se=n(43603),le=n.n(se),ce=n(61017),ue=n.n(ce),de=n(54709),pe=n.n(de),he=(n(59357),n(49346)),fe=n(35551),me=n(22168),ge=n(58146),ye=n(33506);const ve=(e,t)=>t,be=e=>e.sustainabilityInsights.filter,_e=e=>e.sustainabilityInsights.data,we=(0,fe.U)([be,(e,t)=>t],((e,t)=>e[t])),xe=(0,fe.U)([e=>we(e,"fieldAdopterType"),e=>we(e,"operationAdopterType")],((e,t)=>e||t)),ke=((0,fe.U)([be,(e,t)=>t],((e,t)=>{const n="fieldAdopterType"===t?"operationStatus":"operationSize";return e[t]||e[n]})),(0,re.P1)([be],(e=>e.aggLevel))),Ce=(0,re.P1)([_e,ke],((e,t)=>e[t])),Se=(0,re.P1)([Ce],(e=>e.geometries)),Me=(0,re.P1)([Ce],(e=>e.geometries)),Te=(0,re.P1)([Ce],(e=>e.meta)),Ee=(0,re.P1)([Ce],(e=>e.metrics)),Pe=((0,re.P1)([Ce],(e=>e.summary)),(0,re.P1)([_e],(e=>e.state.meta))),Ie=(0,re.P1)([_e],(e=>e.crd.meta)),Oe=(0,re.P1)([_e],(e=>e.county.meta)),Le=(0,re.P1)([_e],(e=>e.huc8.meta)),Re=(0,re.P1)([_e],(e=>e.huc10.meta)),je=(0,re.P1)([_e],(e=>e.huc12.meta)),De=(0,re.P1)(_e,(e=>e.policy)),Ae=(0,re.P1)([De],(e=>e.state)),Ne=(0,re.P1)([De],(e=>e.crd)),Fe=(0,re.P1)([De],(e=>e.county)),ze=(0,re.P1)([De],(e=>e.huc8)),Be=(0,re.P1)([De],(e=>e.huc10)),Ue=(0,re.P1)([De],(e=>e.huc12)),$e=((0,re.P1)([De],(e=>e.yearsAvailable)),(0,re.P1)([De],(e=>le()(X.OZ,e.aggLevelsAvailable))),(0,re.P1)([De,me.yX],((e,t)=>t?X.Vt:e.metricGroupsAvailable))),Ve=(0,re.P1)([$e,xe,e=>we(e,"operationAdopterType"),e=>we(e,"fieldAdopterType")],((e,t,n,r)=>{const i=ue()(X.c8,e);return i.grower_demographics&&t&&(i.grower_demographics=i.grower_demographics.map((e=>"cc_operations_nb"===e&&"new"===t?"cc_operations_new_nb":"cc_operations_nb"===e&&"consistent"===t?"cc_operations_consistent_nb":e))),i.grower_demographics&&n&&(i.grower_demographics.push("cc_operations_ac"),"new"===n?i.grower_demographics.push("cc_operations_new_ac"):"consistent"===n&&i.grower_demographics.push("cc_operations_consistent_ac")),i.grower_demographics&&r&&("new"===r?i.grower_demographics.push("cc_new_area_ac"):"consistent"===r&&i.grower_demographics.push("cc_consistent_area_ac")),i})),qe=(0,re.P1)([Te,ve],((e,t)=>null===e||void 0===e?void 0:e[t])),Ze=((0,re.P1)([qe],(e=>null===e||void 0===e?void 0:e.name)),(0,re.P1)([be],(e=>e.areaUnits))),He=((0,re.P1)([be],(e=>"pct"===e.areaUnits?"%":e.metricsType===he.Ug.ImperialUnits?he.Ug.ImperialUnits:"ops")),(0,re.P1)([be],(e=>e.activeGeometryType))),Ge=(0,re.P1)([be],(e=>e.operationSize)),We=(0,re.P1)([be],(e=>e.operationStatus)),Ye=(0,re.P1)([be],(e=>e.visibleGeometriesIds)),Ke=(0,re.P1)([be],(e=>e.activeGeometriesIds)),Xe=(0,re.P1)([be],(e=>e.summerCropTypes)),Je=(0,re.P1)([be],(e=>e.metricsType)),Qe=(0,re.P1)([De,ke],((e,t)=>e[t]||[])),et=((0,re.P1)([Qe,Ke],((e,t)=>(0,K.Of)(e)&&(0,K.Of)(t)&&e.length===t.length)),(0,re.P1)([Ye,Ke],((e,t)=>(null===e||void 0===e?void 0:e.length)&&e.length===t.length)),(0,re.P1)([Ke],(e=>e.reduce(((e,t)=>({...e,[(0,ye.qK)(t)]:!0,[t]:!0})),{})))),tt=(0,re.P1)([be],(e=>e.years)),nt=((0,re.P1)([tt],(e=>{var t,n;return(0,K.$K)(e)&&e.length>1?pe()(null!==(t=e[0])&&void 0!==t?t:0,e[1]).concat(null!==(n=e[1])&&void 0!==n?n:0):e})),(0,re.P1)([Ye],(e=>e.reduce(((e,t)=>(e[t]=ae().random().css(),e)),{}))),(0,re.P1)([Ye,Me],((e,t)=>{const n=e.map((e=>t[e])).filter(K.$K),r=(0,ie.uf4)(n);return L.geoJSON(r).getBounds()})),(0,re.P1)([et,ve],((e,t)=>!!e[t])),(0,re.P1)([Ee,ve],((e,t)=>e[t])),(0,re.P1)([Me,ve],((e,t)=>null===e||void 0===e?void 0:e[t])),(0,re.P1)([tt],(e=>!!(0,K.$K)(e)&&(0,ye.mX)(e))),(0,re.P1)([Ae,Pe],((e,t)=>e.map((e=>{var n;const{name:r}=null!==(n=t[e])&&void 0!==n?n:{};return{value:e,label:null!==r&&void 0!==r?r:""}})))),(0,re.P1)([()=>X.eB],(e=>Object.keys(e).map((t=>{var n;return{value:Number(t),label:null!==(n=e[Number(t)])&&void 0!==n?n:""}})))),(0,re.P1)([Fe,Oe,Pe],((e,t,n)=>Object.values(e.reduce(((e,r)=>{var i,o,a,s,l;const c=(0,ye.qK)(r);if(!n[c])return e;const u=t[r],d=n[c];return{...e,[c]:{...e[c]||{value:c,label:null!==(i=null===d||void 0===d?void 0:d.name)&&void 0!==i?i:"",options:[]},options:null!==(o=null===(a=e[c])||void 0===a||null===(s=a.options)||void 0===s?void 0:s.concat({value:r,label:null!==(l=null===u||void 0===u?void 0:u.name)&&void 0!==l?l:""}))&&void 0!==o?o:[]}}}),{})))),(0,re.P1)(be,(e=>e.highlightGeometryId))),rt=((0,re.P1)([nt,ve],((e,t)=>t===e)),e=>(e,t,n)=>{if(!e||!t)return[];return Object.values(e.reduce(((e,r)=>{var i,o,a,s,l;const{name:c,statefp:u}=null!==(i=t[r])&&void 0!==i?i:{},d=n[u];if(!d)return e;const p={label:c,value:r,statefp:u};return{...e,statefp:{...null!==(o=e[u])&&void 0!==o?o:{value:u,label:null===d||void 0===d?void 0:d.name,options:[]},options:null!==(a=(null!==(s=null===(l=e[u])||void 0===l?void 0:l.options)&&void 0!==s?s:[]).concat(p))&&void 0!==a?a:[]}}}),{}))}),it=e=>(t,n,r)=>{if(!t||!n)return[];return Object.values(t.reduce(((t,i)=>{var o;const{statefp:a}=n[i],s=r[a];return null!==s&&void 0!==s&&null!==(o=s[e])&&void 0!==o&&o.length?{...t,[a]:{...t[a]||{value:a,label:null===s||void 0===s?void 0:s.name}}}:t}),{}))},ot=((0,re.P1)([Ne,Ie,Pe],rt()),(0,re.P1)([ze,Le,Pe],rt()),(0,re.P1)([Be,Re,Pe],it("huc10")),(0,re.P1)([Ue,je,Pe],it("huc12")),{coverCrops:["cover_crops","grower_demographics"],tillage:["tillage_practices","grower_demographics"],ghg:["ghg"],soc:["soc_sequestration"],yield:["crop_yield"],fertilizer:["fertilizer"],ef:["ef"]}),at=e=>e.sustainabilityInsights.filter.stateIdsRequestParam,st=(0,re.P1)([be],(e=>e.supplyShedIdsRequestParam)),lt=(0,re.P1)([ke,at,st],((e,t,n)=>"supply_shed"===e?n:t)),ct=((0,re.P1)([Pe,at],((e,t)=>{var n;return null===(n=t.map((t=>e[t])))||void 0===n?void 0:n.filter(K.$K)})),(0,re.P1)([Se,ke,lt,Pe],((e,t,n,r)=>{if(!Object.values(e).length)return n;if("state"===t||"supply_shed"===t){return n.map(Number).reduce(((t,n)=>e[n]?t:t.concat(n)),[])}return n.map(Number).reduce(((n,i)=>{var o,a;return(null!==(o=null===(a=r[i])||void 0===a?void 0:a[t])&&void 0!==o?o:[]).some((t=>!e[t]))?n.concat(i):n}),[])})),(0,re.P1)([He,Ve],((e,t)=>ot[e].reduce(((e,n)=>{var r;return[...e,...null!==(r=t[n])&&void 0!==r?r:[]]}),[]))),(0,re.P1)([e=>we(e,"fieldAdopterType"),e=>we(e,"operationAdopterType"),We,Ge,Xe,He],((e,t,n,r,i,o)=>({fieldAdopterType:e,operationAdopterType:t,operationStatus:o===ge.om.CoverCrops?n:null,operationSize:o===ge.om.CoverCrops?r:null,summerCropTypes:i}))),(0,re.P1)([ke],(e=>["supply_shed","state"].includes(e)?"normal":"grouped")),(0,re.P1)([He,Ge,We,at,tt,ke,Je,Ze,e=>we(e,"fieldAdopterType"),e=>we(e,"operationAdopterType"),Xe,Ye,Ke],((e,t,n,r,i,o,a,s,l,c,u,d,p)=>({activeGeometryType:e,operationSize:t,operationStatus:n,stateIdsRequestParam:r,years:i,aggLevel:o,metricsType:a,areaUnits:s,fieldAdopterType:l,operationAdopterType:c,summerCropTypes:u,visibleGeometriesIds:d,activeGeometriesIds:p}))),e=>({type:ge.Us.SET_FILTER_YEARS,years:e})),ut=new ee.fK.Entity("county",{},{idAttribute:e=>e.county_fips||e.fips_code,processStrategy(e,t){const{id:n}=t,{county_fips:r,fips_code:i,county_name:o,name:a}=e;return{statefp:n,id:r||i,name:o||a}}}),dt=new ee.fK.Entity("crd",{},{idAttribute:e=>e.crd_id||e.id,processStrategy(e,t){const{id:n}=t,{crd_id:r,id:i,crd_name:o,name:a}=e;return{statefp:n,id:r||i,name:`CRD ${o||a}`}}}),pt=new ee.fK.Entity("huc8",{},{idAttribute:e=>e.huc8_id||e.id,processStrategy(e,t){const{id:n}=t,{huc8_id:r,id:i,huc8_name:o,name:a}=e;return{statefp:n,id:r||i,name:o||a}}}),ht=new ee.fK.Entity("huc10",{},{idAttribute:e=>e.huc10_id||e.id,processStrategy(e,t){const{id:n}=t,{huc10_id:r,id:i,huc10_name:o,name:a}=e;return{statefp:n,id:r||i,name:o||a}}}),ft=new ee.fK.Entity("huc12",{},{idAttribute:e=>e.huc12_id||e.id,processStrategy(e,t){const{id:n}=t,{huc12_id:r,id:i,huc12_name:o,name:a}=e;return{statefp:n,id:r||i,name:o||a}}}),mt=new ee.fK.Entity("state",{crd:[dt],county:[ut],huc8:[pt],huc10:[ht],huc12:[ft]},{idAttribute:e=>e.statefp||e.fips_code,processStrategy(e){const{statefp:t,fips_code:n,state_name:r,name:i,counties:o,crds:a,huc8s:s,huc10s:l,huc12s:c,...u}=e,d={id:t||n,name:i||r};return a&&(d.crd=a),o&&(d.county=o),s&&(d.huc8=s),l&&(d.huc10=l),c&&(d.huc12=c),{...d,...u}}}),gt=new ee.fK.Object({states:[mt]}),yt=(0,r.hg)(ge.Us.FETCH_METRICS,(async e=>(await te.i.getSiMetrics(e)).data)),vt=(0,r.hg)(ge.Us.FETCH_USER_POLICY,(async(e,t)=>{const n=await te.i.getUserPolicy(),r=(0,ee.Fv)(n.data.result,gt),{years:i}=r.result,o=i[i.length-1];return t.dispatch(ct([null!==o&&void 0!==o?o:(new Date).getFullYear()])),r})),bt=(0,r.hg)(ge.Us.FETCH_SUMMER_CROP_TYPES,(async()=>{const e=(e=>{const{crop_types:t}=e;return t?t.reduce(((e,t)=>({...e,[t.summer_crop_type]:t})),{}):{}})((await te.i.getSummerCropTypes()).data);return e})),_t=(0,r.hg)(ge.Us.FETCH_STATES_LIST,(async()=>{const e=await te.i.getStates();return(0,ee.Fv)(e.data,gt)})),wt=(0,r.hg)(ge.Us.FETCH_COUNTIES_LIST,(async()=>{const e=await te.i.getCounties();return(0,ee.Fv)(e.data,gt)})),xt=(0,r.hg)(ge.Us.FETCH_CRD_LIST,(async()=>{const e=await te.i.getCRDList();return(0,ee.Fv)(e.data,gt)})),kt=(0,r.hg)(ge.Us.FETCH_HUC8_LIST,(async()=>{const e=await te.i.getHUC8List();return(0,ee.Fv)(e.data,gt)})),Ct=(0,r.hg)(ge.Us.FETCH_HUC10_LIST,(async()=>{const e=await te.i.getHUC10List();return(0,ee.Fv)(e.data,gt)})),St=(0,r.hg)(ge.Us.FETCH_HUC12_LIST,(async()=>{const e=await te.i.getHUC12List();return(0,ee.Fv)(e.data,gt)})),Mt=((0,r.hg)(ge.Us.FETCH_AVAILABLE_AREA,(async(e,t)=>{let{dispatch:n}=t;try{const e=(await n(_t())).payload;e.result={...e.result,years:X.DD,metric_groups:X.Vt,agg_levels:X.OZ};n({type:vt.fulfilled.type,payload:{entities:{state:e.entities.state,crd:{},county:{},huc8:{},huc10:{},huc12:{}},result:e.result}});const t=X.DD[X.DD.length-1];n(ct([null!==t&&void 0!==t?t:(new Date).getFullYear()]));const[r,i,o,a,s]=await Promise.all([n(wt()),n(xt()),n(kt()),n(Ct()),n(St())]),l=i.payload,c=r.payload,u=o.payload,d=a.payload,p=s.payload,h=Object.keys(e.entities.state).reduce(((t,n)=>{var r,i,o,a,s;return{...t,[n]:{...e.entities.state[n],county:(null===(r=c.entities.state[n])||void 0===r?void 0:r.county)||[],crd:(null===(i=l.entities.state[n])||void 0===i?void 0:i.crd)||[],huc8:(null===(o=u.entities.state[n])||void 0===o?void 0:o.huc8)||[],huc10:(null===(a=d.entities.state[n])||void 0===a?void 0:a.huc10)||[],huc12:(null===(s=p.entities.state[n])||void 0===s?void 0:s.huc12)||[]}}}),{});n({type:vt.fulfilled.type,payload:{entities:{state:h,crd:l.entities.crd,county:c.entities.county,huc8:u.entities.huc8,huc10:d.entities.huc10,huc12:p.entities.huc12},result:e.result}})}catch(r){(0,ne.e)(r)}})),(0,r.hg)(ge.Us.FETCH_GEOMETRIES,(async e=>({geometries:(e=>{const{geometries:t}=e;return Object.keys(t).reduce(((e,n)=>{var r;const i=(0,ye.s5)(n);return{...e,[i]:null===(r=t[i])||void 0===r?void 0:r.geometry}}),{})})((await te.i.getGeometries(e)).data)})))),Tt=(0,r.oM)({name:"summerCropTypes",initialState:{},reducers:{},extraReducers:{[bt.fulfilled.type]:(e,t)=>t.payload}}),Et={aggLevelsAvailable:[],metricGroupsAvailable:[],yearsAvailable:[],state:[],crd:[],county:[],huc8:[],huc10:[],huc12:[],supply_shed:Object.keys(X.eB).map(Number)},Pt=(0,r.oM)({name:"policy",initialState:Et,reducers:{setPolicy(e,t){const{yearsAvailable:n,aggLevelsAvailable:r,metricGroupsAvailable:i}=t.payload;e.yearsAvailable=n,e.aggLevelsAvailable=r,e.metricGroupsAvailable=i}},extraReducers:e=>{e.addCase(vt.fulfilled.type,((e,t)=>{const{entities:n,result:{years:r,metric_groups:i,agg_levels:o}}=t.payload;return{...{...e,aggLevelsAvailable:o,metricGroupsAvailable:i,yearsAvailable:r},...Object.keys(n).reduce(((e,t)=>{const r=n[t];return e[t]=(0,Y.Os)(r).map(ye.s5).filter(K.$K),e}),{})}}))}}),It=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.oM)({name:e,initialState:{geometries:{},meta:{},metrics:{},summary:{},...t},reducers:{},extraReducers:t=>{t.addCase(Mt.fulfilled.type,((t,n)=>{const{payload:{geometries:r},meta:{arg:{agg_level:i}}}=n;if(i!==e)return t;t.geometries={...t.geometries,...r}})).addCase(yt.fulfilled.type,((t,n)=>{const{payload:{metrics:r,summary:i},meta:{arg:{agg_level:o}}}=n;if(o!==e)return t;t.metrics={...t.metrics,...r},t.summary={...t.summary,...i}})).addCase(vt.fulfilled.type,((t,n)=>{const{entities:r}=n.payload,i=r[e];t.meta={...t.meta,...i}}))}})},Ot=It("state"),Lt=It("crd"),Rt=It("county"),jt=It("huc8"),Dt=It("huc10"),At=It("huc12"),Nt=It("supply_shed",{meta:X.Ns}),Ft=(0,h.UY)({summerCropTypes:Tt.reducer,policy:Pt.reducer,supply_shed:Nt.reducer,state:Ot.reducer,crd:Lt.reducer,county:Rt.reducer,huc8:jt.reducer,huc10:Dt.reducer,huc12:At.reducer}),zt={stateIdsRequestParam:[],supplyShedIdsRequestParam:[],years:null,aggLevel:"state",metricsType:he.Ug.ImperialUnits,areaUnits:"pct",fieldAdopterType:null,operationAdopterType:null,operationSize:"",summerCropTypes:"",visibleGeometriesIds:[],activeGeometriesIds:[],highlightGeometryId:null,activeGeometryType:ge.om.CoverCrops,tillage:{chartTab:"summary",selectedPractice:ge.OV.NoTill,range:null},coverCrops:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null},ghg:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null},soc:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null},yield:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null},fertilizer:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null},ef:{chartTab:"summary",includeCategories:[ge.CZ.CoverCrop],range:null}},Bt=(0,h.UY)({filter:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vt.fulfilled.type:{var n;if(null!==(n=e.stateIdsRequestParam)&&void 0!==n&&n.length)return e;const{entities:r}=t.payload,i=r[e.aggLevel]?Object.keys(r[e.aggLevel]).map(ye.s5).filter((e=>!isNaN(e))):[];return{...e,stateIdsRequestParam:i,visibleGeometriesIds:i,activeGeometriesIds:i}}case ge.Us.SET_AREA_UNITS:{const{areaUnits:n}=t;return{...e,areaUnits:n,coverCrops:{...e.coverCrops,range:null},tillage:{...e.tillage,range:null}}}case ge.Us.SET_FILTER:return{...e,...t.payload,coverCrops:{...e.coverCrops,range:null},tillage:{...e.tillage,range:null}};case ge.Us.SET_AGG_LEVEL:{const{aggLevel:n,nextAreaIds:r}=t,i={...e,aggLevel:n,visibleGeometriesIds:r,activeGeometriesIds:r};return i.stateIdsRequestParam.length>1&&("huc10"===n||"huc12"===n)&&(i.stateIdsRequestParam=[]),i}case ge.Us.SET_CHART_TAB:{var r;const{tab:n,cardType:i,areEveryGeometrySelected:o}=t,a="trend"===n&&o&&(null===(r=e.activeGeometriesIds)||void 0===r?void 0:r.length)>X.Yl?[]:e.activeGeometriesIds;return{...e,activeGeometriesIds:a,[i]:{...e[i],chartTab:n}}}case ge.Us.SET_ACTIVE_GEOMETRIES_FILTER:{const{id:n,multiselect:r,resetVisible:i}=t,o=n?[].concat(n):[],a=r?Q()(e.activeGeometriesIds,o):o;return{...e,visibleGeometriesIds:i?a:e.visibleGeometriesIds,activeGeometriesIds:a}}case ge.Us.SELECT_ACTIVE_GEOMETRIES:{const{ids:n,selected:r,resetVisible:i}=t.payload,o=n?r?e.activeGeometriesIds.concat(n):e.activeGeometriesIds.filter((e=>!n.includes(e))):e.activeGeometriesIds;return{...e,visibleGeometriesIds:i?o:e.visibleGeometriesIds,activeGeometriesIds:o}}case ge.Us.SET_STATE_IDS_REQUEST_PARAM:{const{statesIds:n,selected:r}=t.payload;return"boolean"===typeof r?{...e,stateIdsRequestParam:r?e.stateIdsRequestParam.concat(n):e.stateIdsRequestParam.filter((e=>!n.includes(e)))}:{...e,stateIdsRequestParam:n}}case ge.Us.SET_SUPPLY_SHEDS_REQUEST_PARAM:{const{supplySheds:n,selected:r}=t.payload;return"boolean"===typeof r?{...e,supplyShedIdsRequestParam:r?e.supplyShedIdsRequestParam.concat(n):e.supplyShedIdsRequestParam.filter((e=>!n.includes(e)))}:{...e,supplyShedIdsRequestParam:n}}case ge.Us.SET_FILTER_YEARS:{const n={...e,years:t.years};return n.coverCrops.range=null,(0,ye.mX)(n.years)||(n.coverCrops.chartTab="summary"),n}case ge.Us.SET_FILTER_KEY:{const{key:n,value:r}=t,i={[n]:r};return{...e,...i}}case ge.Us.SET_HIGHLIGHT_GEOMETRY:{const{geometryId:n}=t;return{...e,highlightGeometryId:n}}case ge.Us.SET_CROP_CHART_FILTER_ACTION:{const{payload:n}=t;return{...e,coverCrops:{...e.coverCrops,...n}}}case ge.Us.TILLAGE_SET_SELECTED_PRACTICE:return{...e,tillage:{...e.tillage,selectedPractice:t.practice}};case ge.Us.TILLAGE_SET_RANGE_VALUES:return{...e,tillage:{...e.tillage,range:t.range}};case ge.Us.SET_SOC_FILTER:return{...e,[ge.om.SOC]:{...e[ge.om.SOC],...t.payload}};case ge.Us.SET_GHG_FILTER:return{...e,[ge.om.GHG]:{...e[ge.om.GHG],...t.payload}};case ge.Us.SET_YIELD_FILTER:return{...e,[ge.om.Yield]:{...e[ge.om.Yield],...t.payload}};case ge.Us.SET_EMISSIONS_FACTOR_FILTER:return{...e,[ge.om.EmissionsFactor]:{...e[ge.om.EmissionsFactor],...t.payload}};case ge.Us.SET_FERTILIZERS_FILTER:return{...e,[ge.om.Fertilizer]:{...e[ge.om.Fertilizer],...t.payload}};default:return e}},data:Ft}),Ut=Bt,$t={isOpenDialog:!1,markers:[],fileNames:[],confirmData:null,pereparedMarkers:[],setSubmitting:null,cellMapping:{sample_id:{title:(0,w.t)({id:"Point ID",defaultMessage:"Point ID"}),mappedKey:"sample_id",type:"text"},sample_date:{title:(0,w.t)({id:"Sample Date",defaultMessage:"Sample Date"}),mappedKey:"sample_date",type:"date"},lat:{title:(0,w.t)({id:"Lat",defaultMessage:"Lat"}),mappedKey:"lat",type:"number"},lng:{title:(0,w.t)({id:"Lng",defaultMessage:"Lng"}),mappedKey:"lng",type:"number"},n_result:{title:(0,w.t)({id:"Total N (%)",defaultMessage:"Total N (%)"}),mappedKey:"n_result",type:"number"},n_result2:{title:(0,w.t)({id:"Nitrate (ppm)",defaultMessage:"Nitrate (ppm)"}),mappedKey:"n_result2",type:"number"},total_K:{title:(0,w.t)({id:"Total K (%)",defaultMessage:"Total K (%)"}),mappedKey:"total_K",type:"number"},total_P:{title:(0,w.t)({id:"Total P (%)",defaultMessage:"Total P (%)"}),mappedKey:"total_P",type:"number"},Ca:{title:"Ca (%)",mappedKey:"Ca",type:"number"},Mg:{title:"Mg (%)",mappedKey:"Mg",type:"number"},Na:{title:"Na (%)",mappedKey:"Na",type:"number"},S:{title:"S (%)",mappedKey:"S",type:"number"},Zn_ppm:{title:"Zn (ppm)",mappedKey:"Zn_ppm",type:"number"},Mn_ppm:{title:"Mn (ppm)",mappedKey:"Mn_ppm",type:"number"},Fe_ppm:{title:"Fe (ppm)",mappedKey:"Fe_ppm",type:"number"},Cu_ppm:{title:"Cu (ppm)",mappedKey:"Cu_ppm",type:"number"},B_ppm:{title:"B (ppm)",mappedKey:"B_ppm",type:"number"},Cl:{title:"Cl (%)",mappedKey:"Cl",type:"number"},Mo_ppm:{title:"Mo (ppm)",mappedKey:"Mo_ppm",type:"number"},growthStage:{title:(0,w.t)({id:"Growth Stage",defaultMessage:"Growth Stage"}),mappedKey:"growthStage",type:"text"},samplingType:{title:(0,w.t)({id:"Plant Material Type",defaultMessage:"Plant Material Type"}),mappedKey:"samplingType",type:"text"}}},Vt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$t,t=arguments.length>1?arguments[1]:void 0;return"ts-upload-toggle-confirmation-popup"===t.type?{...e,confirmData:{...t.confirmData},pereparedMarkers:[...t.markers],setSubmitting:t.setSubmitting}:e};var qt=n(6856),Zt=n(77432),Ht=n(93294),Gt=n(26630),Wt=n(8022);const Yt={access:Zt.g.reducer,completion:Ht.y.reducer,entities:Gt.g.reducer,programBoundaries:Wt.x.reducer},Kt=(0,h.UY)(Yt),Xt={message:""},Jt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xt,t=arguments.length>1?arguments[1]:void 0;return"oauth/not-active"===t.type?Object.assign({},e,{message:t.message}):e};var Qt=n(61676),en=n(66793),tn=n(74942);const nn={syncStatus:Qt.e.Idle,selected:!1,authorized:!1},rn={selectedPlatformToImport:null,platforms:{[en.F.Agworld]:nn,[en.F.AgriWebb]:nn,[en.F.Smag]:nn,[en.F.Climate]:nn,[en.F.Agx]:nn,[en.F.JohnDeere]:nn}},on=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case tn.Us.AGWORLD_SYNC_GROWERS:return{...e,platforms:{...e.platforms,[en.F.Agworld]:{...e.platforms[en.F.Agworld],syncStatus:t.syncStatus}}};case tn.Us.AGRIWEBB_SYNC_FIELDS:return{...e,platforms:{...e.platforms,[en.F.AgriWebb]:{...e.platforms[en.F.AgriWebb],syncStatus:t.syncStatus}}};case tn.Us.SMAG_SYNC_FIELDS:return{...e,platforms:{...e.platforms,[en.F.Smag]:{...e.platforms[en.F.Smag],syncStatus:t.syncStatus}}};case tn.Us.AGX_SYNC_GROWERS:return{...e,platforms:{...e.platforms,[en.F.Agx]:{...e.platforms[en.F.Agx],syncStatus:t.syncStatus}}};case tn.Us.CLIMATE_SYNC_FIELDS:return{...e,platforms:{...e.platforms,[en.F.Climate]:{...e.platforms[en.F.Climate],syncStatus:t.syncStatus}}};case tn.Us.JOHN_DEERE_SYNC_GROWERS:return{...e,platforms:{...e.platforms,[en.F.JohnDeere]:{...e.platforms[en.F.JohnDeere],syncStatus:t.syncStatus}}};case tn.Us.SELECT_PLATFORM_TO_IMPORT:return{...e,selectedPlatformToImport:t.platform};case tn.Us.SET_PRESELECTED_PLATFORMS:const n={...e.platforms};return(0,Y.Os)(t.platforms).forEach((e=>{let r=n[e];null!==r&&(r={...r,authorized:t.platforms[e]}),n[e]=r})),{...e,platforms:n};case tn.Us.LOG_OUT_FROM_PLATFORM:return{...e,platforms:{...e.platforms,[t.platform]:{...e.platforms[t.platform],authorized:!1}}};case tn.Us.SET_PLATFORM_AUTH_VALUE:return{...e,platforms:{...e.platforms,[t.platform]:{...e.platforms[t.platform],authorized:t.value}}};default:return e}};var an=n(9580),sn=n(62293);const ln={tagKeys:[],fields:[],result:[],entities:[],farms:[],rawFieldsData:[],SIPolices:[],SIData:{countiesIds:[],meta:{},statesIds:[]}},cn=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ln,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case sn.Us.SET_TAG_KEYS:return{...n,tagKeys:r.tagKeys};case sn.Us.SWITCH_FEATURE:return{...n,fields:dn(n.fields,r),result:dn(n.result,r)};case sn.Us.BULK_SWITCH_FEATURE:return{...n,fields:[...null!==(e=pn(n.fields,r))&&void 0!==e?e:[]],result:pn(n.result,r)};case sn.Us.SET_SEARCH_RESULT:return{...n,fields:r.fields};case sn.Us.SET_ENTITIES:return{...n,entities:r.entities};case sn.Us.SET_ACTIVATION_RESULT:return{...n,result:[...r.result]};case sn.Us.SET_FARMS_RESULT:return{...n,farms:[...r.farms],rawFieldsData:null!==(t=r.rawFieldsData)&&void 0!==t?t:[]};case sn.Us.SET_EMAILS:return{...n,entities:n.entities.map((e=>e.id===r.entityId?{...e,value:JSON.stringify({emails:r.emails})}:e)),result:un(n.result,r),farms:un(n.farms,r)};case sn.Us.EXTEND_ENTITIES:return{...n,entities:[...n.entities,...r.entities]};case sn.Us.SET_SELECTOR_SEASON:{const e=n.entities.find((e=>e.entity_id===r.season.seasonId));let t=[],i=0;if(e)try{i=e.id;const n=JSON.parse(e.value);t=(null===n||void 0===n?void 0:n.emails)||[]}catch(o){}return{...n,farms:n.farms.map((e=>e.farmId===r.farmId&&e.fieldId===r.fieldId?{...e,...r.season,entityId:i,emails:t}:e)),result:n.result.map((e=>e.farmId===r.farmId&&e.fieldId===r.fieldId?{...e,...r.season,entityId:i,emails:t}:e))}}case sn.Us.SI_TAGGING_LOAD_POLICES:return{...n,SIPolices:r.polices.map((e=>({...e,agg_levels:e.agg_levels||[]})))};case sn.Us.SI_TAGGING_UPDATE_POLICY:{var i;const e=[...n.SIPolices];return null===(i=r.policy.user_ids)||void 0===i||i.forEach((t=>{const n={user_id:t,agg_levels:r.policy.agg_levels,states:r.policy.states,years:r.policy.years,metric_groups:r.policy.metric_groups},i=e.findIndex((e=>e.user_id===t));-1!==i?e[i]=n:e.push(n)})),{...n,SIPolices:e}}case sn.Us.SI_TAGGING_DELETE_POLICY:return{...n,SIPolices:n.SIPolices.filter((e=>e.user_id!==r.userId))};case sn.Us.SI_TAGGING_LOAD_ALL_STATES:return{...n,SIData:{...r.payload}};default:return n}};function un(e,t){return e.map((e=>e[`${t.entityType}Id`]===t.farmOrSeasonId?{...e,entityId:t.entityId,emails:[...t.emails],manualReview:t.manualReview,header_logo_url:t.header_logo_url}:e))}function dn(e,t){return t.entityType===sn.CS.Field?e.map((e=>e.fieldId===t.entityId?{...e,features:{...e.features,[t.key]:{...e.features[t.key],value:t.value,id:t.keyId}}}:e)):t.entityType===sn.CS.Season?e.map((e=>({...e,seasons:(e.seasons||[]).map((e=>e.id===t.entityId?{...e,features:{...e.features,[t.key]:{...e.features[t.key],value:t.value,id:t.keyId}}}:e))}))):e}function pn(e,t){return t.entityType===sn.CS.Field?e.map((e=>{const n=t.createdKeys.find((t=>e.fieldId===t.entity_id));return n?{...e,features:{...e.features,[t.key]:{...e.features[t.key],value:t.value,id:n.id}}}:e})):t.entityType===sn.CS.Season?e.map((e=>({...e,seasons:(e.seasons||[]).map((e=>{const n=t.createdKeys.find((t=>e.id===t.entity_id));return n?{...e,features:{...e.features,[t.key]:{...e.features[t.key],value:t.value,id:n.id}}}:e}))}))):e}var hn=n(87259);const fn={summary:{total_users:0,total_farms:0,total_fields:0,total_area_ha:0},list:[],loaded:!1},mn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case hn.U.SET_USER_ACTIVITY:{const{summary:n,list:r}=t.payload;return{...e,summary:n,list:r,loaded:!0}}case hn.U.UPDATE_SUMMARY_USER_ACTIVITY:return{...e,summary:t.summary};default:return e}};var gn=n(48890),yn=n(96543);const vn={list:[],organizations:[],user:{...$.p,id:"new",settings:{...$.p.settings}}},bn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yn.U.SET_ORGS:return{...e,organizations:[...t.organizations]};case yn.U.SET_SUBS:return{...e,subscriptions:[...t.subscriptions]};case yn.U.LOAD_USERS_LIST:return{...e,list:[...t.list]};case yn.U.LOAD_USERS_ONE:return{...e,user:{...e.user,...t.user}};default:return e}};var _n=n(92541);const wn=(xn=d.m,(0,h.UY)({addFields:v,admin:(0,h.UY)({cropTypesMatching:an.I6,features:cn,userAccess:gn.I}),carbon:qt.F.reducer,farms:b.Z,global:S,helpers:z,integrations:on,login:q,map:W,monitoring:Kt,oAuth:Jt,router:(0,p.iz)(xn),si:_n.ZP,sustainabilityInsights:Ut,tsUpload:Vt,userActivity:mn,users:bn}));var xn;const kn=u(d.m),Cn=[i.Z,kn];const Sn="production"===o.default.env;Sn&&"function"===typeof a.Z&&Cn.push(a.Z);const Mn=(0,r.xC)({reducer:wn,preloadedState:{},devTools:Sn?void 0:window.__REDUX_DEVTOOLS_EXTENSION__,middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(Cn)});let Tn=Mn.getState();Mn.subscribe((function(){Tn=Mn.getState()}));const En=Mn},55927:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,T:()=>i});var r=n(93240);const i=()=>(0,r.I0)(),o=r.v9},61676:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,j:()=>i});let r=function(e){return e.Idle="Idle",e.Loading="Loading",e.Skipped="Skipped",e.Error="Error",e.Success="Success",e.Timeout="Timeout",e.PartialSuccess="PartialSuccess",e}({});let i=function(e){return e.Login="/(mrv)?/login",e.SignUp="/(mrv)?/sign-up/:uuid?/:from?",e.ResetPassword="/(mrv)?/reset-password/",e.ResetPasswordConfirm="/(mrv)?/reset-password/:uuid",e}({})},31810:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>r,HM:()=>p,H_:()=>b,LO:()=>f,QT:()=>u,TD:()=>d,Uw:()=>g,X:()=>h,Xp:()=>a,a2:()=>o,fB:()=>s,fb:()=>l,id:()=>i,nO:()=>m,s7:()=>y,v1:()=>c,w:()=>v});let r=function(e){return e.Broadcasted="Broadcasted",e.Fertigation="Fertigation",e.Injected="Injected",e.Aviation="Aviation",e.Subsurface="Subsurface",e.Incorporated="Incorporated",e}({}),i=function(e){return e.SummerCropType="summer_crop_type",e.SummerHarvestDate="summer_harvest_date",e.SummerDryYield="summer_dry_yield",e.SummerResidueHarvested="summer_residue_harvested",e.SummerPlantingDate="summer_planting_date",e.WinterCropCommitment="winter_crop_commitment",e.WinterCropType="winter_crop_type",e.WinterHarvestDate="winter_harvest_date",e.WinterDryYield="winter_dry_yield",e.WinterResidueHarvested="winter_residue_harvested",e.WinterPlantingDate="winter_planting_date",e.FallTillagePractice="fall_tillage_practice",e.FallTillageDate="fall_tillage_date",e.FallTillageDepth="fall_tillage_depth",e.SpringTillagePractice="spring_tillage_practice",e.SpringTillageDate="spring_tillage_date",e.SpringTillageDepth="spring_tillage_depth",e.PlantingSeason="planting_season",e.PlantingDate="planting_date",e.HarvestDate="harvest_date",e.CropUsage="crop_usage",e.Other="other",e.String="string",e.Number="number",e.Date="date",e.Bool="bool",e.Harvest="harvest",e.Planting="planting",e.CropType="crop_type",e.CropYield="crop_yield",e.YieldRateUnit="yield_rate_unit",e.ResidueHarvested="residue_harvested",e.TillagePeriod="tillage_period",e.TillagePractice="tillage_practice",e.TillageDate="tillage_date",e.TillageDepth="tillage_depth",e.TillageDepthUnit="tillage_depth_unit",e.TillageEvent="tillage_event",e.StripFraction="strip_fraction",e.SoilInversion="soil_inversion",e.SpringTillage="Spring Tillage",e.FallTillage="Fall Tillage",e.WinterCrop="Winter Crop",e.Practice="Practice",e.SummerCrop="Summer Crop",e.RecordYear="record_year",e.WinterCropTermination="winter_crop_termination",e.ApplicationDate="application_date",e.ApplicationProduct="application_product",e.ApplicationRate="application_rate",e.ApplicationRateType="application_rate_type",e.ApplicationRateUnit="application_rate_unit",e.ApplicationArea="application_area",e.ApplicationDepth="application_depth",e.ApplicationDepthUnit="application_depth_unit",e.ApplicationMethod="application_method",e.ApplicationRateUnitVanity="application_rate_unit_vanity",e.ApplicationRateVanity="application_rate_vanity",e.ApplicationAreaVanity="application_area_vanity",e.WaterAmount="water_amount",e.WaterAmountUnit="water_amount_unit",e.AdditiveOne="additive_one",e.AdditiveTwo="additive_two",e.Additives="additives",e.FarmNumber="farm_number",e.CoverCropMix="cover_crop_mix",e.StartDate="start_date",e.EndDate="end_date",e.IrrigationMethod="irrigation_method",e.IrrigationEnabled="irrigation_enabled",e.IrrigationRateUnit="irrigation_rate_unit",e.FloodPct="flood_pct",e.SubsurfaceDripDepth="subsurface_drip_depth",e.SubsurfaceDripDepthUnit="subsurface_drip_depth_unit",e.EnergySource="energy_source",e.FuelType="fuel_type",e.PesticideFarmprintGaff="pesticide_farmprint_gaff",e.ProductionSystem="production_system",e.ChangeType="change_type",e.HeadCount="head_count",e.LivestockClass="livestock_class",e.FarmName="farm_name",e.AreaSown="area_sown",e.ResidueBurnt="residue_burnt",e.AreaTilledTotalPct="area_tilled_total_pct",e.AreaTilledForPastureRenewalPct="area_tilled_for_pasture_renewal_pct",e.NutrientManagementEnabled="nutrient_management_enabled",e.LandscapeModificationsFuelUsage="landscape_modifications_fuel_usage",e.LandscapeModificationsFuelType="landscape_modifications_fuel_type",e.IrrigationFuelUsage="irrigation_fuel_usage",e.IrrigationFuelType="irrigation_fuel_type",e.IrrigationElectricityUsage="irrigation_electricity_usage",e.IrrigationElectricitySource="irrigation_electricity_source",e.IrrigationElectricityGridName="irrigation_electricity_grid_name",e.TotalArea="total_area",e.TotalEnergyUsage="total_energy_usage",e.TotalFuelUsage="total_fuel_usage",e.SkipAssignPractice="skip_assign_practice",e.SeedingRate="seeding_rate",e.SeedingRateUnit="seeding_rate_unit",e.SeedVariety="seed_variety",e.FieldMargin="field_margin",e.FieldMarginArea="field_margin_area",e.VariableRate="variable_rate",e.PlantingMethod="planting_method",e.PlantingRate="planting_rate",e.PlantingRateUnit="planting_rate_unit",e}({}),o=function(e){return e.Rotational="rotational",e.Blended="blended",e.Matched="matched",e.ClimateMatched="climate_matched",e}({}),a=function(e){return e.InProgress="in_progress",e.Success="success",e.Failed="failed",e}({}),s=function(e){return e.CredentialsNotProvided="Credentials Not Provided",e.CredentialsProvided="Credentials Provided",e}({}),l=function(e){return e.CARGILLGRAIN2022="CARGILL_GRAIN_2022",e.CARGILLCOTTON2022="CARGILL_COTTON_2022",e.ELIGIBILITY_ALWAYS_TRUE="ELIGIBILITY_ALWAYS_TRUE",e.CARGILLEU2022UK="CARGILL_EU_2022_UK",e.CARGILLEU2022FR="CARGILL_EU_2022_FR",e.CARGILLGRAIN2023="CARGILL_GRAIN_2023",e.CARGILLGRAIN2024="CARGILL_GRAIN_2024",e.CARGILLCOTTON2023="CARGILL_COTTON_2023",e.CARGILLEU2023="CARGILL_EU_2023",e.CARGILLEU2024="CARGILL_EU_2024",e.CARGILLCOTTON2024="CARGILL_COTTON_2024",e.CUSTOM="CUSTOM",e}({}),c=function(e){return e.Field="field",e.Farm="farm",e.Mob="mob",e}({}),u=function(e){return e.User="user",e.Agworld="agworld",e.Agx="agx",e.Climate="climate",e.Efc="efc",e.JohnDeere="john_deere",e.Optis="optis",e.OtherFms="other_fms",e.Terravion="terravion",e.Agriwebb="agriwebb",e.Template="template",e.Smag="smag",e.Csv="csv",e}({}),d=function(e){return e.STATE="STATE",e.COUNTY="COUNTY",e.HUC8="HUC8",e.CRD="CRD",e.CUSTOM="CUSTOM",e}({}),p=function(e){return e.ENROLMENT="ENROLMENT",e.MONITORING="MONITORING",e.QA_QC="QA_QC",e.SOIL_SAMPLING="SOIL_SAMPLING",e.DASHBOARDS="DASHBOARDS",e.VERIFICATION="VERIFICATION",e}({}),h=function(e){return e.CoverCrops="Cover Crops",e.TillageReduction="Tillage Reduction",e.FertilizerReduction="Fertilizer reduction",e.IntegratedGrazing="Integrated Grazing",e.NutrientManagement="Nutrient Management",e.ConservationPractices="Conservation Practices",e.ReducedTill="Reduced Till",e.NoTill="No Till",e.Composting="Composting",e.WholeOrchardRecycling="Whole Orchard Recycling",e.CropRotation="Crop Rotation",e.IrrigationManagement="Irrigation Management",e.BasicCoverCrops="Basic Cover Crops",e.PremiumCoverCrops="Premium Cover Crops",e.ConventionalTill="Conventional Till",e.NoCoverCrop="No Cover Crop",e.AlternatingWettingDrying="Alternating wetting & drying",e.FurrowIrrigation="Furrow irrigation",e.StubbleRetention="Stubble retention",e.StockingIntensity="Stocking intensity",e.StockingDuration="Stocking duration",e.SoilAmendments="Soil amendments",e.IncorporateLegumes="Incorporate legumes",e.SeedingOrPastureCropping="Seeding or pasture cropping",e.LandscapeModification="Landscape modification",e.ThinningWoodyVegetation="Thinning woody vegetation",e.ClearWoodyVegetation="Clear woody vegetation",e.RotationOrIntensiveGrazing="Rotation or intensive grazing",e.TraditionalCascadeFlooding="Traditional cascade flooding",e.DripIrrigation="Drip irrigation",e.RateReduction="Rate reduction",e.SplitApplication="Split application",e.Timing="Timing",e.DirectSeedingDry="Direct seeding (dry)",e.FertilizerSubstitution="Fertilizer substitution",e.ResidueRemoval="Residue removal",e.ReducedPlantingDensity="Reduced planting density",e.ManureApplication="Manure application",e.NInhibitors="N inhibitors",e.CatchCrops="Catch crops",e.CompanionCrops="Companion crops",e.PhytosanitaryManagement="Phytosanitary management",e.FieldMarginOptions="Field margin options",e.Intercropping="Intercropping",e.RelayCropping="Relay cropping",e}({}),f=function(e){return e.TILLAGE="TILLAGE",e.COVER_CROP="COVER_CROP",e.IRRIGATION="IRRIGATION",e.COMMODITY_CROP="COMMODITY_CROP",e.NUTRIENT_MANAGEMENT="NUTRIENT_MANAGEMENT",e}({}),m=function(e){return e.Enrolment="Enrolment",e.Monitoring="Monitoring",e.Verification="Verification",e.Stratification="Stratification",e.QAQC="QA/QC",e}({}),g=function(e){return e.VerraVM0042V20="Verra VM0042 v2.0",e.CARSoilEnrichmentProtocolV11="CAR Soil Enrichment Protocol v1.1",e.SustainCERTCargillRegenConnect="SustainCERT - Cargill RegenConnect",e.GeneralScope3="General Scope 3",e}({}),y=function(e){return e.MeasureApi="measure_api",e.ExploreApi="explore_api",e.BiofuelsApi="biofuels_api",e}({}),v=function(e){return e.FIELD_BOUNDARIES="FIELD_BOUNDARIES",e.ASSIGN_PRACTICES="ASSIGN_PRACTICES",e.CONFIRM_HISTORY="CONFIRM_HISTORY",e.SUMMER_CROPS="SUMMER_CROPS",e.WINTER_CROPS="WINTER_CROPS",e.TILLAGE="TILLAGE",e.NUTRIENT_MGMT="NUTRIENT_MGMT",e.VIEW_OUTCOMES="VIEW_OUTCOMES",e.SURVEY="SURVEY",e.CONTRACT="CONTRACT",e.ELIGIBILITY="ELIGIBILITY",e.FIELD_INFORMATION="FIELD_INFORMATION",e.HISTORICAL_CROP_ROTATION="HISTORICAL_CROP_ROTATION",e.HISTORICAL_TILLAGE="HISTORICAL_TILLAGE",e.INTENDED_COMMODITY_CROPS="INTENDED_COMMODITY_CROPS",e.IRRIGATION="IRRIGATION",e.RICE_CROP_HISTORY="RICE_CROP_HISTORY",e.MOB_HISTORY="MOB_HISTORY",e.MOB_MOVEMENT="MOB_MOVEMENT",e.FARM_LEVEL_MANAGEMENT="FARM_LEVEL_MANAGEMENT",e.NUTRIENT_MGMT_INTENDED="NUTRIENT_MGMT_INTENDED",e.CROP_EVENTS="CROP_EVENTS",e.IRRIGATION_EVENTS="IRRIGATION_EVENTS",e.NUTRIENT_EVENTS="NUTRIENT_EVENTS",e.TILLAGE_EVENTS="TILLAGE_EVENTS",e.CHEMICAL_MANAGEMENT="CHEMICAL_MANAGEMENT",e}({}),b=function(e){return e.US_IMPERIAL="US_IMPERIAL",e.METRIC="METRIC",e}({})},2243:(e,t,n)=>{"use strict";n.d(t,{Z0:()=>De,X6:()=>be,ZP:()=>We,xw:()=>we,eR:()=>_e,SL:()=>Se,op:()=>Me,LQ:()=>xe,bA:()=>Ce,JS:()=>ke,mp:()=>ye,O_:()=>ve});var r=n(29972),i=n(48204);const o=function(e,t,n){var o=(e=e||{}).random||(e.rng||r.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return(0,i.Z)(o)};var a=n(74480),s=n.n(a),l=n(9722),c=n.n(l),u=n(16955),d=n.n(u),p=n(34083),h=n(62050),f=n(5045),m=n(82523),g=n(50150),y=n(90286),v=n(57186);function b(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return(0,v.Z)(n)?t:(0,g.Z)((function(t,r){return e(n,t,r)}));case 2:return(0,v.Z)(n)&&(0,v.Z)(r)?t:(0,v.Z)(n)?(0,g.Z)((function(t,n){return e(t,r,n)})):(0,v.Z)(r)?(0,g.Z)((function(t,r){return e(n,t,r)})):(0,y.Z)((function(t){return e(n,r,t)}));default:return(0,v.Z)(n)&&(0,v.Z)(r)&&(0,v.Z)(i)?t:(0,v.Z)(n)&&(0,v.Z)(r)?(0,g.Z)((function(t,n){return e(t,n,i)})):(0,v.Z)(n)&&(0,v.Z)(i)?(0,g.Z)((function(t,n){return e(t,r,n)})):(0,v.Z)(r)&&(0,v.Z)(i)?(0,g.Z)((function(t,r){return e(n,t,r)})):(0,v.Z)(n)?(0,y.Z)((function(t){return e(t,r,i)})):(0,v.Z)(r)?(0,y.Z)((function(t){return e(n,t,i)})):(0,v.Z)(i)?(0,y.Z)((function(t){return e(n,r,t)})):e(n,r,i)}}}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}var w=n(5040);const x=b((function(e,t,n){var r,i={};for(r in t)(0,w.Z)(r,t)&&(i[r]=(0,w.Z)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)(0,w.Z)(r,n)&&!(0,w.Z)(r,i)&&(i[r]=n[r]);return i}));const k=b((function e(t,n,r){return x((function(n,r,i){return _(r)&&_(i)?e(t,r,i):t(n,r,i)}),n,r)}));const C=(0,g.Z)((function(e,t){return k((function(e,t,n){return t}),e,t)}));var S=n(26783);function M(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var T=n(19389);const E=b(T.Z);var P=n(2065);function I(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return(0,P.Z)(r)||"function"!==typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const O=b(I("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const L=(0,y.Z)(I("tail",O(1,1/0)));function R(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return(0,S.Z)(arguments[0].length,E(M,arguments[0],L(arguments)))}var j=n(39679);var D=n(60552),A=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=D.Z.init,e.prototype["@@transducer/result"]=D.Z.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=(0,g.Z)((function(e,t){return new A(e,t)}));var F=n(91098);const z=(0,g.Z)((function(e,t){return 1===e?(0,y.Z)(t):(0,S.Z)(e,(0,F.Z)(e,[],t))}));var B=n(51985);const U=(0,g.Z)((0,j.Z)(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return z(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return(0,T.Z)((function(n,r){return n[r]=e(t[r]),n}),{},(0,B.Z)(t));default:return function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}(e,t)}})));var $=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=D.Z.init,e.prototype["@@transducer/result"]=D.Z.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();const V=(0,g.Z)((function(e,t){return new $(e,t)}));const q=(0,g.Z)((0,j.Z)(["filter"],V,(function(e,t){return _(t)?(0,T.Z)((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},(0,B.Z)(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)})));const Z=b((function(e,t,n){return e(n)<e(t)?n:t}));const H=b((function(e,t,n){return e(n)>e(t)?n:t}));var G=n(67435);const W=(0,g.Z)(I("groupBy",(0,G.Z)((function(e,t){return null==e&&(e=[]),e.push(t),e}),null)));var Y=n(68331);function K(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s<l;){if((0,Y.Z)(n[s]))for(o=0,i=(r=e?t(n[s]):n[s]).length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}const X=(0,y.Z)(K(!0));var J=n(17127);const Q=(0,g.Z)((function(e,t){return U((0,J.Z)(e),t)}));const ee="function"===typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)(0,w.Z)(o,i)&&(t[o]=i[o]);n+=1}return t};const te=(0,y.Z)((function(e){return ee.apply(null,[{}].concat(e))}));var ne=n(40467);var re=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=D.Z.init,e.prototype["@@transducer/result"]=D.Z.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n,r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?(n=r)&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}:r},e}();const ie=(0,g.Z)((function(e,t){return new re(e,t)}));const oe=(0,g.Z)((0,j.Z)(["take"],ie,(function(e,t){return O(0,e<0?1/0:e,t)})));function ae(e,t){return oe(e<t.length?t.length-e:0,t)}var se=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=D.Z.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}();const le=(0,g.Z)((function(e,t){return new se(e,t)}));const ce=(0,g.Z)((0,j.Z)([],le,ae));var ue=n(74334);const de=function(e){var t=function(e){return{"@@transducer/init":D.Z.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var r=e["@@transducer/step"](t,n);return r["@@transducer/reduced"]?{"@@transducer/value":r,"@@transducer/reduced":!0}:r}}}(e);return{"@@transducer/init":D.Z.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return(0,Y.Z)(n)?(0,T.Z)(t,e,n):(0,T.Z)(t,e,[n])}}};const pe=(0,g.Z)((function(e,t){return U(e,de(t))}));const he=(0,g.Z)((0,j.Z)(["fantasy-land/chain","chain"],pe,(function(e,t){return"function"===typeof t?function(n){return e(t(n))(n)}:K(!1)(U(e,t))})))(ue.Z);var fe=n(69981),me=n.n(fe);n(18606);const ge="day";function ye(e){const t=e||{};return(0,p.Z)((0,h.Z)(t).map((e=>{let[t,n]=e;if(["measures","dimensions","segments","timeDimensions","filters"].includes(t)&&Array.isArray(n)&&0===n.length)return null;if("order"===t&&n){if(Array.isArray(n)&&!n.length)return null;if(!Object.keys(n).length)return null}return[t,n]})).filter(Boolean))}function ve(e){const t=e||{};return ye({...t,filters:(t.filters||[]).filter((e=>e.operator)),timeDimensions:(t.timeDimensions||[]).filter((e=>!(!e.dateRange&&!e.granularity)))})}function be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,f.Z)(Object.entries(e&&e.order||{}),Object.entries(t&&t.order||{}))&&(0,f.Z)(e,t)}function _e(e){const t=(e.timeDimensions||[]).find((e=>e.granularity));return t?{[t.dimension]:"asc"}:(e.measures||[]).length>0&&(e.dimensions||[]).length>0?{[e.measures[0]]:"desc"}:(e.dimensions||[]).length>0?{[e.dimensions[0]]:"asc"}:{}}function we(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const{query:r,...i}=(0,m.Z)(e),{meta:o,sessionGranularity:a}=n,s=a||ge;let l={query:r,...i},c=null;if(be(r,t)||(c=r),Array.isArray(c)||Array.isArray(t))return e;if(c){if(1===(t.timeDimensions||[]).length&&1===(c.timeDimensions||[]).length&&c.timeDimensions[0].granularity&&t.timeDimensions[0].granularity!==c.timeDimensions[0].granularity&&(l={...l,sessionGranularity:c.timeDimensions[0].granularity}),0===(t.measures||[]).length&&(c.measures||[]).length>0||1===(t.measures||[]).length&&1===(c.measures||[]).length&&t.measures[0]!==c.measures[0]){const[e]=c.timeDimensions||[],t=o.defaultTimeDimensionNameFor(c.measures[0]);return c={...c,timeDimensions:t?[{dimension:t,granularity:e&&e.granularity||s,dateRange:e&&e.dateRange}]:[]},{...l,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:c,chartType:t?"line":"number"}}return 0===(t.dimensions||[]).length&&(c.dimensions||[]).length>0?(c={...c,timeDimensions:(c.timeDimensions||[]).map((e=>({...e,granularity:void 0})))},{...l,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:c,chartType:"table"}):(t.dimensions||[]).length>0&&0===(c.dimensions||[]).length?(c={...c,timeDimensions:(c.timeDimensions||[]).map((e=>({...e,granularity:e.granularity||s})))},{...l,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:c,chartType:(c.timeDimensions||[]).length?"line":"number"}):((t.dimensions||[]).length>0||(t.measures||[]).length>0)&&0===(c.dimensions||[]).length&&0===(c.measures||[]).length?(c={...c,timeDimensions:[],filters:[]},{...l,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:c,sessionGranularity:null}):l}if(l.chartType){const e=l.chartType;if(("line"===e||"area"===e)&&1===(t.timeDimensions||[]).length&&!t.timeDimensions[0].granularity){const[e]=t.timeDimensions;return{...l,pivotConfig:null,query:{...t,timeDimensions:[{...e,granularity:s}]}}}if(("pie"===e||"table"===e||"number"===e)&&1===(t.timeDimensions||[]).length&&t.timeDimensions[0].granularity){const[e]=t.timeDimensions;return{...l,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:{...t,timeDimensions:[{...e,granularity:void 0}]}}}}return l}function xe(e){return!!e&&(Array.isArray(e)?e:[e]).every((e=>e.measures&&e.measures.length||e.dimensions&&e.dimensions.length||e.timeDimensions&&e.timeDimensions.length))}function ke(e,t,n,r,i){const o={...e,x:[...e.x],y:[...e.y]},a=e[r][t],s=o[i].length-1;return"measures"===a?n=s+1:r===i&&n>=s&&"measures"===o[i][s]?n=s-1:r!==i&&n>s&&"measures"===o[i][s]&&(n=s),o[r].splice(t,1),o[i].splice(n,0,a),o}function Ce(e,t,n){const r=[...e],[i]=r.splice(t,1);return r.splice(n,0,i),r}function Se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>t.or||t.and?[...e,...Se(t.or||t.and)]:[...e,t]),[])}function Me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return["measures","dimensions","segments"].forEach((n=>(e[n]||[]).forEach((e=>t.add(e))))),(e.timeDimensions||[]).forEach((e=>t.add(e.dimension))),Se(e.filters).forEach((e=>t.add(e.dimension||e.member))),[...t]}function Te(e,t,n,r){const i=e.filter((e=>null!=e));return n&&n.aliasSeries&&n.aliasSeries[t]?[n.aliasSeries[t],...i]:r.has(i[0])?[t,...i]:i}s().extend(c());const Ee=function(){return s()(...arguments).locale({...d(),weekStart:1})},Pe={day:e=>e.by("d").map((e=>e.format("YYYY-MM-DDT00:00:00.000"))),month:e=>e.snapTo("month").by("M").map((e=>e.format("YYYY-MM-01T00:00:00.000"))),year:e=>e.snapTo("year").by("y").map((e=>e.format("YYYY-01-01T00:00:00.000"))),hour:e=>e.by("h").map((e=>e.format("YYYY-MM-DDTHH:00:00.000"))),minute:e=>e.by("m").map((e=>e.format("YYYY-MM-DDTHH:mm:00.000"))),second:e=>e.by("s").map((e=>e.format("YYYY-MM-DDTHH:mm:ss.000"))),week:e=>e.snapTo("week").by("w").map((e=>e.startOf("week").format("YYYY-MM-DDT00:00:00.000"))),quarter:e=>e.snapTo("quarter").by("quarter").map((e=>e.startOf("quarter").format("YYYY-MM-DDT00:00:00.000")))},Ie=/^\d\d\d\d-\d\d-\d\d$/,Oe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z?$/,Le=e=>{const t=[];return e.forEach((e=>{e.forEach((e=>t.push(e)))})),t},Re=(e,t)=>({by:n=>{const r=[];let i=Ee(e);const o=Ee(t);for(;i.isBefore(o)||i.isSame(o);)r.push(i),i=i.add(1,n);return r},snapTo:n=>Re(Ee(e).startOf(n),Ee(t).endOf(n)),start:Ee(e),end:Ee(t)}),je={REGULAR_QUERY:"regularQuery",COMPARE_DATE_RANGE_QUERY:"compareDateRangeQuery",BLENDING_QUERY:"blendingQuery"};class De{static measureFromAxis(e){return e[e.length-1]}static timeDimensionMember(e){return`${e.dimension}.${e.granularity}`}static deserialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new De(e.loadResponse,t)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.loadResponse=e,null!=this.loadResponse.queryType?(this.queryType=e.queryType,this.loadResponses=e.results):(this.queryType=je.REGULAR_QUERY,this.loadResponse.pivotQuery={...e.query,queryType:this.queryType},this.loadResponses=[e]),!Object.values(je).includes(this.queryType))throw new Error("Unknown query type");this.parseDateMeasures=t.parseDateMeasures,this.options=t,this.backwardCompatibleData=[]}drillDown(e,t){if(this.queryType===je.COMPARE_DATE_RANGE_QUERY)throw new Error("compareDateRange drillDown query is not currently supported");if(this.queryType===je.BLENDING_QUERY)throw new Error("Data blending drillDown query is not currently supported");const{query:n}=this.loadResponses[0],{xValues:r=[],yValues:i=[]}=e,o=this.normalizePivotConfig(t),a=[];o.x.forEach(((e,t)=>a.push([e,r[t]]))),o.y.forEach(((e,t)=>a.push([e,i[t]])));const{filters:l=[],segments:c=[]}=this.query(),{measures:u}=this.loadResponses[0].annotation;let[,d]=a.find((e=>{let[t]=e;return"measures"===t}))||[];if(void 0===d&&([d]=Object.keys(u)),!(u[d]&&u[d].drillMembers||[]).length)return null;const p=[{member:d,operator:"measureFilter"},...l],h=[];return a.filter((e=>{let[t]=e;return"measures"!==t})).forEach((e=>{let[t,r]=e;const[i,o,a]=t.split(".");if(void 0!==a){const e=Re(r,r).snapTo(a),t=n.timeDimensions.find((e=>e.dimension));let l=[e.start,e.end];if(t?.dateRange){const[n,r]=t.dateRange;l=[s()(n)>e.start?s()(n):e.start,s()(r)<e.end?s()(r):e.end]}h.push({dimension:[i,o].join("."),dateRange:l.map((e=>e.format("YYYY-MM-DDTHH:mm:ss.SSS")))})}else null==r?p.push({member:t,operator:"notSet"}):p.push({member:t,operator:"equals",values:[r.toString()]})})),0===h.length&&n.timeDimensions.length>0&&null==n.timeDimensions[0].granularity&&h.push(n.timeDimensions[0]),{...u[d].drillMembersGrouped,filters:p,...c.length>0?{segments:c}:{},timeDimensions:h,segments:c,timezone:n.timezone}}series(e){return this.seriesNames(e).map((t=>{let{title:n,shortTitle:r,key:i}=t;return{title:n,shortTitle:r,key:i,series:this.chartPivot(e).map((e=>{let{x:t,...n}=e;return{value:n[i],x:t}}))}}))}axisValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const{query:n}=this.loadResponses[t];return t=>{const r=n=>e.filter((e=>"measures"!==e)).map((e=>null!=t[e]?t[e]:null)).concat(n?[n]:[]);return e.find((e=>"measures"===e))&&(n.measures||[]).length?n.measures.map(r):[r()]}}axisValuesString(e,t){return e.map((e=>null==e?"\u2205":""===e?"[Empty string]":e)).join(t||", ")}static getNormalizedPivotConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{measures:n=[],dimensions:r=[]}=e,i=(e.timeDimensions||[]).filter((e=>!!e.granularity));t=t||(i.length?{x:i.map((e=>De.timeDimensionMember(e))),y:r}:{x:r,y:[]}),t=C(t,{x:[],y:[],fillMissingDates:!0,joinDateRange:!1});const o=t=>t.map((t=>i.find((e=>e.dimension===t))&&!r.find((e=>e===t))?De.timeDimensionMember(e.timeDimensions.find((e=>e.dimension===t))):t));t.x=o(t.x),t.y=o(t.y);const a=t.x.concat(t.y),s=i.map((e=>De.timeDimensionMember(e))).concat(r),l=e=>s.includes(e)||"measures"===e;return t.x=t.x.concat(s.filter((e=>!a.includes(e)&&"compareDateRange"!==e))).filter(l),t.y=t.y.filter(l),t.x.concat(t.y).find((e=>"measures"===e))||t.y.push("measures"),r.includes("compareDateRange")&&!t.y.concat(t.x).includes("compareDateRange")&&t.y.unshift("compareDateRange"),n.length||(t.x=t.x.filter((e=>"measures"!==e)),t.y=t.y.filter((e=>"measures"!==e))),t}normalizePivotConfig(e){return De.getNormalizedPivotConfig(this.loadResponse.pivotQuery,e)}timeSeries(e,t){if(!e.granularity)return null;let{dateRange:n}=e;if(!n){const r=De.timeDimensionMember(e),i=R(U((e=>e[r]&&Ee(e[r]))),q(Boolean))(this.timeDimensionBackwardCompatibleData(t));n=i.length&&[E(Z((e=>e.toDate())),i[0],i),E(H((e=>e.toDate())),i[0],i)]||null}if(!n)return null;const r=e.dateRange?e.dateRange.find((e=>e.match(Ie))):!["hour","minute","second"].includes(e.granularity),[i,o]=n,a=Re(i,o);if(!Pe[e.granularity])throw new Error(`Unsupported time granularity: ${e.granularity}`);return Pe[e.granularity](r?a.snapTo("d"):a)}pivot(e){var t=this;e=this.normalizePivotConfig(e);const{pivotQuery:n}=this.loadResponse,r=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=(e=>{const t=new Map;return n=>(n.forEach((n=>{const r=e(n);t.has(r)||t.set(r,[]),t.get(r).push(n)})),Array.from(t.entries()))})((e=>{let{xValues:n}=e;return t.axisValuesString(n)}));const o=(e,t)=>e[t]||0;if(e.fillMissingDates&&1===e.x.length&&(0,f.Z)(e.x,(n.timeDimensions||[]).filter((e=>Boolean(e.granularity))).map((e=>De.timeDimensionMember(e))))){const e=t.loadResponses.map((e=>t.timeSeries(e.query.timeDimensions[0],r)));e[0]&&(i=t=>{const n=W((e=>{let{xValues:t}=e;return t[0]}),t);return e[r].map((e=>[e,n[e]||[{xValues:[e],row:{}}]]))})}const a=R(U((n=>t.axisValues(e.x,r)(n).map((e=>({xValues:e,row:n}))))),Le,i)(t.timeDimensionBackwardCompatibleData(r)),s={};a.forEach((n=>{let[,i]=n;i.forEach((n=>{let{row:i}=n;t.axisValues(e.y,r)(i).forEach((e=>{Object.keys(i).length>0&&(s[e.join()]=e)}))}))}));const l=Object.values(s),c=Boolean(e.x.find((e=>"measures"===e)));return a.map((n=>{let[,i]=n;const{xValues:a}=i[0],s={};return i.forEach((n=>{let{row:i}=n;t.axisValues(e.y,r)(i).map((e=>({yValues:e,row:i}))).forEach((e=>{s[t.axisValuesString(e.yValues)]=e}))})),{xValues:a,yValuesArray:Le(l.map((e=>{const n=c?De.measureFromAxis(a):De.measureFromAxis(e);return[[e,o((s[t.axisValuesString(e)]||{row:{}}).row,n)]]})))}}))},i=this.loadResponses.length>1?this.loadResponses.map(((e,t)=>r(t))):[];return i.length?this.mergePivots(i,e.joinDateRange):r()}mergePivots(e,t){const n=e.reduce(((e,t)=>null!=e&&t.length>=e.length?e:t),null);return n.map(((r,i)=>({xValues:t?[e.map((e=>e[i]&&e[i].xValues||[])).join(", ")]:n[i].xValues,yValuesArray:Le(e.map((e=>e[i].yValuesArray)))})))}pivotedRows(e){return this.chartPivot(e)}chartPivot(e){const t=e=>this.parseDateMeasures&&Oe.test(e)?new Date(e):Number.isNaN(Number.parseFloat(e))?e:Number.parseFloat(e),n=new Set;if(this.queryType===je.BLENDING_QUERY){X(this.loadResponses.map((e=>{let{query:t}=e;return t.measures}))).filter(((e,t,n)=>n.indexOf(e)!==t)).forEach((e=>n.add(e)))}return this.pivot(e).map((r=>{let{xValues:i,yValuesArray:o}=r;const a={};return o.forEach(((r,i)=>{let[o,s]=r;a[this.axisValuesString(Te(o,i,e,n),",")]=s&&t(s)})),{x:this.axisValuesString(i,","),xValues:i,...a}}))}tablePivot(e){const t=this.normalizePivotConfig(e||{}),n=t.x.concat(t.y).includes("measures");return this.pivot(t).map((e=>{let{xValues:r,yValuesArray:i}=e;return(0,p.Z)(t.x.map(((e,t)=>[e,r[t]])).concat(n?i.map((e=>{let[t,n]=e;return[t.length?t.join():"value",n]})):[]))}))}tableColumns(e){const t=this.normalizePivotConfig(e||{}),n=R(Q("annotation"),E(C(),{}))(this.loadResponses),r=Object.values(n).reduce(((e,t)=>({...e,...t})),{}),i={},o=e=>{const{title:t,shortTitle:n,type:i,format:o,meta:a}=r[e]||{};return{key:e,title:t,shortTitle:n,type:i,format:o,meta:a}},a=this.pivot(t);(a[0]&&a[0].yValuesArray||[]).forEach((e=>{let[n]=e;if(n.length>0){let e=i;n.forEach(((n,r)=>{e[`_${n}`]={key:n,memberId:"measures"===t.y[r]?n:t.y[r],children:e[`_${n}`]&&e[`_${n}`].children||{}},e=e[`_${n}`].children}))}}));const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return 0===Object.keys(e).length?[]:Object.values(e).map((e=>{let{key:n,...r}=e;const i=s(r.children,[...t,n]),{title:a,shortTitle:l,...c}=o(r.memberId),u=n!==r.memberId||null==a?n:"";return i.length?{...c,key:n,title:[a,u].join(" ").trim(),shortTitle:u||l,children:i}:{...c,key:n,dataIndex:[...t,n].join(),title:[a,u].join(" ").trim(),shortTitle:u||l}}))};let l=[];return!a.length&&t.y.includes("measures")&&(l=(this.loadResponses[0].query.measures||[]).map((e=>({...o(e),dataIndex:e})))),!t.y.length&&t.x.includes("measures")&&l.push({key:"value",dataIndex:"value",title:"Value",shortTitle:"Value",type:"string"}),t.x.map((e=>"measures"===e?{key:"measures",dataIndex:"measures",title:"Measures",shortTitle:"Measures",type:"string"}:{...o(e),dataIndex:e})).concat(s(i)).concat(l)}totalRow(e){return this.chartPivot(e)[0]}categories(e){return this.chartPivot(e)}seriesNames(e){e=this.normalizePivotConfig(e);const t=R(Q("annotation"),Q("measures"),te)(this.loadResponses),n=Le(this.loadResponses.map(((t,n)=>R(U(this.axisValues(e.y,n)),Le,ne.Z)(this.timeDimensionBackwardCompatibleData(n))))),r=new Set;if(this.queryType===je.BLENDING_QUERY){X(this.loadResponses.map((e=>{let{query:t}=e;return t.measures}))).filter(((e,t,n)=>n.indexOf(e)!==t)).forEach((e=>r.add(e)))}return n.map(((n,i)=>{const o=Te(n,i,e,r);return{title:this.axisValuesString(e.y.find((e=>"measures"===e))?ce(1,o).concat(t[De.measureFromAxis(n)].title):o,", "),shortTitle:this.axisValuesString(e.y.find((e=>"measures"===e))?ce(1,o).concat(t[De.measureFromAxis(n)].shortTitle):o,", "),key:this.axisValuesString(o,","),yValues:n}}))}query(){if(this.queryType!==je.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].query}pivotQuery(){return this.loadResponse.pivotQuery||null}totalRows(){return this.loadResponses[0].total}rawData(){if(this.queryType!==je.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].data}annotation(){if(this.queryType!==je.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].annotation}timeDimensionBackwardCompatibleData(e){if(void 0===e)throw new Error("resultIndex is required");if(!this.backwardCompatibleData[e]){const{data:t,query:n}=this.loadResponses[e],r=(n.timeDimensions||[]).filter((e=>Boolean(e.granularity)));this.backwardCompatibleData[e]=t.map((e=>({...e,...(0,p.Z)(Object.keys(e).filter((t=>r.find((e=>e.dimension===t))&&!e[De.timeDimensionMember(r.find((e=>e.dimension===t)))])).map((t=>[De.timeDimensionMember(r.find((e=>e.dimension===t))),e[t]])))})))}return this.backwardCompatibleData[e]}decompose(){return this.loadResponses.map((e=>new De({queryType:je.REGULAR_QUERY,pivotQuery:{...e.query,queryType:je.REGULAR_QUERY},results:[e]},this.options)))}serialize(){return{loadResponse:(0,m.Z)(this.loadResponse)}}}class Ae{constructor(e){this.sqlQuery=e}rawQuery(){return this.sqlQuery.sql}sql(){return this.rawQuery().sql[0]}}const Ne=e=>(0,p.Z)(e.map((e=>[e.name,e]))),Fe={string:[{name:"contains",title:"contains"},{name:"notContains",title:"does not contain"},{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"set",title:"is set"},{name:"notSet",title:"is not set"},{name:"startsWith",title:"starts with"},{name:"notStartsWith",title:"does not start with"},{name:"endsWith",title:"ends with"},{name:"notEndsWith",title:"does not end with"}],number:[{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"set",title:"is set"},{name:"notSet",title:"is not set"},{name:"gt",title:">"},{name:"gte",title:">="},{name:"lt",title:"<"},{name:"lte",title:"<="}],time:[{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"inDateRange",title:"in date range"},{name:"notInDateRange",title:"not in date range"},{name:"afterDate",title:"after date"},{name:"afterOrOnDate",title:"after or on date"},{name:"beforeDate",title:"before date"},{name:"beforeOrOnDate",title:"before or on date"}]};class ze{constructor(e){this.meta=e;const{cubes:t}=this.meta;this.cubes=t,this.cubesMap=(0,p.Z)(t.map((e=>[e.name,{measures:Ne(e.measures),dimensions:Ne(e.dimensions),segments:Ne(e.segments)}])))}membersForQuery(e,t){return he(this.cubes.map((e=>e[t]))).sort(((e,t)=>e.title>t.title?1:-1))}membersGroupedByCube(){const e=["measures","dimensions","segments","timeDimensions"];return this.cubes.reduce(((t,n)=>(e.forEach((e=>{let r=n[e];"timeDimensions"===e&&(r=n.dimensions.filter((e=>"time"===e.type))),t[e]=[...t[e],{cubeName:n.name,cubeTitle:n.title,type:n.type,public:n.public,members:r}]})),t)),{measures:[],dimensions:[],segments:[],timeDimensions:[]})}resolveMember(e,t){const[n]=e.split(".");if(!this.cubesMap[n])return{title:e,error:`Cube not found ${n} for path '${e}'`};const r=(Array.isArray(t)?t:[t]).map((t=>this.cubesMap[n][t]&&this.cubesMap[n][t][e])).find((e=>e));return r||{title:e,error:`Path not found '${e}'`}}defaultTimeDimensionNameFor(e){const[t]=e.split(".");return this.cubesMap[t]?Object.keys(this.cubesMap[t].dimensions||{}).find((e=>"time"===this.cubesMap[t].dimensions[e].type)):null}filterOperatorsForMember(e,t){const n=this.resolveMember(e,t);return Fe[n.type]||Fe.string}}class Be{constructor(e){this.progressResponse=e}stage(){return this.progressResponse.stage}timeElapsed(){return this.progressResponse.timeElapsed}}class Ue{constructor(e){let{authorization:t,apiUrl:n,method:r,headers:i={},credentials:o}=e;this.authorization=t,this.apiUrl=n,this.method=r,this.headers=i,this.credentials=o}request(e,t){let{baseRequestId:n,...r}=t,i=1;const o=new URLSearchParams(r&&Object.keys(r).map((e=>({[e]:"object"===typeof r[e]?JSON.stringify(r[e]):r[e]}))).reduce(((e,t)=>({...e,...t})),{}));let a=`${this.apiUrl}/${e}${o.toString().length?`?${o}`:""}`;const s=this.method||(a.length<2e3?"GET":"POST");"POST"===s&&(a=`${this.apiUrl}/${e}`,this.headers["Content-Type"]="application/json");const l=()=>me()(a,{method:s,headers:{Authorization:this.authorization,"x-request-id":n&&`${n}-span-${i++}`,...this.headers},credentials:this.credentials,body:"POST"===s?JSON.stringify(r):null});return{async subscribe(e){let t={error:"network Error"};try{t=await l()}finally{return e(t,(()=>this.subscribe(e)))}}}}}class $e extends Error{constructor(e,t,n){super(e),this.response=t,this.status=n}}let Ve=0;const qe="Mutex has been changed",Ze="default",He="compact";class Ge{constructor(e,t){if(null===e||Array.isArray(e)||"object"!==typeof e||(t=e,e=void 0),!(t=t||{}).transport&&!t.apiUrl)throw new Error("The `apiUrl` option is required");this.apiToken=e,this.apiUrl=t.apiUrl,this.method=t.method,this.headers=t.headers||{},this.credentials=t.credentials,this.transport=t.transport||new Ue({authorization:"function"===typeof e?void 0:e,apiUrl:this.apiUrl,method:this.method,headers:this.headers,credentials:this.credentials}),this.pollInterval=t.pollInterval||5,this.parseDateMeasures=t.parseDateMeasures,this.castNumerics="boolean"===typeof t.castNumerics&&t.castNumerics,this.updateAuthorizationPromise=null}request(e,t){return this.transport.request(e,{baseRequestId:o(),...t})}loadMethod(e,t,n,r){const i=++Ve;"function"!==typeof n||r||(r=n,n=void 0);const o=(n=n||{}).mutexKey||"default";n.mutexObj&&(n.mutexObj[o]=i);const a=this.updateTransportAuthorization().then((()=>e()));let s=!0,l=!1;const c=async()=>{const e=await a;if(n.mutexObj&&n.mutexObj[o]!==i)throw l=!0,e.unsubscribe&&await e.unsubscribe(),qe},u=async(e,i)=>{const o=await a,u=async()=>n.subscribe&&!l?(o.unsubscribe||await new Promise((e=>setTimeout((()=>e()),1e3*this.pollInterval))),i()):null,d=async e=>l?null:(e&&await new Promise((e=>setTimeout((()=>e()),1e3*this.pollInterval))),i());if(n.subscribe&&!s&&await this.updateTransportAuthorization(),s=!1,502===e.status)return await c(),d(!0);let p={},h="";try{h=await e.text(),p=JSON.parse(h)}catch(m){p.error=h}if("Continue wait"===p.error)return await c(),n.progressCallback&&n.progressCallback(new Be(p)),d();if(200!==e.status){await c(),!n.subscribe&&o.unsubscribe&&await o.unsubscribe();const t=new $e(p.error,p,e.status);if(!r)throw t;return r(t),u()}await c(),!n.subscribe&&o.unsubscribe&&await o.unsubscribe();const f=t(p);return r?(r(null,f),u()):f},d=a.then((e=>function(e){return new Promise((async(t,n)=>{try{t(await e)}catch(r){r!==qe&&n(r)}}))}(e.subscribe(u))));return r?{unsubscribe:async()=>{const e=await a;return l=!0,e.unsubscribe?e.unsubscribe():null}}:d}async updateTransportAuthorization(){this.updateAuthorizationPromise?await this.updateAuthorizationPromise:"function"===typeof this.apiToken&&(this.updateAuthorizationPromise=new Promise((async(e,t)=>{try{const t=await this.apiToken();this.transport.authorization!==t&&(this.transport.authorization=t),e()}catch(n){t(n)}finally{this.updateAuthorizationPromise=null}})),await this.updateAuthorizationPromise)}patchQueryInternal(e,t){return t===He&&e.responseFormat!==He?{...e,responseFormat:He}:e}loadResponseInternal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.results.length&&(t.castNumerics&&e.results.forEach((e=>{const t=Object.entries({...e.annotation.measures,...e.annotation.dimensions}).map((e=>{let[t,n]=e;if("number"===n.type)return t})).filter(Boolean);e.data=e.data.map((e=>(t.forEach((t=>{null!=e[t]&&(e[t]=Number(e[t]))})),e)))})),e.results[0].query.responseFormat&&e.results[0].query.responseFormat===He&&e.results.forEach(((t,n)=>{const r=[];t.data.dataset.forEach((e=>{const n={};t.data.members.forEach(((t,r)=>{n[t]=e[r]})),r.push(n)})),e.results[n].data=r}))),new De(e,{parseDateMeasures:this.parseDateMeasures})}load(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ze;return t={castNumerics:this.castNumerics,...t},r===He&&(e=Array.isArray(e)?e.map((e=>this.patchQueryInternal(e,He))):this.patchQueryInternal(e,He)),this.loadMethod((()=>this.request("load",{query:e,queryType:"multi"})),(e=>this.loadResponseInternal(e,t)),t,n)}subscribe(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ze;return t={castNumerics:this.castNumerics,...t},r===He&&(e=Array.isArray(e)?e.map((e=>this.patchQueryInternal(e,He))):this.patchQueryInternal(e,He)),this.loadMethod((()=>this.request("subscribe",{query:e,queryType:"multi"})),(e=>this.loadResponseInternal(e,t)),{...t,subscribe:!0},n)}sql(e,t,n){return this.loadMethod((()=>this.request("sql",{query:e})),(e=>Array.isArray(e)?e.map((e=>new Ae(e))):new Ae(e)),t,n)}meta(e,t){return this.loadMethod((()=>this.request("meta")),(e=>new ze(e)),e,t)}dryRun(e,t,n){return this.loadMethod((()=>this.request("dry-run",{query:e})),(e=>e),t,n)}}const We=(e,t)=>new Ge(e,t)},24597:(e,t)=>{"use strict";function n(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"===typeof e)return e?1:0;if("number"===typeof e)return e;if("symbol"===typeof e||"bigint"===typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function r(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t}Object.defineProperty(t,"__esModule",{value:!0}),t.msFromTime=t.OrdinaryHasInstance=t.SecFromTime=t.MinFromTime=t.HourFromTime=t.DateFromTime=t.MonthFromTime=t.InLeapYear=t.DayWithinYear=t.DaysInYear=t.YearFromTime=t.TimeFromYear=t.DayFromYear=t.WeekDay=t.Day=t.Type=t.HasOwnProperty=t.ArrayCreate=t.SameValue=t.ToObject=t.TimeClip=t.ToNumber=t.ToString=void 0,t.ToString=function(e){if("symbol"===typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)},t.ToNumber=n,t.TimeClip=function(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var t=n(e);if(isNaN(t)||r(t,-0))return 0;if(isFinite(t))return t;var i=Math.floor(Math.abs(t));return t<0&&(i=-i),r(i,-0)?0:i}(e):NaN},t.ToObject=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)},t.SameValue=r,t.ArrayCreate=function(e){return new Array(e)},t.HasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.Type=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":void 0};var i=864e5;function o(e,t){return e-Math.floor(e/t)*t}function a(e){return Math.floor(e/i)}function s(e){return Date.UTC(e,0)/i}function l(e){return new Date(e).getUTCFullYear()}function c(e){return e%4!==0?365:e%100!==0?366:e%400!==0?365:366}function u(e){return a(e)-s(l(e))}function d(e){return 365===c(l(e))?0:1}function p(e){var t=u(e),n=d(e);if(t>=0&&t<31)return 0;if(t<59+n)return 1;if(t<90+n)return 2;if(t<120+n)return 3;if(t<151+n)return 4;if(t<181+n)return 5;if(t<212+n)return 6;if(t<243+n)return 7;if(t<273+n)return 8;if(t<304+n)return 9;if(t<334+n)return 10;if(t<365+n)return 11;throw new Error("Invalid time")}t.Day=a,t.WeekDay=function(e){return o(a(e)+4,7)},t.DayFromYear=s,t.TimeFromYear=function(e){return Date.UTC(e,0)},t.YearFromTime=l,t.DaysInYear=c,t.DayWithinYear=u,t.InLeapYear=d,t.MonthFromTime=p,t.DateFromTime=function(e){var t=u(e),n=p(e),r=d(e);if(0===n)return t+1;if(1===n)return t-30;if(2===n)return t-58-r;if(3===n)return t-89-r;if(4===n)return t-119-r;if(5===n)return t-150-r;if(6===n)return t-180-r;if(7===n)return t-211-r;if(8===n)return t-242-r;if(9===n)return t-272-r;if(10===n)return t-303-r;if(11===n)return t-333-r;throw new Error("Invalid time")};var h=1e3;t.HourFromTime=function(e){return o(Math.floor(e/36e5),24)},t.MinFromTime=function(e){return o(Math.floor(e/6e4),60)},t.SecFromTime=function(e){return o(Math.floor(e/h),60)},t.OrdinaryHasInstance=function(e,t,n){if("function"!==typeof e)return!1;if(null===n||void 0===n?void 0:n.boundTargetFunction)return t instanceof(null===n||void 0===n?void 0:n.boundTargetFunction);if("object"!==typeof t)return!1;var r=e.prototype;if("object"!==typeof r)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(r,t)},t.msFromTime=function(e){return o(e,h)}},42551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanonicalizeLocaleList=void 0,t.CanonicalizeLocaleList=function(e){return Intl.getCanonicalLocales(e)}},89489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanonicalizeTimeZoneName=void 0,t.CanonicalizeTimeZoneName=function(e,t){var n=t.tzData,r=t.uppercaseLinks,i=e.toUpperCase(),o=Object.keys(n).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{}),a=r[i]||o[i];return"Etc/UTC"===a||"Etc/GMT"===a?"UTC":a}},42372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoerceOptionsToObject=void 0;var r=n(24597);t.CoerceOptionsToObject=function(e){return"undefined"===typeof e?Object.create(null):(0,r.ToObject)(e)}},37260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultNumberOption=void 0,t.DefaultNumberOption=function(e,t,n,r){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>n)throw new RangeError("".concat(e," is outside of range [").concat(t,", ").concat(n,"]"));return Math.floor(e)}return r}},18301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetNumberOption=void 0;var r=n(37260);t.GetNumberOption=function(e,t,n,i,o){var a=e[t];return(0,r.DefaultNumberOption)(a,n,i,o)}},8544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOption=void 0;var r=n(24597);t.GetOption=function(e,t,n,i,o){if("object"!==typeof e)throw new TypeError("Options must be an object");var a=e[t];if(void 0!==a){if("boolean"!==n&&"string"!==n)throw new TypeError("invalid type");if("boolean"===n&&(a=Boolean(a)),"string"===n&&(a=(0,r.ToString)(a)),void 0!==i&&!i.filter((function(e){return e==a})).length)throw new RangeError("".concat(a," is not within ").concat(i.join(", ")));return a}return o}},5727:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOptionsObject=void 0,t.GetOptionsObject=function(e){if("undefined"===typeof e)return Object.create(null);if("object"===typeof e)return e;throw new TypeError("Options must be an object")}},89838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetStringOrBooleanOption=void 0;var r=n(24597);t.GetStringOrBooleanOption=function(e,t,n,i,o,a){var s=e[t];if(void 0===s)return a;if(!0===s)return i;if(!1===Boolean(s))return o;if("true"===(s=(0,r.ToString)(s))||"false"===s)return a;if(-1===(n||[]).indexOf(s))throw new RangeError("Invalid value ".concat(s));return s}},96268:(e,t)=>{"use strict";function n(e){return e.slice(e.indexOf("-")+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IsSanctionedSimpleUnitIdentifier=t.SIMPLE_UNITS=t.removeUnitNamespace=t.SANCTIONED_UNITS=void 0,t.SANCTIONED_UNITS=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"],t.removeUnitNamespace=n,t.SIMPLE_UNITS=t.SANCTIONED_UNITS.map(n),t.IsSanctionedSimpleUnitIdentifier=function(e){return t.SIMPLE_UNITS.indexOf(e)>-1}},37064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsValidTimeZoneName=void 0,t.IsValidTimeZoneName=function(e,t){var n=t.tzData,r=t.uppercaseLinks,i=e.toUpperCase(),o=new Set,a=new Set;return Object.keys(n).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),Object.keys(r).forEach((function(e){a.add(e.toUpperCase()),o.add(r[e].toUpperCase())})),o.has(i)||a.has(i)}},17928:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedCurrencyCode=void 0;var n=/[^A-Z]/;t.IsWellFormedCurrencyCode=function(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!n.test(e)}},38704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedUnitIdentifier=void 0;var r=n(96268);t.IsWellFormedUnitIdentifier=function(e){if(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()})),(0,r.IsSanctionedSimpleUnitIdentifier)(e))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var n=t[0],i=t[1];return!(!(0,r.IsSanctionedSimpleUnitIdentifier)(n)||!(0,r.IsSanctionedSimpleUnitIdentifier)(i))}},58681:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyUnsignedRoundingMode=void 0,t.ApplyUnsignedRoundingMode=function(e,t,n,r){if(e===t)return t;if(void 0===r)throw new Error("unsignedRoundingMode is mandatory");if("zero"===r)return t;if("infinity"===r)return n;var i=e-t,o=n-e;if(i<o)return t;if(o<i)return n;if(i!==o)throw new Error("Unexpected error");if("half-zero"===r)return t;if("half-infinity"===r)return n;if("half-even"!==r)throw new Error("Unexpected value for unsignedRoundingMode: ".concat(r));return 0===t/(n-t)%2?t:n}},42916:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseNumberRange=void 0,t.CollapseNumberRange=function(e){return e}},23584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeExponent=void 0;var r=n(76981),i=n(80367),o=n(71190);t.ComputeExponent=function(e,t,n){var a=n.getInternalSlots;if(0===t)return[0,0];t<0&&(t=-t);var s=(0,r.getMagnitude)(t),l=(0,i.ComputeExponentForMagnitude)(e,s,{getInternalSlots:a});t=l<0?t*Math.pow(10,-l):t/Math.pow(10,l);var c=(0,o.FormatNumericToString)(a(e),t);return 0===c.roundedNumber||(0,r.getMagnitude)(c.roundedNumber)===s-l?[l,s]:[(0,i.ComputeExponentForMagnitude)(e,s+1,{getInternalSlots:a}),s+1]}},80367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeExponentForMagnitude=void 0,t.ComputeExponentForMagnitude=function(e,t,n){var r=(0,n.getInternalSlots)(e),i=r.notation,o=r.dataLocaleData,a=r.numberingSystem;switch(i){case"standard":return 0;case"scientific":return t;case"engineering":return 3*Math.floor(t/3);default:var s=r.compactDisplay,l=r.style,c=r.currencyDisplay,u=void 0;if("currency"===l&&"name"!==c){u=(o.numbers.currency[a]||o.numbers.currency[o.numbers.nu[0]]).short}else{var d=o.numbers.decimal[a]||o.numbers.decimal[o.numbers.nu[0]];u="long"===s?d.long:d.short}if(!u)return 0;var p=String(Math.pow(10,t)),h=Object.keys(u);if(p<h[0])return 0;if(p>h[h.length-1])return h[h.length-1].length-1;var f=h.indexOf(p);if(-1===f)return 0;var m=h[f];return"0"===u[m].other?0:m.length-u[m].other.match(/0+/)[0].length}}},48544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrencyDigits=void 0;var r=n(24597);t.CurrencyDigits=function(e,t){var n=t.currencyDigitsData;return(0,r.HasOwnProperty)(n,e)?n[e]:2}},21587:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatApproximately=void 0,t.FormatApproximately=function(e,t,n){var r=(0,n.getInternalSlots)(e),i=r.dataLocaleData.numbers.symbols[r.numberingSystem].approximatelySign;return t.push({type:"approximatelySign",value:i}),t}},17783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericRange=void 0;var r=n(77385);t.FormatNumericRange=function(e,t,n,i){var o=i.getInternalSlots;return(0,r.PartitionNumberRangePattern)(e,t,n,{getInternalSlots:o}).map((function(e){return e.value})).join("")}},76328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericRangeToParts=void 0;var r=n(77385);t.FormatNumericRangeToParts=function(e,t,n,i){var o=i.getInternalSlots;return(0,r.PartitionNumberRangePattern)(e,t,n,{getInternalSlots:o}).map((function(e,t){return{type:e.type,value:e.value,source:e.source,result:t.toString()}}))}},8571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericToParts=void 0;var r=n(71909),i=n(24597);t.FormatNumericToParts=function(e,t,n){for(var o=(0,r.PartitionNumberPattern)(e,t,n),a=(0,i.ArrayCreate)(0),s=0,l=o;s<l.length;s++){var c=l[s];a.push({type:c.type,value:c.value})}return a}},71190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericToString=void 0;var r=n(24597),i=n(90775),o=n(76981),a=n(99332);t.FormatNumericToString=function(e,t){var n,s=t<0||(0,r.SameValue)(t,-0);switch(s&&(t=-t),e.roundingType){case"significantDigits":n=(0,i.ToRawPrecision)(t,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":n=(0,a.ToRawFixed)(t,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(n=(0,i.ToRawPrecision)(t,1,2)).integerDigitsCount>1&&(n=(0,a.ToRawFixed)(t,0,0))}t=n.roundedNumber;var l=n.formattedString,c=n.integerDigitsCount,u=e.minimumIntegerDigits;return c<u&&(l=(0,o.repeat)("0",u-c)+l),s&&(t=-t),{roundedNumber:t,formattedString:l}}},84029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnsignedRoundingMode=void 0;var n={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},r={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};t.GetUnsignedRoundingMode=function(e,t){return t?n[e]:r[e]}},91444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeNumberFormat=void 0;var r=n(31921),i=n(42551),o=n(42372),a=n(18301),s=n(8544),l=n(89838),c=n(76981),u=n(48544),d=n(44758),p=n(19450),h=[1,2,5,10,20,25,50,100,200,250,500,1e3,2e3];t.InitializeNumberFormat=function(e,t,n,f){var m=f.getInternalSlots,g=f.localeData,y=f.availableLocales,v=f.numberingSystemNames,b=f.getDefaultLocale,_=f.currencyDigitsData,w=(0,i.CanonicalizeLocaleList)(t),x=(0,o.CoerceOptionsToObject)(n),k=Object.create(null),C=(0,s.GetOption)(x,"localeMatcher","string",["lookup","best fit"],"best fit");k.localeMatcher=C;var S=(0,s.GetOption)(x,"numberingSystem","string",void 0,void 0);if(void 0!==S&&v.indexOf(S)<0)throw RangeError("Invalid numberingSystems: ".concat(S));k.nu=S;var M=(0,r.ResolveLocale)(Array.from(y),w,k,["nu"],g,b),T=g[M.dataLocale];(0,c.invariant)(!!T,"Missing locale data for ".concat(M.dataLocale));var E=m(e);E.locale=M.locale,E.dataLocale=M.dataLocale,E.numberingSystem=M.nu,E.dataLocaleData=T,(0,p.SetNumberFormatUnitOptions)(e,x,{getInternalSlots:m});var P,I,O=E.style;if("currency"===O){var L=E.currency,R=(0,u.CurrencyDigits)(L,{currencyDigitsData:_});P=R,I=R}else P=0,I="percent"===O?0:3;var j=(0,s.GetOption)(x,"notation","string",["standard","scientific","engineering","compact"],"standard");E.notation=j,(0,d.SetNumberFormatDigitOptions)(E,x,P,I,j);var D=(0,a.GetNumberOption)(x,"roundingIncrement",1,5e3,1);if(-1===h.indexOf(D))throw new RangeError("Invalid rounding increment value: ".concat(D,".\nValid values are ").concat(h,"."));if(1!==D&&"fractionDigits"!==E.roundingType)throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");if(1!==D&&E.maximumFractionDigits!==E.minimumFractionDigits)throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");E.roundingIncrement=D;var A=(0,s.GetOption)(x,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");E.trailingZeroDisplay=A;var N=(0,s.GetOption)(x,"compactDisplay","string",["short","long"],"short"),F="auto";return"compact"===j&&(E.compactDisplay=N,F="min2"),E.useGrouping=(0,l.GetStringOrBooleanOption)(x,"useGrouping",["min2","auto","always"],"always",!1,F),E.signDisplay=(0,s.GetOption)(x,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto"),E.roundingMode=(0,s.GetOption)(x,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),e}},71909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartitionNumberPattern=void 0;var r=n(5836),i=n(71190),o=n(24597),a=n(23584),s=r.__importDefault(n(30399));t.PartitionNumberPattern=function(e,t,n){var r,l,c,u=n.getInternalSlots,d=u(e),p=d.pl,h=d.dataLocaleData,f=d.numberingSystem,m=h.numbers.symbols[f]||h.numbers.symbols[h.numbers.nu[0]],g=0,y=0;if(isNaN(t))l=m.nan;else if(t==Number.POSITIVE_INFINITY||t==Number.NEGATIVE_INFINITY)l=m.infinity;else{if(!(0,o.SameValue)(t,-0)){if(!isFinite(t))throw new Error("Input must be a mathematical value");"percent"==d.style&&(t*=100),y=(r=(0,a.ComputeExponent)(e,t,{getInternalSlots:u}))[0],g=r[1],t=y<0?t*Math.pow(10,-y):t/Math.pow(10,y)}var v=(0,i.FormatNumericToString)(d,t);l=v.formattedString,t=v.roundedNumber}switch(d.signDisplay){case"never":c=0;break;case"auto":c=(0,o.SameValue)(t,0)||t>0||isNaN(t)?0:-1;break;case"always":c=(0,o.SameValue)(t,0)||t>0||isNaN(t)?1:-1;break;default:c=0===t||isNaN(t)?0:t>0?1:-1}return(0,s.default)({roundedNumber:t,formattedString:l,exponent:y,magnitude:g,sign:c},d.dataLocaleData,p,d)}},77385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartitionNumberRangePattern=void 0;var r=n(71909),i=n(42916),o=n(21587);t.PartitionNumberRangePattern=function(e,t,n,a){var s=a.getInternalSlots;if(isNaN(t)||isNaN(n))throw new RangeError("Input must be a number");var l=[],c=(0,r.PartitionNumberPattern)(e,t,{getInternalSlots:s}),u=(0,r.PartitionNumberPattern)(e,n,{getInternalSlots:s});if(c===u)return(0,o.FormatApproximately)(e,c,{getInternalSlots:s});for(var d=0,p=c;d<p.length;d++){p[d].source="startRange"}l=l.concat(c);var h=s(e),f=h.dataLocaleData.numbers.symbols[h.numberingSystem];l.push({type:"literal",value:f.rangeSign,source:"shared"});for(var m=0,g=u;m<g.length;m++){g[m].source="endRange"}return l=l.concat(u),(0,i.CollapseNumberRange)(l)}},44758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatDigitOptions=void 0;var r=n(18301),i=n(37260),o=n(8544);t.SetNumberFormatDigitOptions=function(e,t,n,a,s){var l=(0,r.GetNumberOption)(t,"minimumIntegerDigits",1,21,1),c=t.minimumFractionDigits,u=t.maximumFractionDigits,d=t.minimumSignificantDigits,p=t.maximumSignificantDigits;e.minimumIntegerDigits=l;var h=(0,o.GetOption)(t,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),f=void 0!==d||void 0!==p,m=void 0!==c||void 0!==u,g=!0,y=!0;if("auto"===h&&(g=f,(f||!m&&"compact"===s)&&(y=!1)),g&&(f?(d=(0,i.DefaultNumberOption)(d,1,21,1),p=(0,i.DefaultNumberOption)(p,d,21,21),e.minimumSignificantDigits=d,e.maximumSignificantDigits=p):(e.minimumSignificantDigits=1,e.maximumSignificantDigits=21)),y)if(m){if(c=(0,i.DefaultNumberOption)(c,0,20,void 0),u=(0,i.DefaultNumberOption)(u,0,20,void 0),void 0===c)c=Math.min(n,u);else if(void 0===u)u=Math.max(a,c);else if(c>u)throw new RangeError("Invalid range, ".concat(c," > ").concat(u));e.minimumFractionDigits=c,e.maximumFractionDigits=u}else e.minimumFractionDigits=n,e.maximumFractionDigits=a;g||y?e.roundingType="morePrecision"===h?"morePrecision":"lessPrecision"===h?"lessPrecision":f?"significantDigits":"fractionDigits":(e.roundingType="morePrecision",e.minimumFractionDigits=0,e.maximumFractionDigits=0,e.minimumSignificantDigits=1,e.maximumSignificantDigits=2)}},19450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatUnitOptions=void 0;var r=n(8544),i=n(17928),o=n(38704);t.SetNumberFormatUnitOptions=function(e,t,n){void 0===t&&(t=Object.create(null));var a=(0,n.getInternalSlots)(e),s=(0,r.GetOption)(t,"style","string",["decimal","percent","currency","unit"],"decimal");a.style=s;var l=(0,r.GetOption)(t,"currency","string",void 0,void 0);if(void 0!==l&&!(0,i.IsWellFormedCurrencyCode)(l))throw RangeError("Malformed currency code");if("currency"===s&&void 0===l)throw TypeError("currency cannot be undefined");var c=(0,r.GetOption)(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),u=(0,r.GetOption)(t,"currencySign","string",["standard","accounting"],"standard"),d=(0,r.GetOption)(t,"unit","string",void 0,void 0);if(void 0!==d&&!(0,o.IsWellFormedUnitIdentifier)(d))throw RangeError("Invalid unit argument for Intl.NumberFormat()");if("unit"===s&&void 0===d)throw TypeError("unit cannot be undefined");var p=(0,r.GetOption)(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===s&&(a.currency=l.toUpperCase(),a.currencyDisplay=c,a.currencySign=u),"unit"===s&&(a.unit=d,a.unitDisplay=p)}},99332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawFixed=void 0;var r=n(76981);t.ToRawFixed=function(e,t,n){var i,o,a=n,s=Math.round(e*Math.pow(10,a)),l=s/Math.pow(10,a);if(s<1e21)i=s.toString();else{var c=(i=s.toString()).split("e"),u=c[0],d=c[1];i=u.replace(".",""),i+=(0,r.repeat)("0",Math.max(+d-i.length+1,0))}if(0!==a){var p=i.length;if(p<=a)i=(0,r.repeat)("0",a+1-p)+i,p=a+1;var h=i.slice(0,p-a),f=i.slice(p-a);i="".concat(h,".").concat(f),o=h.length}else o=i.length;for(var m=n-t;m>0&&"0"===i[i.length-1];)i=i.slice(0,-1),m--;return"."===i[i.length-1]&&(i=i.slice(0,-1)),{formattedString:i,roundedNumber:l,integerDigitsCount:o}}},90775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawPrecision=void 0;var r=n(76981);t.ToRawPrecision=function(e,t,n){var i,o,a,s,l=n;if(0===e)i=(0,r.repeat)("0",l),o=0,a=0;else{var c=e.toString(),u=c.indexOf("e"),d=c.split("e"),p=d[0],h=d[1],f=p.replace(".","");if(u>=0&&f.length<=l)o=+h,i=f+(0,r.repeat)("0",l-f.length),a=e;else{var m=(o=(0,r.getMagnitude)(e))-l+1,g=Math.round(v(e,m));v(g,l-1)>=10&&(o+=1,g=Math.floor(g/10)),i=g.toString(),a=v(g,l-1-o)}}if(o>=l-1?(i+=(0,r.repeat)("0",o-l+1),s=o+1):o>=0?(i="".concat(i.slice(0,o+1),".").concat(i.slice(o+1)),s=o+1):(i="0.".concat((0,r.repeat)("0",-o-1)).concat(i),s=1),i.indexOf(".")>=0&&n>t){for(var y=n-t;y>0&&"0"===i[i.length-1];)i=i.slice(0,-1),y--;"."===i[i.length-1]&&(i=i.slice(0,-1))}return{formattedString:i,roundedNumber:a,integerDigitsCount:s};function v(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}},66704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.digitMapping=void 0,t.digitMapping={adlm:["\ud83a\udd50","\ud83a\udd51","\ud83a\udd52","\ud83a\udd53","\ud83a\udd54","\ud83a\udd55","\ud83a\udd56","\ud83a\udd57","\ud83a\udd58","\ud83a\udd59"],ahom:["\ud805\udf30","\ud805\udf31","\ud805\udf32","\ud805\udf33","\ud805\udf34","\ud805\udf35","\ud805\udf36","\ud805\udf37","\ud805\udf38","\ud805\udf39"],arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06f0","\u06f1","\u06f2","\u06f3","\u06f4","\u06f5","\u06f6","\u06f7","\u06f8","\u06f9"],bali:["\u1b50","\u1b51","\u1b52","\u1b53","\u1b54","\u1b55","\u1b56","\u1b57","\u1b58","\u1b59"],beng:["\u09e6","\u09e7","\u09e8","\u09e9","\u09ea","\u09eb","\u09ec","\u09ed","\u09ee","\u09ef"],bhks:["\ud807\udc50","\ud807\udc51","\ud807\udc52","\ud807\udc53","\ud807\udc54","\ud807\udc55","\ud807\udc56","\ud807\udc57","\ud807\udc58","\ud807\udc59"],brah:["\ud804\udc66","\ud804\udc67","\ud804\udc68","\ud804\udc69","\ud804\udc6a","\ud804\udc6b","\ud804\udc6c","\ud804\udc6d","\ud804\udc6e","\ud804\udc6f"],cakm:["\ud804\udd36","\ud804\udd37","\ud804\udd38","\ud804\udd39","\ud804\udd3a","\ud804\udd3b","\ud804\udd3c","\ud804\udd3d","\ud804\udd3e","\ud804\udd3f"],cham:["\uaa50","\uaa51","\uaa52","\uaa53","\uaa54","\uaa55","\uaa56","\uaa57","\uaa58","\uaa59"],deva:["\u0966","\u0967","\u0968","\u0969","\u096a","\u096b","\u096c","\u096d","\u096e","\u096f"],diak:["\ud806\udd50","\ud806\udd51","\ud806\udd52","\ud806\udd53","\ud806\udd54","\ud806\udd55","\ud806\udd56","\ud806\udd57","\ud806\udd58","\ud806\udd59"],fullwide:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],gong:["\ud807\udda0","\ud807\udda1","\ud807\udda2","\ud807\udda3","\ud807\udda4","\ud807\udda5","\ud807\udda6","\ud807\udda7","\ud807\udda8","\ud807\udda9"],gonm:["\ud807\udd50","\ud807\udd51","\ud807\udd52","\ud807\udd53","\ud807\udd54","\ud807\udd55","\ud807\udd56","\ud807\udd57","\ud807\udd58","\ud807\udd59"],gujr:["\u0ae6","\u0ae7","\u0ae8","\u0ae9","\u0aea","\u0aeb","\u0aec","\u0aed","\u0aee","\u0aef"],guru:["\u0a66","\u0a67","\u0a68","\u0a69","\u0a6a","\u0a6b","\u0a6c","\u0a6d","\u0a6e","\u0a6f"],hanidec:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],hmng:["\ud81a\udf50","\ud81a\udf51","\ud81a\udf52","\ud81a\udf53","\ud81a\udf54","\ud81a\udf55","\ud81a\udf56","\ud81a\udf57","\ud81a\udf58","\ud81a\udf59"],hmnp:["\ud838\udd40","\ud838\udd41","\ud838\udd42","\ud838\udd43","\ud838\udd44","\ud838\udd45","\ud838\udd46","\ud838\udd47","\ud838\udd48","\ud838\udd49"],java:["\ua9d0","\ua9d1","\ua9d2","\ua9d3","\ua9d4","\ua9d5","\ua9d6","\ua9d7","\ua9d8","\ua9d9"],kali:["\ua900","\ua901","\ua902","\ua903","\ua904","\ua905","\ua906","\ua907","\ua908","\ua909"],khmr:["\u17e0","\u17e1","\u17e2","\u17e3","\u17e4","\u17e5","\u17e6","\u17e7","\u17e8","\u17e9"],knda:["\u0ce6","\u0ce7","\u0ce8","\u0ce9","\u0cea","\u0ceb","\u0cec","\u0ced","\u0cee","\u0cef"],lana:["\u1a80","\u1a81","\u1a82","\u1a83","\u1a84","\u1a85","\u1a86","\u1a87","\u1a88","\u1a89"],lanatham:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],laoo:["\u0ed0","\u0ed1","\u0ed2","\u0ed3","\u0ed4","\u0ed5","\u0ed6","\u0ed7","\u0ed8","\u0ed9"],lepc:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],limb:["\u1946","\u1947","\u1948","\u1949","\u194a","\u194b","\u194c","\u194d","\u194e","\u194f"],mathbold:["\ud835\udfce","\ud835\udfcf","\ud835\udfd0","\ud835\udfd1","\ud835\udfd2","\ud835\udfd3","\ud835\udfd4","\ud835\udfd5","\ud835\udfd6","\ud835\udfd7"],mathdbl:["\ud835\udfd8","\ud835\udfd9","\ud835\udfda","\ud835\udfdb","\ud835\udfdc","\ud835\udfdd","\ud835\udfde","\ud835\udfdf","\ud835\udfe0","\ud835\udfe1"],mathmono:["\ud835\udff6","\ud835\udff7","\ud835\udff8","\ud835\udff9","\ud835\udffa","\ud835\udffb","\ud835\udffc","\ud835\udffd","\ud835\udffe","\ud835\udfff"],mathsanb:["\ud835\udfec","\ud835\udfed","\ud835\udfee","\ud835\udfef","\ud835\udff0","\ud835\udff1","\ud835\udff2","\ud835\udff3","\ud835\udff4","\ud835\udff5"],mathsans:["\ud835\udfe2","\ud835\udfe3","\ud835\udfe4","\ud835\udfe5","\ud835\udfe6","\ud835\udfe7","\ud835\udfe8","\ud835\udfe9","\ud835\udfea","\ud835\udfeb"],mlym:["\u0d66","\u0d67","\u0d68","\u0d69","\u0d6a","\u0d6b","\u0d6c","\u0d6d","\u0d6e","\u0d6f"],modi:["\ud805\ude50","\ud805\ude51","\ud805\ude52","\ud805\ude53","\ud805\ude54","\ud805\ude55","\ud805\ude56","\ud805\ude57","\ud805\ude58","\ud805\ude59"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mroo:["\ud81a\ude60","\ud81a\ude61","\ud81a\ude62","\ud81a\ude63","\ud81a\ude64","\ud81a\ude65","\ud81a\ude66","\ud81a\ude67","\ud81a\ude68","\ud81a\ude69"],mtei:["\uabf0","\uabf1","\uabf2","\uabf3","\uabf4","\uabf5","\uabf6","\uabf7","\uabf8","\uabf9"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],mymrshan:["\u1090","\u1091","\u1092","\u1093","\u1094","\u1095","\u1096","\u1097","\u1098","\u1099"],mymrtlng:["\ua9f0","\ua9f1","\ua9f2","\ua9f3","\ua9f4","\ua9f5","\ua9f6","\ua9f7","\ua9f8","\ua9f9"],newa:["\ud805\udc50","\ud805\udc51","\ud805\udc52","\ud805\udc53","\ud805\udc54","\ud805\udc55","\ud805\udc56","\ud805\udc57","\ud805\udc58","\ud805\udc59"],nkoo:["\u07c0","\u07c1","\u07c2","\u07c3","\u07c4","\u07c5","\u07c6","\u07c7","\u07c8","\u07c9"],olck:["\u1c50","\u1c51","\u1c52","\u1c53","\u1c54","\u1c55","\u1c56","\u1c57","\u1c58","\u1c59"],orya:["\u0b66","\u0b67","\u0b68","\u0b69","\u0b6a","\u0b6b","\u0b6c","\u0b6d","\u0b6e","\u0b6f"],osma:["\ud801\udca0","\ud801\udca1","\ud801\udca2","\ud801\udca3","\ud801\udca4","\ud801\udca5","\ud801\udca6","\ud801\udca7","\ud801\udca8","\ud801\udca9"],rohg:["\ud803\udd30","\ud803\udd31","\ud803\udd32","\ud803\udd33","\ud803\udd34","\ud803\udd35","\ud803\udd36","\ud803\udd37","\ud803\udd38","\ud803\udd39"],saur:["\ua8d0","\ua8d1","\ua8d2","\ua8d3","\ua8d4","\ua8d5","\ua8d6","\ua8d7","\ua8d8","\ua8d9"],segment:["\ud83e\udff0","\ud83e\udff1","\ud83e\udff2","\ud83e\udff3","\ud83e\udff4","\ud83e\udff5","\ud83e\udff6","\ud83e\udff7","\ud83e\udff8","\ud83e\udff9"],shrd:["\ud804\uddd0","\ud804\uddd1","\ud804\uddd2","\ud804\uddd3","\ud804\uddd4","\ud804\uddd5","\ud804\uddd6","\ud804\uddd7","\ud804\uddd8","\ud804\uddd9"],sind:["\ud804\udef0","\ud804\udef1","\ud804\udef2","\ud804\udef3","\ud804\udef4","\ud804\udef5","\ud804\udef6","\ud804\udef7","\ud804\udef8","\ud804\udef9"],sinh:["\u0de6","\u0de7","\u0de8","\u0de9","\u0dea","\u0deb","\u0dec","\u0ded","\u0dee","\u0def"],sora:["\ud804\udcf0","\ud804\udcf1","\ud804\udcf2","\ud804\udcf3","\ud804\udcf4","\ud804\udcf5","\ud804\udcf6","\ud804\udcf7","\ud804\udcf8","\ud804\udcf9"],sund:["\u1bb0","\u1bb1","\u1bb2","\u1bb3","\u1bb4","\u1bb5","\u1bb6","\u1bb7","\u1bb8","\u1bb9"],takr:["\ud805\udec0","\ud805\udec1","\ud805\udec2","\ud805\udec3","\ud805\udec4","\ud805\udec5","\ud805\udec6","\ud805\udec7","\ud805\udec8","\ud805\udec9"],talu:["\u19d0","\u19d1","\u19d2","\u19d3","\u19d4","\u19d5","\u19d6","\u19d7","\u19d8","\u19d9"],tamldec:["\u0be6","\u0be7","\u0be8","\u0be9","\u0bea","\u0beb","\u0bec","\u0bed","\u0bee","\u0bef"],telu:["\u0c66","\u0c67","\u0c68","\u0c69","\u0c6a","\u0c6b","\u0c6c","\u0c6d","\u0c6e","\u0c6f"],thai:["\u0e50","\u0e51","\u0e52","\u0e53","\u0e54","\u0e55","\u0e56","\u0e57","\u0e58","\u0e59"],tibt:["\u0f20","\u0f21","\u0f22","\u0f23","\u0f24","\u0f25","\u0f26","\u0f27","\u0f28","\u0f29"],tirh:["\ud805\udcd0","\ud805\udcd1","\ud805\udcd2","\ud805\udcd3","\ud805\udcd4","\ud805\udcd5","\ud805\udcd6","\ud805\udcd7","\ud805\udcd8","\ud805\udcd9"],vaii:["\u1620","\u1621","\u1622","\u1623","\u1624","\u1625","\u1626","\u1627","\u1628","\u1629"],wara:["\ud806\udce0","\ud806\udce1","\ud806\udce2","\ud806\udce3","\ud806\udce4","\ud806\udce5","\ud806\udce6","\ud806\udce7","\ud806\udce8","\ud806\udce9"],wcho:["\ud838\udef0","\ud838\udef1","\ud838\udef2","\ud838\udef3","\ud838\udef4","\ud838\udef5","\ud838\udef6","\ud838\udef7","\ud838\udef8","\ud838\udef9"]}},30399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99332),i=n(66704),o=n(8677),a=new RegExp("^".concat(o.S_UNICODE_REGEX.source)),s=new RegExp("".concat(o.S_UNICODE_REGEX.source,"$")),l=/[#0](?:[\.,][#0]+)*/g;function c(e,t,n,o,a,s,l){var c=[],u=t.formattedString,d=t.roundedNumber;if(isNaN(d))return[{type:"nan",value:u}];if(!isFinite(d))return[{type:"infinity",value:u}];var p=i.digitMapping[a];p&&(u=u.replace(/\d/g,(function(e){return p[+e]||e})));var h,f,m=u.indexOf(".");if(m>0?(h=u.slice(0,m),f=u.slice(m+1)):h=u,s&&("compact"!==n||d>=1e4)){var g=e.group,y=[],v=l.split(".")[0].split(","),b=3,_=3;v.length>1&&(b=v[v.length-1].length),v.length>2&&(_=v[v.length-2].length);var w=h.length-b;if(w>0){for(y.push(h.slice(w,w+b)),w-=_;w>0;w-=_)y.push(h.slice(w,w+_));y.push(h.slice(0,w+_))}else y.push(h);for(;y.length>0;){var x=y.pop();c.push({type:"integer",value:x}),y.length>0&&c.push({type:"group",value:g})}}else c.push({type:"integer",value:h});if(void 0!==f&&c.push({type:"decimal",value:e.decimal},{type:"fraction",value:f}),("scientific"===n||"engineering"===n)&&isFinite(d)){c.push({type:"exponentSeparator",value:e.exponential}),o<0&&(c.push({type:"exponentMinusSign",value:e.minusSign}),o=-o);var k=(0,r.ToRawFixed)(o,0,0);c.push({type:"exponentInteger",value:k.formattedString})}return c}function u(e,t){e.indexOf(";")<0&&(e="".concat(e,";-").concat(e));var n=e.split(";"),r=n[0],i=n[1];switch(t){case 0:return r;case-1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+".concat(r)}}function d(e,t,n){return n[e.select(t)]||n.other}t.default=function(e,t,n,r){var i,o,p=e.sign,h=e.exponent,f=e.magnitude,m=r.notation,g=r.style,y=r.numberingSystem,v=t.numbers.nu[0],b=null;if("compact"===m&&f&&(b=function(e,t,n,r,i,o,a){var s,l,c=e.roundedNumber,p=e.sign,h=e.magnitude,f=String(Math.pow(10,h)),m=n.numbers.nu[0];if("currency"===r&&"name"!==o){var g=null===(s=((y=n.numbers.currency)[a]||y[m]).short)||void 0===s?void 0:s[f];if(!g)return null;l=d(t,c,g)}else{var y,v=((y=n.numbers.decimal)[a]||y[m])[i][f];if(!v)return null;l=d(t,c,v)}if("0"===l)return null;return l=u(l,p).replace(/([^\s;\-\+\d\xa4]+)/g,"{c:$1}").replace(/0+/,"0"),l}(e,n,t,g,r.compactDisplay,r.currencyDisplay,y)),"currency"===g&&"name"!==r.currencyDisplay){var _=t.currencies[r.currency];if(_)switch(r.currencyDisplay){case"code":i=r.currency;break;case"symbol":i=_.symbol;break;default:i=_.narrow}else i=r.currency}if(b)o=b;else if("decimal"===g||"unit"===g||"currency"===g&&"name"===r.currencyDisplay)o=u((t.numbers.decimal[y]||t.numbers.decimal[v]).standard,p);else if("currency"===g){o=u((x=t.numbers.currency[y]||t.numbers.currency[v])[r.currencySign],p)}else{o=u(t.numbers.percent[y]||t.numbers.percent[v],p)}var w=l.exec(o)[0];if(o=o.replace(l,"{0}").replace(/'(.)'/g,"$1"),"currency"===g&&"name"!==r.currencyDisplay){var x,k=(x=t.numbers.currency[y]||t.numbers.currency[v]).currencySpacing.afterInsertBetween;k&&!s.test(i)&&(o=o.replace("\xa4{0}","\xa4".concat(k,"{0}")));var C=x.currencySpacing.beforeInsertBetween;C&&!a.test(i)&&(o=o.replace("{0}\xa4","{0}".concat(C,"\xa4")))}for(var S=o.split(/({c:[^}]+}|\{0\}|[\xa4%\-\+])/g),M=[],T=t.numbers.symbols[y]||t.numbers.symbols[v],E=0,P=S;E<P.length;E++){if(W=P[E])switch(W){case"{0}":M.push.apply(M,c(T,e,m,h,y,!b&&Boolean(r.useGrouping),w));break;case"-":M.push({type:"minusSign",value:T.minusSign});break;case"+":M.push({type:"plusSign",value:T.plusSign});break;case"%":M.push({type:"percentSign",value:T.percentSign});break;case"\xa4":M.push({type:"currency",value:i});break;default:/^\{c:/.test(W)?M.push({type:"compact",value:W.substring(3,W.length-1)}):M.push({type:"literal",value:W})}}switch(g){case"currency":if("name"===r.currencyDisplay){var I=(t.numbers.currency[y]||t.numbers.currency[v]).unitPattern,O=void 0,L=t.currencies[r.currency];O=L?d(n,e.roundedNumber*Math.pow(10,h),L.displayName):r.currency;for(var R=[],j=0,D=I.split(/(\{[01]\})/g);j<D.length;j++){switch(W=D[j]){case"{0}":R.push.apply(R,M);break;case"{1}":R.push({type:"currency",value:O});break;default:W&&R.push({type:"literal",value:W})}}return R}return M;case"unit":var A=r.unit,N=r.unitDisplay,F=t.units.simple[A];I=void 0;if(F)I=d(n,e.roundedNumber*Math.pow(10,h),t.units.simple[A][N]);else{var z=A.split("-per-"),B=z[0],U=z[1];F=t.units.simple[B];var $=d(n,e.roundedNumber*Math.pow(10,h),t.units.simple[B][N]),V=t.units.simple[U].perUnit[N];if(V)I=V.replace("{0}",$);else{var q=t.units.compound.per[N],Z=d(n,1,t.units.simple[U][N]);I=I=q.replace("{0}",$).replace("{1}",Z.replace("{0}",""))}}R=[];for(var H=0,G=I.split(/(\s*\{0\}\s*)/);H<G.length;H++){var W=G[H],Y=/^(\s*)\{0\}(\s*)$/.exec(W);Y?(Y[1]&&R.push({type:"literal",value:Y[1]}),R.push.apply(R,M),Y[2]&&R.push({type:"literal",value:Y[2]})):W&&R.push({type:"unit",value:W})}return R;default:return M}}},83395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartitionPattern=void 0;var r=n(76981);t.PartitionPattern=function(e){for(var t=[],n=e.indexOf("{"),i=0,o=0,a=e.length;n<e.length&&n>-1;)i=e.indexOf("}",n),(0,r.invariant)(i>n,"Invalid pattern ".concat(e)),n>o&&t.push({type:"literal",value:e.substring(o,n)}),t.push({type:e.substring(n+1,i),value:void 0}),o=i+1,n=e.indexOf("{",o);return o<a&&t.push({type:"literal",value:e.substring(o,a)}),t}},7403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedLocales=void 0;var r=n(31921),i=n(24597),o=n(8544);t.SupportedLocales=function(e,t,n){return void 0!==n&&(n=(0,i.ToObject)(n),(0,o.GetOption)(n,"localeMatcher","string",["lookup","best fit"],"best fit")),(0,r.LookupSupportedLocales)(Array.from(e),t)}},59221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMissingLocaleDataError=void 0;var r=n(5836);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}r.__extends(t,e)}(Error);t.isMissingLocaleDataError=function(e){return"MISSING_LOCALE_DATA"===e.type}},75346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.isMissingLocaleDataError=t.defineProperty=t.getMagnitude=t.setMultiInternalSlots=t.setInternalSlot=t.isLiteralPart=t.getMultiInternalSlots=t.getInternalSlot=t._formatToParts=void 0;var r=n(5836);r.__exportStar(n(42551),t),r.__exportStar(n(89489),t),r.__exportStar(n(42372),t),r.__exportStar(n(18301),t),r.__exportStar(n(8544),t),r.__exportStar(n(5727),t),r.__exportStar(n(89838),t),r.__exportStar(n(96268),t),r.__exportStar(n(37064),t),r.__exportStar(n(17928),t),r.__exportStar(n(38704),t),r.__exportStar(n(58681),t),r.__exportStar(n(42916),t),r.__exportStar(n(23584),t),r.__exportStar(n(80367),t),r.__exportStar(n(48544),t),r.__exportStar(n(21587),t),r.__exportStar(n(17783),t),r.__exportStar(n(76328),t),r.__exportStar(n(8571),t),r.__exportStar(n(71190),t),r.__exportStar(n(84029),t),r.__exportStar(n(91444),t),r.__exportStar(n(71909),t),r.__exportStar(n(77385),t),r.__exportStar(n(44758),t),r.__exportStar(n(19450),t),r.__exportStar(n(99332),t),r.__exportStar(n(90775),t);var i=n(30399);Object.defineProperty(t,"_formatToParts",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(83395),t),r.__exportStar(n(7403),t);var o=n(76981);Object.defineProperty(t,"getInternalSlot",{enumerable:!0,get:function(){return o.getInternalSlot}}),Object.defineProperty(t,"getMultiInternalSlots",{enumerable:!0,get:function(){return o.getMultiInternalSlots}}),Object.defineProperty(t,"isLiteralPart",{enumerable:!0,get:function(){return o.isLiteralPart}}),Object.defineProperty(t,"setInternalSlot",{enumerable:!0,get:function(){return o.setInternalSlot}}),Object.defineProperty(t,"setMultiInternalSlots",{enumerable:!0,get:function(){return o.setMultiInternalSlots}}),Object.defineProperty(t,"getMagnitude",{enumerable:!0,get:function(){return o.getMagnitude}}),Object.defineProperty(t,"defineProperty",{enumerable:!0,get:function(){return o.defineProperty}});var a=n(59221);Object.defineProperty(t,"isMissingLocaleDataError",{enumerable:!0,get:function(){return a.isMissingLocaleDataError}}),r.__exportStar(n(34750),t),r.__exportStar(n(5364),t),r.__exportStar(n(8602),t),r.__exportStar(n(7886),t),r.__exportStar(n(35593),t),r.__exportStar(n(97031),t);var s=n(76981);Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return s.invariant}}),r.__exportStar(n(24597),t)},8677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.S_UNICODE_REGEX=void 0,t.S_UNICODE_REGEX=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/},5364:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RangePatternType=void 0,function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(n||(t.RangePatternType=n={}))},97031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7886:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76981:(e,t)=>{"use strict";function n(e,t,n,r){e.get(t)||e.set(t,Object.create(null)),e.get(t)[n]=r}function r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e.get(t);if(!i)throw new TypeError("".concat(t," InternalSlot has not been initialized"));return n.reduce((function(e,t){return e[t]=i[t],e}),Object.create(null))}Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.UNICODE_EXTENSION_SEQUENCE_REGEX=t.defineProperty=t.isLiteralPart=t.getMultiInternalSlots=t.getInternalSlot=t.setMultiInternalSlots=t.setInternalSlot=t.repeat=t.getMagnitude=void 0,t.getMagnitude=function(e){return Math.floor(Math.log(e)*Math.LOG10E)},t.repeat=function(e,t){if("function"===typeof e.repeat)return e.repeat(t);for(var n=new Array(t),r=0;r<n.length;r++)n[r]=e;return n.join("")},t.setInternalSlot=n,t.setMultiInternalSlots=function(e,t,r){for(var i=0,o=Object.keys(r);i<o.length;i++){var a=o[i];n(e,t,a,r[a])}},t.getInternalSlot=function(e,t,n){return r(e,t,n)[n]},t.getMultiInternalSlots=r,t.isLiteralPart=function(e){return"literal"===e.type},t.defineProperty=function(e,t,n){var r=n.value;Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})},t.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,t.invariant=function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}},18664:(e,t,n)=>{"use strict";function r(e,t){var n=t&&t.cache?t.cache:u,r=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function i(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function o(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function a(e,t,n,r,i){return n.bind(t,e,r,i)}function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}n.r(t),n.d(t,{memoize:()=>r,strategies:()=>d});var l=function(){return JSON.stringify(arguments)};function c(){this.cache=Object.create(null)}c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var u={create:function(){return new c}},d={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},59236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBestPattern=void 0;var r=n(14312);function i(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=e.language;return"root"!==i&&(n=e.maximize().region),(r.timeData[n||""]||r.timeData[i||""]||r.timeData["".concat(i,"-001")]||r.timeData["001"])[0]}t.getBestPattern=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var s=1+(1&a),l=a<2?1:3+(a>>1),c=i(t);for("H"!=c&&"k"!=c||(l=0);l-- >0;)n+="a";for(;s-- >0;)n=c+n}else n+="J"===o?"H":o}return n}},89058:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorKind=void 0,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(t.ErrorKind=n={}))},82700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._Parser=t.parse=void 0;var r=n(5836),i=n(89058),o=n(21818),a=n(88013);function s(e){e.forEach((function(e){if(delete e.location,(0,a.isSelectElement)(e)||(0,a.isPluralElement)(e))for(var t in e.options)delete e.options[t].location,s(e.options[t].value);else(0,a.isNumberElement)(e)&&(0,a.isNumberSkeleton)(e.style)||((0,a.isDateElement)(e)||(0,a.isTimeElement)(e))&&(0,a.isDateTimeSkeleton)(e.style)?delete e.style.location:(0,a.isTagElement)(e)&&s(e.children)}))}t.parse=function(e,t){void 0===t&&(t={}),t=r.__assign({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new o.Parser(e,t).parse();if(n.err){var a=SyntaxError(i.ErrorKind[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return(null===t||void 0===t?void 0:t.captureLocation)||s(n.val),n.val},r.__exportStar(n(88013),t),t._Parser=o.Parser},21818:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=n(5836),o=n(89058),a=n(88013),s=n(67111),l=n(96142),c=n(59236),u=new RegExp("^".concat(s.SPACE_SEPARATOR_REGEX.source,"*")),d=new RegExp("".concat(s.SPACE_SEPARATOR_REGEX.source,"*$"));function p(e,t){return{start:e,end:t}}var h=!!String.prototype.startsWith&&"_a".startsWith("a",1),f=!!String.fromCodePoint,m=!!Object.fromEntries,g=!!String.prototype.codePointAt,y=!!String.prototype.trimStart,v=!!String.prototype.trimEnd,b=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_=!0;try{_="a"===(null===(r=E("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===r?void 0:r[0])}catch(j){_=!1}var w,x=h?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},k=f?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},C=m?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},S=g?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},M=y?function(e){return e.trimStart()}:function(e){return e.replace(u,"")},T=v?function(e){return e.trimEnd()}:function(e){return e.replace(d,"")};function E(e,t){return new RegExp(e,t)}if(_){var P=E("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");w=function(e,t){var n;return P.lastIndex=t,null!==(n=P.exec(e)[1])&&void 0!==n?n:""}}else w=function(e,t){for(var n=[];;){var r=S(e,t);if(void 0===r||L(r)||R(r))break;n.push(r),t+=r>=65536?2:1}return k.apply(void 0,n)};var I=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((s=this.parseArgument(e,n)).err)return s;r.push(s.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&O(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;r.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;r.push(s.val)}}else{var l=this.clonePosition();this.bump(),r.push({type:a.TYPE.pound,location:p(l,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.TYPE.literal,value:"<".concat(r,"/>"),location:p(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var s=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!O(this.char()))return this.error(o.ErrorKind.INVALID_TAG,p(l,this.clonePosition()));var c=this.clonePosition();return r!==this.parseTagName()?this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,p(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.TYPE.tag,value:r,children:s,location:p(n,this.clonePosition())},err:null}:this.error(o.ErrorKind.INVALID_TAG,p(l,this.clonePosition())))}return this.error(o.ErrorKind.UNCLOSED_TAG,p(n,this.clonePosition()))}return this.error(o.ErrorKind.INVALID_TAG,p(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var l=p(n,this.clonePosition());return{val:{type:a.TYPE.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(O(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return k.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),k(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.ErrorKind.EMPTY_ARGUMENT,p(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.ErrorKind.MALFORMED_ARGUMENT,p(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.TYPE.argument,value:r,location:p(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(o.ErrorKind.MALFORMED_ARGUMENT,p(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=w(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:p(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var s,u=this.clonePosition(),d=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(d){case"":return this.error(o.ErrorKind.EXPECT_ARGUMENT_TYPE,p(u,h));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(b=T(S.val)).length)return this.error(o.ErrorKind.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));f={style:b,styleLocation:p(m,this.clonePosition())}}if((E=this.tryParseArgumentClose(r)).err)return E;var g=p(r,this.clonePosition());if(f&&x(null===f||void 0===f?void 0:f.style,"::",0)){var y=M(f.style.slice(2));if("number"===d)return(S=this.parseNumberSkeletonFromString(y,f.styleLocation)).err?S:{val:{type:a.TYPE.number,value:n,location:g,style:S.val},err:null};if(0===y.length)return this.error(o.ErrorKind.EXPECT_DATE_TIME_SKELETON,g);var v=y;this.locale&&(v=(0,c.getBestPattern)(y,this.locale));var b={type:a.SKELETON_TYPE.dateTime,pattern:v,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,l.parseDateTimeSkeleton)(v):{}};return{val:{type:"date"===d?a.TYPE.date:a.TYPE.time,value:n,location:g,style:b},err:null}}return{val:{type:"number"===d?a.TYPE.number:"date"===d?a.TYPE.date:a.TYPE.time,value:n,location:g,style:null!==(s=null===f||void 0===f?void 0:f.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,p(_,i.__assign({},_)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),k=0;if("select"!==d&&"offset"===w.value){if(!this.bumpIf(":"))return this.error(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),w=this.parseIdentifierIfPossible(),k=S.val}var E,P=this.tryParsePluralOrSelectOptions(e,d,t,w);if(P.err)return P;if((E=this.tryParseArgumentClose(r)).err)return E;var I=p(r,this.clonePosition());return"select"===d?{val:{type:a.TYPE.select,value:n,options:C(P.val),location:I},err:null}:{val:{type:a.TYPE.plural,value:n,options:C(P.val),offset:k,pluralType:"plural"===d?"cardinal":"ordinal",location:I},err:null};default:return this.error(o.ErrorKind.INVALID_ARGUMENT_TYPE,p(u,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=(0,l.parseNumberSkeletonFromString)(e)}catch(r){return this.error(o.ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.SKELETON_TYPE.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?(0,l.parseNumberSkeleton)(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,s=[],l=new Set,c=r.value,u=r.location;;){if(0===c.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=p(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}if(l.has(c))return this.error("select"===t?o.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var g=this.tryParseArgumentClose(f);if(g.err)return g;s.push([c,{value:m.val,location:p(f,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?o.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.ErrorKind.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=p(r,this.clonePosition());return i?b(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=S(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(x(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&L(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!==n&&void 0!==n?n:null},e}();function O(e){return e>=97&&e<=122||e>=65&&e<=90}function L(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function R(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}t.Parser=I},67111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHITE_SPACE_REGEX=t.SPACE_SEPARATOR_REGEX=void 0,t.SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/},14312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeData=void 0,t.timeData={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},88013:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(n||(t.TYPE=n={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(r||(t.SKELETON_TYPE=r={})),t.isLiteralElement=function(e){return e.type===n.literal},t.isArgumentElement=function(e){return e.type===n.argument},t.isNumberElement=function(e){return e.type===n.number},t.isDateElement=function(e){return e.type===n.date},t.isTimeElement=function(e){return e.type===n.time},t.isSelectElement=function(e){return e.type===n.select},t.isPluralElement=function(e){return e.type===n.plural},t.isPoundElement=function(e){return e.type===n.pound},t.isTagElement=function(e){return e.type===n.tag},t.isNumberSkeleton=function(e){return!(!e||"object"!==typeof e||e.type!==r.number)},t.isDateTimeSkeleton=function(e){return!(!e||"object"!==typeof e||e.type!==r.dateTime)},t.createLiteralElement=function(e){return{type:n.literal,value:e}},t.createNumberElement=function(e,t){return{type:n.number,value:e,style:t}}},50475:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateTimeSkeleton=void 0;var n=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;t.parseDateTimeSkeleton=function(e){var t={};return e.replace(n,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}},96142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836);r.__exportStar(n(50475),t),r.__exportStar(n(82808),t)},82808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberSkeleton=t.parseNumberSkeletonFromString=void 0;var r=n(5836),i=n(46914);t.parseNumberSkeletonFromString=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(i.WHITE_SPACE_REGEX).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),l=0,c=s;l<c.length;l++){if(0===c[l].length)throw new Error("Invalid number skeleton")}t.push({stem:a,options:s})}return t};var o=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,a=/^(@+)?(\+|#+)?[rs]?$/g,s=/(\*)(0+)|(#+)(0+)|(0+)/g,l=/^(0+)$/;function c(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(a,(function(e,n,r){return"string"!==typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"===typeof r?r.length:0)),""})),t}function u(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function d(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!l.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function p(e){var t=u(e);return t||{}}t.parseNumberSkeleton=function(e){for(var t={},n=0,i=e;n<i.length;n++){var h=i[n];switch(h.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=h.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=h.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=r.__assign(r.__assign(r.__assign({},t),{notation:"scientific"}),h.options.reduce((function(e,t){return r.__assign(r.__assign({},e),p(t))}),{}));continue;case"engineering":t=r.__assign(r.__assign(r.__assign({},t),{notation:"engineering"}),h.options.reduce((function(e,t){return r.__assign(r.__assign({},e),p(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(h.options[0]);continue;case"integer-width":if(h.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");h.options[0].replace(s,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(l.test(h.stem))t.minimumIntegerDigits=h.stem.length;else if(o.test(h.stem)){if(h.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");h.stem.replace(o,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var f=h.options[0];"w"===f?t=r.__assign(r.__assign({},t),{trailingZeroDisplay:"stripIfInteger"}):f&&(t=r.__assign(r.__assign({},t),c(f)))}else if(a.test(h.stem))t=r.__assign(r.__assign({},t),c(h.stem));else{var m=u(h.stem);m&&(t=r.__assign(r.__assign({},t),m));var g=d(h.stem);g&&(t=r.__assign(r.__assign({},t),g))}}return t}},46914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHITE_SPACE_REGEX=void 0,t.WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i},65303:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestAvailableLocale=void 0,t.BestAvailableLocale=function(e,t){for(var n=t;;){if(e.indexOf(n)>-1)return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&"-"===n[r-2]&&(r-=2),n=n.slice(0,r)}}},45022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitMatcher=void 0;var r=n(43555);t.BestFitMatcher=function(e,t,n){for(var i,o,a=0,s=t;a<s.length;a++){var l=s[a],c=(0,r.findBestMatch)(l.replace(r.UNICODE_EXTENSION_SEQUENCE_REGEX,""),e);if(c){i=c;var u=l.replace(r.UNICODE_EXTENSION_SEQUENCE_REGEX,"");o=l.slice(u.length,l.length)||void 0;break}}return i?{locale:i,extension:o}:{locale:n()}}},27484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanonicalizeLocaleList=void 0,t.CanonicalizeLocaleList=function(e){return Intl.getCanonicalLocales(e)}},77998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LookupMatcher=void 0;var r=n(65303),i=n(43555);t.LookupMatcher=function(e,t,n){for(var o={locale:""},a=0,s=t;a<s.length;a++){var l=s[a],c=l.replace(i.UNICODE_EXTENSION_SEQUENCE_REGEX,""),u=(0,r.BestAvailableLocale)(e,c);if(u)return o.locale=u,l!==c&&(o.extension=l.slice(c.length,l.length)),o}return o.locale=n(),o}},35972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LookupSupportedLocales=void 0;var r=n(65303),i=n(43555);t.LookupSupportedLocales=function(e,t){for(var n=[],o=0,a=t;o<a.length;o++){var s=a[o].replace(i.UNICODE_EXTENSION_SEQUENCE_REGEX,""),l=(0,r.BestAvailableLocale)(e,s);l&&n.push(l)}return n}},9692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveLocale=void 0;var r=n(45022),i=n(77998),o=n(19636),a=n(43555);t.ResolveLocale=function(e,t,n,s,l,c){for(var u,d=(u="lookup"===n.localeMatcher?(0,i.LookupMatcher)(Array.from(e),t,c):(0,r.BestFitMatcher)(Array.from(e),t,c)).locale,p={locale:"",dataLocale:d},h="-u",f=0,m=s;f<m.length;f++){var g=m[f];(0,a.invariant)(d in l,"Missing locale data for ".concat(d));var y=l[d];(0,a.invariant)("object"===typeof y&&null!==y,"locale data ".concat(g," must be an object"));var v=y[g];(0,a.invariant)(Array.isArray(v),"keyLocaleData for ".concat(g," must be an array"));var b=v[0];(0,a.invariant)("string"===typeof b||null===b,"value must be string or null but got ".concat(typeof b," in key ").concat(g));var _="";if(u.extension){var w=(0,o.UnicodeExtensionValue)(u.extension,g);void 0!==w&&(""!==w?~v.indexOf(w)&&(b=w,_="-".concat(g,"-").concat(b)):~w.indexOf("true")&&(b="true",_="-".concat(g)))}if(g in n){var x=n[g];(0,a.invariant)("string"===typeof x||"undefined"===typeof x||null===x,"optionsValue must be String, Undefined or Null"),~v.indexOf(x)&&x!==b&&(b=x,_="")}p[g]=b,h+=_}if(h.length>2){var k=d.indexOf("-x-");if(-1===k)d+=h;else{var C=d.slice(0,k),S=d.slice(k,d.length);d=C+h+S}d=Intl.getCanonicalLocales(d)[0]}return p.locale=d,p}},19636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeExtensionValue=void 0;var r=n(43555);t.UnicodeExtensionValue=function(e,t){(0,r.invariant)(2===t.length,"key must have 2 elements");var n=e.length,i="-".concat(t,"-"),o=e.indexOf(i);if(-1!==o){for(var a=o+4,s=a,l=a,c=!1;!c;){var u=e.indexOf("-",l);2===(-1===u?n-l:u-l)?c=!0:-1===u?(s=n,c=!0):(s=u,l=u+1)}return e.slice(a,s)}if(i="-".concat(t),-1!==(o=e.indexOf(i))&&o+3===n)return""}},617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.data=void 0,t.data={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}}},7490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regions=void 0,t.regions={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]}},43555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findBestMatch=t.findMatchingDistance=t.invariant=t.UNICODE_EXTENSION_SEQUENCE_REGEX=void 0;var r=n(5836),i=n(617),o=n(7490);t.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,t.invariant=function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)};var a;function s(e,t,n){var i=t.split("-"),a=i[0],s=i[1],l=i[2],c=!0;if(l&&"$"===l[0]){var u="!"!==l[1],d=(u?n[l.slice(1)]:n[l.slice(2)]).map((function(e){return o.regions[e]||[e]})).reduce((function(e,t){return r.__spreadArray(r.__spreadArray([],e,!0),t,!0)}),[]);c&&(c=!(d.indexOf(e.region||"")>1!=u))}else c&&(c=!e.region||("*"===l||l===e.region));return c&&(c=!e.script||("*"===s||s===e.script)),c&&(c=!e.language||("*"===a||a===e.language)),c}function l(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function c(e,t,n){for(var r=0,i=n.matches;r<i.length;r++){var o=i[r],a=s(e,o.desired,n.matchVariables)&&s(t,o.supported,n.matchVariables);if(o.oneway||a||(a=s(e,o.supported,n.matchVariables)&&s(t,o.desired,n.matchVariables)),a){var c=10*o.distance;return n.paradigmLocales.indexOf(l(e))>-1!=n.paradigmLocales.indexOf(l(t))>-1?c-1:c}}throw new Error("No matching distance found")}function u(e,t){var n=new Intl.Locale(e).maximize(),o=new Intl.Locale(t).maximize(),s={language:n.language,script:n.script||"",region:n.region||""},l={language:o.language,script:o.script||"",region:o.region||""},u=0,d=function(){var e,t;if(!a){var n=null===(t=null===(e=i.data.supplemental.languageMatching["written-new"][0])||void 0===e?void 0:e.paradigmLocales)||void 0===t?void 0:t._locales.split(" "),o=i.data.supplemental.languageMatching["written-new"].slice(1,5),s=i.data.supplemental.languageMatching["written-new"].slice(5).map((function(e){var t=Object.keys(e)[0],n=e[t];return{supported:t,desired:n._desired,distance:+n._distance,oneway:"true"===n.oneway}}),{});a={matches:s,matchVariables:o.reduce((function(e,t){var n=Object.keys(t)[0],r=t[n];return e[n.slice(1)]=r._value.split("+"),e}),{}),paradigmLocales:r.__spreadArray(r.__spreadArray([],n,!0),n.map((function(e){return new Intl.Locale(e.replace(/_/g,"-")).maximize().toString()})),!0)}}return a}();return s.language!==l.language&&(u+=c({language:n.language,script:"",region:""},{language:o.language,script:"",region:""},d)),s.script!==l.script&&(u+=c({language:n.language,script:s.script,region:""},{language:o.language,script:s.script,region:""},d)),s.region!==l.region&&(u+=c(s,l,d)),u}t.findMatchingDistance=u,t.findBestMatch=function(e,t,n){void 0===n&&(n=840);var r=void 0,i=1/0;if(t.forEach((function(t,n){var o=u(e,t)+n;o<i&&(i=o,r=t)})),!(i>=n))return r}},31921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveLocale=t.LookupSupportedLocales=t.match=void 0;var r=n(27484),i=n(9692);t.match=function(e,t,n,o){return(0,i.ResolveLocale)(t,(0,r.CanonicalizeLocaleList)(e),{localeMatcher:(null===o||void 0===o?void 0:o.algorithm)||"best fit"},[],{},(function(){return n})).locale};var o=n(35972);Object.defineProperty(t,"LookupSupportedLocales",{enumerable:!0,get:function(){return o.LookupSupportedLocales}});var a=n(9692);Object.defineProperty(t,"ResolveLocale",{enumerable:!0,get:function(){return a.ResolveLocale}})},27616:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIntl=t.formatNumberToParts=t.formatNumber=t.formatRelativeTime=t.formatPlural=t.formatList=t.formatDisplayName=t.formatTimeToParts=t.formatTime=t.formatDateToParts=t.formatDate=t.formatMessage=t.getNamedFormat=t.createFormatters=t.DEFAULT_INTL_CONFIG=t.filterProps=t.createIntlCache=t.defineMessage=t.defineMessages=void 0;var r=n(5836);r.__exportStar(n(39306),t),t.defineMessages=function(e){return e},t.defineMessage=function(e){return e};var i=n(31145);Object.defineProperty(t,"createIntlCache",{enumerable:!0,get:function(){return i.createIntlCache}}),Object.defineProperty(t,"filterProps",{enumerable:!0,get:function(){return i.filterProps}}),Object.defineProperty(t,"DEFAULT_INTL_CONFIG",{enumerable:!0,get:function(){return i.DEFAULT_INTL_CONFIG}}),Object.defineProperty(t,"createFormatters",{enumerable:!0,get:function(){return i.createFormatters}}),Object.defineProperty(t,"getNamedFormat",{enumerable:!0,get:function(){return i.getNamedFormat}}),r.__exportStar(n(37918),t);var o=n(3219);Object.defineProperty(t,"formatMessage",{enumerable:!0,get:function(){return o.formatMessage}});var a=n(13711);Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return a.formatDate}}),Object.defineProperty(t,"formatDateToParts",{enumerable:!0,get:function(){return a.formatDateToParts}}),Object.defineProperty(t,"formatTime",{enumerable:!0,get:function(){return a.formatTime}}),Object.defineProperty(t,"formatTimeToParts",{enumerable:!0,get:function(){return a.formatTimeToParts}});var s=n(94920);Object.defineProperty(t,"formatDisplayName",{enumerable:!0,get:function(){return s.formatDisplayName}});var l=n(43294);Object.defineProperty(t,"formatList",{enumerable:!0,get:function(){return l.formatList}});var c=n(61239);Object.defineProperty(t,"formatPlural",{enumerable:!0,get:function(){return c.formatPlural}});var u=n(41655);Object.defineProperty(t,"formatRelativeTime",{enumerable:!0,get:function(){return u.formatRelativeTime}});var d=n(1113);Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return d.formatNumber}}),Object.defineProperty(t,"formatNumberToParts",{enumerable:!0,get:function(){return d.formatNumberToParts}});var p=n(41038);Object.defineProperty(t,"createIntl",{enumerable:!0,get:function(){return p.createIntl}})},41038:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIntl=void 0;var r=n(5836),i=n(31145),o=n(37918),a=n(1113),s=n(41655),l=n(13711),c=n(61239),u=n(3219),d=n(43294),p=n(94920);function h(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"===typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}t.createIntl=function(e,t){var n=(0,i.createFormatters)(t),f=r.__assign(r.__assign({},i.DEFAULT_INTL_CONFIG),e),m=f.locale,g=f.defaultLocale,y=f.onError;return m?!Intl.NumberFormat.supportedLocalesOf(m).length&&y?y(new o.MissingDataError('Missing locale data for locale: "'.concat(m,'" in Intl.NumberFormat. Using default locale: "').concat(g,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(m).length&&y&&y(new o.MissingDataError('Missing locale data for locale: "'.concat(m,'" in Intl.DateTimeFormat. Using default locale: "').concat(g,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(y&&y(new o.InvalidConfigError('"locale" was not configured, using "'.concat(g,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),f.locale=f.defaultLocale||"en"),h(f),r.__assign(r.__assign({},f),{formatters:n,formatNumber:a.formatNumber.bind(null,f,n.getNumberFormat),formatNumberToParts:a.formatNumberToParts.bind(null,f,n.getNumberFormat),formatRelativeTime:s.formatRelativeTime.bind(null,f,n.getRelativeTimeFormat),formatDate:l.formatDate.bind(null,f,n.getDateTimeFormat),formatDateToParts:l.formatDateToParts.bind(null,f,n.getDateTimeFormat),formatTime:l.formatTime.bind(null,f,n.getDateTimeFormat),formatDateTimeRange:l.formatDateTimeRange.bind(null,f,n.getDateTimeFormat),formatTimeToParts:l.formatTimeToParts.bind(null,f,n.getDateTimeFormat),formatPlural:c.formatPlural.bind(null,f,n.getPluralRules),formatMessage:u.formatMessage.bind(null,f,n),$t:u.formatMessage.bind(null,f,n),formatList:d.formatList.bind(null,f,n.getListFormat),formatListToParts:d.formatListToParts.bind(null,f,n.getListFormat),formatDisplayName:p.formatDisplayName.bind(null,f,n.getDisplayNames)})}},13711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTimeToParts=t.formatDateToParts=t.formatDateTimeRange=t.formatTime=t.formatDate=t.getFormatter=void 0;var r=n(5836),i=n(31145),o=n(37918),a=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function s(e,t,n,o){var s=e.locale,l=e.formats,c=e.onError,u=e.timeZone;void 0===o&&(o={});var d=o.format,p=r.__assign(r.__assign({},u&&{timeZone:u}),d&&(0,i.getNamedFormat)(l,t,d,c)),h=(0,i.filterProps)(o,a,p);return"time"!==t||h.hour||h.minute||h.second||h.timeStyle||h.dateStyle||(h=r.__assign(r.__assign({},h),{hour:"numeric",minute:"numeric"})),n(s,h)}t.getFormatter=s,t.formatDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],l=void 0===a?{}:a,c="string"===typeof i?new Date(i||0):i;try{return s(e,"date",t,l).format(c)}catch(u){e.onError(new o.IntlFormatError("Error formatting date.",e.locale,u))}return String(c)},t.formatTime=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],l=void 0===a?{}:a,c="string"===typeof i?new Date(i||0):i;try{return s(e,"time",t,l).format(c)}catch(u){e.onError(new o.IntlFormatError("Error formatting time.",e.locale,u))}return String(c)},t.formatDateTimeRange=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=n[0],l=n[1],c=n[2],u=void 0===c?{}:c,d=e.timeZone,p=e.locale,h=e.onError,f=(0,i.filterProps)(u,a,d?{timeZone:d}:{});try{return t(p,f).formatRange(s,l)}catch(m){h(new o.IntlFormatError("Error formatting date time range.",e.locale,m))}return String(s)},t.formatDateToParts=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],l=void 0===a?{}:a,c="string"===typeof i?new Date(i||0):i;try{return s(e,"date",t,l).formatToParts(c)}catch(u){e.onError(new o.IntlFormatError("Error formatting date.",e.locale,u))}return[]},t.formatTimeToParts=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],l=void 0===a?{}:a,c="string"===typeof i?new Date(i||0):i;try{return s(e,"time",t,l).formatToParts(c)}catch(u){e.onError(new o.IntlFormatError("Error formatting time.",e.locale,u))}return[]}},94920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDisplayName=void 0;var r=n(31145),i=n(38589),o=n(37918),a=["style","type","fallback","languageDisplay"];t.formatDisplayName=function(e,t,n,s){var l=e.locale,c=e.onError;Intl.DisplayNames||c(new i.FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',i.ErrorCode.MISSING_INTL_API));var u=(0,r.filterProps)(s,a);try{return t(l,u).of(n)}catch(d){c(new o.IntlFormatError("Error formatting display name.",l,d))}}},37918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingTranslationError=t.MessageFormatError=t.IntlFormatError=t.MissingDataError=t.InvalidConfigError=t.UnsupportedFormatterError=t.IntlError=t.IntlErrorCode=void 0;var r,i=n(5836);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(t.IntlErrorCode=r={}));var o=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return i.__extends(t,e),t}(Error);t.IntlError=o;var a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return i.__extends(t,e),t}(o);t.UnsupportedFormatterError=a;var s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return i.__extends(t,e),t}(o);t.InvalidConfigError=s;var l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return i.__extends(t,e),t}(o);t.MissingDataError=l;var c=function(e){function t(t,n,i){var o=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return i.__extends(t,e),t}(o);t.IntlFormatError=c;var u=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null===r||void 0===r?void 0:r.id,"\nDefault Message: ").concat(null===r||void 0===r?void 0:r.defaultMessage,"\nDescription: ").concat(null===r||void 0===r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return i.__extends(t,e),t}(c);t.MessageFormatError=u;var d=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"===typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return i.__extends(t,e),t}(o);t.MissingTranslationError=d},43294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatListToParts=t.formatList=void 0;var r=n(5836),i=n(31145),o=n(38589),a=n(37918),s=["type","style"],l=Date.now();function c(e,t,n,c){var u=e.locale,d=e.onError;void 0===c&&(c={}),Intl.ListFormat||d(new o.FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',o.ErrorCode.MISSING_INTL_API));var p=(0,i.filterProps)(c,s);try{var h={},f=n.map((function(e,t){if("object"===typeof e){var n=function(e){return"".concat(l,"_").concat(e,"_").concat(l)}(t);return h[n]=e,n}return String(e)}));return t(u,p).formatToParts(f).map((function(e){return"literal"===e.type?e:r.__assign(r.__assign({},e),{value:h[e.value]||e.value})}))}catch(m){d(new a.IntlFormatError("Error formatting list.",u,m))}return n}t.formatList=function(e,t,n,r){void 0===r&&(r={});var i=c(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!==typeof n?e.push(n):"string"===typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===i.length?i[0]:0===i.length?"":i},t.formatListToParts=c},3219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatMessage=void 0;var r=n(5836),i=n(75346),o=n(38589),a=n(37918),s=n(82700);function l(e,t){return Object.keys(e).reduce((function(n,i){return n[i]=r.__assign({timeZone:t},e[i]),n}),{})}function c(e,t){return Object.keys(r.__assign(r.__assign({},e),t)).reduce((function(n,i){return n[i]=r.__assign(r.__assign({},e[i]||{}),t[i]||{}),n}),{})}function u(e,t){if(!t)return e;var n=o.IntlMessageFormat.formats;return r.__assign(r.__assign(r.__assign({},n),e),{date:c(l(n.date,t),l(e.date||{},t)),time:c(l(n.time,t),l(e.time||{},t))})}t.formatMessage=function(e,t,n,o,l){var c=e.locale,d=e.formats,p=e.messages,h=e.defaultLocale,f=e.defaultFormats,m=e.fallbackOnEmptyString,g=e.onError,y=e.timeZone,v=e.defaultRichTextElements;void 0===n&&(n={id:""});var b=n.id,_=n.defaultMessage;(0,i.invariant)(!!b,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var w=String(b),x=p&&Object.prototype.hasOwnProperty.call(p,w)&&p[w];if(Array.isArray(x)&&1===x.length&&x[0].type===s.TYPE.literal)return x[0].value;if(!o&&x&&"string"===typeof x&&!v)return x.replace(/'\{(.*?)\}'/gi,"{$1}");if(o=r.__assign(r.__assign({},v),o||{}),d=u(d,y),f=u(f,y),!x){if(!1===m&&""===x)return x;if((!_||c&&c.toLowerCase()!==h.toLowerCase())&&g(new a.MissingTranslationError(n,c)),_)try{return t.getMessageFormat(_,h,f,l).format(o)}catch(k){return g(new a.MessageFormatError('Error formatting default message for: "'.concat(w,'", rendering default message verbatim'),c,n,k)),"string"===typeof _?_:w}return w}try{return t.getMessageFormat(x,c,d,r.__assign({formatters:t},l||{})).format(o)}catch(k){g(new a.MessageFormatError('Error formatting message: "'.concat(w,'", using ').concat(_?"default message":"id"," as fallback."),c,n,k))}if(_)try{return t.getMessageFormat(_,h,f,l).format(o)}catch(k){g(new a.MessageFormatError('Error formatting the default message for: "'.concat(w,'", rendering message verbatim'),c,n,k))}return"string"===typeof x?x:"string"===typeof _?_:w}},1113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumberToParts=t.formatNumber=t.getFormatter=void 0;var r=n(31145),i=n(37918),o=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function a(e,t,n){var i=e.locale,a=e.formats,s=e.onError;void 0===n&&(n={});var l=n.format,c=l&&(0,r.getNamedFormat)(a,"number",l,s)||{};return t(i,(0,r.filterProps)(n,o,c))}t.getFormatter=a,t.formatNumber=function(e,t,n,r){void 0===r&&(r={});try{return a(e,t,r).format(n)}catch(o){e.onError(new i.IntlFormatError("Error formatting number.",e.locale,o))}return String(n)},t.formatNumberToParts=function(e,t,n,r){void 0===r&&(r={});try{return a(e,t,r).formatToParts(n)}catch(o){e.onError(new i.IntlFormatError("Error formatting number.",e.locale,o))}return[]}},61239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatPlural=void 0;var r=n(31145),i=n(37918),o=n(38589),a=["type"];t.formatPlural=function(e,t,n,s){var l=e.locale,c=e.onError;void 0===s&&(s={}),Intl.PluralRules||c(new o.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.ErrorCode.MISSING_INTL_API));var u=(0,r.filterProps)(s,a);try{return t(l,u).select(n)}catch(d){c(new i.IntlFormatError("Error formatting plural.",l,d))}return"other"}},41655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatRelativeTime=void 0;var r=n(31145),i=n(38589),o=n(37918),a=["numeric","style"];t.formatRelativeTime=function(e,t,n,s,l){void 0===l&&(l={}),s||(s="second"),Intl.RelativeTimeFormat||e.onError(new i.FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',i.ErrorCode.MISSING_INTL_API));try{return function(e,t,n){var i=e.locale,o=e.formats,s=e.onError;void 0===n&&(n={});var l=n.format,c=!!l&&(0,r.getNamedFormat)(o,"relative",l,s)||{};return t(i,(0,r.filterProps)(n,a,c))}(e,t,l).format(n,s)}catch(c){e.onError(new o.IntlFormatError("Error formatting relative time.",e.locale,c))}return String(n)}},39306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNamedFormat=t.createFormatters=t.createIntlCache=t.DEFAULT_INTL_CONFIG=t.filterProps=void 0;var r=n(5836),i=n(38589),o=n(18664),a=n(37918);t.filterProps=function(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})};function s(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}t.DEFAULT_INTL_CONFIG={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}},t.createIntlCache=s,t.createFormatters=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(e.dateTime),strategy:o.strategies.variadic}),c=(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(e.number),strategy:o.strategies.variadic}),u=(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(e.pluralRules),strategy:o.strategies.variadic});return{getDateTimeFormat:s,getNumberFormat:c,getMessageFormat:(0,o.memoize)((function(e,t,n,o){return new i.IntlMessageFormat(e,t,n,r.__assign({formatters:{getNumberFormat:c,getDateTimeFormat:s,getPluralRules:u}},o||{}))}),{cache:l(e.message),strategy:o.strategies.variadic}),getRelativeTimeFormat:(0,o.memoize)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,r.__spreadArray([void 0],e,!1)))}),{cache:l(e.relativeTime),strategy:o.strategies.variadic}),getPluralRules:u,getListFormat:(0,o.memoize)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,r.__spreadArray([void 0],e,!1)))}),{cache:l(e.list),strategy:o.strategies.variadic}),getDisplayNames:(0,o.memoize)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,r.__spreadArray([void 0],e,!1)))}),{cache:l(e.displayNames),strategy:o.strategies.variadic})}},t.getNamedFormat=function(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new a.UnsupportedFormatterError("No ".concat(t," format named: ").concat(n)))}},72014:()=>{(()=>{var e={9705:(e,t,n)=>{"use strict";var r=n(1540);function i(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}i.default=i,t.Z=i},4102:(e,t)=>{"use strict";function n(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function r(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r)}function i(e,t,r){void 0===r&&(r={});for(var i=0,o=e;i<o.length;i++){var a=o[i];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++)if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:e},t,r)}function o(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:e},t,r)}function a(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function s(e,t,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:e},t,r)}function l(e,t,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:e},t,r)}function c(e,t,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:e},t,r)}function u(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function d(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function p(e){return e%(2*Math.PI)*180/Math.PI}function h(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936*t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return r(t).geometry;case"LineString":return o(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return l(t).geometry;case"MultiLineString":return s(t).geometry;case"MultiPolygon":return c(t).geometry;default:throw new Error(e+" is invalid")}},t.point=r,t.points=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return r(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return i(e,t)})),n)},t.lineString=o,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return o(e,t)})),n)},t.featureCollection=a,t.multiLineString=s,t.multiPoint=l,t.multiPolygon=c,t.geometryCollection=function(e,t,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=u,t.lengthToRadians=d,t.lengthToDegrees=function(e,t){return p(d(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=p,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return u(d(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var o=t.areaFactors[r];if(!o)throw new Error("invalid final units");return e/i*o},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},1540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4102);function i(e,t,n){if(null!==e)for(var r,o,a,s,l,c,u,d,p=0,h=0,f=e.type,m="FeatureCollection"===f,g="Feature"===f,y=m?e.features.length:1,v=0;v<y;v++){l=(d=!!(u=m?e.features[v].geometry:g?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var b=0;b<l;b++){var _=0,w=0;if(null!==(s=d?u.geometries[b]:u)){c=s.coordinates;var x=s.type;switch(p=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(c,h,v,_,w))return!1;h++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],h,v,_,w))return!1;h++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-p;o++){if(!1===t(c[r][o],h,v,_,w))return!1;h++}"MultiLineString"===x&&_++,"Polygon"===x&&w++}"Polygon"===x&&_++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,o=0;o<c[r].length;o++){for(a=0;a<c[r][o].length-p;a++){if(!1===t(c[r][o][a],h,v,_,w))return!1;h++}w++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function s(e,t){var n,r,i,o,a,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}function l(e,t){s(e,(function(e,n,i,o,a){var s,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,i,{bbox:o,id:a}),n,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:s,coordinates:e.coordinates[c]};if(!1===t(r.feature(u,i),n,c))return!1}}))}function c(e,t){l(e,(function(e,n,o){var a=0;if(e.geometry){var s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,d=0;return!1!==i(e,(function(i,s,p,h,f){if(void 0===l||n>c||h>u||f>d)return l=i,c=n,u=h,d=f,void(a=0);var m=r.lineString([l,i],e.properties);if(!1===t(m,n,o,f,a))return!1;a++,l=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");l(e,(function(e,n,i){if(null!==e.geometry){var o=e.geometry.type,a=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===t(r.lineString(a[s],e.properties),n,i,s))return!1}}}))}t.coordAll=function(e){var t=[];return i(e,(function(e){t.push(e)})),t},t.coordEach=i,t.coordReduce=function(e,t,n,r){var o=n;return i(e,(function(e,r,i,a,s){o=0===r&&void 0===n?e:t(o,e,r,i,a,s)}),r),o},t.featureEach=a,t.featureReduce=function(e,t,n){var r=n;return a(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.findPoint=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.coordIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return r.point(c,l,t);case"MultiPoint":return o<0&&(o=c.length+o),r.point(c[o],l,t);case"LineString":return s<0&&(s=c.length+s),r.point(c[s],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),r.point(c[a][s],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),r.point(c[o][s],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s),r.point(c[o][a][s],l,t)}throw new Error("geojson is invalid")},t.findSegment=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.segmentIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),r.lineString([c[s],c[s+1]],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),r.lineString([c[a][s],c[a][s+1]],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),r.lineString([c[o][s],c[o][s+1]],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s-1),r.lineString([c[o][a][s],c[o][a][s+1]],l,t)}throw new Error("geojson is invalid")},t.flattenEach=l,t.flattenReduce=function(e,t,n){var r=n;return l(e,(function(e,i,o){r=0===i&&0===o&&void 0===n?e:t(r,e,i,o)})),r},t.geomEach=s,t.geomReduce=function(e,t,n){var r=n;return s(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r},t.lineEach=u,t.lineReduce=function(e,t,n){var r=n;return u(e,(function(e,i,o,a){r=0===i&&void 0===n?e:t(r,e,i,o,a)})),r},t.propEach=o,t.propReduce=function(e,t,n){var r=n;return o(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.segmentEach=c,t.segmentReduce=function(e,t,n){var r=n,i=!1;return c(e,(function(e,o,a,s,l){r=!1===i&&void 0===n?e:t(r,e,o,a,s,l),i=!0})),r}},8706:(e,t,n)=>{"use strict";n(7107);var r=n(2492),i=n.n(r);const o=JSON.parse('{"tooltips":{"placeMarker":"Click to place marker","firstVertex":"Click to place first vertex","continueLine":"Click to continue drawing","finishLine":"Click any existing marker to finish","finishPoly":"Click first marker to finish","finishRect":"Click to finish","startCircle":"Click to place circle center","finishCircle":"Click to finish circle","placeCircleMarker":"Click to place circle marker","placeText":"Click to place text"},"actions":{"finish":"Finish","cancel":"Cancel","removeLastVertex":"Remove Last Vertex"},"buttonTitles":{"drawMarkerButton":"Draw Marker","drawPolyButton":"Draw Polygons","drawLineButton":"Draw Polyline","drawCircleButton":"Draw Circle","drawRectButton":"Draw Rectangle","editButton":"Edit Layers","dragButton":"Drag Layers","cutButton":"Cut Layers","deleteButton":"Remove Layers","drawCircleMarkerButton":"Draw Circle Marker","snappingButton":"Snap dragged marker to other layers and vertices","pinningButton":"Pin shared vertices together","rotateButton":"Rotate Layers","drawTextButton":"Draw Text"}}'),a=JSON.parse('{"tooltips":{"placeMarker":"Platziere den Marker mit Klick","firstVertex":"Platziere den ersten Marker mit Klick","continueLine":"Klicke, um weiter zu zeichnen","finishLine":"Beende mit Klick auf existierenden Marker","finishPoly":"Beende mit Klick auf ersten Marker","finishRect":"Beende mit Klick","startCircle":"Platziere das Kreiszentrum mit Klick","finishCircle":"Beende den Kreis mit Klick","placeCircleMarker":"Platziere den Kreismarker mit Klick","placeText":"Platziere den Text mit Klick"},"actions":{"finish":"Beenden","cancel":"Abbrechen","removeLastVertex":"Letzten Vertex l\xf6schen"},"buttonTitles":{"drawMarkerButton":"Marker zeichnen","drawPolyButton":"Polygon zeichnen","drawLineButton":"Polyline zeichnen","drawCircleButton":"Kreis zeichnen","drawRectButton":"Rechteck zeichnen","editButton":"Layer editieren","dragButton":"Layer bewegen","cutButton":"Layer schneiden","deleteButton":"Layer l\xf6schen","drawCircleMarkerButton":"Kreismarker zeichnen","snappingButton":"Bewegter Layer an andere Layer oder Vertexe einhacken","pinningButton":"Vertexe an der gleichen Position verkn\xfcpfen","rotateButton":"Layer drehen","drawTextButton":"Text zeichnen"}}'),s=JSON.parse('{"tooltips":{"placeMarker":"Clicca per posizionare un Marker","firstVertex":"Clicca per posizionare il primo vertice","continueLine":"Clicca per continuare a disegnare","finishLine":"Clicca qualsiasi marker esistente per terminare","finishPoly":"Clicca il primo marker per terminare","finishRect":"Clicca per terminare","startCircle":"Clicca per posizionare il punto centrale del cerchio","finishCircle":"Clicca per terminare il cerchio","placeCircleMarker":"Clicca per posizionare un Marker del cherchio"},"actions":{"finish":"Termina","cancel":"Annulla","removeLastVertex":"Rimuovi l\'ultimo vertice"},"buttonTitles":{"drawMarkerButton":"Disegna Marker","drawPolyButton":"Disegna Poligoni","drawLineButton":"Disegna Polilinea","drawCircleButton":"Disegna Cerchio","drawRectButton":"Disegna Rettangolo","editButton":"Modifica Livelli","dragButton":"Sposta Livelli","cutButton":"Ritaglia Livelli","deleteButton":"Elimina Livelli","drawCircleMarkerButton":"Disegna Marker del Cerchio","snappingButton":"Snap ha trascinato il pennarello su altri strati e vertici","pinningButton":"Pin condiviso vertici insieme"}}'),l=JSON.parse('{"tooltips":{"placeMarker":"Klik untuk menempatkan marker","firstVertex":"Klik untuk menempatkan vertex pertama","continueLine":"Klik untuk meneruskan digitasi","finishLine":"Klik pada sembarang marker yang ada untuk mengakhiri","finishPoly":"Klik marker pertama untuk mengakhiri","finishRect":"Klik untuk mengakhiri","startCircle":"Klik untuk menempatkan titik pusat lingkaran","finishCircle":"Klik untuk mengakhiri lingkaran","placeCircleMarker":"Klik untuk menempatkan penanda lingkarann"},"actions":{"finish":"Selesai","cancel":"Batal","removeLastVertex":"Hilangkan Vertex Terakhir"},"buttonTitles":{"drawMarkerButton":"Digitasi Marker","drawPolyButton":"Digitasi Polygon","drawLineButton":"Digitasi Polyline","drawCircleButton":"Digitasi Lingkaran","drawRectButton":"Digitasi Segi Empat","editButton":"Edit Layer","dragButton":"Geser Layer","cutButton":"Potong Layer","deleteButton":"Hilangkan Layer","drawCircleMarkerButton":"Digitasi Penanda Lingkaran","snappingButton":"Jepretkan penanda yang ditarik ke lapisan dan simpul lain","pinningButton":"Sematkan simpul bersama bersama"}}'),c=JSON.parse('{"tooltips":{"placeMarker":"Adaug\u0103 un punct","firstVertex":"Apas\u0103 aici pentru a ad\u0103uga primul Vertex","continueLine":"Apas\u0103 aici pentru a continua desenul","finishLine":"Apas\u0103 pe orice obiect pentru a finisa desenul","finishPoly":"Apas\u0103 pe primul obiect pentru a finisa","finishRect":"Apas\u0103 pentru a finisa","startCircle":"Apas\u0103 pentru a desena un cerc","finishCircle":"Apas\u0103 pentru a finisa un cerc","placeCircleMarker":"Adaug\u0103 un punct"},"actions":{"finish":"Termin\u0103","cancel":"Anuleaz\u0103","removeLastVertex":"\u0218terge ultimul Vertex"},"buttonTitles":{"drawMarkerButton":"Adaug\u0103 o bulin\u0103","drawPolyButton":"Deseneaz\u0103 un poligon","drawLineButton":"Deseneaz\u0103 o linie","drawCircleButton":"Deseneaz\u0103 un cerc","drawRectButton":"Deseneaz\u0103 un dreptunghi","editButton":"Editeaz\u0103 straturile","dragButton":"Mut\u0103 straturile","cutButton":"Taie straturile","deleteButton":"\u0218terge straturile","drawCircleMarkerButton":"Deseneaz\u0103 marcatorul cercului","snappingButton":"Fixa\u021bi marcatorul glisat pe alte straturi \u0219i v\xe2rfuri","pinningButton":"Fixa\u021bi v\xe2rfurile partajate \xeempreun\u0103"}}'),u=JSON.parse('{"tooltips":{"placeMarker":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440","firstVertex":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442","continueLine":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435","finishLine":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f","finishPoly":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u043e\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c","finishRect":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c","startCircle":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0446\u0435\u043d\u0442\u0440 \u043a\u0440\u0443\u0433\u0430","finishCircle":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0434\u0438\u0443\u0441","placeCircleMarker":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043a\u0440\u0443\u0433\u043e\u0432\u043e\u0439 \u043c\u0430\u0440\u043a\u0435\u0440"},"actions":{"finish":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c","cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","removeLastVertex":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435"},"buttonTitles":{"drawMarkerButton":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0430\u0440\u043a\u0435\u0440","drawPolyButton":"\u0420\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0433\u043e\u043d","drawLineButton":"\u0420\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0438\u0432\u0443\u044e","drawCircleButton":"\u0420\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0443\u0433","drawRectButton":"\u0420\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a","editButton":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0439","dragButton":"\u041f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u043b\u043e\u0439","cutButton":"\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u043b\u043e\u0439","deleteButton":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043b\u043e\u0439","drawCircleMarkerButton":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0440\u0443\u0433\u043e\u0432\u043e\u0439 \u043c\u0430\u0440\u043a\u0435\u0440","snappingButton":"\u041f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u043a \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043b\u043e\u044f\u043c \u0438 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c","pinningButton":"\u0421\u0432\u044f\u0437\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0442\u043e\u0447\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u0435"}}'),d=JSON.parse('{"tooltips":{"placeMarker":"Presiona para colocar un marcador","firstVertex":"Presiona para colocar el primer v\xe9rtice","continueLine":"Presiona para continuar dibujando","finishLine":"Presiona cualquier marcador existente para finalizar","finishPoly":"Presiona el primer marcador para finalizar","finishRect":"Presiona para finalizar","startCircle":"Presiona para colocar el centro del c\xedrculo","finishCircle":"Presiona para finalizar el c\xedrculo","placeCircleMarker":"Presiona para colocar un marcador de c\xedrculo"},"actions":{"finish":"Finalizar","cancel":"Cancelar","removeLastVertex":"Eliminar \xfaltimo v\xe9rtice"},"buttonTitles":{"drawMarkerButton":"Dibujar Marcador","drawPolyButton":"Dibujar Pol\xedgono","drawLineButton":"Dibujar L\xednea","drawCircleButton":"Dibujar C\xedrculo","drawRectButton":"Dibujar Rect\xe1ngulo","editButton":"Editar Capas","dragButton":"Arrastrar Capas","cutButton":"Cortar Capas","deleteButton":"Eliminar Capas","drawCircleMarkerButton":"Dibujar Marcador de C\xedrculo","snappingButton":"El marcador de Snap arrastrado a otras capas y v\xe9rtices","pinningButton":"Fijar juntos los v\xe9rtices compartidos"}}'),p=JSON.parse('{"tooltips":{"placeMarker":"Klik om een marker te plaatsen","firstVertex":"Klik om het eerste punt te plaatsen","continueLine":"Klik om te blijven tekenen","finishLine":"Klik op een bestaand punt om te be\xebindigen","finishPoly":"Klik op het eerst punt om te be\xebindigen","finishRect":"Klik om te be\xebindigen","startCircle":"Klik om het middelpunt te plaatsen","finishCircle":"Klik om de cirkel te be\xebindigen","placeCircleMarker":"Klik om een marker te plaatsen"},"actions":{"finish":"Bewaar","cancel":"Annuleer","removeLastVertex":"Verwijder laatste punt"},"buttonTitles":{"drawMarkerButton":"Plaats Marker","drawPolyButton":"Teken een vlak","drawLineButton":"Teken een lijn","drawCircleButton":"Teken een cirkel","drawRectButton":"Teken een vierkant","editButton":"Bewerk","dragButton":"Verplaats","cutButton":"Knip","deleteButton":"Verwijder","drawCircleMarkerButton":"Plaats Marker","snappingButton":"Snap gesleepte marker naar andere lagen en hoekpunten","pinningButton":"Speld gedeelde hoekpunten samen"}}'),h=JSON.parse('{"tooltips":{"placeMarker":"Cliquez pour placer un marqueur","firstVertex":"Cliquez pour placer le premier sommet","continueLine":"Cliquez pour continuer \xe0 dessiner","finishLine":"Cliquez sur n\'importe quel marqueur pour terminer","finishPoly":"Cliquez sur le premier marqueur pour terminer","finishRect":"Cliquez pour terminer","startCircle":"Cliquez pour placer le centre du cercle","finishCircle":"Cliquez pour finir le cercle","placeCircleMarker":"Cliquez pour placer le marqueur circulaire"},"actions":{"finish":"Terminer","cancel":"Annuler","removeLastVertex":"Retirer le dernier sommet"},"buttonTitles":{"drawMarkerButton":"Placer des marqueurs","drawPolyButton":"Dessiner des polygones","drawLineButton":"Dessiner des polylignes","drawCircleButton":"Dessiner un cercle","drawRectButton":"Dessiner un rectangle","editButton":"\xc9diter des calques","dragButton":"D\xe9placer des calques","cutButton":"Couper des calques","deleteButton":"Supprimer des calques","drawCircleMarkerButton":"Dessiner un marqueur circulaire","snappingButton":"Glisser le marqueur vers d\'autres couches et sommets","pinningButton":"\xc9pingler ensemble les sommets partag\xe9s","rotateButton":"Tourner des calques"}}'),f=JSON.parse('{"tooltips":{"placeMarker":"\u5355\u51fb\u653e\u7f6e\u6807\u8bb0","firstVertex":"\u5355\u51fb\u653e\u7f6e\u9996\u4e2a\u9876\u70b9","continueLine":"\u5355\u51fb\u7ee7\u7eed\u7ed8\u5236","finishLine":"\u5355\u51fb\u4efb\u4f55\u5b58\u5728\u7684\u6807\u8bb0\u4ee5\u5b8c\u6210","finishPoly":"\u5355\u51fb\u7b2c\u4e00\u4e2a\u6807\u8bb0\u4ee5\u5b8c\u6210","finishRect":"\u5355\u51fb\u5b8c\u6210","startCircle":"\u5355\u51fb\u653e\u7f6e\u5706\u5fc3","finishCircle":"\u5355\u51fb\u5b8c\u6210\u5706\u5f62","placeCircleMarker":"\u70b9\u51fb\u653e\u7f6e\u5706\u5f62\u6807\u8bb0"},"actions":{"finish":"\u5b8c\u6210","cancel":"\u53d6\u6d88","removeLastVertex":"\u79fb\u9664\u6700\u540e\u7684\u9876\u70b9"},"buttonTitles":{"drawMarkerButton":"\u7ed8\u5236\u6807\u8bb0","drawPolyButton":"\u7ed8\u5236\u591a\u8fb9\u5f62","drawLineButton":"\u7ed8\u5236\u7ebf\u6bb5","drawCircleButton":"\u7ed8\u5236\u5706\u5f62","drawRectButton":"\u7ed8\u5236\u957f\u65b9\u5f62","editButton":"\u7f16\u8f91\u56fe\u5c42","dragButton":"\u62d6\u62fd\u56fe\u5c42","cutButton":"\u526a\u5207\u56fe\u5c42","deleteButton":"\u5220\u9664\u56fe\u5c42","drawCircleMarkerButton":"\u753b\u5706\u5708\u6807\u8bb0","snappingButton":"\u5c06\u62d6\u52a8\u7684\u6807\u8bb0\u6355\u6349\u5230\u5176\u4ed6\u56fe\u5c42\u548c\u9876\u70b9","pinningButton":"\u5c06\u5171\u4eab\u9876\u70b9\u56fa\u5b9a\u5728\u4e00\u8d77"}}'),m=JSON.parse('{"tooltips":{"placeMarker":"\u55ae\u64ca\u653e\u7f6e\u6a19\u8a18","firstVertex":"\u55ae\u64ca\u653e\u7f6e\u7b2c\u4e00\u500b\u9802\u9ede","continueLine":"\u55ae\u64ca\u7e7c\u7e8c\u7e6a\u88fd","finishLine":"\u55ae\u64ca\u4efb\u4f55\u5b58\u5728\u7684\u6a19\u8a18\u4ee5\u5b8c\u6210","finishPoly":"\u55ae\u64ca\u7b2c\u4e00\u500b\u6a19\u8a18\u4ee5\u5b8c\u6210","finishRect":"\u55ae\u64ca\u5b8c\u6210","startCircle":"\u55ae\u64ca\u653e\u7f6e\u5713\u5fc3","finishCircle":"\u55ae\u64ca\u5b8c\u6210\u5713\u5f62","placeCircleMarker":"\u9ede\u64ca\u653e\u7f6e\u5713\u5f62\u6a19\u8a18"},"actions":{"finish":"\u5b8c\u6210","cancel":"\u53d6\u6d88","removeLastVertex":"\u79fb\u9664\u6700\u5f8c\u4e00\u500b\u9802\u9ede"},"buttonTitles":{"drawMarkerButton":"\u653e\u7f6e\u6a19\u8a18","drawPolyButton":"\u7e6a\u88fd\u591a\u908a\u5f62","drawLineButton":"\u7e6a\u88fd\u7dda\u6bb5","drawCircleButton":"\u7e6a\u88fd\u5713\u5f62","drawRectButton":"\u7e6a\u88fd\u65b9\u5f62","editButton":"\u7de8\u8f2f\u5716\u5f62","dragButton":"\u79fb\u52d5\u5716\u5f62","cutButton":"\u88c1\u5207\u5716\u5f62","deleteButton":"\u522a\u9664\u5716\u5f62","drawCircleMarkerButton":"\u756b\u5713\u5708\u6a19\u8a18","snappingButton":"\u5c07\u62d6\u52d5\u7684\u6a19\u8a18\u5c0d\u9f4a\u5230\u5176\u4ed6\u5716\u5c64\u548c\u9802\u9ede","pinningButton":"\u5c07\u5171\u4eab\u9802\u9ede\u56fa\u5b9a\u5728\u4e00\u8d77"}}'),g={en:o,de:a,it:s,id:l,ro:c,ru:u,es:d,nl:p,fr:h,pt_br:JSON.parse('{"tooltips":{"placeMarker":"Clique para posicionar o marcador","firstVertex":"Clique para posicionar o primeiro v\xe9rtice","continueLine":"Clique para continuar desenhando","finishLine":"Clique em qualquer marcador existente para finalizar","finishPoly":"Clique no primeiro ponto para fechar o pol\xedgono","finishRect":"Clique para finalizar","startCircle":"Clique para posicionar o centro do c\xedrculo","finishCircle":"Clique para fechar o c\xedrculo","placeCircleMarker":"Clique para posicionar o marcador circular"},"actions":{"finish":"Finalizar","cancel":"Cancelar","removeLastVertex":"Remover \xfaltimo v\xe9rtice"},"buttonTitles":{"drawMarkerButton":"Desenhar um marcador","drawPolyButton":"Desenhar um pol\xedgono","drawLineButton":"Desenhar uma polilinha","drawCircleButton":"Desenhar um c\xedrculo","drawRectButton":"Desenhar um ret\xe2ngulo","editButton":"Editar camada(s)","dragButton":"Mover camada(s)","cutButton":"Recortar camada(s)","deleteButton":"Remover camada(s)","drawCircleMarkerButton":"Marcador de c\xedrculos de desenho","snappingButton":"Marcador arrastado para outras camadas e v\xe9rtices","pinningButton":"V\xe9rtices compartilhados de pinos juntos"}}'),zh:f,zh_tw:m,pl:JSON.parse('{"tooltips":{"placeMarker":"Kliknij, aby ustawi\u0107 znacznik","firstVertex":"Kliknij, aby ustawi\u0107 pierwszy punkt","continueLine":"Kliknij, aby kontynuowa\u0107 rysowanie","finishLine":"Kliknij dowolny punkt, aby zako\u0144czy\u0107","finishPoly":"Kliknij pierwszy punkt, aby zako\u0144czy\u0107","finishRect":"Kliknij, aby zako\u0144czy\u0107","startCircle":"Kliknij, aby ustawi\u0107 \u015brodek ko\u0142a","finishCircle":"Kliknij, aby zako\u0144czy\u0107 rysowanie ko\u0142a","placeCircleMarker":"Kliknij, aby ustawi\u0107 okr\u0105g\u0142y znacznik"},"actions":{"finish":"Zako\u0144cz","cancel":"Anuluj","removeLastVertex":"Usu\u0144 ostatni punkt"},"buttonTitles":{"drawMarkerButton":"Narysuj znacznik","drawPolyButton":"Narysuj wielok\u0105t","drawLineButton":"Narysuj \u015bcie\u017ck\u0119","drawCircleButton":"Narysuj ko\u0142o","drawRectButton":"Narysuj prostok\u0105t","editButton":"Edytuj","dragButton":"Przesu\u0144","cutButton":"Wytnij","deleteButton":"Usu\u0144","drawCircleMarkerButton":"Narysuj okr\u0105g\u0142y znacznik","snappingButton":"Snap przeci\u0105gni\u0119ty marker na inne warstwy i wierzcho\u0142ki","pinningButton":"Sworze\u0144 wsp\xf3lne wierzcho\u0142ki razem"}}'),sv:JSON.parse('{"tooltips":{"placeMarker":"Klicka f\xf6r att placera mark\xf6r","firstVertex":"Klicka f\xf6r att placera f\xf6rsta h\xf6rnet","continueLine":"Klicka f\xf6r att forts\xe4tta rita","finishLine":"Klicka p\xe5 en existerande punkt f\xf6r att slutf\xf6ra","finishPoly":"Klicka p\xe5 den f\xf6rsta punkten f\xf6r att slutf\xf6ra","finishRect":"Klicka f\xf6r att slutf\xf6ra","startCircle":"Klicka f\xf6r att placera cirkelns centrum","finishCircle":"Klicka f\xf6r att slutf\xf6ra cirkeln","placeCircleMarker":"Klicka f\xf6r att placera cirkelmark\xf6r"},"actions":{"finish":"Slutf\xf6r","cancel":"Avbryt","removeLastVertex":"Ta bort sista h\xf6rnet"},"buttonTitles":{"drawMarkerButton":"Rita Mark\xf6r","drawPolyButton":"Rita Polygoner","drawLineButton":"Rita Linje","drawCircleButton":"Rita Cirkel","drawRectButton":"Rita Rektangel","editButton":"Redigera Lager","dragButton":"Dra Lager","cutButton":"Klipp i Lager","deleteButton":"Ta bort Lager","drawCircleMarkerButton":"Rita Cirkelmark\xf6r","snappingButton":"Sn\xe4pp dra mark\xf6ren till andra lager och h\xf6rn","pinningButton":"F\xe4st delade h\xf6rn tillsammans"}}'),el:JSON.parse('{"tooltips":{"placeMarker":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u0394\u03b5\u03af\u03ba\u03c4\u03b7","firstVertex":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u03c4\u03bf \u03c0\u03c1\u03ce\u03c4\u03bf \u03c3\u03b7\u03bc\u03b5\u03af\u03bf","continueLine":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c3\u03c5\u03bd\u03b5\u03c7\u03af\u03c3\u03b5\u03c4\u03b5 \u03bd\u03b1 \u03c3\u03c7\u03b5\u03b4\u03b9\u03ac\u03b6\u03b5\u03c4\u03b5","finishLine":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03c3\u03b5 \u03bf\u03c0\u03bf\u03b9\u03bf\u03bd\u03b4\u03ae\u03c0\u03bf\u03c4\u03b5 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03bd \u03c3\u03b7\u03bc\u03b5\u03af\u03bf \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03bf\u03bb\u03bf\u03ba\u03bb\u03b7\u03c1\u03c9\u03b8\u03b5\u03af","finishPoly":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03c3\u03c4\u03bf \u03c0\u03c1\u03ce\u03c4\u03bf \u03c3\u03b7\u03bc\u03b5\u03af\u03bf \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03c3\u03b5\u03c4\u03b5","finishRect":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03c3\u03b5\u03c4\u03b5","startCircle":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u03ba\u03ad\u03bd\u03c4\u03c1\u03bf \u039a\u03cd\u03ba\u03bb\u03bf\u03c5","finishCircle":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03bf\u03bb\u03bf\u03ba\u03bb\u03b7\u03c1\u03ce\u03c3\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u039a\u03cd\u03ba\u03bb\u03bf","placeCircleMarker":"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u039a\u03c5\u03ba\u03bb\u03b9\u03ba\u03cc \u0394\u03b5\u03af\u03ba\u03c4\u03b7"},"actions":{"finish":"\u03a4\u03ad\u03bb\u03bf\u03c2","cancel":"\u0391\u03ba\u03cd\u03c1\u03c9\u03c3\u03b7","removeLastVertex":"\u039a\u03b1\u03c4\u03ac\u03c1\u03b3\u03b7\u03c3\u03b7 \u03c4\u03b5\u03bb\u03b5\u03c5\u03c4\u03b1\u03af\u03bf\u03c5 \u03c3\u03b7\u03bc\u03b5\u03af\u03bf\u03c5"},"buttonTitles":{"drawMarkerButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u0394\u03b5\u03af\u03ba\u03c4\u03b7","drawPolyButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u03a0\u03bf\u03bb\u03c5\u03b3\u03ce\u03bd\u03bf\u03c5","drawLineButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u0393\u03c1\u03b1\u03bc\u03bc\u03ae\u03c2","drawCircleButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u039a\u03cd\u03ba\u03bb\u03bf\u03c5","drawRectButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u039f\u03c1\u03b8\u03bf\u03b3\u03c9\u03bd\u03af\u03bf\u03c5","editButton":"\u0395\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1 \u0395\u03c0\u03b9\u03c0\u03ad\u03b4\u03c9\u03bd","dragButton":"\u039c\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac \u0395\u03c0\u03b9\u03c0\u03ad\u03b4\u03c9\u03bd","cutButton":"\u0391\u03c0\u03bf\u03ba\u03bf\u03c0\u03ae \u0395\u03c0\u03b9\u03c0\u03ad\u03b4\u03c9\u03bd","deleteButton":"\u039a\u03b1\u03c4\u03ac\u03c1\u03b3\u03b7\u03c3\u03b7 \u0395\u03c0\u03b9\u03c0\u03ad\u03b4\u03c9\u03bd","drawCircleMarkerButton":"\u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u039a\u03c5\u03ba\u03bb\u03b9\u03ba\u03bf\u03cd \u0394\u03b5\u03af\u03ba\u03c4\u03b7","snappingButton":"\u03a0\u03c1\u03bf\u03c3\u03ba\u03cc\u03bb\u03bb\u03b7\u03c3\u03b7 \u03c4\u03bf\u03c5 \u0394\u03b5\u03af\u03ba\u03c4\u03b7 \u03bc\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac\u03c2 \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u0395\u03c0\u03af\u03c0\u03b5\u03b4\u03b1 \u03ba\u03b1\u03b9 \u039a\u03bf\u03c1\u03c5\u03c6\u03ad\u03c2","pinningButton":"\u03a0\u03b5\u03c1\u03b9\u03ba\u03bf\u03c0\u03ae \u03ba\u03bf\u03b9\u03bd\u03ce\u03bd \u03ba\u03bf\u03c1\u03c5\u03c6\u03ce\u03bd \u03bc\u03b1\u03b6\u03af"}}'),hu:JSON.parse('{"tooltips":{"placeMarker":"Kattintson a jel\xf6l\u0151 elhelyez\xe9s\xe9hez","firstVertex":"Kattintson az els\u0151 pont elhelyez\xe9s\xe9hez","continueLine":"Kattintson a k\xf6vetkez\u0151 pont elhelyez\xe9s\xe9hez","finishLine":"A befejez\xe9shez kattintson egy megl\xe9v\u0151 pontra","finishPoly":"A befejez\xe9shez kattintson az els\u0151 pontra","finishRect":"Kattintson a befejez\xe9shez","startCircle":"Kattintson a k\xf6r k\xf6z\xe9ppontj\xe1nak elhelyez\xe9s\xe9hez","finishCircle":"Kattintson a k\xf6r befejez\xe9s\xe9hez","placeCircleMarker":"Kattintson a k\xf6rjel\xf6l\u0151 elhelyez\xe9s\xe9hez"},"actions":{"finish":"Befejez\xe9s","cancel":"M\xe9gse","removeLastVertex":"Utols\xf3 pont elt\xe1vol\xedt\xe1sa"},"buttonTitles":{"drawMarkerButton":"Jel\xf6l\u0151 rajzol\xe1sa","drawPolyButton":"Poligon rajzol\xe1sa","drawLineButton":"Vonal rajzol\xe1sa","drawCircleButton":"K\xf6r rajzol\xe1sa","drawRectButton":"N\xe9gyzet rajzol\xe1sa","editButton":"Elemek szerkeszt\xe9se","dragButton":"Elemek mozgat\xe1sa","cutButton":"Elemek v\xe1g\xe1sa","deleteButton":"Elemek t\xf6rl\xe9se","drawCircleMarkerButton":"K\xf6r jel\xf6l\u0151 rajzol\xe1sa","snappingButton":"Kapcsolja a jel\xf6lt\u0151t m\xe1sik elemhez vagy ponthoz","pinningButton":"K\xf6z\xf6s pontok \xf6sszek\xf6t\xe9se"}}'),da:JSON.parse('{"tooltips":{"placeMarker":"Tryk for at placere en mark\xf8r","firstVertex":"Tryk for at placere det f\xf8rste punkt","continueLine":"Tryk for at forts\xe6tte linjen","finishLine":"Tryk p\xe5 et eksisterende punkt for at afslutte","finishPoly":"Tryk p\xe5 det f\xf8rste punkt for at afslutte","finishRect":"Tryk for at afslutte","startCircle":"Tryk for at placere cirklens center","finishCircle":"Tryk for at afslutte cirklen","placeCircleMarker":"Tryk for at placere en cirkelmark\xf8r"},"actions":{"finish":"Afslut","cancel":"Afbryd","removeLastVertex":"Fjern sidste punkt"},"buttonTitles":{"drawMarkerButton":"Placer mark\xf8r","drawPolyButton":"Tegn polygon","drawLineButton":"Tegn linje","drawCircleButton":"Tegn cirkel","drawRectButton":"Tegn firkant","editButton":"Rediger","dragButton":"Tr\xe6k","cutButton":"Klip","deleteButton":"Fjern","drawCircleMarkerButton":"Tegn cirkelmark\xf8r","snappingButton":"Fastg\xf8r trukket mark\xf8r til andre elementer","pinningButton":"Sammenl\xe6g delte elementer"}}'),no:JSON.parse('{"tooltips":{"placeMarker":"Klikk for \xe5 plassere punkt","firstVertex":"Klikk for \xe5 plassere f\xf8rste punkt","continueLine":"Klikk for \xe5 tegne videre","finishLine":"Klikk p\xe5 et eksisterende punkt for \xe5 fullf\xf8re","finishPoly":"Klikk f\xf8rste punkt for \xe5 fullf\xf8re","finishRect":"Klikk for \xe5 fullf\xf8re","startCircle":"Klikk for \xe5 sette sirkel midtpunkt","finishCircle":"Klikk for \xe5 fullf\xf8re sirkel","placeCircleMarker":"Klikk for \xe5 plassere sirkel"},"actions":{"finish":"Fullf\xf8r","cancel":"Kanseller","removeLastVertex":"Fjern forrige punkt"},"buttonTitles":{"drawMarkerButton":"Tegn Punkt","drawPolyButton":"Tegn Flate","drawLineButton":"Tegn Linje","drawCircleButton":"Tegn Sirkel","drawRectButton":"Tegn rektangel","editButton":"Rediger Objekter","dragButton":"Dra Objekter","cutButton":"Kutt Objekter","deleteButton":"Fjern Objekter","drawCircleMarkerButton":"Tegn sirkel-punkt","snappingButton":"Fest dratt punkt til andre objekter og punkt","pinningButton":"Pin delte punkt sammen"}}'),fa:JSON.parse('{"tooltips":{"placeMarker":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u062c\u0627\u0646\u0645\u0627\u06cc\u06cc \u0646\u0634\u0627\u0646","firstVertex":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u0631\u0633\u0645 \u0627\u0648\u0644\u06cc\u0646 \u0631\u0623\u0633","continueLine":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u0627\u062f\u0627\u0645\u0647 \u0631\u0633\u0645","finishLine":"\u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u0647\u0631 \u0646\u0634\u0627\u0646 \u0645\u0648\u062c\u0648\u062f \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646","finishPoly":"\u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0646\u0634\u0627\u0646 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646","finishRect":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646","startCircle":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u0631\u0633\u0645 \u0645\u0631\u06a9\u0632 \u062f\u0627\u06cc\u0631\u0647","finishCircle":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646 \u0631\u0633\u0645 \u062f\u0627\u06cc\u0631\u0647","placeCircleMarker":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u0631\u0633\u0645 \u0646\u0634\u0627\u0646 \u062f\u0627\u06cc\u0631\u0647","placeText":"\u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u0645\u062a\u0646"},"actions":{"finish":"\u067e\u0627\u06cc\u0627\u0646","cancel":"\u0644\u0641\u0648","removeLastVertex":"\u062d\u0630\u0641 \u0622\u062e\u0631\u06cc\u0646 \u0631\u0623\u0633"},"buttonTitles":{"drawMarkerButton":"\u062f\u0631\u062c \u0646\u0634\u0627\u0646","drawPolyButton":"\u0631\u0633\u0645 \u0686\u0646\u062f\u0636\u0644\u0639\u06cc","drawLineButton":"\u0631\u0633\u0645 \u062e\u0637","drawCircleButton":"\u0631\u0633\u0645 \u062f\u0627\u06cc\u0631\u0647","drawRectButton":"\u0631\u0633\u0645 \u0686\u0647\u0627\u0631\u0636\u0644\u0639\u06cc","editButton":"\u0648\u06cc\u0631\u0627\u06cc\u0634 \u0644\u0627\u06cc\u0647\u200c\u0647\u0627","dragButton":"\u062c\u0627\u0628\u062c\u0627\u06cc\u06cc \u0644\u0627\u06cc\u0647\u200c\u0647\u0627","cutButton":"\u0628\u0631\u0634 \u0644\u0627\u06cc\u0647\u200c\u0647\u0627","deleteButton":"\u062d\u0630\u0641 \u0644\u0627\u06cc\u0647\u200c\u0647\u0627","drawCircleMarkerButton":"\u0631\u0633\u0645 \u0646\u0634\u0627\u0646 \u062f\u0627\u06cc\u0631\u0647","snappingButton":"\u0646\u0634\u0627\u0646\u06af\u0631 \u0631\u0627 \u0628\u0647 \u0644\u0627\u06cc\u0647\u200c\u0647\u0627 \u0648 \u0631\u0626\u0648\u0633 \u062f\u06cc\u06af\u0631 \u0628\u06a9\u0634\u06cc\u062f","pinningButton":"\u0631\u0626\u0648\u0633 \u0645\u0634\u062a\u0631\u06a9 \u0631\u0627 \u0628\u0627 \u0647\u0645 \u067e\u06cc\u0646 \u06a9\u0646\u06cc\u062f","rotateButton":"\u0686\u0631\u062e\u0634 \u0644\u0627\u06cc\u0647","drawTextButton":"\u0631\u0633\u0645 \u0645\u062a\u0646"}}'),ua:JSON.parse('{"tooltips":{"placeMarker":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440","firstVertex":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0448\u0443 \u0432\u0435\u0440\u0448\u0438\u043d\u0443","continueLine":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u043c\u0430\u043b\u044e\u0432\u0430\u0442\u0438","finishLine":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0456\u0441\u043d\u0443\u044e\u0447\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044f","finishPoly":"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u0435\u0440\u0448\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440, \u0449\u043e\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438","finishRect":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438","startCircle":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u0434\u043e\u0434\u0430\u0442\u0438 \u0446\u0435\u043d\u0442\u0440 \u043a\u043e\u043b\u0430","finishCircle":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u043a\u043e\u043b\u043e","placeCircleMarker":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u043a\u0440\u0443\u0433\u043e\u0432\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440"},"actions":{"finish":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438","cancel":"\u0412\u0456\u0434\u043c\u0456\u043d\u0438\u0442\u0438","removeLastVertex":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0432\u0435\u0440\u0448\u0438\u043d\u0443"},"buttonTitles":{"drawMarkerButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043c\u0430\u0440\u043a\u0435\u0440","drawPolyButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043f\u043e\u043b\u0456\u0433\u043e\u043d","drawLineButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043a\u0440\u0438\u0432\u0443","drawCircleButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043a\u043e\u043b\u043e","drawRectButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a","editButton":"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0440\u0438","dragButton":"\u041f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0448\u0430\u0440\u0438","cutButton":"\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438 \u0448\u0430\u0440\u0438","deleteButton":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0448\u0430\u0440\u0438","drawCircleMarkerButton":"\u041c\u0430\u043b\u044e\u0432\u0430\u0442\u0438 \u043a\u0440\u0443\u0433\u043e\u0432\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440","snappingButton":"\u041f\u0440\u0438\u0432\u2019\u044f\u0437\u0430\u0442\u0438 \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0443\u0442\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u0434\u043e \u0456\u043d\u0448\u0438\u0445 \u0448\u0430\u0440\u0456\u0432 \u0442\u0430 \u0432\u0435\u0440\u0448\u0438\u043d","pinningButton":"\u0417\u0432\'\u044f\u0437\u0430\u0442\u0438 \u0441\u043f\u0456\u043b\u044c\u043d\u0456 \u0432\u0435\u0440\u0448\u0438\u043d\u0438 \u0440\u0430\u0437\u043e\u043c"}}'),tr:JSON.parse('{"tooltips":{"placeMarker":"\u0130\u015faret\xe7i yerle\u015ftirmek i\xe7in t\u0131klay\u0131n","firstVertex":"\u0130lk tepe noktas\u0131n\u0131 yerle\u015ftirmek i\xe7in t\u0131klay\u0131n","continueLine":"\xc7izime devam etmek i\xe7in t\u0131klay\u0131n","finishLine":"Bitirmek i\xe7in mevcut herhangi bir i\u015faret\xe7iyi t\u0131klay\u0131n","finishPoly":"Bitirmek i\xe7in ilk i\u015faret\xe7iyi t\u0131klay\u0131n","finishRect":"Bitirmek i\xe7in t\u0131klay\u0131n","startCircle":"Daire merkezine yerle\u015ftirmek i\xe7in t\u0131klay\u0131n","finishCircle":"Daireyi bitirmek i\xe7in t\u0131klay\u0131n","placeCircleMarker":"Daire i\u015faret\xe7isi yerle\u015ftirmek i\xe7in t\u0131klay\u0131n"},"actions":{"finish":"Bitir","cancel":"\u0130ptal","removeLastVertex":"Son k\xf6\u015feyi kald\u0131r"},"buttonTitles":{"drawMarkerButton":"\xc7izim \u0130\u015faret\xe7isi","drawPolyButton":"\xc7okgenler \xe7iz","drawLineButton":"\xc7oklu \xe7izgi \xe7iz","drawCircleButton":"\xc7ember \xe7iz","drawRectButton":"Dikd\xf6rtgen \xe7iz","editButton":"Katmanlar\u0131 d\xfczenle","dragButton":"Katmanlar\u0131 s\xfcr\xfckle","cutButton":"Katmanlar\u0131 kes","deleteButton":"Katmanlar\u0131 kald\u0131r","drawCircleMarkerButton":"Daire i\u015faret\xe7isi \xe7iz","snappingButton":"S\xfcr\xfcklenen i\u015faret\xe7iyi di\u011fer katmanlara ve k\xf6\u015felere yap\u0131\u015ft\u0131r","pinningButton":"Payla\u015f\u0131lan k\xf6\u015feleri birbirine sabitle"}}'),cz:JSON.parse('{"tooltips":{"placeMarker":"Kliknut\xedm vytvo\u0159\xedte zna\u010dku","firstVertex":"Kliknut\xedm vytvo\u0159\xedte prvn\xed objekt","continueLine":"Kliknut\xedm pokra\u010dujte v kreslen\xed","finishLine":"Kliknut\xed na libovolnou existuj\xedc\xed zna\u010dku pro dokon\u010den\xed","finishPoly":"Vyberte prvn\xed bod pro dokon\u010den\xed","finishRect":"Klikn\u011bte pro dokon\u010den\xed","startCircle":"Kliknut\xedm p\u0159idejte st\u0159ed kruhu","finishCircle":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0434\u0438\u0443\u0441","placeCircleMarker":"Kliknut\xedm nastavte polom\u011br"},"actions":{"finish":"Dokon\u010dit","cancel":"Zru\u0161it","removeLastVertex":"Zru\u0161it posledn\xed akci"},"buttonTitles":{"drawMarkerButton":"P\u0159idat zna\u010dku","drawPolyButton":"Nakreslit polygon","drawLineButton":"Nakreslit k\u0159ivku","drawCircleButton":"Nakreslit kruh","drawRectButton":"Nakreslit obd\xe9ln\xedk","editButton":"Upravit vrstvu","dragButton":"P\u0159eneste vrstvu","cutButton":"Vyjmout vrstvu","deleteButton":"Smazat vrstvu","drawCircleMarkerButton":"P\u0159idat kruhovou zna\u010dku","snappingButton":"Nav\xe1zat ta\u017enou zna\u010dku k dal\u0161\xedm vrstv\xe1m a vrchol\u016fm","pinningButton":"Spojit spole\u010dn\xe9 body dohromady"}}'),ja:JSON.parse('{"tooltips":{"placeMarker":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u30de\u30fc\u30ab\u30fc\u3092\u914d\u7f6e","firstVertex":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u6700\u521d\u306e\u9802\u70b9\u3092\u914d\u7f6e","continueLine":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u63cf\u753b\u3092\u7d9a\u3051\u308b","finishLine":"\u4efb\u610f\u306e\u30de\u30fc\u30ab\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u7d42\u4e86","finishPoly":"\u6700\u521d\u306e\u30de\u30fc\u30ab\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u7d42\u4e86","finishRect":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u7d42\u4e86","startCircle":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u5186\u306e\u4e2d\u5fc3\u3092\u914d\u7f6e","finishCircle":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u5186\u306e\u63cf\u753b\u3092\u7d42\u4e86","placeCircleMarker":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u5186\u30de\u30fc\u30ab\u30fc\u3092\u914d\u7f6e","placeText":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u914d\u7f6e"},"actions":{"finish":"\u7d42\u4e86","cancel":"\u30ad\u30e3\u30f3\u30bb\u30eb","removeLastVertex":"\u6700\u5f8c\u306e\u9802\u70b9\u3092\u524a\u9664"},"buttonTitles":{"drawMarkerButton":"\u30de\u30fc\u30ab\u30fc\u3092\u63cf\u753b","drawPolyButton":"\u30dd\u30ea\u30b4\u30f3\u3092\u63cf\u753b","drawLineButton":"\u6298\u308c\u7dda\u3092\u63cf\u753b","drawCircleButton":"\u5186\u3092\u63cf\u753b","drawRectButton":"\u77e9\u5f62\u3092\u63cf\u753b","editButton":"\u30ec\u30a4\u30e4\u30fc\u3092\u7de8\u96c6","dragButton":"\u30ec\u30a4\u30e4\u30fc\u3092\u30c9\u30e9\u30c3\u30b0","cutButton":"\u30ec\u30a4\u30e4\u30fc\u3092\u5207\u308a\u53d6\u308a","deleteButton":"\u30ec\u30a4\u30e4\u30fc\u3092\u524a\u9664","drawCircleMarkerButton":"\u5186\u30de\u30fc\u30ab\u30fc\u3092\u63cf\u753b","snappingButton":"\u30c9\u30e9\u30c3\u30b0\u3057\u305f\u30de\u30fc\u30ab\u30fc\u3092\u4ed6\u306e\u30ec\u30a4\u30e4\u30fc\u3084\u9802\u70b9\u306b\u30b9\u30ca\u30c3\u30d7\u3059\u308b","pinningButton":"\u5171\u6709\u3059\u308b\u9802\u70b9\u3092\u540c\u6642\u306b\u52d5\u304b\u3059","rotateButton":"\u30ec\u30a4\u30e4\u30fc\u3092\u56de\u8ee2","drawTextButton":"\u30c6\u30ad\u30b9\u30c8\u3092\u63cf\u753b"}}')};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _={_globalEditModeEnabled:!1,enableGlobalEditMode:function(e){this._globalEditModeEnabled=!0,this.Toolbar.toggleButton("editMode",this.globalEditModeEnabled()),L.PM.Utils.findLayers(this.map).forEach((function(t){t.pm.enable(e)})),this.throttledReInitEdit||(this.throttledReInitEdit=L.Util.throttle(this.handleLayerAdditionInGlobalEditMode,100,this)),this._addedLayers={},this.map.on("layeradd",this._layerAdded,this),this.map.on("layeradd",this.throttledReInitEdit,this),this._fireGlobalEditModeToggled(!0)},disableGlobalEditMode:function(){this._globalEditModeEnabled=!1,L.PM.Utils.findLayers(this.map).forEach((function(e){e.pm.disable()})),this.map.off("layeradd",this.throttledReInitEdit,this),this.Toolbar.toggleButton("editMode",this.globalEditModeEnabled()),this._fireGlobalEditModeToggled(!1)},globalEditEnabled:function(){return this.globalEditModeEnabled()},globalEditModeEnabled:function(){return this._globalEditModeEnabled},toggleGlobalEditMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.globalOptions;this.globalEditModeEnabled()?this.disableGlobalEditMode():this.enableGlobalEditMode(e)},handleLayerAdditionInGlobalEditMode:function(){var e=this._addedLayers;for(var t in this._addedLayers={},e){var n=e[t];this._isRelevantForEdit(n)&&this.globalEditModeEnabled()&&n.pm.enable(v({},this.globalOptions))}},_layerAdded:function(e){var t=e.layer;this._addedLayers[L.stamp(t)]=t},_isRelevantForEdit:function(e){return e.pm&&!(e instanceof L.LayerGroup)&&(!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore)&&!e._pmTempLayer&&e.pm.options.allowEditing}},w={_globalDragModeEnabled:!1,enableGlobalDragMode:function(){var e=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!0,this._addedLayersDrag={},e.forEach((function(e){e.pm.enableLayerDrag()})),this.throttledReInitDrag||(this.throttledReInitDrag=L.Util.throttle(this.reinitGlobalDragMode,100,this)),this.map.on("layeradd",this.throttledReInitDrag,this),this.map.on("layeradd",this._layerAddedDrag,this),this.Toolbar.toggleButton("dragMode",this.globalDragModeEnabled()),this._fireGlobalDragModeToggled(!0)},disableGlobalDragMode:function(){var e=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!1,e.forEach((function(e){e.pm.disableLayerDrag()})),this.map.off("layeradd",this.throttledReInitDrag,this),this.Toolbar.toggleButton("dragMode",this.globalDragModeEnabled()),this._fireGlobalDragModeToggled(!1)},globalDragModeEnabled:function(){return!!this._globalDragModeEnabled},toggleGlobalDragMode:function(){this.globalDragModeEnabled()?this.disableGlobalDragMode():this.enableGlobalDragMode()},reinitGlobalDragMode:function(){var e=this._addedLayersDrag;for(var t in this._addedLayersDrag={},e){var n=e[t];this._isRelevantForDrag(n)&&this.globalDragModeEnabled()&&n.pm.enableLayerDrag()}},_layerAddedDrag:function(e){var t=e.layer;this._addedLayersDrag[L.stamp(t)]=t},_isRelevantForDrag:function(e){return e.pm&&!(e instanceof L.LayerGroup)&&(!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore)&&!e._pmTempLayer&&e.pm.options.draggable}},x={_globalRemovalModeEnabled:!1,enableGlobalRemovalMode:function(){var e=this;this._globalRemovalModeEnabled=!0,this.map.eachLayer((function(t){e._isRelevantForRemoval(t)&&(t.pm.disable(),t.on("click",e.removeLayer,e))})),this.throttledReInitRemoval||(this.throttledReInitRemoval=L.Util.throttle(this.reinitGlobalRemovalMode,100,this)),this.map.on("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!0)},disableGlobalRemovalMode:function(){var e=this;this._globalRemovalModeEnabled=!1,this.map.eachLayer((function(t){t.off("click",e.removeLayer,e)})),this.map.off("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!1)},globalRemovalEnabled:function(){return this.globalRemovalModeEnabled()},globalRemovalModeEnabled:function(){return!!this._globalRemovalModeEnabled},toggleGlobalRemovalMode:function(){this.globalRemovalModeEnabled()?this.disableGlobalRemovalMode():this.enableGlobalRemovalMode()},reinitGlobalRemovalMode:function(e){var t=e.layer;this._isRelevantForRemoval(t)&&this.globalRemovalModeEnabled()&&(this.disableGlobalRemovalMode(),this.enableGlobalRemovalMode())},removeLayer:function(e){var t=e.target;this._isRelevantForRemoval(t)&&!t.pm.dragging()&&(t.removeFrom(this.map.pm._getContainingLayer()),t.remove(),t instanceof L.LayerGroup?(this._fireRemoveLayerGroup(t),this._fireRemoveLayerGroup(this.map,t)):(t.pm._fireRemove(t),t.pm._fireRemove(this.map,t)))},_isRelevantForRemoval:function(e){return e.pm&&!(e instanceof L.LayerGroup)&&(!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore)&&!e._pmTempLayer&&e.pm.options.allowRemoval}},k={_globalRotateModeEnabled:!1,enableGlobalRotateMode:function(){var e=this;this._globalRotateModeEnabled=!0,L.PM.Utils.findLayers(this.map).filter((function(e){return e instanceof L.Polyline})).forEach((function(t){e._isRelevantForRotate(t)&&t.pm.enableRotate()})),this.throttledReInitRotate||(this.throttledReInitRotate=L.Util.throttle(this._reinitGlobalRotateMode,100,this)),this.map.on("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},disableGlobalRotateMode:function(){this._globalRotateModeEnabled=!1,L.PM.Utils.findLayers(this.map).filter((function(e){return e instanceof L.Polyline})).forEach((function(e){e.pm.disableRotate()})),this.map.off("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},globalRotateModeEnabled:function(){return!!this._globalRotateModeEnabled},toggleGlobalRotateMode:function(){this.globalRotateModeEnabled()?this.disableGlobalRotateMode():this.enableGlobalRotateMode()},_reinitGlobalRotateMode:function(e){var t=e.layer;this._isRelevantForRotate(t)&&this.globalRotateModeEnabled()&&(this.disableGlobalRotateMode(),this.enableGlobalRotateMode())},_isRelevantForRotate:function(e){return e.pm&&!(e instanceof L.LayerGroup)&&(!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore)&&!e._pmTempLayer&&e.pm.options.allowRotation}};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T={_fireDrawStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Draw",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._map,"pm:drawstart",{shape:this._shape,workingLayer:this._layer},e,t)},_fireDrawEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Draw",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._map,"pm:drawend",{shape:this._shape},e,t)},_fireCreate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Draw",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this._map,"pm:create",{shape:this._shape,marker:e,layer:e},t,n)},_fireCenterPlaced:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Draw",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="Draw"===e?this._layer:void 0,r="Draw"!==e?this._layer:void 0;this.__fire(this._layer,"pm:centerplaced",{shape:this._shape,workingLayer:n,layer:r,latlng:this._layer.getLatLng()},e,t)},_fireCut:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Draw",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(e,"pm:cut",{shape:this._shape,layer:t,originalLayer:n},r,i)},_fireEdit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._layer,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Edit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(e,"pm:edit",{layer:this._layer,shape:this.getShape()},t,n)},_fireEnable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:enable",{layer:this._layer,shape:this.getShape()},e,t)},_fireDisable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:disable",{layer:this._layer,shape:this.getShape()},e,t)},_fireUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:update",{layer:this._layer,shape:this.getShape()},e,t)},_fireMarkerDragStart:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._layer,"pm:markerdragstart",{layer:this._layer,markerEvent:e,shape:this.getShape(),indexPath:t},n,r)},_fireMarkerDrag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._layer,"pm:markerdrag",{layer:this._layer,markerEvent:e,shape:this.getShape(),indexPath:t},n,r)},_fireMarkerDragEnd:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Edit",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(this._layer,"pm:markerdragend",{layer:this._layer,markerEvent:e,shape:this.getShape(),indexPath:t,intersectionReset:n},r,i)},_fireDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:dragstart",{layer:this._layer,shape:this.getShape()},e,t)},_fireDrag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Edit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this._layer,"pm:drag",S(S({},e),{},{shape:this.getShape()}),t,n)},_fireDragEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:dragend",{layer:this._layer,shape:this.getShape()},e,t)},_fireDragEnable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:dragenable",{layer:this._layer,shape:this.getShape()},e,t)},_fireDragDisable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Edit",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._layer,"pm:dragdisable",{layer:this._layer,shape:this.getShape()},e,t)},_fireRemove:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:remove",{layer:t,shape:this.getShape()},n,r)},_fireVertexAdded:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Edit",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(this._layer,"pm:vertexadded",{layer:this._layer,workingLayer:this._layer,marker:e,indexPath:t,latlng:n,shape:this.getShape()},r,i)},_fireVertexRemoved:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._layer,"pm:vertexremoved",{layer:this._layer,marker:e,indexPath:t,shape:this.getShape()},n,r)},_fireVertexClick:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._layer,"pm:vertexclick",{layer:this._layer,markerEvent:e,indexPath:t,shape:this.getShape()},n,r)},_fireIntersect:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Edit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this._layer,"pm:intersect",{layer:this._layer,intersection:e,shape:this.getShape()},t,n)},_fireLayerReset:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._layer,"pm:layerreset",{layer:this._layer,markerEvent:e,indexPath:t,shape:this.getShape()},n,r)},_fireChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Edit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this._layer,"pm:change",{layer:this._layer,latlngs:e,shape:this.getShape()},t,n)},_fireTextChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Edit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this._layer,"pm:textchange",{layer:this._layer,text:e,shape:this.getShape()},t,n)},_fireSnapDrag:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Snapping",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:snapdrag",t,n,r)},_fireSnap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Snapping",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:snap",t,n,r)},_fireUnsnap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Snapping",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:unsnap",t,n,r)},_fireRotationEnable:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Rotation",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:rotateenable",{layer:this._layer,helpLayer:this._rotatePoly,shape:this.getShape()},n,r)},_fireRotationDisable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Rotation",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(e,"pm:rotatedisable",{layer:this._layer,shape:this.getShape()},t,n)},_fireRotationStart:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Rotation",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:rotatestart",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:this._startAngle,originLatLngs:t},n,r)},_fireRotation:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._rotationLayer,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Rotation",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.__fire(e,"pm:rotate",{layer:r,helpLayer:this._layer,startAngle:this._startAngle,angle:r.pm.getAngle(),angleDiff:t,oldLatLngs:n,newLatLngs:r.getLatLngs()},i,o)},_fireRotationEnd:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Rotation",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(e,"pm:rotateend",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:t,angle:this._rotationLayer.pm.getAngle(),originLatLngs:n,newLatLngs:this._rotationLayer.getLatLngs()},r,i)},_fireActionClick:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Toolbar",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(this._map,"pm:actionclick",{text:e.text,action:e,btnName:t,button:n},r,i)},_fireButtonClick:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Toolbar",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(this._map,"pm:buttonclick",{btnName:e,button:t},n,r)},_fireLangChange:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Global",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.__fire(this.map,"pm:langchange",{oldLang:e,activeLang:t,fallback:n,translations:r},i,o)},_fireGlobalDragModeToggled:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this.map,"pm:globaldragmodetoggled",{enabled:e,map:this.map},t,n)},_fireGlobalEditModeToggled:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this.map,"pm:globaleditmodetoggled",{enabled:e,map:this.map},t,n)},_fireGlobalRemovalModeToggled:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.__fire(this.map,"pm:globalremovalmodetoggled",{enabled:e,map:this.map},t,n)},_fireGlobalCutModeToggled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Global",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._map,"pm:globalcutmodetoggled",{enabled:!!this._enabled,map:this._map},e,t)},_fireGlobalDrawModeToggled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Global",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this._map,"pm:globaldrawmodetoggled",{enabled:this._enabled,shape:this._shape,map:this._map},e,t)},_fireGlobalRotateModeToggled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Global",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.__fire(this.map,"pm:globalrotatemodetoggled",{enabled:this.globalRotateModeEnabled(),map:this.map},e,t)},_fireRemoveLayerGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Edit",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.__fire(e,"pm:remove",{layer:t,shape:void 0},n,r)},_fireKeyeventEvent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Global",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.__fire(this.map,"pm:keyevent",{event:e,eventType:t,focusOn:n},r,i)},__fire:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};n=i()(n,o,{source:r}),L.PM.Utils._fireEvent(e,t,n)}};const E=T,P={_lastEvents:{keydown:void 0,keyup:void 0,current:void 0},_initKeyListener:function(e){this.map=e,L.DomEvent.on(document,"keydown keyup",this._onKeyListener,this),L.DomEvent.on(window,"blur",this._onBlur,this)},_onKeyListener:function(e){var t="document";this.map.getContainer().contains(e.target)&&(t="map");var n={event:e,eventType:e.type,focusOn:t};this._lastEvents[e.type]=n,this._lastEvents.current=n,this.map.pm._fireKeyeventEvent(e,e.type,t)},_onBlur:function(e){e.altKey=!1;var t={event:e,eventType:e.type,focusOn:"document"};this._lastEvents[e.type]=t,this._lastEvents.current=t},getLastKeyEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"current";return this._lastEvents[e]},isShiftKeyPressed:function(){var e;return null===(e=this._lastEvents.current)||void 0===e?void 0:e.event.shiftKey},isAltKeyPressed:function(){var e;return null===(e=this._lastEvents.current)||void 0===e?void 0:e.event.altKey},isCtrlKeyPressed:function(){var e;return null===(e=this._lastEvents.current)||void 0===e?void 0:e.event.ctrlKey},isMetaKeyPressed:function(){var e;return null===(e=this._lastEvents.current)||void 0===e?void 0:e.event.metaKey},getPressedKey:function(){var e;return null===(e=this._lastEvents.current)||void 0===e?void 0:e.event.key}};var I=n(7361),O=n.n(I),R=n(8721),j=n.n(R);function D(e){var t=L.PM.activeLang;return j()(g,t)||(t="en"),O()(g[t],e)}function A(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Array.isArray(n)){if(A(n))return!0}else if(null!==n&&void 0!==n&&""!==n)return!0}return!1}function N(e){return e.reduce((function(e,t){if(0!==t.length){var n=Array.isArray(t)?N(t):t;Array.isArray(n)?0!==n.length&&e.push(n):e.push(n)}return e}),[])}function F(e,t,n){for(var r,i,o,a=6378137,s=6356752.3142,l=1/298.257223563,c=e.lng,u=e.lat,d=n,p=Math.PI,h=t*p/180,f=Math.sin(h),m=Math.cos(h),g=(1-l)*Math.tan(u*p/180),y=1/Math.sqrt(1+g*g),v=g*y,b=Math.atan2(g,m),_=y*f,w=1-_*_,x=w*(a*a-s*s)/(s*s),k=1+x/16384*(4096+x*(x*(320-175*x)-768)),C=x/1024*(256+x*(x*(74-47*x)-128)),S=d/(s*k),M=2*Math.PI;Math.abs(S-M)>1e-12;)r=Math.cos(2*b+S),M=S,S=d/(s*k)+C*(i=Math.sin(S))*(r+C/4*((o=Math.cos(S))*(2*r*r-1)-C/6*r*(4*i*i-3)*(4*r*r-3)));var T=v*i-y*o*m,E=Math.atan2(v*o+y*i*m,(1-l)*Math.sqrt(_*_+T*T)),P=l/16*w*(4+l*(4-3*w)),I=c+180*(Math.atan2(i*f,y*o-v*i*m)-(1-P)*l*_*(S+P*i*(r+P*o*(2*r*r-1))))/p,O=180*E/p;return L.latLng(I,O)}function z(e,t,n,r){for(var i,o,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=[],l=0;l<n;l+=1){if(a)i=F(e,360*l/n+r,t),o=L.latLng(i.lng,i.lat);else{var c=e.lat+Math.cos(2*l*Math.PI/n)*t,u=e.lng+Math.sin(2*l*Math.PI/n)*t;o=L.latLng(c,u)}s.push(o)}return s}function B(e,t,n,r){var i=function(e,t,n){var r=e.latLngToContainerPoint(t),i=e.latLngToContainerPoint(n),o=180*Math.atan2(i.y-r.y,i.x-r.x)/Math.PI+90;return o+(o<0?360:0)}(e,t,n);return function(e,t,n){t=(t+360)%360;var r=Math.PI/180,i=180/Math.PI,o=6378137,a=e.lng*r,s=e.lat*r,l=t*r,c=Math.sin(s),u=Math.cos(s),d=Math.cos(n/o),p=Math.sin(n/o),h=Math.asin(c*d+u*p*Math.cos(l)),f=a+Math.atan2(Math.sin(l)*p*u,d-c*Math.sin(h));return f=(f*=i)>180?f-360:f<-180?f+360:f,L.latLng([h*i,f])}(t,i,r)}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getLatLngs();return e instanceof L.Polygon?L.polygon(t).getLatLngs():L.polyline(t).getLatLngs()}function $(e,t){var n,r;if(null!==(n=t.options.crs)&&void 0!==n&&null!==(r=n.projection)&&void 0!==r&&r.MAX_LATITUDE){var i,o,a=null===(i=t.options.crs)||void 0===i||null===(o=i.projection)||void 0===o?void 0:o.MAX_LATITUDE;e.lat=Math.max(Math.min(a,e.lat),-a)}return e}function V(e){return e.options.renderer||e._map&&(e._map._getPaneRenderer(e.options.pane)||e._map.options.renderer||e._map._renderer)||e._renderer}const q=L.Class.extend({includes:[_,w,x,k,E],initialize:function(e){this.map=e,this.Draw=new L.PM.Draw(e),this.Toolbar=new L.PM.Toolbar(e),this.Keyboard=P,this.globalOptions={snappable:!0,layerGroup:void 0,snappingOrder:["Marker","CircleMarker","Circle","Line","Polygon","Rectangle"],panes:{vertexPane:"markerPane",layerPane:"overlayPane",markerPane:"markerPane"},draggable:!0},this.Keyboard._initKeyListener(e)},setLang:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",r=L.PM.activeLang;t&&(g[e]=i()(g[n],t)),L.PM.activeLang=e,this.map.pm.Toolbar.reinit(),this._fireLangChange(r,e,n,g[e])},addControls:function(e){this.Toolbar.addControls(e)},removeControls:function(){this.Toolbar.removeControls()},toggleControls:function(){this.Toolbar.toggleControls()},controlsVisible:function(){return this.Toolbar.isVisible},enableDraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Polygon",t=arguments.length>1?arguments[1]:void 0;"Poly"===e&&(e="Polygon"),this.Draw.enable(e,t)},disableDraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Polygon";"Poly"===e&&(e="Polygon"),this.Draw.disable(e)},setPathOptions:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.ignoreShapes||[],i=n.merge||!1;this.map.pm.Draw.shapes.forEach((function(n){-1===r.indexOf(n)&&t.map.pm.Draw[n].setPathOptions(e,i)}))},getGlobalOptions:function(){return this.globalOptions},setGlobalOptions:function(e){var t=this,n=i()(this.globalOptions,e),r=!1;this.map.pm.Draw.CircleMarker.enabled()&&this.map.pm.Draw.CircleMarker.options.editable!==n.editable&&(this.map.pm.Draw.CircleMarker.disable(),r=!0),this.map.pm.Draw.shapes.forEach((function(e){t.map.pm.Draw[e].setOptions(n)})),r&&this.map.pm.Draw.CircleMarker.enable(),L.PM.Utils.findLayers(this.map).forEach((function(e){e.pm.setOptions(n)})),this.applyGlobalOptions(),this.globalOptions=n},applyGlobalOptions:function(){L.PM.Utils.findLayers(this.map).forEach((function(e){e.pm.enabled()&&e.pm.applyOptions()}))},globalDrawModeEnabled:function(){return!!this.Draw.getActiveShape()},globalCutModeEnabled:function(){return!!this.Draw.Cut.enabled()},enableGlobalCutMode:function(e){return this.Draw.Cut.enable(e)},toggleGlobalCutMode:function(e){return this.Draw.Cut.toggle(e)},disableGlobalCutMode:function(){return this.Draw.Cut.disable()},getGeomanLayers:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=L.PM.Utils.findLayers(this.map);if(!e)return t;var n=L.featureGroup();return n._pmTempLayer=!0,t.forEach((function(e){n.addLayer(e)})),n},getGeomanDrawLayers:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=L.PM.Utils.findLayers(this.map).filter((function(e){return!0===e._drawnByGeoman}));if(!e)return t;var n=L.featureGroup();return n._pmTempLayer=!0,t.forEach((function(e){n.addLayer(e)})),n},_getContainingLayer:function(){return this.globalOptions.layerGroup&&this.globalOptions.layerGroup instanceof L.LayerGroup?this.globalOptions.layerGroup:this.map},_isCRSSimple:function(){return this.map.options.crs===L.CRS.Simple},_touchEventCounter:0,_addTouchEvents:function(e){0===this._touchEventCounter&&(L.DomEvent.on(e,"touchmove",this._canvasTouchMove,this),L.DomEvent.on(e,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter+=1},_removeTouchEvents:function(e){1===this._touchEventCounter&&(L.DomEvent.off(e,"touchmove",this._canvasTouchMove,this),L.DomEvent.off(e,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter=this._touchEventCounter<=1?0:this._touchEventCounter-1},_canvasTouchMove:function(e){V(this.map)._onMouseMove(this._createMouseEvent("mousemove",e))},_canvasTouchClick:function(e){var t="";"touchstart"===e.type||"pointerdown"===e.type?t="mousedown":"touchend"===e.type||"pointerup"===e.type?t="mouseup":"touchcancel"!==e.type&&"pointercancel"!==e.type||(t="mouseup"),t&&V(this.map)._onClick(this._createMouseEvent(t,e))},_createMouseEvent:function(e,t){var n,r=t.touches[0]||t.changedTouches[0];try{n=new MouseEvent(e,{bubbles:t.bubbles,cancelable:t.cancelable,view:t.view,detail:r.detail,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,button:t.button,relatedTarget:t.relatedTarget})}catch(i){(n=document.createEvent("MouseEvents")).initMouseEvent(e,t.bubbles,t.cancelable,t.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}return n}});function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W=L.Control.extend({includes:[E],options:{position:"topleft"},initialize:function(e){this._button=H(H({},this.options),e)},onAdd:function(e){return this._map=e,this._map.pm.Toolbar.options.oneBlock?this._container=this._map.pm.Toolbar._createContainer(this.options.position):"edit"===this._button.tool?this._container=this._map.pm.Toolbar.editContainer:"options"===this._button.tool?this._container=this._map.pm.Toolbar.optionsContainer:"custom"===this._button.tool?this._container=this._map.pm.Toolbar.customContainer:this._container=this._map.pm.Toolbar.drawContainer,this.buttonsDomNode=this._makeButton(this._button),this._container.appendChild(this.buttonsDomNode),this._container},onRemove:function(){return this.buttonsDomNode.remove(),this._container},getText:function(){return this._button.text},getIconUrl:function(){return this._button.iconUrl},destroy:function(){this._button={},this._update()},toggle:function(e){return this._button.toggleStatus="boolean"==typeof e?e:!this._button.toggleStatus,this._applyStyleClasses(),this._button.toggleStatus},toggled:function(){return this._button.toggleStatus},onCreate:function(){this.toggle(!1)},disable:function(){this.toggle(!1),this._button.disabled=!0,this._updateDisabled()},enable:function(){this._button.disabled=!1,this._updateDisabled()},_triggerClick:function(e){e&&e.preventDefault(),this._button.disabled||(this._button.onClick(e,{button:this,event:e}),this._clicked(e),this._button.afterClick(e,{button:this,event:e}))},_makeButton:function(e){var t=this,n=this.options.position.indexOf("right")>-1?"pos-right":"",r=L.DomUtil.create("div","button-container  ".concat(n),this._container);e.title&&r.setAttribute("title",e.title);var i=L.DomUtil.create("a","leaflet-buttons-control-button",r);i.setAttribute("role","button"),i.setAttribute("tabindex","0"),i.href="#";var o=L.DomUtil.create("div","leaflet-pm-actions-container ".concat(n),r),a=e.actions,s={cancel:{text:D("actions.cancel"),onClick:function(){this._triggerClick()}},finishMode:{text:D("actions.finish"),onClick:function(){this._triggerClick()}},removeLastVertex:{text:D("actions.removeLastVertex"),onClick:function(){this._map.pm.Draw[e.jsClass]._removeLastVertex()}},finish:{text:D("actions.finish"),onClick:function(t){this._map.pm.Draw[e.jsClass]._finishShape(t)}}};a.forEach((function(r){var i,a="string"==typeof r?r:r.name;if(s[a])i=s[a];else{if(!r.text)return;i=r}var l=L.DomUtil.create("a","leaflet-pm-action ".concat(n," action-").concat(a),o);l.setAttribute("role","button"),l.setAttribute("tabindex","0"),l.href="#",l.innerHTML=i.text,L.DomEvent.disableClickPropagation(l),L.DomEvent.on(l,"click",L.DomEvent.stop),!e.disabled&&i.onClick&&(L.DomEvent.addListener(l,"click",(function(n){n.preventDefault();var r="",o=t._map.pm.Toolbar.buttons;for(var a in o)if(o[a]._button===e){r=a;break}t._fireActionClick(i,r,e)}),t),L.DomEvent.addListener(l,"click",i.onClick,t))})),e.toggleStatus&&L.DomUtil.addClass(r,"active");var l=L.DomUtil.create("div","control-icon",i);return e.iconUrl&&l.setAttribute("src",e.iconUrl),e.className&&L.DomUtil.addClass(l,e.className),L.DomEvent.disableClickPropagation(i),L.DomEvent.on(i,"click",L.DomEvent.stop),e.disabled||(L.DomEvent.addListener(i,"click",this._onBtnClick,this),L.DomEvent.addListener(i,"click",this._triggerClick,this)),e.disabled&&(L.DomUtil.addClass(i,"pm-disabled"),i.setAttribute("aria-disabled","true")),r},_applyStyleClasses:function(){this._container&&(this._button.toggleStatus&&!1!==this._button.cssToggle?(L.DomUtil.addClass(this.buttonsDomNode,"active"),L.DomUtil.addClass(this._container,"activeChild")):(L.DomUtil.removeClass(this.buttonsDomNode,"active"),L.DomUtil.removeClass(this._container,"activeChild")))},_onBtnClick:function(){this._button.disableOtherButtons&&this._map.pm.Toolbar.triggerClickOnToggledButtons(this);var e="",t=this._map.pm.Toolbar.buttons;for(var n in t)if(t[n]._button===this._button){e=n;break}this._fireButtonClick(e,this._button)},_clicked:function(){this._button.doToggle&&this.toggle()},_updateDisabled:function(){if(this._container){var e="pm-disabled",t=this.buttonsDomNode.children[0];this._button.disabled?(L.DomUtil.addClass(t,e),t.setAttribute("aria-disabled","true"),L.DomEvent.off(t,"click",this._triggerClick,this),L.DomEvent.off(t,"click",this._onBtnClick,this)):(L.DomUtil.removeClass(t,e),t.setAttribute("aria-disabled","false"),L.DomEvent.on(t,"click",this._triggerClick,this),L.DomEvent.on(t,"click",this._onBtnClick,this))}}});function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}L.Control.PMButton=W;const Q=L.Class.extend({options:{drawMarker:!0,drawRectangle:!0,drawPolyline:!0,drawPolygon:!0,drawCircle:!0,drawCircleMarker:!0,drawText:!0,editMode:!0,dragMode:!0,cutPolygon:!0,removalMode:!0,rotateMode:!0,snappingOption:!0,drawControls:!0,editControls:!0,optionsControls:!0,customControls:!0,oneBlock:!1,position:"topleft",positions:{draw:"",edit:"",options:"",custom:""}},customButtons:[],initialize:function(e){this.init(e)},reinit:function(){var e=this.isVisible;this.removeControls(),this._defineButtons(),e&&this.addControls()},init:function(e){this.map=e,this.buttons={},this.isVisible=!1,this.drawContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-draw leaflet-bar leaflet-control"),this.editContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-edit leaflet-bar leaflet-control"),this.optionsContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-options leaflet-bar leaflet-control"),this.customContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-custom leaflet-bar leaflet-control"),this._defineButtons()},_createContainer:function(e){var t="".concat(e,"Container");return this[t]||(this[t]=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-".concat(e," leaflet-bar leaflet-control"))),this[t]},getButtons:function(){return this.buttons},addControls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options;"undefined"!=typeof e.editPolygon&&(e.editMode=e.editPolygon),"undefined"!=typeof e.deleteLayer&&(e.removalMode=e.deleteLayer),L.Util.setOptions(this,e),this.applyIconStyle(),this.isVisible=!0,this._showHideButtons()},applyIconStyle:function(){var e=this.getButtons(),t={geomanIcons:{drawMarker:"control-icon leaflet-pm-icon-marker",drawPolyline:"control-icon leaflet-pm-icon-polyline",drawRectangle:"control-icon leaflet-pm-icon-rectangle",drawPolygon:"control-icon leaflet-pm-icon-polygon",drawCircle:"control-icon leaflet-pm-icon-circle",drawCircleMarker:"control-icon leaflet-pm-icon-circle-marker",editMode:"control-icon leaflet-pm-icon-edit",dragMode:"control-icon leaflet-pm-icon-drag",cutPolygon:"control-icon leaflet-pm-icon-cut",removalMode:"control-icon leaflet-pm-icon-delete",drawText:"control-icon leaflet-pm-icon-text"}};for(var n in e){var r=e[n];L.Util.setOptions(r,{className:t.geomanIcons[n]})}},removeControls:function(){var e=this.getButtons();for(var t in e)e[t].remove();this.isVisible=!1},toggleControls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options;this.isVisible?this.removeControls():this.addControls(e)},_addButton:function(e,t){return this.buttons[e]=t,this.options[e]=this.options[e]||!1,this.buttons[e]},triggerClickOnToggledButtons:function(e){var t=["snappingOption"];for(var n in this.buttons)!t.includes(n)&&this.buttons[n]!==e&&this.buttons[n].toggled()&&this.buttons[n]._triggerClick()},toggleButton:function(e,t){return"editPolygon"===e&&(e="editMode"),"deleteLayer"===e&&(e="removalMode"),(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.triggerClickOnToggledButtons(this.buttons[e]),!!this.buttons[e]&&this.buttons[e].toggle(t)},_defineButtons:function(){var e=this,t={className:"control-icon leaflet-pm-icon-marker",title:D("buttonTitles.drawMarkerButton"),jsClass:"Marker",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},n={title:D("buttonTitles.drawPolyButton"),className:"control-icon leaflet-pm-icon-polygon",jsClass:"Polygon",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},r={className:"control-icon leaflet-pm-icon-polyline",title:D("buttonTitles.drawLineButton"),jsClass:"Line",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},i={title:D("buttonTitles.drawCircleButton"),className:"control-icon leaflet-pm-icon-circle",jsClass:"Circle",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},o={title:D("buttonTitles.drawCircleMarkerButton"),className:"control-icon leaflet-pm-icon-circle-marker",jsClass:"CircleMarker",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},a={title:D("buttonTitles.drawRectButton"),className:"control-icon leaflet-pm-icon-rectangle",jsClass:"Rectangle",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},s={title:D("buttonTitles.editButton"),className:"control-icon leaflet-pm-icon-edit",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalEditMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},l={title:D("buttonTitles.dragButton"),className:"control-icon leaflet-pm-icon-drag",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalDragMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},c={title:D("buttonTitles.cutButton"),className:"control-icon leaflet-pm-icon-cut",jsClass:"Cut",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle({snappable:!0,cursorMarker:!0,allowSelfIntersection:!1})},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finish","removeLastVertex","cancel"]},u={title:D("buttonTitles.deleteButton"),className:"control-icon leaflet-pm-icon-delete",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalRemovalMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},d={title:D("buttonTitles.rotateButton"),className:"control-icon leaflet-pm-icon-rotate",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalRotateMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},p={className:"control-icon leaflet-pm-icon-text",title:D("buttonTitles.drawTextButton"),jsClass:"Text",onClick:function(){},afterClick:function(t,n){e.map.pm.Draw[n.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]};this._addButton("drawMarker",new L.Control.PMButton(t)),this._addButton("drawPolyline",new L.Control.PMButton(r)),this._addButton("drawRectangle",new L.Control.PMButton(a)),this._addButton("drawPolygon",new L.Control.PMButton(n)),this._addButton("drawCircle",new L.Control.PMButton(i)),this._addButton("drawCircleMarker",new L.Control.PMButton(o)),this._addButton("drawText",new L.Control.PMButton(p)),this._addButton("editMode",new L.Control.PMButton(s)),this._addButton("dragMode",new L.Control.PMButton(l)),this._addButton("cutPolygon",new L.Control.PMButton(c)),this._addButton("removalMode",new L.Control.PMButton(u)),this._addButton("rotateMode",new L.Control.PMButton(d))},_showHideButtons:function(){if(this.isVisible){this.removeControls(),this.isVisible=!0;var e=this.getButtons(),t=[];for(var n in!1===this.options.drawControls&&(t=t.concat(Object.keys(e).filter((function(t){return!e[t]._button.tool})))),!1===this.options.editControls&&(t=t.concat(Object.keys(e).filter((function(t){return"edit"===e[t]._button.tool})))),!1===this.options.optionsControls&&(t=t.concat(Object.keys(e).filter((function(t){return"options"===e[t]._button.tool})))),!1===this.options.customControls&&(t=t.concat(Object.keys(e).filter((function(t){return"custom"===e[t]._button.tool})))),e)if(this.options[n]&&-1===t.indexOf(n)){var r=e[n]._button.tool;r||(r="draw"),e[n].setPosition(this._getBtnPosition(r)),e[n].addTo(this.map)}}},_getBtnPosition:function(e){return this.options.positions&&this.options.positions[e]?this.options.positions[e]:this.options.position},setBlockPosition:function(e,t){this.options.positions[e]=t,this._showHideButtons(),this.changeControlOrder()},getBlockPositions:function(){return this.options.positions},copyDrawControl:function(e,t){if(!t)throw new TypeError("Button has no name");"object"!==J(t)&&(t={name:t});var n=this._btnNameMapping(e);if(!t.name)throw new TypeError("Button has no name");if(this.buttons[t.name])throw new TypeError("Button with this name already exists");var r=this.map.pm.Draw.createNewDrawInstance(t.name,n);return t=K(K({},this.buttons[n]._button),t),{drawInstance:r,control:this.createCustomControl(t)}},createCustomControl:function(e){if(!e.name)throw new TypeError("Button has no name");if(this.buttons[e.name])throw new TypeError("Button with this name already exists");e.onClick||(e.onClick=function(){}),e.afterClick||(e.afterClick=function(){}),!1!==e.toggle&&(e.toggle=!0),e.block&&(e.block=e.block.toLowerCase()),e.block&&"draw"!==e.block||(e.block=""),e.className?-1===e.className.indexOf("control-icon")&&(e.className="control-icon ".concat(e.className)):e.className="control-icon";var t={tool:e.block,className:e.className,title:e.title||"",jsClass:e.name,onClick:e.onClick,afterClick:e.afterClick,doToggle:e.toggle,toggleStatus:!1,disableOtherButtons:!0,cssToggle:e.toggle,position:this.options.position,actions:e.actions||[],disabled:!!e.disabled};!1!==this.options[e.name]&&(this.options[e.name]=!0);var n=this._addButton(e.name,new L.Control.PMButton(t));return this.changeControlOrder(),n},changeControlOrder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this._shapeMapping(),n=[];e.forEach((function(e){t[e]?n.push(t[e]):n.push(e)}));var r=this.getButtons(),i={};n.forEach((function(e){r[e]&&(i[e]=r[e])}));var o=Object.keys(r).filter((function(e){return!r[e]._button.tool}));o.forEach((function(e){-1===n.indexOf(e)&&(i[e]=r[e])}));var a=Object.keys(r).filter((function(e){return"edit"===r[e]._button.tool}));a.forEach((function(e){-1===n.indexOf(e)&&(i[e]=r[e])}));var s=Object.keys(r).filter((function(e){return"options"===r[e]._button.tool}));s.forEach((function(e){-1===n.indexOf(e)&&(i[e]=r[e])}));var l=Object.keys(r).filter((function(e){return"custom"===r[e]._button.tool}));l.forEach((function(e){-1===n.indexOf(e)&&(i[e]=r[e])})),Object.keys(r).forEach((function(e){-1===n.indexOf(e)&&(i[e]=r[e])})),this.map.pm.Toolbar.buttons=i,this._showHideButtons()},getControlOrder:function(){var e=this.getButtons(),t=[];for(var n in e)t.push(n);return t},changeActionsOfControl:function(e,t){var n=this._btnNameMapping(e);if(!n)throw new TypeError("No name passed");if(!t)throw new TypeError("No actions passed");if(!this.buttons[n])throw new TypeError("Button with this name not exists");this.buttons[n]._button.actions=t,this.changeControlOrder()},setButtonDisabled:function(e,t){var n=this._btnNameMapping(e);t?this.buttons[n].disable():this.buttons[n].enable()},_shapeMapping:function(){return{Marker:"drawMarker",Circle:"drawCircle",Polygon:"drawPolygon",Rectangle:"drawRectangle",Polyline:"drawPolyline",Line:"drawPolyline",CircleMarker:"drawCircleMarker",Edit:"editMode",Drag:"dragMode",Cut:"cutPolygon",Removal:"removalMode",Rotate:"rotateMode",Text:"drawText"}},_btnNameMapping:function(e){var t=this._shapeMapping();return t[e]?t[e]:e}});function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re={_initSnappableMarkers:function(){this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=void 0===this.options.snapSegment||this.options.snapSegment,this._assignEvents(this._markers),this._layer.off("pm:dragstart",this._unsnap,this),this._layer.on("pm:dragstart",this._unsnap,this)},_disableSnapping:function(){this._layer.off("pm:dragstart",this._unsnap,this)},_assignEvents:function(e){var t=this;e.forEach((function(e){Array.isArray(e)?t._assignEvents(e):(e.off("drag",t._handleSnapping,t),e.on("drag",t._handleSnapping,t),e.off("dragend",t._cleanupSnapping,t),e.on("dragend",t._cleanupSnapping,t))}))},_cleanupSnapping:function(){delete this._snapList,this.throttledList&&(this._map.off("layeradd",this.throttledList,this),this.throttledList=void 0),this._map.off("pm:remove",this._handleSnapLayerRemoval,this),this.debugIndicatorLines&&this.debugIndicatorLines.forEach((function(e){e.remove()}))},_handleThrottleSnapping:function(){this.throttledList&&this._createSnapList()},_handleSnapping:function(e){var t=this,n=e.target;if(n._snapped=!1,this.throttledList||(this.throttledList=L.Util.throttle(this._handleThrottleSnapping,100,this)),this._map.pm.Keyboard.isAltKeyPressed())return!1;if(void 0===this._snapList&&(this._createSnapList(),this._map.off("layeradd",this.throttledList,this),this._map.on("layeradd",this.throttledList,this)),this._snapList.length<=0)return!1;var r,i=this._calcClosestLayer(n.getLatLng(),this._snapList);if(0===Object.keys(i).length)return!1;r=i.layer instanceof L.Marker||i.layer instanceof L.CircleMarker||!this.options.snapSegment?i.latlng:this._checkPrioritiySnapping(i);var o=this.options.snapDistance,a={marker:n,shape:this._shape,snapLatLng:r,segment:i.segment,layer:this._layer,workingLayer:this._layer,layerInteractedWith:i.layer,distance:i.distance};if(this._fireSnapDrag(a.marker,a),this._fireSnapDrag(this._layer,a),i.distance<o){n._orgLatLng=n.getLatLng(),n.setLatLng(r),n._snapped=!0,n._snapInfo=a;var s=this._snapLatLng||{},l=r||{};s.lat===l.lat&&s.lng===l.lng||(t._snapLatLng=r,t._fireSnap(n,a),t._fireSnap(t._layer,a))}else this._snapLatLng&&(this._unsnap(a),n._snapped=!1,this._fireUnsnap(a.marker,a),this._fireUnsnap(this._layer,a));return!0},_createSnapList:function(){var e=this,t=[],n=[],r=this._map;r.off("pm:remove",this._handleSnapLayerRemoval,this),r.on("pm:remove",this._handleSnapLayerRemoval,this),r.eachLayer((function(e){if((e instanceof L.Polyline||e instanceof L.Marker||e instanceof L.CircleMarker||e instanceof L.ImageOverlay)&&!0!==e.options.snapIgnore){if(void 0===e.options.snapIgnore&&(!L.PM.optIn&&!0===e.options.pmIgnore||L.PM.optIn&&!1!==e.options.pmIgnore))return;(e instanceof L.Circle||e instanceof L.CircleMarker)&&e.pm&&e.pm._hiddenPolyCircle?t.push(e.pm._hiddenPolyCircle):e instanceof L.ImageOverlay&&(e=L.rectangle(e.getBounds())),t.push(e);var r=L.polyline([],{color:"red",pmIgnore:!0});r._pmTempLayer=!0,n.push(r),(e instanceof L.Circle||e instanceof L.CircleMarker)&&n.push(r)}})),t=(t=(t=t.filter((function(t){return e._layer!==t}))).filter((function(e){return e._latlng||e._latlngs&&A(e._latlngs)}))).filter((function(e){return!e._pmTempLayer})),this._otherSnapLayers?(this._otherSnapLayers.forEach((function(){var e=L.polyline([],{color:"red",pmIgnore:!0});e._pmTempLayer=!0,n.push(e)})),this._snapList=t.concat(this._otherSnapLayers)):this._snapList=t,this.debugIndicatorLines=n},_handleSnapLayerRemoval:function(e){var t=e.layer,n=this._snapList.findIndex((function(e){return e._leaflet_id===t._leaflet_id}));this._snapList.splice(n,1)},_calcClosestLayer:function(e,t){var n=this,r=[],i={};return t.forEach((function(t,o){if(!t._parentCopy||t._parentCopy!==n._layer){var a=n._calcLayerDistances(e,t);a.distance=Math.floor(a.distance),n.debugIndicatorLines[o]&&n.debugIndicatorLines[o].setLatLngs([e,a.latlng]),(void 0===i.distance||a.distance<=i.distance)&&(a.distance<i.distance&&(r=[]),(i=a).layer=t,r.push(i))}})),this._getClosestLayerByPriority(r)},_calcLayerDistances:function(e,t){var n,r,i,o=this,a=this._map,s=t instanceof L.Marker||t instanceof L.CircleMarker,l=t instanceof L.Polygon,c=e,u=s?t.getLatLng():t.getLatLngs();return s?{latlng:te({},u),distance:this._getDistance(a,u,c)}:(function e(t){t.forEach((function(s,u){if(Array.isArray(s))e(s);else if(o.options.snapSegment){var d,p=s;d=l?u+1===t.length?0:u+1:u+1===t.length?void 0:u+1;var h=t[d];if(h){var f=o._getDistanceToSegment(a,c,p,h);(void 0===r||f<r)&&(r=f,i=[p,h])}}else{var m=o._getDistance(a,c,s);(void 0===r||m<r)&&(r=m,n=s)}}))}(u),this.options.snapSegment?{latlng:te({},this._getClosestPointOnSegment(a,e,i[0],i[1])),segment:i,distance:r}:{latlng:n,distance:r})},_getClosestLayerByPriority:function(e){e=e.sort((function(e,t){return e._leaflet_id-t._leaflet_id}));var t=this._map.pm.globalOptions.snappingOrder||[],n=0,r={};return t.concat(["Marker","CircleMarker","Circle","Line","Polygon","Rectangle"]).forEach((function(e){r[e]||(n+=1,r[e]=n)})),e.sort(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";if(!t||0===Object.keys(t).length)return function(e,t){return e-t};for(var r,i=Object.keys(t),o=i.length-1,a={};o>=0;)r=i[o],a[r.toLowerCase()]=t[r],o-=1;function s(e){return e instanceof L.Marker?"Marker":e instanceof L.Circle?"Circle":e instanceof L.CircleMarker?"CircleMarker":e instanceof L.Rectangle?"Rectangle":e instanceof L.Polygon?"Polygon":e instanceof L.Polyline?"Line":void 0}return function(t,r){var i,o;if("instanceofShape"===e){if(i=s(t.layer).toLowerCase(),o=s(r.layer).toLowerCase(),!i||!o)return 0}else{if(!t.hasOwnProperty(e)||!r.hasOwnProperty(e))return 0;i=t[e].toLowerCase(),o=r[e].toLowerCase()}var l=i in a?a[i]:Number.MAX_SAFE_INTEGER,c=o in a?a[o]:Number.MAX_SAFE_INTEGER,u=0;return l<c?u=-1:l>c&&(u=1),"desc"===n?-1*u:u}}("instanceofShape",r)),e[0]||{}},_checkPrioritiySnapping:function(e){var t=this._map,n=e.segment[0],r=e.segment[1],i=e.latlng,o=this._getDistance(t,n,i),a=this._getDistance(t,r,i),s=o<a?n:r,l=o<a?o:a;if(this.options.snapMiddle){var c=L.PM.Utils.calcMiddleLatLng(t,n,r),u=this._getDistance(t,c,i);u<o&&u<a&&(s=c,l=u)}return te({},l<this.options.snapDistance?s:i)},_unsnap:function(){delete this._snapLatLng},_getClosestPointOnSegment:function(e,t,n,r){var i=e.getMaxZoom();i===1/0&&(i=e.getZoom());var o=e.project(t,i),a=e.project(n,i),s=e.project(r,i),l=L.LineUtil.closestPointOnSegment(o,a,s);return e.unproject(l,i)},_getDistanceToSegment:function(e,t,n,r){var i=e.latLngToLayerPoint(t),o=e.latLngToLayerPoint(n),a=e.latLngToLayerPoint(r);return L.LineUtil.pointToSegmentDistance(i,o,a)},_getDistance:function(e,t,n){return e.latLngToLayerPoint(t).distanceTo(e.latLngToLayerPoint(n))}};const ie=re,oe=L.Class.extend({includes:[ie,E],options:{snappable:!0,snapDistance:20,snapMiddle:!1,allowSelfIntersection:!0,tooltips:!0,templineStyle:{},hintlineStyle:{color:"#3388ff",dashArray:"5,5"},pathOptions:null,cursorMarker:!0,finishOn:null,markerStyle:{draggable:!0,icon:L.icon()},hideMiddleMarkers:!1,minRadiusCircle:null,maxRadiusCircle:null,minRadiusCircleMarker:null,maxRadiusCircleMarker:null,editable:!1,markerEditable:!0,continueDrawing:!1,snapSegment:!0,requireSnapToFinish:!1},setOptions:function(e){L.Util.setOptions(this,e)},getOptions:function(){return this.options},initialize:function(e){var t=this,n=new L.Icon.Default;n.options.tooltipAnchor=[0,0],this.options.markerStyle.icon=n,this._map=e,this.shapes=["Marker","CircleMarker","Line","Polygon","Rectangle","Circle","Cut","Text"],this.shapes.forEach((function(e){t[e]=new L.PM.Draw[e](t._map)})),this.Marker.setOptions({continueDrawing:!0}),this.CircleMarker.setOptions({continueDrawing:!0})},setPathOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.options.pathOptions=t?i()(this.options.pathOptions,e):e},getShapes:function(){return this.shapes},getShape:function(){return this._shape},enable:function(e,t){if(!e)throw new Error("Error: Please pass a shape as a parameter. Possible shapes are: ".concat(this.getShapes().join(",")));this.disable(),this[e].enable(t)},disable:function(){var e=this;this.shapes.forEach((function(t){e[t].disable()}))},addControls:function(){var e=this;this.shapes.forEach((function(t){e[t].addButton()}))},getActiveShape:function(){var e,t=this;return this.shapes.forEach((function(n){t[n]._enabled&&(e=n)})),e},_setGlobalDrawMode:function(){"Cut"===this._shape?this._fireGlobalCutModeToggled():this._fireGlobalDrawModeToggled();var e=L.PM.Utils.findLayers(this._map);this._enabled?e.forEach((function(e){L.PM.Utils.disablePopup(e)})):e.forEach((function(e){L.PM.Utils.enablePopup(e)}))},createNewDrawInstance:function(e,t){var n=this._getShapeFromBtnName(t);if(this[e])throw new TypeError("Draw Type already exists");if(!L.PM.Draw[n])throw new TypeError("There is no class L.PM.Draw.".concat(n));return this[e]=new L.PM.Draw[n](this._map),this[e].toolbarButtonName=e,this[e]._shape=e,this.shapes.push(e),this[t]&&this[e].setOptions(this[t].options),this[e].setOptions(this[e].options),this[e]},_getShapeFromBtnName:function(e){var t={drawMarker:"Marker",drawCircle:"Circle",drawPolygon:"Polygon",drawPolyline:"Line",drawRectangle:"Rectangle",drawCircleMarker:"CircleMarker",editMode:"Edit",dragMode:"Drag",cutPolygon:"Cut",removalMode:"Removal",rotateMode:"Rotate",drawText:"Text"};return t[e]?t[e]:this[e]?this[e]._shape:e},_finishLayer:function(e){e.pm&&(e.pm.setOptions(this.options),e.pm._shape=this._shape,e.pm._map=this._map),this._addDrawnLayerProp(e)},_addDrawnLayerProp:function(e){e._drawnByGeoman=!0},_setPane:function(e,t){"layerPane"===t?e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":"vertexPane"===t?e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":"markerPane"===t&&(e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},_isFirstLayer:function(){return 0===(this._map||this._layer._map).pm.getGeomanLayers().length}});oe.Marker=oe.extend({initialize:function(e){this._map=e,this._shape="Marker",this.toolbarButtonName="drawMarker"},enable:function(e){var t=this;L.Util.setOptions(this,e),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.marker([0,0],this.options.markerStyle),this._setPane(this._hintMarker,"markerPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.placeMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this.options.markerEditable&&this._map.eachLayer((function(e){t.isRelevantMarker(e)&&e.pm.enable()})),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){var e=this;this._enabled&&(this._enabled=!1,this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.eachLayer((function(t){e.isRelevantMarker(t)&&t.pm.disable()})),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},isRelevantMarker:function(e){return e instanceof L.Marker&&e.pm&&!e._pmTempLayer&&!e.pm._initTextMarker},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}this._fireChange(this._hintMarker.getLatLng(),"Draw")},_createMarker:function(e){if(e.latlng&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng(),n=new L.Marker(t,this.options.markerStyle);this._setPane(n,"markerPane"),this._finishLayer(n),n.pm||(n.options.draggable=!1),n.addTo(this._map.pm._getContainingLayer()),n.pm&&this.options.markerEditable?n.pm.enable():n.dragging&&n.dragging.disable(),this._fireCreate(n),this._cleanupSnapping(),this.options.continueDrawing||this.disable()}}});var ae=6371008.8,se={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260.511392,inches:39.37*ae,kilometers:6371.0088,kilometres:6371.0088,meters:ae,metres:ae,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:ae/1852,radians:1,yards:6967335.223679999};function le(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function ce(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!fe(e[0])||!fe(e[1]))throw new Error("coordinates must contain numbers");return le({type:"Point",coordinates:e},t,n)}function ue(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return le({type:"LineString",coordinates:e},t,n)}function de(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function pe(e){return e%(2*Math.PI)*180/Math.PI}function he(e){return e%360*Math.PI/180}function fe(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function me(e){var t,n,r={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===e.type?e.geometry:e).type)t=[n.coordinates];else if("MultiLineString"===n.type)t=n.coordinates;else if("MultiPolygon"===n.type)t=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=n.coordinates}return t.forEach((function(e){t.forEach((function(t){for(var n=0;n<e.length-1;n++)for(var i=n;i<t.length-1;i++){if(e===t){if(1===Math.abs(n-i))continue;if(0===n&&i===e.length-2&&e[n][0]===e[e.length-1][0]&&e[n][1]===e[e.length-1][1])continue}var o=ge(e[n][0],e[n][1],e[n+1][0],e[n+1][1],t[i][0],t[i][1],t[i+1][0],t[i+1][1]);o&&r.features.push(ce([o[0],o[1]]))}}))})),r}function ge(e,t,n,r,i,o,a,s){var l,c,u,d,p={x:null,y:null,onLine1:!1,onLine2:!1};return 0===(l=(s-o)*(n-e)-(a-i)*(r-t))?null!==p.x&&null!==p.y&&p:(d=(n-e)*(c=t-o)-(r-t)*(u=e-i),c=((a-i)*c-(s-o)*u)/l,u=d/l,p.x=e+c*(n-e),p.y=t+c*(r-t),c>=0&&c<=1&&(p.onLine1=!0),u>=0&&u<=1&&(p.onLine2=!0),!(!p.onLine1||!p.onLine2)&&[p.x,p.y])}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ce(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Se(e){return"Feature"===e.type?e.geometry:e}function Me(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}function Te(e,t,n){if(null!==e)for(var r,i,o,a,s,l,c,u,d=0,p=0,h=e.type,f="FeatureCollection"===h,m="Feature"===h,g=f?e.features.length:1,y=0;y<g;y++){s=(u=!!(c=f?e.features[y].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var v=0;v<s;v++){var b=0,_=0;if(null!==(a=u?c.geometries[v]:c)){l=a.coordinates;var w=a.type;switch(d=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(l,p,y,b,_))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===t(l[r],p,y,b,_))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(i=0;i<l[r].length-d;i++){if(!1===t(l[r][i],p,y,b,_))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(_=0,i=0;i<l[r].length;i++){for(o=0;o<l[r][i].length-d;o++){if(!1===t(l[r][i][o],p,y,b,_))return!1;p++}_++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Te(a.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ee(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function Pe(e,t){!function(e,t){var n,r,i,o,a,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}(e,(function(e,n,r,i,o){var a,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(le(e,r,{bbox:i,id:o}),n,0)&&void 0}switch(s){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var l=0;l<e.coordinates.length;l++){var c=e.coordinates[l];if(!1===t(le({type:a,coordinates:c},r),n,l))return!1}}))}oe.Line=oe.extend({initialize:function(e){this._map=e,this._shape="Line",this.toolbarButtonName="drawPolyline",this._doesSelfIntersect=!1},enable:function(e){L.Util.setOptions(this,e),this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.polyline([],this.options.templineStyle),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._layerGroup.addLayer(this._layer),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._hintMarker=L.marker(this._map.getCenter(),{interactive:!1,zIndexOffset:100,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._map._container.style.cursor="crosshair",this._map.on("click",this._createVertex,this),this.options.finishOn&&"snap"!==this.options.finishOn&&this._map.on(this.options.finishOn,this._finishShape,this),"dblclick"===this.options.finishOn&&(this.tempMapDoubleClickZoomState=this._map.doubleClickZoom._enabled,this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.disable()),this._map.on("mousemove",this._syncHintMarker,this),this._hintMarker.on("move",this._syncHintLine,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._createVertex,this),this._map.off("mousemove",this._syncHintMarker,this),this.options.finishOn&&"snap"!==this.options.finishOn&&this._map.off(this.options.finishOn,this._finishShape,this),this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.enable(),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_syncHintLine:function(){var e=this._layer.getLatLngs();if(e.length>0){var t=e[e.length-1];this._hintline.setLatLngs([t,this._hintMarker.getLatLng()])}},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}this.options.allowSelfIntersection||this._handleSelfIntersection(!0,e.latlng);var n=this._layer._defaultShape().slice();n.push(this._hintMarker.getLatLng()),this._change(n)},hasSelfIntersection:function(){return me(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersection:function(e,t){var n=L.polyline(this._layer.getLatLngs());e&&(t||(t=this._hintMarker.getLatLng()),n.addLatLng(t));var r=me(n.toGeoJSON(15));this._doesSelfIntersect=r.features.length>0,this._doesSelfIntersect?this._hintline.setStyle({color:"#f00000ff"}):this._hintline.isEmpty()||this._hintline.setStyle(this.options.hintlineStyle)},_createVertex:function(e){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,e.latlng),!this._doesSelfIntersect)){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();if(t.equals(this._layer.getLatLngs()[0]))this._finishShape(e);else{this._layer._latlngInfo=this._layer._latlngInfo||[],this._layer._latlngInfo.push({latlng:t,snapInfo:this._hintMarker._snapInfo}),this._layer.addLatLng(t);var n=this._createMarker(t);this._setTooltipText(),this._hintline.setLatLngs([t,t]),this._fireVertexAdded(n,void 0,t,"Draw"),this._change(this._layer.getLatLngs()),"snap"===this.options.finishOn&&this._hintMarker._snapped&&this._finishShape(e)}}},_removeLastVertex:function(){var e=this._layer.getLatLngs(),t=e.pop();if(e.length<1)this.disable();else{var n=this._layerGroup.getLayers().filter((function(e){return e instanceof L.Marker})).filter((function(e){return!L.DomUtil.hasClass(e._icon,"cursor-marker")})).find((function(e){return e.getLatLng()===t})),r=this._layerGroup.getLayers().filter((function(e){return e instanceof L.Marker})),i=L.PM.Utils.findDeepMarkerIndex(r,n).indexPath;this._layerGroup.removeLayer(n),this._layer.setLatLngs(e),this._syncHintLine(),this._setTooltipText(),this._fireVertexRemoved(n,i,"Draw"),this._change(this._layer.getLatLngs())}},_finishShape:function(){if((this.options.allowSelfIntersection||(this._handleSelfIntersection(!1),!this._doesSelfIntersect))&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){var e=this._layer.getLatLngs();if(!(e.length<=1)){var t=L.polyline(e,this.options.pathOptions);this._setPane(t,"layerPane"),this._finishLayer(t),t.addTo(this._map.pm._getContainingLayer()),this._fireCreate(t),this.options.snappable&&this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()}}},_createMarker:function(e){var t=new L.Marker(e,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(t,"vertexPane"),t._pmTempLayer=!0,this._layerGroup.addLayer(t),t.on("click",this._finishShape,this),t},_setTooltipText:function(){var e;e=D(this._layer.getLatLngs().flat().length<=1?"tooltips.continueLine":"tooltips.finishLine"),this._hintMarker.setTooltipContent(e)},_change:function(e){this._fireChange(e,"Draw")}}),oe.Polygon=oe.Line.extend({initialize:function(e){this._map=e,this._shape="Polygon",this.toolbarButtonName="drawPolygon"},_createMarker:function(e){var t=new L.Marker(e,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(t,"vertexPane"),t._pmTempLayer=!0,this._layerGroup.addLayer(t),1===this._layer.getLatLngs().flat().length?(t.on("click",this._finishShape,this),this._tempSnapLayerIndex=this._otherSnapLayers.push(t)-1,this.options.snappable&&this._cleanupSnapping()):t.on("click",(function(){return 1})),t},_setTooltipText:function(){var e;e=D(this._layer.getLatLngs().flat().length<=2?"tooltips.continueLine":"tooltips.finishPoly"),this._hintMarker.setTooltipContent(e)},_finishShape:function(){if((this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,this._layer.getLatLngs()[0]),!this._doesSelfIntersect))&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){var e=this._layer.getLatLngs();if(!(e.length<=2)){var t=L.polygon(e,this.options.pathOptions);this._setPane(t,"layerPane"),this._finishLayer(t),t.addTo(this._map.pm._getContainingLayer()),this._fireCreate(t),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex,this.disable(),this.options.continueDrawing&&this.enable()}}}}),oe.Rectangle=oe.extend({initialize:function(e){this._map=e,this._shape="Rectangle",this.toolbarButtonName="drawRectangle"},enable:function(e){if(L.Util.setOptions(this,e),this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.rectangle([[0,0],[0,0]],this.options.pathOptions),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._startMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon rect-start-marker"}),draggable:!1,zIndexOffset:-100,opacity:this.options.cursorMarker?1:0}),this._setPane(this._startMarker,"vertexPane"),this._startMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._startMarker),this._hintMarker=L.marker([0,0],{zIndexOffset:150,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this.options.cursorMarker){L.DomUtil.addClass(this._hintMarker._icon,"visible"),this._styleMarkers=[];for(var t=0;t<2;t+=1){var n=L.marker([0,0],{icon:L.divIcon({className:"marker-icon rect-style-marker"}),draggable:!1,zIndexOffset:100});this._setPane(n,"vertexPane"),n._pmTempLayer=!0,this._layerGroup.addLayer(n),this._styleMarkers.push(n)}}this._map._container.style.cursor="crosshair",this._map.on("click",this._placeStartingMarkers,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeStartingMarkers,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_placeStartingMarkers:function(e){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();L.DomUtil.addClass(this._startMarker._icon,"visible"),this._startMarker.setLatLng(t),this.options.cursorMarker&&this._styleMarkers&&this._styleMarkers.forEach((function(e){L.DomUtil.addClass(e._icon,"visible"),e.setLatLng(t)})),this._map.off("click",this._placeStartingMarkers,this),this._map.on("click",this._finishShape,this),this._hintMarker.setTooltipContent(D("tooltips.finishRect")),this._setRectangleOrigin()},_setRectangleOrigin:function(){var e=this._startMarker.getLatLng();e&&(this._layerGroup.addLayer(this._layer),this._layer.setLatLngs([e,e]),this._hintMarker.on("move",this._syncRectangleSize,this))},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}var n=this._layerGroup&&this._layerGroup.hasLayer(this._layer)?this._layer.getLatLngs():[this._hintMarker.getLatLng()];this._fireChange(n,"Draw")},_syncRectangleSize:function(){var e=this,t=$(this._startMarker.getLatLng(),this._map),n=$(this._hintMarker.getLatLng(),this._map),r=L.PM.Utils._getRotatedRectangle(t,n,this.options.rectangleAngle||0,this._map);if(this._layer.setLatLngs(r),this.options.cursorMarker&&this._styleMarkers){var i=[];r.forEach((function(e){e.equals(t,1e-8)||e.equals(n,1e-8)||i.push(e)})),i.forEach((function(t,n){try{e._styleMarkers[n].setLatLng(t)}catch(r){}}))}},_findCorners:function(){var e=this._layer.getBounds();return[e.getNorthWest(),e.getNorthEast(),e.getSouthEast(),e.getSouthWest()]},_finishShape:function(e){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng(),n=this._startMarker.getLatLng();if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){var r=L.rectangle([n,t],this.options.pathOptions);if(this.options.rectangleAngle){var i=L.PM.Utils._getRotatedRectangle(n,t,this.options.rectangleAngle||0,this._map);r.setLatLngs(i),r.pm&&r.pm._setAngle(this.options.rectangleAngle||0)}this._setPane(r,"layerPane"),this._finishLayer(r),r.addTo(this._map.pm._getContainingLayer()),this._fireCreate(r),this.disable(),this.options.continueDrawing&&this.enable()}}}),oe.Circle=oe.extend({initialize:function(e){this._map=e,this._shape="Circle",this.toolbarButtonName="drawCircle"},enable:function(e){L.Util.setOptions(this,e),this.options.radius=0,this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.circle([0,0],ve(ve({},this.options.templineStyle),{},{radius:0})),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._centerMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon"}),draggable:!1,zIndexOffset:100}),this._setPane(this._centerMarker,"vertexPane"),this._centerMarker._pmTempLayer=!0,this._hintMarker=L.marker([0,0],{zIndexOffset:110,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.startCircle"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._map._container.style.cursor="crosshair",this._map.on("click",this._placeCenterMarker,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeCenterMarker,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_syncHintLine:function(){var e=this._centerMarker.getLatLng(),t=this._getNewDestinationOfHintMarker();this._hintline.setLatLngs([e,t])},_syncCircleRadius:function(){var e,t=this._centerMarker.getLatLng(),n=this._hintMarker.getLatLng();e=this._map.options.crs===L.CRS.Simple?this._map.distance(t,n):t.distanceTo(n),this.options.minRadiusCircle&&e<this.options.minRadiusCircle?this._layer.setRadius(this.options.minRadiusCircle):this.options.maxRadiusCircle&&e>this.options.maxRadiusCircle?this._layer.setRadius(this.options.maxRadiusCircle):this._layer.setRadius(e)},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker()),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}this._handleHintMarkerSnapping();var n=this._layerGroup&&this._layerGroup.hasLayer(this._centerMarker)?this._centerMarker.getLatLng():this._hintMarker.getLatLng();this._fireChange(n,"Draw")},_placeCenterMarker:function(e){this._layerGroup.addLayer(this._layer),this._layerGroup.addLayer(this._centerMarker),this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();this._layerGroup.addLayer(this._layer),this._centerMarker.setLatLng(t),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter:function(){var e=this._centerMarker.getLatLng();e&&(this._layer.setLatLng(e),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(D("tooltips.finishCircle")),this._fireCenterPlaced(),this._fireChange(this._layer.getLatLng(),"Draw"))},_finishShape:function(e){if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t,n=this._centerMarker.getLatLng(),r=this._hintMarker.getLatLng();t=this._map.options.crs===L.CRS.Simple?this._map.distance(n,r):n.distanceTo(r),this.options.minRadiusCircle&&t<this.options.minRadiusCircle?t=this.options.minRadiusCircle:this.options.maxRadiusCircle&&t>this.options.maxRadiusCircle&&(t=this.options.maxRadiusCircle);var i=ve(ve({},this.options.pathOptions),{},{radius:t}),o=L.circle(n,i);this._setPane(o,"layerPane"),this._finishLayer(o),o.addTo(this._map.pm._getContainingLayer()),o.pm&&o.pm._updateHiddenPolyCircle(),this._fireCreate(o),this.disable(),this.options.continueDrawing&&this.enable()}},_getNewDestinationOfHintMarker:function(){var e=this._centerMarker.getLatLng(),t=this._hintMarker.getLatLng(),n=e.distanceTo(t);return e.equals(L.latLng([0,0]))||(this.options.minRadiusCircle&&n<this.options.minRadiusCircle?t=B(this._map,e,t,this.options.minRadiusCircle):this.options.maxRadiusCircle&&n>this.options.maxRadiusCircle&&(t=B(this._map,e,t,this.options.maxRadiusCircle))),t},_handleHintMarkerSnapping:function(){if(this._hintMarker._snapped){var e=this._centerMarker.getLatLng(),t=this._hintMarker.getLatLng(),n=e.distanceTo(t);e.equals(L.latLng([0,0]))||(this.options.minRadiusCircle&&n<this.options.minRadiusCircle||this.options.maxRadiusCircle&&n>this.options.maxRadiusCircle)&&this._hintMarker.setLatLng(this._hintMarker._orgLatLng)}this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker())}}),oe.CircleMarker=oe.Marker.extend({initialize:function(e){this._map=e,this._shape="CircleMarker",this.toolbarButtonName="drawCircleMarker",this._layerIsDragging=!1},enable:function(e){var t=this;if(L.Util.setOptions(this,e),this._enabled=!0,this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this.options.editable){var n={};L.setOptions(n,this.options.templineStyle),n.radius=0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.circleMarker([0,0],n),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._centerMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon"}),draggable:!1,zIndexOffset:100}),this._setPane(this._centerMarker,"vertexPane"),this._centerMarker._pmTempLayer=!0,this._hintMarker=L.marker([0,0],{zIndexOffset:110,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.startCircle"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._map.on("click",this._placeCenterMarker,this),this._map._container.style.cursor="crosshair"}else this._map.on("click",this._createMarker,this),this._hintMarker=L.circleMarker([0,0],this.options.templineStyle),this._setPane(this._hintMarker,"layerPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this._layer=this._hintMarker,this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.placeCircleMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip();this._map.on("mousemove",this._syncHintMarker,this),!this.options.editable&&this.options.markerEditable&&this._map.eachLayer((function(e){t.isRelevantMarker(e)&&e.pm.enable()})),this._layer.bringToBack(),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){var e=this;this._enabled&&(this._enabled=!1,this.options.editable?(this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeCenterMarker,this),this._map.removeLayer(this._layerGroup)):(this._map.off("click",this._createMarker,this),this._map.eachLayer((function(t){e.isRelevantMarker(t)&&t.pm.disable()})),this._hintMarker.remove()),this._map.off("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},_placeCenterMarker:function(e){this._layerGroup.addLayer(this._layer),this._layerGroup.addLayer(this._centerMarker),this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();this._layerGroup.addLayer(this._layer),this._centerMarker.setLatLng(t),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter:function(){var e=this._centerMarker.getLatLng();e&&(this._layer.setLatLng(e),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(D("tooltips.finishCircle")),this._fireCenterPlaced(),this._fireChange(this._layer.getLatLng(),"Draw"))},_syncHintLine:function(){var e=this._centerMarker.getLatLng(),t=this._getNewDestinationOfHintMarker();this._hintline.setLatLngs([e,t])},_syncCircleRadius:function(){var e=this._centerMarker.getLatLng(),t=this._hintMarker.getLatLng(),n=this._map.project(e).distanceTo(this._map.project(t));this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker?this._layer.setRadius(this.options.minRadiusCircleMarker):this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker?this._layer.setRadius(this.options.maxRadiusCircleMarker):this._layer.setRadius(n)},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker()),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}this._handleHintMarkerSnapping();var n=this._layerGroup&&this._layerGroup.hasLayer(this._centerMarker)?this._centerMarker.getLatLng():this._hintMarker.getLatLng();this._fireChange(n,"Draw")},isRelevantMarker:function(e){return e instanceof L.CircleMarker&&!(e instanceof L.Circle)&&e.pm&&!e._pmTempLayer},_createMarker:function(e){if((!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())&&e.latlng&&!this._layerIsDragging){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng(),n=L.circleMarker(t,this.options.pathOptions);this._setPane(n,"layerPane"),this._finishLayer(n),n.addTo(this._map.pm._getContainingLayer()),n.pm&&this.options.markerEditable&&n.pm.enable(),this._fireCreate(n),this._cleanupSnapping(),this.options.continueDrawing||this.disable()}},_finishShape:function(e){if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._centerMarker.getLatLng(),n=this._hintMarker.getLatLng(),r=this._map.project(t).distanceTo(this._map.project(n));this.options.editable&&(this.options.minRadiusCircleMarker&&r<this.options.minRadiusCircleMarker?r=this.options.minRadiusCircleMarker:this.options.maxRadiusCircleMarker&&r>this.options.maxRadiusCircleMarker&&(r=this.options.maxRadiusCircleMarker));var i=we(we({},this.options.pathOptions),{},{radius:r}),o=L.circleMarker(t,i);this._setPane(o,"layerPane"),this._finishLayer(o),o.addTo(this._map.pm._getContainingLayer()),o.pm&&o.pm._updateHiddenPolyCircle(),this._fireCreate(o),this.disable(),this.options.continueDrawing&&this.enable()}},_getNewDestinationOfHintMarker:function(){var e=this._hintMarker.getLatLng();if(this.options.editable){var t=this._centerMarker.getLatLng();if(t.equals(L.latLng([0,0])))return e;var n=this._map.project(t).distanceTo(this._map.project(e));this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker?e=B(this._map,t,e,this._pxRadiusToMeter(this.options.minRadiusCircleMarker)):this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker&&(e=B(this._map,t,e,this._pxRadiusToMeter(this.options.maxRadiusCircleMarker)))}return e},_handleHintMarkerSnapping:function(){if(this.options.editable){if(this._hintMarker._snapped){var e=this._centerMarker.getLatLng(),t=this._hintMarker.getLatLng(),n=this._map.project(e).distanceTo(this._map.project(t));(this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker||this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker)&&this._hintMarker.setLatLng(this._hintMarker._orgLatLng)}this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker())}},_pxRadiusToMeter:function(e){var t=this._centerMarker.getLatLng(),n=this._map.project(t),r=L.point(n.x+e,n.y);return this._map.unproject(r).distanceTo(t)}});const Ie=function(e){if(!e)throw new Error("geojson is required");var t=[];return Pe(e,(function(e){!function(e,t){var n=[],r=e.geometry;if(null!==r){switch(r.type){case"Polygon":n=Ce(r);break;case"LineString":n=[Ce(r)]}n.forEach((function(n){var r=function(e,t){var n=[];return e.reduce((function(e,r){var i,o,a,s,l,c,u=ue([e,r],t);return u.bbox=(o=r,a=(i=e)[0],s=i[1],[a<(l=o[0])?a:l,s<(c=o[1])?s:c,a>l?a:l,s>c?s:c]),n.push(u),r})),n}(n,e.properties);r.forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),de(t)};var Oe=n(1787);function Le(e,t){var n=Ce(e),r=Ce(t);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==r.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=n[0][0],o=n[0][1],a=n[1][0],s=n[1][1],l=r[0][0],c=r[0][1],u=r[1][0],d=r[1][1],p=(d-c)*(a-i)-(u-l)*(s-o);if(0===p)return null;var h=((u-l)*(o-c)-(d-c)*(i-l))/p,f=((a-i)*(o-c)-(s-o)*(i-l))/p;return h>=0&&h<=1&&f>=0&&f<=1?ce([i+h*(a-i),o+h*(s-o)]):null}const Re=function(e,t){var n={},r=[];if("LineString"===e.type&&(e=le(e)),"LineString"===t.type&&(t=le(t)),"Feature"===e.type&&"Feature"===t.type&&null!==e.geometry&&null!==t.geometry&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=Le(e,t);return i&&r.push(i),de(r)}var o=Oe();return o.load(Ie(t)),Ee(Ie(e),(function(e){Ee(o.search(e),(function(t){var i=Le(e,t);if(i){var o=Ce(i).join(",");n[o]||(n[o]=!0,r.push(i))}}))})),de(r)},je=function(e,t,n){void 0===n&&(n={});var r=ke(e),i=ke(t),o=he(i[1]-r[1]),a=he(i[0]-r[0]),s=he(r[1]),l=he(i[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return function(e,t){void 0===t&&(t="kilometers");var n=se[t];if(!n)throw new Error(t+" units is invalid");return e*n}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)};function De(e){var t=[1/0,1/0,-1/0,-1/0];return Te(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}De.default=De;const Ae=De;function Ne(e,t,n){if(void 0===n&&(n={}),!0===n.final)return function(e,t){var n=Ne(t,e);return(n+180)%360}(e,t);var r=ke(e),i=ke(t),o=he(r[0]),a=he(i[0]),s=he(r[1]),l=he(i[1]),c=Math.sin(a-o)*Math.cos(l),u=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-o);return pe(Math.atan2(c,u))}function Fe(e,t,n,r){void 0===r&&(r={});var i=ke(e),o=he(i[0]),a=he(i[1]),s=he(n),l=function(e,t){void 0===t&&(t="kilometers");var n=se[t];if(!n)throw new Error(t+" units is invalid");return e/n}(t,r.units),c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(s));return ce([pe(o+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c))),pe(c)],r.properties)}const ze=function(e,t,n){void 0===n&&(n={});var r=ce([1/0,1/0],{dist:1/0}),i=0;return Pe(e,(function(e){for(var o=Ce(e),a=0;a<o.length-1;a++){var s=ce(o[a]);s.properties.dist=je(t,s,n);var l=ce(o[a+1]);l.properties.dist=je(t,l,n);var c=je(s,l,n),u=Math.max(s.properties.dist,l.properties.dist),d=Ne(s,l),p=Fe(t,u,d+90,n),h=Fe(t,u,d-90,n),f=Re(ue([p.geometry.coordinates,h.geometry.coordinates]),ue([s.geometry.coordinates,l.geometry.coordinates])),m=null;f.features.length>0&&((m=f.features[0]).properties.dist=je(t,m,n),m.properties.location=i+je(s,m,n)),s.properties.dist<r.properties.dist&&((r=s).properties.index=a,r.properties.location=i),l.properties.dist<r.properties.dist&&((r=l).properties.index=a+1,r.properties.location=i+c),m&&m.properties.dist<r.properties.dist&&((r=m).properties.index=a),i+=c}})),r};function Be(e,t){var n=[],r=Oe();return Pe(t,(function(t){if(n.forEach((function(e,t){e.id=t})),n.length){var i=r.search(t);if(i.features.length){var o=$e(t,i);n=n.filter((function(e){return e.id!==o.id})),r.remove(o),Ee(Ue(o,t),(function(e){n.push(e),r.insert(e)}))}}else(n=Ue(e,t).features).forEach((function(e){e.bbox||(e.bbox=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];if(je(e.slice(0,2),[r,n])>=je(e.slice(0,2),[t,i])){var o=(n+i)/2;return[t,o-(r-t)/2,r,o+(r-t)/2]}var a=(t+r)/2;return[a-(i-n)/2,n,a+(i-n)/2,i]}(Ae(e)))})),r.load(de(n))})),de(n)}function Ue(e,t){var n=[],r=Ce(e)[0],i=Ce(e)[e.geometry.coordinates.length-1];if(Ve(r,ke(t))||Ve(i,ke(t)))return de([e]);var o=Oe(),a=Ie(e);o.load(a);var s=o.search(t);if(!s.features.length)return de([e]);var l=$e(t,s),c=function(e,t,n){var r=n;return Ee(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r}(a,(function(e,r,i){var o=Ce(r)[1],a=ke(t);return i===l.id?(e.push(a),n.push(ue(e)),Ve(a,o)?[a]:[a,o]):(e.push(o),e)}),[r]);return c.length>1&&n.push(ue(c)),de(n)}function $e(e,t){if(!t.features.length)throw new Error("lines must contain features");if(1===t.features.length)return t.features[0];var n,r=1/0;return Ee(t,(function(t){var i=ze(t,e).properties.dist;i<r&&(n=t,r=i)})),n}function Ve(e,t){return e[0]===t[0]&&e[1]===t[1]}const qe=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var n=Me(e),r=Me(t);if("LineString"!==n)throw new Error("line must be LineString");if("FeatureCollection"===r)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===r)throw new Error("splitter cannot be a GeometryCollection");var i=function(e,t){void 0===t&&(t={});var n=t.precision,r=t.coordinates,i=t.mutate;if(n=void 0===n||null===n||isNaN(n)?6:n,r=void 0===r||null===r||isNaN(r)?3:r,!e)throw new Error("<geojson> is required");if("number"!=typeof n)throw new Error("<precision> must be a number");if("number"!=typeof r)throw new Error("<coordinates> must be a number");!1!==i&&void 0!==i||(e=JSON.parse(JSON.stringify(e)));var o=Math.pow(10,n);return Te(e,(function(e){!function(e,t,n){e.length>n&&e.splice(n,e.length);for(var r=0;r<e.length;r++)e[r]=Math.round(e[r]*t)/t}(e,o,r)})),e}(t,{precision:7});switch(r){case"Point":return Ue(e,i);case"MultiPoint":return Be(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Be(e,Re(e,i))}};function Ze(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=ke(e),i=Se(t),o=i.type,a=t.bbox,s=i.coordinates;if(a&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,a))return!1;"Polygon"===o&&(s=[s]);for(var l=!1,c=0;c<s.length&&!l;c++)if(He(r,s[c][0],n.ignoreBoundary)){for(var u=!1,d=1;d<s[c].length&&!u;)He(r,s[c][d],!n.ignoreBoundary)&&(u=!0),d++;u||(l=!0)}return l}function He(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;i<t.length;o=i++){var a=t[i][0],s=t[i][1],l=t[o][0],c=t[o][1];if(e[1]*(a-l)+s*(l-e[0])+c*(e[0]-a)==0&&(a-e[0])*(l-e[0])<=0&&(s-e[1])*(c-e[1])<=0)return!n;s>e[1]!=c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}function Ge(e,t,n,r,i){var o=n[0],a=n[1],s=e[0],l=e[1],c=t[0],u=t[1],d=c-s,p=u-l,h=(n[0]-s)*p-(n[1]-l)*d;if(null!==i){if(Math.abs(h)>i)return!1}else if(0!==h)return!1;return r?"start"===r?Math.abs(d)>=Math.abs(p)?d>0?s<o&&o<=c:c<=o&&o<s:p>0?l<a&&a<=u:u<=a&&a<l:"end"===r?Math.abs(d)>=Math.abs(p)?d>0?s<=o&&o<c:c<o&&o<=s:p>0?l<=a&&a<u:u<a&&a<=l:"both"===r&&(Math.abs(d)>=Math.abs(p)?d>0?s<o&&o<c:c<o&&o<s:p>0?l<a&&a<u:u<a&&a<l):Math.abs(d)>=Math.abs(p)?d>0?s<=o&&o<=c:c<=o&&o<=s:p>0?l<=a&&a<=u:u<=a&&a<=l}const We=function(e,t,n){void 0===n&&(n={});for(var r=ke(e),i=Ce(t),o=0;o<i.length-1;o++){var a=!1;if(n.ignoreEndVertices&&(0===o&&(a="start"),o===i.length-2&&(a="end"),0===o&&o+1===i.length-1&&(a="both")),Ge(i[o],i[o+1],r,a,"undefined"==typeof n.epsilon?null:n.epsilon))return!0}return!1};function Ye(e,t){return!(e[0]>t[0])&&!(e[2]<t[2])&&!(e[1]>t[1])&&!(e[3]<t[3])}function Ke(e,t){return e[0]===t[0]&&e[1]===t[1]}function Xe(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}var Je=n(2676),Qe=n.n(Je);function et(e){var t={type:"Feature"};return t.geometry=e,t}function tt(e){return"Feature"===e.type?e.geometry:e}function nt(e){return e.geometry.coordinates}function rt(e){return et({type:"Polygon",coordinates:e})}function it(e){return et({type:"MultiPolygon",coordinates:e})}function ot(e){return Array.isArray(e)?1+ot(e[0]):-1}function at(e){e instanceof L.Polyline&&(e=e.toGeoJSON(15));var t=nt(e),n=ot(t),r=[];return n>1?t.forEach((function(e){r.push(function(e){return et({type:"LineString",coordinates:e})}(e))})):r.push(e),r}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}oe.Cut=oe.Polygon.extend({initialize:function(e){this._map=e,this._shape="Cut",this.toolbarButtonName="cutPolygon"},_finishShape:function(){var e=this;if(this._editedLayers=[],this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,this._layer.getLatLngs()[0]),!this._doesSelfIntersect)){var t=this._layer.getLatLngs(),n=L.polygon(t,this.options.pathOptions);n._latlngInfos=this._layer._latlngInfo,this.cut(n),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex,this._editedLayers.forEach((function(t){var n=t.layer,r=t.originalLayer;e._fireCut(r,n,r),e._fireCut(e._map,n,r),r.pm._fireEdit()})),this._editedLayers=[],this.disable(),this.options.continueDrawing&&this.enable()}},cut:function(e){var t=this,n=this._map._layers,r=e._latlngInfos||[];Object.keys(n).map((function(e){return n[e]})).filter((function(e){return e.pm})).filter((function(e){return!e._pmTempLayer})).filter((function(e){return!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore})).filter((function(e){return e instanceof L.Polyline})).filter((function(t){return t!==e})).filter((function(e){return e.pm.options.allowCutting})).filter((function(e){return!(t.options.layersToCut&&L.Util.isArray(t.options.layersToCut)&&t.options.layersToCut.length>0)||t.options.layersToCut.indexOf(e)>-1})).filter((function(e){return!t._layerGroup.hasLayer(e)})).filter((function(t){try{var n=!!Re(e.toGeoJSON(15),t.toGeoJSON(15)).features.length>0;return n||t instanceof L.Polyline&&!(t instanceof L.Polygon)?n:(r=e.toGeoJSON(15),i=t.toGeoJSON(15),o=tt(r),a=tt(i),!(0===(s=Qe().intersection(o.coordinates,a.coordinates)).length||!(1===s.length?rt(s[0]):it(s))))}catch(l){return t instanceof L.Polygon&&console.error("You can't cut polygons with self-intersections"),!1}var r,i,o,a,s})).forEach((function(n){var i;if(n instanceof L.Polygon){var o=(i=L.polygon(n.getLatLngs())).getLatLngs();r.forEach((function(e){if(e&&e.snapInfo){var n=e.latlng,r=t._calcClosestLayer(n,[i]);if(r&&r.segment&&r.distance<t.options.snapDistance){var a=r.segment;if(a&&2===a.length){var s=L.PM.Utils._getIndexFromSegment(o,a),l=s.indexPath,c=s.parentPath,u=s.newIndex;(l.length>1?O()(o,c):o).splice(u,0,n)}}}}))}else i=n;var a=t._cutLayer(e,i),s=L.geoJSON(a,n.options);if(1===s.getLayers().length){var l=s.getLayers();s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l,1)[0]}t._setPane(s,"layerPane");var c=s.addTo(t._map.pm._getContainingLayer());if(c.pm.enable(n.pm.options),c.pm.disable(),n._pmTempLayer=!0,e._pmTempLayer=!0,n.remove(),n.removeFrom(t._map.pm._getContainingLayer()),e.remove(),e.removeFrom(t._map.pm._getContainingLayer()),c.getLayers&&0===c.getLayers().length&&t._map.pm.removeLayer({target:c}),c instanceof L.LayerGroup?(c.eachLayer((function(e){t._addDrawnLayerProp(e)})),t._addDrawnLayerProp(c)):t._addDrawnLayerProp(c),t.options.layersToCut&&L.Util.isArray(t.options.layersToCut)&&t.options.layersToCut.length>0){var u=t.options.layersToCut.indexOf(n);u>-1&&t.options.layersToCut.splice(u,1)}t._editedLayers.push({layer:c,originalLayer:n})}))},_cutLayer:function(e,t){var n,r,i,o,a,s,l=L.geoJSON();if(t instanceof L.Polygon)r=t.toGeoJSON(15),i=e.toGeoJSON(15),o=tt(r),a=tt(i),n=0===(s=Qe().difference(o.coordinates,a.coordinates)).length?null:1===s.length?rt(s[0]):it(s);else{var c=at(t);c.forEach((function(t){var n=qe(t,e.toGeoJSON(15));(n&&n.features.length>0?L.geoJSON(n):L.geoJSON(t)).getLayers().forEach((function(t){(function(e,t){var n=Se(e),r=Se(t),i=n.type,o=r.type,a=n.coordinates,s=r.coordinates;switch(i){case"Point":if("Point"===o)return Ke(a,s);throw new Error("feature2 "+o+" geometry not supported");case"MultiPoint":switch(o){case"Point":return function(e,t){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if(Ke(e.coordinates[n],t.coordinates)){r=!0;break}return r}(n,r);case"MultiPoint":return function(e,t){for(var n=0,r=t.coordinates;n<r.length;n++){for(var i=r[n],o=!1,a=0,s=e.coordinates;a<s.length;a++)if(Ke(i,s[a])){o=!0;break}if(!o)return!1}return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"Point":return We(r,n,{ignoreEndVertices:!0});case"LineString":return function(e,t){for(var n=!1,r=0,i=t.coordinates;r<i.length;r++){var o=i[r];if(We({type:"Point",coordinates:o},e,{ignoreEndVertices:!0})&&(n=!0),!We({type:"Point",coordinates:o},e,{ignoreEndVertices:!1}))return!1}return n}(n,r);case"MultiPoint":return function(e,t){for(var n=!1,r=0,i=t.coordinates;r<i.length;r++){var o=i[r];if(We(o,e,{ignoreEndVertices:!0})&&(n=!0),!We(o,e))return!1}return!!n}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Point":return Ze(r,n,{ignoreBoundary:!0});case"LineString":return function(e,t){var n=!1,r=0;if(!Ye(Ae(e),Ae(t)))return!1;for(;r<t.coordinates.length-1;r++)if(Ze({type:"Point",coordinates:Xe(t.coordinates[r],t.coordinates[r+1])},e,{ignoreBoundary:!0})){n=!0;break}return n}(n,r);case"Polygon":return function(e,t){if("Feature"===e.type&&null===e.geometry)return!1;if("Feature"===t.type&&null===t.geometry)return!1;if(!Ye(Ae(e),Ae(t)))return!1;for(var n=0,r=Se(t).coordinates;n<r.length;n++)for(var i=0,o=r[n];i<o.length;i++)if(!Ze(o[i],e))return!1;return!0}(n,r);case"MultiPoint":return function(e,t){for(var n=0,r=t.coordinates;n<r.length;n++)if(!Ze(r[n],e,{ignoreBoundary:!0}))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}})(e.toGeoJSON(15),t.toGeoJSON(15))||t.addTo(l)}))})),n=c.length>1?function(e){var t=[];return e.eachLayer((function(e){t.push(nt(e.toGeoJSON(15)))})),function(e){return et({type:"MultiLineString",coordinates:e})}(t)}(l):l.toGeoJSON(15)}return n},_change:L.Util.falseFn}),oe.Text=oe.extend({initialize:function(e){this._map=e,this._shape="Text",this.toolbarButtonName="drawText"},enable:function(e){L.Util.setOptions(this,e),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.marker(this._map.getCenter(),{interactive:!1,zIndexOffset:100,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(D("tooltips.placeText"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}},_createMarker:function(e){var t;if(e.latlng&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var n=this._hintMarker.getLatLng();if(this.textArea=this._createTextArea(),null!==(t=this.options.textOptions)&&void 0!==t&&t.className){var r,i=this.options.textOptions.className.split(" ");(r=this.textArea.classList).add.apply(r,function(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i))}var o=this._createTextIcon(this.textArea),a=new L.Marker(n,{textMarker:!0,_textMarkerOverPM:!0,icon:o});if(this._setPane(a,"markerPane"),this._finishLayer(a),a.pm||(a.options.draggable=!1),a.addTo(this._map.pm._getContainingLayer()),a.pm){var s,l,c,u,d;a.pm.textArea=this.textArea,L.setOptions(a.pm,{removeIfEmpty:null===(s=null===(l=this.options.textOptions)||void 0===l?void 0:l.removeIfEmpty)||void 0===s||s});var p=null===(c=null===(u=this.options.textOptions)||void 0===u?void 0:u.focusAfterDraw)||void 0===c||c;a.pm._createTextMarker(p),null!==(d=this.options.textOptions)&&void 0!==d&&d.text&&a.pm.setText(this.options.textOptions.text)}this._fireCreate(a),this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()}},_createTextArea:function(){var e=document.createElement("textarea");return e.autofocus=!0,e.readOnly=!0,e.classList.add("pm-textarea","pm-disabled"),e},_createTextIcon:function(e){return L.divIcon({className:"pm-text-marker",html:e})}});const ct={enableLayerDrag:function(){if(this.options.draggable&&this._layer._map){this.disable(),this._layerDragEnabled=!0,this._map||(this._map=this._layer._map),(this._layer instanceof L.Marker||this._layer instanceof L.ImageOverlay)&&L.DomEvent.on(this._getDOMElem(),"dragstart",this._stopDOMImageDrag),this._layer.dragging&&this._layer.dragging.disable(),this._tempDragCoord=null,V(this._layer)instanceof L.Canvas?(this._layer.on("mouseout",this.removeDraggingClass,this),this._layer.on("mouseover",this.addDraggingClass,this)):this.addDraggingClass(),this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!0;var e=this._getDOMElem();e&&(V(this._layer)instanceof L.Canvas?(this._layer.on("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._addTouchEvents(e)):L.DomEvent.on(e,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._fireDragEnable()}},disableLayerDrag:function(){this._layerDragEnabled=!1,V(this._layer)instanceof L.Canvas?(this._layer.off("mouseout",this.removeDraggingClass,this),this._layer.off("mouseover",this.addDraggingClass,this)):this.removeDraggingClass(),this._originalMapDragState&&this._dragging&&this._map.dragging.enable(),this._safeToCacheDragState=!1,this._layer.dragging&&this._layer.dragging.disable();var e=this._getDOMElem();e&&(V(this._layer)instanceof L.Canvas?(this._layer.off("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._removeTouchEvents(e)):L.DomEvent.off(e,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._layerDragged&&this._fireUpdate(),this._layerDragged=!1,this._fireDragDisable()},dragging:function(){return this._dragging},layerDragEnabled:function(){return!!this._layerDragEnabled},_simulateMouseDownEvent:function(e){var t=e.touches?e.touches[0]:e,n={originalEvent:t,target:this._layer};return n.containerPoint=this._map.mouseEventToContainerPoint(t),n.latlng=this._map.containerPointToLatLng(n.containerPoint),this._dragMixinOnMouseDown(n),!1},_simulateMouseMoveEvent:function(e){var t=e.touches?e.touches[0]:e,n={originalEvent:t,target:this._layer};return n.containerPoint=this._map.mouseEventToContainerPoint(t),n.latlng=this._map.containerPointToLatLng(n.containerPoint),this._dragMixinOnMouseMove(n),!1},_simulateMouseUpEvent:function(e){var t={originalEvent:e.touches?e.touches[0]:e,target:this._layer};return-1===e.type.indexOf("touch")&&(t.containerPoint=this._map.mouseEventToContainerPoint(e),t.latlng=this._map.containerPointToLatLng(t.containerPoint)),this._dragMixinOnMouseUp(t),!1},_dragMixinOnMouseDown:function(e){if(!(e.originalEvent.button>0)){this._overwriteEventIfItComesFromMarker(e);var t=e._fromLayerSync,n=this._syncLayers("_dragMixinOnMouseDown",e);this._layer instanceof L.Marker&&(!this.options.snappable||t||n?this._disableSnapping():this._initSnappableMarkers()),this._layer instanceof L.CircleMarker&&!(this._layer instanceof L.Circle)&&(!this.options.snappable||t||n?this._layer.pm.options.editable?this._layer.pm._disableSnapping():this._layer.pm._disableSnappingDrag():this._layer.pm.options.editable||this._initSnappableMarkersDrag()),this._safeToCacheDragState&&(this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!1),this._tempDragCoord=e.latlng,L.DomEvent.on(this._map.getContainer(),"touchend mouseup",this._simulateMouseUpEvent,this),L.DomEvent.on(this._map.getContainer(),"touchmove mousemove",this._simulateMouseMoveEvent,this)}},_dragMixinOnMouseMove:function(e){this._overwriteEventIfItComesFromMarker(e);var t=this._getDOMElem();this._syncLayers("_dragMixinOnMouseMove",e),this._dragging||(this._dragging=!0,L.DomUtil.addClass(t,"leaflet-pm-dragging"),this._layer instanceof L.Marker||this._layer.bringToFront(),this._originalMapDragState&&this._map.dragging.disable(),this._fireDragStart()),this._tempDragCoord||(this._tempDragCoord=e.latlng),this._onLayerDrag(e),this._layer instanceof L.CircleMarker&&this._layer.pm._updateHiddenPolyCircle()},_dragMixinOnMouseUp:function(e){var t=this,n=this._getDOMElem();return this._syncLayers("_dragMixinOnMouseUp",e),this._originalMapDragState&&this._map.dragging.enable(),this._safeToCacheDragState=!0,L.DomEvent.off(this._map.getContainer(),"touchmove mousemove",this._simulateMouseMoveEvent,this),L.DomEvent.off(this._map.getContainer(),"touchend mouseup",this._simulateMouseUpEvent,this),!!this._dragging&&(this._layer instanceof L.CircleMarker&&this._layer.pm._updateHiddenPolyCircle(),this._layerDragged=!0,window.setTimeout((function(){t._dragging=!1,n&&L.DomUtil.removeClass(n,"leaflet-pm-dragging"),t._fireDragEnd(),t._fireEdit()}),10),!0)},_onLayerDrag:function(e){var t=e.latlng,n=t.lat-this._tempDragCoord.lat,r=t.lng-this._tempDragCoord.lng,i=function e(t){return t.map((function(t){if(Array.isArray(t))return e(t);var i={lat:t.lat+n,lng:t.lng+r};return(t.alt||0===t.alt)&&(i.alt=t.alt),i}))};if(this._layer instanceof L.Circle||this._layer instanceof L.CircleMarker&&this._layer.options.editable){var o=i([this._layer.getLatLng()]);this._layer.setLatLng(o[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.CircleMarker||this._layer instanceof L.Marker){var a=this._layer.getLatLng();this._layer._snapped&&(a=this._layer._orgLatLng);var s=i([a]);this._layer.setLatLng(s[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.ImageOverlay){var l=i([this._layer.getBounds().getNorthWest(),this._layer.getBounds().getSouthEast()]);this._layer.setBounds(l),this._fireChange(this._layer.getBounds(),"Edit")}else{var c=i(this._layer.getLatLngs());this._layer.setLatLngs(c),this._fireChange(this._layer.getLatLngs(),"Edit")}this._tempDragCoord=t,e.layer=this._layer,this._fireDrag(e)},addDraggingClass:function(){var e=this._getDOMElem();e&&L.DomUtil.addClass(e,"leaflet-pm-draggable")},removeDraggingClass:function(){var e=this._getDOMElem();e&&L.DomUtil.removeClass(e,"leaflet-pm-draggable")},_getDOMElem:function(){var e=null;return this._layer._path?e=this._layer._path:this._layer._renderer&&this._layer._renderer._container?e=this._layer._renderer._container:this._layer._image?e=this._layer._image:this._layer._icon&&(e=this._layer._icon),e},_overwriteEventIfItComesFromMarker:function(e){e.target.getLatLng&&(!e.target._radius||e.target._radius<=10)&&(e.containerPoint=this._map.mouseEventToContainerPoint(e.originalEvent),e.latlng=this._map.containerPointToLatLng(e.containerPoint))},_syncLayers:function(e,t){var n=this;if(this.enabled())return!1;if(!t._fromLayerSync&&this._layer===t.target&&this.options.syncLayersOnDrag){t._fromLayerSync=!0;var r=[];if(L.Util.isArray(this.options.syncLayersOnDrag))r=this.options.syncLayersOnDrag,this.options.syncLayersOnDrag.forEach((function(e){e instanceof L.LayerGroup&&(r=r.concat(e.pm.getLayers(!0)))}));else if(!0===this.options.syncLayersOnDrag&&this._parentLayerGroup)for(var i in this._parentLayerGroup){var o=this._parentLayerGroup[i];o.pm&&(r=o.pm.getLayers(!0))}return L.Util.isArray(r)&&r.length>0&&(r=r.filter((function(e){return!!e.pm})).filter((function(e){return!!e.pm.options.draggable}))).forEach((function(r){r!==n._layer&&r.pm[e]&&(r._snapped=!1,r.pm[e](t))})),r.length>0}return!1},_stopDOMImageDrag:function(e){return e.preventDefault(),!1}};function ut(e,t,n){var r=n.getMaxZoom();if(r===1/0&&(r=n.getZoom()),L.Util.isArray(e)){var i=[];return e.forEach((function(e){i.push(ut(e,t,n))})),i}return e instanceof L.LatLng?function(e,t,n,r){return n.unproject(t.transform(n.project(e,r)),r)}(e,t,n,r):null}function dt(e,t){t instanceof L.Layer&&(t=t.getLatLng());var n=e.getMaxZoom();return n===1/0&&(n=e.getZoom()),e.project(t,n)}function pt(e,t){var n=e.getMaxZoom();return n===1/0&&(n=e.getZoom()),e.unproject(t,n)}var ht={_onRotateStart:function(e){this._preventRenderingMarkers(!0),this._rotationOriginLatLng=this._getRotationCenter().clone(),this._rotationOriginPoint=dt(this._map,this._rotationOriginLatLng),this._rotationStartPoint=dt(this._map,e.target.getLatLng()),this._initialRotateLatLng=U(this._layer),this._startAngle=this.getAngle();var t=U(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._fireRotationStart(this._rotationLayer,t),this._fireRotationStart(this._map,t)},_onRotate:function(e){var t=dt(this._map,e.target.getLatLng()),n=this._rotationStartPoint,r=this._rotationOriginPoint,i=Math.atan2(t.y-r.y,t.x-r.x)-Math.atan2(n.y-r.y,n.x-r.x);this._layer.setLatLngs(this._rotateLayer(i,this._initialRotateLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));var o=this;!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(r>-1&&n.push(r),L.Util.isArray(t[0]))t.forEach((function(t,r){return e(t,n.slice(),r)}));else{var i=O()(o._markers,n);t.forEach((function(e,t){i[t].setLatLng(e)}))}}(this._layer.getLatLngs());var a=U(this._rotationLayer);this._rotationLayer.setLatLngs(this._rotateLayer(i,this._rotationLayer.pm._rotateOrgLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));var s=180*i/Math.PI,l=(s=s<0?s+360:s)+this._startAngle;this._setAngle(l),this._rotationLayer.pm._setAngle(l),this._fireRotation(this._rotationLayer,s,a),this._fireRotation(this._map,s,a),this._rotationLayer.pm._fireChange(this._rotationLayer.getLatLngs(),"Rotation")},_onRotateEnd:function(){var e=this._startAngle;delete this._rotationOriginLatLng,delete this._rotationOriginPoint,delete this._rotationStartPoint,delete this._initialRotateLatLng,delete this._startAngle;var t=U(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._rotationLayer.pm._rotateOrgLatLng=U(this._rotationLayer),this._fireRotationEnd(this._rotationLayer,e,t),this._fireRotationEnd(this._map,e,t),this._rotationLayer.pm._fireEdit(this._rotationLayer,"Rotation"),this._preventRenderingMarkers(!1),this._layerRotated=!0},_rotateLayer:function(e,t,n,r,i){var o=dt(i,n);return this._matrix=r.clone().rotate(e,o).flip(),ut(t,this._matrix,i)},_setAngle:function(e){e=e<0?e+360:e,this._angle=e%360},_getRotationCenter:function(){var e=L.polygon(this._layer.getLatLngs(),{stroke:!1,fill:!1,pmIgnore:!0}).addTo(this._layer._map),t=e.getCenter();return e.removeFrom(this._layer._map),t},enableRotate:function(){this.options.allowRotation?(this._rotatePoly=L.polygon(this._layer.getLatLngs(),{fill:!1,stroke:!1,pmIgnore:!1,snapIgnore:!0}).addTo(this._layer._map),this._rotatePoly.pm._setAngle(this.getAngle()),this._rotatePoly.pm.setOptions(this._layer._map.pm.getGlobalOptions()),this._rotatePoly.pm.setOptions({rotate:!0,snappable:!1,hideMiddleMarkers:!0}),this._rotatePoly.pm._rotationLayer=this._layer,this._rotatePoly.pm.enable(),this._rotateOrgLatLng=U(this._layer),this._rotateEnabled=!0,this._layer.on("remove",this.disableRotate,this),this._fireRotationEnable(this._layer),this._fireRotationEnable(this._layer._map)):this.disableRotate()},disableRotate:function(){this.rotateEnabled()&&(this._rotatePoly.pm._layerRotated&&this._fireUpdate(),this._rotatePoly.pm._layerRotated=!1,this._rotatePoly.pm.disable(),this._rotatePoly.remove(),this._rotatePoly.pm.setOptions({rotate:!1}),this._rotatePoly=void 0,this._rotateOrgLatLng=void 0,this._layer.off("remove",this.disableRotate,this),this._rotateEnabled=!1,this._fireRotationDisable(this._layer),this._fireRotationDisable(this._layer._map))},rotateEnabled:function(){return this._rotateEnabled},rotateLayer:function(e){var t=this.getAngle(),n=this._layer.getLatLngs(),r=e*(Math.PI/180);this._layer.setLatLngs(this._rotateLayer(r,this._layer.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._layer._map)),this._rotateOrgLatLng=L.polygon(this._layer.getLatLngs()).getLatLngs(),this._setAngle(this.getAngle()+e),this.rotateEnabled()&&this._rotatePoly&&this._rotatePoly.pm.enabled()&&(this._rotatePoly.setLatLngs(this._rotateLayer(r,this._rotatePoly.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._rotatePoly._map)),this._rotatePoly.pm._initMarkers());var i=this.getAngle()-t;i=i<0?i+360:i,this._startAngle=t,this._fireRotation(this._layer,i,n,this._layer),this._fireRotation(this._map,i,n,this._layer),delete this._startAngle,this._fireChange(this._layer.getLatLngs(),"Rotation")},rotateLayerToAngle:function(e){var t=e-this.getAngle();this.rotateLayer(t)},getAngle:function(){return this._angle||0}};const ft=ht,mt=L.Class.extend({includes:[ct,ie,ft,E],options:{snappable:!0,snapDistance:20,allowSelfIntersection:!0,allowSelfIntersectionEdit:!1,preventMarkerRemoval:!1,removeLayerBelowMinVertexCount:!0,limitMarkersToCount:-1,hideMiddleMarkers:!1,snapSegment:!0,syncLayersOnDrag:!1,draggable:!0,allowEditing:!0,allowRemoval:!0,allowCutting:!0,allowRotation:!0,addVertexOn:"click",removeVertexOn:"contextmenu",removeVertexValidation:void 0,addVertexValidation:void 0,moveVertexValidation:void 0},setOptions:function(e){L.Util.setOptions(this,e)},getOptions:function(){return this.options},applyOptions:function(){},isPolygon:function(){return this._layer instanceof L.Polygon},getShape:function(){return this._shape},_setPane:function(e,t){"layerPane"===t?e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":"vertexPane"===t?e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":"markerPane"===t&&(e.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},remove:function(){(this._map||this._layer._map).pm.removeLayer({target:this._layer})},_vertexValidation:function(e,t){var n=t.target,r={layer:this._layer,marker:n,event:t},i="";return"move"===e?i="moveVertexValidation":"add"===e?i="addVertexValidation":"remove"===e&&(i="removeVertexValidation"),this.options[i]&&"function"==typeof this.options[i]&&!this.options[i](r)?("move"===e&&(n._cancelDragEventChain=n.getLatLng()),!1):(n._cancelDragEventChain=null,!0)},_vertexValidationDrag:function(e){return!e._cancelDragEventChain||(e._latlng=e._cancelDragEventChain,e.update(),!1)},_vertexValidationDragEnd:function(e){return!e._cancelDragEventChain||(e._cancelDragEventChain=null,!1)}});function gt(e){return function(e){if(Array.isArray(e))return yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}mt.LayerGroup=L.Class.extend({initialize:function(e){var t=this;this._layerGroup=e,this._layers=this.getLayers(),this._getMap(),this._layers.forEach((function(e){return t._initLayer(e)})),this._layerGroup.on("layeradd",L.Util.throttle((function(e){if(!e.layer._pmTempLayer){t._layers=t.getLayers();var n=t._layers.filter((function(e){return!e.pm._parentLayerGroup||!(t._layerGroup._leaflet_id in e.pm._parentLayerGroup)}));n.forEach((function(e){t._initLayer(e)})),n.length>0&&t._getMap()&&t._getMap().pm.globalEditModeEnabled()&&t.enabled()&&t.enable(t.getOptions())}}),100,this),this),this._layerGroup.on("layerremove",(function(e){t._removeLayerFromGroup(e.target)}),this),this._layerGroup.on("layerremove",L.Util.throttle((function(e){e.target._pmTempLayer||(t._layers=t.getLayers())}),100,this),this)},enable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];0===t.length&&(this._layers=this.getLayers()),this._options=e,this._layers.forEach((function(n){n instanceof L.LayerGroup?-1===t.indexOf(n._leaflet_id)&&(t.push(n._leaflet_id),n.pm.enable(e,t)):n.pm.enable(e)}))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];0===e.length&&(this._layers=this.getLayers()),this._layers.forEach((function(t){t instanceof L.LayerGroup?-1===e.indexOf(t._leaflet_id)&&(e.push(t._leaflet_id),t.pm.disable(e)):t.pm.disable()}))},enabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length&&(this._layers=this.getLayers()),!!this._layers.find((function(t){return t instanceof L.LayerGroup?-1===e.indexOf(t._leaflet_id)&&(e.push(t._leaflet_id),t.pm.enabled(e)):t.pm.enabled()}))},toggleEdit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];0===t.length&&(this._layers=this.getLayers()),this._options=e,this._layers.forEach((function(n){n instanceof L.LayerGroup?-1===t.indexOf(n._leaflet_id)&&(t.push(n._leaflet_id),n.pm.toggleEdit(e,t)):n.pm.toggleEdit(e)}))},_initLayer:function(e){var t=L.Util.stamp(this._layerGroup);e.pm._parentLayerGroup||(e.pm._parentLayerGroup={}),e.pm._parentLayerGroup[t]=this._layerGroup},_removeLayerFromGroup:function(e){if(e.pm&&e.pm._layerGroup){var t=L.Util.stamp(this._layerGroup);delete e.pm._layerGroup[t]}},dragging:function(){return this._layers=this.getLayers(),!!this._layers&&!!this._layers.find((function(e){return e.pm.dragging()}))},getOptions:function(){return this.options},_getMap:function(){var e;return this._map||(null===(e=this._layers.find((function(e){return!!e._map})))||void 0===e?void 0:e._map)||null},getLayers:function(){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=[];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._layerGroup.getLayers().forEach((function(e){r.push(e),e instanceof L.LayerGroup&&-1===n.indexOf(e._leaflet_id)&&(n.push(e._leaflet_id),r=r.concat(e.pm.getLayers(!0,!0,!0,n)))})):r=this._layerGroup.getLayers(),t&&(r=r.filter((function(e){return!(e instanceof L.LayerGroup)}))),e&&(r=(r=(r=r.filter((function(e){return!!e.pm}))).filter((function(e){return!e._pmTempLayer}))).filter((function(e){return!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore}))),r},setOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];0===t.length&&(this._layers=this.getLayers()),this.options=e,this._layers.forEach((function(n){n.pm&&(n instanceof L.LayerGroup?-1===t.indexOf(n._leaflet_id)&&(t.push(n._leaflet_id),n.pm.setOptions(e,t)):n.pm.setOptions(e))}))}}),mt.Marker=mt.extend({_shape:"Marker",initialize:function(e){this._layer=e,this._enabled=!1,this._layer.on("dragend",this._onDragEnd,this)},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{draggable:!0};L.Util.setOptions(this,e),this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._fireEnable()):this.disable()},disable:function(){this.enabled()&&(this.disableLayerDrag(),this._layer.off("remove",this.disable,this),this._layer.off("contextmenu",this._removeMarker,this),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1)},enabled:function(){return this._enabled},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping(),this.options.draggable?this.enableLayerDrag():this.disableLayerDrag(),this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this)},_removeMarker:function(e){var t=e.target;t.remove(),this._fireRemove(t),this._fireRemove(this._map,t)},_onDragEnd:function(){this._fireEdit(),this._layerEdited=!0},_initSnappableMarkers:function(){var e=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=void 0===this.options.snapSegment||this.options.snapSegment,e.off("pm:drag",this._handleSnapping,this),e.on("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.on("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this),e.on("pm:dragstart",this._unsnap,this)},_disableSnapping:function(){var e=this._layer;e.off("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this)}});const vt={filterMarkerGroup:function(){this.markerCache=[],this.createCache(),this._layer.on("pm:edit",this.createCache,this),this.applyLimitFilters({}),this._layer.on("pm:disable",this._removeMarkerLimitEvents,this),this.options.limitMarkersToCount>-1&&(this._layer.on("pm:vertexremoved",this._initMarkers,this),this._map.on("mousemove",this.applyLimitFilters,this))},_removeMarkerLimitEvents:function(){this._map.off("mousemove",this.applyLimitFilters,this),this._layer.off("pm:edit",this.createCache,this),this._layer.off("pm:disable",this._removeMarkerLimitEvents,this),this._layer.off("pm:vertexremoved",this._initMarkers,this)},createCache:function(){var e=[].concat(gt(this._markerGroup.getLayers()),gt(this.markerCache));this.markerCache=e.filter((function(e,t,n){return n.indexOf(e)===t}))},renderLimits:function(e){var t=this;this.markerCache.forEach((function(n){e.includes(n)?t._markerGroup.addLayer(n):t._markerGroup.removeLayer(n)}))},applyLimitFilters:function(e){var t=e.latlng,n=void 0===t?{lat:0,lng:0}:t;if(!this._preventRenderMarkers){var r=gt(this._filterClosestMarkers(n));this.renderLimits(r)}},_filterClosestMarkers:function(e){var t=gt(this.markerCache),n=this.options.limitMarkersToCount;return t.sort((function(t,n){return t._latlng.distanceTo(e)-n._latlng.distanceTo(e)})),t.filter((function(e,t){return!(n>-1)||t<n}))},_preventRenderMarkers:!1,_preventRenderingMarkers:function(e){this._preventRenderMarkers=!!e}};function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}mt.Line=mt.extend({includes:[vt],_shape:"Line",initialize:function(e){this._layer=e,this._enabled=!1},enable:function(e){L.Util.setOptions(this,e),this._map=this._layer._map,this._map&&(this.options.allowEditing?(this.enabled()&&this.disable(),this._enabled=!0,this._initMarkers(),this.applyOptions(),this._layer.on("remove",this.disable,this),this.options.allowSelfIntersection||this._layer.on("pm:vertexremoved",this._handleSelfIntersectionOnVertexRemoval,this),this.options.allowSelfIntersection?this.cachedColor=void 0:("#f00000ff"!==this._layer.options.color?(this.cachedColor=this._layer.options.color,this.isRed=!1):this.isRed=!0,this._handleLayerStyle()),this._fireEnable()):this.disable())},disable:function(){if(this.enabled()&&!this._dragging){this._enabled=!1,this._markerGroup.clearLayers(),this._markerGroup.removeFrom(this._map),this._layer.off("remove",this.disable,this),this.options.allowSelfIntersection||this._layer.off("pm:vertexremoved",this._handleSelfIntersectionOnVertexRemoval,this);var e=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.removeClass(e,"leaflet-pm-draggable"),this.hasSelfIntersection()&&L.DomUtil.removeClass(e,"leaflet-pm-invalid"),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()}},enabled:function(){return this._enabled},toggleEdit:function(e){return this.enabled()?this.disable():this.enable(e),this.enabled()},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping()},_initMarkers:function(){var e=this,t=this._map,n=this._layer.getLatLngs();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.LayerGroup,this._markerGroup._pmTempLayer=!0,this._markers=function t(n){if(Array.isArray(n[0]))return n.map(t,e);var r=n.map(e._createMarker,e);return!0!==e.options.hideMiddleMarkers&&n.map((function(t,i){var o=e.isPolygon()?(i+1)%n.length:i+1;return e._createMiddleMarker(r[i],r[o])})),r}(n),this.filterMarkerGroup(),t.addLayer(this._markerGroup)},_createMarker:function(e){var t=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(t,"vertexPane"),t._pmTempLayer=!0,this.options.rotate?(t.on("dragstart",this._onRotateStart,this),t.on("drag",this._onRotate,this),t.on("dragend",this._onRotateEnd,this)):(t.on("click",this._onVertexClick,this),t.on("dragstart",this._onMarkerDragStart,this),t.on("move",this._onMarkerDrag,this),t.on("dragend",this._onMarkerDragEnd,this),this.options.preventMarkerRemoval||t.on(this.options.removeVertexOn,this._removeMarker,this)),this._markerGroup.addLayer(t),t},_createMiddleMarker:function(e,t){if(!e||!t)return!1;var n=L.PM.Utils.calcMiddleLatLng(this._map,e.getLatLng(),t.getLatLng()),r=this._createMarker(n),i=L.divIcon({className:"marker-icon marker-icon-middle"});return r.setIcon(i),r.leftM=e,r.rightM=t,e._middleMarkerNext=r,t._middleMarkerPrev=r,r.on(this.options.addVertexOn,this._onMiddleMarkerClick,this),r.on("movestart",this._onMiddleMarkerMoveStart,this),r},_onMiddleMarkerClick:function(e){var t=e.target;if(this._vertexValidation("add",e)){var n=L.divIcon({className:"marker-icon"});t.setIcon(n),this._addMarker(t,t.leftM,t.rightM)}},_onMiddleMarkerMoveStart:function(e){var t=e.target;t.on("moveend",this._onMiddleMarkerMoveEnd,this),this._vertexValidation("add",e)?(t._dragging=!0,this._addMarker(t,t.leftM,t.rightM)):t.on("move",this._onMiddleMarkerMovePrevent,this)},_onMiddleMarkerMovePrevent:function(e){var t=e.target;this._vertexValidationDrag(t)},_onMiddleMarkerMoveEnd:function(e){var t=e.target;if(t.off("move",this._onMiddleMarkerMovePrevent,this),t.off("moveend",this._onMiddleMarkerMoveEnd,this),this._vertexValidationDragEnd(t)){var n=L.divIcon({className:"marker-icon"});t.setIcon(n),setTimeout((function(){delete t._dragging}),100)}},_addMarker:function(e,t,n){e.off("movestart",this._onMiddleMarkerMoveStart,this),e.off(this.options.addVertexOn,this._onMiddleMarkerClick,this);var r=e.getLatLng(),i=this._layer._latlngs;delete e.leftM,delete e.rightM;var o=L.PM.Utils.findDeepMarkerIndex(this._markers,t),a=o.indexPath,s=o.index,l=o.parentPath,c=a.length>1?O()(i,l):i,u=a.length>1?O()(this._markers,l):this._markers;c.splice(s+1,0,r),u.splice(s+1,0,e),this._layer.setLatLngs(i),!0!==this.options.hideMiddleMarkers&&(this._createMiddleMarker(t,e),this._createMiddleMarker(e,n)),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit"),this._fireVertexAdded(e,L.PM.Utils.findDeepMarkerIndex(this._markers,e).indexPath,r),this.options.snappable&&this._initSnappableMarkers()},hasSelfIntersection:function(){return me(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersectionOnVertexRemoval:function(){this._handleLayerStyle(!0),this.hasSelfIntersection()&&(this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers())},_handleLayerStyle:function(e){var t=this._layer;if(this.hasSelfIntersection()){if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!0),this.isRed)return;e?this._flashLayer():(t.setStyle({color:"#f00000ff"}),this.isRed=!0),this._fireIntersect(me(this._layer.toGeoJSON(15)))}else t.setStyle({color:this.cachedColor}),this.isRed=!1,!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!1)},_flashLayer:function(){var e=this;this.cachedColor||(this.cachedColor=this._layer.options.color),this._layer.setStyle({color:"#f00000ff"}),this.isRed=!0,window.setTimeout((function(){e._layer.setStyle({color:e.cachedColor}),e.isRed=!1}),200)},_updateDisabledMarkerStyle:function(e,t){var n=this;e.forEach((function(e){Array.isArray(e)?n._updateDisabledMarkerStyle(e,t):e._icon&&(t&&!n._checkMarkerAllowedToDrag(e)?L.DomUtil.addClass(e._icon,"vertexmarker-disabled"):L.DomUtil.removeClass(e._icon,"vertexmarker-disabled"))}))},_removeMarker:function(e){var t=e.target;if(this._vertexValidation("remove",e)){if(!this.options.allowSelfIntersection){var n=this._layer.getLatLngs();this._coordsBeforeEdit=JSON.parse(JSON.stringify(n))}var r=this._layer.getLatLngs(),i=L.PM.Utils.findDeepMarkerIndex(this._markers,t),o=i.indexPath,a=i.index,s=i.parentPath;if(o){var l=o.length>1?O()(r,s):r,c=o.length>1?O()(this._markers,s):this._markers;if(this.options.removeLayerBelowMinVertexCount||!(l.length<=2||this.isPolygon()&&l.length<=3)){l.splice(a,1),this._layer.setLatLngs(r),this.isPolygon()&&l.length<=2&&l.splice(0,l.length);var u=!1;if(l.length<=1&&(l.splice(0,l.length),s.length>1&&o.length>1&&(r=N(r)),this._layer.setLatLngs(r),this.disable(),this.enable(this.options),u=!0),A(r)||this._layer.remove(),r=N(r),this._layer.setLatLngs(r),this._markers=N(this._markers),!u&&(c=o.length>1?O()(this._markers,s):this._markers,t._middleMarkerPrev&&this._markerGroup.removeLayer(t._middleMarkerPrev),t._middleMarkerNext&&this._markerGroup.removeLayer(t._middleMarkerNext),this._markerGroup.removeLayer(t),c)){var d,p;if(this.isPolygon()?(d=(a+1)%c.length,p=(a+(c.length-1))%c.length):(p=a-1<0?void 0:a-1,d=a+1>=c.length?void 0:a+1),d!==p){var h=c[p],f=c[d];!0!==this.options.hideMiddleMarkers&&this._createMiddleMarker(h,f)}c.splice(a,1)}this._fireEdit(),this._layerEdited=!0,this._fireVertexRemoved(t,o),this._fireChange(this._layer.getLatLngs(),"Edit")}else this._flashLayer()}}},updatePolygonCoordsFromMarkerDrag:function(e){var t=this._layer.getLatLngs(),n=e.getLatLng(),r=L.PM.Utils.findDeepMarkerIndex(this._markers,e),i=r.indexPath,o=r.index,a=r.parentPath;(i.length>1?O()(t,a):t).splice(o,1,n),this._layer.setLatLngs(t)},_getNeighborMarkers:function(e){var t=L.PM.Utils.findDeepMarkerIndex(this._markers,e),n=t.indexPath,r=t.index,i=t.parentPath,o=n.length>1?O()(this._markers,i):this._markers,a=(r+1)%o.length;return{prevMarker:o[(r+(o.length-1))%o.length],nextMarker:o[a]}},_checkMarkerAllowedToDrag:function(e){var t=this._getNeighborMarkers(e),n=t.prevMarker,r=t.nextMarker,i=L.polyline([n.getLatLng(),e.getLatLng()]),o=L.polyline([e.getLatLng(),r.getLatLng()]),a=Re(this._layer.toGeoJSON(15),i.toGeoJSON(15)).features.length,s=Re(this._layer.toGeoJSON(15),o.toGeoJSON(15)).features.length;return e.getLatLng()===this._markers[0][0].getLatLng()?s+=1:e.getLatLng()===this._markers[0][this._markers[0].length-1].getLatLng()&&(a+=1),!(a<=2&&s<=2)},_onMarkerDragStart:function(e){var t=e.target;if(this.cachedColor||(this.cachedColor=this._layer.options.color),this._vertexValidation("move",e)){var n=L.PM.Utils.findDeepMarkerIndex(this._markers,t).indexPath;this._fireMarkerDragStart(e,n),this.options.allowSelfIntersection||(this._coordsBeforeEdit=this._layer.getLatLngs()),!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()?this._markerAllowedToDrag=this._checkMarkerAllowedToDrag(t):this._markerAllowedToDrag=null}},_onMarkerDrag:function(e){var t=e.target;if(this._vertexValidationDrag(t)){var n=L.PM.Utils.findDeepMarkerIndex(this._markers,t),r=n.indexPath,i=n.index,o=n.parentPath;if(r){if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()&&!1===this._markerAllowedToDrag)return this._layer.setLatLngs(this._coordsBeforeEdit),this._initMarkers(),void this._handleLayerStyle();this.updatePolygonCoordsFromMarkerDrag(t);var a=r.length>1?O()(this._markers,o):this._markers,s=(i+1)%a.length,l=(i+(a.length-1))%a.length,c=t.getLatLng(),u=a[l].getLatLng(),d=a[s].getLatLng();if(t._middleMarkerNext){var p=L.PM.Utils.calcMiddleLatLng(this._map,c,d);t._middleMarkerNext.setLatLng(p)}if(t._middleMarkerPrev){var h=L.PM.Utils.calcMiddleLatLng(this._map,c,u);t._middleMarkerPrev.setLatLng(h)}this.options.allowSelfIntersection||this._handleLayerStyle(),this._fireMarkerDrag(e,r),this._fireChange(this._layer.getLatLngs(),"Edit")}}},_onMarkerDragEnd:function(e){var t=e.target;if(this._vertexValidationDragEnd(t)){var n=L.PM.Utils.findDeepMarkerIndex(this._markers,t).indexPath,r=this.hasSelfIntersection();r&&this.options.allowSelfIntersectionEdit&&this._markerAllowedToDrag&&(r=!1);var i=!this.options.allowSelfIntersection&&r;if(this._fireMarkerDragEnd(e,n,i),i)return this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers(),this.options.snappable&&this._initSnappableMarkers(),this._handleLayerStyle(),void this._fireLayerReset(e,n);!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._handleLayerStyle(),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit")}},_onVertexClick:function(e){var t=e.target;if(!t._dragging){var n=L.PM.Utils.findDeepMarkerIndex(this._markers,t).indexPath;this._fireVertexClick(e,n)}}}),mt.Polygon=mt.Line.extend({_shape:"Polygon",_checkMarkerAllowedToDrag:function(e){var t=this._getNeighborMarkers(e),n=t.prevMarker,r=t.nextMarker,i=L.polyline([n.getLatLng(),e.getLatLng()]),o=L.polyline([e.getLatLng(),r.getLatLng()]),a=Re(this._layer.toGeoJSON(15),i.toGeoJSON(15)).features.length,s=Re(this._layer.toGeoJSON(15),o.toGeoJSON(15)).features.length;return!(a<=2&&s<=2)}}),mt.Rectangle=mt.Polygon.extend({_shape:"Rectangle",_initMarkers:function(){var e=this,t=this._map,n=this._findCorners();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.LayerGroup,this._markerGroup._pmTempLayer=!0,t.addLayer(this._markerGroup),this._markers=[],this._markers[0]=n.map(this._createMarker,this);var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._markers,1);this._cornerMarkers=r[0],this._layer.getLatLngs()[0].forEach((function(t,n){var r=e._cornerMarkers.find((function(e){return e._index===n}));r&&r.setLatLng(t)}))},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping(),this._addMarkerEvents()},_createMarker:function(e,t){var n=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(n,"vertexPane"),n._origLatLng=e,n._index=t,n._pmTempLayer=!0,this._markerGroup.addLayer(n),n},_addMarkerEvents:function(){var e=this;this._markers[0].forEach((function(t){t.on("dragstart",e._onMarkerDragStart,e),t.on("drag",e._onMarkerDrag,e),t.on("dragend",e._onMarkerDragEnd,e),e.options.preventMarkerRemoval||t.on("contextmenu",e._removeMarker,e)}))},_removeMarker:function(){return null},_onMarkerDragStart:function(e){if(this._vertexValidation("move",e)){var t=e.target,n=this._cornerMarkers;t._oppositeCornerLatLng=n.find((function(e){return e._index===(t._index+2)%4})).getLatLng(),t._snapped=!1,this._fireMarkerDragStart(e)}},_onMarkerDrag:function(e){var t=e.target;this._vertexValidationDrag(t)&&void 0!==t._index&&(this._adjustRectangleForMarkerMove(t),this._fireMarkerDrag(e),this._fireChange(this._layer.getLatLngs(),"Edit"))},_onMarkerDragEnd:function(e){var t=e.target;this._vertexValidationDragEnd(t)&&(this._cornerMarkers.forEach((function(e){delete e._oppositeCornerLatLng})),this._fireMarkerDragEnd(e),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit"))},_adjustRectangleForMarkerMove:function(e){L.extend(e._origLatLng,e._latlng);var t=L.PM.Utils._getRotatedRectangle(e.getLatLng(),e._oppositeCornerLatLng,this._angle||0,this._map);this._layer.setLatLngs(t),this._adjustAllMarkers(),this._layer.redraw()},_adjustAllMarkers:function(){var e=this,t=this._layer.getLatLngs()[0];t&&4!==t.length&&t.length>0?(t.forEach((function(t,n){e._cornerMarkers[n].setLatLng(t)})),this._cornerMarkers.slice(t.length).forEach((function(e){e.setLatLng(t[0])}))):t&&t.length?this._cornerMarkers.forEach((function(e){e.setLatLng(t[e._index])})):console.error("The layer has no LatLngs")},_findCorners:function(){var e=this._layer.getLatLngs()[0];return L.PM.Utils._getRotatedRectangle(e[0],e[2],this._angle||0,this._map)}}),mt.Circle=mt.extend({_shape:"Circle",initialize:function(e){this._layer=e,this._enabled=!1,this._updateHiddenPolyCircle()},enable:function(e){L.Util.setOptions(this,e),this._map=this._layer._map,this.options.allowEditing?(this.enabled()||this.disable(),this._enabled=!0,this._initMarkers(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._updateHiddenPolyCircle(),this._fireEnable()):this.disable()},disable:function(){if(this.enabled()&&!this._dragging){this._centerMarker.off("dragstart",this._onCircleDragStart,this),this._centerMarker.off("drag",this._onCircleDrag,this),this._centerMarker.off("dragend",this._onCircleDragEnd,this),this._outerMarker.off("drag",this._handleOuterMarkerSnapping,this),this._layer.off("remove",this.disable,this),this._enabled=!1,this._helperLayers.clearLayers();var e=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.removeClass(e,"leaflet-pm-draggable"),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()}},enabled:function(){return this._enabled},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},_initMarkers:function(){var e=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.LayerGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(e);var t=this._layer.getLatLng(),n=this._layer._radius,r=this._getLatLngOnCircle(t,n);this._centerMarker=this._createCenterMarker(t),this._outerMarker=this._createOuterMarker(r),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker)},applyOptions:function(){this.options.snappable?(this._initSnappableMarkers(),this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this),this._outerMarker.on("move",this._syncHintLine,this),this._outerMarker.on("move",this._syncCircleRadius,this),this._centerMarker.on("move",this._moveCircle,this)):this._disableSnapping()},_createHintLine:function(e,t){var n=e.getLatLng(),r=t.getLatLng();this._hintline=L.polyline([n,r],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker:function(e){var t=this._createMarker(e);return L.DomUtil.addClass(t._icon,"leaflet-pm-draggable"),t.on("drag",this._moveCircle,this),t.on("dragstart",this._onCircleDragStart,this),t.on("drag",this._onCircleDrag,this),t.on("dragend",this._onCircleDragEnd,this),t},_createOuterMarker:function(e){var t=this._createMarker(e);return t.on("drag",this._resizeCircle,this),t},_createMarker:function(e){var t=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(t,"vertexPane"),t._origLatLng=e,t._pmTempLayer=!0,t.on("dragstart",this._onMarkerDragStart,this),t.on("drag",this._onMarkerDrag,this),t.on("dragend",this._onMarkerDragEnd,this),this._helperLayers.addLayer(t),t},_resizeCircle:function(){this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker()),this._syncHintLine(),this._syncCircleRadius()},_moveCircle:function(e){if(!e.target._cancelDragEventChain){var t=e.latlng;this._layer.setLatLng(t);var n=this._layer._radius,r=this._getLatLngOnCircle(t,n);this._outerMarker._latlng=r,this._outerMarker.update(),this._syncHintLine(),this._updateHiddenPolyCircle(),this._fireCenterPlaced("Edit"),this._fireChange(this._layer.getLatLng(),"Edit")}},_syncCircleRadius:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.distance(e,t);this.options.minRadiusCircle&&n<this.options.minRadiusCircle?this._layer.setRadius(this.options.minRadiusCircle):this.options.maxRadiusCircle&&n>this.options.maxRadiusCircle?this._layer.setRadius(this.options.maxRadiusCircle):this._layer.setRadius(n),this._updateHiddenPolyCircle(),this._fireChange(this._layer.getLatLng(),"Edit")},_syncHintLine:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng();this._hintline.setLatLngs([e,t])},_disableSnapping:function(){var e=this;this._markers.forEach((function(t){t.off("move",e._syncHintLine,e),t.off("move",e._syncCircleRadius,e),t.off("drag",e._handleSnapping,e),t.off("dragend",e._cleanupSnapping,e)})),this._layer.off("pm:dragstart",this._unsnap,this)},_onMarkerDragStart:function(e){this._vertexValidation("move",e)&&this._fireMarkerDragStart(e)},_onMarkerDrag:function(e){var t=e.target;this._vertexValidationDrag(t)&&this._fireMarkerDrag(e)},_onMarkerDragEnd:function(e){var t=e.target;this._vertexValidationDragEnd(t)&&(this._fireEdit(),this._layerEdited=!0,this._fireMarkerDragEnd(e))},_onCircleDragStart:function(e){this._vertexValidationDrag(e.target)?(delete this._vertexValidationReset,this._fireDragStart()):this._vertexValidationReset=!0},_onCircleDrag:function(e){this._vertexValidationReset||this._fireDrag(e)},_onCircleDragEnd:function(){this._vertexValidationReset?delete this._vertexValidationReset:this._fireDragEnd()},_updateHiddenPolyCircle:function(){var e=this._map&&this._map.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(this._layer,200,!e).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(this._layer,200,!e),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)},_getLatLngOnCircle:function(e,t){var n=this._map.project(e),r=L.point(n.x+t,n.y);return this._map.unproject(r)},_getNewDestinationOfOuterMarker:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.distance(e,t);return this.options.minRadiusCircle&&n<this.options.minRadiusCircle?t=B(this._map,e,t,this.options.minRadiusCircle):this.options.maxRadiusCircle&&n>this.options.maxRadiusCircle&&(t=B(this._map,e,t,this.options.maxRadiusCircle)),t},_handleOuterMarkerSnapping:function(){if(this._outerMarker._snapped){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.distance(e,t);(this.options.minRadiusCircle&&n<this.options.minRadiusCircle||this.options.maxRadiusCircle&&n>this.options.maxRadiusCircle)&&this._outerMarker.setLatLng(this._outerMarker._orgLatLng)}this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker())}}),mt.CircleMarker=mt.extend({_shape:"CircleMarker",initialize:function(e){this._layer=e,this._enabled=!1,this._updateHiddenPolyCircle()},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,e),this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._layer.on("pm:dragstart",this._onDragStart,this),this._layer.on("pm:drag",this._onMarkerDrag,this),this._layer.on("pm:dragend",this._onMarkerDragEnd,this),this._updateHiddenPolyCircle(),this._fireEnable()):this.disable()},disable:function(){this._dragging||(this._helperLayers&&this._helperLayers.clearLayers(),this._map||(this._map=this._layer._map),this._map||(this.options.editable?(this._map.off("move",this._syncMarkers,this),this._outerMarker&&this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this)):this._map.off("move",this._updateHiddenPolyCircle,this)),this.disableLayerDrag(),this._layer.off("contextmenu",this._removeMarker,this),this._layer.off("remove",this.disable,this),this.enabled()&&(this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()),this._enabled=!1)},enabled:function(){return this._enabled},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},applyOptions:function(){!this.options.editable&&this.options.draggable?this.enableLayerDrag():this.disableLayerDrag(),this.options.editable?(this._initMarkers(),this._map.on("move",this._syncMarkers,this)):this._map.on("move",this._updateHiddenPolyCircle,this),this.options.snappable?this.options.editable?(this._initSnappableMarkers(),this._centerMarker.on("drag",this._moveCircle,this),this.options.editable&&this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this),this._outerMarker.on("move",this._syncHintLine,this),this._outerMarker.on("move",this._syncCircleRadius,this)):this._initSnappableMarkersDrag():this.options.editable?this._disableSnapping():this._disableSnappingDrag(),this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this)},_initMarkers:function(){var e=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.LayerGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(e);var t=this._layer.getLatLng(),n=this._layer._radius,r=this._getLatLngOnCircle(t,n);this._centerMarker=this._createCenterMarker(t),this._outerMarker=this._createOuterMarker(r),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker)},_getLatLngOnCircle:function(e,t){var n=this._map.project(e),r=L.point(n.x+t,n.y);return this._map.unproject(r)},_createHintLine:function(e,t){var n=e.getLatLng(),r=t.getLatLng();this._hintline=L.polyline([n,r],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker:function(e){var t=this._createMarker(e);return this.options.draggable?L.DomUtil.addClass(t._icon,"leaflet-pm-draggable"):t.dragging.disable(),t},_createOuterMarker:function(e){var t=this._createMarker(e);return t.on("drag",this._resizeCircle,this),t},_createMarker:function(e){var t=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(t,"vertexPane"),t._origLatLng=e,t._pmTempLayer=!0,t.on("dragstart",this._onMarkerDragStart,this),t.on("drag",this._onMarkerDrag,this),t.on("dragend",this._onMarkerDragEnd,this),this._helperLayers.addLayer(t),t},_moveCircle:function(){var e=this._centerMarker.getLatLng();this._layer.setLatLng(e);var t=this._layer._radius,n=this._getLatLngOnCircle(e,t);this._outerMarker._latlng=n,this._outerMarker.update(),this._syncHintLine(),this._updateHiddenPolyCircle(),this._fireCenterPlaced("Edit"),this._fireChange(this._layer.getLatLng(),"Edit")},_syncMarkers:function(){var e=this._layer.getLatLng(),t=this._layer._radius,n=this._getLatLngOnCircle(e,t);this._outerMarker.setLatLng(n),this._centerMarker.setLatLng(e),this._syncHintLine(),this._updateHiddenPolyCircle()},_resizeCircle:function(){this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker()),this._syncHintLine(),this._syncCircleRadius()},_syncCircleRadius:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.project(e).distanceTo(this._map.project(t));this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker?this._layer.setRadius(this.options.minRadiusCircleMarker):this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker?this._layer.setRadius(this.options.maxRadiusCircleMarker):this._layer.setRadius(n),this._updateHiddenPolyCircle(),this._fireChange(this._layer.getLatLng(),"Edit")},_syncHintLine:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng();this._hintline.setLatLngs([e,t])},_removeMarker:function(){this.options.editable&&this.disable(),this._layer.remove(),this._fireRemove(this._layer),this._fireRemove(this._map,this._layer)},_onDragStart:function(){this._map.pm.Draw.CircleMarker._layerIsDragging=!0},_onMarkerDragStart:function(e){this._vertexValidation("move",e)&&this._fireMarkerDragStart(e)},_onMarkerDrag:function(e){var t=e.target;t instanceof L.Marker&&!this._vertexValidationDrag(t)||this._fireMarkerDrag(e)},_onMarkerDragEnd:function(e){this._map.pm.Draw.CircleMarker._layerIsDragging=!1;var t=e.target;this._vertexValidationDragEnd(t)&&(this.options.editable&&(this._fireEdit(),this._layerEdited=!0),this._fireMarkerDragEnd(e))},_initSnappableMarkersDrag:function(){var e=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=void 0===this.options.snapSegment||this.options.snapSegment,e.off("pm:drag",this._handleSnapping,this),e.on("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.on("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this),e.on("pm:dragstart",this._unsnap,this)},_disableSnappingDrag:function(){var e=this._layer;e.off("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this)},_updateHiddenPolyCircle:function(){var e=this._layer._map||this._map;if(e){var t=L.PM.Utils.pxRadiusToMeterRadius(this._layer.getRadius(),e,this._layer.getLatLng()),n=L.circle(this._layer.getLatLng(),this._layer.options);n.setRadius(t);var r=e&&e.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(n,200,!r).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(n,200,!r),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)}},_getNewDestinationOfOuterMarker:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.project(e).distanceTo(this._map.project(t));return this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker?t=B(this._map,e,t,L.PM.Utils.pxRadiusToMeterRadius(this.options.minRadiusCircleMarker,this._map,e)):this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker&&(t=B(this._map,e,t,L.PM.Utils.pxRadiusToMeterRadius(this.options.maxRadiusCircleMarker,this._map,e))),t},_handleOuterMarkerSnapping:function(){if(this._outerMarker._snapped){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=this._map.project(e).distanceTo(this._map.project(t));(this.options.minRadiusCircleMarker&&n<this.options.minRadiusCircleMarker||this.options.maxRadiusCircleMarker&&n>this.options.maxRadiusCircleMarker)&&this._outerMarker.setLatLng(this._outerMarker._orgLatLng)}this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker())}}),mt.ImageOverlay=mt.extend({_shape:"ImageOverlay",initialize:function(e){this._layer=e,this._enabled=!1},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},enabled:function(){return this._enabled},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,e),this._map=this._layer._map,this._map&&(this.options.allowEditing?(this.enabled()||this.disable(),this.enableLayerDrag(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._otherSnapLayers=this._findCorners(),this._fireEnable()):this.disable())},disable:function(){this._dragging||(this._map||(this._map=this._layer._map),this.disableLayerDrag(),this._layer.off("remove",this.disable,this),this.enabled()||(this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()),this._enabled=!1)},_findCorners:function(){var e=this._layer.getBounds();return[e.getNorthWest(),e.getNorthEast(),e.getSouthEast(),e.getSouthWest()]}}),mt.Text=mt.extend({_shape:"Text",initialize:function(e){this._layer=e,this._enabled=!1},enable:function(e){L.Util.setOptions(this,e),this.textArea&&(this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._focusChange(),this.textArea.readOnly=!1,this.textArea.classList.remove("pm-disabled"),this._layer.on("remove",this.disable,this),L.DomEvent.on(this.textArea,"input",this._autoResize,this),L.DomEvent.on(this.textArea,"focus",this._focusChange,this),L.DomEvent.on(this.textArea,"blur",this._focusChange,this),this._layer.on("dblclick",L.DomEvent.stop),L.DomEvent.off(this.textArea,"mousedown",this._preventTextSelection),this._enabled=!0,this._fireEnable()):this.disable())},disable:function(){if(this.enabled()){this._layer.off("remove",this.disable,this),L.DomEvent.off(this.textArea,"input",this._autoResize,this),L.DomEvent.off(this.textArea,"focus",this._focusChange,this),L.DomEvent.off(this.textArea,"blur",this._focusChange,this),L.DomEvent.off(document,"click",this._documentClick,this),this._focusChange(),this.textArea.readOnly=!0,this.textArea.classList.add("pm-disabled");var e=document.activeElement;this.textArea.focus(),this.textArea.selectionStart=0,this.textArea.selectionEnd=0,L.DomEvent.on(this.textArea,"mousedown",this._preventTextSelection),e.focus(),this._disableOnBlurActive=!1,this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1}},enabled:function(){return this._enabled},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping()},_initSnappableMarkers:function(){var e=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=void 0===this.options.snapSegment||this.options.snapSegment,e.off("pm:drag",this._handleSnapping,this),e.on("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.on("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this),e.on("pm:dragstart",this._unsnap,this)},_disableSnapping:function(){var e=this._layer;e.off("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this)},_autoResize:function(){this.textArea.style.height="1px",this.textArea.style.width="1px";var e=this.textArea.scrollHeight>21?this.textArea.scrollHeight:21,t=this.textArea.scrollWidth>16?this.textArea.scrollWidth:16;this.textArea.style.height="".concat(e,"px"),this.textArea.style.width="".concat(t,"px"),this._layer.options.text=this.getText(),this._fireTextChange(this.getText())},_disableOnBlur:function(){var e=this;this._disableOnBlurActive=!0,setTimeout((function(){e.enabled()&&L.DomEvent.on(document,"click",e._documentClick,e)}),100)},_documentClick:function(e){e.target!==this.textArea&&(this.disable(),!this.getText()&&this.options.removeIfEmpty&&this.remove())},_focusChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._hasFocus="focus"===e.type,this._hasFocus?this._applyFocus():this._removeFocus()},_applyFocus:function(){this.textArea.classList.add("pm-hasfocus"),this._map.dragging&&(this._safeToCacheDragState&&(this._originalMapDragState=this._map.dragging._enabled,this._safeToCacheDragState=!1),this._map.dragging.disable())},_removeFocus:function(){this._map.dragging&&(this._originalMapDragState&&this._map.dragging.enable(),this._safeToCacheDragState=!0),this.textArea.classList.remove("pm-hasfocus")},focus:function(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.focus()},blur:function(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.blur(),this._disableOnBlurActive&&this.disable()},hasFocus:function(){return this._hasFocus},getElement:function(){return this.textArea},setText:function(e){this.textArea.value=e,this._autoResize()},getText:function(){return this.textArea.value},_initTextMarker:function(){if(this.textArea=L.PM.Draw.Text.prototype._createTextArea.call(this),this.options.className){var e,t=this.options.className.split(" ");(e=this.textArea.classList).add.apply(e,function(e){return function(e){if(Array.isArray(e))return _t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))}var n=L.PM.Draw.Text.prototype._createTextIcon.call(this,this.textArea);this._layer.setIcon(n),this._layer.once("add",this._createTextMarker,this)},_createTextMarker:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._layer.off("add",this._createTextMarker,this),this._layer.getElement().tabIndex=-1,this.textArea.wrap="off",this.textArea.style.overflow="hidden",this.textArea.style.height=L.DomUtil.getStyle(this.textArea,"font-size"),this.textArea.style.width="1px",this._layer.options.text&&this.setText(this._layer.options.text),this._autoResize(),!0===e&&(this.enable(),this.focus(),this._disableOnBlur())},_preventTextSelection:function(e){e.preventDefault()}});var wt=function(e,t,n,r,i,o){this._matrix=[e,t,n,r,i,o]};wt.init=function(){return new L.PM.Matrix(1,0,0,1,0,0)},wt.prototype={transform:function(e){return this._transform(e.clone())},_transform:function(e){var t=this._matrix,n=e.x,r=e.y;return e.x=t[0]*n+t[1]*r+t[4],e.y=t[2]*n+t[3]*r+t[5],e},untransform:function(e){var t=this._matrix;return new L.Point((e.x/t[0]-t[4])/t[0],(e.y/t[2]-t[5])/t[2])},clone:function(){var e=this._matrix;return new L.PM.Matrix(e[0],e[1],e[2],e[3],e[4],e[5])},translate:function(e){return void 0===e?new L.Point(this._matrix[4],this._matrix[5]):("number"==typeof e?(t=e,n=e):(t=e.x,n=e.y),this._add(1,0,0,1,t,n));var t,n},scale:function(e,t){return void 0===e?new L.Point(this._matrix[0],this._matrix[3]):(t=t||L.point(0,0),"number"==typeof e?(n=e,r=e):(n=e.x,r=e.y),this._add(n,0,0,r,t.x,t.y)._add(1,0,0,1,-t.x,-t.y));var n,r},rotate:function(e,t){var n=Math.cos(e),r=Math.sin(e);return t=t||new L.Point(0,0),this._add(n,r,-r,n,t.x,t.y)._add(1,0,0,1,-t.x,-t.y)},flip:function(){return this._matrix[1]*=-1,this._matrix[2]*=-1,this},_add:function(e,t,n,r,i,o){var a,s=[[],[],[]],l=this._matrix,c=[[l[0],l[2],l[4]],[l[1],l[3],l[5]],[0,0,1]],u=[[e,n,i],[t,r,o],[0,0,1]];e&&e instanceof L.PM.Matrix&&(u=[[(l=e._matrix)[0],l[2],l[4]],[l[1],l[3],l[5]],[0,0,1]]);for(var d=0;d<3;d+=1)for(var p=0;p<3;p+=1){a=0;for(var h=0;h<3;h+=1)a+=c[d][h]*u[h][p];s[d][p]=a}return this._matrix=[s[0][0],s[1][0],s[0][1],s[1][1],s[0][2],s[1][2]],this}};const xt=wt;var kt={calcMiddleLatLng:function(e,t,n){var r=e.project(t),i=e.project(n);return e.unproject(r._add(i)._divideBy(2))},findLayers:function(e){var t=[];return e.eachLayer((function(e){(e instanceof L.Polyline||e instanceof L.Marker||e instanceof L.Circle||e instanceof L.CircleMarker||e instanceof L.ImageOverlay)&&t.push(e)})),t=(t=(t=t.filter((function(e){return!!e.pm}))).filter((function(e){return!e._pmTempLayer}))).filter((function(e){return!L.PM.optIn&&!e.options.pmIgnore||L.PM.optIn&&!1===e.options.pmIgnore}))},circleToPolygon:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=z(e.getLatLng(),e.getRadius(),t,0,n),i=[],o=0;o<r.length;o+=1){var a=[r[o].lat,r[o].lng];i.push(a)}return L.polygon(i,e.options)},disablePopup:function(e){e.getPopup()&&(e._tempPopupCopy=e.getPopup(),e.unbindPopup())},enablePopup:function(e){e._tempPopupCopy&&(e.bindPopup(e._tempPopupCopy),delete e._tempPopupCopy)},_fireEvent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.fire(t,n,r),this.getAllParentGroups(e).groups.forEach((function(e){e.fire(t,n,r)}))},getAllParentGroups:function(e){var t=[],n=[];return!e._pmLastGroupFetch||!e._pmLastGroupFetch.time||(new Date).getTime()-e._pmLastGroupFetch.time>1e3?(function e(r){for(var i in r._eventParents)if(-1===t.indexOf(i)){t.push(i);var o=r._eventParents[i];n.push(o),e(o)}}(e),e._pmLastGroupFetch={time:(new Date).getTime(),groups:n,groupIds:t},{groupIds:t,groups:n}):{groups:e._pmLastGroupFetch.groups,groupIds:e._pmLastGroupFetch.groupIds}},createGeodesicPolygon:z,getTranslation:D,findDeepCoordIndex:function(e,t){var n;e.some(function e(r){return function(i,o){var a=r.concat(o);return i.lat&&i.lat===t.lat&&i.lng===t.lng?(n=a,!0):Array.isArray(i)&&i.some(e(a))}}([]));var r={};return n&&(r={indexPath:n,index:n[n.length-1],parentPath:n.slice(0,n.length-1)}),r},findDeepMarkerIndex:function(e,t){var n;e.some(function e(r){return function(i,o){var a=r.concat(o);return i._leaflet_id===t._leaflet_id?(n=a,!0):Array.isArray(i)&&i.some(e(a))}}([]));var r={};return n&&(r={indexPath:n,index:n[n.length-1],parentPath:n.slice(0,n.length-1)}),r},_getIndexFromSegment:function(e,t){if(t&&2===t.length){var n=this.findDeepCoordIndex(e,t[0]),r=this.findDeepCoordIndex(e,t[1]),i=Math.max(n.index,r.index);return 0!==n.index&&0!==r.index||1===i||(i+=1),{indexA:n,indexB:r,newIndex:i,indexPath:n.indexPath,parentPath:n.parentPath}}return null},_getRotatedRectangle:function(e,t,n,r){var i=dt(r,e),o=dt(r,t),a=n*Math.PI/180,s=Math.cos(a),l=Math.sin(a),c=(o.x-i.x)*s+(o.y-i.y)*l,u=(o.y-i.y)*s-(o.x-i.x)*l,d=c*s+i.x,p=c*l+i.y,h=-u*l+i.x,f=u*s+i.y;return[pt(r,i),pt(r,{x:d,y:p}),pt(r,o),pt(r,{x:h,y:f})]},pxRadiusToMeterRadius:function(e,t,n){var r=t.project(n),i=L.point(r.x+e,r.y);return t.distance(t.unproject(i),n)}};const Ct=kt;L.PM=L.PM||{version:"2.13.1",Map:q,Toolbar:Q,Draw:oe,Edit:mt,Utils:Ct,Matrix:xt,activeLang:"en",optIn:!1,initialize:function(e){this.addInitHooks(e)},setOptIn:function(e){this.optIn=!!e},addInitHooks:function(){L.Map.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Map(this)):this.options.pmIgnore||(this.pm=new L.PM.Map(this))})),L.LayerGroup.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.LayerGroup(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.LayerGroup(this))})),L.Marker.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.options.textMarker?(this.pm=new L.PM.Edit.Text(this),this.options._textMarkerOverPM||this.pm._initTextMarker(),delete this.options._textMarkerOverPM):this.pm=new L.PM.Edit.Marker(this)):this.options.pmIgnore||(this.options.textMarker?(this.pm=new L.PM.Edit.Text(this),this.options._textMarkerOverPM||this.pm._initTextMarker(),delete this.options._textMarkerOverPM):this.pm=new L.PM.Edit.Marker(this))})),L.CircleMarker.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.CircleMarker(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.CircleMarker(this))})),L.Polyline.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.Line(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Line(this))})),L.Polygon.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.Polygon(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Polygon(this))})),L.Rectangle.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.Rectangle(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Rectangle(this))})),L.Circle.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.Circle(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Circle(this))})),L.ImageOverlay.addInitHook((function(){this.pm=void 0,L.PM.optIn?!1===this.options.pmIgnore&&(this.pm=new L.PM.Edit.ImageOverlay(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.ImageOverlay(this))}))},reInitLayer:function(e){var t=this;e instanceof L.LayerGroup&&e.eachLayer((function(e){t.reInitLayer(e)})),e.pm||L.PM.optIn&&!1!==e.options.pmIgnore||e.options.pmIgnore||(e instanceof L.Map?e.pm=new L.PM.Map(e):e instanceof L.Marker?e.options.textMarker?(e.pm=new L.PM.Edit.Text(e),e.pm._initTextMarker(),e.pm._createTextMarker(!1)):e.pm=new L.PM.Edit.Marker(e):e instanceof L.Circle?e.pm=new L.PM.Edit.Circle(e):e instanceof L.CircleMarker?e.pm=new L.PM.Edit.CircleMarker(e):e instanceof L.Rectangle?e.pm=new L.PM.Edit.Rectangle(e):e instanceof L.Polygon?e.pm=new L.PM.Edit.Polygon(e):e instanceof L.Polyline?e.pm=new L.PM.Edit.Line(e):e instanceof L.LayerGroup?e.pm=new L.PM.Edit.LayerGroup(e):e instanceof L.ImageOverlay&&(e.pm=new L.PM.Edit.ImageOverlay(e)))}},L.PM.initialize()},7107:()=>{Array.prototype.findIndex=Array.prototype.findIndex||function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i<n;i++)if(e.call(r,t[i],i,t))return i;return-1},Array.prototype.find=Array.prototype.find||function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i<n;i++){var o=t[i];if(e.call(r,o,i,t))return o}},"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var i,o,a=0|t,s=Math.max(a>=0?a:r-Math.abs(a),0);s<r;){if((i=n[s])===(o=e)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;s++}return!1}})},1787:(e,t,n)=>{var r=n(2582),i=n(4102),o=n(1540),a=n(9705).Z,s=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function c(e){var t=new r(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})):s(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})),r.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.remove.call(this,e,t)},t.clear=function(){return r.prototype.clear.call(this)},t.search=function(e){var t=r.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return r.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=r.prototype.all.call(this);return l(e)},t.toJSON=function(){return r.prototype.toJSON.call(this)},t.fromJSON=function(e){return r.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=a(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=a(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),l=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},8565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},313:(e,t,n)=>{var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),l=n(1704),c=n(6390);e.exports=function e(t,n,u,d,p){t!==n&&o(n,(function(o,l){if(p||(p=new r),s(o))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),o,l+"",t,n,p):void 0;void 0===h&&(h=o),i(t,l,h)}}),l)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),l=n(5694),c=n(1469),u=n(9246),d=n(4144),p=n(3560),h=n(3218),f=n(8630),m=n(6719),g=n(6390),y=n(9881);e.exports=function(e,t,n,v,b,_,w){var x=g(e,n),k=g(t,n),C=w.get(k);if(C)r(e,n,C);else{var S=_?_(x,k,n+"",e,t,w):void 0,M=void 0===S;if(M){var T=c(k),E=!T&&d(k),P=!T&&!E&&m(k);S=k,T||E||P?c(x)?S=x:u(x)?S=a(x):E?(M=!1,S=i(k,!0)):P?(M=!1,S=o(k,!0)):S=[]:f(k)||l(k)?(S=x,l(x)?S=y(x):h(x)&&!p(x)||(S=s(k))):M=!1}M&&(w.set(k,S),b(S,k,v,_,w),w.delete(k)),r(e,n,S)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),o=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),o=n(1469),a=n(5776),s=n(1780),l=n(327);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(o(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},8721:(e,t,n)=>{var r=n(8565),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},1704:(e,t,n)=>{var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},5062:e=>{e.exports=function(){return!1}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2676:function(e){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}var r=function(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null};function i(e,t){return e>t?1:e<t?-1:0}function o(e,t,n){for(var i=new r(null,null),o=i,a=i;;){var s=n(e,t.key);if(s<0){if(null===t.left)break;if(n(e,t.left.key)<0){var l=t.left;if(t.left=l.right,l.right=t,null===(t=l).left)break}a.left=t,a=t,t=t.left}else{if(!(s>0))break;if(null===t.right)break;if(n(e,t.right.key)>0&&(l=t.right,t.right=l.left,l.left=t,null===(t=l).right))break;o.right=t,o=t,t=t.right}}return o.right=t.left,a.left=t.right,t.left=i.right,t.right=i.left,t}function a(e,t,n,i){var a=new r(e,t);if(null===n)return a.left=a.right=null,a;var s=i(e,(n=o(e,n,i)).key);return s<0?(a.left=n.left,a.right=n,n.left=null):s>=0&&(a.right=n.right,a.left=n,n.right=null),a}function s(e,t,n){var r=null,i=null;if(t){var a=n((t=o(e,t,n)).key,e);0===a?(r=t.left,i=t.right):a<0?(i=t.right,t.right=null,r=t):(r=t.left,t.left=null,i=t)}return{left:r,right:i}}function l(e,t,n){return null===t?e:(null===e||((t=o(e.key,t,n)).left=e),t)}function c(e,t,n,r,i){if(e){r(t+(n?"\u2514\u2500\u2500 ":"\u251c\u2500\u2500 ")+i(e)+"\n");var o=t+(n?"    ":"\u2502   ");e.left&&c(e.left,o,!1,r,i),e.right&&c(e.right,o,!0,r,i)}}var u=function(){function e(e){void 0===e&&(e=i),this._root=null,this._size=0,this._comparator=e}return e.prototype.insert=function(e,t){return this._size++,this._root=a(e,t,this._root,this._comparator)},e.prototype.add=function(e,t){var n=new r(e,t);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,a=o(e,this._root,i),s=i(e,a.key);return 0===s?this._root=a:(s<0?(n.left=a.left,n.right=a,a.left=null):s>0&&(n.right=a.right,n.left=a,a.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},e.prototype._remove=function(e,t,n){var r;return null===t?null:0===n(e,(t=o(e,t,n)).key)?(null===t.left?r=t.right:(r=o(e,t.left,n)).right=t.right,this._size--,r):t},e.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=o(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},e.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return t;t=r<0?t.left:t.right}return null},e.prototype.find=function(e){return this._root&&(this._root=o(e,this._root,this._comparator),0!==this._comparator(e,this._root.key))?null:this._root},e.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},e.prototype.forEach=function(e,t){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),e.call(t,n),n=n.right):i=!0;return this},e.prototype.range=function(e,t,n,r){for(var i=[],o=this._comparator,a=this._root;0!==i.length||a;)if(a)i.push(a),a=a.left;else{if(o((a=i.pop()).key,t)>0)break;if(o(a.key,e)>=0&&n.call(r,a))return this;a=a.right}return this},e.prototype.keys=function(){var e=[];return this.forEach((function(t){var n=t.key;return e.push(n)})),e},e.prototype.values=function(){var e=[];return this.forEach((function(t){var n=t.data;return e.push(n)})),e},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},e.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},e.prototype.at=function(e){for(var t=this._root,n=!1,r=0,i=[];!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},e.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?(n=t,t=t.left):t=t.right}return n},e.prototype.prev=function(e){var t=this._root,n=null;if(null!==e.left){for(n=e.left;n.right;)n=n.right;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?t=t.left:(n=t,t=t.right)}return n},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return function(e){for(var t=e,n=[],i=!1,o=new r(null,null),a=o;!i;)t?(n.push(t),t=t.left):n.length>0?t=(t=a=a.next=n.pop()).right:i=!0;return a.next=null,o.next}(this._root)},e.prototype.load=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1);var r=e.length,i=this._comparator;if(n&&m(e,t,0,r-1,i),null===this._root)this._root=d(e,t,0,r),this._size=r;else{var o=f(this.toList(),p(e,t),i);r=this._size+r,this._root=h({head:o},0,r)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){void 0===e&&(e=function(e){return String(e.key)});var t=[];return c(this._root,"",!0,(function(e){return t.push(e)}),e),t.join("")},e.prototype.update=function(e,t,n){var r=this._comparator,i=s(e,this._root,r),o=i.left,c=i.right;r(e,t)<0?c=a(t,n,c,r):o=a(t,n,o,r),this._root=l(o,c,r)},e.prototype.split=function(e){return s(e,this._root,this._comparator)},e}();function d(e,t,n,i){var o=i-n;if(o>0){var a=n+Math.floor(o/2),s=e[a],l=t[a],c=new r(s,l);return c.left=d(e,t,n,a),c.right=d(e,t,a+1,i),c}return null}function p(e,t){for(var n=new r(null,null),i=n,o=0;o<e.length;o++)i=i.next=new r(e[o],t[o]);return i.next=null,n.next}function h(e,t,n){var r=n-t;if(r>0){var i=t+Math.floor(r/2),o=h(e,t,i),a=e.head;return a.left=o,e.head=e.head.next,a.right=h(e,i+1,n),a}return null}function f(e,t,n){for(var i=new r(null,null),o=i,a=e,s=t;null!==a&&null!==s;)n(a.key,s.key)<0?(o.next=a,a=a.next):(o.next=s,s=s.next),o=o.next;return null!==a?o.next=a:null!==s&&(o.next=s),i.next}function m(e,t,n,r,i){if(!(n>=r)){for(var o=e[n+r>>1],a=n-1,s=r+1;;){do{a++}while(i(e[a],o)<0);do{s--}while(i(e[s],o)>0);if(a>=s)break;var l=e[a];e[a]=e[s],e[s]=l,l=t[a],t[a]=t[s],t[s]=l}m(e,t,n,s,i),m(e,t,s+1,r,i)}}var g=function(e,t){return e.ll.x<=t.x&&t.x<=e.ur.x&&e.ll.y<=t.y&&t.y<=e.ur.y},y=function(e,t){if(t.ur.x<e.ll.x||e.ur.x<t.ll.x||t.ur.y<e.ll.y||e.ur.y<t.ll.y)return null;var n=e.ll.x<t.ll.x?t.ll.x:e.ll.x,r=e.ur.x<t.ur.x?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y<t.ll.y?t.ll.y:e.ll.y},ur:{x:r,y:e.ur.y<t.ur.y?e.ur.y:t.ur.y}}},v=Number.EPSILON;void 0===v&&(v=Math.pow(2,-52));var b=v*v,_=function(e,t){if(-v<e&&e<v&&-v<t&&t<v)return 0;var n=e-t;return n*n<b*e*t?0:e<t?-1:1},w=function(){function t(){e(this,t),this.reset()}return n(t,[{key:"reset",value:function(){this.xRounder=new x,this.yRounder=new x}},{key:"round",value:function(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}]),t}(),x=function(){function t(){e(this,t),this.tree=new u,this.round(0)}return n(t,[{key:"round",value:function(e){var t=this.tree.add(e),n=this.tree.prev(t);if(null!==n&&0===_(t.key,n.key))return this.tree.remove(e),n.key;var r=this.tree.next(t);return null!==r&&0===_(t.key,r.key)?(this.tree.remove(e),r.key):e}}]),t}(),k=new w,C=function(e,t){return e.x*t.y-e.y*t.x},S=function(e,t){return e.x*t.x+e.y*t.y},M=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y},o=C(r,i);return _(o,0)},T=function(e){return Math.sqrt(S(e,e))},E=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return C(i,r)/T(i)/T(r)},P=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return S(i,r)/T(i)/T(r)},I=function(e,t,n){return 0===t.y?null:{x:e.x+t.x/t.y*(n-e.y),y:n}},O=function(e,t,n){return 0===t.x?null:{x:n,y:e.y+t.y/t.x*(n-e.x)}},L=function(){function t(n,r){e(this,t),void 0===n.events?n.events=[this]:n.events.push(this),this.point=n,this.isLeft=r}return n(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:j.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}}]),n(t,[{key:"link",value:function(e){if(e.point===this.point)throw new Error("Tried to link already linked events");for(var t=e.point.events,n=0,r=t.length;n<r;n++){var i=t[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var e=this.point.events.length,t=0;t<e;t++){var n=this.point.events[t];if(void 0===n.segment.consumedBy)for(var r=t+1;r<e;r++){var i=this.point.events[r];void 0===i.consumedBy&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var e=[],t=0,n=this.point.events.length;t<n;t++){var r=this.point.events[t];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&e.push(r)}return e}},{key:"getLeftmostComparator",value:function(e){var t=this,n=new Map,r=function(r){var i=r.otherSE;n.set(r,{sine:E(t.point,e.point,i.point),cosine:P(t.point,e.point,i.point)})};return function(e,t){n.has(e)||r(e),n.has(t)||r(t);var i=n.get(e),o=i.sine,a=i.cosine,s=n.get(t),l=s.sine,c=s.cosine;return o>=0&&l>=0?a<c?1:a>c?-1:0:o<0&&l<0?a<c?-1:a>c?1:0:l<o?-1:l>o?1:0}}}]),t}(),R=0,j=function(){function t(n,r,i,o){e(this,t),this.id=++R,this.leftSE=n,n.segment=this,n.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=n,this.rings=i,this.windings=o}return n(t,null,[{key:"compare",value:function(e,t){var n=e.leftSE.point.x,r=t.leftSE.point.x,i=e.rightSE.point.x,o=t.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var a=e.leftSE.point.y,s=t.leftSE.point.y,l=e.rightSE.point.y,c=t.rightSE.point.y;if(n<r){if(s<a&&s<l)return 1;if(s>a&&s>l)return-1;var u=e.comparePoint(t.leftSE.point);if(u<0)return 1;if(u>0)return-1;var d=t.comparePoint(e.rightSE.point);return 0!==d?d:-1}if(n>r){if(a<s&&a<c)return-1;if(a>s&&a>c)return 1;var p=t.comparePoint(e.leftSE.point);if(0!==p)return p;var h=e.comparePoint(t.rightSE.point);return h<0?1:h>0?-1:1}if(a<s)return-1;if(a>s)return 1;if(i<o){var f=t.comparePoint(e.rightSE.point);if(0!==f)return f}if(i>o){var m=e.comparePoint(t.rightSE.point);if(m<0)return 1;if(m>0)return-1}if(i!==o){var g=l-a,y=i-n,v=c-s,b=o-r;if(g>y&&v<b)return 1;if(g<y&&v>b)return-1}return i>o?1:i<o||l<c?-1:l>c?1:e.id<t.id?-1:e.id>t.id?1:0}}]),n(t,[{key:"replaceRightSE",value:function(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}},{key:"comparePoint",value:function(e){if(this.isAnEndpoint(e))return 0;var t=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;var i=(e.y-t.y)/r.y,o=t.x+i*r.x;if(e.x===o)return 0;var a=(e.x-t.x)/r.x,s=t.y+a*r.y;return e.y===s?0:e.y<s?-1:1}},{key:"getIntersection",value:function(e){var t=this.bbox(),n=e.bbox(),r=y(t,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,a=e.leftSE.point,s=e.rightSE.point,l=g(t,a)&&0===this.comparePoint(a),c=g(n,i)&&0===e.comparePoint(i),u=g(t,s)&&0===this.comparePoint(s),d=g(n,o)&&0===e.comparePoint(o);if(c&&l)return d&&!u?o:!d&&u?s:null;if(c)return u&&i.x===s.x&&i.y===s.y?null:i;if(l)return d&&o.x===a.x&&o.y===a.y?null:a;if(d&&u)return null;if(d)return o;if(u)return s;var p=function(e,t,n,r){if(0===t.x)return O(n,r,e.x);if(0===r.x)return O(e,t,n.x);if(0===t.y)return I(n,r,e.y);if(0===r.y)return I(e,t,n.y);var i=C(t,r);if(0==i)return null;var o={x:n.x-e.x,y:n.y-e.y},a=C(o,t)/i,s=C(o,r)/i;return{x:(e.x+s*t.x+(n.x+a*r.x))/2,y:(e.y+s*t.y+(n.y+a*r.y))/2}}(i,this.vector(),a,e.vector());return null===p?null:g(r,p)?k.round(p.x,p.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new L(e,!0),o=new L(e,!1),a=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var s=new t(i,a,this.rings.slice(),this.windings.slice());return L.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),L.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var a=n;n=r,r=a}for(var s=0,l=r.rings.length;s<l;s++){var c=r.rings[s],u=r.windings[s],d=n.rings.indexOf(c);-1===d?(n.rings.push(c),n.windings.push(u)):n.windings[d]+=u}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};for(var t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var a=this.rings[i],s=this.windings[i],l=t.indexOf(a);-1===l?(t.push(a),n.push(s)):n[l]+=s}for(var c=[],u=[],d=0,p=t.length;d<p;d++)if(0!==n[d]){var h=t[d],f=h.poly;if(-1===u.indexOf(f))if(h.isExterior)c.push(f);else{-1===u.indexOf(f)&&u.push(f);var m=c.indexOf(h.poly);-1!==m&&c.splice(m,1)}}for(var g=0,y=c.length;g<y;g++){var v=c[g].multiPoly;-1===r.indexOf(v)&&r.push(v)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(q.type){case"union":var n=0===e.length,r=0===t.length;this._isInResult=n!==r;break;case"intersection":var i,o;e.length<t.length?(i=e.length,o=t.length):(i=t.length,o=e.length),this._isInResult=o===q.numMultiPolys&&i<o;break;case"xor":var a=Math.abs(e.length-t.length);this._isInResult=a%2==1;break;case"difference":var s=function(e){return 1===e.length&&e[0].isSubject};this._isInResult=s(e)!==s(t);break;default:throw new Error("Unrecognized operation type found ".concat(q.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,a,s=L.comparePoints(e,n);if(s<0)i=e,o=n,a=1;else{if(!(s>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,a=-1}return new t(new L(i,!0),new L(o,!1),[r],[a])}}]),t}(),D=function(){function t(n,r,i){if(e(this,t),!Array.isArray(n)||0===n.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=i,this.segments=[],"number"!=typeof n[0][0]||"number"!=typeof n[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=k.round(n[0][0],n[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var a=o,s=1,l=n.length;s<l;s++){if("number"!=typeof n[s][0]||"number"!=typeof n[s][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var c=k.round(n[s][0],n[s][1]);c.x===a.x&&c.y===a.y||(this.segments.push(j.fromRing(a,c,this)),c.x<this.bbox.ll.x&&(this.bbox.ll.x=c.x),c.y<this.bbox.ll.y&&(this.bbox.ll.y=c.y),c.x>this.bbox.ur.x&&(this.bbox.ur.x=c.x),c.y>this.bbox.ur.y&&(this.bbox.ur.y=c.y),a=c)}o.x===a.x&&o.y===a.y||this.segments.push(j.fromRing(a,o,this))}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.segments.length;t<n;t++){var r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}}]),t}(),A=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new D(n[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var i=1,o=n.length;i<o;i++){var a=new D(n[i],this,!1);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=this.exteriorRing.getSweepEvents(),t=0,n=this.interiorRings.length;t<n;t++)for(var r=this.interiorRings[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),N=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof n[0][0][0]&&(n=[n])}catch(s){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var i=0,o=n.length;i<o;i++){var a=new A(n[i],this);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++)for(var r=this.polys[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),F=function(){function t(n){e(this,t),this.events=n;for(var r=0,i=n.length;r<i;r++)n[r].segment.ringOut=this;this.poly=null}return n(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var a=null,s=o.leftSE,l=o.rightSE,c=[s],u=s.point,d=[];a=s,s=l,c.push(s),s.point!==u;)for(;;){var p=s.getAvailableLinkedEvents();if(0===p.length){var h=c[0].point,f=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(h.x,",")+" ".concat(h.y,"]. Last matching segment found ends at")+" [".concat(f.x,", ").concat(f.y,"]."))}if(1===p.length){l=p[0].otherSE;break}for(var m=null,g=0,y=d.length;g<y;g++)if(d[g].point===s.point){m=g;break}if(null===m){d.push({index:c.length,point:s.point});var v=s.getLeftmostComparator(a);l=p.sort(v)[0].otherSE;break}var b=d.splice(m)[0],_=c.splice(b.index);_.unshift(_[0].otherSE),n.push(new t(_.reverse()))}n.push(new t(c))}}return n}}]),n(t,[{key:"getGeom",value:function(){for(var e=this.events[0].point,t=[e],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==M(i,e,o)&&(t.push(i),e=i)}if(1===t.length)return null;var a=t[0],s=t[1];0===M(a,e,s)&&t.shift(),t.push(t[0]);for(var l=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:t.length-1,u=this.isExteriorRing()?t.length:-1,d=[],p=c;p!=u;p+=l)d.push([t[p].x,t[p].y]);return d}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var e=this.events[0],t=1,n=this.events.length;t<n;t++){var r=this.events[t];L.compare(e,r)>0&&(e=r)}for(var i=e.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}]),t}(),z=function(){function t(n){e(this,t),this.exteriorRing=n,n.poly=this,this.interiorRings=[]}return n(t,[{key:"addInterior",value:function(e){this.interiorRings.push(e),e.poly=this}},{key:"getGeom",value:function(){var e=[this.exteriorRing.getGeom()];if(null===e[0])return null;for(var t=0,n=this.interiorRings.length;t<n;t++){var r=this.interiorRings[t].getGeom();null!==r&&e.push(r)}return e}}]),t}(),B=function(){function t(n){e(this,t),this.rings=n,this.polys=this._composePolys(n)}return n(t,[{key:"getGeom",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++){var r=this.polys[t].getGeom();null!==r&&e.push(r)}return e}},{key:"_composePolys",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new z(i));else{var o=i.enclosingRing();o.poly||t.push(new z(o)),o.poly.addInterior(i)}}return t}}]),t}(),U=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.compare;e(this,t),this.queue=n,this.tree=new u(r),this.segments=[]}return n(t,[{key:"process",value:function(e){var t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;var r=e.isLeft?this.tree.insert(t):this.tree.find(t);if(!r)throw new Error("Unable to find segment #".concat(t.id," ")+"[".concat(t.leftSE.point.x,", ").concat(t.leftSE.point.y,"] -> ")+"[".concat(t.rightSE.point.x,", ").concat(t.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,a=void 0,s=void 0;void 0===a;)null===(i=this.tree.prev(i))?a=null:void 0===i.key.consumedBy&&(a=i.key);for(;void 0===s;)null===(o=this.tree.next(o))?s=null:void 0===o.key.consumedBy&&(s=o.key);if(e.isLeft){var l=null;if(a){var c=a.getIntersection(t);if(null!==c&&(t.isAnEndpoint(c)||(l=c),!a.isAnEndpoint(c)))for(var u=this._splitSafely(a,c),d=0,p=u.length;d<p;d++)n.push(u[d])}var h=null;if(s){var f=s.getIntersection(t);if(null!==f&&(t.isAnEndpoint(f)||(h=f),!s.isAnEndpoint(f)))for(var m=this._splitSafely(s,f),g=0,y=m.length;g<y;g++)n.push(m[g])}if(null!==l||null!==h){var v;v=null===l?h:null===h||L.comparePoints(l,h)<=0?l:h,this.queue.remove(t.rightSE),n.push(t.rightSE);for(var b=t.split(v),_=0,w=b.length;_<w;_++)n.push(b[_])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=a)}else{if(a&&s){var x=a.getIntersection(s);if(null!==x){if(!a.isAnEndpoint(x))for(var k=this._splitSafely(a,x),C=0,S=k.length;C<S;C++)n.push(k[C]);if(!s.isAnEndpoint(x))for(var M=this._splitSafely(s,x),T=0,E=M.length;T<E;T++)n.push(M[T])}}this.tree.remove(t)}return n}},{key:"_splitSafely",value:function(e,t){this.tree.remove(e);var n=e.rightSE;this.queue.remove(n);var r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.insert(e),r}}]),t}(),$="undefined"!=typeof process&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,V="undefined"!=typeof process&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,q=new(function(){function t(){e(this,t)}return n(t,[{key:"run",value:function(e,t,n){q.type=e,k.reset();for(var r=[new N(t,!0)],i=0,o=n.length;i<o;i++)r.push(new N(n[i],!1));if(q.numMultiPolys=r.length,"difference"===q.type)for(var a=r[0],s=1;s<r.length;)null!==y(r[s].bbox,a.bbox)?s++:r.splice(s,1);if("intersection"===q.type)for(var l=0,c=r.length;l<c;l++)for(var d=r[l],p=l+1,h=r.length;p<h;p++)if(null===y(d.bbox,r[p].bbox))return[];for(var f=new u(L.compare),m=0,g=r.length;m<g;m++)for(var v=r[m].getSweepEvents(),b=0,_=v.length;b<_;b++)if(f.insert(v[b]),f.size>$)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var w=new U(f),x=f.size,C=f.pop();C;){var S=C.key;if(f.size===x){var M=S.segment;throw new Error("Unable to pop() ".concat(S.isLeft?"left":"right"," SweepEvent ")+"[".concat(S.point.x,", ").concat(S.point.y,"] from segment #").concat(M.id," ")+"[".concat(M.leftSE.point.x,", ").concat(M.leftSE.point.y,"] -> ")+"[".concat(M.rightSE.point.x,", ").concat(M.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(f.size>$)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(w.segments.length>V)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var T=w.process(S),E=0,P=T.length;E<P;E++){var I=T[E];void 0===I.consumedBy&&f.insert(I)}x=f.size,C=f.pop()}k.reset();var O=F.factory(w.segments);return new B(O).getGeom()}}]),t}());return{union:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("union",e,n)},intersection:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("intersection",e,n)},xor:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("xor",e,n)},difference:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("difference",e,n)}}}()},2582:function(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*u/s+d)),Math.min(o,Math.floor(r+(s-l)*u/s+d)),a)}var p=n[r],h=i,f=o;for(t(n,i,r),a(n[o],p)>0&&t(n,i,o);h<f;){for(t(n,h,f),h++,f--;a(n[h],p)<0;)h++;for(;a(n[f],p)>0;)f--}0===a(n[i],p)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function h(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!h(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;h(e,s)&&(t.leaf?n.push(a):p(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!h(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(h(e,o)){if(t.leaf||p(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf){var u=i(e,a.children,t);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);m(e,u,d,l,this.compareMinY);for(var p=u;p<=d;p+=l){var h=Math.min(p+l-1,d);i.children.push(this._build(e,p,h,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=u(l),d=(p=e,h=l,(Math.max(h.maxX,p.maxX)-Math.min(h.minX,p.minX))*(Math.max(h.maxY,p.maxY)-Math.min(h.minY,p.minY))-c);d<o?(o=d,i=c<i?c:i,a=l):d===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}var p,h;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,d,p=1/0,h=1/0,f=t;f<=n-t;f++){var m=a(e,0,f,this.toBBox),g=a(e,f,n,this.toBBox),y=(i=m,o=g,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,d-l)),v=u(m)+u(g);y<p?(p=y,r=f,h=v<h?v:h):y===p&&v<h&&(h=v,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),c=d(o)+d(l),u=t;u<n-t;u++){var p=e.children[u];s(o,e.leaf?i(p):p),c+=d(o)}for(var h=n-t-1;h>=t;h--){var f=e.children[h];s(l,e.leaf?i(f):f),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(8706)})()},86216:(e,t,n)=>{var r=n(5789),i=n(12641);e.exports.hint=function(e,t){var n,o=[];if("object"===typeof e)n=e;else{if("string"!==typeof e)return[{message:"Expected string or object as input",line:0}];try{n=r.parse(e)}catch(s){var a=s.message.match(/line (\d+)/);return[{line:parseInt(a[1],10)-1,message:s.message,error:s}]}}return o=o.concat(i.hint(n,t))}},12641:(e,t,n)=>{var r=n(78181);e.exports.hint=function(e,t){var n=[],i=0,o=10,a=6;function s(e){if(t&&!1===t.noDuplicateMembers||!e.__duplicateProperties__||n.push({message:"An object contained duplicate members, making parsing ambigous: "+e.__duplicateProperties__.join(", "),line:e.__line__}),!c(e,"type","string"))if(f[e.type])e&&f[e.type](e);else{var r=m[e.type.toLowerCase()];void 0!==r?n.push({message:"Expected "+r+" but got "+e.type+" (case sensitive)",line:e.__line__}):n.push({message:"The type "+e.type+" is unknown",line:e.__line__})}}function l(e,t){return e.every((function(e){return null!==e&&typeof e===t}))}function c(e,t,r){if("undefined"===typeof e[t])return n.push({message:'"'+t+'" member required',line:e.__line__});if("array"===r){if(!Array.isArray(e[t]))return n.push({message:'"'+t+'" member should be an array, but is an '+typeof e[t]+" instead",line:e.__line__})}else{if("object"===r&&e[t]&&e[t].constructor!==Object)return n.push({message:'"'+t+'" member should be '+r+", but is an "+e[t].constructor.name+" instead",line:e.__line__});if(r&&typeof e[t]!==r)return n.push({message:'"'+t+'" member should be '+r+", but is an "+typeof e[t]+" instead",line:e.__line__})}}function u(e,r){if(!Array.isArray(e))return n.push({message:"position should be an array, is a "+typeof e+" instead",line:e.__line__||r});if(e.length<2)return n.push({message:"position must have 2 or more elements",line:e.__line__||r});if(e.length>3)return n.push({message:"position should not have more than 3 elements",level:"message",line:e.__line__||r});if(!l(e,"number"))return n.push({message:"each element in a position must be a number",line:e.__line__||r});if(t&&t.precisionWarning){if(i===o)return i+=1,n.push({message:"truncated warnings: we've encountered coordinate precision warning "+o+" times, no more warnings will be reported",level:"message",line:e.__line__||r});i<o&&e.forEach((function(t){var o=0,s=String(t).split(".")[1];if(void 0!==s&&(o=s.length),o>a)return i+=1,n.push({message:"precision of coordinates should be reduced",level:"message",line:e.__line__||r})}))}}function d(e,t,r,i){if(void 0===i&&void 0!==e.__line__&&(i=e.__line__),0===r)return u(e,i);if(1===r&&t)if("LinearRing"===t){if(!Array.isArray(e[e.length-1]))return n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i}),!0;if(e.length<4&&n.push({message:"a LinearRing of coordinates needs to have four or more positions",line:i}),e.length&&(e[e.length-1].length!==e[0].length||!e[e.length-1].every((function(t,n){return e[0][n]===t}))))return n.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:i}),!0}else if("Line"===t&&e.length<2)return n.push({message:"a line needs to have two or more coordinates to be valid",line:i});if(Array.isArray(e))return e.map((function(e){return d(e,t,r-1,e.__line__||i)})).some((function(e){return e}));n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i})}function p(e){if(e.bbox)return Array.isArray(e.bbox)?(l(e.bbox,"number")||n.push({message:"each element in a bbox member must be a number",line:e.bbox.__line__}),4!==e.bbox.length&&6!==e.bbox.length&&n.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:e.bbox.__line__}),n.length):void n.push({message:"bbox member must be an array of numbers, but is a "+typeof e.bbox,line:e.__line__})}function h(e){p(e),void 0!==e.id&&"string"!==typeof e.id&&"number"!==typeof e.id&&n.push({message:'Feature "id" member must have a string or number value',line:e.__line__}),void 0!==e.features&&n.push({message:'Feature object cannot contain a "features" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'Feature object cannot contain a "coordinates" member',line:e.__line__}),"Feature"!==e.type&&n.push({message:"GeoJSON features must have a type=feature member",line:e.__line__}),c(e,"properties","object"),c(e,"geometry","object")||e.geometry&&s(e.geometry)}var f={Point:function(e){var t;p(e),void 0!==(t=e).properties&&n.push({message:'geometry object cannot contain a "properties" member',line:t.__line__}),void 0!==t.geometry&&n.push({message:'geometry object cannot contain a "geometry" member',line:t.__line__}),void 0!==t.features&&n.push({message:'geometry object cannot contain a "features" member',line:t.__line__}),c(e,"coordinates","array")||u(e.coordinates)},Feature:h,MultiPoint:function(e){p(e),c(e,"coordinates","array")||d(e.coordinates,"",1)},LineString:function(e){p(e),c(e,"coordinates","array")||d(e.coordinates,"Line",1)},MultiLineString:function(e){p(e),c(e,"coordinates","array")||d(e.coordinates,"Line",2)},FeatureCollection:function(e){if(p(e),void 0!==e.properties&&n.push({message:'FeatureCollection object cannot contain a "properties" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:e.__line__}),!c(e,"features","array")){if(!l(e.features,"object"))return n.push({message:"Every feature must be an object",line:e.__line__});e.features.forEach(h)}},GeometryCollection:function(e){p(e),c(e,"geometries","array")||(l(e.geometries,"object")||n.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:e.__line__}),1===e.geometries.length&&n.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:e.geometries.__line__}),e.geometries.forEach((function(t){t&&("GeometryCollection"===t.type&&n.push({message:"GeometryCollection should avoid nested geometry collections",line:e.geometries.__line__}),s(t))})))},Polygon:function(e){p(e),c(e,"coordinates","array")||d(e.coordinates,"LinearRing",2)||t&&!0===t.ignoreRightHandRule||r(e,n)},MultiPolygon:function(e){p(e),c(e,"coordinates","array")||d(e.coordinates,"LinearRing",3)||t&&!0===t.ignoreRightHandRule||r(e,n)}},m=Object.keys(f).reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});return"object"!==typeof e||null===e||void 0===e?(n.push({message:"The root of a GeoJSON object must be an object.",line:0}),n):(s(e),n.forEach((function(e){({}).hasOwnProperty.call(e,"line")&&void 0===e.line&&delete e.line})),n)}},78181:e=>{function t(e){var t=0;if(e.length>2)for(var n,r,i=0;i<e.length-1;i++)n=e[i],t+=((r=e[i+1])[0]-n[0])*(r[1]+n[1]);return t>=0}function n(e){if(e&&e.length>0){if(t(e[0]))return!1;if(!e.slice(1,e.length).every(t))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?n(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(n):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},64674:function(e,t,n){e.exports=function(){"use strict";var e=function(e,t){var n={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},r={on:function(e,t,r){if(void 0===n[e])throw new Error("Invalid event type: "+e);n[e].push({selector:t,fn:r})},render:function(e){t.store.featureChanged(e)}},i=function(e,i){for(var o=n[e],a=o.length;a--;){var s=o[a];if(s.selector(i)){s.fn.call(r,i)||t.store.render(),t.ui.updateMapClasses();break}}};return e.start.call(r),{render:e.render,stop:function(){e.stop&&e.stop()},trash:function(){e.trash&&(e.trash(),t.store.render())},combineFeatures:function(){e.combineFeatures&&e.combineFeatures()},uncombineFeatures:function(){e.uncombineFeatures&&e.uncombineFeatures()},drag:function(e){i("drag",e)},click:function(e){i("click",e)},mousemove:function(e){i("mousemove",e)},mousedown:function(e){i("mousedown",e)},mouseup:function(e){i("mouseup",e)},mouseout:function(e){i("mouseout",e)},keydown:function(e){i("keydown",e)},keyup:function(e){i("keyup",e)},touchstart:function(e){i("touchstart",e)},touchmove:function(e){i("touchmove",e)},touchend:function(e){i("touchend",e)},tap:function(e){i("tap",e)}}},t=6378137;function r(e){var t=0;if(e&&e.length>0){t+=Math.abs(i(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(i(e[n]))}return t}function i(e){var n,r,i,a,s,l,c=0,u=e.length;if(u>2){for(l=0;l<u;l++)l===u-2?(i=u-2,a=u-1,s=0):l===u-1?(i=u-1,a=0,s=1):(i=l,a=l+1,s=l+2),n=e[i],r=e[a],c+=(o(e[s][0])-o(n[0]))*Math.sin(o(r[1]));c=c*t*t/2}return c}function o(e){return e*Math.PI/180}var a={geometry:function e(t){var n,i=0;switch(t.type){case"Polygon":return r(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)i+=r(t.coordinates[n]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)i+=e(t.geometries[n]);return i}},ring:i},s="mapboxgl-ctrl",l="mapbox-gl-draw_ctrl-draw-btn",c="mapbox-gl-draw_line",u="mapbox-gl-draw_polygon",d="mapbox-gl-draw_point",p="mapbox-gl-draw_trash",h="mapbox-gl-draw_combine",f="mapbox-gl-draw_uncombine",m="mapboxgl-ctrl-group",g="active",y="mapbox-gl-draw_boxselect",v="mapbox-gl-draw-hot",b="mapbox-gl-draw-cold",_="add",w="move",x="drag",k="pointer",C="none",S={POLYGON:"polygon",LINE:"line_string",POINT:"point"},M="Feature",T="Polygon",E="LineString",P="Point",I="FeatureCollection",O="Multi",L="MultiPoint",R="MultiLineString",j="MultiPolygon",D={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},A="draw.create",N="draw.delete",F="draw.update",z="draw.selectionchange",B="draw.modechange",U="draw.actionable",$="draw.render",V="draw.combine",q="draw.uncombine",Z="move",H="change_coordinates",G="feature",W="midpoint",Y="vertex",K="true",X="false",J=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],Q={Point:0,LineString:1,Polygon:2};function ee(e,t){var n=Q[e.geometry.type]-Q[t.geometry.type];return 0===n&&e.geometry.type===T?e.area-t.area:n}function te(e){if(this._items={},this._nums={},this._length=e?e.length:0,e)for(var t=0,n=e.length;t<n;t++)this.add(e[t]),void 0!==e[t]&&("string"==typeof e[t]?this._items[e[t]]=t:this._nums[e[t]]=t)}te.prototype.add=function(e){return this.has(e)||(this._length++,"string"==typeof e?this._items[e]=this._length:this._nums[e]=this._length),this},te.prototype.delete=function(e){return!1===this.has(e)||(this._length--,delete this._items[e],delete this._nums[e]),this},te.prototype.has=function(e){return("string"==typeof e||"number"==typeof e)&&(void 0!==this._items[e]||void 0!==this._nums[e])},te.prototype.values=function(){var e=this,t=[];return Object.keys(this._items).forEach((function(n){t.push({k:n,v:e._items[n]})})),Object.keys(this._nums).forEach((function(n){t.push({k:JSON.parse(n),v:e._nums[n]})})),t.sort((function(e,t){return e.v-t.v})).map((function(e){return e.k}))},te.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var ne=[G,W,Y],re={click:function(e,t,n){return ie(e,t,n,n.options.clickBuffer)},touch:function(e,t,n){return ie(e,t,n,n.options.touchBuffer)}};function ie(e,t,n,r){if(null===n.map)return[];var i=e?function(e,t){return void 0===t&&(t=0),[[e.point.x-t,e.point.y-t],[e.point.x+t,e.point.y+t]]}(e,r):t,o={};n.options.styles&&(o.layers=n.options.styles.map((function(e){return e.id})));var s=n.map.queryRenderedFeatures(i,o).filter((function(e){return-1!==ne.indexOf(e.properties.meta)})),l=new te,c=[];return s.forEach((function(e){var t=e.properties.id;l.has(t)||(l.add(t),c.push(e))})),function(e){return e.map((function(e){return e.geometry.type===T&&(e.area=a.geometry({type:M,property:{},geometry:e.geometry})),e})).sort(ee).map((function(e){return delete e.area,e}))}(c)}function oe(e,t){var n=re.click(e,null,t),r={mouse:C};return n[0]&&(r.mouse=n[0].properties.active===K?w:k,r.feature=n[0].properties.meta),-1!==t.events.currentModeName().indexOf("draw")&&(r.mouse=_),t.ui.queueMapClasses(r),t.ui.updateMapClasses(),n[0]}function ae(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function se(e,t,n){void 0===n&&(n={});var r=null!=n.fineTolerance?n.fineTolerance:4,i=null!=n.grossTolerance?n.grossTolerance:12,o=null!=n.interval?n.interval:500;e.point=e.point||t.point,e.time=e.time||t.time;var a=ae(e.point,t.point);return a<r||a<i&&t.time-e.time<o}function le(e,t,n){void 0===n&&(n={});var r=null!=n.tolerance?n.tolerance:25,i=null!=n.interval?n.interval:250;return e.point=e.point||t.point,e.time=e.time||t.time,ae(e.point,t.point)<r&&t.time-e.time<i}function ce(e,t){return e(t={exports:{}},t.exports),t.exports}var ue=ce((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var r=Math.log(Math.pow(2,e))/Math.log(n),i=2;r===1/0;i*=2)r=Math.log(Math.pow(2,e/i))/Math.log(n)*i;var o=r-Math.floor(r),a="";for(i=0;i<Math.floor(r);i++)a=Math.floor(Math.random()*n).toString(n)+a;if(o){var s=Math.pow(n,o);a=Math.floor(Math.random()*s).toString(n)+a}var l=parseInt(a,n);return l!==1/0&&l>=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,r){var i=function(i){var a=0;do{if(a++>10){if(!r)throw new Error("too many ID collisions, use more bits");e+=r}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=i,s},o=i.hats={};return i.get=function(e){return i.hats[e]},i.set=function(e,t){return i.hats[e]=t,i},i.bits=e||128,i.base=n||16,i}})),de=function(e,t){this.ctx=e,this.properties=t.properties||{},this.coordinates=t.geometry.coordinates,this.id=t.id||ue(),this.type=t.geometry.type};de.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},de.prototype.incomingCoords=function(e){this.setCoordinates(e)},de.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},de.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},de.prototype.setProperty=function(e,t){this.properties[e]=t},de.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:M,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},de.prototype.internal=function(e){var t={id:this.id,meta:G,"meta:type":this.type,active:X,mode:e};if(this.ctx.options.userProperties)for(var n in this.properties)t["user_"+n]=this.properties[n];return{type:M,properties:t,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var pe=function(e,t){de.call(this,e,t)};(pe.prototype=Object.create(de.prototype)).isValid=function(){return"number"==typeof this.coordinates[0]&&"number"==typeof this.coordinates[1]},pe.prototype.updateCoordinate=function(e,t,n){this.coordinates=3===arguments.length?[t,n]:[e,t],this.changed()},pe.prototype.getCoordinate=function(){return this.getCoordinates()};var he=function(e,t){de.call(this,e,t)};(he.prototype=Object.create(de.prototype)).isValid=function(){return this.coordinates.length>1},he.prototype.addCoordinate=function(e,t,n){this.changed();var r=parseInt(e,10);this.coordinates.splice(r,0,[t,n])},he.prototype.getCoordinate=function(e){var t=parseInt(e,10);return JSON.parse(JSON.stringify(this.coordinates[t]))},he.prototype.removeCoordinate=function(e){this.changed(),this.coordinates.splice(parseInt(e,10),1)},he.prototype.updateCoordinate=function(e,t,n){var r=parseInt(e,10);this.coordinates[r]=[t,n],this.changed()};var fe=function(e,t){de.call(this,e,t),this.coordinates=this.coordinates.map((function(e){return e.slice(0,-1)}))};(fe.prototype=Object.create(de.prototype)).isValid=function(){return 0!==this.coordinates.length&&this.coordinates.every((function(e){return e.length>2}))},fe.prototype.incomingCoords=function(e){this.coordinates=e.map((function(e){return e.slice(0,-1)})),this.changed()},fe.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},fe.prototype.addCoordinate=function(e,t,n){this.changed();var r=e.split(".").map((function(e){return parseInt(e,10)}));this.coordinates[r[0]].splice(r[1],0,[t,n])},fe.prototype.removeCoordinate=function(e){this.changed();var t=e.split(".").map((function(e){return parseInt(e,10)})),n=this.coordinates[t[0]];n&&(n.splice(t[1],1),n.length<3&&this.coordinates.splice(t[0],1))},fe.prototype.getCoordinate=function(e){var t=e.split(".").map((function(e){return parseInt(e,10)})),n=this.coordinates[t[0]];return JSON.parse(JSON.stringify(n[t[1]]))},fe.prototype.getCoordinates=function(){return this.coordinates.map((function(e){return e.concat([e[0]])}))},fe.prototype.updateCoordinate=function(e,t,n){this.changed();var r=e.split("."),i=parseInt(r[0],10),o=parseInt(r[1],10);void 0===this.coordinates[i]&&(this.coordinates[i]=[]),this.coordinates[i][o]=[t,n]};var me={MultiPoint:pe,MultiLineString:he,MultiPolygon:fe},ge=function(e,t,n,r,i){var o=n.split("."),a=parseInt(o[0],10),s=o[1]?o.slice(1).join("."):null;return e[a][t](s,r,i)},ye=function(e,t){if(de.call(this,e,t),delete this.coordinates,this.model=me[t.geometry.type],void 0===this.model)throw new TypeError(t.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(t.geometry.coordinates)};function ve(e){this.map=e.map,this.drawConfig=JSON.parse(JSON.stringify(e.options||{})),this._ctx=e}(ye.prototype=Object.create(de.prototype))._coordinatesToFeatures=function(e){var t=this,n=this.model.bind(this);return e.map((function(e){return new n(t.ctx,{id:ue(),type:M,properties:{},geometry:{coordinates:e,type:t.type.replace("Multi","")}})}))},ye.prototype.isValid=function(){return this.features.every((function(e){return e.isValid()}))},ye.prototype.setCoordinates=function(e){this.features=this._coordinatesToFeatures(e),this.changed()},ye.prototype.getCoordinate=function(e){return ge(this.features,"getCoordinate",e)},ye.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map((function(e){return e.type===T?e.getCoordinates():e.coordinates}))))},ye.prototype.updateCoordinate=function(e,t,n){ge(this.features,"updateCoordinate",e,t,n),this.changed()},ye.prototype.addCoordinate=function(e,t,n){ge(this.features,"addCoordinate",e,t,n),this.changed()},ye.prototype.removeCoordinate=function(e){ge(this.features,"removeCoordinate",e),this.changed()},ye.prototype.getFeatures=function(){return this.features},ve.prototype.setSelected=function(e){return this._ctx.store.setSelected(e)},ve.prototype.setSelectedCoordinates=function(e){var t=this;this._ctx.store.setSelectedCoordinates(e),e.reduce((function(e,n){return void 0===e[n.feature_id]&&(e[n.feature_id]=!0,t._ctx.store.get(n.feature_id).changed()),e}),{})},ve.prototype.getSelected=function(){return this._ctx.store.getSelected()},ve.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},ve.prototype.isSelected=function(e){return this._ctx.store.isSelected(e)},ve.prototype.getFeature=function(e){return this._ctx.store.get(e)},ve.prototype.select=function(e){return this._ctx.store.select(e)},ve.prototype.deselect=function(e){return this._ctx.store.deselect(e)},ve.prototype.deleteFeature=function(e,t){return void 0===t&&(t={}),this._ctx.store.delete(e,t)},ve.prototype.addFeature=function(e){return this._ctx.store.add(e)},ve.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},ve.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},ve.prototype.setActionableState=function(e){void 0===e&&(e={});var t={trash:e.trash||!1,combineFeatures:e.combineFeatures||!1,uncombineFeatures:e.uncombineFeatures||!1};return this._ctx.events.actionable(t)},ve.prototype.changeMode=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this._ctx.events.changeMode(e,t,n)},ve.prototype.updateUIClasses=function(e){return this._ctx.ui.queueMapClasses(e)},ve.prototype.activateUIButton=function(e){return this._ctx.ui.setActiveButton(e)},ve.prototype.featuresAt=function(e,t,n){if(void 0===n&&(n="click"),"click"!==n&&"touch"!==n)throw new Error("invalid buffer type");return re[n](e,t,this._ctx)},ve.prototype.newFeature=function(e){var t=e.geometry.type;return t===P?new pe(this._ctx,e):t===E?new he(this._ctx,e):t===T?new fe(this._ctx,e):new ye(this._ctx,e)},ve.prototype.isInstanceOf=function(e,t){if(e===P)return t instanceof pe;if(e===E)return t instanceof he;if(e===T)return t instanceof fe;if("MultiFeature"===e)return t instanceof ye;throw new Error("Unknown feature class: "+e)},ve.prototype.doRender=function(e){return this._ctx.store.featureChanged(e)},ve.prototype.onSetup=function(){},ve.prototype.onDrag=function(){},ve.prototype.onClick=function(){},ve.prototype.onMouseMove=function(){},ve.prototype.onMouseDown=function(){},ve.prototype.onMouseUp=function(){},ve.prototype.onMouseOut=function(){},ve.prototype.onKeyUp=function(){},ve.prototype.onKeyDown=function(){},ve.prototype.onTouchStart=function(){},ve.prototype.onTouchMove=function(){},ve.prototype.onTouchEnd=function(){},ve.prototype.onTap=function(){},ve.prototype.onStop=function(){},ve.prototype.onTrash=function(){},ve.prototype.onCombineFeature=function(){},ve.prototype.onUncombineFeature=function(){},ve.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var be={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},_e=Object.keys(be);function we(e){var t=Object.keys(e);return function(n,r){void 0===r&&(r={});var i={},o=t.reduce((function(t,n){return t[n]=e[n],t}),new ve(n));return{start:function(){var t=this;i=o.onSetup(r),_e.forEach((function(n){var r,a=be[n],s=function(){return!1};e[a]&&(s=function(){return!0}),t.on(n,s,(r=a,function(e){return o[r](i,e)}))}))},stop:function(){o.onStop(i)},trash:function(){o.onTrash(i)},combineFeatures:function(){o.onCombineFeatures(i)},uncombineFeatures:function(){o.onUncombineFeatures(i)},render:function(e,t){o.toDisplayFeatures(i,e,t)}}}}function xe(e){return[].concat(e).filter((function(e){return void 0!==e}))}function ke(){var e=this;if(!e.ctx.map||void 0===e.ctx.map.getSource(v))return l();var t=e.ctx.events.currentModeName();e.ctx.ui.queueMapClasses({mode:t});var n=[],r=[];e.isDirty?r=e.getAllIds():(n=e.getChangedIds().filter((function(t){return void 0!==e.get(t)})),r=e.sources.hot.filter((function(t){return t.properties.id&&-1===n.indexOf(t.properties.id)&&void 0!==e.get(t.properties.id)})).map((function(e){return e.properties.id}))),e.sources.hot=[];var i=e.sources.cold.length;e.sources.cold=e.isDirty?[]:e.sources.cold.filter((function(e){var t=e.properties.id||e.properties.parent;return-1===n.indexOf(t)}));var o=i!==e.sources.cold.length||r.length>0;function a(n,r){var i=e.get(n).internal(t);e.ctx.events.currentModeRender(i,(function(t){e.sources[r].push(t)}))}if(n.forEach((function(e){return a(e,"hot")})),r.forEach((function(e){return a(e,"cold")})),o&&e.ctx.map.getSource(b).setData({type:I,features:e.sources.cold}),e.ctx.map.getSource(v).setData({type:I,features:e.sources.hot}),e._emitSelectionChange&&(e.ctx.map.fire(z,{features:e.getSelected().map((function(e){return e.toGeoJSON()})),points:e.getSelectedCoordinates().map((function(e){return{type:M,properties:{},geometry:{type:P,coordinates:e.coordinates}}}))}),e._emitSelectionChange=!1),e._deletedFeaturesToEmit.length){var s=e._deletedFeaturesToEmit.map((function(e){return e.toGeoJSON()}));e._deletedFeaturesToEmit=[],e.ctx.map.fire(N,{features:s})}function l(){e.isDirty=!1,e.clearChangedIds()}l(),e.ctx.map.fire($,{})}function Ce(e){var t,n=this;this._features={},this._featureIds=new te,this._selectedFeatureIds=new te,this._selectedCoordinates=[],this._changedFeatureIds=new te,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=e,this.sources={hot:[],cold:[]},this.render=function(){t||(t=requestAnimationFrame((function(){t=null,ke.call(n)})))},this.isDirty=!1}function Se(e,t){var n=e._selectedCoordinates.filter((function(t){return e._selectedFeatureIds.has(t.feature_id)}));e._selectedCoordinates.length===n.length||t.silent||(e._emitSelectionChange=!0),e._selectedCoordinates=n}Ce.prototype.createRenderBatch=function(){var e=this,t=this.render,n=0;return this.render=function(){n++},function(){e.render=t,n>0&&e.render()}},Ce.prototype.setDirty=function(){return this.isDirty=!0,this},Ce.prototype.featureChanged=function(e){return this._changedFeatureIds.add(e),this},Ce.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},Ce.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},Ce.prototype.getAllIds=function(){return this._featureIds.values()},Ce.prototype.add=function(e){return this.featureChanged(e.id),this._features[e.id]=e,this._featureIds.add(e.id),this},Ce.prototype.delete=function(e,t){var n=this;return void 0===t&&(t={}),xe(e).forEach((function(e){n._featureIds.has(e)&&(n._featureIds.delete(e),n._selectedFeatureIds.delete(e),t.silent||-1===n._deletedFeaturesToEmit.indexOf(n._features[e])&&n._deletedFeaturesToEmit.push(n._features[e]),delete n._features[e],n.isDirty=!0)})),Se(this,t),this},Ce.prototype.get=function(e){return this._features[e]},Ce.prototype.getAll=function(){var e=this;return Object.keys(this._features).map((function(t){return e._features[t]}))},Ce.prototype.select=function(e,t){var n=this;return void 0===t&&(t={}),xe(e).forEach((function(e){n._selectedFeatureIds.has(e)||(n._selectedFeatureIds.add(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))})),this},Ce.prototype.deselect=function(e,t){var n=this;return void 0===t&&(t={}),xe(e).forEach((function(e){n._selectedFeatureIds.has(e)&&(n._selectedFeatureIds.delete(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))})),Se(this,t),this},Ce.prototype.clearSelected=function(e){return void 0===e&&(e={}),this.deselect(this._selectedFeatureIds.values(),{silent:e.silent}),this},Ce.prototype.setSelected=function(e,t){var n=this;return void 0===t&&(t={}),e=xe(e),this.deselect(this._selectedFeatureIds.values().filter((function(t){return-1===e.indexOf(t)})),{silent:t.silent}),this.select(e.filter((function(e){return!n._selectedFeatureIds.has(e)})),{silent:t.silent}),this},Ce.prototype.setSelectedCoordinates=function(e){return this._selectedCoordinates=e,this._emitSelectionChange=!0,this},Ce.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},Ce.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},Ce.prototype.getSelected=function(){var e=this;return this._selectedFeatureIds.values().map((function(t){return e.get(t)}))},Ce.prototype.getSelectedCoordinates=function(){var e=this;return this._selectedCoordinates.map((function(t){return{coordinates:e.get(t.feature_id).getCoordinate(t.coord_path)}}))},Ce.prototype.isSelected=function(e){return this._selectedFeatureIds.has(e)},Ce.prototype.setFeatureProperty=function(e,t,n){this.get(e).setProperty(t,n),this.featureChanged(e)},Ce.prototype.storeMapConfig=function(){var e=this;J.forEach((function(t){e.ctx.map[t]&&(e._mapInitialConfig[t]=e.ctx.map[t].isEnabled())}))},Ce.prototype.restoreMapConfig=function(){var e=this;Object.keys(this._mapInitialConfig).forEach((function(t){e._mapInitialConfig[t]?e.ctx.map[t].enable():e.ctx.map[t].disable()}))},Ce.prototype.getInitialConfigValue=function(e){return void 0===this._mapInitialConfig[e]||this._mapInitialConfig[e]};var Me=function(){for(var e=arguments,t={},n=0;n<arguments.length;n++){var r=e[n];for(var i in r)Te.call(r,i)&&(t[i]=r[i])}return t},Te=Object.prototype.hasOwnProperty,Ee=["mode","feature","mouse"];function Pe(t){var n=null,r=null,i={onRemove:function(){return t.map.off("load",i.connect),clearInterval(r),i.removeLayers(),t.store.restoreMapConfig(),t.ui.removeButtons(),t.events.removeEventListeners(),t.ui.clearMapClasses(),t.map=null,t.container=null,t.store=null,n&&n.parentNode&&n.parentNode.removeChild(n),n=null,this},connect:function(){t.map.off("load",i.connect),clearInterval(r),i.addLayers(),t.store.storeMapConfig(),t.events.addEventListeners()},onAdd:function(o){var a=o.fire;return o.fire=function(e,t){var n=arguments;return 1===a.length&&1!==arguments.length&&(n=[Me({},{type:e},t)]),a.apply(o,n)},t.map=o,t.events=function(t){var n=Object.keys(t.options.modes).reduce((function(e,n){return e[n]=we(t.options.modes[n]),e}),{}),r={},i={},o={},a=null,s=null;o.drag=function(e,n){n({point:e.point,time:(new Date).getTime()})?(t.ui.queueMapClasses({mouse:x}),s.drag(e)):e.originalEvent.stopPropagation()},o.mousedrag=function(e){o.drag(e,(function(e){return!se(r,e)}))},o.touchdrag=function(e){o.drag(e,(function(e){return!le(i,e)}))},o.mousemove=function(e){if(1===(void 0!==e.originalEvent.buttons?e.originalEvent.buttons:e.originalEvent.which))return o.mousedrag(e);var n=oe(e,t);e.featureTarget=n,s.mousemove(e)},o.mousedown=function(e){r={time:(new Date).getTime(),point:e.point};var n=oe(e,t);e.featureTarget=n,s.mousedown(e)},o.mouseup=function(e){var n=oe(e,t);e.featureTarget=n,se(r,{point:e.point,time:(new Date).getTime()})?s.click(e):s.mouseup(e)},o.mouseout=function(e){s.mouseout(e)},o.touchstart=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){i={time:(new Date).getTime(),point:e.point};var n=re.touch(e,null,t)[0];e.featureTarget=n,s.touchstart(e)}},o.touchmove=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled)return s.touchmove(e),o.touchdrag(e)},o.touchend=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){var n=re.touch(e,null,t)[0];e.featureTarget=n,le(i,{time:(new Date).getTime(),point:e.point})?s.tap(e):s.touchend(e)}};var l=function(e){return!(8===e||46===e||e>=48&&e<=57)};function c(r,i,o){void 0===o&&(o={}),s.stop();var l=n[r];if(void 0===l)throw new Error(r+" is not valid");a=r;var c=l(t,i);s=e(c,t),o.silent||t.map.fire(B,{mode:r}),t.store.setDirty(),t.store.render()}o.keydown=function(e){"mapboxgl-canvas"===(e.srcElement||e.target).classList[0]&&(8!==e.keyCode&&46!==e.keyCode||!t.options.controls.trash?l(e.keyCode)?s.keydown(e):49===e.keyCode&&t.options.controls.point?c(D.DRAW_POINT):50===e.keyCode&&t.options.controls.line_string?c(D.DRAW_LINE_STRING):51===e.keyCode&&t.options.controls.polygon&&c(D.DRAW_POLYGON):(e.preventDefault(),s.trash()))},o.keyup=function(e){l(e.keyCode)&&s.keyup(e)},o.zoomend=function(){t.store.changeZoom()},o.data=function(e){if("style"===e.dataType){var n=t.setup,r=t.map,i=t.options,o=t.store;i.styles.some((function(e){return r.getLayer(e.id)}))||(n.addLayers(),o.setDirty(),o.render())}};var u={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){a=t.options.defaultMode,s=e(n[a](t),t)},changeMode:c,actionable:function(e){var n=!1;Object.keys(e).forEach((function(t){if(void 0===u[t])throw new Error("Invalid action type");u[t]!==e[t]&&(n=!0),u[t]=e[t]})),n&&t.map.fire(U,{actions:u})},currentModeName:function(){return a},currentModeRender:function(e,t){return s.render(e,t)},fire:function(e,t){o[e]&&o[e](t)},addEventListeners:function(){t.map.on("mousemove",o.mousemove),t.map.on("mousedown",o.mousedown),t.map.on("mouseup",o.mouseup),t.map.on("data",o.data),t.map.on("touchmove",o.touchmove),t.map.on("touchstart",o.touchstart),t.map.on("touchend",o.touchend),t.container.addEventListener("mouseout",o.mouseout),t.options.keybindings&&(t.container.addEventListener("keydown",o.keydown),t.container.addEventListener("keyup",o.keyup))},removeEventListeners:function(){t.map.off("mousemove",o.mousemove),t.map.off("mousedown",o.mousedown),t.map.off("mouseup",o.mouseup),t.map.off("data",o.data),t.map.off("touchmove",o.touchmove),t.map.off("touchstart",o.touchstart),t.map.off("touchend",o.touchend),t.container.removeEventListener("mouseout",o.mouseout),t.options.keybindings&&(t.container.removeEventListener("keydown",o.keydown),t.container.removeEventListener("keyup",o.keyup))},trash:function(e){s.trash(e)},combineFeatures:function(){s.combineFeatures()},uncombineFeatures:function(){s.uncombineFeatures()},getMode:function(){return a}}}(t),t.ui=function(e){var t={},n=null,r={mode:null,feature:null,mouse:null},i={mode:null,feature:null,mouse:null};function o(e){i=Me(i,e)}function a(){var t,n;if(e.container){var o=[],a=[];Ee.forEach((function(e){i[e]!==r[e]&&(o.push(e+"-"+r[e]),null!==i[e]&&a.push(e+"-"+i[e]))})),o.length>0&&(t=e.container.classList).remove.apply(t,o),a.length>0&&(n=e.container.classList).add.apply(n,a),r=Me(r,i)}}function y(e,t){void 0===t&&(t={});var r=document.createElement("button");return r.className=l+" "+t.className,r.setAttribute("title",t.title),t.container.appendChild(r),r.addEventListener("click",(function(r){if(r.preventDefault(),r.stopPropagation(),r.target===n)return v(),void t.onDeactivate();b(e),t.onActivate()}),!0),r}function v(){n&&(n.classList.remove(g),n=null)}function b(e){v();var r=t[e];r&&r&&"trash"!==e&&(r.classList.add(g),n=r)}return{setActiveButton:b,queueMapClasses:o,updateMapClasses:a,clearMapClasses:function(){o({mode:null,feature:null,mouse:null}),a()},addButtons:function(){var n=e.options.controls,r=document.createElement("div");return r.className=m+" "+s,n?(n[S.LINE]&&(t[S.LINE]=y(S.LINE,{container:r,className:c,title:"LineString tool "+(e.options.keybindings?"(l)":""),onActivate:function(){return e.events.changeMode(D.DRAW_LINE_STRING)},onDeactivate:function(){return e.events.trash()}})),n[S.POLYGON]&&(t[S.POLYGON]=y(S.POLYGON,{container:r,className:u,title:"Polygon tool "+(e.options.keybindings?"(p)":""),onActivate:function(){return e.events.changeMode(D.DRAW_POLYGON)},onDeactivate:function(){return e.events.trash()}})),n[S.POINT]&&(t[S.POINT]=y(S.POINT,{container:r,className:d,title:"Marker tool "+(e.options.keybindings?"(m)":""),onActivate:function(){return e.events.changeMode(D.DRAW_POINT)},onDeactivate:function(){return e.events.trash()}})),n.trash&&(t.trash=y("trash",{container:r,className:p,title:"Delete",onActivate:function(){e.events.trash()}})),n.combine_features&&(t.combine_features=y("combineFeatures",{container:r,className:h,title:"Combine",onActivate:function(){e.events.combineFeatures()}})),n.uncombine_features&&(t.uncombine_features=y("uncombineFeatures",{container:r,className:f,title:"Uncombine",onActivate:function(){e.events.uncombineFeatures()}})),r):r},removeButtons:function(){Object.keys(t).forEach((function(e){var n=t[e];n.parentNode&&n.parentNode.removeChild(n),delete t[e]}))}}}(t),t.container=o.getContainer(),t.store=new Ce(t),n=t.ui.addButtons(),t.options.boxSelect&&(o.boxZoom.disable(),o.dragPan.disable(),o.dragPan.enable()),o.loaded()?i.connect():(o.on("load",i.connect),r=setInterval((function(){o.loaded()&&i.connect()}),16)),t.events.start(),n},addLayers:function(){t.map.addSource(b,{data:{type:I,features:[]},type:"geojson"}),t.map.addSource(v,{data:{type:I,features:[]},type:"geojson"}),t.options.styles.forEach((function(e){t.map.addLayer(e)})),t.store.setDirty(!0),t.store.render()},removeLayers:function(){t.options.styles.forEach((function(e){t.map.getLayer(e.id)&&t.map.removeLayer(e.id)})),t.map.getSource(b)&&t.map.removeSource(b),t.map.getSource(v)&&t.map.removeSource(v)}};return t.setup=i,i}function Ie(e){return function(t){var n=t.featureTarget;return!!n&&!!n.properties&&n.properties.meta===e}}function Oe(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===K&&e.featureTarget.properties.meta===G}function Le(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===X&&e.featureTarget.properties.meta===G}function Re(e){return void 0===e.featureTarget}function je(e){var t=e.featureTarget;return!!t&&!!t.properties&&t.properties.meta===Y}function De(e){return!!e.originalEvent&&!0===e.originalEvent.shiftKey}function Ae(e){return 27===e.keyCode}function Ne(e){return 13===e.keyCode}var Fe=ze;function ze(e,t){this.x=e,this.y=t}function Be(e,t){var n=t.getBoundingClientRect();return new Fe(e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0))}function Ue(e,t,n,r){return{type:M,properties:{meta:Y,parent:e,coord_path:n,active:r?K:X},geometry:{type:P,coordinates:t}}}function $e(e,t,n){void 0===t&&(t={}),void 0===n&&(n=null);var r,i=e.geometry,o=i.type,a=i.coordinates,s=e.properties&&e.properties.id,l=[];function c(e,n){var r="",i=null;e.forEach((function(e,o){var a=null!=n?n+"."+o:String(o),c=Ue(s,e,a,u(a));if(t.midpoints&&i){var d=function(e,t,n){var r=t.geometry.coordinates,i=n.geometry.coordinates;if(r[1]>85||r[1]<-85||i[1]>85||i[1]<-85)return null;var o={lng:(r[0]+i[0])/2,lat:(r[1]+i[1])/2};return{type:M,properties:{meta:W,parent:e,lng:o.lng,lat:o.lat,coord_path:n.properties.coord_path},geometry:{type:P,coordinates:[o.lng,o.lat]}}}(s,i,c);d&&l.push(d)}i=c;var p=JSON.stringify(e);r!==p&&l.push(c),0===o&&(r=p)}))}function u(e){return!!t.selectedPaths&&-1!==t.selectedPaths.indexOf(e)}return o===P?l.push(Ue(s,a,n,u(n))):o===T?a.forEach((function(e,t){c(e,null!==n?n+"."+t:String(t))})):o===E?c(a,n):0===o.indexOf(O)&&(r=o.replace(O,""),a.forEach((function(n,i){var o={type:M,properties:e.properties,geometry:{type:r,coordinates:n}};l=l.concat($e(o,t,i))}))),l}ze.prototype={clone:function(){return new ze(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),o=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},ze.convert=function(e){return e instanceof ze?e:Array.isArray(e)?new ze(e[0],e[1]):e};var Ve=function(e){setTimeout((function(){e.map&&e.map.doubleClickZoom&&e._ctx&&e._ctx.store&&e._ctx.store.getInitialConfigValue&&e._ctx.store.getInitialConfigValue("doubleClickZoom")&&e.map.doubleClickZoom.enable()}),0)},qe=function(e){setTimeout((function(){e.map&&e.map.doubleClickZoom&&e.map.doubleClickZoom.disable()}),0)},Ze=function(e){if(!e||!e.type)return null;var t=He[e.type];return t?"geometry"===t?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===t?{type:"FeatureCollection",features:[e]}:"featurecollection"===t?e:void 0:null},He={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function Ge(e){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.reduce((function(e,t){return e.concat(Ge(t))}),[]),e;case"Feature":return e.geometry?Ge(e.geometry).map((function(t){var n={type:"Feature",properties:JSON.parse(JSON.stringify(e.properties)),geometry:t};return void 0!==e.id&&(n.id=e.id),n})):[e];case"MultiPoint":return e.coordinates.map((function(e){return{type:"Point",coordinates:e}}));case"MultiPolygon":return e.coordinates.map((function(e){return{type:"Polygon",coordinates:e}}));case"MultiLineString":return e.coordinates.map((function(e){return{type:"LineString",coordinates:e}}));case"GeometryCollection":return e.geometries.map(Ge).reduce((function(e,t){return e.concat(t)}),[]);case"Point":case"Polygon":case"LineString":return[e]}}var We=function(e){if(!e)return[];var t=Ge(Ze(e)),n=[];return t.features.forEach((function(e){e.geometry&&(n=n.concat(function e(t){return Array.isArray(t)&&t.length&&"number"==typeof t[0]?[t]:t.reduce((function(t,n){return Array.isArray(n)&&Array.isArray(n[0])?t.concat(e(n)):(t.push(n),t)}),[])}(e.geometry.coordinates)))})),n},Ye=ce((function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function r(e,t,n){var r=[],a=[],u=!0;return function e(d){var p=n?i(d):d,h={},f=!0,m={node:p,node_:d,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(f=!1)},delete:function(e){delete m.parent.node[m.key],e&&(f=!1)},remove:function(e){s(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(f=!1)},keys:null,before:function(e){h.before=e},after:function(e){h.after=e},pre:function(e){h.pre=e},post:function(e){h.post=e},stop:function(){u=!1},block:function(){f=!1}};if(!u)return m;function g(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=o(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<a.length;e++)if(a[e].node_===d){m.circular=a[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}g();var y=t.call(m,m.node);return void 0!==y&&m.update&&m.update(y),h.before&&h.before.call(m,m.node),f?("object"!=typeof m.node||null===m.node||m.circular||(a.push(m),g(),l(m.keys,(function(t,i){r.push(t),h.pre&&h.pre.call(m,m.node[t],t);var o=e(m.node[t]);n&&c.call(m.node,t)&&(m.node[t]=o.node),o.isLast=i==m.keys.length-1,o.isFirst=0==i,h.post&&h.post.call(m,o),r.pop()})),a.pop()),h.after&&h.after.call(m,m.node),m):m}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return l(o(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!c.call(t,r)){t=void 0;break}t=t[r]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!c.call(t,r))return!1;t=t[r]}return!0},n.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var i=e[r];c.call(n,i)||(n[i]={}),n=n[i]}return n[e[r]]=t,t},n.prototype.map=function(e){return r(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(r){for(var a=0;a<e.length;a++)if(e[a]===r)return t[a];if("object"==typeof r&&null!==r){var s=i(r);return e.push(r),t.push(s),l(o(r),(function(e){s[e]=n(r[e])})),e.pop(),t.pop(),s}return r}(this.value)};var o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};l(o(n.prototype),(function(e){t[e]=function(t){var r=[].slice.call(arguments,1),i=new n(t);return i[e].apply(i,r)}}));var c=Object.hasOwnProperty||function(e,t){return t in e}})),Ke=Xe;function Xe(e){if(!(this instanceof Xe))return new Xe(e);this._bbox=e||[1/0,1/0,-1/0,-1/0],this._valid=!!e}Xe.prototype.include=function(e){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[0]),this._bbox[3]=Math.max(this._bbox[3],e[1]),this},Xe.prototype.equals=function(e){var t;return t=e instanceof Xe?e.bbox():e,this._bbox[0]==t[0]&&this._bbox[1]==t[1]&&this._bbox[2]==t[2]&&this._bbox[3]==t[3]},Xe.prototype.center=function(e){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},Xe.prototype.union=function(e){var t;return this._valid=!0,t=e instanceof Xe?e.bbox():e,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[2]),this._bbox[3]=Math.max(this._bbox[3],t[3]),this},Xe.prototype.bbox=function(){return this._valid?this._bbox:null},Xe.prototype.contains=function(e){if(!e)return this._fastContains();if(!this._valid)return null;var t=e[0],n=e[1];return this._bbox[0]<=t&&this._bbox[1]<=n&&this._bbox[2]>=t&&this._bbox[3]>=n},Xe.prototype.intersect=function(e){return this._valid?(t=e instanceof Xe?e.bbox():e,!(this._bbox[0]>t[2]||this._bbox[2]<t[0]||this._bbox[3]<t[1]||this._bbox[1]>t[3])):null;var t},Xe.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var e="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",e)},Xe.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Je={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Qe=Object.keys(Je),et=function(e){return tt(e).bbox()};function tt(e){for(var t=Ke(),n=We(e),r=0;r<n.length;r++)t.include(n[r]);return t}function nt(e,t){var n=-90,r=90,i=-90,o=90,a=270,s=-270;e.forEach((function(e){var t=et(e),l=t[1],c=t[3],u=t[0],d=t[2];l>n&&(n=l),c<r&&(r=c),c>i&&(i=c),l<o&&(o=l),u<a&&(a=u),d>s&&(s=d)}));var l=t;return n+l.lat>85&&(l.lat=85-n),i+l.lat>90&&(l.lat=90-i),r+l.lat<-85&&(l.lat=-85-r),o+l.lat<-90&&(l.lat=-90-o),a+l.lng<=-270&&(l.lng+=360*Math.ceil(Math.abs(l.lng)/360)),s+l.lng>=270&&(l.lng-=360*Math.ceil(Math.abs(l.lng)/360)),l}function rt(e,t){var n=nt(e.map((function(e){return e.toGeoJSON()})),t);e.forEach((function(e){var t,r=e.getCoordinates(),i=function(e){var t={lng:e[0]+n.lng,lat:e[1]+n.lat};return[t.lng,t.lat]},o=function(e){return e.map((function(e){return i(e)}))};e.type===P?t=i(r):e.type===E||e.type===L?t=r.map(i):e.type===T||e.type===R?t=r.map(o):e.type===j&&(t=r.map((function(e){return e.map((function(e){return o(e)}))}))),e.incomingCoords(t)}))}et.polygon=function(e){return tt(e).polygon()},et.bboxify=function(e){return Ye(e).map((function(e){e&&Qe.some((function(t){return!!e[t]&&-1!==Je[t].indexOf(e.type)}))&&(e.bbox=tt(e).bbox(),this.update(e))}))};var it={onSetup:function(e){var t=this,n={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:e.featureIds||[]};return this.setSelected(n.initiallySelectedFeatureIds.filter((function(e){return void 0!==t.getFeature(e)}))),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),n},fireUpdate:function(){this.map.fire(F,{action:Z,features:this.getSelected().map((function(e){return e.toGeoJSON()}))})},fireActionable:function(){var e=this,t=this.getSelected(),n=t.filter((function(t){return e.isInstanceOf("MultiFeature",t)})),r=!1;if(t.length>1){r=!0;var i=t[0].type.replace("Multi","");t.forEach((function(e){e.type.replace("Multi","")!==i&&(r=!1)}))}var o=n.length>0,a=t.length>0;this.setActionableState({combineFeatures:r,uncombineFeatures:o,trash:a})},getUniqueIds:function(e){return e.length?e.map((function(e){return e.properties.id})).filter((function(e){return void 0!==e})).reduce((function(e,t){return e.add(t),e}),new te).values():[]},stopExtendedInteractions:function(e){e.boxSelectElement&&(e.boxSelectElement.parentNode&&e.boxSelectElement.parentNode.removeChild(e.boxSelectElement),e.boxSelectElement=null),this.map.dragPan.enable(),e.boxSelecting=!1,e.canBoxSelect=!1,e.dragMoving=!1,e.canDragMove=!1},onStop:function(){Ve(this)},onMouseMove:function(e){return this.stopExtendedInteractions(e),!0},onMouseOut:function(e){return!e.dragMoving||this.fireUpdate()}};it.onTap=it.onClick=function(e,t){return Re(t)?this.clickAnywhere(e,t):Ie(Y)(t)?this.clickOnVertex(e,t):function(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.meta===G}(t)?this.clickOnFeature(e,t):void 0},it.clickAnywhere=function(e){var t=this,n=this.getSelectedIds();n.length&&(this.clearSelectedFeatures(),n.forEach((function(e){return t.doRender(e)}))),Ve(this),this.stopExtendedInteractions(e)},it.clickOnVertex=function(e,t){this.changeMode(D.DIRECT_SELECT,{featureId:t.featureTarget.properties.parent,coordPath:t.featureTarget.properties.coord_path,startPos:t.lngLat}),this.updateUIClasses({mouse:w})},it.startOnActiveFeature=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),this.doRender(t.featureTarget.properties.id),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},it.clickOnFeature=function(e,t){var n=this;qe(this),this.stopExtendedInteractions(e);var r=De(t),i=this.getSelectedIds(),o=t.featureTarget.properties.id,a=this.isSelected(o);if(!r&&a&&this.getFeature(o).type!==P)return this.changeMode(D.DIRECT_SELECT,{featureId:o});a&&r?(this.deselect(o),this.updateUIClasses({mouse:k}),1===i.length&&Ve(this)):!a&&r?(this.select(o),this.updateUIClasses({mouse:w})):a||r||(i.forEach((function(e){return n.doRender(e)})),this.setSelected(o),this.updateUIClasses({mouse:w})),this.doRender(o)},it.onMouseDown=function(e,t){return Oe(t)?this.startOnActiveFeature(e,t):this.drawConfig.boxSelect&&function(e){return!!e.originalEvent&&!!e.originalEvent.shiftKey&&0===e.originalEvent.button}(t)?this.startBoxSelect(e,t):void 0},it.startBoxSelect=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),e.boxSelectStartLocation=Be(t.originalEvent,this.map.getContainer()),e.canBoxSelect=!0},it.onTouchStart=function(e,t){if(Oe(t))return this.startOnActiveFeature(e,t)},it.onDrag=function(e,t){return e.canDragMove?this.dragMove(e,t):this.drawConfig.boxSelect&&e.canBoxSelect?this.whileBoxSelect(e,t):void 0},it.whileBoxSelect=function(e,t){e.boxSelecting=!0,this.updateUIClasses({mouse:_}),e.boxSelectElement||(e.boxSelectElement=document.createElement("div"),e.boxSelectElement.classList.add(y),this.map.getContainer().appendChild(e.boxSelectElement));var n=Be(t.originalEvent,this.map.getContainer()),r=Math.min(e.boxSelectStartLocation.x,n.x),i=Math.max(e.boxSelectStartLocation.x,n.x),o=Math.min(e.boxSelectStartLocation.y,n.y),a=Math.max(e.boxSelectStartLocation.y,n.y),s="translate("+r+"px, "+o+"px)";e.boxSelectElement.style.transform=s,e.boxSelectElement.style.WebkitTransform=s,e.boxSelectElement.style.width=i-r+"px",e.boxSelectElement.style.height=a-o+"px"},it.dragMove=function(e,t){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};rt(this.getSelected(),n),e.dragMoveLocation=t.lngLat},it.onMouseUp=function(e,t){var n=this;if(e.dragMoving)this.fireUpdate();else if(e.boxSelecting){var r=[e.boxSelectStartLocation,Be(t.originalEvent,this.map.getContainer())],i=this.featuresAt(null,r,"click"),o=this.getUniqueIds(i).filter((function(e){return!n.isSelected(e)}));o.length&&(this.select(o),o.forEach((function(e){return n.doRender(e)})),this.updateUIClasses({mouse:w}))}this.stopExtendedInteractions(e)},it.toDisplayFeatures=function(e,t,n){t.properties.active=this.isSelected(t.properties.id)?K:X,n(t),this.fireActionable(),t.properties.active===K&&t.geometry.type!==P&&$e(t).forEach(n)},it.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},it.onCombineFeatures=function(){var e=this.getSelected();if(!(0===e.length||e.length<2)){for(var t=[],n=[],r=e[0].type.replace("Multi",""),i=0;i<e.length;i++){var o=e[i];if(o.type.replace("Multi","")!==r)return;o.type.includes("Multi")?o.getCoordinates().forEach((function(e){t.push(e)})):t.push(o.getCoordinates()),n.push(o.toGeoJSON())}if(n.length>1){var a=this.newFeature({type:M,properties:n[0].properties,geometry:{type:"Multi"+r,coordinates:t}});this.addFeature(a),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([a.id]),this.map.fire(V,{createdFeatures:[a.toGeoJSON()],deletedFeatures:n})}this.fireActionable()}},it.onUncombineFeatures=function(){var e=this,t=this.getSelected();if(0!==t.length){for(var n=[],r=[],i=function(i){var o=t[i];e.isInstanceOf("MultiFeature",o)&&(o.getFeatures().forEach((function(t){e.addFeature(t),t.properties=o.properties,n.push(t.toGeoJSON()),e.select([t.id])})),e.deleteFeature(o.id,{silent:!0}),r.push(o.toGeoJSON()))},o=0;o<t.length;o++)i(o);n.length>1&&this.map.fire(q,{createdFeatures:n,deletedFeatures:r}),this.fireActionable()}};var ot=Ie(Y),at=Ie(W),st={fireUpdate:function(){this.map.fire(F,{action:H,features:this.getSelected().map((function(e){return e.toGeoJSON()}))})},fireActionable:function(e){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:e.selectedCoordPaths.length>0})},startDragging:function(e,t){this.map.dragPan.disable(),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},stopDragging:function(e){this.map.dragPan.enable(),e.dragMoving=!1,e.canDragMove=!1,e.dragMoveLocation=null},onVertex:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties,r=e.selectedCoordPaths.indexOf(n.coord_path);De(t)||-1!==r?De(t)&&-1===r&&e.selectedCoordPaths.push(n.coord_path):e.selectedCoordPaths=[n.coord_path];var i=this.pathsToCoordinates(e.featureId,e.selectedCoordPaths);this.setSelectedCoordinates(i)},onMidpoint:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties;e.feature.addCoordinate(n.coord_path,n.lng,n.lat),this.fireUpdate(),e.selectedCoordPaths=[n.coord_path]},pathsToCoordinates:function(e,t){return t.map((function(t){return{feature_id:e,coord_path:t}}))},onFeature:function(e,t){0===e.selectedCoordPaths.length?this.startDragging(e,t):this.stopDragging(e)},dragFeature:function(e,t,n){rt(this.getSelected(),n),e.dragMoveLocation=t.lngLat},dragVertex:function(e,t,n){for(var r=e.selectedCoordPaths.map((function(t){return e.feature.getCoordinate(t)})),i=nt(r.map((function(e){return{type:M,properties:{},geometry:{type:P,coordinates:e}}})),n),o=0;o<r.length;o++){var a=r[o];e.feature.updateCoordinate(e.selectedCoordPaths[o],a[0]+i.lng,a[1]+i.lat)}},clickNoTarget:function(){this.changeMode(D.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(D.SIMPLE_SELECT)},clickActiveFeature:function(e){e.selectedCoordPaths=[],this.clearSelectedCoordinates(),e.feature.changed()},onSetup:function(e){var t=e.featureId,n=this.getFeature(t);if(!n)throw new Error("You must provide a featureId to enter direct_select mode");if(n.type===P)throw new TypeError("direct_select mode doesn't handle point features");var r={featureId:t,feature:n,dragMoveLocation:e.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:e.coordPath?[e.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(t,r.selectedCoordPaths)),this.setSelected(t),qe(this),this.setActionableState({trash:!0}),r},onStop:function(){Ve(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(e,t,n){e.featureId===t.properties.id?(t.properties.active=K,n(t),$e(t,{map:this.map,midpoints:!0,selectedPaths:e.selectedCoordPaths}).forEach(n)):(t.properties.active=X,n(t)),this.fireActionable(e)},onTrash:function(e){e.selectedCoordPaths.sort((function(e,t){return t.localeCompare(e,"en",{numeric:!0})})).forEach((function(t){return e.feature.removeCoordinate(t)})),this.fireUpdate(),e.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(e),!1===e.feature.isValid()&&(this.deleteFeature([e.featureId]),this.changeMode(D.SIMPLE_SELECT,{}))},onMouseMove:function(e,t){var n=Oe(t),r=ot(t),i=0===e.selectedCoordPaths.length;return n&&i||r&&!i?this.updateUIClasses({mouse:w}):this.updateUIClasses({mouse:C}),this.stopDragging(e),!0},onMouseOut:function(e){return e.dragMoving&&this.fireUpdate(),!0}};st.onTouchStart=st.onMouseDown=function(e,t){return ot(t)?this.onVertex(e,t):Oe(t)?this.onFeature(e,t):at(t)?this.onMidpoint(e,t):void 0},st.onDrag=function(e,t){if(!0===e.canDragMove){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};e.selectedCoordPaths.length>0?this.dragVertex(e,t,n):this.dragFeature(e,t,n),e.dragMoveLocation=t.lngLat}},st.onClick=function(e,t){return Re(t)?this.clickNoTarget(e,t):Oe(t)?this.clickActiveFeature(e,t):Le(t)?this.clickInactive(e,t):void this.stopDragging(e)},st.onTap=function(e,t){return Re(t)?this.clickNoTarget(e,t):Oe(t)?this.clickActiveFeature(e,t):Le(t)?this.clickInactive(e,t):void 0},st.onTouchEnd=st.onMouseUp=function(e){e.dragMoving&&this.fireUpdate(),this.stopDragging(e)};var lt={};function ct(e,t){return!!e.lngLat&&e.lngLat.lng===t[0]&&e.lngLat.lat===t[1]}lt.onSetup=function(){var e=this.newFeature({type:M,properties:{},geometry:{type:P,coordinates:[]}});return this.addFeature(e),this.clearSelectedFeatures(),this.updateUIClasses({mouse:_}),this.activateUIButton(S.POINT),this.setActionableState({trash:!0}),{point:e}},lt.stopDrawingAndRemove=function(e){this.deleteFeature([e.point.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT)},lt.onTap=lt.onClick=function(e,t){this.updateUIClasses({mouse:w}),e.point.updateCoordinate("",t.lngLat.lng,t.lngLat.lat),this.map.fire(A,{features:[e.point.toGeoJSON()]}),this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.point.id]})},lt.onStop=function(e){this.activateUIButton(),e.point.getCoordinate().length||this.deleteFeature([e.point.id],{silent:!0})},lt.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.point.id;if(t.properties.active=r?K:X,!r)return n(t)},lt.onTrash=lt.stopDrawingAndRemove,lt.onKeyUp=function(e,t){if(Ae(t)||Ne(t))return this.stopDrawingAndRemove(e,t)};var ut={onSetup:function(){var e=this.newFeature({type:M,properties:{},geometry:{type:T,coordinates:[[]]}});return this.addFeature(e),this.clearSelectedFeatures(),qe(this),this.updateUIClasses({mouse:_}),this.activateUIButton(S.POLYGON),this.setActionableState({trash:!0}),{polygon:e,currentVertexPosition:0}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ct(t,e.polygon.coordinates[0][e.currentVertexPosition-1]))return this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.polygon.id]});this.updateUIClasses({mouse:_}),e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),e.currentVertexPosition++,e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},onMouseMove:function(e,t){e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),je(t)&&this.updateUIClasses({mouse:k})}};ut.onTap=ut.onClick=function(e,t){return je(t)?this.clickOnVertex(e,t):this.clickAnywhere(e,t)},ut.onKeyUp=function(e,t){Ae(t)?(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT)):Ne(t)&&this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},ut.onStop=function(e){this.updateUIClasses({mouse:C}),Ve(this),this.activateUIButton(),void 0!==this.getFeature(e.polygon.id)&&(e.polygon.removeCoordinate("0."+e.currentVertexPosition),e.polygon.isValid()?this.map.fire(A,{features:[e.polygon.toGeoJSON()]}):(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT,{},{silent:!0})))},ut.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.polygon.id;if(t.properties.active=r?K:X,!r)return n(t);if(0!==t.geometry.coordinates.length){var i=t.geometry.coordinates[0].length;if(!(i<3)){if(t.properties.meta=G,n(Ue(e.polygon.id,t.geometry.coordinates[0][0],"0.0",!1)),i>3){var o=t.geometry.coordinates[0].length-3;n(Ue(e.polygon.id,t.geometry.coordinates[0][o],"0."+o,!1))}if(i<=4){var a=[[t.geometry.coordinates[0][0][0],t.geometry.coordinates[0][0][1]],[t.geometry.coordinates[0][1][0],t.geometry.coordinates[0][1][1]]];if(n({type:M,properties:t.properties,geometry:{coordinates:a,type:E}}),3===i)return}return n(t)}}},ut.onTrash=function(e){this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT)};var dt={onSetup:function(e){var t,n,r=(e=e||{}).featureId,i="forward";if(r){if(!(t=this.getFeature(r)))throw new Error("Could not find a feature with the provided featureId");var o=e.from;if(o&&"Feature"===o.type&&o.geometry&&"Point"===o.geometry.type&&(o=o.geometry),o&&"Point"===o.type&&o.coordinates&&2===o.coordinates.length&&(o=o.coordinates),!o||!Array.isArray(o))throw new Error("Please use the `from` property to indicate which point to continue the line from");var a=t.coordinates.length-1;if(t.coordinates[a][0]===o[0]&&t.coordinates[a][1]===o[1])n=a+1,t.addCoordinate.apply(t,[n].concat(t.coordinates[a]));else{if(t.coordinates[0][0]!==o[0]||t.coordinates[0][1]!==o[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");i="backwards",n=0,t.addCoordinate.apply(t,[n].concat(t.coordinates[0]))}}else t=this.newFeature({type:M,properties:{},geometry:{type:E,coordinates:[]}}),n=0,this.addFeature(t);return this.clearSelectedFeatures(),qe(this),this.updateUIClasses({mouse:_}),this.activateUIButton(S.LINE),this.setActionableState({trash:!0}),{line:t,currentVertexPosition:n,direction:i}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ct(t,e.line.coordinates[e.currentVertexPosition-1])||"backwards"===e.direction&&ct(t,e.line.coordinates[e.currentVertexPosition+1]))return this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.line.id]});this.updateUIClasses({mouse:_}),e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),"forward"===e.direction?(e.currentVertexPosition++,e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)):e.line.addCoordinate(0,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.line.id]})},onMouseMove:function(e,t){e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),je(t)&&this.updateUIClasses({mouse:k})}};dt.onTap=dt.onClick=function(e,t){if(je(t))return this.clickOnVertex(e,t);this.clickAnywhere(e,t)},dt.onKeyUp=function(e,t){Ne(t)?this.changeMode(D.SIMPLE_SELECT,{featureIds:[e.line.id]}):Ae(t)&&(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT))},dt.onStop=function(e){Ve(this),this.activateUIButton(),void 0!==this.getFeature(e.line.id)&&(e.line.removeCoordinate(""+e.currentVertexPosition),e.line.isValid()?this.map.fire(A,{features:[e.line.toGeoJSON()]}):(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT,{},{silent:!0})))},dt.onTrash=function(e){this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(D.SIMPLE_SELECT)},dt.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.line.id;if(t.properties.active=r?K:X,!r)return n(t);t.geometry.coordinates.length<2||(t.properties.meta=G,n(Ue(e.line.id,t.geometry.coordinates["forward"===e.direction?t.geometry.coordinates.length-2:1],""+("forward"===e.direction?t.geometry.coordinates.length-2:1),!1)),n(t))};var pt={simple_select:it,direct_select:st,draw_point:lt,draw_polygon:ut,draw_line_string:dt},ht={defaultMode:D.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:pt,controls:{},userProperties:!1},ft={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},mt={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function gt(e,t){return e.map((function(e){return e.source?e:Me(e,{id:e.id+"."+t,source:"hot"===t?v:b})}))}var yt=ce((function(e,t){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),h=t&&!t.nodeType&&t,f=h&&e&&!e.nodeType&&e,m=f&&f.exports===h,g=m&&u.process,y=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),v=y&&y.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var x,k,C,S=Array.prototype,M=Function.prototype,T=Object.prototype,E=p["__core-js_shared__"],P=M.toString,I=T.hasOwnProperty,O=(x=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",L=T.toString,R=RegExp("^"+P.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=m?p.Buffer:void 0,D=p.Symbol,A=p.Uint8Array,N=T.propertyIsEnumerable,F=S.splice,z=D?D.toStringTag:void 0,B=Object.getOwnPropertySymbols,U=j?j.isBuffer:void 0,$=(k=Object.keys,C=Object,function(e){return k(C(e))}),V=ye(p,"DataView"),q=ye(p,"Map"),Z=ye(p,"Promise"),H=ye(p,"Set"),G=ye(p,"WeakMap"),W=ye(Object,"create"),Y=we(V),K=we(q),X=we(Z),J=we(H),Q=we(G),ee=D?D.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){var n=Ce(e),r=!n&&ke(e),i=!n&&!r&&Se(e),o=!n&&!r&&!i&&Ie(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!I.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,l))||s.push(c);return s}function le(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=I.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(e){}var i=L.call(e);return r&&(t?e[z]=n:delete e[z]),i}(e):function(e){return L.call(e)}(e)}function ue(e){return Pe(e)&&ce(e)==r}function de(e,t,n,s,l){return e===t||(null==e||null==t||!Pe(e)&&!Pe(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=Ce(e),d=Ce(t),p=u?"[object Array]":be(e),h=d?"[object Array]":be(t),f=(p=p==r?o:p)==o,m=(h=h==r?o:h)==o,g=p==h;if(g&&Se(e)){if(!Se(t))return!1;u=!0,f=!1}if(g&&!f)return c||(c=new ae),u||Ie(e)?fe(e,t,n,s,l,c):function(e,t,n,r,o,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new A(e),new A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=_;case a:var u=1&r;if(c||(c=w),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;r|=2,l.set(e,t);var p=fe(c(e),c(t),r,o,s,l);return l.delete(e),p;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,p,n,s,l,c);if(!(1&n)){var y=f&&I.call(e,"__wrapped__"),v=m&&I.call(t,"__wrapped__");if(y||v){var b=y?e.value():e,x=v?t.value():t;return c||(c=new ae),l(b,x,n,s,c)}}return!!g&&(c||(c=new ae),function(e,t,n,r,i,o){var a=1&n,s=me(e),l=s.length;if(l!=me(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:I.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<l;){var f=e[u=s[c]],m=t[u];if(r)var g=a?r(m,f,u,t,e,o):r(f,m,u,e,t,o);if(!(void 0===g?f===m||i(f,m,n,r,o):g)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,s,l,c))}(e,t,n,s,de,l))}function pe(e){return!(!Ee(e)||function(e){return!!O&&O in e}(e))&&(Me(e)?R:s).test(we(e))}function he(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||T))return $(e);var t,n,r=[];for(var i in Object(e))I.call(e,i)&&"constructor"!=i&&r.push(i);return r}function fe(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,p=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],f=t[u];if(r)var m=a?r(f,h,u,t,e,o):r(h,f,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!b(t,(function(e,t){if(a=t,!p.has(a)&&(h===e||i(h,e,n,r,o)))return p.push(t);var a}))){d=!1;break}}else if(h!==f&&!i(h,f,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function me(e){return function(e,t,n){var r=t(e);return Ce(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Oe,ve)}function ge(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ye(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return pe(n)?n:void 0}ne.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(W){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return I.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return W?void 0!==t[e]:I.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=W&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=le(t,e);return!(n<0)&&(n==t.length-1?t.pop():F.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=le(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return le(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(q||re),string:new ne}},ie.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ge(this,e).get(e)},ie.prototype.has=function(e){return ge(this,e).has(e)},ie.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ve=B?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(B(e),(function(t){return N.call(e,t)})))}:function(){return[]},be=ce;function _e(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function we(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(V&&"[object DataView]"!=be(new V(new ArrayBuffer(1)))||q&&be(new q)!=i||Z&&"[object Promise]"!=be(Z.resolve())||H&&be(new H)!=a||G&&"[object WeakMap]"!=be(new G))&&(be=function(e){var t=ce(e),n=t==o?e.constructor:void 0,r=n?we(n):"";if(r)switch(r){case Y:return"[object DataView]";case K:return i;case X:return"[object Promise]";case J:return a;case Q:return"[object WeakMap]"}return t});var ke=ue(function(){return arguments}())?ue:function(e){return Pe(e)&&I.call(e,"callee")&&!N.call(e,"callee")},Ce=Array.isArray,Se=U||function(){return!1};function Me(e){if(!Ee(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Ie=v?function(e){return function(t){return e(t)}}(v):function(e){return Pe(e)&&Te(e.length)&&!!c[ce(e)]};function Oe(e){return null!=(t=e)&&Te(t.length)&&!Me(t)?se(e):he(e);var t}e.exports=function(e,t){return de(e,t)}})),vt={Polygon:fe,LineString:he,Point:pe,MultiPolygon:ye,MultiLineString:ye,MultiPoint:ye};function bt(e,t){return t.modes=D,t.getFeatureIdsAt=function(t){return re.click({point:t},null,e).map((function(e){return e.properties.id}))},t.getSelectedIds=function(){return e.store.getSelectedIds()},t.getSelected=function(){return{type:I,features:e.store.getSelectedIds().map((function(t){return e.store.get(t)})).map((function(e){return e.toGeoJSON()}))}},t.getSelectedPoints=function(){return{type:I,features:e.store.getSelectedCoordinates().map((function(e){return{type:M,properties:{},geometry:{type:P,coordinates:e.coordinates}}}))}},t.set=function(n){if(void 0===n.type||n.type!==I||!Array.isArray(n.features))throw new Error("Invalid FeatureCollection");var r=e.store.createRenderBatch(),i=e.store.getAllIds().slice(),o=t.add(n),a=new te(o);return(i=i.filter((function(e){return!a.has(e)}))).length&&t.delete(i),r(),o},t.add=function(t){var n=JSON.parse(JSON.stringify(Ze(t))).features.map((function(t){if(t.id=t.id||ue(),null===t.geometry)throw new Error("Invalid geometry: null");if(void 0===e.store.get(t.id)||e.store.get(t.id).type!==t.geometry.type){var n=vt[t.geometry.type];if(void 0===n)throw new Error("Invalid geometry type: "+t.geometry.type+".");var r=new n(e,t);e.store.add(r)}else{var i=e.store.get(t.id);i.properties=t.properties,yt(i.getCoordinates(),t.geometry.coordinates)||i.incomingCoords(t.geometry.coordinates)}return t.id}));return e.store.render(),n},t.get=function(t){var n=e.store.get(t);if(n)return n.toGeoJSON()},t.getAll=function(){return{type:I,features:e.store.getAll().map((function(e){return e.toGeoJSON()}))}},t.delete=function(n){return e.store.delete(n,{silent:!0}),t.getMode()!==D.DIRECT_SELECT||e.store.getSelectedIds().length?e.store.render():e.events.changeMode(D.SIMPLE_SELECT,void 0,{silent:!0}),t},t.deleteAll=function(){return e.store.delete(e.store.getAllIds(),{silent:!0}),t.getMode()===D.DIRECT_SELECT?e.events.changeMode(D.SIMPLE_SELECT,void 0,{silent:!0}):e.store.render(),t},t.changeMode=function(n,r){return void 0===r&&(r={}),n===D.SIMPLE_SELECT&&t.getMode()===D.SIMPLE_SELECT?(i=r.featureIds||[],o=e.store.getSelectedIds(),i.length===o.length&&JSON.stringify(i.map((function(e){return e})).sort())===JSON.stringify(o.map((function(e){return e})).sort())||(e.store.setSelected(r.featureIds,{silent:!0}),e.store.render()),t):(n===D.DIRECT_SELECT&&t.getMode()===D.DIRECT_SELECT&&r.featureId===e.store.getSelectedIds()[0]||e.events.changeMode(n,r,{silent:!0}),t);var i,o},t.getMode=function(){return e.events.getMode()},t.trash=function(){return e.events.trash({silent:!0}),t},t.combineFeatures=function(){return e.events.combineFeatures({silent:!0}),t},t.uncombineFeatures=function(){return e.events.uncombineFeatures({silent:!0}),t},t.setFeatureProperty=function(n,r,i){return e.store.setFeatureProperty(n,r,i),t},t}var _t=function(e,t){var n={options:e=function(e){void 0===e&&(e={});var t=Me(e);return e.controls||(t.controls={}),!1===e.displayControlsDefault?t.controls=Me(mt,e.controls):t.controls=Me(ft,e.controls),(t=Me(ht,t)).styles=gt(t.styles,"cold").concat(gt(t.styles,"hot")),t}(e)};t=bt(n,t),n.api=t;var r=Pe(n);return t.onAdd=r.onAdd,t.onRemove=r.onRemove,t.types=S,t.options=e,t};function wt(e){_t(e,this)}return wt.modes=pt,wt}()},33999:(e,t,n)=>{var r=function(){"use strict";var e,t=/\s*/g,r=/^\s*|\s*$/g,i=/\s+/;function o(e){if(!e||!e.length)return 0;for(var t=0,n=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return n}function a(e,t){return e.getElementsByTagName(t)}function s(e,t){return e.getAttribute(t)}function l(e,t){return parseFloat(s(e,t))}function c(e,t){var n=a(e,t);return n.length?n[0]:null}function u(e){for(var t=0,n=[];t<e.length;t++)n[t]=parseFloat(e[t]);return n}function d(e){var t;return e&&(t=e).normalize&&t.normalize(),e&&e.textContent||""}function p(e,t){var n,r,i={};for(r=0;r<t.length;r++)(n=c(e,t[r]))&&(i[t[r]]=d(n));return i}function h(e,t){for(var n in t)e[n]=t[n]}function f(e){return u(e.replace(t,"").split(","))}function m(e){for(var t=e.replace(r,"").split(i),n=[],o=0;o<t.length;o++)n.push(f(t[o]));return n}function g(e){var t,n=[l(e,"lon"),l(e,"lat")],r=c(e,"ele"),i=c(e,"gpxtpx:hr")||c(e,"hr"),o=c(e,"time");return r&&(t=parseFloat(d(r)),isNaN(t)||n.push(t)),{coordinates:n,time:o?d(o):null,heartRate:i?parseFloat(d(i)):null}}if("undefined"!==typeof XMLSerializer)e=new XMLSerializer;else{var y="object"===typeof process&&!process.browser,v="object"===typeof Titanium;if(!y&&!v)throw new Error("Unable to initialize serializer");e=new(n(22443).B)}function b(t){return void 0!==t.xml?t.xml:e.serializeToString(t)}return{kml:function(e){for(var t={type:"FeatureCollection",features:[]},n={},r={},i={},l=["Polygon","LineString","Point","Track","gx:Track"],p=a(e,"Placemark"),h=a(e,"Style"),g=a(e,"StyleMap"),y=0;y<h.length;y++){var v=o(b(h[y])).toString(16);n["#"+s(h[y],"id")]=v,r[v]=h[y]}for(var _=0;_<g.length;_++){n["#"+s(g[_],"id")]=o(b(g[_])).toString(16);for(var w=a(g[_],"Pair"),x={},k=0;k<w.length;k++)x[d(c(w[k],"key"))]=d(c(w[k],"styleUrl"));i["#"+s(g[_],"id")]=x}for(var C=0;C<p.length;C++)t.features=t.features.concat(E(p[C]));function S(e){var t,n;return"#"===(e=e||"").substr(0,1)&&(e=e.substr(1)),6!==e.length&&3!==e.length||(t=e),8===e.length&&(n=parseInt(e.substr(0,2),16)/255,t="#"+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)),[t,isNaN(n)?void 0:n]}function M(e){var t=a(e,"coord"),n=[],r=[];0===t.length&&(t=a(e,"gx:coord"));for(var i=0;i<t.length;i++)n.push(u(d(t[i]).split(" ")));for(var o=a(e,"when"),s=0;s<o.length;s++)r.push(d(o[s]));return{coords:n,times:r}}function T(e){var t,n,r,i,o,s=[],u=[];if(c(e,"MultiGeometry"))return T(c(e,"MultiGeometry"));if(c(e,"MultiTrack"))return T(c(e,"MultiTrack"));if(c(e,"gx:MultiTrack"))return T(c(e,"gx:MultiTrack"));for(r=0;r<l.length;r++)if(n=a(e,l[r]))for(i=0;i<n.length;i++)if(t=n[i],"Point"===l[r])s.push({type:"Point",coordinates:f(d(c(t,"coordinates")))});else if("LineString"===l[r])s.push({type:"LineString",coordinates:m(d(c(t,"coordinates")))});else if("Polygon"===l[r]){var p=a(t,"LinearRing"),h=[];for(o=0;o<p.length;o++)h.push(m(d(c(p[o],"coordinates"))));s.push({type:"Polygon",coordinates:h})}else if("Track"===l[r]||"gx:Track"===l[r]){var g=M(t);s.push({type:"LineString",coordinates:g.coords}),g.times.length&&u.push(g.times)}return{geoms:s,coordTimes:u}}function E(e){var t,o=T(e),l={},u=d(c(e,"name")),p=d(c(e,"address")),h=d(c(e,"styleUrl")),f=d(c(e,"description")),m=c(e,"TimeSpan"),g=c(e,"TimeStamp"),y=c(e,"ExtendedData"),v=c(e,"LineStyle"),b=c(e,"PolyStyle"),_=c(e,"visibility");if(!o.geoms.length)return[];if(u&&(l.name=u),p&&(l.address=p),h){"#"!==h[0]&&(h="#"+h),l.styleUrl=h,n[h]&&(l.styleHash=n[h]),i[h]&&(l.styleMapHash=i[h],l.styleHash=n[i[h].normal]);var w=r[l.styleHash];if(w){v||(v=c(w,"LineStyle")),b||(b=c(w,"PolyStyle"));var x=c(w,"IconStyle");if(x){var k=c(x,"Icon");if(k){var C=d(c(k,"href"));C&&(l.icon=C)}}}}if(f&&(l.description=f),m){var M=d(c(m,"begin")),E=d(c(m,"end"));l.timespan={begin:M,end:E}}if(g&&(l.timestamp=d(c(g,"when"))),v){var P=S(d(c(v,"color"))),I=P[0],O=P[1],L=parseFloat(d(c(v,"width")));I&&(l.stroke=I),isNaN(O)||(l["stroke-opacity"]=O),isNaN(L)||(l["stroke-width"]=L)}if(b){var R=S(d(c(b,"color"))),j=R[0],D=R[1],A=d(c(b,"fill")),N=d(c(b,"outline"));j&&(l.fill=j),isNaN(D)||(l["fill-opacity"]=D),A&&(l["fill-opacity"]="1"===A?l["fill-opacity"]||1:0),N&&(l["stroke-opacity"]="1"===N?l["stroke-opacity"]||1:0)}if(y){var F=a(y,"Data"),z=a(y,"SimpleData");for(t=0;t<F.length;t++)l[F[t].getAttribute("name")]=d(c(F[t],"value"));for(t=0;t<z.length;t++)l[z[t].getAttribute("name")]=d(z[t])}_&&(l.visibility=d(_)),o.coordTimes.length&&(l.coordTimes=1===o.coordTimes.length?o.coordTimes[0]:o.coordTimes);var B={type:"Feature",geometry:1===o.geoms.length?o.geoms[0]:{type:"GeometryCollection",geometries:o.geoms},properties:l};return s(e,"id")&&(B.id=s(e,"id")),[B]}return t},gpx:function(e){var t,n,r=a(e,"trk"),i=a(e,"rte"),o=a(e,"wpt"),l={type:"FeatureCollection",features:[]};for(t=0;t<r.length;t++)(n=m(r[t]))&&l.features.push(n);for(t=0;t<i.length;t++)(n=y(i[t]))&&l.features.push(n);for(t=0;t<o.length;t++)l.features.push(v(o[t]));function u(e,t){for(var n=0;n<t;n++)e.push(null);return e}function f(e,t){var n=a(e,t),r=[],i=[],o=[],s=n.length;if(s<2)return{};for(var l=0;l<s;l++){var c=g(n[l]);r.push(c.coordinates),c.time&&i.push(c.time),(c.heartRate||o.length)&&(o.length||u(o,l),o.push(c.heartRate||null))}return{line:r,times:i,heartRates:o}}function m(e){for(var t,n=a(e,"trkseg"),r=[],i=[],o=[],s=0;s<n.length;s++)if((t=f(n[s],"trkpt"))&&(t.line&&r.push(t.line),t.times&&t.times.length&&i.push(t.times),o.length||t.heartRates&&t.heartRates.length)){if(!o.length)for(var l=0;l<s;l++)o.push(u([],r[l].length));t.heartRates&&t.heartRates.length?o.push(t.heartRates):o.push(u([],t.line.length||0))}if(0!==r.length){var d=_(e);return h(d,b(c(e,"extensions"))),i.length&&(d.coordTimes=1===r.length?i[0]:i),o.length&&(d.heartRates=1===r.length?o[0]:o),{type:"Feature",properties:d,geometry:{type:1===r.length?"LineString":"MultiLineString",coordinates:1===r.length?r[0]:r}}}}function y(e){var t=f(e,"rtept");if(t.line){var n=_(e);return h(n,b(c(e,"extensions"))),{type:"Feature",properties:n,geometry:{type:"LineString",coordinates:t.line}}}}function v(e){var t=_(e);return h(t,p(e,["sym"])),{type:"Feature",properties:t,geometry:{type:"Point",coordinates:g(e).coordinates}}}function b(e){var t={};if(e){var n=c(e,"line");if(n){var r=d(c(n,"color")),i=parseFloat(d(c(n,"opacity"))),o=parseFloat(d(c(n,"width")));r&&(t.stroke=r),isNaN(i)||(t["stroke-opacity"]=i),isNaN(o)||(t["stroke-width"]=96*o/25.4)}}return t}function _(e){var t=p(e,["name","cmt","desc","type","time","keywords"]),n=a(e,"link");n.length&&(t.links=[]);for(var r,i=0;i<n.length;i++)h(r={href:s(n[i],"href")},p(n[i],["text","type"])),t.links.push(r);return t}return l}}}();e.exports=r},99865:(e,t,n)=>{var r=n(91857),i=n(76492).tag;function o(e,t){return function(n){if(!n.properties||!a.valid(n.geometry))return"";var o=a.any(n.geometry);if(!o)return"";var s="",u="";if(e.simplestyle){var d=function(e){var t="";e["marker-symbol"]&&(t=t+"ms"+e["marker-symbol"]);e["marker-color"]&&(t=t+"mc"+e["marker-color"].replace("#",""));e["marker-size"]&&(t=t+"ms"+e["marker-size"]);e.stroke&&(t=t+"s"+e.stroke.replace("#",""));e["stroke-width"]&&(t=t+"sw"+e["stroke-width"].toString().replace(".",""));e["stroke-opacity"]&&(t=t+"mo"+e["stroke-opacity"].toString().replace(".",""));e.fill&&(t=t+"f"+e.fill.replace("#",""));e["fill-opacity"]&&(t=t+"fo"+e["fill-opacity"].toString().replace(".",""));return t}(n.properties);d&&(a.isPoint(n.geometry)&&function(e){return!!(e["marker-size"]||e["marker-symbol"]||e["marker-color"])}(n.properties)?(-1===t.indexOf(d)&&(s=function(e,t){return i("Style",{id:t},i("IconStyle",i("Icon",i("href",function(e){var t=e["marker-size"]||"medium",n=e["marker-symbol"]?"-"+e["marker-symbol"]:"",r=(e["marker-color"]||"7e7e7e").replace("#","");return"https://api.tiles.mapbox.com/v3/marker/pin-"+t.charAt(0)+n+"+"+r+".png"}(e))))+i("hotSpot",{xunits:"fraction",yunits:"fraction",x:"0.5",y:"0.5"},""))}(n.properties,d),t.push(d)),u=i("styleUrl","#"+d),function(e){delete e["marker-size"],delete e["marker-symbol"],delete e["marker-color"],delete e["marker-shape"]}(n.properties)):(a.isPolygon(n.geometry)||a.isLine(n.geometry))&&function(e){for(var t in e)if({stroke:!0,"stroke-opacity":!0,"stroke-width":!0,fill:!0,"fill-opacity":!0}[t])return!0}(n.properties)&&(-1===t.indexOf(d)&&(s=function(e,t){var n=i("LineStyle",i("color",c(e.stroke,e["stroke-opacity"])||"ff555555")+i("width",{},void 0===e["stroke-width"]?2:e["stroke-width"])),r="";(e.fill||e["fill-opacity"])&&(r=i("PolyStyle",i("color",{},c(e.fill,e["fill-opacity"])||"88555555")));return i("Style",{id:t},n+r)}(n.properties,d),t.push(d)),u=i("styleUrl","#"+d),function(e){delete e.stroke,delete e["stroke-opacity"],delete e["stroke-width"],delete e.fill,delete e["fill-opacity"]}(n.properties)))}var p={};return n.id&&(p.id=n.id.toString()),s+i("Placemark",p,function(e,t){return e[t.name]?i("name",r(e[t.name])):""}(n.properties,e)+function(e,t){return e[t.description]?i("description",r(e[t.description])):""}(n.properties,e)+function(e){return i("ExtendedData",{},function(e){var t=[];for(var n in e)e[n]?t.push([n,e[n]]):t.push([n,""]);return t}(e).map(l).join(""))}(n.properties)+function(e,t){return e[t.timestamp]?i("TimeStamp",i("when",r(e[t.timestamp]))):""}(n.properties,e)+o+u)}}e.exports=function(e,t){return'<?xml version="1.0" encoding="UTF-8"?>'+i("kml",{xmlns:"http://www.opengis.net/kml/2.2"},i("Document",function(e){return void 0!==e.documentName?i("name",e.documentName):""}(t=t||{documentName:void 0,documentDescription:void 0,name:"name",description:"description",simplestyle:!1,timestamp:"timestamp"})+function(e){return void 0!==e.documentDescription?i("description",e.documentDescription):""}(t)+function(e,t){if(!e.type)return"";var n=[];switch(e.type){case"FeatureCollection":return e.features?e.features.map(o(t,n)).join(""):"";case"Feature":return o(t,n)(e);default:return o(t,n)({type:"Feature",geometry:e,properties:{}})}}(e,t)))};var a={Point:function(e){return i("Point",i("coordinates",e.coordinates.join(",")))},LineString:function(e){return i("LineString",i("coordinates",s(e.coordinates)))},Polygon:function(e){if(!e.coordinates.length)return"";var t=e.coordinates[0],n=e.coordinates.slice(1),r=i("outerBoundaryIs",i("LinearRing",i("coordinates",s(t)))),o=n.map((function(e){return i("innerBoundaryIs",i("LinearRing",i("coordinates",s(e))))})).join("");return i("Polygon",r+o)},MultiPoint:function(e){return e.coordinates.length?i("MultiGeometry",e.coordinates.map((function(e){return a.Point({coordinates:e})})).join("")):""},MultiPolygon:function(e){return e.coordinates.length?i("MultiGeometry",e.coordinates.map((function(e){return a.Polygon({coordinates:e})})).join("")):""},MultiLineString:function(e){return e.coordinates.length?i("MultiGeometry",e.coordinates.map((function(e){return a.LineString({coordinates:e})})).join("")):""},GeometryCollection:function(e){return i("MultiGeometry",e.geometries.map(a.any).join(""))},valid:function(e){return e&&e.type&&(e.coordinates||"GeometryCollection"===e.type&&e.geometries&&e.geometries.every(a.valid))},any:function(e){return a[e.type]?a[e.type](e):""},isPoint:function(e){return"Point"===e.type||"MultiPoint"===e.type},isPolygon:function(e){return"Polygon"===e.type||"MultiPolygon"===e.type},isLine:function(e){return"LineString"===e.type||"MultiLineString"===e.type}};function s(e){return e.map((function(e){return e.join(",")})).join(" ")}function l(e){return i("Data",{name:e[0]},i("value",{},r(e[1]?e[1].toString():"")))}function c(e,t){if("string"!==typeof e)return"";if(3===(e=e.replace("#","").toLowerCase()).length)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(6!==e.length)return"";var n=e[0]+e[1],r=e[2]+e[3],i=e[4]+e[5],o="ff";return"number"===typeof t&&t>=0&&t<=1&&((o=(255*t).toString(16)).indexOf(".")>-1&&(o=o.substr(0,o.indexOf("."))),o.length<2&&(o="0"+o)),o+i+r+n}},76492:(e,t,n)=>{var r=n(91857);function i(e){return Object.keys(e).length?" "+Object.keys(e).map((function(t){return t+'="'+r(e[t])+'"'})).join(" "):""}e.exports.attr=i,e.exports.tagClose=function(e,t){return"<"+e+i(t)+"/>"},e.exports.tag=function(e,t,n){(Array.isArray(t)||"string"===typeof t)&&(n=t,t={});Array.isArray(n)&&(n="\n"+n.map((function(e){return"  "+e})).join("\n")+"\n");return"<"+e+i(t)+">"+n+"</"+e+">"}},91857:e=>{(e.exports=function e(t,n){var r;if(null!==t&&void 0!==t)return n=(n||"").replace(/[^&"<>\']/g,""),r="([&\"<>'])".replace(new RegExp("["+n+"]","g"),""),t.replace(new RegExp(r,"g"),(function(t,n){return e.map[n]}))}).map={">":"&gt;","<":"&lt;","'":"&apos;",'"':"&quot;","&":"&amp;"}},52949:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(18178),i=n(22297),o=n(78210),a=n(32745),s=n(4486),l=n(5651);const c=r.forwardRef((function(e,t){const{children:n,container:c,disablePortal:u=!1}=e,[d,p]=r.useState(null),h=(0,o.Z)(r.isValidElement(n)?n.ref:null,t);if((0,a.Z)((()=>{u||p(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.Z)((()=>{if(d&&!u)return(0,s.Z)(t,d),()=>{(0,s.Z)(t,null)}}),[t,d,u]),u){if(r.isValidElement(n)){const e={ref:h};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},28438:(e,t,n)=>{"use strict";n.d(t,{D:()=>d,o:()=>g});var r=n(90359),i=n(18178),o=n(8135),a=n(56040);const s=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};var l=n(19810),c=n(4486);function u(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,s)=>{let{inputValue:l,getOptionLabel:c}=s,d=a?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=u(d));const p=d?e.filter((e=>{let r=(o||c)(e);return n&&(r=r.toLowerCase()),t&&(r=u(r)),"start"===i?0===r.indexOf(d):r.indexOf(d)>-1})):e;return"number"===typeof r?p.slice(0,r):p}}function p(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const h=d(),f=5,m=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function g(e){const{unstable_isActiveElementInListbox:t=m,unstable_classNamePrefix:n="Mui",autoComplete:u=!1,autoHighlight:d=!1,autoSelect:g=!1,blurOnSelect:y=!1,clearOnBlur:v=!e.freeSolo,clearOnEscape:b=!1,componentName:_="useAutocomplete",defaultValue:w=(e.multiple?[]:null),disableClearable:x=!1,disableCloseOnSelect:k=!1,disabled:C,disabledItemsFocusable:S=!1,disableListWrap:M=!1,filterOptions:T=h,filterSelectedOptions:E=!1,freeSolo:P=!1,getOptionDisabled:I,getOptionLabel:O=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:L,handleHomeEndKeys:R=!e.freeSolo,id:j,includeInputInList:D=!1,inputValue:A,isOptionEqualToValue:N=((e,t)=>e===t),multiple:F=!1,onChange:z,onClose:B,onHighlightChange:U,onInputChange:$,onOpen:V,open:q,openOnFocus:Z=!1,options:H,readOnly:G=!1,selectOnFocus:W=!e.freeSolo,value:Y}=e,K=(0,o.Z)(j);let X=O;X=e=>{const t=O(e);return"string"!==typeof t?String(t):t};const J=i.useRef(!1),Q=i.useRef(!0),ee=i.useRef(null),te=i.useRef(null),[ne,re]=i.useState(null),[ie,oe]=i.useState(-1),ae=d?0:-1,se=i.useRef(ae),[le,ce]=(0,a.Z)({controlled:Y,default:w,name:_}),[ue,de]=(0,a.Z)({controlled:A,default:"",name:_,state:"inputValue"}),[pe,he]=i.useState(!1),fe=i.useCallback(((e,t)=>{if(!(F?le.length<t.length:null!==t)&&!v)return;let n;if(F)n="";else if(null==t)n="";else{const e=X(t);n="string"===typeof e?e:""}ue!==n&&(de(n),$&&$(e,n,"reset"))}),[X,ue,F,$,de,v,le]),[me,ge]=(0,a.Z)({controlled:q,default:!1,name:_,state:"open"}),[ye,ve]=i.useState(!0),be=!F&&null!=le&&ue===X(le),_e=me&&!G,we=_e?T(H.filter((e=>!E||!(F?le:[le]).some((t=>null!==t&&N(e,t))))),{inputValue:be&&ye?"":ue,getOptionLabel:X}):[],xe=s({filteredOptions:we,value:le,inputValue:ue});i.useEffect((()=>{const e=le!==xe.value;pe&&!e||P&&!e||fe(null,le)}),[le,fe,pe,xe.value,P]);const ke=me&&we.length>0&&!G;const Ce=(0,l.Z)((e=>{-1===e?ee.current.focus():ne.querySelector(`[data-tag-index="${e}"]`).focus()}));i.useEffect((()=>{F&&ie>le.length-1&&(oe(-1),Ce(-1))}),[le,F,ie,Ce]);const Se=(0,l.Z)((e=>{let{event:t,index:r,reason:i="auto"}=e;if(se.current=r,-1===r?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${K}-option-${r}`),U&&U(t,-1===r?null:we[r],i),!te.current)return;const o=te.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=te.current;if("listbox"!==te.current.getAttribute("role")&&(a=te.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===r)return void(a.scrollTop=0);const s=te.current.querySelector(`[data-option-index="${r}"]`);if(s&&(s.classList.add(`${n}-focused`),"keyboard"===i&&s.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==i&&"touch"!==i)){const e=s,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(L?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(L?1.3:0))}})),Me=(0,l.Z)((e=>{let{event:t,diff:n,direction:r="next",reason:i="auto"}=e;if(!_e)return;const o=function(e,t){if(!te.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===we.length||"previous"===t&&-1===n)return-1;const e=te.current.querySelector(`[data-option-index="${n}"]`),r=!S&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=we.length-1;if("reset"===n)return ae;if("start"===n)return 0;if("end"===n)return e;const t=se.current+n;return t<0?-1===t&&D?-1:M&&-1!==se.current||Math.abs(n)>1?0:e:t>e?t===e+1&&D?-1:M||Math.abs(n)>1?e:0:t})(),r);if(Se({index:o,reason:i,event:t}),u&&"reset"!==n)if(-1===o)ee.current.value=ue;else{const e=X(we[o]);ee.current.value=e;0===e.toLowerCase().indexOf(ue.toLowerCase())&&ue.length>0&&ee.current.setSelectionRange(ue.length,e.length)}})),Te=i.useCallback((()=>{if(!_e)return;if((()=>{if(-1!==se.current&&xe.filteredOptions&&xe.filteredOptions.length!==we.length&&xe.inputValue===ue&&(F?le.length===xe.value.length&&xe.value.every(((e,t)=>X(le[t])===X(e))):(e=xe.value,t=le,(e?X(e):"")===(t?X(t):"")))){const e=xe.filteredOptions[se.current];if(e&&we.some((t=>X(t)===X(e))))return!0}var e,t;return!1})())return;const e=F?le[0]:le;if(0!==we.length&&null!=e){if(te.current)if(null==e)se.current>=we.length-1?Se({index:we.length-1}):Se({index:se.current});else{const t=we[se.current];if(F&&t&&-1!==p(le,(e=>N(t,e))))return;const n=p(we,(t=>N(t,e)));-1===n?Me({diff:"reset"}):Se({index:n})}}else Me({diff:"reset"})}),[we.length,!F&&le,E,Me,Se,_e,ue,F]),Ee=(0,l.Z)((e=>{(0,c.Z)(te,e),e&&Te()}));i.useEffect((()=>{Te()}),[Te]);const Pe=e=>{me||(ge(!0),ve(!0),V&&V(e))},Ie=(e,t)=>{me&&(ge(!1),B&&B(e,t))},Oe=(e,t,n,r)=>{if(F){if(le.length===t.length&&le.every(((e,n)=>e===t[n])))return}else if(le===t)return;z&&z(e,t,n,r),ce(t)},Le=i.useRef(!1),Re=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=t;if(F){i=Array.isArray(le)?le.slice():[];const e=p(i,(e=>N(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}fe(e,i),Oe(e,i,r,{option:t}),k||e&&(e.ctrlKey||e.metaKey)||Ie(e,r),(!0===y||"touch"===y&&Le.current||"mouse"===y&&!Le.current)&&ee.current.blur()};const je=(e,t)=>{if(!F)return;""===ue&&Ie(e,"toggleInput");let n=ie;-1===ie?""===ue&&"previous"===t&&(n=le.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===le.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===le.length||"previous"===t&&-1===n)return-1;const e=ne.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),oe(n),Ce(n)},De=e=>{J.current=!0,de(""),$&&$(e,"","clear"),Oe(e,F?[]:null,"clear")},Ae=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ie&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(oe(-1),Ce(-1)),229!==t.which))switch(t.key){case"Home":_e&&R&&(t.preventDefault(),Me({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":_e&&R&&(t.preventDefault(),Me({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Me({diff:-f,direction:"previous",reason:"keyboard",event:t}),Pe(t);break;case"PageDown":t.preventDefault(),Me({diff:f,direction:"next",reason:"keyboard",event:t}),Pe(t);break;case"ArrowDown":t.preventDefault(),Me({diff:1,direction:"next",reason:"keyboard",event:t}),Pe(t);break;case"ArrowUp":t.preventDefault(),Me({diff:-1,direction:"previous",reason:"keyboard",event:t}),Pe(t);break;case"ArrowLeft":je(t,"previous");break;case"ArrowRight":je(t,"next");break;case"Enter":if(-1!==se.current&&_e){const e=we[se.current],n=!!I&&I(e);if(t.preventDefault(),n)return;Re(t,e,"selectOption"),u&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else P&&""!==ue&&!1===be&&(F&&t.preventDefault(),Re(t,ue,"createOption","freeSolo"));break;case"Escape":_e?(t.preventDefault(),t.stopPropagation(),Ie(t,"escape")):b&&(""!==ue||F&&le.length>0)&&(t.preventDefault(),t.stopPropagation(),De(t));break;case"Backspace":if(F&&!G&&""===ue&&le.length>0){const e=-1===ie?le.length-1:ie,n=le.slice();n.splice(e,1),Oe(t,n,"removeOption",{option:le[e]})}break;case"Delete":if(F&&!G&&""===ue&&le.length>0&&-1!==ie){const e=ie,n=le.slice();n.splice(e,1),Oe(t,n,"removeOption",{option:le[e]})}}},Ne=e=>{he(!0),Z&&!J.current&&Pe(e)},Fe=e=>{t(te)?ee.current.focus():(he(!1),Q.current=!0,J.current=!1,g&&-1!==se.current&&_e?Re(e,we[se.current],"blur"):g&&P&&""!==ue?Re(e,ue,"blur","freeSolo"):v&&fe(e,le),Ie(e,"blur"))},ze=e=>{const t=e.target.value;ue!==t&&(de(t),ve(!1),$&&$(e,t,"input")),""===t?x||F||Oe(e,null,"clear"):Pe(e)},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));se.current!==t&&Se({event:e,index:t,reason:"mouse"})},Ue=e=>{Se({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Le.current=!0},$e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Re(e,we[t],"selectOption"),Le.current=!1},Ve=e=>t=>{const n=le.slice();n.splice(e,1),Oe(t,n,"removeOption",{option:le[e]})},qe=e=>{me?Ie(e,"toggleInput"):Pe(e)},Ze=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==K&&e.preventDefault()},He=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),W&&Q.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),Q.current=!1)},Ge=e=>{""!==ue&&me||qe(e)};let We=P&&ue.length>0;We=We||(F?le.length>0:null!==le);let Ye=we;if(L){new Map;Ye=we.reduce(((e,t,n)=>{const r=L(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return C&&pe&&Fe(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.Z)({"aria-owns":ke?`${K}-listbox`:null},e,{onKeyDown:Ae(e),onMouseDown:Ze,onClick:He})},getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:ue,onBlur:Fe,onFocus:Ne,onChange:ze,onMouseDown:Ge,"aria-activedescendant":_e?"":null,"aria-autocomplete":u?"both":"list","aria-controls":ke?`${K}-listbox`:void 0,"aria-expanded":ke,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:C}),getClearProps:()=>({tabIndex:-1,onClick:De}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,r.Z)({key:t,"data-tag-index":t,tabIndex:-1},!G&&{onDelete:Ve(t)})},getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:Ee,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;const r=(F?le:[le]).some((e=>null!=e&&N(n,e))),i=!!I&&I(n);return{key:X(n),tabIndex:-1,role:"option",id:`${K}-option-${t}`,onMouseMove:Be,onClick:$e,onTouchStart:Ue,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:K,inputValue:ue,value:le,dirty:We,expanded:_e&&ne,popupOpen:_e,focused:pe||-1!==ie,anchorEl:ne,setAnchorEl:re,focusedTag:ie,groupedOptions:Ye}}},87071:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(18178);n(5651);const i={disableDefaultClasses:!1},o=r.createContext(i);function a(e){const{disableDefaultClasses:t}=r.useContext(o);return n=>t?"":e(n)}},40762:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(90359),i=n(14511);function o(e,t,n){return void 0===e||(0,i.X)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},22366:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{_:()=>r})},14511:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}n.d(t,{X:()=>r})},58691:(e,t,n)=>{"use strict";function r(e,t,n){return"function"===typeof e?e(t,n):e}n.d(t,{x:()=>r})},11078:(e,t,n)=>{"use strict";n.d(t,{y:()=>p});var r=n(90359),i=n(57995),o=n(78210),a=n(40762),s=n(64692),l=n(22366);function c(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}var u=n(58691);const d=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function p(e){var t;const{elementType:n,externalSlotProps:p,ownerState:h,skipResolvingSlotProps:f=!1}=e,m=(0,i.Z)(e,d),g=f?{}:(0,u.x)(p,h),{props:y,internalRef:v}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,s.Z)(null==o?void 0:o.className,null==i?void 0:i.className,a,null==n?void 0:n.className),t=(0,r.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),l=(0,r.Z)({},n,o,i);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const u=(0,l._)((0,r.Z)({},o,i)),d=c(i),p=c(o),h=t(u),f=(0,s.Z)(null==h?void 0:h.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),m=(0,r.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),g=(0,r.Z)({},h,n,p,d);return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:h.ref}}((0,r.Z)({},m,{externalSlotProps:g})),b=(0,o.Z)(v,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.$)(n,(0,r.Z)({},y,{ref:b}),h)}},94278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(97880),i=n(52319),o=n(18178),a=n(64692),s=n(64570),l=n(40065),c=n(55582),u=n(75049),d=n(5651);const p=(0,u.Z)((0,d.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var h=n(5380);const f=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],m=(0,l.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,i.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),g=(0,l.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,l.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const v=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiAvatar"}),{alt:l,children:u,className:p,component:v="div",imgProps:b,sizes:_,src:w,srcSet:x,variant:k="circular"}=n,C=(0,r.Z)(n,f);let S=null;const M=function(e){let{crossOrigin:t,referrerPolicy:n,src:r,srcSet:i}=e;const[a,s]=o.useState(!1);return o.useEffect((()=>{if(!r&&!i)return;s(!1);let e=!0;const o=new Image;return o.onload=()=>{e&&s("loaded")},o.onerror=()=>{e&&s("error")},o.crossOrigin=t,o.referrerPolicy=n,o.src=r,i&&(o.srcset=i),()=>{e=!1}}),[t,n,r,i]),a}((0,i.Z)({},b,{src:w,srcSet:x})),T=w||x,E=T&&"error"!==M,P=(0,i.Z)({},n,{colorDefault:!E,component:v,variant:k}),I=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.Z)(i,h.$,t)})(P);return S=E?(0,d.jsx)(g,(0,i.Z)({alt:l,src:w,srcSet:x,sizes:_,ownerState:P,className:I.img},b)):null!=u?u:T&&l?l[0]:(0,d.jsx)(y,{ownerState:P,className:I.fallback}),(0,d.jsx)(m,(0,i.Z)({as:v,ownerState:P,className:(0,a.Z)(I.root,p),ref:t},C,{children:S}))}))},5380:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,Z:()=>a});var r=n(59120),i=n(30535);function o(e){return(0,i.Z)("MuiAvatar",e)}const a=(0,r.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},61120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(97880),i=n(52319),o=n(18178),a=n(64692),s=n(64570),l=n(84917),c=n(44387),u=n(55582),d=n(40065),p=n(59120),h=n(30535);function f(e){return(0,h.Z)("MuiCircularProgress",e)}(0,p.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m=n(5651);const g=["className","color","disableShrink","size","style","thickness","value","variant"];let y,v,b,_,w=e=>e;const x=44,k=(0,l.F4)(y||(y=w`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),C=(0,l.F4)(v||(v=w`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),S=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,c.Z)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.iv)(b||(b=w`
      animation: ${0} 1.4s linear infinite;
    `),k)})),M=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),T=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,c.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.iv)(_||(_=w`
      animation: ${0} 1.4s ease-in-out infinite;
    `),C)})),E=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:d=!1,size:p=40,style:h,thickness:y=3.6,value:v=0,variant:b="indeterminate"}=n,_=(0,r.Z)(n,g),w=(0,i.Z)({},n,{color:l,disableShrink:d,size:p,thickness:y,value:v,variant:b}),k=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${(0,c.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(n)}`,i&&"circleDisableShrink"]};return(0,s.Z)(o,f,t)})(w),C={},E={},P={};if("determinate"===b){const e=2*Math.PI*((x-y)/2);C.strokeDasharray=e.toFixed(3),P["aria-valuenow"]=Math.round(v),C.strokeDashoffset=`${((100-v)/100*e).toFixed(3)}px`,E.transform="rotate(-90deg)"}return(0,m.jsx)(S,(0,i.Z)({className:(0,a.Z)(k.root,o),style:(0,i.Z)({width:p,height:p},E,h),ownerState:w,ref:t,role:"progressbar"},P,_,{children:(0,m.jsx)(M,{className:k.svg,ownerState:w,viewBox:"22 22 44 44",children:(0,m.jsx)(T,{className:k.circle,style:C,ownerState:w,cx:x,cy:x,r:(x-y)/2,fill:"none",strokeWidth:y})})}))}))},29576:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(52319),i=n(97880),o=n(18178),a=n(72618),s=n(56167),l=n(87534),c=n(45557),u=n(5651);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const h={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},f="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=o.forwardRef((function(e,t){const{addEndListener:n,appear:m=!0,children:g,easing:y,in:v,onEnter:b,onEntered:_,onEntering:w,onExit:x,onExited:k,onExiting:C,style:S,timeout:M="auto",TransitionComponent:T=a.ZP}=e,E=(0,i.Z)(e,d),P=o.useRef(),I=o.useRef(),O=(0,s.Z)(),L=o.useRef(null),R=(0,c.Z)(L,g.ref,t),j=e=>t=>{if(e){const n=L.current;void 0===t?e(n):e(n,t)}},D=j(w),A=j(((e,t)=>{(0,l.n)(e);const{duration:n,delay:r,easing:i}=(0,l.C)({style:S,timeout:M,easing:y},{mode:"enter"});let o;"auto"===M?(o=O.transitions.getAutoHeightDuration(e.clientHeight),I.current=o):o=n,e.style.transition=[O.transitions.create("opacity",{duration:o,delay:r}),O.transitions.create("transform",{duration:f?o:.666*o,delay:r,easing:i})].join(","),b&&b(e,t)})),N=j(_),F=j(C),z=j((e=>{const{duration:t,delay:n,easing:r}=(0,l.C)({style:S,timeout:M,easing:y},{mode:"exit"});let i;"auto"===M?(i=O.transitions.getAutoHeightDuration(e.clientHeight),I.current=i):i=t,e.style.transition=[O.transitions.create("opacity",{duration:i,delay:n}),O.transitions.create("transform",{duration:f?i:.666*i,delay:f?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=p(.75),x&&x(e)})),B=j(k);return o.useEffect((()=>()=>{clearTimeout(P.current)}),[]),(0,u.jsx)(T,(0,r.Z)({appear:m,in:v,nodeRef:L,onEnter:A,onEntered:N,onEntering:D,onExit:z,onExited:B,onExiting:F,addEndListener:e=>{"auto"===M&&(P.current=setTimeout(e,I.current||0)),n&&n(L.current,e)},timeout:"auto"===M?null:M},E,{children:(e,t)=>o.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||v?void 0:"hidden"},h[e],S,g.props.style),ref:R},t))}))}));m.muiSupportAuto=!0;const g=m},55447:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(97880),i=n(52319),o=n(18178),a=n(64692),s=n(64570),l=n(40065),c=n(55582),u=n(44387),d=n(59120),p=n(30535);function h(e){return(0,p.Z)("MuiListSubheader",e)}(0,d.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var f=n(5651);const m=["className","color","component","disableGutters","disableSticky","inset"],g=(0,l.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiListSubheader"}),{className:o,color:l="default",component:d="li",disableGutters:p=!1,disableSticky:y=!1,inset:v=!1}=n,b=(0,r.Z)(n,m),_=(0,i.Z)({},n,{color:l,component:d,disableGutters:p,disableSticky:y,inset:v}),w=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,u.Z)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,s.Z)(a,h,t)})(_);return(0,f.jsx)(g,(0,i.Z)({as:d,className:(0,a.Z)(w.root,o),ref:t,ownerState:_},b))}));y.muiSkipListHighlight=!0;const v=y},86504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(97880),i=n(52319),o=n(18178),a=n(64692),s=n(64570),l=n(61131),c=n(40065);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(55582),p=n(59120),h=n(30535);function f(e){return(0,h.Z)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=n(5651);const g=["className","component","elevation","square","variant"],y=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,i.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,i.Z)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.Fq)("#fff",u(n.elevation))}, ${(0,l.Fq)("#fff",u(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),v=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:p="elevation"}=n,h=(0,r.Z)(n,g),v=(0,i.Z)({},n,{component:l,elevation:c,square:u,variant:p}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(o,f,i)})(v);return(0,m.jsx)(y,(0,i.Z)({as:l,ownerState:v,className:(0,a.Z)(b.root,o),ref:t},h))}))},16962:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(52319),i=n(97880),o=n(90359),a=n(57995),s=n(18178),l=n(78210),c=n(32745),u=n(97722),d=n(77724),p=n(64570),h=n(52949),f=n(30535);function m(e){return(0,f.Z)("MuiPopper",e)}(0,n(59120).Z)("MuiPopper",["root"]);var g=n(11078),y=n(87071),v=n(5651);const b=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function w(e){return"function"===typeof e?e():e}function x(e){return void 0!==e.nodeType}const k={},C=s.forwardRef((function(e,t){var n;const{anchorEl:r,children:i,direction:u,disablePortal:h,modifiers:f,open:_,placement:x,popperOptions:k,popperRef:C,slotProps:S={},slots:M={},TransitionProps:T}=e,E=(0,a.Z)(e,b),P=s.useRef(null),I=(0,l.Z)(P,t),O=s.useRef(null),L=(0,l.Z)(O,C),R=s.useRef(L);(0,c.Z)((()=>{R.current=L}),[L]),s.useImperativeHandle(C,(()=>O.current),[]);const j=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(x,u),[D,A]=s.useState(j),[N,F]=s.useState(w(r));s.useEffect((()=>{O.current&&O.current.forceUpdate()})),s.useEffect((()=>{r&&F(w(r))}),[r]),(0,c.Z)((()=>{if(!N||!_)return;let e=[{name:"preventOverflow",options:{altBoundary:h}},{name:"flip",options:{altBoundary:h}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;A(t.placement)}}];null!=f&&(e=e.concat(f)),k&&null!=k.modifiers&&(e=e.concat(k.modifiers));const t=(0,d.fi)(N,P.current,(0,o.Z)({placement:j},k,{modifiers:e}));return R.current(t),()=>{t.destroy(),R.current(null)}}),[N,h,f,_,k,j]);const z={placement:D};null!==T&&(z.TransitionProps=T);const B=(0,p.Z)({root:["root"]},(0,y.T)(m)),U=null!=(n=M.root)?n:"div",$=(0,g.y)({elementType:U,externalSlotProps:S.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:I},ownerState:e,className:B.root});return(0,v.jsx)(U,(0,o.Z)({},$,{children:"function"===typeof i?i(z):i}))})),S=s.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:f,placement:m="bottom",popperOptions:g=k,popperRef:y,style:b,transition:S=!1,slotProps:M={},slots:T={}}=e,E=(0,a.Z)(e,_),[P,I]=s.useState(!0);if(!d&&!f&&(!S||P))return null;let O;if(i)O=i;else if(n){const e=w(n);O=e&&x(e)?(0,u.Z)(e).body:(0,u.Z)(null).body}const L=f||!d||S&&!P?void 0:"none",R=S?{in:f,onEnter:()=>{I(!1)},onExited:()=>{I(!0)}}:void 0;return(0,v.jsx)(h.h,{disablePortal:c,container:O,children:(0,v.jsx)(C,(0,o.Z)({anchorEl:n,direction:l,disablePortal:c,modifiers:p,ref:t,open:S?!P:f,placement:m,popperOptions:g,popperRef:y,slotProps:M,slots:T},E,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:L},b),TransitionProps:R,children:r}))})}));var M=n(24869),T=n(40065),E=n(55582);const P=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],I=(0,T.ZP)(S,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O=s.forwardRef((function(e,t){var n;const o=(0,M.Z)(),a=(0,E.Z)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:f,open:m,placement:g,popperOptions:y,popperRef:b,transition:_,slots:w,slotProps:x}=a,k=(0,i.Z)(a,P),C=null!=(n=null==w?void 0:w.root)?n:null==c?void 0:c.Root,S=(0,r.Z)({anchorEl:s,container:d,disablePortal:p,keepMounted:h,modifiers:f,open:m,placement:g,popperOptions:y,popperRef:b,transition:_},k);return(0,v.jsx)(I,(0,r.Z)({as:l,direction:null==o?void 0:o.direction,slots:{root:C},slotProps:null!=x?x:u},S,{ref:t}))}))},76685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(52319),i=n(97880),o=n(18178),a=n(64692),s=n(64570),l=n(44387),c=n(55582),u=n(40065),d=n(97184),p=n(5651);const h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],f=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.Z)(n.color)}`],t[`fontSize${(0,l.Z)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,a,s,l,c,u,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),m=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:u,className:m,color:g="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:_=!1,titleAccess:w,viewBox:x="0 0 24 24"}=n,k=(0,i.Z)(n,h),C=o.isValidElement(u)&&"svg"===u.type,S=(0,r.Z)({},n,{color:g,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:x,hasSvgAsChild:C}),M={};_||(M.viewBox=x);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(n)}`]};return(0,s.Z)(i,d.h,r)})(S);return(0,p.jsxs)(f,(0,r.Z)({as:y,className:(0,a.Z)(T.root,m),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},M,k,C&&u.props,{ownerState:S,children:[C?u.props.children:u,w?(0,p.jsx)("title",{children:w}):null]}))}));m.muiName="SvgIcon";const g=m},97184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,h:()=>o});var r=n(59120),i=n(30535);function o(e){return(0,i.Z)("MuiSvgIcon",e)}const a=(0,r.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"])},75306:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,Z:()=>a});var r=n(59120),i=n(30535);function o(e){return(0,i.Z)("MuiTooltip",e)}const a=(0,r.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},97083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(52319),i=n(97880),o=n(70353),a=n(49949),s=n(55235),l=n(8560),c=n(29037);var u=n(61131);const d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,i):"dark"===t&&(e.dark=(0,u._j)(e.main,o)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),S=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),M=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function E(e){return(0,u.mi)(e,w.text.primary)>=n?w.text.primary:_.text.primary}const P=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.Z)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?` (${n})`:"",i));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?` (${n})`:"",JSON.stringify(t.main)));return x(t,"light",a,s),x(t,"dark",l,s),t.contrastText||(t.contrastText=E(t.main)),t},I={dark:w,light:_};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:t,primary:P({color:c,name:"primary"}),secondary:P({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:C,name:"error"}),warning:P({color:T,name:"warning"}),info:P({color:S,name:"info"}),success:P({color:M,name:"success"}),grey:p,contrastThreshold:n,getContrastText:E,augmentColor:P,tonalOffset:s},I[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const S={textTransform:"uppercase"},M='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=M,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=(0,i.Z)(n,C);const g=s/14,y=f||(e=>e/p*g+"rem"),v=(e,t,n,i,a)=>{return(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===M?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,S),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,S),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:p,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function E(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const P=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)];var I=n(95732);const O={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,p=(0,i.Z)(e,L);if(e.vars)throw new Error((0,o.Z)(18));const h=k(n),f=(0,s.Z)(e);let m=(0,a.Z)(f,{mixins:(g=f.breakpoints,y=t,(0,r.Z)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},y)),palette:h,shadows:P.slice(),typography:T(h,d),transitions:(0,I.ZP)(u),zIndex:(0,r.Z)({},O)});var g,y;m=(0,a.Z)(m,p);for(var v=arguments.length,b=new Array(v>1?v-1:0),_=1;_<v;_++)b[_-1]=arguments[_];return m=b.reduce(((e,t)=>(0,a.Z)(e,t)),m),m.unstable_sxConfig=(0,r.Z)({},l.Z,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},m}const j=R},95732:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,x9:()=>s});var r=n(97880),i=n(52319);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.Z)({},a,e.easing),n=(0,i.Z)({},s,e.duration);return(0,i.Z)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.Z)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof a?a:l(a)} ${s} ${"string"===typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},86295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97083).Z)()},97847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="$$material"},40065:(e,t,n)=>{"use strict";n.d(t,{Dz:()=>s,FO:()=>a,ZP:()=>l});var r=n(87970),i=n(86295),o=n(97847);const a=e=>(0,r.x9)(e)&&"classes"!==e,s=r.x9,l=(0,r.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:a})},56167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(18178);var r=n(57693),i=n(86295),o=n(97847);function a(){const e=(0,r.Z)(i.Z);return e[o.Z]||e}},55582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(52430),i=n(86295),o=n(97847);function a(e){let{props:t,name:n}=e;return(0,r.Z)({props:t,name:n,defaultTheme:i.Z,themeId:o.Z})}},87534:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,n:()=>r});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:a.transitionDelay}}},44387:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(84365).Z},75049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(52319),i=n(18178),o=n(76685),a=n(5651);function s(e,t){function n(n,i){return(0,a.jsx)(o.Z,(0,r.Z)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.Z.muiName,i.memo(i.forwardRef(n))}},45557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(78210).Z},56084:(e,t,n)=>{"use strict";n.d(t,{Co:()=>o,ZP:()=>i});var r=n(84917);function i(e,t){let n;return n=t?(0,r.ZP)(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):(0,r.ZP)(e),n}const o=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}},13609:(e,t,n)=>{"use strict";n.d(t,{L7:()=>l,P$:()=>u,VO:()=>i,W8:()=>s,dt:()=>c,k9:()=>a});var r=n(49949);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=[t,...i].reduce(((e,t)=>(0,r.Z)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let a;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},61131:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,Fq:()=>c,_4:()=>p,_j:()=>u,mi:()=>l});var r=n(70353);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let i,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),i=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:i}}function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?u(e,t):d(e,t)}},57998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(52319),i=n(97880),o=n(18178),a=n(64692),s=n(56084),l=n(29037),c=n(63411),u=n(57693),d=n(5651);const p=["className","component"];function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:h="MuiBox-root",generateClassName:f}=e,m=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return o.forwardRef((function(e,o){const s=(0,u.Z)(n),l=(0,c.Z)(e),{className:g,component:y="div"}=l,v=(0,i.Z)(l,p);return(0,d.jsx)(m,(0,r.Z)({as:y,ref:o,className:(0,a.Z)(g,f?f(h):h),theme:t&&s[t]||s},v))}))}},87970:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>w,x9:()=>g});var r=n(97880),i=n(52319),o=n(56084),a=n(55235),s=n(84365);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.Z)(e,l);let i=t||"";return Object.keys(n).sort().forEach((t=>{i+="color"===t?c(i)?e[t]:(0,s.Z)(e[t]):`${c(i)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),i}var d=n(29037);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const h=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,f=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r},m=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=null==n||null==(i=n.components)||null==(i=i[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{o[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&a.push(t[u(n.props)])})),a};function g(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const y=(0,a.Z)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function _(e){return e?(t,n)=>n[e]:null}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=y,rootShouldForwardProp:a=g,slotShouldForwardProp:s=g}=e,l=e=>(0,d.Z)((0,i.Z)({},e,{theme:b((0,i.Z)({},e,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:d,skipVariantsResolver:y,skipSx:w,overridesResolver:x=_(v(d))}=c,k=(0,r.Z)(c,p),C=void 0!==y?y:d&&"Root"!==d&&"root"!==d||!1,S=w||!1;let M=g;"Root"===d||"root"===d?M=a:d?M=s:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(M=void 0);const T=(0,o.ZP)(e,(0,i.Z)({shouldForwardProp:M,label:undefined},k)),E=function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];const c=a?a.map((e=>"function"===typeof e&&e.__emotion_real!==e?r=>e((0,i.Z)({},r,{theme:b((0,i.Z)({},r,{defaultTheme:n,themeId:t}))})):e)):[];let d=r;u&&x&&c.push((e=>{const r=b((0,i.Z)({},e,{defaultTheme:n,themeId:t})),o=h(u,r);if(o){const t={};return Object.entries(o).forEach((n=>{let[o,a]=n;t[o]="function"===typeof a?a((0,i.Z)({},e,{theme:r})):a})),x(e,t)}return null})),u&&!C&&c.push((e=>{const r=b((0,i.Z)({},e,{defaultTheme:n,themeId:t}));return m(e,f(u,r),r,u)})),S||c.push(l);const p=c.length-a.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");d=[...r,...e],d.raw=[...r.raw,...e]}else"function"===typeof r&&r.__emotion_real!==r&&(d=e=>r((0,i.Z)({},e,{theme:b((0,i.Z)({},e,{defaultTheme:n,themeId:t}))})));const g=T(d,...c);return e.muiName&&(g.muiName=e.muiName),g};return T.withConfig&&(E.withConfig=T.withConfig),E}}},55235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(52319),i=n(97880),o=n(49949);const a=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=n(10402);var u=n(29037),d=n(8560);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,i.Z)(e,p),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,l=(0,i.Z)(e,a),c=s(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-o/100}${n})`}function h(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}(t),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let v=(0,o.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},n),spacing:y,shape:(0,r.Z)({},l,f)},m);for(var b=arguments.length,_=new Array(b>1?b-1:0),w=1;w<b;w++)_[w-1]=arguments[w];return v=_.reduce(((e,t)=>(0,o.Z)(e,t)),v),v.unstable_sxConfig=(0,r.Z)({},d.Z,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},v}},61516:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(49949);const i=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},10402:(e,t,n)=>{"use strict";n.d(t,{hB:()=>f,eI:()=>h,NA:()=>m,e6:()=>v,o3:()=>b});var r=n(13609),i=n(31843),o=n(61516);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var o;const a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.k9)(e,a,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(o.Z,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function _(e){return y(e,p)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,_.propTypes={},_.filterProps=p},31843:(e,t,n)=>{"use strict";n.d(t,{DW:()=>o,Jq:()=>a,ZP:()=>s});var r=n(84365),i=n(13609);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.k9)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},8560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(10402),i=n(31843),o=n(61516);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,o.Z)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var s=n(13609);function l(e){return"number"!==typeof e?e:`${e}px solid`}const c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};b.propTypes={},b.filterProps=["borderRadius"];a(c,u,d,p,h,f,m,g,y,v,b);const _=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};_.propTypes={},_.filterProps=["gap"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const x=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};x.propTypes={},x.filterProps=["rowGap"];a(_,w,x,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function k(e,t){return"grey"===t?t:e}a((0,i.ZP)({prop:"color",themeKey:"palette",transform:k}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:k}));function C(e){return e<=1&&0!==e?100*e+"%":e}const S=(0,i.ZP)({prop:"width",transform:C}),M=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n;return{maxWidth:(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.VO[t]||C(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};M.filterProps=["maxWidth"];const T=(0,i.ZP)({prop:"minWidth",transform:C}),E=(0,i.ZP)({prop:"height",transform:C}),P=(0,i.ZP)({prop:"maxHeight",transform:C}),I=(0,i.ZP)({prop:"minHeight",transform:C}),O=((0,i.ZP)({prop:"size",cssProperty:"width",transform:C}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:C}),a(S,M,T,E,P,I,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:x},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:M},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},63411:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(52319),i=n(97880),o=n(49949),a=n(8560);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.Z)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.P)(e)?(0,r.Z)({},a,e):a}:(0,r.Z)({},a,t),(0,r.Z)({},c,{sx:u})}},29037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(84365),i=n(61516),o=n(31843),a=n(13609),s=n(8560);const l=function(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,o.DW)(n,u)||{};if(p)return p(s);return(0,a.k9)(s,t,(t=>{let n=(0,o.Jq)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,o.Jq)(h,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.Z;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,a.W8)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.Z)(u,e(n,o,l,c));else{const e=(0,a.k9)({theme:l},o,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,o)?u=(0,i.Z)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.Z)(u,e(n,o,l,c))})),(0,a.L7)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}();l.filterProps=["sx"];const c=l},57693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(55235),i=n(24869);const o=(0,r.Z)();const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},42525:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(75640);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},52430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(42525),i=n(57693);function o(e){let{props:t,name:n,defaultTheme:o,themeId:a}=e,s=(0,i.Z)(o);a&&(s=s[a]||s);return(0,r.Z)({theme:s,name:n,props:t})}},24869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(18178),i=n(84917);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(i.Ni);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},47634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},84365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(70353);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},64570:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:()=>r})},49949:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,Z:()=>a});var r=n(90359);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},70353:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},30535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(47634);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=i[t];return o?`${n}-${o}`:`${r.Z.generate(e)}-${t}`}},59120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30535);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.Z)(e,t,n)})),i}},97722:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},75640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90359);function i(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},4486:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},56040:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(18178);function i(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}},32745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(18178);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},19810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(18178),i=n(32745);const o=function(e){const t=r.useRef(e);return(0,i.Z)((()=>{t.current=e})),r.useCallback((function(){return(0,t.current)(...arguments)}),[])}},78210:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(18178),i=n(4486);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.Z)(t,e)}))}),t)}},8135:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>s});var i=n(18178);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},77724:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!==typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:()=>ye});var s=Math.max,l=Math.min,c=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,l=1;t&&o(e)&&(s=e.offsetWidth>0&&c(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var u=(i(e)?r(e):window).visualViewport,p=!d()&&n,h=(a.left+(p&&u?u.offsetLeft:0))/s,f=(a.top+(p&&u?u.offsetTop:0))/l,m=a.width/s,g=a.height/l;return{width:m,height:g,top:f,right:h+m,bottom:f+g,left:h,x:h,y:f}}function h(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return p(m(e)).left+h(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function v(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=m(t),l=p(e,a,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&(("body"!==f(t)||v(s))&&(u=function(e){return e!==r(e)&&o(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:h(e);var t}(t)),o(t)?((d=p(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=g(s))),{x:l.left+u.scrollLeft-d.x,y:l.top+u.scrollTop-d.y,width:l.width,height:l.height}}function _(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:o(e)&&v(e)?e:x(w(e))}function k(e,t){var n;void 0===t&&(t=[]);var i=x(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],v(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(k(w(s)))}function C(e){return["table","td","th"].indexOf(f(e))>=0}function S(e){return o(e)&&"fixed"!==y(e).position?e.offsetParent:null}function M(e){for(var t=r(e),n=S(e);n&&C(n)&&"static"===y(n).position;)n=S(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===y(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&o(e)&&"fixed"===y(e).position)return null;var n=w(e);for(a(n)&&(n=n.host);o(n)&&["html","body"].indexOf(f(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var T="top",E="bottom",P="right",I="left",O="auto",L=[T,E,P,I],R="start",j="end",D="clippingParents",A="viewport",N="popper",F="reference",z=L.reduce((function(e,t){return e.concat([t+"-"+R,t+"-"+j])}),[]),B=[].concat(L,[O]).reduce((function(e,t){return e.concat([t,t+"-"+R,t+"-"+j])}),[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?q:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,c={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:i(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var d=function(e){var t=$(e);return U.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:c,options:r}),l=function(){};s.push(a||l)}})),c.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Z(t,n)){o.rects={reference:b(t,M(n),"fixed"===o.options.strategy),popper:_(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,u=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!Z(e,t))return c;function u(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var G={passive:!0};function W(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?Y(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case T:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case I:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?K(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case R:t[c]=t[c]-(n[u]/2-r[u]/2);break;case j:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,f=s.x,g=void 0===f?0:f,v=s.y,b=void 0===v?0:v,_="function"===typeof p?p({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=I,C=T,S=window;if(d){var O=M(n),L="clientHeight",R="clientWidth";if(O===r(n)&&"static"!==y(O=m(n)).position&&"absolute"===l&&(L="scrollHeight",R="scrollWidth"),o===T||(o===I||o===P)&&a===j)C=E,b-=(h&&O===S&&S.visualViewport?S.visualViewport.height:O[L])-i.height,b*=u?1:-1;if(o===I||(o===T||o===E)&&a===j)k=P,g-=(h&&O===S&&S.visualViewport?S.visualViewport.width:O[R])-i.width,g*=u?1:-1}var D,A=Object.assign({position:l},d&&J),N=!0===p?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:c(n*i)/i||0,y:c(r*i)/i||0}}({x:g,y:b},r(n)):{x:g,y:b};return g=N.x,b=N.y,u?Object.assign({},A,((D={})[C]=x?"0":"",D[k]=w?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",D)):Object.assign({},A,((t={})[C]=x?b+"px":"",t[k]=w?g+"px":"",t.transform="",t))}const ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),i=[I,T].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[I,P].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var te={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e){return e.replace(/left|right|bottom|top/g,(function(e){return te[e]}))}var re={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ae(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function se(e,t,n){return t===A?ae(function(e,t){var n=r(e),i=m(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var u=d();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+g(e),y:c}}(e,n)):i(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ae(function(e){var t,n=m(e),r=h(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+g(e),c=-r.scrollTop;return"rtl"===y(i||n).direction&&(l+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}(m(e)))}function le(e,t,n,r){var a="clippingParents"===t?function(e){var t=k(w(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&o(e)?M(e):e;return i(n)?t.filter((function(e){return i(e)&&oe(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),u=c[0],d=c.reduce((function(t,n){var i=se(e,n,r);return t.top=s(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),se(e,u,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ue(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function de(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,l=n.boundary,c=void 0===l?D:l,u=n.rootBoundary,d=void 0===u?A:u,h=n.elementContext,f=void 0===h?N:h,g=n.altBoundary,y=void 0!==g&&g,v=n.padding,b=void 0===v?0:v,_=ce("number"!==typeof b?b:ue(b,L)),w=f===N?F:N,x=e.rects.popper,k=e.elements[y?w:f],C=le(i(k)?k:k.contextElement||m(e.elements.popper),c,d,s),S=p(e.elements.reference),M=X({reference:S,element:x,strategy:"absolute",placement:o}),I=ae(Object.assign({},x,M)),O=f===N?I:S,R={top:C.top-O.top+_.top,bottom:O.bottom-C.bottom+_.bottom,left:C.left-O.left+_.left,right:O.right-C.right+_.right},j=e.modifiersData.offset;if(f===N&&j){var z=j[o];Object.keys(R).forEach((function(e){var t=[P,E].indexOf(e)>=0?1:-1,n=[T,E].indexOf(e)>=0?"y":"x";R[e]+=z[n]*t}))}return R}function pe(e,t,n){return s(e,l(t,n))}const he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,y=void 0===g?0:g,v=de(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),b=W(t.placement),w=Y(t.placement),x=!w,k=K(b),C="x"===k?"y":"x",S=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,j="function"===typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"===typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(S){if(o){var F,z="y"===k?T:I,B="y"===k?E:P,U="y"===k?"height":"width",$=S[k],V=$+v[z],q=$-v[B],Z=m?-L[U]/2:0,H=w===R?O[U]:L[U],G=w===R?-L[U]:-O[U],X=t.elements.arrow,J=m&&X?_(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[z],te=Q[B],ne=pe(0,O[U],J[U]),re=x?O[U]/2-Z-ne-ee-D.mainAxis:H-ne-ee-D.mainAxis,ie=x?-O[U]/2+Z+ne+te+D.mainAxis:G+ne+te+D.mainAxis,oe=t.elements.arrow&&M(t.elements.arrow),ae=oe?"y"===k?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(F=null==A?void 0:A[k])?F:0,le=$+ie-se,ce=pe(m?l(V,$+re-se-ae):V,$,m?s(q,le):q);S[k]=ce,N[k]=ce-$}if(c){var ue,he="x"===k?T:I,fe="x"===k?E:P,me=S[C],ge="y"===C?"height":"width",ye=me+v[he],ve=me-v[fe],be=-1!==[T,I].indexOf(b),_e=null!=(ue=null==A?void 0:A[C])?ue:0,we=be?ye:me-O[ge]-L[ge]-_e+D.altAxis,xe=be?me+O[ge]+L[ge]-_e-D.altAxis:ve,ke=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(we,me,xe):pe(m?we:ye,me,m?xe:ve);S[C]=ke,N[C]=ke-me}t.modifiersData[r]=N}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),l=K(s),c=[I,P].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return ce("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ue(e,L))}(i.padding,n),d=_(o),p="y"===l?T:I,h="y"===l?E:P,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=M(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=u[p],w=y-d[c]-u[h],x=y/2-d[c]/2+v,k=pe(b,x,w),C=l;n.modifiersData[r]=((t={})[C]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ge(e){return[T,P,E,I].some((function(t){return e[t]>=0}))}var ye=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,c=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,G)})),l&&c.addEventListener("resize",n.update,G),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),l&&c.removeEventListener("resize",n.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:W(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&f(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&f(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ee,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=W(g),v=l||(y===g||!f?[ne(g)]:function(e){if(W(e)===O)return[];var t=ne(e);return[ie(e),t,ie(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(W(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?B:l,u=Y(r),d=u?s?z:z.filter((function(e){return Y(e)===u})):L,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=de(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[W(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=b[0],S=0;S<b.length;S++){var M=b[S],j=W(M),D=Y(M)===R,A=[T,E].indexOf(j)>=0,N=A?"width":"height",F=de(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),U=A?D?P:I:D?E:T;_[N]>w[N]&&(U=ne(U));var $=ne(U),V=[];if(o&&V.push(F[j]<=0),s&&V.push(F[U]<=0,F[$]<=0),V.every((function(e){return e}))){C=M,k=!1;break}x.set(M,V)}if(k)for(var q=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},Z=f?3:1;Z>0;Z--){if("break"===q(Z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},he,fe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=de(t,{elementContext:"reference"}),s=de(t,{altBoundary:!0}),l=me(a,r),c=me(s,i,o),u=ge(l),d=ge(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]})},16028:(e,t,n)=>{"use strict";n.d(t,{UO:()=>a,cV:()=>i,mE:()=>s});var r=n(18178);const i=1,o=(0,r.createContext)(null),a=o.Provider;function s(){const e=(0,r.useContext)(o);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},68481:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(18178),i=n(16028);function o(e){return function(t){const n=(0,i.mE)(),o=e(t,n),{instance:a}=o.current,s=(0,r.useRef)(t.position),{position:l}=t;return(0,r.useEffect)((function(){return a.addTo(n.map),function(){a.remove()}}),[n.map,a]),(0,r.useEffect)((function(){null!=l&&l!==s.current&&(a.setPosition(l),s.current=l)}),[a,l]),o}}},11774:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(18178);function i(e,t){return null==t?function(t,n){return(0,r.useRef)(e(t,n))}:function(n,i){const o=(0,r.useRef)(e(n,i)),a=(0,r.useRef)(n),{instance:s}=o.current;return(0,r.useEffect)((function(){a.current!==n&&(t(s,n,a.current),a.current=n)}),[s,n,i]),o}}},48766:(e,t,n)=>{"use strict";n.d(t,{vm:()=>g,dW:()=>y,SO:()=>v,Au:()=>b,Lf:()=>_});var r=n(18178),i=n(22297),o=n(16028);function a(e){function t(t,n){const{instance:i,context:a}=e(t).current;return(0,r.useImperativeHandle)(n,(()=>i)),null==t.children?null:r.createElement(o.UO,{value:a},t.children)}return(0,r.forwardRef)(t)}function s(e){function t(t,n){const{instance:i}=e(t).current;return(0,r.useImperativeHandle)(n,(()=>i)),null}return(0,r.forwardRef)(t)}var l=n(68481),c=n(11774);function u(e,t){const n=(0,r.useRef)(t);(0,r.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function d(e,t){const n=(0,r.useRef)();(0,r.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}var p=n(58838);function h(e,t){(0,r.useEffect)((function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;null==(n=t.layerContainer)||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}function f(e){return function(t){const n=(0,o.mE)(),r=e((0,p.q)(t,n),n);return u(n.map,t.attribution),d(r.current,t.eventHandlers),h(r.current,n),r}}function m(e){return function(t){const n=(0,o.mE)(),i=e((0,p.q)(t,n),n);return d(i.current,t.eventHandlers),h(i.current,n),function(e,t){const n=(0,r.useRef)();(0,r.useEffect)((function(){if(t.pathOptions!==n.current){const r=t.pathOptions??{};e.instance.setStyle(r),n.current=r}}),[e,t])}(i.current,t),i}}function g(e){const t=(0,c.I)((function(t,n){return{instance:e(t),context:n}}));return s((0,l.y)(t))}function y(e,t){return a(f((0,c.I)(e,t)))}function v(e,t){const n=function(e,t){return function(n,r){const i=(0,o.mE)(),a=e((0,p.q)(n,i),i);return u(i.map,n.attribution),d(a.current,n.eventHandlers),t(a.current,i,n,r),a}}((0,c.I)(e),t);return function(e){function t(t,n){const[o,a]=(0,r.useState)(!1),{instance:s}=e(t,a).current;(0,r.useImperativeHandle)(n,(()=>s)),(0,r.useEffect)((function(){o&&s.update()}),[s,o,t.children]);const l=s._contentNode;return l?(0,i.createPortal)(t.children,l):null}return(0,r.forwardRef)(t)}(n)}function b(e,t){return a(m((0,c.I)(e,t)))}function _(e,t){return s(f((0,c.I)(e,t)))}},58838:(e,t,n)=>{"use strict";function r(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}n.d(t,{q:()=>r})},75230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73424);t.default=function(e){var t=(void 0===e?{}:e).dataLayerName,n=void 0===t?"dataLayer":t;return function(e){if("undefined"!==typeof window){if(!window[n]||"function"!==typeof window[n].push)throw new Error("redux-beacon error: window."+n+" is not defined. Have you forgotten to include Google Tag Manager and dataLayer?");e.forEach((function(e){"object"===typeof e&&window[n].push(r.convertFromGoogleAnalyticsEventIfNeeded(e))}))}}}},81321:(e,t,n)=>{"use strict";var r=n(75230);t.Z=r.default},73424:function(e,t){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.convertFromGoogleAnalyticsEventIfNeeded=function(e){if(!e.event&&e.hitType){var t=e.hitType,i=r(e,["hitType"]);return n({},i,{event:t})}return e}},12581:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[G]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===W}(e)||Array.isArray(e)||!!e[H]||!!e.constructor[H]||p(e)||h(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:Y)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return $&&e instanceof Map}function h(e){return V&&e instanceof Set}function f(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[G];for(var n=Y(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),v(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function y(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=X[e];return t||r(18,e),t}function _(e,t){X[e]||(X[e]=t)}function w(){return B}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){C(e),e.p.forEach(M),e.p=null}function C(e){e===B&&(B=e.l)}function S(e){return B={p:[],l:B,h:e,m:!0,_:0}}function M(e){var t=e[G];0===t.i||1===t.i?t.j():t.O=!0}function T(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,i),i?(n[G].P&&(k(t),r(4)),o(e)&&(e=E(t,e),t.l||I(t,e)),t.u&&b("Patches").M(n[G],e,t.u,t.s)):e=E(t,n,[]),k(t),t.u&&t.v(t.u,t.s),e!==Z?e:void 0}function E(e,t,n){if(v(t))return t;var r=t[G];if(!r)return a(t,(function(i,o){return P(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return I(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return P(e,r,i,t,o,n)})),I(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function P(e,t,n,r,a,s){if(i(a)){var c=E(e,a,s&&t&&3!==t.i&&!l(t.D,r)?s.concat(r):void 0);if(u(n,r,c),!i(c))return;e.m=!1}if(o(a)&&!v(a)){if(!e.h.F&&e._<1)return;E(e,a),t&&t.A.l||I(e,a)}}function I(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&g(t,n)}function O(e,t){var n=e[G];return(n?f(n):e)[t]}function L(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function j(e){e.o||(e.o=m(e.t))}function D(e,t,n){var r=p(t)?b("MapSet").N(t,n):h(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=J;n&&(i=[r],o=Q);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):b("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function A(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[G],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=N(t,i),r.I=!1}else n=N(t,i);return a(n,(function(t,i){r&&c(r.t,t)===i||u(n,t,e(i))})),3===i?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function F(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[G];return J.get(t,e)},set:function(t){var n=this[G];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][G];if(!i.P)switch(i.i){case 5:r(i)&&R(i);break;case 4:n(i)&&R(i)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==G){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=n[o],c=s&&s[G];if(c?c.t!==a:!d(s,a))return!0}}var u=!!t[G];return r.length!==Y(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var o={};_("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=K(n);delete o[G];for(var a=Y(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:w(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,G,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[G].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[G];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)a(o,(function(t){t!==G&&(void 0!==i[t]||l(i,t)?s[t]||e(o[t]):(s[t]=!0,R(n)))})),a(i,(function(e){void 0!==o[e]||l(o,e)||(s[e]=!1,R(n))}));else if(5===c){if(r(n)&&(R(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var d=i.length;d<o.length;d++)s[d]=!0;for(var p=Math.min(o.length,i.length),h=0;h<p;h++)void 0===s[h]&&e(o[h])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,{xC:()=>Ce,hg:()=>Re,oM:()=>Te});var z,B,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),$="undefined"!=typeof Map,V="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Z=U?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),H=U?Symbol.for("immer-draftable"):"__$immer_draftable",G=U?Symbol.for("immer-state"):"__$immer_state",W=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},J={get:function(e,t){if(t===G)return e;var n=f(e);if(!l(n,t))return function(e,t,n){var r,i=L(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===O(e.t,t)?(j(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,n){var r=L(f(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=O(f(e),t),o=null==i?void 0:i[G];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(d(n,i)&&(void 0!==n||l(e.t,t)))return!0;j(e),R(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==O(e.t,t)||t in e.t?(e.D[t]=!1,j(e),R(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=f(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.g=q,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var l;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var c=S(t),u=D(t,e,void 0),d=!0;try{l=n(u),d=!1}finally{d?k(c):C(c)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return x(c,i),T(e,c)}),(function(e){throw k(c),e})):(x(c,i),T(l,c))}if(!e||"object"!=typeof e){if((l=n(e))===Z)return;return void 0===l&&(l=e),t.F&&g(l,!0),l}r(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=A(e));var t=S(this),n=D(this,e,void 0);return n[G].C=!0,C(t),n},t.finishDraft=function(e,t){var n=(e&&e[G]).A;return x(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!q&&r(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const re=ne;var ie=n(60374),oe=n(35770),ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},le=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},ce=Object.defineProperty,ue=Object.defineProperties,de=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=function(e,t,n){return t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ge=function(e,t){for(var n in t||(t={}))he.call(t,n)&&me(e,n,t[n]);if(pe)for(var r=0,i=pe(t);r<i.length;r++){n=i[r];fe.call(t,n)&&me(e,n,t[n])}return e},ye=function(e,t){return ue(e,de(t))},ve=function(e,t,n){return new Promise((function(r,i){var o=function(e){try{s(n.next(e))}catch(t){i(t)}},a=function(e){try{s(n.throw(e))}catch(t){i(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(o,a)};s((n=n.apply(e,t)).next())}))},be="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?ie.qC:ie.qC.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function _e(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var we=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return ae(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,le([void 0],e[0].concat(this)))):new(t.bind.apply(t,le([void 0],e.concat(this))))},t}(Array);function xe(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new we);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(oe.Z.withExtraArgument(n.extraArgument)):r.push(oe.Z));0;return r}(e)}}var ke=!0;function Ce(e){var t,n=xe(),r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,h=void 0===p?void 0:p;if("function"===typeof o)t=o;else{if(!_e(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=(0,ie.UY)(o)}var f=s;if("function"===typeof f&&(f=f(n),!ke&&!Array.isArray(f)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ke&&f.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var m=ie.md.apply(void 0,f),g=ie.qC;c&&(g=be(ge({trace:!ke},"object"===typeof c&&c)));var y=[m];Array.isArray(h)?y=le([m],h):"function"===typeof h&&(y=h(y));var v=g.apply(void 0,y);return(0,ie.MT)(t,d,v)}function Se(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ge(ge({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Me(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function Te(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:re(e.initialState,(function(){})),a=e.reducers||{},s=Object.keys(a),l={},c={},u={};function d(){var t="function"===typeof e.extraReducers?Me(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,s=t[1],l=void 0===s?[]:s,u=t[2],d=void 0===u?void 0:u,p=ge(ge({},a),c);return function(e,t,n,r){void 0===n&&(n=[]);var a,s="function"===typeof t?Me(t):[t,n,r],l=s[0],c=s[1],u=s[2];if(function(e){return"function"===typeof e}(e))a=function(){return re(e(),(function(){}))};else{var d=re(e,(function(){}));a=function(){return d}}function p(e,t){void 0===e&&(e=a());var n=le([l[t.type]],c.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(i(e))return"undefined"===typeof(r=n(e,t))?e:r;if(o(e))return re(e,(function(e){return n(e,t)}));if("undefined"===typeof(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return p.getInitialState=a,p}(r,p,l,d)}return s.forEach((function(e){var n,r,i=a[e],o=function(e,t){return e+"/"+t}(t,e);"reducer"in i?(n=i.reducer,r=i.prepare):n=i,l[e]=n,c[o]=n,u[e]=r?Se(o,r):Se(o)})),{name:t,reducer:function(e,t){return n||(n=d()),n(e,t)},actions:u,caseReducers:l,getInitialState:function(){return n||(n=d()),n.getInitialState()}}}var Ee=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Pe=["name","message","stack","code"],Ie=function(e,t){this.payload=e,this.meta=t},Oe=function(e,t){this.payload=e,this.meta=t},Le=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=Pe;n<r.length;n++){var i=r[n];"string"===typeof e[i]&&(t[i]=e[i])}return t}return{message:String(e)}};function Re(e,t,n){var r=Se(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:ye(ge({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),i=Se(e+"/pending",(function(e,t,n){return{payload:void 0,meta:ye(ge({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),o=Se(e+"/rejected",(function(e,t,r,i,o){return{payload:i,error:(n&&n.serializeError||Le)(e||"Rejected"),meta:ye(ge({},o||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Ee(),p=new a,h=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),f=!1;var m=function(){return ve(this,null,(function(){var a,u,m,g,y;return se(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(b=g)||"object"!==typeof b||"function"!==typeof b.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return f=!0,s(i(d,e,null==(u=null==n?void 0:n.getPendingMeta)?void 0:u.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([h,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,rejectWithValue:function(e,t){return new Ie(e,t)},fulfillWithValue:function(e,t){return new Oe(e,t)}})).then((function(t){if(t instanceof Ie)throw t;return t instanceof Oe?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return m=v.sent(),[3,5];case 4:return y=v.sent(),m=y instanceof Ie?o(null,d,e,y.payload,y.meta):o(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(m)&&m.meta.condition||s(m),[2,m]}var b}))}))}();return Object.assign(m,{abort:function(e){f&&(u=e,p.abort())},requestId:d,arg:e,unwrap:function(){return m.then(je)}})}}),{pending:i,rejected:o,fulfilled:r,typePrefix:e})}function je(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}F()},59484:(e,t,n)=>{"use strict";var r=n(35432);function i(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}i.default=i,t.Z=i},92001:(e,t)=>{"use strict";function n(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function r(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r)}function i(e,t,r){void 0===r&&(r={});for(var i=0,o=e;i<o.length;i++){var a=o[i];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++)if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:e},t,r)}function o(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:e},t,r)}function a(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function s(e,t,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:e},t,r)}function l(e,t,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:e},t,r)}function c(e,t,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:e},t,r)}function u(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function d(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function p(e){return 180*(e%(2*Math.PI))/Math.PI}function h(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936*t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return r(t).geometry;case"LineString":return o(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return l(t).geometry;case"MultiLineString":return s(t).geometry;case"MultiPolygon":return c(t).geometry;default:throw new Error(e+" is invalid")}},t.point=r,t.points=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return r(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return i(e,t)})),n)},t.lineString=o,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return o(e,t)})),n)},t.featureCollection=a,t.multiLineString=s,t.multiPoint=l,t.multiPolygon=c,t.geometryCollection=function(e,t,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=u,t.lengthToRadians=d,t.lengthToDegrees=function(e,t){return p(d(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=p,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return u(d(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var o=t.areaFactors[r];if(!o)throw new Error("invalid final units");return e/i*o},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},35432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(92001);function i(e,t,n){if(null!==e)for(var r,o,a,s,l,c,u,d,p=0,h=0,f=e.type,m="FeatureCollection"===f,g="Feature"===f,y=m?e.features.length:1,v=0;v<y;v++){l=(d=!!(u=m?e.features[v].geometry:g?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var b=0;b<l;b++){var _=0,w=0;if(null!==(s=d?u.geometries[b]:u)){c=s.coordinates;var x=s.type;switch(p=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(c,h,v,_,w))return!1;h++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],h,v,_,w))return!1;h++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-p;o++){if(!1===t(c[r][o],h,v,_,w))return!1;h++}"MultiLineString"===x&&_++,"Polygon"===x&&w++}"Polygon"===x&&_++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,o=0;o<c[r].length;o++){for(a=0;a<c[r][o].length-p;a++){if(!1===t(c[r][o][a],h,v,_,w))return!1;h++}w++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function s(e,t){var n,r,i,o,a,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}function l(e,t){s(e,(function(e,n,i,o,a){var s,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,i,{bbox:o,id:a}),n,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:s,coordinates:e.coordinates[c]};if(!1===t(r.feature(u,i),n,c))return!1}}))}function c(e,t){l(e,(function(e,n,o){var a=0;if(e.geometry){var s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,d=0;return!1!==i(e,(function(i,s,p,h,f){if(void 0===l||n>c||h>u||f>d)return l=i,c=n,u=h,d=f,void(a=0);var m=r.lineString([l,i],e.properties);if(!1===t(m,n,o,f,a))return!1;a++,l=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");l(e,(function(e,n,i){if(null!==e.geometry){var o=e.geometry.type,a=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===t(r.lineString(a[s],e.properties),n,i,s))return!1}}}))}t.coordAll=function(e){var t=[];return i(e,(function(e){t.push(e)})),t},t.coordEach=i,t.coordReduce=function(e,t,n,r){var o=n;return i(e,(function(e,r,i,a,s){o=0===r&&void 0===n?e:t(o,e,r,i,a,s)}),r),o},t.featureEach=a,t.featureReduce=function(e,t,n){var r=n;return a(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.findPoint=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.coordIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return r.point(c,l,t);case"MultiPoint":return o<0&&(o=c.length+o),r.point(c[o],l,t);case"LineString":return s<0&&(s=c.length+s),r.point(c[s],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),r.point(c[a][s],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),r.point(c[o][s],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s),r.point(c[o][a][s],l,t)}throw new Error("geojson is invalid")},t.findSegment=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.segmentIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),r.lineString([c[s],c[s+1]],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),r.lineString([c[a][s],c[a][s+1]],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),r.lineString([c[o][s],c[o][s+1]],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s-1),r.lineString([c[o][a][s],c[o][a][s+1]],l,t)}throw new Error("geojson is invalid")},t.flattenEach=l,t.flattenReduce=function(e,t,n){var r=n;return l(e,(function(e,i,o){r=0===i&&0===o&&void 0===n?e:t(r,e,i,o)})),r},t.geomEach=s,t.geomReduce=function(e,t,n){var r=n;return s(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r},t.lineEach=u,t.lineReduce=function(e,t,n){var r=n;return u(e,(function(e,i,o,a){r=0===i&&void 0===n?e:t(r,e,i,o,a)})),r},t.propEach=o,t.propReduce=function(e,t,n){var r=n;return o(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.segmentEach=c,t.segmentReduce=function(e,t,n){var r=n,i=!1;return c(e,(function(e,o,a,s,l){r=!1===i&&void 0===n?e:t(r,e,o,a,s,l),i=!0})),r}},91136:(e,t)=>{"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}var r=n({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}},t.freeze=n,t.MIME_TYPE=r,t.NAMESPACE=i},24273:(e,t,n)=>{var r=n(91136),i=n(2032),o=n(81962),a=n(74064),s=i.DOMImplementation,l=r.NAMESPACE,c=a.ParseError,u=a.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var n=this.options,r=new u,i=n.domBuilder||new h,a=n.errorHandler,s=n.locator,c=n.xmlns||{},p=/\/x?html?$/.test(t),f=p?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var r={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}(a,i,s),r.domBuilder=n.domBuilder||i,p&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var g=n.normalizeLineEndings||d;return e&&"string"===typeof e?r.parse(g(e),c,f):r.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),a=r.length;y(this,o),this.currentElement=o,this.locator&&f(this.locator,o);for(var s=0;s<a;s++){e=r.getURI(s);var l=r.getValue(s),c=(n=r.getQName(s),i.createAttributeNS(e,n));this.locator&&f(r.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,n),y(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&f(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=g.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&f(this.locator,r),y(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&f(this.locator,i),y(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){h.prototype[e]=function(){return null}}))},2032:(e,t,n)=>{var r=n(91136),i=r.find,o=r.NAMESPACE;function a(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function u(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,c(n,r=new r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},p=d.ELEMENT_NODE=1,h=d.ATTRIBUTE_NODE=2,f=d.TEXT_NODE=3,m=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,y=d.ENTITY_NODE=6,v=d.PROCESSING_INSTRUCTION_NODE=7,b=d.COMMENT_NODE=8,_=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,x=d.DOCUMENT_FRAGMENT_NODE=11,k=d.NOTATION_NODE=12,C={},S={},M=(C.INDEX_SIZE_ERR=(S[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),C.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),T=(C.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),C.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),C.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),C.NOT_FOUND_ERR=(S[8]="Not found",8)),E=(C.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),C.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));C.INVALID_STATE_ERR=(S[11]="Invalid state",11),C.SYNTAX_ERR=(S[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),C.NAMESPACE_ERR=(S[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(S[15]="Invalid access",15);function P(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,P);return n.code=e,t&&(this.message=this.message+": "+t),n}function I(){}function O(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(be(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];c(n,e),e._inc=t}}function R(){}function j(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function D(e,t,n,r){if(r?t[j(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&$(i,e,r),function(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===o.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function A(e,t,n){var r=j(t,n);if(!(r>=0))throw new P(T,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&($(o,e,n),n.ownerElement=null)}}function N(){}function F(){}function z(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function U(){this.ownerDocument=this}function $(e,t,n,r){e&&e._inc++,n.namespaceURI===o.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function V(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function q(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function Z(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function H(e){return e&&e.nodeType===F.ELEMENT_NODE}function G(e){return e&&e.nodeType===F.TEXT_NODE}function W(e,t){var n=e.childNodes||[];if(i(n,H)||Z(t))return!1;var r=i(n,Z);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function Y(e,t){var n=e.childNodes||[];if(i(n,(function(e){return H(e)&&e!==t})))return!1;var r=i(n,Z);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function K(e,t,n){if(!function(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}(e))throw new P(M,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new P(T,"child not in parent");if(!function(e){return e&&(H(e)||G(e)||Z(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}(t)||Z(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new P(M,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function X(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=o.filter(H);if(a.length>1||i(o,G))throw new P(M,"More than one element or text in fragment");if(1===a.length&&!W(e,n))throw new P(M,"Element in fragment can not be inserted before doctype")}if(H(t)&&!W(e,n))throw new P(M,"Only one element can be added and only after doctype");if(Z(t)){if(i(r,Z))throw new P(M,"Only one doctype is allowed");var s=i(r,H);if(n&&r.indexOf(s)<r.indexOf(n))throw new P(M,"Doctype can only be inserted before an element");if(!n&&s)throw new P(M,"Doctype can not be appended since element is present")}}function J(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=o.filter(H);if(a.length>1||i(o,G))throw new P(M,"More than one element or text in fragment");if(1===a.length&&!Y(e,n))throw new P(M,"Element in fragment can not be inserted before doctype")}if(H(t)&&!Y(e,n))throw new P(M,"Only one element can be added and only after doctype");if(Z(t)){if(i(r,(function(e){return Z(e)&&e!==n})))throw new P(M,"Only one doctype is allowed");var s=i(r,H);if(n&&r.indexOf(s)<r.indexOf(n))throw new P(M,"Doctype can only be inserted before an element")}}function Q(e,t,n,r){K(e,t,n),e.nodeType===F.DOCUMENT_NODE&&(r||X)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===x){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=n?n.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==x&&(t.firstChild=t.lastChild=null),t}function ee(){this._nsMap={}}function te(){}function ne(){}function re(){}function ie(){}function oe(){}function ae(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function pe(){}function he(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ge(this,n,e,t,a),n.join("")}function fe(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===r&&i===o.XML||i===o.XMLNS)return!1;for(var a=n.length;a--;){var s=n[a];if(s.prefix===r)return s.namespace!==i}return!0}function me(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,z),'"')}function ge(e,t,n,r,i){if(i||(i=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var a=e.attributes,s=a.length,l=e.firstChild,c=e.tagName,u=c;if(!(n=o.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var d,y=0;y<a.length;y++)if("xmlns"===a.item(y).name){d=a.item(y).value;break}if(!d)for(var k=i.length-1;k>=0;k--){if(""===(C=i[k]).prefix&&C.namespace===e.namespaceURI){d=C.namespace;break}}if(d!==e.namespaceURI)for(k=i.length-1;k>=0;k--){var C;if((C=i[k]).namespace===e.namespaceURI){C.prefix&&(u=C.prefix+":"+c);break}}}t.push("<",u);for(var S=0;S<s;S++){"xmlns"==(M=a.item(S)).prefix?i.push({prefix:M.localName,namespace:M.value}):"xmlns"==M.nodeName&&i.push({prefix:"",namespace:M.value})}for(S=0;S<s;S++){var M,T,E;if(fe(M=a.item(S),0,i))me(t,(T=M.prefix||"")?"xmlns:"+T:"xmlns",E=M.namespaceURI),i.push({prefix:T,namespace:E});ge(M,t,n,r,i)}if(c===u&&fe(e,0,i))me(t,(T=e.prefix||"")?"xmlns:"+T:"xmlns",E=e.namespaceURI),i.push({prefix:T,namespace:E});if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):ge(l,t,n,r,i.slice()),l=l.nextSibling;else for(;l;)ge(l,t,n,r,i.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case _:case x:for(l=e.firstChild;l;)ge(l,t,n,r,i.slice()),l=l.nextSibling;return;case h:return me(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,z));case m:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case w:var P=e.publicId,I=e.systemId;if(t.push("<!DOCTYPE ",e.name),P)t.push(" PUBLIC ",P),I&&"."!=I&&t.push(" ",I),t.push(">");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case v:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ye(e,t,n){var r;switch(t.nodeType){case p:(r=t.cloneNode(!1)).ownerDocument=e;case x:break;case h:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(ye(e,i,n)),i=i.nextSibling;return r}function ve(e,t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new I),r.ownerDocument=e,r.nodeType){case p:var a=t.attributes,s=r.attributes=new R,l=a.length;s._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(ve(e,a.item(c),!0));break;case h:n=!0}if(n)for(var u=t.firstChild;u;)r.appendChild(ve(e,u,n)),u=u.nextSibling;return r}function be(e,t,n){e[t]=n}P.prototype=Error.prototype,c(C,P),I.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ge(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},O.prototype.item=function(e){return L(this),this[e]||null},u(O,I),R.prototype={length:0,item:I.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new P(E);var n=this.getNamedItem(e.nodeName);return D(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new P(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),D(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},N.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new U;if(r.implementation=this,r.childNodes=new I,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new ae;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Q(this,e,t)},replaceChild:function(e,t){Q(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return q(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ve(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,F),c(d,F.prototype),U.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==x){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Q(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),q(this,e)},replaceChild:function(e,t){Q(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),H(e)&&(this.documentElement=e)},importNode:function(e,t){return ye(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(n){if(n.nodeType==p&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=l(e);return new O(this,(function(n){var r=[];return t.length>0&&B(n.documentElement,(function(i){if(i!==n&&i.nodeType===p){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=l(o);a=t.every((c=s,function(e){return c&&-1!==c.indexOf(e)}))}a&&r.push(i)}}var c})),r}))},createElement:function(e){var t=new ee;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new I,(t.attributes=new R)._ownerElement=t,t},createDocumentFragment:function(){var e=new ue;return e.ownerDocument=this,e.childNodes=new I,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new de;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new te;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ce;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ee,r=t.split(":"),i=n.attributes=new R;return n.childNodes=new I,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new te,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},u(U,F),ee.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===x?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new O(this,(function(t){var n=[];return B(t,(function(r){r===t||r.nodeType!=p||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new O(this,(function(n){var r=[];return B(n,(function(i){i===n||i.nodeType!==p||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},U.prototype.getElementsByTagName=ee.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ee.prototype.getElementsByTagNameNS,u(ee,F),te.prototype.nodeType=h,u(te,F),ne.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[M])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},u(ne,F),re.prototype={nodeName:"#text",nodeType:f,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},u(re,ne),ie.prototype={nodeName:"#comment",nodeType:b},u(ie,ne),oe.prototype={nodeName:"#cdata-section",nodeType:m},u(oe,ne),ae.prototype.nodeType=w,u(ae,F),se.prototype.nodeType=k,u(se,F),le.prototype.nodeType=y,u(le,F),ce.prototype.nodeType=g,u(ce,F),ue.prototype.nodeName="#document-fragment",ue.prototype.nodeType=x,u(ue,F),de.prototype.nodeType=v,u(de,F),pe.prototype.serializeToString=function(e,t,n){return he.call(e,t,n)},F.prototype.toString=he;try{if(Object.defineProperty){function _e(e){switch(e.nodeType){case p:case x:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(_e(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return _e(this)},set:function(e){switch(this.nodeType){case p:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),be=function(e,t,n){e["$$"+t]=n}}}catch(we){}t.DocumentType=ae,t.DOMException=P,t.DOMImplementation=N,t.Element=ee,t.Node=F,t.NodeList=I,t.XMLSerializer=pe},81962:(e,t,n)=>{"use strict";var r=n(91136).freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\ud835\udd20",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\ud835\udd54",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\ud835\udcbb",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\ud835\udd25",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\ud835\udd59",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\ud835\udcbd",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\ud835\udd26",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\ud835\udcbe",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\ud835\udcc1",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",Mscr:"\u2133",mscr:"\ud835\udcc2",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\ud835\udd5f",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\ud835\udd61",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",Qopf:"\u211a",qopf:"\ud835\udd62",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\ud835\udd2f",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\ud835\udcc7",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\ud835\udd37",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\ud835\udd6b",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}),t.entityMap=t.HTML_ENTITIES},22443:(e,t,n)=>{var r=n(2032);r.DOMImplementation,t.B=r.XMLSerializer,n(24273)},74064:(e,t,n)=>{var r=n(91136).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,l=1,c=2,u=3,d=4,p=5,h=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function v(e,t,n,i,o,a){function m(e,t,r){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}for(var g,y=++t,v=s;;){var b=e.charAt(y);switch(b){case"=":if(v===l)g=e.slice(t,y),v=u;else{if(v!==c)throw new Error("attribute equal must after attrName");v=u}break;case"'":case'"':if(v===u||v===l){if(v===l&&(a.warning('attribute value must after "="'),g=e.slice(t,y)),t=y+1,!((y=e.indexOf(b,t))>0))throw new Error("attribute value no end '"+b+"' match");m(g,_=e.slice(t,y),t-1),v=p}else{if(v!=d)throw new Error('attribute value must after "="');m(g,_=e.slice(t,y),t),a.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=y+1,v=p}break;case"/":switch(v){case s:n.setTagName(e.slice(t,y));case p:case h:case f:v=f,n.closed=!0;case d:case l:break;case c:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),v==s&&n.setTagName(e.slice(t,y)),y;case">":switch(v){case s:n.setTagName(e.slice(t,y));case p:case h:case f:break;case d:case l:"/"===(_=e.slice(t,y)).slice(-1)&&(n.closed=!0,_=_.slice(0,-1));case c:v===c&&(_=g),v==d?(a.warning('attribute "'+_+'" missed quot(")!'),m(g,_,t)):(r.isHTML(i[""])&&_.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case u:throw new Error("attribute value missed!!")}return y;case"\x80":b=" ";default:if(b<=" ")switch(v){case s:n.setTagName(e.slice(t,y)),v=h;break;case l:g=e.slice(t,y),v=c;break;case d:var _=e.slice(t,y);a.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case p:v=h}else switch(v){case c:n.tagName;r.isHTML(i[""])&&g.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=y,v=l;break;case p:a.warning('attribute space is required"'+g+'"!!');case h:v=l,t=y;break;case u:v=d,t=y;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}y++}}function b(e,t,n){for(var i=e.tagName,o=null,a=e.length;a--;){var s=e[a],l=s.qName,c=s.value;if((h=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,h),d=l.slice(h+1),p="xmlns"===u&&d;else d=l,u=null,p="xmlns"===l&&"";s.localName=d,!1!==p&&(null==o&&(o={},x(n,n={})),n[p]=o[p]=c,s.uri=r.XMLNS,t.startPrefixMapping(p,c))}for(a=e.length;a--;){(u=(s=e[a]).prefix)&&("xml"===u&&(s.uri=r.XML),"xmlns"!==u&&(s.uri=n[u||""]))}var h;(h=i.indexOf(":"))>0?(u=e.prefix=i.slice(0,h),d=e.localName=i.slice(h+1)):(u=null,d=e.localName=i);var f=e.uri=n[u||""];if(t.startElement(f,d,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(f,d,i),o)for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&t.endPrefixMapping(u)}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function w(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function x(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function k(e,t,n,r){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,c=!1;a>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],c=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var u=o[a-1];return n.startDTD(s,l,c),n.endDTD(),u.index+u[0].length}return-1}function C(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function S(){this.attributeNames={}}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),x(t,t={}),function(e,t,n,i,o){function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>x){var n=e.substring(x,t).replace(/&#?\w+;/g,s);h&&c(x),i.characters(n,0,t-x),x=t}}function c(t,n){for(;t>=d&&(n=p.exec(e));)u=n.index,d=u+n[0].length,h.lineNumber++;h.columnNumber=t-u+1}var u=0,d=0,p=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,f=[{currentNSMap:t}],g={},x=0;for(;;){try{var M=e.indexOf("<",x);if(M<0){if(!e.substr(x).match(/^\s*$/)){var T=i.doc,E=T.createTextNode(e.substr(x));T.appendChild(E),i.currentElement=E}return}switch(M>x&&l(M),e.charAt(M+1)){case"/":var P=e.indexOf(">",M+3),I=e.substring(M+2,P).replace(/[ \t\n\r]+$/g,""),O=f.pop();P<0?(I=e.substring(M+2).replace(/[\s<].*/,""),o.error("end tag name: "+I+" is not complete:"+O.tagName),P=M+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),o.error("end tag name: "+I+" maybe not complete"),P=M+1+I.length);var L=O.localNSMap,R=O.tagName==I;if(R||O.tagName&&O.tagName.toLowerCase()==I.toLowerCase()){if(i.endElement(O.uri,O.localName,I),L)for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&i.endPrefixMapping(j);R||o.fatalError("end tag name: "+I+" is not match the current start tagName:"+O.tagName)}else f.push(O);P++;break;case"?":h&&c(M),P=C(e,M,i);break;case"!":h&&c(M),P=k(e,M,i,o);break;default:h&&c(M);var D=new S,A=f[f.length-1].currentNSMap,N=(P=v(e,M,D,A,s,o),D.length);if(!D.closed&&w(e,P,D.tagName,g)&&(D.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),h&&N){for(var F=y(h,{}),z=0;z<N;z++){var B=D[z];c(B.offset),B.locator=y(h,{})}i.locator=F,b(D,i,A)&&f.push(D),i.locator=h}else b(D,i,A)&&f.push(D);r.isHTML(D.uri)&&!D.closed?P=_(e,P,D.tagName,s,i):P++}}catch(U){if(U instanceof m)throw U;o.error("element parse error: "+U),P=-1}P>x?x=P:l(Math.max(M,x)+1)}}(e,t,n,i,this.errorHandler),i.endDocument()}},S.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},28628:e=>{"use strict";function t(e){return r(e,[])}function n(e,t){if("number"!==typeof t)throw new TypeError("Expected the depth to be a number");return i(e,[],t)}function r(e,t){for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?r(i,t):t.push(i)}return t}function i(e,t,n){n--;for(var r=0;r<e.length;r++){var o=e[r];n>-1&&Array.isArray(o)?i(o,t,n):t.push(o)}return t}e.exports=function(e){if(!Array.isArray(e))throw new TypeError("Expected value to be an array");return t(e)},e.exports.from=t,e.exports.depth=function(e,t){if(!Array.isArray(e))throw new TypeError("Expected value to be an array");return n(e,t)},e.exports.fromDepth=n},10304:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(l(e,s,s+a>c?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},25846:(e,t,n)=>{"use strict";const r=n(10304),i=n(98008),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||K(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(K(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return W(H(t,e.length-n),e,n,r)}function x(e,t,n,r){return W(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return W(G(t),e,n,r)}function C(e,t,n,r){return W(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){o=c[l],a=u[l];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function E(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=X[e[o]];return i}function O(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function A(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||A(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||A(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const z={};function B(e,t,n){z[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function $(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function V(e,t){if("number"!==typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},84661:(e,t,n)=>{"use strict";var r=n(3946),i=n(90935),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},90935:(e,t,n)=>{"use strict";var r=n(31352),i=n(3946),o=n(11535),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,s),u=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(h){u=null}e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},56411:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},58090:function(e){e.exports=function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e<t?t:e>n?n:e},t=function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var n=0;n<=3;n++)n<3?((t[n]<0||t[n]>255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},n={},r=0,i=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];r<i.length;r+=1){var o=i[r];n["[object "+o+"]"]=o.toLowerCase()}var a=function(e){return n[Object.prototype.toString.call(e)]||"object"},s=function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==a(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},l=function(e){if(e.length<2)return null;var t=e.length-1;return"string"==a(e[t])?e[t].toLowerCase():null},c=Math.PI,u={clip_rgb:t,limit:e,type:a,unpack:s,last:l,PI:c,TWOPI:2*c,PITHIRD:c/3,DEG2RAD:c/180,RAD2DEG:180/c},d={format:{},autodetect:[]},p=u.last,h=u.clip_rgb,f=u.type,m=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===f(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=p(e),i=!1;if(!r){i=!0,d.sorted||(d.autodetect=d.autodetect.sort((function(e,t){return t.p-e.p})),d.sorted=!0);for(var o=0,a=d.autodetect;o<a.length;o+=1){var s=a[o];if(r=s.test.apply(s,e))break}}if(!d.format[r])throw new Error("unknown format: "+e);var l=d.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=h(l),3===n._rgb.length&&n._rgb.push(1)};m.prototype.toString=function(){return"function"==f(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var g=m,y=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(y.Color,[null].concat(e)))};y.Color=g,y.version="2.1.2";var v=y,b=u.unpack,_=Math.max,w=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=b(e,"rgb"),r=n[0],i=n[1],o=n[2],a=1-_(r/=255,_(i/=255,o/=255)),s=a<1?1/(1-a):0;return[(1-r-a)*s,(1-i-a)*s,(1-o-a)*s,a]},x=w,k=u.unpack,C=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=k(e,"cmyk"))[0],r=e[1],i=e[2],o=e[3],a=e.length>4?e[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},S=C,M=u.unpack,T=u.type;g.prototype.cmyk=function(){return x(this._rgb)},v.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["cmyk"])))},d.format.cmyk=S,d.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=M(e,"cmyk"),"array"===T(e)&&4===e.length)return"cmyk"}});var E=u.unpack,P=u.last,I=function(e){return Math.round(100*e)/100},O=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=E(e,"hsla"),r=P(e)||"lsa";return n[0]=I(n[0]||0),n[1]=I(100*n[1])+"%",n[2]=I(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},L=O,R=u.unpack,j=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=R(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var o,a,s=Math.min(n,r,i),l=Math.max(n,r,i),c=(l+s)/2;return l===s?(o=0,a=Number.NaN):o=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?a=(r-i)/(l-s):r==l?a=2+(i-n)/(l-s):i==l&&(a=4+(n-r)/(l-s)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,o,c,e[3]]:[a,o,c]},D=j,A=u.unpack,N=u.last,F=Math.round,z=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=A(e,"rgba"),r=N(e)||"rgb";return"hsl"==r.substr(0,3)?L(D(n),r):(n[0]=F(n[0]),n[1]=F(n[1]),n[2]=F(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},B=z,U=u.unpack,$=Math.round,V=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,o,a=(t=U(t,"hsl"))[0],s=t[1],l=t[2];if(0===s)r=i=o=255*l;else{var c=[0,0,0],u=[0,0,0],d=l<.5?l*(1+s):l+s-l*s,p=2*l-d,h=a/360;c[0]=h+1/3,c[1]=h,c[2]=h-1/3;for(var f=0;f<3;f++)c[f]<0&&(c[f]+=1),c[f]>1&&(c[f]-=1),6*c[f]<1?u[f]=p+6*(d-p)*c[f]:2*c[f]<1?u[f]=d:3*c[f]<2?u[f]=p+(d-p)*(2/3-c[f])*6:u[f]=p;r=(e=[$(255*u[0]),$(255*u[1]),$(255*u[2])])[0],i=e[1],o=e[2]}return t.length>3?[r,i,o,t[3]]:[r,i,o,1]},q=V,Z=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,H=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,G=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,W=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Y=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,K=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,X=Math.round,J=function(e){var t;if(e=e.toLowerCase().trim(),d.format.named)try{return d.format.named(e)}catch(m){}if(t=e.match(Z)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(H)){for(var i=t.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(t=e.match(G)){for(var a=t.slice(1,4),s=0;s<3;s++)a[s]=X(2.55*a[s]);return a[3]=1,a}if(t=e.match(W)){for(var l=t.slice(1,5),c=0;c<3;c++)l[c]=X(2.55*l[c]);return l[3]=+l[3],l}if(t=e.match(Y)){var u=t.slice(1,4);u[1]*=.01,u[2]*=.01;var p=q(u);return p[3]=1,p}if(t=e.match(K)){var h=t.slice(1,4);h[1]*=.01,h[2]*=.01;var f=q(h);return f[3]=+t[4],f}};J.test=function(e){return Z.test(e)||H.test(e)||G.test(e)||W.test(e)||Y.test(e)||K.test(e)};var Q=J,ee=u.type;g.prototype.css=function(e){return B(this._rgb,e)},v.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["css"])))},d.format.css=Q,d.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===ee(e)&&Q.test(e))return"css"}});var te=u.unpack;d.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=te(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},v.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["gl"])))},g.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var ne=u.unpack,re=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=ne(e,"rgb"),i=r[0],o=r[1],a=r[2],s=Math.min(i,o,a),l=Math.max(i,o,a),c=l-s,u=100*c/255,d=s/(255-c)*100;return 0===c?n=Number.NaN:(i===l&&(n=(o-a)/c),o===l&&(n=2+(a-i)/c),a===l&&(n=4+(i-o)/c),(n*=60)<0&&(n+=360)),[n,u,d]},ie=re,oe=u.unpack,ae=Math.floor,se=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,c,u,d=(a=oe(a,"hcg"))[0],p=a[1],h=a[2];h*=255;var f=255*p;if(0===p)l=c=u=h;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var m=ae(d/=60),g=d-m,y=h*(1-p),v=y+f*(1-g),b=y+f*g,_=y+f;switch(m){case 0:l=(e=[_,b,y])[0],c=e[1],u=e[2];break;case 1:l=(t=[v,_,y])[0],c=t[1],u=t[2];break;case 2:l=(n=[y,_,b])[0],c=n[1],u=n[2];break;case 3:l=(r=[y,v,_])[0],c=r[1],u=r[2];break;case 4:l=(i=[b,y,_])[0],c=i[1],u=i[2];break;case 5:l=(o=[_,y,v])[0],c=o[1],u=o[2]}}return[l,c,u,a.length>3?a[3]:1]},le=se,ce=u.unpack,ue=u.type;g.prototype.hcg=function(){return ie(this._rgb)},v.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hcg"])))},d.format.hcg=le,d.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ce(e,"hcg"),"array"===ue(e)&&3===e.length)return"hcg"}});var de=u.unpack,pe=u.last,he=Math.round,fe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=de(e,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],s=pe(e)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var l="000000"+((r=he(r))<<16|(i=he(i))<<8|(o=he(o))).toString(16);l=l.substr(l.length-6);var c="0"+he(255*a).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+l+c;case"argb":return"#"+c+l;default:return"#"+l}},me=fe,ge=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ye=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ve=function(e){if(e.match(ge)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ye)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},be=u.type;g.prototype.hex=function(e){return me(this._rgb,e)},v.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hex"])))},d.format.hex=ve,d.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===be(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var _e=u.unpack,we=u.TWOPI,xe=Math.min,ke=Math.sqrt,Ce=Math.acos,Se=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=_e(e,"rgb"),i=r[0],o=r[1],a=r[2],s=xe(i/=255,o/=255,a/=255),l=(i+o+a)/3,c=l>0?1-s/l:0;return 0===c?n=NaN:(n=(i-o+(i-a))/2,n/=ke((i-o)*(i-o)+(i-a)*(o-a)),n=Ce(n),a>o&&(n=we-n),n/=we),[360*n,c,l]},Me=Se,Te=u.unpack,Ee=u.limit,Pe=u.TWOPI,Ie=u.PITHIRD,Oe=Math.cos,Le=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Te(e,"hsi"))[0],a=e[1],s=e[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*Oe(Pe*o)/Oe(Ie-Pe*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*Oe(Pe*(o-=1/3))/Oe(Ie-Pe*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*Oe(Pe*(o-=2/3))/Oe(Ie-Pe*o))/3)),[255*(n=Ee(s*n*3)),255*(r=Ee(s*r*3)),255*(i=Ee(s*i*3)),e.length>3?e[3]:1]},Re=Le,je=u.unpack,De=u.type;g.prototype.hsi=function(){return Me(this._rgb)},v.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsi"])))},d.format.hsi=Re,d.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=je(e,"hsi"),"array"===De(e)&&3===e.length)return"hsi"}});var Ae=u.unpack,Ne=u.type;g.prototype.hsl=function(){return D(this._rgb)},v.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsl"])))},d.format.hsl=q,d.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ae(e,"hsl"),"array"===Ne(e)&&3===e.length)return"hsl"}});var Fe=u.unpack,ze=Math.min,Be=Math.max,Ue=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Fe(e,"rgb"))[0],a=e[1],s=e[2],l=ze(o,a,s),c=Be(o,a,s),u=c-l;return i=c/255,0===c?(n=Number.NaN,r=0):(r=u/c,o===c&&(n=(a-s)/u),a===c&&(n=2+(s-o)/u),s===c&&(n=4+(o-a)/u),(n*=60)<0&&(n+=360)),[n,r,i]},$e=Ue,Ve=u.unpack,qe=Math.floor,Ze=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,c,u,d=(a=Ve(a,"hsv"))[0],p=a[1],h=a[2];if(h*=255,0===p)l=c=u=h;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var f=qe(d/=60),m=d-f,g=h*(1-p),y=h*(1-p*m),v=h*(1-p*(1-m));switch(f){case 0:l=(e=[h,v,g])[0],c=e[1],u=e[2];break;case 1:l=(t=[y,h,g])[0],c=t[1],u=t[2];break;case 2:l=(n=[g,h,v])[0],c=n[1],u=n[2];break;case 3:l=(r=[g,y,h])[0],c=r[1],u=r[2];break;case 4:l=(i=[v,g,h])[0],c=i[1],u=i[2];break;case 5:l=(o=[h,g,y])[0],c=o[1],u=o[2]}}return[l,c,u,a.length>3?a[3]:1]},He=Ze,Ge=u.unpack,We=u.type;g.prototype.hsv=function(){return $e(this._rgb)},v.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsv"])))},d.format.hsv=He,d.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ge(e,"hsv"),"array"===We(e)&&3===e.length)return"hsv"}});var Ye={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Ke=u.unpack,Xe=Math.pow,Je=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ke(e,"rgb"),r=n[0],i=n[1],o=n[2],a=tt(r,i,o),s=a[0],l=a[1],c=116*l-16;return[c<0?0:c,500*(s-l),200*(l-a[2])]},Qe=function(e){return(e/=255)<=.04045?e/12.92:Xe((e+.055)/1.055,2.4)},et=function(e){return e>Ye.t3?Xe(e,1/3):e/Ye.t2+Ye.t0},tt=function(e,t,n){return e=Qe(e),t=Qe(t),n=Qe(n),[et((.4124564*e+.3575761*t+.1804375*n)/Ye.Xn),et((.2126729*e+.7151522*t+.072175*n)/Ye.Yn),et((.0193339*e+.119192*t+.9503041*n)/Ye.Zn)]},nt=Je,rt=u.unpack,it=Math.pow,ot=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=rt(e,"lab"))[0],a=e[1],s=e[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(s)?r:r-s/200,r=Ye.Yn*st(r),n=Ye.Xn*st(n),i=Ye.Zn*st(i),[at(3.2404542*n-1.5371385*r-.4985314*i),at(-.969266*n+1.8760108*r+.041556*i),at(.0556434*n-.2040259*r+1.0572252*i),e.length>3?e[3]:1]},at=function(e){return 255*(e<=.00304?12.92*e:1.055*it(e,1/2.4)-.055)},st=function(e){return e>Ye.t1?e*e*e:Ye.t2*(e-Ye.t0)},lt=ot,ct=u.unpack,ut=u.type;g.prototype.lab=function(){return nt(this._rgb)},v.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["lab"])))},d.format.lab=lt,d.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ct(e,"lab"),"array"===ut(e)&&3===e.length)return"lab"}});var dt=u.unpack,pt=u.RAD2DEG,ht=Math.sqrt,ft=Math.atan2,mt=Math.round,gt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=dt(e,"lab"),r=n[0],i=n[1],o=n[2],a=ht(i*i+o*o),s=(ft(o,i)*pt+360)%360;return 0===mt(1e4*a)&&(s=Number.NaN),[r,a,s]},yt=gt,vt=u.unpack,bt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=vt(e,"rgb"),r=n[0],i=n[1],o=n[2],a=nt(r,i,o),s=a[0],l=a[1],c=a[2];return yt(s,l,c)},_t=bt,wt=u.unpack,xt=u.DEG2RAD,kt=Math.sin,Ct=Math.cos,St=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=wt(e,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,Ct(o*=xt)*i,kt(o)*i]},Mt=St,Tt=u.unpack,Et=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=Tt(e,"lch"))[0],r=e[1],i=e[2],o=Mt(n,r,i),a=o[0],s=o[1],l=o[2],c=lt(a,s,l);return[c[0],c[1],c[2],e.length>3?e[3]:1]},Pt=Et,It=u.unpack,Ot=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=It(e,"hcl").reverse();return Pt.apply(void 0,n)},Lt=Ot,Rt=u.unpack,jt=u.type;g.prototype.lch=function(){return _t(this._rgb)},g.prototype.hcl=function(){return _t(this._rgb).reverse()},v.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["lch"])))},v.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hcl"])))},d.format.lch=Pt,d.format.hcl=Lt,["lch","hcl"].forEach((function(e){return d.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=Rt(t,e),"array"===jt(t)&&3===t.length)return e}})}));var Dt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},At=u.type;g.prototype.name=function(){for(var e=me(this._rgb,"rgb"),t=0,n=Object.keys(Dt);t<n.length;t+=1){var r=n[t];if(Dt[r]===e)return r.toLowerCase()}return e},d.format.named=function(e){if(e=e.toLowerCase(),Dt[e])return ve(Dt[e]);throw new Error("unknown color name: "+e)},d.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===At(e)&&Dt[e.toLowerCase()])return"named"}});var Nt=u.unpack,Ft=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Nt(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},zt=Ft,Bt=u.type,Ut=function(e){if("number"==Bt(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},$t=u.type;g.prototype.num=function(){return zt(this._rgb)},v.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["num"])))},d.format.num=Ut,d.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===$t(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var Vt=u.unpack,qt=u.type,Zt=Math.round;g.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Zt)},g.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:Zt(t):t}))},v.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["rgb"])))},d.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Vt(e,"rgba");return void 0===n[3]&&(n[3]=1),n},d.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Vt(e,"rgba"),"array"===qt(e)&&(3===e.length||4===e.length&&"number"==qt(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Ht=Math.log,Gt=function(e){var t,n,r,i=e/100;return i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*Ht(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*Ht(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*Ht(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*Ht(n),r=255),[t,n,r,1]},Wt=u.unpack,Yt=Math.round,Kt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=Wt(e,"rgb"),i=r[0],o=r[2],a=1e3,s=4e4,l=.4;s-a>l;){var c=Gt(n=.5*(s+a));c[2]/c[0]>=o/i?s=n:a=n}return Yt(n)},Xt=Kt;g.prototype.temp=g.prototype.kelvin=g.prototype.temperature=function(){return Xt(this._rgb)},v.temp=v.kelvin=v.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["temp"])))},d.format.temp=d.format.kelvin=d.format.temperature=Gt;var Jt=u.type;g.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Jt(e)?t?(this._rgb[3]=e,this):new g([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},g.prototype.clipped=function(){return this._rgb._clipped||!1},g.prototype.darken=function(e){void 0===e&&(e=1);var t=this,n=t.lab();return n[0]-=Ye.Kn*e,new g(n,"lab").alpha(t.alpha(),!0)},g.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},g.prototype.darker=g.prototype.darken,g.prototype.brighter=g.prototype.brighten,g.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var Qt=u.type,en=Math.pow,tn=1e-7,nn=20;g.prototype.luminance=function(e){if(void 0!==e&&"number"===Qt(e)){if(0===e)return new g([0,0,0,this._rgb[3]],"rgb");if(1===e)return new g([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n="rgb",r=nn,i=function(t,o){var a=t.interpolate(o,.5,n),s=a.luminance();return Math.abs(e-s)<tn||!r--?a:s>e?i(t,a):i(a,o)},o=(t>e?i(new g([0,0,0]),this):i(this,new g([255,255,255]))).rgb();return new g(o.concat([this._rgb[3]]))}return rn.apply(void 0,this._rgb.slice(0,3))};var rn=function(e,t,n){return.2126*(e=on(e))+.7152*(t=on(t))+.0722*(n=on(n))},on=function(e){return(e/=255)<=.03928?e/12.92:en((e+.055)/1.055,2.4)},an={},sn=u.type,ln=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(an[o]||r.length||(o=Object.keys(an)[0]),!an[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==sn(e)&&(e=new g(e)),"object"!==sn(t)&&(t=new g(t)),an[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};g.prototype.mix=g.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ln.apply(void 0,[this,e,t].concat(n))},g.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new g([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},g.prototype.saturate=function(e){void 0===e&&(e=1);var t=this,n=t.lch();return n[1]+=Ye.Kn*e,n[1]<0&&(n[1]=0),new g(n,"lch").alpha(t.alpha(),!0)},g.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var cn=u.type;g.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],o=r[1],a=this[i]();if(o){var s=i.indexOf(o);if(s>-1){if("string"==cn(t))switch(t.charAt(0)){case"+":case"-":a[s]+=+t;break;case"*":a[s]*=+t.substr(1);break;case"/":a[s]/=+t.substr(1);break;default:a[s]=+t}else{if("number"!==cn(t))throw new Error("unsupported value for Color.set");a[s]=t}var l=new g(a,i);return n?(this._rgb=l._rgb,this):l}throw new Error("unknown channel "+o+" in mode "+i)}return a};var un=function(e,t,n){var r=e._rgb,i=t._rgb;return new g(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};an.rgb=un;var dn=Math.sqrt,pn=Math.pow,hn=function(e,t,n){var r=e._rgb,i=r[0],o=r[1],a=r[2],s=t._rgb,l=s[0],c=s[1],u=s[2];return new g(dn(pn(i,2)*(1-n)+pn(l,2)*n),dn(pn(o,2)*(1-n)+pn(c,2)*n),dn(pn(a,2)*(1-n)+pn(u,2)*n),"rgb")};an.lrgb=hn;var fn=function(e,t,n){var r=e.lab(),i=t.lab();return new g(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};an.lab=fn;var mn=function(e,t,n,r){var i,o,a,s,l,c,u,d,p,h,f,m;return"hsl"===r?(a=e.hsl(),s=t.hsl()):"hsv"===r?(a=e.hsv(),s=t.hsv()):"hcg"===r?(a=e.hcg(),s=t.hcg()):"hsi"===r?(a=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(l=(i=a)[0],u=i[1],p=i[2],c=(o=s)[0],d=o[1],h=o[2]),isNaN(l)||isNaN(c)?isNaN(l)?isNaN(c)?m=Number.NaN:(m=c,1!=p&&0!=p||"hsv"==r||(f=d)):(m=l,1!=h&&0!=h||"hsv"==r||(f=u)):m=l+n*(c>l&&c-l>180?c-(l+360):c<l&&l-c>180?c+360-l:c-l),void 0===f&&(f=u+n*(d-u)),new g([m,f,p+n*(h-p)],r)},gn=function(e,t,n){return mn(e,t,n,"lch")};an.lch=gn,an.hcl=gn;var yn=function(e,t,n){var r=e.num(),i=t.num();return new g(r+n*(i-r),"num")};an.num=yn;var vn=function(e,t,n){return mn(e,t,n,"hcg")};an.hcg=vn;var bn=function(e,t,n){return mn(e,t,n,"hsi")};an.hsi=bn;var _n=function(e,t,n){return mn(e,t,n,"hsl")};an.hsl=_n;var wn=function(e,t,n){return mn(e,t,n,"hsv")};an.hsv=wn;var xn=u.clip_rgb,kn=Math.pow,Cn=Math.sqrt,Sn=Math.PI,Mn=Math.cos,Tn=Math.sin,En=Math.atan2,Pn=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var i=r/n.reduce((function(e,t){return e+t}));if(n.forEach((function(e,t){n[t]*=i})),e=e.map((function(e){return new g(e)})),"lrgb"===t)return In(e,n);for(var o=e.shift(),a=o.get(t),s=[],l=0,c=0,u=0;u<a.length;u++)if(a[u]=(a[u]||0)*n[0],s.push(isNaN(a[u])?0:n[0]),"h"===t.charAt(u)&&!isNaN(a[u])){var d=a[u]/180*Sn;l+=Mn(d)*n[0],c+=Tn(d)*n[0]}var p=o.alpha()*n[0];e.forEach((function(e,r){var i=e.get(t);p+=e.alpha()*n[r+1];for(var o=0;o<a.length;o++)if(!isNaN(i[o]))if(s[o]+=n[r+1],"h"===t.charAt(o)){var u=i[o]/180*Sn;l+=Mn(u)*n[r+1],c+=Tn(u)*n[r+1]}else a[o]+=i[o]*n[r+1]}));for(var h=0;h<a.length;h++)if("h"===t.charAt(h)){for(var f=En(c/s[h],l/s[h])/Sn*180;f<0;)f+=360;for(;f>=360;)f-=360;a[h]=f}else a[h]=a[h]/s[h];return p/=r,new g(a,t).alpha(p>.99999?1:p,!0)},In=function(e,t){for(var n=e.length,r=[0,0,0,0],i=0;i<e.length;i++){var o=e[i],a=t[i]/n,s=o._rgb;r[0]+=kn(s[0],2)*a,r[1]+=kn(s[1],2)*a,r[2]+=kn(s[2],2)*a,r[3]+=s[3]*a}return r[0]=Cn(r[0]),r[1]=Cn(r[1]),r[2]=Cn(r[2]),r[3]>.9999999&&(r[3]=1),new g(xn(r))},On=u.type,Ln=Math.pow,Rn=function(e){var t="rgb",n=v("#ccc"),r=0,i=[0,1],o=[],a=[0,0],s=!1,l=[],c=!1,u=0,d=1,p=!1,h={},f=!0,m=1,g=function(e){if((e=e||["#fff","#000"])&&"string"===On(e)&&v.brewer&&v.brewer[e.toLowerCase()]&&(e=v.brewer[e.toLowerCase()]),"array"===On(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t<e.length;t++)e[t]=v(e[t]);o.length=0;for(var n=0;n<e.length;n++)o.push(n/(e.length-1))}return x(),l=e},y=function(e){if(null!=s){for(var t=s.length-1,n=0;n<t&&e>=s[n];)n++;return n-1}return 0},b=function(e){return e},_=function(e){return e},w=function(e,r){var i,c;if(null==r&&(r=!1),isNaN(e)||null===e)return n;c=r?e:s&&s.length>2?y(e)/(s.length-2):d!==u?(e-u)/(d-u):1,c=_(c),r||(c=b(c)),1!==m&&(c=Ln(c,m)),c=a[0]+c*(1-a[0]-a[1]),c=Math.min(1,Math.max(0,c));var p=Math.floor(1e4*c);if(f&&h[p])i=h[p];else{if("array"===On(l))for(var g=0;g<o.length;g++){var w=o[g];if(c<=w){i=l[g];break}if(c>=w&&g===o.length-1){i=l[g];break}if(c>w&&c<o[g+1]){c=(c-w)/(o[g+1]-w),i=v.interpolate(l[g],l[g+1],c,t);break}}else"function"===On(l)&&(i=l(c));f&&(h[p]=i)}return i},x=function(){return h={}};g(e);var k=function(e){var t=v(w(e));return c&&t[c]?t[c]():t};return k.classes=function(e){if(null!=e){if("array"===On(e))s=e,i=[e[0],e[e.length-1]];else{var t=v.analyze(i);s=0===e?[t.min,t.max]:v.limits(t,"e",e)}return k}return s},k.domain=function(e){if(!arguments.length)return i;u=e[0],d=e[e.length-1],o=[];var t=l.length;if(e.length===t&&u!==d)for(var n=0,r=Array.from(e);n<r.length;n+=1){var a=r[n];o.push((a-u)/(d-u))}else{for(var s=0;s<t;s++)o.push(s/(t-1));if(e.length>2){var c=e.map((function(t,n){return n/(e.length-1)})),p=e.map((function(e){return(e-u)/(d-u)}));p.every((function(e,t){return c[t]===e}))||(_=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=p[t+1];)t++;var n=(e-p[t])/(p[t+1]-p[t]);return c[t]+n*(c[t+1]-c[t])})}}return i=[u,d],k},k.mode=function(e){return arguments.length?(t=e,x(),k):t},k.range=function(e,t){return g(e,t),k},k.out=function(e){return c=e,k},k.spread=function(e){return arguments.length?(r=e,k):r},k.correctLightness=function(e){return null==e&&(e=!0),p=e,x(),b=p?function(e){for(var t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=t>n,i=w(e,!0).lab()[0],o=t+(n-t)*e,a=i-o,s=0,l=1,c=20;Math.abs(a)>.01&&c-- >0;)r&&(a*=-1),a<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),i=w(e,!0).lab()[0],a=i-o;return e}:function(e){return e},k},k.padding=function(e){return null!=e?("number"===On(e)&&(e=[e,e]),a=e,k):a},k.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[k(.5)];else if(t>1){var o=i[0],a=i[1]-o;r=jn(0,t,!1).map((function(e){return k(o+e/(t-1)*a)}))}else{e=[];var c=[];if(s&&s.length>2)for(var u=1,d=s.length,p=1<=d;p?u<d:u>d;p?u++:u--)c.push(.5*(s[u-1]+s[u]));else c=i;r=c.map((function(e){return k(e)}))}return v[n]&&(r=r.map((function(e){return e[n]()}))),r},k.cache=function(e){return null!=e?(f=e,k):f},k.gamma=function(e){return null!=e?(m=e,k):m},k.nodata=function(e){return null!=e?(n=v(e),k):n},k};function jn(e,t,n){for(var r=[],i=e<t,o=n?i?t+1:t-1:t,a=e;i?a<o:a>o;i?a++:a--)r.push(a);return r}var Dn=function(e){var t,n,r,i,o,a,s;if(2===(e=e.map((function(e){return new g(e)}))).length)t=e.map((function(e){return e.lab()})),o=t[0],a=t[1],i=function(e){var t=[0,1,2].map((function(t){return o[t]+e*(a[t]-o[t])}));return new g(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),o=n[0],a=n[1],s=n[2],i=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*a[t]+e*e*s[t]}));return new g(t,"lab")};else if(4===e.length){var l;r=e.map((function(e){return e.lab()})),o=r[0],a=r[1],s=r[2],l=r[3],i=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*s[t]+e*e*e*l[t]}));return new g(t,"lab")}}else if(5===e.length){var c=Dn(e.slice(0,3)),u=Dn(e.slice(2,5));i=function(e){return e<.5?c(2*e):u(2*(e-.5))}}return i},An=function(e){var t=Dn(e);return t.scale=function(){return Rn(t)},t},Nn=function(e,t,n){if(!Nn[n])throw new Error("unknown blend mode "+n);return Nn[n](e,t)},Fn=function(e){return function(t,n){var r=v(n).rgb(),i=v(t).rgb();return v.rgb(e(r,i))}},zn=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},Bn=function(e){return e},Un=function(e,t){return e*t/255},$n=function(e,t){return e>t?t:e},Vn=function(e,t){return e>t?e:t},qn=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},Zn=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},Hn=function(e,t){return 255*(1-(1-t/255)/(e/255))},Gn=function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e};Nn.normal=Fn(zn(Bn)),Nn.multiply=Fn(zn(Un)),Nn.screen=Fn(zn(qn)),Nn.overlay=Fn(zn(Zn)),Nn.darken=Fn(zn($n)),Nn.lighten=Fn(zn(Vn)),Nn.dodge=Fn(zn(Gn)),Nn.burn=Fn(zn(Hn));for(var Wn=Nn,Yn=u.type,Kn=u.clip_rgb,Xn=u.TWOPI,Jn=Math.pow,Qn=Math.sin,er=Math.cos,tr=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===Yn(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var s=function(s){var l=Xn*((e+120)/360+t*s),c=Jn(i[0]+o*s,r),u=(0!==a?n[0]+s*a:n)*c*(1-c)/2,d=er(l),p=Qn(l);return v(Kn([255*(c+u*(-.14861*d+1.78277*p)),255*(c+u*(-.29227*d-.90649*p)),255*(c+u*(1.97294*d)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===Yn(n=e)?0===(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(e){return null==e?i:("array"===Yn(e)?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=function(){return v.scale(s)},s.hue(n),s},nr="0123456789abcdef",rr=Math.floor,ir=Math.random,or=function(){for(var e="#",t=0;t<6;t++)e+=nr.charAt(rr(16*ir()));return new g(e,"hex")},ar=Math.log,sr=Math.pow,lr=Math.floor,cr=Math.abs,ur=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===a(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===a(e)&&(e=e[t]),void 0===e||null===e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return dr(n,e,t)},n},dr=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==a(e)&&(e=ur(e));var r=e.min,i=e.max,o=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,i];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(i)),"e"===t.substr(0,1)){s.push(r);for(var l=1;l<n;l++)s.push(r+l/n*(i-r));s.push(i)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var c=Math.LOG10E*ar(r),u=Math.LOG10E*ar(i);s.push(r);for(var d=1;d<n;d++)s.push(sr(10,c+d/n*(u-c)));s.push(i)}else if("q"===t.substr(0,1)){s.push(r);for(var p=1;p<n;p++){var h=(o.length-1)*p/n,f=lr(h);if(f===h)s.push(o[f]);else{var m=h-f;s.push(o[f]*(1-m)+o[f+1]*m)}}s.push(i)}else if("k"===t.substr(0,1)){var g,y=o.length,v=new Array(y),b=new Array(n),_=!0,w=0,x=null;(x=[]).push(r);for(var k=1;k<n;k++)x.push(r+k/n*(i-r));for(x.push(i);_;){for(var C=0;C<n;C++)b[C]=0;for(var S=0;S<y;S++)for(var M=o[S],T=Number.MAX_VALUE,E=void 0,P=0;P<n;P++){var I=cr(x[P]-M);I<T&&(T=I,E=P),b[E]++,v[S]=E}for(var O=new Array(n),L=0;L<n;L++)O[L]=null;for(var R=0;R<y;R++)null===O[g=v[R]]?O[g]=o[R]:O[g]+=o[R];for(var j=0;j<n;j++)O[j]*=1/b[j];_=!1;for(var D=0;D<n;D++)if(O[D]!==x[D]){_=!0;break}x=O,++w>200&&(_=!1)}for(var A={},N=0;N<n;N++)A[N]=[];for(var F=0;F<y;F++)A[g=v[F]].push(o[F]);for(var z=[],B=0;B<n;B++)z.push(A[B][0]),z.push(A[B][A[B].length-1]);z=z.sort((function(e,t){return e-t})),s.push(z[0]);for(var U=1;U<z.length;U+=2){var $=z[U];isNaN($)||-1!==s.indexOf($)||s.push($)}}return s},pr={analyze:ur,limits:dr},hr=function(e,t){e=new g(e),t=new g(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},fr=Math.sqrt,mr=Math.atan2,gr=Math.abs,yr=Math.cos,vr=Math.PI,br=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new g(e),t=new g(t);for(var i=Array.from(e.lab()),o=i[0],a=i[1],s=i[2],l=Array.from(t.lab()),c=l[0],u=l[1],d=l[2],p=fr(a*a+s*s),h=fr(u*u+d*d),f=o<16?.511:.040975*o/(1+.01765*o),m=.0638*p/(1+.0131*p)+.638,y=p<1e-6?0:180*mr(s,a)/vr;y<0;)y+=360;for(;y>=360;)y-=360;var v=y>=164&&y<=345?.56+gr(.2*yr(vr*(y+168)/180)):.36+gr(.4*yr(vr*(y+35)/180)),b=p*p*p*p,_=fr(b/(b+1900)),w=m*(_*v+1-_),x=p-h,k=a-u,C=s-d,S=(o-c)/(n*f),M=x/(r*m);return fr(S*S+M*M+(k*k+C*C-x*x)/(w*w))},_r=function(e,t,n){void 0===n&&(n="lab"),e=new g(e),t=new g(t);var r=e.get(n),i=t.get(n),o=0;for(var a in r){var s=(r[a]||0)-(i[a]||0);o+=s*s}return Math.sqrt(o)},wr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(g,[null].concat(e))),!0}catch(n){return!1}},xr={cool:function(){return Rn([v.hsl(180,1,.9),v.hsl(250,.7,.4)])},hot:function(){return Rn(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")}},kr={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Cr=0,Sr=Object.keys(kr);Cr<Sr.length;Cr+=1){var Mr=Sr[Cr];kr[Mr.toLowerCase()]=kr[Mr]}var Tr=kr;return v.average=Pn,v.bezier=An,v.blend=Wn,v.cubehelix=tr,v.mix=v.interpolate=ln,v.random=or,v.scale=Rn,v.analyze=pr.analyze,v.contrast=hr,v.deltaE=br,v.distance=_r,v.limits=pr.limits,v.valid=wr,v.scales=xr,v.colors=Dt,v.brewer=Tr,v}()},19160:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},97671:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{Z:()=>i})},9402:(e,t,n)=>{"use strict";var r=n(36409),i=n(58503),o=n(74946),a=n(57504).orient2d;function s(e,t,n){t=Math.max(0,void 0===t?2:t),n=n||0;var i=function(e){for(var t=e[0],n=e[0],r=e[0],i=e[0],a=0;a<e.length;a++){var s=e[a];s[0]<t[0]&&(t=s),s[0]>r[0]&&(r=s),s[1]<n[1]&&(n=s),s[1]>i[1]&&(i=s)}var l=[t,n,r,i],c=l.slice();for(a=0;a<e.length;a++)o(e[a],l)||c.push(e[a]);return function(e){e.sort(b);for(var t=[],n=0;n<e.length;n++){for(;t.length>=2&&h(t[t.length-2],t[t.length-1],e[n])<=0;)t.pop();t.push(e[n])}for(var r=[],i=e.length-1;i>=0;i--){for(;r.length>=2&&h(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),t.pop(),t.concat(r)}(c)}(e),a=new r(16);a.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},a.compareMinX=function(e,t){return e[0]-t[0]},a.compareMinY=function(e,t){return e[1]-t[1]},a.load(e);for(var s,c=[],u=0;u<i.length;u++){var d=i[u];a.remove(d),s=m(d,s),c.push(s)}var p=new r(16);for(u=0;u<c.length;u++)p.insert(f(c[u]));for(var y=t*t,v=n*n;c.length;){var _=c.shift(),w=_.p,x=_.next.p,k=g(w,x);if(!(k<v)){var C=k/y;(d=l(a,_.prev.p,w,x,_.next.next.p,C,p))&&Math.min(g(d,w),g(d,x))<=C&&(c.push(_),c.push(m(d,_)),a.remove(d),p.remove(_),p.insert(f(_)),p.insert(f(_.next)))}}_=s;var S=[];do{S.push(_.p),_=_.next}while(_!==s);return S.push(_.p),S}function l(e,t,n,r,o,a,s){for(var l=new i([],c),d=e.data;d;){for(var h=0;h<d.children.length;h++){var f=d.children[h],m=d.leaf?y(f,n,r):u(n,r,f);m>a||l.push({node:f,dist:m})}for(;l.length&&!l.peek().node.children;){var g=l.pop(),v=g.node,b=y(v,t,n),_=y(v,r,o);if(g.dist<b&&g.dist<_&&p(n,v,s)&&p(r,v,s))return v}(d=l.pop())&&(d=d.node)}return null}function c(e,t){return e.dist-t.dist}function u(e,t,n){if(d(e,n)||d(t,n))return 0;var r=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=v(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var a=v(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===a?0:Math.min(r,i,o,a)}function d(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function p(e,t,n){for(var r,i,o,a,s=Math.min(e[0],t[0]),l=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),u=Math.max(e[1],t[1]),d=n.search({minX:s,minY:l,maxX:c,maxY:u}),p=0;p<d.length;p++)if(r=d[p].p,i=d[p].next.p,o=e,r!==(a=t)&&i!==o&&h(r,i,o)>0!==h(r,i,a)>0&&h(o,a,r)>0!==h(o,a,i)>0)return!1;return!0}function h(e,t,n){return a(e[0],e[1],t[0],t[1],n[0],n[1])}function f(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function m(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function g(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function y(e,t,n){var r=t[0],i=t[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((e[0]-r)*o+(e[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return(o=e[0]-r)*o+(a=e[1]-i)*a}function v(e,t,n,r,i,o,a,s){var l,c,u,d,p=n-e,h=r-t,f=a-i,m=s-o,g=e-i,y=t-o,v=p*p+h*h,b=p*f+h*m,_=f*f+m*m,w=p*g+h*y,x=f*g+m*y,k=v*_-b*b,C=k,S=k;0===k?(c=0,C=1,d=x,S=_):(d=v*x-b*w,(c=b*x-_*w)<0?(c=0,d=x,S=_):c>C&&(c=C,d=x+b,S=_)),d<0?(d=0,-w<0?c=0:-w>v?c=C:(c=-w,C=v)):d>S&&(d=S,-w+b<0?c=0:-w+b>v?c=C:(c=-w+b,C=v));var M=(1-(u=0===d?0:d/S))*i+u*a-((1-(l=0===c?0:c/C))*e+l*n),T=(1-u)*o+u*s-((1-l)*t+l*r);return M*M+T*T}function b(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}i.default&&(i=i.default),e.exports=s,e.exports.default=s},62626:(e,t,n)=>{"use strict";n.d(t,{J6:()=>o,O6:()=>i,VF:()=>s,nk:()=>r});var r="@@router/LOCATION_CHANGE",i=function(e,t){return{type:r,payload:{location:e,action:t,isFirstRendering:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}},o="@@router/CALL_HISTORY_METHOD",a=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:o,payload:{method:e,args:n}}}},s=a("push");a("replace"),a("go"),a("goBack"),a("goForward")},33094:(e,t,n)=>{"use strict";n.d(t,{xI:()=>I,iz:()=>O,cu:()=>R});var r=n(18178),i=n(47781),o=n.n(i),a=n(93240),s=n(45581),l=n(73973),c=n.n(l),u=n(62626);function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}const p=function(e){var t=e.getIn,n=e.toJS,r=function(e){var r,i=n(t(e,["router"]));if(null==(r=i)||"object"!==d(r)||!t(r,["location"])||!t(r,["action"]))throw'Could not find router reducer in state tree, it must be mounted under "router"';return i},i=function(e){return n(t(r(e),["location"]))};return{getLocation:i,getAction:function(e){return n(t(r(e),["action"]))},getRouter:r,getSearch:function(e){return n(t(r(e),["location","search"]))},getHash:function(e){return n(t(r(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(r){var o=(i(r)||{}).pathname;if(o===t)return n;t=o;var a=(0,s.LX)(o,e);return a&&n&&a.url===n.url&&a.isExact===n.isExact||(n=a),n}}}};function h(e){return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e){return function(){var t,n=y(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=y(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}const b=function(e){var t=p(e).getLocation,n=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(l,e);var n,i,o,a=g(l);function l(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),n=a.call(this,e);var r=e.store,i=e.history,o=e.onLocationChanged,s=e.stateCompareFunction;n.inTimeTravelling=!1,n.unsubscribe=r.subscribe((function(){var o=!e.noTimeTravelDebugging,a=t(r.getState()),l=a.pathname,u=a.search,d=a.hash,p=a.state,h=i.location,f=h.pathname,m=h.search,g=h.hash,y=h.state;!o||"PUSH"!==e.history.action||f===l&&m===u&&g===d&&c()(p,y,s)||(n.inTimeTravelling=!0,i.push({pathname:l,search:u,hash:d,state:p}))}));var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.inTimeTravelling?n.inTimeTravelling=!1:o(e,t,r)};return n.unlisten=i.listen(u),e.noInitialPop||u(i.location,i.action,!0),n}return n=l,(i=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,i=e.children;return t?r.createElement(r.Fragment,null,i):r.createElement(s.F0,{history:n},i)}}])&&m(n.prototype,i),o&&m(n,o),l}(r.PureComponent);n.propTypes={store:o().shape({getState:o().func.isRequired,subscribe:o().func.isRequired}).isRequired,history:o().shape({action:o().string.isRequired,listen:o().func.isRequired,location:o().object.isRequired,push:o().func.isRequired}).isRequired,basename:o().string,children:o().oneOfType([o().func,o().node]),onLocationChanged:o().func.isRequired,noInitialPop:o().bool,noTimeTravelDebugging:o().bool,stateCompareFunction:o().func,omitRouter:o().bool};var i=function(e){var t=e.context||a.ET;if(null==t)throw"Please upgrade to react-redux v6";return r.createElement(t.Consumer,null,(function(t){var i=t.store;return r.createElement(n,f({store:i},e))}))};return i.propTypes={context:o().object},(0,a.$j)(null,(function(e){return{onLocationChanged:function(t,n,r){return e((0,u.O6)(t,n,r))}}}))(i)};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){if(e&&e.query)return e;var t=e&&e.search;if("string"!==typeof t||0===t.length)return k({},e,{query:{}});var n=t.substring(1).split("&").reduce((function(e,t){var n=_(t.split("="),2);return k({},e,C({},n[0],n[1]))}),{});return k({},e,{query:n})};const M=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:S(e.location),action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===u.nk){var s=a.location,l=a.action;return a.isFirstRendering?e:n(e,{location:t(S(s)),action:l})}return e}}};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,i=0;i<n&&r;++i)r=r[t[i]];return r}},merge:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},toJS:function(e){return e}};var I=b(P),O=M(P),L=p(P),R=(L.getLocation,L.getAction,L.getHash,L.getRouter,L.getSearch,L.createMatchSelector)},6381:e=>{var t;t={rad:{name:{singular:"radian",plural:"radians"},to_anchor:180/Math.PI},deg:{name:{singular:"degree",plural:"degrees"},to_anchor:1},grad:{name:{singular:"gradian",plural:"gradians"},to_anchor:.9},arcmin:{name:{singular:"arcminute",plural:"arcminutes"},to_anchor:1/60},arcsec:{name:{singular:"arcsecond",plural:"arcseconds"},to_anchor:1/3600}},e.exports={metric:t,_anchors:{metric:{unit:"deg",ratio:1}}}},78898:e=>{var t;t={VA:{name:{singular:"Volt-Ampere",plural:"Volt-Amperes"},to_anchor:1},mVA:{name:{singular:"Millivolt-Ampere",plural:"Millivolt-Amperes"},to_anchor:.001},kVA:{name:{singular:"Kilovolt-Ampere",plural:"Kilovolt-Amperes"},to_anchor:1e3},MVA:{name:{singular:"Megavolt-Ampere",plural:"Megavolt-Amperes"},to_anchor:1e6},GVA:{name:{singular:"Gigavolt-Ampere",plural:"Gigavolt-Amperes"},to_anchor:1e9}},e.exports={metric:t,_anchors:{metric:{unit:"VA",ratio:1}}}},70739:e=>{var t,n;t={mm2:{name:{singular:"Square Millimeter",plural:"Square Millimeters"},to_anchor:1e-6},cm2:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:1e-4},m2:{name:{singular:"Square Meter",plural:"Square Meters"},to_anchor:1},ha:{name:{singular:"Hectare",plural:"Hectares"},to_anchor:1e4},km2:{name:{singular:"Square Kilometer",plural:"Square Kilometers"},to_anchor:1e6}},n={in2:{name:{singular:"Square Inch",plural:"Square Inches"},to_anchor:1/144},yd2:{name:{singular:"Square Yard",plural:"Square Yards"},to_anchor:9},ft2:{name:{singular:"Square Foot",plural:"Square Feet"},to_anchor:1},ac:{name:{singular:"Acre",plural:"Acres"},to_anchor:43560},mi2:{name:{singular:"Square Mile",plural:"Square Miles"},to_anchor:27878400}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"m2",ratio:10.7639},imperial:{unit:"ft2",ratio:1/10.7639}}}},22320:e=>{var t;t={A:{name:{singular:"Ampere",plural:"Amperes"},to_anchor:1},mA:{name:{singular:"Milliampere",plural:"Milliamperes"},to_anchor:.001},kA:{name:{singular:"Kiloampere",plural:"Kiloamperes"},to_anchor:1e3}},e.exports={metric:t,_anchors:{metric:{unit:"A",ratio:1}}}},87501:e=>{var t,n;t={b:{name:{singular:"Bit",plural:"Bits"},to_anchor:1},Kb:{name:{singular:"Kilobit",plural:"Kilobits"},to_anchor:1024},Mb:{name:{singular:"Megabit",plural:"Megabits"},to_anchor:1048576},Gb:{name:{singular:"Gigabit",plural:"Gigabits"},to_anchor:1073741824},Tb:{name:{singular:"Terabit",plural:"Terabits"},to_anchor:1099511627776}},n={B:{name:{singular:"Byte",plural:"Bytes"},to_anchor:1},KB:{name:{singular:"Kilobyte",plural:"Kilobytes"},to_anchor:1024},MB:{name:{singular:"Megabyte",plural:"Megabytes"},to_anchor:1048576},GB:{name:{singular:"Gigabyte",plural:"Gigabytes"},to_anchor:1073741824},TB:{name:{singular:"Terabyte",plural:"Terabytes"},to_anchor:1099511627776}},e.exports={bits:t,bytes:n,_anchors:{bits:{unit:"b",ratio:1/8},bytes:{unit:"B",ratio:8}}}},47452:e=>{var t;t={ea:{name:{singular:"Each",plural:"Each"},to_anchor:1},dz:{name:{singular:"Dozen",plural:"Dozens"},to_anchor:12}},e.exports={metric:t,imperial:{},_anchors:{metric:{unit:"ea",ratio:1}}}},42710:e=>{var t;t={Wh:{name:{singular:"Watt-hour",plural:"Watt-hours"},to_anchor:3600},mWh:{name:{singular:"Milliwatt-hour",plural:"Milliwatt-hours"},to_anchor:3.6},kWh:{name:{singular:"Kilowatt-hour",plural:"Kilowatt-hours"},to_anchor:36e5},MWh:{name:{singular:"Megawatt-hour",plural:"Megawatt-hours"},to_anchor:36e8},GWh:{name:{singular:"Gigawatt-hour",plural:"Gigawatt-hours"},to_anchor:36e11},J:{name:{singular:"Joule",plural:"Joules"},to_anchor:1},kJ:{name:{singular:"Kilojoule",plural:"Kilojoules"},to_anchor:1e3}},e.exports={metric:t,_anchors:{metric:{unit:"J",ratio:1}}}},56494:e=>{var t;t={mHz:{name:{singular:"millihertz",plural:"millihertz"},to_anchor:.001},Hz:{name:{singular:"hertz",plural:"hertz"},to_anchor:1},kHz:{name:{singular:"kilohertz",plural:"kilohertz"},to_anchor:1e3},MHz:{name:{singular:"megahertz",plural:"megahertz"},to_anchor:1e6},GHz:{name:{singular:"gigahertz",plural:"gigahertz"},to_anchor:1e9},THz:{name:{singular:"terahertz",plural:"terahertz"},to_anchor:1e12},rpm:{name:{singular:"rotation per minute",plural:"rotations per minute"},to_anchor:1/60},"deg/s":{name:{singular:"degree per second",plural:"degrees per second"},to_anchor:1/360},"rad/s":{name:{singular:"radian per second",plural:"radians per second"},to_anchor:1/(2*Math.PI)}},e.exports={metric:t,_anchors:{frequency:{unit:"hz",ratio:1}}}},46087:e=>{var t,n;t={lx:{name:{singular:"Lux",plural:"Lux"},to_anchor:1}},n={"ft-cd":{name:{singular:"Foot-candle",plural:"Foot-candles"},to_anchor:1}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"lx",ratio:1/10.76391},imperial:{unit:"ft-cd",ratio:10.76391}}}},49028:e=>{var t,n;t={mm:{name:{singular:"Millimeter",plural:"Millimeters"},to_anchor:.001},cm:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:.01},m:{name:{singular:"Meter",plural:"Meters"},to_anchor:1},km:{name:{singular:"Kilometer",plural:"Kilometers"},to_anchor:1e3}},n={in:{name:{singular:"Inch",plural:"Inches"},to_anchor:1/12},yd:{name:{singular:"Yard",plural:"Yards"},to_anchor:3},"ft-us":{name:{singular:"US Survey Foot",plural:"US Survey Feet"},to_anchor:1.000002},ft:{name:{singular:"Foot",plural:"Feet"},to_anchor:1},mi:{name:{singular:"Mile",plural:"Miles"},to_anchor:5280}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"m",ratio:3.28084},imperial:{unit:"ft",ratio:1/3.28084}}}},27012:e=>{var t,n;t={mcg:{name:{singular:"Microgram",plural:"Micrograms"},to_anchor:1e-6},mg:{name:{singular:"Milligram",plural:"Milligrams"},to_anchor:.001},g:{name:{singular:"Gram",plural:"Grams"},to_anchor:1},kg:{name:{singular:"Kilogram",plural:"Kilograms"},to_anchor:1e3},mt:{name:{singular:"Metric Tonne",plural:"Metric Tonnes"},to_anchor:1e6}},n={oz:{name:{singular:"Ounce",plural:"Ounces"},to_anchor:1/16},lb:{name:{singular:"Pound",plural:"Pounds"},to_anchor:1},t:{name:{singular:"Ton",plural:"Tons"},to_anchor:2e3}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"g",ratio:1/453.592},imperial:{unit:"lb",ratio:453.592}}}},77650:e=>{var t,n;t={"min/km":{name:{singular:"Minute per kilometre",plural:"Minutes per kilometre"},to_anchor:.06},"s/m":{name:{singular:"Second per metre",plural:"Seconds per metre"},to_anchor:1}},n={"min/mi":{name:{singular:"Minute per mile",plural:"Minutes per mile"},to_anchor:.0113636},"s/ft":{name:{singular:"Second per foot",plural:"Seconds per foot"},to_anchor:1}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"s/m",ratio:.3048},imperial:{unit:"s/ft",ratio:1/.3048}}}},80947:e=>{var t;t={ppm:{name:{singular:"Part-per Million",plural:"Parts-per Million"},to_anchor:1},ppb:{name:{singular:"Part-per Billion",plural:"Parts-per Billion"},to_anchor:.001},ppt:{name:{singular:"Part-per Trillion",plural:"Parts-per Trillion"},to_anchor:1e-6},ppq:{name:{singular:"Part-per Quadrillion",plural:"Parts-per Quadrillion"},to_anchor:1e-9}},e.exports={metric:t,imperial:{},_anchors:{metric:{unit:"ppm",ratio:1e-6}}}},78721:e=>{var t;t={W:{name:{singular:"Watt",plural:"Watts"},to_anchor:1},mW:{name:{singular:"Milliwatt",plural:"Milliwatts"},to_anchor:.001},kW:{name:{singular:"Kilowatt",plural:"Kilowatts"},to_anchor:1e3},MW:{name:{singular:"Megawatt",plural:"Megawatts"},to_anchor:1e6},GW:{name:{singular:"Gigawatt",plural:"Gigawatts"},to_anchor:1e9}},e.exports={metric:t,_anchors:{metric:{unit:"W",ratio:1}}}},16475:e=>{var t,n;t={Pa:{name:{singular:"pascal",plural:"pascals"},to_anchor:.001},kPa:{name:{singular:"kilopascal",plural:"kilopascals"},to_anchor:1},MPa:{name:{singular:"megapascal",plural:"megapascals"},to_anchor:1e3},hPa:{name:{singular:"hectopascal",plural:"hectopascals"},to_anchor:.1},bar:{name:{singular:"bar",plural:"bar"},to_anchor:100},torr:{name:{singular:"torr",plural:"torr"},to_anchor:101325/76e4}},n={psi:{name:{singular:"pound per square inch",plural:"pounds per square inch"},to_anchor:.001},ksi:{name:{singular:"kilopound per square inch",plural:"kilopound per square inch"},to_anchor:1}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"kPa",ratio:.00014503768078},imperial:{unit:"psi",ratio:6894.76000045014}}}},27971:e=>{var t;t={VARh:{name:{singular:"Volt-Ampere Reactive Hour",plural:"Volt-Amperes Reactive Hour"},to_anchor:1},mVARh:{name:{singular:"Millivolt-Ampere Reactive Hour",plural:"Millivolt-Amperes Reactive Hour"},to_anchor:.001},kVARh:{name:{singular:"Kilovolt-Ampere Reactive Hour",plural:"Kilovolt-Amperes Reactive Hour"},to_anchor:1e3},MVARh:{name:{singular:"Megavolt-Ampere Reactive Hour",plural:"Megavolt-Amperes Reactive Hour"},to_anchor:1e6},GVARh:{name:{singular:"Gigavolt-Ampere Reactive Hour",plural:"Gigavolt-Amperes Reactive Hour"},to_anchor:1e9}},e.exports={metric:t,_anchors:{metric:{unit:"VARh",ratio:1}}}},92879:e=>{var t;t={VAR:{name:{singular:"Volt-Ampere Reactive",plural:"Volt-Amperes Reactive"},to_anchor:1},mVAR:{name:{singular:"Millivolt-Ampere Reactive",plural:"Millivolt-Amperes Reactive"},to_anchor:.001},kVAR:{name:{singular:"Kilovolt-Ampere Reactive",plural:"Kilovolt-Amperes Reactive"},to_anchor:1e3},MVAR:{name:{singular:"Megavolt-Ampere Reactive",plural:"Megavolt-Amperes Reactive"},to_anchor:1e6},GVAR:{name:{singular:"Gigavolt-Ampere Reactive",plural:"Gigavolt-Amperes Reactive"},to_anchor:1e9}},e.exports={metric:t,_anchors:{metric:{unit:"VAR",ratio:1}}}},79388:e=>{var t,n;t={"m/s":{name:{singular:"Metre per second",plural:"Metres per second"},to_anchor:3.6},"km/h":{name:{singular:"Kilometre per hour",plural:"Kilometres per hour"},to_anchor:1}},n={"m/h":{name:{singular:"Mile per hour",plural:"Miles per hour"},to_anchor:1},knot:{name:{singular:"Knot",plural:"Knots"},to_anchor:1.150779},"ft/s":{name:{singular:"Foot per second",plural:"Feet per second"},to_anchor:.681818}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"km/h",ratio:1/1.609344},imperial:{unit:"m/h",ratio:1.609344}}}},37159:e=>{var t,n;t={C:{name:{singular:"degree Celsius",plural:"degrees Celsius"},to_anchor:1,anchor_shift:0},K:{name:{singular:"degree Kelvin",plural:"degrees Kelvin"},to_anchor:1,anchor_shift:273.15}},n={F:{name:{singular:"degree Fahrenheit",plural:"degrees Fahrenheit"},to_anchor:1},R:{name:{singular:"degree Rankine",plural:"degrees Rankine"},to_anchor:1,anchor_shift:459.67}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"C",transform:function(e){return e/(5/9)+32}},imperial:{unit:"F",transform:function(e){return 5/9*(e-32)}}}}},68614:e=>{var t;t={ns:{name:{singular:"Nanosecond",plural:"Nanoseconds"},to_anchor:1e-9},mu:{name:{singular:"Microsecond",plural:"Microseconds"},to_anchor:1e-6},ms:{name:{singular:"Millisecond",plural:"Milliseconds"},to_anchor:.001},s:{name:{singular:"Second",plural:"Seconds"},to_anchor:1},min:{name:{singular:"Minute",plural:"Minutes"},to_anchor:60},h:{name:{singular:"Hour",plural:"Hours"},to_anchor:3600},d:{name:{singular:"Day",plural:"Days"},to_anchor:86400},week:{name:{singular:"Week",plural:"Weeks"},to_anchor:604800},month:{name:{singular:"Month",plural:"Months"},to_anchor:2629800},year:{name:{singular:"Year",plural:"Years"},to_anchor:31557600}},e.exports={metric:t,_anchors:{metric:{unit:"s",ratio:1}}}},55361:e=>{var t;t={V:{name:{singular:"Volt",plural:"Volts"},to_anchor:1},mV:{name:{singular:"Millivolt",plural:"Millivolts"},to_anchor:.001},kV:{name:{singular:"Kilovolt",plural:"Kilovolts"},to_anchor:1e3}},e.exports={metric:t,_anchors:{metric:{unit:"V",ratio:1}}}},70533:e=>{var t,n;t={mm3:{name:{singular:"Cubic Millimeter",plural:"Cubic Millimeters"},to_anchor:1e-6},cm3:{name:{singular:"Cubic Centimeter",plural:"Cubic Centimeters"},to_anchor:.001},ml:{name:{singular:"Millilitre",plural:"Millilitres"},to_anchor:.001},cl:{name:{singular:"Centilitre",plural:"Centilitres"},to_anchor:.01},dl:{name:{singular:"Decilitre",plural:"Decilitres"},to_anchor:.1},l:{name:{singular:"Litre",plural:"Litres"},to_anchor:1},kl:{name:{singular:"Kilolitre",plural:"Kilolitres"},to_anchor:1e3},m3:{name:{singular:"Cubic meter",plural:"Cubic meters"},to_anchor:1e3},km3:{name:{singular:"Cubic kilometer",plural:"Cubic kilometers"},to_anchor:1e12},krm:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.001},tsk:{name:{singular:"Tesked",plural:"Teskedar"},to_anchor:.005},msk:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.015},kkp:{name:{singular:"Kaffekopp",plural:"Kaffekoppar"},to_anchor:.15},glas:{name:{singular:"Glas",plural:"Glas"},to_anchor:.2},kanna:{name:{singular:"Kanna",plural:"Kannor"},to_anchor:2.617}},n={tsp:{name:{singular:"Teaspoon",plural:"Teaspoons"},to_anchor:1/6},Tbs:{name:{singular:"Tablespoon",plural:"Tablespoons"},to_anchor:.5},in3:{name:{singular:"Cubic inch",plural:"Cubic inches"},to_anchor:.55411},"fl-oz":{name:{singular:"Fluid Ounce",plural:"Fluid Ounces"},to_anchor:1},cup:{name:{singular:"Cup",plural:"Cups"},to_anchor:8},pnt:{name:{singular:"Pint",plural:"Pints"},to_anchor:16},qt:{name:{singular:"Quart",plural:"Quarts"},to_anchor:32},gal:{name:{singular:"Gallon",plural:"Gallons"},to_anchor:128},ft3:{name:{singular:"Cubic foot",plural:"Cubic feet"},to_anchor:957.506},yd3:{name:{singular:"Cubic yard",plural:"Cubic yards"},to_anchor:25852.7}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"l",ratio:33.8140226},imperial:{unit:"fl-oz",ratio:1/33.8140226}}}},2187:e=>{var t,n;t={"mm3/s":{name:{singular:"Cubic Millimeter per second",plural:"Cubic Millimeters per second"},to_anchor:1e-6},"cm3/s":{name:{singular:"Cubic Centimeter per second",plural:"Cubic Centimeters per second"},to_anchor:.001},"ml/s":{name:{singular:"Millilitre per second",plural:"Millilitres per second"},to_anchor:.001},"cl/s":{name:{singular:"Centilitre per second",plural:"Centilitres per second"},to_anchor:.01},"dl/s":{name:{singular:"Decilitre per second",plural:"Decilitres per second"},to_anchor:.1},"l/s":{name:{singular:"Litre per second",plural:"Litres per second"},to_anchor:1},"l/min":{name:{singular:"Litre per minute",plural:"Litres per minute"},to_anchor:1/60},"l/h":{name:{singular:"Litre per hour",plural:"Litres per hour"},to_anchor:1/3600},"kl/s":{name:{singular:"Kilolitre per second",plural:"Kilolitres per second"},to_anchor:1e3},"kl/min":{name:{singular:"Kilolitre per minute",plural:"Kilolitres per minute"},to_anchor:50/3},"kl/h":{name:{singular:"Kilolitre per hour",plural:"Kilolitres per hour"},to_anchor:5/18},"m3/s":{name:{singular:"Cubic meter per second",plural:"Cubic meters per second"},to_anchor:1e3},"m3/min":{name:{singular:"Cubic meter per minute",plural:"Cubic meters per minute"},to_anchor:50/3},"m3/h":{name:{singular:"Cubic meter per hour",plural:"Cubic meters per hour"},to_anchor:5/18},"km3/s":{name:{singular:"Cubic kilometer per second",plural:"Cubic kilometers per second"},to_anchor:1e12}},n={"tsp/s":{name:{singular:"Teaspoon per second",plural:"Teaspoons per second"},to_anchor:1/6},"Tbs/s":{name:{singular:"Tablespoon per second",plural:"Tablespoons per second"},to_anchor:.5},"in3/s":{name:{singular:"Cubic inch per second",plural:"Cubic inches per second"},to_anchor:.55411},"in3/min":{name:{singular:"Cubic inch per minute",plural:"Cubic inches per minute"},to_anchor:.55411/60},"in3/h":{name:{singular:"Cubic inch per hour",plural:"Cubic inches per hour"},to_anchor:.55411/3600},"fl-oz/s":{name:{singular:"Fluid Ounce per second",plural:"Fluid Ounces per second"},to_anchor:1},"fl-oz/min":{name:{singular:"Fluid Ounce per minute",plural:"Fluid Ounces per minute"},to_anchor:1/60},"fl-oz/h":{name:{singular:"Fluid Ounce per hour",plural:"Fluid Ounces per hour"},to_anchor:1/3600},"cup/s":{name:{singular:"Cup per second",plural:"Cups per second"},to_anchor:8},"pnt/s":{name:{singular:"Pint per second",plural:"Pints per second"},to_anchor:16},"pnt/min":{name:{singular:"Pint per minute",plural:"Pints per minute"},to_anchor:4/15},"pnt/h":{name:{singular:"Pint per hour",plural:"Pints per hour"},to_anchor:1/225},"qt/s":{name:{singular:"Quart per second",plural:"Quarts per second"},to_anchor:32},"gal/s":{name:{singular:"Gallon per second",plural:"Gallons per second"},to_anchor:128},"gal/min":{name:{singular:"Gallon per minute",plural:"Gallons per minute"},to_anchor:32/15},"gal/h":{name:{singular:"Gallon per hour",plural:"Gallons per hour"},to_anchor:8/225},"ft3/s":{name:{singular:"Cubic foot per second",plural:"Cubic feet per second"},to_anchor:957.506},"ft3/min":{name:{singular:"Cubic foot per minute",plural:"Cubic feet per minute"},to_anchor:957.506/60},"ft3/h":{name:{singular:"Cubic foot per hour",plural:"Cubic feet per hour"},to_anchor:957.506/3600},"yd3/s":{name:{singular:"Cubic yard per second",plural:"Cubic yards per second"},to_anchor:25852.7},"yd3/min":{name:{singular:"Cubic yard per minute",plural:"Cubic yards per minute"},to_anchor:25852.7/60},"yd3/h":{name:{singular:"Cubic yard per hour",plural:"Cubic yards per hour"},to_anchor:25852.7/3600}},e.exports={metric:t,imperial:n,_anchors:{metric:{unit:"l/s",ratio:33.8140227},imperial:{unit:"fl-oz/s",ratio:1/33.8140227}}}},26618:(e,t,n)=>{var r,i,o=n(44255),a=n(72993),s={length:n(49028),area:n(70739),mass:n(27012),volume:n(70533),each:n(47452),temperature:n(37159),time:n(68614),digital:n(87501),partsPer:n(80947),speed:n(79388),pace:n(77650),pressure:n(16475),current:n(22320),voltage:n(55361),power:n(78721),reactivePower:n(92879),apparentPower:n(78898),energy:n(42710),reactiveEnergy:n(27971),volumeFlowRate:n(2187),illuminance:n(46087),frequency:n(56494),angle:n(6381)};(i=function(e,t){this.val=t?e/t:e}).prototype.from=function(e){if(this.destination)throw new Error(".from must be called before .to");return this.origin=this.getUnit(e),this.origin||this.throwUnsupportedUnitError(e),this},i.prototype.to=function(e){if(!this.origin)throw new Error(".to must be called after .from");var t,n;if(this.destination=this.getUnit(e),this.destination||this.throwUnsupportedUnitError(e),this.origin.abbr===this.destination.abbr)return this.val;if(this.destination.measure!=this.origin.measure)throw new Error("Cannot convert incompatible measures of "+this.destination.measure+" and "+this.origin.measure);return t=this.val*this.origin.unit.to_anchor,this.origin.unit.anchor_shift&&(t-=this.origin.unit.anchor_shift),this.origin.system!=this.destination.system&&("function"===typeof(n=s[this.origin.measure]._anchors[this.origin.system].transform)?t=n(t):t*=s[this.origin.measure]._anchors[this.origin.system].ratio),this.destination.unit.anchor_shift&&(t+=this.destination.unit.anchor_shift),t/this.destination.unit.to_anchor},i.prototype.toBest=function(e){if(!this.origin)throw new Error(".toBest must be called after .from");var t;e=Object.assign({exclude:[],cutOffNumber:1},e);return a(this.possibilities(),function(n){var r=this.describe(n);if(-1===e.exclude.indexOf(n)&&r.system===this.origin.system){var i=this.to(n);(!t||i>=e.cutOffNumber&&i<t.val)&&(t={val:i,unit:n,singular:r.singular,plural:r.plural})}}.bind(this)),t},i.prototype.getUnit=function(e){var t;return a(s,(function(n,r){if(a(n,(function(n,i){return"_anchors"!=i&&(a(n,(function(n,o){if(o==e)return t={abbr:e,measure:r,system:i,unit:n},!1})),!t&&void 0)})),t)return!1})),t};var l=function(e){return{abbr:e.abbr,measure:e.measure,system:e.system,singular:e.unit.name.singular,plural:e.unit.name.plural}};i.prototype.describe=function(e){var t=i.prototype.getUnit(e),n=null;try{n=l(t)}catch(r){this.throwUnsupportedUnitError(e)}return n},i.prototype.list=function(e){var t=[];return a(s,(function(n,r){e&&e!==r||a(n,(function(e,n){if("_anchors"==n)return!1;a(e,(function(e,i){t=t.concat(l({abbr:i,measure:r,system:n,unit:e}))}))}))})),t},i.prototype.throwUnsupportedUnitError=function(e){var t=[];throw a(s,(function(e,n){a(e,(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))})),new Error("Unsupported unit "+e+", use one of: "+t.join(", "))},i.prototype.possibilities=function(e){var t=[];return this.origin||e?(e=e||this.origin.measure,a(s[e],(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))):a(o(s),(function(e){a(s[e],(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))})),t},i.prototype.measures=function(){return o(s)},r=function(e){return new i(e)},e.exports=r},73914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=[{name:"Afghanistan",code:"af",dial_code:"+93"},{name:"Albania",code:"al",dial_code:"+355"},{name:"Algeria",code:"dz",dial_code:"+213"},{name:"Andorra",code:"ad",dial_code:"+376"},{name:"Angola",code:"ao",dial_code:"+244"},{name:"Anguilla",code:"ai",dial_code:"+1264"},{name:"Antigua and Barbuda",code:"ag",dial_code:"+1268"},{name:"Argentina",code:"ar",dial_code:"+54"},{name:"Armenia",code:"am",dial_code:"+374"},{name:"Aruba",code:"aw",dial_code:"+297"},{name:"Australia",code:"au",dial_code:"+61"},{name:"Austria",code:"at",dial_code:"+43"},{name:"Azerbaijan",code:"az",dial_code:"+994"},{name:"Bahamas",code:"bs",dial_code:"+1242"},{name:"Bahrain",code:"bh",dial_code:"+973"},{name:"Bangladesh",code:"bd",dial_code:"+880"},{name:"Barbados",code:"bb",dial_code:"+1246"},{name:"Belarus",code:"by",dial_code:"+375"},{name:"Belgium",code:"be",dial_code:"+32"},{name:"Belize",code:"bz",dial_code:"+501"},{name:"Benin",code:"bj",dial_code:"+229"},{name:"Bermuda",code:"bm",dial_code:"+1441"},{name:"Bhutan",code:"bt",dial_code:"+975"},{name:"Bolivia",code:"bo",dial_code:"+591"},{name:"Bosnia and Herzegovina",code:"ba",dial_code:"+387"},{name:"Botswana",code:"bw",dial_code:"+267"},{name:"Brazil",code:"br",dial_code:"+55"},{name:"Brunei Darussalam",code:"bn",dial_code:"+673"},{name:"Bulgaria",code:"bg",dial_code:"+359"},{name:"Burkina Faso",code:"bf",dial_code:"+226"},{name:"Burundi",code:"bi",dial_code:"+257"},{name:"Cambodia",code:"kh",dial_code:"+855"},{name:"Cameroon",code:"cm",dial_code:"+237"},{name:"Canada",code:"ca",dial_code:"+1"},{name:"Cape Verde",code:"cv",dial_code:"+238"},{name:"Cayman Islands",code:"ky",dial_code:"+ 345"},{name:"Central African Republic",code:"cf",dial_code:"+236"},{name:"Chad",code:"td",dial_code:"+235"},{name:"Chile",code:"cl",dial_code:"+56"},{name:"China",code:"cn",dial_code:"+86"},{name:"Christmas Island",code:"cx",dial_code:"+61"},{name:"Cocos (Keeling) Islands",code:"cc",dial_code:"+61"},{name:"Colombia",code:"co",dial_code:"+57"},{name:"Comoros",code:"km",dial_code:"+269"},{name:"Congo",code:"cg",dial_code:"+242"},{name:"Cook Islands",code:"ck",dial_code:"+682"},{name:"Costa Rica",code:"cr",dial_code:"+506"},{name:"Cote D'Ivoire",code:"ci",dial_code:"+225"},{name:"Croatia",code:"hr",dial_code:"+385"},{name:"Cuba",code:"cu",dial_code:"+53"},{name:"Cyprus",code:"cy",dial_code:"+537"},{name:"Czech Republic",code:"cz",dial_code:"+420"},{name:"Democratic Republic of the Congo",code:"cd",dial_code:"+243"},{name:"Denmark",code:"dk",dial_code:"+45"},{name:"Djibouti",code:"dj",dial_code:"+253"},{name:"Dominica",code:"dm",dial_code:"+1767"},{name:"Dominican Republic",code:"do",dial_code:"+1849"},{name:"Ecuador",code:"ec",dial_code:"+593"},{name:"Egypt",code:"eg",dial_code:"+20"},{name:"El Salvador",code:"sv",dial_code:"+503"},{name:"Equatorial Guinea",code:"gq",dial_code:"+240"},{name:"Eritrea",code:"er",dial_code:"+291"},{name:"Estonia",code:"ee",dial_code:"+372"},{name:"Ethiopia",code:"et",dial_code:"+251"},{name:"Falkland Islands",code:"fk",dial_code:"+500"},{name:"Faroe Islands",code:"fo",dial_code:"+298"},{name:"Federated States of Micronesia",code:"fm",dial_code:"+691"},{name:"Fiji",code:"fj",dial_code:"+679"},{name:"Finland",code:"fi",dial_code:"+358"},{name:"France",code:"fr",dial_code:"+33"},{name:"French Guiana",code:"gf",dial_code:"+594"},{name:"French Polynesia",code:"pf",dial_code:"+689"},{name:"French Southern Territories",code:"tf",dial_code:"+262"},{name:"Gabon",code:"ga",dial_code:"+241"},{name:"Gambia",code:"gm",dial_code:"+220"},{name:"Georgia",code:"ge",dial_code:"+995"},{name:"Germany",code:"de",dial_code:"+49"},{name:"Ghana",code:"gh",dial_code:"+233"},{name:"Gibraltar",code:"gi",dial_code:"+350"},{name:"Great Britain (UK)",code:"gb",dial_code:"+44"},{name:"Greece",code:"gr",dial_code:"+30"},{name:"Greenland",code:"gl",dial_code:"+299"},{name:"Grenada",code:"gd",dial_code:"+1473"},{name:"Guadeloupe",code:"gp",dial_code:"+590"},{name:"Guatemala",code:"gt",dial_code:"+502"},{name:"Guinea",code:"gn",dial_code:"+224"},{name:"Guinea-Bissau",code:"gw",dial_code:"+245"},{name:"Guyana",code:"gy",dial_code:"+595"},{name:"Haiti",code:"ht",dial_code:"+509"},{name:"Honduras",code:"hn",dial_code:"+504"},{name:"Hong Kong",code:"hk",dial_code:"+852"},{name:"Hungary",code:"hu",dial_code:"+36"},{name:"Iceland",code:"is",dial_code:"+354"},{name:"India",code:"in",dial_code:"+91"},{name:"Indonesia",code:"id",dial_code:"+62"},{name:"Iran",code:"ir",dial_code:"+98"},{name:"Iraq",code:"iq",dial_code:"+964"},{name:"Ireland",code:"ie",dial_code:"+353"},{name:"Israel",code:"il",dial_code:"+972"},{name:"Italy",code:"it",dial_code:"+39"},{name:"Jamaica",code:"jm",dial_code:"+1876"},{name:"Japan",code:"jp",dial_code:"+81"},{name:"Jordan",code:"jo",dial_code:"+962"},{name:"Kazakhstan",code:"kz",dial_code:"+7 7"},{name:"Kenya",code:"ke",dial_code:"+254"},{name:"Kiribati",code:"ki",dial_code:"+686"},{name:"North Korea",code:"kp",dial_code:"+850"},{name:"South Korea",code:"kr",dial_code:"+82"},{name:"Kuwait",code:"kw",dial_code:"+965"},{name:"Kyrgyzstan",code:"kg",dial_code:"+996"},{name:"Laos",code:"la",dial_code:"+856"},{name:"Latvia",code:"lv",dial_code:"+371"},{name:"Lebanon",code:"lb",dial_code:"+961"},{name:"Lesotho",code:"ls",dial_code:"+266"},{name:"Liberia",code:"lr",dial_code:"+231"},{name:"Libya",code:"ly",dial_code:"+218"},{name:"Liechtenstein",code:"li",dial_code:"+423"},{name:"Lithuania",code:"lt",dial_code:"+370"},{name:"Luxembourg",code:"lu",dial_code:"+352"},{name:"Macao",code:"mo",dial_code:"+853"},{name:"Macedonia",code:"mk",dial_code:"+389"},{name:"Madagascar",code:"mg",dial_code:"+261"},{name:"Malawi",code:"mw",dial_code:"+265"},{name:"Malaysia",code:"my",dial_code:"+60"},{name:"Maldives",code:"mv",dial_code:"+960"},{name:"Mali",code:"ml",dial_code:"+223"},{name:"Malta",code:"mt",dial_code:"+356"},{name:"Marshall Islands",code:"mh",dial_code:"+692"},{name:"Martinique",code:"mq",dial_code:"+596"},{name:"Mauritania",code:"mr",dial_code:"+222"},{name:"Mauritius",code:"mu",dial_code:"+230"},{name:"Mayotte",code:"yt",dial_code:"+262"},{name:"Mexico",code:"mx",dial_code:"+52"},{name:"Moldova",code:"md",dial_code:"+373"},{name:"Monaco",code:"mc",dial_code:"+377"},{name:"Mongolia",code:"mn",dial_code:"+976"},{name:"Montserrat",code:"ms",dial_code:"+1664"},{name:"Morocco",code:"ma",dial_code:"+212"},{name:"Mozambique",code:"mz",dial_code:"+258"},{name:"Myanmar",code:"mm",dial_code:"+95"},{name:"Namibia",code:"na",dial_code:"+264"},{name:"Nauru",code:"nr",dial_code:"+674"},{name:"Nepal",code:"np",dial_code:"+977"},{name:"Netherlands",code:"nl",dial_code:"+31"},{name:"Netherlands Antilles",code:"an",dial_code:"+599"},{name:"New Caledonia",code:"nc",dial_code:"+687"},{name:"New Zealand",code:"nz",dial_code:"+64"},{name:"Nicaragua",code:"ni",dial_code:"+505"},{name:"Niger",code:"ne",dial_code:"+227"},{name:"Nigeria",code:"ng",dial_code:"+234"},{name:"Niue",code:"nu",dial_code:"+683"},{name:"Norfolk Island",code:"nf",dial_code:"+672"},{name:"Northern Mariana Islands",code:"mp",dial_code:"+1670"},{name:"Norway",code:"no",dial_code:"+47"},{name:"NULL",code:"gg",dial_code:"+44"},{name:"Oman",code:"om",dial_code:"+968"},{name:"Pakistan",code:"pk",dial_code:"+92"},{name:"Palau",code:"pw",dial_code:"+680"},{name:"Palestinian Territory",code:"ps",dial_code:"+970"},{name:"Panama",code:"pa",dial_code:"+507"},{name:"Papua New Guinea",code:"pg",dial_code:"+675"},{name:"Paraguay",code:"py",dial_code:"+595"},{name:"Peru",code:"pe",dial_code:"+51"},{name:"Philippines",code:"ph",dial_code:"+63"},{name:"Pitcairn",code:"pn",dial_code:"+872"},{name:"Poland",code:"pl",dial_code:"+48"},{name:"Portugal",code:"pt",dial_code:"+351"},{name:"Qatar",code:"qa",dial_code:"+974"},{name:"Reunion",code:"re",dial_code:"+262"},{name:"Romania",code:"ro",dial_code:"+40"},{name:"Russian Federation",code:"ru",dial_code:"+7"},{name:"Rwanda",code:"rw",dial_code:"+250"},{name:"S. Georgia and S. Sandwich Islands",code:"gs",dial_code:"+500"},{name:"Saint Helena",code:"sh",dial_code:"+290"},{name:"Saint Kitts and Nevis",code:"kn",dial_code:"+1869"},{name:"Saint Lucia",code:"lc",dial_code:"+1758"},{name:"Saint Pierre and Miquelon",code:"pm",dial_code:"+508"},{name:"Saint Vincent and the Grenadines",code:"vc",dial_code:"+1784"},{name:"Samoa",code:"ws",dial_code:"+685"},{name:"San Marino",code:"sm",dial_code:"+378"},{name:"Sao Tome and Principe",code:"st",dial_code:"+239"},{name:"Saudi Arabia",code:"sa",dial_code:"+966"},{name:"Senegal",code:"sn",dial_code:"+221"},{name:"Seychelles",code:"sc",dial_code:"+248"},{name:"Sierra Leone",code:"sl",dial_code:"+232"},{name:"Singapore",code:"sg",dial_code:"+65"},{name:"Slovakia",code:"sk",dial_code:"+421"},{name:"Slovenia",code:"si",dial_code:"+386"},{name:"Solomon Islands",code:"sb",dial_code:"+677"},{name:"Somalia",code:"so",dial_code:"+252"},{name:"South Africa",code:"za",dial_code:"+27"},{name:"Spain",code:"es",dial_code:"+34"},{name:"Sri Lanka",code:"lk",dial_code:"+94"},{name:"Sudan",code:"sd",dial_code:"+249"},{name:"Suriname",code:"sr",dial_code:"+597"},{name:"Svalbard and Jan Mayen",code:"sj",dial_code:"+47"},{name:"Swaziland",code:"sz",dial_code:"+268"},{name:"Sweden",code:"se",dial_code:"+46"},{name:"Switzerland",code:"ch",dial_code:"+41"},{name:"Syria",code:"sy",dial_code:"+963"},{name:"Taiwan",code:"tw",dial_code:"+886"},{name:"Tajikistan",code:"tj",dial_code:"+992"},{name:"Tanzania",code:"tz",dial_code:"+255"},{name:"Thailand",code:"th",dial_code:"+66"},{name:"Togo",code:"tg",dial_code:"+228"},{name:"Tokelau",code:"tk",dial_code:"+690"},{name:"Tonga",code:"to",dial_code:"+676"},{name:"Trinidad and Tobago",code:"tt",dial_code:"+1868"},{name:"Tunisia",code:"tn",dial_code:"+216"},{name:"Turkey",code:"tr",dial_code:"+90"},{name:"Turkmenistan",code:"tm",dial_code:"+993"},{name:"Turks and Caicos Islands",code:"tc",dial_code:"+1649"},{name:"Tuvalu",code:"tv",dial_code:"+688"},{name:"Uganda",code:"ug",dial_code:"+256"},{name:"Ukraine",code:"ua",dial_code:"+380"},{name:"United Arab Emirates",code:"ae",dial_code:"+971"},{name:"United States of America",code:"us",dial_code:"+1"},{name:"Uruguay",code:"uy",dial_code:"+598"},{name:"Uzbekistan",code:"uz",dial_code:"+998"},{name:"Vanuatu",code:"vu",dial_code:"+678"},{name:"Venezuela",code:"ve",dial_code:"+58"},{name:"Vietnam",code:"vn",dial_code:"+84"},{name:"Virgin Islands (British)",code:"vg",dial_code:"+1284"},{name:"Virgin Islands (U.S.)",code:"vi",dial_code:"+1340"},{name:"Wallis and Futuna",code:"wf",dial_code:"+681"},{name:"Western Sahara",code:"eh",dial_code:"+212"},{name:"Yemen",code:"ye",dial_code:"+967"},{name:"Zambia",code:"zm",dial_code:"+260"},{name:"Zimbabwe",code:"zw",dial_code:"+263"}]},94004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={af:["Badakhshan","Badghis","Balkh","Daykundi Province","Farah","Faryab Province","Helmand","Herat","Kandahar","Kunduz","Nangarhar","Panjshir","Parwan","Samangan","Sar-e Pul","Uruzgan","Velayat-e Khowst","Velayat-e Nurestan","Wardak","Wilayat-e Baghlan","Wilayat-e Bamyan","Wilayat-e Ghazni","Wilayat-e Ghor","Wilayat-e Jowzjan","Wilayat-e Kabul","Wilayat-e Kapisa","Wilayat-e Kunar","Wilayat-e Laghman","Wilayat-e Logar","Wilayat-e Nimroz","Wilayat-e Paktika","Wilayat-e Paktiya","Wilayat-e Takhar","Wilayat-e Zabul"],al:["Qarku i Beratit","Qarku i Dibres","Qarku i Durresit","Qarku i Elbasanit","Qarku i Fierit","Qarku i Gjirokastres","Qarku i Korces","Qarku i Kukesit","Qarku i Lezhes","Qarku i Shkodres","Qarku i Tiranes","Qarku i Vlores"],dz:["Adrar","Annaba","El Bayadh","El Oued","El Tarf","Illizi","Oran","Oum el Bouaghi","Wilaya d' Alger","Wilaya de Ain Defla","Wilaya de Ain Temouchent","Wilaya de Batna","Wilaya de Bechar","Wilaya de Bejaia","Wilaya de Biskra","Wilaya de Blida","Wilaya de Bordj Bou Arreridj","Wilaya de Bouira","Wilaya de Boumerdes","Wilaya de Chlef","Wilaya de Constantine","Wilaya de Djelfa","Wilaya de Ghardaia","Wilaya de Guelma","Wilaya de Jijel","Wilaya de Khenchela","Wilaya de Laghouat","Wilaya de M'Sila","Wilaya de Mascara","Wilaya de Medea","Wilaya de Mila","Wilaya de Mostaganem","Wilaya de Naama","Wilaya de Ouargla","Wilaya de Relizane","Wilaya de Saida","Wilaya de Setif","Wilaya de Sidi Bel Abbes","Wilaya de Skikda","Wilaya de Souk Ahras","Wilaya de Tamanrasset","Wilaya de Tebessa","Wilaya de Tiaret","Wilaya de Tindouf","Wilaya de Tipaza","Wilaya de Tissemsilt","Wilaya de Tizi Ouzo","Wilaya de Tlemcen"],ad:["Andorra la Vella","Canillo","Encamp","Escaldes-Engordany","La Massana","Ordino","Sant Julia de Loria"],ao:["Bengo Province","Benguela","Cabinda","Cuanza Norte Province","Cunene Province","Huambo","Huila Province","Kuando Kubango","Kwanza Sul","Luanda Province","Lunda Norte Province","Lunda Sul","Malanje Province","Moxico","Namibe Province","Provincia do Bie","Provincia do Uige","Zaire"],ai:["Blowing Point","East End","George Hill","Island Harbour","North Hill","North Side","Sandy Ground","Sandy Hill","South Hill","Stoney Ground","The Farrington","The Quarter","The Valley","West End"],ag:["Barbuda","Parish of Saint George","Parish of Saint John","Parish of Saint Mary","Parish of Saint Paul","Parish of Saint Peter","Parish of Saint Philip","Redonda"],ar:["Catamarca Province","Chaco Province","Chubut Province","Ciudad Autonoma de Buenos Aires","Cordoba Province","Corrientes Province","Entre Rios Province","Formosa Province","Jujuy Province","La Pampa Province","La Rioja Province","Mendoza Province","Misiones Province","Neuquen Province","Provincia de Buenos Aires","Rio Negro Province","Salta Province","San Juan Province","San Luis Province","Santa Cruz Province","Santa Fe Province","Santiago del Estero Province","Tierra del Fuego Province","Tucuman Province"],am:["Aragatsotni Marz","Ararati Marz","Armaviri Marz","Geghark'unik'i Marz","Kotayk'i Marz","Lorru Marz","Shiraki Marz","Syunik'i Marz","Tavushi Marz","Vayots' Dzor","Yerevan"],aw:[],au:["Australian Capital Territory","Northern Territory","New South Wales","Queensland","South Australia","Tasmania","Victoria","Western Australia"],at:["Burgenland","Kaernten","Niederoesterreich","Oberoesterreich","Salzburg","Steiermark","Tirol","Vorarlberg","Wien"],az:["Absheron Rayon","Aghdam Rayon","Aghdash Rayon","Aghjabadi Rayon","Aghstafa Rayon","Aghsu Rayon","Astara District","Baku City","Balakan Rayon","Barda Rayon","Beylagan Rayon","Bilasuvar Rayon","Dashkasan Rayon","Fizuli Rayon","Gadabay Rayon","Ganja City","Gobustan Rayon","Goranboy Rayon","Goychay Rayon","Goygol Rayon","Hajigabul Rayon","Imishli Rayon","Ismayilli Rayon","Jabrayil District","Jalilabad","Kalbajar District","Khachmaz Rayon","Khizi Rayon","Khojavend District","Kurdamir Rayon","Lacin Rayon","Lankaran Rayon","Lankaran Sahari","Lerik Rayon","Masally District","Mingacevir City","Naftalan City","Nakhchivan","Nakhchivan Autonomous Republic","Neftchala Rayon","Oghuz Rayon","Qabala Rayon","Qakh Rayon","Qazakh Rayon","Quba Rayon","Qubadli Rayon","Qusar Rayon","Saatly Rayon","Sabirabad Rayon","Salyan Rayon","Samukh Rayon","Shabran Rayon","Shaki city","Shaki Rayon","Shamakhi Rayon","Shamkir Rayon","Shirvan","Shusha","Siazan Rayon","Sumqayit City","Susa Rayon","Tartar Rayon","Tovuz Rayon","Ujar Rayon","Xankandi Sahari","Xocali Rayon","Yardymli Rayon","Yevlakh City","Yevlakh Rayon","Zangilan Rayon","Zaqatala Rayon","Zardab Rayon"],bs:["Acklins Island District","Berry Islands District","Bimini District","Black Point District","Cat Island","Central Abaco District","Central Andros District","Central Eleuthera District","City of Freeport District","Crooked Island and Long Cay District","East Grand Bahama District","Exuma District","Grand Cay District","Harbour Island District","Hope Town District","Inagua","Long Island","Mangrove Cay","Mayaguana District","Moore's Island District","New Providence District","North Abaco District","North Andros District","North Eleuthera District","Ragged Island District","Rum Cay","San Salvador District","South Abaco District","South Andros","South Eleuthera","Spanish Wells District","West Grand Bahama District"],bh:["Capital Governorate","Muharraq Governorate","Northern Governorate","Southern Governorate"],bd:["Barisal Division","Chittagong","Dhaka Division","Khulna Division","Mymensingh Division","Rajshahi Division","Rangpur Division","Sylhet Division"],bb:["Christ Church","Saint Andrew","Saint George","Saint James","Saint John","Saint Joseph","Saint Lucy","Saint Michael","Saint Peter","Saint Philip","Saint Thomas"],by:["Brest Oblast","Gomel Oblast","Grodno Oblast","Horad Minsk","Minsk Oblast","Mogilyov Oblast","Vitebsk Oblast"],be:["Bruxelles-Capitale","Flanders","Wallonia"],bz:["Belize District","Cayo District","Corozal District","Orange Walk District","Stann Creek District","Toledo District"],bj:["Alibori","Atakora Department","Atlantique Department","Borgou Department","Collines Department","Departement de l'Oueme","Donga","Kouffo Department","Littoral","Mono","Plateau Department","Zou Department"],bm:["Devonshire Parish","Hamilton","Paget Parish","Pembroke Parish","Saint George","Saint George's Parish","Sandys Parish","Smith's Parish","Southampton Parish","Warwick Parish"],bt:["Bumthang Dzongkhag","Chhukha Dzongkhag","Dagana Dzongkhag","Gasa","Haa Dzongkhag","Lhuentse Dzongkhag","Mongar Dzongkhag","Paro Dzongkhag","Pemagatshel Dzongkhag","Punakha Dzongkhag","Samdrup Jongkhar Dzongkhag","Samtse Dzongkhag","Sarpang Dzongkhag","Thimphu Dzongkhag","Trashi Yangste","Trashigang Dzongkhag","Trongsa Dzongkhag","Tsirang Dzongkhag","Wangdue Phodrang Dzongkhag","Zhemgang Dzongkhag"],bo:["Departamento de Chuquisaca","Departamento de Cochabamba","Departamento de La Paz","Departamento de Oruro","Departamento de Pando","Departamento de Potosi","Departamento de Santa Cruz","Departamento de Tarija","El Beni"],ba:["Brcko","Federation of Bosnia and Herzegovina","Republika Srpska"],bw:["Central District","Ghanzi District","Kgalagadi District","Kgatleng District","Kweneng District","North East District","North West District","South East District","Southern District"],br:["Acre","Alagoas","Amapa","Amazonas","Bahia","Ceara","Espirito Santo","Federal District","Goias","Maranhao","Mato Grosso","Mato Grosso do Sul","Minas Gerais","Para","Paraiba","Parana","Pernambuco","Piaui","Rio de Janeiro","Rio Grande do Norte","Rio Grande do Sul","Rondonia","Roraima","Santa Catarina","Sao Paulo","Sergipe","Tocantins"],bn:["Belait District","Brunei and Muara District","Temburong District","Tutong District"],bg:["Blagoevgrad","Burgas","Gabrovo","Haskovo","Lovech","Oblast Dobrich","Oblast Kardzhali","Oblast Kyustendil","Oblast Montana","Oblast Pleven","Oblast Razgrad","Oblast Ruse","Oblast Shumen","Oblast Silistra","Oblast Sliven","Oblast Smolyan","Oblast Stara Zagora","Oblast Targovishte","Oblast Veliko Tarnovo","Oblast Vidin","Oblast Vratsa","Oblast Yambol","Pazardzhik","Pernik","Plovdiv","Sofia","Sofia-Grad","Varna"],bf:["Boucle du Mouhoun Region","Cascades Region","Centre","Centre-Est","Centre-Nord","Centre-Ouest","Centre-Sud","Est","High-Basins Region","Nord","Plateau-Central","Sahel","Southwest Region"],bi:["Bubanza Province","Bujumbura Mairie Province","Bujumbura Rural Province","Bururi Province","Cankuzo Province","Cibitoke Province","Gitega Province","Karuzi Province","Kayanza Province","Kirundo Province","Makamba Province","Muramvya Province","Muyinga Province","Ngozi Province","Province de Mwaro","Rumonge Province","Rutana Province","Ruyigi Province"],kh:["Banteay Meanchey","Battambang","Kampong Cham","Kampong Chhnang","Kampong Spe","Kampong Thom","Kampot","Kandal","Kep","Koh Kong","Kratie","Mondolkiri","Otar Meanchey","Pailin","Phnom Penh","Preah Vihear","Prey Veng","Pursat","Ratanakiri","Siem Reap","Sihanoukville","Stung Treng","Svay Rieng","Takeo","Tboung Khmum"],cm:["Adamaoua Region","Centre Region","East Region","Far North Region","Littoral Region","North Region","North-West Region","South Region","South-West Region","West Region"],ca:["Alberta","British Columbia","Manitoba","New Brunswick/Nouveau-Brunswick","Newfoundland and Labrador","Northwest Territories","Nova Scotia","Nunavut","Ontario","Prince Edward Island","Quebec","Saskatchewan","Yukon"],cv:["Concelho da Boa Vista","Concelho da Brava","Concelho da Praia","Concelho da Ribeira Brava","Concelho da Ribeira Grande","Concelho de Ribeira Grande de Santiago","Concelho de Santa Catarina","Concelho de Santa Catarina do Fogo","Concelho de Santa Cruz","Concelho de Sao Domingos","Concelho de Sao Miguel","Concelho de Sao Salvador do Mundo","Concelho de Sao Vicente","Concelho do Maio","Concelho do Paul","Concelho do Porto Novo","Concelho do Sao Filipe","Concelho do Tarrafal","Concelho do Tarrafal de Sao Nicola","Concelho dos Mosteiros","Sal Municipality","Sao Lourenco dos Orgaos"],ky:["Bodden Town","East End","George Town","North Side","Sister Island","West Bay"],cf:["Bamingui-Bangoran","Basse-Kotto","Commune de Bangui","Haut-Mbomo","Haute-Kotto","Lobaye","Mambere-Kadei","Mbomo","Ombella-Mpoko","Ouaka","Ouham","Prefecture de l'Ouham-Pende","Prefecture de la Kemo","Prefecture de la Nana-Grebizi","Prefecture de la Nana-Mambere","Prefecture de la Sangha-Mbaere","Vakaga"],td:["Barh el Gazel","Batha Region","Borkou Region","Chari-Baguirmi Region","Ennedi-Est","Ennedi-Ouest","Guera Region","Hadjer-Lamis","Kanem Region","Lac Region","Logone Occidental Region","Logone Oriental Region","Mandoul","Mayo-Kebbi East Region","Mayo-Kebbi West Region","Moyen-Chari Region","Ouaddai Region","Region de la Ville de N'Djamena","Salamat Region","Sila","Tandjile Region","Tibesti Region","Wadi Fira Region"],cl:["Antofagasta","Atacama","Aysen","Coquimbo","Los Lagos","Maule","Region de Arica y Parinacota","Region de la Araucania","Region de Los Rios","Region de Magallanes y de la Antartica Chilena","Region de Tarapaca","Region de Valparaiso","Region del Biobio","Region del Libertador General Bernardo O'Higgins","Region Metropolitana de Santiago"],cn:["Anhui Sheng","Beijing Shi","Chongqing Shi","Fujian Sheng","Gansu Sheng","Guangdong Sheng","Guangxi Zhuangzu Zizhiq","Guizhou Sheng","Hainan Sheng","Hebei Sheng","Heilongjiang Sheng","Henan Sheng","Hubei Sheng","Hunan Sheng","Inner Mongolia Autonomous Region","Jiangsu Sheng","Jiangxi Sheng","Jilin Sheng","Liaoning Sheng","Ningxia Huizu Zizhiq","Qinghai Sheng","Shaanxi","Shandong Sheng","Shanghai Shi","Shanxi Sheng","Sichuan Sheng","Tianjin Shi","Tibet Autonomous Region","Xinjiang Uygur Zizhiq","Yunnan Sheng","Zhejiang Sheng"],cx:[],cc:[],co:["Amazonas","Departamento de Antioquia","Departamento de Arauca","Departamento de Bolivar","Departamento de Boyaca","Departamento de Caldas","Departamento de Casanare","Departamento de Cordoba","Departamento de Cundinamarca","Departamento de La Guajira","Departamento de Narino","Departamento de Norte de Santander","Departamento de Risaralda","Departamento de Santander","Departamento de Sucre","Departamento de Tolima","Departamento del Atlantico","Departamento del Caqueta","Departamento del Cauca","Departamento del Cesar","Departamento del Choco","Departamento del Guainia","Departamento del Guaviare","Departamento del Huila","Departamento del Magdalena","Departamento del Meta","Departamento del Putumayo","Departamento del Valle del Cauca","Departamento del Vaupes","Departamento del Vichada","Distrito Capital de Bogota","Providencia y Santa Catalina, Departamento de Archipielago de San Andres","Quindio Department"],km:["Grande Comore","Moheli","Ndzuwani"],cg:["Commune de Brazzaville","Cuvette","Cuvette-Ouest","Lekoumo","Likouala","Plateaux","Pointe-Noire","Pool","Region de la Bouenza","Region du Kouilo","Region du Niari","Sangha"],ck:["Aitutaki","Ati","Ma'uke","Mangaia","Manihiki","Mitiaro","Palmerston","Penrhyn","Pukapuka","Rakahanga","Rarotonga"],cr:["Provincia de Alajuela","Provincia de Cartago","Provincia de Guanacaste","Provincia de Heredia","Provincia de Limon","Provincia de Puntarenas","Provincia de San Jose"],ci:["Abidjan","Bas-Sassandra","Comoe","Denguele","Goh-Djiboua","Lacs","Lagunes","Montagnes","Sassandra-Marahoue","Savanes","Vallee du Bandama","Woroba","Yamoussoukro Autonomous District","Zanzan"],hr:["Bjelovarsko-Bilogorska Zupanija","Brodsko-Posavska Zupanija","Dubrovacko-Neretvanska Zupanija","Grad Zagreb","Istarska Zupanija","Karlovacka Zupanija","Koprivnicko-Krizevacka Zupanija","Krapinsko-Zagorska Zupanija","Licko-Senjska Zupanija","Megimurska Zupanija","Osjecko-Baranjska Zupanija","Pozesko-Slavonska Zupanija","Primorsko-Goranska Zupanija","Sibensko-Kninska Zupanija","Sisacko-Moslavacka Zupanija","Splitsko-Dalmatinska Zupanija","Varazdinska Zupanija","Viroviticko-Podravska Zupanija","Vukovarsko-Srijemska Zupanija","Zadarska Zupanija","Zagreb County"],cu:["Artemisa","La Habana","Las Tunas","Municipio Especial Isla de la Juventud","Provincia de Camagueey","Provincia de Ciego de Avila","Provincia de Cienfuegos","Provincia de Guantanamo","Provincia de Holguin","Provincia de Matanzas","Provincia de Pinar del Rio","Provincia de Sancti Spiritus","Provincia de Santiago de Cuba","Provincia de Villa Clara","Provincia Granma","Provincia Mayabeque"],cy:["Eparchia Ammochosto","Eparchia Keryneias","Eparchia Larnakas","Eparchia Lefkosias","Eparchia Lemeso","Eparchia Pafo"],cz:["Hlavni mesto Praha","Jihocesky kraj","Jihomoravsky kraj","Karlovarsky kraj","Kraj Vysocina","Kralovehradecky kraj","Liberecky kraj","Moravskoslezsky kraj","Olomoucky kraj","Pardubicky kraj","Plzensky kraj","Stredocesky kraj","Ustecky kraj","Zlinsky kraj"],cd:["Bas Uele","Haut Uele","Haut-Lomani","Ituri","Kasai District","Kasai-Central","Kinshasa City","Kwango","Kwil","Lomami","Lualaba","Mai Ndombe","Mongala","Province de l'Equateur","Province du Haut-Katanga","Province du Kasai Oriental","Province du Kongo Central","Province du Maniema","Province du Nord-Kiv","Province du Nord-Ubangi","Province du Sud-Ubangi","Sankur","South Kivu Province","Tanganika","Tshopo","Tshuapa"],dk:["North Denmark Region","Region Hovedstaden","Region Midtjylland","Region Sjaelland","Region Syddanmark"],dj:["Ali Sabieh Region","Arta Region","Dikhil","Djibouti Region","Obock","Tadjourah"],dm:["Saint Andrew","Saint David","Saint George","Saint John","Saint Joseph","Saint Luke","Saint Mark","Saint Patrick","Saint Paul","Saint Peter"],do:["Distrito Nacional","Provincia de Azua","Provincia de Baoruco","Provincia de Barahona","Provincia de Dajabon","Provincia de El Seibo","Provincia de Elias Pina","Provincia de Hato Mayor","Provincia de Hermanas Mirabal","Provincia de Independencia","Provincia de La Altagracia","Provincia de La Romana","Provincia de La Vega","Provincia de Monsenor Nouel","Provincia de Monte Cristi","Provincia de Monte Plata","Provincia de Pedernales","Provincia de Peravia","Provincia de Puerto Plata","Provincia de San Cristobal","Provincia de San Jose de Ocoa","Provincia de San Juan","Provincia de San Pedro de Macoris","Provincia de Santiago","Provincia de Santiago Rodriguez","Provincia de Santo Domingo","Provincia de Valverde","Provincia Duarte","Provincia Espaillat","Provincia Maria Trinidad Sanchez","Provincia Sanchez Ramirez","Samana Province"],ec:["Provincia de Bolivar","Provincia de Cotopaxi","Provincia de El Oro","Provincia de Esmeraldas","Provincia de Francisco de Orellana","Provincia de Galapagos","Provincia de Imbabura","Provincia de Loja","Provincia de Los Rios","Provincia de Manabi","Provincia de Morona-Santiago","Provincia de Napo","Provincia de Pichincha","Provincia de Santa Elena","Provincia de Santo Domingo de los Tsachilas","Provincia de Sucumbios","Provincia de Zamora-Chinchipe","Provincia del Azuay","Provincia del Canar","Provincia del Carchi","Provincia del Chimborazo","Provincia del Guayas","Provincia del Pastaza","Provincia del Tungurahua"],eg:["As Suways","Beheira Governorate","Cairo Governorate","Damietta Governorate","Ismailia Governorate","Kafr ash Shaykh","Muhafazat ad Daqahliyah","Muhafazat al Fayyum","Muhafazat al Gharbiyah","Muhafazat al Iskandariyah","Muhafazat al Jizah","Muhafazat al Minufiyah","Muhafazat al Minya","Muhafazat al Qalyubiyah","Muhafazat al Uqsur","Muhafazat al Wadi al Jadid","Muhafazat ash Sharqiyah","Muhafazat Aswan","Muhafazat Asyut","Muhafazat Bani Suwayf","Muhafazat Bur Sa'id","Muhafazat Matruh","Muhafazat Qina","Muhafazat Shamal Sina'","Muhafazat Suhaj","Red Sea Governorate","South Sinai Governorate"],sv:["Departamento de Ahuachapan","Departamento de Cabanas","Departamento de Chalatenango","Departamento de Cuscatlan","Departamento de La Libertad","Departamento de La Paz","Departamento de La Union","Departamento de Morazan","Departamento de San Miguel","Departamento de San Salvador","Departamento de San Vicente","Departamento de Santa Ana","Departamento de Sonsonate","Departamento de Usulutan"],gq:["Provincia de Annobon","Provincia de Bioko Norte","Provincia de Bioko Sur","Provincia de Centro Sur","Provincia de Kie-Ntem","Provincia de Litoral","Provincia de Wele-Nzas"],er:["Anseba Region","Debub Region","Gash-Barka Region","Maekel Region","Northern Red Sea Region","Southern Red Sea Region"],ee:["Harjumaa","Hiiumaa","Ida-Virumaa","Jarvamaa","Jogevamaa","Laane-Virumaa","Laeaenemaa","Paernumaa","Polvamaa","Raplamaa","Saaremaa","Tartumaa","Valgamaa","Viljandimaa","Vorumaa"],et:["Adis Abeba Astedader","Afar Region","Amhara Region","Benishangul-Gumuz Region","Dire Dawa Region","Gambela Region","Harari Region","Oromiya Region","Somali Region","Southern Nations, Nationalities, and People's Region","Tigray Region"],fk:[],fo:["Eysturoyar sysla","Nordoyar sysla","Sandoyar Sysla","Streymoyar Sysla","Suduroyar sysla","Vaga Sysla"],fm:["Chuuk","Kosrae","Pohnpei","Yap"],fj:["Central Division","Eastern Division","Northern Division","Rotuma","Western Division"],fi:["Etela-Pohjanmaa","Etelae-Karjala","Kainu","Kanta-Haeme","Keski-Pohjanmaa","Keski-Suomi","Kymenlaakso","Lapland","Paijanne-Tavastland","Pirkanmaa","Pohjanmaa","Pohjois-Karjala","Pohjois-Pohjanmaa","Pohjois-Savo","Satakunta","Southern Savonia","Uusimaa","Varsinais-Suomi"],fr:["Auvergne-Rhone-Alpes","Bourgogne-Franche-Comte","Bretagne","Centre-Val de Loire","Corse","Grand-Est","Hauts-de-France","Ile-de-France","Normandy","Nouvelle-Aquitaine","Occitanie","Pays de la Loire","Provence-Alpes-Cote d'Azur"],gf:["Guyane"],pf:["Iles Australes","Iles du Vent","Iles Marquises","Iles Sous-le-Vent","Iles Tuamotu-Gambier"],tf:["Archipel des Crozet","Archipel des Kerguelen","Iles Eparses de l'ocean Indien","Iles Saint-Paul et Nouvelle-Amsterdam","La Terre-Adelie"],ga:["Estuaire","Province de l'Ogooue-Ivindo","Province de l'Ogooue-Lolo","Province de l'Ogooue-Maritime","Province de la Ngounie","Province de la Nyanga","Province du Haut-Ogooue","Province du Moyen-Ogooue","Province du Woleu-Ntem"],gm:["Banjul","Central River","Lower River Division","North Bank","Upper River","West Coast"],ge:["Abkhazia","Ajaria","Guria","Imereti","K'alak'i T'bilisi","Kakheti","Kvemo Kartli","Mtskheta-Mtianeti","Racha-Lechkhumi and Kvemo Svaneti","Samegrelo-Zemo Svanetis Mkhare","Samtskhe-Javakheti","Shida Kartli"],de:["Baden-Wuerttemberg Region","Bavaria","Brandenburg","Bremen","Free and Hanseatic City of Hamburg","Hessen","Land Berlin","Lower Saxony","Mecklenburg-Western Pomerania","Nordrhein-Westfalen","Rheinland-Pfalz","Saarland","Saxony","Saxony-Anhalt","Schleswig-Holstein","Thuringia"],gh:["Ashanti Region","Brong-Ahafo Region","Central Region","Eastern Region","Greater Accra Region","Northern Region","Upper East Region","Upper West Region","Volta Region","Western Region"],gi:[],gb:["England","Northern Ireland","Scotland","Wales"],gr:["Attica","Central Greece","Central Macedonia","Crete","Eastern Macedonia and Thrace","Epirus","Ionian Islands","Mount Athos","North Aegean","Peloponnese","South Aegean","Thessaly","Western Greece","Western Macedonia"],gl:["Kujalleq","Qaasuitsup","Qeqqata","Sermersooq"],gd:["Carriacou and Petite Martinique","Saint Andrew","Saint David","Saint George","Saint John","Saint Mark","Saint Patrick"],gp:["Guadeloupe"],gt:["Departamento de Alta Verapaz","Departamento de Baja Verapaz","Departamento de Chimaltenango","Departamento de Chiquimula","Departamento de El Progreso","Departamento de Escuintla","Departamento de Guatemala","Departamento de Huehuetenango","Departamento de Izabal","Departamento de Jalapa","Departamento de Jutiapa","Departamento de Quetzaltenango","Departamento de Retalhule","Departamento de Sacatepequez","Departamento de San Marcos","Departamento de Santa Rosa","Departamento de Solola","Departamento de Suchitepequez","Departamento de Totonicapan","Departamento de Zacapa","Departamento del Peten","Departamento del Quiche"],gn:["Boke Region","Conakry Region","Faranah Region","Kankan Region","Kindia Region","Labe Region","Mamou Region","Nzerekore Region"],gw:["Bafata","Biombo","Bissau Region","Bolama","Cacheu Region","Gab","Oio Region","Quinara","Tombali"],gy:["Barima-Waini Region","Cuyuni-Mazaruni Region","Demerara-Mahaica Region","East Berbice-Corentyne Region","Essequibo Islands-West Demerara Region","Mahaica-Berbice Region","Pomeroon-Supenaam Region","Potaro-Siparuni Region","Upper Demerara-Berbice Region","Upper Takutu-Upper Essequibo Region"],ht:["Centre","Departement de l'Artibonite","Departement de l'Ouest","Departement de Nippes","Departement du Nord-Est","Grandans","Nord","Nord-Ouest","Sud","Sud-Est"],hn:["Departamento de Atlantida","Departamento de Choluteca","Departamento de Colon","Departamento de Comayagua","Departamento de Copan","Departamento de Cortes","Departamento de El Paraiso","Departamento de Francisco Morazan","Departamento de Gracias a Dios","Departamento de Intibuca","Departamento de Islas de la Bahia","Departamento de La Paz","Departamento de Lempira","Departamento de Ocotepeque","Departamento de Olancho","Departamento de Santa Barbara","Departamento de Valle","Departamento de Yoro"],hk:["Central and Western District","Eastern","Islands District","Kowloon City","Kwai Tsing","Kwun Tong","North","Sai Kung District","Sha Tin","Sham Shui Po","Southern","Tai Po District","Tsuen Wan District","Tuen Mun","Wan Chai","Wong Tai Sin","Yau Tsim Mong","Yuen Long District"],hu:["Bacs-Kiskun county","Baranya county","Bekes County","Borsod-Abauj Zemplen county","Budapest","Csongrad megye","Fejer megye","Gyor-Moson-Sopron megye","Hajdu-Bihar","Heves megye","Jasz-Nagykun-Szolnok","Komarom-Esztergom","Nograd megye","Pest megye","Somogy megye","Szabolcs-Szatmar-Bereg","Tolna megye","Vas megye","Veszprem megye","Zala megye"],is:["Austurland","Hoefudborgarsvaedi","Nordurland Eystra","Nordurland Vestra","Sudurland","Sudurnes","Vestfirdir","Vesturland"],in:["Andaman and Nicobar Islands","Andhra Pradesh","Arunachal Pradesh","Assam","Bihar","Chandigarh","Chhattisgarh","Dadra and Nagar Haveli and Daman and Diu","Delhi","Gujarat","Goa","Haryana","Himachal Pradesh","Jammu and Kashmir","Jharkhand","Karnataka","Kerala","Ladhak","Lakshadweep","Madhya Pradesh","Maharashtra","Manipur","Meghalaya","Mizoram","Nagaland","Odisha","Puducherry","Punjab","Rajasthan","Sikkim","Tamil Nadu","Telangana","Tripura","Uttarakhand","Uttar Pradesh","West Bengal"],id:["Banten","Daerah Istimewa Yogyakarta","Daerah Khusus Ibukota Jakarta","Jawa Barat","Jawa Timur","Kepulauan Bangka Belitung","Nanggroe Aceh Darussalam Province","North Kalimantan","Propinsi Bengkul","Provinsi Bali","Provinsi Gorontalo","Provinsi Jambi","Provinsi Jawa Tengah","Provinsi Kalimantan Barat","Provinsi Kalimantan Selatan","Provinsi Kalimantan Tengah","Provinsi Kalimantan Timur","Provinsi Kepulauan Ria","Provinsi Lampung","Provinsi Maluk","Provinsi Maluku Utara","Provinsi Nusa Tenggara Timur","Provinsi Papua","Provinsi Papua Barat","Provinsi Ria","Provinsi Sulawesi Barat","Provinsi Sulawesi Selatan","Provinsi Sumatera Barat","Sulawesi Tengah","Sulawesi Tenggara","Sulawesi Utara","Sumatera Selatan","Sumatera Utara","West Nusa Tenggara"],ir:["Alborz","Bushehr","East Azerbaijan","Fars","Hormozgan","Isfahan","Kerman","Khuzestan","Ostan-e Ardabil","Ostan-e Azarbayjan-e Gharbi","Ostan-e Chahar Mahal va Bakhtiari","Ostan-e Gilan","Ostan-e Golestan","Ostan-e Hamadan","Ostan-e Ilam","Ostan-e Kermanshah","Ostan-e Khorasan-e Jonubi","Ostan-e Khorasan-e Razavi","Ostan-e Khorasan-e Shomali","Ostan-e Kohgiluyeh va Bowyer Ahmad","Ostan-e Kordestan","Ostan-e Lorestan","Ostan-e Markazi","Ostan-e Mazandaran","Ostan-e Qazvin","Ostan-e Semnan","Ostan-e Tehran","Ostan-e Zanjan","Qom","Sistan and Baluchestan","Yazd"],iq:["An Najaf","Dihok","Diyala","Muhafazat al Anbar","Muhafazat al Basrah","Muhafazat al Muthanna","Muhafazat al Qadisiyah","Muhafazat Arbil","Muhafazat as Sulaymaniyah","Muhafazat Babil","Muhafazat Baghdad","Muhafazat Dhi Qar","Muhafazat Karbala'","Muhafazat Kirkuk","Muhafazat Maysan","Muhafazat Ninawa","Muhafazat Salah ad Din","Muhafazat Wasit"],ie:["Connaught","Leinster","Munster","Ulster"],il:["Central District","Haifa","Jerusalem","Northern District","Southern District","Tel Aviv District"],it:["Abruzzo","Basilicata","Calabria","Campania","Emilia-Romagna","Friuli Venezia Giulia","Lazio","Liguria","Lombardia","Marche","Molise","Piemonte","Puglia","Regione Autonoma Valle d'Aosta","Sardegna","Sicilia","Toscana","Trentino-Alto Adige","Umbria","Veneto"],jm:["Clarendon","Kingston","Manchester","Parish of Hanover","Parish of Saint Ann","Portland","Saint Andrew","Saint Catherine","Saint Elizabeth","Saint James","Saint Mary","Saint Thomas","Trelawny","Westmoreland"],jp:["Aichi-ken","Akita","Aomori-ken","Chiba-ken","Ehime","Fukui","Fukuoka Prefecture","Fukushima-ken","Gif","Gunma-ken","Hiroshima-ken","Hokkaido","Hyogo","Ibaraki","Ishikawa-ken","Iwate","Kagawa-ken","Kagoshima-ken","Kanagawa","Kochi Prefecture","Kumamoto","Kyoto Prefecture","Mie-ken","Miyagi-ken","Miyazaki","Nagano-ken","Nagasaki Prefecture","Nara-ken","Niigata-ken","Oita Prefecture","Okayama-ken","Okinawa","Osaka-f","Saga-ken","Saitama-ken","Shiga","Shimane-ken","Shizuoka","Tochigi","Tokushima-ken","Tokyo Prefecture","Tottori","Toyama-ken","Wakayama","Yamagata-ken","Yamaguchi","Yamanashi"],jo:["Ajloun","Al Karak","Al Mafraq","Amman Governorate","Irbid","Jerash","Muhafazat al 'Aqabah","Muhafazat al Balqa'","Muhafazat at Tafilah","Muhafazat az Zarqa'","Muhafazat Ma'an","Muhafazat Madaba"],kz:["Aktyubinskaya Oblast'","Almaty Oblysy","Almaty Qalasy","Aqmola Oblysy","Astana Qalasy","Atyrau Oblysy","Baikonur","East Kazakhstan","Mangistauskaya Oblast'","North Kazakhstan","Pavlodar Oblysy","Qaraghandy Oblysy","Qostanay Oblysy","Qyzylorda Oblysy","South Kazakhstan","West Kazakhstan","Zhambyl Oblysy"],ke:["Baringo District","Bomet District","Bungoma District","Busia District","Embu District","Garissa District","Homa Bay District","Isiolo District","Kajiado District","Kakamega District","Kericho District","Kiambu District","Kilifi District","Kirinyaga District","Kisii District","Kisum","Kitui District","Kwale District","Laikipia District","Lam","Machakos District","Makueni District","Mandera District","Marakwet District","Marsabit District","Mer","Migori District","Mombasa District","Murang'a District","Nairobi Province","Nakuru District","Nandi South District","Narok District","Nyamira District","Nyandarua District","Nyeri District","Samburu District","Siaya District","Taita Taveta District","Tana River District","Tharaka District","Trans Nzoia District","Turkana District","Uasin Gish","Vihiga District","Wajir District","West Pokot District"],ki:["Gilbert Islands","Line Islands","Phoenix Islands"],kp:["Chagang-do","Hambuk","Hamnam","Hwanghae-bukto","Hwanghae-namdo","Kangwon-do","P'yongan-bukto","P'yongan-namdo","Pyongyang","Rason","Ryanggang"],kr:["Busan","Chungcheongbuk-do","Chungcheongnam-do","Daeg","Daejeon","Gangwon-do","Gwangj","Gyeonggi-do","Gyeongsangbuk-do","Gyeongsangnam-do","Incheon","Jeju-do","Jeollabuk-do","Jeollanam-do","Sejong-si","Seoul","Ulsan"],kw:["Al Asimah Governorate","Muhafazat al Ahmadi","Muhafazat al Farwaniyah","Muhafazat al Jahra'","Muhafazat Hawalli","Muhafazat Mubarak al Kabir"],kg:["Batken","Chuyskaya Oblast'","Gorod Bishkek","Issyk-Kul Region","Jalal-Abad oblast","Naryn oblast","Osh City","Osh Oblasty","Talas"],la:["Attap","Bolikhamxai","Champasak","Houaphan","Khammouan","Khoueng Bokeo","Khoueng Oudomxai","Khoueng Phongsali","Khoueng Savannakhet","Khoueng Xekong","Louangnamtha","Luang Prabang Province","Salavan","Vientiane Prefecture","Vientiane Province","Xaignabouli","Xaisomboun Province","Xiangkhouang"],lv:["Adazu Novads","Aglonas Novads","Aizkraukles Rajons","Aizputes Novads","Aknistes Novads","Alojas Novads","Alsungas Novads","Aluksnes Novads","Amatas Novads","Apes Novads","Auces Novads","Babites Novads","Baldones Novads","Baltinavas Novads","Balvu Novads","Bauskas Novads","Beverinas Novads","Brocenu Novads","Burtnieku Novads","Carnikavas Novads","Cesu Novads","Cesvaines Novads","Ciblas Novads","Dagdas Novads","Daugavpils","Daugavpils municipality","Dobeles Rajons","Dundagas Novads","Durbes Novads","Engures Novads","Erglu Novads","Garkalne Municipality","Grobinas Novads","Gulbenes Rajons","Iecavas Novads","Ikskiles Novads","Ilukstes Novads","Incukalna Novads","Jaunjelgavas Novads","Jaunpiebalgas Novads","Jaunpils Novads","Jekabpils","Jekabpils Municipality","Jelgava","Jelgavas Rajons","Jurmala","Kandavas Novads","Karsavas Novads","Keguma Novads","Kekavas Novads","Kocenu Novads","Kokneses Novads","Kraslavas Rajons","Krimuldas Novads","Krustpils Novads","Kuldigas Rajons","Lielvardes Novads","Liepaja","Ligatnes Novads","Limbazu Rajons","Livanu Novads","Lubanas Novads","Ludzas Rajons","Madona Municipality","Malpils Novads","Marupes Novads","Mazsalacas Novads","Mersraga Novads","Nauksenu Novads","Neretas Novads","Nicas Novads","Ogres novads","Olaines Novads","Ozolnieku Novads","Pargaujas Novads","Pavilostas Novads","Plavinu Novads","Preili Municipality","Priekules Novads","Priekuli Municipality","Raunas Novads","Rezekne","Rezeknes Novads","Riebinu Novads","Riga","Rojas Novads","Ropazu Novads","Rucavas Novads","Rugaju Novads","Rujienas Novads","Rundales Novads","Salacgrivas Novads","Salas Novads","Salaspils Novads","Saldus Municipality","Saulkrastu Novads","Sejas Novads","Siguldas Novads","Skriveru Novads","Skrundas Novads","Smiltenes Novads","Stopinu Novads","Strencu Novads","Talsi Municipality","Tervetes Novads","Tukuma Rajons","Vainodes Novads","Valka Municipality","Valmiera District","Varaklanu Novads","Varkavas Novads","Vecpiebalgas Novads","Vecumnieku Novads","Ventspils","Ventspils Municipality","Viesites Novads","Vilakas Novads","Vilanu Novads","Zilupes Novads"],lb:["Beyrouth","Mohafazat Aakkar","Mohafazat Baalbek-Hermel","Mohafazat Beqaa","Mohafazat Liban-Nord","Mohafazat Liban-Sud","Mohafazat Mont-Liban","Mohafazat Nabatiye"],ls:["Berea","Butha-Buthe","Leribe District","Mafeteng District","Maser","Mohale's Hoek District","Mokhotlong","Qacha's Nek","Quthing","Thaba-Tseka"],lr:["Bomi County","Bong County","Gbarpolu County","Grand Bassa County","Grand Cape Mount County","Grand Gedeh County","Grand Kru County","Lofa County","Margibi County","Maryland County","Montserrado County","Nimba County","River Cess County","River Gee County","Sinoe County"],ly:["Al Jufrah","Al Kufrah","Al Marj","Al Marqab","Darnah","Jabal al Gharbi District","Murzuq","Sha`biyat Nalut","Sha'biyat al Butnan","Sha'biyat al Jabal al Akhdar","Sha'biyat al Jafarah","Sha'biyat al Wahat","Sha'biyat an Nuqat al Khams","Sha'biyat az Zawiyah","Sha'biyat Banghazi","Sha'biyat Ghat","Sha'biyat Misratah","Sha'biyat Sabha","Sha'biyat Wadi al Hayat","Sha'biyat Wadi ash Shati'","Surt","Tripoli"],li:["Balzers","Eschen","Gamprin","Mauren","Planken","Ruggell","Schaan","Schellenberg","Triesen","Triesenberg","Vaduz"],lt:["Alytus County","Kaunas County","Klaipeda County","Marijampole County","Panevezys","Siauliai County","Taurage County","Telsiu apskritis","Utena County","Vilniaus apskritis"],lu:["Canton d'Echternach","Canton d'Esch-sur-Alzette","Capellen","Clervaux","Diekirch","Grevenmacher","Luxembourg","Mersch","Redange","Remich","Vianden","Wiltz"],mo:[],mk:["Aerodrom","Berovo","Bitola","Bogdanci","Bogovinje","Bosilovo","Brvenica","Butel","Cair","Cesinovo-Oblesevo","Debar","Debarca","Demir Hisar","Demir Kapija","Dolneni","Drugovo","Gazi Baba","Gevgelija","Gostivar","Grad Skopje","Gradsko","Ilinden","Jegunovce","Karbinci","Kavadarci","Kisela Voda","Kratovo","Kriva Palanka","Kumanovo","Lozovo","Makedonska Kamenica","Makedonski Brod","Mogila","Negotino","Novaci","Novo Selo","Ohrid","Opstina Aracinovo","Opstina Caska","Opstina Centar","Opstina Centar Zupa","Opstina Cucer-Sandevo","Opstina Delcevo","Opstina Dojran","Opstina Gjorce Petrov","Opstina Karpos","Opstina Kicevo","Opstina Kocani","Opstina Konce","Opstina Krivogastani","Opstina Krusevo","Opstina Lipkovo","Opstina Mavrovo i Rostusa","Opstina Pehcevo","Opstina Probistip","Opstina Radovis","Opstina Rankovce","Opstina Sopiste","Opstina Staro Nagoricane","Opstina Stip","Opstina Studenicani","Opstina Vevcani","Opstina Vranestica","Opstina Vrapciste","Opstina Zelino","Oslomej","Petrovec","Plasnica","Prilep","Resen","Rosoman","Saraj","Struga","Strumica","Suto Orizari","Sveti Nikole","Tearce","Tetovo","Valandovo","Vasilevo","Veles","Vinica","Zajas","Zelenikovo","Zrnovci"],mg:["Alaotra Mangoro Region","Amoron'i Mania Region","Analamanga Region","Analanjirofo Region","Androy Region","Anosy Region","Atsimo-Andrefana Region","Atsimo-Atsinanana Region","Atsinanana Region","Betsiboka Region","Boeny Region","Bongolava Region","Diana Region","Haute Matsiatra Region","Ihorombe Region","Itasy Region","Melaky Region","Menabe Region","Sava Region","Sofia Region","Vakinankaratra Region","Vatovavy Fitovinany Region"],mw:["Central Region","Northern Region","Southern Region"],my:["Johor","Kedah","Kelantan","Kuala Lumpur","Labuan","Melaka","Negeri Sembilan","Pahang","Perak","Perlis","Pulau Pinang","Putrajaya","Sabah","Sarawak","Selangor","Terenggan"],mv:["Alifu Atholh","Baa Atholh","Dhaalu Atholh","Faafu Atholh","Gaafu Alifu Atholh","Gaafu Dhaalu Atholh","Gnaviyani Atholh","Haa Alifu Atholh","Haa Dhaalu Atholh","Kaafu Atoll","Laamu Atholh","Lhaviyani Atholh","Meemu Atholh","Noonu Atoll","Raa Atholh","Seenu Atholh","Shaviyani Atholh","Southern Ari Atoll","Thaa Atholh","Vaavu Atholh"],ml:["Bamako Region","Gao Region","Kayes Region","Kidal Region","Koulikoro Region","Mopti Region","Segou Region","Sikasso Region","Tombouctou Region"],mt:["Attard","Balzan","Birkirkara","Birzebbuga","Bormla","Dingli","Ghajnsielem","Hal Gharghur","Hal Ghaxaq","Haz-Zabbar","Haz-Zebbug","Il-Belt Valletta","Il-Birg","Il-Fgura","Il-Fontana","Il-Furjana","Il-Gudja","Il-Gzira","Il-Hamrun","Il-Kalkara","Il-Marsa","Il-Mellieha","Il-Mosta","Il-Munxar","Il-Qala","Il-Qrendi","In-Nadur","In-Naxxar","Ir-Rabat","Is-Siggiewi","Is-Swieqi","Ix-Xaghra","Ix-Xewkija","Ix-Xghajra","Iz-Zebbug","Iz-Zejtun","Iz-Zurrieq","Kirkop","L-Gharb","L-Ghasri","L-Iklin","L-Imdina","L-Imgarr","L-Imqabba","L-Imsida","L-Imtarfa","L-Isla","Lija","Luqa","Marsaskala","Marsaxlokk","Paola","Pembroke","Qormi","Safi","Saint John","Saint Julian's","Saint Lawrence","Saint Lucia","Saint Paul's Bay","Saint Venera","Sannat","Ta' Kercem","Ta' Xbiex","Tal-Pieta","Tarxien","Tas-Sliema","Victoria"],mh:["Ailinginae Atoll","Ailinglaplap Atoll","Ailuk Atoll","Arno Atoll","Aur Atoll","Bikar Atoll","Bikini Atoll","Bokak Atoll","Ebon Atoll","Enewetak Atoll","Erikub Atoll","Jabat Island","Jaluit Atoll","Jemo Island","Kili Island","Kwajalein Atoll","Lae Atoll","Lib Island","Likiep Atoll","Majuro Atoll","Maloelap Atoll","Mejit Island","Mili Atoll","Namdrik Atoll","Namu Atoll","Rongelap Atoll","Rongrik Atoll","Taka Atoll","Ujae Atoll","Ujelang Atoll","Utrik Atoll","Wotho Atoll","Wotje Atoll"],mq:["Martinique"],mr:["Adrar","Assaba","Brakna","Dakhlet Nouadhibo","Gorgol","Guidimaka","Hodh ech Chargui","Hodh El Gharbi","Inchiri","Nouakchott Nord","Nouakchott Ouest","Nouakchott Sud","Tagant","Tiris Zemmour","Wilaya du Trarza"],mu:["Agalega Islands","Black River District","Cargados Carajos","Flacq District","Grand Port District","Moka District","Pamplemousses District","Plaines Wilhems District","Port Louis District","Riviere du Rempart District","Rodrigues","Savanne District"],yt:["Acoua","Bandraboua","Bandrele","Boueni","Chiconi","Chirongui","Dembeni","Dzaoudzi","Kani-Keli","Koungo","M'Tsangamouji","Mamoudzo","Mtsamboro","Ouangani","Pamandzi","Sada","Tsingoni"],mx:["Ciudad de Mexico","Estado de Aguascalientes","Estado de Baja California","Estado de Baja California Sur","Estado de Campeche","Estado de Chiapas","Estado de Chihuahua","Estado de Coahuila de Zaragoza","Estado de Colima","Estado de Durango","Estado de Guanajuato","Estado de Guerrero","Estado de Hidalgo","Estado de Jalisco","Estado de Mexico","Estado de Michoacan de Ocampo","Estado de Morelos","Estado de Nayarit","Estado de Nuevo Leon","Estado de Oaxaca","Estado de Puebla","Estado de Queretaro","Estado de Quintana Roo","Estado de San Luis Potosi","Estado de Sinaloa","Estado de Sonora","Estado de Tabasco","Estado de Tamaulipas","Estado de Tlaxcala","Estado de Veracruz-Llave","Estado de Yucatan","Estado de Zacatecas"],md:["Anenii Noi","Basarabeasca","Briceni","Cantemir","Cimislia","Criuleni","Donduseni","Falesti","Floresti","Gagauzia","Glodeni","Hincesti","Ialoveni","Leova","Municipiul Balti","Municipiul Bender","Municipiul Chisina","Nisporeni","Orhei","Raionul Cahul","Raionul Calarasi","Raionul Causeni","Raionul Drochia","Raionul Dubasari","Raionul Edinet","Raionul Ocnita","Raionul Soroca","Raionul Stefan Voda","Raionul Straseni","Raionul Ungheni","Rezina","Riscani","Singerei","Soldanesti","Taraclia","Telenesti","Unitatea Teritoriala din Stinga Nistrului"],mc:["Commune de Monaco"],mn:["Arhangay Aymag","Bayan-OElgiy Aymag","Bayanhongor Aymag","Bulgan","Darhan-Uul Aymag","Dornod Aymag","Dornogovi Aymag","Dundgovi Aymag","Dzavhan Aymag","Govi-Altay Aymag","Govi-Sumber","Hentiy Aymag","Hovd","Hovsgol Aymag","OEmnoegovi Province","OEvoerhangay Aymag","Orhon Aymag","Selenge Aymag","Suhbaatar Aymag","Tov Aymag","Ulaanbaatar Hot","Uvs Aymag"],ms:["Parish of Saint Anthony","Parish of Saint Georges","Parish of Saint Peter"],ma:["Beni Mellal-Khenifra","Casablanca-Settat","Dakhla-Oued Ed-Dahab","Draa-Tafilalet","Fes-Meknes","Guelmim-Oued Noun","Laayoune-Sakia El Hamra","Marrakesh-Safi","Oriental","Rabat-Sale-Kenitra","Souss-Massa","Tanger-Tetouan-Al Hoceima"],mz:["Cabo Delgado Province","Cidade de Maputo","Gaza Province","Inhambane Province","Manica Province","Maputo Province","Nampula","Niassa Province","Provincia de Zambezia","Sofala Province","Tete"],mm:["Ayeyawady Region","Bago Region","Chin State","Kachin State","Kayah State","Kayin State","Magway Region","Mandalay Region","Mon State","Nay Pyi Taw","Rakhine State","Sagaing Region","Shan State","Taninthayi Region","Yangon Region"],na:["Erongo","Hardap","Karas","Kavango East Region","Kavango West Region","Khomas","Kunene","Ohangwena","Omaheke","Omusati","Oshana","Oshikoto","Otjozondjupa","Zambezi Region"],nr:["Aiwo District","Anabar District","Anetan District","Anibare District","Baiti District","Boe District","Buada District","Denigomodu District","Ewa District","Ijuw District","Meneng District","Nibok District","Uaboe District","Yaren"],np:["Madhya Pashchimanchal","Madhyamanchal","Pashchimanchal","Patheka","Purwanchal","Sudur Pashchimanchal"],nl:["Provincie Drenthe","Provincie Flevoland","Provincie Friesland","Provincie Gelderland","Provincie Groningen","Provincie Limburg","Provincie Noord-Brabant","Provincie Noord-Holland","Provincie Overijssel","Provincie Utrecht","Provincie Zeeland","Provincie Zuid-Holland"],an:[],nc:["Province des iles Loyaute","Province Nord","Province Sud"],nz:["Auckland","Bay of Plenty","Canterbury","Chatham Islands","Gisborne","Hawke's Bay","Manawatu-Wanganui","Marlborough","Nelson","Northland","Otago","Southland","Taranaki","Tasman","Waikato","Wellington","West Coast"],ni:["Costa Caribe Sur","Departamento de Boaco","Departamento de Carazo","Departamento de Chinandega","Departamento de Chontales","Departamento de Esteli","Departamento de Granada","Departamento de Jinotega","Departamento de Leon","Departamento de Madriz","Departamento de Managua","Departamento de Masaya","Departamento de Matagalpa","Departamento de Nueva Segovia","Departamento de Rio San Juan","Departamento de Rivas","North Atlantic Autonomous Region (RAAN)"],ne:["Agadez","Diffa","Dosso Region","Maradi","Niamey","Tahoua","Tillaberi Region","Zinder"],ng:["Abia State","Adamawa State","Akwa Ibom State","Anambra State","Bauchi State","Bayelsa State","Benue State","Borno State","Cross River State","Delta State","Ebonyi State","Edo","Ekiti State","Enugu State","Federal Capital Territory","Gombe State","Imo State","Jigawa State","Kaduna State","Kano State","Katsina State","Kebbi State","Kogi State","Kwara State","Lagos State","Nasarawa State","Niger State","Ogun State","Ondo State","Osun State","Oyo State","Plateau State","Rivers State","Sokoto State","Taraba State","Yobe State","Zamfara State"],nu:[],nf:[],mp:["Northern Islands Municipality","Rota Municipality","Saipan Municipality","Tinian Municipality"],no:["Akershus fylke","Aust-Agder fylke","Buskerud fylke","Finnmark Fylke","Hedmark fylke","Hordaland Fylke","More og Romsdal fylke","Nord-Trondelag Fylke","Nordland Fylke","Oppland fylke","Oslo County","Ostfold fylke","Rogaland Fylke","Sogn og Fjordane Fylke","Sor-Trondelag Fylke","Telemark fylke","Troms Fylke","Vest-Agder Fylke","Vestfold fylke"],gg:["Alderney","Castel","Forest","Saint Andrew","Saint Martin","Saint Peter Port","Saint Pierre du Bois","Saint Sampson","Saint Saviour","Torteval","Vale"],om:["Al Batinah North Governorate","Al Batinah South Governorate","Ash Sharqiyah South","Az Zahirah","Muhafazat ad Dakhiliyah","Muhafazat al Buraymi","Muhafazat al Wusta","Muhafazat Masqat","Muhafazat Shamal ash Sharqiyah","Muhafazat Zufar","Musandam"],pk:["Azad Kashmir","Balochistan","Federally Administered Tribal Areas","Gilgit-Baltistan","Islamabad","Khyber Pakhtunkhwa Province","Punjab Province","Sindh"],pw:["Aimeliik","Airai","Angaur","Hatohobei","Kayangel","Koror","Melekeok","Ngaraard","Ngarchelong","Ngardma","Ngatpang","Ngchesar","Ngeremlengui","Ngiwal","Peleli","Sonsorol"],ps:["Gaza Strip","West Bank"],pa:["Embera-Wounaan","Guna Yala","Ngoebe-Bugle","Panama Oeste","Provincia de Bocas del Toro","Provincia de Chiriqui","Provincia de Cocle","Provincia de Colon","Provincia de Herrera","Provincia de Los Santos","Provincia de Panama","Provincia de Veraguas","Provincia del Darien"],pg:["Bougainville","Central Province","Chimbu Province","East New Britain Province","East Sepik Province","Eastern Highlands Province","Enga Province","Gulf Province","Hela","Jiwaka","Madang Province","Manus Province","Milne Bay Province","Morobe Province","National Capital District","New Ireland Province","Northern Province","Southern Highlands Province","West New Britain Province","West Sepik Province","Western Highlands Province","Western Province"],py:["Asuncion","Departamento Central","Departamento de Alto Paraguay","Departamento de Boqueron","Departamento de Caaguaz","Departamento de Caazapa","Departamento de Canindey","Departamento de Concepcion","Departamento de Itapua","Departamento de la Cordillera","Departamento de Misiones","Departamento de Neembuc","Departamento de Paraguari","Departamento de Presidente Hayes","Departamento de San Pedro","Departamento del Alto Parana","Departamento del Amambay","Departamento del Guaira"],pe:["Amazonas","Ancash","Apurimac","Arequipa","Ayacucho","Cajamarca","Callao","Cusco","Departamento de Moquegua","Huancavelica","Ica","Junin","La Libertad","Lambayeque","Lima","Loreto","Madre de Dios","Pasco","Piura","Provincia de Lima","Puno","Region de Huanuco","Region de San Martin","Tacna","Tumbes","Ucayali"],ph:["Autonomous Region in Muslim Mindanao","Bicol","Cagayan Valley","Calabarzon","Caraga","Central Luzon","Central Visayas","Cordillera Administrative Region","Davao","Eastern Visayas","Ilocos","Mimaropa","National Capital Region","Negros Island Region","Northern Mindanao","Soccsksargen","Western Visayas","Zamboanga Peninsula"],pn:[],pl:["Wojewodztwo Dolnoslaskie","Wojewodztwo Kujawsko-Pomorskie","Wojewodztwo Lodzkie","Wojewodztwo Lubelskie","Wojewodztwo Lubuskie","Wojewodztwo Malopolskie","Wojewodztwo Mazowieckie","Wojewodztwo Opolskie","Wojewodztwo Podkarpackie","Wojewodztwo Podlaskie","Wojewodztwo Pomorskie","Wojewodztwo Slaskie","Wojewodztwo Swietokrzyskie","Wojewodztwo Warminsko-Mazurskie","Wojewodztwo Wielkopolskie","Wojewodztwo Zachodniopomorskie"],pt:["Azores","Distrito da Guarda","Distrito de Aveiro","Distrito de Beja","Distrito de Braga","Distrito de Braganca","Distrito de Castelo Branco","Distrito de Coimbra","Distrito de Evora","Distrito de Faro","Distrito de Leiria","Distrito de Lisboa","Distrito de Portalegre","Distrito de Santarem","Distrito de Setubal","Distrito de Viana do Castelo","Distrito de Vila Real","Distrito de Vise","Distrito do Porto","Madeira"],qa:["Al Wakrah","Baladiyat ad Dawhah","Baladiyat al Khawr wa adh Dhakhirah","Baladiyat ar Rayyan","Baladiyat ash Shamal","Baladiyat az Za'ayin","Baladiyat Umm Salal"],re:["Reunion"],ro:["Arad","Bihor","Bucuresti","Constanta","Covasna","Dolj","Giurgi","Gorj","Harghita","Hunedoara","Ilfov","Judetul Alba","Judetul Arges","Judetul Baca","Judetul Bistrita-Nasaud","Judetul Botosani","Judetul Braila","Judetul Brasov","Judetul Buza","Judetul Calarasi","Judetul Caras-Severin","Judetul Cluj","Judetul Dambovita","Judetul Galati","Judetul Ialomita","Judetul Iasi","Judetul Maramures","Judetul Mehedinti","Judetul Mures","Judetul Neamt","Judetul Salaj","Judetul Sibi","Judetul Timis","Judetul Valcea","Olt","Prahova","Satu Mare","Suceava","Teleorman","Tulcea","Vaslui","Vrancea"],ru:["Altayskiy Kray","Amurskaya Oblast'","Arkhangel'skaya Oblast'","Astrakhanskaya Oblast'","Bashkortostan","Belgorodskaya Oblast'","Bryanskaya Oblast'","Chechenskaya Respublika","Chelyabinskaya Oblast'","Chukotskiy Avtonomnyy Okrug","Chuvashskaya Respublika","Dagestan","Irkutskaya Oblast'","Ivanovskaya Oblast'","Kabardino-Balkarskaya Respublika","Kaliningradskaya Oblast'","Kalmykiya","Kaluzhskaya Oblast'","Kamtchatski Kray","Karachayevo-Cherkesiya","Kemerovskaya Oblast'","Khabarovskiy Kray","Khanty-Mansiyskiy Avtonomnyy Okrug-Yugra","Kirovskaya Oblast'","Komi","Kostromskaya Oblast'","Krasnodarskiy Kray","Krasnoyarskiy Kray","Kurganskaya Oblast'","Kurskaya Oblast'","Leningradskaya Oblast'","Lipetskaya Oblast'","Magadanskaya Oblast'","Moscow Oblast","Moskva","Murmanskaya Oblast'","Nenetskiy Avtonomnyy Okrug","Nizhegorodskaya Oblast'","North Ossetia","Novgorodskaya Oblast'","Novosibirskaya Oblast'","Omskaya Oblast'","Orenburgskaya Oblast'","Orlovskaya Oblast'","Penzenskaya Oblast'","Perm Krai","Primorskiy Kray","Pskovskaya Oblast'","Respublika Adygeya","Respublika Altay","Respublika Buryatiya","Respublika Ingushetiya","Respublika Kareliya","Respublika Khakasiya","Respublika Mariy-El","Respublika Mordoviya","Respublika Sakha (Yakutiya)","Respublika Tyva","Rostovskaya Oblast'","Ryazanskaya Oblast'","Sakhalinskaya Oblast'","Samarskaya Oblast'","Sankt-Peterburg","Saratovskaya Oblast'","Smolenskaya Oblast'","Stavropol'skiy Kray","Sverdlovskaya Oblast'","Tambovskaya Oblast'","Tatarstan","Tomskaya Oblast'","Tul'skaya Oblast'","Tverskaya Oblast'","Tyumenskaya Oblast'","Udmurtskaya Respublika","Ulyanovsk Oblast","Vladimirskaya Oblast'","Volgogradskaya Oblast'","Vologodskaya Oblast'","Voronezhskaya Oblast'","Yamalo-Nenetskiy Avtonomnyy Okrug","Yaroslavskaya Oblast'","Yevreyskaya Avtonomnaya Oblast'","Zabaykal'skiy Kray"],rw:["Eastern Province","Kigali Province","Northern Province","Southern Province","Western Province"],gs:[],sh:["Ascension","Saint Helena","Tristan da Cunha"],kn:["Christ Church Nichola Town","Saint Anne Sandy Point","Saint George Basseterre","Saint George Gingerland","Saint James Windward","Saint John Capesterre","Saint John Figtree","Saint Mary Cayon","Saint Paul Capesterre","Saint Paul Charlestown","Saint Peter Basseterre","Saint Thomas Lowland","Saint Thomas Middle Island","Trinity Palmetto Point"],lc:["Anse-la-Raye","Canaries","Castries","Choiseul","Dennery","Gros-Islet","Laborie","Micoud","Soufriere","Vieux-Fort"],pm:["Commune de Saint-Pierre","Miquelon-Langlade"],vc:["Grenadines","Parish of Charlotte","Parish of Saint Andrew","Parish of Saint David","Parish of Saint George","Parish of Saint Patrick"],ws:["A'ana","Aiga-i-le-Tai","Atua","Fa'asaleleaga","Gaga'emauga","Gagaifomauga","Palauli","Satupa'itea","Tuamasaga","Va'a-o-Fonoti","Vaisigano"],sm:["Castello di Acquaviva","Castello di Borgo Maggiore","Castello di Domagnano","Castello di Faetano","Castello di Fiorentino","Castello di Montegiardino","Castello di San Marino Citta","Chiesanuova","Serravalle"],st:["Principe","Sao Tome"],sa:["Al Jawf","Al Madinah al Munawwarah","Al Mintaqah ash Sharqiyah","Al-Qassim Province","Hai'l Region","Jizan Region","Makkah Province","Mintaqat 'Asir","Mintaqat al Bahah","Mintaqat al Hudud ash Shamaliyah","Mintaqat ar Riyad","Mintaqat Najran","Mintaqat Tabuk"],sn:["Dakar","Diourbel","Fatick","Kaolack","Kolda","Louga","Matam","Region de Kaffrine","Region de Kedougo","Region de Sedhio","Region de Thies","Saint-Louis","Tambacounda","Ziguinchor"],sc:["Anse aux Pins","Anse Boilea","Anse Etoile","Anse Royale","Au Cap","Baie Lazare","Baie Sainte Anne","Beau Vallon","Bel Air","Bel Ombre","Cascade","English River","Glacis","Grand Anse Mahe","Grand Anse Praslin","Inner Islands","Les Mamelles","Mont Buxton","Mont Fleuri","Plaisance","Pointe Larue","Port Glaud","Roche Caiman","Saint Louis","Takamaka"],sl:["Eastern Province","Northern Province","Southern Province","Western Area"],sg:["Central Singapore Community Development Council","North East Community Development Region","North West Community Development Council","South East Community Development Council","South West Community Development Council"],sk:["Banska Bystrica","Bratislava","Kosice","Nitra","Presov","Trencin","Trnava","Zilina"],si:["Ankaran","Beltinci","Benedikt","Bistrica ob Sotli","Bloke","Bohinj","Borovnica","Brda","Brezovica","Cankova","Celje","Cerklje na Gorenjskem","Cerknica","Cerkno","Cerkvenjak","Cirkulane","Destrnik","Dobje","Dobrepolje","Dobrna","Dobrova-Polhov Gradec","Dobrovnik","Dol pri Ljubljani","Dolenjske Toplice","Dornava","Dravograd","Duplek","Gorenja Vas-Poljane","Gorje","Gornja Radgona","Gornji Grad","Gornji Petrovci","Grad","Grosuplje","Hajdina","Hodos","Horjul","Hrastnik","Hrpelje-Kozina","Idrija","Ig","Ilirska Bistrica","Izola","Jesenice","Jezersko","Kamnik","Kanal","Kobilje","Komen","Komenda","Koper","Kostanjevica na Krki","Kostel","Kozje","Kranj","Kranjska Gora","Kungota","Kuzma","Lenart","Lendava","Litija","Ljubno","Ljutomer","Log-Dragomer","Logatec","Lovrenc na Pohorj","Lukovica","Makole","Maribor","Markovci","Medvode","Mestna Obcina Ljubljana","Mestna Obcina Novo mesto","Metlika","Miren-Kostanjevica","Mirna","Mislinja","Mokronog-Trebelno","Moravske Toplice","Mozirje","Murska Sobota","Muta","Naklo","Nazarje","Nova Gorica","Obcina Ajdovscina","Obcina Apace","Obcina Bled","Obcina Bovec","Obcina Braslovce","Obcina Brezice","Obcina Crensovci","Obcina Crna na Koroskem","Obcina Crnomelj","Obcina Divaca","Obcina Domzale","Obcina Gorisnica","Obcina Hoce-Slivnica","Obcina Ivancna Gorica","Obcina Jursinci","Obcina Kidricevo","Obcina Kobarid","Obcina Kocevje","Obcina Krizevci","Obcina Krsko","Obcina Lasko","Obcina Loska Dolina","Obcina Loski Potok","Obcina Luce","Obcina Majsperk","Obcina Menges","Obcina Mezica","Obcina Miklavz na Dravskem Polj","Obcina Mirna Pec","Obcina Moravce","Obcina Ormoz","Obcina Podcetrtek","Obcina Poljcane","Obcina Race-Fram","Obcina Radece","Obcina Ravne na Koroskem","Obcina Razkrizje","Obcina Recica ob Savinji","Obcina Rence-Vogrsko","Obcina Rogaska Slatina","Obcina Rogasovci","Obcina Ruse","Obcina Salovci","Obcina Semic","Obcina Sempeter-Vrtojba","Obcina Sencur","Obcina Sentilj","Obcina Sentjernej","Obcina Sentjur","Obcina Sentrupert","Obcina Sezana","Obcina Skocjan","Obcina Skofja Loka","Obcina Skofljica","Obcina Smarje pri Jelsah","Obcina Smarjeske Toplice","Obcina Smartno ob Paki","Obcina Smartno pri Litiji","Obcina Sodrazica","Obcina Solcava","Obcina Sostanj","Obcina Sredisce ob Dravi","Obcina Starse","Obcina Store","Obcina Straza","Obcina Sveti Andraz v Slovenskih Goricah","Obcina Sveti Jurij ob Scavnici","Obcina Sveti Tomaz","Obcina Tisina","Obcina Tolmin","Obcina Trnovska vas","Obcina Trzic","Obcina Turnisce","Obcina Velike Lasce","Obcina Verzej","Obcina Zalec","Obcina Zavrc","Obcina Zelezniki","Obcina Zetale","Obcina Ziri","Obcina Zirovnica","Obcina Zrece","Obcina Zuzemberk","Odranci","Oplotnica","Osilnica","Pesnica","Piran","Pivka","Podlehnik","Podvelka","Polzela","Postojna","Prebold","Preddvor","Prevalje","Ptuj","Puconci","Radenci","Radlje ob Dravi","Radovljica","Ribnica","Ribnica na Pohorj","Rogatec","Selnica ob Dravi","Sevnica","Slovenj Gradec","Slovenska Bistrica","Slovenske Konjice","Sveta Ana","Sveta Trojica v Slovenskih Goricah","Sveti Jurij v Slovenskih Goricah","Tabor","Trbovlje","Trebnje","Trzin","Velenje","Velika Polana","Videm","Vipava","Vitanje","Vodice","Vojnik","Vransko","Vrhnika","Vuzenica","Zagorje ob Savi"],sb:["Central Province","Choiseul","Guadalcanal Province","Honiara","Isabel Province","Makira-Ulawa Province","Malaita Province","Rennell and Bellona","Temotu Province","Western Province"],so:["Gobolka Awdal","Gobolka Bakool","Gobolka Banaadir","Gobolka Bari","Gobolka Bay","Gobolka Galguduud","Gobolka Gedo","Gobolka Hiiraan","Gobolka Jubbada Dhexe","Gobolka Jubbada Hoose","Gobolka Mudug","Gobolka Nugaal","Gobolka Sanaag","Gobolka Shabeellaha Dhexe","Gobolka Shabeellaha Hoose","Gobolka Sool","Gobolka Togdheer","Gobolka Woqooyi Galbeed"],za:["Eastern Cape","Free State","Gauteng","Limpopo","Mpumalanga","Province of KwaZulu-Natal","Province of North West","Province of Northern Cape","Western Cape"],es:["Andalucia","Aragon","Canary Islands","Cantabria","Castilla y Leon","Castilla-La Mancha","Catalunya","Ceuta","Comunidad de Madrid","Comunitat Autonoma de les Illes Balears","Comunitat Valenciana","Euskal Autonomia Erkidegoa","Extremadura","Galicia","La Rioja","Melilla","Navarra","Principality of Asturias","Region de Murcia"],lk:["Central Province","Eastern Province","North Central Province","North Western Province","Northern Province","Province of Sabaragamuwa","Province of Uva","Southern Province","Western Province"],sd:["Al Jazirah State","Al Qadarif State","Blue Nile","Central Darfur State","East Darfur","Kassala State","Khartoum","North Darfur","North Kordofan","Northern","Red Sea","River Nile","Sennar","South Darfur","South Kordofan","West Darfur","West Kordofan State","White Nile"],sr:["Distrikt Brokopondo","Distrikt Commewijne","Distrikt Coronie","Distrikt Marowijne","Distrikt Nickerie","Distrikt Para","Distrikt Paramaribo","Distrikt Saramacca","Distrikt Sipaliwini","Distrikt Wanica"],sj:["Jan Mayen","Svalbard"],sz:["Hhohho District","Lubombo District","Manzini District","Shiselweni District"],se:["Blekinge","Dalarna","Gaevleborgs laen","Gotland","Halland","Jaemtlands laen","Joenkoepings laen","Kalmar","Kronoberg","Norrbotten","OErebro laen","OEstergoetlands laen","Skane laen","Soedermanlands laen","Stockholm","Uppsala","Vaermlands laen","Vaesterbottens laen","Vaesternorrlands laen","Vaestmanlands laen","Vaestra Goetalands laen"],ch:["Canton de Berne","Canton de Fribourg","Canton de Vaud","Canton du Valais","Geneve","Jura","Kanton Aarga","Kanton Appenzell Ausserrhoden","Kanton Appenzell Innerrhoden","Kanton Basel-Landschaft","Kanton Basel-Stadt","Kanton Glarus","Kanton Graubunden","Kanton Luzern","Kanton Nidwalden","Kanton Obwalden","Kanton Schaffhausen","Kanton Schwyz","Kanton Solothurn","Kanton St. Gallen","Kanton Thurga","Kanton Uri","Kanton Zug","Kanton Zurich","Neuchatel","Ticino"],sy:["Al-Hasakah Governorate","Aleppo Governorate","Ar-Raqqah Governorate","As-Suwayda Governorate","Damascus Governorate","Daraa Governorate","Deir ez-Zor Governorate","Hama Governorate","Homs Governorate","Idlib Governorate","Latakia Governorate","Muhafazat Rif Dimashq","Quneitra Governorate","Tartus Governorate"],tw:["Fukien","Kaohsiung","Taipei","Taiwan"],tj:["Districts of Republican Subordination","Dushanbe","Viloyati Khatlon","Viloyati Mukhtori Kuhistoni Badakhshon","Viloyati Sughd"],tz:["Arusha Region","Coast Region","Dar es Salaam Region","Dodoma Region","Geita Region","Iringa Region","Kagera Region","Katavi Region","Kigoma Region","Kilimanjaro Region","Lindi Region","Manyara Region","Mara Region","Mbeya Region","Morogoro Region","Mtwara Region","Mwanza Region","Njombe Region","Pemba North Region","Pemba South Region","Rukwa Region","Ruvuma Region","Shinyanga Region","Simiyu Region","Singida Region","Tabora Region","Tanga Region","Zanzibar Central/South Region","Zanzibar North Region","Zanzibar Urban/West Region"],th:["Bangkok","Changwat Amnat Charoen","Changwat Ang Thong","Changwat Bueng Kan","Changwat Buri Ram","Changwat Chachoengsao","Changwat Chai Nat","Changwat Chaiyaphum","Changwat Chanthaburi","Changwat Chiang Rai","Changwat Chon Buri","Changwat Chumphon","Changwat Kalasin","Changwat Kamphaeng Phet","Changwat Kanchanaburi","Changwat Khon Kaen","Changwat Krabi","Changwat Lampang","Changwat Lamphun","Changwat Loei","Changwat Lop Buri","Changwat Mae Hong Son","Changwat Maha Sarakham","Changwat Mukdahan","Changwat Nakhon Nayok","Changwat Nakhon Pathom","Changwat Nakhon Phanom","Changwat Nakhon Ratchasima","Changwat Nakhon Sawan","Changwat Nakhon Si Thammarat","Changwat Nan","Changwat Narathiwat","Changwat Nong Bua Lamph","Changwat Nong Khai","Changwat Nonthaburi","Changwat Pathum Thani","Changwat Pattani","Changwat Phangnga","Changwat Phatthalung","Changwat Phayao","Changwat Phetchabun","Changwat Phetchaburi","Changwat Phichit","Changwat Phitsanulok","Changwat Phra Nakhon Si Ayutthaya","Changwat Phrae","Changwat Prachin Buri","Changwat Prachuap Khiri Khan","Changwat Ranong","Changwat Ratchaburi","Changwat Rayong","Changwat Roi Et","Changwat Sa Kaeo","Changwat Sakon Nakhon","Changwat Samut Prakan","Changwat Samut Sakhon","Changwat Samut Songkhram","Changwat Saraburi","Changwat Satun","Changwat Si Sa Ket","Changwat Sing Buri","Changwat Songkhla","Changwat Sukhothai","Changwat Suphan Buri","Changwat Surat Thani","Changwat Surin","Changwat Tak","Changwat Trang","Changwat Trat","Changwat Ubon Ratchathani","Changwat Udon Thani","Changwat Uthai Thani","Changwat Uttaradit","Changwat Yala","Changwat Yasothon","Chiang Mai Province","Phuket Province"],tg:["Centrale","Kara","Maritime","Plateaux","Savanes"],tk:["Ataf","Fakaofo","Nukunon"],to:["Eua","Ha`apai","Niuas","Tongatap","Vava'"],tt:["Arima","Chaguanas","City of Port of Spain","Couva-Tabaquite-Talparo","Diego Martin","Mayaro","Penal/Debe","Point Fortin","Princes Town","San Fernando","San Juan/Laventille","Sangre Grande","Siparia","Tobago","Tunapuna/Piarco"],tn:["Gafsa Governorate","Gouvernorat de Beja","Gouvernorat de Ben Arous","Gouvernorat de Bizerte","Gouvernorat de Gabes","Gouvernorat de Jendouba","Gouvernorat de Kairouan","Gouvernorat de Kasserine","Gouvernorat de Kebili","Gouvernorat de Kef","Gouvernorat de l'Ariana","Gouvernorat de Mahdia","Gouvernorat de Medenine","Gouvernorat de Monastir","Gouvernorat de Nabeul","Gouvernorat de Sfax","Gouvernorat de Sidi Bouzid","Gouvernorat de Siliana","Gouvernorat de Sousse","Gouvernorat de Tozeur","Gouvernorat de Tunis","Gouvernorat de Zaghouan","Manouba","Tataouine"],tr:["Adana","Adiyaman","Afyonkarahisar","Agri","Aksaray","Amasya","Ankara","Antalya","Ardahan","Artvin","Aydin","Balikesir","Bartin","Batman","Bayburt","Bilecik","Bingoel","Bitlis","Bol","Burdur","Bursa","Canakkale","Cankiri","Corum","Denizli","Diyarbakir","Duezce","Edirne","Elazig","Erzincan","Erzurum","Eskisehir","Gaziantep","Giresun","Guemueshane","Hakkari","Hatay","Igdir","Isparta","Istanbul","Izmir","Kahramanmaras","Karabuek","Karaman","Kars","Kastamon","Kayseri","Kilis","Kirikkale","Kirklareli","Kirsehir","Kocaeli","Konya","Kuetahya","Malatya","Manisa","Mardin","Mersin","Mugla","Mus","Nevsehir","Nigde","Ord","Osmaniye","Rize","Sakarya","Samsun","Sanliurfa","Siirt","Sinop","Sirnak","Sivas","Tekirdag","Tokat","Trabzon","Tunceli","Usak","Van","Yalova","Yozgat","Zonguldak"],tm:["Ahal","Ashgabat","Balkan","Dasoguz Welayaty","Lebap","Mary"],tc:[],tv:["Funafuti","Nanumanga","Nanumea","Niutao","Nui","Nukufeta","Nukulaelae","Vaitup"],ug:["Central Region","Eastern Region","Northern Region","Western Region"],ua:["Cherkas'ka Oblast'","Chernihivs'ka Oblast'","Chernivets'ka Oblast'","Dnipropetrovska Oblast'","Donets'ka Oblast'","Gorod Sevastopol","Ivano-Frankivs'ka Oblast'","Kharkivs'ka Oblast'","Khersons'ka Oblast'","Khmel'nyts'ka Oblast'","Kirovohrads'ka Oblast'","Kyiv Oblast","L'vivs'ka Oblast'","Luhans'ka Oblast'","Misto Kyyiv","Mykolayivs'ka Oblast'","Odes'ka Oblast'","Poltavs'ka Oblast'","Republic of Crimea","Rivnens'ka Oblast'","Sums'ka Oblast'","Ternopil's'ka Oblast'","Vinnyts'ka Oblast'","Volyns'ka Oblast'","Zakarpattia Oblast","Zaporiz'ka Oblast'","Zhytomyrs'ka Oblast'"],ae:["`Ajman","Abu Zaby","Al Fujayrah","Ash Shariqah","Dubai","Ra's al Khaymah","Umm al Qaywayn"],us:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","District of Columbia","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],uy:["Departamento de Artigas","Departamento de Canelones","Departamento de Cerro Largo","Departamento de Colonia","Departamento de Durazno","Departamento de Flores","Departamento de Florida","Departamento de Lavalleja","Departamento de Maldonado","Departamento de Montevideo","Departamento de Paysand","Departamento de Rio Negro","Departamento de Rivera","Departamento de Rocha","Departamento de Salto","Departamento de San Jose","Departamento de Soriano","Departamento de Tacuarembo","Departamento de Treinta y Tres"],uz:["Andijan","Bukhara Province","Fergana","Jizzakh Province","Karakalpakstan","Namangan Province","Navoiy Province","Qashqadaryo Province","Samarqand Viloyati","Sirdaryo","Surxondaryo Viloyati","Toshkent Shahri","Toshkent Viloyati","Xorazm Viloyati"],vu:["Malampa Province","Penama Province","Sanma Province","Shefa Province","Tafea Province","Torba Province"],ve:["Delta Amacuro","Dependencias Federales","Distrito Capital","Estado Amazonas","Estado Anzoategui","Estado Apure","Estado Aragua","Estado Barinas","Estado Bolivar","Estado Carabobo","Estado Cojedes","Estado Falcon","Estado Guarico","Estado Lara","Estado Merida","Estado Monagas","Estado Nueva Esparta","Estado Portuguesa","Estado Sucre","Estado Tachira","Estado Trujillo","Estado Vargas","Estado Yaracuy","Estado Zulia","Miranda"],vn:["An Giang","B\xe0 R\u1ecba-V\u0169ng T\xe0u","B\xecnh D\u01b0\u01a1ng","B\xecnh Ph\u01b0\u1edbc","B\xecnh Thu\u1eadn","B\xecnh \u0110\u1ecbnh","B\u1ea1c Li\xeau","B\u1eafc Giang","B\u1eafc K\u1ea1n","B\u1eafc Ninh","B\u1ebfn Tre","Cao B\u1eb1ng","C\xe0 Mau","Da Nang","Gia Lai","Haiphong","Hanoi","Ho Chi Minh City","H\xe0 Giang","H\xe0 Nam","H\xe0 T\xe2y","H\xe0 T\u0129nh","H\xf2a B\xecnh","H\u01b0ng Y\xean","H\u1ea3i D\u01b0\u01a1ng","H\u1eadu Giang","Kh\xe1nh H\xf2a","Ki\xean Giang","Kon Tum","Lai Ch\xe2u","Long An","L\xe0o Cai","L\xe2m \u0110\u1ed3ng","L\u1ea1ng S\u01a1n","Nam \u0110\u1ecbnh","Ngh\u1ec7 An","Ninh B\xecnh","Ninh Thu\u1eadn","Ph\xfa Th\u1ecd","Ph\xfa Y\xean","Qu\u1ea3ng B\xecnh","Qu\u1ea3ng Nam","Qu\u1ea3ng Ng\xe3i","Qu\u1ea3ng Ninh","Qu\u1ea3ng Tr\u1ecb","S\xf3c Tr\u0103ng","S\u01a1n La","Thanh H\xf3a","Th\xe1i B\xecnh","Th\xe1i Nguy\xean","Th\u1eeba Thi\xean-Hu\u1ebf","Ti\u1ec1n Giang","Tr\xe0 Vinh","Tuy\xean Quang","T\xe2y Ninh","V\u0129nh Long","V\u0129nh Ph\xfac","Y\xean B\xe1i","\u0110i\u1ec7n Bi\xean","\u0110\u1eafk L\u1eafk","\u0110\u1eafk N\xf4ng","\u0110\u1ed3ng Nai","\u0110\u1ed3ng Th\xe1p"],vg:[],vi:["Saint Croix Island","Saint John Island","Saint Thomas Island"],wf:["Alo","Sigave","Uvea"],eh:[],ye:["Al Bayda Governorate","Al Mahrah","Al Mahwit","Amanat Al Asimah","Ibb","Muhafazat `Amran","Muhafazat 'Adan","Muhafazat Abyan","Muhafazat ad Dali'","Muhafazat al Hudaydah","Muhafazat al Jawf","Muhafazat Dhamar","Muhafazat Hadramawt","Muhafazat Hajjah","Muhafazat Lahij","Muhafazat Ma'rib","Muhafazat Raymah","Muhafazat Sa'dah","Muhafazat Ta`izz","Sanaa","Shabwah","Socotra"],zm:["Central Province","Copperbelt Province","Eastern Province","Luapula Province","Lusaka Province","Muchinga Province","North-Western Province","Northern Province","Southern Province","Western Province"],zw:["Bulawayo Province","Harare Province","Manicaland Province","Mashonaland Central Province","Mashonaland East Province","Mashonaland West Province","Masvingo Province","Matabeleland North Province","Matabeleland South Province","Midlands Province"]}},63002:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getStates=t.getFilteredCountries=t.getCountry=t.getCountries=void 0;var i=r(n(73914)),o=r(n(94004)),a=function(e,t){return t=t.toLowerCase(),e.code.toLowerCase()===t||e.name.toLowerCase()===t||e.dial_code.toLowerCase()===t};t.getCountries=function(){return i.default};t.getCountry=function(e){for(var n=0,r=t.getCountries();n<r.length;n++){var i=r[n];if(a(i,e))return i}return null};t.getFilteredCountries=function(e){for(var n=t.getCountries(),r=[],i=0,o=e;i<o.length;i++)for(var s=o[i],l=0,c=n;l<c.length;l++){var u=c[l];if(a(u,s)){r.push(u);break}}return r};t.getStates=function(e){try{return o.default[e]}catch(t){return"Invalid country code"}}},69981:function(e,t){var n="undefined"!==typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=f(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];x.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(S){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function C(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new x(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=p,e.Request=b,e.Response=x),t.Headers=p,t.Request=b,t.Response=x,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},62907:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r={};function i(){return r}},29494:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},96574:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(70759),i=n(7909);function o(e,t,n){(0,r.Z)(2,arguments);var o=(0,i.Z)(e,n),a=(0,i.Z)(t,n);return o.getTime()===a.getTime()}},70759:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},7909:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(90686),i=n(70759),o=n(41921),a=n(62907);function s(e,t){var n,s,l,c,u,d,p,h;(0,i.Z)(1,arguments);var f=(0,a.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.Z)(e),y=g.getUTCDay(),v=(y<m?7:0)+y-m;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}},41921:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>r})},33538:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var r=n(69548),i=n(41921),o=n(90686),a=n(70759);function s(e,t){return(0,a.Z)(2,arguments),function(e,t){(0,a.Z)(2,arguments);var n=(0,o.Z)(e).getTime(),r=(0,i.Z)(t);return new Date(n+r)}(e,-(0,i.Z)(t))}function l(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function c(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=l(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var c=l(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function u(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=l(t).getTime()-function(e){(0,a.Z)(1,arguments);var t=c(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)}(t).getTime();return Math.round(n/6048e5)+1}var d=n(7909),p=n(62907);function h(e,t){var n,r,s,l,c,u,h,f;(0,a.Z)(1,arguments);var m=(0,o.Z)(e),g=m.getUTCFullYear(),y=(0,p.j)(),v=(0,i.Z)(null!==(n=null!==(r=null!==(s=null!==(l=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:y.firstWeekContainsDate)&&void 0!==r?r:null===(h=y.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,v),b.setUTCHours(0,0,0,0);var _=(0,d.Z)(b,t),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var x=(0,d.Z)(w,t);return m.getTime()>=_.getTime()?g+1:m.getTime()>=x.getTime()?g:g-1}function f(e,t){(0,a.Z)(1,arguments);var n=(0,o.Z)(e),r=(0,d.Z)(n,t).getTime()-function(e,t){var n,r,o,s,l,c,u,f;(0,a.Z)(1,arguments);var m=(0,p.j)(),g=(0,i.Z)(null!==(n=null!==(r=null!==(o=null!==(s=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==r?r:null===(u=m.locale)||void 0===u||null===(f=u.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),y=h(e,t),v=new Date(0);return v.setUTCFullYear(y,0,g),v.setUTCHours(0,0,0,0),(0,d.Z)(v,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function m(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const g={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return m("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):m(n+1,2)},d:function(e,t){return m(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return m(e.getUTCHours()%12||12,t.length)},H:function(e,t){return m(e.getUTCHours(),t.length)},m:function(e,t){return m(e.getUTCMinutes(),t.length)},s:function(e,t){return m(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return m(Math.floor(r*Math.pow(10,n-3)),t.length)}};var y="midnight",v="noon",b="morning",_="afternoon",w="evening",x="night";function k(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+m(o,2)}function C(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+m(Math.floor(i/60),2)+n+m(i%60,2)}const M={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return g.y(e,t)},Y:function(e,t,n,r){var i=h(e,r),o=i>0?i:1-i;return"YY"===t?m(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):m(o,t.length)},R:function(e,t){return m(c(e),t.length)},u:function(e,t){return m(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return g.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=f(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):m(i,t.length)},I:function(e,t,n){var r=u(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):m(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):g.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return m(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return m(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?v:0===i?y:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?w:i>=12?_:i>=4?b:x,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return g.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):g.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):g.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):g.s(e,t)},S:function(e,t){return g.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return C(i);case"XXXX":case"XX":return S(i);default:return S(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return C(i);case"xxxx":case"xx":return S(i);default:return S(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k(i,":");default:return"GMT"+S(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k(i,":");default:return"GMT"+S(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return m(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return m((r._originalDate||e).getTime(),t.length)}};var T=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},E=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const P={p:E,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return T(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",T(i,t)).replace("{{time}}",E(o,t))}};var I=n(29494),O=["D","DD"],L=["YY","YYYY"];function R(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}const j=n(23635).Z;var D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,F=/''/g,z=/[a-zA-Z]/;function B(e,t,n){var l,c,u,d,h,f,m,g,y,v,b,_,w,x,k,C,S,T;(0,a.Z)(2,arguments);var E=String(t),B=(0,p.j)(),U=null!==(l=null!==(c=null===n||void 0===n?void 0:n.locale)&&void 0!==c?c:B.locale)&&void 0!==l?l:j,$=(0,i.Z)(null!==(u=null!==(d=null!==(h=null!==(f=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null===n||void 0===n||null===(m=n.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==h?h:B.firstWeekContainsDate)&&void 0!==d?d:null===(y=B.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,i.Z)(null!==(b=null!==(_=null!==(w=null!==(x=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==x?x:null===n||void 0===n||null===(k=n.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==w?w:B.weekStartsOn)&&void 0!==_?_:null===(S=B.locale)||void 0===S||null===(T=S.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==b?b:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var q=(0,o.Z)(e);if(!(0,r.Z)(q))throw new RangeError("Invalid time value");var Z=s(q,(0,I.Z)(q)),H={firstWeekContainsDate:$,weekStartsOn:V,locale:U,_originalDate:q};return E.match(A).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,P[t])(e,U.formatLong):e})).join("").match(D).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(N);if(!t)return e;return t[1].replace(F,"'")}(r);var o,a=M[i];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||(o=r,-1===L.indexOf(o))||R(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==O.indexOf(e)}(r)||R(r,t,String(e)),a(Z,r,U.localize,H);if(i.match(z))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}},69014:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(70759);function i(e,t,n){var i,o,a;return(0,r.Z)(1,arguments),void 0===(a=t)||"locale"in a?n=t:o=t,new Intl.DateTimeFormat(null===(i=n)||void 0===i?void 0:i.locale,o).format(e)}},68997:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(70759);function i(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},69548:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68997),i=n(90686),o=n(70759);function a(e){if((0,o.Z)(1,arguments),!(0,r.Z)(e)&&"number"!==typeof e)return!1;var t=(0,i.Z)(e);return!isNaN(Number(t))}},22337:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90686),i=n(70759);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e).getTime(),o=(0,r.Z)(t.start).getTime(),a=(0,r.Z)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},72867:(e,t,n)=>{"use strict";function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{Z:()=>r})},90219:(e,t,n)=>{"use strict";function r(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:()=>r})},54224:(e,t,n)=>{"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}n.d(t,{Z:()=>r})},96697:(e,t,n)=>{"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}n.d(t,{Z:()=>r})},37882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const i=function(e,t,n){var i,o=null!==n&&void 0!==n&&n.addSuffix?r[e].withPreposition:r[e].standalone;return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i};var o=n(72867);const a={date:(0,o.Z)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,o.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,o.Z)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const l=function(e,t,n,r){return s[e]};var c=n(90219),u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d={narrow:u.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:u.wide};const p={ordinalNumber:function(e){return Number(e)+"."},era:(0,c.Z)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,c.Z)({values:u,formattingValues:d,defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var h=n(54224);const f={code:"de",formatDistance:i,formatLong:a,formatRelative:l,localize:p,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,h.Z)({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,h.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,h.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,h.Z)({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,h.Z)({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},67331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(84139),i=n(83474),o=n(21844),a=n(35767),s=n(72867);const l={date:(0,s.Z)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,s.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};const c={code:"en-GB",formatDistance:r.Z,formatLong:l,formatRelative:i.Z,localize:o.Z,match:a.Z,options:{weekStartsOn:1,firstWeekContainsDate:4}}},84139:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i}},83474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const i=function(e,t,n,i){return r[e]}},21844:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90219);const i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},35767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(54224);const i={ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},23635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(84139),i=n(72867);const o={date:(0,i.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var a=n(83474),s=n(21844),l=n(35767);const c={code:"en-US",formatDistance:r.Z,formatLong:o,formatRelative:a.Z,localize:s.Z,match:l.Z,options:{weekStartsOn:0,firstWeekContainsDate:1}}},20317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i};var o=n(72867);const a={date:(0,o.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,o.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,o.Z)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"};const l=function(e,t,n,r){return s[e]};var c=n(90219);const u={ordinalNumber:function(e,t){var n=Number(e),r=null===t||void 0===t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"\xe8re":"er":"\xe8me")},era:(0,c.Z)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,c.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};var d=n(54224);const p={code:"fr",formatDistance:i,formatLong:a,formatRelative:l,localize:u,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(i\xe8me|\xe8re|\xe8me|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant J\xe9sus-Christ|apr\xe8s J\xe9sus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|\xe8me|e)? trim\.?/i,wide:/^[1234](er|\xe8me|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|f\xe9vr|mars|avr|mai|juin|juill|juil|ao\xfbt|sept|oct|nov|d\xe9c)\.?/i,wide:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'apr\xe8s[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},28867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r={about:"k\xf6r\xfclbel\xfcl",over:"t\xf6bb mint",almost:"majdnem",lessthan:"kevesebb mint"},i={xseconds:" m\xe1sodperc",halfaminute:"f\xe9l perc",xminutes:" perc",xhours:" \xf3ra",xdays:" nap",xweeks:" h\xe9t",xmonths:" h\xf3nap",xyears:" \xe9v"},o={xseconds:{"-1":" m\xe1sodperccel ezel\u0151tt",1:" m\xe1sodperc m\xfalva",0:" m\xe1sodperce"},halfaminute:{"-1":"f\xe9l perccel ezel\u0151tt",1:"f\xe9l perc m\xfalva",0:"f\xe9l perce"},xminutes:{"-1":" perccel ezel\u0151tt",1:" perc m\xfalva",0:" perce"},xhours:{"-1":" \xf3r\xe1val ezel\u0151tt",1:" \xf3ra m\xfalva",0:" \xf3r\xe1ja"},xdays:{"-1":" nappal ezel\u0151tt",1:" nap m\xfalva",0:" napja"},xweeks:{"-1":" h\xe9ttel ezel\u0151tt",1:" h\xe9t m\xfalva",0:" hete"},xmonths:{"-1":" h\xf3nappal ezel\u0151tt",1:" h\xf3nap m\xfalva",0:" h\xf3napja"},xyears:{"-1":" \xe9vvel ezel\u0151tt",1:" \xe9v m\xfalva",0:" \xe9ve"}};const a=function(e,t,n){var a=e.match(/about|over|almost|lessthan/i),s=a?e.replace(a[0],""):e,l=!0===(null===n||void 0===n?void 0:n.addSuffix),c=s.toLowerCase(),u=(null===n||void 0===n?void 0:n.comparison)||0,d=l?o[c][u]:i[c],p="halfaminute"===c?d:t+d;if(a){var h=a[0].toLowerCase();p=r[h]+" "+p}return p};var s=n(72867);const l={date:(0,s.Z)({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:(0,s.Z)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,s.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var c=["vas\xe1rnap","h\xe9tf\u0151n","kedden","szerd\xe1n","cs\xfct\xf6rt\xf6k\xf6n","p\xe9nteken","szombaton"];function u(e){return function(t){var n=c[t.getUTCDay()];return"".concat(e?"":"'m\xfalt' ","'").concat(n,"' p'-kor'")}}var d={lastWeek:u(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:u(!0),other:"P"};const p=function(e,t){var n=d[e];return"function"===typeof n?n(t):n};var h=n(90219);const f={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,h.Z)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus el\u0151tt","id\u0151sz\xe1m\xedt\xe1sunk szerint"]},defaultWidth:"wide"}),quarter:(0,h.Z)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.\xe9v","2. n.\xe9v","3. n.\xe9v","4. n.\xe9v"],wide:["1. negyed\xe9v","2. negyed\xe9v","3. negyed\xe9v","4. negyed\xe9v"]},defaultWidth:"wide",argumentCallback:function(e){return e-1},formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.\xe9v","II. n.\xe9v","III. n.\xe9v","IV. n.\xe9v"],wide:["I. negyed\xe9v","II. negyed\xe9v","III. negyed\xe9v","IV. negyed\xe9v"]},defaultFormattingWidth:"wide"}),month:(0,h.Z)({values:{narrow:["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],wide:["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},defaultWidth:"wide"}),day:(0,h.Z)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vas\xe1rnap","h\xe9tf\u0151","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,h.Z)({values:{narrow:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},abbreviated:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},wide:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"d\xe9lut\xe1n",evening:"este",night:"\xe9jjel"}},defaultWidth:"wide"})};var m=n(54224);const g={code:"hu",formatDistance:a,formatLong:l,formatRelative:p,localize:f,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,m.Z)({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/el\u0151tt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:(0,m.Z)({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.\xe9v/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyed\xe9v/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,m.Z)({matchPatterns:{narrow:/^[jfma\xe1sond]|sz/i,abbreviated:/^(jan\.?|febr\.?|m\xe1rc\.?|\xe1pr\.?|m\xe1j\.?|j\xfan\.?|j\xfal\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(janu\xe1r|febru\xe1r|m\xe1rcius|\xe1prilis|m\xe1jus|j\xfanius|j\xfalius|augusztus|szeptember|okt\xf3ber|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|\xe1/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^m\xe1r/i,/^\xe1p/i,/^m\xe1j/i,/^j\xfan/i,/^j\xfal/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,m.Z)({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vas\xe1rnap|h\xe9tf\u0151|kedd|szerda|cs\xfct\xf6rt\xf6k|p\xe9ntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:(0,m.Z)({matchPatterns:{any:/^((de|du)\.?|\xe9jf\xe9l|d\xe9lut\xe1n|d\xe9l|reggel|este|\xe9jjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^\xe9jf/i,noon:/^d\xe9/i,morning:/reg/i,afternoon:/^d\xe9lu\.?/i,evening:/es/i,night:/\xe9jj/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},99374:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r={lessThanXSeconds:{one:{regular:"mniej ni\u017c sekunda",past:"mniej ni\u017c sekund\u0119",future:"mniej ni\u017c sekund\u0119"},twoFour:"mniej ni\u017c {{count}} sekundy",other:"mniej ni\u017c {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekund\u0119",future:"sekund\u0119"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"p\xf3\u0142 minuty",twoFour:"p\xf3\u0142 minuty",other:"p\xf3\u0142 minuty"},lessThanXMinutes:{one:{regular:"mniej ni\u017c minuta",past:"mniej ni\u017c minut\u0119",future:"mniej ni\u017c minut\u0119"},twoFour:"mniej ni\u017c {{count}} minuty",other:"mniej ni\u017c {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minut\u0119",future:"minut\u0119"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"oko\u0142o godziny",past:"oko\u0142o godziny",future:"oko\u0142o godzin\u0119"},twoFour:"oko\u0142o {{count}} godziny",other:"oko\u0142o {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzin\u0119",future:"godzin\u0119"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzie\u0144",past:"dzie\u0144",future:"1 dzie\u0144"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"oko\u0142o tygodnia",twoFour:"oko\u0142o {{count}} tygodni",other:"oko\u0142o {{count}} tygodni"},xWeeks:{one:"tydzie\u0144",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"oko\u0142o miesi\u0105c",twoFour:"oko\u0142o {{count}} miesi\u0105ce",other:"oko\u0142o {{count}} miesi\u0119cy"},xMonths:{one:"miesi\u0105c",twoFour:"{{count}} miesi\u0105ce",other:"{{count}} miesi\u0119cy"},aboutXYears:{one:"oko\u0142o rok",twoFour:"oko\u0142o {{count}} lata",other:"oko\u0142o {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function i(e,t,n){var r=function(e,t){if(1===t)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}(e,t);return("string"===typeof r?r:r[n]).replace("{{count}}",String(t))}const o=function(e,t,n){var o=r[e];return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+i(o,t,"future"):i(o,t,"past")+" temu":i(o,t,"regular")};var a=n(72867);const s={date:(0,a.Z)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var l=n(96574),c={masculine:"ostatni",feminine:"ostatnia"},u={masculine:"ten",feminine:"ta"},d={masculine:"nast\u0119pny",feminine:"nast\u0119pna"},p={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function h(e,t,n,r){var i;if((0,l.Z)(t,n,r))i=u;else if("lastWeek"===e)i=c;else{if("nextWeek"!==e)throw new Error("Cannot determine adjectives for token ".concat(e));i=d}var o=t.getUTCDay(),a=i[p[o]];return"'".concat(a,"' eeee 'o' p")}var f={lastWeek:h,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:h,other:"P"};const m=function(e,t,n,r){var i=f[e];return"function"===typeof i?i(e,t,n,r):i};var g=n(90219);const y={ordinalNumber:function(e,t){return String(e)},era:(0,g.Z)({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed nasz\u0105 er\u0105","naszej ery"]},defaultWidth:"wide"}),quarter:(0,g.Z)({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwarta\u0142","II kwarta\u0142","III kwarta\u0142","IV kwarta\u0142"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,g.Z)({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017adziernik","listopad","grudzie\u0144"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:(0,g.Z)({values:{narrow:["N","P","W","\u015a","C","P","S"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","\u015b","c","p","s"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:(0,g.Z)({values:{narrow:{am:"a",pm:"p",midnight:"p\xf3\u0142n.",noon:"po\u0142",morning:"rano",afternoon:"popo\u0142.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o p\xf3\u0142n.",noon:"w po\u0142.",morning:"rano",afternoon:"po po\u0142.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})};var v=n(54224);const b={code:"pl",formatDistance:o,formatLong:s,formatRelative:m,localize:y,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,v.Z)({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(\u0105|a)\s*er(\u0105|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,v.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(\u0142|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,v.Z)({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(\u017a|z)|lis|gru)/i,wide:/^(stycznia|stycze(\u0144|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(\u0144|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(\u0144|n)|wrze(\u015b|s)nia|wrzesie(\u0144|n)|pa(\u017a|z)dziernika|pa(\u017a|z)dziernik|listopada|listopad|grudnia|grudzie(\u0144|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:(0,v.Z)({matchPatterns:{narrow:/^[npw\u015bcs]/i,short:/^(nie|pon|wto|(\u015b|s)ro|czw|pi(\u0105|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(\u015b|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(\u0142|l)ek|wtorek|(\u015b|s)roda|czwartek|pi(\u0105|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^\u015b/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,v.Z)({matchPatterns:{narrow:/^(^a$|^p$|p\xf3(\u0142|l)n\.?|o\s*p\xf3(\u0142|l)n\.?|po(\u0142|l)\.?|w\s*po(\u0142|l)\.?|po\s*po(\u0142|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|p\xf3(\u0142|l)noc|o\s*p\xf3(\u0142|l)nocy|po(\u0142|l)udnie|w\s*po(\u0142|l)udnie|popo(\u0142|l)udnie|po\s*po(\u0142|l)udniu|rano|wiecz\xf3r|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},70229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r={lessThanXSeconds:{one:"mai pu\u021bin de o secund\u0103",other:"mai pu\u021bin de {{count}} secunde"},xSeconds:{one:"1 secund\u0103",other:"{{count}} secunde"},halfAMinute:"jum\u0103tate de minut",lessThanXMinutes:{one:"mai pu\u021bin de un minut",other:"mai pu\u021bin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 or\u0103",other:"circa {{count}} ore"},xHours:{one:"1 or\u0103",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o s\u0103pt\u0103m\xe2n\u0103",other:"circa {{count}} s\u0103pt\u0103m\xe2ni"},xWeeks:{one:"1 s\u0103pt\u0103m\xe2n\u0103",other:"{{count}} s\u0103pt\u0103m\xe2ni"},aboutXMonths:{one:"circa 1 lun\u0103",other:"circa {{count}} luni"},xMonths:{one:"1 lun\u0103",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\xeen "+i:i+" \xeen urm\u0103":i};var o=n(72867);const a={date:(0,o.Z)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,o.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,o.Z)({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"eeee 'trecut\u0103 la' p",yesterday:"'ieri la' p",today:"'ast\u0103zi la' p",tomorrow:"'m\xe2ine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"};const l=function(e,t,n,r){return s[e]};var c=n(90219);const u={ordinalNumber:function(e,t){return String(e)},era:(0,c.Z)({values:{narrow:["\xce","D"],abbreviated:["\xce.d.C.","D.C."],wide:["\xcenainte de Cristos","Dup\u0103 Cristos"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,c.Z)({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","s\xe2"],abbreviated:["dum","lun","mar","mie","joi","vin","s\xe2m"],wide:["duminic\u0103","luni","mar\u021bi","miercuri","joi","vineri","s\xe2mb\u0103t\u0103"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultFormattingWidth:"wide"})};var d=n(54224);const p={code:"ro",formatDistance:i,formatLong:a,formatRelative:l,localize:u,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(\xce|D)/i,abbreviated:/^(\xce\.?\s?d\.?\s?C\.?|\xce\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(\xcenainte de Cristos|\xcenaintea erei noastre|Dup\u0103 Cristos|Era noastr\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\xceC/i,/^DC/i],wide:[/^(\xcenainte de Cristos|\xcenaintea erei noastre)/i,/^(Dup\u0103 Cristos|Era noastr\u0103)/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|s\xe2)/i,wide:/^(duminica|luni|mar\u0163i|miercuri|joi|vineri|s\xe2mb\u0103t\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|mn|a|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nop\u021bii|amiaza|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/diminea\u0163a/i,afternoon:/dup\u0103-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},59459:(e,t,n)=>{"use strict";function r(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function i(e){return function(t,n){return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?r(e.future,t):"\u0447\u0435\u0440\u0435\u0437 "+r(e.regular,t):e.past?r(e.past,t):r(e.regular,t)+" \u043d\u0430\u0437\u0430\u0434":r(e.regular,t)}}n.d(t,{Z:()=>y});var o={lessThanXSeconds:i({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:i({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(e,t){return null!==t&&void 0!==t&&t.addSuffix?t.comparison&&t.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b"},lessThanXMinutes:i({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),xMinutes:i({regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),aboutXHours:i({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043e\u0432"}}),xHours:i({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043e\u0432"}}),xDays:i({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0435\u0439"}}),aboutXWeeks:i({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044e",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),xWeeks:i({regular:{singularNominative:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044f",singularGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),aboutXMonths:i({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),xMonths:i({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),aboutXYears:i({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),xYears:i({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"{{count}} \u043b\u0435\u0442"}}),overXYears:i({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),almostXYears:i({regular:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}})};const a=function(e,t,n){return o[e](t,n)};var s=n(72867);const l={date:(0,s.Z)({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,s.Z)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,s.Z)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})};var c=n(96574),u=["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043e\u0442\u0443"];function d(e){var t=u[e];return 2===e?"'\u0432\u043e "+t+" \u0432' p":"'\u0432 "+t+" \u0432' p"}var p={lastWeek:function(e,t,n){var r=e.getUTCDay();return(0,c.Z)(e,t,n)?d(r):function(e){var t=u[e];switch(e){case 0:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 "+t+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 "+t+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u0443\u044e "+t+" \u0432' p"}}(r)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return(0,c.Z)(e,t,n)?d(r):function(e){var t=u[e];switch(e){case 0:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 "+t+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 "+t+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e "+t+" \u0432' p"}}(r)},other:"P"};const h=function(e,t,n,r){var i=p[e];return"function"===typeof i?i(t,n,r):i};var f=n(90219);const m={ordinalNumber:function(e,t){var n=Number(e),r=null===t||void 0===t?void 0:t.unit;return n+("date"===r?"-\u0435":"week"===r||"minute"===r||"second"===r?"-\u044f":"-\u0439")},era:(0,f.Z)({values:{narrow:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:(0,f.Z)({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,f.Z)({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]},defaultFormattingWidth:"wide"}),day:(0,f.Z)({values:{narrow:["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:(0,f.Z)({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u0447\u044c"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043d\u043e\u0447\u0438"}},defaultFormattingWidth:"wide"})};var g=n(54224);const y={code:"ru",formatDistance:a,formatLong:l,formatRelative:h,localize:m,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0439|\u043e\u0435|\u044c\u0435|\u0430\u044f|\u044c\u044f|\u044b\u0439|\u043e\u0439|\u0438\u0439|\u044b\u0439))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,g.Z)({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:(0,g.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,g.Z)({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u0438\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440\u0442?|\u0430\u043f\u0440|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]?|\u0438\u044e\u043b[\u044c\u044f]?|\u0430\u0432\u0433|\u0441\u0435\u043d\u0442?|\u043e\u043a\u0442|\u043d\u043e\u044f\u0431?|\u0434\u0435\u043a)\.?/i,wide:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043b[\u044c\u044f]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u044f/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:(0,g.Z)({matchPatterns:{narrow:/^[\u0432\u043f\u0441\u0447]/i,short:/^(\u0432\u0441|\u0432\u043e|\u043f\u043d|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u0447\u0435|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u0432\u0441\u043a|\u0432\u043e\u0441|\u043f\u043d\u0434|\u043f\u043e\u043d|\u0432\u0442\u0440|\u0432\u0442\u043e|\u0441\u0440\u0434|\u0441\u0440\u0435|\u0447\u0442\u0432|\u0447\u0435\u0442|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c[\u0435\u044f]|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430?|\u0432\u0442\u043e\u0440\u043d\u0438\u043a\u0430?|\u0441\u0440\u0435\u0434[\u0430\u044b]|\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430?|\u043f\u044f\u0442\u043d\u0438\u0446[\u0430\u044b]|\u0441\u0443\u0431\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0432/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u0432[\u043e\u0441]/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441\u0440/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:(0,g.Z)({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\u043e\u0447\u044c|\u043f\u043e\u043b\u0434\u0435\u043d\u044c|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430?|\u043d\u043e\u0447[\u044c\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u043b\u043d/i,noon:/^\u043f\u043e\u043b\u0434/i,morning:/^\u0443/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},45929:(e,t,n)=>{"use strict";function r(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function i(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?r(e.future,t):"\u0437\u0430 "+r(e.regular,t):e.past?r(e.past,t):r(e.regular,t)+" \u0442\u043e\u043c\u0443":r(e.regular,t)}}n.d(t,{Z:()=>v});var o={lessThanXSeconds:i({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:i({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?"\u0437\u0430 \u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438"},lessThanXMinutes:i({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),xMinutes:i({regular:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),aboutXHours:i({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d"}}),xHours:i({regular:{singularNominative:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d"}}),xDays:i({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0456\u0432"}}),aboutXWeeks:i({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456"}}),xWeeks:i({regular:{singularNominative:"{{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0442\u0438\u0436\u043d\u044f",pluralGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456"}}),aboutXMonths:i({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u044f",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),xMonths:i({regular:{singularNominative:"{{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u044f",pluralGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),aboutXYears:i({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),xYears:i({regular:{singularNominative:"{{count}} \u0440\u0456\u043a",singularGenitive:"{{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"{{count}} \u0440\u043e\u043a\u0456\u0432"}}),overXYears:i({regular:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),almostXYears:i({regular:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}})};const a=function(e,t,n){return n=n||{},o[e](t,n)};var s=n(72867);const l={date:(0,s.Z)({formats:{full:"EEEE, do MMMM y '\u0440.'",long:"do MMMM y '\u0440.'",medium:"d MMM y '\u0440.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,s.Z)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,s.Z)({formats:{full:"{{date}} '\u043e' {{time}}",long:"{{date}} '\u043e' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var c=n(90686),u=n(96574),d=["\u043d\u0435\u0434\u0456\u043b\u044e","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e","\u0441\u0443\u0431\u043e\u0442\u0443"];function p(e){return"'\u0443 "+d[e]+" \u043e' p"}var h={lastWeek:function(e,t,n){var r=(0,c.Z)(e),i=r.getUTCDay();return(0,u.Z)(r,t,n)?p(i):function(e){var t=d[e];switch(e){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0443 "+t+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0438\u0439 "+t+" \u043e' p"}}(i)},yesterday:"'\u0432\u0447\u043e\u0440\u0430 \u043e' p",today:"'\u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456 \u043e' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u043e' p",nextWeek:function(e,t,n){var r=(0,c.Z)(e),i=r.getUTCDay();return(0,u.Z)(r,t,n)?p(i):function(e){var t=d[e];switch(e){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 "+t+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 "+t+" \u043e' p"}}(i)},other:"P"};const f=function(e,t,n,r){var i=h[e];return"function"===typeof i?i(t,n,r):i};var m=n(90219);const g={ordinalNumber:function(e,t){var n=String(null===t||void 0===t?void 0:t.unit),r=Number(e);return r+("date"===n?3===r||23===r?"-\u0454":"-\u0435":"minute"===n||"second"===n||"hour"===n?"-\u0430":"-\u0439")},era:(0,m.Z)({values:{narrow:["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u0434\u043e \u043d. \u0435.","\u043d. \u0435."],wide:["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"]},defaultWidth:"wide"}),quarter:(0,m.Z)({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,m.Z)({values:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:(0,m.Z)({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0456\u0432","\u0441\u0435\u0440","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:(0,m.Z)({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0456\u0440",night:"\u043d\u0456\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"}},defaultFormattingWidth:"wide"})};var y=n(54224);const v={code:"uk",formatDistance:a,formatLong:l,formatRelative:f,localize:g,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)(-?(\u0435|\u0439|\u0454|\u0430|\u044f))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,y.Z)({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:(0,y.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,y.Z)({matchPatterns:{narrow:/^[\u0441\u043b\u0431\u043a\u0442\u0447\u0432\u0436\u0433]/i,abbreviated:/^(\u0441\u0456\u0447|\u043b\u044e\u0442|\u0431\u0435\u0440|\u0431\u0435\u0440\u0435\u0437|\u043a\u0432\u0456|\u0442\u0440\u0430\u0432?|\u0447\u0435\u0440|\u043b\u0438\u043f|\u0441\u0435\u0440|\u0432\u0435\u0440|\u0436\u043e\u0432|\u043b\u0438\u0441(\u0442\u043e\u043f)?|\u0433\u0440\u0443\u0434)\.?/i,wide:/^(\u0441\u0456\u0447\u0435\u043d\u044c|\u0441\u0456\u0447\u043d\u044f|\u043b\u044e\u0442\u0438\u0439|\u043b\u044e\u0442\u043e\u0433\u043e|\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c|\u0431\u0435\u0440\u0435\u0437\u043d\u044f|\u043a\u0432\u0456\u0442\u0435\u043d\u044c|\u043a\u0432\u0456\u0442\u043d\u044f|\u0442\u0440\u0430\u0432\u0435\u043d\u044c|\u0442\u0440\u0430\u0432\u043d\u044f|\u043b\u0438\u043f\u0435\u043d\u044c|\u043b\u0438\u043f\u043d\u044f|\u0441\u0435\u0440\u043f\u0435\u043d\u044c|\u0441\u0435\u0440\u043f\u043d\u044f|\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c|\u0432\u0435\u0440\u0435\u0441\u043d\u044f|\u0436\u043e\u0432\u0442\u0435\u043d\u044c|\u0436\u043e\u0432\u0442\u043d\u044f|\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430?|\u0433\u0440\u0443\u0434\u0435\u043d\u044c|\u0433\u0440\u0443\u0434\u043d\u044f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b/i,/^\u0441/i,/^\u0432/i,/^\u0436/i,/^\u043b/i,/^\u0433/i],any:[/^\u0441\u0456/i,/^\u043b\u044e/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b\u0438\u043f/i,/^\u0441\u0435/i,/^\u0432/i,/^\u0436/i,/^\u043b\u0438\u0441/i,/^\u0433/i]},defaultParseWidth:"any"}),day:(0,y.Z)({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)\.?/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0456\u0432|\u0441\u0435\u0440|\u0447\u0435?\u0442\u0432|\u043f\u0442\u043d?|\u0441\u0443\u0431)\.?/i,wide:/^(\u043d\u0435\u0434\u0456\u043b[\u044f\u0456]|\u043f\u043e\u043d\u0435\u0434\u0456\u043b[\u043e\u043a][\u043a\u0430]|\u0432\u0456\u0432\u0442\u043e\u0440[\u043e\u043a][\u043a\u0430]|\u0441\u0435\u0440\u0435\u0434[\u0430\u0438]|\u0447\u0435\u0442\u0432\u0435\u0440(\u0433\u0430)?|\u043f\W*?\u044f\u0442\u043d\u0438\u0446[\u044f\u0456]|\u0441\u0443\u0431\u043e\u0442[\u0430\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f\W*?[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:(0,y.Z)({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\u0456\u0447|\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0456\u0440|\u0432\u0435\u0447\u043e\u0440\u0430|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u0456\u0432\u043d/i,noon:/^\u043f\u043e\u043b/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},96798:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r={lessThanXSeconds:{one:"d\u01b0\u1edbi 1 gi\xe2y",other:"d\u01b0\u1edbi {{count}} gi\xe2y"},xSeconds:{one:"1 gi\xe2y",other:"{{count}} gi\xe2y"},halfAMinute:"n\u1eeda ph\xfat",lessThanXMinutes:{one:"d\u01b0\u1edbi 1 ph\xfat",other:"d\u01b0\u1edbi {{count}} ph\xfat"},xMinutes:{one:"1 ph\xfat",other:"{{count}} ph\xfat"},aboutXHours:{one:"kho\u1ea3ng 1 gi\u1edd",other:"kho\u1ea3ng {{count}} gi\u1edd"},xHours:{one:"1 gi\u1edd",other:"{{count}} gi\u1edd"},xDays:{one:"1 ng\xe0y",other:"{{count}} ng\xe0y"},aboutXWeeks:{one:"kho\u1ea3ng 1 tu\u1ea7n",other:"kho\u1ea3ng {{count}} tu\u1ea7n"},xWeeks:{one:"1 tu\u1ea7n",other:"{{count}} tu\u1ea7n"},aboutXMonths:{one:"kho\u1ea3ng 1 th\xe1ng",other:"kho\u1ea3ng {{count}} th\xe1ng"},xMonths:{one:"1 th\xe1ng",other:"{{count}} th\xe1ng"},aboutXYears:{one:"kho\u1ea3ng 1 n\u0103m",other:"kho\u1ea3ng {{count}} n\u0103m"},xYears:{one:"1 n\u0103m",other:"{{count}} n\u0103m"},overXYears:{one:"h\u01a1n 1 n\u0103m",other:"h\u01a1n {{count}} n\u0103m"},almostXYears:{one:"g\u1ea7n 1 n\u0103m",other:"g\u1ea7n {{count}} n\u0103m"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?i+" n\u1eefa":i+" tr\u01b0\u1edbc":i};var o=n(72867);const a={date:(0,o.Z)({formats:{full:"EEEE, 'ng\xe0y' d MMMM 'n\u0103m' y",long:"'ng\xe0y' d MMMM 'n\u0103m' y",medium:"d MMM 'n\u0103m' y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,o.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,o.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var s={lastWeek:"eeee 'tu\u1ea7n tr\u01b0\u1edbc v\xe0o l\xfac' p",yesterday:"'h\xf4m qua v\xe0o l\xfac' p",today:"'h\xf4m nay v\xe0o l\xfac' p",tomorrow:"'ng\xe0y mai v\xe0o l\xfac' p",nextWeek:"eeee 't\u1edbi v\xe0o l\xfac' p",other:"P"};const l=function(e,t,n,r){return s[e]};var c=n(90219);const u={ordinalNumber:function(e,t){var n=Number(e),r=null===t||void 0===t?void 0:t.unit;if("quarter"===r)switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if("day"===r)switch(n){case 1:return"th\u1ee9 2";case 2:return"th\u1ee9 3";case 3:return"th\u1ee9 4";case 4:return"th\u1ee9 5";case 5:return"th\u1ee9 6";case 6:return"th\u1ee9 7";case 7:return"ch\u1ee7 nh\u1eadt"}else{if("week"===r)return 1===n?"th\u1ee9 nh\u1ea5t":"th\u1ee9 "+n;if("dayOfYear"===r)return 1===n?"\u0111\u1ea7u ti\xean":"th\u1ee9 "+n}return String(n)},era:(0,c.Z)({values:{narrow:["TCN","SCN"],abbreviated:["tr\u01b0\u1edbc CN","sau CN"],wide:["tr\u01b0\u1edbc C\xf4ng Nguy\xean","sau C\xf4ng Nguy\xean"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Qu\xfd 1","Qu\xfd 2","Qu\xfd 3","Qu\xfd 4"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["qu\xfd I","qu\xfd II","qu\xfd III","qu\xfd IV"]},defaultFormattingWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,c.Z)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Th\xe1ng M\u1ed9t","Th\xe1ng Hai","Th\xe1ng Ba","Th\xe1ng T\u01b0","Th\xe1ng N\u0103m","Th\xe1ng S\xe1u","Th\xe1ng B\u1ea3y","Th\xe1ng T\xe1m","Th\xe1ng Ch\xedn","Th\xe1ng M\u01b0\u1eddi","Th\xe1ng M\u01b0\u1eddi M\u1ed9t","Th\xe1ng M\u01b0\u1eddi Hai"]},defaultWidth:"wide",formattingValues:{narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["th\xe1ng 01","th\xe1ng 02","th\xe1ng 03","th\xe1ng 04","th\xe1ng 05","th\xe1ng 06","th\xe1ng 07","th\xe1ng 08","th\xe1ng 09","th\xe1ng 10","th\xe1ng 11","th\xe1ng 12"]},defaultFormattingWidth:"wide"}),day:(0,c.Z)({values:{narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Th\u1ee9 2","Th\u1ee9 3","Th\u1ee9 4","Th\u1ee9 5","Th\u1ee9 6","Th\u1ee9 7"],wide:["Ch\u1ee7 Nh\u1eadt","Th\u1ee9 Hai","Th\u1ee9 Ba","Th\u1ee9 T\u01b0","Th\u1ee9 N\u0103m","Th\u1ee9 S\xe1u","Th\u1ee9 B\u1ea3y"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"am",pm:"pm",midnight:"n\u1eeda \u0111\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"t\u1ed1i",night:"\u0111\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"},wide:{am:"SA",pm:"CH",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"n\u1eeda \u0111\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"t\u1ed1i",night:"\u0111\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"},wide:{am:"SA",pm:"CH",midnight:"n\u1eeda \u0111\xeam",noon:"gi\u1eefa tr\u01b0a",morning:"v\xe0o bu\u1ed5i s\xe1ng",afternoon:"v\xe0o bu\u1ed5i chi\u1ec1u",evening:"v\xe0o bu\u1ed5i t\u1ed1i",night:"v\xe0o ban \u0111\xeam"}},defaultFormattingWidth:"wide"})};var d=n(54224);const p={code:"vi",formatDistance:i,formatLong:a,formatRelative:l,localize:u,match:{ordinalNumber:(0,n(96697).Z)({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(tr\u01b0\u1edbc CN|sau CN)/i,wide:/^(tr\u01b0\u1edbc C\xf4ng Nguy\xean|sau C\xf4ng Nguy\xean)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^qu\xfd ([1234]|i{1,3}v?)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^th\xe1ng ?(M\u1ed9t|Hai|Ba|T\u01b0|N\u0103m|S\xe1u|B\u1ea3y|T\xe1m|Ch\xedn|M\u01b0\u1eddi|M\u01b0\u1eddi ?M\u1ed9t|M\u01b0\u1eddi ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^th\xe1ng ?(M\u1ed9t|0?1(?!\d))/i,/^th\xe1ng ?(Hai|0?2)/i,/^th\xe1ng ?(Ba|0?3)/i,/^th\xe1ng ?(T\u01b0|0?4)/i,/^th\xe1ng ?(N\u0103m|0?5)/i,/^th\xe1ng ?(S\xe1u|0?6)/i,/^th\xe1ng ?(B\u1ea3y|0?7)/i,/^th\xe1ng ?(T\xe1m|0?8)/i,/^th\xe1ng ?(Ch\xedn|0?9)/i,/^th\xe1ng ?(M\u01b0\u1eddi|10)/i,/^th\xe1ng ?(M\u01b0\u1eddi ?M\u1ed9t|11)/i,/^th\xe1ng ?(M\u01b0\u1eddi ?Hai|12)/i]},defaultParseWidth:"wide"}),day:(0,d.Z)({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Ch\u1ee7 ?Nh\u1eadt|Ch\xfaa ?Nh\u1eadt|th\u1ee9 ?Hai|th\u1ee9 ?Ba|th\u1ee9 ?T\u01b0|th\u1ee9 ?N\u0103m|th\u1ee9 ?S\xe1u|th\u1ee9 ?B\u1ea3y)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Ch\u1ee7|Ch\xfaa) ?Nh\u1eadt/i,/Hai/i,/Ba/i,/T\u01b0/i,/N\u0103m/i,/S\xe1u/i,/B\u1ea3y/i]},defaultParseWidth:"wide"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i,abbreviated:/^(am|pm|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i,wide:/^(ch[^i]*|sa|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/n\u1eeda \u0111\xeam/i,noon:/tr\u01b0a/i,morning:/s\xe1ng/i,afternoon:/chi\u1ec1u/i,evening:/t\u1ed1i/i,night:/^\u0111\xeam/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},40582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90686),i=n(70759);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},90686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(70759);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},57535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var u;const d={code:"en-US",formatDistance:i,formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(u.matchPattern);if(!n)return null;var r=n[0],i=e.match(u.parsePattern);if(!i)return null;var o=u.valueCallback?u.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},38864:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r={};function i(){return r}},59158:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}},88701:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},5302:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(3685),i=n(54320),o=n(12481),a=n(20904);var s=6048e5;function l(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.Z)(n)}(t).getTime();return Math.round(n/s)+1}},12481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3685),i=n(20904),o=n(54320);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,o.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},1820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(3685),i=n(48117),o=n(14376),a=n(20904),s=n(98879),l=n(38864);var c=6048e5;function u(e,t){(0,a.Z)(1,arguments);var n=(0,r.default)(e),u=(0,i.Z)(n,t).getTime()-function(e,t){var n,r,c,u,d,p,h,f;(0,a.Z)(1,arguments);var m=(0,l.j)(),g=(0,s.Z)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),y=(0,o.Z)(e,t),v=new Date(0);return v.setUTCFullYear(y,0,g),v.setUTCHours(0,0,0,0),(0,i.Z)(v,t)}(n,t).getTime();return Math.round(u/c)+1}},14376:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(3685),i=n(20904),o=n(48117),a=n(98879),s=n(38864);function l(e,t){var n,l,c,u,d,p,h,f;(0,i.Z)(1,arguments);var m=(0,r.default)(e),g=m.getUTCFullYear(),y=(0,s.j)(),v=(0,a.Z)(null!==(n=null!==(l=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:y.firstWeekContainsDate)&&void 0!==l?l:null===(h=y.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,v),b.setUTCHours(0,0,0,0);var _=(0,o.Z)(b,t),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var x=(0,o.Z)(w,t);return m.getTime()>=_.getTime()?g+1:m.getTime()>=x.getTime()?g:g-1}},11067:(e,t,n)=>{"use strict";n.d(t,{Do:()=>a,Iu:()=>o,qp:()=>s});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},20904:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},54320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}},48117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(3685),i=n(20904),o=n(98879),a=n(38864);function s(e,t){var n,s,l,c,u,d,p,h;(0,i.Z)(1,arguments);var f=(0,a.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),y=g.getUTCDay(),v=(y<m?7:0)+y-m;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}},98879:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>r})},33251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},47175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(98879),i=n(80458),o=n(20904),a=36e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*a)}},80458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},79822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(98879),i=n(80458),o=n(20904),a=6e4;function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*a)}},41959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+a+1,0),s>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},42737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(41959),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=3*(0,r.Z)(t);return(0,i.default)(e,n)}},46966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(33251),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=7*(0,r.Z)(t);return(0,i.default)(e,n)}},9006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(41959),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,12*n)}},48835:(e,t,n)=>{"use strict";n.d(t,{qk:()=>o,vh:()=>i,yJ:()=>r});Math.pow(10,8);var r=6e4,i=36e5,o=1e3},23743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(88701),i=n(29596),o=n(20904),a=864e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.Z)(n),c=s.getTime()-(0,r.Z)(s);return Math.round((l-c)/a)}},92790:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}},94297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},48590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4447:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},65745:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(38864),i=n(3685),o=n(98879),a=n(20904);function s(e,t){var n,s,l,c,u,d,p,h;(0,a.Z)(1,arguments);var f=(0,r.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,i.default)(e),y=g.getDay(),v=6+(y<m?-7:0)-(y-m);return g.setDate(g.getDate()+v),g.setHours(23,59,59,999),g}},69952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},70669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r=n(82249),i=n(43810),o=n(3685),a=n(20904);var s=n(5302),l=n(12481),c=n(1820),u=n(14376);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)}};var h="midnight",f="noon",m="morning",g="afternoon",y="evening",v="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+d(o,2)}function _(e,t){return e%60===0?(e>0?"-":"+")+d(Math.abs(e)/60,2):w(e,t)}function w(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+d(Math.floor(i/60),2)+n+d(i%60,2)}const x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=(0,u.Z)(e,r),o=i>0?i:1-i;return"YY"===t?d(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):d(o,t.length)},R:function(e,t){return d((0,l.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,n){var r=(0,s.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,o.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return d(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return d(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f:0===i?h:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?y:i>=12?g:i>=4?m:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return w(i);default:return w(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return w(i);default:return w(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(i,":");default:return"GMT"+w(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(i,":");default:return"GMT"+w(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return d(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var k=n(59158),C=n(88701),S=n(11067),M=n(98879),T=n(38864),E=n(57535),P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,L=/''/g,R=/[a-zA-Z]/;function j(e,t,n){var s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,j,D,A;(0,a.Z)(2,arguments);var N=String(t),F=(0,T.j)(),z=null!==(s=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:F.locale)&&void 0!==s?s:E.Z,B=(0,M.Z)(null!==(c=null!==(u=null!==(d=null!==(p=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null===n||void 0===n||null===(h=n.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==d?d:F.firstWeekContainsDate)&&void 0!==u?u:null===(m=F.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=(0,M.Z)(null!==(y=null!==(v=null!==(b=null!==(_=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==_?_:null===n||void 0===n||null===(w=n.locale)||void 0===w||null===(j=w.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==b?b:F.weekStartsOn)&&void 0!==v?v:null===(D=F.locale)||void 0===D||null===(A=D.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==y?y:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var $=(0,o.default)(e);if(!(0,r.default)($))throw new RangeError("Invalid time value");var V=(0,C.Z)($),q=(0,i.Z)($,V),Z={firstWeekContainsDate:B,weekStartsOn:U,locale:z,_originalDate:$};return N.match(I).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,k.Z[t])(e,z.formatLong):e})).join("").match(P).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(O);if(!t)return e;return t[1].replace(L,"'")}(r);var o=x[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,S.Do)(r)||(0,S.qp)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,S.Iu)(r)||(0,S.qp)(r,t,String(e)),o(q,r,z.localize,Z);if(i.match(R))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}},28012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getDate()}},39296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getDay()}},74995:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getHours()}},29251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(3685),i=n(79035),o=n(20904);function a(e){return(0,o.Z)(1,arguments),(0,i.default)(e,{weekStartsOn:1})}function s(e){(0,o.Z)(1,arguments);var t=function(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=a(i),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=a(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),a(n)}var l=6048e5;function c(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=a(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},57709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getMinutes()}},70893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getMonth()}},339:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return Math.floor(t.getMonth()/3)+1}},10237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getSeconds()}},6187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getTime()}},9403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getFullYear()}},82969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},97233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()<o.getTime()}},45616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17578),i=n(20904);function o(e){return(0,i.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},92119:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},98852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(29596),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},36978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},68642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47860),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},59074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},82249:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(45616),i=n(3685),o=n(20904);function a(e){if((0,o.Z)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},67246:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),a=(0,r.default)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},40766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17578),i=n(3685),o=n(20904);function a(e){var t,n;if((0,o.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,i.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},80800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17578),i=n(3685),o=n(20904);function a(e){var t,n;if((0,o.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,i.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},34611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nt});var r=n(17578);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=n(57535),s=n(43810),l=n(3685);function c(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var u=n(59158),d=n(88701),p=n(11067),h=n(98879),f=n(20904),m=n(48720),g=n(91839);function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,g.Z)(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,m.Z)(e)}(this,n)}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function k(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){function e(){_(this,e),C(this,"priority",void 0),C(this,"subPriority",0)}return k(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),M=function(e){y(n,e);var t=b(n);function n(e,r,i,o,a){var s;return _(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return k(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(S),T=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",10),C((0,m.Z)(e),"subPriority",-1),e}return k(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(S),E=function(){function e(){_(this,e),C(this,"incompatibleTokens",void 0),C(this,"priority",void 0),C(this,"subPriority",void 0)}return k(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new M(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),P=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",140),C((0,m.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),I=n(48835),O=/^(1[0-2]|0?\d)/,L=/^(3[0-1]|[0-2]?\d)/,R=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,j=/^(5[0-3]|[0-4]?\d)/,D=/^(2[0-3]|[0-1]?\d)/,A=/^(2[0-4]|[0-1]?\d)/,N=/^(1[0-1]|0?\d)/,F=/^(1[0-2]|0?\d)/,z=/^[0-5]?\d/,B=/^[0-5]?\d/,U=/^\d/,$=/^\d{1,2}/,V=/^\d{1,3}/,q=/^\d{1,4}/,Z=/^-?\d+/,H=/^-?\d/,G=/^-?\d{1,2}/,W=/^-?\d{1,3}/,Y=/^-?\d{1,4}/,K=/^([+-])(\d{2})(\d{2})?|Z/,X=/^([+-])(\d{2})(\d{2})|Z/,J=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Q=/^([+-])(\d{2}):(\d{2})|Z/,ee=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function te(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ne(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function re(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*I.vh+o*I.yJ+a*I.qk),rest:t.slice(n[0].length)}}function ie(e){return ne(Z,e)}function oe(e,t){switch(e){case 1:return ne(U,t);case 2:return ne($,t);case 3:return ne(V,t);case 4:return ne(q,t);default:return ne(new RegExp("^\\d{1,"+e+"}"),t)}}function ae(e,t){switch(e){case 1:return ne(H,t);case 2:return ne(G,t);case 3:return ne(W,t);case 4:return ne(Y,t);default:return ne(new RegExp("^-?\\d{1,"+e+"}"),t)}}function se(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function le(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function ce(e){return e%400===0||e%4===0&&e%100!==0}var ue=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",130),C((0,m.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return te(oe(4,e),r);case"yo":return te(n.ordinalNumber(e,{unit:"year"}),r);default:return te(oe(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=le(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),de=n(14376),pe=n(48117),he=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",130),C((0,m.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return te(oe(4,e),r);case"Yo":return te(n.ordinalNumber(e,{unit:"year"}),r);default:return te(oe(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=(0,de.Z)(e,r);if(n.isTwoDigitYear){var o=le(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,pe.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,pe.Z)(e,r)}}]),n}(E),fe=n(54320),me=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",130),C((0,m.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t){return ae("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,fe.Z)(r)}}]),n}(E),ge=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",130),C((0,m.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t){return ae("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),ye=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",120),C((0,m.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return oe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(E),ve=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",120),C((0,m.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return oe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(E),be=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),C((0,m.Z)(e),"priority",110),e}return k(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return te(ne(O,e),r);case"MM":return te(oe(2,e),r);case"Mo":return te(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),_e=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",110),C((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return te(ne(O,e),r);case"LL":return te(oe(2,e),r);case"Lo":return te(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),we=n(1820);var xe=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",100),C((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ne(j,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,pe.Z)(function(e,t,n){(0,f.Z)(2,arguments);var r=(0,l.default)(e),i=(0,h.Z)(t),o=(0,we.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(E),ke=n(5302);var Ce=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",100),C((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ne(j,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,fe.Z)(function(e,t){(0,f.Z)(2,arguments);var n=(0,l.default)(e),r=(0,h.Z)(t),i=(0,ke.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(E),Se=[31,28,31,30,31,30,31,31,30,31,30,31],Me=[31,29,31,30,31,30,31,31,30,31,30,31],Te=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"subPriority",1),C((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ne(L,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){var n=ce(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Me[r]:t>=1&&t<=Se[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(E),Ee=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"subpriority",1),C((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ne(R,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return ce(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(E),Pe=n(38864);function Ie(e,t,n){var r,i,o,a,s,c,u,d;(0,f.Z)(2,arguments);var p=(0,Pe.j)(),m=(0,h.Z)(null!==(r=null!==(i=null!==(o=null!==(a=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==a?a:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==i?i:null===(u=p.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,l.default)(e),y=(0,h.Z)(t),v=((y%7+7)%7<m?7:0)+y-g.getUTCDay();return g.setUTCDate(g.getUTCDate()+v),g}var Oe=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ie(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E),Le=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return te(oe(t.length,e),i);case"eo":return te(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ie(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E),Re=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return te(oe(t.length,e),i);case"co":return te(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ie(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E);var je=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",90),C((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return oe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return te(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return te(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return te(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return te(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,f.Z)(2,arguments);var n=(0,h.Z)(t);n%7===0&&(n-=7);var r=(0,l.default)(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(E),De=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",80),C((0,m.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(se(n),0,0,0),e}}]),n}(E),Ae=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",80),C((0,m.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(se(n),0,0,0),e}}]),n}(E),Ne=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",80),C((0,m.Z)(e),"incompatibleTokens",["a","b","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(se(n),0,0,0),e}}]),n}(E),Fe=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",70),C((0,m.Z)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ne(F,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(E),ze=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",70),C((0,m.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ne(D,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(E),Be=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",70),C((0,m.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ne(N,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(E),Ue=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",70),C((0,m.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ne(A,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(E),$e=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",60),C((0,m.Z)(e),"incompatibleTokens",["t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ne(z,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(E),Ve=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",50),C((0,m.Z)(e),"incompatibleTokens",["t","T"]),e}return k(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ne(B,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return oe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(E),qe=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",30),C((0,m.Z)(e),"incompatibleTokens",["t","T"]),e}return k(n,[{key:"parse",value:function(e,t){return te(oe(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(E),Ze=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",10),C((0,m.Z)(e),"incompatibleTokens",["t","T","x"]),e}return k(n,[{key:"parse",value:function(e,t){switch(t){case"X":return re(K,e);case"XX":return re(X,e);case"XXXX":return re(J,e);case"XXXXX":return re(ee,e);default:return re(Q,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(E),He=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",10),C((0,m.Z)(e),"incompatibleTokens",["t","T","X"]),e}return k(n,[{key:"parse",value:function(e,t){switch(t){case"x":return re(K,e);case"xx":return re(X,e);case"xxxx":return re(J,e);case"xxxxx":return re(ee,e);default:return re(Q,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(E),Ge=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",40),C((0,m.Z)(e),"incompatibleTokens","*"),e}return k(n,[{key:"parse",value:function(e){return ie(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(E),We=function(e){y(n,e);var t=b(n);function n(){var e;_(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),C((0,m.Z)(e),"priority",20),C((0,m.Z)(e),"incompatibleTokens","*"),e}return k(n,[{key:"parse",value:function(e){return ie(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(E),Ye={G:new P,y:new ue,Y:new he,R:new me,u:new ge,Q:new ye,q:new ve,M:new be,L:new _e,w:new xe,I:new Ce,d:new Te,D:new Ee,E:new Oe,e:new Le,c:new Re,i:new je,a:new De,b:new Ae,B:new Ne,h:new Fe,H:new ze,K:new Be,k:new Ue,m:new $e,s:new Ve,S:new qe,X:new Ze,x:new He,t:new Ge,T:new We},Ke=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Je=/^'([^]*?)'?$/,Qe=/''/g,et=/\S/,tt=/[a-zA-Z]/;function nt(e,t,n,i){var m,g,y,v,b,_,w,x,k,C,S,M,E,P,I,O,L,R;(0,f.Z)(3,arguments);var j=String(e),D=String(t),A=(0,Pe.j)(),N=null!==(m=null!==(g=null===i||void 0===i?void 0:i.locale)&&void 0!==g?g:A.locale)&&void 0!==m?m:a.Z;if(!N.match)throw new RangeError("locale must contain match property");var F=(0,h.Z)(null!==(y=null!==(v=null!==(b=null!==(_=null===i||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==_?_:null===i||void 0===i||null===(w=i.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==b?b:A.firstWeekContainsDate)&&void 0!==v?v:null===(k=A.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.firstWeekContainsDate)&&void 0!==y?y:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=(0,h.Z)(null!==(S=null!==(M=null!==(E=null!==(P=null===i||void 0===i?void 0:i.weekStartsOn)&&void 0!==P?P:null===i||void 0===i||null===(I=i.locale)||void 0===I||null===(O=I.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==E?E:A.weekStartsOn)&&void 0!==M?M:null===(L=A.locale)||void 0===L||null===(R=L.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==S?S:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===D)return""===j?(0,l.default)(n):new Date(NaN);var B,U={firstWeekContainsDate:F,weekStartsOn:z,locale:N},$=[new T],V=D.match(Xe).map((function(e){var t=e[0];return t in u.Z?(0,u.Z[t])(e,N.formatLong):e})).join("").match(Ke),q=[],Z=o(V);try{var H=function(){var t=B.value;null!==i&&void 0!==i&&i.useAdditionalWeekYearTokens||!(0,p.Do)(t)||(0,p.qp)(t,D,e),null!==i&&void 0!==i&&i.useAdditionalDayOfYearTokens||!(0,p.Iu)(t)||(0,p.qp)(t,D,e);var n=t[0],r=Ye[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var a=q.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));q.push({token:n,fullToken:t});var s=r.run(j,t,N.match,U);if(!s)return{v:new Date(NaN)};$.push(s.setter),j=s.rest}else{if(n.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Je)[1].replace(Qe,"'")),0!==j.indexOf(t))return{v:new Date(NaN)};j=j.slice(t.length)}};for(Z.s();!(B=Z.n()).done;){var G=H();if("object"===(0,r.Z)(G))return G.v}}catch(ne){Z.e(ne)}finally{Z.f()}if(j.length>0&&et.test(j))return new Date(NaN);var W=$.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return $.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Y=(0,l.default)(n);if(isNaN(Y.getTime()))return new Date(NaN);var K,X=(0,s.Z)(Y,(0,d.Z)(Y)),J={},Q=o(W);try{for(Q.s();!(K=Q.n()).done;){var ee=K.value;if(!ee.validate(X,U))return new Date(NaN);var te=ee.set(X,J,U);Array.isArray(te)?(X=te[0],c(J,te[1])):X=te}}catch(ne){Q.e(ne)}finally{Q.f()}return X}},55750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48835),i=n(20904),o=n(98879);function a(e,t){var n;(0,i.Z)(1,arguments);var a=(0,o.Z)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var m,g=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(g.date){var y=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,a);m=function(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=d(n[1]),o=d(n[2])-1,a=d(n[3]),s=d(n[4]),c=d(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(h[t]||(f(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(f(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,a)),u):new Date(NaN)}(y.restDateString,y.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);var v,b=m.getTime(),_=0;if(g.time&&(_=function(e){var t=e.match(c);if(!t)return NaN;var n=p(t[1]),i=p(t[2]),o=p(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o))return NaN;return n*r.vh+i*r.yJ+1e3*o}(g.time),isNaN(_)))return new Date(NaN);if(!g.timezone){var w=new Date(b+_),x=new Date(0);return x.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),x.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),x}return v=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(i*r.vh+o*r.yJ)}(g.timezone),isNaN(v)?new Date(NaN):new Date(b+_+v)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400===0||e%4===0&&e%100!==0}},22149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(17578),i=n(3685),o=n(67167),a=n(98879),s=n(20904);function l(e,t){if((0,s.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,i.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.default)(n,t.month)),null!=t.date&&n.setDate((0,a.Z)(t.date)),null!=t.hours&&n.setHours((0,a.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,a.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,a.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,a.Z)(t.milliseconds)),n)}},37943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setHours(a),n}},16930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setMinutes(a),n}},67167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,a,15),c.setHours(0,0,0,0);var u=function(e){(0,o.Z)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(c);return n.setMonth(a,Math.min(l,u)),n}},60322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(98879),i=n(3685),o=n(67167),a=n(20904);function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t)-(Math.floor(n.getMonth()/3)+1);return(0,o.default)(n,n.getMonth()+3*s)}},89233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setSeconds(a),n}},30062:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(3685),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},29596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},97398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},47860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},79035:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(3685),i=n(98879),o=n(20904),a=n(38864);function s(e,t){var n,s,l,c,u,d,p,h;(0,o.Z)(1,arguments);var f=(0,a.j)(),m=(0,i.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),y=g.getDay(),v=(y<m?7:0)+y-m;return g.setDate(g.getDate()-v),g.setHours(0,0,0,0),g}},20445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3685),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},16964:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(33251),i=n(20904),o=n(98879);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.default)(e,-n)}},43810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(80458),i=n(20904),o=n(98879);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},99178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(41959),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},87842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(42737),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},5515:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(46966),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},23641:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(98879),i=n(9006),o=n(20904);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},3685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17578),i=n(20904);function o(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},74480:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:p,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var w=function(e){return e instanceof S},x=function(e,t,n){var r;if(!e)return b;if("string"==typeof e)_[e]&&(r=e),t&&(_[e]=t,r=e);else{var i=e.name;_[i]=e,r=i}return!n&&r&&(b=r),r||!n&&b},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},C=v;C.l=x,C.i=w,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e)}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<k(e)},y.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),h=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?h(1,0):h(31,11);case c:return r?h(1,g):h(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return h(r?y-_:y+(6-_),g);case s:case p:return f(v+"Hours",0);case a:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case i:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(p,1);m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,u){var p,h=this;r=Number(r);var f=C.p(u),m=function(e){var t=k(h);return C.w(t.date(t.date()+Math.round(e*r)),h)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(p={},p[o]=t,p[a]=n,p[i]=e,p)[f]||1,y=this.$d.getTime()+r*g;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].substr(0,o)},d=function(e){return C.s(o%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:u(n.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:C.s(o,2,"0"),h:d(1),hh:d(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(e,t){return t||f[e]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,p,h){var f,m=C.p(p),g=k(r),y=(g.utcOffset()-this.utcOffset())*t,v=this-g,b=C.m(this,g);return b=(f={},f[d]=b/12,f[c]=b,f[u]=b/3,f[l]=(v-y)/6048e5,f[s]=(v-y)/864e5,f[a]=v/n,f[o]=v/t,f[i]=v/e,f)[m]||v,h?b:C.a(b)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return _[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),M=S.prototype;return k.prototype=M,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=_[b],k.Ls=_,k.p={},k}()},16955:function(e){e.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")}}()},9722:function(e){e.exports=function(){"use strict";var e="month",t="quarter";return function(n,r){var i=r.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var o=i.add;i.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):o.bind(this)(n,r)};var a=i.startOf;i.startOf=function(n,r){var i=this.$utils(),o=!!i.u(r)||r;if(i.p(n)===t){var s=this.quarter()-1;return o?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(n,r)}}}()},17458:(e,t,n)=>{var r=n(37774),i=n(59775),o=n(91104),a=n(97127),s=n(14073),l=n(3185),c=Date.prototype.getTime;function u(e,t,n){var h=n||{};return!!(h.strict?o(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?h.strict?o(e,t):e==t:function(e,t,n){var o,h;if(typeof e!==typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var f=a(e),m=a(t);if(f!==m)return!1;if(f||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=p(e),y=p(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!==typeof t)return!1;try{var v=r(e),b=r(t)}catch(_){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),o=v.length-1;o>=0;o--)if(v[o]!=b[o])return!1;for(o=v.length-1;o>=0;o--)if(!u(e[h=v[o]],t[h],n))return!1;return!0}(e,t,h))}function d(e){return null===e||void 0===e}function p(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=u},54774:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?o.arrayMerge(e,n,o):s(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},91203:(e,t,n)=>{"use strict";var r=n(98489)(),i=n(3946),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(c){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(39858);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},30434:(e,t,n)=>{"use strict";var r=n(37774),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(91203),l=n(98489)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],n[o[s]])};u.supportsDescriptors=!!l,e.exports=u},80296:e=>{function t(e,t,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(e,t,n,r)}t.prototype.run=function(e,t,n,r){this._init(e,t,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},t.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this.noise=[],this._datasetLength=e.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},t.prototype._expandCluster=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(t=this._mergeArrays(t,i))}1!==this._assigned[r]&&this._addToCluster(r,e)}},t.prototype._addToCluster=function(e,t){this.clusters[t].push(e),this._assigned[e]=1},t.prototype._regionQuery=function(e){for(var t=[],n=0;n<this._datasetLength;n++){this.distance(this.dataset[e],this.dataset[n])<this.epsilon&&t.push(n)}return t},t.prototype._mergeArrays=function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];e.indexOf(i)<0&&e.push(i)}return e},t.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=t)},22386:e=>{function t(e,t,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(e,t,n)}t.prototype.init=function(e,t,n){this.assignments=[],this.centroids=[],"undefined"!==typeof e&&(this.dataset=e),"undefined"!==typeof t&&(this.k=t),"undefined"!==typeof n&&(this.distance=n)},t.prototype.run=function(e,t){this.init(e,t);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(u),s=0,l=0;l<u;l++)a[l]=0;for(var c=0;c<n;c++){var u=this.dataset[c].length;if(o===this.assignments[c]){for(l=0;l<u;l++)a[l]+=this.dataset[c][l];s++}}if(s>0){for(l=0;l<u;l++)a[l]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},t.prototype.randomCentroid=function(){var e,t,n=this.dataset.length-1;do{t=Math.round(Math.random()*n),e=this.dataset[t]}while(this.centroids.indexOf(e)>=0);return e},t.prototype.assign=function(){for(var e,t=!1,n=this.dataset.length,r=0;r<n;r++)(e=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=e,t=!0);return t},t.prototype.getClusters=function(){for(var e,t=new Array(this.k),n=0;n<this.assignments.length;n++)"undefined"===typeof t[e=this.assignments[n]]&&(t[e]=[]),t[e].push(n);return t},t.prototype.argmin=function(e,t,n){for(var r,i=Number.MAX_VALUE,o=0,a=t.length,s=0;s<a;s++)(r=n(e,t[s]))<i&&(i=r,o=s);return o},t.prototype.distance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;){var i=e[r]-t[r];n+=i*i}return Math.sqrt(n)},e.exports&&(e.exports=t)},99771:(e,t,n)=>{if(e.exports)var r=n(6269);function i(e,t,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(e,t,n,r)}i.prototype.run=function(e,t,n,i){this._init(e,t,n,i);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var l=new r(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,l),this._expandCluster(s,l))}return this.clusters},i.prototype.getReachabilityPlot=function(){for(var e=[],t=0,n=this._orderedList.length;t<n;t++){var r=this._orderedList[t],i=this._reachability[r];e.push([r,i])}return e},i.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},i.prototype._updateQueue=function(e,t,n){var r=this;this._coreDistance=this._distanceToCore(e),t.forEach((function(t){if(void 0===r._processed[t]){var i=r.distance(r.dataset[e],r.dataset[t]),o=Math.max(r._coreDistance,i);void 0===r._reachability[t]?(r._reachability[t]=o,n.insert(t,o)):o<r._reachability[t]&&(r._reachability[t]=o,n.remove(t),n.insert(t,o))}}))},i.prototype._expandCluster=function(e,t){for(var n=t.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[e].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,t),this._expandCluster(e,t))}}},i.prototype._distanceToCore=function(e){for(var t=this.epsilon,n=0;n<t;n++){if(this._regionQuery(e,n).length>=this.minPts)return n}},i.prototype._regionQuery=function(e,t){t=t||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[e],this.dataset[r])<t&&n.push(r);return n},i.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=i)},6269:e=>{function t(e,t,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(e,t,n)}t.prototype.insert=function(e,t){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?t>i&&(n=r):t<i&&(n=r)}this._insertAt(e,t,n)},t.prototype.remove=function(e){for(var t=this._queue.length;t--;){if(e===this._queue[t]){this._queue.splice(t,1),this._priorities.splice(t,1);break}}},t.prototype.forEach=function(e){this._queue.forEach(e)},t.prototype.getElements=function(){return this._queue},t.prototype.getElementPriority=function(e){return this._priorities[e]},t.prototype.getPriorities=function(){return this._priorities},t.prototype.getElementsWithPriorities=function(){for(var e=[],t=0,n=this._queue.length;t<n;t++)e.push([this._queue[t],this._priorities[t]]);return e},t.prototype._init=function(e,t,n){if(e&&t){if(this._queue=[],this._priorities=[],e.length!==t.length)throw new Error("Arrays must have the same length");for(var r=0;r<e.length;r++)this.insert(e[r],t[r])}n&&(this._sorting=n)},t.prototype._insertAt=function(e,t,n){this._queue.length===n?(this._queue.push(e),this._priorities.push(t)):(this._queue.splice(n,0,e),this._priorities.splice(n,0,t))},e.exports&&(e.exports=t)},42781:(e,t,n)=>{e.exports&&(e.exports={DBSCAN:n(80296),KMEANS:n(22386),OPTICS:n(99771),PriorityQueue:n(6269)})},394:(e,t,n)=>{"use strict";var r=n(9765);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(14978));e.exports=t.default},14978:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},64623:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},9048:(e,t,n)=>{"use strict";var r=n(9765);t.__esModule=!0,t.default=void 0;var i=function(){};r(n(39695)).default&&(i=document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var o=i;t.default=o,e.exports=t.default},59634:(e,t,n)=>{"use strict";var r=n(9765);t.__esModule=!0,t.default=void 0;var i=function(){};r(n(39695)).default&&(i=document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)}))}:void 0);var o=i;t.default=o,e.exports=t.default},88525:(e,t,n)=>{"use strict";var r=n(9765);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,c,u,d,p,h,f,m=r(n(39695)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=u,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=f,t.animationTiming=h,t.animationDuration=p,t.animationName=d,m.default){var y=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=y.prefix,t.transitionEnd=o=y.transitionEnd,t.animationEnd=a=y.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=p=i+"-animation-duration",t.animationTiming=h=i+"-animation-delay",t.animationDelay=f=i+"-animation-timing-function"}var v={transform:g,end:o,property:s,timing:c,delay:u,duration:l};t.default=v},39695:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"===typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},70447:(e,t,n)=>{"use strict";var r=n(9765);t.__esModule=!0,t.default=void 0;var i,o=r(n(39695)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"===typeof window[a]&&window[a](e)};var u=i;t.default=u,e.exports=t.default},81746:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,o){return r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o},r.apply(null,arguments)}function i(e){return o(e)||a(e)||s(e)||c()}function o(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,p=Object.isFrozen,h=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,y=Object.create,v="undefined"!==typeof Reflect&&Reflect,b=v.apply,_=v.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),_||(_=function(e,t){return r(e,i(t))});var w=L(Array.prototype.forEach),x=L(Array.prototype.pop),k=L(Array.prototype.push),C=L(String.prototype.toLowerCase),S=L(String.prototype.toString),M=L(String.prototype.match),T=L(String.prototype.replace),E=L(String.prototype.indexOf),P=L(String.prototype.trim),I=L(RegExp.prototype.test),O=R(TypeError);function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return b(e,t,r)}}function R(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(e,n)}}function j(e,t,n){n=n||C,d&&d(e,null);for(var r=t.length;r--;){var i=t[r];if("string"===typeof i){var o=n(i);o!==i&&(p(t)||(t[r]=o),i=o)}e[i]=!0}return e}function D(e){var t,n=y(null);for(t in e)!0===b(u,e,[t])&&(n[t]=e[t]);return n}function A(e,t){for(;null!==e;){var n=f(e,t);if(n){if(n.get)return L(n.get);if("function"===typeof n.value)return L(n.value)}e=h(e)}function r(e){return console.warn("fallback value for",e),null}return r}var N=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),$=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=m(["#text"]),q=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=g(/<%[\w\W]*|[\w\W]*%>/gm),K=g(/\${[\w\W]*}/gm),X=g(/^data-[\-\w.\u00B7-\uFFFF]/),J=g(/^aria-[\-\w]+$/),Q=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"===typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return oe(e)};if(n.version="2.4.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,p=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,h=t.HTMLFormElement,f=t.DOMParser,g=t.trustedTypes,y=c.prototype,v=A(y,"cloneNode"),b=A(y,"nextSibling"),_=A(y,"childNodes"),L=A(y,"parentNode");if("function"===typeof s){var R=o.createElement("template");R.content&&R.content.ownerDocument&&(o=R.content.ownerDocument)}var ae=ie(g,r),se=ae?ae.createHTML(""):"",le=o,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,pe=le.getElementsByTagName,he=r.importNode,fe={};try{fe=D(o).documentMode?o.documentMode:{}}catch(Lt){}var me={};n.isSupported="function"===typeof L&&ce&&"undefined"!==typeof ce.createHTMLDocument&&9!==fe;var ge,ye,ve=W,be=Y,_e=K,we=X,xe=J,ke=ee,Ce=te,Se=Q,Me=null,Te=j({},[].concat(i(N),i(F),i(z),i(U),i(V))),Ee=null,Pe=j({},[].concat(i(q),i(Z),i(H),i(G))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,Le=null,Re=!0,je=!0,De=!1,Ae=!1,Ne=!1,Fe=!1,ze=!1,Be=!1,Ue=!1,$e=!1,Ve=!0,qe=!1,Ze="user-content-",He=!0,Ge=!1,We={},Ye=null,Ke=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,Je=j({},["audio","video","img","source","image","track"]),Qe=null,et=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",it=rt,ot=!1,at=null,st=j({},[tt,nt,rt],S),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,dt=o.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=D(t),ge=ge=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?S:C,Me="ALLOWED_TAGS"in t?j({},t.ALLOWED_TAGS,ye):Te,Ee="ALLOWED_ATTR"in t?j({},t.ALLOWED_ATTR,ye):Pe,at="ALLOWED_NAMESPACES"in t?j({},t.ALLOWED_NAMESPACES,S):st,Qe="ADD_URI_SAFE_ATTR"in t?j(D(et),t.ADD_URI_SAFE_ATTR,ye):et,Xe="ADD_DATA_URI_TAGS"in t?j(D(Je),t.ADD_DATA_URI_TAGS,ye):Je,Ye="FORBID_CONTENTS"in t?j({},t.FORBID_CONTENTS,ye):Ke,Oe="FORBID_TAGS"in t?j({},t.FORBID_TAGS,ye):{},Le="FORBID_ATTR"in t?j({},t.FORBID_ATTR,ye):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Re=!1!==t.ALLOW_ARIA_ATTR,je=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,He=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,it=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(je=!1),Ue&&(Be=!0),We&&(Me=j({},i(V)),Ee=[],!0===We.html&&(j(Me,N),j(Ee,q)),!0===We.svg&&(j(Me,F),j(Ee,Z),j(Ee,G)),!0===We.svgFilters&&(j(Me,z),j(Ee,Z),j(Ee,G)),!0===We.mathMl&&(j(Me,U),j(Ee,H),j(Ee,G))),t.ADD_TAGS&&(Me===Te&&(Me=D(Me)),j(Me,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Ee===Pe&&(Ee=D(Ee)),j(Ee,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&j(Qe,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ye===Ke&&(Ye=D(Ye)),j(Ye,t.FORBID_CONTENTS,ye)),He&&(Me["#text"]=!0),Ne&&j(Me,["html","head","body"]),Me.table&&(j(Me,["tbody"]),delete Oe.tbody),m&&m(t),ut=t)},ft=j({},["mi","mo","mn","ms","mtext"]),mt=j({},["foreignobject","desc","title","annotation-xml"]),gt=j({},["title","style","font","a","script"]),yt=j({},F);j(yt,z),j(yt,B);var vt=j({},U);j(vt,$);var bt=function(e){var t=L(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||ft[r]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&mt[r]:Boolean(vt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!mt[r])&&!(t.namespaceURI===tt&&!ft[r])&&!vt[n]&&(gt[n]||!yt[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))},_t=function(e){k(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Lt){try{e.outerHTML=se}catch(Lt){e.remove()}}},wt=function(e,t){try{k(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Lt){k(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Be||Ue)try{_t(t)}catch(Lt){}else try{t.setAttribute(e,"")}catch(Lt){}},xt=function(e){var t,n;if(ze)e="<remove></remove>"+e;else{var r=M(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ae?ae.createHTML(e):e;if(it===rt)try{t=(new f).parseFromString(i,ge)}catch(Lt){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=ot?se:i}catch(Lt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),it===rt?pe.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},kt=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ct=function(e){return e instanceof h&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof p)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},Mt=function(e,t,r){me[e]&&w(me[e],(function(e){e.call(n,t,r,ut)}))},Tt=function(e){var t;if(Mt("beforeSanitizeElements",e,null),Ct(e))return _t(e),!0;if(I(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var r=ye(e.nodeName);if(Mt("uponSanitizeElement",e,{tagName:r,allowedTags:Me}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&I(/<[/\w]/g,e.innerHTML)&&I(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===r&&I(/<template/i,e.innerHTML))return _t(e),!0;if(!Me[r]||Oe[r]){if(!Oe[r]&&Pt(r)){if(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,r))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(r))return!1}if(He&&!Ye[r]){var i=L(e)||e.parentNode,o=_(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(v(o[a],!0),b(e))}return _t(e),!0}return e instanceof c&&!bt(e)?(_t(e),!0):"noscript"!==r&&"noembed"!==r||!I(/<\/no(script|embed)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(t=e.textContent,t=T(t,ve," "),t=T(t,be," "),t=T(t,_e," "),e.textContent!==t&&(k(n.removed,{element:e.cloneNode()}),e.textContent=t)),Mt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Et=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in o||n in dt))return!1;if(je&&!Le[t]&&I(we,t));else if(Re&&I(xe,t));else if(!Ee[t]||Le[t]){if(!(Pt(e)&&(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&I(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Qe[t]);else if(I(Se,T(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Xe[e])if(De&&!I(ke,T(n,Ce,"")));else if(n)return!1;return!0},Pt=function(e){return e.indexOf("-")>0},It=function(t){var r,i,o,a;Mt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(a=s.length;a--;){var c=r=s[a],u=c.name,d=c.namespaceURI;if(i="value"===u?r.value:P(r.value),o=ye(u),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,Mt("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(wt(u,t),l.keepAttr))if(I(/\/>/i,i))wt(u,t);else{Ae&&(i=T(i,ve," "),i=T(i,be," "),i=T(i,_e," "));var p=ye(t.nodeName);if(Et(p,o,i)){if(!qe||"id"!==o&&"name"!==o||(wt(u,t),i=Ze+i),ae&&"object"===e(g)&&"function"===typeof g.getAttributeType)if(d);else switch(g.getAttributeType(p,o)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i)}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),x(n.removed)}catch(Lt){}}}}Mt("afterSanitizeAttributes",t,null)}},Ot=function e(t){var n,r=kt(t);for(Mt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Mt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof a&&e(n.content),It(n));Mt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(i){var o,s,c,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!i)&&(i="\x3c!--\x3e"),"string"!==typeof i&&!St(i)){if("function"!==typeof i.toString)throw O("toString is not a function");if("string"!==typeof(i=i.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof i)return t.toStaticHTML(i);if(St(i))return t.toStaticHTML(i.outerHTML)}return i}if(Fe||ht(p),n.removed=[],"string"===typeof i&&(Ge=!1),Ge){if(i.nodeName){var h=ye(i.nodeName);if(!Me[h]||Oe[h])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof l)1===(s=(o=xt("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!Be&&!Ae&&!Ne&&-1===i.indexOf("<"))return ae&&$e?ae.createHTML(i):i;if(!(o=xt(i)))return Be?null:$e?se:""}o&&ze&&_t(o.firstChild);for(var f=kt(Ge?i:o);c=f.nextNode();)3===c.nodeType&&c===u||Tt(c)||(c.content instanceof a&&Ot(c.content),It(c),u=c);if(u=null,Ge)return i;if(Be){if(Ue)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return Ee.shadowroot&&(d=he.call(r,d,!0)),d}var m=Ne?o.outerHTML:o.innerHTML;return Ne&&Me["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&I(ne,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Ae&&(m=T(m,ve," "),m=T(m,be," "),m=T(m,_e," ")),ae&&$e?ae.createHTML(m):m},n.setConfig=function(e){ht(e),Fe=!0},n.clearConfig=function(){ut=null,Fe=!1},n.isValidAttribute=function(e,t,n){ut||ht({});var r=ye(e),i=ye(t);return Et(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(me[e]=me[e]||[],k(me[e],t))},n.removeHook=function(e){if(me[e])return x(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}return oe()}()},86407:e=>{"use strict";function t(e,t,o){o=o||2;var a,s,l,d,p,f,m,g=t&&t.length,y=g?t[0]*o:e.length,v=n(e,0,y,o,!0),b=[];if(!v||v.next===v.prev)return b;if(g&&(v=function(e,t,i,o){var a,s,l,d=[];for(a=0,s=t.length;a<s;a++)(l=n(e,t[a]*o,a<s-1?t[a+1]*o:e.length,o,!1))===l.next&&(l.steiner=!0),d.push(h(l));for(d.sort(c),a=0;a<d.length;a++)i=r(i=u(d[a],i),i.next);return i}(e,t,v,o)),e.length>80*o){a=l=e[0],s=d=e[1];for(var _=o;_<y;_+=o)(p=e[_])<a&&(a=p),(f=e[_+1])<s&&(s=f),p>l&&(l=p),f>d&&(d=f);m=0!==(m=Math.max(l-a,d-s))?1/m:0}return i(v,b,o,a,s,m),b}function n(e,t,n,r,i){var o,a;if(i===M(e,t,n,r)>0)for(o=t;o<n;o+=r)a=k(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=k(o,e[o],e[o+1],a);return a&&y(a,a.next)&&(C(a),a=a.next),a}function r(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!y(r,r.next)&&0!==g(r.prev,r,r.next))r=r.next;else{if(C(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function i(e,t,n,c,u,d,h){if(e){!h&&d&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=p(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,c,u,d);for(var f,m,g=e;e.prev!==e.next;)if(f=e.prev,m=e.next,d?a(e,c,u,d):o(e))t.push(f.i/n),t.push(e.i/n),t.push(m.i/n),C(e),e=m.next,g=m.next;else if((e=m)===g){h?1===h?i(e=s(r(e),t,n),t,n,c,u,d,2):2===h&&l(e,t,n,c,u,d):i(r(e),t,n,c,u,d,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(g(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(f(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&g(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function a(e,t,n,r){var i=e.prev,o=e,a=e.next;if(g(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,l=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,d=p(s,l,t,n,r),h=p(c,u,t,n,r),m=e.prevZ,y=e.nextZ;m&&m.z>=d&&y&&y.z<=h;){if(m!==e.prev&&m!==e.next&&f(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;if(m=m.prevZ,y!==e.prev&&y!==e.next&&f(i.x,i.y,o.x,o.y,a.x,a.y,y.x,y.y)&&g(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;m&&m.z>=d;){if(m!==e.prev&&m!==e.next&&f(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;m=m.prevZ}for(;y&&y.z<=h;){if(y!==e.prev&&y!==e.next&&f(i.x,i.y,o.x,o.y,a.x,a.y,y.x,y.y)&&g(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function s(e,t,n){var i=e;do{var o=i.prev,a=i.next.next;!y(o,a)&&v(o,i,i.next,a)&&w(o,a)&&w(a,o)&&(t.push(o.i/n),t.push(i.i/n),t.push(a.i/n),C(i),C(i.next),i=e=a),i=i.next}while(i!==e);return r(i)}function l(e,t,n,o,a,s){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=x(l,c);return l=r(l,l.next),u=r(u,u.next),i(l,t,n,o,a,s),void i(u,t,n,o,a,s)}c=c.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function u(e,t){var n=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n;var l,c=n,u=n.x,p=n.y,h=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&f(o<p?i:a,o,u,p,o<p?a:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),w(r,e)&&(l<h||l===h&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,h=l)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var i=x(n,e),o=r(n,n.next);return r(i,i.next),t===n?o:t}function d(e,t){return g(e.prev,e,t.prev)<0&&g(t.next,e,e.next)<0}function p(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function h(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function f(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function m(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&v(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(w(e,t)&&w(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(g(e.prev,e,t.prev)||g(e,t.prev,t))||y(e,t)&&g(e.prev,e,e.next)>0&&g(t.prev,t,t.next)>0)}function g(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function y(e,t){return e.x===t.x&&e.y===t.y}function v(e,t,n,r){var i=_(g(e,t,n)),o=_(g(e,t,r)),a=_(g(n,r,e)),s=_(g(n,r,t));return i!==o&&a!==s||(!(0!==i||!b(e,n,t))||(!(0!==o||!b(e,r,t))||(!(0!==a||!b(n,e,r))||!(0!==s||!b(n,t,r)))))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function w(e,t){return g(e.prev,e,e.next)<0?g(e,t,e.next)>=0&&g(e,e.prev,t)>=0:g(e,t,e.prev)<0||g(e,e.next,t)<0}function x(e,t){var n=new S(e.i,e.x,e.y),r=new S(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function k(e,t,n,r){var i=new S(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function C(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function S(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}e.exports=t,e.exports.default=t,t.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(M(e,0,o,n));if(i)for(var s=0,l=t.length;s<l;s++){var c=t[s]*n,u=s<l-1?t[s+1]*n:e.length;a-=Math.abs(M(e,c,u,n))}var d=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,h=r[s+1]*n,f=r[s+2]*n;d+=Math.abs((e[p]-e[f])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[f+1]-e[p+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},t.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}},90581:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(i,o){if(i===o)return!0;if(i&&o&&"object"==typeof i&&"object"==typeof o){var a,s,l,c=t(i),u=t(o);if(c&&u){if((s=i.length)!=o.length)return!1;for(a=s;0!==a--;)if(!e(i[a],o[a]))return!1;return!0}if(c!=u)return!1;var d=i instanceof Date,p=o instanceof Date;if(d!=p)return!1;if(d&&p)return i.getTime()==o.getTime();var h=i instanceof RegExp,f=o instanceof RegExp;if(h!=f)return!1;if(h&&f)return i.toString()==o.toString();var m=n(i);if((s=m.length)!==n(o).length)return!1;for(a=s;0!==a--;)if(!r.call(o,m[a]))return!1;for(a=s;0!==a--;)if(!e(i[l=m[a]],o[l]))return!1;return!0}return i!==i&&o!==o}},47986:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},67954:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},30782:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},84868:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},13666:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},31352:(e,t,n)=>{"use strict";var r=n(13666);e.exports=Function.prototype.bind||r},28784:e=>{"use strict";var t=function(){return"string"===typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(i){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"===typeof r&&""!==function(){}.bind().name},e.exports=t},903:(e,t,n)=>{var r=n(17458),i=function(e){this.precision=e&&e.precision?e.precision:17,this.direction=!(!e||!e.direction)&&e.direction,this.pseudoNode=!(!e||!e.pseudoNode)&&e.pseudoNode,this.objectComparator=e&&e.objectComparator?e.objectComparator:s};function o(e){return e.coordinates.map((function(t){return{type:e.type.replace("Multi",""),coordinates:t}}))}function a(e,t){return e.hasOwnProperty("coordinates")?e.coordinates.length===t.coordinates.length:e.length===t.length}function s(e,t){return r(e,t,{strict:!0})}i.prototype.compare=function(e,t){if(e.type!==t.type||!a(e,t))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,t.coordinates);case"LineString":return this.compareLine(e.coordinates,t.coordinates,0,!1);case"Polygon":return this.comparePolygon(e,t);case"Feature":return this.compareFeature(e,t);default:if(0===e.type.indexOf("Multi")){var n=this,r=o(e),i=o(t);return r.every((function(e){return this.some((function(t){return n.compare(e,t)}))}),i)}}return!1},i.prototype.compareCoord=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n].toFixed(this.precision)!==t[n].toFixed(this.precision))return!1;return!0},i.prototype.compareLine=function(e,t,n,r){if(!a(e,t))return!1;var i=this.pseudoNode?e:this.removePseudo(e),o=this.pseudoNode?t:this.removePseudo(t);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var s=this.compareCoord(i[n],o[n]);return this.direction||s?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},i.prototype.fixStartIndex=function(e,t){for(var n,r=-1,i=0;i<e.length;i++)if(this.compareCoord(e[i],t[0])){r=i;break}return r>=0&&(n=[].concat(e.slice(r,e.length),e.slice(1,r+1))),n},i.prototype.comparePath=function(e,t){var n=this;return e.every((function(e,t){return n.compareCoord(e,this[t])}),t)},i.prototype.comparePolygon=function(e,t){if(this.compareLine(e.coordinates[0],t.coordinates[0],1,!0)){var n=e.coordinates.slice(1,e.coordinates.length),r=t.coordinates.slice(1,t.coordinates.length),i=this;return n.every((function(e){return this.some((function(t){return i.compareLine(e,t,1,!0)}))}),r)}return!1},i.prototype.compareFeature=function(e,t){return!(e.id!==t.id||!this.objectComparator(e.properties,t.properties)||!this.compareBBox(e,t))&&this.compare(e.geometry,t.geometry)},i.prototype.compareBBox=function(e,t){return!!(!e.bbox&&!t.bbox||e.bbox&&t.bbox&&this.compareCoord(e.bbox,t.bbox))},i.prototype.removePseudo=function(e){return e},e.exports=i},21099:(e,t,n)=>{var r=n(36409),i=n(92001),o=n(35432),a=n(59484).Z,s=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function c(e){var t=new r(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})):s(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})),r.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.remove.call(this,e,t)},t.clear=function(){return r.prototype.clear.call(this)},t.search=function(e){var t=r.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return r.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=r.prototype.all.call(this);return l(e)},t.toJSON=function(){return r.prototype.toJSON.call(this)},t.fromJSON=function(e){return r.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=a(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=a(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},3946:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(I){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=n(41118)(),p=n(59062)(),h=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),f={},m="undefined"!==typeof Uint8Array&&h?h(Uint8Array):r,g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&h?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&h?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(h)try{null.error}catch(I){var y=h(h(I));g["%Error.prototype%"]=y}var v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(n=h(i.prototype))}return g[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(31352),w=n(92438),x=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),C=_.call(Function.call,String.prototype.replace),S=_.call(Function.call,String.prototype.slice),M=_.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,P=function(e,t){var n,r=e;if(w(b,r)&&(r="%"+(n=b[r])[0]+"%"),w(g,r)){var o=g[r];if(o===f&&(o=v(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,T,(function(e,t,n,i){r[r.length]=n?C(i,E,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=P("%"+r+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(r=d[0],k(n,x([0,1],d)));for(var p=1,h=!0;p<n.length;p+=1){var f=n[p],m=S(f,0,1),y=S(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&h||(u=!0),w(g,s="%"+(r+="."+f)+"%"))c=g[s];else if(null!=c){if(!(f in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&p+1>=n.length){var v=l(c,f);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else h=w(c,f),c=c[f];h&&!u&&(g[s]=c)}}return c}},39858:(e,t,n)=>{"use strict";var r=n(3946)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},98489:(e,t,n)=>{"use strict";var r=n(3946)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},59062:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},41118:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(50400);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},50400:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},74788:(e,t,n)=>{"use strict";var r=n(50400);e.exports=function(){return r()&&!!Symbol.toStringTag}},92438:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(31352);e.exports=o.call(r,i)},17073:(e,t,n)=>{"use strict";n.d(t,{lX:()=>C,q_:()=>I,ob:()=>g,PP:()=>L,Ep:()=>m,Hp:()=>y});var r=n(65900);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=a.length;p>=0;p--){var h=a[p];"."===h?o(a,p):".."===h?(o(a,p),d++):d&&(o(a,p),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var f=a.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c="Invariant failed";const u=function(e,t){if(!e)throw new Error(c)};function d(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"===typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function C(e){void 0===e&&(e={}),b||u(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,c=void 0===l?_:l,p=o.keyLength,y=void 0===p?6:p,C=e.basename?f(d(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return C&&(o=h(o,C)),g(o,r,n)}function M(){return Math.random().toString(36).substr(2,y)}var T=v();function E(e){(0,r.Z)(B,e),B.length=t.length,T.notifyListeners(B.location,B.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(S(e.state))}function I(){L(S(k()))}var O=!1;function L(e){if(O)O=!1,E();else{T.confirmTransitionTo(e,"POP",c,(function(t){t?E({action:"POP",location:e}):function(e){var t=B.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(O=!0,A(i))}(e)}))}}var R=S(k()),j=[R.key];function D(e){return C+m(e)}function A(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?(window.addEventListener(w,P),i&&window.addEventListener(x,I)):0===N&&(window.removeEventListener(w,P),i&&window.removeEventListener(x,I))}var z=!1;var B={length:t.length,action:"POP",location:R,createHref:D,push:function(e,r){var i="PUSH",o=g(e,r,M(),B.location);T.confirmTransitionTo(o,i,c,(function(e){if(e){var r=D(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=j.indexOf(B.location.key),u=j.slice(0,c+1);u.push(o.key),j=u,E({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=g(e,r,M(),B.location);T.confirmTransitionTo(o,i,c,(function(e){if(e){var r=D(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=j.indexOf(B.location.key);-1!==c&&(j[c]=o.key),E({action:i,location:o})}else window.location.replace(r)}}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return z||(F(1),z=!0),function(){return z&&(z=!1,F(-1)),t()}},listen:function(e){var t=T.appendListener(e);return F(1),function(){F(-1),t()}}};return B}var S="hashchange",M={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:d},slash:{encodePath:d,decodePath:d}};function T(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function E(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function P(e){window.location.replace(T(window.location.href)+"#"+e)}function I(e){void 0===e&&(e={}),b||u(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?_:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?f(d(e.basename)):"",c=M[s],p=c.encodePath,y=c.decodePath;function w(){var e=y(E());return l&&(e=h(e,l)),g(e)}var x=v();function k(e){(0,r.Z)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var C=!1,I=null;function O(){var e,t,n=E(),r=p(n);if(n!==r)P(r);else{var i=w(),a=B.location;if(!C&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(I===m(i))return;I=null,function(e){if(C)C=!1,k();else{var t="POP";x.confirmTransitionTo(e,t,o,(function(n){n?k({action:t,location:e}):function(e){var t=B.location,n=D.lastIndexOf(m(t));-1===n&&(n=0);var r=D.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(C=!0,A(i))}(e)}))}}(i)}}var L=E(),R=p(L);L!==R&&P(R);var j=w(),D=[m(j)];function A(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?window.addEventListener(S,O):0===N&&window.removeEventListener(S,O)}var z=!1;var B={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=T(window.location.href)),n+"#"+p(l+m(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),i=p(l+t);if(E()!==i){I=t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(m(B.location)),a=D.slice(0,o+1);a.push(t),D=a,k({action:n,location:r})}else k()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),i=p(l+t);E()!==i&&(I=t,P(i));var o=D.indexOf(m(B.location));-1!==o&&(D[o]=t),k({action:n,location:r})}}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return z||(F(1),z=!0),function(){return z&&(z=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return B}function O(e,t,n){return Math.min(Math.max(e,t),n)}function L(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.Z)(_,e),_.length=_.entries.length,u.notifyListeners(_.location,_.action)}function p(){return Math.random().toString(36).substr(2,c)}var h=O(s,0,o.length-1),f=o.map((function(e){return g(e,void 0,"string"===typeof e?p():e.key||p())})),y=m;function b(e){var t=O(_.index+e,0,_.entries.length-1),r=_.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var _={length:f.length,action:"POP",location:f[h],index:h,entries:f,createHref:y,push:function(e,t){var r="PUSH",i=g(e,t,p(),_.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,p(),_.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(_.entries[_.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return _}},1815:(e,t,n)=>{"use strict";var r=n(92146),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!s||!s[y])){var v=p(n,y);try{c(t,y,v)}catch(b){}}}}return t}},98008:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},38589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836),i=n(73932);r.__exportStar(n(39393),t),r.__exportStar(n(73932),t),r.__exportStar(n(72876),t),t.default=i.IntlMessageFormat},73932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntlMessageFormat=void 0;var r=n(5836),i=n(82700),o=n(18664),a=n(39393);function s(e,t){return t?Object.keys(e).reduce((function(n,i){var o,a;return n[i]=(o=e[i],(a=t[i])?r.__assign(r.__assign(r.__assign({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=r.__assign(r.__assign({},o[t]),a[t]||{}),e}),{})):o),n}),r.__assign({},e)):e}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var c=function(){function e(t,n,i,c){var u,d=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===a.PART_TYPE.literal&&"string"===typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.formatToParts)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"===typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var p=c||{},h=(p.formatters,r.__rest(p,["formatters"]));this.ast=e.__parse(t,r.__assign(r.__assign({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,i),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(u.number),strategy:o.strategies.variadic}),getDateTimeFormat:(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(u.dateTime),strategy:o.strategies.variadic}),getPluralRules:(0,o.memoize)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,r.__spreadArray([void 0],t,!1)))}),{cache:l(u.pluralRules),strategy:o.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if("undefined"!==typeof Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"===typeof e?e:e[0])}},e.__parse=i.parse,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.IntlMessageFormat=c},72876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingValueError=t.InvalidValueTypeError=t.InvalidValueError=t.FormatError=t.ErrorCode=void 0;var r,i=n(5836);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(t.ErrorCode=r={}));var o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return i.__extends(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);t.FormatError=o;var a=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return i.__extends(t,e),t}(o);t.InvalidValueError=a;var s=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return i.__extends(t,e),t}(o);t.InvalidValueTypeError=s;var l=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return i.__extends(t,e),t}(o);t.MissingValueError=l},39393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatToParts=t.isFormatXMLElementFn=t.PART_TYPE=void 0;var r,i=n(82700),o=n(72876);function a(e){return"function"===typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(r||(t.PART_TYPE=r={})),t.isFormatXMLElementFn=a,t.formatToParts=function e(t,n,s,l,c,u,d){if(1===t.length&&(0,i.isLiteralElement)(t[0]))return[{type:r.literal,value:t[0].value}];for(var p=[],h=0,f=t;h<f.length;h++){var m=f[h];if((0,i.isLiteralElement)(m))p.push({type:r.literal,value:m.value});else if((0,i.isPoundElement)(m))"number"===typeof u&&p.push({type:r.literal,value:s.getNumberFormat(n).format(u)});else{var g=m.value;if(!c||!(g in c))throw new o.MissingValueError(g,d);var y=c[g];if((0,i.isArgumentElement)(m))y&&"string"!==typeof y&&"number"!==typeof y||(y="string"===typeof y||"number"===typeof y?String(y):""),p.push({type:"string"===typeof y?r.literal:r.object,value:y});else if((0,i.isDateElement)(m)){var v="string"===typeof m.style?l.date[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;p.push({type:r.literal,value:s.getDateTimeFormat(n,v).format(y)})}else if((0,i.isTimeElement)(m)){v="string"===typeof m.style?l.time[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:l.time.medium;p.push({type:r.literal,value:s.getDateTimeFormat(n,v).format(y)})}else if((0,i.isNumberElement)(m)){(v="string"===typeof m.style?l.number[m.style]:(0,i.isNumberSkeleton)(m.style)?m.style.parsedOptions:void 0)&&v.scale&&(y*=v.scale||1),p.push({type:r.literal,value:s.getNumberFormat(n,v).format(y)})}else{if((0,i.isTagElement)(m)){var b=m.children,_=m.value,w=c[_];if(!a(w))throw new o.InvalidValueTypeError(_,"function",d);var x=w(e(b,n,s,l,c,u).map((function(e){return e.value})));Array.isArray(x)||(x=[x]),p.push.apply(p,x.map((function(e){return{type:"string"===typeof e?r.literal:r.object,value:e}})))}if((0,i.isSelectElement)(m)){if(!(k=m.options[y]||m.options.other))throw new o.InvalidValueError(m.value,y,Object.keys(m.options),d);p.push.apply(p,e(k.value,n,s,l,c))}else if((0,i.isPluralElement)(m)){var k;if(!(k=m.options["=".concat(y)])){if(!Intl.PluralRules)throw new o.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.ErrorCode.MISSING_INTL_API,d);var C=s.getPluralRules(n,{type:m.pluralType}).select(y-(m.offset||0));k=m.options[C]||m.options.other}if(!k)throw new o.InvalidValueError(m.value,y,Object.keys(m.options),d);p.push.apply(p,e(k.value,n,s,l,c,y-(m.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===r.literal&&t.type===r.literal?n.value+=t.value:e.push(t),e}),[])}(p)}},59775:(e,t,n)=>{"use strict";var r=n(74788)(),i=n(84661)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},3185:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o=n(74788)();e.exports=function(e){return"object"===typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===i.call(e))}},97127:(e,t,n)=>{"use strict";var r,i,o,a,s=n(84661),l=n(74788)();if(l){r=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var c=function(){throw o};a={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=s("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{i(e,a)}catch(n){return n===o}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},76312:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5789:(e,t,n)=>{e=n.nmd(e);var r=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,12],n=[1,13],r=[1,9],i=[1,10],o=[1,11],a=[1,14],s=[1,15],l=[14,18,22,24],c=[18,22],u=[22,24],d={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:this.$=e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(e);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=o[s-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=o[s-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[o[s-2],o[s]];break;case 16:this.$={},this.$[o[s][0]]=o[s][1];break;case 17:this.$=o[s-2],void 0!==o[s-2][o[s][0]]&&(this.$.__duplicateProperties__||Object.defineProperty(this.$,"__duplicateProperties__",{value:[],enumerable:!1}),this.$.__duplicateProperties__.push(o[s][0])),o[s-2][o[s][0]]=o[s][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[o[s]];break;case 21:this.$=o[s-2],o[s-2].push(o[s])}},table:[{3:5,4:t,5:6,6:n,7:3,8:r,9:4,10:i,11:o,12:1,13:2,15:7,16:8,17:a,23:s},{1:[3]},{14:[1,16]},e(l,[2,7]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,3]),e(l,[2,4]),e(l,[2,5]),e([14,18,21,22,24],[2,1]),e(l,[2,2]),{3:20,4:t,18:[1,17],19:18,20:19},{3:5,4:t,5:6,6:n,7:3,8:r,9:4,10:i,11:o,13:23,15:7,16:8,17:a,23:s,24:[1,21],25:22},{1:[2,6]},e(l,[2,13]),{18:[1,24],22:[1,25]},e(c,[2,16]),{21:[1,26]},e(l,[2,18]),{22:[1,28],24:[1,27]},e(u,[2,20]),e(l,[2,14]),{3:20,4:t,20:29},{3:5,4:t,5:6,6:n,7:3,8:r,9:4,10:i,11:o,13:30,15:7,16:8,17:a,23:s},e(l,[2,19]),{3:5,4:t,5:6,6:n,7:3,8:r,9:4,10:i,11:o,13:31,15:7,16:8,17:a,23:s},e(c,[2,17]),e(c,[2,15]),e(u,[2,21])],defaultActions:{16:[2,6]},parseError:function(e,t){if(!t.recoverable){function n(e,t){this.message=e,this.hash=t}throw n.prototype=Error,new n(e,t)}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,l=0,c=0,u=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(p.yy[h]=this.yy[h]);d.setInput(e,p.yy),p.yy.lexer=d,p.yy.parser=this,"undefined"==typeof d.yylloc&&(d.yylloc={});var f=d.yylloc;i.push(f);var m=d.options&&d.options.ranges;"function"===typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,v,b,_,w,x,k,C,S=function(){var e;return"number"!==typeof(e=d.lex()||1)&&(e=t.symbols_[e]||e),e},M={};;){if(v=n[n.length-1],this.defaultActions[v]?b=this.defaultActions[v]:(null!==g&&"undefined"!=typeof g||(g=S()),b=o[v]&&o[v][g]),"undefined"===typeof b||!b.length||!b[0]){var T="";for(w in C=[],o[v])this.terminals_[w]&&w>2&&C.push("'"+this.terminals_[w]+"'");T=d.showPosition?"Parse error on line "+(s+1)+":\n"+d.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(T,{text:d.match,token:this.terminals_[g]||g,line:d.yylineno,loc:f,expected:C})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(b[0]){case 1:n.push(g),r.push(d.yytext),i.push(d.yylloc),n.push(b[1]),g=null,y?(g=y,y=null):(l=d.yyleng,a=d.yytext,s=d.yylineno,f=d.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[b[1]][1],M.$=r[r.length-x],M._$={first_line:i[i.length-(x||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(x||1)].first_column,last_column:i[i.length-1].last_column},m&&(M._$.range=[i[i.length-(x||1)].range[0],i[i.length-1].range[1]]),"undefined"!==typeof(_=this.performAction.apply(M,[a,l,s,p.yy,b[1],r,i].concat(u))))return _;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),i=i.slice(0,-1*x)),n.push(this.productions_[b[1]][0]),r.push(M.$),i.push(M._$),k=o[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return d.lexer=p,h.prototype=d,d.Parser=h,new h}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var r=n(46821).readFileSync(n(7281).normalize(e[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===e&&t.main(process.argv.slice(1))},14596:()=>{!function(e,t,n){L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(e,t){this._map=e,this._container=e._container,this._overlayPane=e._panes.overlayPane,this._popupPane=e._panes.popupPane,t&&t.shapeOptions&&(t.shapeOptions=L.Util.extend({},this.options.shapeOptions,t.shapeOptions)),L.setOptions(this,t);var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(L.DomUtil.disableTextSelection(),e.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(e){L.setOptions(this,e)},_fireCreatedEvent:function(e){this._map.fire(L.Draw.Event.CREATED,{layer:e,layerType:this.type})},_cancelDrawing:function(e){27===e.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(e,t){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,t&&t.drawError&&(t.drawError=L.Util.extend({},this.options.drawError,t.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var e=this._markers.pop(),t=this._poly,n=t.getLatLngs(),r=n.splice(-1,1)[0];this._poly.setLatLngs(n),this._markerGroup.removeLayer(e),t.getLatLngs().length<2&&this._map.removeLayer(t),this._vertexChanged(r,!1)}},addVertex:function(e){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(e)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(e)),this._poly.addLatLng(e),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(e,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var e=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),t=this._poly.newLatLngIntersects(e[e.length-1]);!this.options.allowIntersection&&t||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(e){var t=this._map.mouseEventToLayerPoint(e.originalEvent),n=this._map.layerPointToLatLng(t);this._currentLatLng=n,this._updateTooltip(n),this._updateGuide(t),this._mouseMarker.setLatLng(n),L.DomEvent.preventDefault(e.originalEvent)},_vertexChanged:function(e,t){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(e,t),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(e){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(e),this._clickHandled=!0,this._disableNewMarkers();var t=e.originalEvent,n=t.clientX,r=t.clientY;this._startPoint.call(this,n,r)}},_startPoint:function(e,t){this._mouseDownOrigin=L.point(e,t)},_onMouseUp:function(e){var t=e.originalEvent,n=t.clientX,r=t.clientY;this._endPoint.call(this,n,r,e),this._clickHandled=null},_endPoint:function(t,n,r){if(this._mouseDownOrigin){var i=L.point(t,n).distanceTo(this._mouseDownOrigin),o=this._calculateFinishDistance(r.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(r.latlng),this._finishShape()):o<10&&L.Browser.touch?this._finishShape():Math.abs(i)<9*(e.devicePixelRatio||1)&&this.addVertex(r.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(e){var t,n,r=e.originalEvent;!r.touches||!r.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(t=r.touches[0].clientX,n=r.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,t,n),this._endPoint.call(this,t,n,e),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(e){var t;if(this._markers.length>0){var n;if(this.type===L.Draw.Polyline.TYPE)n=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;n=this._markers[0]}var r=this._map.latLngToContainerPoint(n.getLatLng()),i=new L.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),o=this._map.latLngToContainerPoint(i.getLatLng());t=r.distanceTo(o)}else t=1/0;return t},_updateFinishHandler:function(){var e=this._markers.length;e>1&&this._markers[e-1].on("click",this._finishShape,this),e>2&&this._markers[e-2].off("click",this._finishShape,this)},_createMarker:function(e){var t=new L.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(t),t},_updateGuide:function(e){var t=this._markers?this._markers.length:0;t>0&&(e=e||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[t-1].getLatLng()),e))},_updateTooltip:function(e){var t=this._getTooltipText();e&&this._tooltip.updatePosition(e),this._errorShown||this._tooltip.updateContent(t)},_drawGuide:function(e,t){var n,r,i,o=Math.floor(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))),a=this.options.guidelineDistance,s=this.options.maxGuideLineLength,l=o>s?o-s:a;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));l<o;l+=this.options.guidelineDistance)n=l/o,r={x:Math.floor(e.x*(1-n)+n*t.x),y:Math.floor(e.y*(1-n)+n*t.y)},(i=L.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer)).style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,L.DomUtil.setPosition(i,r)},_updateGuideColor:function(e){if(this._guidesContainer)for(var t=0,n=this._guidesContainer.childNodes.length;t<n;t++)this._guidesContainer.childNodes[t].style.backgroundColor=e},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var e,t,n=this.options.showLength;return 0===this._markers.length?e={text:L.drawLocal.draw.handlers.polyline.tooltip.start}:(t=n?this._getMeasurementString():"",e=1===this._markers.length?{text:L.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:t}:{text:L.drawLocal.draw.handlers.polyline.tooltip.end,subtext:t}),e},_updateRunningMeasure:function(e,t){var n,r,i=this._markers.length;1===this._markers.length?this._measurementRunningTotal=0:(n=i-(t?2:1),r=L.GeometryUtil.isVersion07x()?e.distanceTo(this._markers[n].getLatLng())*(this.options.factor||1):this._map.distance(e,this._markers[n].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=r*(t?1:-1))},_getMeasurementString:function(){var e,t=this._currentLatLng,n=this._markers[this._markers.length-1].getLatLng();return e=L.GeometryUtil.isVersion07x()?n&&t&&t.distanceTo?this._measurementRunningTotal+t.distanceTo(n)*(this.options.factor||1):this._measurementRunningTotal||0:n&&t?this._measurementRunningTotal+this._map.distance(t,n)*(this.options.factor||1):this._measurementRunningTotal||0,L.GeometryUtil.readableDistance(e,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(L.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var e=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(e,t){L.Draw.Polyline.prototype.initialize.call(this,e,t),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var e=this._markers.length;1===e&&this._markers[0].on("click",this._finishShape,this),e>2&&(this._markers[e-1].on("dblclick",this._finishShape,this),e>3&&this._markers[e-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var e,t;return 0===this._markers.length?e=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(e=L.drawLocal.draw.handlers.polygon.tooltip.cont,t=this._getMeasurementString()):(e=L.drawLocal.draw.handlers.polygon.tooltip.end,t=this._getMeasurementString()),{text:e,subtext:t}},_getMeasurementString:function(){var e=this._area,t="";return e||this.options.showLength?(this.options.showLength&&(t=L.Draw.Polyline.prototype._getMeasurementString.call(this)),e&&(t+="<br>"+L.GeometryUtil.readableArea(e,this.options.metric,this.options.precision)),t):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(e,t){var n;!this.options.allowIntersection&&this.options.showArea&&(n=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(n)),L.Draw.Polyline.prototype._vertexChanged.call(this,e,t)},_cleanUpShape:function(){var e=this._markers.length;e>0&&(this._markers[0].off("click",this._finishShape,this),e>2&&this._markers[e-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(e,t){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),t.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(t,"mouseup",this._onMouseUp,this),L.DomEvent.off(t,"touchend",this._onMouseUp,this),t.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(e){this._isDrawing=!0,this._startLatLng=e.latlng,L.DomEvent.on(t,"mouseup",this._onMouseUp,this).on(t,"touchend",this._onMouseUp,this).preventDefault(e.originalEvent)},_onMouseMove:function(e){var t=e.latlng;this._tooltip.updatePosition(t),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(t))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(e,t){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,e,t)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(e){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}(e.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(e){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,e)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,e),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var e=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,e)},_getTooltipText:function(){var e,t,n,r=L.Draw.SimpleShape.prototype._getTooltipText.call(this),i=this._shape,o=this.options.showArea;return i&&(e=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),t=L.GeometryUtil.geodesicArea(e),n=o?L.GeometryUtil.readableArea(t,this.options.metric):""),{text:r.text,subtext:n}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(e,t){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(e){var t=e.latlng;this._tooltip.updatePosition(t),this._mouseMarker.setLatLng(t),this._marker?(t=this._mouseMarker.getLatLng(),this._marker.setLatLng(t)):(this._marker=this._createMarker(t),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(e){return new L.Marker(e,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(e){this._onMouseMove(e),this._onClick()},_fireCreatedEvent:function(){var e=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(e,t){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,e,t)},_fireCreatedEvent:function(){var e=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)},_createMarker:function(e){return new L.CircleMarker(e,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(e,t){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,e,t)},_drawShape:function(e){if(L.GeometryUtil.isVersion07x())var t=this._startLatLng.distanceTo(e);else t=this._map.distance(this._startLatLng,e);this._shape?this._shape.setRadius(t):(this._shape=new L.Circle(this._startLatLng,t,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var e=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,e)},_onMouseMove:function(e){var t,n=e.latlng,r=this.options.showRadius,i=this.options.metric;if(this._tooltip.updatePosition(n),this._isDrawing){this._drawShape(n),t=this._shape.getRadius().toFixed(1);var o="";r&&(o=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(t,i,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:o})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(e,t){this._marker=e,L.setOptions(this,t)},addHooks:function(){var e=this._marker;e.dragging.enable(),e.on("dragend",this._onDragEnd,e),this._toggleMarkerHighlight()},removeHooks:function(){var e=this._marker;e.dragging.disable(),e.off("dragend",this._onDragEnd,e),this._toggleMarkerHighlight()},_onDragEnd:function(e){var t=e.target;t.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:t})},_toggleMarkerHighlight:function(){var e=this._marker._icon;e&&(e.style.display="none",L.DomUtil.hasClass(e,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(e,"leaflet-edit-marker-selected"),this._offsetMarker(e,-4)):(L.DomUtil.addClass(e,"leaflet-edit-marker-selected"),this._offsetMarker(e,4)),e.style.display="")},_offsetMarker:function(e,t){var n=parseInt(e.style.marginTop,10)-t,r=parseInt(e.style.marginLeft,10)-t;e.style.marginTop=n+"px",e.style.marginLeft=r+"px"}}),L.Marker.addInitHook((function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())})),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(e){this.latlngs=[e._latlngs],e._holes&&(this.latlngs=this.latlngs.concat(e._holes)),this._poly=e,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(e){for(var t=0;t<this._verticesHandlers.length;t++)e(this._verticesHandlers[t])},addHooks:function(){this._initHandlers(),this._eachVertexHandler((function(e){e.addHooks()}))},removeHooks:function(){this._eachVertexHandler((function(e){e.removeHooks()}))},updateMarkers:function(){this._eachVertexHandler((function(e){e.updateMarkers()}))},_initHandlers:function(){this._verticesHandlers=[];for(var e=0;e<this.latlngs.length;e++)this._verticesHandlers.push(new L.Edit.PolyVerticesEdit(this._poly,this.latlngs[e],this._poly.options.poly))},_updateLatLngs:function(e){this.latlngs=[e.layer._latlngs],e.layer._holes&&(this.latlngs=this.latlngs.concat(e.layer._holes))}}),L.Edit.PolyVerticesEdit=L.Handler.extend({options:{icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(e,t,n){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=e,n&&n.drawError&&(n.drawError=L.Util.extend({},this.options.drawError,n.drawError)),this._latlngs=t,L.setOptions(this,n)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var e=this._poly,t=e._path;e instanceof L.Polygon||(e.options.fill=!1,e.options.editing&&(e.options.editing.fill=!1)),t&&e.options.editing&&e.options.editing.className&&(e.options.original.className&&e.options.original.className.split(" ").forEach((function(e){L.DomUtil.removeClass(t,e)})),e.options.editing.className.split(" ").forEach((function(e){L.DomUtil.addClass(t,e)}))),e.setStyle(e.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var e=this._poly,t=e._path;t&&e.options.editing&&e.options.editing.className&&(e.options.editing.className.split(" ").forEach((function(e){L.DomUtil.removeClass(t,e)})),e.options.original.className&&e.options.original.className.split(" ").forEach((function(e){L.DomUtil.addClass(t,e)}))),e.setStyle(e.options.original),e._map&&(e._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._markers=[];var e,t,n,r,i,o,a=this._defaultShape();for(e=0,n=a.length;e<n;e++)(r=this._createMarker(a[e],e)).on("click",this._onMarkerClick,this),r.on("contextmenu",this._onContextMenu,this),this._markers.push(r);for(e=0,t=n-1;e<n;t=e++)(0!==e||L.Polygon&&this._poly instanceof L.Polygon)&&(i=this._markers[t],o=this._markers[e],this._createMiddleMarker(i,o),this._updatePrevNext(i,o))},_createMarker:function(e,t){var n=new L.Marker.Touch(e,{draggable:!0,icon:this.options.icon});return n._origLatLng=e,n._index=t,n.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(n),n},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var e=this._defaultShape(),t=[].splice.apply(e,arguments);return this._poly._convertLatLngs(e,!0),this._poly.redraw(),t},_removeMarker:function(e){var t=e._index;this._markerGroup.removeLayer(e),this._markers.splice(t,1),this._spliceLatLngs(t,1),this._updateIndexes(t,-1),e.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(L.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(e){var t=e.target,n=this._poly,r=L.LatLngUtil.cloneLatLng(t._origLatLng);if(L.extend(t._origLatLng,t._latlng),n.options.poly){var i=n._map._editTooltip;if(!n.options.poly.allowIntersection&&n.intersects()){L.extend(t._origLatLng,r),t.setLatLng(r);var o=n.options.color;n.setStyle({color:this.options.drawError.color}),i&&i.updateContent({text:L.drawLocal.draw.handlers.polyline.error}),setTimeout((function(){n.setStyle({color:o}),i&&i.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext})}),1e3)}}t._middleLeft&&t._middleLeft.setLatLng(this._getMiddleLatLng(t._prev,t)),t._middleRight&&t._middleRight.setLatLng(this._getMiddleLatLng(t,t._next)),this._poly._bounds._southWest=L.latLng(1/0,1/0),this._poly._bounds._northEast=L.latLng(-1/0,-1/0);var a=this._poly.getLatLngs();this._poly._convertLatLngs(a,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(e){var t=L.Polygon&&this._poly instanceof L.Polygon?4:3,n=e.target;this._defaultShape().length<t||(this._removeMarker(n),this._updatePrevNext(n._prev,n._next),n._middleLeft&&this._markerGroup.removeLayer(n._middleLeft),n._middleRight&&this._markerGroup.removeLayer(n._middleRight),n._prev&&n._next?this._createMiddleMarker(n._prev,n._next):n._prev?n._next||(n._prev._middleRight=null):n._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(e){var t=e.target;this._poly,this._poly._map.fire(L.Draw.Event.MARKERCONTEXT,{marker:t,layers:this._markerGroup,poly:this._poly}),L.DomEvent.stopPropagation},_onTouchMove:function(e){var t=this._map.mouseEventToLayerPoint(e.originalEvent.touches[0]),n=this._map.layerPointToLatLng(t),r=e.target;L.extend(r._origLatLng,n),r._middleLeft&&r._middleLeft.setLatLng(this._getMiddleLatLng(r._prev,r)),r._middleRight&&r._middleRight.setLatLng(this._getMiddleLatLng(r,r._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(e,t){this._markerGroup.eachLayer((function(n){n._index>e&&(n._index+=t)}))},_createMiddleMarker:function(e,t){var n,r,i,o=this._getMiddleLatLng(e,t),a=this._createMarker(o);a.setOpacity(.6),e._middleRight=t._middleLeft=a,r=function(){a.off("touchmove",r,this);var i=t._index;a._index=i,a.off("click",n,this).on("click",this._onMarkerClick,this),o.lat=a.getLatLng().lat,o.lng=a.getLatLng().lng,this._spliceLatLngs(i,0,o),this._markers.splice(i,0,a),a.setOpacity(1),this._updateIndexes(i,1),t._index++,this._updatePrevNext(e,a),this._updatePrevNext(a,t),this._poly.fire("editstart")},i=function(){a.off("dragstart",r,this),a.off("dragend",i,this),a.off("touchmove",r,this),this._createMiddleMarker(e,a),this._createMiddleMarker(a,t)},n=function(){r.call(this),i.call(this),this._fireEdit()},a.on("click",n,this).on("dragstart",r,this).on("dragend",i,this).on("touchmove",r,this),this._markerGroup.addLayer(a)},_updatePrevNext:function(e,t){e&&(e._next=t),t&&(t._prev=e)},_getMiddleLatLng:function(e,t){var n=this._poly._map,r=n.project(e.getLatLng()),i=n.project(t.getLatLng());return n.unproject(r._add(i)._divideBy(2))}}),L.Polyline.addInitHook((function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})))})),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(e,t){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=e,L.Util.setOptions(this,t)},addHooks:function(){var e=this._shape;this._shape._map&&(this._map=this._shape._map,e.setStyle(e.options.editing),e._map&&(this._map=e._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var e=this._shape;if(e.setStyle(e.options.original),e._map){this._unbindMarker(this._moveMarker);for(var t=0,n=this._resizeMarkers.length;t<n;t++)this._unbindMarker(this._resizeMarkers[t]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(e,t){var n=new L.Marker.Touch(e,{draggable:!0,icon:t,zIndexOffset:10});return this._bindMarker(n),this._markerGroup.addLayer(n),n},_bindMarker:function(e){e.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(e){e.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(e){e.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(e){var t=e.target,n=t.getLatLng();t===this._moveMarker?this._move(n):this._resize(n),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(e){e.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(e){if(L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,e),"function"==typeof this._getCorners){var t=this._getCorners(),n=e.target,r=n._cornerIndex;n.setOpacity(0),this._oppositeCorner=t[(r+2)%4],this._toggleCornerMarkers(0,r)}this._shape.fire("editstart")},_onTouchMove:function(e){var t=this._map.mouseEventToLayerPoint(e.originalEvent.touches[0]),n=this._map.layerPointToLatLng(t);return e.target===this._moveMarker?this._move(n):this._resize(n),this._shape.redraw(),!1},_onTouchEnd:function(e){e.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),L.Edit=L.Edit||{},L.Edit.Rectangle=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var e=this._shape.getBounds().getCenter();this._moveMarker=this._createMarker(e,this.options.moveIcon)},_createResizeMarker:function(){var e=this._getCorners();this._resizeMarkers=[];for(var t=0,n=e.length;t<n;t++)this._resizeMarkers.push(this._createMarker(e[t],this.options.resizeIcon)),this._resizeMarkers[t]._cornerIndex=t},_onMarkerDragStart:function(e){L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,e);var t=this._getCorners(),n=e.target._cornerIndex;this._oppositeCorner=t[(n+2)%4],this._toggleCornerMarkers(0,n)},_onMarkerDragEnd:function(e){var t,n=e.target;n===this._moveMarker&&(t=this._shape.getBounds().getCenter(),n.setLatLng(t)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,e)},_move:function(e){for(var t,n=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),r=this._shape.getBounds().getCenter(),i=[],o=0,a=n.length;o<a;o++)t=[n[o].lat-r.lat,n[o].lng-r.lng],i.push([e.lat+t[0],e.lng+t[1]]);this._shape.setLatLngs(i),this._repositionCornerMarkers(),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(e){var t;this._shape.setBounds(L.latLngBounds(e,this._oppositeCorner)),t=this._shape.getBounds(),this._moveMarker.setLatLng(t.getCenter()),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var e=this._shape.getBounds();return[e.getNorthWest(),e.getNorthEast(),e.getSouthEast(),e.getSouthWest()]},_toggleCornerMarkers:function(e){for(var t=0,n=this._resizeMarkers.length;t<n;t++)this._resizeMarkers[t].setOpacity(e)},_repositionCornerMarkers:function(){for(var e=this._getCorners(),t=0,n=this._resizeMarkers.length;t<n;t++)this._resizeMarkers[t].setLatLng(e[t])}}),L.Rectangle.addInitHook((function(){L.Edit.Rectangle&&(this.editing=new L.Edit.Rectangle(this),this.options.editable&&this.editing.enable())})),L.Edit=L.Edit||{},L.Edit.CircleMarker=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var e=this._shape.getLatLng();this._moveMarker=this._createMarker(e,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(e){if(this._resizeMarkers.length){var t=this._getResizeMarkerPoint(e);this._resizeMarkers[0].setLatLng(t)}this._shape.setLatLng(e),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})}}),L.CircleMarker.addInitHook((function(){L.Edit.CircleMarker&&(this.editing=new L.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))})),L.Edit=L.Edit||{},L.Edit.Circle=L.Edit.CircleMarker.extend({_createResizeMarker:function(){var e=this._shape.getLatLng(),t=this._getResizeMarkerPoint(e);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(t,this.options.resizeIcon))},_getResizeMarkerPoint:function(e){var t=this._shape._radius*Math.cos(Math.PI/4),n=this._map.project(e);return this._map.unproject([n.x+t,n.y-t])},_resize:function(e){var t=this._moveMarker.getLatLng();L.GeometryUtil.isVersion07x()?radius=t.distanceTo(e):radius=this._map.distance(t,e),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook((function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())})),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(e,t){var n={};if(void 0!==e.touches){if(!e.touches.length)return;n=e.touches[0]}else{if("touch"!==e.pointerType)return;if(n=e,!this._filterClick(e))return}var r=this._map.mouseEventToContainerPoint(n),i=this._map.mouseEventToLayerPoint(n),o=this._map.layerPointToLatLng(i);this._map.fire(t,{latlng:o,layerPoint:i,containerPoint:r,pageX:n.pageX,pageY:n.pageY,originalEvent:e})},_filterClick:function(e){var t=e.timeStamp||e.originalEvent.timeStamp,n=L.DomEvent._lastClick&&t-L.DomEvent._lastClick;return n&&n>100&&n<500||e.target._simulatedClick&&!e._simulated?(L.DomEvent.stop(e),!1):(L.DomEvent._lastClick=t,!0)},_onTouchStart:function(e){this._map._loaded&&this._touchEvent(e,"touchstart")},_onTouchEnd:function(e){this._map._loaded&&this._touchEvent(e,"touchend")},_onTouchCancel:function(e){if(this._map._loaded){var t="touchcancel";this._detectIE()&&(t="pointercancel"),this._touchEvent(e,t)}},_onTouchLeave:function(e){this._map._loaded&&this._touchEvent(e,"touchleave")},_onTouchMove:function(e){this._map._loaded&&this._touchEvent(e,"touchmove")},_detectIE:function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var e=this._icon,t=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?t.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):t.concat(["touchcancel"]),L.DomUtil.addClass(e,"leaflet-clickable"),L.DomEvent.on(e,"click",this._onMouseClick,this),L.DomEvent.on(e,"keypress",this._onKeyPress,this);for(var n=0;n<t.length;n++)L.DomEvent.on(e,t[n],this._fireMouseEvent,this);L.Handler.MarkerDrag&&(this.dragging=new L.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}}),L.LatLngUtil={cloneLatLngs:function(e){for(var t=[],n=0,r=e.length;n<r;n++)Array.isArray(e[n])?t.push(L.LatLngUtil.cloneLatLngs(e[n])):t.push(this.cloneLatLng(e[n]));return t},cloneLatLng:function(e){return L.latLng(e.lat,e.lng)}},function(){var e={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};L.GeometryUtil=L.extend(L.GeometryUtil||{},{geodesicArea:function(e){var t,n,r=e.length,i=0,o=Math.PI/180;if(r>2){for(var a=0;a<r;a++)t=e[a],i+=((n=e[(a+1)%r]).lng-t.lng)*o*(2+Math.sin(t.lat*o)+Math.sin(n.lat*o));i=6378137*i*6378137/2}return Math.abs(i)},formattedNumber:function(e,t){var n=parseFloat(e).toFixed(t),r=L.drawLocal.format&&L.drawLocal.format.numeric,i=r&&r.delimiters,o=i&&i.thousands,a=i&&i.decimal;if(o||a){var s=n.split(".");n=o?s[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+o):s[0],a=a||".",s.length>1&&(n=n+a+s[1])}return n},readableArea:function(t,n,r){var i,o;r=L.Util.extend({},e,r);return n?(o=["ha","m"],type=typeof n,"string"===type?o=[n]:"boolean"!==type&&(o=n),i=t>=1e6&&-1!==o.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*t,r.km)+" km\xb2":t>=1e4&&-1!==o.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*t,r.ha)+" ha":L.GeometryUtil.formattedNumber(t,r.m)+" m\xb2"):i=(t/=.836127)>=3097600?L.GeometryUtil.formattedNumber(t/3097600,r.mi)+" mi\xb2":t>=4840?L.GeometryUtil.formattedNumber(t/4840,r.ac)+" acres":L.GeometryUtil.formattedNumber(t,r.yd)+" yd\xb2",i},readableDistance:function(t,n,r,i,o){var a;o=L.Util.extend({},e,o);switch(n?"string"==typeof n?n:"metric":r?"feet":i?"nauticalMile":"yards"){case"metric":a=t>1e3?L.GeometryUtil.formattedNumber(t/1e3,o.km)+" km":L.GeometryUtil.formattedNumber(t,o.m)+" m";break;case"feet":t*=3.28083,a=L.GeometryUtil.formattedNumber(t,o.ft)+" ft";break;case"nauticalMile":t*=.53996,a=L.GeometryUtil.formattedNumber(t/1e3,o.nm)+" nm";break;default:a=(t*=1.09361)>1760?L.GeometryUtil.formattedNumber(t/1760,o.mi)+" miles":L.GeometryUtil.formattedNumber(t,o.yd)+" yd"}return a},isVersion07x:function(){var e=L.version.split(".");return 0===parseInt(e[0],10)&&7===parseInt(e[1],10)}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(e,t,n,r){return this._checkCounterclockwise(e,n,r)!==this._checkCounterclockwise(t,n,r)&&this._checkCounterclockwise(e,t,n)!==this._checkCounterclockwise(e,t,r)},_checkCounterclockwise:function(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}}),L.Polyline.include({intersects:function(){var e,t,n,r=this._getProjectedPoints(),i=r?r.length:0;if(this._tooFewPointsForIntersection())return!1;for(e=i-1;e>=3;e--)if(t=r[e-1],n=r[e],this._lineSegmentsIntersectsRange(t,n,e-2))return!0;return!1},newLatLngIntersects:function(e,t){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(e),t)},newPointIntersects:function(e,t){var n=this._getProjectedPoints(),r=n?n.length:0,i=n?n[r-1]:null,o=r-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(i,e,o,t?1:0)},_tooFewPointsForIntersection:function(e){var t=this._getProjectedPoints(),n=t?t.length:0;return!t||(n+=e||0)<=3},_lineSegmentsIntersectsRange:function(e,t,n,r){var i,o,a=this._getProjectedPoints();r=r||0;for(var s=n;s>r;s--)if(i=a[s-1],o=a[s],L.LineUtil.segmentsIntersect(e,t,i,o))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var e=[],t=this._defaultShape(),n=0;n<t.length;n++)e.push(this._map.latLngToLayerPoint(t[n]));return e}}),L.Polygon.include({intersects:function(){var e,t,n,r,i=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!L.Polyline.prototype.intersects.call(this)||(e=i.length,t=i[0],n=i[e-1],r=e-2,this._lineSegmentsIntersectsRange(n,t,r,1)))}}),L.Control.Draw=L.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(e){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");var t;L.Control.prototype.initialize.call(this,e),this._toolbars={},L.DrawToolbar&&this.options.draw&&(t=new L.DrawToolbar(this.options.draw),this._toolbars[L.DrawToolbar.TYPE]=t,this._toolbars[L.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.EditToolbar&&this.options.edit&&(t=new L.EditToolbar(this.options.edit),this._toolbars[L.EditToolbar.TYPE]=t,this._toolbars[L.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.toolbar=this},onAdd:function(e){var t,n=L.DomUtil.create("div","leaflet-draw"),r=!1;for(var i in this._toolbars)this._toolbars.hasOwnProperty(i)&&(t=this._toolbars[i].addToolbar(e))&&(r||(L.DomUtil.hasClass(t,"leaflet-draw-toolbar-top")||L.DomUtil.addClass(t.childNodes[0],"leaflet-draw-toolbar-top"),r=!0),n.appendChild(t));return n},onRemove:function(){for(var e in this._toolbars)this._toolbars.hasOwnProperty(e)&&this._toolbars[e].removeToolbar()},setDrawingOptions:function(e){for(var t in this._toolbars)this._toolbars[t]instanceof L.DrawToolbar&&this._toolbars[t].setOptions(e)},_toolbarEnabled:function(e){var t=e.target;for(var n in this._toolbars)this._toolbars[n]!==t&&this._toolbars[n].disable()}}),L.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),L.Map.addInitHook((function(){this.options.drawControl&&(this.drawControl=new L.Control.Draw,this.addControl(this.drawControl))})),L.Toolbar=L.Class.extend({initialize:function(e){L.setOptions(this,e),this._modes={},this._actionButtons=[],this._activeMode=null;var t=L.version.split(".");1===parseInt(t[0],10)&&parseInt(t[1],10)>=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(e){var t,n=L.DomUtil.create("div","leaflet-draw-section"),r=0,i=this._toolbarClass||"",o=this.getModeHandlers(e);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=e,t=0;t<o.length;t++)o[t].enabled&&this._initModeHandler(o[t].handler,this._toolbarContainer,r++,i,o[t].title);if(r)return this._lastButtonIndex=--r,this._actionsContainer=L.DomUtil.create("ul","leaflet-draw-actions"),n.appendChild(this._toolbarContainer),n.appendChild(this._actionsContainer),n},removeToolbar:function(){for(var e in this._modes)this._modes.hasOwnProperty(e)&&(this._disposeButton(this._modes[e].button,this._modes[e].handler.enable,this._modes[e].handler),this._modes[e].handler.disable(),this._modes[e].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var t=0,n=this._actionButtons.length;t<n;t++)this._disposeButton(this._actionButtons[t].button,this._actionButtons[t].callback,this);this._actionButtons=[],this._actionsContainer=null},_initModeHandler:function(e,t,n,r,i){var o=e.type;this._modes[o]={},this._modes[o].handler=e,this._modes[o].button=this._createButton({type:o,title:i,className:r+"-"+o,container:t,callback:this._modes[o].handler.enable,context:this._modes[o].handler}),this._modes[o].buttonIndex=n,this._modes[o].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!e.MSStream},_createButton:function(e){var t=L.DomUtil.create("a",e.className||"",e.container),n=L.DomUtil.create("span","sr-only",e.container);t.href="#",t.appendChild(n),e.title&&(t.title=e.title,n.innerHTML=e.title),e.text&&(t.innerHTML=e.text,n.innerHTML=e.text);var r=this._detectIOS()?"touchstart":"click";return L.DomEvent.on(t,"click",L.DomEvent.stopPropagation).on(t,"mousedown",L.DomEvent.stopPropagation).on(t,"dblclick",L.DomEvent.stopPropagation).on(t,"touchstart",L.DomEvent.stopPropagation).on(t,"click",L.DomEvent.preventDefault).on(t,r,e.callback,e.context),t},_disposeButton:function(e,t){var n=this._detectIOS()?"touchstart":"click";L.DomEvent.off(e,"click",L.DomEvent.stopPropagation).off(e,"mousedown",L.DomEvent.stopPropagation).off(e,"dblclick",L.DomEvent.stopPropagation).off(e,"touchstart",L.DomEvent.stopPropagation).off(e,"click",L.DomEvent.preventDefault).off(e,n,t)},_handlerActivated:function(e){this.disable(),this._activeMode=this._modes[e.handler],L.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),L.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(e){var t,n,r,i,o=this._actionsContainer,a=this.getActions(e),s=a.length;for(n=0,r=this._actionButtons.length;n<r;n++)this._disposeButton(this._actionButtons[n].button,this._actionButtons[n].callback);for(this._actionButtons=[];o.firstChild;)o.removeChild(o.firstChild);for(var l=0;l<s;l++)"enabled"in a[l]&&!a[l].enabled||(t=L.DomUtil.create("li","",o),i=this._createButton({title:a[l].title,text:a[l].text,container:t,callback:a[l].callback,context:a[l].context}),this._actionButtons.push({button:i,callback:a[l].callback}))},_showActionsToolbar:function(){var e=this._activeMode.buttonIndex,t=this._lastButtonIndex,n=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=n+"px",0===e&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),e===t&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(L.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(L.Draw.Event.TOOLBARCLOSED)}}),L.Draw=L.Draw||{},L.Draw.Tooltip=L.Class.extend({initialize:function(e){this._map=e,this._popupPane=e._panes.popupPane,this._visible=!1,this._container=e.options.drawControlTooltips?L.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(e){return this._container?(e.subtext=e.subtext||"",0!==e.subtext.length||this._singleLineLabel?e.subtext.length>0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(e.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">'+e.subtext+"</span><br />":"")+"<span>"+e.text+"</span>",e.text||e.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(e){var t=this._map.latLngToLayerPoint(e),n=this._container;return this._container&&(this._visible&&(n.style.visibility="inherit"),L.DomUtil.setPosition(n,t)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(e){for(var t in this.options)this.options.hasOwnProperty(t)&&e[t]&&(e[t]=L.extend({},this.options[t],e[t]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,e)},getModeHandlers:function(e){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(e,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(e,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(e,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(e,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(e,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(e,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(e){return[{enabled:e.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:e.completeShape,context:e},{enabled:e.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:e.deleteLastVertex,context:e},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(e){for(var t in L.setOptions(this,e),this._modes)this._modes.hasOwnProperty(t)&&e.hasOwnProperty(t)&&this._modes[t].handler.setOptions(e[t])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(e){e.edit&&(void 0===e.edit.selectedPathOptions&&(e.edit.selectedPathOptions=this.options.edit.selectedPathOptions),e.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,e.edit.selectedPathOptions)),e.remove&&(e.remove=L.extend({},this.options.remove,e.remove)),e.poly&&(e.poly=L.extend({},this.options.poly,e.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,e),this._selectedFeatureCount=0},getModeHandlers:function(e){var t=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(e,{featureGroup:t,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(e,{featureGroup:t}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(e){var t=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return e.removeAllLayers&&t.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),t},addToolbar:function(e){var t=L.Toolbar.prototype.addToolbar.call(this,e);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),t},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var e,t=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(e=this._modes[L.EditToolbar.Edit.TYPE].button,t?L.DomUtil.removeClass(e,"leaflet-disabled"):L.DomUtil.addClass(e,"leaflet-disabled"),e.setAttribute("title",t?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(e=this._modes[L.EditToolbar.Delete.TYPE].button,t?L.DomUtil.removeClass(e,"leaflet-disabled"):L.DomUtil.addClass(e,"leaflet-disabled"),e.setAttribute("title",t?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(e,t){if(L.Handler.prototype.initialize.call(this,e),L.setOptions(this,t),this._featureGroup=t.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(e.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),e._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer((function(e){this._revertLayer(e)}),this)},save:function(){var e=new L.LayerGroup;this._featureGroup.eachLayer((function(t){t.edited&&(e.addLayer(t),t.edited=!1)})),this._map.fire(L.Draw.Event.EDITED,{layers:e})},_backupLayer:function(e){var t=L.Util.stamp(e);this._uneditedLayerProps[t]||(e instanceof L.Polyline||e instanceof L.Polygon||e instanceof L.Rectangle?this._uneditedLayerProps[t]={latlngs:L.LatLngUtil.cloneLatLngs(e.getLatLngs())}:e instanceof L.Circle?this._uneditedLayerProps[t]={latlng:L.LatLngUtil.cloneLatLng(e.getLatLng()),radius:e.getRadius()}:(e instanceof L.Marker||e instanceof L.CircleMarker)&&(this._uneditedLayerProps[t]={latlng:L.LatLngUtil.cloneLatLng(e.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(e){var t=L.Util.stamp(e);e.edited=!1,this._uneditedLayerProps.hasOwnProperty(t)&&(e instanceof L.Polyline||e instanceof L.Polygon||e instanceof L.Rectangle?e.setLatLngs(this._uneditedLayerProps[t].latlngs):e instanceof L.Circle?(e.setLatLng(this._uneditedLayerProps[t].latlng),e.setRadius(this._uneditedLayerProps[t].radius)):(e instanceof L.Marker||e instanceof L.CircleMarker)&&e.setLatLng(this._uneditedLayerProps[t].latlng),e.fire("revert-edited",{layer:e}))},_enableLayerEdit:function(e){var t,n,r=e.layer||e.target||e;this._backupLayer(r),this.options.poly&&(n=L.Util.extend({},this.options.poly),r.options.poly=n),this.options.selectedPathOptions&&((t=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(t.color=r.options.color,t.fillColor=r.options.fillColor),r.options.original=L.extend({},r.options),r.options.editing=t),r instanceof L.Marker?(r.editing&&r.editing.enable(),r.dragging.enable(),r.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):r.editing.enable()},_disableLayerEdit:function(e){var t=e.layer||e.target||e;t.edited=!1,t.editing&&t.editing.disable(),delete t.options.editing,delete t.options.original,this._selectedPathOptions&&(t instanceof L.Marker?this._toggleMarkerHighlight(t):(t.setStyle(t.options.previousOptions),delete t.options.previousOptions)),t instanceof L.Marker?(t.dragging.disable(),t.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):t.editing.disable()},_onMouseMove:function(e){this._tooltip.updatePosition(e.latlng)},_onMarkerDragEnd:function(e){var t=e.target;t.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:t})},_onTouchMove:function(e){var t=e.originalEvent.changedTouches[0],n=this._map.mouseEventToLayerPoint(t),r=this._map.layerPointToLatLng(n);e.target.setLatLng(r)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(e,t){if(L.Handler.prototype.initialize.call(this,e),L.Util.setOptions(this,t),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(e.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer((function(e){this._deletableLayers.addLayer(e),e.fire("revert-deleted",{layer:e})}),this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer((function(e){this._removeLayer({layer:e})}),this),this.save()},_enableLayerDelete:function(e){(e.layer||e.target||e).on("click",this._removeLayer,this)},_disableLayerDelete:function(e){var t=e.layer||e.target||e;t.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(t)},_removeLayer:function(e){var t=e.layer||e.target||e;this._deletableLayers.removeLayer(t),this._deletedLayers.addLayer(t),t.fire("deleted")},_onMouseMove:function(e){this._tooltip.updatePosition(e.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})}(window,document)},45644:()=>{!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=28)}([function(e,t,n){var r=n(4),i=n(38),o=n(39),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e,t,n){if(!c(n=n||{}))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");r&&function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!l(e))throw new Error("bbox must only contain numbers")}))}(r),i&&function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function i(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!l(e[0])||!l(e[1]))throw new Error("coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n)}function o(e,t,n){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!l(e[0][1])||!l(e[0][1]))throw new Error("coordinates must contain numbers");return r({type:"LineString",coordinates:e},t,n)}function a(e,t){if(void 0===e||null===e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var n=u[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e*n}function s(e){if(null===e||void 0===e)throw new Error("degrees is required");return e%360*Math.PI/180}function l(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function c(e){return!!e&&e.constructor===Object}n.d(t,"b",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var u={meters:6371008.8,metres:6371008.8,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:6371008.8/1852,inches:6371008.8*39.37,yards:6371008.8/1.0936,feet:20902260.511392,radians:1,degrees:6371008.8/111325}},function(e,t,n){var r=n(5).Symbol;e.exports=r},function(e,t,n){var r=n(11),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(10),i=n(16);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(9);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(35),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(0),i=n(2),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(37))},function(e,t,n){var r=n(13),i=n(45),o=n(46);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(6),i=n(7),o=n(17),a=n(2);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(51),i=n(52),o=n(19),a=n(54),s=n(17),l=n(56),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(0),i=n(1),o=n(63),a="[object DOMException]",s="[object Error]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==s||t==a||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports=/<%=([\s\S]+?)%>/g},function(e,t,n){var r=n(75);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";function r(e,t,n){if(null!==e)for(var i,o,a,s,l,c,u,d,p=0,h=0,f=e.type,m="FeatureCollection"===f,g="Feature"===f,y=m?e.features.length:1,v=0;v<y;v++){l=(d=!!(u=m?e.features[v].geometry:g?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var b=0;b<l;b++){var _=0,w=0;if(null!==(s=d?u.geometries[b]:u)){c=s.coordinates;var x=s.type;switch(p=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(c,h,v,_,w))return!1;h++,_++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(!1===t(c[i],h,v,_,w))return!1;h++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(o=0;o<c[i].length-p;o++){if(!1===t(c[i][o],h,v,_,w))return!1;h++}"MultiLineString"===x&&_++,"Polygon"===x&&w++}"Polygon"===x&&_++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for("MultiPolygon"===x&&(w=0),o=0;o<c[i].length;o++){for(a=0;a<c[i][o].length-p;a++){if(!1===t(c[i][o][a],h,v,_,w))return!1;h++}w++}_++}break;case"GeometryCollection":for(i=0;i<s.geometries.length;i++)if(!1===r(s.geometries[i],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function i(e,t){var n,r,i,o,a,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}function o(e,t,n){var r=n;return i(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r}function a(e,t){!function(e,t){i(e,(function(e,n,r,i,o){var a,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(Object(l.b)(e,r,{bbox:i,id:o}),n,0)&&void 0}switch(s){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:a,coordinates:e.coordinates[c]};if(!1===t(Object(l.b)(u,r),n,c))return!1}}))}(e,(function(e,n,i){var o=0;if(e.geometry){var a,s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s)return!1!==r(e,(function(r,s,c,u,d){if(void 0!==a){var p=Object(l.e)([a,r],e.properties);if(!1===t(p,n,i,d,o))return!1;o++,a=r}else a=r}))&&void 0}}))}function s(e,t,n){var r=n,i=!1;return a(e,(function(e,o,a,s,l){r=!1===i&&void 0===n?e:t(r,e,o,a,s,l),i=!0})),r}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var l=n(3)},function(e,t,n){e.exports=n(29)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n(30);var i=r(n(31)),o=r(n(79)),a=r(n(80)),s=n(85),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),c=r(n(86)),u=n(87),d=n(88),p={imports:{numberFormat:u.numberFormat},interpolate:/{{([\s\S]+?)}}/g},h=(0,i.default)(d.controlTemplate,p),f=(0,i.default)(d.resultsTemplate,p),m=(0,i.default)(d.pointPopupTemplate,p),g=(0,i.default)(d.linePopupTemplate,p),y=(0,i.default)(d.areaPopupTemplate,p);L.Control.Measure=L.Control.extend({_className:"leaflet-control-measure",options:{units:{},position:"topright",primaryLengthUnit:"feet",secondaryLengthUnit:"miles",primaryAreaUnit:"acres",activeColor:"#ABE67E",completedColor:"#C8F2BE",captureZIndex:1e4,popupOptions:{className:"leaflet-measure-resultpopup",autoPanPadding:[10,10]}},initialize:function(e){L.setOptions(this,e);var t=this.options,n=t.activeColor,r=t.completedColor;this._symbols=new c.default({activeColor:n,completedColor:r}),this.options.units=L.extend({},o.default,this.options.units)},onAdd:function(e){return this._map=e,this._latlngs=[],this._initLayout(),e.on("click",this._collapse,this),this._layer=L.layerGroup().addTo(e),this._container},onRemove:function(e){e.off("click",this._collapse,this),e.removeLayer(this._layer)},_initLayout:function(){var e=this._className,t=this._container=L.DomUtil.create("div",e+" leaflet-bar");t.innerHTML=h({model:{className:e}}),t.setAttribute("aria-haspopup",!0),L.DomEvent.disableClickPropagation(t),L.DomEvent.disableScrollPropagation(t);var n=this.$toggle=(0,s.selectOne)(".js-toggle",t);this.$interaction=(0,s.selectOne)(".js-interaction",t);var r=(0,s.selectOne)(".js-start",t),i=(0,s.selectOne)(".js-cancel",t),o=(0,s.selectOne)(".js-finish",t);this.$startPrompt=(0,s.selectOne)(".js-startprompt",t),this.$measuringPrompt=(0,s.selectOne)(".js-measuringprompt",t),this.$startHelp=(0,s.selectOne)(".js-starthelp",t),this.$results=(0,s.selectOne)(".js-results",t),this.$measureTasks=(0,s.selectOne)(".js-measuretasks",t),this._collapse(),this._updateMeasureNotStarted(),L.Browser.android||(L.DomEvent.on(t,"mouseenter",this._expand,this),L.DomEvent.on(t,"mouseleave",this._collapse,this)),L.DomEvent.on(n,"click",L.DomEvent.stop),L.Browser.touch?L.DomEvent.on(n,"click",this._expand,this):L.DomEvent.on(n,"focus",this._expand,this),L.DomEvent.on(r,"click",L.DomEvent.stop),L.DomEvent.on(r,"click",this._startMeasure,this),L.DomEvent.on(i,"click",L.DomEvent.stop),L.DomEvent.on(i,"click",this._finishMeasure,this),L.DomEvent.on(o,"click",L.DomEvent.stop),L.DomEvent.on(o,"click",this._handleMeasureDoubleClick,this)},_expand:function(){l.hide(this.$toggle),l.show(this.$interaction)},_collapse:function(){this._locked||(l.hide(this.$interaction),l.show(this.$toggle))},_updateMeasureNotStarted:function(){l.hide(this.$startHelp),l.hide(this.$results),l.hide(this.$measureTasks),l.hide(this.$measuringPrompt),l.show(this.$startPrompt)},_updateMeasureStartedNoPoints:function(){l.hide(this.$results),l.show(this.$startHelp),l.show(this.$measureTasks),l.hide(this.$startPrompt),l.show(this.$measuringPrompt)},_updateMeasureStartedWithPoints:function(){l.hide(this.$startHelp),l.show(this.$results),l.show(this.$measureTasks),l.hide(this.$startPrompt),l.show(this.$measuringPrompt)},_startMeasure:function(){this._locked=!0,this._measureVertexes=L.featureGroup().addTo(this._layer),this._captureMarker=L.marker(this._map.getCenter(),{clickable:!0,zIndexOffset:this.options.captureZIndex,opacity:0}).addTo(this._layer),this._setCaptureMarkerIcon(),this._captureMarker.on("mouseout",this._handleMapMouseOut,this).on("dblclick",this._handleMeasureDoubleClick,this).on("click",this._handleMeasureClick,this),this._map.on("mousemove",this._handleMeasureMove,this).on("mouseout",this._handleMapMouseOut,this).on("move",this._centerCaptureMarker,this).on("resize",this._setCaptureMarkerIcon,this),L.DomEvent.on(this._container,"mouseenter",this._handleMapMouseOut,this),this._updateMeasureStartedNoPoints(),this._map.fire("measurestart",null,!1)},_finishMeasure:function(){var e=L.extend({},this._resultsModel,{points:this._latlngs});this._locked=!1,L.DomEvent.off(this._container,"mouseover",this._handleMapMouseOut,this),this._clearMeasure(),this._captureMarker.off("mouseout",this._handleMapMouseOut,this).off("dblclick",this._handleMeasureDoubleClick,this).off("click",this._handleMeasureClick,this),this._map.off("mousemove",this._handleMeasureMove,this).off("mouseout",this._handleMapMouseOut,this).off("move",this._centerCaptureMarker,this).off("resize",this._setCaptureMarkerIcon,this),this._layer.removeLayer(this._measureVertexes).removeLayer(this._captureMarker),this._measureVertexes=null,this._updateMeasureNotStarted(),this._collapse(),this._map.fire("measurefinish",e,!1)},_clearMeasure:function(){this._latlngs=[],this._resultsModel=null,this._measureVertexes.clearLayers(),this._measureDrag&&this._layer.removeLayer(this._measureDrag),this._measureArea&&this._layer.removeLayer(this._measureArea),this._measureBoundary&&this._layer.removeLayer(this._measureBoundary),this._measureDrag=null,this._measureArea=null,this._measureBoundary=null},_centerCaptureMarker:function(){this._captureMarker.setLatLng(this._map.getCenter())},_setCaptureMarkerIcon:function(){this._captureMarker.setIcon(L.divIcon({iconSize:this._map.getSize().multiplyBy(2)}))},_getMeasurementDisplayStrings:function(e){function t(e,t,i,o,a){if(t&&r[t]){var s=n(e,r[t],o,a);return i&&r[i]&&(s=s+" ("+n(e,r[i],o,a)+")"),s}return n(e,null,o,a)}function n(e,t,n,r){var i=L.extend({factor:1,decimals:0},t);return[(0,u.numberFormat)(e*i.factor,i.decimals,n||".",r||","),{acres:"Acres",feet:"Feet",kilometers:"Kilometers",hectares:"Hectares",meters:"Meters",miles:"Miles",sqfeet:"Sq Feet",sqmeters:"Sq Meters",sqmiles:"Sq Miles"}[i.display]||i.display].join(" ")}var r=this.options.units;return{lengthDisplay:t(e.length,this.options.primaryLengthUnit,this.options.secondaryLengthUnit,this.options.decPoint,this.options.thousandsSep),areaDisplay:t(e.area,this.options.primaryAreaUnit,this.options.secondaryAreaUnit,this.options.decPoint,this.options.thousandsSep)}},_updateResults:function(){var e=(0,a.default)(this._latlngs),t=this._resultsModel=L.extend({},e,this._getMeasurementDisplayStrings(e),{pointCount:this._latlngs.length});this.$results.innerHTML=f({model:t})},_handleMeasureMove:function(e){this._measureDrag?this._measureDrag.setLatLng(e.latlng):this._measureDrag=L.circleMarker(e.latlng,this._symbols.getSymbol("measureDrag")).addTo(this._layer),this._measureDrag.bringToFront()},_handleMeasureDoubleClick:function(){var e=this._latlngs,t=void 0,n=void 0;if(this._finishMeasure(),e.length){e.length>2&&e.push(e[0]);var r=(0,a.default)(e);1===e.length?(t=L.circleMarker(e[0],this._symbols.getSymbol("resultPoint")),n=m({model:r})):2===e.length?(t=L.polyline(e,this._symbols.getSymbol("resultLine")),n=g({model:L.extend({},r,this._getMeasurementDisplayStrings(r))})):(t=L.polygon(e,this._symbols.getSymbol("resultArea")),n=y({model:L.extend({},r,this._getMeasurementDisplayStrings(r))}));var i=L.DomUtil.create("div","");i.innerHTML=n;var o=(0,s.selectOne)(".js-zoomto",i);o&&(L.DomEvent.on(o,"click",L.DomEvent.stop),L.DomEvent.on(o,"click",(function(){t.getBounds?this._map.fitBounds(t.getBounds(),{padding:[20,20],maxZoom:17}):t.getLatLng&&this._map.panTo(t.getLatLng())}),this));var l=(0,s.selectOne)(".js-deletemarkup",i);l&&(L.DomEvent.on(l,"click",L.DomEvent.stop),L.DomEvent.on(l,"click",(function(){this._layer.removeLayer(t)}),this)),t.addTo(this._layer),t.bindPopup(i,this.options.popupOptions),t.getBounds?t.openPopup(t.getBounds().getCenter()):t.getLatLng&&t.openPopup(t.getLatLng())}},_handleMeasureClick:function(e){var t=this._map.mouseEventToLatLng(e.originalEvent),n=this._latlngs[this._latlngs.length-1],r=this._symbols.getSymbol("measureVertex");n&&t.equals(n)||(this._latlngs.push(t),this._addMeasureArea(this._latlngs),this._addMeasureBoundary(this._latlngs),this._measureVertexes.eachLayer((function(e){e.setStyle(r),e._path&&e._path.setAttribute("class",r.className)})),this._addNewVertex(t),this._measureBoundary&&this._measureBoundary.bringToFront(),this._measureVertexes.bringToFront()),this._updateResults(),this._updateMeasureStartedWithPoints()},_handleMapMouseOut:function(){this._measureDrag&&(this._layer.removeLayer(this._measureDrag),this._measureDrag=null)},_addNewVertex:function(e){L.circleMarker(e,this._symbols.getSymbol("measureVertexActive")).addTo(this._measureVertexes)},_addMeasureArea:function(e){e.length<3?this._measureArea&&(this._layer.removeLayer(this._measureArea),this._measureArea=null):this._measureArea?this._measureArea.setLatLngs(e):this._measureArea=L.polygon(e,this._symbols.getSymbol("measureArea")).addTo(this._layer)},_addMeasureBoundary:function(e){e.length<2?this._measureBoundary&&(this._layer.removeLayer(this._measureBoundary),this._measureBoundary=null):this._measureBoundary?this._measureBoundary.setLatLngs(e):this._measureBoundary=L.polyline(e,this._symbols.getSymbol("measureBoundary")).addTo(this._layer)}}),L.Map.mergeOptions({measureControl:!1}),L.Map.addInitHook((function(){this.options.measureControl&&(this.measureControl=(new L.Control.Measure).addTo(this))})),L.control.measure=function(e){return new L.Control.Measure(e)}},function(e,t){},function(e,t,n){var r=n(32),i=n(62),o=n(65),a=n(66),s=n(67),l=n(22),c=n(15),u=n(68),d=n(25),p=n(71),h=n(26),f=/\b__p \+= '';/g,m=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/($^)/,b=/['\n\r\u2028\u2029\\]/g;e.exports=function(e,t,n){var _=p.imports._.templateSettings||p;n&&c(e,t,n)&&(t=void 0),e=h(e),t=r({},t,_,a);var w,x,k=r({},t.imports,_.imports,a),C=u(k),S=o(k,C),M=0,T=t.interpolate||v,E="__p += '",P=RegExp((t.escape||v).source+"|"+T.source+"|"+(T===d?y:v).source+"|"+(t.evaluate||v).source+"|$","g"),I="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";e.replace(P,(function(t,n,r,i,o,a){return r||(r=i),E+=e.slice(M,a).replace(b,s),n&&(w=!0,E+="' +\n__e("+n+") +\n'"),o&&(x=!0,E+="';\n"+o+";\n__p += '"),r&&(E+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),M=a+t.length,t})),E+="';\n";var O=t.variable;O||(E="with (obj) {\n"+E+"\n}\n"),E=(x?E.replace(f,""):E).replace(m,"$1").replace(g,"$1;"),E="function("+(O||"obj")+") {\n"+(O?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(w?", __e = _.escape":"")+(x?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+E+"return __p\n}";var L=i((function(){return Function(C,I+"return "+E).apply(void 0,S)}));if(L.source=E,l(L))throw L;return L}},function(e,t,n){var r=n(33),i=n(44),o=n(50),a=i((function(e,t,n,i){r(t,o(t),e,i)}));e.exports=a},function(e,t,n){var r=n(34),i=n(8);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r=n(8),i=n(6),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(36),i=n(43);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(10),i=n(40),o=n(2),a=n(42),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(4),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(41),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(5)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(12),i=n(15);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){var r=n(14),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},function(e,t,n){var r=n(47),i=n(49)(r);e.exports=i},function(e,t,n){var r=n(48),i=n(9),o=n(13),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,i=Date.now;e.exports=function(e){var t=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(18),i=n(60),o=n(7);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(53),i=n(1),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(0),i=n(1),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){(function(e){var r=n(5),i=n(55),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(t,n(20)(e))},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(57),i=n(58),o=n(59),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(0),i=n(16),o=n(1),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(11),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(t,n(20)(e))},function(e,t,n){var r=n(2),i=n(21),o=n(61),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(14),i=n(12),o=n(22),a=i((function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},function(e,t,n){var r=n(0),i=n(64),o=n(1),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},function(e,t,n){var r=n(23)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(24);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(6),i=Object.prototype,o=i.hasOwnProperty;e.exports=function(e,t,n,a){return void 0===e||r(e,i[n])&&!o.call(a,n)?t:e}},function(e,t){var n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=function(e){return"\\"+n[e]}},function(e,t,n){var r=n(18),i=n(69),o=n(7);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(21),i=n(70),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(23)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(72),i={escape:n(77),evaluate:n(78),interpolate:n(25),variable:"",imports:{_:{escape:r}}};e.exports=i},function(e,t,n){var r=n(73),i=n(26),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,r):e}},function(e,t,n){var r=n(74)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(4),i=n(24),o=n(19),a=n(76),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(0),i=n(1),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t){e.exports=/<%-([\s\S]+?)%>/g},function(e,t){e.exports=/<%([\s\S]+?)%>/g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={acres:{factor:24711e-8,display:"acres",decimals:2},feet:{factor:3.2808,display:"feet",decimals:0},kilometers:{factor:.001,display:"kilometers",decimals:2},hectares:{factor:1e-4,display:"hectares",decimals:2},meters:{factor:1,display:"meters",decimals:0},miles:{factor:3.2808/5280,display:"miles",decimals:2},sqfeet:{factor:10.7639,display:"sqfeet",decimals:0},sqmeters:{factor:1,display:"sqmeters",decimals:0},sqmiles:{factor:3.86102e-7,display:"sqmiles",decimals:2}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e<10?"0"+e.toString():e.toString()}function o(e,t,n){var r=Math.abs(e),o=Math.floor(r),a=Math.floor(60*(r-o)),s=Math.round(3600*(r-o-a/60)*100)/100,l=r===e?t:n;return i(o)+"&deg; "+i(a)+"' "+i(s)+'" '+l}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e[e.length-1],n=e.map((function(e){return[e.lat,e.lng]})),r=L.polyline(n),i=L.polygon(n),l=1e3*(0,a.default)(r.toGeoJSON(),{units:"kilometers"}),c=(0,s.default)(i.toGeoJSON());return{lastCoord:{dd:{x:t.lng,y:t.lat},dms:{x:o(t.lng,"E","W"),y:o(t.lat,"N","S")}},length:l,area:c}};var a=r(n(81)),s=r(n(84))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(82),i=n(27),o=n(3);t.default=function(e,t){if(t=t||{},!Object(o.d)(t))throw new Error("options is invalid");if(!e)throw new Error("geojson is required");return Object(i.b)(e,(function(e,n){var i=n.geometry.coordinates;return e+Object(r.a)(i[0],i[1],t)}),0)}},function(e,t,n){"use strict";var r=n(83),i=n(3);t.a=function(e,t,n){if(n=n||{},!Object(i.d)(n))throw new Error("options is invalid");var o=n.units,a=Object(r.a)(e),s=Object(r.a)(t),l=Object(i.a)(s[1]-a[1]),c=Object(i.a)(s[0]-a[0]),u=Object(i.a)(a[1]),d=Object(i.a)(s[1]),p=Math.pow(Math.sin(l/2),2)+Math.pow(Math.sin(c/2),2)*Math.cos(u)*Math.cos(d);return Object(i.g)(2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p)),o)}},function(e,t,n){"use strict";function r(e){if(!e)throw new Error("coord is required");if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;if(Array.isArray(e)&&e.length>=2&&void 0===e[0].length&&void 0===e[1].length)return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}n.d(t,"a",(function(){return r})),n(3)},function(e,t,n){"use strict";function r(e){var t,n=0;switch(e.type){case"Polygon":return i(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=i(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(t=0;t<e.geometries.length;t++)n+=r(e.geometries[t]);return n}}function i(e){var t=0;if(e&&e.length>0){t+=Math.abs(o(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(o(e[n]))}return t}function o(e){var t,n,r,i,o,s,c=0,u=e.length;if(u>2){for(s=0;s<u;s++)s===u-2?(r=u-2,i=u-1,o=0):s===u-1?(r=u-1,i=0,o=1):(r=s,i=s+1,o=s+2),t=e[r],n=e[i],c+=(a(e[o][0])-a(t[0]))*Math.sin(a(n[1]));c=c*l*l/2}return c}function a(e){return e*Math.PI/180}Object.defineProperty(t,"__esModule",{value:!0});var s=n(27),l=6378137;t.default=function(e){return Object(s.a)(e,(function(e,t){return e+r(t)}),0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectOne=function(e,t){return t||(t=document),t.querySelector(e)},t.selectAll=function(e,t){return t||(t=document),Array.prototype.slice.call(t.querySelectorAll(e))},t.hide=function(e){if(e)return e.setAttribute("style","display:none;"),e},t.show=function(e){if(e)return e.removeAttribute("style"),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={activeColor:"#ABE67E",completedColor:"#C8F2BE"},o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._options=L.extend({},i,this._options,t)}return r(e,[{key:"getSymbol",value:function(e){return{measureDrag:{clickable:!1,radius:4,color:this._options.activeColor,weight:2,opacity:.7,fillColor:this._options.activeColor,fillOpacity:.5,className:"layer-measuredrag"},measureArea:{clickable:!1,stroke:!1,fillColor:this._options.activeColor,fillOpacity:.2,className:"layer-measurearea"},measureBoundary:{clickable:!1,color:this._options.activeColor,weight:2,opacity:.9,fill:!1,className:"layer-measureboundary"},measureVertex:{clickable:!1,radius:4,color:this._options.activeColor,weight:2,opacity:1,fillColor:this._options.activeColor,fillOpacity:.7,className:"layer-measurevertex"},measureVertexActive:{clickable:!1,radius:4,color:this._options.activeColor,weight:2,opacity:1,fillColor:this._options.activeColor,fillOpacity:1,className:"layer-measurevertex active"},resultArea:{clickable:!0,color:this._options.completedColor,weight:2,opacity:.9,fillColor:this._options.completedColor,fillOpacity:.2,className:"layer-measure-resultarea"},resultLine:{clickable:!0,color:this._options.completedColor,weight:3,opacity:.9,fill:!1,className:"layer-measure-resultline"},resultPoint:{clickable:!0,radius:4,color:this._options.completedColor,weight:2,opacity:1,fillColor:this._options.completedColor,fillOpacity:.7,className:"layer-measure-resultpoint"}}[e]}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",",i=e<0?"-":"",o=Math.abs(+e||0),a=parseInt(o.toFixed(t),10)+"",s=a.length>3?a.length%3:0;return[i,s?a.substr(0,s)+r:"",a.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r),t?""+n+Math.abs(o-a).toFixed(t).slice(2):""].join("")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(89);Object.defineProperty(t,"controlTemplate",{enumerable:!0,get:function(){return r(i).default}});var o=n(90);Object.defineProperty(t,"resultsTemplate",{enumerable:!0,get:function(){return r(o).default}});var a=n(91);Object.defineProperty(t,"pointPopupTemplate",{enumerable:!0,get:function(){return r(a).default}});var s=n(92);Object.defineProperty(t,"linePopupTemplate",{enumerable:!0,get:function(){return r(s).default}});var l=n(93);Object.defineProperty(t,"areaPopupTemplate",{enumerable:!0,get:function(){return r(l).default}})},function(e,t,n){e.exports='<a class="{{ model.className }}-toggle js-toggle" href=# title="Measure distances and areas">Measure</a> <div class="{{ model.className }}-interaction js-interaction"> <div class="js-startprompt startprompt"> <h3>Measure distances and areas</h3> <ul class=tasks> <a href=# class="js-start start">Create a new measurement</a> </ul> </div> <div class=js-measuringprompt> <h3>Measure distances and areas</h3> <p class=js-starthelp>Start creating a measurement by adding points to the map</p> <div class="js-results results"></div> <ul class="js-measuretasks tasks"> <li><a href=# class="js-cancel cancel">Cancel</a></li> <li><a href=# class="js-finish finish">Finish measurement</a></li> </ul> </div> </div> '},function(e,t,n){e.exports='<div class=group> <p class="lastpoint heading">Last point</p> <p>{{ model.lastCoord.dms.y }} <span class=coorddivider>/</span> {{ model.lastCoord.dms.x }}</p> <p>{{ numberFormat(model.lastCoord.dd.y, 6) }} <span class=coorddivider>/</span> {{ numberFormat(model.lastCoord.dd.x, 6) }}</p> </div> <% if (model.pointCount > 1) { %> <div class=group> <p><span class=heading>Path distance</span> {{ model.lengthDisplay }}</p> </div> <% } %> <% if (model.pointCount > 2) { %> <div class=group> <p><span class=heading>Area</span> {{ model.areaDisplay }}</p> </div> <% } %> '},function(e,t,n){e.exports='<h3>Point location</h3> <p>{{ model.lastCoord.dms.y }} <span class=coorddivider>/</span> {{ model.lastCoord.dms.x }}</p> <p>{{ numberFormat(model.lastCoord.dd.y, 6) }} <span class=coorddivider>/</span> {{ numberFormat(model.lastCoord.dd.x, 6) }}</p> <ul class=tasks> <li><a href=# class="js-zoomto zoomto">Center on this location</a></li> <li><a href=# class="js-deletemarkup deletemarkup">Delete</a></li> </ul> '},function(e,t,n){e.exports='<h3>Linear measurement</h3> <p>{{ model.lengthDisplay }}</p> <ul class=tasks> <li><a href=# class="js-zoomto zoomto">Center on this line</a></li> <li><a href=# class="js-deletemarkup deletemarkup">Delete</a></li> </ul> '},function(e,t,n){e.exports='<h3>Area measurement</h3> <p>{{ model.areaDisplay }}</p> <p>{{ model.lengthDisplay }} Perimeter</p> <ul class=tasks> <li><a href=# class="js-zoomto zoomto">Center on this area</a></li> <li><a href=# class="js-deletemarkup deletemarkup">Delete</a></li> </ul> '}])},5395:function(e,t){!function(e){"use strict";var t="1.7.1";function n(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(e){return e._leaflet_id=e._leaflet_id||++o,e._leaflet_id}function s(e,t,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)},o}function l(e,t,n){var r=t[1],i=t[0],o=r-i;return e===r&&n?e:((e-i)%o+o)%o+i}function c(){return!1}function u(e,t){var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function p(e){return d(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_-]+) *\}/g;function g(e,t){return e.replace(m,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"===typeof r&&(r=r(t)),r}))}var y=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function v(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var w=0;function x(e){var t=+new Date,n=Math.max(0,16-(t-w));return w=t+n,window.setTimeout(e,n)}var k=window.requestAnimationFrame||_("RequestAnimationFrame")||x,C=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function S(e,t,n){if(!n||k!==x)return k.call(window,i(e,t));e.call(t)}function M(e){e&&C.call(window,e)}var T={extend:n,create:r,bind:i,lastId:o,stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:p,setOptions:h,getParamString:f,template:g,isArray:y,indexOf:v,emptyImageUrl:b,requestFn:k,cancelFn:C,requestAnimFrame:S,cancelAnimFrame:M};function E(){}function P(e){if("undefined"!==typeof L&&L&&L.Mixin){e=y(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}E.extend=function(e){var t=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=t.__super__=this.prototype,o=r(i);for(var a in o.constructor=t,t.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&(n(t,e.statics),delete e.statics),e.includes&&(P(e.includes),n.apply(null,[o].concat(e.includes)),delete e.includes),o.options&&(e.options=n(r(o.options),e.options)),n(o,e),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},t},E.include=function(e){return n(this.prototype,e),this},E.mergeOptions=function(e){return n(this.prototype.options,e),this},E.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(e,t,n){if("object"===typeof e)for(var r in e)this._on(r,e[r],t);else for(var i=0,o=(e=p(e)).length;i<o;i++)this._on(e[i],t,n);return this},off:function(e,t,n){if(e)if("object"===typeof e)for(var r in e)this._off(r,e[r],t);else for(var i=0,o=(e=p(e)).length;i<o;i++)this._off(e[i],t,n);else delete this._events;return this},_on:function(e,t,n){this._events=this._events||{};var r=this._events[e];r||(r=[],this._events[e]=r),n===this&&(n=void 0);for(var i={fn:t,ctx:n},o=r,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===n)return;o.push(i)},_off:function(e,t,n){var r,i,o;if(this._events&&(r=this._events[e]))if(t){if(n===this&&(n=void 0),r)for(i=0,o=r.length;i<o;i++){var a=r[i];if(a.ctx===n&&a.fn===t)return a.fn=c,this._firingCount&&(this._events[e]=r=r.slice()),void r.splice(i,1)}}else{for(i=0,o=r.length;i<o;i++)r[i].fn=c;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t){var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var r in this._eventParents)if(this._eventParents[r].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var r in e)this.once(r,e[r],t);return this}var o=i((function(){this.off(e,t,n).off(e,o,n)}),this);return this.on(e,t,n).on(e,o,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var O=E.extend(I);function R(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var j=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function D(e,t,n){return e instanceof R?e:y(e)?new R(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new R(e.x,e.y):new R(e,t,n)}function A(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function N(e,t){return!e||e instanceof A?e:new A(e,t)}function F(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function z(e,t){return e instanceof F?e:new F(e,t)}function B(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function U(e,t,n){return e instanceof B?e:y(e)&&"object"!==typeof e[0]?3===e.length?new B(e[0],e[1],e[2]):2===e.length?new B(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new B(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new B(e,t,n)}R.prototype={clone:function(){return new R(this.x,this.y)},add:function(e){return this.clone()._add(D(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(D(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new R(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new R(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=j(this.x),this.y=j(this.y),this},distanceTo:function(e){var t=(e=D(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=D(e)).x===this.x&&e.y===this.y},contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},A.prototype={extend:function(e){return e=D(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new R((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new R(this.min.x,this.max.y)},getTopRight:function(){return new R(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof R?D(e):N(e))instanceof A?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=N(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,a=i.y>=t.y&&r.y<=n.y;return o&&a},overlaps:function(e){e=N(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>t.x&&r.x<n.x,a=i.y>t.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},F.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof B)t=e,n=e;else{if(!(e instanceof F))return e?this.extend(U(e)||z(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new B(t.lat,t.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new F(new B(t.lat-r,t.lng-i),new B(n.lat+r,n.lng+i))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof B||"lat"in e?U(e):z(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof F?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,a=i.lng>=t.lng&&r.lng<=n.lng;return o&&a},overlaps:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>t.lat&&r.lat<n.lat,a=i.lng>t.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=z(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(e,t){return!!e&&(e=U(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},distanceTo:function(e){return V.distance(this,U(e))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return z([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var $={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new A(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new B(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var o=e.getSouthWest(),a=e.getNorthEast();return new F(new B(o.lat-r,o.lng-i),new B(a.lat-r,a.lng-i))}},V=n({},$,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,o=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),q=6378137,Z={R:q,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new R(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new B((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=q*Math.PI;return new A([-e,-e],[e,e])}()};function H(e,t,n,r){if(y(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function G(e,t,n,r){return new H(e,t,n,r)}H.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new R((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var W=n({},V,{code:"EPSG:3857",projection:Z,transformation:function(){var e=.5/(Math.PI*Z.R);return G(e,.5,-e,.5)}()}),Y=n({},W,{code:"EPSG:900913"});function K(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function X(e,t){var n,r,i,o,a,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,o=(a=e[n]).length;r<o;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=t?Pe?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,Q="ActiveXObject"in window,ee=Q&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Oe("webkit"),re=Oe("android"),ie=Oe("android 2")||Oe("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ae=re&&Oe("Google")&&oe<537&&!("AudioNode"in window),se=!!window.opera,le=!te&&Oe("chrome"),ce=Oe("gecko")&&!ne&&!se&&!Q,ue=!le&&Oe("safari"),de=Oe("phantom"),pe="OTransition"in J,he=0===navigator.platform.indexOf("Win"),fe=Q&&"transition"in J,me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,ge="MozPerspective"in J,ye=!window.L_DISABLE_3D&&(fe||me||ge)&&!pe&&!de,ve="undefined"!==typeof orientation||Oe("mobile"),be=ve&&ne,_e=ve&&me,we=!window.PointerEvent&&window.MSPointerEvent,xe=!(!window.PointerEvent&&!we),ke=!window.L_NO_TOUCH&&(xe||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Ce=ve&&se,Se=ve&&ce,Me=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Te=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",c,t),window.removeEventListener("testPassiveEventSupport",c,t)}catch(n){}return e}(),Ee=!!document.createElement("canvas").getContext,Pe=!(!document.createElementNS||!K("svg").createSVGRect),Ie=!Pe&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Oe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Le={ie:Q,ielt9:ee,edge:te,webkit:ne,android:re,android23:ie,androidStock:ae,opera:se,chrome:le,gecko:ce,safari:ue,phantom:de,opera12:pe,win:he,ie3d:fe,webkit3d:me,gecko3d:ge,any3d:ye,mobile:ve,mobileWebkit:be,mobileWebkit3d:_e,msPointer:we,pointer:xe,touch:ke,mobileOpera:Ce,mobileGecko:Se,retina:Me,passiveEvents:Te,canvas:Ee,svg:Pe,vml:Ie},Re=we?"MSPointerDown":"pointerdown",je=we?"MSPointerMove":"pointermove",De=we?"MSPointerUp":"pointerup",Ae=we?"MSPointerCancel":"pointercancel",Ne={},Fe=!1;function ze(e,t,n,r){return"touchstart"===t?Ue(e,n,r):"touchmove"===t?He(e,n,r):"touchend"===t&&Ge(e,n,r),this}function Be(e,t,n){var r=e["_leaflet_"+t+n];return"touchstart"===t?e.removeEventListener(Re,r,!1):"touchmove"===t?e.removeEventListener(je,r,!1):"touchend"===t&&(e.removeEventListener(De,r,!1),e.removeEventListener(Ae,r,!1)),this}function Ue(e,t,n){var r=i((function(e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Vt(e),Ze(e,t)}));e["_leaflet_touchstart"+n]=r,e.addEventListener(Re,r,!1),Fe||(document.addEventListener(Re,$e,!0),document.addEventListener(je,Ve,!0),document.addEventListener(De,qe,!0),document.addEventListener(Ae,qe,!0),Fe=!0)}function $e(e){Ne[e.pointerId]=e}function Ve(e){Ne[e.pointerId]&&(Ne[e.pointerId]=e)}function qe(e){delete Ne[e.pointerId]}function Ze(e,t){for(var n in e.touches=[],Ne)e.touches.push(Ne[n]);e.changedTouches=[e],t(e)}function He(e,t,n){var r=function(e){e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&0===e.buttons||Ze(e,t)};e["_leaflet_touchmove"+n]=r,e.addEventListener(je,r,!1)}function Ge(e,t,n){var r=function(e){Ze(e,t)};e["_leaflet_touchend"+n]=r,e.addEventListener(De,r,!1),e.addEventListener(Ae,r,!1)}var We=we?"MSPointerDown":xe?"pointerdown":"touchstart",Ye=we?"MSPointerUp":xe?"pointerup":"touchend",Ke="_leaflet_";function Xe(e,t,n){var r,i,o=!1,a=250;function s(e){if(xe){if(!e.isPrimary)return;if("mouse"===e.pointerType)return}else if(e.touches.length>1)return;var t=Date.now(),n=t-(r||t);i=e.touches?e.touches[0]:e,o=n>0&&n<=a,r=t}function l(e){if(o&&!i.cancelBubble){if(xe){if("mouse"===e.pointerType)return;var n,a,s={};for(a in i)n=i[a],s[a]=n&&n.bind?n.bind(i):n;i=s}i.type="dblclick",i.button=0,t(i),r=null}}return e[Ke+We+n]=s,e[Ke+Ye+n]=l,e[Ke+"dblclick"+n]=t,e.addEventListener(We,s,!!Te&&{passive:!1}),e.addEventListener(Ye,l,!!Te&&{passive:!1}),e.addEventListener("dblclick",t,!1),this}function Je(e,t){var n=e[Ke+We+t],r=e[Ke+Ye+t],i=e[Ke+"dblclick"+t];return e.removeEventListener(We,n,!!Te&&{passive:!1}),e.removeEventListener(Ye,r,!!Te&&{passive:!1}),e.removeEventListener("dblclick",i,!1),this}var Qe,et,tt,nt,rt,it=wt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ot=wt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),at="webkitTransition"===ot||"OTransition"===ot?ot+"End":"transitionend";function st(e){return"string"===typeof e?document.getElementById(e):e}function lt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ct(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function ut(e){var t=e.parentNode;t&&t.removeChild(e)}function dt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function pt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function ht(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function ft(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=vt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function mt(e,t){if(void 0!==e.classList)for(var n=p(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!ft(e,t)){var o=vt(e);yt(e,(o?o+" ":"")+t)}}function gt(e,t){void 0!==e.classList?e.classList.remove(t):yt(e,d((" "+vt(e)+" ").replace(" "+t+" "," ")))}function yt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function vt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function bt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&_t(e,t)}function _t(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function wt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function xt(e,t,n){var r=t||new R(0,0);e.style[it]=(fe?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function kt(e,t){e._leaflet_pos=t,ye?xt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ct(e){return e._leaflet_pos||new R(0,0)}if("onselectstart"in document)Qe=function(){Rt(window,"selectstart",Vt)},et=function(){Dt(window,"selectstart",Vt)};else{var St=wt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Qe=function(){if(St){var e=document.documentElement.style;tt=e[St],e[St]="none"}},et=function(){St&&(document.documentElement.style[St]=tt,tt=void 0)}}function Mt(){Rt(window,"dragstart",Vt)}function Tt(){Dt(window,"dragstart",Vt)}function Et(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Pt(),nt=e,rt=e.style.outline,e.style.outline="none",Rt(window,"keydown",Pt))}function Pt(){nt&&(nt.style.outline=rt,nt=void 0,rt=void 0,Dt(window,"keydown",Pt))}function It(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Ot(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Lt={TRANSFORM:it,TRANSITION:ot,TRANSITION_END:at,get:st,getStyle:lt,create:ct,remove:ut,empty:dt,toFront:pt,toBack:ht,hasClass:ft,addClass:mt,removeClass:gt,setClass:yt,getClass:vt,setOpacity:bt,testProp:wt,setTransform:xt,setPosition:kt,getPosition:Ct,disableTextSelection:Qe,enableTextSelection:et,disableImageDrag:Mt,enableImageDrag:Tt,preventOutline:Et,restoreOutline:Pt,getSizedParentNode:It,getScale:Ot};function Rt(e,t,n,r){if("object"===typeof t)for(var i in t)Ft(e,i,t[i],n);else for(var o=0,a=(t=p(t)).length;o<a;o++)Ft(e,t[o],n,r);return this}var jt="_leaflet_events";function Dt(e,t,n,r){if("object"===typeof t)for(var i in t)zt(e,i,t[i],n);else if(t)for(var o=0,a=(t=p(t)).length;o<a;o++)zt(e,t[o],n,r);else{for(var s in e[jt])zt(e,s,e[jt][s]);delete e[jt]}return this}function At(){if(xe)return!(te||ue)}var Nt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ft(e,t,n,r){var i=t+a(n)+(r?"_"+a(r):"");if(e[jt]&&e[jt][i])return this;var o=function(t){return n.call(r||e,t||window.event)},s=o;xe&&0===t.indexOf("touch")?ze(e,t,o,i):ke&&"dblclick"===t&&!At()?Xe(e,o,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Nt[t]||t,o,!!Te&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(o=function(t){t=t||window.event,Xt(e,t)&&s(t)},e.addEventListener(Nt[t],o,!1)):e.addEventListener(t,s,!1):"attachEvent"in e&&e.attachEvent("on"+t,o),e[jt]=e[jt]||{},e[jt][i]=o}function zt(e,t,n,r){var i=t+a(n)+(r?"_"+a(r):""),o=e[jt]&&e[jt][i];if(!o)return this;xe&&0===t.indexOf("touch")?Be(e,t,i):ke&&"dblclick"===t&&!At()?Je(e,i):"removeEventListener"in e?e.removeEventListener(Nt[t]||t,o,!1):"detachEvent"in e&&e.detachEvent("on"+t,o),e[jt][i]=null}function Bt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,Kt(e),this}function Ut(e){return Ft(e,"wheel",Bt),this}function $t(e){return Rt(e,"mousedown touchstart dblclick",Bt),Ft(e,"click",Yt),this}function Vt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function qt(e){return Vt(e),Bt(e),this}function Zt(e,t){if(!t)return new R(e.clientX,e.clientY);var n=Ot(t),r=n.boundingClientRect;return new R((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Ht=he&&le?2*window.devicePixelRatio:ce?window.devicePixelRatio:1;function Gt(e){return te?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Ht:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}var Wt={};function Yt(e){Wt[e.type]=!0}function Kt(e){var t=Wt[e.type];return Wt[e.type]=!1,t}function Xt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e}var Jt={on:Rt,off:Dt,stopPropagation:Bt,disableScrollPropagation:Ut,disableClickPropagation:$t,preventDefault:Vt,stop:qt,getMousePosition:Zt,getWheelDelta:Gt,fakeStop:Yt,skipped:Kt,isExternalTarget:Xt,addListener:Rt,removeListener:Dt},Qt=O.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Ct(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=S(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),kt(this._el,n),this.fire("step")},_complete:function(){M(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),en=O.extend({options:{crs:W,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(U(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ot&&ye&&!Ce&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Rt(this._proxy,at,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(U(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(ye?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(ye?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=(e instanceof R?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():z(e);var n=D(t.paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"===typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(e,t){if(!(e=z(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=D(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){mt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!ye)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),o=this.getSize(),a=this._zoom;e=U(e),t=void 0===t?a:t;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,t),c=i.distanceTo(r)||1,u=1.42,d=u*u;function p(e){var t=(l*l-s*s+(e?-1:1)*d*d*c*c)/(2*(e?l:s)*d*c),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return h(e)/f(e)}var g=p(0);function y(e){return s*(f(g)/f(g+u*e))}function v(e){return s*(f(g)*m(g+u*e)-h(g))/d}function b(e){return 1-Math.pow(1-e,1.5)}var _=Date.now(),w=(p(1)-g)/u,x=n.duration?1e3*n.duration:1e3*w*.8;function k(){var n=(Date.now()-_)/x,o=b(n)*w;n<=1?(this._flyToFrame=S(k,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(v(o)/c)),a),this.getScaleZoom(s/y(o),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),k.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=z(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,z(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=D((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.getCenter(),o=this.project(i),a=this.project(e),s=this.getPixelBounds(),l=s.getSize().divideBy(2),c=N([s.min.add(n),s.max.subtract(r)]);if(!c.contains(a)){this._enforcingBounds=!0;var u=o.subtract(a),d=D(a.x+u.x,a.y+u.y);(a.x<c.min.x||a.x>c.max.x)&&(d.x=o.x-u.x,u.x>0?d.x+=l.x-n.x:d.x-=l.x-r.x),(a.y<c.min.y||a.y>c.max.y)&&(d.y=o.y-u.y,u.y>0?d.y+=l.y-n.y:d.y-=l.y-r.y),this.panTo(this.unproject(d),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=t.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=new B(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"===typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ut(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ct("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new F(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=z(e),n=D(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),c=N(this.project(s,r),this.project(a,r)).getSize(),u=ye?this.options.zoomSnap:1,d=l.x/c.x,p=l.y/c.y,h=t?Math.max(d,p):Math.min(d,p);return r=this.getScaleZoom(h,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new A(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(U(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(D(e),t)},layerPointToLatLng:function(e){var t=D(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(U(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(U(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(z(e))},distance:function(e,t){return this.options.crs.distance(U(e),U(t))},containerPointToLayerPoint:function(e){return D(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return D(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(D(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(e)))},mouseEventToContainerPoint:function(e){return Zt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=st(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Rt(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&ye,mt(e,"leaflet-container"+(ke?" leaflet-touch":"")+(Me?" leaflet-retina":"")+(ee?" leaflet-oldie":"")+(ue?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=lt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),kt(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(mt(e.markerPane,"leaflet-zoom-hide"),mt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){kt(this._mapPane,new R(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){kt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[a(this._container)]=this;var t=e?Dt:Rt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),ye&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=S((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Xt(o,e))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!Xt(o,e)||(r=[this]),r},_handleDOMEvent:function(e){if(this._loaded&&!Kt(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||Et(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var i=n({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}if(!e._stopped&&(r=(r||[]).concat(this._findEventTargets(e,t))).length){var o=r[0];"contextmenu"===t&&o.listens(t,!0)&&Vt(e);var a={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(e),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l<r.length;l++)if(r[l].fire(t,a,!0),a.originalEvent._stopped||!1===r[l].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ct(this._mapPane)||new R(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return N([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new A(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,t);return a.round().equals([0,0])?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new A(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=N(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),o=r.max.subtract(e.max);return new R(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=ye?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){gt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ct("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=it,n=this._proxy.style[t];xt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();xt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(S((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,mt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&gt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),S((function(){this._moveEnd(!0)}),this))}});function tn(e,t){return new en(e,t)}var nn=E.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return mt(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ut(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),rn=function(e){return new nn(e)};en.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ct("div",t+"control-container",this._container);function r(r,i){var o=t+r+" "+t+i;e[r+i]=ct("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ut(this._controlCorners[e]);ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=nn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return nn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){mt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(mt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):gt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return gt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ct("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),$t(t),Ut(t);var r=this._section=ct("section",e+"-list");n&&(this._map.on("click",this.collapse,this),re||Rt(t,{mouseenter:this.expand,mouseleave:this.collapse},this));var i=this._layersLink=ct("a",e+"-toggle",t);i.href="#",i.title="Layers",ke?(Rt(i,"click",qt),Rt(i,"click",this.expand,this)):Rt(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ct("div",e+"-base",r),this._separator=ct("div",e+"-separator",r),this._overlaysList=ct("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;dt(this._baseLayersList),dt(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(t),t.layerId=a(e.layer),Rt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var o=document.createElement("div");return n.appendChild(o),o.appendChild(t),o.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),an=function(e,t,n){return new on(e,t,n)},sn=nn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ct("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var o=ct("a",n,r);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),$t(o),Rt(o,"click",qt),Rt(o,"click",i,this),Rt(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";gt(this._zoomInButton,t),gt(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&mt(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&mt(this._zoomInButton,t)}});en.mergeOptions({zoomControl:!0}),en.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var ln=function(e){return new sn(e)},cn=nn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ct("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ct("div",t,n)),e.imperial&&(this._iScale=ct("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new cn(e)},dn=nn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ct("div","leaflet-control-attribution"),$t(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}}});en.mergeOptions({attributionControl:!0}),en.addInitHook((function(){this.options.attributionControl&&(new dn).addTo(this)}));var pn=function(e){return new dn(e)};nn.Layers=on,nn.Zoom=sn,nn.Scale=cn,nn.Attribution=dn,rn.layers=an,rn.zoom=ln,rn.scale=un,rn.attribution=pn;var hn=E.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var fn,mn={Events:I},gn=ke?"touchstart mousedown":"mousedown",yn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},vn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=O.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){h(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Rt(this._dragStartTarget,gn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bn._dragging===this&&this.finishDrag(),Dt(this._dragStartTarget,gn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!ft(this._element,"leaflet-zoom-anim")&&!(bn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(bn._dragging=this,this._preventOutline&&Et(this._element),Mt(),Qe(),!this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=It(this._element);this._startPoint=new R(t.clientX,t.clientY),this._parentScale=Ot(n),Rt(document,vn[e.type],this._onMove,this),Rt(document,yn[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new R(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Vt(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Ct(this._element).subtract(n),mt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),mt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,M(this._animRequest),this._lastEvent=e,this._animRequest=S(this._updatePosition,this,!0)))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),kt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(e){!e._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var e in gt(document.body,"leaflet-dragging"),this._lastTarget&&(gt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),vn)Dt(document,vn[e],this._onMove,this),Dt(document,yn[e],this._onUp,this);Tt(),et(),this._moved&&this._moving&&(M(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,bn._dragging=!1}});function _n(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=kn(e=Sn(e,n),n)}function wn(e,t,n){return Math.sqrt(In(e,t,n,!0))}function xn(e,t,n){return In(e,t,n)}function kn(e,t){var n=e.length,r=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Cn(e,r,t,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(e[i]);return o}function Cn(e,t,n,r,i){var o,a,s,l=0;for(a=r+1;a<=i-1;a++)(s=In(e[a],e[r],e[i],!0))>l&&(o=a,l=s);l>n&&(t[o]=1,Cn(e,t,n,r,o),Cn(e,t,n,o,i))}function Sn(e,t){for(var n=[e[0]],r=1,i=0,o=e.length;r<o;r++)Pn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<o-1&&n.push(e[o-1]),n}function Mn(e,t,n,r,i){var o,a,s,l=r?fn:En(e,n),c=En(t,n);for(fn=c;;){if(!(l|c))return[e,t];if(l&c)return!1;s=En(a=Tn(e,t,o=l||c,n,i),n),o===l?(e=a,l=s):(t=a,c=s)}}function Tn(e,t,n,r,i){var o,a,s=t.x-e.x,l=t.y-e.y,c=r.min,u=r.max;return 8&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):4&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):2&n?(o=u.x,a=e.y+l*(u.x-e.x)/s):1&n&&(o=c.x,a=e.y+l*(c.x-e.x)/s),new R(o,a,i)}function En(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Pn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function In(e,t,n,r){var i,o=t.x,a=t.y,s=n.x-o,l=n.y-a,c=s*s+l*l;return c>0&&((i=((e.x-o)*s+(e.y-a)*l)/c)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=e.x-o,l=e.y-a,r?s*s+l*l:new R(o,a)}function On(e){return!y(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Ln(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),On(e)}var Rn={simplify:_n,pointToSegmentDistance:wn,closestPointOnSegment:xn,clipSegment:Mn,_getEdgeIntersection:Tn,_getBitCode:En,_sqClosestPointOnSegment:In,isFlat:On,_flat:Ln};function jn(e,t,n){var r,i,o,a,s,l,c,u,d,p=[1,4,2,8];for(i=0,c=e.length;i<c;i++)e[i]._code=En(e[i],t);for(a=0;a<4;a++){for(u=p[a],r=[],i=0,o=(c=e.length)-1;i<c;o=i++)s=e[i],l=e[o],s._code&u?l._code&u||((d=Tn(l,s,u,t,n))._code=En(d,t),r.push(d)):(l._code&u&&((d=Tn(l,s,u,t,n))._code=En(d,t),r.push(d)),r.push(s));e=r}return e}var Dn={clipPolygon:jn},An={project:function(e){return new R(e.lng,e.lat)},unproject:function(e){return new B(e.y,e.x)},bounds:new A([-180,-90],[180,90])},Nn={R:6378137,R_MINOR:6356752.314245179,bounds:new A([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new R(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=c=Math.PI/2-2*Math.atan(a*t)-s;return new B(s*n,e.x*n/r)}},Fn={LonLat:An,Mercator:Nn,SphericalMercator:Z},zn=n({},V,{code:"EPSG:3395",projection:Nn,transformation:function(){var e=.5/(Math.PI*Nn.R);return G(e,.5,-e,.5)}()}),Bn=n({},V,{code:"EPSG:4326",projection:An,transformation:G(1/180,1,-1/180,.5)}),Un=n({},$,{projection:An,transformation:G(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});$.Earth=V,$.EPSG3395=zn,$.EPSG3857=W,$.EPSG900913=Y,$.EPSG4326=Bn,$.Simple=Un;var $n=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});en.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?y(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){!isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Vn=$n.extend({initialize:function(e,t){var n,r;if(h(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return!!e&&("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),qn=function(e,t){return new Vn(e,t)},Zn=Vn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Vn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Vn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new F;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Hn=function(e,t){return new Zn(e,t)},Gn=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"===typeof r&&(r=[r,r]);var i=D(r),o=D("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Me&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Wn(e){return new Gn(e)}var Yn=Gn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return Yn.imagePath||(Yn.imagePath=this._detectIconPath()),(this.options.imagePath||Yn.imagePath)+Gn.prototype._getIconUrl.call(this,e)},_detectIconPath:function(){var e=ct("div","leaflet-default-icon-path",document.body),t=lt(e,"background-image")||lt(e,"backgroundImage");return document.body.removeChild(e),t=null===t||0!==t.indexOf("url")?"":t.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Kn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new bn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),mt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&gt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=Ct(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=N(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var c=D((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),kt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=S(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(M(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Ct(t._icon),i=t._map.layerPointToLatLng(r);n&&kt(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){M(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Xn=$n.extend({options:{icon:new Yn,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=U(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=U(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),mt(n,t),e.keyboard&&(n.tabIndex="0"),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var i=e.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(mt(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ut(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&kt(this._icon,e),this._shadow&&kt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(mt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Kn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Kn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&bt(this._icon,e),this._shadow&&bt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Jn(e,t){return new Xn(e,t)}var Qn=$n.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),er=Qn.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=U(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=U(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Qn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new A(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function tr(e,t){return new er(e,t)}var nr=er.extend({initialize:function(e,t,r){if("number"===typeof t&&(t=n({},r,{radius:t})),h(this,t),this._latlng=U(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Qn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===V.distance){var i=Math.PI/180,o=this._mRadius/V.R/i,a=n.project([t+o,e]),s=n.project([t-o,e]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(o*i)-Math.sin(t*i)*Math.sin(c*i))/(Math.cos(t*i)*Math.cos(c*i)))/i;(isNaN(u)||0===u)&&(u=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,e-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function rr(e,t,n){return new nr(e,t,n)}var ir=Qn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,o=In,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=o(e,t=l[c-1],n=l[c],!0);d<r&&(r=d,i=o(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,r=0;e<l-1;e++)if(i=s[e],o=s[e+1],(r+=n=i.distanceTo(o))>t)return a=(r-t)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=U(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new F,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return On(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=On(e),r=0,i=e.length;r<i;r++)n?(t[r]=U(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new A;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new R(e,e);this._pxBounds=new A([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)])},_projectLatlngs:function(e,t,n){var r,i,o=e[0]instanceof B,a=e.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,o,a,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,o=(s=this._rings[t]).length;n<o-1;n++)(a=Mn(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=_n(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((t||0!==r)&&wn(e,s[i],s[r])<=l)return!0;return!1}});function or(e,t){return new ir(e,t)}ir._flat=Ln;var ar=ir.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,o,a,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(o=a=s=0,e=0,t=u-1;e<u;t=e++)n=c[e],r=c[t],i=n.y*r.x-r.y*n.x,a+=(n.x+r.x)*i,s+=(n.y+r.y)*i,o+=3*i;return l=0===o?c[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=ir.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof B&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){ir.prototype._setLatLngs.call(this,e),On(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return On(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new R(t,t);if(e=new A(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=jn(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,o,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(l=(t=this._parts[i]).length)-1;o<l;a=o++)n=t[o],r=t[a],n.y>e.y!==r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||ir.prototype._containsPoint.call(this,e,!0)}});function sr(e,t){return new ar(e,t)}var lr=Zn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=y(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var a=cr(e,o);return a?(a.feature=gr(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function cr(e,t){var n,r,i,o,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],c=t&&t.pointToLayer,u=t&&t.coordsToLatLng||dr;if(!s&&!a)return null;switch(a.type){case"Point":return ur(c,e,n=u(s),t);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=u(s[i]),l.push(ur(c,e,n,t));return new Zn(l);case"LineString":case"MultiLineString":return r=pr(s,"LineString"===a.type?0:1,u),new ir(r,t);case"Polygon":case"MultiPolygon":return r=pr(s,"Polygon"===a.type?1:2,u),new ar(r,t);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var d=cr({geometry:a.geometries[i],type:"Feature",properties:e.properties},t);d&&l.push(d)}return new Zn(l);default:throw new Error("Invalid GeoJSON object.")}}function ur(e,t,n,r){return e?e(t,n):new Xn(n,r&&r.markersInheritOptions&&r)}function dr(e){return new B(e[1],e[0],e[2])}function pr(e,t,n){for(var r,i=[],o=0,a=e.length;o<a;o++)r=t?pr(e[o],t-1,n):(n||dr)(e[o]),i.push(r);return i}function hr(e,t){return t="number"===typeof t?t:6,void 0!==e.alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}function fr(e,t,n,r){for(var i=[],o=0,a=e.length;o<a;o++)i.push(t?fr(e[o],t-1,n,r):hr(e[o],r));return!t&&n&&i.push(i[0]),i}function mr(e,t){return e.feature?n({},e.feature,{geometry:t}):gr(t)}function gr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var yr={toGeoJSON:function(e){return mr(this,{type:"Point",coordinates:hr(this.getLatLng(),e)})}};function vr(e,t){return new lr(e,t)}Xn.include(yr),nr.include(yr),er.include(yr),ir.include({toGeoJSON:function(e){var t=!On(this._latlngs);return mr(this,{type:(t?"Multi":"")+"LineString",coordinates:fr(this._latlngs,t?1:0,!1,e)})}}),ar.include({toGeoJSON:function(e){var t=!On(this._latlngs),n=t&&!On(this._latlngs[0]),r=fr(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),mr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Vn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),mr(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var o=gr(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?mr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var br=vr,_r=$n.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=z(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(mt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&pt(this._image),this},bringToBack:function(){return this._map&&ht(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=z(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ct("img");mt(t,"leaflet-image-layer"),this._zoomAnimated&&mt(t,"leaflet-zoom-animated"),this.options.className&&mt(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;xt(this._image,n,t)},_reset:function(){var e=this._image,t=new A(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();kt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){bt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)}}),wr=function(e,t,n){return new _r(e,t,n)},xr=_r.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ct("video");if(mt(t,"leaflet-image-layer"),this._zoomAnimated&&mt(t,"leaflet-zoom-animated"),this.options.className&&mt(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[t.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted;for(var a=0;a<this._url.length;a++){var s=ct("source");s.src=this._url[a],t.appendChild(s)}}}});function kr(e,t,n){return new xr(e,t,n)}var Cr=_r.extend({_initImage:function(){var e=this._image=this._url;mt(e,"leaflet-image-layer"),this._zoomAnimated&&mt(e,"leaflet-zoom-animated"),this.options.className&&mt(e,this.options.className),e.onselectstart=c,e.onmousemove=c}});function Sr(e,t,n){return new Cr(e,t,n)}var Mr=$n.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(e,t){h(this,e),this._source=t},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&bt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&bt(this._container,1),this.bringToFront()},onRemove:function(e){e._fadeAnimated?(bt(this._container,0),this._removeTimeout=setTimeout(i(ut,void 0,this._container),200)):ut(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=U(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pt(this._container),this},bringToBack:function(){return this._map&&ht(this._container),this},_prepareOpen:function(e,t,n){if(t instanceof $n||(n=t,t=e),t instanceof Zn)for(var r in e._layers){t=e._layers[r];break}if(!n)if(t.getCenter)n=t.getCenter();else{if(!t.getLatLng)throw new Error("Unable to get source layer LatLng.");n=t.getLatLng()}return this._source=t,this.update(),n},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=D(this.options.offset),n=this._getAnchor();this._zoomAnimated?kt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}}),Tr=Mr.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e.openPopup(this),this},onAdd:function(e){Mr.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Qn||this._source.on("preclick",Bt))},onRemove:function(e){Mr.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Qn||this._source.off("preclick",Bt))},getEvents:function(){var e=Mr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e="leaflet-popup",t=this._container=ct("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ct("div",e+"-content-wrapper",t);if(this._contentNode=ct("div",e+"-content",n),$t(t),Ut(this._contentNode),Rt(t,"contextmenu",Bt),this._tipContainer=ct("div",e+"-tip-container",t),this._tip=ct("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ct("a",e+"-close-button",t);r.href="#close",r.innerHTML="&#215;",Rt(r,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",mt(e,o)):gt(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();kt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,t=parseInt(lt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new R(this._containerLeft,-n-this._containerBottom);i._add(Ct(this._container));var o=e.layerPointToContainerPoint(i),a=D(this.options.autoPanPadding),s=D(this.options.autoPanPaddingTopLeft||a),l=D(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,d=0;o.x+r+l.x>c.x&&(u=o.x+r-c.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+n+l.y>c.y&&(d=o.y+n-c.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(u||d)&&e.fire("autopanstart").panBy([u,d])}},_onCloseButtonClick:function(e){this._close(),qt(e)},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Er=function(e,t){return new Tr(e,t)};en.mergeOptions({closePopupOnClick:!0}),en.include({openPopup:function(e,t,n){return e instanceof Tr||(e=new Tr(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),$n.include({bindPopup:function(e,t){return e instanceof Tr?(h(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new Tr(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(qt(e),t instanceof Qn?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Pr=Mr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Mr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Mr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Mr.prototype.getEvents.call(this);return ke&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ct("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,c=i.offsetHeight,u=D(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=c):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=c/2):"right"===s?(t=0,n=c/2):"left"===s?(t=l,n=c/2):a.x<o.x?(s="right",t=0,n=c/2):(s="left",t=l+2*(u.x+d.x),n=c/2),e=e.subtract(D(t,n,!0)).add(u).add(d),gt(i,"leaflet-tooltip-right"),gt(i,"leaflet-tooltip-left"),gt(i,"leaflet-tooltip-top"),gt(i,"leaflet-tooltip-bottom"),mt(i,"leaflet-tooltip-"+s),kt(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&bt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(e,t){return new Pr(e,t)};en.include({openTooltip:function(e,t,n){return e instanceof Pr||(e=new Pr(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:this.addLayer(e)},closeTooltip:function(e){return e&&this.removeLayer(e),this}}),$n.include({bindTooltip:function(e,t){return e instanceof Pr?(h(e,t),this._tooltip=e,e._source=this):(this._tooltip&&!t||(this._tooltip=new Pr(t,this)),this._tooltip.setContent(e)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),ke&&(n.click=this._openTooltip)),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e,t){return this._tooltip&&this._map&&(t=this._tooltip._prepareOpen(this,e,t),this._map.openTooltip(this._tooltip,t),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(gt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(e){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(e)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){var t=e.layer||e.target;this._tooltip&&this._map&&this.openTooltip(t,this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var Or=Gn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(dt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=D(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Lr(e){return new Or(e)}Gn.Default=Yn;var Rr=$n.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ut(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ht(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof R?e:new R(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,o=n.length;i<o;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ee){bt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(e-i.loaded)/200);bt(i.el,o),o<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(M(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=ct("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(ut(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=ct("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ut(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),o=Math.floor(t/2),a=n-1,s=new R(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var o=2*t;o<2*t+2;o++){var a=new R(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();ye?xt(e.el,i,r):kt(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*r);return new A(i.subtract(o),i.add(o))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new A(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new R(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var d=i.min.y;d<=i.max.y;d++)for(var p=i.min.x;p<=i.max.x;p++){var h=new R(p,d);if(h.z=this._tileZoom,this._isValidTile(h)){var f=this._tiles[this._tileCoordsToKey(h)];f?f.current=!0:a.push(h)}}if(a.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(p=0;p<a.length;p++)this._addTile(a[p],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return z(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new F(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new R(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(ut(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){mt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=c,e.onmousemove=c,ee&&this.options.opacity<1&&bt(e,this.options.opacity),re&&!ie&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&S(i(this._tileReady,this,e,null,o)),kt(o,n),this._tiles[r]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(bt(n.el,0),M(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(mt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ee||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new R(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new A(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function jr(e){return new Rr(e)}var Dr=Rr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Me&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),re||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Rt(n,"load",i(this._tileOnLoad,this,t,n)),Rt(n,"error",i(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Me?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return g(this._url,n(t,this.options))},_tileOnLoad:function(e,t){ee?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=c,t.onerror=c,t.complete||(t.src=b,ut(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return ae||t.el.setAttribute("src",b),Rr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Rr.prototype._tileReady.call(this,e,t,n)}});function Ar(e,t){return new Dr(e,t)}var Nr=Dr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var i in t)i in this.options||(r[i]=t[i]);var o=(t=h(this,t)).detectRetina&&Me?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Dr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=N(n.project(t[0]),n.project(t[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===Bn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=Dr.prototype.getTileUrl.call(this,e);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Fr(e,t){return new Nr(e,t)}Dr.WMS=Nr,Ar.wms=Fr;var zr=$n.extend({options:{padding:.1,tolerance:0},initialize:function(e){h(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&mt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=Ct(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,t),a=this._map.project(e,t).subtract(o),s=i.multiplyBy(-n).add(r).add(i).subtract(a);ye?xt(this._container,s,n):kt(this._container,s)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new A(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Br=zr.extend({getEvents:function(){var e=zr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){zr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Rt(e,"mousemove",this._onMouseMove,this),Rt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Rt(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){M(this._redrawRequest),delete this._ctx,ut(this._container),Dt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){zr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Me?2:1;kt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Me&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){zr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new A,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,o,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"===e.type||!this._map._draggableMoved(t))&&(n=t);n&&(Yt(e),this._fireEvent([n],e))},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(gt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(mt(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Ur(e){return Ee?new Br(e):null}var $r=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Vr={_initContainer:function(){this._container=ct("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(zr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=$r("shape");mt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=$r("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ut(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=$r("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=y(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=$r("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){pt(e._container)},_bringToBack:function(e){ht(e._container)}},qr=Ie?$r:K,Zr=zr.extend({getEvents:function(){var e=zr.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=qr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=qr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ut(this._container),Dt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){zr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),kt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=qr("path");e.options.className&&mt(t,e.options.className),e.options.interactive&&mt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ut(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){pt(e._path)},_bringToBack:function(e){ht(e._path)}});function Hr(e){return Pe||Ie?new Zr(e):null}Ie&&Zr.include(Vr),en.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Ur(e)||Hr(e)}});var Gr=ar.extend({initialize:function(e,t){ar.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=z(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Wr(e,t){return new Gr(e,t)}Zr.create=qr,Zr.pointsToPath=X,lr.geometryToLayer=cr,lr.coordsToLatLng=dr,lr.coordsToLatLngs=pr,lr.latLngToCoords=hr,lr.latLngsToCoords=fr,lr.getFeature=mr,lr.asFeature=gr,en.mergeOptions({boxZoom:!0});var Yr=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Qe(),Mt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Rt(document,{contextmenu:qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ct("div","leaflet-zoom-box",this._container),mt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new A(this._point,this._startPoint),n=t.getSize();kt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ut(this._box),gt(this._container,"leaflet-crosshair")),et(),Tt(),Dt(document,{contextmenu:qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});en.addInitHook("addHandler","boxZoom",Yr),en.mergeOptions({doubleClickZoom:!0});var Kr=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});en.addInitHook("addHandler","doubleClickZoom",Kr),en.mergeOptions({dragging:!0,inertia:!ie,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Xr=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new bn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}mt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){gt(this._map._container,"leaflet-grab"),gt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=z(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,o=(r+t+n)%e-t-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),p=u.multiplyBy(-d/2).round();p.x||p.y?(p=t._limitOffset(p,t.options.maxBounds),S((function(){t.panBy(p,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});en.addInitHook("addHandler","dragging",Xr),en.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Jr=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Rt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Dt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){Rt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=D(t).multiplyBy(3)),r.panBy(t),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}qt(e)}}});en.addInitHook("addHandler","keyboard",Jr),en.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Qr=hn.extend({addHooks:function(){Rt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Gt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),qt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});en.addInitHook("addHandler","scrollWheelZoom",Qr),en.mergeOptions({tap:!0,tapTolerance:15});var ei=hn.extend({addHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(Vt(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],n=t.target;this._startPos=this._newPos=new R(t.clientX,t.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&mt(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))}),this),1e3),this._simulateEvent("mousedown",t),Rt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),Dt(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&gt(n,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new R(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var n=document.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}});!ke||xe&&!ue||en.addInitHook("addHandler","tap",ei),en.mergeOptions({touchZoom:ke&&!ie,bounceAtZoomLimits:!0});var ti=hn.extend({addHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend",this._onTouchEnd,this),Vt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(s,this,!0),Vt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,M(this._animRequest),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});en.addInitHook("addHandler","touchZoom",ti),en.BoxZoom=Yr,en.DoubleClickZoom=Kr,en.Drag=Xr,en.Keyboard=Jr,en.ScrollWheelZoom=Qr,en.Tap=ei,en.TouchZoom=ti,e.version=t,e.Control=nn,e.control=rn,e.Browser=Le,e.Evented=O,e.Mixin=mn,e.Util=T,e.Class=E,e.Handler=hn,e.extend=n,e.bind=i,e.stamp=a,e.setOptions=h,e.DomEvent=Jt,e.DomUtil=Lt,e.PosAnimation=Qt,e.Draggable=bn,e.LineUtil=Rn,e.PolyUtil=Dn,e.Point=R,e.point=D,e.Bounds=A,e.bounds=N,e.Transformation=H,e.transformation=G,e.Projection=Fn,e.LatLng=B,e.latLng=U,e.LatLngBounds=F,e.latLngBounds=z,e.CRS=$,e.GeoJSON=lr,e.geoJSON=vr,e.geoJson=br,e.Layer=$n,e.LayerGroup=Vn,e.layerGroup=qn,e.FeatureGroup=Zn,e.featureGroup=Hn,e.ImageOverlay=_r,e.imageOverlay=wr,e.VideoOverlay=xr,e.videoOverlay=kr,e.SVGOverlay=Cr,e.svgOverlay=Sr,e.DivOverlay=Mr,e.Popup=Tr,e.popup=Er,e.Tooltip=Pr,e.tooltip=Ir,e.Icon=Gn,e.icon=Wn,e.DivIcon=Or,e.divIcon=Lr,e.Marker=Xn,e.marker=Jn,e.TileLayer=Dr,e.tileLayer=Ar,e.GridLayer=Rr,e.gridLayer=jr,e.SVG=Zr,e.svg=Hr,e.Renderer=zr,e.Canvas=Br,e.canvas=Ur,e.Path=Qn,e.CircleMarker=er,e.circleMarker=tr,e.Circle=nr,e.circle=rr,e.Polyline=ir,e.polyline=or,e.Polygon=ar,e.polygon=sr,e.Rectangle=Gr,e.rectangle=Wr,e.Map=en,e.map=tn;var ni=window.L;e.noConflict=function(){return window.L=ni,this},window.L=e}(t)},46799:(e,t,n)=>{var r=n(66433),i=n(38511),o=n(91147),a=[].push;e.exports=function(e){var t=e[0],n=e[2],s=e[4];function l(){if(n){var e=n.slice();a.apply(e,arguments)}if(this instanceof l){var o=r(t.prototype),c=t.apply(o,e||arguments);return i(c)?c:o}return t.apply(s,e||arguments)}return o(l,e),l}},66433:(e,t,n)=>{var r=n(38511),i=(n(47370),n(9226).test(i=Object.create)&&i);function o(e,t){return r(e)?i(e):{}}i||(o=function(){function e(){}return function(t){if(r(t)){e.prototype=t;var i=new e;e.prototype=null}return i||n.g.Object()}}()),e.exports=o},51348:(e,t,n)=>{var r=n(3145),i=n(8606),o=n(91147),a=n(26644),s=/^\s*function[ \n\r\t]+\w/,l=/\bthis\b/,c=Function.prototype.toString;e.exports=function(e,t,n){if("function"!=typeof e)return i;if("undefined"==typeof t||!("prototype"in e))return e;var u=e.__bindData__;if("undefined"==typeof u&&(a.funcNames&&(u=!e.name),!(u=u||!a.funcDecomp))){var d=c.call(e);a.funcNames||(u=!s.test(d)),u||(u=l.test(d),o(e,u))}if(!1===u||!0!==u&&1&u[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return r(e,t)}},50645:(e,t,n)=>{var r=n(66433),i=n(38511),o=n(91147),a=n(71534),s=[].push;e.exports=function e(t){var n=t[0],l=t[1],c=t[2],u=t[3],d=t[4],p=t[5],h=1&l,f=2&l,m=4&l,g=8&l,y=n;function v(){var t=h?d:this;if(c){var o=c.slice();s.apply(o,arguments)}if((u||m)&&(o||(o=a(arguments)),u&&s.apply(o,u),m&&o.length<p))return l|=16,e([n,g?l:-4&l,o,null,d,p]);if(o||(o=arguments),f&&(n=t[y]),this instanceof v){t=r(n.prototype);var b=n.apply(t,o);return i(b)?b:t}return n.apply(t,o)}return o(v,t),v}},40674:(e,t,n)=>{var r=n(46799),i=n(50645),o=n(5213),a=[].push;e.exports=function e(t,n,s,l,c,u){var d=1&n,p=4&n,h=16&n,f=32&n;if(!(2&n)&&!o(t))throw new TypeError;h&&!s.length&&(n&=-17,h=s=!1),f&&!l.length&&(n&=-33,f=l=!1);var m=t&&t.__bindData__;return m&&!0!==m?(m=m.slice(),!d||1&m[1]||(m[4]=c),!d&&1&m[1]&&(n|=8),!p||4&m[1]||(m[5]=u),h&&a.apply(m[2]||(m[2]=[]),s),f&&a.apply(m[3]||(m[3]=[]),l),m[1]|=n,e.apply(null,m)):(1==n||17===n?r:i)([t,n,s,l,c,u])}},49025:e=>{e.exports={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1}},9226:e=>{var t=Object.prototype.toString,n=RegExp("^"+String(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=n},91147:(e,t,n)=>{var r=n(47370),i=n(9226),o={configurable:!1,enumerable:!1,value:null,writable:!1},a=function(){try{var e={},t=i.test(t=Object.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),s=a?function(e,t){o.value=t,a(e,"__bindData__",o)}:r;e.exports=s},12651:(e,t,n)=>{var r=n(49025),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=e,o=[];if(!n)return o;if(!r[typeof e])return o;for(t in n)i.call(n,t)&&o.push(t);return o}},71534:e=>{e.exports=function(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,o=Array(i<0?0:i);++r<i;)o[r]=e[t+r];return o}},3145:(e,t,n)=>{var r=n(40674),i=(n(9226),n(71534));e.exports=function(e,t){return arguments.length>2?r(e,17,i(arguments,2),null,t):r(e,1,null,null,t)}},72993:(e,t,n)=>{var r=n(51348),i=n(64965);e.exports=function(e,t,n){var o=-1,a=e?e.length:0;if(t=t&&"undefined"==typeof n?t:r(t,n,3),"number"==typeof a)for(;++o<a&&!1!==t(e[o],o,e););else i(e,t);return e}},64965:(e,t,n)=>{var r=n(51348),i=n(44255),o=n(49025);e.exports=function(e,t,n){var a,s=e,l=s;if(!s)return l;if(!o[typeof s])return l;t=t&&"undefined"==typeof n?t:r(t,n,3);for(var c=-1,u=o[typeof s]&&i(s),d=u?u.length:0;++c<d;)if(!1===t(s[a=u[c]],a,e))return l;return l}},8606:e=>{e.exports=function(e){return e}},73973:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",f="[object Map]",m="[object Number]",g="[object Object]",y="[object Promise]",v="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",C="[object DataView]",S=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[l]=T[k]=T[c]=T[C]=T[u]=T[d]=T[p]=T[f]=T[m]=T[g]=T[v]=T[b]=T[_]=T[x]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,P="object"==typeof self&&self&&self.Object===Object&&self,I=E||P||Function("return this")(),O=t&&!t.nodeType&&t,L=O&&e&&!e.nodeType&&e,R=L&&L.exports===O&&E.process,j=function(){try{return R&&R.binding("util")}catch(e){}}(),D=j&&j.isTypedArray;function A(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function F(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var B,U,$=Array.prototype,V=Function.prototype,q=Object.prototype,Z=I["__core-js_shared__"],H=function(){var e=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),G=V.toString,W=q.hasOwnProperty,Y=q.toString,K=RegExp("^"+G.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=I.Symbol,J=I.Uint8Array,Q=q.propertyIsEnumerable,ee=$.splice,te=(B=Object.keys,U=Object,function(e){return B(U(e))}),ne=Te(I,"DataView"),re=Te(I,"Map"),ie=Te(I,"Promise"),oe=Te(I,"Set"),ae=Te(I,"WeakMap"),se=Te(Object,"create"),le=Ie(ne),ce=Ie(re),ue=Ie(ie),de=Ie(oe),pe=Ie(ae),he=X?X.prototype:void 0,fe=he?he.valueOf:void 0;function me(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=e?e.length:0;for(this.__data__=new ye;++t<n;)this.add(e[t])}function be(e){this.__data__=new ge(e)}function _e(e,t){var n=Le(e)||function(e){return function(e){return Ne(e)&&Re(e)}(e)&&W.call(e,"callee")&&(!Q.call(e,"callee")||Y.call(e)==s)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!W.call(e,o)||i&&("length"==o||Pe(o,r))||n.push(o);return n}function we(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function xe(e,t,n,r,a){return e===t||(null==e||null==t||!Ae(e)&&!Ne(t)?e!==e&&t!==t:function(e,t,n,r,a,p){var h=Le(e),y=Le(t),x=l,S=l;h||(x=(x=Ee(e))==s?g:x);y||(S=(S=Ee(t))==s?g:S);var M=x==g&&!N(e),T=S==g&&!N(t),E=x==S;if(E&&!M)return p||(p=new be),h||Fe(e)?Se(e,t,n,r,a,p):function(e,t,n,r,a,s,l){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!r(new J(e),new J(t)));case c:case u:case m:return Oe(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case _:return e==t+"";case f:var p=F;case b:var h=s&o;if(p||(p=z),e.size!=t.size&&!h)return!1;var g=l.get(e);if(g)return g==t;s|=i,l.set(e,t);var y=Se(p(e),p(t),r,a,s,l);return l.delete(e),y;case w:if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,x,n,r,a,p);if(!(a&o)){var P=M&&W.call(e,"__wrapped__"),I=T&&W.call(t,"__wrapped__");if(P||I){var O=P?e.value():e,L=I?t.value():t;return p||(p=new be),n(O,L,r,a,p)}}if(!E)return!1;return p||(p=new be),function(e,t,n,r,i,a){var s=i&o,l=ze(e),c=l.length,u=ze(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:W.call(t,h)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++p<c;){var y=e[h=l[p]],v=t[h];if(r)var b=s?r(v,y,h,t,e,a):r(y,v,h,e,t,a);if(!(void 0===b?y===v||n(y,v,r,i,a):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,a,p)}(e,t,xe,n,r,a))}function ke(e){return!(!Ae(e)||function(e){return!!H&&H in e}(e))&&(je(e)||N(e)?K:S).test(Ie(e))}function Ce(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||q;return e===n}(e))return te(e);var t=[];for(var n in Object(e))W.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Se(e,t,n,r,a,s){var l=a&o,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&i?new ve:void 0;for(s.set(e,t),s.set(t,e);++p<c;){var m=e[p],g=t[p];if(r)var y=l?r(g,m,p,t,e,s):r(m,g,p,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(f){if(!A(t,(function(e,t){if(!f.has(t)&&(m===e||n(m,e,r,a,s)))return f.add(t)}))){h=!1;break}}else if(m!==g&&!n(m,g,r,a,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function Me(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ke(n)?n:void 0}me.prototype.clear=function(){this.__data__=se?se(null):{}},me.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},me.prototype.get=function(e){var t=this.__data__;if(se){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:W.call(t,e)},me.prototype.set=function(e,t){return this.__data__[e]=se&&void 0===t?r:t,this},ge.prototype.clear=function(){this.__data__=[]},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():ee.call(t,n,1),!0)},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ye.prototype.clear=function(){this.__data__={hash:new me,map:new(re||ge),string:new me}},ye.prototype.delete=function(e){return Me(this,e).delete(e)},ye.prototype.get=function(e){return Me(this,e).get(e)},ye.prototype.has=function(e){return Me(this,e).has(e)},ye.prototype.set=function(e,t){return Me(this,e).set(e,t),this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,r),this},ve.prototype.has=function(e){return this.__data__.has(e)},be.prototype.clear=function(){this.__data__=new ge},be.prototype.delete=function(e){return this.__data__.delete(e)},be.prototype.get=function(e){return this.__data__.get(e)},be.prototype.has=function(e){return this.__data__.has(e)},be.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!re||r.length<199)return r.push([e,t]),this;n=this.__data__=new ye(r)}return n.set(e,t),this};var Ee=function(e){return Y.call(e)};function Pe(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e){if(null!=e){try{return G.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Oe(e,t){return e===t||e!==e&&t!==t}(ne&&Ee(new ne(new ArrayBuffer(1)))!=C||re&&Ee(new re)!=f||ie&&Ee(ie.resolve())!=y||oe&&Ee(new oe)!=b||ae&&Ee(new ae)!=x)&&(Ee=function(e){var t=Y.call(e),n=t==g?e.constructor:void 0,r=n?Ie(n):void 0;if(r)switch(r){case le:return C;case ce:return f;case ue:return y;case de:return b;case pe:return x}return t});var Le=Array.isArray;function Re(e){return null!=e&&De(e.length)&&!je(e)}function je(e){var t=Ae(e)?Y.call(e):"";return t==p||t==h}function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ae(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ne(e){return!!e&&"object"==typeof e}var Fe=D?function(e){return function(t){return e(t)}}(D):function(e){return Ne(e)&&De(e.length)&&!!T[Y.call(e)]};function ze(e){return Re(e)?_e(e):Ce(e)}e.exports=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?xe(e,t,n):!!r}},5213:e=>{e.exports=function(e){return"function"==typeof e}},38511:(e,t,n)=>{var r=n(49025);e.exports=function(e){return!(!e||!r[typeof e])}},44255:(e,t,n)=>{var r=n(38511),i=n(9226),o=n(12651),a=i.test(a=Object.keys)&&a,s=a?function(e){return r(e)?a(e):[]}:o;e.exports=s},47370:e=>{e.exports=function(){}},26644:(e,t,n)=>{var r=n(9226),i={};i.funcDecomp=!r.test(n.g.WinRTError)&&/\bthis\b/.test((function(){return this})),i.funcNames="string"==typeof Function.name,e.exports=i},69815:(e,t,n)=>{var r=n(73232)(n(28106),"DataView");e.exports=r},85549:(e,t,n)=>{var r=n(45459),i=n(30698),o=n(92450),a=n(7737),s=n(25552);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},26008:(e,t,n)=>{var r=n(28922),i=n(50776),o=n(87317),a=n(29971),s=n(15118);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},3831:(e,t,n)=>{var r=n(73232)(n(28106),"Map");e.exports=r},62893:(e,t,n)=>{var r=n(23791),i=n(80948),o=n(77437),a=n(64638),s=n(83349);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},35939:(e,t,n)=>{var r=n(73232)(n(28106),"Promise");e.exports=r},14571:(e,t,n)=>{var r=n(73232)(n(28106),"Set");e.exports=r},89110:(e,t,n)=>{var r=n(62893),i=n(36555),o=n(7088);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},21540:(e,t,n)=>{var r=n(26008),i=n(84017),o=n(31558),a=n(68857),s=n(49910),l=n(97483);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},17950:(e,t,n)=>{var r=n(28106).Symbol;e.exports=r},47942:(e,t,n)=>{var r=n(28106).Uint8Array;e.exports=r},76122:(e,t,n)=>{var r=n(73232)(n(28106),"WeakMap");e.exports=r},13668:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},60056:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},76990:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},15689:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},34575:(e,t,n)=>{var r=n(77779);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},16644:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},23916:(e,t,n)=>{var r=n(66224),i=n(18819),o=n(36228),a=n(51920),s=n(27743),l=n(10587),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},28778:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},38319:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},85651:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},37436:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},96454:(e,t,n)=>{var r=n(98954)("length");e.exports=r},36250:e=>{e.exports=function(e){return e.split("")}},16944:(e,t,n)=>{var r=n(61200),i=n(26806);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},96208:(e,t,n)=>{var r=n(61200),i=n(26806),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},83736:(e,t,n)=>{var r=n(26806);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},86732:(e,t,n)=>{var r=n(19376);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},81287:(e,t,n)=>{var r=n(79217),i=n(15108);e.exports=function(e,t){return e&&r(t,i(t),e)}},1444:(e,t,n)=>{var r=n(79217),i=n(28599);e.exports=function(e,t){return e&&r(t,i(t),e)}},61200:(e,t,n)=>{var r=n(84989);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},33220:(e,t,n)=>{var r=n(21540),i=n(76990),o=n(96208),a=n(81287),s=n(1444),l=n(56989),c=n(77698),u=n(76627),d=n(4810),p=n(37419),h=n(87515),f=n(49808),m=n(7483),g=n(58577),y=n(68247),v=n(36228),b=n(51920),_=n(79394),w=n(27067),x=n(34381),k=n(15108),C=n(28599),S="[object Arguments]",M="[object Function]",T="[object Object]",E={};E[S]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[T]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[M]=E["[object WeakMap]"]=!1,e.exports=function e(t,n,P,I,O,L){var R,j=1&n,D=2&n,A=4&n;if(P&&(R=O?P(t,I,O,L):P(t)),void 0!==R)return R;if(!w(t))return t;var N=v(t);if(N){if(R=m(t),!j)return c(t,R)}else{var F=f(t),z=F==M||"[object GeneratorFunction]"==F;if(b(t))return l(t,j);if(F==T||F==S||z&&!O){if(R=D||z?{}:y(t),!j)return D?d(t,s(R,t)):u(t,a(R,t))}else{if(!E[F])return O?t:{};R=g(t,F,j)}}L||(L=new r);var B=L.get(t);if(B)return B;L.set(t,R),x(t)?t.forEach((function(r){R.add(e(r,n,P,r,t,L))})):_(t)&&t.forEach((function(r,i){R.set(i,e(r,n,P,i,t,L))}));var U=N?void 0:(A?D?h:p:D?C:k)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(R,i,e(r,n,P,i,t,L))})),R}},64914:(e,t,n)=>{var r=n(27067),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},34869:(e,t,n)=>{var r=n(89110),i=n(34575),o=n(16644),a=n(28778),s=n(73779),l=n(96201);e.exports=function(e,t,n,c){var u=-1,d=i,p=!0,h=e.length,f=[],m=t.length;if(!h)return f;n&&(t=a(t,s(n))),c?(d=o,p=!1):t.length>=200&&(d=l,p=!1,t=new r(t));e:for(;++u<h;){var g=e[u],y=null==n?g:n(g);if(g=c||0!==g?g:0,p&&y===y){for(var v=m;v--;)if(t[v]===y)continue e;f.push(g)}else d(t,y,c)||f.push(g)}return f}},19376:(e,t,n)=>{var r=n(51993),i=n(33252)(r);e.exports=i},25917:(e,t,n)=>{var r=n(89317);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s===s&&!r(s):n(s,l)))var l=s,c=a}return c}},84672:(e,t,n)=>{var r=n(19376);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},69935:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},78355:(e,t,n)=>{var r=n(38319),i=n(17223);e.exports=function e(t,n,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},95330:(e,t,n)=>{var r=n(39382)();e.exports=r},51993:(e,t,n)=>{var r=n(95330),i=n(15108);e.exports=function(e,t){return e&&r(e,t,i)}},37261:(e,t,n)=>{var r=n(96094),i=n(99130);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},94979:(e,t,n)=>{var r=n(38319),i=n(36228);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},8155:(e,t,n)=>{var r=n(17950),i=n(89083),o=n(66768),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},62871:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},77779:(e,t,n)=>{var r=n(69935),i=n(20337),o=n(58572);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},20181:(e,t,n)=>{var r=n(89110),i=n(34575),o=n(16644),a=n(28778),s=n(73779),l=n(96201),c=Math.min;e.exports=function(e,t,n){for(var u=n?o:i,d=e[0].length,p=e.length,h=p,f=Array(p),m=1/0,g=[];h--;){var y=e[h];h&&t&&(y=a(y,s(t))),m=c(y.length,m),f[h]=!n&&(t||d>=120&&y.length>=120)?new r(h&&y):void 0}y=e[0];var v=-1,b=f[0];e:for(;++v<d&&g.length<m;){var _=y[v],w=t?t(_):_;if(_=n||0!==_?_:0,!(b?l(b,w):u(g,w,n))){for(h=p;--h;){var x=f[h];if(!(x?l(x,w):u(e[h],w,n)))continue e}b&&b.push(w),g.push(_)}}return g}},26178:(e,t,n)=>{var r=n(8155),i=n(15643);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},13528:(e,t,n)=>{var r=n(8155),i=n(15643);e.exports=function(e){return i(e)&&"[object Date]"==r(e)}},16584:(e,t,n)=>{var r=n(35047),i=n(15643);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},35047:(e,t,n)=>{var r=n(21540),i=n(22566),o=n(77836),a=n(92996),s=n(49808),l=n(36228),c=n(51920),u=n(10587),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=l(e),b=l(t),_=v?p:s(e),w=b?p:s(t),x=(_=_==d?h:_)==h,k=(w=w==d?h:w)==h,C=_==w;if(C&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(C&&!x)return y||(y=new r),v||u(e)?i(e,t,n,m,g,y):o(e,t,_,n,m,g,y);if(!(1&n)){var S=x&&f.call(e,"__wrapped__"),M=k&&f.call(t,"__wrapped__");if(S||M){var T=S?e.value():e,E=M?t.value():t;return y||(y=new r),g(T,E,n,m,y)}}return!!C&&(y||(y=new r),a(e,t,n,m,g,y))}},39338:(e,t,n)=>{var r=n(49808),i=n(15643);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},19498:(e,t,n)=>{var r=n(21540),i=n(16584);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(o)var f=o(d,p,u,e,t,h);if(!(void 0===f?i(p,d,3,o,h):f))return!1}}return!0}},20337:e=>{e.exports=function(e){return e!==e}},72040:(e,t,n)=>{var r=n(96620),i=n(31846),o=n(27067),a=n(62931),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},22895:(e,t,n)=>{var r=n(8155),i=n(15643);e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},20523:(e,t,n)=>{var r=n(49808),i=n(15643);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},21503:(e,t,n)=>{var r=n(8155),i=n(2262),o=n(15643),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},28632:(e,t,n)=>{var r=n(22387),i=n(40951),o=n(50046),a=n(36228),s=n(29190);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},60859:(e,t,n)=>{var r=n(15917),i=n(32872),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},29949:(e,t,n)=>{var r=n(27067),i=n(15917),o=n(89949),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},57016:e=>{e.exports=function(e,t){return e<t}},48969:(e,t,n)=>{var r=n(19376),i=n(47732);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},22387:(e,t,n)=>{var r=n(19498),i=n(27551),o=n(61621);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},40951:(e,t,n)=>{var r=n(16584),i=n(36844),o=n(34241),a=n(12338),s=n(74381),l=n(61621),c=n(99130);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},62459:(e,t,n)=>{var r=n(28726);e.exports=function(e,t){var n=null==e?0:e.length;return n?r(e,t)/n:NaN}},54142:(e,t,n)=>{var r=n(21540),i=n(16944),o=n(95330),a=n(96592),s=n(27067),l=n(28599),c=n(63696);e.exports=function e(t,n,u,d,p){t!==n&&o(n,(function(o,l){if(p||(p=new r),s(o))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),o,l+"",t,n,p):void 0;void 0===h&&(h=o),i(t,l,h)}}),l)}},96592:(e,t,n)=>{var r=n(16944),i=n(56989),o=n(76224),a=n(77698),s=n(68247),l=n(18819),c=n(36228),u=n(23003),d=n(51920),p=n(96620),h=n(27067),f=n(48291),m=n(10587),g=n(63696),y=n(15234);e.exports=function(e,t,n,v,b,_,w){var x=g(e,n),k=g(t,n),C=w.get(k);if(C)r(e,n,C);else{var S=_?_(x,k,n+"",e,t,w):void 0,M=void 0===S;if(M){var T=c(k),E=!T&&d(k),P=!T&&!E&&m(k);S=k,T||E||P?c(x)?S=x:u(x)?S=a(x):E?(M=!1,S=i(k,!0)):P?(M=!1,S=o(k,!0)):S=[]:f(k)||l(k)?(S=x,l(x)?S=y(x):h(x)&&!p(x)||(S=s(k))):M=!1}M&&(w.set(k,S),b(S,k,v,_,w),w.delete(k)),r(e,n,S)}}},27501:(e,t,n)=>{var r=n(27743);e.exports=function(e,t){var n=e.length;if(n)return r(t+=t<0?n:0,n)?e[t]:void 0}},3955:(e,t,n)=>{var r=n(28778),i=n(37261),o=n(28632),a=n(48969),s=n(58890),l=n(73779),c=n(67801),u=n(50046),d=n(36228);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var p=-1;t=r(t,l(o));var h=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(h,(function(e,t){return c(e,t,n)}))}},86001:(e,t,n)=>{var r=n(51618),i=n(34241);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},51618:(e,t,n)=>{var r=n(37261),i=n(12621),o=n(96094);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&i(l,o(c,e),u)}return l}},98954:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},15841:(e,t,n)=>{var r=n(37261);e.exports=function(e){return function(t){return r(t,e)}}},87454:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},39171:e=>{e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},67196:(e,t,n)=>{var r=n(50046),i=n(69188),o=n(43962);e.exports=function(e,t){return o(i(e,t,r),e+"")}},12621:(e,t,n)=>{var r=n(96208),i=n(96094),o=n(27743),a=n(27067),s=n(99130);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=s(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var m=p[h];void 0===(f=l?l(m,h,p):void 0)&&(f=a(m)?m:o(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},37352:(e,t,n)=>{var r=n(85714),i=n(84989),o=n(50046),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},92582:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},58890:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},28726:e=>{e.exports=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},66224:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},48450:(e,t,n)=>{var r=n(17950),i=n(28778),o=n(36228),a=n(89317),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},56267:(e,t,n)=>{var r=n(98121),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},73779:e=>{e.exports=function(e){return function(t){return e(t)}}},79835:(e,t,n)=>{var r=n(89110),i=n(34575),o=n(16644),a=n(96201),s=n(83576),l=n(93702);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,p=!0,h=[],f=h;if(n)p=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);p=!1,u=a,f=new r}else f=t?[]:h;e:for(;++c<d;){var g=e[c],y=t?t(g):g;if(g=n||0!==g?g:0,p&&y===y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),h.push(g)}else u(f,y,n)||(f!==h&&f.push(y),h.push(g))}return h}},7638:(e,t,n)=>{var r=n(96094),i=n(16619),o=n(45647),a=n(99130);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},12044:(e,t,n)=>{var r=n(28778);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},11686:(e,t,n)=>{var r=n(34869),i=n(78355),o=n(79835);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?o(e[0]):[];for(var s=-1,l=Array(a);++s<a;)for(var c=e[s],u=-1;++u<a;)u!=s&&(l[s]=r(l[s]||c,e[u],t,n));return o(i(l,1),t,n)}},96201:e=>{e.exports=function(e,t){return e.has(t)}},28802:(e,t,n)=>{var r=n(23003);e.exports=function(e){return r(e)?e:[]}},15507:(e,t,n)=>{var r=n(50046);e.exports=function(e){return"function"==typeof e?e:r}},96094:(e,t,n)=>{var r=n(36228),i=n(12338),o=n(82465),a=n(19863);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},22575:(e,t,n)=>{var r=n(92582);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},88693:(e,t,n)=>{var r=n(47942);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},56989:(e,t,n)=>{e=n.nmd(e);var r=n(28106),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},75285:(e,t,n)=>{var r=n(88693);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},55522:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70490:(e,t,n)=>{var r=n(17950),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},76224:(e,t,n)=>{var r=n(88693);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},52459:(e,t,n)=>{var r=n(89317);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,a=r(e),s=void 0!==t,l=null===t,c=t===t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},67801:(e,t,n)=>{var r=n(52459);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},77698:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},79217:(e,t,n)=>{var r=n(96208),i=n(61200);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},76627:(e,t,n)=>{var r=n(79217),i=n(91411);e.exports=function(e,t){return r(e,i(e),t)}},4810:(e,t,n)=>{var r=n(79217),i=n(42586);e.exports=function(e,t){return r(e,i(e),t)}},8927:(e,t,n)=>{var r=n(28106)["__core-js_shared__"];e.exports=r},24522:(e,t,n)=>{var r=n(60056),i=n(86732),o=n(28632),a=n(36228);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,c=t?t():{};return l(n,e,o(s,2),c)}}},3264:(e,t,n)=>{var r=n(67196),i=n(86583);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},33252:(e,t,n)=>{var r=n(47732);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},39382:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},72974:(e,t,n)=>{var r=n(22575),i=n(36347),o=n(41377),a=n(19863);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},18876:(e,t,n)=>{var r=n(87454),i=n(86583),o=n(37095);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},83576:(e,t,n)=>{var r=n(14571),i=n(45806),o=n(93702),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},17761:(e,t,n)=>{var r=n(48291);e.exports=function(e){return r(e)?void 0:e}},84989:(e,t,n)=>{var r=n(73232),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},22566:(e,t,n)=>{var r=n(89110),i=n(37436),o=n(96201);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var y=e[f],v=t[f];if(a)var b=c?a(v,y,f,t,e,l):a(y,v,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(y===e||s(y,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},77836:(e,t,n)=>{var r=n(17950),i=n(47942),o=n(26806),a=n(22566),s=n(52748),l=n(93702),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},92996:(e,t,n)=>{var r=n(37419),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:i.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var y=e[p=c[d]],v=t[p];if(o)var b=l?o(v,y,p,t,e,s):o(y,v,p,e,t,s);if(!(void 0===b?y===v||a(y,v,n,o,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},15083:(e,t,n)=>{var r=n(12035),i=n(69188),o=n(43962);e.exports=function(e){return o(i(e,void 0,r),e+"")}},10618:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},37419:(e,t,n)=>{var r=n(94979),i=n(91411),o=n(15108);e.exports=function(e){return r(e,o,i)}},87515:(e,t,n)=>{var r=n(94979),i=n(42586),o=n(28599);e.exports=function(e){return r(e,o,i)}},94406:(e,t,n)=>{var r=n(87913);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},27551:(e,t,n)=>{var r=n(74381),i=n(15108);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},73232:(e,t,n)=>{var r=n(72040),i=n(40572);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},94850:(e,t,n)=>{var r=n(3604)(Object.getPrototypeOf,Object);e.exports=r},89083:(e,t,n)=>{var r=n(17950),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},91411:(e,t,n)=>{var r=n(15689),i=n(3061),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},42586:(e,t,n)=>{var r=n(38319),i=n(94850),o=n(91411),a=n(3061),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},49808:(e,t,n)=>{var r=n(69815),i=n(3831),o=n(35939),a=n(14571),s=n(76122),l=n(8155),c=n(62931),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(i),y=c(o),v=c(a),b=c(s),_=l;(r&&_(new r(new ArrayBuffer(1)))!=f||i&&_(new i)!=u||o&&_(o.resolve())!=d||a&&_(new a)!=p||s&&_(new s)!=h)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case y:return d;case v:return p;case b:return h}return t}),e.exports=_},40572:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},57906:(e,t,n)=>{var r=n(96094),i=n(18819),o=n(36228),a=n(27743),s=n(2262),l=n(99130);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(o(e)||i(e))}},36347:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},45459:(e,t,n)=>{var r=n(81020);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},30698:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},92450:(e,t,n)=>{var r=n(81020),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},7737:(e,t,n)=>{var r=n(81020),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},25552:(e,t,n)=>{var r=n(81020);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},7483:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},58577:(e,t,n)=>{var r=n(88693),i=n(75285),o=n(55522),a=n(70490),s=n(76224);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},68247:(e,t,n)=>{var r=n(64914),i=n(94850),o=n(15917);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},17223:(e,t,n)=>{var r=n(17950),i=n(18819),o=n(36228),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},27743:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},86583:(e,t,n)=>{var r=n(26806),i=n(47732),o=n(27743),a=n(27067);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},12338:(e,t,n)=>{var r=n(36228),i=n(89317),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},87913:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},31846:(e,t,n)=>{var r=n(8927),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},15917:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},74381:(e,t,n)=>{var r=n(27067);e.exports=function(e){return e===e&&!r(e)}},28922:e=>{e.exports=function(){this.__data__=[],this.size=0}},50776:(e,t,n)=>{var r=n(83736),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},87317:(e,t,n)=>{var r=n(83736);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},29971:(e,t,n)=>{var r=n(83736);e.exports=function(e){return r(this.__data__,e)>-1}},15118:(e,t,n)=>{var r=n(83736);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},23791:(e,t,n)=>{var r=n(85549),i=n(26008),o=n(3831);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},80948:(e,t,n)=>{var r=n(94406);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},77437:(e,t,n)=>{var r=n(94406);e.exports=function(e){return r(this,e).get(e)}},64638:(e,t,n)=>{var r=n(94406);e.exports=function(e){return r(this,e).has(e)}},83349:(e,t,n)=>{var r=n(94406);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},52748:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},61621:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},31813:(e,t,n)=>{var r=n(6358);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},81020:(e,t,n)=>{var r=n(73232)(Object,"create");e.exports=r},32872:(e,t,n)=>{var r=n(3604)(Object.keys,Object);e.exports=r},89949:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},17252:(e,t,n)=>{e=n.nmd(e);var r=n(10618),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},66768:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3604:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},69188:(e,t,n)=>{var r=n(13668),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},45647:(e,t,n)=>{var r=n(37261),i=n(92582);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},28106:(e,t,n)=>{var r=n(10618),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},63696:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},36555:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},7088:e=>{e.exports=function(e){return this.__data__.has(e)}},93702:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},43962:(e,t,n)=>{var r=n(37352),i=n(25589)(r);e.exports=i},25589:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},84017:(e,t,n)=>{var r=n(26008);e.exports=function(){this.__data__=new r,this.size=0}},31558:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},68857:e=>{e.exports=function(e){return this.__data__.get(e)}},49910:e=>{e.exports=function(e){return this.__data__.has(e)}},97483:(e,t,n)=>{var r=n(26008),i=n(3831),o=n(62893);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},58572:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},63719:(e,t,n)=>{var r=n(96454),i=n(36347),o=n(16463);e.exports=function(e){return i(e)?o(e):r(e)}},41377:(e,t,n)=>{var r=n(36250),i=n(36347),o=n(89555);e.exports=function(e){return i(e)?o(e):r(e)}},82465:(e,t,n)=>{var r=n(31813),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},99130:(e,t,n)=>{var r=n(89317);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},62931:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},98121:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},16463:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},89555:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},98091:(e,t,n)=>{var r=n(19863),i=n(70138);e.exports=function(e){return i(r(e).toLowerCase())}},51660:(e,t,n)=>{var r=n(33220);e.exports=function(e){return r(e,5)}},27441:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},29204:(e,t,n)=>{var r=n(38319),i=n(78355),o=n(77698),a=n(36228);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return r(a(n)?o(n):[n],i(t,1))}},85714:e=>{e.exports=function(e){return function(){return e}}},93775:(e,t,n)=>{var r=n(27067),i=n(9157),o=n(94252),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function _(){var e=i();if(b(e))return w(e);p=setTimeout(_,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function w(e){return p=void 0,y&&l?v(e):(l=c=void 0,d)}function x(){var e=i(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(_,t),m?v(e):d}(h);if(g)return clearTimeout(p),p=setTimeout(_,t),v(h)}return void 0===p&&(p=setTimeout(_,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},x.flush=function(){return void 0===p?d:w(i())},x}},5516:(e,t,n)=>{var r=n(34869),i=n(78355),o=n(67196),a=n(23003),s=o((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=s},40207:(e,t,n)=>{var r=n(34869),i=n(78355),o=n(67196),a=n(23003),s=n(16619),l=o((function(e,t){var n=s(t);return a(n)&&(n=void 0),a(e)?r(e,i(t,1,a,!0),void 0,n):[]}));e.exports=l},26806:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},99571:(e,t,n)=>{var r=n(15689),i=n(84672),o=n(28632),a=n(36228);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},47514:(e,t,n)=>{var r=n(69935),i=n(28632),o=n(30499),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},12035:(e,t,n)=>{var r=n(78355);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},32236:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},36844:(e,t,n)=>{var r=n(37261);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},27225:(e,t,n)=>{var r=n(61200),i=n(24522),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},34241:(e,t,n)=>{var r=n(62871),i=n(57906);e.exports=function(e,t){return null!=e&&i(e,t,r)}},84735:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},50046:e=>{e.exports=function(e){return e}},59025:(e,t,n)=>{var r=n(77779),i=n(47732),o=n(13785),a=n(30499),s=n(66925),l=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},43603:(e,t,n)=>{var r=n(28778),i=n(20181),o=n(67196),a=n(28802),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},16697:(e,t,n)=>{var r=n(28778),i=n(20181),o=n(67196),a=n(28802),s=n(16619),l=o((function(e){var t=s(e),n=r(e,a);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?i(n,void 0,t):[]}));e.exports=l},18819:(e,t,n)=>{var r=n(26178),i=n(15643),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},36228:e=>{var t=Array.isArray;e.exports=t},47732:(e,t,n)=>{var r=n(96620),i=n(2262);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},23003:(e,t,n)=>{var r=n(47732),i=n(15643);e.exports=function(e){return i(e)&&r(e)}},51920:(e,t,n)=>{e=n.nmd(e);var r=n(28106),i=n(90852),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},85868:(e,t,n)=>{var r=n(13528),i=n(73779),o=n(17252),a=o&&o.isDate,s=a?i(a):r;e.exports=s},48035:(e,t,n)=>{var r=n(60859),i=n(49808),o=n(18819),a=n(36228),s=n(47732),l=n(51920),c=n(15917),u=n(10587),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},6587:(e,t,n)=>{var r=n(16584);e.exports=function(e,t){return r(e,t)}},96620:(e,t,n)=>{var r=n(8155),i=n(27067);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2262:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},79394:(e,t,n)=>{var r=n(39338),i=n(73779),o=n(17252),a=o&&o.isMap,s=a?i(a):r;e.exports=s},67838:e=>{e.exports=function(e){return null==e}},39099:(e,t,n)=>{var r=n(8155),i=n(15643);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},27067:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15643:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48291:(e,t,n)=>{var r=n(8155),i=n(94850),o=n(15643),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},2104:(e,t,n)=>{var r=n(22895),i=n(73779),o=n(17252),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},34381:(e,t,n)=>{var r=n(20523),i=n(73779),o=n(17252),a=o&&o.isSet,s=a?i(a):r;e.exports=s},13785:(e,t,n)=>{var r=n(8155),i=n(36228),o=n(15643);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},89317:(e,t,n)=>{var r=n(8155),i=n(15643);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},10587:(e,t,n)=>{var r=n(21503),i=n(73779),o=n(17252),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},95169:e=>{e.exports=function(e){return void 0===e}},80421:(e,t,n)=>{var r=n(61200),i=n(24522)((function(e,t,n){r(e,n,t)}));e.exports=i},15108:(e,t,n)=>{var r=n(23916),i=n(60859),o=n(47732);e.exports=function(e){return o(e)?r(e):i(e)}},28599:(e,t,n)=>{var r=n(23916),i=n(29949),o=n(47732);e.exports=function(e){return o(e)?r(e,!0):i(e)}},16619:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},77198:(e,t,n)=>{var r=n(61200),i=n(51993),o=n(28632);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},15875:(e,t,n)=>{var r=n(62459),i=n(50046);e.exports=function(e){return r(e,i)}},89225:(e,t,n)=>{var r=n(28632),i=n(62459);e.exports=function(e,t){return i(e,r(t,2))}},6358:(e,t,n)=>{var r=n(62893);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},74318:(e,t,n)=>{var r=n(54142),i=n(3264)((function(e,t,n){r(e,t,n)}));e.exports=i},72926:(e,t,n)=>{var r=n(25917),i=n(57016),o=n(50046);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},45806:e=>{e.exports=function(){}},9157:(e,t,n)=>{var r=n(28106);e.exports=function(){return r.Date.now()}},34135:(e,t,n)=>{var r=n(27501),i=n(30499);e.exports=function(e,t){return e&&e.length?r(e,i(t)):void 0}},20751:(e,t,n)=>{var r=n(28778),i=n(33220),o=n(7638),a=n(96094),s=n(79217),l=n(17761),c=n(15083),u=n(87515),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},91295:(e,t,n)=>{var r=n(3955),i=n(36228);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},79792:(e,t,n)=>{var r=n(24522)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},61017:(e,t,n)=>{var r=n(86001),i=n(15083)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},29190:(e,t,n)=>{var r=n(98954),i=n(15841),o=n(12338),a=n(99130);e.exports=function(e){return o(e)?r(a(e)):i(e)}},54709:(e,t,n)=>{var r=n(18876)();e.exports=r},78494:(e,t,n)=>{var r=n(85651),i=n(19376),o=n(28632),a=n(39171),s=n(36228);e.exports=function(e,t,n){var l=s(e)?r:a,c=arguments.length<3;return l(e,o(t,4),n,c,i)}},21236:(e,t,n)=>{var r=n(12621);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},22111:(e,t,n)=>{var r=n(78355),i=n(3955),o=n(67196),a=n(86583),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},3061:e=>{e.exports=function(){return[]}},90852:e=>{e.exports=function(){return!1}},7065:(e,t,n)=>{var r=n(28726),i=n(50046);e.exports=function(e){return e&&e.length?r(e,i):0}},40977:(e,t,n)=>{var r=n(28632),i=n(28726);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},44791:(e,t,n)=>{var r=n(93775),i=n(27067);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},4794:(e,t,n)=>{var r=n(66224),i=n(15507),o=n(30499),a=4294967295,s=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=a,l=s(e,a);t=i(t),e-=a;for(var c=r(l,t);++n<e;)t(n);return c}},37095:(e,t,n)=>{var r=n(94252),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},30499:(e,t,n)=>{var r=n(37095);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},81858:(e,t,n)=>{var r=n(19863);e.exports=function(e){return r(e).toLowerCase()}},94252:(e,t,n)=>{var r=n(56267),i=n(27067),o=n(89317),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},15234:(e,t,n)=>{var r=n(79217),i=n(28599);e.exports=function(e){return r(e,i(e))}},19863:(e,t,n)=>{var r=n(48450);e.exports=function(e){return null==e?"":r(e)}},98813:(e,t,n)=>{var r=n(48450),i=n(22575),o=n(36347),a=n(27067),s=n(2104),l=n(63719),c=n(41377),u=n(30499),d=n(19863),p=/\w*$/;e.exports=function(e,t){var n=30,h="...";if(a(t)){var f="separator"in t?t.separator:f;n="length"in t?u(t.length):n,h="omission"in t?r(t.omission):h}var m=(e=d(e)).length;if(o(e)){var g=c(e);m=g.length}if(n>=m)return e;var y=n-l(h);if(y<1)return h;var v=g?i(g,0,y).join(""):e.slice(0,y);if(void 0===f)return v+h;if(g&&(y+=v.length-y),s(f)){if(e.slice(y).search(f)){var b,_=v;for(f.global||(f=RegExp(f.source,d(p.exec(f))+"g")),f.lastIndex=0;b=f.exec(_);)var w=b.index;v=v.slice(0,void 0===w?y:w)}}else if(e.indexOf(r(f),y)!=y){var x=v.lastIndexOf(f);x>-1&&(v=v.slice(0,x))}return v+h}},41326:(e,t,n)=>{var r=n(78355),i=n(67196),o=n(79835),a=n(23003),s=i((function(e){return o(r(e,1,a,!0))}));e.exports=s},68027:(e,t,n)=>{var r=n(79835);e.exports=function(e){return e&&e.length?r(e):[]}},3483:(e,t,n)=>{var r=n(28632),i=n(79835);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},36927:(e,t,n)=>{var r=n(79835);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},51779:(e,t,n)=>{var r=n(19863),i=0;e.exports=function(e){var t=++i;return r(e)+t}},70138:(e,t,n)=>{var r=n(72974)("toUpperCase");e.exports=r},66925:(e,t,n)=>{var r=n(12044),i=n(15108);e.exports=function(e){return null==e?[]:r(e,i(e))}},90478:(e,t,n)=>{var r=n(34869),i=n(67196),o=n(23003),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},6629:(e,t,n)=>{var r=n(15689),i=n(67196),o=n(11686),a=n(23003),s=i((function(e){return o(r(e,a))}));e.exports=s},27770:function(e){e.exports=function(){"use strict";var e,t,n;function r(r,i){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",a={};e(a),n=i(a),"undefined"!==typeof window&&window&&window.URL&&window.URL.createObjectURL&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=i;else e=i}return r(["exports"],(function(e){var t="undefined"!=typeof self?self:{},n=r;function r(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};const a=Math.PI/180,s=180/Math.PI;function l(e){return e*a}function c(e){return e*s}const u=[[0,0],[1,0],[1,1],[0,1]];function d(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function p(e,t,r,i){const o=new n(e,t,r,i);return function(e){return o.solve(e)}}const h=p(.25,.1,.25,1);function f(e,t,n){return Math.min(n,Math.max(t,e))}function m(e,t,n){return(n=f((n-e)/(t-e),0,1))*n*(3-2*n)}function g(e,t,n){const r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function y(e,t,n){if(!e.length)return n(null,[]);let r=e.length;const i=new Array(e.length);let o=null;e.forEach(((e,a)=>{t(e,((e,t)=>{e&&(o=e),i[a]=t,0==--r&&n(o,i)}))}))}function v(e){const t=[];for(const n in e)t.push(e[n]);return t}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const i of n)for(const t in i)e[t]=i[t];return e}let _=1;function w(){return _++}function x(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function k(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function C(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function S(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function M(e,t){return-1!==e.indexOf(t,e.length-t.length)}function T(e,t,n){const r={};for(const i in e)r[i]=t.call(n||this,e[i],i,e);return r}function E(e,t,n){const r={};for(const i in e)t.call(n||this,e[i],i,e)&&(r[i]=e[i]);return r}function P(e){return Array.isArray(e)?e.map(P):"object"==typeof e&&e?T(e,P):e}const I={};function O(e){I[e]||("undefined"!=typeof console&&console.warn(e),I[e]=!0)}function L(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function R(e){let t=0;for(let n,r,i=0,o=e.length,a=o-1;i<o;a=i++)n=e[i],r=e[a],t+=(r.x-n.x)*(n.y+r.y);return t}function j(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function D(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,n,r,i)=>{const o=r||i;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let A=null;function N(e){if(null==A){const t=e.navigator?e.navigator.userAgent:null;A=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return A}function F(e){try{const n=t[e];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function z(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}const B=t.performance;function U(e){const t=e?e.url.toString():void 0;return B.getEntriesByName(t)}var $="2.10.0";let V,q,Z,H;const G={now:()=>void 0!==Z?Z:t.performance.now(),setNow(e){Z=e},restoreNow(){Z=void 0},frame(e){const n=t.requestAnimationFrame(e);return{cancel:()=>t.cancelAnimationFrame(n)}},getImageData(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const{width:r,height:i}=e;H||(H=t.document.createElement("canvas"));const o=H.getContext("2d");if(!o)throw new Error("failed to create canvas 2d context");return(r>H.width||i>H.height)&&(H.width=r,H.height=i),o.clearRect(-n,-n,r+2*n,i+2*n),o.drawImage(e,0,0,r,i),o.getImageData(-n,-n,r+2*n,i+2*n)},resolveURL:e=>(V||(V=t.document.createElement("a")),V.href=e,V.href),get devicePixelRatio(){return t.devicePixelRatio},get prefersReducedMotion(){return!!t.matchMedia&&(null==q&&(q=t.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}};let W;const Y={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==W){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{W=null!={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.API_URL_REGEX?new RegExp({FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.API_URL_REGEX):e}catch(t){W=e}}return W},get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},K={supported:!1,testSupport:function(e){!Q&&J&&(ee?te(e):X=e)}};let X,J,Q=!1,ee=!1;function te(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,J),e.isContextLost())return;K.supported=!0}catch(e){}e.deleteTexture(t),Q=!0}t.document&&(J=t.document.createElement("img"),J.onload=function(){X&&te(X),X=null,ee=!0},J.onerror=function(){Q=!0,X=null},J.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const ne="01",re="NO_ACCESS_TOKEN";function ie(e){return 0===e.indexOf("mapbox:")}function oe(e){return Y.API_URL_REGEX.test(e)}const ae=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function se(e){const t=e.match(ae);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function le(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}function ce(e){if(!e)return null;const n=e.split(".");if(!n||3!==n.length)return null;try{return JSON.parse(decodeURIComponent(t.atob(n[1]).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))}catch(e){return null}}class ue{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const n=ce(Y.ACCESS_TOKEN);let r="";return r=n&&n.u?t.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t))))):Y.ACCESS_TOKEN||"",e?`mapbox.eventData.${e}:${r}`:`mapbox.eventData:${r}`}fetchEventData(){const e=F("localStorage"),n=this.getStorageKey(),r=this.getStorageKey("uuid");if(e)try{const e=t.localStorage.getItem(n);e&&(this.eventData=JSON.parse(e));const i=t.localStorage.getItem(r);i&&(this.anonId=i)}catch(e){O("Unable to read from LocalStorage")}}saveEventData(){const e=F("localStorage"),n=this.getStorageKey(),r=this.getStorageKey("uuid");if(e)try{t.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&t.localStorage.setItem(n,JSON.stringify(this.eventData))}catch(e){O("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,n,r){if(!Y.EVENTS_URL)return;const i=se(Y.EVENTS_URL);i.params.push(`access_token=${r||Y.ACCESS_TOKEN||""}`);const o={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:$,skuId:ne,userId:this.anonId},a=t?b(o,t):o,s={url:le(i),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=Re(s,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(r)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const de=new class extends ue{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){Y.EVENTS_URL&&Y.ACCESS_TOKEN&&Array.isArray(e)&&e.some((e=>ie(e)||oe(e)))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=ce(Y.ACCESS_TOKEN),n=t?t.u:Y.ACCESS_TOKEN;let r=n!==this.eventData.tokenU;C(this.anonId)||(this.anonId=x(),r=!0);const i=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(i),n=(i-this.eventData.lastSuccess)/864e5;r=r||n>=1||n<-1||e.getDate()!==t.getDate()}else r=!0;r?this.postEvent(i,{"enabled.telemetry":!1},(e=>{e||(this.eventData.lastSuccess=i,this.eventData.tokenU=n)}),e):this.processRequests()}},pe=de.postTurnstileEvent.bind(de),he=new class extends ue{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,n,r){this.skuToken=t,this.errorCb=r,Y.EVENTS_URL&&(n||Y.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(re)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),C(this.anonId)||(this.anonId=x()),this.postEvent(n,{skuToken:this.skuToken},(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e))}},fe=he.postMapLoadEvent.bind(he),me=new class extends ue{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,n,r){if(!Y.API_URL||!Y.SESSION_PATH)return;const i=se(Y.API_URL+Y.SESSION_PATH);i.params.push(`sku=${t||""}`),i.params.push(`access_token=${r||Y.ACCESS_TOKEN||""}`);const o={url:le(i),headers:{"Content-Type":"text/plain"}};this.pendingRequest=je(o,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(r)}))}getSessionAPI(e,t,n,r){this.skuToken=t,this.errorCb=r,Y.SESSION_PATH&&Y.API_URL&&(n||Y.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(re)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||this.getSession(n,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}},ge=me.getSessionAPI.bind(me),ye=new Set;let ve,be=500,_e=50,we={};function xe(e){const t=Se(e);let n,r;t&&t.forEach((e=>{const t=e.split("=");"language"===t[0]?n=t[1]:"worldview"===t[0]&&(r=t[1])}));let i="mapbox-tiles";return n&&(i+=`-${n}`),r&&(i+=`-${r}`),i}function ke(){try{return t.caches}catch(e){}}function Ce(e){const t=ke();t&&!we[e]&&(we[e]=t.open(e))}function Se(e){const t=e.indexOf("?");return t>0?e.slice(t+1).split("&"):[]}function Me(e){const t=e.indexOf("?");if(t<0)return e;const n=Se(e).filter((e=>{const t=e.split("=");return"language"===t[0]||"worldview"===t[0]}));return n.length?`${e.slice(0,t)}?${n.join("&")}`:e.slice(0,t)}let Te=1/0;const Ee={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Ee);class Pe extends Error{constructor(e,t,n){401===t&&oe(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ie=j()?()=>self.worker&&self.worker.referrer:()=>("blob:"===t.location.protocol?t.parent:t).location.href,Oe=function(e,n){if(!(/^file:/.test(r=e.url)||/^file:/.test(Ie())&&!/^\w+:/.test(r))){if(t.fetch&&t.Request&&t.AbortController&&t.Request.prototype.hasOwnProperty("signal"))return function(e,n){const r=new t.AbortController,i=new t.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:Ie(),signal:r.signal});let o=!1,a=!1;const s=(l=i.url).indexOf("sku=")>0&&oe(l);var l;"json"===e.type&&i.headers.set("Accept","application/json");const c=(r,o,l)=>{if(a)return;if(r&&"SecurityError"!==r.message&&O(r),o&&l)return u(o);const c=Date.now();t.fetch(i).then((t=>{if(t.ok){const e=s?t.clone():null;return u(t,e,c)}return n(new Pe(t.statusText,t.status,e.url))})).catch((e=>{20!==e.code&&n(new Error(e.message))}))},u=(r,s,l)=>{("arrayBuffer"===e.type?r.arrayBuffer():"json"===e.type?r.json():r.text()).then((e=>{a||(s&&l&&function(e,n,r){const i=xe(e.url);if(Ce(i),!we[i])return;const o={status:n.status,statusText:n.statusText,headers:new t.Headers};n.headers.forEach(((e,t)=>o.headers.set(t,e)));const a=D(n.headers.get("Cache-Control")||"");if(a["no-store"])return;a["max-age"]&&o.headers.set("Expires",new Date(r+1e3*a["max-age"]).toUTCString());const s=o.headers.get("Expires");s&&(new Date(s).getTime()-r<42e4||function(e,t){if(void 0===ve)try{new Response(new ReadableStream),ve=!0}catch(e){ve=!1}ve?t(e.body):e.blob().then(t)}(n,(n=>{const r=new t.Response(n,o);Ce(i),we[i]&&we[i].then((t=>t.put(Me(e.url),r))).catch((e=>O(e.message)))})))}(i,s,l),o=!0,n(null,e,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((e=>{a||n(new Error(e.message))}))};return s?function(e,t){const n=xe(e.url);if(Ce(n),!we[n])return t(null);const r=Me(e.url);we[n].then((e=>{e.match(r).then((n=>{const i=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),n=D(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(n);e.delete(r),i&&e.put(r,n.clone()),t(null,n,i)})).catch(t)})).catch(t)}(i,c):c(null,null),{cancel:()=>{a=!0,o||r.abort()}}}(e,n);if(j()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,n,void 0,!0)}var r;return function(e,n){const r=new t.XMLHttpRequest;r.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(r.responseType="arraybuffer");for(const t in e.headers)r.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===e.credentials,r.onerror=()=>{n(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let t=r.response;if("json"===e.type)try{t=JSON.parse(r.response)}catch(e){return n(e)}n(null,t,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else n(new Pe(r.statusText,r.status,e.url))},r.send(e.body),{cancel:()=>r.abort()}}(e,n)},Le=function(e,t){return Oe(b(e,{type:"arrayBuffer"}),t)},Re=function(e,t){return Oe(b(e,{method:"POST"}),t)},je=function(e,t){return Oe(b(e,{method:"GET"}),t)};function De(e){const n=t.document.createElement("a");return n.href=e,n.protocol===t.document.location.protocol&&n.host===t.document.location.host}const Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Ne,Fe;Ne=[],Fe=0;const ze=function(e,n){if(K.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Fe>=Y.MAX_PARALLEL_IMAGE_REQUESTS){const t={requestParameters:e,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Ne.push(t),t}Fe++;let r=!1;const i=()=>{if(!r)for(r=!0,Fe--;Ne.length&&Fe<Y.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Ne.shift(),{requestParameters:t,callback:n,cancelled:r}=e;r||(e.cancel=ze(t,n).cancel)}},o=Le(e,((e,r,o,a)=>{i(),e?n(e):r&&(t.createImageBitmap?function(e,n){const r=new t.Blob([new Uint8Array(e)],{type:"image/png"});t.createImageBitmap(r).then((e=>{n(null,e)})).catch((e=>{n(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))}(r,((e,t)=>n(e,t,o,a))):function(e,n){const r=new t.Image,i=t.URL;r.onload=()=>{n(null,r),i.revokeObjectURL(r.src),r.onload=null,t.requestAnimationFrame((()=>{r.src=Ae}))},r.onerror=()=>n(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new t.Blob([new Uint8Array(e)],{type:"image/png"});r.src=e.byteLength?i.createObjectURL(o):Ae}(r,((e,t)=>n(e,t,o,a))))}));return{cancel:()=>{o.cancel(),i()}}};function Be(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function Ue(e,t,n){if(n&&n[e]){const r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}class $e{constructor(e){b(this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.type=e}}class Ve extends $e{constructor(e){super("error",b({error:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}}class qe{on(e,t){return this._listeners=this._listeners||{},Be(e,t,this._listeners),this}off(e,t){return Ue(e,t,this._listeners),Ue(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Be(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){"string"==typeof e&&(e=new $e(e,t||{}));const n=e.type;if(this.listens(n)){e.target=this;const t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of t)n.call(this,e);const r=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const o of r)Ue(n,o,this._oneTimeListeners),o.call(this,e);const i=this._eventedParent;i&&(b(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(e))}else e instanceof Ve&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var Ze=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"cross-faded"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"cross-faded":{"type":"property-type"},"cross-faded-data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function He(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const i of n)for(const t in i)e[t]=i[t];return e}function Ge(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function We(e){if(Array.isArray(e))return e.map(We);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=We(e[n]);return t}return Ge(e)}class Ye extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}var Ke=Ye;class Xe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.parent=e,this.bindings={};for(const[n,r]of t)this.bindings[n]=r}concat(e){return new Xe(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var Je=Xe;const Qe={kind:"null"},et={kind:"number"},tt={kind:"string"},nt={kind:"boolean"},rt={kind:"color"},it={kind:"object"},ot={kind:"value"},at={kind:"collator"},st={kind:"formatted"},lt={kind:"resolvedImage"};function ct(e,t){return{kind:"array",itemType:e,N:t}}function ut(e){if("array"===e.kind){const t=ut(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const dt=[Qe,et,tt,nt,rt,st,it,ct(ot),lt];function pt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!pt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of dt)if(!pt(e,t))return null}return`Expected ${ut(e)} but found ${ut(t)} instead.`}function ht(e,t){return t.some((t=>t.kind===e.kind))}function ft(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}function mt(e){var t={exports:{}};return e(t,t.exports),t.exports}var gt=mt((function(e,t){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return r("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function o(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function a(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,s=e.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(t=parseInt(s.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===s.length&&(t=parseInt(s.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=s.indexOf("("),c=s.indexOf(")");if(-1!==l&&c+1===s.length){var u=s.substr(0,l),d=s.substr(l+1,c-(l+1)).split(","),p=1;switch(u){case"rgba":if(4!==d.length)return null;p=o(d.pop());case"rgb":return 3!==d.length?null:[i(d[0]),i(d[1]),i(d[2]),p];case"hsla":if(4!==d.length)return null;p=o(d.pop());case"hsl":if(3!==d.length)return null;var h=(parseFloat(d[0])%360+360)%360/360,f=o(d[1]),m=o(d[2]),g=m<=.5?m*(f+1):m+f-m*f,y=2*m-g;return[r(255*a(y,g,h+1/3)),r(255*a(y,g,h)),r(255*a(y,g,h-1/3)),p];default:return null}}return null}}catch(e){}}));class yt{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.r=e,this.g=t,this.b=n,this.a=r}static parse(e){if(!e)return;if(e instanceof yt)return e;if("string"!=typeof e)return;const t=gt.parseCSSColor(e);return t?new yt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}toArray01(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:r}=this;return[e,t,n,r]}}yt.black=new yt(0,0,0,1),yt.white=new yt(1,1,1,1),yt.transparent=new yt(0,0,0,0),yt.red=new yt(1,0,0,1),yt.blue=new yt(0,0,1,1);var vt=yt;class bt{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class _t{constructor(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class wt{constructor(e){this.sections=e}static fromString(e){return new wt([new _t(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof wt?e:wt.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class xt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new xt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function kt(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ct(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof vt)return!0;if(e instanceof bt)return!0;if(e instanceof wt)return!0;if(e instanceof xt)return!0;if(Array.isArray(e)){for(const t of e)if(!Ct(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Ct(e[t]))return!1;return!0}return!1}function St(e){if(null===e)return Qe;if("string"==typeof e)return tt;if("boolean"==typeof e)return nt;if("number"==typeof e)return et;if(e instanceof vt)return rt;if(e instanceof bt)return at;if(e instanceof wt)return st;if(e instanceof xt)return lt;if(Array.isArray(e)){const t=e.length;let n;for(const r of e){const e=St(r);if(n){if(n===e)continue;n=ot;break}n=e}return ct(n||ot,t)}return it}function Mt(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof vt||e instanceof wt||e instanceof xt?e.toString():JSON.stringify(e)}class Tt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ct(e[1]))return t.error("invalid value");const n=e[1];let r=St(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new Tt(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof vt?["rgba"].concat(this.value.toArray()):this.value instanceof wt?this.value.serialize():this.value}}var Et=Tt,Pt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const It={string:tt,number:et,boolean:nt,object:it};class Ot{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in It)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=It[n],r++}else i=ot;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=ct(i,o)}else n=It[i];const o=[];for(;r<e.length;r++){const n=t.parse(e[r],r,ot);if(!n)return null;o.push(n)}return new Ot(n,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const n=this.args[t].evaluate(e);if(!pt(this.type,St(n)))return n;if(t===this.args.length-1)throw new Pt(`Expected value to be of type ${ut(this.type)}, but found ${ut(St(n))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}var Lt=Ot;class Rt{constructor(e){this.type=st,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let o=1;o<=e.length-1;++o){const n=e[o];if(i&&"object"==typeof n&&!Array.isArray(n)){i=!1;let e=null;if(n["font-scale"]&&(e=t.parse(n["font-scale"],1,et),!e))return null;let o=null;if(n["text-font"]&&(o=t.parse(n["text-font"],1,ct(tt)),!o))return null;let a=null;if(n["text-color"]&&(a=t.parse(n["text-color"],1,rt),!a))return null;const s=r[r.length-1];s.scale=e,s.font=o,s.textColor=a}else{const n=t.parse(e[o],1,ot);if(!n)return null;const a=n.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:n,scale:null,font:null,textColor:null})}}return new Rt(r)}evaluate(e){return new wt(this.sections.map((t=>{const n=t.content.evaluate(e);return St(n)===lt?new _t("",n,null,null,null):new _t(Mt(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class jt{constructor(e){this.type=lt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,tt);return n?new jt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=xt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Dt={"to-boolean":nt,"to-color":rt,"to-number":et,"to-string":tt};class At{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const r=Dt[n],i=[];for(let o=1;o<e.length;o++){const n=t.parse(e[o],o,ot);if(!n)return null;i.push(n)}return new At(r,i)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,n;for(const r of this.args){if(t=r.evaluate(e),n=null,t instanceof vt)return t;if("string"==typeof t){const n=e.parseColor(t);if(n)return n}else if(Array.isArray(t)&&(n=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:kt(t[0],t[1],t[2],t[3]),!n))return new vt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Pt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new Pt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?wt.fromString(Mt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?xt.fromString(Mt(this.args[0].evaluate(e))):Mt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Rt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new jt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Nt=At;const Ft=["Unknown","Point","LineString","Polygon"];var zt=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Ft[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(n*t-e[0])+this.featureDistanceData.bearing[1]*(r*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=vt.parse(e)),t}};class Bt{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],r=Bt.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=o.filter((t=>{let[n]=t;return!Array.isArray(n)||n.length===e.length-1}));let s=null;for(const[l,c]of a){s=new fn(t.registry,t.path,null,t.scope);const r=[];let o=!1;for(let t=1;t<e.length;t++){const n=e[t],i=Array.isArray(l)?l[t-1]:l.type,a=s.parse(n,1+r.length,i);if(!a){o=!0;break}r.push(a)}if(!o)if(Array.isArray(l)&&l.length!==r.length)s.error(`Expected ${l.length} arguments, but found ${r.length} instead.`);else{for(let e=0;e<r.length;e++){const t=Array.isArray(l)?l[e]:l.type,n=r[e];s.concat(e+1).checkSubtype(t,n.type)}if(0===s.errors.length)return new Bt(n,i,c,r)}}if(1===a.length)t.errors.push(...s.errors);else{const n=(a.length?a:o).map((e=>{let[t]=e;return n=t,Array.isArray(n)?`(${n.map(ut).join(", ")})`:`(${ut(n.type)}...)`;var n})).join(" | "),r=[];for(let i=1;i<e.length;i++){const n=t.parse(e[i],1+r.length);if(!n)return null;r.push(ut(n.type))}t.error(`Expected arguments of type ${n}, but found (${r.join(", ")}) instead.`)}return null}static register(e,t){Bt.definitions=t;for(const n in t)e[n]=Bt}}var Ut=Bt;class $t{constructor(e,t,n){this.type=at,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");const r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,nt);if(!r)return null;const i=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,nt);if(!i)return null;let o=null;return n.locale&&(o=t.parse(n.locale,1,tt),!o)?null:new $t(r,i,o)}evaluate(e){return new bt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}const Vt=8192;function qt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Zt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Ht(e,t){const n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,i=Math.pow(2,t.z);return[Math.round(n*i*Vt),Math.round(r*i*Vt)]}function Gt(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function Wt(e,t){let n=!1;for(let a=0,s=t.length;a<s;a++){const s=t[a];for(let t=0,a=s.length;t<a-1;t++){if(Gt(e,s[t],s[t+1]))return!1;(i=s[t])[1]>(r=e)[1]!=(o=s[t+1])[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function Yt(e,t){for(let n=0;n<t.length;n++)if(Wt(e,t[n]))return!0;return!1}function Kt(e,t,n,r){const i=r[0]-n[0],o=r[1]-n[1],a=(e[0]-n[0])*o-i*(e[1]-n[1]),s=(t[0]-n[0])*o-i*(t[1]-n[1]);return a>0&&s<0||a<0&&s>0}function Xt(e,t,n){for(const c of n)for(let n=0;n<c.length-1;++n)if(0!=(s=[(a=c[n+1])[0]-(o=c[n])[0],a[1]-o[1]])[0]*(l=[(i=t)[0]-(r=e)[0],i[1]-r[1]])[1]-s[1]*l[0]&&Kt(r,i,o,a)&&Kt(o,a,r,i))return!0;var r,i,o,a,s,l;return!1}function Jt(e,t){for(let n=0;n<e.length;++n)if(!Wt(e[n],t))return!1;for(let n=0;n<e.length-1;++n)if(Xt(e[n],e[n+1],t))return!1;return!0}function Qt(e,t){for(let n=0;n<t.length;n++)if(Jt(e,t[n]))return!0;return!1}function en(e,t,n){const r=[];for(let i=0;i<e.length;i++){const o=[];for(let r=0;r<e[i].length;r++){const a=Ht(e[i][r],n);qt(t,a),o.push(a)}r.push(o)}return r}function tn(e,t,n){const r=[];for(let i=0;i<e.length;i++){const o=en(e[i],t,n);r.push(o)}return r}function nn(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}qt(t,e)}function rn(e,t,n,r){const i=Math.pow(2,r.z)*Vt,o=[r.x*Vt,r.y*Vt],a=[];if(!e)return a;for(const s of e)for(const e of s){const r=[e.x+o[0],e.y+o[1]];nn(r,t,n,i),a.push(r)}return a}function on(e,t,n,r){const i=Math.pow(2,r.z)*Vt,o=[r.x*Vt,r.y*Vt],a=[];if(!e)return a;for(const l of e){const e=[];for(const n of l){const r=[n.x+o[0],n.y+o[1]];qt(t,r),e.push(r)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)nn(r,t,n,i)}var s;return a}class an{constructor(e,t){this.type=nt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ct(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const n=t.features[e].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new an(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new an(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new an(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){const o=en(t.coordinates,r,i),a=rn(e.geometry(),n,r,i);if(!Zt(n,r))return!1;for(const e of a)if(!Wt(e,o))return!1}if("MultiPolygon"===t.type){const o=tn(t.coordinates,r,i),a=rn(e.geometry(),n,r,i);if(!Zt(n,r))return!1;for(const e of a)if(!Yt(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){const o=en(t.coordinates,r,i),a=on(e.geometry(),n,r,i);if(!Zt(n,r))return!1;for(const e of a)if(!Jt(e,o))return!1}if("MultiPolygon"===t.type){const o=tn(t.coordinates,r,i),a=on(e.geometry(),n,r,i);if(!Zt(n,r))return!1;for(const e of a)if(!Qt(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var sn=an;function ln(e){if(e instanceof Ut){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof sn)return!1;let t=!0;return e.eachChild((e=>{t&&!ln(e)&&(t=!1)})),t}function cn(e){if(e instanceof Ut&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!cn(e)&&(t=!1)})),t}function un(e,t){if(e instanceof Ut&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!un(e,t)&&(n=!1)})),n}class dn{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new dn(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var pn=dn;class hn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new Lt(t,[e]):"coerce"===n?new Nt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,i=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof Et)&&"resolvedImage"!==r.type.kind&&mn(r)){const t=new zt;try{r=new Et(r.type,r.evaluate(t))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new hn(this.registry,r,t||null,i,this.errors)}error(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=`${this.key}${n.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Ke(i,e))}checkSubtype(e,t){const n=pt(e,t);return n&&this.error(n),n}}var fn=hn;function mn(e){if(e instanceof pn)return mn(e.boundExpression);if(e instanceof Ut&&"error"===e.name)return!1;if(e instanceof $t)return!1;if(e instanceof sn)return!1;const t=e instanceof Nt||e instanceof Lt;let n=!0;return e.eachChild((e=>{n=t?n&&mn(e):n&&e instanceof Et})),!!n&&ln(e)&&un(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function gn(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),r=e[s],i=e[s+1],r<=t){if(s===n||t<i)return s;o=s+1}else{if(!(r>t))throw new Pt("Input is not a number.");a=s-1}return 0}class yn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[r,i]of n)this.labels.push(r),this.outputs.push(i)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,et);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let o=1;o<e.length;o+=2){const n=1===o?-1/0:e[o],a=e[o+1],s=o,l=o+1;if("number"!=typeof n)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',s);if(r.length&&r[r.length-1][0]>=n)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,r.push([n,c])}return new yn(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[gn(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var vn=yn;function bn(e,t,n){return e*(1-n)+t*n}function _n(e,t,n){return e.map(((e,r)=>bn(e,t[r],n)))}var wn=Object.freeze({__proto__:null,number:bn,color:function(e,t,n){return new vt(bn(e.r,t.r,n),bn(e.g,t.g,n),bn(e.b,t.b,n),bn(e.a,t.a,n))},array:_n});const xn=.95047,kn=1.08883,Cn=4/29,Sn=6/29,Mn=3*Sn*Sn,Tn=Math.PI/180,En=180/Math.PI;function Pn(e){return e>.008856451679035631?Math.pow(e,1/3):e/Mn+Cn}function In(e){return e>Sn?e*e*e:Mn*(e-Cn)}function On(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ln(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Rn(e){const t=Ln(e.r),n=Ln(e.g),r=Ln(e.b),i=Pn((.4124564*t+.3575761*n+.1804375*r)/xn),o=Pn((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Pn((.0193339*t+.119192*n+.9503041*r)/kn)),alpha:e.a}}function jn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*In(t),n=xn*In(n),r=kn*In(r),new vt(On(3.2404542*n-1.5371385*t-.4985314*r),On(-.969266*n+1.8760108*t+.041556*r),On(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Dn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const An={forward:Rn,reverse:jn,interpolate:function(e,t,n){return{l:bn(e.l,t.l,n),a:bn(e.a,t.a,n),b:bn(e.b,t.b,n),alpha:bn(e.alpha,t.alpha,n)}}},Nn={forward:function(e){const{l:t,a:n,b:r}=Rn(e),i=Math.atan2(r,n)*En;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Tn,n=e.c;return jn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Dn(e.h,t.h,n),c:bn(e.c,t.c,n),l:bn(e.l,t.l,n),alpha:bn(e.alpha,t.alpha,n)}}};var Fn=Object.freeze({__proto__:null,lab:An,hcl:Nn});class zn{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[o,a]of i)this.labels.push(o),this.outputs.push(a)}static interpolationFactor(e,t,r,i){let o=0;if("exponential"===e.name)o=Bn(t,e.base,r,i);else if("linear"===e.name)o=Bn(t,1,r,i);else if("cubic-bezier"===e.name){const a=e.controlPoints;o=new n(a[0],a[1],a[2],a[3]).solve(Bn(t,1,r,i))}return o}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,et),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=rt:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let l=0;l<o.length;l+=2){const e=o[l],n=o[l+1],r=l+3,i=l+4;if("number"!=typeof e)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',r);if(a.length&&a[a.length-1][0]>=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const c=t.parse(n,i,s);if(!c)return null;s=s||c.type,a.push([e,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new zn(s,n,r,i,a):t.error(`Type ${ut(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=gn(t,r),a=zn.interpolationFactor(this.interpolation,r,t[o],t[o+1]),s=n[o].evaluate(e),l=n[o+1].evaluate(e);return"interpolate"===this.operator?wn[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?Nn.reverse(Nn.interpolate(Nn.forward(s),Nn.forward(l),a)):An.reverse(An.interpolate(An.forward(s),An.forward(l),a))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t}}function Bn(e,t,n,r){const i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}var Un=zn;class $n{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let n=null;const r=t.expectedType;r&&"value"!==r.kind&&(n=r);const i=[];for(const a of e.slice(1)){const e=t.parse(a,1+i.length,n,void 0,{typeAnnotation:"omit"});if(!e)return null;n=n||e.type,i.push(e)}const o=r&&i.some((e=>pt(r,e.type)));return new $n(o?ot:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(e),n&&n instanceof xt&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Vn=$n;class qn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let i=1;i<e.length-1;i+=2){const r=e[i];if("string"!=typeof r)return t.error(`Expected string, but found ${typeof r} instead.`,i);if(/[^a-zA-Z0-9_]/.test(r))return t.error("Variable names must contain only alphanumeric characters or '_'.",i);const o=t.parse(e[i+1],i+1);if(!o)return null;n.push([r,o])}const r=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return r?new qn(n,r):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,n]of this.bindings)e.push(t,n.serialize());return e.push(this.result.serialize()),e}}var Zn=qn;class Hn{constructor(e,t,n){this.type=e,this.index=t,this.input=n}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,et),r=t.parse(e[2],2,ct(t.expectedType||ot));return n&&r?new Hn(r.type.itemType,n,r):null}evaluate(e){const t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new Pt(`Array index out of bounds: ${t} < 0.`);if(t>=n.length)throw new Pt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new Pt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var Gn=Hn;class Wn{constructor(e,t){this.type=nt,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ot),r=t.parse(e[2],2,ot);return n&&r?ht(n.type,[nt,tt,et,Qe,ot])?new Wn(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ut(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!ft(t,["boolean","string","number","null"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${ut(St(t))} instead.`);if(!ft(n,["string","array"]))throw new Pt(`Expected second argument to be of type array or string, but found ${ut(St(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Yn=Wn;class Kn{constructor(e,t,n){this.type=et,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ot),r=t.parse(e[2],2,ot);if(!n||!r)return null;if(!ht(n.type,[nt,tt,et,Qe,ot]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ut(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,et);return i?new Kn(n,r,i):null}return new Kn(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!ft(t,["boolean","string","number","null"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${ut(St(t))} instead.`);if(!ft(n,["string","array"]))throw new Pt(`Expected second argument to be of type array or string, but found ${ut(St(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Xn=Kn;class Jn{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let l=2;l<e.length-1;l+=2){let a=e[l];const s=e[l+1];Array.isArray(a)||(a=[a]);const c=t.concat(l);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,St(e)))return null}else n=St(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(s,l,r);if(!u)return null;r=r||u.type,o.push(u)}const a=t.parse(e[1],1,ot);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new Jn(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(St(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const o of t){const e=r[this.cases[o]];void 0===e?(r[this.cases[o]]=n.length,n.push([this.cases[o],[o]])):n[e][1].push(o)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[o,a]of n)e.push(1===a.length?i(a[0]):a.map(i)),e.push(this.outputs[o].serialize());return e.push(this.otherwise.serialize()),e}}var Qn=Jn;class er{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let o=1;o<e.length-1;o+=2){const i=t.parse(e[o],o,nt);if(!i)return null;const a=t.parse(e[o+1],o+1,n);if(!a)return null;r.push([i,a]),n=n||a.type}const i=t.parse(e[e.length-1],e.length-1,n);return i?new er(n,r,i):null}evaluate(e){for(const[t,n]of this.branches)if(t.evaluate(e))return n.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,n]of this.branches)e(t),e(n);e(this.otherwise)}outputDefined(){return this.branches.every((e=>{let[t,n]=e;return n.outputDefined()}))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var tr=er;class nr{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ot),r=t.parse(e[2],2,et);if(!n||!r)return null;if(!ht(n.type,[ct(ot),tt,ot]))return t.error(`Expected first argument to be of type array or string, but found ${ut(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,et);return i?new nr(n.type,n,r,i):null}return new nr(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!ft(t,["string","array"]))throw new Pt(`Expected first argument to be of type array or string, but found ${ut(St(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var rr=nr;function ir(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function or(e,t,n,r){return 0===r.compare(t,n)}function ar(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=nt,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,ot);if(!o)return null;if(!ir(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${ut(o.type)}'.`);let a=t.parse(e[2],2,ot);if(!a)return null;if(!ir(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${ut(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${ut(o.type)}' and '${ut(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Lt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Lt(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,at),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=St(o),n=St(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new Pt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=St(o),n=St(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const sr=ar("==",(function(e,t,n){return t===n}),or),lr=ar("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!or(0,t,n,r)})),cr=ar("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),ur=ar(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),dr=ar("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),pr=ar(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class hr{constructor(e,t,n,r,i,o){this.type=tt,this.number=e,this.locale=t,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,et);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=t.parse(r.locale,1,tt),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,tt),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,tt),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,et),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,et),!l)?null:new hr(n,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class fr{constructor(e){this.type=et,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${ut(n.type)} instead.`):new fr(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Pt(`Expected value to be of type string or array, but found ${ut(St(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const mr={"==":sr,"!=":lr,">":ur,"<":cr,">=":pr,"<=":dr,array:Lt,at:Gn,boolean:Lt,case:tr,coalesce:Vn,collator:$t,format:Rt,image:jt,in:Yn,"index-of":Xn,interpolate:Un,"interpolate-hcl":Un,"interpolate-lab":Un,length:fr,let:Zn,literal:Et,match:Qn,number:Lt,"number-format":hr,object:Lt,slice:rr,step:vn,string:Lt,"to-boolean":Nt,"to-color":Nt,"to-number":Nt,"to-string":Nt,var:pn,within:sn};function gr(e,t){let[n,r,i,o]=t;n=n.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);const a=o?o.evaluate(e):1,s=kt(n,r,i,a);if(s)throw new Pt(s);return new vt(n/255*a,r/255*a,i/255*a,a)}function yr(e,t){return e in t}function vr(e,t){const n=t[e];return void 0===n?null:n}function br(e){return{type:e}}Ut.register(mr,{error:[{kind:"error"},[tt],(e,t)=>{let[n]=t;throw new Pt(n.evaluate(e))}],typeof:[tt,[ot],(e,t)=>{let[n]=t;return ut(St(n.evaluate(e)))}],"to-rgba":[ct(et,4),[rt],(e,t)=>{let[n]=t;return n.evaluate(e).toArray()}],rgb:[rt,[et,et,et],gr],rgba:[rt,[et,et,et,et],gr],has:{type:nt,overloads:[[[tt],(e,t)=>{let[n]=t;return yr(n.evaluate(e),e.properties())}],[[tt,it],(e,t)=>{let[n,r]=t;return yr(n.evaluate(e),r.evaluate(e))}]]},get:{type:ot,overloads:[[[tt],(e,t)=>{let[n]=t;return vr(n.evaluate(e),e.properties())}],[[tt,it],(e,t)=>{let[n,r]=t;return vr(n.evaluate(e),r.evaluate(e))}]]},"feature-state":[ot,[tt],(e,t)=>{let[n]=t;return vr(n.evaluate(e),e.featureState||{})}],properties:[it,[],e=>e.properties()],"geometry-type":[tt,[],e=>e.geometryType()],id:[ot,[],e=>e.id()],zoom:[et,[],e=>e.globals.zoom],pitch:[et,[],e=>e.globals.pitch||0],"distance-from-center":[et,[],e=>e.distanceFromCenter()],"heatmap-density":[et,[],e=>e.globals.heatmapDensity||0],"line-progress":[et,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[et,[],e=>e.globals.skyRadialProgress||0],accumulated:[ot,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[et,br(et),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[et,br(et),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:et,overloads:[[[et,et],(e,t)=>{let[n,r]=t;return n.evaluate(e)-r.evaluate(e)}],[[et],(e,t)=>{let[n]=t;return-n.evaluate(e)}]]},"/":[et,[et,et],(e,t)=>{let[n,r]=t;return n.evaluate(e)/r.evaluate(e)}],"%":[et,[et,et],(e,t)=>{let[n,r]=t;return n.evaluate(e)%r.evaluate(e)}],ln2:[et,[],()=>Math.LN2],pi:[et,[],()=>Math.PI],e:[et,[],()=>Math.E],"^":[et,[et,et],(e,t)=>{let[n,r]=t;return Math.pow(n.evaluate(e),r.evaluate(e))}],sqrt:[et,[et],(e,t)=>{let[n]=t;return Math.sqrt(n.evaluate(e))}],log10:[et,[et],(e,t)=>{let[n]=t;return Math.log(n.evaluate(e))/Math.LN10}],ln:[et,[et],(e,t)=>{let[n]=t;return Math.log(n.evaluate(e))}],log2:[et,[et],(e,t)=>{let[n]=t;return Math.log(n.evaluate(e))/Math.LN2}],sin:[et,[et],(e,t)=>{let[n]=t;return Math.sin(n.evaluate(e))}],cos:[et,[et],(e,t)=>{let[n]=t;return Math.cos(n.evaluate(e))}],tan:[et,[et],(e,t)=>{let[n]=t;return Math.tan(n.evaluate(e))}],asin:[et,[et],(e,t)=>{let[n]=t;return Math.asin(n.evaluate(e))}],acos:[et,[et],(e,t)=>{let[n]=t;return Math.acos(n.evaluate(e))}],atan:[et,[et],(e,t)=>{let[n]=t;return Math.atan(n.evaluate(e))}],min:[et,br(et),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[et,br(et),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[et,[et],(e,t)=>{let[n]=t;return Math.abs(n.evaluate(e))}],round:[et,[et],(e,t)=>{let[n]=t;const r=n.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[et,[et],(e,t)=>{let[n]=t;return Math.floor(n.evaluate(e))}],ceil:[et,[et],(e,t)=>{let[n]=t;return Math.ceil(n.evaluate(e))}],"filter-==":[nt,[tt,ot],(e,t)=>{let[n,r]=t;return e.properties()[n.value]===r.value}],"filter-id-==":[nt,[ot],(e,t)=>{let[n]=t;return e.id()===n.value}],"filter-type-==":[nt,[tt],(e,t)=>{let[n]=t;return e.geometryType()===n.value}],"filter-<":[nt,[tt,ot],(e,t)=>{let[n,r]=t;const i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[nt,[ot],(e,t)=>{let[n]=t;const r=e.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[nt,[tt,ot],(e,t)=>{let[n,r]=t;const i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[nt,[ot],(e,t)=>{let[n]=t;const r=e.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[nt,[tt,ot],(e,t)=>{let[n,r]=t;const i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[nt,[ot],(e,t)=>{let[n]=t;const r=e.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[nt,[tt,ot],(e,t)=>{let[n,r]=t;const i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[nt,[ot],(e,t)=>{let[n]=t;const r=e.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[nt,[ot],(e,t)=>{let[n]=t;return n.value in e.properties()}],"filter-has-id":[nt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[nt,[ct(tt)],(e,t)=>{let[n]=t;return n.value.indexOf(e.geometryType())>=0}],"filter-id-in":[nt,[ct(ot)],(e,t)=>{let[n]=t;return n.value.indexOf(e.id())>=0}],"filter-in-small":[nt,[tt,ct(ot)],(e,t)=>{let[n,r]=t;return r.value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[nt,[tt,ct(ot)],(e,t)=>{let[n,r]=t;return function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:nt,overloads:[[[nt,nt],(e,t)=>{let[n,r]=t;return n.evaluate(e)&&r.evaluate(e)}],[br(nt),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:nt,overloads:[[[nt,nt],(e,t)=>{let[n,r]=t;return n.evaluate(e)||r.evaluate(e)}],[br(nt),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[nt,[nt],(e,t)=>{let[n]=t;return!n.evaluate(e)}],"is-supported-script":[nt,[tt],(e,t)=>{let[n]=t;const r=e.globals&&e.globals.isSupportedScript;return!r||r(n.evaluate(e))}],upcase:[tt,[tt],(e,t)=>{let[n]=t;return n.evaluate(e).toUpperCase()}],downcase:[tt,[tt],(e,t)=>{let[n]=t;return n.evaluate(e).toLowerCase()}],concat:[tt,br(ot),(e,t)=>t.map((t=>Mt(t.evaluate(e)))).join("")],"resolved-locale":[tt,[at],(e,t)=>{let[n]=t;return n.evaluate(e).resolvedLocale()}]});var _r=mr;function wr(e){return{result:"success",value:e}}function xr(e){return{result:"error",value:e}}function kr(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Cr(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Sr(e){return!!e.expression&&e.expression.interpolated}function Mr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Tr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Er(e){return e}function Pr(e,t){const n="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],i=r||!(r||void 0!==e.property),o=e.type||(Sr(t)?"exponential":"interval");if(n&&((e=He({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],vt.parse(e[1])]))),e.default=vt.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Fn[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let a,s,l;if("exponential"===o)a=Rr;else if("interval"===o)a=Lr;else if("categorical"===o){a=Or,s=Object.create(null);for(const t of e.stops)s[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);a=jr}if(r){const n={},r=[];for(let t=0;t<e.stops.length;t++){const i=e.stops[t],o=i[0].zoom;void 0===n[o]&&(n[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},r.push(o)),n[o].stops.push([i[0].value,i[1]])}const i=[];for(const e of r)i.push([n[e].zoom,Pr(n[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Un.interpolationFactor.bind(void 0,o),zoomStops:i.map((e=>e[0])),evaluate:(n,r)=>{let{zoom:o}=n;return Rr({stops:i,base:e.base},t,o).evaluate(o,r)}}}if(i){const n="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:n,interpolationFactor:Un.interpolationFactor.bind(void 0,n),zoomStops:e.stops.map((e=>e[0])),evaluate:n=>{let{zoom:r}=n;return a(e,t,r,s,l)}}}return{kind:"source",evaluate(n,r){const i=r&&r.properties?r.properties[e.property]:void 0;return void 0===i?Ir(e.default,t.default):a(e,t,i,s,l)}}}function Ir(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Or(e,t,n,r,i){return Ir(typeof n===i?r[n]:void 0,e.default,t.default)}function Lr(e,t,n){if("number"!==Mr(n))return Ir(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];const i=gn(e.stops.map((e=>e[0])),n);return e.stops[i][1]}function Rr(e,t,n){const r=void 0!==e.base?e.base:1;if("number"!==Mr(n))return Ir(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const o=gn(e.stops.map((e=>e[0])),n),a=function(e,t,n,r){const i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],l=e.stops[o+1][1];let c=wn[t.type]||Er;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Fn[e.colorSpace];c=(e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),a))}return"function"==typeof s.evaluate?{evaluate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=s.evaluate.apply(void 0,t),i=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==i)return c(r,i,a)}}:c(s,l,a)}function jr(e,t,n){return"color"===t.type?n=vt.parse(n):"formatted"===t.type?n=wt.fromString(n.toString()):"resolvedImage"===t.type?n=xt.fromString(n.toString()):Mr(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Ir(n,e.default,t.default)}class Dr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new zt,this._defaultValue=t?function(e){return"color"===e.type&&(Tr(e.default)||Array.isArray(e.default))?new vt(0,0,0,0):"color"===e.type?vt.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new Pt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function Ar(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in _r}function Nr(e,t){const n=new fn(_r,[],t?function(e){const t={color:rt,string:tt,number:et,enum:tt,boolean:nt,formatted:st,resolvedImage:lt};return"array"===e.type?ct(t[e.value]||ot,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?wr(new Dr(r,t)):xr(n.errors)}class Fr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!cn(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class zr{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!cn(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?Un.interpolationFactor(this.interpolationType,e,t,n):0}}function Br(e,t){if("error"===(e=Nr(e,t)).result)return e;const n=e.value.expression,r=ln(n);if(!r&&!kr(t))return xr([new Ke("","data expressions not supported")]);const i=un(n,["zoom","pitch","distance-from-center"]);if(!i&&!Cr(t))return xr([new Ke("","zoom expressions not supported")]);const o=$r(n);return o||i?o instanceof Ke?xr([o]):o instanceof Un&&!Sr(t)?xr([new Ke("",'"interpolate" expressions cannot be used with this property')]):wr(o?new zr(r?"camera":"composite",e.value,o.labels,o instanceof Un?o.interpolation:void 0):new Fr(r?"constant":"source",e.value)):xr([new Ke("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Ur{constructor(e,t){this._parameters=e,this._specification=t,He(this,Pr(this._parameters,this._specification))}static deserialize(e){return new Ur(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function $r(e){let t=null;if(e instanceof Zn)t=$r(e.result);else if(e instanceof Vn){for(const n of e.args)if(t=$r(n),t)break}else(e instanceof vn||e instanceof Un)&&e.input instanceof Ut&&"zoom"===e.input.name&&(t=e);return t instanceof Ke||e.eachChild((e=>{const n=$r(e);n instanceof Ke?t=n:!t&&n?t=new Ke("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Ke("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}class Vr{constructor(e,t,n,r){this.message=(e?`${e}: `:"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}function qr(e){const t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec;let s=[];const l=Mr(n);if("object"!==l)return[new Vr(t,n,`object expected, ${l} found`)];for(const c in n){const e=c.split(".")[0],l=r[e]||r["*"];let u;i[e]?u=i[e]:r[e]?u=ki:i["*"]?u=i["*"]:r["*"]&&(u=ki),u?s=s.concat(u({key:(t?`${t}.`:t)+c,value:n[c],valueSpec:l,style:o,styleSpec:a,object:n,objectKey:c},n)):s.push(new Vr(t,n[c],`unknown property "${c}"`))}for(const c in r)i[c]||r[c].required&&void 0===r[c].default&&void 0===n[c]&&s.push(new Vr(t,n,`missing required property "${c}"`));return s}function Zr(e){const t=e.value,n=e.valueSpec,r=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||ki;if("array"!==Mr(t))return[new Vr(o,t,`array expected, ${Mr(t)} found`)];if(n.length&&t.length!==n.length)return[new Vr(o,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.length<n["min-length"])return[new Vr(o,t,`array length at least ${n["min-length"]} expected, length ${t.length} found`)];let s={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum,function:void 0};i.$version<7&&(s.function=n.function),"object"===Mr(n.value)&&(s=n.value);let l=[];for(let c=0;c<t.length;c++)l=l.concat(a({array:t,arrayIndex:c,value:t[c],valueSpec:s,style:r,styleSpec:i,key:`${o}[${c}]`}));return l}function Hr(e){const t=e.key,n=e.value,r=e.valueSpec;let i=Mr(n);if("number"===i&&n!=n&&(i="NaN"),"number"!==i)return[new Vr(t,n,`number expected, ${i} found`)];if("minimum"in r){let i=r.minimum;if("array"===Mr(r.minimum)&&(i=r.minimum[e.arrayIndex]),n<i)return[new Vr(t,n,`${n} is less than the minimum value ${i}`)]}if("maximum"in r){let i=r.maximum;if("array"===Mr(r.maximum)&&(i=r.maximum[e.arrayIndex]),n>i)return[new Vr(t,n,`${n} is greater than the maximum value ${i}`)]}return[]}function Gr(e){const t=e.valueSpec,n=Ge(e.value.type);let r,i,o,a={};const s="categorical"!==n&&void 0===e.value.property,l=!s,c="array"===Mr(e.value.stops)&&"array"===Mr(e.value.stops[0])&&"object"===Mr(e.value.stops[0][0]),u=qr({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===n)return[new Vr(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const r=e.value;return t=t.concat(Zr({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===Mr(r)&&0===r.length&&t.push(new Vr(e.key,r,"array must have at least one stop")),t},default:function(e){return ki({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&s&&u.push(new Vr(e.key,e.value,'missing required property "property"')),"identity"===n||e.value.stops||u.push(new Vr(e.key,e.value,'missing required property "stops"')),"exponential"===n&&e.valueSpec.expression&&!Sr(e.valueSpec)&&u.push(new Vr(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!kr(e.valueSpec)?u.push(new Vr(e.key,e.value,"property functions not supported")):s&&!Cr(e.valueSpec)&&u.push(new Vr(e.key,e.value,"zoom functions not supported"))),"categorical"!==n&&!c||void 0!==e.value.property||u.push(new Vr(e.key,e.value,'"property" property is required')),u;function d(e){let n=[];const r=e.value,s=e.key;if("array"!==Mr(r))return[new Vr(s,r,`array expected, ${Mr(r)} found`)];if(2!==r.length)return[new Vr(s,r,`array length 2 expected, length ${r.length} found`)];if(c){if("object"!==Mr(r[0]))return[new Vr(s,r,`object expected, ${Mr(r[0])} found`)];if(void 0===r[0].zoom)return[new Vr(s,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new Vr(s,r,"object stop key must have value")];const t=Ge(r[0].zoom);if("number"!=typeof t)return[new Vr(s,r[0].zoom,"stop zoom values must be numbers")];if(o&&o>t)return[new Vr(s,r[0].zoom,"stop zoom values must appear in ascending order")];t!==o&&(o=t,i=void 0,a={}),n=n.concat(qr({key:`${s}[0]`,value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Hr,value:p}}))}else n=n.concat(p({key:`${s}[0]`,value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return Ar(We(r[1]))?n.concat([new Vr(`${s}[1]`,r[1],"expressions are not allowed in function stops.")]):n.concat(ki({key:`${s}[1]`,value:r[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function p(e,o){const s=Mr(e.value),l=Ge(e.value),c=null!==e.value?e.value:o;if(r){if(s!==r)return[new Vr(e.key,c,`${s} stop domain type must match previous stop domain type ${r}`)]}else r=s;if("number"!==s&&"string"!==s&&"boolean"!==s&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new Vr(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==n){let r=`number expected, ${s} found`;return kr(t)&&void 0===n&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Vr(e.key,c,r)]}return"categorical"!==n||"number"!==s||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==n&&"number"===s&&"number"==typeof l&&"number"==typeof i&&void 0!==i&&l<i?[new Vr(e.key,c,"stop domain values must appear in ascending order")]:(i=l,"categorical"===n&&l in a?[new Vr(e.key,c,"stop domain values must be unique")]:(a[l]=!0,[])):[new Vr(e.key,c,`integer expected, found ${String(l)}`)]}}function Wr(e){const t=("property"===e.expressionContext?Br:Nr)(We(e.value),e.valueSpec);if("error"===t.result)return t.value.map((t=>new Vr(`${e.key}${t.key}`,e.value,t.message)));const n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new Vr(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!cn(n))return[new Vr(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext)return Yr(n,e);if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!un(n,["zoom","feature-state"]))return[new Vr(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!ln(n))return[new Vr(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Yr(e,t){const n=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(t.valueSpec&&t.valueSpec.expression)for(const i of t.valueSpec.expression.parameters)n.delete(i);if(0===n.size)return[];const r=[];return e instanceof Ut&&n.has(e.name)?[new Vr(t.key,t.value,`["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)]:(e.eachChild((e=>{r.push(...Yr(e,t))})),r)}function Kr(e){const t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(Ge(n))&&i.push(new Vr(t,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(r.values).indexOf(Ge(n))&&i.push(new Vr(t,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),i}function Xr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Xr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Jr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill";if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Xr(e)||(e=oi(e));const n=e;let r=!0;try{r=function(e){if(!ti(e))return e;let t=We(e);return ei(t),t=Qr(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n        `)}const i=Ze[`filter_${t}`],o=Nr(r,i);let a=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(e,t,n)=>o.value.evaluate(e,t,{},n);let s=null,l=null;if(r!==n){const e=Nr(n,i);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(t,n,r,i,o)=>e.value.evaluate(t,n,{},r,void 0,void 0,i,o),l=!ln(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:ii(r),needFeature:!!l}}function Qr(e){if(!Array.isArray(e))return e;const t=function(e){if(ni.has(e[0]))for(let t=1;t<e.length;t++)if(ti(e[t]))return!0;return e}(e);return!0===t?t:t.map((e=>Qr(e)))}function ei(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r<e.length-1;r+=2)t=t||ti(e[r]),n.push(e[r+1]);n.push(e[e.length-1])}else if("match"===e[0]){t=t||ti(e[1]);for(let t=2;t<e.length-1;t+=2)n.push(e[t+1]);n.push(e[e.length-1])}else if("step"===e[0]){t=t||ti(e[1]);for(let t=1;t<e.length-1;t+=2)n.push(e[t+1])}t&&(e.length=0,e.push("any",...n));for(let r=1;r<e.length;r++)ei(e[r])}function ti(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let n=1;n<e.length;n++)if(ti(e[n]))return!0;return!1}const ni=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function ri(e,t){return e<t?-1:e>t?1:0}function ii(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t<e.length;t++)if(ii(e[t]))return!0;return!1}function oi(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?ai(e[1],e[2],"=="):"!="===t?ci(ai(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?ai(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(oi))):"all"===t?["all"].concat(e.slice(1).map(oi)):"none"===t?["all"].concat(e.slice(1).map(oi).map(ci)):"in"===t?si(e[1],e.slice(2)):"!in"===t?ci(si(e[1],e.slice(2))):"has"===t?li(e[1]):"!has"===t?ci(li(e[1])):"within"!==t||e;var n}function ai(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function si(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(ri)]]:["filter-in-small",e,["literal",t]]}}function li(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ci(e){return["!",e]}function ui(e){return Xr(We(e.value))?Wr(He({},e,{expressionContext:"filter",valueSpec:e.styleSpec[`filter_${e.layerType||"fill"}`]})):di(e)}function di(e){const t=e.value,n=e.key;if("array"!==Mr(t))return[new Vr(n,t,`array expected, ${Mr(t)} found`)];const r=e.styleSpec;let i,o=[];if(t.length<1)return[new Vr(n,t,"filter array must have at least 1 element")];switch(o=o.concat(Kr({key:`${n}[0]`,value:t[0],valueSpec:r.filter_operator,style:e.style,styleSpec:e.styleSpec})),Ge(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Ge(t[1])&&o.push(new Vr(n,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&o.push(new Vr(n,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(i=Mr(t[1]),"string"!==i&&o.push(new Vr(`${n}[1]`,t[1],`string expected, ${i} found`)));for(let a=2;a<t.length;a++)i=Mr(t[a]),"$type"===Ge(t[1])?o=o.concat(Kr({key:`${n}[${a}]`,value:t[a],valueSpec:r.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&o.push(new Vr(`${n}[${a}]`,t[a],`string, number, or boolean expected, ${i} found`));break;case"any":case"all":case"none":for(let r=1;r<t.length;r++)o=o.concat(di({key:`${n}[${r}]`,value:t[r],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":i=Mr(t[1]),2!==t.length?o.push(new Vr(n,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==i&&o.push(new Vr(`${n}[1]`,t[1],`string expected, ${i} found`));break;case"within":i=Mr(t[1]),2!==t.length?o.push(new Vr(n,t,`filter array for "${t[0]}" operator must have 2 elements`)):"object"!==i&&o.push(new Vr(`${n}[1]`,t[1],`object expected, ${i} found`))}return o}function pi(e,t){const n=e.key,r=e.style,i=e.styleSpec,o=e.value,a=e.objectKey,s=i[`${t}_${e.layerType}`];if(!s)return[];const l=a.match(/^(.*)-transition$/);if("paint"===t&&l&&s[l[1]]&&s[l[1]].transition)return ki({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});const c=e.valueSpec||s[a];if(!c)return[new Vr(n,o,`unknown property "${a}"`)];let u;if("string"===Mr(o)&&kr(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new Vr(n,o,`"${a}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(u[1])} }\`.`)];const d=[];return"symbol"===e.layerType&&("text-field"===a&&r&&!r.glyphs&&d.push(new Vr(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Tr(We(o))&&"identity"===Ge(o.type)&&d.push(new Vr(n,o,'"text-font" does not support identity functions'))),d.concat(ki({key:e.key,value:o,valueSpec:c,style:r,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:a}))}function hi(e){return pi(e,"paint")}function fi(e){return pi(e,"layout")}function mi(e){let t=[];const n=e.value,r=e.key,i=e.style,o=e.styleSpec;n.type||n.ref||t.push(new Vr(r,n,'either "type" or "ref" is required'));let a=Ge(n.type);const s=Ge(n.ref);if(n.id){const o=Ge(n.id);for(let a=0;a<e.arrayIndex;a++){const e=i.layers[a];Ge(e.id)===o&&t.push(new Vr(r,n.id,`duplicate layer id "${n.id}", previously used at line ${e.id.__line__}`))}}if("ref"in n){let e;["type","source","source-layer","filter","layout"].forEach((e=>{e in n&&t.push(new Vr(r,n[e],`"${e}" is prohibited for ref layers`))})),i.layers.forEach((t=>{Ge(t.id)===s&&(e=t)})),e?e.ref?t.push(new Vr(r,n.ref,"ref cannot reference another ref layer")):a=Ge(e.type):"string"==typeof s&&t.push(new Vr(r,n.ref,`ref layer "${s}" not found`))}else if("background"!==a&&"sky"!==a)if(n.source){const e=i.sources&&i.sources[n.source],o=e&&Ge(e.type);e?"vector"===o&&"raster"===a?t.push(new Vr(r,n.source,`layer "${n.id}" requires a raster source`)):"raster"===o&&"raster"!==a?t.push(new Vr(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==a?t.push(new Vr(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==a||!n.paint||!n.paint["line-gradient"]&&!n.paint["line-trim-offset"]||"geojson"===o&&e.lineMetrics||t.push(new Vr(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Vr(r,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new Vr(r,n.source,`source "${n.source}" not found`))}else t.push(new Vr(r,n,'missing required property "source"'));return t=t.concat(qr({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>ki({key:`${r}.type`,value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"}),filter:e=>ui(He({layerType:a},e)),layout:e=>qr({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>fi(He({layerType:a},e))}}),paint:e=>qr({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>hi(He({layerType:a},e))}})}})),t}function gi(e){const t=e.value,n=e.key,r=Mr(t);return"string"!==r?[new Vr(n,t,`string expected, ${r} found`)]:[]}const yi={promoteId:function(e){let{key:t,value:n}=e;if("string"===Mr(n))return gi({key:t,value:n});{const e=[];for(const r in n)e.push(...gi({key:`${t}.${r}`,value:n[r]}));return e}}};function vi(e){const t=e.value,n=e.key,r=e.styleSpec,i=e.style;if(!t.type)return[new Vr(n,t,'"type" is required')];const o=Ge(t.type);let a;switch(o){case"vector":case"raster":case"raster-dem":return a=qr({key:n,value:t,valueSpec:r[`source_${o.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:yi}),a;case"geojson":if(a=qr({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:yi}),t.cluster)for(const e in t.clusterProperties){const[r,i]=t.clusterProperties[e],o="string"==typeof r?[r,["accumulated"],["get",e]]:r;a.push(...Wr({key:`${n}.${e}.map`,value:i,expressionContext:"cluster-map"})),a.push(...Wr({key:`${n}.${e}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return a;case"video":return qr({key:n,value:t,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return qr({key:n,value:t,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new Vr(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Kr({key:`${n}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function bi(e){const t=e.value,n=e.styleSpec,r=n.light,i=e.style;let o=[];const a=Mr(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new Vr("light",t,`object expected, ${a} found`)]),o;for(const s in t){const e=s.match(/^(.*)-transition$/);o=o.concat(e&&r[e[1]]&&r[e[1]].transition?ki({key:s,value:t[s],valueSpec:n.transition,style:i,styleSpec:n}):r[s]?ki({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n}):[new Vr(s,t[s],`unknown property "${s}"`)])}return o}function _i(e){const t=e.value,n=e.key,r=e.style,i=e.styleSpec,o=i.terrain;let a=[];const s=Mr(t);if(void 0===t)return a;if("object"!==s)return a=a.concat([new Vr("terrain",t,`object expected, ${s} found`)]),a;for(const l in t){const e=l.match(/^(.*)-transition$/);a=a.concat(e&&o[e[1]]&&o[e[1]].transition?ki({key:l,value:t[l],valueSpec:i.transition,style:r,styleSpec:i}):o[l]?ki({key:l,value:t[l],valueSpec:o[l],style:r,styleSpec:i}):[new Vr(l,t[l],`unknown property "${l}"`)])}if(t.source){const e=r.sources&&r.sources[t.source],i=e&&Ge(e.type);e?"raster-dem"!==i&&a.push(new Vr(n,t.source,`terrain cannot be used with a source of type ${String(i)}, it only be used with a "raster-dem" source type`)):a.push(new Vr(n,t.source,`source "${t.source}" not found`))}else a.push(new Vr(n,t,'terrain is missing required property "source"'));return a}function wi(e){const t=e.value,n=e.style,r=e.styleSpec,i=r.fog;let o=[];const a=Mr(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new Vr("fog",t,`object expected, ${a} found`)]),o;for(const s in t){const e=s.match(/^(.*)-transition$/);o=o.concat(e&&i[e[1]]&&i[e[1]].transition?ki({key:s,value:t[s],valueSpec:r.transition,style:n,styleSpec:r}):i[s]?ki({key:s,value:t[s],valueSpec:i[s],style:n,styleSpec:r}):[new Vr(s,t[s],`unknown property "${s}"`)])}return o}const xi={"*":()=>[],array:Zr,boolean:function(e){const t=e.value,n=e.key,r=Mr(t);return"boolean"!==r?[new Vr(n,t,`boolean expected, ${r} found`)]:[]},number:Hr,color:function(e){const t=e.key,n=e.value,r=Mr(n);return"string"!==r?[new Vr(t,n,`color expected, ${r} found`)]:null===gt.parseCSSColor(n)?[new Vr(t,n,`color expected, "${n}" found`)]:[]},enum:Kr,filter:ui,function:Gr,layer:mi,object:qr,source:vi,light:bi,terrain:_i,fog:wi,string:gi,formatted:function(e){return 0===gi(e).length?[]:Wr(e)},resolvedImage:function(e){return 0===gi(e).length?[]:Wr(e)},projection:function(e){const t=e.value,n=e.styleSpec,r=n.projection,i=e.style;let o=[];const a=Mr(t);if("object"===a)for(const s in t)o=o.concat(ki({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n}));else"string"!==a&&(o=o.concat([new Vr("projection",t,`object or string expected, ${a} found`)]));return o}};function ki(e){const t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&Tr(Ge(t))?Gr(e):n.expression&&Ar(We(t))?Wr(e):n.type&&xi[n.type]?xi[n.type](e):qr(He({},e,{valueSpec:n.type?r[n.type]:n}))}function Ci(e){const t=e.value,n=e.key,r=gi(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Vr(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Vr(n,t,'"glyphs" url must include a "{range}" token'))),r}function Si(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze;return Ei(ki({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Ci,"*":()=>[]}}))}const Mi=e=>Ei(hi(e)),Ti=e=>Ei(fi(e));function Ei(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function Pi(e,t){let n=!1;if(t&&t.length)for(const r of t)e.fire(new Ve(new Error(r.message))),n=!0;return n}var Ii=Oi;function Oi(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var i=new Int32Array(this.arrayBuffer);e=i[0],this.d=(t=i[1])+2*(n=i[2]);for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var l=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var u=n/t*e;this.min=-u,this.max=e+u}Oi.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Oi.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Oi.prototype._insertCell=function(e,t,n,r,i,o){this.cells[i].push(o)},Oi.prototype.query=function(e,t,n,r,i){var o=this.min,a=this.max;if(e<=o&&t<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},i),s},Oi.prototype._queryCell=function(e,t,n,r,i,o,a,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,d=0;d<l.length;d++){var p=l[d];if(void 0===a[p]){var h=4*p;(s?s(u[h+0],u[h+1],u[h+2],u[h+3]):e<=u[h+2]&&t<=u[h+3]&&n>=u[h+0]&&r>=u[h+1])?(a[p]=!0,o.push(c[p])):a[p]=!1}}},Oi.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(n),d=this._convertToCellCoord(r),p=l;p<=u;p++)for(var h=c;h<=d;h++){var f=this.d*h+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(h),this._convertFromCellCoord(p+1),this._convertFromCellCoord(h+1)))&&i.call(this,e,t,n,r,f,o,a,s))return}},Oi.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Oi.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Oi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(t+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=t,a=0;a<e.length;a++){var s=e[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+e.length]=o,i.set(this.keys,o),i[3+e.length+1]=o+=this.keys.length,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};const Li={};function Ri(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),Li[t]={klass:e,omit:n.omit||[]}}Ri(Object,"Object"),Ii.serialize=function(e,t){const n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Ii.deserialize=function(e){return new Ii(e.buffer)},Object.defineProperty(Ii,"name",{value:"Grid"}),Ri(Ii,"Grid"),Ri(vt,"Color"),Ri(Error,"Error"),Ri(Pe,"AJAXError"),Ri(xt,"ResolvedImage"),Ri(Ur,"StylePropertyFunction"),Ri(Dr,"StyleExpression",{omit:["_evaluator"]}),Ri(zr,"ZoomDependentExpression"),Ri(Fr,"ZoomConstantExpression"),Ri(Ut,"CompoundExpression",{omit:["_evaluate"]});for(const om in _r)Li[_r[om]._classRegistryKey]||Ri(_r[om],`Expression${om}`);function ji(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Di(e){return t.ImageBitmap&&e instanceof t.ImageBitmap}function Ai(e,n){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(ji(e)||Di(e))return n&&n.push(e),e;if(ArrayBuffer.isView(e)){const t=e;return n&&n.push(t.buffer),t}if(e instanceof t.ImageData)return n&&n.push(e.data.buffer),e;if(Array.isArray(e)){const t=[];for(const r of e)t.push(Ai(r,n));return t}if("object"==typeof e){const t=e.constructor,r=t._classRegistryKey;if(!r)throw new Error(`can't serialize object of unregistered class ${r}`);const i=t.serialize?t.serialize(e,n):{};if(!t.serialize){for(const t in e)e.hasOwnProperty(t)&&(Li[r].omit.indexOf(t)>=0||(i[t]=Ai(e[t],n)));e instanceof Error&&(i.message=e.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(i.$name=r),i}throw new Error("can't serialize object of type "+typeof e)}function Ni(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||ji(e)||Di(e)||ArrayBuffer.isView(e)||e instanceof t.ImageData)return e;if(Array.isArray(e))return e.map(Ni);if("object"==typeof e){const t=e.$name||"Object",{klass:n}=Li[t];if(!n)throw new Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);const r=Object.create(n.prototype);for(const i of Object.keys(e))"$name"!==i&&(r[i]=Ni(e[i]));return r}throw new Error("can't deserialize object of type "+typeof e)}class Fi{constructor(){this.first=!0}update(e,t){const n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))}}const zi=e=>e>=1536&&e<=1791,Bi=e=>e>=1872&&e<=1919,Ui=e=>e>=2208&&e<=2303,$i=e=>e>=11904&&e<=12031,Vi=e=>e>=12032&&e<=12255,qi=e=>e>=12272&&e<=12287,Zi=e=>e>=12288&&e<=12351,Hi=e=>e>=12352&&e<=12447,Gi=e=>e>=12448&&e<=12543,Wi=e=>e>=12544&&e<=12591,Yi=e=>e>=12704&&e<=12735,Ki=e=>e>=12736&&e<=12783,Xi=e=>e>=12784&&e<=12799,Ji=e=>e>=12800&&e<=13055,Qi=e=>e>=13056&&e<=13311,eo=e=>e>=13312&&e<=19903,to=e=>e>=19968&&e<=40959,no=e=>e>=40960&&e<=42127,ro=e=>e>=42128&&e<=42191,io=e=>e>=44032&&e<=55215,oo=e=>e>=63744&&e<=64255,ao=e=>e>=64336&&e<=65023,so=e=>e>=65040&&e<=65055,lo=e=>e>=65072&&e<=65103,co=e=>e>=65104&&e<=65135,uo=e=>e>=65136&&e<=65279,po=e=>e>=65280&&e<=65519;function ho(e){for(const t of e)if(go(t.charCodeAt(0)))return!0;return!1}function fo(e){for(const t of e)if(!mo(t.charCodeAt(0)))return!1;return!0}function mo(e){return!(zi(e)||Bi(e)||Ui(e)||ao(e)||uo(e))}function go(e){return!(746!==e&&747!==e&&(e<4352||!(Yi(e)||Wi(e)||lo(e)&&!(e>=65097&&e<=65103)||oo(e)||Qi(e)||$i(e)||Ki(e)||!(!Zi(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||eo(e)||to(e)||Ji(e)||(e=>e>=12592&&e<=12687)(e)||(e=>e>=43360&&e<=43391)(e)||(e=>e>=55216&&e<=55295)(e)||(e=>e>=4352&&e<=4607)(e)||io(e)||Hi(e)||qi(e)||(e=>e>=12688&&e<=12703)(e)||Vi(e)||Xi(e)||Gi(e)&&12540!==e||!(!po(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!co(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||(e=>e>=5120&&e<=5759)(e)||(e=>e>=6320&&e<=6399)(e)||so(e)||(e=>e>=19904&&e<=19967)(e)||no(e)||ro(e))))}function yo(e){return!(go(e)||function(e){return!!((e=>e>=128&&e<=255)(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||(e=>e>=8192&&e<=8303)(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||(e=>e>=8448&&e<=8527)(e)||(e=>e>=8528&&e<=8591)(e)||(e=>e>=8960&&e<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||(e=>e>=9216&&e<=9279)(e)&&9251!==e||(e=>e>=9280&&e<=9311)(e)||(e=>e>=9312&&e<=9471)(e)||(e=>e>=9632&&e<=9727)(e)||(e=>e>=9728&&e<=9983)(e)&&!(e>=9754&&e<=9759)||(e=>e>=11008&&e<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Zi(e)||Gi(e)||(e=>e>=57344&&e<=63743)(e)||lo(e)||co(e)||po(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function vo(e){return e>=1424&&e<=2303||ao(e)||uo(e)}function bo(e,t){return!(!t&&vo(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||(e=>e>=6016&&e<=6143)(e))}function _o(e){for(const t of e)if(vo(t.charCodeAt(0)))return!0;return!1}const wo="deferred",xo="loading",ko="loaded";let Co=null,So="unavailable",Mo=null;const To=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(So="error"),Co&&Co(e)};function Eo(){Po.fire(new $e("pluginStateChange",{pluginStatus:So,pluginURL:Mo}))}const Po=new qe,Io=function(){return So},Oo=function(){if(So!==wo||!Mo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");So=xo,Eo(),Mo&&Le({url:Mo},(e=>{e?To(e):(So=ko,Eo())}))},Lo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>So===ko||null!=Lo.applyArabicShaping,isLoading:()=>So===xo,setState(e){So=e.pluginStatus,Mo=e.pluginURL},isParsed:()=>null!=Lo.applyArabicShaping&&null!=Lo.processBidirectionalText&&null!=Lo.processStyledBidirectionalText,getPluginURL:()=>Mo};class Ro{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition,this.pitch=t.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fi,this.transition={},this.pitch=0)}isSupportedScript(e){return function(e,t){for(const n of e)if(!bo(n.charCodeAt(0),t))return!1;return!0}(e,Lo.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}}}class jo{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Tr(e))return new Ur(e,t);if(Ar(e)){const n=Br(e,t);if("error"===n.result)throw new Error(n.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return n.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=vt.parse(e)),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class Do{constructor(e){this.property=e,this.value=new jo(e,void 0)}transitioned(e,t){return new No(this.property,this.value,t,b({},e.transition,this.transition),e.now)}untransitioned(){return new No(this.property,this.value,null,{},0)}}class Ao{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return P(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Do(this._values[e].property)),this._values[e].value=new jo(this._values[e].property,null===t?void 0:P(t))}getTransition(e){return P(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Do(this._values[e].property)),this._values[e].transition=P(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){const n=new Fo(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(e,t._values[r]);return n}untransitioned(){const e=new Fo(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class No{constructor(e,t,n,r,i){const o=r.delay||0,a=r.duration||0;i=i||0,this.property=e,this.value=t,this.begin=i+o,this.end=this.begin+a,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const r=e.now||0,i=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r<this.begin)return o.possiblyEvaluate(e,t,n);{const a=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,n),i,d(a))}}return i}}class Fo{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){const r=new Uo(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(e,t,n);return r}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class zo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return P(this._values[e].value)}setValue(e,t){this._values[e]=new jo(this._values[e].property,null===t?void 0:P(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){const r=new Uo(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(e,t,n);return r}}class Bo{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)}}class Uo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class $o{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,n){const r=wn[this.specification.type];return r?r(e,t,n):e}}class Vo{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,r){return new Bo(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)}interpolate(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Bo(this,{kind:"constant",value:void 0},e.parameters);const r=wn[this.specification.type];return r?new Bo(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e}evaluate(e,t,n,r,i,o){return"constant"===e.kind?e.value:e.evaluate(t,n,r,i,o)}}class qo extends Vo{possiblyEvaluate(e,t,n,r){if(void 0===e.value)return new Bo(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const i=e.expression.evaluate(t,null,{},n,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(o,o,o,t);return new Bo(this,{kind:"constant",value:a},t)}if("camera"===e.expression.kind){const n=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new Bo(this,{kind:"constant",value:n},t)}return new Bo(this,e.expression,t)}evaluate(e,t,n,r,i,o){if("source"===e.kind){const a=e.evaluate(t,n,r,i,o);return this._calculate(a,a,a,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t,other:n}:{from:n,to:t,other:e}}interpolate(e){return e}}class Zo{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){const i=e.expression.evaluate(t,null,{},n,r);return this._calculate(i,i,i,t)}return this._calculate(e.expression.evaluate(new Ro(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Ro(Math.floor(t.zoom),t)),e.expression.evaluate(new Ro(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class Ho{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)}interpolate(){return!1}}class Go{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new Ro(0,{});for(const n in e){const r=e[n];r.specification.overridable&&this.overridableProperties.push(n);const i=this.defaultPropertyValues[n]=new jo(r,void 0),o=this.defaultTransitionablePropertyValues[n]=new Do(r);this.defaultTransitioningPropertyValues[n]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=i.possiblyEvaluate(t)}}}function Wo(e,t){return 256*(e=f(Math.floor(e),0,255))+f(Math.floor(t),0,255)}Ri(Vo,"DataDrivenProperty"),Ri($o,"DataConstantProperty"),Ri(qo,"CrossFadedDataDrivenProperty"),Ri(Zo,"CrossFadedProperty"),Ri(Ho,"ColorRampProperty");const Yo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Ko{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Xo{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=0,r=0;return{members:e.map((e=>{const i=Yo[e.type].BYTES_PER_ELEMENT,o=n=Qo(n,Math.max(t,i)),a=e.components||1;return r=Math.max(r,i),n+=i*a,{name:e.name,type:e.type,components:a,offset:o}})),size:Qo(n,Math.max(r,t)),alignment:t}}function Qo(e,t){return Math.ceil(e/t)*t}class ea extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e}}ea.prototype.bytesPerElement=4,Ri(ea,"StructArrayLayout2i4");class ta extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e}}ta.prototype.bytesPerElement=6,Ri(ta,"StructArrayLayout3i6");class na extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e}}na.prototype.bytesPerElement=8,Ri(na,"StructArrayLayout4i8");class ra extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=6*e,c=12*e,u=3*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[c+4]=r,this.uint8[c+5]=i,this.uint8[c+6]=o,this.uint8[c+7]=a,this.float32[u+2]=s,e}}ra.prototype.bytesPerElement=12,Ri(ra,"StructArrayLayout2i4ub1f12");class ia extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e}}ia.prototype.bytesPerElement=16,Ri(ia,"StructArrayLayout4f16");class oa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,n,r,i,o,a,s,l,c)}emplace(e,t,n,r,i,o,a,s,l,c,u){const d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=l,this.uint16[d+8]=c,this.uint16[d+9]=u,e}}oa.prototype.bytesPerElement=20,Ri(oa,"StructArrayLayout10ui20");class aa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s){const l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s)}emplace(e,t,n,r,i,o,a,s,l){const c=8*e;return this.uint16[c+0]=t,this.uint16[c+1]=n,this.uint16[c+2]=r,this.uint16[c+3]=i,this.uint16[c+4]=o,this.uint16[c+5]=a,this.uint16[c+6]=s,this.uint16[c+7]=l,e}}aa.prototype.bytesPerElement=16,Ri(aa,"StructArrayLayout8ui16");class sa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e}}sa.prototype.bytesPerElement=12,Ri(sa,"StructArrayLayout6i12");class la extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,i,o,a,s,l,c,u,d)}emplace(e,t,n,r,i,o,a,s,l,c,u,d,p){const h=12*e;return this.int16[h+0]=t,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=i,this.uint16[h+4]=o,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=l,this.int16[h+8]=c,this.int16[h+9]=u,this.int16[h+10]=d,this.int16[h+11]=p,e}}la.prototype.bytesPerElement=24,Ri(la,"StructArrayLayout4i4ui4i24");class ca extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=10*e,l=5*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.float32[l+2]=i,this.float32[l+3]=o,this.float32[l+4]=a,e}}ca.prototype.bytesPerElement=20,Ri(ca,"StructArrayLayout3i3f20");class ua extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}ua.prototype.bytesPerElement=4,Ri(ua,"StructArrayLayout1ul4");class da extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,d,p){const h=this.length;return this.resize(h+1),this.emplace(h,e,t,n,r,i,o,a,s,l,c,u,d,p)}emplace(e,t,n,r,i,o,a,s,l,c,u,d,p,h){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=i,this.int16[f+4]=o,this.float32[m+3]=a,this.float32[m+4]=s,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=u,this.uint32[m+8]=d,this.uint16[f+18]=p,this.uint16[f+19]=h,e}}da.prototype.bytesPerElement=40,Ri(da,"StructArrayLayout5i4f1i1ul2ui40");class pa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+4]=i,this.int16[l+5]=o,this.int16[l+6]=a,this.int16[l+7]=s,e}}pa.prototype.bytesPerElement=16,Ri(pa,"StructArrayLayout3i2i2i16");class ha extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,e}}ha.prototype.bytesPerElement=16,Ri(ha,"StructArrayLayout2f1f2i16");class fa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e}}fa.prototype.bytesPerElement=12,Ri(fa,"StructArrayLayout2ub2f12");class ma extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e}}ma.prototype.bytesPerElement=12,Ri(ma,"StructArrayLayout3f12");class ga extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e}}ga.prototype.bytesPerElement=6,Ri(ga,"StructArrayLayout3ui6");class ya extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_){const w=this.length;return this.resize(w+1),this.emplace(w,e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_)}emplace(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w){const x=30*e,k=15*e,C=60*e;return this.int16[x+0]=t,this.int16[x+1]=n,this.int16[x+2]=r,this.float32[k+2]=i,this.float32[k+3]=o,this.uint16[x+8]=a,this.uint16[x+9]=s,this.uint32[k+5]=l,this.uint32[k+6]=c,this.uint32[k+7]=u,this.uint16[x+16]=d,this.uint16[x+17]=p,this.uint16[x+18]=h,this.float32[k+10]=f,this.float32[k+11]=m,this.uint8[C+48]=g,this.uint8[C+49]=y,this.uint8[C+50]=v,this.uint32[k+13]=b,this.int16[x+28]=_,this.uint8[C+58]=w,e}}ya.prototype.bytesPerElement=60,Ri(ya,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class va extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S,M,T,E,P){const I=this.length;return this.resize(I+1),this.emplace(I,e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S,M,T,E,P)}emplace(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S,M,T,E,P,I){const O=38*e,L=19*e;return this.int16[O+0]=t,this.int16[O+1]=n,this.int16[O+2]=r,this.float32[L+2]=i,this.float32[L+3]=o,this.int16[O+8]=a,this.int16[O+9]=s,this.int16[O+10]=l,this.int16[O+11]=c,this.int16[O+12]=u,this.int16[O+13]=d,this.uint16[O+14]=p,this.uint16[O+15]=h,this.uint16[O+16]=f,this.uint16[O+17]=m,this.uint16[O+18]=g,this.uint16[O+19]=y,this.uint16[O+20]=v,this.uint16[O+21]=b,this.uint16[O+22]=_,this.uint16[O+23]=w,this.uint16[O+24]=x,this.uint16[O+25]=k,this.uint16[O+26]=C,this.uint16[O+27]=S,this.uint16[O+28]=M,this.uint32[L+15]=T,this.float32[L+16]=E,this.float32[L+17]=P,this.float32[L+18]=I,e}}va.prototype.bytesPerElement=76,Ri(va,"StructArrayLayout3i2f6i15ui1ul3f76");class ba extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}ba.prototype.bytesPerElement=4,Ri(ba,"StructArrayLayout1f4");class _a extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=5*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.float32[a+3]=i,this.float32[a+4]=o,e}}_a.prototype.bytesPerElement=20,Ri(_a,"StructArrayLayout5f20");class wa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=n,this.uint16[o+3]=r,this.uint16[o+4]=i,e}}wa.prototype.bytesPerElement=12,Ri(wa,"StructArrayLayout1ul3ui12");class xa extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e}}xa.prototype.bytesPerElement=4,Ri(xa,"StructArrayLayout2ui4");class ka extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}ka.prototype.bytesPerElement=2,Ri(ka,"StructArrayLayout1ui2");class Ca extends Xo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e}}Ca.prototype.bytesPerElement=8,Ri(Ca,"StructArrayLayout2f8");class Sa extends Ko{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}Sa.prototype.size=12;class Ma extends sa{get(e){return new Sa(this,e)}}Ri(Ma,"FillExtrusionExtArray");class Ta extends Ko{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Ta.prototype.size=40;class Ea extends da{get(e){return new Ta(this,e)}}Ri(Ea,"CollisionBoxArray");class Pa extends Ko{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Pa.prototype.size=60;class Ia extends ya{get(e){return new Pa(this,e)}}Ri(Ia,"PlacedSymbolArray");class Oa extends Ko{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Oa.prototype.size=76;class La extends va{get(e){return new Oa(this,e)}}Ri(La,"SymbolInstanceArray");class Ra extends ba{getoffsetX(e){return this.float32[1*e+0]}}Ri(Ra,"GlyphOffsetArray");class ja extends ta{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}Ri(ja,"SymbolLineVertexArray");class Da extends Ko{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Da.prototype.size=12;class Aa extends wa{get(e){return new Da(this,e)}}Ri(Aa,"FeatureIndexArray");class Na extends Ko{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}Na.prototype.size=4;class Fa extends xa{get(e){return new Na(this,e)}}Ri(Fa,"FillExtrusionCentroidArray");class za extends Ko{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}za.prototype.size=12;class Ba extends sa{get(e){return new za(this,e)}}Ri(Ba,"CircleGlobeExtArray");const Ua=Jo([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]),$a=Jo([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"}]);var Va=mt((function(e){e.exports=function(e,t){var n,r,i,o,a,s,l,c;for(r=e.length-(n=3&e.length),i=t,a=3432918353,s=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),qa=mt((function(e){e.exports=function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),Za=Va,Ha=qa;Za.murmur3=Va,Za.murmur2=Ha;class Ga{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,n,r){this.ids.push(Wa(e)),this.positions.push(t,n,r)}getPositions(e){const t=Wa(e);let n=0,r=this.ids.length-1;for(;n<r;){const e=n+r>>1;this.ids[e]>=t?r=e:n=e+1}const i=[];for(;this.ids[n]===t;)i.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return i}static serialize(e,t){const n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return Ya(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}}static deserialize(e){const t=new Ga;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Wa(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:Za(String(e))}function Ya(e,t,n,r){for(;n<r;){const i=e[n+r>>1];let o=n-1,a=r+1;for(;;){do{o++}while(e[o]<i);do{a--}while(e[a]>i);if(o>=a)break;Ka(e,o,a),Ka(t,3*o,3*a),Ka(t,3*o+1,3*a+1),Ka(t,3*o+2,3*a+2)}a-n<r-a?(Ya(e,t,n,a),n=a+1):(Ya(e,t,a+1,r),r=a)}}function Ka(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}Ri(Ga,"FeaturePositionMap");class Xa{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}}class Ja extends Xa{constructor(e){super(e),this.current=0}set(e,t,n){this.fetchUniformLocation(e,t)&&this.current!==n&&(this.current=n,this.gl.uniform1f(this.location,n))}}class Qa extends Xa{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]&&n[3]===this.current[3]||(this.current=n,this.gl.uniform4f(this.location,n[0],n[1],n[2],n[3])))}}class es extends Xa{constructor(e){super(e),this.current=vt.transparent}set(e,t,n){this.fetchUniformLocation(e,t)&&(n.r===this.current.r&&n.g===this.current.g&&n.b===this.current.b&&n.a===this.current.a||(this.current=n,this.gl.uniform4f(this.location,n.r,n.g,n.b,n.a)))}}const ts=new Float32Array(16),ns=new Float32Array(9),rs=new Float32Array(4);function is(e){return[Wo(255*e.r,255*e.g),Wo(255*e.b,255*e.a)]}class os{constructor(e,t,n){this.value=e,this.uniformNames=t.map((e=>`u_${e}`)),this.type=n}setUniform(e,t,n,r,i){t.set(e,i,r.constantOr(this.value))}getBinding(e,t){return"color"===this.type?new es(e):new Ja(e)}}class as{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio||1,this.pixelRatioTo=e.pixelRatio||1,this.patternFrom=t.tl.concat(t.br),this.patternTo=e.tl.concat(e.br)}setUniform(e,t,n,r,i){const o="u_pattern_to"===i||"u_dash_to"===i?this.patternTo:"u_pattern_from"===i||"u_dash_from"===i?this.patternFrom:"u_pixel_ratio_to"===i?this.pixelRatioTo:"u_pixel_ratio_from"===i?this.pixelRatioFrom:null;o&&t.set(e,i,o)}getBinding(e,t){return"u_pattern_from"===t||"u_pattern_to"===t||"u_dash_from"===t||"u_dash_to"===t?new Qa(e):new Ja(e)}}class ss{constructor(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?2:1,offset:0}))),this.paintVertexArray=new r}populatePaintArray(e,t,n,r,i,o){const a=this.paintVertexArray.length,s=this.expression.evaluate(new Ro(0),t,{},i,r,o);this.paintVertexArray.resize(e),this._setPaintValue(a,e,s)}updatePaintArray(e,t,n,r,i){const o=this.expression.evaluate({zoom:0},n,r,void 0,i);this._setPaintValue(e,t,o)}_setPaintValue(e,t,n){if("color"===this.type){const r=is(n);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r[0],r[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class ls{constructor(e,t,n,r,i,o){this.expression=e,this.uniformNames=t.map((e=>`u_${e}_t`)),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,n,r,i,o){const a=this.expression.evaluate(new Ro(this.zoom),t,{},i,r,o),s=this.expression.evaluate(new Ro(this.zoom+1),t,{},i,r,o),l=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(l,e,a,s)}updatePaintArray(e,t,n,r,i){const o=this.expression.evaluate({zoom:this.zoom},n,r,void 0,i),a=this.expression.evaluate({zoom:this.zoom+1},n,r,void 0,i);this._setPaintValue(e,t,o,a)}_setPaintValue(e,t,n,r){if("color"===this.type){const i=is(n),o=is(r);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i[0],i[1],o[0],o[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,n,r,i){const o=this.useIntegerZoom?Math.floor(n.zoom):n.zoom,a=f(this.expression.interpolationFactor(o,this.zoom,this.zoom+1),0,1);t.set(e,i,a)}getBinding(e,t){return new Ja(e)}}class cs{constructor(e,t,n,r,i,o,a){this.expression=e,this.type=n,this.useIntegerZoom=r,this.zoom=i,this.layerId=a,this.paintVertexAttributes=("array"===n?$a:Ua).members;for(let s=0;s<t.length;++s);this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o}populatePaintArray(e,t,n){const r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],n)}updatePaintArray(e,t,n,r,i,o){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],o)}_setPaintValues(e,t,n,r){if(!r||!n)return;const{min:i,mid:o,max:a}=n,s=r[i],l=r[o],c=r[a];if(s&&l&&c)for(let u=e;u<t;u++)this._setPaintValue(this.zoomInPaintVertexArray,u,l,s),this._setPaintValue(this.zoomOutPaintVertexArray,u,l,c)}_setPaintValue(e,t,n,r){e.emplace(t,n.tl[0],n.tl[1],n.br[0],n.br[1],r.tl[0],r.tl[1],r.br[0],r.br[1],n.pixelRatio,r.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class us{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;this.binders={},this._buffers=[];const r=[];for(const i in e.paint._values){if(!n(i))continue;const o=e.paint.get(i);if(!(o instanceof Bo&&kr(o.property.specification)))continue;const a=hs(i,e.type),s=o.value,l=o.property.specification.type,c=o.property.useIntegerZoom,u=o.property.specification["property-type"],d="cross-faded"===u||"cross-faded-data-driven"===u,p="line-dasharray"===String(i)&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==s.kind||p)if("source"===s.kind||p||d){const n=gs(i,l,"source");this.binders[i]=d?new cs(s,a,l,c,t,n,e.id):new ss(s,a,l,n),r.push(`/a_${i}`)}else{const e=gs(i,l,"composite");this.binders[i]=new ls(s,a,l,c,t,e),r.push(`/z_${i}`)}else this.binders[i]=d?new as(s.value,a):new os(s.value,a,l),r.push(`/u_${i}`)}this.cacheKey=r.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof ss||t instanceof ls?t.maxValue:0}populatePaintArrays(e,t,n,r,i,o){for(const a in this.binders){const s=this.binders[a];(s instanceof ss||s instanceof ls||s instanceof cs)&&s.populatePaintArray(e,t,n,r,i,o)}}setConstantPatternPositions(e,t){for(const n in this.binders){const r=this.binders[n];r instanceof as&&r.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,n,r,i,o){let a=!1;for(const s in e){const l=t.getPositions(s);for(const t of l){const l=n.feature(t.index);for(const n in this.binders){const c=this.binders[n];if((c instanceof ss||c instanceof ls||c instanceof cs)&&!0===c.expression.isStateDependent){const u=r.paint.get(n);c.expression=u.value,c.updatePaintArray(t.start,t.end,l,e[s],i,o),a=!0}}}}return a}defines(){const e=[];for(const t in this.binders){const n=this.binders[t];(n instanceof os||n instanceof as)&&e.push(...n.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof ss||n instanceof ls||n instanceof cs)for(let t=0;t<n.paintVertexAttributes.length;t++)e.push(n.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof os||n instanceof as||n instanceof ls)for(const t of n.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const n in this.binders){const r=this.binders[n];if(r instanceof os||r instanceof as||r instanceof ls)for(const i of r.uniformNames)t.push({name:i,property:n,binding:r.getBinding(e,i)})}return t}setUniforms(e,t,n,r,i){for(const{name:o,property:a,binding:s}of n)this.binders[a].setUniform(e,s,i,r.get(a),o)}updatePaintBuffers(e){this._buffers=[];for(const t in this.binders){const n=this.binders[t];if(e&&n instanceof cs){const t=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(n instanceof ss||n instanceof ls)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(e){for(const t in this.binders){const n=this.binders[t];(n instanceof ss||n instanceof ls||n instanceof cs)&&n.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof ss||t instanceof ls||t instanceof cs)&&t.destroy()}}}class ds{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;this.programConfigurations={};for(const r of e)this.programConfigurations[r.id]=new us(r,t,n);this.needsUpload=!1,this._featureMap=new Ga,this._bufferOffset=0}populatePaintArrays(e,t,n,r,i,o,a){for(const s in this.programConfigurations)this.programConfigurations[s].populatePaintArrays(e,t,r,i,o,a);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,r,i){for(const o of n)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(e,this._featureMap,t,o,r,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const ps={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"line-dasharray":["dash_to","dash_from"]};function hs(e,t){return ps[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const fs={"line-pattern":{source:oa,composite:oa},"fill-pattern":{source:oa,composite:oa},"fill-extrusion-pattern":{source:oa,composite:oa},"line-dasharray":{source:aa,composite:aa}},ms={color:{source:Ca,composite:ia},number:{source:ba,composite:Ca}};function gs(e,t,n){const r=fs[e];return r&&r[n]||ms[t][n]}Ri(os,"ConstantBinder"),Ri(as,"CrossFadedConstantBinder"),Ri(ss,"SourceExpressionBinder"),Ri(cs,"CrossFadedCompositeBinder"),Ri(ls,"CompositeExpressionBinder"),Ri(us,"ProgramConfiguration",{omit:["_buffers"]}),Ri(ds,"ProgramConfigurationSet");const ys="-transition";class vs extends qe{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new zo(t.layout)),t.paint)){this._transitionablePaint=new Ao(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Uo(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null!=t&&this._validate(Ti,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return M(e,ys)?this._transitionablePaint.getTransition(e.slice(0,-ys.length)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t&&this._validate(Mi,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if(M(e,ys))return this._transitionablePaint.setTransition(e.slice(0,-ys.length),t||void 0),!1;{const n=this._transitionablePaint._values[e],r="cross-faded-data-driven"===n.property.specification["property-type"],i=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const a=this._transitionablePaint._values[e].value;return a.isDataDriven()||i||r||this._handleOverridablePaintPropertyUpdate(e,o,a)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),E(e,((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}_validate(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(!i||!1!==i.validate)&&Pi(this,e.call(Si,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Ze,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Bo&&kr(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=Jr(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const bs=Jo([{name:"a_pos",components:2,type:"Int16"}],4),_s=Jo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class ws{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.segments=e}prepareSegment(e,t,n,r){let i=this.segments[this.segments.length-1];return e>ws.MAX_VERTEX_ARRAY_LENGTH&&O(`Max vertices per segment is ${ws.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!i||i.vertexLength+e>ws.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,r){return new ws([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])}}ws.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Ri(ws,"SegmentVector");var xs=8192;class ks{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Ss?new Ss(e.lng,e.lat):Ss.convert(e),this}setSouthWest(e){return this._sw=e instanceof Ss?new Ss(e.lng,e.lat):Ss.convert(e),this}extend(e){const t=this._sw,n=this._ne;let r,i;if(e instanceof Ss)r=e,i=e;else{if(!(e instanceof ks))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(ks.convert(e)):this.extend(Ss.convert(e)):this;if(r=e._sw,i=e._ne,!r||!i)return this}return t||n?(t.lng=Math.min(r.lng,t.lng),t.lat=Math.min(r.lat,t.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new Ss(r.lng,r.lat),this._ne=new Ss(i.lng,i.lat)),this}getCenter(){return new Ss((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Ss(this.getWest(),this.getNorth())}getSouthEast(){return new Ss(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=Ss.convert(e);let r=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&r}static convert(e){return!e||e instanceof ks?e:new ks(e)}}const Cs=6371008.8;class Ss{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Ss(g(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,r=e.lat*t,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return Cs*Math.acos(Math.min(i,1))}toBounds(){const e=360*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)/40075017,t=e/Math.cos(Math.PI/180*this.lat);return new ks(new Ss(this.lng-t,this.lat-e),new Ss(this.lng+t,this.lat+e))}static convert(e){if(e instanceof Ss)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Ss(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Ss(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const Ms=2*Math.PI*Cs;function Ts(e){return Ms*Math.cos(e*Math.PI/180)}function Es(e){return(180+e)/360}function Ps(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Is(e,t){return e/Ts(t)}function Os(e){return 360*e-180}function Ls(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function Rs(e,t){return e*Ts(Ls(t))}const js=85.051129;function Ds(e){return 1/Math.cos(e*Math.PI/180)}class As{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=Ss.convert(e);return new As(Es(n.lng),Ps(n.lat),Is(t,n.lat))}toLngLat(){return new Ss(Os(this.x),Ls(this.y))}toAltitude(){return Rs(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Ms*Ds(Ls(this.y))}}function Ns(e,t,n,r,o,a,s,l,c){const u=(t+r)/2,d=(n+o)/2,p=new i(u,d);l(p),function(e,t,n,r,i,o){const a=n-i,s=r-o;return Math.abs((r-t)*a-(n-e)*s)/Math.hypot(a,s)}(p.x,p.y,a.x,a.y,s.x,s.y)>=c?(Ns(e,t,n,u,d,a,p,l,c),Ns(e,u,d,r,o,p,s,l,c)):e.push(s)}function Fs(e,t,n){let r=e[0],i=r.x,o=r.y;t(r);const a=[r];for(let s=1;s<e.length;s++){const l=e[s],{x:c,y:u}=l;t(l),Ns(a,i,o,c,u,r,l,t,n),i=c,o=u,r=l}return a}function zs(e,t,n,r,i){if(i(t,n)){const o=t.add(n).mult(.5);r(o),zs(e,t,o,r,i),zs(e,o,n,r,i)}else e.push(n)}function Bs(e,t,n){let r=e[0];t(r);const i=[r];for(let o=1;o<e.length;o++){const a=e[o];t(a),zs(i,r,a,t,n),r=a}return i}const Us=Math.pow(2,14)-1,$s=-Us-1;function Vs(e,t){const n=Math.round(e.x*t),r=Math.round(e.y*t);return e.x=f(n,$s,Us),e.y=f(r,$s,Us),(n<e.x||n>e.x+1||r<e.y||r>e.y+1)&&O("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function qs(e,t,n){const r=e.loadGeometry(),i=e.extent,o=xs/i;if(t&&n&&n.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:a,x:s,y:l,projection:c}=n,u=e=>{const n=Os((t.x+e.x/i)/o),r=Ls((t.y+e.y/i)/o),u=c.project(n,r);e.x=(u.x*a-s)*i,e.y=(u.y*a-l)*i};for(let t=0;t<r.length;t++)if(1!==e.type)r[t]=Fs(r[t],u,1);else{const e=[];for(const n of r[t])n.x<0||n.x>=i||n.y<0||n.y>=i||(u(n),e.push(n));r[t]=e}}for(const a of r)for(const e of a)Vs(e,o);return r}function Zs(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?qs(e):[]}}function Hs(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}function Gs(e,t,n){const r=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*r,n[1]*r,n[2]*r)}class Ws{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ea,this.indexArray=new ga,this.segments=new ws,this.programConfigurations=new ds(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,n,r){const i=this.layers[0],o=[];let a=null;"circle"===i.type&&(a=i.layout.get("circle-sort-key"));for(const{feature:l,id:c,index:u,sourceLayerIndex:d}of e){const e=this.layers[0]._featureFilter.needGeometry,t=Zs(l,e);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),t,n))continue;const i=a?a.evaluate(t,{},n):void 0,s={id:c,properties:l.properties,type:l.type,sourceLayerIndex:d,index:u,geometry:e?t.geometry:qs(l,n,r),patterns:{},sortKey:i};o.push(s)}a&&o.sort(((e,t)=>e.sortKey-t.sortKey));let s=null;"globe"===r.projection.name&&(this.globeExtVertexArray=new Ba,s=r.projection);for(const l of o){const{geometry:r,index:i,sourceLayerIndex:o}=l,a=e[i].feature;this.addFeature(l,r,i,t.availableImages,n,s),t.featureIndex.insert(a,r,i,o,this.index)}}update(e,t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,bs.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,_s.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,n,r,i,o){for(const a of t)for(const t of a){const n=t.x,r=t.y;if(n<0||n>=xs||r<0||r>=xs)continue;if(o){const e=o.projectTilePoint(n,r,i),t=o.upVector(i,n,r),a=this.globeExtVertexArray;Gs(a,e,t),Gs(a,e,t),Gs(a,e,t),Gs(a,e,t)}const a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=a.vertexLength;Hs(this.layoutVertexArray,n,r,-1,-1),Hs(this.layoutVertexArray,n,r,1,-1),Hs(this.layoutVertexArray,n,r,1,1),Hs(this.layoutVertexArray,n,r,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+2,s+3),a.vertexLength+=4,a.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r,i)}}function Ys(e,t){for(let n=0;n<e.length;n++)if(il(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(il(e,t[n]))return!0;return!!Qs(e,t)}function Ks(e,t,n){return!!il(e,t)||!!tl(t,e,n)}function Xs(e,t){if(1===e.length)return rl(t,e[0]);for(let n=0;n<t.length;n++){const r=t[n];for(let t=0;t<r.length;t++)if(il(e,r[t]))return!0}for(let n=0;n<e.length;n++)if(rl(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(Qs(e,t[n]))return!0;return!1}function Js(e,t,n){if(e.length>1){if(Qs(e,t))return!0;for(let r=0;r<t.length;r++)if(tl(t[r],e,n))return!0}for(let r=0;r<e.length;r++)if(tl(e[r],t,n))return!0;return!1}function Qs(e,t){if(0===e.length||0===t.length)return!1;for(let n=0;n<e.length-1;n++){const r=e[n],i=e[n+1];for(let e=0;e<t.length-1;e++)if(el(r,i,t[e],t[e+1]))return!0}return!1}function el(e,t,n,r){return L(e,n,r)!==L(t,n,r)&&L(e,t,n)!==L(e,t,r)}function tl(e,t,n){const r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(let i=1;i<t.length;i++)if(nl(e,t[i-1],t[i])<r)return!0;return!1}function nl(e,t,n){const r=t.distSqr(n);if(0===r)return e.distSqr(t);const i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return e.distSqr(i<0?t:i>1?n:n.sub(t)._mult(i)._add(t))}function rl(e,t){let n,r,i,o=!1;for(let a=0;a<e.length;a++){n=e[a];for(let e=0,a=n.length-1;e<n.length;a=e++)r=n[e],i=n[a],r.y>t.y!=i.y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o)}return o}function il(e,t){let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const o=e[r],a=e[i];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function ol(e,t,n,r,o){for(const i of e)if(t<=i.x&&n<=i.y&&r>=i.x&&o>=i.y)return!0;const a=[new i(t,n),new i(t,o),new i(r,o),new i(r,n)];if(e.length>2)for(const i of a)if(il(e,i))return!0;for(let i=0;i<e.length-1;i++)if(al(e[i],e[i+1],a))return!0;return!1}function al(e,t,n){const r=n[0],i=n[2];if(e.x<r.x&&t.x<r.x||e.x>i.x&&t.x>i.x||e.y<r.y&&t.y<r.y||e.y>i.y&&t.y>i.y)return!1;const o=L(e,t,n[0]);return o!==L(e,t,n[1])||o!==L(e,t,n[2])||o!==L(e,t,n[3])}function sl(e,t,n){const r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function ll(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function cl(e,t,n,r,o){if(!t[0]&&!t[1])return e;const a=i.convert(t)._mult(o);"viewport"===n&&a._rotate(-r);const s=[];for(let i=0;i<e.length;i++)s.push(e[i].sub(a));return s}function ul(e,t,n,r){const o=i.convert(e)._mult(r);return"viewport"===t&&o._rotate(-n),o}Ri(Ws,"CircleBucket",{omit:["layers"]});const dl=new Go({"circle-sort-key":new Vo(Ze.layout_circle["circle-sort-key"])});var pl={paint:new Go({"circle-radius":new Vo(Ze.paint_circle["circle-radius"]),"circle-color":new Vo(Ze.paint_circle["circle-color"]),"circle-blur":new Vo(Ze.paint_circle["circle-blur"]),"circle-opacity":new Vo(Ze.paint_circle["circle-opacity"]),"circle-translate":new $o(Ze.paint_circle["circle-translate"]),"circle-translate-anchor":new $o(Ze.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new $o(Ze.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new $o(Ze.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Vo(Ze.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Vo(Ze.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Vo(Ze.paint_circle["circle-stroke-opacity"])}),layout:dl},hl=1e-6,fl="undefined"!=typeof Float32Array?Float32Array:Array;function ml(){var e=new fl(9);return fl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function gl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function yl(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15],v=n*s-r*a,b=n*l-i*a,_=n*c-o*a,w=r*l-i*s,x=r*c-o*s,k=i*c-o*l,C=u*m-d*f,S=u*g-p*f,M=u*y-h*f,T=d*g-p*m,E=d*y-h*m,P=p*y-h*g,I=v*P-b*E+_*T+w*M-x*S+k*C;return I?(e[0]=(s*P-l*E+c*T)*(I=1/I),e[1]=(i*E-r*P-o*T)*I,e[2]=(m*k-g*x+y*w)*I,e[3]=(p*x-d*k-h*w)*I,e[4]=(l*M-a*P-c*S)*I,e[5]=(n*P-i*M+o*S)*I,e[6]=(g*_-f*k-y*b)*I,e[7]=(u*k-p*_+h*b)*I,e[8]=(a*E-s*M+c*C)*I,e[9]=(r*M-n*E-o*C)*I,e[10]=(f*x-m*_+y*v)*I,e[11]=(d*_-u*x-h*v)*I,e[12]=(s*S-a*T-l*C)*I,e[13]=(n*T-r*S+i*C)*I,e[14]=(m*b-f*w-g*v)*I,e[15]=(u*w-d*b+p*v)*I,e):null}function vl(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],g=t[13],y=t[14],v=t[15],b=n[0],_=n[1],w=n[2],x=n[3];return e[0]=b*r+_*s+w*d+x*m,e[1]=b*i+_*l+w*p+x*g,e[2]=b*o+_*c+w*h+x*y,e[3]=b*a+_*u+w*f+x*v,e[4]=(b=n[4])*r+(_=n[5])*s+(w=n[6])*d+(x=n[7])*m,e[5]=b*i+_*l+w*p+x*g,e[6]=b*o+_*c+w*h+x*y,e[7]=b*a+_*u+w*f+x*v,e[8]=(b=n[8])*r+(_=n[9])*s+(w=n[10])*d+(x=n[11])*m,e[9]=b*i+_*l+w*p+x*g,e[10]=b*o+_*c+w*h+x*y,e[11]=b*a+_*u+w*f+x*v,e[12]=(b=n[12])*r+(_=n[13])*s+(w=n[14])*d+(x=n[15])*m,e[13]=b*i+_*l+w*p+x*g,e[14]=b*o+_*c+w*h+x*y,e[15]=b*a+_*u+w*f+x*v,e}function bl(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],e[0]=r=t[0],e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=f,e[12]=r*m+s*g+d*y+t[12],e[13]=i*m+l*g+p*y+t[13],e[14]=o*m+c*g+h*y+t[14],e[15]=a*m+u*g+f*y+t[15]),e}function _l(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function wl(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+c*r,e[5]=a*i+u*r,e[6]=s*i+d*r,e[7]=l*i+p*r,e[8]=c*i-o*r,e[9]=u*i-a*r,e[10]=d*i-s*r,e[11]=p*i-l*r,e}function xl(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i-c*r,e[1]=a*i-u*r,e[2]=s*i-d*r,e[3]=l*i-p*r,e[8]=o*r+c*i,e[9]=a*r+u*i,e[10]=s*r+d*i,e[11]=l*r+p*i,e}function kl(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Cl(e,t,n){var r,i,o,a=n[0],s=n[1],l=n[2],c=Math.hypot(a,s,l);return c<hl?null:(a*=c=1/c,s*=c,l*=c,r=Math.sin(t),i=Math.cos(t),e[0]=a*a*(o=1-i)+i,e[1]=s*a*o+l*r,e[2]=l*a*o-s*r,e[3]=0,e[4]=a*s*o-l*r,e[5]=s*s*o+i,e[6]=l*s*o+a*r,e[7]=0,e[8]=a*l*o+s*r,e[9]=s*l*o-a*r,e[10]=l*l*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Sl=vl;function Ml(){var e=new fl(3);return fl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Tl(e){var t=new fl(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function El(e){return Math.hypot(e[0],e[1],e[2])}function Pl(e,t,n){var r=new fl(3);return r[0]=e,r[1]=t,r[2]=n,r}function Il(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function Ol(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Ll(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function Rl(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function jl(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function Dl(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Al(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function Nl(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function Fl(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function zl(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],l=n[2];return e[0]=i*l-o*s,e[1]=o*a-r*l,e[2]=r*s-i*a,e}function Bl(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return e[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/(a=a||1),e[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,e[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,e}function Ul(e,t,n){var r=n[0],i=n[1],o=n[2],a=t[0],s=t[1],l=t[2],c=i*l-o*s,u=o*a-r*l,d=r*s-i*a,p=i*d-o*u,h=o*c-r*d,f=r*u-i*c,m=2*n[3];return u*=m,d*=m,h*=2,f*=2,e[0]=a+(c*=m)+(p*=2),e[1]=s+u+h,e[2]=l+d+f,e}var $l,Vl=Ol,ql=Ll,Zl=El;function Hl(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function Gl(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}function Wl(){var e=new fl(4);return fl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Yl(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function Kl(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*s,e[1]=i*l+o*s,e[2]=o*l-i*s,e[3]=a*l-r*s,e}function Xl(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l-o*s,e[1]=i*l+a*s,e[2]=o*l+r*s,e[3]=a*l-i*s,e}Ml(),$l=new fl(4),fl!=Float32Array&&($l[0]=0,$l[1]=0,$l[2]=0,$l[3]=0),Ml(),Pl(1,0,0),Pl(0,1,0),Wl(),Wl(),ml();class Jl{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,n){const r=Fl(t,this.dir);if(Math.abs(r)<1e-6)return!1;const i=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/r;return n[0]=this.pos[0]+this.dir[0]*i,n[1]=this.pos[1]+this.dir[1]*i,n[2]=this.pos[2]+this.dir[2]*i,!0}closestPointOnSphere(e,t,n){if(function(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2];return Math.abs(n-o)<=hl*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=hl*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=hl*Math.max(1,Math.abs(i),Math.abs(s))}(this.pos,e)||0===t)return n[0]=n[1]=n[2]=0,!1;const[r,i,o]=this.dir,a=this.pos[0]-e[0],s=this.pos[1]-e[1],l=this.pos[2]-e[2],c=r*r+i*i+o*o,u=2*(a*r+s*i+l*o),d=u*u-4*c*(a*a+s*s+l*l-t*t);if(d<0){const e=Math.max(-u/2,0),c=a+r*e,d=s+i*e,p=l+o*e,h=Math.hypot(c,d,p);return n[0]=c*t/h,n[1]=d*t/h,n[2]=p*t/h,!1}{const e=(-u-Math.sqrt(d))/(2*c);if(e<0){const e=Math.hypot(a,s,l);return n[0]=a*t/e,n[1]=s*t/e,n[2]=l*t/e,!1}return n[0]=a+r*e,n[1]=s+i*e,n[2]=l+o*e,!0}}}class Ql{constructor(e,t,n,r,i){this.TL=e,this.TR=t,this.BR=n,this.BL=r,this.horizon=i}static fromInvProjectionMatrix(e,t,n){const r=[-1,1,1],i=[1,1,1],o=[1,-1,1],a=[-1,-1,1],s=Bl(r,r,e),l=Bl(i,i,e),c=Bl(o,o,e),u=Bl(a,a,e);return new Ql(s,l,c,u,t/n)}}class ec{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,t,n,r){const i=Math.pow(2,n),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((n=>{const o=Gl([],n,e),a=1/o[3]/t*i;return function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}(o,o,[a,a,r?1/o[3]:a,a])})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=Nl([],zl([],Vl([],o[e[0]],o[e[1]]),Vl([],o[e[2]],o[e[1]]))),n=-Fl(t,o[e[1]]);return t.concat(n)}));return new ec(o,a)}}class tc{static fromPoints(e){const t=[Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE],n=[Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE];for(const r of e)t[0]=Math.min(t[0],r[0]),t[1]=Math.min(t[1],r[1]),t[2]=Math.min(t[2],r[2]),n[0]=Math.max(n[0],r[0]),n[1]=Math.max(n[1],r[1]),n[2]=Math.max(n[2],r[2]);return new tc(t,n)}constructor(e,t){this.min=e,this.max=t,this.center=Dl([],Il([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],n=Tl(this.min),r=Tl(this.max);for(let i=0;i<t.length;i++)n[i]=t[i]?this.min[i]:this.center[i],r[i]=t[i]?this.center[i]:this.max[i];return r[2]=this.max[2],new tc(n,r)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){const t=this.getCorners();let n=!0;for(let r=0;r<e.planes.length;r++){const i=e.planes[r];let o=0;for(let e=0;e<t.length;e++)o+=Fl(i,t[e])+i[3]>=0;if(0===o)return 0;o!==t.length&&(n=!1)}if(n)return 2;for(let r=0;r<3;r++){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE;for(let i=0;i<e.points.length;i++){const o=e.points[i][r]-this.min[r];t=Math.min(t,o),n=Math.max(n,o)}if(n<0||t>this.max[r]-this.min[r])return 0}return 1}}function nc(e,t,n,r,i,o,a,s,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,u=n.projection.upVectorScale(c,n.center.lat,n.worldSize).metersToTile;for(const d of t)for(const t of d){const d=t.add(s),p=i&&n.elevation?n.elevation.exaggeration()*i.getElevationAt(d.x,d.y,!0):0,h=n.projection.projectTilePoint(d.x,d.y,c);if(p>0){const e=n.projection.upVector(c,d.x,d.y);h.x+=e[0]*u*p,h.y+=e[1]*u*p,h.z+=e[2]*u*p}const f=o?d:rc(h.x,h.y,h.z,r),m=o?e.tilespaceRays.map((e=>ac(e,p))):e.queryGeometry.screenGeometry,g=Gl([],[h.x,h.y,h.z,1],r);if(!a&&o?l*=g[3]/n.cameraToCenterDistance:a&&!o&&(l*=n.cameraToCenterDistance/g[3]),o){const e=Ls((t.y/xs+c.y)/(1<<c.z));l/=n.projection.pixelsPerMeter(e,1)/Is(1,e)}if(Ks(m,f,l))return!0}return!1}function rc(e,t,n,r){const o=Gl([],[e,t,n,1],r);return new i(o[0]/o[3],o[1]/o[3])}const ic=Pl(0,0,0),oc=Pl(0,0,1);function ac(e,t){const n=Ml();return ic[2]=t,e.intersectsPlane(ic,oc,n),new i(n[0],n[1])}class sc extends Ws{}function lc(e,t,n,r){let{width:i,height:o}=t;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return e.width=i,e.height=o,e.data=r,e}function cc(e,t,n){const{width:r,height:i}=t;r===e.width&&i===e.height||(uc(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,i)},n),e.width=r,e.height=i,e.data=t.data)}function uc(e,t,n,r,i,o){if(0===i.width||0===i.height)return t;if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const a=e.data,s=t.data;for(let l=0;l<i.height;l++){const c=((n.y+l)*e.width+n.x)*o,u=((r.y+l)*t.width+r.x)*o;for(let e=0;e<i.width*o;e++)s[u+e]=a[c+e]}return t}Ri(sc,"HeatmapBucket",{omit:["layers"]});class dc{constructor(e,t){lc(this,e,1,t)}resize(e){cc(this,new dc(e),1)}clone(){return new dc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,r,i){uc(e,t,n,r,i,1)}}class pc{constructor(e,t){lc(this,e,4,t)}resize(e){cc(this,new pc(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new pc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,r,i){uc(e,t,n,r,i,4)}}Ri(dc,"AlphaImage"),Ri(pc,"RGBAImage");var hc={paint:new Go({"heatmap-radius":new Vo(Ze.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Vo(Ze.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new $o(Ze.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ho(Ze.paint_heatmap["heatmap-color"]),"heatmap-opacity":new $o(Ze.paint_heatmap["heatmap-opacity"])})};function fc(e){const t={},n=e.resolution||256,r=e.clips?e.clips.length:1,i=e.image||new pc({width:n,height:r}),o=(n,r,o)=>{t[e.evaluationKey]=o;const a=e.expression.evaluate(t);i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a)};if(e.clips)for(let a=0,s=0;a<r;++a,s+=4*n)for(let t=0,r=0;t<n;t++,r+=4){const i=t/(n-1),{start:l,end:c}=e.clips[a];o(s,r,l*(1-i)+c*i)}else for(let a=0,s=0;a<n;a++,s+=4)o(0,s,a/(n-1));return i}var mc={paint:new Go({"hillshade-illumination-direction":new $o(Ze.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new $o(Ze.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new $o(Ze.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new $o(Ze.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new $o(Ze.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new $o(Ze.paint_hillshade["hillshade-accent-color"])})};const gc=Jo([{name:"a_pos",components:2,type:"Int16"}],4),{members:yc}=gc;var vc=_c,bc=_c;function _c(e,t,n){n=n||2;var r,i,o,a,s,l,c,u=t&&t.length,d=u?t[0]*n:e.length,p=wc(e,0,d,n,!0),h=[];if(!p||p.next===p.prev)return h;if(u&&(p=function(e,t,n,r){var i,o,a,s=[];for(i=0,o=t.length;i<o;i++)(a=wc(e,t[i]*r,i<o-1?t[i+1]*r:e.length,r,!1))===a.next&&(a.steiner=!0),s.push(Lc(a));for(s.sort(Ec),i=0;i<s.length;i++)n=Pc(s[i],n);return n}(e,t,p,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var f=n;f<d;f+=n)(s=e[f])<r&&(r=s),(l=e[f+1])<i&&(i=l),s>o&&(o=s),l>a&&(a=l);c=0!==(c=Math.max(o-r,a-i))?32767/c:0}return kc(p,h,n,r,i,c,0),h}function wc(e,t,n,r,i){var o,a;if(i===Zc(e,t,n,r)>0)for(o=t;o<n;o+=r)a=$c(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=$c(o,e[o],e[o+1],a);return a&&Ac(a,a.next)&&(Vc(a),a=a.next),a}function xc(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Ac(r,r.next)&&0!==Dc(r.prev,r,r.next))r=r.next;else{if(Vc(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function kc(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{0===i.z&&(i.z=Oc(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);for(var s,l,c=e;e.prev!==e.next;)if(s=e.prev,l=e.next,o?Sc(e,r,i,o):Cc(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),Vc(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?kc(e=Mc(xc(e),t,n),t,n,r,i,o,2):2===a&&Tc(e,t,n,r,i,o):kc(xc(e),t,n,r,i,o,1);break}}}function Cc(e){var t=e.prev,n=e,r=e.next;if(Dc(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,c=r.y,u=i<o?i<a?i:a:o<a?o:a,d=s<l?s<c?s:c:l<c?l:c,p=i>o?i>a?i:a:o>a?o:a,h=s>l?s>c?s:c:l>c?l:c,f=r.next;f!==t;){if(f.x>=u&&f.x<=p&&f.y>=d&&f.y<=h&&Rc(i,s,o,l,a,c,f.x,f.y)&&Dc(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Sc(e,t,n,r){var i=e.prev,o=e,a=e.next;if(Dc(i,o,a)>=0)return!1;for(var s=i.x,l=o.x,c=a.x,u=i.y,d=o.y,p=a.y,h=s<l?s<c?s:c:l<c?l:c,f=u<d?u<p?u:p:d<p?d:p,m=s>l?s>c?s:c:l>c?l:c,g=u>d?u>p?u:p:d>p?d:p,y=Oc(h,f,t,n,r),v=Oc(m,g,t,n,r),b=e.prevZ,_=e.nextZ;b&&b.z>=y&&_&&_.z<=v;){if(b.x>=h&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Rc(s,u,l,d,c,p,b.x,b.y)&&Dc(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,_.x>=h&&_.x<=m&&_.y>=f&&_.y<=g&&_!==i&&_!==a&&Rc(s,u,l,d,c,p,_.x,_.y)&&Dc(_.prev,_,_.next)>=0)return!1;_=_.nextZ}for(;b&&b.z>=y;){if(b.x>=h&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Rc(s,u,l,d,c,p,b.x,b.y)&&Dc(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;_&&_.z<=v;){if(_.x>=h&&_.x<=m&&_.y>=f&&_.y<=g&&_!==i&&_!==a&&Rc(s,u,l,d,c,p,_.x,_.y)&&Dc(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function Mc(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Ac(i,o)&&Nc(i,r,r.next,o)&&Bc(i,o)&&Bc(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Vc(r),Vc(r.next),r=e=o),r=r.next}while(r!==e);return xc(r)}function Tc(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&jc(a,s)){var l=Uc(a,s);return a=xc(a,a.next),l=xc(l,l.next),kc(a,t,n,r,i,o,0),void kc(l,t,n,r,i,o,0)}s=s.next}a=a.next}while(a!==e)}function Ec(e,t){return e.x-t.x}function Pc(e,t){var n=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,n=r.x<r.next.x?r:r.next,s===i))return n}r=r.next}while(r!==t);if(!n)return null;var l,c=n,u=n.x,d=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&Rc(o<d?i:a,o,u,d,o<d?a:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),Bc(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&Ic(n,r)))&&(n=r,p=l)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var r=Uc(n,e);return xc(r,r.next),xc(n,n.next)}function Ic(e,t){return Dc(e.prev,e,t.prev)<0&&Dc(t.next,e,e.next)<0}function Oc(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Lc(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Rc(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function jc(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Nc(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Bc(e,t)&&Bc(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Dc(e.prev,e,t.prev)||Dc(e,t.prev,t))||Ac(e,t)&&Dc(e.prev,e,e.next)>0&&Dc(t.prev,t,t.next)>0)}function Dc(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Ac(e,t){return e.x===t.x&&e.y===t.y}function Nc(e,t,n,r){var i=zc(Dc(e,t,n)),o=zc(Dc(e,t,r)),a=zc(Dc(n,r,e)),s=zc(Dc(n,r,t));return i!==o&&a!==s||!(0!==i||!Fc(e,n,t))||!(0!==o||!Fc(e,r,t))||!(0!==a||!Fc(n,e,r))||!(0!==s||!Fc(n,t,r))}function Fc(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function zc(e){return e>0?1:e<0?-1:0}function Bc(e,t){return Dc(e.prev,e,e.next)<0?Dc(e,t,e.next)>=0&&Dc(e,e.prev,t)>=0:Dc(e,t,e.prev)<0||Dc(e,e.next,t)<0}function Uc(e,t){var n=new qc(e.i,e.x,e.y),r=new qc(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function $c(e,t,n,r){var i=new qc(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Vc(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function qc(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Zc(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}function Hc(e,t,n,r,i){Gc(e,t,n||0,r||e.length-1,i||Yc)}function Gc(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Gc(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}var u=e[t],d=n,p=r;for(Wc(e,n,t),i(e[r],u)>0&&Wc(e,n,r);d<p;){for(Wc(e,d,p),d++,p--;i(e[d],u)<0;)d++;for(;i(e[p],u)>0;)p--}0===i(e[n],u)?Wc(e,n,p):Wc(e,++p,r),p<=t&&(n=p+1),t<=p&&(r=p-1)}}function Wc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Yc(e,t){return e<t?-1:e>t?1:0}function Kc(e,t){const n=e.length;if(n<=1)return[e];const r=[];let i,o;for(let a=0;a<n;a++){const t=R(e[a]);0!==t&&(e[a].area=Math.abs(t),void 0===o&&(o=t<0),o===t<0?(i&&r.push(i),i=[e[a]]):i.push(e[a]))}if(i&&r.push(i),t>1)for(let a=0;a<r.length;a++)r[a].length<=t||(Hc(r[a],t,1,r[a].length-1,Xc),r[a]=r[a].slice(0,t));return r}function Xc(e,t){return t.area-e.area}function Jc(e,t,n){const r=n.patternDependencies;let i=!1;for(const o of t){const t=o.paint.get(`${e}-pattern`);t.isConstant()||(i=!0);const n=t.constantOr(null);n&&(i=!0,r[n.to]=!0,r[n.from]=!0)}return i}function Qc(e,t,n,r,i){const o=i.patternDependencies;for(const a of t){const t=a.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:r-1},n,{},i.availableImages),s=t.evaluate({zoom:r},n,{},i.availableImages),l=t.evaluate({zoom:r+1},n,{},i.availableImages);e=e&&e.name?e.name:e,s=s&&s.name?s.name:s,l=l&&l.name?l.name:l,o[e]=!0,o[s]=!0,o[l]=!0,n.patterns[a.id]={min:e,mid:s,max:l}}}return n}_c.deviation=function(e,t,n,r){var i=t&&t.length,o=Math.abs(Zc(e,0,i?t[0]*n:e.length,n));if(i)for(var a=0,s=t.length;a<s;a++)o-=Math.abs(Zc(e,t[a]*n,a<s-1?t[a+1]*n:e.length,n));var l=0;for(a=0;a<r.length;a+=3){var c=r[a]*n,u=r[a+1]*n,d=r[a+2]*n;l+=Math.abs((e[c]-e[d])*(e[u+1]-e[c+1])-(e[c]-e[u])*(e[d+1]-e[c+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},_c.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&n.holes.push(r+=e[i-1].length)}return n},vc.default=bc;class eu{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ea,this.indexArray=new ga,this.indexArray2=new xa,this.programConfigurations=new ds(e.layers,e.zoom),this.segments=new ws,this.segments2=new ws,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}populate(e,t,n,r){this.hasPattern=Jc("fill",this.layers,t);const i=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:a,id:s,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,u=Zs(a,e);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),u,n))continue;const d=i?i.evaluate(u,{},n,t.availableImages):void 0,p={id:s,properties:a.properties,type:a.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:qs(a,n,r),patterns:{},sortKey:d};o.push(p)}i&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const a of o){const{geometry:r,index:i,sourceLayerIndex:o}=a;if(this.hasPattern){const e=Qc("fill",this.layers,a,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(a,r,i,n,{},t.availableImages);t.featureIndex.insert(e[i].feature,r,i,o,this.index)}}update(e,t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,r)}addFeatures(e,t,n,r,i){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,t,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,yc),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];for(const a of Kc(t,500)){let e=0;for(const s of a)e+=s.length;const t=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),n=t.vertexLength,r=[],i=[];for(const s of a){if(0===s.length)continue;s!==a[0]&&i.push(r.length/2);const e=this.segments2.prepareSegment(s.length,this.layoutVertexArray,this.indexArray2),t=e.vertexLength;this.layoutVertexArray.emplaceBack(s[0].x,s[0].y),this.indexArray2.emplaceBack(t+s.length-1,t),r.push(s[0].x),r.push(s[0].y);for(let n=1;n<s.length;n++)this.layoutVertexArray.emplaceBack(s[n].x,s[n].y),this.indexArray2.emplaceBack(t+n-1,t+n),r.push(s[n].x),r.push(s[n].y);e.vertexLength+=s.length,e.primitiveLength+=s.length}const o=vc(r,i);for(let a=0;a<o.length;a+=3)this.indexArray.emplaceBack(n+o[a],n+o[a+1],n+o[a+2]);t.vertexLength+=e,t.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,o,r)}}Ri(eu,"FillBucket",{omit:["layers","patternFeatures"]});const tu=new Go({"fill-sort-key":new Vo(Ze.layout_fill["fill-sort-key"])});var nu={paint:new Go({"fill-antialias":new $o(Ze.paint_fill["fill-antialias"]),"fill-opacity":new Vo(Ze.paint_fill["fill-opacity"]),"fill-color":new Vo(Ze.paint_fill["fill-color"]),"fill-outline-color":new Vo(Ze.paint_fill["fill-outline-color"]),"fill-translate":new $o(Ze.paint_fill["fill-translate"]),"fill-translate-anchor":new $o(Ze.paint_fill["fill-translate-anchor"]),"fill-pattern":new qo(Ze.paint_fill["fill-pattern"])}),layout:tu};const ru=Jo([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),iu=Jo([{name:"a_centroid_pos",components:2,type:"Uint16"}]),ou=Jo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:au}=ru;var su=lu;function lu(e,t,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=i,e.readFields(cu,this,t)}function cu(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],i=t._values[e.readVarint()];t.properties[r]=i}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function uu(e){for(var t,n,r=0,i=0,o=e.length,a=o-1;i<o;a=i++)r+=((n=e[a]).x-(t=e[i]).x)*(t.y+n.y);return r}lu.types=["Unknown","Point","LineString","Polygon"],lu.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,a=0,s=0,l=[];e.pos<n;){if(o<=0){var c=e.readVarint();r=7&c,o=c>>3}if(o--,1===r||2===r)a+=e.readSVarint(),s+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&l.push(t),l},lu.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,l=1/0,c=-1/0;e.pos<t;){if(r<=0){var u=e.readVarint();n=7&u,r=u>>3}if(r--,1===n||2===n)(i+=e.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,c]},lu.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,l=this.loadGeometry(),c=lu.types[this.type];function u(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var d=[];for(r=0;r<l.length;r++)d[r]=l[r][0];u(l=d);break;case 2:for(r=0;r<l.length;r++)u(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,i=[],o=0;o<t;o++){var a=uu(e[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(l),r=0;r<l.length;r++)for(i=0;i<l[r].length;i++)u(l[r][i])}1===l.length?l=l[0]:c="Multi"+c;var p={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var du=pu;function pu(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(hu,this,t),this.length=this._features.length}function hu(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function fu(e,t,n){if(3===e){var r=new du(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}pu.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new su(this._pbf,t,this.extent,this._keys,this._values)};var mu={VectorTile:function(e,t){this.layers=e.readFields(fu,{},t)},VectorTileFeature:su,VectorTileLayer:du};function gu(e,t,n,r){const o=[],a=0===r?(e,t,n,r,o,a)=>{e.push(new i(a,n+(a-t)/(r-t)*(o-n)))}:(e,t,n,r,o,a)=>{e.push(new i(t+(a-n)/(o-n)*(r-t),a))};for(const i of e){const e=[];for(const o of i){if(o.length<=2)continue;const i=[];for(let e=0;e<o.length-1;e++){const s=o[e].x,l=o[e].y,c=o[e+1].x,u=o[e+1].y,d=0===r?s:l,p=0===r?c:u;d<t?p>t&&a(i,s,l,c,u,t):d>n?p<n&&a(i,s,l,c,u,n):i.push(o[e]),p<t&&d>=t&&a(i,s,l,c,u,t),p>n&&d<=n&&a(i,s,l,c,u,n)}let s=o[o.length-1];const l=0===r?s.x:s.y;l>=t&&l<=n&&i.push(s),i.length&&(s=i[i.length-1],i[0].x===s.x&&i[0].y===s.y||i.push(i[0]),e.push(i))}e.length&&o.push(e)}return o}const yu=mu.VectorTileFeature.types,vu=Math.pow(2,13);function bu(e,t,n,r,i,o,a,s){e.emplaceBack((t<<1)+a,(n<<1)+o,(Math.floor(r*vu)<<1)+i,Math.round(s))}function _u(e,t,n){const r=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*r,n[1]*r,n[2]*r)}class wu{constructor(){this.acc=new i(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new i(e.x,e.y),this.max=new i(e.x,e.y))}append(e,t){this.currentPolyCount.edges++,this.acc._add(e);const n=this.min,r=this.max;e.x<n.x?n.x=e.x:e.x>r.x&&(r.x=e.x),e.y<n.y?n.y=e.y:e.y>r.y&&(r.y=e.y),((0===e.x||e.x===xs)&&e.x===t.x)!=((0===e.y||e.y===xs)&&e.y===t.y)&&this.processBorderOverlap(e,t),t.x<0!=e.x<0&&this.addBorderIntersection(0,bn(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>xs!=e.x>xs&&this.addBorderIntersection(1,bn(t.y,e.y,(xs-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,bn(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>xs!=e.y>xs&&this.addBorderIntersection(3,bn(t.x,e.x,(xs-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[e];t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const n=0===e.x?0:1;this.addBorderIntersection(n,t.y),this.addBorderIntersection(n,e.y)}else{const n=0===e.y?2:3;this.addBorderIntersection(n,t.x),this.addBorderIntersection(n,e.x)}}centroid(){const e=this.polyCount.reduce(((e,t)=>e+t.edges),0);return 0!==e?this.acc.div(e)._round():new i(0,0)}span(){return new i(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0)}}class xu{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.layoutVertexArray=new na,this.centroidVertexArray=new Fa,this.indexArray=new ga,this.programConfigurations=new ds(e.layers,e.zoom),this.segments=new ws,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.enableTerrain=e.enableTerrain}populate(e,t,n,r){this.features=[],this.hasPattern=Jc("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(e){const t=Math.exp(Math.PI*(1-e.y/(1<<e.z)*2));return 80150034*t/(t*t+1)/xs/(1<<e.z)}(n),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:i,id:o,index:a,sourceLayerIndex:s}of e){const e=this.layers[0]._featureFilter.needGeometry,l=Zs(i,e);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),l,n))continue;const c={id:o,sourceLayerIndex:s,index:a,geometry:e?l.geometry:qs(i,n,r),properties:i.properties,type:i.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(Qc("fill-extrusion",this.layers,c,this.zoom,t)):this.addFeature(c,c.geometry,a,n,{},t.availableImages,r),t.featureIndex.insert(i,c.geometry,a,s,this.index,u)}this.sortBorders()}addFeatures(e,t,n,r,i){for(const o of this.features){const{geometry:e}=o;this.addFeature(o,e,o.index,t,n,r,i)}this.sortBorders()}update(e,t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,au),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,ou.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,iu.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,r,o,a,s){const l=[new i(0,0),new i(xs,xs)],c=s.projection,u="globe"===c.name,d=this.enableTerrain&&!u?new wu:null,p="Polygon"===yu[e.type];u&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ma);const h=Kc(t,500);for(let i=h.length-1;i>=0;i--){const e=h[i];(0===e.length||(f=e[0]).every((e=>e.x<=0))||f.every((e=>e.x>=xs))||f.every((e=>e.y<=0))||f.every((e=>e.y>=xs)))&&h.splice(i,1)}var f;let m;if(u)m=Iu(h,l,r);else{m=[];for(const e of h)m.push({polygon:e,bounds:l})}const g=p?this.edgeRadius:0;for(const{polygon:i,bounds:y}of m){let e=0,t=0;for(const r of i)p&&!r[0].equals(r[r.length-1])&&r.push(r[0]),t+=p?r.length-1:r.length;const n=this.segments.prepareSegment((p?5:4)*t,this.layoutVertexArray,this.indexArray);if(p){const t=[],o=[];e=n.vertexLength;for(const e of i){let a,s;e.length&&e!==i[0]&&o.push(t.length/2),a=e[1].sub(e[0])._perp()._unit();for(let i=1;i<e.length;i++){const o=e[i],l=e[i===e.length-1?1:i+1];let{x:d,y:p}=o;if(g){s=l.sub(o)._perp()._unit();const e=a.add(s)._unit(),t=g*Math.min(4,1/(a.x*e.x+a.y*e.y));d+=t*e.x,p+=t*e.y,a=s}bu(this.layoutVertexArray,d,p,0,0,1,1,0),n.vertexLength++,t.push(o.x,o.y),u&&_u(this.layoutVertexExtArray,c.projectTilePoint(d,p,r),c.upVector(r,d,p))}}const a=vc(t,o);for(let r=0;r<a.length;r+=3)this.indexArray.emplaceBack(e+a[r],e+a[r+2],e+a[r+1]),n.primitiveLength++}for(const o of i){d&&o.length&&d.startRing(o[0]);let t,i,a,s=o.length>4&&Tu(o[o.length-2],o[0],o[1]),l=g?Cu(o[o.length-2],o[0],o[1],g):0;i=o[1].sub(o[0])._perp()._unit();for(let h=1,f=0;h<o.length;h++){let m=o[h-1],v=o[h];const b=o[h===o.length-1?1:h+1];if(d&&p&&d.currentPolyCount.top++,Mu(v,m,y)){g&&(i=b.sub(v)._perp()._unit());continue}d&&d.append(v,m);const _=v.sub(m)._perp(),w=_.x/(Math.abs(_.x)+Math.abs(_.y)),x=_.y>0?1:0,k=m.dist(v);if(f+k>32768&&(f=0),g){a=b.sub(v)._perp()._unit();let e=Su(m,v,b,ku(i,a),g);isNaN(e)&&(e=0);const t=v.sub(m)._unit();m=m.add(t.mult(l))._round(),v=v.add(t.mult(-e))._round(),l=e,i=a}const C=n.vertexLength,S=o.length>4&&Tu(m,v,b);let M=Eu(f,s,!0);if(bu(this.layoutVertexArray,m.x,m.y,w,x,0,0,M),bu(this.layoutVertexArray,m.x,m.y,w,x,0,1,M),f+=k,M=Eu(f,S,!1),s=S,bu(this.layoutVertexArray,v.x,v.y,w,x,0,0,M),bu(this.layoutVertexArray,v.x,v.y,w,x,0,1,M),n.vertexLength+=4,this.indexArray.emplaceBack(C+0,C+1,C+2),this.indexArray.emplaceBack(C+1,C+3,C+2),n.primitiveLength+=2,g){const r=e+(1===h?o.length-2:h-2),i=1===h?e:r+1;if(this.indexArray.emplaceBack(C+1,r,C+3),this.indexArray.emplaceBack(r,i,C+3),n.primitiveLength+=2,void 0===t&&(t=C),!Mu(b,o[h],y)){const e=h===o.length-1?t:n.vertexLength;this.indexArray.emplaceBack(C+2,C+3,e),this.indexArray.emplaceBack(C+3,e+1,e),this.indexArray.emplaceBack(C+3,i,e+1),n.primitiveLength+=3}}if(u){const e=this.layoutVertexExtArray,t=c.projectTilePoint(m.x,m.y,r),n=c.projectTilePoint(v.x,v.y,r),i=c.upVector(r,m.x,m.y),o=c.upVector(r,v.x,v.y);_u(e,t,i),_u(e,t,i),_u(e,n,o),_u(e,n,o)}}p&&(e+=o.length-1)}}if(d&&d.polyCount.length>0){if(d.borders){d.vertexArrayOffset=this.centroidVertexArray.length;const e=d.borders,t=this.featuresOnBorder.push(d)-1;for(let n=0;n<4;n++)e[n][0]!==Number.MAX_VALUE&&this.borders[n].push(t)}this.encodeCentroid(d.borders?void 0:d.centroid(),d)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,o,a,r)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort(((t,n)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[n].borders[e][0]))}encodeCentroid(e,t){let n,r,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(0!==e.y){const i=t.span()._mult(this.tileToMeter);n=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(i.x/10)),r=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(i.y/10))}else n=Math.ceil(7*(e.x+450)),r=0;else n=0,r=+i;let o=i?this.centroidVertexArray.length:t.vertexArrayOffset;for(const a of t.polyCount){i&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*a.edges+a.top);for(let e=0;e<a.top;e++)this.centroidVertexArray.emplace(o++,n,r);for(let e=0;e<2*a.edges;e++)this.centroidVertexArray.emplace(o++,0,r),this.centroidVertexArray.emplace(o++,n,r)}}}function ku(e,t){const n=e.add(t)._unit();return e.x*n.x+e.y*n.y}function Cu(e,t,n,r){const i=t.sub(e)._perp()._unit(),o=n.sub(t)._perp()._unit();return Su(e,t,n,ku(i,o),r)}function Su(e,t,n,r,i){const o=Math.sqrt(1-r*r);return Math.min(e.dist(t)/3,t.dist(n)/3,i*o/r)}function Mu(e,t,n){return e.x<n[0].x&&t.x<n[0].x||e.x>n[1].x&&t.x>n[1].x||e.y<n[0].y&&t.y<n[0].y||e.y>n[1].y&&t.y>n[1].y}function Tu(e,t,n){if(e.x<0||e.x>=xs||t.x<0||t.x>=xs||n.x<0||n.x>=xs)return!1;const r=n.sub(t),i=r.perp(),o=e.sub(t);return(r.x*o.x+r.y*o.y)/Math.sqrt((r.x*r.x+r.y*r.y)*(o.x*o.x+o.y*o.y))>-.866&&i.x*o.x+i.y*o.y<0}function Eu(e,t,n){const r=t?2|e:-3&e;return n?1|r:-2&r}function Pu(){const e=Math.PI/32,t=Math.tan(e),n=Cs;return n*Math.sqrt(1+2*t*t)-n}function Iu(e,t,n){const r=1<<n.z,o=Os(n.x/r),a=Os((n.x+1)/r),s=Ls(n.y/r),l=Ls((n.y+1)/r);return function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0;const s=[];if(!e.length||!n||!r)return s;const l=(e,t)=>{for(const n of e)s.push({polygon:n,bounds:t})},c=Math.ceil(Math.log2(n)),u=Math.ceil(Math.log2(r)),d=c-u,p=[];for(let i=0;i<Math.abs(d);i++)p.push(d>0?0:1);for(let i=0;i<Math.min(c,u);i++)p.push(0),p.push(1);let h=e;if(h=gu(h,t[0].y-o,t[1].y+o,1),h=gu(h,t[0].x-o,t[1].x+o,0),!h.length)return s;const f=[];for(p.length?f.push({polygons:h,bounds:t,depth:0}):l(h,t);f.length;){const e=f.pop(),t=e.depth,n=p[t],r=e.bounds[0],s=e.bounds[1],c=0===n?r.x:r.y,u=0===n?s.x:s.y,d=a?a(n,c,u):.5*(c+u),h=gu(e.polygons,c-o,d+o,n),m=gu(e.polygons,d-o,u+o,n);if(h.length){const e=[r,new i(0===n?d:s.x,1===n?d:s.y)];p.length>t+1?f.push({polygons:h,bounds:e,depth:t+1}):l(h,e)}if(m.length){const e=[new i(0===n?d:r.x,1===n?d:r.y),s];p.length>t+1?f.push({polygons:m,bounds:e,depth:t+1}):l(m,e)}}return s}(e,t,Math.ceil((a-o)/11.25),Math.ceil((s-l)/11.25),1,((e,t,i)=>{if(0===e)return.5*(t+i);{const e=Ls((n.y+t/xs)/r);return(Ps(.5*(Ls((n.y+i/xs)/r)+e))*r-n.y)*xs}}))}Ri(xu,"FillExtrusionBucket",{omit:["layers","features"]}),Ri(wu,"PartMetadata");const Ou=new Go({"fill-extrusion-edge-radius":new $o(Ze["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var Lu={paint:new Go({"fill-extrusion-opacity":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vo(Ze["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new qo(Ze["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vo(Ze["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vo(Ze["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new $o(Ze["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"])}),layout:Ou};function Ru(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}class ju{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Nu(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const n=function(e,t,n){var r=Ru(256*e,256*(t=Math.pow(2,n)-t-1),n),i=Ru(256*(e+1),256*(t+1),n);return r[0]+","+r[1]+","+i[0]+","+i[1]}(this.x,this.y,this.z),r=function(e,t,n){let r,i="";for(let o=e;o>0;o--)r=1<<o-1,i+=(t&r?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",n)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Du{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Nu(e,t.z,t.z,t.x,t.y)}}class Au{constructor(e,t,n,r,i){this.overscaledZ=e,this.wrap=t,this.canonical=new ju(n,+r,+i),this.key=0===t&&e===n?this.canonical.key:Nu(t,e,n,r,i)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new Au(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Au(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return Nu(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return Nu(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new Au(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Au(t,this.wrap,t,n,r),new Au(t,this.wrap,t,n+1,r),new Au(t,this.wrap,t,n,r+1),new Au(t,this.wrap,t,n+1,r+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new Au(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new Au(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Du(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Nu(e,t,n,r,i){const o=1<<Math.min(n,22);let a=o*(i%o)+r%o;return e&&n<22&&(a+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-n)))),16*(32*a+n)+(t-n)}function Fu(e,t){return e.x*t.x+e.y*t.y}function zu(e,t){if(1===e.length){let n=0;const r=t[n++];let i;for(;!i||r.equals(i);)if(i=t[n++],!i)return 1/0;for(;n<t.length;n++){const o=t[n],a=e[0],s=i.sub(r),l=o.sub(r),c=a.sub(r),u=Fu(s,s),d=Fu(s,l),p=Fu(l,l),h=Fu(c,s),f=Fu(c,l),m=u*p-d*d,g=(p*h-d*f)/m,y=(u*f-d*h)/m,v=r.z*(1-g-y)+i.z*g+o.z*y;if(isFinite(v))return v}return 1/0}{let e=1/0;for(const n of t)e=Math.min(e,n.z);return e}}function Bu(e){const t=new i(e[0],e[1]);return t.z=e[2],t}function Uu(e,t,n,r,i,o,a,s){const l=a*i.getElevationAt(e,t,!0,!0),c=0!==o[0],u=c?0===o[1]?a*(o[0]/7-450):a*function(e,t,n){const r=Math.floor(t[0]/8),i=Math.floor(t[1]/8),o=10*(t[0]-8*r),a=10*(t[1]-8*i),s=e.getElevationAt(r,i,!0,!0),l=e.getMeterToDEM(n),c=Math.floor(.5*(o*l-1)),u=Math.floor(.5*(a*l-1)),d=e.tileCoordToPixel(r,i),p=2*c+1,h=2*u+1,f=function(e,t,n,r,i){return[e.getElevationAtPixel(t,n,!0),e.getElevationAtPixel(t+i,n,!0),e.getElevationAtPixel(t,n+i,!0),e.getElevationAtPixel(t+r,n+i,!0)]}(e,d.x-c,d.y-u,p,h),m=Math.abs(f[0]-f[1]),g=Math.abs(f[2]-f[3]),y=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),v=Math.min(.25,.5*l*(m+g)/p),b=Math.min(.25,.5*l*y/h);return s+Math.max(v*o,b*a)}(i,o,s):l;return{base:l+(0===n)?-1:n,top:c?Math.max(u+r,l+n+2):l+r}}Ri(ju,"CanonicalTileID"),Ri(Au,"OverscaledTileID",{omit:["projMatrix"]});const $u=Jo([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Vu}=$u,qu=Jo([{name:"a_packed",components:4,type:"Float32"}]),{members:Zu}=qu,Hu=mu.VectorTileFeature.types,Gu=Math.cos(Math.PI/180*37.5);class Wu{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new ra,this.layoutVertexArray2=new ia,this.indexArray=new ga,this.programConfigurations=new ds(e.layers,e.zoom),this.segments=new ws,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,n,r){this.hasPattern=Jc("line",this.layers,t);const i=this.layers[0].layout.get("line-sort-key"),o=[];for(const{feature:c,id:u,index:d,sourceLayerIndex:p}of e){const e=this.layers[0]._featureFilter.needGeometry,t=Zs(c,e);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),t,n))continue;const a=i?i.evaluate(t,{},n):void 0,s={id:u,properties:c.properties,type:c.type,sourceLayerIndex:p,index:d,geometry:e?t.geometry:qs(c,n,r),patterns:{},sortKey:a};o.push(s)}i&&o.sort(((e,t)=>e.sortKey-t.sortKey));const{lineAtlas:a,featureIndex:s}=t,l=this.addConstantDashes(a);for(const c of o){const{geometry:r,index:i,sourceLayerIndex:o}=c;if(l&&this.addFeatureDashes(c,a),this.hasPattern){const e=Qc("line",this.layers,c,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(c,r,i,n,a.positions,t.availableImages);s.insert(e[i].feature,r,i,o,this.index)}}addConstantDashes(e){let t=!1;for(const n of this.layers){const r=n.paint.get("line-dasharray").value,i=n.layout.get("line-cap").value;if("constant"!==r.kind||"constant"!==i.kind)t=!0;else{const t=i.value,n=r.value;if(!n)continue;e.addDash(n.from,t),e.addDash(n.to,t),n.other&&e.addDash(n.other,t)}}return t}addFeatureDashes(e,t){const n=this.zoom;for(const r of this.layers){const i=r.paint.get("line-dasharray").value,o=r.layout.get("line-cap").value;if("constant"===i.kind&&"constant"===o.kind)continue;let a,s,l,c,u,d;if("constant"===i.kind){const e=i.value;if(!e)continue;a=e.other||e.to,s=e.to,l=e.from}else a=i.evaluate({zoom:n-1},e),s=i.evaluate({zoom:n},e),l=i.evaluate({zoom:n+1},e);"constant"===o.kind?c=u=d=o.value:(c=o.evaluate({zoom:n-1},e),u=o.evaluate({zoom:n},e),d=o.evaluate({zoom:n+1},e)),t.addDash(a,c),t.addDash(s,u),t.addDash(l,d);const p=t.getKey(a,c),h=t.getKey(s,u),f=t.getKey(l,d);e.patterns[r.id]={min:p,mid:h,max:f}}}update(e,t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,r)}addFeatures(e,t,n,r,i){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,t,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Zu)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Vu),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,r,i,o){const a=this.layers[0].layout,s=a.get("line-join").evaluate(e,{}),l=a.get("line-cap").evaluate(e,{}),c=a.get("line-miter-limit"),u=a.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const d of t)this.addLine(d,e,s,l,c,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,o,r)}addLine(e,t,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const a="Polygon"===Hu[t.type];let s=e.length;for(;s>=2&&e[s-1].equals(e[s-2]);)s--;let l=0;for(;l<s-1&&e[l].equals(e[l+1]);)l++;if(s<(a?3:2))return;"bevel"===n&&(i=1.05);const c=this.overscaling<=16?122880/(512*this.overscaling):0,u=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);let d,p,h,f,m;this.e1=this.e2=-1,a&&(d=e[s-2],m=e[l].sub(d)._unit()._perp());for(let g=l;g<s;g++){if(h=g===s-1?a?e[l+1]:void 0:e[g+1],h&&e[g].equals(h))continue;m&&(f=m),d&&(p=d),d=e[g],m=h?h.sub(d)._unit()._perp():f,f=f||m;let t=f.add(m);0===t.x&&0===t.y||t._unit();const y=f.x*m.x+f.y*m.y,v=t.x*m.x+t.y*m.y,b=0!==v?1/v:1/0,_=2*Math.sqrt(2-2*v),w=v<Gu&&p&&h,x=f.x*m.y-f.y*m.x>0;if(w&&g>l){const e=d.dist(p);if(e>2*c){const t=d.sub(d.sub(p)._mult(c/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,f,0,0,u),p=t}}const k=p&&h;let C=k?n:a?"butt":r;if(k&&"round"===C&&(b<o?C="miter":b<=2&&(C="fakeround")),"miter"===C&&b>i&&(C="bevel"),"bevel"===C&&(b>2&&(C="flipbevel"),b<i&&(C="miter")),p&&this.updateDistance(p,d),"miter"===C)t._mult(b),this.addCurrentVertex(d,t,0,0,u);else if("flipbevel"===C){if(b>100)t=m.mult(-1);else{const e=b*f.add(m).mag()/f.sub(m).mag();t._perp()._mult(e*(x?-1:1))}this.addCurrentVertex(d,t,0,0,u),this.addCurrentVertex(d,t.mult(-1),0,0,u)}else if("bevel"===C||"fakeround"===C){const e=-Math.sqrt(b*b-1),t=x?e:0,n=x?0:e;if(p&&this.addCurrentVertex(d,f,t,n,u),"fakeround"===C){const e=Math.round(180*_/Math.PI/20);for(let t=1;t<e;t++){let n=t/e;if(.5!==n){const e=n-.5;n+=n*e*(n-1)*((1.0904+y*(y*(3.55645-1.43519*y)-3.2452))*e*e+(.848013+y*(.215638*y-1.06021)))}const r=m.sub(f)._mult(n)._add(f)._unit()._mult(x?-1:1);this.addHalfVertex(d,r.x,r.y,!1,x,0,u)}}h&&this.addCurrentVertex(d,m,-t,-n,u)}else if("butt"===C)this.addCurrentVertex(d,t,0,0,u);else if("square"===C){const e=p?1:-1;p||this.addCurrentVertex(d,t,e,e,u),this.addCurrentVertex(d,t,0,0,u),p&&this.addCurrentVertex(d,t,e,e,u)}else"round"===C&&(p&&(this.addCurrentVertex(d,f,0,0,u),this.addCurrentVertex(d,f,1,1,u,!0)),h&&(this.addCurrentVertex(d,m,-1,-1,u,!0),this.addCurrentVertex(d,m,0,0,u)));if(w&&g<s-1){const e=d.dist(h);if(e>2*c){const t=d.add(h.sub(d)._mult(c/e)._round());this.updateDistance(d,t),this.addCurrentVertex(t,m,0,0,u),d=t}}}}addCurrentVertex(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=t.y*r-t.x,s=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,i),this.addHalfVertex(e,a,s,o,!0,-r,i)}addHalfVertex(e,t,n,r,i,o,a){let{x:s,y:l}=e;this.layoutVertexArray.emplaceBack((s<<1)+(r?1:0),(l<<1)+(i?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const c=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),i?this.e2=c:this.e1=c}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}Ri(Wu,"LineBucket",{omit:["layers","patternFeatures"]});const Yu=new Go({"line-cap":new Vo(Ze.layout_line["line-cap"]),"line-join":new Vo(Ze.layout_line["line-join"]),"line-miter-limit":new $o(Ze.layout_line["line-miter-limit"]),"line-round-limit":new $o(Ze.layout_line["line-round-limit"]),"line-sort-key":new Vo(Ze.layout_line["line-sort-key"])});var Ku={paint:new Go({"line-opacity":new Vo(Ze.paint_line["line-opacity"]),"line-color":new Vo(Ze.paint_line["line-color"]),"line-translate":new $o(Ze.paint_line["line-translate"]),"line-translate-anchor":new $o(Ze.paint_line["line-translate-anchor"]),"line-width":new Vo(Ze.paint_line["line-width"]),"line-gap-width":new Vo(Ze.paint_line["line-gap-width"]),"line-offset":new Vo(Ze.paint_line["line-offset"]),"line-blur":new Vo(Ze.paint_line["line-blur"]),"line-dasharray":new qo(Ze.paint_line["line-dasharray"]),"line-pattern":new qo(Ze.paint_line["line-pattern"]),"line-gradient":new Ho(Ze.paint_line["line-gradient"]),"line-trim-offset":new $o(Ze.paint_line["line-trim-offset"])}),layout:Yu};const Xu=new class extends Vo{possiblyEvaluate(e,t){return t=new Ro(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,r){return t=b({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,r)}}(Ku.paint.properties["line-width"].specification);function Ju(e,t){return t>0?t+2*e:e}Xu.useIntegerZoom=!0;const Qu=Jo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),ed=Jo([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),td=Jo([{name:"a_projected_pos",components:4,type:"Float32"}],4);Jo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const nd=Jo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),rd=Jo([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const id=Jo([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),od=Jo([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Jo([{name:"triangle",components:3,type:"Uint16"}]),Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Jo([{type:"Float32",name:"offsetX"}]),Jo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ad=24;const sd=128;function ld(e,t){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Ro(e+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:r}=n;let i=0;for(;i<t.length&&t[i]<=e;)i++;i=Math.max(0,i-1);let o=i;for(;o<t.length&&t[o]<e+1;)o++;o=Math.min(t.length-1,o);const a=t[i],s=t[o];return"composite"===n.kind?{kind:"composite",minZoom:a,maxZoom:s,interpolationType:r}:{kind:"camera",minZoom:a,maxZoom:s,minSize:n.evaluate(new Ro(a)),maxSize:n.evaluate(new Ro(s)),interpolationType:r}}}function cd(e,t,n){let{uSize:r,uSizeT:i}=t,{lowerSize:o,upperSize:a}=n;return"source"===e.kind?o/sd:"composite"===e.kind?bn(o/sd,a/sd,i):r}function ud(e,t){let n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){const{interpolationType:i,minZoom:o,maxZoom:a}=e,s=i?f(Un.interpolationFactor(i,t,o,a),0,1):0;"camera"===e.kind?r=bn(e.minSize,e.maxSize,s):n=s}return{uSizeT:n,uSize:r}}var dd=Object.freeze({__proto__:null,getSizeData:ld,evaluateSizeForFeature:cd,evaluateSizeForZoom:ud,SIZE_PACK_FACTOR:sd});function pd(e,t,n){return e.sections.forEach((e=>{e.text=function(e,t,n){const r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),Lo.applyArabicShaping&&(e=Lo.applyArabicShaping(e)),e}(e.text,t,n)})),e}const hd={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};function fd(e){return"\ufe36"===e||"\ufe48"===e||"\ufe38"===e||"\ufe44"===e||"\ufe42"===e||"\ufe3e"===e||"\ufe3c"===e||"\ufe3a"===e||"\ufe18"===e||"\ufe40"===e||"\ufe10"===e||"\ufe13"===e||"\ufe14"===e||"\uff40"===e||"\uffe3"===e||"\ufe11"===e||"\ufe12"===e}function md(e){return"\ufe35"===e||"\ufe47"===e||"\ufe37"===e||"\ufe43"===e||"\ufe41"===e||"\ufe3d"===e||"\ufe3b"===e||"\ufe39"===e||"\ufe17"===e||"\ufe3f"===e}var gd=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},yd=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m},vd=bd;function bd(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}bd.Varint=0,bd.Fixed64=1,bd.Bytes=2,bd.Fixed32=5;var _d=4294967296,wd=1/_d,xd="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function kd(e){return e.type===bd.Bytes?e.readVarint()+e.pos:e.pos+1}function Cd(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Sd(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function Md(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function Td(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Ed(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function Pd(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function Id(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function Od(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function Ld(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function Rd(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function jd(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function Dd(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Ad(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function Nd(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function Fd(e,t,n){t.glyphs=[],1===e&&n.readMessage(zd,t)}function zd(e,t,n){if(3===e){const{id:e,bitmap:r,width:i,height:o,left:a,top:s,advance:l}=n.readMessage(Bd,{});t.glyphs.push({id:e,bitmap:new dc({width:i+6,height:o+6},r),metrics:{width:i,height:o,left:a,top:s,advance:l}})}else 4===e?t.ascender=n.readSVarint():5===e&&(t.descender=n.readSVarint())}function Bd(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function Ud(e){let t=0,n=0;for(const a of e)t+=a.w*a.h,n=Math.max(n,a.w);e.sort(((e,t)=>t.h-e.h));const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let i=0,o=0;for(const a of e)for(let e=r.length-1;e>=0;e--){const t=r[e];if(!(a.w>t.w||a.h>t.h)){if(a.x=t.x,a.y=t.y,o=Math.max(o,a.y+a.h),i=Math.max(i,a.x+a.w),a.w===t.w&&a.h===t.h){const t=r.pop();e<r.length&&(r[e]=t)}else a.h===t.h?(t.x+=a.w,t.w-=a.w):a.w===t.w?(t.y+=a.h,t.h-=a.h):(r.push({x:t.x+a.w,y:t.y,w:t.w-a.w,h:a.h}),t.y+=a.h,t.h-=a.h);break}}return{w:i,h:o,fill:t/(i*o)||0}}bd.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Dd(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Nd(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Dd(this.buf,this.pos)+Dd(this.buf,this.pos+4)*_d;return this.pos+=8,e},readSFixed64:function(){var e=Dd(this.buf,this.pos)+Nd(this.buf,this.pos+4)*_d;return this.pos+=8,e},readFloat:function(){var e=gd(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=gd(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return Cd(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return Cd(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return Cd(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return Cd(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return Cd(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return Cd(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&xd?function(e,t,n){return xd.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,l=e[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=u}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==bd.Bytes)return e.push(this.readVarint(t));var n=kd(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==bd.Bytes)return e.push(this.readSVarint());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==bd.Bytes)return e.push(this.readBoolean());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==bd.Bytes)return e.push(this.readFloat());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==bd.Bytes)return e.push(this.readDouble());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==bd.Bytes)return e.push(this.readFixed32());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==bd.Bytes)return e.push(this.readSFixed32());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==bd.Bytes)return e.push(this.readFixed64());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==bd.Bytes)return e.push(this.readSFixed64());var t=kd(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===bd.Varint)for(;this.buf[this.pos++]>127;);else if(t===bd.Bytes)this.pos=this.readVarint()+this.pos;else if(t===bd.Fixed32)this.pos+=4;else{if(t!==bd.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Ad(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Ad(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Ad(this.buf,-1&e,this.pos),Ad(this.buf,Math.floor(e*wd),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Ad(this.buf,-1&e,this.pos),Ad(this.buf,Math.floor(e*wd),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&Sd(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),yd(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),yd(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&Sd(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,bd.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Md,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Td,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,Id,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Ed,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Pd,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,Od,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Ld,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Rd,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,jd,t)},writeBytesField:function(e,t){this.writeTag(e,bd.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,bd.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,bd.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,bd.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,bd.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,bd.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,bd.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,bd.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,bd.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,bd.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};class $d{constructor(e,t){let{pixelRatio:n,version:r,stretchX:i,stretchY:o,content:a}=t;this.paddedRect=e,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Vd{constructor(e,t){const n={},r={};this.haveRenderCallbacks=[];const i=[];this.addImages(e,n,i),this.addImages(t,r,i);const{w:o,h:a}=Ud(i),s=new pc({width:o||1,height:a||1});for(const l in e){const t=e[l],r=n[l].paddedRect;pc.copy(t.data,s,{x:0,y:0},{x:r.x+1,y:r.y+1},t.data)}for(const l in t){const e=t[l],n=r[l].paddedRect,i=n.x+1,o=n.y+1,a=e.data.width,c=e.data.height;pc.copy(e.data,s,{x:0,y:0},{x:i,y:o},e.data),pc.copy(e.data,s,{x:0,y:c-1},{x:i,y:o-1},{width:a,height:1}),pc.copy(e.data,s,{x:0,y:0},{x:i,y:o+c},{width:a,height:1}),pc.copy(e.data,s,{x:a-1,y:0},{x:i-1,y:o},{width:1,height:c}),pc.copy(e.data,s,{x:0,y:0},{x:i+a,y:o},{width:1,height:c})}this.image=s,this.iconPositions=n,this.patternPositions=r}addImages(e,t,n){for(const r in e){const i=e[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),t[r]=new $d(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(e,t){this.haveRenderCallbacks=this.haveRenderCallbacks.filter((t=>e.hasImage(t))),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[r,i]=e.tl;n.update(t.data,void 0,{x:r,y:i})}}Ri($d,"ImagePosition"),Ri(Vd,"ImageAtlas");const qd={horizontal:1,vertical:2,horizontalOnly:3};class Zd{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new Zd;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new Zd;return t.imageName=e,t}}class Hd{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new Hd;for(let r=0;r<e.sections.length;r++){const i=e.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,t)}return n}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(e){this.text=function(e,t){let n="";for(let r=0;r<e.length;r++){const i=e.charCodeAt(r+1)||null,o=e.charCodeAt(r-1)||null;n+=!t&&(i&&yo(i)&&!hd[e[r+1]]||o&&yo(o)&&!hd[e[r-1]])||!hd[e[r]]?e[r]:hd[e[r]]}return n}(this.text,e)}trim(){let e=0;for(let n=0;n<this.text.length&&Wd[this.text.charCodeAt(n)];n++)e++;let t=this.text.length;for(let n=this.text.length-1;n>=0&&n>=e&&Wd[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new Hd;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(Zd.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let r=0;r<e.text.length;++r)this.sectionIndex.push(n)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void O("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(Zd.forImage(t)),this.sectionIndex.push(this.sections.length-1)):O("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gd(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){const g=Hd.fromFeature(e,i);let y;d===qd.vertical&&g.verticalizePunctuation(p);const{processBidirectionalText:v,processStyledBidirectionalText:b}=Lo;if(v&&1===g.sections.length){y=[];const e=v(g.toString(),tp(g,c,o,t,r,h,f));for(const t of e){const e=new Hd;e.text=t,e.sections=g.sections;for(let n=0;n<t.length;n++)e.sectionIndex.push(0);y.push(e)}}else if(b){y=[];const e=b(g.text,g.sectionIndex,tp(g,c,o,t,r,h,f));for(const t of e){const e=new Hd;e.text=t[0],e.sectionIndex=t[1],e.sections=g.sections,y.push(e)}}else y=function(e,t){const n=[],r=e.text;let i=0;for(const o of t)n.push(e.substring(i,o)),i=o;return i<r.length&&n.push(e.substring(i,r.length)),n}(g,tp(g,c,o,t,r,h,f));const _=[],w={positionedLines:_,text:g.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:d,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,n,r,i,o,a,s,l,c,u,d){let p=0,h=0,f=0;const m="right"===s?1:"left"===s?0:.5;let g=!1;for(const x of i){const e=x.getSections();for(const n of e){if(n.imageName)continue;const e=t[n.fontStack];if(e&&(g=void 0!==e.ascender&&void 0!==e.descender,!g))break}if(!g)break}let y=0;for(const x of i){x.trim();const i=x.getMaxScale(),a=(i-1)*ad,s={positionedGlyphs:[],lineOffset:0};e.positionedLines[y]=s;const b=s.positionedGlyphs;let _=0;if(!x.length()){h+=o,++y;continue}let w=0,k=0;for(let o=0;o<x.length();o++){const a=x.getSection(o),s=x.getSectionIndex(o),f=x.getCharCode(o);let m=a.scale,y=null,C=null,S=null,M=ad,T=0;const E=!(l===qd.horizontal||!u&&!go(f)||u&&(Wd[f]||(v=f,zi(v)||Bi(v)||Ui(v)||ao(v)||uo(v))));if(a.imageName){const t=r[a.imageName];if(!t)continue;S=a.imageName,e.iconsInText=e.iconsInText||!0,C=t.paddedRect;const n=t.displaySize;m=m*ad/d,y={width:n[0],height:n[1],left:1,top:-3,advance:E?n[1]:n[0],localGlyph:!1},T=g?-y.height*m:i*ad-17-n[1]*m,M=y.advance;const o=(E?n[0]:n[1])*m-ad*i;o>0&&o>_&&(_=o)}else{const e=n[a.fontStack];if(!e)continue;e[f]&&(C=e[f]);const r=t[a.fontStack];if(!r)continue;const o=r.glyphs[f];if(!o)continue;if(y=o.metrics,M=8203!==f?ad:0,g){const e=void 0!==r.ascender?Math.abs(r.ascender):0,t=void 0!==r.descender?Math.abs(r.descender):0,n=(e+t)*m;w<n&&(w=n,k=(e-t)/2*m),T=-e*m}else T=(i-m)*ad-17}E?(e.verticalizable=!0,b.push({glyph:f,imageName:S,x:p,y:h+T,vertical:E,scale:m,localGlyph:y.localGlyph,fontStack:a.fontStack,sectionIndex:s,metrics:y,rect:C}),p+=M*m+c):(b.push({glyph:f,imageName:S,x:p,y:h+T,vertical:E,scale:m,localGlyph:y.localGlyph,fontStack:a.fontStack,sectionIndex:s,metrics:y,rect:C}),p+=y.advance*m+c)}0!==b.length&&(f=Math.max(p-c,f),g?rp(b,m,_,k,o*i/2):rp(b,m,_,0,o/2)),p=0;const C=o*i+_;s.lineOffset=Math.max(_,a),h+=C,++y}var v;const b=h,{horizontalAlign:_,verticalAlign:w}=np(a);(function(e,t,n,r,i,o){const a=(t-n)*i,s=-o*r;for(const l of e)for(const e of l.positionedGlyphs)e.x+=a,e.y+=s})(e.positionedLines,m,_,w,f,b),e.top+=-w*b,e.bottom=e.top+b,e.left+=-_*f,e.right=e.left+f,e.hasBaseline=g}(w,t,n,r,y,a,s,l,d,c,p,m),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(_)&&w}const Wd={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Yd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Kd(e,t,n,r,i,o){if(t.imageName){const e=r[t.imageName];return e?e.displaySize[0]*t.scale*ad/o+i:0}{const r=n[t.fontStack],o=r&&r.glyphs[e];return o?o.metrics.advance*t.scale+i:0}}function Xd(e,t,n,r){const i=Math.pow(e-t,2);return r?e<t?i/2:2*i:i+Math.abs(n)*n}function Jd(e,t,n){let r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function Qd(e,t,n,r,i,o){let a=null,s=Xd(t,n,i,o);for(const l of r){const e=Xd(t-l.x,n,i,o)+l.badness;e<=s&&(a=l,s=e)}return{index:e,x:t,priorBreak:a,badness:s}}function ep(e){return e?ep(e.priorBreak).concat(e.index):[]}function tp(e,t,n,r,i,o,a){if("point"!==o)return[];if(!e)return[];const s=[],l=function(e,t,n,r,i,o){let a=0;for(let s=0;s<e.length();s++){const n=e.getSection(s);a+=Kd(e.getCharCode(s),n,r,i,t,o)}return a/Math.max(1,Math.ceil(a/n))}(e,t,n,r,i,a),c=e.text.indexOf("\u200b")>=0;let u=0;for(let p=0;p<e.length();p++){const n=e.getSection(p),o=e.getCharCode(p);if(Wd[o]||(u+=Kd(o,n,r,i,t,a)),p<e.length()-1){const t=!((d=o)<11904||!(Yi(d)||Wi(d)||lo(d)||oo(d)||Qi(d)||$i(d)||Ki(d)||Zi(d)||eo(d)||to(d)||Ji(d)||po(d)||Hi(d)||qi(d)||Vi(d)||Xi(d)||Gi(d)||so(d)||ro(d)||no(d)));(Yd[o]||t||n.imageName)&&s.push(Qd(p+1,u,l,s,Jd(o,e.getCharCode(p+1),t&&c),!1))}}var d;return ep(Qd(e.length(),u,l,s,0,!0))}function np(e){let t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function rp(e,t,n,r,i){if(!(t||n||r||i))return;const o=e.length-1,a=e[o],s=(a.x+a.metrics.advance*a.scale)*t;for(let l=0;l<=o;l++)e[l].x-=s,e[l].y+=n+r+i}function ip(e,t,n){const{horizontalAlign:r,verticalAlign:i}=np(n),o=t[0]-e.displaySize[0]*r,a=t[1]-e.displaySize[1]*i;return{image:e,top:a,bottom:a+e.displaySize[1],left:o,right:o+e.displaySize[0]}}function op(e,t,n,r,i,o){const a=e.image;let s;if(a.content){const e=a.content,t=a.pixelRatio||1;s=[e[0]/t,e[1]/t,a.displaySize[0]-e[2]/t,a.displaySize[1]-e[3]/t]}const l=t.left*o,c=t.right*o;let u,d,p,h;"width"===n||"both"===n?(h=i[0]+l-r[3],d=i[0]+c+r[1]):(h=i[0]+(l+c-a.displaySize[0])/2,d=h+a.displaySize[0]);const f=t.top*o,m=t.bottom*o;return"height"===n||"both"===n?(u=i[1]+f-r[0],p=i[1]+m+r[2]):(u=i[1]+(f+m-a.displaySize[1])/2,p=u+a.displaySize[1]),{image:a,top:u,right:d,bottom:p,left:h,collisionPadding:s}}class ap extends i{constructor(e,t,n,r,i){super(e,t),this.angle=r,this.z=n,void 0!==i&&(this.segment=i)}clone(){return new ap(this.x,this.y,this.z,this.angle,this.segment)}}function sp(e,t,n,r,i){if(void 0===t.segment)return!0;let o=t,a=t.segment+1,s=0;for(;s>-n/2;){if(a--,a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;const l=[];let c=0;for(;s<n/2;){const t=e[a],n=e[a+1];if(!n)return!1;let o=e[a-1].angleTo(t)-t.angleTo(n);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:o}),c+=o;s-l[0].distance>r;)c-=l.shift().angleDelta;if(c>i)return!1;a++,s+=t.dist(n)}return!0}function lp(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function cp(e,t,n){return e?.6*t*n:0}function up(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function dp(e,t,n,r,i,o){const a=cp(n,i,o),s=up(n,r)*o;let l=0;const c=lp(e)/2;for(let u=0;u<e.length-1;u++){const n=e[u],r=e[u+1],i=n.dist(r);if(l+i>c){const o=(c-l)/i,d=bn(n.x,r.x,o),p=bn(n.y,r.y,o),h=new ap(d,p,0,r.angleTo(n),u);return!a||sp(e,h,s,a,t)?h:void 0}l+=i}}function pp(e,t,n,r,i,o,a,s,l){const c=cp(r,o,a),u=up(r,i),d=u*a,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-d<t/4&&(t=d+t/4),hp(e,p?t/2*s%t:(u/2+2*o)*a*s%t,t,c,n,d,p,!1,l)}function hp(e,t,n,r,i,o,a,s,l){const c=o/2,u=lp(e);let d=0,p=t-n,h=[];for(let f=0;f<e.length-1;f++){const t=e[f],a=e[f+1],s=t.dist(a),m=a.angleTo(t);for(;p+n<d+s;){p+=n;const g=(p-d)/s,y=bn(t.x,a.x,g),v=bn(t.y,a.y,g);if(y>=0&&y<l&&v>=0&&v<l&&p-c>=0&&p+c<=u){const t=new ap(y,v,0,m,f);t._round(),r&&!sp(e,t,o,r,i)||h.push(t)}}d+=s}return s||h.length||a||(h=hp(e,d/2,n,r,i,o,a,!0,l)),h}function fp(e,t,n,r,o){const a=[];for(let s=0;s<e.length;s++){const l=e[s];let c;for(let e=0;e<l.length-1;e++){let s=l[e],u=l[e+1];s.x<t&&u.x<t||(s.x<t?s=new i(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x<t&&(u=new i(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y<n&&u.y<n||(s.y<n?s=new i(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round():u.y<n&&(u=new i(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round()),s.x>=r&&u.x>=r||(s.x>=r?s=new i(r,s.y+(r-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x>=r&&(u=new i(r,s.y+(r-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y>=o&&u.y>=o||(s.y>=o?s=new i(s.x+(o-s.y)/(u.y-s.y)*(u.x-s.x),o)._round():u.y>=o&&(u=new i(s.x+(o-s.y)/(u.y-s.y)*(u.x-s.x),o)._round()),c&&s.equals(c[c.length-1])||(c=[s],a.push(c)),c.push(u)))))}}return a}Ri(ap,"Anchor");const mp=1e20;function gp(e,t,n,r,i,o,a,s,l){for(let c=t;c<t+r;c++)yp(e,n*o+c,o,i,a,s,l);for(let c=n;c<n+i;c++)yp(e,c*o+t,1,r,a,s,l)}function yp(e,t,n,r,i,o,a){o[0]=0,a[0]=-mp,a[1]=mp,i[0]=e[t];for(let s=1,l=0,c=0;s<r;s++){i[s]=e[t+s*n];const r=s*s;do{const e=o[l];c=(i[s]-i[e]+r-e*e)/(s-e)/2}while(c<=a[l]&&--l>-1);l++,o[l]=s,a[l]=c,a[l+1]=mp}for(let s=0,l=0;s<r;s++){for(;a[l+1]<s;)l++;const r=o[l],c=s-r;e[t+s*n]=i[r]+c*c}}const vp={none:0,ideographs:1,all:2};class bp{constructor(e,t,n){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e){this.url=e}getGlyphs(e,t){const n=[];for(const r in e)for(const t of e[r])n.push({stack:r,id:t});y(n,((e,t)=>{let{stack:n,id:r}=e,i=this.entries[n];i||(i=this.entries[n]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let o=i.glyphs[r];if(void 0!==o)return void t(null,{stack:n,id:r,glyph:o});if(o=this._tinySDF(i,n,r),o)return i.glyphs[r]=o,void t(null,{stack:n,id:r,glyph:o});const a=Math.floor(r/256);if(256*a>65535)return void t(new Error("glyphs > 65535 not supported"));if(i.ranges[a])return void t(null,{stack:n,id:r,glyph:o});let s=i.requests[a];s||(s=i.requests[a]=[],bp.loadGlyphRange(n,a,this.url,this.requestManager,((e,t)=>{if(t){i.ascender=t.ascender,i.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(i.glyphs[+e]=t.glyphs[+e]);i.ranges[a]=!0}for(const n of s)n(e,t);delete i.requests[a]}))),s.push(((e,i)=>{e?t(e):i&&t(null,{stack:n,id:r,glyph:i.glyphs[r]||null})}))}),((e,n)=>{if(e)t(e);else if(n){const e={};for(const{stack:t,id:r,glyph:i}of n)void 0===e[t]&&(e[t]={}),void 0===e[t].glyphs&&(e[t].glyphs={}),e[t].glyphs[r]=i&&{id:i.id,bitmap:i.bitmap.clone(),metrics:i.metrics},e[t].ascender=this.entries[t].ascender,e[t].descender=this.entries[t].descender;t(null,e)}}))}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==vp.none&&(this.localGlyphMode===vp.all?!!this.localFontFamily:!!this.localFontFamily&&(to(e)||io(e)||Hi(e)||Gi(e)||Zi(e)))}_tinySDF(e,t,n){const r=this.localFontFamily;if(!r||!this._doesCharSupportLocalGlyph(n))return;let i=e.tinySDF;if(!i){let n="400";/bold/i.test(t)?n="900":/medium/i.test(t)?n="500":/light/i.test(t)&&(n="200"),i=e.tinySDF=new bp.TinySDF({fontFamily:r,fontWeight:n,fontSize:48,buffer:6,radius:16}),i.fontWeight=n}if(this.localGlyphs[i.fontWeight][n])return this.localGlyphs[i.fontWeight][n];const o=String.fromCharCode(n),{data:a,width:s,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:d,glyphTop:p,glyphAdvance:h}=i.draw(o);return this.localGlyphs[i.fontWeight][n]={id:n,bitmap:new dc({width:s,height:l},a),metrics:{width:c/2,height:u/2,left:d/2,top:p/2-27,advance:h/2,localGlyph:!0}}}}function _p(e,t,n,r){const o=[],a=e.image,s=a.pixelRatio,l=a.paddedRect.w-2,c=a.paddedRect.h-2,u=e.right-e.left,d=e.bottom-e.top,p=a.stretchX||[[0,l]],h=a.stretchY||[[0,c]],f=(e,t)=>e+t[1]-t[0],m=p.reduce(f,0),g=h.reduce(f,0),y=l-m,v=c-g;let b=0,_=m,w=0,x=g,k=0,C=y,S=0,M=v;if(a.content&&r){const e=a.content;b=wp(p,0,e[0]),w=wp(h,0,e[1]),_=wp(p,e[0],e[2]),x=wp(h,e[1],e[3]),k=e[0]-b,S=e[1]-w,C=e[2]-e[0]-_,M=e[3]-e[1]-x}const T=(r,o,l,c)=>{const p=kp(r.stretch-b,_,u,e.left),h=Cp(r.fixed-k,C,r.stretch,m),f=kp(o.stretch-w,x,d,e.top),y=Cp(o.fixed-S,M,o.stretch,g),v=kp(l.stretch-b,_,u,e.left),T=Cp(l.fixed-k,C,l.stretch,m),E=kp(c.stretch-w,x,d,e.top),P=Cp(c.fixed-S,M,c.stretch,g),I=new i(p,f),O=new i(v,f),L=new i(v,E),R=new i(p,E),j=new i(h/s,y/s),D=new i(T/s,P/s),A=t*Math.PI/180;if(A){const e=Math.sin(A),t=Math.cos(A),n=[t,-e,e,t];I._matMult(n),O._matMult(n),R._matMult(n),L._matMult(n)}const N=r.stretch+r.fixed,F=o.stretch+o.fixed;return{tl:I,tr:O,bl:R,br:L,tex:{x:a.paddedRect.x+1+N,y:a.paddedRect.y+1+F,w:l.stretch+l.fixed-N,h:c.stretch+c.fixed-F},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:j,pixelOffsetBR:D,minFontScaleX:C/s/u,minFontScaleY:M/s/d,isSDF:n}};if(r&&(a.stretchX||a.stretchY)){const e=xp(p,y,m),t=xp(h,v,g);for(let n=0;n<e.length-1;n++){const r=e[n],i=e[n+1];for(let e=0;e<t.length-1;e++)o.push(T(r,t[e],i,t[e+1]))}}else o.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return o}function wp(e,t,n){let r=0;for(const i of e)r+=Math.max(t,Math.min(n,i[1]))-Math.max(t,Math.min(n,i[0]));return r}function xp(e,t,n){const r=[{fixed:-1,stretch:0}];for(const[i,o]of e){const e=r[r.length-1];r.push({fixed:i-e.stretch,stretch:e.stretch}),r.push({fixed:i-e.stretch,stretch:e.stretch+(o-i)})}return r.push({fixed:t+1,stretch:n}),r}function kp(e,t,n,r){return e/t*n+r}function Cp(e,t,n,r){return e-t*n/r}function Sp(e,t,n,r){const i=t+e.positionedLines[r].lineOffset;return 0===r?n+i/2:n+(i+(t+e.positionedLines[r-1].lineOffset))/2}bp.loadGlyphRange=function(e,t,n,r,i){const o=256*t,a=o+255,s=r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",`${o}-${a}`),Ee.Glyphs);Le(s,((e,t)=>{if(e)i(e);else if(t){const e={},n=function(e){return new vd(e).readFields(Fd,{})}(t);for(const t of n.glyphs)e[t.id]=t;i(null,{glyphs:e,ascender:n.ascender,descender:n.descender})}}))},bp.TinySDF=class{constructor(){let{fontSize:e=24,buffer:t=3,radius:n=8,cutoff:r=.25,fontFamily:i="sans-serif",fontWeight:o="normal",fontStyle:a="normal"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.buffer=t,this.cutoff=r,this.radius=n;const s=this.size=e+4*t,l=this._createCanvas(s),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${a} ${o} ${e}px ${i}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:i,actualBoundingBoxRight:o}=this.ctx.measureText(e),a=Math.ceil(n),s=Math.min(this.size-this.buffer,Math.ceil(o-i)),l=Math.min(this.size-this.buffer,a+Math.ceil(r)),c=s+2*this.buffer,u=l+2*this.buffer,d=Math.max(c*u,0),p=new Uint8ClampedArray(d),h={data:p,width:c,height:u,glyphWidth:s,glyphHeight:l,glyphTop:a,glyphLeft:0,glyphAdvance:t};if(0===s||0===l)return h;const{ctx:f,buffer:m,gridInner:g,gridOuter:y}=this;f.clearRect(m,m,s,l),f.fillText(e,m,m+a);const v=f.getImageData(m,m,s,l);y.fill(mp,0,d),g.fill(0,0,d);for(let b=0;b<l;b++)for(let e=0;e<s;e++){const t=v.data[4*(b*s+e)+3]/255;if(0===t)continue;const n=(b+m)*c+e+m;if(1===t)y[n]=0,g[n]=mp;else{const e=.5-t;y[n]=e>0?e*e:0,g[n]=e<0?e*e:0}}gp(y,0,0,c,u,c,this.f,this.v,this.z),gp(g,m,m,s,l,c,this.f,this.v,this.z);for(let b=0;b<d;b++){const e=Math.sqrt(y[b])-Math.sqrt(g[b]);p[b]=Math.round(255-255*(e/this.radius+this.cutoff))}return h}};class Mp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tp;if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=1+(e<<1),o=t[r];const a=r+1;if(a<this.length&&n(t[a],o)<0&&(r=a,o=t[a]),n(o,i)>=0)break;t[e]=o,e=r}t[e]=i}}function Tp(e,t){return e<t?-1:e>t?1:0}function Ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=1/0,o=1/0,a=-1/0,s=-1/0;const l=e[0];for(let i=0;i<l.length;i++){const e=l[i];(!i||e.x<r)&&(r=e.x),(!i||e.y<o)&&(o=e.y),(!i||e.x>a)&&(a=e.x),(!i||e.y>s)&&(s=e.y)}const c=Math.min(a-r,s-o);let u=c/2;const d=new Mp([],Pp);if(0===c)return new i(r,o);for(let i=r;i<a;i+=c)for(let t=o;t<s;t+=c)d.push(new Ip(i+u,t+u,u,e));let p=function(e){let t=0,n=0,r=0;const i=e[0];for(let o=0,a=i.length,s=a-1;o<a;s=o++){const e=i[o],a=i[s],l=e.x*a.y-a.x*e.y;n+=(e.x+a.x)*l,r+=(e.y+a.y)*l,t+=3*l}return new Ip(n/t,r/t,0,e)}(e),h=d.length;for(;d.length;){const r=d.pop();(r.d>p.d||!p.d)&&(p=r,n&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,h)),r.max-p.d<=t||(u=r.h/2,d.push(new Ip(r.p.x-u,r.p.y-u,u,e)),d.push(new Ip(r.p.x+u,r.p.y-u,u,e)),d.push(new Ip(r.p.x-u,r.p.y+u,u,e)),d.push(new Ip(r.p.x+u,r.p.y+u,u,e)),h+=4)}return n&&(console.log(`num probes: ${h}`),console.log(`best distance: ${p.d}`)),p.p}function Pp(e,t){return t.max-e.max}function Ip(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){let n=!1,r=1/0;for(let i=0;i<t.length;i++){const o=t[i];for(let t=0,i=o.length,a=i-1;t<i;a=t++){const i=o[t],s=o[a];i.y>e.y!=s.y>e.y&&e.x<(s.x-i.x)*(e.y-i.y)/(s.y-i.y)+i.x&&(n=!n),r=Math.min(r,nl(e,i,s))}}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}const Op=Number.POSITIVE_INFINITY,Lp=Math.sqrt(2);function Rp(e,t){return t[1]!==Op?function(e,t,n){let r=0,i=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,i]}(e,t[0],t[1]):function(e,t){let n=0,r=0;t<0&&(t=0);const i=t/Lp;switch(e){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function jp(e,t,n,r,i,o,a,s,l,c){e.createArrays(),e.tilePixelRatio=xs/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const u=e.layers[0].layout,d=e.layers[0]._unevaluatedLayout._values,p={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:n}=e.textSizeData;p.compositeTextSizes=[d["text-size"].possiblyEvaluate(new Ro(t),s),d["text-size"].possiblyEvaluate(new Ro(n),s)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:n}=e.iconSizeData;p.compositeIconSizes=[d["icon-size"].possiblyEvaluate(new Ro(t),s),d["icon-size"].possiblyEvaluate(new Ro(n),s)]}p.layoutTextSize=d["text-size"].possiblyEvaluate(new Ro(l+1),s),p.layoutIconSize=d["icon-size"].possiblyEvaluate(new Ro(l+1),s),p.textMaxSize=d["text-size"].possiblyEvaluate(new Ro(18),s);const h="map"===u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),f=u.get("text-size");for(const m of e.features){const o=u.get("text-font").evaluate(m,{},s).join(","),l=f.evaluate(m,{},s),d=p.layoutTextSize.evaluate(m,{},s),g=(p.layoutIconSize.evaluate(m,{},s),{horizontal:{},vertical:void 0}),y=m.text;let v,b=[0,0];if(y){const r=y.toString(),a=u.get("text-letter-spacing").evaluate(m,{},s)*ad,c=u.get("text-line-height").evaluate(m,{},s)*ad,p=fo(r)?a:0,f=u.get("text-anchor").evaluate(m,{},s),v=u.get("text-variable-anchor");if(!v){const e=u.get("text-radial-offset").evaluate(m,{},s);b=e?Rp(f,[e*ad,Op]):u.get("text-offset").evaluate(m,{},s).map((e=>e*ad))}let _=h?"center":u.get("text-justify").evaluate(m,{},s);const w=u.get("symbol-placement"),x="point"===w,k="point"===w?u.get("text-max-width").evaluate(m,{},s)*ad:0,C=a=>{e.allowVerticalPlacement&&ho(r)&&(g.vertical=Gd(y,t,n,i,o,k,c,f,a,p,b,qd.vertical,!0,w,d,l))};if(!h&&v){const e="auto"===_?v.map((e=>Dp(e))):[_];let r=!1;for(let a=0;a<e.length;a++){const s=e[a];if(!g.horizontal[s])if(r)g.horizontal[s]=g.horizontal[0];else{const e=Gd(y,t,n,i,o,k,c,"center",s,p,b,qd.horizontal,!1,w,d,l);e&&(g.horizontal[s]=e,r=1===e.positionedLines.length)}}C("left")}else{if("auto"===_&&(_=Dp(f)),x||u.get("text-writing-mode").indexOf("horizontal")>=0||!ho(r)){const e=Gd(y,t,n,i,o,k,c,f,_,p,b,qd.horizontal,!1,w,d,l);e&&(g.horizontal[_]=e)}C("point"===w?"left":_)}}let _=!1;if(m.icon&&m.icon.name){const t=r[m.icon.name];t&&(v=ip(i[m.icon.name],u.get("icon-offset").evaluate(m,{},s),u.get("icon-anchor").evaluate(m,{},s)),_=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&O("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const w=zp(g.horizontal)||g.vertical;e.iconsInText||(e.iconsInText=!!w&&w.iconsInText),(w||v)&&Ap(e,m,g,v,r,p,d,0,b,_,a,s,c)}o&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray)}function Dp(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ap(e,t,n,r,i,o,a,s,c,u,d,p,h){let f=o.textMaxSize.evaluate(t,{},p);void 0===f&&(f=a);const m=e.layers[0].layout,g=m.get("icon-offset").evaluate(t,{},p),y=zp(n.horizontal)||n.vertical,v="globe"===h.name,b=a/24,_=e.tilePixelRatio*f/24,w=(P=e.overscaling,e.zoom>18&&P>2&&(P>>=1),Math.max(xs/(512*P),1)*m.get("symbol-spacing")),x=m.get("text-padding")*e.tilePixelRatio,k=m.get("icon-padding")*e.tilePixelRatio,C=l(m.get("text-max-angle")),S="map"===m.get("text-rotation-alignment")&&"point"!==m.get("symbol-placement"),M="map"===m.get("icon-rotation-alignment")&&"point"!==m.get("symbol-placement"),T=m.get("symbol-placement"),E=w/2;var P;const I=m.get("icon-text-fit");let L;r&&"none"!==I&&(e.allowVerticalPlacement&&n.vertical&&(L=op(r,n.vertical,I,m.get("icon-text-fit-padding"),g,b)),y&&(r=op(r,y,I,m.get("icon-text-fit-padding"),g,b)));const R=(a,s,l)=>{if(s.x<0||s.x>=xs||s.y<0||s.y>=xs)return;let f=null;if(v){const{x:e,y:t,z:n}=h.projectTilePoint(s.x,s.y,l);f={anchor:new ap(e,t,n,0,void 0),up:h.upVector(l,s.x,s.y)}}!function(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C){const S=e.addToLineVertexArray(t,r);let M,T,E,P,I,L,R,j=0,D=0,A=0,N=0,F=-1,z=-1;const B={};let U=Za("");const $=n?n.anchor:t;let V=0,q=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[V,q]=l.layout.get("text-offset").evaluate(_,{},C).map((e=>e*ad)):(V=l.layout.get("text-radial-offset").evaluate(_,{},C)*ad,q=Op),e.allowVerticalPlacement&&i.vertical){const e=i.vertical;if(f)L=Up(e),s&&(R=Up(s));else{const n=l.layout.get("text-rotate").evaluate(_,{},C)+90;E=Bp(c,$,t,u,d,p,e,h,n,m),s&&(P=Bp(c,$,t,u,d,p,s,y,n))}}if(o){const r=l.layout.get("icon-rotate").evaluate(_,{},C),i="none"!==l.layout.get("icon-text-fit"),a=_p(o,r,x,i),h=s?_p(s,r,x,i):void 0;T=Bp(c,$,t,u,d,p,o,y,r),j=4*a.length;const f=e.iconSizeData;let m=null;"source"===f.kind?(m=[sd*l.layout.get("icon-size").evaluate(_,{},C)],m[0]>Np&&O(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===f.kind&&(m=[sd*w.compositeIconSizes[0].evaluate(_,{},C),sd*w.compositeIconSizes[1].evaluate(_,{},C)],(m[0]>Np||m[1]>Np)&&O(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,a,m,b,v,_,!1,n,t,S.lineStartIndex,S.lineLength,-1,k,C),F=e.icon.placedSymbolArray.length-1,h&&(D=4*h.length,e.addSymbols(e.icon,h,m,b,v,_,qd.vertical,n,t,S.lineStartIndex,S.lineLength,-1,k,C),z=e.icon.placedSymbolArray.length-1)}for(const O in i.horizontal){const r=i.horizontal[O];M||(U=Za(r.text),f?I=Up(r):M=Bp(c,$,t,u,d,p,r,h,l.layout.get("text-rotate").evaluate(_,{},C),m));const o=1===r.positionedLines.length;if(A+=Fp(e,n,t,r,a,l,f,_,m,S,i.vertical?qd.horizontal:qd.horizontalOnly,o?Object.keys(i.horizontal):[O],B,F,w,k,C),o)break}i.vertical&&(N+=Fp(e,n,t,i.vertical,a,l,f,_,m,S,qd.vertical,["vertical"],B,z,w,k,C));let Z=-1;const H=(e,t)=>e?Math.max(e,t):t;Z=H(I,Z),Z=H(L,Z),Z=H(R,Z);const G=Z>-1?1:0;e.glyphOffsetArray.length>=Jh.MAX_GLYPHS&&O("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,_.sortKey),e.symbolInstances.emplaceBack($.x,$.y,$.z,t.x,t.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical>=0?B.vertical:-1,F,z,U,void 0!==M?M:e.collisionBoxArray.length,void 0!==M?M+1:e.collisionBoxArray.length,void 0!==E?E:e.collisionBoxArray.length,void 0!==E?E+1:e.collisionBoxArray.length,void 0!==T?T:e.collisionBoxArray.length,void 0!==T?T+1:e.collisionBoxArray.length,P||e.collisionBoxArray.length,P?P+1:e.collisionBoxArray.length,u,A,N,j,D,G,0,V,q,Z)}(e,s,f,a,n,r,i,L,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,x,S,c,0,k,M,g,t,o,u,d,p)};if("line"===T)for(const l of fp(t.geometry,0,0,xs,xs)){const t=pp(l,w,C,n.vertical||y,r,24,_,e.overscaling,xs);for(const n of t)y&&$p(e,y.text,E,n)||R(l,n,p)}else if("line-center"===T){for(const l of t.geometry)if(l.length>1){const e=dp(l,C,n.vertical||y,r,24,_);e&&R(l,e,p)}}else if("Polygon"===t.type)for(const l of Kc(t.geometry,0)){const e=Ep(l,16);R(l[0],new ap(e.x,e.y,0,0,void 0),p)}else if("LineString"===t.type)for(const l of t.geometry)R(l,new ap(l[0].x,l[0].y,0,0,void 0),p);else if("Point"===t.type)for(const l of t.geometry)for(const e of l)R([e],new ap(e.x,e.y,0,0,void 0),p)}const Np=32640;function Fp(e,t,n,r,o,a,s,l,c,u,d,p,h,f,m,g,y){const v=function(e,t,n,r,o,a,s,l){const c=[];if(0===t.positionedLines.length)return c;const u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,d=function(e){const t=e[0],n=e[1],r=t*n;return r>0?[t,-n]:r<0?[-t,n]:0===t?[n,t]:[n,-t]}(n);let p=Math.abs(t.top-t.bottom);for(const i of t.positionedLines)p-=i.lineOffset;const h=t.positionedLines.length,f=p/h;let m=t.top-n[1];for(let g=0;g<h;++g){const e=t.positionedLines[g];m=Sp(t,f,m,g);for(const r of e.positionedGlyphs){if(!r.rect)continue;const e=r.rect||{};let a=4,p=!0,h=1,f=0;if(r.imageName){const e=s[r.imageName];if(!e)continue;if(e.sdf){O("SDF images are not supported in formatted text and will be ignored.");continue}p=!1,h=e.pixelRatio,a=1/h}const g=(o||l)&&r.vertical,y=r.metrics.advance*r.scale/2,v=r.metrics,b=r.rect;if(null===b)continue;l&&t.verticalizable&&(f=r.imageName?y-r.metrics.width*r.scale/2:0);const _=o?[r.x+y,r.y]:[0,0];let w=[0,0],x=[0,0],k=!1;o||(g?(x=[r.x+y+d[0],r.y+d[1]-f],k=!0):w=[r.x+y+n[0],r.y+n[1]-f]);const C=b.w*r.scale/(h*(r.localGlyph?2:1)),S=b.h*r.scale/(h*(r.localGlyph?2:1));let M,T,E,P;if(g){const e=r.y-m,t=new i(-y,y-e),n=-Math.PI/2,o=new i(...x);M=new i(-y+w[0],w[1]),M._rotateAround(n,t)._add(o),M.x+=-e+y,M.y-=(v.left-a)*r.scale;const s=r.imageName?v.advance*r.scale:ad*r.scale,l=String.fromCharCode(r.glyph);fd(l)?M.x+=(1-a)*r.scale:md(l)?M.x+=s-v.height*r.scale+(-a-1)*r.scale:M.x+=r.imageName||v.width+2*a===b.w&&v.height+2*a===b.h?(s-S)/2:(s-(v.height+2*a)*r.scale)/2,T=new i(M.x,M.y-C),E=new i(M.x+S,M.y),P=new i(M.x+S,M.y-C)}else{const e=(v.left-a)*r.scale-y+w[0],t=(-v.top-a)*r.scale+w[1],n=e+C,o=t+S;M=new i(e,t),T=new i(n,t),E=new i(e,o),P=new i(n,o)}if(u){let e;e=o?new i(0,0):k?new i(d[0],d[1]):new i(n[0],n[1]),M._rotateAround(u,e),T._rotateAround(u,e),E._rotateAround(u,e),P._rotateAround(u,e)}const I=new i(0,0),L=new i(0,0);c.push({tl:M,tr:T,bl:E,br:P,tex:e,writingMode:t.writingMode,glyphOffset:_,sectionIndex:r.sectionIndex,isSDF:p,pixelOffsetTL:I,pixelOffsetBR:L,minFontScaleX:0,minFontScaleY:0})}}return c}(0,r,c,a,s,l,o,e.allowVerticalPlacement),b=e.textSizeData;let _=null;"source"===b.kind?(_=[sd*a.layout.get("text-size").evaluate(l,{},y)],_[0]>Np&&O(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===b.kind&&(_=[sd*m.compositeTextSizes[0].evaluate(l,{},y),sd*m.compositeTextSizes[1].evaluate(l,{},y)],(_[0]>Np||_[1]>Np)&&O(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,v,_,c,s,l,d,t,n,u.lineStartIndex,u.lineLength,f,g,y);for(const i of p)h[i]=e.text.placedSymbolArray.length-1;return 4*v.length}function zp(e){for(const t in e)return e[t];return null}function Bp(e,t,n,r,o,a,s,c,u,d){let p=s.top,h=s.bottom,f=s.left,m=s.right;const g=s.collisionPadding;if(g&&(f-=g[0],p-=g[1],m+=g[2],h+=g[3]),u){const e=new i(f,p),t=new i(m,p),n=new i(f,h),r=new i(m,h),o=l(u);let a=new i(0,0);d&&(a=new i(d[0],d[1])),e._rotateAround(o,a),t._rotateAround(o,a),n._rotateAround(o,a),r._rotateAround(o,a),f=Math.min(e.x,t.x,n.x,r.x),m=Math.max(e.x,t.x,n.x,r.x),p=Math.min(e.y,t.y,n.y,r.y),h=Math.max(e.y,t.y,n.y,r.y)}return e.emplaceBack(t.x,t.y,t.z,n.x,n.y,f,p,m,h,c,r,o,a),e.length-1}function Up(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function $p(e,t,n,r){const i=e.compareText;if(t in i){const e=i[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])<n)return!0}else i[t]=[];return i[t].push(r),!1}const Vp=Jo([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:qp}=Vp,Zp=Jo([{name:"a_pos_3",components:3,type:"Int16"}]);var Hp=Jo([{name:"a_pos",type:"Int16",components:2}]);const Gp=xs/Math.PI/2,Wp=2*Is(1,0)*Gp*Math.PI,Yp=[64,32,16],Kp=-Gp,Xp=Gp,Jp=[new tc([Kp,Kp,Kp],[Xp,Xp,Xp]),new tc([Kp,Kp,Kp],[0,0,Xp]),new tc([0,Kp,Kp],[Xp,0,Xp]),new tc([Kp,0,Kp],[0,Xp,Xp]),new tc([0,0,Kp],[Xp,Xp,Xp])];function Qp(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=Dl([],e._camera.position,e.worldSize),o=[t,n,1,1];Gl(o,o,e.pixelMatrixInverse),Hl(o,o,1/o[3]);const a=Nl([],Vl([],o,i)),s=e.globeMatrix,l=[s[12],s[13],s[14]],u=Vl([],l,i),d=El(u),p=Nl([],u),h=e.worldSize/(2*Math.PI),m=Fl(p,a),g=Math.asin(h/d);if(g<Math.acos(m)){if(!r)return null;const e=[],t=[];Dl(e,a,d/m),Nl(t,Vl(t,e,u)),Nl(a,Il(a,u,Dl(a,t,Math.tan(g)*d)))}const y=[];new Jl(i,a).closestPointOnSphere(l,h,y);const v=Nl([],z(s,0)),b=Nl([],z(s,1)),_=Nl([],z(s,2)),w=Fl(v,y),x=Fl(b,y),k=Fl(_,y),C=c(Math.asin(-x/h));let S=c(Math.atan2(w,k));S=e.center.lng+function(e,t){const n=(t-e+180)%360-180;return n<-180?n+360:n}(e.center.lng,S);const M=Es(S),T=f(Ps(C),0,1);return new As(M,T)}class eh{constructor(e,t,n){this.a=Vl([],e,n),this.b=Vl([],t,n),this.center=n;const r=Nl([],this.a),i=Nl([],this.b);this.angle=Math.acos(Fl(r,i))}}function th(e,t){if(0===e.angle)return null;let n;return n=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),n<0||n>1?null:function(e,t,n,r){const i=Math.sin(n);return e*(Math.sin((1-r)*n)/i)+t*(Math.sin(r*n)/i)}(e.a[t],e.b[t],e.angle,f(n,0,1))+e.center[t]}function nh(e){if(e.z<=1)return Jp[e.z+2*e.y+e.x];const t=sh(ah(e));return tc.fromPoints(t)}function rh(e,t){const n=gh(t.zoom);if(0===n)return nh(e);const r=ah(e),i=sh(r),o=Es(r.getWest())*t.worldSize,a=Es(r.getEast())*t.worldSize,s=Ps(r.getNorth())*t.worldSize,l=Ps(r.getSouth())*t.worldSize,c=[o,s,0],u=[a,s,0],d=[o,l,0],p=[a,l,0],h=yl([],t.globeMatrix);return Bl(c,c,h),Bl(u,u,h),Bl(d,d,h),Bl(p,p,h),i[0]=_n(i[0],d,n),i[1]=_n(i[1],p,n),i[2]=_n(i[2],u,n),i[3]=_n(i[3],c,n),tc.fromPoints(i)}function ih(e,t,n,r,i){for(const o of n)Bl(o,o,r),Dl(o,o,i),Rl(e,e,o),jl(t,t,o)}function oh(e,t,n){const r=t/e.worldSize,i=Number.MAX_VALUE,o=[-i,-i,-i],a=[i,i,i],s=e.globeMatrix;if(n.z<=1)return ih(a,o,nh(n).getCorners(),s,r),new tc(a,o);const c=ah(n),u=sh(c);if(ih(a,o,u,s,r),c.contains(e.center)){o[2]=0;const t=e.point,n=[t.x*r,t.y*r,0];return Rl(a,a,n),jl(o,o,n),new tc(a,o)}const d=[s[12]*r,s[13]*r,s[14]*r],p=c.getCenter(),h=f(e.center.lat,-85.051129,js),m=f(p.lat,-85.051129,js),g=Es(e.center.lng),y=Ps(h);let v=g-Es(p.lng);const b=y-Ps(m);v>.5?v-=1:v<-.5&&(v+=1);let _=0;Math.abs(v)>Math.abs(b)?_=v>=0?1:3:(_=b>=0?0:2,Al(d,d,[s[4]*r,s[5]*r,s[6]*r],-Math.sin(l(b>=0?c.getSouth():c.getNorth()))*Gp));const w=u[_],x=u[(_+1)%4],k=new eh(w,x,d),C=[th(k,0)||w[0],th(k,1)||w[1],th(k,2)||w[2]];return a[2]=Math.min(w[2],x[2]),Rl(a,a,C),jl(o,o,C),new tc(a,o)}function ah(e){let{x:t,y:n,z:r}=e;const i=1/(1<<r),o=new Ss(Os(t*i),Ls((n+1)*i)),a=new Ss(Os((t+1)*i),Ls(n*i));return new ks(o,a)}function sh(e){const t=l(e.getNorth()),n=l(e.getSouth()),r=Math.cos(t),i=Math.cos(n),o=Math.sin(t),a=Math.sin(n),s=e.getWest(),c=e.getEast();return[lh(i,a,s),lh(i,a,c),lh(r,o,c),lh(r,o,s)]}function lh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Gp;return n=l(n),[e*Math.sin(n)*r,-t*r,e*Math.cos(n)*r]}function ch(e,t,n){return lh(Math.cos(l(e)),Math.sin(l(e)),t,n)}function uh(e,t,n,r){const i=1<<n.z,o=(e/xs+n.x)/i;return ch(Ls((t/xs+n.y)/i),Os(o),r)}function dh(e){let{min:t,max:n}=e;return 16383/Math.max(n[0]-t[0],n[1]-t[1],n[2]-t[2])}const ph=new Float64Array(16);function hh(e){const t=dh(e),n=kl(ph,[t,t,t]);return bl(n,n,((r=[])[0]=-(i=e.min)[0],r[1]=-i[1],r[2]=-i[2],r));var r,i}function fh(e){const t=(r=e.min,(n=ph)[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=r[0],n[13]=r[1],n[14]=r[2],n[15]=1,n);var n,r;const i=1/dh(e);return _l(t,t,[i,i,i])}function mh(e,t,n,r,i){const o=function(e){const t=xs/(2*Math.PI);return e/(2*Math.PI)/t}(n),a=[e,t,-n/(2*Math.PI)],s=gl(new Float64Array(16));return bl(s,s,a),_l(s,s,[o,o,o]),wl(s,s,l(-i)),xl(s,s,l(-r)),s}function gh(e){return m(5,6,e)}function yh(e,t){const n=ch(t.lat,t.lng);return o=(r=Ol([],function(e){const t=ch(e._center.lat,e._center.lng);let n=zl([],Pl(0,1,0),t);const r=Cl([],-e.angle,t);n=Bl(n,n,r),Cl(r,-e._pitch,n);const i=Nl([],t);return Dl(i,i,e.cameraToCenterDistance/e.pixelsPerMeter*Wp),Bl(i,i,r),Il([],t,i)}(e),n))[0],a=r[1],s=r[2],l=(i=n)[0],c=i[1],u=i[2],p=(d=Math.sqrt(o*o+a*a+s*s)*Math.sqrt(l*l+c*c+u*u))&&Fl(r,i)/d,Math.acos(Math.min(Math.max(p,-1),1));var r,i,o,a,s,l,c,u,d,p}const vh=l(85),bh=Math.cos(vh),_h=Math.sin(vh);function wh(e,t){const n=e.fovAboveCenter,r=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,i=(e._camera.position[2]*e.worldSize-r)/Math.cos(e._pitch),o=Math.sin(n)*i/Math.sin(Math.max(Math.PI/2-e._pitch-n,.01)),a=Math.sin(e._pitch)*o+i;return Math.min(1.01*a,i*(1/e._horizonShift))}function xh(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const n=Math.pow(2,-e.z),r=e.x*n,i=(e.x+1)*n,o=e.y*n,a=(e.y+1)*n,s=Os(r),l=Os(i),c=Ls(o),u=Ls(a),d=t.project(s,c),p=t.project(l,c),h=t.project(l,u),f=t.project(s,u);let m=Math.min(d.x,p.x,h.x,f.x),g=Math.min(d.y,p.y,h.y,f.y),y=Math.max(d.x,p.x,h.x,f.x),v=Math.max(d.y,p.y,h.y,f.y);const b=n/16;function _(e,n,r,i,o,a){const s=(r+o)/2,l=(i+a)/2,c=t.project(Os(s),Ls(l)),u=Math.max(0,m-c.x,g-c.y,c.x-y,c.y-v);m=Math.min(m,c.x),y=Math.max(y,c.x),g=Math.min(g,c.y),v=Math.max(v,c.y),u>b&&(_(e,c,r,i,s,l),_(c,n,s,l,o,a))}_(d,p,r,o,i,o),_(p,h,i,o,i,a),_(h,f,i,a,r,a),_(f,d,r,a,r,o),m-=b,g-=b,y+=b,v+=b;const w=1/Math.max(y-m,v-g);return{scale:w,x:m*w,y:g*w,x2:y*w,y2:v*w,projection:t}}const kh=gl(new Float32Array(16));class Ch{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new Ss(0,0)}projectTilePoint(e,t,n){return{x:e,y:t,z:0}}locationPoint(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e._coordinatePoint(e.locationCoordinate(t),n)}pixelsPerMeter(e,t){return Is(1,e)*t}pixelSpaceConversion(e,t,n){return 1}farthestPixelDistance(e){return wh(e,e.pixelsPerMeter)}pointCoordinate(e,t,n,r){const o=e.horizonLineFromTop(!1),a=new i(t,Math.max(o,n));return e.rayIntersectionCoordinate(e.pointRayIntersection(a,r))}pointCoordinate3D(e,t,n){const r=new i(t,n);if(e.elevation)return e.elevation.pointCoordinate(r);{const t=this.pointCoordinate(e,r.x,r.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation)return!this.pointCoordinate3D(e,t.x,t.y);const n=e.horizonLineFromTop();return t.y<n}createInversionMatrix(e,t){return kh}createTileMatrix(e,t,n){let r,i,o;const a=n.canonical,s=gl(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=xh(a,this);r=1,i=l.x+n.wrap*l.scale,o=l.y,_l(s,s,[r/l.scale,r/l.scale,e.pixelsPerMeter/t])}else r=t/e.zoomScale(a.z),i=(a.x+Math.pow(2,a.z)*n.wrap)*r,o=a.y*r;return bl(s,s,[i,o,0]),_l(s,s,[r/xs,r/xs,1]),s}upVector(e,t,n){return[0,0,1]}upVectorScale(e,t,n){return{metersToTile:1}}}class Sh extends Ch{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,n]=this.parallels=e.parallels||[29.5,45.5],r=Math.sin(l(t));this.n=(r+Math.sin(l(n)))/2,this.c=1+r*(2*this.n-r),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:n,c:r,r0:i}=this,o=l(e-this.center[0]),a=l(t),s=Math.sqrt(r-2*n*Math.sin(a))/n;return{x:s*Math.sin(o*n),y:s*Math.cos(o*n)-i,z:0}}unproject(e,t){const{n:n,c:r,r0:i}=this,o=i+t;let a=Math.atan2(e,Math.abs(o))*Math.sign(o);o*n<0&&(a-=Math.PI*Math.sign(e)*Math.sign(o));const s=l(this.center[0])*n;a=g(a,-Math.PI-s,Math.PI-s);const u=c(a/n)+this.center[0],d=Math.asin(f((r-(e*e+o*o)*n*n)/(2*n),-1,1)),p=f(c(d),-85.051129,js);return new Ss(u,p)}}const Mh=1.340264,Th=-.081106,Eh=893e-6,Ph=.003796,Ih=Math.sqrt(3)/2;class Oh extends Ch{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const n=Math.asin(Ih*Math.sin(t)),r=n*n,i=r*r*r;return{x:.5*(e*Math.cos(n)/(Ih*(Mh+3*Th*r+i*(7*Eh+9*Ph*r)))/Math.PI+.5),y:1-.5*(n*(Mh+Th*r+i*(Eh+Ph*r))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,r=n*n,i=r*r*r;for(let c,u,d,p=0;p<12&&(u=n*(Mh+Th*r+i*(Eh+Ph*r))-t,d=Mh+3*Th*r+i*(7*Eh+9*Ph*r),c=u/d,n=f(n-c,-Math.PI/3,Math.PI/3),r=n*n,i=r*r*r,!(Math.abs(c)<1e-12));++p);const o=Ih*e*(Mh+3*Th*r+i*(7*Eh+9*Ph*r))/Math.cos(n),a=Math.asin(Math.sin(n)/Ih),s=f(180*o/Math.PI,-180,180),l=f(180*a/Math.PI,-85.051129,js);return new Ss(s,l)}}class Lh extends Ch{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const n=360*(e-.5),r=f(360*(.5-t),-85.051129,js);return new Ss(n,r)}}const Rh=Math.PI/2;function jh(e){return Math.tan((Rh+e)/2)}class Dh extends Ch{constructor(e){super(e),this.center=e.center||[0,30];const[t,n]=this.parallels=e.parallels||[30,30],r=l(t),i=l(n),o=Math.cos(r);this.n=r===i?Math.sin(r):Math.log(o/Math.cos(i))/Math.log(jh(i)/jh(r)),this.f=o*Math.pow(jh(r),this.n)/this.n}project(e,t){t=l(t),e=l(e-this.center[0]);const n=1e-6,{n:r,f:i}=this;i>0?t<-Rh+n&&(t=-Rh+n):t>Rh-n&&(t=Rh-n);const o=i/Math.pow(jh(t),r),a=o*Math.sin(r*e),s=i-o*Math.cos(r*e);return{x:.5*(a/Math.PI+.5),y:1-.5*(s/Math.PI+.5),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,t=(2*(1-t)-.5)*Math.PI;const{n:n,f:r}=this,i=r-t,o=Math.sign(i),a=Math.sign(n)*Math.sqrt(e*e+i*i);let s=Math.atan2(e,Math.abs(i))*o;i*n<0&&(s-=Math.PI*Math.sign(e)*o);const l=f(c(s/n)+this.center[0],-180,180),u=f(c(2*Math.atan(Math.pow(r/a,1/n))-Rh),-85.051129,js);return new Ss(l,u)}}class Ah extends Ch{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:Es(e),y:Ps(t),z:0}}unproject(e,t){const n=Os(e),r=Ls(t);return new Ss(n,r)}}const Nh=l(js);class Fh extends Ch{project(e,t){const n=(t=l(t))*t,r=n*n;return{x:.5*((e=l(e))*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,r=25,i=0,o=n*n;do{o=n*n;const e=o*o;i=(n*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),n=f(n-i,-Nh,Nh)}while(Math.abs(i)>1e-6&&--r>0);o=n*n;const a=f(c(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),s=c(n);return new Ss(a,s)}}const zh=l(js);class Bh extends Ch{project(e,t){t=l(t),e=l(e);const n=Math.cos(t),r=2/Math.PI,i=Math.acos(n*Math.cos(e/2)),o=Math.sin(i)/i,a=.5*(e*r+2*n*Math.sin(e/2)/o)||0,s=.5*(t+Math.sin(t)/o)||0;return{x:.5*(a/Math.PI+.5),y:1-.5*(s/Math.PI+1),z:0}}unproject(e,t){let n=e=(2*e-.5)*Math.PI,r=t=(2*(1-t)-1)*Math.PI,i=25;const o=1e-6;let a=0,s=0;do{const i=Math.cos(r),o=Math.sin(r),l=2*o*i,c=o*o,u=i*i,d=Math.cos(n/2),p=Math.sin(n/2),h=2*d*p,m=p*p,g=1-u*d*d,y=g?1/g:0,v=g?Math.acos(i*d)*Math.sqrt(1/g):0,b=.5*(2*v*i*p+2*n/Math.PI)-e,_=.5*(v*o+r)-t,w=.5*y*(u*m+v*i*d*c)+1/Math.PI,x=y*(h*l/4-v*o*p),k=.125*y*(l*p-v*o*u*h),C=.5*y*(c*d+v*m*i)+.5,S=x*k-C*w;a=(_*x-b*C)/S,s=(b*k-_*w)/S,n=f(n-a,-Math.PI,Math.PI),r=f(r-s,-zh,zh)}while((Math.abs(a)>o||Math.abs(s)>o)&&--i>0);return new Ss(c(n),c(r))}}class Uh extends Ch{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(l(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:n,cosPhi:r}=this;return{x:l(e)*r*n+.5,y:-Math.sin(l(t))/r*n+.5,z:0}}unproject(e,t){const{scale:n,cosPhi:r}=this,i=-(t-.5)/n,o=f(c((e-.5)/n)/r,-180,180),a=Math.asin(f(i*r,-1,1)),s=f(c(a),-85.051129,js);return new Ss(o,s)}}class $h extends Ah{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug","custom"],this.range=[3,5]}projectTilePoint(e,t,n){const r=uh(e,t,n);return Bl(r,r,hh(nh(n))),{x:r[0],y:r[1],z:r[2]}}locationPoint(e,t){const n=ch(t.lat,t.lng),r=Nl([],n),o=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude;Al(n,n,r,Is(1,0)*xs*o);const a=gl(new Float64Array(16));return vl(a,e.pixelMatrix,e.globeMatrix),Bl(n,n,a),new i(n[0],n[1])}pixelsPerMeter(e,t){return Is(1,0)*t}pixelSpaceConversion(e,t,n){const r=bn(Is(1,45)*t,Is(1,e)*t,n);return this.pixelsPerMeter(e,t)/r}createTileMatrix(e,t,n){const r=fh(nh(n.canonical));return vl(new Float64Array(16),e.globeMatrix,r)}createInversionMatrix(e,t){const{center:n}=e,r=hh(nh(t));return xl(r,r,l(n.lng)),wl(r,r,l(n.lat)),_l(r,r,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(r)}pointCoordinate(e,t,n,r){return Qp(e,t,n,!0)||new As(0,0)}pointCoordinate3D(e,t,n){const r=this.pointCoordinate(e,t,n,0);return[r.x,r.y,r.z]}isPointAboveHorizon(e,t){return!Qp(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const n=e.cameraToCenterDistance,r=e._centerAltitude*t,i=e._camera,o=e._camera.forward(),a=Il([],Dl([],o,-n),[0,0,r]),s=e.worldSize/(2*Math.PI),l=[0,0,-s],c=e.width/e.height,u=Math.tan(e.fovAboveCenter),d=Dl([],i.up(),u),p=Dl([],i.right(),u*c),h=Nl([],Il([],Il([],o,d),p)),f=[];let m;if(new Jl(a,h).closestPointOnSphere(l,s,f)){const t=Il([],f,l),n=Vl([],t,a);m=Math.cos(e.fovAboveCenter)*El(n)}else{const e=Vl([],a,l),t=Vl([],l,a);Nl(t,t);const n=El(e)-s;m=Math.sqrt(n*(n+2*s));const r=Math.acos(m/(s+n))-Math.acos(Fl(o,t));m*=Math.cos(r)}return 1.01*m}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),n=gh(e.zoom);if(n>0){const r=wh(e,Is(1,e.center.lat)*e.worldSize),i=e.worldSize/(2*Math.PI),o=Math.max(e.width,e.height)/e.worldSize*Math.PI;return bn(t,r+i*(1-Math.cos(o)),Math.pow(n,10))}return t}upVector(e,t,n){return uh(t,n,e,1)}upVectorScale(e){return{metersToTile:Wp*dh(nh(e))}}}function Vh(e){const t=e.parallels,n=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new Ah(e);case"equirectangular":return new Lh(e);case"naturalEarth":return new Fh(e);case"equalEarth":return new Oh(e);case"winkelTripel":return new Bh(e);case"albers":return n?new Uh(e):new Sh(e);case"lambertConformalConic":return n?new Uh(e):new Dh(e);case"globe":return new $h(e)}throw new Error(`Invalid projection name: ${e.name}`)}const qh=mu.VectorTileFeature.types,Zh=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Hh(e,t,n,r,i,o,a,s,l,c,u,d,p){const h=s?Math.min(Np,Math.round(s[0])):0,f=s?Math.min(Np,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*i),o,a,(h<<1)+(l?1:0),f,16*c,16*u,256*d,256*p)}function Gh(e,t,n,r,i,o,a){e.emplaceBack(t,n,r,i,o,a)}function Wh(e,t,n,r,i){e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i)}function Yh(e){for(const t of e.sections)if(_o(t.text))return!0;return!1}class Kh{constructor(e){this.layoutVertexArray=new la,this.indexArray=new ga,this.programConfigurations=e,this.segments=new ws,this.dynamicLayoutVertexArray=new ia,this.opacityVertexArray=new ua,this.placedSymbolArray=new Ia,this.globeExtVertexArray=new ca}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Qu.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,td.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Zh,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,ed.members,!0)),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}Ri(Kh,"SymbolBuffers");class Xh{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new ws,this.collisionVertexArray=new fa,this.collisionVertexArrayExt=new ma}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,nd.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,rd.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Ri(Xh,"CollisionBuffers");class Jh{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=gl([]),this.placementViewportMatrix=gl([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ld(this.zoom,t["text-size"]),this.iconSizeData=ld(this.zoom,t["icon-size"]);const n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=n.get("text-writing-mode").map((e=>qd[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new Kh(new ds(this.layers,this.zoom,(e=>/^text/.test(e)))),this.icon=new Kh(new ds(this.layers,this.zoom,(e=>/^icon/.test(e)))),this.glyphOffsetArray=new Ra,this.lineVertexArray=new ja,this.symbolInstances=new La}calculateGlyphDependencies(e,t,n,r,i){for(let o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,r&&i){const n=hd[e.charAt(o)];n&&(t[n.charCodeAt(0)]=!0)}}populate(e,t,n,r){const i=this.layers[0],o=i.layout,a="globe"===this.projection.name,s=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),u=("constant"!==l.value.kind||l.value.value instanceof wt&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==s.value.kind||s.value.value.length>0),d="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,p=o.get("symbol-sort-key");if(this.features=[],!u&&!d)return;const h=t.iconDependencies,f=t.glyphDependencies,m=t.availableImages,g=new Ro(this.zoom);for(const{feature:y,id:v,index:b,sourceLayerIndex:_}of e){const e=i._featureFilter.needGeometry,t=Zs(y,e);if(!i._featureFilter.filter(g,t,n))continue;if(e||(t.geometry=qs(y,n,r)),a&&1!==y.type&&n.z<=5){const e=t.geometry,r=.98078528056;for(let t=0;t<e.length;t++)e[t]=Bs(e[t],(e=>e),((e,t)=>Fl(uh(e.x,e.y,n,1),uh(t.x,t.y,n,1))<r))}let l,c;if(u){const e=i.getValueAndResolveTokens("text-field",t,n,m),r=wt.factory(e);Yh(r)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Io()||this.hasRTLText&&Lo.isParsed())&&(l=pd(r,i,t))}if(d){const e=i.getValueAndResolveTokens("icon-image",t,n,m);c=e instanceof xt?e:xt.fromString(e)}if(!l&&!c)continue;const w=this.sortFeaturesByKey?p.evaluate(t,{},n):void 0;if(this.features.push({id:v,text:l,icon:c,index:b,sourceLayerIndex:_,geometry:t.geometry,properties:y.properties,type:qh[y.type],sortKey:w}),c&&(h[c.name]=!0),l){const e=s.evaluate(t,{},n).join(","),r="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(qd.vertical)>=0;for(const t of l.sections)if(t.image)h[t.image.name]=!0;else{const n=ho(l.toString()),i=t.fontStack||e,o=f[i]=f[i]||{};this.calculateGlyphDependencies(t.text,o,r,this.allowVerticalPlacement,n)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},n={},r=[];let i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){const o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(e,n,i){const o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function l(e,t,n){const r=n?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;c<e.length;c++){const u=e[c],d=u.geometry,p=u.text?u.text.toString():null;if(!p){o(c);continue}const h=l(p,d),f=l(p,d,!0);if(h in n&&f in t&&n[h]!==t[f]){const e=s(h,f,d),i=a(h,f,r[e].geometry);delete t[h],delete n[f],n[l(p,r[i].geometry,!0)]=i,r[e].geometry=null}else h in n?a(h,f,d):f in t?s(h,f,d):(o(c),t[h]=i-1,n[f]=i-1)}return r.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>e.sortKey-t.sortKey))}update(e,t,n,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n,r),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n,r))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Vh(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length,r=e.segment;if(void 0!==r){let n=e.dist(t[r+1]),i=e.dist(t[r]);const o={};for(let e=r+1;e<t.length;e++)o[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:n},e<t.length-1&&(n+=t[e+1].dist(t[e]));for(let e=r||0;e>=0;e--)o[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:i},e>0&&(i+=t[e-1].dist(t[e]));for(let e=0;e<t.length;e++){const t=o[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,r,i,o,a,s,l,c,u,d,p,h){const f=e.indexArray,m=e.layoutVertexArray,g=e.globeExtVertexArray,y=e.segments.prepareSegment(4*t.length,m,f,this.canOverlap?o.sortKey:void 0),v=this.glyphOffsetArray.length,b=y.vertexLength,_=this.allowVerticalPlacement&&a===qd.vertical?Math.PI/2:0,w=o.text&&o.text.sections;for(let k=0;k<t.length;k++){const{tl:r,tr:i,bl:a,br:c,tex:u,pixelOffsetTL:d,pixelOffsetBR:v,minFontScaleX:b,minFontScaleY:x,glyphOffset:C,isSDF:S,sectionIndex:M}=t[k],T=y.vertexLength,E=C[1];if(Hh(m,l.x,l.y,r.x,E+r.y,u.x,u.y,n,S,d.x,d.y,b,x),Hh(m,l.x,l.y,i.x,E+i.y,u.x+u.w,u.y,n,S,v.x,d.y,b,x),Hh(m,l.x,l.y,a.x,E+a.y,u.x,u.y+u.h,n,S,d.x,v.y,b,x),Hh(m,l.x,l.y,c.x,E+c.y,u.x+u.w,u.y+u.h,n,S,v.x,v.y,b,x),s){const t=s.anchor,n=s.up;Gh(g,t.x,t.y,t.z,n[0],n[1],n[2]),Gh(g,t.x,t.y,t.z,n[0],n[1],n[2]),Gh(g,t.x,t.y,t.z,n[0],n[1],n[2]),Gh(g,t.x,t.y,t.z,n[0],n[1],n[2]),Wh(e.dynamicLayoutVertexArray,t.x,t.y,t.z,_)}else Wh(e.dynamicLayoutVertexArray,l.x,l.y,l.z,_);f.emplaceBack(T,T+1,T+2),f.emplaceBack(T+1,T+2,T+3),y.vertexLength+=4,y.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),k!==t.length-1&&M===t[k+1].sectionIndex||e.programConfigurations.populatePaintArrays(m.length,o,o.index,{},p,h,w&&w[M])}const x=s?s.anchor:l;e.placedSymbolArray.emplaceBack(x.x,x.y,x.z,l.x,l.y,v,this.glyphOffsetArray.length-v,b,c,u,l.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,d,0)}_commitLayoutVertex(e,t,n,r,i,o,a){e.emplaceBack(t,n,r,i,o,Math.round(a.x),Math.round(a.y))}_addCollisionDebugVertices(e,t,n,r,o,a,s){const l=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),c=l.vertexLength,u=s.tileAnchorX,d=s.tileAnchorY;for(let i=0;i<4;i++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),n.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(n.layoutVertexArray,r,o,a,u,d,new i(e.x1,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,o,a,u,d,new i(e.x2,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,o,a,u,d,new i(e.x2,e.y2)),this._commitLayoutVertex(n.layoutVertexArray,r,o,a,u,d,new i(e.x1,e.y2)),l.vertexLength+=4;const p=n.indexArray;p.emplaceBack(c,c+1),p.emplaceBack(c+1,c+2),p.emplaceBack(c+2,c+3),p.emplaceBack(c+3,c),l.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,n,r,i,o){for(let a=r;a<i;a++){const r=n.get(a),i=this.getSymbolInstanceTextSize(e,o,t,a);this._addCollisionDebugVertices(r,i,this.textCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(e,t,n,r,i,o){for(let a=r;a<i;a++){const r=n.get(a),i=this.getSymbolInstanceIconSize(e,t,a);this._addCollisionDebugVertices(r,i,this.iconCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Xh(pa,id.members,xa),this.iconCollisionBox=new Xh(pa,id.members,xa);const n=ud(this.iconSizeData,e),r=ud(this.textSizeData,e);for(let i=0;i<this.symbolInstances.length;i++){const o=this.symbolInstances.get(i);this._addTextDebugCollisionBoxes(r,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._addTextDebugCollisionBoxes(r,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o)}}getSymbolInstanceTextSize(e,t,n,r){const i=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:r),o=cd(this.textSizeData,e,i)/ad;return this.tilePixelRatio*o}getSymbolInstanceIconSize(e,t,n){const r=this.icon.placedSymbolArray.get(n),i=cd(this.iconSizeData,e,r);return this.tilePixelRatio*i}_commitDebugCollisionVertexUpdate(e,t,n){e.emplaceBack(t,-n,-n),e.emplaceBack(t,n,-n),e.emplaceBack(t,n,n),e.emplaceBack(t,-n,n)}_updateTextDebugCollisionBoxes(e,t,n,r,i,o){for(let a=r;a<i;a++){const r=n.get(a),i=this.getSymbolInstanceTextSize(e,o,t,a);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,i,r.padding)}}_updateIconDebugCollisionBoxes(e,t,n,r,i){for(let o=r;o<i;o++){const r=n.get(o),i=this.getSymbolInstanceIconSize(e,t,o);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,i,r.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=ud(this.iconSizeData,e),r=ud(this.textSizeData,e);for(let i=0;i<this.symbolInstances.length;i++){const o=this.symbolInstances.get(i);this._updateTextDebugCollisionBoxes(r,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._updateTextDebugCollisionBoxes(r,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._updateIconDebugCollisionBoxes(n,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(n,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,n,r,i,o,a,s,l){const c={};for(let u=t;u<n;u++){const t=e.get(u);c.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},c.textFeatureIndex=t.featureIndex;break}for(let u=r;u<i;u++){const t=e.get(u);c.verticalTextBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},c.verticalTextFeatureIndex=t.featureIndex;break}for(let u=o;u<a;u++){const t=e.get(u);c.iconBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},c.iconFeatureIndex=t.featureIndex;break}for(let u=s;u<l;u++){const t=e.get(u);c.verticalIconBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},c.verticalIconFeatureIndex=t.featureIndex;break}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs;for(let i=n.vertexStartIndex;i<r;i+=4)e.indexArray.emplaceBack(i,i+1,i+2),e.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),n=Math.cos(e),r=[],i=[],o=[];for(let a=0;a<this.symbolInstances.length;++a){o.push(a);const e=this.symbolInstances.get(a);r.push(0|Math.round(t*e.tileAnchorX+n*e.tileAnchorY)),i.push(e.featureIndex)}return o.sort(((e,t)=>r[e]-r[t]||i[t]-i[e])),o}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach(((e,t,n)=>{e>=0&&n.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)})),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Ri(Jh,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Jh.MAX_GLYPHS=65535,Jh.addDynamicAttributes=Wh;const Qh=new Go({"symbol-placement":new $o(Ze.layout_symbol["symbol-placement"]),"symbol-spacing":new $o(Ze.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new $o(Ze.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vo(Ze.layout_symbol["symbol-sort-key"]),"symbol-z-order":new $o(Ze.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new $o(Ze.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new $o(Ze.layout_symbol["icon-ignore-placement"]),"icon-optional":new $o(Ze.layout_symbol["icon-optional"]),"icon-rotation-alignment":new $o(Ze.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vo(Ze.layout_symbol["icon-size"]),"icon-text-fit":new $o(Ze.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new $o(Ze.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vo(Ze.layout_symbol["icon-image"]),"icon-rotate":new Vo(Ze.layout_symbol["icon-rotate"]),"icon-padding":new $o(Ze.layout_symbol["icon-padding"]),"icon-keep-upright":new $o(Ze.layout_symbol["icon-keep-upright"]),"icon-offset":new Vo(Ze.layout_symbol["icon-offset"]),"icon-anchor":new Vo(Ze.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new $o(Ze.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new $o(Ze.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new $o(Ze.layout_symbol["text-rotation-alignment"]),"text-field":new Vo(Ze.layout_symbol["text-field"]),"text-font":new Vo(Ze.layout_symbol["text-font"]),"text-size":new Vo(Ze.layout_symbol["text-size"]),"text-max-width":new Vo(Ze.layout_symbol["text-max-width"]),"text-line-height":new Vo(Ze.layout_symbol["text-line-height"]),"text-letter-spacing":new Vo(Ze.layout_symbol["text-letter-spacing"]),"text-justify":new Vo(Ze.layout_symbol["text-justify"]),"text-radial-offset":new Vo(Ze.layout_symbol["text-radial-offset"]),"text-variable-anchor":new $o(Ze.layout_symbol["text-variable-anchor"]),"text-anchor":new Vo(Ze.layout_symbol["text-anchor"]),"text-max-angle":new $o(Ze.layout_symbol["text-max-angle"]),"text-writing-mode":new $o(Ze.layout_symbol["text-writing-mode"]),"text-rotate":new Vo(Ze.layout_symbol["text-rotate"]),"text-padding":new $o(Ze.layout_symbol["text-padding"]),"text-keep-upright":new $o(Ze.layout_symbol["text-keep-upright"]),"text-transform":new Vo(Ze.layout_symbol["text-transform"]),"text-offset":new Vo(Ze.layout_symbol["text-offset"]),"text-allow-overlap":new $o(Ze.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new $o(Ze.layout_symbol["text-ignore-placement"]),"text-optional":new $o(Ze.layout_symbol["text-optional"])});var ef={paint:new Go({"icon-opacity":new Vo(Ze.paint_symbol["icon-opacity"]),"icon-color":new Vo(Ze.paint_symbol["icon-color"]),"icon-halo-color":new Vo(Ze.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vo(Ze.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vo(Ze.paint_symbol["icon-halo-blur"]),"icon-translate":new $o(Ze.paint_symbol["icon-translate"]),"icon-translate-anchor":new $o(Ze.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vo(Ze.paint_symbol["text-opacity"]),"text-color":new Vo(Ze.paint_symbol["text-color"],{runtimeType:rt,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Vo(Ze.paint_symbol["text-halo-color"]),"text-halo-width":new Vo(Ze.paint_symbol["text-halo-width"]),"text-halo-blur":new Vo(Ze.paint_symbol["text-halo-blur"]),"text-translate":new $o(Ze.paint_symbol["text-translate"]),"text-translate-anchor":new $o(Ze.paint_symbol["text-translate-anchor"])}),layout:Qh};class tf{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Qe,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Ri(tf,"FormatSectionOverride",{omit:["defaultValue"]});class nf extends vs{constructor(e){super(e,ef)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const n=this.layout.get("text-writing-mode");if(n){const e=[];for(const t of n)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,r){const i=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Ar(o.value)||!i?i:function(e,t){return t.replace(/{([^{}]+)}/g,((t,n)=>n in e?String(e[n]):""))}(t.properties,i)}createBucket(e){return new Jh(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of ef.paint.overridableProperties){if(!nf.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new tf(t),r=new Dr(n,t.property.specification);let i=null;i="constant"===t.value.kind||"source"===t.value.kind?new Fr("source",r):new zr("composite",r,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Bo(t.property,i,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&nf.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),r=ef.paint.properties[t];let i=!1;const o=e=>{for(const t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof wt)o(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{i||(t instanceof Et&&St(t.value)===st?o(t.value.sections):t instanceof Rt?o(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return i}getProgramConfiguration(e){return new us(this,e)}}var rf={paint:new Go({"background-color":new $o(Ze.paint_background["background-color"]),"background-pattern":new Zo(Ze.paint_background["background-pattern"]),"background-opacity":new $o(Ze.paint_background["background-opacity"])})},of={paint:new Go({"raster-opacity":new $o(Ze.paint_raster["raster-opacity"]),"raster-hue-rotate":new $o(Ze.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new $o(Ze.paint_raster["raster-brightness-min"]),"raster-brightness-max":new $o(Ze.paint_raster["raster-brightness-max"]),"raster-saturation":new $o(Ze.paint_raster["raster-saturation"]),"raster-contrast":new $o(Ze.paint_raster["raster-contrast"]),"raster-resampling":new $o(Ze.paint_raster["raster-resampling"]),"raster-fade-duration":new $o(Ze.paint_raster["raster-fade-duration"])})};class af extends vs{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var sf={paint:new Go({"sky-type":new $o(Ze.paint_sky["sky-type"]),"sky-atmosphere-sun":new $o(Ze.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new $o(Ze.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new $o(Ze.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new $o(Ze.paint_sky["sky-gradient-radius"]),"sky-gradient":new Ho(Ze.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new $o(Ze.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new $o(Ze.paint_sky["sky-atmosphere-color"]),"sky-opacity":new $o(Ze.paint_sky["sky-opacity"])})};function lf(e,t,n){const r=[0,0,1],i=Yl([]);return Xl(i,i,n?-l(e)+Math.PI:l(e)),Kl(i,i,-l(t)),Ul(r,r,i),Nl(r,r)}const cf={circle:class extends vs{constructor(e){super(e,pl)}createBucket(e){return new Ws(e)}queryRadius(e){const t=e;return sl("circle-radius",this,t)+sl("circle-stroke-width",this,t)+ll(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,r,i,o,a,s){const l=ul(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n);return nc(e,r,o,a,s,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getProgramConfiguration(e){return new us(this,e)}},heatmap:class extends vs{createBucket(e){return new sc(e)}constructor(e){super(e,hc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=fc({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return sl("heatmap-radius",this,e)}queryIntersectsFeature(e,t,n,r,o,a,s,l){const c=this.paint.get("heatmap-radius").evaluate(t,n);return nc(e,r,a,s,l,!0,!0,new i(0,0),c)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(e){return new us(this,e)}},hillshade:class extends vs{constructor(e){super(e,mc)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends vs{constructor(e){super(e,nu)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),n=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(e){return new us(this,e)}recalculate(e,t){super.recalculate(e,t);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new eu(e)}queryRadius(){return ll(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,r,i,o){return!e.queryGeometry.isAboveHorizon&&Xs(cl(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),r)}isTileClipped(){return!0}},"fill-extrusion":class extends vs{constructor(e){super(e,Lu)}createBucket(e){return new xu(e)}queryRadius(){return ll(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(e){return new us(this,e)}queryIntersectsFeature(e,t,n,r,o,a,s,l,c){const u=ul(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),d=this.paint.get("fill-extrusion-height").evaluate(t,n),p=this.paint.get("fill-extrusion-base").evaluate(t,n),h=[0,0],f=l&&a.elevation,m=a.elevation?a.elevation.exaggeration():1,g=e.tile.getBucket(this);if(f&&g instanceof xu){const e=g.centroidVertexArray,t=c+1;if(t<e.length){const n=e.get(t);h[0]=n.a_centroid_pos0,h[1]=n.a_centroid_pos1}}if(0===h[0]&&1===h[1])return!1;"globe"===a.projection.name&&(r=Iu([r],[new i(0,0),new i(xs,xs)],e.tileID.canonical).map((e=>e.polygon)).flat());const y=function(e,t,n,r,o,a,s,l,c,u,d){return"globe"===e.projection.name?function(e,t,n,r,i,o,a,s,l,c,u){const d=[],p=[],h=e.projection.upVectorScale(u,e.center.lat,e.worldSize).metersToTile,f=[0,0,0,1],m=[0,0,0,1],g=(e,t,n,r)=>{e[0]=t,e[1]=n,e[2]=r,e[3]=1},y=Pu();n>0&&(n+=y),r+=y;for(const v of t){const t=[],y=[];for(const d of v){const p=d.x+i.x,v=d.y+i.y,b=e.projection.projectTilePoint(p,v,u),_=e.projection.upVector(u,d.x,d.y);let w=n,x=r;if(a){const e=Uu(p,v,n,r,a,s,l,c);w+=e.base,x+=e.top}0!==n?g(f,b.x+_[0]*h*w,b.y+_[1]*h*w,b.z+_[2]*h*w):g(f,b.x,b.y,b.z),g(m,b.x+_[0]*h*x,b.y+_[1]*h*x,b.z+_[2]*h*x),Bl(f,f,o),Bl(m,m,o),t.push(Bu(f)),y.push(Bu(m))}d.push(t),p.push(y)}return[d,p]}(e,t,n,r,o,a,s,l,c,u,d):s?function(e,t,n,r,i,o,a,s,l){const c=[],u=[],d=[0,0,0,1];for(const p of e){const e=[],h=[];for(const c of p){const u=c.x+r.x,p=c.y+r.y,f=Uu(u,p,t,n,o,a,s,l);d[0]=u,d[1]=p,d[2]=f.base,d[3]=1,Gl(d,d,i),d[3]=Math.max(d[3],1e-5);const m=Bu([d[0]/d[3],d[1]/d[3],d[2]/d[3]]);d[0]=u,d[1]=p,d[2]=f.top,d[3]=1,Gl(d,d,i),d[3]=Math.max(d[3],1e-5);const g=Bu([d[0]/d[3],d[1]/d[3],d[2]/d[3]]);e.push(m),h.push(g)}c.push(e),u.push(h)}return[c,u]}(t,n,r,o,a,s,l,c,u):function(e,t,n,r,o){const a=[],s=[],l=o[8]*t,c=o[9]*t,u=o[10]*t,d=o[11]*t,p=o[8]*n,h=o[9]*n,f=o[10]*n,m=o[11]*n;for(const g of e){const e=[],t=[];for(const n of g){const a=n.x+r.x,s=n.y+r.y,g=o[0]*a+o[4]*s+o[12],y=o[1]*a+o[5]*s+o[13],v=o[2]*a+o[6]*s+o[14],b=o[3]*a+o[7]*s+o[15],_=g+l,w=y+c,x=v+u,k=Math.max(b+d,1e-5),C=g+p,S=y+h,M=v+f,T=Math.max(b+m,1e-5),E=new i(_/k,w/k);E.z=x/k,e.push(E);const P=new i(C/T,S/T);P.z=M/T,t.push(P)}a.push(e),s.push(t)}return[a,s]}(t,n,r,o,a)}(a,r,p,d,u,s,f?l:null,h,m,a.center.lat,e.tileID.canonical),v=e.queryGeometry;return function(e,t,n){let r=1/0;Xs(n,t)&&(r=zu(n,t[0]));for(let i=0;i<t.length;i++){const o=t[i],a=e[i];for(let e=0;e<o.length-1;e++){const t=o[e],i=[t,o[e+1],a[e+1],a[e],t];Ys(n,i)&&(r=Math.min(r,zu(n,i)))}}return r!==1/0&&r}(y[0],y[1],v.isPointQuery()?v.screenBounds:v.screenGeometry)}},line:class extends vs{constructor(e){super(e,Ku),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof vn,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=Xu.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Wu(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(e){return new us(this,e)}queryRadius(e){const t=e,n=Ju(sl("line-width",this,t),sl("line-gap-width",this,t)),r=sl("line-offset",this,t);return n/2+Math.abs(r)+ll(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,r,o,a){if(e.queryGeometry.isAboveHorizon)return!1;const s=cl(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),l=e.pixelToTileUnitsFactor/2*Ju(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),c=this.paint.get("line-offset").evaluate(t,n);return c&&(r=function(e,t){const n=[],r=new i(0,0);for(let i=0;i<e.length;i++){const o=e[i],a=[];for(let e=0;e<o.length;e++){const n=o[e-1],i=o[e],s=o[e+1],l=0===e?r:i.sub(n)._unit()._perp(),c=e===o.length-1?r:s.sub(i)._unit()._perp(),u=l._add(c)._unit();u._mult(1/(u.x*c.x+u.y*c.y)),a.push(u._mult(t)._add(i))}n.push(a)}return n}(r,c*e.pixelToTileUnitsFactor)),function(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(e.length>=3)for(let t=0;t<i.length;t++)if(il(e,i[t]))return!0;if(Js(e,i,n))return!0}return!1}(s,r,l)}isTileClipped(){return!0}},symbol:nf,background:class extends vs{constructor(e){super(e,rf)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends vs{constructor(e){super(e,of)}getProgramIds(){return["raster"]}},sky:class extends vs{constructor(e){super(e,sf),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=fc({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const n=this.paint.get("sky-atmosphere-sun"),r=!n,i=e.style.light,o=i.properties.get("position");return r&&"viewport"===i.properties.get("anchor")&&O("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),r?lf(o.azimuthal,90-o.polar,t):lf(n[0],90-n[1],t)}const n=this.paint.get("sky-gradient-center");return lf(n[0],90-n[1],t)}is3D(){return!1}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}}};class uf{constructor(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)}update(e,n,r){const{width:i,height:o}=e,{context:a}=this,{gl:s}=a,{HTMLImageElement:l,HTMLCanvasElement:c,HTMLVideoElement:u,ImageData:d,ImageBitmap:p}=t;if(s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!n||!1!==n.premultiply)),r||this.size&&this.size[0]===i&&this.size[1]===o){const{x:t,y:n}=r||{x:0,y:0};e instanceof l||e instanceof c||e instanceof u||e instanceof d||p&&e instanceof p?s.texSubImage2D(s.TEXTURE_2D,0,t,n,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,t,n,i,o,s.RGBA,s.UNSIGNED_BYTE,e.data)}else this.size=[i,o],e instanceof l||e instanceof c||e instanceof u||e instanceof d||p&&e instanceof p?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,i,o,0,this.format,s.UNSIGNED_BYTE,e.data);this.useMipmap=Boolean(n&&n.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&s.generateMipmap(s.TEXTURE_2D)}bind(e,t){const{context:n}=this,{gl:r}=n;r.bindTexture(r.TEXTURE_2D,this.texture),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.useMipmap?e===r.NEAREST?r.NEAREST_MIPMAP_NEAREST:r.LINEAR_MIPMAP_NEAREST:e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class df{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new dc({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const n=this.getKey(e,t);return this.positions[n]}trim(){const e=this.width,t=this.height=k(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,n){const r=[];let i=e.length%2==1?-e[e.length-1]*n:0,o=e[0]*n,a=!0;r.push({left:i,right:o,isDash:a,zeroLength:0===e[0]});let s=e[0];for(let l=1;l<e.length;l++){a=!a;const t=e[l];i=s*n,s+=t,o=s*n,r.push({left:i,right:o,isDash:a,zeroLength:0===t})}return r}addRoundDash(e,t,n){const r=t/2;for(let i=-n;i<=n;i++){const t=this.width*(this.nextRow+n+i);let o=0,a=e[o];for(let s=0;s<this.width;s++){s/a.right>1&&(a=e[++o]);const l=Math.abs(s-a.left),c=Math.abs(s-a.right),u=Math.min(l,c);let d;const p=i/n*(r+1);if(a.isDash){const e=r-Math.abs(p);d=Math.sqrt(u*u+e*e)}else d=r-Math.sqrt(u*u+p*p);this.image.data[t+s]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e,t){for(let s=e.length-1;s>=0;--s){const t=e[s],n=e[s+1];t.zeroLength?e.splice(s,1):n&&n.isDash===t.isDash&&(n.left=t.left,e.splice(s,1))}const n=e[0],r=e[e.length-1];n.isDash===r.isDash&&(n.left=r.left-this.width,r.right=n.right+this.width);const i=this.width*this.nextRow;let o=0,a=e[o];for(let s=0;s<this.width;s++){s/a.right>1&&(a=e[++o]);const n=Math.abs(s-a.left),r=Math.abs(s-a.right),l=Math.min(n,r);this.image.data[i+s]=Math.max(0,Math.min(255,(a.isDash?l:-l)+t+128))}}addDash(e,t){const n=this.getKey(e,t);if(this.positions[n])return this.positions[n];const r="round"===t,i=r?7:0,o=2*i+1;if(this.nextRow+o>this.height)return O("LineAtlas out of space"),null;0===e.length&&e.push(1);let a=0;for(let c=0;c<e.length;c++)e[c]<0&&(O("Negative value is found in line dasharray, replacing values with 0"),e[c]=0),a+=e[c];if(0!==a){const n=this.width/a,o=this.getDashRanges(e,this.width,n);r?this.addRoundDash(o,n,i):this.addRegularDash(o,"square"===t?.5*n:0)}const s=this.nextRow+i;this.nextRow+=o;const l={tl:[s,i],br:[a,0]};return this.positions[n]=l,l}}Ri(df,"LineAtlas");class pf{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class hf{constructor(){this.tasks={},this.taskQueue=[],S(["process"],this),this.invoker=new pf(this.process),this.nextId=0}add(e,t){const n=this.nextId++,r=function(e){let{type:t,isSymbolTile:n,zoom:r}=e;return r=r||0,"message"===t?0:"maybePrepare"!==t||n?"parseTile"!==t||n?"parseTile"===t&&n?300-r:"maybePrepare"===t&&n?400-r:500:200-r:100-r}(t);if(0===r){j();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[n]={fn:e,metadata:t,priority:r,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){j();try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let r=0;r<this.taskQueue.length;r++){const n=this.tasks[this.taskQueue[r]];n.priority<t&&(t=n.priority,e=r)}if(null===e)return null;const n=this.taskQueue[e];return this.taskQueue.splice(e,1),n}remove(){this.invoker.remove()}}class ff{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}const mf=["tile","layer","source","sourceLayer","state"];class gf{constructor(e,t,n,r,i){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=n,this._y=r,this.properties=e.properties,this.id=i}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",geometry:this.geometry,properties:this.properties};void 0!==this.id&&(e.id=this.id);for(const t of mf)void 0!==this[t]&&(e[t]=this[t]);return e}}const yf=32,vf=33,bf=new Uint16Array(8184);for(let om=0;om<2046;om++){let e=om+2,t=0,n=0,r=0,i=0,o=0,a=0;for(1&e?r=i=o=yf:t=n=a=yf;(e>>=1)>1;){const s=t+r>>1,l=n+i>>1;1&e?(r=t,i=n,t=o,n=a):(t=r,n=i,r=o,i=a),o=s,a=l}const s=4*om;bf[s+0]=t,bf[s+1]=n,bf[s+2]=r,bf[s+3]=i}const _f=new Uint16Array(2178),wf=new Uint8Array(1089),xf=new Uint16Array(1089);function kf(e){return 0===e?-.03125:32===e?.03125:0}var Cf=Jo([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Sf={type:2,extent:xs,loadGeometry:()=>[[new i(0,0),new i(8193,0),new i(8193,8193),new i(0,8193),new i(0,0)]]};class Mf{constructor(e,t,n,r,i){this.tileID=e,this.uid=w(),this.uses=0,this.tileSize=t,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=i,this.expiredRequestCount=0,this.state="loading",r&&r.transform&&(this.projection=r.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;t<G.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=xh(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,n){if(this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){const n={};if(!t)return n;for(const r of e){const e=r.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)n[t.id]=r}}return n}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Jh){if(this.hasSymbolBuckets=!0,!n)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Jh&&t.hasRTLText){this.hasRTLText=!0,Lo.isLoading()||Lo.isLoaded()||"deferred"!==Io()||Oo();break}}this.queryPadding=0;for(const e in this.buckets){const n=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(e).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new Ea}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const n in this.buckets){const t=this.buckets[n];t.uploadPending()&&t.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new uf(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new uf(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new uf(e,this.lineAtlas.image,t.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,r,i,o,a,s){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:r,pixelPosMatrix:a,transform:o,params:i,tileTransform:this.tileTransform},e,t,n):{}}querySourceFeatures(e,t){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const r=n.loadVTLayers(),i=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(!o)return;const a=Jr(t&&t.filter),{z:s,x:l,y:c}=this.tileID.canonical,u={z:s,x:l,y:c};for(let d=0;d<o.length;d++){const t=o.feature(d);if(a.needGeometry){const e=Zs(t,!0);if(!a.filter(new Ro(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!a.filter(new Ro(this.tileID.overscaledZ),t))continue;const r=n.getId(t,i),p=new gf(t,s,l,c,r);p.tile=u,e.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=D(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let n=!1;if(this.expirationTime>e)n=!1;else if(t)if(this.expirationTime<t)n=!0;else{const r=this.expirationTime-t;r?this.expirationTime=e+Math.max(r,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length||!t)return;const n=this.latestFeatureIndex.loadVTLayers(),r=t.style.listImages();for(const i in this.buckets){if(!t.style.hasLayer(i))continue;const o=this.buckets[i],a=o.layers[0].sourceLayer||"_geojsonTileLayer",s=n[a],l=e[a];if(!s||!l||0===Object.keys(l).length)continue;if(o.update(l,s,r,this.imageAtlas&&this.imageAtlas.patternPositions||{}),o instanceof Wu||o instanceof eu){const e=t.style._getSourceCache(o.layers[0].source);t._terrain&&t._terrain.enabled&&e&&o.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(e.id,this.tileID)}const c=t&&t.style&&t.style.getLayer(i);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<G.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=G.now()+e}setTexture(e,t){const n=t.context,r=n.gl;this.texture=t.getTileTexture(e.width),this.texture?this.texture.update(e,{useMipmap:!0}):(this.texture=new uf(n,e,r.RGBA,{useMipmap:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),n.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax))}setDependencies(e,t){const n={};for(const r of t)n[r]=!0;this.dependencies[e]=n}hasDependency(e,t){for(const n of e){const e=this.dependencies[n];if(e)for(const n of t)if(e[n])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const n=qs(Sf,this.tileID.canonical,this.tileTransform)[0],r=new ea,i=new ka;for(let o=0;o<n.length;o++){const{x:e,y:t}=n[o];r.emplaceBack(e,t),i.emplaceBack(o)}i.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(i),this._tileDebugBuffer=e.createVertexBuffer(r,Hp.members),this._tileDebugSegments=ws.simpleSegment(0,0,r.length,i.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const n=qs(Sf,this.tileID.canonical,this.tileTransform)[0];let r,i;if(this.isRaster){const e=function(e,t){const n=xh(e,t),r=Math.pow(2,e.z);for(let c=0;c<vf;c++)for(let i=0;i<vf;i++){const o=Os((e.x+(i+kf(i))/yf)/r),a=Ls((e.y+(c+kf(c))/yf)/r),s=t.project(o,a),l=c*vf+i;_f[2*l+0]=Math.round((s.x*n.scale-n.x)*xs),_f[2*l+1]=Math.round((s.y*n.scale-n.y)*xs)}wf.fill(0),xf.fill(0);for(let c=2045;c>=0;c--){const e=4*c,t=bf[e+0],n=bf[e+1],r=bf[e+2],i=bf[e+3],o=t+r>>1,a=n+i>>1,s=o+a-n,l=a+t-o,u=n*vf+t,d=i*vf+r,p=a*vf+o,h=Math.hypot((_f[2*u+0]+_f[2*d+0])/2-_f[2*p+0],(_f[2*u+1]+_f[2*d+1])/2-_f[2*p+1])>=16;if(wf[p]=wf[p]||(h?1:0),c<1022){const e=(n+l>>1)*vf+(t+s>>1),o=(i+l>>1)*vf+(r+s>>1);wf[p]=wf[p]||wf[e]||wf[o]}}const i=new na,o=new ga;let a=0;function s(e,t){const n=t*vf+e;return 0===xf[n]&&(i.emplaceBack(_f[2*n+0],_f[2*n+1],e*xs/yf,t*xs/yf),xf[n]=++a),xf[n]-1}function l(e,t,n,r,i,a){const c=e+n>>1,u=t+r>>1;if(Math.abs(e-i)+Math.abs(t-a)>1&&wf[u*vf+c])l(i,a,e,t,c,u),l(n,r,i,a,c,u);else{const l=s(e,t),c=s(n,r),u=s(i,a);o.emplaceBack(l,c,u)}}return l(0,0,yf,yf,yf,0),l(yf,yf,0,0,0,yf),{vertices:i,indices:o}}(this.tileID.canonical,t);r=e.vertices,i=e.indices}else{r=new na,i=new ga;for(const{x:t,y:i}of n)r.emplaceBack(t,i,0,0);const e=vc(r.int16,void 0,4);for(let t=0;t<e.length;t+=3)i.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(r,Cf.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(i),this._tileBoundsSegments=ws.simpleSegment(0,0,r.length,i.length)}_makeGlobeTileDebugBuffers(e,t){const n=t.projection;if(!n||"globe"!==n.name||t.freezeTileCoverage)return;const r=this.tileID.canonical,i=hh(rh(r,t)),o=gh(t.zoom);let a;o>0&&(a=yl(new Float64Array(16),t.globeMatrix));const s=(r.x+.5)/(1<<r.z)-Es(t.center.lng);let l=0;s>.5?l=-1:s<-.5&&(l=1),this._makeGlobeTileDebugBorderBuffer(e,r,t,i,a,o,l),this._makeGlobeTileDebugTextBuffer(e,r,t,i,a,o,l)}_globePoint(e,t,n,r,i,o,a,s){let l=uh(e,t,n);if(o){const i=1<<n.z,c=[((e/xs+n.x)/i+s)*r,(t/xs+n.y)/i*r,0];Bl(c,c,o),l=_n(l,c,a)}return Bl(l,l,i)}_makeGlobeTileDebugBorderBuffer(e,t,n,r,i,o,a){const s=new ea,l=new ka,c=new ta,u=(e,u,d,p,h)=>{const f=(d-e)/(h-1),m=(p-u)/(h-1),g=s.length;for(let y=0;y<h;y++){const d=e+y*f,p=u+y*m;s.emplaceBack(d,p);const h=this._globePoint(d,p,t,n.worldSize,r,i,o,a);c.emplaceBack(h[0],h[1],h[2]),l.emplaceBack(g+y)}},d=xs;u(0,0,d,0,16),u(d,0,d,d,16),u(d,d,0,d,16),u(0,d,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(l),this._tileDebugBuffer=e.createVertexBuffer(s,Hp.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(c,Zp.members),this._tileDebugSegments=ws.simpleSegment(0,0,s.length,l.length)}_makeGlobeTileDebugTextBuffer(e,t,n,r,i,o,a){const s=new ea,l=new ga,c=new ta,u=25;l.reserve(32),s.reserve(u),c.reserve(u);const d=(e,t)=>u*e+t;for(let p=0;p<u;p++){const e=2048*p;for(let l=0;l<u;l++){const u=2048*l;s.emplaceBack(u,e);const d=this._globePoint(u,e,t,n.worldSize,r,i,o,a);c.emplaceBack(d[0],d[1],d[2])}}for(let p=0;p<4;p++)for(let e=0;e<4;e++){const t=d(p,e),n=d(p,e+1),r=d(p+1,e),i=d(p+1,e+1);l.emplaceBack(t,n,r),l.emplaceBack(r,n,i)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(l),this._tileDebugTextBuffer=e.createVertexBuffer(s,Hp.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(c,Zp.members),this._tileDebugTextSegments=ws.simpleSegment(0,0,u,32)}}class Tf{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,n){const r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},b(this.stateChanges[e][r],n),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==r&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][r]){this.deletedStates[e][r]={};for(const t in this.state[e][r])n[t]||(this.deletedStates[e][r][t]=null)}else for(const i in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][i]&&delete this.deletedStates[e][r][i]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,t){const n=String(t),r=b({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const n=this.deletedStates[e][t];if(null===n)return{};for(const e in n)delete r[e]}return r}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const n={};for(const r in this.stateChanges){this.state[r]=this.state[r]||{};const e={};for(const t in this.stateChanges[r])this.state[r][t]||(this.state[r][t]={}),b(this.state[r][t],this.stateChanges[r][t]),e[t]=this.state[r][t];n[r]=e}for(const r in this.deletedStates){this.state[r]=this.state[r]||{};const e={};if(null===this.deletedStates[r])for(const t in this.state[r])e[t]={},this.state[r][t]={};else for(const t in this.deletedStates[r]){if(null===this.deletedStates[r][t])this.state[r][t]={};else for(const e of Object.keys(this.deletedStates[r][t]))delete this.state[r][t][e];e[t]=this.state[r][t]}n[r]=n[r]||{},b(n[r],e)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const r in e)e[r].setFeatureState(n,t)}}class Ef{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const n=this.toIdx(e,t);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function Pf(e,t,n,r){let i=0,o=Number.MAX_VALUE;for(let a=0;a<3;a++)if(Math.abs(r[a])<1e-15){if(n[a]<e[a]||n[a]>t[a])return null}else{const s=1/r[a];let l=(e[a]-n[a])*s,c=(t[a]-n[a])*s;if(l>c){const e=l;l=c,c=e}if(l>i&&(i=l),c<o&&(o=c),i>o)return null}return i}function If(e,t,n,r,i,o,a,s,l,c,u){const d=r-e,p=i-t,h=o-n,f=a-e,m=s-t,g=l-n,y=u[1]*g-u[2]*m,v=u[2]*f-u[0]*g,b=u[0]*m-u[1]*f,_=d*y+p*v+h*b;if(Math.abs(_)<1e-15)return null;const w=1/_,x=c[0]-e,k=c[1]-t,C=c[2]-n,S=(x*y+k*v+C*b)*w;if(S<0||S>1)return null;const M=k*h-C*p,T=C*d-x*h,E=x*p-k*d,P=(u[0]*M+u[1]*T+u[2]*E)*w;return P<0||S+P>1?null:(f*M+m*T+g*E)*w}function Of(e,t,n){return(e-t)/(n-t)}function Lf(e,t,n,r,i,o,a,s,l){const c=1<<n,u=o-r,d=a-i,p=(e+1)/c*u+r,h=(t+0)/c*d+i,f=(t+1)/c*d+i;s[0]=(e+0)/c*u+r,s[1]=h,l[0]=p,l[1]=f}class Rf{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),n=[];let r=Math.ceil(Math.pow(2,t));const i=1/r,o=(e,t,n,r,i)=>{const o=r?1:0,a=(e+1)*n-o,s=t*n,l=(t+1)*n-o;i[0]=e*n,i[1]=s,i[2]=a,i[3]=l};let a=new Ef(r);const s=[];for(let l=0;l<r*r;l++){o(l%r,Math.floor(l/r),i,!1,s);const t=Df(s[0],s[1],e),n=Df(s[2],s[1],e),c=Df(s[2],s[3],e),u=Df(s[0],s[3],e);a.minimums.push(Math.min(t,n,c,u)),a.maximums.push(Math.max(t,n,c,u)),a.leaves.push(1)}for(n.push(a),r/=2;r>=1;r/=2){const e=n[n.length-1];a=new Ef(r);for(let t=0;t<r*r;t++){o(t%r,Math.floor(t/r),2,!0,s);const n=e.getElevation(s[0],s[1]),i=e.getElevation(s[2],s[1]),l=e.getElevation(s[2],s[3]),c=e.getElevation(s[0],s[3]),u=e.isLeaf(s[0],s[1]),d=e.isLeaf(s[2],s[1]),p=e.isLeaf(s[2],s[3]),h=e.isLeaf(s[0],s[3]),f=Math.min(n.min,i.min,l.min,c.min),m=Math.max(n.max,i.max,l.max,c.max),g=u&&d&&p&&h;a.maximums.push(m),a.minimums.push(f),a.leaves.push(m-f<=5&&g?1:0)}n.push(a)}return n}(this.dem),n=t.length-1,r=t[n];this._addNode(r.minimums[0],r.maximums[0],r.leaves[0]),this._construct(t,0,0,n,0)}raycastRoot(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;return Pf([e,t,-100],[n,r,this.maximums[0]*a],i,o)}raycast(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.nodeCount)return null;const s=this.raycastRoot(e,t,n,r,i,o,a);if(null==s)return null;const l=[],c=[],u=[],d=[],p=[{idx:0,t:s,nodex:0,nodey:0,depth:0}];for(;p.length>0;){const{idx:s,t:h,nodex:f,nodey:m,depth:g}=p.pop();if(this.leaves[s]){Lf(f,m,g,e,t,n,r,u,d);const s=1<<g,l=(f+0)/s,c=(f+1)/s,p=(m+0)/s,y=(m+1)/s,v=Df(l,p,this.dem)*a,b=Df(c,p,this.dem)*a,_=Df(c,y,this.dem)*a,w=Df(l,y,this.dem)*a,x=If(u[0],u[1],v,d[0],u[1],b,d[0],d[1],_,i,o),k=If(d[0],d[1],_,u[0],d[1],w,u[0],u[1],v,i,o),C=Math.min(null!==x?x:Number.MAX_VALUE,null!==k?k:Number.MAX_VALUE);if(C!==Number.MAX_VALUE)return C;{const e=Al([],i,o,h);if(jf(v,b,w,_,Of(e[0],u[0],d[0]),Of(e[1],u[1],d[1]))>=e[2])return h}continue}let y=0;for(let p=0;p<this._siblingOffset.length;p++){Lf((f<<1)+this._siblingOffset[p][0],(m<<1)+this._siblingOffset[p][1],g+1,e,t,n,r,u,d),u[2]=-100,d[2]=this.maximums[this.childOffsets[s]+p]*a;const h=Pf(u,d,i,o);if(null!=h){const e=h;l[p]=e;let t=!1;for(let n=0;n<y&&!t;n++)e>=l[c[n]]&&(c.splice(n,0,p),t=!0);t||(c[y]=p),y++}}for(let e=0;e<y;e++){const t=c[e];p.push({idx:this.childOffsets[s]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,n){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,n,r,i){if(1===e[r].isLeaf(t,n))return;this.childOffsets[i]||(this.childOffsets[i]=this.nodeCount);const o=r-1,a=e[o];let s=0,l=0;for(let c=0;c<this._siblingOffset.length;c++){const e=2*t+this._siblingOffset[c][0],r=2*n+this._siblingOffset[c][1],i=a.getElevation(e,r),o=a.isLeaf(e,r),u=this._addNode(i.min,i.max,o);o&&(s|=1<<c),l||(l=u)}for(let c=0;c<this._siblingOffset.length;c++)s&1<<c||this._construct(e,2*t+this._siblingOffset[c][0],2*n+this._siblingOffset[c][1],o,l+c)}}function jf(e,t,n,r,i,o){return bn(bn(e,n,o),bn(t,r,o),i)}function Df(e,t,n){const r=n.dim,i=f(e*r-.5,0,r-1),o=f(t*r-.5,0,r-1),a=Math.floor(i),s=Math.floor(o),l=Math.min(a+1,r-1),c=Math.min(s+1,r-1);return jf(n.get(a,s),n.get(l,s),n.get(a,c),n.get(l,c),i-a,o-s)}const Af={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class Nf{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return O(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const o=this.dim=t.height-2,a=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.encoding=n||"mapbox",this.borderReady=r,!r){for(let e=0;e<o;e++)a[this._idx(-1,e)]=a[this._idx(0,e)],a[this._idx(o,e)]=a[this._idx(o-1,e)],a[this._idx(e,-1)]=a[this._idx(e,0)],a[this._idx(e,o)]=a[this._idx(e,o-1)];a[this._idx(-1,-1)]=a[this._idx(0,0)],a[this._idx(o,-1)]=a[this._idx(o-1,0)],a[this._idx(-1,o)]=a[this._idx(0,o-1)],a[this._idx(o,o)]=a[this._idx(o-1,o-1)],i&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Rf(this)}get(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(e=f(e,-1,this.dim),t=f(t,-1,this.dim));const n=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(this.pixels[n],this.pixels[n+1],this.pixels[n+2])}static getUnpackVector(e){return Af[e]}get unpackVector(){return Af[this.encoding]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}_unpackMapbox(e,t,n){return(256*e*256+256*t+n)/10-1e4}_unpackTerrarium(e,t,n){return 256*e+t+n/256-32768}static pack(e,t){const n=[0,0,0,0],r=Nf.getUnpackVector(t);let i=Math.floor((e+r[3])/r[2]);return n[2]=i%256,i=Math.floor(i/256),n[1]=i%256,i=Math.floor(i/256),n[0]=i,n}getPixels(){return new pc({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}const s=-t*this.dim,l=-n*this.dim;for(let c=o;c<a;c++)for(let t=r;t<i;t++){const n=4*this._idx(t,c),r=4*this._idx(t+s,c+l);this.pixels[n+0]=e.pixels[r+0],this.pixels[n+1]=e.pixels[r+1],this.pixels[n+2]=e.pixels[r+2],this.pixels[n+3]=e.pixels[r+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Ri(Nf,"DEMData"),Ri(Rf,"DemMinMaxQuadTree",{omit:["dem"]});class Ff{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){const r=e.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);const i={value:t,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout((()=>{this.remove(e,i)}),n)),this.data[r].push(i),this.order.push(r),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const r of this.data[n])e(r.value)||t.push(r);for(const n of t)this.remove(n.value.tileID,n)}}class zf{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}zf.ReadOnly=!1,zf.ReadWrite=!0,zf.disabled=new zf(519,zf.ReadOnly,[0,1]);const Bf=7680;class Uf{constructor(e,t,n,r,i,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o}}Uf.disabled=new Uf({func:519,mask:0},0,0,Bf,Bf,Bf);class $f{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}}$f.Replace=[1,0],$f.disabled=new $f($f.Replace,vt.transparent,[!1,!1,!1,!1]),$f.unblended=new $f($f.Replace,vt.transparent,[!0,!0,!0,!0]),$f.alphaBlended=new $f([1,771],vt.transparent,[!0,!0,!0,!0]);const Vf=1029,qf=2305;class Zf{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}Zf.disabled=new Zf(!1,Vf,qf),Zf.backCCW=new Zf(!0,Vf,qf),Zf.backCW=new Zf(!0,Vf,2304),Zf.frontCW=new Zf(!0,1028,2304),Zf.frontCCW=new Zf(!0,1028,qf);class Hf extends qe{constructor(e,t,n){super(),this.id=e,this._onlySymbols=n,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new Ff(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new Tf,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,(()=>{}))}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,(()=>{}))}serialize(){return this._source.serialize()}prepare(e){if(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._source.prepareTile)for(const t in this._tiles){const n=this._tiles[t];this._source.prepareTile(n)&&this.map.painter.terrain&&this.map.painter.terrain._clearRenderCacheForTile(this.id,n.tileID),n.upload(e),n.prepare(this.map.style.imageManager)}else for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return v(this._tiles).map((e=>e.tileID)).sort(Gf).map((e=>e.key))}getRenderableIds(e){const t=[];for(const n in this._tiles)this._isIdRenderable(+n,e)&&t.push(this._tiles[n]);return e?t.sort(((e,t)=>{const n=e.tileID,r=t.tileID,o=new i(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),a=new i(r.canonical.x,r.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-r.overscaledZ||a.y-o.y||a.x-o.x})).map((e=>e.tileID.key)):t.map((e=>e.tileID)).sort(Gf).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(e,t,n,r){if(r)if(e.state="errored",404!==r.status)this._source.fire(new Ve(r,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=G.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new $e("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let r=0;r<t.length;r++){const i=t[r];if(e.neighboringTiles&&e.neighboringTiles[i]){const t=this.getTileByID(i);n(e,t),n(t,e)}}function n(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x;const r=t.tileID.canonical.y-e.tileID.canonical.y,i=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,r){for(const i in this._tiles){let o=this._tiles[i];if(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)continue;let a=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(a=e)}let s=a;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){r[a.key]=a;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),r=this._getLoadedTile(t);if(r)return r}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const n=Math.ceil(e.width/t)+1,r=Math.ceil(e.height/t)+1,i=Math.floor(n*r*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,i):i,a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(a)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const n in this._tiles){const r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}this._tiles=e;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(+t,this._tiles[t])}}update(e,t,n){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let r;this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?r=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new Au(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y))):(r=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(r=r.filter((e=>this._source.hasTile(e))))):r=[];const i=this._updateRetainedTiles(r);if(Wf(this._source.type)&&0!==r.length){const e={},t={},n=Object.keys(i);for(const r of n){const n=i[r],o=this._tiles[r];if(!o||o.fadeEndTime&&o.fadeEndTime<=G.now())continue;const a=this.findLoadedParent(n,Math.max(n.overscaledZ-Hf.maxOverzooming,this._source.minzoom));a&&(this._addTile(a.tileID),e[a.tileID.key]=a.tileID),t[r]=n}const o=r[r.length-1].overscaledZ;for(const r in this._tiles){const e=this._tiles[r];if(i[r]||!e.hasData())continue;let n=e.tileID;for(;n.overscaledZ>o;){n=n.scaledTo(n.overscaledZ-1);const o=this._tiles[n.key];if(o&&o.hasData()&&t[n.key]){i[r]=e.tileID;break}}}for(const r in e)i[r]||(this._coveredTiles[r]=!0,i[r]=e[r])}for(const a in i)this._tiles[a].clearFadeHold();const o=function(e,t){const n=[];for(const r in e)r in t||n.push(r);return n}(this._tiles,i);for(const a of o){const e=this._tiles[a];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(+a)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const n={},r=e.reduce(((e,t)=>Math.min(e,t.overscaledZ)),1/0),i=e[0].overscaledZ,o=Math.max(i-Hf.maxOverzooming,this._source.minzoom),a=Math.max(i+Hf.maxUnderzooming,this._source.minzoom),s={};for(const l of e){const e=this._addTile(l);t[l.key]=l,e.hasData()||r<this._source.maxzoom&&(s[l.key]=l)}this._retainLoadedChildren(s,r,a,t);for(const l of e){let e=this._tiles[l.key];if(e.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const e=l.children(this._source.maxzoom)[0],n=this.getTile(e);if(n&&n.hasData()){t[e.key]=e;continue}}else{const e=l.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let r=e.wasRequested();for(let i=l.overscaledZ-1;i>=o;--i){const o=l.scaledTo(i);if(n[o.key])break;if(n[o.key]=!0,e=this.getTile(o),!e&&r&&(e=this._addTile(o)),e&&(t[o.key]=o,r=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);const e=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(e),n)break;r=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(e){let t=this._tiles[e.key];if(t)return this._source.prepareTile&&this._source.prepareTile(t),t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const n=Boolean(t);if(!n){const n=this.map?this.map.painter:null;t=new Mf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,n,this._isRaster),this._source.prepareTile&&this._source.prepareTile(t)||this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,n||this._source.fire(new $e("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),n))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,n){const r=[],i=this.transform;if(!i)return r;const o="globe"===i.projection.name,a=Es(i.center.lng);for(const s in this._tiles){const l=this._tiles[s];if(n&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(o){const e=l.tileID.canonical;if(0===e.z){const t=[Math.abs(f(a,...Yf(e,-1))-a),Math.abs(f(a,...Yf(e,1))-a)];c=[0,2*t.indexOf(Math.min(...t))-1]}else{const t=[Math.abs(f(a,...Yf(e,-1))-a),Math.abs(f(a,...Yf(e,0))-a),Math.abs(f(a,...Yf(e,1))-a)];c=[t.indexOf(Math.min(...t))-1]}}else c=[0];for(const n of c){const o=e.containsTile(l,i,t,n);o&&r.push(o)}}return r}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map((e=>this._tiles[e].tileID));for(const n of t)n.projMatrix=this.transform.calculateProjMatrix(n.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(Wf(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=G.now())return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){const r=this._tiles[e];r&&r.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(+n,"reloading");this._cache.filter((n=>!n.hasDependency(e,t)))}_preloadTiles(e,t){const n=new Map,r=Array.isArray(e)?e:[e],i=this.map.painter.terrain,o=this.usedForTerrain&&i?i.getScaledDemTileSize():this._source.tileSize;for(const a of r){const e=a.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const t of e)n.set(t.key,t);this.usedForTerrain&&a.updateElevation(!1)}y(Array.from(n.values()),((e,t)=>{const n=new Mf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(n,(e=>{"raster-dem"===this._source.type&&n.dem&&this._backfillDEM(n),t(e,n)}))}),t)}}function Gf(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Wf(e){return"raster"===e||"image"===e||"video"===e}function Yf(e,t){const n=1<<e.z;return[e.x/n+t,(e.x+1)/n+t]}Hf.maxOverzooming=10,Hf.maxUnderzooming=3;class Kf{constructor(e,t,n){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=n}static create(e,t,n){const r=n||e.findDEMTileFor(t);if(!r||!r.dem)return;const i=r.dem,o=r.tileID,a=1<<t.canonical.z-o.canonical.z;return new Kf(r,r.tileSize/xs/a,[(t.canonical.x/a-o.canonical.x)*i.dim,(t.canonical.y/a-o.canonical.y)*i.dim])}tileCoordToPixel(e,t){const n=t*this._scale+this._offset[1],r=Math.floor(e*this._scale+this._offset[0]),o=Math.floor(n);return new i(r,o)}getElevationAt(e,t,n,r){const i=e*this._scale+this._offset[0],o=t*this._scale+this._offset[1],a=Math.floor(i),s=Math.floor(o),l=this._dem;return r=!!r,n?bn(bn(l.get(a,s,r),l.get(a,s+1,r),o-s),bn(l.get(a+1,s,r),l.get(a+1,s+1,r),o-s),i-a):l.get(a,s,r)}getElevationAtPixel(e,t,n){return this._dem.get(e,t,!!n)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*Is(1,e)*this._dem.stride}}class Xf{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Ii(xs,16,0),this.featureIndexArray=new Aa,this.promoteId=t}insert(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i,o);const s=this.grid;for(let l=0;l<t.length;l++){const e=t[l],n=[1/0,1/0,-1/0,-1/0];for(let t=0;t<e.length;t++){const r=e[t];n[0]=Math.min(n[0],r.x),n[1]=Math.min(n[1],r.y),n[2]=Math.max(n[2],r.x),n[3]=Math.max(n[3],r.y)}n[0]<xs&&n[1]<xs&&n[2]>=0&&n[3]>=0&&s.insert(a,n[0],n[1],n[2],n[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new mu.VectorTile(new vd(this.rawTileData)).layers,this.sourceLayerCoder=new ff(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,n,r){var i=this;this.loadVTLayers();const o=e.params||{},a=Jr(o.filter),s=e.tileResult,l=e.transform,c=s.bufferedTilespaceBounds,u=this.grid.query(c.min.x,c.min.y,c.max.x,c.max.y,((e,t,n,r)=>ol(s.bufferedTilespaceGeometry,e,t,n,r)));u.sort(Qf);let d=null;l.elevation&&u.length>0&&(d=Kf.create(l.elevation,this.tileID));const p={};let h;for(let f=0;f<u.length;f++){const l=u[f];if(l===h)continue;h=l;const c=this.featureIndexArray.get(l);let m=null;this.loadMatchingFeature(p,c,a,o.layers,o.availableImages,t,n,r,(function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return m||(m=qs(t,i.tileID.canonical,e.tileTransform)),n.queryIntersectsFeature(s,t,r,m,i.z,e.transform,e.pixelPosMatrix,d,o)}))}return p}loadMatchingFeature(e,t,n,r,i,o,a,s,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:d,layoutVertexArrayOffset:p}=t,h=this.bucketLayerIDs[u];if(r&&!function(e,t){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(r,h))return;const f=this.sourceLayerCoder.decode(d),m=this.vtLayers[f].feature(c);if(n.needGeometry){const e=Zs(m,!0);if(!n.filter(new Ro(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new Ro(this.tileID.overscaledZ),m))return;const g=this.getId(m,f);for(let y=0;y<h.length;y++){const t=h[y];if(r&&r.indexOf(t)<0)continue;const n=o[t];if(!n)continue;let u={};void 0!==g&&s&&(u=s.getState(n.sourceLayer||"_geojsonTileLayer",g));const d=b({},a[t]);d.paint=Jf(d.paint,n.paint,m,u,i),d.layout=Jf(d.layout,n.layout,m,u,i);const f=!l||l(m,n,u,p);if(!f)continue;const v=new gf(m,this.z,this.x,this.y,g);v.layer=d;let _=e[t];void 0===_&&(_=e[t]=[]),_.push({featureIndex:c,feature:v,intersectionZ:f})}}lookupSymbolFeatures(e,t,n,r,i,o,a,s){const l={};this.loadVTLayers();const c=Jr(i);for(const u of e)this.loadMatchingFeature(l,{bucketIndex:n,sourceLayerIndex:r,featureIndex:u,layoutVertexArrayOffset:0},c,o,a,s,t);return l}loadFeature(e){const{featureIndex:t,sourceLayerIndex:n}=e;this.loadVTLayers();const r=this.sourceLayerCoder.decode(n),i=this.vtFeatures[r];if(i[t])return i[t];const o=this.vtLayers[r].feature(t);return i[t]=o,o}hasLayer(e){for(const t of this.bucketLayerIDs)for(const n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;return this.promoteId&&(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof n&&(n=Number(n))),n}}function Jf(e,t,n,r,i){return T(e,((e,o)=>{const a=t instanceof Uo?t.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a}))}function Qf(e,t){return t-e}Ri(Xf,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class em{constructor(e){const t={},n=[];for(const a in e){const r=e[a],i=t[a]={};for(const e in r.glyphs){const t=r.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const o=t.metrics.localGlyph?2:1,a={x:0,y:0,w:t.bitmap.width+2*o,h:t.bitmap.height+2*o};n.push(a),i[e]=a}}const{w:r,h:i}=Ud(n),o=new dc({width:r||1,height:i||1});for(const a in e){const n=e[a];for(const e in n.glyphs){const r=n.glyphs[+e];if(!r||0===r.bitmap.width||0===r.bitmap.height)continue;const i=t[a][e],s=r.metrics.localGlyph?2:1;dc.copy(r.bitmap,o,{x:0,y:0},{x:i.x+s,y:i.y+s},r.bitmap)}}this.image=o,this.positions=t}}Ri(em,"GlyphAtlas");class tm{constructor(e){this.tileID=new Au(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.enableTerrain=!!e.enableTerrain,this.isSymbolTile=e.isSymbolTile,this.tileTransform=xh(e.tileID.canonical,e.projection),this.projection=e.projection}parse(e,t,n,r,i){this.status="parsing",this.data=e,this.collisionBoxArray=new Ea;const o=new ff(Object.keys(e.layers).sort()),a=new Xf(this.tileID,this.promoteId);a.bucketLayerIDs=[];const s={},l=new df(256,256),c={featureIndex:a,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:n},u=t.familiesBySource[this.source];for(const v in u){const t=e.layers[v];if(!t)continue;let r=!1,i=!1;for(const e of u[v])"symbol"===e[0].type?r=!0:i=!0;if(!0===this.isSymbolTile&&!r)continue;if(!1===this.isSymbolTile&&!i)continue;1===t.version&&O(`Vector tile source "${this.source}" layer "${v}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const l=o.encode(v),d=[];for(let e=0;e<t.length;e++){const n=t.feature(e),r=a.getId(n,v);d.push({feature:n,id:r,index:e,sourceLayerIndex:l})}for(const e of u[v]){const t=e[0];void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(nm(e,this.zoom,n),(s[t.id]=t.createBucket({index:a.bucketLayerIDs.length,layers:e,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:l,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:n})).populate(d,c,this.tileID.canonical,this.tileTransform),a.bucketLayerIDs.push(e.map((e=>e.id))))}}let d,p,h,f;l.trim();const m={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},g=T(c.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(g).length?r.send("getGlyphs",{uid:this.uid,stacks:g},((e,t)=>{d||(d=e,p=t,_.call(this))}),void 0,!1,m):p={};const y=Object.keys(c.iconDependencies);y.length?r.send("getImages",{icons:y,source:this.source,tileID:this.tileID,type:"icons"},((e,t)=>{d||(d=e,h=t,_.call(this))}),void 0,!1,m):h={};const b=Object.keys(c.patternDependencies);function _(){if(d)return i(d);if(p&&h&&f){const e=new em(p),t=new Vd(h,f);for(const r in s){const i=s[r];i instanceof Jh?(nm(i.layers,this.zoom,n),jp(i,p,e.positions,h,t.iconPositions,this.showCollisionBoxes,n,this.tileID.canonical,this.tileZoom,this.projection)):i.hasPattern&&(i instanceof Wu||i instanceof eu||i instanceof xu)&&(nm(i.layers,this.zoom,n),i.addFeatures(c,this.tileID.canonical,t.patternPositions,n,this.tileTransform))}this.status="done",i(null,{buckets:v(s).filter((e=>!e.isEmpty())),featureIndex:a,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,lineAtlas:l,imageAtlas:t,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?e.positions:null})}}b.length?r.send("getImages",{icons:b,source:this.source,tileID:this.tileID,type:"patterns"},((e,t)=>{d||(d=e,f=t,_.call(this))}),void 0,!1,m):f={},_.call(this)}}function nm(e,t,n){const r=new Ro(t);for(const i of e)i.recalculate(r,n)}class rm{constructor(e){this.entries={},this.scheduler=e}request(e,t,n,r){const i=this.entries[e]=this.entries[e]||{callbacks:[]};if(i.result){const[e,n]=i.result;return this.scheduler?this.scheduler.add((()=>{r(e,n)}),t):r(e,n),()=>{}}return i.callbacks.push(r),i.cancel||(i.cancel=n(((n,r)=>{i.result=[n,r];for(const e of i.callbacks)this.scheduler?this.scheduler.add((()=>{e(n,r)}),t):e(n,r);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{i.result||(i.callbacks=i.callbacks.filter((e=>e!==r)),i.callbacks.length||(i.cancel(),delete this.entries[e]))}}}function im(e,t,n){const r=JSON.stringify(e.request);return e.data&&(this.deduped.entries[r]={result:[null,e.data]}),this.deduped.request(r,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},(t=>{const r=Le(e.request,((e,r,i,o)=>{e?t(e):r&&t(null,{vectorTile:n?void 0:new mu.VectorTile(new vd(r)),rawData:r,cacheControl:i,expires:o})}));return()=>{r.cancel(),t()}}),t)}e.ARRAY_TYPE=fl,e.AUTH_ERR_MSG=re,e.Aabb=tc,e.Actor=class{constructor(e,n,r){this.target=e,this.parent=n,this.mapId=r,this.callbacks={},this.cancelCallbacks={},S(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=j()?e:t,this.scheduler=new hf}send(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;const a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=o,this.callbacks[a]=n);const s=N(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:e,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:Ai(t,s)},s),{cancel:()=>{n&&delete this.callbacks[a],this.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e.cancel()}else if(t.mustQueue||j()){const e=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add((()=>this.processTask(n,t)),e&&e.metadata||{type:"message"})}else this.processTask(n,t)}processTask(e,t){if("<response>"===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(Ni(t.error)):n(null,Ni(t.data)))}else{const n=N(this.globalScope)?void 0:[],r=t.hasCallback?(t,r)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Ai(t):null,data:Ai(r,n)},n)}:e=>{},i=Ni(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,i,r);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],i.source)[e[1]](i,r)}else r(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.CanonicalTileID=ju,e.Color=vt,e.ColorMode=$f,e.CullFaceMode=Zf,e.DEMData=Nf,e.DataConstantProperty=$o,e.DedupedRequest=rm,e.DepthMode=zf,e.EXTENT=xs,e.Elevation=class{isDataAvailableAtPoint(e){const t=this._source();if(!t||e.y<0||e.y>1)return!1;const n=t.getSource().maxzoom,r=1<<n,i=Math.floor(e.x),o=Math.floor((e.x-i)*r),a=Math.floor(e.y*r),s=this.findDEMTileFor(new Au(n,i,n,o,a));return!(!s||!s.dem)}getAtPointOrZero(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.getAtPoint(e,t)||0}getAtPoint(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];null==t&&(t=null);const r=this._source();if(!r)return t;if(e.y<0||e.y>1)return t;const i=r.getSource().maxzoom,o=1<<i,a=Math.floor(e.x),s=e.x-a,l=new Au(i,a,i,Math.floor(s*o),Math.floor(e.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const u=c.dem,d=1<<c.tileID.canonical.z,p=(s*d-c.tileID.canonical.x)*u.dim,h=(e.y*d-c.tileID.canonical.y)*u.dim,f=Math.floor(p),m=Math.floor(h);return(n?this.exaggeration():1)*bn(bn(u.get(f,m),u.get(f,m+1),h-m),bn(u.get(f+1,m),u.get(f+1,m+1),h-m),p-f)}getAtTileOffset(e,t,n){const r=1<<e.canonical.z;return this.getAtPointOrZero(new As(e.wrap+(e.canonical.x+t/xs)/r,(e.canonical.y+n/xs)/r))}getAtTileOffsetFunc(e,t,n,r){return i=>{const o=this.getAtTileOffset(e,i.x,i.y),a=r.upVector(e.canonical,i.x,i.y);return Dl(a,a,o*r.upVectorScale(e.canonical,t,n).metersToTile),a}}getForTilePoints(e,t,n,r){const i=Kf.create(this,e,r);return!!i&&(t.forEach((e=>{e[2]=this.exaggeration()*i.getElevationAt(e[0],e[1],n)})),!0)}getMinMaxForTile(e){const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const n=t.dem.tree,r=t.tileID,i=1<<e.canonical.z-r.canonical.z;let o=e.canonical.x/i-r.canonical.x,a=e.canonical.y/i-r.canonical.y,s=0;for(let l=0;l<e.canonical.z-r.canonical.z&&!n.leaves[s];l++){o*=2,a*=2;const e=2*Math.floor(a)+Math.floor(o);s=n.childOffsets[s]+e,o%=1,a%=1}return{min:this.exaggeration()*n.minimums[s],max:this.exaggeration()*n.maximums[s]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,n){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},e.ErrorEvent=Ve,e.EvaluationParameters=Ro,e.Event=$e,e.Evented=qe,e.FillExtrusionBucket=xu,e.Frustum=ec,e.FrustumCorners=Ql,e.GLOBE_METERS_TO_ECEF=Wp,e.GLOBE_RADIUS=Gp,e.GLOBE_SCALE_MATCH_LATITUDE=45,e.GLOBE_ZOOM_THRESHOLD_MAX=6,e.GLOBE_ZOOM_THRESHOLD_MIN=5,e.GlobeSharedBuffers=class{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const e of this._wireframeSegments)e.destroy()}}_createGrid(e){const t=new ea,n=new ga,r=65;for(let i=0;i<r;i++)for(let e=0;e<r;e++)t.emplaceBack(e,i);this._gridSegments=[];for(let i=0,o=0;i<Yp.length;i++){const e=Yp[i];for(let i=0;i<e;i++)for(let e=0;e<64;e++){const t=i*r+e;n.emplaceBack(t+1,t,t+r),n.emplaceBack(t+r,t+r+1,t+1)}const t=64*e*2;this._gridSegments.push(ws.simpleSegment(0,o,(e+1)*r,t)),o+=t}this._gridBuffer=e.createVertexBuffer(t,Hp.members),this._gridIndexBuffer=e.createIndexBuffer(n,!0)}_createPoles(e){const t=new ga;for(let i=0;i<=64;i++)t.emplaceBack(0,i+1,i+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const n=new _a,r=new _a;this._poleSegments=[];for(let i=0,o=0;i<5;i++){const e=360/(1<<i);n.emplaceBack(0,-Gp,0,.5,0),r.emplaceBack(0,-Gp,0,.5,1);for(let t=0;t<=64;t++){const i=t/64,o=bn(0,e,i),[a,s,l]=lh(bh,_h,o,Gp);n.emplaceBack(a,s,l,i,0),r.emplaceBack(a,s,l,i,1)}this._poleSegments.push(ws.simpleSegment(o,0,66,64)),o+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(n,qp,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(r,qp,!1)}getGridBuffers(e){return[this._gridBuffer,this._gridIndexBuffer,this._gridSegments[e]]}getPoleBuffers(e){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}getWirefameBuffers(e,t){if(!this._wireframeSegments){const t=new xa,n=64,r=n+1;this._wireframeSegments=[];for(let e=0,i=0;e<Yp.length;e++){const o=Yp[e];for(let e=0;e<o;e++)for(let i=0;i<n;i++){const n=e*r+i;t.emplaceBack(n,n+1),t.emplaceBack(n,n+r),t.emplaceBack(n,n+r+1)}const a=o*n*3;this._wireframeSegments.push(ws.simpleSegment(0,i,(o+1)*r,a)),i+=a}this._wireframeIndexBuffer=e.createIndexBuffer(t)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[t]]}},e.GlyphManager=bp,e.ImagePosition=$d,e.LineAtlas=df,e.LngLat=Ss,e.LngLatBounds=ks,e.LocalGlyphMode=vp,e.MAX_MERCATOR_LATITUDE=js,e.MercatorCoordinate=As,e.ONE_EM=ad,e.OverscaledTileID=Au,e.Properties=Go,e.RGBAImage=pc,e.Ray=Jl,e.RequestManager=class{constructor(e,t,n){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",ne,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!ie(e))return e;const n=se(e);return n.path=`/styles/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!ie(e))return e;const n=se(e);return n.path=`/fonts/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeSourceURL(e,t,n,r){if(!ie(e))return e;const i=se(e);return i.path=`/v4/${i.authority}.json`,i.params.push("secure"),n&&i.params.push(`language=${n}`),r&&i.params.push(`worldview=${r}`),this._makeAPIURL(i,this._customAccessToken||t)}normalizeSpriteURL(e,t,n,r){const i=se(e);return ie(e)?(i.path=`/styles/v1${i.path}/sprite${t}${n}`,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=`${t}${n}`,le(i))}normalizeTileURL(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!ie(e))return e;const r=se(e);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||n&&"raster"!==r.authority&&512===n?"@2x":""}${K.supported?".webp":"$1"}`),"raster"===r.authority?r.path=`/${Y.RASTER_URL_PREFIX}${r.path}`:(r.path=r.path.replace(/^.+\/v4\//,"/"),r.path=`/${Y.TILE_URL_VERSION}${r.path}`);const i=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(r.params)||Y.ACCESS_TOKEN;return Y.REQUIRE_ACCESS_TOKEN&&i&&this._skuToken&&r.params.push(`sku=${this._skuToken}`),this._makeAPIURL(r,i)}canonicalizeTileURL(e,t){const n=se(e);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return e;let r="mapbox://";n.path.match(/^\/raster\/v1\//)?r+=`raster/${n.path.replace(`/${Y.RASTER_URL_PREFIX}/`,"")}`:r+=`tiles/${n.path.replace(`/${Y.TILE_URL_VERSION}/`,"")}`;let i=n.params;return t&&(i=i.filter((e=>!e.match(/^access_token=/)))),i.length&&(r+=`?${i.join("&")}`),r}canonicalizeTileset(e,t){const n=!!t&&ie(t),r=[];for(const i of e.tiles||[])oe(i)?r.push(this.canonicalizeTileURL(i,n)):r.push(i);return r}_makeAPIURL(e,t){const n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=se(Y.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==r.path&&(e.path=`${r.path}${e.path}`),!Y.REQUIRE_ACCESS_TOKEN)return le(e);if(t=t||Y.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)throw new Error(`An API access token is required to use Mapbox GL. ${n}`);if("s"===t[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${n}`)}return e.params=e.params.filter((e=>-1===e.indexOf("access_token"))),e.params.push(`access_token=${t||""}`),le(e)}},e.ResourceType=Ee,e.SegmentVector=ws,e.SourceCache=Hf,e.StencilMode=Uf,e.StructArrayLayout1ui2=ka,e.StructArrayLayout2f1f2i16=ha,e.StructArrayLayout2i4=ea,e.StructArrayLayout2ui4=xa,e.StructArrayLayout3f12=ma,e.StructArrayLayout3ui6=ga,e.StructArrayLayout4i8=na,e.StructArrayLayout5f20=_a,e.Texture=uf,e.Tile=Mf,e.Transitionable=Ao,e.Uniform1f=Ja,e.Uniform1i=class extends Xa{constructor(e){super(e),this.current=0}set(e,t,n){this.fetchUniformLocation(e,t)&&this.current!==n&&(this.current=n,this.gl.uniform1i(this.location,n))}},e.Uniform2f=class extends Xa{constructor(e){super(e),this.current=[0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]||(this.current=n,this.gl.uniform2f(this.location,n[0],n[1])))}},e.Uniform3f=class extends Xa{constructor(e){super(e),this.current=[0,0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]||(this.current=n,this.gl.uniform3f(this.location,n[0],n[1],n[2])))}},e.Uniform4f=Qa,e.UniformColor=es,e.UniformMatrix2f=class extends Xa{constructor(e){super(e),this.current=rs}set(e,t,n){if(this.fetchUniformLocation(e,t))for(let r=0;r<4;r++)if(n[r]!==this.current[r]){this.current=n,this.gl.uniformMatrix2fv(this.location,!1,n);break}}},e.UniformMatrix3f=class extends Xa{constructor(e){super(e),this.current=ns}set(e,t,n){if(this.fetchUniformLocation(e,t))for(let r=0;r<9;r++)if(n[r]!==this.current[r]){this.current=n,this.gl.uniformMatrix3fv(this.location,!1,n);break}}},e.UniformMatrix4f=class extends Xa{constructor(e){super(e),this.current=ts}set(e,t,n){if(this.fetchUniformLocation(e,t)){if(n[12]!==this.current[12]||n[0]!==this.current[0])return this.current=n,void this.gl.uniformMatrix4fv(this.location,!1,n);for(let e=1;e<16;e++)if(n[e]!==this.current[e]){this.current=n,this.gl.uniformMatrix4fv(this.location,!1,n);break}}}},e.UnwrappedTileID=Du,e.ValidationError=Vr,e.VectorTileWorkerSource=class extends qe{constructor(e,t,n,r,i){super(),this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=i||im,this.loading={},this.loaded={},this.deduped=new rm(e.scheduler),this.isSpriteLoaded=r,this.scheduler=e.scheduler}loadTile(e,t){const n=e.uid,r=e&&e.request,i=r&&r.collectResourceTiming,o=this.loading[n]=new tm(e);o.abort=this.loadVectorData(e,((a,s)=>{const l=!this.loading[n];if(delete this.loading[n],l||a||!s)return o.status="done",l||(this.loaded[n]=o),t(a);const c=s.rawData,u={};s.expires&&(u.expires=s.expires),s.cacheControl&&(u.cacheControl=s.cacheControl),o.vectorTile=s.vectorTile||new mu.VectorTile(new vd(c));const d=()=>{o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,((e,n)=>{if(e||!n)return t(e);const o={};if(i){const e=U(r);e.length>0&&(o.resourceTiming=JSON.parse(JSON.stringify(e)))}t(null,b({rawTileData:c.slice(0)},n,u,o))}))};this.isSpriteLoaded?d():this.once("isSpriteLoaded",(()=>{this.scheduler?this.scheduler.add(d,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):d()})),this.loaded=this.loaded||{},this.loaded[n]=o}))}reloadTile(e,t){const n=this.loaded,r=e.uid,i=this;if(n&&n[r]){const o=n[r];o.showCollisionBoxes=e.showCollisionBoxes,o.enableTerrain=!!e.enableTerrain,o.projection=e.projection,o.tileTransform=xh(e.tileID.canonical,e.projection);const a=(e,n)=>{const r=o.reloadCallback;r&&(delete o.reloadCallback,o.parse(o.vectorTile,i.layerIndex,this.availableImages,i.actor,r)),t(e,n)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,a):a())}}abortTile(e,t){const n=e.uid,r=this.loading[n];r&&(r.abort&&r.abort(),delete this.loading[n]),t()}removeTile(e,t){const n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()}},e.WritingMode=qd,e.ZoomHistory=Fi,e.add=Il,e.addDynamicAttributes=Wh,e.adjoint=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8];return e[0]=a*u-s*c,e[1]=i*c-r*u,e[2]=r*s-i*a,e[3]=s*l-o*u,e[4]=n*u-i*l,e[5]=i*o-n*s,e[6]=o*c-a*l,e[7]=r*l-n*c,e[8]=n*a-r*o,e},e.asyncAll=y,e.bezier=p,e.bindAll=S,e.boundsAttributes=Cf,e.bufferConvexPolygon=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=g(r-1,-1,e.length-1),o=g(r+1,-1,e.length-1),a=e[r],s=e[o],l=e[i].sub(a).unit(),c=s.sub(a).unit(),u=c.angleWithSep(l.x,l.y),d=l.add(c).unit().mult(-1*t/Math.sin(u/2));n.push(a.add(d))}return n},e.cacheEntryPossiblyAdded=function(e){Te++,Te>_e&&(e.getActor().send("enforceCacheSizeLimit",be),Te=0)},e.calculateGlobeLabelMatrix=function(e,t){const{x:n,y:r}=e.point,i=mh(n,r,e.worldSize/e._pixelsPerMercatorPixel,0,0);return vl(i,i,fh(nh(t)))},e.calculateGlobeMatrix=function(e){const{x:t,y:n}=e.point,{lng:r,lat:i}=e._center;return mh(t,n,e.worldSize,r,i)},e.calculateGlobeMercatorMatrix=function(e){const t=e.pixelsPerMeter,n=t/Is(1,e.center.lat),r=gl(new Float64Array(16));return bl(r,r,[e.point.x,e.point.y,0]),_l(r,r,[n,n,t]),Float32Array.from(r)},e.circumferenceAtLatitude=Ts,e.clamp=f,e.clearTileCache=function(e){const t=ke(),n=[];for(const r in we)t&&n.push(t.delete(r)),delete we[r];e&&Promise.all(n).catch(e).then((()=>e()))},e.clipLine=fp,e.clone=function(e){var t=new fl(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=P,e.collisionCircleLayout=od,e.config=Y,e.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},e.create=function(){var e=new fl(16);return fl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=ml,e.createExpression=Nr,e.createLayout=Jo,e.createStyleLayer=function(e){return"custom"===e.type?new af(e):new cf[e.type](e)},e.cross=zl,e.degToRad=l,e.distance=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},e.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},e.dot=Fl,e.ease=h,e.easeCubicInOut=d,e.emitValidationErrors=Pi,e.endsWith=M,e.enforceCacheSizeLimit=function(e){for(const t in we)Ce(t),we[t].then((t=>{t.keys().then((n=>{for(let r=0;r<n.length-e;r++)t.delete(n[r])}))}))},e.evaluateSizeForFeature=cd,e.evaluateSizeForZoom=ud,e.evaluateVariableOffset=Rp,e.evented=Po,e.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.exactEquals$1=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},e.exported=G,e.exported$1=K,e.extend=b,e.extend$1=He,e.fillExtrusionHeightLift=Pu,e.filterObject=E,e.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},e.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,d=r*s,p=i*a,h=i*s,f=i*l,m=o*a,g=o*s,y=o*l;return e[0]=1-d-f,e[1]=u+y,e[2]=p-g,e[3]=0,e[4]=u-y,e[5]=1-c-f,e[6]=h+m,e[7]=0,e[8]=p+g,e[9]=h-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.fromScaling=kl,e.furthestTileCorner=function(e){const t=Math.round((e+45+360)%360/90)%4;return u[t]},e.getAABBPointSquareDist=function(e,t,n){let r=0;for(let i=0;i<2;++i){const o=n?n[i]:0;e[i]>o&&(r+=(e[i]-o)*(e[i]-o)),t[i]<o&&(r+=(o-t[i])*(o-t[i]))}return r},e.getAnchorAlignment=np,e.getAnchorJustification=Dp,e.getBounds=function(e){let t=1/0,n=1/0,r=-1/0,o=-1/0;for(const i of e)t=Math.min(t,i.x),n=Math.min(n,i.y),r=Math.max(r,i.x),o=Math.max(o,i.y);return{min:new i(t,n),max:new i(r,o)}},e.getColumn=z,e.getGridMatrix=function(e,t,n){const r=t.getNorth(),i=t.getSouth(),o=t.getWest(),a=.015625;return[0,(t.getEast()-o)*a,1<<e.z,(i-r)/Yp[n],0,e.y,r,o,a]},e.getImage=ze,e.getJSON=function(e,t){return Oe(b(e,{type:"json"}),t)},e.getLatitudinalLod=function(e){const t=80.051129;e=f(e,-80.051129,t)/t*90;const n=Math.pow(Math.abs(Math.sin(l(e))),3);return Math.round(n*(Yp.length-1))},e.getMapSessionAPI=ge,e.getPerformanceMeasurement=U,e.getProjection=Vh,e.getRTLTextPluginStatus=Io,e.getReferrer=Ie,e.getTilePoint=function(e,t){let{x:n,y:r}=t;return new i(((n-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0))*e.scale-e.x)*xs,(r*e.scale-e.y)*xs)},e.getTileVec3=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Pl(((t.x-n)*e.scale-e.x)*xs,(t.y*e.scale-e.y)*xs,Rs(t.z,t.y))},e.getVideo=function(e,n){const r=t.document.createElement("video");r.muted=!0,r.onloadstart=function(){n(null,r)};for(let i=0;i<e.length;i++){const n=t.document.createElement("source");De(e[i])||(r.crossOrigin="Anonymous"),n.src=e[i],r.appendChild(n)}return{cancel:()=>{}}},e.globeCenterToScreenPoint=function(e){const t=[0,0,0],n=gl(new Float64Array(16));return vl(n,e.pixelMatrix,e.globeMatrix),Bl(t,t,n),new i(t[0],t[1])},e.globeDenormalizeECEF=fh,e.globeECEFOrigin=function(e,t){const n=[0,0,0];return Bl(n,n,hh(nh(t.canonical))),Bl(n,n,e),n},e.globeNormalizeECEF=hh,e.globePixelsToTileUnits=function(e,t){return xs/(512*Math.pow(2,e))*dh(nh(t))},e.globePoleMatrixForTile=function(e,t,n){const r=gl(new Float64Array(16)),i=(t/(1<<e)-.5)*Math.PI*2;return xl(r,n.globeMatrix,i),Float32Array.from(r)},e.globeTileBounds=nh,e.globeTiltAtLngLat=yh,e.globeToMercatorTransition=gh,e.globeUseCustomAntiAliasing=function(e,t,n){const r=gh(n.zoom),i=e.style.map._antialias,o=!!t.extStandardDerivatives,a=t.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===r&&!i&&!a&&o},e.identity=gl,e.identity$1=Yl,e.invert=yl,e.isFullscreen=function(){return!!t.document.fullscreenElement||!!t.document.webkitFullscreenElement},e.isLngLatBehindGlobe=function(e,t){return yh(e,t)>Math.PI/2*1.01},e.isMapAuthenticated=function(e){return ye.has(e)},e.isMapboxURL=ie,e.isSafariWithAntialiasingBug=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!N(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.latFromMercatorY=Ls,e.len=Zl,e.length=El,e.length$1=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},e.loadVectorTile=im,e.makeRequest=Oe,e.mapValue=function(e,t,n,r,i){return f((e-t)/(n-t)*(i-r)+r,r,i)},e.mercatorScale=Ds,e.mercatorXfromLng=Es,e.mercatorYfromLat=Ps,e.mercatorZfromAltitude=Is,e.mul=Sl,e.mul$1=ql,e.multiply=vl,e.multiply$1=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=n[0],h=n[1],f=n[2],m=n[3],g=n[4],y=n[5],v=n[6],b=n[7],_=n[8];return e[0]=p*r+h*a+f*c,e[1]=p*i+h*s+f*u,e[2]=p*o+h*l+f*d,e[3]=m*r+g*a+y*c,e[4]=m*i+g*s+y*u,e[5]=m*o+g*l+y*d,e[6]=v*r+b*a+_*c,e[7]=v*i+b*s+_*u,e[8]=v*o+b*l+_*d,e},e.multiply$2=Ll,e.nextPowerOfTwo=k,e.normalize=Nl,e.normalize$1=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=o*a,e},e.number=bn,e.ortho=function(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(a+o)*c,e[15]=1,e},e.pbf=vd,e.perspective=function(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(e[10]=(i+r)*(o=1/(r-i)),e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){const n={};for(let r=0;r<t.length;r++){const i=t[r];i in e&&(n[i]=e[i])}return n},e.plugin=Lo,e.pointGeometry=i,e.polygonContainsPoint=il,e.polygonIntersectsBox=ol,e.polygonIntersectsPolygon=Ys,e.polygonizeBounds=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o=new i(n,n),a=e.sub(o),s=t.add(o),l=[a,new i(s.x,a.y),s,new i(a.x,s.y)];return r&&l.push(a.clone()),l},e.posAttributes=Hp,e.postMapLoadEvent=fe,e.postTurnstileEvent=pe,e.potpack=Ud,e.prevPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.radToDeg=c,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.registerForPluginStateChange=function(e){return e({pluginStatus:So,pluginURL:Mo}),Po.on("pluginStateChange",e),e},e.removeAuthState=function(e){ye.delete(e)},e.renderColorRamp=fc,e.resample=Fs,e.rotateX=wl,e.rotateX$1=Kl,e.rotateY=xl,e.rotateY$1=Xl,e.rotateZ=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+c*r,e[1]=a*i+u*r,e[2]=s*i+d*r,e[3]=l*i+p*r,e[4]=c*i-o*r,e[5]=u*i-a*r,e[6]=d*i-s*r,e[7]=p*i-l*r,e},e.rotateZ$1=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*s,e[1]=i*l-r*s,e[2]=o*l+a*s,e[3]=a*l-o*s,e},e.scale=_l,e.scale$1=Hl,e.scale$2=Dl,e.scaleAndAdd=Al,e.setCacheLimits=function(e,t){be=e,_e=t},e.setColumn=function(e,t,n){e[4*t+0]=n[0],e[4*t+1]=n[1],e[4*t+2]=n[2],e[4*t+3]=n[3]},e.setRTLTextPlugin=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(So===wo||So===xo||So===ko)throw new Error("setRTLTextPlugin cannot be called multiple times.");Mo=G.resolveURL(e),So=wo,Co=t,Eo(),n||Oo()},e.smoothstep=m,e.spec=Ze,e.storeAuthState=function(e,t){t?ye.add(e):ye.delete(e)},e.sub=Vl,e.subtract=Ol,e.symbolSize=dd,e.tileAABB=function(e,t,n,r,i,o,a,s,l){if("globe"===l.name)return oh(e,t,new ju(n,r,i));const c=xh({z:n,x:r,y:i},l);return new tc([(o+c.x/c.scale)*t,t*(c.y/c.scale),a],[(o+c.x2/c.scale)*t,t*(c.y2/c.scale),s])},e.tileCornersToBounds=ah,e.tileTransform=xh,e.transformMat3=function(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e},e.transformMat4=Bl,e.transformMat4$1=Gl,e.transformQuat=Ul,e.transitionTileAABBinECEF=rh,e.translate=bl,e.transpose=function(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},e.triggerPluginCompletionEvent=To,e.uniqueId=w,e.updateGlobeVertexNormal=function(e,t,n,r,i){const o=5*t+2;e.float32[o+0]=n,e.float32[o+1]=r,e.float32[o+2]=i},e.validateCustomStyleLayer=function(e){const t=[],n=e.id;return void 0===n&&t.push({message:`layers.${n}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${n}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),t},e.validateFilter=e=>Ei(ui(e)),e.validateFog=e=>Ei(wi(e)),e.validateLayer=e=>Ei(mi(e)),e.validateLight=e=>Ei(bi(e)),e.validateSource=e=>Ei(vi(e)),e.validateStyle=Si,e.validateTerrain=e=>Ei(_i(e)),e.values=v,e.vectorTile=mu,e.version=$,e.warnOnce=O,e.window=t,e.wrap=g})),r(["./shared"],(function(e){function t(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let n="[";for(const r of e)n+=`${t(r)},`;return`${n}]`}let n="{";for(const r of Object.keys(e).sort())n+=`${r}:${t(e[r])},`;return`${n}}`}function n(n){let r="";for(const i of e.refProperties)r+=`/${t(n[i])}`;return r}class r{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,r){for(const n of t)this._layerConfigs[n.id]=n,(this._layers[n.id]=e.createStyleLayer(n)).compileFilter(),this.keyCache[n.id]&&delete this.keyCache[n.id];for(const e of r)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const i=function(e,t){const r={};for(let o=0;o<e.length;o++){const i=t&&t[e[o].id]||n(e[o]);t&&(t[e[o].id]=i);let a=r[i];a||(a=r[i]=[]),a.push(e[o])}const i=[];for(const n in r)i.push(r[n]);return i}(e.values(this._layerConfigs),this.keyCache);for(const e of i){const t=e.map((e=>this._layers[e.id])),n=t[0];if("none"===n.visibility)continue;const r=n.source||"";let i=this.familiesBySource[r];i||(i=this.familiesBySource[r]={});const o=n.sourceLayer||"_geojsonTileLayer";let a=i[o];a||(a=i[o]=[]),a.push(t)}}}class i{loadTile(t,n){const{uid:r,encoding:i,rawImageData:o,padding:a,buildQuadTree:s}=t,l=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap?this.getImageData(o,a):o;n(null,new e.DEMData(r,l,i,a<1,s))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const n=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),n}}var o=function e(t,n){var r,i=t&&t.type;if("FeatureCollection"===i)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===i)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===i)e(t.geometry,n);else if("Polygon"===i)a(t.coordinates,n);else if("MultiPolygon"===i)for(r=0;r<t.coordinates.length;r++)a(t.coordinates[r],n);return t};function a(e,t){if(0!==e.length){s(e[0],t);for(var n=1;n<e.length;n++)s(e[n],!t)}}function s(e,t){for(var n=0,r=0,i=0,o=e.length,a=o-1;i<o;a=i++){var s=(e[i][0]-e[a][0])*(e[a][1]+e[i][1]),l=n+s;r+=Math.abs(n)>=Math.abs(s)?n-l+s:s-l+n,n=l}n+r>=0!=!!t&&e.reverse()}const l=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class c{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.pointGeometry(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const r=[];for(const t of n)r.push(new e.pointGeometry(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,n){return l.call(this,e,t,n)}}class u{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(e){return new c(this._features[e])}}var d=e.vectorTile.VectorTileFeature,p=h;function h(e,t){this.options=t||{},this.features=e,this.length=e.length}function f(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}h.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],i=[],o=0;o<r.length;o++)i.push(new e.pointGeometry(r[o][0],r[o][1]));this.geometry.push(i)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.length;s++){var l=a[s];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),i=Math.max(i,l.y)}return[t,r,n,i]},f.prototype.toGeoJSON=d.prototype.toGeoJSON;var m=y,g=p;function y(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,v,e.layers[n])}(t,n),n.finish()}function v(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,b,r);var i=r.keys;for(n=0;n<i.length;n++)t.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)t.writeMessage(4,C,o[n])}function b(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,_,e),t.writeVarintField(3,n.type),t.writeMessage(4,k,n)}function _(e,t){var n=e.feature,r=e.keys,i=e.values,o=e.keycache,a=e.valuecache;for(var s in n.properties){var l=n.properties[s],c=o[s];if(null!==l){void 0===c&&(r.push(s),o[s]=c=r.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var d=u+":"+l,p=a[d];void 0===p&&(i.push(l),a[d]=p=i.length-1),t.writeVarint(p)}}}function w(e,t){return(t<<3)+(7&e)}function x(e){return e<<1^e>>31}function k(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;s<a;s++){var l=n[s],c=1;1===r&&(c=l.length),t.writeVarint(w(1,c));for(var u=3===r?l.length-1:l.length,d=0;d<u;d++){1===d&&1!==r&&t.writeVarint(w(2,u-1));var p=l[d].x-i,h=l[d].y-o;t.writeVarint(x(p)),t.writeVarint(x(h)),i+=p,o+=h}3===r&&t.writeVarint(w(7,1))}}function C(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function S(e,t,n,r,i,o){if(i-r<=n)return;const a=r+i>>1;M(e,t,a,r,i,o%2),S(e,t,n,r,a-1,o+1),S(e,t,n,a+1,i,o+1)}function M(e,t,n,r,i,o){for(;i>r;){if(i-r>600){const a=i-r+1,s=n-r+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);M(e,t,n,Math.max(r,Math.floor(n-s*c/a+u)),Math.min(i,Math.floor(n+(a-s)*c/a+u)),o)}const a=t[2*n+o];let s=r,l=i;for(T(e,t,r,n),t[2*i+o]>a&&T(e,t,r,i);s<l;){for(T(e,t,s,l),s++,l--;t[2*s+o]<a;)s++;for(;t[2*l+o]>a;)l--}t[2*r+o]===a?T(e,t,r,l):(l++,T(e,t,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function T(e,t,n,r){E(e,n,r),E(t,2*n,2*r),E(t,2*n+1,2*r+1)}function E(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function P(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}m.fromVectorTileJs=y,m.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new p(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return y({layers:n})},m.GeoJSONWrapper=g;const I=e=>e[0],O=e=>e[1];class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Float64Array;this.nodeSize=r,this.points=e;const o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length);for(let l=0;l<e.length;l++)a[l]=l,s[2*l]=t(e[l]),s[2*l+1]=n(e[l]);S(a,s,r,0,a.length-1,0)}range(e,t,n,r){return function(e,t,n,r,i,o,a){const s=[0,e.length-1,0],l=[];let c,u;for(;s.length;){const d=s.pop(),p=s.pop(),h=s.pop();if(p-h<=a){for(let a=h;a<=p;a++)c=t[2*a],u=t[2*a+1],c>=n&&c<=i&&u>=r&&u<=o&&l.push(e[a]);continue}const f=Math.floor((h+p)/2);c=t[2*f],u=t[2*f+1],c>=n&&c<=i&&u>=r&&u<=o&&l.push(e[f]);const m=(d+1)%2;(0===d?n<=c:r<=u)&&(s.push(h),s.push(f-1),s.push(m)),(0===d?i>=c:o>=u)&&(s.push(f+1),s.push(p),s.push(m))}return l}(this.ids,this.coords,e,t,n,r,this.nodeSize)}within(e,t,n){return function(e,t,n,r,i,o){const a=[0,e.length-1,0],s=[],l=i*i;for(;a.length;){const c=a.pop(),u=a.pop(),d=a.pop();if(u-d<=o){for(let i=d;i<=u;i++)P(t[2*i],t[2*i+1],n,r)<=l&&s.push(e[i]);continue}const p=Math.floor((d+u)/2),h=t[2*p],f=t[2*p+1];P(h,f,n,r)<=l&&s.push(e[p]);const m=(c+1)%2;(0===c?n-i<=h:r-i<=f)&&(a.push(d),a.push(p-1),a.push(m)),(0===c?n+i>=h:r+i>=f)&&(a.push(p+1),a.push(u),a.push(m))}return s}(this.ids,this.coords,e,t,n,this.nodeSize)}}const R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},j=Math.fround||(D=new Float32Array(1),e=>(D[0]=+e,D[0]));var D;class A{constructor(e){this.options=q(Object.create(R),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:n,maxZoom:r,nodeSize:i}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;let a=[];for(let s=0;s<e.length;s++)e[s].geometry&&a.push(F(e[s],s));this.trees[r+1]=new L(a,Z,H,i,Float32Array),t&&console.timeEnd(o);for(let s=r;s>=n;s--){const e=+Date.now();a=this._cluster(a,s),this.trees[s]=new L(a,Z,H,i,Float32Array),t&&console.log("z%d: %d clusters in %dms",s,a.length,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){const e=this.getClusters([n,r,180,o],t),a=this.getClusters([-180,r,i,o],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(U(n),$(o),U(i),$(r)),l=[];for(const c of s){const e=a.points[c];l.push(e.numPoints?z(e):this.points[e.index])}return l}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.points[t];if(!o)throw new Error(r);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i.within(o.x,o.y,a),l=[];for(const c of s){const t=i.points[c];t.parentId===e&&l.push(t.numPoints?z(t):this.points[t.index])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,n){const r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:a}=this.options,s=a/o,l=(n-s)/i,c=(n+1+s)/i,u={features:[]};return this._addTileFeatures(r.range((t-s)/i,l,(t+1+s)/i,c),r.points,t,n,i,u),0===t&&this._addTileFeatures(r.range(1-s/i,l,1,c),r.points,i,n,i,u),t===i-1&&this._addTileFeatures(r.range(0,l,s/i,c),r.points,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){const o=this.getChildren(t);for(const a of o){const t=a.properties;if(t&&t.cluster?i+t.point_count<=r?i+=t.point_count:i=this._appendLeaves(e,t.cluster_id,n,r,i):i<r?i++:e.push(a),e.length===n)break}return i}_addTileFeatures(e,t,n,r,i,o){for(const a of e){const e=t[a],s=e.numPoints;let l,c,u;if(s)l=B(e),c=e.x,u=e.y;else{const t=this.points[e.index];l=t.properties,c=U(t.geometry.coordinates[0]),u=$(t.geometry.coordinates[1])}const d={type:1,geometry:[[Math.round(this.options.extent*(c*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:l};let p;s?p=e.id:this.options.generateId?p=e.index:this.points[e.index].id&&(p=this.points[e.index].id),void 0!==p&&(d.id=p),o.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const n=[],{radius:r,extent:i,reduce:o,minPoints:a}=this.options,s=r/(i*Math.pow(2,t));for(let l=0;l<e.length;l++){const r=e[l];if(r.zoom<=t)continue;r.zoom=t;const i=this.trees[t+1],c=i.within(r.x,r.y,s),u=r.numPoints||1;let d=u;for(const e of c){const n=i.points[e];n.zoom>t&&(d+=n.numPoints||1)}if(d>u&&d>=a){let e=r.x*u,a=r.y*u,s=o&&u>1?this._map(r,!0):null;const p=(l<<5)+(t+1)+this.points.length;for(const n of c){const l=i.points[n];if(l.zoom<=t)continue;l.zoom=t;const c=l.numPoints||1;e+=l.x*c,a+=l.y*c,l.parentId=p,o&&(s||(s=this._map(r,!0)),o(s,this._map(l)))}r.parentId=p,n.push(N(e/d,a/d,p,d,s))}else if(n.push(r),d>1)for(const e of c){const r=i.points[e];r.zoom<=t||(r.zoom=t,n.push(r))}}return n}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?q({},e.properties):e.properties;const n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?q({},r):r}}function N(e,t,n,r,i){return{x:j(e),y:j(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function F(e,t){const[n,r]=e.geometry.coordinates;return{x:j(U(n)),y:j($(r)),zoom:1/0,index:t,parentId:-1}}function z(e){return{type:"Feature",id:e.id,properties:B(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),V(e.y)]}};var t}function B(e){const t=e.numPoints,n=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return q(q({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function U(e){return e/360+.5}function $(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function V(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function q(e,t){for(const n in t)e[n]=t[n];return e}function Z(e){return e.x}function H(e){return e.y}function G(e,t,n,r){for(var i,o=r,a=n-t>>1,s=n-t,l=e[t],c=e[t+1],u=e[n],d=e[n+1],p=t+3;p<n;p+=3){var h=W(e[p],e[p+1],l,c,u,d);if(h>o)i=p,o=h;else if(h===o){var f=Math.abs(p-a);f<s&&(i=p,s=f)}}o>r&&(i-t>3&&G(e,t,i,r),e[i+2]=o,n-i>3&&G(e,i,n,r))}function W(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return(a=e-n)*a+(s=t-r)*s}function Y(e,t,n,r){var i={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)K(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)K(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++)K(e,t[r][i])}(i),i}function K(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function X(e,t,n,r){if(t.geometry){var i=t.geometry.coordinates,o=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===o)J(i,s);else if("MultiPoint"===o)for(var c=0;c<i.length;c++)J(i[c],s);else if("LineString"===o)Q(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(c=0;c<i.length;c++)Q(i[c],s=[],a,!1),e.push(Y(l,"LineString",s,t.properties));return}ee(i,s,a,!1)}else if("Polygon"===o)ee(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(c=0;c<t.geometry.geometries.length;c++)X(e,{id:l,geometry:t.geometry.geometries[c],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<i.length;c++){var u=[];ee(i[c],u,a,!0),s.push(u)}}e.push(Y(l,o,s,t.properties))}}function J(e,t){t.push(te(e[0])),t.push(ne(e[1])),t.push(0)}function Q(e,t,n,r){for(var i,o,a=0,s=0;s<e.length;s++){var l=te(e[s][0]),c=ne(e[s][1]);t.push(l),t.push(c),t.push(0),s>0&&(a+=r?(i*c-l*o)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-o,2))),i=l,o=c}var u=t.length-3;t[2]=1,G(t,0,u,n),t[u+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function ee(e,t,n,r){for(var i=0;i<e.length;i++){var o=[];Q(e[i],o,n,r),t.push(o)}}function te(e){return e/360+.5}function ne(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function re(e,t,n,r,i,o,a,s){if(r/=t,o>=(n/=t)&&a<r)return e;if(a<n||o>=r)return null;for(var l=[],c=0;c<e.length;c++){var u=e[c],d=u.geometry,p=u.type,h=0===i?u.minX:u.minY,f=0===i?u.maxX:u.maxY;if(h>=n&&f<r)l.push(u);else if(!(f<n||h>=r)){var m=[];if("Point"===p||"MultiPoint"===p)ie(d,m,n,r,i);else if("LineString"===p)oe(d,m,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===p)se(d,m,n,r,i,!1);else if("Polygon"===p)se(d,m,n,r,i,!0);else if("MultiPolygon"===p)for(var g=0;g<d.length;g++){var y=[];se(d[g],y,n,r,i,!0),y.length&&m.push(y)}if(m.length){if(s.lineMetrics&&"LineString"===p){for(g=0;g<m.length;g++)l.push(Y(u.id,p,m[g],u.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===m.length?"Point":"MultiPoint"),l.push(Y(u.id,p,m,u.tags))}}}return l.length?l:null}function ie(e,t,n,r,i){for(var o=0;o<e.length;o+=3){var a=e[o+i];a>=n&&a<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function oe(e,t,n,r,i,o,a){for(var s,l,c=ae(e),u=0===i?ce:ue,d=e.start,p=0;p<e.length-3;p+=3){var h=e[p],f=e[p+1],m=e[p+2],g=e[p+3],y=e[p+4],v=0===i?h:f,b=0===i?g:y,_=!1;a&&(s=Math.sqrt(Math.pow(h-g,2)+Math.pow(f-y,2))),v<n?b>n&&(l=u(c,h,f,g,y,n),a&&(c.start=d+s*l)):v>r?b<r&&(l=u(c,h,f,g,y,r),a&&(c.start=d+s*l)):le(c,h,f,m),b<n&&v>=n&&(l=u(c,h,f,g,y,n),_=!0),b>r&&v<=r&&(l=u(c,h,f,g,y,r),_=!0),!o&&_&&(a&&(c.end=d+s*l),t.push(c),c=ae(e)),a&&(d+=s)}var w=e.length-3;h=e[w],f=e[w+1],m=e[w+2],(v=0===i?h:f)>=n&&v<=r&&le(c,h,f,m),w=c.length-3,o&&w>=3&&(c[w]!==c[0]||c[w+1]!==c[1])&&le(c,c[0],c[1],c[2]),c.length&&t.push(c)}function ae(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function se(e,t,n,r,i,o){for(var a=0;a<e.length;a++)oe(e[a],t,n,r,i,o,!1)}function le(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ce(e,t,n,r,i,o){var a=(o-t)/(r-t);return e.push(o),e.push(n+(i-n)*a),e.push(1),a}function ue(e,t,n,r,i,o){var a=(o-n)/(i-n);return e.push(t+(r-t)*a),e.push(o),e.push(1),a}function de(e,t){for(var n=[],r=0;r<e.length;r++){var i,o=e[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)i=pe(o.geometry,t);else if("MultiLineString"===a||"Polygon"===a){i=[];for(var s=0;s<o.geometry.length;s++)i.push(pe(o.geometry[s],t))}else if("MultiPolygon"===a)for(i=[],s=0;s<o.geometry.length;s++){for(var l=[],c=0;c<o.geometry[s].length;c++)l.push(pe(o.geometry[s][c],t));i.push(l)}n.push(Y(o.id,a,i,o.tags))}return n}function pe(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function he(e,t){if(e.transformed)return e;var n,r,i,o=1<<e.z,a=e.x,s=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(r=0;r<c.length;r+=2)l.geometry.push(fe(c[r],c[r+1],t,o,a,s));else for(r=0;r<c.length;r++){var d=[];for(i=0;i<c[r].length;i+=2)d.push(fe(c[r][i],c[r][i+1],t,o,a,s));l.geometry.push(d)}}return e.transformed=!0,e}function fe(e,t,n,r,i,o){return[Math.round(n*(e*r-i)),Math.round(n*(t*r-o))]}function me(e,t,n,r,i){for(var o=t===i.maxZoom?0:i.tolerance/((1<<t)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){a.numFeatures++,ge(a,e[s],o,i);var l=e[s].minX,c=e[s].minY,u=e[s].maxX,d=e[s].maxY;l<a.minX&&(a.minX=l),c<a.minY&&(a.minY=c),u>a.maxX&&(a.maxX=u),d>a.maxY&&(a.maxY=d)}return a}function ge(e,t,n,r){var i=t.geometry,o=t.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)ye(a,i,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)ye(a,i[s],e,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<i.length;l++){var c=i[l];for(s=0;s<c.length;s++)ye(a,c[s],e,n,!0,0===s)}if(a.length){var u=t.tags||null;if("LineString"===o&&r.lineMetrics){for(var d in u={},t.tags)u[d]=t.tags[d];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:u};null!==t.id&&(p.id=t.id),e.features.push(p)}}function ye(e,t,n,r,i,o){var a=r*r;if(r>0&&t.size<(i?a:r))n.numPoints+=t.length/3;else{for(var s=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>a)&&(n.numSimplified++,s.push(t[l]),s.push(t[l+1])),n.numPoints++;i&&function(e,t){for(var n=0,r=0,i=e.length,o=i-2;r<i;o=r,r+=2)n+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(n>0===t)for(r=0,i=e.length;r<i/2;r+=2){var a=e[r],s=e[r+1];e[r]=e[i-2-r],e[r+1]=e[i-1-r],e[i-2-r]=a,e[i-1-r]=s}}(s,o),e.push(s)}}function ve(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)X(n,e.features[r],t,r);else X(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,i=re(e,1,-1-n,n,0,-1,2,t),o=re(e,1,1-n,2+n,0,-1,2,t);return(i||o)&&(r=re(e,1,-n,1+n,0,-1,2,t)||[],i&&(r=de(i,1).concat(r)),o&&(r=r.concat(de(o,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function be(e,t,n){return 32*((1<<e)*n+t)+e}function _e(e,t){const n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);const r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);const i=new u(r.features);let o=m(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:i,rawData:o.buffer})}ve.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ve.prototype.splitTile=function(e,t,n,r,i,o,a){for(var s=[e,t,n,r],l=this.options,c=l.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var u=1<<t,d=be(t,n,r),p=this.tiles[d];if(!p&&(c>1&&console.time("creation"),p=this.tiles[d]=me(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var h="z"+t;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(p.source=e,i){if(t===l.maxZoom||t===i)continue;var f=1<<i-t;if(n!==Math.floor(o/f)||r!==Math.floor(a/f))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){c>1&&console.time("clipping");var m,g,y,v,b,_,w=.5*l.buffer/l.extent,x=.5-w,k=.5+w,C=1+w;m=g=y=v=null,b=re(e,u,n-w,n+k,0,p.minX,p.maxX,l),_=re(e,u,n+x,n+C,0,p.minX,p.maxX,l),e=null,b&&(m=re(b,u,r-w,r+k,1,p.minY,p.maxY,l),g=re(b,u,r+x,r+C,1,p.minY,p.maxY,l),b=null),_&&(y=re(_,u,r-w,r+k,1,p.minY,p.maxY,l),v=re(_,u,r+x,r+C,1,p.minY,p.maxY,l),_=null),c>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(g||[],t+1,2*n,2*r+1),s.push(y||[],t+1,2*n+1,2*r),s.push(v||[],t+1,2*n+1,2*r+1)}}},ve.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,o=r.debug;if(e<0||e>24)return null;var a=1<<e,s=be(e,t=(t%a+a)%a,n);if(this.tiles[s])return he(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,c=e,u=t,d=n;!l&&c>0;)c--,u=Math.floor(u/2),d=Math.floor(d/2),l=this.tiles[be(c,u,d)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",c,u,d),o>1&&console.time("drilling down"),this.splitTile(l.source,c,u,d,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?he(this.tiles[s],i):null):null};class we extends e.VectorTileWorkerSource{constructor(e,t,n,r,i){super(e,t,n,r,_e),i&&(this.loadGeoJSON=i)}loadData(t,n){const r=t&&t.request,i=r&&r.collectResourceTiming;this.loadGeoJSON(t,((a,s)=>{if(a||!s)return n(a);if("object"!=typeof s)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{o(s,!0);try{if(t.filter){const n=e.createExpression(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const r=s.features.filter((e=>n.value.evaluate({zoom:0},e)));s={type:"FeatureCollection",features:r}}this._geoJSONIndex=t.cluster?new A(function(t){let{superclusterOptions:n,clusterProperties:r}=t;if(!r||!n)return n;const i={},o={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r);for(const c of l){const[t,n]=r[c],a=e.createExpression(n),s=e.createExpression("string"==typeof t?[t,["accumulated"],["get",c]]:t);i[c]=a.value,o[c]=s.value}return n.map=e=>{s.properties=e;const t={};for(const n of l)t[n]=i[n].evaluate(a,s);return t},n.reduce=(e,t)=>{s.properties=t;for(const n of l)a.accumulated=e[n],e[n]=o[n].evaluate(a,s)},n}(t)).load(s.features):function(e,t){return new ve(e,t)}(s,t.geojsonVtOptions)}catch(a){return n(a)}this.loaded={};const l={};if(i){const n=e.getPerformanceMeasurement(r);n&&(l.resourceTiming={},l.resourceTiming[t.source]=JSON.parse(JSON.stringify(n)))}n(null,l)}}))}reloadTile(e,t){const n=this.loaded;return n&&n[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class xe{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.getProjection({name:"mercator"}),this.workerSourceTypes={vector:e.VectorTileWorkerSource,geojson:we},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,n){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],n()}checkIfReady(e,t,n){n()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,n){this.isSpriteLoaded[t]=n;for(const r in this.workerSources[t]){const i=this.workerSources[t][r];for(const t in i)i[t]instanceof e.VectorTileWorkerSource&&(i[t].isSpriteLoaded=n,i[t].fire(new e.Event("isSpriteLoaded")))}}setImages(e,t,n){this.availableImages[e]=t;for(const r in this.workerSources[e]){const n=this.workerSources[e][r];for(const e in n)n[e].availableImages=t}n()}enableTerrain(e,t,n){this.terrain=t,n()}setProjection(t,n){this.projections[t]=e.getProjection(n)}setLayers(e,t,n){this.getLayerIndex(e).replace(t),n()}updateLayers(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()}loadTile(t,n,r){const i=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;i.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).loadTile(i,r)}loadDEMTile(t,n,r){const i=this.enableTerrain?e.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(t,n.source).loadTile(i,r)}reloadTile(t,n,r){const i=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;i.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).reloadTile(i,r)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)}removeSource(e,t,n){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,r){try{e.plugin.setState(n);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const n=e.plugin.isParsed();r(n?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),n)}}catch(e){r(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t}getWorkerSource(e,t,n){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][n]||(this.workerSources[e][t][n]=new this.workerSourceTypes[t]({send:(t,n,r,i,o,a)=>{this.actor.send(t,n,r,e,o,a)},scheduler:this.actor.scheduler},this.getLayerIndex(e),this.getAvailableImages(e),this.isSpriteLoaded[e])),this.workerSources[e][t][n]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new i),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,n){e.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(e,t,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xe(self)),xe})),r(["./shared"],(function(e){function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(!t(e[r],n[r]))return!1;return!0}return e===n}var n=r;function r(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===i[t=e&&e.failIfMajorPerformanceCaveat]&&(i[t]=function(e){var t,n=function(e){var t=document.createElement("canvas"),n=Object.create(r.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=e,t.getContext("webgl",n)||t.getContext("experimental-webgl",n)}(e);if(!n)return!1;try{t=n.createShader(n.VERTEX_SHADER)}catch(e){return!1}return!(!t||n.isContextLost())&&(n.shaderSource(t,"void main() {}"),n.compileShader(t),!0===n.getShaderParameter(t,n.COMPILE_STATUS))}(t)),i[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var i={};function o(t,n,r){const i=e.window.document.createElement(t);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i}function a(t,n,r){const i=e.window.document.createElementNS("http://www.w3.org/2000/svg",t);for(const e of Object.keys(n))i.setAttributeNS(null,e,n[e]);return r&&r.appendChild(i),i}r.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const s=e.window.document&&e.window.document.documentElement.style,l=s&&void 0!==s.userSelect?"userSelect":"WebkitUserSelect";let c;function u(){s&&l&&(c=s[l],s[l]="none")}function d(){s&&l&&(s[l]=c)}function p(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",p,!0)}function h(){e.window.addEventListener("click",p,!0),e.window.setTimeout((()=>{e.window.removeEventListener("click",p,!0)}),0)}function f(e,t){const n=e.getBoundingClientRect();return y(e,n,t)}function m(e,t){const n=e.getBoundingClientRect(),r=[];for(let i=0;i<t.length;i++)r.push(y(e,n,t[i]));return r}function g(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function y(t,n,r){const i=t.offsetWidth===n.width?1:t.offsetWidth/n.width;return new e.pointGeometry((r.clientX-n.left)*i,(r.clientY-n.top)*i)}function v(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*o-i*r;return a?(e[0]=o*(a=1/a),e[1]=-r*a,e[2]=-i*a,e[3]=n*a,e):null}function b(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class _ extends e.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}hasImage(e){return!!this.getImage(e)}getImage(e){return this.images[e]}addImage(e,t){this._validate(e,t)&&(this.images[e]=t)}_validate(t,n){let r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let n=0;for(const r of e){if(r[0]<n||r[1]<r[0]||t<r[1])return!1;n=r[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let n=!0;if(!this.isLoaded())for(const r of e)this.images[r]||(n=!1);this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,n){const r={};for(const i of t){this.images[i]||this.fire(new e.Event("styleimagemissing",{id:i}));const t=this.images[i];t?r[i]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.warnOnce(`Image "${i}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}n(null,r)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{const n={w:r.data.width+2,h:r.data.height+2,x:0,y:0},i=new e.ImagePosition(n,r);this.patterns[t]={bin:n,position:i}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){const n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:n,h:r}=e.potpack(t),i=this.atlasImage;i.resize({width:n||1,height:r||1});for(const o in this.patterns){const{bin:t}=this.patterns[o],n=t.x+1,r=t.y+1,a=this.images[o].data,s=a.width,l=a.height;e.RGBAImage.copy(a,i,{x:0,y:0},{x:n,y:r},{width:s,height:l}),e.RGBAImage.copy(a,i,{x:0,y:l-1},{x:n,y:r-1},{width:s,height:1}),e.RGBAImage.copy(a,i,{x:0,y:0},{x:n,y:r+l},{width:s,height:1}),e.RGBAImage.copy(a,i,{x:s-1,y:0},{x:n-1,y:r},{width:1,height:l}),e.RGBAImage.copy(a,i,{x:0,y:0},{x:n+s,y:r},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(const t of e){if(this.callbackDispatchedThisFrame[t])continue;this.callbackDispatchedThisFrame[t]=!0;const e=this.images[t];b(e)&&this.updateImage(t,e)}}}const w=new e.Properties({anchor:new e.DataConstantProperty(e.spec.light.anchor),position:new class{constructor(){this.specification=e.spec.light.position}possiblyEvaluate(t,n){return function(t){let[n,r,i]=t;const o=e.degToRad(r+90),a=e.degToRad(i);return{x:n*Math.cos(o)*Math.sin(a),y:n*Math.sin(o)*Math.sin(a),z:n*Math.cos(a),azimuthal:r,polar:i}}(t.expression.evaluate(n))}interpolate(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r),azimuthal:e.number(t.azimuthal,n.azimuthal,r),polar:e.number(t.polar,n.polar,r)}}},color:new e.DataConstantProperty(e.spec.light.color),intensity:new e.DataConstantProperty(e.spec.light.intensity)}),x="-transition";class k extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(w),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._validate(e.validateLight,t,n))for(const r in t){const n=t[r];e.endsWith(r,x)?this._transitionable.setTransition(r.slice(0,-x.length),n):this._transitionable.setValue(r,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}const C=new e.Properties({source:new e.DataConstantProperty(e.spec.terrain.source),exaggeration:new e.DataConstantProperty(e.spec.terrain.exaggeration)}),S="-transition";class M extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(C),this.set(t),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=n}get(){return this._transitionable.serialize()}set(t){for(const n in t){const r=t[n];e.endsWith(n,S)?this._transitionable.setTransition(n.slice(0,-S.length),r):this._transitionable.setValue(n,r)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}}function T(t,n,r,i){const o=e.smoothstep(45,65,r),[a,s]=E(t,i),l=e.length(n);let c=1-Math.min(1,Math.exp((l-a)/(s-a)*-6));return c*=c*c,c=Math.min(1,1.00747*c),c*o*t.alpha}function E(e,t){const n=.5/Math.tan(.5*t);return[e.range[0]+n,e.range[1]+n]}const P=new e.Properties({range:new e.DataConstantProperty(e.spec.fog.range),color:new e.DataConstantProperty(e.spec.fog.color),"high-color":new e.DataConstantProperty(e.spec.fog["high-color"]),"space-color":new e.DataConstantProperty(e.spec.fog["space-color"]),"horizon-blend":new e.DataConstantProperty(e.spec.fog["horizon-blend"]),"star-intensity":new e.DataConstantProperty(e.spec.fog["star-intensity"])}),I="-transition";class O extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(P),this.set(t),this._transitioning=this._transitionable.untransitioned(),this._transform=n}get state(){const t=this._transform,n="globe"===t.projection.name,r=e.globeToMercatorTransition(t.zoom),i=this.properties.get("range"),o=[.5,3];return{range:n?[e.number(o[0],i[0],r),e.number(o[1],i[1],r)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._validate(e.validateFog,t,n)){for(const n of Object.keys(e.spec.fog))t&&void 0===t[n]&&(t[n]=e.spec.fog[n].default);for(const n in t){const r=t[n];e.endsWith(n,I)?this._transitionable.setTransition(n.slice(0,-I.length),r):this._transitionable.setValue(n,r)}}}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const n=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.smoothstep(45,65,t))*n.a}getOpacityAtLatLng(t,n){return this._transform.projection.supportsFog?function(t,n,r){const i=e.MercatorCoordinate.fromLngLat(n),o=r.elevation?r.elevation.getAtPointOrZero(i):0,a=[i.x,i.y,o];return e.transformMat4(a,a,r.mercatorFogMatrix),T(t,a,r.pitch,r._fov)}(this.state,t,n):0}getFovAdjustedRange(e){return this._transform.projection.supportsFog?E(this.state,e):[0,1]}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}class L{constructor(t,n){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.uniqueId();const r=this.workerPool.acquire(this.id);for(let e=0;e<r.length;e++){const t=new L.Actor(r[e],n,this.id);t.name=`Worker ${e}`,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,(()=>{this.ready=!0}))}broadcast(t,n,r){e.asyncAll(this.actors,((e,r)=>{e.send(t,n,r)}),r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}function R(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}L.Actor=e.Actor;class j{constructor(e,t,n,r){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,r)}static createFromScreenPoints(t,n){let r,i;if(t instanceof e.pointGeometry||"number"==typeof t[0]){const o=e.pointGeometry.convert(t);r=[e.pointGeometry.convert(t)],i=n.isPointAboveHorizon(o)}else{const o=e.pointGeometry.convert(t[0]),a=e.pointGeometry.convert(t[1]);r=[o,a],i=e.polygonizeBounds(o,a).every((e=>n.isPointAboveHorizon(e)))}return new j(r,n.getCameraPoint(),i,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],i=e.polygonizeBounds(n,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x<r.x?i.splice(3,0,this.cameraPoint):this.cameraPoint.x>=r.x?i[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(i[3]=this.cameraPoint)),e.bufferConvexPolygon(i,t)}bufferedCameraGeometryGlobe(t){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],i=e.polygonizeBounds(n,r,t),o=this.cameraPoint.clone();switch(3*((o.y>n.y)+(o.y>r.y))+((o.x>n.x)+(o.x>r.x))){case 0:i[0]=o,i[4]=o.clone();break;case 1:i.splice(1,0,o);break;case 2:i[1]=o;break;case 3:i.splice(4,0,o);break;case 5:i.splice(2,0,o);break;case 6:i[3]=o;break;case 7:i.splice(3,0,o);break;case 8:i[2]=o}return i}containsTile(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=t.queryPadding/n._pixelsPerMercatorPixel+1,a=r?this._bufferedCameraMercator(o,n):this._bufferedScreenMercator(o,n);let s=t.tileID.wrap+(a.unwrapped?i:0);const l=a.polygon.map((n=>e.getTilePoint(t.tileTransform,n,s)));if(!e.polygonIntersectsBox(l,0,0,e.EXTENT,e.EXTENT))return;s=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);const c=this.screenGeometryMercator.polygon.map((n=>e.getTileVec3(t.tileTransform,n,s))),u=c.map((t=>new e.pointGeometry(t[0],t[1]))),d=n.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),p=e.getTileVec3(t.tileTransform,d,s),h=c.map((t=>{const n=e.sub(t,t,p);return e.normalize(n,n),new e.Ray(p,n)})),f=R(t,1,n.zoom)*n._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:h,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=e.getBounds(l),m.min.x=e.clamp(m.min.x,0,e.EXTENT),m.min.y=e.clamp(m.min.y,0,e.EXTENT),m.max.x=e.clamp(m.max.x,0,e.EXTENT),m.max.y=e.clamp(m.max.y,0,e.EXTENT),m),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:f};var m}_bufferedScreenMercator(e,t){const n=N(e);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[n]=r,r}}_bufferedCameraMercator(e,t){const n=N(e);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[n]=r,r}}_projectAndResample(t,n){const r=function(t,n){const r=e.multiply([],n.pixelMatrix,n.globeMatrix),i=[0,-e.GLOBE_RADIUS,0,1],o=[0,e.GLOBE_RADIUS,0,1],a=[0,0,0,1];e.transformMat4$1(i,i,r),e.transformMat4$1(o,o,r),e.transformMat4$1(a,a,r);const s=new e.pointGeometry(i[0]/i[3],i[1]/i[3]),l=new e.pointGeometry(o[0]/o[3],o[1]/o[3]),c=e.polygonContainsPoint(t,s)&&i[3]<a[3],u=e.polygonContainsPoint(t,l)&&o[3]<a[3];if(!c&&!u)return null;const d=function(e,t,n){for(let r=1;r<e.length;r++){const i=A(t.pointCoordinate3D(e[r-1]).x),o=A(t.pointCoordinate3D(e[r]).x);if(n<0){if(i<o)return{idx:r,t:-i/(o-1-i)}}else if(o<i)return{idx:r,t:(1-i)/(o+1-i)}}return null}(t,n,c?-1:1);if(!d)return null;const{idx:p,t:h}=d;let f=p>1?D(t.slice(0,p),n):[],m=p<t.length?D(t.slice(p),n):[];f=f.map((t=>new e.pointGeometry(A(t.x),t.y))),m=m.map((t=>new e.pointGeometry(A(t.x),t.y)));const g=[...f];0===g.length&&g.push(m[m.length-1]);const y=e.number(g[g.length-1].y,(0===m.length?f[0]:m[0]).y,h);let v;return v=c?[new e.pointGeometry(0,y),new e.pointGeometry(0,0),new e.pointGeometry(1,0),new e.pointGeometry(1,y)]:[new e.pointGeometry(1,y),new e.pointGeometry(1,1),new e.pointGeometry(0,1),new e.pointGeometry(0,y)],g.push(...v),0===m.length?g.push(f[0]):g.push(...m),{polygon:g.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:!1}}(t,n);if(r)return r;const i=function(t,n){let r=!1,i=-1/0,o=0;for(let e=0;e<t.length-1;e++)t[e].x>i&&(i=t[e].x,o=e);for(let e=0;e<t.length-1;e++){const n=(o+e)%(t.length-1),i=t[n],a=t[n+1];Math.abs(i.x-a.x)>.5&&(i.x<a.x?(i.x+=1,0===n&&(t[t.length-1].x+=1)):(a.x+=1,n+1===t.length-1&&(t[0].x+=1)),r=!0)}const a=e.mercatorXfromLng(n.center.lng);return r&&a<Math.abs(a-1)&&t.forEach((e=>{e.x-=1})),{polygon:t,unwrapped:r}}(D(t,n).map((t=>new e.pointGeometry(A(t.x),t.y))),n);return{polygon:i.polygon.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:i.unwrapped}}}function D(t,n){return e.resample(t,(e=>{const t=n.pointCoordinate3D(e);e.x=t.x,e.y=t.y}),1/256)}function A(e){return e<0?1+e%1:e%1}function N(e){return 100*e|0}function F(t,n,r,i,o){const a=function(r,i){if(r)return o(r);if(i){const r=e.pick(e.extend(i,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(r.vectorLayers=i.vector_layers,r.vectorLayerIds=r.vectorLayers.map((e=>e.id))),i.language_options&&(r.languageOptions=i.language_options),i.language&&i.language[i.id]&&(r.language=i.language[i.id]),i.worldview_options&&(r.worldviewOptions=i.worldview_options),i.worldview?r.worldview=i.worldview[i.id]:i.worldview_default&&(r.worldview=i.worldview_default),r.tiles=n.canonicalizeTileset(r,t.url),o(null,r)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url,null,r,i),e.ResourceType.Source),a):e.exported.frame((()=>a(null,t)))}class z{constructor(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<o&&t.y>=i&&t.y<a}}class B{constructor(e,t,n){this.context=e;const r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const U={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class ${constructor(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;const i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n<this.attributes.length;n++){const r=t.attributes[this.attributes[n].name];void 0!==r&&e.enableVertexAttribArray(r)}}setVertexAttribPointers(e,t,n){for(let r=0;r<this.attributes.length;r++){const i=this.attributes[r],o=t.attributes[i.name];void 0!==o&&e.vertexAttribPointer(o,i.components,e[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class V{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class q extends V{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class Z extends V{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class H extends V{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class G extends V{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class W extends V{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class Y extends V{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class K extends V{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class X extends V{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class J extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class Q extends V{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class ee extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class te extends V{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class ne extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class re extends V{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class ie extends V{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class oe extends V{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class ae extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class se extends V{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class le extends V{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class ce extends V{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class ue extends V{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class de extends V{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class pe extends V{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class he extends V{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class fe extends V{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class me extends V{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class ge extends V{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class ye extends V{constructor(e){super(e),this.vao=e.extVertexArrayObject}getDefault(){return null}set(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)}}class ve extends V{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class be extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class _e extends V{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class we extends V{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class xe extends we{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class ke extends we{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Ce extends ke{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Se{constructor(e,t,n,r){this.context=e,this.width=t,this.height=n;const i=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new xe(e,i),r&&(this.depthAttachment=new ke(e,i))}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class Me{constructor(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new q(this),this.clearDepth=new Z(this),this.clearStencil=new H(this),this.colorMask=new G(this),this.depthMask=new W(this),this.stencilMask=new Y(this),this.stencilFunc=new K(this),this.stencilOp=new X(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new ee(this),this.depthFunc=new te(this),this.blend=new ne(this),this.blendFunc=new re(this),this.blendColor=new ie(this),this.blendEquation=new oe(this),this.cullFace=new ae(this),this.cullFaceSide=new se(this),this.frontFace=new le(this),this.program=new ce(this),this.activeTexture=new ue(this),this.viewport=new de(this),this.bindFramebuffer=new pe(this),this.bindRenderbuffer=new he(this),this.bindTexture=new fe(this),this.bindVertexBuffer=new me(this),this.bindElementBuffer=new ge(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ye(this),this.pixelStoreUnpack=new ve(this),this.pixelStoreUnpackPremultiplyAlpha=new be(this),this.pixelStoreUnpackFlipY=new _e(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=e.getExtension("OES_standard_derivatives"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new B(this,e,t)}createVertexBuffer(e,t,n){return new $(this,e,t,n)}createRenderbuffer(e,t,n){const r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i}createFramebuffer(e,t,n){return new Se(this,e,t,n)}clear(e){let{color:t,depth:n,stencil:r}=e;const i=this.gl;let o=0;t&&(o|=i.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(o|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),void 0!==r&&(o|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(o)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(n){t(n.blendFunction,e.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(n.blendFunction),this.blendColor.set(n.blendColor)),this.colorMask.set(n.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class Te extends e.Evented{constructor(t,n,r,i){super(),this.id=t,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},n),e.extend(this,e.pick(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=F(this._options,this.map._requestManager,null,null,((t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(e.extend(this,n),n.bounds&&(this.tileBounds=new z(n.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(n.tiles),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const r=e.exported.devicePixelRatio>=2,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),((r,i,o,a)=>(delete t.request,t.aborted?(t.state="unloaded",n(null)):r?(t.state="errored",n(r)):i?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:a}),t.setTexture(i,this.map.painter),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),void n(null)):n(null))))}static loadTileData(e,t,n){e.setTexture(t,n)}static unloadTileData(e,t){e.texture&&t.saveTileTexture(e.texture)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}let Ee;function Pe(t,n,r,i,o,a,s,l){const c=[t,r,o,n,i,a,1,1,1],u=[s,l,1],d=e.adjoint([],c),[p,h,f]=e.transformMat3(u,u,e.transpose(d,d));return e.multiply$1(c,[p,0,0,0,h,0,0,0,f],c)}class Ie extends e.Evented{constructor(e,t,n,r){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=t}load(t,n){this._loaded=n||!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),((n,r)=>{if(this._loaded=!0,n)this.fire(new e.ErrorEvent(n));else if(r){const{HTMLImageElement:n}=e.window;this.image=r instanceof n?e.exported.getImageData(r):r,this.width=this.image.width,this.height=this.image.height,t&&(this.coordinates=t),this._finishLoading()}}))}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this.texture&&this.texture.destroy()}setCoordinates(t){this.coordinates=t,this._boundsArray=void 0;const n=t.map(e.MercatorCoordinate.fromLngLat);return this.tileID=function(t){let n=1/0,r=1/0,i=-1/0,o=-1/0;for(const e of t)n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),o=Math.max(o,e.y);const a=Math.max(i-n,o-r),s=Math.max(0,Math.floor(-Math.log(a)/Math.LN2)),l=Math.pow(2,s);return new e.CanonicalTileID(s,Math.floor((n+i)/2*l),Math.floor((r+o)/2*l))}(n),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(t){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray)return;const n=e.tileTransform(this.tileID,this.map.transform.projection),[r,i,o,a]=this.coordinates.map((t=>{const r=n.projection.project(t[0],t[1]);return e.getTilePoint(n,r)._round()}));this.perspectiveTransform=function(t,n,r,i,o,a,s,l,c,u){const d=Pe(0,0,t,0,0,n,t,n),p=Pe(r,i,o,a,s,l,c,u);return e.multiply$1(p,e.adjoint(d,d),p),[p[6]/p[8]*t/e.EXTENT,p[7]/p[8]*n/e.EXTENT]}(this.width,this.height,r.x,r.y,i.x,i.y,a.x,a.y,o.x,o.y);const s=this._boundsArray=new e.StructArrayLayout4i8;s.emplaceBack(r.x,r.y,0,0),s.emplaceBack(i.x,i.y,e.EXTENT,0),s.emplaceBack(a.x,a.y,0,e.EXTENT),s.emplaceBack(o.x,o.y,e.EXTENT,e.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=t.createVertexBuffer(s,e.boundsAttributes.members),this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,n=t.gl;this.texture?this.texture.update(this.image):(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this._prepareData(t)}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Oe={vector:class extends e.Evented{constructor(t,n,r,i){if(super(),this.id=t,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(n,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i),this._tileWorkers={},this._deduped=new e.DedupedRequest}load(t){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"}));const n=this.language||this.map._language,r=this.worldview||this.map._worldview;this._tileJSONRequest=F(this._options,this.map._requestManager,n,r,((i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?(n&&console.warn(`Ensure that your requested language string is a valid BCP-47 code. Found: ${n}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.ErrorEvent(i))):o&&(e.extend(this,o),o.bounds&&(this.tileBounds=new z(o.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))),t&&t(i)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load((()=>{const e=this.map.style._getSourceCaches(this.id);for(const t of e)t.clearTiles()}))}setTiles(e){return this.setSourceProperty((()=>{this._options.tiles=e})),this}setUrl(e){return this.setSourceProperty((()=>{this.url=e,this._options.url=e})),this}_setLanguage(e){return e===this.language||this.setSourceProperty((()=>{this.language=e})),this}_setWorldview(e){return e===this.worldview?this:this.worldviewOptions&&e&&!this.worldviewOptions[e]?(console.warn(`Vector tile source "${this.id}" does not support worldview "${e}".`),this):(this.setSourceProperty((()=>{this.worldview=e})),this)}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,o.bind(this));else if(t.actor=this._tileWorkers[r]=this._tileWorkers[r]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",i,o.bind(this),void 0,!0);else{const n=e.loadVectorTile.call({deduped:this._deduped},i,((e,n)=>{e||!n?o.call(this,e):(i.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},t.actor&&t.actor.send("loadTile",i,o.bind(this),void 0,!0))}),!0);t.request={cancel:n}}function o(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id})}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:Te,"raster-dem":class extends Te{constructor(t,n,r,i){super(t,n,r,i),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function i(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o,a,s){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:a,expires:s});const n=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&(null==Ee&&(Ee=e.window.OffscreenCanvas&&new e.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof e.window.createImageBitmap),Ee),r=1-(o.width-e.prevPowerOfTwo(o.width))/2;r<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const l=n?o:e.exported.getImageData(o,r),c={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:r};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",c,i.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),l}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded"}},geojson:class extends e.Evented{constructor(t,n,r,i){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=r.getActor(),this.setEventedParent(i),this._data=n.data,this._options=e.extend({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const o=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:e.EXTENT,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.Event("dataloading",{dataType:"source"})),this._loaded=!1;const t=e.extend({},this.workerOptions),n=this._data;"string"==typeof n?(t.request=this.map._requestManager.transformRequest(e.exported.resolveURL(n),e.ResourceType.Source),t.request.collectResourceTiming=this._collectResourceTiming):t.data=JSON.stringify(n),this._pendingLoad=this.actor.send(`${this.type}.loadData`,t,((t,n)=>{if(this._loaded=!0,this._pendingLoad=null,t)this.fire(new e.ErrorEvent(t));else{const t={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(t.resourceTiming=n.resourceTiming[this.id]),this.fire(new e.Event("data",t)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(t,n){const r=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(r,{type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},((e,i)=>(delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(i,this.map.painter,"reloadTile"===r),n(null)))),void 0,"loadTile"===r)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Ie{constructor(e,t,n,r){super(e,t,n,r),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,e.ResourceType.Source).url);e.getVideo(this.urls,((t,n)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(this.video=n,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Ie,canvas:class extends Ie{constructor(t,n,r,i){super(t,n,r,i),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},custom:class extends e.Evented{constructor(t,n,r,i){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=n,this.setEventedParent(i),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new z(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.coveringTiles=this._coveringTiles.bind(this),e.extend(this,e.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this._map=t,this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:n,z:r}=e.canonical;return this._implementation.hasTile({x:t,y:n,z:r})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const{x:r,y:i,z:o}=t.tileID.canonical,a=new e.window.AbortController,s=this._implementation.loadTile({x:r,y:i,z:o},{signal:a.signal});if(!s)return this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",n(null);s.cancel=()=>a.abort(),t.request=s.then(function(r){return delete t.request,t.aborted?(t.state="unloaded",n(null)):r?function(t){return t instanceof e.window.ImageData||t instanceof e.window.ImageBitmap||t instanceof e.window.HTMLCanvasElement}(r)?(this.loadTileData(t,r),t.state="loaded",void n(null)):(t.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`))):(this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",n(null))}.bind(this)).catch((e=>{20!==e.code&&(t.state="errored",n(e))}))}loadTileData(e,t){Te.loadTileData(e,t,this._map.painter)}unloadTileData(e){Te.unloadTileData(e,this._map.painter)}prepareTile(e){if(!this._implementation.prepareTile)return null;const{x:t,y:n,z:r}=e.tileID.canonical,i=this._implementation.prepareTile({x:t,y:n,z:r});return i?(this.loadTileData(e,i),e.state="loaded",i):null}unloadTile(e,t){if(this.unloadTileData(e),this._implementation.unloadTile){const{x:t,y:n,z:r}=e.tileID.canonical;this._implementation.unloadTile({x:t,y:n,z:r})}t()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_update(){this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}}},Le=function(t,n,r,i){const o=new Oe[n.type](t,n,r,i);if(o.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${o.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o};function Re(t,n){const r=e.identity([]);return e.scale(r,r,[.5*t.width,.5*-t.height,1]),e.translate(r,r,[1,-1,0]),e.multiply(r,r,t.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(r)}function je(e,t,n,r,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const l=e.tilesIn(r,a,s);l.sort(Ae);const c=[];for(const d of l)c.push({wrappedTileID:d.tile.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(t,n,e._state,d,i,o,Re(e.transform,d.tile.tileID),s)});const u=function(e){const t={},n={};for(const r of e){const e=r.queryResults,i=r.wrappedTileID,o=n[i]=n[i]||{};for(const n in e){const r=e[n],i=o[n]=o[n]||{},a=t[n]=t[n]||[];for(const e of r)i[e.featureIndex]||(i[e.featureIndex]=!0,a.push(e))}}return t}(c);for(const d in u)u[d].forEach((t=>{const n=t.feature,r=n.layer;r&&"background"!==r.type&&"sky"!==r.type&&(n.source=r.source,r["source-layer"]&&(n.sourceLayer=r["source-layer"]),n.state=void 0!==n.id?e.getFeatureState(r["source-layer"],n.id):{})}));return u}function De(e,t){const n=e.getRenderableIds().map((t=>e.getTileByID(t))),r=[],i={};for(let o=0;o<n.length;o++){const e=n[o],a=e.tileID.canonical.key;i[a]||(i[a]=!0,e.querySourceFeatures(r,t))}return r}function Ae(e,t){const n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function Ne(){return null!=yo.workerClass?new yo.workerClass:new e.window.Worker(yo.workerUrl)}const Fe="mapboxgl_preloaded_worker_pool";class ze{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<ze.workerCount;)this.workers.push(new Ne);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[Fe]}numActive(){return Object.keys(this.active).length}}let Be;function Ue(){return Be||(Be=new ze),Be}function $e(t,n){const r={};for(const e in t)"ref"!==e&&(r[e]=t[e]);return e.refProperties.forEach((e=>{e in n&&(r[e]=n[e])})),r}function Ve(e){e=e.slice();const t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=$e(e[n],t[e[n].ref]));return e}ze.workerCount=2;const qe={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function Ze(e,t,n){n.push({command:qe.addSource,args:[e,t[e]]})}function He(e,t,n){t.push({command:qe.removeSource,args:[e]}),n[e]=!0}function Ge(e,t,n,r){He(e,n,r),Ze(e,t,n)}function We(e,n,r){let i;for(i in e[r])if(e[r].hasOwnProperty(i)&&"data"!==i&&!t(e[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!t(e[r][i],n[r][i]))return!1;return!0}function Ye(e,n,r,i,o,a){let s;for(s in n=n||{},e=e||{})e.hasOwnProperty(s)&&(t(e[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}));for(s in n)n.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t(e[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}))}function Ke(e){return e.id}function Xe(e,t){return e[t.id]=t,e}class Je{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);let n=1,r=this._distances[n];const i=t*this.paddedLength+this.padding;for(;r<i&&n<this._distances.length;)r=this._distances[++n];const o=n-1,a=this._distances[o],s=r-a,l=s>0?(i-a)/s:0;return this.points[o].mult(1-l).add(this.points[n].mult(l))}}class Qe{constructor(e,t,n){const r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)}insertCircle(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)}_insertBoxCell(e,t,n,r,i,o){this.boxCells[i].push(o)}_insertCircleCell(e,t,n,r,i,o){this.circleCells[i].push(o)}_query(e,t,n,r,i,o){if(n<0||e>this.width||r<0||t>this.height)return!i&&[];const a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(let e=0;e<this.boxKeys.length;e++)a.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],n=this.circles[3*e+1],r=this.circles[3*e+2];a.push({key:this.circleKeys[e],x1:t-r,y1:n-r,x2:t+r,y2:n+r})}return o?a.filter(o):a}return this._forEachCell(e,t,n,r,this._queryCell,a,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?a.length>0:a}_queryCircle(e,t,n,r,i){const o=e-n,a=e+n,s=t-n,l=t+n;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];const c=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,c,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},i),r?c.length>0:c}query(e,t,n,r,i){return this._query(e,t,n,r,!1,i)}hitTest(e,t,n,r,i){return this._query(e,t,n,r,!0,i)}hitTestCircle(e,t,n,r){return this._queryCircle(e,t,n,!0,r)}_queryCell(e,t,n,r,i,o,a,s){const l=a.seenUids,c=this.boxCells[i];if(null!==c){const i=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(e<=i[c+2]&&t<=i[c+3]&&n>=i[c+0]&&r>=i[c+1]&&(!s||s(this.boxKeys[u]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:i[c],y1:i[c+1],x2:i[c+2],y2:i[c+3]})}}}const u=this.circleCells[i];if(null!==u){const i=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(i[u],i[u+1],i[u+2],e,t,n,r)&&(!s||s(this.circleKeys[c]))){if(a.hitTest)return o.push(!0),!0;{const e=i[u],t=i[u+1],n=i[u+2];o.push({key:this.circleKeys[c],x1:e-n,y1:t-n,x2:e+n,y2:t+n})}}}}}_queryCellCircle(e,t,n,r,i,o,a,s){const l=a.circle,c=a.seenUids,u=this.boxCells[i];if(null!==u){const e=this.bboxes;for(const t of u)if(!c.box[t]){c.box[t]=!0;const n=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!s||s(this.boxKeys[t])))return o.push(!0),!0}}const d=this.circleCells[i];if(null!==d){const e=this.circles;for(const t of d)if(!c.circle[t]){c.circle[t]=!0;const n=3*t;if(this._circlesCollide(e[n],e[n+1],e[n+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[t])))return o.push(!0),!0}}}_forEachCell(e,t,n,r,i,o,a,s){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r);for(let p=l;p<=u;p++)for(let l=c;l<=d;l++)if(i.call(this,e,t,n,r,this.xCellCount*l+p,o,a,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,r,i,o){const a=r-e,s=i-t,l=n+o;return l*l>a*a+s*s}_circleAndRectCollide(e,t,n,r,i,o,a){const s=(o-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;const c=(a-i)/2,u=Math.abs(t-(i+c));if(u>c+n)return!1;if(l<=s||u<=c)return!0;const d=l-s,p=u-c;return d*d+p*p<=n*n}}const et=Math.tan(85*Math.PI/180);function tt(t,n,r,i,o,a,s){const l=e.create();if(r)if("globe"===a.name){const t=e.calculateGlobeLabelMatrix(o,n);e.multiply(l,l,t)}else{const t=v([],s);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],i||e.rotateZ(l,l,o.angle)}else e.multiply(l,o.labelPlaneMatrix,t);return l}function nt(e,t,n,r,i,o,a){const s=tt(e,t,n,r,i,o,a);return"globe"===o.name&&n||(s[2]=s[6]=s[10]=s[14]=0),s}function rt(t,n,r,i,o,a,s){if(r){if("globe"===a.name){const l=tt(t,n,r,i,o,a,s);return e.invert(l,l),e.multiply(l,t,l),l}{const n=e.clone(t),r=e.identity([]);return r[0]=s[0],r[1]=s[1],r[4]=s[2],r[5]=s[3],e.multiply(n,n,r),i||e.rotateZ(n,n,-o.angle),n}}return o.glCoordMatrix}function it(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=[t.x,t.y,r,1];r?e.transformMat4$1(i,i,n):yt(i,i,n);const o=i[3];return{point:[i[0]/o,i[1]/o,i[2]/o],signedDistanceFromCamera:o}}function ot(t,n){const r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,n);const i=r[3];return{point:[r[0]/i,r[1]/i,r[2]/i],signedDistanceFromCamera:i}}function at(e,t){return Math.min(.5+e/t*.5,1.5)}function st(e,t){const n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function lt(t,n,r,i,o,a,s,l,c,u){const d=r.transform,p=i?t.textSizeData:t.iconSizeData,h=e.evaluateSizeForZoom(p,r.transform.zoom),f="globe"===d.projection.name,m=[256/r.width*2+1,256/r.height*2+1],g=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;g.clear();let y=null;f&&(y=i?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const v=t.lineVertexArray,b=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,_=r.transform.width/r.transform.height;let w=!1;for(let x=0;x<b.length;x++){const i=b.get(x);if(i.writingMode!==e.WritingMode.vertical||w||0!==x&&b.get(x-1).writingMode===e.WritingMode.horizontal||(w=!0),(i.hidden||i.writingMode===e.WritingMode.vertical)&&!w){gt(i.numGlyphs,g);continue}w=!1;const f=new e.pointGeometry(i.tileAnchorX,i.tileAnchorY),k=c?c(f):[0,0,0],C=d.projection.projectTilePoint(f.x,f.y,u.canonical),S=[C.x+k[0],C.y+k[1],C.z+k[2]],M=[...S,1];if(e.transformMat4$1(M,M,n),!st(M,m)){gt(i.numGlyphs,g);continue}const T=at(r.transform.cameraToCenterDistance,M[3]),E=e.evaluateSizeForFeature(p,h,i),P=s?E/T:E*T,I=it(new e.pointGeometry(S[0],S[1]),o,S[2]);if(I.signedDistanceFromCamera<=0){gt(i.numGlyphs,g);continue}let O={};const L=s?null:c,R=dt(i,P,!1,l,n,o,a,t.glyphOffsetArray,v,g,y,I.point,f,O,_,L,d.projection,u,s);w=R.useVertical,L&&R.needsFlipping&&(O={}),(R.notEnoughRoom||w||R.needsFlipping&&dt(i,P,!0,l,n,o,a,t.glyphOffsetArray,v,g,y,I.point,f,O,_,L,d.projection,u,s).notEnoughRoom)&&gt(i.numGlyphs,g)}i?(t.text.dynamicLayoutVertexBuffer.updateData(g),y&&t.text.globeExtVertexBuffer.updateData(y)):(t.icon.dynamicLayoutVertexBuffer.updateData(g),y&&t.icon.globeExtVertexBuffer.updateData(y))}function ct(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){const g=s.glyphStartIndex+s.numGlyphs,y=s.lineStartIndex,v=s.lineStartIndex+s.lineLength,b=t.getoffsetX(s.glyphStartIndex),_=t.getoffsetX(g-1),w=ft(e*b,n,r,i,o,a,s.segment,y,v,l,c,u,d,p,!0,h,f,m);if(!w)return null;const x=ft(e*_,n,r,i,o,a,s.segment,y,v,l,c,u,d,p,!0,h,f,m);return x?{first:w,last:x}:null}function ut(t,n,r,i){return t.writingMode===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:t.writingMode===e.WritingMode.vertical?n.y<r.y?{needsFlipping:!0}:null:0!==t.flipState&&function(e,t,n){const r=(t.x-e.x)*n;return 0===r||Math.abs((t.y-e.y)/r)>et}(n,r,i)?1===t.flipState?{needsFlipping:!0}:null:n.x>r.x?{needsFlipping:!0}:null}function dt(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b){const _=n/24,w=t.lineOffsetX*_,x=t.lineOffsetY*_;let k;if(t.numGlyphs>1){const n=t.glyphStartIndex+t.numGlyphs,o=t.lineStartIndex,u=t.lineStartIndex+t.lineLength,d=ct(_,l,w,x,r,p,h,t,c,a,f,g,!1,y,v,b);if(!d)return{notEnoughRoom:!0};const C=ot(d.first.point,s).point,S=ot(d.last.point,s).point,M=new e.pointGeometry(C[0],C[1]),T=new e.pointGeometry(S[0],S[1]);if(i&&!r){const e=ut(t,M,T,m);if(t.flipState=e&&e.needsFlipping?1:2,e)return e}k=[d.first];for(let e=t.glyphStartIndex+1;e<n-1;e++)k.push(ft(_*l.getoffsetX(e),w,x,r,p,h,t.segment,o,u,c,a,f,g,!1,!1,y,v,b));k.push(d.last)}else{if(i&&!r){const n=it(h,o).point,r=t.lineStartIndex+t.segment+1,i=new e.pointGeometry(c.getx(r),c.gety(r)),a=it(i,o),s=a.signedDistanceFromCamera>0?a.point:ht(h,i,n,1,o,void 0,y,v.canonical),l=ut(t,new e.pointGeometry(n[0],n[1]),new e.pointGeometry(s[0],s[1]),m);if(t.flipState=l&&l.needsFlipping?1:2,l)return l}const n=ft(_*l.getoffsetX(t.glyphStartIndex),w,x,r,p,h,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,a,f,g,!1,!1,y,v,b);if(!n)return{notEnoughRoom:!0};k=[n]}if(d)for(const C of k)e.updateGlobeVertexNormal(d,u.length+0,C.up[0],C.up[1],C.up[2]),e.updateGlobeVertexNormal(d,u.length+1,C.up[0],C.up[1],C.up[2]),e.updateGlobeVertexNormal(d,u.length+2,C.up[0],C.up[1],C.up[2]),e.updateGlobeVertexNormal(d,u.length+3,C.up[0],C.up[1],C.up[2]),e.addDynamicAttributes(u,C.point[0],C.point[1],C.point[2],C.angle);else for(const C of k)e.addDynamicAttributes(u,C.point[0],C.point[1],C.point[2],C.angle);return{}}function pt(t,n,r,i,o){const a=i.projectTilePoint(t.x,t.y,n);if(!o)return it(a,r,a.z);const s=o(t);return it(new e.pointGeometry(a.x+s[0],a.y+s[1]),r,a.z+s[2])}function ht(t,n,r,i,o,a,s,l){const c=pt(t.add(t.sub(n)._unit()),l,o,s,a).point,u=e.sub([],r,c);return e.scaleAndAdd([],r,u,i/e.length(u))}function ft(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v){const b=i?t-n:t+n;let _=b>0?1:-1,w=0;i&&(_*=-1,w=Math.PI),_<0&&(w+=Math.PI);let x=_>0?l+s:l+s+1,k=o,C=o,S=0,M=0;const T=Math.abs(b),E=[],P=[];let I=a;const O=()=>{const t=x-_;return 0===S?a:new e.pointGeometry(u.getx(t),u.gety(t))},L=()=>ht(O(),I,C,T-S+1,d,h,g,y.canonical);for(;S+M<=T;){if(x+=_,x<l||x>=c)return null;if(C=k,E.push(k),f&&P.push(I||O()),k=p[x],void 0===k){I=new e.pointGeometry(u.getx(x),u.gety(x));const t=pt(I,y.canonical,d,g,h);k=t.signedDistanceFromCamera>0?p[x]=t.point:L()}else I=null;S+=M,M=e.distance(C,k)}I=I||new e.pointGeometry(u.getx(x),u.gety(x));const R=O();m&&h&&(p[x]=k=void 0===p[x]?k:L(),M=e.distance(C,k));const j=(T-S)/M,D=I.sub(R).mult(j)._add(R),A=e.sub([],k,C),N=e.scaleAndAdd([],C,A,j);let F=[0,0,1],z=A[0],B=A[1];if(v&&(F=g.upVector(y.canonical,D.x,D.y),0!==F[0]||0!==F[1]||1!==F[2])){const t=[1,0,0],n=[0,1,0];t[0]=F[2],t[1]=0,t[2]=-F[0],e.cross(n,F,t),e.normalize(t,t),e.normalize(n,n),z=e.dot(A,t),B=e.dot(A,n)}if(r){const t=e.cross([],F,A);e.normalize(t,t),e.scaleAndAdd(N,N,t,r*_)}const U=w+Math.atan2(B,z);return E.push(N),f&&P.push(D),{point:N,angle:U,path:E,tilePath:P,up:F}}const mt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function gt(e,t){for(let n=0;n<e;n++){const e=t.length;t.resize(e+4),t.float32.set(mt,4*e)}}function yt(e,t,n){const r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+n[15],e}const vt=100;class bt{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Qe(e.width+200,e.height+200,25),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Qe(e.width+200,e.height+200,25);this.transform=e,this.grid=n,this.ignoredGrid=r,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+vt,this.screenBottomBoundary=e.height+vt,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,n,r,i,o,a,s){let l=n.projectedAnchorX,c=n.projectedAnchorY,u=n.projectedAnchorZ;const d=n.elevation,p=n.tileID;if(d&&p){const t=e.getProjection().upVector(p.canonical,n.tileAnchorX,n.tileAnchorY),r=e.getProjection().upVectorScale(p.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=t[0]*d*r,c+=t[1]*d*r,u+=t[2]*d*r}const h=this.projectAndGetPerspectiveRatio(a,[l,c,u],n.tileID,"globe"===e.projection.name||!!d||this.transform.pitch>0,e.getProjection()),f=o*h.perspectiveRatio,m=(n.x1*t+r.x-n.padding)*f+h.point.x,g=(n.y1*t+r.y-n.padding)*f+h.point.y,y=(n.x2*t+r.x+n.padding)*f+h.point.x,v=(n.y2*t+r.y+n.padding)*f+h.point.y,b=h.perspectiveRatio<=.55||h.occluded;return!this.isInsideGrid(m,g,y,v)||!i&&this.grid.hitTest(m,g,y,v,s)||b?{box:[],offscreen:!1,occluded:h.occluded}:{box:[m,g,y,v],offscreen:this.isOffscreen(m,g,y,v),occluded:!1}}placeCollisionCircles(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){const g=[],y=this.transform.elevation,v=y?y.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,t.getProjection()):e=>[0,0,0],b=new e.pointGeometry(r.tileAnchorX,r.tileAnchorY),_=t.getProjection().projectTilePoint(r.tileAnchorX,r.tileAnchorY,m.canonical),w=v(b),x=[_.x+w[0],_.y+w[1],_.z+w[2]],k="globe"===t.projection.name,C=this.projectAndGetPerspectiveRatio(s,[x[0],x[1],x[2]],m,k||!!y||this.transform.pitch>0,t.getProjection()),{perspectiveRatio:S}=C,M=(d?a/S:a*S)/e.ONE_EM,T=it(new e.pointGeometry(x[0],x[1]),l,x[2]).point,E=C.signedDistanceFromCamera>0?ct(M,o,r.lineOffsetX*M,r.lineOffsetY*M,!1,T,b,r,i,l,{},y&&!d?v:null,d&&!!y,t.getProjection(),m,d):null;let P=!1,I=!1,O=!0;if(E&&!C.occluded){const t=.5*h*S+f,r=new e.pointGeometry(-100,-100),i=new e.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),o=new Je,a=E.first,s=E.last;let l=[];for(let e=a.path.length-1;e>=1;e--)l.push(a.path[e]);for(let e=1;e<s.path.length;e++)l.push(s.path[e]);const d=2.5*t;if(c){const e=l.map(y&&!k?(e,t)=>{const n=v(t<a.path.length-1?a.tilePath[a.path.length-1-t]:s.tilePath[t-a.path.length+2]);return e[2]=n[2],ot(e,c)}:e=>ot(e,c));l=e.some((e=>e.signedDistanceFromCamera<=0))?[]:e.map((e=>e.point))}let m=[];if(l.length>0){const t=l.map((t=>new e.pointGeometry(t[0],t[1])));let n=1/0,o=-1/0,a=1/0,s=-1/0;for(let e=0;e<t.length;e++)n=Math.min(n,t[e].x),a=Math.min(a,t[e].y),o=Math.max(o,t[e].x),s=Math.max(s,t[e].y);m=n>=r.x&&o<=i.x&&a>=r.y&&s<=i.y?[t]:o<r.x||n>i.x||s<r.y||a>i.y?[]:e.clipLine([t],r.x,r.y,i.x,i.y)}for(const e of m){o.reset(e,.25*t);let r=0;r=o.length<=.5*t?1:Math.ceil(o.paddedLength/d)+1;for(let e=0;e<r;e++){const i=e/Math.max(r-1,1),a=o.lerp(i),s=a.x+vt,l=a.y+vt;g.push(s,l,t,0);const c=s-t,d=l-t,h=s+t,f=l+t;if(O=O&&this.isOffscreen(c,d,h,f),I=I||this.isInsideGrid(c,d,h,f),!n&&this.grid.hitTestCircle(s,l,t,p)&&(P=!0,!u))return{circles:[],offscreen:!1,collisionDetected:P,occluded:!1}}}}return{circles:!u&&P||!I?[]:g,offscreen:O,collisionDetected:P,occluded:C.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const n=[];let r=1/0,i=1/0,o=-1/0,a=-1/0;for(const u of t){const t=new e.pointGeometry(u.x+vt,u.y+vt);r=Math.min(r,t.x),i=Math.min(i,t.y),o=Math.max(o,t.x),a=Math.max(a,t.y),n.push(t)}const s=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a)),l={},c={};for(const u of s){const t=u.key;if(void 0===l[t.bucketInstanceId]&&(l[t.bucketInstanceId]={}),l[t.bucketInstanceId][t.featureIndex])continue;const r=[new e.pointGeometry(u.x1,u.y1),new e.pointGeometry(u.x2,u.y1),new e.pointGeometry(u.x2,u.y2),new e.pointGeometry(u.x1,u.y2)];e.polygonIntersectsPolygon(n,r)&&(l[t.bucketInstanceId][t.featureIndex]=!0,void 0===c[t.bucketInstanceId]&&(c[t.bucketInstanceId]=[]),c[t.bucketInstanceId].push(t.featureIndex))}return c}insertCollisionBox(e,t,n,r,i){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:i},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,n,r,i){const o=t?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:i};for(let s=0;s<e.length;s+=4)o.insertCircle(a,e[s],e[s+1],e[s+2])}projectAndGetPerspectiveRatio(t,n,r,i,o){const a=[n[0],n[1],n[2],1];let s=!1;if(n[2]||this.transform.pitch>0){e.transformMat4$1(a,a,t);const i="globe"===o.name;this.fogState&&r&&!i&&(s=function(t,n,r,i,o,a){const s=a.calculateFogTileMatrix(o),l=[n,r,i];return e.transformMat4(l,l,s),T(t,l,a.pitch,a._fov)}(this.fogState,n[0],n[1],n[2],r.toUnwrapped(),this.transform)>.9)}else yt(a,a,t);return{point:new e.pointGeometry((a[0]/a[3]+1)/2*this.transform.width+vt,(-a[1]/a[3]+1)/2*this.transform.height+vt),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(o)/a[3]*.5,1.5),signedDistanceFromCamera:a[3],occluded:i&&a[2]>a[3]||s}}isOffscreen(e,t,n,r){return n<vt||e>=this.screenRightBoundary||r<vt||t>this.screenBottomBoundary}isInsideGrid(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t}}function _t(t,n,r){const i=n.createTileMatrix(t,t.worldSize,r.toUnwrapped());return e.multiply(new Float32Array(16),t.projMatrix,i)}function wt(e,t,n){if(t.projection.name===n.projection.name)return e.projMatrix;const r=n.clone();return r.setProjection(t.projection),_t(r,t.getProjection(),e)}function xt(e,t,n){return t.name===n.projection.name?e.projMatrix:_t(n,t,e)}class kt{constructor(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class Ct{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.text=new kt(e?e.text:null,t,n,i),this.icon=new kt(e?e.icon:null,t,r,i),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class St{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.text=e,this.icon=t,this.skipFade=n,this.clipped=r}}class Mt{constructor(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]}}class Tt{constructor(e,t,n,r,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i}}class Et{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Pt(t,n,r,i,o){const{horizontalAlign:a,verticalAlign:s}=e.getAnchorAlignment(t),l=-(a-.5)*n,c=-(s-.5)*r,u=e.evaluateVariableOffset(t,i);return new e.pointGeometry(l+u[0]*o,c+u[1]*o)}function It(t,n,r,i,o){const a=new e.pointGeometry(t,n);return r&&a._rotate(i?o:-o),a}class Ot{constructor(e,t,n,r,i){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new bt(this.transform,i),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new Et(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,r,i){const o=r.getBucket(n),a=r.latestFeatureIndex;if(!o||!a||n.id!==o.layerIds[0])return;const s=o.layers[0].layout,l=r.collisionBoxArray,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/e.EXTENT,d=r.tileID.toUnwrapped();this.transform.setProjection(o.projection);const p=(h=r.tileID,f=o.getProjection(),m=this.transform,f.name===this.projection?m.calculateProjMatrix(h.toUnwrapped()):_t(m,f,h));var h,f,m;const g="map"===s.get("text-pitch-alignment"),y="map"===s.get("text-rotation-alignment");n.compileFilter();const v=n.dynamicFilter(),b=n.dynamicFilterNeedsFeature(),_=this.transform.calculatePixelsToTileUnitsMatrix(r),w=nt(p,r.tileID.canonical,g,y,this.transform,o.getProjection(),_);let x=null;if(g){const t=rt(p,r.tileID.canonical,g,y,this.transform,o.getProjection(),_);x=e.multiply([],this.transform.labelPlaneMatrix,t)}let k=null;v&&r.latestFeatureIndex&&(k={unwrappedTileID:d,dynamicFilter:v,dynamicFilterNeedsFeature:b,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new Tt(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);const C={bucket:o,layout:s,posMatrix:p,textLabelPlaneMatrix:w,labelToScreenMatrix:x,clippingData:k,scale:c,textPixelRatio:u,holdingForFade:r.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(const e of o.sortKeyRanges){const{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i}=e;t.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i,parameters:C})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:C})}attemptAnchorPlacement(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y){const v=[d.textOffset0,d.textOffset1],b=Pt(e,n,r,v,i),_=this.collisionIndex.placeCollisionBox(h,i,t,It(b.x,b.y,o,a,this.transform.angle),u,s,l,c.predicate);if((!m||0!==this.collisionIndex.placeCollisionBox(h,h.getSymbolInstanceIconSize(y,this.transform.zoom,p),m,It(b.x,b.y,o,a,this.transform.angle),u,s,l,c.predicate).box.length)&&_.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(t=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:v,width:n,height:r,anchor:e,textScale:i,prevAnchor:t},this.markUsedJustification(h,e,d,f),h.allowVerticalPlacement&&(this.markUsedOrientation(h,f,d),this.placedOrientations[d.crossTileID]=f),{shift:b,placedGlyphBoxes:_}}}placeLayerBucketPart(t,n,r,i){const{bucket:o,layout:a,posMatrix:s,textLabelPlaneMatrix:l,labelToScreenMatrix:c,clippingData:u,textPixelRatio:d,holdingForFade:p,collisionBoxArray:h,partiallyEvaluatedTextSize:f,partiallyEvaluatedIconSize:m,collisionGroup:g}=t.parameters,y=a.get("text-optional"),v=a.get("icon-optional"),b=a.get("text-allow-overlap"),_=a.get("icon-allow-overlap"),w="map"===a.get("text-rotation-alignment"),x="map"===a.get("text-pitch-alignment"),k="none"!==a.get("icon-text-fit"),C="viewport-y"===a.get("symbol-z-order");this.transform.setProjection(o.projection);let S=b&&(_||!o.hasIconData()||v),M=_&&(b||!o.hasTextData()||y);!o.collisionArrays&&h&&o.deserializeCollisionBoxes(h),r&&i&&o.updateCollisionDebugBuffers(this.transform.zoom,h);const T=(t,i,h)=>{if(u){const r={zoom:this.transform.zoom,pitch:this.transform.pitch};let i=null;if(u.dynamicFilterNeedsFeature){const e=this.retainedQueryData[o.bucketInstanceId];i=u.featureIndex.loadFeature({featureIndex:t.featureIndex,bucketIndex:e.bucketIndex,sourceLayerIndex:e.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,u.dynamicFilter)(r,i,this.retainedQueryData[o.bucketInstanceId].tileID.canonical,new e.pointGeometry(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[t.crossTileID]=new St(!1,!1,!1,!0),void(n[t.crossTileID]=!0)}if(n[t.crossTileID])return;if(p)return void(this.placements[t.crossTileID]=new St(!1,!1,!1));let C=!1,T=!1,E=!0,P=!1,I=!1,O=null,L={box:null,offscreen:null,occluded:null},R={box:null,offscreen:null,occluded:null},j=null,D=null,A=null,N=0,F=0,z=0;h.textFeatureIndex?N=h.textFeatureIndex:t.useRuntimeCollisionCircles&&(N=t.featureIndex),h.verticalTextFeatureIndex&&(F=h.verticalTextFeatureIndex);const B=e=>{e.tileID=this.retainedQueryData[o.bucketInstanceId].tileID,(this.transform.elevation||e.elevation)&&(e.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[o.bucketInstanceId].tileID,e.tileAnchorX,e.tileAnchorY):0)},U=h.textBox;if(U){B(U);const n=n=>{let r=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!n&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,r=e,this.markUsedOrientation(o,r,t))}return r},r=(n,r)=>{if(o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&h.verticalTextBox){for(const t of o.writingModes)if(t===e.WritingMode.vertical?(L=r(),R=L):L=n(),L&&L.box&&L.box.length)break}else L=n()};if(a.get("text-variable-anchor")){let l=a.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[t.crossTileID]){const e=this.prevPlacement.variableOffsets[t.crossTileID];l.indexOf(e.anchor)>0&&(l=l.filter((t=>t!==e.anchor)),l.unshift(e.anchor))}const c=(e,n,r)=>{const a=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,i),c=(e.x2-e.x1)*a+2*e.padding,u=(e.y2-e.y1)*a+2*e.padding,p=k&&!_?n:null;p&&B(p);let h={box:[],offscreen:!1,occluded:!1};const y=b?2*l.length:l.length;for(let v=0;v<y;++v){const n=this.attemptAnchorPlacement(l[v%l.length],e,c,u,a,w,x,d,s,g,v>=l.length,t,i,o,r,p,f,m);if(n&&(h=n.placedGlyphBoxes,h&&h.box&&h.box.length)){C=!0,O=n.shift;break}}return h};r((()=>c(U,h.iconBox,e.WritingMode.horizontal)),(()=>{const n=h.verticalTextBox;return n&&B(n),o.allowVerticalPlacement&&!(L&&L.box&&L.box.length)&&t.numVerticalGlyphVertices>0&&n?c(n,h.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null,occluded:null}})),L&&(C=L.box,E=L.offscreen,P=L.occluded);const u=n(L&&L.box);if(!C&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(o,e.anchor,t,u))}}else{const a=(n,r)=>{const a=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,i),l=this.collisionIndex.placeCollisionBox(o,a,n,new e.pointGeometry(0,0),b,d,s,g.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(o,r,t),this.placedOrientations[t.crossTileID]=r),l};r((()=>a(U,e.WritingMode.horizontal)),(()=>{const n=h.verticalTextBox;return o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?(B(n),a(n,e.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}})),n(L&&L.box&&L.box.length)}}if(j=L,C=j&&j.box&&j.box.length>0,E=j&&j.offscreen,P=j&&j.occluded,t.useRuntimeCollisionCircles){const n=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),i=e.evaluateSizeForFeature(o.textSizeData,f,n),u=a.get("text-padding");D=this.collisionIndex.placeCollisionCircles(o,b,n,o.lineVertexArray,o.glyphOffsetArray,i,s,l,c,r,x,g.predicate,t.collisionCircleDiameter*i/e.ONE_EM,u,this.retainedQueryData[o.bucketInstanceId].tileID),C=b||D.circles.length>0&&!D.collisionDetected,E=E&&D.offscreen,P=D.occluded}if(h.iconFeatureIndex&&(z=h.iconFeatureIndex),h.iconBox){const t=t=>{B(t);const n=k&&O?It(O.x,O.y,w,x,this.transform.angle):new e.pointGeometry(0,0),r=o.getSymbolInstanceIconSize(m,this.transform.zoom,i);return this.collisionIndex.placeCollisionBox(o,r,t,n,_,d,s,g.predicate)};R&&R.box&&R.box.length&&h.verticalIconBox?(A=t(h.verticalIconBox),T=A.box.length>0):(A=t(h.iconBox),T=A.box.length>0),E=E&&A.offscreen,I=A.occluded}const $=y||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,V=v||0===t.numIconVertices;if($||V?V?$||(T=T&&C):C=T&&C:T=C=T&&C,C&&j&&j.box&&this.collisionIndex.insertCollisionBox(j.box,a.get("text-ignore-placement"),o.bucketInstanceId,R&&R.box&&F?F:N,g.ID),T&&A&&this.collisionIndex.insertCollisionBox(A.box,a.get("icon-ignore-placement"),o.bucketInstanceId,z,g.ID),D&&(C&&this.collisionIndex.insertCollisionCircles(D.circles,a.get("text-ignore-placement"),o.bucketInstanceId,N,g.ID),r)){const e=o.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new Mt);for(let n=0;n<D.circles.length;n+=4)t.circles.push(D.circles[n+0]),t.circles.push(D.circles[n+1]),t.circles.push(D.circles[n+2]),t.circles.push(D.collisionDetected?1:0)}const q="globe"!==o.projection.name;S=S&&(q||!P),M=M&&(q||!I),this.placements[t.crossTileID]=new St(C||S,T||M,E||o.justReloaded),n[t.crossTileID]=!0};if(C){const e=o.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const n=e[t];T(o.symbolInstances.get(n),n,o.collisionArrays[n])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)T(o.symbolInstances.get(e),e,o.collisionArrays[e]);if(r&&o.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[o.bucketInstanceId];e.invert(t.invProjMatrix,s),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1}markUsedJustification(t,n,r,i){let o;o=i===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(n)];const a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];for(const e of a)e>=0&&(t.text.placedSymbolArray.get(e).crossTileID=o>=0&&e!==o?0:r.crossTileID)}markUsedOrientation(t,n,r){const i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(const e of a)t.text.placedSymbolArray.get(e).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(const s in this.placements){const e=this.placements[s],t=i[s];t?(this.opacities[s]=new Ct(t,r,e.text,e.icon,null,e.clipped),n=n||e.text!==t.text.placed||e.icon!==t.icon.placed):(this.opacities[s]=new Ct(null,r,e.text,e.icon,e.skipFade,e.clipped),n=n||e.text||e.icon)}for(const s in i){const e=i[s];if(!this.opacities[s]){const t=new Ct(e,r,!1,!1);t.isHidden()||(this.opacities[s]=t,n=n||e.text.placed||e.icon.placed)}}for(const s in o)this.variableOffsets[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.variableOffsets[s]=o[s]);for(const s in a)this.placedOrientations[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.placedOrientations[s]=a[s]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const n={};for(const r of t){const t=r.getBucket(e);t&&r.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,n,r.collisionBoxArray)}}updateBucketOpacities(t,n,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const i=t.layers[0].layout,o=!!t.layers[0].dynamicFilter(),a=new Ct(null,0,!1,!1,!0),s=i.get("text-allow-overlap"),l=i.get("icon-allow-overlap"),c=i.get("text-variable-anchor"),u="map"===i.get("text-rotation-alignment"),d="map"===i.get("text-pitch-alignment"),p="none"!==i.get("icon-text-fit"),h=new Ct(null,0,s&&(l||!t.hasIconData()||i.get("icon-optional")),l&&(s||!t.hasTextData()||i.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);const f=(e,t,n)=>{for(let r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n)};let m=0;for(let g=0;g<t.symbolInstances.length;g++){const r=t.symbolInstances.get(g),{numHorizontalGlyphVertices:i,numVerticalGlyphVertices:s,crossTileID:l}=r;let y=this.opacities[l];n[l]?y=a:y||(y=h,this.opacities[l]=y),n[l]=!0;const v=i>0||s>0,b=r.numIconVertices>0,_=this.placedOrientations[r.crossTileID],w=_===e.WritingMode.vertical,x=_===e.WritingMode.horizontal||_===e.WritingMode.horizontalOnly;if(!v&&!b||y.isHidden()||m++,v){const e=Bt(y.text);f(t.text,i,w?Ut:e),f(t.text,s,x?Ut:e);const n=y.text.isHidden();[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex].forEach((e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=n||w?1:0)})),r.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).hidden=n||x?1:0);const o=this.variableOffsets[r.crossTileID];o&&this.markUsedJustification(t,o.anchor,r,_);const a=this.placedOrientations[r.crossTileID];a&&(this.markUsedJustification(t,"left",r,a),this.markUsedOrientation(t,a,r))}if(b){const e=Bt(y.icon);r.placedIconSymbolIndex>=0&&(f(t.icon,r.numIconVertices,w?Ut:e),t.icon.placedSymbolArray.get(r.placedIconSymbolIndex).hidden=y.icon.isHidden()),r.verticalPlacedIconSymbolIndex>=0&&(f(t.icon,r.numVerticalIconVertices,x?Ut:e),t.icon.placedSymbolArray.get(r.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const n=t.collisionArrays[g];if(n){let r=new e.pointGeometry(0,0),i=!0;if(n.textBox||n.verticalTextBox){if(c){const e=this.variableOffsets[l];e?(r=Pt(e.anchor,e.width,e.height,e.textOffset,e.textScale),u&&r._rotate(d?this.transform.angle:-this.transform.angle)):i=!1}o&&(i=!y.clipped),n.textBox&&Lt(t.textCollisionBox.collisionVertexArray,y.text.placed,!i||w,r.x,r.y),n.verticalTextBox&&Lt(t.textCollisionBox.collisionVertexArray,y.text.placed,!i||x,r.x,r.y)}const a=i&&Boolean(!x&&n.verticalIconBox);n.iconBox&&Lt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,a,p?r.x:0,p?r.y:0),n.verticalIconBox&&Lt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,!a,p?r.x:0,p?r.y:0)}}}if(t.fullyClipped=0===m,t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e}setStale(){this.stale=!0}}function Lt(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}const Rt=Math.pow(2,25),jt=Math.pow(2,24),Dt=Math.pow(2,17),At=Math.pow(2,16),Nt=Math.pow(2,9),Ft=Math.pow(2,8),zt=Math.pow(2,1);function Bt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Rt+t*jt+n*Dt+t*At+n*Nt+t*Ft+n*zt+t}const Ut=0;class $t{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,n,r,i){const o=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(o,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(((e,t)=>e.sortKey-t.sortKey)));this._currentPartIndex<o.length;){const e=o[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,n,0===e.symbolInstanceStart),this._currentPartIndex++,i())return!0}return!1}}class Vt{constructor(e,t,n,r,i,o,a,s){this.placement=new Ot(e,i,o,a,s),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1}isDone(){return this._done}continuePlacement(t,n,r){const i=e.exported.now(),o=()=>{const t=e.exported.now()-i;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=n[t[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=i)&&(!e.maxzoom||e.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new $t(e)),this._inProgressLayer.continuePlacement(r[e.source],this.placement,this._showCollisionBoxes,e,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const qt=512/e.EXTENT/2;class Zt{constructor(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(let r=0;r<t.length;r++){const n=t.get(r),i=n.key;this.indexedSymbolInstances[i]||(this.indexedSymbolInstances[i]=[]),this.indexedSymbolInstances[i].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,e)})}}getScaledCoordinates(t,n){const r=qt/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*e.EXTENT+t.tileAnchorX)*r),y:Math.floor((n.canonical.y*e.EXTENT+t.tileAnchorY)*r)}}findMatches(e,t,n){const r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let i=0;i<e.length;i++){const o=e.get(i);if(o.crossTileID)continue;const a=this.indexedSymbolInstances[o.key];if(!a)continue;const s=this.getScaledCoordinates(o,t);for(const e of a)if(Math.abs(e.coord.x-s.x)<=r&&Math.abs(e.coord.y-s.y)<=r&&!n[e.crossTileID]){n[e.crossTileID]=!0,o.crossTileID=e.crossTileID;break}}}}class Ht{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Gt{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const n in this.indexes){const e=this.indexes[n],r={};for(const n in e){const i=e[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),r[i.tileID.key]=i}this.indexes[n]=r}this.lng=e}addBucket(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let i=0;i<t.symbolInstances.length;i++)t.symbolInstances.get(i).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});const r=this.usedCrossTileIDs[e.overscaledZ];for(const i in this.indexes){const n=this.indexes[i];if(Number(i)>e.overscaledZ)for(const i in n){const o=n[i];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,r)}else{const o=n[e.scaledTo(Number(i)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let i=0;i<t.symbolInstances.length;i++){const e=t.symbolInstances.get(i);e.crossTileID||(e.crossTileID=n.generate(),r[e.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Zt(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const n in t.indexedSymbolInstances)for(const r of t.indexedSymbolInstances[n])delete this.usedCrossTileIDs[e][r.crossTileID]}removeStaleBuckets(e){let t=!1;for(const n in this.indexes){const r=this.indexes[n];for(const i in r)e[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],t=!0)}return t}}class Wt{constructor(){this.layerIndexes={},this.crossTileIDs=new Ht,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,n,r){let i=this.layerIndexes[e.id];void 0===i&&(i=this.layerIndexes[e.id]=new Gt);let o=!1;const a={};"globe"!==r.name&&i.handleWrapJump(n);for(const s of t){const t=s.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(s.tileID,t,this.crossTileIDs)&&(o=!0),a[t.bucketInstanceId]=!0)}return i.removeStaleBuckets(a)&&(o=!0),o}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const n in this.layerIndexes)t[n]||delete this.layerIndexes[n]}}const Yt=(t,n)=>e.emitValidationErrors(t,n&&n.filter((e=>"source.canvas"!==e.identifier))),Kt=e.pick(qe,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Xt=e.pick(qe,["setCenter","setZoom","setBearing","setPitch"]),Jt={version:8,layers:[],sources:{}},Qt={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class en extends e.Evented{constructor(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.map=t,this.dispatcher=new L(Ue(),this),this.imageManager=new _,this.imageManager.setEventedParent(this),this.glyphManager=new e.GlyphManager(t._requestManager,n.localFontFamily?e.LocalGlyphMode.all:n.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,n.localFontFamily||n.localIdeographFontFamily),this.lineAtlas=new e.LineAtlas(256,512),this.crossTileSymbolIndex=new Wt,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const r=this;this._rtlTextPluginCallback=en.registerForPluginStateChange((t=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},((t,n)=>{if(e.triggerPluginCompletionEvent(t),n&&n.every((e=>e)))for(const e in r._sourceCaches){const t=r._sourceCaches[e],n=t.getSource().type;"vector"!==n&&"geojson"!==n||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(const n in this._layers){const e=this._layers[n];e.source===t.id&&this._validateLayer(e)}}))}loadURL(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.Event("dataloading",{dataType:"style"}));const r="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);const i=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(i,((t,n)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):n&&this._load(n,r)}))}loadJSON(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame((()=>{this._request=null,this._load(t,!1!==n.validate)}))}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Jt,!1)}_updateLayerCount(e,t){const n=t?1:-1;e.is3D()&&(this._num3DLayers+=n),"circle"===e.type&&(this._numCircleLayers+=n),"symbol"===e.type&&(this._numSymbolLayers+=n)}_load(t,n){if(n&&Yt(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=e.clone$1(t),this._updateMapProjection();for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);const r=Ve(this.stylesheet.layers);this._order=r.map((e=>e.id)),this._layers={},this._serializedLayers={};for(let i of r)i=e.createStyleLayer(i),i.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=i,this._serializedLayers[i.id]=i.serialize(),this._updateLayerCount(i,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new k(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(t){this._spriteRequest=function(t,n,r){let i,o,a;const s=e.exported.devicePixelRatio>1?"@2x":"";let l=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),((e,t)=>{l=null,a||(a=e,i=t,u())})),c=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),((e,t)=>{c=null,a||(a=e,o=t,u())}));function u(){if(a)r(a);else if(i&&o){const t=e.exported.getImageData(o),n={};for(const r in i){const{width:o,height:a,x:s,y:l,sdf:c,pixelRatio:u,stretchX:d,stretchY:p,content:h}=i[r],f=new e.RGBAImage({width:o,height:a});e.RGBAImage.copy(t,f,{x:s,y:l},{x:0,y:0},{width:o,height:a}),n[r]={data:f,pixelRatio:u,sdf:c,stretchX:d,stretchY:p,content:h}}r(null,n)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,((t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(n)for(const e in n)this.imageManager.addImage(e,n[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new e.Event("data",{dataType:"style"}))}))}_validateLayer(t){const n=this.getSource(t.source);if(!n)return;const r=t.sourceLayer;r&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${r}" does not exist on source "${n.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const n of e){const e=this._layers[n];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(e){return!!this.terrain&&Qt[e.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(e.length||n.length)&&this._updateWorkerLayers(e,n);for(const t in this._updatedSources){const e=this._updatedSources[t];"reload"===e?this._reloadSource(t):"clear"===e&&this._clearSource(t)}this._updateTilesForChangedImages();for(const r in this._updatedPaintProps)this._layers[r].updateTransitions(t);this.light.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._resetUpdates()}const r={};for(const e in this._sourceCaches){const t=this._sourceCaches[e];r[e]=t.used,t.used=!1}for(const e of this._order){const n=this._layers[e];if(n.recalculate(t,this._availableImages),!n.isHidden(t.zoom)){const e=this._getLayerSourceCache(n);e&&(e.used=!0)}const r=this.map.painter;if(r){const e=n.getProgramIds();if(!e)continue;const i=n.getProgramConfiguration(t.zoom);for(const t of e)r.useProgram(t,i)}}for(const i in r){const t=this._sourceCaches[i];r[i]!==t.used&&t.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),Yt(this,e.validateStyle(n)))return!1;(n=e.clone$1(n)).layers=Ve(n.layers);const r=function(e,n){if(!e)return[{command:qe.setStyle,args:[n]}];let r=[];try{if(!t(e.version,n.version))return[{command:qe.setStyle,args:[n]}];t(e.center,n.center)||r.push({command:qe.setCenter,args:[n.center]}),t(e.zoom,n.zoom)||r.push({command:qe.setZoom,args:[n.zoom]}),t(e.bearing,n.bearing)||r.push({command:qe.setBearing,args:[n.bearing]}),t(e.pitch,n.pitch)||r.push({command:qe.setPitch,args:[n.pitch]}),t(e.sprite,n.sprite)||r.push({command:qe.setSprite,args:[n.sprite]}),t(e.glyphs,n.glyphs)||r.push({command:qe.setGlyphs,args:[n.glyphs]}),t(e.transition,n.transition)||r.push({command:qe.setTransition,args:[n.transition]}),t(e.light,n.light)||r.push({command:qe.setLight,args:[n.light]}),t(e.fog,n.fog)||r.push({command:qe.setFog,args:[n.fog]}),t(e.projection,n.projection)||r.push({command:qe.setProjection,args:[n.projection]});const i={},o=[];!function(e,n,r,i){let o;for(o in n=n||{},e=e||{})e.hasOwnProperty(o)&&(n.hasOwnProperty(o)||He(o,r,i));for(o in n)n.hasOwnProperty(o)&&(e.hasOwnProperty(o)?t(e[o],n[o])||("geojson"===e[o].type&&"geojson"===n[o].type&&We(e,n,o)?r.push({command:qe.setGeoJSONSourceData,args:[o,n[o].data]}):Ge(o,n,r,i)):Ze(o,n,r))}(e.sources,n.sources,o,i);const a=[];e.layers&&e.layers.forEach((e=>{e.source&&i[e.source]?r.push({command:qe.removeLayer,args:[e.id]}):a.push(e)}));let s=e.terrain;s&&i[s.source]&&(r.push({command:qe.setTerrain,args:[void 0]}),s=void 0),r=r.concat(o),t(s,n.terrain)||r.push({command:qe.setTerrain,args:[n.terrain]}),function(e,n,r){n=n||[];const i=(e=e||[]).map(Ke),o=n.map(Ke),a=e.reduce(Xe,{}),s=n.reduce(Xe,{}),l=i.slice(),c=Object.create(null);let u,d,p,h,f,m,g;for(u=0,d=0;u<i.length;u++)p=i[u],s.hasOwnProperty(p)?d++:(r.push({command:qe.removeLayer,args:[p]}),l.splice(l.indexOf(p,d),1));for(u=0,d=0;u<o.length;u++)p=o[o.length-1-u],l[l.length-1-u]!==p&&(a.hasOwnProperty(p)?(r.push({command:qe.removeLayer,args:[p]}),l.splice(l.lastIndexOf(p,l.length-d),1)):d++,m=l[l.length-u],r.push({command:qe.addLayer,args:[s[p],m]}),l.splice(l.length-u,0,p),c[p]=!0);for(u=0;u<o.length;u++)if(p=o[u],h=a[p],f=s[p],!c[p]&&!t(h,f))if(t(h.source,f.source)&&t(h["source-layer"],f["source-layer"])&&t(h.type,f.type)){for(g in Ye(h.layout,f.layout,r,p,null,qe.setLayoutProperty),Ye(h.paint,f.paint,r,p,null,qe.setPaintProperty),t(h.filter,f.filter)||r.push({command:qe.setFilter,args:[p,f.filter]}),t(h.minzoom,f.minzoom)&&t(h.maxzoom,f.maxzoom)||r.push({command:qe.setLayerZoomRange,args:[p,f.minzoom,f.maxzoom]}),h)h.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Ye(h[g],f[g],r,p,g.slice(6),qe.setPaintProperty):t(h[g],f[g])||r.push({command:qe.setLayerProperty,args:[p,g,f[g]]}));for(g in f)f.hasOwnProperty(g)&&!h.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Ye(h[g],f[g],r,p,g.slice(6),qe.setPaintProperty):t(h[g],f[g])||r.push({command:qe.setLayerProperty,args:[p,g,f[g]]}))}else r.push({command:qe.removeLayer,args:[p]}),m=l[l.lastIndexOf(p)+1],r.push({command:qe.addLayer,args:[f,m]})}(a,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:qe.setStyle,args:[n]}]}return r}(this.serialize(),n).filter((e=>!(e.command in Xt)));if(0===r.length)return!1;const i=r.filter((e=>!(e.command in Kt)));if(i.length>0)throw new Error(`Unimplemented: ${i.map((e=>e.command)).join(", ")}.`);return r.forEach((e=>{"setTransition"!==e.command&&"setProjection"!==e.command&&this[e.command].apply(this,e.args)})),this.stylesheet=n,this._updateMapProjection(),!0}addImage(t,n){return this.getImage(t)?this.fire(new e.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,n),this._afterImageUpdated(t),this)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t),this):this.fire(new e.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._checkLoaded(),void 0!==this.getSource(t))throw new Error("There is already a source with this ID");if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateSource,`sources.${t}`,n,null,r))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const i=Le(t,n,this.dispatcher,this);i.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(t),source:i.serialize(),sourceId:t})));const o=n=>{const r=(n?"symbol:":"other:")+t,o=this._sourceCaches[r]=new e.SourceCache(r,i,n);(n?this._symbolSourceCaches:this._otherSourceCaches)[t]=o,o.style=this,o.onAdd(this.map)};o(!1),"vector"!==n.type&&"geojson"!==n.type||o(!0),i.onAdd&&i.onAdd(this.map),this._changed=!0}removeSource(t){this._checkLoaded();const n=this.getSource(t);if(!n)throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const r=this._getSourceCaches(t);for(const i of r)delete this._sourceCaches[i.id],delete this._updatedSources[i.id],i.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:i.getSource().id})),i.setEventedParent(null),i.clearTiles();return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}getSource(e){const t=this._getSourceCache(e);return t&&t.getSource()}addLayer(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();const i=t.id;if(this.getLayer(i))return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${i}" already exists on this map`)));let o;if("custom"===t.type){if(Yt(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateLayer,`layers.${i}`,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize(),this._updateLayerCount(o,!0)}const a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`)));this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o;const s=this._getLayerSourceCache(o);if(this._removedLayers[i]&&o.source&&s&&"custom"!==o.type){const e=this._removedLayers[i];delete this._removedLayers[i],e.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",s.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const r=this._order.indexOf(t);this._order.splice(r,1);const i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`))):(this._order.splice(i,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));n.setEventedParent(null),this._updateLayerCount(n,!1);const r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(t,n,r){this._checkLoaded();const i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();const o=this.getLayer(n);if(o){if(!t(o.filter,r))return null==r?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(e.validateFilter,`layers.${o.id}.filter`,r,{layerType:o.type},i)||(o.filter=e.clone$1(r),this._updateLayer(o)))}else this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(t){const n=this.getLayer(t);return n&&e.clone$1(n.filter)}setLayoutProperty(n,r,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();const a=this.getLayer(n);a?t(a.getLayoutProperty(r),i)||(a.setLayoutProperty(r,i,o),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(t,n){const r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)))}setPaintProperty(n,r,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();const a=this.getLayer(n);a?t(a.getPaintProperty(r),i)||(a.setPaintProperty(r,i,o)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(e,t){const n=this.getLayer(e);return n&&n.getPaintProperty(t)}setFeatureState(t,n){this._checkLoaded();const r=t.source,i=t.sourceLayer,o=this.getSource(r);if(!o)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const a=o.type;if("geojson"===a&&i)return void this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===a&&!i)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));const s=this._getSourceCaches(r);for(const e of s)e.setFeatureState(i,t.id,n)}removeFeatureState(t,n){this._checkLoaded();const r=t.source,i=this.getSource(r);if(!i)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const o=i.type,a="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!a)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const s=this._getSourceCaches(r);for(const e of s)e.removeFeatureState(a,t.id,n)}getFeatureState(t){this._checkLoaded();const n=t.source,r=t.sourceLayer,i=this.getSource(n);if(i){if("vector"!==i.type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t={};for(const e in this._sourceCaches){const n=this._sourceCaches[e].getSource();t[n.id]||(t[n.id]=n.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:t,layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateLayer(e){this._updatedLayers[e.id]=!0;const t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0,e.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,n={},r=[];for(let o=this._order.length-1;o>=0;o--){const i=this._order[o];if(t(i)){n[i]=o;for(const t of e){const e=t[i];if(e)for(const t of e)r.push(t)}}}r.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const i=[];for(let o=this._order.length-1;o>=0;o--){const a=this._order[o];if(t(a))for(let e=r.length-1;e>=0;e--){const t=r[e].feature;if(n[t.layer.id]<o)break;i.push(t),r.pop()}else for(const t of e){const e=t[a];if(e)for(const t of e)i.push(t.feature)}}return i}queryRenderedFeatures(t,n,r){n&&n.filter&&this._validate(e.validateFilter,"queryRenderedFeatures.filter",n.filter,null,n);const i={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const t of n.layers){const n=this._layers[t];if(!n)return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];i[n.source]=!0}}const o=[];n.availableImages=this._availableImages;const a=n&&n.layers?n.layers.some((e=>{const t=this.getLayer(e);return t&&t.is3D()})):this.has3DLayers(),s=j.createFromScreenPoints(t,r);for(const e in this._sourceCaches){const t=this._sourceCaches[e].getSource().id;n.layers&&!i[t]||o.push(je(this._sourceCaches[e],this._layers,this._serializedLayers,s,n,r,a,!!this.map._showQueryGeometry))}return this.placement&&o.push(function(e,t,n,r,i,o,a){const s={},l=o.queryRenderedSymbols(r),c=[];for(const u of Object.keys(l).map(Number))c.push(a[u]);c.sort(Ae);for(const u of c){const n=u.featureIndex.lookupSymbolFeatures(l[u.bucketInstanceId],t,u.bucketIndex,u.sourceLayerIndex,i.filter,i.layers,i.availableImages,e);for(const e in n){const t=s[e]=s[e]||[],r=n[e];r.sort(((e,t)=>{const n=u.featureSortOrder;if(n){const r=n.indexOf(e.featureIndex);return n.indexOf(t.featureIndex)-r}return t.featureIndex-e.featureIndex}));for(const e of r)t.push(e)}}for(const u in s)s[u].forEach((t=>{const r=t.feature,i=n(e[u]).getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}));return s}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),s.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(t,n){n&&n.filter&&this._validate(e.validateFilter,"querySourceFeatures.filter",n.filter,null,n);const r=this._getSourceCaches(t);let i=[];for(const e of r)i=i.concat(De(e,n));return i}addSourceType(e,t,n){return en.getSourceType(e)?n(new Error(`A source type called "${e}" already exists.`)):(en.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},n):n(null,null))}getLight(){return this.light.getLight()}setLight(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkLoaded();const r=this.light.getLight();let i=!1;for(const a in e)if(!t(e[a],r[a])){i=!0;break}if(!i)return;const o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(e,n),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===r){if("object"==typeof n.source){const t="terrain-dem-src";this.addSource(t,n.source),n=e.clone$1(n),n=e.extend(n,{source:t})}if(this._validate(e.validateTerrain,"terrain",n))return}if(!this.terrain||this.terrain&&r!==this.terrain.drapeRenderMode)this._createTerrain(n,r);else{const r=this.terrain,i=r.get();for(const t of Object.keys(e.spec.terrain))!n.hasOwnProperty(t)&&e.spec.terrain[t].default&&(n[t]=e.spec.terrain[t].default);for(const e in n)if(!t(n[e],i[e])){r.set(n),this.stylesheet.terrain=n;const e=this._setTransitionParameters({duration:0});r.updateTransitions(e);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(e){const t=this.fog=new O(e,this.map.transform);this.stylesheet.fog=e;const n=this._setTransitionParameters({duration:0});t.updateTransitions(n)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(e){if(this._checkLoaded(),!e)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog,r=n.get();0===Object.keys(e).length&&n.set(e);for(const i in e)if(!t(e[i],r[i])){n.set(e),this.stylesheet.fog=e;const t=this._setTransitionParameters({duration:0});n.updateTransitions(t);break}}else this._createFog(e);this._markersNeedUpdate=!0}_setTransitionParameters(t){return{now:e.exported.now(),transition:e.extend(t,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const e=this._order.filter((e=>this.isLayerDraped(this._layers[e]))),t=this._order.filter((e=>!this.isLayerDraped(this._layers[e])));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const n=this.terrain=new M(e,t);this.stylesheet.terrain=e,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const r=this._setTransitionParameters({duration:0});n.updateTransitions(r)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,n,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(!o||!1!==o.validate)&&Yt(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.spec},i)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles(),this._sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(e){const t=this._getSourceCaches(e);for(const n of t)n.clearTiles()}_reloadSource(e){const t=this._getSourceCaches(e);for(const n of t)n.resume(),n.reload()}_updateSources(e){for(const t in this._sourceCaches)this._sourceCaches[t].update(e)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,n,r,i){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=!1,s=!1;const l={};for(const e of this._order){const n=this._layers[e];if("symbol"!==n.type)continue;if(!l[n.source]){const e=this._getLayerSourceCache(n);if(!e)continue;l[n.source]=e.getRenderableIds(!0).map((t=>e.getTileByID(t))).sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const r=this.crossTileSymbolIndex.addLayer(n,l[n.source],t.center.lng,t.projection);a=a||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),o=o||this._layerOrderChanged||0===r,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(o||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new Vt(t,this._order,o,n,r,i,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();const r=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};r(this._otherSourceCaches[t.source]),r(this._symbolSourceCaches[t.source])}getGlyphs(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}getResource(t,n,r){return e.makeRequest(n,r)}_getSourceCache(e){return this._otherSourceCaches[e]}_getLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}_getSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const n=this._getSourceCaches(t);return 0===n.length?(this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`))),!1):n.every((e=>e.loaded()))}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}en.getSourceType=function(e){return Oe[e]},en.setSourceType=function(e,t){Oe[e]=t},en.registerForPluginStateChange=e.registerForPluginStateChange;var tn="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",nn="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",rn="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",on="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",an="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let sn={},ln={};const cn=[];fn(tn,cn),fn(rn,cn),fn(on,cn),fn(an,cn),sn=mn("",rn),ln=mn(an,on);const un=mn("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),dn=tn,pn="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var hn={background:mn("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:mn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:mn("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:mn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:mn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:mn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:mn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:mn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:mn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:mn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:mn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:mn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:mn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:mn("uniform lowp vec3 u_lightpos;varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;varying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvoid main() {vec4 color=v_color;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(v_normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying highp vec3 v_normal;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;vec3 pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_normal=normal;v_depth=gl_Position.w;\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:mn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:mn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:mn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:mn("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nhighp vec4 out_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nvec4 out_color=color;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);}}\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:mn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:mn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:mn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:mn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:mn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:mn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:mn("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:mn("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",nn),skyboxGradient:mn("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",nn),skyboxCapture:mn("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:mn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);vec4 color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\nvec4 color=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idy=u_grid_matrix[1][2];float S=u_grid_matrix[2][2];vec3 latLng=u_grid_matrix*vec3(a_pos,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=a_pos[0]*S;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;\n#ifdef GLOBE_POLES\nvec3 up_vector=normalize(globe_pos)*u_tile_up_scale;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:mn("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);\n#ifdef PROJECTION_GLOBE_VIEW\nfloat globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));float horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nfloat horizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function fn(e,t){const n=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let r of n)if(r=r.trim(),"#"===r[0]&&r.includes("if")&&!r.includes("endif")){r=r.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const e=r.split(" ");for(const n of e)t.includes(n)||t.push(n)}}function mn(e,t){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),i={},o=[...cn];return fn(e,o),fn(t,o),{fragmentSource:e=e.replace(n,((e,t,n,r,o)=>(i[o]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nvarying ${n} ${r} ${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${o}\n    ${n} ${r} ${o} = u_${o};\n#endif\n`))),vertexSource:t=t.replace(n,((e,t,n,r,o)=>{const a="float"===r?"vec2":"vec4",s=o.match(/color/)?"color":a;return i[o]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${a} a_${o};\nvarying ${n} ${r} ${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:"vec4"===s?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = a_${o};\n#else\n    ${n} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = unpack_mix_${s}(a_${o}, u_${o}_t);\n#else\n    ${n} ${r} ${o} = u_${o};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${a} a_${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:"vec4"===s?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${n} ${r} ${o} = a_${o};\n#else\n    ${n} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${n} ${r} ${o} = unpack_mix_${s}(a_${o}, u_${o}_t);\n#else\n    ${n} ${r} ${o} = u_${o};\n#endif\n`})),staticAttributes:r,usedDefines:o}}class gn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,n,r,i,o,a){this.context=e;let s=this.boundPaintVertexBuffers.length!==r.length;for(let c=0;!s&&c<r.length;c++)this.boundPaintVertexBuffers[c]!==r[c]&&(s=!0);let l=this.boundDynamicVertexBuffers.length!==a.length;for(let c=0;!l&&c<a.length;c++)this.boundDynamicVertexBuffers[c]!==a[c]&&(l=!0);if(!e.extVertexArrayObject||!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||s||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==o)this.freshBind(t,n,r,i,o,a);else{e.bindVertexArrayOES.set(this.vao);for(const e of a)e&&e.bind();i&&i.dynamicDraw&&i.bind()}}freshBind(e,t,n,r,i,o){let a;const s=e.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),a=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffers=o;else{a=l.currentNumAttributes||0;for(let e=s;e<a;e++)c.disableVertexAttribArray(e)}t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(const u of n)u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,i);for(const u of o)u&&(u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,i));r&&r.bind(),l.currentNumAttributes=s}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function yn(t,n){const r=Math.pow(2,n.canonical.z),i=n.canonical.y;return[new e.MercatorCoordinate(0,i/r).toLngLat().lat,new e.MercatorCoordinate(0,(i+1)/r).toLngLat().lat]}function vn(t,n,r,i,o,a,s){const l=t.context,c=l.gl,u=r.fbo;if(!u)return;t.prepareDrawTile();const d=t.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,u.colorAttachment.get());const p=((e,t,n,r)=>{const i=n.paint.get("hillshade-shadow-color"),o=n.paint.get("hillshade-highlight-color"),a=n.paint.get("hillshade-accent-color");let s=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);const l=!e.options.moving;return{u_matrix:r||e.transform.calculateProjMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:yn(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),s],u_shadow:i,u_highlight:o,u_accent:a}})(t,r,i,t.terrain?n.projMatrix:null);t.prepareDrawProgram(l,d,n.toUnwrapped());const{tileBoundsBuffer:h,tileBoundsIndexBuffer:f,tileBoundsSegments:m}=t.getTileBoundsBuffers(r);d.draw(l,c.TRIANGLES,o,a,s,e.CullFaceMode.disabled,p,i.id,h,f,m)}function bn(t,n,r){if(!n.needsDEMTextureUpload)return;const i=t.context,o=i.gl;i.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(r.stride);const a=r.getPixels();n.demTexture?n.demTexture.update(a,{premultiply:!1}):n.demTexture=new e.Texture(i,a,o.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function _n(t,n,r,i,o,a){const s=t.context,l=s.gl;if(!n.dem)return;const c=n.dem;if(s.activeTexture.set(l.TEXTURE1),bn(t,n,c),!n.demTexture)return;n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const u=c.dim;s.activeTexture.set(l.TEXTURE0);let d=n.fbo;if(!d){const t=new e.Texture(s,{width:u,height:u,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),d=n.fbo=s.createFramebuffer(u,u,!0),d.colorAttachment.set(t.texture)}s.bindFramebuffer.set(d.framebuffer),s.viewport.set([0,0,u,u]);const{tileBoundsBuffer:p,tileBoundsIndexBuffer:h,tileBoundsSegments:f}=t.getMercatorTileBoundsBuffers();t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,i,o,a,e.CullFaceMode.disabled,((t,n)=>{const r=n.stride,i=e.create();return e.ortho(i,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(i,i,[0,-e.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:n.unpackVector}})(n.tileID,c),r.id,p,h,f),n.needsHillshadePrepare=!1}const wn=t=>({u_matrix:new e.UniformMatrix4f(t),u_image0:new e.Uniform1i(t),u_skirt_height:new e.Uniform1f(t)}),xn=(e,t)=>({u_matrix:e,u_image0:0,u_skirt_height:t}),kn=(e,t,n,r,i,o,a,s,l,c,u,d,p,h)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(r),u_merc_matrix:n,u_zoom_transition:i,u_merc_center:o,u_image0:0,u_frustum_tl:a,u_frustum_tr:s,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:d,u_viewport:p,u_grid_matrix:h?Float32Array.from(h):new Float32Array(9)});function Cn(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const Sn=new class{constructor(){this.operations={}}newMorphing(e,t,n,r,i){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==n.tileID.key&&(t.queued=n)}else this.operations[e]={startTime:r,phase:0,duration:i,from:t,to:n,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const n=this.operations[t];for(n.phase=(e-n.startTime)/n.duration;n.phase>=1||!this._validOp(n);)if(!this._nextOp(n,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Mn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function Tn(e,t){const n=1<<e.z;return!t&&(0===e.x||e.x===n-1)||0===e.y||e.y===n-1}const En=e=>({u_matrix:e});function Pn(t,n,r,i,o){if(o>0){const a=e.exported.now(),s=(a-t.timeAdded)/o,l=n?(a-n.timeAdded)/o:-1,c=r.getSource(),u=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),p=d&&t.refreshedUponExpiration?1:e.clamp(d?s:1-l,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}class In extends e.SourceCache{constructor(e){const t={type:"raster-dem",maxzoom:e.transform.maxZoom},n=new L(Ue(),null),r=Le("mock-dem",t,n,e.style);super("mock-dem",r,!1),r.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class On extends e.SourceCache{constructor(e){const t=Le("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new L(Ue(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,n,r){if(t.freezeTileCoverage)return;this.transform=t;const i=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce(((n,r)=>{if(n[r.key]="",!this._tiles[r.key]){const n=new e.Tile(r,this._source.tileSize*r.overscaleFactor(),t.tileZoom);n.state="loaded",this._tiles[r.key]=n}return n}),{});for(const e in this._tiles)e in i||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const n=Object.values(t);this.renderCachePool.push(...n),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Ln extends e.OverscaledTileID{constructor(e,t,n){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=n}}class Rn extends e.Elevation{constructor(t,n){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,i,o]=function(t){const n=new e.StructArrayLayout4i8,r=new e.StructArrayLayout3ui6,i=131;n.reserve(17161),r.reserve(33800);const o=e.EXTENT/128,a=e.EXTENT+o/2,s=a+o;for(let c=-o;c<s;c+=o)for(let t=-o;t<s;t+=o){const r=t<0||t>a||c<0||c>a?24575:0,i=e.clamp(Math.round(t),0,e.EXTENT),o=e.clamp(Math.round(c),0,e.EXTENT);n.emplaceBack(i+r,o,i,o)}const l=(e,t)=>{const n=t*i+e;r.emplaceBack(n+1,n,n+i),r.emplaceBack(n+i,n+i+1,n+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)l(t,e);return[0,129].forEach((e=>{for(let t=0;t<130;t++)l(t,e),l(e,t)})),[n,r,32768]}(),a=t.context;this.gridBuffer=a.createVertexBuffer(r,e.boundsAttributes.members),this.gridIndexBuffer=a.createIndexBuffer(i),this.gridSegments=e.SegmentVector.simpleSegment(0,0,r.length,i.length),this.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,r.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new On(n.map),this.orthoMatrix=e.create(),e.ortho(this.orthoMatrix,0,e.EXTENT,0,e.EXTENT,0,1);const s=a.gl;this._overlapStencilMode=new e.StencilMode({func:s.GEQUAL,mask:255},0,255,s.KEEP,s.KEEP,s.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=n,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new In(n.map)}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency()}update(t,n,r){if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;const i=t.terrain.properties;this.sourceCache=0===t.terrain.drapeRenderMode?this._mockSourceCache:t._getSourceCache(i.get("source")),this._exaggeration=i.get("exaggeration");const o=()=>{this.sourceCache.used&&e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.getScaledDemTileSize();this.sourceCache.update(n,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),n.updateElevation(!r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\n                may be affected negatively, consider placing all background, fill and line layers before layer\n                with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const i=this.proxyCoords=n.getIds().map((e=>{const t=n.getTileByID(e).tileID;return t.projMatrix=r.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,n){const r=n.transform.pointCoordinate(n.transform.getCameraPoint()),i=new e.pointGeometry(r.x,r.y);t.sort(((t,n)=>{if(n.overscaledZ-t.overscaledZ)return n.overscaledZ-t.overscaledZ;const r=new e.pointGeometry(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),o=new e.pointGeometry(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),a=i.mult(1<<t.canonical.z);return a.x-=.5,a.y-=.5,a.distSqr(r)-a.distSqr(o)}))}(i,this.painter),this._previousZoom=r.zoom;const o=this.proxyToSource||{};this.proxyToSource={},i.forEach((e=>{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const a=this._style._sourceCaches;for(const e in a){const n=a[e];if(!n.used)continue;if(n!==this.sourceCache&&this.resetTileLookupCache(n.id),this._setupProxiedCoordsForOrtho(n,t[e],o),n.usedForTerrain)continue;const r=t[e];n.getSource().reparseOverscaled&&this._assignTerrainTiles(r)}this.proxiedCoords[n.id]=i.map((e=>new Ln(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(i),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=e.exported.now();const s={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const n=t.tileID.key;n in s||(this._visibleDemTiles.push(t),s[n]=n)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const n in this.terrainTileForTile){const r=this.terrainTileForTile[n],i=r.dem;!i||r.demTexture&&!r.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),bn(this.painter,r,i))}}_prepareDemTileUniforms(e,t,n,r){if(!t||null==t.demTexture)return!1;const i=e.tileID.canonical,o=Math.pow(2,t.tileID.canonical.z-i.z),a=r||"";return n[`u_dem_tl${a}`]=[i.x*o%1,i.y*o%1],n[`u_dem_scale${a}`]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const t=this.painter.context,n=t.gl;if(!this._emptyDepthBufferTexture){const r=new e.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new e.Texture(t,r,n.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce(((t,n)=>{if(!n.dem)return t;const r=n.dem.tree.minimums[0];return r>0&&e++,t+r}),0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,n=t.gl;t.activeTexture.set(n.TEXTURE2);const r=this._getLoadedAreaMinimum(),i=new e.RGBAImage({width:1,height:1},new Uint8Array(e.DEMData.pack(r,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(i,{premultiply:!1}):o=this._emptyDEMTexture=new e.Texture(t,i,n.RGBA,{premultiply:!1}),o}setupElevationDraw(t,n,r){const i=this.painter.context,o=i.gl,a=(s=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(s),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});var s;a.u_dem_size=this.sourceCache.getSource().tileSize,a.u_exaggeration=this.exaggeration();const l=this.painter.transform,c=l.projection,u=t.tileID.canonical;a.u_tile_tl_up=c.upVector(u,0,0),a.u_tile_tr_up=c.upVector(u,e.EXTENT,0),a.u_tile_br_up=c.upVector(u,e.EXTENT,e.EXTENT),a.u_tile_bl_up=c.upVector(u,0,e.EXTENT),a.u_tile_up_scale=r&&r.useDenormalizedUpVectorScale?e.GLOBE_METERS_TO_ECEF:c.upVectorScale(u,l.center.lat,l.worldSize).metersToTile;let d=null,p=null,h=1;if(r&&r.morphing&&this._useVertexMorphing){const e=r.morphing.srcDemTile,n=r.morphing.dstDemTile;h=r.morphing.phase,e&&n&&(this._prepareDemTileUniforms(t,e,a,"_prev")&&(p=e),this._prepareDemTileUniforms(t,n,a)&&(d=n))}if(p&&d?(i.activeTexture.set(o.TEXTURE2),d.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),i.activeTexture.set(o.TEXTURE4),p.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),a.u_dem_lerp=h):(d=this.terrainTileForTile[t.tileID.key],i.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(t,d,a)?d.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),i.activeTexture.set(o.TEXTURE3),r&&r.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(a.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),a.u_depth_size_inv=[1,1]),r&&r.useMeterToDem&&d){const t=(1<<d.tileID.canonical.z)*e.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;a.u_meter_to_dem=t}r&&r.labelPlaneMatrixInv&&(a.u_label_plane_matrix_inv=r.labelPlaneMatrixInv),n.setTerrainUniformValues(i,a)}renderToBackBuffer(t){const n=this.painter,r=this.painter.context;0!==t.length&&(r.bindFramebuffer.set(null),r.viewport.set([0,0,n.width,n.height]),n.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(t,n,r,i,o){if("globe"===t.transform.projection.name)!function(t,n,r,i,o){const a=t.context,s=a.gl;let l,c;const u=t.options.showTerrainWireframe?2:0,d=t.transform,p=e.globeUseCustomAntiAliasing(t,a,d),h=(e,n)=>{if(c===e)return;const r=[Mn[e],"PROJECTION_GLOBE_VIEW"];p&&r.push("CUSTOM_ANTIALIASING"),n&&r.push(Mn[u]),l=t.useProgram("globeRaster",null,r),c=e},f=t.colorModeForRenderPass(),m=new e.DepthMode(s.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);Sn.update(o);const g=e.calculateGlobeMercatorMatrix(d),y=[e.mercatorXfromLng(d.center.lng),e.mercatorYfromLat(d.center.lat)],v=u?[!1,!0]:[!1],b=t.globeSharedBuffers,_=[d.width*e.exported.devicePixelRatio,d.height*e.exported.devicePixelRatio],w=Float32Array.from(d.globeMatrix),x={useDenormalizedUpVectorScale:!0};if(v.forEach((u=>{c=-1;const p=u?s.LINES:s.TRIANGLES;for(const c of i){const i=r.getTile(c),v=e.StencilMode.disabled,k=n.prevTerrainTileForTile[c.key],C=n.terrainTileForTile[c.key];Cn(k,C)&&Sn.newMorphing(c.key,k,C,o,250),a.activeTexture.set(s.TEXTURE0),i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const S=Sn.getMorphValuesForProxy(c.key),M=S?1:0;S&&e.extend$1(x,{morphing:{srcDemTile:S.from,dstDemTile:S.to,phase:e.easeCubicInOut(S.phase)}});const T=e.tileCornersToBounds(c.canonical),E=e.getLatitudinalLod(T.getCenter().lat),P=e.getGridMatrix(c.canonical,T,E),I=e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),O=kn(d.projMatrix,w,g,I,e.globeToMercatorTransition(d.zoom),y,d.frustumCorners.TL,d.frustumCorners.TR,d.frustumCorners.BR,d.frustumCorners.BL,d.globeCenterInViewSpace,d.globeRadius,_,P);if(h(M,u),n.setupElevationDraw(i,l,x),t.prepareDrawProgram(a,l,c.toUnwrapped()),b){const[n,r,i]=u?b.getWirefameBuffers(t.context,E):b.getGridBuffers(E);l.draw(a,p,m,v,f,e.CullFaceMode.backCCW,O,"globe_raster",n,r,i)}}})),b){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];p&&o.push("CUSTOM_ANTIALIASING"),l=t.useProgram("globeRaster",null,o);for(const c of i){const{x:i,y:o,z:u}=c.canonical,p=0===o,h=o===(1<<u)-1,[g,v,w,k]=b.getPoleBuffers(u);if(k&&(p||h)){const o=r.getTile(c);a.activeTexture.set(s.TEXTURE0),o.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);let b=e.globePoleMatrixForTile(u,i,d);const C=e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),S=(t,n)=>t.draw(a,s.TRIANGLES,m,e.StencilMode.disabled,f,e.CullFaceMode.disabled,kn(d.projMatrix,b,b,C,0,y,d.frustumCorners.TL,d.frustumCorners.TR,d.frustumCorners.BR,d.frustumCorners.BL,d.globeCenterInViewSpace,d.globeRadius,_),"globe_pole_raster",n,w,k);n.setupElevationDraw(o,l,x),t.prepareDrawProgram(a,l,c.toUnwrapped()),p&&S(l,g),h&&(b=e.scale(e.create(),b,[1,-1,1]),S(l,v))}}}}(t,n,r,i,o);else{const a=t.context,s=a.gl;let l,c;const u=t.options.showTerrainWireframe?2:0,d=(e,n)=>{if(c===e)return;const r=[Mn[e]];n&&r.push(Mn[u]),l=t.useProgram("terrainRaster",null,r),c=e},p=t.colorModeForRenderPass(),h=new e.DepthMode(s.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);Sn.update(o);const f=t.transform,m=6*Math.pow(1.5,22-f.zoom)*n.exaggeration();(u?[!1,!0]:[!1]).forEach((u=>{c=-1;const g=u?s.LINES:s.TRIANGLES,[y,v]=u?n.getWirefameBuffer():[n.gridIndexBuffer,n.gridSegments];for(const c of i){const i=r.getTile(c),b=e.StencilMode.disabled,_=n.prevTerrainTileForTile[c.key],w=n.terrainTileForTile[c.key];Cn(_,w)&&Sn.newMorphing(c.key,_,w,o,250),a.activeTexture.set(s.TEXTURE0),i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST);const x=Sn.getMorphValuesForProxy(c.key),k=x?1:0;let C;x&&(C={morphing:{srcDemTile:x.from,dstDemTile:x.to,phase:e.easeCubicInOut(x.phase)}});const S=xn(c.projMatrix,Tn(c.canonical,f.renderWorldCopies)?m/10:m);d(k,u),n.setupElevationDraw(i,l,C),t.prepareDrawProgram(a,l,c.toUnwrapped()),l.draw(a,g,h,b,p,e.CullFaceMode.backCCW,S,"terrain_raster",n.gridBuffer,y,v)}}))}}(n,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,n.gpuTimingDeferredRenderEnd(),t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const n=this.painter,r=this.painter.context,i=this.proxySourceCache,o=this.proxiedCoords[i.id],a=this._drapedRenderBatches.shift(),s=[],l=n.style.order;let c=0;for(const u of o){const o=i.getTileByID(u.proxyTileKey),d=i.proxyCachedFBO[u.key]?i.proxyCachedFBO[u.key][t]:void 0,p=void 0!==d?i.renderCache[d]:this.pool[c++],h=void 0!==d;if(o.texture=p.tex,h&&!p.dirty){s.push(o.tileID);continue}let f;r.bindFramebuffer.set(p.fb.framebuffer),this.renderedToTile=!1,p.dirty&&(r.clear({color:e.Color.transparent,stencil:0}),p.dirty=!1);for(let e=a.start;e<=a.end;++e){const t=n.style._layers[l[e]];if(t.isHidden(n.transform.zoom))continue;const i=n.style._getLayerSourceCache(t),o=i?this.proxyToSource[u.key][i.id]:[u];if(!o)continue;const a=o;r.viewport.set([0,0,p.fb.width,p.fb.height]),f!==(i?i.id:null)&&(this._setupStencil(p,o,t,i),f=i?i.id:null),n.renderLayer(n,i,t,a)}this.renderedToTile?(p.dirty=!0,s.push(o.tileID)):h||--c,5===c&&(c=0,this.renderToBackBuffer(s))}return this.renderToBackBuffer(s),this.renderingToTexture=!1,r.bindFramebuffer.set(null),r.viewport.set([0,0,n.width,n.height]),a.end+1}postRender(){}renderCacheEfficiency(e){const t=e.order.length;if(0===t)return{efficiency:100};let n,r=0,i=0,o=!1;for(let a=0;a<t;++a){const t=e._layers[e.order[a]];this._style.isLayerDraped(t)?(o&&++r,++i):o||(o=!0,n=t.id)}return 0===i?{efficiency:100}:{efficiency:100*(1-r/i),firstUndrapedLayer:n}}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>e.dem)).forEach((t=>{e=Math.min(e,t.dem.tree.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,n){if(!this._visibleDemTiles)return null;const r=this._visibleDemTiles.filter((e=>e.dem)).map((r=>{const i=r.tileID,o=1<<i.overscaledZ,{x:a,y:s}=i.canonical,l=a/o,c=(a+1)/o,u=s/o,d=(s+1)/o;return{minx:l,miny:u,maxx:c,maxy:d,t:r.dem.tree.raycastRoot(l,u,c,d,e,t,n),tile:r}}));r.sort(((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const i of r){if(null==i.t)return null;const r=i.tile.dem.tree.raycast(i.minx,i.miny,i.maxx,i.maxy,e,t,n);if(null!=r)return r}return null}_createFBO(){const t=this.painter.context,n=t.gl,r=this.drapeBufferSize;t.activeTexture.set(n.TEXTURE0);const i=new e.Texture(t,{width:r[0],height:r[1],data:null},n.RGBA);i.bind(n.LINEAR,n.CLAMP_TO_EDGE);const o=t.createFramebuffer(r[0],r[1],!1);return o.colorAttachment.set(i.texture),o.depthAttachment=new Ce(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&!t.extTextureFilterAnisotropicForceOff&&n.texParameterf(n.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:i,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e].hasTransition())return!0;return this._style.order.some((e=>{const t=this._style._layers[e],n=t.isHidden(this.painter.transform.zoom),r=t.getCrossfadeParameters(),i=!!r&&1!==r.t,o=t.hasTransition();return"custom"!==t.type&&!n&&(i||o)}))}_clearRasterFadeFromRenderCache(){let e=!1;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t]._source instanceof Te){e=!0;break}if(e)for(let t=0;t<this._style.order.length;++t){const e=this._style._layers[this._style.order[t]],n=e.isHidden(this.painter.transform.zoom),r=this._style._getLayerSourceCache(e);if("raster"!==e.type||n||!r)continue;const i=e.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][r.id];if(e)for(const t of e){const e=Pn(r.getTile(t),r.findLoadedParent(t,0),r,this.painter.transform,i);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(r.id,t)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const n=[];let r,i=0,o=this._style._layers[e[i]];for(;!this._style.isLayerDraped(o)&&o.isHidden(this.painter.transform.zoom)&&++i<t;)o=this._style._layers[e[i]];for(;i<t;++i){const t=this._style._layers[e[i]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===r&&(r=i):void 0!==r&&(n.push({start:r,end:i-1}),r=void 0))}void 0!==r&&n.push({start:r,end:i-1}),this._drapedRenderBatches=n}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let n=0;n<e.length;++n){const r=Object.values(e[n]);t.renderCachePool.push(...r)}}return}this._clearRasterFadeFromRenderCache();const n=this.proxyCoords,r=this._tilesDirty;for(let o=n.length-1;o>=0;o--){const i=n[o];if(t.getTileByID(i.key),void 0!==t.proxyCachedFBO[i.key]){const n=e[i.key],o=this.proxyToSource[i.key];let a=0;for(const e in o){const t=o[e],i=n[e];if(!i||i.length!==t.length||t.some(((t,n)=>t!==i[n]||r[e]&&r[e].hasOwnProperty(t.key)))){a=-1;break}++a}for(const e in t.proxyCachedFBO[i.key])t.renderCache[t.proxyCachedFBO[i.key][e]].dirty=a<0||a!==Object.values(n).length}}const i=[...this._drapedRenderBatches];i.sort(((e,t)=>t.end-t.start-(e.end-e.start)));for(const o of i)for(const e of n){if(t.proxyCachedFBO[e.key])continue;let n=t.renderCachePool.pop();void 0===n&&t.renderCache.length<50&&(n=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==n&&(t.proxyCachedFBO[e.key]={},t.proxyCachedFBO[e.key][o.start]=n,t.renderCache[n].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,n,r){if(!r||!this._sourceTilesOverlap[r.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const i=this.painter.context,o=i.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let a;if(n.isTileClipped())a=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);a=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+a>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=a,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.StencilMode.disabled}_renderTileClippingMasks(t,n){const r=this.painter,i=this.painter.context,o=i.gl;r._tileClippingMaskIDs={},i.setColorMode(e.ColorMode.disabled),i.setDepthMode(e.DepthMode.disabled);const a=r.useProgram("clippingMask");for(const s of t){const t=r._tileClippingMaskIDs[s.key]=--n;a.draw(i,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},t,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,En(s.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(t){const n=this.painter.transform;if(t.x<0||t.x>n.width||t.y<0||t.y>n.height)return null;const r=[t.x,t.y,1,1];e.transformMat4$1(r,r,n.pixelMatrixInverse),e.scale$1(r,r,1/r[3]),r[0]/=n.worldSize,r[1]/=n.worldSize;const i=n._camera.position,o=e.mercatorZfromAltitude(1,n.center.lat),a=[i[0],i[1],i[2]/o,0],s=e.subtract([],r.slice(0,3),a);e.normalize(s,s);const l=this.raycast(a,s,this._exaggeration);return null!==l&&l?(e.scaleAndAdd(a,a,s,l),a[3]=a[2],a[2]*=o,a):null}drawDepth(){const t=this.painter,n=t.context,r=this.proxySourceCache,i=Math.ceil(t.width),o=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===i&&this._depthFBO.height===o||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const t=n.gl,r=n.createFramebuffer(i,o,!0);n.activeTexture.set(t.TEXTURE0);const a=new e.Texture(n,{width:i,height:o,data:null},t.RGBA);a.bind(t.NEAREST,t.CLAMP_TO_EDGE),r.colorAttachment.set(a.texture);const s=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,i,o);r.depthAttachment.set(s),this._depthFBO=r,this._depthTexture=a}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,i,o]),function(t,n,r,i){if("globe"===t.transform.projection.name)return;const o=t.context,a=o.gl;o.clear({depth:1});const s=t.useProgram("terrainDepth"),l=new e.DepthMode(a.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D);for(const c of i){const t=r.getTile(c),i=xn(c.projMatrix,0);n.setupElevationDraw(t,s),s.draw(o,a.TRIANGLES,l,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,i,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}(t,this,r,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,n){if(e.getSource()instanceof Ie)return this._setupProxiedCoordsForImageSource(e,t,n);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const r=this.proxiedCoords[e.id]=[],i=this.proxyCoords;for(let a=0;a<i.length;a++){const t=i[a],o=this._findTileCoveringTileID(t,e);if(o){const i=this._createProxiedId(t,o,n[t.key]&&n[t.key][e.id]);r.push(i),this.proxyToSource[t.key][e.id]=[i]}}let o=!1;for(let a=0;a<t.length;a++){const i=e.getTile(t[a]);if(!i||!i.hasData())continue;const s=this._findTileCoveringTileID(i.tileID,this.proxySourceCache);if(s&&s.tileID.canonical.z!==i.tileID.canonical.z){const t=this.proxyToSource[s.tileID.key][e.id],a=this._createProxiedId(s.tileID,i,n[s.tileID.key]&&n[s.tileID.key][e.id]);t?t.splice(t.length-1,0,a):this.proxyToSource[s.tileID.key][e.id]=[a],r.push(a),o=!0}}this._sourceTilesOverlap[e.id]=o}_setupProxiedCoordsForImageSource(t,n,r){if(!t.getSource().loaded())return;const i=this.proxiedCoords[t.id]=[],o=this.proxyCoords,a=t.getSource(),s=new e.pointGeometry(a.tileID.x,a.tileID.y)._div(1<<a.tileID.z),l=a.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce(((e,t)=>(e.min.x=Math.min(e.min.x,t.x-s.x),e.min.y=Math.min(e.min.y,t.y-s.y),e.max.x=Math.max(e.max.x,t.x-s.x),e.max.y=Math.max(e.max.y,t.y-s.y),e)),{min:new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(t,n)=>{const r=t.wrap+t.canonical.x/(1<<t.canonical.z),i=t.canonical.y/(1<<t.canonical.z),o=e.EXTENT/(1<<t.canonical.z),a=n.wrap+n.canonical.x/(1<<n.canonical.z),s=n.canonical.y/(1<<n.canonical.z);return r+o<a+l.min.x||r>a+l.max.x||i+o<s+l.min.y||i>s+l.max.y};for(let e=0;e<o.length;e++){const a=o[e];for(let e=0;e<n.length;e++){const o=t.getTile(n[e]);if(!o||!o.hasData())continue;if(c(a,o.tileID))continue;const s=this._createProxiedId(a,o,r[a.key]&&r[a.key][t.id]),l=this.proxyToSource[a.key][t.id];l?l.push(s):this.proxyToSource[a.key][t.id]=[s],i.push(s)}}}_createProxiedId(t,n,r){let i=this.orthoMatrix;if(r){const e=r.find((e=>e.key===n.tileID.key));if(e)return e}if(n.tileID.key!==t.key){const r=t.canonical.z-n.tileID.canonical.z;let o,a,s;i=e.create();const l=n.tileID.wrap-t.wrap<<t.overscaledZ;r>0?(o=e.EXTENT>>r,a=o*((n.tileID.canonical.x<<r)-t.canonical.x+l),s=o*((n.tileID.canonical.y<<r)-t.canonical.y)):(o=e.EXTENT<<-r,a=e.EXTENT*(n.tileID.canonical.x-(t.canonical.x+l<<-r)),s=e.EXTENT*(n.tileID.canonical.y-(t.canonical.y<<-r))),e.ortho(i,0,o,0,o,0,1),e.translate(i,i,[a,s,0])}return new Ln(n.tileID,t.key,i)}_findTileCoveringTileID(t,n){let r=n.getTile(t);if(r&&r.hasData())return r;const i=this._findCoveringTileCache[n.id],o=i[t.key];if(r=o?n.getTileByID(o):null,r&&r.hasData()||null===o)return r;let a=r?r.tileID:t,s=a.overscaledZ;const l=n.getSource().minzoom,c=[];if(!o){const i=n.getSource().maxzoom;if(t.canonical.z>=i){const r=t.canonical.z-i;n.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,n.transform.tileZoom),a=new e.OverscaledTileID(s,t.wrap,i,t.canonical.x>>r,t.canonical.y>>r)):0!==r&&(s=i,a=new e.OverscaledTileID(s,t.wrap,i,t.canonical.x>>r,t.canonical.y>>r))}a.key!==t.key&&(c.push(a.key),r=n.getTile(a))}const u=e=>{c.forEach((t=>{i[t]=e})),c.length=0};for(s-=1;s>=l&&(!r||!r.hasData());s--){r&&u(r.tileID.key);const e=a.calculateScaledKey(s);if(r=n.getTileByID(e),r&&r.hasData())break;const t=i[e];if(null===t)break;void 0===t?c.push(e):r=n.getTileByID(t)}return u(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let n=this._tilesDirty[e];n||(n=this._tilesDirty[e]={}),n[t.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const t=function(t){let n=0;const r=new e.StructArrayLayout2ui4,i=131;for(let e=1;e<129;e++){for(let t=1;t<129;t++)n=e*i+t,r.emplaceBack(n,n+1),r.emplaceBack(n,n+i),r.emplaceBack(n+1,n+i),128===e&&r.emplaceBack(n+i,n+i+1);r.emplaceBack(n+1,n+1+i)}return r}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(t),this.wireframeSegments=e.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,t.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class jn{static cacheKey(e,t,n,r){let i=`${t}${r?r.cacheKey:""}`;for(const o of n)e.usedDefines.includes(o)&&(i+=`/${o}`);return i}constructor(t,n,r,i,o,a){const s=t.gl;this.program=s.createProgram();const l=function(e){const t=[];for(let n=0;n<e.length;n++){if(null===e[n])continue;const r=e[n].split(" ");t.push(r.pop())}return t}(r.staticAttributes),c=i?i.getBinderAttributes():[],u=l.concat(c);let d=i?i.defines():[];d=d.concat(a.map((e=>`#define ${e}`)));const p=d.concat(t.extStandardDerivatives?"#extension GL_OES_standard_derivatives : enable\n".concat(pn):pn,pn,dn,un.fragmentSource,ln.fragmentSource,r.fragmentSource).join("\n"),h=d.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",dn,un.vertexSource,ln.vertexSource,sn.vertexSource,r.vertexSource).join("\n"),f=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(f,p),s.compileShader(f),s.attachShader(this.program,f);const m=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())this.failedToCreate=!0;else{s.shaderSource(m,h),s.compileShader(m),s.attachShader(this.program,m),this.attributes={},this.numAttributes=u.length;for(let e=0;e<this.numAttributes;e++)u[e]&&(s.bindAttribLocation(this.program,e,u[e]),this.attributes[u[e]]=e);s.linkProgram(this.program),s.deleteShader(m),s.deleteShader(f),this.fixedUniforms=o(t),this.binderUniforms=i?i.getUniforms(t):[],-1!==a.indexOf("TERRAIN")&&(this.terrainUniforms=(t=>({u_dem:new e.Uniform1i(t),u_dem_prev:new e.Uniform1i(t),u_dem_unpack:new e.Uniform4f(t),u_dem_tl:new e.Uniform2f(t),u_dem_scale:new e.Uniform1f(t),u_dem_tl_prev:new e.Uniform2f(t),u_dem_scale_prev:new e.Uniform1f(t),u_dem_size:new e.Uniform1f(t),u_dem_lerp:new e.Uniform1f(t),u_exaggeration:new e.Uniform1f(t),u_depth:new e.Uniform1i(t),u_depth_size_inv:new e.Uniform2f(t),u_meter_to_dem:new e.Uniform1f(t),u_label_plane_matrix_inv:new e.UniformMatrix4f(t),u_tile_tl_up:new e.Uniform3f(t),u_tile_tr_up:new e.Uniform3f(t),u_tile_br_up:new e.Uniform3f(t),u_tile_bl_up:new e.Uniform3f(t),u_tile_up_scale:new e.Uniform1f(t)}))(t)),-1!==a.indexOf("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.UniformMatrix4f(t),u_fog_range:new e.Uniform2f(t),u_fog_color:new e.Uniform4f(t),u_fog_horizon_blend:new e.Uniform1f(t),u_fog_temporal_offset:new e.Uniform1f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_globe_transition:new e.Uniform1f(t),u_is_globe:new e.Uniform1i(t),u_viewport:new e.Uniform2f(t)}))(t))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}draw(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f){const m=e.gl;if(this.failedToCreate)return;e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(o);for(const y of Object.keys(this.fixedUniforms))this.fixedUniforms[y].set(this.program,y,a[y]);h&&h.setUniforms(this.program,e,this.binderUniforms,d,{zoom:p});const g={[m.LINES]:2,[m.TRIANGLES]:3,[m.LINE_STRIP]:1}[t];for(const y of u.get()){const n=y.vaos||(y.vaos={});(n[s]||(n[s]=new gn)).bind(e,this,l,h?h.getPaintVertexBuffers():[],c,y.vertexOffset,f||[]),m.drawElements(t,y.primitiveLength*g,m.UNSIGNED_SHORT,y.primitiveOffset*g*2)}}}function Dn(e,t,n){const r=1/R(n,1,t.transform.tileZoom),i=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,t.transform.tileZoom)/i,a=o*(n.tileID.canonical.x+n.tileID.wrap*i),s=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}const An=e.create(),Nn=(t,n,r,i,o,a,s,l,c,u,d)=>{const p=n.style.light,h=p.properties.get("position"),f=[h.x,h.y,h.z],m=e.create$1();"viewport"===p.properties.get("anchor")&&(e.fromRotation(m,-n.transform.angle),e.transformMat3(f,f,m));const g=p.properties.get("color"),y=n.transform,v={u_matrix:t,u_lightpos:f,u_lightintensity:p.properties.get("intensity"),u_lightcolor:[g.r,g.g,g.b],u_vertical_gradient:+r,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:An,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:a};return"globe"===y.projection.name&&(v.u_tile_id=[s.canonical.x,s.canonical.y,1<<s.canonical.z],v.u_zoom_transition=c,v.u_inv_rot_matrix=d,v.u_merc_center=u,v.u_up_dir=y.projection.upVector(new e.CanonicalTileID(0,0,0),u[0]*e.EXTENT,u[1]*e.EXTENT),v.u_height_lift=l),v},Fn=(t,n,r,i,o,a,s,l,c,u,d,p,h)=>{const f=Nn(t,n,r,i,o,a,s,u,d,p,h),m={u_height_factor:-Math.pow(2,s.overscaledZ)/c.tileSize/8};return e.extend(f,Dn(l,n,c),m)},zn=e=>({u_matrix:e}),Bn=(t,n,r,i)=>e.extend(zn(t),Dn(r,n,i)),Un=(e,t)=>({u_matrix:e,u_world:t}),$n=(t,n,r,i,o)=>e.extend(Bn(t,n,r,i),{u_world:o}),Vn=e.create(),qn=(t,n,r,i,o,a)=>{const s=t.transform,l="globe"===s.projection.name;let c;if("map"===a.paint.get("circle-pitch-alignment"))if(l){const t=e.globePixelsToTileUnits(s.zoom,n.canonical)*s._pixelsPerMercatorPixel;c=Float32Array.from([t,0,0,t])}else c=s.calculatePixelsToTileUnitsMatrix(r);else c=new Float32Array([s.pixelsToGLUnits[0],0,0,s.pixelsToGLUnits[1]]);const u={u_camera_to_center_distance:s.cameraToCenterDistance,u_matrix:t.translatePosMatrix(n.projMatrix,r,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_device_pixel_ratio:e.exported.devicePixelRatio,u_extrude_scale:c,u_inv_rot_matrix:Vn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){u.u_inv_rot_matrix=i,u.u_merc_center=o,u.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],u.u_zoom_transition=e.globeToMercatorTransition(s.zoom);const t=o[0]*e.EXTENT,r=o[1]*e.EXTENT;u.u_up_dir=s.projection.upVector(new e.CanonicalTileID(0,0,0),t,r)}return u},Zn=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t},Hn=(t,n,r,i)=>{const o=e.EXTENT/r.tileSize;return{u_matrix:t,u_camera_to_center_distance:n.getCameraToCenterDistance(i),u_extrude_scale:[n.pixelsToGLUnits[0]/o,n.pixelsToGLUnits[1]/o]}},Gn=function(e,t){return{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:arguments.length>2&&void 0!==arguments[2]?arguments[2]:1}},Wn=e.create(),Yn=(t,n,r,i,o,a,s)=>{const l=t.transform,c="globe"===l.projection.name,u=c?e.globePixelsToTileUnits(l.zoom,n.canonical)*l._pixelsPerMercatorPixel:R(r,1,a),d={u_matrix:n.projMatrix,u_extrude_scale:u,u_intensity:s,u_inv_rot_matrix:Wn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){d.u_inv_rot_matrix=i,d.u_merc_center=o,d.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],d.u_zoom_transition=e.globeToMercatorTransition(l.zoom);const t=o[0]*e.EXTENT,r=o[1]*e.EXTENT;d.u_up_dir=l.projection.upVector(new e.CanonicalTileID(0,0,0),t,r)}return d},Kn=(e,t,n,r,i,o,a,s)=>{const l=e.transform,c=l.calculatePixelsToTileUnitsMatrix(t),u={u_matrix:Qn(e,t,n,i),u_pixels_to_tile_units:c,u_device_pixel_ratio:a,u_units_to_pixels:[1/l.pixelsToGLUnits[0],1/l.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:o,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0,u_trim_offset:s};if(er(n)){const n=Jn(t,e.transform);u.u_texsize=t.lineAtlasTexture.size,u.u_scale=[n,r.fromScale,r.toScale],u.u_mix=r.t}return u},Xn=(e,t,n,r,i,o)=>{const a=e.transform,s=Jn(t,a);return{u_matrix:Qn(e,t,n,i),u_texsize:t.imageAtlasTexture.size,u_pixels_to_tile_units:a.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:o,u_image:0,u_scale:[s,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Jn(e,t){return 1/R(e,1,t.tileZoom)}function Qn(e,t,n,r){return e.translatePosMatrix(r||t.tileID.projMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function er(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}const tr=(e,t,n,r,i,o)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(s=i.paint.get("raster-saturation"),s>0?1-1/(1.001-s):-s),u_contrast_factor:(a=i.paint.get("raster-contrast"),a>0?1/(1-a):1+a),u_spin_weights:nr(i.paint.get("raster-hue-rotate")),u_perspective_transform:o};var a,s};function nr(e){e*=Math.PI/180;const t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}const rr=e.create(),ir=(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g)=>{const y=o.transform,v={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:y.cameraToCenterDistance,u_rotate_symbol:+r,u_aspect_ratio:y.width/y.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:rr,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:rr,u_up_vector:[0,-1,0]};return"globe"===g.name&&(v.u_tile_id=[d.canonical.x,d.canonical.y,1<<d.canonical.z],v.u_zoom_transition=p,v.u_inv_rot_matrix=f,v.u_merc_center=h,v.u_camera_forward=y._camera.forward(),v.u_ecef_origin=e.globeECEFOrigin(y.globeMatrix,d.toUnwrapped()),v.u_tile_matrix=Float32Array.from(y.globeMatrix),v.u_up_vector=m),v},or=(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y)=>e.extend(ir(t,n,r,i,o,a,s,l,c,u,p,h,f,m,g,y),{u_gamma_scale:i?o.transform.cameraToCenterDistance*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.exported.devicePixelRatio,u_is_halo:+d}),ar=(t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g)=>e.extend(or(t,n,r,i,o,a,s,l,!0,c,!0,d,p,h,f,m,g),{u_texsize_icon:u,u_texture_icon:1}),sr=(e,t,n)=>({u_matrix:e,u_opacity:t,u_color:n}),lr=(t,n,r,i,o,a)=>e.extend(function(e,t,n,r){const i=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),{width:a,height:s}=n.imageManager.getPixelSize(),l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,u=c*(r.tileID.canonical.x+r.tileID.wrap*l),d=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[a,s],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/R(r,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[65535&u,65535&d]}}(i,a,r,o),{u_matrix:t,u_opacity:n}),cr={fillExtrusion:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t)}),fillExtrusionPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_height_factor:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t)}),fill:t=>({u_matrix:new e.UniformMatrix4f(t)}),fillPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}),fillOutline:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t)}),fillOutlinePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}),circle:t=>({u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),collisionBox:t=>({u_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.Uniform2f(t)}),collisionCircle:t=>({u_matrix:new e.UniformMatrix4f(t),u_inv_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_viewport_size:new e.Uniform2f(t)}),debug:t=>({u_color:new e.UniformColor(t),u_matrix:new e.UniformMatrix4f(t),u_overlay:new e.Uniform1i(t),u_overlay_scale:new e.Uniform1f(t)}),clippingMask:t=>({u_matrix:new e.UniformMatrix4f(t)}),heatmap:t=>({u_extrude_scale:new e.Uniform1f(t),u_intensity:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),heatmapTexture:t=>({u_image:new e.Uniform1i(t),u_color_ramp:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t)}),hillshade:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_latrange:new e.Uniform2f(t),u_light:new e.Uniform2f(t),u_shadow:new e.UniformColor(t),u_highlight:new e.UniformColor(t),u_accent:new e.UniformColor(t)}),hillshadePrepare:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_dimension:new e.Uniform2f(t),u_zoom:new e.Uniform1f(t),u_unpack:new e.Uniform4f(t)}),line:t=>({u_matrix:new e.UniformMatrix4f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_units_to_pixels:new e.Uniform2f(t),u_dash_image:new e.Uniform1i(t),u_gradient_image:new e.Uniform1i(t),u_image_height:new e.Uniform1f(t),u_texsize:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_mix:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t),u_trim_offset:new e.Uniform2f(t)}),linePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_texsize:new e.Uniform2f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_units_to_pixels:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t)}),raster:t=>({u_matrix:new e.UniformMatrix4f(t),u_tl_parent:new e.Uniform2f(t),u_scale_parent:new e.Uniform1f(t),u_fade_t:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_image0:new e.Uniform1i(t),u_image1:new e.Uniform1i(t),u_brightness_low:new e.Uniform1f(t),u_brightness_high:new e.Uniform1f(t),u_saturation_factor:new e.Uniform1f(t),u_contrast_factor:new e.Uniform1f(t),u_spin_weights:new e.Uniform3f(t),u_perspective_transform:new e.Uniform2f(t)}),symbolIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_texture:new e.Uniform1i(t)}),symbolSDF:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_is_halo:new e.Uniform1i(t)}),symbolTextAndIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texsize_icon:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_texture_icon:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_is_halo:new e.Uniform1i(t)}),background:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_color:new e.UniformColor(t)}),backgroundPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_pattern_tl_a:new e.Uniform2f(t),u_pattern_br_a:new e.Uniform2f(t),u_pattern_tl_b:new e.Uniform2f(t),u_pattern_br_b:new e.Uniform2f(t),u_texsize:new e.Uniform2f(t),u_mix:new e.Uniform1f(t),u_pattern_size_a:new e.Uniform2f(t),u_pattern_size_b:new e.Uniform2f(t),u_scale_a:new e.Uniform1f(t),u_scale_b:new e.Uniform1f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}),terrainRaster:wn,terrainDepth:wn,skybox:t=>({u_matrix:new e.UniformMatrix4f(t),u_sun_direction:new e.Uniform3f(t),u_cubemap:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxGradient:t=>({u_matrix:new e.UniformMatrix4f(t),u_color_ramp:new e.Uniform1i(t),u_center_direction:new e.Uniform3f(t),u_radius:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxCapture:t=>({u_matrix_3f:new e.UniformMatrix3f(t),u_sun_direction:new e.Uniform3f(t),u_sun_intensity:new e.Uniform1f(t),u_color_tint_r:new e.Uniform4f(t),u_color_tint_m:new e.Uniform4f(t),u_luminance:new e.Uniform1f(t)}),globeRaster:t=>({u_proj_matrix:new e.UniformMatrix4f(t),u_globe_matrix:new e.UniformMatrix4f(t),u_normalize_matrix:new e.UniformMatrix4f(t),u_merc_matrix:new e.UniformMatrix4f(t),u_zoom_transition:new e.Uniform1f(t),u_merc_center:new e.Uniform2f(t),u_image0:new e.Uniform1i(t),u_grid_matrix:new e.UniformMatrix3f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_viewport:new e.Uniform2f(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_horizon:new e.Uniform1f(t),u_transition:new e.Uniform1f(t),u_fadeout_range:new e.Uniform1f(t),u_color:new e.Uniform4f(t),u_high_color:new e.Uniform4f(t),u_space_color:new e.Uniform4f(t),u_star_intensity:new e.Uniform1f(t),u_star_density:new e.Uniform1f(t),u_star_size:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t),u_horizon_angle:new e.Uniform1f(t),u_rotation_matrix:new e.UniformMatrix4f(t)})};let ur;function dr(t,n,r,i,o,a,s){const l=t.context,c=l.gl,u=t.transform,d=t.useProgram("collisionBox"),p=[];let h=0,f=0;for(let w=0;w<i.length;w++){const m=i[w],g=n.getTile(m),y=g.getBucket(r);if(!y)continue;const v=wt(m,y,u);let b=v;0===o[0]&&0===o[1]||(b=t.translatePosMatrix(v,g,o,a));const _=s?y.textCollisionBox:y.iconCollisionBox,x=y.collisionCircleArray;if(x.length>0){const t=e.create(),n=b;e.mul(t,y.placementInvProjMatrix,u.glCoordMatrix),e.mul(t,t,y.placementViewportMatrix),p.push({circleArray:x,circleOffset:f,transform:n,invTransform:t,projection:y.getProjection()}),h+=x.length/4,f=h}_&&(t.terrain&&t.terrain.setupElevationDraw(g,d),d.draw(l,c.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,Hn(b,u,g,y.getProjection()),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,u.zoom,null,[_.collisionVertexBuffer,_.collisionVertexBufferExt]))}if(!s||!p.length)return;const m=t.useProgram("collisionCircle"),g=new e.StructArrayLayout2f1f2i16;g.resize(4*h),g._trim();let y=0;for(const e of p)for(let t=0;t<e.circleArray.length/4;t++){const n=4*t,r=e.circleArray[n+0],i=e.circleArray[n+1],o=e.circleArray[n+2],a=e.circleArray[n+3];g.emplace(y++,r,i,o,a,0),g.emplace(y++,r,i,o,a,1),g.emplace(y++,r,i,o,a,2),g.emplace(y++,r,i,o,a,3)}(!ur||ur.length<2*h)&&(ur=function(t){const n=2*t,r=new e.StructArrayLayout3ui6;r.resize(n),r._trim();for(let e=0;e<n;e++){const t=6*e;r.uint16[t+0]=4*e+0,r.uint16[t+1]=4*e+1,r.uint16[t+2]=4*e+2,r.uint16[t+3]=4*e+2,r.uint16[t+4]=4*e+3,r.uint16[t+5]=4*e+0}return r}(h));const v=l.createIndexBuffer(ur,!0),b=l.createVertexBuffer(g,e.collisionCircleLayout.members,!0);for(const w of p){const n={u_matrix:w.transform,u_inv_matrix:w.invTransform,u_camera_to_center_distance:(_=u).getCameraToCenterDistance(w.projection),u_viewport_size:[_.width,_.height]};m.draw(l,c.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,n,r.id,b,v,e.SegmentVector.simpleSegment(0,2*w.circleOffset,w.circleArray.length,w.circleArray.length/2),null,u.zoom)}var _;b.destroy(),v.destroy()}const pr=e.create();function hr(t,n,r,i,o,a){const{horizontalAlign:s,verticalAlign:l}=e.getAnchorAlignment(t),c=-(s-.5)*n,u=-(l-.5)*r,d=e.evaluateVariableOffset(t,i);return new e.pointGeometry((c/o+d[0])*a,(u/o+d[1])*a)}function fr(t,n,r,i,o,a,s,l,c,u,d){const p=t.text.placedSymbolArray,h=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={},g=xt(l,t.getProjection(),a),y=a.elevation,v=t.getProjection().upVectorScale(l.canonical,a.center.lat,a.worldSize);h.clear();for(let b=0;b<p.length;b++){const f=p.get(b),_=t.allowVerticalPlacement&&!f.placedOrientation,w=f.hidden||!f.crossTileID||_?null:i[f.crossTileID];if(w){const i=new e.pointGeometry(f.tileAnchorX,f.tileAnchorY),p=t.getProjection().upVector(l.canonical,i.x,i.y),b=y?y.getAtTileOffset(l,i.x,i.y):0,_=ot([f.projectedAnchorX+b*p[0]*v.metersToTile,f.projectedAnchorY+b*p[1]*v.metersToTile,f.projectedAnchorZ+b*p[2]*v.metersToTile],r?g:s),x=at(a.getCameraToCenterDistance(t.getProjection()),_.signedDistanceFromCamera);let k=o.evaluateSizeForFeature(t.textSizeData,u,f)*x/e.ONE_EM;r&&(k*=t.tilePixelRatio/c);const{width:C,height:S,anchor:M,textOffset:T,textScale:E}=w,P=hr(M,C,S,T,E,k);let I;if(r){const e=i.add(P),{x:n,y:r,z:o}=t.getProjection().projectTilePoint(e.x,e.y,l.canonical);I=ot([n+b*p[0]*v.metersToTile,r+b*p[1]*v.metersToTile,o+b*p[2]*v.metersToTile],s).point}else{const e=n?P.rotate(-a.angle):P;I=[_.point[0]+e.x,_.point[1]+e.y,0]}const O=t.allowVerticalPlacement&&f.placedOrientation===e.WritingMode.vertical?Math.PI/2:0;for(let t=0;t<f.numGlyphs;t++)e.addDynamicAttributes(h,I[0],I[1],I[2],O);d&&f.associatedIconIndex>=0&&(m[f.associatedIconIndex]={shiftedAnchor:I,angle:O})}else gt(f.numGlyphs,h)}if(d){f.clear();const n=t.icon.placedSymbolArray;for(let t=0;t<n.length;t++){const r=n.get(t);if(r.hidden)gt(r.numGlyphs,f);else{const n=m[t];if(n)for(let t=0;t<r.numGlyphs;t++)e.addDynamicAttributes(f,n.shiftedAnchor[0],n.shiftedAnchor[1],n.shiftedAnchor[2],n.angle);else gt(r.numGlyphs,f)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(h)}function mr(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function gr(t,n,r,i,o,a,s,l,c,u,d,p){const h=t.context,f=h.gl,m=t.transform,g="map"===l,y="map"===c,v=g&&"point"!==r.layout.get("symbol-placement"),b=g&&!y&&!v,_=void 0!==r.layout.get("symbol-sort-key").constantOr(1);let w=!1;const x=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),k=[e.mercatorXfromLng(m.center.lng),e.mercatorYfromLat(m.center.lat)],C=r.layout.get("text-variable-anchor"),S="globe"===m.projection.name,M=[],T=[0,-1,0];let E=T;!S&&!m.mercatorFromTransition||g||(E=function(t){const n=t._camera.getWorldToCamera(t.worldSize,1),r=e.multiply([],n,t.globeMatrix);e.invert(r,r);const i=[0,0,0],o=[0,1,0,0];return e.transformMat4$1(o,o,r),i[0]=o[0],i[1]=o[1],i[2]=o[2],e.normalize(i,i),i}(m));for(const P of i){const i=n.getTile(P),l=i.getBucket(r);if(!l)continue;if("mercator"===l.projection.name&&S)continue;const c=o?l.text:l.icon;if(!c||l.fullyClipped||!c.segments.get().length)continue;const d=c.programConfigurations.get(r.id),p=o||l.sdfIcons,h=o?l.textSizeData:l.iconSizeData,x=y||0!==m.pitch,I=e.evaluateSizeForZoom(h,m.zoom);let O,L,R,j,D=[0,0],A=null;if(o){if(L=i.glyphAtlasTexture,R=f.LINEAR,O=i.glyphAtlasTexture.size,l.iconsInText){D=i.imageAtlasTexture.size,A=i.imageAtlasTexture;const e="composite"===h.kind||"camera"===h.kind;j=x||t.options.rotating||t.options.zooming||e?f.LINEAR:f.NEAREST}}else{const e=1!==r.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;L=i.imageAtlasTexture,R=p||t.options.rotating||t.options.zooming||e||x?f.LINEAR:f.NEAREST,O=i.imageAtlasTexture.size}const N="globe"===l.projection.name,F=N?E:T,z=N?e.globeToMercatorTransition(m.zoom):0,B=xt(P,l.getProjection(),m),U=m.calculatePixelsToTileUnitsMatrix(i),$=tt(B,i.tileID.canonical,y,g,m,l.getProjection(),U),V=t.terrain&&y&&v?e.invert(e.create(),$):pr,q=rt(B,i.tileID.canonical,y,g,m,l.getProjection(),U),Z=C&&l.hasTextData(),H="none"!==r.layout.get("icon-text-fit")&&Z&&l.hasIconData();if(v){const e=m.elevation,n=e?e.getAtTileOffsetFunc(P,m.center.lat,m.worldSize,l.getProjection()):e=>[0,0,0],r=nt(B,i.tileID.canonical,y,g,m,l.getProjection(),U);lt(l,B,t,o,r,q,y,u,n,P)}const G=v||o&&C||H,W=t.translatePosMatrix(B,i,a,s),Y=G?pr:$,K=t.translatePosMatrix(q,i,a,s,!0),X=l.getProjection().createInversionMatrix(m,P.canonical),J=[];t.terrain&&y&&J.push("PITCH_WITH_MAP_TERRAIN"),N&&J.push("PROJECTION_GLOBE_VIEW"),G&&J.push("PROJECTED_POS_ON_VIEWPORT");const Q=p&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let ee;ee=p?l.iconsInText?ar(h.kind,I,b,y,t,W,Y,K,O,D,P,z,k,X,F,l.getProjection()):or(h.kind,I,b,y,t,W,Y,K,o,O,!0,P,z,k,X,F,l.getProjection()):ir(h.kind,I,b,y,t,W,Y,K,o,O,P,z,k,X,F,l.getProjection());const te={program:t.useProgram(mr(p,o,l),d,J),buffers:c,uniformValues:ee,atlasTexture:L,atlasTextureIcon:A,atlasInterpolation:R,atlasInterpolationIcon:j,isSDF:p,hasHalo:Q,tile:i,labelPlaneMatrixInv:V};if(_&&l.canOverlap){w=!0;const t=c.segments.get();for(const n of t)M.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:te})}else M.push({segments:c.segments,sortKey:0,state:te})}w&&M.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of M){const n=e.state;if(t.terrain&&t.terrain.setupElevationDraw(n.tile,n.program,{useDepthForOcclusion:!S,labelPlaneMatrixInv:n.labelPlaneMatrixInv}),h.activeTexture.set(f.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,f.CLAMP_TO_EDGE),n.atlasTextureIcon&&(h.activeTexture.set(f.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),n.isSDF){const i=n.uniformValues;n.hasHalo&&(i.u_is_halo=1,yr(n.buffers,e.segments,r,t,n.program,x,d,p,i)),i.u_is_halo=0}yr(n.buffers,e.segments,r,t,n.program,x,d,p,n.uniformValues)}}function yr(t,n,r,i,o,a,s,l,c){const u=i.context,d=[t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer,t.globeExtVertexBuffer];o.draw(u,u.gl.TRIANGLES,a,s,l,e.CullFaceMode.disabled,c,r.id,t.layoutVertexBuffer,t.indexBuffer,n,r.paint,i.transform.zoom,t.programConfigurations.get(r.id),d)}function vr(t,n,r,i,o,a,s){const l=t.context.gl,c=r.paint.get("fill-pattern"),u=c&&c.constantOr(1),d=r.getCrossfadeParameters();let p,h,f,m,g;s?(h=u&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",p=l.LINES):(h=u?"fillPattern":"fill",p=l.TRIANGLES);for(const y of i){const i=n.getTile(y);if(u&&!i.patternsLoaded())continue;const v=i.getBucket(r);if(!v)continue;t.prepareDrawTile();const b=v.programConfigurations.get(r.id),_=t.useProgram(h,b);u&&(t.context.activeTexture.set(l.TEXTURE0),i.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),b.updatePaintBuffers(d));const w=c.constantOr(null);if(w&&i.imageAtlas){const e=i.imageAtlas,t=e.patternPositions[w.to.toString()],n=e.patternPositions[w.from.toString()];t&&n&&b.setConstantPatternPositions(t,n)}const x=t.translatePosMatrix(y.projMatrix,i,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(s){m=v.indexBuffer2,g=v.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];f="fillOutlinePattern"===h&&u?$n(x,t,d,i,e):Un(x,e)}else m=v.indexBuffer,g=v.segments,f=u?Bn(x,t,d,i):zn(x);t.prepareDrawProgram(t.context,_,y.toUnwrapped()),_.draw(t.context,p,o,t.stencilModeForClipping(y),a,e.CullFaceMode.disabled,f,r.id,v.layoutVertexBuffer,m,g,r.paint,t.transform.zoom,b)}}function br(t,n,r,i,o,a,s){const l=t.context,c=l.gl,u=t.transform,d=r.paint.get("fill-extrusion-pattern"),p=d.constantOr(1),h=r.getCrossfadeParameters(),f=r.paint.get("fill-extrusion-opacity"),m=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),r.paint.get("fill-extrusion-ambient-occlusion-radius")],g=r.layout.get("fill-extrusion-edge-radius"),y="globe"===u.projection.name?e.fillExtrusionHeightLift():0,v="globe"===u.projection.name,b=v?e.globeToMercatorTransition(u.zoom):0,_=[e.mercatorXfromLng(u.center.lng),e.mercatorYfromLat(u.center.lat)],w=[];v&&(w.push("PROJECTION_GLOBE_VIEW"),t.style.terrainSetForDrapingOnly()&&w.push("TERRAIN")),m[0]>0&&w.push("FAUX_AO");for(const x of i){const i=n.getTile(x),k=i.getBucket(r);if(!k||k.projection.name!==u.projection.name)continue;const C=k.programConfigurations.get(r.id),S=t.useProgram(p?"fillExtrusionPattern":"fillExtrusion",C,w);if(t.terrain){const e=t.terrain;if(t.style.terrainSetForDrapingOnly())e.setupElevationDraw(i,S,{useMeterToDem:!0});else{if(!k.enableTerrain)continue;if(e.setupElevationDraw(i,S,{useMeterToDem:!0}),_r(l,n,x,k,r,e),!k.centroidVertexBuffer){const e=S.attributes.a_centroid_pos;void 0!==e&&c.vertexAttrib2f(e,0,0)}}}p&&(t.context.activeTexture.set(c.TEXTURE0),i.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),C.updatePaintBuffers(h));const M=d.constantOr(null);if(M&&i.imageAtlas){const e=i.imageAtlas,t=e.patternPositions[M.to.toString()],n=e.patternPositions[M.from.toString()];t&&n&&C.setConstantPatternPositions(t,n)}const T=t.translatePosMatrix(x.projMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),E=u.projection.createInversionMatrix(u,x.canonical),P=r.paint.get("fill-extrusion-vertical-gradient"),I=p?Fn(T,t,P,f,m,g,x,h,i,y,b,_,E):Nn(T,t,P,f,m,g,x,y,b,_,E);t.prepareDrawProgram(l,S,x.toUnwrapped());const O=[];t.terrain&&O.push(k.centroidVertexBuffer),v&&O.push(k.layoutVertexExtBuffer),S.draw(l,l.gl.TRIANGLES,o,a,s,e.CullFaceMode.backCCW,I,r.id,k.layoutVertexBuffer,k.indexBuffer,k.segments,r.paint,t.transform.zoom,C,O)}}function _r(t,n,r,i,o,a){const s=[t=>{let n=t.canonical.x-1,r=t.wrap;return n<0&&(n=(1<<t.canonical.z)-1,r--),new e.OverscaledTileID(t.overscaledZ,r,t.canonical.z,n,t.canonical.y)},t=>{let n=t.canonical.x+1,r=t.wrap;return n===1<<t.canonical.z&&(n=0,r++),new e.OverscaledTileID(t.overscaledZ,r,t.canonical.z,n,t.canonical.y)},t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(0===t.canonical.y?1<<t.canonical.z:t.canonical.y)-1),t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<<t.canonical.z)-1?0:t.canonical.y+1)],l=e=>{const t=n.getSource().minzoom,r=e=>{const t=n.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},i=[0,-1,1];for(const n of i){if(e.overscaledZ+n<t)continue;const i=r(e.calculateScaledKey(e.overscaledZ+n));if(i)return i}},c=[0,0,0],u=(t,n)=>(c[0]=Math.min(t.min.y,n.min.y),c[1]=Math.max(t.max.y,n.max.y),c[2]=e.EXTENT-n.min.x>t.max.x?n.min.x-e.EXTENT:t.max.x,c),d=(t,n)=>(c[0]=Math.min(t.min.x,n.min.x),c[1]=Math.max(t.max.x,n.max.x),c[2]=e.EXTENT-n.min.y>t.max.y?n.min.y-e.EXTENT:t.max.y,c),p=[(e,t)=>u(e,t),(e,t)=>u(t,e),(e,t)=>d(e,t),(e,t)=>d(t,e)],h=new e.pointGeometry(0,0);let f,m,g;const y=(t,n,i,o,s)=>{const l=[[o?i:t,o?t:i,0],[o?i:n,o?n:i,0]],c=s<0?e.EXTENT+s:s,u=[o?c:(t+n)/2,o?(t+n)/2:c,0];return 0===i&&s<0||0!==i&&s>0?a.getForTilePoints(g,[u],!0,m):l.push(u),a.getForTilePoints(r,l,!0,f),Math.max(l[0][2],l[1][2],u[2])/a.exaggeration()};for(let v=0;v<4;v++){const t=(v<2?1:5)-v,n=i.borders[v];if(0===n.length)continue;const o=g=s[v](r),c=l(o);if(!(c&&c instanceof e.FillExtrusionBucket&&c.enableTerrain))continue;if(i.borderDoneWithNeighborZ[v]===c.canonical.z&&c.borderDoneWithNeighborZ[t]===i.canonical.z)continue;if(m=a.findDEMTileFor(o),!m||!m.dem)continue;if(!f){const e=a.findDEMTileFor(r);if(!e||!e.dem)return;f=e}const u=c.borders[t];let d=0;const b=c.borderDoneWithNeighborZ[t]!==i.canonical.z;if(i.canonical.z===c.canonical.z){for(let r=0;r<n.length;r++){const o=i.featuresOnBorder[n[r]],a=o.borders[v];let s;for(;d<u.length&&(s=c.featuresOnBorder[u[d]],!(s.borders[t][1]>a[0]+3));)b&&c.encodeCentroid(void 0,s,!1),d++;if(s&&d<u.length){const n=d;let r=0;for(;!(s.borders[t][0]>a[1]-3)&&(r++,++d!==u.length);)s=c.featuresOnBorder[u[d]];if(s=c.featuresOnBorder[u[n]],o.intersectsCount()>1||s.intersectsCount()>1||1!==r){1!==r&&(d=n),i.encodeCentroid(void 0,o,!1),b&&c.encodeCentroid(void 0,s,!1);continue}const l=p[v](o,s),f=v%2?e.EXTENT-1:0;h.x=y(l[0],Math.min(e.EXTENT-1,l[1]),f,v<2,l[2]),h.y=0,i.encodeCentroid(h,o,!1),b&&c.encodeCentroid(h,s,!1)}else i.encodeCentroid(void 0,o,!1)}i.borderDoneWithNeighborZ[v]=c.canonical.z,i.needsCentroidUpdate=!0,b&&(c.borderDoneWithNeighborZ[t]=i.canonical.z,c.needsCentroidUpdate=!0)}else{for(const e of n)i.encodeCentroid(void 0,i.featuresOnBorder[e],!1);if(b){for(const e of u)c.encodeCentroid(void 0,c.featuresOnBorder[e],!1);c.borderDoneWithNeighborZ[t]=i.canonical.z,c.needsCentroidUpdate=!0}i.borderDoneWithNeighborZ[v]=c.canonical.z,i.needsCentroidUpdate=!0}}(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(t)}const wr=new e.Color(1,0,0,1),xr=new e.Color(0,1,0,1),kr=new e.Color(0,0,1,1),Cr=new e.Color(1,0,1,1),Sr=new e.Color(0,1,1,1);function Mr(t,n,r){const i=t.context,o=t.transform,a=i.gl,s="globe"===o.projection.name,l=s?["PROJECTION_GLOBE_VIEW"]:null;let c=r.projMatrix;if(s&&e.globeToMercatorTransition(o.zoom)>0){const t=e.transitionTileAABBinECEF(r.canonical,o),n=e.globeDenormalizeECEF(t);c=e.multiply(new Float32Array(16),o.globeMatrix,n),e.multiply(c,o.projMatrix,c)}const u=t.useProgram("debug",null,l),d=n.getTileByID(r.key);t.terrain&&t.terrain.setupElevationDraw(d,u);const p=e.DepthMode.disabled,h=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="$debug";i.activeTexture.set(a.TEXTURE0),t.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s?d._makeGlobeTileDebugBuffers(t.context,o):d._makeDebugTileBoundsBuffers(t.context,o.projection);const g=d._tileDebugBuffer||t.debugBuffer,y=d._tileDebugIndexBuffer||t.debugIndexBuffer,v=d._tileDebugSegments||t.debugSegments;u.draw(i,a.LINE_STRIP,p,h,f,e.CullFaceMode.disabled,Gn(c,e.Color.red),m,g,y,v,null,null,null,[d._globeTileDebugBorderBuffer]);const b=d.latestRawTileData,_=Math.floor((b&&b.byteLength||0)/1024),w=n.getTile(r).tileSize,x=512/Math.min(w,512)*(r.overscaledZ/o.zoom)*.5;let k=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(k+=` => ${r.overscaledZ}`),k+=` ${_}kb`,function(e,t){e.initDebugOverlayCanvas();const n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,k);const C=d._tileDebugTextBuffer||t.debugBuffer,S=d._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,M=d._tileDebugTextSegments||t.debugSegments;u.draw(i,a.TRIANGLES,p,h,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,Gn(c,e.Color.transparent,x),m,C,S,M,null,null,null,[d._globeTileDebugTextBuffer])}function Tr(e,t,n,r){Pr(e,0,t+n/2,e.transform.width,n,r)}function Er(e,t,n,r){Pr(e,t-n/2,0,n,e.transform.height,r)}function Pr(t,n,r,i,o,a){const s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*e.exported.devicePixelRatio,r*e.exported.devicePixelRatio,i*e.exported.devicePixelRatio,o*e.exported.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}const Ir=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Or}=Ir;function Lr(e,t,n,r){e.emplaceBack(t,n,r)}class Rr{constructor(t){this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,Lr(this.vertexArray,-1,-1,1),Lr(this.vertexArray,1,-1,1),Lr(this.vertexArray,-1,1,1),Lr(this.vertexArray,1,1,1),Lr(this.vertexArray,-1,-1,-1),Lr(this.vertexArray,1,-1,-1),Lr(this.vertexArray,-1,1,-1),Lr(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,Or),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}}function jr(t,n,r,i,o,a){const s=t.gl,l=n.paint.get("sky-atmosphere-color"),c=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),d=((e,t,n,r,i)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:n,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[i.r,i.g,i.b,i.a],u_luminance:5e-5}))(e.fromMat4(e.create$1(),i),o,u,l,c);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_CUBE_MAP_POSITIVE_X+a,n.skyboxTexture,0),r.draw(t,s.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,d,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const Dr=e.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class Ar{constructor(t){const n=new e.StructArrayLayout5f20;n.emplaceBack(-1,1,1,0,0),n.emplaceBack(1,1,1,1,0),n.emplaceBack(1,-1,1,1,1),n.emplaceBack(-1,-1,1,0,1);const r=new e.StructArrayLayout3ui6;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(n,Dr.members),this.indexBuffer=t.createIndexBuffer(r),this.segments=e.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Nr={symbol:function(t,n,r,i,o){if("translucent"!==t.renderPass)return;const a=e.StencilMode.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){const l=n.transform,c="map"===o,u="map"===a;for(const d of t){const t=i.getTile(d),n=t.getBucket(r);if(!n||!n.text||!n.text.segments.get().length)continue;const o=e.evaluateSizeForZoom(n.textSizeData,l.zoom),a=xt(d,n.getProjection(),l),p=l.calculatePixelsToTileUnitsMatrix(t),h=tt(a,t.tileID.canonical,u,c,l,n.getProjection(),p),f="none"!==r.layout.get("icon-text-fit")&&n.hasIconData();if(o){const r=Math.pow(2,l.zoom-t.tileID.overscaledZ);fr(n,c,u,s,e.symbolSize,l,h,d,r,o,f)}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&gr(t,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&gr(t,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,s),n.map.showCollisionBoxes&&(dr(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),dr(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0===o.constantOr(1)&&(0===a.constantOr(1)||0===s.constantOr(1)))return;const c=t.context,u=c.gl,d=t.transform,p=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),h=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="globe"===d.projection.name,g=[e.mercatorXfromLng(d.center.lng),e.mercatorYfromLat(d.center.lat)],y=[];for(let b=0;b<i.length;b++){const o=i[b],a=n.getTile(o),s=a.getBucket(r);if(!s||s.projection.name!==d.projection.name)continue;const c=s.programConfigurations.get(r.id),u=Zn(r);m&&u.push("PROJECTION_GLOBE_VIEW");const p=t.useProgram("circle",c,u),h=s.layoutVertexBuffer,f=s.globeExtVertexBuffer,v=s.indexBuffer,_=d.projection.createInversionMatrix(d,o.canonical),w={programConfiguration:c,program:p,layoutVertexBuffer:h,globeExtVertexBuffer:f,indexBuffer:v,uniformValues:qn(t,o,a,_,g,r),tile:a};if(l){const t=s.segments.get();for(const n of t)y.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:w})}else y.push({segments:s.segments,sortKey:0,state:w})}l&&y.sort(((e,t)=>e.sortKey-t.sortKey));const v={useDepthForOcclusion:!m};for(const b of y){const{programConfiguration:n,program:i,layoutVertexBuffer:o,globeExtVertexBuffer:a,indexBuffer:s,uniformValues:l,tile:m}=b.state,g=b.segments;t.terrain&&t.terrain.setupElevationDraw(m,i,v),t.prepareDrawProgram(c,i,m.tileID.toUnwrapped()),i.draw(c,u.TRIANGLES,p,h,f,e.CullFaceMode.disabled,l,r.id,o,s,g,r.paint,d.zoom,n,[a])}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,a=o.gl,s=e.StencilMode.disabled,l=new e.ColorMode([a.ONE,a.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n,r){const i=e.gl,o=t.width*r,a=t.height*r;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,o,a]);let s=n.heatmapFbo;if(!s||s&&(s.width!==o||s.height!==a)){s&&s.destroy();const t=i.createTexture();i.bindTexture(i.TEXTURE_2D,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),s=n.heatmapFbo=e.createFramebuffer(o,a,!1),function(e,t,n,r,i,o){const a=e.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,i,o,0,a.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(e,0,t,s,o,a)}else i.bindTexture(i.TEXTURE_2D,s.colorAttachment.get()),e.bindFramebuffer.set(s.framebuffer)}(o,t,r,"globe"===t.transform.projection.name?.5:.25),o.clear({color:e.Color.transparent});const c=t.transform,u="globe"===c.projection.name,d=u?["PROJECTION_GLOBE_VIEW"]:null,p=u?e.CullFaceMode.frontCCW:e.CullFaceMode.disabled,h=[e.mercatorXfromLng(c.center.lng),e.mercatorYfromLat(c.center.lat)];for(let f=0;f<i.length;f++){const m=i[f];if(n.hasRenderableParent(m))continue;const g=n.getTile(m),y=g.getBucket(r);if(!y||y.projection.name!==c.projection.name)continue;const v=y.programConfigurations.get(r.id),b=t.useProgram("heatmap",v,d),{zoom:_}=t.transform;t.terrain&&t.terrain.setupElevationDraw(g,b),t.prepareDrawProgram(o,b,m.toUnwrapped());const w=c.projection.createInversionMatrix(c,m.canonical);b.draw(o,a.TRIANGLES,e.DepthMode.disabled,s,l,p,Yn(t,m,g,w,h,_,r.paint.get("heatmap-intensity")),r.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,r.paint,t.transform.zoom,v,u?[y.globeExtVertexBuffer]:null)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){const r=t.context,i=r.gl,o=n.heatmapFbo;if(!o)return;r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);let a=n.colorRampTexture;a||(a=n.colorRampTexture=new e.Texture(r,n.colorRamp,i.RGBA)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,i.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,((e,t,n,r)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}(t,r))},line:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0===o.constantOr(1)||0===a.constantOr(1))return;const s=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),l=t.colorModeForRenderPass(),c=t.terrain&&t.terrain.renderingToTexture?1:e.exported.devicePixelRatio,u=r.paint.get("line-dasharray"),d=u.constantOr(1),p=r.layout.get("line-cap"),h=r.paint.get("line-pattern"),f=h.constantOr(1),m=r.paint.get("line-gradient"),g=r.getCrossfadeParameters(),y=f?"linePattern":"line",v=t.context,b=v.gl,_=(e=>{const t=[];er(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const n=e.paint.get("line-trim-offset");0===n[0]&&0===n[1]||t.push("RENDER_LINE_TRIM_OFFSET");const r=e.paint.get("line-pattern").constantOr(1),i=1!==e.paint.get("line-opacity").constantOr(1);return!r&&i&&t.push("RENDER_LINE_ALPHA_DISCARD"),t})(r);let w=_.includes("RENDER_LINE_ALPHA_DISCARD");t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(w=!1);for(const x of i){const i=n.getTile(x);if(f&&!i.patternsLoaded())continue;const o=i.getBucket(r);if(!o)continue;t.prepareDrawTile();const a=o.programConfigurations.get(r.id),k=t.useProgram(y,a,_),C=h.constantOr(null);if(C&&i.imageAtlas){const e=i.imageAtlas,t=e.patternPositions[C.to.toString()],n=e.patternPositions[C.from.toString()];t&&n&&a.setConstantPatternPositions(t,n)}const S=u.constantOr(null),M=p.constantOr(null);if(!f&&S&&M&&i.lineAtlas){const e=i.lineAtlas,t=e.getDash(S.to,M),n=e.getDash(S.from,M);t&&n&&a.setConstantPatternPositions(t,n)}let[T,E]=r.paint.get("line-trim-offset");if("round"===M||"square"===M){const e=1;T!==E&&(0===T&&(T-=e),1===E&&(E+=e))}const P=t.terrain?x.projMatrix:null,I=f?Xn(t,i,r,g,P,c):Kn(t,i,r,g,P,o.lineClipsArray.length,c,[T,E]);if(m){const i=o.gradients[r.id];let a=i.texture;if(r.gradientVersion!==i.version){let s=256;if(r.stepInterpolant){const r=n.getSource().maxzoom,i=x.canonical.z===r?Math.ceil(1<<t.transform.maxZoom-x.canonical.z):1;s=e.clamp(e.nextPowerOfTwo(o.maxLineLength/e.EXTENT*1024*i),256,v.maxTextureSize)}i.gradient=e.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:s,image:i.gradient||void 0,clips:o.lineClipsArray}),i.texture?i.texture.update(i.gradient):i.texture=new e.Texture(v,i.gradient,b.RGBA),i.version=r.gradientVersion,a=i.texture}v.activeTexture.set(b.TEXTURE1),a.bind(r.stepInterpolant?b.NEAREST:b.LINEAR,b.CLAMP_TO_EDGE)}d&&(v.activeTexture.set(b.TEXTURE0),i.lineAtlasTexture.bind(b.LINEAR,b.REPEAT),a.updatePaintBuffers(g)),f&&(v.activeTexture.set(b.TEXTURE0),i.imageAtlasTexture.bind(b.LINEAR,b.CLAMP_TO_EDGE),a.updatePaintBuffers(g)),t.prepareDrawProgram(v,k,x.toUnwrapped());const O=n=>{k.draw(v,b.TRIANGLES,s,n,l,e.CullFaceMode.disabled,I,r.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,r.paint,t.transform.zoom,a,[o.layoutVertexBuffer2])};if(w){const n=t.stencilModeForClipping(x).ref;0===n&&t.terrain&&v.clear({stencil:0});const r={func:b.EQUAL,mask:255};I.u_alpha_discard_threshold=.8,O(new e.StencilMode(r,n,255,b.KEEP,b.KEEP,b.INVERT)),I.u_alpha_discard_threshold=0,O(new e.StencilMode(r,n,255,b.KEEP,b.KEEP,b.KEEP))}else O(t.stencilModeForClipping(x))}w&&(t.resetStencilClippingMasks(),t.terrain&&v.clear({stencil:0}))},fill:function(t,n,r,i){const o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0===a.constantOr(1))return;const s=t.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),c=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===c){const o=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly);vr(t,n,r,i,o,s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){const o=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,e.DepthMode.ReadOnly);vr(t,n,r,i,o,s,!0)}},"fill-extrusion":function(t,n,r,i){const o=r.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===t.renderPass){const a=new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);if(1!==o||r.paint.get("fill-extrusion-pattern").constantOr(1))br(t,n,r,i,a,e.StencilMode.disabled,e.ColorMode.disabled),br(t,n,r,i,a,t.stencilModeFor3D(),t.colorModeForRenderPass()),t.resetStencilClippingMasks();else{const o=t.colorModeForRenderPass();br(t,n,r,i,a,e.StencilMode.disabled,o)}}},hillshade:function(t,n,r,i){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const o=t.context,a=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),s=t.colorModeForRenderPass(),l=t.terrain&&t.terrain.renderingToTexture,[c,u]="translucent"!==t.renderPass||l?[{},i]:t.stencilConfigForOverlap(i);for(const d of u){const i=n.getTile(d);if(i.needsHillshadePrepare&&"offscreen"===t.renderPass)_n(t,i,r,a,e.StencilMode.disabled,s);else if("translucent"===t.renderPass){const e=l&&t.terrain?t.terrain.stencilModeForRTTOverlap(d):c[d.overscaledZ];vn(t,d,i,r,a,e,s)}}o.viewport.set([0,0,t.width,t.height]),t.resetStencilClippingMasks()},raster:function(t,n,r,i,o,a){if("translucent"!==t.renderPass)return;if(0===r.paint.get("raster-opacity"))return;if(!i.length)return;const s=t.context,l=s.gl,c=n.getSource(),u=t.useProgram("raster"),d=t.colorModeForRenderPass(),p=t.terrain&&t.terrain.renderingToTexture,[h,f]=c instanceof Ie||p?[{},i]:t.stencilConfigForOverlap(i),m=f[f.length-1].overscaledZ,g=!t.options.moving;for(const y of f){const i=p?e.DepthMode.disabled:t.depthModeForSublayer(y.overscaledZ-m,1===r.paint.get("raster-opacity")?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly,l.LESS),o=y.toUnwrapped(),f=n.getTile(y);if(p&&(!f||!f.hasData()))continue;const v=p?y.projMatrix:t.transform.calculateProjMatrix(o,g),b=t.terrain&&p?t.terrain.stencilModeForRTTOverlap(y):h[y.overscaledZ],_=a?0:r.paint.get("raster-fade-duration");f.registerFadeDuration(_);const w=n.findLoadedParent(y,0),x=Pn(f,w,n,t.transform,_);let k,C;t.terrain&&t.terrain.prepareDrawTile();const S="nearest"===r.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;s.activeTexture.set(l.TEXTURE0),f.texture.bind(S,l.CLAMP_TO_EDGE),s.activeTexture.set(l.TEXTURE1),w?(w.texture.bind(S,l.CLAMP_TO_EDGE),k=Math.pow(2,w.tileID.overscaledZ-f.tileID.overscaledZ),C=[f.tileID.canonical.x*k%1,f.tileID.canonical.y*k%1]):f.texture.bind(S,l.CLAMP_TO_EDGE);const M=tr(v,C||[0,0],k||1,x,r,c instanceof Ie?c.perspectiveTransform:[0,0]);if(t.prepareDrawProgram(s,u,o),c instanceof Ie)c.boundsBuffer&&c.boundsSegments&&u.draw(s,l.TRIANGLES,i,e.StencilMode.disabled,d,e.CullFaceMode.disabled,M,r.id,c.boundsBuffer,t.quadTriangleIndexBuffer,c.boundsSegments);else{const{tileBoundsBuffer:n,tileBoundsIndexBuffer:o,tileBoundsSegments:a}=t.getTileBoundsBuffers(f);u.draw(s,l.TRIANGLES,i,b,d,e.CullFaceMode.disabled,M,r.id,n,o,a)}}t.resetStencilClippingMasks()},background:function(t,n,r,i){const o=r.paint.get("background-color"),a=r.paint.get("background-opacity");if(0===a)return;const s=t.context,l=s.gl,c=t.transform,u=c.tileSize,d=r.paint.get("background-pattern");if(t.isPatternMissing(d))return;const p=!d&&1===o.a&&1===a&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==p)return;const h=e.StencilMode.disabled,f=t.depthModeForSublayer(0,"opaque"===p?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly),m=t.colorModeForRenderPass(),g=t.useProgram(d?"backgroundPattern":"background");let y,v=i;v||(y=t.getBackgroundTiles(),v=Object.values(y).map((e=>e.tileID))),d&&(s.activeTexture.set(l.TEXTURE0),t.imageManager.bind(t.context));const b=r.getCrossfadeParameters();for(const _ of v){const p=_.toUnwrapped(),v=i?_.projMatrix:t.transform.calculateProjMatrix(p);t.prepareDrawTile();const w=n?n.getTile(_):y?y[_.key]:new e.Tile(_,u,c.zoom,t),x=d?lr(v,a,t,d,{tileID:_,tileSize:u},b):sr(v,a,o);t.prepareDrawProgram(s,g,p);const{tileBoundsBuffer:k,tileBoundsIndexBuffer:C,tileBoundsSegments:S}=t.getTileBoundsBuffers(w);g.draw(s,l.TRIANGLES,f,h,m,e.CullFaceMode.disabled,x,r.id,k,C,S)}},sky:function(t,n,r){const i=t.transform,o="mercator"===i.projection.name||"globe"===i.projection.name?1:e.smoothstep(7,8,i.zoom),a=r.paint.get("sky-opacity")*o;if(0===a)return;const s=t.context,l=r.paint.get("sky-type"),c=new e.DepthMode(s.gl.LEQUAL,e.DepthMode.ReadOnly,[0,1]),u=t.frameCounter/1e3%1;"atmosphere"===l?"offscreen"===t.renderPass?r.needsSkyboxCapture(t)&&(function(t,n,r,i){const o=t.context,a=o.gl;let s=n.skyboxFbo;if(!s){s=n.skyboxFbo=o.createFramebuffer(32,32,!1),n.skyboxGeometry=new Rr(o),n.skyboxTexture=o.gl.createTexture(),a.bindTexture(a.TEXTURE_CUBE_MAP,n.skyboxTexture),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MAG_FILTER,a.LINEAR);for(let e=0;e<6;++e)a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,a.RGBA,32,32,0,a.RGBA,a.UNSIGNED_BYTE,null)}o.bindFramebuffer.set(s.framebuffer),o.viewport.set([0,0,32,32]);const l=n.getCenter(t,!0),c=t.useProgram("skyboxCapture"),u=new Float64Array(16);e.identity(u),e.rotateY(u,u,.5*-Math.PI),jr(o,n,c,u,l,0),e.identity(u),e.rotateY(u,u,.5*Math.PI),jr(o,n,c,u,l,1),e.identity(u),e.rotateX(u,u,.5*-Math.PI),jr(o,n,c,u,l,2),e.identity(u),e.rotateX(u,u,.5*Math.PI),jr(o,n,c,u,l,3),e.identity(u),jr(o,n,c,u,l,4),e.identity(u),e.rotateY(u,u,Math.PI),jr(o,n,c,u,l,5),o.viewport.set([0,0,t.width,t.height])}(t,r),r.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,n,r,i,o){const a=t.context,s=a.gl,l=t.transform,c=t.useProgram("skybox");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((e,t,n,r,i)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:r,u_temporal_offset:i}))(l.skyboxMatrix,n.getCenter(t,!1),0,i,o);t.prepareDrawProgram(a,c),c.draw(a,s.TRIANGLES,r,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,r,c,a,u):"gradient"===l&&"sky"===t.renderPass&&function(t,n,r,i,o){const a=t.context,s=a.gl,l=t.transform,c=t.useProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new Rr(a)),a.activeTexture.set(s.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new e.Texture(a,n.colorRamp,s.RGBA)),u.bind(s.LINEAR,s.CLAMP_TO_EDGE);const d=((t,n,r,i,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:n,u_radius:e.degToRad(r),u_opacity:i,u_temporal_offset:o}))(l.skyboxMatrix,n.getCenter(t,!1),n.paint.get("sky-gradient-radius"),i,o);t.prepareDrawProgram(a,c),c.draw(a,s.TRIANGLES,r,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,d,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,r,c,a,u)},debug:function(e,t,n){for(let r=0;r<n.length;r++)Mr(e,t,n[r])},custom:function(t,n,r){const i=t.context,o=r.implementation;if(t.transform.projection.unsupportedLayers&&t.transform.projection.unsupportedLayers.includes("custom"))e.warnOnce("Custom layers are not yet supported with non-mercator projections. Use mercator to enable custom layers.");else if("offscreen"===t.renderPass){const e=o.prerender;e&&(t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),e.call(o,i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),i.setStencilMode(e.StencilMode.disabled);const n="3d"===o.renderingMode?new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,e.DepthMode.ReadOnly);i.setDepthMode(n),o.render(i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState(),i.bindFramebuffer.set(null)}}};class Fr{constructor(t,n){this.context=new Me(t),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=e.SourceCache.maxUnderzooming+e.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wt,this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(e,t){const n=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Rn(this,e));const r=this._terrain;this.transform.elevation=n?r:null,r.update(e,this.transform,t)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[n,r]=t.getFovAdjustedRange(this.transform._fov);if(n>r)return void(this.transform.fogCullDistSq=null);const i=n+.78*(r-n);this.transform.fogCullDistSq=i*i}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(t,n){if(this.width=t*e.exported.devicePixelRatio,this.height=n*e.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._layers[e].resize()}setup(){const t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const i=new e.StructArrayLayout2i4;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(-1,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const o=new e.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(e.EXTENT,0,e.EXTENT,0),o.emplaceBack(0,e.EXTENT,0,e.EXTENT),o.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.mercatorBoundsBuffer=t.createVertexBuffer(o,e.boundsAttributes.members),this.mercatorBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const a=new e.StructArrayLayout3ui6;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(a);const s=new e.StructArrayLayout1ui2;for(const e of[0,1,3,2,0])s.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,new e.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA),this.identityMat=e.create();const l=this.context.gl;this.stencilClearMode=new e.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(e.window.performance.now()),this.atmosphereBuffer=new Ar(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(t,n.TRIANGLES,e.DepthMode.disabled,this.stencilClearMode,e.ColorMode.disabled,e.CullFaceMode.disabled,En(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(t,n,r){if(!n||this.currentStencilSource===n.id||!t.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of r)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=n.id;const i=this.context,o=i.gl;this.nextStencilID+r.length>256&&this.clearStencil(),i.setColorMode(e.ColorMode.disabled),i.setDepthMode(e.DepthMode.disabled);const a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const s of r){const t=n.getTile(s),r=this._tileClippingMaskIDs[s.key]=this.nextStencilID++,{tileBoundsBuffer:l,tileBoundsIndexBuffer:c,tileBoundsSegments:u}=this.getTileBoundsBuffers(t);a.draw(i,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},r,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,En(s.projMatrix),"$clipping",l,c,u)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,n=this.context.gl;return new e.StencilMode({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const n=this.context.gl;return new e.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(t){const n=this.context.gl,r=t.sort(((e,t)=>t.overscaledZ-e.overscaledZ)),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const t={};for(let r=0;r<o;r++)t[r+i]=new e.StencilMode({func:n.GEQUAL,mask:255},r+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[t,r]}return[{[i]:e.StencilMode.disabled},r]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const n=1/8;return new e.ColorMode([t.CONSTANT_COLOR,t.ONE],new e.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?e.ColorMode.unblended:e.ColorMode.alphaBlended}depthModeForSublayer(t,n,r){if(!this.opaquePassEnabledForLayer())return e.DepthMode.disabled;const i=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.DepthMode(r||this.context.gl.LEQUAL,n,[i,i])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,n){this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.exported.now()),this.imageManager.beginFrame();const r=this.style.order,i=this.style._sourceCaches;for(const e in i){const t=i[e];t.used&&t.prepare(this.context)}const o={},a={},s={};for(const e in i){const t=i[e];o[e]=t.getVisibleCoordinates(),a[e]=o[e].slice().reverse(),s[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<r.length;e++)if(this.style._layers[r[e]].is3D()){this.opaquePassCutoff=e;break}if(this.terrain&&(this.terrain.updateTileBinding(s),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.GlobeSharedBuffers(this.context)),e.isMapAuthenticated(this.context.gl)){this.renderPass="offscreen";for(const e of r){const n=this.style._layers[e],r=t._getLayerSourceCache(n);if(!n.hasOffscreenPass()||n.isHidden(this.transform.zoom))continue;const i=r?a[r.id]:void 0;("custom"===n.type||n.isSky()||i&&i.length)&&this.renderLayer(this,r,n,i)}if(this.depthRangeFor3D=[0,1-(t.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[r[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky())continue;const i=n?a[n.id]:void 0;this._renderTileClippingMasks(e,n,i),this.renderLayer(this,n,e,i)}if(this.style.fog&&this.transform.projection.supportsFog&&function(t,n){const r=t.context,i=r.gl,o=t.transform,a=new e.DepthMode(i.LEQUAL,e.DepthMode.ReadOnly,[0,1]),s=t.useProgram("globeAtmosphere",null,"globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),l=e.globeToMercatorTransition(o.zoom),c=n.properties.get("color").toArray01(),u=n.properties.get("high-color").toArray01(),d=n.properties.get("space-color").toArray01PremultipliedAlpha(),p=e.identity$1([]);e.rotateY$1(p,p,-e.degToRad(o._center.lng)),e.rotateX$1(p,p,e.degToRad(o._center.lat)),e.rotateZ$1(p,p,o.angle),e.rotateX$1(p,p,-o._pitch);const h=e.fromQuat(new Float32Array(16),p),f=e.mapValue(n.properties.get("star-intensity"),0,1,0,.25),m=5e-4,g=e.mapValue(n.properties.get("horizon-blend"),0,1,m,.25),y=e.globeUseCustomAntiAliasing(t,r,o)&&g===m?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,v=t.frameCounter/1e3%1,b=e.length(o.globeCenterInViewSpace),_=Math.sqrt(Math.pow(b,2)-Math.pow(y,2)),w=Math.acos(_/b),x=((t,n,r,i,o,a,s,l,c,u,d,p,h,f)=>({u_frustum_tl:t,u_frustum_tr:n,u_frustum_br:r,u_frustum_bl:i,u_horizon:o,u_transition:a,u_fadeout_range:s,u_color:l,u_high_color:c,u_space_color:u,u_star_intensity:d,u_star_size:5*e.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:p,u_horizon_angle:h,u_rotation_matrix:f}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,l,g,c,u,d,f,v,w,h);t.prepareDrawProgram(r,s);const k=t.atmosphereBuffer;k&&s.draw(r,i.TRIANGLES,a,e.StencilMode.disabled,e.ColorMode.alphaBlended,e.CullFaceMode.backCW,x,"skybox",k.vertexBuffer,k.indexBuffer,k.segments)}(this,this.style.fog),this.renderPass="sky",(e.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){const e=this.style._layers[r[this.currentLayer]],n=t._getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,n,e,n?a[n.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;){const e=this.style._layers[r[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const i=n?("symbol"===e.type?s:a)[n.id]:void 0;this._renderTileClippingMasks(e,n,n?o[n.id]:void 0),this.renderLayer(this,n,e,i),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let n=null;e.values(this.style._layers).forEach((e=>{const r=t._getLayerSourceCache(e);r&&!e.isHidden(this.transform.zoom)&&(!n||n.getSource().maxzoom<r.getSource().maxzoom)&&(n=r)})),n&&this.options.showTileBoundaries&&Nr.debug(this,n,n.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;Tr(e,e.transform.height-(t.top||0),3,wr),Tr(e,t.bottom||0,3,xr),Er(e,t.left||0,3,kr),Er(e,e.transform.width-(t.right||0),3,Cr);const n=e.transform.centerPoint;!function(e,t,n,r){Pr(e,t-1,n-10,2,20,r),Pr(e,t-10,n-1,20,2,r)}(e,n.x,e.transform.height-n.y,Sr)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(e.window.performance.now()),this.saveCanvasCopy())}}renderLayer(e,t,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"sky"===n.type||"custom"===n.type||r&&r.length)&&(this.id=n.id,this.gpuTimingStart(n),e.transform.projection.unsupportedLayers&&e.transform.projection.unsupportedLayers.includes(n.type)||Nr[n.type](e,t,n,r,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;let n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=e.createQueryEXT();this.deferredRenderGpuTimeQueries.push(t),e.beginQueryEXT(e.TIME_ELAPSED_EXT,t)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const n in e){const r=e[n],i=this.context.extTimerQuery,o=i.getQueryObjectEXT(r.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r.query),t[n]=o}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.extTimerQuery;let n=0;for(const r of e)n+=t.getQueryObjectEXT(r,t.QUERY_RESULT_EXT)/1e6,t.deleteQueryEXT(r);return n}translatePosMatrix(t,n,r,i,o){if(!r[0]&&!r[1])return t;const a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){const e=Math.sin(a),t=Math.cos(a);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}const s=[o?r[0]:R(n,r[0],this.transform.zoom),o?r[1]:R(n,r[1],this.transform.zoom),0],l=new Float32Array(16);return e.translate(l,t,s),l}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n}currentGlobalDefines(){const e=this.terrain&&this.terrain.renderingToTexture,t=this.style&&this.style.fog,n=[];return this.terrain&&!this.terrain.renderingToTexture&&n.push("TERRAIN"),t&&!e&&0!==t.getOpacity(this.transform.pitch)&&n.push("FOG"),e&&n.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&n.push("OVERDRAW_INSPECTOR"),n}useProgram(e,t,n){this.cache=this.cache||{};const r=n||[],i=this.currentGlobalDefines().concat(r),o=jn.cacheKey(hn[e],e,i,t);return this.cache[o]||(this.cache[o]=new jn(this.context,e,hn[e],t,cr[e],i)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(t,n,r){if(this.terrain&&this.terrain.renderingToTexture)return;const i=this.style.fog;if(i){const o=i.getOpacity(this.transform.pitch),a=((t,n,r,i,o,a,s,l,c,u,d)=>{const p=t.transform,h=n.properties.get("color").toArray01();h[3]=i;const f=t.frameCounter/1e3%1;return{u_fog_matrix:r?p.calculateFogTileMatrix(r):t.identityMat,u_fog_range:n.getFovAdjustedRange(p._fov),u_fog_color:h,u_fog_horizon_blend:n.properties.get("horizon-blend"),u_fog_temporal_offset:f,u_frustum_tl:o,u_frustum_tr:a,u_frustum_br:s,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:u,u_viewport:d,u_globe_transition:e.globeToMercatorTransition(p.zoom),u_is_globe:+("globe"===p.projection.name)}})(this,i,r,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.exported.devicePixelRatio,this.transform.height*e.exported.devicePixelRatio]);n.setFogUniformValues(t,a)}}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const t=this._backgroundTiles,n=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const i of r)n[i.key]=t[i.key]||new e.Tile(i,512,this.transform.tileZoom,this);return n}clearBackgroundTiles(){this._backgroundTiles={}}}class zr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r}interpolate(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this}getCenter(t,n){const r=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.pointGeometry(r,i)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new zr(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Br(t,n){const r=e.getColumn(t,3);e.fromQuat(t,n),e.setColumn(t,3,r)}function Ur(t,n){const r=e.identity$1([]);return e.rotateZ$1(r,r,-n),e.rotateX$1(r,r,-t),r}function $r(t,n){const r=[t[0],t[1],0],i=[n[0],n[1],0];if(e.length(r)>=1e-15){const t=e.normalize([],r);e.scale$2(i,t,e.dot(i,t)),n[0]=i[0],n[1]=i[1]}const o=e.cross([],n,t);if(e.len(o)<1e-15)return null;const a=Math.atan2(-o[1],o[0]);return Ur(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),a)}class Vr{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const n=t instanceof e.MercatorCoordinate?t:new e.MercatorCoordinate(t[0],t[1],t[2]);this._renderWorldCopies&&(n.x=e.wrap(n.x,0,1)),this._position=n}else this._position=null}lookAtPoint(t,n){if(this.orientation=null,!this.position)return;const r=this._elevation?this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)):0,i=this.position,o=e.MercatorCoordinate.fromLngLat(t,r),a=[o.x-i.x,o.y-i.y,o.z-i.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=$r(a,n)}setPitchBearing(t,n){this.orientation=Ur(e.degToRad(t),e.degToRad(-n))}}class qr{constructor(t,n){this._transform=e.identity([]),this.orientation=n,this.position=t}get mercatorPosition(){const t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}get position(){const t=e.getColumn(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var n;t&&e.setColumn(this._transform,3,[(n=t)[0],n[1],n[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.identity$1([]),t&&Br(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Ur(e,t),Br(this._transform,this._orientation)}forward(){const t=e.getColumn(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.getColumn(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.getColumn(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,n){const r=new Float64Array(16);return e.invert(r,this.getWorldToCamera(t,n)),r}getWorldToCameraPosition(t,n,r){const i=this.position;e.scale$2(i,i,-t);const o=new Float64Array(16);return e.fromScaling(o,[r,r,r]),e.translate(o,o,i),o[10]*=n,o}getWorldToCamera(t,n){const r=new Float64Array(16),i=new Float64Array(4),o=this.position;return e.conjugate(i,this._orientation),e.scale$2(o,o,-t),e.fromQuat(r,i),e.translate(r,r,o),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n,r}getCameraToClipPerspective(t,n,r,i){const o=new Float64Array(16);return e.perspective(o,t,n,r,i),o}getDistanceToElevation(t){const n=0===t?0:e.mercatorZfromAltitude(t,this.position[1]),r=this.forward();return(n-this.position[2])/r[2]}clone(){return new qr([...this.position],[...this.orientation])}}function Zr(t,n){const r=Gr(t.projection,t.zoom,t.width,t.height),i=function(t,n,r,i,o){const a=new e.LngLat(r.lng-180*Wr,r.lat),s=new e.LngLat(r.lng+180*Wr,r.lat),l=t.project(a.lng,a.lat),c=t.project(s.lng,s.lat),u=-Math.atan2(c.y-l.y,c.x-l.x),d=e.MercatorCoordinate.fromLngLat(r);d.y=e.clamp(d.y,-.999975,.999975);const p=d.toLngLat(),h=t.project(p.lng,p.lat),f=e.MercatorCoordinate.fromLngLat(p);f.x+=Wr;const m=f.toLngLat(),g=t.project(m.lng,m.lat),y=Kr(g.x-h.x,g.y-h.y,u),v=e.MercatorCoordinate.fromLngLat(p);v.y+=Wr;const b=v.toLngLat(),_=t.project(b.lng,b.lat),w=Kr(_.x-h.x,_.y-h.y,u),x=Math.abs(y.x)/Math.abs(w.y),k=e.identity([]);e.rotateZ(k,k,-u*(1-(o?0:i)));const C=e.identity([]);return e.scale(C,C,[1,1-(1-x)*i,1]),C[4]=-w.x/w.y*i,e.rotateZ(C,C,u),e.multiply(C,k,C),C}(t.projection,0,t.center,r,n),o=Hr(t);return e.scale(i,i,[o,o,1]),i}function Hr(t){const n=t.projection,r=Gr(t.projection,t.zoom,t.width,t.height),i=Yr(n,t.center),o=Yr(n,e.LngLat.convert(n.center));return Math.pow(2,i*r+(1-r)*o)}function Gr(t,n,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0;const a=t.range;if(!a)return 0;const s=Math.min(o,Math.max(r,i)),l=Math.log(s/1024)/Math.LN2;return e.smoothstep(a[0]+l,a[1]+l,n)}const Wr=1/4e4;function Yr(t,n){const r=e.clamp(n.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),i=new e.LngLat(n.lng-180*Wr,r),o=new e.LngLat(n.lng+180*Wr,r),a=t.project(i.lng,r),s=t.project(o.lng,r),l=e.MercatorCoordinate.fromLngLat(i),c=e.MercatorCoordinate.fromLngLat(o),u=s.x-a.x,d=s.y-a.y,p=c.x-l.x,h=c.y-l.y,f=Math.sqrt((p*p+h*h)/(u*u+d*d));return Math.log(f)/Math.LN2}function Kr(e,t,n){const r=Math.cos(n),i=Math.sin(n);return{x:e*r-t*i,y:e*i+t*r}}class Xr{constructor(t,n,r,i,o,a,s){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setProjection(a),this.setMaxBounds(s),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new zr,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new qr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const e=new Xr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(e){const t=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||t)&&this._updateCameraOnTerrain(),(e||t)&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return e.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};const r=this.projection?this.getProjection():void 0;this.projection=e.getProjection(this.projectionOptions);const i=!t(r,this.getProjection());return i&&this._calcMatrices(),this.mercatorFromTransition=!1,i}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.getProjection({name:"mercator"});const n=t!==this.projection.name;return n&&this._calcMatrices(),n}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.mercatorZfromAltitude(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.pointGeometry(this.width,this.height)}get bearing(){return e.wrap(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const n=-t*Math.PI/180;var r;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(r=new e.ARRAY_TYPE(4),e.ARRAY_TYPE!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r),function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);e[0]=r*l+o*s,e[1]=i*l+a*s,e[2]=r*-s+o*l,e[3]=i*-s+a*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const e=this._elevation;this._centerAltitude=e.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=e.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let i=0,o=0;for(let a=0;a<n.length;a++){const s=new e.pointGeometry(n[a][0]*this.width,r+n[a][1]*(this.height-r)),l=t.pointCoordinate(s);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);i+=l[3]*c,o+=c}return 0===o?NaN:i/o}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),n=this.pixelsPerMeter/this.worldSize*t,r=this._mercatorZfromZoom(e),i=this._mercatorZfromZoom(this._maxZoom),o=Math.max(r-n,i);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const n=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let r;r=t.z<this._camera.position[2]?[n.x,n.y,n.z]:[t.x,t.y,t.z];const i=e.length(e.sub([],this._camera.position,r));return e.clamp(this._zoomFromMercatorZ(i),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let n=!1;if(t.orientation&&!e.exactEquals(t.orientation,this._camera.orientation)&&(n=this._setCameraOrientation(t.orientation)),t.position){const r=[t.position.x,t.position.y,t.position.z];e.exactEquals$1(r,this._camera.position)||(this._setCameraPosition(r),n=!0)}n&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,n=new Vr;return n.position=new e.MercatorCoordinate(t[0],t[1],t[2]),n.orientation=this._camera.orientation,n._elevation=this.elevation,n._renderWorldCopies=this.renderWorldCopies,n}_setCameraOrientation(t){if(!e.length$1(t))return!1;e.normalize$1(t,t);const n=e.transformQuat([],[0,0,-1],t),r=e.transformQuat([],[0,-1,0],t);if(r[2]<0)return!1;const i=$r(n,r);return!!i&&(this._camera.orientation=i,!0)}_setCameraPosition(t){const n=this.zoomScale(this.minZoom)*this.tileSize,r=this.zoomScale(this.maxZoom)*this.tileSize,i=this.cameraToCenterDistance;t[2]=e.clamp(t[2],i/r,i/n),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const n=[new e.UnwrappedTileID(0,t)];if(this.renderWorldCopies){const r=this.pointCoordinate(new e.pointGeometry(0,0)),i=this.pointCoordinate(new e.pointGeometry(this.width,0)),o=this.pointCoordinate(new e.pointGeometry(this.width,this.height)),a=this.pointCoordinate(new e.pointGeometry(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),l=Math.floor(Math.max(r.x,i.x,o.x,a.x)),c=1;for(let u=s-c;u<=l+c;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t))}return n}coveringTiles(t){let n=this.coveringZoomLevel(t);const r=n,i=this.elevation&&!t.isTerrainDEM,o="mercator"===this.projection.name;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);const a=this.locationCoordinate(this.center),s=this.center.lat,l=1<<n,c=[l*a.x,l*a.y,0],u="globe"===this.projection.name,d=!u,p=e.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n,d),h=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),f=l*e.mercatorZfromAltitude(1,this.center.lat),m=this._camera.position[2]/e.mercatorZfromAltitude(1,this.center.lat),g=[l*h.x,l*h.y,m*(d?1:f)],y=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),v=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?n:0,b=t.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,_=t.isTerrainDEM?-b:this._elevation?this._elevation.getMinElevationBelowMSL():0,w=this.projection.isReprojectedInTileSpace?Hr(this):1,x=t=>{const n=1/4e4,r=new e.MercatorCoordinate(t.x+n,t.y,t.z),i=new e.MercatorCoordinate(t.x,t.y+n,t.z),o=t.toLngLat(),a=r.toLngLat(),s=i.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(a),u=this.locationCoordinate(s),d=Math.hypot(c.x-l.x,c.y-l.y),p=Math.hypot(u.x-l.x,u.y-l.y);return Math.sqrt(d*p)*w/n},k=t=>{const n=b,r=_;return{aabb:e.tileAABB(this,l,0,0,0,t,r,n,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:n,wrap:t,fullyVisible:!1}},C=[];let S=[];const M=n,T=t.reparseOverscaled?r:n,E=e=>e*e,P=E((m-this._centerAltitude)*f),I=e=>{if(!this._elevation||!e.tileID||!o)return;const t=this._elevation.getMinMaxForTile(e.tileID),n=e.aabb;t?(n.min[2]=t.min,n.max[2]=t.max,n.center[2]=(n.min[2]+n.max[2])/2):(e.shouldSplit=O(e),e.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},O=t=>{if(t.zoom<v)return!0;if(t.zoom===M)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const n=t.aabb.distanceX(g),o=t.aabb.distanceY(g);let a=P,l=1;if(u){a=E(t.aabb.distanceZ(g));const n=Math.pow(2,t.zoom),r=e.latFromMercatorY((t.y+1)/n),i=e.latFromMercatorY(t.y/n),o=Math.min(Math.max(s,r),i),c=e.circumferenceAtLatitude(o)/e.circumferenceAtLatitude(s);if(l=o===s?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,c/this._mercatorScaleRatio),this.zoom<=e.GLOBE_ZOOM_THRESHOLD_MIN&&t.zoom===M-1&&c>=.9)return!0}else if(i&&(a=E(t.aabb.distanceZ(g)*f)),this.projection.isReprojectedInTileSpace&&r<=5){const n=Math.pow(2,t.zoom),r=x(new e.MercatorCoordinate((t.x+.5)/n,(t.y+.5)/n));l=r>.85?1:r}const c=n*n+o*o+a;return c<E((1<<M-t.zoom)*y*l*((e,t)=>{if(t*E(.707)<e)return 1;const n=Math.sqrt(t/e);return n/(1.4144271570014144+(Math.pow(1.1,n-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(a,P),c))};if(this.renderWorldCopies)for(let e=1;e<=3;e++)C.push(k(-e)),C.push(k(e));for(C.push(k(0));C.length>0;){const r=C.pop(),a=r.x,s=r.y;let d=r.fullyVisible;if(!d){const e=r.aabb.intersects(p);if(0===e)continue;d=2===e}if(r.zoom!==M&&O(r))for(let t=0;t<4;t++){const n=(a<<1)+t%2,c=(s<<1)+(t>>1),p={aabb:o?r.aabb.quadrant(t):e.tileAABB(this,l,r.zoom+1,n,c,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:n,y:c,wrap:r.wrap,fullyVisible:d,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};i&&!u&&(p.tileID=new e.OverscaledTileID(r.zoom+1===M?T:r.zoom+1,r.wrap,r.zoom+1,n,c),I(p)),C.push(p)}else{const i=r.zoom===M?T:r.zoom;if(t.minzoom&&t.minzoom>i)continue;const o=c[0]-(.5+a+(r.wrap<<r.zoom))*(1<<n-r.zoom),l=c[1]-.5-s,u=r.tileID?r.tileID:new e.OverscaledTileID(i,r.wrap,r.zoom,a,s);S.push({tileID:u,distanceSq:o*o+l*l})}}if(this.fogCullDistSq){const n=this.fogCullDistSq,r=this.horizonLineFromTop();S=S.filter((i=>{const o=[0,0,0,1],a=[e.EXTENT,e.EXTENT,0,1],s=this.calculateFogTileMatrix(i.tileID.toUnwrapped());e.transformMat4$1(o,o,s),e.transformMat4$1(a,a,s);const l=e.getAABBPointSquareDist(o,a);if(0===l)return!0;let c=!1;const u=this._elevation;if(u&&l>n&&0!==r){const n=this.calculateProjMatrix(i.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=u.getMinMaxForTile(i.tileID)),o||(o={min:_,max:b});const a=e.furthestTileCorner(this.rotation),s=[a[0]*e.EXTENT,a[1]*e.EXTENT,o.max];e.transformMat4(s,s,n),c=(1-s[1])*this.height*.5<r}return l<n||c}))}return S.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const n=e.clamp(t.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),r=this.projection.project(t.lng,n);return new e.pointGeometry(r.x*this.worldSize,r.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(t,n){let r,i;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;r=(n.x-o.x)/e,i=(n.y-o.y)/e}else{const e=this.pointCoordinate(n),t=this.pointCoordinate(o);r=e.x-t.x,i=e.y-t.y}const a=this.locationCoordinate(t);this.setLocation(new e.MercatorCoordinate(a.x-r,a.y-i))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,n){const r=n?e.mercatorZfromAltitude(n,t.lat):void 0,i=this.projection.project(t.lng,t.lat);return new e.MercatorCoordinate(i.x,i.y,r)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,n){const r=null!=n?n:this._centerAltitude,i=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.transformMat4$1(i,i,this.pixelMatrixInverse),e.transformMat4$1(o,o,this.pixelMatrixInverse);const a=o[3];e.scale$1(i,i,1/i[3]),e.scale$1(o,o,1/a);const s=i[2],l=o[2];return{p0:i,p1:o,t:s===l?0:(r-s)/(l-s)}}screenPointToMercatorRay(t){const n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];return e.transformMat4$1(n,n,this.pixelMatrixInverse),e.transformMat4$1(r,r,this.pixelMatrixInverse),e.scale$1(n,n,1/n[3]),e.scale$1(r,r,1/r[3]),n[2]=e.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,r[2]=e.mercatorZfromAltitude(r[2],this._center.lat)*this.worldSize,e.scale$1(n,n,1/this.worldSize),e.scale$1(r,r,1/this.worldSize),new e.Ray([n[0],n[1],n[2]],e.normalize([],e.sub([],r,n)))}rayIntersectionCoordinate(t){const{p0:n,p1:r,t:i}=t,o=e.mercatorZfromAltitude(n[2],this._center.lat),a=e.mercatorZfromAltitude(r[2],this._center.lat);return new e.MercatorCoordinate(e.number(n[0],r[0],i)/this.worldSize,e.number(n[1],r[1],i)/this.worldSize,e.number(o,a,i))}pointCoordinate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._centerAltitude;return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);let n=this.projection.pointCoordinate3D(this,t.x,t.y);if(n)return new e.MercatorCoordinate(n[0],n[1],n[2]);let r=0,i=this.horizonLineFromTop();if(t.y>i)return this.pointCoordinate(t);const o=.02*i,a=t.clone();for(let s=0;s<10&&i-r>o;s++){a.y=e.number(r,i,.66);const t=this.projection.pointCoordinate3D(this,a.x,a.y);t?(i=a.y,n=t):r=a.y}return n?new e.MercatorCoordinate(n[0],n[1],n[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}_coordinatePoint(t,n){const r=n&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,i=[t.x*this.worldSize,t.y*this.worldSize,r+t.toAltitude(),1];return e.transformMat4$1(i,i,this.pixelMatrix),i[3]>0?new e.pointGeometry(i[0]/i[3],i[1]/i[3]):new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(t,n){const r=new e.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),i=new e.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),o=new e.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),a=new e.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let s=this.pointCoordinate(r,t),l=this.pointCoordinate(i,t);const c=this.pointCoordinate(o,n),u=this.pointCoordinate(a,n),d=(e,t)=>(t.y-e.y)/(t.x-e.x);return s.y>1&&l.y>=0?s=new e.MercatorCoordinate((1-u.y)/d(u,s)+u.x,1):s.y<0&&l.y<=1&&(s=new e.MercatorCoordinate(-u.y/d(u,s)+u.x,0)),l.y>1&&s.y>=0?l=new e.MercatorCoordinate((1-c.y)/d(c,l)+c.x,1):l.y<0&&s.y<=1&&(l=new e.MercatorCoordinate(-c.y/d(c,l)+c.x,0)),(new e.LngLatBounds).extend(this.coordinateLocation(s)).extend(this.coordinateLocation(l)).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(c))}_getBounds3D(){const e=this.elevation;if(!e.visibleDemTiles.length)return this._getBounds(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const n=t.dem.tree;e.min=Math.min(e.min,n.minimums[0]),e.max=Math.max(e.max,n.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBounds(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,n):n}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.MAX_MERCATOR_LATITUDE,this.maxLat=e.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=e.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=e.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=e.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=e.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const n=t.key,r=this._distanceTileDataCache;if(r[n])return r[n];const i=t.canonical,o=1/this.height,a=this.cameraWorldSize/this.zoomScale(i.z),s=(i.x+Math.pow(2,i.z)*t.wrap)*a,l=i.y*a,c=this.point,u=this.angle,d=Math.sin(-u),p=-Math.cos(-u);return r[n]={bearing:[d,p],center:[(c.x-s)*o,(c.y-l)*o],scale:a/e.EXTENT*o},r[n]}calculateFogTileMatrix(t){const n=t.key,r=this._fogTileMatrixCache;if(r[n])return r[n];const i=this.projection.createTileMatrix(this,this.cameraWorldSize,t);return e.multiply(i,this.worldToFogMatrix,i),r[n]=new Float32Array(i),r[n]}calculateProjMatrix(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=t.key,i=n?this._alignedProjMatrixCache:this._projMatrixCache;if(i[r])return i[r];const o=this.calculatePosMatrix(t,this.worldSize);return e.multiply(o,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.alignedProjMatrix:this.projMatrix,o),i[r]=new Float32Array(o),i[r]}calculatePixelsToTileUnitsMatrix(t){const n=t.tileID.key,r=this._pixelsToTileUnitsCache;if(r[n])return r[n];const i=function(t,n){const{scale:r}=t.tileTransform,i=r*e.EXTENT/(t.tileSize*Math.pow(2,n.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return o=new Float32Array(4),l=(a=n.inverseAdjustmentMatrix)[1],c=a[2],u=a[3],p=(s=[i,i])[1],o[0]=a[0]*(d=s[0]),o[1]=l*d,o[2]=c*p,o[3]=u*p,o;var o,a,s,l,c,u,d,p}(t,this);return r[n]=i,r[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const t=this._elevation;this._updateCameraState();const n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),i=this._camera.forward(),o=e.mercatorZfromAltitude(1,this._center.lat);r[2]/=o,i[2]/=o,e.normalize(i,i);const a=t.raycast(r,i,t.exaggeration());if(a){const t=e.scaleAndAdd([],r,i,a),n=new e.MercatorCoordinate(t[0],t[1],e.mercatorZfromAltitude(t[2],e.latFromMercatorY(t[1]))),s=(n.z+e.length([n.x-r[0],n.y-r[1],n.z-r[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(s),this._centerAltitude=n.toAltitude(),this._center=this.coordinateLocation(n),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),i=t.getAtPointOrZero(new e.MercatorCoordinate(...r)),o=this._minimumHeightOverTerrain()*Math.cos(e.degToRad(this._maxPitch)),a=this._camera.position[2]-this.pixelsPerMeter/this.worldSize*i;if(a<o){const t=this.locationCoordinate(this._center,this._centerAltitude),n=[t.x-r[0],t.y-r[1],t.z-r[2]],i=e.length(n);n[2]-=(o-a)/this._pixelsPerMercatorPixel;const s=e.length(n);if(0===s)return;e.scale$2(n,n,i/s*this._pixelsPerMercatorPixel),this._camera.position=[t.x-n[0],t.y-n[1],t.z*this._pixelsPerMercatorPixel-n[2]],this._camera.orientation=$r(n,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const t="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||t){const n=this.center;return n.lat=e.clamp(n.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!t)&&(n.lng=e.clamp(n.lng,this.minLng,this.maxLng)),this.center=n,void(this._constraining=!1)}const n=this._unmodified,{x:r,y:i}=this.point;let o=0,a=r,s=i;const l=this.width/2,c=this.height/2,u=this.worldMinY*this.scale,d=this.worldMaxY*this.scale;if(i-c<u&&(s=u+c),i+c>d&&(s=d-c),d-u<this.height&&(o=Math.max(o,this.height/(d-u)),s=(d+u)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,n=this.worldSize/2-(e+t)/2;a=(r+n+this.worldSize)%this.worldSize-n,a-l<e&&(a=e+l),a+l>t&&(a=t-l),t-e<this.width&&(o=Math.max(o,this.width/(t-e)),a=(t+e)/2)}a===r&&s===i||(this.center=this.unproject(new e.pointGeometry(a,s))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCameraAltitude(),this._unmodified=n,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,n=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=e.mercatorZfromAltitude(1,this.center.lat)/e.mercatorZfromAltitude(1,e.GLOBE_SCALE_MATCH_LATITUDE));const r=Gr(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,r),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const i=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?n:1),o=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);o[8]=2*-t.x/this.width,o[9]=2*t.y/this.height;let a=e.mul([],o,i);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),n=e.identity([]);e.translate(n,n,[t.x*this.worldSize,t.y*this.worldSize,0]),e.multiply(n,n,Zr(this)),e.translate(n,n,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.multiply(a,a,n),this.inverseAdjustmentMatrix=function(e){const t=Zr(e,!0);return v([],[t[0],t[1],t[4],t[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=e.scale([],a,[this.worldSize,this.worldSize,this.worldSize/n,1]),this.projMatrix=a,this.invProjMatrix=e.invert(new Float64Array(16),this.projMatrix);const s=e.invert([],o);this.frustumCorners=e.FrustumCorners.fromInvProjectionMatrix(s,this.horizonLineFromTop(),this.height);const l=new Float32Array(16);e.identity(l),e.scale(l,l,[1,-1,1]),e.rotateX(l,l,this._pitch),e.rotateZ(l,l,this.angle);const c=e.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),u=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;c[8]=2*-t.x/this.width,c[9]=2*(t.y+u)/this.height,this.skyboxMatrix=e.multiply(l,c,l);const d=this.point,p=d.x,h=d.y,f=this.width%2/2,m=this.height%2/2,g=Math.cos(this.angle),y=Math.sin(this.angle),b=p-Math.round(p)+g*f+y*m,_=h-Math.round(h)+g*m+y*f,w=new Float64Array(a);if(e.translate(w,w,[b>.5?b-1:b,_>.5?_-1:_,0]),this.alignedProjMatrix=w,a=e.create(),e.scale(a,a,[this.width/2,-this.height/2,1]),e.translate(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=e.create(),e.scale(a,a,[1,-1,1]),e.translate(a,a,[-1,-1,0]),e.scale(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},a=e.invert(new Float64Array(16),this.pixelMatrix),!a)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=a,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.calculateGlobeMatrix(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.transformMat4(t,t,i),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=a;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSize,n=this.cameraPixelsPerMeter,r=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,n];e.scale$2(o,o,i),e.scale$2(r,r,-1),e.multiply$2(r,r,o);const a=e.create();e.translate(a,a,r),e.scale(a,a,o),this.mercatorFogMatrix=a,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,n,i)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),r=this.point,i=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-n[0]*i,r.y/this.worldSize-n[1]*i,e/this.worldSize*this._centerAltitude-n[2]*i]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=t[2];let i=1;r>0&&(i=Math.min((n-this._camera.position[2])/r,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,i),this._updateStateFromCamera(),this.projection.wrap&&(this.center=this.center.wrap())}_updateStateFromCamera(){const t=this._camera.position,n=this._camera.forward(),{pitch:r,bearing:i}=this._camera.getPitchBearing(),o=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,a=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),s=Math.max((t[2]-o)/Math.cos(r),a),l=this._zoomFromMercatorZ(s);e.scaleAndAdd(t,t,n,s),this._pitch=e.clamp(r,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(i,-Math.PI,Math.PI),this._setZoom(e.clamp(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.MercatorCoordinate(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(t,n){const r=Math.min(t.x,n.x),i=Math.max(t.x,n.x),o=Math.min(t.y,n.y),a=Math.max(t.y,n.y);if(o<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const s=[new e.pointGeometry(r,o),new e.pointGeometry(i,a),new e.pointGeometry(r,a),new e.pointGeometry(i,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const e of s){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const n=this.rayIntersectionCoordinate(t);if(n.x<l||n.y<0||n.x>c||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.pointGeometry(0,0),new e.pointGeometry(this.width,this.height))}zoomDeltaToMovement(t,n){const r=e.length(e.sub([],this._camera.position,t)),i=this._zoomFromMercatorZ(r)+n;return r-this._mercatorZfromZoom(i)}getCameraPoint(){if("globe"===this.projection.name){const t=function(t,n){const r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,n);const i=Math.max(r[3],1e-6);return[r[0]/i,r[1]/i,r[2]/i,i]}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.pointGeometry(t[0],t[1])}{const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.pointGeometry(0,t))}}getCameraToCenterDistance(e){const t=Gr(e,this.zoom,this.width,this.height,1024),n=e.pixelSpaceConversion(this.center.lat,this.worldSize,t);return.5/Math.tan(.5*this._fov)*this.height*n}}function Jr(e,t){let n=!1,r=null;const i=()=>{r=null,n&&(e(),r=setTimeout(i,t),n=!1)};return()=>(n=!0,r||i(),r)}class Qr{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Jr(this._updateHashUnthrottled.bind(this),300)}addTo(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),t.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),e.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const t=this._map;if(!t)return"";const n=ei(t);if(this._hashName){const t=this._hashName;let r=!1;const i=e.window.location.hash.slice(1).split("&").map((e=>{const i=e.split("=")[0];return i===t?(r=!0,`${i}=${n}`):e})).filter((e=>e));return r||i.push(`${t}=${n}`),`#${i.join("&")}`}return`#${n}`}_getCurrentHash(){const t=e.window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map((e=>e.split("="))).forEach((t=>{t[0]===this._hashName&&(e=t)})),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const n=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}function ei(e,t){const n=e.getCenter(),r=Math.round(100*e.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,l=e.getBearing(),c=e.getPitch();let u=t?`/${a}/${s}/${r}`:`${r}/${s}/${a}`;return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+=`/${Math.round(c)}`),u}const ti={linearity:.3,easing:e.bezier(0,0,.3,1)},ni=e.extend({deceleration:2500,maxSpeed:1400},ti),ri=e.extend({deceleration:20,maxSpeed:1400},ti),ii=e.extend({deceleration:1e3,maxSpeed:360},ti),oi=e.extend({deceleration:1e3,maxSpeed:90},ti);class ai{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=e.exported.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new e.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(n.pan.mag()){const o=li(n.pan.mag(),r,e.extend({},ni,t||{}));i.offset=n.pan.mult(o.amount/n.pan.mag()),i.center=this._map.transform.center,si(i,o)}if(n.zoom){const e=li(n.zoom,r,ri);i.zoom=this._map.transform.zoom+e.amount,si(i,e)}if(n.bearing){const t=li(n.bearing,r,ii);i.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),si(i,t)}if(n.pitch){const e=li(n.pitch,r,oi);i.pitch=this._map.transform.pitch+e.amount,si(i,e)}if(i.zoom||i.bearing){const e=void 0===n.pinchAround?n.around:n.pinchAround;i.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),i.noMoveStart=!0,i}}function si(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function li(t,n,r){const{maxSpeed:i,linearity:o,deceleration:a}=r,s=e.clamp(t*o/(n/1e3),-i,i),l=Math.abs(s)/(a*o);return{easing:r.easing,duration:1e3*l,amount:s*(l/2)}}class ci extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=f(n.getCanvasContainer(),r),a=n.unproject(o);super(t,e.extend({point:o,lngLat:a,originalEvent:r},i)),this._defaultPrevented=!1,this.target=n}}class ui extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,r){const i="touchend"===t?r.changedTouches:r.touches,o=m(n.getCanvasContainer(),i),a=o.map((e=>n.unproject(e))),s=o.reduce(((e,t,n,r)=>e.add(t.div(r.length))),new e.pointGeometry(0,0));super(t,{points:o,point:s,lngLats:a,lngLat:n.unproject(s),originalEvent:r}),this._defaultPrevented=!1}}class di extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n){super(e,{originalEvent:n}),this._defaultPrevented=!1}}class pi{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new di(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new ci(e.type,this._map,e))}mouseup(e){this._map.fire(new ci(e.type,this._map,e))}preclick(t){const n=e.extend({},t);n.type="preclick",this._map.fire(new ci(n.type,this._map,n))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new ci(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new ci(e.type,this._map,e))}mouseover(e){this._map.fire(new ci(e.type,this._map,e))}mouseout(e){this._map.fire(new ci(e.type,this._map,e))}touchstart(e){return this._firePreventable(new ui(e.type,this._map,e))}touchmove(e){this._map.fire(new ui(e.type,this._map,e))}touchend(e){this._map.fire(new ui(e.type,this._map,e))}touchcancel(e){this._map.fire(new ui(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class hi{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new ci(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ci("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new ci(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class fi{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(u(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const n=t;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)return;const r=this._startPos;this._lastPos=n,this._box||(this._box=o("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const i=Math.min(r.x,n.x),a=Math.max(r.x,n.x),s=Math.min(r.y,n.y),l=Math.max(r.y,n.y);this._map._requestDomTask((()=>{this._box&&(this._box.style.transform=`translate(${i}px,${s}px)`,this._box.style.width=a-i+"px",this._box.style.height=l-s+"px")}))}mouseupWindow(t,n){if(!this._active)return;if(0!==t.button)return;const r=this._startPos,i=n;if(this.reset(),h(),r.x!==i.x||r.y!==i.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),d(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))}}function mi(e,t){const n={};for(let r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}class gi{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){const n=new e.pointGeometry(0,0);for(const e of t)n._add(e);return n.div(t.length)}(n),this.touches=mi(r,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;const r=mi(n,t);for(const i in this.touches){const e=this.touches[i],t=r[i];(!t||t.dist(e)>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class yi{constructor(e){this.singleTap=new gi(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){const r=this.singleTap.touchend(e,t,n);if(r){const t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(r)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class vi{constructor(){this._zoomIn=new yi({numTouches:1,numTaps:2}),this._zoomOut=new yi({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){const r=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n);return r?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(r)},{originalEvent:e})}):i?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const bi={0:1,2:2};class _i{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const n=g(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}mousemoveWindow(e,t){const n=this._lastPoint;if(n)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const n=bi[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)}mouseupWindow(e){this._lastPoint&&g(e)===this._eventButton&&(this._moved&&h(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class wi extends _i{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class xi extends _i{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}}contextmenu(e){e.preventDefault()}}class ki extends _i{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}}contextmenu(e){e.preventDefault()}}class Ci{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=n.clickTolerance||1,this.reset(),e.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.pointGeometry(0,0)}touchstart(e,t,n){return this._calculateTransform(e,t,n)}touchmove(t,n,r){if(this._active&&!(r.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===r.length&&!e.isFullscreen())return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return t.cancelable&&t.preventDefault(),this._calculateTransform(t,n,r)}}touchend(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,n,r){r.length>0&&(this._active=!0);const i=mi(r,n),o=new e.pointGeometry(0,0),a=new e.pointGeometry(0,0);let s=0;for(const e in i){const t=i[e],n=this._touches[e];n&&(o._add(t),a._add(t.sub(n)),s++,i[e]=t)}if(this._touches=i,s<this._minTouches||!a.mag())return;const l=a.div(s);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(s),panDelta:l}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")}),500)}}class Si{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,n){return{}}touchstart(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,n){const r=this._firstTwoTouches;if(!r)return;e.preventDefault();const[i,o]=r,a=Mi(n,t,i),s=Mi(n,t,o);if(!a||!s)return;const l=this._aroundCenter?null:a.add(s).div(2);return this._move([a,s],l,e)}touchend(e,t,n){if(!this._firstTwoTouches)return;const[r,i]=this._firstTwoTouches,o=Mi(n,t,r),a=Mi(n,t,i);o&&a||(this._active&&h(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Mi(e,t,n){for(let r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function Ti(e,t){return Math.log(e/t)/Math.LN2}class Ei extends Si{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Ti(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ti(this._distance,n),pinchAround:t}}}function Pi(e,t){return 180*e.angleWith(t)/Math.PI}class Ii extends Si{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const n=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Pi(this._vector,n),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,n=Pi(e,this._startVector);return Math.abs(n)<t}}function Oi(e){return Math.abs(e.y)>Math.abs(e.x)}class Li extends Si{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,Oi(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,n){const r=this._lastPoints;if(!r)return;const i=e[0].sub(r[0]),o=e[1].sub(r[1]);return this._map._cooperativeGestures&&n.touches.length<3||(this._valid=this.gestureBeginsVertically(i,o,n.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(i.y+o.y)/2*-.5})}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;const r=e.mag()>=2,i=t.mag()>=2;if(!r&&!i)return;if(!r||!i)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Oi(e)&&Oi(t)&&o}}const Ri={panStep:100,bearingStep:15,pitchStep:10};class ji{constructor(){const e=Ri;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,r=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:a=>{const s=a.getZoom();a.easeTo({duration:300,easeId:"keyboardHandler",easing:Di,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+n*this._bearingStep,pitch:a.getPitch()+r*this._pitchStep,offset:[-i*this._panStep,-o*this._panStep],center:a.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Di(e){return e*(2-e)}const Ai=4.000244140625;class Ni{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const r=e.exported.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%Ai==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=f(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform,n=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Ai?this._wheelZoomRate:this._defaultZoomRate;let r=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==r&&(r=1/r);const i=n(),o=Math.pow(2,i),a="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(a*r))),"wheel"===this._type&&(this._startZoom=i,this._easing=this._smoothOutEasing(200)),this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:n(),i=this._startZoom,o=this._easing;let a,s=!1;if("wheel"===this._type&&i&&o){const t=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),n=o(t);a=e.number(i,r,n),t<1?this._frameId||(this._frameId=!0):s=!0}else a=r,s=!0;return this._active=!0,s&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:a-n(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=e.ease;if(this._prevEase){const t=this._prevEase,r=(e.exported.now()-t.start)/t.duration,i=t.easing(r+.01)-t.easing(r),o=.27/Math.sqrt(i*i+1e-4)*.01,a=Math.sqrt(.0729-o*o);n=e.bezier(o,a,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:n},n}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(e.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")}),200)}}class Fi{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class zi{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Bi{constructor(){this._tap=new yi({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ui{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class $i{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Vi{constructor(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const qi=e=>e.zoom||e.drag||e.pitch||e.rotate;class Zi extends e.Event{}class Hi{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,n){const r=e.sub([],n,t);this.radius=e.length(r[2]<0?e.div([],r,this.constants):[r[0],r[1],0])}projectRay(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);const n=e.scale$2([],t,this.radius);if(n[2]>0){const t=e.scale$2([],[0,0,1],e.dot(n,[0,0,1])),r=e.scale$2([],e.normalize([],[n[0],n[1],0]),this.radius),i=e.add([],n,e.scale$2([],e.sub([],e.add([],r,t),n),2));n[0]=i[0],n[1]=i[1]}return n}}function Gi(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Wi{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ai(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Hi,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),e.bindAll(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[e.window,"blur",void 0]];for(const[i,o,a]of this._listeners)i.addEventListener(o,i===e.window.document?this.handleWindowEvent:this.handleEvent,a)}destroy(){for(const[t,n,r]of this._listeners)t.removeEventListener(n,t===e.window.document?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){const t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new pi(t,e));const r=t.boxZoom=new fi(t,e);this._add("boxZoom",r);const i=new vi,o=new zi;t.doubleClickZoom=new Fi(o,i),this._add("tapZoom",i),this._add("clickZoom",o);const a=new Bi;this._add("tapDragZoom",a);const s=t.touchPitch=new Li(t);this._add("touchPitch",s);const l=new xi(e),c=new ki(e);t.dragRotate=new $i(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new wi(e),d=new Ci(t,e);t.dragPan=new Ui(n,u,d),this._add("mousePan",u),this._add("touchPan",d,["touchZoom","touchRotate"]);const p=new Ii,h=new Ei;t.touchZoomRotate=new Vi(n,h,p,a),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",h,["touchPan","touchRotate"]),this._add("blockableMapEvent",new hi(t));const f=t.scrollZoom=new Ni(t,this);this._add("scrollZoom",f,["mousePan"]);const m=t.keyboard=new ji;this._add("keyboard",m);for(const g of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[g]&&t[g].enable(e[g])}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!qi(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,n){for(const r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const n of e)this._el.contains(n.target)&&t.push(n);return t}handleEvent(e,t){this._updatingCamera=!0;const n="renderFrame"===e.type,r=n?void 0:e,i={needsRenderFrame:!1},o={},a={},s=e.touches?this._getMapTouches(e.touches):void 0,l=s?m(this._el,s):n?void 0:f(this._el,e);for(const{handlerName:d,handler:p,allowed:h}of this._handlers){if(!p.isEnabled())continue;let n;this._blockedByActive(a,h,d)?p.reset():p[t||e.type]&&(n=p[t||e.type](e,l,s),this.mergeHandlerResult(i,o,n,d,r),n&&n.needsRenderFrame&&this._triggerRenderFrame()),(n||p.isActive())&&(a[d]=p)}const c={};for(const d in this._previousActiveHandlers)a[d]||(c[d]=r);this._previousActiveHandlers=a,(Object.keys(c).length||Gi(i))&&(this._changes.push([i,o,c]),this._triggerRenderFrame()),(Object.keys(a).length||Gi(i))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=i;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(t,n,r,i,o){if(!r)return;e.extend(t,r);const a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}_applyChanges(){const t={},n={},r={};for(const[i,o,a]of this._changes)i.panDelta&&(t.panDelta=(t.panDelta||new e.pointGeometry(0,0))._add(i.panDelta)),i.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(t.around=i.around),void 0!==i.aroundCoord&&(t.aroundCoord=i.aroundCoord),void 0!==i.pinchAround&&(t.pinchAround=i.pinchAround),i.noInertia&&(t.noInertia=i.noInertia),e.extend(n,o),e.extend(r,a);this._updateMapTransform(t,n,r),this._changes=[]}_updateMapTransform(t,n,r){const i=this._map,o=i.transform,a=e=>[e.x,e.y,e.z];if((e=>{const t=this._eventsInProgress.drag;return t&&!this._handlersById[t.handlerName].isActive()})()&&!Gi(t)){const e=o.zoom;o.cameraElevationReference="sea",o.recenterOnTerrain(),o.cameraElevationReference="ground",e!==o.zoom&&this._map._update(!0)}if(!Gi(t))return void this._fireEvents(n,r,!0);let{panDelta:s,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:d,aroundCoord:p,pinchAround:h}=t;void 0!==h&&(d=h),(e=>n.drag&&!this._eventsInProgress.drag)()&&d&&(this._dragOrigin=a(o.pointCoordinate3D(d)),this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",i._stop(!0),d=d||i.transform.centerPoint,c&&(o.bearing+=c),u&&(o.pitch+=u),o._updateCameraState();const f=[0,0,0];if(s)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(d).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(d.sub(s)).dir);f[0]=t[0]-e[0],f[1]=t[1]-e[1]}else{const t=o.pointCoordinate(d);if("globe"===o.projection.name){s=s.rotate(-o.angle);const n=o._pixelsPerMercatorPixel/o.worldSize;f[0]=-s.x*e.mercatorScale(e.latFromMercatorY(t.y))*n,f[1]=-s.y*e.mercatorScale(o.center.lat)*n}else{const e=o.pointCoordinate(d.sub(s));t&&e&&(f[0]=e.x-t.x,f[1]=e.y-t.y)}}const m=o.zoom,g=[0,0,0];if(l){const t=a(p||o.pointCoordinate3D(d)),n={dir:e.normalize([],e.sub([],t,o._camera.position))};if(n.dir[2]<0){const r=o.zoomDeltaToMovement(t,l);e.scale$2(g,n.dir,r)}}const y=e.add(f,f,g);o._translateCameraConstrained(y),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,r,!0)}_fireEvents(t,n,r){const i=qi(this._eventsInProgress),o=qi(t),a={};for(const e in t){const{originalEvent:n}=t[e];this._eventsInProgress[e]||(a[`${e}start`]=n),this._eventsInProgress[e]=t[e]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in a)this._fireEvent(e,a[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:n}=t[e];this._fireEvent(e,n)}const s={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=n[t]||r,s[`${e}end`]=l)}for(const e in s)this._fireEvent(e,s[e]);const c=qi(this._eventsInProgress);if(r&&(i||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(n(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.Event("moveend",{originalEvent:l})),n(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{this._frameId=void 0,this.handleEvent(new Zi("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Yi="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Ki extends e.Evented{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,n,r){return t=e.pointGeometry.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)}panTo(t,n,r){return this.easeTo(e.extend({center:t},n),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)}resetNorth(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,n){"globe"===this.transform.projection.name&&e.warnOnce('Globe projection does not support cameraForBounds API, this API may behave unexpectedly."'),t=e.LngLatBounds.convert(t);const r=n&&n.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,n)}_extendCameraOptions(t){const n={top:0,bottom:0,right:0,left:0};if("number"==typeof(t=e.extend({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding){const e=t.padding;t.padding={top:e,bottom:e,right:e,left:e}}return t.padding=e.extend(n,t.padding),t}_cameraForBoxAndBearing(t,n,r,i){const o=this._extendCameraOptions(i),a=this.transform,s=a.padding,l=a.project(e.LngLat.convert(t)),c=a.project(e.LngLat.convert(n)),u=new e.pointGeometry(l.x,c.y),d=new e.pointGeometry(c.x,l.y),p=-e.degToRad(r),h=l.rotate(p),f=c.rotate(p),m=u.rotate(p),g=d.rotate(p),y=new e.pointGeometry(Math.max(h.x,f.x,m.x,g.x),Math.max(h.y,f.y,m.y,g.y)),v=new e.pointGeometry(Math.min(h.x,f.x,m.x,g.x),Math.min(h.y,f.y,m.y,g.y)),b=y.sub(v),_=(a.width-((s.left||0)+(s.right||0)+o.padding.left+o.padding.right))/b.x,w=(a.height-((s.top||0)+(s.bottom||0)+o.padding.top+o.padding.bottom))/b.y;if(w<0||_<0)return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const x=Math.min(a.scaleZoom(a.scale*Math.min(_,w)),o.maxZoom),k="number"==typeof o.offset.x&&"number"==typeof o.offset.y?new e.pointGeometry(o.offset.x,o.offset.y):e.pointGeometry.convert(o.offset),C=new e.pointGeometry((o.padding.left-o.padding.right)/2,(o.padding.top-o.padding.bottom)/2).rotate(r*Math.PI/180),S=k.add(C).mult(a.scale/a.zoomScale(x));return{center:a.unproject(l.add(c).div(2).sub(S)),zoom:x,bearing:r}}_cameraForBox(t,n,r,i,o){const a=this._extendCameraOptions(o);r=r||0,i=i||0,t=e.LngLat.convert(t),n=e.LngLat.convert(n);const s=this.transform.clone();s.padding=a.padding;const l=this.getFreeCameraOptions(),c=new e.LngLat(.5*(t.lng+n.lng),.5*(t.lat+n.lat)),u=.5*(r+i);if(s._camera.position[2]<e.mercatorZfromAltitude(u,c.lat))return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");l.lookAtPoint(c),s.setFreeCameraOptions(l);const d=e.MercatorCoordinate.fromLngLat(t),p=e.MercatorCoordinate.fromLngLat(n),h=s.pointRayIntersection(s.centerPoint,u),f=[(m=s.rayIntersectionCoordinate(h)).x,m.y,m.z];var m;const g=s.screenPointToMercatorRay(s.centerPoint),y="globe"!==s.projection.name;let v,b=0;do{const n=Math.floor(s.zoom),o=1<<n,a=Math.min(o*d.x,o*p.x),l=Math.min(o*d.y,o*p.y),c=Math.max(o*d.x,o*p.x),u=Math.max(o*d.y,o*p.y),h=new e.Aabb([a,l,r],[c,u,i]),m=e.Frustum.fromInvProjectionMatrix(s.invProjMatrix,s.worldSize,n,y);if(2!==h.intersects(m)){v&&(s._camera.position=e.scaleAndAdd([],s._camera.position,g.dir,-v),s._updateStateFromCamera());break}const b=e.sub([],s._camera.position,f);v=.5*e.length(b),s._camera.position=e.scaleAndAdd([],s._camera.position,g.dir,v);try{s._updateStateFromCamera()}catch(t){return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++b<10);return{center:s.center,zoom:s.zoom,bearing:s.bearing,pitch:s.pitch}}fitBounds(t,n,r){return"globe"===this.transform.projection.name&&e.warnOnce("Globe projection does not support fitBounds API, this API may behave unexpectedly."),this._fitInternal(this.cameraForBounds(t,n),n,r)}_raycastElevationBox(t,n){const r=this.transform.elevation;if(!r)return;const i=new e.pointGeometry(t.x,n.y),o=new e.pointGeometry(n.x,t.y),a=r.pointCoordinate(t);if(!a)return;const s=r.pointCoordinate(n);if(!s)return;const l=r.pointCoordinate(i);if(!l)return;const c=r.pointCoordinate(o);if(!c)return;const u=new e.MercatorCoordinate(a[0],a[1]).toLngLat(),d=new e.MercatorCoordinate(s[0],s[1]).toLngLat(),p=new e.MercatorCoordinate(l[0],l[1]).toLngLat(),h=new e.MercatorCoordinate(c[0],c[1]).toLngLat(),f=Math.min(u.lng,Math.min(d.lng,Math.min(p.lng,h.lng))),m=Math.min(u.lat,Math.min(d.lat,Math.min(p.lat,h.lat))),g=Math.max(u.lng,Math.max(d.lng,Math.max(p.lng,h.lng))),y=Math.max(u.lat,Math.max(d.lat,Math.max(p.lat,h.lat))),v=Math.min(a[3],Math.min(s[3],Math.min(l[3],c[3]))),b=Math.max(a[3],Math.max(s[3],Math.max(l[3],c[3])));return{minLngLat:new e.LngLat(f,m),maxLngLat:new e.LngLat(g,y),minAltitude:v,maxAltitude:b}}fitScreenCoordinates(t,n,r,i,o){let a,s,l,c;"globe"===this.transform.projection.name&&e.warnOnce("Globe projection does not support fitScreenCoordinates API, this API may behave unexpectedly.");const u=e.pointGeometry.convert(t),d=e.pointGeometry.convert(n),p=this._raycastElevationBox(u,d);if(p)a=p.minLngLat,s=p.maxLngLat,l=p.minAltitude,c=p.maxAltitude;else{if(this.transform.anyCornerOffEdge(u,d))return this;a=this.transform.pointLocation(u),s=this.transform.pointLocation(d)}return this._fitInternal(0===this.transform.pitch?this._cameraForBoxAndBearing(this.transform.pointLocation(e.pointGeometry.convert(t)),this.transform.pointLocation(e.pointGeometry.convert(n)),r,i):this._cameraForBox(a,s,l,c,i),i,o)}_fitInternal(t,n,r){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this}jumpTo(t,n){this.stop();const r=t.preloadOnly?this.transform.clone():this.transform;let i=!1,o=!1,a=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(i=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),null==t.padding||r.isPaddingEqual(t.padding)||(r.padding=t.padding),t.preloadOnly?(this._preloadTiles(r),this):(this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),i&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),o&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),a&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.warnOnce(Yi),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,n){const r=this.transform;if(!r.projection.supportsFreeCamera)return e.warnOnce(Yi),this;this.stop();const i=r.zoom,o=r.pitch,a=r.bearing;r.setFreeCameraOptions(t);const s=i!==r.zoom,l=o!==r.pitch,c=a!==r.bearing;return this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),s&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),c&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),l&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n)),this}easeTo(t,n){this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.exported.prefersReducedMotion)&&(t.duration=0);const r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l="zoom"in t?+t.zoom:i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:a,d="padding"in t?t.padding:r.padding,p=e.pointGeometry.convert(t.offset);let h,f,m;if("globe"===r.projection.name){const n=e.MercatorCoordinate.fromLngLat(r.center),i=p.rotate(-r.angle);n.x+=i.x/r.worldSize,n.y+=i.y/r.worldSize;const o=n.toLngLat(),a=e.LngLat.convert(t.center||o);this._normalizeCenter(a),h=r.centerPoint.add(i),f=new e.pointGeometry(n.x,n.y).mult(r.worldSize),m=new e.pointGeometry(e.mercatorXfromLng(a.lng),e.mercatorYfromLat(a.lat)).mult(r.worldSize).sub(f)}else{h=r.centerPoint.add(p);const n=r.pointLocation(h),i=e.LngLat.convert(t.center||n);this._normalizeCenter(i),f=r.project(n),m=r.project(i).sub(f)}const g=r.zoomScale(l-i);let y,v;t.around&&(y=e.LngLat.convert(t.around),v=r.locationPoint(y));const b=this._zooming||l!==i,_=this._rotating||o!==c,w=this._pitching||u!==a,x=!r.isPaddingEqual(d),k=r=>k=>{if(b&&(r.zoom=e.number(i,l,k)),_&&(r.bearing=e.number(o,c,k)),w&&(r.pitch=e.number(a,u,k)),x&&(r.interpolatePadding(s,d,k),h=r.centerPoint.add(p)),y)r.setLocationAtPoint(y,v);else{const e=r.zoomScale(r.zoom-i),t=l>i?Math.min(2,g):Math.max(.5,g),n=Math.pow(t,1-k),o=r.unproject(f.add(m.mult(k*n)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?o.wrap():o,h)}return t.preloadOnly||this._fireMoveEvents(n),r};if(t.preloadOnly){const e=this._emulate(k,t.duration,r);return this._preloadTiles(e),this}const C={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=b,this._rotating=_,this._pitching=w,this._padding=x,this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,C),this._ease(k(r),(e=>{r.recenterOnTerrain(),this._afterEase(n,e)}),t),this}_prepareEase(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._moving=!0,this.transform.cameraElevationReference="sea",n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),i&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}flyTo(t,n){if(!t.essential&&e.exported.prefersReducedMotion){const r=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l="zoom"in t?e.clamp(+t.zoom,r.minZoom,r.maxZoom):i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:a,d="padding"in t?t.padding:r.padding,p=r.zoomScale(l-i),h=e.pointGeometry.convert(t.offset);let f=r.centerPoint.add(h);const m=r.pointLocation(f),g=e.LngLat.convert(t.center||m);this._normalizeCenter(g);const y=r.project(m),v=r.project(g).sub(y);let b=t.curve;const _=Math.max(r.width,r.height),w=_/p,x=v.mag();if("minZoom"in t){const n=e.clamp(Math.min(t.minZoom,i,l),r.minZoom,r.maxZoom),o=_/r.zoomScale(n-i);b=Math.sqrt(o/x*2)}const k=b*b;function C(e){const t=(w*w-_*_+(e?-1:1)*k*k*x*x)/(2*(e?w:_)*k*x);return Math.log(Math.sqrt(t*t+1)-t)}function S(e){return(Math.exp(e)-Math.exp(-e))/2}function M(e){return(Math.exp(e)+Math.exp(-e))/2}const T=C(0);let E=function(e){return M(T)/M(T+b*e)},P=function(e){return _*((M(T)*(S(t=T+b*e)/M(t))-S(T))/k)/x;var t},I=(C(1)-T)/b;if(Math.abs(x)<1e-6||!isFinite(I)){if(Math.abs(_-w)<1e-6)return this.easeTo(t,n);const e=w<_?-1:1;I=Math.abs(Math.log(w/_))/b,P=function(){return 0},E=function(t){return Math.exp(e*b*t)}}t.duration="duration"in t?+t.duration:1e3*I/("screenSpeed"in t?+t.screenSpeed/b:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const O=o!==c,L=u!==a,R=!r.isPaddingEqual(d),j=r=>p=>{const m=p*I,b=1/E(m);r.zoom=1===p?l:i+r.scaleZoom(b),O&&(r.bearing=e.number(o,c,p)),L&&(r.pitch=e.number(a,u,p)),R&&(r.interpolatePadding(s,d,p),f=r.centerPoint.add(h));const _=1===p?g:r.unproject(y.add(v.mult(P(m))).mult(b));return r.setLocationAtPoint(r.renderWorldCopies?_.wrap():_,f),r._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(n),r};if(t.preloadOnly){const e=this._emulate(j,t.duration,r);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=O,this._pitching=L,this._padding=R,this._prepareEase(n,!1),this._ease(j(r),(()=>this._afterEase(n)),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.exported.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=e.wrap(t,-180,180);const r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.maxBounds)return;const n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}_emulate(e,t,n){const r=Math.ceil(15*t/1e3),i=[],o=e(n.clone());for(let a=0;a<=r;a++){const e=o(a/r);i.push(e.clone())}return i}}class Xi{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o("button","mapboxgl-ctrl-attrib-button",this._container),o("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const n=this._map._getUIString(`AttributionControl.${t}`);e.setAttribute("aria-label",n),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){const r=n.reduce(((e,t,r)=>(t.value&&(e+=`${t.key}=${t.value}${r<n.length-1?"&":""}`),e)),"?");t.href=`${e.config.FEEDBACK_URL}/${r}#${ei(this._map,!0)}`,t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._sourceCaches;for(const r in t){const n=t[r];if(n.used){const t=n.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,n)=>{for(let r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Ji{constructor(){e.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=o("div","mapboxgl-ctrl");const t=o("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const n=e[t].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class Qi{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(const r of n)if(r.id===e)return void(r.cancelled=!0)}run(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this._currentlyRunning=this._queue;this._queue=[];for(const n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function eo(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){const i=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),a=360*Math.ceil(Math.abs(t.lng-r.center.lng)/360),s=r.locationPoint(t).distSqr(n),l=n.x<0||n.y<0||n.x>r.width||n.y>r.height;r.locationPoint(i).distSqr(n)<s&&(l||Math.abs(i.lng-r.center.lng)<a)?t=i:r.locationPoint(o).distSqr(n)<s&&(l||Math.abs(o.lng-r.center.lng)<a)&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){const e=r.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}const to={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class no extends e.Evented{constructor(t,n){if(super(),(t instanceof e.window.HTMLElement||n)&&(t=e.extend({element:t},n)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),t&&t.element)this._element=t.element,this._offset=e.pointGeometry.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o("div");const n=41,r=27,i=a("svg",{display:"block",height:n*this._scale+"px",width:r*this._scale+"px",viewBox:`0 0 ${r} ${n}`},this._element),s=a("radialGradient",{id:"shadowGradient"},a("defs",{},i));a("stop",{offset:"10%","stop-opacity":.4},s),a("stop",{offset:"100%","stop-opacity":.05},s),a("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},i),a("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},i),a("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},i),a("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},i),this._offset=e.pointGeometry.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const r=this._element.classList;for(const e in to)r.remove(`mapboxgl-marker-anchor-${e}`);r.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(t-n+r)],"bottom-right":[-r,-1*(t-n+r)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map;if(!e)return!1;const t=e.unproject(this._pos),n=e.getFreeCameraOptions();if(!n.position)return!1;const r=n.position.toLngLat();return r.distanceTo(t)<.9*r.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const n=this._pos;if(!n||n.x<0||n.x>t.transform.width||n.y<0||n.y>t.transform.height)return void this._clearFadeTimer();const r=t.unproject(n);let i;t._showingGlobe()&&e.isLngLatBehindGlobe(t.transform,this._lngLat)?i=0:(i=1-t._queryFogOpacity(r),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(i*=.2)),this._element.style.opacity=`${i}`,this._element.style.pointerEvents=i>0?"auto":"none",this._popup&&this._popup._setOpacity(i),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform=`\n            translate(${e.x}px,${e.y}px)\n            ${to[this._anchor]}\n            ${this._calculateXYTransform()} ${this._calculateZTransform()}\n            translate(${t.x}px,${t.y}px)\n        `}_calculateXYTransform(){const t=this._pos,n=this._map,r=this.getPitchAlignment();if(!n||!t||"map"!==r)return"";if(!n._showingGlobe()){const e=n.getPitch();return e?`rotateX(${e}deg)`:""}const i=e.radToDeg(e.globeTiltAtLngLat(n.transform,this._lngLat)),o=t.sub(e.globeCenterToScreenPoint(n.transform)),a=Math.abs(o.x)+Math.abs(o.y);if(0===a)return"";const s=i/a;return`rotateX(${-o.y*s}deg) rotateY(${o.x*s}deg)`}_calculateZTransform(){const t=this._pos,n=this._map;if(!n||!t)return"";let r=0;const i=this.getRotationAlignment();if("map"===i)if(n._showingGlobe()){const t=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),i=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(t);r=e.radToDeg(Math.atan2(i.y,i.x))-90}else r=-n.getBearing();else if("horizon"===i){const i=e.smoothstep(4,6,n.getZoom()),o=e.globeCenterToScreenPoint(n.transform);o.y+=i*n.transform.height;const a=t.sub(o),s=e.radToDeg(Math.atan2(a.y,a.x));r=(s>90?s-270:s+90)*(1-i)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(t){e.window.cancelAnimationFrame(this._updateFrameId);const n=this._map;n&&(n.transform.renderWorldCopies&&(this._lngLat=eo(this._lngLat,this._pos,n.transform)),this._pos=n.project(this._lngLat),!0===t?this._updateFrameId=e.window.requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),n._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(n._showingGlobe()||n.getTerrain()||n.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(t){return this._offset=e.pointGeometry.convert(t),this._update(),this}_onMove(t){const n=this._map;if(n){if(!this._isDragging){const e=this._clickTolerance||n._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=n.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map;t&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}}class ro{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const n=e.easeCubicInOut((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,n){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+n}}const io={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},oo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function ao(e){e.parentNode&&e.parentNode.removeChild(e)}const so={showCompass:!0,showZoom:!0,visualizePitch:!1};class lo{constructor(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._clickTolerance=10,this.element=n,this.mouseRotate=new xi({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,r&&(this.mousePitch=new ki({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener("mousedown",this.mousedown),n.addEventListener("touchstart",this.touchstart,{passive:!1}),n.addEventListener("touchmove",this.touchmove),n.addEventListener("touchend",this.touchend),n.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),u()}move(e,t){const n=this.map,r=this.mouseRotate.mousemoveWindow(e,t),i=r&&r.bearingDelta;if(i&&n.setBearing(n.getBearing()+i),this.mousePitch){const r=this.mousePitch.mousemoveWindow(e,t),i=r&&r.pitchDelta;i&&n.setPitch(n.getPitch()+i)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){d(),e.window.removeEventListener("mousemove",this.mousemove),e.window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),f(this.element,t)),e.window.addEventListener("mousemove",this.mousemove),e.window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,f(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=m(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=m(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const co={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},uo={maxWidth:100,unit:"metric"};function po(e,t,n){const r=ho(t),i=r/t,o={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"}[n];this._map._requestDomTask((()=>{this._container.style.width=e*i+"px",this._container.innerHTML=`${r}&nbsp;${o}`}))}function ho(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}const fo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},mo=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function go(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new e.pointGeometry(0,0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom";if("number"==typeof t){const r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(n){case"top":return new e.pointGeometry(0,t);case"top-left":return new e.pointGeometry(r,r);case"top-right":return new e.pointGeometry(-r,r);case"bottom":return new e.pointGeometry(0,-t);case"bottom-left":return new e.pointGeometry(r,-r);case"bottom-right":return new e.pointGeometry(-r,-r);case"left":return new e.pointGeometry(t,0);case"right":return new e.pointGeometry(-t,0)}return new e.pointGeometry(0,0)}return t instanceof e.pointGeometry||Array.isArray(t)?e.pointGeometry.convert(t):e.pointGeometry.convert(t[n]||[0,0])}const yo={version:e.version,supported:n,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends Ki{constructor(t){if(null!=(t=e.extend({},oo,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.isSafariWithAntialiasingBug(e.window)&&(t.antialias=!1,e.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Xr(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._optimizeForTerrain=t.optimizeForTerrain,this._language="auto"===t.language?e.window.navigator.language:t.language,this._worldview=t.worldview,this._renderTaskQueue=new Qi,this._domRenderTaskQueue=new Qi,this._controls=[],this._markers=[],this._mapId=e.uniqueId(),this._locale=e.extend({},io,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new ro(0),this._useExplicitProjection=!1,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof e.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1),e.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new Wi(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),this._hash=t.hash&&new Qr("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),t.attributionControl&&this.addControl(new Xi({customAttribution:t.customAttribution})),this._logoControl=new Ji,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.Event(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.Event(`${t.dataType}dataloading`,t))}))}_getMapId(){return this._mapId}addControl(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)),this.fire(new e.Event("resize",t)),n&&this.fire(new e.Event("moveend",t)),this}getBounds(){return"globe"===this.transform.projection.name&&e.warnOnce('Globe projection does not support getBounds API, this API may behave unexpectedly."'),this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?85:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}getLanguage(){return this._language}setLanguage(t){if(this._language="auto"===t?e.window.navigator.language:t,this.style)for(const e in this.style._sourceCaches){const t=this.style._sourceCaches[e]._source;t._setLanguage&&t._setLanguage(this._language)}for(const e of this._controls)e._setLanguage&&e._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){if(this._worldview=e,this.style)for(const t in this.style._sourceCaches){const n=this.style._sourceCaches[t]._source;n._setWorldview&&n._setWorldview(e)}return this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,n=t.projection.name;let r;"globe"===n&&t.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?(t.setMercatorFromTransition(),r=!0):"mercator"===n&&t.zoom<e.GLOBE_ZOOM_THRESHOLD_MAX&&(t.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(t){let n;if(n="globe"===t.name&&this.transform.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),n){this.painter.clearBackgroundTiles();for(const e in this.style._sourceCaches)this.style._sourceCaches[e].clearTiles();this._update(!0)}return this}project(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation3D(e.pointGeometry.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let r=!1;const i=i=>{const o=t.filter((e=>this.getLayer(e))),a=o.length?this.queryRenderedFeatures(i.point,{layers:o}):[];a.length?r||(r=!0,n.call(this,new ci(e,this,i.originalEvent,{features:a}))):r=!1},o=()=>{r=!1};return{layers:new Set(t),listener:n,delegates:{mousemove:i,mouseout:o}}}if("mouseleave"===e||"mouseout"===e){let r=!1;const i=i=>{const o=t.filter((e=>this.getLayer(e)));(o.length?this.queryRenderedFeatures(i.point,{layers:o}):[]).length?r=!0:r&&(r=!1,n.call(this,new ci(e,this,i.originalEvent)))},o=t=>{r&&(r=!1,n.call(this,new ci(e,this,t.originalEvent)))};return{layers:new Set(t),listener:n,delegates:{mousemove:i,mouseout:o}}}{const r=e=>{const r=t.filter((e=>this.getLayer(e))),i=r.length?this.queryRenderedFeatures(e.point,{layers:r}):[];i.length&&(e.features=i,n.call(this,e),delete e.features)};return{layers:new Set(t),listener:n,delegates:{[e]:r}}}}on(e,t,n){if(void 0===n)return super.on(e,t);Array.isArray(t)||(t=[t]);const r=this._createDelegatedListener(e,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r);for(const i in r.delegates)this.on(i,r.delegates[i]);return this}once(e,t,n){if(void 0===n)return super.once(e,t);Array.isArray(t)||(t=[t]);const r=this._createDelegatedListener(e,t,n);for(const i in r.delegates)this.once(i,r.delegates[i]);return this}off(e,t,n){if(void 0===n)return super.off(e,t);t=new Set(Array.isArray(t)?t:[t]);const r=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},i=this._delegatedListeners?this._delegatedListeners[e]:void 0;return i&&(e=>{for(let i=0;i<e.length;i++){const o=e[i];if(o.listener===n&&r(o.layers,t)){for(const e in o.delegates)this.off(e,o.delegates[e]);return e.splice(i,1),this}}})(i),this}queryRenderedFeatures(t,n){return this.style?(void 0!==n||void 0===t||t instanceof e.pointGeometry||Array.isArray(t)||(n=t,t=void 0),this.style.queryRenderedFeatures(t=t||[[0,0],[this.transform.width,this.transform.height]],n=n||{},this.transform)):[]}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}queryTerrainElevation(t,n){const r=this.transform.elevation;return r?(n=e.extend({},{exaggerated:!0},n),r.getAtPoint(e.MercatorCoordinate.fromLngLat(t),null,n.exaggerated)):null}setStyle(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&n.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(t,n))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e&&(this.style=new en(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new en(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,n){if("string"==typeof t){const r=this._requestManager.normalizeStyleURL(t),i=this._requestManager.transformRequest(r,e.ResourceType.Style);e.getJSON(i,((t,r)=>{t?this.fire(new e.ErrorEvent(t)):r&&this._updateDiff(r,n)}))}else"object"==typeof t&&this._updateDiff(t,n)}_updateDiff(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce(`Unable to perform style diff: ${r.message||r.error||r}.  Rebuilding the style from scratch.`),this._updateStyle(t,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.warnOnce("There is no style added to the map."),!1)}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){return!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const n=e[t]._tiles;for(const e in n){const t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,n){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)}removeSource(e){return this.style.removeSource(e),this._updateTerrain(),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,n){let{pixelRatio:r=1,sdf:i=!1,stretchX:o,stretchY:a,content:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._lazyInitEmptyStyle(),n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap){const{width:l,height:c,data:u}=e.exported.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},u),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=n,u=n;this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},new Uint8Array(u.data)),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,n){const r=this.style.getImage(t);if(!r)return void this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap?e.exported.getImageData(n):n,{width:o,height:a}=i;void 0!==o&&void 0!==a?o===r.data.width&&a===r.data.height?(r.data.replace(i.data,!(n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap)),this.style.updateImage(t,r)):this.fire(new e.ErrorEvent(new Error(`The width and height of the updated image (${o}, ${a})\n                must be that same as the previous version of the image\n                (${r.data.width}, ${r.data.height})`))):this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),((t,r)=>{n(t,r instanceof e.window.HTMLImageElement?e.exported.getImageData(r):r)}))}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.style.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.style.setPaintProperty(e,t,n,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.style.setLayoutProperty(e,t,n,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t),this.transform):0}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let r,i,o,a=this._container;for(;a&&(!i||!o);){const t=e.window.getComputedStyle(a).transform;t&&"none"!==t&&(r=t.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&"0"!==r[0]&&"1"!==r[0]&&(i=r[0]),r[3]&&"0"!==r[3]&&"1"!==r[3]&&(o=r[3])),a=a.parentElement}this._containerWidth=i?Math.abs(t/i):t,this._containerHeight=o?Math.abs(n/o):n}_detectMissingCSS(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=o("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=o("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=o("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=o("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{r[e]=o("div",`mapboxgl-ctrl-${e}`,n)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,n){const r=e.exported.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(n),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${n}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_setupPainter(){const t=e.extend({},n.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);r?(e.storeAuthState(r,!0),this.painter=new Fr(r,this.transform),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)})),e.exported$1.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let n;const r=this.painter.context.extTimerQuery,i=e.exported.now();if(this.listens("gpu-timing-frame")&&(n=r.createQueryEXT(),r.beginQueryEXT(r.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();let o=!1;const a=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=this.transform.pitch,r=e.exported.now();this.style.zoomHistory.update(t,r);const i=new e.EvaluationParameters(t,{now:r,fadeDuration:a,pitch:n,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),s=i.crossFadingFactor();1===s&&s===this._crossFadingFactor||(o=!0,this._crossFadingFactor=s),this.style.update(i)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(i),this.style._updateSources(this.transform),this._forceMarkerUpdate()):s=this._updateAverageElevation(i),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,a,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:a,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const t=e.exported.now()-i;r.endQueryEXT(r.TIME_ELAPSED_EXT,n),setTimeout((()=>{const o=r.getQueryObjectEXT(n,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(n),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:o})),e.window.performance.mark("frame-gpu",{startTime:i,detail:{gpuTime:o}})}),50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout((()=>{const n=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:n}))}),50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const n=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.Event("gpu-timing-deferred-render",{gpuTime:n}))}),50)}const l=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(l||this._repaint)this.triggerRepaint();else{const t=!this.isMoving()&&this.loaded();if(t&&(s=this._updateAverageElevation(i,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||l||(this._fullyLoaded=!0,this._authenticate())}_forceMarkerUpdate(){for(const e of this._markers)e._update()}_updateAverageElevation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);if((t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let r=this.transform.sampleAverageElevation(),i=!1;this.transform.elevation&&(i=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(r)?r=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-r);if(o>1){if(this._isInitialLoad||i)return this._averageElevation.jumpTo(r),n(r);this._averageElevation.easeTo(r,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(r),n(r)}return!!this._averageElevation.isEasing(e)&&n(this._averageElevation.getValue(e))}_authenticate(){e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(t=>{if(t&&(t.message===e.AUTH_ERR_MSG||401===t.status)){const t=this.painter.context.gl;e.storeAuthState(t,!1),this._logoControl instanceof Ji&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,r=n.createFramebuffer();function i(e){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);const t=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,t),t}return n.bindFramebuffer(n.FRAMEBUFFER,r),this._canvasPixelComparison(i(e),t.canvasCopies.map(i),t.timeStamps)}_canvasPixelComparison(e,t,n){let r=n[1]-n[0];const i=e.length/4;for(let o=0;o<t.length;o++){const a=t[o];let s=0;for(let t=0;t<a.length;t+=4)a[t]===e[t]&&a[t+1]===e[t+1]&&a[t+2]===e[t+2]&&a[t+3]===e[t+3]&&(s+=1);r+=(n[o+2]-n[o+1])*(1-s/i)}return r}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),ao(this._canvasContainer),ao(this._controlContainer),ao(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),e.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.exported.frame((e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(t){const n=this.style?Object.values(this.style._sourceCaches):[];return e.asyncAll(n,((e,n)=>e._preloadTiles(t,n)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}_setCacheLimits(t,n){e.setCacheLimits(t,n)}get version(){return e.version}},NavigationControl:class{constructor(t){this.options=e.extend({},so,t),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=o("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;const t=e.getZoom(),n=t===e.getMaxZoom(),r=t===e.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new lo(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const n=o("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(e,t){if(!this._map)return;const n=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",n),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({geolocation:e.window.navigator.geolocation},co,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Jr(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(t){void 0!==this._supportsGeolocation?t(this._supportsGeolocation):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((e=>{this._supportsGeolocation="denied"!==e.state,t(this._supportsGeolocation)})):(this._supportsGeolocation=!!this.options.geolocation,t(this._supportsGeolocation))}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),n=e.coords;return!!t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),o=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})}_updateMarker(t){if(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,n=e.mercatorZfromAltitude(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=o("button","mapboxgl-ctrl-geolocate",this._container),o("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o("div","mapboxgl-user-location"),this._dotElement.appendChild(o("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(o("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new no({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=o("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new no({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))}))}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{e.window.addEventListener("ondeviceorientationabsolute"in e.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==e.window.DeviceMotionEvent&&"function"==typeof e.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((e=>{"granted"===e&&t()})).catch(console.error):t()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),e.window.removeEventListener("deviceorientation",this._onDeviceOrientation),e.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Xi,ScaleControl:class{constructor(t){this.options=e.extend({},uo,t),function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"narrow",unit:"meter"}),!0}catch(e){return!1}}()||(this._setScale=po.bind(this)),e.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,r=t._containerWidth/2-e/2,i=t.unproject([r,n]),o=t.unproject([r+e,n]),a=i.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*a;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,a/1852,"nautical-mile"):a>=1e3?this._setScale(e,a/1e3,"kilometer"):this._setScale(e,a,"meter")}_setScale(e,t,n){const r=ho(t),i=r/t;this._map._requestDomTask((()=>{this._container.style.width=e*i+"px",this._container.innerHTML="nautical-mile"!==n?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"narrow",unit:n}).format(r):`${r}&nbsp;nm`}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=o("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(fo),t),e.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),this._map=void 0),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(e.window.document.createTextNode(t))}setHTML(t){const n=e.window.document.createDocumentFragment(),r=e.window.document.createElement("body");let i;for(r.innerHTML=t;i=r.firstChild,i;)n.appendChild(i);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=o("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=o("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="&#215;",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList.delete(e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,n=this._container,r=this._pos;if(!t||!n||!r)return"bottom";const i=n.offsetWidth,o=n.offsetHeight,a=r.x<i/2,s=r.x>t.transform.width-i/2;if(r.y+e<o)return a?"top-left":s?"top-right":"top";if(r.y>t.transform.height-o){if(a)return"bottom-left";if(s)return"bottom-right"}return a?"left":s?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(t){const n=this._map,r=this._content;if(!n||!this._lngLat&&!this._trackPointer||!r)return;let i=this._container;if(i||(i=this._container=o("div","mapboxgl-popup",n.getContainer()),this._tip=o("div","mapboxgl-popup-tip",i),i.appendChild(r)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),n.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=eo(this._lngLat,this._pos,n.transform)),!this._trackPointer||t){const e=this._pos=this._trackPointer&&t?t:n.project(this._lngLat),r=go(this.options.offset),i=this._anchor=this._getAnchor(r.y),o=go(this.options.offset,i),a=e.add(o).round();n._requestDomTask((()=>{this._container&&i&&(this._container.style.transform=`${to[i]} translate(${a.x}px,${a.y}px)`)}))}if(!this._marker&&n._showingGlobe()){const t=e.isLngLatBehindGlobe(n.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(mo);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:no,Style:en,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.pointGeometry,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:Vr,Evented:e.Evented,config:e.config,prewarm:function(){Ue().acquire(Fe)},clearPrewarmedResources:function(){const e=Be;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Fe),Be=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return ze.workerCount},set workerCount(e){ze.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.exported.setNow,restoreNow:e.exported.restoreNow};return yo})),n}()},70942:e=>{"use strict";var t,n={DEBUG:!1,LIB_VERSION:"2.50.0"};if("undefined"===typeof window){var r={hostname:""};t={navigator:{userAgent:""},document:{location:r,referrer:""},screen:{width:0,height:0},location:r}}else t=window;var i=Array.prototype,o=Function.prototype,a=Object.prototype,s=i.slice,l=a.toString,c=a.hasOwnProperty,u=t.console,d=t.navigator,p=t.document,h=t.opera,f=t.screen,m=d.userAgent,g=o.bind,y=i.forEach,v=i.indexOf,b=i.map,_=Array.isArray,w={},x={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},k={log:function(){if(n.DEBUG&&!x.isUndefined(u)&&u)try{u.log.apply(u,arguments)}catch(e){x.each(arguments,(function(e){u.log(e)}))}},warn:function(){if(n.DEBUG&&!x.isUndefined(u)&&u){var e=["Mixpanel warning:"].concat(x.toArray(arguments));try{u.warn.apply(u,e)}catch(t){x.each(e,(function(e){u.warn(e)}))}}},error:function(){if(n.DEBUG&&!x.isUndefined(u)&&u){var e=["Mixpanel error:"].concat(x.toArray(arguments));try{u.error.apply(u,e)}catch(t){x.each(e,(function(e){u.error(e)}))}}},critical:function(){if(!x.isUndefined(u)&&u){var e=["Mixpanel error:"].concat(x.toArray(arguments));try{u.error.apply(u,e)}catch(t){x.each(e,(function(e){u.error(e)}))}}}},C=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(k,arguments)}},S=function(e){return{log:C(k.log,e),error:C(k.error,e),critical:C(k.critical,e)}};x.bind=function(e,t){var n,r;if(g&&e.bind===g)return g.apply(e,s.call(arguments,1));if(!x.isFunction(e))throw new TypeError;return n=s.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(s.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,n.concat(s.call(arguments)));return Object(a)===a?a:o},r},x.each=function(e,t,n){if(null!==e&&void 0!==e)if(y&&e.forEach===y)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===w)return}else for(var o in e)if(c.call(e,o)&&t.call(n,e[o],o,e)===w)return},x.extend=function(e){return x.each(s.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},x.isArray=_||function(e){return"[object Array]"===l.call(e)},x.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(t){return!1}},x.isArguments=function(e){return!(!e||!c.call(e,"callee"))},x.toArray=function(e){return e?e.toArray?e.toArray():x.isArray(e)||x.isArguments(e)?s.call(e):x.values(e):[]},x.map=function(e,t,n){if(b&&e.map===b)return e.map(t,n);var r=[];return x.each(e,(function(e){r.push(t.call(n,e))})),r},x.keys=function(e){var t=[];return null===e||x.each(e,(function(e,n){t[t.length]=n})),t},x.values=function(e){var t=[];return null===e||x.each(e,(function(e){t[t.length]=e})),t},x.include=function(e,t){var n=!1;return null===e?n:v&&e.indexOf===v?-1!=e.indexOf(t):(x.each(e,(function(e){if(n||(n=e===t))return w})),n)},x.includes=function(e,t){return-1!==e.indexOf(t)},x.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},x.isObject=function(e){return e===Object(e)&&!x.isArray(e)},x.isEmptyObject=function(e){if(x.isObject(e)){for(var t in e)if(c.call(e,t))return!1;return!0}return!1},x.isUndefined=function(e){return void 0===e},x.isString=function(e){return"[object String]"==l.call(e)},x.isDate=function(e){return"[object Date]"==l.call(e)},x.isNumber=function(e){return"[object Number]"==l.call(e)},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.encodeDates=function(e){return x.each(e,(function(t,n){x.isDate(t)?e[n]=x.formatDate(t):x.isObject(t)&&(e[n]=x.encodeDates(t))})),e},x.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},x.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},x.strip_empty_properties=function(e){var t={};return x.each(e,(function(e,n){x.isString(e)&&e.length>0&&(t[n]=e)})),t},x.truncate=function(e,t){var n;return"string"===typeof e?n=e.slice(0,t):x.isArray(e)?(n=[],x.each(e,(function(e){n.push(x.truncate(e,t))}))):x.isObject(e)?(n={},x.each(e,(function(e,r){n[r]=x.truncate(e,t)}))):n=e,n},x.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=n[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},n=function(e,r){var i="",o=0,a="",s="",u=0,d=i,p=[],h=r[e];switch(h&&"object"===typeof h&&"function"===typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+="    ",p=[],"[object Array]"===l.apply(h)){for(u=h.length,o=0;o<u;o+=1)p[o]=n(o,h)||"null";return s=0===p.length?"[]":i?"[\n"+i+p.join(",\n"+i)+"\n"+d+"]":"["+p.join(",")+"]",i=d,s}for(a in h)c.call(h,a)&&(s=n(a,h))&&p.push(t(a)+(i?": ":":")+s);return s=0===p.length?"{}":i?"{"+p.join(",")+d+"}":"{"+p.join(",")+"}",i=d,s}};return n("",{"":e})},x.JSONDecode=function(){var e,t,n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var r=new SyntaxError(t);throw r.at=e,r.text=n,r},a=function(r){return r&&r!==t&&o("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,n="";for("-"===t&&(n="-",a("-"));t>="0"&&t<="9";)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&t<="9";)n+=t;if("e"===t||"E"===t)for(n+=t,a(),"-"!==t&&"+"!==t||(n+=t,a());t>="0"&&t<="9";)n+=t,a();if(e=+n,isFinite(e))return e;o("Bad number")},l=function(){var e,n,r,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;n<4&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;s+=String.fromCharCode(r)}else{if("string"!==typeof i[t])break;s+=i[t]}else s+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)a()};return r=function(){switch(c(),t){case"{":return function(){var e,n={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),n;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(n,e)&&o('Duplicate key "'+e+'"'),n[e]=r(),c(),"}"===t)return a("}"),n;a(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),c(),"]"===t)return a("]"),e;a(","),c()}}o("Bad array")}();case'"':return l();case"-":return s();default:return t>="0"&&t<="9"?s():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var a;return n=i,e=0,t=" ",a=r(),c(),t&&o("Syntax error"),a}}(),x.base64Encode=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=x.utf8Encode(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},x.utf8Encode=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o},x.UUID=function(){var e=function(){var e,n=1*new Date;if(t.performance&&t.performance.now)e=t.performance.now();else for(e=0;n==1*new Date;)e++;return n.toString(16)+Math.floor(e).toString(16)};return function(){var t=(f.height*f.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=m,r=[],i=0;function o(e,t){var n,i=0;for(n=0;n<t.length;n++)i|=r[n]<<8*n;return e^i}for(e=0;e<n.length;e++)t=n.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=o(i,r),r=[]);return r.length>0&&(i=o(i,r)),i.toString(16)}()+"-"+t+"-"+e()}}();var M=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];x.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<M.length;t++)if(-1!==e.indexOf(M[t]))return!0;return!1},x.HTTPBuildQuery=function(e,t){var n,r,i=[];return x.isUndefined(t)&&(t="&"),x.each(e,(function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n})),i.join(t)},x.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!==typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(i){k.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},x.cookie={get:function(e){for(var t=e+"=",n=p.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=x.JSONDecode(x.cookie.get(e))||{}}catch(n){}return t},set_seconds:function(e,t,n,r,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(r){var u=D(p.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+1e3*n),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),p.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,n,r,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(r){var u=D(p.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+24*n*60*60*1e3),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var h=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return p.cookie=h,h},remove:function(e,t,n){x.cookie.set(e,"",-1,t,!1,!1,n)}};var T=null,E=function(e,t){if(null!==T&&!t)return T;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+L(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(n=!1),e.removeItem(r)}catch(i){n=!1}return T=n,n};x.localStorage={is_supported:function(e){var t=E(null,e);return t||k.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){k.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){x.localStorage.error(t)}return null},parse:function(e){try{return x.JSONDecode(x.localStorage.get(e))||{}}catch(t){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(n){x.localStorage.error(n)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){x.localStorage.error(t)}}},x.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{var a="on"+n,s=t[a];t[a]=function(t,n,r){var i=function(i){if(i=i||e(window.event)){var o,a,s=!0;return x.isFunction(r)&&(o=r(i)),a=n.call(t,i),!1!==o&&!1!==a||(s=!1),s}};return i}(t,r,s)}else k.error("No valid element provided to register_event")}}();var P=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');x.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!p.getElementsByTagName)return[];var r,i,o,a,s,l,c,u,d,h,f=t.split(" "),m=[p];for(l=0;l<f.length;l++)if((r=f[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=r.split("#"))[0];var g=i[1],y=p.getElementById(g);if(!y||o&&y.nodeName.toLowerCase()!=o)return[];m=[y]}else if(r.indexOf(".")>-1){o=(i=r.split("."))[0];var v=i[1];for(o||(o="*"),a=[],s=0,c=0;c<m.length;c++)for(d="*"==o?e(m[c]):m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];for(m=[],h=0,c=0;c<a.length;c++)a[c].className&&x.isString(a[c].className)&&n(a[c],v)&&(m[h++]=a[c])}else{var b=r.match(P);if(b){o=b[1];var _,w=b[2],k=b[3],C=b[4];for(o||(o="*"),a=[],s=0,c=0;c<m.length;c++)for(d="*"==o?e(m[c]):m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];switch(m=[],h=0,k){case"=":_=function(e){return e.getAttribute(w)==C};break;case"~":_=function(e){return e.getAttribute(w).match(new RegExp("\\b"+C+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(new RegExp("^"+C+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(C)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(C)==e.getAttribute(w).length-C.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(C)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(m=[],h=0,c=0;c<a.length;c++)_(a[c])&&(m[h++]=a[c])}else{for(o=r,a=[],s=0,c=0;c<m.length;c++)for(d=m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];m=a}}return m}return function(e){return x.isElement(e)?[e]:x.isObject(e)&&!x.isUndefined(e.length)?e:r.call(this,e)}}();var I=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],O=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];x.info={campaignParams:function(e){var t="",n={};return x.each(I,(function(r){(t=x.getQueryParam(p.URL,r)).length?n[r]=t:void 0!==e&&(n[r]=e)})),n},clickParams:function(){var e="",t={};return x.each(O,(function(n){(e=x.getQueryParam(p.URL,n)).length&&(t[n]=e)})),t},marketingParams:function(){return x.extend(x.info.campaignParams(),x.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=x.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var i=x.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||x.includes(e," OPR/")?x.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":x.includes(e,"IEMobile")||x.includes(e,"WPDesktop")?"Internet Explorer Mobile":x.includes(e,"SamsungBrowser/")?"Samsung Internet":x.includes(e,"Edge")||x.includes(e,"Edg/")?"Microsoft Edge":x.includes(e,"FBIOS")?"Facebook Mobile":x.includes(e,"Chrome")?"Chrome":x.includes(e,"CriOS")?"Chrome iOS":x.includes(e,"UCWEB")||x.includes(e,"UCBrowser")?"UC Browser":x.includes(e,"FxiOS")?"Firefox iOS":x.includes(t,"Apple")?x.includes(e,"Mobile")?"Mobile Safari":"Safari":x.includes(e,"Android")?"Android Mobile":x.includes(e,"Konqueror")?"Konqueror":x.includes(e,"Firefox")?"Firefox":x.includes(e,"MSIE")||x.includes(e,"Trident/")?"Internet Explorer":x.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[x.info.browser(e,t,n)];if(void 0===r)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var e=m;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return t.location.href},properties:function(e){return"object"!==typeof e&&(e={}),x.extend(x.strip_empty_properties({$os:x.info.os(),$browser:x.info.browser(m,d.vendor,h),$referrer:p.referrer,$referring_domain:x.info.referringDomain(p.referrer),$device:x.info.device(m)}),{$current_url:x.info.currentUrl(),$browser_version:x.info.browserVersion(m,d.vendor,h),$screen_height:f.height,$screen_width:f.width,mp_lib:"web",$lib_version:n.LIB_VERSION,$insert_id:L(),time:x.timestamp()/1e3},x.strip_empty_properties(e))},people_properties:function(){return x.extend(x.strip_empty_properties({$os:x.info.os(),$browser:x.info.browser(m,d.vendor,h)}),{$browser_version:x.info.browserVersion(m,d.vendor,h)})},mpPageViewProperties:function(){return x.strip_empty_properties({current_page_title:p.title,current_domain:t.location.hostname,current_url_path:t.location.pathname,current_url_protocol:t.location.protocol,current_url_search:t.location.search})}};var L=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},R=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,j=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,D=function(e){var t=j,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=R);var i=e.match(t);return i?i[0]:""},A=null,N=null;"undefined"!==typeof JSON&&(A=JSON.stringify,N=JSON.parse),A=A||x.JSONEncode,N=N||x.JSONDecode,x.toArray=x.toArray,x.isObject=x.isObject,x.JSONEncode=x.JSONEncode,x.JSONDecode=x.JSONDecode,x.isBlockedUA=x.isBlockedUA,x.isEmptyObject=x.isEmptyObject,x.info=x.info,x.info.device=x.info.device,x.info.browser=x.info.browser,x.info.browserVersion=x.info.browserVersion,x.info.properties=x.info.properties;var F=function(){};F.prototype.create_properties=function(){},F.prototype.event_handler=function(){},F.prototype.after_track_handler=function(){},F.prototype.init=function(e){return this.mp=e,this},F.prototype.track=function(e,t,n,r){var i=this,o=x.dom_query(e);if(0!==o.length)return x.each(o,(function(e){x.register_event(e,this.override_event,(function(e){var o={},a=i.create_properties(n,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(r,a,o,!0),s),i.mp.track(t,a,i.track_callback(r,a,o))}))}),this),!0;k.error("The DOM query ("+e+") returned 0 elements")},F.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||i.after_track_handler(t,n,r))}},F.prototype.create_properties=function(e,t){return"function"===typeof e?e(t):x.extend({},e)};var z=function(){this.override_event="click"};x.inherit(z,F),z.prototype.create_properties=function(e,t){var n=z.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},z.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},z.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var B=function(){this.override_event="submit"};x.inherit(B,F),B.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},B.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var U=S("lock"),$=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};$.prototype.withLock=function(e,t,n){n||"function"===typeof t||(n=t,t=null);var r=n||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),o=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,c=o+":X",u=o+":Y",d=o+":Z",p=function(e){t&&t(e)},h=function(e){if((new Date).getTime()-i>s)return U.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),l.removeItem(d),l.removeItem(u),void g();setTimeout((function(){try{e()}catch(t){p(t)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!E(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(c,r),f(m,(function(){l.getItem(c)!==r?h((function(){l.getItem(u)===r?f((function(){return!l.getItem(d)}),y):g()})):y()}))},y=function(){l.setItem(d,"1");try{e()}finally{l.removeItem(d),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(!E(l,!0))throw new Error("localStorage support check failed");g()}catch(v){p(v)}};var V=S("batch"),q=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||x.bind(V.error,V),this.lock=new $(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};q.prototype.enqueue=function(e,t,n){var r={id:L(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(x.bind((function(){var t;try{var i=this.readFromStorage();i.push(r),(t=this.saveToStorage(i))&&this.memQueue.push(r)}catch(o){this.reportError("Error enqueueing item",e),t=!1}n&&n(t)}),this),x.bind((function(e){this.reportError("Error acquiring storage lock",e),n&&n(!1)}),this),this.pid)},q.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};x.each(t,(function(e){r[e.id]=!0}));for(var i=0;i<n.length;i++){var o=n[i];if((new Date).getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var Z=function(e,t){var n=[];return x.each(e,(function(e){e.id&&!t[e.id]&&n.push(e)})),n};q.prototype.removeItemsByID=function(e,t){var n={};x.each(e,(function(e){n[e]=!0})),this.memQueue=Z(this.memQueue,n);var r=x.bind((function(){var t;try{var r=this.readFromStorage();if(r=Z(r,n),t=this.saveToStorage(r)){r=this.readFromStorage();for(var i=0;i<r.length;i++){var o=r[i];if(o.id&&n[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(a){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=r();t&&t(e)}),x.bind((function(e){var n=!1;if(this.reportError("Error acquiring storage lock",e),!E(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(n)}),this),this.pid)};var H=function(e,t){var n=[];return x.each(e,(function(e){var r=e.id;if(r in t){var i=t[r];null!==i&&(e.payload=i,n.push(e))}else n.push(e)})),n};q.prototype.updatePayloads=function(e,t){this.memQueue=H(this.memQueue,e),this.lock.withLock(x.bind((function(){var n;try{var r=this.readFromStorage();r=H(r,e),n=this.saveToStorage(r)}catch(i){this.reportError("Error updating items",e),n=!1}t&&t(n)}),this),x.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},q.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=N(e),x.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},q.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,A(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}},q.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var G=S("batch"),W=function(e,t){this.errorReporter=t.errorReporter,this.queue=new q(e,{errorReporter:x.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};W.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},W.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},W.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},W.prototype.clear=function(){this.queue.clear()},W.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},W.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},W.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(x.bind(this.flush,this),this.flushInterval))},W.prototype.flush=function(e){try{if(this.requestInProgress)return void G.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),i=this.batchSize,o=this.queue.fillBatch(i),a=[],s={};if(x.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=x.extend({},t.properties,{mp_sent_by_lib_version:n.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}s[e.id]=t}),this),a.length<1)return void this.resetFlush();this.requestInProgress=!0;var l=x.bind((function(n){this.requestInProgress=!1;try{var a=!1;if(e.unloading)this.queue.updatePayloads(s);else if(x.isObject(n)&&"timeout"===n.error&&(new Date).getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(x.isObject(n)&&n.xhr_req&&(n.xhr_req.status>=500||429===n.xhr_req.status||"timeout"===n.error)){var l=2*this.flushInterval,c=n.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(l=1e3*parseInt(u,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(x.isObject(n)&&n.xhr_req&&413===n.xhr_req.status)if(o.length>1){var d=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,d,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),a=!0;else a=!0;a&&(this.queue.removeItemsByID(x.map(o,(function(e){return e.id})),x.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),x.each(o,x.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(p){this.reportError("Error handling API response",p),this.resetFlush()}}),this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),G.log("MIXPANEL REQUEST:",a),this.sendRequest(a,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}},W.prototype.reportError=function(e,t){if(G.error.apply(G.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){G.error(t)}};var Y="__mp_opt_in_out_";function K(e,t){se(!0,e,t)}function X(e,t){se(!1,e,t)}function J(e,t){return"1"===ae(e,t)}function Q(e,n){if(function(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||t,r=n.navigator||{},i=!1;return x.each([r.doNotTrack,r.msDoNotTrack,n.doNotTrack],(function(e){x.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(n))return k.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===ae(e,n);return r&&k.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function ee(e){return le(e,(function(e){return this.get_config(e)}))}function te(e){return le(e,(function(e){return this._get_config(e)}))}function ne(e){return le(e,(function(e){return this._get_config(e)}))}function re(e,t){ie(t=t||{}).remove(oe(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ie(e){return"localStorage"===(e=e||{}).persistenceType?x.localStorage:x.cookie}function oe(e,t){return((t=t||{}).persistencePrefix||Y)+e}function ae(e,t){return ie(t).get(oe(e,t))}function se(e,t,n){x.isString(t)&&t.length?(ie(n=n||{}).set(oe(t,n),e?1:0,x.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):k.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function le(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(n=Q(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(c){k.error("Unexpected error when checking tracking opt-out status: "+c)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"===typeof l&&l(0)}}var ce="$set",ue="$set_once",de="$unset",pe="$add",he="$append",fe="$union",me="$remove",ge={set_action:function(e,t){var n={},r={};return x.isObject(e)?x.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[ce]=r,n},unset_action:function(e){var t={},n=[];return x.isArray(e)||(e=[e]),x.each(e,(function(e){this._is_reserved_property(e)||n.push(e)}),this),t[de]=n,t},set_once_action:function(e,t){var n={},r={};return x.isObject(e)?x.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[ue]=r,n},union_action:function(e,t){var n={},r={};return x.isObject(e)?x.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=x.isArray(e)?e:[e])}),this):r[e]=x.isArray(t)?t:[t],n[fe]=r,n},append_action:function(e,t){var n={},r={};return x.isObject(e)?x.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[he]=r,n},remove_action:function(e,t){var n={},r={};return x.isObject(e)?x.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[me]=r,n},delete_action:function(){var e={$delete:""};return e}},ye=function(){};x.extend(ye.prototype,ge),ye.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},ye.prototype.set=ne((function(e,t,n){var r=this.set_action(e,t);return x.isObject(e)&&(n=t),this._send_request(r,n)})),ye.prototype.set_once=ne((function(e,t,n){var r=this.set_once_action(e,t);return x.isObject(e)&&(n=t),this._send_request(r,n)})),ye.prototype.unset=ne((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),ye.prototype.union=ne((function(e,t,n){x.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),ye.prototype.delete=ne((function(e){var t=this.delete_action();return this._send_request(t,e)})),ye.prototype.remove=ne((function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)})),ye.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=x.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},ye.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ye.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ye.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ye.prototype.remove=ye.prototype.remove,ye.prototype.set=ye.prototype.set,ye.prototype.set_once=ye.prototype.set_once,ye.prototype.union=ye.prototype.union,ye.prototype.unset=ye.prototype.unset,ye.prototype.toString=ye.prototype.toString;var ve=function(){};x.extend(ve.prototype,ge),ve.prototype._init=function(e){this._mixpanel=e},ve.prototype.set=te((function(e,t,n){var r=this.set_action(e,t);return x.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[ce]=x.extend({},x.info.people_properties(),r[ce]),this._send_request(r,n)})),ve.prototype.set_once=te((function(e,t,n){var r=this.set_once_action(e,t);return x.isObject(e)&&(n=t),this._send_request(r,n)})),ve.prototype.unset=te((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),ve.prototype.increment=te((function(e,t,n){var r={},i={};return x.isObject(e)?(x.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void k.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),n=t):(x.isUndefined(t)&&(t=1),i[e]=t),r[pe]=i,this._send_request(r,n)})),ve.prototype.append=te((function(e,t,n){x.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)})),ve.prototype.remove=te((function(e,t,n){x.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)})),ve.prototype.union=te((function(e,t,n){x.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),ve.prototype.track_charge=te((function(e,t,n){if(x.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",x.extend({$amount:e},t),n);k.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),ve.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ve.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}k.error("mixpanel.people.delete_user() requires you to call identify() first")},ve.prototype.toString=function(){return this._mixpanel.toString()+".people"},ve.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var o=x.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),x.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),x.truncate(o,255))},ve.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ve.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ve.prototype._enqueue=function(e){ce in e?this._mixpanel.persistence._add_to_people_queue(ce,e):ue in e?this._mixpanel.persistence._add_to_people_queue(ue,e):de in e?this._mixpanel.persistence._add_to_people_queue(de,e):pe in e?this._mixpanel.persistence._add_to_people_queue(pe,e):he in e?this._mixpanel.persistence._add_to_people_queue(he,e):me in e?this._mixpanel.persistence._add_to_people_queue(me,e):fe in e?this._mixpanel.persistence._add_to_people_queue(fe,e):k.error("Invalid call to _enqueue():",e)},ve.prototype._flush_one_queue=function(e,t,n,r){var i=this,o=x.extend({},this._mixpanel.persistence.load_queue(e)),a=o;x.isUndefined(o)||!x.isObject(o)||x.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),r&&(a=r(o)),t.call(i,a,(function(t,r){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),x.isUndefined(n)||n(t,r)})))},ve.prototype._flush=function(e,t,n,r,i,o,a){var s=this;this._flush_one_queue(ce,this.set,e),this._flush_one_queue(ue,this.set_once,r),this._flush_one_queue(de,this.unset,o,(function(e){return x.keys(e)})),this._flush_one_queue(pe,this.increment,t),this._flush_one_queue(fe,this.union,i);var l=this._mixpanel.persistence.load_queue(he);if(!x.isUndefined(l)&&x.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(he,c),x.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(he),c=l.pop(),s._mixpanel.persistence.save(),x.isEmptyObject(c)||s.append(c,u);var p=this._mixpanel.persistence.load_queue(me);if(!x.isUndefined(p)&&x.isArray(p)&&p.length)for(var h,f=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(me,h),x.isUndefined(a)||a(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue(me),h=p.pop(),s._mixpanel.persistence.save(),x.isEmptyObject(h)||s.remove(h,f)},ve.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ve.prototype.set=ve.prototype.set,ve.prototype.set_once=ve.prototype.set_once,ve.prototype.unset=ve.prototype.unset,ve.prototype.increment=ve.prototype.increment,ve.prototype.append=ve.prototype.append,ve.prototype.remove=ve.prototype.remove,ve.prototype.union=ve.prototype.union,ve.prototype.track_charge=ve.prototype.track_charge,ve.prototype.clear_charges=ve.prototype.clear_charges,ve.prototype.delete_user=ve.prototype.delete_user,ve.prototype.toString=ve.prototype.toString;var be,_e,we="__mps",xe="__mpso",ke="__mpus",Ce="__mpa",Se="__mpap",Me="__mpr",Te="__mpu",Ee="$people_distinct_id",Pe="__alias",Ie="__timers",Oe=[we,xe,ke,Ce,Se,Me,Te,Ee,Pe,Ie],Le=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(k.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&x.localStorage.is_supported()?this.storage=x.localStorage:this.storage=x.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};Le.prototype.properties=function(){var e={};return this.load(),x.each(this.props,(function(t,n){x.include(Oe,n)||(e[n]=t)})),e},Le.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=x.extend({},e))}},Le.prototype.upgrade=function(e){var t,n,r=e.upgrade;r&&(t="mp_super_properties","string"===typeof r&&(t=r),n=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),n&&(this.props=x.extend(this.props,n.all,n.events))),e.cookie_name||"mixpanel"===e.name||(t="mp_"+e.token+"_"+e.name,(n=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(n))),this.storage===x.localStorage&&(n=x.cookie.parse(this.name),x.cookie.remove(this.name),x.cookie.remove(this.name,!0),n&&this.register_once(n))},Le.prototype.save=function(){this.disabled||this.storage.set(this.name,x.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Le.prototype.load_prop=function(e){return this.load(),this.props[e]},Le.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Le.prototype.clear=function(){this.remove(),this.props={}},Le.prototype.register_once=function(e,t,n){return!!x.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof n?this.default_expiry:n,this.load(),x.each(e,(function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)}),this),this.save(),!0)},Le.prototype.register=function(e,t){return!!x.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),x.extend(this.props,e),this.save(),!0)},Le.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Le.prototype.update_search_keyword=function(e){this.register(x.info.searchInfo(e))},Le.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:x.info.referringDomain(e)||"$direct"},"")},Le.prototype.get_referrer_info=function(){return x.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Le.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Le.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Le.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Le.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Le.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Le.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Le.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Le.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(ce),o=this._get_or_create_queue(ue),a=this._get_or_create_queue(de),s=this._get_or_create_queue(pe),l=this._get_or_create_queue(fe),c=this._get_or_create_queue(me,[]),u=this._get_or_create_queue(he,[]);n===we?(x.extend(i,r),this._pop_from_people_queue(pe,r),this._pop_from_people_queue(fe,r),this._pop_from_people_queue(de,r)):n===xe?(x.each(r,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(de,r)):n===ke?x.each(r,(function(e){x.each([i,o,s,l],(function(t){e in t&&delete t[e]})),x.each(u,(function(t){e in t&&delete t[e]})),a[e]=!0})):n===Ce?(x.each(r,(function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue(de,r)):n===Te?(x.each(r,(function(e,t){x.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue(de,r)):n===Me?(c.push(r),this._pop_from_people_queue(he,r)):n===Se&&(u.push(r),this._pop_from_people_queue(de,r)),k.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),k.log(t),this.save()},Le.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];x.isUndefined(n)||x.each(t,(function(t,r){e===he||e===me?x.each(n,(function(e){e[r]===t&&delete e[r]})):delete n[r]}),this)},Le.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Le.prototype._get_queue_key=function(e){return e===ce?we:e===ue?xe:e===de?ke:e===pe?Ce:e===he?Se:e===me?Me:e===fe?Te:void k.error("Invalid queue:",e)},Le.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=x.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Le.prototype.set_event_timer=function(e,t){var n=this.load_prop(Ie)||{};n[e]=t,this.props[Ie]=n,this.save()},Le.prototype.remove_event_timer=function(e){var t=(this.load_prop(Ie)||{})[e];return x.isUndefined(t)||(delete this.props[Ie][e],this.save()),t};var Re=function(e){return e},je=function(){},De="mixpanel",Ae="base64",Ne="$device:",Fe=t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ze=!Fe&&-1===m.indexOf("MSIE")&&-1===m.indexOf("Mozilla"),Be=null;d.sendBeacon&&(Be=function(){return d.sendBeacon.apply(d,arguments)});var Ue={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},$e={api_host:"https://api-js.mixpanel.com",api_routes:Ue,api_method:"POST",api_transport:"XHR",api_payload_format:Ae,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:je,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:je,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_sessions_percent:0,record_idle_timeout_ms:18e5,record_max_ms:864e5,record_mask_text_selector:"*",recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ve=!1,qe=function(){},Ze=function(e,t,r){var i,o=r===De?_e:_e[r];if(o&&0===be)i=o;else{if(o&&!x.isArray(o))return void k.error("You have already initialized "+r);i=new qe}if(i._cached_groups={},i._init(e,t,r),i.people=new ve,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var a=x.info.campaignParams(null),s={},l=!1;x.each(a,(function(e,t){s["initial_"+t]=e,e&&(l=!0)})),l&&i.people.set_once(s)}return n.DEBUG=n.DEBUG||i.get_config("debug"),!x.isUndefined(o)&&x.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};qe.prototype.init=function(e,t,n){if(x.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if(n!==De){var r=Ze(e,t,n);return _e[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},qe.prototype._init=function(e,n,r){n=n||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in n||(n.api_host||$e.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.set_config(x.extend({},$e,i,n,{name:r,token:e,callback_fn:(r===De?r:De+"."+r)+"._jsc"})),this._jsc=je,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(x.localStorage.is_supported(!0)&&Fe){if(this.init_batchers(),Be&&t.addEventListener){var o=x.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);t.addEventListener("pagehide",(function(e){e.persisted&&o()})),t.addEventListener("visibilitychange",(function(){"hidden"===p.visibilityState&&o()}))}}else this._batch_requests=!1,k.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),x.each(this.get_batcher_configs(),(function(e){k.log("Clearing batch queue "+e.queue_key),x.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Le(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=x.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ne+a,$device_id:a},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},qe.prototype.start_session_recording=ee((function(){if(t.MutationObserver){var e=x.bind((function(){this._recorder=this._recorder||new t.__mp_recorder(this),this._recorder.startRecording()}),this);if(x.isUndefined(t.__mp_recorder)){var n=p.createElement("script");n.type="text/javascript",n.async=!0,n.onload=e,n.src=this.get_config("recorder_src"),p.head.appendChild(n)}else e()}else k.critical("Browser does not support MutationObserver; skipping session recording")})),qe.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():k.critical("Session recorder module not loaded")},qe.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=x.info.campaignParams(null);x.each(e,function(e,t){this.unregister(t)}.bind(this))}},qe.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(p.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(x.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(p.referrer)},qe.prototype._dom_loaded=function(){x.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||x.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},qe.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ve)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},qe.prototype._init_url_change_tracking=function(e){var n="";if(this.track_pageview()&&(n=x.info.currentUrl()),x.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){t.addEventListener("popstate",(function(){t.dispatchEvent(new Event("mp_locationchange"))})),t.addEventListener("hashchange",(function(){t.dispatchEvent(new Event("mp_locationchange"))}));var r=t.history.pushState;"function"===typeof r&&(t.history.pushState=function(e,n,i){r.call(t.history,e,n,i),t.dispatchEvent(new Event("mp_locationchange"))});var i=t.history.replaceState;"function"===typeof i&&(t.history.replaceState=function(e,n,r){i.call(t.history,e,n,r),t.dispatchEvent(new Event("mp_locationchange"))}),t.addEventListener("mp_locationchange",function(){var t=x.info.currentUrl(),r=!1;("full-url"===e?r=t!==n:"url-with-path-and-query-string"===e?r=t.split("#")[0]!==n.split("#")[0]:"url-with-path"===e&&(r=t.split("#")[0].split("?")[0]!==n.split("#")[0].split("?")[0]),r)&&(this.track_pageview()&&(n=t))}.bind(this))}},qe.prototype._prepare_callback=function(e,t){if(x.isUndefined(e))return null;if(Fe){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],e(i,t)},i},qe.prototype._send_request=function(e,t,n,r){var i=!0;if(ze)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;r||!x.isFunction(n)&&"string"!==typeof n||(r=n,n=null),n=x.extend(o,n||{}),Fe||(n.method="GET");var s="POST"===n.method,l=Be&&s&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Fe||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+x.HTTPBuildQuery(t);var u=this;if("img"in t){var d=p.createElement("img");d.src=e,p.body.appendChild(d)}else if(l){try{i=Be(e,a)}catch(v){u.report_error(v),i=!1}try{r&&r(i?1:0)}catch(v){u.report_error(v)}}else if(Fe)try{var h=new XMLHttpRequest;h.open(n.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),x.each(f,(function(e,t){h.setRequestHeader(t,e)})),n.timeout_ms&&"undefined"!==typeof h.timeout){h.timeout=n.timeout_ms;var m=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(r)if(c){var t;try{t=x.JSONDecode(h.responseText)}catch(v){if(u.report_error(v),!n.ignore_json_errors)return;t=h.responseText}r(t)}else r(Number(h.responseText))}else e=h.timeout&&!h.status&&(new Date).getTime()-m>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(e),r&&r(c?{status:0,error:e,xhr_req:h}:0)},h.send(a)}catch(v){u.report_error(v),i=!1}else{var g=p.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var y=p.getElementsByTagName("script")[0];y.parentNode.insertBefore(g,y)}return i},qe.prototype._execute_array=function(e){var t,n=[],r=[],i=[];x.each(e,(function(e){e&&(t=e[0],x.isArray(t)?i.push(e):"function"===typeof e?e.call(this):x.isArray(e)&&"alias"===t?n.push(e):x.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):r.push(e))}),this);var o=function(e,t){x.each(e,(function(e){if(x.isArray(e[0])){var n=t;x.each(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(n,this),o(r,this),o(i,this)},qe.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},qe.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},qe.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=x.bind((function(e){return new W(e.queue_key,{libConfig:this.config,sendRequestFunc:x.bind((function(t,n,r){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),n,this._prepare_callback(r,t))}),this),beforeSendHook:x.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:x.bind(this.stop_batch_senders,this)})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},qe.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,x.each(this.request_batchers,(function(e){e.start()})))},qe.prototype.stop_batch_senders=function(){this._batch_requests=!1,x.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},qe.prototype.push=function(e){this._execute_array([e])},qe.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},qe.prototype._encode_data_for_request=function(e){var t=x.JSONEncode(e);return this.get_config("api_payload_format")===Ae&&(t=x.base64Encode(t)),{data:t}},qe.prototype._track_or_batch=function(e,t){var n=x.truncate(e.data,255),r=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||je;var s=!0,l=x.bind((function(){return a.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(k.log("MIXPANEL REQUEST:"),k.log(n),this._send_request(r,this._encode_data_for_request(n),a,this._prepare_callback(t,n))):null}),this);return this._batch_requests&&!o?i.enqueue(n,(function(e){e?t(1,n):l()})):s=l(),s&&n},qe.prototype.track=ee((function(e,t,n,r){r||"function"!==typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var o=n.send_immediately;if("function"!==typeof r&&(r=je),x.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=x.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!x.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?x.info.marketingParams():{};if(this._recorder){var c=this._recorder.replayId;c&&(t.$mp_replay_id=c)}t=x.extend({},x.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,t);var u=this.get_config("property_blacklist");x.isArray(u)?x.each(u,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+u);var d={event:e,properties:t};return this._track_or_batch({type:"events",data:d,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r)}r(0)}})),qe.prototype.set_group=ee((function(e,t,n){x.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)})),qe.prototype.add_group=ee((function(e,t,n){var r=this.get_property(e),i={};return void 0===r?(i[e]=[t],this.register(i)):-1===r.indexOf(t)&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)})),qe.prototype.remove_group=ee((function(e,t,n){var r=this.get_property(e);if(void 0!==r){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)})),qe.prototype.track_with_groups=ee((function(e,t,n,r){var i=x.extend({},t||{});return x.each(n,(function(e,t){null!==e&&void 0!==e&&(i[t]=e)})),this.track(e,i,r)})),qe.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},qe.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},qe.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new ye)._init(this,e,t),this._cached_groups[n]=r),r},qe.prototype.track_pageview=ee((function(e,t){"object"!==typeof e&&(e={});var n=(t=t||{}).event_name||"$mp_web_page_view",r=x.extend(x.info.mpPageViewProperties(),x.info.campaignParams(),x.info.clickParams()),i=x.extend({},r,e);return this.track(n,i)})),qe.prototype.track_links=function(){return this._track_dom.call(this,z,arguments)},qe.prototype.track_forms=function(){return this._track_dom.call(this,B,arguments)},qe.prototype.time_event=function(e){x.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var He={persistent:!0},Ge=function(e){var t;return t=x.isObject(e)?e:x.isUndefined(e)?{}:{days:e},x.extend({},He,t)};qe.prototype.register=function(e,t){var n=Ge(t);n.persistent?this.persistence.register(e,n.days):x.extend(this.unpersisted_superprops,e)},qe.prototype.register_once=function(e,t,n){var r=Ge(n);r.persistent?this.persistence.register_once(e,t,r.days):("undefined"===typeof t&&(t="None"),x.each(e,(function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)}),this))},qe.prototype.unregister=function(e,t){(t=Ge(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},qe.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},qe.prototype.identify=function(e,t,n,r,i,o,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"===typeof e&&0===e.indexOf(Ne))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property(Pe)&&(this.unregister(Pe),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,o,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},qe.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=x.UUID();this.register_once({distinct_id:Ne+e,$device_id:e},"")},qe.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},qe.prototype.alias=function(e,t){if(e===this.get_property(Ee))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return x.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Pe,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){n.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},qe.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},qe.prototype.set_config=function(e){x.isObject(e)&&(x.extend(this.config,e),e.batch_size&&x.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),n.DEBUG=n.DEBUG||this.get_config("debug"))},qe.prototype.get_config=function(e){return this.config[e]},qe.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Re).apply(this,s.call(arguments,1));return"undefined"===typeof t&&(this.report_error(e+" hook did not return a value"),t=null),t},qe.prototype.get_property=function(e){return this.persistence.load_prop([e])},qe.prototype.toString=function(){var e=this.get_config("name");return e!==De&&(e=De+"."+e),e},qe.prototype._event_is_disabled=function(e){return x.isBlockedUA(m)||this._flags.disable_all_events||x.include(this.__disabled_events,e)},qe.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&x.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!x.cookie.get("mp_optout")||(x.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},qe.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},qe.prototype._gdpr_call_func=function(e,t){return t=x.extend({track:x.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),x.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},qe.prototype.opt_in_tracking=function(e){e=x.extend({enable_persistence:!0},e),this._gdpr_call_func(K,e),this._gdpr_update_persistence(e)},qe.prototype.opt_out_tracking=function(e){(e=x.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(X,e),this._gdpr_update_persistence(e)},qe.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(J,e)},qe.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Q,e)},qe.prototype.clear_opt_in_out_tracking=function(e){e=x.extend({enable_persistence:!0},e),this._gdpr_call_func(re,e),this._gdpr_update_persistence(e)},qe.prototype.report_error=function(e,t){k.error.apply(k.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){k.error(t)}},qe.prototype.init=qe.prototype.init,qe.prototype.reset=qe.prototype.reset,qe.prototype.disable=qe.prototype.disable,qe.prototype.time_event=qe.prototype.time_event,qe.prototype.track=qe.prototype.track,qe.prototype.track_links=qe.prototype.track_links,qe.prototype.track_forms=qe.prototype.track_forms,qe.prototype.track_pageview=qe.prototype.track_pageview,qe.prototype.register=qe.prototype.register,qe.prototype.register_once=qe.prototype.register_once,qe.prototype.unregister=qe.prototype.unregister,qe.prototype.identify=qe.prototype.identify,qe.prototype.alias=qe.prototype.alias,qe.prototype.name_tag=qe.prototype.name_tag,qe.prototype.set_config=qe.prototype.set_config,qe.prototype.get_config=qe.prototype.get_config,qe.prototype.get_property=qe.prototype.get_property,qe.prototype.get_distinct_id=qe.prototype.get_distinct_id,qe.prototype.toString=qe.prototype.toString,qe.prototype.opt_out_tracking=qe.prototype.opt_out_tracking,qe.prototype.opt_in_tracking=qe.prototype.opt_in_tracking,qe.prototype.has_opted_out_tracking=qe.prototype.has_opted_out_tracking,qe.prototype.has_opted_in_tracking=qe.prototype.has_opted_in_tracking,qe.prototype.clear_opt_in_out_tracking=qe.prototype.clear_opt_in_out_tracking,qe.prototype.get_group=qe.prototype.get_group,qe.prototype.set_group=qe.prototype.set_group,qe.prototype.add_group=qe.prototype.add_group,qe.prototype.remove_group=qe.prototype.remove_group,qe.prototype.track_with_groups=qe.prototype.track_with_groups,qe.prototype.start_batch_senders=qe.prototype.start_batch_senders,qe.prototype.stop_batch_senders=qe.prototype.stop_batch_senders,qe.prototype.start_session_recording=qe.prototype.start_session_recording,qe.prototype.stop_session_recording=qe.prototype.stop_session_recording,qe.prototype.DEFAULT_API_ROUTES=Ue,Le.prototype.properties=Le.prototype.properties,Le.prototype.update_search_keyword=Le.prototype.update_search_keyword,Le.prototype.update_referrer_info=Le.prototype.update_referrer_info,Le.prototype.get_cross_subdomain=Le.prototype.get_cross_subdomain,Le.prototype.clear=Le.prototype.clear;var We={},Ye=function(){_e.init=function(e,n,r){if(r)return _e[r]||(_e[r]=We[r]=Ze(e,n,r),_e[r]._loaded()),_e[r];var i=_e;We[De]?i=We[De]:e&&((i=Ze(e,n,De))._loaded(),We[De]=i),_e=i,1===be&&(t[De]=_e),x.each(We,(function(e,t){t!==De&&(_e[t]=e)})),_e._=x}};var Ke=(be=0,_e=new qe,Ye(),_e.init(),function(){function e(){e.done||(e.done=!0,Ve=!0,ze=!1,x.each(We,(function(e){e._dom_loaded()})))}if(p.addEventListener)"complete"===p.readyState?e():p.addEventListener("DOMContentLoaded",e,!1);else if(p.attachEvent){p.attachEvent("onreadystatechange",e);var n=!1;try{n=null===t.frameElement}catch(r){}p.documentElement.doScroll&&n&&function t(){try{p.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}()}x.register_event(t,"load",e,!0)}(),_e);e.exports=Ke},4975:function(e,t,n){e.exports=function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,n){"use strict";var r=n(5)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";e.exports=n(18)()?Symbol:n(20)},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return e.range=function(t,n){var r=this;return"string"==typeof t&&h.hasOwnProperty(t)?new f(e(r).startOf(t),e(r).endOf(t)):new f(t,n)},e.rangeFromInterval=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e();if(e.isMoment(r)||(r=e(r)),!r.isValid())throw new Error("Invalid date.");var i=r.clone().add(n,t),o=[];return o.push(e.min(r,i)),o.push(e.max(r,i)),new f(o)},e.rangeFromISOString=function(t){var n=s(t),r=e.parseZone(n[0]),i=e.parseZone(n[1]);return new f(r,i)},e.parseZoneRange=e.rangeFromISOString,e.fn.range=e.range,e.range.constructor=f,e.isRange=function(e){return e instanceof f},e.fn.within=function(e){return e.contains(this.toDate())},e}function s(e){return e.split("/")}Object.defineProperty(t,"__esModule",{value:!0}),t.DateRange=void 0;var l=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.extendMoment=a;var d=r(n(2)),p=r(n(1)),h={year:!0,quarter:!0,month:!0,week:!0,day:!0,hour:!0,minute:!0,second:!0},f=t.DateRange=function(){function e(t,n){o(this,e);var r=t,i=n;if(1===arguments.length||void 0===n)if("object"===(void 0===t?"undefined":c(t))&&2===t.length){var a=l(t,2);r=a[0],i=a[1]}else if("string"==typeof t){var u=s(t),p=l(u,2);r=p[0],i=p[1]}this.start=r||0===r?(0,d.default)(r):(0,d.default)(-864e13),this.end=i||0===i?(0,d.default)(i):(0,d.default)(864e13)}return u(e,[{key:"adjacent",value:function(e){var t=this.start.isSame(e.end),n=this.end.isSame(e.start);return t&&e.start.valueOf()<=this.start.valueOf()||n&&e.end.valueOf()>=this.end.valueOf()}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1};return this.overlaps(e,t)?new this.constructor(d.default.min(this.start,e.start),d.default.max(this.end,e.end)):null}},{key:"by",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this;return i({},p.default.iterator,(function(){var r=t.step||1,i=Math.abs(n.start.diff(n.end,e))/r,o=t.excludeEnd||!1,a=0;return t.hasOwnProperty("exclusive")&&(o=t.exclusive),{next:function(){var t=n.start.clone().add(a*r,e),s=o?!(a<i):!(a<=i);return a++,{done:s,value:s?void 0:t}}}}))}},{key:"byRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this,r=t.step||1,o=this.valueOf()/e.valueOf()/r,a=Math.floor(o),s=t.excludeEnd||!1,l=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),i({},p.default.iterator,(function(){return a===1/0?{done:!0}:{next:function(){var t=(0,d.default)(n.start.valueOf()+e.valueOf()*l*r),i=a===o&&s?!(l<a):!(l<=a);return l++,{done:i,value:i?void 0:t}}}}))}},{key:"center",value:function(){var e=this.start.valueOf()+this.diff()/2;return(0,d.default)(e)}},{key:"clone",value:function(){return new this.constructor(this.start.clone(),this.end.clone())}},{key:"contains",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,excludeEnd:!1},r=this.start.valueOf(),i=this.end.valueOf(),o=t.valueOf(),a=t.valueOf(),s=n.excludeStart||!1,l=n.excludeEnd||!1;return n.hasOwnProperty("exclusive")&&(s=l=n.exclusive),t instanceof e&&(o=t.start.valueOf(),a=t.end.valueOf()),(r<o||r<=o&&!s)&&(i>a||i>=a&&!l)}},{key:"diff",value:function(e,t){return this.end.diff(this.start,e,t)}},{key:"duration",value:function(e,t){return this.diff(e,t)}},{key:"intersect",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),r=e.start.valueOf(),i=e.end.valueOf(),o=r==i;if(t==n){if(t==r||t==i)return null;if(t>r&&t<i)return this.clone()}else if(o){var a=r;if(a==t||a==n)return null;if(a>t&&a<n)return new this.constructor(a,a)}return t<=r&&r<n&&n<i?new this.constructor(r,n):r<t&&t<i&&i<=n?new this.constructor(t,i):r<t&&t<=n&&n<i?this.clone():t<=r&&r<=i&&i<=n?new this.constructor(r,i):null}},{key:"isEqual",value:function(e){return this.start.isSame(e.start)&&this.end.isSame(e.end)}},{key:"isSame",value:function(e){return this.isEqual(e)}},{key:"overlaps",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1},n=null!==this.intersect(e);return t.adjacent&&!n?this.adjacent(e):n}},{key:"reverseBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this;return i({},p.default.iterator,(function(){var r=t.step||1,i=Math.abs(n.start.diff(n.end,e))/r,o=t.excludeStart||!1,a=0;return t.hasOwnProperty("exclusive")&&(o=t.exclusive),{next:function(){var t=n.end.clone().subtract(a*r,e),s=o?!(a<i):!(a<=i);return a++,{done:s,value:s?void 0:t}}}}))}},{key:"reverseByRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this,r=t.step||1,o=this.valueOf()/e.valueOf()/r,a=Math.floor(o),s=t.excludeStart||!1,l=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),i({},p.default.iterator,(function(){return a===1/0?{done:!0}:{next:function(){var t=(0,d.default)(n.end.valueOf()-e.valueOf()*l*r),i=a===o&&s?!(l<a):!(l<=a);return l++,{done:i,value:i?void 0:t}}}}))}},{key:"snapTo",value:function(e){var t=this.clone();return t.start.isSame((0,d.default)(-864e13))||(t.start=t.start.startOf(e)),t.end.isSame((0,d.default)(864e13))||(t.end=t.end.endOf(e)),t}},{key:"subtract",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),r=e.start.valueOf(),i=e.end.valueOf();return null===this.intersect(e)?[this]:r<=t&&t<n&&n<=i?[]:r<=t&&t<i&&i<n?[new this.constructor(i,n)]:t<r&&r<n&&n<=i?[new this.constructor(t,r)]:t<r&&r<i&&i<n?[new this.constructor(t,r),new this.constructor(i,n)]:t<r&&r<n&&i<n?[new this.constructor(t,r),new this.constructor(r,n)]:[]}},{key:"toDate",value:function(){return[this.start.toDate(),this.end.toDate()]}},{key:"toString",value:function(){return this.start.format()+"/"+this.end.format()}},{key:"valueOf",value:function(){return this.end.valueOf()-this.start.valueOf()}}]),e}()},function(e,t,n){"use strict";var r,i=n(6),o=n(13),a=n(9),s=n(15);r=e.exports=function(e,t){var n,r,a,l,c;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],null==e?(n=a=!0,r=!1):(n=s.call(e,"c"),r=s.call(e,"e"),a=s.call(e,"w")),c={value:t,configurable:n,enumerable:r,writable:a},l?i(o(l),c):c},r.gs=function(e,t,n){var r,l,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:a(t)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(r=!0,l=!1):(r=s.call(e,"c"),l=s.call(e,"e")),u={get:t,set:n,configurable:r,enumerable:l},c?i(o(c),u):u}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";e.exports=n(7)()?Object.assign:n(8)},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(10),i=n(14),o=Math.max;e.exports=function(e,t){var n,a,s,l=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a<l;++a)r(t=arguments[a]).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(11)()?Object.keys:n(12)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(0),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},function(e,t,n){"use strict";var r=n(0),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,(function(e){r(e)&&a(Object(e),t)})),t}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";e.exports=n(16)()?String.prototype.contains:n(17)},function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var r={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!r[typeof Symbol.iterator]&&!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var r,i,o,a,s=n(4),l=n(21),c=Object.create,u=Object.defineProperties,d=Object.defineProperty,p=Object.prototype,h=c(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),a=!0}catch(e){}}var f=function(){var e=c(null);return function(t){for(var n,r,i=0;e[t+(i||"")];)++i;return e[t+=i||""]=!0,d(p,n="@@"+t,s.gs(null,(function(e){r||(r=!0,d(this,n,s(e)),r=!1)}))),n}}();o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return a?r(t):(n=c(o.prototype),t=void 0===t?"":String(t),u(n,{__description__:s("",t),__name__:s("",f(t))}))},u(i,{for:s((function(e){return h[e]?h[e]:h[e]=i(String(e))})),keyFor:s((function(e){var t;for(t in l(e),h)if(h[t]===e)return t})),hasInstance:s("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:s("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",r&&r.iterator||i("iterator")),match:s("",r&&r.match||i("match")),replace:s("",r&&r.replace||i("replace")),search:s("",r&&r.search||i("search")),species:s("",r&&r.species||i("species")),split:s("",r&&r.split||i("split")),toPrimitive:s("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:s("",r&&r.toStringTag||i("toStringTag")),unscopables:s("",r&&r.unscopables||i("unscopables"))}),u(o.prototype,{constructor:s(i),toString:s("",(function(){return this.__name__}))}),u(i.prototype,{toString:s((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:s((function(){return l(this)}))}),d(i.prototype,i.toPrimitive,s("",(function(){var e=l(this);return"symbol"==typeof e?e:e.toString()}))),d(i.prototype,i.toStringTag,s("c","Symbol")),d(o.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),d(o.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},function(e,t,n){"use strict";var r=n(19);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}}])}(n(17176))},14211:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(17176))},72477:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(17176))},47608:function(e,t,n){!function(e){"use strict";var t=/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,r=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,i=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(17176))},27535:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return i+(r||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return i+(r||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" h\xf3nap":" h\xf3napja");case"MM":return i+(r||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(r||t?" \xe9v":" \xe9ve");case"yy":return i+(r||t?" \xe9v":" \xe9ve")}return""}function r(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(17176))},91706:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:o,M:"miesi\u0105c",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(17176))},15522:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n(17176))},94082:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(17176))},64981:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+t({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[r],+e)}var r=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0447\u0430\u0441",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(17176))},68509:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===r?n?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+t({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:n?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[r],+e)}function r(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function i(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:r,weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:n,y:"\u0440\u0456\u043a",yy:n},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(17176))},96645:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(17176))},17176:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Wn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],_=!1;function w(e,t){var n,r,i,o=b.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=b[n]])||(e[r]=i);return e}function x(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function k(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,l=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"===typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,T={};function E(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),T[e]||(C(t),T[e]=!0)}function P(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e){var t,n;for(n in e)s(e,n)&&(P(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function L(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},z={};function B(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,r=e.match(A);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=P(r[i])?r[i].call(t,e):r[i];return o}}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),F[t]=F[t]||$(t),F[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function H(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function W(){return this._invalidDate}var Y="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return P(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function de(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):pe(this,e)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function fe(e){return P(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(P(this[e=re(e)]))return this[e](t);return this}var ge,ye=/\d/,ve=/\d\d/,be=/\d{3}/,_e=/\d{4}/,we=/[+-]?\d{6}/,xe=/\d\d?/,ke=/\d\d\d\d?/,Ce=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Me=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Ee=/\d+/,Pe=/[+-]?\d+/,Ie=/Z|[+-]\d\d:?\d\d/gi,Oe=/Z|[+-]\d\d(?::?\d\d)?/gi,Le=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function je(e,t,n){ge[e]=P(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return s(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ae(e))}function Ae(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Fe={};function ze(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Be(e,t){ze(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&s(Fe,e)&&Fe[e](t,n._a,n,e)}var $e,Ve=0,qe=1,Ze=2,He=3,Ge=4,We=5,Ye=6,Ke=7,Xe=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),je("M",xe),je("MM",xe,ve),je("MMM",(function(e,t){return t.monthsShortRegex(e)})),je("MMMM",(function(e,t){return t.monthsRegex(e)})),ze(["M","MM"],(function(e,t){t[qe]=ue(e)-1})),ze(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[qe]=i:g(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Re,it=Re;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))||-1!==(i=$e.call(this._longMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))||-1!==(i=$e.call(this._shortMonthsParse,a))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return st.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ue(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ut(e){return null!=e?(ct(this,e),r.updateOffset(this,!0),this):pe(this,"Month")}function dt(){return Qe(this.year(),this.month())}function pt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ft.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ft.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ft(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Ne(r[t]),i[t]=Ne(i[t]);for(t=0;t<24;t++)o[t]=Ne(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return le(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),je("Y",Pe),je("YY",xe,ve),je("YYYY",Me,_e),je("YYYYY",Te,we),je("YYYYYY",Te,we),ze(["YYYYY","YYYYYY"],Ve),ze("YYYY",(function(e,t){t[Ve]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),ze("YY",(function(e,t){t[Ve]=r.parseTwoDigitYear(e)})),ze("Y",(function(e,t){t[Ve]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};var gt=de("FullYear",!0);function yt(){return le(this.year())}function vt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function xt(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+kt(i=e.year()-1,t,n):a>kt(e.year(),t,n)?(r=a-kt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function kt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(mt(e)-r+i)/7}function Ct(e){return xt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),je("w",xe),je("ww",xe,ve),je("W",xe),je("WW",xe,ve),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var St={dow:0,doy:6};function Mt(){return this._week.dow}function Tt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function It(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Lt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),je("d",xe),je("e",xe),je("E",xe),je("dd",(function(e,t){return t.weekdaysMinRegex(e)})),je("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),je("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),At=Re,Nt=Re,Ft=Re;function zt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Lt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Lt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Lt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $t(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null}function Vt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return $t.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=It(e,this.localeData()),this.add(e-t,"d")):t}function Zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ht(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=At),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=Ne(this.weekdaysMin(n,"")),i=Ne(this.weekdaysShort(n,"")),o=Ne(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,Jt),B("hmm",0,0,(function(){return""+Xt.apply(this)+D(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ae("hour",13),je("a",en),je("A",en),je("H",xe),je("h",xe),je("k",xe),je("HH",xe,ve),je("hh",xe,ve),je("kk",xe,ve),je("hmm",ke),je("hmmss",Ce),je("Hmm",ke),je("Hmmss",Ce),ze(["H","HH"],He),ze(["k","kk"],(function(e,t,n){var r=ue(e);t[He]=24===r?0:r})),ze(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ze(["h","hh"],(function(e,t,n){t[He]=ue(e),g(n).bigHour=!0})),ze("hmm",(function(e,t,n){var r=e.length-2;t[He]=ue(e.substr(0,r)),t[Ge]=ue(e.substr(r)),g(n).bigHour=!0})),ze("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[He]=ue(e.substr(0,r)),t[Ge]=ue(e.substr(r,2)),t[We]=ue(e.substr(i)),g(n).bigHour=!0})),ze("Hmm",(function(e,t,n){var r=e.length-2;t[He]=ue(e.substr(0,r)),t[Ge]=ue(e.substr(r))})),ze("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[He]=ue(e.substr(0,r)),t[Ge]=ue(e.substr(r,2)),t[We]=ue(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:R,longDateFormat:Z,invalidDate:G,ordinal:Y,dayOfMonthOrdinalParse:K,relativeTime:J,months:et,monthsShort:tt,week:St,weekdays:Rt,weekdaysMin:Dt,weekdaysShort:jt,meridiemParse:nn},ln={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=fn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(i,n)>=t-1)break;t--}o++}return an}function hn(e){return null!=e.match("^[^/\\\\]*$")}function fn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&hn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),mn(n)}catch(r){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=c(t)?vn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new L(O(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,i=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(O(ln[e]._config,t)):(null!=(r=fn(e))&&(i=r._config),t=O(i,t),null==r&&(t.abbr=e),(n=new L(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=fn(e))return t;e=[e]}return pn(e)}function bn(){return M(ln)}function _n(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[qe]<0||n[qe]>11?qe:n[Ze]<1||n[Ze]>Qe(n[Ve],n[qe])?Ze:n[He]<0||n[He]>24||24===n[He]&&(0!==n[Ge]||0!==n[We]||0!==n[Ye])?He:n[Ge]<0||n[Ge]>59?Ge:n[We]<0||n[We]>59?We:n[Ye]<0||n[Ye]>999?Ye:-1,g(e)._overflowDayOfYear&&(t<Ve||t>Ze)&&(t=Ze),g(e)._overflowWeeks&&-1===t&&(t=Ke),g(e)._overflowWeekday&&-1===t&&(t=Xe),g(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(e){var t,n,r,i,o,a,s=e._i,l=wn.exec(s)||xn.exec(s),c=Cn.length,u=Sn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Cn[t][1].exec(l[1])){i=Cn[t][0],r=!1!==Cn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[3])){o=(l[2]||" ")+Sn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Un(e)}else e._isValid=!1}function In(e,t,n,r,i,o){var a=[On(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ln(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(e,t,n){return!e||jt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function jn(e,t,n){if(e)return En[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Dn(e){var t,n=Tn.exec(Ln(e._i));if(n){if(t=In(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],t,e))return;e._a=t,e._tzm=jn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=Mn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[Ze]&&null==e._a[qe]&&Bn(e),null!=e._dayOfYear&&(o=Nn(e._a[Ve],r[Ve]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[qe]=n.getUTCMonth(),e._a[Ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[He]&&0===e._a[Ge]&&0===e._a[We]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[He]=0),e._d=(e._useUTC?bt:vt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[He]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Nn(t.GG,e._a[Ve],xt(Yn(),1,4).year),r=Nn(t.W,1),((i=Nn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=xt(Yn(),o,a),n=Nn(t.gg,e._a[Ve],c.year),r=Nn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>kt(n,o,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=wt(n,r,i,o,a),e._a[Ve]=s.year,e._dayOfYear=s.dayOfYear)}function Un(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=q(e._f,e._locale).match(A)||[]).length,t=0;t<l;t++)o=i[t],(n=(c.match(De(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),z[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ue(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[He]<=12&&!0===g(e).bigHour&&e._a[He]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[He]=$n(e._locale,e._a[He],e._meridiem),null!==(s=g(e).era)&&(e._a[Ve]=e._locale.erasConvertYear(s,e._a[Ve])),zn(e),_n(e)}else Dn(e);else Pn(e)}function $n(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Vn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),y(t)&&(a=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));h(e,n||t)}function qn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function Zn(e){var t=new x(_n(Hn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Hn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new x(_n(t)):(d(t)?e._d=t:o(n)?Vn(e):n?Un(e):Gn(e),y(e)||(e._d=null),e))}function Gn(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?An(e):o(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):a(t)?qn(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Wn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Zn(s)}function Yn(e,t,n,r){return Wn(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Kn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Xn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Jn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Yn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function er(){return Jn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(s(e,t)&&(-1===$e.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==ue(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Er(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ue(e[r])!==ue(t[r]))&&a++;return a+o}function ur(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),je("Z",Oe),je("ZZ",Oe),ze(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(Oe,e)}));var dr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+ue(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(k(e)||d(e)?e.valueOf():Yn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Yn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=pr(Oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=fr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Rr(this,Er(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:fr(this)}function gr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=pr(Ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?Yn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Hn(t))._a?(e=t._isUTC?f(t._a):Yn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Er(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Mr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ue(a[Ze])*n,h:ue(a[He])*n,m:ue(a[Ge])*n,s:ue(a[We])*n,ms:ue(lr(1e3*a[Ye]))*n}):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,o={y:Pr(a[2],n),M:Pr(a[3],n),w:Pr(a[4],n),d:Pr(a[5],n),h:Pr(a[6],n),m:Pr(a[7],n),s:Pr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Or(Yn(o.from),Yn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ir(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Or(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Ir(e,t):((n=Ir(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Lr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Er(n,r),e),this}}function Rr(e,t,n,i){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(i=null==i||i,s&&ct(e,pe(e,"Month")+s*n),a&&he(e,"Date",pe(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Er.fn=ar.prototype,Er.invalid=or;var jr=Lr(1,"add"),Dr=Lr(-1,"subtract");function Ar(e){return"string"===typeof e||e instanceof String}function Nr(e){return k(e)||d(e)||Ar(e)||u(e)||zr(e)||Fr(e)||null===e||void 0===e}function Fr(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)n=o[t],i=i||s(e,n);return r&&i}function zr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Ar(e)})).length),t&&n}function Br(e){var t,n,r=a(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function $r(e,t){1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Yn(),i=hr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(P(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Yn(n)))}function Vr(){return new x(this)}function qr(e,t){var n=k(e)?e:Yn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Zr(e,t){var n=k(e)?e:Yn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Hr(e,t,n,r){var i=k(e)?e:Yn(e),o=k(t)?t:Yn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Gr(e,t){var n,r=k(e)?e:Yn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Wr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ce(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yn(e).isValid())?Er({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Yn(),e)}function ii(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yn(e).isValid())?Er({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Yn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ci=1e3,ui=60*ci,di=60*ui,pi=3506328*di;function hi(e,t){return(e%t+t)%t}function fi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pi:new Date(e,t,n).valueOf()}function mi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:fi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=hi(t,ui);break;case"second":t=this._d.valueOf(),t-=hi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:fi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-hi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-hi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-hi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Ci(){return y(this)}function Si(){return h({},g(this))}function Mi(){return g(this).overflow}function Ti(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ei(e,t){var n,i,o,a=this._eras||vn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Pi(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]}function Ii(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Oi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Li(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ri(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function ji(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Di(e){return s(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ai(e){return s(this,"_erasAbbrRegex")||$i.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ni(e){return s(this,"_erasNarrowRegex")||$i.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||Ee}function $i(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Ne(a[e].name)),n.push(Ne(a[e].abbr)),i.push(Ne(a[e].narrow)),o.push(Ne(a[e].name)),o.push(Ne(a[e].abbr)),o.push(Ne(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Vi(e,t){B(0,[e,e.length],0,t)}function qi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Zi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Hi(){return kt(this.year(),1,4)}function Gi(){return kt(this.isoWeekYear(),1,4)}function Wi(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Yi(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?xt(this,r,i).year:(t>(o=kt(e,r,i))&&(t=o),Xi.call(this,e,t,n,r,i))}function Xi(e,t,n,r,i){var o=wt(e,t,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ji(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),je("N",Fi),je("NN",Fi),je("NNN",Fi),je("NNNN",zi),je("NNNNN",Bi),ze(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),je("y",Ee),je("yy",Ee),je("yyy",Ee),je("yyyy",Ee),je("yo",Ui),ze(["y","yy","yyy","yyyy"],Ve),ze(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,i):t[Ve]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vi("gggg","weekYear"),Vi("ggggg","weekYear"),Vi("GGGG","isoWeekYear"),Vi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),je("G",Pe),je("g",Pe),je("GG",xe,ve),je("gg",xe,ve),je("GGGG",Me,_e),je("gggg",Me,_e),je("GGGGG",Te,we),je("ggggg",Te,we),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),je("Q",ye),ze("Q",(function(e,t){t[qe]=3*(ue(e)-1)})),B("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),je("D",xe),je("DD",xe,ve),je("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ze(["D","DD"],Ze),ze("Do",(function(e,t){t[Ze]=ue(e.match(xe)[0])}));var Qi=de("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),je("DDD",Se),je("DDDD",be),ze(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),B("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),je("m",xe),je("mm",xe,ve),ze(["m","mm"],Ge);var to=de("Minutes",!1);B("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),je("s",xe),je("ss",xe,ve),ze(["s","ss"],We);var no,ro,io=de("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),je("S",Se,ye),je("SS",Se,ve),je("SSS",Se,be),no="SSSS";no.length<=9;no+="S")je(no,Ee);function oo(e,t){t[Ye]=ue(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")ze(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=de("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var lo=x.prototype;function co(e){return Yn(1e3*e)}function uo(){return Yn.apply(null,arguments).parseZone()}function po(e){return e}lo.add=jr,lo.calendar=$r,lo.clone=Vr,lo.diff=Kr,lo.endOf=yi,lo.format=ti,lo.from=ni,lo.fromNow=ri,lo.to=ii,lo.toNow=oi,lo.get=fe,lo.invalidAt=Mi,lo.isAfter=qr,lo.isBefore=Zr,lo.isBetween=Hr,lo.isSame=Gr,lo.isSameOrAfter=Wr,lo.isSameOrBefore=Yr,lo.isValid=Ci,lo.lang=si,lo.locale=ai,lo.localeData=li,lo.max=Xn,lo.min=Kn,lo.parsingFlags=Si,lo.set=me,lo.startOf=gi,lo.subtract=Dr,lo.toArray=wi,lo.toObject=xi,lo.toDate=_i,lo.toISOString=Qr,lo.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=ki,lo.toString=Jr,lo.unix=bi,lo.valueOf=vi,lo.creationData=Ti,lo.eraName=Oi,lo.eraNarrow=Li,lo.eraAbbr=Ri,lo.eraYear=ji,lo.year=gt,lo.isLeapYear=yt,lo.weekYear=qi,lo.isoWeekYear=Zi,lo.quarter=lo.quarters=Ji,lo.month=ut,lo.daysInMonth=dt,lo.week=lo.weeks=Et,lo.isoWeek=lo.isoWeeks=Pt,lo.weeksInYear=Wi,lo.weeksInWeekYear=Yi,lo.isoWeeksInYear=Hi,lo.isoWeeksInISOWeekYear=Gi,lo.date=Qi,lo.day=lo.days=qt,lo.weekday=Zt,lo.isoWeekday=Ht,lo.dayOfYear=eo,lo.hour=lo.hours=rn,lo.minute=lo.minutes=to,lo.second=lo.seconds=io,lo.millisecond=lo.milliseconds=ro,lo.utcOffset=mr,lo.utc=yr,lo.local=vr,lo.parseZone=br,lo.hasAlignedHourOffset=_r,lo.isDST=wr,lo.isLocal=kr,lo.isUtcOffset=Cr,lo.isUtc=Sr,lo.isUTC=Sr,lo.zoneAbbr=ao,lo.zoneName=so,lo.dates=S("dates accessor is deprecated. Use date instead.",Qi),lo.months=S("months accessor is deprecated. Use month instead",ut),lo.years=S("years accessor is deprecated. Use year instead",gt),lo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),lo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ho=L.prototype;function fo(e,t,n,r){var i=vn(),o=f().set(r,t);return i[n](o,e)}function mo(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fo(e,r,n,"month");return i}function go(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=vn(),a=e?o._week.dow:0,s=[];if(null!=n)return fo(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=fo(t,(i+a)%7,r,"day");return s}function yo(e,t){return mo(e,t,"months")}function vo(e,t){return mo(e,t,"monthsShort")}function bo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function wo(e,t,n){return go(e,t,n,"weekdaysMin")}ho.calendar=j,ho.longDateFormat=H,ho.invalidDate=W,ho.ordinal=X,ho.preparse=po,ho.postformat=po,ho.relativeTime=Q,ho.pastFuture=ee,ho.set=I,ho.eras=Ei,ho.erasParse=Pi,ho.erasConvertYear=Ii,ho.erasAbbrRegex=Ai,ho.erasNameRegex=Di,ho.erasNarrowRegex=Ni,ho.months=ot,ho.monthsShort=at,ho.monthsParse=lt,ho.monthsRegex=ht,ho.monthsShortRegex=pt,ho.week=Ct,ho.firstDayOfYear=Tt,ho.firstDayOfWeek=Mt,ho.weekdays=zt,ho.weekdaysMin=Ut,ho.weekdaysShort=Bt,ho.weekdaysParse=Vt,ho.weekdaysRegex=Gt,ho.weekdaysShortRegex=Wt,ho.weekdaysMinRegex=Yt,ho.isPM=tn,ho.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vn);var xo=Math.abs;function ko(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function Co(e,t,n,r){var i=Er(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function So(e,t){return Co(this,e,t,1)}function Mo(e,t){return Co(this,e,t,-1)}function To(e){return e<0?Math.floor(e):Math.ceil(e)}function Eo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*To(Io(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=ce(o/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,a+=ce(n/24),s+=i=ce(Po(a)),a-=To(Io(i)),r=ce(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Po(e){return 4800*e/146097}function Io(e){return 146097*e/4800}function Oo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Po(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Io(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Lo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ro(e){return function(){return this.as(e)}}var jo=Ro("ms"),Do=Ro("s"),Ao=Ro("m"),No=Ro("h"),Fo=Ro("d"),zo=Ro("w"),Bo=Ro("M"),Uo=Ro("Q"),$o=Ro("y");function Vo(){return Er(this)}function qo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Zo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ho=Zo("milliseconds"),Go=Zo("seconds"),Wo=Zo("minutes"),Yo=Zo("hours"),Ko=Zo("days"),Xo=Zo("months"),Jo=Zo("years");function Qo(){return ce(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Er(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),d=ea(i.as("y")),p=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,na.apply(null,p)}function ia(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=sa(this._milliseconds)/1e3,c=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=ir,ua.abs=ko,ua.add=So,ua.subtract=Mo,ua.as=Oo,ua.asMilliseconds=jo,ua.asSeconds=Do,ua.asMinutes=Ao,ua.asHours=No,ua.asDays=Fo,ua.asWeeks=zo,ua.asMonths=Bo,ua.asQuarters=Uo,ua.asYears=$o,ua.valueOf=Lo,ua._bubble=Eo,ua.clone=Vo,ua.get=qo,ua.milliseconds=Ho,ua.seconds=Go,ua.minutes=Wo,ua.hours=Yo,ua.days=Ko,ua.weeks=Qo,ua.months=Xo,ua.years=Jo,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ai,ua.localeData=li,ua.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=si,B("X",0,0,"unix"),B("x",0,0,"valueOf"),je("x",Pe),je("X",Le),ze("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ze("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.4",i(Yn),r.fn=lo,r.min=Qn,r.max=er,r.now=tr,r.utc=f,r.unix=co,r.months=yo,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Er,r.isMoment=k,r.weekdays=bo,r.parseZone=uo,r.localeData=vn,r.isDuration=sr,r.monthsShort=vo,r.weekdaysMin=wo,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=ia,r.relativeTimeThreshold=oa,r.calendarFormat=Ur,r.prototype=lo,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},95602:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e){return!(!e||"function"!==typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function l(e,t,n){return Object.keys(e).reduce((function(t,r){var i=""+r;return t.has(i)?t.set(i,n(t.get(i),e[i])):t}),t)}n.d(t,{Fv:()=>x,fK:()=>w});var c=function(){function e(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!e||"string"!==typeof e)throw new Error("Expected a string key for Entity, but found "+e+".");var r=n,i=r.idAttribute,a=void 0===i?"id":i,l=r.mergeStrategy,c=void 0===l?function(e,t){return o({},e,t)}:l,u=r.processStrategy,d=void 0===u?function(e){return o({},e)}:u,p=r.fallbackStrategy,h=void 0===p?function(e,t){}:p;this._key=e,this._getId="function"===typeof a?a:function(e){return function(t){return s(t)?t.get(e):t[e]}}(a),this._idAttribute=a,this._mergeStrategy=c,this._processStrategy=d,this._fallbackStrategy=h,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,i=e[n];return o({},t,((r={})[n]=i,r))}),this.schema||{})},t.getId=function(e,t,n){return this._getId(e,t,n)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,n,r,i,o){var a=this,s=this.getId(e,t,n),l=this.key;if(l in o||(o[l]={}),s in o[l]||(o[l][s]=[]),o[l][s].some((function(t){return t===e})))return s;o[l][s].push(e);var c=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach((function(t){if(c.hasOwnProperty(t)&&"object"===typeof c[t]){var n=a.schema[t],s="function"===typeof n?n(e):n;c[t]=r(c[t],c,t,s,i,o)}})),i(this,c,e,t,n),s},t.denormalize=function(e,t){var n=this;return s(e)?l(this.schema,e,t):(Object.keys(this.schema).forEach((function(r){if(e.hasOwnProperty(r)){var i=n.schema[r];e[r]=t(e[r],i)}})),e)},i(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),u=function(){function e(e,t){t&&(this._schemaAttribute="string"===typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)},t.inferSchema=function(e,t,n){if(this.isSingleSchema)return this.schema;var r=this.getSchemaAttribute(e,t,n);return this.schema[r]},t.normalizeValue=function(e,t,n,r,i,o){var a=this.inferSchema(e,t,n);if(!a)return e;var s=r(e,t,n,a,i,o);return this.isSingleSchema||void 0===s||null===s?s:{id:s,schema:this.getSchemaAttribute(e,t,n)}},t.denormalizeValue=function(e,t){var n=s(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t((this.isSingleSchema?void 0:s(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e},i(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),d=function(e){function t(t,n){if(!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,n)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,o){return this.normalizeValue(e,t,n,r,i,o)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(u),p=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,a){var s=this;return Object.keys(e).reduce((function(t,n,l){var c,u=e[n];return void 0!==u&&null!==u?o({},t,((c={})[n]=s.normalizeValue(u,e,n,r,i,a),c)):t}),{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce((function(r,i){var a,s=e[i];return o({},r,((a={})[i]=n.denormalizeValue(s,t),a))}),{})},t}(u),h=function(e){if(Array.isArray(e)&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},f=function(e){return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t]}))},m=function(e,t,n,r,i,o,a){return e=h(e),f(t).map((function(t,s){return i(t,n,r,e,o,a)}))},g=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,i,o){var a=this;return f(e).map((function(e,s){return a.normalizeValue(e,t,n,r,i,o)})).filter((function(e){return void 0!==e&&null!==e}))},n.denormalize=function(e,t){var n=this;return e&&e.map?e.map((function(e){return n.denormalizeValue(e,t)})):e},t}(u),y=function(e,t,n,r,i,a,s){var l=o({},t);return Object.keys(e).forEach((function(n){var r=e[n],o="function"===typeof r?r(t):r,c=i(t[n],t,n,o,a,s);void 0===c||null===c?delete l[n]:l[n]=c})),l},v=function(e,t,n){if(s(t))return l(e,t,n);var r=o({},t);return Object.keys(e).forEach((function(t){null!=r[t]&&(r[t]=n(r[t],e[t]))})),r},b=function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,i=e[n];return o({},t,((r={})[n]=i,r))}),this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.apply(void 0,[this.schema].concat(t))},e}(),_=function e(t,n,r,i,o,a){return"object"===typeof t&&t?"object"!==typeof i||i.normalize&&"function"===typeof i.normalize?i.normalize(t,n,r,e,o,a):(Array.isArray(i)?m:y)(i,t,n,r,e,o,a):t},w={Array:g,Entity:c,Object:b,Union:d,Values:p},x=function(e,t){if(!e||"object"!==typeof e)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var n={},r=function(e){return function(t,n,r,i,o){var a=t.key,s=t.getId(r,i,o);a in e||(e[a]={});var l=e[a][s];e[a][s]=l?t.merge(l,n):n}}(n);return{entities:n,result:_(e,e,null,t,r,{})}}},30758:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},40769:e=>{"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},91104:(e,t,n)=>{"use strict";var r=n(30434),i=n(90935),o=n(40769),a=n(82835),s=n(20162),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},82835:(e,t,n)=>{"use strict";var r=n(40769);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},20162:(e,t,n)=>{"use strict";var r=n(82835),i=n(30434);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},83008:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(58092),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var f=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var y in e)f&&"prototype"===y||!i.call(e,y)||p.push(String(y));if(l)for(var v=function(e){if("undefined"===typeof window||!h)return d(e);try{return d(e)}catch(t){return!1}}(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!i.call(e,u[b])||p.push(u[b]);return p}}e.exports=r},37774:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(58092),o=Object.keys,a=o?function(e){return o(e)}:n(83008),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},58092:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},23347:(e,t,n)=>{var r=n(76312);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],p=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,p)s+=p[1];else{var f=e[a],m=n[2],g=n[3],y=n[4],v=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=f&&f!==m,x="+"===b||"*"===b,k="?"===b||"*"===b,C=n[2]||u,S=y||v;r.push({name:g||o++,prefix:m||"",delimiter:C,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?c(S):_?".*":"[^"+l(C)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var p=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+p+h+")*"),a+=h=c.optional?c.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var f=l(n.delimiter||"/"),m=a.slice(-f.length)===f;return i||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+f+"|$)",u(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},92480:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,o="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=e[s++]}else o+=e[s++]+e[s++];if(i)throw new TypeError("Unbalanced pattern at "+n);if(!o)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:o}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^"+o(t.delimiter||"/#?")+"]+?",s=[],l=0,c=0,u="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[c],i=r.type,o=r.index;throw new TypeError("Unexpected "+i+" at "+o+", expected "+e)},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<n.length;){var f=d("CHAR"),m=d("NAME"),g=d("PATTERN");if(m||g){var y=f||"";-1===i.indexOf(y)&&(u+=y,y=""),u&&(s.push(u),u=""),s.push({name:m||l++,prefix:y,suffix:"",pattern:g||a,modifier:d("MODIFIER")||""})}else{var v=f||d("ESCAPED_CHAR");if(v)u+=v;else if(u&&(s.push(u),u=""),d("OPEN")){y=h();var b=d("NAME")||"",_=d("PATTERN")||"",w=h();p("CLOSE"),s.push({name:b||(_?l++:""),pattern:b&&!_?a:_,prefix:y,suffix:w,modifier:d("MODIFIER")||""})}else p("END")}}return s}function i(e,t){return function(e,t){void 0===t&&(t={});var n=a(t),r=t.encode,i=void 0===r?function(e){return e}:r,o=t.validate,s=void 0===o||o,l=e.map((function(e){if("object"===typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var o=e[r];if("string"!==typeof o){var a=t?t[o.name]:void 0,c="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(a)){if(!u)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===a.length){if(c)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var d=0;d<a.length;d++){var p=i(a[d],o);if(s&&!l[r].test(p))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');n+=o.prefix+p+o.suffix}}else if("string"!==typeof a&&"number"!==typeof a){if(!c){var h=u?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+h)}}else{p=i(String(a),o);if(s&&!l[r].test(p))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');n+=o.prefix+p+o.suffix}}else n+=o}return n}}(r(e,t),t)}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function s(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,s=n.start,l=void 0===s||s,c=n.end,u=void 0===c||c,d=n.encode,p=void 0===d?function(e){return e}:d,h="["+o(n.endsWith||"")+"]|$",f="["+o(n.delimiter||"/#?")+"]",m=l?"^":"",g=0,y=e;g<y.length;g++){var v=y[g];if("string"===typeof v)m+=o(p(v));else{var b=o(p(v.prefix)),_=o(p(v.suffix));if(v.pattern)if(t&&t.push(v),b||_)if("+"===v.modifier||"*"===v.modifier){var w="*"===v.modifier?"?":"";m+="(?:"+b+"((?:"+v.pattern+")(?:"+_+b+"(?:"+v.pattern+"))*)"+_+")"+w}else m+="(?:"+b+"("+v.pattern+")"+_+")"+v.modifier;else m+="("+v.pattern+")"+v.modifier;else m+="(?:"+b+_+")"+v.modifier}}if(u)i||(m+=f+"?"),m+=n.endsWith?"(?="+h+")":"$";else{var x=e[e.length-1],k="string"===typeof x?f.indexOf(x[x.length-1])>-1:void 0===x;i||(m+="(?:"+f+"(?="+h+"))?"),k||(m+="(?="+f+"|"+h+")")}return new RegExp(m,a(n))}(r(e,n),t,n)}function l(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return l(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",a(n))}(e,t,n):s(e,t,n)}n.d(t,{Bo:()=>l,MY:()=>i})},5866:function(e){(function(){var t,n,r;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-r)/1e6},n=process.hrtime,r=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},98202:function(e){(function(){var t,n,r,i,o,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},n=process.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},7090:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],a=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var s=(r-n)/2,l=0,c=s-1;l<s;c=l++){var u=t[n+2*l+0],d=t[n+2*l+1],p=t[n+2*c+0],h=t[n+2*c+1];d>o!==h>o&&i<(p-u)*(o-d)/(h-d)+u&&(a=!a)}return a}},74946:(e,t,n)=>{var r=n(7090),i=n(74717);e.exports=function(e,t,n,o){return t.length>0&&Array.isArray(t[0])?i(e,t,n,o):r(e,t,n,o)},e.exports.nested=i,e.exports.flat=r},74717:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],a=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var s=r-n,l=0,c=s-1;l<s;c=l++){var u=t[l+n][0],d=t[l+n][1],p=t[c+n][0],h=t[c+n][1];d>o!==h>o&&i<(p-u)*(o-d)/(h-d)+u&&(a=!a)}return a}},23615:function(e){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}var r=function(){function e(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null}return e}();function i(e,t){return e>t?1:e<t?-1:0}function o(e,t,n){for(var i=new r(null,null),o=i,a=i;;){var s=n(e,t.key);if(s<0){if(null===t.left)break;if(n(e,t.left.key)<0){var l=t.left;if(t.left=l.right,l.right=t,null===(t=l).left)break}a.left=t,a=t,t=t.left}else{if(!(s>0))break;if(null===t.right)break;if(n(e,t.right.key)>0&&(l=t.right,t.right=l.left,l.left=t,null===(t=l).right))break;o.right=t,o=t,t=t.right}}return o.right=t.left,a.left=t.right,t.left=i.right,t.right=i.left,t}function a(e,t,n,i){var a=new r(e,t);if(null===n)return a.left=a.right=null,a;var s=i(e,(n=o(e,n,i)).key);return s<0?(a.left=n.left,a.right=n,n.left=null):s>=0&&(a.right=n.right,a.left=n,n.right=null),a}function s(e,t,n){var r=null,i=null;if(t){var a=n((t=o(e,t,n)).key,e);0===a?(r=t.left,i=t.right):a<0?(i=t.right,t.right=null,r=t):(r=t.left,t.left=null,i=t)}return{left:r,right:i}}function l(e,t,n){return null===t?e:(null===e||((t=o(e.key,t,n)).left=e),t)}function c(e,t,n,r,i){if(e){r(t+(n?"\u2514\u2500\u2500 ":"\u251c\u2500\u2500 ")+i(e)+"\n");var o=t+(n?"    ":"\u2502   ");e.left&&c(e.left,o,!1,r,i),e.right&&c(e.right,o,!0,r,i)}}var u=function(){function e(e){void 0===e&&(e=i),this._root=null,this._size=0,this._comparator=e}return e.prototype.insert=function(e,t){return this._size++,this._root=a(e,t,this._root,this._comparator)},e.prototype.add=function(e,t){var n=new r(e,t);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,a=o(e,this._root,i),s=i(e,a.key);return 0===s?this._root=a:(s<0?(n.left=a.left,n.right=a,a.left=null):s>0&&(n.right=a.right,n.left=a,a.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},e.prototype._remove=function(e,t,n){var r;return null===t?null:0===n(e,(t=o(e,t,n)).key)?(null===t.left?r=t.right:(r=o(e,t.left,n)).right=t.right,this._size--,r):t},e.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=o(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},e.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return t;t=r<0?t.left:t.right}return null},e.prototype.find=function(e){return this._root&&(this._root=o(e,this._root,this._comparator),0!==this._comparator(e,this._root.key))?null:this._root},e.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},e.prototype.forEach=function(e,t){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),e.call(t,n),n=n.right):i=!0;return this},e.prototype.range=function(e,t,n,r){for(var i=[],o=this._comparator,a=this._root;0!==i.length||a;)if(a)i.push(a),a=a.left;else{if(o((a=i.pop()).key,t)>0)break;if(o(a.key,e)>=0&&n.call(r,a))return this;a=a.right}return this},e.prototype.keys=function(){var e=[];return this.forEach((function(t){var n=t.key;return e.push(n)})),e},e.prototype.values=function(){var e=[];return this.forEach((function(t){var n=t.data;return e.push(n)})),e},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},e.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},e.prototype.at=function(e){for(var t=this._root,n=!1,r=0,i=[];!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},e.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?(n=t,t=t.left):t=t.right}return n},e.prototype.prev=function(e){var t=this._root,n=null;if(null!==e.left){for(n=e.left;n.right;)n=n.right;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?t=t.left:(n=t,t=t.right)}return n},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return h(this._root)},e.prototype.load=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1);var r=e.length,i=this._comparator;if(n&&g(e,t,0,r-1,i),null===this._root)this._root=d(e,t,0,r),this._size=r;else{var o=m(this.toList(),p(e,t),i);r=this._size+r,this._root=f({head:o},0,r)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){void 0===e&&(e=function(e){return String(e.key)});var t=[];return c(this._root,"",!0,(function(e){return t.push(e)}),e),t.join("")},e.prototype.update=function(e,t,n){var r=this._comparator,i=s(e,this._root,r),o=i.left,c=i.right;r(e,t)<0?c=a(t,n,c,r):o=a(t,n,o,r),this._root=l(o,c,r)},e.prototype.split=function(e){return s(e,this._root,this._comparator)},e}();function d(e,t,n,i){var o=i-n;if(o>0){var a=n+Math.floor(o/2),s=e[a],l=t[a],c=new r(s,l);return c.left=d(e,t,n,a),c.right=d(e,t,a+1,i),c}return null}function p(e,t){for(var n=new r(null,null),i=n,o=0;o<e.length;o++)i=i.next=new r(e[o],t[o]);return i.next=null,n.next}function h(e){for(var t=e,n=[],i=!1,o=new r(null,null),a=o;!i;)t?(n.push(t),t=t.left):n.length>0?t=(t=a=a.next=n.pop()).right:i=!0;return a.next=null,o.next}function f(e,t,n){var r=n-t;if(r>0){var i=t+Math.floor(r/2),o=f(e,t,i),a=e.head;return a.left=o,e.head=e.head.next,a.right=f(e,i+1,n),a}return null}function m(e,t,n){for(var i=new r(null,null),o=i,a=e,s=t;null!==a&&null!==s;)n(a.key,s.key)<0?(o.next=a,a=a.next):(o.next=s,s=s.next),o=o.next;return null!==a?o.next=a:null!==s&&(o.next=s),i.next}function g(e,t,n,r,i){if(!(n>=r)){for(var o=e[n+r>>1],a=n-1,s=r+1;;){do{a++}while(i(e[a],o)<0);do{s--}while(i(e[s],o)>0);if(a>=s)break;var l=e[a];e[a]=e[s],e[s]=l,l=t[a],t[a]=t[s],t[s]=l}g(e,t,n,s,i),g(e,t,s+1,r,i)}}var y=function(e,t){return e.ll.x<=t.x&&t.x<=e.ur.x&&e.ll.y<=t.y&&t.y<=e.ur.y},v=function(e,t){if(t.ur.x<e.ll.x||e.ur.x<t.ll.x||t.ur.y<e.ll.y||e.ur.y<t.ll.y)return null;var n=e.ll.x<t.ll.x?t.ll.x:e.ll.x,r=e.ur.x<t.ur.x?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y<t.ll.y?t.ll.y:e.ll.y},ur:{x:r,y:e.ur.y<t.ur.y?e.ur.y:t.ur.y}}},b=Number.EPSILON;void 0===b&&(b=Math.pow(2,-52));var _=b*b,w=function(e,t){if(-b<e&&e<b&&-b<t&&t<b)return 0;var n=e-t;return n*n<_*e*t?0:e<t?-1:1},x=function(){function t(){e(this,t),this.reset()}return n(t,[{key:"reset",value:function(){this.xRounder=new k,this.yRounder=new k}},{key:"round",value:function(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}]),t}(),k=function(){function t(){e(this,t),this.tree=new u,this.round(0)}return n(t,[{key:"round",value:function(e){var t=this.tree.add(e),n=this.tree.prev(t);if(null!==n&&0===w(t.key,n.key))return this.tree.remove(e),n.key;var r=this.tree.next(t);return null!==r&&0===w(t.key,r.key)?(this.tree.remove(e),r.key):e}}]),t}(),C=new x,S=function(e,t){return e.x*t.y-e.y*t.x},M=function(e,t){return e.x*t.x+e.y*t.y},T=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y},o=S(r,i);return w(o,0)},E=function(e){return Math.sqrt(M(e,e))},P=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return S(i,r)/E(i)/E(r)},I=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return M(i,r)/E(i)/E(r)},O=function(e,t,n){return 0===t.y?null:{x:e.x+t.x/t.y*(n-e.y),y:n}},L=function(e,t,n){return 0===t.x?null:{x:n,y:e.y+t.y/t.x*(n-e.x)}},R=function(e,t,n,r){if(0===t.x)return L(n,r,e.x);if(0===r.x)return L(e,t,n.x);if(0===t.y)return O(n,r,e.y);if(0===r.y)return O(e,t,n.y);var i=S(t,r);if(0==i)return null;var o={x:n.x-e.x,y:n.y-e.y},a=S(o,t)/i,s=S(o,r)/i;return{x:(e.x+s*t.x+(n.x+a*r.x))/2,y:(e.y+s*t.y+(n.y+a*r.y))/2}},j=function(){function t(n,r){e(this,t),void 0===n.events?n.events=[this]:n.events.push(this),this.point=n,this.isLeft=r}return n(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:A.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}}]),n(t,[{key:"link",value:function(e){if(e.point===this.point)throw new Error("Tried to link already linked events");for(var t=e.point.events,n=0,r=t.length;n<r;n++){var i=t[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var e=this.point.events.length,t=0;t<e;t++){var n=this.point.events[t];if(void 0===n.segment.consumedBy)for(var r=t+1;r<e;r++){var i=this.point.events[r];void 0===i.consumedBy&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var e=[],t=0,n=this.point.events.length;t<n;t++){var r=this.point.events[t];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&e.push(r)}return e}},{key:"getLeftmostComparator",value:function(e){var t=this,n=new Map,r=function(r){var i=r.otherSE;n.set(r,{sine:P(t.point,e.point,i.point),cosine:I(t.point,e.point,i.point)})};return function(e,t){n.has(e)||r(e),n.has(t)||r(t);var i=n.get(e),o=i.sine,a=i.cosine,s=n.get(t),l=s.sine,c=s.cosine;return o>=0&&l>=0?a<c?1:a>c?-1:0:o<0&&l<0?a<c?-1:a>c?1:0:l<o?-1:l>o?1:0}}}]),t}(),D=0,A=function(){function t(n,r,i,o){e(this,t),this.id=++D,this.leftSE=n,n.segment=this,n.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=n,this.rings=i,this.windings=o}return n(t,null,[{key:"compare",value:function(e,t){var n=e.leftSE.point.x,r=t.leftSE.point.x,i=e.rightSE.point.x,o=t.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var a=e.leftSE.point.y,s=t.leftSE.point.y,l=e.rightSE.point.y,c=t.rightSE.point.y;if(n<r){if(s<a&&s<l)return 1;if(s>a&&s>l)return-1;var u=e.comparePoint(t.leftSE.point);if(u<0)return 1;if(u>0)return-1;var d=t.comparePoint(e.rightSE.point);return 0!==d?d:-1}if(n>r){if(a<s&&a<c)return-1;if(a>s&&a>c)return 1;var p=t.comparePoint(e.leftSE.point);if(0!==p)return p;var h=e.comparePoint(t.rightSE.point);return h<0?1:h>0?-1:1}if(a<s)return-1;if(a>s)return 1;if(i<o){var f=t.comparePoint(e.rightSE.point);if(0!==f)return f}if(i>o){var m=e.comparePoint(t.rightSE.point);if(m<0)return 1;if(m>0)return-1}if(i!==o){var g=l-a,y=i-n,v=c-s,b=o-r;if(g>y&&v<b)return 1;if(g<y&&v>b)return-1}return i>o?1:i<o||l<c?-1:l>c?1:e.id<t.id?-1:e.id>t.id?1:0}}]),n(t,[{key:"replaceRightSE",value:function(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}},{key:"comparePoint",value:function(e){if(this.isAnEndpoint(e))return 0;var t=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;var i=(e.y-t.y)/r.y,o=t.x+i*r.x;if(e.x===o)return 0;var a=(e.x-t.x)/r.x,s=t.y+a*r.y;return e.y===s?0:e.y<s?-1:1}},{key:"getIntersection",value:function(e){var t=this.bbox(),n=e.bbox(),r=v(t,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,a=e.leftSE.point,s=e.rightSE.point,l=y(t,a)&&0===this.comparePoint(a),c=y(n,i)&&0===e.comparePoint(i),u=y(t,s)&&0===this.comparePoint(s),d=y(n,o)&&0===e.comparePoint(o);if(c&&l)return d&&!u?o:!d&&u?s:null;if(c)return u&&i.x===s.x&&i.y===s.y?null:i;if(l)return d&&o.x===a.x&&o.y===a.y?null:a;if(d&&u)return null;if(d)return o;if(u)return s;var p=R(i,this.vector(),a,e.vector());return null===p?null:y(r,p)?C.round(p.x,p.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new j(e,!0),o=new j(e,!1),a=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var s=new t(i,a,this.rings.slice(),this.windings.slice());return j.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),j.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var a=n;n=r,r=a}for(var s=0,l=r.rings.length;s<l;s++){var c=r.rings[s],u=r.windings[s],d=n.rings.indexOf(c);-1===d?(n.rings.push(c),n.windings.push(u)):n.windings[d]+=u}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};for(var t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var a=this.rings[i],s=this.windings[i],l=t.indexOf(a);-1===l?(t.push(a),n.push(s)):n[l]+=s}for(var c=[],u=[],d=0,p=t.length;d<p;d++)if(0!==n[d]){var h=t[d],f=h.poly;if(-1===u.indexOf(f))if(h.isExterior)c.push(f);else{-1===u.indexOf(f)&&u.push(f);var m=c.indexOf(h.poly);-1!==m&&c.splice(m,1)}}for(var g=0,y=c.length;g<y;g++){var v=c[g].multiPoly;-1===r.indexOf(v)&&r.push(v)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(H.type){case"union":var n=0===e.length,r=0===t.length;this._isInResult=n!==r;break;case"intersection":var i,o;e.length<t.length?(i=e.length,o=t.length):(i=t.length,o=e.length),this._isInResult=o===H.numMultiPolys&&i<o;break;case"xor":var a=Math.abs(e.length-t.length);this._isInResult=a%2===1;break;case"difference":var s=function(e){return 1===e.length&&e[0].isSubject};this._isInResult=s(e)!==s(t);break;default:throw new Error("Unrecognized operation type found ".concat(H.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,a,s=j.comparePoints(e,n);if(s<0)i=e,o=n,a=1;else{if(!(s>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,a=-1}return new t(new j(i,!0),new j(o,!1),[r],[a])}}]),t}(),N=function(){function t(n,r,i){if(e(this,t),!Array.isArray(n)||0===n.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=i,this.segments=[],"number"!==typeof n[0][0]||"number"!==typeof n[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=C.round(n[0][0],n[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var a=o,s=1,l=n.length;s<l;s++){if("number"!==typeof n[s][0]||"number"!==typeof n[s][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var c=C.round(n[s][0],n[s][1]);c.x===a.x&&c.y===a.y||(this.segments.push(A.fromRing(a,c,this)),c.x<this.bbox.ll.x&&(this.bbox.ll.x=c.x),c.y<this.bbox.ll.y&&(this.bbox.ll.y=c.y),c.x>this.bbox.ur.x&&(this.bbox.ur.x=c.x),c.y>this.bbox.ur.y&&(this.bbox.ur.y=c.y),a=c)}o.x===a.x&&o.y===a.y||this.segments.push(A.fromRing(a,o,this))}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.segments.length;t<n;t++){var r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}}]),t}(),F=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new N(n[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var i=1,o=n.length;i<o;i++){var a=new N(n[i],this,!1);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=this.exteriorRing.getSweepEvents(),t=0,n=this.interiorRings.length;t<n;t++)for(var r=this.interiorRings[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),z=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"===typeof n[0][0][0]&&(n=[n])}catch(s){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var i=0,o=n.length;i<o;i++){var a=new F(n[i],this);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++)for(var r=this.polys[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),B=function(){function t(n){e(this,t),this.events=n;for(var r=0,i=n.length;r<i;r++)n[r].segment.ringOut=this;this.poly=null}return n(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var a=null,s=o.leftSE,l=o.rightSE,c=[s],u=s.point,d=[];a=s,s=l,c.push(s),s.point!==u;)for(;;){var p=s.getAvailableLinkedEvents();if(0===p.length){var h=c[0].point,f=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(h.x,",")+" ".concat(h.y,"]. Last matching segment found ends at")+" [".concat(f.x,", ").concat(f.y,"]."))}if(1===p.length){l=p[0].otherSE;break}for(var m=null,g=0,y=d.length;g<y;g++)if(d[g].point===s.point){m=g;break}if(null===m){d.push({index:c.length,point:s.point});var v=s.getLeftmostComparator(a);l=p.sort(v)[0].otherSE;break}var b=d.splice(m)[0],_=c.splice(b.index);_.unshift(_[0].otherSE),n.push(new t(_.reverse()))}n.push(new t(c))}}return n}}]),n(t,[{key:"getGeom",value:function(){for(var e=this.events[0].point,t=[e],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==T(i,e,o)&&(t.push(i),e=i)}if(1===t.length)return null;var a=t[0],s=t[1];0===T(a,e,s)&&t.shift(),t.push(t[0]);for(var l=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:t.length-1,u=this.isExteriorRing()?t.length:-1,d=[],p=c;p!=u;p+=l)d.push([t[p].x,t[p].y]);return d}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var e=this.events[0],t=1,n=this.events.length;t<n;t++){var r=this.events[t];j.compare(e,r)>0&&(e=r)}for(var i=e.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}]),t}(),U=function(){function t(n){e(this,t),this.exteriorRing=n,n.poly=this,this.interiorRings=[]}return n(t,[{key:"addInterior",value:function(e){this.interiorRings.push(e),e.poly=this}},{key:"getGeom",value:function(){var e=[this.exteriorRing.getGeom()];if(null===e[0])return null;for(var t=0,n=this.interiorRings.length;t<n;t++){var r=this.interiorRings[t].getGeom();null!==r&&e.push(r)}return e}}]),t}(),$=function(){function t(n){e(this,t),this.rings=n,this.polys=this._composePolys(n)}return n(t,[{key:"getGeom",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++){var r=this.polys[t].getGeom();null!==r&&e.push(r)}return e}},{key:"_composePolys",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new U(i));else{var o=i.enclosingRing();o.poly||t.push(new U(o)),o.poly.addInterior(i)}}return t}}]),t}(),V=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.compare;e(this,t),this.queue=n,this.tree=new u(r),this.segments=[]}return n(t,[{key:"process",value:function(e){var t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;var r=e.isLeft?this.tree.insert(t):this.tree.find(t);if(!r)throw new Error("Unable to find segment #".concat(t.id," ")+"[".concat(t.leftSE.point.x,", ").concat(t.leftSE.point.y,"] -> ")+"[".concat(t.rightSE.point.x,", ").concat(t.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,a=void 0,s=void 0;void 0===a;)null===(i=this.tree.prev(i))?a=null:void 0===i.key.consumedBy&&(a=i.key);for(;void 0===s;)null===(o=this.tree.next(o))?s=null:void 0===o.key.consumedBy&&(s=o.key);if(e.isLeft){var l=null;if(a){var c=a.getIntersection(t);if(null!==c&&(t.isAnEndpoint(c)||(l=c),!a.isAnEndpoint(c)))for(var u=this._splitSafely(a,c),d=0,p=u.length;d<p;d++)n.push(u[d])}var h=null;if(s){var f=s.getIntersection(t);if(null!==f&&(t.isAnEndpoint(f)||(h=f),!s.isAnEndpoint(f)))for(var m=this._splitSafely(s,f),g=0,y=m.length;g<y;g++)n.push(m[g])}if(null!==l||null!==h){var v=null;v=null===l?h:null===h||j.comparePoints(l,h)<=0?l:h,this.queue.remove(t.rightSE),n.push(t.rightSE);for(var b=t.split(v),_=0,w=b.length;_<w;_++)n.push(b[_])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=a)}else{if(a&&s){var x=a.getIntersection(s);if(null!==x){if(!a.isAnEndpoint(x))for(var k=this._splitSafely(a,x),C=0,S=k.length;C<S;C++)n.push(k[C]);if(!s.isAnEndpoint(x))for(var M=this._splitSafely(s,x),T=0,E=M.length;T<E;T++)n.push(M[T])}}this.tree.remove(t)}return n}},{key:"_splitSafely",value:function(e,t){this.tree.remove(e);var n=e.rightSE;this.queue.remove(n);var r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.insert(e),r}}]),t}(),q="undefined"!==typeof process&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,Z="undefined"!==typeof process&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,H=new(function(){function t(){e(this,t)}return n(t,[{key:"run",value:function(e,t,n){H.type=e,C.reset();for(var r=[new z(t,!0)],i=0,o=n.length;i<o;i++)r.push(new z(n[i],!1));if(H.numMultiPolys=r.length,"difference"===H.type)for(var a=r[0],s=1;s<r.length;)null!==v(r[s].bbox,a.bbox)?s++:r.splice(s,1);if("intersection"===H.type)for(var l=0,c=r.length;l<c;l++)for(var d=r[l],p=l+1,h=r.length;p<h;p++)if(null===v(d.bbox,r[p].bbox))return[];for(var f=new u(j.compare),m=0,g=r.length;m<g;m++)for(var y=r[m].getSweepEvents(),b=0,_=y.length;b<_;b++)if(f.insert(y[b]),f.size>q)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var w=new V(f),x=f.size,k=f.pop();k;){var S=k.key;if(f.size===x){var M=S.segment;throw new Error("Unable to pop() ".concat(S.isLeft?"left":"right"," SweepEvent ")+"[".concat(S.point.x,", ").concat(S.point.y,"] from segment #").concat(M.id," ")+"[".concat(M.leftSE.point.x,", ").concat(M.leftSE.point.y,"] -> ")+"[".concat(M.rightSE.point.x,", ").concat(M.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(f.size>q)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(w.segments.length>Z)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var T=w.process(S),E=0,P=T.length;E<P;E++){var I=T[E];void 0===I.consumedBy&&f.insert(I)}x=f.size,k=f.pop()}C.reset();var O=B.factory(w.segments);return new $(O).getGeom()}}]),t}()),G=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return H.run("union",e,n)},W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return H.run("intersection",e,n)},Y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return H.run("xor",e,n)},K=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return H.run("difference",e,n)};return{union:G,intersection:W,xor:Y,difference:K}}()},2589:(e,t,n)=>{"use strict";var r=n(58503);function i(e,t,n){var i,s,l,c;t=t||1;for(var u=0;u<e[0].length;u++){var d=e[0][u];(!u||d[0]<i)&&(i=d[0]),(!u||d[1]<s)&&(s=d[1]),(!u||d[0]>l)&&(l=d[0]),(!u||d[1]>c)&&(c=d[1])}var p=l-i,h=c-s,f=Math.min(p,h),m=f/2;if(0===f){var g=[i,s];return g.distance=0,g}for(var y=new r(void 0,o),v=i;v<l;v+=f)for(var b=s;b<c;b+=f)y.push(new a(v+m,b+m,m,e));var _=function(e){for(var t=0,n=0,r=0,i=e[0],o=0,s=i.length,l=s-1;o<s;l=o++){var c=i[o],u=i[l],d=c[0]*u[1]-u[0]*c[1];n+=(c[0]+u[0])*d,r+=(c[1]+u[1])*d,t+=3*d}return 0===t?new a(i[0][0],i[0][1],0,e):new a(n/t,r/t,0,e)}(e),w=new a(i+p/2,s+h/2,0,e);w.d>_.d&&(_=w);for(var x=y.length;y.length;){var k=y.pop();k.d>_.d&&(_=k,n&&console.log("found best %d after %d probes",Math.round(1e4*k.d)/1e4,x)),k.max-_.d<=t||(m=k.h/2,y.push(new a(k.x-m,k.y-m,m,e)),y.push(new a(k.x+m,k.y-m,m,e)),y.push(new a(k.x-m,k.y+m,m,e)),y.push(new a(k.x+m,k.y+m,m,e)),x+=4)}n&&(console.log("num probes: "+x),console.log("best distance: "+_.d));var C=[_.x,_.y];return C.distance=_.d,C}function o(e,t){return t.max-e.max}function a(e,t,n,r){this.x=e,this.y=t,this.h=n,this.d=function(e,t,n){for(var r=!1,i=1/0,o=0;o<n.length;o++)for(var a=n[o],l=0,c=a.length,u=c-1;l<c;u=l++){var d=a[l],p=a[u];d[1]>t!==p[1]>t&&e<(p[0]-d[0])*(t-d[1])/(p[1]-d[1])+d[0]&&(r=!r),i=Math.min(i,s(e,t,d,p))}return 0===i?0:(r?1:-1)*Math.sqrt(i)}(e,t,r),this.max=this.d+this.h*Math.SQRT2}function s(e,t,n,r){var i=n[0],o=n[1],a=r[0]-i,s=r[1]-o;if(0!==a||0!==s){var l=((e-i)*a+(t-o)*s)/(a*a+s*s);l>1?(i=r[0],o=r[1]):l>0&&(i+=a*l,o+=s*l)}return(a=e-i)*a+(s=t-o)*s}r.default&&(r=r.default),e.exports=i,e.exports.default=i},82155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>jn});var r=1,i=2,o=3,a=5,s=6378137,l=6356752.314,c=.0066943799901413165,u=484813681109536e-20,d=Math.PI/2,p=.16666666666666666,h=.04722222222222222,f=.022156084656084655,m=1e-10,g=.017453292519943295,y=57.29577951308232,v=Math.PI/4,b=2*Math.PI,_=3.14159265359,w={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const x={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var k=/[\s_\-\/\(\)]/g;function C(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(k,""),o=-1;++o<r.length;)if((n=r[o]).toLowerCase().replace(k,"")===i)return e[n]}function S(e){var t,n,r,i={},o=e.split("+").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e}),{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*g},lat_1:function(e){i.lat1=e*g},lat_2:function(e){i.lat2=e*g},lat_ts:function(e){i.lat_ts=e*g},lon_0:function(e){i.long0=e*g},lon_1:function(e){i.long1=e*g},lon_2:function(e){i.long2=e*g},alpha:function(e){i.alpha=parseFloat(e)*g},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*g},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map((function(e){return parseFloat(e)}))},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=C(x,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*g},pm:function(e){var t=C(w,e);i.from_greenwich=(t||parseFloat(e))*g},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)n=o[t],t in a?"function"===typeof(r=a[t])?r(n):i[r]=n:i[t]=n;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}const M=function(e){var t=new R(e);return t.output()};var T=1,E=/\s/,P=/[A-Za-z]/,I=/[A-Za-z84]/,O=/[,\]]/,L=/[\d\.E\-\+]/;function R(e){if("string"!==typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=T}function j(e,t,n){Array.isArray(t)&&(n.unshift(t),t=null);var r=t?{}:e,i=n.reduce((function(e,t){return D(t,e),e}),r);t&&(e[t]=i)}function D(e,t){if(Array.isArray(e)){var n=e.shift();if("PARAMETER"===n&&(n=e.shift()),1===e.length)return Array.isArray(e[0])?(t[n]={},void D(e[0],t[n])):void(t[n]=e[0]);if(e.length)if("TOWGS84"!==n){if("AXIS"===n)return n in t||(t[n]=[]),void t[n].push(e);var r;switch(Array.isArray(n)||(t[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[n]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&D(e[2],t[n]));case"SPHEROID":case"ELLIPSOID":return t[n]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&D(e[3],t[n]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void j(t,n,e);default:for(r=-1;++r<e.length;)if(!Array.isArray(e[r]))return D(e,t[n]);return j(t,n,e)}}else t[n]=e;else t[n]=!0}else t[e]=!0}R.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;E.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case T:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},R.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(O.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},R.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=T)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=T,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},R.prototype.number=function(e){if(!L.test(e)){if(O.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},R.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},R.prototype.keyword=function(e){if(I.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=T)}if(!O.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},R.prototype.neutral=function(e){if(P.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(L.test(e))return this.word=e,void(this.state=3);if(!O.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},R.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var A=.017453292519943295;function N(e){return e*A}function F(e){var t=M(e),n=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",n]);var i={};return D(t,i),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"===typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",n=0,r=e.AXIS.length;n<r;++n){var i=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?t+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?t+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?t+="e":-1===i[0].indexOf("west")&&("x"!==i[0]&&"lon"!==i[0]||"west"!==i[1])||(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var o=e.GEOGCS;function a(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(o=e),o&&(o.DATUM?e.datumCode=o.DATUM.name.toLowerCase():e.datumCode=o.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),o.DATUM&&o.DATUM.SPHEROID&&(e.ellps=o.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=o.DATUM.SPHEROID.a,e.rf=parseFloat(o.DATUM.SPHEROID.rf,10)),o.DATUM&&o.DATUM.TOWGS84&&(e.datum_params=o.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",N],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",N],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",N],["lat0","latitude_of_origin",N],["lat0","standard_parallel_1",N],["lat1","standard_parallel_1",N],["lat2","standard_parallel_2",N],["azimuth","Azimuth"],["alpha","azimuth",N],["srsCode","name"]].forEach((function(t){return function(e,t){var n=t[0],r=t[1];!(n in e)&&r in e&&(e[n]=e[r],3===t.length&&(e[n]=t[2](e[n])))}(e,t)})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=N(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(i),i}function z(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?z[e]=S(arguments[1]):z[e]=F(arguments[1]):z[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?z.apply(t,e):z(e)}));if("string"===typeof e){if(e in z)return z[e]}else"EPSG"in e?z["EPSG:"+e.EPSG]=e:"ESRI"in e?z["ESRI:"+e.ESRI]=e:"IAU2000"in e?z["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(z);const B=z;var U=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var $=["3857","900913","3785","102113"];const V=function(e){if(!function(e){return"string"===typeof e}(e))return e;if(function(e){return e in B}(e))return B[e];if(function(e){return U.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=F(e);if(function(e){var t=C(e,"authority");if(t){var n=C(t,"epsg");return n&&$.indexOf(n)>-1}}(t))return B["EPSG:3857"];var n=function(e){var t=C(e,"extension");if(t)return C(t,"proj4")}(t);return n?S(n):t}return function(e){return"+"===e[0]}(e)?S(e):void 0};function q(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e}function Z(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}function H(e){return e<0?-1:1}function G(e){return Math.abs(e)<=_?e:e-H(e)*b}function W(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(d-t))/r}function Y(e,t){for(var n,r,i=.5*e,o=d-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(o),o+=r=d-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}function K(e){return e}var X=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,i=e.y;if(i*y>90&&i*y<-90&&r*y>180&&r*y<-180)return null;if(Math.abs(Math.abs(i)-d)<=m)return null;if(this.sphere)t=this.x0+this.a*this.k0*G(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(v+.5*i));else{var o=Math.sin(i),a=W(this.e,i,o);t=this.x0+this.a*this.k0*G(r-this.long0),n=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=d-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=Y(this.e,o)))return null}return t=G(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:K,inverse:K,names:["longlat","identity"]}],J={},Q=[];function ee(e,t){var n=Q.length;return e.names?(Q[n]=e,e.names.forEach((function(e){J[e.toLowerCase()]=n})),this):(console.log(t),!0)}const te={start:function(){X.forEach(ee)},add:ee,get:function(e){if(!e)return!1;var t=e.toLowerCase();return"undefined"!==typeof J[t]&&Q[J[t]]?Q[J[t]]:void 0}};var ne={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},re=ne.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};ne.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var ie={};ie.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ie.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ie.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},ie.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},ie.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},ie.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},ie.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},ie.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},ie.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ie.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},ie.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},ie.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},ie.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},ie.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},ie.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},ie.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},ie.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};const oe=function(e,t,n,s,l,c,d){var p={};return p.datum_type=void 0===e||"none"===e?a:4,t&&(p.datum_params=t.map(parseFloat),0===p.datum_params[0]&&0===p.datum_params[1]&&0===p.datum_params[2]||(p.datum_type=r),p.datum_params.length>3&&(0===p.datum_params[3]&&0===p.datum_params[4]&&0===p.datum_params[5]&&0===p.datum_params[6]||(p.datum_type=i,p.datum_params[3]*=u,p.datum_params[4]*=u,p.datum_params[5]*=u,p.datum_params[6]=p.datum_params[6]/1e6+1))),d&&(p.datum_type=o,p.grids=d),p.a=n,p.b=s,p.es=l,p.ep2=c,p};var ae={};function se(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ae[e]||null,isNull:!1}}function le(e){return e/3600*Math.PI/180}function ce(e,t,n){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,n)))}function ue(e){return e.map((function(e){return[le(e.longitudeShift),le(e.latitudeShift)]}))}function de(e,t,n){return{name:ce(e,t+8,t+16).trim(),parent:ce(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,n),upperLatitude:e.getFloat64(t+88,n),lowerLongitude:e.getFloat64(t+104,n),upperLongitude:e.getFloat64(t+120,n),latitudeInterval:e.getFloat64(t+136,n),longitudeInterval:e.getFloat64(t+152,n),gridNodeCount:e.getInt32(t+168,n)}}function pe(e,t,n,r){for(var i=t+176,o=[],a=0;a<n.gridNodeCount;a++){var s={latitudeShift:e.getFloat32(i+16*a,r),longitudeShift:e.getFloat32(i+16*a+4,r),latitudeAccuracy:e.getFloat32(i+16*a+8,r),longitudeAccuracy:e.getFloat32(i+16*a+12,r)};o.push(s)}return o}function he(e,t){if(!(this instanceof he))return new he(e);t=t||function(e){if(e)throw e};var n=V(e);if("object"===typeof n){var r=he.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var i=C(ie,n.datumCode);i&&(n.datum_params=n.datum_params||(i.towgs84?i.towgs84.split(","):null),n.ellps=i.ellipse,n.datumName=i.datumName?i.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(e,t,n,r,i){if(!e){var o=C(ne,r);o||(o=re),e=o.a,t=o.b,n=o.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<m)&&(i=!0,t=e),{a:e,b:t,rf:n,sphere:i}}(n.a,n.b,n.rf,n.ellps,n.sphere),a=function(e,t,n,r){var i=e*e,o=t*t,a=(i-o)/i,s=0;return r?(i=(e*=1-a*(p+a*(h+a*f)))*e,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(i-o)/o}}(o.a,o.b,o.rf,n.R_A),s=function(e){return void 0===e?null:e.split(",").map(se)}(n.nadgrids),l=n.datum||oe(n.datumCode,n.datum_params,o.a,o.b,a.es,a.ep2,s);q(this,n),q(this,r),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=l,this.init(),t(null,this)}else t(e)}else t(e)}he.projections=te,he.projections.start();const fe=he;function me(e,t,n){var r,i,o,a,s=e.x,l=e.y,c=e.z?e.z:0;if(l<-d&&l>-1.001*d)l=-d;else if(l>d&&l<1.001*d)l=d;else{if(l<-d)return{x:-1/0,y:-1/0,z:e.z};if(l>d)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((r=n/Math.sqrt(1-t*o))+c)*a*Math.cos(s),y:(r+c)*a*Math.sin(s),z:(r*(1-t)+c)*i}}function ge(e,t,n,r){var i,o,a,s,l,c,u,p,h,f,m,g,y,v,b,_=1e-12,w=e.x,x=e.y,k=e.z?e.z:0;if(i=Math.sqrt(w*w+x*x),o=Math.sqrt(w*w+x*x+k*k),i/n<_){if(v=0,o/n<_)return d,b=-r,{x:e.x,y:e.y,z:e.z}}else v=Math.atan2(x,w);a=k/o,p=(s=i/o)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*s*s)),h=a*l,y=0;do{y++,c=t*(u=n/Math.sqrt(1-t*h*h))/(u+(b=i*p+k*h-u*(1-t*h*h))),g=(m=a*(l=1/Math.sqrt(1-c*(2-c)*s*s)))*p-(f=s*(1-c)*l)*h,p=f,h=m}while(g*g>1e-24&&y<30);return{x:v,y:Math.atan(m/Math.abs(f)),z:b}}function ye(e){return e===r||e===i}function ve(e,t,n){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===r?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==i||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return n;if(e.datum_type===a||t.datum_type===a)return n;var u=e.a,d=e.es;if(e.datum_type===o){if(0!==be(e,!1,n))return;u=s,d=c}var p=t.a,h=t.b,f=t.es;if(t.datum_type===o&&(p=s,h=l,f=c),d===f&&u===p&&!ye(e.datum_type)&&!ye(t.datum_type))return n;if((n=me(n,d,u),ye(e.datum_type)&&(n=function(e,t,n){if(t===r)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6];return{x:d*(e.x-u*e.y+c*e.z)+o,y:d*(u*e.x+e.y-l*e.z)+a,z:d*(-c*e.x+l*e.y+e.z)+s}}}(n,e.datum_type,e.datum_params)),ye(t.datum_type)&&(n=function(e,t,n){if(t===r)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],p=(e.x-o)/d,h=(e.y-a)/d,f=(e.z-s)/d;return{x:p+u*h-c*f,y:-u*p+h+l*f,z:c*p-l*h+f}}}(n,t.datum_type,t.datum_params)),n=ge(n,f,p,h),t.datum_type===o)&&0!==be(t,!0,n))return;return n}function be(e,t,n){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[],a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=r;break}if(s.mandatory,null!==s.grid){var l=s.grid.subgrids[0],c=(Math.abs(l.del[1])+Math.abs(l.del[0]))/1e4,u=l.ll[0]-c,d=l.ll[1]-c,p=l.ll[0]+(l.lim[0]-1)*l.del[0]+c,h=l.ll[1]+(l.lim[1]-1)*l.del[1]+c;if(!(d>r.y||u>r.x||h<r.y||p<r.x)&&(i=_e(r,t,l),!isNaN(i.x)))break}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*y+" "+r.y*y+" tried: '"+o+"'"),-1):(n.x=-i.x,n.y=i.y,0)}function _e(e,t,n){var r={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return r;var i={x:e.x,y:e.y};i.x-=n.ll[0],i.y-=n.ll[1],i.x=G(i.x-Math.PI)+Math.PI;var o=we(i,n);if(t){if(isNaN(o.x))return r;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,l=9;do{if(s=we(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=G(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=e.x+o.x,r.y=e.y+o.y);return r}function we(e,t){var n,r={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),a=r.x-1*i,s=r.y-1*o,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(o<0||o>=t.lim[1])return l;n=o*t.lim[0]+i;var c=t.cvs[n][0],u=t.cvs[n][1];n++;var d=t.cvs[n][0],p=t.cvs[n][1];n+=t.lim[0];var h=t.cvs[n][0],f=t.cvs[n][1];n--;var m=t.cvs[n][0],g=t.cvs[n][1],y=a*s,v=a*(1-s),b=(1-a)*(1-s),_=(1-a)*s;return l.x=b*c+v*d+_*m+y*h,l.y=b*u+v*p+_*g+y*f,l}function xe(e,t,n){var r,i,o,a=n.x,s=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"n":c[i]=r;break;case"w":case"s":c[i]=-r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c}function ke(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function Ce(e){if("function"===typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof e||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Se(e,t,n,o){var a;if(Array.isArray(n)&&(n=ke(n)),function(e){Ce(e.x),Ce(e.y)}(n),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===r||e.datum.datum_type===i)&&"WGS84"!==t.datumCode||(t.datum.datum_type===r||t.datum.datum_type===i)&&"WGS84"!==e.datumCode}(e,t)&&(n=Se(e,a=new fe("WGS84"),n,o),e=a),o&&"enu"!==e.axis&&(n=xe(e,!1,n)),"longlat"===e.projName)n={x:n.x*g,y:n.y*g,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),!(n=e.inverse(n)))return;if(e.from_greenwich&&(n.x+=e.from_greenwich),n=ve(e.datum,t.datum,n))return t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*y,y:n.y*y,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),o&&"enu"!==t.axis?xe(t,!0,n):n}var Me=fe("WGS84");function Te(e,t,n,r){var i,o,a;return Array.isArray(n)?(i=Se(e,t,n,r)||{x:NaN,y:NaN},n.length>2?"undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(n.splice(3)):[i.x,i.y,n[2]].concat(n.splice(3)):[i.x,i.y].concat(n.splice(2)):[i.x,i.y]):(o=Se(e,t,n,r),2===(a=Object.keys(n)).length||a.forEach((function(r){if("undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function Ee(e){return e instanceof fe?e:e.oProj?e.oProj:fe(e)}const Pe=function(e,t,n){e=Ee(e);var r,i=!1;return"undefined"===typeof t?(t=e,e=Me,i=!0):("undefined"!==typeof t.x||Array.isArray(t))&&(n=t,t=e,e=Me,i=!0),t=Ee(t),n?Te(e,t,n):(r={forward:function(n,r){return Te(e,t,n,r)},inverse:function(n,r){return Te(t,e,n,r)}},i&&(r.oProj=t),r)};var Ie=6,Oe="AJSAJS",Le="AFAFAF",Re=65,je=73,De=79,Ae=86,Ne=90;const Fe={forward:ze,inverse:function(e){var t=Ve(He(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:Be};function ze(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,n){var r=Ze(n),i=Math.floor(e/1e5),o=Math.floor(t/1e5)%20;return function(e,t,n){var r=n-1,i=Oe.charCodeAt(r),o=Le.charCodeAt(r),a=i+e-1,s=o+t,l=!1;a>Ne&&(a=a-Ne+Re-1,l=!0);(a===je||i<je&&a>je||(a>je||i<je)&&l)&&a++;(a===De||i<De&&a>De||(a>De||i<De)&&l)&&++a===je&&a++;a>Ne&&(a=a-Ne+Re-1);s>Ae?(s=s-Ae+Re-1,l=!0):l=!1;(s===je||o<je&&s>je||(s>je||o<je)&&l)&&s++;(s===De||o<De&&s>De||(s>De||o<De)&&l)&&++s===je&&s++;s>Ae&&(s=s-Ae+Re-1);return String.fromCharCode(a)+String.fromCharCode(s)}(i,o,r)}(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+r.substr(r.length-5,t)}(function(e){var t,n,r,i,o,a,s,l,c=e.lat,u=e.lon,d=6378137,p=.00669438,h=.9996,f=Ue(c),m=Ue(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60);c>=56&&c<64&&u>=3&&u<12&&(l=32);c>=72&&c<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37));s=Ue(6*(l-1)-180+3),t=p/(1-p),n=d/Math.sqrt(1-p*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=t*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(m-s),a=d*((1-p/4-3*p*p/64-5*p*p*p/256)*f-(3*p/8+3*p*p/32+45*p*p*p/1024)*Math.sin(2*f)+(15*p*p/256+45*p*p*p/1024)*Math.sin(4*f)-35*p*p*p/3072*Math.sin(6*f));var g=h*n*(o+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*t)*o*o*o*o*o/120)+5e5,y=h*(a+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-330*t)*o*o*o*o*o*o/720));c<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(g),zoneNumber:l,zoneLetter:qe(c)}}({lat:e[1],lon:e[0]}),t)}function Be(e){var t=Ve(He(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Ue(e){return e*(Math.PI/180)}function $e(e){return e/Math.PI*180}function Ve(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,l,c,u,d,p,h,f=.9996,m=6378137,g=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,b=t;r<"N"&&(b-=1e7),d=6*(i-1)-180+3,o=.006739496752268451,h=(p=b/f/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*p)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*p)+151*y*y*y/96*Math.sin(6*p),a=m/Math.sqrt(1-g*Math.sin(h)*Math.sin(h)),s=Math.tan(h)*Math.tan(h),l=o*Math.cos(h)*Math.cos(h),c=.99330562*m/Math.pow(1-g*Math.sin(h)*Math.sin(h),1.5),u=v/(a*f);var _=h-a*Math.tan(h)/c*(u*u/2-(5+3*s+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*u*u*u*u*u*u/720);_=$e(_);var w,x=(u-(1+2*s+l)*u*u*u/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*u*u*u*u*u/120)/Math.cos(h);if(x=d+$e(x),e.accuracy){var k=Ve({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});w={top:k.lat,right:k.lon,bottom:_,left:x}}else w={lat:_,lon:x};return w}function qe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Ze(e){var t=e%Ie;return 0===t&&(t=Ie),t}function He(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(o,o+=2);for(var l=Ze(a),c=function(e,t){var n=Oe.charCodeAt(t-1),r=1e5,i=!1;for(;n!==e.charCodeAt(0);){if(++n===je&&n++,n===De&&n++,n>Ne){if(i)throw"Bad character: "+e;n=Re,i=!0}r+=1e5}return r}(r.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n=Le.charCodeAt(t-1),r=0,i=!1;for(;n!==e.charCodeAt(0);){if(++n===je&&n++,n===De&&n++,n>Ae){if(i)throw"Bad character: "+e;n=Re,i=!0}r+=1e5}return r}(r.charAt(1),l);u<Ge(s);)u+=2e6;var d=n-o;if(d%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var p,h,f,m=d/2,g=0,y=0;return m>0&&(p=1e5/Math.pow(10,m),h=e.substring(o,o+m),g=parseFloat(h)*p,f=e.substring(o+m),y=parseFloat(f)*p),{easting:g+c,northing:y+u,zoneLetter:s,zoneNumber:a,accuracy:p}}function Ge(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function We(e,t,n){if(!(this instanceof We))return new We(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"===typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"===typeof e&&"undefined"===typeof t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}We.fromMGRS=function(e){return new We(Be(e))},We.prototype.toMGRS=function(e){return ze([this.x,this.y],e)};const Ye=We;var Ke=1,Xe=.25,Je=.046875,Qe=.01953125,et=.01068115234375,tt=.75,nt=.46875,rt=.013020833333333334,it=.007120768229166667,ot=.3645833333333333,at=.005696614583333333,st=.3076171875;function lt(e){var t=[];t[0]=Ke-e*(Xe+e*(Je+e*(Qe+e*et))),t[1]=e*(tt-e*(Je+e*(Qe+e*et)));var n=e*e;return t[2]=n*(nt-e*(rt+e*it)),n*=e,t[3]=n*(ot-e*at),t[4]=n*e*st,t}function ct(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))}var ut=20;function dt(e,t,n){for(var r=1/(1-t),i=e,o=ut;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(ct(i,a,Math.cos(i),n)-e)*(s*Math.sqrt(s))*r,Math.abs(s)<m)return i}return i}const pt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=lt(this.es),this.ml0=ct(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,i=e.x,o=e.y,a=G(i-this.long0),s=Math.sin(o),l=Math.cos(o);if(this.es){var c=l*a,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),p=Math.pow(d,2),h=Math.abs(l)>m?Math.tan(o):0,f=Math.pow(h,2),g=Math.pow(f,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var y=ct(o,s,l,this.en);n=this.a*(this.k0*c*(1+u/6*(1-f+d+u/20*(5-18*f+g+14*d-58*f*d+u/42*(61+179*g-g*f-479*f)))))+this.x0,r=this.a*(this.k0*(y-this.ml0+s*a*c/2*(1+u/12*(5-f+9*d+4*p+u/30*(61+g-58*f+270*d-330*f*d+u/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var v=l*Math.sin(a);if(Math.abs(Math.abs(v)-1)<m)return 93;if(n=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,r=l*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(r))>=1){if(v-1>m)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(n=dt(t=this.ml0+a/this.k0,this.es,this.en),Math.abs(n)<d){var s=Math.sin(n),l=Math.cos(n),c=Math.abs(l)>m?Math.tan(n):0,u=this.ep2*Math.pow(l,2),p=Math.pow(u,2),h=Math.pow(c,2),f=Math.pow(h,2);t=1-this.es*Math.pow(s,2);var g=o*Math.sqrt(t)/this.k0,y=Math.pow(g,2);r=n-(t*=c)*y/(1-this.es)*.5*(1-y/12*(5+3*h-9*u*h+u-4*p-y/30*(61+90*h-252*u*h+45*f+46*u-y/56*(1385+3633*h+4095*f+1574*f*h)))),i=G(this.long0+g*(1-y/6*(1+2*h+u-y/20*(5+28*h+24*f+8*u*h+6*u-y/42*(61+662*h+1320*f+720*f*h))))/l)}else r=d*H(a),i=0;else{var v=Math.exp(o/this.k0),b=.5*(v-1/v),_=this.lat0+a/this.k0,w=Math.cos(_);t=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(b,2))),r=Math.asin(t),a<0&&(r=-r),i=0===b&&0===w?0:G(Math.atan2(b,w)+this.long0)}return e.x=i,e.y=r,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function ht(e){var t=Math.exp(e);return t=(t-1/t)/2}function ft(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function mt(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(ft(1,t)+1))),e<0?-t:t}function gt(e,t){for(var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return t+n*Math.sin(2*t)}function yt(e,t,n){for(var r,i,o=Math.sin(t),a=Math.cos(t),s=ht(n),l=function(e){var t=Math.exp(e);return(t+1/t)/2}(n),c=2*a*l,u=-2*o*s,d=e.length-1,p=e[d],h=0,f=0,m=0;--d>=0;)r=f,i=h,p=c*(f=p)-r-u*(h=m)+e[d],m=u*f-i+c*h;return[(c=o*l)*p-(u=a*s)*m,c*m+u*p]}const vt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(pt.init.apply(this),this.forward=pt.forward,this.inverse=pt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=gt(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=G(e.x-this.long0),n=e.y;n=gt(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),a=Math.cos(t);n=Math.atan2(r,a*i),t=Math.atan2(o*i,ft(r,i*a)),t=mt(Math.tan(t));var s,l,c=yt(this.gtu,2*n,2*t);return n+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=yt(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(ht(r));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(r),c=Math.cos(r);i=Math.atan2(a*c,ft(l,c*s)),t=G((r=Math.atan2(l,c*s))+this.long0),n=gt(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]};const bt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(G(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*g,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,vt.init.apply(this),this.forward=vt.forward,this.inverse=vt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function _t(e,t){return Math.pow((1-e)/(1+e),t)}const wt={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+v)/(Math.pow(Math.tan(.5*this.lat0+v),this.C)*_t(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+v),this.C)*_t(this.e*Math.sin(n),this.ratexp))-d,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+v)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*_t(this.e*Math.sin(e.y),-.5*this.e))-d,!(Math.abs(n-e.y)<1e-14));--i)e.y=n;return i?(e.x=t,e.y=n,e):null},names:["gauss"]};const xt={init:function(){wt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,i;return e.x=G(e.x-this.long0),wt.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),n=Math.cos(a),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,wt.inverse.apply(this,[e]),e.x=G(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const kt={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=m&&(this.k0=.5*(1+H(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=m&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=m&&(this.k0=.5*this.cons*Z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/W(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Z(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-d,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,i,o,a,s=e.x,l=e.y,c=Math.sin(l),u=Math.cos(l),p=G(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=m&&Math.abs(l+this.lat0)<=m?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(p)),e.x=this.a*t*u*Math.sin(p)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*u*Math.cos(p))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-d,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=m?(o=W(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(s-this.long0),e.y=this.y0-this.con*a*Math.cos(s-this.long0),e):(Math.abs(this.sinlat0)<m?(t=2*this.a*this.k0/(1+i*Math.cos(p)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*i*Math.cos(p))),e.y=t*(this.cosX0*r-this.sinX0*i*Math.cos(p))+this.y0),e.x=t*i*Math.sin(p)+this.x0,e))},inverse:function(e){var t,n,r,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var s=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,n=this.lat0,a<=m?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(s)*this.sinlat0+e.y*Math.sin(s)*this.coslat0/a),t=Math.abs(this.coslat0)<m?this.lat0>0?G(this.long0+Math.atan2(e.x,-1*e.y)):G(this.long0+Math.atan2(e.x,e.y)):G(this.long0+Math.atan2(e.x*Math.sin(s),a*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=m){if(a<=m)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*Y(this.e,r),t=this.con*G(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=m?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=G(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*Y(this.e,Math.tan(.5*(d+o)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(d+e))*Math.pow((1-t)/(1+t),.5*n)}};const Ct={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),a=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=o,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e},names:["somerc"]};var St=1e-7;const Mt={init:function(){var e,t,n,r,i,o,a,s,l,c,u,p=0,h=0,f=0,y=0,_=0,w=0,x=0;this.no_off=function(e){var t="object"===typeof e.PROJECTION?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(t)}(this),this.no_rot="no_rot"in this;var k=!1;"alpha"in this&&(k=!0);var C=!1;if("rectified_grid_angle"in this&&(C=!0),k&&(x=this.alpha),C&&(p=this.rectified_grid_angle*g),k||C)h=this.longc;else if(f=this.long1,_=this.lat1,y=this.long2,w=this.lat2,Math.abs(_-w)<=St||(e=Math.abs(_))<=St||Math.abs(e-d)<=St||Math.abs(Math.abs(this.lat0)-d)<=St||Math.abs(Math.abs(w)-d)<=St)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>m?(s=Math.sin(this.lat0),n=Math.cos(this.lat0),e=1-this.es*s*s,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*t/e,(i=(r=this.B*t/(n*Math.sqrt(e)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(W(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),k||C?(k?(u=Math.asin(Math.sin(x)/r),C||(p=x)):(u=p,x=Math.asin(r*Math.sin(u))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(o=Math.pow(W(this.e,_,Math.sin(_)),this.B),a=Math.pow(W(this.e,w,Math.sin(w)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=f-y)<-Math.pi?y-=b:e>Math.pi&&(y+=b),this.lam0=G(.5*(f+y)-Math.atan(c*Math.tan(.5*this.B*(f-y))/l)/this.B),u=Math.atan(2*Math.sin(this.B*G(f-this.lam0))/(i-1/i)),p=x=Math.asin(r*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(p),this.cosrot=Math.cos(p),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(x))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(v-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(v+i))},forward:function(e){var t,n,r,i,o,a,s,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-d)>m){if(t=.5*((o=this.E/Math.pow(W(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),n=.5*(o+a),i=Math.sin(this.B*e.x),r=(t*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)<m)throw new Error;l=.5*this.ArB*Math.log((1-r)/(1+r)),a=Math.cos(this.B*e.x),s=Math.abs(a)<St?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,a)}else l=e.y>0?this.v_pole_n:this.v_pole_s,s=this.ArB*e.y;return this.no_rot?(c.x=s,c.y=l):(s-=this.u_0,c.x=l*this.cosrot+s*this.sinrot,c.y=s*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,n,r,i,o,a,s,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,t=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),s=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(s)-1)<m)l.x=0,l.y=s<0?-d:d;else{if(l.y=this.E/Math.sqrt((1+s)/(1-s)),l.y=Y(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-a*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};const Tt={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<m)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=Z(this.e,t,n),i=W(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),s=Z(this.e,o,a),l=W(this.e,this.lat2,o),c=W(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>m?this.ns=Math.log(r/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=m&&(n=H(n)*(d-2*m));var r,i,o=Math.abs(Math.abs(n)-d);if(o>m)r=W(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var a=this.ns*G(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,i,o,a=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+s*s),n=1):(t=-Math.sqrt(a*a+s*s),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*s)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(i=Y(this.e,r)))return null}else i=-d;return o=G(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const Et={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y,u=G(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,i,o,a,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,a=t,s=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,c+=1}while(0===s&&c<15);return c>=15?null:e},names:["Krovak","krovak"]};function Pt(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function It(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Ot(e){return.375*e*(1+.25*e*(1+.46875*e))}function Lt(e){return.05859375*e*e*(1+.75*e)}function Rt(e){return e*e*e*(35/3072)}function jt(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)}function Dt(e){return Math.abs(e)<d?e:e-H(e)*Math.PI}function At(e,t,n,r,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-n*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*n*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN}const Nt={init:function(){this.sphere||(this.e0=It(this.es),this.e1=Ot(this.es),this.e2=Lt(this.es),this.e3=Rt(this.es),this.ml0=this.a*Pt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,n,r=e.x,i=e.y;if(r=G(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=jt(this.a,this.e,o),l=Math.tan(i)*Math.tan(i),c=r*Math.cos(i),u=c*c,d=this.es*a*a/(1-this.es);t=s*c*(1-u*l*(1/6-(8-l+8*d)*u/120)),n=this.a*Pt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*u*(.5+(5-l+6*d)*u/24)}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(r)),n=Math.atan2(Math.tan(r),Math.cos(o))}else{var a=At(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-d)<=m)return e.x=this.long0,e.y=d,i<0&&(e.y*=-1),e;var s=jt(this.a,this.e,Math.sin(a)),l=s*s*s/this.a/this.a*(1-this.es),c=Math.pow(Math.tan(a),2),u=r*this.a/s,p=u*u;t=a-s*Math.tan(a)/l*u*u*(.5-(1+3*c)*u*u/24),n=u*(1-p*(c/3+(1+3*c)*c*p/15))/Math.cos(a)}return e.x=G(n+this.long0),e.y=Dt(t),e},names:["Cassini","Cassini_Soldner","cass"]};function Ft(e,t){var n;return e>1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t}var zt=.3333333333333333,Bt=.17222222222222222,Ut=.10257936507936508,$t=.06388888888888888,Vt=.0664021164021164,qt=.016415012942191543;const Zt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-d)<m?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<m?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Ft(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=e*zt,t=e*e,n[0]+=t*Bt,n[1]=t*$t,t*=e,n[0]+=t*Ut,n[1]+=t*Vt,n[2]=t*qt,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Ft(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,i,o,a,s,l,c,u,p=e.x,h=e.y;if(p=G(p-this.long0),this.sphere){if(o=Math.sin(h),u=Math.cos(h),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+u*r:1+this.sinph0*o+this.cosph0*u*r)<=m)return null;t=(n=Math.sqrt(2/n))*u*Math.sin(p),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.lat0)<m)return null;n=v-.5*h,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=r}}else{switch(s=0,l=0,c=0,r=Math.cos(p),i=Math.sin(p),o=Math.sin(h),a=Ft(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(s=a/this.qp,l=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:c=1+this.sinb1*s+this.cosb1*l*r;break;case this.EQUIT:c=1+l*r;break;case this.N_POLE:c=d+h,a=this.qp-a;break;case this.S_POLE:c=h-d,a=this.qp+a}if(Math.abs(c)<m)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),n=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*s-this.sinb1*l*r):(c=Math.sqrt(2/(1+l*r)))*s*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,n=r*(this.mode===this.S_POLE?c:-c)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,a,s,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var u,p=0,h=0;if((n=.5*(u=Math.sqrt(l*l+c*c)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(h=Math.sin(n),p=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=m?0:Math.asin(c*h/u),l*=h,c=p*u;break;case this.OBLIQ:n=Math.abs(u)<=m?this.lat0:Math.asin(p*this.sinph0+c*h*this.cosph0/u),l*=h*this.cosph0,c=(p-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:c=-c,n=d-n;break;case this.S_POLE:n-=d}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(s=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(a=Math.sqrt(l*l+c*c))<m)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),r=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(s=r*this.sinb1+c*i*this.cosb1/a,o=this.qp*s,c=a*this.cosb1*r-c*this.sinb1*i):(s=c*i/a,o=this.qp*s,c=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;s=1-o/this.qp,this.mode===this.S_POLE&&(s=-s)}t=Math.atan2(l,c),n=function(e,t){var n=e+e;return e+t[0]*Math.sin(n)+t[1]*Math.sin(n+n)+t[2]*Math.sin(n+n+n)}(Math.asin(s),this.apa)}return e.x=G(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Ht(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}const Gt={init:function(){Math.abs(this.lat1+this.lat2)<m||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Z(this.e3,this.sin_po,this.cos_po),this.qs1=Ft(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Z(this.e3,this.sin_po,this.cos_po),this.qs2=Ft(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ft(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>m?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Ft(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*G(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,a=this.phi1z(this.e3,n)),o=G(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,i,o,a=Ht(.5*t);if(e<m)return a;for(var s=e*e,l=1;l<=25;l++)if(a+=o=.5*(i=1-(r=e*(n=Math.sin(a)))*r)*i/Math.cos(a)*(t/(1-s)-n/i+.5/e*Math.log((1-r)/(1+r))),Math.abs(o)<=1e-7)return a;return null}};const Wt={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y;return r=G(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),1,(o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=m?(a=this.x0+1*this.a*n*Math.sin(r)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)/o):(a=this.x0+this.infinity_dist*n*Math.sin(r),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),a=Ht((r=Math.cos(i))*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=G(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]};const Yt={init:function(){this.sphere||(this.k0=Z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,i=e.y,o=G(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Ft(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=G(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*d:d;for(var r,i,o,a,s=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(s),o=Math.cos(s),a=e*i,s+=r=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return s;return NaN}(this.e,2*e.y*this.k0/this.a),t=G(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};const Kt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=G(t-this.long0),i=Dt(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,n=e.y;return e.x=G(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Dt(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const Xt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ot(this.es),this.e2=Lt(this.es),this.e3=Rt(this.es),this.ml0=this.a*Pt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,i=e.x,o=e.y,a=G(i-this.long0);if(r=a*Math.sin(o),this.sphere)Math.abs(o)<=m?(t=this.a*a,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(Dt(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=m)t=this.a*a,n=-1*this.ml0;else{var s=jt(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(r),n=this.a*Pt(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,i,o,a,s,l,c;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=m)t=G(r/this.a+this.long0),n=0;else{var u;for(a=this.lat0+i/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(l+=c=-1*(a*(l*(u=Math.tan(l))+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),Math.abs(c)<=m){n=l;break}t=G(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=m)n=0,t=G(this.long0+r/this.a);else{var d,p,h,f,g;for(a=(this.ml0+i)/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(g=this.e*Math.sin(l),d=Math.sqrt(1-g*g)*Math.tan(l),p=this.a*Pt(this.e0,this.e1,this.e2,this.e3,l),h=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(d*(f=p/this.a)+1)-f-.5*d*(f*f+s))/(this.es*Math.sin(2*l)*(f*f+s-2*a*f)/(4*d)+(a-f)*(d*h-2/Math.sin(2*l))-h),Math.abs(c)<=m){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=G(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};const Jt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,r=e.y-this.lat0,i=n-this.long0,o=r/u*1e-5,a=i,s=1,l=0;for(t=1;t<=10;t++)s*=o,l+=this.A[t]*s;var c,d=l,p=a,h=1,f=0,m=0,g=0;for(t=1;t<=6;t++)c=f*d+h*p,h=h*d-f*p,f=c,m=m+this.B_re[t]*h-this.B_im[t]*f,g=g+this.B_im[t]*h+this.B_re[t]*f;return e.x=g*this.a+this.x0,e.y=m*this.a+this.y0,e},inverse:function(e){var t,n,r=e.x,i=e.y,o=r-this.x0,a=(i-this.y0)/this.a,s=o/this.a,l=1,c=0,d=0,p=0;for(t=1;t<=6;t++)n=c*a+l*s,l=l*a-c*s,c=n,d=d+this.C_re[t]*l-this.C_im[t]*c,p=p+this.C_im[t]*l+this.C_re[t]*c;for(var h=0;h<this.iterations;h++){var f,m=d,g=p,y=a,v=s;for(t=2;t<=6;t++)f=g*d+m*p,m=m*d-g*p,g=f,y+=(t-1)*(this.B_re[t]*m-this.B_im[t]*g),v+=(t-1)*(this.B_im[t]*m+this.B_re[t]*g);m=1,g=0;var b=this.B_re[1],_=this.B_im[1];for(t=2;t<=6;t++)f=g*d+m*p,m=m*d-g*p,g=f,b+=t*(this.B_re[t]*m-this.B_im[t]*g),_+=t*(this.B_im[t]*m+this.B_re[t]*g);var w=b*b+_*_;d=(y*b+v*_)/w,p=(v*b-y*_)/w}var x=d,k=p,C=1,S=0;for(t=1;t<=9;t++)C*=x,S+=this.D[t]*C;var M=this.lat0+S*u*1e5,T=this.long0+k;return e.x=T,e.y=M,e},names:["New_Zealand_Map_Grid","nzmg"]};const Qt={init:function(){},forward:function(e){var t=e.x,n=e.y,r=G(t-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=G(this.long0+e.x/this.a),n=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=n,e},names:["Miller_Cylindrical","mill"]};const en={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=lt(this.es)},forward:function(e){var t,n,r=e.x,i=e.y;if(r=G(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<m)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*r*(this.m+Math.cos(i)),n=this.a*this.C_y*i}else{var l=Math.sin(i),c=Math.cos(i);n=this.a*ct(i,l,c,this.en),t=this.a*r*c/Math.sqrt(1-this.es*l*l)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=Ht((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Ht(Math.sin(t)/this.n)),n=G(n+this.long0),t=Dt(t)):(t=dt(e.y/this.a,this.es,this.en),(r=Math.abs(t))<d?(r=Math.sin(t),n=G(this.long0+e.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(t)))):r-m<d&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]};const tn={init:function(){},forward:function(e){for(var t=e.x,n=e.y,r=G(t-this.long0),i=n,o=Math.PI*Math.sin(n);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<m)break}i/=2,Math.PI/2-Math.abs(n)<m&&(r=0);var s=.900316316158*this.a*r*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=l,e},inverse:function(e){var t,n;e.x-=this.x0,e.y-=this.y0,n=e.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),t=Math.asin(n);var r=G(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e},names:["Mollweide","moll"]};const nn={init:function(){Math.abs(this.lat1+this.lat2)<m||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ot(this.es),this.e2=Lt(this.es),this.e3=Rt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Z(this.e,this.sinphi,this.cosphi),this.ml1=Pt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<m?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Z(this.e,this.sinphi,this.cosphi),this.ml2=Pt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Pt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var i=Pt(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-i)}var o=this.ns*G(n-this.long0),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=G(this.long0+o/this.ns),r=Dt(this.g-n/this.a),e.x=i,e.y=r,e):(r=At(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=G(this.long0+o/this.ns),e.x=i,e.y=r,e)},names:["Equidistant_Conic","eqdc"]};const rn={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,i=e.y,o=G(r-this.long0);Math.abs(i)<=m&&(t=this.x0+this.R*o,n=this.y0);var a=Ht(2*Math.abs(i/Math.PI));(Math.abs(o)<=m||Math.abs(Math.abs(i)-d)<=m)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var s=.5*Math.abs(Math.PI/o-o/Math.PI),l=s*s,c=Math.sin(a),u=Math.cos(a),p=u/(c+u-1),h=p*p,f=p*(2/c-1),g=f*f,y=Math.PI*this.R*(s*(p-g)+Math.sqrt(l*(p-g)*(p-g)-(g+l)*(h-g)))/(g+l);o<0&&(y=-y),t=this.x0+y;var v=l+p;return y=Math.PI*this.R*(f*v-s*Math.sqrt((g+l)*(l+1)-v*v))/(g+l),n=i>=0?this.y0+y:this.y0-y,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,d,p;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,o=(r=e.x/d)*r+(i=e.y/d)*i,d=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+r*r)*s*s/l/l/l-9*a*s/l/l)/27)/(c=(a-s*s/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,n=e.y>=0?(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(r)<m?this.long0:G(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};const on={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,a,s,l,c,u,p,h,f,g,y,v,b,_,w,x,k,C,S=e.x,M=e.y,T=Math.sin(e.y),E=Math.cos(e.y),P=G(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=m?(e.x=this.x0+this.a*(d-M)*Math.sin(P),e.y=this.y0-this.a*(d-M)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=m?(e.x=this.x0+this.a*(d+M)*Math.sin(P),e.y=this.y0+this.a*(d+M)*Math.cos(P),e):(_=this.sin_p12*T+this.cos_p12*E*Math.cos(P),b=(v=Math.acos(_))?v/Math.sin(v):1,e.x=this.x0+this.a*b*E*Math.sin(P),e.y=this.y0+this.a*b*(this.cos_p12*T-this.sin_p12*E*Math.cos(P)),e):(t=It(this.es),n=Ot(this.es),r=Lt(this.es),i=Rt(this.es),Math.abs(this.sin_p12-1)<=m?(o=this.a*Pt(t,n,r,i,d),a=this.a*Pt(t,n,r,i,M),e.x=this.x0+(o-a)*Math.sin(P),e.y=this.y0-(o-a)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=m?(o=this.a*Pt(t,n,r,i,d),a=this.a*Pt(t,n,r,i,M),e.x=this.x0+(o+a)*Math.sin(P),e.y=this.y0+(o+a)*Math.cos(P),e):(s=T/E,l=jt(this.a,this.e,this.sin_p12),c=jt(this.a,this.e,T),u=Math.atan((1-this.es)*s+this.es*l*this.sin_p12/(c*E)),w=0===(p=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(u)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.abs(Math.abs(p)-Math.PI)<=m?-Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.asin(Math.sin(P)*Math.cos(u)/Math.sin(p)),h=this.e*this.sin_p12/Math.sqrt(1-this.es),v=l*w*(1-(x=w*w)*(y=(f=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*f)*(1-y)/6+(k=x*w)/8*(g=h*f)*(1-2*y)+(C=k*w)/120*(y*(4-7*y)-3*h*h*(1-7*y))-C*w/48*g),e.x=this.x0+v*Math.sin(p),e.y=this.y0+v*Math.cos(p),e))},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,p,h,f,g,y,v,b,_,w,x,k,C,S;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*d*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=m?a=this.lat0:(a=Ht(i*this.sin_p12+e.y*r*this.cos_p12/t),s=Math.abs(this.lat0)-d,o=Math.abs(s)<=m?this.lat0>=0?G(this.long0+Math.atan2(e.x,-e.y)):G(this.long0-Math.atan2(-e.x,e.y)):G(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=a,e}return l=It(this.es),c=Ot(this.es),u=Lt(this.es),p=Rt(this.es),Math.abs(this.sin_p12-1)<=m?(a=At(((h=this.a*Pt(l,c,u,p,d))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,l,c,u,p),o=G(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=m?(h=this.a*Pt(l,c,u,p,d),a=At(((t=Math.sqrt(e.x*e.x+e.y*e.y))-h)/this.a,l,c,u,p),o=G(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),y=Math.atan2(e.x,e.y),f=jt(this.a,this.e,this.sin_p12),v=Math.cos(y),_=-(b=this.e*this.cos_p12*v)*b/(1-this.es),w=3*this.es*(1-_)*this.sin_p12*this.cos_p12*v/(1-this.es),C=1-_*(k=(x=t/f)-_*(1+_)*Math.pow(x,3)/6-w*(1+3*_)*Math.pow(x,4)/24)*k/2-x*k*k*k/6,g=Math.asin(this.sin_p12*Math.cos(k)+this.cos_p12*Math.sin(k)*v),o=G(this.long0+Math.asin(Math.sin(y)*Math.sin(k)/Math.cos(g))),S=Math.sin(g),a=Math.atan2((S-this.es*C*this.sin_p12)*Math.tan(g),S*(1-this.es)),e.x=o,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};const an={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y;return r=G(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),1,((o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=m)&&(a=1*this.a*n*Math.sin(r),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a,s;return e.x-=this.x0,e.y-=this.y0,n=Ht((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math.sin(n),i=Math.cos(n),a=this.long0,Math.abs(t)<=m?(s=this.lat0,e.x=a,e.y=s,e):(s=Ht(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-d,Math.abs(o)<=m?(a=this.lat0>=0?G(this.long0+Math.atan2(e.x,-e.y)):G(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=s,e):(a=G(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=a,e.y=s,e))},names:["ortho"]};var sn=1,ln=2,cn=3,un=4,dn=5,pn=6,hn={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function fn(e,t,n,r){var i;return e<m?(r.value=hn.AREA_0,i=0):(i=Math.atan2(t,n),Math.abs(i)<=v?r.value=hn.AREA_0:i>v&&i<=d+v?(r.value=hn.AREA_1,i-=d):i>d+v||i<=-(d+v)?(r.value=hn.AREA_2,i=i>=0?i-_:i+_):(r.value=hn.AREA_3,i+=d)),i}function mn(e,t){var n=e+t;return n<-_?n+=b:n>+_&&(n-=b),n}const gn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=d-v/2?this.face=dn:this.lat0<=-(d-v/2)?this.face=pn:Math.abs(this.long0)<=v?this.face=sn:Math.abs(this.long0)<=d+v?this.face=this.long0>0?ln:un:this.face=cn,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,i,o,a,s={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===dn)i=d-t,n>=v&&n<=d+v?(l.value=hn.AREA_0,r=n-d):n>d+v||n<=-(d+v)?(l.value=hn.AREA_1,r=n>0?n-_:n+_):n>-(d+v)&&n<=-v?(l.value=hn.AREA_2,r=n+d):(l.value=hn.AREA_3,r=n);else if(this.face===pn)i=d+t,n>=v&&n<=d+v?(l.value=hn.AREA_0,r=-n+d):n<v&&n>=-v?(l.value=hn.AREA_1,r=-n):n<-v&&n>=-(d+v)?(l.value=hn.AREA_2,r=-n-d):(l.value=hn.AREA_3,r=n>0?-n+_:-n-_);else{var c,u,p,h,f,m;this.face===ln?n=mn(n,+d):this.face===cn?n=mn(n,+_):this.face===un&&(n=mn(n,-d)),h=Math.sin(t),f=Math.cos(t),m=Math.sin(n),c=f*Math.cos(n),u=f*m,p=h,this.face===sn?r=fn(i=Math.acos(c),p,u,l):this.face===ln?r=fn(i=Math.acos(u),p,-c,l):this.face===cn?r=fn(i=Math.acos(-c),p,-u,l):this.face===un?r=fn(i=Math.acos(-u),p,c,l):(i=r=0,l.value=hn.AREA_0)}return a=Math.atan(12/_*(r+Math.acos(Math.sin(r)*Math.cos(v))-d)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),l.value===hn.AREA_1?a+=d:l.value===hn.AREA_2?a+=_:l.value===hn.AREA_3&&(a+=1.5*_),s.x=o*Math.cos(a),s.y=o*Math.sin(a),s.x=s.x*this.a+this.x0,s.y=s.y*this.a+this.y0,e.x=s.x,e.y=s.y,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,p,h,f={lam:0,phi:0},m={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?m.value=hn.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(m.value=hn.AREA_1,t-=d):e.x<0&&-e.x>=Math.abs(e.y)?(m.value=hn.AREA_2,t=t<0?t+_:t-_):(m.value=hn.AREA_3,t+=d),c=_/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(s=1-(r=Math.cos(t))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?s=-1:s>1&&(s=1),this.face===dn)l=Math.acos(s),f.phi=d-l,m.value===hn.AREA_0?f.lam=a+d:m.value===hn.AREA_1?f.lam=a<0?a+_:a-_:m.value===hn.AREA_2?f.lam=a-d:f.lam=a;else if(this.face===pn)l=Math.acos(s),f.phi=l-d,m.value===hn.AREA_0?f.lam=-a+d:m.value===hn.AREA_1?f.lam=-a:m.value===hn.AREA_2?f.lam=-a-d:f.lam=a<0?-a-_:-a+_;else{var g,y,v;c=(g=s)*g,y=(c+=(v=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*v)>=1?0:Math.sqrt(1-c),m.value===hn.AREA_1?(c=y,y=-v,v=c):m.value===hn.AREA_2?(y=-y,v=-v):m.value===hn.AREA_3&&(c=y,y=v,v=-c),this.face===ln?(c=g,g=-y,y=c):this.face===cn?(g=-g,y=-y):this.face===un&&(c=g,g=y,y=-c),f.phi=Math.acos(-v)-d,f.lam=Math.atan2(y,g),this.face===ln?f.lam=mn(f.lam,-d):this.face===cn?f.lam=mn(f.lam,-_):this.face===un&&(f.lam=mn(f.lam,+d))}return 0!==this.es&&(u=f.phi<0?1:0,p=Math.tan(f.phi),h=this.b/Math.sqrt(p*p+this.one_minus_f_squared),f.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),u&&(f.phi=-f.phi)),f.lam+=this.long0,e.x=f.lam,e.y=f.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var yn=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],vn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],bn=.8487,_n=1.3523,wn=y/5,xn=1/wn,kn=18,Cn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const Sn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=G(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*wn);r<0?r=0:r>=kn&&(r=17);var i={x:Cn(yn[r],n=y*(n-xn*r))*t,y:Cn(vn[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*bn+this.x0,i.y=i.y*this.a*_n+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*bn),y:Math.abs(e.y-this.y0)/(this.a*_n)};if(t.y>=1)t.x/=yn[18][0],t.y=e.y<0?-d:d;else{var n=Math.floor(t.y*kn);for(n<0?n=0:n>=kn&&(n=17);;)if(vn[n][0]>t.y)--n;else{if(!(vn[n+1][0]<=t.y))break;++n}var r=vn[n],i=5*(t.y-r[0])/(vn[n+1][0]-r[0]);i=function(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)<n)break}return i}((function(e){return(Cn(r,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(r,e)}),i,m,100),t.x/=Cn(yn[n],i),t.y=(5*n+i)*g,e.y<0&&(t.y=-t.y)}return t.x=G(t.x+this.long0),t},names:["Robinson","robin"]};const Mn={init:function(){this.name="geocent"},forward:function(e){return me(e,this.es,this.a)},inverse:function(e){return ge(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var Tn=0,En=1,Pn=2,In=3,On={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const Ln={init:function(){if(Object.keys(On).forEach(function(e){if("undefined"===typeof this[e])this[e]=On[e].def;else{if(On[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);On[e].num&&(this[e]=parseFloat(this[e]))}On[e].degrees&&(this[e]=this[e]*g)}.bind(this)),Math.abs(Math.abs(this.lat0)-d)<m?this.mode=this.lat0<0?En:Tn:Math.abs(this.lat0)<m?this.mode=Pn:(this.mode=In,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,n,r,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case In:n=this.sinph0*o+this.cosph0*a*s;break;case Pn:n=a*s;break;case En:n=-o;break;case Tn:n=o}switch(t=(n=this.pn1/(this.p-n))*a*Math.sin(e.x),this.mode){case In:n*=this.cosph0*o-this.sinph0*a*s;break;case Pn:n*=o;break;case Tn:n*=-a*s;break;case En:n*=a*s}return i=1/((r=n*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-n*this.sg)*this.cw*i,n=r*i,e.x=t*this.a,e.y=n*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,n,r,i={x:e.x,y:e.y};r=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*r,n=this.pn1*e.y*this.cw*r,e.x=t*this.cg+n*this.sg,e.y=n*this.cg-t*this.sg;var o=ft(e.x,e.y);if(Math.abs(o)<m)i.x=0,i.y=e.y;else{var a,s;switch(s=1-o*o*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-s*s),this.mode){case In:i.y=Math.asin(a*this.sinph0+e.y*s*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=s*this.cosph0;break;case Pn:i.y=Math.asin(e.y*s/o),e.y=a*o,e.x*=s;break;case Tn:i.y=Math.asin(a),e.y=-e.y;break;case En:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]};const Rn={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,n,r,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/ft(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),r=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/ft(r,t)))}else"sphere"===this.shape&&(t=Math.cos(a),n=Math.cos(o)*t,r=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/ft(r,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,n,r,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*ft(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*ft(1,a));var l=s/this.radius_p;if(t=a*a+l*l+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};Pe.defaultDatum="WGS84",Pe.Proj=fe,Pe.WGS84=new Pe.Proj("WGS84"),Pe.Point=Ye,Pe.toPoint=ke,Pe.defs=B,Pe.nadgrid=function(e,t){var n=new DataView(t),r=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;t=e.getInt32(8,!0),11!==t&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:ce(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(n,r);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o=function(e,t,n){for(var r=176,i=[],o=0;o<t.nSubgrids;o++){var a=de(e,r,n),s=pe(e,r,a,n),l=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),c=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);i.push({ll:[le(a.lowerLongitude),le(a.lowerLatitude)],del:[le(a.longitudeInterval),le(a.latitudeInterval)],lim:[l,c],count:a.gridNodeCount,cvs:ue(s)})}return i}(n,i,r),a={header:i,subgrids:o};return ae[e]=a,a},Pe.transform=Se,Pe.mgrs=Fe,Pe.version="__VERSION__",function(e){e.Proj.projections.add(pt),e.Proj.projections.add(vt),e.Proj.projections.add(bt),e.Proj.projections.add(xt),e.Proj.projections.add(kt),e.Proj.projections.add(Ct),e.Proj.projections.add(Mt),e.Proj.projections.add(Tt),e.Proj.projections.add(Et),e.Proj.projections.add(Nt),e.Proj.projections.add(Zt),e.Proj.projections.add(Gt),e.Proj.projections.add(Wt),e.Proj.projections.add(Yt),e.Proj.projections.add(Kt),e.Proj.projections.add(Xt),e.Proj.projections.add(Jt),e.Proj.projections.add(Qt),e.Proj.projections.add(en),e.Proj.projections.add(tn),e.Proj.projections.add(nn),e.Proj.projections.add(rn),e.Proj.projections.add(on),e.Proj.projections.add(an),e.Proj.projections.add(gn),e.Proj.projections.add(Sn),e.Proj.projections.add(Mn),e.Proj.projections.add(Ln),e.Proj.projections.add(Rn)}(Pe);const jn=Pe},90134:(e,t,n)=>{"use strict";var r=n(30782),i=n(84868),o=n(85295);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},62472:(e,t,n)=>{e.exports=n(90134)()},85295:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},25053:(e,t,n)=>{"use strict";var r=n(62699);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},47781:(e,t,n)=>{e.exports=n(25053)()},62699:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},46368:(e,t,n)=>{"use strict";var r=n(10740);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},46254:(e,t,n)=>{e.exports=n(46368)()},10740:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},37949:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(a,"$2")})))}function d(e){return e.match(n)||[""]}function p(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){return!p(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(h(r)&&(r='"'+r+'"'),o=!(a=p(r))&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},28301:function(e){e.exports=function(){"use strict";function e(e,n,i,o,a){t(e,n,i||0,o||e.length-1,a||r)}function t(e,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);t(e,r,Math.max(i,Math.floor(r-l*u/s+d)),Math.min(o,Math.floor(r+(s-l)*u/s+d)),a)}var p=e[r],h=i,f=o;for(n(e,i,r),a(e[o],p)>0&&n(e,i,o);h<f;){for(n(e,h,f),h++,f--;a(e[h],p)<0;)h++;for(;a(e[f],p)>0;)f--}0===a(e[i],p)?n(e,i,f):n(e,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}return e}()},33280:(e,t,n)=>{for(var r=n(98202),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],l=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,p=[];s=function(e){if(0===p.length){var t=r(),n=Math.max(0,16.666666666666668-(t-u));u=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},82523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(60186);const i=(0,n(90286).Z)((function(e){return null!=e&&"function"===typeof e.clone?e.clone():(0,r.Z)(e,[],[],!0)}))},5045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(50150);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function o(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var a=n(5040);const s="function"===typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t};var l=n(51985),c=n(23686);function u(e,t,n,r){var a=i(e);function s(e,t){return d(e,t,n.slice(),r.slice())}return!o((function(e,t){return!o(s,t,e)}),i(t),a)}function d(e,t,n,r){if(s(e,t))return!0;var i=(0,c.Z)(e);if(i!==(0,c.Z)(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e["fantasy-land/equals"]||"function"===typeof t["fantasy-land/equals"])return"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"===typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!s(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size===t.size&&u(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&u(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=(0,l.Z)(e);if(p.length!==(0,l.Z)(t).length)return!1;var h=n.concat([e]),f=r.concat([t]);for(o=p.length-1;o>=0;){var m=p[o];if(!(0,a.Z)(m,t)||!d(t[m],e[m],h,f))return!1;o-=1}return!0}const p=(0,r.Z)((function(e,t){return d(e,t,[],[])}))},34083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(90286).Z)((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}))},26783:(e,t,n)=>{"use strict";function r(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(t,{Z:()=>r})},60186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(23686);function i(e,t,n,o){var a,s=function(r){for(var a=t.length,s=0;s<a;){if(e===t[s])return n[s];s+=1}for(var l in t[s+1]=e,n[s+1]=r,e)r[l]=o?i(e[l],t,n,!0):e[l];return r};switch((0,r.Z)(e)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return a=e,new RegExp(a.source,(a.global?"g":"")+(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.sticky?"y":"")+(a.unicode?"u":""));default:return e}}},90286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(57186);function i(e){return function t(n){return 0===arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},50150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90286),i=n(57186);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)((function(t){return e(n,t)}));default:return(0,i.Z)(n)&&(0,i.Z)(o)?t:(0,i.Z)(n)?(0,r.Z)((function(t){return e(t,o)})):(0,i.Z)(o)?(0,r.Z)((function(t){return e(n,t)})):e(n,o)}}}},91098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(26783),i=n(57186);function o(e,t,n){return function(){for(var a=[],s=0,l=e,c=0;c<t.length||s<arguments.length;){var u;c<t.length&&(!(0,i.Z)(t[c])||s>=arguments.length)?u=t[c]:(u=arguments[s],s+=1),a[c]=u,(0,i.Z)(u)||(l-=1),c+=1}return l<=0?n.apply(this,a):(0,r.Z)(l,o(e,a,n))}}},39679:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2065);function i(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),o=i.pop();if(!(0,r.Z)(o)){for(var a=0;a<e.length;){if("function"===typeof o[e[a]])return o[e[a]].apply(o,i);a+=1}if(function(e){return null!=e&&"function"===typeof e["@@transducer/step"]}(o))return t.apply(null,i)(o)}return n.apply(this,arguments)}}},5040:(e,t,n)=>{"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},74334:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{Z:()=>r})},2065:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},68331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(90286),i=n(2065),o=n(92046);const a=(0,r.Z)((function(e){return!!(0,i.Z)(e)||!!e&&("object"===typeof e&&(!(0,o.Z)(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}))},57186:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},92046:(e,t,n)=>{"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>r})},19389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(68331),i=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var o=n(26783);const a=(0,n(50150).Z)((function(e,t){return(0,o.Z)(e.length,(function(){return e.apply(t,arguments)}))}));function s(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function l(e,t,n,r){return e["@@transducer/result"](n[r](a(e["@@transducer/step"],e),t))}var c="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function u(e,t,n){if("function"===typeof e&&(e=function(e){return new i(e)}(e)),(0,r.Z)(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"===typeof n["fantasy-land/reduce"])return l(e,t,n,"fantasy-land/reduce");if(null!=n[c])return s(e,t,n[c]());if("function"===typeof n.next)return s(e,t,n);if("function"===typeof n.reduce)return l(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},60552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},51985:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(90286),i=n(5040),o=Object.prototype.toString;const a=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return(0,i.Z)("callee",e)}}();var s=!{toString:null}.propertyIsEnumerable("toString"),l=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){return arguments.propertyIsEnumerable("length")}(),u=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const d="function"!==typeof Object.keys||c?(0,r.Z)((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=c&&a(e);for(t in e)!(0,i.Z)(t,e)||o&&"length"===t||(r[r.length]=t);if(s)for(n=l.length-1;n>=0;)t=l[n],(0,i.Z)(t,e)&&!u(r,t)&&(r[r.length]=t),n-=1;return r})):(0,r.Z)((function(e){return Object(e)!==e?[]:Object.keys(e)}))},17127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(50150);const i=Number.isInteger||function(e){return e<<0===e};var o=n(92046);const a=(0,r.Z)((function(e,t){var n=e<0?t.length+e:e;return(0,o.Z)(t)?t.charAt(n):t[n]}));const s=(0,r.Z)((function(e,t){return e.map((function(e){for(var n,r=t,o=0;o<e.length;){if(null==r)return;n=e[o],r=i(n)?a(n,r):r[n],o+=1}return r}))}));const l=(0,r.Z)((function(e,t){return s([e],t)[0]}));const c=(0,r.Z)((function(e,t){return l([e],t)}))},67435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(60186),i=n(91098),o=n(39679),a=n(5040),s=n(19389),l=n(60552),c=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=l.Z.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if((0,a.Z)(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();const u=(0,i.Z)(4,[],(function(e,t,n,r){return new c(e,t,n,r)}));const d=(0,i.Z)(4,[],(0,o.Z)([],u,(function(e,t,n,i){return(0,s.Z)((function(i,o){var s=n(o);return i[s]=e((0,a.Z)(s,i)?i[s]:(0,r.Z)(t,[],[],!1),o),i}),{},i)})))},62050:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90286),i=n(5040);const o=(0,r.Z)((function(e){var t=[];for(var n in e)(0,i.Z)(n,e)&&(t[t.length]=[n,e[n]]);return t}))},23686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(90286).Z)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},40467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(90286),i=n(74334);const o=(0,r.Z)(i.Z);const a=(0,n(70222).Z)(o)},70222:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5045);function i(e,t){return function(e,t,n){var i,o;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if("number"===typeof(o=e[n])&&o!==o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if((0,r.Z)(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function o(e,t,n){var r,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e===-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?!!i(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!i(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}const a=function(){function e(){this._nativeSet="function"===typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!o(e,!0,this)},e.prototype.has=function(e){return o(e,!1,this)},e}();const s=(0,n(50150).Z)((function(e,t){for(var n,r,i=new a,o=[],s=0;s<t.length;)n=e(r=t[s]),i.add(n)&&o.push(r),s+=1;return o}))},92785:(e,t,n)=>{"use strict";e.exports=i,e.exports.default=i;var r=n(28301);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=t;a<n;a++)o=e.children[a],l(i,e.leaf?r(o):o);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function m(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function g(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,t,n,i,o){for(var a,s=[t,n];s.length;)(n=s.pop())-(t=s.pop())<=i||(a=t+Math.ceil((n-t)/i/2)*i,r(e,a,t,n,o),s.push(t,a,a,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!m(e,t))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i<o;i++)a=t.children[i],m(e,s=t.leaf?r(a):a)&&(t.leaf?n.push(a):f(e,s)?this._all(a,n):l.push(a));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!m(e,t))return!1;for(var r,i,o,a,s=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],m(e,a=t.leaf?n(o):o)){if(t.leaf||f(e,a))return!0;s.push(o)}t=s.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,a,s=this.data,l=this.toBBox(e),c=[],u=[];s||c.length;){if(s||(s=c.pop(),r=c[c.length-1],n=u.pop(),a=!0),s.leaf&&-1!==(i=o(e,s.children,t)))return s.children.splice(i,1),c.push(s),this._condense(c),this;a||s.leaf||!f(s,l)?r?(n++,s=r.children[n],a=!1):s=null:(c.push(s),u.push(n),n=0,r=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=g(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=g([])).leaf=!1,i.height=r;var l,c,u,d,p=Math.ceil(o/s),h=p*Math.ceil(Math.sqrt(s));for(y(e,t,n,h,this.compareMinX),l=t;l<=n;l+=h)for(y(e,l,u=Math.min(l+h-1,n),p,this.compareMinY),c=l;c<=u;c+=p)d=Math.min(c+p-1,u),i.children.push(this._build(e,c,d,r-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,a,s,l,c,u,p,h,f;r.push(t),!t.leaf&&r.length-1!==n;){for(u=p=1/0,i=0,o=t.children.length;i<o;i++)l=d(a=t.children[i]),h=e,f=a,(c=(Math.max(f.maxX,h.maxX)-Math.min(f.minX,h.minX))*(Math.max(f.maxY,h.maxY)-Math.min(f.minY,h.minY))-l)<p?(p=c,u=l<u?l:u,s=a):c===p&&l<u&&(u=l,s=a);t=s||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],a=this._chooseSubtree(i,this.data,t,o);for(a.children.push(e),l(a,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=g(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(e,t){this.data=g([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,a,l,c,u,p;for(c=u=1/0,r=t;r<=n-t;r++)a=h(i=s(e,0,r,this.toBBox),o=s(e,r,n,this.toBBox)),l=d(i)+d(o),a<c?(c=a,p=r,u=l<u?l:u):a===c&&l<u&&(u=l,p=r);return p},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,a=this.toBBox,c=s(e,0,t,a),u=s(e,n-t,n,a),d=p(c)+p(u);for(i=t;i<n-t;i++)o=e.children[i],l(c,e.leaf?a(o):o),d+=p(c);for(i=n-t-1;i>=t;i--)o=e.children[i],l(u,e.leaf?a(o):o),d+=p(u);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():a(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},36409:function(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*u/s+d)),Math.min(o,Math.floor(r+(s-l)*u/s+d)),a)}var p=n[r],h=i,f=o;for(t(n,i,r),a(n[o],p)>0&&t(n,i,o);h<f;){for(t(n,h,f),h++,f--;a(n[h],p)<0;)h++;for(;a(n[f],p)>0;)f--}0===a(n[i],p)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function h(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!h(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;h(e,s)&&(t.leaf?n.push(a):p(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!h(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(h(e,o)){if(t.leaf||p(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf){var u=i(e,a.children,t);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);m(e,u,d,l,this.compareMinY);for(var p=u;p<=d;p+=l){var h=Math.min(p+l-1,d);i.children.push(this._build(e,p,h,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=u(l),d=(p=e,h=l,(Math.max(h.maxX,p.maxX)-Math.min(h.minX,p.minX))*(Math.max(h.maxY,p.maxY)-Math.min(h.minY,p.minY))-c);d<o?(o=d,i=c<i?c:i,a=l):d===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}var p,h;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,d,p=1/0,h=1/0,f=t;f<=n-t;f++){var m=a(e,0,f,this.toBBox),g=a(e,f,n,this.toBBox),y=(i=m,o=g,s=void 0,l=void 0,c=void 0,d=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,d-l)),v=u(m)+u(g);y<p?(p=y,r=f,h=v<h?v:h):y===p&&v<h&&(h=v,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),c=d(o)+d(l),u=t;u<n-t;u++){var p=e.children[u];s(o,e.leaf?i(p):p),c+=d(o)}for(var h=n-t-1;h>=t;h--){var f=e.children[h];s(l,e.leaf?i(f):f),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},70122:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S,M,T,E,P,I,O,L,R,j,D,A,N,F,z,B,U,$,V,q,Z,H,G,W,Y,K,X,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ce){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var de=ue(t),pe=ue(r),he=ue(i),fe=ue(o),me=ue(a),ge=ue(s),ye=ue(l),ve=ue(c),be=ue(u),_e=ue(d),we=ue(p),xe=ue(h),ke=ue(f),Ce=ue(m),Se=ue(g),Me=ue(y),Te=ue(v),Ee=ue(b),Pe=ue(_),Ie=ue(w),Oe=ue(x),Le=ue(k),Re=ue(C),je=ue(S),De=ue(M),Ae=ue(T),Ne=ue(E),Fe=ue(P),ze=ue(I),Be=ue(O),Ue=ue(L),$e=ue(R),Ve=ue(j),qe=ue(D),Ze=ue(A),He=ue(N),Ge=ue(F),We=ue(z),Ye=ue(B),Ke=ue(U),Xe=ue($),Je=ue(V),Qe=ue(q),et=ue(Z),tt=ue(G),nt=ue(W),rt=ue(Y),it=ue(K),ot=ue(X),at=ue(J),st=ue(Q),lt=ue(ee),ct=ue(te),ut=ue(ne),dt=ue(re),pt=ue(ie),ht=ue(oe),ft=ue(ae),mt=ue(se),gt=ue(ce);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lt(r.key),r)}}function xt(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e,t,n){return(t=Lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var i=Mt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}(this,n)}}function It(e){return function(e){if(Array.isArray(e))return Ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Rt=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},jt=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Dt={p:jt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Rt(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Rt(i,t)).replace("{{time}}",jt(o,t))}},At=12,Nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ft(e){var t=e?"string"==typeof e||e instanceof String?ht.default(e):dt.default(e):new Date;return zt(t)?t:null}function zt(e,t){return t=t||new Date("1/1/1000"),fe.default(e)&&!ct.default(e,t)}function Bt(e,t,n){if("en"===n)return me.default(e,t,{awareOfUnicodeTokens:!0});var r=tn(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&en()&&tn(en())&&(r=tn(en())),me.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Ut(e,t){var n=t.dateFormat,r=t.locale;return e&&Bt(e,Array.isArray(n)?n[0]:n,r)||""}function $t(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return Be.default(ze.default(Fe.default(e,s),o),r)}function Vt(e,t,n){var r=tn(t||en());return Ke.default(e,{locale:r,weekStartsOn:n})}function qt(e){return Xe.default(e)}function Zt(e){return Qe.default(e)}function Ht(e){return Je.default(e)}function Gt(){return Ye.default(Ft())}function Wt(e,t){return e&&t?at.default(e,t):!e&&!t}function Yt(e,t){return e&&t?ot.default(e,t):!e&&!t}function Kt(e,t){return e&&t?st.default(e,t):!e&&!t}function Xt(e,t){return e&&t?it.default(e,t):!e&&!t}function Jt(e,t){return e&&t?rt.default(e,t):!e&&!t}function Qt(e,t,n){var r,i=Ye.default(t),o=et.default(n);try{r=ut.default(e,{start:i,end:o})}catch(e){r=!1}return r}function en(){return("undefined"!=typeof window?window:globalThis).__localeId__}function tn(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function nn(e,t){return Bt(Ue.default(Ft(),e),"LLLL",t)}function rn(e,t){return Bt(Ue.default(Ft(),e),"LLL",t)}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return hn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Xt(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return Xt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})}))||l&&!l(Ft(e))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})})):n&&n.some((function(t){return Xt(e,t)}))||!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return hn(e,{minDate:Xe.default(n),maxDate:tt.default(r)})||i&&i.some((function(t){return Yt(e,t)}))||o&&!o.some((function(t){return Yt(e,t)}))||a&&!a(Ft(e))||!1}function ln(e,t,n,r){var i=Ae.default(e),o=je.default(e),a=Ae.default(t),s=je.default(t),l=Ae.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return hn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Kt(e,t)}))||o&&!o.some((function(t){return Kt(e,t)}))||a&&!a(Ft(e))||!1}function un(e,t,n){if(!fe.default(t)||!fe.default(n))return!1;var r=Ae.default(t),i=Ae.default(n);return r<=e&&i>=e}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return hn(s,{minDate:Qe.default(n),maxDate:nt.default(r)})||i&&i.some((function(e){return Wt(s,e)}))||o&&!o.some((function(e){return Wt(s,e)}))||a&&!a(Ft(s))||!1}function pn(e,t,n,r){var i=Ae.default(e),o=De.default(e),a=Ae.default(t),s=De.default(t),l=Ae.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&He.default(e,n)<0||r&&He.default(e,r)>0}function fn(e,t){return t.some((function(t){return Ie.default(t)===Ie.default(e)&&Pe.default(t)===Pe.default(e)}))}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&fn(e,n)||r&&!fn(e,r)||i&&!i(e)||!1}function gn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ft(),a=Be.default(ze.default(o,Pe.default(e)),Ie.default(e)),s=Be.default(ze.default(o,Pe.default(n)),Ie.default(n)),l=Be.default(ze.default(o,Pe.default(r)),Ie.default(r));try{i=!ut.default(a,{start:s,end:l})}catch(e){i=!1}return i}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Se.default(e,1);return n&&Ge.default(n,i)>0||r&&r.every((function(e){return Ge.default(e,i)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=_e.default(e,1);return n&&Ge.default(i,n)>0||r&&r.every((function(e){return Ge.default(i,e)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Te.default(e,1);return n&&We.default(n,i)>0||r&&r.every((function(e){return We.default(e,i)>0}))||!1}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=xe.default(e,1);return n&&We.default(i,n)>0||r&&r.every((function(e){return We.default(i,e)>0}))||!1}function wn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)>=0}));return qe.default(r)}return n?qe.default(n):t}function xn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)<=0}));return Ze.default(r)}return n?Ze.default(n):t}function kn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(he.default(o)){var a=Bt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===bt(o)){var l=Object.keys(o),c=l[0],u=o[l[0]];if("string"==typeof c&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var h=Bt(u[d],"MM.dd.yyyy"),f=n.get(h)||[];f.includes(c)||(f.push(c),n.set(h,f))}}}return n}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(e){var r=e.date,i=e.holidayName;if(he.default(r)){var o=Bt(r,"MM.dd.yyyy"),a=n.get(o)||{};if(!("className"in a)||a.className!==t||(s=a.holidayNames,l=[i],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;a.className=t;var c=a.holidayNames;a.holidayNames=c?[].concat(It(c),[i]):[i],n.set(o,a)}}})),n}function Sn(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=ge.default(ye.default(e,Ie.default(i[s])),Pe.default(i[s])),c=ge.default(e,(n+1)*r);lt.default(l,t)&&ct.default(l,c)&&a.push(i[s])}return a}function Mn(e){return e<10?"0".concat(e):"".concat(e)}function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:At,n=Math.ceil(Ae.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function En(e){var t=e.getSeconds(),n=e.getMilliseconds();return dt.default(e.getTime()-1e3*t-n)}function Pn(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=Ae.default(n)<=a),r&&s&&(s=Ae.default(r)>=a),s&&i.push(a)}return i}var In=function(e){St(r,e);var n=Pt(r);function r(e){var i;_t(this,r),kt(Et(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return de.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(Et(i),t),"aria-selected":e===t?"true":void 0},e===t?de.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=i.props.minDate?Ae.default(i.props.minDate):null,r=i.props.maxDate?Ae.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(de.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(de.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),kt(Et(i),"onChange",(function(e){i.props.onChange(e)})),kt(Et(i),"handleClickOutside",(function(){i.props.onCancel()})),kt(Et(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),kt(Et(i),"incrementYears",(function(){return i.shiftYears(1)})),kt(Et(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Pn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return xt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=pe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return de.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(de.default.Component),On=ft.default(In),Ln=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),kt(Et(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?Ae.default(e.props.minDate):1900,n=e.props.maxDate?Ae.default(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(de.default.createElement("option",{key:i,value:i},i));return r})),kt(Et(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),kt(Et(e),"renderSelectMode",(function(){return de.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),kt(Et(e),"renderReadView",(function(t){return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},de.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),kt(Et(e),"renderDropdown",(function(){return de.default.createElement(On,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),kt(Et(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),kt(Et(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),kt(Et(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),kt(Et(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),kt(Et(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),kt(Et(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return xt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return de.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component),Rn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),kt(Et(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return de.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(Et(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?de.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),kt(Et(e),"onChange",(function(t){return e.props.onChange(t)})),kt(Et(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return xt(n,[{key:"render",value:function(){return de.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(de.default.Component),jn=ft.default(Rn),Dn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),kt(Et(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return de.default.createElement("option",{key:t,value:t},e)}))})),kt(Et(e),"renderSelectMode",(function(t){return de.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),kt(Et(e),"renderReadView",(function(t,n){return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},de.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),kt(Et(e),"renderDropdown",(function(t){return de.default.createElement(jn,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),kt(Et(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),kt(Et(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),kt(Et(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return xt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return rn(e,t.props.locale)}:function(e){return nn(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return de.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component);function An(e,t){for(var n=[],r=qt(e),i=qt(t);!lt.default(r,i);)n.push(Ft(r)),r=_e.default(r,1);return n}var Nn=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Ne.default(e),n=Wt(r.props.date,e)&&Yt(r.props.date,e);return de.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(Et(r),t),"aria-selected":n?"true":void 0},n?de.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Bt(e,r.props.dateFormat,r.props.locale))}))})),kt(Et(r),"onChange",(function(e){return r.props.onChange(e)})),kt(Et(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:An(r.props.minDate,r.props.maxDate)},r}return xt(n,[{key:"render",value:function(){var e=pe.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return de.default.createElement("div",{className:e},this.renderOptions())}}]),n}(de.default.Component),Fn=ft.default(Nn),zn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),kt(Et(e),"renderSelectOptions",(function(){for(var t=qt(e.props.minDate),n=qt(e.props.maxDate),r=[];!lt.default(t,n);){var i=Ne.default(t);r.push(de.default.createElement("option",{key:i,value:i},Bt(t,e.props.dateFormat,e.props.locale))),t=_e.default(t,1)}return r})),kt(Et(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),kt(Et(e),"renderSelectMode",(function(){return de.default.createElement("select",{value:Ne.default(qt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),kt(Et(e),"renderReadView",(function(t){var n=Bt(e.props.date,e.props.dateFormat,e.props.locale);return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},de.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),kt(Et(e),"renderDropdown",(function(){return de.default.createElement(Fn,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),kt(Et(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),kt(Et(e),"onChange",(function(t){e.toggleDropdown();var n=Ft(parseInt(t));Wt(e.props.date,n)&&Yt(e.props.date,n)||e.props.onChange(n)})),kt(Et(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return xt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return de.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component),Bn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"dayEl",de.default.createRef()),kt(Et(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),kt(Et(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),kt(Et(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),kt(Et(e),"isSameDay",(function(t){return Xt(e.props.day,t)})),kt(Et(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!(e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected))&&(e.isSameDay(e.props.preSelection)||e.isSameWeek(e.props.preSelection))})),kt(Et(e),"isDisabled",(function(){return on(e.props.day,e.props)})),kt(Et(e),"isExcluded",(function(){return an(e.props.day,e.props)})),kt(Et(e),"isStartOfWeek",(function(){return Xt(e.props.day,Vt(e.props.day,e.props.locale,e.props.calendarStartDay))})),kt(Et(e),"isSameWeek",(function(t){return e.props.showWeekPicker&&Xt(t,Vt(e.props.day,e.props.locale,e.props.calendarStartDay))})),kt(Et(e),"getHighLightedClass",(function(){var t=e.props,n=t.day,r=t.highlightDates;if(!r)return!1;var i=Bt(n,"MM.dd.yyyy");return r.get(i)})),kt(Et(e),"getHolidaysClass",(function(){var t=e.props,n=t.day,r=t.holidays;if(!r)return!1;var i=Bt(n,"MM.dd.yyyy");return r.has(i)?[r.get(i).className]:void 0})),kt(Et(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Qt(n,r,i)})),kt(Et(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||o||a)||!u||!s&&e.isDisabled())&&(i&&c&&(ct.default(u,c)||Jt(u,c))?Qt(r,u,c):(o&&l&&(lt.default(u,l)||Jt(u,l))||!(!a||!l||c||!lt.default(u,l)&&!Jt(u,l)))&&Qt(r,l,u))})),kt(Et(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Xt(r,o?a:i)})),kt(Et(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=n.selectsRange,s=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Xt(r,o||a?s:i)})),kt(Et(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Xt(r,n)})),kt(Et(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Xt(i,n)})),kt(Et(e),"isWeekend",(function(){var t=Oe.default(e.props.day);return 0===t||6===t})),kt(Et(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===je.default(e.props.day)})),kt(Et(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(je.default(e.props.day)+1)%12===e.props.month})),kt(Et(e),"isCurrentDay",(function(){return e.isSameDay(Ft())})),kt(Et(e),"isSelected",(function(){return e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected)})),kt(Et(e),"getClassNames",(function(t){var n,r=e.props.dayClassName?e.props.dayClassName(t):void 0;return pe.default("react-datepicker__day",r,"react-datepicker__day--"+Bt(e.props.day,"ddd",n),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())})),kt(Et(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(Bt(n,"PPPP",e.props.locale))})),kt(Et(e),"getTitle",(function(){var t=e.props,n=t.day,r=t.holidays,i=void 0===r?new Map:r,o=Bt(n,"MM.dd.yyyy");return i.has(o)&&i.get(o).holidayNames.length>0?i.get(o).holidayNames.join(", "):""})),kt(Et(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(r)&&Xt(i,r))?0:-1})),kt(Et(e),"handleFocusDay",(function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))})),kt(Et(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Le.default(e.props.day),e.props.day):Le.default(e.props.day)})),kt(Et(e),"render",(function(){return de.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&de.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))})),e}return xt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(de.default.Component),Un=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"weekNumberEl",de.default.createRef()),kt(Et(e),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),kt(Et(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),kt(Et(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Xt(e.props.date,e.props.selected)&&Xt(e.props.date,e.props.preSelection)})),kt(Et(e),"getTabIndex",(function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||Xt(e.props.date,e.props.selected)&&Xt(e.props.preSelection,e.props.selected))?0:-1})),kt(Et(e),"handleFocusWeekNumber",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&Xt(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})})),e}return xt(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":Xt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{ref:this.weekNumberEl,className:pe.default(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(de.default.Component),$n=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),kt(Et(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),kt(Et(e),"handleWeekClick",(function(t,n,r){if("function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.showWeekPicker){var i=Vt(t,e.props.locale,e.props.calendarStartDay);e.handleDayClick(i,r)}e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),kt(Et(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):function(e,t){var n=t&&tn(t)||en()&&tn(en());return Re.default(e,n?{locale:n}:null)}(t)})),kt(Et(e),"renderDays",(function(){var t=Vt(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(Et(e),t,r):void 0;n.push(de.default.createElement(Un,{key:"W",weekNumber:r,date:t,onClick:i,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ve.default(t,n);return de.default.createElement(Bn,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(Et(e),r),onMouseEnter:e.handleDayMouseEnter.bind(Et(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),kt(Et(e),"startOfWeek",(function(){return Vt(e.props.day,e.props.locale,e.props.calendarStartDay)})),kt(Et(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Xt(e.startOfWeek(),e.props.selected)&&Xt(e.startOfWeek(),e.props.preSelection)})),e}return xt(n,[{key:"render",value:function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Xt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{className:pe.default(e)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(de.default.Component),Vn="two_columns",qn="three_columns",Zn="four_columns",Hn=kt(kt(kt({},Vn,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),qn,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),Zn,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function Gn(e,t){return e?Zn:t?Vn:qn}var Wn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"MONTH_REFS",It(Array(12)).map((function(){return de.default.createRef()}))),kt(Et(e),"QUARTER_REFS",It(Array(4)).map((function(){return de.default.createRef()}))),kt(Et(e),"isDisabled",(function(t){return on(t,e.props)})),kt(Et(e),"isExcluded",(function(t){return an(t,e.props)})),kt(Et(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),kt(Et(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),kt(Et(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),kt(Et(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Ue.default(r,t),i)})),kt(Et(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Kt($e.default(r,t),i)})),kt(Et(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Ue.default(r,t),o)})),kt(Et(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Kt($e.default(r,t),o)})),kt(Et(e),"isInSelectingRangeMonth",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?ln(u,c,t,i):(a&&l||!(!s||!l||c))&&ln(l,u,t,i))})),kt(Et(e),"isSelectingMonthRangeStart",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.startDate,a=r.selectsStart,s=Ue.default(i,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Yt(s,a?l:o)})),kt(Et(e),"isSelectingMonthRangeEnd",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.endDate,a=r.selectsEnd,s=r.selectsRange,l=Ue.default(i,t),c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Yt(l,a||s?c:o)})),kt(Et(e),"isInSelectingRangeQuarter",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?pn(u,c,t,i):(a&&l||!(!s||!l||c))&&pn(l,u,t,i))})),kt(Et(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ve.default(t,6);return Yt(t,n)||Yt(r,n)})),kt(Et(e),"isCurrentMonth",(function(e,t){return Ae.default(e)===Ae.default(Ft())&&t===je.default(Ft())})),kt(Et(e),"isCurrentQuarter",(function(e,t){return Ae.default(e)===Ae.default(Ft())&&t===De.default(Ft())})),kt(Et(e),"isSelectedMonth",(function(e,t,n){return je.default(n)===t&&Ae.default(e)===Ae.default(n)})),kt(Et(e),"isSelectedQuarter",(function(e,t,n){return De.default(e)===t&&Ae.default(e)===Ae.default(n)})),kt(Et(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,o=Vt(qt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(de.default.createElement($n,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:o,month:je.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){r++,o=be.default(o,1);var a=n&&r>=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),kt(Et(e),"onMonthClick",(function(t,n){e.handleDayClick(qt(Ue.default(e.props.day,n)),t)})),kt(Et(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(qt(Ue.default(e.props.day,t)))})),kt(Et(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),kt(Et(e),"onMonthKeyDown",(function(t,n){var r=e.props,i=r.selected,o=r.preSelection,a=r.disabledKeyboardNavigation,s=r.showTwoColumnMonthYearPicker,l=r.showFourColumnMonthYearPicker,c=r.setPreSelection,u=t.key;if("Tab"!==u&&t.preventDefault(),!a){var d=Gn(l,s),p=Hn[d].verticalNavigationOffset,h=Hn[d].grid;switch(u){case"Enter":e.onMonthClick(t,n),c(i);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,_e.default(o,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Se.default(o,1));break;case"ArrowUp":e.handleMonthNavigation(h[0].includes(n)?n+12-p:n-p,Se.default(o,p));break;case"ArrowDown":e.handleMonthNavigation(h[h.length-1].includes(n)?n-12+p:n+p,_e.default(o,p))}}})),kt(Et(e),"onQuarterClick",(function(t,n){e.handleDayClick(Ht($e.default(e.props.day,n)),t)})),kt(Et(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(Ht($e.default(e.props.day,t)))})),kt(Et(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),kt(Et(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,we.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,Me.default(e.props.preSelection,1))}})),kt(Et(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=n.excludeDates,p=n.includeDates,h=u?u(Ue.default(r,t)):void 0,f=Ue.default(r,t);return pe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),h,{"react-datepicker__month-text--disabled":(s||l||d||p)&&sn(f,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&je.default(c)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":ln(i,o,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),kt(Et(e),"getTabIndex",(function(t){var n=je.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),kt(Et(e),"getQuarterTabIndex",(function(t){var n=De.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),kt(Et(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=Ue.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?a:i;return"".concat(c," ").concat(Bt(l,"MMMM yyyy"))})),kt(Et(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.disabledKeyboardNavigation;return pe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(s||l)&&cn($e.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":!u&&De.default(c)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":pn(i,o,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),kt(Et(e),"getMonthContent",(function(t){var n=e.props,r=n.showFullMonthYearPicker,i=n.renderMonthContent,o=n.locale,a=n.day,s=rn(t,o),l=nn(t,o);return i?i(t,s,l,a):r?l:s})),kt(Et(e),"getQuarterContent",(function(t){var n=e.props,r=n.renderQuarterContent,i=function(e,t){return Bt($e.default(Ft(),e),"QQQ",t)}(t,n.locale);return r?r(t,i):i})),kt(Et(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,i=t.day,o=t.selected;return Hn[Gn(r,n)].grid.map((function(t,n){return de.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return de.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(i,t)?"date":void 0,"aria-selected":e.isSelectedMonth(i,t,o)},e.getMonthContent(t))})))}))})),kt(Et(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return de.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return de.default.createElement("div",{key:i,ref:e.QUARTER_REFS[i],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))})),kt(Et(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker,s=t.showWeekPicker;return pe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a},{"react-datepicker__weekPicker":s})})),e}return xt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return de.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Bt(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(de.default.Component),Yn=function(e){St(n,e);var t=Pt(n);function n(){var e;_t(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return kt(Et(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),kt(Et(e),"scrollToTheSelectedTime",(function(){requestAnimationFrame((function(){e.list&&(e.list.scrollTop=e.centerLi&&n.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))}))})),kt(Et(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&gn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)||e.props.onChange(t)})),kt(Et(e),"isSelectedTime",(function(t){return e.props.selected&&(n=t,En(e.props.selected).getTime()===En(n).getTime());var n})),kt(Et(e),"isDisabledTime",(function(t){return(e.props.minTime||e.props.maxTime)&&gn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)})),kt(Et(e),"liClasses",(function(t){var n=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&n.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&n.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*Ie.default(t)+Pe.default(t))%e.props.intervals!=0&&n.push("react-datepicker__time-list-item--injected"),n.join(" ")})),kt(Et(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||!t.target.previousSibling||(t.preventDefault(),t.target.previousSibling.focus()),"ArrowDown"!==t.key&&"ArrowRight"!==t.key||!t.target.nextSibling||(t.preventDefault(),t.target.nextSibling.focus()),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),kt(Et(e),"renderTimes",(function(){for(var t,n=[],r=e.props.format?e.props.format:"p",i=e.props.intervals,o=e.props.selected||e.props.openToDate||Ft(),a=(t=o,Ye.default(t)),s=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),l=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(o),c=l/i,u=0;u<c;u++){var d=ge.default(a,u*i);if(n.push(d),s){var p=Sn(a,d,u,i,s);n=n.concat(p)}}var h=n.reduce((function(e,t){return t.getTime()<=o.getTime()?t:e}),n[0]);return n.map((function(t,n){return de.default.createElement("li",{key:n,onClick:e.handleClick.bind(Et(e),t),className:e.liClasses(t),ref:function(n){t===h&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:t===h?0:-1,role:"option","aria-selected":e.isSelectedTime(t)?"true":void 0,"aria-disabled":e.isDisabledTime(t)?"true":void 0},Bt(t,r,e.props.locale))}))})),e}return xt(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return de.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},de.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),de.default.createElement("div",{className:"react-datepicker__time"},de.default.createElement("div",{className:"react-datepicker__time-box"},de.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(de.default.Component);kt(Yn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Kn=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"YEAR_REFS",It(Array(r.props.yearItemNumber)).map((function(){return de.default.createRef()}))),kt(Et(r),"isDisabled",(function(e){return on(e,r.props)})),kt(Et(r),"isExcluded",(function(e){return an(e,r.props)})),kt(Et(r),"selectingDate",(function(){var e;return null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection})),kt(Et(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(Et(r));window.requestAnimationFrame(t)})),kt(Et(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),kt(Et(r),"handleYearNavigation",(function(e,t){var n=r.props,i=n.date,o=n.yearItemNumber,a=Tn(i,o).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(o-1):e-a===o?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),kt(Et(r),"isSameDay",(function(e,t){return Xt(e,t)})),kt(Et(r),"isCurrentYear",(function(e){return e===Ae.default(Ft())})),kt(Et(r),"isRangeStart",(function(e){return r.props.startDate&&r.props.endDate&&Wt(Ve.default(Ft(),e),r.props.startDate)})),kt(Et(r),"isRangeEnd",(function(e){return r.props.startDate&&r.props.endDate&&Wt(Ve.default(Ft(),e),r.props.endDate)})),kt(Et(r),"isInRange",(function(e){return un(e,r.props.startDate,r.props.endDate)})),kt(Et(r),"isInSelectingRange",(function(e){var t=r.props,n=t.selectsStart,i=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||i||o)||!r.selectingDate())&&(n&&s?un(e,r.selectingDate(),s):(i&&a||!(!o||!a||s))&&un(e,a,r.selectingDate()))})),kt(Et(r),"isSelectingRangeStart",(function(e){if(!r.isInSelectingRange(e))return!1;var t=r.props,n=t.startDate,i=t.selectsStart;return Wt(Ve.default(Ft(),e),i?r.selectingDate():n)})),kt(Et(r),"isSelectingRangeEnd",(function(e){if(!r.isInSelectingRange(e))return!1;var t=r.props,n=t.endDate,i=t.selectsEnd,o=t.selectsRange;return Wt(Ve.default(Ft(),e),i||o?r.selectingDate():n)})),kt(Et(r),"isKeyboardSelected",(function(e){var t=Zt(Ve.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Xt(t,Zt(r.props.selected))&&Xt(t,Zt(r.props.preSelection))})),kt(Et(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(Zt(Ve.default(n,t)),e)})),kt(Et(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,xe.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Te.default(r.props.preSelection,1))}})),kt(Et(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,i=t.maxDate,o=t.selected,a=t.excludeDates,s=t.includeDates,l=t.filterDate;return pe.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===Ae.default(o),"react-datepicker__year-text--disabled":(n||i||a||s||l)&&dn(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--range-start":r.isRangeStart(e),"react-datepicker__year-text--range-end":r.isRangeEnd(e),"react-datepicker__year-text--in-range":r.isInRange(e),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),kt(Et(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===Ae.default(r.props.preSelection)?"0":"-1"})),kt(Et(r),"getYearContainerClassNames",(function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,i=e.selectsEnd,o=e.selectsRange;return pe.default("react-datepicker__year",{"react-datepicker__year--selecting-range":t&&(n||i||o)})})),kt(Et(r),"getYearContent",(function(e){return r.props.renderYearContent?r.props.renderYearContent(e):e})),r}return xt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,o=n.onYearMouseEnter,a=n.onYearMouseLeave,s=Tn(r,i),l=s.startPeriod,c=s.endPeriod,u=function(n){t.push(de.default.createElement("div",{ref:e.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),onMouseEnter:function(e){return o(e,n)},onMouseLeave:function(e){return a(e,n)},key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},e.getYearContent(n)))},d=l;d<=c;d++)u(d);return de.default.createElement("div",{className:this.getYearContainerClassNames()},de.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},t))}}]),n}(de.default.Component),Xn=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=r.props.date,n=t instanceof Date&&!isNaN(t)?t:new Date;n.setHours(e.split(":")[0]),n.setMinutes(e.split(":")[1]),r.props.onChange(n)})),kt(Et(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,i=t.timeString,o=t.customTimeInput;return o?de.default.cloneElement(o,{date:n,value:e,onChange:r.onTimeChange}):de.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})})),r.state={time:r.props.timeString},r}return xt(n,[{key:"render",value:function(){return de.default.createElement("div",{className:"react-datepicker__input-time-container"},de.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),de.default.createElement("div",{className:"react-datepicker-time__input-container"},de.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(de.default.Component);function Jn(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=void 0===i?{}:i;return de.default.createElement("div",{className:t},r&&de.default.createElement("div",Ct({className:"react-datepicker__triangle"},o)),n)}var Qn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],er=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),kt(Et(r),"setClickOutsideRef",(function(){return r.containerRef.current})),kt(Et(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Qn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),kt(Et(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=wn(r.props),a=xn(r.props),s=Ft();return i||n||t||(o&&ct.default(s,o)?o:a&&lt.default(s,a)?a:s)})),kt(Et(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:_e.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),kt(Et(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:Se.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),kt(Et(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),kt(Et(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),kt(Et(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),kt(Et(r),"handleYearMouseEnter",(function(e,t){r.setState({selectingDate:Ve.default(Ft(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)})),kt(Et(r),"handleYearMouseLeave",(function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)})),kt(Et(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),kt(Et(r),"handleMonthChange",(function(e){r.handleCustomMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),kt(Et(r),"handleCustomMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0}))})),kt(Et(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),kt(Et(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ve.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),kt(Et(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Ue.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),kt(Et(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ve.default(Ue.default(n,je.default(e)),Ae.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),kt(Et(r),"header",(function(){var e=Vt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(de.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ve.default(e,t),i=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return de.default.createElement("div",{key:t,className:pe.default("react-datepicker__day-name",o)},i)})))})),kt(Et(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Bt(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Bt(e,"EEE",t)}(e,t):function(e,t){return Bt(e,"EEEEEE",t)}(e,t)})),kt(Et(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Te.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),kt(Et(r),"clearSelectingDate",(function(){r.setState({selectingDate:null})})),kt(Et(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=bn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?At:r,o=Tn(Zt(Te.default(e,i)),i).endPeriod,a=n&&Ae.default(n);return a&&a>o||!1}(r.state.date,r.props);break;default:e=yn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=r.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Previous Month":c,d=l.previousYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Previous Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?p:u},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),kt(Et(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:xe.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),kt(Et(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=_n(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?At:r,o=Tn(xe.default(e,i),i).startPeriod,a=n&&Ae.default(n);return a&&a<o||!1}(r.state.date,r.props);break;default:e=vn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.nextMonthButtonLabel,s=o.nextYearButtonLabel,l=r.props,c=l.nextMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Next Month":c,d=l.nextYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Next Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?p:u},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),kt(Et(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),de.default.createElement("div",{className:t.join(" ")},Bt(e,r.props.dateFormat,r.props.locale))})),kt(Et(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return de.default.createElement(Ln,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Ae.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),kt(Et(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return de.default.createElement(Dn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:je.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),kt(Et(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return de.default.createElement(zn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),kt(Et(r),"handleTodayButtonClick",(function(e){r.props.onSelect(Gt(),e),r.props.setPreSelection&&r.props.setPreSelection(Gt())})),kt(Et(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return de.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),kt(Et(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return de.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),de.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),kt(Et(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=yn(r.state.date,r.props),o=vn(r.state.date,r.props),a=bn(r.state.date,r.props),s=_n(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(vt(vt({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),kt(Et(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=Tn(e,t.yearItemNumber),o=i.startPeriod,a=i.endPeriod;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(a):Ae.default(e))})),kt(Et(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),kt(Et(r),"renderMonths",(function(){var e;if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var t=[],n=r.props.showPreviousMonths?r.props.monthsShown-1:0,i=Se.default(r.state.date,n),o=null!==(e=r.props.monthSelectedIn)&&void 0!==e?e:n,a=0;a<r.props.monthsShown;++a){var s=a-o+n,l=_e.default(i,s),c="month-".concat(a),u=a<r.props.monthsShown-1,d=a>0;t.push(de.default.createElement("div",{key:c,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:l,i:a}),de.default.createElement(Wn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:l,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:d})))}return t}})),kt(Et(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?de.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),de.default.createElement(Kn,Ct({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave}))):void 0})),kt(Et(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return de.default.createElement(Yn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),kt(Et(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=zt(e)&&Boolean(r.props.selected)?"".concat(Mn(e.getHours()),":").concat(Mn(e.getMinutes())):"";if(r.props.showTimeInput)return de.default.createElement(Xn,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),kt(Et(r),"renderAriaLiveRegion",(function(){var e,t=Tn(r.state.date,r.props.yearItemNumber),n=t.startPeriod,i=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(i):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Ae.default(r.state.date):"".concat(nn(je.default(r.state.date),r.props.locale)," ").concat(Ae.default(r.state.date)),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),kt(Et(r),"renderChildren",(function(){if(r.props.children)return de.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=de.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return xt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||Xt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Xt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Yt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||Jn;return de.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},de.default.createElement(e,{className:pe.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:At}}}]),n}(de.default.Component),tr=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return de.default.isValidElement(t)?de.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):"string"==typeof t?de.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):de.default.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},de.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},nr=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return xt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return mt.default.createPortal(this.props.children,this.el)}}]),n}(de.default.Component),rr=function(e){return!e.disabled&&-1!==e.tabIndex},ir=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(rr)})),kt(Et(r),"handleFocusStart",(function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),kt(Et(r),"handleFocusEnd",(function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()})),r.tabLoopRef=de.default.createRef(),r}return xt(n,[{key:"render",value:function(){return this.props.enableTabLoop?de.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},de.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,de.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(de.default.Component),or=function(e){St(n,e);var t=Pt(n);function n(){return _t(this,n),t.apply(this,arguments)}return xt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,o=t.popperComponent,a=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,c=t.targetComponent,u=t.enableTabLoop,d=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!i){var f=pe.default("react-datepicker-popper",n);e=de.default.createElement(le.Popper,Ct({modifiers:a,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return de.default.createElement(ir,{enableTabLoop:u},de.default.createElement("div",{ref:t,style:n,className:f,"data-placement":r,onKeyDown:d},de.default.cloneElement(o,{arrowProps:i})))}))}this.props.popperContainer&&(e=de.default.createElement(this.props.popperContainer,{},e)),p&&!i&&(e=de.default.createElement(nr,{portalId:p,portalHost:h},e));var m=pe.default("react-datepicker-wrapper",r);return de.default.createElement(le.Manager,{className:"react-datepicker-manager"},de.default.createElement(le.Reference,null,(function(e){var t=e.ref;return de.default.createElement("div",{ref:t,className:m},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(de.default.Component),ar="react-datepicker-ignore-onclickoutside",sr=ft.default(er),lr="Date input not valid.",cr=function(e){St(n,e);var t=Pt(n);function n(e){var r;return _t(this,n),kt(Et(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ft()})),kt(Et(r),"modifyHolidays",(function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return fe.default(n)?[].concat(It(e),[vt(vt({},t),{},{date:n})]):e}),[])})),kt(Et(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=wn(r.props),i=xn(r.props),o=n&&ct.default(t,Ye.default(n))?n:i&&lt.default(t,et.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:kn(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),kt(Et(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),kt(Et(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),kt(Et(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),kt(Et(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:dr},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),kt(Et(r),"inputOk",(function(){return he.default(r.state.preSelection)})),kt(Et(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),kt(Et(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),kt(Et(r),"sendFocusBackToInput",(function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},(function(){r.preventFocusTimeout=setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))}))})),kt(Et(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),kt(Et(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),kt(Et(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),kt(Et(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),kt(Et(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),kt(Et(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(Et(r),t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value,lastPreSelectChange:ur});var o,a,s,l,c,u,d,p,h=(o=i.target.value,a=r.props.dateFormat,s=r.props.locale,l=r.props.strictParsing,c=r.props.minDate,u=null,d=tn(s)||tn(en()),p=!0,Array.isArray(a)?(a.forEach((function(e){var t=pt.default(o,e,new Date,{locale:d});l&&(p=zt(t,c)&&o===Bt(t,e,s)),zt(t,c)&&p&&(u=t)})),u):(u=pt.default(o,a,new Date,{locale:d}),l?p=zt(u)&&o===Bt(u,a,s):zt(u)||(a=a.match(Nt).map((function(e){var t=e[0];return"p"===t||"P"===t?d?(0,Dt[t])(e,d.formatLong):t:e})).join(""),o.length>0&&(u=pt.default(o,a.slice(0,o.length),new Date)),zt(u)||(u=new Date(o))),zt(u)&&p?u:null));r.props.showTimeSelectOnly&&r.props.selected&&h&&!Xt(h,r.props.selected)&&(h=gt.default(r.props.selected,{hours:Ie.default(h),minutes:Pe.default(h),seconds:Ee.default(h)})),!h&&i.target.value||(r.props.showWeekPicker&&(h=Vt(h,r.props.locale,r.props.calendarStartDay)),r.setSelected(h,i,!0))}})),kt(Et(r),"handleSelect",(function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.props.showWeekPicker&&(e=Vt(e,r.props.locale,r.props.calendarStartDay)),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,o=i.startDate,a=i.endDate;!o||a||ct.default(e,o)||r.setOpen(!1)}})),kt(Et(r),"setSelected",(function(e,t,n,i){var o=e;if(r.props.showYearPicker){if(null!==o&&dn(Ae.default(o),r.props))return}else if(r.props.showMonthYearPicker){if(null!==o&&sn(o,r.props))return}else if(null!==o&&on(o,r.props))return;var a=r.props,s=a.onChange,l=a.selectsRange,c=a.startDate,u=a.endDate;if(!Jt(r.props.selected,o)||r.props.allowSameDay||l)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=$t(o,{hour:Ie.default(r.props.selected),minute:Pe.default(r.props.selected),second:Ee.default(r.props.selected)})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),l){var d=c&&u;c||u?c&&!u&&(ct.default(o,c)?s([o,null],t):s([c,o],t)):s([o,null],t),d&&s([o,null],t)}else s(o,t);n||(r.props.onSelect(o,t),r.setState({inputValue:null}))})),kt(Et(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,i=!0;if(e){r.props.showWeekPicker&&(e=Vt(e,r.props.locale,r.props.calendarStartDay));var o=Ye.default(e);if(t&&n)i=Qt(e,r.props.minDate,r.props.maxDate);else if(t){var a=Ye.default(r.props.minDate);i=lt.default(e,a)||Jt(o,a)}else if(n){var s=et.default(r.props.maxDate);i=ct.default(e,s)||Jt(o,s)}}i&&r.setState({preSelection:e})})),kt(Et(r),"toggleCalendar",(function(){r.setOpen(!r.state.open)})),kt(Et(r),"handleTimeChange",(function(e){var t=r.props.selected?r.props.selected:r.getPreSelection(),n=r.props.selected?e:$t(t,{hour:Ie.default(e),minute:Pe.default(e)});r.setState({preSelection:n}),r.props.onChange(n),r.props.shouldCloseOnSelect&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})})),kt(Et(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),kt(Et(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',i=r.calendar.componentNode&&r.calendar.componentNode.querySelector(n);return void(i&&i.focus({preventScroll:!0}))}var o=Ft(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===dr?(r.handleSelect(o,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1)):"Escape"===t?(e.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):"Tab"===t&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:lr})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),kt(Et(r),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),kt(Et(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=Ft(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:lr});else if(!r.props.disabledKeyboardNavigation){var i;switch(t){case"ArrowLeft":i=r.props.showWeekPicker?Ce.default(n,1):ke.default(n,1);break;case"ArrowRight":i=r.props.showWeekPicker?be.default(n,1):ve.default(n,1);break;case"ArrowUp":i=Ce.default(n,1);break;case"ArrowDown":i=be.default(n,1);break;case"PageUp":i=Se.default(n,1);break;case"PageDown":i=_e.default(n,1);break;case"Home":i=Te.default(n,1);break;case"End":i=xe.default(n,1);break;default:i=null}if(!i)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:lr}));if(e.preventDefault(),r.setState({lastPreSelectChange:dr}),r.props.adjustDateOnChange&&r.setSelected(i),r.setPreSelection(i),r.props.inline){var o=je.default(n),a=je.default(i),s=Ae.default(n),l=Ae.default(i);o!==a||s!==l?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),kt(Et(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.sendFocusBackToInput())})),kt(Et(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),kt(Et(r),"clear",(function(){r.onClearClick()})),kt(Et(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),kt(Et(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?de.default.createElement(sr,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,holidays:Cn(r.modifyHolidays()),includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:ar,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),kt(Et(r),"renderAriaLiveRegion",(function(){var e,t=r.props,n=t.dateFormat,i=t.locale,o=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(Ut(r.props.startDate,{dateFormat:o,locale:i}),". ").concat(r.props.endDate?"End date: "+Ut(r.props.endDate,{dateFormat:o,locale:i}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(Ut(r.props.selected,{dateFormat:n,locale:i})):r.props.showYearPicker?"Selected year: ".concat(Ut(r.props.selected,{dateFormat:"yyyy",locale:i})):r.props.showMonthYearPicker?"Selected month: ".concat(Ut(r.props.selected,{dateFormat:"MMMM yyyy",locale:i})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(Ut(r.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(Ut(r.props.selected,{dateFormat:o,locale:i})),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)})),kt(Et(r),"renderDateInput",(function(){var e,t=pe.default(r.props.className,kt({},ar,r.state.open)),n=r.props.customInput||de.default.createElement("input",{type:"text"}),i=r.props.customInputRef||"ref",o="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=Ut(e,n),i=t?Ut(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,r.props):Ut(r.props.selected,r.props);return de.default.cloneElement(n,(kt(kt(kt(kt(kt(kt(kt(kt(kt(kt(e={},i,(function(e){r.input=e})),"value",o),"onBlur",r.handleBlur),"onChange",r.handleChange),"onClick",r.onInputClick),"onFocus",r.handleFocus),"onKeyDown",r.onInputKeyDown),"id",r.props.id),"name",r.props.name),"form",r.props.form),kt(kt(kt(kt(kt(kt(kt(kt(kt(kt(e,"autoFocus",r.props.autoFocus),"placeholder",r.props.placeholderText),"disabled",r.props.disabled),"autoComplete",r.props.autoComplete),"className",pe.default(n.props.className,t)),"title",r.props.title),"readOnly",r.props.readOnly),"required",r.props.required),"tabIndex",r.props.tabIndex),"aria-describedby",r.props.ariaDescribedBy),kt(kt(kt(e,"aria-invalid",r.props.ariaInvalid),"aria-labelledby",r.props.ariaLabelledBy),"aria-required",r.props.ariaRequired)))})),kt(Et(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.disabled,i=e.selected,o=e.startDate,a=e.endDate,s=e.clearButtonTitle,l=e.clearButtonClassName,c=void 0===l?"":l,u=e.ariaLabelClose,d=void 0===u?"Close":u;return!t||null==i&&null==o&&null==a?null:de.default.createElement("button",{type:"button",className:pe.default("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":d,onClick:r.onClearClick,title:s,tabIndex:-1})})),r.state=r.calcInitialState(),r.preventFocusTimeout=null,r}return xt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?je.default(n)!==je.default(r)||Ae.default(n)!==Ae.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:kn(this.props.highlightDates)}),t.focused||Jt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,i=e.toggleCalendarOnIconClick,o=this.state.open;return de.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&de.default.createElement(tr,Ct({icon:n,className:"".concat(r," ").concat(o&&"react-datepicker-ignore-onclickoutside")},i?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?de.default.createElement(ir,{enableTabLoop:this.props.enableTabLoop},de.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=de.default.createElement(nr,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),de.default.createElement("div",null,this.renderInputContainer(),t)}return de.default.createElement(or,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:At,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(de.default.Component),ur="input",dr="navigate";e.CalendarContainer=Jn,e.default=cr,e.getDefaultLocale=en,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(18178),n(46254),n(19160),n(45616),n(82249),n(70669),n(79822),n(47175),n(33251),n(46966),n(41959),n(42737),n(9006),n(16964),n(5515),n(99178),n(87842),n(23641),n(10237),n(57709),n(74995),n(39296),n(28012),n(29251),n(70893),n(339),n(9403),n(6187),n(89233),n(16930),n(37943),n(67167),n(60322),n(30062),n(80800),n(40766),n(23743),n(92790),n(94297),n(29596),n(79035),n(97398),n(47860),n(20445),n(48590),n(65745),n(4447),n(69952),n(92119),n(98852),n(36978),n(59074),n(68642),n(82969),n(97233),n(67246),n(3685),n(34611),n(55750),n(35345),n(22297),n(52053),n(22149))},40662:(e,t,n)=>{"use strict";var r=n(30758),i=n(18178);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,s=60107,l=60108,c=60114,u=60109,d=60110,p=60112,h=60113,f=60120,m=60115,g=60116,y=60121,v=60117,b=60119,_=60129,w=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;a=x("react.portal"),s=x("react.fragment"),l=x("react.strict_mode"),c=x("react.profiler"),u=x("react.provider"),d=x("react.context"),p=x("react.forward_ref"),h=x("react.suspense"),f=x("react.suspense_list"),m=x("react.memo"),g=x("react.lazy"),y=x("react.block"),v=x("react.fundamental"),b=x("react.scope"),_=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function k(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case s:return"Fragment";case a:return"Portal";case c:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case f:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return(e.displayName||"Context")+".Consumer";case u:return(e._context.displayName||"Context")+".Provider";case p:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return k(e.type);case y:return k(e._render);case g:t=e._payload,e=e._init;try{return k(e(t))}catch(n){}}return null}var C=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S={};function M(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var T=new Uint16Array(16),E=0;15>E;E++)T[E]=E+1;T[15]=0;var P=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,I=Object.prototype.hasOwnProperty,O={},L={};function R(e){return!!I.call(L,e)||!I.call(O,e)&&(P.test(e)?L[e]=!0:(O[e]=!0,!1))}function j(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){D[e]=new j(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];D[t]=new j(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){D[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){D[e]=new j(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){D[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){D[e]=new j(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){D[e]=new j(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){D[e]=new j(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){D[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)}));var A=/[\-:]([a-z])/g;function N(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(A,N);D[t]=new j(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(A,N);D[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(A,N);D[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){D[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)})),D.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){D[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)}));var F=/["'&<>]/;function z(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=F.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}function B(e,t){var n,r=D.hasOwnProperty(e)?D[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+z(t)+'"')):R(e)?e+'="'+z(t)+'"':""}var U="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},$=null,V=null,q=null,Z=!1,H=!1,G=null,W=0;function Y(){if(null===$)throw Error(o(321));return $}function K(){if(0<W)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function X(){return null===q?null===V?(Z=!1,V=q=K()):(Z=!0,q=V):null===q.next?(Z=!1,q=q.next=K()):(Z=!0,q=q.next),q}function J(e,t,n,r){for(;H;)H=!1,W+=1,q=null,n=e(t,r);return Q(),n}function Q(){$=null,H=!1,V=null,W=0,q=G=null}function ee(e,t){return"function"===typeof t?t(e):t}function te(e,t,n){if($=Y(),q=X(),Z){var r=q.queue;if(t=r.dispatch,null!==G&&void 0!==(n=G.get(r))){G.delete(r),r=q.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return q.memoizedState=r,[r,t]}return[q.memoizedState,t]}return e=e===ee?"function"===typeof t?t():t:void 0!==n?n(t):t,q.memoizedState=e,e=(e=q.queue={last:null,dispatch:null}).dispatch=re.bind(null,$,e),[q.memoizedState,e]}function ne(e,t){if($=Y(),t=void 0===t?null:t,null!==(q=X())){var n=q.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!U(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),q.memoizedState=[e,t],e}function re(e,t,n){if(!(25>W))throw Error(o(301));if(e===$)if(H=!0,e={action:n,next:null},null===G&&(G=new Map),void 0===(n=G.get(t)))G.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ie(){}var oe=null,ae={readContext:function(e){var t=oe.threadID;return M(e,t),e[t]},useContext:function(e){Y();var t=oe.threadID;return M(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){$=Y();var t=(q=X()).memoizedState;return null===t?(e={current:e},q.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:ie,useEffect:ie,useDebugValue:ie,useDeferredValue:function(e){return Y(),e},useTransition:function(){return Y(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(oe.identifierPrefix||"")+"R:"+(oe.uniqueID++).toString(36)},useMutableSource:function(e,t){return Y(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ce={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ue=r({menuitem:!0},ce),de={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var he=/([A-Z])/g,fe=/^ms-/,me=i.Children.toArray,ge=C.ReactCurrentDispatcher,ye={listing:!0,pre:!0,textarea:!0},ve=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,be={},_e={};var we=Object.prototype.hasOwnProperty,xe={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ke(e,t){if(void 0===e)throw Error(o(152,k(t)||"Component"))}function Ce(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&"object"===typeof(r=e.contextType)&&null!==r)return M(r,n),r[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=S;return t}(a,t,n,s),c=[],u=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(i.props,l,d),"function"===typeof a.getDerivedStateFromProps){var p=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=p&&(s.state=r({},s.state,p))}}else if($={},s=a(i.props,l,d),null==(s=J(a,i.props,s,l))||null==s.render)return void ke(e=s,a);if(s.props=i.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){d=c;var h=u;if(c=null,u=!1,h&&1===d.length)s.state=d[0];else{p=h?d[0]:s.state;var f=!0;for(h=h?1:0;h<d.length;h++){var m=d[h];null!=(m="function"===typeof m?m.call(s,p,i.props,l):m)&&(f?(f=!1,p=r({},p,m)):r(p,m))}s.state=p}}else c=null;if(ke(e=s.render(),a),"function"===typeof s.getChildContext&&"object"===typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var y in g)if(!(y in i))throw Error(o(108,k(a)||"Unknown",y))}g&&(t=r({},t,g))}for(;i.isValidElement(e);){var s=e,l=s.type;if("function"!==typeof l)break;a(s,l)}return{child:e,context:t}}var Se=function(){function e(e,t,n){i.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=i.isValidElement(e)?[e]:me(e)):e=me(e),e={type:null,domNamespace:se,children:e,childIndex:0,context:S,footer:""};var r=T[0];if(0===r){var a=T,l=2*(r=a.length);if(!(65536>=l))throw Error(o(304));var c=new Uint16Array(l);for(c.set(a),(T=c)[0]=r+1,a=r;a<l-1;a++)T[a]=a+1;T[l-1]=0}else T[0]=T[r];this.threadID=r,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;T[e]=T[0],T[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;M(n,r);var i=n[r];this.contextStack[t]=n,this.contextValueStack[t]=i,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=oe;oe=this;var n=ge.current;ge.current=ae;try{for(var r=[""],i=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;T[a]=T[0],T[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===u)this.popProvider(s.type);else if(s.type===h){this.suspenseDepth--;var c=r.pop();if(i){i=!1;var d=s.fallbackFrame;if(!d)throw Error(o(303));this.stack.push(d),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var p=s.children[s.childIndex++],f="";try{f+=this.render(p,s.context,s.domNamespace)}catch(m){if(null!=m&&"function"===typeof m.then)throw Error(o(294));throw m}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=f}}return r[0]}finally{ge.current=n,oe=t,Q()}},t.render=function(e,t,n){if("string"===typeof e||"number"===typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?z(n):this.previousWasTextNode?"\x3c!-- --\x3e"+z(n):(this.previousWasTextNode=!0,z(n));if(e=(t=Ce(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(o(257));throw Error(o(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var y=e.type;if("string"===typeof y)return this.renderDOM(e,t,n);switch(y){case w:case _:case l:case c:case f:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(o(294));case b:throw Error(o(343))}if("object"===typeof y&&null!==y)switch(y.$$typeof){case p:$={};var x=y.render(e.props,e.ref);return x=J(y.render,e.props,x,e.ref),x=me(x),this.stack.push({type:null,domNamespace:n,children:x,childIndex:0,context:t,footer:""}),"";case m:return e=[i.createElement(y.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:y=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:y=e.type,x=e.props;var k=this.threadID;return M(y,k),y=me(x.children(y[k])),this.stack.push({type:e,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case v:throw Error(o(338));case g:return y=(x=(y=e.type)._init)(y._payload),e=[i.createElement(y,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(o(130,null==y?y:typeof y,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&le(a),!be.hasOwnProperty(a)){if(!ve.test(a))throw Error(o(65,a));be[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw Error(o(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(o(93));c=c[0]}l=""+c}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(void 0===e||null===e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var d=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var p=0;p<c.length;p++)if(""+c[p]===d){l=!0;break}}else l=""+c===d;s=r({selected:void 0,children:void 0},s,{selected:l,children:u})}}if(l=s){if(ue[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(o(137,a));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(o(60));if("object"!==typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=l.style&&"object"!==typeof l.style)throw Error(o(62))}l=s,c=this.makeStaticMarkup,u=1===this.stack.length,d="<"+e.type;e:if(-1===a.indexOf("-"))p="string"===typeof l.is;else switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":p=!1;break e;default:p=!0}for(w in l)if(we.call(l,w)){var h=l[w];if(null!=h){if("style"===w){var f=void 0,m="",g="";for(f in h)if(h.hasOwnProperty(f)){var y=0===f.indexOf("--"),v=h[f];if(null!=v){if(y)var b=f;else if(b=f,_e.hasOwnProperty(b))b=_e[b];else{var _=b.replace(he,"-$1").toLowerCase().replace(fe,"-ms-");b=_e[b]=_}m+=g+b+":",g=f,m+=y=null==v||"boolean"===typeof v||""===v?"":y||"number"!==typeof v||0===v||de.hasOwnProperty(g)&&de[g]?(""+v).trim():v+"px",g=";"}}h=m||null}f=null,p?xe.hasOwnProperty(w)||(f=R(f=w)&&null!=h?f+'="'+z(h)+'"':""):f=B(w,h),f&&(d+=" "+f)}}c||u&&(d+=' data-reactroot=""');var w=d;l="",ce.hasOwnProperty(a)?w+="/>":(w+=">",l="</"+e.type+">");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"===typeof(c=s.children)||"number"===typeof c){c=z(c);break e}c=null}return null!=c?(s=[],ye.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}();t.renderToString=function(e,t){e=new Se(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}}},82391:(e,t,n)=>{"use strict";var r=n(18178),i=n(30758),o=n(49241);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);y[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);y[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,k=60106,C=60107,S=60108,M=60114,T=60109,E=60110,P=60112,I=60113,O=60120,L=60115,R=60116,j=60121,D=60128,A=60129,N=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;x=z("react.element"),k=z("react.portal"),C=z("react.fragment"),S=z("react.strict_mode"),M=z("react.profiler"),T=z("react.provider"),E=z("react.context"),P=z("react.forward_ref"),I=z("react.suspense"),O=z("react.suspense_list"),L=z("react.memo"),R=z("react.lazy"),j=z("react.block"),z("react.scope"),D=z("react.opaque.id"),A=z("react.debug_trace_mode"),N=z("react.offscreen"),F=z("react.legacy_hidden")}var B,U="function"===typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function V(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var q=!1;function Z(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function H(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1);case 11:return e=Z(e.type.render,!1);case 22:return e=Z(e.type._render,!1);case 1:return e=Z(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case M:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case L:return G(e.type);case j:return G(e._render);case R:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ce(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ve).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var xe=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Me=null,Te=null,Ee=null;function Pe(e){if(e=ni(e)){if("function"!==typeof Me)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Me(e.stateNode,e.type,t))}}function Ie(e){Te?Ee?Ee.push(e):Ee=[e]:Te=e}function Oe(){if(Te){var e=Te,t=Ee;if(Ee=Te=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Le(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function je(){}var De=Le,Ae=!1,Ne=!1;function Fe(){null===Te&&null===Ee||(je(),Oe())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(d)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){Be=!1}function $e(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,qe=null,Ze=!1,He=null,Ge={onError:function(e){Ve=!0,qe=e}};function We(e,t,n,r,i,o,a,s,l){Ve=!1,qe=null,$e.apply(Ge,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ct=new Map,ut=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ft(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&(null!==(t=ni(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ti(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&yt(at)&&(at=null),null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),ct.forEach(vt),ut.forEach(vt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==st&&_t(st,e),null!==lt&&_t(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function xt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},Ct={},St={};function Mt(e){if(Ct[e])return Ct[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Ct[e]=n[t];return e}d&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Tt=Mt("animationend"),Et=Mt("animationiteration"),Pt=Mt("animationstart"),It=Mt("transitionend"),Ot=new Map,Lt=new Map,Rt=["abort","abort",Tt,"animationEnd",Et,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",It,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Lt.set(r,t),Ot.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Dt=8;function At(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Nt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Dt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(r=At(l),i=Dt):0!==(s&=o)&&(r=At(s),i=Dt)}else 0!==(o=n&~a)?(r=At(o),i=Dt):0!==s&&(r=At(s),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(At(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?zt(10,t):e;case 10:return 0===(e=Bt(192&~t))?zt(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Zt|0)|0},qt=Math.log,Zt=Math.LN2;var Ht=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,Wt=!0;function Yt(e,t,n,r){Ae||je();var i=Xt,o=Ae;Ae=!0;try{Re(i,e,t,n,r)}finally{(Ae=o)||Fe()}}function Kt(e,t,n,r){Gt(Ht,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Wt)if((i=0===(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ft(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ft(e,r)}jr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Se(r);if(null!==(i=ti(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return jr(e,t,r,i,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),hn=i({},dn,{view:0,detail:0}),fn=sn(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(mn),yn=sn(i({},mn,{dataTransfer:0})),vn=sn(i({},hn,{relatedTarget:0})),bn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(_n),xn=sn(i({},dn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return Mn}var En=i({},hn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=sn(En),In=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=sn(Rn),Dn=[9,13,27,32],An=d&&"CompositionEvent"in window,Nn=null;d&&"documentMode"in document&&(Nn=document.documentMode);var Fn=d&&"TextEvent"in window&&!Nn,zn=d&&(!An||Nn&&8<Nn&&11>=Nn),Bn=String.fromCharCode(32),Un=!1;function $n(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ie(r),0<(t=Ar(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Yn=null;function Kn(e){Er(e,0)}function Xn(e){if(X(ri(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Qn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Wn&&(Wn.detachEvent("onpropertychange",ir),Yn=Wn=null)}function ir(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];if(Gn(t,Yn,e,Se(e)),e=Kn,Ae)e(t);else{Ae=!0;try{Le(e,t)}finally{Ae=!1,Fe()}}}}function or(e,t,n){"focusin"===e?(rr(),Yn=n,(Wn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function sr(e,t){if("click"===e)return Xn(t)}function lr(e,t){if("input"===e||"change"===e)return Xn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,br=null,_r=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_r&&dr(_r,r)||(_r=r,0<(r=Ar(br,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Rt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<kr.length;Cr++)Lt.set(kr[Cr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,c){if(We.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var u=qe;Ve=!1,qe=null,Ze||(Ze=!0,He=u)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,c),o=l}}}if(Ze)throw e=He,Ze=!1,He=null,e}function Pr(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Ir]||(e[Ir]=!0,s.forEach((function(t){Mr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Mr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Rr(o,e,i,t),a.add(s))}function Rr(e,t,n,r){var i=Lt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return De(e,t,n)}finally{Ne=!1,Fe()}}((function(){var r=o,i=Se(n),a=[];e:{var s=Ot.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Tt:case Et:case Pt:l=bn;break;case It:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=In}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=ze(f,p))&&u.push(Dr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!ti(c)&&!c[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ti(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=In,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:ri(l),h=null==c?s:ri(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,ti(i)===r&&((u=new u(p,f+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Nr(h))f++;for(h=0,m=p;m;m=Nr(m))h++;for(;0<f-h;)u=Nr(u),f--;for(;0<h-f;)p=Nr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Nr(u),p=Nr(p)}u=null}else u=null;null!==l&&Fr(a,s,l,u,!1),null!==c&&null!==d&&Fr(a,d,c,u,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Hn(s))if(Qn)g=lr;else{g=ar;var y=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Gn(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ie(s,"number",s.value)),y=r?ri(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(vr=y,br=r,_r=null);break;case"focusout":_r=br=vr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(a,n,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(a,n,i)}var v;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(v=nn()):(en="value"in(Qt=i)?Qt.value:Qt.textContent,qn=!0)),0<(y=Ar(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Vn(n))&&(b.data=v))),(v=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!An&&$n(e,t)?(e=nn(),tn=en=Qt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ar(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Er(a,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Dr(e,o,i)),null!=(o=ze(e,t))&&r.push(Dr(e,o,i))),e=e.return}return r}function Nr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=ze(n,o))&&a.unshift(Dr(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Dr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function zr(){}var Br=null,Ur=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"===typeof setTimeout?setTimeout:void 0,Zr="function"===typeof clearTimeout?clearTimeout:void 0;function Hr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Kr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Kr,Jr="__reactProps$"+Kr,Qr="__reactContainer$"+Kr,ei="__reactEvents$"+Kr;function ti(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[Xr])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Xr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Jr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ci(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ui(e,t){si++,ai[si]=e.current,e.current=t}var di={},pi=li(di),hi=li(!1),fi=di;function mi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ci(hi),ci(pi)}function vi(e,t,n){if(pi.current!==di)throw Error(a(168));ui(pi,t),ui(hi,n)}function bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,G(t)||"Unknown",o));return i({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,fi=pi.current,ui(pi,e),ui(hi,hi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,fi),r.__reactInternalMemoizedMergedChildContext=e,ci(hi),ci(pi),ui(pi,e)):ci(hi),ui(hi,n)}var xi=null,ki=null,Ci=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Mi=o.unstable_cancelCallback,Ti=o.unstable_shouldYield,Ei=o.unstable_requestPaint,Pi=o.unstable_now,Ii=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Li=o.unstable_UserBlockingPriority,Ri=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Ai={},Ni=void 0!==Ei?Ei:function(){},Fi=null,zi=null,Bi=!1,Ui=Pi(),$i=1e4>Ui?Pi:function(){return Pi()-Ui};function Vi(){switch(Ii()){case Oi:return 99;case Li:return 98;case Ri:return 97;case ji:return 96;case Di:return 95;default:throw Error(a(332))}}function qi(e){switch(e){case 99:return Oi;case 98:return Li;case 97:return Ri;case 96:return ji;case 95:return Di;default:throw Error(a(332))}}function Zi(e,t){return e=qi(e),Ci(e,t)}function Hi(e,t,n){return e=qi(e),Si(e,t,n)}function Gi(){if(null!==zi){var e=zi;zi=null,Mi(e)}Wi()}function Wi(){if(!Bi&&null!==Fi){Bi=!0;var e=0;try{var t=Fi;Zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(n){throw null!==Fi&&(Fi=Fi.slice(e+1)),Si(Oi,Gi),n}finally{Bi=!1}}}var Yi=w.ReactCurrentBatchConfig;function Ki(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xi=li(null),Ji=null,Qi=null,eo=null;function to(){eo=Qi=Ji=null}function no(e){var t=Xi.current;ci(Xi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Ji=e,eo=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Aa=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Ji)throw Error(a(308));Qi=t,Ji.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=o.baseState,s=0,d=u=c=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(l=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){p=f.call(h,p,l);break e}p=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null===(l="function"===typeof(f=m.payload)?f.call(h,p,l):f)||void 0===l)break e;p=i({},p,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,c=p):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Us|=s,e.lanes=s,e.memoizedState=p}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),i=hl(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),i=hl(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=hl(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),uo(e,i),fl(e,r,n)}};function vo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(i,o))}function bo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"===typeof o&&null!==o?o=oo(o):(i=gi(t)?fi:pi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=oo(o):(o=gi(t)?fi:pi.current,i.context=mi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var xo=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case k:return(t=Xl(t,e.mode,n)).return=e,t}if(xo(t)||$(t))return(t=Wl(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===C?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null}if(xo(n)||$(n))return null!==i?null:d(e,t,n,r,null);Co(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xo(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);Co(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=h(i,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],l))&&(a=o(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),c}function g(i,s,l,c){var u=$(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=h(i,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(i,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,c))&&(s=o(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"===typeof o&&null!==o&&o.type===C&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case x:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===C){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===C?((r=Wl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Gl(o.type,o.key,o.props,null,e.mode,l)).ref=ko(e,r,o),l.return=e,e=l)}return s(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Kl(o,e.mode,l)).return=e,e=r),s(e);if(xo(o))return m(e,r,o,l);if($(o))return g(e,r,o,l);if(u&&Co(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Mo=So(!0),To=So(!1),Eo={},Po=li(Eo),Io=li(Eo),Oo=li(Eo);function Lo(e){if(e===Eo)throw Error(a(174));return e}function Ro(e,t){switch(ui(Oo,t),ui(Io,e),ui(Po,Eo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Po),ui(Po,t)}function jo(){ci(Po),ci(Io),ci(Oo)}function Do(e){Lo(Oo.current);var t=Lo(Po.current),n=he(t,e.type);t!==n&&(ui(Io,e),ui(Po,n))}function Ao(e){Io.current===e&&(ci(Po),ci(Io))}var No=li(0);function Fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zo=null,Bo=null,Uo=!1;function $o(e,t){var n=ql(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qo(e){if(Uo){var t=Bo;if(t){var n=t;if(!Vo(e,t)){if(!(t=Gr(n.nextSibling))||!Vo(e,t))return e.flags=-1025&e.flags|2,Uo=!1,void(zo=e);$o(zo,n)}zo=e,Bo=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Uo=!1,zo=e}}function Zo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zo=e}function Ho(e){if(e!==zo)return!1;if(!Uo)return Zo(e),Uo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Bo;t;)$o(e,t),t=Gr(t.nextSibling);if(Zo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bo=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=zo?Gr(e.stateNode.nextSibling):null;return!0}function Go(){Bo=zo=null,Uo=!1}var Wo=[];function Yo(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var Ko=w.ReactCurrentDispatcher,Xo=w.ReactCurrentBatchConfig,Jo=0,Qo=null,ea=null,ta=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,i,o){if(Jo=o,Qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?La:Ra,e=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ta=ea=null,t.updateQueue=null,Ko.current=ja,e=n(r,i)}while(ra)}if(Ko.current=Oa,t=null!==ea&&null!==ea.next,Jo=0,ta=ea=Qo=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Qo.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Qo.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Qo.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Qo.memoizedState=ta=e:ta=ta.next=e}return ta}function ca(e,t){return"function"===typeof t?t(e):t}function ua(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,c=i;do{var u=c.lane;if((Jo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Qo.lanes|=u,Us|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,cr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);cr(o,t.memoizedState)||(Aa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Wo.push(t))),e)return n(t._source);throw Wo.push(t),Error(a(350))}function ha(e,t,n,r){var i=Rs;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Ko.current,c=l.useState((function(){return pa(i,t,n)})),u=c[1],d=c[0];c=ta;var p=e.memoizedState,h=p.refs,f=h.getSnapshot,m=p.source;p=p.subscribe;var g=Qo;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=o(t._source);if(!cr(s,e)){e=n(t._source),cr(d,e)||(u(e),e=hl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Vt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(f,n)&&cr(m,t)&&cr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:d}).dispatch=u=Ia.bind(null,Qo,e),c.queue=e,c.baseQueue=null,d=pa(i,t,n),c.memoizedState=c.baseState=d),d}function fa(e,t,n){return ha(la(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Ia.bind(null,Qo,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qo.updateQueue)?(t={lastEffect:null},Qo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},sa().memoizedState=e}function va(){return la().memoizedState}function ba(e,t,n,r){var i=sa();Qo.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function _a(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ea){var a=ea.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void ga(t,n,o,r)}Qo.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function wa(e,t){return ba(516,4,e,t)}function xa(e,t){return _a(516,4,e,t)}function ka(e,t){return _a(4,2,e,t)}function Ca(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_a(4,2,Ca.bind(null,t,e),n)}function Ma(){}function Ta(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ea(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Vi();Zi(98>n?98:n,(function(){e(!0)})),Zi(97<n?97:n,(function(){var n=Xo.transition;Xo.transition=1;try{e(!1),t()}finally{Xo.transition=n}}))}function Ia(e,t,n){var r=pl(),i=hl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Qo||null!==a&&a===Qo)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,cr(l,s))return}catch(c){}fl(e,i,r)}}var Oa={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},La={readContext:oo,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ia.bind(null,Qo,e),[r.memoizedState,e]},useRef:ya,useState:ma,useDebugValue:Ma,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return wa((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return ya(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Uo){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&Qo.mode)&&(Qo.flags|=516,ga(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:oo,useCallback:Ta,useContext:oo,useEffect:xa,useImperativeHandle:Sa,useLayoutEffect:ka,useMemo:Ea,useReducer:ua,useRef:va,useState:function(){return ua(ca)},useDebugValue:Ma,useDeferredValue:function(e){var t=ua(ca),n=t[0],r=t[1];return xa((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=ua(ca)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(ca)[0]},unstable_isNewReconciler:!1},ja={readContext:oo,useCallback:Ta,useContext:oo,useEffect:xa,useImperativeHandle:Sa,useLayoutEffect:ka,useMemo:Ea,useReducer:da,useRef:va,useState:function(){return da(ca)},useDebugValue:Ma,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return xa((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},Da=w.ReactCurrentOwner,Aa=!1;function Na(e,t,n,r){t.child=null===e?To(t,null,n,r):Mo(t,e.child,n,r)}function Fa(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=aa(e,t,n,r,o,i),null===e||Aa?(t.flags|=1,Na(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function za(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Zl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Hl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Aa=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);0!==(16384&e.flags)&&(Aa=!0)}return Va(e,t,n,r,o)}function Ua(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},xl(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xl(t,e),null;t.memoizedState={baseLanes:0},xl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xl(t,r);return Na(e,t,i,n),t.child}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,i){var o=gi(n)?fi:pi.current;return o=mi(t,o),io(t,i),n=aa(e,t,n,r,o,i),null===e||Aa?(t.flags|=1,Na(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function qa(e,t,n,r,i){if(gi(n)){var o=!0;_i(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=oo(c):c=mi(t,c=gi(n)?fi:pi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&_o(t,a,r,c),ao=!1;var p=t.memoizedState;a.state=p,ho(t,r,a,i),l=t.memoizedState,s!==r||p!==l||hi.current||ao?("function"===typeof u&&(go(t,n,u,r),l=t.memoizedState),(s=ao||vo(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ki(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=oo(l):l=mi(t,l=gi(n)?fi:pi.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&_o(t,a,r,l),ao=!1,p=t.memoizedState,a.state=p,ho(t,r,a,i);var f=t.memoizedState;s!==d||p!==f||hi.current||ao?("function"===typeof h&&(go(t,n,h,r),f=t.memoizedState),(c=ao||vo(t,n,c,r,p,f,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Za(e,t,n,r,o,i)}function Za(e,t,n,r,i,o){$a(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&wi(t,n,!1),os(e,t,o);r=t.stateNode,Da.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Mo(t,e.child,null,o),t.child=Mo(t,null,s,o)):Na(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Ro(e,t.containerInfo)}var Ga,Wa,Ya,Ka,Xa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,i=t.pendingProps,o=No.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(No,1&o),null===e?(void 0!==i.fallback&&qo(t),e=i.children,o=i.fallback,a?(e=Qa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof i.unstable_expectedLoadTime?(e=Qa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Yl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=ts(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,i):(n=es(e,t,i.children,n),t.memoizedState=null,n))}function Qa(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Yl(t,i,0,null),n=Wl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(a,s),null!==e?r=Hl(e,r):(r=Wl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Na(e,t,r.children,n),0!==(2&(r=No.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(No,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Us|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Uo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return gi(t.type)&&yi(),null;case 3:return jo(),ci(hi),ci(pi),Yo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ho(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Wa(t),null;case 5:Ao(t);var o=Lo(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Lo(Po.current),Ho(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Jr]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Pr(Sr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":le(r,s),Pr("invalid",r)}for(var c in ke(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Pr("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=zr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=pe(n)),e===de.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Xr]=t,e[Jr]=r,Ga(e,t,!1,!1),t.stateNode=e,c=Ce(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),o=r;break;case"iframe":case"object":case"embed":Pr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sr.length;o++)Pr(Sr[o],e);o=r;break;case"source":Pr("error",e),o=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),o=r;break;case"details":Pr("toggle",e),o=r;break;case"input":ee(e,r),o=Q(e,r),Pr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Pr("invalid",e);break;default:o=r}ke(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?we(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"===typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Pr("scroll",e):null!=d&&_(e,s,d,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=zr)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Lo(Oo.current),Lo(Po.current),Ho(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return ci(No),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ho(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&No.current)?0===Fs&&(Fs=3):(0!==Fs&&3!==Fs||(Fs=4),null===Rs||0===(134217727&Us)&&0===(134217727&$s)||vl(Rs,Ds))),(r||n)&&(t.flags|=4),null);case 4:return jo(),Wa(t),null===e&&Or(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ci(No),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==Fs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Fo(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(No,1&No.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Hs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fo(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Uo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=No.current,ui(No,s?1&t|2:1&t),n):null;case 23:case 24:return kl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(jo(),ci(hi),ci(pi),Yo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ao(e),null;case 13:return ci(No),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(No),null;case 4:return jo(),null;case 10:return no(e),null;case 23:case 24:return kl(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(){},Ya=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lo(Po.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=zr)}for(d in ke(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var c=o[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Pr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Xs=r),us(0,t)},n}function hs(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return us(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Bl(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(a(163))}function ys(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Nl(n,e),Al(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(a(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(ki&&"function"===typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(xi,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Nl(t,n);else{r=t;try{i()}catch(o){Bl(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Bl(t,o)}break;case 5:ms(t);break;case 4:Ss(e,t)}}function _s(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function xs(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ks(e,n,t):Cs(e,n,t)}function ks(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=zr));else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Cs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Cs(e,t,n),e=e.sibling;null!==e;)Cs(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ms(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,i),t=Ce(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ye(n,l):_(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Zs=$i(),vs(t.child,!0)),void Ts(t);case 19:return void Ts(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(a(163))}function Ts(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=$l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Es(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ps=Math.ceil,Is=w.ReactCurrentDispatcher,Os=w.ReactCurrentOwner,Ls=0,Rs=null,js=null,Ds=0,As=0,Ns=li(0),Fs=0,zs=null,Bs=0,Us=0,$s=0,Vs=0,qs=null,Zs=0,Hs=1/0;function Gs(){Hs=$i()+500}var Ws,Ys=null,Ks=!1,Xs=null,Js=null,Qs=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function pl(){return 0!==(48&Ls)?$i():-1!==sl?sl:sl=$i()}function hl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vi()?1:2;if(0===ll&&(ll=Bs),0!==Yi.transition){0!==cl&&(cl=null!==qs?qs.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vi(),0!==(4&Ls)&&98===e?e=zt(12,ll):e=zt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function fl(e,t,n){if(50<ol)throw ol=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;$t(e,t,n),e===Rs&&($s|=t,4===Fs&&vl(e,Ds));var r=Vi();1===t?0!==(8&Ls)&&0===(48&Ls)?bl(e):(gl(e,n),0===Ls&&(Gs(),Gi())):(0===(4&Ls)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),gl(e,n)),qs=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,At(c);var d=Dt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Nt(e,e===Rs?Ds:0),t=Dt,0===r)null!==n&&(n!==Ai&&Mi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ai&&Mi(n)}15===t?(n=bl.bind(null,e),null===Fi?(Fi=[n],zi=Si(Oi,Wi)):Fi.push(n),n=Ai):14===t?n=Hi(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Hi(n,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function yl(e){if(sl=-1,cl=ll=0,0!==(48&Ls))throw Error(a(327));var t=e.callbackNode;if(Dl()&&e.callbackNode!==t)return null;var n=Nt(e,e===Rs?Ds:0);if(0===n)return null;var r=n,i=Ls;Ls|=16;var o=Ml();for(Rs===e&&Ds===r||(Gs(),Cl(e,r));;)try{Pl();break}catch(l){Sl(e,l)}if(to(),Is.current=o,Ls=i,null!==js?r=0:(Rs=null,Ds=0,r=Fs),0!==(Bs&$s))Cl(e,0);else if(0!==r){if(2===r&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Ft(e))&&(r=Tl(e,n))),1===r)throw t=zs,Cl(e,0),vl(e,n),gl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ll(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Zs+500-$i())){if(0!==Nt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){pl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qr(Ll.bind(null,e),r);break}Ll(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Vt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=$i()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=qr(Ll.bind(null,e),n);break}Ll(e);break;default:throw Error(a(329))}}return gl(e,$i()),e.callbackNode===t?yl.bind(null,e):null}function vl(e,t){for(t&=~Vs,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Ls))throw Error(a(327));if(Dl(),e===Rs&&0!==(e.expiredLanes&Ds)){var t=Ds,n=Tl(e,t);0!==(Bs&$s)&&(n=Tl(e,t=Nt(e,t)))}else n=Tl(e,t=Nt(e,0));if(0!==e.tag&&2===n&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Ft(e))&&(n=Tl(e,t))),1===n)throw n=zs,Cl(e,0),vl(e,t),gl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ll(e),gl(e,$i()),null}function _l(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Gs(),Gi())}}function wl(e,t){var n=Ls;Ls&=-2,Ls|=8;try{return e(t)}finally{0===(Ls=n)&&(Gs(),Gi())}}function xl(e,t){ui(Ns,As),As|=t,Bs|=t}function kl(){As=Ns.current,ci(Ns)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:jo(),ci(hi),ci(pi),Yo();break;case 5:Ao(r);break;case 4:jo();break;case 13:case 19:ci(No);break;case 10:no(r);break;case 23:case 24:kl()}n=n.return}Rs=e,js=Hl(e.current,null),Ds=As=Bs=t,Fs=0,zs=null,Vs=$s=Us=0}function Sl(e,t){for(;;){var n=js;try{if(to(),Ko.current=Oa,na){for(var r=Qo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Jo=0,ta=ea=Qo=null,ra=!1,Os.current=null,null===n||null===n.return){Fs=1,zs=t,js=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ds,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&No.current),p=a;do{var h;if(h=13===p.tag){var f=p.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=p.updateQueue;if(null===g){var y=new Set;y.add(c),p.updateQueue=y}else g.add(c);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=co(-1,1);v.tag=2,uo(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var _=Ul.bind(null,o,c,s);c.then(_,_)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fs&&(Fs=2),l=cs(l,s),p=a;do{switch(p.tag){case 3:o=l,p.flags|=4096,t&=-t,p.lanes|=t,po(p,ps(0,o,t));break e;case 1:o=l;var w=p.type,x=p.stateNode;if(0===(64&p.flags)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Js||!Js.has(x)))){p.flags|=4096,t&=-t,p.lanes|=t,po(p,hs(p,o,t));break e}}p=p.return}while(null!==p)}Ol(n)}catch(k){t=k,js===n&&null!==n&&(js=n=n.return);continue}break}}function Ml(){var e=Is.current;return Is.current=Oa,null===e?Oa:e}function Tl(e,t){var n=Ls;Ls|=16;var r=Ml();for(Rs===e&&Ds===t||Cl(e,t);;)try{El();break}catch(i){Sl(e,i)}if(to(),Ls=n,Is.current=r,null!==js)throw Error(a(261));return Rs=null,Ds=0,Fs}function El(){for(;null!==js;)Il(js)}function Pl(){for(;null!==js&&!Ti();)Il(js)}function Il(e){var t=Ws(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?Ol(e):js=t,Os.current=null}function Ol(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,As)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&As)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Fs&&(Fs=5)}function Ll(e){var t=Vi();return Zi(99,Rl.bind(null,e,t)),null}function Rl(e,t){do{Dl()}while(null!==el);if(0!==(48&Ls))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Vt(o),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Rs&&(js=Rs=null,Ds=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ls,Ls|=32,Os.current=null,Br=Wt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(M){l=null;break e}var d=0,p=-1,h=-1,f=0,m=0,g=s,y=null;t:for(;;){for(var v;g!==l||0!==o&&3!==g.nodeType||(p=d+o),g!==c||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===s)break t;if(y===l&&++f===o&&(p=d),y===c&&++m===u&&(h=d),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:s,selectionRange:l},Wt=!1,ul=null,dl=!1,Ys=r;do{try{jl()}catch(M){if(null===Ys)throw Error(a(330));Bl(Ys,M),Ys=Ys.nextEffect}}while(null!==Ys);ul=null,Ys=r;do{try{for(s=e;null!==Ys;){var b=Ys.flags;if(16&b&&ye(Ys.stateNode,""),128&b){var _=Ys.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:xs(Ys),Ys.flags&=-3;break;case 6:xs(Ys),Ys.flags&=-3,Ms(Ys.alternate,Ys);break;case 1024:Ys.flags&=-1025;break;case 1028:Ys.flags&=-1025,Ms(Ys.alternate,Ys);break;case 4:Ms(Ys.alternate,Ys);break;case 8:Ss(s,l=Ys);var x=l.alternate;_s(l),null!==x&&_s(x)}Ys=Ys.nextEffect}}catch(M){if(null===Ys)throw Error(a(330));Bl(Ys,M),Ys=Ys.nextEffect}}while(null!==Ys);if(w=Ur,_=mr(),b=w.focusedElem,s=w.selectionRange,_!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(_=s.start,void 0===(w=s.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,x=Math.min(s.start,l),s=void 0===s.end?x:Math.min(s.end,l),!w.extend&&x>s&&(l=s,s=x,x=l),l=hr(b,x),o=hr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),x>s?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Wt=!!Br,Ur=Br=null,e.current=n,Ys=r;do{try{for(b=e;null!==Ys;){var k=Ys.flags;if(36&k&&ys(b,Ys.alternate,Ys),128&k){_=void 0;var C=Ys.ref;if(null!==C){var S=Ys.stateNode;Ys.tag,_=S,"function"===typeof C?C(_):C.current=_}}Ys=Ys.nextEffect}}catch(M){if(null===Ys)throw Error(a(330));Bl(Ys,M),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Ni(),Ls=i}else e.current=n;if(Qs)Qs=!1,el=e,tl=t;else for(Ys=r;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,8&Ys.flags&&((k=Ys).sibling=null,k.stateNode=null),Ys=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,ki&&"function"===typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(xi,n,void 0,64===(64&n.current.flags))}catch(M){}if(gl(e,$i()),Ks)throw Ks=!1,e=Xs,Xs=null,e;return 0!==(8&Ls)||Gi(),null}function jl(){for(;null!==Ys;){var e=Ys.alternate;dl||null===ul||(0!==(8&Ys.flags)?Qe(Ys,ul)&&(dl=!0):13===Ys.tag&&Es(e,Ys)&&Qe(Ys,ul)&&(dl=!0));var t=Ys.flags;0!==(256&t)&&gs(e,Ys),0===(512&t)||Qs||(Qs=!0,Hi(97,(function(){return Dl(),null}))),Ys=Ys.nextEffect}}function Dl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Zi(e,Fl)}return!1}function Al(e,t){nl.push(t,e),Qs||(Qs=!0,Hi(97,(function(){return Dl(),null})))}function Nl(e,t){rl.push(t,e),Qs||(Qs=!0,Hi(97,(function(){return Dl(),null})))}function Fl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Ls))throw Error(a(331));var t=Ls;Ls|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Bl(o,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===o)throw Error(a(330));Bl(o,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ls=t,Gi(),!0}function zl(e,t,n){uo(e,t=ps(0,t=cs(n,t),1)),t=pl(),null!==(e=ml(e,1))&&($t(e,1,t),gl(e,t))}function Bl(e,t){if(3===e.tag)zl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var i=hs(n,e=cs(t,e),1);if(uo(n,i),i=pl(),null!==(n=ml(n,1)))$t(n,1,i),gl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(Ds&n)===n&&(4===Fs||3===Fs&&(62914560&Ds)===Ds&&500>$i()-Zs?Cl(e,0):Vs|=n),gl(e,t)}function $l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vi()?1:2:(0===ll&&(ll=Bs),0===(t=Bt(62914560&~ll))&&(t=4194304))),n=pl(),null!==(e=ml(e,t))&&($t(e,t,n),gl(e,n))}function Vl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ql(e,t,n,r){return new Vl(e,t,n,r)}function Zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=ql(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Zl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case C:return Wl(n.children,i,o,t);case A:s=8,i|=16;break;case S:s=8,i|=1;break;case M:return(e=ql(12,n,t,8|i)).elementType=M,e.type=M,e.lanes=o,e;case I:return(e=ql(13,n,t,i)).type=I,e.elementType=I,e.lanes=o,e;case O:return(e=ql(19,n,t,i)).elementType=O,e.lanes=o,e;case N:return Yl(n,i,o,t);case F:return(e=ql(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case E:s=9;break e;case P:s=11;break e;case L:s=14;break e;case R:s=16,r=null;break e;case j:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=ql(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Wl(e,t,n,r){return(e=ql(7,e,r,t)).lanes=n,e}function Yl(e,t,n,r){return(e=ql(23,e,r,t)).elementType=N,e.lanes=n,e}function Kl(e,t,n){return(e=ql(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=ql(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var i=t.current,o=pl(),s=hl(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(gi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=bi(n,c,l);break e}}n=l}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),fl(i,s,o),s}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function rc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=ql(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Qr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=ec(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var l=i;i=function(){var e=ec(a);l.call(e)}}wl((function(){Ql(t,a,e,i)}))}return ec(a)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Aa=!0;else{if(0===(n&r)){switch(Aa=!1,t.tag){case 3:Ha(t),Go();break;case 5:Do(t);break;case 1:gi(t.type)&&_i(t);break;case 4:Ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(ui(No,1&No.current),null!==(t=os(e,t,n))?t.sibling:null);ui(No,1&No.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(No,No.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return os(e,t,n)}Aa=0!==(16384&e.flags)}else Aa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,pi.current),io(t,n),i=aa(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&go(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=Za(null,t,r,!0,o,n)}else t.tag=0,Na(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Zl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===L)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Va(null,t,i,e,n);break e;case 1:t=qa(null,t,i,e,n);break e;case 11:t=Fa(null,t,i,e,n);break e;case 14:t=za(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Go(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Bo=Gr(t.stateNode.containerInfo.firstChild),zo=t,o=Uo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Wo.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Na(e,t,r,n),Go();t=t.child}return t;case 5:return Do(t),null===e&&qo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Vr(r,i)?s=null:null!==o&&Vr(r,o)&&(t.flags|=16),$a(e,t),Na(e,t,s,n),t.child;case 6:return null===e&&qo(t),null;case 13:return Ja(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Mo(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ui(Xi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=cr(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!hi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=co(-1,n&-n)).tag=2,uo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ro(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Na(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),za(e,t,i,o=Ki(i.type,o),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,_i(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),Za(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},rc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Qr]=null}))},et=function(e){13===e.tag&&(fl(e,4,pl()),nc(e,4))},tt=function(e){13===e.tag&&(fl(e,67108864,pl()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=pl(),n=hl(e);fl(e,n,t),nc(e,n)}},rt=function(e,t){return t()},Me=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ii(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Le=_l,Re=function(e,t,n,r,i){var o=Ls;Ls|=4;try{return Zi(98,e.bind(null,t,n,r,i))}finally{0===(Ls=o)&&(Gs(),Gi())}},je=function(){0===(49&Ls)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,$i())}))}Gi()}(),Dl())},De=function(e,t){var n=Ls;Ls|=2;try{return e(t)}finally{0===(Ls=n)&&(Gs(),Gi())}};var sc={Events:[ni,ri,ii,Ie,Oe,Dl,{current:!1}]},lc={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cc={bundleType:lc.bundleType,version:lc.version,rendererPackageName:lc.rendererPackageName,rendererConfig:lc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:lc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{xi=uc.inject(cc),ki=uc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ls;if(0!==(48&n))return e(t);Ls|=1;try{if(e)return Zi(99,e.bind(null,t))}finally{Ls=n,Gi()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(wl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=_l,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return oc(e,t,n,!1,r)},t.version="17.0.2"},22297:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(82391)},39481:(e,t,n)=>{"use strict";e.exports=n(40662)},10663:function(e,t,n){var r,i,o;i=[t,n(56552)],r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}e.default=n.default},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},56552:function(e,t,n){var r,i,o;i=[t,n(18178),n(46254)],r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=h;var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=!1;function h(e){p=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){h(!0)}}))}catch(y){}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return p?e:e.capture}function m(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function t(){var e;l(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o._handleSwipeStart=o._handleSwipeStart.bind(o),o._handleSwipeMove=o._handleSwipeMove.bind(o),o._handleSwipeEnd=o._handleSwipeEnd.bind(o),o._onMouseDown=o._onMouseDown.bind(o),o._onMouseMove=o._onMouseMove.bind(o),o._onMouseUp=o._onMouseUp.bind(o),o._setSwiperRef=o._setSwiperRef.bind(o),o}return d(t,e),c(t,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function(e){var t=m(e),n=t.x,r=t.y;this.moveStart={x:n,y:r},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function(e){if(this.moveStart){var t=m(e),n=t.x,r=t.y,i=n-this.moveStart.x,o=r-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:i,y:o},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:i,deltaY:o}}}},{key:"_handleSwipeEnd",value:function(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,s(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},o),i)}}]),t}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=g},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},81849:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},82303:(e,t,n)=>{"use strict";var r,i=n(56634),o=(r=i)&&r.__esModule?r:{default:r};var a={tags:function(e){var t=e.id,n=e.events,r=e.dataLayer,i=e.dataLayerName,a=e.preview,s="&gtm_auth="+e.auth,l="&gtm_preview="+a;return t||(0,o.default)("GTM Id is required"),{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+l+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:"\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(n).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+l+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+i+"','"+t+"');",dataLayerVar:this.dataLayer(r,i)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}};e.exports=a},62576:(e,t,n)=>{"use strict";var r,i=n(82303),o=(r=i)&&r.__esModule?r:{default:r};var a={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=o.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,n=e.events,r=void 0===n?{}:n,i=e.dataLayer,o=e.dataLayerName,a=void 0===o?"dataLayer":o,s=e.auth,l=void 0===s?"":s,c=e.preview,u=void 0===c?"":c,d=this.gtm({id:t,events:r,dataLayer:i||void 0,dataLayerName:a,auth:l,preview:u});i&&document.head.appendChild(d.dataScript),document.head.insertBefore(d.script(),document.head.childNodes[0]),document.body.insertBefore(d.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,n=e.dataLayerName,r=void 0===n?"dataLayer":n;if(window[r])return window[r].push(t);var i=o.default.dataLayer(t,r),a=this.dataScript(i);document.head.insertBefore(a,document.head.childNodes[0])}};e.exports=a},87807:(e,t,n)=>{"use strict";var r,i=n(62576),o=(r=i)&&r.__esModule?r:{default:r};e.exports=o.default},56634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){console.warn("[react-gtm]",e)}},61214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=[["Afghanistan (\u202b\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646\u202c\u200e)","af","93"],["Albania (Shqip\xebri)","al","355"],["Algeria (\u202b\u0627\u0644\u062c\u0632\u0627\u0626\u0631\u202c\u200e)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (\xd6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (\u202b\u0627\u0644\u0628\u062d\u0631\u064a\u0646\u202c\u200e)","bh","973"],["Bangladesh (\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bd","880"],["Barbados","bb","1246"],["Belarus (\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c)","by","375"],["Belgium (Belgi\xeb)","be","32"],["Belize","bz","501"],["Benin (B\xe9nin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (\u0f60\u0f56\u0fb2\u0f74\u0f42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (R\xe9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4e2d\u56fd)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (\u202b\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202c\u200e)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus (\u039a\u03cd\u03c0\u03c1\u03bf\u03c2)","cy","357"],["Czech Republic (\u010cesk\xe1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (Rep\xfablica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202b\u0645\u0635\u0631\u202c\u200e)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xf8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xe7aise)","gf","594"],["French Polynesia (Polyn\xe9sie fran\xe7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03bb\u03bb\u03ac\u03b4\u03b1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guin\xe9e)","gn","224"],["Guinea-Bissau (Guin\xe9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6e2f)","hk","852"],["Hungary (Magyarorsz\xe1g)","hu","36"],["Iceland (\xcdsland)","is","354"],["India (\u092d\u093e\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202b\u0627\u06cc\u0631\u0627\u0646\u202c\u200e)","ir","98"],["Iraq (\u202b\u0627\u0644\u0639\u0631\u0627\u0642\u202c\u200e)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (\u202b\u05d9\u05e9\u05e8\u05d0\u05dc\u202c\u200e)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (\u65e5\u672c)","jp","81"],["Jersey","je","44",3],["Jordan (\u202b\u0627\u0644\u0623\u0631\u062f\u0646\u202c\u200e)","jo","962"],["Kazakhstan (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202b\u0627\u0644\u0643\u0648\u064a\u062a\u202c\u200e)","kw","965"],["Kyrgyzstan (\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d)","kg","996"],["Laos (\u0ea5\u0eb2\u0ea7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202b\u0644\u0628\u0646\u0627\u0646\u202c\u200e)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202b\u0644\u064a\u0628\u064a\u0627\u202c\u200e)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6fb3\u9580)","mo","853"],["Macedonia (FYROM) (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202b\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627\u202c\u200e)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (M\xe9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041c\u043e\u043d\u0433\u043e\u043b)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (\u202b\u0627\u0644\u0645\u063a\u0631\u0628\u202c\u200e)","ma","212",0],["Mozambique (Mo\xe7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103c\u1014\u103a\u1019\u102c)","mm","95"],["Namibia (Namibi\xeb)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092a\u093e\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xe9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uc870\uc120 \ubbfc\uc8fc\uc8fc\uc758 \uc778\ubbfc \uacf5\ud654\uad6d)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (\u202b\u0639\u064f\u0645\u0627\u0646\u202c\u200e)","om","968"],["Pakistan (\u202b\u067e\u0627\u06a9\u0633\u062a\u0627\u0646\u202c\u200e)","pk","92"],["Palau","pw","680"],["Palestine (\u202b\u0641\u0644\u0633\u0637\u064a\u0646\u202c\u200e)","ps","970"],["Panama (Panam\xe1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xfa)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202b\u0642\u0637\u0631\u202c\u200e)","qa","974"],["R\xe9union (La R\xe9union)","re","262",0],["Romania (Rom\xe2nia)","ro","40"],["Russia (\u0420\u043e\u0441\u0441\u0438\u044f)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xe9lemy (Saint-Barth\xe9lemy)","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie fran\xe7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe (S\xe3o Tom\xe9 e Pr\xedncipe)","st","239"],["Saudi Arabia (\u202b\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629\u202c\u200e)","sa","966"],["Senegal (S\xe9n\xe9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\ub300\ud55c\ubbfc\uad6d)","kr","82"],["South Sudan (\u202b\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","ss","211"],["Spain (Espa\xf1a)","es","34"],["Sri Lanka (\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0)","lk","94"],["Sudan (\u202b\u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202b\u0633\u0648\u0631\u064a\u0627\u202c\u200e)","sy","963"],["Taiwan (\u53f0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0e44\u0e17\u0e22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (\u202b\u062a\u0648\u0646\u0633\u202c\u200e)","tn","216"],["Turkey (T\xfcrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (\u0423\u043a\u0440\u0430\u0457\u043d\u0430)","ua","380"],["United Arab Emirates (\u202b\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629\u202c\u200e)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02bbzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xe0 del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Vi\u1ec7t Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara (\u202b\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629\u202c\u200e)","eh","212",1],["Yemen (\u202b\u0627\u0644\u064a\u0645\u0646\u202c\u200e)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1]];function i(e){n=(e||r).map((function(e){return{name:e[0],iso2:e[1],dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null}}))}var o={initialize:i,getCountries:function(){return n||i(),n}};t.default=o},61775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(18178)),i=s(n(19160)),o=s(n(48678)),a=s(n(447));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return n=function(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?p(e):t}(this,(e=u(t)).call.apply(e,[this].concat(c))),h(p(p(n)),"setDropdownPosition",(function(){n.listElement.classList.remove("hide");var e=n.props.inputTop,t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,i=n.props.inputOuterHeight,a=o.default.getOuterHeight(n.listElement),s=!(e+i+a<t+r)&&e-a>t?"-".concat(a-1,"px"):"";n.listElement.style.top=s,n.listElement.classList.remove("v-hide")})),h(p(p(n)),"appendListItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.props.preferredCountries.length;return e.map((function(e,s){var l=t?s:s+o,c={country:!0,highlight:n.props.highlightedCountry===l,preferred:t},u=(0,i.default)(c),d=n.props.isMobile?function(){}:n.handleMouseOver,p=t?"pref-":"";return r.default.createElement(a.default,{key:"".concat(p).concat(e.iso2),dialCode:e.dialCode,isoCode:e.iso2,name:e.name,onMouseOver:d,onClick:function(){return n.props.setFlag(e.iso2)},onFocus:d,flagRef:function(e){n.selectedFlag=e},innerFlagRef:function(e){n.selectedFlagInner=e},countryClass:u})}))})),h(p(p(n)),"handleMouseOver",(function(e){if(e.currentTarget.getAttribute("class").indexOf("country")>-1){var t=o.default.retrieveLiIndex(e.currentTarget);n.props.changeHighlightCountry(!0,t)}})),n}var n,s,f;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(s=[{key:"shouldComponentUpdate",value:function(e){var t=!o.default.shallowEquals(this.props,e);return t&&e.showDropdown&&(this.listElement.classList.add("v-hide"),this.setDropdownPosition()),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.preferredCountries,o=t.countries,a=t.showDropdown,s=(0,i.default)("country-list",{hide:!a}),l=this.appendListItem(n,!0),c=this.appendListItem(o),u=r.default.createElement("div",{className:"divider"});return r.default.createElement("ul",{ref:function(t){e.listElement=t},className:s},l,n.length>0?u:null,c)}}])&&c(n.prototype,s),f&&c(n,f),t}(r.Component);t.default=f,f.__docgenInfo={description:"",methods:[{name:"setDropdownPosition",docblock:null,modifiers:[],params:[],returns:null},{name:"appendListItem",docblock:null,modifiers:[],params:[{name:"countries",type:null},{name:"isPreferred",type:null}],returns:null},{name:"handleMouseOver",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null}],displayName:"CountryList",props:{setFlag:{type:{name:"func"},required:!1,description:""},countries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},inputTop:{type:{name:"number"},required:!1,description:""},inputOuterHeight:{type:{name:"number"},required:!1,description:""},preferredCountries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},highlightedCountry:{type:{name:"number"},required:!1,description:""},changeHighlightCountry:{type:{name:"func"},required:!1,description:""},showDropdown:{type:{name:"bool"},required:!1,description:""},isMobile:{type:{name:"bool"},required:!1,description:""}}}},447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(18178))&&r.__esModule?r:{default:r};var o=function(e){var t=e.dialCode,n=e.isoCode,r=e.name,o=e.onMouseOver,a=e.onFocus,s=e.onClick,l=e.flagRef,c=e.innerFlagRef,u=e.countryClass;return i.default.createElement("li",{className:u,"data-dial-code":t,"data-country-code":n,onMouseOver:o,onFocus:a,onClick:s},i.default.createElement("div",{ref:l,className:"flag-box"},i.default.createElement("div",{ref:c,className:"iti-flag ".concat(n)})),i.default.createElement("span",{className:"country-name"},r),i.default.createElement("span",{className:"dial-code"},"+ ".concat(t)))};o.defaultProps={onFocus:function(){},onMouseOver:function(){},onClick:function(){}};var a=o;t.default=a,o.__docgenInfo={description:"",methods:[],displayName:"FlagBox",props:{onFocus:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},onMouseOver:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},onClick:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},dialCode:{type:{name:"string"},required:!0,description:""},isoCode:{type:{name:"string"},required:!0,description:""},name:{type:{name:"string"},required:!0,description:""},flagRef:{type:{name:"func"},required:!1,description:""},innerFlagRef:{type:{name:"func"},required:!1,description:""},countryClass:{type:{name:"string"},required:!0,description:""}}}},71539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(18178)),i=s(n(19160)),o=s(n(61775)),a=s(n(71473));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?p(e):t}(this,(e=u(t)).call.apply(e,[this].concat(s))),h(p(p(n)),"genSelectedDialCode",(function(){var e=n.props,t=e.separateDialCode,i=e.dialCode;return t?r.default.createElement("div",{className:"selected-dial-code"},i):null})),h(p(p(n)),"genArrow",(function(){var e=n.props,t=e.allowDropdown,o=e.showDropdown,a=(0,i.default)("arrow",o?"up":"down");return t?r.default.createElement("div",{className:a}):null})),h(p(p(n)),"genFlagClassName",(function(){return(0,i.default)("iti-flag",h({},n.props.countryCode,!!n.props.countryCode))})),h(p(p(n)),"genCountryList",(function(){var e=n.props,t=e.dropdownContainer,i=e.showDropdown,a=e.isMobile,s=e.allowDropdown,l=e.setFlag,c=e.countries,u=e.inputTop,d=e.inputOuterHeight,p=e.preferredCountries,h=e.highlightedCountry,f=e.changeHighlightCountry;return r.default.createElement(o.default,{ref:function(e){n.countryList=e},dropdownContainer:t,isMobile:a,showDropdown:s&&i,setFlag:l,countries:c,inputTop:u,inputOuterHeight:d,preferredCountries:p,highlightedCountry:h,changeHighlightCountry:f})})),n}var n,s,f;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(s=[{key:"render",value:function(){var e=this.props,t=e.refCallback,n=e.allowDropdown,i=e.clickSelectedFlag,o=e.handleSelectedFlagKeydown,s=e.titleTip,l=e.dropdownContainer,c=e.showDropdown;return r.default.createElement("div",{ref:t,className:"flag-container"},r.default.createElement("div",{className:"selected-flag",tabIndex:n?"0":"",onClick:i,onKeyDown:o,title:s},r.default.createElement("div",{className:this.genFlagClassName()}),this.genSelectedDialCode(),this.genArrow()),l&&c?r.default.createElement(a.default,null,this.genCountryList()):this.genCountryList())}}])&&c(n.prototype,s),f&&c(n,f),t}(r.Component);t.default=f,f.__docgenInfo={description:"",methods:[{name:"genSelectedDialCode",docblock:null,modifiers:[],params:[],returns:null},{name:"genArrow",docblock:null,modifiers:[],params:[],returns:null},{name:"genFlagClassName",docblock:null,modifiers:[],params:[],returns:null},{name:"genCountryList",docblock:null,modifiers:[],params:[],returns:null}],displayName:"FlagDropDown",props:{allowDropdown:{type:{name:"bool"},required:!1,description:""},dropdownContainer:{type:{name:"string"},required:!1,description:""},separateDialCode:{type:{name:"bool"},required:!1,description:""},dialCode:{type:{name:"string"},required:!1,description:""},countryCode:{type:{name:"string"},required:!1,description:""},showDropdown:{type:{name:"bool"},required:!1,description:""},clickSelectedFlag:{type:{name:"func"},required:!1,description:""},handleSelectedFlagKeydown:{type:{name:"func"},required:!1,description:""},isMobile:{type:{name:"bool"},required:!1,description:""},setFlag:{type:{name:"func"},required:!1,description:""},countries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},inputTop:{type:{name:"number"},required:!1,description:""},inputOuterHeight:{type:{name:"number"},required:!1,description:""},preferredCountries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},highlightedCountry:{type:{name:"number"},required:!1,description:""},changeHighlightCountry:{type:{name:"func"},required:!1,description:""},titleTip:{type:{name:"string"},required:!1,description:""},refCallback:{type:{name:"func"},required:!0,description:""}}}},83705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(18178)),i=d(n(19160)),o=d(n(86667)),a=d(n(61214)),s=d(n(71539)),l=d(n(59469)),c=d(n(48678)),u=n(38397);function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=/Android.+Mobile|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,_=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?y(e):t}(this,h(t).call(this,e)),v(y(y(r)),"updateFlagOnDefaultCountryChange",(function(e){r.setFlag(e,!1)})),v(y(y(r)),"getTempCountry",(function(e){if("auto"===e)return"auto";var t=c.default.getCountryData(r.countries,e);return t.iso2||(t=r.props.preferredCountries.length>0?c.default.getCountryData(r.countries,r.props.preferredCountries[0]):a.default.getCountries()[0]),t.iso2})),v(y(y(r)),"setNumber",(function(e,t){r.updateFlagFromNumber(e),r.updateValFromNumber(e,!t)})),v(y(y(r)),"setFlagDropdownRef",(function(e){r.flagDropDown=e})),v(y(y(r)),"setTelRef",(function(e){r.tel=e})),v(y(y(r)),"setFlag",(function(e,t){var n=r.selectedCountryData&&r.selectedCountryData.iso2?r.selectedCountryData:{};r.selectedCountryData=e?c.default.getCountryData(r.countries,e,!1,!1,r.props.noCountryDataHandler):{},r.selectedCountryData.iso2&&(r.defaultCountry=r.selectedCountryData.iso2);var i=e?"".concat(r.selectedCountryData.name,": +").concat(r.selectedCountryData.dialCode):"Unknown",o=r.state.dialCode;r.props.separateDialCode&&(o=r.selectedCountryData.dialCode?"+".concat(r.selectedCountryData.dialCode):"",n.dialCode&&delete r.wrapperClass["iti-sdc-".concat(n.dialCode.length+1)],o&&(r.wrapperClass["iti-sdc-".concat(o.length)]=!0));var a=0;e&&"auto"!==e&&-1===(a=c.default.findIndex(r.preferredCountries,(function(t){return t.iso2===e})))&&(-1===(a=c.default.findIndex(r.countries,(function(t){return t.iso2===e})))&&(a=0),a+=r.preferredCountries.length),r.tel&&r.state.showDropdown&&r.tel.focus();var s=r.updateDialCode(r.selectedCountryData.dialCode,!t);r.setState({value:s,showDropdown:!1,highlightedCountry:a,countryCode:e,title:i,dialCode:o},(function(){if(r.updatePlaceholder(r.props),r.wrapperClass.active=!1,!t&&n.iso2!==e&&"function"===typeof r.props.onSelectFlag){var i=r.state.value,o=r.formatFullNumber(i),a=r.isValidNumber(o);r.props.onSelectFlag(i,r.selectedCountryData,o,a)}}))})),v(y(y(r)),"getExtension",(function(e){return window.intlTelInputUtils?window.intlTelInputUtils.getExtension(r.getFullNumber(e),r.selectedCountryData.iso2):""})),v(y(y(r)),"getNumber",(function(e,t){return window.intlTelInputUtils?window.intlTelInputUtils.formatNumber(r.getFullNumber(e),r.selectedCountryData.iso2,t):""})),v(y(y(r)),"getFullNumber",(function(e){return(r.props.separateDialCode?"+".concat(r.selectedCountryData.dialCode):"")+e})),v(y(y(r)),"getDialCode",(function(e){var t="";if("+"===e.charAt(0))for(var n="",i=0,o=e.length;i<o;i++){var a=e.charAt(i);if(c.default.isNumeric(a)&&(n+=a,r.countryCodes[n]&&(t=e.substr(0,i+1)),4===n.length))break}return t})),v(y(y(r)),"isUnknownNanp",(function(e,t){return"+1"===t&&c.default.getNumeric(e).length>=4})),v(y(y(r)),"addCountryCode",(function(e,t,n,r){n in e||(e[n]=[]);var i=r||0;return e[n][i]=t,e})),v(y(y(r)),"processAllCountries",(function(){r.props.onlyCountries.length?r.filterCountries(r.props.onlyCountries,(function(e){return-1!==e})):r.props.excludeCountries.length?r.filterCountries(r.props.excludeCountries,(function(e){return-1===e})):r.countries=a.default.getCountries()})),v(y(y(r)),"processCountryCodes",(function(){r.countryCodes={};for(var e=0;e<r.countries.length;e++){var t=r.countries[e];if(r.addCountryCode(r.countryCodes,t.iso2,t.dialCode,t.priority),t.areaCodes)for(var n=0;n<t.areaCodes.length;n++)r.addCountryCode(r.countryCodes,t.iso2,t.dialCode+t.areaCodes[n])}})),v(y(y(r)),"processPreferredCountries",(function(){r.preferredCountries=[];for(var e=0,t=r.props.preferredCountries.length;e<t;e++){var n=r.props.preferredCountries[e].toLowerCase(),i=c.default.getCountryData(r.countries,n,!0);i&&r.preferredCountries.push(i)}})),v(y(y(r)),"setInitialState",(function(){var e=r.props.value||r.props.defaultValue||"";r.getDialCode(e)?r.updateFlagFromNumber(e,!0):"auto"!==r.tempCountry&&(r.tempCountry?r.setFlag(r.tempCountry,!0):(r.defaultCountry=r.preferredCountries.length?r.preferredCountries[0].iso2:r.countries[0].iso2,e||r.setFlag(r.defaultCountry,!0)),e||r.nationalMode||r.autoHideDialCode||r.props.separateDialCode||r.setState({value:"+".concat(r.selectedCountryData.dialCode)}));e&&r.updateValFromNumber(e,r.props.formatOnInit,!0)})),v(y(y(r)),"initRequests",(function(){n.e(888).then(n.t.bind(n,64888,23)).then((function(){r.loadUtils(),r.utilsScriptDeferred.resolve()})).catch((function(){return"An error occurred while loading the component"})),"auto"===r.tempCountry?r.loadAutoCountry():r.autoCountryDeferred.resolve()})),v(y(y(r)),"loadCountryFromLocalStorage",(function(){try{return void 0!==window.localStorage?window.localStorage.getItem("itiAutoCountry"):""}catch(e){return""}})),v(y(y(r)),"loadAutoCountry",(function(){var e=r.loadCountryFromLocalStorage();e&&(r.autoCountry=e),r.autoCountry?r.autoCountryLoaded():r.startedLoadingAutoCountry||(r.startedLoadingAutoCountry=!0,"function"===typeof r.props.geoIpLookup&&r.props.geoIpLookup((function(e){r.autoCountry=e.toLowerCase(),void 0!==window.localStorage&&window.localStorage.setItem("itiAutoCountry",r.autoCountry),r.autoCountryLoaded()})))})),v(y(y(r)),"cap",(function(e){var t=r.tel?r.tel.getAttribute("maxlength"):e;return t&&e.length>t?e.substr(0,t):e})),v(y(y(r)),"removeEmptyDialCode",(function(){var e=r.state.value;if("+"===e.charAt(0)){var t=c.default.getNumeric(e);t&&r.selectedCountryData.dialCode!==t||r.setState({value:""})}})),v(y(y(r)),"handleUpDownKey",(function(e){var t=r.flagDropDown.querySelectorAll(".highlight")[0],n=t?t.previousElementSibling:void 0,i=t?t.nextElementSibling:void 0,o=e===u.KEYS.UP?n:i;if(o){o.getAttribute("class").indexOf("divider")>-1&&(o=e===u.KEYS.UP?o.previousElementSibling:o.nextElementSibling),r.scrollTo(o);var a=c.default.retrieveLiIndex(o);r.setState({showDropdown:!0,highlightedCountry:a})}})),v(y(y(r)),"handleEnterKey",(function(){var e=r.flagDropDown.querySelectorAll(".highlight")[0];if(e){var t=c.default.retrieveLiIndex(e),n=e.getAttribute("data-country-code");r.setState({showDropdown:!1,highlightedCountry:t,countryCode:n},(function(){r.setFlag(r.state.countryCode),r.unbindDocumentClick()}))}})),v(y(y(r)),"searchForCountry",(function(e){for(var t=0,n=r.countries.length;t<n;t++)if(c.default.startsWith(r.countries[t].name,e)){var i=r.flagDropDown.querySelector('.country-list [data-country-code="'.concat(r.countries[t].iso2,'"]:not(.preferred)')),o=c.default.retrieveLiIndex(i);r.setState({showDropdown:!0,highlightedCountry:o}),r.scrollTo(i,!0);break}})),v(y(y(r)),"formatNumber",(function(e){if(window.intlTelInputUtils&&r.selectedCountryData){var t=window.intlTelInputUtils.numberFormat.INTERNATIONAL;(!r.props.separateDialCode&&r.nationalMode||"+"!==e.charAt(0))&&(t=window.intlTelInputUtils.numberFormat.NATIONAL),e=window.intlTelInputUtils.formatNumber(e,r.selectedCountryData.iso2,t)}return e})),v(y(y(r)),"updateValFromNumber",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&window.intlTelInputUtils&&r.selectedCountryData){var i=r.props.separateDialCode||!r.nationalMode&&"+"===e.charAt(0)?window.intlTelInputUtils.numberFormat.INTERNATIONAL:window.intlTelInputUtils.numberFormat.NATIONAL;e=window.intlTelInputUtils.formatNumber(e,r.selectedCountryData.iso2,i)}e=r.beforeSetNumber(e),r.setState({showDropdown:!1,value:e},(function(){n&&r.notifyPhoneNumberChange(e),r.unbindDocumentClick()}))})),v(y(y(r)),"updateFlagFromNumber",(function(e,t){e&&r.nationalMode&&r.selectedCountryData&&"1"===r.selectedCountryData.dialCode&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e));var n=r.getDialCode(e),i=null;if(n){var o=r.countryCodes[c.default.getNumeric(n)];if(!(r.selectedCountryData&&-1!==o.indexOf(r.selectedCountryData.iso2))||r.isUnknownNanp(e,n))for(var a=0;a<o.length;a++)if(o[a]){i=o[a];break}}else"+"===e.charAt(0)&&c.default.getNumeric(e).length&&(i=null);null!==i&&r.setFlag(i,t)})),v(y(y(r)),"filterCountries",(function(e,t){var n;for(n=0;n<e.length;n++)e[n]=e[n].toLowerCase();for(r.countries=[],n=0;n<a.default.getCountries().length;n++)t(e.indexOf(a.default.getCountries()[n].iso2))&&r.countries.push(a.default.getCountries()[n])})),v(y(y(r)),"processCountryData",(function(){a.default.initialize(r.props.countriesData),r.processAllCountries.call(y(y(r))),r.processCountryCodes.call(y(y(r))),r.processPreferredCountries.call(y(y(r)))})),v(y(y(r)),"handleOnBlur",(function(e){if(r.removeEmptyDialCode(),"function"===typeof r.props.onPhoneNumberBlur){var t=r.state.value,n=r.formatFullNumber(t),i=r.isValidNumber(n);r.props.onPhoneNumberBlur(i,t,r.selectedCountryData,n,r.getExtension(t),e)}})),v(y(y(r)),"handleOnFocus",(function(e){if("function"===typeof r.props.onPhoneNumberFocus){var t=r.state.value,n=r.formatFullNumber(t),i=r.isValidNumber(n);r.props.onPhoneNumberFocus(i,t,r.selectedCountryData,n,r.getExtension(t),e)}})),v(y(y(r)),"bindDocumentClick",(function(){r.isOpening=!0,document.querySelector("html").addEventListener("click",r.handleDocumentClick)})),v(y(y(r)),"unbindDocumentClick",(function(){document.querySelector("html").removeEventListener("click",r.handleDocumentClick)})),v(y(y(r)),"clickSelectedFlag",(function(e){var t=r.props,n=t.allowDropdown,i=t.onFlagClick,o=r.state,a=o.showDropdown,s=o.disabled,l=o.readonly;a||s||l||!n?a&&r.toggleDropdown(!1):r.setState({showDropdown:!0,offsetTop:c.default.offset(r.tel).top,outerHeight:c.default.getOuterHeight(r.tel)},(function(){var e=r.flagDropDown.querySelector(".highlight");e&&r.scrollTo(e,!0)})),"function"===typeof i&&i(e)})),v(y(y(r)),"updatePlaceholder",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;if(window.intlTelInputUtils&&e.autoPlaceholder&&r.selectedCountryData){var t=window.intlTelInputUtils.numberType[e.numberType],n=r.selectedCountryData.iso2?window.intlTelInputUtils.getExampleNumber(r.selectedCountryData.iso2,r.nationalMode,t):"";n=r.beforeSetNumber(n,e),"function"===typeof e.customPlaceholder&&(n=e.customPlaceholder(n,r.selectedCountryData)),r.setState({placeholder:n})}})),v(y(y(r)),"toggleDropdown",(function(e){r.setState({showDropdown:!!e},(function(){r.state.showDropdown||r.unbindDocumentClick()}))})),v(y(y(r)),"scrollTo",(function(e,t){try{var n=r.flagDropDown.querySelector(".country-list"),i=parseFloat(window.getComputedStyle(n).getPropertyValue("height")),o=c.default.offset(n).top,a=o+i,s=c.default.getOuterHeight(e),l=c.default.offset(e).top,u=l+s,d=i/2-s/2,p=l-o+n.scrollTop;if(l<o)t&&(p-=d),n.scrollTop=p;else if(u>a){t&&(p+=d);var h=i-s;n.scrollTop=p-h}}catch(f){}})),v(y(y(r)),"updateDialCode",(function(e,t){var n=r.state.value;if(!e)return n;var i=n;if(e="+".concat(e),"+"===n.charAt(0)){var o=r.getDialCode(n);i=o?n.replace(o,e):e}else r.nationalMode||r.props.separateDialCode||(n?i=e+n:!t&&r.autoHideDialCode||(i=e));return i!==n&&r.notifyPhoneNumberChange(i),i})),v(y(y(r)),"generateMarkup",(function(){r.wrapperClass["separate-dial-code"]=r.props.separateDialCode,r.isMobile&&r.props.useMobileFullscreenDropdown&&(document.querySelector("body").classList.add("iti-mobile"),r.dropdownContainer="body",window.addEventListener("scroll",r.handleWindowScroll))})),v(y(y(r)),"handleSelectedFlagKeydown",(function(e){r.state.showDropdown||e.which!==u.KEYS.UP&&e.which!==u.KEYS.DOWN&&e.which!==u.KEYS.SPACE&&e.which!==u.KEYS.ENTER||(e.preventDefault(),e.stopPropagation(),r.toggleDropdown(!0)),e.which===u.KEYS.TAB&&r.toggleDropdown(!1)})),v(y(y(r)),"isValidNumber",(function(e){var t=c.default.trim(e),n=r.nationalMode||r.props.separateDialCode?r.selectedCountryData.iso2:"";return!!window.intlTelInputUtils&&window.intlTelInputUtils.isValidNumber(t,n)})),v(y(y(r)),"formatFullNumber",(function(e){return window.intlTelInputUtils?r.getNumber(e,window.intlTelInputUtils.numberFormat.INTERNATIONAL):e})),v(y(y(r)),"notifyPhoneNumberChange",(function(e){if("function"===typeof r.props.onPhoneNumberChange){var t=r.formatFullNumber(e),n=r.isValidNumber(t);r.props.onPhoneNumberChange(n,e,r.selectedCountryData,t,r.getExtension(e))}})),v(y(y(r)),"beforeSetNumber",(function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.props).separateDialCode){var t=r.getDialCode(e);if(t){null!==r.selectedCountryData.areaCodes&&(t="+".concat(r.selectedCountryData.dialCode));var n=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(n)}}return r.cap(e)})),v(y(y(r)),"handleWindowScroll",(function(){r.setState({showDropdown:!1},(function(){window.removeEventListener("scroll",r.handleWindowScroll)}))})),v(y(y(r)),"handleDocumentKeyDown",(function(e){var t;e.preventDefault(),e.which===u.KEYS.UP||e.which===u.KEYS.DOWN?r.handleUpDownKey(e.which):e.which===u.KEYS.ENTER?r.handleEnterKey():e.which===u.KEYS.ESC?r.setState({showDropdown:!1}):(e.which>=u.KEYS.A&&e.which<=u.KEYS.Z||e.which===u.KEYS.SPACE)&&(t&&clearTimeout(t),r.query||(r.query=""),r.query+=String.fromCharCode(e.which),r.searchForCountry(r.query),t=setTimeout((function(){r.query=""}),1e3))})),v(y(y(r)),"handleDocumentClick",(function(e){var t=e.target.getAttribute("class");(null===t||t&&-1===t.indexOf("country")&&-1===t.indexOf("selected-flag")&&-1===t.indexOf("iti-flag")&&-1===t.indexOf("iti-arrow"))&&(r.isOpening=!1),r.isOpening||r.toggleDropdown(!1),r.isOpening=!1})),v(y(y(r)),"handleInputChange",(function(e){var t=e.target.selectionStart,n=e.target.value,i=r.state.value,o=""===n?n:n.substring(0,t),a=n.length<i.length?n:r.formatNumber(e.target.value),s=r.props.format?a:e.target.value;t=c.default.getCursorPositionAfterFormating(o,n,s),void 0!==r.props.value?r.setState({cursorPosition:t},(function(){r.updateFlagFromNumber(s),r.notifyPhoneNumberChange(s)})):r.setState({value:s,cursorPosition:t},(function(){r.updateFlagFromNumber(s),r.notifyPhoneNumberChange(s)}))})),v(y(y(r)),"changeHighlightCountry",(function(e,t){r.setState({showDropdown:e,highlightedCountry:t})})),v(y(y(r)),"loadUtils",(function(){window.intlTelInputUtils&&r.utilsScriptDeferred.resolve()})),v(y(y(r)),"autoCountryLoaded",(function(){"auto"===r.tempCountry&&(r.tempCountry=r.autoCountry,r.autoCountryDeferred.resolve())})),r.wrapperClass={},r.autoCountry="",r.tempCountry="",r.startedLoadingAutoCountry=!1,r.deferreds=[],r.autoCountryDeferred=new o.default.Deferred,r.utilsScriptDeferred=new o.default.Deferred,r.isOpening=!1,r.isMobile="undefined"!==typeof navigator&&b.test(navigator.userAgent),r.preferredCountries=[],r.countries=[],r.countryCodes={},r.windowLoaded=!1,r.query="",r.selectedCountryData={},r.state={showDropdown:!1,highlightedCountry:0,value:e.value||e.defaultValue,disabled:e.disabled,readonly:!1,offsetTop:0,outerHeight:0,placeholder:"",title:"",countryCode:"us",dialCode:"",cursorPosition:(e.value||e.defaultValue).length},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),m(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=null;return"undefined"!==typeof e.value&&t.value!==e.value&&(n={value:e.value}),t.disabled!==e.disabled&&(n={disabled:e.disabled}),n}}]),m(t,[{key:"componentDidMount",value:function(){var e=this;this.autoHideDialCode=this.props.autoHideDialCode,this.allowDropdown=this.props.allowDropdown,this.nationalMode=this.props.nationalMode,this.dropdownContainer="",this.nationalMode&&(this.autoHideDialCode=!1),this.props.separateDialCode&&(this.autoHideDialCode=!1,this.nationalMode=!1,this.allowDropdown=!0),this.processCountryData.call(this),this.tempCountry=this.getTempCountry(this.props.defaultCountry),"complete"===document.readyState?this.windowLoaded=!0:window.addEventListener("load",(function(){e.windowLoaded=!0})),this.generateMarkup(),this.setInitialState(),this.initRequests(),this.deferreds.push(this.autoCountryDeferred.promise()),this.deferreds.push(this.utilsScriptDeferred.promise()),o.default.when(this.deferreds).done((function(){e.setInitialState()})),document.addEventListener("keydown",this.handleDocumentKeyDown)}},{key:"shouldComponentUpdate",value:function(e,t){return t.showDropdown?(document.addEventListener("keydown",this.handleDocumentKeyDown),this.bindDocumentClick()):(document.removeEventListener("keydown",this.handleDocumentKeyDown),this.unbindDocumentClick()),!0}},{key:"componentDidUpdate",value:function(e){this.props.value!==e.value&&this.updateFlagFromNumber(this.props.value),"function"===typeof this.props.customPlaceholder&&e.customPlaceholder!==this.props.customPlaceholder&&this.updatePlaceholder(this.props),this.props.allowDropdown!==e.allowDropdown&&(this.allowDropdown=this.props.allowDropdown),this.props.defaultCountry!==e.defaultCountry&&this.updateFlagOnDefaultCountryChange(this.props.defaultCountry)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleDocumentKeyDown),window.removeEventListener("scroll",this.handleWindowScroll),this.unbindDocumentClick()}},{key:"render",value:function(){var e=this.props.inputClassName,t=Object.assign({},this.props.style||{});this.wrapperClass["allow-dropdown"]=this.allowDropdown,this.wrapperClass.expanded=this.state.showDropdown;var n=(0,i.default)(this.wrapperClass,this.props.containerClassName),o=this.selectedCountryData?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown",a=void 0!==this.props.value?this.props.value:this.state.value;return r.default.createElement("div",{className:n,style:t},r.default.createElement(s.default,{refCallback:this.setFlagDropdownRef,allowDropdown:this.allowDropdown,dropdownContainer:this.dropdownContainer,separateDialCode:this.props.separateDialCode,dialCode:this.state.dialCode,clickSelectedFlag:this.clickSelectedFlag,setFlag:this.setFlag,countryCode:this.state.countryCode,isMobile:this.isMobile,handleSelectedFlagKeydown:this.handleSelectedFlagKeydown,changeHighlightCountry:this.changeHighlightCountry,countries:this.countries,showDropdown:this.state.showDropdown,inputTop:this.state.offsetTop,inputOuterHeight:this.state.outerHeight,preferredCountries:this.preferredCountries,highlightedCountry:this.state.highlightedCountry,titleTip:o}),r.default.createElement(l.default,{refCallback:this.setTelRef,handleInputChange:this.handleInputChange,handleOnBlur:this.handleOnBlur,handleOnFocus:this.handleOnFocus,className:e,disabled:this.state.disabled,readonly:this.state.readonly,fieldName:this.props.fieldName,fieldId:this.props.fieldId,value:a,placeholder:void 0!==this.props.placeholder?this.props.placeholder:this.state.placeholder,autoFocus:this.props.autoFocus,autoComplete:this.props.autoComplete,inputProps:this.props.telInputProps,cursorPosition:this.state.cursorPosition}))}}]),t}(r.Component);_.defaultProps={containerClassName:"intl-tel-input",inputClassName:"",fieldName:"",fieldId:"",defaultValue:"",countriesData:null,allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:!0,customPlaceholder:null,excludeCountries:[],formatOnInit:!0,separateDialCode:!1,defaultCountry:"",geoIpLookup:null,nationalMode:!0,numberType:"MOBILE",noCountryDataHandler:null,onlyCountries:[],preferredCountries:["us","gb"],onPhoneNumberChange:null,onPhoneNumberBlur:null,onPhoneNumberFocus:null,onSelectFlag:null,disabled:!1,autoFocus:!1,useMobileFullscreenDropdown:!0,autoComplete:"off",telInputProps:{},format:!1,onFlagClick:null};var w=_;t.default=w,_.__docgenInfo={description:"",methods:[{name:"getDerivedStateFromProps",docblock:null,modifiers:["static"],params:[{name:"nextProps",type:null},{name:"prevState",type:null}],returns:null},{name:"updateFlagOnDefaultCountryChange",docblock:null,modifiers:[],params:[{name:"countryCode",type:null}],returns:null},{name:"getTempCountry",docblock:null,modifiers:[],params:[{name:"countryCode",type:null}],returns:null},{name:"setNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"preventFormat",type:null}],returns:null},{name:"setFlagDropdownRef",docblock:null,modifiers:[],params:[{name:"ref",type:null}],returns:null},{name:"setTelRef",docblock:null,modifiers:[],params:[{name:"ref",type:null}],returns:null},{name:"setFlag",docblock:null,modifiers:[],params:[{name:"countryCode",type:null},{name:"isInit",type:null}],returns:null},{name:"getExtension",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"getNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"format",type:null}],returns:null},{name:"getFullNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"getDialCode",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"isUnknownNanp",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"dialCode",type:null}],returns:null},{name:"addCountryCode",docblock:null,modifiers:[],params:[{name:"countryCodes",type:null},{name:"iso2",type:null},{name:"dialCode",type:null},{name:"priority",type:null}],returns:null},{name:"processAllCountries",docblock:null,modifiers:[],params:[],returns:null},{name:"processCountryCodes",docblock:null,modifiers:[],params:[],returns:null},{name:"processPreferredCountries",docblock:null,modifiers:[],params:[],returns:null},{name:"setInitialState",docblock:null,modifiers:[],params:[],returns:null},{name:"initRequests",docblock:null,modifiers:[],params:[],returns:null},{name:"loadCountryFromLocalStorage",docblock:null,modifiers:[],params:[],returns:null},{name:"loadAutoCountry",docblock:null,modifiers:[],params:[],returns:null},{name:"cap",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"removeEmptyDialCode",docblock:null,modifiers:[],params:[],returns:null},{name:"handleUpDownKey",docblock:null,modifiers:[],params:[{name:"key",type:null}],returns:null},{name:"handleEnterKey",docblock:null,modifiers:[],params:[],returns:null},{name:"searchForCountry",docblock:null,modifiers:[],params:[{name:"query",type:null}],returns:null},{name:"formatNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"updateValFromNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"doFormat",type:null},{name:"doNotify",type:null}],returns:null},{name:"updateFlagFromNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"isInit",type:null}],returns:null},{name:"filterCountries",docblock:null,modifiers:[],params:[{name:"countryArray",type:null},{name:"processFunc",type:null}],returns:null},{name:"processCountryData",docblock:null,modifiers:[],params:[],returns:null},{name:"handleOnBlur",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleOnFocus",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"bindDocumentClick",docblock:null,modifiers:[],params:[],returns:null},{name:"unbindDocumentClick",docblock:null,modifiers:[],params:[],returns:null},{name:"clickSelectedFlag",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"updatePlaceholder",docblock:null,modifiers:[],params:[{name:"props",type:null}],returns:null},{name:"toggleDropdown",docblock:null,modifiers:[],params:[{name:"status",type:null}],returns:null},{name:"scrollTo",docblock:null,modifiers:[],params:[{name:"element",type:null},{name:"middle",type:null}],returns:null},{name:"updateDialCode",docblock:null,modifiers:[],params:[{name:"newDialCode",type:null},{name:"hasSelectedListItem",type:null}],returns:null},{name:"generateMarkup",docblock:null,modifiers:[],params:[],returns:null},{name:"handleSelectedFlagKeydown",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"isValidNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"formatFullNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"notifyPhoneNumberChange",docblock:null,modifiers:[],params:[{name:"newNumber",type:null}],returns:null},{name:"beforeSetNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"props",type:null}],returns:null},{name:"handleWindowScroll",docblock:null,modifiers:[],params:[],returns:null},{name:"handleDocumentKeyDown",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleDocumentClick",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleInputChange",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"changeHighlightCountry",docblock:null,modifiers:[],params:[{name:"showDropdown",type:null},{name:"selectedIndex",type:null}],returns:null},{name:"loadUtils",docblock:null,modifiers:[],params:[],returns:null},{name:"autoCountryLoaded",docblock:null,modifiers:[],params:[],returns:null}],displayName:"IntlTelInput",props:{containerClassName:{defaultValue:{value:"'intl-tel-input'",computed:!1},type:{name:"string"},required:!1,description:"Container CSS class name."},inputClassName:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"Text input CSS class name."},fieldName:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"It's used as `input` field `name` attribute."},fieldId:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"It's used as `input` field `id` attribute."},defaultValue:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"The value used to initialize input. This will only work on uncontrolled component."},countriesData:{defaultValue:{value:"null",computed:!1},type:{name:"arrayOf",value:{name:"array"}},required:!1,description:"Countries data can be configured, it defaults to data defined in `AllCountries`."},allowDropdown:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Whether or not to allow the dropdown. If disabled, there is no dropdown arrow, and the selected flag is not clickable.\nAlso we display the selected flag on the right instead because it is just a marker of state."},autoHideDialCode:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"If there is just a dial code in the input: remove it on blur, and re-add it on focus."},autoPlaceholder:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Add or remove input placeholder with an example number for the selected country."},customPlaceholder:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Change the placeholder generated by autoPlaceholder. Must return a string."},excludeCountries:{defaultValue:{value:"[]",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"Don't display the countries you specify. (Array)"},formatOnInit:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Format the input value during initialisation."},separateDialCode:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Display the country dial code next to the selected flag so it's not part of the typed number.\nNote that this will disable nationalMode because technically we are dealing with international numbers,\nbut with the dial code separated."},defaultCountry:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"Default country."},geoIpLookup:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"GeoIp lookup function."},nationalMode:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Don't insert international dial codes."},numberType:{defaultValue:{value:"'MOBILE'",computed:!1},type:{name:"string"},required:!1,description:"Number type to use for placeholders."},noCountryDataHandler:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:'The function which can catch the "no this default country" exception.'},onlyCountries:{defaultValue:{value:"[]",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"Display only these countries."},preferredCountries:{defaultValue:{value:"['us', 'gb']",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"The countries at the top of the list. defaults to United States and United Kingdom."},onPhoneNumberChange:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onPhoneNumberBlur:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onPhoneNumberFocus:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onSelectFlag:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Allow main app to do things when a country is selected."},disabled:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Disable this component."},autoFocus:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Enable auto focus"},useMobileFullscreenDropdown:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Render fullscreen flag dropdown when mobile useragent is detected. The dropdown element is rendered as a direct child of document.body"},autoComplete:{defaultValue:{value:"'off'",computed:!1},type:{name:"string"},required:!1,description:"Set the value of the autoComplete attribute on the input. For example, set it to phone to tell the browser where to auto complete phone numbers."},telInputProps:{defaultValue:{value:"{}",computed:!1},type:{name:"object"},required:!1,description:"Pass through arbitrary props to the tel input element."},format:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Format the number."},onFlagClick:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Allow main app to do things when flag icon is clicked."},value:{type:{name:"string"},required:!1,description:"The value of the input field. Useful for making input value controlled from outside the component."},placeholder:{type:{name:"string"},required:!1,description:"Static placeholder for input controller. When defined it takes priority over autoPlaceholder."},style:{type:{name:"custom",raw:"StylePropTypes"},required:!1,description:"Style object for the wrapper div. Useful for setting 100% width on the wrapper, etc."}}}},71473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(18178)),o=(r=n(22297))&&r.__esModule?r:{default:r};function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var d=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,c(t).call(this,e))).modalTarget=document.createElement("div"),n.modalTarget.className="intl-tel-input iti-container",n}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){document.body.appendChild(this.modalTarget)}},{key:"componentWillUnmount",value:function(){document.body.removeChild(this.modalTarget)}},{key:"render",value:function(){return o.default.createPortal(i.default.createElement(i.Fragment,null,this.props.children),this.modalTarget)}}])&&s(n.prototype,r),a&&s(n,a),t}(i.Component);t.default=d,d.__docgenInfo={description:"",methods:[],displayName:"RootModal",props:{children:{type:{name:"node"},required:!1,description:""}}}},59469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(18178));function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?c(e):t}(this,(e=s(t)).call.apply(e,[this].concat(o))),u(c(c(n)),"state",{hasFocus:!1}),u(c(c(n)),"refHandler",(function(e){n.tel=e,n.props.refCallback(e)})),u(c(c(n)),"handleBlur",(function(e){n.setState({hasFocus:!1}),"function"===typeof n.props.handleOnBlur&&n.props.handleOnBlur(e)})),u(c(c(n)),"handleFocus",(function(e){n.setState({hasFocus:!0}),"function"===typeof n.props.handleOnFocus&&n.props.handleOnFocus(e)})),n}var n,d,p;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,(d=[{key:"componentDidUpdate",value:function(){this.state.hasFocus&&this.tel.setSelectionRange(this.props.cursorPosition,this.props.cursorPosition)}},{key:"render",value:function(){return r.default.createElement("input",o({},this.props.inputProps,{ref:this.refHandler,type:"tel",autoComplete:this.props.autoComplete,className:this.props.className,disabled:this.props.disabled,readOnly:this.props.readonly,name:this.props.fieldName,id:this.props.fieldId,value:this.props.value,placeholder:this.props.placeholder,onChange:this.props.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,autoFocus:this.props.autoFocus}))}}])&&a(n.prototype,d),p&&a(n,p),t}(r.Component);t.default=d,d.__docgenInfo={description:"",methods:[{name:"refHandler",docblock:null,modifiers:[],params:[{name:"element",type:null}],returns:null},{name:"handleBlur",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleFocus",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null}],displayName:"TelInput",props:{className:{type:{name:"string"},required:!1,description:""},disabled:{type:{name:"bool"},required:!1,description:""},readonly:{type:{name:"bool"},required:!1,description:""},fieldName:{type:{name:"string"},required:!1,description:""},fieldId:{type:{name:"string"},required:!1,description:""},value:{type:{name:"string"},required:!1,description:""},placeholder:{type:{name:"string"},required:!1,description:""},handleInputChange:{type:{name:"func"},required:!1,description:""},handleOnBlur:{type:{name:"func"},required:!1,description:""},handleOnFocus:{type:{name:"func"},required:!1,description:""},autoFocus:{type:{name:"bool"},required:!1,description:""},autoComplete:{type:{name:"string"},required:!1,description:""},inputProps:{type:{name:"object"},required:!1,description:""},refCallback:{type:{name:"func"},required:!0,description:""},cursorPosition:{type:{name:"number"},required:!1,description:""}}}},38397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYS=void 0;t.KEYS={UP:38,DOWN:40,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},48678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(61214))&&r.__esModule?r:{default:r};function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a={arraysEqual:function(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0},shallowEquals:function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n]){if(!Array.isArray(e[n])||!Array.isArray(t[n]))return!1;if(!this.arraysEqual(e[n],t[n]))return!1}for(var r in t)if(!1===e.hasOwnProperty(r))return!1;return!0},trim:function(e){return e?e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""):""},isNumeric:function(e){return e-parseFloat(e)>=0},retrieveLiIndex:function(e){if(!e)return-1;for(var t=e.parentNode.childNodes,n=0,r=0,i=t.length;r<i;r++){if(t[r]===e)return n;1===t[r].nodeType&&"li"===t[r].tagName.toLowerCase()&&(n+=1)}return-1},getNumeric:function(e){return e.replace(/\D/g,"")},startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()===t},isWindow:function(e){return null!==e&&e===e.window},getWindow:function(e){return this.isWindow(e)?e:9===e.nodeType&&e.defaultView},offset:function(e){var t,n,r={top:0,left:0},i=e&&e.ownerDocument;return t=i.documentElement,"undefined"!==o(e.getBoundingClientRect)&&(r=e.getBoundingClientRect()),n=this.getWindow(i),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}},getOuterHeight:function(e){return e.offsetHeight+parseFloat(window.getComputedStyle(e).getPropertyValue("margin-top"))+parseFloat(window.getComputedStyle(e).getPropertyValue("margin-bottom"))},getCountryData:function(e,t,n,r,o){for(var a=n?i.default.getCountries():e,s=0;s<a.length;s++)if(a[s].iso2===t)return a[s];return r?null:("function"===typeof o&&o(t),{})},findIndex:function(e,t){var n=-1;return e.some((function(e,r){if(t(e))return n=r,!0})),n},getCursorPositionAfterFormating:function(e,t,n){if(t===n)return e.length;var r=0;if(t.length>n.length)for(var i=0,o=0;i<e.length&&o<n.length;i+=1)e[i]!==n[o]?isNaN(n[o])&&!isNaN(e[i])?(i-=1,o+=1,r+=1):r-=1:o+=1;else for(var a=0,s=0;a<e.length&&s<n.length;s+=1)e[a]!==n[s]?isNaN(e[a])&&!isNaN(n[s])?(s-=1,a+=1,r-=1):r+=1:a+=1;return e.length+r}};t.default=a},81440:(e,t,n)=>{"use strict";var r;t.Z=void 0;var i=((r=n(83705))&&r.__esModule?r:{default:r}).default;t.Z=i},30057:(e,t,n)=>{"use strict";t.Sn=t.YB=t.dp=t.eU=t._H=void 0;var r=n(5836),i=n(18501),o=r.__importStar(n(65465));o.default,Object.defineProperty(t,"eU",{enumerable:!0,get:function(){return o.Provider}});var a=r.__importDefault(n(97539));t.YB=a.default;var s=r.__importStar(n(18042));s.default,Object.defineProperty(t,"dp",{enumerable:!0,get:function(){return s.createIntl}}),r.__importDefault(n(31614)).default,r.__importDefault(n(59752)).default;var l=r.__importDefault(n(69793));t._H=l.default,r.__importDefault(n(82429)).default;var c=n(27616);Object.defineProperty(t,"Sn",{enumerable:!0,get:function(){return c.createIntlCache}}),(0,i.createFormattedComponent)("formatDate"),(0,i.createFormattedComponent)("formatTime"),(0,i.createFormattedComponent)("formatNumber"),(0,i.createFormattedComponent)("formatList"),(0,i.createFormattedComponent)("formatDisplayName"),(0,i.createFormattedDateTimePartsComponent)("formatDate"),(0,i.createFormattedDateTimePartsComponent)("formatTime");var u=n(18501)},18501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFormattedComponent=t.createFormattedDateTimePartsComponent=t.FormattedListParts=t.FormattedNumberParts=void 0;var r,i,o=n(5836),a=o.__importStar(n(18178)),s=o.__importDefault(n(97539));!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(i||(i={}));t.FormattedNumberParts=function(e){var t=(0,s.default)(),n=e.value,r=e.children,i=o.__rest(e,["value","children"]);return r(t.formatNumberToParts(n,i))},t.FormattedNumberParts.displayName="FormattedNumberParts";t.FormattedListParts=function(e){var t=(0,s.default)(),n=e.value,r=e.children,i=o.__rest(e,["value","children"]);return r(t.formatListToParts(n,i))},t.FormattedNumberParts.displayName="FormattedNumberParts",t.createFormattedDateTimePartsComponent=function(e){var t=function(t){var n=(0,s.default)(),r=t.value,i=t.children,a=o.__rest(t,["value","children"]),l="string"===typeof r?new Date(r||0):r;return i("formatDate"===e?n.formatDateToParts(l,a):n.formatTimeToParts(l,a))};return t.displayName=i[e],t},t.createFormattedComponent=function(e){var t=function(t){var n=(0,s.default)(),r=t.value,i=t.children,l=o.__rest(t,["value","children"]),c=n[e](r,l);if("function"===typeof i)return i(c);var u=n.textComponent||a.Fragment;return a.createElement(u,null,c)};return t.displayName=r[e],t}},82429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836),i=r.__importStar(n(18178)),o=r.__importDefault(n(97539)),a=function(e){var t=(0,o.default)(),n=e.from,a=e.to,s=e.children,l=r.__rest(e,["from","to","children"]),c=t.formatDateTimeRange(n,a,l);if("function"===typeof s)return s(c);var u=t.textComponent||i.Fragment;return i.createElement(u,null,c)};a.displayName="FormattedDateTimeRange",t.default=a},65465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.Provider=void 0;var r=n(5836),i=r.__importStar(n(18178)),o=r.__importDefault(n(1815)),a=n(29e3);var s="undefined"===typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),l=s.Consumer,c=s.Provider;t.Provider=c,t.Context=s,t.default=function(e,t){var n=t||{},s=n.intlPropName,c=void 0===s?"intl":s,u=n.forwardRef,d=void 0!==u&&u,p=n.enforceContext,h=void 0===p||p,f=function(t){return i.createElement(l,null,(function(n){var o;h&&(0,a.invariantIntlContext)(n);var s=((o={})[c]=n,o);return i.createElement(e,r.__assign({},t,s,{ref:d?t.forwardedRef:null}))}))};return f.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),f.WrappedComponent=e,d?(0,o.default)(i.forwardRef((function(e,t){return i.createElement(f,r.__assign({},e,{forwardedRef:t}))})),e):(0,o.default)(f,e)}},69793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836),i=r.__importStar(n(18178)),o=r.__importDefault(n(97539)),a=n(29e3);function s(e){var t=(0,o.default)(),n=t.formatMessage,r=t.textComponent,a=void 0===r?i.Fragment:r,s=e.id,l=e.description,c=e.defaultMessage,u=e.values,d=e.children,p=e.tagName,h=void 0===p?a:p,f=n({id:s,description:l,defaultMessage:c},u,{ignoreTag:e.ignoreTag});return"function"===typeof d?d(Array.isArray(f)?f:[f]):h?i.createElement(h,null,i.Children.toArray(f)):i.createElement(i.Fragment,null,f)}s.displayName="FormattedMessage";var l=i.memo(s,(function(e,t){var n=e.values,i=r.__rest(e,["values"]),o=t.values,s=r.__rest(t,["values"]);return(0,a.shallowEqual)(o,n)&&(0,a.shallowEqual)(i,s)}));l.displayName="MemoizedFormattedMessage",t.default=l},59752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836),i=r.__importStar(n(18178)),o=r.__importDefault(n(97539)),a=function(e){var t=(0,o.default)(),n=t.formatPlural,r=t.textComponent,a=e.value,s=e.other,l=e.children,c=e[n(a,e)]||s;return"function"===typeof l?l(c):r?i.createElement(r,null,c):c};a.defaultProps={type:"cardinal"},a.displayName="FormattedPlural",t.default=a},18042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIntl=void 0;var r=n(5836),i=n(27616),o=r.__importStar(n(18178)),a=n(29e3),s=n(65465),l=n(38589);function c(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function u(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=(0,l.isFormatXMLElementFn)(r)?(0,a.assignUniqueKeysToParts)(r):r,t}),{}):e}var d=function(e,t,n,a){for(var s=[],l=4;l<arguments.length;l++)s[l-4]=arguments[l];var c=u(a),d=i.formatMessage.apply(void 0,r.__spreadArray([e,t,n,c],s,!1));return Array.isArray(d)?o.Children.toArray(d):d};t.createIntl=function(e,t){var n=e.defaultRichTextElements,o=r.__rest(e,["defaultRichTextElements"]),s=u(n),l=(0,i.createIntl)(r.__assign(r.__assign(r.__assign({},a.DEFAULT_INTL_CONFIG),o),{defaultRichTextElements:s}),t),c={locale:l.locale,timeZone:l.timeZone,fallbackOnEmptyString:l.fallbackOnEmptyString,formats:l.formats,defaultLocale:l.defaultLocale,defaultFormats:l.defaultFormats,messages:l.messages,onError:l.onError,defaultRichTextElements:s};return r.__assign(r.__assign({},l),{formatMessage:d.bind(null,c,l.formatters),$t:d.bind(null,c,l.formatters)})};var p=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.cache=(0,i.createIntlCache)(),n.state={cache:n.cache,intl:(0,t.createIntl)(c(n.props),n.cache),prevConfig:c(n.props)},n}return r.__extends(n,e),n.getDerivedStateFromProps=function(e,n){var r=n.prevConfig,i=n.cache,o=c(e);return(0,a.shallowEqual)(r,o)?null:{intl:(0,t.createIntl)(o,i),prevConfig:o}},n.prototype.render=function(){return(0,a.invariantIntlContext)(this.state.intl),o.createElement(s.Provider,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=a.DEFAULT_INTL_CONFIG,n}(o.PureComponent);t.default=p},31614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836),i=r.__importStar(n(18178)),o=n(75346),a=r.__importDefault(n(97539)),s=3600;function l(e){var t=Math.abs(e);return t<60?"second":t<s?"minute":t<86400?"hour":"day"}function c(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return s;default:return 86400}}var u=["second","minute","hour"];function d(e){return void 0===e&&(e="second"),u.indexOf(e)>-1}var p=function(e){var t=(0,a.default)(),n=t.formatRelativeTime,o=t.textComponent,s=e.children,l=n(e.value||0,e.unit,r.__rest(e,["children","value","unit"]));return"function"===typeof s?s(l):o?i.createElement(o,null,l):i.createElement(i.Fragment,null,l)},h=function(e){var t=e.value,n=e.unit,a=e.updateIntervalInSeconds,u=r.__rest(e,["value","unit","updateIntervalInSeconds"]);(0,o.invariant)(!a||!(!a||!d(n)),"Cannot schedule update with unit longer than hour");var h,f=i.useState(),m=f[0],g=f[1],y=i.useState(0),v=y[0],b=y[1],_=i.useState(0),w=_[0],x=_[1];n===m&&t===v||(b(t||0),g(n),x(d(n)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*s}}(t,n):0)),i.useEffect((function(){function e(){clearTimeout(h)}if(e(),!a||!d(n))return e;var t=w-a,r=l(t);if("day"===r)return e;var i=c(r),o=t-t%i,s=o>=w?o-i:o,u=Math.abs(s-w);return w!==s&&(h=setTimeout((function(){return x(s)}),1e3*u)),e}),[w,a,n]);var k=t||0,C=n;if(d(n)&&"number"===typeof w&&a){var S=c(C=l(w));k=Math.round(w/S)}return i.createElement(p,r.__assign({value:k,unit:C},u))};h.displayName="FormattedRelativeTime",h.defaultProps={value:0,unit:"second"},t.default=h},97539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5836).__importStar(n(18178)),i=n(65465),o=n(29e3);t.default=function(){var e=r.useContext(i.Context);return(0,o.invariantIntlContext)(e),e}},29e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shallowEqual=t.assignUniqueKeysToParts=t.DEFAULT_INTL_CONFIG=t.invariantIntlContext=void 0;var r=n(5836),i=r.__importStar(n(18178)),o=n(75346),a=n(27616);t.invariantIntlContext=function(e){(0,o.invariant)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")},t.DEFAULT_INTL_CONFIG=r.__assign(r.__assign({},a.DEFAULT_INTL_CONFIG),{textComponent:i.Fragment}),t.assignUniqueKeysToParts=function(e){return function(t){return e(i.Children.toArray(t))}},t.shallowEqual=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},36142:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||w(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},92146:(e,t,n)=>{"use strict";e.exports=n(36142)},34438:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,y=60129,v=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return _(e)===l}},7546:(e,t,n)=>{"use strict";e.exports=n(34438)},83073:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},19730:(e,t,n)=>{"use strict";n(83073)},28400:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===a||e===p||e===h||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},65819:(e,t,n)=>{"use strict";e.exports=n(28400)},33765:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(48766),i=n(5395);const o=(0,r.Au)((function(e,t){let{data:n,...r}=e;const o=new i.GeoJSON(n,r);return{instance:o,context:{...t,overlayContainer:o}}}),(function(e,t,n){t.style!==n.style&&(null==t.style?e.resetStyle():e.setStyle(t.style))}))},12870:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(16028),i=n(5395),o=n(18178);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e){let{children:t,className:n,id:s,placeholder:l,style:c,whenCreated:u,...d}=e;const p=(0,o.useRef)(null),h=function(e,t){const[n,r]=(0,o.useState)(null);return(0,o.useEffect)((()=>{if(null!==e.current&&null===n){const n=new i.Map(e.current,t);null!=t.center&&null!=t.zoom?n.setView(t.center,t.zoom):null!=t.bounds&&n.fitBounds(t.bounds,t.boundsOptions),null!=t.whenReady&&n.whenReady(t.whenReady),r(n)}}),[e,n,t]),n}(p,d),f=(0,o.useRef)(!1);(0,o.useEffect)((()=>{null!=h&&!1===f.current&&null!=u&&(f.current=!0,u(h))}),[h,u]);const[m]=(0,o.useState)({className:n,id:s,style:c}),g=(0,o.useMemo)((()=>h?{__version:r.cV,map:h}:null),[h]),y=g?o.createElement(r.UO,{value:g},t):l??null;return o.createElement("div",a({},m,{ref:p}),y)}},25237:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(48766),i=n(5395);const o=(0,r.dW)((function(e,t){let{position:n,...r}=e;const o=new i.Marker(n,r);return{instance:o,context:{...t,overlayContainer:o}}}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}))},66870:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(48766),i=n(58838);var o=n(5395);const a=(0,r.Lf)((function(e,t){let{url:n,...r}=e;return{instance:new o.TileLayer(n,(0,i.q)(r,t)),context:t}}),(function(e,t,n){const{opacity:r,zIndex:i}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)}))},3251:(e,t,n)=>{"use strict";n.d(t,{$_:()=>a,Sx:()=>o});var r=n(16028),i=n(18178);function o(){return(0,r.mE)().map}function a(e,t){const n=o();return(0,i.useEffect)((function(){return n.on(e,t),function(){n.off(e,t)}}),[n,e,t]),n}},78168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(18178),a=(r=o)&&r.__esModule?r:{default:r},s=n(47781);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scriptLoaderId="id"+n.constructor.idCount++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onError,n=e.onLoad,r=e.url;this.constructor.loadedScripts[r]?n():this.constructor.erroredScripts[r]?t():this.constructor.scriptObservers[r]?this.constructor.scriptObservers[r][this.scriptLoaderId]=this.props:(this.constructor.scriptObservers[r]=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.scriptLoaderId,this.props),this.createScript())}},{key:"componentWillUnmount",value:function(){var e=this.props.url,t=this.constructor.scriptObservers[e];t&&delete t[this.scriptLoaderId]}},{key:"createScript",value:function(){var e=this,t=this.props,n=t.onCreate,r=t.url,i=t.attributes,o=document.createElement("script");n(),i&&Object.keys(i).forEach((function(e){return o.setAttribute(e,i[e])})),o.src=r,o.hasAttribute("async")||(o.async=1);var a=function(t){var n=e.constructor.scriptObservers[r];Object.keys(n).forEach((function(i){t(n[i])&&delete e.constructor.scriptObservers[r][e.scriptLoaderId]}))};o.onload=function(){e.constructor.loadedScripts[r]=!0,a((function(e){return e.onLoad(),!0}))},o.onerror=function(){e.constructor.erroredScripts[r]=!0,a((function(e){return e.onError(),!0}))},document.body.appendChild(o)}},{key:"render",value:function(){return null}}]),t}(a.default.Component);l.propTypes={attributes:s.PropTypes.object,onCreate:s.PropTypes.func,onError:s.PropTypes.func.isRequired,onLoad:s.PropTypes.func.isRequired,url:s.PropTypes.string.isRequired},l.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},l.scriptObservers={},l.loadedScripts={},l.erroredScripts={},l.idCount=0,t.default=l,e.exports=t.default},72457:(e,t,n)=>{"use strict";n.d(t,{gr:()=>A,F2:()=>cn,qE:()=>hn,zx:()=>Wn,Zb:()=>Jn,SK:()=>cr,XZ:()=>ol,Af:()=>hr,D8:()=>Ks,UO:()=>de,wQ:()=>vr,h_:()=>no,S2:()=>Ko,xu:()=>ve,aV:()=>Re,HC:()=>St,aN:()=>lo,Uv:()=>bn,qZ:()=>Hl,mg:()=>mi,cv:()=>$r,rT:()=>nl,RM:()=>Sr,Dw:()=>ti,xD:()=>xr,vI:()=>bi,SC:()=>Xr,nv:()=>nn});var r=n(18178),i=n(62472),o=n.n(i),a=n(22297),s=n(55575),l=n.n(s),c=n(19160),u=n.n(c);function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value";return"undefined"!==typeof e[n]?e[n]:t[n]}function p(e,t){return e?t&&t.length?Object.keys(e).filter((function(e){return-1===t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):e:{}}var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var g=void 0;function y(e,t,n){if(!t)return null;n||(g||(g=document.createElement("canvas")),n=g);var r=n.getContext("2d");if(!r)return null;var i=window.getComputedStyle(t),o=i.font;if(!o){var a=i.fontSize+" / "+i.lineHeight+" "+i.fontFamily;o=i.fontStyle+" "+i.fontVariant+" "+i.fontWeight+" "+a}return r.font=o,r.measureText(e).width}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t,r,i,o,a){for(var s=i||"<<anonymous>>",l=[a||r].concat(n),c=arguments.length,u=Array(c>5?c-5:0),d=5;d<c;d++)u[d-5]=arguments[d];var p=e.apply(void 0,[t,r,i,o,a].concat(u));return p||l.filter((function(e){return"undefined"!==typeof t[e]})).length||(p=new Error("One of the following props are required to make "+s+" accessible for users of assistive technologies such as screen readers. `"+l.join("`, `")+"`.")),p}}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"defaultValue";return function(r,i,a,s,l){for(var c=a||"<<anonymous>>",u=l||i,d=arguments.length,p=Array(d>5?d-5:0),h=5;h<d;h++)p[h-5]=arguments[h];var f,m=e.apply(void 0,[r,i,a,s,l].concat(p));m||"undefined"===typeof r[i]||r.readOnly||r.disabled||(f=o().func).isRequired.apply(f,[r,t,a,s,l].concat(p))&&(m=new Error("You provided a `"+u+"` "+s+" to the "+c+" without a `"+t+"` handler. This will render a read only field. Set either the `"+t+"` or use the `"+n+"` instead."));return m}}function _(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t,r,i,o,a){for(var s=i||"<<anonymous>>",l=a||r,c=arguments.length,u=Array(c>5?c-5:0),d=5;d<c;d++)u[d-5]=arguments[d];var p=e.apply(void 0,[t,r,i,o,a].concat(u));if(p)return p;var h="undefined"!==typeof t[r]&&!!t[r],f=n.filter((function(e){return"undefined"!==typeof t[e]&&!!t[e]}));if(h&&f.length){var m="`"+f.join("`, `")+"`";return 1===f.length?new Error("You provided both a `"+l+"` and "+m+" prop to the "+s+" but only one can be given."):new Error("You provided a `"+l+"` "+o+" to the "+s+" when the following props were defined: "+m+". Either remove the `"+l+"` or use the remove all the other props.")}return null}}var w=27;const x={LEFT:"left",INNER_LEFT:"inner left",CENTER:"center",RIGHT:"right",INNER_RIGHT:"inner right"};const k={TOP:"top",CENTER:"center",OVERLAP:"overlap",BOTTOM:"bottom"},C=o().shape({x:o().oneOf([x.LEFT,x.INNER_LEFT,x.CENTER,x.RIGHT,x.INNER_RIGHT]).isRequired,y:o().oneOf([k.TOP,k.CENTER,k.OVERLAP,k.BOTTOM]).isRequired}),S=o().oneOfType([o().object,o().shape({x:o().object,y:o().object})]);const M={TOP_LEFT:"tl",TOP_RIGHT:"tr",BOTTOM_LEFT:"bl",BOTTOM_RIGHT:"br",BELOW:"below"},T=o().oneOfType([o().oneOf([M.TOP_LEFT,M.TOP_RIGHT,M.BOTTOM_LEFT,M.BOTTOM_RIGHT,M.BELOW]),o().string]);var E=n(85881);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeText,n=void 0===t||t,r=e.text,i=void 0!==r&&r,o=e.background,a=void 0!==o&&o,s=e.disabled,l=void 0!==s&&s,c=e.error,d=void 0!==c&&c,p=e.hint,h=void 0!==p&&p,f=e.primary,m=void 0!==f&&f,g=e.secondary,y=void 0!==g&&g,v=e.inherit,b=void 0!==v&&v,_=e.ink,w=void 0!==_&&_,x=e.card,k=void 0!==x&&x,C=e.hover,S=void 0!==C&&C,M=arguments[1],T="";return T=n?l?"md-text--disabled":d?"md-text--error":b?"md-text--inherit":u()({"md-text":i&&!m&&!y&&!h,"md-text--secondary":h,"md-text--theme-primary":!h&&m,"md-text--theme-secondary":!h&&y,"md-ink--primary":w&&m,"md-ink--secondary":w&&y}):u()({"md-background":a&&!m&&!y&&!k,"md-background--card":k,"md-background--primary":m,"md-background--primary-hover":m&&S,"md-background--secondary":y,"md-background--secondary-hover":y&&S}),u()(T,M)}function I(e){for(var t,n=e.flipped,r=e.suffix,i=e.suffixFlipped,o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return u().apply(void 0,["md-collapser",(t={"md-collapser--flipped":n&&(!i||!r)},t["md-collapser--"+r]=r,t["md-collapser--"+r+"-flipped"]=r&&n&&i,t)].concat(a))}function O(e){if(!e)return!1;if("INPUT"===e.nodeName)return!0;var t=e.getAttribute("role");return"checkbox"===t||"radio"===t||"listbox"===t}function L(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.which||e.keyCode,o=r&&32===i,a=13===i,s=e.target.tagName;if(o&&!s.match(/input|textarea|button/i)&&"true"!==e.target.getAttribute("contenteditable")&&e.preventDefault(),a&&O(e.target)){var l=function(e,t){if("function"===typeof e.closest)return e.closest(t);for(var n=t.toUpperCase(),r=e.parentElement;r&&r.parentElement;){if(r.nodeName===n)return r;r=r.parentElement}return null}(e.target,"form"),c=l?l.querySelector('*[type="submit"]'):null;return c&&c.click(),!0}return!!(a&&n||o)&&(t(e),!0)}var R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function j(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var D=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=j(this,e.call.apply(e,[this].concat(o))),r.state={pressed:!1,tabFocused:!1},r.focus=function(){r._node&&r._node.focus()},r.blur=function(){r._node&&r._node.blur()},r._setNode=function(e){e&&(r._node=(0,a.findDOMNode)(e))},r._handleClick=function(e){r.props.disabled||(r.props.onClick&&r.props.onClick(e),r._node.focus(),r.setState({pressed:!r.state.pressed}))},r._handleKeyDown=function(e){var t=r.props,n=t.disabled,i=t.onKeyDown,o=t.listenToEnter,a=t.listenToSpace;n||(i&&i(e),L(e,r._handleClick,o,a))},r._handleKeyUp=function(e){var t=r.props,n=t.onKeyUp,i=t.onTabFocus;n&&n(e),9===(e.which||e.keyCode)&&(i&&i(e),r.setState({tabFocused:!0}))},r._handleBlur=function(e){r.props.onBlur&&r.props.onBlur(e),r.state.tabFocused&&r.setState({tabFocused:!1})},j(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.component,i=t.children,o=t.className,a=t.tabbedClassName,s=t.disabled,l=t.tabIndex,c=t.ink,d=t.noFocusOutline,p=(t.onBlur,t.onClick,t.onKeyUp,t.onKeyDown,t.onTabFocus,t.listenToEnter,t.listenToSpace,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["component","children","className","tabbedClassName","disabled","tabIndex","ink","noFocusOutline","onBlur","onClick","onKeyUp","onKeyDown","onTabFocus","listenToEnter","listenToSpace"])),h=i;return c&&(h=r.Children.toArray(i)).unshift(c),r.createElement(n,R({},p,{ref:this._setNode,className:u()("md-fake-btn",(e={"md-pointer--hover":!s,"md-fake-btn--no-outline":d},e[a]=a&&this.state.tabFocused,e),o),disabled:s,tabIndex:s?null:l,onBlur:this._handleBlur,onClick:this._handleClick,onKeyUp:this._handleKeyUp,onKeyDown:this._handleKeyDown,"aria-pressed":this.state.pressed}),h)},t}(r.PureComponent);D.propTypes={style:o().object,className:o().string,tabbedClassName:o().string,children:o().node,onClick:o().func,onKeyDown:o().func,onBlur:o().func,onKeyUp:o().func,onTabFocus:o().func,component:o().oneOfType([o().func,o().string,o().object]).isRequired,noFocusOutline:o().bool,tabIndex:o().number,disabled:o().bool,role:o().string,ink:o().node,listenToSpace:o().bool,listenToEnter:o().bool},D.defaultProps={component:"div",tabIndex:0,role:"button",noFocusOutline:!0,listenToEnter:!0,listenToSpace:!0};const A=D;function N(e,t){return"with"+t+"("+(""+(e.displayName||e.name||"Component"))+")"}var F=n(44600),z=n.n(F);function B(e){var t="scroll"+("x"===e?"Left":"Top");return"undefined"!==typeof window.pageXOffset?window["page"+e.toUpperCase()+"Offset"]:"CSS1Compat"===(document.compatMode||"")?document.documentElement[t]:document.body[t]}function U(e){if(!e)return{left:null,right:null};var t=e.getBoundingClientRect();return{left:t.left+B("x"),top:t.top+B("y")}}function $(e){return 0===e.button&&!e.shiftKey}var V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=void 0;try{var Z=Object.defineProperty({},"passive",{get:function(){q=!0}});window.addEventListener("test",null,Z)}catch(mc){q=!1}function H(e,t,n,r,i){return t[(e?"add":"remove")+"EventListener"]("touch"+n,r,!!q&&V({passive:!0},i))}function G(e,t,n,r){return H(!0,e,t,n,r)}function W(e,t,n,r){return H(!1,e,t,n,r)}function Y(e,t,n){var r="function"!==typeof t&&t?t:window,i="function"===typeof t?t:n;r.addEventListener(e,(function t(n){n.stopPropagation(),i&&i(n),r.removeEventListener(e,t,!0)}),!0)}function K(e,t){return Math.sqrt(e*e+t*t)}const X=17;var J=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state={active:!1,expanded:!1,pulsing:!1,leaving:!1},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){!this.props.aborted&&e.aborted&&(this._timeout&&clearTimeout(this._timeout),this._abort&&this._abort(),this.setState({active:!1,expanding:!1,pulsing:!1,leaving:!1}))},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype.componentWillEnter=function(e){var t=this;if(this.props.aborted)e();else{var n=this.props,r=n.transitionOverlap,i=n.transitionEnterTimeout;this._abort=e,this._timeout=setTimeout((function(){t._timeout=setTimeout((function(){t._timeout=null,t._abort=null,e()}),i-r),t.setState({expanded:!0})}),X),this.setState({active:!0})}},t.prototype.componentDidEnter=function(){var e=this;this.props.pulse&&(this._timeout=setTimeout((function(){e._timeout=null,e.setState({pulsing:!0})}),this.props.transitionEnterTimeout))},t.prototype.componentWillLeave=function(e){var t=this;this.props.aborted?e():(this._timeout&&clearTimeout(this._timeout),this._abort=e,this._timeout=setTimeout((function(){t._timeout=null,e()}),this.props.transitionLeaveTimeout),this.setState({pulsing:!1,leaving:!0}))},t.prototype.componentDidLeave=function(){!this.props.aborted&&this.props.onRemove&&this.props.onRemove()},t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.left,o=e.top,a=e.size,s=this.state,l=s.active,c=s.expanded,d=s.pulsing,p=s.leaving;return r.createElement("span",{style:Object.assign({},t,{left:i,top:o,height:a,width:a}),className:u()("md-ink",{"md-ink--active":l,"md-ink--expanded":c,"md-ink--pulsing":d,"md-ink--leaving":p},n)})},t}(r.PureComponent);J.propTypes={style:o().object,className:o().string,aborted:o().bool,onRemove:o().func,left:o().number.isRequired,top:o().number.isRequired,size:o().number.isRequired,transitionOverlap:o().number.isRequired,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,pulse:o().bool};const Q=J;var ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function te(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var ne=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=te(this,e.call.apply(e,[this].concat(o))),r.state={inks:[]},r.createInk=function(e,t){r._createInk(e,t),r._removeTimeout=setTimeout((function(){r._removeTimeout=null,r._removeInk()}),r.props.transitionOverlap)},r.focus=function(){r._getKeyboardContainer().focus()},r._createInk=function(e,t){var n=r._inkContainer,i=n.offsetWidth,o=n.offsetHeight,a=void 0,s=void 0;if("undefined"!==typeof e&&"undefined"!==typeof t){var l=U(r._inkContainer);a=e-l.left,s=t-l.top}else a=i/2,s=o/2;var c=Math.max(K(a,s),K(i-a,s),K(i-a,o-s),K(a,o-s)),u={left:a-c,top:s-c,size:2*c,key:Date.now()},d=r.state.inks.slice();d.push(u),r.setState({inks:d})},r._removeInk=function(){var e=r.state.inks.slice();e.pop(),r.setState({inks:e})},r._getKeyboardContainer=function(){return r._container.classList.contains("md-text-field-container")?r._container.querySelector(".md-text-field"):r._container},r._setContainers=function(e){null!==e&&(r._inkContainer=(0,a.findDOMNode)(e),r._container=r._inkContainer.parentElement,r._container&&r._initOrRemoveEvents(r.props))},r._initOrRemoveEvents=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=r._isListenerDisabled("mouse",e.disabledInteractions),a=r._isListenerDisabled("touch",e.disabledInteractions),s=r._isListenerDisabled("keyboard",e.disabledInteractions);if(t){var l=(s?"remove":"add")+"EventListener";r._getKeyboardContainer()[l]("focus",r._handleFocus),r._getKeyboardContainer()[l]("keydown",r._handleKeyDown),"submit"===r._container.getAttribute("type")&&window[l]("submit",r._handleSubmit),n&&r._container[(o?"remove":"add")+"EventListener"]("mousedown",r._stopPropagationToFocus),i&&H(!a,r._container,"start",r._stopPropagationToFocus)}if(n){var c=(o?"remove":"add")+"EventListener";r._container[c]("mousedown",r._handleMouseDown),r._container[c]("mouseup",r._handleMouseUp)}i&&(H(!a,r._container,"start",r._handleTouchStart),H(!a,r._container,"end",r._handleTouchEnd))},r._maybeDelayClick=function(){r.props.waitForInkTransition&&Y("click",r._container)},r._handleRemove=function(){r._clicked&&r.props.waitForInkTransition&&setTimeout((function(){r._container.click()}),1),r._clicked=!1},r._handleKeyDown=function(e){var t=e.which||e.keyCode;(32===t||13===t&&!O(e.target)&&!e.target.querySelector("input"))&&(r._clicked=!0,r.createInk(),r._maybeDelayClick())},r._handleFocus=function(){r._clicked||(r._createInk(),r._getKeyboardContainer().addEventListener("blur",r._handleBlur))},r._handleBlur=function(){r._getKeyboardContainer().removeEventListener("blur",r._handleBlur),r._removeInk()},r._handleMouseDown=function(e){r._clicked=!0,$(e)&&!r._skipNextMouse?(r._mouseLeave=!1,r._container.addEventListener("mouseleave",r._handleMouseLeave),r._createInk(e.pageX,e.pageY)):r._skipNextMouse=!1},r._handleMouseLeave=function(){r._container.removeEventListener("mouseleave",r._handleMouseLeave),r._mouseLeave=!0,r._removeInk()},r._handleMouseUp=function(){r._mouseLeave||(r._maybeDelayClick(),r._container.removeEventListener("mouseleave",r._handleMouseLeave),r._removeInk())},r._handleTouchStart=function(e){r._aborted=!1,r._clicked=!0,r._skipNextMouse=!0,G(window,"move",r._handleTouchMove);var t=e.changedTouches[0],n=t.pageX,i=t.pageY;r._createInk(n,i)},r._handleTouchMove=function(){W(window,"move",r._handleTouchMove);var e=r.state.inks[r.state.inks.length-1];if(!e||Date.now()>e.key+200)r._aborted=!1;else{var t=r.state.inks.slice(),n=t.length-1,i=Object.assign({},e,{aborted:!0});t.splice(n,1,i),r._aborted=!0,r.setState({inks:t},r._removeInk)}},r._handleTouchEnd=function(){r._skipNextMouse=!0,r._aborted||(W(window,"move",r._handleTouchMove),r._removeInk())},r._handleSubmit=function(e){document.activeElement!==r._container&&e.target.contains(r._container)&&(r._maybeDelayClick(),r.createInk())},r._stopPropagationToFocus=function(e){switch(e.type){case"touchstart":G(window,"end",r._stopPropagationToFocus,{capture:!0});break;case"touchend":W(window,"end",r._stopPropagationToFocus,{capture:!0});break;case"mousedown":window.addEventListener("mouseup",r._stopPropagationToFocus,!0);break;case"mouseup":window.removeEventListener("mouseup",r._stopPropagationToFocus,!0)}},te(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.disabledInteractions,n=e.disabledInteractions;if(t!==n&&this._container){var r=this._isListenerDisabledDiff("mouse",t,n),i=this._isListenerDisabledDiff("touch",t,n),o=this._isListenerDisabledDiff("keyboard",t,n);this._initOrRemoveEvents(e,o,r,i)}},t.prototype.componentWillUnmount=function(){this._removeTimeout&&clearTimeout(this._removeTimeout),this._container&&(this._initOrRemoveEvents({disabledInteractions:["keyboard","mouse","touch"]}),this._getKeyboardContainer().removeEventListener("blur",this._handleBlur))},t.prototype._isListenerDisabledDiff=function(e,t,n){var r=t.indexOf(e),i=n.indexOf(e);return r<0&&i>=0||r>=0&&i<0},t.prototype._isListenerDisabled=function(e,t){return t&&-1!==t.indexOf(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,i=t.className,o=t.inkStyle,a=t.inkClassName,s=t.transitionOverlap,l=t.transitionEnterTimeout,c=t.transitionLeaveTimeout,d=t.pulse,p=this.state.inks.map((function(t){return r.createElement(Q,ee({},t,{pulse:d,style:o,className:a,onRemove:e._handleRemove,transitionOverlap:s,transitionEnterTimeout:l,transitionLeaveTimeout:c}))}));return r.createElement(z(),{component:"div",style:n,className:u()("md-ink-container",i),ref:this._setContainers},p)},t}(r.PureComponent);ne.propTypes={style:o().object,className:o().string,inkStyle:o().object,inkClassName:o().string,waitForInkTransition:o().bool,disabledInteractions:o().arrayOf(o().oneOf(["keyboard","mouse","touch"])),transitionOverlap:o().number.isRequired,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,pulse:o().bool},ne.defaultProps={transitionOverlap:150,transitionEnterTimeout:450,transitionLeaveTimeout:300};const re=ne,ie={inkDisabled:o().bool,inkDisabledInteractions:o().arrayOf(o().oneOf(["keyboard","mouse","touch"]))};function oe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}const ae=function(e){var t,n;return n=t=function(t){function n(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=r=oe(this,t.call.apply(t,[this].concat(o))),r.createInk=function(e,t){!r._inkContainer||r.props.disabled||r.props.inkDisabled||r._inkContainer.createInk(e,t)},r.focus=function(){if(r.props.inkDisabled){var e=(0,a.findDOMNode)(r._composed);e&&e.focus()}else r._inkContainer&&r._inkContainer.focus()},r.getComposedComponent=function(){return r._composed},r._setInkRef=function(e){e&&(r._inkContainer=e)},r._setComposedComponent=function(e){r._composed=e},oe(r,e)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.componentDidMount=function(){var e=this.props.__SUPER_SECRET_REF__;e&&e(this)},n.prototype.componentWillUnmount=function(){var e=this.props.__SUPER_SECRET_REF__;e&&e(null)},n.prototype.render=function(){var t=this.props,n=t.inkTransitionOverlap,i=t.inkTransitionEnterTimeout,o=t.inkTransitionLeaveTimeout,a=t.inkStyle,s=t.inkClassName,l=t.inkContainerStyle,c=t.inkContainerClassName,u=t.waitForInkTransition,p=t.disabledInteractions,h=t.pulse,f=(t.inkDisabled,t.__SUPER_SECRET_REF__,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["inkTransitionOverlap","inkTransitionEnterTimeout","inkTransitionLeaveTimeout","inkStyle","inkClassName","inkContainerStyle","inkContainerClassName","waitForInkTransition","disabledInteractions","pulse","inkDisabled","__SUPER_SECRET_REF__"])),m=d(this.props,this.context,"inkDisabled"),g="undefined"!==typeof p?p:this.context.inkDisabledInteractions;return f.disabled||m||(f.ink=r.createElement(re,{ref:this._setInkRef,key:"ink-container",pulse:h,style:l,className:c,inkStyle:a,inkClassName:s,disabledInteractions:g,transitionOverlap:n,transitionEnterTimeout:i,transitionLeaveTimeout:o,waitForInkTransition:u})),f.ref=this._setComposedComponent,r.createElement(e,f)},n}(r.PureComponent),t.displayName=N(e,"Ink"),t.propTypes={inkStyle:o().object,inkClassName:o().string,inkContainerStyle:o().object,inkContainerClassName:o().string,disabled:o().bool,inkDisabled:o().bool,inkTransitionOverlap:o().number.isRequired,inkTransitionEnterTimeout:o().number.isRequired,inkTransitionLeaveTimeout:o().number.isRequired,waitForInkTransition:o().bool,disabledInteractions:o().arrayOf(o().oneOf(["keyboard","mouse","touch"])),pulse:o().bool,__SUPER_SECRET_REF__:o().func},t.defaultProps={inkTransitionOverlap:150,inkTransitionEnterTimeout:450,inkTransitionLeaveTimeout:300},t.contextTypes=ie,n},se=ae(A);var le=n(93284),ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ue=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._setHeight=function(e){r._child&&"function"===typeof r._child.ref&&r._child.ref(e);var t=0,n=0,i=0;if(null!==e){var o=(0,a.findDOMNode)(e),s=window.getComputedStyle(o);t=o.offsetHeight,n=parseInt(s.getPropertyValue("padding-top"),10),i=parseInt(s.getPropertyValue("padding-bottom"),10)}t=Math.max(r.props.minHeight,t),r.setState({height:t,paddingTop:n,paddingBottom:i})},n.collapsed?r.state={height:n.minHeight,paddingTop:0,paddingBottom:0}:r.state={initialOpen:!0},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.state.initialOpen&&e.collapsed&&this.setState({initialOpen:!1})},t.prototype._spring=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=e?i:Math.max(i,n);return t&&!e?o:(0,le.ST)(o,r)},t.prototype.render=function(){var e=this,t=this.state,n=t.height,i=t.paddingTop,o=t.paddingBottom,a=t.initialOpen,s=this.props,l=s.children,c=s.collapsed,u=s.defaultStyle,d=s.style,p=s.springConfig,h=s.animate,f=s.minHeight;return h?r.createElement(le.y_,{style:ce({},d,{height:this._spring(c,a,n,p,f),paddingTop:this._spring(c,a,i,p),paddingBottom:this._spring(c,a,o,p)}),defaultStyle:ce({},u,{height:n,paddingTop:i,paddingBottom:o})},(function(t){if(c&&!t.height)return null;var i=r.Children.only(l);e._child=i;var o=i.props.style;return(!c||f&&t.height===f)&&t.height===n||(o=ce({},i.props.style,t,{overflow:"hidden"})),(0,r.cloneElement)(i,{ref:c?null:e._setHeight,style:o})})):c?null:l},t}(r.PureComponent);ue.propTypes={style:o().object,defaultStyle:o().object,collapsed:o().bool.isRequired,children:o().element.isRequired,springConfig:o().object.isRequired,animate:o().bool,minHeight:o().number.isRequired},ue.defaultProps={animate:!0,springConfig:{precision:.5},minHeight:0};const de=ue;var pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var he=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inset,i=e.vertical,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","inset","vertical"]),a=i?"div":"hr";return r.createElement(a,pe({},o,{className:u()("md-divider",{"md-divider--vertical":i,"md-divider--inset":n},t)}))},t}(r.PureComponent);he.propTypes={style:o().object,className:o().string,inset:o().bool,vertical:o().bool};const fe=he;var me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ge=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return ye.call(r),r.state={styles:r._mergeStyles(n)},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.style,r=t.forceSize,i=t.forceFontSize;n===e.style&&r===e.forceSize&&i===e.forceFontSize||this.setState({styles:this._mergeStyles(e)})},t.prototype.render=function(){var e=this.state.styles,t=this.props,n=t.iconClassName,i=t.className,o=t.children,a=t.disabled,s=t.primary,l=t.secondary,c=t.error,d=t.inherit,p=(t.style,t.forceSize,t.forceFontSize,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["iconClassName","className","children","disabled","primary","secondary","error","inherit","style","forceSize","forceFontSize"])),h=u()("md-icon",n,P({disabled:a,error:c,inherit:d,primary:s,secondary:l}),i);return r.createElement("i",me({},p,{style:e,className:h}),o)},t}(r.PureComponent);ge.propTypes={style:o().object,className:o().string,iconClassName:o().string.isRequired,primary:o().bool,secondary:o().bool,disabled:o().bool,error:o().bool,inherit:o().bool,forceSize:o().oneOfType([o().bool,o().number]),forceFontSize:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s=o().bool.apply(o(),[e,t,n].concat(i));return!s&&"undefined"===typeof e.forceSize&&e[t]&&(s=new Error("You provided a `forceFontSize` prop to the "+n+" component, without specifying the `forceSize` prop. Either set the `forceSize` prop to a boolean or a number, or disable `"+t+"`.")),s},children:o().node},ge.defaultProps={iconClassName:"material-icons"};var ye=function(){this._mergeStyles=function(e){var t=e.style,n=e.forceSize,r=e.forceFontSize,i=t;return"boolean"===typeof n?i=me({height:24,width:24,fontSize:r?24:void 0},t):"number"===typeof n&&(i=me({height:n,width:n,fontSize:r?n:void 0},t)),i}};const ve=ge;function be(e,t,n){return e||t?r.createElement(ve,{iconClassName:e},t):n}var _e=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.icon,i=t.avatar,o=t.active,a=t.activeClassName,s=t.style,l=t.className;if(!n&&!i)return null;var c=!1;i&&(r.Children.only(i).props.iconSized&&(c=!0));return r.createElement("div",{style:s,className:u()("md-tile-addon",(e={"md-tile-addon--icon":n||c,"md-tile-addon--avatar":i&&!c},e[a]=o,e),l)},n||i)},t}(r.PureComponent);_e.propTypes={style:o().object,className:o().string,active:o().bool,activeClassName:o().string,icon:o().node,avatar:o().node};const we=_e;var xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ke=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.active,i=t.activeClassName,o=t.disabled,a=t.primaryText,s=t.primaryTextStyle,l=t.primaryTextClassName,c=t.secondaryText,d=t.secondaryTextStyle,p=t.secondaryTextClassName,h=t.className,f=t.threeLines,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["active","activeClassName","disabled","primaryText","primaryTextStyle","primaryTextClassName","secondaryText","secondaryTextStyle","secondaryTextClassName","className","threeLines"]),g=void 0;return c&&(g=r.createElement("div",{style:d,className:u()("md-tile-text--secondary",{"md-tile-text--three-lines":f},P({disabled:o,hint:!o}),p)},c)),r.createElement("div",xe({},m,{className:u()("md-tile-content",h)}),r.createElement("div",{style:s,className:u()("md-tile-text--primary",(e={},e[i]=!o&&n,e),P({disabled:o,text:!n}),l)},a),g)},t}(r.PureComponent);ke.propTypes={active:o().bool,activeClassName:o().string,disabled:o().bool,primaryText:o().node.isRequired,primaryTextStyle:o().object,primaryTextClassName:o().string,secondaryText:o().node,secondaryTextStyle:o().object,secondaryTextClassName:o().string,className:o().string,threeLines:o().bool};const Ce=ke;var Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Me=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=e.inset,i=e.primary,o=e.primaryText,a=e.className,s=e.children,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","inset","primary","primaryText","className","children"]);return r.createElement(t,Se({},l,{className:u()("md-subheader",{"md-list-item--inset":n},P({primary:i,hint:!i}),a)}),o,s)},t}(r.PureComponent);Me.propTypes={style:o().object,className:o().string,primary:o().bool,inset:o().bool,primaryText:o().node.isRequired,children:o().node,component:o().oneOfType([o().string,o().func,o().object]).isRequired},Me.defaultProps={component:"li"};const Te=Me,Ee=Te;var Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ie(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Oe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Le=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Oe(this,e.call.apply(e,[this].concat(o))),r.state={},Oe(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this.context,t=e.listLevel,n=Ie(e,["listLevel"]),r=d(this.state,this.context,"cascadingFixedTo");return Pe({},n,{cascadingFixedTo:r,listLevel:"undefined"===typeof t?1:t+1})},t.prototype.componentDidMount=function(){if(this.context.cascadingMenu){var e=(0,a.findDOMNode)(this);if(e.offsetHeight<e.scrollHeight){var t={y:(0,a.findDOMNode)(this)};this.setState({cascadingFixedTo:t})}}},t.prototype.render=function(){var e,t=this.props,n=t.className,i=t.ordered,o=t.children,a=t.subheader,s=t.inline,l=t.primarySubheader,c=Ie(t,["className","ordered","children","subheader","inline","primarySubheader"]),d=this.context,p=d.cascadingMenu,h=d.cascadingZDepth,f=d.listLevel,m=void 0;a&&(m=r.createElement(Ee,{key:"subheader",primaryText:a,primary:l}));var g=i?"ol":"ul";return r.createElement(g,Pe({},c,{className:u()("md-list",(e={"md-list--inline":s,"md-list--menu-cascading":p},e["md-paper md-paper--"+h]=h&&p&&f>0,e["md-list--nested-"+f]=f&&!p,e),n)}),m,o)},t}(r.PureComponent);Le.propTypes={style:o().object,className:o().string,ordered:o().bool,children:o().node,inline:o().bool,subheader:(0,E.Z)(o().string,"Use the `Subheader` component as a child instead"),primarySubheader:(0,E.Z)(o().bool,"Use the `Subheader` component as a child instead")},Le.childContextTypes={listLevel:o().number,cascadingMenu:o().bool,cascadingFixedTo:S,cascadingZDepth:o().number},Le.contextTypes={listLevel:o().number,cascadingMenu:o().bool,cascadingFixedTo:S,cascadingZDepth:o().number};const Re=Le;var je=n(38345),De=void 0;function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"===typeof De&&"undefined"!==typeof window){var n=window.navigator.userAgent,r=n.match(/iP(ad|hone)/i),i=n.match(/WebKit/i);(De=r&&i&&!n.match(/CriOS/i))&&(document.body.style.cursor="pointer")}t?window.addEventListener("click",e):window.removeEventListener("click",e)}function Ne(e){var t=e.target,n=e.clientX,r=e.clientY,i="undefined"!==typeof window.getSelection?window.getSelection().toString():"undefined"!==typeof document.selection&&"Text"===document.selection.type?document.selection.createRange().text:"",o=Math.round(y(i,t)||0);if(!i||t.classList.contains("md-text-field"))return{width:o,height:parseInt(window.getComputedStyle(t).fontSize,10),left:n-o,top:r};if(window.getSelection){var a=window.getSelection();if(a.rangeCount){var s=a.getRangeAt(0).cloneRange(),l=null;if(s.getClientRects){var c=s.getClientRects();c.length>0&&(l=c[0])}if(!l){var u=document.createElement("span");u.appendChild(document.createTextNode("\u200b")),s.insertNode(u),l=u.getBoundingClientRect();var d=u.parentNode;d.removeChild(u),d.normalize()}return l}}return null}function Fe(e){return"undefined"!==typeof e.scrollX&&"undefined"!==typeof e.scrollY?{x:e.scrollX,y:e.scrollY}:"undefined"!==typeof e.scrollLeft&&"undefined"!==typeof e.scrollTop?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}}function ze(e){return window["inner"+e]||document.documentElement["client"+e]}function Be(e){if(!e)return{};var t=e.getBoundingClientRect(),n=t.top>=0,r=t.right<=ze("Width"),i=t.bottom<=ze("Height"),o=t.left>=0;return n&&r&&i&&o||{top:n,right:r,bottom:i,left:o}}function Ue(e,t,n){var r=e.getBoundingClientRect(),i=r.left,o=r.right,a=t.getBoundingClientRect(),s=a.left,l=a.right,c=t.offsetWidth*n,u=s+c,d=l-c,p=0===s||ze("Width")===l;return i>u||o<d||p}function $e(e,t,n,r){var i=e.getBoundingClientRect(),o=i.top,a=i.bottom,s=t.getBoundingClientRect(),l=s.top,c=s.bottom,u=n.offsetHeight*r,d=0===l||ze("Height")===c;return o>l+u||a<l-u||d}var Ve=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),qe="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,Ze="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),He="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(Ze):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ge=["top","right","bottom","left","width","height","size","weight"],We="undefined"!==typeof MutationObserver,Ye=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){He(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){qe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),We?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){qe&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ge.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ke=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Xe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ze},Je=it(0,0,0,0);function Qe(e){return parseFloat(e)||0}function et(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Qe(e["border-"+n+"-width"])}),0)}function tt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Je;var r=Xe(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Qe(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Qe(r.width),l=Qe(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=et(r,"left","right")+o),Math.round(l+a)!==n&&(l-=et(r,"top","bottom")+a)),!function(e){return e===Xe(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return it(i.left,i.top,s,l)}var nt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Xe(e).SVGGraphicsElement}:function(e){return e instanceof Xe(e).SVGElement&&"function"===typeof e.getBBox};function rt(e){return qe?nt(e)?function(e){var t=e.getBBox();return it(0,0,t.width,t.height)}(e):tt(e):Je}function it(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ot=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=it(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=rt(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),at=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ke(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);Ke(this,{target:e,contentRect:n})},st=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ve,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Xe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ot(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Xe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new at(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),lt="undefined"!==typeof WeakMap?new WeakMap:new Ve,ct=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ye.getInstance(),r=new st(t,n,this);lt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ct.prototype[e]=function(){var t;return(t=lt.get(this))[e].apply(t,arguments)}}));const ut="undefined"!==typeof Ze.ResizeObserver?Ze.ResizeObserver:ct;function dt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var pt=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=dt(this,e.call.apply(e,[this].concat(o))),r._container=null,r._target=null,r._observer=null,r._height=null,r._width=null,r._scrollHeight=null,r._scrollWidth=null,r._measure=function(e){if(r._observer&&r._target){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if(!a)return;var s=a.contentRect,l=s.height,c=s.width,u=a.target,d=u.scrollHeight,p=u.scrollWidth;(r._isHeightChange(l,d)||r._isWidthChange(c,p))&&(r._height=l,r._width=c,r._scrollHeight=d,r._scrollWidth=p,r.props.onResize({height:l,width:c,scrollHeight:d,scrollWidth:p,el:a.target}))}}},r._isHeightChange=function(e,t){return r.props.watchHeight&&(e!==r._height||t!==r._scrollHeight)},r._isWidthChange=function(e,t){return r.props.watchWidth&&(e!==r._width||t!==r._scrollWidth)},r._handleRef=function(e){e?(r._container=e,r._target=r._getTarget(e,r.props.target),r._observer=new ut(r._measure),r._target&&r._observer.observe(r._target)):(r._observer&&r._observer.disconnect(),r._container=null,r._target=null,r._observer=null,r._height=null,r._width=null,r._scrollHeight=null,r._scrollWidth=null),r.props.elRef&&r.props.elRef(r._target)},dt(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.target,n=e.target;t!==n&&n&&(this._target&&this._observer.unobserve(this._target),this._target=this._getTarget(this._container,n),this._observer.observe(this._target))},t.prototype._getTarget=function(e,t){if(null===t||t&&"string"!==typeof t)return t;var n=null;if(!(n=t?document.getElementById(t)||document.querySelector(t):e.parentNode))throw new Error("An HTMLDOMNode is required as the `ResizeObserver`'s watch target but none were provided/found. Please update the target prop to find a valid node since the provided target is invalid. `"+t+"`.");return n},t.prototype.render=function(){var e=this.props.component;return r.createElement(e,{ref:this._handleRef,"aria-hidden":!0})},t}(r.PureComponent);pt.propTypes={watchHeight:o().bool,watchWidth:o().bool,target:o().oneOfType([o().object,o().string]),component:o().string,onResize:o().func.isRequired,elRef:o().func},pt.defaultProps={watchHeight:!1,watchWidth:!1,component:"span"};const ht=pt;var ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var mt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));gt.call(i);var o=r.Children.only(n.children);return i.state={below:!1,right:!1,styles:o.props.style},i._lastXFix=null,i._lastYFix=null,i._initialX=null,i._initialY=null,i._initialTop=null,i._initialLeft=null,i._child=null,i._toggle=null,i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.visible,n=e.fixedTo,r=e.sameWidth,i=e.centered,o=e.simplified,a=this._getAnchor(this.props);if(t){if(Ae(this._handleOutsideClick,!0),o)return;var s=this._contextRect||this._toggle.getBoundingClientRect();this._dialog?this._manageFixedToListener(this._dialog,!0):this._inFixed||this._manageFixedToListener(n,!0),this._init(n,a,r,i,s)}},t.prototype.componentWillReceiveProps=function(e){var t=e.fixedTo,n=e.visible,i=e.children,o=e.sameWidth,a=e.centered,s=e.simplified;if(s)this.props.simplified!==s&&this._reset();else{var l=this._getAnchor(e),c=n!==this.props.visible,u=r.Children.only(i).props.style;if(c)if(n){var d=this._contextRect||this._toggle.getBoundingClientRect();this._dialog?this._manageFixedToListener(this._dialog,!0):this._inFixed||this._manageFixedToListener(t,!0),this._init(t,l,o,a,d)}else this._reset();else t!==this.props.fixedTo&&n?(this._manageFixedToListener(this.props.fixedTo,!1),this._manageFixedToListener(t,!0)):u!==r.Children.only(this.props.children).props.style&&this.setState({styles:ft({},this.state.styles,u)})}},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,r=n.visible,i=n.closeOnOutsideClick,o=r&&i,a=e.visible&&e.closeOnOutsideClick;o!==a&&(this._clickTimeout&&(clearTimeout(this._clickTimeout),this._clickTimeout=null),this._clickTimeout=setTimeout((function(){t._clickTimeout=null,Ae(t._handleOutsideClick,o)}),o?300:0))},t.prototype.componentWillUnmount=function(){this._clickTimeout&&(clearTimeout(this._clickTimeout),this._clickTimeout=null),Ae(this._handleOutsideClick,!1),this.props.simplified||(this._manageFixedToListener(this.props.fixedTo,!1),this._manageWindowResizeListener(!1))},t.prototype._getAnchor=function(e){var n=e.anchor,r=e.belowAnchor;return e.animationPosition===t.Positions.BELOW&&r||n},t.prototype.render=function(){var e=this.props,t=e.className,n=e.block,i=e.toggle,o=e.visible,a=e.children,s=e.fullWidth,c=e.animationPosition,d=e.simplified,p=e.fillViewportWidth,h=e.fillViewportHeight,f=(e.anchor,e.belowAnchor,e.onClose,e.repositionOnScroll,e.repositionOnResize,e.sameWidth,e.centered,e.fixedTo,e.toggleQuery,e.yThreshold,e.xThreshold,e.onContextMenu,e.preventContextMenu,e.closeOnOutsideClick,e.minLeft,e.minRight,e.minBottom,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","block","toggle","visible","children","fullWidth","animationPosition","simplified","fillViewportWidth","fillViewportHeight","anchor","belowAnchor","onClose","repositionOnScroll","repositionOnResize","sameWidth","centered","fixedTo","toggleQuery","yThreshold","xThreshold","onContextMenu","preventContextMenu","closeOnOutsideClick","minLeft","minRight","minBottom"])),m=void 0,g=void 0;o&&((m=r.Children.only(a)).props.id?g=m.props.id:f.id&&(g=f.id+"-layover"),m=r.cloneElement(a,{ref:this._fixateChild,id:g,style:d?m.props.style:this.state.styles,className:u()("md-layover-child md-layover-child--"+c,{"md-layover-child--simplified":d},m.props.className)}));var y=null;return d||p||h||(y=r.createElement(ht,{watchWidth:!p,watchHeight:!h,target:this._child,onResize:this._handleResize})),r.createElement(l(),ft({},f,{className:u()("md-layover",{"md-layover--simplified":d,"md-inline-block":!n&&!s,"md-full-width":s},t),ref:this._setContainer,"aria-haspopup":!0,"aria-owns":g,"aria-expanded":o,transitionEnter:0!==f.transitionEnterTimeout,transitionLeave:0!==f.transitionLeaveTimeout,onContextMenu:this._handleContextMenu}),y,i,m)},t}(r.PureComponent);mt.HorizontalAnchors=x,mt.VerticalAnchors=k,mt.Positions=M,mt.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,visible:o().bool.isRequired,fixedTo:S.isRequired,toggle:o().node,toggleQuery:o().oneOfType([o().func,o().object,o().string]).isRequired,children:o().element.isRequired,block:o().bool,centered:o().bool,fullWidth:o().bool,sameWidth:o().bool,minLeft:o().oneOfType([o().number,o().string]).isRequired,minRight:o().oneOfType([o().number,o().string]).isRequired,minBottom:o().number.isRequired,fillViewportWidth:o().bool,fillViewportHeight:o().bool,onClose:o().func.isRequired,component:o().oneOfType([o().string,o().func,o().object]).isRequired,transitionName:o().string.isRequired,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,xThreshold:o().number.isRequired,yThreshold:o().number.isRequired,closeOnOutsideClick:o().bool.isRequired,anchor:C.isRequired,belowAnchor:C,animationPosition:T.isRequired,onContextMenu:o().func,preventContextMenu:o().bool,repositionOnScroll:o().bool,repositionOnResize:o().bool,simplified:o().bool},mt.defaultProps={anchor:{x:mt.HorizontalAnchors.INNER_LEFT,y:mt.VerticalAnchors.OVERLAP},belowAnchor:{x:mt.HorizontalAnchors.CENTER,y:mt.VerticalAnchors.BOTTOM},animationPosition:mt.Positions.BELOW,repositionOnScroll:!0,repositionOnResize:!1,component:"div",fixedTo:"undefined"!==typeof window?window:{},toggleQuery:'.md-text-field-container,button,*[role="button"],*[role="listbox"]',transitionName:"md-layover",transitionEnterTimeout:200,transitionLeaveTimeout:200,yThreshold:.38,xThreshold:.38,closeOnOutsideClick:!0,preventContextMenu:!0,simplified:!1,minLeft:0,minRight:0,minBottom:0,fillViewportWidth:!1,fillViewportHeight:!1};var gt=function(){var e=this;this._isCenteredDialog=function(){return e._dialog&&e._dialog.classList.contains("md-dialog--centered")&&"none"!==window.getComputedStyle(e._dialog).transform},this._createStyles=function(t,n,r,i){var o=t.x,a=t.y,s=r.offsetWidth,l=r.offsetHeight,c=void 0,u=void 0;if(o===x.CENTER?c=i.left+i.width/2-s/2:o===x.INNER_RIGHT?c=i.right-s:o===x.LEFT?c=i.left-s:o===x.RIGHT&&(c=i.right),n&&o===x.CENTER&&a===k.CENTER?u=i.top-l/2+i.height/2:a===k.TOP?u=i.top-l:a===k.CENTER?u=i.top+i.height/2:a===k.BOTTOM&&(u=i.bottom),e._isCenteredDialog()){var d=e._dialog.getBoundingClientRect();c-=d.left,u-=d.top}var p={};return u&&(p.top=u),c&&(p.left=c),p},this._manageFixedToListener=function(t,n){var r=(n?"add":"remove")+"EventListener";if(t!==window&&(t.x||t.y)){var i=t.x,o=t.y;i?i[r]("scroll",e._handleScroll):window[r]("scroll",e._handleScroll),o?o[r]("scroll",e._handleScroll):i||window[r]("scroll",e._handleScroll),o&&o!==window&&i&&i!==window&&window[r]("scroll",e._handleScroll)}else t[r]("scroll",e._handleScroll),t!==window&&window[r]("scroll",e._handleScroll)},this._manageWindowResizeListener=function(t){e._windowResizeTimeout&&(clearTimeout(e._windowResizeTimeout),e._windowResizeTimeout=null),t?e._windowResizeTimeout=setTimeout((function(){e._windowResizeTimeout=null,window.addEventListener("resize",e._handleWindowResize)}),2e3):window.removeEventListener("resize",e._handleWindowResize)},this._mergeStyles=function(t){var n=e.props,i=n.minLeft,o=n.minRight,a=n.minBottom,s=n.fillViewportWidth,l=n.fillViewportHeight;return s?(t.left=i,t.right=o):(t.left&&(t.left=Math.max(i,t.left)),t.right&&(t.right=Math.max(o,t.right))),l?(t.bottom=a,t.maxHeight="none"):(t.bottom=null,t.maxHeight=null),ft({},e.state.styles,t,r.Children.only(e.props.children).props.style)},this._init=function(t,n,r,i,o){if(!e._child){var a=o.height,s=o.width,l=o.top,c=o.left,u=o.right,d=void 0,p=void 0;if(e._dialog){var h=Fe(e._dialog);if(d=h.x,p=h.y,e._isCenteredDialog()){var f=e._dialog.getBoundingClientRect();c-=f.left,l-=f.top,u-=f.right}}else if(t!==window&&(t.y||t.x))d=Fe(t.x||window).x,p=Fe(t.y||window).y;else{var m=Fe(t);d=m.x,p=m.y}if(e._initialX=d,e._initialY=p,e._initialLeft=c,e._initialTop=l,n.x===x.INNER_RIGHT?e._initialLeft=c+s:n.x===x.RIGHT&&(e._initialLeft=u),e._lastYFix=i?null:n.y===k.TOP?"bottom":"top",n.x===x.LEFT||n.x===x.INNER_LEFT?e._lastXFix="right":n.x===x.RIGHT||n.x===x.INNER_RIGHT?e._lastXFix="left":e._lastXFix=null,n.y===k.BOTTOM&&(e._initialTop=l+a),t!==window&&!t.y&&!t.x){var g=Fe(window);e._initialWinX=g.x,e._initialWinY=g.y}var y=e._mergeStyles({left:e._initialLeft,top:e._initialTop,transformOrigin:void 0,width:r?s:void 0});e.setState({styles:y})}},this._reset=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props).fixedTo;e._lastXFix=null,e._lastYFix=null,e._initialX=null,e._initialY=null,e._initialTop=null,e._initialLeft=null,e._inFixed||(e._dialog&&e._manageFixedToListener(e._dialog,!1),e._manageFixedToListener(t,!1))},this._setContainer=function(t){if(e._container=(0,a.findDOMNode)(t),e._toggle=null,e._container){var n=e.props,r=n.toggleQuery;n.onContextMenu;e._toggle="function"===typeof r?r():"string"===typeof r?e._container.querySelector(r):r,e._toggle;for(var i=e._container;i&&i!==document;){var o="fixed"===window.getComputedStyle(i).position;if(o&&i.className.match(/md-dialog--(full-page|centered)/))return void(e._dialog=i);if(o&&!i.classList.contains("md-layover-child"))return void(e._inFixed=!0);i=i.offsetParent||i.parentNode}}},this._initialFix=function(){var t=e._child.cloneNode(!0);t.style.webkitTransform="none",t.style.transfrom="none",t.style.webkitTransition="none",t.style.transition="none",e._child.parentNode.appendChild(t);var n=Be(t),r=t.offsetHeight,i=t.offsetWidth;if(e._child.parentNode.removeChild(t),!0!==n&&e._toggle&&e._child){var o=e._getAnchor(e.props),a=o.x,s=o.y,l=void 0,c=void 0;e._contextRect?(l=e._contextRect.height,c=e._contextRect.width):(l=e._toggle.offsetHeight,c=e._toggle.offsetWidth);var u=0,d=0;if(!e.props.fillViewportHeight&&(!n.top||!n.bottom)){var p=n.top?-1:1;n.bottom||s!==k.OVERLAP?s!==k.TOP&&s!==k.BOTTOM||(u+=p*l):u+=l,u+=p*r,e._lastYFix=n.top?"bottom":"top"}e.props.fillViewportWidth||a===x.CENTER||n.left&&n.right||(n.left||a!==x.LEFT?n.left||a!==x.INNER_LEFT?n.right||a!==x.RIGHT?n.right||a!==x.INNER_RIGHT||(d-=c,e._lastXFix="right"):(d-=c+i,e._lastXFix="right"):(d+=c,e._lastXFix="left"):(d+=c+i,e._lastXFix="left")),0===u&&0===d||(e._initialTop+=u,e._initialLeft+=d,e.setState({styles:e._mergeStyles({top:e._initialTop,left:e._initialLeft})}))}},this._fixateChild=function(t){if(e._child=(0,a.findDOMNode)(t),null!==e._child){if(e._childComponent=r.Children.only(e.props.children),"function"===typeof e._childComponent.ref&&e._childComponent.ref(t),e.props.simplified||!e._child||!e._toggle&&!e._contextRect)return;e._manageWindowResizeListener(!0),e._positionChild()}else e._childComponent&&"function"===typeof e._childComponent.ref&&e._childComponent.ref(t)},this._positionChild=function(){var t=e.props.centered,n=e._getAnchor(e.props),r=e._contextRect||e._toggle.getBoundingClientRect();e._height=r.height,e._width=r.width;var i=e._createStyles(n,t,e._child,r);i.top||i.left?(e._initialLeft=i.left||e._initialLeft,e._initialTop=i.top||e._initialTop,e.setState({styles:e._mergeStyles(i)},e._initialFix)):e._initialFix()},this._handleResize=function(){e.props.visible&&e._positionChild()},this._handleScroll=function(t){e.props.repositionOnScroll||(e._manageFixedToListener(e.props.fixedTo,!1),e.props.onClose(t)),e._ticking||requestAnimationFrame((function(){return e._handleTick(t)})),e._ticking=!0},this._handleTick=function(t){var n=e.props,r=n.fixedTo,i=n.xThreshold,o=n.yThreshold,a=Be(e._child);if(!0!==a&&a.left&&a.right)!e._contextRect&&e._attemptFix(a)||(e.props.onClose(t),e._ticking=!1);else{if(function(e,t,n,r,i){if(e===window)return!1;if(e.x||e.y){var o=e.x,a=e.y;return!!a&&$e(a,t,n,r)||!!o&&Ue(o,t,i)}return $e(e,t,n,r)||Ue(e,t,i)}(r,e._child,e._toggle,o,i))return e.props.onClose(t),void(e._ticking=!1);var s=void 0,l=void 0;if(e._dialog){var c=Fe(e._dialog);s=c.x,l=c.y}else if(r!==window&&(r.x||r.y))s=Fe(r.x||window).x,l=Fe(r.y||window).y;else{var u=Fe(r);s=u.x,l=u.y}var d=void 0,p=void 0;if(r!==window&&!r.x&&!r.y){var h=Fe(window);d=h.x,p=h.y}var f=e.state.styles,m=f.left,g=f.top;e._initialX!==s&&(m=e._initialX-s+e._initialLeft),d&&e._initialWinX!==d&&(m=e._initialWinX-d+e._initialX),e._initialY!==l&&(g=e._initialY-l+e._initialTop),p&&e._initialWinY!==p&&(g=e._initialWinY-p+e._initialTop+(e._initialY-l)),f.top!==g||f.left!==m?e.setState({styles:e._mergeStyles({left:m,top:g})},(function(){e._ticking=!1})):e._ticking=!1}},this._handleOutsideClick=function(t){(e._contextRect&&e._child&&!e._child.contains(t.target)||e._container&&!e._container.contains(t.target))&&e.props.onClose(t)},this._handleWindowResize=function(t){var n=e.props,r=n.onClose;n.repositionOnResize?e._handleResize():(r(t),e._manageWindowResizeListener(!1))},this._attemptFix=function(t){var n=e._getAnchor(e.props),r=n.x,i=n.y;if(r===x.CENTER&&i===k.CENTER&&e.props.centered||"top"===e._lastYFix&&!t.top||"bottom"===e._lastYFix&&!t.bottom)return!1;var o=e._toggle.getBoundingClientRect().top,a=e._toggle.offsetHeight,s=e._child.offsetHeight;if(o+a+s>window.innerHeight)return!1;var l=e._child.getBoundingClientRect().top,c=e._initialTop,u=s*(t.top?-1:1);if(i===k.OVERLAP?u+=(t.top?1:-1)*a:i!==k.TOP&&i!==k.BOTTOM||(u+=("top"===e._lastYFix?-1:1)*a),0!==u&&(c=l+u,e._lastYFix=t.top?"bottom":"top"),c!==e._initialTop){e._initialTop=c;var d=e.props.fixedTo,p=d;return d!==window&&(d.y||d.x)&&(p=d.y||window),e._initialY=Fe(p).y,e.setState({styles:e._mergeStyles({top:e._initialTop})},(function(){e._ticking=!1})),!0}return!1},this._handleContextMenu=function(t){var n=e._getAnchor(e.props),r=e.props,i=r.onContextMenu,o=r.preventContextMenu,a=r.fixedTo,s=r.sameWidth,l=r.centered,c=r.visible;i&&(e._contextRect=Ne(t),!o||e._child&&e._child.contains(t.target)||t.preventDefault(),i(t),c&&e._init(a,n,s,l,e._contextRect))}};const yt=mt;var vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function bt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var _t=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=bt(this,e.call.apply(e,[this].concat(o))),r._handleClose=function(e){var t=r.props,n=t.close,i=t.onClose;(n||i)&&(n||i)(e)},r._handleClick=function(e){r.props.onClick&&r.props.onClick(e);for(var t=e.target;r._container&&r._container.contains(t);){if(r._isIgnoreTarget(t))return;if(r._isCloseTarget(t))return e.persist(),void(r._timeout=setTimeout((function(){r._timeout=null,r._handleClose(e)}),X));t=t.parentNode}},r._handleKeyDown=function(e){r.props.onKeyDown&&r.props.onKeyDown(e),L(e,r._handleClick,!0,!0)},bt(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.cascading,n=e.id,r=e.fixedTo,i=e.cascadingAnchor,o=this.context.listLevel||0;return{listLevel:o,cascadingId:n+"-level-"+(o+1),cascadingMenu:"undefined"!==typeof t?t:this.context.cascadingMenu,cascadingAnchor:i,cascadingZDepth:d(this.context,this.props,"cascadingZDepth"),cascadingFixedTo:"undefined"!==typeof r?r:this.context.cascadingFixedTo}},t.prototype.componentDidMount=function(){this._container=(0,a.findDOMNode)(this)},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype._isCloseTarget=function(e){return e.classList.contains("md-list-item")&&!e.classList.contains("md-list-item--nested-container")},t.prototype._isIgnoreTarget=function(e){return null!==e.getAttribute("disabled")||e.classList.contains("md-list-control")},t.prototype.render=function(){var e,n=this.props,i=n.id,o=n.className,a=n.listStyle,s=n.listClassName,l=n.visible,c=n.children,d=n.listProps,p=n.listZDepth,h=n.listInline,f=n.listHeightRestricted,m=n.cascading,g=n.sameWidth,y=n.simplified,v=n.contained,b=n.isOpen,_=n.fixedTo,w=(n.listId,n.cascadingAnchor,n.cascadingZDepth,n.onClose,n.position,n.close,n.autoclose,n.limitHeight,n.expanderIconChildren,n.expanderIconClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["id","className","listStyle","listClassName","visible","children","listProps","listZDepth","listInline","listHeightRestricted","cascading","sameWidth","simplified","contained","isOpen","fixedTo","listId","cascadingAnchor","cascadingZDepth","onClose","position","close","autoclose","limitHeight","expanderIconChildren","expanderIconClassName"])),x=this.props,k=x.listId,C=x.position;k||(k=i+"-list");var S=!m&&!w.onContextMenu&&"context"!==C&&y;"context"===C&&(C=t.Positions.BELOW);var M=C===t.Positions.BELOW,T="undefined"!==typeof _?_:this.context.cascadingFixedTo,E="undefined"!==typeof b?b:l;return r.createElement(yt,vt({},w,{id:i,className:u()("md-menu-container",{"md-menu-container--menu-below":y&&M},o),simplified:S,sameWidth:v||g,fixedTo:T,onClick:this._handleClick,onKeyDown:this._handleKeyDown,onClose:this._handleClose,animationPosition:C,visible:E,"aria-haspopup":!0,"aria-expanded":E,"aria-owns":k}),r.createElement(Re,vt({},d,{id:k,key:"menu-list",style:a,className:u()("md-list--menu",(e={"md-list--menu-restricted":f,"md-list--menu-contained":y&&(g||v)},e["md-list--menu-"+C]=y,e["md-paper md-paper--"+p]=p,e),s),inline:h}),c))},t}(r.PureComponent);_t.HorizontalAnchors=yt.HorizontalAnchors,_t.VerticalAnchors=yt.VerticalAnchors,_t.Positions={TOP_LEFT:yt.Positions.TOP_LEFT,TOP_RIGHT:yt.Positions.TOP_RIGHT,BOTTOM_LEFT:yt.Positions.BOTTOM_LEFT,BOTTOM_RIGHT:yt.Positions.BOTTOM_RIGHT,BELOW:yt.Positions.BELOW,_warned:!1,get CONTEXT(){return this._warned||console.error("The `Menu.Positions.CONTEXT` position has been deprecated and will be removed in the next major release. To make the `Menu` behave as a context menu, provide the `onContextMenu` prop instead."),this._warned=!0,"context"}},_t.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),listId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,listStyle:o().object,listClassName:o().string,component:o().oneOfType([o().string,o().func,o().object]),anchor:C,belowAnchor:C,position:T,toggle:o().node,fixedTo:S,listProps:o().object,listInline:o().bool,listZDepth:o().number.isRequired,listHeightRestricted:o().bool,visible:o().bool.isRequired,children:o().node,onClick:o().func,onKeyDown:o().func,onClose:o().func.isRequired,cascading:o().bool,cascadingAnchor:yt.propTypes.anchor,cascadingZDepth:o().number.isRequired,fullWidth:o().bool,block:o().bool,centered:yt.propTypes.centered,sameWidth:yt.propTypes.sameWidth,onContextMenu:yt.propTypes.onContextMenu,preventContextMenu:yt.propTypes.preventContextMenu,xThreshold:o().number,yThreshold:o().number,closeOnOutsideClick:o().bool,toggleQuery:o().oneOfType([o().func,o().object,o().string]),transitionName:o().string,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,repositionOnScroll:o().bool,repositionOnResize:o().bool,simplified:o().bool,minLeft:o().oneOfType([o().number,o().string]),minRight:o().oneOfType([o().number,o().string]),minBottom:o().oneOfType([o().number,o().string]),fillViewportWidth:o().bool,fillViewportHeight:o().bool,isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),close:(0,E.Z)(o().func,"Use `onClose` instead"),autoclose:(0,E.Z)(o().bool,"The menus will always autoclose as according to the specs"),contained:(0,E.Z)(o().bool,"Use `sameWidth` instead"),limitHeight:(0,E.Z)(o().bool,"The menus will always be limited in height as according to the specs"),expanderIconClassName:(0,E.Z)(o().node,"The expander for cascading menus will now just be a simple rotate of the existing `ListItem` expander icon"),expanderIconChildren:(0,E.Z)(o().node,"The expander for cascading menus will now just be a simple rotate of the existing `ListItem` expander icon")},_t.defaultProps={anchor:{x:yt.HorizontalAnchors.INNER_RIGHT,y:yt.VerticalAnchors.OVERLAP},cascadingAnchor:{x:yt.HorizontalAnchors.RIGHT,y:yt.VerticalAnchors.OVERLAP},position:yt.Positions.TOP_RIGHT,fixedTo:"undefined"!==typeof window?window:{},listZDepth:2,listHeightRestricted:!0,cascadingZDepth:3,repositionOnScroll:!0,repositionOnResize:!1,simplified:!0},_t.contextTypes={listLevel:o().number,cascadingId:o().oneOfType([o().string,o().number]),cascadingMenu:o().bool,cascadingAnchor:C,cascadingZDepth:o().number},_t.childContextTypes={listLevel:o().number,cascadingId:o().oneOfType([o().string,o().number]),cascadingMenu:o().bool,cascadingFixedTo:S,cascadingAnchor:C,cascadingZDepth:o().number};const wt=_t;var xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var kt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));if(Ct.call(r),r.state={active:!1},"undefined"===typeof n.isOpen&&"undefined"===typeof n.visible){var i=function(e){return"undefined"!==typeof e},o=r.props,a=o.initiallyOpen,s=o.defaultOpen,l=o.defaultVisible,c=i(a)?a:l;c=!!(c=i(s)?s:c),r.state.visible=c}return r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillUnmount=function(){this.state.active&&window.removeEventListener("click",this._handleOutsideClick),this._touchTimeout&&clearTimeout(this._touchTimeout)},t.prototype._renderChildrenIfInside=function(){var e=this.props,t=e.children;return e.renderChildrenOutside?null:t},t.prototype._renderChildrenIfOutside=function(){var e=this.props,t=e.children;return e.renderChildrenOutside?r.createElement("div",{className:"md-list-item--flex"},r.createElement(fe,{vertical:!0,className:"md-list-item--divider-vertical"}),r.createElement("div",{className:"md-list-item--children-inline"},t)):null},t.prototype.render=function(){var e,t=this.props,n=t.style,i=t.className,o=t.tileStyle,a=t.tileClassName,s=t.contentStyle,l=t.contentClassName,c=t.leftNodeStyle,p=t.leftNodeClassName,h=t.rightNodeStyle,f=t.rightNodeClassName,m=t.primaryTextStyle,g=t.primaryTextClassName,y=t.secondaryTextStyle,v=t.secondaryTextClassName,b=t.nestedListStyle,_=t.nestedListClassName,w=t.nestedListHeightRestricted,x=t.disabled,k=t.leftIcon,C=t.leftAvatar,S=t.inset,M=t.rightIcon,T=t.rightAvatar,E=t.primaryText,O=t.secondaryText,L=t.threeLines,R=t.nestedItems,j=t.prependNested,D=t.active,A=t.activeClassName,N=t.activeBoxStyle,F=t.activeBoxClassName,z=t.animateNestedItems,B=t.expanderIcon,U=t.expanderLeft,$=t.component,V=t.itemComponent,q=t.itemProps,Z=t.tileProps,H=t.passPropsToItem,G=t["aria-setsize"],W=t["aria-posinset"],Y=t.renderChildrenOutside,K=t.isOpen,X=t.expanderIconChildren,J=t.expanderIconClassName,Q=(t.visible,t.defaultVisible,t.itemRef,t.defaultOpen,t.initiallyOpen,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","className","tileStyle","tileClassName","contentStyle","contentClassName","leftNodeStyle","leftNodeClassName","rightNodeStyle","rightNodeClassName","primaryTextStyle","primaryTextClassName","secondaryTextStyle","secondaryTextClassName","nestedListStyle","nestedListClassName","nestedListHeightRestricted","disabled","leftIcon","leftAvatar","inset","rightIcon","rightAvatar","primaryText","secondaryText","threeLines","nestedItems","prependNested","active","activeClassName","activeBoxStyle","activeBoxClassName","animateNestedItems","expanderIcon","expanderLeft","component","itemComponent","itemProps","tileProps","passPropsToItem","aria-setsize","aria-posinset","renderChildrenOutside","isOpen","expanderIconChildren","expanderIconClassName","visible","defaultVisible","itemRef","defaultOpen","initiallyOpen"])),ee=this.context,te=ee.cascadingId,ne=ee.cascadingMenu,re=ee.cascadingAnchor,ie=ee.cascadingFixedTo,oe=d(this.props,this.state,"visible");"undefined"!==typeof K&&(oe=K);var ae=r.createElement(we,{key:"left-addon",style:c,className:p,active:D,activeClassName:A,icon:k,avatar:C}),le=r.createElement(we,{key:"right-addon",style:h,className:f,active:D,activeClassName:A,icon:M,avatar:T}),ce=void 0;if(R){ne||(ce=r.createElement(de,{collapsed:!oe,animate:z},r.createElement(Re,{style:b,className:_},R)));var ue=r.Children.only(be(J,X,B)),pe=r.createElement(we,{key:"expander-addon",icon:r.cloneElement(ue,{className:I({flipped:oe},ue.props.className)}),avatar:null});U?k||C||(ae=pe):M||T||(le=pe)}var he=!!k||!!M||!!R,fe=!!C||!!T,me=r.createElement(se,xt({},Z,H?void 0:Q,{component:$,__SUPER_SECRET_REF__:this._setTile,key:"tile",onClick:this._handleClick,onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onKeyDown:this._handleKeyDown,onKeyUp:this._handleKeyUp,disabled:x,style:o,className:u()("md-list-tile",{"md-list-tile--active":this.state.active&&!this._touched,"md-list-tile--icon":!O&&he&&!fe,"md-list-tile--avatar":!O&&fe,"md-list-tile--two-lines":O&&!L,"md-list-tile--three-lines":O&&L,"md-list-item--inset":S&&!k&&!C,"md-list-item--button-grow":Y},P({disabled:x,text:!0}),a),"aria-expanded":ce&&!ne?oe:null}),ae,r.createElement(Ce,{active:D,activeClassName:A,disabled:x,primaryText:E,secondaryText:O,threeLines:L,style:s,className:u()({"md-tile-content--left-icon":k||U&&R,"md-tile-content--left-avatar":C,"md-tile-content--right-padding":M||T},l),primaryTextStyle:m,primaryTextClassName:g,secondaryTextStyle:y,secondaryTextClassName:v}),le,this._renderChildrenIfInside()),ge=xt({},q,H?Q:void 0,{style:Object.assign({},n,D?N:null),className:u()("md-list-item",(e={"md-list-item--nested-container":R},e[F]=F&&D,e["md-list-item--flex"]=Y,e),i),"aria-setsize":G,"aria-posinset":W,ref:this._setContainer});return ne&&R?r.createElement(wt,xt({id:te,visible:oe,onClose:this._handleClick,toggle:me,block:!0,simplified:!1,anchor:re,belowAnchor:null,position:wt.Positions.BELOW,component:V,listStyle:b,listClassName:_,listHeightRestricted:w},ge,{fixedTo:ie}),R):r.createElement(V,ge,j?ce:null,me,this._renderChildrenIfOutside(),j?null:ce)},t}(r.PureComponent);kt.propTypes={style:o().object,className:o().string,tileStyle:o().object,tileClassName:o().string,contentStyle:o().object,contentClassName:o().string,leftNodeStyle:o().object,leftNodeClassName:o().string,rightNodeStyle:o().object,rightNodeClassName:o().string,primaryTextStyle:o().object,primaryTextClassName:o().string,secondaryTextStyle:o().object,secondaryTextClassName:o().string,nestedListStyle:o().object,nestedListClassName:o().string,nestedListHeightRestricted:o().bool,children:o().node,disabled:o().bool,tabIndex:o().number,primaryText:o().node.isRequired,secondaryText:o().node,leftIcon:o().node,leftAvatar:o().node,rightIcon:o().node,rightAvatar:o().node,inset:o().bool,threeLines:o().bool,component:o().oneOfType([o().string,o().func,o().object]).isRequired,itemComponent:o().oneOfType([o().string,o().func,o().object]).isRequired,itemRef:o().func,nestedItems:o().arrayOf(o().node),prependNested:o().bool,defaultVisible:o().bool,visible:b(o().bool,"onClick","defaultVisible"),expanderIcon:o().element,expanderLeft:o().bool,onClick:o().func,onMouseOver:o().func,onMouseLeave:o().func,onTouchStart:o().func,onTouchEnd:o().func,onKeyDown:o().func,onKeyUp:o().func,active:o().bool,activeClassName:o().string,activeBoxStyle:o().object,activeBoxClassName:o().string,animateNestedItems:o().bool,renderChildrenOutside:o().bool,"aria-setsize":o().number,"aria-posinset":function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=o().number;return"undefined"!==typeof e["aria-setsize"]&&(a=a.isRequired),a.apply(void 0,[e,t].concat(r))},itemProps:o().object,tileProps:o().object,passPropsToItem:o().bool,expanderIconChildren:(0,E.Z)(o().node,"Use `expanderIcon` instead"),expanderIconClassName:(0,E.Z)(o().string,"Use `expanderIcon` instead"),initiallyOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),defaultOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),isOpen:(0,E.Z)(o().bool,"Use `visible` instead")},kt.defaultProps={animateNestedItems:!0,activeClassName:"md-text--theme-primary",component:"div",itemComponent:"li",expanderIcon:r.createElement(ve,null,"keyboard_arrow_down"),renderChildrenOutside:!1},kt.contextTypes={cascadingId:o().oneOfType([o().number,o().string]),cascadingMenu:o().bool,cascadingAnchor:C,cascadingFixedTo:S};var Ct=function(){var e=this;this.focus=function(){e._tile&&e._tile.focus()},this.blur=function(){e._tile&&e._tile.blur()},this._setTile=function(t){t&&(e._tile=t,e._tileNode=(0,a.findDOMNode)(t))},this._setContainer=function(t){var n=e.props.itemRef;t&&(e._container=(0,a.findDOMNode)(t)),n&&n(t?e._container:null)},this._handleOutsideClick=function(t){e._container&&!e._container.contains(t.target)&&(window.removeEventListener("click",e._handleOutsideClick),e.setState({active:!1}))},this._handleClick=function(t){e.props.onClick&&e.props.onClick(t),"undefined"!==typeof e.state.visible&&e.setState({visible:!e.state.visible})},this._handleMouseOver=function(t){e.props.onMouseOver&&e.props.onMouseOver(t),e.props.disabled||e.setState({active:!0})},this._handleMouseLeave=function(t){e.props.onMouseLeave&&e.props.onMouseLeave(t),e.props.disabled||e.setState({active:!1})},this._handleTouchStart=function(t){e.props.onTouchStart&&e.props.onTouchStart(t),e._touched=!0,e.setState({active:!0,touchedAt:Date.now()})},this._handleTouchEnd=function(t){e.props.onTouchEnd&&e.props.onTouchEnd(t);var n=Date.now()-e.state.touchedAt;e._touchTimeout=setTimeout((function(){e._touchTimeout=null,e.setState({active:!1})}),n>450?0:450-n)},this._handleKeyUp=function(t){e.props.onKeyUp&&e.props.onKeyUp(t),9===(t.which||t.keyCode)&&(window.addEventListener("click",e._handleOutsideClick),e.setState({active:!0}))},this._handleKeyDown=function(t){e.props.onKeyDown&&e.props.onKeyDown(t),9===(t.which||t.keyCode)&&(window.removeEventListener("click",e._handleOutsideClick),e.setState({active:!1}))}};const St=kt;function Mt(e){return 0===e||!!e}function Tt(e,t){return e&&"string"===typeof e&&-1===e.indexOf(t)?e.trim()+" "+t:e}var Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Pt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.label,i=t.htmlFor,o=t.className,a=t.floating,s=t.active,l=t.error,c=t.disabled,d=t.iconOffset,p=t.customSize,h=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label","htmlFor","className","floating","active","error","disabled","iconOffset","customSize"]);return n?r.createElement("label",Et({},h,{htmlFor:i,className:u()("md-floating-label",(e={"md-floating-label--inactive":!a,"md-floating-label--inactive-sized":!a&&!p},e["md-floating-label--"+p]=p,e["md-floating-label--inactive-"+p]=p&&!a,e["md-floating-label--floating"]=a,e["md-floating-label--icon-offset"]=d,e),P({disabled:c,error:l,hint:!s,primary:s},o))}),n):null},t}(r.PureComponent);Pt.propTypes={style:o().object,className:o().string,label:o().node,floating:o().bool,error:o().bool,active:o().bool,disabled:o().bool,iconOffset:o().bool,customSize:o().string,htmlFor:o().string};const It=Pt;var Ot=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.children,i=e.className;return n?r.createElement("div",{"aria-hidden":!t,className:u()("md-text-field-message","md-text-field-message--"+(t?"":"in")+"active",i)},n):null},t}(r.PureComponent);Ot.propTypes={active:o().bool,className:o().string,children:o().node};const Lt=Ot;var Rt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state={message:n.error&&n.errorText||n.helpText||n.errorText,isMessageVisible:r._isMessageVisible(n)},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this._anyChanges(["active","error","helpOnFocus","helpText","errorText"],this.props,e)&&this.setState({isMessageVisible:this._isMessageVisible(e),message:e.error&&e.errorText||e.helpText||e.errorText})},t.prototype._anyChanges=function(e,t,n){var r=!1;return e.some((function(e){return t[e]!==n[e]&&(r=!0),r})),r},t.prototype._isMessageVisible=function(e){var t=e.error,n=e.errorText,r=e.helpText,i=e.helpOnFocus,o=e.active;return!(!t||!n)||!(!r||i&&!o)},t.prototype.render=function(){var e=this.props,t=e.maxLength,n=e.error,i=e.className,o=e.errorText,a=e.helpText,s=e.currentLength,l=e.leftIcon,c=e.rightIcon,d=e.block,p=e.active,h=this.state,f=h.isMessageVisible,m=h.message;return"undefined"!==s&&(a||o||t)?r.createElement("div",{className:u()("md-text-field-message-container",{"md-text-field-message-container--count-only":!m||!f,"md-text-field-message-container--left-icon-offset":l,"md-text-field-message-container--right-icon-offset":c,"md-full-width":!d},P({error:n,disabled:!n}),i)},r.createElement(Lt,{key:"message",active:f},m),r.createElement(Lt,{key:"counter",className:"md-text-field-message--counter",active:p},t?s+" / "+t:null)):null},t}(r.PureComponent);Rt.propTypes={className:o().string,error:o().bool,helpText:o().node,errorText:o().node,active:o().bool,helpOnFocus:o().bool,maxLength:o().number,currentLength:o().number,leftIcon:o().bool,rightIcon:o().bool,block:o().bool};const jt=Rt;var Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function At(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Nt=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=At(this,e.call.apply(e,[this].concat(o))),r.state={keyboardFocus:!1},r._handleOutsideClick=function(e){r._button&&!r._button.contains(e.target)&&(window.removeEventListener("click",r._handleOutsideClick),r.setState({keyboardFocus:!1}))},r._handleBlur=function(){r.state.keyboardFocus&&r.setState({keyboardFocus:!1})},r._handleKeyUp=function(e){9===(e.which||e.keyCode)&&r.setState({keyboardFocus:!0})},At(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state.keyboardFocus,t=this.props,n=t.active,i=t.doubleIcon,o=t.passwordVisible,a=t.block,s=t.floating,l=t.icon,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["active","doubleIcon","passwordVisible","block","floating","icon"]);return r.createElement("button",Dt({},c,{onBlur:this._handleBlur,onKeyUp:this._handleKeyUp,type:"button",className:u()("md-text-field-inline-indicator md-password-btn md-pointer--hover",{"md-password-btn--focus":e,"md-password-btn--invisible":!i&&n&&!o,"md-text-field-inline-indicator--floating":s,"md-text-field-inline-indicator--block":a},P({disabled:!n,hint:n}))}),l)},t}(r.PureComponent);Nt.propTypes={active:o().bool,doubleIcon:o().bool,passwordVisible:o().bool,icon:o().element,block:o().bool,floating:o().bool};const Ft=Nt;var zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Bt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ut=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Bt(this,e.call.apply(e,[this].concat(o))),r.state={height:null},r.getField=function(){return r._field},r.getValue=function(){return r._field.value},r.focus=function(){r._field.focus()},r.blur=function(){r._field.blur()},r._calcRowHeight=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props).rows;if(!r._field)return 19;var t=r._field.style.height;r._field.style.height="auto";var n=r._field.offsetHeight/e;return r._field.style.height=t,n},r._setMask=function(e){r._mask=e},r._setField=function(e){r._field=e},r._handleResize=function(){r._rowHeight=r._calcRowHeight(),r._syncHeightWithMask()},r._syncHeightWithMask=function(e){if(r._mask){void 0!==e&&(r._mask.value=e);var t=r._mask.scrollHeight;if(void 0!==t){var n=r.props,i=n.rows,o=n.maxRows;o&&o>0&&(t=Math.min(t,r._rowHeight*o)),t=Math.max(r._rowHeight*i,t),r.setState({height:t})}}},r._handleChange=function(e){r._syncHeightWithMask(e.target.value,e),r.props.onChange&&r.props.onChange(e)},Bt(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._rowHeight=this._calcRowHeight(),this._syncHeightWithMask()},t.prototype.componentWillReceiveProps=function(e){this.props.rows!==e.rows&&(this._rowHeight=this._calcRowHeight(e)),this.props.value===e.value&&this.props.maxRows===e.maxRows||this._syncHeightWithMask(e.value)},t.prototype.render=function(){var e=this.state.height,t=this.props,n=t.style,i=t.defaultValue,o=t.value,a=t.className,s=t.label,l=t.block,c=(t.maxRows,t.onChange,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","defaultValue","value","className","label","block","maxRows","onChange"]));return r.createElement("div",{style:{height:e&&e+5},className:u()("md-text-field-multiline-container",{"md-text-field--margin":!s&&!l,"md-text-field--floating-margin":s&&!l})},r.createElement(ht,{watchWidth:!0,onResize:this._handleResize}),r.createElement("textarea",{ref:this._setMask,className:u()(a,"md-text-field--multiline-mask"),readOnly:!0,rows:c.rows,tabIndex:-1,style:n,defaultValue:i,"aria-hidden":!0,value:o}),r.createElement("textarea",zt({},c,{ref:this._setField,style:Object.assign({},n,{height:e}),className:a,defaultValue:i,value:o,onChange:this._handleChange})))},t}(r.PureComponent);Ut.propTypes={id:o().string,style:o().object,className:o().string,rows:o().number.isRequired,maxRows:o().number,onChange:o().func,defaultValue:o().string,floatingLabel:o().bool,value:o().string,block:o().bool,label:o().node};const $t=Ut;var Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function qt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Zt=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=qt(this,e.call.apply(e,[this].concat(o))),r.getField=function(){return"undefined"===typeof r.props.rows?r._field:r._field.getField()},r.getValue=function(){return"undefined"===typeof r.props.rows?r._field.value:r._field.getValue()},r.focus=function(){r._field.focus()},r.blur=function(){r._field.blur()},r._setField=function(e){r._field=e},qt(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,i=t.rows,o=t.label,a=t.customSize,s=t.fullWidth,l=t.type,c=t.passwordVisible,d=t.block,p=t.inlineIndicator,h=t.maxRows,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","rows","label","customSize","fullWidth","type","passwordVisible","block","inlineIndicator","maxRows"]),m="undefined"!==typeof i,g=m?$t:"input";return m?(f.label=o,f.block=d,f.maxRows=h):f.type=c?"text":l,(0,r.createElement)(g,Vt({},f,{rows:i,ref:this._setField,className:u()("md-text-field",(e={"md-text-field--inline-indicator":p||!m&&"password"===l,"md-text-field--multiline":m,"md-text-field--margin":!d&&!m&&!o,"md-text-field--floating-margin":!d&&!m&&o},e["md-text-field--"+a]=a,e["md-full-width"]=s,e),P({disabled:f.disabled,text:!f.disabled},n))}))},t}(r.PureComponent);Zt.propTypes={id:o().oneOfType([o().string,o().number]),style:o().object,className:o().string,type:o().string,placeholder:o().string,block:o().bool,disabled:o().bool,rows:o().number,maxRows:o().number,label:o().node,fullWidth:o().bool,customSize:o().string,passwordVisible:o().bool,inlineIndicator:o().bool};const Ht=Zt;var Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Wt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.error,i=e.lineDirection,o=e.className,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["active","error","lineDirection","className"]);return r.createElement(fe,Gt({},a,{className:u()("md-divider--text-field md-divider--expand-from-"+i,{"md-divider--text-field-expanded":t,"md-divider--text-field-active":!n&&t,"md-divider--text-field-error":n},o)}))},t}(r.PureComponent);Wt.propTypes={style:o().object,className:o().string,active:o().bool,error:o().bool,lineDirection:o().oneOf(["left","center","right"])};const Yt=Wt;var Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Jt=["style","value","resize"],Qt=["leftIcon","rightIcon","passwordIcon","inlineIndicator"],en=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));tn.call(r);var i=r._getLength("undefined"!==typeof n.value?n.value:n.defaultValue);r._canvas=null;var o=null;return"undefined"!==typeof n.resize&&(o="number"===typeof n.resize.min?n.resize.min:180),r.state={active:!1,error:!!n.maxLength&&n.maxLength<i,floating:Mt(n.defaultValue)||Mt(n.value),passwordVisible:n.passwordInitiallyVisible,currentLength:i,styles:o?Kt({width:o},n.style):n.style},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.value,n=e.defaultValue,r=e.resize,i=e.style,o="undefined"!==typeof t?t:n;r&&this.setState({styles:Kt({width:this._calcWidth(o,this.props)},i)})},t.prototype.componentWillReceiveProps=function(e){var t=this,n=e.value,r=e.resize,i=e.style,o={};if(n!==this.props.value&&(o.error=this._isErrored(e),o.floating=this._focus||Mt(n),o.currentLength=this._getLength(n)),Jt.some((function(n){return t.props[n]!==e[n]})))if(r){var a=this._calcWidth(n,e);o.styles=Kt({width:a},i)}else o.styles=i;this.setState(o)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,r=n.resize,i=n.value,o=n.style;if(r&&Qt.some((function(n){return t.props[n]!==e[n]}))){var a=this._calcWidth(i,this.props);this.setState({styles:Kt({width:a},o)})}},t.prototype.blur=function(){this._field.blur()},t.prototype._cloneIcon=function(e,t,n,i,o,a,s){if(!e)return e;try{var l=r.Children.only(e);return(0,r.cloneElement)(l,{key:l.key||"icon-"+s,disabled:o?i:void 0,primary:o?!n&&t:void 0,error:o?n:void 0,className:u()("md-text-field-icon",{"md-text-field-icon--positioned":!a},l.props.className)})}catch(mc){return e}},t.prototype.render=function(){var e=this.state,t=e.currentLength,n=e.passwordVisible,i=e.styles,o=this.props,a=o.id,s=o.type,l=o.className,c=o.inputStyle,d=o.inputClassName,p=o.block,h=o.fullWidth,f=o.required,m=o.customSize,g=o.maxLength,y=o.errorText,v=o.helpText,b=o.helpOnFocus,_=o.disabled,w=o.leftIconStateful,x=o.rightIconStateful,k=o.lineDirection,C=o.paddedBlock,S=o.onDoubleClick,M=o.onTouchStart,T=o.onTouchMove,E=o.onTouchCancel,P=o.onTouchEnd,I=o.onMouseDown,O=o.onMouseUp,L=o.onMouseOver,R=o.onMouseLeave,j=o.ink,D=o.inlineIndicator,A=o.toolbar,N=o.passwordIcon,F=o.icon,z=o.passwordIconChildren,B=o.passwordIconClassName,U=(o.style,o.label,o.placeholder,o.error,o.active,o.floating,o.leftIcon,o.rightIcon,o.onClick,o.onChange,o.onBlur,o.onFocus,o.resize,o.adjustMinWidth,o.floatingLabel,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["id","type","className","inputStyle","inputClassName","block","fullWidth","required","customSize","maxLength","errorText","helpText","helpOnFocus","disabled","leftIconStateful","rightIconStateful","lineDirection","paddedBlock","onDoubleClick","onTouchStart","onTouchMove","onTouchCancel","onTouchEnd","onMouseDown","onMouseUp","onMouseOver","onMouseLeave","ink","inlineIndicator","toolbar","passwordIcon","icon","passwordIconChildren","passwordIconClassName","style","label","placeholder","error","active","floating","leftIcon","rightIcon","onClick","onChange","onBlur","onFocus","resize","adjustMinWidth","floatingLabel"])),$=this.props,V=$.label,q=$.placeholder,Z=$.error,H=$.active,G=$.floating,W=$.leftIcon,Y=$.rightIcon;H=H||this.state.active,Z=Z||this.state.error,G=G||this.state.floating,f&&(V&&(V=Tt(V,"*")),q&&!V&&(q=Tt(q,"*"))),V&&!G&&(q=null),W=this._cloneIcon(F||W,H,Z,_,w,p,"left");var K=be(B,z,N);if(null===K||"password"!==s||_)if(D){var X=r.Children.only(D);Y=(0,r.cloneElement)(D,{key:"icon-right",className:u()("md-text-field-inline-indicator",{"md-text-field-inline-indicator--floating":V,"md-text-field-inline-indicator--block":p},X.props.className)})}else Y=this._cloneIcon(Y,H,Z,_,x,p,"right");else{var J=K,Q=!1;K.invisible&&K.visible&&(J=n?K.visible:K.invisible,Q=!0),Y=r.createElement(Ft,{key:"password-btn",onClick:this._togglePasswordField,active:H,doubleIcon:Q,passwordVisible:n,icon:J,block:p,floating:!!V})}var ee=!!Y&&"password"!==s&&!D,te=r.createElement(It,{key:"label",label:V,htmlFor:a,active:H,error:Z,floating:G,customSize:m,disabled:_,iconOffset:!!W}),ne=r.createElement(jt,{key:"message",active:H,error:Z,errorText:y,helpText:v,helpOnFocus:b,block:p,maxLength:g,leftIcon:!!W,rightIcon:!!Y,currentLength:t}),re=r.createElement(Ht,Kt({},U,{required:f,key:"field",ref:this._setField,id:a,type:s,label:V,style:c,className:u()({"md-text-field--toolbar":A},d),disabled:_,customSize:m,fullWidth:h,passwordVisible:n,placeholder:q,block:p,onFocus:this._handleFocus,onBlur:this._handleBlur,onChange:this._handleChange,inlineIndicator:!!D})),ie=void 0;p||(ie=r.createElement(Yt,{key:"text-divider",active:H,error:Z,lineDirection:k}));var oe=void 0;oe=[te,oe=W||ee?r.createElement("div",{key:"icon-divider",className:"md-text-field-icon-container"},W,r.createElement("div",{key:"divider-container",className:u()("md-text-field-divider-container",{"md-text-field-divider-container--grow":h})},re,ie),Y):[W,re,ie,Y],ne];var ae="undefined"!==typeof U.rows;return r.createElement("div",{style:i,className:u()("md-text-field-container",{"md-inline-block":!h&&!p,"md-full-width":p||h,"md-text-field-container--disabled":_,"md-text-field-container--input":!ae,"md-text-field-container--input-block":p&&!ae,"md-text-field-container--multiline":ae,"md-text-field-container--multiline-block":ae&&p,"md-text-field-container--padded-block":p&&C},l),onClick:this._handleContainerClick,onDoubleClick:S,onMouseOver:L,onMouseLeave:R,onMouseDown:I,onMouseUp:O,onTouchStart:M,onTouchEnd:P,onTouchCancel:E,onTouchMove:T,ref:this._setContainer},j,oe)},Xt(t,[{key:"value",get:function(){return this.getField().value}}]),t}(r.PureComponent);en.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),style:o().object,className:o().string,inputStyle:o().object,inputClassName:o().string,value:b(o().oneOfType([o().string,o().number]),"onChange"),defaultValue:o().oneOfType([o().string,o().number]),block:o().bool,paddedBlock:o().bool,disabled:o().bool,label:_(o().node,"block"),placeholder:o().string,type:o().oneOf(["text","number","email","search","tel","url","password"]).isRequired,onClick:o().func,onDoubleClick:o().func,onTouchStart:o().func,onTouchMove:o().func,onTouchCancel:o().func,onTouchEnd:o().func,onMouseDown:o().func,onMouseUp:o().func,onMouseOver:o().func,onMouseLeave:o().func,onChange:o().func,onBlur:o().func,onFocus:o().func,active:o().bool,error:o().bool,floating:o().bool,required:o().bool,lineDirection:o().oneOf(["left","center","right"]).isRequired,leftIcon:o().element,leftIconStateful:o().bool,rightIcon:o().element,rightIconStateful:o().bool,passwordIcon:o().oneOfType([o().element,o().shape({invisible:o().element,visible:o().element})]),passwordInitiallyVisible:o().bool,fullWidth:o().bool,rows:function(e,t){return function(n,r,i,a,s){var l=i||"<<anonymous>>",c=s||r,u=o().number;t&&(u=u.isRequired);for(var d=arguments.length,p=Array(d>5?d-5:0),h=5;h<d;h++)p[h-5]=arguments[h];var f=u.apply(void 0,[n,r,i,a,s].concat(p));return!t&&!f&&n[r]<e&&(f=new Error("The "+a+" `"+c+"` must be greater than or equal to the min value `"+e+"` but received `"+n[r]+"` for the `"+l+"` component.")),f}}(1,!1),maxRows:o().number,customSize:o().string,errorText:o().node,helpText:o().node,helpOnFocus:o().bool,maxLength:o().number,ink:o().node,inlineIndicator:o().element,resize:o().shape({min:o().number,max:o().number.isRequired,disableShrink:o().bool}),toolbar:o().bool,passwordIconChildren:(0,E.Z)(o().node,"Use the `passwordIcon` prop instead"),passwordIconClassName:(0,E.Z)(o().string,"Use the `passwordIcon` prop instead"),icon:(0,E.Z)(o().node,"Use the `leftIcon` or `rightIcon` prop instead"),floatingLabel:(0,E.Z)(o().bool,"The `label` prop is now always floating. To create a non-floating text field, only use the `placeholder` prop"),adjustMinWidth:(0,E.Z)(o().bool,"Manually add a min width style instead")},en.defaultProps={type:"text",lineDirection:"left",passwordIcon:r.createElement(ve,null,"remove_red_eye"),leftIconStateful:!0,rightIconStateful:!0,fullWidth:!0};var tn=function(){var e=this;this.getField=function(){return e._field.getField()},this.focus=function(){e._field.focus()},this._getLength=function(e){return Mt(e)?String(e).length:0},this._setContainer=function(t){e._container=t},this._setField=function(t){null!==t&&(e._field=t)},this._calcIconWidth=function(e){var t=window.getComputedStyle(e);return e.getBoundingClientRect().width+parseInt(t.marginLeft,10)},this._calcWidth=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.props,r=t;"password"===n.type&&(r=Array.from(Array(t.length)).reduce((function(e){return e+"\u2022"}),""));var i=e._field&&e._field.getField();!Mt(r)&&i&&(r=i.value);var o=d(n.resize,{min:180},"min"),a=y(r,i);if(null===a||!i)return a||o;var s=n.resize.max;if(e._container){var l=e._container.querySelector(".md-text-field-inline-indicator");l&&(a+=l.getBoundingClientRect().width);var c=e._container.querySelector(".md-text-field-icon-container");if(c){var u=c.children,p=u[0],h=u[1],f=u[2];p.classList.contains("md-icon")?(a+=p.getBoundingClientRect().width,a+=parseInt(window.getComputedStyle(h).marginLeft,10),f&&(a+=e._calcIconWidth(f))):h&&(a+=e._calcIconWidth(h))}}return Math.ceil(Math.min(s,Math.max(o,a)))},this._isErrored=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props,n=t.value,r=t.maxLength,i=t.required,o=e.state.error,a=e._getLength(n);return i&&o&&(o=!Mt(n)),r&&(o=o||a>r),o},this._handleContainerClick=function(t){e.props.onClick&&e.props.onClick(t),e.props.disabled||e.focus()},this._handleBlur=function(t){e._focus=!1;var n=e.props,r=n.required,i=n.maxLength,o=n.onBlur;o&&o(t);var a=t.target.value,s={active:!1,error:r&&!Mt(a)||i&&String(a).length>i};e.props.block||(s.floating=Mt(a)),e.setState(s)},this._handleFocus=function(t){e._focus=!0;var n=e.props,r=n.onFocus,i=n.block;r&&r(t);var o={active:!0};i||(o.floating=!0),e.setState(o)},this._handleChange=function(t){var n=e.props,r=n.onChange,i=n.maxLength,o=n.required,a=n.resize,s=t.target.value;r&&r(t.target.value,t);var l=s.length,c=void 0;if("undefined"!==typeof i?c={currentLength:l,error:l>i}:o&&e.state.error&&(c={error:!l}),"undefined"===typeof e.props.value&&a){var u=e._calcWidth(s);(!a.disableShrink||!e.state.styles||u>e.state.styles.width)&&((c=c||{}).styles=Kt({},e.state.styles,{width:u}))}c&&e.setState(c)},this._togglePasswordField=function(){e.setState({passwordVisible:!e.state.passwordVisible},e.focus)}};const nn=en;var rn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},an=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var sn=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));ln.call(r);var i=n.defaultValue,o=n.data,a=n.dataLabel,s=n.filter,l=n.showUnfilteredData,c=[];return i&&s?c=s(o,i,a):s&&!l||(c=o),r.state={value:i,matches:c,visible:!1,matchIndex:-1,manualFocus:!1,suggestion:"",suggestionIndex:-1},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.value,n=e.data,r=e.filter,i=e.dataLabel,o=n!==this.props.data;if(t!==this.props.value||o){var a=this.state,s=a.visible,l=a.matches,c=d(e,this.state,"value");r?l=r(n,c,i):o&&(l=n),this.state.focus&&(s=!!l.length),this.setState({matches:l,visible:s})}},t.prototype.componentWillUpdate=function(e,t){if(this.state.visible!==t.visible){var n=e["onMenu"+(t.visible?"Open":"Close")];n&&n()}},t.prototype.render=function(){var e=this.state,t=e.visible,n=e.matches,i=e.tabbed,o=e.focus,a=e.suggestionStyle,s=this.props,c=s.fullWidth,p=s.block,h=s.style,f=s.className,m=s.listStyle,g=s.listClassName,y=s.textFieldStyle,v=s.textFieldClassName,b=s.inlineSuggestionStyle,_=s.inlineSuggestionClassName,w=s.menuId,x=s.inline,k=s.anchor,C=s.belowAnchor,S=s.position,M=s.fixedTo,T=s.listId,E=s.listInline,P=s.listZDepth,I=s.listHeightRestricted,O=s.xThreshold,L=s.yThreshold,R=s.closeOnOutsideClick,j=s.transitionName,D=s.transitionEnterTimeout,A=s.transitionLeaveTimeout,N=s.centered,F=s.sameWidth,z=s.repositionOnScroll,B=s.repositionOnResize,U=s.simplifiedMenu,$=s.minLeft,V=s.minRight,q=s.minBottom,Z=s.fillViewportWidth,H=s.fillViewportHeight,G=(s.value,s.total,s.offset,s.filter,s.data,s.dataLabel,s.dataValue,s.deleteKeys,s.defaultValue,s.clearOnAutocomplete,s.autocompleteWithLabel,s.findInlineSuggestion,s.inlineSuggestionPadding,s.onAutocomplete,s.onMenuOpen,s.onMenuClose,s.onBlur,s.onFocus,s.onKeyDown,s.onMouseDown,s.onChange,s.showUnfilteredData,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(s,["fullWidth","block","style","className","listStyle","listClassName","textFieldStyle","textFieldClassName","inlineSuggestionStyle","inlineSuggestionClassName","menuId","inline","anchor","belowAnchor","position","fixedTo","listId","listInline","listZDepth","listHeightRestricted","xThreshold","yThreshold","closeOnOutsideClick","transitionName","transitionEnterTimeout","transitionLeaveTimeout","centered","sameWidth","repositionOnScroll","repositionOnResize","simplifiedMenu","minLeft","minRight","minBottom","fillViewportWidth","fillViewportHeight","value","total","offset","filter","data","dataLabel","dataValue","deleteKeys","defaultValue","clearOnAutocomplete","autocompleteWithLabel","findInlineSuggestion","inlineSuggestionPadding","onAutocomplete","onMenuOpen","onMenuClose","onBlur","onFocus","onKeyDown","onMouseDown","onChange","showUnfilteredData"]));delete G.focusInputOnAutocomplete;var W=d(this.props,this.state,"value"),Y=r.createElement(nn,on({},G,{"aria-autocomplete":x?"inline":"list",style:y,className:u()("md-autocomplete",v),key:"autocomplete",ref:this._setField,value:W,onKeyDown:this._handleTextFieldKeyDown,onMouseDown:this._toggleMenu,onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,fullWidth:c,block:p}));if(x){var K=void 0;return o&&this.state.suggestion&&(K=r.createElement("span",{key:"suggestion",style:on({},a,b),className:u()("md-autocomplete-suggestion",{"md-autocomplete-suggestion--floating":G.label,"md-autocomplete-suggestion--block":p},_)},this.state.suggestion)),r.createElement(l(),{component:"div",style:h,className:u()("md-menu-container md-autocomplete-container",f,{"md-full-width":c||p}),transitionName:"opacity",transitionEnterTimeout:150,transitionLeave:!i,transitionLeaveTimeout:150,onTouchStart:this._handleTouchStart},Y,K)}return r.createElement(wt,{id:w||G.id+"-menu",listId:T,ref:this._setMenu,toggle:Y,visible:t,onClick:this._handleClick,onClose:this._close,onKeyDown:this._handleMenuKeyDown,simplified:U,sameWidth:F,centered:N,anchor:k,belowAnchor:C,position:S,fixedTo:M,listInline:E,listZDepth:P,listHeightRestricted:I,xThreshold:O,yThreshold:L,closeOnOutsideClick:R,transitionName:j,transitionEnterTimeout:D,transitionLeaveTimeout:A,fullWidth:c||p,style:h,className:u()("md-autocomplete-container",f),listStyle:m,listClassName:u()("md-autocomplete-list",g),repositionOnScroll:z,repositionOnResize:B,minLeft:$,minRight:V,minBottom:q,fillViewportWidth:Z,fillViewportHeight:H},n.map(this._mapToListItem))},an(t,[{key:"value",get:function(){return d(this.props,this.state,"value")}}]),t}(r.PureComponent);sn.HorizontalAnchors=wt.HorizontalAnchors,sn.VerticalAnchors=wt.VerticalAnchors,sn.Positions=wt.Positions,sn.fuzzyFilter=function(e,t,n){var i=new RegExp((""+t).split("").join("\\w*").replace(/(\(|\||\)|\\(?!w\*)|\[|\|-|\.|\^|\+|\$|\?|^(?!w)\*)/g,"\\$1").replace(/\*\*/g,"*\\*"),"i");return e.filter((function(e){if(null===e||"undefined"===typeof e)return!1;if(r.isValidElement(e))return!0;var t=void 0;switch("undefined"===typeof e?"undefined":f(e)){case"string":case"number":t=e.toString();break;default:t=e[n]}return t&&t.match(i)}))},sn.caseInsensitiveFilter=function(e,t,n){var i=t.toLowerCase();return e.filter((function(e){if(null===e||"undefined"===typeof e)return!1;if(r.isValidElement(e))return!0;var t=void 0;switch("undefined"===typeof e?"undefined":m(e)){case"string":case"number":t=e.toString();break;default:t=e[n]}return t&&-1!==t.toLowerCase().indexOf(i)}))},sn.findIgnoreCase=function(e,t,n){var i=t?t.toLowerCase():"";if(!i)return i;var o="";return e.some((function(e){if(null===e||"undefined"===typeof e||r.isValidElement(e))return!1;var t="object"===("undefined"===typeof e?"undefined":h(e))?e[n]:e.toString();return 0===t.toLowerCase().indexOf(i)&&(o=t),o})),o},sn.propTypes={id:o().oneOfType([o().number,o().string]),menuId:v(o().oneOfType([o().number,o().string]),"id"),listId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,textFieldStyle:o().object,textFieldClassName:o().string,inputStyle:o().object,inputClassName:o().string,listStyle:o().object,listClassName:o().string,inlineSuggestionStyle:o().object,inlineSuggestionClassName:o().string,disabled:o().bool,label:o().node,value:b(o().oneOfType([o().string,o().number]),"onChange"),defaultValue:o().oneOfType([o().string,o().number]),dataLabel:o().string.isRequired,dataValue:o().string,deleteKeys:o().oneOfType([o().string,o().arrayOf(o().string)]),data:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l,c=e.dataLabel;return(s=o().arrayOf(o().oneOfType([o().element,o().string,o().number,o().shape((l={},l[c]=o().oneOfType([o().string,o().number,o().node]).isRequired,l))]))).isRequired.apply(s,[e,t,n].concat(i))},total:_(o().number,"inline"),offset:o().number.isRequired,filter:o().func,onKeyDown:o().func,onMouseDown:o().func,onChange:o().func,onFocus:o().func,onBlur:o().func,block:o().bool,fullWidth:o().bool,inline:o().bool,inlineSuggestionPadding:o().number.isRequired,findInlineSuggestion:o().func,onAutocomplete:o().func,autocompleteWithLabel:o().bool,clearOnAutocomplete:o().bool,onMenuOpen:o().func,onMenuClose:o().func,autoComplete:o().string,focusInputOnAutocomplete:o().bool,anchor:C,belowAnchor:C,position:T,fixedTo:S,listInline:o().bool,listZDepth:o().number,listHeightRestricted:o().bool,xThreshold:o().number,yThreshold:o().number,closeOnOutsideClick:o().bool,transitionName:o().string,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,centered:wt.propTypes.centered,sameWidth:wt.propTypes.sameWidth,repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,minLeft:o().number,minRight:o().number,minBottom:o().number,fillViewportWidth:o().bool,fillViewportHeight:o().bool,toolbar:o().bool,showUnfilteredData:o().bool},sn.defaultProps={autocompleteWithLabel:!1,position:wt.Positions.BELOW,sameWidth:!0,offset:0,fullWidth:!0,defaultValue:"",dataLabel:"primaryText",filter:sn.fuzzyFilter,findInlineSuggestion:sn.findIgnoreCase,autoComplete:"off",repositionOnScroll:!0,repositionOnResize:!0,showUnfilteredData:!1,inlineSuggestionPadding:6};var ln=function(){var e=this;this._close=function(t){e.props.onBlur&&e.props.onBlur(t),e.setState({visible:!1})},this._handleChange=function(t,n){var r=e.props,i=r.onChange,o=r.filter,a=r.findInlineSuggestion,s=r.data,l=r.dataLabel,c=r.inline,u=r.showUnfilteredData;if(i&&i(t,n),c)return a?e._findInlineSuggestions(t):null;var d=e.state.visible,p=t||u||!o?s:[];return t&&o&&(p=o(s,t,l)),o&&(d=!!p.length),e.setState({matches:p,visible:d,value:t})},this._handleFocus=function(t){e.props.onFocus&&e.props.onFocus(t);var n=t.target.value;if(e.props.inline&&n)e.props.findInlineSuggestion&&e._findInlineSuggestions(n);else{var r=!!n||e.props.showUnfilteredData;e.setState({matchIndex:-1,visible:!e.state.manualFocus&&r&&!!e.state.matches.length,manualFocus:!1,focus:!0})}},this._handleBlur=function(t){!e.props.inline&&e.state.matches.length||e.props.onBlur&&e.props.onBlur(t),e.setState({focus:!1})},this._handleInlineAutocomplete=function(){var t=e.state,n=t.suggestionIndex,r=t.matches;if(-1!==n){var i=e.props,o=i.data,a=i.dataLabel,s=i.dataValue,l=i.autocompleteWithLabel,c=i.onAutocomplete,u=o[n];if(c){var d=u;"object"===("undefined"===typeof u?"undefined":rn(u))&&(d=l?u[a]:u[s]),c(d,n,r)}"object"===("undefined"===typeof u?"undefined":rn(u))&&(u=u[a]),e.setState({value:u,suggestion:"",suggestionIndex:-1,tabbed:!0})}},this._handleTextFieldKeyDown=function(t){var n=e.props,r=n.inline,i=n.onKeyDown,o=e.state.suggestionIndex,a=t.which||t.keyCode;i&&i(t),r&&9===a&&-1!==o&&(t.preventDefault(),e._handleInlineAutocomplete())},this._handleMenuKeyDown=function(t){var n=t.which||t.keyCode;9===n?(e.props.onBlur&&e.props.onBlur(t),e.setState({visible:!1})):38!==n&&40!==n||e._focusSuggestion(38===n,t)},this._handleClick=function(t){for(var n=t.target;e._menu&&e._menu.contains(n);){if(n.classList.contains("md-list-item")){var r=n.parentNode.querySelectorAll(".md-list-item");return r=Array.prototype.slice.call(r),e._handleItemClick(r.indexOf(n))}n=n.parentNode}return null},this._handleItemClick=function(t){if(-1!==t){var n=e.state.matches,i=e.props,o=i.data,a=i.dataLabel,s=i.dataValue,l=i.filter,c=i.onAutocomplete,u=i.clearOnAutocomplete,d=i.focusInputOnAutocomplete,p=i.autocompleteWithLabel,h=n.filter((function(e){return!r.isValidElement(e)}))[t];if(c){var f=h;"object"===("undefined"===typeof f?"undefined":rn(f))&&(f=p?h[a]:h[s]),c(f,t,n)}"object"===("undefined"===typeof h?"undefined":rn(h))&&(h=h[a]),h=u?"":h;var m=void 0;d&&(m=function(){e._field.focus()}),e.setState({visible:!1,manualFocus:d,matches:l?l(o,h,a):n,value:h},m)}},this._focusSuggestion=function(t,n){n.preventDefault();var r=e.state,i=r.matchIndex,o=r.matches.length,a=void 0;if(!(t&&-1===i||!t&&i>=o)){if(t?-1===(a=i-1)&&e._field.focus():a=Math.min(o,i+1),-1!==a&&a!==i){var s=e._menu.querySelectorAll(".md-list-tile")[a];s&&s.focus()}e.setState({matchIndex:a})}},this._findInlineSuggestions=function(t){var n=e.props,r=n.data,i=n.dataLabel,o=n.findInlineSuggestion,a=n.inlineSuggestionPadding,s=o(r,t,i);if("object"===("undefined"===typeof s?"undefined":rn(s)))throw new Error("`findInlineSuggestion` should return a string or a number, but got an object.",s);var l=e.state.suggestionStyle,c=-1;if(s){r.some((function(e,t){return("object"===("undefined"===typeof dataum?"undefined":rn(dataum))?e[i]:e)===s&&(c=t),-1!==c})),s=s.toString().substring(t.length,s.length);var u=y(t,e._field);null!==u&&(u+=a),null===u||l&&l.left===u||(l={left:u})}e.setState({value:t,suggestion:s,suggestionIndex:c,suggestionStyle:l,tabbed:!1,focus:!0})},this._mapToListItem=function(t,n){if(r.isValidElement(t))return t;var i=e.props,o=i.dataLabel,a=i.dataValue,s=i.deleteKeys,l=i.total,c=i.offset,u=i.data,d=void 0;switch("undefined"===typeof t?"undefined":rn(t)){case"string":case"number":d={key:t,primaryText:t};break;default:d=s?p(t,"string"===typeof s?[s]:s):t,d=on({},d,{key:t.key||a&&t[a]||t[o],primaryText:t[o]})}return"undefined"!==typeof l&&u.length<l&&(d["aria-setsize"]=l,d["aria-posinset"]=n+1+c),r.createElement(St,on({tabIndex:-1},d))},this._toggleMenu=function(t){e.props.onMouseDown&&e.props.onMouseDown(t),!e.props.inline&&e.state.matches.length&&d(e.props,e.state,"value")&&e.setState({visible:!e.state.visible})},this._handleTouchStart=function(t){var n=t.target,r=e.state.suggestion;n.classList.contains("md-autocomplete-suggestion")&&r&&e._handleInlineAutocomplete()},this._setField=function(t){t&&(e._field=t.getField())},this._setMenu=function(t){e._menu=(0,a.findDOMNode)(t)}};const cn=sn;var un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function dn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var pn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=dn(this,e.call.apply(e,[this].concat(o))),r.state={color:null},r._setRandomColor=function(){var e=r.props.suffixes,t=Math.floor(Math.random()*(e.length-1))+1;r.setState({color:e[t]})},dn(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.props.random&&this._setRandomColor()},t.prototype.componentWillReceiveProps=function(e){!e.random||this.props.src===e.src&&this.props.icon===e.icon?this.props.random&&!e.random&&this.setState({color:null}):this._setRandomColor()},t.prototype._getColor=function(e,t,n){return e?"md-avatar--"+e:t&&!n?"md-avatar--default":"md-avatar--"+n},t.prototype.render=function(){var e=this.props,t=e.className,n=e.contentStyle,i=e.contentClassName,o=e.src,a=e.alt,s=e.icon,l=e.children,c=e.suffix,d=e.suffixes,p=e.iconSized,h=e.role,f=(e.random,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","contentStyle","contentClassName","src","alt","icon","children","suffix","suffixes","iconSized","role","random"])),m=void 0;return m=o?r.createElement("img",{src:o,alt:a,role:h,style:n,className:u()("md-avatar-img",i)}):r.createElement("div",{style:n,className:u()("md-avatar-content",i)},s||l),r.createElement("div",un({},f,{className:u()("md-inline-block md-avatar",this._getColor(c,d,this.state.color),{"md-avatar--icon-sized":p},t)}),m)},t}(r.PureComponent);pn.propTypes={className:o().string,contentStyle:o().object,contentClassName:o().string,src:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t,r,i,o,a){for(var s=i||"<<anonymous>>",l=a||r,c="undefined"!==typeof t[r],u=[l].concat(n),d=arguments.length,p=Array(d>5?d-5:0),h=5;h<d;h++)p[h-5]=arguments[h];var f=e.apply(void 0,[t,r,i,o,a].concat(p));return f||!c||u.filter((function(e){return"undefined"!==typeof t[e]})).length||(f=new Error("One of the following props are required to make `"+s+"` accessible for users of assistive technologies such as screen readers when using the `"+l+"` prop. `"+u.join("`, `")+"`.")),f}}(o().string,"role","alt"),alt:o().string,icon:o().node,children:o().node,random:o().bool,suffixes:o().arrayOf(o().string),suffix:o().string,iconSized:o().bool,role:o().oneOf(["presentation"])},pn.defaultProps={suffixes:["red","pink","purple","deep-purple","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","deep-orange","brown","grey","blue-grey"]};const hn=pn;var fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var mn=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n)),o=i._isSingleChild(n);return i.state={single:o,element:o&&(0,r.isValidElement)(n.children),count:i._normalizeCount(n)},i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.badgeContent,i=t.max,o=t.children,a=void 0;n===e.badgeContent&&i===e.max||(a={count:this._normalizeCount(e)}),o!==e.children&&((a=a||{}).single=this._isSingleChild(e),a.element=a.single&&(0,r.isValidElement)(e.children)),a&&this.setState(a)},t.prototype._isSingleChild=function(e){var t=e.children;return 1===r.Children.count(t)},t.prototype._normalizeCount=function(e){var t=e.badgeContent,n=e.max,r=void 0;if(n){var i=parseInt(t,10);Number.isNaN(i)||i.toString()!==t.toString()||(r=i>n?n+"+":i)}return r},t.prototype.render=function(){var e=this.state,t=e.count,n=e.single,i=e.element,o=this.props,a=o.className,s=o.badgeStyle,l=o.badgeClassName,c=o.badgeContent,d=o.component,p=o.children,h=o.primary,f=o.secondary,m=o.default,g=o.circular,y=o.badgeId,v=o.invisibleOnZero,b=(o.max,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["className","badgeStyle","badgeClassName","badgeContent","component","children","primary","secondary","default","circular","badgeId","invisibleOnZero","max"])),_="undefined"!==typeof g?g:"undefined"!==typeof t,w=p;if(n&&i){var x=r.Children.only(w);x.props["aria-describedby"]||(w=(0,r.cloneElement)(x,{"aria-describedby":y}))}else!n||i||b["aria-describedby"]||(b["aria-describedby"]=y);var k=r.createElement("span",{id:y,key:"badge",role:"status",style:s,className:u()("md-badge",{"md-badge--circular":_,"md-badge--default":m},P({primary:h,secondary:f,text:_,themeText:!h&&!f},l))},t||c);return r.createElement(d,fn({},b,{className:u()("md-badge-container md-inline-block",a)}),w,v&&0===t?null:k)},t}(r.PureComponent);mn.propTypes={style:o().object,className:o().string,badgeStyle:o().object,badgeClassName:o().string,badgeId:(0,je.default)(o().oneOfType([o().number,o().string])),children:o().node.isRequired,component:o().oneOfType([o().string,o().func,o().object]).isRequired,badgeContent:o().oneOfType([o().number,o().string,o().node]).isRequired,max:o().number,primary:o().bool,secondary:o().bool,default:o().bool,circular:o().bool,invisibleOnZero:o().bool},mn.defaultProps={max:99,component:"div"};function gn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var yn="function"===typeof a.createPortal,vn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=gn(this,e.call.apply(e,[this].concat(o))),r._container=null,r._portal=null,r._applyStyles=function(e){e.className&&(r._container.className=e.className)},r._renderPortal=function(e){if(r._container)r._applyStyles(e);else{r._container=document.createElement(e.component),r._applyStyles(e);var t=e.renderNode||document.body;e.lastChild?t.appendChild(r._container):t.insertBefore(r._container,t.firstChild)}yn||(r._portal=(0,a.unstable_renderSubtreeIntoContainer)(r,e.children,r._container))},r._removePortal=function(){r.props.onClose&&r.props.onClose(),r._container&&(yn||(0,a.unmountComponentAtNode)(r._container),(r.props.renderNode||document.body).removeChild(r._container)),r._portal=null,r._container=null},gn(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.visible&&(this._renderPortal(this.props),yn&&this.forceUpdate())},t.prototype.componentWillReceiveProps=function(e){var t=e.visible,n=e.onOpen;this.props.visible!==t?t?(n&&n(),this._renderPortal(e)):this._removePortal():t&&!yn&&this._renderPortal(e)},t.prototype.componentWillUnmount=function(){this.props.visible&&this.props.onClose&&this.props.onClose(),this._removePortal()},t.prototype.render=function(){var e=this.props,t=e.component,n=e.className,i=e.children,o=e.visible;return"undefined"===typeof window&&o?r.createElement(t,{className:n},i):yn&&o&&this._container&&"undefined"!==typeof window?(0,a.createPortal)(i,this._container):null},t}(r.PureComponent);vn.propTypes={className:o().string,visible:o().bool.isRequired,children:o().element,component:o().string.isRequired,onOpen:o().func,onClose:o().func,renderNode:o().object,lastChild:o().bool},vn.defaultProps={component:"span"};const bn=vn;function _n(e,t,n){return e>=t&&e<=n}function wn(e,t,n){return function(r,i,o,a,s){for(var l=o||"<<anonymous>>",c=s||i,u=arguments.length,d=Array(u>5?u-5:0),p=5;p<u;p++)d[p-5]=arguments[p];var h=e.apply(void 0,[r,i,o,a,s].concat(d)),f=r[i];return h||"undefined"===typeof f||_n(f,t,n)||(h=new Error("You provided a `"+c+"` "+a+" to the "+l+" that was not within the range from '"+t+" - "+n+"'. `"+c+"`: "+f+".")),h}}var xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var kn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=e.componentRef,i=e.zDepth,o=e.className,a=e.raiseOnHover,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","componentRef","zDepth","className","raiseOnHover"]);return r.createElement(t,xn({},s,{ref:n,className:u()("md-paper md-paper--"+i,{"md-paper--0-hover":0===i&&a},o)}))},t}(r.PureComponent);kn.propTypes={component:o().oneOfType([o().func,o().string,o().object]).isRequired,componentRef:o().oneOfType([o().func,o().object]),className:o().string,zDepth:wn(o().number.isRequired,0,5),children:o().node,raiseOnHover:o().bool},kn.defaultProps={zDepth:1,component:"div"};const Cn=kn,Sn=ve;var Mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Tn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var En=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Tn(this,e.call.apply(e,[this].concat(o))),r._handleClick=function(e){var t=r.props,n=t.onClick,i=t.onNavChange,o=t.index;n&&n(o,e),i&&i(o,e)},Tn(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.fixed,i=e.className,o=e.colored,a=e.animate,s=e.iconClassName,l=e.iconChildren,c=(e.index,e.icon,e.label,e.onClick,e.onNavChange,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["active","fixed","className","colored","animate","iconClassName","iconChildren","index","icon","label","onClick","onNavChange"])),d=this.props,p=d.label,h=d.icon,f=u()("md-bottom-nav-label",{"md-bottom-nav-label--shifting-inactive":!t&&!n});if(1===r.Children.count(p)&&(0,r.isValidElement)(p)){var m=r.Children.only(p);p=(0,r.cloneElement)(p,{className:u()(f,m.props.className)})}else p=r.createElement("div",{className:f},p);return h||!s&&!l?h&&(h=r.cloneElement(h,{inherit:!0})):h=r.createElement(Sn,{iconClassName:s,inherit:!0},l),r.createElement(se,Mn({},c,{onClick:this._handleClick,className:u()("md-bottom-nav",{"md-bottom-nav--active":t,"md-bottom-nav--fixed":n,"md-bottom-nav--shifting":!n,"md-bottom-nav--shifting-active":!n&&t,"md-bottom-nav--shifting-inactive":!n&&!t},P({primary:!o&&t,text:!t&&!o},i))}),h,r.createElement(de,{collapsed:!n&&!t,animate:a},p))},t}(r.PureComponent);En.propTypes={style:o().object,className:o().string,component:o().oneOfType([o().func,o().string,o().object]),active:o().bool,fixed:o().bool,children:o().node,index:o().number.isRequired,label:o().node.isRequired,colored:o().bool,iconChildren:o().node,iconClassName:o().string,onClick:o().func,onNavChange:o().func,role:o().string,animate:o().bool,icon:o().element},En.defaultProps={component:"a",role:null};const Pn=En;var In=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var On=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));Ln.call(r);var i="boolean"===typeof n.initiallyVisible?n.initiallyVisible:n.defaultVisible;return r.state={visible:i,portalVisible:i},"undefined"===typeof n.activeIndex&&(r.state.activeIndex=n.defaultActiveIndex),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.dynamic&&this._addTouchEvents()},t.prototype.componentWillReceiveProps=function(e){var t=e.dynamic;this.props.dynamic!==t&&(t?this._addTouchEvents():this._removeTouchEvents())},t.prototype.componentWillUpdate=function(e,t){this.state.visible!==t.visible&&e.onVisibilityChange&&e.onVisibilityChange(t.visible)},t.prototype.componentWillUnmount=function(){this.props.dynamic&&this._removeTouchEvents(),this._timeout&&clearTimeout(this._timeout)},t.prototype.render=function(){var e=this,t=this.state,n=t.visible,i=t.portalVisible,o=this.props,a=o.className,s=o.actions,l=o.colored,c=o.dynamic,p=o.lastChild,h=o.animate,f=o.portal,m=(o.links,o.activeIndex,o.renderNode,o.onNavChange,o.onVisibilityChange,o.defaultVisible,o.defaultActiveIndex,o.dynamicThreshold,o.transitionDuration,o.onChange,o.initiallyVisible,o.containerStyle,o.containerClassName,o.transitionName,o.transitionEnterTimeout,o.transitionLeaveTimeout,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["className","actions","colored","dynamic","lastChild","animate","portal","links","activeIndex","renderNode","onNavChange","onVisibilityChange","defaultVisible","defaultActiveIndex","dynamicThreshold","transitionDuration","onChange","initiallyVisible","containerStyle","containerClassName","transitionName","transitionEnterTimeout","transitionLeaveTimeout"])),g=this.props.links;s&&(g=s);var y=3===g.length,v=d(this.props,this.state,"activeIndex"),b=d(this.props,this.context,"renderNode"),_=r.createElement(Cn,In({},m,{key:"navigation",className:u()("md-bottom-navigation",{"md-background--card":!l,"md-background--primary":l,"md-bottom-navigation--dynamic":c,"md-bottom-navigation--dynamic-inactive":c&&!n},a),role:"navigation"}),g.map((function(t,n){return r.createElement(Pn,In({},t,{animate:h,key:t.key||n,index:n,onNavChange:e._handleNavChange,active:v===n,colored:l,fixed:y}))})));return f?r.createElement(bn,{renderNode:b,visible:i,lastChild:p},_):i?_:null},t}(r.PureComponent);On.propTypes={style:o().object,className:o().string,links:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l=e[t]||e.actions,c=l.length;return c<3?new Error("Only "+c+" `"+t+"` were given to the "+n+". At least 3 are required."):c>5?new Error(c+" `"+t+"` were given to the "+n+". No more than 5 may be given."):(s=o().arrayOf(o().shape({label:o().node.isRequired,icon:o().element,iconChildren:(0,E.Z)(o().node,"Use `icon` instead"),iconClassName:(0,E.Z)(o().string,"Use `icon` instead"),component:o().oneOfType([o().func,o().string,o().object])}))).isRequired.apply(s,[e,t,n].concat(i))},colored:o().bool,dynamic:o().bool,dynamicThreshold:o().number.isRequired,onNavChange:o().func,activeIndex:b(o().number,"onNavChange","defaultActiveIndex"),defaultActiveIndex:o().number.isRequired,defaultVisible:o().bool.isRequired,component:o().oneOfType([o().func,o().string,o().object]).isRequired,portal:o().bool,renderNode:o().object,lastChild:o().bool,transitionDuration:o().number.isRequired,onVisibilityChange:o().func,animate:o().bool,onChange:(0,E.Z)(o().func,"Use `onNavChange` instead"),initiallyVisible:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),initialActiveIndex:(0,E.Z)(o().number,"Use `defaultActiveIndex` instead"),containerStyle:(0,E.Z)(o().object,"Use `style` instead"),containerClassName:(0,E.Z)(o().string,"Use `className` instead"),transitionName:(0,E.Z)(o().string,"There is no CSSTransitionGroup used anymore"),transitionEnterTimeout:(0,E.Z)(o().number,"Use `transitionDuration` instead"),transitionLeaveTimeout:(0,E.Z)(o().number,"Use `transitionDuration` instead"),actions:(0,E.Z)(o().array,"Use `links` instead")},On.defaultProps={animate:!0,defaultActiveIndex:0,component:"footer",defaultVisible:!0,transitionDuration:300,portal:!1,dynamicThreshold:5},On.contextTypes={renderNode:o().object};var Ln=function(){var e=this;this._addTouchEvents=function(){G(window,"start",e._handleTouchStart),G(window,"move",e._handleTouchMove),G(window,"end",e._handleTouchEnd)},this._removeTouchEvents=function(){W(window,"start",e._handleTouchStart),W(window,"move",e._handleTouchMove),W(window,"end",e._handleTouchEnd)},this._animateIn=function(){e._timeout&&clearTimeout(e._timeout),e._timeout=setTimeout((function(){e._timeout=null,e.setState({visible:!0})}),17),e.setState({portalVisible:!0})},this._animateOut=function(){e._timeout&&clearTimeout(e._timeout),e._timeout=setTimeout((function(){e._timeout=null,e.setState({portalVisible:!1})}),e.props.transitionDuration),e.setState({visible:!1})},this._handleTouchStart=function(t){var n=t.changedTouches[0].pageY;e._pageY=n,e._scrolling=!0},this._handleTouchMove=function(t){var n=e.state.visible;if(e._scrolling){var r=t.changedTouches[0].pageY,i=e.props.dynamicThreshold,o=Math.abs(e._pageY-r)>=i;e._pageY>r&&n&&o?(e._pageY=r,e._animateOut()):e._pageY<r&&!n&&o&&(e._pageY=r,e._animateIn())}},this._handleTouchEnd=function(){e._scrolling=!1},this._handleNavChange=function(t,n){(e.props.onNavChange||e.props.onChange)&&(e.props.onNavChange||e.props.onChange)(t,n),"undefined"===typeof e.props.activeIndex&&e.setState({activeIndex:t})}};function Rn(e){for(var t,n=e.flat,r=e.raised,i=e.icon,o=e.floating,a=e.disabled,s=e.primary,l=e.secondary,c=e.hover,d=e.swapTheming,p=e.pressed,h=e.mini,f=e.fixed,m=e.fixedPosition,g=n||i,y=r||o,v=g&&!d||y&&d,b=(!a&&y&&!d||g&&d)&&(s||l),_=arguments.length,w=Array(_>1?_-1:0),x=1;x<_;x++)w[x-1]=arguments[x];return u().apply(void 0,["md-btn",(t={"md-btn--flat":n||a&&r,"md-btn--raised":!a&&r,"md-btn--icon":i||o,"md-btn--floating":o,"md-btn--text":n||r,"md-btn--hover":!a&&c,"md-btn--raised-disabled":a&&r,"md-btn--raised-pressed":!a&&y&&p,"md-btn--fixed":f},t["md-btn--fixed-"+m]=o&&f,t["md-btn--floating-mini"]=o&&h,t["md-btn--color-primary-active"]=!a&&s&&c&&v,t["md-btn--color-secondary-active"]=!a&&l&&c&&v,t["md-pointer--hover"]=!a,t["md-paper md-paper--2"]=!a&&o,t["md-paper--4"]=!a&&o&&p,t),P({text:!i&&!o&&!b,themeText:!b,disabled:a,primary:s,secondary:l,hover:!0,ink:!0})].concat(w))}var jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Dn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.labelStyle,i=e.labelClassName,o=e.component,a=e.label,s=e.iconBefore,l=e.children,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","labelStyle","labelClassName","component","label","iconBefore","children"]),d=void 0;if((0,r.isValidElement)(a)){var p=r.Children.only(a).props;d=(0,r.cloneElement)(a,{className:u()("md-icon-text",i,p.className),style:jn({},n,p.style)})}else d=r.createElement("span",{style:n,className:u()("md-icon-text",i)},a);var h=o;return r.createElement(h,jn({},c,{className:u()("md-icon-separator",t)}),s&&l,d,!s&&l)},t}(r.PureComponent);Dn.propTypes={style:o().object,className:o().string,labelStyle:o().object,labelClassName:o().string,label:o().node.isRequired,children:o().node.isRequired,iconBefore:o().bool,component:o().oneOfType([o().string,o().func,o().object]).isRequired},Dn.defaultProps={component:"div"};const An=Dn;var Nn=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state={entering:!1,leaving:!1,active:!1,visible:!1},r._timeout=null,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype.componentWillEnter=function(e){var t=this;this._timeout=setTimeout((function(){t._timeout=setTimeout((function(){t._timeout=null,e()}),t.props.enterTimeout),t.setState({active:!0})}),X),this.setState({entering:!0})},t.prototype.componentDidEnter=function(){this.setState({entering:!1,active:!1,visible:!0})},t.prototype.componentWillLeave=function(e){var t=this;this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout((function(){t._timeout=setTimeout((function(){t._timeout=null,e()}),t.props.leaveTimeout),t.setState({active:!0,visible:!1})}),X),this.setState({leaving:!0})},t.prototype.render=function(){var e,t=this.state,n=t.active,i=t.entering,o=t.leaving,a=t.visible,s=this.props,l=s.style,c=s.className,d=s.children,p=s.position,h="top"===p||"bottom"===p?"horizontal":"vertical";return r.createElement("span",{style:l,className:u()("md-tooltip md-tooltip--"+p+" md-tooltip--"+h,(e={"md-tooltip--active":n,"md-tooltip--enter":i,"md-tooltip--enter-active":i&&n,"md-tooltip--leave":o,"md-tooltip--leave-active":o&&n},e["md-tooltip--"+p+"-active"]=a||i&&n,e),c)},d)},t}(r.PureComponent);Nn.propTypes={style:o().object,className:o().string,position:o().oneOf(["top","right","bottom","left"]),children:o().node.isRequired,enterTimeout:o().number,leaveTimeout:o().number},Nn.defaultProps={position:"bottom",enterTimeout:150,leaveTimeout:150};const Fn=Nn;function zn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Bn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=zn(this,e.call.apply(e,[this].concat(o))),r.state={visible:!1},r._delayedTimeout=null,r._unlinkTarget=function(){var e=r._target;e&&(W(e,"start",r._showTooltip),W(e,"end",r._hideTooltip),e.removeEventListener("mouseover",r._showTooltip),e.removeEventListener("mouseleave",r._hideTooltip),e.removeEventListener("keyup",r._handleKeyUp),e.removeEventListener("focusout",r._hideTooltip),e.removeEventListener("blur",r._hideTooltip))},r._setTarget=function(){var e=r._container,t=r.props.target;r._unlinkTarget(),"function"===typeof t&&(t=t(e,r)),t=t?(0,a.findDOMNode)(t):e,r._target=t||null,t&&(G(t,"start",r._showTooltip),G(t,"end",r._hideTooltip),t.addEventListener("mouseover",r._showTooltip),t.addEventListener("mouseleave",r._hideTooltip),t.addEventListener("keyup",r._handleKeyUp),t.addEventListener("focusout",r._hideTooltip),t.addEventListener("blur",r._hideTooltip))},r._setContainers=function(e){e&&(r._container=r.props.container(e.parentNode,r))},r._stopContextMenu=function(e){e.preventDefault(),window.removeEventListener("contextmenu",r._stopContextMenu,!0),Y("click"),r.setState({visible:!0})},r._showTooltip=function(e){if("mouseover"!==e.type||!r._touched){if("touchstart"===e.type)return r._touched=!0,void window.addEventListener("contextmenu",r._stopContextMenu,!0);var t=r.props.delay;r._delayedTimeout&&clearTimeout(r._delayedTimeout),t?r._delayedTimeout=setTimeout((function(){r._delayedTimeout=null,r.setState({visible:!0})}),t):r.setState({visible:!0})}},r._hideTooltip=function(e){r._delayedTimeout&&clearTimeout(r._delayedTimeout),"mouseover"===e.type&&r._touched||r.setState({visible:!1})},r._handleKeyUp=function(e){9===(e.which||e.keyCode)&&r._showTooltip(e)},zn(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._setTarget()},t.prototype.componentDidUpdate=function(e){this.props.target!==e.target&&this._setTarget()},t.prototype.componentWillUnmount=function(){this._unlinkTarget(),this._target=null,this._delayedTimeout&&clearTimeout(this._delayedTimeout)},t.prototype.render=function(){var e=this.state.visible,t=this.props,n=t.style,i=t.className,o=t.tooltipStyle,a=t.tooltipClassName,s=t.label,l=t.position,c=t.enterTimeout,d=t.leaveTimeout,p=r.createElement(Fn,{key:"tooltip",style:o,className:a,position:l,enterTimeout:c,leaveTimeout:d},s);return r.createElement(z(),{style:n,className:u()("md-tooltip-container",i),component:"div"},r.createElement("span",{ref:this._setContainers,"aria-hidden":!0}),e?p:null)},t}(r.PureComponent);Bn.propTypes={style:o().object,className:o().string,tooltipStyle:o().object,tooltipClassName:o().string,label:o().node.isRequired,position:Fn.propTypes.position,delay:o().number,enterTimeout:Fn.propTypes.enterTimeout,leaveTimeout:Fn.propTypes.leaveTimeout,container:o().func,target:o().oneOfType([o().object,o().func])},Bn.defaultProps={container:function(e){return e.parentNode},delay:0};const Un=Bn;function $n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}const Vn=function(e){var t,n;return n=t=function(t){function n(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r=$n(this,t.call.apply(t,[this].concat(o))),r._composed=null,r.getComposedComponent=function(){return r._composed},r._setComposedComponent=function(e){r._composed=e},$n(r,e)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.render=function(){var t=this.props,n=t.tooltipLabel,i=t.tooltipDelay,o=t.tooltipPosition,a=t.tooltipStyle,s=t.tooltipClassName,l=t.tooltipContainerStyle,c=t.tooltipContainerClassName,u=t.tooltipTransitionEnterTimeout,d=t.tooltipTransitionLeaveTimeout,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["tooltipLabel","tooltipDelay","tooltipPosition","tooltipStyle","tooltipClassName","tooltipContainerStyle","tooltipContainerClassName","tooltipTransitionEnterTimeout","tooltipTransitionLeaveTimeout"]);return n&&(p.tooltip=r.createElement(Un,{key:"tooltipContainer",label:n,delay:i,position:o,enterTimeout:u,leaveTimeout:d,style:l,className:c,tooltipStyle:a,tooltipClassName:s})),p.ref=this._setComposedComponent,r.createElement(e,p)},n}(r.PureComponent),t.displayName=N(e,"Tooltip"),t.propTypes={tooltipContainerStyle:o().object,tooltipContainerClassName:o().string,tooltipStyle:o().object,tooltipClassName:o().string,tooltipLabel:o().node,tooltipDelay:Un.propTypes.delay,tooltipPosition:Un.propTypes.position,tooltipTransitionEnterTimeout:Un.propTypes.enterTimeout,tooltipTransitionLeaveTimeout:Un.propTypes.leaveTimeout},n};var qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Zn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Hn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Zn(this,e.call.apply(e,[this].concat(o))),Gn.call(r),Zn(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.disabled&&!e.disabled&&this.state.hover&&this.setState({hover:!1})},t.prototype.componentWillUpdate=function(e,t){var n=this;!this.state.pressed&&t.pressed&&(this._timeout=setTimeout((function(){n._timeout=null,n._attemptedBlur&&(n._attemptedBlur=!1,n.setState({pressed:!1}))}),450))},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout),this._snackbarTimeout&&clearTimeout(this._snackbarTimeout),window.removeEventListener("click",this._blur)},t.prototype.render=function(){var e,t=this.props,n=t.className,i=t.iconClassName,o=t.iconChildren,a=t.iconBefore,s=t.href,l=t.primary,c=t.secondary,u=t.flat,d=t.raised,p=t.floating,h=t.mini,f=t.fixed,m=t.fixedPosition,g=t.disabled,y=t.component,v=t.ink,b=t.tooltip,_=t.icon,w=t.forceIconSize,x=t.forceIconFontSize,k=t.type,C=t.children,S=t.swapTheming,M=t.svg,T=(t.iconEl,t.label),E=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconClassName","iconChildren","iconBefore","href","primary","secondary","flat","raised","floating","mini","fixed","fixedPosition","disabled","component","ink","tooltip","icon","forceIconSize","forceIconFontSize","type","children","swapTheming","svg","iconEl","label"]),P=this.props.iconEl;s||(E.type=k);var I=this.state,O=I.pressed,L=I.hover,R=I.snackbar,j=I.snackbarType,D=_||p,A=void 0;if(P||M||!(i||o||D||T&&C)){if(P||M){var N=r.Children.only(P||C);P=r.cloneElement(N,{inherit:!N.props.error})}}else{var F=o;"undefined"===typeof o&&(F=D||T?C:null),P=r.createElement(ve,{iconClassName:i,forceSize:w,forceFontSize:x,inherit:!0},F)}D?A=P:(A=T||C,P&&(A=r.createElement(An,{label:A,iconBefore:a},P)));var z=y||(s?"a":"button");return r.createElement(z,qn({},E,{disabled:g,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onKeyDown:this._handleKeyDown,onKeyUp:this._handleKeyUp,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,href:s,className:Rn({flat:u,raised:d,icon:_,floating:p,disabled:g,primary:l,secondary:c,hover:L,swapTheming:S,pressed:O,mini:h,fixed:f,fixedPosition:m},(e={"md-btn--tooltip":b,"md-btn--snackbar-floating":R},e["md-btn--snackbar-floating-"+j+"adjust"]=R&&null!==j,e),"md-inline-block",n)}),v,b,A)},t}(r.PureComponent);Hn.propTypes={style:o().object,className:o().string,iconBefore:o().bool,children:o().node,iconClassName:o().string,iconChildren:o().node,iconEl:o().element,type:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s=e.component,l=o().oneOf(["button","submit","reset"]);return e.href||"a"===s||"function"===typeof s||(l=l.isRequired),l.apply(void 0,[e,t,n].concat(i))},primary:o().bool,secondary:o().bool,disabled:o().bool,href:o().string,component:o().oneOfType([o().string,o().func,o().object]),onClick:o().func,onTouchStart:o().func,onTouchEnd:o().func,onMouseDown:o().func,onMouseUp:o().func,onKeyUp:o().func,onKeyDown:o().func,onMouseEnter:o().func,onMouseLeave:o().func,fixed:_(o().bool,"flat","raised","icon"),fixedPosition:o().oneOf(["tr","tl","br","bl"]).isRequired,mini:_(o().bool,"flat","raised","icon"),flat:o().bool,raised:o().bool,icon:o().bool,floating:o().bool,swapTheming:o().bool,tooltipLabel:o().node,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),ink:o().node,tooltip:o().node,_typeValidator:function(e,t,n){var r=e.flat,i=[e.raised,r,e.icon,e.floating].filter((function(e){return e})).length;return 0===i?new Error("A material design button type must be specified in the `"+n+"` but none were given. Valid types are `flat`, `raised`, `icon`, or `floating`."):1!==i?new Error("Only one material design button type may be specified in the `"+n+"` but `"+i+"` were given. Select only one of `flat`, `raised`, `icon`, or `floating`."):null},forceIconSize:ve.propTypes.forceSize,forceIconFontSize:o().bool,svg:o().bool,label:(0,E.Z)(o().node,"Use the `children` prop instead"),noIcon:(0,E.Z)(o().bool,"This has been removed during the alpha release. Children will always attempt to be rendered outside of an icon by default for flat and raised buttons")},Hn.defaultProps={type:"button",iconBefore:!0,fixedPosition:"br"};var Gn=function(){var e=this;this.state={pressed:!1,snackbar:!1,snackbarType:null},this._blur=function(){e.props.disabled||(e._timeout?e._attemptedBlur=!0:e.setState({pressed:!1}))},this._handleMouseUp=function(t){e.props.onMouseUp&&e.props.onMouseUp(t),e._blur()},this._handleMouseDown=function(t){e.props.onMouseDown&&e.props.onMouseDown(t),e.props.disabled||e.setState({pressed:!0})},this._handleTouchStart=function(t){e.props.onTouchStart&&e.props.onTouchStart(t),e.props.disabled||e.setState({pressed:!0})},this._handleTouchEnd=function(t){e.props.onTouchEnd&&e.props.onTouchEnd(t),e._blur(),Y("mouseover")},this._handleKeyUp=function(t){e.props.onKeyUp&&e.props.onKeyUp(t),9===(t.which||t.keyCode)&&(window.addEventListener("click",e._blur),e.setState({pressed:!0}))},this._handleKeyDown=function(t){e.props.onKeyDown&&e.props.onKeyDown(t),9===(t.which||t.keyCode)&&(window.removeEventListener("click",e._blur),e.setState({pressed:!1}))},this._handleMouseEnter=function(t){e.props.onMouseEnter&&e.props.onMouseEnter(t),e.props.disabled||e.setState({hover:!0})},this._handleMouseLeave=function(t){e.props.onMouseLeave&&e.props.onMouseLeave(t),e.props.disabled||e.setState({hover:!1})},this._animateForSnackbar=function(t,n){e._snackbarTimeout="number"===typeof n?setTimeout((function(){e._snackbarTimeout=setTimeout((function(){e._snackbarTimeout=null,e.setState({snackbar:!1})}),n+150),e.setState({snackbarType:null})}),X):setTimeout((function(){e._snackbarTimeout=null,e.setState({snackbar:!0,snackbarType:t?"multiline-":""})}),X)}};const Wn=ae(Vn(Hn)),Yn={onExpandClick:o().func,expanded:o().bool,icon:o().element,tooltipPosition:o().oneOf(["top","right","bottom","left"]),tooltipLabel:o().node,tooltipDelay:o().number};var Kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Xn=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._handleMouseOver=function(e){r.props.onMouseOver&&r.props.onMouseOver(e),r.props.raise&&!r._touched&&r.setState({zDepth:4})},r._handleMouseLeave=function(e){r.props.onMouseLeave&&r.props.onMouseLeave(e),r._touched=!1,r.props.raise&&1!==r.state.zDepth&&r.setState({zDepth:1})},r._handleTouchStart=function(e){r.props.onTouchStart&&r.props.onTouchStart(e),r._touched=!0},r._handleExpandClick=function(e){var t=r.props.onExpanderClick,n=!d(r.props,r.state,"expanded");t&&t(n,e),"undefined"===typeof r.props.expanded&&r.setState({expanded:n})},r.state={zDepth:1,expanded:"undefined"!==typeof n.initiallyExpanded?n.initiallyExpanded:!!n.defaultExpanded},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.expanderTooltipLabel,n=e.expanderTooltipDelay,r=e.expanderTooltipPosition,i=e.expanderIcon,o=e.iconClassName,a=e.iconChildren,s=e.expanderIconClassName,l=e.expanderIconChildren;return{expanded:"undefined"!==typeof this.props.isExpanded?this.props.isExpanded:d(this.props,this.state,"expanded"),onExpandClick:this._handleExpandClick,icon:be(a||l,o||s,i),tooltipLabel:t,tooltipDelay:n,tooltipPosition:r}},t.prototype.render=function(){var e=this.state.zDepth,t=this.props,n=t.className,i=t.raise,o=t.tableCard,a=t.children,s=t.animate,l=(t.expanded,t.onExpanderClick,t.defaultExpanded,t.expanderIcon,t.expanderIconChildren,t.expanderIconClassName,t.expanderTooltipLabel,t.expanderTooltipDelay,t.expanderTooltipPosition,t.iconChildren,t.iconClassName,t.isExpanded,t.initiallyExpanded,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","raise","tableCard","children","animate","expanded","onExpanderClick","defaultExpanded","expanderIcon","expanderIconChildren","expanderIconClassName","expanderTooltipLabel","expanderTooltipDelay","expanderTooltipPosition","iconChildren","iconClassName","isExpanded","initiallyExpanded"])),c="undefined"!==typeof this.props.isExpanded?this.props.isExpanded:d(this.props,this.state,"expanded"),p=-1,h=r.Children.map(r.Children.toArray(a),(function(e,t){if(!e||!e.props)return e;if(p<0&&(e.props.isExpander||e.props.expander)&&(p=t),!e.props.expandable)return e;var n=-1===p||p===t||!c;return r.createElement(de,{collapsed:n,animate:s},e)}));return r.createElement(Cn,Kn({},l,{zDepth:e,className:u()("md-card",{"md-card--raise":i,"md-card--table":o},"md-background--card",n),onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave,onTouchStart:this._handleTouchStart}),h)},t}(r.PureComponent);Xn.propTypes={style:o().object,className:o().string,children:o().node,defaultExpanded:o().bool,raise:o().bool,expanded:b(o().bool,"onExpanderClick","defaultExpanded"),onExpanderClick:o().func,expanderIcon:o().element,expanderTooltipPosition:o().oneOf(["top","right","bottom","left"]),expanderTooltipLabel:o().node,expanderTooltipDelay:o().number,tableCard:o().bool,onMouseOver:o().func,onMouseLeave:o().func,onTouchStart:o().func,animate:o().bool,expanderIconClassName:(0,E.Z)(o().string,"Use `expanderIcon` instead"),expanderIconChildren:(0,E.Z)(o().node,"Use `expanderIcon` instead"),initiallyExpanded:(0,E.Z)(o().bool,"Use `defaultExpanded` instead"),isExpanded:(0,E.Z)(o().bool,"Use `expanded` instead"),iconChildren:(0,E.Z)(o().node,"Use the `expanderIconChildren` prop instead"),iconClassName:(0,E.Z)(o().string,"Use the `expanderIconClassName` prop instead")},Xn.defaultProps={animate:!0,expanderIcon:r.createElement(ve,null,"keyboard_arrow_down"),expanderTooltipPosition:"left"},Xn.childContextTypes=Yn;const Jn=Xn;var Qn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.context,t=e.expanded,n=e.onExpandClick,i=e.icon,o=e.tooltipPosition,a=e.tooltipLabel,s=e.tooltipDelay;return r.createElement(Wn,{icon:!0,className:I({flipped:t},"md-collapser--card"),onClick:n,tooltipLabel:a,tooltipDelay:s,tooltipPosition:o,iconEl:i})},t}(r.Component);Qn.contextTypes=Yn;const er=Qn;var tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var nr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=e.isExpander,o=e.expander,a=e.centered,s=e.stacked,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","children","isExpander","expander","centered","stacked"]);return r.createElement("section",tr({},l,{className:u()("md-dialog-footer--card",{"md-dialog-footer--inline":!s,"md-dialog-footer--stacked":s,"md-dialog-footer--card-centered":a},t)}),n,i||o&&r.createElement(er,null))},t}(r.Component);nr.propTypes={expander:o().bool,className:o().string,children:o().node,centered:o().bool,stacked:o().bool,isExpander:(0,E.Z)(o().bool,"Use `expander` instead")};var rr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.subtitle,i=e.avatar,o=this.props.title;return o=r.createElement("h2",{id:t,className:u()("md-card-title--title",{"md-card-title--large":!i},P({text:!0})),tabIndex:t?-1:null},o),n?r.createElement("div",{className:u()("md-card-title--title-block",{"md-card-title--one-line":i})},o,r.createElement("h3",{className:"md-card-title--title "+P({hint:!0})},n)):o},t}(r.PureComponent);rr.propTypes={id:o().oneOfType([o().number,o().string]),title:o().node.isRequired,subtitle:o().node,avatar:o().bool};const ir=rr;var or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ar=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.className,o=e.title,a=e.subtitle,s=e.expander,l=e.isExpander,c=e.children,d=(e.avatar,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","style","className","title","subtitle","expander","isExpander","children","avatar"])),p=this.props.avatar;if(p){var h=r.Children.only(p).props.className;p=(0,r.cloneElement)(p,{className:u()("md-avatar--card",h)})}return r.createElement("div",or({},d,{style:n,className:u()("md-card-title",{"md-card-title--primary":!p},i)}),p,r.createElement(ir,{id:t,title:o,subtitle:a,avatar:!!p}),c,l||s&&r.createElement(er,null))},t}(r.Component);ar.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,title:o().node.isRequired,subtitle:o().node,children:o().node,avatar:o().element,expander:o().bool,isExpander:(0,E.Z)(o().bool,"Use `expander` instead")};var sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var lr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=e.className,i=(e.expandable,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","className","expandable"]));return r.createElement(t,sr({},i,{className:u()("md-card-text",n)}))},t}(r.PureComponent);lr.propTypes={style:o().object,className:o().string,children:o().node,component:o().oneOfType([o().string,o().func,o().object]).isRequired,expandable:o().bool},lr.defaultProps={component:"section"};const cr=lr;var ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function dr(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var pr=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=dr(this,e.call.apply(e,[this].concat(o))),r.state={hover:!1},r._handleMouseEnter=function(e){r.props.onMouseEnter&&r.props.onMouseEnter(e),r.setState({hover:!0})},r._handleMouseLeave=function(e){r.props.onMouseLeave&&r.props.onMouseLeave(e),r.setState({hover:!1})},dr(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state.hover,t=this.props,n=t.label,i=t.className,o=t.labelStyle,a=t.labelClassName,s=t.avatar,l=t.children,c=t.removable,d=t.remove,p=t.onClick,h=t.rotateIcon,f=t.iconClassName,m=(t.removeIconChildren,t.removeIconClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label","className","labelStyle","labelClassName","avatar","children","removable","remove","onClick","rotateIcon","iconClassName","removeIconChildren","removeIconClassName"])),g=void 0;if(c||d){var y=u()("md-chip-icon",{"md-chip-icon--rotate":h,"md-chip-text--hover":e});r.isValidElement(l)?(g=r.Children.only(l),g=r.cloneElement(g,{className:u()(y,g.props.className)})):g=r.createElement(ve,{className:y,iconClassName:f},l)}return r.createElement("button",ur({type:"button"},m,{className:u()("md-chip",{"md-chip--avatar":s,"md-chip--remove":c,"md-chip--hover":e},i),onClick:d||p,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave}),s,r.createElement("span",{style:o,className:u()("md-chip-text",{"md-chip-text--hover":e},a)},n),g)},t}(r.PureComponent);pr.propTypes={style:o().object,className:o().string,labelStyle:o().object,labelClassName:o().string,rotateIcon:o().bool,children:o().node,label:o().node.isRequired,removable:o().bool,avatar:o().element,onClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func,iconClassName:(0,E.Z)(o().string,"Use the `children` prop as a single FontIcon or SVGIcon instead"),remove:(0,E.Z)(o().func,"Use `removable` and `onClick` instead"),removeIconChildren:(0,E.Z)(o().node,"Use `children` instead"),removeIconClassName:(0,E.Z)(o().string,"Use `children` prop as a single FontIcon or SVGIcon instead")},pr.defaultProps={rotateIcon:!0,children:r.createElement(ve,null,"add_circle")};const hr=pr;const fr={checkedIcon:o().element,uncheckedIcon:o().element,indeterminateIcon:o().element,indeterminate:o().bool,plain:o().bool,selectableRows:o().bool.isRequired,allSelected:o().bool.isRequired,selectedRows:o().arrayOf(o().bool).isRequired,createCheckbox:o().func.isRequired,removeCheckbox:o().func.isRequired,toggleSelectedRow:o().func.isRequired,baseId:o().oneOfType([o().number,o().string]),baseName:o().string,checkboxHeaderLabel:o().string.isRequired,checkboxLabelTemplate:o().string.isRequired,fixedHeader:o().bool.isRequired,fixedFooter:o().bool.isRequired};var mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var gr=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));yr.call(r);var i=n.defaultSelectedRows;return r.state={header:!1,indeterminate:!n.indeterminate&&void 0,allSelected:r._allSelected(i),selectedRows:i},r._removed=0,r._initial=!0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.checkedIcon,n=e.uncheckedIcon,r=e.indeterminateIcon,i=e.plain,o=e.baseId,a=e.selectableRows,s=e.checkboxHeaderLabel,l=e.checkboxLabelTemplate,c=e.fixedHeader,u=e.fixedFooter,d=e.checkedIconChildren,p=e.checkedIconClassName,h=e.uncheckedIconChildren,f=e.uncheckedIconClassName,m=e.indeterminateIconChildren,g=e.indeterminateIconClassName;return{checkedIcon:be(p,d,t),uncheckedIcon:be(f,h,n),indeterminateIcon:be(g,m,r),indeterminate:this.state.indeterminate,plain:i,allSelected:this.state.allSelected,selectedRows:this.state.selectedRows,toggleSelectedRow:this._toggleSelectedRow,createCheckbox:this._createCheckbox,removeCheckbox:this._removeCheckbox,baseId:o,baseName:o+"-control",selectableRows:a,checkboxHeaderLabel:s,checkboxLabelTemplate:l,fixedHeader:c,fixedFooter:u}},t.prototype.componentDidUpdate=function(){this._removed=0,this._initial=!1},t.prototype._allSelected=function(e){var t=0!==e.length;return e.some((function(e){return e||(t=!1),!t})),t},t.prototype.render=function(){var e,t=this.props,n=t.style,i=t.className,o=t.tableStyle,a=t.tableClassName,s=t.fixedWrapperStyle,l=t.fixedWrapperClassName,c=t.fixedScrollWrapperStyle,d=t.fixedScrollWrapperClassName,p=t.children,h=t.plain,f=t.responsive,m=t.fixedHeader,g=t.fixedFooter,y=t.fixedDividers,v=t.fixedHeight,b=t.fixedWidth,_=t.headerHeight,w=t.footerHeight,x=t.fullWidth,k=(t.indeterminate,t.indeterminateIcon,t.checkedIcon,t.uncheckedIcon,t.defaultSelectedRows,t.baseId,t.onRowToggle,t.selectableRows,t.checkboxHeaderLabel,t.checkboxLabelTemplate,t.checkedIconChildren,t.checkedIconClassName,t.uncheckedIconChildren,t.uncheckedIconClassName,t.indeterminateIconChildren,t.indeterminateIconClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","className","tableStyle","tableClassName","fixedWrapperStyle","fixedWrapperClassName","fixedScrollWrapperStyle","fixedScrollWrapperClassName","children","plain","responsive","fixedHeader","fixedFooter","fixedDividers","fixedHeight","fixedWidth","headerHeight","footerHeight","fullWidth","indeterminate","indeterminateIcon","checkedIcon","uncheckedIcon","defaultSelectedRows","baseId","onRowToggle","selectableRows","checkboxHeaderLabel","checkboxLabelTemplate","checkedIconChildren","checkedIconClassName","uncheckedIconChildren","uncheckedIconClassName","indeterminateIconChildren","indeterminateIconClassName"])),C=r.createElement("table",mr({},k,{ref:this._setTable,style:f?o:n,className:u()("md-data-table",(e={"md-data-table--plain":h,"md-data-table--full-width":x},e[i]=!f&&i,e[a]=f&&a,e))}),p);if(!f)return C;var S=C;if(m||g){var M=v;v&&(m&&(M-=_),g&&(M-=w));var T=m,E=g;"boolean"===typeof y?(T=T&&y,E=E&&y):(T=T&&("undefined"===typeof y.header||y.header),E=E&&("undefined"===typeof y.footer||y.footer)),S=r.createElement("div",{style:s,className:u()("md-data-table__fixed-wrapper",{"md-data-table__fixed-wrapper--header":m,"md-data-table__fixed-wrapper--footer":g},l)},r.createElement("div",{style:mr({height:M},c),className:u()("md-data-table__scroll-wrapper",{"md-divider-border":y,"md-divider-border--top":T,"md-divider-border--bottom":E},d)},C))}return r.createElement("div",{style:mr({width:b},n),className:u()("md-data-table--responsive",{"md-data-table--fixed":m||g},i)},S)},t}(r.PureComponent);gr.propTypes={baseId:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t,r,i,o,a){for(var s=i||"<<anonymous>>",l=a||r,c="undefined"!==typeof t[r],u=arguments.length,d=Array(u>5?u-5:0),p=5;p<u;p++)d[p-5]=arguments[p];var h=e.apply(void 0,[t,r,i,o,a].concat(d));return h||c||n.filter((function(e){return!!t[e]})).length||(h=new Error("The `"+l+"` "+o+" is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.")),h}}(o().oneOfType([o().number,o().string]),"plain"),style:o().object,className:o().string,tableStyle:o().object,tableClassName:o().string,fixedWrapperStyle:o().object,fixedWrapperClassName:o().string,fixedScrollWrapperStyle:o().object,fixedScrollWrapperClassName:o().string,children:o().node.isRequired,defaultSelectedRows:o().arrayOf(o().bool).isRequired,responsive:o().bool.isRequired,plain:o().bool,checkedIcon:o().element,uncheckedIcon:o().element,onRowToggle:_(o().func,"plain"),selectableRows:o().bool,indeterminate:o().bool,indeterminateIcon:o().element,checkboxHeaderLabel:o().string.isRequired,checkboxLabelTemplate:o().oneOfType([o().func,o().string]).isRequired,fixedHeader:o().bool,fixedFooter:o().bool,fixedDividers:o().oneOfType([o().bool,o().shape({header:o().bool,footer:o().bool})]),fixedHeight:o().number,fixedWidth:o().number,headerHeight:o().number.isRequired,footerHeight:o().number.isRequired,fullWidth:o().bool,indeterminateIconChildren:(0,E.Z)(o().node,"Use the `indeterminateIcon` prop instead"),indeterminateIconClassName:(0,E.Z)(o().string,"Use the `indeterminateIcon` prop instead"),checkedIconClassName:(0,E.Z)(o().string,"Use the `checkedIcon` prop instead"),checkedIconChildren:(0,E.Z)(o().node,"Use the `checkedIcon` prop instead"),uncheckedIconClassName:(0,E.Z)(o().string,"Use the `uncheckedIcon` prop instead"),uncheckedIconChildren:(0,E.Z)(o().node,"Use the `uncheckedIcon` prop instead")},gr.defaultProps={indeterminateIcon:r.createElement(ve,null,"indeterminate_check_box"),defaultSelectedRows:[],responsive:!0,selectableRows:!0,checkboxHeaderLabel:"Toggle All Rows",checkboxLabelTemplate:"Toggle row {{row}}",fixedHeader:!1,fixedFooter:!1,fixedDividers:!0,headerHeight:56,footerHeight:48,fullWidth:!0},gr.childContextTypes=fr;var yr=function(){var e=this;this._setTable=function(t){e._table=t},this._createCheckbox=function(t){e.setState((function(n,r){var i=n.selectedRows.slice(),o=e._initial&&r.defaultSelectedRows[t]||!1;return i.splice(t,0,o),{selectedRows:i,allSelected:e._allSelected(i)}}))},this._removeCheckbox=function(t){e.setState((function(n){var i=n.selectedRows.slice();return r.version&&r.version.match(/^16\./)?i.splice(t,1):(i.splice(t-e._removed,1),e._removed+=1),{selectedRows:i,allSelected:e._allSelected(i)}}))},this._toggleSelectedRow=function(t,n,r){var i=void 0,o=e.state.allSelected,a=0,s=e._table&&e._table.querySelector(".md-table-header")?t-1:t,l=r.target.checked;n?(i=e.state.selectedRows.map((function(){return l})),o=l,a=l?i.length:0):((i=e.state.selectedRows.slice())[s]=!i[s],o=(a=i.filter((function(e){return e})).length)===i.length),e.props.onRowToggle&&e.props.onRowToggle(t,l,a,r);var c=e.props.indeterminate&&!o&&a>0;e.setState({selectedRows:i,allSelected:o,indeterminate:c})}};const vr=gr;const br=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e})({},fr,{header:o().bool});var _r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var wr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return _r({},this.context,{header:!0})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","children"]),o=this.context.allSelected,a=r.Children.only(n),s="undefined"===typeof a.props.selected?o:a.props.selected,l=r.cloneElement(a,{selected:s});return r.createElement("thead",_r({},i,{className:u()("md-table-header",t)}),l)},t}(r.Component);wr.contextTypes=fr,wr.childContextTypes=br,wr.propTypes={style:o().object,className:o().string,children:function(e,t,n){try{return r.Children.only(e.children),null}catch(mc){var i=e.children?e.children.length:0;return new Error("There must only be one child in a '"+n+"', but "+i+" were given.")}}};const xr=wr;var kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Cr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=this.context.selectedRows,a=t?r.Children.map(r.Children.toArray(t),(function(e,t){var n="undefined"===typeof e.props.selected;return r.cloneElement(e,{selected:n?o[t]:e.props.selected})})):null;return r.createElement("tbody",kr({},i,{className:u()("md-table-body",n)}),a)},t}(r.Component);Cr.propTypes={style:o().object,className:o().string,children:o().oneOfType([o().element,o().arrayOf(o().element)])},Cr.contextTypes=fr;const Sr=Cr;var Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Tr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{footer:!0}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","children"]);return r.createElement("tfoot",Mr({className:u()("md-table-footer",t)},i),n)},t}(r.PureComponent);Tr.propTypes={style:o().object,className:o().string,children:o().node},Tr.childContextTypes={footer:o().bool};const Er=Tr;const Pr=p((Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e})({},br,{rowId:o().oneOfType([o().number,o().string])}),["baseId"]);var Ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Or=["mouse"],Lr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.checked,i=e.className,o=e.disabledInteractions,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["disabled","checked","className","disabledInteractions"]);return r.createElement(se,Ir({},a,{role:"checkbox","aria-checked":n,disabled:t,disabledInteractions:o||Or,inkContainerClassName:"md-ink-container--2x",className:u()("md-switch-thumb",{"md-switch-thumb--disabled":t,"md-switch-thumb--on":n,"md-switch-thumb--off":!n},i)}))},t}(r.PureComponent);Lr.propTypes={className:o().string,disabled:o().bool,checked:o().bool,onClick:o().func,disabledInteractions:o().arrayOf(o().oneOf(["keyboard","touch","mouse"])),"aria-label":v(o().string,"aria-labelledby"),"aria-labelledby":o().oneOfType([o().number,o().string])};const Rr=Lr;var jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.checked,i=e.className,o=e.inkDisabled,a=e.disabledInteractions,s=e["aria-label"],l=e["aria-labelledby"],c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["disabled","checked","className","inkDisabled","disabledInteractions","aria-label","aria-labelledby"]);return r.createElement("div",jr({},c,{className:u()("md-switch-track",{"md-pointer--hover":!t,"md-switch-track--disabled":t,"md-switch-track--on":n,"md-switch-track--off":!n},i)}),r.createElement(Rr,{disabled:t,checked:n,onClick:c.onClick,inkDisabled:o,disabledInteractions:a,"aria-label":s,"aria-labelledby":l}))},t}(r.PureComponent);Dr.propTypes={className:o().string,disabled:o().bool,checked:o().bool,inkDisabled:o().bool,disabledInteractions:o().arrayOf(o().oneOf(["keyboard","touch","mouse"])),"aria-label":v(o().string,"aria-labelledby"),"aria-labelledby":o().oneOfType([o().number,o().string])};const Ar=Dr;var Nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function zr(e){return function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=e.apply(void 0,[t,n].concat(i));return a&&t.__superSecreteProp&&(a=null),a}}var Br=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return Ur.call(r),r.state={},"undefined"===typeof n.checked&&(r.state.checked=!!n.defaultChecked),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._getClassName=function(e,t){return"function"===typeof e?e(t,this):e},t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.className,o=e.controlClassName,a=e.inputClassName,s=e.labelClassName,l=e.labelTextClassName,c=e.inline,p=e.type,h=e.name,f=e.value,m=e.disabled,g=e.labelBefore,y=e.tabIndex,v=e.inkDisabled,b=e.disabledInteractions,_=e["aria-label"],w=e["aria-labelledby"],x=e["aria-describedby"],k=(e.label,e.checked,e.onChange,e.tooltip),C=(e.changeOnEnter,e.checkedCheckboxIcon,e.uncheckedCheckboxIcon,e.checkedRadioIcon,e.uncheckedRadioIcon,e.__superSecreteProp,e.checkedIcon,e.uncheckedIcon,e.checkedRadioIconChildren,e.checkedRadioIconClassName,e.uncheckedRadioIconChildren,e.uncheckedRadioIconClassName,e.checkedCheckboxIconChildren,e.checkedCheckboxIconClassName,e.uncheckedCheckboxIconChildren,e.uncheckedCheckboxIconClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","style","className","controlClassName","inputClassName","labelClassName","labelTextClassName","inline","type","name","value","disabled","labelBefore","tabIndex","inkDisabled","disabledInteractions","aria-label","aria-labelledby","aria-describedby","label","checked","onChange","tooltip","changeOnEnter","checkedCheckboxIcon","uncheckedCheckboxIcon","checkedRadioIcon","uncheckedRadioIcon","__superSecreteProp","checkedIcon","uncheckedIcon","checkedRadioIconChildren","checkedRadioIconClassName","uncheckedRadioIconChildren","uncheckedRadioIconClassName","checkedCheckboxIconChildren","checkedCheckboxIconClassName","uncheckedCheckboxIconChildren","uncheckedCheckboxIconClassName"])),S=d(this.props,this.state,"checked"),M=Object.assign({},this.props,{checked:S}),T="switch"===p,E=this.props.label&&t+"-label",I=this.props.label&&r.createElement("span",{id:E,className:this._getClassName(l,M)},this.props.label),O=this._getClassName(o,M),L=void 0;return L=T?r.createElement(Ar,{className:O,disabled:m,checked:S,"aria-label":_,"aria-labelledby":w||E}):r.createElement(se,{inkDisabled:v,disabledInteractions:b,role:p,className:u()("md-selection-control-toggle md-btn md-btn--icon",P({disabled:m,hint:!S,secondary:S}),O),"aria-checked":S,"aria-label":_,"aria-labelledby":w||E,"aria-describedby":x,tabIndex:y,disabled:m},k,this._getIcon()),r.createElement("div",Nr({},C,{style:n,className:u()("md-selection-control-container",{"md-selection-control-container--inline":c,"md-switch-container":T},this._getClassName(i,M)),onKeyDown:this._handleKeyDown}),r.createElement("input",{ref:this._setInput,id:t,type:T?"checkbox":p,checked:S,onChange:this._handleChange,disabled:m,className:u()("md-selection-control-input",this._getClassName(a,M)),name:h,value:f,"aria-hidden":!0}),r.createElement("label",{htmlFor:t,className:u()("md-selection-control-label",{"md-pointer--hover":!m},P({disabled:m,text:!m}),this._getClassName(s,M))},g&&I,L,!g&&I))},Fr(t,[{key:"checked",get:function(){return d(this.props,this.state,"checked")}}]),t}(r.PureComponent);Br.propTypes={id:zr((0,je.default)(o().oneOfType([o().string,o().number]))),"aria-label":v(o().string,"label","aria-labelledby"),"aria-labelledby":o().oneOfType([o().number,o().string]),"aria-describedby":o().string,style:o().object,className:o().oneOfType([o().func,o().string]),controlClassName:o().oneOfType([o().func,o().string]),inputClassName:o().oneOfType([o().func,o().string]),labelClassName:o().oneOfType([o().func,o().string]),labelTextClassName:o().oneOfType([o().func,o().string]),type:o().oneOf(["checkbox","radio","switch"]).isRequired,label:o().node,labelBefore:o().bool,name:zr((0,je.default)(o().oneOfType([o().number,o().string]))),disabled:o().bool,onChange:o().func,onKeyDown:o().func,value:o().oneOfType([o().bool,o().number,o().string]),checked:o().bool,defaultChecked:o().bool,inline:o().bool,changeOnEnter:o().bool,checkedCheckboxIcon:o().element,uncheckedCheckboxIcon:o().element,checkedRadioIcon:o().element,uncheckedRadioIcon:o().element,tooltip:o().node,inkDisabled:o().bool,disabledInteractions:o().arrayOf(o().oneOf(["keyboard","touch","mouse"])),tabIndex:o().number,checkedIcon:zr((0,E.Z)(o().node,"Use the `checkedCheckboxIconChildren` and `checkedCheckboxIconClassName`  or the `checkedRadioIconChildren` and `checkedRadioIconClassName` props instead")),uncheckedIcon:zr((0,E.Z)(o().node,"Use the `uncheckedCheckboxIconChildren` and `uncheckedCheckboxIconClassName`  or the `uncheckedRadioIconChildren` and `uncheckedRadioIconClassName` props instead")),checkedCheckboxIconChildren:(0,E.Z)(o().node,"Use the `checkedCheckboxIcon` prop instead"),checkedCheckboxIconClassName:(0,E.Z)(o().string,"Use the `checkedCheckboxIcon` prop instead"),uncheckedCheckboxIconChildren:(0,E.Z)(o().node,"Use the `uncheckedCheckboxIcon` prop instead"),uncheckedCheckboxIconClassName:(0,E.Z)(o().string,"Use the `uncheckedCheckboxIcon` prop instead"),checkedRadioIconChildren:(0,E.Z)(o().node,"Use the `checkedRadioIcon` prop instead"),checkedRadioIconClassName:(0,E.Z)(o().string,"Use the `checkedRadioIcon` prop instead"),uncheckedRadioIconChildren:(0,E.Z)(o().node,"Use the `uncheckedRadioIcon` prop instead"),uncheckedRadioIconClassName:(0,E.Z)(o().string,"Use the `uncheckedRadioIcon` prop instead"),__superSecreteProp:o().bool},Br.defaultProps={checkedCheckboxIcon:r.createElement(ve,null,"check_box"),uncheckedCheckboxIcon:r.createElement(ve,null,"check_box_outline_blank"),checkedRadioIcon:r.createElement(ve,null,"radio_button_checked"),uncheckedRadioIcon:r.createElement(ve,null,"radio_button_unchecked")};var Ur=function(){var e=this;this._setInput=function(t){e._input=t},this._setControl=function(t){e._control=t},this._setContainer=function(t){e._container=t},this._getIcon=function(){var t=e.props,n=t.checkedIcon,i=t.uncheckedIcon,o=t.type,a=d(e.props,e.state,"checked");if(n||i)return a?n:i;var s,l=(a?"":"un")+"checked"+(((s=o)?1===s.length?s.toUpperCase():""+s.charAt(0).toUpperCase()+s.substring(1,s.length):s)+"Icon"),c=e.props[l+"ClassName"],u=e.props[l+"Children"];if(c||u)return r.createElement(ve,{iconClassName:c,inherit:!0},u);var p=e.props[l];return p?r.cloneElement(p,{inherit:!0}):null},this._handleKeyDown=function(t){var n=e.props;n.onKeyDown&&n.onKeyDown(t);var r=t.which||t.keyCode;(32===r||13===r&&n.changeOnEnter)&&e._input.click()},this._handleChange=function(t){var n=e.props,r=n.type,i=n.onChange,o=!d(e.props,e.state,"checked");i&&i("radio"===r?t.target.value:o,t),"undefined"===typeof e.props.checked&&e.setState({checked:o})}};const $r=Br;function Vr(e){for(var t=void 0,n=e;n&&n.parentNode;){if(n.classList)if(n.classList.contains("md-data-table"))t=n;else{if(n.classList.contains("md-data-table--responsive"))return n;if(n.classList.contains("md-data-table__scroll-wrapper"))return n.parentNode.parentNode;if(t)return t}n=n.parentNode}return null}var qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Zr(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Hr=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Zr(this,e.call.apply(e,[this].concat(o))),r._td=null,r._header=!1,r._handleMount=function(e){if(e){var t=Vr(e).querySelector("thead"),n=e.parentNode.rowIndex-(t?1:0);"TBODY"===e.parentNode.parentNode.tagName&&r.context.createCheckbox(n),r._td=e,r._header=t}else if(r._td){var i=r._td.parentNode.rowIndex;r.context.removeCheckbox(i-(r._header?1:0)),r._td=null,r._header=!1}},Zr(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.checked,n=e.index,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["checked","index"]),o=this.context,a=o.checkedIcon,s=o.uncheckedIcon,l=o.indeterminateIcon,c=o.indeterminate,d=o.header,p=o.footer,h=o.rowId,f=o.baseName,m=o.checkboxHeaderLabel,g=o.checkboxLabelTemplate,y=d?"th":"td",v=void 0;v=d?m:"function"===typeof g?g(n):g.replace(/{{row}}/g,n);var b=r.createElement($r,qr({},i,{id:h,name:f+"-checkbox",type:"checkbox",checked:t,checkedCheckboxIcon:a,uncheckedCheckboxIcon:d&&c?l:s,"aria-label":v})),_=d&&this.context.fixedHeader,w=p&&this.context.fixedFooter;return _&&(b=r.createElement("div",{className:u()("md-table-column__fixed",{"md-table-column__fixed--header":_,"md-table-column__fixed--footer":w})},r.cloneElement(b,{className:u()({"md-table-checkbox--header":d,"md-table-checkbox--footer":p})}))),r.createElement(y,{className:u()("md-table-checkbox",{"md-table-column--fixed":_}),scope:d?"col":void 0,ref:this._handleMount},b)},t}(r.Component);Hr.propTypes={index:o().number,checked:o().bool},Hr.contextTypes={rowId:o().oneOfType([o().number,o().string]).isRequired,baseName:o().string.isRequired,indeterminate:o().bool,checkedIcon:o().element,uncheckedIcon:o().element,indeterminateIcon:o().element,checkboxHeaderLabel:o().string.isRequired,checkboxLabelTemplate:o().oneOfType([o().func,o().string]).isRequired,createCheckbox:o().func.isRequired,removeCheckbox:o().func.isRequired,header:o().bool,footer:o().bool,fixedHeader:o().bool.isRequired,fixedFooter:o().bool.isRequired};const Gr=Hr;var Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Yr(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Kr=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n,r));return i._handleMouseOver=function(e){if(i.props.onMouseOver&&i.props.onMouseOver(e),!i.context.header){for(var t=e.target;t&&t.parentNode;){if(t.classList&&i._ignoreHoverState(t.classList))return void i.setState({hover:!1});t=t.parentNode}i.setState({hover:!0})}},i._handleMouseLeave=function(e){i.props.onMouseLeave&&i.props.onMouseLeave(e),i.context.header||i.setState({hover:!1})},i._handleCheckboxClick=function(e,t){var n=i._row.rowIndex;i.props.onCheckboxClick&&i.props.onCheckboxClick(n,e,t),i.context.toggleSelectedRow(n,i.context.header,t)},i._setRow=function(e){i._row=e},i.state={hover:!1},i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this.context,t=e.baseId,n=Yr(e,["baseId"]),r=t+"-"+(this._row?this._row.rowIndex:null);return Wr({},n,{rowId:n.header?t+"-toggle-all":r})},t.prototype._ignoreHoverState=function(e){return e.contains("md-list--menu")||e.contains("md-edit-dialog")},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.children,o=t.selected,a=t.selectable,s=(t.onCheckboxClick,t.autoAdjust,Yr(t,["className","children","selected","selectable","onCheckboxClick","autoAdjust"])),l=this.state.hover,c=void 0;("undefined"!==typeof a?a:!this.context.plain&&this.context.selectableRows)&&(c=r.createElement(Gr,{key:"checkbox",checked:o,onChange:this._handleCheckboxClick,index:this._row?this._row.rowIndex:null}));var p=r.Children.count(i)-1,h=r.Children.map(r.Children.toArray(i),(function(t,n){var i=t.props.adjusted;return"undefined"===typeof i&&(i=n!==p&&void 0),(0,r.cloneElement)(t,{cellIndex:n+(c?1:0),header:d(t.props,e.context,"header"),adjusted:i})}));return r.createElement("tr",Wr({},s,{ref:this._setRow,className:u()("md-table-row",n,{"md-table-row--hover":l,"md-table-row--active":!this.context.header&&o}),onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave}),c,h)},t}(r.Component);Kr.propTypes={style:o().object,className:o().string,children:o().oneOfType([o().element,o().arrayOf(o().element),o().node]).isRequired,onClick:o().func,onCheckboxClick:o().func,onMouseOver:o().func,onMouseLeave:o().func,selected:o().bool,selectable:o().bool,autoAdjust:(0,E.Z)(o().bool,"Manually specify `grow` on one of the columns instead")},Kr.contextTypes=br,Kr.childContextTypes=Pr;const Xr=Kr;var Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Qr={header:{scope:"col"},noop:{}},ei=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,i=t.fixedStyle,o=t.fixedClassName,a=t.numeric,s=t.header,l=t.children,c=t.sorted,p=t.sortIcon,h=t.tooltip,f=t.selectColumnHeader,m=t.adjusted,g=t.grow,y=t.sortIconBefore,v=(t.plain,t.scope,t.cellIndex,t.sortIconChildren),b=t.sortIconClassName,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","fixedStyle","fixedClassName","numeric","header","children","sorted","sortIcon","tooltip","selectColumnHeader","adjusted","grow","sortIconBefore","plain","scope","cellIndex","sortIconChildren","sortIconClassName"]),w="boolean"===typeof c,x=d(this.props,this.context,"plain"),k=s?"th":"td",C=d(this.props,Qr[s?"header":"noop"],"scope"),S=l,M=void 0;if(w){M=c?"ascending":"descending";var T=r.Children.only(be(b,v,p));S=r.createElement(An,{label:l,iconBefore:y},r.cloneElement(T,{className:I({flipped:!c},T.props.className)}))}var E=s&&this.context.fixedHeader,O=this.context.footer&&this.context.fixedFooter,L=E||O,R=P({text:!s,hint:s},{"md-table-column--relative":h,"md-table-column--select-field":f}),j=u()(((e={"md-table-column--header":s,"md-table-column--data":!s&&!x,"md-table-column--plain":!s&&x,"md-table-column--adjusted":m&&!g&&!f,"md-table-column--grow":g,"md-table-column--sortable md-pointer--hover":w})[R]=!L,e),n);return L&&(S=r.createElement("div",{className:u()("md-table-column__fixed",{"md-table-column__fixed--header":E,"md-table-column__fixed--footer":O})},r.createElement("div",{style:i,className:u()(R,j,"md-table-column__fixed--flex",{"md-table-column__fixed--flex-right":a},o)},h,S))),r.createElement(k,Jr({"aria-sort":M},_,{scope:C,className:u()("md-table-column",{"md-table-column--fixed":L,"md-text-left":!a&&!L,"md-text-right":a&&!L},j)}),!E&&!O&&h,S)},t}(r.PureComponent);ei.propTypes={style:o().object,className:o().string,fixedStyle:o().object,fixedClassName:o().string,children:o().node,sorted:o().bool,sortIcon:o().element,sortIconBefore:o().bool,numeric:o().bool,adjusted:o().bool,grow:o().bool,selectColumnHeader:o().bool,header:o().bool.isRequired,tooltipLabel:o().node,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),tooltip:o().node,plain:o().bool,scope:o().oneOf(["row","col"]),cellIndex:o().number,sortIconChildren:(0,E.Z)(o().node,"Use the `sortIcon` prop instead"),sortIconClassName:(0,E.Z)(o().string,"Use the `sortIcon` prop instead")},ei.defaultProps={header:!1,adjusted:!0,sortIcon:r.createElement(ve,null,"arrow_upward"),sortIconBefore:!0},ei.contextTypes={plain:o().bool,footer:o().bool,fixedHeader:o().bool,fixedFooter:o().bool};const ti=Vn(ei);var ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ri(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var ii=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ri(this,e.call.apply(e,[this].concat(o))),r.state={transition:null},r._timeout=null,r._transitionNewValue=function(){var e=r.props,t=e.transitionTime,n=e.transitionName;r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r._timeout=setTimeout((function(){r._timeout=null,r.setState({transition:null})}),t),r.setState({transition:r.state.transition+" "+n+"-enter-active"})}),X),r.setState({transition:n+"-enter"})},ri(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this._transitionNewValue()},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.className,i=e.name,o=e.value,a=e.label,s=e.placeholder,l=e.active,c=e.activeLabel,d=e.error,p=e.disabled,h=e.required,f=e.toolbar,m=e.below,g=e.lineDirection,y=e.dropdownIcon,v=e.iconChildren,b=e.iconClassName,_=(e.transitionName,e.transitionTime,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","className","name","value","label","placeholder","active","activeLabel","error","disabled","required","toolbar","below","lineDirection","dropdownIcon","iconChildren","iconClassName","transitionName","transitionTime"])),w=this.state.transition,x=void 0;m||f||(x=r.createElement(Yt,{key:"text-divider",active:l,error:d,lineDirection:g,className:"md-divider--select-field"}));var k=c;c||0===c||(k=(!a||l)&&s||"");var C=!!c||0===c,S=y;return(b||v)&&(S=r.createElement(ve,{iconClassName:b},v)),S=r.cloneElement(S,{disabled:p}),r.createElement(se,ni({},_,{id:t+"-toggle",role:"listbox",disabled:p,component:Cn,zDepth:m&&l?1:0,inkDisabled:!m,className:u()("md-select-field",P({disabled:p,hint:!C&&s,text:C}),n)}),r.createElement(An,{label:k,labelClassName:w,className:u()("md-text-field",{"md-text-field--margin":!m&&!a,"md-text-field--floating-margin":a,"md-text-field--toolbar":f&&!m,"md-select-field--text-field":!m,"md-select-field--btn":m})},S),x,r.createElement("input",{key:"value",type:"hidden",id:t,name:i,value:o,required:h,disabled:p}))},t}(r.PureComponent);ii.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,name:o().string,value:o().oneOfType([o().number,o().string]).isRequired,disabled:o().bool,required:o().bool,label:o().node,placeholder:o().string,active:o().bool,activeLabel:o().node,below:o().bool,error:o().bool,toolbar:o().bool,dropdownIcon:o().element,iconClassName:o().string,iconChildren:o().node,transitionName:o().string.isRequired,transitionTime:o().number.isRequired,lineDirection:Yt.propTypes.lineDirection},ii.defaultProps={transitionName:"md-drop",transitionTime:300};const oi=ii;var ai=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var si=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.className,o=e.inputStyle,a=e.inputClassName,s=e.required,l=e.disabled,c=e.active,d=e.error,p=e.errorText,h=e.helpText,f=e.helpOnFocus,m=e.visible,g=e.activeLabel,y=(e.label,e.placeholder,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","style","className","inputStyle","inputClassName","required","disabled","active","error","errorText","helpText","helpOnFocus","visible","activeLabel","label","placeholder"])),v=this.props,b=v.label,_=v.placeholder;return s&&(b&&(b=Tt(b,"*")),_&&!b&&(_=Tt(_,"*"))),r.createElement("div",{style:n,className:u()("md-select-field__toggle",i)},r.createElement(It,{label:b,htmlFor:t,active:c||m,error:d,floating:Mt(g)||c||m,disabled:l}),r.createElement(oi,ai({},y,{id:t,style:o,className:a,label:b,placeholder:_,activeLabel:g,active:c,error:d,disabled:l})),r.createElement(jt,{active:c||m,error:d,errorText:p,helpText:h,helpOnFocus:f,leftIcon:!1,rightIcon:!1}))},t}(r.PureComponent);si.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,inputStyle:o().object,inputClassName:o().string,activeLabel:o().node,value:o().oneOfType([o().number,o().string]),required:o().bool,disabled:o().bool,label:o().string,placeholder:o().string,active:o().bool,error:o().bool,errorText:o().node,helpText:o().node,helpOnFocus:o().bool,below:o().bool,visible:o().bool};const li=si;var ci="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var pi="aria-activedescendant",hi=function(e){function t(n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return fi.call(i),i.state=ui({error:!1,active:!1},i._getActive(n,{value:n.defaultValue}),{listProps:(r={role:"listbox",ref:i._scrollActiveIntoView},r[pi]=null,r),match:null,lastSearch:null,value:n.defaultValue,visible:n.defaultVisible}),i._items=[],i._activeItem=null,i._deleteKeys=i._getDeleteKeys(n),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._container=(0,a.findDOMNode)(this),this._field=this._container.querySelector(".md-select-field")},t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.itemLabel,r=t.itemValue;t.deleteKeys===e.deleteKeys&&n===e.itemLabel&&r===e.itemValue||(this._deleteKeys=this._getDeleteKeys(e)),this.props.value===e.value&&this.props.menuItems===e.menuItems||this.setState(this._getActive(e,this.state))},t.prototype._getItemPart=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="undefined"===typeof e?"undefined":ci(e);if("number"===i||"string"===i)return e;if("object"===i){var o=r?t:n,a=r?n:t;return"undefined"!==typeof e[o]?e[o]:e[a]}return""},t.prototype._getDeleteKeys=function(e){var t=e.itemLabel,n=e.itemValue,r=e.itemProps,i=e.deleteKeys,o=[t,n,r];return i?o.concat(Array.isArray(i)?i:[i]):o},t.prototype.render=function(){var e=this.props,n=e.id,i=e.style,o=e.className,a=e.listStyle,s=e.listClassName,l=e.toggleStyle,c=e.toggleClassName,p=e.menuItems,h=e.anchor,f=e.belowAnchor,m=e.fixedTo,g=e.position,y=e.xThreshold,v=e.yThreshold,b=e.listZDepth,_=e.listInline,w=e.listHeightRestricted,x=e.block,k=e.centered,C=e.sameWidth,S=e.fullWidth,M=e.repositionOnScroll,T=e.repositionOnResize,E=e.simplifiedMenu,P=e.minLeft,I=e.minRight,O=e.minBottom,L=e.fillViewportWidth,R=e.fillViewportHeight,j=e.menuTransitionName,D=e.menuTransitionEnterTimeout,A=e.menuTransitionLeaveTimeout,N=e.isOpen,F=(e.error,e.menuId,e.visible,e.itemLabel),z=e.itemValue,B=(e.itemProps,e.getItemProps,e.getActiveLabel),U=(e.saveListScrollTop,e.listScrollTopUpdate,e.defaultValue,e.defaultVisible,e.onClick,e.onKeyDown,e.onVisibilityChange,e.deleteKeys,e.stripActiveItem,e.keyboardMatchingTimeout,e.defaultOpen,e.initiallyOpen,e.onMenuToggle,e.stretchList,e.menuStyle,e.menuClassName,e.floatingLabel,e.noAutoAdjust,e.adjustMinWidth,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","style","className","listStyle","listClassName","toggleStyle","toggleClassName","menuItems","anchor","belowAnchor","fixedTo","position","xThreshold","yThreshold","listZDepth","listInline","listHeightRestricted","block","centered","sameWidth","fullWidth","repositionOnScroll","repositionOnResize","simplifiedMenu","minLeft","minRight","minBottom","fillViewportWidth","fillViewportHeight","menuTransitionName","menuTransitionEnterTimeout","menuTransitionLeaveTimeout","isOpen","error","menuId","visible","itemLabel","itemValue","itemProps","getItemProps","getActiveLabel","saveListScrollTop","listScrollTopUpdate","defaultValue","defaultVisible","onClick","onKeyDown","onVisibilityChange","deleteKeys","stripActiveItem","keyboardMatchingTimeout","defaultOpen","initiallyOpen","onMenuToggle","stretchList","menuStyle","menuClassName","floatingLabel","noAutoAdjust","adjustMinWidth"])),$=this.props,V=$.menuId,q=$.listId,Z=$.error;Z=Z||this.state.error,V||(V=n+"-menu"),q||(q=V+"-options");var H=this.state,G=H.listProps,W=H.active,Y=H.activeIndex,K=g===t.Positions.BELOW,X="undefined"!==typeof N?N:d(this.props,this.state,"visible"),J=d(this.props,this.state,"value"),Q="undefined"!==typeof C?C:K,ee=this.state.activeLabel;if("function"===typeof B){var te=Y>-1?p[Y]:null;ee=B({activeItem:te,activeIndex:Y,activeLabel:ee,activeValue:te?this._getItemPart(te,F,z):"",value:J,menuItems:p,field:this})}var ne=r.createElement(li,ui({},U,{id:n,style:l,className:c,visible:X,value:J,below:K,error:Z,active:W,activeLabel:ee,onClick:this._toggle,onFocus:this._handleFocus,onBlur:this._handleBlur}));return r.createElement(wt,{id:V,listId:q,style:i,className:u()("md-menu--select-field",o),listProps:G,listStyle:a,listClassName:s,toggle:ne,visible:X,onClose:this._close,onKeyDown:this._handleKeyDown,onClick:this._handleClick,simplified:E,anchor:h,belowAnchor:f,fixedTo:m,position:g,xThreshold:y,yThreshold:v,listZDepth:b,listInline:_,listHeightRestricted:w,sameWidth:Q,block:x,centered:k,fullWidth:S,minLeft:P,minRight:I,minBottom:O,fillViewportWidth:L,fillViewportHeight:R,repositionOnScroll:M,repositionOnResize:T,transitionName:j,transitionEnterTimeout:D,transitionLeaveTimeout:A},p.reduce(this._reduceItems,[]))},di(t,[{key:"value",get:function(){return d(this.props,this.state,"value")}}]),t}(r.PureComponent);hi.HorizontalAnchors=wt.HorizontalAnchors,hi.VerticalAnchors=wt.VerticalAnchors,hi.Positions=wt.Positions,hi.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),name:o().string,menuId:o().oneOfType([o().number,o().string]),listId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,listStyle:o().object,listClassName:o().string,toggleStyle:o().object,toggleClassName:o().string,inputStyle:o().object,inputClassName:o().string,defaultVisible:o().bool.isRequired,visible:b(o().bool,"onVisibilityChange","defaultVisible"),onVisibilityChange:o().func,menuItems:o().arrayOf(o().oneOfType([o().number,o().string,o().object,o().element])).isRequired,keyboardMatchingTimeout:o().number.isRequired,itemLabel:o().string.isRequired,itemValue:o().string.isRequired,itemProps:o().string.isRequired,getItemProps:o().func,getActiveLabel:o().func,saveListScrollTop:o().bool,listScrollTopUpdate:o().oneOfType([o().number,o().func]),defaultValue:o().oneOfType([o().number,o().string]).isRequired,value:b(o().oneOfType([o().number,o().string]),"onChange","defaultValue"),onChange:o().func,label:o().node,placeholder:o().string,disabled:o().bool,required:o().bool,error:o().bool,errorText:o().node,helpText:o().node,helpOnFocus:o().bool,onClick:o().func,onKeyDown:o().func,onFocus:o().func,onBlur:o().func,dropdownIcon:o().element,toolbar:o().bool,stripActiveItem:o().bool,transitionName:o().string.isRequired,transitionTime:o().number.isRequired,anchor:C,belowAnchor:C,position:T,fixedTo:S,listInline:o().bool,listZDepth:o().number,listHeightRestricted:o().bool,xThreshold:o().number,yThreshold:o().number,closeOnOutsideClick:o().bool,menuTransitionName:o().string,menuTransitionEnterTimeout:o().number,menuTransitionLeaveTimeout:o().number,block:o().bool,fullWidth:o().bool,centered:wt.propTypes.centered,sameWidth:wt.propTypes.sameWidth,deleteKeys:o().oneOfType([o().number,o().string,o().arrayOf(o().oneOfType([o().number,o().string]))]),repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,minLeft:wt.propTypes.minLeft,minRight:wt.propTypes.minLeft,minBottom:wt.propTypes.minBottom,fillViewportWidth:o().bool,fillViewportHeight:o().bool,lineDirection:o().oneOf(["left","center","right"]).isRequired,iconChildren:(0,E.Z)(o().node,"Use `dropdownIcon` instead"),iconClassName:(0,E.Z)(o().string,"Use `dropdownIcon` instead"),isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),defaultOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),initiallyOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),onMenuToggle:(0,E.Z)(o().func,"Use `onVisibilityChange` instead"),stretchList:(0,E.Z)(o().bool,"No longer valid after the changes to the `Menu` component. Possibly use `sameWidth` instead"),menuStyle:(0,E.Z)(o().object,"Use `style` instead"),menuClassName:(0,E.Z)(o().string,"Use `className` instead"),floatingLabel:(0,E.Z)(o().bool,"A select field can only have floating labels now. Only provide the `label` prop"),noAutoAdjust:(0,E.Z)(o().bool,"No longer valid to use since select fields are no longer text fields"),adjustMinWidth:(0,E.Z)(o().bool,"No longer valid to use since select fields are no longer text fields")},hi.defaultProps={anchor:{x:hi.HorizontalAnchors.INNER_LEFT,y:hi.VerticalAnchors.OVERLAP},fixedTo:wt.defaultProps.fixedTo,position:hi.Positions.TOP_LEFT,itemLabel:"label",itemValue:"value",itemProps:"getProps",dropdownIcon:r.createElement(ve,null,"arrow_drop_down"),lineDirection:"left",menuItems:[],defaultValue:"",defaultVisible:!1,keyboardMatchingTimeout:1e3,transitionName:"md-drop",transitionTime:300,repositionOnScroll:!0,repositionOnResize:!1,saveListScrollTop:!1,listScrollTopUpdate:0};var fi=function(){var e=this;this._getActiveItemLabel=function(t,n,r,i){var o=e._getItemPart(t,r,i),a=e._getItemPart(t,r,i,!0);return o===n||o===parseFloat(n)?a:""},this._getActive=function(t,n){var r="",i=-1,o=d(t,n,"value");if(Mt(o)){var a=t.menuItems,s=t.itemLabel,l=t.itemValue;a.some((function(t,n){var a=Mt(r=e._getActiveItemLabel(t,o,s,l));return a&&(i=n),a}))}return{activeLabel:r,activeIndex:i}},this._attemptItemFocus=function(t){if(-1!==t){var n=e._items[t];n&&n.focus()}},this._setListItem=function(t){if(t){var n;if(t.props.active)if(e._activeItem=(0,a.findDOMNode)(t),t.focus(),!e.state.listProps[pi])e.setState({listProps:ui({},e.state.listProps,(n={},n[pi]=e.props.id+"-options-active",n))});e._items.push(t)}},this._scrollActiveIntoView=function(t){var n=e._activeItem,r=e.props;if(null!==t){if(n&&!r.saveListScrollTop){var i=(0,a.findDOMNode)(t),o=n.offsetTop,s=o>8?o:0,l=r.listScrollTopUpdate;if(l){var c=e.state.activeIndex,u=e._items;s-="function"===typeof l?l({listRef:t,listNode:i,listScrollTop:i.scrollTop,newListScrollTop:s,listItems:u,activeItemRef:u[c],activeItemNode:n,activeIndex:c,field:e}):l}i.scrollTop=s}}else e._items=[]},this._toggle=function(t){var n=e.props,r=n.isOpen,i=n.onVisibilityChange,o=n.onMenuToggle,a=!("undefined"!==typeof r?r:d(e.props,e.state,"visible"));(o||i)&&(o||i)(a,t);var s=void 0;"undefined"===typeof r&&"undefined"===typeof e.props.visible&&(s={visible:a}),s&&e.setState(s)},this._close=function(t){e.props.onVisibilityChange&&e.props.onVisibilityChange(!1,t),"keydown"===t.type&&e._field&&e._field.focus();var n=void 0;e.props.required&&!d(e.props,e.state,"value")&&(n={error:!0}),"undefined"===typeof e.props.visible&&((n=n||{}).visible=!1),n&&e.setState(n)},this._handleClick=function(t){e.props.onClick&&e.props.onClick(t);var n=e.props.isOpen;if(("undefined"!==typeof n?n:d(e.props,e.state,"visible"))&&e._container)for(var r=t.target;e._container.contains(r);){if(r.dataset&&"undefined"!==typeof r.dataset.id){var i=r.dataset,o=i.id,a=i.value;return void e._selectItem(parseInt(o,10),a,t)}r=r.parentNode}},this._selectItem=function(t,n,r){var i=e.props,o=i.required,a=i.menuItems,s=i.itemLabel,l=i.itemValue,c=i.onChange,u=i.id,p=i.name,h=e._getItemPart(a[t],s,l);d(e.props,e.state,"value")!==h&&c&&c(h,t,r,{id:u,name:p,value:h});var f=ui({},e._getActive({value:h,itemLabel:s,itemValue:l,menuItems:a},{}),{error:!!o&&!h&&0!==h});"undefined"===typeof e.props.value&&(f.value=h),e.setState(f)},this._handleFocus=function(t){e.props.onFocus&&e.props.onFocus(t),e.setState({active:!0})},this._handleBlur=function(t){e.props.onBlur&&e.props.onBlur(t);var n=e.state.error,r=e.props,i=r.isOpen,o=r.required,a="undefined"!==typeof i?i:d(e.props,e.state,"visible"),s=d(e.props,e.state,"value");o&&!a&&(n=!s),e.setState({active:!1,error:n})},this._handleKeyDown=function(t){var n=e.props,r=n.isOpen,i=n.onKeyDown;i&&i(t);var o=t.which||t.keyCode,a=38===o,s=40===o,l="undefined"!==typeof r?r:d(e.props,e.state,"visible");if(a||s){if(t.preventDefault(),!l)return void e._toggle(t);e._advanceFocus(a)}else{if(!l&&L(t,e._toggle,!0,!0))return;if(l&&(o===w||9===o))return e._field&&o===w&&e._field.focus(),void e._close(t);e._selectItemByLetter(o,t)}},this._advanceFocus=function(t){var n=e.props,r=n.position,i=n.stripActiveItem,o=e.state.activeIndex,a=r===hi.Positions.BELOW,s=Mt(d(e.props,e.state,"value")),l=("undefined"!==typeof i?i:a)&&s,c=e._items.length-(l?0:1);if(!(t&&o<=0||!t&&o>=c)){var u=Math.max(-1,Math.min(c,o+(t?-1:1)));u!==o&&(e._attemptItemFocus(u-(l?1:0)),e.setState({activeIndex:u}))}},this._selectItemByLetter=function(t,n){var r=String.fromCharCode(t),i=r&&r.match(/[A-Za-z0-9-_ ]/),o=_n(t,96,105);if(_n(t,48,57)||o||i){var a=i?r:String(t-(o?96:48));e._matchingTimeout&&clearTimeout(e._matchingTimeout),e._matchingTimeout=setTimeout((function(){e._matchingTimeout=null,e.setState({match:null,lastSearch:null})}),e.props.keyboardMatchingTimeout),e._selectFirstMatch(a,n)}},this._selectFirstMatch=function(t,n){var r=e.props,i=r.menuItems,o=r.itemLabel,a=r.itemValue,s=r.isOpen,l=r.onChange,c=r.id,u=r.name,p=e.state.lastSearch,h=-1,f=(""+(p||"")+t).toUpperCase();i.some((function(t,n){if(t&&"object"===("undefined"===typeof t?"undefined":ci(t))&&t.disabled)return!1;var r=String(e._getItemPart(t,o,a,!0));return r&&0===r.toUpperCase().replace(/\s/g,"").indexOf(f)&&(h=n),h>-1}));var m={match:h,lastSearch:f};if(-1!==h){var g=i[h];if(m.activeLabel=e._getItemPart(g,o,a,!0),m.activeIndex=h,"undefined"!==typeof s?s:d(e.props,e.state,"visible"))m.match!==e.state.match&&e._attemptItemFocus(m.activeIndex);else{var y=e._getItemPart(g,o,a);y!==d(e.props,e.state,"value")&&l&&l(y,h,n,{id:c,name:u,value:y}),"undefined"===typeof e.props.value&&(m.value=y)}}e.setState(m)},this._reduceItems=function(t,n,i){if(null===n)return t;if(r.isValidElement(n))return t.push(n),t;var o=e.props,a=o.getItemProps,s=o.id,l=o.itemLabel,c=o.itemProps,u=o.itemValue,h=o.position,f=o.stripActiveItem,m=h===hi.Positions.BELOW,g=d(e.props,e.state,"value"),y=e._getItemPart(n,l,u),v=e._getItemPart(n,l,u,!0),b=y===g||y===parseFloat(g);if(!(("undefined"!==typeof f?f:m)&&b)){var _="object"===("undefined"===typeof n?"undefined":ci(n)),w=_?p(n,e._deleteKeys):{},x=w.disabled||!1;w.ref=x?null:e._setListItem,w.id=b?s+"-options-active":null,w.active=b,w.tabIndex=-1,w.primaryText=v,w.key=n.key||y,w.role="option",w["data-id"]=x?null:i,w["data-value"]=x?null:y;var k=_&&n[c]||a;"function"===typeof k&&Object.assign(w,k({index:i,active:b,disabled:x,itemValue:y,value:g,props:w,item:n,field:e})),t.push(r.createElement(St,w))}return t}};const mi=hi;var gi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var yi=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n,r));vi.call(i);var o="undefined"!==typeof n.page,a="undefined"!==typeof n.rowsPerPage,s=a?n.rowsPerPage:n.defaultRowsPerPage,l=o?n.page:n.defaultPage;return i.state={start:(l-1)*s,controlsMarginLeft:0},o||(i.state.page=l),a||(i.state.rowsPerPage=n.defaultRowsPerPage),i._table=null,i._ticking=!1,i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.rowsPerPage;if(t.page!==e.page||n!==e.rowsPerPage){var r=d(e,this.state,"rowsPerPage"),i=d(e,this.state,"page");this.setState({start:(i-1)*r})}},t.prototype.render=function(){var e=this.state,t=e.controlsMarginLeft,n=e.start,i=this.props,o=i.className,a=i.selectFieldStyle,s=i.selectFieldClassName,l=i.selectFieldInputStyle,c=i.selectFieldInputClassName,p=i.rows,h=i.rowsPerPageLabel,f=i.rowsPerPageItems,m=i.incrementIcon,g=i.decrementIcon,y=i.simplifiedMenu,v=i.paginationLabel,b=i.incrementIconChildren,_=i.incrementIconClassName,w=i.decrementIconChildren,x=i.decrementIconClassName,k=(i.id,i.incrementId,i.decrementId,i.onPagination,i.rowsPerPage,i.page,i.defaultPage,i.defaultRowsPerPage,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["className","selectFieldStyle","selectFieldClassName","selectFieldInputStyle","selectFieldInputClassName","rows","rowsPerPageLabel","rowsPerPageItems","incrementIcon","decrementIcon","simplifiedMenu","paginationLabel","incrementIconChildren","incrementIconClassName","decrementIconChildren","decrementIconClassName","id","incrementId","decrementId","onPagination","rowsPerPage","page","defaultPage","defaultRowsPerPage"])),C=this.context.baseId,S=d(this.props,this.state,"rowsPerPage"),M=this.props,T=M.id,E=M.incrementId,P=M.decrementId;T||(T=C+"-pagination"),E||(E=T+"-increment-btn"),P||(P=T+"-decrement-btn");var I=v(n+1,Math.min(p,n+S),p);return r.createElement(Er,gi({},k,{className:u()("md-table-footer--pagination",o)}),r.createElement(ht,{watchWidth:!0,component:"tr",onResize:this._throttledPosition}),r.createElement(ht,{watchWidth:!0,component:"tr",target:this._table,onResize:this._throttledPosition}),r.createElement("tr",null,r.createElement(ti,{colSpan:"100%"},r.createElement("div",{ref:this._setControls,className:"md-table-pagination md-table-pagination--controls md-text",style:{marginLeft:t}},r.createElement("span",{className:"md-table-pagination__label"},h),r.createElement(mi,{id:T,menuItems:f,position:mi.Positions.BELOW,style:a,className:s,inputStyle:l,inputClassName:u()("md-select-field--pagination",c),value:S,onChange:this._setRowsPerPage,simplifiedMenu:y}),r.createElement("span",{className:"md-table-pagination--label"},I),r.createElement(Wn,{id:P,icon:!0,onClick:this._decrement,disabled:0===n,iconEl:be(x,w,g)}),r.createElement(Wn,{id:E,icon:!0,onClick:this._increment,disabled:n+S>=p,iconEl:be(_,b,m)})),r.createElement("div",{className:"md-table-pagination"}))))},t}(r.PureComponent);yi.propTypes={id:o().oneOfType([o().number,o().string]),incrementId:o().oneOfType([o().number,o().string]),decrementId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,selectFieldStyle:o().object,selectFieldClassName:o().string,selectFieldInputStyle:o().object,selectFieldInputClassName:o().string,simplifiedMenu:o().bool,onPagination:o().func.isRequired,rowsPerPage:o().number,page:o().number,defaultPage:o().number.isRequired,defaultRowsPerPage:o().number.isRequired,rowsPerPageLabel:o().node.isRequired,rowsPerPageItems:o().arrayOf(o().number).isRequired,rows:o().number.isRequired,incrementIcon:o().element,decrementIcon:o().element,paginationLabel:o().func,incrementIconChildren:(0,E.Z)(o().node,"Use the `incrementIcon` prop instead"),incrementIconClassName:(0,E.Z)(o().string,"Use the `incrementIcon` prop instead"),decrementIconChildren:(0,E.Z)(o().node,"Use the `decrementIcon` prop instead"),decrementIconClassName:(0,E.Z)(o().string,"Use the `decrementIcon` prop instead")},yi.contextTypes={baseId:o().oneOfType([o().number,o().string]).isRequired,fixedFooter:o().bool},yi.defaultProps={defaultPage:1,defaultRowsPerPage:10,rowsPerPageLabel:"Rows per page:",rowsPerPageItems:[10,20,30,40,50,100],incrementIcon:r.createElement(ve,null,"keyboard_arrow_right"),decrementIcon:r.createElement(ve,null,"keyboard_arrow_left"),simplifiedMenu:!1,paginationLabel:function(e,t,n){return e+"-"+t+" of "+n}};var vi=function(){var e=this;this._setControls=function(t){e._controls=t,e._table=Vr(t),e._table&&e.context.fixedFooter&&e._table.addEventListener("scroll",e._throttledPosition)},this._position=function(){if(e._table){var t=e.context.fixedFooter,n=e._table,r=n.offsetWidth,i=n.scrollLeft,o=r-e._controls.offsetWidth;t&&(o+=i),e.setState({controlsMarginLeft:Math.max(24,o)})}},this._throttledPosition=function(){e._ticking||requestAnimationFrame((function(){e._ticking=!1,e._position()})),e._ticking=!0},this._increment=function(){var t=e.props,n=t.rows,r=t.onPagination,i=e.state.start,o=d(e.props,e.state,"rowsPerPage"),a=d(e.props,e.state,"page"),s=n-n%o,l=Math.min(i+o,s),c=a+1;r(l,o,c),"undefined"===typeof e.props.page&&e.setState({start:l,page:c})},this._decrement=function(){var t=e.state.start,n=d(e.props,e.state,"page"),r=d(e.props,e.state,"rowsPerPage"),i=Math.max(0,t-r),o=n-1;e.props.onPagination(i,r,o),"undefined"===typeof e.props.page&&e.setState({start:i,page:o})},this._setRowsPerPage=function(t){e.props.onPagination(0,t,1);var n=void 0;"undefined"===typeof e.props.rowsPerPage&&(n={rowsPerPage:t}),"undefined"===typeof e.props.page&&((n=n||{}).start=0),n&&e.setState(n)}};const bi=yi;var _i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function wi(e,t){if(e){var n="undefined"===typeof e?"undefined":_i(e);"function"===n?e(t):"object"===n&&(e.current=t)}}var xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ki(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ci=["button","textarea","select"].reduce((function(e,t){return e+","+t+":not([disabled])"}),'[href],[tabindex]:not([tabindex="-1"]),input:not([disabled]):not([type="hidden"])'),Si=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=ki(this,e.call.apply(e,[this].concat(o))),r._enableFocusTrap=function(){window.addEventListener("keydown",r._handleKeyDown,!0)},r._disableFocusTrap=function(){window.removeEventListener("keydown",r._handleKeyDown,!0)},r._attemptInitialFocus=function(){if(r._container){var e=r.props.initialFocus,t=e?document.getElementById(e)||r._container.querySelector(e):r._focusables[0];!t&&e&&(" The `initialFocus` did not match a document's `id` or was an invalid ","`querySelector` for the container. `initialFocus`: `"+e+"`. ","If this was supposed to be an `id`, make sure to prefix with the `#` symbol."),t&&t.focus()}},r._containFocus=function(e){var t=r.props;if(wi(t.componentRef,e),null===e)return r._container=null,r._disableFocusTrap(),void wi(t.containerRef,null);var n=t.focusOnMount,i=t.containFocus;r._container=(0,a.findDOMNode)(e),wi(t.containerRef,r._container),r._focusables=[].slice.call(r._container.querySelectorAll(Ci)),n&&r._attemptInitialFocus(),i&&r._enableFocusTrap()},r._handleKeyDown=function(e){if(r._shifted=e.shiftKey,function(e,t){var n=e.which||e.keyCode;return 9===n||t&&-1!==t.indexOf(n)}(e,r.props.additionalFocusKeys))if(1!==r._focusables.length){var t=e.target,n=e.shiftKey,i=r._focusables,o=i[0],a=i.slice(1),s=a[a.length-1];n&&t===o?(e.preventDefault(),s.focus()):n||t!==s||(e.preventDefault(),o.focus())}else e.preventDefault()},ki(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.containFocus!==e.containFocus&&(e.containFocus?(this._enableFocusTrap(),this._attemptInitialFocus()):this._disableFocusTrap())},t.prototype.componentDidUpdate=function(){this.props.containFocus&&this._container&&(this._focusables=[].slice.call(this._container.querySelectorAll(Ci)))},t.prototype.componentWillUnmount=function(){this.props.containFocus&&this._disableFocusTrap()},t.prototype.getContainer=function(){return this._container},t.prototype.render=function(){var e=this.props,t=e.component,n=(e.componentRef,e.containerRef,e.initialFocus,e.focusOnMount,e.containFocus,e.additionalFocusKeys,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","componentRef","containerRef","initialFocus","focusOnMount","containFocus","additionalFocusKeys"]));return r.createElement(t,xi({},n,{ref:this._containFocus}))},t}(r.PureComponent);Si.propTypes={component:o().oneOfType([o().string,o().func,o().object]).isRequired,componentRef:o().oneOfType([o().func,o().object]),containerRef:o().oneOfType([o().func,o().object]),style:o().object,className:o().string,children:o().node,initialFocus:o().string,focusOnMount:o().bool,additionalFocusKeys:o().arrayOf(o().number),containFocus:o().bool},Si.defaultProps={component:"div",containFocus:!0};const Mi=Si;var Ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ei=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]);return t?r.createElement("h2",Ti({},i,{className:u()("md-title md-title--dialog",n)}),t):null},t}(r.PureComponent);Ei.propTypes={id:o().oneOfType([o().number,o().string]),className:o().string,children:o().node};const Pi=Ei;var Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Oi(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Li(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ri=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Li(this,e.call.apply(e,[this].concat(o))),r.state={stacked:!1},r._setContainer=function(e){if(null!==e){r._container=e;var t=(r._container.offsetWidth-24)/2,n=!1;Array.prototype.slice.call(r._container.querySelectorAll(".md-btn")).some((function(e){var r=e.offsetWidth;return n=r>t})),r.setState({stacked:n})}},r._generateActions=function(){var e=r.props.actions;return e?Array.isArray(e)?e.map(r._toElement):r._toElement(e):null},Li(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._toElement=function(e,t){if((0,r.isValidElement)(e)){var n=r.Children.only(e);return(0,r.cloneElement)(e,{key:n.key||t,className:u()("md-btn--dialog",n.props.className)})}var i=e.label,o=e.children,a=Oi(e,["label","children"]);return r.createElement(Wn,Ii({key:t,flat:!0},a,{className:u()("md-btn--dialog",e.className)}),i||o)},t.prototype.render=function(){var e=this.props,t=e.actions,n=e.className,i=e.children,o=e.stacked,a=Oi(e,["actions","className","children","stacked"]);if(!i&&(!t||Array.isArray(t)&&!t.length))return null;var s=this.props.stacked,l="undefined"!==typeof o;return l||(s=this.state.stacked),r.createElement("footer",Ii({},a,{className:u()("md-dialog-footer",{"md-dialog-footer--inline":!s,"md-dialog-footer--stacked":s},n),ref:l?null:this._setContainer}),this._generateActions(),i)},t}(r.PureComponent);Ri.propTypes={style:o().object,className:o().string,children:o().node,actions:o().oneOfType([o().element,o().object,o().arrayOf(o().oneOfType([o().element,o().object]))]),stacked:o().bool};const ji=Ri;var Di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ai=["style","height","width","contentStyle"],Ni=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));Fi.call(r);var i=n.height,o=n.width,a=n.style;return(i||o)&&(a=Di({height:i,width:o},a=a||{})),r.state={styles:a,contentStyles:n.contentStyle,contentPadded:!1},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{renderNode:this._renderNode}},t.prototype.componentWillMount=function(){var e=this.props,t=e.pageX,n=e.pageY;t&&n&&this.setState({styles:this._getStyles(this.props)})},t.prototype.componentDidMount=function(){this.props.onOpen&&this.props.onOpen()},t.prototype.componentWillReceiveProps=function(e){var t=this;Ai.some((function(n){return e[n]!==t.props[n]}))&&this.setState({styles:this._getStyles(e),contentStyles:Di({},this.state.contentStyles,e.contentStyle)})},t.prototype.componentWillUnmount=function(){this.props.onLeave&&this.props.onLeave()},t.prototype.render=function(){var e=this.state,t=e.contentPadded,n=e.styles,i=e.contentStyles,o=this.props,a=o.id,s=o.className,l=o.titleStyle,c=o.titleClassName,d=o.footerStyle,p=o.footerClassName,h=o.contentClassName,f=o.title,m=o.contentComponent,g=o.contentProps,y=o.actions,v=o.children,b=o.fullPage,_=o.centered,w=o.autopadContent,x=o.paddedContent,k=o.autosizeContent,C=o.stackedActions,S=(o.style,o.contentStyle,o.pageX,o.pageY,o.containerX,o.containerY,o.onOpen,o.onLeave,o.height,o.width,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["id","className","titleStyle","titleClassName","footerStyle","footerClassName","contentClassName","title","contentComponent","contentProps","actions","children","fullPage","centered","autopadContent","paddedContent","autosizeContent","stackedActions","style","contentStyle","pageX","pageY","containerX","containerY","onOpen","onLeave","height","width"])),M=this.props["aria-labelledby"],T=a+"-title";!M&&f&&(M=T);var E="undefined"!==typeof x,P=b?v:[r.createElement(Pi,{key:"title",id:T,style:l,className:c},f),r.createElement(m,Di({ref:!E&&w?this._setContent:null,key:"content"},g,{style:i,className:u()("md-dialog-content",{"md-dialog-content--padded":E?x:t},h)}),k?r.createElement(ht,{watchHeight:!0,watchWidth:!0,onResize:this._handleContentResize}):null,v),r.createElement(ji,{key:"footer",style:d,className:p,actions:y,stacked:C})];return r.createElement(Cn,Di({},S,{id:a,component:Mi,ref:this._setRenderNode,style:n,className:u()("md-dialog",{"md-dialog--full-page":b,"md-dialog--centered":_},s),role:"dialog","aria-labelledby":M}),P)},t}(r.PureComponent);Ni.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),"aria-describedby":v(o().oneOfType([o().number,o().string]),"title","aria-labelledby","aria-label"),"aria-labelledby":o().oneOfType([o().number,o().string]),"aria-label":o().string,style:o().object,className:o().string,titleStyle:o().object,titleClassName:o().string,footerStyle:o().object,footerClassName:o().string,contentStyle:o().object,contentClassName:o().string,contentComponent:o().oneOfType([o().string,o().func,o().object]).isRequired,contentProps:o().object,title:o().node,children:o().node,actions:o().oneOfType([o().element,o().object,o().arrayOf(o().oneOfType([o().element,o().object]))]),additionalFocusKeys:Mi.propTypes.additionalFocusKeys,initialFocus:Mi.propTypes.initialFocus,focusOnMount:Mi.propTypes.focusOnMount,containFocus:Mi.propTypes.containFocus,pageX:o().number,pageY:o().number,containerX:o().number,containerY:o().number,fullPage:o().bool,zDepth:o().number.isRequired,onOpen:o().func,onLeave:o().func,centered:o().bool,paddedContent:o().bool,autopadContent:o().bool,autosizeContent:o().bool,height:o().oneOfType([o().number,o().string]),width:o().oneOfType([o().number,o().string]),stackedActions:o().bool},Ni.defaultProps={autopadContent:!0,autosizeContent:!0,contentComponent:"section",zDepth:5},Ni.childContextTypes={renderNode:o().object};var Fi=function(){var e=this;this._getStyles=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props,n=t.pageX,r=t.containerX,i=t.pageY,o=t.containerY,a=t.height,s=t.width,l=t.style;return Di({height:"undefined"!==typeof a?a:null,width:"undefined"!==typeof s?s:null,transformOrigin:n||i?n-r+"px "+(i-o)+"px":null},l)},this._setRenderNode=function(t){e._renderNode=(0,a.findDOMNode)(t)},this._setContent=function(t){if(null!==t){e._content=(0,a.findDOMNode)(t);var n=0===e._content.querySelectorAll(".md-list").length;e.setState({contentPadded:n})}},this._handleContentResize=function(t){var n=t.scrollHeight,r=t.el,i=r.style.maxHeight,o=r.parentNode;r.style.maxHeight="none";var a=e.props.title?o.querySelector(".md-title--dialog"):null,s=e.props.actions?o.querySelector(".md-dialog-footer"):null,l=o.offsetHeight-(a?a.offsetHeight:0)-(s?s.offsetHeight:0);if(r.style.maxHeight=i,l===n){var c=e.state.contentStyles&&e.state.contentStyles.maxHeight||null;c&&c!==n&&e.setState({contentStyles:e.props.contentStyle})}else e.setState({contentStyles:Di({maxHeight:l},e.props.contentStyle)})}};const zi=Ni;var Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ui=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.dialogStyle,i=e.dialogClassName,o=e.dialogContentStyle,a=e.dialogContentClassName,s=e.textFieldId,l=e.visible,c=e.header,d=e.onOpen,p=e.children,h=e.label,f=e.title,m=e.large,g=e.actions,y=e.placeholder,v=e.dialogZDepth,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","dialogStyle","dialogClassName","dialogContentStyle","dialogContentClassName","textFieldId","visible","header","onOpen","children","label","title","large","actions","placeholder","dialogZDepth"]),_=r.createElement(A,{className:u()("md-edit-dialog__label",{"md-edit-dialog__header":c},P({hint:y||c})),noFocusOutline:l,onClick:d,onFocus:d},h);return r.createElement(yt,Bi({},b,{id:t+"-layover",toggle:_,visible:l,block:!0,belowAnchor:null}),r.createElement(zi,{id:t,"aria-labelledby":m?void 0:s,style:n,className:u()("md-edit-dialog",P({background:!0,themeText:!1}),i),contentStyle:o,contentClassName:u()("md-edit-dialog__content",a),title:m?f:null,focusOnMount:!0,containFocus:!!m,paddedContent:!1,actions:m?g:null,zDepth:v},p))},t}(r.PureComponent);Ui.propTypes={id:o().oneOfType([o().number,o().string]),textFieldId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,dialogStyle:o().object,dialogClassName:o().string,dialogContentStyle:o().object,dialogContentClassName:o().string,children:o().node,onOpen:o().func.isRequired,onClose:o().func.isRequired,visible:o().bool.isRequired,label:o().oneOfType([o().number,o().string]).isRequired,placeholder:o().bool,title:o().node,large:o().bool,actions:zi.propTypes.actions,dialogZDepth:o().number,header:o().bool};const $i=Ui;function Vi(e){return e&&e.firstChild.firstChild.classList.contains("md-data-table__scroll-wrapper")?{x:e,y:e.firstChild.firstChild}:e}var qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Zi=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return Hi.call(r),r.state={visible:n.defaultVisible,value:n.defaultValue,cancelValue:n.defaultValue,actions:r._makeActions(n),cellIndex:void 0},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._column=(0,a.findDOMNode)(this),this._table=Vr(this._column),this._fixedTo=Vi(this._table);var e=this.props.cellIndex;if(!e&&0!==e){var t=[].slice.call(this._column.parentNode.querySelectorAll("th,td"));this.setState({cellIndex:t.indexOf(this._column)})}},t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.okLabel,r=t.okPrimary,i=t.okSecondary,o=t.okProps,a=t.cancelLabel,s=t.cancelPrimary,l=t.cancelSecondary,c=t.cancelProps;n===e.okLabel&&r===e.okPrimary&&i===e.okSecondary&&a===e.cancelLabel&&s===e.cancelPrimary&&l===e.cancelSecondary&&o===e.okProps&&c===e.cancelProps||this.setState({actions:this._makeActions(e)})},t.prototype.render=function(){var e=this.context.rowId,t=this.props,n=t.style,i=t.className,o=t.layoverStyle,a=t.layoverClassName,s=t.dialogStyle,l=t.dialogClassName,c=t.dialogContentStyle,p=t.dialogContentClassName,h=t.dialogZDepth,f=t.textFieldStyle,m=t.textFieldClassName,g=t.inputClassName,y=t.large,v=t.title,b=t.inline,_=t.inlineIcon,w=t.maxLength,x=t.label,k=t.placeholder,C=t.header,S=t.anchor,M=t.belowAnchor,T=t.fixedTo,E=t.animationPosition,I=t.xThreshold,O=t.yThreshold,L=t.centered,R=t.sameWidth,j=t.repositionOnScroll,D=t.repositionOnResize,A=t.transitionName,N=t.transitionEnterTimeout,F=t.transitionLeaveTimeout,z=t.tooltipLabel,B=t.tooltipDelay,U=t.tooltipPosition,$=t.onClick,V=t.onMouseDown,q=t.onMouseUp,Z=t.onTouchStart,H=t.onTouchEnd,G=t.onMouseEnter,W=t.onMouseOver,Y=t.onMouseLeave,K=t.onTouchMove,X=t.simplifiedDialog,J=t.minLeft,Q=t.minRight,ee=t.minBottom,te=t.noIcon,ne=t.inlineIconChildren,re=t.inlineIconClassName,ie=(t.id,t.dialogId,t.cellIndex,t.onOkClick,t.okLabel,t.okPrimary,t.okSecondary,t.okProps,t.onCancelClick,t.cancelLabel,t.cancelPrimary,t.cancelSecondary,t.cancelProps,t.okOnOutsideClick,t.defaultValue,t.adjusted,t.scrollIntoView,t.scrollIntoViewPadding,t.defaultVisible,t.visibleOnFocus,t.scrollThreshold,t.enforceMinWidth,t.transitionDuration,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","className","layoverStyle","layoverClassName","dialogStyle","dialogClassName","dialogContentStyle","dialogContentClassName","dialogZDepth","textFieldStyle","textFieldClassName","inputClassName","large","title","inline","inlineIcon","maxLength","label","placeholder","header","anchor","belowAnchor","fixedTo","animationPosition","xThreshold","yThreshold","centered","sameWidth","repositionOnScroll","repositionOnResize","transitionName","transitionEnterTimeout","transitionLeaveTimeout","tooltipLabel","tooltipDelay","tooltipPosition","onClick","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onMouseEnter","onMouseOver","onMouseLeave","onTouchMove","simplifiedDialog","minLeft","minRight","minBottom","noIcon","inlineIconChildren","inlineIconClassName","id","dialogId","cellIndex","onOkClick","okLabel","okPrimary","okSecondary","okProps","onCancelClick","cancelLabel","cancelPrimary","cancelSecondary","cancelProps","okOnOutsideClick","defaultValue","adjusted","scrollIntoView","scrollIntoViewPadding","defaultVisible","visibleOnFocus","scrollThreshold","enforceMinWidth","transitionDuration"])),oe=this.state,ae=oe.visible,se=oe.actions,le=d(this.props,this.state,"value"),ce=d(this.props,this.state,"cellIndex"),ue=this.props,de=ue.id,pe=ue.dialogId;pe||(pe=(de||e+"-"+ce)+"-edit-dialog"),de||(de=pe+"-field");var he=void 0;if(b&&!te){var fe=be(re,ne,_);fe&&(he=r.cloneElement(fe,{key:"edit-icon"}))}var me="number"===ie.type,ge=r.createElement(nn,qi({},ie,{ref:this._setField,style:f,className:u()({"md-edit-dialog__blocked-field":b},m),inputClassName:u()({"md-edit-dialog__header":C&&b,"md-text-right":me},P({hint:C&&b}),g),id:de,label:x,placeholder:k,value:le,onFocus:this._handleFocus,onChange:this._handleChange,onKeyDown:this._handleKeyDown,block:b,maxLength:ae?w:null,rightIcon:he})),ye=void 0;if(b)ye=ge;else{var ve=le||0===le?le:k||x;ye=r.createElement($i,{style:o,className:a,dialogStyle:s,dialogClassName:l,dialogContentStyle:c,dialogContentClassName:p,id:pe,textFieldId:de,visible:ae,onOpen:this._handleOpen,onClose:this._handleClose,label:ve,actions:se,large:y,title:v,header:C,placeholder:ve===k||ve===x,simplified:X,anchor:S,belowAnchor:M,animationPosition:E,xThreshold:I,yThreshold:O,centered:L,sameWidth:R,minLeft:J,minRight:Q,minBottom:ee,fixedTo:"undefined"!==typeof T?T:this._fixedTo,dialogZDepth:h,repositionOnScroll:j,repositionOnResize:D,transitionName:A,transitionEnterTimeout:N,transitionLeaveTimeout:F},ge)}return r.createElement(ti,{style:n,numeric:me,className:u()("md-edit-dialog-column",i),header:C,adjusted:!1,tooltipLabel:z,tooltipDelay:B,tooltipPosition:U,onClick:$,onMouseDown:V,onMouseUp:q,onTouchStart:Z,onTouchMove:K,onMouseEnter:G,onMouseOver:W,onMouseLeave:Y,onTouchEnd:H},ye)},t}(r.PureComponent);Zi.VerticalAnchors=yt.VerticalAnchors,Zi.HorizontalAnchors=yt.HorizontalAnchors,Zi.Positions=yt.Positions,Zi.propTypes={id:o().oneOfType([o().number,o().string]),dialogId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,layoverStyle:o().object,layoverClassName:o().string,dialogStyle:o().object,dialogClassName:o().string,dialogContentStyle:o().object,dialogContentClassName:o().string,dialogZDepth:o().number.isRequired,textFieldStyle:o().object,textFieldClassName:o().string,inputStyle:o().object,inputClassName:o().string,disabled:o().bool,inline:o().bool,inlineIcon:o().element,defaultValue:o().oneOfType([o().number,o().string]).isRequired,value:b(o().oneOfType([o().number,o().string]),"onChange","defaultValue"),onChange:o().func,onFocus:o().func,onKeyDown:o().func,label:o().node,placeholder:o().string,large:o().bool,title:o().node,maxLength:o().number,onOkClick:o().func,okLabel:o().node.isRequired,okPrimary:o().bool,okSecondary:o().bool,okProps:o().object,onCancelClick:o().func,cancelLabel:o().node.isRequired,cancelPrimary:o().bool,cancelSecondary:o().bool,cancelProps:o().object,okOnOutsideClick:o().bool,onOutsideClick:o().func,closeOnOutsideClick:o().bool,defaultVisible:o().bool,visibleOnFocus:o().bool,type:o().string,anchor:C,belowAnchor:C,animationPosition:T,fixedTo:S,xThreshold:o().number,yThreshold:o().number,centered:o().bool,sameWidth:o().bool,transitionName:o().string,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,tooltipLabel:o().node,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedDialog:o().bool,minLeft:yt.propTypes.minLeft,minRight:yt.propTypes.minLeft,minBottom:yt.propTypes.minBottom,scrollIntoView:o().bool,scrollIntoViewPadding:o().number,onClick:o().func,onMouseDown:o().func,onMouseUp:o().func,onTouchStart:o().func,onTouchEnd:o().func,onMouseEnter:o().func,onMouseOver:o().func,onMouseLeave:o().func,onTouchMove:o().func,header:o().bool,cellIndex:o().number,adjusted:o().bool,inlineIconChildren:(0,E.Z)(o().node,"Use the `inlineIcon` prop instead"),inlineIconClassName:(0,E.Z)(o().string,"Use the `inlineIcon` prop instead"),noIcon:(0,E.Z)(o().bool,"Set the `inlineIcon` prop to `null` instead"),enforceMinWidth:(0,E.Z)(o().bool,"The min width will always be enforced based on the `$md-edit-dialog-min-width` Sass variable"),scrollThreshold:(0,E.Z)(o().number,"Use `xThreshold` and `yThreshold` instead"),transitionDuration:(0,E.Z)(o().number,"use `transitionEnterTimeout` and `transitionLeaveTimeout` instead")},Zi.defaultProps={type:"text",defaultValue:"",okOnOutsideClick:!0,inlineIcon:r.createElement(ve,null,"edit"),okLabel:"Save",okPrimary:!0,cancelLabel:"Cancel",cancelPrimary:!0,animationPosition:Zi.Positions.BELOW,dialogZDepth:1,repositionOnScroll:!0,repositionOnResize:!1,scrollIntoView:!0,scrollIntoViewPadding:16,minLeft:0,minRight:0,minBottom:0,visibleOnFocus:!0,defaultVisible:!1},Zi.contextTypes={rowId:o().oneOfType([o().number,o().string])};var Hi=function(){var e=this;this._setField=function(t){e._field=t},this._makeActions=function(t){var n=t.okLabel,r=t.okPrimary,i=t.okSecondary,o=t.okProps,a=t.cancelLabel,s=t.cancelPrimary,l=t.cancelSecondary,c=t.cancelProps;return[qi({key:"cancel",children:a,primary:s&&!l,secondary:l},c,{onClick:e._handleCancel}),qi({key:"ok",children:n,primary:r&&!i,secondary:i},o,{onClick:e._handleOk})]},this._handleOpen=function(t){if(e._skipNextOpen)e._skipNextOpen=!1;else if(e.props.visibleOnFocus||!t||"focus"!==t.type){var n=e.props,r=n.scrollIntoView,i=n.scrollIntoViewPadding;if(r)!0!==Be(e._column)&&e._table&&e._column&&!e.props.inline&&(e._table.scrollLeft=e._column.offsetLeft-i);e.setState({visible:!0,cancelValue:d(e.props,e.state,"value")})}},this._handleClose=function(t){var n=e.props,r=n.onOutsideClick,i=n.okOnOutsideClick;r&&r(t),i?e._handleOk(t):e._handleCancel(t)},this._handleChange=function(t,n){e.props.onChange&&e.props.onChange(t,n),"undefined"===typeof e.props.value&&e.setState({value:t})},this._handleFocus=function(t){e.props.onFocus&&e.props.onFocus(t),e.props.inline&&e.setState({cancelValue:t.target.value})},this._handleKeyDown=function(t){var n=e.props,r=n.onKeyDown,i=n.okOnOutsideClick,o=n.large;r&&r(t);var a=t.which||t.keyCode;13===a?e._handleOk(t):a===w?e._handleCancel(t):9!==a||o||(e._skipNextOpen=t.shiftKey,i?e._handleOk(t):e._handleCancel(t))},this._handleOk=function(t){e.props.onOkClick&&e.props.onOkClick(d(e.props,e.state,"value"),t),e.setState({visible:!1})},this._handleCancel=function(t){var n=e.state.cancelValue;e.props.onCancelClick&&e.props.onCancelClick(n,t);var r={visible:!1};"undefined"===typeof e.props.value&&(r.value=n),e.setState(r)}};var Gi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Wi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function Yi(e,t){var n,i;return i=n=function(n){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t=Wi(this,n.call.apply(n,[this].concat(o))),t.state={cellIndex:void 0},t._fixedTo=null,Wi(t,e)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.componentDidMount=function(){var e=this.props,t=e.cellIndex,n=e.fixedTo,r=!!e.id||0===t||!!t;if(!r||!(null===n||!!n)){var i=(0,a.findDOMNode)(this),o=Vr(i);if(this._fixedTo=Vi(o),r)this._fixedTo&&this.forceUpdate();else{var s=[].slice.call(i.parentNode.querySelectorAll("th,td"));this.setState({cellIndex:s.indexOf(i)})}}},i.prototype.render=function(){var n=this.context.rowId,i=this.props,o=(i.id,i.fixedTo),a=(i.cellIndex,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["id","fixedTo","cellIndex"])),s=this.props.id,l=null===this._fixedTo||o?o:this._fixedTo,c=d(this.props,this.state,"cellIndex");return s||(s=n+"-"+c+"-"+t),r.createElement(e,Gi({},a,{id:s,fixedTo:l}))},i}(r.PureComponent),n.Positions=e.Positions,n.HorizontalAnchors=e.HorizontalAnchors,n.VerticalAnchors=e.VerticalAnchors,n.displayName=N(e,"TableFixes"),n.propTypes={id:o().oneOfType([o().number,o().string]),cellIndex:o().number,fixedTo:S},n.contextTypes={rowId:o().oneOfType([o().number,o().string])},i}var Ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Xi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.menuStyle,o=e.menuClassName,a=e.header,s=e.tooltipLabel,l=e.tooltipDelay,c=e.tooltipPosition,d=(e.adjusted,e.wrapperStyle,e.wrapperClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","menuStyle","menuClassName","header","tooltipLabel","tooltipDelay","tooltipPosition","adjusted","wrapperStyle","wrapperClassName"]));return r.createElement(ti,{header:a,style:t,className:u()("md-select-field-column",n),adjusted:!1,tooltipLabel:s,tooltipDelay:l,tooltipPosition:c},r.createElement(mi,Ki({},d,{style:i,className:o})))},t}(r.PureComponent);Xi.VerticalAnchors=mi.VerticalAnchors,Xi.HorizontalAnchors=mi.HorizontalAnchors,Xi.Positions=mi.Positions,Xi.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,menuStyle:o().object,menuClassName:o().string,fixedTo:S,fullWidth:o().bool,position:T,header:o().bool,adjusted:o().bool,tooltipLabel:o().string,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,wrapperStyle:(0,E.Z)(o().object,"There is no longer a wrapper"),wrapperClassName:(0,E.Z)(o().string,"There is no longer a wrapper")},Xi.defaultProps={position:Xi.Positions.BELOW,fullWidth:!0,repositionOnScroll:!0,repositionOnResize:!1,simplifiedMenu:!1};Yi(Xi,"select-field");var Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Qi(e,t){if("string"===typeof e||"number"===typeof e)return(0,r.createElement)(St,{key:e,primaryText:e});if((0,r.isValidElement)(e))return e;var n=e.divider,i=e.subheader,o=e.nestedItems,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["divider","subheader","nestedItems"]),s=void 0;s=n?fe:i?Te:St;var l=Ji({},a,{key:e.key||t});return o&&(l.nestedItems=o.map(Qi)),(0,r.createElement)(s,l)}var eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var to=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return i._handleClick=function(e){var t=i.props,n=t.onVisibilityChange,o=t.children,a=!d(i.props,i.state,"visible");n&&n(a,e);var s=r.Children.only(o);s.props.onClick&&s.props.onClick(e),"undefined"===typeof i.props.visible&&i.setState({visible:a})},i._handleClose=function(e){var t=i.props.onVisibilityChange;t&&t(false,e),"undefined"===typeof i.props.visible&&i.setState({visible:false})},i.state={},"undefined"===typeof n.visible&&(i.state.visible=n.defaultVisible),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.listId,i=e.menuItems,o=e.children,a=e.simplifiedMenu,s=(e.visible,e.onVisibilityChange,e.defaultVisible,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","listId","menuItems","children","simplifiedMenu","visible","onVisibilityChange","defaultVisible"])),l=d(this.props,this.state,"visible"),c=r.Children.only(o),u=r.cloneElement(c,{id:c.props.id||t+"-toggle",onClick:this._handleClick}),p=void 0;return p=Array.isArray(i)?i.map(Qi):Qi(i),r.createElement(wt,eo({},s,{simplified:a,id:t,listId:n,toggle:u,visible:l,onClose:this._handleClose}),p)},t}(r.PureComponent);to.Positions=wt.Positions,to.HorizontalAnchors=wt.HorizontalAnchors,to.VerticalAnchors=wt.VerticalAnchors,to.propTypes={id:o().oneOfType([o().number,o().string]),listId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,listStyle:o().object,listClassName:o().string,listProps:o().object,listZDepth:o().number,listInline:o().bool,listHeightRestricted:o().bool,visible:b(o().bool,"onVisibilityChange","defaultVisible"),defaultVisible:o().bool.isRequired,onClick:o().func,onVisibilityChange:o().func,menuItems:o().oneOfType([o().number,o().string,o().object,o().node,o().arrayOf(o().oneOfType([o().string,o().number,o().object,o().node]))]),children:o().element.isRequired,anchor:C,belowAnchor:C,fixedTo:S,position:T,cascading:o().bool,cascadingZDepth:o().number,cascadingAnchor:C,fullWidth:o().bool,block:o().bool,centered:o().bool,sameWidth:o().bool,xThreshold:o().number,yThreshold:o().number,closeOnOutsideClick:o().bool,transitionName:o().string,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,minLeft:wt.propTypes.minLeft,minRight:wt.propTypes.minLeft,minBottom:wt.propTypes.minBottom,fillViewportWidth:o().bool,fillViewportHeight:o().bool},to.defaultProps={defaultVisible:!1,repositionOnScroll:!0,repositionOnResize:!1};const no=to;var ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var io=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.listId,i=e.buttonId,o=e.menuStyle,a=e.menuClassName,s=e.listStyle,l=e.listClassName,c=e.listProps,u=e.listZDepth,d=e.listInline,p=e.listHeightRestricted,h=e.menuItems,f=e.buttonChildren,m=e.children,g=e.anchor,y=e.belowAnchor,v=e.fixedTo,b=e.position,_=e.cascading,w=e.cascadingAnchor,x=e.cascadingZDepth,k=e.fullWidth,C=e.block,S=e.centered,M=e.sameWidth,T=e.repositionOnScroll,E=e.repositionOnResize,P=e.xThreshold,I=e.yThreshold,O=e.closeOnOutsideClick,L=e.transitionName,R=e.transitionEnterTimeout,j=e.transitionLeaveTimeout,D=e.visible,A=e.defaultVisible,N=e.onVisibilityChange,F=e.simplifiedMenu,z=e.minLeft,B=e.minRight,U=e.minBottom,$=e.fillViewportWidth,V=e.fillViewportHeight,q=e.onMenuClick,Z=e.onMenuMouseDown,H=e.onMenuMouseUp,G=e.onMenuMouseEnter,W=e.onMenuMouseMove,Y=e.onMenuMouseLeave,K=e.onMenuTouchStart,X=e.onMenuTouchMove,J=e.onMenuTouchCancel,Q=e.onMenuTouchEnd,ee=e.onMenuFocus,te=e.onMenuBlur,ne=e.onMenuKeyDown,re=e.onMenuKeyUp,ie=e.isOpen,oe=e.defaultOpen,ae=e.onMenuToggle,se=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","listId","buttonId","menuStyle","menuClassName","listStyle","listClassName","listProps","listZDepth","listInline","listHeightRestricted","menuItems","buttonChildren","children","anchor","belowAnchor","fixedTo","position","cascading","cascadingAnchor","cascadingZDepth","fullWidth","block","centered","sameWidth","repositionOnScroll","repositionOnResize","xThreshold","yThreshold","closeOnOutsideClick","transitionName","transitionEnterTimeout","transitionLeaveTimeout","visible","defaultVisible","onVisibilityChange","simplifiedMenu","minLeft","minRight","minBottom","fillViewportWidth","fillViewportHeight","onMenuClick","onMenuMouseDown","onMenuMouseUp","onMenuMouseEnter","onMenuMouseMove","onMenuMouseLeave","onMenuTouchStart","onMenuTouchMove","onMenuTouchCancel","onMenuTouchEnd","onMenuFocus","onMenuBlur","onMenuKeyDown","onMenuKeyUp","isOpen","defaultOpen","onMenuToggle"]),le=m,ce=f;return"undefined"!==typeof h&&(ce=m,le=h),r.createElement(no,{id:t,listId:n,style:o,className:a,listStyle:s,listClassName:l,listProps:c,listInline:d,listZDepth:u,listHeightRestricted:p,visible:"undefined"!==typeof ie?ie:D,defaultVisible:"undefined"!==typeof oe?oe:A,menuItems:le,simplifiedMenu:F,anchor:g,belowAnchor:y,fixedTo:v,position:b,cascading:_,cascadingAnchor:w,cascadingZDepth:x,fullWidth:k,block:C,centered:S,sameWidth:M,minLeft:z,minRight:B,minBottom:U,fillViewportWidth:$,fillViewportHeight:V,repositionOnScroll:T,repositionOnResize:E,xThreshold:P,yThreshold:I,closeOnOutsideClick:O,transitionName:L,transitionEnterTimeout:R,transitionLeaveTimeout:j,onVisibilityChange:ae||N,onClick:q,onMouseDown:Z,onMouseUp:H,onMouseEnter:G,onMouseMove:W,onMouseLeave:Y,onTouchStart:K,onTouchMove:X,onTouchCancel:J,onTouchEnd:Q,onFocus:ee,onBlur:te,onKeyDown:ne,onKeyUp:re},r.createElement(Wn,ro({},se,{id:i}),ce))},t}(r.PureComponent);io.Positions=no.Positions,io.HorizontalAnchors=no.HorizontalAnchors,io.VerticalAnchors=no.VerticalAnchors,io.propTypes={id:o().oneOfType([o().number,o().string]),listId:o().oneOfType([o().number,o().string]),buttonId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,menuStyle:o().object,menuClassName:o().string,listStyle:o().object,listClassName:o().string,listProps:o().object,listZDepth:o().number,listInline:o().bool,listHeightRestricted:o().bool,visible:b(o().bool,"onVisibilityChange","defaultVisible"),defaultVisible:o().bool.isRequired,onClick:o().func,onMouseDown:o().func,onMouseUp:o().func,onMouseEnter:o().func,onMouseMove:o().func,onMouseLeave:o().func,onTouchStart:o().func,onTouchMove:o().func,onTouchEnd:o().func,onTouchCancel:o().func,onFocus:o().func,onBlur:o().func,onKeyDown:o().func,onKeyUp:o().func,onMenuClick:o().func,onMenuMouseDown:o().func,onMenuMouseUp:o().func,onMenuMouseEnter:o().func,onMenuMouseMove:o().func,onMenuMouseLeave:o().func,onMenuTouchStart:o().func,onMenuTouchMove:o().func,onMenuTouchEnd:o().func,onMenuTouchCancel:o().func,onMenuFocus:o().func,onMenuBlur:o().func,onMenuKeyDown:o().func,onMenuKeyUp:o().func,onVisibilityChange:o().func,menuItems:o().oneOfType([o().number,o().string,o().object,o().node,o().arrayOf(o().oneOfType([o().string,o().number,o().object,o().node]))]),children:o().node,anchor:C,belowAnchor:C,fixedTo:S,position:T,cascading:o().bool,cascadingZDepth:o().number,cascadingAnchor:C,fullWidth:o().bool,block:o().bool,centered:o().bool,sameWidth:o().bool,xThreshold:o().number,yThreshold:o().number,closeOnOutsideClick:o().bool,transitionName:o().string,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,minLeft:no.propTypes.minLeft,minRight:no.propTypes.minLeft,minBottom:no.propTypes.minBottom,fillViewportWidth:o().bool,fillViewportHeight:o().bool,buttonChildren:(0,E.Z)(o().node,"To build a button, put any elements in the `children`. The `ListItem` have been moved to the `menuItems` prop"),onMenuToggle:(0,E.Z)(o().bool,"Use `onVisibilityChange` instead"),isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),defaultOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead")},io.defaultProps={defaultVisible:!1,repositionOnScroll:!0,repositionOnResize:!1};const oo=io;var ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var so=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.menuStyle,o=e.menuClassName,a=e.header,s=e.adjusted,l=e.tooltipLabel,c=e.tooltipDelay,u=e.tooltipPosition,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","menuStyle","menuClassName","header","adjusted","tooltipLabel","tooltipDelay","tooltipPosition"]);return r.createElement(ti,{style:t,className:n,header:a,adjusted:s,tooltipLabel:l,tooltipDelay:c,tooltipPosition:u},r.createElement(oo,ao({},d,{style:i,className:o})))},t}(r.PureComponent);so.Positions=oo.Positions,so.HorizontalAnchors=oo.HorizontalAnchors,so.VerticalAnchors=oo.VerticalAnchors,so.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,menuStyle:o().object,menuClassName:o().string,fixedTo:S,tooltipLabel:o().string,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,header:o().bool,adjusted:o().bool},so.defaultProps={simplifiedMenu:!1};const lo=Yi(so,"menu-button");var co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var uo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.menuStyle,o=e.menuClassName,a=e.header,s=e.adjusted,l=e.tooltipLabel,c=e.tooltipDelay,u=e.tooltipPosition,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","menuStyle","menuClassName","header","adjusted","tooltipLabel","tooltipDelay","tooltipPosition"]);return r.createElement(ti,{style:t,className:n,header:a,adjusted:s,tooltipLabel:l,tooltipDelay:c,tooltipPosition:u},r.createElement(no,co({},d,{style:i,className:o})))},t}(r.PureComponent);uo.Positions=no.Positions,uo.HorizontalAnchors=no.HorizontalAnchors,uo.VerticalAnchors=no.VerticalAnchors,uo.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,menuStyle:o().object,menuClassName:o().string,fixedTo:S,tooltipLabel:o().string,tooltipDelay:o().number,tooltipPosition:o().oneOf(["top","right","bottom","left"]),repositionOnScroll:o().bool,repositionOnResize:o().bool,simplifiedMenu:o().bool,header:o().bool,adjusted:o().bool},uo.defaultProps={simplifiedMenu:!1};Yi(uo,"menu-button");function po(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t,r,i,o,a){for(var s=i||"<<anonymous>>",l=[a||r].concat(n),c=arguments.length,u=Array(c>5?c-5:0),d=5;d<c;d++)u[d-5]=arguments[d];var p=e.apply(void 0,[t,r,i,o,a].concat(u));return p||l.filter((function(e){return"undefined"!==typeof t[e]})).length||(p=new Error("One of the following props are required for the "+s+" component. `"+l.join("`, `")+"`.")),p}}var ho=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var fo=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state={animating:!1},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this,n=this.props.visible,r=e.visible,i=e.transitionEnterTimeout,o=e.transitionLeaveTimeout,a=r?i:o;n!==r&&(this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout((function(){t._timeout=setTimeout((function(){t._timeout=null,t.setState({animating:!1})}),a)}),X),this.state.animating||this.setState({animating:!0}))},t.prototype._cloneCellRight=function(e,t){return e||!t?t:r.Children.map(r.Children.toArray(t),(function(e,t){return 0===t&&(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{className:u()("md-cell--right",e.props.className)}):e}))},t.prototype._cloneLeftChildren=function(e,t){return e||!t?t:r.Children.map(r.Children.toArray(t),(function(e){return(0,r.cloneElement)(e,{className:u()("md-btn--dialog",e.props.className)})}))},t.prototype.render=function(){var e=this.state.animating,t=this.props,n=t.style,i=t.className,o=t.title,a=t.titleId,s=t.actions,c=t.contextualTitleId,d=t.contextualChildren,p=t.noActionsAdjust,h=t.noChildrenAdjust,f=t.noLeftChildrenClone,m=t.visible,g=(t.children,t.leftChildren,t.contextualTitle,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","className","title","titleId","actions","contextualTitleId","contextualChildren","noActionsAdjust","noChildrenAdjust","noLeftChildrenClone","visible","children","leftChildren","contextualTitle"])),y=this.props,v=y.children,b=y.leftChildren,_=y.contextualTitle;v=this._cloneCellRight(h,v),b=this._cloneLeftChildren(f,b),o?v=r.createElement("div",{className:"md-card-title",key:"main-title"},r.createElement(ir,{id:a,title:o}),v):b&&(b=r.Children.toArray(b),v=v?b.concat(r.Children.toArray(v)):b),_&&(_=r.createElement("h2",{id:c,className:"md-card-title--title md-card-title--title-contextual",tabIndex:c?-1:null},_));var w=r.createElement("div",{key:"contextual-header",className:"md-card-title md-card-title--contextual"},_,d,this._cloneCellRight(p,s)),x=n;return e&&(x=Object.assign({},n,{overflow:"hidden"})),r.createElement(l(),ho({},g,{style:x,className:u()("md-table-card-header",{"md-table-card-header--no-title":!o},i)}),v,m?w:null)},t}(r.PureComponent);fo.propTypes={style:o().object,className:o().string,component:o().oneOfType([o().func,o().string,o().object]).isRequired,transitionName:o().string.isRequired,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,title:po(o().node,"leftChildren","children"),titleId:o().oneOfType([o().number,o().string]),contextualTitle:o().node,contextualTitleId:o().oneOfType([o().number,o().string]),contextualChildren:o().node,leftChildren:_(o().oneOfType([o().element,o().arrayOf(o().element)]),"title"),children:o().node,actions:o().oneOfType([o().element,o().arrayOf(o().element)]),noActionsAdjust:o().bool,noChildrenAdjust:o().bool,noLeftChildrenClone:o().bool,visible:o().bool.isRequired},fo.defaultProps={component:"header",transitionName:"md-drop-down",transitionEnterTimeout:150,transitionLeaveTimeout:150};function mo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"md-no-scroll",r=!t||"string"===typeof t,i=void 0;if(i=r?t?document.querySelector(t):document.querySelector("html"):t)if("undefined"===typeof e&&(e=!i.classList.contains(n)),e&&!i.classList.contains(n))i.style.top="-"+(r?B("y"):i.scrollTop)+"px",i.classList.add(n);else if(!e&&i.classList.contains(n)){var o=Math.abs(parseInt(i.style.top,10));i.classList.remove(n),i.style.top=null,t?i.scrollTop=o:window.scrollTo(0,o)}}var go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var yo=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));vo.call(r);var i="undefined"!==typeof n.isOpen?n.isOpen:n.visible,o=i&&!n.defaultVisibleTransitionable;return r.state={active:i&&!n.fullPage,portalVisible:i,dialogVisible:o},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){(this.props.isOpen||this.props.visible)&&this._mountDialog(this.props)},t.prototype.componentWillReceiveProps=function(e){var t="undefined"!==typeof e.isOpen?e.isOpen:e.visible;if(this.props.isOpen!==t&&this.props.visible!==t){var n=d(this.props,this.context,"renderNode")||window,r=n.scrollX,i=n.scrollY;"undefined"!==typeof n.scrollTop&&"undefined"!==typeof n.scrollLeft?(r=n.scrollLeft,i=n.scrollTop):"undefined"!==typeof n.scrollY&&"undefined"!==typeof n.scrollX&&(r=n.scrollX,i=n.scrollY),this._pageX=r,this._pageY=i,this._inTimeout&&(clearTimeout(this._inTimeout),this._inTimeout=null),t?(this._activeElement=document.activeElement,this._mountPortal(e)):this.setState({dialogVisible:!1,active:!1})}},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.visible,r=t.closeOnEsc;if(n!==e.visible||r!==e.closeOnEsc){var i=!1,o=!1;r!==e.closeOnEsc?(i=n&&r,o=!n||e.closeOnEsc&&!r):r&&(i=n,o=!n),i?window.addEventListener("keydown",this._handleEscClose):o&&window.removeEventListener("keydown",this._handleEscClose)}},t.prototype.componentWillUnmount=function(){(this.props.isOpen||this.props.visible)&&mo(!1),this.props.visible&&this.props.closeOnEsc&&window.removeEventListener("keydown",this._handleEscClose),this._inTimeout&&clearTimeout(this._inTimeout)},t.prototype.render=function(){var e=this.state,t=e.active,n=e.dialogVisible,i=e.portalVisible,o=this.props,a=o.style,s=o.className,c=o.dialogStyle,p=o.dialogClassName,h=o.modal,f=o.fullPage,m=o.component,g=o.transitionEnterTimeout,y=o.transitionLeaveTimeout,v=o.lastChild,b=o.portal,_=o.visible,w=(o.renderNode,o.closeOnEsc,o.onShow,o.onHide,o.disableScrollLocking,o.defaultVisibleTransitionable,o.activeElementFocus,o.close,o.isOpen,o.actionLeft,o.actionRight,o.transitionName,o.transitionEnter,o.transitionLeave,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["style","className","dialogStyle","dialogClassName","modal","fullPage","component","transitionEnterTimeout","transitionLeaveTimeout","lastChild","portal","visible","renderNode","closeOnEsc","onShow","onHide","disableScrollLocking","defaultVisibleTransitionable","activeElementFocus","close","isOpen","actionLeft","actionRight","transitionName","transitionEnter","transitionLeave"])),x=d(this.props,this.context,"renderNode"),k=r.createElement(zi,go({key:"dialog",style:c,className:u()("md-background--card",p),ref:this._handleDialogMounting,centered:!f,fullPage:f},w,{containerX:this._pageX,containerY:this._pageY,onLeave:this._unmountPortal})),C=r.createElement(l(),{component:m,ref:this._setContainer,style:a,className:u()("md-dialog-container",{"md-overlay":!f,"md-overlay--active":!f&&t&&_,"md-pointer--hover":!f&&!h&&_},s),transitionName:"md-dialog--"+(f?"full-page":"centered"),transitionEnterTimeout:g,transitionLeaveTimeout:y,tabIndex:-1,onClick:this._handleClick},n?k:null);return b?r.createElement(bn,{visible:i,renderNode:x,lastChild:v},C):i?C:null},t}(r.PureComponent);yo.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),"aria-describedby":v(o().oneOfType([o().number,o().string]),"title","aria-labelledby","aria-label"),"aria-labelledby":o().oneOfType([o().number,o().string]),"aria-label":o().string,style:o().object,className:o().string,dialogStyle:o().object,dialogClassName:o().string,titleStyle:o().object,titleClassName:o().string,footerStyle:o().object,footerClassName:o().string,contentStyle:o().object,contentClassName:o().string,component:o().oneOfType([o().func,o().string,o().object]).isRequired,contentComponent:o().oneOfType([o().func,o().string,o().object]).isRequired,children:o().node,actions:o().oneOfType([o().element,o().object,o().arrayOf(o().oneOfType([o().element,o().object]))]),visible:o().bool.isRequired,onShow:o().func,onHide:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=o().func;return e.modal||e.fullPage||(a=a.isRequired),a.apply(void 0,[e,t].concat(r))},modal:o().bool,fullPage:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s=n||"<<anonymous>>",l=o().bool.apply(o(),[e,t,n].concat(i));return!l&&e[t]&&"undefined"!==typeof e.title&&(l=new Error("You provided a `title` "+location+" to the `"+s+"` when `fullPage` has been set to true. A title for a full page dialog should be rendered as a child instead.")),l},pageX:o().number,pageY:o().number,additionalFocusKeys:zi.propTypes.additionalFocusKeys,initialFocus:zi.propTypes.initialFocus,focusOnMount:zi.propTypes.focusOnMount,containFocus:zi.propTypes.containFocus,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,closeOnEsc:o().bool,portal:o().bool,renderNode:o().object,lastChild:o().bool,title:o().node,defaultVisibleTransitionable:o().bool,disableScrollLocking:o().bool,autopadContent:o().bool,autosizeContent:o().bool,height:o().oneOfType([o().number,o().string]),width:o().oneOfType([o().number,o().string]),stackedActions:o().bool,activeElementFocus:o().bool,isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),transitionName:(0,E.Z)(o().string,"The transition name will be managed by the component"),transitionEnter:(0,E.Z)(o().bool,"The transition will always be enforced"),transitionLeave:(0,E.Z)(o().bool,"The transition will always be enforced"),actionLeft:(0,E.Z)(o().node,"Use the `fullPage` prop instead"),actionRight:(0,E.Z)(o().node,"Use the `fullPage` prop instead"),close:(0,E.Z)(o().func,"Use `onHide` instead")},yo.defaultProps={autopadContent:!0,autosizeContent:!0,component:"span",closeOnEsc:!0,contentComponent:"section",focusOnMount:!0,transitionEnterTimeout:300,transitionLeaveTimeout:300,defaultVisibleTransitionable:!1,activeElementFocus:!0},yo.contextTypes={renderNode:o().object};var vo=function(){var e=this;this._setContainer=function(t){null!==t&&(e._container=(0,a.findDOMNode)(t))},this._handleEscClose=function(t){(t.which||t.keyCode)===w&&(e.props.onHide||e.props.close)(t)},this._mountPortal=function(t){e._mountDialog(t),e.setState({portalVisible:!0})},this._mountDialog=function(t){var n=t.fullPage,r=t.onShow;e._inTimeout=setTimeout((function(){e._inTimeout=n?null:setTimeout((function(){e._inTimeout=null,e.setState({active:!0})}),X),e.setState({dialogVisible:!0},r)}),X)},this._unmountPortal=function(){e.setState({portalVisible:!1})},this._handleClick=function(t){var n="undefined"!==typeof e.props.isOpen?e.props.isOpen:e.props.visible;!e.props.modal&&n&&t.target===e._container&&(e.props.onHide||e.props.close)(t)},this._handleDialogMounting=function(t){var n=e.props.disableScrollLocking;if(null===t)e._activeElement&&e._activeElement.focus&&e.props.activeElementFocus&&e._activeElement.focus(),n||mo(!1,e.scrollEl),e._activeElement=null;else{var r=document.getElementById(e.props.id);if(!r||n)return;for(var i=d(e.props,e.context,"renderNode"),o=r.parentNode;o&&o.classList&&!i;)o.classList.contains("md-dialog")&&(i=o),o=o.parentNode;e.scrollEl=i,mo(!0,i)}}};const bo=yo;var _o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{isInPortal:!1}},t.prototype.render=function(){var e=this.props,t=e.active,n=e.visible,i=e.renderNode,o=e.onClick,a=e.style,s=e.className;return r.createElement(bn,{visible:n,renderNode:i},r.createElement("div",{style:a,className:u()("md-overlay md-overlay--drawer md-pointer--hover",{"md-overlay--active":t},s),onClick:o}))},t}(r.PureComponent);_o.propTypes={style:o().object,className:o().string,active:o().bool,visible:o().bool.isRequired,renderNode:o().object,onClick:o().func},_o.childContextTypes={isInPortal:o().bool};const wo=_o;const xo={FULL_HEIGHT:"full-height",CLIPPED:"clipped",FLOATING:"floating",PERSISTENT:"persistent",PERSISTENT_MINI:"persistent-mini",TEMPORARY:"temporary",TEMPORARY_MINI:"temporary-mini"};var ko=xo.FULL_HEIGHT,Co=xo.CLIPPED,So=xo.FLOATING,Mo=xo.PERSISTENT,To=xo.PERSISTENT_MINI,Eo=xo.TEMPORARY,Po=xo.TEMPORARY_MINI;function Io(e){return-1!==[Eo,Po].indexOf(e)}function Oo(e){return-1!==[ko,Co,So].indexOf(e)}function Lo(e){return-1!==[To,Po].indexOf(e)}var Ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function jo(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Do=o().oneOf([xo.FULL_HEIGHT,xo.CLIPPED,xo.FLOATING,xo.PERSISTENT,xo.PERSISTENT_MINI,xo.TEMPORARY,xo.TEMPORARY_MINI]),Ao=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));No.call(r);var i=n.defaultVisible,o=n.defaultMedia,a=n.overlay;r.state={mobile:"mobile"===o,tablet:"tablet"===o,desktop:"desktop"===o,animating:!1,overlayActive:!1,drawerActive:!1},"undefined"===typeof n.type&&(r.state.type=n[o+"Type"]);var s=d(n,r.state,"type");if(r._initialFix=!0,"undefined"===typeof n.visible){var l=Oo(s)||Lo(s);l||"undefined"===typeof i||(l=i),r.state.visible=l}var c=d(n,r.state,"visible");return r.state.overlayActive=("undefined"!==typeof a?a:Io(s)&&!r.state.desktop)&&c,r.state.drawerActive=c,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getCurrentMedia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultProps,n=e.mobileMinWidth,r=e.tabletMinWidth,i=e.desktopMinWidth,o=e.mobileType,a=e.tabletType,s=e.desktopType,l=e.constantType;if("undefined"===typeof window)return{mobile:!0,tablet:!1,desktop:!1,type:l&&e.type?e.type:o};var c=t.matchesMedia(n,r-1),u=t.matchesMedia(r,i),d=t.matchesMedia(i);return{type:l&&e.type&&Io(e.type)?e.type:d?s:u?a:o,mobile:c,tablet:u,desktop:d}},t.matchesMedia=function(e,t){var n="screen and (min-width: "+e+"px)";return t&&(n+=" and (max-width: "+t+"px)"),window.matchMedia(n).matches},t.prototype.componentWillMount=function(){"undefined"!==typeof window&&this._updateType(this.props)},t.prototype.componentDidMount=function(){Lo(d(this.props,this.state,"type"))||window.addEventListener("resize",this._updateMedia)},t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.mobileMinWidth,r=t.mobileType,i=t.tabletMinWidth,o=t.tabletType,a=t.desktopMinWidth,s=t.desktopType;e.mobileMinWidth===n&&e.mobileType===r&&e.tabletMinWidth===i&&e.tabletType===o&&e.desktopMinWidth===a&&e.desktopType===s||this._updateType(e);var l=e.visible,c=e.transitionDuration,u=e.overlay;if(this.props.visible!==e.visible){var p=d(e,this.state,"type");this._animate(l,p,c,u,this.state.desktop)}},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout),this._closeTimeout&&clearTimeout(this._closeTimeout),window.removeEventListener("resize",this._updateMedia)},t.prototype.render=function(){var e,t=this.state,n=t.overlayActive,i=t.drawerActive,o=t.animating,a=this.props,s=a.id,l=a.style,c=a.className,p=a.navStyle,h=a.navClassName,f=a.component,m=a.navItems,g=a.header,y=a.children,v=a.inline,b=a.position,_=a.overlay,w=a.clickableDesktopOverlay,x=a.lastChild,k=a.portal,C=a.overlayStyle,S=a.overlayClassName,M=(a.type,a.visible,a.renderNode,a.navItemsId,a.zDepth,a.constantType,a.defaultVisible,a.defaultMedia,a.mobileType,a.mobileMinWidth,a.tabletType,a.tabletMinWidth,a.desktopType,a.desktopMinWidth,a.transitionDuration,a.onMediaTypeChange,a.onVisibilityChange,a.autoclose,a.autocloseAfterInk,a.onVisibilityToggle,a.closeOnNavItemClick,jo(a,["id","style","className","navStyle","navClassName","component","navItems","header","children","inline","position","overlay","clickableDesktopOverlay","lastChild","portal","overlayStyle","overlayClassName","type","visible","renderNode","navItemsId","zDepth","constantType","defaultVisible","defaultMedia","mobileType","mobileMinWidth","tabletType","tabletMinWidth","desktopType","desktopMinWidth","transitionDuration","onMediaTypeChange","onVisibilityChange","autoclose","autocloseAfterInk","onVisibilityToggle","closeOnNavItemClick"])),T=this.props,E=T.navItemsId,P=T.zDepth;!E&&s&&(E=s+"-nav-items");var I=this.state.desktop,O=d(this.props,this.context,"renderNode"),L=d(this.props,this.state,"type"),R=d(this.props,this.state,"visible"),j=Lo(L),D=Io(L),A=xo.FLOATING===L,N=Oo(L),F=void 0;F=f||(m?"nav":"aside");var z=void 0;m&&(z=r.createElement(Re,{ref:this._setNavigation,key:"navigation",id:E,style:p,className:u()("md-list--drawer",{"md-toolbar-relative":j&&!R,"md-background":A},h),onClick:this._handleNavClick},m.map(Qi))),"undefined"===typeof P&&(P=1,A||v?P=0:!j&&D&&(P=5));var B=_;"boolean"!==typeof B&&(B=D&&!j&&(!I||w)&&(o||R));var U=r.createElement(Cn,Ro({},M,{id:s,key:"drawer",component:F,zDepth:P,raiseOnHover:!1,style:l,className:u()("md-drawer",(e={},e["md-drawer--"+b]=!v,e["md-drawer--fixed"]=!v,e["md-drawer--inline"]=v,e["md-drawer--active"]=j||i,e["md-drawer--mini"]=j,e["md-transition--deceleration"]=!j&&!N&&R,e["md-transition--acceleration"]=!j&&!N&&!R,e["md-background"]=v||A,e["md-background--card"]=!A&&!v,e),c)}),g,z,y,r.createElement(wo,{style:C,className:S,active:n,onClick:this._closeDrawer,visible:B,renderNode:O}));return v||N?U:k?r.createElement(bn,{visible:o||R,renderNode:O,lastChild:x},U):j||o||R?U:null},t}(r.PureComponent);Ao.DrawerTypes=xo,Ao.propTypes={id:o().oneOfType([o().number,o().string]),navItemsId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,navStyle:o().object,navClassName:o().string,overlayStyle:o().object,overlayClassName:o().string,component:o().oneOfType([o().func,o().element,o().object]),navItems:o().arrayOf(o().oneOfType([o().element,o().shape({divider:o().bool,subheader:o().bool,primaryText:o().node})])),autoclose:o().bool,header:o().node,children:o().node,mobileType:o().oneOf([Ao.DrawerTypes.TEMPORARY,Ao.DrawerTypes.TEMPORARY_MINI]).isRequired,mobileMinWidth:o().number.isRequired,tabletType:Do.isRequired,tabletMinWidth:o().number.isRequired,desktopType:Do.isRequired,desktopMinWidth:o().number.isRequired,type:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=e[t];if(Io(a))return Do.apply(void 0,[e,t,n].concat(i));var s=Do.apply(void 0,[e,t,n].concat(i));return s||"undefined"===typeof a||Lo(a)||"undefined"!==typeof e.onMediaTypeChange||(s=new Error("You provided a `"+t+"` prop to the "+n+" without the `onMediaTypeChange` handler. The `onMediaTypeChange` prop must be specified when the `"+t+"` is not one of the `temporary` types.")),s},onMediaTypeChange:o().func,defaultMedia:o().oneOf(["mobile","tablet","desktop"]).isRequired,overlay:o().bool,portal:o().bool,renderNode:o().object,lastChild:o().bool,defaultVisible:o().bool,visible:b(o().bool,"onVisibilityChange","defaultVisible"),onVisibilityChange:o().func,position:o().oneOf(["left","right"]).isRequired,inline:o().bool,transitionDuration:o().number.isRequired,clickableDesktopOverlay:o().bool,autocloseAfterInk:o().bool,constantType:o().bool.isRequired,zDepth:o().number,closeOnNavItemClick:(0,E.Z)(o().bool,"Use `autoclose` instead"),onVisibilityToggle:(0,E.Z)(o().func,"Use `onVisibilityChange` instead")},Ao.defaultProps={defaultMedia:"mobile",mobileType:Ao.DrawerTypes.TEMPORARY,mobileMinWidth:320,tabletType:Ao.DrawerTypes.PERSISTENT,tabletMinWidth:768,desktopType:Ao.DrawerTypes.FULL_HEIGHT,desktopMinWidth:1025,position:"left",transitionDuration:300,autoclose:!0,clickableDesktopOverlay:!0,constantType:!0},Ao.contextTypes={renderNode:o().object};var No=function(){var e=this;this._updateType=function(t){var n=t.onMediaTypeChange,r=t.overlay,i=t.transitionDuration,o=t.onVisibilityToggle||t.onVisibilityChange,a=Ao.getCurrentMedia(t),s=d(t,e.state,"type")!==a.type,l=a.mobile!==e.state.mobile||a.tablet!==e.state.tablet||a.desktop!==e.state.desktop;if(n&&(s||l)&&n(a.type,{mobile:a.mobile,tablet:a.tablet,desktop:a.desktop}),s){var c=Oo(a.type);e._initialFix&&(t.defaultVisible?c=t.defaultVisible:t.visible&&(c=t.visible));var u=d(t,e.state,"visible");o&&c!==u&&o(c),"undefined"===typeof t.visible&&(a.visible=c,e._animate(c,a.type,i,r,a.desktop))}else e._initialFix&&l&&(a.overlayActive=("undefined"!==typeof r?r:Io(a.type)&&!a.desktop)&&d(t,e.state,"visible"));if("undefined"!==typeof t.type){var p=a;p.type;a=jo(p,["type"])}e._initialFix=!1,e.setState(a)},this._updateMedia=function(){e._updateType(e.props)},this._animate=function(t,n,r,i,o){e._timeout&&clearTimeout(e._timeout),t?e._timeout=setTimeout((function(){e._timeout=null,e.setState({overlayActive:i||Io(n)&&!o,drawerActive:!0,animating:!0})}),X):(e._timeout=setTimeout((function(){e._timeout=null,e.setState({animating:!1})}),r),e.setState({animating:!0,overlayActive:!1,drawerActive:!1}))},this._setNavigation=function(t){e._navigation=(0,a.findDOMNode)(t)},this._handleNavClick=function(t){var n=e.props,r=n.closeOnNavItemClick,i=n.autoclose,o=n.autocloseAfterInk;if(("undefined"!==typeof r?r:i)&&Io(d(e.props,e.state,"type")))for(var a=t.target;a&&e._navigation.contains(a);){if(a.classList.contains("md-list-tile")){if(null!==a.getAttribute("aria-expanded"))return;return void(e._closeTimeout=setTimeout((function(){e._closeTimeout=null,e._closeDrawer(t)}),o?300:X))}a=a.parentNode}},this._closeDrawer=function(){var t=e.props,n=t.onVisibilityChange,r=t.onVisibilityToggle,i=t.transitionDuration,o=t.overlay,a=r||n;a&&a(!1),"undefined"===typeof e.props.visible&&(e.setState({visible:!1}),e._animate(!1,d(e.props,e.state,"type"),i,o,e.state.desktop))}};const Fo=Ao;var zo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Bo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.footerStyle,i=e.footerClassName,o=e.contentStyle,a=e.className,s=e.children,l=e.onSave,c=e.onCancel,d=e.saveProps,p=e.saveType,h=e.saveLabel,f=e.savePrimary,m=e.saveSecondary,g=e.cancelProps,y=e.cancelType,v=e.cancelLabel,b=e.cancelPrimary,_=e.cancelSecondary,w=e.footer,x=e.footerChildren,k=[zo({type:y,label:v,primary:b,secondary:_},g,{onClick:c}),zo({type:p,label:h,primary:f,secondary:m},d,{onClick:l})],C=null;return"undefined"===typeof w?C=r.createElement(ji,{actions:k,style:n,className:u()("md-divider-border md-divider-border--top",i)},x):null!==w&&(C=w),r.createElement("div",{style:t},r.createElement("div",{className:u()("md-panel-content",a),style:o},s),C)},t}(r.PureComponent);Bo.propTypes={style:o().object,className:o().string,footerStyle:o().object,footerClassName:o().string,contentStyle:o().object,children:o().node,onSave:o().func.isRequired,onCancel:o().func.isRequired,saveProps:o().object,saveType:o().string,saveLabel:o().node.isRequired,savePrimary:o().bool,saveSecondary:o().bool,cancelProps:o().object,cancelType:o().string,cancelLabel:o().node.isRequired,cancelPrimary:o().bool,cancelSecondary:o().bool,footer:o().node,footerChildren:o().node};const Uo=Bo;var $o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Vo=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n,r));return i._determineIfTwoLine=function(){var e=!1;Array.prototype.slice.call((0,a.findDOMNode)(i).querySelectorAll(".md-panel-column")).some((function(t){return e=t.offsetHeight>21.428549999999998})),i.setState({twoLine:e})},i._handleClick=function(){var e=!i._isExpanded(i.props,i.state);i.props.onExpandToggle&&i.props.onExpandToggle(e),"undefined"===typeof i.props.expanded&&i.setState({expanded:e})},i._handleSave=function(e){var t=i.props,n=t.onSave,r=t.onExpandToggle,o=t.closeOnSave;n&&n(e),o&&(r&&r(!1),"undefined"===typeof i.props.expanded&&i.setState({expanded:!1}))},i._handleCancel=function(e){var t=i.props,n=t.onCancel,r=t.onExpandToggle,o=t.closeOnCancel;n&&n(e),o&&(r&&r(!1),"undefined"===typeof i.props.expanded&&i.setState({expanded:!1}))},i.state={received:!1,twoLine:!1},"undefined"===typeof n.expanded&&(i.state.expanded=n.defaultExpanded),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._determineIfTwoLine()},t.prototype.componentWillReceiveProps=function(e){0},t.prototype.componentDidUpdate=function(e){this.props.label===e.label&&this.props.secondaryLabel===e.secondaryLabel||this._determineIfTwoLine()},t.prototype._isExpanded=function(e,t){return"undefined"===typeof e.expanded?t.expanded:e.expanded},t.prototype.render=function(){var e=this.props,t=e.className,n=e.label,i=e.secondaryLabel,o=e.expandedSecondaryLabel,a=e.children,s=e.focused,l=e.columnWidths,c=e.saveType,p=e.saveLabel,h=e.savePrimary,f=e.saveSecondary,m=e.saveProps,g=e.cancelType,y=e.cancelLabel,v=e.cancelPrimary,b=e.cancelSecondary,_=e.cancelProps,w=e.headerStyle,x=e.headerClassName,k=e.contentStyle,C=e.contentClassName,S=e.tabIndex,M=e.overflown,T=e.footer,E=e.footerChildren,O=e.footerStyle,L=e.footerClassName,R=e.expandIconChildren,j=e.expandIconClassName,D=(e.animateContent,e.expanded,e.expanderIcon,e.defaultExpanded,e.closeOnSave,e.closeOnCancel,e.onSave,e.onCancel,e.onExpandToggle,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","label","secondaryLabel","expandedSecondaryLabel","children","focused","columnWidths","saveType","saveLabel","savePrimary","saveSecondary","saveProps","cancelType","cancelLabel","cancelPrimary","cancelSecondary","cancelProps","headerStyle","headerClassName","contentStyle","contentClassName","tabIndex","overflown","footer","footerChildren","footerStyle","footerClassName","expandIconChildren","expandIconClassName","animateContent","expanded","expanderIcon","defaultExpanded","closeOnSave","closeOnCancel","onSave","onCancel","onExpandToggle"])),N=this.state.twoLine,F=this._isExpanded(this.props,this.state),z=d(this.props,this.context,"animateContent"),B=r.Children.map(F&&o||i,(function(e,t){var n;return r.createElement("div",{style:(n={},n[M?"width":"minWidth"]=l[t+1],n),className:u()("md-panel-column",{"md-panel-column--overflown":M},P({text:!0}))},e)}));Array.isArray(B)||(B=[B]),B.unshift(r.createElement("div",{key:"main-label",style:{minWidth:l[0]},className:u()("md-panel-column",P({text:!0}))},n));var U=be(j,R,this.props.expanderIcon);return U=r.Children.only(U),U=r.cloneElement(U,{className:I({flipped:F},"md-expansion-panel__collapser md-cell--right",U.props.className)}),r.createElement(Cn,$o({},D,{className:u()("md-expansion-panel",{"md-expansion-panel--expanded":F},t),"aria-expanded":F}),r.createElement(A,{onClick:this._handleClick,style:w,className:u()("md-panel-header",{"md-panel-header--expanded":F||N,"md-panel-header--focused":s},x),tabIndex:S},B,U),r.createElement(de,{collapsed:!F,animate:z},r.createElement(Uo,{style:k,className:C,footerStyle:O,footerClassName:L,onSave:this._handleSave,onCancel:this._handleCancel,saveType:c,saveLabel:p,savePrimary:h,saveSecondary:f,saveProps:m,cancelType:g,cancelLabel:y,cancelPrimary:v,cancelSecondary:b,cancelProps:_,footer:T,footerChildren:E},a)))},t}(r.PureComponent);Vo.propTypes={style:o().object,className:o().string,headerStyle:o().object,headerClassName:o().string,contentStyle:o().object,contentClassName:o().string,footerStyle:o().object,footerClassName:o().string,label:o().node.isRequired,secondaryLabel:o().node,expandedSecondaryLabel:o().node,component:o().oneOfType([o().string,o().func,o().object]).isRequired,children:o().node,expanded:b(o().bool,"onExpandToggle","defaultExpanded"),defaultExpanded:o().bool.isRequired,expanderIcon:o().element,focused:o().bool.isRequired,columnWidths:o().arrayOf(o().number).isRequired,overflown:o().bool,onExpandToggle:o().func,onSave:o().func,onCancel:o().func,closeOnSave:o().bool,closeOnCancel:o().bool,saveType:o().oneOf(["button","submit","reset"]),saveLabel:o().node.isRequired,savePrimary:o().bool,saveSecondary:o().bool,saveProps:o().object,cancelType:o().oneOf(["button","submit","reset"]),cancelLabel:o().node.isRequired,cancelPrimary:o().bool,cancelSecondary:o().bool,cancelProps:o().object,tabIndex:o().number.isRequired,animateContent:o().bool,footer:o().node,footerChildren:o().node,expandIconChildren:(0,E.Z)(o().node,"Use the `expanderIcon` instead"),expandIconClassName:(0,E.Z)(o().string,"Use the `expanderIcon` instead")},Vo.defaultProps={defaultExpanded:!1,expanderIcon:r.createElement(ve,null,"keyboard_arrow_down"),component:"li",saveLabel:"Save",cancelLabel:"Cancel",savePrimary:!0,tabIndex:0,closeOnSave:!0,closeOnCancel:!0,focused:!1,columnWidths:[]},Vo.contextTypes={animateContent:o().bool};var qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Zo(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ho=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=Zo(this,e.call.apply(e,[this].concat(o))),r.state={columnWidths:[],focusedIndex:-1,overflown:!1},r._setContainer=function(e){null!==e&&(r._container=(0,a.findDOMNode)(e),window.addEventListener("keyup",r._determineTabFocus),r._width=r._container.offsetWidth,r._calcColumnWidths())},r._determineTabFocus=function(e){if(9===(e.which||e.keyCode)){var t=Array.prototype.slice.call((0,a.findDOMNode)(r).querySelectorAll(".md-panel-header"));r.setState({focusedIndex:t.indexOf(e.target)})}},r._removeFocus=function(){r.setState({focusedIndex:-1})},r._isOverflown=function(e){if(!r._container)return!1;var t=r._container.querySelector(".md-panel-header");if(!t)return!1;var n=r._container.querySelector(".md-expansion-panel__collapser"),i=n?n.offsetWidth:0,o=window.getComputedStyle(t),a=t.offsetWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight)-i;return e.reduce((function(e,t){return e+t}),0)>a},r._getColumnWidths=function(){return r._container?[].slice.call(r._container.querySelectorAll(".md-panel-header")).reduce((function(e,t){for(var n=t.querySelectorAll(".md-panel-column"),r=0;r<n.length;r++){var i=n[r],o=i.style,a=o.width,s=o.minWidth;i.style.width="auto",i.style.minWidth="auto",e[r]=Math.max(i.offsetWidth,e[r]||0),i.style.width=a,i.style.minWidth=s}return e}),[0]):r.state.columnWidths},r._calcColumnWidths=function(){var e=r.state.columnWidths,t=r._getColumnWidths(),n=r._isOverflown(t);(r.state.overflown!==n||e.length!==t.length||t.some((function(t,n){return t!==e[n]})))&&r.setState({columnWidths:t,overflown:n})},r._handleResize=function(e){var t=e.width,n=r.props.recalculateThreshold;r._width!==t&&Math.abs(t-r._width)>=n&&(r._width=t,r._calcColumnWidths())},Zo(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{animateContent:this.props.animateContent}},t.prototype.componentWillReceiveProps=function(e){this.props.children!==e.children&&this._calcColumnWidths()},t.prototype.componentDidUpdate=function(e,t){var n=this.state.focusedIndex;t.focusedIndex===n||t.focusedIndex>-1&&n>-1||Ae(this._removeFocus,-1!==this.state.focusedIndex)},t.prototype.componentWillUnmount=function(){-1===this.state.focusedIndex&&Ae(this._removeFocus,!1),window.removeEventListener("keyup",this._determineTabFocus)},t.prototype.render=function(){var e=this.state,t=e.columnWidths,n=e.focusedIndex,i=e.overflown,o=this.props,a=o.children,s=o.className,l=o.component,c=(o.animateContent,o.recalculateThreshold,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["children","className","component","animateContent","recalculateThreshold"])),d=r.Children.map(a,(function(e,o){return e&&(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{key:e.key||o,overflown:i,columnWidths:t,focused:n===o}):e}));return r.createElement(l,qo({},c,{ref:this._setContainer,className:u()("md-expansion-panel-list",s)}),r.createElement(ht,{watchWidth:!0,onResize:this._handleResize}),d)},t}(r.PureComponent);Ho.propTypes={style:o().object,className:o().string,children:o().node,component:o().oneOfType([o().string,o().func,o().object]).isRequired,animateContent:o().bool,recalculateThreshold:o().number.isRequired},Ho.defaultProps={component:"ul",recalculateThreshold:80},Ho.childContextTypes={animateContent:o().bool};var Go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Wo(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Yo=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Wo(this,e.call.apply(e,[this].concat(o))),r.state={hover:!1,pressed:!1},r._handleChange=function(e){var t=r.props,n=t.multiple,i=t.onChange,o=e.target.files;i&&i(n?Array.prototype.slice.call(o):o[0]||null,e)},r._blur=function(){r.props.disabled||(r._timeout?r._attemptedBlur=!0:r.setState({pressed:!1}))},r._handleMouseUp=function(e){r.props.onMouseUp&&r.props.onMouseUp(e),r._blur()},r._handleMouseDown=function(e){r.props.onMouseDown&&r.props.onMouseDown(e),r.props.disabled||r.setState({pressed:!0})},r._handleTouchStart=function(e){r.props.onTouchStart&&r.props.onTouchStart(e),r.props.disabled||r.setState({pressed:!0})},r._handleTouchEnd=function(e){r.props.onTouchEnd&&r.props.onTouchEnd(e),r._blur(),Y("mouseover")},r._handleKeyUp=function(e){r.props.onKeyUp&&r.props.onKeyUp(e),9===(e.which||e.keyCode)&&(window.addEventListener("click",r._blur),r.setState({pressed:!0}))},r._handleKeyDown=function(e){r.props.onKeyDown&&r.props.onKeyDown(e);var t=e.which||e.keyCode;9===t?(window.removeEventListener("click",r._blur),r.setState({pressed:!1})):32!==t&&13!==t||(e.preventDefault(),e.target.click())},r._handleMouseOver=function(e){r.props.onMouseOver&&r.props.onMouseOver(e),r.props.disabled||r.setState({hover:!0})},r._handleMouseLeave=function(e){r.props.onMouseLeave&&r.props.onMouseLeave(e),r.props.disabled||r.setState({hover:!1})},Wo(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.disabled&&!e.disabled&&this.state.hover&&this.setState({hover:!1})},t.prototype.componentWillUpdate=function(e,t){var n=this;!this.state.pressed&&t.pressed&&(this._timeout=setTimeout((function(){n._timeout=null,n._attemptedBlur&&(n._attemptedBlur=!1,n.setState({pressed:!1}))}),450))},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout),window.removeEventListener("click",this._blur)},t.prototype.render=function(){var e=this.state,t=e.hover,n=e.pressed,i=this.props,o=i.style,a=i.className,s=i.labelStyle,l=i.labelClassName,c=i.label,d=i.primary,p=i.secondary,h=i.flat,f=i.id,m=i.name,g=i.iconBefore,y=i.disabled,v=i.accept,b=i.multiple,_=i.swapTheming,w=i.allowDuplicates,x=i.capture,k=i.iconChildren,C=i.iconClassName,S=(i.icon,i.onChange,i.onKeyUp,i.onKeyDown,i.onMouseUp,i.onMouseDown,i.onMouseOver,i.onMouseLeave,i.onTouchStart,i.onTouchEnd,i.value,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["style","className","labelStyle","labelClassName","label","primary","secondary","flat","id","name","iconBefore","disabled","accept","multiple","swapTheming","allowDuplicates","capture","iconChildren","iconClassName","icon","onChange","onKeyUp","onKeyDown","onMouseUp","onMouseDown","onMouseOver","onMouseLeave","onTouchStart","onTouchEnd","value"])),M=this.props.icon;(C||k)&&(M=r.createElement(ve,{iconClassName:C},k));var T=c;M&&(M=r.cloneElement(M,{inherit:!0}),T=r.createElement(An,{label:c,iconBefore:g},M));var E=void 0;return w&&(E=""),r.createElement("div",Go({},S,{style:o,className:u()("md-inline-block md-file-input-container",a)}),r.createElement(se,{component:"label",htmlFor:f,disabled:y,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onKeyDown:this._handleKeyDown,onKeyUp:this._handleKeyUp,onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave,style:s,className:Rn({flat:h,raised:!h,disabled:y,primary:d,secondary:p,hover:t,swapTheming:_,pressed:n},l)},T),r.createElement("input",{id:f,name:m,accept:v,type:"file",multiple:b,disabled:y,"aria-hidden":"true",className:"md-file-input",onChange:this._handleChange,value:E,tabIndex:-1,capture:x}))},t}(r.PureComponent);Yo.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),name:o().string,style:o().object,className:o().string,labelStyle:o().object,labelClassName:o().string,primary:o().bool,secondary:o().bool,flat:o().bool,swapTheming:o().bool,accept:o().string,allowDuplicates:o().bool,multiple:o().bool,label:o().node,iconBefore:o().bool,icon:o().element,onChange:o().func,capture:o().oneOf(["user","environment"]),disabled:o().bool,onKeyUp:o().func,onKeyDown:o().func,onMouseUp:o().func,onMouseDown:o().func,onMouseOver:o().func,onMouseLeave:o().func,onTouchEnd:o().func,onTouchStart:o().func,iconChildren:(0,E.Z)(o().node,"Use `icon` instead"),iconClassName:(0,E.Z)(o().string,"Use `icon` instead"),value:(0,E.Z)(o().string,"There should't be a reason to set the value manually. Check out {@link #allowDuplicates} instead")},Yo.defaultProps={label:"Select a file",icon:r.createElement(ve,null,"file_upload"),allowDuplicates:!1};const Ko=Yo;var Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Jo(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Qo=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=Jo(this,e.call.apply(e,[this].concat(o))),r.state={},r.abort=function(e){var t=e;e?"string"===typeof e.name&&(t=e.name):t=Object.keys(r.state)[0];var n=r.state[t];n&&(n.abort(),(0,a.findDOMNode)(r).querySelector(".md-file-input").value="",r.setState(p(r.state,[t])))},r._uploadFile=function(e){var t=r.props,n=t.onAbort,i=t.onError,o=t.onLoad,a=t.onLoadStart,s=t.onLoadEnd,l=t.onProgress,c=t.readAs,u=e.name,d=e.type,h=new FileReader;return i&&(h.onerror=function(t){i(e,t.target.error,t)}),n&&(h.onabort=function(t){n(e,t)}),a&&(h.onloadstart=function(t){a(e,t)}),s&&(h.onloadend=function(t){s(e,t)}),h.onload=function(t){o&&o(e,t.target.result,t),r.setState(p(r.state,[u]))},l&&(h.onprogress=function(t){t.lengthComputable&&l(e,t.loaded/t.total*100,t)}),c?"function"===typeof c?c(d,e,h):h["readAs"+c](e):d.match(/image|video|audio|application\/pdf/)||u.match(/\.mkv$/)?h.readAsDataURL(e):d.match(/application\/json/)?h.readAsText(e):d.match(/application|model|multipart/)||u.match(/(w|e)ar$/)?h.readAsArrayBuffer(e):h.readAsText(e),h},r._handleUpload=function(e,t){if(r.props.onChange&&r.props.onChange(e,t),e){var n=r.props,i=n.maxSize,o=n.onSizeError,a=Array.isArray(e)?e:[e],s=[];if(i&&(s=a.filter((function(e){return e.size>i})),a=a.filter((function(e){return e.size<=i}))),s.length&&o(s),a.length){var l={};a.forEach((function(e){var t=r._uploadFile(e);l[e.name]=t})),r.setState(l)}}},Jo(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.maxSize,e.readAs,e.onLoad,e.onLoadStart,e.onLoadEnd,e.onProgress,e.onAbort,e.onError,e.onSizeError,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["maxSize","readAs","onLoad","onLoadStart","onLoadEnd","onProgress","onAbort","onError","onSizeError"]));return r.createElement(Ko,Xo({},t,{onChange:this._handleUpload}))},t}(r.PureComponent);Qo.propTypes={style:o().object,className:o().string,labelStyle:o().object,labelClassName:o().string,primary:o().bool,secondary:o().bool,flat:o().bool,accept:o().string,multiple:o().bool,label:o().node,iconChildren:o().node,iconClassName:o().string,maxSize:o().number,onSizeError:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s;return"number"===typeof e.maxSize?(s=o().func).isRequired.apply(s,[e,t,n].concat(i)):null},readAs:o().oneOfType([o().oneOf(["DataURL","ArrayBuffer","Text"]),o().func]),onAbort:o().func,onError:o().func,onLoad:o().func,onLoadStart:o().func,onLoadEnd:o().func,onProgress:o().func,allowDuplicates:o().bool,onChange:o().func,capture:o().oneOf(["user","environment"]),value:(0,E.Z)(o().string,"There should't be a reason to set the value manually. Check out {@link #allowDuplicates} instead")};var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function ta(){for(var e=[],t=null,n=-1,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];i.some((function(r,i){if(r){var o="undefined"===typeof r?"undefined":ea(r);"number"===o||"string"===o?e.push(r):"object"===o&&(t=r,n=i+1)}return t}));var a=e.join("__");t&&(t=Object.keys(t).reduce((function(e,n){return e[a+"--"+n]=t[n],e}),{}));var s=n>-1?i.slice(n):null;return u()(a,t,s).trim()}var na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ra=["className","stacked","container","noSpacing","gutter","spacing"],ia=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return r.state={className:t.getClassName(n)},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getClassName=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.className,r=t.stacked,i=t.noSpacing,o=t.gutter,a=t.spacing,s=t.container;return ta("md-grid",((e={stacked:r,"no-spacing":i})[o+"-"+a]=Mt(o)&&Mt(a),e[s]=s,e),n)},t.prototype.componentWillMount=function(){this.setState({className:t.getClassName(this.props)})},t.prototype.componentWillReceiveProps=function(e){var n=this;ra.some((function(t){return n.props[t]!==e[t]}))&&this.setState({className:t.getClassName(e)})},t.prototype.render=function(){var e=this.state.className,t=this.props,n=t.style,i=t.component,o=t.children,a=(t.className,t.container,t.stacked,t.noSpacing,t.gutter,t.spacing,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","component","children","className","container","stacked","noSpacing","gutter","spacing"]));return"function"===typeof o?o({style:n,className:e}):r.createElement(i,na({},a,{style:n,className:e}),o)},t}(r.PureComponent);ia.propTypes={style:o().object,className:o().string,component:o().oneOfType([o().string,o().func,o().object]),children:o().oneOfType([o().func,o().node]),container:o().string,stacked:o().bool,noSpacing:o().bool,gutter:o().number,spacing:o().number},ia.defaultProps={component:"div",stacked:!1,noSpacing:!1};const oa=ia;var aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var sa=["className","align","position","size","offset","order","phoneSize","phoneOrder","phoneOffset","phoneHidden","tabletSize","tabletOrder","tabletOffset","tabletHidden","desktopSize","desktopOrder","desktopOffset","desktopHidden"],la=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return r.state={className:t.getClassName(n)},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getClassName=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.className,r=t.align,i=t.position,o=t.size,a=t.order,s=t.offset,l=t.phoneSize,c=t.phoneOrder,u=t.phoneOffset,d=t.phoneHidden,p=t.tabletSize,h=t.tabletOrder,f=t.tabletOffset,m=t.tabletHidden,g=t.desktopSize,y=t.desktopOrder,v=t.desktopOffset,b=t.desktopHidden;return ta("md-cell",((e={})[r]=r,e[i]=i,e[o]=o,e["order-"+a]=a,e[s+"-offset"]=s,e[l+"-phone"]=l,e["order-"+c+"-phone"]=c,e[u+"-phone-offset"]=u,e["phone-hidden"]=d,e[p+"-tablet"]=p,e["order-"+h+"-tablet"]=h,e[f+"-tablet-offset"]=f,e["tablet-hidden"]=m,e[g+"-desktop"]=g,e["order-"+y+"-desktop"]=y,e[v+"-desktop-offset"]=v,e["desktop-hidden"]=b,e),n)},t.prototype.componentWillMount=function(){this.setState({className:t.getClassName(this.props)})},t.prototype.componentWillReceiveProps=function(e){var n=this;sa.some((function(t){return n.props[t]!==e[t]}))&&this.setState({className:t.getClassName(e)})},t.prototype.render=function(){var e=this.state.className,t=this.props,n=t.style,i=t.component,o=t.children,a=(t.className,t.align,t.position,t.size,t.offset,t.order,t.phoneSize,t.phoneOrder,t.phoneOffset,t.phoneHidden,t.tabletSize,t.tabletOrder,t.tabletOffset,t.tabletHidden,t.desktopSize,t.desktopOrder,t.desktopOffset,t.desktopHidden,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","component","children","className","align","position","size","offset","order","phoneSize","phoneOrder","phoneOffset","phoneHidden","tabletSize","tabletOrder","tabletOffset","tabletHidden","desktopSize","desktopOrder","desktopOffset","desktopHidden"]));return"function"===typeof o?o({style:n,className:e}):r.createElement(i,aa({},a,{style:n,className:e}),o)},t}(r.PureComponent);la.propTypes={style:o().object,className:o().string,component:o().oneOfType([o().string,o().func,o().object]),children:o().oneOfType([o().func,o().node]),align:o().oneOf(["top","middle","bottom","stretch"]),position:o().oneOf(["center","right"]),size:o().number,order:o().number,offset:o().number,phoneSize:o().number,phoneOrder:o().number,phoneOffset:o().number,phoneHidden:o().bool,tabletSize:o().number,tabletOrder:o().number,tabletOffset:o().number,tabletHidden:o().bool,desktopSize:o().number,desktopOrder:o().number,desktopOffset:o().number,desktopHidden:o().bool},la.defaultProps={component:"div",phoneHidden:!1,tabletHidden:!1,desktopHidden:!1};const ca=la;var ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function da(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var pa=["className","cellClassName","stacked","container","noSpacing","gutter","spacing","align","position","size","offset","order","phoneSize","phoneOrder","phoneOffset","phoneHidden","tabletSize","tabletOrder","tabletOffset","tabletHidden","desktopSize","desktopOrder","desktopOffset","desktopHidden"],ha=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return r.state=t.getClassNames(n),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getClassNames=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=e.cellClassName,r=da(e,["className","cellClassName"]);return{className:oa.getClassName(ua({className:t},r)),cellClassName:ca.getClassName(ua({className:n},r))}},t.prototype.componentWillMount=function(){this.setState(t.getClassNames(this.props))},t.prototype.componentWillReceiveProps=function(e){var n=this;pa.some((function(t){return n.props[t]!==e[t]}))&&this.setState(t.getClassNames(e))},t.prototype.render=function(){var e=this.state,t=e.className,n=e.cellClassName,i=this.props,o=i.style,a=i.cellStyle,s=i.component,l=i.children,c=(i.className,i.cellClassName,i.container,i.noSpacing,i.stacked,i.gutter,i.spacing,i.align,i.position,i.size,i.offset,i.order,i.phoneSize,i.phoneOrder,i.phoneOffset,i.phoneHidden,i.tabletSize,i.tabletOrder,i.tabletOffset,i.tabletHidden,i.desktopSize,i.desktopOrder,i.desktopOffset,i.desktopHidden,da(i,["style","cellStyle","component","children","className","cellClassName","container","noSpacing","stacked","gutter","spacing","align","position","size","offset","order","phoneSize","phoneOrder","phoneOffset","phoneHidden","tabletSize","tabletOrder","tabletOffset","tabletHidden","desktopSize","desktopOrder","desktopOffset","desktopHidden"]));return"function"===typeof l?l({style:o,className:t,cellStyle:a,cellClassName:n}):r.createElement(s,ua({},c,{style:o,className:t}),r.Children.map(l,(function(e){if(!e)return e;var t=e.props.style;return a&&(t=t?ua({},a,t):a),r.cloneElement(e,{style:t,className:u()(e.props.className,n)})})))},t}(r.PureComponent);ha.propTypes={style:o().object,className:o().string,cellStyle:o().object,cellClassName:o().string,component:o().oneOfType([o().string,o().func,o().object]),children:o().oneOfType([o().func,o().node]),container:o().string,stacked:o().bool,noSpacing:o().bool,gutter:o().number,spacing:o().number,align:o().oneOf(["top","middle","bottom","stretch"]),position:o().oneOf(["center","right"]),size:o().number,order:o().number,offset:o().number,phoneSize:o().number,phoneOrder:o().number,phoneOffset:o().number,phoneHidden:o().bool,tabletSize:o().number,tabletOrder:o().number,tabletOffset:o().number,tabletHidden:o().bool,desktopSize:o().number,desktopOrder:o().number,desktopOffset:o().number,desktopHidden:o().bool},ha.defaultProps={component:"div",stacked:!1,noSpacing:!1,phoneHidden:!1,tabletHidden:!1,desktopHidden:!1};var fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ma=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.tileStyle,i=e.tileClassName,o=e.primaryAction,a=e.secondaryAction,s=e.primaryText,l=e.secondaryText,c=e.threeLines,d=e.leftIcon,p=e.leftAvatar,h=e.rightIcon,f=e.rightAvatar,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","tileStyle","tileClassName","primaryAction","secondaryAction","primaryText","secondaryText","threeLines","leftIcon","leftAvatar","rightIcon","rightAvatar"]),g=r.Children.only(o||a),y=r.createElement(Ce,{key:"text",primaryText:g.props.label||s,secondaryText:l,className:u()({"md-tile-content--left-icon":d,"md-tile-content--left-avatar":p,"md-tile-content--left-button":o,"md-tile-content--right-padding":o})});g=(0,r.cloneElement)(g,{className:u()("md-list-control",{"md-list-control--right":a},g.props.className),label:y});var v=r.createElement(we,{key:"left-addon",icon:d,avatar:p}),b=r.createElement(we,{key:"right-addon",icon:h,avatar:f}),_=!!d||!!h,w=!!p||!!f;return r.createElement("li",fa({},m,{className:u()("md-list-item",t)}),r.createElement("div",{style:n,className:u()("md-list-tile",{"md-list-tile--icon":!l&&_&&!w,"md-list-tile--avatar":!l&&w,"md-list-tile--two-lines":l&&!c,"md-list-tile--three-lines":l&&c,"md-list-tile--control-left":o,"md-list-tile--control-right":a},P({text:!0}),i)},v,g,b))},t}(r.PureComponent);ma.propTypes={style:o().object,className:o().string,tileStyle:o().object,tileClassName:o().string,primaryText:o().node,secondaryText:o().node,threeLines:o().bool,primaryAction:o().element,secondaryAction:o().element,leftIcon:o().node,leftAvatar:o().node,rightIcon:o().node,rightAvatar:o().node,"aria-setsize":o().number,"aria-posinset":function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=o().number;return"undefined"!==typeof e["aria-setsize"]&&(a=a.isRequired),a.apply(void 0,[e,t].concat(r))}};var ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ya=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.component,i=t.className,o=t.children,a=t.forceAspect,s=t.aspectRatio,l=(t.expandable,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["component","className","children","forceAspect","aspectRatio","expandable"]));return r.createElement(n,ga({},l,{className:u()("md-media",(e={},e["md-media--"+s]=a,e),i)}),o)},t}(r.PureComponent);ya.propTypes={className:o().string,children:o().node,forceAspect:o().bool,aspectRatio:function(e,t,n){for(var r,i=e[t],a=arguments.length,s=Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];var c=(r=o().string).isRequired.apply(r,[e,t,n].concat(s));return c||2===i.split("-").length||(c=new Error("Your provided an `"+t+"` prop to the "+n+" that is not a valid aspect ratio `"+i+"`. This should be in the form of '{width}-{height}'.")),c},expandable:o().bool,component:o().oneOfType([o().func,o().string,o().object]).isRequired},ya.defaultProps={forceAspect:!0,aspectRatio:"16-9",component:"section"};var va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ba=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.component,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","component"]);return r.createElement(n,va({className:u()("md-media-overlay",t)},i))},t}(r.PureComponent);ba.propTypes={style:o().object,className:o().string,children:o().node,component:o().oneOfType([o().func,o().string,o().object]).isRequired},ba.defaultProps={component:"div"};var _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var wa=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.className,i=e.prominent,o=e.offset,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["title","className","prominent","offset"]);if(!t)return null;var s=u()("md-title md-title--toolbar",{"md-title--toolbar-prominent":i,"md-title--toolbar-offset":o},n);if((0,r.isValidElement)(t)){var l=r.Children.only(t);return(0,r.cloneElement)(t,_a({},a,{id:l.props.id||a.id,className:u()(s,l.props.className)}))}return r.createElement("h2",_a({},a,{className:s}),t)},t}(r.PureComponent);wa.propTypes={className:o().string,prominent:o().bool,offset:o().bool,title:o().node};const xa=wa;var ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ca=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.component,o=e.titleStyle,a=e.titleClassName,s=e.prominentTitle,l=e.themed,c=e.singleColor,d=e.actions,p=e.fixed,h=e.children,f=e.inset,m=e.titleId,g=(e.nav,e.title,e.titleMenu,e.zDepth,e.colored,e.prominent,e.containerStyle,e.containerClassName,e.actionLeft),y=e.actionsRight,v=e.primary,b=e.secondary,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","component","titleStyle","titleClassName","prominentTitle","themed","singleColor","actions","fixed","children","inset","titleId","nav","title","titleMenu","zDepth","colored","prominent","containerStyle","containerClassName","actionLeft","actionsRight","primary","secondary"]),w=this.props,x=w.colored,k=w.title,C=w.titleMenu,S=w.nav,M=w.prominent,T=w.zDepth;if(x=x||v||b,M=M||s,k=r.createElement(xa,{key:"title",style:o,className:a,prominent:s,offset:s,id:"undefined"===typeof m&&_.id?_.id+"-title":m,title:k}),S||g){var E=r.Children.only(S||g);S=(0,r.cloneElement)(S,{className:u()("md-btn--toolbar md-toolbar--action-left",E.props.className)})}var P=void 0;return(d||y)&&(P=r.Children.map(r.Children.toArray(d||y),(function(e){return(0,r.cloneElement)(e,{className:u()("md-btn--toolbar",e.props.className)})})),P=r.createElement("div",{key:"actions",className:"md-cell--right md-toolbar--action-right"},P)),C&&(C=r.Children.only(C),C=(0,r.cloneElement)(C,{className:u()("md-title md-title--toolbar md-select-field--toolbar",{"md-title--toolbar-offset":s,"md-title--toolbar-prominent":s},C.props.className),position:C.props.position||"tl",toolbar:!0})),"number"!==typeof T&&(T=p?2:0),r.createElement(Cn,ka({},_,{component:i,zDepth:T,style:t,className:u()("md-toolbar",{"md-background--primary":x,"md-toolbar--themed":l,"md-toolbar--text-white":c&&x,"md-toolbar--prominent":M,"md-toolbar--fixed":p,"md-toolbar--inset":f},n)}),S,k,C,h,P)},t}(r.PureComponent);Ca.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,titleStyle:o().object,titleClassName:o().string,prominent:o().bool,prominentTitle:o().bool,title:_(o().node,"titleMenu"),titleId:o().oneOfType([o().number,o().string]),titleMenu:o().element,nav:o().element,actions:o().oneOfType([o().element,o().arrayOf(o().element)]),children:o().node,fixed:o().bool,singleColor:o().bool,themed:o().bool,colored:_(o().bool,"themed"),component:o().oneOfType([o().func,o().string,o().object]).isRequired,inset:o().bool,zDepth:wn(o().number,0,5),containerStyle:(0,E.Z)(o().object,"The `container` no longer exists in the `Toolbar`. Use the `style` prop instead"),containerClassName:(0,E.Z)(o().string,"The `container` no longer exists in the `Toolbar`. Use the `className` prop instead"),primary:(0,E.Z)(o().bool,"Use the `colored` prop instead"),secondary:(0,E.Z)(o().bool,"Toolbars can no longer be themed to the secondary color. Use the `colored` prop instead"),actionLeft:(0,E.Z)(o().element,"Use the `nav` prop instead"),actionsRight:(0,E.Z)(o().node,"Use the `menu` prop and/or the `actions` prop instead")},Ca.defaultProps={singleColor:!0,component:"header"};const Sa=Ca;var Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ta(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ea=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Ta(this,e.call.apply(e,[this].concat(o))),r._handleClick=function(e){r.props.onClick&&r.props.onClick(e),document.getElementById(r.context.id).focus()},Ta(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className"]),i=this.context,o=i.id,a=i.label;return r.createElement("a",Ma({},n,{id:"jump-to-"+o,href:"#"+o,onClick:this._handleClick,className:u()("md-content-jump",t)}),a)},t}(r.PureComponent);Ea.propTypes={className:o().string,onClick:o().func},Ea.contextTypes={id:o().oneOfType([o().number,o().string]).isRequired,label:o().node.isRequired};const Pa=Ea;var Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Oa(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var La=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Oa(this,e.call.apply(e,[this].concat(o))),r._handleClick=function(e){r.props.onClick&&r.props.onClick(e),r.context.onCloseClick&&r.context.onCloseClick(e)},Oa(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.context.closeIcon;return r.createElement(Wn,Ia({},this.props,{icon:!0,key:"close",onClick:this._handleClick,iconEl:e}))},t}(r.PureComponent);La.propTypes={className:o().string,onClick:o().func},La.contextTypes={closeIcon:o().element,onCloseClick:o().func};const Ra=La;var ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Da(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Aa=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Da(this,e.call.apply(e,[this].concat(o))),r.state={active:!1},r._handleMouseOver=function(e){r.props.onMouseOver&&r.props.onMouseOver(e),r.props.disabled||r.setState({active:!0})},r._handleMouseLeave=function(e){r.props.onMouseLeave&&r.props.onMouseLeave(e),r.props.disabled||r.setState({active:!1})},r._handleTouchStart=function(e){r.props.onTouchStart&&r.props.onTouchStart(e),r._touched=!0,r.setState({active:!0,touchedAt:Date.now()})},r._handleTouchEnd=function(e){r.props.onTouchEnd&&r.props.onTouchEnd(e);var t=Date.now()-r.state.touchedAt;r._touchTimeout=setTimeout((function(){r._touchTimeout=null,r.setState({active:!1})}),t>450?0:450-t)},Da(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillUnmount=function(){this._touchTimeout&&clearTimeout(this._touchTimeout)},t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.tileStyle,o=e.tileClassName,a=e.leftIcon,s=e.leftAvatar,l=e.active,c=e.activeClassName,d=e.itemComponent,p=(e.primaryText,e.secondaryText,e.rightIcon,e.rightAvatar,e.threeLines,e.children,e.defaultOpen,e.isOpen,e.inset,e.nestedItems,e.animateNestedItems,e.expanderIcon,e.expanderIconChildren,e.expanderIconClassName,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","tileStyle","tileClassName","leftIcon","leftAvatar","active","activeClassName","itemComponent","primaryText","secondaryText","rightIcon","rightAvatar","threeLines","children","defaultOpen","isOpen","inset","nestedItems","animateNestedItems","expanderIcon","expanderIconChildren","expanderIconClassName"]));return r.createElement(d,{style:t,className:n},r.createElement(se,ja({},p,{style:i,className:u()("md-list-tile md-list-tile--icon md-list-tile--mini",{"md-list-tile--active":this.state.active&&!this._touched},o),onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd}),r.createElement(we,{active:l,activeClassName:c,icon:a,avatar:s})))},t}(r.PureComponent);Aa.propTypes={style:o().object,className:o().string,tileStyle:o().object,tileClassName:o().string,component:o().oneOfType([o().func,o().string,o().object]),active:o().bool,activeClassName:o().string,leftIcon:o().node,leftAvatar:o().node,disabled:o().bool,onTouchStart:o().func,onTouchEnd:o().func,onMouseOver:o().func,onMouseLeave:o().func,defaultOpen:o().bool,itemComponent:o().oneOfType([o().string,o().func,o().object]).isRequired},Aa.defaultProps={activeClassName:"md-text--theme-primary",component:"div",itemComponent:"li"};const Na=Aa;var Fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function za(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Ba=Fo.DrawerTypes;function Ua(e){var t=Ba.PERSISTENT_MINI;return-1===[t,Ba.TEMPORARY_MINI].indexOf(e)?e:t===e?Ba.PERSISTENT:Ba.TEMPORARY}function $a(e,t){if((0,r.isValidElement)(e))return e;var n=e.divider,i=e.subheader,o=e.key,a=za(e,["divider","subheader","key"]);return n||i?null:r.createElement(Na,Fa({key:o||t},a))}var Va=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));qa.call(r);var i=n.defaultMedia,o=n.defaultVisible,a=n.initialDrawerType;r.state={mobile:a||"mobile"===i,tablet:a||"tablet"===i,desktop:a||"desktop"===i},"undefined"===typeof n.drawerType&&(r.state.drawerType=n[(a||i)+"DrawerType"]);var s=d(n,r.state,"drawerType");return"undefined"===typeof n.visible&&(r.state.visible=Oo(s),r.state.visible||"undefined"===typeof o||(r.state.visible=o)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getCurrentMedia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultProps,n=e.mobileDrawerType,r=e.tabletDrawerType,i=e.desktopDrawerType,o=e.constantDrawerType,a=za(e,["mobileDrawerType","tabletDrawerType","desktopDrawerType","constantDrawerType"]);return Fo.getCurrentMedia(Fa({mobileType:n,tabletType:r,desktopType:i,constantType:o},a))},t.prototype.getChildContext=function(){var e=this.props,t=e.persistentIcon,n=e.contentId,r=e.jumpLabel,i=e.persistentIconChildren,o=e.persistentIconClassName,a=e.closeIconChildren;return{id:n,label:r,closeIcon:be(e.closeIconClassName||o,a||i,t),onCloseClick:this._toggleVisibility,renderNode:this.context.renderNode}},t.prototype.componentWillReceiveProps=function(e){d(this.props,this.state,"visible")!==d(e,this.state,"visible")&&this._animate(e)},t.prototype.componentWillUnmount=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.className,o=e.toolbarStyle,a=e.toolbarClassName,s=e.drawerStyle,c=e.drawerClassName,p=e.contentStyle,h=e.contentClassName,f=e.contentComponent,m=e.miniDrawerStyle,g=e.miniDrawerClassName,y=e.miniNavStyle,v=e.miniNavClassName,b=e.miniDrawerId,_=e.miniNavItemsId,w=e.navItems,x=e.children,k=e.drawerId,C=e.drawerTitle,S=e.drawerZDepth,M=e.drawerChildren,T=e.drawerHeaderChildren,E=e.drawerTransitionDuration,P=e.toolbarId,I=e.toolbarTitle,O=e.toolbarTitleMenu,L=e.toolbarTitleStyle,R=e.toolbarTitleClassName,j=e.toolbarActions,D=e.toolbarProminent,A=e.toolbarProminentTitle,N=e.toolbarThemeType,F=e.toolbarSingleColor,z=e.toolbarChildren,B=e.toolbarZDepth,U=e.mobileDrawerType,$=e.tabletDrawerType,V=e.desktopDrawerType,q=e.transitionName,Z=e.transitionEnterTimeout,H=e.transitionLeaveTimeout,G=e.extractMini,W=e.miniDrawerHeader,Y=e.miniDrawerChildren,K=e.footer,X=e.includeDrawerHeader,J=e.contentId,Q=e.contentProps,ee=e.constantDrawerType,te=e.temporaryIcon,ne=e.temporaryIconChildren,re=e.temporaryIconClassName,ie=e.menuIconChildren,oe=e.menuIconClassName,ae=(e.drawerType,e.drawerHeader,e.renderNode,e.jumpLabel,e.persistentIcon,e.onDrawerChange,e.closeIconChildren,e.closeIconClassName,e.persistentIconChildren,e.persistentIconClassName,za(e,["id","style","className","toolbarStyle","toolbarClassName","drawerStyle","drawerClassName","contentStyle","contentClassName","contentComponent","miniDrawerStyle","miniDrawerClassName","miniNavStyle","miniNavClassName","miniDrawerId","miniNavItemsId","navItems","children","drawerId","drawerTitle","drawerZDepth","drawerChildren","drawerHeaderChildren","drawerTransitionDuration","toolbarId","toolbarTitle","toolbarTitleMenu","toolbarTitleStyle","toolbarTitleClassName","toolbarActions","toolbarProminent","toolbarProminentTitle","toolbarThemeType","toolbarSingleColor","toolbarChildren","toolbarZDepth","mobileDrawerType","tabletDrawerType","desktopDrawerType","transitionName","transitionEnterTimeout","transitionLeaveTimeout","extractMini","miniDrawerHeader","miniDrawerChildren","footer","includeDrawerHeader","contentId","contentProps","constantDrawerType","temporaryIcon","temporaryIconChildren","temporaryIconClassName","menuIconChildren","menuIconClassName","drawerType","drawerHeader","renderNode","jumpLabel","persistentIcon","onDrawerChange","closeIconChildren","closeIconClassName","persistentIconChildren","persistentIconClassName"])),se=this.props.drawerHeader,le=this.state,ce=le.desktop,ue=le.tablet,de=le.contentActive,pe=d(this.props,this.state,"drawerType"),he=d(this.props,this.state,"visible"),fe=d(this.props,this.context,"renderNode"),me=Lo(pe),ge=Io(pe),ye=function(e){return-1!==[Mo,To].indexOf(e)}(pe),ve=pe===Ba.CLIPPED,_e=pe===Ba.FLOATING,we=ce||ue?!ge&&he:he,xe=u()({"md-toolbar-relative":!D&&!A,"md-toolbar-relative--prominent":D||A}),ke=void 0;(ge||ye)&&(ke=r.createElement(Wn,{key:"nav",onClick:this._toggleVisibility,disabled:ye&&he,icon:!0,iconEl:be(oe||re,ie||ne,te)}));var Ce,Se=void 0;(ye&&(Se=r.createElement(Ra,null)),!se&&X)&&(se=r.createElement(Sa,{key:"drawer-header",title:C,actions:he&&ke?Se:null,className:u()("md-divider-border md-divider-border--bottom",(Ce={},Ce[xe]=ve||_e,Ce))},T,r.createElement(Pa,null)));var Me=void 0;if(me){var Te=void 0;G&&(Te=r.createElement(Re,{id:_,key:"mini-nav-items",style:y,className:u()(v,xe)},w.map($a))),Me=r.createElement(Fo,{id:b,key:"mini-drawer",type:pe,renderNode:fe,"aria-hidden":he,style:m,className:g},W,Te,Y)}var Ee=!ve&&!_e&&we;return r.createElement("div",{id:t,style:n,className:i},r.createElement(Sa,{id:P,colored:"colored"===N,themed:"themed"===N,singleColor:F,style:o,className:u()({"md-toolbar--over-drawer":ve||_e||me&&!he},a),title:I,titleMenu:O,prominent:D,prominentTitle:A,titleStyle:L,titleClassName:u()({"md-title--drawer-active":de,"md-transition--deceleration":we&&he,"md-transition--acceleration":we&&!he,"md-title--permanent-offset":Ee&&Oo(pe),"md-title--persistent-offset":Ee&&ye},R),nav:ke,actions:j,fixed:!0,zDepth:B},z),Me,r.createElement(Fo,Fa({},ae,{id:k,constantType:ee,transitionDuration:E,header:se,style:s,className:c,navItems:w,renderNode:fe,mobileType:U,tabletType:$,desktopType:V,type:Ua(pe),visible:he,zDepth:S,onVisibilityChange:this._handleVisibility,onMediaTypeChange:this._handleTypeChange}),M),r.createElement(l(),Fa({},Q,{id:J,component:f,transitionName:q,transitionEnter:!!Z,transitionEnterTimeout:Z,transitionLeave:!!H,transitionLeaveTimeout:H,tabIndex:-1,style:p,className:u()("md-navigation-drawer-content",{"md-navigation-drawer-content--active":de,"md-navigation-drawer-content--inactive":!he,"md-navigation-drawer-content--prominent-offset":D||A,"md-transition--deceleration":he,"md-transition--acceleration":!he,"md-drawer-relative":we,"md-drawer-relative--mini":me&&(!he||ge)},xe,h)}),x),K)},t}(r.PureComponent);Va.DrawerType={_warned:!1,_msg:"Invalid use of `NavigationDrawer.DrawerType.{{TYPE}}`. The `NavigationDrawer.DrawerType` has been deprecated and will be removed in the next major release. Please use the `NavigationDrawer.DrawerTypes.{{TYPE}}` instead.",get FULL_HEIGHT(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"FULL_HEIGHT")),this._warned=!0,Ba.FULL_HEIGHT},get CLIPPED(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"CLIPPED")),this._warned=!0,Ba.CLIPPED},get FLOATING(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"FLOATING")),this._warned=!0,Ba.FLOATING},get PERSISTENT(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"PERSISTENT")),this._warned=!0,Ba.PERSISTENT},get PERSISTENT_MINI(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"PERSISTENT_MINI")),this._warned=!0,Ba.PERSISTENT_MINI},get TEMPORARY(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"TEMPORARY")),this._warned=!0,Ba.TEMPORARY},get TEMPORARY_MINI(){return this._warned||console.error(this._msg.replace(/{{TYPE}}/g,"TEMPORARY_MINI")),this._warned=!0,Ba.TEMPORARY_MINI}},Va.DrawerTypes=Ba,Va.propTypes={id:o().oneOfType([o().number,o().string]),drawerId:o().oneOfType([o().number,o().string]),navItemsId:o().oneOfType([o().number,o().string]),miniDrawerId:o().oneOfType([o().number,o().string]),miniNavItemsId:o().oneOfType([o().number,o().string]),toolbarId:o().oneOfType([o().number,o().string]),contentId:(0,je.default)(o().oneOfType([o().number,o().string])),style:o().object,className:o().string,toolbarStyle:o().object,toolbarClassName:o().string,toolbarTitleStyle:o().object,toolbarTitleClassName:o().string,drawerStyle:o().object,drawerClassName:o().string,navStyle:o().object,navClassName:o().string,miniDrawerStyle:o().object,miniDrawerClassName:o().string,miniNavStyle:o().object,miniNavClassName:o().string,contentStyle:o().object,contentClassName:o().string,overlayStyle:o().object,overlayClassName:o().string,children:o().node,includeDrawerHeader:o().bool,drawerHeader:o().node,drawerTitle:_(o().node,"drawerHeader"),drawerZDepth:o().number,drawerChildren:o().node,drawerHeaderChildren:_(o().node,"drawerHeader"),position:o().oneOf(["left","right"]).isRequired,navItems:o().arrayOf(o().oneOfType([o().element,o().shape({divider:o().bool,subheader:o().bool,primaryText:o().node})])),mobileDrawerType:o().oneOf([Ba.TEMPORARY,Ba.TEMPORARY_MINI]).isRequired,tabletDrawerType:o().oneOf([Ba.FULL_HEIGHT,Ba.CLIPPED,Ba.FLOATING,Ba.PERSISTENT,Ba.PERSISTENT_MINI,Ba.TEMPORARY,Ba.TEMPORARY_MINI]).isRequired,desktopDrawerType:o().oneOf([Ba.FULL_HEIGHT,Ba.CLIPPED,Ba.FLOATING,Ba.PERSISTENT,Ba.PERSISTENT_MINI,Ba.TEMPORARY,Ba.TEMPORARY_MINI]).isRequired,drawerType:o().oneOf([Ba.FULL_HEIGHT,Ba.CLIPPED,Ba.FLOATING,Ba.PERSISTENT,Ba.PERSISTENT_MINI,Ba.TEMPORARY,Ba.TEMPORARY_MINI]),defaultMedia:o().oneOf(["mobile","tablet","desktop"]),mobileMinWidth:o().number.isRequired,tabletMinWidth:o().number.isRequired,desktopMinWidth:o().number.isRequired,onMediaTypeChange:o().func,defaultVisible:o().bool,visible:b(o().bool,"onVisibilityChange","defaultVisible"),onVisibilityChange:o().func,extractMini:o().bool,miniDrawerHeader:o().node,miniDrawerChildren:o().node,autoclose:o().bool,toolbarTitle:_(o().node,"toolbarTitleMenu"),toolbarTitleMenu:o().element,toolbarThemeType:o().oneOf(["default","colored","themed"]).isRequired,toolbarSingleColor:o().bool,toolbarProminent:o().bool,toolbarProminentTitle:o().bool,toolbarActions:Sa.propTypes.actions,toolbarChildren:Sa.propTypes.children,toolbarZDepth:o().number,contentComponent:o().oneOfType([o().func,o().string,o().object]).isRequired,footer:o().node,temporaryIcon:o().element,persistentIcon:o().element,transitionName:o().string.isRequired,transitionEnterTimeout:o().number,transitionLeaveTimeout:o().number,drawerTransitionDuration:o().number.isRequired,contentProps:o().object,jumpLabel:o().node.isRequired,portal:o().bool,renderNode:o().object,lastChild:o().bool,constantDrawerType:o().bool,menuIconChildren:(0,E.Z)(o().node,"Use `temporaryIcon` instead"),menuIconClassName:(0,E.Z)(o().string,"Use `temporaryIcon` instead"),closeIconChildren:(0,E.Z)(o().node,"Use `persistentIcon` instead"),closeIconClassName:(0,E.Z)(o().string,"Use `persistentIcon` instead"),temporaryIconChildren:(0,E.Z)(o().node,"Use the `temporaryIcon` instead"),temporaryIconClassName:(0,E.Z)(o().string,"Use the `temporaryIcon` instead"),persistentIconChildren:(0,E.Z)(o().node,"Use the `persistentIcon` instead"),persistentIconClassName:(0,E.Z)(o().string,"Use the `persistentIcon` prop instead"),onDrawerChange:(0,E.Z)(o().func,"Use `onVisibilityChange` or `onMediaTypeChange` instead"),onVisibilityToggle:(0,E.Z)(o().func,"Use `onVisibilityChange` instead"),contentTransitionName:(0,E.Z)(o().string,"Use `transitionName` instead"),contentTransitionEnterTimeout:(0,E.Z)(o().number,"Use `transtionEnterTimeout` instead"),contentTransitionLeaveTimeout:(0,E.Z)(o().number,"Use `transtionLeaveTimeout` instead"),initialDrawerType:(0,E.Z)(o().oneOf(["mobile","tablet","desktop"]),"Use `defaultMedia` instead")},Va.contextTypes={renderNode:o().object},Va.childContextTypes={closeIcon:o().element,onCloseClick:o().func,id:o().oneOfType([o().number,o().string]).isRequired,label:o().node.isRequired,renderNode:o().object},Va.defaultProps={autoclose:Fo.defaultProps.autoclose,contentId:"main-content",constantDrawerType:!1,jumpLabel:"Jump to content",extractMini:!0,position:Fo.defaultProps.position,defaultMedia:Fo.defaultProps.defaultMedia,mobileDrawerType:Fo.defaultProps.mobileType,tabletDrawerType:Fo.defaultProps.tabletType,desktopDrawerType:Fo.defaultProps.desktopType,mobileMinWidth:Fo.defaultProps.mobileMinWidth,tabletMinWidth:Fo.defaultProps.tabletMinWidth,desktopMinWidth:Fo.defaultProps.desktopMinWidth,includeDrawerHeader:!0,contentComponent:"main",temporaryIcon:r.createElement(ve,null,"menu"),toolbarThemeType:"colored",persistentIcon:r.createElement(ve,null,"arrow_back"),transitionName:"md-cross-fade",transitionEnterTimeout:300,drawerTransitionDuration:Fo.defaultProps.transitionDuration};var qa=function(){var e=this;this._animate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props;Io(d(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.state,"drawerType"))||(e._timeout&&clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.setState({contentActive:!1})}),t.drawerTransitionDuration),e.setState({contentActive:!0}))},this._toggleVisibility=function(t){var n=e.props,r=n.onVisibilityToggle,i=n.onVisibilityChange,o=n.onDrawerChange,a=!d(e.props,e.state,"visible"),s=i||r||o;s&&s(a,t),"undefined"===typeof e.props.visible&&(e.setState({visible:a}),e._animate(e.props))},this._handleVisibility=function(t){var n=e.props,r=n.onVisibilityToggle,i=n.onVisibilityChange,o=n.onDrawerChange,a=i||r||o;a&&a(t),"undefined"===typeof e.props.visible&&(e.setState({visible:t}),e._animate(e.props))},this._handleTypeChange=function(t,n){var r=e.props.onMediaTypeChange,i=n;r&&r(t,n),"undefined"===typeof e.props.drawerType&&(i=Fa({},n,{drawerType:t})),e.setState(i)}};function Za(e){return!!e&&"function"===typeof e.getTime&&e.getTime()===e.getTime()}function Ha(e){return Za(e)?new Date(e.getFullYear(),e.getMonth()+1,0):null}function Ga(e,t,n){if(!Za(e))return null;if(0===t)return new Date(e);n||(n=e.getDate());var r=new Date(e);return r.setDate(1),r.setMonth(r.getMonth()+t),1!==n&&n<=function(e){var t=Ha(e);return null===t?-1:t.getDate()}(r)&&r.setDate(n),r}function Wa(e,t,n,r){switch(n){case"D":return function(e,t){if(!Za(e))return null;var n=new Date(e);return n.setDate(n.getDate()+t),n}(e,t);case"M":return Ga(e,t,r);case"Y":return function(e,t){if(!Za(e))return null;var n=new Date(e);return n.setFullYear(n.getFullYear()+t),n}(e,t);default:return e}}function Ya(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e||t?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e||t?!(!Za(e)||!Za(t))&&e.getFullYear()===t.getFullYear():n}(e,t,n)&&e.getMonth()===t.getMonth():n}function Ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e||t?Ya(e,t,n)&&e.getDate()===t.getDate():n}const Xa="undefined"!==typeof Intl&&"undefined"!==typeof Intl.DateTimeFormat?Intl.DateTimeFormat:function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.locales=t,this.options=n}return e.prototype.format=function(e){return e.toLocaleString()},e}();var Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Qa=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.active,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","active"]);return r.createElement("button",Ja({},i,{type:"button",className:u()("md-btn md-pointer--hover md-picker-control md-picker-text",{"md-picker-text--active":n},t)}))},t}(r.PureComponent);Qa.propTypes={className:o().string,active:o().bool.isRequired,onClick:o().func.isRequired,children:o().node.isRequired};const es=Qa;var ts=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._selectYear=function(e){r.props.changeCalendarMode("year",e)},r._selectCalendar=function(e){r.props.changeCalendarMode("calendar",e)},r.state=r._getFormattedDate(n),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.DateTimeFormat,r=t.locales,i=t.calendarTempDate,o=t.changeCalendarMode;n===e.DateTimeFormat&&r===e.locales&&i===e.calendarTempDate&&o===e.changeCalendarMode||this.setState(this._getFormattedDate(e))},t.prototype._getFormattedDate=function(e){var t=e.DateTimeFormat,n=e.locales,r=e.calendarTempDate;return{year:t(n,{year:"numeric"}).format(r),weekday:t(n,{weekday:"short"}).format(r),date:t(n,{month:"short",day:"2-digit"}).format(r)}},t.prototype.render=function(){var e=this.state,t=e.year,n=e.weekday,i=e.date,o=this.props,a=o.calendarMode,s=o.className,l="year"===a;return r.createElement("header",{className:u()("md-picker-header",s)},r.createElement(es,{onClick:this._selectYear,active:l,"aria-expanded":l},r.createElement("h6",{className:"md-subheading-1"},t)),r.createElement(es,{onClick:this._selectCalendar,active:"calendar"===a},r.createElement("h4",{className:"md-display-1"},n+",","\xa0"),r.createElement("h4",{className:"md-display-1"},i)))},t}(r.PureComponent);ts.propTypes={className:o().string,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,calendarTempDate:o().instanceOf(Date).isRequired,calendarMode:o().oneOf(["calendar","year"]).isRequired,changeCalendarMode:o().func.isRequired};const ns=ts;function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Za(e))return null;var n=new Date(e);return n.setHours(t,0,0,0),n}function is(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Za(e))return null;var n=new Date(e),r=e.getDay(),i=n.getDate()-r+t;return new Date(n.setDate(i))}var os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var as=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._setFocus=function(e){e&&r.props.active&&e.focus()},r._handleClick=function(e){r.props.onClick(new Date(r.props.date),e)},r._setActive=function(){r.props.disabled||r.setState({desktopActive:!0})},r._setInactive=function(){r.props.disabled||r.setState({desktopActive:!1})},r.state=os({},r._getFormattedDate(n),{desktopActive:!1}),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.DateTimeFormat,r=t.locales,i=t.date;n===e.DateTimeFormat&&r===e.locales&&i===e.date||this.setState(this._getFormattedDate(e))},t.prototype._getFormattedDate=function(e){var t=e.DateTimeFormat,n=e.locales,r=e.date;return{date:new t(n,{day:"numeric"}).format(r)}},t.prototype.render=function(){var e=this.state,t=e.date,n=e.desktopActive,i=this.props,o=i.disabled,a=i.active,s=i.today,l=i.className,c=i.getDateClassName,d=i.dateRenderer,p=s&&!a&&!n,h=c?c(this.props.date,t):null;return r.createElement("div",{role:"gridcell",className:"md-calendar-date",style:{display:"inline-block"}},r.createElement("button",{type:"button",ref:this._setFocus,onFocus:this._setActive,onBlur:this._setInactive,onMouseOver:this._setActive,onMouseLeave:this._setInactive,className:u()("md-calendar-date--btn",{"md-calendar-date--btn-active":a||n,"md-pointer--hover":!o},P({disabled:o,primary:p}),"md-btn",l,h),onClick:this._handleClick,disabled:o},r.createElement("span",{className:u()("md-calendar-date--date",{"md-picker-text--active":a||n,"md-font-bold":p})},d?d(this.props.date,t):t)))},t}(r.PureComponent);as.propTypes={className:o().string,date:o().instanceOf(Date).isRequired,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,disabled:o().bool,onClick:o().func.isRequired,active:o().bool,today:o().bool,getDateClassName:o().func,dateRenderer:o().func};const ss=as;var ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var cs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.calendarDate,n=e.calendarTempDate,i=e.onCalendarDateClick,o=e.minDate,a=e.maxDate,s=e.DateTimeFormat,l=e.locales,c=e.className,d=e.firstDayOfWeek,p=e.disableWeekEnds,h=e.dateClassName,f=e.getDateClassName,m=e.dateRenderer,g=e.showAllDays,y=e.outerDateClassName,v=e.disableOuterDates,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["calendarDate","calendarTempDate","onCalendarDateClick","minDate","maxDate","DateTimeFormat","locales","className","firstDayOfWeek","disableWeekEnds","dateClassName","getDateClassName","dateRenderer","showAllDays","outerDateClassName","disableOuterDates"]),_=[],w=rs(t);w.setDate(1);var x=Ha(t),k=is(w,0),C=is(x,6);C.setHours(12);var S=rs(n).getTime(),M=(new Date).getTime();for(d&&(k=Wa(k,d>w.getDay()?d-7:d,"D"),C=Wa(C,d>x.getDay()?d-7:d,"D"));k<=C;){var T=k.getMonth()+"-"+k.getDate(),E=k.getMonth()===t.getMonth(),P=void 0;if(E||g){var I,O=k.getTime(),L=o&&o.getTime()>O,R=a&&a.getTime()<O,j=p&&(0===k.getDay()||6===k.getDay()),D=!E&&v||L||R||j;P=r.createElement(ss,{key:T,className:u()(h,(I={},I[y]=!E&&y,I)),today:O===M,getDateClassName:f,dateRenderer:m,active:O===S,disabled:D,onClick:i,date:k,DateTimeFormat:s,locales:l})}else P=r.createElement("div",{key:T,className:"md-calendar-date",role:"gridcell"});_.push(P),k=Wa(k,1,"D")}var A,N,F=(N=7,(A=_)?A.reduce((function(e,t,n){return n%N===0?[].concat(e,[A.slice(n,n+N)]):e}),[]):[]);return r.createElement("div",ls({role:"grid",className:u()("md-calendar-month",c)},b),F.map((function(e,t){return r.createElement("div",{key:t,role:"row"},e)})))},t}(r.PureComponent);cs.propTypes={className:o().string,calendarDate:o().instanceOf(Date).isRequired,calendarTempDate:o().instanceOf(Date).isRequired,minDate:o().instanceOf(Date),maxDate:o().instanceOf(Date),onCalendarDateClick:o().func.isRequired,firstDayOfWeek:o().oneOf([0,1,2,3,4,5,6]),disableWeekEnds:o().bool,dateClassName:o().string,getDateClassName:o().func,dateRenderer:o().func,showAllDays:o().bool,disableOuterDates:o().bool,outerDateClassName:o().string,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired},cs.defaultProps={firstDayOfWeek:0};const us=cs;function ds(e,t){return!(!Za(e)||!Za(t))&&new Date(e.getFullYear(),e.getMonth(),1)>new Date(t.getFullYear(),t.getMonth()-1,1)}var ps=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state=r._createState(n),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.DateTimeFormat,r=t.locales,i=t.date;n===e.DateTimeFormat&&r===e.locales&&i===e.date||this.setState(this._createState(e))},t.prototype._createState=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.DateTimeFormat,n=e.locales,i=e.date,o=e.firstDayOfWeek,a=e.titleFormat,s=e.weekdayClassName,l=e.weekdayFormat,c=is(i,o),d=new t(n,{weekday:l}),p=[],h=0;h<7;h++){var f=d.format(Wa(c,h,"D"));p.push(r.createElement("h4",{key:h,className:u()("md-calendar-date md-calendar-dow",P({disabled:!0}),s)},f))}return{dows:p,title:new t(n,a).format(i)}},t.prototype.render=function(){var e=this.state,t=e.dows,n=e.title,i=this.props,o=i.date,a=i.minDate,s=i.maxDate,l=i.onPreviousClick,c=i.previousIcon,d=i.onNextClick,p=i.nextIcon,h=i.titleClassName,f=i.previousMonthLabel,m=i.nextMonthLabel,g=ds(a,o),y=ds(o,s);return r.createElement("header",{className:"md-calendar-header"},r.createElement("div",{className:"md-calendar-controls"},r.createElement(Wn,{icon:!0,onClick:l,disabled:g,className:"md-calendar-control",iconEl:c,"aria-label":f}),r.createElement("h4",{className:u()("md-title",h),"aria-live":"polite"},n),r.createElement(Wn,{icon:!0,onClick:d,disabled:y,className:"md-calendar-control",iconEl:p,"aria-label":m})),r.createElement("div",{className:"md-calendar-dows"},t))},t}(r.PureComponent);ps.propTypes={className:o().string,children:o().node,date:o().instanceOf(Date).isRequired,minDate:o().instanceOf(Date),maxDate:o().instanceOf(Date),previousIcon:o().element,onPreviousClick:o().func.isRequired,nextIcon:o().node,previousMonthLabel:o().string,nextMonthLabel:o().string,onNextClick:o().func.isRequired,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,firstDayOfWeek:o().oneOf([0,1,2,3,4,5,6]),titleClassName:o().string,titleFormat:o().shape({era:o().oneOf(["narrow","short","long"]),year:o().oneOf(["numeric","2-digit"]),month:o().oneOf(["numeric","2-digit","narrow","short","long"])}),weekdayClassName:o().string,weekdayFormat:o().oneOf(["narrow","short","long"])},ps.defaultProps={firstDayOfWeek:0,titleFormat:{month:"long",year:"numeric"},weekdayFormat:"narrow"};const hs=ps;var fs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.previousIcon,i=e.onPreviousClick,o=e.nextIcon,a=e.previousMonthLabel,s=e.nextMonthLabel,l=e.onNextClick,c=e.calendarDate,d=e.calendarTempDate,p=e.onCalendarDateClick,h=e.DateTimeFormat,f=e.locales,m=e.minDate,g=e.maxDate,y=e.firstDayOfWeek,v=e.disableWeekEnds,b=e.showAllDays,_=e.disableOuterDates,w=e.dateClassName,x=e.getDateClassName,k=e.dateRenderer,C=e.outerDateClassName,S=e.titleClassName,M=e.titleFormat,T=e.weekdayClassName,E=e.weekdayFormat;return r.createElement("section",{className:u()("md-picker-content md-picker-content--calendar",t)},r.createElement(hs,{date:c,minDate:m,maxDate:g,DateTimeFormat:h,locales:f,onPreviousClick:i,previousIcon:n,onNextClick:l,nextIcon:o,previousMonthLabel:a,nextMonthLabel:s,firstDayOfWeek:y,titleClassName:S,titleFormat:M,weekdayClassName:T,weekdayFormat:E}),r.createElement(us,{key:new h(f).format(c),calendarDate:c,calendarTempDate:d,onCalendarDateClick:p,minDate:m,maxDate:g,DateTimeFormat:h,locales:f,firstDayOfWeek:y,disableWeekEnds:v,showAllDays:b,disableOuterDates:_,dateClassName:w,getDateClassName:x,dateRenderer:k,outerDateClassName:C}))},t}(r.PureComponent);fs.propTypes={className:o().string,previousIcon:o().element,onPreviousClick:o().func.isRequired,nextIcon:o().element,previousMonthLabel:o().string,nextMonthLabel:o().string,onNextClick:o().func.isRequired,onCalendarDateClick:o().func.isRequired,calendarDate:o().instanceOf(Date).isRequired,calendarTempDate:o().instanceOf(Date).isRequired,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,minDate:o().instanceOf(Date),maxDate:o().instanceOf(Date),firstDayOfWeek:o().oneOf([0,1,2,3,4,5,6]),disableWeekEnds:o().bool,showAllDays:o().bool,disableOuterDates:o().bool,dateClassName:o().string,getDateClassName:o().func,dateRenderer:o().func,outerDateClassName:o().string,titleClassName:o().string,titleFormat:o().shape({era:o().oneOf(["narrow","short","long"]),year:o().oneOf(["numeric","2-digit"]),month:o().oneOf(["numeric","2-digit","narrow","short","long"])}),weekdayClassName:o().string,weekdayFormat:o().oneOf(["narrow","short","long"])};const ms=fs;function gs(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var ys=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=gs(this,e.call.apply(e,[this].concat(o))),r.state={desktopActive:!1},r._setActiveFocus=function(e){e&&r.props.active&&e.focus()},r._setActive=function(){r.setState({desktopActive:!0})},r._setInactive=function(){r.setState({desktopActive:!1})},r._handleClick=function(e){r.props.onClick(r.props.year,e)},gs(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state.desktopActive,t=this.props,n=t.active,i=t.className,o=t.year;return r.createElement("button",{type:"button",ref:this._setActiveFocus,className:u()("md-year",{"md-year--active":n},P({text:!n&&!e,primary:n||e}),"md-btn md-pointer--hover md-full-width",i),onClick:this._handleClick},o)},t}(r.PureComponent);ys.propTypes={className:o().string,active:o().bool.isRequired,onClick:o().func.isRequired,year:o().number.isRequired};const vs=ys;var bs=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state=r._getYearRange(n),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.yearsDisplayed!==e.yearsDisplayed&&this.setState(this._getFullYear(e))},t.prototype._getYearRange=function(e){var t=e.minDate,n=e.maxDate,r=e.yearsDisplayed,i=e.calendarTempDate.getFullYear(),o=t||n?r:parseInt(r/2,10),a=void 0,s=void 0;return t&&n?(a=t.getFullYear(),s=n.getFullYear()):t||n?n?a=(s=n.getFullYear())-r+1:s=(a=t.getFullYear())+r-1:(a=i-o,s=i+o,r%2===0&&(s-=1)),{startYear:a,endYear:s}},t.prototype._setContainer=function(e){if(null!==e){var t=e.offsetHeight,n=e.offsetWidth,r=e.querySelector(".md-year--active"),i=r.offsetTop,o=r.offsetHeight;e.scrollTop=t>n?i-3*t/4:i-t/2+o/2}},t.prototype.render=function(){for(var e=this.state,t=e.startYear,n=e.endYear,i=this.props.calendarTempDate.getFullYear(),o=[],a=t;a<=n;a++)o.push(r.createElement(vs,{key:a,year:a,active:a===i,onClick:this.props.onCalendarYearClick}));return r.createElement("section",{className:u()("md-picker-content md-picker-content--year",this.props.className),ref:this._setContainer},r.createElement("ol",{className:"md-years"},o))},t}(r.PureComponent);bs.propTypes={className:o().string,calendarTempDate:o().instanceOf(Date).isRequired,onCalendarYearClick:o().func.isRequired,yearsDisplayed:o().number.isRequired,minDate:o().instanceOf(Date),maxDate:o().instanceOf(Date)};const _s=bs;var ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var xs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.okLabel,i=t.okPrimary,o=t.onOkClick,a=t.cancelLabel,s=t.cancelPrimary,l=t.onCancelClick,c=t.DateTimeFormat,d=t.locales,p=t.calendarTempDate,h=t.calendarMode,f=t.changeCalendarMode,m=t.style,g=t.className,y=t.inline,v=t.icon,b=t.displayMode,_=t.firstDayOfWeek,w=t.disableWeekEnds,x=t.showAllDays,k=t.disableOuterDates,C=t.headerClassName,S=t.contentClassName,M=t.footerClassName,T=t.calendarClassName,E=t.yearPickerClassName,P=t.calendarDateClassName,I=t.calendarOuterDateClassName,O=t.getDateClassName,L=t.dateRenderer,R=t.calendarTitleClassName,j=t.calendarTitleFormat,D=t.calendarWeekdayClassName,A=t.calendarWeekdayFormat,N=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["okLabel","okPrimary","onOkClick","cancelLabel","cancelPrimary","onCancelClick","DateTimeFormat","locales","calendarTempDate","calendarMode","changeCalendarMode","style","className","inline","icon","displayMode","firstDayOfWeek","disableWeekEnds","showAllDays","disableOuterDates","headerClassName","contentClassName","footerClassName","calendarClassName","yearPickerClassName","calendarDateClassName","calendarOuterDateClassName","getDateClassName","dateRenderer","calendarTitleClassName","calendarTitleFormat","calendarWeekdayClassName","calendarWeekdayFormat"]),F=void 0;F="calendar"===h?r.createElement(ms,ws({},N,{key:"calendar",className:T,calendarTempDate:p,DateTimeFormat:c,locales:d,firstDayOfWeek:_,disableWeekEnds:w,showAllDays:x,disableOuterDates:k,dateClassName:P,getDateClassName:O,dateRenderer:L,outerDateClassName:I,titleClassName:R,titleFormat:j,weekdayClassName:D,weekdayFormat:A})):r.createElement(_s,ws({},N,{key:"year",className:E,calendarTempDate:p,DateTimeFormat:c,locales:d}));var z=[{key:"cancel",onClick:l,primary:s,secondary:!s,label:a},{key:"ok",onClick:o,primary:i,secondary:!i,label:n}];return r.createElement("div",{style:m,className:u()("md-picker md-picker--date",(e={},e["md-picker--"+b]=b,e["md-picker--inline"]=y,e["md-picker--inline-icon"]=y&&v,e),g)},r.createElement(ns,{className:C,DateTimeFormat:c,locales:d,calendarTempDate:p,calendarMode:h,changeCalendarMode:f}),r.createElement("div",{className:u()("md-picker-content-container",S)},F,r.createElement(ji,{className:M,actions:z})))},t}(r.PureComponent);xs.propTypes={style:o().object,className:o().string,okLabel:o().node.isRequired,okPrimary:o().bool.isRequired,onOkClick:o().func.isRequired,cancelLabel:o().node.isRequired,cancelPrimary:o().bool.isRequired,onCancelClick:o().func.isRequired,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,calendarDate:o().instanceOf(Date).isRequired,calendarTempDate:o().instanceOf(Date).isRequired,calendarMode:o().oneOf(["calendar","year"]).isRequired,changeCalendarMode:o().func.isRequired,icon:o().bool,inline:o().bool,displayMode:o().oneOf(["landscape","portrait"]),firstDayOfWeek:o().oneOf([0,1,2,3,4,5,6]),disableWeekEnds:o().bool,showAllDays:o().bool,disableOuterDates:o().bool,headerClassName:o().string,contentClassName:o().string,footerClassName:o().string,calendarClassName:o().string,yearPickerClassName:o().string,calendarDateClassName:o().string,calendarOuterDateClassName:o().string,getDateClassName:o().func,dateRenderer:o().func,calendarTitleClassName:o().string,calendarTitleFormat:o().shape({era:o().oneOf(["narrow","short","long"]),year:o().oneOf(["numeric","2-digit"]),month:o().oneOf(["numeric","2-digit","narrow","short","long"])}),calendarWeekdayClassName:o().string,calendarWeekdayFormat:o().oneOf(["narrow","short","long"])};const ks=xs;var Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ss=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));Ms.call(r);var i=void 0,o=void 0,a=n.defaultValue,s=n.DateTimeFormat,l=n.locales,c=n.formatOptions,u=n.minDate,d=n.maxDate;"undefined"!==typeof n.value?i=r._getDate(n.value):a?(i=r._getDate(a),o="string"===typeof a?a:s(l,c).format(a)):(i=new Date,o=""),i=r._validateDateRange(i,u,d);var p="undefined"!==typeof n.initialCalendarDate?n.initialCalendarDate:n.defaultCalendarDate,h=i;"undefined"===typeof p||n.value||n.defaultValue?null===h&&(h=new Date,i=new Date):i=h=r._getDate(p);var f="undefined"!==typeof n.initiallyOpen?n.initiallyOpen:!!n.defaultVisible;return r.state={value:o,visible:f,calendarDate:i,calendarTempDate:h,calendarMode:n.initialCalendarMode||n.defaultCalendarMode},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.value,n=e.minDate,r=e.maxDate,i=Ka(this.props.minDate,n),o=Ka(this.props.maxDate,r);if(this.props.value!==t||!i||!o){var a=this.state.calendarDate;"undefined"!==typeof t&&(a=this._getDate(t)),a=this._validateDateRange(a,n,r),Ka(this.state.calendarDate,a)||this.setState({calendarDate:a,calendarTempDate:a})}},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.inline,i=n.isOpen,o="undefined"!==typeof i?i:d(this.props,this.state,"visible");o!==("undefined"!==typeof e.isOpen?e.isOpen:d(e,t,"visible"))&&(o?r&&(Ae(this._handleOutsideClick,!0),window.addEventListener("keydown",this._closeOnEsc)):r&&(Ae(this._handleOutsideClick,!1),window.removeEventListener("keydown",this._closeOnEsc)))},t.prototype.componentWillUnmount=function(){("undefined"!==typeof this.props.isOpen?this.props.isOpen:d(this.props,this.state,"visible"))&&this.props.inline&&(Ae(this._handleOutsideClick,!1),window.removeEventListener("keydown",this._closeOnEsc))},t.prototype._getDate=function(e){return""===e||null===e?new Date:"string"===typeof e?new Date(e):e},t.prototype._getFormattedValue=function(e,t){var n=e.DateTimeFormat,r=e.locales,i=e.formatOptions,o=d(e,t,"value");return o?o instanceof Date?n(r,i).format(new Date(o)):o:""},t.prototype._validateDateRange=function(e,t,n){var r=e;return t&&t>e&&(r=new Date(t)),n&&n<e&&(r=new Date(n)),r},t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.pickerStyle,o=e.pickerClassName,a=e.pickerHeaderClassName,s=e.pickerContentClassName,l=e.pickerFooterClassName,c=e.inputStyle,p=e.inputClassName,h=e.textFieldStyle,f=e.textFieldClassName,m=e.label,g=e.placeholder,y=e.icon,v=e.inline,b=e.displayMode,_=e.fullWidth,w=e.lineDirection,x=e.id,k=e.disabled,C=e.closeOnEsc,S=e.animateInline,M=e.portal,T=e.renderNode,E=e.lastChild,P=e.block,I=e.paddedBlock,O=e.active,L=e.error,R=e.floating,j=e.required,D=e.leftIconStateful,A=e.rightIcon,N=e.rightIconStateful,F=e.customSize,z=e.errorText,B=e.helpText,U=e.helpOnFocus,$=e.inlineIndicator,V=e.disableScrollLocking,q=e["aria-label"],Z=e.nextIcon,H=e.previousIcon,G=e.isOpen,W=e.previousIconChildren,Y=e.previousIconClassName,K=e.nextIconChildren,X=e.nextIconClassName,J=(e.value,e.visible,e.defaultValue,e.defaultVisible,e.onChange,e.readOnly,e.onVisibilityChange,e.defaultCalendarDate,e.getDateClassName),Q=e.dateRenderer,ee=(e.initialCalendarDate,e.initiallyOpen,e.adjustMinWidth,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","pickerStyle","pickerClassName","pickerHeaderClassName","pickerContentClassName","pickerFooterClassName","inputStyle","inputClassName","textFieldStyle","textFieldClassName","label","placeholder","icon","inline","displayMode","fullWidth","lineDirection","id","disabled","closeOnEsc","animateInline","portal","renderNode","lastChild","block","paddedBlock","active","error","floating","required","leftIconStateful","rightIcon","rightIconStateful","customSize","errorText","helpText","helpOnFocus","inlineIndicator","disableScrollLocking","aria-label","nextIcon","previousIcon","isOpen","previousIconChildren","previousIconClassName","nextIconChildren","nextIconClassName","value","visible","defaultValue","defaultVisible","onChange","readOnly","onVisibilityChange","defaultCalendarDate","getDateClassName","dateRenderer","initialCalendarDate","initiallyOpen","adjustMinWidth"])),te=be(X,K,Z),ne=be(Y,W,H),re="undefined"!==typeof G?G:d(this.props,this.state,"visible"),ie=r.createElement(ks,Cs({},this.state,ee,{nextIcon:te,previousIcon:ne,icon:!!y,inline:v,style:i,className:o,headerClassName:a,contentClassName:s,footerClassName:l,displayMode:b,onCancelClick:this._handleCancelClick,onOkClick:this._handleOkClick,changeCalendarMode:this._changeCalendarMode,onPreviousClick:this._previousMonth,onNextClick:this._nextMonth,onCalendarDateClick:this._setCalendarTempDate,onCalendarYearClick:this._setCalendarTempYear,getDateClassName:J,dateRenderer:Q})),oe=void 0;return oe=v?r.createElement(de,{collapsed:!re,animate:S},ie):r.createElement(bo,{id:x+"-dialog",visible:re,onHide:this._handleCancelClick,dialogClassName:"md-dialog--picker",contentClassName:"md-dialog-content--picker","aria-label":q,closeOnEsc:C,renderNode:T,portal:M,lastChild:E,focusOnMount:!1,disableScrollLocking:V},ie),r.createElement("div",{style:t,className:u()("md-picker-container",n),ref:this._setContainer},r.createElement(nn,{id:x,style:h,className:u()({"md-pointer--hover":!k},f),inputStyle:c,inputClassName:u()({"md-pointer--hover":!k},p),active:O||re,error:L,floating:R||re,required:j,disabled:k,leftIcon:y,leftIconStateful:D,rightIcon:A,rightIconStateful:N,inlineIndicator:$,block:P,paddedBlock:I,fullWidth:_,lineDirection:w,customSize:F,helpText:B,helpOnFocus:U,errorText:z,label:m,placeholder:g,onClick:this._toggleOpen,onKeyDown:this._handleKeyDown,value:this._getFormattedValue(this.props,this.state),readOnly:!0}),oe)},t}(r.PureComponent);Ss.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),"aria-label":(0,je.default)(o().string),style:o().object,className:o().string,pickerStyle:o().object,pickerClassName:o().string,pickerHeaderClassName:o().string,pickerContentClassName:o().string,pickerFooterClassName:o().string,calendarClassName:o().string,yearPickerClassName:o().string,inputStyle:o().object,inputClassName:o().string,textFieldStyle:o().object,textFieldClassName:o().string,icon:o().node,defaultVisible:o().bool,label:o().node,placeholder:o().string,value:b(o().oneOfType([o().string,o().instanceOf(Date)]),"onChange","defaultValue"),defaultValue:o().oneOfType([o().string,o().instanceOf(Date)]),defaultCalendarDate:o().oneOfType([o().string,o().instanceOf(Date)]),onChange:o().func,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,okLabel:o().node.isRequired,okPrimary:o().bool,cancelLabel:o().node.isRequired,cancelPrimary:o().bool,defaultCalendarMode:o().oneOf(["calendar","year"]),previousIcon:o().node,nextIcon:o().node,minDate:o().instanceOf(Date),maxDate:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s=o().instanceOf(Date).apply(void 0,[e,t,n].concat(i));if(s||!e.minDate||!e[t])return s;var l=e.minDate,c=e.maxDate;return l>c?new Error("The min date: '"+l+"' is greater than the max date: '"+c+"'"):null},autoOk:o().bool,yearsDisplayed:o().number,inline:o().bool,displayMode:o().oneOf(["landscape","portrait"]),formatOptions:o().shape({weekday:o().oneOf(["narrow","short","long"]),era:o().oneOf(["narrow","short","long"]),year:o().oneOf(["numeric","2-digit"]),month:o().oneOf(["numeric","2-digit","narrow","short","long"]),day:o().oneOf(["numeric","2-digit"]),hour:o().oneOf(["numeric","2-digit"]),minute:o().oneOf(["numeric","2-digit"]),second:o().oneOf(["numeric","2-digit"]),timeZoneName:o().oneOf(["short","long"])}),fullWidth:o().bool,lineDirection:o().oneOf(["left","center","right"]),visible:b(o().bool,"onVisibilityChange","defaultVisible"),onVisibilityChange:o().func,disabled:o().bool,closeOnEsc:o().bool,animateInline:o().bool,required:o().bool,block:nn.propTypes.block,paddedBlock:nn.propTypes.paddedBlock,active:nn.propTypes.active,error:nn.propTypes.error,floating:nn.propTypes.floating,leftIconStateful:nn.propTypes.leftIconStateful,rightIcon:nn.propTypes.rightIcon,rightIconStateful:nn.propTypes.rightIconStateful,customSize:nn.propTypes.customSize,errorText:nn.propTypes.errorText,helpText:nn.propTypes.helpText,helpOnFocus:nn.propTypes.helpOnFocus,inlineIndicator:nn.propTypes.inlineIndicator,portal:o().bool,renderNode:o().object,readOnly:o().bool,firstDayOfWeek:o().oneOf([0,1,2,3,4,5,6]),disableWeekEnds:o().bool,showAllDays:o().bool,disableOuterDates:o().bool,calendarDateClassName:o().string,calendarOuterDateClassName:o().string,getDateClassName:o().func,dateRenderer:o().func,onPreviousMonth:o().func,onNextMonth:o().func,onYearSelected:o().func,calendarTitleClassName:o().string,calendarTitleFormat:o().shape({era:o().oneOf(["narrow","short","long"]),year:o().oneOf(["numeric","2-digit"]),month:o().oneOf(["numeric","2-digit","narrow","short","long"])}),calendarWeekdayClassName:o().string,calendarWeekdayFormat:o().oneOf(["narrow","short","long"]),disableScrollLocking:o().bool,previousMonthLabel:o().string,nextMonthLabel:o().string,lastChild:o().bool,closeYearOnSelect:o().bool,previousIconChildren:(0,E.Z)(o().node,"Use the `previousIcon` prop instead"),previousIconClassName:(0,E.Z)(o().string,"Use the `previousIcon` prop instead"),nextIconChildren:(0,E.Z)(o().node,"use the `nextIcon` prop instead"),nextIconClassName:(0,E.Z)(o().string,"Use the `nextIcon` prop instead"),adjustMinWidth:(0,E.Z)(o().bool,"No longer valid for a text field"),isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),initiallyOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),initialCalendarDate:(0,E.Z)(o().oneOfType([o().string,o().instanceOf(Date)]),"Use `defaultCalendarDate` instead"),initialCalendarMode:(0,E.Z)(o().oneOf(["calendar","year"]),"Use `defaultCalendarMode` instead"),initialYearsDisplayed:(0,E.Z)(o().number,"Use `yearsDisplayed` instead. I have not implemented infinite loading years")},Ss.defaultProps={animateInline:!0,previousIcon:r.createElement(ve,null,"chevron_left"),nextIcon:r.createElement(ve,null,"chevron_right"),autoOk:!1,icon:r.createElement(ve,null,"date_range"),yearsDisplayed:100,defaultCalendarMode:"calendar",DateTimeFormat:Xa,locales:"undefined"!==typeof window?window.navigator.userLanguage||window.navigator.language:"en-US",okLabel:"Ok",okPrimary:!0,cancelLabel:"Cancel",cancelPrimary:!0,closeOnEsc:!0,closeYearOnSelect:!1,disableScrollLocking:!1,previousMonthLabel:"Previous Month",nextMonthLabel:"Next Month","aria-label":"Pick a date"};var Ms=function(){var e=this;this._setContainer=function(t){e._container=t},this._closeOnEsc=function(t){(t.which||t.keyCode)===w&&e._handleCancelClick(t)},this._handleOutsideClick=function(t){e._container&&!e._container.contains(t.target)&&e._handleCancelClick(t)},this._toggleOpen=function(t){if(!e.props.disabled&&!e.props.readOnly){var n=!("undefined"!==typeof e.props.isOpen?e.props.isOpen:d(e.props,e.state,"visible"));e.props.onVisibilityChange&&e.props.onVisibilityChange(n,t),"undefined"===typeof e.props.isOpen&&"undefined"===typeof e.props.visible&&e.setState({visible:n})}},this._handleKeyDown=function(t){L(t,e._toggleOpen,!0,!0),9===(t.which||t.keyCode)&&e.state.active&&e.setState({active:!1})},this._handleOkClick=function(t){var n=e.props,r=n.DateTimeFormat,i=n.locales,o=n.onChange,a=n.formatOptions,s=n.onVisibilityChange,l=r(i,a).format(e.state.calendarTempDate);o&&o(l,new Date(e.state.calendarTempDate),t),s&&s(!1,t);var c=void 0;"undefined"===typeof e.props.value&&(c={value:l}),"undefined"===typeof e.props.visible&&"undefined"===typeof e.props.isOpen&&((c=c||{}).visible=!1),c&&e.setState(c)},this._handleCancelClick=function(t){var n={calendarTempDate:e.state.calendarDate};"undefined"===typeof e.props.isOpen&&"undefined"===typeof e.props.isOpen&&(n.visible=!1),e.props.onVisibilityChange&&e.props.onVisibilityChange(!1,t),e.setState(n)},this._changeCalendarMode=function(t){e.state.calendarMode!==t&&e.setState({calendarMode:t})},this._previousMonth=function(){var t=Wa(e.state.calendarDate,-1,"M");e.setState({calendarDate:t}),e.props.onPreviousMonth&&e.props.onPreviousMonth(t)},this._nextMonth=function(){var t=Wa(e.state.calendarDate,1,"M");e.setState({calendarDate:t}),e.props.onNextMonth&&e.props.onNextMonth(t)},this._setCalendarTempDate=function(t){var n=e.props,r=n.autoOk,i=n.DateTimeFormat,o=n.locales,a=n.onChange,s=n.formatOptions,l={calendarTempDate:t};if(r){var c=i(o,s).format(t);a&&a(c,new Date(t)),"undefined"===typeof e.props.value&&(l.value=c),e._timeout=setTimeout((function(){e._timeout=null,e.props.onVisibilityChange&&e.props.onVisibilityChange(!1),"undefined"===typeof e.props.visible&&"undefined"===typeof e.props.isOpen&&e.setState({visible:!1})}))}e.setState(l)},this._setCalendarTempYear=function(t){var n=e.state,r=n.calendarTempDate,i=n.calendarDate;if(r.getFullYear()!==t){var o=e.props,a=o.minDate,s=o.maxDate,l=new Date(i.setFullYear(t)),c=new Date(r.setFullYear(t));a&&c<a&&(l=new Date(a),c=new Date(a)),s&&c>s&&(l=new Date(s),c=new Date(s)),e.props.onYearSelected&&e.props.onYearSelected(l),e.setState({calendarDate:l,calendarTempDate:c}),e.props.closeYearOnSelect&&e._changeCalendarMode("calendar")}}};function Ts(e,t,n,r){return new e(t,!0===n?{hour:"numeric",minute:"2-digit",second:"2-digit"}:{hour:"numeric",minute:"2-digit"}).format(r)}function Es(e,t,n,r,i){var o=e.x-t.x,a=e.y-t.y,s=function(e){return e*(180/Math.PI)}(Math.atan2(a,o)),l=r?60:12,c=360/l,u=Math.round(s/c);if((u+=r?15:3)<0&&(u+=l),!r&&!i){var d=function(e,t,n,r,i){return Math.pow(e-r,2)+Math.pow(t-i,2)<=Math.pow(n,2)}(0,0,n,o,a);(0===u&&!d||0!==u&&d)&&(u+=12)}return u}var Ps=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._handleKeyUp=function(e){9===(e.which||e.keyCode)&&r.props.onKeyboardFocus(r.props.time)},r._setTime=function(e){r._time=e,null!==e&&(r._setPosition(r.props,e),r.props.active&&e.focus())},r._setPosition=function(e,t){var n=e.radius,i=e.index,o=(t.offsetWidth||36)/2,a=Math.PI/2-i*(Math.PI/6),s=n-o,l=s-4-(i>12?2*o:0);r.setState({style:{top:s-l*Math.sin(a),left:s+l*Math.cos(a)}})},r.state={size:18},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.radius===e.radius&&this.props.index===e.index||this._setPosition(e,this._time)},t.prototype.render=function(){var e=this.props,t=e.time,n=e.active;return r.createElement("div",{ref:this._setTime,tabIndex:0,className:u()("md-clock-time md-text-no-select md-pointer--none",{"md-picker-text--active":n},P({text:!n})),style:this.state.style,onKeyUp:this._handleKeyUp},r.createElement("span",{className:"md-clock-time-value"},t))},t}(r.PureComponent);Ps.propTypes={index:o().number.isRequired,time:o().number.isRequired,active:o().bool.isRequired,radius:o().number.isRequired,onKeyboardFocus:o().func.isRequired};const Is=Ps;var Os=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r.state={active:!1},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this;this.props.minutes!==e.minutes&&(this.state.timeout&&clearTimeout(this.state.timeout),this.setState({active:!0,timeout:setTimeout((function(){return t.setState({active:!1,timeout:null})}),150)}))},t.prototype.componentWillUnmount=function(){this.state.timeout&&clearTimeout(this.state.timeout)},t.prototype._calcCurrentDegrees=function(e){var t=e.time,n=e.minutes,r=n?60:12;return 360/r*(t%r-(n?15:3))},t.prototype.render=function(){var e=this.props,t=e.coords,n=e.time,i=e.minutes,o=this._calcCurrentDegrees(this.props),a=!1;i&&(a=o%30!==0);var s="rotate3d(0, 0, 1, "+o+"deg)";return r.createElement("div",{className:u()("md-clock-hand md-background--primary",{"md-clock-hand--active":this.state.active,"md-clock-hand--minute-hover":a,"md-clock-hand--inner":!i&&(n>12||0===n)}),style:{left:t,top:t,WebkitTransform:s,MozTransform:s,msTransform:s,transform:s}})},t}(r.PureComponent);Os.propTypes={coords:o().number,time:o().number.isRequired,minutes:o().bool.isRequired};const Ls=Os;var Rs=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._setFace=function(e){r._face=e,r._setPositioning()},r._setPositioning=function(){if(r._face){var e=r._face.offsetWidth/2,t=U(r._face);r._center={x:t.left+e,y:t.top+e},r._left=t.left,r._top=t.top,r.state.radius!==e&&r.setState({radius:e})}},r._handleMouseEnter=function(){r.props.hoverMode&&r._enableMouseMoving()},r._handleMouseLeave=function(){r.props.hoverMode&&r._disableMouseMoving()},r._handleMouseDown=function(e){$(e)&&(r.props.hoverMode||r._enableMouseMoving())},r._handleMouseMove=function(e){r.state.moving&&(e.preventDefault(),r._calcNewTime(e))},r._handleMouseUp=function(e){if($(e)){var t=r.props,n=t.onTimeChosen,i=t.hoverMode;r._face&&(r._face.contains(e.target)?(n(),r._calcNewTime(e)):Y("click")),i||r._disableMouseMoving()}},r._handleTouchStart=function(){Y("mousedown"),G(window,"move",r._handleTouchMove),G(window,"end",r._handleTouchEnd),r.setState({moving:!0})},r._handleTouchMove=function(e){r.state.moving&&r._calcNewTime(e)},r._handleTouchEnd=function(e){r._calcNewTime(e),r._face&&!r._face.contains(e.target)&&Y("click"),W(window,"move",r._handleTouchMove),W(window,"end",r._handleTouchEnd),r.setState({moving:!1})},r._calcNewTime=function(e){var t=e.changedTouches?e.changedTouches[0]:e,n=t.pageX,i=t.pageY,o=r.state.radius-48,a=r.props,s=a.onChange,l=a.minutes,c=a.timePeriod;s(Es({x:n,y:i},r._center,o,l,c))},r._enableMouseMoving=function(){window.addEventListener("mousemove",r._handleMouseMove),window.addEventListener("mouseup",r._handleMouseUp),r.setState({moving:!0})},r._disableMouseMoving=function(){window.removeEventListener("mousemove",r._handleMouseMove),window.removeEventListener("mouseup",r._handleMouseUp),r.setState({moving:!1})},r.state={radius:136,moving:!1},r._center={},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillUnmount=function(){window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseMove),W(window,"move",this._handleTouchMove),W(window,"end",this._handleTouchEnd),clearInterval(this.interval)},t.prototype.render=function(){var e=this.props,t=e.time,n=e.minutes,i=e.timePeriod,o=e.onChange,a=e.hoverMode,s=this.state.radius,l=n||i?12:24,c=Array.apply(null,new Array(l)).map((function(e,i){var a=i+1;return n?a=5*a%60:a%=24,r.createElement(Is,{key:"time-"+i,index:i+1,time:a,active:a===t,radius:s,onKeyboardFocus:o})}));return r.createElement("div",{ref:this._setFace,className:"md-clock-face md-block-centered md-pointer--hover",onMouseDown:this._handleMouseDown,onMouseEnter:a?this._handleMouseEnter:void 0,onMouseLeave:a?this._handleMouseLeave:void 0,onTouchStart:this._handleTouchStart},r.createElement(ht,{watchHeight:!0,onResize:this._setPositioning}),c,r.createElement(Ls,{time:t,coords:s,minutes:n}))},t}(r.PureComponent);Rs.propTypes={time:o().number.isRequired,minutes:o().bool.isRequired,onChange:o().func.isRequired,timePeriod:o().string,hoverMode:o().bool,onTimeChosen:o().func.isRequired};const js=Rs;function Ds(e,t){var n=new Date(e.getTime());return n.setHours(n.getHours()+t),n}function As(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Ns=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=As(this,e.call.apply(e,[this].concat(o))),r._setAM=function(){"AM"!==r.props.timePeriod&&r.props.setTempTime(Ds(r.props.tempTime,-12))},r._setPM=function(){"PM"!==r.props.timePeriod&&r.props.setTempTime(Ds(r.props.tempTime,12))},As(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props.timePeriod;return r.createElement("div",{className:"md-time-periods"},r.createElement(es,{onClick:this._setAM,active:"AM"===e},r.createElement("h6",{className:"md-time-period"},"AM")),r.createElement(es,{onClick:this._setPM,active:"PM"===e},r.createElement("h6",{className:"md-time-period"},"PM")))},t}(r.PureComponent);Ns.propTypes={tempTime:o().instanceOf(Date).isRequired,setTempTime:o().func.isRequired,timePeriod:o().string.isRequired};const Fs=Ns;function zs(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Bs=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=zs(this,e.call.apply(e,[this].concat(o))),r._setHour=function(){r.props.setTimeMode("hour")},r._setMinute=function(){r.props.setTimeMode("minute")},r._setSecond=function(){r.props.setTimeMode("second")},zs(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.timeMode,n=e.hours,i=e.minutes,o=e.seconds,a=e.timePeriod,s=e.setTempTime,l=e.tempTime,c=e.showSeconds,u=void 0;a&&(u=r.createElement(Fs,{tempTime:l,setTempTime:s,timePeriod:a}));var d=!0===c?r.createElement(es,{onClick:this._setSecond,active:"second"===t},r.createElement("h4",{className:"md-display-3"},o)):null;return r.createElement("header",{className:"md-picker-header md-text-right"},r.createElement(es,{onClick:this._setHour,active:"hour"===t},r.createElement("h4",{className:"md-display-3"},n)),r.createElement(es,{onClick:this._setMinute,active:"minute"===t},r.createElement("h4",{className:"md-display-3"},i)),d,u)},t}(r.PureComponent);Bs.propTypes={tempTime:o().instanceOf(Date).isRequired,timeMode:o().oneOf(["hour","minute","second"]).isRequired,setTimeMode:o().func.isRequired,setTempTime:o().func.isRequired,hours:o().string.isRequired,minutes:o().string.isRequired,seconds:o().string,timePeriod:o().string,showSeconds:o().bool};const Us=Bs;function $s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Vs=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=$s(this,e.call.apply(e,[this].concat(o))),r._updateTime=function(e){var t=e,n=r.props,i=n.tempTime,o=n.setTempTime,a=n.timeMode,s=n.timePeriod,l=new Date(i);if("hour"===a){var c="AM"===s,u=12===t;s&&c&&u?t=0:!s||c||u||(t+=12),l.setHours(t)}"minute"===a&&l.setMinutes(t),"second"===a&&l.setSeconds(t),o(l)},r._handleTimeChosen=function(){var e=r.props,t=e.hoverMode,n=e.setTimeMode,i=e.onOkClick,o=e.timeMode;t&&("hour"===o?n("minute"):i())},$s(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.okLabel,i=t.okPrimary,o=t.onOkClick,a=t.cancelLabel,s=t.cancelPrimary,l=t.onCancelClick,c=t.style,d=t.className,p=t.setTimeMode,h=t.setTempTime,f=t.timeMode,m=t.tempTime,g=t.hours,y=t.minutes,v=t.seconds,b=t.timePeriod,_=t.displayMode,w=t.inline,x=t.icon,k=t.hoverMode,C=t.showSeconds,S=parseInt(g,10),M=parseInt(y.replace(/[^0-9]/g,""),10),T=void 0;C&&(T=parseInt(v.replace(/[^0-9]/g,""),10));var E=[{key:"cancel",onClick:l,primary:s,secondary:!s,label:a},{key:"ok",onClick:o,primary:i,secondary:!i,label:n}],P=void 0;return"hour"===f&&(P=S),"minute"===f&&(P=M),"second"===f&&(P=T),r.createElement("div",{style:c,className:u()("md-picker md-picker--time",(e={},e["md-picker--"+_]=_,e["md-picker--inline"]=w,e["md-picker--inline-icon"]=w&&x,e),d)},r.createElement(Us,{tempTime:m,timeMode:f,setTimeMode:p,setTempTime:h,hours:g,minutes:y,seconds:v,timePeriod:b,showSeconds:C}),r.createElement("div",{className:"md-picker-content-container"},r.createElement("div",{className:"md-picker-content md-picker-content--clock"},r.createElement(js,{time:P,minutes:"minute"===f||"second"===f,onChange:this._updateTime,timePeriod:b,hoverMode:k,onTimeChosen:this._handleTimeChosen})),r.createElement(ji,{actions:E})))},t}(r.PureComponent);Vs.propTypes={style:o().object,className:o().string,okLabel:o().node.isRequired,okPrimary:o().bool.isRequired,onOkClick:o().func.isRequired,cancelLabel:o().node.isRequired,cancelPrimary:o().bool.isRequired,onCancelClick:o().func.isRequired,DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,icon:o().bool,inline:o().bool,displayMode:o().oneOf(["landscape","portrait"]),setTimeMode:o().func.isRequired,setTempTime:o().func.isRequired,timeMode:o().oneOf(["hour","minute","second"]).isRequired,tempTime:o().instanceOf(Date).isRequired,hours:o().string.isRequired,minutes:o().string.isRequired,seconds:o().string,timePeriod:o().string,hoverMode:o().bool,showSeconds:o().bool};const qs=Vs;var Zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Hs=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));Gs.call(r);var i=void 0;i=n.defaultValue?new Date(n.defaultValue):n.value?new Date(n.value):new Date;var o="undefined"!==typeof n.initiallyOpen?n.initiallyOpen:!!n.defaultVisible;return r.state=Zs({visible:o},r._getTimeParts(i,n),{value:n.defaultValue,time:i,timeMode:n.initialTimeMode||n.defaultTimeMode,tempTime:i}),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t=e.value||new Date;this.setState(Zs({tempTime:t},this._getTimeParts(t,e)))}},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.inline,i=n.isOpen,o="undefined"!==typeof i?i:d(this.props,this.state,"visible");o!==("undefined"!==typeof e.isOpen?e.isOpen:d(e,t,"visible"))&&(o?r&&(Ae(this._handleOutsideClick,!0),window.addEventListener("keydown",this._closeOnEsc)):r&&(Ae(this._handleOutsideClick,!1),window.removeEventListener("keydown",this._closeOnEsc)))},t.prototype.componentWillUnmount=function(){("undefined"!==typeof this.props.isOpen?this.props.isOpen:d(this.props,this.state,"visible"))&&this.props.inline&&(Ae(this._handleOutsideClick,!1),window.removeEventListener("keydown",this._closeOnEsc))},t.prototype._getTimeParts=function(e,t){return function(e,t,n,r){var i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=Ts(e,t,n,r);if(!0===n){var d=u.match(/[0-9]+/g);i=d[0],o=d[1],a=d[2];var p=u.match(/[ ,.:A-z]+/g);s=p[0],l=p[1],c=p.slice(2)}else{var h=u.match(/[0-9]+/g);i=h[0],o=h[1];var f=u.match(/[ ,.:A-z]+/g);s=f[0],c=f.slice(1)}var m=void 0;return c&&c.length&&(m=c.join("").trim()),!0===n?{hours:i,minutes:s+o,seconds:l+a,timePeriod:m}:{hours:i,minutes:s+o,timePeriod:m}}(t.DateTimeFormat,t.locales,t.showSeconds,e)},t.prototype._getTextFieldValue=function(e,t){var n=e.DateTimeFormat,r=e.locales,i=e.showSeconds,o=d(e,t,"value");return o?o instanceof Date?Ts(n,r,i,o):o:""},t.prototype.render=function(){var e=this.state,t=e.timeMode,n=e.tempTime,i=e.hours,o=e.minutes,a=e.seconds,s=e.timePeriod,l=this.props,c=l.style,p=l.className,h=l.pickerStyle,f=l.pickerClassName,m=l.inputStyle,g=l.inputClassName,y=l.textFieldStyle,v=l.textFieldClassName,b=l.id,_=l.disabled,w=l.label,x=l.placeholder,k=l.icon,C=l.inline,S=l.displayMode,M=l.fullWidth,T=l.lineDirection,E=l.closeOnEsc,P=l.hoverMode,I=l.showSeconds,O=l.portal,L=l.renderNode,R=l.lastChild,j=l.animateInline,D=l.block,A=l.paddedBlock,N=l.active,F=l.error,z=l.floating,B=l.required,U=l.leftIconStateful,$=l.rightIcon,V=l.rightIconStateful,q=l.customSize,Z=l.errorText,H=l.helpText,G=l.helpOnFocus,W=l.inlineIndicator,Y=l.disableScrollLocking,K=l["aria-label"],X=(l.value,l.visible,l.readOnly,l.defaultValue,l.defaultVisible,l.defaultTimeMode,l.onVisibilityChange,l.isOpen,l.initialTimeMode,l.initiallyOpen,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(l,["style","className","pickerStyle","pickerClassName","inputStyle","inputClassName","textFieldStyle","textFieldClassName","id","disabled","label","placeholder","icon","inline","displayMode","fullWidth","lineDirection","closeOnEsc","hoverMode","showSeconds","portal","renderNode","lastChild","animateInline","block","paddedBlock","active","error","floating","required","leftIconStateful","rightIcon","rightIconStateful","customSize","errorText","helpText","helpOnFocus","inlineIndicator","disableScrollLocking","aria-label","value","visible","readOnly","defaultValue","defaultVisible","defaultTimeMode","onVisibilityChange","isOpen","initialTimeMode","initiallyOpen"])),J="undefined"!==typeof this.props.isOpen?this.props.isOpen:d(this.props,this.state,"visible"),Q=r.createElement(qs,Zs({},X,{inline:C,icon:!!k,tempTime:n,timeMode:t,seconds:a,hours:i,minutes:o,timePeriod:s,style:h,className:f,displayMode:S,onOkClick:this._handleOkClick,onCancelClick:this._handleCancelClick,setTimeMode:this._setTimeMode,setTempTime:this._setTempTime,hoverMode:P,showSeconds:I})),ee=void 0;return ee=C?r.createElement(de,{collapsed:!J,animate:j},Q):r.createElement(bo,{id:b+"-dialog",visible:J,onHide:this._handleCancelClick,dialogClassName:"md-dialog--picker",contentClassName:"md-dialog-content--picker","aria-label":K,closeOnEsc:E,portal:O,lastChild:R,renderNode:L,focusOnMount:!1,disableScrollLocking:Y},Q),r.createElement("div",{style:c,className:u()("md-picker-container",p),ref:this._setContainer},r.createElement(nn,{id:b,style:y,className:u()({"md-pointer--hover":!_},v),inputStyle:m,inputClassName:u()({"md-pointer--hover":!_},g),active:N||J,error:F,floating:z||J,required:B,disabled:_,leftIcon:k,leftIconStateful:U,rightIcon:$,rightIconStateful:V,inlineIndicator:W,block:D,paddedBlock:A,fullWidth:M,lineDirection:T,customSize:q,helpText:H,helpOnFocus:G,errorText:Z,label:w,placeholder:x,onClick:this._toggleOpen,onKeyDown:this._handleKeyDown,value:this._getTextFieldValue(this.props,this.state),readOnly:!0}),ee)},t}(r.PureComponent);Hs.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),"aria-label":(0,je.default)(o().string),style:o().object,className:o().string,pickerStyle:o().object,pickerClassName:o().string,inputStyle:o().object,inputClassName:o().string,textFieldStyle:o().object,textFieldClassName:o().string,icon:o().node,defaultVisible:o().bool,label:o().node,placeholder:o().string,value:b(o().instanceOf(Date),"onChange","defaultValue"),onChange:o().func,defaultValue:o().instanceOf(Date),DateTimeFormat:o().func.isRequired,locales:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,okLabel:o().node.isRequired,okPrimary:o().bool,cancelLabel:o().node.isRequired,cancelPrimary:o().bool,defaultTimeMode:o().oneOf(["hour","minute","second"]),autoOk:o().bool,inline:o().bool,displayMode:o().oneOf(["landscape","portrait"]),fullWidth:o().bool,lineDirection:o().oneOf(["left","center","right"]),visible:b(o().bool,"onVisibilityChange","defaultVisible"),onVisibilityChange:o().func,disabled:o().bool,closeOnEsc:o().bool,hoverMode:o().bool,showSeconds:o().bool,animateInline:o().bool,required:o().bool,block:nn.propTypes.block,paddedBlock:nn.propTypes.paddedBlock,active:nn.propTypes.active,error:nn.propTypes.error,floating:nn.propTypes.floating,leftIconStateful:nn.propTypes.leftIconStateful,rightIcon:nn.propTypes.rightIcon,rightIconStateful:nn.propTypes.rightIconStateful,customSize:nn.propTypes.customSize,errorText:nn.propTypes.errorText,helpText:nn.propTypes.helpText,helpOnFocus:nn.propTypes.helpOnFocus,inlineIndicator:nn.propTypes.inlineIndicator,portal:o().bool,renderNode:o().object,lastChild:o().bool,disableScrollLocking:o().bool,readOnly:o().bool,isOpen:(0,E.Z)(o().bool,"Use `visible` instead"),initiallyOpen:(0,E.Z)(o().bool,"Use `defaultVisible` instead"),initialTimeMode:(0,E.Z)(o().oneOf(["hour","minute"]),"Use `defaultTimeMode` instead")},Hs.defaultProps={animateInline:!0,defaultTimeMode:"hour",icon:r.createElement(ve,null,"access_time"),DateTimeFormat:Xa,locales:"undefined"!==typeof window?window.navigator.userLanguage||window.navigator.language:"en-US",okLabel:"Ok",okPrimary:!0,cancelLabel:"Cancel",cancelPrimary:!0,closeOnEsc:!0,disableScrollLocking:!1,"aria-label":"Select a time",hoverMode:!1,showSeconds:!1};var Gs=function(){var e=this;this._setContainer=function(t){e._container=t},this._closeOnEsc=function(t){(t.which||t.keyCode)===w&&e._handleCancelClick(t)},this._handleOutsideClick=function(t){e._container&&!e._container.contains(t.target)&&e._handleCancelClick(t)},this._toggleOpen=function(t){if(!e.props.disabled&&!e.props.readOnly){var n=!("undefined"!==typeof e.props.isOpen?e.props.isOpen:d(e.props,e.state,"visible"));if(e.props.onVisibilityChange&&e.props.onVisibilityChange(n,t),"undefined"===typeof e.props.isOpen&&"undefined"===typeof e.props.visible)e.props.hoverMode&&e._setTimeMode("hour"),e.setState({visible:n})}},this._setTimeMode=function(t){e.state.timeMode!==t&&e.setState({timeMode:t})},this._setTempTime=function(t){e.state.tempTime!==t&&e.setState(Zs({tempTime:t},e._getTimeParts(t,e.props)))},this._handleKeyDown=function(t){L(t,e._toggleOpen,!0,!0),9===(t.which||t.keyCode)&&e.state.active&&e.setState({active:!1})},this._handleOkClick=function(t){var n=e.props,r=n.onVisibilityChange,i=n.onChange,o=n.DateTimeFormat,a=n.locales,s=n.showSeconds,l=new Date(e.state.tempTime);i&&i(Ts(o,a,s,l),l,t),r&&r(!1,t);var c=Zs({time:l},e._getTimeParts(l,e.props));"undefined"===typeof e.props.value&&(c.value=l),"undefined"===typeof e.props.isOpen&&"undefined"===typeof e.props.visible&&(c.visible=!1),e.setState(c)},this._handleCancelClick=function(t){e.props.onVisibilityChange&&e.props.onVisibilityChange(!1,t);var n=void 0;"undefined"===typeof e.props.isOpen&&"undefined"===typeof e.props.visible&&(n={visible:!1});var r=d(e.props,e.state,"value");r&&((n=Zs({},n,e._getTimeParts(r,e.props))).tempTime=e.state.time),n&&e.setState(n)}};var Ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ys=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.scale,n=e.style,i=e.className,o=e.value,a=e.determinateDashoffset,s=e.centered,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["scale","style","className","value","determinateDashoffset","centered"]),c="number"===typeof o,d=void 0,p=n;if(c){var h="rotate3d(0, 0, 1, "+6.3*o+"deg)";d={strokeDashoffset:a-a/100*o},p=Object.assign({},n,{WebkitTransform:u()(n.WebkitTransform,h),MozTransform:u()(n.MozTransform,h),transform:u()(n.transform,h)})}var f={role:"progressbar","aria-valuemin":0,"aria-valuemax":100};return c&&(f["aria-valuenow"]=o),r.createElement("svg",Ws({},l,f,{style:p,className:u()("md-progress md-progress--circular",{"md-block-centered":s,"md-progress--circular-determinate":c,"md-progress--circular-indeterminate":!c},i),width:24*t,height:24*t,viewBox:"0 0 66 66"}),r.createElement("circle",{className:u()("md-circular-progress-path",{"md-circular-progress-path--animated":!c}),strokeWidth:"6",strokeLinecap:"round",style:d,cx:"33",cy:"33",r:"30"}))},t}(r.PureComponent);Ys.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),style:o().object.isRequired,className:o().string,value:wn(o().number,0,100),scale:o().number.isRequired,determinateDashoffset:o().number.isRequired,centered:o().bool},Ys.defaultProps={style:{},scale:1,determinateDashoffset:187,centered:!0};const Ks=Ys;var Xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Js=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.progressClassName,i=e.progressStyle,o=e.value,a=e.query,s=e.centered,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","progressClassName","progressStyle","value","query","centered"]),c="number"===typeof o,d={role:"progressbar","aria-valuemin":0,"aria-valuemax":100},p=void 0;return c&&(p={width:o+"%"},d["aria-valuenow"]=o),i&&(p=Object.assign(p||{},"function"===typeof i?i(o,this):i)),r.createElement("div",Xs({},l,{className:u()("md-progress md-progress--linear",{"md-block-centered":s},t)}),r.createElement("div",Xs({},d,{style:p,className:u()("md-progress--linear-active",{"md-progress--linear-query":a,"md-progress--linear-determinate":c,"md-progress--linear-indeterminate":!c},"function"===typeof n?n(o,this):n)})))},t}(r.PureComponent);Js.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),className:o().string,progressClassName:o().oneOfType([o().func,o().string]),progressStyle:o().oneOfType([o().func,o().object]),value:wn(o().number,0,100),query:o().bool,centered:o().bool},Js.defaultProps={query:!1};var Qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function el(e){return function(t,n,r){for(var i=arguments.length,o=Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var s=e.apply(void 0,[t,n,r].concat(o));if(!s&&"undefined"===typeof t[n]){var l=t.controls.filter((function(e){return!e[n]})).map((function(e,t){return t}));if(l.length){var c=l.length===t.controls.length?"All `controls`":"The `controls` at indexes `"+l.join("`, `")+"`";s=new Error("The `"+n+"` prop is required to make `"+r+"` accessible for users of assistive technologies such as screen readers. Either add the `"+n+"` to the `"+r+"` or add the `"+n+"` to each `control` in the `controls` prop. "+(c+" are missing the `"+n+"` prop."))}}return s}}var tl=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));r._setGroup=function(e){r._group=e},r._handleChange=function(e){var t=e.target.value;if("checkbox"===r.props.type){var n=e.target.checked,i=d(r.props,r.state,"value"),o=r._isChecked(i,t,"checkbox");t=!o&&n?(i?i+",":"")+t:o>-1&&!n?i.replace(new RegExp(t+",|,"+t+"|^"+t+"$"),""):i}r.props.onChange&&r.props.onChange(t,e),"undefined"===typeof r.props.value&&r.setState({value:t})},r._handleKeyDown=function(e){r.props.onKeyDown&&r.props.onKeyDown(e);var t=e.which||e.keyCode,n=38===t||37===t,i=40===t||39===t;if(r._group&&(n||i)){e.preventDefault();var o=r._group.querySelectorAll('*[role="radio"]');r._activeIndex=function(e,t,n){var r=e+(arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?-1:1);return n<r?r=t:r<t&&(r=n),r}(r._activeIndex,0,o.length-1,i),o[r._activeIndex].focus();var a=r.props.controls[r._activeIndex].value;d(r.props,r.state,"value")!==a&&(r.props.onChange&&r.props.onChange(a,e),"undefined"===typeof r.props.value&&r.setState({value:a}))}};var i="radio"===n.type;if(r.state={},"undefined"===typeof n.value){var o=n.defaultValue;"undefined"===typeof o&&(o=i?n.controls[0].value:""),r.state.value=o}var a=d(n,r.state,"value");return r._activeIndex=-1,n.controls.some((function(e,t){return e.value===a&&(r._activeIndex=t),r._activeIndex>-1})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._isChecked=function(e,t,n){return"radio"===n?e===t:-1!==e.split(",").indexOf(t)},t.prototype.render=function(){var e=this,t=this.props,n=t.id,i=t.name,o=t.type,a=t.label,s=t.labelClassName,l=t.className,c=t.controlStyle,p=t.controlClassName,h=t.component,f=t.labelComponent,m=t.inline,g=t.disabled,y=t.checkedRadioIcon,v=t.uncheckedRadioIcon,b=t.checkedCheckboxIcon,_=t.uncheckedCheckboxIcon,w=t.controlComponent,x=(t.value,t.controls,t.defaultValue,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["id","name","type","label","labelClassName","className","controlStyle","controlClassName","component","labelComponent","inline","disabled","checkedRadioIcon","uncheckedRadioIcon","checkedCheckboxIcon","uncheckedCheckboxIcon","controlComponent","value","controls","defaultValue"])),k=d(this.props,this.state,"value"),C="radio"===o,S=this.props.controls.map((function(t,a){var s=t.style;c&&(s=s?Qs({},c,s):c);var l=e._isChecked(k,t.value,o),d=Qs({id:""+n+a,key:"control"+a,name:i+("checkbox"===o?"[]":""),type:o,inline:m,disabled:g,checked:l,tabIndex:!C||l||0===a&&-1===e._activeIndex?void 0:-1,checkedRadioIcon:y,uncheckedRadioIcon:v,checkedCheckboxIcon:b,uncheckedCheckboxIcon:_,"aria-describedby":n+"-group-label"},t,{style:s,className:u()(p,t.className)});return r.createElement(w,d)})),M=void 0;return a&&(M=r.createElement(f,{className:s,id:n+"-group-label"},a)),r.createElement(h,Qs({},x,{ref:this._setGroup,className:u()("md-selection-control-group",l),onChange:this._handleChange,onKeyDown:C?this._handleKeyDown:null}),M,S)},t}(r.PureComponent);tl.propTypes={style:o().object,className:o().string,controlStyle:o().object,controlClassName:o().string,id:el(o().oneOfType([o().number,o().string])),type:o().oneOf(["checkbox","radio"]).isRequired,component:o().string.isRequired,label:o().node,labelClassName:o().string,controlComponent:o().oneOfType([o().string,o().func,o().object]).isRequired,labelComponent:o().oneOfType([o().string,o().func,o().object]).isRequired,onChange:o().func,name:el(o().oneOfType([o().number,o().string])),defaultValue:o().oneOfType([o().bool,o().number,o().string]),value:b(o().oneOfType([o().bool,o().number,o().string]),"onChange"),controls:o().arrayOf(o().shape({key:o().oneOfType([o().number,o().string]),label:o().node.isRequired,value:o().oneOfType([o().bool,o().number,o().string]).isRequired})).isRequired,inline:o().bool,disabled:o().bool,onKeyDown:o().func,checkedRadioIcon:o().node,uncheckedRadioIcon:o().node,checkedCheckboxIcon:o().node,uncheckedCheckboxIcon:o().node},tl.defaultProps={component:"fieldset",labelComponent:"legend",labelClassName:"md-subheading-1",controlComponent:$r};const nl=tl;var rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var il=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.checkedIcon,n=e.uncheckedIcon,i=e.checkedIconChildren,o=e.checkedIconClassName,a=e.uncheckedIconChildren,s=e.uncheckedIconClassName,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["checkedIcon","uncheckedIcon","checkedIconChildren","checkedIconClassName","uncheckedIconChildren","uncheckedIconClassName"]),c=be(o,i,t),u=be(s,a,n);return r.createElement($r,rl({type:"checkbox",checkedCheckboxIcon:c,uncheckedCheckboxIcon:u,__superSecreteProp:!0},l))},t}(r.PureComponent);il.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),style:o().object,className:o().string,label:o().node,labelBefore:o().bool,name:(0,je.default)(o().oneOfType([o().number,o().string])),disabled:o().bool,onChange:o().func,value:o().oneOfType([o().bool,o().number,o().string]),defaultChecked:o().bool,checked:b(o().bool,"onChange","defaultChecked"),inline:o().bool,changeOnEnter:o().bool,checkedIcon:o().node,uncheckedIcon:o().node,checkedIconChildren:(0,E.Z)(o().node,"Use `checkedIcon` instead"),checkedIconClassName:(0,E.Z)(o().string,"Use `checkedIcon` instead"),uncheckedIconChildren:(0,E.Z)(o().node,"Use `uncheckedIcon` instead"),uncheckedIconClassName:(0,E.Z)(o().string,"Use `uncheckedIcon` instead")},il.defaultProps={checkedIcon:r.createElement(ve,null,"check_box"),uncheckedIcon:r.createElement(ve,null,"check_box_outline_blank")};const ol=il;var al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var sl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.checkedIcon,n=e.uncheckedIcon,i=e.checkedIconChildren,o=e.checkedIconClassName,a=e.uncheckedIconChildren,s=e.uncheckedIconClassName,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["checkedIcon","uncheckedIcon","checkedIconChildren","checkedIconClassName","uncheckedIconChildren","uncheckedIconClassName"]),c=be(o,i,t),u=be(s,a,n);return r.createElement($r,al({type:"radio",checkedCheckboxIcon:c,uncheckedCheckboxIcon:u,__superSecreteProp:!0},l))},t}(r.PureComponent);sl.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),style:o().object,className:o().string,label:o().node.isRequired,labelBefore:o().bool,name:(0,je.default)(o().oneOfType([o().number,o().string])),disabled:o().bool,onChange:o().func,value:o().oneOfType([o().bool,o().number,o().string]).isRequired,checked:o().bool.isRequired,inline:o().bool,changeOnEnter:o().bool,checkedIcon:o().node.isRequired,uncheckedIcon:o().node.isRequired,checkedIconChildren:(0,E.Z)(o().node,"Use `checkedIcon` instead"),checkedIconClassName:(0,E.Z)(o().string,"Use `checkedIcon` instead"),uncheckedIconChildren:(0,E.Z)(o().node,"Use `uncheckedIcon` instead"),uncheckedIconClassName:(0,E.Z)(o().string,"Use `uncheckedIcon` instead")},sl.defaultProps={checkedIcon:r.createElement(ve,null,"radio_button_checked"),uncheckedIcon:r.createElement(ve,null,"radio_button_unchecked")};var ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var cl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.toggled,n=e.defaultToggled,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["toggled","defaultToggled"]);return"undefined"!==typeof t&&"undefined"===typeof i.checked&&(i.checked=t),"undefined"!==typeof n&&"undefined"===typeof i.defaultChecked&&(i.defaultChecked=n),r.createElement($r,ll({type:"switch"},i,{__superSecreteProp:!0}))},t}(r.PureComponent);cl.propTypes={id:(0,je.default)(o().oneOfType([o().string,o().number])),style:o().object,className:o().string,label:o().node,labelBefore:o().bool,name:(0,je.default)(o().oneOfType([o().number,o().string])),disabled:o().bool,onChange:o().func,value:o().oneOfType([o().bool,o().number,o().string]),defaultChecked:o().bool,checked:b(o().bool,"onChange","defaultChecked"),changeOnEnter:o().bool,defaultToggled:(0,E.Z)(o().bool,"Use the `defaultChecked` prop instead"),toggled:(0,E.Z)(o().bool,"Use the `checked` prop instead")};function ul(e,t,n,r,i,o,a,s){var l=void 0,c=function(e,t,n,r){var i=Math.min(t,Math.max(0,e-n));return r?i:i/t*100}(e,t,n,s);if(s){if(l=Math.round(c/(t/r)),i<1){var u=String(i).split(".")[1],d="undefined"!==typeof u&&u.length>0?Math.pow(10,u.length):1,p=l*d%(i*d);0!==p&&p>=i/2?l+=i-p:0!==p&&(l-=p)}c=l/r*100,l=l*i+o}else l=o+i*Math.round(c/100*r);return{distance:Math.max(0,Math.min(100,c)),value:Math.max(o,Math.min(a,l))}}var dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var pl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=e.htmlFor,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","htmlFor"]);return t?r.createElement("label",dl({},o,{htmlFor:i,className:u()("md-slider-label",P({text:!0}),n)}),t):null},t}(r.PureComponent);pl.propTypes={className:o().string,children:o().node,htmlFor:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s;return"undefined"===typeof e.children?null:(s=o().string).isRequired.apply(s,[e,t,n].concat(i))}};const hl=pl;function fl(e,t,n){var r=t(parseInt(e,10));return"number"===typeof e?n?""+r+n:r:""+r+e.replace(/[0-9]/g,"")}var ml=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var gl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.trackFillWidth,o=e.dragging,a=e.disabled,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","trackFillWidth","dragging","disabled"]);return a?null:r.createElement("hr",ml({},s,{style:Object.assign({},t,{width:i}),className:u()("md-slider-track-fill",n,{"md-slider-track-fill--dragging":o})}))},t}(r.PureComponent);gl.propTypes={style:o().object,className:o().string,dragging:o().bool,disabled:o().bool,trackFillWidth:o().string.isRequired};const yl=gl;var vl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var bl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.on,o=e.off,a=e.active,s=e.disabled,l=e.dragging,c=e.thumbLeft,d=e.discrete,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","on","off","active","disabled","dragging","thumbLeft","discrete"]);return r.createElement(A,vl({disabled:s},p,{style:Object.assign({},t,{left:c}),className:u()("md-slider-thumb",n,{"md-slider-thumb--active":a,"md-slider-thumb--dragging":l,"md-slider-thumb--disabled":s,"md-slider-thumb--on":i,"md-slider-thumb--continuous-off":!d&&o,"md-slider-thumb--discrete":d,"md-slider-thumb--discrete-on":d&&a&&i,"md-slider-thumb--discrete-off":d&&!s&&o,"md-slider-thumb--discrete-active":d&&a,"md-slider-thumb--discrete-active-off":d&&a&&o})}))},t}(r.PureComponent);bl.propTypes={style:o().object,className:o().string,thumbLeft:o().string.isRequired,on:o().bool,off:o().bool,active:o().bool,disabled:o().bool,dragging:o().bool,discrete:o().bool};const _l=bl;var wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var xl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.thumbLeft,o=e.disabled,a=e.dragging,s=e.maskInked,l=e.discrete,c=e.leaving,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","thumbLeft","disabled","dragging","maskInked","discrete","leaving"]);return r.createElement("span",wl({},d,{style:Object.assign({},t,{left:i}),className:u()("md-slider-thumb md-slider-thumb--mask",n,{"md-slider-thumb--dragging":a,"md-slider-thumb--mask-inked":s,"md-slider-thumb--mask-disabled":o,"md-slider-thumb--discrete-mask-inked":s&&l,"md-slider-thumb--discrete-mask-leaving":l&&c})}))},t}(r.PureComponent);xl.propTypes={style:o().object,className:o().string,disabled:o().bool,thumbLeft:o().string.isRequired,maskInked:o().bool,dragging:o().bool,discrete:o().bool,leaving:o().bool};const kl=xl;var Cl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Sl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.discrete,o=e.dragging,a=e.thumbLeft,s=e.active,l=e.value,c=e.valuePrecision,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","discrete","dragging","thumbLeft","active","value","valuePrecision"]);if(!i||!s)return null;var p=l.toFixed(c);if(c>0){var h=p.split("."),f=h[0],m=h[1];0===parseInt(m,10)&&(p=f)}return r.createElement("span",Cl({},d,{style:Object.assign({},t,{left:a}),className:u()("md-slider-discrete-value",n,{"md-slider-discrete-value--dragging":o})}),p)},t}(r.PureComponent);Sl.propTypes={style:o().object,className:o().string,discrete:o().bool,dragging:o().bool,active:o().bool,value:o().number.isRequired,thumbLeft:o().string.isRequired,valuePrecision:o().number.isRequired};const Ml=Sl;var Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var El=function(e){return e/2},Pl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.on,n=e.off,i=e.active,o=e.disabled,a=e.dragging,s=e.className,l=e.thumbLeft,c=e.trackFillWidth,d=e.trackFillStyle,p=e.trackFillClassName,h=e.discreteValueStyle,f=e.discreteValueClassName,m=e.maskInked,g=e.maskLeaving,y=e.thumbStyle,v=e.thumbClassName,b=e.discrete,_=e.onThumbFocus,w=e.onThumbKeyUp,x=e.onThumbKeyDown,k=e.value,C=e.tickWidth,S=e.discreteTicks,M=e.scale,T=e.step,E=e.valuePrecision,P=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["on","off","active","disabled","dragging","className","thumbLeft","trackFillWidth","trackFillStyle","trackFillClassName","discreteValueStyle","discreteValueClassName","maskInked","maskLeaving","thumbStyle","thumbClassName","discrete","onThumbFocus","onThumbKeyUp","onThumbKeyDown","value","tickWidth","discreteTicks","scale","step","valuePrecision"]),I=[];if("undefined"!==typeof S&&!o&&b)for(var O=M/(S/T),L=fl(C,El,"px"),R=100/O,j=0;j<=O;j++){var D=j*R+"%",A=C;0===j||j===O?A=fl(C,El):D="calc("+D+" - "+L+")",I.push(r.createElement("span",{key:"tick-"+j,className:"md-slider-discrete-tick",style:{left:D,width:A}}))}return r.createElement("div",Tl({},P,{className:u()("md-slider-track",s)}),I,r.createElement(yl,{style:d,className:p,disabled:o,dragging:a,trackFillWidth:c}),r.createElement(_l,{style:y,className:v,on:t,off:n,disabled:o,dragging:a,active:i,thumbLeft:l,onFocus:_,onKeyUp:w,onKeyDown:x,discrete:b}),r.createElement(Ml,{style:h,className:f,discrete:b,dragging:a,active:i,value:k,thumbLeft:l,valuePrecision:E}),r.createElement(kl,{dragging:a,disabled:o,thumbLeft:l,maskInked:m,discrete:b,leaving:g}))},t}(r.PureComponent);Pl.propTypes={style:o().object,className:o().string,thumbStyle:o().object,thumbClassName:o().string,trackFillStyle:o().object,trackFillClassName:o().string,discreteValueStyle:o().object,discreteValueClassName:o().string,on:o().bool,off:o().bool,active:o().bool,dragging:o().bool,disabled:o().bool,thumbLeft:o().string.isRequired,trackFillWidth:o().string.isRequired,value:o().number.isRequired,discrete:o().bool,maskInked:o().bool,maskLeaving:o().bool,onThumbKeyUp:o().func.isRequired,onThumbKeyDown:o().func.isRequired,onThumbFocus:o().func.isRequired,scale:o().number,step:o().number,discreteTicks:o().number,tickWidth:o().oneOfType([o().number,o().string]),valuePrecision:o().number.isRequired};const Il=Pl;var Ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ll=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));Rl.call(r);var i=n.min,o=n.max,a=n.step,s=Math.abs(o-i)/a,l="undefined"!==typeof n.value?n.value:n.defaultValue;"undefined"===typeof l&&(l=i);var c=r._calcDistance(l,i,o),u=r._calcLeft(c),d=c+"%";"undefined"!==typeof n.value&&(l=void 0);var p=void 0;return!n.label||n.editable||n.leftIcon||n.rightIcon||(p="100%"),r.state={value:l,scale:s,distance:c,thumbLeft:u,trackWidth:p,trackFillWidth:d,active:!1,dragging:!1,maskInked:!1},r._dragAdded=!1,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.leftIcon,r=t.rightIcon,i=t.label,o=t.min,a=t.max,s=t.step;if(t.value!==e.value){var l=this._calcDistance(e.value,e.min,e.max);this.setState({distance:l,trackFillWidth:l+"%",thumbLeft:this._calcLeft(l)})}n===e.leftIcon&&r===e.rightIcon&&i===e.label||this._calcTrackWidth(e),o===e.min&&a===e.max&&s===e.step||this.setState({scale:Math.abs(e.max-e.min)/e.step})},t.prototype.componentDidUpdate=function(e,t){var n=this.state,r=n.active,i=n.manualIncrement;r!==t.active&&(r?(window.addEventListener("click",this._blurOnOutsideClick),this._focusThumb()):window.removeEventListener("click",this._blurOnOutsideClick));var o=r&&!i;this._dragAdded!==o&&(o?(window.addEventListener("mousemove",this._handleDragMove),window.addEventListener("mouseup",this._handleDragEnd)):(window.removeEventListener("mousemove",this._handleDragMove),window.removeEventListener("mouseup",this._handleDragEnd)),H(o,window,"move",this._handleDragMove),H(o,window,"end",this._handleDragEnd),this._dragAdded=o)},t.prototype.componentWillUnmount=function(){window.removeEventListener("click",this._blurOnOutsideClick),window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp),W(window,"move",this._handleDragMove),W(window,"end",this._handleDragEnd),this._inkTimeout&&clearTimeout(this._inkTimeout),this._focusTimeout&&clearTimeout(this._focusTimeout)},t.prototype._calcLeft=function(e){return"calc("+e+"% - 6px)"},t.prototype._calcDistance=function(e,t,n){return Math.max(0,Math.min(100,(e-t)/(n-t)*100))},t.prototype._isValidClassList=function(e){var t=!1;return["md-slider-label","md-slider-ind","md-icon"].some((function(n){return t=e.contains(n)})),!t},t.prototype._isInTextField=function(e){var t=e.target.className;return"function"===typeof t.match&&t.match(/text-field/)},t.prototype.render=function(){var e=this.state,t=e.dragging,n=e.active,i=e.thumbLeft,o=e.trackFillWidth,a=e.maskInked,s=e.trackWidth,l=e.scale,c=e.distance,p=this.props,h=p.id,f=p.min,m=p.max,g=p.disabled,y=p.className,v=p.trackStyle,b=p.trackClassName,_=p.thumbStyle,w=p.thumbClassName,x=p.discreteValueStyle,k=p.discreteValueClassName,C=p.label,S=p.editable,M=p.step,T=p.inputWidth,E=p.leftIcon,P=p.rightIcon,I=p.discrete,O=p.discreteTicks,L=p.tickWidth,R=p.valuePrecision,j=(p.value,p.onChange,p.onDragChange,p.discreteInkTransitionTime,p.stepPrecision,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["id","min","max","disabled","className","trackStyle","trackClassName","thumbStyle","thumbClassName","discreteValueStyle","discreteValueClassName","label","editable","step","inputWidth","leftIcon","rightIcon","discrete","discreteTicks","tickWidth","valuePrecision","value","onChange","onDragChange","discreteInkTransitionTime","stepPrecision"])),D=d(this.props,this.state),A=P;return S&&(A=r.createElement(nn,{id:h+"-editor",ref:this._setField,type:"number",value:D,inputClassName:"md-slider-editor",style:{width:T},onChange:this._handleTextFieldChange,step:M})),r.createElement("div",Ol({},j,{ref:this._setNode,className:u()("md-slider-container",y,{"md-pointer--hover":!g}),onMouseDown:this._handleDragStart,onTouchStart:this._handleDragStart}),r.createElement(hl,{htmlFor:h},C),r.createElement("input",{id:h,type:"range",className:"md-slider-input",readOnly:!0,min:f,max:m,value:D,disabled:g}),E,r.createElement(Il,{ref:this._setTrack,style:Object.assign({},v,{width:s}),className:u()(b,{"md-slider-track--ind-left":E,"md-slider-track--ind-right":P}),thumbStyle:_,thumbClassName:w,discreteValueStyle:x,discreteValueClassName:k,active:n,dragging:t,disabled:g,thumbLeft:i,trackFillWidth:o,on:!g&&c>0,off:0===c,maskInked:a,onThumbKeyUp:this._handleKeyUp,onThumbKeyDown:this._handleKeyDown,onThumbFocus:this._handleFocus,discrete:I,tickWidth:L,discreteTicks:O,valuePrecision:R,step:M,scale:l,value:D}),A)},t}(r.PureComponent);Ll.propTypes={id:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return"undefined"===typeof e.label?o().string.apply(o(),[e,t,n].concat(i)):(0,je.default)(o().oneOfType([o().number,o().string])).apply(void 0,[e,t,n].concat(i))},style:o().object,className:o().string,thumbStyle:o().object,thumbClassName:o().string,trackStyle:o().object,trackClassName:o().string,trackFillStyle:o().object,trackFillClassName:o().string,discreteValueStyle:o().object,discreteValueClassName:o().string,defaultValue:o().number,min:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l=(s=o().number).isRequired.apply(s,[e,t,n].concat(i));if(!l){var c=e[t],u=void 0;c>e.value?u="value":"undefined"!==typeof e.defaultValue&&c>e.defaultValue&&(u="defaultValue"),u&&(l=new Error("The '"+t+"' prop must be less than or equal to the '"+u+"' prop for the '"+n+"' but received: 'min: "+c+"' and '"+u+": "+e[u]+"'"))}return l},max:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l=(s=o().number).isRequired.apply(s,[e,t,n].concat(i));if(!l){var c=e[t],u=void 0;c<e.value?u="value":c<e.defaultValue&&(u="defaultValue"),u&&(l=new Error("The '"+t+"' prop must be greater than or equal to the '"+u+"' prop for the '"+n+"' but received: '"+t+": "+c+"' and '"+u+": "+e[u]+"'"))}return l},disabled:o().bool,value:b(o().number,"onChange"),onChange:o().func,onDragChange:o().func,onMouseDown:o().func,onTouchStart:o().func,leftIcon:o().element,rightIcon:o().element,label:o().node,step:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l=(s=o().number).isRequired.apply(s,[e,t,n].concat(i));if(!l){var c=e[t];if(c<=0)l=new Error("The '"+t+"' for the '"+n+"' must be a number greater than 0. The current value is '"+c+"'.");else{var u="undefined"!==typeof e.value,d="undefined"!==typeof e.defaultValue,p=e.value;u||(p=d?e.defaultValue:e.min);var h=void 0;(function(e,t){var n=String(t).split(".")[1],r="undefined"!==typeof n&&n.length>0?Math.pow(10,n.length):1;return e*r%(t*r)===0})(p,c)||(h=u?"value":d?"defaultValue":"min"),h&&(l=new Error("The '"+h+"' prop on '"+n+"' should be a number divisible by the '"+t+"' prop. The current value is '"+e[h]+"' and the '"+t+"' is '"+c+"'."))}}return l},editable:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s;if("undefined"===typeof e[t])return null;var l=(s=o().bool).isRequired.apply(s,[e,t,n].concat(i));return l||"undefined"===typeof e.rightIcon||(l=new Error("The '"+n+"' is unable to be 'editable' and include a 'rightIcon'.")),l},inputWidth:o().oneOfType([o().number,o().string]).isRequired,discrete:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];if("undefined"===typeof e[t])return null;var s=o().bool.apply(o(),[e,t,n].concat(i));return s||"undefined"===typeof e.editable||(s=new Error("The '"+n+"' cannot be 'discrete' and 'editable'. Please choose one.")),s},tickWidth:o().oneOfType([o().number,o().string]).isRequired,discreteTicks:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];if("undefined"===typeof e[t])return null;var s=o().number.apply(o(),[e,t,n].concat(i));if(!s){var l=e.min,c=e.max,u=e.step,d=Math.abs(c-l);d/e[t]%1!==0?s=new Error("The '"+t+"' must be a number divisible by the range set by the 'min' and 'max' props. The current range is '"+d+"' by including the min: '"+l+"' and max: '"+c+"' values. The current value of '"+t+"' is '"+e[t]+"'."):e[t]%u!==0&&(s=new Error("The 'step' prop must be a number divisible by the '"+t+"'. It is common to have them as the same value. The current 'step' is '"+u+"' and the '"+t+"' is '"+e[t]+"'."))}return s},discreteInkTransitionTime:o().number.isRequired,valuePrecision:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s,l=(s=o().number).isRequired.apply(s,[e,t,n].concat(i));if(!l){var c=e[t];(c%1!==0||c<0)&&(l=new Error("The '"+t+"' must be a positive whole number or 0 on the '"+n+"'. The current '"+t+"' is '"+c+"'"))}return l},stepPrecision:(0,E.Z)(o().number,"Use `step` and `valuePrecision` instead")},Ll.defaultProps={min:0,max:100,step:1,inputWidth:40,tickWidth:6,discreteInkTransitionTime:300,valuePrecision:0};var Rl=function(){var e=this;this._isTextField=function(t){return e._field&&e._field.contains(t)},this._updatePosition=function(t,n){var r=(t.changedTouches?t.changedTouches[0]:t).clientX,i=e.state.scale,o=e.props,a=o.onChange,s=o.onDragChange,l=o.min,c=o.max,u=o.step,p=ul(r,e._track.offsetWidth,e._track.getBoundingClientRect().left,i,u,l,c,n),h=p.value,f=p.distance,m=d(e.props,e.state,"value")!==h;a&&m&&a(h,t),n||!s||!m&&e.state.distance===f||s(f,h,t);var g={active:!0,distance:f,manualIncrement:!1,dragging:!n,thumbLeft:e._calcLeft(f),trackFillWidth:f+"%"};"touchend"!==t.type&&"mousedown"!==t.type||(g.maskInked=!1),"undefined"===typeof e.props.value&&(g.value=h),e.setState(g)},this._handleDragStart=function(t){if("mousedown"===t.type&&e.props.onMouseDown?e.props.onMouseDown(t):"touchstart"===t.type&&e.props.onTouchStart&&e.props.onTouchStart(t),!(e.props.disabled||"mousedown"===t.type&&!$(t)||e._isInTextField(t))){var n=t.target.classList,r=n.contains("md-slider-discrete-value");n.contains("md-slider-thumb")||r?(t.type.match(/mouse/)&&t.preventDefault(),e.setState({dragging:!0,active:!0,manualIncrement:!1,maskInked:!1})):!e._isTextField(t.target)&&e._isValidClassList(n)&&e._updatePosition(t,!0)}},this._setNode=function(t){e._node=(0,a.findDOMNode)(t)},this._setTrack=function(t){e._track=(0,a.findDOMNode)(t)},this._setField=function(t){e._field=(0,a.findDOMNode)(t),e._calcTrackWidth(e.props)},this._handleDragMove=function(t){!e.props.disabled&&e.state.dragging&&(t.type.match(/mouse/)&&t.preventDefault(),e._updatePosition(t,!1))},this._handleDragEnd=function(t){!e.state.dragging||e.props.disabled||"mouseup"===t.type&&!$(t)||e._updatePosition(t,!0)},this._blurOnOutsideClick=function(t){e.state.dragging&&!e.state.manualIncrement||e.props.disabled||e._node.contains(t.target)||e.setState({active:!1,maskInked:!1})},this._handleIncrement=function(t,n,r){var i=e.props,o=i.onChange,a=i.min,s=i.max,l=i.discrete,c=Math.max(a,Math.min(s,t)),u=e._calcDistance(c,a,s);o&&o(c,n);var d={distance:u,manualIncrement:!0,thumbLeft:e._calcLeft(u),trackFillWidth:u+"%",dragging:Math.abs(e.state.distance-u)<2&&r};"undefined"===typeof e.props.value&&(d.value=c),"keydown"!==n.type||l||(d.maskInked=!0),e.setState(d)},this._handleTextFieldChange=function(t,n){e._handleIncrement(t,n,!1)},this._handleKeyDown=function(t){var n=t.which||t.keyCode,r=e.props,i=r.min,o=r.max,a=r.step;if(!r.disabled)if(9!==n){if(37===n||39===n){var s=d(e.props,e.state,"value");s=Math.max(i,Math.min((37===n?-a:a)+s,o)),e._handleIncrement(s,t,!0)}}else e.setState({active:!1,maskInked:!1})},this._handleKeyUp=function(t){9===(t.which||t.keyCode)&&(e.props.discrete&&e._animateDiscreteInk(),e.setState({maskInked:!0}))},this._handleFocus=function(){e.setState({active:!0})},this._calcTrackWidth=function(t){var n=t.editable,r=t.leftIcon,i=t.rightIcon,o=t.inputWidth;if(t.label){var a=null;if(r||i||n){if(e._field&&n&&!r){var s=window.getComputedStyle(e._field);a=(parseInt(s.getPropertyValue("padding-left"),10)||0)+(parseInt(s.getPropertyValue("margin-left"),10)||0)+o}}else a="100%";a!==e.state.trackWidth&&e.setState({trackWidth:a})}else e.setState({trackWidth:null})},this._animateDiscreteInk=function(){var t=e.props.discreteInkTransitionTime;e._inkTimeout&&clearTimeout(e._inkTimeout),e._inkTimeout=setTimeout((function(){e.setState({leaving:!0,maskInked:!1}),e._inkTimeout=setTimeout((function(){e._inkTimeout=null,e.setState({leaving:!1})}),t)}),t)},this._focusThumb=function(){e._focusTimeout&&clearTimeout(e._focusTimeout),e._focusTimeout=setTimeout((function(){e._focusTimeout=null,e._thumb||(e._thumb=e._node.querySelector(".md-slider-thumb")),e._thumb.focus()}),100)}};var jl="getComposedComponent";function Dl(e){return"function"!==typeof e[jl]||"function"!==typeof e[jl]()[jl]||"function"!==typeof e[jl]()[jl]()._animateForSnackbar}var Al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Nl(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Fl=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Nl(this,e.call.apply(e,[this].concat(o))),r._handleClick=function(e){var t=r.props,n=t.onDismiss,i=t.toast.action,o=t.leaveTimeout,a=t.multiline;"function"===typeof i.onClick&&i.onClick(e),r._fab&&r._fab._animateForSnackbar(a,o),n()},r._clearTimeout=function(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null)},r._handleAutohide=function(){var e=r.props,t=e.autohide,n=e.autohideTimeout,i=e.onDismiss,o=e.multiline,a=e.leaveTimeout;t&&(window.addEventListener("blur",r._handleWindowBlur),r._eventType="blur",r._timeout=setTimeout((function(){r._timeout=null,r._eventType=null,window.removeEventListener("blur",r._handleWindowBlur),r._fab&&r._fab._animateForSnackbar(o,a),i()}),n||r.state.toast))},r._handleWindowBlur=function(){r._clearTimeout(),window.removeEventListener("blur",r._handleWindowBlur),window.addEventListener("focus",r._handleWindowFocus),r._eventType="focus"},r._handleWindowFocus=function(){window.removeEventListener("focus",r._handleWindowFocus),r._eventType=null,r._handleAutohide()},Nl(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.fab,n=e.multiline,r=e.toast.onAppear;r&&r(),t&&!Dl(t)&&(this._fab=t.getComposedComponent().getComposedComponent(),this._fab._animateForSnackbar(n))},t.prototype.componentDidMount=function(){this._handleAutohide()},t.prototype.componentWillUnmount=function(){this._clearTimeout(),"focus"===this._eventType?window.removeEventListener("focus",this._handleWindowFocus):"blur"===this._eventType&&window.removeEventListener("blur",this._handleWindowBlur)},t.prototype.render=function(){var e=this.props,t=e.autoFocusAction,n=e.className,i=e.toast,o=e.multiline,a=(e.id,e.fab,e.autohide,e.autohideTimeout,e.leaveTimeout,e.onDismiss,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["autoFocusAction","className","toast","multiline","id","fab","autohide","autohideTimeout","leaveTimeout","onDismiss"])),s=i.text,l=i.action,c=this.props.id,d="p";if(l){d="section",s=r.createElement("p",{className:"md-snackbar--toast md-snackbar--action"},s);var p={autoFocus:t,flat:!0,onClick:this._handleClick,children:l,secondary:!0,className:"md-btn--snackbar"};"string"!==typeof l&&(p=Object.assign(p,l,{className:u()(p.className,l.className),onClick:this._handleClick})),l=r.createElement(Wn,p)}c||(c="snackbar-alert"+(l?"-dialog":""));var h="alert"+(l?"dialog":"");return r.createElement(d,Al({},a,{id:c,role:h,className:u()("md-snackbar",{"md-snackbar--multiline":o,"md-snackbar--toast":!l},n)}),s,l)},t}(r.PureComponent);Fl.propTypes={autoFocusAction:o().bool,id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,children:o().node,onDismiss:o().func.isRequired,toast:o().shape({text:o().node.isRequired,action:o().oneOfType([o().node,o().shape({label:o().node,children:o().node,onClick:o().func})]),onAppear:o().func}).isRequired,multiline:o().bool,autohide:o().bool,autohideTimeout:o().number,fab:o().object,leaveTimeout:o().number.isRequired};const zl=Fl;var Bl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ul=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var $l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));Vl.call(r);var i=!!n.toasts.length;return r.state={visible:i,toast:null},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this.props.toasts;e.length&&this._initAndToast(e[0])},t.prototype.componentWillReceiveProps=function(e){var t=e.toasts[0];t!==this.props.toasts[0]&&t!==this.state.toast&&(t?this.state.visible?this._createSwapTimer(t):this._initAndToast(t):this._createLeaveTimer())},t.prototype.componentWillUnmount=function(){this._initTimeout&&clearTimeout(this._initTimeout),this._leaveTimeout&&clearTimeout(this._leaveTimeout),this._swapTimeout&&clearTimeout(this._swapTimeout),this._dismissTimeout&&clearTimeout(this._dismissTimeout)},t.prototype.render=function(){var e=this.state,t=e.visible,n=e.toast,i=e.multiline,o=this.props,a=o.transitionName,s=o.transitionEnterTimeout,c=o.transitionLeaveTimeout,u=o.dismiss,p=o.onDismiss,h=o.lastChild,f=o.portal,m=(o.renderNode,o.toasts,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["transitionName","transitionEnterTimeout","transitionLeaveTimeout","dismiss","onDismiss","lastChild","portal","renderNode","toasts"])),g=d(this.props,this.context,"renderNode"),y=void 0;n&&(y=r.createElement(zl,Ul({},m,{key:"snackbar",leaveTimeout:c,toast:n,multiline:i,onDismiss:p||u})));var v=r.createElement(l(),{ref:this._setContainer,key:"container",className:"md-snackbar-container",transitionName:a,transitionEnterTimeout:s,transitionLeaveTimeout:c},y);return f?r.createElement(bn,{visible:t,renderNode:g,lastChild:h},v):t?v:null},t}(r.PureComponent);$l.propTypes={id:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,toasts:o().arrayOf(o().shape({text:o().node.isRequired,action:o().oneOfType([o().node,o().shape({onClick:o().func,children:o().node,label:o().node})])})).isRequired,onDismiss:o().func.isRequired,autohide:o().bool,autohideTimeout:o().number.isRequired,autoFocusAction:o().bool,transitionName:o().string.isRequired,transitionEnterTimeout:o().number.isRequired,transitionLeaveTimeout:o().number.isRequired,fab:function(e,t,n,r,i){var o=e[t],a="undefined"===typeof o?"undefined":Bl(o);return o&&("object"!==a||"function"!==typeof o.render||Dl(o))?new Error("Invalid "+r+" `"+(i||t)+"` supplied to `"+(n||"<<anonymous>>")+"`, expected a ref to a floating `Button` component. This should not be a DOMElement from `findDOMNode` but instead the React ref object."):null},portal:o().bool,renderNode:o().object,lastChild:o().bool,dismiss:(0,E.Z)(o().func,"Use `onDismiss` instead")},$l.defaultProps={autoFocusAction:!1,autohide:!0,toasts:[],autohideTimeout:3e3,transitionName:"md-snackbar",transitionEnterTimeout:300,transitionLeaveTimeout:300},$l.contextTypes={renderNode:o().object};var Vl=function(){var e=this;this._setContainer=function(t){e._container=(0,a.findDOMNode)(t)},this._isMultiline=function(t){var n=e._container;if(null===n)return!1;var r=document.createElement("p");r.classList.add("md-snackbar--toast"),r.innerHTML=t.text;var i=void 0;if(t.action){r.classList.add("md-snackbar--action"),(i=document.createElement("section")).className="md-snackbar",i.appendChild(r);var o=document.createElement("button");o.innerHTML="string"===typeof t.action?t.action:t.action.label,o.className="md-btn md-btn--flat md-btn--text md-btn--snackbar",i.appendChild(o)}else i=r;i.style.maxWidth="568px",n.appendChild(i);var a=r.offsetHeight>20;return n.removeChild(i),a},this._initAndToast=function(t){e._initTimeout=setTimeout((function(){e._initTimeout=null,e.setState({toast:t,multiline:e._isMultiline(t)})}),X),e.setState({visible:!0})},this._createLeaveTimer=function(){var t=e.props.transitionLeaveTimeout;e._leaveTimeout=setTimeout((function(){e._leaveTimeout=null,e.setState({visible:!1})}),t+X),e.setState({toast:null})},this._createSwapTimer=function(t){e._swapTimeout=setTimeout((function(){e._swapTimeout=null,e.setState({toast:t,multiline:e._isMultiline(t)})}),e.props.transitionLeaveTimeout+50),e.setState({toast:null})}};var ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Zl=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return r._getIds=function(e){var t=e.use,n=e["aria-labelledby"],r=e.title,i=e.desc,o=null,a=null,s=null;if(r||i)if(t){var l=t.replace(/.*#/,"");o=l+"-title",a=l+"-desc",r&&(s=l+"-title"),i&&(s=(s?s+" ":"")+a)}else if(n){var c=n.split(" ");o=c[0],a=c[1]}return{titleId:o,descId:a,labelledBy:s}},r._mergeStyles=function(e){var t=e.style,n=e.size;return t&&n?ql({height:n,width:n},t):t||(n?{height:n,width:n}:void 0)},r.state=ql({styles:r._mergeStyles(n)},r._getIds(n)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.style,r=t.size,i=t.use,o=t.title,a=t.desc,s=t["aria-labelledby"],l=void 0;n===e.style&&r===e.size||(l={styles:this._mergeStyles(e)}),o===e.title&&a===e.desc&&(!e.title&&!e.desc||i===e.use&&s===e["aria-labelledby"])||(l=ql({},l,this._getIds(e))),l&&this.setState(l)},t.prototype.render=function(){var e=this.state,t=e.styles,n=e.titleId,i=e.descId,o=e.labelledBy,a=this.props,s=a.className,l=a.disabled,c=a.use,d=a.primary,p=a.secondary,h=a.error,f=a.inherit,m=a.titleAttr,g=a["aria-labelledby"],y=(a.size,a.title,a.desc,a.style,a.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["className","disabled","use","primary","secondary","error","inherit","titleAttr","aria-labelledby","size","title","desc","style","children"])),v=this.props,b=v.children,_=v.title,w=v.desc;return!b&&c&&(b=r.createElement("use",{xlinkHref:c})),_&&(_=r.createElement("title",{id:n},_)),w&&(w=r.createElement("desc",{id:i},w)),r.createElement("svg",ql({},y,{title:m,"aria-labelledby":g||o,style:t,className:u()("md-icon",P({disabled:l,error:h,inherit:f,primary:d,secondary:p},s))}),_,w,b)},t}(r.PureComponent);Zl.propTypes={style:o().object,className:o().string,primary:o().bool,secondary:o().bool,disabled:o().bool,error:o().bool,inherit:o().bool,role:o().oneOf(["img","presentation"]),titleAttr:o().string,"aria-labelledby":o().string,title:o().string,desc:o().string,use:o().string,children:o().oneOfType([o().element,o().arrayOf(o().element),o().node]),focusable:o().string,size:o().number,height:(0,E.Z)(o().number,"Use the `size` prop instead"),width:(0,E.Z)(o().number,"Use the `size` prop instead"),viewBox:o().string,xmlns:o().string},Zl.defaultProps={role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};const Hl=Zl;var Gl=n(7506),Wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Yl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=e.id,i=e.active,o=e.className,a=e.controlledById,s=e.children,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","id","active","className","controlledById","children"]);return r.createElement(t,Wl({},l,{id:n,className:u()("md-tab-panel",o),role:"tabpanel","aria-hidden":!i,"aria-labelledby":a}),s)},t}(r.PureComponent);Yl.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),controlledById:(0,je.default)(o().oneOfType([o().number,o().string])),style:o().object,className:o().string,component:o().oneOfType([o().func,o().string,o().object]).isRequired,active:o().bool,children:o().node},Yl.defaultProps={component:"div"};const Kl=Yl;var Xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Jl=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._handleTabChange=function(e,t,n,i,o){r.props.onTabChange&&r.props.onTabChange(e,t,n,i,o),"undefined"===typeof r.props.activeTabIndex&&r.setState({activeTabIndex:e})},r._handleSwipeChange=function(e){var t=r.getTabByIndex(e),n=void 0,i=void 0,o=void 0;if(t){var a=t.props;n=a.id,i=a.controlsId,o=a.children}r._handleTabChange(e,n,i,o)},r._setContainer=function(e){r._container=(0,a.findDOMNode)(e),wi(r.props.componentRef,r._container)},r._setTabs=function(e){r._tabs=e},r._resizePanel=function(){if(r._container){var e=r._container.querySelector(".md-tab-panel[aria-hidden=false]");e&&r.state.panelHeight!==e.scrollHeight&&r.setState({panelHeight:e.scrollHeight})}},r.state={},"undefined"===typeof n.activeTabIndex&&(r.state.activeTabIndex=n.defaultTabIndex),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._resizePanel()},t.prototype.componentDidUpdate=function(e,t){d(e,t,"activeTabIndex")!==d(this.props,this.state,"activeTabIndex")&&this._resizePanel()},t.prototype.getTabList=function(){var e=this._tabs;return e?e.getTabList():[]},t.prototype.getTabByIndex=function(e){var t=this._tabs;return t?t.getTabByIndex(e):void 0},t.prototype.render=function(){var e,t=this,n=this.state.panelHeight,i=this.props,o=i.component,a=i.style,s=i.className,l=i.panelStyle,c=i.panelClassName,p=i.panelComponent,h=i.headerStyle,f=i.headerClassName,m=i.slideStyle,g=i.slideHeightProp,y=i.swipeableViewsStyle,v=i.swipeableViewsClassName,b=i.headerComponent,_=i.headerZDepth,w=i.children,x=i.colored,k=i.fixed,C=i.labelAndIcon,S=i.swipeableViewsProps,M=i.themed,T=(i.toolbar,i.activeTabIndex,i.onTabChange,i.defaultTabIndex,i.componentRef,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["component","style","className","panelStyle","panelClassName","panelComponent","headerStyle","headerClassName","slideStyle","slideHeightProp","swipeableViewsStyle","swipeableViewsClassName","headerComponent","headerZDepth","children","colored","fixed","labelAndIcon","swipeableViewsProps","themed","toolbar","activeTabIndex","onTabChange","defaultTabIndex","componentRef"])),E=this.props.toolbar,P=d(this.props,this.state,"activeTabIndex"),I=r.Children.only(w),O=I.props.tabId,L=r.Children.map(I.props.children,(function(e,n){return e?r.createElement(Kl,{id:e.props.controlsId||O+"-panel-"+n,active:P===n,style:l,className:c,component:p,controlledById:e.props.id||O+"-"+n},r.createElement(ht,{watchHeight:!0,onResize:t._resizePanel}),e.props.children):e})),R=r.Children.only(w).props,j=(0,r.cloneElement)(w,{colored:"undefined"!==typeof R.colored?R.colored:x,onTabChange:this._handleTabChange,activeTabIndex:P,ref:this._setTabs}),D=!1;if(E){var A=r.Children.only(E).props;E=(0,r.cloneElement)(E,{component:A.component||"div",colored:"undefined"!==typeof A.colored?R.colored:x}),D=A.prominent||A.prominentTitle}var N=void 0;k&&(N=r.createElement(Cn,{style:h,className:u()("md-tabs-fixed-container",{"md-toolbar--themed":M},f),zDepth:_,component:b},E,j));var F=((e={})[g]=n,e);return r.createElement(o,Xl({style:a,className:u()("md-tabs-container",s)},T,{ref:this._setContainer}),N,N?null:E,N?null:j,r.createElement(Gl.Z,Xl({},S,{style:y,className:u()("md-tabs-content",{"md-tabs-content--offset":!E&&!C&&k,"md-tabs-content--offset-icon":!E&&k&&C,"md-tabs-content--offset-toolbar":E&&k&&!D&&!C,"md-tabs-content--offset-toolbar-prominent":E&&k&&D&&!C,"md-tabs-content--offset-toolbar-icon":k&&E&&C&&!D,"md-tabs-content--offset-toolbar-prominent-icon":k&&E&&C&&D},v),slideStyle:Xl({},F,"function"===typeof m?m(F,n):m),index:P,onChangeIndex:this._handleSwipeChange}),L))},t}(r.PureComponent);Jl.propTypes={style:o().object,className:o().string,panelStyle:o().object,panelClassName:o().string,headerStyle:o().object,headerClassName:o().string,swipeableViewsStyle:o().object,swipeableViewsClassName:o().string,slideStyle:o().oneOfType([o().object,o().func]),slideHeightProp:o().oneOf(["height","minHeight","maxHeight"]),children:o().element.isRequired,component:o().oneOfType([o().func,o().string,o().object]).isRequired,componentRef:o().oneOfType([o().func,o().object]),panelComponent:o().oneOfType([o().func,o().string,o().object]),toolbar:o().element,activeTabIndex:b(o().number,"onTabChange","defaultTabIndex"),onTabChange:o().func,defaultTabIndex:o().number.isRequired,colored:o().bool,themed:o().bool,fixed:o().bool,labelAndIcon:o().bool,headerComponent:o().oneOfType([o().func,o().string,o().object]),headerZDepth:wn(o().number,0,5),swipeableViewsProps:o().object},Jl.defaultProps={component:"section",defaultTabIndex:0,headerZDepth:1,slideHeightProp:"height"};var Ql=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props.visible;return r.createElement(le.y_,{style:{x:(0,le.ST)(this.props.offset),width:(0,le.ST)(this.props.width),height:(0,le.ST)(e?this.props.height:0)}},(function(e){var t=e.x,n=e.height,i=e.width,o="translate3d("+t+"px, 0, 0)";return r.createElement("span",{style:{height:n,width:i,WebkitTransform:o,MozTransform:o,msTransform:o,transform:o},className:"md-tab-indicator"})}))},t}(r.PureComponent);Ql.propTypes={offset:o().number.isRequired,height:o().number.isRequired,width:o().number.isRequired,visible:o().bool};const ec=Ql;var tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function nc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var rc=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=nc(this,e.call.apply(e,[this].concat(o))),r.state={visible:!1},r._toggleVisible=function(e){r.props.onClick&&r.props.onClick(e),r.setState({visible:!r.state.visible})},r._handleClose=function(){r.setState({visible:!1})},nc(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.className,o=e.tabStyle,a=e.tabClassName,s=e.tabs,l=e.label,c=e.activeTabIndex,d=e.overflowAtIndex,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["id","style","className","tabStyle","tabClassName","tabs","label","activeTabIndex","overflowAtIndex"]),h=c>=d,f=r.createElement(se,tc({},p,{onClick:this._toggleVisible,style:o,className:u()("md-tab md-tab--menu",a)}),l);return r.createElement(wt,{id:t,style:n,className:u()("md-menu--tab",{"md-tab--active":h,"md-tab--inactive":!h},i),toggle:f,visible:this.state.visible,onClose:this._handleClose},s.map(Qi))},t}(r.PureComponent);rc.propTypes={id:(0,je.default)(o().oneOfType([o().number,o().string])),activeTabIndex:o().number.isRequired,overflowAtIndex:o().number.isRequired,tabs:o().arrayOf(o().oneOfType([o().element,o().string,o().shape({divider:o().bool,subheader:o().bool,primaryText:o().node})])).isRequired,style:o().object,className:o().string,tabStyle:o().object,tabClassName:o().string,onClick:o().func,label:o().node.isRequired};const ic=rc;var oc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var ac=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.left,n=e.icon,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["left","icon"]);return r.createElement(Wn,oc({},i,{icon:!0,className:u()("md-icon--inherit md-btn--tab-overflow",{"md-btn--tab-overflow-left":t,"md-btn--tab-overflow-right":!t,"md-btn--tab-overflow-icon":n})}))},t}(r.PureComponent);ac.propTypes={left:o().bool,icon:o().bool};const sc=ac;var lc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var cc=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));i._setContainer=function(e){i._container=e,i._positionElements(null!==i._container)},i._positionElements=function(e){if(e="boolean"===typeof e&&e,i._container){var t=i.props,n=t.centered,r=t.overflowMenu,o=i.props.mobile,a=void 0;!n&&i._shouldAlign(i.props)&&(a=i._calcPaddingLeft(i._container,o));var s=void 0;o||(s=i._calcOverflowIndex(i._container,a,r));var l=i._calcIndicatorPosition(i._container,e?a:0);i.setState(lc({mobile:o,paddingLeft:a,overflowAtIndex:s},l),i._scrollActiveIntoView)}},i._scrollActiveIntoView=function(){if(i._container&&i.state.mobile){var e=i._container.querySelector(".md-tab--active");if(e){var t=Array.prototype.slice.call(i._container.querySelectorAll(".md-tab"));if(t[0]!==e){var n=i._container,r=n.offsetWidth,o=n.scrollLeft,a=e.offsetWidth,s=e.offsetLeft;if(!(s-o>=0)||!(s+a-(r+o)<=0)){var l=0;t.some((function(e,t){return t<i.props.activeTabIndex&&(l+=e.offsetWidth),t<i.state.activeTabIndex})),i._container.scrollLeft=l}}else i._container.scrollLeft=0}}},i._handleTabChange=function(e,t,n,r,o){i.props.onTabChange&&i.props.onTabChange(e,t,n,r,o),"undefined"===typeof i.props.activeTabIndex&&i.setState(lc({activeTabIndex:e},i._calcIndicatorPosition(i._container,0,e,i.state.overflowAtIndex)))},i._mapToOverflowTabProps=function(e,t){var n=t+i.state.overflowAtIndex,o=d(i.props,i.state,"activeTabIndex")===n,a=r.Children.only(e),s=i._handleTabChange;return{active:o,primaryText:a.props.label,onClick:function(e){var t=a.props,r=t.onClick,i=t.id,o=t.controlsId,l=t.children;r&&r(n,e),s(n,i,o,l,e)}}},i._nextIndexes=function(e){var t=i.state,n=t.overflowIndex,r=t.overflowAtIndex,o=(r-n)*(e?1:-1);i.setState({overflowIndex:n+o,overflowAtIndex:r+o})},i._showNextTabs=function(){i._nextIndexes(!0)},i._showPreviousTabs=function(){i._nextIndexes(!1)},i._setTab=function(e,t){e&&(i._tabList[t]=e)};var o="undefined"===typeof n.activeTabIndex?n.defaultTabIndex:n.activeTabIndex,a=n.mobile?72:160;return i.state={indicatorWidth:a,indicatorOffset:a*o,indicatorVisible:!0,overflowIndex:0},"undefined"===typeof n.activeTabIndex&&(i.state.activeTabIndex=o),i._tabList=[],i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.activeTabIndex!==e.activeTabIndex?this.setState(lc({},this._calcIndicatorPosition(this._container,0,e.activeTabIndex,this.state.overflowAtIndex)),this._scrollActiveIntoView):!this._shouldAlign(e)&&this._shouldAlign(this.props)&&this.setState({paddingLeft:null})},t.prototype.componentDidUpdate=function(e,t){if(this._shouldAlign(this.props)&&this.state.overflowAtIndex!==t.overflowAtIndex){var n=this._calcPaddingLeft(this._container,this.state.mobile);this.setState({paddingLeft:n})}else{var i=r.Children.map(r.Children.toArray(this.props.children),(function(e){return e.props.label})),o=r.Children.map(r.Children.toArray(e.children),(function(e){return e.props.label}));(i.length!==o.length||i.filter((function(e,t){return i[t]!==o[t]})).length)&&this.setState(lc({},this._calcIndicatorPosition(this._container,0,this.props.activeTabIndex,this.state.overflowAtIndex)),this._scrollActiveIntoView)}},t.prototype.getTabList=function(){return this._tabList.slice(0)},t.prototype.getTabByIndex=function(e){return this._tabList[e]},t.prototype._shouldAlign=function(e){return"boolean"===typeof e.alignToKeyline?e.alignToKeyline:r.Children.toArray(e.children).filter((function(e){return!!e})).length>3},t.prototype._calcPaddingLeft=function(e,t){return(t?72:80)-e.querySelector(".md-tab").querySelector(".md-tab-label").offsetLeft},t.prototype._calcOverflowIndex=function(e){var t=arguments[2],n=e.offsetWidth,r=0;if(n<e.scrollWidth){var i=Array.prototype.slice.call(e.querySelectorAll(".md-tab")),o=0;i.some((function(e,t){return r=t,(o+=e.offsetWidth)>n}))}return Math.max(0,r-(t?1:0))},t.prototype._calcIndicatorPosition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],r=arguments[3],i=void 0;if(!(i="number"===typeof n?r>0&&n>=r?e.querySelector(".md-menu--tab"):e.querySelectorAll(".md-tab")[n]:e.querySelector(".md-tab--active")))return{indicatorVisible:!1};var o=i;return{indicatorWidth:o.offsetWidth,indicatorOffset:o.offsetLeft+t,indicatorVisible:!r||r>n}},t.prototype.render=function(){var e=this,t=this.state,n=t.indicatorOffset,i=t.indicatorWidth,o=t.indicatorVisible,a=t.overflowIndex,s=t.overflowAtIndex,l=t.paddingLeft,c=this.props,p=c.component,h=c.style,f=c.className,m=c.activeTabClassName,g=c.inactiveTabClassName,y=c.colored,v=c.centered,b=c.tabId,_=c.overflowMenu,w=c.overflowMenuLabel,x=c.nextIcon,k=c.previousIcon,C=c.overflowMenuIcon,S=c.indicatorHeight,M=c.overflowMenuIconChildren,T=c.overflowMenuIconClassName,E=c.nextIconChildren,P=c.nextIconClassName,I=c.previousIconChildren,O=c.previousIconClassName,L=(c.activeTabIndex,c.defaultTabIndex,c.onTabChange,c.alignToKeyline,c.mobile,c.defaultMedia,c.desktopMinWidth,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(c,["component","style","className","activeTabClassName","inactiveTabClassName","colored","centered","tabId","overflowMenu","overflowMenuLabel","nextIcon","previousIcon","overflowMenuIcon","indicatorHeight","overflowMenuIconChildren","overflowMenuIconClassName","nextIconChildren","nextIconClassName","previousIconChildren","previousIconClassName","activeTabIndex","defaultTabIndex","onTabChange","alignToKeyline","mobile","defaultMedia","desktopMinWidth"])),R=d(this.props,this.state,"activeTabIndex"),j=!1,D=r.Children.map(r.Children.toArray(this.props.children),(function(t,n){return t.props.icon&&(j=!0),(0,r.cloneElement)(t,{index:n,activeClassName:m,inactiveClassName:g,id:t.props.id||b+"-"+n,controlsId:t.props.controlsId||b+"-panel-"+n,active:n===R,ref:function(t){return e._setTab(t,n)},onClick:function(n,r,i,o,a){t.props.onClick&&t.props.onClick(b,r,i,o,a),e._handleTabChange(n,r,i,o,a)}})})),A=void 0,N=void 0,F=void 0;if(s){var z=D.length;_&&(A=r.createElement(ic,{id:b+"-overflow-menu",activeTabIndex:R,overflowAtIndex:s,label:r.createElement(An,{label:w},be(T,M,C)),tabs:D.slice(s,D.length).map(this._mapToOverflowTabProps)})),D=D.slice(a,s),!_&&a>0&&(F=r.createElement(sc,{left:!0,icon:j,iconEl:be(O,I,k),onClick:this._showPreviousTabs})),!_&&z>3&&s+a<=z&&(N=r.createElement(sc,{icon:j,onClick:this._showNextTabs,iconEl:be(P,E,x)}))}return r.createElement(p,lc({},L,{style:lc({},h,{paddingLeft:l}),className:u()("md-tabs",{"md-tabs--pagination":s&&!_,"md-tabs--centered":v,"md-background--primary":y},f),role:"tablist"}),r.createElement(ht,{watchWidth:!0,watchHeight:!0,onResize:this._positionElements,elRef:this._setContainer}),F,D,N,A,r.createElement(ec,{offset:n,height:S,width:i,visible:o}))},t}(r.PureComponent);cc.propTypes={tabId:(0,je.default)(o().oneOfType([o().number,o().string])),style:o().object,className:o().string,activeTabClassName:o().string,inactiveTabClassName:o().string,component:o().oneOfType([o().func,o().string,o().object]).isRequired,children:o().oneOfType([o().element,o().arrayOf(o().element)]).isRequired,centered:o().bool,alignToKeyline:o().bool,colored:o().bool,overflowMenu:o().bool,onTabChange:o().func,activeTabIndex:b(o().number,"onTabChange","defaultTabIndex"),defaultTabIndex:o().number.isRequired,nextIcon:o().element,previousIcon:o().element,overflowMenuIcon:o().element,overflowMenuLabel:o().node.isRequired,indicatorHeight:o().number,mobile:o().bool,defaultMedia:(0,E.Z)(o().oneOf(["mobile","tablet","desktop"]),"Use `mobile` instead"),desktopMinWidth:(0,E.Z)(o().number,"Use `mobile` instead"),nextIconChildren:(0,E.Z)(o().node,"Use the `nextIcon` prop instead"),nextIconClassName:(0,E.Z)(o().string,"Use the `nextIcon` prop instead"),previousIconChildren:(0,E.Z)(o().node,"Use the `previousIcon` prop instead"),previousIconClassName:(0,E.Z)(o().string,"Use the `previousIcon` prop instead"),overflowMenuIconChildren:(0,E.Z)(o().node,"Use the `overflowMenuIcon` prop instead"),overflowMenuIconClassName:(0,E.Z)(o().string,"Use the `overflowMenuIcon` prop instead")},cc.defaultProps={component:"ul",defaultTabIndex:0,indicatorHeight:2,nextIcon:r.createElement(ve,null,"keyboard_arrow_right"),previousIcon:r.createElement(ve,null,"keyboard_arrow_left"),overflowMenuLabel:"More",overflowMenuIcon:r.createElement(ve,null,"arrow_drop_down")};var uc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function dc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var pc=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=dc(this,e.call.apply(e,[this].concat(o))),r._handleClick=function(e){r.props.onClick&&r.props.onClick(r.props.index,r.props.id,r.props.controlsId,r.props.children,e)},dc(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e,t=this.props,n=t.id,i=t.controlsId,o=t.className,a=t.activeClassName,s=t.inactiveClassName,l=t.active,c=(t.icon,t.label,t.index,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["id","controlsId","className","activeClassName","inactiveClassName","active","icon","label","index"])),d=this.props,p=d.icon,h=d.label;if(p){var f=r.Children.only(p);p=(0,r.cloneElement)(p,{className:u()("md-icon--tab",f.props.className)})}if((0,r.isValidElement)(h)){var m=r.Children.only(h);h=(0,r.cloneElement)(h,{className:u()("md-tab-label",m.props.className)})}else h=r.createElement("div",{className:"md-tab-label"},h);return r.createElement(se,uc({},c,{id:n,role:"tab",onClick:this._handleClick,className:u()("md-tab",(e={"md-tab--icon":h&&p},e[a]=a&&l,e[s]=s&&!l,e),o),"aria-controls":i,"aria-selected":l}),p,h)},t}(r.PureComponent);pc.propTypes={id:o().oneOfType([o().number,o().string]),controlsId:o().oneOfType([o().number,o().string]),style:o().object,className:o().string,activeClassName:o().string,inactiveClassName:o().string,component:o().oneOfType([o().func,o().string,o().object]).isRequired,children:o().node,icon:o().element,label:po(o().node,"icon"),onClick:o().func,active:o().bool,index:o().number},pc.defaultProps={component:"li",activeClassName:"md-tab--active",inactiveClassName:"md-tab--inactive"};var hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function fc(e){var t=e.children,n=e.setPosition,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","setPosition"]),o=r.Children.only(t),a=o.props;if(i.label){var s=a;n&&(s=hc({},s,{style:hc({},s.style,{position:"relative"})})),o=r.cloneElement(o,s,[a.children,r.createElement(Un,hc({key:"tooltipContainer"},i))])}return o}fc.displayName="Tooltipped",fc.propTypes={children:o().element.isRequired,label:o().node,setPosition:o().bool}},30912:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(18178),o=c(i),a=c(n(62472)),s=c(n(19160)),l=c(n(35780));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return d.call(r),r.state={styles:r._mergeStyles(n)},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.style,r=t.forceSize,i=t.forceFontSize;n===e.style&&r===e.forceSize&&i===e.forceFontSize||this.setState({styles:this._mergeStyles(e)})},t.prototype.render=function(){var e=this.state.styles,t=this.props,n=t.iconClassName,i=t.className,a=t.children,c=t.disabled,u=t.primary,d=t.secondary,p=t.error,h=t.inherit,f=(t.style,t.forceSize,t.forceFontSize,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["iconClassName","className","children","disabled","primary","secondary","error","inherit","style","forceSize","forceFontSize"])),m=(0,s.default)("md-icon",n,(0,l.default)({disabled:c,error:p,inherit:h,primary:u,secondary:d}),i);return o.default.createElement("i",r({},f,{style:e,className:m}),a)},t}(i.PureComponent);u.propTypes={style:a.default.object,className:a.default.string,iconClassName:a.default.string.isRequired,primary:a.default.bool,secondary:a.default.bool,disabled:a.default.bool,error:a.default.bool,inherit:a.default.bool,forceSize:a.default.oneOfType([a.default.bool,a.default.number]),forceFontSize:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var s=a.default.bool.apply(a.default,[e,t,n].concat(i));return!s&&"undefined"===typeof e.forceSize&&e[t]&&(s=new Error("You provided a `forceFontSize` prop to the "+n+" component, without specifying the `forceSize` prop. Either set the `forceSize` prop to a boolean or a number, or disable `"+t+"`.")),s},children:a.default.node},u.defaultProps={iconClassName:"material-icons"};var d=function(){this._mergeStyles=function(e){var t=e.style,n=e.forceSize,i=e.forceFontSize,o=t;return"boolean"===typeof n?o=r({height:24,width:24,fontSize:i?24:void 0},t):"number"===typeof n&&(o=r({height:n,width:n,fontSize:i?n:void 0},t)),o}};t.default=u},76516:(e,t,n)=>{"use strict";var r,i=n(30912),o=(r=i)&&r.__esModule?r:{default:r};t.ZP=o.default,o.default},35780:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeText,n=void 0===t||t,r=e.text,i=void 0!==r&&r,a=e.background,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.error,d=void 0!==u&&u,p=e.hint,h=void 0!==p&&p,f=e.primary,m=void 0!==f&&f,g=e.secondary,y=void 0!==g&&g,v=e.inherit,b=void 0!==v&&v,_=e.ink,w=void 0!==_&&_,x=e.card,k=void 0!==x&&x,C=e.hover,S=void 0!==C&&C,M=arguments[1],T="";T=n?c?"md-text--disabled":d?"md-text--error":b?"md-text--inherit":(0,o.default)({"md-text":i&&!m&&!y&&!h,"md-text--secondary":h,"md-text--theme-primary":!h&&m,"md-text--theme-secondary":!h&&y,"md-ink--primary":w&&m,"md-ink--secondary":w&&y}):(0,o.default)({"md-background":s&&!m&&!y&&!k,"md-background--card":k,"md-background--primary":m,"md-background--primary-hover":m&&S,"md-background--secondary":y,"md-background--secondary-hover":y&&S});return(0,o.default)(T,M)};var r,i=n(19160),o=(r=i)&&r.__esModule?r:{default:r}},40637:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(n(64353)),s=o(n(51026)),l=o(n(8898)),c=o(n(5866)),u=o(n(33280)),d=o(n(12660)),p=o(n(18178)),h=o(n(46254)),f=1e3/60,m=function(e){function t(n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,n=i.state,o=n.currentStyle,a=n.currentVelocity,s=n.lastIdealStyle,l=n.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var u=e[c];"number"===typeof u&&(t||(t=!0,o=r({},o),a=r({},a),s=r({},s),l=r({},l)),o[c]=u,a[c]=0,s[c]=u,l[c]=0)}t&&i.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:l})},this.startAnimationIfNecessary=function(){i.animationID=u.default((function(e){var t=i.props.style;if(d.default(i.state.currentStyle,t,i.state.currentVelocity))return i.wasAnimating&&i.props.onRest&&i.props.onRest(),i.animationID=null,i.wasAnimating=!1,void(i.accumulatedTime=0);i.wasAnimating=!0;var n=e||c.default(),r=n-i.prevTime;if(i.prevTime=n,i.accumulatedTime=i.accumulatedTime+r,i.accumulatedTime>10*f&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/f)*f)/f,a=Math.floor(i.accumulatedTime/f),s={},u={},p={},h={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"===typeof g)p[m]=g,h[m]=0,s[m]=g,u[m]=0;else{for(var y=i.state.lastIdealStyle[m],v=i.state.lastIdealVelocity[m],b=0;b<a;b++){var _=l.default(f/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var w=l.default(f/1e3,y,v,g.val,g.stiffness,g.damping,g.precision),x=w[0],k=w[1];p[m]=y+(x-y)*o,h[m]=v+(k-v)*o,s[m]=y,u[m]=v}}i.animationID=null,i.accumulatedTime-=a*f,i.setState({currentStyle:p,currentVelocity:h,lastIdealStyle:s,lastIdealVelocity:u}),i.unreadPropStyle=null,i.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyle:h.default.objectOf(h.default.number),style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired,children:h.default.func.isRequired,onRest:h.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||s.default(n),i=a.default(r);return{currentStyle:r,currentVelocity:i,lastIdealStyle:r,lastIdealVelocity:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},89730:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(n(64353)),s=o(n(51026)),l=o(n(8898)),c=o(n(5866)),u=o(n(33280)),d=o(n(12660)),p=o(n(18178)),h=o(n(46254)),f=1e3/60;var m=function(e){function t(n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=i.state,n=t.currentStyles,o=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,l=!1,c=0;c<e.length;c++){var u=e[c],d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var h=u[p];"number"===typeof h&&(d||(d=!0,l=!0,n[c]=r({},n[c]),o[c]=r({},o[c]),a[c]=r({},a[c]),s[c]=r({},s[c])),n[c][p]=h,o[c][p]=0,a[c][p]=h,s[c][p]=0)}}l&&i.setState({currentStyles:n,currentVelocities:o,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){i.animationID=u.default((function(e){var t=i.props.styles(i.state.lastIdealStyles);if(function(e,t,n){for(var r=0;r<e.length;r++)if(!d.default(e[r],t[r],n[r]))return!1;return!0}(i.state.currentStyles,t,i.state.currentVelocities))return i.animationID=null,void(i.accumulatedTime=0);var n=e||c.default(),r=n-i.prevTime;if(i.prevTime=n,i.accumulatedTime=i.accumulatedTime+r,i.accumulatedTime>10*f&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/f)*f)/f,a=Math.floor(i.accumulatedTime/f),s=[],u=[],p=[],h=[],m=0;m<t.length;m++){var g=t[m],y={},v={},b={},_={};for(var w in g)if(Object.prototype.hasOwnProperty.call(g,w)){var x=g[w];if("number"===typeof x)y[w]=x,v[w]=0,b[w]=x,_[w]=0;else{for(var k=i.state.lastIdealStyles[m][w],C=i.state.lastIdealVelocities[m][w],S=0;S<a;S++){var M=l.default(f/1e3,k,C,x.val,x.stiffness,x.damping,x.precision);k=M[0],C=M[1]}var T=l.default(f/1e3,k,C,x.val,x.stiffness,x.damping,x.precision),E=T[0],P=T[1];y[w]=k+(E-k)*o,v[w]=C+(P-C)*o,b[w]=k,_[w]=C}}p[m]=y,h[m]=v,s[m]=b,u[m]=_}i.animationID=null,i.accumulatedTime-=a*f,i.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:s,lastIdealVelocities:u}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.objectOf(h.default.number)),styles:h.default.func.isRequired,children:h.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(s.default),i=r.map((function(e){return a.default(e)}));return{currentStyles:r,currentVelocities:i,lastIdealStyles:r,lastIdealVelocities:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},68705:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(n(64353)),s=o(n(51026)),l=o(n(8898)),c=o(n(6967)),u=o(n(5866)),d=o(n(33280)),p=o(n(12660)),h=o(n(18178)),f=o(n(46254)),m=1e3/60;function g(e,t,n){var r=t;return null==r?e.map((function(e,t){return{key:e.key,data:e.data,style:n[t]}})):e.map((function(e,t){for(var i=0;i<r.length;i++)if(r[i].key===e.key)return{key:r[i].key,data:r[i].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}}))}function y(e,t,n,r,i,o,s,l,u){for(var d=c.default(r,i,(function(e,r){var i=t(r);return null==i||p.default(o[e],i,s[e])?(n({key:r.key,data:r.data}),null):{key:r.key,data:r.data,style:i}})),h=[],f=[],m=[],g=[],y=0;y<d.length;y++){for(var v=d[y],b=null,_=0;_<r.length;_++)if(r[_].key===v.key){b=_;break}if(null==b){var w=e(v);h[y]=w,m[y]=w;var x=a.default(v.style);f[y]=x,g[y]=x}else h[y]=o[b],m[y]=l[b],f[y]=s[b],g[y]=u[b]}return[d,h,f,m,g]}var v=function(e){function t(n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,e,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],c=0;c<e.length;c++){var u=e[c].style,d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var h=u[p];"number"===typeof h&&(d||(d=!0,o[c]=r({},o[c]),a[c]=r({},a[c]),s[c]=r({},s[c]),l[c]=r({},l[c]),n[c]={key:n[c].key,data:n[c].data,style:r({},n[c].style)}),o[c][p]=h,a[c][p]=0,s[c][p]=h,l[c][p]=0,n[c].style[p]=h)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:n,lastIdealStyles:s,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){i.unmounting||(i.animationID=d.default((function(e){if(!i.unmounting){var t=i.props.styles,n="function"===typeof t?t(g(i.state.mergedPropsStyles,i.unreadPropStyles,i.state.lastIdealStyles)):t;if(function(e,t,n,r){if(r.length!==t.length)return!1;for(var i=0;i<r.length;i++)if(r[i].key!==t[i].key)return!1;for(i=0;i<r.length;i++)if(!p.default(e[i],t[i].style,n[i]))return!1;return!0}(i.state.currentStyles,n,i.state.currentVelocities,i.state.mergedPropsStyles))return i.animationID=null,void(i.accumulatedTime=0);var r=e||u.default(),o=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+o,i.accumulatedTime>10*m&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var a=(i.accumulatedTime-Math.floor(i.accumulatedTime/m)*m)/m,s=Math.floor(i.accumulatedTime/m),c=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,n,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),d=c[0],h=c[1],f=c[2],v=c[3],b=c[4],_=0;_<d.length;_++){var w=d[_].style,x={},k={},C={},S={};for(var M in w)if(Object.prototype.hasOwnProperty.call(w,M)){var T=w[M];if("number"===typeof T)x[M]=T,k[M]=0,C[M]=T,S[M]=0;else{for(var E=v[_][M],P=b[_][M],I=0;I<s;I++){var O=l.default(m/1e3,E,P,T.val,T.stiffness,T.damping,T.precision);E=O[0],P=O[1]}var L=l.default(m/1e3,E,P,T.val,T.stiffness,T.damping,T.precision),R=L[0],j=L[1];x[M]=E+(R-E)*a,k[M]=P+(j-P)*a,C[M]=E,S[M]=P}}v[_]=C,b[_]=S,h[_]=x,f[_]=k}i.animationID=null,i.accumulatedTime-=s*m,i.setState({currentStyles:h,currentVelocities:f,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:d}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,data:f.default.any,style:f.default.objectOf(f.default.number).isRequired})),styles:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,data:f.default.any,style:f.default.objectOf(f.default.oneOfType([f.default.number,f.default.object])).isRequired}))]).isRequired,children:f.default.func.isRequired,willEnter:f.default.func,willLeave:f.default.func,didLeave:f.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,i=e.willLeave,o=e.didLeave,l="function"===typeof n?n(t):n,c=void 0;c=null==t?l:t.map((function(e){for(var t=0;t<l.length;t++)if(l[t].key===e.key)return l[t];return e}));var u=null==t?l.map((function(e){return s.default(e.style)})):t.map((function(e){return s.default(e.style)})),d=null==t?l.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),p=y(r,i,o,c,l,u,d,u,d),h=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:h}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"===typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&h.default.Children.only(t)},t}(h.default.Component);t.default=v,e.exports=t.default},64353:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},6967:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r={},i=0;i<e.length;i++)r[e[i].key]=i;var o={};for(i=0;i<t.length;i++)o[t[i].key]=i;var a=[];for(i=0;i<t.length;i++)a[i]=t[i];for(i=0;i<e.length;i++)if(!Object.prototype.hasOwnProperty.call(o,e[i].key)){var s=n(i,e[i]);null!=s&&a.push(s)}return a.sort((function(e,n){var i=o[e.key],a=o[n.key],s=r[e.key],l=r[n.key];if(null!=i&&null!=a)return o[e.key]-o[n.key];if(null!=s&&null!=l)return r[e.key]-r[n.key];if(null!=i){for(var c=0;c<t.length;c++){var u=t[c].key;if(Object.prototype.hasOwnProperty.call(r,u)){if(i<o[u]&&l>r[u])return-1;if(i>o[u]&&l<r[u])return 1}}return 1}for(c=0;c<t.length;c++){u=t[c].key;if(Object.prototype.hasOwnProperty.call(r,u)){if(a<o[u]&&s>r[u])return 1;if(a>o[u]&&s<r[u])return-1}}return-1}))},e.exports=t.default},36754:(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},93284:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}var i=n(40637);t.y_=r(i),r(n(89730));var o=n(68705);t.bg=r(o);var a=n(39210);t.ST=r(a),r(n(36754)),r(n(51026)),r(n(85810))},85810:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},12660:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(0!==n[r])return!1;var i="number"===typeof t[r]?t[r]:t[r].val;if(e[r]!==i)return!1}return!0},e.exports=t.default},39210:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return r({},s,t,{val:e})};var i,o=n(36754),a=(i=o)&&i.__esModule?i:{default:i},s=r({},a.default.noWobble,{precision:.01});e.exports=t.default},8898:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r,i,o,a,s){var l=r+(-o*(t-i)+-a*r)*e,c=t+l*e;if(Math.abs(l)<s&&Math.abs(c-i)<s)return n[0]=i,n[1]=0,n;return n[0]=c,n[1]=l,n};var n=[0,0];e.exports=t.default},51026:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"===typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},35345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>f,default:()=>g});var r=n(18178),i=n(22297);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,c,u=(void 0===l&&(l=0),function(){return++l}),d={},p={},h=["touchstart","touchmove"],f="ignore-react-onclickoutside";function m(e,t){var n={};return-1!==h.indexOf(t)&&c&&(n.passive=!e.props.preventDefault),n}const g=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,f;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!p[r._uid]){"undefined"===typeof c&&(c=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,d[r._uid],m(a(r),e))}))}},r.disableOnClickOutside=function(){delete p[r._uid];var e=d[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(a(r),t))})),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=u(),r}f=n,(l=g).prototype=Object.create(f.prototype),l.prototype.constructor=l,o(l,f);var y=g.prototype;return y.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},y.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},y.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},y.componentWillUnmount=function(){this.disableOnClickOutside()},y.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},52053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>a,Popper:()=>w,Reference:()=>C,usePopper:()=>y});var r=n(18178),i=r.createContext(),o=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1],l=r.useRef(!1);r.useEffect((function(){return function(){l.current=!0}}),[]);var c=r.useCallback((function(e){l.current||s(e)}),[]);return r.createElement(i.Provider,{value:a},r.createElement(o.Provider,{value:c},t))}var s=function(e){return Array.isArray(e)?e[0]:e},l=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},c=function(e,t){if("function"===typeof e)return l(e,t);null!=e&&(e.current=t)},u=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},d="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,p=n(22297),h=n(77724),f=n(81849),m=n.n(f),g=[],y=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||g},a=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p.flushSync((function(){l({styles:u(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:u(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),f=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return m()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),y=r.useRef();return d((function(){y.current&&y.current.setOptions(f)}),[f]),d((function(){if(null!=e&&null!=t){var r=(n.createPopper||h.fi)(e,t,f);return y.current=r,function(){r.destroy(),y.current=null}}}),[e,t,n.createPopper]),{state:y.current?y.current.state:null,styles:s.styles,attributes:s.attributes,update:y.current?y.current.update:null,forceUpdate:y.current?y.current.forceUpdate:null}},v=function(){},b=function(){return Promise.resolve(null)},_=[];function w(e){var t=e.placement,n=void 0===t?"bottom":t,o=e.strategy,a=void 0===o?"absolute":o,l=e.modifiers,u=void 0===l?_:l,d=e.referenceElement,p=e.onFirstUpdate,h=e.innerRef,f=e.children,m=r.useContext(i),g=r.useState(null),w=g[0],x=g[1],k=r.useState(null),C=k[0],S=k[1];r.useEffect((function(){c(h,w)}),[h,w]);var M=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:p,modifiers:[].concat(u,[{name:"arrow",enabled:null!=C,options:{element:C}}])}}),[n,a,p,u,C]),T=y(d||m,w,M),E=T.state,P=T.styles,I=T.forceUpdate,O=T.update,L=r.useMemo((function(){return{ref:x,style:P.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:S},forceUpdate:I||v,update:O||b}}),[x,S,n,E,P,O,I]);return s(f)(L)}var x=n(55746),k=n.n(x);function C(e){var t=e.children,n=e.innerRef,i=r.useContext(o),a=r.useCallback((function(e){c(n,e),l(i,e)}),[n,i]);return r.useEffect((function(){return function(){return c(n,null)}}),[]),r.useEffect((function(){k()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),s(t)({ref:a})}},85881:(e,t,n)=>{"use strict";t.Z=s;var r,i=n(32761),o=(r=i)&&r.__esModule?r:{default:r};var a={};function s(e,t){return function(n,r,i,s,l){var c=i||"<<anonymous>>",u=l||r;if(null!=n[r]){var d=i+"."+r;(0,o.default)(a[d],"The "+s+" `"+u+"` of `"+c+"` is deprecated. "+t+"."),a[d]=!0}for(var p=arguments.length,h=Array(p>5?p-5:0),f=5;f<p;f++)h[f-5]=arguments[f];return e.apply(void 0,[n,r,i,s,l].concat(h))}}s._resetWarned=function(){a={}}},38345:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return function(t,n,r,i,o){var a=r||"<<anonymous>>",s=o||n;if(null==t[n])return new Error("The "+i+" `"+s+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),u=5;u<l;u++)c[u-5]=arguments[u];return e.apply(void 0,[t,n,r,i,o].concat(c))}}},93240:(e,t,n)=>{"use strict";n.d(t,{zt:()=>u,ET:()=>i,dC:()=>Q.unstable_batchedUpdates,$j:()=>V,wU:()=>T,I0:()=>W,v9:()=>J});var r=n(18178),i=(n(47781),r.createContext(null));var o=function(e){e()},a=function(){return o};var s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function i(){l.onStateChange&&l.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=a(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const u=function(e){var t=e.store,n=e.context,o=e.children,a=(0,r.useMemo)((function(){var e=l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=a.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=n||i;return r.createElement(u.Provider,{value:a},o)};var d=n(65900),p=n(94750),h=n(1815),f=n.n(h),m=n(7546),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],v=[],b=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function k(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,i.current)}catch(h){n=h,d=h}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,s=n.methodName,c=void 0===s?"connectAdvanced":s,u=n.renderCountProp,h=void 0===u?void 0:u,S=n.shouldHandleStateChanges,M=void 0===S||S,T=n.storeKey,E=void 0===T?"store":T,P=(n.withRef,n.forwardRef),I=void 0!==P&&P,O=n.context,L=void 0===O?i:O,R=(0,p.Z)(n,g),j=L;return function(t){var n=t.displayName||t.name||"Component",i=a(n),o=(0,d.Z)({},R,{getDisplayName:a,methodName:c,renderCountProp:h,shouldHandleStateChanges:M,storeKey:E,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=R.pure;var u=s?r.useMemo:function(e){return e()};function g(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,p.Z)(n,y);return[n.context,e,t]}),[n]),a=i[0],s=i[1],c=i[2],h=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,m.isContextConsumer)(r.createElement(a.Consumer,null))?a:j}),[a,j]),f=(0,r.useContext)(h),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(f)&&Boolean(f.store);var S=g?n.store:f.store,T=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,o)}(S)}),[S]),E=(0,r.useMemo)((function(){if(!M)return b;var e=l(S,g?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,g,f]),P=E[0],I=E[1],O=(0,r.useMemo)((function(){return g?f:(0,d.Z)({},f,{subscription:P})}),[g,f,P]),L=(0,r.useReducer)(_,v,C),R=L[0][0],D=L[1];if(R&&R.error)throw R.error;var A=(0,r.useRef)(),N=(0,r.useRef)(c),F=(0,r.useRef)(),z=(0,r.useRef)(!1),B=u((function(){return F.current&&c===N.current?F.current:T(S.getState(),c)}),[S,R,c]);w(x,[N,A,z,c,B,F,I]),w(k,[M,S,P,T,N,A,z,F,I,D],[S,P,T]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,d.Z)({},B,{ref:s}))}),[s,t,B]);return(0,r.useMemo)((function(){return M?r.createElement(h.Provider,{value:O},U):U}),[h,U,O])}var S=s?r.memo(g):g;if(S.WrappedComponent=t,S.displayName=g.displayName=i,I){var T=r.forwardRef((function(e,t){return r.createElement(S,(0,d.Z)({},e,{reactReduxForwardedRef:t}))}));return T.displayName=i,T.WrappedComponent=t,f()(T,t)}return f()(S,t)}}function M(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(M(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!M(e[n[i]],t[n[i]]))return!1;return!0}function E(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function I(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=P(i),i=r(t,n)),i},r}}const O=[function(e){return"function"===typeof e?I(e):void 0},function(e){return e?void 0:E((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?E((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const L=[function(e){return"function"===typeof e?I(e):void 0},function(e){return e?void 0:E((function(){return{}}))}];function R(e,t,n){return(0,d.Z)({},n,e,t)}const j=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return R}}];var D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function A(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function N(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,h=!1;function f(i,h){var f=!d(h,a),m=!u(i,o);return o=i,a=h,f&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):f?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!p(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return h?f(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),h=!0,c)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,p.Z)(t,D),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?N:A)(a,s,l,e,o)}var z=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function B(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(e,t){return e===t}function $(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,i=t.mapStateToPropsFactories,o=void 0===i?L:i,a=t.mapDispatchToPropsFactories,s=void 0===a?O:a,l=t.mergePropsFactories,c=void 0===l?j:l,u=t.selectorFactory,h=void 0===u?F:u;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,m=void 0===f?U:f,g=a.areOwnPropsEqual,y=void 0===g?T:g,v=a.areStatePropsEqual,b=void 0===v?T:v,_=a.areMergedPropsEqual,w=void 0===_?T:_,x=(0,p.Z)(a,z),k=B(e,o,"mapStateToProps"),C=B(t,s,"mapDispatchToProps"),S=B(n,c,"mergeProps");return r(h,(0,d.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:C,initMergeProps:S,pure:u,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:b,areMergedPropsEqual:w},x))}}const V=$();function q(){return(0,r.useContext)(i)}function Z(e){void 0===e&&(e=i);var t=e===i?q:function(){return(0,r.useContext)(e)};return function(){return t().store}}var H=Z();function G(e){void 0===e&&(e=i);var t=e===i?H:Z(e);return function(){return t().dispatch}}var W=G(),Y=function(e,t){return e===t};function K(e){void 0===e&&(e=i);var t=e===i?q:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=Y);var i=t(),o=function(e,t,n,i){var o,a=(0,r.useReducer)((function(e){return e+1}),0)[1],s=(0,r.useMemo)((function(){return l(n,i)}),[n,i]),u=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,r.useRef)(),f=n.getState();try{if(e!==d.current||f!==p.current||u.current){var m=e(f);o=void 0!==h.current&&t(m,h.current)?h.current:m}else o=h.current}catch(g){throw u.current&&(g.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),g}return c((function(){d.current=e,p.current=f,h.current=o,u.current=void 0})),c((function(){function e(){try{var e=n.getState();if(e===p.current)return;var r=d.current(e);if(t(r,h.current))return;h.current=r,p.current=e}catch(g){u.current=g}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return(0,r.useDebugValue)(o),o}}var X,J=K(),Q=n(22297);X=Q.unstable_batchedUpdates,o=X},78076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var r=0===e?e:e+t;return"translate3d"+("("+("horizontal"===n?[r,0,0]:[0,r,0]).join(",")+")")}},65053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(18178)),i=d(n(22297)),o=d(n(10663)),a=d(n(36977)),s=d(n(78076)),l=d(n(42995)),c=d(n(26733)),u=d(n(19779));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;return _(e)}(this,n)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(){},C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(h,e);var t,n,d,p=b(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),x(_(t=p.call(this,e)),"thumbsRef",void 0),x(_(t),"carouselWrapperRef",void 0),x(_(t),"listRef",void 0),x(_(t),"itemsRef",void 0),x(_(t),"timer",void 0),x(_(t),"setThumbsRef",(function(e){t.thumbsRef=e})),x(_(t),"setCarouselWrapperRef",(function(e){t.carouselWrapperRef=e})),x(_(t),"setListRef",(function(e){t.listRef=e})),x(_(t),"setItemsRef",(function(e,n){t.itemsRef||(t.itemsRef=[]),t.itemsRef[n]=e})),x(_(t),"autoPlay",(function(){r.Children.count(t.props.children)<=1||(t.clearAutoPlay(),t.timer=setTimeout((function(){t.increment()}),t.props.interval))})),x(_(t),"clearAutoPlay",(function(){t.timer&&clearTimeout(t.timer)})),x(_(t),"resetAutoPlay",(function(){t.clearAutoPlay(),t.autoPlay()})),x(_(t),"stopOnHover",(function(){t.setState({isMouseEntered:!0},t.clearAutoPlay)})),x(_(t),"startOnLeave",(function(){t.setState({isMouseEntered:!1},t.autoPlay)})),x(_(t),"isFocusWithinTheCarousel",(function(){return!!t.carouselWrapperRef&&!((0,c.default)().activeElement!==t.carouselWrapperRef&&!t.carouselWrapperRef.contains((0,c.default)().activeElement))})),x(_(t),"navigateWithKeyboard",(function(e){if(t.isFocusWithinTheCarousel()){var n="horizontal"===t.props.axis,r=n?37:38;(n?39:40)===e.keyCode?t.increment():r===e.keyCode&&t.decrement()}})),x(_(t),"updateSizes",(function(){if(t.state.initialized&&t.itemsRef&&0!==t.itemsRef.length){var e="horizontal"===t.props.axis,n=t.itemsRef[0];if(n){var r=e?n.clientWidth:n.clientHeight;t.setState({itemSize:r}),t.thumbsRef&&t.thumbsRef.updateSizes()}}})),x(_(t),"setMountState",(function(){t.setState({hasMount:!0}),t.updateSizes()})),x(_(t),"handleClickItem",(function(e,n){0!==r.Children.count(t.props.children)&&(t.state.cancelClick?t.setState({cancelClick:!1}):(t.props.onClickItem(e,n),e!==t.state.selectedItem&&t.setState({selectedItem:e})))})),x(_(t),"handleOnChange",(function(e,n){r.Children.count(t.props.children)<=1||t.props.onChange(e,n)})),x(_(t),"handleClickThumb",(function(e,n){t.props.onClickThumb(e,n),t.moveTo(e)})),x(_(t),"onSwipeStart",(function(e){t.setState({swiping:!0}),t.props.onSwipeStart(e),t.clearAutoPlay()})),x(_(t),"onSwipeEnd",(function(e){t.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),t.props.onSwipeEnd(e),t.autoPlay()})),x(_(t),"onSwipeMove",(function(e,n){t.props.onSwipeMove(n);var i="horizontal"===t.props.axis,o=r.Children.count(t.props.children),a=t.getPosition(t.state.selectedItem),s=t.props.infiniteLoop?t.getPosition(o-1)-100:t.getPosition(o-1),l=i?e.x:e.y,c=l;0===a&&l>0&&(c=0),a===s&&l<0&&(c=0);var u=a+100/(t.state.itemSize/c),d=Math.abs(l)>t.props.swipeScrollTolerance;return t.props.infiniteLoop&&d&&(0===t.state.selectedItem&&u>-100?u-=100*o:t.state.selectedItem===o-1&&u<100*-o&&(u+=100*o)),(!t.props.preventMovementUntilSwipeScrollTolerance||d||t.state.swipeMovementStarted)&&(t.state.swipeMovementStarted||t.setState({swipeMovementStarted:!0}),t.setPosition(u)),d&&!t.state.cancelClick&&t.setState({cancelClick:!0}),d})),x(_(t),"setPosition",(function(e,n){var r=i.default.findDOMNode(t.listRef);r instanceof HTMLElement&&(["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(n){r.style[n]=(0,s.default)(e,"%",t.props.axis)})),n&&r.offsetLeft)})),x(_(t),"resetPosition",(function(){var e=t.getPosition(t.state.selectedItem);t.setPosition(e)})),x(_(t),"decrement",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.moveTo(t.state.selectedItem-("number"===typeof e?e:1),n)})),x(_(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.moveTo(t.state.selectedItem+("number"===typeof e?e:1),n)})),x(_(t),"moveTo",(function(e,n){if("number"===typeof e){var i=r.Children.count(t.props.children)-1,o=t.props.infiniteLoop&&!n&&(e<0||e>i),a=e;e<0&&(e=t.props.infiniteLoop?i:0),e>i&&(e=t.props.infiniteLoop?0:i),o?t.setState({swiping:!0},(function(){a<0?t.props.centerMode&&t.props.centerSlidePercentage&&"horizontal"===t.props.axis?t.setPosition(-(i+2)*t.props.centerSlidePercentage-(100-t.props.centerSlidePercentage)/2,!0):t.setPosition(100*-(i+2),!0):a>i&&t.setPosition(0,!0),t.selectItem({selectedItem:e,swiping:!1})})):t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),x(_(t),"onClickNext",(function(){t.increment(1,!1)})),x(_(t),"onClickPrev",(function(){t.decrement(1,!1)})),x(_(t),"onSwipeForward",(function(){t.increment(1,!0),t.props.emulateTouch&&t.setState({cancelClick:!0})})),x(_(t),"onSwipeBackwards",(function(){t.decrement(1,!0),t.props.emulateTouch&&t.setState({cancelClick:!0})})),x(_(t),"changeItem",(function(e){return function(n){(function(e){return!!e&&e.hasOwnProperty("key")})(n)&&"Enter"!==n.key||t.moveTo(e)}})),x(_(t),"selectItem",(function(e,n){t.setState(e,n),t.handleOnChange(e.selectedItem,r.Children.toArray(t.props.children)[e.selectedItem])})),x(_(t),"getInitialImage",(function(){var e=t.props.selectedItem,n=t.itemsRef&&t.itemsRef[e];return(n&&n.getElementsByTagName("img")||[])[0]})),x(_(t),"getVariableItemHeight",(function(e){var n=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&n&&n.children.length){var r=n.children[0].getElementsByTagName("img")||[];if(r.length>0){var i=r[0];if(!i.complete){i.addEventListener("load",(function e(){t.forceUpdate(),i.removeEventListener("load",e)}))}}var o=(r[0]||n.children[0]).clientHeight;return o>0?o:null}return null})),t.state={initialized:!1,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1},t}return t=h,(n=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.resetPosition(),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&r.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,c.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,c.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"getPosition",value:function(e){if(this.props.infiniteLoop&&++e,0===e)return 0;var t=r.Children.count(this.props.children);if(this.props.centerMode&&"horizontal"===this.props.axis){var n=-e*this.props.centerSlidePercentage,i=t-1;return e&&(e!==i||this.props.infiniteLoop)?n+=(100-this.props.centerSlidePercentage)/2:e===i&&(n+=100-this.props.centerSlidePercentage),n}return 100*-e}},{key:"renderItems",value:function(e){var t=this;return this.props.children?r.Children.map(this.props.children,(function(n,i){var o={ref:function(e){return t.setItemsRef(e,i)},key:"itemKey"+i+(e?"clone":""),className:a.default.ITEM(!0,i===t.state.selectedItem),onClick:t.handleClickItem.bind(t,i,n)},s={};return t.props.centerMode&&"horizontal"===t.props.axis&&(s.style={minWidth:t.props.centerSlidePercentage+"%"}),r.default.createElement("li",g({},o,s),t.props.renderItem(n,{isSelected:i===t.state.selectedItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,n=t.showIndicators,i=t.labels,o=t.renderIndicator,a=t.children;return n?r.default.createElement("ul",{className:"control-dots"},r.Children.map(a,(function(t,n){return o&&o(e.changeItem(n),n===e.state.selectedItem,n,i.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?r.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,r.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==r.Children.count(this.props.children)?r.default.createElement(l.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===r.Children.count(this.props.children))return null;var t=this.props.swipeable&&r.Children.count(this.props.children)>1,n="horizontal"===this.props.axis,i=this.props.showArrows&&r.Children.count(this.props.children)>1,l=i&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=i&&(this.state.selectedItem<r.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,u={},d=this.getPosition(this.state.selectedItem),p=(0,s.default)(d,"%",this.props.axis),h=this.props.transitionTime+"ms";u={WebkitTransform:p,MozTransform:p,MsTransform:p,OTransform:p,transform:p,msTransform:p},this.state.swiping||(u=m(m({},u),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,MsTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h}));var f=this.renderItems(!0),y=f.shift(),v=f.pop(),b={className:a.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:u,tolerance:this.props.swipeScrollTolerance},_={};if(n){if(b.onSwipeLeft=this.onSwipeForward,b.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var w=this.getVariableItemHeight(this.state.selectedItem);b.style.height=w||"auto",_.height=w||"auto"}}else b.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,b.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,b.style.height=this.state.itemSize,_.height=this.state.itemSize;return r.default.createElement("div",{className:a.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:0},r.default.createElement("div",{className:a.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,l,this.props.labels.leftArrow),r.default.createElement("div",{className:a.default.WRAPPER(!0,this.props.axis),style:_},t?r.default.createElement(o.default,g({tagName:"ul",innerRef:this.setListRef},b,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&y):r.default.createElement("ul",{className:a.default.SLIDER(!0,this.state.swiping),ref:function(t){return e.setListRef(t)},style:u},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&y)),this.props.renderArrowNext(this.onClickNext,c,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}])&&y(t.prototype,n),d&&y(t,d),h}(r.default.Component);t.default=C,x(C,"displayName","Carousel"),x(C,"defaultProps",{axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:k,onClickThumb:k,onChange:k,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:a.default.ARROW_PREV(!t),onClick:e})},renderArrowNext:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:a.default.ARROW_NEXT(!t),onClick:e})},renderIndicator:function(e,t,n,i){return r.default.createElement("li",{className:a.default.DOT(t),onClick:e,onKeyDown:e,value:n,key:n,role:"button",tabIndex:0,"aria-label":"".concat(i," ").concat(n+1)})},renderItem:function(e){return e},renderThumbs:function(e){var t=r.Children.map(e,(function(e){var t=e;if("img"!==e.type&&(t=r.Children.toArray(e.props.children).find((function(e){return"img"===e.type}))),t)return t}));return 0===t.filter((function(e){return e})).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):t},statusFormatter:function(e,t){return"".concat(e," of ").concat(t)},selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%"})},74486:()=>{},42995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(18178)),i=c(n(36977)),o=n(84767),a=c(n(78076)),s=c(n(10663)),l=c(n(19779));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"===typeof t))return t;return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(d,e);var t,n,c,u=m(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),v(g(t=u.call(this,e)),"itemsWrapperRef",void 0),v(g(t),"itemsListRef",void 0),v(g(t),"thumbsRef",void 0),v(g(t),"setItemsWrapperRef",(function(e){t.itemsWrapperRef=e})),v(g(t),"setItemsListRef",(function(e){t.itemsListRef=e})),v(g(t),"setThumbsRef",(function(e,n){t.thumbsRef||(t.thumbsRef=[]),t.thumbsRef[n]=e})),v(g(t),"updateSizes",(function(){if(t.props.children&&t.itemsWrapperRef&&t.thumbsRef){var e=r.Children.count(t.props.children),n=t.itemsWrapperRef.clientWidth,i=t.props.thumbWidth?t.props.thumbWidth:(0,o.outerWidth)(t.thumbsRef[0]),a=Math.floor(n/i),s=a<e,l=s?e-a:0;t.setState((function(e,n){return{itemSize:i,visibleItems:a,firstItem:s?t.getFirstItem(n.selectedItem):0,lastPosition:l,showArrows:s}}))}})),v(g(t),"handleClickItem",(function(e,n,r){if(!function(e){return e.hasOwnProperty("key")}(r)||"Enter"===r.key){var i=t.props.onSelectItem;"function"===typeof i&&i(e,n)}})),v(g(t),"onSwipeStart",(function(){t.setState({swiping:!0})})),v(g(t),"onSwipeEnd",(function(){t.setState({swiping:!1})})),v(g(t),"onSwipeMove",(function(e){var n=e.x;if(!t.state.itemSize||!t.itemsWrapperRef||!t.state.visibleItems)return!1;var i=r.Children.count(t.props.children),o=-100*t.state.firstItem/t.state.visibleItems;0===o&&n>0&&(n=0),o===100*-Math.max(i-t.state.visibleItems,0)/t.state.visibleItems&&n<0&&(n=0);var s=o+100/(t.itemsWrapperRef.clientWidth/n);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,a.default)(s,"%",t.props.axis)})),!0})),v(g(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),v(g(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),v(g(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(n=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:e.selectedItem,firstItem:this.getFirstItem(e.selectedItem)})}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e<this.state.firstItem+this.state.visibleItems&&(t=this.state.firstItem),e<this.state.firstItem&&(t=e),t}},{key:"renderItems",value:function(){var e=this;return this.props.children.map((function(t,n){var o=i.default.ITEM(!1,n===e.state.selectedItem),a={key:n,ref:function(t){return e.setThumbsRef(t,n)},className:o,onClick:e.handleClickItem.bind(e,n,e.props.children[n]),onKeyDown:e.handleClickItem.bind(e,n,e.props.children[n]),"aria-label":"".concat(e.props.labels.item," ").concat(n+1),style:{width:e.props.thumbWidth}};return r.default.createElement("li",p({},a,{role:"button",tabIndex:0}),t)}))}},{key:"render",value:function(){var e=this;if(!this.props.children)return null;var t,n=r.Children.count(this.props.children)>1,o=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,c=-this.state.firstItem*(this.state.itemSize||0),u=(0,a.default)(c,"px",this.props.axis),d=this.props.transitionTime+"ms";return t={WebkitTransform:u,MozTransform:u,MsTransform:u,OTransform:u,transform:u,msTransform:u,WebkitTransitionDuration:d,MozTransitionDuration:d,MsTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d},r.default.createElement("div",{className:i.default.CAROUSEL(!1)},r.default.createElement("div",{className:i.default.WRAPPER(!1),ref:this.setItemsWrapperRef},r.default.createElement("button",{type:"button",className:i.default.ARROW_PREV(!o),onClick:function(){return e.slideRight()},"aria-label":this.props.labels.leftArrow}),n?r.default.createElement(s.default,{tagName:"ul",className:i.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:t,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):r.default.createElement("ul",{className:i.default.SLIDER(!1,this.state.swiping),ref:function(t){return e.setItemsListRef(t)},style:t},this.renderItems()),r.default.createElement("button",{type:"button",className:i.default.ARROW_NEXT(!l),onClick:function(){return e.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}])&&h(t.prototype,n),c&&h(t,c),d}(r.Component);t.default=b,v(b,"displayName","Thumbs"),v(b,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},36977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(19160))&&r.__esModule?r:{default:r};var o={ROOT:function(e){return(0,i.default)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,i.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,i.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,i.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,n){return(0,i.default)({thumb:!e,slide:e,selected:t,previous:n})},ARROW_PREV:function(e){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,i.default)({dot:!0,selected:e})}};t.default=o},84767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)}},19932:(e,t,n)=>{"use strict";Object.defineProperty(t,"lr",{enumerable:!0,get:function(){return r.default}});var r=a(n(65053)),i=n(74486),o=a(n(42995));function a(e){return e&&e.__esModule?e:{default:e}}},26733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},19779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},55629:(e,t,n)=>{"use strict";n.d(t,{rU:()=>g,OL:()=>b});var r=n(45581);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}var a=n(18178),s=n(17073);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var u=n(99073);a.Component;a.Component;var d=function(e,t){return"function"===typeof e?e(t):e},p=function(e,t){return"string"===typeof e?(0,s.ob)(e,null,null,t):e},h=function(e){return e},f=a.forwardRef;"undefined"===typeof f&&(f=h);var m=f((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=c(e,["innerRef","navigate","onClick"]),s=o.target,u=l({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=h!==f&&t||n,a.createElement("a",u)}));var g=f((function(e,t){var n=e.component,i=void 0===n?m:n,o=e.replace,g=e.to,y=e.innerRef,v=c(e,["component","replace","to","innerRef"]);return a.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),c=r?n.createHref(r):"",m=l({},v,{href:c,navigate:function(){var t=d(g,e.location),r=(0,s.Ep)(e.location)===(0,s.Ep)(p(t));(o||r?n.replace:n.push)(t)}});return h!==f?m.ref=t||y:m.innerRef=y,a.createElement(i,m)}))})),y=function(e){return e},v=a.forwardRef;"undefined"===typeof v&&(v=y);var b=v((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,h=e.activeStyle,f=e.className,m=e.exact,b=e.isActive,_=e.location,w=e.sensitive,x=e.strict,k=e.style,C=e.to,S=e.innerRef,M=c(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=_||e.location,o=p(d(C,n),n),c=o.pathname,T=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=T?(0,r.LX)(n.pathname,{path:T,exact:m,sensitive:w,strict:x}):null,P=!!(b?b(E,n):E),I="function"===typeof f?f(P):f,O="function"===typeof k?k(P):k;P&&(I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(I,s),O=l({},O,h));var L=l({"aria-current":P&&i||null,className:I,style:O,to:o},M);return y!==v?L.ref=t||S:L.innerRef=S,a.createElement(g,L)}))}))},45581:(e,t,n)=>{"use strict";n.d(t,{$B:()=>B,AW:()=>I,F0:()=>b,LX:()=>P,TH:()=>z,k6:()=>F,l_:()=>S,rs:()=>A,s6:()=>v});var r=n(64991),i=n(18178),o=n(46254),a=n.n(o),s=n(17073),l=n(99073),c=n(90359),u=n(23347),d=n.n(u),p=(n(92146),n(57995)),h=(n(1815),1073741823),f="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=i.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return f[e]=(f[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.Z)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,i)?(n="function"===typeof t?t(r,i):h,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},i.render=function(){return this.props.children},n}(i.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?h:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?h:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},y=g("Router-History"),v=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var _=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var w={},x=1e4,k=0;function C(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return k<x&&(w[e]=t,k++),t}(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(v.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,a=e.staticContext,u=o?r.push:r.replace,d=(0,s.ob)(t?"string"===typeof n?C(n,t.params):(0,c.Z)({},n,{pathname:C(n.pathname,t.params)}):n);return a?(u(d),null):i.createElement(_,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var M={},T=1e4,E=0;function P(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=M[n]||(M[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return E<T&&(r[e]=o,E++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),h=e===u;return o&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var I=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?P(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(v.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function O(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var n=O(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"===typeof e?e:(0,s.Ep)(e)}function j(e){return function(){(0,l.Z)(!1)}}function D(){}i.Component;var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?P(o.pathname,(0,c.Z)({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var N=i.useContext;function F(){return N(y)}function z(){return N(v).location}function B(e){var t=z(),n=N(v).match;return e?P(t.pathname,e):n}},2782:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{ZP:()=>mr});var u=n(18178),d=n.t(u,2),p=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function _(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),x=Math.abs,k=String.fromCharCode,C=Object.assign;function S(e){return e.trim()}function M(e,t,n){return e.replace(t,n)}function T(e,t){return e.indexOf(t)}function E(e,t){return 0|e.charCodeAt(t)}function P(e,t,n){return e.slice(t,n)}function I(e){return e.length}function O(e){return e.length}function L(e,t){return t.push(e),e}var R=1,j=1,D=0,A=0,N=0,F="";function z(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:R,column:j,length:a,return:""}}function B(e,t){return C(z("",null,null,"",null,null,0),e,{length:-e.length},t)}function U(){return N=A>0?E(F,--A):0,j--,10===N&&(j=1,R--),N}function $(){return N=A<D?E(F,A++):0,j++,10===N&&(j=1,R++),N}function V(){return E(F,A)}function q(){return A}function Z(e,t){return P(F,e,t)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function G(e){return R=j=1,D=I(F=e),A=0,[]}function W(e){return F="",e}function Y(e){return S(Z(A-1,J(91===e?e+2:40===e?e+1:e)))}function K(e){for(;(N=V())&&N<33;)$();return H(e)>2||H(N)>3?"":" "}function X(e,t){for(;--t&&$()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Z(e,q()+(t<6&&32==V()&&32==$()))}function J(e){for(;$();)switch(N){case e:return A;case 34:case 39:34!==e&&39!==e&&J(N);break;case 40:41===e&&J(e);break;case 92:$()}return A}function Q(e,t){for(;$()&&e+N!==57&&(e+N!==84||47!==V()););return"/*"+Z(t,A-1)+"*"+k(47===e?e:$())}function ee(e){for(;!H(V());)$();return Z(e,A)}var te="-ms-",ne="-moz-",re="-webkit-",ie="comm",oe="rule",ae="decl",se="@keyframes";function le(e,t){for(var n="",r=O(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ce(e,t,n,r){switch(e.type){case"@import":case ae:return e.return=e.return||e.value;case ie:return"";case se:return e.return=e.value+"{"+le(e.children,r)+"}";case oe:e.value=e.props.join(",")}return I(n=le(e.children,r))?e.return=e.value+"{"+n+"}":""}function ue(e){return W(de("",null,null,null,[""],e=G(e),0,[0],e))}function de(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",_=i,w=o,x=r,C=b;g;)switch(f=v,v=$()){case 40:if(108!=f&&58==E(C,d-1)){-1!=T(C+=M(Y(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Y(v);break;case 9:case 10:case 13:case 32:C+=K(f);break;case 92:C+=X(q()-1,7);continue;case 47:switch(V()){case 42:case 47:L(he(Q($(),q()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=I(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:h>0&&I(C)-d&&L(h>32?fe(C+";",r,n,d-1):fe(M(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(L(x=pe(C,t,n,c,u,i,s,b,_=[],w=[],d),o),123===v)if(0===u)de(C,t,x,x,_,o,d,s,w);else switch(99===p&&110===E(C,3)?100:p){case 100:case 109:case 115:de(e,x,x,r&&L(pe(e,x,x,0,0,i,s,b,i,_=[],d),w),i,w,d,s,r?_:w);break;default:de(C,x,x,x,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=C="",d=a;break;case 58:d=1+I(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==U())continue;switch(C+=k(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(I(C)-1)*y,y=1;break;case 64:45===V()&&(C+=Y($())),p=V(),u=d=I(b=C+=ee(q())),v++;break;case 45:45===f&&2==I(C)&&(m=0)}}return o}function pe(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=O(p),f=0,m=0,g=0;f<r;++f)for(var y=0,v=P(e,d+1,d=x(m=a[f])),b=e;y<h;++y)(b=S(m>0?p[y]+" "+v:M(v,/&\f/g,p[y])))&&(l[g++]=b);return z(e,t,n,0===i?oe:s,l,c,u)}function he(e,t,n){return z(e,t,n,ie,k(N),P(e,2,-2),0)}function fe(e,t,n,r){return z(e,t,n,ae,P(e,0,r),P(e,r+1,-1),r)}var me=function(e,t,n){for(var r=0,i=0;r=i,i=V(),38===r&&12===i&&(t[n]=1),!H(i);)$();return Z(e,A)},ge=function(e,t){return W(function(e,t){var n=-1,r=44;do{switch(H(r)){case 0:38===r&&12===V()&&(t[n]=1),e[n]+=me(A-1,t,n);break;case 2:e[n]+=Y(r);break;case 4:if(44===r){e[++n]=58===V()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k(r)}}while(r=$());return e}(G(e),t))},ye=new WeakMap,ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ye.get(n))&&!r){ye.set(e,!0);for(var i=[],o=ge(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},be=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _e(e,t){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+ne+e+te+e+e;case 6828:case 4268:return re+e+te+e+e;case 6165:return re+e+te+"flex-"+e+e;case 5187:return re+e+M(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return re+e+te+"flex-item-"+M(e,/flex-|-self/,"")+e;case 4675:return re+e+te+"flex-line-pack"+M(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+te+M(e,"shrink","negative")+e;case 5292:return re+e+te+M(e,"basis","preferred-size")+e;case 6060:return re+"box-"+M(e,"-grow","")+re+e+te+M(e,"grow","positive")+e;case 4554:return re+M(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return M(M(M(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return M(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return M(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ne+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~T(e,"stretch")?_e(M(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==E(e,t+1))break;case 6444:switch(E(e,I(e)-3-(~T(e,"!important")&&10))){case 107:return M(e,":",":"+re)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(45===E(e,14)?"inline-":"")+"box$3$1"+re+"$2$3$1"+te+"$2box$3")+e}break;case 5936:switch(E(e,t+11)){case 114:return re+e+te+M(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+te+M(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+te+M(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+te+e+e}return e}var we=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ae:e.return=_e(e.value,e.length);break;case se:return le([B(e,{value:M(e.value,"@","@"+re)})],r);case oe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return le([B(e,{props:[M(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return le([B(e,{props:[M(t,/:(plac\w+)/,":"+re+"input-$1")]}),B(e,{props:[M(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[M(t,/:(plac\w+)/,te+"input-$1")]})],r)}return""}))}}];const xe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||we;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[ce,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=O(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([ve,be].concat(r,u));o=function(e,t,n,r){l=n,le(ue(e?e+"{"+t.styles+"}":t.styles),d),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new w({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function ke(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ce=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Se=function(e,t,n){Ce(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}};const Me=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Te={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ee(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Pe=/[A-Z]|^ms/g,Ie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(e){return 45===e.charCodeAt(1)},Le=function(e){return null!=e&&"boolean"!==typeof e},Re=Ee((function(e){return Oe(e)?e:e.replace(Pe,"-$&").toLowerCase()})),je=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Ie,(function(e,t,n){return Ae={name:t,styles:n,next:Ae},t}))}return 1===Te[e]||Oe(e)||"number"!==typeof t||0===t?t:t+"px"};function De(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ae={name:n.name,styles:n.styles,next:Ae},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ae={name:r.name,styles:r.styles,next:Ae},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=De(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Le(a)&&(r+=Re(o)+":"+je(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=De(e,t,a);switch(o){case"animation":case"animationName":r+=Re(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Le(a[l])&&(r+=Re(o)+":"+je(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Ae,o=n(e);return Ae=i,De(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ae,Ne=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Fe=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ae=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=De(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=De(n,t,e[a]),r&&(i+=o[a]);Ne.lastIndex=0;for(var s,l="";null!==(s=Ne.exec(i));)l+="-"+s[1];return{name:Me(i)+l,styles:i,next:Ae}},ze=!!d.useInsertionEffect&&d.useInsertionEffect,Be=ze||function(e){return e()},Ue={}.hasOwnProperty,$e=(0,u.createContext)("undefined"!==typeof HTMLElement?xe({key:"css"}):null);$e.Provider;var Ve=function(e){return(0,u.forwardRef)((function(t,n){var r=(0,u.useContext)($e);return e(t,r,n)}))},qe=(0,u.createContext)({});var Ze="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",He=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ce(t,n,r);Be((function(){return Se(t,n,r)}));return null},Ge=Ve((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ze],o=[r],a="";"string"===typeof e.className?a=ke(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Fe(o,void 0,(0,u.useContext)(qe));a+=t.key+"-"+s.name;var l={};for(var c in e)Ue.call(e,c)&&"css"!==c&&c!==Ze&&(l[c]=e[c]);return l.ref=n,l.className=a,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(He,{cache:t,serialized:s,isStringTag:"string"===typeof i}),(0,u.createElement)(i,l))}));n(1815);var We=function(e,t){var n=arguments;if(null==t||!Ue.call(t,"css"))return u.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Ge,i[1]=function(e,t){var n={};for(var r in t)Ue.call(t,r)&&(n[r]=t[r]);return n[Ze]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return u.createElement.apply(null,i)};function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fe(t)}var Ke=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Xe=function(e){var t=e.cache,n=e.serializedArr;Be((function(){for(var e=0;e<n.length;e++)Se(t,n[e],!1)}));return null},Je=Ve((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=Fe(r,t.registered);return n.push(o),Ce(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=ke(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,Ke(n))},theme:(0,u.useContext)(qe)},o=e.children(i);return!0,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Xe,{cache:t,serializedArr:n}),o)}));var Qe=n(22297);Math.min,Math.max;const et=["top","right","bottom","left"];et.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function tt(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nt(e){return tt(e).getComputedStyle(e)}Math.min,Math.max;const rt=Math.round;function it(e){const t=nt(e);let n=parseFloat(t.width),r=parseFloat(t.height);const i=e.offsetWidth,o=e.offsetHeight,a=rt(n)!==i||rt(r)!==o;return a&&(n=i,r=o),{width:n,height:r,fallback:a}}function ot(e){return ut(e)?(e.nodeName||"").toLowerCase():""}let at;function st(){if(at)return at;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(at=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),at):navigator.userAgent}function lt(e){return e instanceof tt(e).HTMLElement}function ct(e){return e instanceof tt(e).Element}function ut(e){return e instanceof tt(e).Node}function dt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tt(e).ShadowRoot||e instanceof ShadowRoot)}function pt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ht(){return/^((?!chrome|android).)*safari/i.test(st())}function ft(e){return["html","body","#document"].includes(ot(e))}function mt(e){return ct(e)?e:e.contextElement}const gt={x:1,y:1};function yt(e){const t=mt(e);if(!lt(t))return gt;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=it(t);let a=(o?rt(n.width):n.width)/r,s=(o?rt(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function vt(e,t,n,r){var i,o;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=mt(e);let l=gt;t&&(r?ct(r)&&(l=yt(r)):l=yt(e));const c=s?tt(s):window,u=ht()&&n;let d=(a.left+(u&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,p=(a.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,h=a.width/l.x,f=a.height/l.y;if(s){const e=tt(s),t=r&&ct(r)?tt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=yt(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,d*=e.x,p*=e.y,h*=e.x,f*=e.y,d+=t.x,p+=t.y,n=tt(n).frameElement}}return{width:h,height:f,top:p,right:d+h,bottom:p+f,left:d,x:d,y:p}}function bt(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function _t(e){if("html"===ot(e))return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||bt(e);return dt(t)?t.host:t}function wt(e){const t=_t(e);return ft(t)?t.ownerDocument.body:lt(t)&&pt(t)?t:wt(t)}function xt(e,t){var n;void 0===t&&(t=[]);const r=wt(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=tt(r);return i?t.concat(o,o.visualViewport||[],pt(r)?r:[]):t.concat(r,xt(r))}const kt=u.useLayoutEffect;var Ct=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],St=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Tt(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(Mt(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Et=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===y(e)&&null!==e?[e]:[];var t},Pt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,o({},c(e,Ct))};function It(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ot(e){return It(e)?window.pageYOffset:e.scrollTop}function Lt(e,t){It(e)?window.scrollTo(0,t):e.scrollTop=t}function Rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:St,i=Ot(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);Lt(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function jt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Lt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Lt(e,Math.max(t.offsetTop-i,0))}function Dt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var At=!1,Nt={get passive(){return At=!0}},Ft="undefined"!==typeof window?window:{};Ft.addEventListener&&Ft.removeEventListener&&(Ft.addEventListener("p",St,Nt),Ft.removeEventListener("p",St,!1));var zt=At;function Bt(e){return null!=e}function Ut(e,t,n){return e?t:n}function $t(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,f=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:It(u=l)?window.innerHeight:u.clientHeight,v=Ot(l),b=parseInt(getComputedStyle(n).marginBottom,10),_=parseInt(getComputedStyle(n).marginTop,10),w=g-_,x=y-m,k=w+v,C=d-v-m,S=h-y+v+b,M=v+m-_,T=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!a)return o&&Rt(l,S,T),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&x>=r)return o&&Rt(l,S,T),{placement:"bottom",maxHeight:a?x-b:C-b};if("auto"===i||a){var E=t,P=a?w:k;return P>=r&&(E=Math.min(P-b-s,t)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&Lt(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(k>=f&&!a)return o&&Rt(l,M,T),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&w>=r){var I=t;return(!a&&k>=r||a&&w>=r)&&(I=a?w-_:k-_),o&&Rt(l,M,T),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var Vt=function(e){return"auto"===e?"bottom":e},qt=(0,u.createContext)(null),Zt=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,c=e.theme,d=((0,u.useContext)(qt)||{}).setPortalPlacement,p=(0,u.useRef)(null),h=l((0,u.useState)(r),2),f=h[0],m=h[1],g=l((0,u.useState)(null),2),y=g[0],v=g[1],b=c.spacing.controlHeight;return kt((function(){var e=p.current;if(e){var t="fixed"===a,o=$t({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});m(o.maxHeight),v(o.placement),null===d||void 0===d||d(o.placement)}}),[r,i,a,s,n,d,b]),t({ref:p,placerProps:o(o({},e),{},{placement:y||Vt(i),maxHeight:f})})},Ht=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Gt=Ht,Wt=Ht,Yt=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return We("div",h({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};Yt.defaultProps={children:"No options"};var Kt=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return We("div",h({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Kt.defaultProps={children:"Loading..."};var Xt,Jt=["size"];var Qt,en,tn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},nn=function(e){var t=e.size,n=c(e,Jt);return We("svg",h({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tn},n))},rn=function(e){return We(nn,h({size:20},e),We("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},on=function(e){return We(nn,h({size:20},e),We("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},an=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},sn=an,ln=an,cn=function(){var e=Ye.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Xt||(Qt=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],en||(en=Qt.slice(0)),Xt=Object.freeze(Object.defineProperties(Qt,{raw:{value:Object.freeze(en)}})))),un=function(e){var t=e.delay,n=e.offset;return We("span",{css:Ye({animation:"".concat(cn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},dn=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isRtl;return We("div",h({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),We(un,{delay:0,offset:o}),We(un,{delay:160,offset:!0}),We(un,{delay:320,offset:!o}))};dn.defaultProps={size:4};var pn=["data"],hn=["innerRef","isDisabled","isHidden","inputClassName"],fn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},mn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":o({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},fn)},gn=function(e){return o({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},fn)},yn=function(e){var t=e.children,n=e.innerProps;return We("div",n,t)};var vn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return We("div",h({css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},o),t||We(rn,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,o=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return We("div",h({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":a,"control--menu-is-open":c},i)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return We("div",h({css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},o),t||We(on,null))},DownChevron:on,CrossIcon:rn,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return We("div",h({css:i("group",e),className:r({group:!0},n)},s),We(o,h({},a,{selectProps:u,theme:c,getStyles:i,cx:r}),l),We("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,i=Pt(e);i.data;var o=c(i,pn);return We("div",h({css:t("groupHeading",e),className:n({"group-heading":!0},r)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.getStyles;return We("div",h({css:o("indicatorsContainer",e),className:r({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return We("span",h({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.value,o=Pt(e),a=o.innerRef,s=o.isDisabled,l=o.isHidden,u=o.inputClassName,d=c(o,hn);return We("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":i||""},We("input",h({className:n({input:!0},u),ref:a,style:gn(l),disabled:s},d)))},LoadingIndicator:dn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerRef,a=e.innerProps;return We("div",h({css:i("menu",e),className:r({menu:!0},n),ref:o},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,a=e.innerRef,s=e.isMulti;return We("div",h({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},o),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.className,i=e.controlElement,o=e.cx,a=e.innerProps,s=e.menuPlacement,c=e.menuPosition,d=e.getStyles,p=(0,u.useRef)(null),f=(0,u.useRef)(null),m=l((0,u.useState)(Vt(s)),2),g=m[0],y=m[1],v=(0,u.useMemo)((function(){return{setPortalPlacement:y}}),[]),b=l((0,u.useState)(null),2),_=b[0],w=b[1],x=(0,u.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===c?0:window.pageYOffset,n=e[g]+t;n===(null===_||void 0===_?void 0:_.offset)&&e.left===(null===_||void 0===_?void 0:_.rect.left)&&e.width===(null===_||void 0===_?void 0:_.rect.width)||w({offset:n,rect:e})}}),[i,c,g,null===_||void 0===_?void 0:_.offset,null===_||void 0===_?void 0:_.rect.left,null===_||void 0===_?void 0:_.rect.width]);kt((function(){x()}),[x]);var k=(0,u.useCallback)((function(){"function"===typeof f.current&&(f.current(),f.current=null),i&&p.current&&(f.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,c=l||o?[...ct(e)?xt(e):e.contextElement?xt(e.contextElement):[],...xt(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ct(e)&&!s&&d.observe(e),ct(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let p=s?vt(e):null;return s&&function t(){const r=vt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}(i,p.current,x,{elementResize:"ResizeObserver"in window}))}),[i,x]);kt((function(){k()}),[k]);var C=(0,u.useCallback)((function(e){p.current=e,k()}),[k]);if(!t&&"fixed"!==c||!_)return null;var S=We("div",h({ref:C,css:d("menuPortal",{offset:_.offset,position:c,rect:_.rect}),className:o({"menu-portal":!0},r)},a),n);return We(qt.Provider,{value:v},t?(0,Qe.createPortal)(S,t):S)},LoadingMessage:Kt,NoOptionsMessage:Yt,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,a=e.data,s=e.getStyles,l=e.innerProps,c=e.isDisabled,u=e.removeProps,d=e.selectProps,p=r.Container,h=r.Label,f=r.Remove;return We(Je,null,(function(r){var m=r.css,g=r.cx;return We(p,{data:a,innerProps:o({className:g(m(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":c},n))},l),selectProps:d},We(h,{data:a,innerProps:{className:g(m(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:d},t),We(f,{data:a,innerProps:o({className:g(m(s("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},u),selectProps:d}))}))},MultiValueContainer:yn,MultiValueLabel:yn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return We("div",h({role:"button"},n),t||We(rn,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return We("div",h({css:i("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":a,"option--is-selected":s},n),ref:l,"aria-disabled":o},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return We("div",h({css:i("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,a=e.isDisabled,s=e.isRtl;return We("div",h({css:i("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,a=e.innerProps;return We("div",h({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.isMulti,a=e.getStyles,s=e.hasValue;return We("div",h({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s},n)},i),t)}},bn=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function _n(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||bn(r)&&bn(i)))return!1;var r,i;return!0}for(var wn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},xn=function(e){return We("span",h({css:wn},e))},kn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t){var u=s?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Cn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,v=l.options,b=l.screenReaderStatus,_=l.tabSelectsValue,w=l["aria-label"],x=l["aria-live"],k=(0,u.useMemo)((function(){return o(o({},kn),d||{})}),[d]),C=(0,u.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,i=t.options,a=t.removedValue,l=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),d=u?p(u):"",h=i||l||void 0,f=h?h.map(p):[],g=o({isDisabled:u&&m(u,s),label:d,labels:f},t);n=k.onChange(g)}return n}),[t,k,m,s,p]),S=(0,u.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&k.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s};e=k.onFocus(a)}return e}),[n,r,p,m,k,i,s]),M=(0,u.useMemo)((function(){var e="";if(y&&v.length&&k.onFilter){var t=b({count:i.length});e=k.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,y,k,v,b]),T=(0,u.useMemo)((function(){var e="";if(k.guidance){var t=r?"value":y?"menu":"input";e=k.guidance({"aria-label":w,context:t,isDisabled:n&&m(n,s),isMulti:f,isSearchable:g,tabSelectsValue:_})}return e}),[w,n,r,f,m,g,y,k,s,_]),E="".concat(S," ").concat(M," ").concat(T),P=We(u.Fragment,null,We("span",{id:"aria-selection"},C),We("span",{id:"aria-context"},E)),I="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return We(u.Fragment,null,We(xn,{id:c},I&&P),We(xn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},a&&!I&&P))},Sn=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Mn=new RegExp("["+Sn.map((function(e){return e.letters})).join("")+"]","g"),Tn={},En=0;En<Sn.length;En++)for(var Pn=Sn[En],In=0;In<Pn.letters.length;In++)Tn[Pn.letters[In]]=Pn.base;var On=function(e){return e.replace(Mn,(function(e){return Tn[e]}))},Ln=function(e,t){void 0===t&&(t=_n);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(On),Rn=function(e){return e.replace(/^\s+|\s+$/g,"")},jn=function(e){return"".concat(e.label," ").concat(e.value)},Dn=["innerRef"];function An(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=l(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=l(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(c(e,Dn),"onExited","in","enter","exit","appear");return We("input",h({ref:t},n,{css:Ye({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Nn=function(e){e.preventDefault(),e.stopPropagation()};var Fn=["boxSizing","height","overflow","paddingRight","position"],zn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bn(e){e.preventDefault()}function Un(e){e.stopPropagation()}function $n(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vn(){return"ontouchstart"in window||navigator.maxTouchPoints}var qn=!("undefined"===typeof window||!window.document||!window.document.createElement),Zn=0,Hn={capture:!1,passive:!1};var Gn=function(){return document.activeElement&&document.activeElement.blur()},Wn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,u.useRef)(!1),s=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),d=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,h=c.current,f=t>0,m=d-p-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),f&&s.current&&(o&&o(e),s.current=!1),f&&t>m?(n&&!a.current&&n(e),h.scrollTop=d,g=!0,a.current=!0):!f&&-t>u&&(i&&!s.current&&i(e),h.scrollTop=0,g=!0,s.current=!0),g&&Nn(e)}}),[n,r,i,o]),p=(0,u.useCallback)((function(e){d(e,e.deltaY)}),[d]),h=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),f=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,u.useCallback)((function(e){if(e){var t=!!zt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}}),[f,h,p]),g=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))}),[f,h,p]);return(0,u.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,u.useRef)({}),o=(0,u.useRef)(null),a=(0,u.useCallback)((function(e){if(qn){var t=document.body,n=t&&t.style;if(r&&Fn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Zn<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(zn).forEach((function(e){var t=zn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Vn()&&(t.addEventListener("touchmove",Bn,Hn),e&&(e.addEventListener("touchstart",$n,Hn),e.addEventListener("touchmove",Un,Hn))),Zn+=1}}),[r]),s=(0,u.useCallback)((function(e){if(qn){var t=document.body,n=t&&t.style;Zn=Math.max(Zn-1,0),r&&Zn<1&&Fn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Vn()&&(t.removeEventListener("touchmove",Bn,Hn),e&&(e.removeEventListener("touchstart",$n,Hn),e.removeEventListener("touchmove",Un,Hn)))}}),[r]);return(0,u.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return We(u.Fragment,null,n&&We("div",{onClick:Gn,css:Wn}),t((function(e){i(e),o(e)})))}var Kn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Xn=function(e){var t=e.name,n=e.onFocus;return We("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Kn,value:"",onChange:function(){}})},Jn={clearIndicator:ln,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:sn,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,i=r.spacing,a=r.colors;return o({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80,transform:n?"translateZ(0)":""},mn)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Wt,menu:function(e){var t,n=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return r(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),r(t,"backgroundColor",s.neutral0),r(t,"borderRadius",o),r(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),r(t,"marginBottom",a.menuGutter),r(t,"marginTop",a.menuGutter),r(t,"position","absolute"),r(t,"width","100%"),r(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?i.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:Gt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Qn,er={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},tr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Dt(),captureMenuScroll:!Dt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=o({ignoreCase:!0,ignoreAccents:!0,stringify:jn,trim:!0,matchFrom:"any"},Qn),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,c=s?Rn(t):t,u=s?Rn(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=Ln(c),u=On(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function nr(e,t,n,r){return{type:"option",data:t,isDisabled:lr(e,t,n),isSelected:cr(e,t,n),label:ar(e,t),value:sr(e,t),index:r}}function rr(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return nr(e,n,t,r)})).filter((function(t){return or(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=nr(e,n,t,r);return or(e,o)?o:void 0})).filter(Bt)}function ir(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,_(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function or(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!dr(e)||!o)&&ur(e,{label:a,value:s,data:i},r)}var ar=function(e,t){return e.getOptionLabel(t)},sr=function(e,t){return e.getOptionValue(t)};function lr(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function cr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=sr(e,t);return n.some((function(t){return sr(e,t)===r}))}function ur(e,t,n){return!e.filterOption||e.filterOption(t,n)}var dr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},pr=1,hr=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(a,e);var t,n,r,i=b(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(_(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=Ut(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ut(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=Ut(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Tt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ar(t.props,e)},t.getOptionValue=function(e){return sr(t.props,e)},t.getStyles=function(e,n){var r=Jn[e](n);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,o(o({},vn),e.components);var e},t.buildCategorizedOptions=function(){return rr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ir(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:o({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&It(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return dr(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,h=t.state,f=h.focusedOption,m=h.focusedValue,g=h.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&t.isOptionSelected(f,g))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++pr),t.state.selectValue=Et(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&jt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(jt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(er):o(o({},er),this.props.theme):er}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return lr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return cr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ur(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,p=this.state,f=p.inputIsHidden,m=p.ariaSelection,g=this.commonProps,y=r||this.getElementId("input"),v=o(o(o({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===m||void 0===m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?u.createElement(d,h({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},v)):u.createElement(An,h({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:St,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,m=c.inputValue,g=c.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,_=y.isFocused;if(!this.hasValue()||!d)return m?null:u.createElement(s,h({},l,{key:"placeholder",isDisabled:p,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return v.map((function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(n,h({},l,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=v[0];return u.createElement(a,h({},l,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,h({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?u.createElement(e,h({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(n,h({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,h({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,y=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,_=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,k=f.menuPosition,C=f.menuPortalTarget,S=f.menuShouldBlockScroll,M=f.menuShouldScrollIntoView,T=f.noOptionsMessage,E=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var I,O=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=p===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return u.createElement(c,h({},d,{innerProps:v,data:i,isDisabled:o,isSelected:a,key:y,label:s,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return u.createElement(n,h({},d,{key:s,data:i,options:o,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(y){var L=v({inputValue:g});if(null===L)return null;I=u.createElement(s,d,L)}else{var R=T({inputValue:g});if(null===R)return null;I=u.createElement(l,d,R)}var j={minMenuHeight:b,maxMenuHeight:_,menuPlacement:x,menuPosition:k,menuShouldScrollIntoView:M},D=u.createElement(Zt,h({},d,j),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return u.createElement(i,h({},d,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:a}),u.createElement(Yn,{captureEnabled:m,onTopArrive:E,onBottomArrive:P,lockEnabled:S},(function(t){return u.createElement(o,h({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:s,focusedOption:p}),I)})))}));return C||"fixed"===k?u.createElement(a,h({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:k}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(o&&!r){if(a&&!this.hasValue())return u.createElement(Xn,{name:o,onFocus:this.onValueInputFocus});if(i){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return u.createElement("input",{name:o,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return u.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:o,type:"hidden",value:""});return u.createElement("div",null,c)}var d=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return u.createElement(Cn,h({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,l=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return u.createElement(r,h({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),u.createElement(t,h({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),u.createElement(i,h({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(n,h({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=Et(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return ir(rr(e,t))}(e,f):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var b=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=a,w=s&&l;return s&&!w&&(_={value:Ut(h,f,f[0]||null),options:f,action:"initial-input-focus"},w=!l),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(_=null),o(o(o({},m),b),{},{prevProps:e,ariaSelection:_,prevWasFocused:w})}}],n&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.Component);hr.defaultProps=tr;var fr=(0,u.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,d=e.inputValue,h=e.menuIsOpen,f=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=c(e,p),_=l((0,u.useState)(void 0!==d?d:n),2),w=_[0],x=_[1],k=l((0,u.useState)(void 0!==h?h:i),2),C=k[0],S=k[1],M=l((0,u.useState)(void 0!==v?v:s),2),T=M[0],E=M[1],P=(0,u.useCallback)((function(e,t){"function"===typeof f&&f(e,t),E(e)}),[f]),I=(0,u.useCallback)((function(e,t){var n;"function"===typeof m&&(n=m(e,t)),x(void 0!==n?n:e)}),[m]),O=(0,u.useCallback)((function(){"function"===typeof y&&y(),S(!0)}),[y]),L=(0,u.useCallback)((function(){"function"===typeof g&&g(),S(!1)}),[g]),R=void 0!==d?d:w,j=void 0!==h?h:C,D=void 0!==v?v:T;return o(o({},b),{},{inputValue:R,menuIsOpen:j,onChange:P,onInputChange:I,onMenuClose:L,onMenuOpen:O,value:D})}(e);return u.createElement(hr,h({ref:t},n))}));const mr=fr},84932:(e,t,n)=>{"use strict";var r=n(96162);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(18178)),o=(r(n(55746)),function(e){e.index;var t=e.children;i.default.Children.count(t)});t.default=o},36004:(e,t,n)=>{"use strict";var r=n(96162);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.children,r=e.startIndex,a=e.startX,s=e.pageX,l=e.viewLength,c=e.resistance,u=i.default.Children.count(n)-1,d=r+(a-s)/l;c?d<0?d=Math.exp(d*o.default.RESISTANCE_COEF)-1:d>u&&(d=u+1-Math.exp((u-d)*o.default.RESISTANCE_COEF)):d<0?t=((d=0)-r)*l+s:d>u&&(t=((d=u)-r)*l+s);return{index:d,startX:t}};var i=r(n(18178)),o=r(n(62553))},62553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3}},2716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){var n=!1;if(e.children.length&&t.children.length){var r=e.children[e.index],i=r?r.key:"empty";if(null!==i){var o=t.children[t.index];i===(o?o.key:"empty")&&(n=!0)}}return n};t.default=n},15521:(e,t,n)=>{"use strict";var r=n(96162);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"checkIndexBounds",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"computeIndex",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"constant",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"getDisplaySameSlide",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"mod",{enumerable:!0,get:function(){return l.default}});var i=r(n(84932)),o=r(n(36004)),a=r(n(62553)),s=r(n(2716)),l=r(n(43646))},43646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){var n=e%t;return n<0?n+t:n};t.default=n},69079:(e,t,n)=>{"use strict";var r=n(96162);Object.defineProperty(t,"__esModule",{value:!0}),t.getDomTreeShapes=S,t.findNativeHandler=T,t.default=void 0;var i=r(n(63882)),o=r(n(22781)),a=r(n(29522)),s=r(n(69591)),l=r(n(21344)),c=r(n(38891)),u=r(n(81370)),d=r(n(18178)),p=r(n(46254)),h=(r(n(55746)),r(n(88525))),f=r(n(59634)),m=r(n(9048)),g=n(15521);function y(e,t,n,r){return(0,f.default)(e,t,n,r),{remove:function(){(0,m.default)(e,t,n,r)}}}var v=!1;var b={direction:"ltr",display:"flex",willChange:"transform"},_={width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"},w={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(e){return"translate(".concat(-e,"%, 0)")},"x-reverse":function(e){return"translate(".concat(e,"%, 0)")},y:function(e){return"translate(0, ".concat(-e,"%)")},"y-reverse":function(e){return"translate(0, ".concat(e,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function x(e,t){var n=t.duration,r=t.easeFunction,i=t.delay;return"".concat(e," ").concat(n," ").concat(r," ").concat(i)}function k(e,t){var n=w.rotationMatrix[t];return{pageX:n.x[0]*e.pageX+n.x[1]*e.pageY,pageY:n.y[0]*e.pageX+n.y[1]*e.pageY}}function C(e){return e.touches=[{pageX:e.pageX,pageY:e.pageY}],e}function S(e,t){for(var n=[];e&&e!==t&&!e.hasAttribute("data-swipeable");){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push({element:e,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),e=e.parentNode}return n}var M=null;function T(e){var t=e.domTreeShapes,n=e.pageX,r=e.startX,i=e.axis;return t.some((function(e){var t=n>=r;"x"!==i&&"y"!==i||(t=!t);var o=e[w.scrollPosition[i]],a=o>0,s=o+e[w.clientLength[i]]<e[w.scrollLength[i]];return!!(t&&s||!t&&a)&&(M=e.element,!0)}))}var E=function(e){function t(e){var n;return(0,a.default)(this,t),(n=(0,l.default)(this,(0,c.default)(t).call(this,e))).rootNode=null,n.containerNode=null,n.ignoreNextScrollEvents=!1,n.viewLength=0,n.startX=0,n.lastX=0,n.vx=0,n.startY=0,n.isSwiping=void 0,n.started=!1,n.startIndex=0,n.transitionListener=null,n.touchMoveListener=null,n.activeSlide=null,n.indexCurrent=null,n.firstRenderTimeout=null,n.setRootNode=function(e){n.rootNode=e},n.setContainerNode=function(e){n.containerNode=e},n.setActiveSlide=function(e){n.activeSlide=e,n.updateHeight()},n.handleSwipeStart=function(e){var t=n.props.axis,r=k(e.touches[0],t);n.viewLength=n.rootNode.getBoundingClientRect()[w.length[t]],n.startX=r.pageX,n.lastX=r.pageX,n.vx=0,n.startY=r.pageY,n.isSwiping=void 0,n.started=!0;var i=window.getComputedStyle(n.containerNode),o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform");if(o&&"none"!==o){var a=o.split("(")[1].split(")")[0].split(","),s=window.getComputedStyle(n.rootNode),l=k({pageX:parseInt(a[4],10),pageY:parseInt(a[5],10)},t);n.startIndex=-l.pageX/(n.viewLength-parseInt(s.paddingLeft,10)-parseInt(s.paddingRight,10))||0}},n.handleSwipeMove=function(e){if(n.started){if(null===M||M===n.rootNode){var t=n.props,r=t.axis,i=t.children,o=t.ignoreNativeScroll,a=t.onSwitching,s=t.resistance,l=k(e.touches[0],r);if(void 0===n.isSwiping){var c=Math.abs(l.pageX-n.startX),u=Math.abs(l.pageY-n.startY),p=c>u&&c>g.constant.UNCERTAINTY_THRESHOLD;if(!s&&("y"===r||"y-reverse"===r)&&(0===n.indexCurrent&&n.startX<l.pageX||n.indexCurrent===d.default.Children.count(n.props.children)-1&&n.startX>l.pageX))return void(n.isSwiping=!1);if(c>u&&e.preventDefault(),!0===p||u>g.constant.UNCERTAINTY_THRESHOLD)return n.isSwiping=p,void(n.startX=l.pageX)}if(!0===n.isSwiping){e.preventDefault(),n.vx=.5*n.vx+.5*(l.pageX-n.lastX),n.lastX=l.pageX;var h=(0,g.computeIndex)({children:i,resistance:s,pageX:l.pageX,startIndex:n.startIndex,startX:n.startX,viewLength:n.viewLength}),f=h.index,m=h.startX;if(null===M&&!o)if(T({domTreeShapes:S(e.target,n.rootNode),startX:n.startX,pageX:l.pageX,axis:r}))return;m?n.startX=m:null===M&&(M=n.rootNode),n.setIndexCurrent(f);var y=function(){a&&a(f,"move")};!n.state.displaySameSlide&&n.state.isDragging||n.setState({displaySameSlide:!1,isDragging:!0},y),y()}}}else n.handleTouchStart(e)},n.handleSwipeEnd=function(){if(M=null,n.started&&(n.started=!1,!0===n.isSwiping)){var e,t=n.state.indexLatest,r=n.indexCurrent,i=t-r;e=Math.abs(n.vx)>n.props.threshold?n.vx>0?Math.floor(r):Math.ceil(r):Math.abs(i)>n.props.hysteresis?i>0?Math.floor(r):Math.ceil(r):t;var o=d.default.Children.count(n.props.children)-1;e<0?e=0:e>o&&(e=o),n.setIndexCurrent(e),n.setState({indexLatest:e,isDragging:!1},(function(){n.props.onSwitching&&n.props.onSwitching(e,"end"),n.props.onChangeIndex&&e!==t&&n.props.onChangeIndex(e,t,{reason:"swipe"}),r===t&&n.handleTransitionEnd()}))}},n.handleTouchStart=function(e){n.props.onTouchStart&&n.props.onTouchStart(e),n.handleSwipeStart(e)},n.handleTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),n.handleSwipeEnd(e)},n.handleMouseDown=function(e){n.props.onMouseDown&&n.props.onMouseDown(e),e.persist(),n.handleSwipeStart(C(e))},n.handleMouseUp=function(e){n.props.onMouseUp&&n.props.onMouseUp(e),n.handleSwipeEnd(C(e))},n.handleMouseLeave=function(e){n.props.onMouseLeave&&n.props.onMouseLeave(e),n.started&&n.handleSwipeEnd(C(e))},n.handleMouseMove=function(e){n.props.onMouseMove&&n.props.onMouseMove(e),n.started&&n.handleSwipeMove(C(e))},n.handleScroll=function(e){if(n.props.onScroll&&n.props.onScroll(e),e.target===n.rootNode)if(n.ignoreNextScrollEvents)n.ignoreNextScrollEvents=!1;else{var t=n.state.indexLatest,r=Math.ceil(e.target.scrollLeft/e.target.clientWidth)+t;n.ignoreNextScrollEvents=!0,e.target.scrollLeft=0,n.props.onChangeIndex&&r!==t&&n.props.onChangeIndex(r,t,{reason:"focus"})}},n.updateHeight=function(){if(null!==n.activeSlide){var e=n.activeSlide.children[0];void 0!==e&&void 0!==e.offsetHeight&&n.state.heightLatest!==e.offsetHeight&&n.setState({heightLatest:e.offsetHeight})}},n.state={indexLatest:e.index,isDragging:!1,renderOnlyActive:!e.disableLazyLoading,heightLatest:0,displaySameSlide:!0},n.setIndexCurrent(e.index),n}return(0,u.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){var e=this;return{swipeableViews:{slideUpdateHeight:function(){e.updateHeight()}}}}},{key:"componentDidMount",value:function(){var e=this;this.transitionListener=y(this.containerNode,h.default.end,(function(t){t.target===e.containerNode&&e.handleTransitionEnd()})),this.touchMoveListener=y(this.rootNode,"touchmove",(function(t){e.props.disabled||e.handleSwipeMove(t)}),{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout((function(){e.setState({renderOnlyActive:!1})}),0)),function(){if(!v){var e=document.createElement("style");e.innerHTML="\n      .react-swipeable-view-container {\n        display: -webkit-box;\n        display: -ms-flexbox;\n      }\n      .react-swipeable-view-container > div {\n        -ms-flex-negative: 0;\n      }\n    ",document.body&&document.body.appendChild(e),v=!0}}(),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"componentWillReceiveProps",value:function(e){var t=e.index;"number"===typeof t&&t!==this.props.index&&(this.setIndexCurrent(t),this.setState({displaySameSlide:(0,g.getDisplaySameSlide)(this.props,e),indexLatest:t}))}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"setIndexCurrent",value:function(e){if(this.props.animateTransitions||this.indexCurrent===e||this.handleTransitionEnd(),this.indexCurrent=e,this.containerNode){var t=this.props.axis,n=w.transform[t](100*e);this.containerNode.style.WebkitTransform=n,this.containerNode.style.transform=n}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var e,t,n=this,r=this.props,a=(r.action,r.animateHeight),s=r.animateTransitions,l=r.axis,c=r.children,u=r.containerStyle,p=r.disabled,h=(r.disableLazyLoading,r.enableMouseEvents),f=(r.hysteresis,r.ignoreNativeScroll,r.index,r.onChangeIndex,r.onSwitching,r.onTransitionEnd,r.resistance,r.slideStyle),m=r.slideClassName,g=r.springConfig,y=r.style,v=(r.threshold,(0,o.default)(r,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"])),k=this.state,C=k.displaySameSlide,S=k.heightLatest,M=k.indexLatest,T=k.isDragging,E=k.renderOnlyActive,P=p?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},I=!p&&h?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},O=(0,i.default)({},_,f);if(T||!s||C)e="all 0s ease 0s",t="all 0s ease 0s";else if(e=x("transform",g),t=x("-webkit-transform",g),0!==S){var L=", ".concat(x("height",g));e+=L,t+=L}var R={height:null,WebkitFlexDirection:w.flexDirection[l],flexDirection:w.flexDirection[l],WebkitTransition:t,transition:e};if(!E){var j=w.transform[l](100*this.indexCurrent);R.WebkitTransform=j,R.transform=j}return a&&(R.height=S),d.default.createElement("div",(0,i.default)({ref:this.setRootNode,style:(0,i.default)({},w.root[l],y)},v,P,I,{onScroll:this.handleScroll}),d.default.createElement("div",{ref:this.setContainerNode,style:(0,i.default)({},R,b,u),className:"react-swipeable-view-container"},d.default.Children.map(c,(function(e,t){if(E&&t!==M)return null;var r,i=!0;return t===M&&(i=!1,a&&(r=n.setActiveSlide,O.overflowY="hidden")),d.default.createElement("div",{ref:r,style:O,className:m,"aria-hidden":i,"data-swipeable":"true"},e)}))))}}]),t}(d.default.Component);E.displayName="ReactSwipableView",E.propTypes={},E.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1},E.childContextTypes={swipeableViews:p.default.shape({slideUpdateHeight:p.default.func})};var P=E;t.default=P},7506:(e,t,n)=>{"use strict";var r=n(96162);t.Z=void 0;var i=r(n(69079)).default;t.Z=i},55575:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(18178)),o=c(n(46254)),a=c(n(44600)),s=c(n(8342)),l=n(44314);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}l.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=u(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},u(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);d.displayName="CSSTransitionGroup",d.propTypes={},d.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=d,e.exports=t.default},8342:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=p(n(394)),o=p(n(64623)),a=p(n(70447)),s=n(88525),l=p(n(18178)),c=p(n(46254)),u=n(22297),d=n(44314);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=[];s.transitionEnd&&f.push(s.transitionEnd),s.animationEnd&&f.push(s.animationEnd);c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var m=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,u.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var p=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return f.length?f.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){f.length&&f.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,p))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);m.displayName="CSSTransitionGroupChild",m.propTypes={},t.default=m,e.exports=t.default},44600:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(56411)),o=l(n(18178)),a=l(n(46254)),s=(l(n(32761)),n(11754));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!==typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},11754:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(18178)},44314:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!==typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};i(n(18178));var r=i(n(46254));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},72618:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});var r=n(57995),i=n(64991),o=n(18178),a=n(22297);const s=!1;var l=n(84480),c="unmounted",u="exited",d="entering",p="entered",h="exiting",f=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=d):i=p:i=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],l=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,l),this.safeSetState({status:d},(function(){t.props.onEntering(o,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(o,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.Z.Provider,{value:null},"function"===typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function m(){}f.contextType=l.Z,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},f.UNMOUNTED=c,f.EXITED=u,f.ENTERING=d,f.ENTERED=p,f.EXITING=h;const g=f},84480:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(18178).createContext(null)},58777:(e,t,n)=>{"use strict";n.d(t,{h:()=>T});var r=!("undefined"===typeof window||!window.document||!window.document.createElement);var i=void 0;function o(){return void 0===i&&(i=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(i){}return e}()),i}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var l="__consolidated_events_handlers__";function c(e,t,n,r){e[l]||(e[l]=new s(e));var i=function(e){if(e)return o()?e:!!e.capture}(r);return e[l].add(t,n,i)}n(47781);var u=n(18178),d=n(92146);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function y(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"===typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"===typeof i?i*t:void 0}var v="above",b="inside",_="below",w="invisible";function x(e){return"string"===typeof e.type}var k;var C=[];function S(e){C.push(e),k||(k=setTimeout((function(){var e;for(k=null;e=C.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=C.indexOf(e);-1!==n&&(C.splice(n,1),!C.length&&k&&(clearTimeout(k),k=null))}}}var M={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},T=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,r,i,o=g(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).refElement=function(e){t._ref=e},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this;a.getWindow()&&(this.cancelOnNextTick=S((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!x(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=c(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=c(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))}},{key:"componentDidUpdate",value:function(){var e=this;a.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=S((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))}},{key:"componentWillUnmount",value:function(){a.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var e=this.props,t=e.horizontal,r=e.scrollableAncestor;if(r)return function(e){return"window"===e?n.g.window:e}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(t?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return i}return window}},{key:"_handleScroll",value:function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop===0?w:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?b:e.viewportBottom<e.waypointTop?_:e.waypointTop<e.viewportTop?v:w}(t),r=this._previousPosition,i=this.props,o=(i.debug,i.onPositionChange),a=i.onEnter,s=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var c={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};o.call(this,c),n===b?a.call(this,c):r===b&&s.call(this,c),l&&(r===_&&n===v||r===v&&n===_)&&(a.call(this,{currentPosition:b,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:b,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}},{key:"_getBounds",value:function(){var e,t,n=this.props,r=n.horizontal,i=(n.debug,this._ref.getBoundingClientRect()),o=i.left,a=i.top,s=i.right,l=i.bottom,c=r?o:a,u=r?s:l;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,p=d.bottomOffset;return{waypointTop:c,waypointBottom:u,viewportTop:t+y(d.topOffset,e),viewportBottom:t+e-y(p,e)}}},{key:"render",value:function(){var e=this,t=this.props.children;return t?x(t)||(0,d.isForwardRef)(t)?u.cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"===typeof t.ref?t.ref(n):t.ref.current=n)}}):u.cloneElement(t,{innerRef:this.refElement}):u.createElement("span",{ref:this.refElement,style:{fontSize:0}})}}])&&p(t.prototype,r),i&&p(t,i),a}(u.PureComponent);T.above=v,T.below=_,T.inside=b,T.invisible=w,T.getWindow=function(){if("undefined"!==typeof window)return window},T.defaultProps=M,T.displayName="Waypoint"},24328:(e,t,n)=>{"use strict";n(30758);var r=n(18178),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},99623:(e,t,n)=>{"use strict";var r=n(30758),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=v.prototype=new y;b.constructor=v,r(b,g.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:_.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+M(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+M(s=e[c],c);l+=T(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,u=r+M(s,c++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function O(){var e=I.current;if(null===e)throw Error(h(321));return e}var L={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!x.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.1"},18178:(e,t,n)=>{"use strict";e.exports=n(99623)},5651:(e,t,n)=>{"use strict";e.exports=n(24328)},3328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28628),i=function(e){return e.filter((function(e){return e}))};t.default=function(e,t,n,o){return i(r(i(e).map((function(e){return e(n,t,o)}))))}},86572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28628),i=n(3328),o=n(71323),a=n(36316);t.default=function(e,t,n){void 0===n&&(n={});var s="function"===typeof e?function(t){return r([e(t)])}:function(t){return o.default(e,t.type)};return function(e){return function(r,o){var l=e(r,o),c=i.default(s(o),r,o,l);return a.default(c,t,n,r,o,l),l}}}},61678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28628),i=n(3328),o=n(71323),a=n(36316);t.default=function(e,t,n){void 0===n&&(n={});var s="function"===typeof e?function(t){return r([e(t)])}:function(t){return o.default(e,t.type)};return function(e){return function(r){return function(o){var l=e.getState(),c=r(o),u=e.getState(),d=i.default(s(o),l,o,u);return a.default(d,t,n,l,o,u),c}}}}},71323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=Object.keys(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];return n.concat(r).filter((function(e){return"*"===e||e===t})).map((function(t){return e[t]}))}},56153:(e,t,n)=>{"use strict";n(3328).default,n(86572).default;var r=n(61678);t.J7=r.default},66896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"===typeof e&&"function"===typeof e.then}},36316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28628),i=n(66896);t.default=function(e,t,n,o,a,s){void 0===n&&(n={}),void 0===o&&(o={}),void 0===a&&(a={}),void 0===s&&(s={});var l=n.logger,c=n.offlineStorage,u=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];"function"===typeof l&&l.apply(void 0,[e,t,n].concat(r))},d=function(e){return Array.isArray(e)&&0===e.length},p=function(e){d(e)||t(e)},h=function(e){void 0===c?(p(e),u(e,a,o)):c.isConnected(s)?(p(e),u(e,a,o),c.purgeEvents((function(e){d(e)||(t(e),u(e,null,null,!1,!0))}))):(c.saveEvents(e),u(e,a,o,!0,!1))},f=e.filter(i.default);return h(e.filter((function(e){return!i.default(e)}))),Promise.all(f).then(r).then(h)}},69528:function(e,t,n){!function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function i(e,t,n){i.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function o(e,t){o.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function c(e){var t="undefined"==typeof e?"undefined":I(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e,t,n,r,d,p,h){h=h||[];var f=(d=d||[]).slice(0);if("undefined"!=typeof p){if(r){if("function"==typeof r&&r(f,p))return;if("object"===("undefined"==typeof r?"undefined":I(r))){if(r.prefilter&&r.prefilter(f,p))return;if(r.normalize){var m=r.normalize(f,p,e,t);m&&(e=m[0],t=m[1])}}}f.push(p)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var g="undefined"==typeof e?"undefined":I(e),y="undefined"==typeof t?"undefined":I(t),v="undefined"!==g||h&&h[h.length-1].lhs&&h[h.length-1].lhs.hasOwnProperty(p),b="undefined"!==y||h&&h[h.length-1].rhs&&h[h.length-1].rhs.hasOwnProperty(p);if(!v&&b)n(new o(f,t));else if(!b&&v)n(new a(f,e));else if(c(e)!==c(t))n(new i(f,e,t));else if("date"===c(e)&&e-t!==0)n(new i(f,e,t));else if("object"===g&&null!==e&&null!==t)if(h.filter((function(t){return t.lhs===e})).length)e!==t&&n(new i(f,e,t));else{if(h.push({lhs:e,rhs:t}),Array.isArray(e)){var _;for(e.length,_=0;_<e.length;_++)_>=t.length?n(new s(f,_,new a(void 0,e[_]))):u(e[_],t[_],n,r,f,_,h);for(;_<t.length;)n(new s(f,_,new o(void 0,t[_++])))}else{var w=Object.keys(e),x=Object.keys(t);w.forEach((function(i,o){var a=x.indexOf(i);a>=0?(u(e[i],t[i],n,r,f,i,h),x=l(x,a)):u(e[i],void 0,n,r,f,i,h)})),x.forEach((function(e){u(void 0,t[e],n,r,f,e,h)}))}h.length=h.length-1}else e!==t&&("number"===g&&isNaN(e)&&isNaN(t)||n(new i(f,e,t)))}function d(e,t,n,r){return r=r||[],u(e,t,(function(e){e&&r.push(e)}),n),r.length?r:void 0}function p(e,t,n){if(n.path&&n.path.length){var r,i=e[t],o=n.path.length-1;for(r=0;r<o;r++)i=i[n.path[r]];switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs}}else switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=l(e,t);break;case"E":case"N":e[t]=n.rhs}return e}function h(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,i=-1,o=n.path?n.path.length-1:0;++i<o;)"undefined"==typeof r[n.path[i]]&&(r[n.path[i]]="number"==typeof n.path[i]?[]:{}),r=r[n.path[i]];switch(n.kind){case"A":p(n.path?r[n.path[i]]:r,n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs}}}function f(e,t,n){if(n.path&&n.path.length){var r,i=e[t],o=n.path.length-1;for(r=0;r<o;r++)i=i[n.path[r]];switch(n.kind){case"A":f(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}else switch(n.kind){case"A":f(e[t],n.index,n.item);break;case"D":case"E":e[t]=n.lhs;break;case"N":e=l(e,t)}return e}function m(e,t,n){if(e&&t&&n&&n.kind){var r,i,o=e;for(i=n.path.length-1,r=0;r<i;r++)"undefined"==typeof o[n.path[r]]&&(o[n.path[r]]={}),o=o[n.path[r]];switch(n.kind){case"A":f(o[n.path[r]],n.index,n.item);break;case"D":case"E":o[n.path[r]]=n.lhs;break;case"N":delete o[n.path[r]]}}}function g(e,t,n){e&&t&&u(e,t,(function(r){n&&!n(e,t,r)||h(e,t,r)}))}function y(e){return"color: "+R[e].color+"; font-weight: bold"}function v(e){var t=e.kind,n=e.path,r=e.lhs,i=e.rhs,o=e.index,a=e.item;switch(t){case"E":return[n.join("."),r,"\u2192",i];case"N":return[n.join("."),i];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+o+"]",a];default:return[]}}function b(e,t,n,r){var i=d(e,t);try{r?n.groupCollapsed("diff"):n.group("diff")}catch(e){n.log("diff")}i?i.forEach((function(e){var t=e.kind,r=v(e);n.log.apply(n,["%c "+R[t].text,y(t)].concat(O(r)))})):n.log("\u2014\u2014 no diff \u2014\u2014");try{n.groupEnd()}catch(e){n.log("\u2014\u2014 diff end \u2014\u2014 ")}}function _(e,t,n,r){switch("undefined"==typeof e?"undefined":I(e)){case"object":return"function"==typeof e[r]?e[r].apply(e,O(n)):e[r];case"function":return e(t);default:return e}}function w(e){var t=e.timestamp,n=e.duration;return function(e,r,i){var o=["action"];return o.push("%c"+String(e.type)),t&&o.push("%c@ "+r),n&&o.push("%c(in "+i.toFixed(2)+" ms)"),o.join(" ")}}function x(e,t){var n=t.logger,r=t.actionTransformer,i=t.titleFormatter,o=void 0===i?w(t):i,a=t.collapsed,s=t.colors,l=t.level,c=t.diff,u="undefined"==typeof t.titleFormatter;e.forEach((function(i,d){var p=i.started,h=i.startedTime,f=i.action,m=i.prevState,g=i.error,y=i.took,v=i.nextState,w=e[d+1];w&&(v=w.prevState,y=w.started-p);var x=r(f),k="function"==typeof a?a((function(){return v}),f,i):a,C=E(h),S=s.title?"color: "+s.title(x)+";":"",M=["color: gray; font-weight: lighter;"];M.push(S),t.timestamp&&M.push("color: gray; font-weight: lighter;"),t.duration&&M.push("color: gray; font-weight: lighter;");var T=o(x,C,y);try{k?s.title&&u?n.groupCollapsed.apply(n,["%c "+T].concat(M)):n.groupCollapsed(T):s.title&&u?n.group.apply(n,["%c "+T].concat(M)):n.group(T)}catch(e){n.log(T)}var P=_(l,x,[m],"prevState"),I=_(l,x,[x],"action"),O=_(l,x,[g,m],"error"),L=_(l,x,[v],"nextState");if(P)if(s.prevState){var R="color: "+s.prevState(m)+"; font-weight: bold";n[P]("%c prev state",R,m)}else n[P]("prev state",m);if(I)if(s.action){var j="color: "+s.action(x)+"; font-weight: bold";n[I]("%c action    ",j,x)}else n[I]("action    ",x);if(g&&O)if(s.error){var D="color: "+s.error(g,m)+"; font-weight: bold;";n[O]("%c error     ",D,g)}else n[O]("error     ",g);if(L)if(s.nextState){var A="color: "+s.nextState(v)+"; font-weight: bold";n[L]("%c next state",A,v)}else n[L]("next state",v);c&&b(m,v,n,k);try{n.groupEnd()}catch(e){n.log("\u2014\u2014 log end \u2014\u2014")}}))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},j,e),n=t.logger,r=t.stateTransformer,i=t.errorTransformer,o=t.predicate,a=t.logErrors,s=t.diffPredicate;if("undefined"==typeof n)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n  // ...options\n});\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var l=[];return function(e){var n=e.getState;return function(e){return function(c){if("function"==typeof o&&!o(n,c))return e(c);var u={};l.push(u),u.started=P.now(),u.startedTime=new Date,u.prevState=r(n()),u.action=c;var d=void 0;if(a)try{d=e(c)}catch(e){u.error=i(e)}else d=e(c);u.took=P.now()-u.started,u.nextState=r(n());var p=t.diff&&"function"==typeof s?s(n,c):t.diff;if(x(l,Object.assign({},t,{diff:p})),l.length=0,u.error)throw u.error;return d}}}}var C,S,M=function(e,t){return new Array(t+1).join(e)},T=function(e,t){return M("0",t-e.toString().length)+e},E=function(e){return T(e.getHours(),2)+":"+T(e.getMinutes(),2)+":"+T(e.getSeconds(),2)+"."+T(e.getMilliseconds(),3)},P="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},L=[];C="object"===("undefined"==typeof n.g?"undefined":I(n.g))&&n.g?n.g:"undefined"!=typeof window?window:{},(S=C.DeepDiff)&&L.push((function(){"undefined"!=typeof S&&C.DeepDiff===d&&(C.DeepDiff=S,S=void 0)})),t(i,r),t(o,r),t(a,r),t(s,r),Object.defineProperties(d,{diff:{value:d,enumerable:!0},observableDiff:{value:u,enumerable:!0},applyDiff:{value:g,enumerable:!0},applyChange:{value:h,enumerable:!0},revertChange:{value:m,enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof S},enumerable:!0},noConflict:{value:function(){return L&&(L.forEach((function(e){e()})),L=null),d},enumerable:!0}});var R={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},j={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,n=e.getState;return"function"==typeof t||"function"==typeof n?k()({dispatch:t,getState:n}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};e.defaults=j,e.createLogger=k,e.logger=D,e.default=D,Object.defineProperty(e,"__esModule",{value:!0})}(t)},35770:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}n.d(t,{Z:()=>o});var i=r();i.withExtraArgument=r;const o=i},60374:(e,t,n)=>{"use strict";n.d(t,{md:()=>f,UY:()=>p,qC:()=>h,MT:()=>d});var r=n(28344);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"===typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!==typeof e)throw new Error(a(2));var i=e,o=t,l=[],p=l,h=!1;function f(){p===l&&(p=l.slice())}function m(){if(h)throw new Error(a(3));return o}function g(e){if("function"!==typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return f(),p.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,f();var n=p.indexOf(e);p.splice(n,1),l=null}}}function y(e){if(!u(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,o=i(o,e)}finally{h=!1}for(var t=l=p,n=0;n<t.length;n++){(0,t[n])()}return e}return y({type:c.INIT}),(r={dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(a(10));i=e,y({type:c.REPLACE})}})[s]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:c.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(l){o=l}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},l=0;l<s.length;l++){var c=s[l],u=n[c],d=e[c],p=u(d,t);if("undefined"===typeof p){t&&t.type;throw new Error(a(14))}i[c]=p,r=r||p!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=h.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},96634:(e,t,n)=>{"use strict";var r=n(72960),i=Object,o=TypeError;e.exports=r((function(){if(null!=this&&this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0)},14073:(e,t,n)=>{"use strict";var r=n(30434),i=n(90935),o=n(96634),a=n(18303),s=n(53331),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},18303:(e,t,n)=>{"use strict";var r=n(96634),i=n(30434).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},53331:(e,t,n)=>{"use strict";var r=n(30434).supportsDescriptors,i=n(18303),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},41131:(e,t,n)=>{"use strict";e.exports=n(18178)},86661:(e,t,n)=>{"use strict";var r=n(82155).hasOwnProperty("default")?n(82155).default:n(82155);function i(e,t){return(n=e).length>=2&&"number"===typeof n[0]&&"number"===typeof n[1]?t(e):e.map((function(e){return i(e,t)}));var n}function o(e,t,n){if(null==n)return n;var r=function(e){if(null==e||"object"!==typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(n),i=o.bind(this,e,t);switch(n.type){case"Feature":r.geometry=i(n.geometry);break;case"FeatureCollection":r.features=r.features.map(i);break;case"GeometryCollection":r.geometries=r.geometries.map(i);break;default:e(r)}return t&&t(r),r}function a(e,t){var n,r=e.crs;if(void 0===r)throw new Error('Unable to detect CRS, GeoJSON has no "crs" property.');if("name"===r.type?n=t[r.properties.name]:"EPSG"===r.type&&(n=t["EPSG:"+r.properties.code]),!n)throw new Error("CRS defined in crs section could not be identified: "+JSON.stringify(r));return n}function s(e,t){return"string"===typeof e||e instanceof String?t[e]||r.Proj(e):e}function l(e,t,n,l){l=l||{},t=t?s(t,l):a(e,l),n=s(n,l);var c=r(t,n).forward.bind(c);function u(e){var t=c(e);return 3===e.length&&void 0!==e[2]&&void 0===t[2]&&(t[2]=e[2]),t}return o((function(e){e.crs&&delete e.crs,e.coordinates=i(e.coordinates,u)}),(function(e){e.bbox&&(e.bbox=function(e){var t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE];return o((function(e){i(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))}),null,e),[t[0],t[1],n[0],n[1]]}(e))}),e)}e.exports={detectCrs:a,reproject:l,reverse:function(e){return o((function(e){e.coordinates=i(e.coordinates,(function(e){return[e[1],e[0]]}))}),null,e)},toWgs84:function(e,t,n){return l(e,t,r.WGS84,n)}}},82138:(e,t,n)=>{"use strict";n.d(t,{PW:()=>o});var r="NOT_FOUND";var i=function(e,t){return e===t};function o(e,t){var n="object"===typeof t?t:{equalityCheck:t},o=n.equalityCheck,a=void 0===o?i:o,s=n.maxSize,l=void 0===s?1:s,c=n.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(a),d=1===l?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:r},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(u):function(e,t){var n=[];function i(e){var i=n.findIndex((function(n){return t(e,n.key)}));if(i>-1){var o=n[i];return i>0&&(n.splice(i,1),n.unshift(o)),o.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,u);function p(){var t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),c){var n=d.getEntries().find((function(e){return c(e.value,t)}));n&&(t=n.value)}d.put(arguments,t)}return t}return p.clearCache=function(){return d.clear()},p}},99730:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"===typeof l&&(s=l,l=r.pop()),"function"!==typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),f=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return o=h.apply(null,e)}));return Object.assign(f,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),f}}n.d(t,{P1:()=>i,wN:()=>r});var i=r(n(82138).PW)},57504:function(e,t){!function(e){"use strict";const t=134217729,n=33306690738754706e-32;function r(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,p=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++p]);let h=0;if(d<e&&p<n)for(u>c==u>-c?(s=o-((a=c+o)-c),c=t[++d]):(s=o-((a=u+o)-u),u=r[++p]),o=a,0!==s&&(i[h++]=s);d<e&&p<n;)u>c==u>-c?(s=o-((a=o+c)-(l=a-o))+(c-l),c=t[++d]):(s=o-((a=o+u)-(l=a-o))+(u-l),u=r[++p]),o=a,0!==s&&(i[h++]=s);for(;d<e;)s=o-((a=o+c)-(l=a-o))+(c-l),c=t[++d],o=a,0!==s&&(i[h++]=s);for(;p<n;)s=o-((a=o+u)-(l=a-o))+(u-l),u=r[++p],o=a,0!==s&&(i[h++]=s);return 0===o&&0!==h||(i[h++]=o),h}function i(e){return new Float64Array(e)}const o=33306690738754716e-32,a=22204460492503146e-32,s=11093356479670487e-47,l=i(4),c=i(8),u=i(12),d=i(16),p=i(4);e.orient2d=function(e,i,h,f,m,g){const y=(i-g)*(h-m),v=(e-m)*(f-g),b=y-v;if(0===y||0===v||y>0!=v>0)return b;const _=Math.abs(y+v);return Math.abs(b)>=o*_?b:-function(e,i,o,h,f,m,g){let y,v,b,_,w,x,k,C,S,M,T,E,P,I,O,L,R,j;const D=e-f,A=o-f,N=i-m,F=h-m;w=(O=(C=D-(k=(x=t*D)-(x-D)))*(M=F-(S=(x=t*F)-(x-F)))-((I=D*F)-k*S-C*S-k*M))-(T=O-(R=(C=N-(k=(x=t*N)-(x-N)))*(M=A-(S=(x=t*A)-(x-A)))-((L=N*A)-k*S-C*S-k*M))),l[0]=O-(T+w)+(w-R),w=(P=I-((E=I+T)-(w=E-I))+(T-w))-(T=P-L),l[1]=P-(T+w)+(w-L),w=(j=E+T)-E,l[2]=E-(j-w)+(T-w),l[3]=j;let z=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,l),B=a*g;if(z>=B||-z>=B)return z;if(y=e-(D+(w=e-D))+(w-f),b=o-(A+(w=o-A))+(w-f),v=i-(N+(w=i-N))+(w-m),_=h-(F+(w=h-F))+(w-m),0===y&&0===v&&0===b&&0===_)return z;if(B=s*g+n*Math.abs(z),(z+=D*_+F*y-(N*b+A*v))>=B||-z>=B)return z;w=(O=(C=y-(k=(x=t*y)-(x-y)))*(M=F-(S=(x=t*F)-(x-F)))-((I=y*F)-k*S-C*S-k*M))-(T=O-(R=(C=v-(k=(x=t*v)-(x-v)))*(M=A-(S=(x=t*A)-(x-A)))-((L=v*A)-k*S-C*S-k*M))),p[0]=O-(T+w)+(w-R),w=(P=I-((E=I+T)-(w=E-I))+(T-w))-(T=P-L),p[1]=P-(T+w)+(w-L),w=(j=E+T)-E,p[2]=E-(j-w)+(T-w),p[3]=j;const U=r(4,l,4,p,c);w=(O=(C=D-(k=(x=t*D)-(x-D)))*(M=_-(S=(x=t*_)-(x-_)))-((I=D*_)-k*S-C*S-k*M))-(T=O-(R=(C=N-(k=(x=t*N)-(x-N)))*(M=b-(S=(x=t*b)-(x-b)))-((L=N*b)-k*S-C*S-k*M))),p[0]=O-(T+w)+(w-R),w=(P=I-((E=I+T)-(w=E-I))+(T-w))-(T=P-L),p[1]=P-(T+w)+(w-L),w=(j=E+T)-E,p[2]=E-(j-w)+(T-w),p[3]=j;const $=r(U,c,4,p,u);w=(O=(C=y-(k=(x=t*y)-(x-y)))*(M=_-(S=(x=t*_)-(x-_)))-((I=y*_)-k*S-C*S-k*M))-(T=O-(R=(C=v-(k=(x=t*v)-(x-v)))*(M=b-(S=(x=t*b)-(x-b)))-((L=v*b)-k*S-C*S-k*M))),p[0]=O-(T+w)+(w-R),w=(P=I-((E=I+T)-(w=E-I))+(T-w))-(T=P-L),p[1]=P-(T+w)+(w-L),w=(j=E+T)-E,p[2]=E-(j-w)+(T-w),p[3]=j;const V=r($,u,4,p,d);return d[V-1]}(e,i,h,f,m,g,_)},e.orient2dfast=function(e,t,n,r,i,o){return(t-o)*(n-i)-(e-i)*(r-o)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},43129:(e,t)=>{"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var f=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,y=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,w=_.port2;_.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+v;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(n){throw w.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,w.postMessage(null))},r=function(e,n){y=p((function(){e(t.unstable_now())}),n)},i=function(){h(y),y=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>S(a,n))void 0!==l&&0>S(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],T=[],E=1,P=null,I=3,O=!1,L=!1,R=!1;function j(e){for(var t=k(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,x(M,t)}t=k(T)}}function D(e){if(R=!1,j(e),!L)if(null!==k(M))L=!0,n(A);else{var t=k(T);null!==t&&r(D,t.startTime-e)}}function A(e,n){L=!1,R&&(R=!1,i()),O=!0;var o=I;try{for(j(n),P=k(M);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"===typeof a){P.callback=null,I=P.priorityLevel;var s=a(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===k(M)&&C(M),j(n)}else C(M);P=k(M)}if(null!==P)var l=!0;else{var c=k(T);null!==c&&r(D,c.startTime-n),l=!1}return l}finally{P=null,I=o,O=!1}}var N=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||O||(L=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return k(M)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:E++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,x(T,e),null===k(M)&&e===k(T)&&(R?i():R=!0,r(D,a-s))):(e.sortIndex=l,x(M,e),L||O||(L=!0,n(A))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},49241:(e,t,n)=>{"use strict";e.exports=n(43129)},11535:(e,t,n)=>{"use strict";var r=n(3946),i=n(91203),o=n(98489)(),a=n(39858),s=r("%TypeError%"),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},72960:(e,t,n)=>{"use strict";var r=n(91203),i=n(98489)(),o=n(28784).functionsHaveConfigurableNames(),a=TypeError;e.exports=function(e,t){if("function"!==typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?r(e,"name",t,!0,!0):r(e,"name",t)),e}},76996:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},4616:e=>{"use strict";e.exports={eudist:function(e,t,n){for(var r=e.length,i=0,o=0;o<r;o++){var a=(e[o]||0)-(t[o]||0);i+=a*a}return n?Math.sqrt(i):i},mandist:function(e,t,n){for(var r=e.length,i=0,o=0;o<r;o++)i+=Math.abs((e[o]||0)-(t[o]||0));return n?Math.sqrt(i):i},dist:function(e,t,n){var r=Math.abs(e-t);return n?r:r*r}}},63241:(e,t,n)=>{"use strict";var r=n(4616),i=r.eudist,o=r.dist;e.exports={kmrand:function(e,t){for(var n={},r=[],i=t<<2,o=e.length,a=e[0].length>0;r.length<t&&i-- >0;){var s=e[Math.floor(Math.random()*o)],l=a?s.join("_"):""+s;n[l]||(n[l]=!0,r.push(s))}if(r.length<t)throw new Error("Error initializating clusters");return r},kmpp:function(e,t){var n=e[0].length?i:o,r=[],a=e.length,s=e[0].length>0,l=e[Math.floor(Math.random()*a)];s&&l.join("_");for(r.push(l);r.length<t;){for(var c=[],u=r.length,d=0,p=[],h=0;h<a;h++){for(var f=1/0,m=0;m<u;m++){var g=n(e[h],r[m]);g<=f&&(f=g)}c[h]=f}for(var y=0;y<a;y++)d+=c[y];for(var v=0;v<a;v++)p[v]={i:v,v:e[v],pr:c[v]/d,cs:0};p.sort((function(e,t){return e.pr-t.pr})),p[0].cs=p[0].pr;for(var b=1;b<a;b++)p[b].cs=p[b-1].cs+p[b].pr;for(var _=Math.random(),w=0;w<a-1&&p[w++].cs<_;);r.push(p[w-1].v)}return r}}},90427:(e,t,n)=>{"use strict";var r=n(4616),i=n(63241),o=r.eudist,a=(r.mandist,r.dist,i.kmrand),s=i.kmpp;function l(e,t,n){n=n||[];for(var r=0;r<e;r++)n[r]=t;return n}e.exports=function(e,t,n,r){var i=[],c=[],u=[],d=[],p=!1,h=r||1e4,f=e.length,m=e[0].length,g=m>0,y=[];if(n)i="kmrand"==n?a(e,t):"kmpp"==n?s(e,t):n;else for(var v={};i.length<t;){var b=Math.floor(Math.random()*f);v[b]||(v[b]=!0,i.push(e[b]))}do{l(t,0,y);for(var _=0;_<f;_++){for(var w=1/0,x=0,k=0;k<t;k++){(d=g?o(e[_],i[k]):Math.abs(e[_]-i[k]))<=w&&(w=d,x=k)}u[_]=x,y[x]++}for(var C=[],S=(c=[],0);S<t;S++)C[S]=g?l(m,0,C[S]):0,c[S]=i[S];if(g){for(var M=0;M<t;M++)i[M]=[];for(var T=0;T<f;T++)for(var E=C[u[T]],P=e[T],I=0;I<m;I++)E[I]+=P[I];p=!0;for(var O=0;O<t;O++){for(var L=i[O],R=C[O],j=c[O],D=y[O],A=0;A<m;A++)L[A]=R[A]/D||0;if(p)for(var N=0;N<m;N++)if(j[N]!=L[N]){p=!1;break}}}else{for(var F=0;F<f;F++){C[u[F]]+=e[F]}for(var z=0;z<t;z++)i[z]=C[z]/y[z]||0;p=!0;for(var B=0;B<t;B++)if(c[B]!=i[B]){p=!1;break}}p=p||--h<=0}while(!p);return{it:1e4-h,k:t,idxs:u,centroids:i}}},84917:(e,t,n)=>{"use strict";n.d(t,{Ni:()=>Ee,f6:()=>Pe,vJ:()=>je,iv:()=>ye,ZP:()=>Ne,F4:()=>De,Fg:()=>Ae});var r=n(65819),i=n(18178),o=n(76996),a=n.n(o);const s=function(e){function t(e,r,l,c,p){for(var h,f,m,g,_,x=0,k=0,C=0,S=0,M=0,L=0,j=m=h=0,A=0,N=0,F=0,z=0,B=l.length,U=B-1,$="",V="",q="",Z="";A<B;){if(f=l.charCodeAt(A),A===U&&0!==k+S+C+x&&(0!==k&&(f=47===k?10:47),S=C=x=0,B++,U++),0===k+S+C+x){if(A===U&&(0<N&&($=$.replace(d,"")),0<$.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:$+=l.charAt(A)}f=59}switch(f){case 123:for(h=($=$.trim()).charCodeAt(0),m=1,z=++A;A<B;){switch(f=l.charCodeAt(A)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(A+1)){case 42:case 47:e:{for(j=A+1;j<U;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&A+2!==j){A=j+1;break e}break;case 10:if(47===f){A=j+1;break e}}A=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;A++<U&&l.charCodeAt(A)!==f;);}if(0===m)break;A++}if(m=l.substring(z,A),0===h&&(h=($=$.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<N&&($=$.replace(d,"")),f=$.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=O}if(z=(m=t(r,N,m,f,p+1)).length,0<R&&(_=s(3,m,N=n(O,$,F),r,E,T,z,f,p,c),$=N.join(""),void 0!==_&&0===(z=(m=_.trim()).length)&&(f=0,m="")),0<z)switch(f){case 115:$=$.replace(w,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(y,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===c&&(V+=m,m="")}else m=""}else m=t(r,n(r,$,F),m,c,p+1);q+=m,m=F=N=j=h=0,$="",f=l.charCodeAt(++A);break;case 125:case 59:if(1<(z=($=(0<N?$.replace(d,""):$).trim()).length))switch(0===j&&(h=$.charCodeAt(0),45===h||96<h&&123>h)&&(z=($=$.replace(" ",":")).length),0<R&&void 0!==(_=s(1,$,r,e,E,T,V.length,c,p,c))&&0===(z=($=_.trim()).length)&&($="\0\0"),h=$.charCodeAt(0),f=$.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){Z+=$+l.charAt(A);break}default:58!==$.charCodeAt(z-1)&&(V+=i($,h,f,$.charCodeAt(2)))}F=N=j=h=0,$="",f=l.charCodeAt(++A)}}switch(f){case 13:case 10:47===k?k=0:0===1+h&&107!==c&&0<$.length&&(N=1,$+="\0"),0<R*D&&s(0,$,r,e,E,T,V.length,c,p,c),T=1,E++;break;case 59:case 125:if(0===k+S+C+x){T++;break}default:switch(T++,g=l.charAt(A),f){case 9:case 32:if(0===S+x+k)switch(M){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+k+x&&(N=F=1,g="\f"+g);break;case 108:if(0===S+k+x+P&&0<j)switch(A-j){case 2:112===M&&58===l.charCodeAt(A-3)&&(P=M);case 8:111===L&&(P=L)}break;case 58:0===S+k+x&&(j=A);break;case 44:0===k+C+S+x&&(N=1,g+="\r");break;case 34:case 39:0===k&&(S=S===f?0:0===S?f:S);break;case 91:0===S+k+C&&x++;break;case 93:0===S+k+C&&x--;break;case 41:0===S+k+x&&C--;break;case 40:if(0===S+k+x){if(0===h)if(2*M+3*L===533);else h=1;C++}break;case 64:0===k+C+S+x+j+m&&(m=1);break;case 42:case 47:if(!(0<S+x+C))switch(k){case 0:switch(2*f+3*l.charCodeAt(A+1)){case 235:k=47;break;case 220:z=A,k=42}break;case 42:47===f&&42===M&&z+2!==A&&(33===l.charCodeAt(z+2)&&(V+=l.substring(z,A+1)),g="",k=0)}}0===k&&($+=g)}L=M,M=f,A++}if(0<(z=V.length)){if(N=r,0<R&&(void 0!==(_=s(2,V,N,e,E,T,z,c,p,c))&&0===(V=_).length))return Z+V+q;if(V=N.join(",")+"{"+V+"}",0!==I*P){switch(2!==I||o(V,2)||(P=0),P){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}P=0}}return Z+V+q}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&o(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(M,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(_,"tb");break;case 232:l=a.replace(_,"tb-rl");break;case 220:l=a.replace(_,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,h=t;p<R;++p)switch(d=L[p].call(c,e,h,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!==typeof e?I=1:(I=2,j=e):I=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<R){var i=s(-1,n,r,r,E,T,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(O,r,n,0,0);return 0<R&&(void 0!==(i=s(-2,o,r,r,E,T,o.length,0,0,0))&&(o=i)),"",P=0,T=E=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,T=1,E=1,P=0,I=1,O=[],L=[],R=0,j=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:R=L.length=0;break;default:if("function"===typeof t)L[R++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};const l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var d=n(1815),p=n.n(d);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},g=Object.freeze([]),y=Object.freeze({});function v(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var w="undefined"!=typeof process&&({FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_SC_ATTR||{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.SC_ATTR)||"data-styled",x="undefined"!=typeof window&&"HTMLElement"in window,k=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_SC_DISABLE_SPEEDY&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.SC_DISABLE_SPEEDY&&""!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.SC_DISABLE_SPEEDY&&("false"!=={FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.SC_DISABLE_SPEEDY&&{FLURO_ENV:"prod",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REDUX_LOGGER:void 0}.SC_DISABLE_SPEEDY)),C={};function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var M=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),T=new Map,E=new Map,P=1,I=function(e){if(T.has(e))return T.get(e);for(;E.has(P);)P++;var t=P++;return T.set(e,t),E.set(t,e),t},O=function(e){return E.get(e)},L=function(e,t){T.set(e,t),E.set(t,e)},R="style["+w+'][data-styled-version="5.3.0"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},A=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(j);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(L(c,l),D(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},N=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.0");var a=N();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},z=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=x,V={isServer:!x,useCSSOMInjection:!k},q=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},V,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&x&&$&&($=!1,function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(w)&&(A(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new U(i):r?new z(i):new B(i),new M(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=O(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(void 0!==a&&0!==s.length){var l=w+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Z=/(a)(d)/gi,H=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H(t%52)+n;return(H(t%52)+n).replace(Z,"$1-$2")}var W=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return W(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!_(n))return!1}return!0}var X=Y("5.3.0"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=W(X,t),this.baseStyle=n,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ge(this.rules,e,t,n).join(""),a=G(W(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=W(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var h=ge(p,e,t,n),f=Array.isArray(h)?h.join(""):h;c=W(c,f+d),u+=f}}if(u){var m=G(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,i,o=void 0===e?y:e,a=o.options,l=void 0===a?y:a,c=o.plugins,u=void 0===c?g:c,d=new s(l),p=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),f=function(e,r,o){return 0===r&&-1!==ee.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Q,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(a||!o?"":o,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},h,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||S(15),W(e,t.name)}),5381).toString():"",m}var ne=i.createContext(),re=(ne.Consumer,i.createContext()),ie=(re.Consumer,new q),oe=te();function ae(){return(0,i.useContext)(ne)||ie}function se(){return(0,i.useContext)(re)||oe}function le(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ae(),s=(0,i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,i.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,i.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(ne.Provider,{value:s},i.createElement(re.Provider,{value:l},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,pe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function fe(e){return ue.test(e)?e.replace(de,he).replace(pe,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ge(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return me(e)?"":_(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(m(t[a])?o.push.apply(o,e(t[a],a)):v(t[a])?o.push(fe(a)+":",t[a],";"):o.push(fe(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in l?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var c}function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?ge(f(g,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ge(f(e,n))}new Set;var ve=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_e=/(^-|-$)/g;function we(e){return e.replace(be,"-").replace(_e,"")}var xe=function(e){return G(Y(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Se=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Ce(t)&&Ce(r)?Te(r,t):e[n]=t}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Ce(a))for(var s in a)Se(s)&&Me(e,a[s],s)}return e}var Ee=i.createContext();Ee.Consumer;function Pe(e){var t=(0,i.useContext)(Ee),n=(0,i.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?S(8):t?h({},t,{},e):e:S(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(Ee.Provider,{value:n},e.children):null}var Ie={};function Oe(e,t,n){var r=_(e),o=!ke(e),a=t.attrs,s=void 0===a?g:a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":we(e);Ie[n]=(Ie[n]||0)+1;var r=n+"-"+xe("5.3.0"+n+Ie[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,d=t.displayName,f=void 0===d?function(e){return ke(e)?"styled."+e:"Styled("+b(e)+")"}(e):d,m=t.displayName&&t.componentId?we(t.displayName)+"-"+t.componentId:t.componentId||c,w=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var k,C=new J(n,m,r?e.componentStyle:void 0),S=C.isStatic&&0===s.length,M=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=y);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in v(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(ve(t,(0,i.useContext)(Ee),s)||y,t,o),m=f[0],g=f[1],b=function(e,t,n,r){var i=ae(),o=se();return t?e.generateAndInjectStyles(y,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,m),_=n,w=g.$as||t.$as||g.as||t.as||p,x=ke(w),k=g!==t?h({},t,{},g):t,C={};for(var S in k)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?C.as=k[S]:(c?c(S,u,w):!x||u(S))&&(C[S]=k[S]));return t.style&&g.style!==t.style&&(C.style=h({},t.style,{},g.style)),C.className=Array.prototype.concat(l,d,b!==d?b:null,t.className,g.className).filter(Boolean).join(" "),C.ref=_,(0,i.createElement)(w,C)}(k,e,t,S)};return M.displayName=f,(k=i.forwardRef(M)).attrs=w,k.componentStyle=C,k.displayName=f,k.shouldForwardProp=x,k.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,k.styledComponentId=m,k.target=r?e.target:e,k.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(ke(e)?e:we(b(e)));return Oe(e,h({},i,{attrs:w,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Te({},e.defaultProps,t):t}}),k.toString=function(){return"."+k.styledComponentId},o&&p()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Le=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!(0,r.isValidElementType)(n))return S(1,String(n));var o=function(){return t(n,i,ye.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,h({},i,{},r))},o.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Oe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));var Re=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ge(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ye.apply(void 0,[e].concat(n)),a="sc-global-"+xe(JSON.stringify(o)),s=new Re(o,a);function l(e){var t=ae(),n=se(),r=(0,i.useContext)(Ee),o=(0,i.useRef)(t.allocateGSInstance(a)).current;return(0,i.useLayoutEffect)((function(){return c(o,e,t,r,n),function(){return s.removeStyles(o,t)}}),[o,e,t,r,n]),null}function c(e,t,n,r,i){if(s.isStatic)s.renderStyles(e,C,n,i);else{var o=h({},t,{theme:ve(t,r,l.defaultProps)});s.renderStyles(e,o,n,i)}}return i.memo(l)}function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ye.apply(void 0,[e].concat(n)).join(""),o=xe(i);return new ce(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=N();return"<style "+[n&&'nonce="'+n+'"',w+'="true"','data-styled-version="5.3.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[w]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=N();return r&&(n.nonce=r),[i.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();var Ae=function(){return(0,i.useContext)(Ee)};const Ne=Le},91622:(e,t,n)=>{"use strict";function r(e,t,n,o,a,s){if(a-o<=n)return;const l=o+a>>1;i(e,t,l,o,a,s%2),r(e,t,n,o,l-1,s+1),r(e,t,n,l+1,a,s+1)}function i(e,t,n,r,a,s){for(;a>r;){if(a-r>600){const o=a-r+1,l=n-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(o-u)/o)*(l-o/2<0?-1:1);i(e,t,n,Math.max(r,Math.floor(n-l*u/o+d)),Math.min(a,Math.floor(n+(o-l)*u/o+d)),s)}const l=t[2*n+s];let c=r,u=a;for(o(e,t,r,n),t[2*a+s]>l&&o(e,t,r,a);c<u;){for(o(e,t,c,u),c++,u--;t[2*c+s]<l;)c++;for(;t[2*u+s]>l;)u--}t[2*r+s]===l?o(e,t,r,u):(u++,o(e,t,u,a)),u<=n&&(r=u+1),n<=u&&(a=u-1)}}function o(e,t,n,r){a(e,n,r),a(t,2*n,2*r),a(t,2*n+1,2*r+1)}function a(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function s(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}n.d(t,{Z:()=>f});const l=e=>e[0],c=e=>e[1];class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Float64Array;this.nodeSize=i,this.points=e;const a=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new a(e.length),u=this.coords=new o(2*e.length);for(let r=0;r<e.length;r++)s[r]=r,u[2*r]=t(e[r]),u[2*r+1]=n(e[r]);r(s,u,i,0,s.length-1,0)}range(e,t,n,r){return function(e,t,n,r,i,o,a){const s=[0,e.length-1,0],l=[];let c,u;for(;s.length;){const d=s.pop(),p=s.pop(),h=s.pop();if(p-h<=a){for(let a=h;a<=p;a++)c=t[2*a],u=t[2*a+1],c>=n&&c<=i&&u>=r&&u<=o&&l.push(e[a]);continue}const f=Math.floor((h+p)/2);c=t[2*f],u=t[2*f+1],c>=n&&c<=i&&u>=r&&u<=o&&l.push(e[f]);const m=(d+1)%2;(0===d?n<=c:r<=u)&&(s.push(h),s.push(f-1),s.push(m)),(0===d?i>=c:o>=u)&&(s.push(f+1),s.push(p),s.push(m))}return l}(this.ids,this.coords,e,t,n,r,this.nodeSize)}within(e,t,n){return function(e,t,n,r,i,o){const a=[0,e.length-1,0],l=[],c=i*i;for(;a.length;){const u=a.pop(),d=a.pop(),p=a.pop();if(d-p<=o){for(let i=p;i<=d;i++)s(t[2*i],t[2*i+1],n,r)<=c&&l.push(e[i]);continue}const h=Math.floor((p+d)/2),f=t[2*h],m=t[2*h+1];s(f,m,n,r)<=c&&l.push(e[h]);const g=(u+1)%2;(0===u?n-i<=f:r-i<=m)&&(a.push(p),a.push(h-1),a.push(g)),(0===u?n+i>=f:r+i>=m)&&(a.push(h+1),a.push(d),a.push(g))}return l}(this.ids,this.coords,e,t,n,this.nodeSize)}}const d={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},p=Math.fround||(h=new Float32Array(1),e=>(h[0]=+e,h[0]));var h;class f{constructor(e){this.options=x(Object.create(d),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:n,maxZoom:r,nodeSize:i}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;let a=[];for(let s=0;s<e.length;s++)e[s].geometry&&a.push(g(e[s],s));this.trees[r+1]=new u(a,k,C,i,Float32Array),t&&console.timeEnd(o);for(let s=r;s>=n;s--){const e=+Date.now();a=this._cluster(a,s),this.trees[s]=new u(a,k,C,i,Float32Array),t&&console.log("z%d: %d clusters in %dms",s,a.length,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){const e=this.getClusters([n,r,180,o],t),a=this.getClusters([-180,r,i,o],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(b(n),_(o),b(i),_(r)),l=[];for(const c of s){const e=a.points[c];l.push(e.numPoints?y(e):this.points[e.index])}return l}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.points[t];if(!o)throw new Error(r);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i.within(o.x,o.y,a),l=[];for(const c of s){const t=i.points[c];t.parentId===e&&l.push(t.numPoints?y(t):this.points[t.index])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,n){t=t||10,n=n||0;const r=[];return this._appendLeaves(r,e,t,n,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:a}=this.options,s=a/o,l=(n-s)/i,c=(n+1+s)/i,u={features:[]};return this._addTileFeatures(r.range((t-s)/i,l,(t+1+s)/i,c),r.points,t,n,i,u),0===t&&this._addTileFeatures(r.range(1-s/i,l,1,c),r.points,i,n,i,u),t===i-1&&this._addTileFeatures(r.range(0,l,s/i,c),r.points,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){const o=this.getChildren(t);for(const a of o){const t=a.properties;if(t&&t.cluster?i+t.point_count<=r?i+=t.point_count:i=this._appendLeaves(e,t.cluster_id,n,r,i):i<r?i++:e.push(a),e.length===n)break}return i}_addTileFeatures(e,t,n,r,i,o){for(const a of e){const e=t[a],s=e.numPoints;let l,c,u;if(s)l=v(e),c=e.x,u=e.y;else{const t=this.points[e.index];l=t.properties,c=b(t.geometry.coordinates[0]),u=_(t.geometry.coordinates[1])}const d={type:1,geometry:[[Math.round(this.options.extent*(c*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:l};let p;s?p=e.id:this.options.generateId?p=e.index:this.points[e.index].id&&(p=this.points[e.index].id),void 0!==p&&(d.id=p),o.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const n=[],{radius:r,extent:i,reduce:o,minPoints:a}=this.options,s=r/(i*Math.pow(2,t));for(let l=0;l<e.length;l++){const r=e[l];if(r.zoom<=t)continue;r.zoom=t;const i=this.trees[t+1],c=i.within(r.x,r.y,s),u=r.numPoints||1;let d=u;for(const e of c){const n=i.points[e];n.zoom>t&&(d+=n.numPoints||1)}if(d>=a){let e=r.x*u,a=r.y*u,s=o&&u>1?this._map(r,!0):null;const p=(l<<5)+(t+1)+this.points.length;for(const n of c){const l=i.points[n];if(l.zoom<=t)continue;l.zoom=t;const c=l.numPoints||1;e+=l.x*c,a+=l.y*c,l.parentId=p,o&&(s||(s=this._map(r,!0)),o(s,this._map(l)))}r.parentId=p,n.push(m(e/d,a/d,p,d,s))}else if(n.push(r),d>1)for(const e of c){const r=i.points[e];r.zoom<=t||(r.zoom=t,n.push(r))}}return n}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?x({},e.properties):e.properties;const n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?x({},r):r}}function m(e,t,n,r,i){return{x:p(e),y:p(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function g(e,t){const[n,r]=e.geometry.coordinates;return{x:p(b(n)),y:p(_(r)),zoom:1/0,index:t,parentId:-1}}function y(e){return{type:"Feature",id:e.id,properties:v(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),w(e.y)]}};var t}function v(e){const t=e.numPoints,n=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return x(x({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function b(e){return e/360+.5}function _(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function w(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function x(e,t){for(const n in t)e[n]=t[n];return e}function k(e){return e.x}function C(e){return e.y}},57980:e=>{const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),i=(e,t)=>n(e).join(t).toLowerCase(),o=e=>n(e).reduce(((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`),"");e.exports={words:n,upperFirst:r,camelCase:o,pascalCase:e=>r(o(e)),snakeCase:e=>i(e,"_"),kebabCase:e=>i(e,"-"),sentenceCase:e=>r(i(e," ")),titleCase:e=>n(e).map(r).join(" ")}},58503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=1+(e<<1),o=t[r];const a=r+1;if(a<this.length&&n(t[a],o)<0&&(r=a,o=t[a]),n(o,i)>=0)break;t[e]=o,e=r}t[e]=i}}function i(e,t){return e<t?-1:e>t?1:0}},39723:e=>{function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,s.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},15078:function(e,t){!function(e){"use strict";function t(){}function n(e){this.message=e||""}function r(e){this.message=e||""}function i(e){this.message=e||""}function o(){}function a(e){return null===e?je:e.color}function s(e){return null===e?null:e.parent}function l(e,t){null!==e&&(e.color=t)}function c(e){return null===e?null:e.left}function u(e){return null===e?null:e.right}function d(){this.root_=null,this.size_=0}function p(){}function h(){this.array_=[],arguments[0]instanceof _e&&this.addAll(arguments[0])}function f(){}function m(e){this.message=e||""}function g(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(e){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var t=Object(this),n=Math.max(Math.min(t.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)t[r]=e,++r;return t},writable:!0}),Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(e){return e!=e},Math.trunc=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};var y=function(){};y.prototype.interfaces_=function(){return[]},y.prototype.getClass=function(){return y},y.prototype.equalsWithTolerance=function(e,t,n){return Math.abs(e-t)<=n};var v=function(e){function t(t){e.call(this,t),this.name="IllegalArgumentException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),b=function(){},_={MAX_VALUE:{configurable:!0}};b.isNaN=function(e){return Number.isNaN(e)},b.doubleToLongBits=function(e){return e},b.longBitsToDouble=function(e){return e},b.isInfinite=function(e){return!Number.isFinite(e)},_.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(b,_);var w=function(){},x=function(){},k=function(){},C=function e(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=e.NULL_ORDINATE;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.z=t.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=e.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},S={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};C.prototype.setOrdinate=function(e,t){switch(e){case C.X:this.x=t;break;case C.Y:this.y=t;break;case C.Z:this.z=t;break;default:throw new v("Invalid ordinate index: "+e)}},C.prototype.equals2D=function(){if(1===arguments.length){var e=arguments[0];return this.x===e.x&&this.y===e.y}if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!y.equalsWithTolerance(this.x,t.x,n)&&!!y.equalsWithTolerance(this.y,t.y,n)}},C.prototype.getOrdinate=function(e){switch(e){case C.X:return this.x;case C.Y:return this.y;case C.Z:return this.z}throw new v("Invalid ordinate index: "+e)},C.prototype.equals3D=function(e){return this.x===e.x&&this.y===e.y&&(this.z===e.z||b.isNaN(this.z))&&b.isNaN(e.z)},C.prototype.equals=function(e){return e instanceof C&&this.equals2D(e)},C.prototype.equalInZ=function(e,t){return y.equalsWithTolerance(this.z,e.z,t)},C.prototype.compareTo=function(e){var t=e;return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:this.y>t.y?1:0},C.prototype.clone=function(){},C.prototype.copy=function(){return new C(this)},C.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},C.prototype.distance3D=function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)},C.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},C.prototype.hashCode=function(){var e=17;return 37*(e=37*e+C.hashCode(this.x))+C.hashCode(this.y)},C.prototype.setCoordinate=function(e){this.x=e.x,this.y=e.y,this.z=e.z},C.prototype.interfaces_=function(){return[w,x,t]},C.prototype.getClass=function(){return C},C.hashCode=function(){if(1===arguments.length){var e=arguments[0],t=b.doubleToLongBits(e);return Math.trunc((t^t)>>>32)}},S.DimensionalComparator.get=function(){return M},S.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},S.NULL_ORDINATE.get=function(){return b.NaN},S.X.get=function(){return 0},S.Y.get=function(){return 1},S.Z.get=function(){return 2},Object.defineProperties(C,S);var M=function(e){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new v("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}};M.prototype.compare=function(e,t){var n=e,r=t,i=M.compare(n.x,r.x);if(0!==i)return i;var o=M.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:M.compare(n.z,r.z)},M.prototype.interfaces_=function(){return[k]},M.prototype.getClass=function(){return M},M.compare=function(e,t){return e<t?-1:e>t?1:b.isNaN(e)?b.isNaN(t)?0:-1:b.isNaN(t)?1:0};var T=function(){};T.prototype.create=function(){},T.prototype.interfaces_=function(){return[]},T.prototype.getClass=function(){return T};var E=function(){},P={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};E.prototype.interfaces_=function(){return[]},E.prototype.getClass=function(){return E},E.toLocationSymbol=function(e){switch(e){case E.EXTERIOR:return"e";case E.BOUNDARY:return"b";case E.INTERIOR:return"i";case E.NONE:return"-"}throw new v("Unknown location value: "+e)},P.INTERIOR.get=function(){return 0},P.BOUNDARY.get=function(){return 1},P.EXTERIOR.get=function(){return 2},P.NONE.get=function(){return-1},Object.defineProperties(E,P);var I=function(e,t){return e.interfaces_&&e.interfaces_().indexOf(t)>-1},O=function(){},L={LOG_10:{configurable:!0}};O.prototype.interfaces_=function(){return[]},O.prototype.getClass=function(){return O},O.log10=function(e){var t=Math.log(e);return b.isInfinite(t)||b.isNaN(t)?t:t/O.LOG_10},O.min=function(e,t,n,r){var i=e;return t<i&&(i=t),n<i&&(i=n),r<i&&(i=r),i},O.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1],n=arguments[2];return e<t?t:e>n?n:e}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},O.wrap=function(e,t){return e<0?t- -e%t:e%t},O.max=function(){if(3===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[0];return e>n&&(n=e),t>n&&(n=t),n}if(4===arguments.length){var r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[0];return r>a&&(a=r),i>a&&(a=i),o>a&&(a=o),a}},O.average=function(e,t){return(e+t)/2},L.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(O,L);var R=function(e){this.str=e};R.prototype.append=function(e){this.str+=e},R.prototype.setCharAt=function(e,t){this.str=this.str.substr(0,e)+t+this.str.substr(e+1)},R.prototype.toString=function(e){return this.str};var j=function(e){this.value=e};j.prototype.intValue=function(){return this.value},j.prototype.compareTo=function(e){return this.value<e?-1:this.value>e?1:0},j.isNaN=function(e){return Number.isNaN(e)};var D=function(){};D.isWhitespace=function(e){return e<=32&&e>=0||127===e},D.toUpperCase=function(e){return e.toUpperCase()};var A=function e(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}else"string"==typeof arguments[0]&&e.call(this,e.parse(arguments[0]));else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r,i)}},N={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};A.prototype.le=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<=e._lo},A.prototype.extractSignificantDigits=function(e,t){var n=this.abs(),r=A.magnitude(n._hi),i=A.TEN.pow(r);(n=n.divide(i)).gt(A.TEN)?(n=n.divide(A.TEN),r+=1):n.lt(A.ONE)&&(n=n.multiply(A.TEN),r-=1);for(var o=r+1,a=new R,s=A.MAX_PRINT_DIGITS-1,l=0;l<=s;l++){e&&l===o&&a.append(".");var c=Math.trunc(n._hi);if(c<0)break;var u=!1,d=0;c>9?(u=!0,d="9"):d="0"+c,a.append(d),n=n.subtract(A.valueOf(c)).multiply(A.TEN),u&&n.selfAdd(A.TEN);var p=!0,h=A.magnitude(n._hi);if(h<0&&Math.abs(h)>=s-l&&(p=!1),!p)break}return t[0]=r,a.toString()},A.prototype.sqr=function(){return this.multiply(this)},A.prototype.doubleValue=function(){return this._hi+this._lo},A.prototype.subtract=function(){if(arguments[0]instanceof A){var e=arguments[0];return this.add(e.negate())}if("number"==typeof arguments[0]){var t=arguments[0];return this.add(-t)}},A.prototype.equals=function(){if(1===arguments.length){var e=arguments[0];return this._hi===e._hi&&this._lo===e._lo}},A.prototype.isZero=function(){return 0===this._hi&&0===this._lo},A.prototype.selfSubtract=function(){if(arguments[0]instanceof A){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e._hi,-e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t,0)}},A.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},A.prototype.min=function(e){return this.le(e)?this:e},A.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof A){var e=arguments[0];return this.selfDivide(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfDivide(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,a=null,s=null,l=null,c=null,u=null,d=null;return l=this._hi/n,d=(i=(c=A.SPLIT*l)-(i=c-l))*(a=(d=A.SPLIT*n)-(a=d-n))-(u=l*n)+i*(s=n-a)+(o=l-i)*a+o*s,d=l+(c=(this._hi-u-d+this._lo-l*r)/n),this._hi=d,this._lo=l-d+c,this}},A.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},A.prototype.divide=function(){if(arguments[0]instanceof A){var e=arguments[0],t=null,n=null,r=null,i=null,o=null,a=null,s=null,l=null;return n=(o=this._hi/e._hi)-(t=(a=A.SPLIT*o)-(t=a-o)),l=t*(r=(l=A.SPLIT*e._hi)-(r=l-e._hi))-(s=o*e._hi)+t*(i=e._hi-r)+n*r+n*i,a=(this._hi-s-l+this._lo-o*e._lo)/e._hi,new A(l=o+a,o-l+a)}if("number"==typeof arguments[0]){var c=arguments[0];return b.isNaN(c)?A.createNaN():A.copy(this).selfDivide(c,0)}},A.prototype.ge=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>=e._lo},A.prototype.pow=function(e){if(0===e)return A.valueOf(1);var t=new A(this),n=A.valueOf(1),r=Math.abs(e);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(t),(r/=2)>0&&(t=t.sqr());else n=t;return e<0?n.reciprocal():n},A.prototype.ceil=function(){if(this.isNaN())return A.NaN;var e=Math.ceil(this._hi),t=0;return e===this._hi&&(t=Math.ceil(this._lo)),new A(e,t)},A.prototype.compareTo=function(e){var t=e;return this._hi<t._hi?-1:this._hi>t._hi?1:this._lo<t._lo?-1:this._lo>t._lo?1:0},A.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},A.prototype.setValue=function(){if(arguments[0]instanceof A){var e=arguments[0];return this.init(e),this}if("number"==typeof arguments[0]){var t=arguments[0];return this.init(t),this}},A.prototype.max=function(e){return this.ge(e)?this:e},A.prototype.sqrt=function(){if(this.isZero())return A.valueOf(0);if(this.isNegative())return A.NaN;var e=1/Math.sqrt(this._hi),t=this._hi*e,n=A.valueOf(t),r=this.subtract(n.sqr())._hi*(.5*e);return n.add(r)},A.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof A){var e=arguments[0];return this.selfAdd(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0],n=null,r=null,i=null,o=null,a=null,s=null;return o=(i=this._hi+t)-(a=i-this._hi),r=(s=(o=t-a+(this._hi-o))+this._lo)+(i-(n=i+s)),this._hi=n+r,this._lo=r+(n-this._hi),this}}else if(2===arguments.length){var l=arguments[0],c=arguments[1],u=null,d=null,p=null,h=null,f=null,m=null,g=null;h=this._hi+l,d=this._lo+c,f=h-(m=h-this._hi),p=d-(g=d-this._lo);var y=(u=h+(m=(f=l-m+(this._hi-f))+d))+(m=(p=c-g+(this._lo-p))+(m+(h-u))),v=m+(u-y);return this._hi=y,this._lo=v,this}},A.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof A){var e=arguments[0];return this.selfMultiply(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfMultiply(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,a=null,s=null,l=null,c=null;i=(l=A.SPLIT*this._hi)-this._hi,c=A.SPLIT*n,i=l-i,o=this._hi-i,a=c-n;var u=(l=this._hi*n)+(c=i*(a=c-a)-l+i*(s=n-a)+o*a+o*s+(this._hi*r+this._lo*n)),d=c+(i=l-u);return this._hi=u,this._lo=d,this}},A.prototype.selfSqr=function(){return this.selfMultiply(this)},A.prototype.floor=function(){if(this.isNaN())return A.NaN;var e=Math.floor(this._hi),t=0;return e===this._hi&&(t=Math.floor(this._lo)),new A(e,t)},A.prototype.negate=function(){return this.isNaN()?this:new A(-this._hi,-this._lo)},A.prototype.clone=function(){},A.prototype.multiply=function(){if(arguments[0]instanceof A){var e=arguments[0];return e.isNaN()?A.createNaN():A.copy(this).selfMultiply(e)}if("number"==typeof arguments[0]){var t=arguments[0];return b.isNaN(t)?A.createNaN():A.copy(this).selfMultiply(t,0)}},A.prototype.isNaN=function(){return b.isNaN(this._hi)},A.prototype.intValue=function(){return Math.trunc(this._hi)},A.prototype.toString=function(){var e=A.magnitude(this._hi);return e>=-3&&e<=20?this.toStandardNotation():this.toSciNotation()},A.prototype.toStandardNotation=function(){var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!0,t),r=t[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+A.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+A.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},A.prototype.reciprocal=function(){var e=null,t=null,n=null,r=null,i=null,o=null,a=null,s=null;t=(i=1/this._hi)-(e=(o=A.SPLIT*i)-(e=o-i)),n=(s=A.SPLIT*this._hi)-this._hi;var l=i+(o=(1-(a=i*this._hi)-(s=e*(n=s-n)-a+e*(r=this._hi-n)+t*n+t*r)-i*this._lo)/this._hi);return new A(l,i-l+o)},A.prototype.toSciNotation=function(){if(this.isZero())return A.SCI_NOT_ZERO;var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!1,t),r=A.SCI_NOT_EXPONENT_CHAR+t[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},A.prototype.abs=function(){return this.isNaN()?A.NaN:this.isNegative()?this.negate():new A(this)},A.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},A.prototype.lt=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<e._lo},A.prototype.add=function(){if(arguments[0]instanceof A){var e=arguments[0];return A.copy(this).selfAdd(e)}if("number"==typeof arguments[0]){var t=arguments[0];return A.copy(this).selfAdd(t)}},A.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this._hi=e,this._lo=0}else if(arguments[0]instanceof A){var t=arguments[0];this._hi=t._hi,this._lo=t._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},A.prototype.gt=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>e._lo},A.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},A.prototype.trunc=function(){return this.isNaN()?A.NaN:this.isPositive()?this.floor():this.ceil()},A.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},A.prototype.interfaces_=function(){return[t,w,x]},A.prototype.getClass=function(){return A},A.sqr=function(e){return A.valueOf(e).selfMultiply(e)},A.valueOf=function(){if("string"==typeof arguments[0]){var e=arguments[0];return A.parse(e)}if("number"==typeof arguments[0])return new A(arguments[0])},A.sqrt=function(e){return A.valueOf(e).sqrt()},A.parse=function(e){for(var t=0,n=e.length;D.isWhitespace(e.charAt(t));)t++;var r=!1;if(t<n){var i=e.charAt(t);"-"!==i&&"+"!==i||(t++,"-"===i&&(r=!0))}for(var o=new A,a=0,s=0,l=0;!(t>=n);){var c=e.charAt(t);if(t++,D.isDigit(c)){var u=c-"0";o.selfMultiply(A.TEN),o.selfAdd(u),a++}else{if("."!==c){if("e"===c||"E"===c){var d=e.substring(t);try{l=j.parseInt(d)}catch(t){throw t instanceof Error?new Error("Invalid exponent "+d+" in string "+e):t}break}throw new Error("Unexpected character '"+c+"' at position "+t+" in string "+e)}s=a}}var p=o,h=a-s-l;if(0===h)p=o;else if(h>0){var f=A.TEN.pow(h);p=o.divide(f)}else if(h<0){var m=A.TEN.pow(-h);p=o.multiply(m)}return r?p.negate():p},A.createNaN=function(){return new A(b.NaN,b.NaN)},A.copy=function(e){return new A(e)},A.magnitude=function(e){var t=Math.abs(e),n=Math.log(t)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=t&&(r+=1),r},A.stringOfChar=function(e,t){for(var n=new R,r=0;r<t;r++)n.append(e);return n.toString()},N.PI.get=function(){return new A(3.141592653589793,12246467991473532e-32)},N.TWO_PI.get=function(){return new A(6.283185307179586,24492935982947064e-32)},N.PI_2.get=function(){return new A(1.5707963267948966,6123233995736766e-32)},N.E.get=function(){return new A(2.718281828459045,14456468917292502e-32)},N.NaN.get=function(){return new A(b.NaN,b.NaN)},N.EPS.get=function(){return 123259516440783e-46},N.SPLIT.get=function(){return 134217729},N.MAX_PRINT_DIGITS.get=function(){return 32},N.TEN.get=function(){return A.valueOf(10)},N.ONE.get=function(){return A.valueOf(1)},N.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},N.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(A,N);var F=function(){},z={DP_SAFE_EPSILON:{configurable:!0}};F.prototype.interfaces_=function(){return[]},F.prototype.getClass=function(){return F},F.orientationIndex=function(e,t,n){var r=F.orientationIndexFilter(e,t,n);if(r<=1)return r;var i=A.valueOf(t.x).selfAdd(-e.x),o=A.valueOf(t.y).selfAdd(-e.y),a=A.valueOf(n.x).selfAdd(-t.x),s=A.valueOf(n.y).selfAdd(-t.y);return i.selfMultiply(s).selfSubtract(o.selfMultiply(a)).signum()},F.signOfDet2x2=function(e,t,n,r){return e.multiply(r).selfSubtract(t.multiply(n)).signum()},F.intersection=function(e,t,n,r){var i=A.valueOf(r.y).selfSubtract(n.y).selfMultiply(A.valueOf(t.x).selfSubtract(e.x)),o=A.valueOf(r.x).selfSubtract(n.x).selfMultiply(A.valueOf(t.y).selfSubtract(e.y)),a=i.subtract(o),s=A.valueOf(r.x).selfSubtract(n.x).selfMultiply(A.valueOf(e.y).selfSubtract(n.y)),l=A.valueOf(r.y).selfSubtract(n.y).selfMultiply(A.valueOf(e.x).selfSubtract(n.x)),c=s.subtract(l).selfDivide(a).doubleValue(),u=A.valueOf(e.x).selfAdd(A.valueOf(t.x).selfSubtract(e.x).selfMultiply(c)).doubleValue(),d=A.valueOf(t.x).selfSubtract(e.x).selfMultiply(A.valueOf(e.y).selfSubtract(n.y)),p=A.valueOf(t.y).selfSubtract(e.y).selfMultiply(A.valueOf(e.x).selfSubtract(n.x)),h=d.subtract(p).selfDivide(a).doubleValue(),f=A.valueOf(n.y).selfAdd(A.valueOf(r.y).selfSubtract(n.y).selfMultiply(h)).doubleValue();return new C(u,f)},F.orientationIndexFilter=function(e,t,n){var r=null,i=(e.x-n.x)*(t.y-n.y),o=(e.y-n.y)*(t.x-n.x),a=i-o;if(i>0){if(o<=0)return F.signum(a);r=i+o}else{if(!(i<0))return F.signum(a);if(o>=0)return F.signum(a);r=-i-o}var s=F.DP_SAFE_EPSILON*r;return a>=s||-a>=s?F.signum(a):2},F.signum=function(e){return e>0?1:e<0?-1:0},z.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(F,z);var B=function(){},U={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};U.X.get=function(){return 0},U.Y.get=function(){return 1},U.Z.get=function(){return 2},U.M.get=function(){return 3},B.prototype.setOrdinate=function(e,t,n){},B.prototype.size=function(){},B.prototype.getOrdinate=function(e,t){},B.prototype.getCoordinate=function(){},B.prototype.getCoordinateCopy=function(e){},B.prototype.getDimension=function(){},B.prototype.getX=function(e){},B.prototype.clone=function(){},B.prototype.expandEnvelope=function(e){},B.prototype.copy=function(){},B.prototype.getY=function(e){},B.prototype.toCoordinateArray=function(){},B.prototype.interfaces_=function(){return[x]},B.prototype.getClass=function(){return B},Object.defineProperties(B,U);var $=function(){},V=function(e){function t(){e.call(this,"Projective point not representable on the Cartesian plane.")}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}($),q=function(){};q.arraycopy=function(e,t,n,r,i){for(var o=0,a=t;a<t+i;a++)n[r+o]=e[a],o++},q.getProperty=function(e){return{"line.separator":"\n"}[e]};var Z=function e(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof e&&arguments[1]instanceof e){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof C&&arguments[1]instanceof C){var a=arguments[0],s=arguments[1];this.x=a.y-s.y,this.y=s.x-a.x,this.w=a.x*s.y-s.x*a.y}}else if(3===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2];this.x=l,this.y=c,this.w=u}else if(4===arguments.length){var d=arguments[0],p=arguments[1],h=arguments[2],f=arguments[3],m=d.y-p.y,g=p.x-d.x,y=d.x*p.y-p.x*d.y,v=h.y-f.y,b=f.x-h.x,_=h.x*f.y-f.x*h.y;this.x=g*_-b*y,this.y=v*y-m*_,this.w=m*b-v*g}};Z.prototype.getY=function(){var e=this.y/this.w;if(b.isNaN(e)||b.isInfinite(e))throw new V;return e},Z.prototype.getX=function(){var e=this.x/this.w;if(b.isNaN(e)||b.isInfinite(e))throw new V;return e},Z.prototype.getCoordinate=function(){var e=new C;return e.x=this.getX(),e.y=this.getY(),e},Z.prototype.interfaces_=function(){return[]},Z.prototype.getClass=function(){return Z},Z.intersection=function(e,t,n,r){var i=e.y-t.y,o=t.x-e.x,a=e.x*t.y-t.x*e.y,s=n.y-r.y,l=r.x-n.x,c=n.x*r.y-r.x*n.y,u=i*l-s*o,d=(o*c-l*a)/u,p=(s*a-i*c)/u;if(b.isNaN(d)||b.isInfinite(d)||b.isNaN(p)||b.isInfinite(p))throw new V;return new C(d,p)};var H=function e(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof C){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3];this.init(o,a,s,l)}},G={serialVersionUID:{configurable:!0}};H.prototype.getArea=function(){return this.getWidth()*this.getHeight()},H.prototype.equals=function(e){if(!(e instanceof H))return!1;var t=e;return this.isNull()?t.isNull():this._maxx===t.getMaxX()&&this._maxy===t.getMaxY()&&this._minx===t.getMinX()&&this._miny===t.getMinY()},H.prototype.intersection=function(e){if(this.isNull()||e.isNull()||!this.intersects(e))return new H;var t=this._minx>e._minx?this._minx:e._minx,n=this._miny>e._miny?this._miny:e._miny,r=this._maxx<e._maxx?this._maxx:e._maxx,i=this._maxy<e._maxy?this._maxy:e._maxy;return new H(t,r,n,i)},H.prototype.isNull=function(){return this._maxx<this._minx},H.prototype.getMaxX=function(){return this._maxx},H.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof C){var e=arguments[0];return this.covers(e.x,e.y)}if(arguments[0]instanceof H){var t=arguments[0];return!this.isNull()&&!t.isNull()&&t.getMinX()>=this._minx&&t.getMaxX()<=this._maxx&&t.getMinY()>=this._miny&&t.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy}},H.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof H){var e=arguments[0];return!this.isNull()&&!e.isNull()&&!(e._minx>this._maxx||e._maxx<this._minx||e._miny>this._maxy||e._maxy<this._miny)}if(arguments[0]instanceof C){var t=arguments[0];return this.intersects(t.x,t.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},H.prototype.getMinY=function(){return this._miny},H.prototype.getMinX=function(){return this._minx},H.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof C){var e=arguments[0];this.expandToInclude(e.x,e.y)}else if(arguments[0]instanceof H){var t=arguments[0];if(t.isNull())return null;this.isNull()?(this._minx=t.getMinX(),this._maxx=t.getMaxX(),this._miny=t.getMinY(),this._maxy=t.getMaxY()):(t._minx<this._minx&&(this._minx=t._minx),t._maxx>this._maxx&&(this._maxx=t._maxx),t._miny<this._miny&&(this._miny=t._miny),t._maxy>this._maxy&&(this._maxy=t._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},H.prototype.minExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e<t?e:t},H.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},H.prototype.compareTo=function(e){var t=e;return this.isNull()?t.isNull()?0:-1:t.isNull()?1:this._minx<t._minx?-1:this._minx>t._minx?1:this._miny<t._miny?-1:this._miny>t._miny?1:this._maxx<t._maxx?-1:this._maxx>t._maxx?1:this._maxy<t._maxy?-1:this._maxy>t._maxy?1:0},H.prototype.translate=function(e,t){if(this.isNull())return null;this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+t,this.getMaxY()+t)},H.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},H.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},H.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},H.prototype.maxExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e>t?e:t},H.prototype.expandBy=function(){if(1===arguments.length){var e=arguments[0];this.expandBy(e,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},H.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof H){var e=arguments[0];return this.covers(e)}if(arguments[0]instanceof C){var t=arguments[0];return this.covers(t)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},H.prototype.centre=function(){return this.isNull()?null:new C((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},H.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof C){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof H){var t=arguments[0];this._minx=t._minx,this._maxx=t._maxx,this._miny=t._miny,this._maxy=t._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),a<s?(this._miny=a,this._maxy=s):(this._miny=s,this._maxy=a)}},H.prototype.getMaxY=function(){return this._maxy},H.prototype.distance=function(e){if(this.intersects(e))return 0;var t=0;this._maxx<e._minx?t=e._minx-this._maxx:this._minx>e._maxx&&(t=this._minx-e._maxx);var n=0;return this._maxy<e._miny?n=e._miny-this._maxy:this._miny>e._maxy&&(n=this._miny-e._maxy),0===t?n:0===n?t:Math.sqrt(t*t+n*n)},H.prototype.hashCode=function(){var e=17;return 37*(e=37*(e=37*(e=37*e+C.hashCode(this._minx))+C.hashCode(this._maxx))+C.hashCode(this._miny))+C.hashCode(this._maxy)},H.prototype.interfaces_=function(){return[w,t]},H.prototype.getClass=function(){return H},H.intersects=function(){if(3===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2];return n.x>=(e.x<t.x?e.x:t.x)&&n.x<=(e.x>t.x?e.x:t.x)&&n.y>=(e.y<t.y?e.y:t.y)&&n.y<=(e.y>t.y?e.y:t.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),l=Math.max(o.x,a.x),c=Math.min(r.x,i.x),u=Math.max(r.x,i.x);return!(c>l)&&!(u<s)&&(s=Math.min(o.y,a.y),l=Math.max(o.y,a.y),c=Math.min(r.y,i.y),u=Math.max(r.y,i.y),!(c>l)&&!(u<s))}},G.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(H,G);var W={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},Y=function(e){this.geometryFactory=e||new yt};Y.prototype.read=function(e){var t,n,r;e=e.replace(/[\n\r]/g," ");var i=W.typeStr.exec(e);if(-1!==e.search("EMPTY")&&((i=W.emptyTypeStr.exec(e))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],X[n]&&(t=X[n].apply(this,[r]))),void 0===t)throw new Error("Could not parse WKT "+e);return t},Y.prototype.write=function(e){return this.extractGeometry(e)},Y.prototype.extractGeometry=function(e){var t=e.getGeometryType().toLowerCase();if(!K[t])return null;var n=t.toUpperCase();return e.isEmpty()?n+" EMPTY":n+"("+K[t].apply(this,[e])+")"};var K={coordinate:function(e){return e.x+" "+e.y},point:function(e){return K.coordinate.call(this,e._coordinates._coordinates[0])},multipoint:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+K.point.apply(this,[e._geometries[n]])+")");return t.join(",")},linestring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(K.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},linearring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(K.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},multilinestring:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+K.linestring.apply(this,[e._geometries[n]])+")");return t.join(",")},polygon:function(e){var t=[];t.push("("+K.linestring.apply(this,[e._shell])+")");for(var n=0,r=e._holes.length;n<r;++n)t.push("("+K.linestring.apply(this,[e._holes[n]])+")");return t.join(",")},multipolygon:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+K.polygon.apply(this,[e._geometries[n]])+")");return t.join(",")},geometrycollection:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push(this.extractGeometry(e._geometries[n]));return t.join(",")}},X={point:function(e){if(void 0===e)return this.geometryFactory.createPoint();var t=e.trim().split(W.spaces);return this.geometryFactory.createPoint(new C(Number.parseFloat(t[0]),Number.parseFloat(t[1])))},multipoint:function(e){if(void 0===e)return this.geometryFactory.createMultiPoint();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(W.trimParens,"$1"),r.push(X.point.apply(this,[t]));return this.geometryFactory.createMultiPoint(r)},linestring:function(e){if(void 0===e)return this.geometryFactory.createLineString();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split(W.spaces),r.push(new C(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLineString(r)},linearring:function(e){if(void 0===e)return this.geometryFactory.createLinearRing();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split(W.spaces),r.push(new C(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(e){if(void 0===e)return this.geometryFactory.createMultiLineString();for(var t,n=e.trim().split(W.parenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(W.trimParens,"$1"),r.push(X.linestring.apply(this,[t]));return this.geometryFactory.createMultiLineString(r)},polygon:function(e){if(void 0===e)return this.geometryFactory.createPolygon();for(var t,n,r,i,o=e.trim().split(W.parenComma),a=[],s=0,l=o.length;s<l;++s)t=o[s].replace(W.trimParens,"$1"),n=X.linestring.apply(this,[t]),r=this.geometryFactory.createLinearRing(n._points),0===s?i=r:a.push(r);return this.geometryFactory.createPolygon(i,a)},multipolygon:function(e){if(void 0===e)return this.geometryFactory.createMultiPolygon();for(var t,n=e.trim().split(W.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(W.trimParens,"$1"),r.push(X.polygon.apply(this,[t]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(e){if(void 0===e)return this.geometryFactory.createGeometryCollection();for(var t=(e=e.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=t.length;r<i;++r)n.push(this.read(t[r]));return this.geometryFactory.createGeometryCollection(n)}},J=function(e){this.parser=new Y(e)};J.prototype.write=function(e){return this.parser.write(e)},J.toLineString=function(e,t){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+e.x+" "+e.y+", "+t.x+" "+t.y+" )"};var Q=function(e){function t(t){e.call(this,t),this.name="RuntimeException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ee=function(e){function t(){if(e.call(this),0===arguments.length)e.call(this);else if(1===arguments.length){var t=arguments[0];e.call(this,t)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Q),te=function(){};te.prototype.interfaces_=function(){return[]},te.prototype.getClass=function(){return te},te.shouldNeverReachHere=function(){if(0===arguments.length)te.shouldNeverReachHere(null);else if(1===arguments.length){var e=arguments[0];throw new ee("Should never reach here"+(null!==e?": "+e:""))}},te.isTrue=function(){var e,t;if(1===arguments.length)e=arguments[0],te.isTrue(e,null);else if(2===arguments.length&&(t=arguments[1],!(e=arguments[0])))throw null===t?new ee:new ee(t)},te.equals=function(){var e,t,n;if(2===arguments.length)e=arguments[0],t=arguments[1],te.equals(e,t,null);else if(3===arguments.length&&(e=arguments[0],n=arguments[2],!(t=arguments[1]).equals(e)))throw new ee("Expected "+e+" but encountered "+t+(null!==n?": "+n:""))};var ne=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new C,this._intPt[1]=new C,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},re={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};ne.prototype.getIndexAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intLineIndex[e][t]},ne.prototype.getTopologySummary=function(){var e=new R;return this.isEndPoint()&&e.append(" endpoint"),this._isProper&&e.append(" proper"),this.isCollinear()&&e.append(" collinear"),e.toString()},ne.prototype.computeIntersection=function(e,t,n,r){this._inputLines[0][0]=e,this._inputLines[0][1]=t,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(e,t,n,r)},ne.prototype.getIntersectionNum=function(){return this._result},ne.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var e=arguments[0];this.getEdgeDistance(e,0)>this.getEdgeDistance(e,1)?(this._intLineIndex[e][0]=0,this._intLineIndex[e][1]=1):(this._intLineIndex[e][0]=1,this._intLineIndex[e][1]=0)}},ne.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},ne.prototype.setPrecisionModel=function(e){this._precisionModel=e},ne.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var e=arguments[0],t=0;t<this._result;t++)if(!this._intPt[t].equals2D(this._inputLines[e][0])&&!this._intPt[t].equals2D(this._inputLines[e][1]))return!0;return!1}},ne.prototype.getIntersection=function(e){return this._intPt[e]},ne.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},ne.prototype.hasIntersection=function(){return this._result!==ne.NO_INTERSECTION},ne.prototype.getEdgeDistance=function(e,t){return ne.computeEdgeDistance(this._intPt[t],this._inputLines[e][0],this._inputLines[e][1])},ne.prototype.isCollinear=function(){return this._result===ne.COLLINEAR_INTERSECTION},ne.prototype.toString=function(){return J.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+J.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},ne.prototype.getEndpoint=function(e,t){return this._inputLines[e][t]},ne.prototype.isIntersection=function(e){for(var t=0;t<this._result;t++)if(this._intPt[t].equals2D(e))return!0;return!1},ne.prototype.getIntersectionAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[e][t]]},ne.prototype.interfaces_=function(){return[]},ne.prototype.getClass=function(){return ne},ne.computeEdgeDistance=function(e,t,n){var r=Math.abs(n.x-t.x),i=Math.abs(n.y-t.y),o=-1;if(e.equals(t))o=0;else if(e.equals(n))o=r>i?r:i;else{var a=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);0!==(o=r>i?a:s)||e.equals(t)||(o=Math.max(a,s))}return te.isTrue(!(0===o&&!e.equals(t)),"Bad distance calculation"),o},ne.nonRobustComputeEdgeDistance=function(e,t,n){var r=e.x-t.x,i=e.y-t.y,o=Math.sqrt(r*r+i*i);return te.isTrue(!(0===o&&!e.equals(t)),"Invalid distance calculation"),o},re.DONT_INTERSECT.get=function(){return 0},re.DO_INTERSECT.get=function(){return 1},re.COLLINEAR.get=function(){return 2},re.NO_INTERSECTION.get=function(){return 0},re.POINT_INTERSECTION.get=function(){return 1},re.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(ne,re);var ie=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isInSegmentEnvelopes=function(e){var t=new H(this._inputLines[0][0],this._inputLines[0][1]),n=new H(this._inputLines[1][0],this._inputLines[1][1]);return t.contains(e)&&n.contains(e)},t.prototype.computeIntersection=function(){if(3!==arguments.length)return e.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,H.intersects(n,r,t)&&0===se.orientationIndex(n,r,t)&&0===se.orientationIndex(r,n,t))return this._isProper=!0,(t.equals(n)||t.equals(r))&&(this._isProper=!1),this._result=e.POINT_INTERSECTION,null;this._result=e.NO_INTERSECTION},t.prototype.normalizeToMinimum=function(e,t,n,r,i){i.x=this.smallestInAbsValue(e.x,t.x,n.x,r.x),i.y=this.smallestInAbsValue(e.y,t.y,n.y,r.y),e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.safeHCoordinateIntersection=function(e,n,r,i){var o=null;try{o=Z.intersection(e,n,r,i)}catch(a){if(!(a instanceof V))throw a;o=t.nearestEndpoint(e,n,r,i)}return o},t.prototype.intersection=function(e,n,r,i){var o=this.intersectionWithNormalization(e,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new C(t.nearestEndpoint(e,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},t.prototype.smallestInAbsValue=function(e,t,n,r){var i=e,o=Math.abs(i);return Math.abs(t)<o&&(i=t,o=Math.abs(t)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},t.prototype.checkDD=function(e,t,n,r,i){var o=F.intersection(e,t,n,r),a=this.isInSegmentEnvelopes(o);q.out.println("DD in env = "+a+"  --------------------- "+o),i.distance(o)>1e-4&&q.out.println("Distance = "+i.distance(o))},t.prototype.intersectionWithNormalization=function(e,t,n,r){var i=new C(e),o=new C(t),a=new C(n),s=new C(r),l=new C;this.normalizeToEnvCentre(i,o,a,s,l);var c=this.safeHCoordinateIntersection(i,o,a,s);return c.x+=l.x,c.y+=l.y,c},t.prototype.computeCollinearIntersection=function(t,n,r,i){var o=H.intersects(t,n,r),a=H.intersects(t,n,i),s=H.intersects(r,i,t),l=H.intersects(r,i,n);return o&&a?(this._intPt[0]=r,this._intPt[1]=i,e.COLLINEAR_INTERSECTION):s&&l?(this._intPt[0]=t,this._intPt[1]=n,e.COLLINEAR_INTERSECTION):o&&s?(this._intPt[0]=r,this._intPt[1]=t,!r.equals(t)||a||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):o&&l?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||a||s?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):a&&s?(this._intPt[0]=i,this._intPt[1]=t,!i.equals(t)||o||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):a&&l?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||s?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):e.NO_INTERSECTION},t.prototype.normalizeToEnvCentre=function(e,t,n,r,i){var o=e.x<t.x?e.x:t.x,a=e.y<t.y?e.y:t.y,s=e.x>t.x?e.x:t.x,l=e.y>t.y?e.y:t.y,c=n.x<r.x?n.x:r.x,u=n.y<r.y?n.y:r.y,d=n.x>r.x?n.x:r.x,p=n.y>r.y?n.y:r.y,h=((o>c?o:c)+(s<d?s:d))/2,f=((a>u?a:u)+(l<p?l:p))/2;i.x=h,i.y=f,e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.computeIntersect=function(t,n,r,i){if(this._isProper=!1,!H.intersects(t,n,r,i))return e.NO_INTERSECTION;var o=se.orientationIndex(t,n,r),a=se.orientationIndex(t,n,i);if(o>0&&a>0||o<0&&a<0)return e.NO_INTERSECTION;var s=se.orientationIndex(r,i,t),l=se.orientationIndex(r,i,n);return s>0&&l>0||s<0&&l<0?e.NO_INTERSECTION:0===o&&0===a&&0===s&&0===l?this.computeCollinearIntersection(t,n,r,i):(0===o||0===a||0===s||0===l?(this._isProper=!1,t.equals2D(r)||t.equals2D(i)?this._intPt[0]=t:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new C(r):0===a?this._intPt[0]=new C(i):0===s?this._intPt[0]=new C(t):0===l&&(this._intPt[0]=new C(n))):(this._isProper=!0,this._intPt[0]=this.intersection(t,n,r,i)),e.POINT_INTERSECTION)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.nearestEndpoint=function(e,t,n,r){var i=e,o=se.distancePointLine(e,n,r),a=se.distancePointLine(t,n,r);return a<o&&(o=a,i=t),(a=se.distancePointLine(n,e,t))<o&&(o=a,i=n),(a=se.distancePointLine(r,e,t))<o&&(o=a,i=r),i},t}(ne),oe=function(){};oe.prototype.interfaces_=function(){return[]},oe.prototype.getClass=function(){return oe},oe.orientationIndex=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=n.x-t.x,a=n.y-t.y;return oe.signOfDet2x2(r,i,o,a)},oe.signOfDet2x2=function(e,t,n,r){var i=null,o=null,a=null;if(i=1,0===e||0===r)return 0===t||0===n?0:t>0?n>0?-i:i:n>0?i:-i;if(0===t||0===n)return r>0?e>0?i:-i:e>0?-i:i;if(t>0?r>0?t<=r||(i=-i,o=e,e=n,n=o,o=t,t=r,r=o):t<=-r?(i=-i,n=-n,r=-r):(o=e,e=-n,n=o,o=t,t=-r,r=o):r>0?-t<=r?(i=-i,e=-e,t=-t):(o=-e,e=n,n=o,o=-t,t=r,r=o):t>=r?(e=-e,t=-t,n=-n,r=-r):(i=-i,o=-e,e=-n,n=o,o=-t,t=-r,r=o),e>0){if(!(n>0))return i;if(!(e<=n))return i}else{if(n>0)return-i;if(!(e>=n))return-i;i=-i,e=-e,n=-n}for(;;){if((r-=(a=Math.floor(n/e))*t)<0)return-i;if(r>t)return i;if(e>(n-=a*e)+n){if(t<r+r)return i}else{if(t>r+r)return-i;n=e-n,r=t-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if((t-=(a=Math.floor(e/n))*r)<0)return i;if(t>r)return-i;if(n>(e-=a*n)+e){if(r<t+t)return-i}else{if(r>t+t)return i;e=n-e,t=r-t,i=-i}if(0===t)return 0===e?0:i;if(0===e)return-i}};var ae=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var e=arguments[0];this._p=e};ae.prototype.countSegment=function(e,t){if(e.x<this._p.x&&t.x<this._p.x)return null;if(this._p.x===t.x&&this._p.y===t.y)return this._isPointOnSegment=!0,null;if(e.y===this._p.y&&t.y===this._p.y){var n=e.x,r=t.x;return n>r&&(n=t.x,r=e.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(e.y>this._p.y&&t.y<=this._p.y||t.y>this._p.y&&e.y<=this._p.y){var i=e.x-this._p.x,o=e.y-this._p.y,a=t.x-this._p.x,s=t.y-this._p.y,l=oe.signOfDet2x2(i,o,a,s);if(0===l)return this._isPointOnSegment=!0,null;s<o&&(l=-l),l>0&&this._crossingCount++}},ae.prototype.isPointInPolygon=function(){return this.getLocation()!==E.EXTERIOR},ae.prototype.getLocation=function(){return this._isPointOnSegment?E.BOUNDARY:this._crossingCount%2==1?E.INTERIOR:E.EXTERIOR},ae.prototype.isOnSegment=function(){return this._isPointOnSegment},ae.prototype.interfaces_=function(){return[]},ae.prototype.getClass=function(){return ae},ae.locatePointInRing=function(){if(arguments[0]instanceof C&&I(arguments[1],B)){for(var e=arguments[1],t=new ae(arguments[0]),n=new C,r=new C,i=1;i<e.size();i++)if(e.getCoordinate(i,n),e.getCoordinate(i-1,r),t.countSegment(n,r),t.isOnSegment())return t.getLocation();return t.getLocation()}if(arguments[0]instanceof C&&arguments[1]instanceof Array){for(var o=arguments[1],a=new ae(arguments[0]),s=1;s<o.length;s++){var l=o[s],c=o[s-1];if(a.countSegment(l,c),a.isOnSegment())return a.getLocation()}return a.getLocation()}};var se=function(){},le={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};se.prototype.interfaces_=function(){return[]},se.prototype.getClass=function(){return se},se.orientationIndex=function(e,t,n){return F.orientationIndex(e,t,n)},se.signedArea=function(){if(arguments[0]instanceof Array){var e=arguments[0];if(e.length<3)return 0;for(var t=0,n=e[0].x,r=1;r<e.length-1;r++){var i=e[r].x-n,o=e[r+1].y;t+=i*(e[r-1].y-o)}return t/2}if(I(arguments[0],B)){var a=arguments[0],s=a.size();if(s<3)return 0;var l=new C,c=new C,u=new C;a.getCoordinate(0,c),a.getCoordinate(1,u);var d=c.x;u.x-=d;for(var p=0,h=1;h<s-1;h++)l.y=c.y,c.x=u.x,c.y=u.y,a.getCoordinate(h+1,u),u.x-=d,p+=c.x*(l.y-u.y);return p/2}},se.distanceLineLine=function(e,t,n,r){if(e.equals(t))return se.distancePointLine(e,n,r);if(n.equals(r))return se.distancePointLine(r,e,t);var i=!1;if(H.intersects(e,t,n,r)){var o=(t.x-e.x)*(r.y-n.y)-(t.y-e.y)*(r.x-n.x);if(0===o)i=!0;else{var a=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),s=((e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y))/o,l=a/o;(l<0||l>1||s<0||s>1)&&(i=!0)}}else i=!0;return i?O.min(se.distancePointLine(e,n,r),se.distancePointLine(t,n,r),se.distancePointLine(n,e,t),se.distancePointLine(r,e,t)):0},se.isPointInRing=function(e,t){return se.locatePointInRing(e,t)!==E.EXTERIOR},se.computeLength=function(e){var t=e.size();if(t<=1)return 0;var n=0,r=new C;e.getCoordinate(0,r);for(var i=r.x,o=r.y,a=1;a<t;a++){e.getCoordinate(a,r);var s=r.x,l=r.y,c=s-i,u=l-o;n+=Math.sqrt(c*c+u*u),i=s,o=l}return n},se.isCCW=function(e){var t=e.length-1;if(t<3)throw new v("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=e[0],r=0,i=1;i<=t;i++){var o=e[i];o.y>n.y&&(n=o,r=i)}var a=r;do{(a-=1)<0&&(a=t)}while(e[a].equals2D(n)&&a!==r);var s=r;do{s=(s+1)%t}while(e[s].equals2D(n)&&s!==r);var l=e[a],c=e[s];if(l.equals2D(n)||c.equals2D(n)||l.equals2D(c))return!1;var u=se.computeOrientation(l,n,c);return 0===u?l.x>c.x:u>0},se.locatePointInRing=function(e,t){return ae.locatePointInRing(e,t)},se.distancePointLinePerpendicular=function(e,t,n){var r=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y),i=((t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y))/r;return Math.abs(i)*Math.sqrt(r)},se.computeOrientation=function(e,t,n){return se.orientationIndex(e,t,n)},se.distancePointLine=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(0===t.length)throw new v("Line array must contain at least one vertex");for(var n=e.distance(t[0]),r=0;r<t.length-1;r++){var i=se.distancePointLine(e,t[r],t[r+1]);i<n&&(n=i)}return n}if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];if(a.x===s.x&&a.y===s.y)return o.distance(a);var l=(s.x-a.x)*(s.x-a.x)+(s.y-a.y)*(s.y-a.y),c=((o.x-a.x)*(s.x-a.x)+(o.y-a.y)*(s.y-a.y))/l;if(c<=0)return o.distance(a);if(c>=1)return o.distance(s);var u=((a.y-o.y)*(s.x-a.x)-(a.x-o.x)*(s.y-a.y))/l;return Math.abs(u)*Math.sqrt(l)}},se.isOnLine=function(e,t){for(var n=new ie,r=1;r<t.length;r++){var i=t[r-1],o=t[r];if(n.computeIntersection(e,i,o),n.hasIntersection())return!0}return!1},le.CLOCKWISE.get=function(){return-1},le.RIGHT.get=function(){return se.CLOCKWISE},le.COUNTERCLOCKWISE.get=function(){return 1},le.LEFT.get=function(){return se.COUNTERCLOCKWISE},le.COLLINEAR.get=function(){return 0},le.STRAIGHT.get=function(){return se.COLLINEAR},Object.defineProperties(se,le);var ce=function(){};ce.prototype.filter=function(e){},ce.prototype.interfaces_=function(){return[]},ce.prototype.getClass=function(){return ce};var ue=function(){var e=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=e,this._SRID=e.getSRID()},de={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};ue.prototype.isGeometryCollection=function(){return this.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION},ue.prototype.getFactory=function(){return this._factory},ue.prototype.getGeometryN=function(e){return this},ue.prototype.getArea=function(){return 0},ue.prototype.isRectangle=function(){return!1},ue.prototype.equals=function(){if(arguments[0]instanceof ue){var e=arguments[0];return null!==e&&this.equalsTopo(e)}if(arguments[0]instanceof Object){var t=arguments[0];if(!(t instanceof ue))return!1;var n=t;return this.equalsExact(n)}},ue.prototype.equalsExact=function(e){return this===e||this.equalsExact(e,0)},ue.prototype.geometryChanged=function(){this.apply(ue.geometryChangedFilter)},ue.prototype.geometryChangedAction=function(){this._envelope=null},ue.prototype.equalsNorm=function(e){return null!==e&&this.norm().equalsExact(e.norm())},ue.prototype.getLength=function(){return 0},ue.prototype.getNumGeometries=function(){return 1},ue.prototype.compareTo=function(){if(1===arguments.length){var e=arguments[0],t=e;return this.getSortIndex()!==t.getSortIndex()?this.getSortIndex()-t.getSortIndex():this.isEmpty()&&t.isEmpty()?0:this.isEmpty()?-1:t.isEmpty()?1:this.compareToSameClass(e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},ue.prototype.getUserData=function(){return this._userData},ue.prototype.getSRID=function(){return this._SRID},ue.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},ue.prototype.checkNotGeometryCollection=function(e){if(e.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION)throw new v("This method does not support GeometryCollection arguments")},ue.prototype.equal=function(e,t,n){return 0===n?e.equals(t):e.distance(t)<=n},ue.prototype.norm=function(){var e=this.copy();return e.normalize(),e},ue.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},ue.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new H(this._envelope)},ue.prototype.setSRID=function(e){this._SRID=e},ue.prototype.setUserData=function(e){this._userData=e},ue.prototype.compare=function(e,t){for(var n=e.iterator(),r=t.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),a=i.compareTo(o);if(0!==a)return a}return n.hasNext()?1:r.hasNext()?-1:0},ue.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},ue.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===ue.SORTINDEX_MULTIPOINT||this.getSortIndex()===ue.SORTINDEX_MULTILINESTRING||this.getSortIndex()===ue.SORTINDEX_MULTIPOLYGON},ue.prototype.interfaces_=function(){return[x,w,t]},ue.prototype.getClass=function(){return ue},ue.hasNonEmptyElements=function(e){for(var t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},ue.hasNullElements=function(e){for(var t=0;t<e.length;t++)if(null===e[t])return!0;return!1},de.serialVersionUID.get=function(){return 0x799ea46522854c00},de.SORTINDEX_POINT.get=function(){return 0},de.SORTINDEX_MULTIPOINT.get=function(){return 1},de.SORTINDEX_LINESTRING.get=function(){return 2},de.SORTINDEX_LINEARRING.get=function(){return 3},de.SORTINDEX_MULTILINESTRING.get=function(){return 4},de.SORTINDEX_POLYGON.get=function(){return 5},de.SORTINDEX_MULTIPOLYGON.get=function(){return 6},de.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},de.geometryChangedFilter.get=function(){return pe},Object.defineProperties(ue,de);var pe=function(){};pe.interfaces_=function(){return[ce]},pe.filter=function(e){e.geometryChangedAction()};var he=function(){};he.prototype.filter=function(e){},he.prototype.interfaces_=function(){return[]},he.prototype.getClass=function(){return he};var fe=function(){},me={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};fe.prototype.isInBoundary=function(e){},fe.prototype.interfaces_=function(){return[]},fe.prototype.getClass=function(){return fe},me.Mod2BoundaryNodeRule.get=function(){return ge},me.EndPointBoundaryNodeRule.get=function(){return ye},me.MultiValentEndPointBoundaryNodeRule.get=function(){return ve},me.MonoValentEndPointBoundaryNodeRule.get=function(){return be},me.MOD2_BOUNDARY_RULE.get=function(){return new ge},me.ENDPOINT_BOUNDARY_RULE.get=function(){return new ye},me.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new ve},me.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new be},me.OGC_SFS_BOUNDARY_RULE.get=function(){return fe.MOD2_BOUNDARY_RULE},Object.defineProperties(fe,me);var ge=function(){};ge.prototype.isInBoundary=function(e){return e%2==1},ge.prototype.interfaces_=function(){return[fe]},ge.prototype.getClass=function(){return ge};var ye=function(){};ye.prototype.isInBoundary=function(e){return e>0},ye.prototype.interfaces_=function(){return[fe]},ye.prototype.getClass=function(){return ye};var ve=function(){};ve.prototype.isInBoundary=function(e){return e>1},ve.prototype.interfaces_=function(){return[fe]},ve.prototype.getClass=function(){return ve};var be=function(){};be.prototype.isInBoundary=function(e){return 1===e},be.prototype.interfaces_=function(){return[fe]},be.prototype.getClass=function(){return be};var _e=function(){};_e.prototype.add=function(){},_e.prototype.addAll=function(){},_e.prototype.isEmpty=function(){},_e.prototype.iterator=function(){},_e.prototype.size=function(){},_e.prototype.toArray=function(){},_e.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var we=function(){};we.prototype.hasNext=function(){},we.prototype.next=function(){},we.prototype.remove=function(){};var xe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(){},t.prototype.set=function(){},t.prototype.isEmpty=function(){},t}(_e);(r.prototype=new Error).name="NoSuchElementException";var ke=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof _e&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.ensureCapacity=function(){},t.prototype.interfaces_=function(){return[e,_e]},t.prototype.add=function(e){return 1===arguments.length?this.array_.push(e):this.array_.splice(arguments[0],arguments[1]),!0},t.prototype.clear=function(){this.array_=[]},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.set=function(e,t){var n=this.array_[e];return this.array_[e]=t,n},t.prototype.iterator=function(){return new Ce(this)},t.prototype.get=function(e){if(e<0||e>=this.size())throw new n;return this.array_[e]},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.size=function(){return this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.remove=function(e){for(var t=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===e){this.array_.splice(n,1),t=!0;break}return t},t}(xe),Ce=function(e){function t(t){e.call(this),this.arrayList_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new r;return this.arrayList_.get(this.position_++)},t.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},t.prototype.set=function(e){return this.arrayList_.set(this.position_-1,e)},t.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},t}(we),Se=function(e){function t(){if(e.call(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},t.prototype.getCoordinate=function(e){return this.get(e)},t.prototype.addAll=function(){if(2===arguments.length){for(var t=arguments[1],n=!1,r=arguments[0].iterator();r.hasNext();)this.add(r.next(),t),n=!0;return n}return e.prototype.addAll.apply(this,arguments)},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=0;n<this.size();n++)t.add(n,this.get(n).copy());return t},t.prototype.toCoordinateArray=function(){return this.toArray(t.coordArrayType)},t.prototype.add=function(){if(1===arguments.length){var t=arguments[0];e.prototype.add.call(this,t)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],r=arguments[1];return this.add(n,r,!0),!0}if(arguments[0]instanceof C&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;e.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];return this.add(o,a),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var s=arguments[0],l=arguments[1];if(arguments[2])for(var c=0;c<s.length;c++)this.add(s[c],l);else for(var u=s.length-1;u>=0;u--)this.add(s[u],l);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof C){var d=arguments[0],p=arguments[1];if(!arguments[2]){var h=this.size();if(h>0){if(d>0&&this.get(d-1).equals2D(p))return null;if(d<h&&this.get(d).equals2D(p))return null}}e.prototype.add.call(this,d,p)}}else if(4===arguments.length){var f=arguments[0],m=arguments[1],g=arguments[2],y=arguments[3],v=1;g>y&&(v=-1);for(var b=g;b!==y;b+=v)this.add(f[b],m);return!0}},t.prototype.closeRing=function(){this.size()>0&&this.add(new C(this.get(0)),!1)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},Object.defineProperties(t,n),t}(ke),Me=function(){},Te={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Te.ForwardComparator.get=function(){return Ee},Te.BidirectionalComparator.get=function(){return Pe},Te.coordArrayType.get=function(){return new Array(0).fill(null)},Me.prototype.interfaces_=function(){return[]},Me.prototype.getClass=function(){return Me},Me.isRing=function(e){return!(e.length<4)&&!!e[0].equals2D(e[e.length-1])},Me.ptNotInList=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(Me.indexOf(r,t)<0)return r}return null},Me.scroll=function(e,t){var n=Me.indexOf(t,e);if(n<0)return null;var r=new Array(e.length).fill(null);q.arraycopy(e,n,r,0,e.length-n),q.arraycopy(e,0,r,e.length-n,n),q.arraycopy(r,0,e,0,e.length)},Me.equals=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(e===t)return!0;if(null===e||null===t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].equals(t[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(0!==o.compare(r[a],i[a]))return!1;return!0}},Me.intersection=function(e,t){for(var n=new Se,r=0;r<e.length;r++)t.intersects(e[r])&&n.add(e[r],!0);return n.toCoordinateArray()},Me.hasRepeatedPoints=function(e){for(var t=1;t<e.length;t++)if(e[t-1].equals(e[t]))return!0;return!1},Me.removeRepeatedPoints=function(e){return Me.hasRepeatedPoints(e)?new Se(e,!1).toCoordinateArray():e},Me.reverse=function(e){for(var t=e.length-1,n=Math.trunc(t/2),r=0;r<=n;r++){var i=e[r];e[r]=e[t-r],e[t-r]=i}},Me.removeNull=function(e){for(var t=0,n=0;n<e.length;n++)null!==e[n]&&t++;var r=new Array(t).fill(null);if(0===t)return r;for(var i=0,o=0;o<e.length;o++)null!==e[o]&&(r[i++]=e[o]);return r},Me.copyDeep=function(){if(1===arguments.length){for(var e=arguments[0],t=new Array(e.length).fill(null),n=0;n<e.length;n++)t[n]=new C(e[n]);return t}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],l=0;l<s;l++)o[a+l]=new C(r[i+l])},Me.isEqualReversed=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[e.length-n-1];if(0!==r.compareTo(i))return!1}return!0},Me.envelope=function(e){for(var t=new H,n=0;n<e.length;n++)t.expandToInclude(e[n]);return t},Me.toCoordinateArray=function(e){return e.toArray(Me.coordArrayType)},Me.atLeastNCoordinatesOrNothing=function(e,t){return t.length>=e?t:[]},Me.indexOf=function(e,t){for(var n=0;n<t.length;n++)if(e.equals(t[n]))return n;return-1},Me.increasingDirection=function(e){for(var t=0;t<Math.trunc(e.length/2);t++){var n=e.length-1-t,r=e[t].compareTo(e[n]);if(0!==r)return r}return 1},Me.compare=function(e,t){for(var n=0;n<e.length&&n<t.length;){var r=e[n].compareTo(t[n]);if(0!==r)return r;n++}return n<t.length?-1:n<e.length?1:0},Me.minCoordinate=function(e){for(var t=null,n=0;n<e.length;n++)(null===t||t.compareTo(e[n])>0)&&(t=e[n]);return t},Me.extract=function(e,t,n){t=O.clamp(t,0,e.length);var r=(n=O.clamp(n,-1,e.length))-t+1;n<0&&(r=0),t>=e.length&&(r=0),n<t&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,a=t;a<=n;a++)i[o++]=e[a];return i},Object.defineProperties(Me,Te);var Ee=function(){};Ee.prototype.compare=function(e,t){return Me.compare(e,t)},Ee.prototype.interfaces_=function(){return[k]},Ee.prototype.getClass=function(){return Ee};var Pe=function(){};Pe.prototype.compare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=Me.compare(n,r);return Me.isEqualReversed(n,r)?0:i},Pe.prototype.OLDcompare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=Me.increasingDirection(n),o=Me.increasingDirection(r),a=i>0?0:n.length-1,s=o>0?0:n.length-1,l=0;l<n.length;l++){var c=n[a].compareTo(r[s]);if(0!==c)return c;a+=i,s+=o}return 0},Pe.prototype.interfaces_=function(){return[k]},Pe.prototype.getClass=function(){return Pe};var Ie=function(){};Ie.prototype.get=function(){},Ie.prototype.put=function(){},Ie.prototype.size=function(){},Ie.prototype.values=function(){},Ie.prototype.entrySet=function(){};var Oe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ie);(i.prototype=new Error).name="OperationNotSupported",(o.prototype=new _e).contains=function(){};var Le=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof _e&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(this.array_[t]===e)return!0;return!1},t.prototype.add=function(e){return!this.contains(e)&&(this.array_.push(e),!0)},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.remove=function(e){throw new Error},t.prototype.size=function(){return this.array_.length},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.iterator=function(){return new Re(this)},t}(o),Re=function(e){function t(t){e.call(this),this.hashSet_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new r;return this.hashSet_.array_[this.position_++]},t.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},t.prototype.remove=function(){throw new i},t}(we),je=0;(d.prototype=new Oe).get=function(e){for(var t=this.root_;null!==t;){var n=e.compareTo(t.key);if(n<0)t=t.left;else{if(!(n>0))return t.value;t=t.right}}return null},d.prototype.put=function(e,t){if(null===this.root_)return this.root_={key:e,value:t,left:null,right:null,parent:null,color:je,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=e.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=t,o}i=i.right}}while(null!==i);var a={key:e,left:null,right:null,value:t,parent:n,color:je,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null},d.prototype.fixAfterInsertion=function(e){for(e.color=1;null!=e&&e!==this.root_&&1===e.parent.color;)if(s(e)===c(s(s(e)))){var t=u(s(s(e)));1===a(t)?(l(s(e),je),l(t,je),l(s(s(e)),1),e=s(s(e))):(e===u(s(e))&&(e=s(e),this.rotateLeft(e)),l(s(e),je),l(s(s(e)),1),this.rotateRight(s(s(e))))}else{var n=c(s(s(e)));1===a(n)?(l(s(e),je),l(n,je),l(s(s(e)),1),e=s(s(e))):(e===c(s(e))&&(e=s(e),this.rotateRight(e)),l(s(e),je),l(s(s(e)),1),this.rotateLeft(s(s(e))))}this.root_.color=je},d.prototype.values=function(){var e=new ke,t=this.getFirstEntry();if(null!==t)for(e.add(t.value);null!==(t=d.successor(t));)e.add(t.value);return e},d.prototype.entrySet=function(){var e=new Le,t=this.getFirstEntry();if(null!==t)for(e.add(t);null!==(t=d.successor(t));)e.add(t);return e},d.prototype.rotateLeft=function(e){if(null!=e){var t=e.right;e.right=t.left,null!=t.left&&(t.left.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}},d.prototype.rotateRight=function(e){if(null!=e){var t=e.left;e.left=t.right,null!=t.right&&(t.right.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.right===e?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}},d.prototype.getFirstEntry=function(){var e=this.root_;if(null!=e)for(;null!=e.left;)e=e.left;return e},d.successor=function(e){if(null===e)return null;if(null!==e.right){for(var t=e.right;null!==t.left;)t=t.left;return t}for(var n=e.parent,r=e;null!==n&&r===n.right;)r=n,n=n.parent;return n},d.prototype.size=function(){return this.size_};var De=function(){};De.prototype.interfaces_=function(){return[]},De.prototype.getClass=function(){return De},p.prototype=new o,(h.prototype=new p).contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(0===this.array_[t].compareTo(e))return!0;return!1},h.prototype.add=function(e){if(this.contains(e))return!1;for(var t=0,n=this.array_.length;t<n;t++)if(1===this.array_[t].compareTo(e))return this.array_.splice(t,0,e),!0;return this.array_.push(e),!0},h.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},h.prototype.remove=function(e){throw new i},h.prototype.size=function(){return this.array_.length},h.prototype.isEmpty=function(){return 0===this.array_.length},h.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},h.prototype.iterator=function(){return new Ae(this)};var Ae=function(e){this.treeSet_=e,this.position_=0};Ae.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new r;return this.treeSet_.array_[this.position_++]},Ae.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},Ae.prototype.remove=function(){throw new i};var Ne=function(){};Ne.sort=function(){var e,t,n,r,i=arguments[0];if(1===arguments.length)r=function(e,t){return e.compareTo(t)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(e,t){return n.compare(e,t)},i.sort(r);else if(3===arguments.length){(t=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length));for(i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])}else if(4===arguments.length)for(t=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(e,t){return n.compare(e,t)},t.sort(r),o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length)),i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])},Ne.asList=function(e){for(var t=new ke,n=0,r=e.length;n<r;n++)t.add(e[n]);return t};var Fe=function(){},ze={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};ze.P.get=function(){return 0},ze.L.get=function(){return 1},ze.A.get=function(){return 2},ze.FALSE.get=function(){return-1},ze.TRUE.get=function(){return-2},ze.DONTCARE.get=function(){return-3},ze.SYM_FALSE.get=function(){return"F"},ze.SYM_TRUE.get=function(){return"T"},ze.SYM_DONTCARE.get=function(){return"*"},ze.SYM_P.get=function(){return"0"},ze.SYM_L.get=function(){return"1"},ze.SYM_A.get=function(){return"2"},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe},Fe.toDimensionSymbol=function(e){switch(e){case Fe.FALSE:return Fe.SYM_FALSE;case Fe.TRUE:return Fe.SYM_TRUE;case Fe.DONTCARE:return Fe.SYM_DONTCARE;case Fe.P:return Fe.SYM_P;case Fe.L:return Fe.SYM_L;case Fe.A:return Fe.SYM_A}throw new v("Unknown dimension value: "+e)},Fe.toDimensionValue=function(e){switch(D.toUpperCase(e)){case Fe.SYM_FALSE:return Fe.FALSE;case Fe.SYM_TRUE:return Fe.TRUE;case Fe.SYM_DONTCARE:return Fe.DONTCARE;case Fe.SYM_P:return Fe.P;case Fe.SYM_L:return Fe.L;case Fe.SYM_A:return Fe.A}throw new v("Unknown dimension symbol: "+e)},Object.defineProperties(Fe,ze);var Be=function(){};Be.prototype.filter=function(e){},Be.prototype.interfaces_=function(){return[]},Be.prototype.getClass=function(){return Be};var Ue=function(){};Ue.prototype.filter=function(e,t){},Ue.prototype.isDone=function(){},Ue.prototype.isGeometryChanged=function(){},Ue.prototype.interfaces_=function(){return[]},Ue.prototype.getClass=function(){return Ue};var $e=function(e){function t(t,n){if(e.call(this,n),this._geometries=t||[],e.hasNullElements(this._geometries))throw new v("geometries must not contain null elements")}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){for(var e=new H,t=0;t<this._geometries.length;t++)e.expandToInclude(this._geometries[t].getEnvelopeInternal());return e},t.prototype.getGeometryN=function(e){return this._geometries[e]},t.prototype.getSortIndex=function(){return e.SORTINDEX_GEOMETRYCOLLECTION},t.prototype.getCoordinates=function(){for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)e[++t]=r[i];return e},t.prototype.getArea=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getArea();return e},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._geometries.length!==r._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(r._geometries[i],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<this._geometries.length;e++)this._geometries[e].normalize();Ne.sort(this._geometries)},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},t.prototype.getBoundaryDimension=function(){for(var e=Fe.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getBoundaryDimension());return e},t.prototype.getDimension=function(){for(var e=Fe.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getDimension());return e},t.prototype.getLength=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getNumPoints();return e},t.prototype.getNumGeometries=function(){return this._geometries.length},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(t)},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=new h(Ne.asList(this._geometries)),n=new h(Ne.asList(e._geometries));return this.compare(t,n)}if(2===arguments.length){for(var r=arguments[1],i=arguments[0],o=this.getNumGeometries(),a=i.getNumGeometries(),s=0;s<o&&s<a;){var l=this.getGeometryN(s),c=i.getGeometryN(s),u=l.compareToSameClass(c,r);if(0!==u)return u;s++}return s<o?1:s<a?-1:0}},t.prototype.apply=function(){if(I(arguments[0],he))for(var e=arguments[0],t=0;t<this._geometries.length;t++)this._geometries[t].apply(e);else if(I(arguments[0],Ue)){var n=arguments[0];if(0===this._geometries.length)return null;for(var r=0;r<this._geometries.length&&(this._geometries[r].apply(n),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(I(arguments[0],Be)){var i=arguments[0];i.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(i)}else if(I(arguments[0],ce)){var a=arguments[0];a.filter(this);for(var s=0;s<this._geometries.length;s++)this._geometries[s].apply(a)}},t.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),te.shouldNeverReachHere(),null},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)t._geometries[n]=this._geometries[n].clone();return t},t.prototype.getGeometryType=function(){return"GeometryCollection"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.isEmpty=function(){for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isEmpty())return!1;return!0},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(t,n),t}(ue),Ve=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTILINESTRING},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Fe.FALSE:0},t.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isClosed())return!1;return!0},t.prototype.getDimension=function(){return 1},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[e-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(t)},t.prototype.getBoundary=function(){return new qe(this).getBoundary()},t.prototype.getGeometryType=function(){return"MultiLineString"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[De]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(t,n),t}($e),qe=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var e=arguments[0],t=fe.MOD2_BOUNDARY_RULE;this._geom=e,this._geomFact=e.getFactory(),this._bnRule=t}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};qe.prototype.boundaryMultiLineString=function(e){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var t=this.computeBoundaryCoordinates(e);return 1===t.length?this._geomFact.createPoint(t[0]):this._geomFact.createMultiPointFromCoords(t)},qe.prototype.getBoundary=function(){return this._geom instanceof Ye?this.boundaryLineString(this._geom):this._geom instanceof Ve?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},qe.prototype.boundaryLineString=function(e){return this._geom.isEmpty()?this.getEmptyMultiPoint():e.isClosed()?this._bnRule.isInBoundary(2)?e.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([e.getStartPoint(),e.getEndPoint()])},qe.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},qe.prototype.computeBoundaryCoordinates=function(e){var t=new ke;this._endpointMap=new d;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);0!==r.getNumPoints()&&(this.addEndpoint(r.getCoordinateN(0)),this.addEndpoint(r.getCoordinateN(r.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var o=i.next(),a=o.getValue().count;this._bnRule.isInBoundary(a)&&t.add(o.getKey())}return Me.toCoordinateArray(t)},qe.prototype.addEndpoint=function(e){var t=this._endpointMap.get(e);null===t&&(t=new Ze,this._endpointMap.put(e,t)),t.count++},qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe},qe.getBoundary=function(){return 1===arguments.length?new qe(arguments[0]).getBoundary():2===arguments.length?new qe(arguments[0],arguments[1]).getBoundary():void 0};var Ze=function(){this.count=null};Ze.prototype.interfaces_=function(){return[]},Ze.prototype.getClass=function(){return Ze};var He=function(){},Ge={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};He.prototype.interfaces_=function(){return[]},He.prototype.getClass=function(){return He},He.chars=function(e,t){for(var n=new Array(t).fill(null),r=0;r<t;r++)n[r]=e;return String(n)},He.getStackTrace=function(){if(1===arguments.length){var e=arguments[0],t=new function(){},n=new function(){}(t);return e.printStackTrace(n),t.toString()}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o="",a=new function(){}(new function(){}(He.getStackTrace(r))),s=0;s<i;s++)try{o+=a.readLine()+He.NEWLINE}catch(e){if(!(e instanceof f))throw e;te.shouldNeverReachHere()}return o}},He.split=function(e,t){for(var n=t.length,r=new ke,i=""+e,o=i.indexOf(t);o>=0;){var a=i.substring(0,o);r.add(a),o=(i=i.substring(o+n)).indexOf(t)}i.length>0&&r.add(i);for(var s=new Array(r.size()).fill(null),l=0;l<s.length;l++)s[l]=r.get(l);return s},He.toString=function(){if(1===arguments.length){var e=arguments[0];return He.SIMPLE_ORDINATE_FORMAT.format(e)}},He.spaces=function(e){return He.chars(" ",e)},Ge.NEWLINE.get=function(){return q.getProperty("line.separator")},Ge.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(He,Ge);var We=function(){};We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We},We.copyCoord=function(e,t,n,r){for(var i=Math.min(e.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,e.getOrdinate(t,o))},We.isRing=function(e){var t=e.size();return 0===t||!(t<=3)&&e.getOrdinate(0,B.X)===e.getOrdinate(t-1,B.X)&&e.getOrdinate(0,B.Y)===e.getOrdinate(t-1,B.Y)},We.isEqual=function(e,t){var n=e.size();if(n!==t.size())return!1;for(var r=Math.min(e.getDimension(),t.getDimension()),i=0;i<n;i++)for(var o=0;o<r;o++){var a=e.getOrdinate(i,o),s=t.getOrdinate(i,o);if(e.getOrdinate(i,o)!==t.getOrdinate(i,o)&&(!b.isNaN(a)||!b.isNaN(s)))return!1}return!0},We.extend=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();if(We.copy(t,0,r,0,i),i>0)for(var o=i;o<n;o++)We.copy(t,i-1,r,o,1);return r},We.reverse=function(e){for(var t=e.size()-1,n=Math.trunc(t/2),r=0;r<=n;r++)We.swap(e,r,t-r)},We.swap=function(e,t,n){if(t===n)return null;for(var r=0;r<e.getDimension();r++){var i=e.getOrdinate(t,r);e.setOrdinate(t,r,e.getOrdinate(n,r)),e.setOrdinate(n,r,i)}},We.copy=function(e,t,n,r,i){for(var o=0;o<i;o++)We.copyCoord(e,t+o,n,r+o)},We.toString=function(){if(1===arguments.length){var e=arguments[0],t=e.size();if(0===t)return"()";var n=e.getDimension(),r=new R;r.append("(");for(var i=0;i<t;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(He.toString(e.getOrdinate(i,o)))}return r.append(")"),r.toString()}},We.ensureValidRing=function(e,t){var n=t.size();return 0===n?t:n<=3?We.createClosedRing(e,t,4):t.getOrdinate(0,B.X)===t.getOrdinate(n-1,B.X)&&t.getOrdinate(0,B.Y)===t.getOrdinate(n-1,B.Y)?t:We.createClosedRing(e,t,n+1)},We.createClosedRing=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();We.copy(t,0,r,0,i);for(var o=i;o<n;o++)We.copy(t,0,r,o,1);return r};var Ye=function(e){function t(t,n){e.call(this,n),this._points=null,this.init(t)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new H:this._points.expandEnvelope(new H)},t.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},t.prototype.getSortIndex=function(){return e.SORTINDEX_LINESTRING},t.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._points.size()!==r._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),r._points.getCoordinate(i),n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<Math.trunc(this._points.size()/2);e++){var t=this._points.size()-1-e;if(!this._points.getCoordinate(e).equals(this._points.getCoordinate(t)))return this._points.getCoordinate(e).compareTo(this._points.getCoordinate(t))>0&&We.reverse(this._points),null}},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Fe.FALSE:0},t.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},t.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},t.prototype.getDimension=function(){return 1},t.prototype.getLength=function(){return se.computeLength(this._points)},t.prototype.getNumPoints=function(){return this._points.size()},t.prototype.reverse=function(){var e=this._points.copy();return We.reverse(e),this.getFactory().createLineString(e)},t.prototype.compareToSameClass=function(){if(1===arguments.length){for(var e=arguments[0],t=0,n=0;t<this._points.size()&&n<e._points.size();){var r=this._points.getCoordinate(t).compareTo(e._points.getCoordinate(n));if(0!==r)return r;t++,n++}return t<this._points.size()?1:n<e._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},t.prototype.apply=function(){if(I(arguments[0],he))for(var e=arguments[0],t=0;t<this._points.size();t++)e.filter(this._points.getCoordinate(t));else if(I(arguments[0],Ue)){var n=arguments[0];if(0===this._points.size())return null;for(var r=0;r<this._points.size()&&(n.filter(this._points,r),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else(I(arguments[0],Be)||I(arguments[0],ce))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return new qe(this).getBoundary()},t.prototype.isEquivalentClass=function(e){return e instanceof t},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._points=this._points.clone(),t},t.prototype.getCoordinateN=function(e){return this._points.getCoordinate(e)},t.prototype.getGeometryType=function(){return"LineString"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._points},t.prototype.isEmpty=function(){return 0===this._points.size()},t.prototype.init=function(e){if(null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),1===e.size())throw new v("Invalid number of points in LineString (found "+e.size()+" - must be 0 or >= 2)");this._points=e},t.prototype.isCoordinate=function(e){for(var t=0;t<this._points.size();t++)if(this._points.getCoordinate(t).equals(e))return!0;return!1},t.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},t.prototype.getPointN=function(e){return this.getFactory().createPoint(this._points.getCoordinate(e))},t.prototype.interfaces_=function(){return[De]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(t,n),t}(ue),Ke=function(){};Ke.prototype.interfaces_=function(){return[]},Ke.prototype.getClass=function(){return Ke};var Xe=function(e){function t(t,n){e.call(this,n),this._coordinates=t||null,this.init(this._coordinates)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new H;var e=new H;return e.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),e},t.prototype.getSortIndex=function(){return e.SORTINDEX_POINT},t.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),this.getCoordinate(),n))}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){},t.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},t.prototype.getBoundaryDimension=function(){return Fe.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getNumPoints=function(){return this.isEmpty()?0:1},t.prototype.reverse=function(){return this.copy()},t.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0];return this.getCoordinate().compareTo(e.getCoordinate())}if(2===arguments.length){var t=arguments[0];return arguments[1].compare(this._coordinates,t._coordinates)}},t.prototype.apply=function(){if(I(arguments[0],he)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this.getCoordinate())}else if(I(arguments[0],Ue)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this._coordinates,0),t.isGeometryChanged()&&this.geometryChanged()}else(I(arguments[0],Be)||I(arguments[0],ce))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._coordinates=this._coordinates.clone(),t},t.prototype.getGeometryType=function(){return"Point"},t.prototype.copy=function(){return new t(this._coordinates.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._coordinates},t.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},t.prototype.isEmpty=function(){return 0===this._coordinates.size()},t.prototype.init=function(e){null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),te.isTrue(e.size()<=1),this._coordinates=e},t.prototype.isSimple=function(){return!0},t.prototype.interfaces_=function(){return[Ke]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(t,n),t}(ue),Je=function(){};Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var Qe=function(e){function t(t,n,r){if(e.call(this,r),this._shell=null,this._holes=null,null===t&&(t=this.getFactory().createLinearRing()),null===n&&(n=[]),e.hasNullElements(n))throw new v("holes must not contain null elements");if(t.isEmpty()&&e.hasNonEmptyElements(n))throw new v("shell is empty but holes are not");this._shell=t,this._holes=n}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},t.prototype.getSortIndex=function(){return e.SORTINDEX_POLYGON},t.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)e[++t]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),a=0;a<o.length;a++)e[++t]=o[a];return e},t.prototype.getArea=function(){var e=0;e+=Math.abs(se.signedArea(this._shell.getCoordinateSequence()));for(var t=0;t<this._holes.length;t++)e-=Math.abs(se.signedArea(this._holes[t].getCoordinateSequence()));return e},t.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var e=this._shell.getCoordinateSequence(),t=this.getEnvelopeInternal(),n=0;n<5;n++){var r=e.getX(n);if(r!==t.getMinX()&&r!==t.getMaxX())return!1;var i=e.getY(n);if(i!==t.getMinY()&&i!==t.getMaxY())return!1}for(var o=e.getX(0),a=e.getY(0),s=1;s<=4;s++){var l=e.getX(s),c=e.getY(s);if(l!==o===(c!==a))return!1;o=l,a=c}return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t,i=this._shell,o=r._shell;if(!i.equalsExact(o,n))return!1;if(this._holes.length!==r._holes.length)return!1;for(var a=0;a<this._holes.length;a++)if(!this._holes[a].equalsExact(r._holes[a],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var e=0;e<this._holes.length;e++)this.normalize(this._holes[e],!1);Ne.sort(this._holes)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(t.isEmpty())return null;var r=new Array(t.getCoordinates().length-1).fill(null);q.arraycopy(t.getCoordinates(),0,r,0,r.length);var i=Me.minCoordinate(t.getCoordinates());Me.scroll(r,i),q.arraycopy(r,0,t.getCoordinates(),0,r.length),t.getCoordinates()[r.length]=r[0],se.isCCW(t.getCoordinates())===n&&Me.reverse(t.getCoordinates())}},t.prototype.getCoordinate=function(){return this._shell.getCoordinate()},t.prototype.getNumInteriorRing=function(){return this._holes.length},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.getLength=function(){var e=0;e+=this._shell.getLength();for(var t=0;t<this._holes.length;t++)e+=this._holes[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=this._shell.getNumPoints(),t=0;t<this._holes.length;t++)e+=this._holes[t].getNumPoints();return e},t.prototype.reverse=function(){var e=this.copy();e._shell=this._shell.copy().reverse(),e._holes=new Array(this._holes.length).fill(null);for(var t=0;t<this._holes.length;t++)e._holes[t]=this._holes[t].copy().reverse();return e},t.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=this._shell,n=e._shell;return t.compareToSameClass(n)}if(2===arguments.length){var r=arguments[1],i=arguments[0],o=this._shell,a=i._shell,s=o.compareToSameClass(a,r);if(0!==s)return s;for(var l=this.getNumInteriorRing(),c=i.getNumInteriorRing(),u=0;u<l&&u<c;){var d=this.getInteriorRingN(u),p=i.getInteriorRingN(u),h=d.compareToSameClass(p,r);if(0!==h)return h;u++}return u<l?1:u<c?-1:0}},t.prototype.apply=function(e){if(I(e,he)){this._shell.apply(e);for(var t=0;t<this._holes.length;t++)this._holes[t].apply(e)}else if(I(e,Ue)){if(this._shell.apply(e),!e.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(e),!e.isDone());n++);e.isGeometryChanged()&&this.geometryChanged()}else if(I(e,Be))e.filter(this);else if(I(e,ce)){e.filter(this),this._shell.apply(e);for(var r=0;r<this._holes.length;r++)this._holes[r].apply(e)}},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var e=new Array(this._holes.length+1).fill(null);e[0]=this._shell;for(var t=0;t<this._holes.length;t++)e[t+1]=this._holes[t];return e.length<=1?this.getFactory().createLinearRing(e[0].getCoordinateSequence()):this.getFactory().createMultiLineString(e)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._shell=this._shell.clone(),t._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)t._holes[n]=this._holes[n].clone();return t},t.prototype.getGeometryType=function(){return"Polygon"},t.prototype.copy=function(){for(var e=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new t(e,n,this._factory)},t.prototype.getExteriorRing=function(){return this._shell},t.prototype.isEmpty=function(){return this._shell.isEmpty()},t.prototype.getInteriorRingN=function(e){return this._holes[e]},t.prototype.interfaces_=function(){return[Je]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(t,n),t}(ue),et=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTIPOINT},t.prototype.isValid=function(){return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._geometries[t].getCoordinate()}return e.prototype.getCoordinate.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return Fe.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.getGeometryType=function(){return"MultiPoint"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Ke]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(t,n),t}($e),tt=function(e){function t(t,n){t instanceof C&&n instanceof yt&&(t=n.getCoordinateSequenceFactory().create(t)),e.call(this,t,n),this.validateConstruction()}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_LINEARRING},t.prototype.getBoundaryDimension=function(){return Fe.FALSE},t.prototype.isClosed=function(){return!!this.isEmpty()||e.prototype.isClosed.call(this)},t.prototype.reverse=function(){var e=this._points.copy();return We.reverse(e),this.getFactory().createLinearRing(e)},t.prototype.validateConstruction=function(){if(!this.isEmpty()&&!e.prototype.isClosed.call(this))throw new v("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<t.MINIMUM_VALID_SIZE)throw new v("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},t.prototype.getGeometryType=function(){return"LinearRing"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(t,n),t}(Ye),nt=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTIPOLYGON},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(t)},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var e=new ke,t=0;t<this._geometries.length;t++)for(var n=this._geometries[t].getBoundary(),r=0;r<n.getNumGeometries();r++)e.add(n.getGeometryN(r));var i=new Array(e.size()).fill(null);return this.getFactory().createMultiLineString(e.toArray(i))},t.prototype.getGeometryType=function(){return"MultiPolygon"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Je]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(t,n),t}($e),rt=function(e){this._factory=e||null,this._isUserDataCopied=!1},it={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};rt.prototype.setCopyUserData=function(e){this._isUserDataCopied=e},rt.prototype.edit=function(e,t){if(null===e)return null;var n=this.editInternal(e,t);return this._isUserDataCopied&&n.setUserData(e.getUserData()),n},rt.prototype.editInternal=function(e,t){return null===this._factory&&(this._factory=e.getFactory()),e instanceof $e?this.editGeometryCollection(e,t):e instanceof Qe?this.editPolygon(e,t):e instanceof Xe||e instanceof Ye?t.edit(e,this._factory):(te.shouldNeverReachHere("Unsupported Geometry class: "+e.getClass().getName()),null)},rt.prototype.editGeometryCollection=function(e,t){for(var n=t.edit(e,this._factory),r=new ke,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),t);null===o||o.isEmpty()||r.add(o)}return n.getClass()===et?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Ve?this._factory.createMultiLineString(r.toArray([])):n.getClass()===nt?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},rt.prototype.editPolygon=function(e,t){var n=t.edit(e,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),t);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new ke,o=0;o<n.getNumInteriorRing();o++){var a=this.edit(n.getInteriorRingN(o),t);null===a||a.isEmpty()||i.add(a)}return this._factory.createPolygon(r,i.toArray([]))},rt.prototype.interfaces_=function(){return[]},rt.prototype.getClass=function(){return rt},rt.GeometryEditorOperation=function(){},it.NoOpGeometryOperation.get=function(){return ot},it.CoordinateOperation.get=function(){return at},it.CoordinateSequenceOperation.get=function(){return st},Object.defineProperties(rt,it);var ot=function(){};ot.prototype.edit=function(e,t){return e},ot.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},ot.prototype.getClass=function(){return ot};var at=function(){};at.prototype.edit=function(e,t){var n=this.editCoordinates(e.getCoordinates(),e);return null===n?e:e instanceof tt?t.createLinearRing(n):e instanceof Ye?t.createLineString(n):e instanceof Xe?n.length>0?t.createPoint(n[0]):t.createPoint():e},at.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},at.prototype.getClass=function(){return at};var st=function(){};st.prototype.edit=function(e,t){return e instanceof tt?t.createLinearRing(this.edit(e.getCoordinateSequence(),e)):e instanceof Ye?t.createLineString(this.edit(e.getCoordinateSequence(),e)):e instanceof Xe?t.createPoint(this.edit(e.getCoordinateSequence(),e)):e},st.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},st.prototype.getClass=function(){return st};var lt=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var e=arguments[0];this._coordinates=new Array(e).fill(null);for(var t=0;t<e;t++)this._coordinates[t]=new C}else if(I(arguments[0],B)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var r=0;r<this._coordinates.length;r++)this._coordinates[r]=n.getCoordinateCopy(r)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],o=arguments[1];this._coordinates=i,this._dimension=o,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var a=arguments[0],s=arguments[1];this._coordinates=new Array(a).fill(null),this._dimension=s;for(var l=0;l<a;l++)this._coordinates[l]=new C}},ct={serialVersionUID:{configurable:!0}};lt.prototype.setOrdinate=function(e,t,n){switch(t){case B.X:this._coordinates[e].x=n;break;case B.Y:this._coordinates[e].y=n;break;case B.Z:this._coordinates[e].z=n;break;default:throw new v("invalid ordinateIndex")}},lt.prototype.size=function(){return this._coordinates.length},lt.prototype.getOrdinate=function(e,t){switch(t){case B.X:return this._coordinates[e].x;case B.Y:return this._coordinates[e].y;case B.Z:return this._coordinates[e].z}return b.NaN},lt.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._coordinates[e]}if(2===arguments.length){var t=arguments[0],n=arguments[1];n.x=this._coordinates[t].x,n.y=this._coordinates[t].y,n.z=this._coordinates[t].z}},lt.prototype.getCoordinateCopy=function(e){return new C(this._coordinates[e])},lt.prototype.getDimension=function(){return this._dimension},lt.prototype.getX=function(e){return this._coordinates[e].x},lt.prototype.clone=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].clone();return new lt(e,this._dimension)},lt.prototype.expandEnvelope=function(e){for(var t=0;t<this._coordinates.length;t++)e.expandToInclude(this._coordinates[t]);return e},lt.prototype.copy=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].copy();return new lt(e,this._dimension)},lt.prototype.toString=function(){if(this._coordinates.length>0){var e=new R(17*this._coordinates.length);e.append("("),e.append(this._coordinates[0]);for(var t=1;t<this._coordinates.length;t++)e.append(", "),e.append(this._coordinates[t]);return e.append(")"),e.toString()}return"()"},lt.prototype.getY=function(e){return this._coordinates[e].y},lt.prototype.toCoordinateArray=function(){return this._coordinates},lt.prototype.interfaces_=function(){return[B,t]},lt.prototype.getClass=function(){return lt},ct.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(lt,ct);var ut=function(){},dt={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};ut.prototype.readResolve=function(){return ut.instance()},ut.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array)return new lt(arguments[0]);if(I(arguments[0],B))return new lt(arguments[0])}else if(2===arguments.length){var e=arguments[0],t=arguments[1];return t>3&&(t=3),t<2?new lt(e):new lt(e,t)}},ut.prototype.interfaces_=function(){return[T,t]},ut.prototype.getClass=function(){return ut},ut.instance=function(){return ut.instanceObject},dt.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},dt.instanceObject.get=function(){return new ut},Object.defineProperties(ut,dt);var pt=function(e){function t(){e.call(this),this.map_=new Map}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return this.map_.get(e)||null},t.prototype.put=function(e,t){return this.map_.set(e,t),t},t.prototype.values=function(){for(var e=new ke,t=this.map_.values(),n=t.next();!n.done;)e.add(n.value),n=t.next();return e},t.prototype.entrySet=function(){var e=new Le;return this.map_.entries().forEach((function(t){return e.add(t)})),e},t.prototype.size=function(){return this.map_.size()},t}(Ie),ht=function e(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=e.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof mt){var t=arguments[0];this._modelType=t,t===e.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=e.FIXED,this.setScale(n)}else if(arguments[0]instanceof e){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},ft={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};ht.prototype.equals=function(e){if(!(e instanceof ht))return!1;var t=e;return this._modelType===t._modelType&&this._scale===t._scale},ht.prototype.compareTo=function(e){var t=e,n=this.getMaximumSignificantDigits(),r=t.getMaximumSignificantDigits();return new j(n).compareTo(new j(r))},ht.prototype.getScale=function(){return this._scale},ht.prototype.isFloating=function(){return this._modelType===ht.FLOATING||this._modelType===ht.FLOATING_SINGLE},ht.prototype.getType=function(){return this._modelType},ht.prototype.toString=function(){var e="UNKNOWN";return this._modelType===ht.FLOATING?e="Floating":this._modelType===ht.FLOATING_SINGLE?e="Floating-Single":this._modelType===ht.FIXED&&(e="Fixed (Scale="+this.getScale()+")"),e},ht.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var e=arguments[0];return b.isNaN(e)||this._modelType===ht.FLOATING_SINGLE?e:this._modelType===ht.FIXED?Math.round(e*this._scale)/this._scale:e}if(arguments[0]instanceof C){var t=arguments[0];if(this._modelType===ht.FLOATING)return null;t.x=this.makePrecise(t.x),t.y=this.makePrecise(t.y)}},ht.prototype.getMaximumSignificantDigits=function(){var e=16;return this._modelType===ht.FLOATING?e=16:this._modelType===ht.FLOATING_SINGLE?e=6:this._modelType===ht.FIXED&&(e=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),e},ht.prototype.setScale=function(e){this._scale=Math.abs(e)},ht.prototype.interfaces_=function(){return[t,w]},ht.prototype.getClass=function(){return ht},ht.mostPrecise=function(e,t){return e.compareTo(t)>=0?e:t},ft.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},ft.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(ht,ft);var mt=function e(t){this._name=t||null,e.nameToTypeMap.put(t,this)},gt={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};mt.prototype.readResolve=function(){return mt.nameToTypeMap.get(this._name)},mt.prototype.toString=function(){return this._name},mt.prototype.interfaces_=function(){return[t]},mt.prototype.getClass=function(){return mt},gt.serialVersionUID.get=function(){return-552860263173159e4},gt.nameToTypeMap.get=function(){return new pt},Object.defineProperties(mt,gt),ht.Type=mt,ht.FIXED=new mt("FIXED"),ht.FLOATING=new mt("FLOATING"),ht.FLOATING_SINGLE=new mt("FLOATING SINGLE");var yt=function e(){this._precisionModel=new ht,this._SRID=0,this._coordinateSequenceFactory=e.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?I(arguments[0],T)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof ht&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},vt={serialVersionUID:{configurable:!0}};yt.prototype.toGeometry=function(e){return e.isNull()?this.createPoint(null):e.getMinX()===e.getMaxX()&&e.getMinY()===e.getMaxY()?this.createPoint(new C(e.getMinX(),e.getMinY())):e.getMinX()===e.getMaxX()||e.getMinY()===e.getMaxY()?this.createLineString([new C(e.getMinX(),e.getMinY()),new C(e.getMaxX(),e.getMaxY())]):this.createPolygon(this.createLinearRing([new C(e.getMinX(),e.getMinY()),new C(e.getMinX(),e.getMaxY()),new C(e.getMaxX(),e.getMaxY()),new C(e.getMaxX(),e.getMinY()),new C(e.getMinX(),e.getMinY())]),null)},yt.prototype.createLineString=function(e){return e?e instanceof Array?new Ye(this.getCoordinateSequenceFactory().create(e),this):I(e,B)?new Ye(e,this):void 0:new Ye(this.getCoordinateSequenceFactory().create([]),this)},yt.prototype.createMultiLineString=function(){return 0===arguments.length?new Ve(null,this):1===arguments.length?new Ve(arguments[0],this):void 0},yt.prototype.buildGeometry=function(e){for(var t=null,n=!1,r=!1,i=e.iterator();i.hasNext();){var o=i.next(),a=o.getClass();null===t&&(t=a),a!==t&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===t)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(yt.toGeometryArray(e));var s=e.iterator().next();if(e.size()>1){if(s instanceof Qe)return this.createMultiPolygon(yt.toPolygonArray(e));if(s instanceof Ye)return this.createMultiLineString(yt.toLineStringArray(e));if(s instanceof Xe)return this.createMultiPoint(yt.toPointArray(e));te.shouldNeverReachHere("Unhandled class: "+s.getClass().getName())}return s},yt.prototype.createMultiPointFromCoords=function(e){return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)},yt.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof C){var e=arguments[0];return this.createPoint(null!==e?this.getCoordinateSequenceFactory().create([e]):null)}if(I(arguments[0],B))return new Xe(arguments[0],this)}},yt.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},yt.prototype.createPolygon=function(){if(0===arguments.length)return new Qe(null,null,this);if(1===arguments.length){if(I(arguments[0],B)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Array){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof tt){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Qe(arguments[0],arguments[1],this)},yt.prototype.getSRID=function(){return this._SRID},yt.prototype.createGeometryCollection=function(){return 0===arguments.length?new $e(null,this):1===arguments.length?new $e(arguments[0],this):void 0},yt.prototype.createGeometry=function(e){return new rt(this).edit(e,{edit:function(){if(2===arguments.length){var e=arguments[0];return this._coordinateSequenceFactory.create(e)}}})},yt.prototype.getPrecisionModel=function(){return this._precisionModel},yt.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(I(arguments[0],B))return new tt(arguments[0],this)}},yt.prototype.createMultiPolygon=function(){return 0===arguments.length?new nt(null,this):1===arguments.length?new nt(arguments[0],this):void 0},yt.prototype.createMultiPoint=function(){if(0===arguments.length)return new et(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new et(arguments[0],this);if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(I(arguments[0],B)){var t=arguments[0];if(null===t)return this.createMultiPoint(new Array(0).fill(null));for(var n=new Array(t.size()).fill(null),r=0;r<t.size();r++){var i=this.getCoordinateSequenceFactory().create(1,t.getDimension());We.copy(t,r,i,0,1),n[r]=this.createPoint(i)}return this.createMultiPoint(n)}}},yt.prototype.interfaces_=function(){return[t]},yt.prototype.getClass=function(){return yt},yt.toMultiPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toGeometryArray=function(e){if(null===e)return null;var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.getDefaultCoordinateSequenceFactory=function(){return ut.instance()},yt.toMultiLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toMultiPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toLinearRingArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.createPointFromInternalCoord=function(e,t){return t.getPrecisionModel().makePrecise(e),t.getFactory().createPoint(e)},vt.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(yt,vt);var bt=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],_t=function(e){this.geometryFactory=e||new yt};_t.prototype.read=function(e){var t,n=(t="string"==typeof e?JSON.parse(e):e).type;if(!wt[n])throw new Error("Unknown GeoJSON type: "+t.type);return-1!==bt.indexOf(n)?wt[n].apply(this,[t.coordinates]):"GeometryCollection"===n?wt[n].apply(this,[t.geometries]):wt[n].apply(this,[t])},_t.prototype.write=function(e){var t=e.getGeometryType();if(!xt[t])throw new Error("Geometry is not supported");return xt[t].apply(this,[e])};var wt={Feature:function(e){var t={};for(var n in e)t[n]=e[n];if(e.geometry){var r=e.geometry.type;if(!wt[r])throw new Error("Unknown GeoJSON type: "+e.type);t.geometry=this.read(e.geometry)}return e.bbox&&(t.bbox=wt.bbox.apply(this,[e.bbox])),t},FeatureCollection:function(e){var t={};if(e.features){t.features=[];for(var n=0;n<e.features.length;++n)t.features.push(this.read(e.features[n]))}return e.bbox&&(t.bbox=this.parse.bbox.apply(this,[e.bbox])),t},coordinates:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(new C(r[0],r[1]))}return t},bbox:function(e){return this.geometryFactory.createLinearRing([new C(e[0],e[1]),new C(e[2],e[1]),new C(e[2],e[3]),new C(e[0],e[3]),new C(e[0],e[1])])},Point:function(e){var t=new C(e[0],e[1]);return this.geometryFactory.createPoint(t)},MultiPoint:function(e){for(var t=[],n=0;n<e.length;++n)t.push(wt.Point.apply(this,[e[n]]));return this.geometryFactory.createMultiPoint(t)},LineString:function(e){var t=wt.coordinates.apply(this,[e]);return this.geometryFactory.createLineString(t)},MultiLineString:function(e){for(var t=[],n=0;n<e.length;++n)t.push(wt.LineString.apply(this,[e[n]]));return this.geometryFactory.createMultiLineString(t)},Polygon:function(e){for(var t=wt.coordinates.apply(this,[e[0]]),n=this.geometryFactory.createLinearRing(t),r=[],i=1;i<e.length;++i){var o=e[i],a=wt.coordinates.apply(this,[o]),s=this.geometryFactory.createLinearRing(a);r.push(s)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(wt.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(t)},GeometryCollection:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(this.read(r))}return this.geometryFactory.createGeometryCollection(t)}},xt={coordinate:function(e){return[e.x,e.y]},Point:function(e){return{type:"Point",coordinates:xt.coordinate.apply(this,[e.getCoordinate()])}},MultiPoint:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xt.Point.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPoint",coordinates:t}},LineString:function(e){for(var t=[],n=e.getCoordinates(),r=0;r<n.length;++r){var i=n[r];t.push(xt.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:t}},MultiLineString:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xt.LineString.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiLineString",coordinates:t}},Polygon:function(e){var t=[],n=xt.LineString.apply(this,[e._shell]);t.push(n.coordinates);for(var r=0;r<e._holes.length;++r){var i=e._holes[r],o=xt.LineString.apply(this,[i]);t.push(o.coordinates)}return{type:"Polygon",coordinates:t}},MultiPolygon:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xt.Polygon.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPolygon",coordinates:t}},GeometryCollection:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=r.getGeometryType();t.push(xt[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:t}}},kt=function(e){this.geometryFactory=e||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new _t(this.geometryFactory)};kt.prototype.read=function(e){var t=this.parser.read(e);return this.precisionModel.getType()===ht.FIXED&&this.reducePrecision(t),t},kt.prototype.reducePrecision=function(e){var t,n;if(e.coordinate)this.precisionModel.makePrecise(e.coordinate);else if(e.points)for(t=0,n=e.points.length;t<n;t++)this.precisionModel.makePrecise(e.points[t]);else if(e.geometries)for(t=0,n=e.geometries.length;t<n;t++)this.reducePrecision(e.geometries[t])};var Ct=function(){this.parser=new _t(this.geometryFactory)};Ct.prototype.write=function(e){return this.parser.write(e)};var St=function(){},Mt={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};St.prototype.interfaces_=function(){return[]},St.prototype.getClass=function(){return St},St.opposite=function(e){return e===St.LEFT?St.RIGHT:e===St.RIGHT?St.LEFT:e},Mt.ON.get=function(){return 0},Mt.LEFT.get=function(){return 1},Mt.RIGHT.get=function(){return 2},Object.defineProperties(St,Mt),(m.prototype=new Error).name="EmptyStackException",(g.prototype=new xe).add=function(e){return this.array_.push(e),!0},g.prototype.get=function(e){if(e<0||e>=this.size())throw new Error;return this.array_[e]},g.prototype.push=function(e){return this.array_.push(e),e},g.prototype.pop=function(e){if(0===this.array_.length)throw new m;return this.array_.pop()},g.prototype.peek=function(){if(0===this.array_.length)throw new m;return this.array_[this.array_.length-1]},g.prototype.empty=function(){return 0===this.array_.length},g.prototype.isEmpty=function(){return this.empty()},g.prototype.search=function(e){return this.array_.indexOf(e)},g.prototype.size=function(){return this.array_.length},g.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e};var Tt=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Tt.prototype.getCoordinate=function(){return this._minCoord},Tt.prototype.getRightmostSide=function(e,t){var n=this.getRightmostSideOfSegment(e,t);return n<0&&(n=this.getRightmostSideOfSegment(e,t-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(e)),n},Tt.prototype.findRightmostEdgeAtVertex=function(){var e=this._minDe.getEdge().getCoordinates();te.isTrue(this._minIndex>0&&this._minIndex<e.length,"rightmost point expected to be interior vertex of edge");var t=e[this._minIndex-1],n=e[this._minIndex+1],r=se.computeOrientation(this._minCoord,n,t),i=!1;(t.y<this._minCoord.y&&n.y<this._minCoord.y&&r===se.COUNTERCLOCKWISE||t.y>this._minCoord.y&&n.y>this._minCoord.y&&r===se.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Tt.prototype.getRightmostSideOfSegment=function(e,t){var n=e.getEdge().getCoordinates();if(t<0||t+1>=n.length)return-1;if(n[t].y===n[t+1].y)return-1;var r=St.LEFT;return n[t].y<n[t+1].y&&(r=St.RIGHT),r},Tt.prototype.getEdge=function(){return this._orientedDe},Tt.prototype.checkForRightmostCoordinate=function(e){for(var t=e.getEdge().getCoordinates(),n=0;n<t.length-1;n++)(null===this._minCoord||t[n].x>this._minCoord.x)&&(this._minDe=e,this._minIndex=n,this._minCoord=t[n])},Tt.prototype.findRightmostEdgeAtNode=function(){var e=this._minDe.getNode().getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Tt.prototype.findEdge=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();n.isForward()&&this.checkForRightmostCoordinate(n)}te.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===St.LEFT&&(this._orientedDe=this._minDe.getSym())},Tt.prototype.interfaces_=function(){return[]},Tt.prototype.getClass=function(){return Tt};var Et=function(e){function t(n,r){e.call(this,t.msgWithCoord(n,r)),this.pt=r?new C(r):null,this.name="TopologyException"}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCoordinate=function(){return this.pt},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.msgWithCoord=function(e,t){return t?e:e+" [ "+t+" ]"},t}(Q),Pt=function(){this.array_=[]};Pt.prototype.addLast=function(e){this.array_.push(e)},Pt.prototype.removeFirst=function(){return this.array_.shift()},Pt.prototype.isEmpty=function(){return 0===this.array_.length};var It=function(){this._finder=null,this._dirEdgeList=new ke,this._nodes=new ke,this._rightMostCoord=null,this._env=null,this._finder=new Tt};It.prototype.clearVisitedEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();)e.next().setVisited(!1)},It.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},It.prototype.computeNodeDepth=function(e){for(var t=null,n=e.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){t=r;break}}if(null===t)throw new Et("unable to find edge to compute depths at "+e.getCoordinate());e.getEdges().computeDepths(t);for(var i=e.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},It.prototype.computeDepth=function(e){this.clearVisitedEdges();var t=this._finder.getEdge();t.setEdgeDepths(St.RIGHT,e),this.copySymDepths(t),this.computeDepths(t)},It.prototype.create=function(e){this.addReachable(e),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},It.prototype.findResultEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();){var t=e.next();t.getDepth(St.RIGHT)>=1&&t.getDepth(St.LEFT)<=0&&!t.isInteriorAreaEdge()&&t.setInResult(!0)}},It.prototype.computeDepths=function(e){var t=new Le,n=new Pt,r=e.getNode();for(n.addLast(r),t.add(r),e.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();t.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();t.contains(s)||(n.addLast(s),t.add(s))}}}},It.prototype.compareTo=function(e){var t=e;return this._rightMostCoord.x<t._rightMostCoord.x?-1:this._rightMostCoord.x>t._rightMostCoord.x?1:0},It.prototype.getEnvelope=function(){if(null===this._env){for(var e=new H,t=this._dirEdgeList.iterator();t.hasNext();)for(var n=t.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)e.expandToInclude(n[r]);this._env=e}return this._env},It.prototype.addReachable=function(e){var t=new g;for(t.add(e);!t.empty();){var n=t.pop();this.add(n,t)}},It.prototype.copySymDepths=function(e){var t=e.getSym();t.setDepth(St.LEFT,e.getDepth(St.RIGHT)),t.setDepth(St.RIGHT,e.getDepth(St.LEFT))},It.prototype.add=function(e,t){e.setVisited(!0),this._nodes.add(e);for(var n=e.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||t.push(i)}},It.prototype.getNodes=function(){return this._nodes},It.prototype.getDirectedEdges=function(){return this._dirEdgeList},It.prototype.interfaces_=function(){return[w]},It.prototype.getClass=function(){return It};var Ot=function e(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[St.ON]=n}else if(arguments[0]instanceof e){var r=arguments[0];if(this.init(r.location.length),null!==r)for(var i=0;i<this.location.length;i++)this.location[i]=r.location[i]}}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.init(3),this.location[St.ON]=o,this.location[St.LEFT]=a,this.location[St.RIGHT]=s}};Ot.prototype.setAllLocations=function(e){for(var t=0;t<this.location.length;t++)this.location[t]=e},Ot.prototype.isNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]!==E.NONE)return!1;return!0},Ot.prototype.setAllLocationsIfNull=function(e){for(var t=0;t<this.location.length;t++)this.location[t]===E.NONE&&(this.location[t]=e)},Ot.prototype.isLine=function(){return 1===this.location.length},Ot.prototype.merge=function(e){if(e.location.length>this.location.length){var t=new Array(3).fill(null);t[St.ON]=this.location[St.ON],t[St.LEFT]=E.NONE,t[St.RIGHT]=E.NONE,this.location=t}for(var n=0;n<this.location.length;n++)this.location[n]===E.NONE&&n<e.location.length&&(this.location[n]=e.location[n])},Ot.prototype.getLocations=function(){return this.location},Ot.prototype.flip=function(){if(this.location.length<=1)return null;var e=this.location[St.LEFT];this.location[St.LEFT]=this.location[St.RIGHT],this.location[St.RIGHT]=e},Ot.prototype.toString=function(){var e=new R;return this.location.length>1&&e.append(E.toLocationSymbol(this.location[St.LEFT])),e.append(E.toLocationSymbol(this.location[St.ON])),this.location.length>1&&e.append(E.toLocationSymbol(this.location[St.RIGHT])),e.toString()},Ot.prototype.setLocations=function(e,t,n){this.location[St.ON]=e,this.location[St.LEFT]=t,this.location[St.RIGHT]=n},Ot.prototype.get=function(e){return e<this.location.length?this.location[e]:E.NONE},Ot.prototype.isArea=function(){return this.location.length>1},Ot.prototype.isAnyNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]===E.NONE)return!0;return!1},Ot.prototype.setLocation=function(){if(1===arguments.length){var e=arguments[0];this.setLocation(St.ON,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.location[t]=n}},Ot.prototype.init=function(e){this.location=new Array(e).fill(null),this.setAllLocations(E.NONE)},Ot.prototype.isEqualOnSide=function(e,t){return this.location[t]===e.location[t]},Ot.prototype.allPositionsEqual=function(e){for(var t=0;t<this.location.length;t++)if(this.location[t]!==e)return!1;return!0},Ot.prototype.interfaces_=function(){return[]},Ot.prototype.getClass=function(){return Ot};var Lt=function e(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var t=arguments[0];this.elt[0]=new Ot(t),this.elt[1]=new Ot(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.elt[0]=new Ot(n.elt[0]),this.elt[1]=new Ot(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new Ot(E.NONE),this.elt[1]=new Ot(E.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.elt[0]=new Ot(o,a,s),this.elt[1]=new Ot(o,a,s)}else if(4===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2],d=arguments[3];this.elt[0]=new Ot(E.NONE,E.NONE,E.NONE),this.elt[1]=new Ot(E.NONE,E.NONE,E.NONE),this.elt[l].setLocations(c,u,d)}};Lt.prototype.getGeometryCount=function(){var e=0;return this.elt[0].isNull()||e++,this.elt[1].isNull()||e++,e},Lt.prototype.setAllLocations=function(e,t){this.elt[e].setAllLocations(t)},Lt.prototype.isNull=function(e){return this.elt[e].isNull()},Lt.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var e=arguments[0];this.setAllLocationsIfNull(0,e),this.setAllLocationsIfNull(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.elt[t].setAllLocationsIfNull(n)}},Lt.prototype.isLine=function(e){return this.elt[e].isLine()},Lt.prototype.merge=function(e){for(var t=0;t<2;t++)null===this.elt[t]&&null!==e.elt[t]?this.elt[t]=new Ot(e.elt[t]):this.elt[t].merge(e.elt[t])},Lt.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},Lt.prototype.getLocation=function(){if(1===arguments.length){var e=arguments[0];return this.elt[e].get(St.ON)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return this.elt[t].get(n)}},Lt.prototype.toString=function(){var e=new R;return null!==this.elt[0]&&(e.append("A:"),e.append(this.elt[0].toString())),null!==this.elt[1]&&(e.append(" B:"),e.append(this.elt[1].toString())),e.toString()},Lt.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var e=arguments[0];return this.elt[e].isArea()}},Lt.prototype.isAnyNull=function(e){return this.elt[e].isAnyNull()},Lt.prototype.setLocation=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.elt[e].setLocation(St.ON,t)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},Lt.prototype.isEqualOnSide=function(e,t){return this.elt[0].isEqualOnSide(e.elt[0],t)&&this.elt[1].isEqualOnSide(e.elt[1],t)},Lt.prototype.allPositionsEqual=function(e,t){return this.elt[e].allPositionsEqual(t)},Lt.prototype.toLine=function(e){this.elt[e].isArea()&&(this.elt[e]=new Ot(this.elt[e].location[0]))},Lt.prototype.interfaces_=function(){return[]},Lt.prototype.getClass=function(){return Lt},Lt.toLineLabel=function(e){for(var t=new Lt(E.NONE),n=0;n<2;n++)t.setLocation(n,e.getLocation(n));return t};var Rt=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new ke,this._pts=new ke,this._label=new Lt(E.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new ke,this._geometryFactory=null;var e=arguments[0],t=arguments[1];this._geometryFactory=t,this.computePoints(e),this.computeRing()};Rt.prototype.computeRing=function(){if(null!==this._ring)return null;for(var e=new Array(this._pts.size()).fill(null),t=0;t<this._pts.size();t++)e[t]=this._pts.get(t);this._ring=this._geometryFactory.createLinearRing(e),this._isHole=se.isCCW(this._ring.getCoordinates())},Rt.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Rt.prototype.computePoints=function(e){this._startDe=e;var t=e,n=!0;do{if(null===t)throw new Et("Found null DirectedEdge");if(t.getEdgeRing()===this)throw new Et("Directed Edge visited twice during ring-building at "+t.getCoordinate());this._edges.add(t);var r=t.getLabel();te.isTrue(r.isArea()),this.mergeLabel(r),this.addPoints(t.getEdge(),t.isForward(),n),n=!1,this.setEdgeRing(t,this),t=this.getNext(t)}while(t!==this._startDe)},Rt.prototype.getLinearRing=function(){return this._ring},Rt.prototype.getCoordinate=function(e){return this._pts.get(e)},Rt.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var e=this._startDe;do{var t=e.getNode().getEdges().getOutgoingDegree(this);t>this._maxNodeDegree&&(this._maxNodeDegree=t),e=this.getNext(e)}while(e!==this._startDe);this._maxNodeDegree*=2},Rt.prototype.addPoints=function(e,t,n){var r=e.getCoordinates();if(t){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var a=r.length-2;n&&(a=r.length-1);for(var s=a;s>=0;s--)this._pts.add(r[s])}},Rt.prototype.isHole=function(){return this._isHole},Rt.prototype.setInResult=function(){var e=this._startDe;do{e.getEdge().setInResult(!0),e=e.getNext()}while(e!==this._startDe)},Rt.prototype.containsPoint=function(e){var t=this.getLinearRing();if(!t.getEnvelopeInternal().contains(e))return!1;if(!se.isPointInRing(e,t.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(e))return!1;return!0},Rt.prototype.addHole=function(e){this._holes.add(e)},Rt.prototype.isShell=function(){return null===this._shell},Rt.prototype.getLabel=function(){return this._label},Rt.prototype.getEdges=function(){return this._edges},Rt.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Rt.prototype.getShell=function(){return this._shell},Rt.prototype.mergeLabel=function(){if(1===arguments.length){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(2===arguments.length){var t=arguments[1],n=arguments[0].getLocation(t,St.RIGHT);if(n===E.NONE)return null;if(this._label.getLocation(t)===E.NONE)return this._label.setLocation(t,n),null}},Rt.prototype.setShell=function(e){this._shell=e,null!==e&&e.addHole(this)},Rt.prototype.toPolygon=function(e){for(var t=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)t[n]=this._holes.get(n).getLinearRing();return e.createPolygon(this.getLinearRing(),t)},Rt.prototype.interfaces_=function(){return[]},Rt.prototype.getClass=function(){return Rt};var jt=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setEdgeRing=function(e,t){e.setMinEdgeRing(t)},t.prototype.getNext=function(e){return e.getNextMin()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Rt),Dt=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildMinimalRings=function(){var e=new ke,t=this._startDe;do{if(null===t.getMinEdgeRing()){var n=new jt(t,this._geometryFactory);e.add(n)}t=t.getNext()}while(t!==this._startDe);return e},t.prototype.setEdgeRing=function(e,t){e.setEdgeRing(t)},t.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var e=this._startDe;do{e.getNode().getEdges().linkMinimalDirectedEdges(this),e=e.getNext()}while(e!==this._startDe)},t.prototype.getNext=function(e){return e.getNext()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Rt),At=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._label=e}};At.prototype.setVisited=function(e){this._isVisited=e},At.prototype.setInResult=function(e){this._isInResult=e},At.prototype.isCovered=function(){return this._isCovered},At.prototype.isCoveredSet=function(){return this._isCoveredSet},At.prototype.setLabel=function(e){this._label=e},At.prototype.getLabel=function(){return this._label},At.prototype.setCovered=function(e){this._isCovered=e,this._isCoveredSet=!0},At.prototype.updateIM=function(e){te.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(e)},At.prototype.isInResult=function(){return this._isInResult},At.prototype.isVisited=function(){return this._isVisited},At.prototype.interfaces_=function(){return[]},At.prototype.getClass=function(){return At};var Nt=function(e){function t(){e.call(this),this._coord=null,this._edges=null;var t=arguments[0],n=arguments[1];this._coord=t,this._edges=n,this._label=new Lt(0,E.NONE)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isIncidentEdgeInResult=function(){for(var e=this.getEdges().getEdges().iterator();e.hasNext();)if(e.next().getEdge().isInResult())return!0;return!1},t.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},t.prototype.getCoordinate=function(){return this._coord},t.prototype.print=function(e){e.println("node "+this._coord+" lbl: "+this._label)},t.prototype.computeIM=function(e){},t.prototype.computeMergedLocation=function(e,t){var n=E.NONE;if(n=this._label.getLocation(t),!e.isNull(t)){var r=e.getLocation(t);n!==E.BOUNDARY&&(n=r)}return n},t.prototype.setLabel=function(){if(2!==arguments.length)return e.prototype.setLabel.apply(this,arguments);var t=arguments[0],n=arguments[1];null===this._label?this._label=new Lt(t,n):this._label.setLocation(t,n)},t.prototype.getEdges=function(){return this._edges},t.prototype.mergeLabel=function(){if(arguments[0]instanceof t){var e=arguments[0];this.mergeLabel(e._label)}else if(arguments[0]instanceof Lt)for(var n=arguments[0],r=0;r<2;r++){var i=this.computeMergedLocation(n,r);this._label.getLocation(r)===E.NONE&&this._label.setLocation(r,i)}},t.prototype.add=function(e){this._edges.insert(e),e.setNode(this)},t.prototype.setLabelBoundary=function(e){if(null===this._label)return null;var t=E.NONE;null!==this._label&&(t=this._label.getLocation(e));var n=null;switch(t){case E.BOUNDARY:n=E.INTERIOR;break;case E.INTERIOR:default:n=E.BOUNDARY}this._label.setLocation(e,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(At),Ft=function(){this.nodeMap=new d,this.nodeFact=null;var e=arguments[0];this.nodeFact=e};Ft.prototype.find=function(e){return this.nodeMap.get(e)},Ft.prototype.addNode=function(){if(arguments[0]instanceof C){var e=arguments[0],t=this.nodeMap.get(e);return null===t&&(t=this.nodeFact.createNode(e),this.nodeMap.put(e,t)),t}if(arguments[0]instanceof Nt){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},Ft.prototype.print=function(e){for(var t=this.iterator();t.hasNext();)t.next().print(e)},Ft.prototype.iterator=function(){return this.nodeMap.values().iterator()},Ft.prototype.values=function(){return this.nodeMap.values()},Ft.prototype.getBoundaryNodes=function(e){for(var t=new ke,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(e)===E.BOUNDARY&&t.add(r)}return t},Ft.prototype.add=function(e){var t=e.getCoordinate();this.addNode(t).add(e)},Ft.prototype.interfaces_=function(){return[]},Ft.prototype.getClass=function(){return Ft};var zt=function(){},Bt={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};zt.prototype.interfaces_=function(){return[]},zt.prototype.getClass=function(){return zt},zt.isNorthern=function(e){return e===zt.NE||e===zt.NW},zt.isOpposite=function(e,t){return e!==t&&2===(e-t+4)%4},zt.commonHalfPlane=function(e,t){if(e===t)return e;if(2===(e-t+4)%4)return-1;var n=e<t?e:t;return 0===n&&3===(e>t?e:t)?3:n},zt.isInHalfPlane=function(e,t){return t===zt.SE?e===zt.SE||e===zt.SW:e===t||e===t+1},zt.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new v("Cannot compute the quadrant for point ( "+e+", "+t+" )");return e>=0?t>=0?zt.NE:zt.SE:t>=0?zt.NW:zt.SW}if(arguments[0]instanceof C&&arguments[1]instanceof C){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new v("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?zt.NE:zt.SE:r.y>=n.y?zt.NW:zt.SW}},Bt.NE.get=function(){return 0},Bt.NW.get=function(){return 1},Bt.SW.get=function(){return 2},Bt.SE.get=function(){return 3},Object.defineProperties(zt,Bt);var Ut=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var e=arguments[0];this._edge=e}else if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];this._edge=t,this.init(n,r),this._label=null}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this._edge=i,this.init(o,a),this._label=s}};Ut.prototype.compareDirection=function(e){return this._dx===e._dx&&this._dy===e._dy?0:this._quadrant>e._quadrant?1:this._quadrant<e._quadrant?-1:se.computeOrientation(e._p0,e._p1,this._p1)},Ut.prototype.getDy=function(){return this._dy},Ut.prototype.getCoordinate=function(){return this._p0},Ut.prototype.setNode=function(e){this._node=e},Ut.prototype.print=function(e){var t=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);e.print("  "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+"   "+this._label)},Ut.prototype.compareTo=function(e){var t=e;return this.compareDirection(t)},Ut.prototype.getDirectedCoordinate=function(){return this._p1},Ut.prototype.getDx=function(){return this._dx},Ut.prototype.getLabel=function(){return this._label},Ut.prototype.getEdge=function(){return this._edge},Ut.prototype.getQuadrant=function(){return this._quadrant},Ut.prototype.getNode=function(){return this._node},Ut.prototype.toString=function(){var e=Math.atan2(this._dy,this._dx),t=this.getClass().getName(),n=t.lastIndexOf(".");return"  "+t.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+"   "+this._label},Ut.prototype.computeLabel=function(e){},Ut.prototype.init=function(e,t){this._p0=e,this._p1=t,this._dx=t.x-e.x,this._dy=t.y-e.y,this._quadrant=zt.quadrant(this._dx,this._dy),te.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},Ut.prototype.interfaces_=function(){return[w]},Ut.prototype.getClass=function(){return Ut};var $t=function(e){function t(){var t=arguments[0],n=arguments[1];if(e.call(this,t),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var r=t.getNumPoints()-1;this.init(t.getCoordinate(r),t.getCoordinate(r-1))}this.computeDirectedLabel()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getNextMin=function(){return this._nextMin},t.prototype.getDepth=function(e){return this._depth[e]},t.prototype.setVisited=function(e){this._isVisited=e},t.prototype.computeDirectedLabel=function(){this._label=new Lt(this._edge.getLabel()),this._isForward||this._label.flip()},t.prototype.getNext=function(){return this._next},t.prototype.setDepth=function(e,t){if(-999!==this._depth[e]&&this._depth[e]!==t)throw new Et("assigned depths do not match",this.getCoordinate());this._depth[e]=t},t.prototype.isInteriorAreaEdge=function(){for(var e=!0,t=0;t<2;t++)this._label.isArea(t)&&this._label.getLocation(t,St.LEFT)===E.INTERIOR&&this._label.getLocation(t,St.RIGHT)===E.INTERIOR||(e=!1);return e},t.prototype.setNextMin=function(e){this._nextMin=e},t.prototype.print=function(t){e.prototype.print.call(this,t),t.print(" "+this._depth[St.LEFT]+"/"+this._depth[St.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},t.prototype.setMinEdgeRing=function(e){this._minEdgeRing=e},t.prototype.isLineEdge=function(){var e=this._label.isLine(0)||this._label.isLine(1),t=!this._label.isArea(0)||this._label.allPositionsEqual(0,E.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,E.EXTERIOR);return e&&t&&n},t.prototype.setEdgeRing=function(e){this._edgeRing=e},t.prototype.getMinEdgeRing=function(){return this._minEdgeRing},t.prototype.getDepthDelta=function(){var e=this._edge.getDepthDelta();return this._isForward||(e=-e),e},t.prototype.setInResult=function(e){this._isInResult=e},t.prototype.getSym=function(){return this._sym},t.prototype.isForward=function(){return this._isForward},t.prototype.getEdge=function(){return this._edge},t.prototype.printEdge=function(e){this.print(e),e.print(" "),this._isForward?this._edge.print(e):this._edge.printReverse(e)},t.prototype.setSym=function(e){this._sym=e},t.prototype.setVisitedEdge=function(e){this.setVisited(e),this._sym.setVisited(e)},t.prototype.setEdgeDepths=function(e,t){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;e===St.LEFT&&(r=-1);var i=St.opposite(e),o=t+n*r;this.setDepth(e,t),this.setDepth(i,o)},t.prototype.getEdgeRing=function(){return this._edgeRing},t.prototype.isInResult=function(){return this._isInResult},t.prototype.setNext=function(e){this._next=e},t.prototype.isVisited=function(){return this._isVisited},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.depthFactor=function(e,t){return e===E.EXTERIOR&&t===E.INTERIOR?1:e===E.INTERIOR&&t===E.EXTERIOR?-1:0},t}(Ut),Vt=function(){};Vt.prototype.createNode=function(e){return new Nt(e,null)},Vt.prototype.interfaces_=function(){return[]},Vt.prototype.getClass=function(){return Vt};var qt=function(){if(this._edges=new ke,this._nodes=null,this._edgeEndList=new ke,0===arguments.length)this._nodes=new Ft(new Vt);else if(1===arguments.length){var e=arguments[0];this._nodes=new Ft(e)}};qt.prototype.printEdges=function(e){e.println("Edges:");for(var t=0;t<this._edges.size();t++){e.println("edge "+t+":");var n=this._edges.get(t);n.print(e),n.eiList.print(e)}},qt.prototype.find=function(e){return this._nodes.find(e)},qt.prototype.addNode=function(){if(arguments[0]instanceof Nt){var e=arguments[0];return this._nodes.addNode(e)}if(arguments[0]instanceof C){var t=arguments[0];return this._nodes.addNode(t)}},qt.prototype.getNodeIterator=function(){return this._nodes.iterator()},qt.prototype.linkResultDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()},qt.prototype.debugPrintln=function(e){q.out.println(e)},qt.prototype.isBoundaryNode=function(e,t){var n=this._nodes.find(t);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(e)===E.BOUNDARY},qt.prototype.linkAllDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkAllDirectedEdges()},qt.prototype.matchInSameDirection=function(e,t,n,r){return!!e.equals(n)&&se.computeOrientation(e,t,r)===se.COLLINEAR&&zt.quadrant(e,t)===zt.quadrant(n,r)},qt.prototype.getEdgeEnds=function(){return this._edgeEndList},qt.prototype.debugPrint=function(e){q.out.print(e)},qt.prototype.getEdgeIterator=function(){return this._edges.iterator()},qt.prototype.findEdgeInSameDirection=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(this.matchInSameDirection(e,t,i[0],i[1]))return r;if(this.matchInSameDirection(e,t,i[i.length-1],i[i.length-2]))return r}return null},qt.prototype.insertEdge=function(e){this._edges.add(e)},qt.prototype.findEdgeEnd=function(e){for(var t=this.getEdgeEnds().iterator();t.hasNext();){var n=t.next();if(n.getEdge()===e)return n}return null},qt.prototype.addEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this._edges.add(n);var r=new $t(n,!0),i=new $t(n,!1);r.setSym(i),i.setSym(r),this.add(r),this.add(i)}},qt.prototype.add=function(e){this._nodes.add(e),this._edgeEndList.add(e)},qt.prototype.getNodes=function(){return this._nodes.values()},qt.prototype.findEdge=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(e.equals(i[0])&&t.equals(i[1]))return r}return null},qt.prototype.interfaces_=function(){return[]},qt.prototype.getClass=function(){return qt},qt.linkResultDirectedEdges=function(e){for(var t=e.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()};var Zt=function(){this._geometryFactory=null,this._shellList=new ke;var e=arguments[0];this._geometryFactory=e};Zt.prototype.sortShellsAndHoles=function(e,t,n){for(var r=e.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):t.add(i)}},Zt.prototype.computePolygons=function(e){for(var t=new ke,n=e.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);t.add(r)}return t},Zt.prototype.placeFreeHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,e);if(null===i)throw new Et("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},Zt.prototype.buildMinimalEdgeRings=function(e,t,n){for(var r=new ke,i=e.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),t.add(s)):n.addAll(a)}else r.add(o)}return r},Zt.prototype.containsPoint=function(e){for(var t=this._shellList.iterator();t.hasNext();)if(t.next().containsPoint(e))return!0;return!1},Zt.prototype.buildMaximalEdgeRings=function(e){for(var t=new ke,n=e.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Dt(r,this._geometryFactory);t.add(i),i.setInResult()}}return t},Zt.prototype.placePolygonHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(e)}},Zt.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Zt.prototype.findEdgeRingContaining=function(e,t){for(var n=e.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,a=null,s=t.iterator();s.hasNext();){var l=s.next(),c=l.getLinearRing(),u=c.getEnvelopeInternal();null!==o&&(a=o.getLinearRing().getEnvelopeInternal());var d=!1;u.contains(r)&&se.isPointInRing(i,c.getCoordinates())&&(d=!0),d&&(null===o||a.contains(u))&&(o=l)}return o},Zt.prototype.findShell=function(e){for(var t=0,n=null,r=e.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,t++)}return te.isTrue(t<=1,"found two shells in MinimalEdgeRing list"),n},Zt.prototype.add=function(){if(1===arguments.length){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(2===arguments.length){var t=arguments[0],n=arguments[1];qt.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(t),i=new ke,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Zt.prototype.interfaces_=function(){return[]},Zt.prototype.getClass=function(){return Zt};var Ht=function(){};Ht.prototype.getBounds=function(){},Ht.prototype.interfaces_=function(){return[]},Ht.prototype.getClass=function(){return Ht};var Gt=function(){this._bounds=null,this._item=null;var e=arguments[0],t=arguments[1];this._bounds=e,this._item=t};Gt.prototype.getItem=function(){return this._item},Gt.prototype.getBounds=function(){return this._bounds},Gt.prototype.interfaces_=function(){return[Ht,t]},Gt.prototype.getClass=function(){return Gt};var Wt=function(){this._size=null,this._items=null,this._size=0,this._items=new ke,this._items.add(null)};Wt.prototype.poll=function(){if(this.isEmpty())return null;var e=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),e},Wt.prototype.size=function(){return this._size},Wt.prototype.reorder=function(e){for(var t=null,n=this._items.get(e);2*e<=this._size&&((t=2*e)!==this._size&&this._items.get(t+1).compareTo(this._items.get(t))<0&&t++,this._items.get(t).compareTo(n)<0);e=t)this._items.set(e,this._items.get(t));this._items.set(e,n)},Wt.prototype.clear=function(){this._size=0,this._items.clear()},Wt.prototype.isEmpty=function(){return 0===this._size},Wt.prototype.add=function(e){this._items.add(null),this._size+=1;var t=this._size;for(this._items.set(0,e);e.compareTo(this._items.get(Math.trunc(t/2)))<0;t/=2)this._items.set(t,this._items.get(Math.trunc(t/2)));this._items.set(t,e)},Wt.prototype.interfaces_=function(){return[]},Wt.prototype.getClass=function(){return Wt};var Yt=function(){};Yt.prototype.visitItem=function(e){},Yt.prototype.interfaces_=function(){return[]},Yt.prototype.getClass=function(){return Yt};var Kt=function(){};Kt.prototype.insert=function(e,t){},Kt.prototype.remove=function(e,t){},Kt.prototype.query=function(){},Kt.prototype.interfaces_=function(){return[]},Kt.prototype.getClass=function(){return Kt};var Xt=function(){if(this._childBoundables=new ke,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._level=e}},Jt={serialVersionUID:{configurable:!0}};Xt.prototype.getLevel=function(){return this._level},Xt.prototype.size=function(){return this._childBoundables.size()},Xt.prototype.getChildBoundables=function(){return this._childBoundables},Xt.prototype.addChildBoundable=function(e){te.isTrue(null===this._bounds),this._childBoundables.add(e)},Xt.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Xt.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Xt.prototype.interfaces_=function(){return[Ht,t]},Xt.prototype.getClass=function(){return Xt},Jt.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Xt,Jt);var Qt=function(){};Qt.reverseOrder=function(){return{compare:function(e,t){return t.compareTo(e)}}},Qt.min=function(e){return Qt.sort(e),e.get(0)},Qt.sort=function(e,t){var n=e.toArray();t?Ne.sort(n,t):Ne.sort(n);for(var r=e.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},Qt.singletonList=function(e){var t=new ke;return t.add(e),t};var en=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var e=arguments[0],t=arguments[1],n=arguments[2];this._boundable1=e,this._boundable2=t,this._itemDistance=n,this._distance=this.distance()};en.prototype.expandToQueue=function(e,t){var n=en.isComposite(this._boundable1),r=en.isComposite(this._boundable2);if(n&&r)return en.area(this._boundable1)>en.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,e,t),null):(this.expand(this._boundable2,this._boundable1,e,t),null);if(n)return this.expand(this._boundable1,this._boundable2,e,t),null;if(r)return this.expand(this._boundable2,this._boundable1,e,t),null;throw new v("neither boundable is composite")},en.prototype.isLeaves=function(){return!(en.isComposite(this._boundable1)||en.isComposite(this._boundable2))},en.prototype.compareTo=function(e){var t=e;return this._distance<t._distance?-1:this._distance>t._distance?1:0},en.prototype.expand=function(e,t,n,r){for(var i=e.getChildBoundables().iterator();i.hasNext();){var o=i.next(),a=new en(o,t,this._itemDistance);a.getDistance()<r&&n.add(a)}},en.prototype.getBoundable=function(e){return 0===e?this._boundable1:this._boundable2},en.prototype.getDistance=function(){return this._distance},en.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},en.prototype.interfaces_=function(){return[w]},en.prototype.getClass=function(){return en},en.area=function(e){return e.getBounds().getArea()},en.isComposite=function(e){return e instanceof Xt};var tn=function e(){if(this._root=null,this._built=!1,this._itemBoundables=new ke,this._nodeCapacity=null,0===arguments.length){var t=e.DEFAULT_NODE_CAPACITY;this._nodeCapacity=t}else if(1===arguments.length){var n=arguments[0];te.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};tn.prototype.getNodeCapacity=function(){return this._nodeCapacity},tn.prototype.lastNode=function(e){return e.get(e.size()-1)},tn.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();n instanceof Xt?e+=this.size(n):n instanceof Gt&&(e+=1)}return e}},tn.prototype.removeItem=function(e,t){for(var n=null,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof Gt&&i.getItem()===t&&(n=i)}return null!==n&&(e.getChildBoundables().remove(n),!0)},tn.prototype.itemsTree=function(){if(0===arguments.length){this.build();var e=this.itemsTree(this._root);return null===e?new ke:e}if(1===arguments.length){for(var t=arguments[0],n=new ke,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof Xt){var o=this.itemsTree(i);null!==o&&n.add(o)}else i instanceof Gt?n.add(i.getItem()):te.shouldNeverReachHere()}return n.size()<=0?null:n}},tn.prototype.insert=function(e,t){te.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Gt(e,t))},tn.prototype.boundablesAtLevel=function(){if(1===arguments.length){var e=arguments[0],t=new ke;return this.boundablesAtLevel(e,this._root,t),t}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];if(te.isTrue(n>-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof Xt?this.boundablesAtLevel(n,a,i):(te.isTrue(a instanceof Gt),-1===n&&i.add(a))}return null}},tn.prototype.query=function(){if(1===arguments.length){var e=arguments[0];this.build();var t=new ke;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.query(e,this._root,t),t}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,r)}else if(3===arguments.length)if(I(arguments[2],Yt)&&arguments[0]instanceof Object&&arguments[1]instanceof Xt)for(var i=arguments[0],o=arguments[2],a=arguments[1].getChildBoundables(),s=0;s<a.size();s++){var l=a.get(s);this.getIntersectsOp().intersects(l.getBounds(),i)&&(l instanceof Xt?this.query(i,l,o):l instanceof Gt?o.visitItem(l.getItem()):te.shouldNeverReachHere())}else if(I(arguments[2],xe)&&arguments[0]instanceof Object&&arguments[1]instanceof Xt)for(var c=arguments[0],u=arguments[2],d=arguments[1].getChildBoundables(),p=0;p<d.size();p++){var h=d.get(p);this.getIntersectsOp().intersects(h.getBounds(),c)&&(h instanceof Xt?this.query(c,h,u):h instanceof Gt?u.add(h.getItem()):te.shouldNeverReachHere())}},tn.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},tn.prototype.getRoot=function(){return this.build(),this._root},tn.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.remove(e,this._root,t)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var a=null,s=r.getChildBoundables().iterator();s.hasNext();){var l=s.next();if(this.getIntersectsOp().intersects(l.getBounds(),n)&&l instanceof Xt&&(o=this.remove(n,l,i))){a=l;break}}return null!==a&&a.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(a),o}},tn.prototype.createHigherLevels=function(e,t){te.isTrue(!e.isEmpty());var n=this.createParentBoundables(e,t+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,t+1)},tn.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();if(n instanceof Xt){var r=this.depth(n);r>e&&(e=r)}}return e+1}},tn.prototype.createParentBoundables=function(e,t){te.isTrue(!e.isEmpty());var n=new ke;n.add(this.createNode(t));var r=new ke(e);Qt.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(t)),this.lastNode(n).addChildBoundable(o)}return n},tn.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},tn.prototype.interfaces_=function(){return[t]},tn.prototype.getClass=function(){return tn},tn.compareDoubles=function(e,t){return e>t?1:e<t?-1:0},nn.IntersectsOp.get=function(){return rn},nn.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},nn.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(tn,nn);var rn=function(){},on=function(){};on.prototype.distance=function(e,t){},on.prototype.interfaces_=function(){return[]},on.prototype.getClass=function(){return on};var an=function(e){function n(t){t=t||n.DEFAULT_NODE_CAPACITY,e.call(this,t)}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var r={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return n.prototype.createParentBoundablesFromVerticalSlices=function(e,t){te.isTrue(e.length>0);for(var n=new ke,r=0;r<e.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(e[r],t));return n},n.prototype.createNode=function(e){return new sn(e)},n.prototype.size=function(){return 0===arguments.length?e.prototype.size.call(this):e.prototype.size.apply(this,arguments)},n.prototype.insert=function(){if(2!==arguments.length)return e.prototype.insert.apply(this,arguments);var t=arguments[0],n=arguments[1];if(t.isNull())return null;e.prototype.insert.call(this,t,n)},n.prototype.getIntersectsOp=function(){return n.intersectsOp},n.prototype.verticalSlices=function(e,t){for(var n=Math.trunc(Math.ceil(e.size()/t)),r=new Array(t).fill(null),i=e.iterator(),o=0;o<t;o++){r[o]=new ke;for(var a=0;i.hasNext()&&a<n;){var s=i.next();r[o].add(s),a++}}return r},n.prototype.query=function(){if(1===arguments.length){var t=arguments[0];return e.prototype.query.call(this,t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];e.prototype.query.call(this,n,r)}else if(3===arguments.length)if(I(arguments[2],Yt)&&arguments[0]instanceof Object&&arguments[1]instanceof Xt){var i=arguments[0],o=arguments[1],a=arguments[2];e.prototype.query.call(this,i,o,a)}else if(I(arguments[2],xe)&&arguments[0]instanceof Object&&arguments[1]instanceof Xt){var s=arguments[0],l=arguments[1],c=arguments[2];e.prototype.query.call(this,s,l,c)}},n.prototype.getComparator=function(){return n.yComparator},n.prototype.createParentBoundablesFromVerticalSlice=function(t,n){return e.prototype.createParentBoundables.call(this,t,n)},n.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return e.prototype.remove.call(this,t,n)}return e.prototype.remove.apply(this,arguments)},n.prototype.depth=function(){return 0===arguments.length?e.prototype.depth.call(this):e.prototype.depth.apply(this,arguments)},n.prototype.createParentBoundables=function(e,t){te.isTrue(!e.isEmpty());var r=Math.trunc(Math.ceil(e.size()/this.getNodeCapacity())),i=new ke(e);Qt.sort(i,n.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,t)},n.prototype.nearestNeighbour=function(){if(1===arguments.length){if(I(arguments[0],on)){var e=arguments[0],t=new en(this.getRoot(),this.getRoot(),e);return this.nearestNeighbour(t)}if(arguments[0]instanceof en){var r=arguments[0];return this.nearestNeighbour(r,b.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof n&&I(arguments[1],on)){var i=arguments[0],o=arguments[1],a=new en(this.getRoot(),i.getRoot(),o);return this.nearestNeighbour(a)}if(arguments[0]instanceof en&&"number"==typeof arguments[1]){var s=arguments[0],l=arguments[1],c=null,u=new Wt;for(u.add(s);!u.isEmpty()&&l>0;){var d=u.poll(),p=d.getDistance();if(p>=l)break;d.isLeaves()?(l=p,c=d):d.expandToQueue(u,l)}return[c.getBoundable(0).getItem(),c.getBoundable(1).getItem()]}}else if(3===arguments.length){var h=arguments[2],f=new Gt(arguments[0],arguments[1]),m=new en(this.getRoot(),f,h);return this.nearestNeighbour(m)[0]}},n.prototype.interfaces_=function(){return[Kt,t]},n.prototype.getClass=function(){return n},n.centreX=function(e){return n.avg(e.getMinX(),e.getMaxX())},n.avg=function(e,t){return(e+t)/2},n.centreY=function(e){return n.avg(e.getMinY(),e.getMaxY())},r.STRtreeNode.get=function(){return sn},r.serialVersionUID.get=function(){return 0x39920f7d5f261e0},r.xComparator.get=function(){return{interfaces_:function(){return[k]},compare:function(t,r){return e.compareDoubles(n.centreX(t.getBounds()),n.centreX(r.getBounds()))}}},r.yComparator.get=function(){return{interfaces_:function(){return[k]},compare:function(t,r){return e.compareDoubles(n.centreY(t.getBounds()),n.centreY(r.getBounds()))}}},r.intersectsOp.get=function(){return{interfaces_:function(){return[e.IntersectsOp]},intersects:function(e,t){return e.intersects(t)}}},r.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,r),n}(tn),sn=function(e){function t(){var t=arguments[0];e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.computeBounds=function(){for(var e=null,t=this.getChildBoundables().iterator();t.hasNext();){var n=t.next();null===e?e=new H(n.getBounds()):e.expandToInclude(n.getBounds())}return e},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Xt),ln=function(){};ln.prototype.interfaces_=function(){return[]},ln.prototype.getClass=function(){return ln},ln.relativeSign=function(e,t){return e<t?-1:e>t?1:0},ln.compare=function(e,t,n){if(t.equals2D(n))return 0;var r=ln.relativeSign(t.x,n.x),i=ln.relativeSign(t.y,n.y);switch(e){case 0:return ln.compareValue(r,i);case 1:return ln.compareValue(i,r);case 2:return ln.compareValue(i,-r);case 3:return ln.compareValue(-r,i);case 4:return ln.compareValue(-r,-i);case 5:return ln.compareValue(-i,-r);case 6:return ln.compareValue(-i,r);case 7:return ln.compareValue(r,-i)}return te.shouldNeverReachHere("invalid octant value"),0},ln.compareValue=function(e,t){return e<0?-1:e>0?1:t<0?-1:t>0?1:0};var cn=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._segString=e,this.coord=new C(t),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!t.equals2D(e.getCoordinate(n))};cn.prototype.getCoordinate=function(){return this.coord},cn.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)},cn.prototype.compareTo=function(e){var t=e;return this.segmentIndex<t.segmentIndex?-1:this.segmentIndex>t.segmentIndex?1:this.coord.equals2D(t.coord)?0:ln.compare(this._segmentOctant,this.coord,t.coord)},cn.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===e},cn.prototype.isInterior=function(){return this._isInterior},cn.prototype.interfaces_=function(){return[w]},cn.prototype.getClass=function(){return cn};var un=function(){this._nodeMap=new d,this._edge=null;var e=arguments[0];this._edge=e};un.prototype.getSplitCoordinates=function(){var e=new Se;this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next();this.addEdgeCoordinates(n,r,e),n=r}return e.toCoordinateArray()},un.prototype.addCollapsedNodes=function(){var e=new ke;this.findCollapsesFromInsertedNodes(e),this.findCollapsesFromExistingVertices(e);for(var t=e.iterator();t.hasNext();){var n=t.next().intValue();this.add(this._edge.getCoordinate(n),n)}},un.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},un.prototype.findCollapsesFromExistingVertices=function(e){for(var t=0;t<this._edge.size()-2;t++){var n=this._edge.getCoordinate(t),r=this._edge.getCoordinate(t+2);n.equals2D(r)&&e.add(new j(t+1))}},un.prototype.addEdgeCoordinates=function(e,t,n){var r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);n.add(new C(e.coord),!1);for(var o=e.segmentIndex+1;o<=t.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new C(t.coord))},un.prototype.iterator=function(){return this._nodeMap.values().iterator()},un.prototype.addSplitEdges=function(e){this.addEndpoints(),this.addCollapsedNodes();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},un.prototype.findCollapseIndex=function(e,t,n){if(!e.coord.equals2D(t.coord))return!1;var r=t.segmentIndex-e.segmentIndex;return t.isInterior()||r--,1===r&&(n[0]=e.segmentIndex+1,!0)},un.prototype.findCollapsesFromInsertedNodes=function(e){for(var t=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,t)&&e.add(new j(t[0])),r=i}},un.prototype.getEdge=function(){return this._edge},un.prototype.addEndpoints=function(){var e=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(e),e)},un.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new C(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this._edge.getCoordinate(s);return i&&(o[a]=new C(t.coord)),new fn(o,this._edge.getData())},un.prototype.add=function(e,t){var n=new cn(this._edge,e,t,this._edge.getSegmentOctant(t)),r=this._nodeMap.get(n);return null!==r?(te.isTrue(r.coord.equals2D(e),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},un.prototype.checkSplitEdgesCorrectness=function(e){var t=this._edge.getCoordinates(),n=e.get(0).getCoordinate(0);if(!n.equals2D(t[0]))throw new Q("bad split edge start point at "+n);var r=e.get(e.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(t[t.length-1]))throw new Q("bad split edge end point at "+i)},un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un};var dn=function(){};dn.prototype.interfaces_=function(){return[]},dn.prototype.getClass=function(){return dn},dn.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new v("Cannot compute the octant for point ( "+e+", "+t+" )");var n=Math.abs(e),r=Math.abs(t);return e>=0?t>=0?n>=r?0:1:n>=r?7:6:t>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof C&&arguments[1]instanceof C){var i=arguments[0],o=arguments[1],a=o.x-i.x,s=o.y-i.y;if(0===a&&0===s)throw new v("Cannot compute the octant for two identical points "+i);return dn.octant(a,s)}};var pn=function(){};pn.prototype.getCoordinates=function(){},pn.prototype.size=function(){},pn.prototype.getCoordinate=function(e){},pn.prototype.isClosed=function(){},pn.prototype.setData=function(e){},pn.prototype.getData=function(){},pn.prototype.interfaces_=function(){return[]},pn.prototype.getClass=function(){return pn};var hn=function(){};hn.prototype.addIntersection=function(e,t){},hn.prototype.interfaces_=function(){return[pn]},hn.prototype.getClass=function(){return hn};var fn=function(){this._nodeList=new un(this),this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};fn.prototype.getCoordinates=function(){return this._pts},fn.prototype.size=function(){return this._pts.length},fn.prototype.getCoordinate=function(e){return this._pts[e]},fn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},fn.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))},fn.prototype.setData=function(e){this._data=e},fn.prototype.safeOctant=function(e,t){return e.equals2D(t)?0:dn.octant(e,t)},fn.prototype.getData=function(){return this._data},fn.prototype.addIntersection=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.addIntersectionNode(e,t)}else if(4===arguments.length){var n=arguments[1],r=arguments[3],i=new C(arguments[0].getIntersection(r));this.addIntersection(i,n)}},fn.prototype.toString=function(){return J.toLineString(new lt(this._pts))},fn.prototype.getNodeList=function(){return this._nodeList},fn.prototype.addIntersectionNode=function(e,t){var n=t,r=n+1;if(r<this._pts.length){var i=this._pts[r];e.equals2D(i)&&(n=r)}return this._nodeList.add(e,n)},fn.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},fn.prototype.interfaces_=function(){return[hn]},fn.prototype.getClass=function(){return fn},fn.getNodedSubstrings=function(){if(1===arguments.length){var e=arguments[0],t=new ke;return fn.getNodedSubstrings(e,t),t}if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(n)};var mn=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new C,this.p1=new C;else if(1===arguments.length){var e=arguments[0];this.p0=new C(e.p0),this.p1=new C(e.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new C(t,n),this.p1=new C(r,i)}},gn={serialVersionUID:{configurable:!0}};mn.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},mn.prototype.orientationIndex=function(){if(arguments[0]instanceof mn){var e=arguments[0],t=se.orientationIndex(this.p0,this.p1,e.p0),n=se.orientationIndex(this.p0,this.p1,e.p1);return t>=0&&n>=0||t<=0&&n<=0?Math.max(t,n):0}if(arguments[0]instanceof C){var r=arguments[0];return se.orientationIndex(this.p0,this.p1,r)}},mn.prototype.toGeometry=function(e){return e.createLineString([this.p0,this.p1])},mn.prototype.isVertical=function(){return this.p0.x===this.p1.x},mn.prototype.equals=function(e){if(!(e instanceof mn))return!1;var t=e;return this.p0.equals(t.p0)&&this.p1.equals(t.p1)},mn.prototype.intersection=function(e){var t=new ie;return t.computeIntersection(this.p0,this.p1,e.p0,e.p1),t.hasIntersection()?t.getIntersection(0):null},mn.prototype.project=function(){if(arguments[0]instanceof C){var e=arguments[0];if(e.equals(this.p0)||e.equals(this.p1))return new C(e);var t=this.projectionFactor(e),n=new C;return n.x=this.p0.x+t*(this.p1.x-this.p0.x),n.y=this.p0.y+t*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof mn){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var a=this.project(r.p0);i<0&&(a=this.p0),i>1&&(a=this.p1);var s=this.project(r.p1);return o<0&&(s=this.p0),o>1&&(s=this.p1),new mn(a,s)}},mn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},mn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},mn.prototype.getCoordinate=function(e){return 0===e?this.p0:this.p1},mn.prototype.distancePerpendicular=function(e){return se.distancePointLinePerpendicular(e,this.p0,this.p1)},mn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},mn.prototype.midPoint=function(){return mn.midPoint(this.p0,this.p1)},mn.prototype.projectionFactor=function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var t=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=t*t+n*n;return r<=0?b.NaN:((e.x-this.p0.x)*t+(e.y-this.p0.y)*n)/r},mn.prototype.closestPoints=function(e){var t=this.intersection(e);if(null!==t)return[t,t];var n=new Array(2).fill(null),r=b.MAX_VALUE,i=null,o=this.closestPoint(e.p0);r=o.distance(e.p0),n[0]=o,n[1]=e.p0;var a=this.closestPoint(e.p1);(i=a.distance(e.p1))<r&&(r=i,n[0]=a,n[1]=e.p1);var s=e.closestPoint(this.p0);(i=s.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=s);var l=e.closestPoint(this.p1);return(i=l.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=l),n},mn.prototype.closestPoint=function(e){var t=this.projectionFactor(e);return t>0&&t<1?this.project(e):this.p0.distance(e)<this.p1.distance(e)?this.p0:this.p1},mn.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},mn.prototype.getLength=function(){return this.p0.distance(this.p1)},mn.prototype.compareTo=function(e){var t=e,n=this.p0.compareTo(t.p0);return 0!==n?n:this.p1.compareTo(t.p1)},mn.prototype.reverse=function(){var e=this.p0;this.p0=this.p1,this.p1=e},mn.prototype.equalsTopo=function(e){return this.p0.equals(e.p0)&&(this.p1.equals(e.p1)||this.p0.equals(e.p1))&&this.p1.equals(e.p0)},mn.prototype.lineIntersection=function(e){try{return Z.intersection(this.p0,this.p1,e.p0,e.p1)}catch(e){if(!(e instanceof V))throw e}return null},mn.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},mn.prototype.pointAlongOffset=function(e,t){var n=this.p0.x+e*(this.p1.x-this.p0.x),r=this.p0.y+e*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(i*i+o*o),s=0,l=0;if(0!==t){if(a<=0)throw new Error("Cannot compute offset from zero-length line segment");s=t*i/a,l=t*o/a}return new C(n-l,r+s)},mn.prototype.setCoordinates=function(){if(1===arguments.length){var e=arguments[0];this.setCoordinates(e.p0,e.p1)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.p0.x=t.x,this.p0.y=t.y,this.p1.x=n.x,this.p1.y=n.y}},mn.prototype.segmentFraction=function(e){var t=this.projectionFactor(e);return t<0?t=0:(t>1||b.isNaN(t))&&(t=1),t},mn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},mn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},mn.prototype.distance=function(){if(arguments[0]instanceof mn){var e=arguments[0];return se.distanceLineLine(this.p0,this.p1,e.p0,e.p1)}if(arguments[0]instanceof C){var t=arguments[0];return se.distancePointLine(t,this.p0,this.p1)}},mn.prototype.pointAlong=function(e){var t=new C;return t.x=this.p0.x+e*(this.p1.x-this.p0.x),t.y=this.p0.y+e*(this.p1.y-this.p0.y),t},mn.prototype.hashCode=function(){var e=b.doubleToLongBits(this.p0.x);e^=31*b.doubleToLongBits(this.p0.y);var t=Math.trunc(e)^Math.trunc(e>>32),n=b.doubleToLongBits(this.p1.x);return n^=31*b.doubleToLongBits(this.p1.y),t^Math.trunc(n)^Math.trunc(n>>32)},mn.prototype.interfaces_=function(){return[w,t]},mn.prototype.getClass=function(){return mn},mn.midPoint=function(e,t){return new C((e.x+t.x)/2,(e.y+t.y)/2)},gn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(mn,gn);var yn=function(){this.tempEnv1=new H,this.tempEnv2=new H,this._overlapSeg1=new mn,this._overlapSeg2=new mn};yn.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[3];arguments[0].getLineSegment(e,this._overlapSeg1),t.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},yn.prototype.interfaces_=function(){return[]},yn.prototype.getClass=function(){return yn};var vn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._pts=e,this._start=t,this._end=n,this._context=r};vn.prototype.getLineSegment=function(e,t){t.p0=this._pts[e],t.p1=this._pts[e+1]},vn.prototype.computeSelect=function(e,t,n,r){var i=this._pts[t],o=this._pts[n];if(r.tempEnv1.init(i,o),n-t==1)return r.select(this,t),null;if(!e.intersects(r.tempEnv1))return null;var a=Math.trunc((t+n)/2);t<a&&this.computeSelect(e,t,a,r),a<n&&this.computeSelect(e,a,n,r)},vn.prototype.getCoordinates=function(){for(var e=new Array(this._end-this._start+1).fill(null),t=0,n=this._start;n<=this._end;n++)e[t++]=this._pts[n];return e},vn.prototype.computeOverlaps=function(e,t){this.computeOverlapsInternal(this._start,this._end,e,e._start,e._end,t)},vn.prototype.setId=function(e){this._id=e},vn.prototype.select=function(e,t){this.computeSelect(e,this._start,this._end,t)},vn.prototype.getEnvelope=function(){if(null===this._env){var e=this._pts[this._start],t=this._pts[this._end];this._env=new H(e,t)}return this._env},vn.prototype.getEndIndex=function(){return this._end},vn.prototype.getStartIndex=function(){return this._start},vn.prototype.getContext=function(){return this._context},vn.prototype.getId=function(){return this._id},vn.prototype.computeOverlapsInternal=function(e,t,n,r,i,o){var a=this._pts[e],s=this._pts[t],l=n._pts[r],c=n._pts[i];if(t-e==1&&i-r==1)return o.overlap(this,e,n,r),null;if(o.tempEnv1.init(a,s),o.tempEnv2.init(l,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var u=Math.trunc((e+t)/2),d=Math.trunc((r+i)/2);e<u&&(r<d&&this.computeOverlapsInternal(e,u,n,r,d,o),d<i&&this.computeOverlapsInternal(e,u,n,d,i,o)),u<t&&(r<d&&this.computeOverlapsInternal(u,t,n,r,d,o),d<i&&this.computeOverlapsInternal(u,t,n,d,i,o))},vn.prototype.interfaces_=function(){return[]},vn.prototype.getClass=function(){return vn};var bn=function(){};bn.prototype.interfaces_=function(){return[]},bn.prototype.getClass=function(){return bn},bn.getChainStartIndices=function(e){var t=0,n=new ke;n.add(new j(t));do{var r=bn.findChainEnd(e,t);n.add(new j(r)),t=r}while(t<e.length-1);return bn.toIntArray(n)},bn.findChainEnd=function(e,t){for(var n=t;n<e.length-1&&e[n].equals2D(e[n+1]);)n++;if(n>=e.length-1)return e.length-1;for(var r=zt.quadrant(e[n],e[n+1]),i=t+1;i<e.length&&(e[i-1].equals2D(e[i])||zt.quadrant(e[i-1],e[i])===r);)i++;return i-1},bn.getChains=function(){if(1===arguments.length){var e=arguments[0];return bn.getChains(e,null)}if(2===arguments.length){for(var t=arguments[0],n=arguments[1],r=new ke,i=bn.getChainStartIndices(t),o=0;o<i.length-1;o++){var a=new vn(t,i[o],i[o+1],n);r.add(a)}return r}},bn.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var _n=function(){};_n.prototype.computeNodes=function(e){},_n.prototype.getNodedSubstrings=function(){},_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n};var wn=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setSegmentIntersector(e)}};wn.prototype.setSegmentIntersector=function(e){this._segInt=e},wn.prototype.interfaces_=function(){return[_n]},wn.prototype.getClass=function(){return wn};var xn=function(e){function t(t){t?e.call(this,t):e.call(this),this._monoChains=new ke,this._index=new an,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={SegmentOverlapAction:{configurable:!0}};return t.prototype.getMonotoneChains=function(){return this._monoChains},t.prototype.getNodedSubstrings=function(){return fn.getNodedSubstrings(this._nodedSegStrings)},t.prototype.getIndex=function(){return this._index},t.prototype.add=function(e){for(var t=bn.getChains(e.getCoordinates(),e).iterator();t.hasNext();){var n=t.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},t.prototype.computeNodes=function(e){this._nodedSegStrings=e;for(var t=e.iterator();t.hasNext();)this.add(t.next());this.intersectChains()},t.prototype.intersectChains=function(){for(var e=new kn(this._segInt),t=this._monoChains.iterator();t.hasNext();)for(var n=t.next(),r=this._index.query(n.getEnvelope()).iterator();r.hasNext();){var i=r.next();if(i.getId()>n.getId()&&(n.computeOverlaps(i,e),this._nOverlaps++),this._segInt.isDone())return null}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.SegmentOverlapAction.get=function(){return kn},Object.defineProperties(t,n),t}(wn),kn=function(e){function t(){e.call(this),this._si=null;var t=arguments[0];this._si=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.overlap=function(){if(4!==arguments.length)return e.prototype.overlap.apply(this,arguments);var t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[0].getContext(),o=n.getContext();this._si.processIntersections(i,t,o,r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(yn),Cn=function e(){if(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=e.CAP_ROUND,this._joinStyle=e.JOIN_ROUND,this._mitreLimit=e.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=e.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(a),this.setMitreLimit(s)}},Sn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Cn.prototype.getEndCapStyle=function(){return this._endCapStyle},Cn.prototype.isSingleSided=function(){return this._isSingleSided},Cn.prototype.setQuadrantSegments=function(e){this._quadrantSegments=e,0===this._quadrantSegments&&(this._joinStyle=Cn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Cn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),e<=0&&(this._quadrantSegments=1),this._joinStyle!==Cn.JOIN_ROUND&&(this._quadrantSegments=Cn.DEFAULT_QUADRANT_SEGMENTS)},Cn.prototype.getJoinStyle=function(){return this._joinStyle},Cn.prototype.setJoinStyle=function(e){this._joinStyle=e},Cn.prototype.setSimplifyFactor=function(e){this._simplifyFactor=e<0?0:e},Cn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Cn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Cn.prototype.setEndCapStyle=function(e){this._endCapStyle=e},Cn.prototype.getMitreLimit=function(){return this._mitreLimit},Cn.prototype.setMitreLimit=function(e){this._mitreLimit=e},Cn.prototype.setSingleSided=function(e){this._isSingleSided=e},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.bufferDistanceError=function(e){var t=Math.PI/2/e;return 1-Math.cos(t/2)},Sn.CAP_ROUND.get=function(){return 1},Sn.CAP_FLAT.get=function(){return 2},Sn.CAP_SQUARE.get=function(){return 3},Sn.JOIN_ROUND.get=function(){return 1},Sn.JOIN_MITRE.get=function(){return 2},Sn.JOIN_BEVEL.get=function(){return 3},Sn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Sn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Sn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Cn,Sn);var Mn=function(e){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=se.COUNTERCLOCKWISE,this._inputLine=e||null},Tn={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Mn.prototype.isDeletable=function(e,t,n,r){var i=this._inputLine[e],o=this._inputLine[t],a=this._inputLine[n];return!!this.isConcave(i,o,a)&&!!this.isShallow(i,o,a,r)&&this.isShallowSampled(i,o,e,n,r)},Mn.prototype.deleteShallowConcavities=function(){for(var e=1,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t),r=!1;n<this._inputLine.length;){var i=!1;this.isDeletable(e,t,n,this._distanceTol)&&(this._isDeleted[t]=Mn.DELETE,i=!0,r=!0),e=i?n:t,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t)}return r},Mn.prototype.isShallowConcavity=function(e,t,n,r){return se.computeOrientation(e,t,n)===this._angleOrientation&&se.distancePointLine(t,e,n)<r},Mn.prototype.isShallowSampled=function(e,t,n,r,i){var o=Math.trunc((r-n)/Mn.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var a=n;a<r;a+=o)if(!this.isShallow(e,t,this._inputLine[a],i))return!1;return!0},Mn.prototype.isConcave=function(e,t,n){return se.computeOrientation(e,t,n)===this._angleOrientation},Mn.prototype.simplify=function(e){this._distanceTol=Math.abs(e),e<0&&(this._angleOrientation=se.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var t=!1;do{t=this.deleteShallowConcavities()}while(t);return this.collapseLine()},Mn.prototype.findNextNonDeletedIndex=function(e){for(var t=e+1;t<this._inputLine.length&&this._isDeleted[t]===Mn.DELETE;)t++;return t},Mn.prototype.isShallow=function(e,t,n,r){return se.distancePointLine(t,e,n)<r},Mn.prototype.collapseLine=function(){for(var e=new Se,t=0;t<this._inputLine.length;t++)this._isDeleted[t]!==Mn.DELETE&&e.add(this._inputLine[t]);return e.toCoordinateArray()},Mn.prototype.interfaces_=function(){return[]},Mn.prototype.getClass=function(){return Mn},Mn.simplify=function(e,t){return new Mn(e).simplify(t)},Tn.INIT.get=function(){return 0},Tn.DELETE.get=function(){return 1},Tn.KEEP.get=function(){return 1},Tn.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Mn,Tn);var En=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new ke},Pn={COORDINATE_ARRAY_TYPE:{configurable:!0}};En.prototype.getCoordinates=function(){return this._ptList.toArray(En.COORDINATE_ARRAY_TYPE)},En.prototype.setPrecisionModel=function(e){this._precisionModel=e},En.prototype.addPt=function(e){var t=new C(e);if(this._precisionModel.makePrecise(t),this.isRedundant(t))return null;this._ptList.add(t)},En.prototype.revere=function(){},En.prototype.addPts=function(e,t){if(t)for(var n=0;n<e.length;n++)this.addPt(e[n]);else for(var r=e.length-1;r>=0;r--)this.addPt(e[r])},En.prototype.isRedundant=function(e){if(this._ptList.size()<1)return!1;var t=this._ptList.get(this._ptList.size()-1);return e.distance(t)<this._minimimVertexDistance},En.prototype.toString=function(){return(new yt).createLineString(this.getCoordinates()).toString()},En.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var e=new C(this._ptList.get(0)),t=this._ptList.get(this._ptList.size()-1);if(e.equals(t))return null;this._ptList.add(e)},En.prototype.setMinimumVertexDistance=function(e){this._minimimVertexDistance=e},En.prototype.interfaces_=function(){return[]},En.prototype.getClass=function(){return En},Pn.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(En,Pn);var In=function(){},On={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};In.prototype.interfaces_=function(){return[]},In.prototype.getClass=function(){return In},In.toDegrees=function(e){return 180*e/Math.PI},In.normalize=function(e){for(;e>Math.PI;)e-=In.PI_TIMES_2;for(;e<=-Math.PI;)e+=In.PI_TIMES_2;return e},In.angle=function(){if(1===arguments.length){var e=arguments[0];return Math.atan2(e.y,e.x)}if(2===arguments.length){var t=arguments[0],n=arguments[1],r=n.x-t.x,i=n.y-t.y;return Math.atan2(i,r)}},In.isAcute=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)>0},In.isObtuse=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)<0},In.interiorAngle=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n);return Math.abs(i-r)},In.normalizePositive=function(e){if(e<0){for(;e<0;)e+=In.PI_TIMES_2;e>=In.PI_TIMES_2&&(e=0)}else{for(;e>=In.PI_TIMES_2;)e-=In.PI_TIMES_2;e<0&&(e=0)}return e},In.angleBetween=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n);return In.diff(r,i)},In.diff=function(e,t){var n=null;return(n=e<t?t-e:e-t)>Math.PI&&(n=2*Math.PI-n),n},In.toRadians=function(e){return e*Math.PI/180},In.getTurn=function(e,t){var n=Math.sin(t-e);return n>0?In.COUNTERCLOCKWISE:n<0?In.CLOCKWISE:In.NONE},In.angleBetweenOriented=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n)-r;return i<=-Math.PI?i+In.PI_TIMES_2:i>Math.PI?i-In.PI_TIMES_2:i},On.PI_TIMES_2.get=function(){return 2*Math.PI},On.PI_OVER_2.get=function(){return Math.PI/2},On.PI_OVER_4.get=function(){return Math.PI/4},On.COUNTERCLOCKWISE.get=function(){return se.COUNTERCLOCKWISE},On.CLOCKWISE.get=function(){return se.CLOCKWISE},On.NONE.get=function(){return se.COLLINEAR},Object.defineProperties(In,On);var Ln=function e(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new mn,this._seg1=new mn,this._offset0=new mn,this._offset1=new mn,this._side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=t,this._bufParams=n,this._li=new ie,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Cn.JOIN_ROUND&&(this._closingSegLengthFactor=e.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},Rn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Ln.prototype.addNextSegment=function(e,t){if(this._s0=this._s1,this._s1=this._s2,this._s2=e,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=se.computeOrientation(this._s0,this._s1,this._s2),r=n===se.CLOCKWISE&&this._side===St.LEFT||n===se.COUNTERCLOCKWISE&&this._side===St.RIGHT;0===n?this.addCollinear(t):r?this.addOutsideTurn(n,t):this.addInsideTurn(n,t)},Ln.prototype.addLineEndCap=function(e,t){var n=new mn(e,t),r=new mn;this.computeOffsetSegment(n,St.LEFT,this._distance,r);var i=new mn;this.computeOffsetSegment(n,St.RIGHT,this._distance,i);var o=t.x-e.x,a=t.y-e.y,s=Math.atan2(a,o);switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(t,s+Math.PI/2,s-Math.PI/2,se.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case Cn.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case Cn.CAP_SQUARE:var l=new C;l.x=Math.abs(this._distance)*Math.cos(s),l.y=Math.abs(this._distance)*Math.sin(s);var c=new C(r.p1.x+l.x,r.p1.y+l.y),u=new C(i.p1.x+l.x,i.p1.y+l.y);this._segList.addPt(c),this._segList.addPt(u)}},Ln.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Ln.prototype.addMitreJoin=function(e,t,n,r){var i=!0,o=null;try{o=Z.intersection(t.p0,t.p1,n.p0,n.p1),(r<=0?1:o.distance(e)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(e){if(!(e instanceof V))throw e;o=new C(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(t,n,r,this._bufParams.getMitreLimit())},Ln.prototype.addFilletCorner=function(e,t,n,r,i){var o=t.x-e.x,a=t.y-e.y,s=Math.atan2(a,o),l=n.x-e.x,c=n.y-e.y,u=Math.atan2(c,l);r===se.CLOCKWISE?s<=u&&(s+=2*Math.PI):s>=u&&(s-=2*Math.PI),this._segList.addPt(t),this.addFilletArc(e,s,u,r,i),this._segList.addPt(n)},Ln.prototype.addOutsideTurn=function(e,t){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Ln.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Cn.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Cn.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(t&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,e,this._distance),this._segList.addPt(this._offset1.p0))},Ln.prototype.createSquare=function(e){this._segList.addPt(new C(e.x+this._distance,e.y+this._distance)),this._segList.addPt(new C(e.x+this._distance,e.y-this._distance)),this._segList.addPt(new C(e.x-this._distance,e.y-this._distance)),this._segList.addPt(new C(e.x-this._distance,e.y+this._distance)),this._segList.closeRing()},Ln.prototype.addSegments=function(e,t){this._segList.addPts(e,t)},Ln.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Ln.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Ln.prototype.initSideSegments=function(e,t,n){this._s1=e,this._s2=t,this._side=n,this._seg1.setCoordinates(e,t),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Ln.prototype.addLimitedMitreJoin=function(e,t,n,r){var i=this._seg0.p1,o=In.angle(i,this._seg0.p0),a=In.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,s=In.normalize(o+a),l=In.normalize(s+Math.PI),c=r*n,u=n-c*Math.abs(Math.sin(a)),d=i.x+c*Math.cos(l),p=i.y+c*Math.sin(l),h=new C(d,p),f=new mn(i,h),m=f.pointAlongOffset(1,u),g=f.pointAlongOffset(1,-u);this._side===St.LEFT?(this._segList.addPt(m),this._segList.addPt(g)):(this._segList.addPt(g),this._segList.addPt(m))},Ln.prototype.computeOffsetSegment=function(e,t,n,r){var i=t===St.LEFT?1:-1,o=e.p1.x-e.p0.x,a=e.p1.y-e.p0.y,s=Math.sqrt(o*o+a*a),l=i*n*o/s,c=i*n*a/s;r.p0.x=e.p0.x-c,r.p0.y=e.p0.y+l,r.p1.x=e.p1.x-c,r.p1.y=e.p1.y+l},Ln.prototype.addFilletArc=function(e,t,n,r,i){var o=r===se.CLOCKWISE?-1:1,a=Math.abs(t-n),s=Math.trunc(a/this._filletAngleQuantum+.5);if(s<1)return null;for(var l=a/s,c=0,u=new C;c<a;){var d=t+o*c;u.x=e.x+i*Math.cos(d),u.y=e.y+i*Math.sin(d),this._segList.addPt(u),c+=l}},Ln.prototype.addInsideTurn=function(e,t){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Ln.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new C((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new C((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Ln.prototype.createCircle=function(e){var t=new C(e.x+this._distance,e.y);this._segList.addPt(t),this.addFilletArc(e,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Ln.prototype.addBevelJoin=function(e,t){this._segList.addPt(e.p1),this._segList.addPt(t.p0)},Ln.prototype.init=function(e){this._distance=e,this._maxCurveSegmentError=e*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new En,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(e*Ln.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Ln.prototype.addCollinear=function(e){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Cn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Cn.JOIN_MITRE?(e&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,se.CLOCKWISE,this._distance))},Ln.prototype.closeRing=function(){this._segList.closeRing()},Ln.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Ln.prototype.interfaces_=function(){return[]},Ln.prototype.getClass=function(){return Ln},Rn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Rn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Rn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Rn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Ln,Rn);var jn=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var e=arguments[0],t=arguments[1];this._precisionModel=e,this._bufParams=t};jn.prototype.getOffsetCurve=function(e,t){if(this._distance=t,0===t)return null;var n=t<0,r=Math.abs(t),i=this.getSegGen(r);e.length<=1?this.computePointCurve(e[0],i):this.computeOffsetCurve(e,n,i);var o=i.getCoordinates();return n&&Me.reverse(o),o},jn.prototype.computeSingleSidedBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){n.addSegments(e,!0);var i=Mn.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],St.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{n.addSegments(e,!1);var s=Mn.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],St.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment(),n.closeRing()},jn.prototype.computeRingBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);t===St.RIGHT&&(r=-r);var i=Mn.simplify(e,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],t);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(i[a],s)}n.closeRing()},jn.prototype.computeLineBufferCurve=function(e,t){var n=this.simplifyTolerance(this._distance),r=Mn.simplify(e,n),i=r.length-1;t.initSideSegments(r[0],r[1],St.LEFT);for(var o=2;o<=i;o++)t.addNextSegment(r[o],!0);t.addLastSegment(),t.addLineEndCap(r[i-1],r[i]);var a=Mn.simplify(e,-n),s=a.length-1;t.initSideSegments(a[s],a[s-1],St.LEFT);for(var l=s-2;l>=0;l--)t.addNextSegment(a[l],!0);t.addLastSegment(),t.addLineEndCap(a[1],a[0]),t.closeRing()},jn.prototype.computePointCurve=function(e,t){switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:t.createCircle(e);break;case Cn.CAP_SQUARE:t.createSquare(e)}},jn.prototype.getLineCurve=function(e,t){if(this._distance=t,t<0&&!this._bufParams.isSingleSided())return null;if(0===t)return null;var n=Math.abs(t),r=this.getSegGen(n);if(e.length<=1)this.computePointCurve(e[0],r);else if(this._bufParams.isSingleSided()){var i=t<0;this.computeSingleSidedBufferCurve(e,i,r)}else this.computeLineBufferCurve(e,r);return r.getCoordinates()},jn.prototype.getBufferParameters=function(){return this._bufParams},jn.prototype.simplifyTolerance=function(e){return e*this._bufParams.getSimplifyFactor()},jn.prototype.getRingCurve=function(e,t,n){if(this._distance=n,e.length<=2)return this.getLineCurve(e,n);if(0===n)return jn.copyCoordinates(e);var r=this.getSegGen(n);return this.computeRingBufferCurve(e,t,r),r.getCoordinates()},jn.prototype.computeOffsetCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){var i=Mn.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],St.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{var s=Mn.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],St.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment()},jn.prototype.getSegGen=function(e){return new Ln(this._precisionModel,this._bufParams,e)},jn.prototype.interfaces_=function(){return[]},jn.prototype.getClass=function(){return jn},jn.copyCoordinates=function(e){for(var t=new Array(e.length).fill(null),n=0;n<t.length;n++)t[n]=new C(e[n]);return t};var Dn=function(){this._subgraphs=null,this._seg=new mn,this._cga=new se;var e=arguments[0];this._subgraphs=e},An={DepthSegment:{configurable:!0}};Dn.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var e=arguments[0],t=new ke,n=this._subgraphs.iterator();n.hasNext();){var r=n.next(),i=r.getEnvelope();e.y<i.getMinY()||e.y>i.getMaxY()||this.findStabbedSegments(e,r.getDirectedEdges(),t)}return t}if(3===arguments.length)if(I(arguments[2],xe)&&arguments[0]instanceof C&&arguments[1]instanceof $t){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=a.getEdge().getCoordinates(),c=0;c<l.length-1;c++)if(this._seg.p0=l[c],this._seg.p1=l[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x)&&!(this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||se.computeOrientation(this._seg.p0,this._seg.p1,o)===se.RIGHT)){var u=a.getDepth(St.LEFT);this._seg.p0.equals(l[c])||(u=a.getDepth(St.RIGHT));var d=new Nn(this._seg,u);s.add(d)}}else if(I(arguments[2],xe)&&arguments[0]instanceof C&&I(arguments[1],xe))for(var p=arguments[0],h=arguments[2],f=arguments[1].iterator();f.hasNext();){var m=f.next();m.isForward()&&this.findStabbedSegments(p,m,h)}},Dn.prototype.getDepth=function(e){var t=this.findStabbedSegments(e);return 0===t.size()?0:Qt.min(t)._leftDepth},Dn.prototype.interfaces_=function(){return[]},Dn.prototype.getClass=function(){return Dn},An.DepthSegment.get=function(){return Nn},Object.defineProperties(Dn,An);var Nn=function(){this._upwardSeg=null,this._leftDepth=null;var e=arguments[0],t=arguments[1];this._upwardSeg=new mn(e),this._leftDepth=t};Nn.prototype.compareTo=function(e){var t=e;if(this._upwardSeg.minX()>=t._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=t._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(t._upwardSeg);return 0!==n||0!=(n=-1*t._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(t._upwardSeg)},Nn.prototype.compareX=function(e,t){var n=e.p0.compareTo(t.p0);return 0!==n?n:e.p1.compareTo(t.p1)},Nn.prototype.toString=function(){return this._upwardSeg.toString()},Nn.prototype.interfaces_=function(){return[w]},Nn.prototype.getClass=function(){return Nn};var Fn=function(e,t,n){this.p0=e||null,this.p1=t||null,this.p2=n||null};Fn.prototype.area=function(){return Fn.area(this.p0,this.p1,this.p2)},Fn.prototype.signedArea=function(){return Fn.signedArea(this.p0,this.p1,this.p2)},Fn.prototype.interpolateZ=function(e){if(null===e)throw new v("Supplied point is null.");return Fn.interpolateZ(e,this.p0,this.p1,this.p2)},Fn.prototype.longestSideLength=function(){return Fn.longestSideLength(this.p0,this.p1,this.p2)},Fn.prototype.isAcute=function(){return Fn.isAcute(this.p0,this.p1,this.p2)},Fn.prototype.circumcentre=function(){return Fn.circumcentre(this.p0,this.p1,this.p2)},Fn.prototype.area3D=function(){return Fn.area3D(this.p0,this.p1,this.p2)},Fn.prototype.centroid=function(){return Fn.centroid(this.p0,this.p1,this.p2)},Fn.prototype.inCentre=function(){return Fn.inCentre(this.p0,this.p1,this.p2)},Fn.prototype.interfaces_=function(){return[]},Fn.prototype.getClass=function(){return Fn},Fn.area=function(e,t,n){return Math.abs(((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2)},Fn.signedArea=function(e,t,n){return((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2},Fn.det=function(e,t,n,r){return e*r-t*n},Fn.interpolateZ=function(e,t,n,r){var i=t.x,o=t.y,a=n.x-i,s=r.x-i,l=n.y-o,c=r.y-o,u=a*c-s*l,d=e.x-i,p=e.y-o,h=(c*d-s*p)/u,f=(-l*d+a*p)/u;return t.z+h*(n.z-t.z)+f*(r.z-t.z)},Fn.longestSideLength=function(e,t,n){var r=e.distance(t),i=t.distance(n),o=n.distance(e),a=r;return i>a&&(a=i),o>a&&(a=o),a},Fn.isAcute=function(e,t,n){return!!In.isAcute(e,t,n)&&!!In.isAcute(t,n,e)&&!!In.isAcute(n,e,t)},Fn.circumcentre=function(e,t,n){var r=n.x,i=n.y,o=e.x-r,a=e.y-i,s=t.x-r,l=t.y-i,c=2*Fn.det(o,a,s,l),u=Fn.det(a,o*o+a*a,l,s*s+l*l),d=Fn.det(o,o*o+a*a,s,s*s+l*l);return new C(r-u/c,i+d/c)},Fn.perpendicularBisector=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=new Z(e.x+n/2,e.y+r/2,1),o=new Z(e.x-r+n/2,e.y+n+r/2,1);return new Z(i,o)},Fn.angleBisector=function(e,t,n){var r=t.distance(e),i=r/(r+t.distance(n)),o=n.x-e.x,a=n.y-e.y;return new C(e.x+i*o,e.y+i*a)},Fn.area3D=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=t.z-e.z,a=n.x-e.x,s=n.y-e.y,l=n.z-e.z,c=i*l-o*s,u=o*a-r*l,d=r*s-i*a,p=c*c+u*u+d*d;return Math.sqrt(p)/2},Fn.centroid=function(e,t,n){var r=(e.x+t.x+n.x)/3,i=(e.y+t.y+n.y)/3;return new C(r,i)},Fn.inCentre=function(e,t,n){var r=t.distance(n),i=e.distance(n),o=e.distance(t),a=r+i+o,s=(r*e.x+i*t.x+o*n.x)/a,l=(r*e.y+i*t.y+o*n.y)/a;return new C(s,l)};var zn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new ke;var e=arguments[0],t=arguments[1],n=arguments[2];this._inputGeom=e,this._distance=t,this._curveBuilder=n};zn.prototype.addPoint=function(e){if(this._distance<=0)return null;var t=e.getCoordinates(),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,E.EXTERIOR,E.INTERIOR)},zn.prototype.addPolygon=function(e){var t=this._distance,n=St.LEFT;this._distance<0&&(t=-this._distance,n=St.RIGHT);var r=e.getExteriorRing(),i=Me.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,t,n,E.EXTERIOR,E.INTERIOR);for(var o=0;o<e.getNumInteriorRing();o++){var a=e.getInteriorRingN(o),s=Me.removeRepeatedPoints(a.getCoordinates());this._distance>0&&this.isErodedCompletely(a,-this._distance)||this.addPolygonRing(s,t,St.opposite(n),E.INTERIOR,E.EXTERIOR)}},zn.prototype.isTriangleErodedCompletely=function(e,t){var n=new Fn(e[0],e[1],e[2]),r=n.inCentre();return se.distancePointLine(r,n.p0,n.p1)<Math.abs(t)},zn.prototype.addLineString=function(e){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var t=Me.removeRepeatedPoints(e.getCoordinates()),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,E.EXTERIOR,E.INTERIOR)},zn.prototype.addCurve=function(e,t,n){if(null===e||e.length<2)return null;var r=new fn(e,new Lt(0,E.BOUNDARY,t,n));this._curveList.add(r)},zn.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},zn.prototype.addPolygonRing=function(e,t,n,r,i){if(0===t&&e.length<tt.MINIMUM_VALID_SIZE)return null;var o=r,a=i;e.length>=tt.MINIMUM_VALID_SIZE&&se.isCCW(e)&&(o=i,a=r,n=St.opposite(n));var s=this._curveBuilder.getRingCurve(e,n,t);this.addCurve(s,o,a)},zn.prototype.add=function(e){if(e.isEmpty())return null;e instanceof Qe?this.addPolygon(e):e instanceof Ye?this.addLineString(e):e instanceof Xe?this.addPoint(e):(e instanceof et||e instanceof Ve||e instanceof nt||e instanceof $e)&&this.addCollection(e)},zn.prototype.isErodedCompletely=function(e,t){var n=e.getCoordinates();if(n.length<4)return t<0;if(4===n.length)return this.isTriangleErodedCompletely(n,t);var r=e.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return t<0&&2*Math.abs(t)>i},zn.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},zn.prototype.interfaces_=function(){return[]},zn.prototype.getClass=function(){return zn};var Bn=function(){};Bn.prototype.locate=function(e){},Bn.prototype.interfaces_=function(){return[]},Bn.prototype.getClass=function(){return Bn};var Un=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var e=arguments[0];this._parent=e,this._atStart=!0,this._index=0,this._max=e.getNumGeometries()};Un.prototype.next=function(){if(this._atStart)return this._atStart=!1,Un.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new r;var e=this._parent.getGeometryN(this._index++);return e instanceof $e?(this._subcollectionIterator=new Un(e),this._subcollectionIterator.next()):e},Un.prototype.remove=function(){throw new Error(this.getClass().getName())},Un.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Un.prototype.interfaces_=function(){return[we]},Un.prototype.getClass=function(){return Un},Un.isAtomic=function(e){return!(e instanceof $e)};var $n=function(){this._geom=null;var e=arguments[0];this._geom=e};$n.prototype.locate=function(e){return $n.locate(e,this._geom)},$n.prototype.interfaces_=function(){return[Bn]},$n.prototype.getClass=function(){return $n},$n.isPointInRing=function(e,t){return!!t.getEnvelopeInternal().intersects(e)&&se.isPointInRing(e,t.getCoordinates())},$n.containsPointInPolygon=function(e,t){if(t.isEmpty())return!1;var n=t.getExteriorRing();if(!$n.isPointInRing(e,n))return!1;for(var r=0;r<t.getNumInteriorRing();r++){var i=t.getInteriorRingN(r);if($n.isPointInRing(e,i))return!1}return!0},$n.containsPoint=function(e,t){if(t instanceof Qe)return $n.containsPointInPolygon(e,t);if(t instanceof $e)for(var n=new Un(t);n.hasNext();){var r=n.next();if(r!==t&&$n.containsPoint(e,r))return!0}return!1},$n.locate=function(e,t){return t.isEmpty()?E.EXTERIOR:$n.containsPoint(e,t)?E.INTERIOR:E.EXTERIOR};var Vn=function(){this._edgeMap=new d,this._edgeList=null,this._ptInAreaLocation=[E.NONE,E.NONE]};Vn.prototype.getNextCW=function(e){this.getEdges();var t=this._edgeList.indexOf(e),n=t-1;return 0===t&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Vn.prototype.propagateSideLabels=function(e){for(var t=E.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(e)&&r.getLocation(e,St.LEFT)!==E.NONE&&(t=r.getLocation(e,St.LEFT))}if(t===E.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getLabel();if(s.getLocation(e,St.ON)===E.NONE&&s.setLocation(e,St.ON,i),s.isArea(e)){var l=s.getLocation(e,St.LEFT),c=s.getLocation(e,St.RIGHT);if(c!==E.NONE){if(c!==i)throw new Et("side location conflict",a.getCoordinate());l===E.NONE&&te.shouldNeverReachHere("found single null side (at "+a.getCoordinate()+")"),i=l}else te.isTrue(s.getLocation(e,St.LEFT)===E.NONE,"found single null side"),s.setLocation(e,St.RIGHT,i),s.setLocation(e,St.LEFT,i)}}},Vn.prototype.getCoordinate=function(){var e=this.iterator();return e.hasNext()?e.next().getCoordinate():null},Vn.prototype.print=function(e){q.out.println("EdgeEndStar:   "+this.getCoordinate());for(var t=this.iterator();t.hasNext();)t.next().print(e)},Vn.prototype.isAreaLabelsConsistent=function(e){return this.computeEdgeEndLabels(e.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Vn.prototype.checkAreaLabelsConsistent=function(e){var t=this.getEdges();if(t.size()<=0)return!0;var n=t.size()-1,r=t.get(n).getLabel().getLocation(e,St.LEFT);te.isTrue(r!==E.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var a=o.next().getLabel();te.isTrue(a.isArea(e),"Found non-area edge");var s=a.getLocation(e,St.LEFT),l=a.getLocation(e,St.RIGHT);if(s===l)return!1;if(l!==i)return!1;i=s}return!0},Vn.prototype.findIndex=function(e){this.iterator();for(var t=0;t<this._edgeList.size();t++)if(this._edgeList.get(t)===e)return t;return-1},Vn.prototype.iterator=function(){return this.getEdges().iterator()},Vn.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new ke(this._edgeMap.values())),this._edgeList},Vn.prototype.getLocation=function(e,t,n){return this._ptInAreaLocation[e]===E.NONE&&(this._ptInAreaLocation[e]=$n.locate(t,n[e].getGeometry())),this._ptInAreaLocation[e]},Vn.prototype.toString=function(){var e=new R;e.append("EdgeEndStar:   "+this.getCoordinate()),e.append("\n");for(var t=this.iterator();t.hasNext();){var n=t.next();e.append(n),e.append("\n")}return e.toString()},Vn.prototype.computeEdgeEndLabels=function(e){for(var t=this.iterator();t.hasNext();)t.next().computeLabel(e)},Vn.prototype.computeLabelling=function(e){this.computeEdgeEndLabels(e[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var t=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===E.BOUNDARY&&(t[i]=!0);for(var o=this.iterator();o.hasNext();)for(var a=o.next(),s=a.getLabel(),l=0;l<2;l++)if(s.isAnyNull(l)){var c=E.NONE;if(t[l])c=E.EXTERIOR;else{var u=a.getCoordinate();c=this.getLocation(l,u,e)}s.setAllLocationsIfNull(l,c)}},Vn.prototype.getDegree=function(){return this._edgeMap.size()},Vn.prototype.insertEdgeEnd=function(e,t){this._edgeMap.put(e,t),this._edgeList=null},Vn.prototype.interfaces_=function(){return[]},Vn.prototype.getClass=function(){return Vn};var qn=function(e){function t(){e.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var e=null,t=null,n=this._SCANNING_FOR_INCOMING,r=0;r<this._resultAreaEdgeList.size();r++){var i=this._resultAreaEdgeList.get(r),o=i.getSym();if(i.getLabel().isArea())switch(null===e&&i.isInResult()&&(e=i),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;t=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;t.setNext(i),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===e)throw new Et("no outgoing dirEdge found",this.getCoordinate());te.isTrue(e.isInResult(),"unable to link last incoming dirEdge"),t.setNext(e)}},t.prototype.insert=function(e){var t=e;this.insertEdgeEnd(t,t)},t.prototype.getRightmostEdge=function(){var e=this.getEdges(),t=e.size();if(t<1)return null;var n=e.get(0);if(1===t)return n;var r=e.get(t-1),i=n.getQuadrant(),o=r.getQuadrant();return zt.isNorthern(i)&&zt.isNorthern(o)?n:zt.isNorthern(i)||zt.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(te.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},t.prototype.print=function(e){q.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var t=this.iterator();t.hasNext();){var n=t.next();e.print("out "),n.print(e),e.println(),e.print("in "),n.getSym().print(e),e.println()}},t.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new ke;for(var e=this.iterator();e.hasNext();){var t=e.next();(t.isInResult()||t.getSym().isInResult())&&this._resultAreaEdgeList.add(t)}return this._resultAreaEdgeList},t.prototype.updateLabelling=function(e){for(var t=this.iterator();t.hasNext();){var n=t.next().getLabel();n.setAllLocationsIfNull(0,e.getLocation(0)),n.setAllLocationsIfNull(1,e.getLocation(1))}},t.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var e=null,t=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===t&&(t=i),null!==e&&i.setNext(e),e=r}t.setNext(e)},t.prototype.computeDepths=function(){if(1===arguments.length){var e=arguments[0],t=this.findIndex(e),n=e.getDepth(St.LEFT),r=e.getDepth(St.RIGHT),i=this.computeDepths(t+1,this._edgeList.size(),n);if(this.computeDepths(0,t,i)!==r)throw new Et("depth mismatch at "+e.getCoordinate())}else if(3===arguments.length){for(var o=arguments[1],a=arguments[2],s=arguments[0];s<o;s++){var l=this._edgeList.get(s);l.setEdgeDepths(St.RIGHT,a),a=l.getDepth(St.LEFT)}return a}},t.prototype.mergeSymLabels=function(){for(var e=this.iterator();e.hasNext();){var t=e.next();t.getLabel().merge(t.getSym().getLabel())}},t.prototype.linkMinimalDirectedEdges=function(e){for(var t=null,n=null,r=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var o=this._resultAreaEdgeList.get(i),a=o.getSym();switch(null===t&&o.getEdgeRing()===e&&(t=o),r){case this._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==e)continue;n=a,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==e)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(te.isTrue(null!==t,"found null for first outgoing dirEdge"),te.isTrue(t.getEdgeRing()===e,"unable to link last incoming dirEdge"),n.setNextMin(t))},t.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var e=0,t=this.iterator();t.hasNext();)t.next().isInResult()&&e++;return e}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}},t.prototype.getLabel=function(){return this._label},t.prototype.findCoveredLineEdges=function(){for(var e=E.NONE,t=this.iterator();t.hasNext();){var n=t.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){e=E.INTERIOR;break}if(r.isInResult()){e=E.EXTERIOR;break}}}if(e===E.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getSym();a.isLineEdge()?a.getEdge().setCovered(i===E.INTERIOR):(a.isInResult()&&(i=E.EXTERIOR),s.isInResult()&&(i=E.INTERIOR))}},t.prototype.computeLabelling=function(t){e.prototype.computeLabelling.call(this,t),this._label=new Lt(E.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==E.INTERIOR&&o!==E.BOUNDARY||this._label.setLocation(i,E.INTERIOR)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Vn),Zn=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createNode=function(e){return new Nt(e,new qn)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Vt),Hn=function e(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=e.orientation(t)};Hn.prototype.compareTo=function(e){var t=e;return Hn.compareOriented(this._pts,this._orientation,t._pts,t._orientation)},Hn.prototype.interfaces_=function(){return[w]},Hn.prototype.getClass=function(){return Hn},Hn.orientation=function(e){return 1===Me.increasingDirection(e)},Hn.compareOriented=function(e,t,n,r){for(var i=t?1:-1,o=r?1:-1,a=t?e.length:-1,s=r?n.length:-1,l=t?0:e.length-1,c=r?0:n.length-1;;){var u=e[l].compareTo(n[c]);if(0!==u)return u;var d=(l+=i)===a,p=(c+=o)===s;if(d&&!p)return-1;if(!d&&p)return 1;if(d&&p)return 0}};var Gn=function(){this._edges=new ke,this._ocaMap=new d};Gn.prototype.print=function(e){e.print("MULTILINESTRING ( ");for(var t=0;t<this._edges.size();t++){var n=this._edges.get(t);t>0&&e.print(","),e.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&e.print(","),e.print(r[i].x+" "+r[i].y);e.println(")")}e.print(")  ")},Gn.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next())},Gn.prototype.findEdgeIndex=function(e){for(var t=0;t<this._edges.size();t++)if(this._edges.get(t).equals(e))return t;return-1},Gn.prototype.iterator=function(){return this._edges.iterator()},Gn.prototype.getEdges=function(){return this._edges},Gn.prototype.get=function(e){return this._edges.get(e)},Gn.prototype.findEqualEdge=function(e){var t=new Hn(e.getCoordinates());return this._ocaMap.get(t)},Gn.prototype.add=function(e){this._edges.add(e);var t=new Hn(e.getCoordinates());this._ocaMap.put(t,e)},Gn.prototype.interfaces_=function(){return[]},Gn.prototype.getClass=function(){return Gn};var Wn=function(){};Wn.prototype.processIntersections=function(e,t,n,r){},Wn.prototype.isDone=function(){},Wn.prototype.interfaces_=function(){return[]},Wn.prototype.getClass=function(){return Wn};var Yn=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var e=arguments[0];this._li=e};Yn.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(Yn.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.size()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},Yn.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Yn.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Yn.prototype.getLineIntersector=function(){return this._li},Yn.prototype.hasProperIntersection=function(){return this._hasProper},Yn.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Yn.prototype.hasIntersection=function(){return this._hasIntersection},Yn.prototype.isDone=function(){return!1},Yn.prototype.hasInteriorIntersection=function(){return this._hasInterior},Yn.prototype.interfaces_=function(){return[Wn]},Yn.prototype.getClass=function(){return Yn},Yn.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var Kn=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var e=arguments[0],t=arguments[1],n=arguments[2];this.coord=new C(e),this.segmentIndex=t,this.dist=n};Kn.prototype.getSegmentIndex=function(){return this.segmentIndex},Kn.prototype.getCoordinate=function(){return this.coord},Kn.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex),e.println(" dist = "+this.dist)},Kn.prototype.compareTo=function(e){var t=e;return this.compare(t.segmentIndex,t.dist)},Kn.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===e},Kn.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Kn.prototype.getDistance=function(){return this.dist},Kn.prototype.compare=function(e,t){return this.segmentIndex<e?-1:this.segmentIndex>e?1:this.dist<t?-1:this.dist>t?1:0},Kn.prototype.interfaces_=function(){return[w]},Kn.prototype.getClass=function(){return Kn};var Xn=function(){this._nodeMap=new d,this.edge=null;var e=arguments[0];this.edge=e};Xn.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},Xn.prototype.iterator=function(){return this._nodeMap.values().iterator()},Xn.prototype.addSplitEdges=function(e){this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},Xn.prototype.addEndpoints=function(){var e=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[e],e,0)},Xn.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this.edge.pts[t.segmentIndex],i=t.dist>0||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new C(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this.edge.pts[s];return i&&(o[a]=t.coord),new nr(o,new Lt(this.edge._label))},Xn.prototype.add=function(e,t,n){var r=new Kn(e,t,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},Xn.prototype.isIntersection=function(e){for(var t=this.iterator();t.hasNext();)if(t.next().coord.equals(e))return!0;return!1},Xn.prototype.interfaces_=function(){return[]},Xn.prototype.getClass=function(){return Xn};var Jn=function(){};Jn.prototype.getChainStartIndices=function(e){var t=0,n=new ke;n.add(new j(t));do{var r=this.findChainEnd(e,t);n.add(new j(r)),t=r}while(t<e.length-1);return Jn.toIntArray(n)},Jn.prototype.findChainEnd=function(e,t){for(var n=zt.quadrant(e[t],e[t+1]),r=t+1;r<e.length&&zt.quadrant(e[r-1],e[r])===n;)r++;return r-1},Jn.prototype.interfaces_=function(){return[]},Jn.prototype.getClass=function(){return Jn},Jn.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var Qn=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new H,this.env2=new H;var e=arguments[0];this.e=e,this.pts=e.getCoordinates();var t=new Jn;this.startIndex=t.getChainStartIndices(this.pts)};Qn.prototype.getCoordinates=function(){return this.pts},Qn.prototype.getMaxX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t>n?t:n},Qn.prototype.getMinX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t<n?t:n},Qn.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[e],this.startIndex[e+1],t,t.startIndex[n],t.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],l=arguments[4],c=arguments[5],u=this.pts[i],d=this.pts[o],p=a.pts[s],h=a.pts[l];if(o-i==1&&l-s==1)return c.addIntersections(this.e,i,a.e,s),null;if(this.env1.init(u,d),this.env2.init(p,h),!this.env1.intersects(this.env2))return null;var f=Math.trunc((i+o)/2),m=Math.trunc((s+l)/2);i<f&&(s<m&&this.computeIntersectsForChain(i,f,a,s,m,c),m<l&&this.computeIntersectsForChain(i,f,a,m,l,c)),f<o&&(s<m&&this.computeIntersectsForChain(f,o,a,s,m,c),m<l&&this.computeIntersectsForChain(f,o,a,m,l,c))}},Qn.prototype.getStartIndexes=function(){return this.startIndex},Qn.prototype.computeIntersects=function(e,t){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<e.startIndex.length-1;r++)this.computeIntersectsForChain(n,e,r,t)},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn};var er=function e(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var t=0;t<2;t++)for(var n=0;n<3;n++)this._depth[t][n]=e.NULL_VALUE},tr={NULL_VALUE:{configurable:!0}};er.prototype.getDepth=function(e,t){return this._depth[e][t]},er.prototype.setDepth=function(e,t,n){this._depth[e][t]=n},er.prototype.isNull=function(){if(0===arguments.length){for(var e=0;e<2;e++)for(var t=0;t<3;t++)if(this._depth[e][t]!==er.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===er.NULL_VALUE}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._depth[r][i]===er.NULL_VALUE}},er.prototype.normalize=function(){for(var e=0;e<2;e++)if(!this.isNull(e)){var t=this._depth[e][1];this._depth[e][2]<t&&(t=this._depth[e][2]),t<0&&(t=0);for(var n=1;n<3;n++){var r=0;this._depth[e][n]>t&&(r=1),this._depth[e][n]=r}}},er.prototype.getDelta=function(e){return this._depth[e][St.RIGHT]-this._depth[e][St.LEFT]},er.prototype.getLocation=function(e,t){return this._depth[e][t]<=0?E.EXTERIOR:E.INTERIOR},er.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},er.prototype.add=function(){if(1===arguments.length)for(var e=arguments[0],t=0;t<2;t++)for(var n=1;n<3;n++){var r=e.getLocation(t,n);r!==E.EXTERIOR&&r!==E.INTERIOR||(this.isNull(t,n)?this._depth[t][n]=er.depthAtLocation(r):this._depth[t][n]+=er.depthAtLocation(r))}else if(3===arguments.length){var i=arguments[0],o=arguments[1];arguments[2]===E.INTERIOR&&this._depth[i][o]++}},er.prototype.interfaces_=function(){return[]},er.prototype.getClass=function(){return er},er.depthAtLocation=function(e){return e===E.EXTERIOR?0:e===E.INTERIOR?1:er.NULL_VALUE},tr.NULL_VALUE.get=function(){return-1},Object.defineProperties(er,tr);var nr=function(e){function t(){if(e.call(this),this.pts=null,this._env=null,this.eiList=new Xn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new er,this._depthDelta=0,1===arguments.length){var n=arguments[0];t.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDepth=function(){return this._depth},t.prototype.getCollapsedEdge=function(){var e=new Array(2).fill(null);return e[0]=this.pts[0],e[1]=this.pts[1],new t(e,Lt.toLineLabel(this._label))},t.prototype.isIsolated=function(){return this._isIsolated},t.prototype.getCoordinates=function(){return this.pts},t.prototype.setIsolated=function(e){this._isIsolated=e},t.prototype.setName=function(e){this._name=e},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,a=0;a<this.pts.length;a++)if(this.pts[a].equals2D(n.pts[a])||(r=!1),this.pts[a].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},t.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var e=arguments[0];return this.pts[e]}},t.prototype.print=function(e){e.print("edge "+this._name+": "),e.print("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.print(","),e.print(this.pts[t].x+" "+this.pts[t].y);e.print(")  "+this._label+" "+this._depthDelta)},t.prototype.computeIM=function(e){t.updateIM(this._label,e)},t.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},t.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},t.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},t.prototype.getDepthDelta=function(){return this._depthDelta},t.prototype.getNumPoints=function(){return this.pts.length},t.prototype.printReverse=function(e){e.print("edge "+this._name+": ");for(var t=this.pts.length-1;t>=0;t--)e.print(this.pts[t]+" ");e.println("")},t.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Qn(this)),this._mce},t.prototype.getEnvelope=function(){if(null===this._env){this._env=new H;for(var e=0;e<this.pts.length;e++)this._env.expandToInclude(this.pts[e])}return this._env},t.prototype.addIntersection=function(e,t,n,r){var i=new C(e.getIntersection(r)),o=t,a=e.getEdgeDistance(n,r),s=o+1;if(s<this.pts.length){var l=this.pts[s];i.equals2D(l)&&(o=s,a=0)}this.eiList.add(i,o,a)},t.prototype.toString=function(){var e=new R;e.append("edge "+this._name+": "),e.append("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.append(","),e.append(this.pts[t].x+" "+this.pts[t].y);return e.append(")  "+this._label+" "+this._depthDelta),e.toString()},t.prototype.isPointwiseEqual=function(e){if(this.pts.length!==e.pts.length)return!1;for(var t=0;t<this.pts.length;t++)if(!this.pts[t].equals2D(e.pts[t]))return!1;return!0},t.prototype.setDepthDelta=function(e){this._depthDelta=e},t.prototype.getEdgeIntersectionList=function(){return this.eiList},t.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.updateIM=function(){if(2!==arguments.length)return e.prototype.updateIM.apply(this,arguments);var t=arguments[0],n=arguments[1];n.setAtLeastIfValid(t.getLocation(0,St.ON),t.getLocation(1,St.ON),1),t.isArea()&&(n.setAtLeastIfValid(t.getLocation(0,St.LEFT),t.getLocation(1,St.LEFT),2),n.setAtLeastIfValid(t.getLocation(0,St.RIGHT),t.getLocation(1,St.RIGHT),2))},t}(At),rr=function(e){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Gn,this._bufParams=e||null};rr.prototype.setWorkingPrecisionModel=function(e){this._workingPrecisionModel=e},rr.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Lt(e.getLabel())).flip(),n.merge(r);var i=rr.depthDelta(r),o=t.getDepthDelta()+i;t.setDepthDelta(o)}else this._edgeList.add(e),e.setDepthDelta(rr.depthDelta(e.getLabel()))},rr.prototype.buildSubgraphs=function(e,t){for(var n=new ke,r=e.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),a=new Dn(n).getDepth(o);i.computeDepth(a),i.findResultEdges(),n.add(i),t.add(i.getDirectedEdges(),i.getNodes())}},rr.prototype.createSubgraphs=function(e){for(var t=new ke,n=e.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new It;i.create(r),t.add(i)}}return Qt.sort(t,Qt.reverseOrder()),t},rr.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},rr.prototype.getNoder=function(e){if(null!==this._workingNoder)return this._workingNoder;var t=new xn,n=new ie;return n.setPrecisionModel(e),t.setSegmentIntersector(new Yn(n)),t},rr.prototype.buffer=function(e,t){var n=this._workingPrecisionModel;null===n&&(n=e.getPrecisionModel()),this._geomFact=e.getFactory();var r=new jn(n,this._bufParams),i=new zn(e,t,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new qt(new Zn),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),a=new Zt(this._geomFact);this.buildSubgraphs(o,a);var s=a.getPolygons();return s.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(s)},rr.prototype.computeNodedEdges=function(e,t){var n=this.getNoder(t);n.computeNodes(e);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var a=i.getData(),s=new nr(i.getCoordinates(),new Lt(a));this.insertUniqueEdge(s)}}},rr.prototype.setNoder=function(e){this._workingNoder=e},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.depthDelta=function(e){var t=e.getLocation(0,St.LEFT),n=e.getLocation(0,St.RIGHT);return t===E.INTERIOR&&n===E.EXTERIOR?1:t===E.EXTERIOR&&n===E.INTERIOR?-1:0},rr.convertSegStrings=function(e){for(var t=new yt,n=new ke;e.hasNext();){var r=e.next(),i=t.createLineString(r.getCoordinates());n.add(i)}return t.buildGeometry(n)};var ir=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var e=arguments[0],t=arguments[1];this._noder=e,this._scaleFactor=t,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};ir.prototype.rescale=function(){if(I(arguments[0],_e))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.rescale(t.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],r=0;r<n.length;r++)n[r].x=n[r].x/this._scaleFactor+this._offsetX,n[r].y=n[r].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&q.out.println(n)}},ir.prototype.scale=function(){if(I(arguments[0],_e)){for(var e=arguments[0],t=new ke,n=e.iterator();n.hasNext();){var r=n.next();t.add(new fn(this.scale(r.getCoordinates()),r.getData()))}return t}if(arguments[0]instanceof Array){for(var i=arguments[0],o=new Array(i.length).fill(null),a=0;a<i.length;a++)o[a]=new C(Math.round((i[a].x-this._offsetX)*this._scaleFactor),Math.round((i[a].y-this._offsetY)*this._scaleFactor),i[a].z);return Me.removeRepeatedPoints(o)}},ir.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},ir.prototype.getNodedSubstrings=function(){var e=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(e),e},ir.prototype.computeNodes=function(e){var t=e;this._isScaled&&(t=this.scale(e)),this._noder.computeNodes(t)},ir.prototype.interfaces_=function(){return[_n]},ir.prototype.getClass=function(){return ir};var or=function(){this._li=new ie,this._segStrings=null;var e=arguments[0];this._segStrings=e},ar={fact:{configurable:!0}};or.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next().getCoordinates();this.checkEndPtVertexIntersections(t[0],this._segStrings),this.checkEndPtVertexIntersections(t[t.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1].iterator();r.hasNext();)for(var i=r.next().getCoordinates(),o=1;o<i.length-1;o++)if(i[o].equals(n))throw new Q("found endpt/interior pt intersection at index "+o+" :pt "+n)},or.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();)for(var t=e.next(),n=this._segStrings.iterator();n.hasNext();){var r=n.next();this.checkInteriorIntersections(t,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],a=i.getCoordinates(),s=o.getCoordinates(),l=0;l<a.length-1;l++)for(var c=0;c<s.length-1;c++)this.checkInteriorIntersections(i,l,o,c);else if(4===arguments.length){var u=arguments[0],d=arguments[1],p=arguments[2],h=arguments[3];if(u===p&&d===h)return null;var f=u.getCoordinates()[d],m=u.getCoordinates()[d+1],g=p.getCoordinates()[h],y=p.getCoordinates()[h+1];if(this._li.computeIntersection(f,m,g,y),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,f,m)||this.hasInteriorIntersection(this._li,g,y)))throw new Q("found non-noded intersection at "+f+"-"+m+" and "+g+"-"+y)}},or.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},or.prototype.checkCollapses=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next();this.checkCollapses(t)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),r=0;r<n.length-2;r++)this.checkCollapse(n[r],n[r+1],n[r+2])},or.prototype.hasInteriorIntersection=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++){var i=e.getIntersection(r);if(!i.equals(t)&&!i.equals(n))return!0}return!1},or.prototype.checkCollapse=function(e,t,n){if(e.equals(n))throw new Q("found non-noded collapse at "+or.fact.createLineString([e,t,n]))},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},ar.fact.get=function(){return new yt},Object.defineProperties(or,ar);var sr=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var e=arguments[0],t=arguments[1],n=arguments[2];if(this._originalPt=e,this._pt=e,this._scaleFactor=t,this._li=n,t<=0)throw new v("Scale factor must be non-zero");1!==t&&(this._pt=new C(this.scale(e.x),this.scale(e.y)),this._p0Scaled=new C,this._p1Scaled=new C),this.initCorners(this._pt)},lr={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};sr.prototype.intersectsScaled=function(e,t){var n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),a=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(a)return!1;var s=this.intersectsToleranceSquare(e,t);return te.isTrue(!(a&&s),"Found bad envelope test"),s},sr.prototype.initCorners=function(e){this._minx=e.x-.5,this._maxx=e.x+.5,this._miny=e.y-.5,this._maxy=e.y+.5,this._corner[0]=new C(this._maxx,this._maxy),this._corner[1]=new C(this._minx,this._maxy),this._corner[2]=new C(this._minx,this._miny),this._corner[3]=new C(this._maxx,this._miny)},sr.prototype.intersects=function(e,t){return 1===this._scaleFactor?this.intersectsScaled(e,t):(this.copyScaled(e,this._p0Scaled),this.copyScaled(t,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},sr.prototype.scale=function(e){return Math.round(e*this._scaleFactor)},sr.prototype.getCoordinate=function(){return this._originalPt},sr.prototype.copyScaled=function(e,t){t.x=this.scale(e.x),t.y=this.scale(e.y)},sr.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var e=sr.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new H(this._originalPt.x-e,this._originalPt.x+e,this._originalPt.y-e,this._originalPt.y+e)}return this._safeEnv},sr.prototype.intersectsPixelClosure=function(e,t){return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},sr.prototype.intersectsToleranceSquare=function(e,t){var n=!1,r=!1;return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!n||!r)||!!e.equals(this._pt)||!!t.equals(this._pt))))},sr.prototype.addSnappedNode=function(e,t){var n=e.getCoordinate(t),r=e.getCoordinate(t+1);return!!this.intersects(n,r)&&(e.addIntersection(this.getCoordinate(),t),!0)},sr.prototype.interfaces_=function(){return[]},sr.prototype.getClass=function(){return sr},lr.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(sr,lr);var cr=function(){this.tempEnv1=new H,this.selectedSegment=new mn};cr.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[1];arguments[0].getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr};var ur=function(){this._index=null;var e=arguments[0];this._index=e},dr={HotPixelSnapAction:{configurable:!0}};ur.prototype.snap=function(){if(1===arguments.length){var e=arguments[0];return this.snap(e,null,-1)}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=t.getSafeEnvelope(),o=new pr(t,n,r);return this._index.query(i,{interfaces_:function(){return[Yt]},visitItem:function(e){e.select(i,o)}}),o.isNodeAdded()}},ur.prototype.interfaces_=function(){return[]},ur.prototype.getClass=function(){return ur},dr.HotPixelSnapAction.get=function(){return pr},Object.defineProperties(ur,dr);var pr=function(e){function t(){e.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=t,this._parentEdge=n,this._hotPixelVertexIndex=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isNodeAdded=function(){return this._isNodeAdded},t.prototype.select=function(){if(2!==arguments.length)return e.prototype.select.apply(this,arguments);var t=arguments[1],n=arguments[0].getContext();if(null!==this._parentEdge&&n===this._parentEdge&&t===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(n,t)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(cr),hr=function(){this._li=null,this._interiorIntersections=null;var e=arguments[0];this._li=e,this._interiorIntersections=new ke};hr.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var l=0;l<this._li.getIntersectionNum();l++)this._interiorIntersections.add(this._li.getIntersection(l));e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)}},hr.prototype.isDone=function(){return!1},hr.prototype.getInteriorIntersections=function(){return this._interiorIntersections},hr.prototype.interfaces_=function(){return[Wn]},hr.prototype.getClass=function(){return hr};var fr=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var e=arguments[0];this._pm=e,this._li=new ie,this._li.setPrecisionModel(e),this._scaleFactor=e.getScale()};fr.prototype.checkCorrectness=function(e){var t=fn.getNodedSubstrings(e),n=new or(t);try{n.checkValid()}catch(e){if(!(e instanceof $))throw e;e.printStackTrace()}},fr.prototype.getNodedSubstrings=function(){return fn.getNodedSubstrings(this._nodedSegStrings)},fr.prototype.snapRound=function(e,t){var n=this.findInteriorIntersections(e,t);this.computeIntersectionSnaps(n),this.computeVertexSnaps(e)},fr.prototype.findInteriorIntersections=function(e,t){var n=new hr(t);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(e),n.getInteriorIntersections()},fr.prototype.computeVertexSnaps=function(){if(I(arguments[0],_e))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.computeVertexSnaps(t)}else if(arguments[0]instanceof fn)for(var n=arguments[0],r=n.getCoordinates(),i=0;i<r.length;i++){var o=new sr(r[i],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,i)&&n.addIntersection(r[i],i)}},fr.prototype.computeNodes=function(e){this._nodedSegStrings=e,this._noder=new xn,this._pointSnapper=new ur(this._noder.getIndex()),this.snapRound(e,this._li)},fr.prototype.computeIntersectionSnaps=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=new sr(n,this._scaleFactor,this._li);this._pointSnapper.snap(r)}},fr.prototype.interfaces_=function(){return[_n]},fr.prototype.getClass=function(){return fr};var mr=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Cn,this._resultGeometry=null,this._saveException=null,1===arguments.length){var e=arguments[0];this._argGeom=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._argGeom=t,this._bufParams=n}},gr={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};mr.prototype.bufferFixedPrecision=function(e){var t=new ir(new fr(new ht(1)),e.getScale()),n=new rr(this._bufParams);n.setWorkingPrecisionModel(e),n.setNoder(t),this._resultGeometry=n.buffer(this._argGeom,this._distance)},mr.prototype.bufferReducedPrecision=function(){var e=this;if(0===arguments.length){for(var t=mr.MAX_PRECISION_DIGITS;t>=0;t--){try{e.bufferReducedPrecision(t)}catch(t){if(!(t instanceof Et))throw t;e._saveException=t}if(null!==e._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=mr.precisionScaleFactor(this._argGeom,this._distance,n),i=new ht(r);this.bufferFixedPrecision(i)}},mr.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var e=this._argGeom.getFactory().getPrecisionModel();e.getType()===ht.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()},mr.prototype.setQuadrantSegments=function(e){this._bufParams.setQuadrantSegments(e)},mr.prototype.bufferOriginalPrecision=function(){try{var e=new rr(this._bufParams);this._resultGeometry=e.buffer(this._argGeom,this._distance)}catch(e){if(!(e instanceof Q))throw e;this._saveException=e}},mr.prototype.getResultGeometry=function(e){return this._distance=e,this.computeGeometry(),this._resultGeometry},mr.prototype.setEndCapStyle=function(e){this._bufParams.setEndCapStyle(e)},mr.prototype.interfaces_=function(){return[]},mr.prototype.getClass=function(){return mr},mr.bufferOp=function(){if(2===arguments.length){var e=arguments[1];return new mr(arguments[0]).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ue&&"number"==typeof arguments[1]){var t=arguments[1],n=arguments[2],r=new mr(arguments[0]);return r.setQuadrantSegments(n),r.getResultGeometry(t)}if(arguments[2]instanceof Cn&&arguments[0]instanceof ue&&"number"==typeof arguments[1]){var i=arguments[1];return new mr(arguments[0],arguments[2]).getResultGeometry(i)}}else if(4===arguments.length){var o=arguments[1],a=arguments[2],s=arguments[3],l=new mr(arguments[0]);return l.setQuadrantSegments(a),l.setEndCapStyle(s),l.getResultGeometry(o)}},mr.precisionScaleFactor=function(e,t,n){var r=e.getEnvelopeInternal(),i=O.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(t>0?t:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},gr.CAP_ROUND.get=function(){return Cn.CAP_ROUND},gr.CAP_BUTT.get=function(){return Cn.CAP_FLAT},gr.CAP_FLAT.get=function(){return Cn.CAP_FLAT},gr.CAP_SQUARE.get=function(){return Cn.CAP_SQUARE},gr.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(mr,gr);var yr=function(){this._pt=[new C,new C],this._distance=b.NaN,this._isNull=!0};yr.prototype.getCoordinates=function(){return this._pt},yr.prototype.getCoordinate=function(e){return this._pt[e]},yr.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},yr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},yr.prototype.getDistance=function(){return this._distance},yr.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},yr.prototype.interfaces_=function(){return[]},yr.prototype.getClass=function(){return yr};var vr=function(){};vr.prototype.interfaces_=function(){return[]},vr.prototype.getClass=function(){return vr},vr.computeDistance=function(){if(arguments[2]instanceof yr&&arguments[0]instanceof Ye&&arguments[1]instanceof C)for(var e=arguments[1],t=arguments[2],n=arguments[0].getCoordinates(),r=new mn,i=0;i<n.length-1;i++){r.setCoordinates(n[i],n[i+1]);var o=r.closestPoint(e);t.setMinimum(o,e)}else if(arguments[2]instanceof yr&&arguments[0]instanceof Qe&&arguments[1]instanceof C){var a=arguments[0],s=arguments[1],l=arguments[2];vr.computeDistance(a.getExteriorRing(),s,l);for(var c=0;c<a.getNumInteriorRing();c++)vr.computeDistance(a.getInteriorRingN(c),s,l)}else if(arguments[2]instanceof yr&&arguments[0]instanceof ue&&arguments[1]instanceof C){var u=arguments[0],d=arguments[1],p=arguments[2];if(u instanceof Ye)vr.computeDistance(u,d,p);else if(u instanceof Qe)vr.computeDistance(u,d,p);else if(u instanceof $e)for(var h=u,f=0;f<h.getNumGeometries();f++){var m=h.getGeometryN(f);vr.computeDistance(m,d,p)}else p.setMinimum(u.getCoordinate(),d)}else if(arguments[2]instanceof yr&&arguments[0]instanceof mn&&arguments[1]instanceof C){var g=arguments[1],y=arguments[2],v=arguments[0].closestPoint(g);y.setMinimum(v,g)}};var br=function(e){this._maxPtDist=new yr,this._inputGeom=e||null},_r={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};br.prototype.computeMaxMidpointDistance=function(e){var t=new xr(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},br.prototype.computeMaxVertexDistance=function(e){var t=new wr(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},br.prototype.findDistance=function(e){return this.computeMaxVertexDistance(e),this.computeMaxMidpointDistance(e),this._maxPtDist.getDistance()},br.prototype.getDistancePoints=function(){return this._maxPtDist},br.prototype.interfaces_=function(){return[]},br.prototype.getClass=function(){return br},_r.MaxPointDistanceFilter.get=function(){return wr},_r.MaxMidpointDistanceFilter.get=function(){return xr},Object.defineProperties(br,_r);var wr=function(e){this._maxPtDist=new yr,this._minPtDist=new yr,this._geom=e||null};wr.prototype.filter=function(e){this._minPtDist.initialize(),vr.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},wr.prototype.getMaxPointDistance=function(){return this._maxPtDist},wr.prototype.interfaces_=function(){return[he]},wr.prototype.getClass=function(){return wr};var xr=function(e){this._maxPtDist=new yr,this._minPtDist=new yr,this._geom=e||null};xr.prototype.filter=function(e,t){if(0===t)return null;var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=new C((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),vr.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},xr.prototype.isDone=function(){return!1},xr.prototype.isGeometryChanged=function(){return!1},xr.prototype.getMaxPointDistance=function(){return this._maxPtDist},xr.prototype.interfaces_=function(){return[Ue]},xr.prototype.getClass=function(){return xr};var kr=function(e){this._comps=e||null};kr.prototype.filter=function(e){e instanceof Qe&&this._comps.add(e)},kr.prototype.interfaces_=function(){return[Be]},kr.prototype.getClass=function(){return kr},kr.getPolygons=function(){if(1===arguments.length){var e=arguments[0];return kr.getPolygons(e,new ke)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof Qe?n.add(t):t instanceof $e&&t.apply(new kr(n)),n}};var Cr=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var e=arguments[0];this._lines=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._lines=t,this._isForcedToLineString=n}};Cr.prototype.filter=function(e){if(this._isForcedToLineString&&e instanceof tt){var t=e.getFactory().createLineString(e.getCoordinateSequence());return this._lines.add(t),null}e instanceof Ye&&this._lines.add(e)},Cr.prototype.setForceToLineString=function(e){this._isForcedToLineString=e},Cr.prototype.interfaces_=function(){return[ce]},Cr.prototype.getClass=function(){return Cr},Cr.getGeometry=function(){if(1===arguments.length){var e=arguments[0];return e.getFactory().buildGeometry(Cr.getLines(e))}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().buildGeometry(Cr.getLines(t,n))}},Cr.getLines=function(){if(1===arguments.length){var e=arguments[0];return Cr.getLines(e,!1)}if(2===arguments.length){if(I(arguments[0],_e)&&I(arguments[1],_e)){for(var t=arguments[1],n=arguments[0].iterator();n.hasNext();){var r=n.next();Cr.getLines(r,t)}return t}if(arguments[0]instanceof ue&&"boolean"==typeof arguments[1]){var i=arguments[0],o=arguments[1],a=new ke;return i.apply(new Cr(a,o)),a}if(arguments[0]instanceof ue&&I(arguments[1],_e)){var s=arguments[0],l=arguments[1];return s instanceof Ye?l.add(s):s.apply(new Cr(l)),l}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&I(arguments[0],_e)&&I(arguments[1],_e)){for(var c=arguments[1],u=arguments[2],d=arguments[0].iterator();d.hasNext();){var p=d.next();Cr.getLines(p,c,u)}return c}if("boolean"==typeof arguments[2]&&arguments[0]instanceof ue&&I(arguments[1],_e)){var h=arguments[1],f=arguments[2];return arguments[0].apply(new Cr(h,f)),h}}};var Sr=function(){if(this._boundaryRule=fe.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(null===e)throw new v("Rule must be non-null");this._boundaryRule=e}};Sr.prototype.locateInternal=function(){if(arguments[0]instanceof C&&arguments[1]instanceof Qe){var e=arguments[0],t=arguments[1];if(t.isEmpty())return E.EXTERIOR;var n=t.getExteriorRing(),r=this.locateInPolygonRing(e,n);if(r===E.EXTERIOR)return E.EXTERIOR;if(r===E.BOUNDARY)return E.BOUNDARY;for(var i=0;i<t.getNumInteriorRing();i++){var o=t.getInteriorRingN(i),a=this.locateInPolygonRing(e,o);if(a===E.INTERIOR)return E.EXTERIOR;if(a===E.BOUNDARY)return E.BOUNDARY}return E.INTERIOR}if(arguments[0]instanceof C&&arguments[1]instanceof Ye){var s=arguments[0],l=arguments[1];if(!l.getEnvelopeInternal().intersects(s))return E.EXTERIOR;var c=l.getCoordinates();return l.isClosed()||!s.equals(c[0])&&!s.equals(c[c.length-1])?se.isOnLine(s,c)?E.INTERIOR:E.EXTERIOR:E.BOUNDARY}if(arguments[0]instanceof C&&arguments[1]instanceof Xe){var u=arguments[0];return arguments[1].getCoordinate().equals2D(u)?E.INTERIOR:E.EXTERIOR}},Sr.prototype.locateInPolygonRing=function(e,t){return t.getEnvelopeInternal().intersects(e)?se.locatePointInRing(e,t.getCoordinates()):E.EXTERIOR},Sr.prototype.intersects=function(e,t){return this.locate(e,t)!==E.EXTERIOR},Sr.prototype.updateLocationInfo=function(e){e===E.INTERIOR&&(this._isIn=!0),e===E.BOUNDARY&&this._numBoundaries++},Sr.prototype.computeLocation=function(e,t){if(t instanceof Xe&&this.updateLocationInfo(this.locateInternal(e,t)),t instanceof Ye)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Qe)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Ve)for(var n=t,r=0;r<n.getNumGeometries();r++){var i=n.getGeometryN(r);this.updateLocationInfo(this.locateInternal(e,i))}else if(t instanceof nt)for(var o=t,a=0;a<o.getNumGeometries();a++){var s=o.getGeometryN(a);this.updateLocationInfo(this.locateInternal(e,s))}else if(t instanceof $e)for(var l=new Un(t);l.hasNext();){var c=l.next();c!==t&&this.computeLocation(e,c)}},Sr.prototype.locate=function(e,t){return t.isEmpty()?E.EXTERIOR:t instanceof Ye||t instanceof Qe?this.locateInternal(e,t):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(e,t),this._boundaryRule.isInBoundary(this._numBoundaries)?E.BOUNDARY:this._numBoundaries>0||this._isIn?E.INTERIOR:E.EXTERIOR)},Sr.prototype.interfaces_=function(){return[]},Sr.prototype.getClass=function(){return Sr};var Mr=function e(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length)e.call(this,arguments[0],e.INSIDE_AREA,arguments[1]);else if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];this._component=t,this._segIndex=n,this._pt=r}},Tr={INSIDE_AREA:{configurable:!0}};Mr.prototype.isInsideArea=function(){return this._segIndex===Mr.INSIDE_AREA},Mr.prototype.getCoordinate=function(){return this._pt},Mr.prototype.getGeometryComponent=function(){return this._component},Mr.prototype.getSegmentIndex=function(){return this._segIndex},Mr.prototype.interfaces_=function(){return[]},Mr.prototype.getClass=function(){return Mr},Tr.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Mr,Tr);var Er=function(e){this._pts=e||null};Er.prototype.filter=function(e){e instanceof Xe&&this._pts.add(e)},Er.prototype.interfaces_=function(){return[Be]},Er.prototype.getClass=function(){return Er},Er.getPoints=function(){if(1===arguments.length){var e=arguments[0];return e instanceof Xe?Qt.singletonList(e):Er.getPoints(e,new ke)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof Xe?n.add(t):t instanceof $e&&t.apply(new Er(n)),n}};var Pr=function(){this._locations=null;var e=arguments[0];this._locations=e};Pr.prototype.filter=function(e){(e instanceof Xe||e instanceof Ye||e instanceof Qe)&&this._locations.add(new Mr(e,0,e.getCoordinate()))},Pr.prototype.interfaces_=function(){return[Be]},Pr.prototype.getClass=function(){return Pr},Pr.getLocations=function(e){var t=new ke;return e.apply(new Pr(t)),t};var Ir=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Sr,this._minDistanceLocation=null,this._minDistance=b.MAX_VALUE,2===arguments.length){var e=arguments[0],t=arguments[1];this._geom=[e,t],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Ir.prototype.computeContainmentDistance=function(){if(0===arguments.length){var e=new Array(2).fill(null);if(this.computeContainmentDistance(0,e),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=1-t,i=kr.getPolygons(this._geom[t]);if(i.size()>0){var o=Pr.getLocations(this._geom[r]);if(this.computeContainmentDistance(o,i,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[t]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&I(arguments[0],xe)&&I(arguments[1],xe)){for(var a=arguments[0],s=arguments[1],l=arguments[2],c=0;c<a.size();c++)for(var u=a.get(c),d=0;d<s.size();d++)if(this.computeContainmentDistance(u,s.get(d),l),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Mr&&arguments[1]instanceof Qe){var p=arguments[0],h=arguments[1],f=arguments[2],m=p.getCoordinate();if(E.EXTERIOR!==this._ptLocator.locate(m,h))return this._minDistance=0,f[0]=p,f[1]=new Mr(h,m),null}},Ir.prototype.computeMinDistanceLinesPoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.computeFacetDistance=function(){var e=new Array(2).fill(null),t=Cr.getLines(this._geom[0]),n=Cr.getLines(this._geom[1]),r=Er.getPoints(this._geom[0]),i=Er.getPoints(this._geom[1]);return this.computeMinDistanceLines(t,n,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(t,i,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(n,r,e),this.updateMinDistance(e,!0),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistancePoints(r,i,e),void this.updateMinDistance(e,!1))))},Ir.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Ir.prototype.updateMinDistance=function(e,t){if(null===e[0])return null;t?(this._minDistanceLocation[0]=e[1],this._minDistanceLocation[1]=e[0]):(this._minDistanceLocation[0]=e[0],this._minDistanceLocation[1]=e[1])},Ir.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Ir.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Ye&&arguments[1]instanceof Xe){var e=arguments[0],t=arguments[1],n=arguments[2];if(e.getEnvelopeInternal().distance(t.getEnvelopeInternal())>this._minDistance)return null;for(var r=e.getCoordinates(),i=t.getCoordinate(),o=0;o<r.length-1;o++){var a=se.distancePointLine(i,r[o],r[o+1]);if(a<this._minDistance){this._minDistance=a;var s=new mn(r[o],r[o+1]).closestPoint(i);n[0]=new Mr(e,o,s),n[1]=new Mr(t,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Ye&&arguments[1]instanceof Ye){var l=arguments[0],c=arguments[1],u=arguments[2];if(l.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var d=l.getCoordinates(),p=c.getCoordinates(),h=0;h<d.length-1;h++)for(var f=0;f<p.length-1;f++){var m=se.distanceLineLine(d[h],d[h+1],p[f],p[f+1]);if(m<this._minDistance){this._minDistance=m;var g=new mn(d[h],d[h+1]),y=new mn(p[f],p[f+1]),v=g.closestPoints(y);u[0]=new Mr(l,h,v[0]),u[1]=new Mr(c,f,v[1])}if(this._minDistance<=this._terminateDistance)return null}}},Ir.prototype.computeMinDistancePoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o),s=i.getCoordinate().distance(a.getCoordinate());if(s<this._minDistance&&(this._minDistance=s,n[0]=new Mr(i,0,i.getCoordinate()),n[1]=new Mr(a,0,a.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new v("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Ir.prototype.computeMinDistanceLines=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.interfaces_=function(){return[]},Ir.prototype.getClass=function(){return Ir},Ir.distance=function(e,t){return new Ir(e,t).distance()},Ir.isWithinDistance=function(e,t,n){return new Ir(e,t,n).distance()<=n},Ir.nearestPoints=function(e,t){return new Ir(e,t).nearestPoints()};var Or=function(){this._pt=[new C,new C],this._distance=b.NaN,this._isNull=!0};Or.prototype.getCoordinates=function(){return this._pt},Or.prototype.getCoordinate=function(e){return this._pt[e]},Or.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},Or.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Or.prototype.toString=function(){return J.toLineString(this._pt[0],this._pt[1])},Or.prototype.getDistance=function(){return this._distance},Or.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},Or.prototype.interfaces_=function(){return[]},Or.prototype.getClass=function(){return Or};var Lr=function(){};Lr.prototype.interfaces_=function(){return[]},Lr.prototype.getClass=function(){return Lr},Lr.computeDistance=function(){if(arguments[2]instanceof Or&&arguments[0]instanceof Ye&&arguments[1]instanceof C)for(var e=arguments[0],t=arguments[1],n=arguments[2],r=new mn,i=e.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var a=r.closestPoint(t);n.setMinimum(a,t)}else if(arguments[2]instanceof Or&&arguments[0]instanceof Qe&&arguments[1]instanceof C){var s=arguments[0],l=arguments[1],c=arguments[2];Lr.computeDistance(s.getExteriorRing(),l,c);for(var u=0;u<s.getNumInteriorRing();u++)Lr.computeDistance(s.getInteriorRingN(u),l,c)}else if(arguments[2]instanceof Or&&arguments[0]instanceof ue&&arguments[1]instanceof C){var d=arguments[0],p=arguments[1],h=arguments[2];if(d instanceof Ye)Lr.computeDistance(d,p,h);else if(d instanceof Qe)Lr.computeDistance(d,p,h);else if(d instanceof $e)for(var f=d,m=0;m<f.getNumGeometries();m++){var g=f.getGeometryN(m);Lr.computeDistance(g,p,h)}else h.setMinimum(d.getCoordinate(),p)}else if(arguments[2]instanceof Or&&arguments[0]instanceof mn&&arguments[1]instanceof C){var y=arguments[1],v=arguments[2],b=arguments[0].closestPoint(y);v.setMinimum(b,y)}};var Rr=function(){this._g0=null,this._g1=null,this._ptDist=new Or,this._densifyFrac=0;var e=arguments[0],t=arguments[1];this._g0=e,this._g1=t},jr={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Rr.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Rr.prototype.setDensifyFraction=function(e){if(e>1||e<=0)throw new v("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=e},Rr.prototype.compute=function(e,t){this.computeOrientedDistance(e,t,this._ptDist),this.computeOrientedDistance(t,e,this._ptDist)},Rr.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Rr.prototype.computeOrientedDistance=function(e,t,n){var r=new Dr(t);if(e.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Ar(t,this._densifyFrac);e.apply(i),n.setMaximum(i.getMaxPointDistance())}},Rr.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Rr.prototype.interfaces_=function(){return[]},Rr.prototype.getClass=function(){return Rr},Rr.distance=function(){if(2===arguments.length)return new Rr(arguments[0],arguments[1]).distance();if(3===arguments.length){var e=arguments[2],t=new Rr(arguments[0],arguments[1]);return t.setDensifyFraction(e),t.distance()}},jr.MaxPointDistanceFilter.get=function(){return Dr},jr.MaxDensifiedByFractionDistanceFilter.get=function(){return Ar},Object.defineProperties(Rr,jr);var Dr=function(){this._maxPtDist=new Or,this._minPtDist=new Or,this._euclideanDist=new Lr,this._geom=null;var e=arguments[0];this._geom=e};Dr.prototype.filter=function(e){this._minPtDist.initialize(),Lr.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Dr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Dr.prototype.interfaces_=function(){return[he]},Dr.prototype.getClass=function(){return Dr};var Ar=function(){this._maxPtDist=new Or,this._minPtDist=new Or,this._geom=null,this._numSubSegs=0;var e=arguments[0],t=arguments[1];this._geom=e,this._numSubSegs=Math.trunc(Math.round(1/t))};Ar.prototype.filter=function(e,t){if(0===t)return null;for(var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=(r.x-n.x)/this._numSubSegs,o=(r.y-n.y)/this._numSubSegs,a=0;a<this._numSubSegs;a++){var s=n.x+a*i,l=n.y+a*o,c=new C(s,l);this._minPtDist.initialize(),Lr.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},Ar.prototype.isDone=function(){return!1},Ar.prototype.isGeometryChanged=function(){return!1},Ar.prototype.getMaxPointDistance=function(){return this._maxPtDist},Ar.prototype.interfaces_=function(){return[Ue]},Ar.prototype.getClass=function(){return Ar};var Nr=function(e,t,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._bufDistance=t||null,this._result=n||null},Fr={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};Nr.prototype.checkMaximumDistance=function(e,t,n){var r=new Rr(t,e);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+J.toLineString(i[0],i[1])+")"}},Nr.prototype.isValid=function(){var e=Math.abs(this._bufDistance),t=Nr.MAX_DISTANCE_DIFF_FRAC*e;return this._minValidDistance=e-t,this._maxValidDistance=e+t,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Nr.VERBOSE&&q.out.println("Min Dist= "+this._minDistanceFound+"  err= "+(1-this._minDistanceFound/this._bufDistance)+"  Max Dist= "+this._maxDistanceFound+"  err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Nr.prototype.checkNegativeValid=function(){if(!(this._input instanceof Qe||this._input instanceof nt||this._input instanceof $e))return null;var e=this.getPolygonLines(this._input);if(this.checkMinimumDistance(e,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(e,this._result,this._maxValidDistance)},Nr.prototype.getErrorIndicator=function(){return this._errorIndicator},Nr.prototype.checkMinimumDistance=function(e,t,n){var r=new Ir(e,t,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+J.toLineString(i[0],i[1])+" )"}},Nr.prototype.checkPositiveValid=function(){var e=this._result.getBoundary();if(this.checkMinimumDistance(this._input,e,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,e,this._maxValidDistance)},Nr.prototype.getErrorLocation=function(){return this._errorLocation},Nr.prototype.getPolygonLines=function(e){for(var t=new ke,n=new Cr(t),r=kr.getPolygons(e).iterator();r.hasNext();)r.next().apply(n);return e.getFactory().buildGeometry(t)},Nr.prototype.getErrorMessage=function(){return this._errMsg},Nr.prototype.interfaces_=function(){return[]},Nr.prototype.getClass=function(){return Nr},Fr.VERBOSE.get=function(){return!1},Fr.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Nr,Fr);var zr=function(e,t,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._distance=t||null,this._result=n||null},Br={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};zr.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},zr.prototype.checkEnvelope=function(){if(this._distance<0)return null;var e=this._distance*zr.MAX_ENV_DIFF_FRAC;0===e&&(e=.001);var t=new H(this._input.getEnvelopeInternal());t.expandBy(this._distance);var n=new H(this._result.getEnvelopeInternal());n.expandBy(e),n.contains(t)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},zr.prototype.checkDistance=function(){var e=new Nr(this._input,this._distance,this._result);e.isValid()||(this._isValid=!1,this._errorMsg=e.getErrorMessage(),this._errorLocation=e.getErrorLocation(),this._errorIndicator=e.getErrorIndicator()),this.report("Distance")},zr.prototype.checkArea=function(){var e=this._input.getArea(),t=this._result.getArea();this._distance>0&&e>t&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&e<t&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},zr.prototype.checkPolygonal=function(){this._result instanceof Qe||this._result instanceof nt||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},zr.prototype.getErrorIndicator=function(){return this._errorIndicator},zr.prototype.getErrorLocation=function(){return this._errorLocation},zr.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},zr.prototype.report=function(e){if(!zr.VERBOSE)return null;q.out.println("Check "+e+": "+(this._isValid?"passed":"FAILED"))},zr.prototype.getErrorMessage=function(){return this._errorMsg},zr.prototype.interfaces_=function(){return[]},zr.prototype.getClass=function(){return zr},zr.isValidMsg=function(e,t,n){var r=new zr(e,t,n);return r.isValid()?null:r.getErrorMessage()},zr.isValid=function(e,t,n){return!!new zr(e,t,n).isValid()},Br.VERBOSE.get=function(){return!1},Br.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(zr,Br);var Ur=function(){this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};Ur.prototype.getCoordinates=function(){return this._pts},Ur.prototype.size=function(){return this._pts.length},Ur.prototype.getCoordinate=function(e){return this._pts[e]},Ur.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Ur.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:dn.octant(this.getCoordinate(e),this.getCoordinate(e+1))},Ur.prototype.setData=function(e){this._data=e},Ur.prototype.getData=function(){return this._data},Ur.prototype.toString=function(){return J.toLineString(new lt(this._pts))},Ur.prototype.interfaces_=function(){return[pn]},Ur.prototype.getClass=function(){return Ur};var $r=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new ke,this._intersectionCount=0,this._keepIntersections=!0;var e=arguments[0];this._li=e,this._interiorIntersection=null};$r.prototype.getInteriorIntersection=function(){return this._interiorIntersection},$r.prototype.setCheckEndSegmentsOnly=function(e){this._isCheckEndSegmentsOnly=e},$r.prototype.getIntersectionSegments=function(){return this._intSegments},$r.prototype.count=function(){return this._intersectionCount},$r.prototype.getIntersections=function(){return this._intersections},$r.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},$r.prototype.setKeepIntersections=function(e){this._keepIntersections=e},$r.prototype.processIntersections=function(e,t,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(e===n&&t===r)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(e,t)&&!this.isEndSegment(n,r))return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=a,this._intSegments[3]=s,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},$r.prototype.isEndSegment=function(e,t){return 0===t||t>=e.size()-2},$r.prototype.hasIntersection=function(){return null!==this._interiorIntersection},$r.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},$r.prototype.interfaces_=function(){return[Wn]},$r.prototype.getClass=function(){return $r},$r.createAllIntersectionsFinder=function(e){var t=new $r(e);return t.setFindAllIntersections(!0),t},$r.createAnyIntersectionFinder=function(e){return new $r(e)},$r.createIntersectionCounter=function(e){var t=new $r(e);return t.setFindAllIntersections(!0),t.setKeepIntersections(!1),t};var Vr=function(){this._li=new ie,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var e=arguments[0];this._segStrings=e};Vr.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Vr.prototype.getIntersections=function(){return this._segInt.getIntersections()},Vr.prototype.isValid=function(){return this.execute(),this._isValid},Vr.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},Vr.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new $r(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var e=new xn;if(e.setSegmentIntersector(this._segInt),e.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Vr.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Et(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Vr.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var e=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+J.toLineString(e[0],e[1])+" and "+J.toLineString(e[2],e[3])},Vr.prototype.interfaces_=function(){return[]},Vr.prototype.getClass=function(){return Vr},Vr.computeIntersections=function(e){var t=new Vr(e);return t.setFindAllIntersections(!0),t.isValid(),t.getIntersections()};var qr=function e(){this._nv=null;var t=arguments[0];this._nv=new Vr(e.toSegmentStrings(t))};qr.prototype.checkValid=function(){this._nv.checkValid()},qr.prototype.interfaces_=function(){return[]},qr.prototype.getClass=function(){return qr},qr.toSegmentStrings=function(e){for(var t=new ke,n=e.iterator();n.hasNext();){var r=n.next();t.add(new Ur(r.getCoordinates(),r))}return t},qr.checkValid=function(e){new qr(e).checkValid()};var Zr=function(e){this._mapOp=e};Zr.prototype.map=function(e){for(var t=new ke,n=0;n<e.getNumGeometries();n++){var r=this._mapOp.map(e.getGeometryN(n));r.isEmpty()||t.add(r)}return e.getFactory().createGeometryCollection(yt.toGeometryArray(t))},Zr.prototype.interfaces_=function(){return[]},Zr.prototype.getClass=function(){return Zr},Zr.map=function(e,t){return new Zr(t).map(e)};var Hr=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new ke,this._resultLineList=new ke;var e=arguments[0],t=arguments[1],n=arguments[2];this._op=e,this._geometryFactory=t,this._ptLocator=n};Hr.prototype.collectLines=function(e){for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next();this.collectLineEdge(n,e,this._lineEdgesList),this.collectBoundaryTouchEdge(n,e,this._lineEdgesList)}},Hr.prototype.labelIsolatedLine=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._op.getArgGeometry(t));e.getLabel().setLocation(t,n)},Hr.prototype.build=function(e){return this.findCoveredLineEdges(),this.collectLines(e),this.buildLines(e),this._resultLineList},Hr.prototype.collectLineEdge=function(e,t,n){var r=e.getLabel(),i=e.getEdge();e.isLineEdge()&&(e.isVisited()||!Mi.isResultOfOp(r,t)||i.isCovered()||(n.add(i),e.setVisitedEdge(!0)))},Hr.prototype.findCoveredLineEdges=function(){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();)e.next().getEdges().findCoveredLineEdges();for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},Hr.prototype.labelIsolatedLines=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Hr.prototype.buildLines=function(e){for(var t=this._lineEdgesList.iterator();t.hasNext();){var n=t.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},Hr.prototype.collectBoundaryTouchEdge=function(e,t,n){var r=e.getLabel();return e.isLineEdge()||e.isVisited()||e.isInteriorAreaEdge()||e.getEdge().isInResult()?null:(te.isTrue(!(e.isInResult()||e.getSym().isInResult())||!e.getEdge().isInResult()),void(Mi.isResultOfOp(r,t)&&t===Mi.INTERSECTION&&(n.add(e.getEdge()),e.setVisitedEdge(!0))))},Hr.prototype.interfaces_=function(){return[]},Hr.prototype.getClass=function(){return Hr};var Gr=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new ke;var e=arguments[0],t=arguments[1];this._op=e,this._geometryFactory=t};Gr.prototype.filterCoveredNodeToPoint=function(e){var t=e.getCoordinate();if(!this._op.isCoveredByLA(t)){var n=this._geometryFactory.createPoint(t);this._resultPointList.add(n)}},Gr.prototype.extractNonCoveredResultNodes=function(e){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();){var n=t.next();if(!n.isInResult()&&!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||e===Mi.INTERSECTION)){var r=n.getLabel();Mi.isResultOfOp(r,e)&&this.filterCoveredNodeToPoint(n)}}},Gr.prototype.build=function(e){return this.extractNonCoveredResultNodes(e),this._resultPointList},Gr.prototype.interfaces_=function(){return[]},Gr.prototype.getClass=function(){return Gr};var Wr=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Wr.prototype.transformPoint=function(e,t){return this._factory.createPoint(this.transformCoordinates(e.getCoordinateSequence(),e))},Wr.prototype.transformPolygon=function(e,t){var n=!0,r=this.transformLinearRing(e.getExteriorRing(),e);null!==r&&r instanceof tt&&!r.isEmpty()||(n=!1);for(var i=new ke,o=0;o<e.getNumInteriorRing();o++){var a=this.transformLinearRing(e.getInteriorRingN(o),e);null===a||a.isEmpty()||(a instanceof tt||(n=!1),i.add(a))}if(n)return this._factory.createPolygon(r,i.toArray([]));var s=new ke;return null!==r&&s.add(r),s.addAll(i),this._factory.buildGeometry(s)},Wr.prototype.createCoordinateSequence=function(e){return this._factory.getCoordinateSequenceFactory().create(e)},Wr.prototype.getInputGeometry=function(){return this._inputGeom},Wr.prototype.transformMultiLineString=function(e,t){for(var n=new ke,r=0;r<e.getNumGeometries();r++){var i=this.transformLineString(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.transformCoordinates=function(e,t){return this.copy(e)},Wr.prototype.transformLineString=function(e,t){return this._factory.createLineString(this.transformCoordinates(e.getCoordinateSequence(),e))},Wr.prototype.transformMultiPoint=function(e,t){for(var n=new ke,r=0;r<e.getNumGeometries();r++){var i=this.transformPoint(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.transformMultiPolygon=function(e,t){for(var n=new ke,r=0;r<e.getNumGeometries();r++){var i=this.transformPolygon(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.copy=function(e){return e.copy()},Wr.prototype.transformGeometryCollection=function(e,t){for(var n=new ke,r=0;r<e.getNumGeometries();r++){var i=this.transform(e.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(yt.toGeometryArray(n)):this._factory.buildGeometry(n)},Wr.prototype.transform=function(e){if(this._inputGeom=e,this._factory=e.getFactory(),e instanceof Xe)return this.transformPoint(e,null);if(e instanceof et)return this.transformMultiPoint(e,null);if(e instanceof tt)return this.transformLinearRing(e,null);if(e instanceof Ye)return this.transformLineString(e,null);if(e instanceof Ve)return this.transformMultiLineString(e,null);if(e instanceof Qe)return this.transformPolygon(e,null);if(e instanceof nt)return this.transformMultiPolygon(e,null);if(e instanceof $e)return this.transformGeometryCollection(e,null);throw new v("Unknown Geometry subtype: "+e.getClass().getName())},Wr.prototype.transformLinearRing=function(e,t){var n=this.transformCoordinates(e.getCoordinateSequence(),e);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Wr.prototype.interfaces_=function(){return[]},Wr.prototype.getClass=function(){return Wr};var Yr=function e(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new mn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Ye&&"number"==typeof arguments[1]){var t=arguments[1];e.call(this,arguments[0].getCoordinates(),t)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this._srcPts=n,this._isClosed=e.isClosed(n),this._snapTolerance=r}};Yr.prototype.snapVertices=function(e,t){for(var n=this._isClosed?e.size()-1:e.size(),r=0;r<n;r++){var i=e.get(r),o=this.findSnapForVertex(i,t);null!==o&&(e.set(r,new C(o)),0===r&&this._isClosed&&e.set(e.size()-1,new C(o)))}},Yr.prototype.findSnapForVertex=function(e,t){for(var n=0;n<t.length;n++){if(e.equals2D(t[n]))return null;if(e.distance(t[n])<this._snapTolerance)return t[n]}return null},Yr.prototype.snapTo=function(e){var t=new Se(this._srcPts);return this.snapVertices(t,e),this.snapSegments(t,e),t.toCoordinateArray()},Yr.prototype.snapSegments=function(e,t){if(0===t.length)return null;var n=t.length;t[0].equals2D(t[t.length-1])&&(n=t.length-1);for(var r=0;r<n;r++){var i=t[r],o=this.findSegmentIndexToSnap(i,e);o>=0&&e.add(o+1,new C(i),!1)}},Yr.prototype.findSegmentIndexToSnap=function(e,t){for(var n=b.MAX_VALUE,r=-1,i=0;i<t.size()-1;i++){if(this._seg.p0=t.get(i),this._seg.p1=t.get(i+1),this._seg.p0.equals2D(e)||this._seg.p1.equals2D(e)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(e);o<this._snapTolerance&&o<n&&(n=o,r=i)}return r},Yr.prototype.setAllowSnappingToSourceVertices=function(e){this._allowSnappingToSourceVertices=e},Yr.prototype.interfaces_=function(){return[]},Yr.prototype.getClass=function(){return Yr},Yr.isClosed=function(e){return!(e.length<=1)&&e[0].equals2D(e[e.length-1])};var Kr=function(e){this._srcGeom=e||null},Xr={SNAP_PRECISION_FACTOR:{configurable:!0}};Kr.prototype.snapTo=function(e,t){var n=this.extractTargetCoordinates(e);return new Jr(t,n).transform(this._srcGeom)},Kr.prototype.snapToSelf=function(e,t){var n=this.extractTargetCoordinates(this._srcGeom),r=new Jr(e,n,!0).transform(this._srcGeom),i=r;return t&&I(i,Je)&&(i=r.buffer(0)),i},Kr.prototype.computeSnapTolerance=function(e){return this.computeMinimumSegmentLength(e)/10},Kr.prototype.extractTargetCoordinates=function(e){for(var t=new h,n=e.getCoordinates(),r=0;r<n.length;r++)t.add(n[r]);return t.toArray(new Array(0).fill(null))},Kr.prototype.computeMinimumSegmentLength=function(e){for(var t=b.MAX_VALUE,n=0;n<e.length-1;n++){var r=e[n].distance(e[n+1]);r<t&&(t=r)}return t},Kr.prototype.interfaces_=function(){return[]},Kr.prototype.getClass=function(){return Kr},Kr.snap=function(e,t,n){var r=new Array(2).fill(null),i=new Kr(e);r[0]=i.snapTo(t,n);var o=new Kr(t);return r[1]=o.snapTo(r[0],n),r},Kr.computeOverlaySnapTolerance=function(){if(1===arguments.length){var e=arguments[0],t=Kr.computeSizeBasedSnapTolerance(e),n=e.getPrecisionModel();if(n.getType()===ht.FIXED){var r=1/n.getScale()*2/1.415;r>t&&(t=r)}return t}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min(Kr.computeOverlaySnapTolerance(i),Kr.computeOverlaySnapTolerance(o))}},Kr.computeSizeBasedSnapTolerance=function(e){var t=e.getEnvelopeInternal();return Math.min(t.getHeight(),t.getWidth())*Kr.SNAP_PRECISION_FACTOR},Kr.snapToSelf=function(e,t,n){return new Kr(e).snapToSelf(t,n)},Xr.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Kr,Xr);var Jr=function(e){function t(t,n,r){e.call(this),this._snapTolerance=t||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.snapLine=function(e,t){var n=new Yr(e,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(t)},t.prototype.transformCoordinates=function(e,t){var n=e.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Wr),Qr=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Qr.prototype.getCommon=function(){return b.longBitsToDouble(this._commonBits)},Qr.prototype.add=function(e){var t=b.doubleToLongBits(e);return this._isFirst?(this._commonBits=t,this._commonSignExp=Qr.signExpBits(this._commonBits),this._isFirst=!1,null):Qr.signExpBits(t)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Qr.numCommonMostSigMantissaBits(this._commonBits,t),void(this._commonBits=Qr.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Qr.prototype.toString=function(){if(1===arguments.length){var e=arguments[0],t=b.longBitsToDouble(e),n="0000000000000000000000000000000000000000000000000000000000000000"+b.toBinaryString(e),r=n.substring(n.length-64);return r.substring(0,1)+"  "+r.substring(1,12)+"(exp) "+r.substring(12)+" [ "+t+" ]"}},Qr.prototype.interfaces_=function(){return[]},Qr.prototype.getClass=function(){return Qr},Qr.getBit=function(e,t){return 0!=(e&1<<t)?1:0},Qr.signExpBits=function(e){return e>>52},Qr.zeroLowerBits=function(e,t){return e&~((1<<t)-1)},Qr.numCommonMostSigMantissaBits=function(e,t){for(var n=0,r=52;r>=0;r--){if(Qr.getBit(e,r)!==Qr.getBit(t,r))return n;n++}return 52};var ei=function(){this._commonCoord=null,this._ccFilter=new ni},ti={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};ei.prototype.addCommonBits=function(e){var t=new ri(this._commonCoord);e.apply(t),e.geometryChanged()},ei.prototype.removeCommonBits=function(e){if(0===this._commonCoord.x&&0===this._commonCoord.y)return e;var t=new C(this._commonCoord);t.x=-t.x,t.y=-t.y;var n=new ri(t);return e.apply(n),e.geometryChanged(),e},ei.prototype.getCommonCoordinate=function(){return this._commonCoord},ei.prototype.add=function(e){e.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},ei.prototype.interfaces_=function(){return[]},ei.prototype.getClass=function(){return ei},ti.CommonCoordinateFilter.get=function(){return ni},ti.Translater.get=function(){return ri},Object.defineProperties(ei,ti);var ni=function(){this._commonBitsX=new Qr,this._commonBitsY=new Qr};ni.prototype.filter=function(e){this._commonBitsX.add(e.x),this._commonBitsY.add(e.y)},ni.prototype.getCommonCoordinate=function(){return new C(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},ni.prototype.interfaces_=function(){return[he]},ni.prototype.getClass=function(){return ni};var ri=function(){this.trans=null;var e=arguments[0];this.trans=e};ri.prototype.filter=function(e,t){var n=e.getOrdinate(t,0)+this.trans.x,r=e.getOrdinate(t,1)+this.trans.y;e.setOrdinate(t,0,n),e.setOrdinate(t,1,r)},ri.prototype.isDone=function(){return!1},ri.prototype.isGeometryChanged=function(){return!0},ri.prototype.interfaces_=function(){return[Ue]},ri.prototype.getClass=function(){return ri};var ii=function(e,t){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=e,this._geom[1]=t,this.computeSnapTolerance()};ii.prototype.selfSnap=function(e){return new Kr(e).snapTo(e,this._snapTolerance)},ii.prototype.removeCommonBits=function(e){this._cbr=new ei,this._cbr.add(e[0]),this._cbr.add(e[1]);var t=new Array(2).fill(null);return t[0]=this._cbr.removeCommonBits(e[0].copy()),t[1]=this._cbr.removeCommonBits(e[1].copy()),t},ii.prototype.prepareResult=function(e){return this._cbr.addCommonBits(e),e},ii.prototype.getResultGeometry=function(e){var t=this.snap(this._geom),n=Mi.overlayOp(t[0],t[1],e);return this.prepareResult(n)},ii.prototype.checkValid=function(e){e.isValid()||q.out.println("Snapped geometry is invalid")},ii.prototype.computeSnapTolerance=function(){this._snapTolerance=Kr.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ii.prototype.snap=function(e){var t=this.removeCommonBits(e);return Kr.snap(t[0],t[1],this._snapTolerance)},ii.prototype.interfaces_=function(){return[]},ii.prototype.getClass=function(){return ii},ii.overlayOp=function(e,t,n){return new ii(e,t).getResultGeometry(n)},ii.union=function(e,t){return ii.overlayOp(e,t,Mi.UNION)},ii.intersection=function(e,t){return ii.overlayOp(e,t,Mi.INTERSECTION)},ii.symDifference=function(e,t){return ii.overlayOp(e,t,Mi.SYMDIFFERENCE)},ii.difference=function(e,t){return ii.overlayOp(e,t,Mi.DIFFERENCE)};var oi=function(e,t){this._geom=new Array(2).fill(null),this._geom[0]=e,this._geom[1]=t};oi.prototype.getResultGeometry=function(e){var t=null,n=!1,r=null;try{t=Mi.overlayOp(this._geom[0],this._geom[1],e),n=!0}catch(e){if(!(e instanceof Q))throw e;r=e}if(!n)try{t=ii.overlayOp(this._geom[0],this._geom[1],e)}catch(e){throw e instanceof Q?r:e}return t},oi.prototype.interfaces_=function(){return[]},oi.prototype.getClass=function(){return oi},oi.overlayOp=function(e,t,n){return new oi(e,t).getResultGeometry(n)},oi.union=function(e,t){return oi.overlayOp(e,t,Mi.UNION)},oi.intersection=function(e,t){return oi.overlayOp(e,t,Mi.INTERSECTION)},oi.symDifference=function(e,t){return oi.overlayOp(e,t,Mi.SYMDIFFERENCE)},oi.difference=function(e,t){return oi.overlayOp(e,t,Mi.DIFFERENCE)};var ai=function(){this.mce=null,this.chainIndex=null;var e=arguments[0],t=arguments[1];this.mce=e,this.chainIndex=t};ai.prototype.computeIntersections=function(e,t){this.mce.computeIntersectsForChain(this.chainIndex,e.mce,e.chainIndex,t)},ai.prototype.interfaces_=function(){return[]},ai.prototype.getClass=function(){return ai};var si=function e(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var t=arguments[0],n=arguments[1];this._eventType=e.DELETE,this._xValue=t,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=e.INSERT,this._label=r,this._xValue=i,this._obj=o}},li={INSERT:{configurable:!0},DELETE:{configurable:!0}};si.prototype.isDelete=function(){return this._eventType===si.DELETE},si.prototype.setDeleteEventIndex=function(e){this._deleteEventIndex=e},si.prototype.getObject=function(){return this._obj},si.prototype.compareTo=function(e){var t=e;return this._xValue<t._xValue?-1:this._xValue>t._xValue?1:this._eventType<t._eventType?-1:this._eventType>t._eventType?1:0},si.prototype.getInsertEvent=function(){return this._insertEvent},si.prototype.isInsert=function(){return this._eventType===si.INSERT},si.prototype.isSameLabel=function(e){return null!==this._label&&this._label===e._label},si.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},si.prototype.interfaces_=function(){return[w]},si.prototype.getClass=function(){return si},li.INSERT.get=function(){return 1},li.DELETE.get=function(){return 2},Object.defineProperties(si,li);var ci=function(){};ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci};var ui=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var e=arguments[0],t=arguments[1],n=arguments[2];this._li=e,this._includeProper=t,this._recordIsolated=n};ui.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(ui.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.getNumPoints()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},ui.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},ui.prototype.setIsDoneIfProperInt=function(e){this._isDoneWhenProperInt=e},ui.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},ui.prototype.isBoundaryPointInternal=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next().getCoordinate();if(e.isIntersection(r))return!0}return!1},ui.prototype.hasProperIntersection=function(){return this._hasProper},ui.prototype.hasIntersection=function(){return this._hasIntersection},ui.prototype.isDone=function(){return this._isDone},ui.prototype.isBoundaryPoint=function(e,t){return null!==t&&(!!this.isBoundaryPointInternal(e,t[0])||!!this.isBoundaryPointInternal(e,t[1]))},ui.prototype.setBoundaryNodes=function(e,t){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=e,this._bdyNodes[1]=t},ui.prototype.addIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this._recordIsolated&&(e.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},ui.prototype.interfaces_=function(){return[]},ui.prototype.getClass=function(){return ui},ui.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var di=function(e){function t(){e.call(this),this.events=new ke,this.nOverlaps=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.prepareEvents=function(){Qt.sort(this.events);for(var e=0;e<this.events.size();e++){var t=this.events.get(e);t.isDelete()&&t.getInsertEvent().setDeleteEventIndex(e)}},t.prototype.computeIntersections=function(){if(1===arguments.length){var e=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var t=0;t<this.events.size();t++){var n=this.events.get(t);if(n.isInsert()&&this.processOverlaps(t,n.getDeleteEventIndex(),n,e),e.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof ui&&I(arguments[0],xe)&&I(arguments[1],xe)){var r=arguments[0],i=arguments[1],o=arguments[2];this.addEdges(r,r),this.addEdges(i,i),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&I(arguments[0],xe)&&arguments[1]instanceof ui){var a=arguments[0],s=arguments[1];arguments[2]?this.addEdges(a,null):this.addEdges(a),this.computeIntersections(s)}},t.prototype.addEdge=function(e,t){for(var n=e.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new ai(n,i),a=new si(t,n.getMinX(i),o);this.events.add(a),this.events.add(new si(n.getMaxX(i),a))}},t.prototype.processOverlaps=function(e,t,n,r){for(var i=n.getObject(),o=e;o<t;o++){var a=this.events.get(o);if(a.isInsert()){var s=a.getObject();n.isSameLabel(a)||(i.computeIntersections(s,r),this.nOverlaps++)}}},t.prototype.addEdges=function(){if(1===arguments.length)for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.addEdge(t,t)}else if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();){var i=r.next();this.addEdge(i,n)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(ci),pi=function(){this._min=b.POSITIVE_INFINITY,this._max=b.NEGATIVE_INFINITY},hi={NodeComparator:{configurable:!0}};pi.prototype.getMin=function(){return this._min},pi.prototype.intersects=function(e,t){return!(this._min>t||this._max<e)},pi.prototype.getMax=function(){return this._max},pi.prototype.toString=function(){return J.toLineString(new C(this._min,0),new C(this._max,0))},pi.prototype.interfaces_=function(){return[]},pi.prototype.getClass=function(){return pi},hi.NodeComparator.get=function(){return fi},Object.defineProperties(pi,hi);var fi=function(){};fi.prototype.compare=function(e,t){var n=e,r=t,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},fi.prototype.interfaces_=function(){return[k]},fi.prototype.getClass=function(){return fi};var mi=function(e){function t(){e.call(this),this._item=null;var t=arguments[0],n=arguments[1],r=arguments[2];this._min=t,this._max=n,this._item=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;n.visitItem(this._item)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(pi),gi=function(e){function t(){e.call(this),this._node1=null,this._node2=null;var t=arguments[0],n=arguments[1];this._node1=t,this._node2=n,this.buildExtent(this._node1,this._node2)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildExtent=function(e,t){this._min=Math.min(e._min,t._min),this._max=Math.max(e._max,t._max)},t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;null!==this._node1&&this._node1.query(e,t,n),null!==this._node2&&this._node2.query(e,t,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(pi),yi=function(){this._leaves=new ke,this._root=null,this._level=0};yi.prototype.buildTree=function(){Qt.sort(this._leaves,new pi.NodeComparator);for(var e=this._leaves,t=null,n=new ke;;){if(this.buildLevel(e,n),1===n.size())return n.get(0);t=e,e=n,n=t}},yi.prototype.insert=function(e,t,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new mi(e,t,n))},yi.prototype.query=function(e,t,n){this.init(),this._root.query(e,t,n)},yi.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},yi.prototype.printNode=function(e){q.out.println(J.toLineString(new C(e._min,this._level),new C(e._max,this._level)))},yi.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},yi.prototype.buildLevel=function(e,t){this._level++,t.clear();for(var n=0;n<e.size();n+=2){var r=e.get(n);if(null===(n+1<e.size()?e.get(n):null))t.add(r);else{var i=new gi(e.get(n),e.get(n+1));t.add(i)}}},yi.prototype.interfaces_=function(){return[]},yi.prototype.getClass=function(){return yi};var vi=function(){this._items=new ke};vi.prototype.visitItem=function(e){this._items.add(e)},vi.prototype.getItems=function(){return this._items},vi.prototype.interfaces_=function(){return[Yt]},vi.prototype.getClass=function(){return vi};var bi=function(){this._index=null;var e=arguments[0];if(!I(e,Je))throw new v("Argument must be Polygonal");this._index=new xi(e)},_i={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};bi.prototype.locate=function(e){var t=new ae(e),n=new wi(t);return this._index.query(e.y,e.y,n),t.getLocation()},bi.prototype.interfaces_=function(){return[Bn]},bi.prototype.getClass=function(){return bi},_i.SegmentVisitor.get=function(){return wi},_i.IntervalIndexedGeometry.get=function(){return xi},Object.defineProperties(bi,_i);var wi=function(){this._counter=null;var e=arguments[0];this._counter=e};wi.prototype.visitItem=function(e){var t=e;this._counter.countSegment(t.getCoordinate(0),t.getCoordinate(1))},wi.prototype.interfaces_=function(){return[Yt]},wi.prototype.getClass=function(){return wi};var xi=function(){this._index=new yi;var e=arguments[0];this.init(e)};xi.prototype.init=function(e){for(var t=Cr.getLines(e).iterator();t.hasNext();){var n=t.next().getCoordinates();this.addLine(n)}},xi.prototype.addLine=function(e){for(var t=1;t<e.length;t++){var n=new mn(e[t-1],e[t]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},xi.prototype.query=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new vi;return this._index.query(e,t,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},xi.prototype.interfaces_=function(){return[]},xi.prototype.getClass=function(){return xi};var ki=function(e){function t(){if(e.call(this),this._parentGeom=null,this._lineEdgeMap=new pt,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Sr,2===arguments.length){var t=arguments[0],n=arguments[1],r=fe.OGC_SFS_BOUNDARY_RULE;this._argIndex=t,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=a,null!==o&&this.add(o)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertBoundaryPoint=function(e,n){var r=this._nodes.addNode(n).getLabel(),i=1;E.NONE,r.getLocation(e,St.ON)===E.BOUNDARY&&i++;var o=t.determineBoundary(this._boundaryNodeRule,i);r.setLocation(e,o)},t.prototype.computeSelfNodes=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.computeSelfNodes(e,t,!1)}if(3===arguments.length){var n=arguments[1],r=arguments[2],i=new ui(arguments[0],!0,!1);i.setIsDoneIfProperInt(r);var o=this.createEdgeSetIntersector(),a=this._parentGeom instanceof tt||this._parentGeom instanceof Qe||this._parentGeom instanceof nt,s=n||!a;return o.computeIntersections(this._edges,i,s),this.addSelfIntersectionNodes(this._argIndex),i}},t.prototype.computeSplitEdges=function(e){for(var t=this._edges.iterator();t.hasNext();)t.next().eiList.addSplitEdges(e)},t.prototype.computeEdgeIntersections=function(e,t,n){var r=new ui(t,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),e.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,e._edges,r),r},t.prototype.getGeometry=function(){return this._parentGeom},t.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},t.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},t.prototype.addPoint=function(){if(arguments[0]instanceof Xe){var e=arguments[0].getCoordinate();this.insertPoint(this._argIndex,e,E.INTERIOR)}else if(arguments[0]instanceof C){var t=arguments[0];this.insertPoint(this._argIndex,t,E.INTERIOR)}},t.prototype.addPolygon=function(e){this.addPolygonRing(e.getExteriorRing(),E.EXTERIOR,E.INTERIOR);for(var t=0;t<e.getNumInteriorRing();t++){var n=e.getInteriorRingN(t);this.addPolygonRing(n,E.INTERIOR,E.EXTERIOR)}},t.prototype.addEdge=function(e){this.insertEdge(e);var t=e.getCoordinates();this.insertPoint(this._argIndex,t[0],E.BOUNDARY),this.insertPoint(this._argIndex,t[t.length-1],E.BOUNDARY)},t.prototype.addLineString=function(e){var t=Me.removeRepeatedPoints(e.getCoordinates());if(t.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=t[0],null;var n=new nr(t,new Lt(this._argIndex,E.INTERIOR));this._lineEdgeMap.put(e,n),this.insertEdge(n),te.isTrue(t.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,t[0]),this.insertBoundaryPoint(this._argIndex,t[t.length-1])},t.prototype.getInvalidPoint=function(){return this._invalidPoint},t.prototype.getBoundaryPoints=function(){for(var e=this.getBoundaryNodes(),t=new Array(e.size()).fill(null),n=0,r=e.iterator();r.hasNext();){var i=r.next();t[n++]=i.getCoordinate().copy()}return t},t.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},t.prototype.addSelfIntersectionNode=function(e,t,n){if(this.isBoundaryNode(e,t))return null;n===E.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(e,t):this.insertPoint(e,t,n)},t.prototype.addPolygonRing=function(e,t,n){if(e.isEmpty())return null;var r=Me.removeRepeatedPoints(e.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=t,o=n;se.isCCW(r)&&(i=n,o=t);var a=new nr(r,new Lt(this._argIndex,E.BOUNDARY,i,o));this._lineEdgeMap.put(e,a),this.insertEdge(a),this.insertPoint(this._argIndex,r[0],E.BOUNDARY)},t.prototype.insertPoint=function(e,t,n){var r=this._nodes.addNode(t),i=r.getLabel();null===i?r._label=new Lt(e,n):i.setLocation(e,n)},t.prototype.createEdgeSetIntersector=function(){return new di},t.prototype.addSelfIntersectionNodes=function(e){for(var t=this._edges.iterator();t.hasNext();)for(var n=t.next(),r=n.getLabel().getLocation(e),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(e,o.coord,r)}},t.prototype.add=function(){if(1!==arguments.length)return e.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof nt&&(this._useBoundaryDeterminationRule=!1),t instanceof Qe)this.addPolygon(t);else if(t instanceof Ye)this.addLineString(t);else if(t instanceof Xe)this.addPoint(t);else if(t instanceof et)this.addCollection(t);else if(t instanceof Ve)this.addCollection(t);else if(t instanceof nt)this.addCollection(t);else{if(!(t instanceof $e))throw new Error(t.getClass().getName());this.addCollection(t)}},t.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},t.prototype.locate=function(e){return I(this._parentGeom,Je)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new bi(this._parentGeom)),this._areaPtLocator.locate(e)):this._ptLocator.locate(e,this._parentGeom)},t.prototype.findEdge=function(){if(1===arguments.length){var t=arguments[0];return this._lineEdgeMap.get(t)}return e.prototype.findEdge.apply(this,arguments)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.determineBoundary=function(e,t){return e.isInBoundary(t)?E.BOUNDARY:E.INTERIOR},t}(qt),Ci=function(){if(this._li=new ie,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var e=arguments[0];this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new ki(0,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=fe.OGC_SFS_BOUNDARY_RULE;t.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(t.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new ki(0,t,r),this._arg[1]=new ki(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new ki(0,i,a),this._arg[1]=new ki(1,o,a)}};Ci.prototype.getArgGeometry=function(e){return this._arg[e].getGeometry()},Ci.prototype.setComputationPrecision=function(e){this._resultPrecisionModel=e,this._li.setPrecisionModel(this._resultPrecisionModel)},Ci.prototype.interfaces_=function(){return[]},Ci.prototype.getClass=function(){return Ci};var Si=function(){};Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si},Si.map=function(){if(arguments[0]instanceof ue&&I(arguments[1],Si.MapOp)){for(var e=arguments[0],t=arguments[1],n=new ke,r=0;r<e.getNumGeometries();r++){var i=t.map(e.getGeometryN(r));null!==i&&n.add(i)}return e.getFactory().buildGeometry(n)}if(I(arguments[0],_e)&&I(arguments[1],Si.MapOp)){for(var o=arguments[0],a=arguments[1],s=new ke,l=o.iterator();l.hasNext();){var c=l.next(),u=a.map(c);null!==u&&s.add(u)}return s}},Si.MapOp=function(){};var Mi=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n),this._ptLocator=new Sr,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Gn,this._resultPolyList=new ke,this._resultLineList=new ke,this._resultPointList=new ke,this._graph=new qt(new Zn),this._geomFact=t.getFactory()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Lt(e.getLabel())).flip();var i=t.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(e)},t.prototype.getGraph=function(){return this._graph},t.prototype.cancelDuplicateResultEdges=function(){for(var e=this._graph.getEdgeEnds().iterator();e.hasNext();){var t=e.next(),n=t.getSym();t.isInResult()&&n.isInResult()&&(t.setInResult(!1),n.setInResult(!1))}},t.prototype.isCoveredByLA=function(e){return!!this.isCovered(e,this._resultLineList)||!!this.isCovered(e,this._resultPolyList)},t.prototype.computeGeometry=function(e,n,r,i){var o=new ke;return o.addAll(e),o.addAll(n),o.addAll(r),o.isEmpty()?t.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},t.prototype.mergeSymLabels=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().mergeSymLabels()},t.prototype.isCovered=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(e,r)!==E.EXTERIOR)return!0}return!1},t.prototype.replaceCollapsedEdges=function(){for(var e=new ke,t=this._edgeList.iterator();t.hasNext();){var n=t.next();n.isCollapsed()&&(t.remove(),e.add(n.getCollapsedEdge()))}this._edgeList.addAll(e)},t.prototype.updateNodeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getEdges().getLabel();t.getLabel().merge(n)}},t.prototype.getResultGeometry=function(e){return this.computeOverlay(e),this._resultGeom},t.prototype.insertUniqueEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this.insertUniqueEdge(n)}},t.prototype.computeOverlay=function(e){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var t=new ke;this._arg[0].computeSplitEdges(t),this._arg[1].computeSplitEdges(t),this.insertUniqueEdges(t),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),qr.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(e),this.cancelDuplicateResultEdges();var n=new Zt(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new Hr(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(e);var i=new Gr(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(e),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,e)},t.prototype.labelIncompleteNode=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._arg[t].getGeometry());e.getLabel().setLocation(t,n)},t.prototype.copyPoints=function(e){for(var t=this._arg[e].getNodeIterator();t.hasNext();){var n=t.next();this._graph.addNode(n.getCoordinate()).setLabel(e,n.getLabel().getLocation(e))}},t.prototype.findResultAreaEdges=function(e){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&t.isResultOfOp(i.getLocation(0,St.RIGHT),i.getLocation(1,St.RIGHT),e)&&r.setInResult(!0)}},t.prototype.computeLabelsFromDepths=function(){for(var e=this._edgeList.iterator();e.hasNext();){var t=e.next(),n=t.getLabel(),r=t.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(te.isTrue(!r.isNull(i,St.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,St.LEFT,r.getLocation(i,St.LEFT)),te.isTrue(!r.isNull(i,St.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,St.RIGHT,r.getLocation(i,St.RIGHT))))}}},t.prototype.computeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},t.prototype.labelIncompleteNodes=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getLabel();t.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(t,0):this.labelIncompleteNode(t,1)),t.getEdges().updateLabelling(n)}},t.prototype.isCoveredByA=function(e){return!!this.isCovered(e,this._resultPolyList)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ci);Mi.overlayOp=function(e,t,n){return new Mi(e,t).getResultGeometry(n)},Mi.intersection=function(e,t){if(e.isEmpty()||t.isEmpty())return Mi.createEmptyResult(Mi.INTERSECTION,e,t,e.getFactory());if(e.isGeometryCollection()){var n=t;return Zr.map(e,{interfaces_:function(){return[Si.MapOp]},map:function(e){return e.intersection(n)}})}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Mi.INTERSECTION)},Mi.symDifference=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return Mi.createEmptyResult(Mi.SYMDIFFERENCE,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Mi.SYMDIFFERENCE)},Mi.resultDimension=function(e,t,n){var r=t.getDimension(),i=n.getDimension(),o=-1;switch(e){case Mi.INTERSECTION:o=Math.min(r,i);break;case Mi.UNION:o=Math.max(r,i);break;case Mi.DIFFERENCE:o=r;break;case Mi.SYMDIFFERENCE:o=Math.max(r,i)}return o},Mi.createEmptyResult=function(e,t,n,r){var i=null;switch(Mi.resultDimension(e,t,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},Mi.difference=function(e,t){return e.isEmpty()?Mi.createEmptyResult(Mi.DIFFERENCE,e,t,e.getFactory()):t.isEmpty()?e.copy():(e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Mi.DIFFERENCE))},Mi.isResultOfOp=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=e.getLocation(0),r=e.getLocation(1);return Mi.isResultOfOp(n,r,t)}if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];switch(i===E.BOUNDARY&&(i=E.INTERIOR),o===E.BOUNDARY&&(o=E.INTERIOR),a){case Mi.INTERSECTION:return i===E.INTERIOR&&o===E.INTERIOR;case Mi.UNION:return i===E.INTERIOR||o===E.INTERIOR;case Mi.DIFFERENCE:return i===E.INTERIOR&&o!==E.INTERIOR;case Mi.SYMDIFFERENCE:return i===E.INTERIOR&&o!==E.INTERIOR||i!==E.INTERIOR&&o===E.INTERIOR}return!1}},Mi.INTERSECTION=1,Mi.UNION=2,Mi.DIFFERENCE=3,Mi.SYMDIFFERENCE=4;var Ti=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Sr,this._seg=new mn;var e=arguments[0],t=arguments[1];this._g=e,this._boundaryDistanceTolerance=t,this._linework=this.extractLinework(e)};Ti.prototype.isWithinToleranceOfBoundary=function(e){for(var t=0;t<this._linework.getNumGeometries();t++)for(var n=this._linework.getGeometryN(t).getCoordinateSequence(),r=0;r<n.size()-1;r++)if(n.getCoordinate(r,this._seg.p0),n.getCoordinate(r+1,this._seg.p1),this._seg.distance(e)<=this._boundaryDistanceTolerance)return!0;return!1},Ti.prototype.getLocation=function(e){return this.isWithinToleranceOfBoundary(e)?E.BOUNDARY:this._ptLocator.locate(e,this._g)},Ti.prototype.extractLinework=function(e){var t=new Ei;e.apply(t);var n=t.getLinework(),r=yt.toLineStringArray(n);return e.getFactory().createMultiLineString(r)},Ti.prototype.interfaces_=function(){return[]},Ti.prototype.getClass=function(){return Ti};var Ei=function(){this._linework=null,this._linework=new ke};Ei.prototype.getLinework=function(){return this._linework},Ei.prototype.filter=function(e){if(e instanceof Qe){var t=e;this._linework.add(t.getExteriorRing());for(var n=0;n<t.getNumInteriorRing();n++)this._linework.add(t.getInteriorRingN(n))}},Ei.prototype.interfaces_=function(){return[Be]},Ei.prototype.getClass=function(){return Ei};var Pi=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var e=arguments[0];this._g=e};Pi.prototype.extractPoints=function(e,t,n){for(var r=e.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],t,n)},Pi.prototype.setSidesToGenerate=function(e,t){this._doLeft=e,this._doRight=t},Pi.prototype.getPoints=function(e){for(var t=new ke,n=Cr.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,e,t)}return t},Pi.prototype.computeOffsetPoints=function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,a=Math.sqrt(i*i+o*o),s=n*i/a,l=n*o/a,c=(t.x+e.x)/2,u=(t.y+e.y)/2;if(this._doLeft){var d=new C(c-l,u+s);r.add(d)}if(this._doRight){var p=new C(c+l,u-s);r.add(p)}},Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi};var Ii=function e(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=e.TOLERANCE,this._testCoords=new ke;var t=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=e.computeBoundaryDistanceTolerance(t,n),this._geom=[t,n,r],this._locFinder=[new Ti(this._geom[0],this._boundaryDistanceTolerance),new Ti(this._geom[1],this._boundaryDistanceTolerance),new Ti(this._geom[2],this._boundaryDistanceTolerance)]},Oi={TOLERANCE:{configurable:!0}};Ii.prototype.reportResult=function(e,t,n){q.out.println("Overlay result invalid - A:"+E.toLocationSymbol(t[0])+" B:"+E.toLocationSymbol(t[1])+" expected:"+(n?"i":"e")+" actual:"+E.toLocationSymbol(t[2]))},Ii.prototype.isValid=function(e){return this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]),this.checkValid(e)},Ii.prototype.checkValid=function(){if(1===arguments.length){for(var e=arguments[0],t=0;t<this._testCoords.size();t++){var n=this._testCoords.get(t);if(!this.checkValid(e,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!Ii.hasLocation(this._location,E.BOUNDARY)||this.isValidResult(r,this._location)}},Ii.prototype.addTestPts=function(e){var t=new Pi(e);this._testCoords.addAll(t.getPoints(5*this._boundaryDistanceTolerance))},Ii.prototype.isValidResult=function(e,t){var n=Mi.isResultOfOp(t[0],t[1],e),r=!(n^t[2]===E.INTERIOR);return r||this.reportResult(e,t,n),r},Ii.prototype.getInvalidLocation=function(){return this._invalidLocation},Ii.prototype.interfaces_=function(){return[]},Ii.prototype.getClass=function(){return Ii},Ii.hasLocation=function(e,t){for(var n=0;n<3;n++)if(e[n]===t)return!0;return!1},Ii.computeBoundaryDistanceTolerance=function(e,t){return Math.min(Kr.computeSizeBasedSnapTolerance(e),Kr.computeSizeBasedSnapTolerance(t))},Ii.isValid=function(e,t,n,r){return new Ii(e,t,r).isValid(n)},Oi.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ii,Oi);var Li=function e(t){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=e.extractFactory(t),this._inputGeoms=t};Li.prototype.extractElements=function(e,t){if(null===e)return null;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);this._skipEmpty&&r.isEmpty()||t.add(r)}},Li.prototype.combine=function(){for(var e=new ke,t=this._inputGeoms.iterator();t.hasNext();){var n=t.next();this.extractElements(n,e)}return 0===e.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(e)},Li.prototype.interfaces_=function(){return[]},Li.prototype.getClass=function(){return Li},Li.combine=function(){if(1===arguments.length)return new Li(arguments[0]).combine();if(2===arguments.length){var e=arguments[0],t=arguments[1];return new Li(Li.createList(e,t)).combine()}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];return new Li(Li.createList(n,r,i)).combine()}},Li.extractFactory=function(e){return e.isEmpty()?null:e.iterator().next().getFactory()},Li.createList=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new ke;return n.add(e),n.add(t),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=new ke;return a.add(r),a.add(i),a.add(o),a}};var Ri=function(){this._inputPolys=null,this._geomFactory=null;var e=arguments[0];this._inputPolys=e,null===this._inputPolys&&(this._inputPolys=new ke)},ji={STRTREE_NODE_CAPACITY:{configurable:!0}};Ri.prototype.reduceToGeometries=function(e){for(var t=new ke,n=e.iterator();n.hasNext();){var r=n.next(),i=null;I(r,xe)?i=this.unionTree(r):r instanceof ue&&(i=r),t.add(i)}return t},Ri.prototype.extractByEnvelope=function(e,t,n){for(var r=new ke,i=0;i<t.getNumGeometries();i++){var o=t.getGeometryN(i);o.getEnvelopeInternal().intersects(e)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},Ri.prototype.unionOptimized=function(e,t){var n=e.getEnvelopeInternal(),r=t.getEnvelopeInternal();if(!n.intersects(r))return Li.combine(e,t);if(e.getNumGeometries()<=1&&t.getNumGeometries()<=1)return this.unionActual(e,t);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(e,t,i)},Ri.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var e=new an(Ri.STRTREE_NODE_CAPACITY),t=this._inputPolys.iterator();t.hasNext();){var n=t.next();e.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=e.itemsTree();return this.unionTree(r)},Ri.prototype.binaryUnion=function(){if(1===arguments.length){var e=arguments[0];return this.binaryUnion(e,0,e.size())}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=Ri.getGeometry(t,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(Ri.getGeometry(t,n),Ri.getGeometry(t,n+1));var o=Math.trunc((r+n)/2),a=this.binaryUnion(t,n,o),s=this.binaryUnion(t,o,r);return this.unionSafe(a,s)}},Ri.prototype.repeatedUnion=function(e){for(var t=null,n=e.iterator();n.hasNext();){var r=n.next();t=null===t?r.copy():t.union(r)}return t},Ri.prototype.unionSafe=function(e,t){return null===e&&null===t?null:null===e?t.copy():null===t?e.copy():this.unionOptimized(e,t)},Ri.prototype.unionActual=function(e,t){return Ri.restrictToPolygons(e.union(t))},Ri.prototype.unionTree=function(e){var t=this.reduceToGeometries(e);return this.binaryUnion(t)},Ri.prototype.unionUsingEnvelopeIntersection=function(e,t,n){var r=new ke,i=this.extractByEnvelope(n,e,r),o=this.extractByEnvelope(n,t,r),a=this.unionActual(i,o);return r.add(a),Li.combine(r)},Ri.prototype.bufferUnion=function(){if(1===arguments.length){var e=arguments[0];return e.get(0).getFactory().buildGeometry(e).buffer(0)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().createGeometryCollection([t,n]).buffer(0)}},Ri.prototype.interfaces_=function(){return[]},Ri.prototype.getClass=function(){return Ri},Ri.restrictToPolygons=function(e){if(I(e,Je))return e;var t=kr.getPolygons(e);return 1===t.size()?t.get(0):e.getFactory().createMultiPolygon(yt.toPolygonArray(t))},Ri.getGeometry=function(e,t){return t>=e.size()?null:e.get(t)},Ri.union=function(e){return new Ri(e).union()},ji.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Ri,ji);var Di=function(){};Di.prototype.interfaces_=function(){return[]},Di.prototype.getClass=function(){return Di},Di.union=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return Mi.createEmptyResult(Mi.UNION,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Mi.UNION)},e.GeoJSONReader=kt,e.GeoJSONWriter=Ct,e.OverlayOp=Mi,e.UnionOp=Di,e.BufferOp=mr,Object.defineProperty(e,"__esModule",{value:!0})}(t)},86667:function(e){!function(t){var n={},r=Array.prototype,i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.forEach,l=r.indexOf,c=r.slice,u=function(e,t,r){var i,a,l;if(e)if(s&&e.forEach===s)e.forEach(t,r);else if(e.length===+e.length){for(a=0,l=e.length;a<l;a++)if(a in e&&t.call(r,e[a],a,e)===n)return}else for(i in e)if(o.call(e,i)&&t.call(r,e[i],i,e)===n)return},d=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},p=function(e){return u(c.call(arguments,1),(function(t){var n;for(n in t)void 0!==t[n]&&(e[n]=t[n])})),e},h=function(e,t,n){var r;if(t){if(l)return l.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},f={};u("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){f["[object "+e+"]"]=e.toLowerCase()}));var m=function(e){return null==e?String(e):f[a.call(e)]||"object"},g={},y={};g.Callbacks=function(e){e="string"===typeof e?y[e]||function(e){var t=y[e]={};return u(e.split(/\s+/),(function(e){t[e]=!0})),t}(e):p({},e);var t,n,r,i,o,a,s=[],l=!e.once&&[],c=function(u){for(t=e.memory&&u,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a<o;a++)if(!1===s[a].apply(u[0],u[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(l?l.length&&c(l.shift()):t?s=[]:d.disable())},d={add:function(){if(s){var n=s.length;!function t(n){u(n,(function(n){var r=m(n);"function"===r?e.unique&&d.has(n)||s.push(n):n&&n.length&&"string"!==r&&t(n)}))}(arguments),r?o=s.length:t&&(i=n,c(t))}return this},remove:function(){return s&&u(arguments,(function(e){for(var t;(t=h(e,s,t))>-1;)s.splice(t,1),r&&(t<=o&&o--,t<=a&&a--)})),this},has:function(e){return h(e,s)>-1},empty:function(){return s=[],this},disable:function(){return s=l=t=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,t||d.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=[e,(t=t||[]).slice?t.slice():t],!s||n&&!l||(r?l.push(t):c(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},g.Deferred=function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(n){u(t,(function(t,r){var o=t[0],a=e[r];i[t[1]](d(a)?function(){var e;try{e=a.apply(this,arguments)}catch(t){return void n.reject(t)}e&&d(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n["notify"!==o?"resolveWith":o+"With"](this===i?n:this,[e])}:n[o])})),e=null})).promise()},promise:function(e){return null!=e?p(e,r):r}},i={};return r.pipe=r.then,u(t,(function(e,o){var a=e[2],s=e[3];r[e[1]]=a.add,s&&a.add((function(){n=s}),t[1^o][2].disable,t[2][2].lock),i[e[0]]=a.fire,i[e[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},g.when=function(e){var t,n,r,i=0,o="array"===m(e)&&1===arguments.length?e:c.call(arguments),a=o.length,s=1!==a||e&&d(e.promise)?a:0,l=1===s?e:g.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?c.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&d(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()},e.exports?e.exports=g:"undefined"!==typeof t._?t._.mixin(g):t._=g}(this)},18606:function(e,t,n){!function(e){"use strict";var t=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,n=t&&"a=1"===new t({a:1}).toString(),r=t&&"+"===new t("s=%2B").get("s"),i="__URLSearchParams__",o=!t||function(){var e=new t;return e.append("s"," &"),"s=+%26"===e.toString()}(),a=u.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(t&&n&&r&&o)){a.append=function(e,t){m(this[i],e,t)},a.delete=function(e){delete this[i][e]},a.get=function(e){var t=this[i];return e in t?t[e][0]:null},a.getAll=function(e){var t=this[i];return e in t?t[e].slice(0):[]},a.has=function(e){return e in this[i]},a.set=function(e,t){this[i][e]=[""+t]},a.toString=function(){var e,t,n,r,o=this[i],a=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+d(r[e]));return a.join("&")};var l=!!r&&t&&!n&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:l?new Proxy(t,{construct:function(e,t){return new e(new u(t[0]).toString())}}):u});var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},c.sort=c.sort||function(){var e,t,n,r=f(this.toString()),i=[];for(e in r)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++){var o=i[t],a=r[o];for(n=0;n<a.length;n++)this.append(o,a[n])}},c.keys=c.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this[i]=f(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function p(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"===typeof e)if(g(e))for(var n=0;n<e.length;n++){var r=e[n];if(!g(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");m(t,r[0],r[1])}else for(var i in e)e.hasOwnProperty(i)&&m(t,i,e[i]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var o=e.split("&"),a=0;a<o.length;a++){var s=o[a],l=s.indexOf("=");-1<l?m(t,p(s.slice(0,l)),p(s.slice(l+1))):s&&m(t,p(s),"")}}return t}function m(e,t,n){var r="string"===typeof n?n:null!==n&&void 0!==n&&"function"===typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function g(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:this)},78319:(e,t,n)=>{"use strict";var r=n(18178);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},69030:(e,t,n)=>{"use strict";e.exports=n(78319)},29972:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>o});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},48204:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const i=function(e){return"string"===typeof e&&r.test(e)};for(var o=[],a=0;a<256;++a)o.push((a+256).toString(16).substr(1));const s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n}},67541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r,i,o=n(29972),a=n(48204),s=0,l=0;const c=function(e,t,n){var c=t&&n||0,u=t||new Array(16),d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var h=e.random||(e.rng||o.Z)();null==d&&(d=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=f-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,l=m,i=p;var y=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[c++]=y>>>24&255,u[c++]=y>>>16&255,u[c++]=y>>>8&255,u[c++]=255&y;var v=f/4294967296*1e4&268435455;u[c++]=v>>>8&255,u[c++]=255&v,u[c++]=v>>>24&15|16,u[c++]=v>>>16&255,u[c++]=p>>>8|128,u[c++]=255&p;for(var b=0;b<6;++b)u[c+b]=d[b];return t||(0,a.Z)(u)}},32761:e=>{"use strict";e.exports=function(){}},55746:e=>{"use strict";var t=function(){};e.exports=t},22219:(e,t,n)=>{"use strict";n.d(t,{IX:()=>le,O7:()=>F,Rx:()=>G,Ry:()=>ae,Z_:()=>Z,iH:()=>I,kM:()=>ue});var r=n(37949),i=n(57980),o=n(39723),a=n.n(o);const s=Object.prototype.toString,l=Error.prototype.toString,c=RegExp.prototype.toString,u="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",d=/^Symbol\((.*)\)(.*)$/;function p(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return u.call(e).replace(d,"Symbol($1)");const r=s.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+l.call(e)+"]":"RegExp"===r?c.call(e):null}function h(e,t){let n=p(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=p(this[e],t);return null!==r?r:n}),2)}function f(e){return null==e?[]:[].concat(e)}let m,g=/\$\{\s*(\w+)\s*\}/g;m=Symbol.toStringTag;class y extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"===typeof e?e.replace(g,((e,n)=>h(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[m]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],f(e).forEach((e=>{if(y.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,y)}}let v={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e;const o=null!=i&&i!==r?` (cast from the value \`${h(i,!0)}\`).`:".";return"mixed"!==n?`${t} must be a \`${n}\` type, but the final value was: \`${h(r,!0)}\``+o:`${t} must match the configured type. The validated value was: \`${h(r,!0)}\``+o}},b={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},_={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},w={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},x={isValue:"${path} field must be ${value}"},k={noUnknown:"${path} field has unspecified keys: ${unknown}"},C={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},S={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${h(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${h(n,!0)}\``}return y.formatError(v.notType,e)}};Object.assign(Object.create(null),{mixed:v,string:b,number:_,date:w,object:k,array:C,boolean:x,tuple:S});const M=e=>e&&e.__isYupSchema__;class T{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};return new T(e,((e,t)=>{var n;let a=o(...e)?r:i;return null!=(n=null==a?void 0:a(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!M(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const E="$",P=".";function I(e,t){return new O(e,t)}class O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===E,this.isValue=this.key[0]===P,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?E:this.isValue?P:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,r.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}O.prototype.__isYupRef=!0;const L=e=>null==e;function R(e){function t(t,n,r){let{value:i,path:o="",options:a,originalValue:s,schema:l}=t;const{name:c,test:u,params:d,message:p,skipAbsent:h}=e;let{parent:f,context:m,abortEarly:g=l.spec.abortEarly,disableStackTrace:v=l.spec.disableStackTrace}=a;function b(e){return O.isRef(e)?e.getValue(i,f,m):e}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=Object.assign({value:i,originalValue:s,label:l.spec.label,path:e.path||o,spec:l.spec},d,e.params);for(const i of Object.keys(n))n[i]=b(n[i]);const r=new y(y.formatError(e.message||p,n),i,n.path,e.type||c,null!=(t=e.disableStackTrace)?t:v);return r.params=n,r}const w=g?n:r;let x={path:o,parent:f,type:c,from:a.from,createError:_,resolve:b,options:a,originalValue:s,schema:l};const k=e=>{y.isError(e)?w(e):e?r(null):w(_())},C=e=>{y.isError(e)?w(e):n(e)};if(h&&L(i))return k(!0);let S;try{var M;if(S=u.call(x,i,x),"function"===typeof(null==(M=S)?void 0:M.then)){if(a.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(k,C)}}catch(T){return void C(T)}k(S)}return t.OPTIONS=e,t}function j(e,t,n){let i,o,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,r.forEach)(t,((r,l,c)=>{let u=l?r.slice(1,r.length-1):r,d="tuple"===(e=e.resolve({context:s,parent:i,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${r}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[u],e=e.fields[u]}o=u,a=l?"["+r+"]":"."+r})),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class D extends Set{describe(){const e=[];for(const t of this.values())e.push(O.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new D(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function A(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(M(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let r=0;r<e.length;r++)t[r]=A(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[r,i]of e.entries())t.set(r,A(i,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const r of e)t.add(A(r,n))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);t={},n.set(e,t);for(const[r,i]of Object.entries(e))t[r]=A(i,n)}return t}class N{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new D,this._blacklist=new D,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(v.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=A(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&L(i))return i;let o=h(e),a=h(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${o} \n`+(a!==o?`result of cast: ${a}`:""))}return i}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{path:i,originalValue:o=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:i,value:s,originalValue:o,options:t,tests:l},n,(e=>{if(e.length)return r(e,s);this.runTests({path:i,value:s,originalValue:o,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:i,value:o,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,o))},u=e=>{r||(r=!0,n(e,o))},d=i.length,p=[];if(!d)return u([]);let h={value:o,originalValue:a,path:s,options:l,schema:this};for(let f=0;f<i.length;f++){(0,i[f])(h,c,(function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)}))}}asNestedTest(e){let{key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}=e;const s=null!=t?t:n;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof s;let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${c?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise(((n,o)=>r._validate(e,t,((e,t)=>{y.isError(e)&&(e.value=t),o(e)}),((e,t)=>{e.length?o(new y(e,t,void 0,void 0,i)):n(t)}))))}validateSync(e,t){var n;let r,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw y.isError(e)&&(e.value=t),e}),((t,n)=>{if(t.length)throw new y(t,e,void 0,void 0,o);r=n})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(y.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(y.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this,e):A(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=R({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=R({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.required;return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=v.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=R(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=f(e).map((e=>new O(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new T(r,t):T.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=R({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=R({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:i,nullable:o}=t.spec;return{meta:r,label:n,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))}}}N.prototype.__isYupSchema__=!0;for(const de of["validate","validateSync"])N.prototype[`${de}At`]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:i,schema:o}=j(this,e,t,n.context);return o[de](r&&r[i],Object.assign({},n,{parent:r,path:e}))};for(const de of["equals","is"])N.prototype[de]=N.prototype.oneOf;for(const de of["not","nope"])N.prototype[de]=N.prototype.notOneOf;function F(){return new z}class z extends N{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>L(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>L(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}F.prototype=z.prototype;let B=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,U=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,V=e=>L(e)||e===e.trim(),q={}.toString();function Z(){return new H}class H extends N{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===q?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||v.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||b.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.email;return this.matches(B,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.url;return this.matches(U,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.uuid;return this.matches($,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:V})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.lowercase;return this.transform((e=>L(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>L(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.uppercase;return this.transform((e=>L(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>L(e)||e===e.toUpperCase()})}}Z.prototype=H.prototype;function G(){return new W}class W extends N{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"===typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))}))}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.integer;return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>L(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>L(t)?t:Math[e](t)))}}G.prototype=W.prototype;const Y=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e)||t}let X=new Date("");function J(){return new Q}class Q extends N{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=Y.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:K(t[1]),month:K(t[2],1)-1,day:K(t[3],1),hour:K(t[4]),minute:K(t[5]),second:K(t[6]),millisecond:t[7]?K(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:K(t[10]),minuteOffset:K(t[11])};if(void 0===n.z&&void 0===n.plusMinus)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return"Z"!==n.z&&void 0!==n.plusMinus&&(r=60*n.hourOffset+n.minuteOffset,"+"===n.plusMinus&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}(e),isNaN(e)?Q.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(O.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function ee(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0})),n}function te(e){return(t,n)=>ee(e,t)-ee(e,n)}Q.INVALID_DATE=X,J.prototype=Q.prototype,J.INVALID_DATE=X;const ne=(e,t,n)=>{if("string"!==typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(i){}return n.isType(r)?r:e};function re(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=re(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=re(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(re)}):"optional"in e?e.optional():e}let ie=e=>"[object Object]"===Object.prototype.toString.call(e);const oe=te([]);function ae(e){return new se(e)}class se extends N{constructor(e){super({type:"object",check:e=>ie(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=oe,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of a){let e=i[u],n=u in r;if(e){let n,i=r[u];l.path=(t.path?`${t.path}.`:"")+u,e=e.resolve({value:i,context:t.context,parent:s});let o=e instanceof N?e.spec:void 0,a=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||u in r;continue}n=t.__validating&&a?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!o&&(s[u]=r[u]);n===u in s&&s[u]===r[u]||(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{from:i=[],originalValue:o=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,n,((e,i)=>{if(!a||!ie(i))return void r(e,i);o=o||i;let s=[];for(let n of this._nodes){let e=this.fields[n];e&&!O.isRef(e)&&s.push(e.asNestedTest({options:t,key:n,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:s,value:i,originalValue:o,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),i)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,i]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?i:e}return t.withMutation((t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((n=>{var r;const i=this.fields[n];let o=e;null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t[n]=i&&"getDefault"in i?i.getDefault(o):void 0})),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],i=new Set,o=new Set(t.map((e=>{let[t,n]=e;return`${t}-${n}`})));function s(e,t){let a=(0,r.split)(e)[0];i.add(a),o.has(`${t}-${a}`)||n.push([t,a])}for(const r of Object.keys(e)){let t=e[r];i.add(r),O.isRef(t)&&t.isSibling?s(t.path,r):M(t)&&"deps"in t&&t.deps.forEach((e=>s(e,r)))}return a().array(Array.from(i),n).reverse()}(e,t),n._sortErrors=te(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return re(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter((t=>{let[n,r]=t;return e.includes(n)&&e.includes(r)})))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let i=(0,r.getter)(e,!0);return this.transform((o=>{if(!o)return o;let a=o;return((e,t)=>{const n=[...(0,r.normalizePath)(t)];if(1===n.length)return n[0]in e;let i=n.pop(),o=(0,r.getter)((0,r.join)(n),!0)(e);return!(!o||!(i in o))})(o,e)&&(a=Object.assign({},o),n||delete a[e],a[t]=i(o)),a}))}json(){return this.transform(ne)}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(i.camelCase)}snakeCase(){return this.transformKeys(i.snakeCase)}constantCase(){return this.transformKeys((e=>(0,i.snakeCase)(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[i,o]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),n.fields[i]=o.describe(t)}return n}}function le(e){return new ce(e)}ae.prototype=se.prototype;class ce extends N{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map(((e,n)=>{const i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i}));return r?i:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var i;let o=this.innerType,a=null!=(i=t.recursive)?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,n,((i,s)=>{var l;if(!a||!o||!this._typeCheck(s))return void r(i,s);let c=new Array(s.length);for(let n=0;n<s.length;n++){var u;c[n]=o.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e})}this.runTests({value:s,tests:c,originalValue:null!=(l=t.originalValue)?l:e,options:t},n,(e=>r(e.concat(i),s)))}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(ne)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!M(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+h(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||C.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||C.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=t.innerType.describe(i)}return n}}le.prototype=ce.prototype;function ue(e,t,n){if(!e||!M(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!==typeof t)throw new TypeError("A Method name must be provided");if("function"!==typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n}},3508:e=>{var t;t={qwerty:{"!":["`~",null,null,"2@","qQ",null],'"':[";:","[{","]}",null,null,"/?"],"#":["2@",null,null,"4$","eE","wW"],$:["3#",null,null,"5%","rR","eE"],"%":["4$",null,null,"6^","tT","rR"],"&":["6^",null,null,"8*","uU","yY"],"'":[";:","[{","]}",null,null,"/?"],"(":["8*",null,null,"0)","oO","iI"],")":["9(",null,null,"-_","pP","oO"],"*":["7&",null,null,"9(","iI","uU"],"+":["-_",null,null,null,"]}","[{"],",":["mM","kK","lL",".>",null,null],"-":["0)",null,null,"=+","[{","pP"],".":[",<","lL",";:","/?",null,null],"/":[".>",";:","'\"",null,null,null],0:["9(",null,null,"-_","pP","oO"],1:["`~",null,null,"2@","qQ",null],2:["1!",null,null,"3#","wW","qQ"],3:["2@",null,null,"4$","eE","wW"],4:["3#",null,null,"5%","rR","eE"],5:["4$",null,null,"6^","tT","rR"],6:["5%",null,null,"7&","yY","tT"],7:["6^",null,null,"8*","uU","yY"],8:["7&",null,null,"9(","iI","uU"],9:["8*",null,null,"0)","oO","iI"],":":["lL","pP","[{","'\"","/?",".>"],";":["lL","pP","[{","'\"","/?",".>"],"<":["mM","kK","lL",".>",null,null],"=":["-_",null,null,null,"]}","[{"],">":[",<","lL",";:","/?",null,null],"?":[".>",";:","'\"",null,null,null],"@":["1!",null,null,"3#","wW","qQ"],A:[null,"qQ","wW","sS","zZ",null],B:["vV","gG","hH","nN",null,null],C:["xX","dD","fF","vV",null,null],D:["sS","eE","rR","fF","cC","xX"],E:["wW","3#","4$","rR","dD","sS"],F:["dD","rR","tT","gG","vV","cC"],G:["fF","tT","yY","hH","bB","vV"],H:["gG","yY","uU","jJ","nN","bB"],I:["uU","8*","9(","oO","kK","jJ"],J:["hH","uU","iI","kK","mM","nN"],K:["jJ","iI","oO","lL",",<","mM"],L:["kK","oO","pP",";:",".>",",<"],M:["nN","jJ","kK",",<",null,null],N:["bB","hH","jJ","mM",null,null],O:["iI","9(","0)","pP","lL","kK"],P:["oO","0)","-_","[{",";:","lL"],Q:[null,"1!","2@","wW","aA",null],R:["eE","4$","5%","tT","fF","dD"],S:["aA","wW","eE","dD","xX","zZ"],T:["rR","5%","6^","yY","gG","fF"],U:["yY","7&","8*","iI","jJ","hH"],V:["cC","fF","gG","bB",null,null],W:["qQ","2@","3#","eE","sS","aA"],X:["zZ","sS","dD","cC",null,null],Y:["tT","6^","7&","uU","hH","gG"],Z:[null,"aA","sS","xX",null,null],"[":["pP","-_","=+","]}","'\"",";:"],"\\":["]}",null,null,null,null,null],"]":["[{","=+",null,"\\|",null,"'\""],"^":["5%",null,null,"7&","yY","tT"],_:["0)",null,null,"=+","[{","pP"],"`":[null,null,null,"1!",null,null],a:[null,"qQ","wW","sS","zZ",null],b:["vV","gG","hH","nN",null,null],c:["xX","dD","fF","vV",null,null],d:["sS","eE","rR","fF","cC","xX"],e:["wW","3#","4$","rR","dD","sS"],f:["dD","rR","tT","gG","vV","cC"],g:["fF","tT","yY","hH","bB","vV"],h:["gG","yY","uU","jJ","nN","bB"],i:["uU","8*","9(","oO","kK","jJ"],j:["hH","uU","iI","kK","mM","nN"],k:["jJ","iI","oO","lL",",<","mM"],l:["kK","oO","pP",";:",".>",",<"],m:["nN","jJ","kK",",<",null,null],n:["bB","hH","jJ","mM",null,null],o:["iI","9(","0)","pP","lL","kK"],p:["oO","0)","-_","[{",";:","lL"],q:[null,"1!","2@","wW","aA",null],r:["eE","4$","5%","tT","fF","dD"],s:["aA","wW","eE","dD","xX","zZ"],t:["rR","5%","6^","yY","gG","fF"],u:["yY","7&","8*","iI","jJ","hH"],v:["cC","fF","gG","bB",null,null],w:["qQ","2@","3#","eE","sS","aA"],x:["zZ","sS","dD","cC",null,null],y:["tT","6^","7&","uU","hH","gG"],z:[null,"aA","sS","xX",null,null],"{":["pP","-_","=+","]}","'\"",";:"],"|":["]}",null,null,null,null,null],"}":["[{","=+",null,"\\|",null,"'\""],"~":[null,null,null,"1!",null,null]},dvorak:{"!":["`~",null,null,"2@","'\"",null],'"':[null,"1!","2@",",<","aA",null],"#":["2@",null,null,"4$",".>",",<"],$:["3#",null,null,"5%","pP",".>"],"%":["4$",null,null,"6^","yY","pP"],"&":["6^",null,null,"8*","gG","fF"],"'":[null,"1!","2@",",<","aA",null],"(":["8*",null,null,"0)","rR","cC"],")":["9(",null,null,"[{","lL","rR"],"*":["7&",null,null,"9(","cC","gG"],"+":["/?","]}",null,"\\|",null,"-_"],",":["'\"","2@","3#",".>","oO","aA"],"-":["sS","/?","=+",null,null,"zZ"],".":[",<","3#","4$","pP","eE","oO"],"/":["lL","[{","]}","=+","-_","sS"],0:["9(",null,null,"[{","lL","rR"],1:["`~",null,null,"2@","'\"",null],2:["1!",null,null,"3#",",<","'\""],3:["2@",null,null,"4$",".>",",<"],4:["3#",null,null,"5%","pP",".>"],5:["4$",null,null,"6^","yY","pP"],6:["5%",null,null,"7&","fF","yY"],7:["6^",null,null,"8*","gG","fF"],8:["7&",null,null,"9(","cC","gG"],9:["8*",null,null,"0)","rR","cC"],":":[null,"aA","oO","qQ",null,null],";":[null,"aA","oO","qQ",null,null],"<":["'\"","2@","3#",".>","oO","aA"],"=":["/?","]}",null,"\\|",null,"-_"],">":[",<","3#","4$","pP","eE","oO"],"?":["lL","[{","]}","=+","-_","sS"],"@":["1!",null,null,"3#",",<","'\""],A:[null,"'\"",",<","oO",";:",null],B:["xX","dD","hH","mM",null,null],C:["gG","8*","9(","rR","tT","hH"],D:["iI","fF","gG","hH","bB","xX"],E:["oO",".>","pP","uU","jJ","qQ"],F:["yY","6^","7&","gG","dD","iI"],G:["fF","7&","8*","cC","hH","dD"],H:["dD","gG","cC","tT","mM","bB"],I:["uU","yY","fF","dD","xX","kK"],J:["qQ","eE","uU","kK",null,null],K:["jJ","uU","iI","xX",null,null],L:["rR","0)","[{","/?","sS","nN"],M:["bB","hH","tT","wW",null,null],N:["tT","rR","lL","sS","vV","wW"],O:["aA",",<",".>","eE","qQ",";:"],P:[".>","4$","5%","yY","uU","eE"],Q:[";:","oO","eE","jJ",null,null],R:["cC","9(","0)","lL","nN","tT"],S:["nN","lL","/?","-_","zZ","vV"],T:["hH","cC","rR","nN","wW","mM"],U:["eE","pP","yY","iI","kK","jJ"],V:["wW","nN","sS","zZ",null,null],W:["mM","tT","nN","vV",null,null],X:["kK","iI","dD","bB",null,null],Y:["pP","5%","6^","fF","iI","uU"],Z:["vV","sS","-_",null,null,null],"[":["0)",null,null,"]}","/?","lL"],"\\":["=+",null,null,null,null,null],"]":["[{",null,null,null,"=+","/?"],"^":["5%",null,null,"7&","fF","yY"],_:["sS","/?","=+",null,null,"zZ"],"`":[null,null,null,"1!",null,null],a:[null,"'\"",",<","oO",";:",null],b:["xX","dD","hH","mM",null,null],c:["gG","8*","9(","rR","tT","hH"],d:["iI","fF","gG","hH","bB","xX"],e:["oO",".>","pP","uU","jJ","qQ"],f:["yY","6^","7&","gG","dD","iI"],g:["fF","7&","8*","cC","hH","dD"],h:["dD","gG","cC","tT","mM","bB"],i:["uU","yY","fF","dD","xX","kK"],j:["qQ","eE","uU","kK",null,null],k:["jJ","uU","iI","xX",null,null],l:["rR","0)","[{","/?","sS","nN"],m:["bB","hH","tT","wW",null,null],n:["tT","rR","lL","sS","vV","wW"],o:["aA",",<",".>","eE","qQ",";:"],p:[".>","4$","5%","yY","uU","eE"],q:[";:","oO","eE","jJ",null,null],r:["cC","9(","0)","lL","nN","tT"],s:["nN","lL","/?","-_","zZ","vV"],t:["hH","cC","rR","nN","wW","mM"],u:["eE","pP","yY","iI","kK","jJ"],v:["wW","nN","sS","zZ",null,null],w:["mM","tT","nN","vV",null,null],x:["kK","iI","dD","bB",null,null],y:["pP","5%","6^","fF","iI","uU"],z:["vV","sS","-_",null,null,null],"{":["0)",null,null,"]}","/?","lL"],"|":["=+",null,null,null,null,null],"}":["[{",null,null,null,"=+","/?"],"~":[null,null,null,"1!",null,null]},keypad:{"*":["/",null,null,null,"-","+","9","8"],"+":["9","*","-",null,null,null,null,"6"],"-":["*",null,null,null,null,null,"+","9"],".":["0","2","3",null,null,null,null,null],"/":[null,null,null,null,"*","9","8","7"],0:[null,"1","2","3",".",null,null,null],1:[null,null,"4","5","2","0",null,null],2:["1","4","5","6","3",".","0",null],3:["2","5","6",null,null,null,".","0"],4:[null,null,"7","8","5","2","1",null],5:["4","7","8","9","6","3","2","1"],6:["5","8","9","+",null,null,"3","2"],7:[null,null,null,"/","8","5","4",null],8:["7",null,"/","*","9","6","5","4"],9:["8","/","*","-","+",null,"6","5"]},mac_keypad:{"*":["/",null,null,null,null,null,"-","9"],"+":["6","9","-",null,null,null,null,"3"],"-":["9","/","*",null,null,null,"+","6"],".":["0","2","3",null,null,null,null,null],"/":["=",null,null,null,"*","-","9","8"],0:[null,"1","2","3",".",null,null,null],1:[null,null,"4","5","2","0",null,null],2:["1","4","5","6","3",".","0",null],3:["2","5","6","+",null,null,".","0"],4:[null,null,"7","8","5","2","1",null],5:["4","7","8","9","6","3","2","1"],6:["5","8","9","-","+",null,"3","2"],7:[null,null,null,"=","8","5","4",null],8:["7",null,"=","/","9","6","5","4"],9:["8","=","/","*","-","+","6","5"],"=":[null,null,null,null,"/","9","8","7"]}},e.exports=t},7609:(e,t,n)=>{var r,i;i=n(92875),r={default_feedback:{warning:"",suggestions:["Use a few words, avoid common phrases","No need for symbols, digits, or uppercase letters"]},get_feedback:function(e,t){var n,i,o,a,s,l;if(0===t.length)return this.default_feedback;if(e>2)return{warning:"",suggestions:[]};for(a=t[0],i=0,o=(l=t.slice(1)).length;i<o;i++)(s=l[i]).token.length>a.token.length&&(a=s);return n="Add another word or two. Uncommon words are better.",null!=(r=this.get_match_feedback(a,1===t.length))?(r.suggestions.unshift(n),null==r.warning&&(r.warning="")):r={warning:"",suggestions:[n]},r},get_match_feedback:function(e,t){switch(e.pattern){case"dictionary":return this.get_dictionary_match_feedback(e,t);case"spatial":return e.graph.toUpperCase(),{warning:1===e.turns?"Straight rows of keys are easy to guess":"Short keyboard patterns are easy to guess",suggestions:["Use a longer keyboard pattern with more turns"]};case"repeat":return{warning:1===e.base_token.length?'Repeats like "aaa" are easy to guess':'Repeats like "abcabcabc" are only slightly harder to guess than "abc"',suggestions:["Avoid repeated words and characters"]};case"sequence":return{warning:"Sequences like abc or 6543 are easy to guess",suggestions:["Avoid sequences"]};case"regex":if("recent_year"===e.regex_name)return{warning:"Recent years are easy to guess",suggestions:["Avoid recent years","Avoid years that are associated with you"]};break;case"date":return{warning:"Dates are often easy to guess",suggestions:["Avoid dates and years that are associated with you"]}}},get_dictionary_match_feedback:function(e,t){var n,r,o,a;return o="passwords"===e.dictionary_name?!t||e.l33t||e.reversed?e.guesses_log10<=4?"This is similar to a commonly used password":void 0:e.rank<=10?"This is a top-10 common password":e.rank<=100?"This is a top-100 common password":"This is a very common password":"english_wikipedia"===e.dictionary_name?t?"A word by itself is easy to guess":void 0:"surnames"===(n=e.dictionary_name)||"male_names"===n||"female_names"===n?t?"Names and surnames by themselves are easy to guess":"Common names and surnames are easy to guess":"",r=[],(a=e.token).match(i.START_UPPER)?r.push("Capitalization doesn't help very much"):a.match(i.ALL_UPPER)&&a.toLowerCase()!==a&&r.push("All-uppercase is almost as easy to guess as all-lowercase"),e.reversed&&e.token.length>=4&&r.push("Reversed words aren't much harder to guess"),e.l33t&&r.push("Predictable substitutions like '@' instead of 'a' don't help very much"),{warning:o,suggestions:r}}},e.exports=r},49594:e=>{var t;t={passwords:"123456,password,12345678,qwerty,123456789,12345,1234,111111,1234567,dragon,123123,baseball,abc123,football,monkey,letmein,shadow,master,696969,mustang,666666,qwertyuiop,123321,1234567890,pussy,superman,654321,1qaz2wsx,7777777,fuckyou,qazwsx,jordan,123qwe,000000,killer,trustno1,hunter,harley,zxcvbnm,asdfgh,buster,batman,soccer,tigger,charlie,sunshine,iloveyou,fuckme,ranger,hockey,computer,starwars,asshole,pepper,klaster,112233,zxcvbn,freedom,princess,maggie,pass,ginger,11111111,131313,fuck,love,cheese,159753,summer,chelsea,dallas,biteme,matrix,yankees,6969,corvette,austin,access,thunder,merlin,secret,diamond,hello,hammer,fucker,1234qwer,silver,gfhjkm,internet,samantha,golfer,scooter,test,orange,cookie,q1w2e3r4t5,maverick,sparky,phoenix,mickey,bigdog,snoopy,guitar,whatever,chicken,camaro,mercedes,peanut,ferrari,falcon,cowboy,welcome,sexy,samsung,steelers,smokey,dakota,arsenal,boomer,eagles,tigers,marina,nascar,booboo,gateway,yellow,porsche,monster,spider,diablo,hannah,bulldog,junior,london,purple,compaq,lakers,iceman,qwer1234,hardcore,cowboys,money,banana,ncc1701,boston,tennis,q1w2e3r4,coffee,scooby,123654,nikita,yamaha,mother,barney,brandy,chester,fuckoff,oliver,player,forever,rangers,midnight,chicago,bigdaddy,redsox,angel,badboy,fender,jasper,slayer,rabbit,natasha,marine,bigdick,wizard,marlboro,raiders,prince,casper,fishing,flower,jasmine,iwantu,panties,adidas,winter,winner,gandalf,password1,enter,ghbdtn,1q2w3e4r,golden,cocacola,jordan23,winston,madison,angels,panther,blowme,sexsex,bigtits,spanky,bitch,sophie,asdfasdf,horny,thx1138,toyota,tiger,dick,canada,12344321,blowjob,8675309,muffin,liverpoo,apples,qwerty123,passw0rd,abcd1234,pokemon,123abc,slipknot,qazxsw,123456a,scorpion,qwaszx,butter,startrek,rainbow,asdfghjkl,razz,newyork,redskins,gemini,cameron,qazwsxedc,florida,liverpool,turtle,sierra,viking,booger,butthead,doctor,rocket,159357,dolphins,captain,bandit,jaguar,packers,pookie,peaches,789456,asdf,dolphin,helpme,blue,theman,maxwell,qwertyui,shithead,lovers,maddog,giants,nirvana,metallic,hotdog,rosebud,mountain,warrior,stupid,elephant,suckit,success,bond007,jackass,alexis,porn,lucky,scorpio,samson,q1w2e3,azerty,rush2112,driver,freddy,1q2w3e4r5t,sydney,gators,dexter,red123,123456q,12345a,bubba,creative,voodoo,golf,trouble,america,nissan,gunner,garfield,bullshit,asdfghjk,5150,fucking,apollo,1qazxsw2,2112,eminem,legend,airborne,bear,beavis,apple,brooklyn,godzilla,skippy,4815162342,buddy,qwert,kitten,magic,shelby,beaver,phantom,asdasd,xavier,braves,darkness,blink182,copper,platinum,qweqwe,tomcat,01012011,girls,bigboy,102030,animal,police,online,11223344,voyager,lifehack,12qwaszx,fish,sniper,315475,trinity,blazer,heaven,lover,snowball,playboy,loveme,bubbles,hooters,cricket,willow,donkey,topgun,nintendo,saturn,destiny,pakistan,pumpkin,digital,sergey,redwings,explorer,tits,private,runner,therock,guinness,lasvegas,beatles,789456123,fire,cassie,christin,qwerty1,celtic,asdf1234,andrey,broncos,007007,babygirl,eclipse,fluffy,cartman,michigan,carolina,testing,alexande,birdie,pantera,cherry,vampire,mexico,dickhead,buffalo,genius,montana,beer,minecraft,maximus,flyers,lovely,stalker,metallica,doggie,snickers,speedy,bronco,lol123,paradise,yankee,horses,magnum,dreams,147258369,lacrosse,ou812,goober,enigma,qwertyu,scotty,pimpin,bollocks,surfer,cock,poohbear,genesis,star,asd123,qweasdzxc,racing,hello1,hawaii,eagle1,viper,poopoo,einstein,boobies,12345q,bitches,drowssap,simple,badger,alaska,action,jester,drummer,111222,spitfire,forest,maryjane,champion,diesel,svetlana,friday,hotrod,147258,chevy,lucky1,westside,security,google,badass,tester,shorty,thumper,hitman,mozart,zaq12wsx,boobs,reddog,010203,lizard,a123456,123456789a,ruslan,eagle,1232323q,scarface,qwerty12,147852,a12345,buddha,porno,420420,spirit,money1,stargate,qwe123,naruto,mercury,liberty,12345qwert,semperfi,suzuki,popcorn,spooky,marley,scotland,kitty,cherokee,vikings,simpsons,rascal,qweasd,hummer,loveyou,michael1,patches,russia,jupiter,penguin,passion,cumshot,vfhbyf,honda,vladimir,sandman,passport,raider,bastard,123789,infinity,assman,bulldogs,fantasy,sucker,1234554321,horney,domino,budlight,disney,ironman,usuckballz1,softball,brutus,redrum,bigred,mnbvcxz,fktrcfylh,karina,marines,digger,kawasaki,cougar,fireman,oksana,monday,cunt,justice,nigger,super,wildcats,tinker,logitech,dancer,swordfis,avalon,everton,alexandr,motorola,patriots,hentai,madonna,pussy1,ducati,colorado,connor,juventus,galore,smooth,freeuser,warcraft,boogie,titanic,wolverin,elizabet,arizona,valentin,saints,asdfg,accord,test123,password123,christ,yfnfif,stinky,slut,spiderma,naughty,chopper,hello123,ncc1701d,extreme,skyline,poop,zombie,pearljam,123qweasd,froggy,awesome,vision,pirate,fylhtq,dreamer,bullet,predator,empire,123123a,kirill,charlie1,panthers,penis,skipper,nemesis,rasdzv3,peekaboo,rolltide,cardinal,psycho,danger,mookie,happy1,wanker,chevelle,manutd,goblue,9379992,hobbes,vegeta,fyfcnfcbz,852456,picard,159951,windows,loverboy,victory,vfrcbv,bambam,serega,123654789,turkey,tweety,galina,hiphop,rooster,changeme,berlin,taurus,suckme,polina,electric,avatar,134679,maksim,raptor,alpha1,hendrix,newport,bigcock,brazil,spring,a1b2c3,madmax,alpha,britney,sublime,darkside,bigman,wolfpack,classic,hercules,ronaldo,letmein1,1q2w3e,741852963,spiderman,blizzard,123456789q,cheyenne,cjkysirj,tiger1,wombat,bubba1,pandora,zxc123,holiday,wildcat,devils,horse,alabama,147852369,caesar,12312,buddy1,bondage,pussycat,pickle,shaggy,catch22,leather,chronic,a1b2c3d4,admin,qqq111,qaz123,airplane,kodiak,freepass,billybob,sunset,katana,phpbb,chocolat,snowman,angel1,stingray,firebird,wolves,zeppelin,detroit,pontiac,gundam,panzer,vagina,outlaw,redhead,tarheels,greenday,nastya,01011980,hardon,engineer,dragon1,hellfire,serenity,cobra,fireball,lickme,darkstar,1029384756,01011,mustang1,flash,124578,strike,beauty,pavilion,01012000,bobafett,dbrnjhbz,bigmac,bowling,chris1,ytrewq,natali,pyramid,rulez,welcome1,dodgers,apache,swimming,whynot,teens,trooper,fuckit,defender,precious,135790,packard,weasel,popeye,lucifer,cancer,icecream,142536,raven,swordfish,presario,viktor,rockstar,blonde,james1,wutang,spike,pimp,atlanta,airforce,thailand,casino,lennon,mouse,741852,hacker,bluebird,hawkeye,456123,theone,catfish,sailor,goldfish,nfnmzyf,tattoo,pervert,barbie,maxima,nipples,machine,trucks,wrangler,rocks,tornado,lights,cadillac,bubble,pegasus,madman,longhorn,browns,target,666999,eatme,qazwsx123,microsoft,dilbert,christia,baller,lesbian,shooter,xfiles,seattle,qazqaz,cthutq,amateur,prelude,corona,freaky,malibu,123qweasdzxc,assassin,246810,atlantis,integra,pussies,iloveu,lonewolf,dragons,monkey1,unicorn,software,bobcat,stealth,peewee,openup,753951,srinivas,zaqwsx,valentina,shotgun,trigger,veronika,bruins,coyote,babydoll,joker,dollar,lestat,rocky1,hottie,random,butterfly,wordpass,smiley,sweety,snake,chipper,woody,samurai,devildog,gizmo,maddie,soso123aljg,mistress,freedom1,flipper,express,hjvfirf,moose,cessna,piglet,polaris,teacher,montreal,cookies,wolfgang,scully,fatboy,wicked,balls,tickle,bunny,dfvgbh,foobar,transam,pepsi,fetish,oicu812,basketba,toshiba,hotstuff,sunday,booty,gambit,31415926,impala,stephani,jessica1,hooker,lancer,knicks,shamrock,fuckyou2,stinger,314159,redneck,deftones,squirt,siemens,blaster,trucker,subaru,renegade,ibanez,manson,swinger,reaper,blondie,mylove,galaxy,blahblah,enterpri,travel,1234abcd,babylon5,indiana,skeeter,master1,sugar,ficken,smoke,bigone,sweetpea,fucked,trfnthbyf,marino,escort,smitty,bigfoot,babes,larisa,trumpet,spartan,valera,babylon,asdfghj,yankees1,bigboobs,stormy,mister,hamlet,aardvark,butterfl,marathon,paladin,cavalier,manchester,skater,indigo,hornet,buckeyes,01011990,indians,karate,hesoyam,toronto,diamonds,chiefs,buckeye,1qaz2wsx3edc,highland,hotsex,charger,redman,passwor,maiden,drpepper,storm,pornstar,garden,12345678910,pencil,sherlock,timber,thuglife,insane,pizza,jungle,jesus1,aragorn,1a2b3c,hamster,david1,triumph,techno,lollol,pioneer,catdog,321654,fktrctq,morpheus,141627,pascal,shadow1,hobbit,wetpussy,erotic,consumer,blabla,justme,stones,chrissy,spartak,goforit,burger,pitbull,adgjmptw,italia,barcelona,hunting,colors,kissme,virgin,overlord,pebbles,sundance,emerald,doggy,racecar,irina,element,1478963,zipper,alpine,basket,goddess,poison,nipple,sakura,chichi,huskers,13579,pussys,q12345,ultimate,ncc1701e,blackie,nicola,rommel,matthew1,caserta,omega,geronimo,sammy1,trojan,123qwe123,philips,nugget,tarzan,chicks,aleksandr,bassman,trixie,portugal,anakin,dodger,bomber,superfly,madness,q1w2e3r4t5y6,loser,123asd,fatcat,ybrbnf,soldier,warlock,wrinkle1,desire,sexual,babe,seminole,alejandr,951753,11235813,westham,andrei,concrete,access14,weed,letmein2,ladybug,naked,christop,trombone,tintin,bluesky,rhbcnbyf,qazxswedc,onelove,cdtnkfyf,whore,vfvjxrf,titans,stallion,truck,hansolo,blue22,smiles,beagle,panama,kingkong,flatron,inferno,mongoose,connect,poiuyt,snatch,qawsed,juice,blessed,rocker,snakes,turbo,bluemoon,sex4me,finger,jamaica,a1234567,mulder,beetle,fuckyou1,passat,immortal,plastic,123454321,anthony1,whiskey,dietcoke,suck,spunky,magic1,monitor,cactus,exigen,planet,ripper,teen,spyder,apple1,nolimit,hollywoo,sluts,sticky,trunks,1234321,14789632,pickles,sailing,bonehead,ghbdtnbr,delta,charlott,rubber,911911,112358,molly1,yomama,hongkong,jumper,william1,ilovesex,faster,unreal,cumming,memphis,1123581321,nylons,legion,sebastia,shalom,pentium,geheim,werewolf,funtime,ferret,orion,curious,555666,niners,cantona,sprite,philly,pirates,abgrtyu,lollipop,eternity,boeing,super123,sweets,cooldude,tottenha,green1,jackoff,stocking,7895123,moomoo,martini,biscuit,drizzt,colt45,fossil,makaveli,snapper,satan666,maniac,salmon,patriot,verbatim,nasty,shasta,asdzxc,shaved,blackcat,raistlin,qwerty12345,punkrock,cjkywt,01012010,4128,waterloo,crimson,twister,oxford,musicman,seinfeld,biggie,condor,ravens,megadeth,wolfman,cosmos,sharks,banshee,keeper,foxtrot,gn56gn56,skywalke,velvet,black1,sesame,dogs,squirrel,privet,sunrise,wolverine,sucks,legolas,grendel,ghost,cats,carrot,frosty,lvbnhbq,blades,stardust,frog,qazwsxed,121314,coolio,brownie,groovy,twilight,daytona,vanhalen,pikachu,peanuts,licker,hershey,jericho,intrepid,ninja,1234567a,zaq123,lobster,goblin,punisher,strider,shogun,kansas,amadeus,seven7,jason1,neptune,showtime,muscle,oldman,ekaterina,rfrfirf,getsome,showme,111222333,obiwan,skittles,danni,tanker,maestro,tarheel,anubis,hannibal,anal,newlife,gothic,shark,fighter,blue123,blues,123456z,princes,slick,chaos,thunder1,sabine,1q2w3e4r5t6y,python,test1,mirage,devil,clover,tequila,chelsea1,surfing,delete,potato,chubby,panasonic,sandiego,portland,baggins,fusion,sooners,blackdog,buttons,californ,moscow,playtime,mature,1a2b3c4d,dagger,dima,stimpy,asdf123,gangster,warriors,iverson,chargers,byteme,swallow,liquid,lucky7,dingdong,nymets,cracker,mushroom,456852,crusader,bigguy,miami,dkflbvbh,bugger,nimrod,tazman,stranger,newpass,doodle,powder,gotcha,guardian,dublin,slapshot,septembe,147896325,pepsi1,milano,grizzly,woody1,knights,photos,2468,nookie,charly,rammstein,brasil,123321123,scruffy,munchkin,poopie,123098,kittycat,latino,walnut,1701,thegame,viper1,1passwor,kolobok,picasso,robert1,barcelon,bananas,trance,auburn,coltrane,eatshit,goodluck,starcraft,wheels,parrot,postal,blade,wisdom,pink,gorilla,katerina,pass123,andrew1,shaney14,dumbass,osiris,fuck_inside,oakland,discover,ranger1,spanking,lonestar,bingo,meridian,ping,heather1,dookie,stonecol,megaman,192837465,rjntyjr,ledzep,lowrider,25802580,richard1,firefly,griffey,racerx,paradox,ghjcnj,gangsta,zaq1xsw2,tacobell,weezer,sirius,halflife,buffett,shiloh,123698745,vertigo,sergei,aliens,sobaka,keyboard,kangaroo,sinner,soccer1,0.0.000,bonjour,socrates,chucky,hotboy,sprint,0007,sarah1,scarlet,celica,shazam,formula1,sommer,trebor,qwerasdf,jeep,mailcreated5240,bollox,asshole1,fuckface,honda1,rebels,vacation,lexmark,penguins,12369874,ragnarok,formula,258456,tempest,vfhecz,tacoma,qwertz,colombia,flames,rockon,duck,prodigy,wookie,dodgeram,mustangs,123qaz,sithlord,smoker,server,bang,incubus,scoobydo,oblivion,molson,kitkat,titleist,rescue,zxcv1234,carpet,1122,bigballs,tardis,jimbob,xanadu,blueeyes,shaman,mersedes,pooper,pussy69,golfing,hearts,mallard,12312312,kenwood,patrick1,dogg,cowboys1,oracle,123zxc,nuttertools,102938,topper,1122334455,shemale,sleepy,gremlin,yourmom,123987,gateway1,printer,monkeys,peterpan,mikey,kingston,cooler,analsex,jimbo,pa55word,asterix,freckles,birdman,frank1,defiant,aussie,stud,blondes,tatyana,445566,aspirine,mariners,jackal,deadhead,katrin,anime,rootbeer,frogger,polo,scooter1,hallo,noodles,thomas1,parola,shaolin,celine,11112222,plymouth,creampie,justdoit,ohyeah,fatass,assfuck,amazon,1234567q,kisses,magnus,camel,nopass,bosco,987456,6751520,harley1,putter,champs,massive,spidey,lightnin,camelot,letsgo,gizmodo,aezakmi,bones,caliente,12121,goodtime,thankyou,raiders1,brucelee,redalert,aquarius,456654,catherin,smokin,pooh,mypass,astros,roller,porkchop,sapphire,qwert123,kevin1,a1s2d3f4,beckham,atomic,rusty1,vanilla,qazwsxedcrfv,hunter1,kaktus,cxfcnmt,blacky,753159,elvis1,aggies,blackjac,bangkok,scream,123321q,iforgot,power1,kasper,abc12,buster1,slappy,shitty,veritas,chevrole,amber1,01012001,vader,amsterdam,jammer,primus,spectrum,eduard,granny,horny1,sasha1,clancy,usa123,satan,diamond1,hitler,avenger,1221,spankme,123456qwerty,simba,smudge,scrappy,labrador,john316,syracuse,front242,falcons,husker,candyman,commando,gator,pacman,delta1,pancho,krishna,fatman,clitoris,pineappl,lesbians,8j4ye3uz,barkley,vulcan,punkin,boner,celtics,monopoly,flyboy,romashka,hamburg,123456aa,lick,gangbang,223344,area51,spartans,aaa111,tricky,snuggles,drago,homerun,vectra,homer1,hermes,topcat,cuddles,infiniti,1234567890q,cosworth,goose,phoenix1,killer1,ivanov,bossman,qawsedrf,peugeot,exigent,doberman,durango,brandon1,plumber,telefon,horndog,laguna,rbhbkk,dawg,webmaster,breeze,beast,porsche9,beefcake,leopard,redbull,oscar1,topdog,godsmack,theking,pics,omega1,speaker,viktoria,fuckers,bowler,starbuck,gjkbyf,valhalla,anarchy,blacks,herbie,kingpin,starfish,nokia,loveit,achilles,906090,labtec,ncc1701a,fitness,jordan1,brando,arsenal1,bull,kicker,napass,desert,sailboat,bohica,tractor,hidden,muppet,jackson1,jimmy1,terminator,phillies,pa55w0rd,terror,farside,swingers,legacy,frontier,butthole,doughboy,jrcfyf,tuesday,sabbath,daniel1,nebraska,homers,qwertyuio,azamat,fallen,agent007,striker,camels,iguana,looker,pinkfloy,moloko,qwerty123456,dannyboy,luckydog,789654,pistol,whocares,charmed,skiing,select,franky,puppy,daniil,vladik,vette,vfrcbvrf,ihateyou,nevada,moneys,vkontakte,mandingo,puppies,666777,mystic,zidane,kotenok,dilligaf,budman,bunghole,zvezda,123457,triton,golfball,technics,trojans,panda,laptop,rookie,01011991,15426378,aberdeen,gustav,jethro,enterprise,igor,stripper,filter,hurrican,rfnthbyf,lespaul,gizmo1,butch,132435,dthjybrf,1366613,excalibu,963852,nofear,momoney,possum,cutter,oilers,moocow,cupcake,gbpltw,batman1,splash,svetik,super1,soleil,bogdan,melissa1,vipers,babyboy,tdutybq,lancelot,ccbill,keystone,passwort,flamingo,firefox,dogman,vortex,rebel,noodle,raven1,zaphod,killme,pokemon1,coolman,danila,designer,skinny,kamikaze,deadman,gopher,doobie,warhammer,deeznuts,freaks,engage,chevy1,steve1,apollo13,poncho,hammers,azsxdc,dracula,000007,sassy,bitch1,boots,deskjet,12332,macdaddy,mighty,rangers1,manchest,sterlin,casey1,meatball,mailman,sinatra,cthulhu,summer1,bubbas,cartoon,bicycle,eatpussy,truelove,sentinel,tolkien,breast,capone,lickit,summit,123456k,peter1,daisy1,kitty1,123456789z,crazy1,jamesbon,texas1,sexygirl,362436,sonic,billyboy,redhot,microsof,microlab,daddy1,rockets,iloveyo,fernand,gordon24,danie,cutlass,polska,star69,titties,pantyhos,01011985,thekid,aikido,gofish,mayday,1234qwe,coke,anfield,sony,lansing,smut,scotch,sexx,catman,73501505,hustler,saun,dfkthbz,passwor1,jenny1,azsxdcfv,cheers,irish1,gabrie,tinman,orioles,1225,charlton,fortuna,01011970,airbus,rustam,xtreme,bigmoney,zxcasd,retard,grumpy,huskies,boxing,4runner,kelly1,ultima,warlord,fordf150,oranges,rotten,asdfjkl,superstar,denali,sultan,bikini,saratoga,thor,figaro,sixers,wildfire,vladislav,128500,sparta,mayhem,greenbay,chewie,music1,number1,cancun,fabie,mellon,poiuytrewq,cloud9,crunch,bigtime,chicken1,piccolo,bigbird,321654987,billy1,mojo,01011981,maradona,sandro,chester1,bizkit,rjirfrgbde,789123,rightnow,jasmine1,hyperion,treasure,meatloaf,armani,rovers,jarhead,01011986,cruise,coconut,dragoon,utopia,davids,cosmo,rfhbyf,reebok,1066,charli,giorgi,sticks,sayang,pass1234,exodus,anaconda,zaqxsw,illini,woofwoof,emily1,sandy1,packer,poontang,govols,jedi,tomato,beaner,cooter,creamy,lionking,happy123,albatros,poodle,kenworth,dinosaur,greens,goku,happyday,eeyore,tsunami,cabbage,holyshit,turkey50,memorex,chaser,bogart,orgasm,tommy1,volley,whisper,knopka,ericsson,walleye,321123,pepper1,katie1,chickens,tyler1,corrado,twisted,100000,zorro,clemson,zxcasdqwe,tootsie,milana,zenith,fktrcfylhf,shania,frisco,polniypizdec0211,crazybab,junebug,fugazi,rereirf,vfvekz,1001,sausage,vfczyz,koshka,clapton,justin1,anhyeuem,condom,fubar,hardrock,skywalker,tundra,cocks,gringo,150781,canon,vitalik,aspire,stocks,samsung1,applepie,abc12345,arjay,gandalf1,boob,pillow,sparkle,gmoney,rockhard,lucky13,samiam,everest,hellyeah,bigsexy,skorpion,rfrnec,hedgehog,australi,candle,slacker,dicks,voyeur,jazzman,america1,bobby1,br0d3r,wolfie,vfksirf,1qa2ws3ed,13243546,fright,yosemite,temp,karolina,fart,barsik,surf,cheetah,baddog,deniska,starship,bootie,milena,hithere,kume,greatone,dildo,50cent,0.0.0.000,albion,amanda1,midget,lion,maxell,football1,cyclone,freeporn,nikola,bonsai,kenshin,slider,balloon,roadkill,killbill,222333,jerkoff,78945612,dinamo,tekken,rambler,goliath,cinnamon,malaka,backdoor,fiesta,packers1,rastaman,fletch,sojdlg123aljg,stefano,artemis,calico,nyjets,damnit,robotech,duchess,rctybz,hooter,keywest,18436572,hal9000,mechanic,pingpong,operator,presto,sword,rasputin,spank,bristol,faggot,shado,963852741,amsterda,321456,wibble,carrera,alibaba,majestic,ramses,duster,route66,trident,clipper,steeler,wrestlin,divine,kipper,gotohell,kingfish,snake1,passwords,buttman,pompey,viagra,zxcvbnm1,spurs,332211,slutty,lineage2,oleg,macross,pooter,brian1,qwert1,charles1,slave,jokers,yzerman,swimmer,ne1469,nwo4life,solnce,seamus,lolipop,pupsik,moose1,ivanova,secret1,matador,love69,420247,ktyjxrf,subway,cinder,vermont,pussie,chico,florian,magick,guiness,allsop,ghetto,flash1,a123456789,typhoon,dfkthf,depeche,skydive,dammit,seeker,fuckthis,crysis,kcj9wx5n,umbrella,r2d2c3po,123123q,snoopdog,critter,theboss,ding,162534,splinter,kinky,cyclops,jayhawk,456321,caramel,qwer123,underdog,caveman,onlyme,grapes,feather,hotshot,fuckher,renault,george1,sex123,pippen,000001,789987,floppy,cunts,megapass,1000,pornos,usmc,kickass,great1,quattro,135246,wassup,helloo,p0015123,nicole1,chivas,shannon1,bullseye,java,fishes,blackhaw,jamesbond,tunafish,juggalo,dkflbckfd,123789456,dallas1,translator,122333,beanie,alucard,gfhjkm123,supersta,magicman,ashley1,cohiba,xbox360,caligula,12131415,facial,7753191,dfktynbyf,cobra1,cigars,fang,klingon,bob123,safari,looser,10203,deepthroat,malina,200000,tazmania,gonzo,goalie,jacob1,monaco,cruiser,misfit,vh5150,tommyboy,marino13,yousuck,sharky,vfhufhbnf,horizon,absolut,brighton,123456r,death1,kungfu,maxx,forfun,mamapapa,enter1,budweise,banker,getmoney,kostya,qazwsx12,bigbear,vector,fallout,nudist,gunners,royals,chainsaw,scania,trader,blueboy,walrus,eastside,kahuna,qwerty1234,love123,steph,01011989,cypress,champ,undertaker,ybrjkfq,europa,snowboar,sabres,moneyman,chrisbln,minime,nipper,groucho,whitey,viewsonic,penthous,wolf359,fabric,flounder,coolguy,whitesox,passme,smegma,skidoo,thanatos,fucku2,snapple,dalejr,mondeo,thesims,mybaby,panasoni,sinbad,thecat,topher,frodo,sneakers,q123456,z1x2c3,alfa,chicago1,taylor1,ghjcnjnfr,cat123,olivier,cyber,titanium,0420,madison1,jabroni,dang,hambone,intruder,holly1,gargoyle,sadie1,static,poseidon,studly,newcastl,sexxxx,poppy,johannes,danzig,beastie,musica,buckshot,sunnyday,adonis,bluedog,bonkers,2128506,chrono,compute,spawn,01011988,turbo1,smelly,wapbbs,goldstar,ferrari1,778899,quantum,pisces,boomboom,gunnar,1024,test1234,florida1,nike,superman1,multiplelo,custom,motherlode,1qwerty,westwood,usnavy,apple123,daewoo,korn,stereo,sasuke,sunflowe,watcher,dharma,555777,mouse1,assholes,babyblue,123qwerty,marius,walmart,snoop,starfire,tigger1,paintbal,knickers,aaliyah,lokomotiv,theend,winston1,sapper,rover,erotica,scanner,racer,zeus,sexy69,doogie,bayern,joshua1,newbie,scott1,losers,droopy,outkast,martin1,dodge1,wasser,ufkbyf,rjycnfynby,thirteen,12345z,112211,hotred,deejay,hotpussy,192837,jessic,philippe,scout,panther1,cubbies,havefun,magpie,fghtkm,avalanch,newyork1,pudding,leonid,harry1,cbr600,audia4,bimmer,fucku,01011984,idontknow,vfvfgfgf,1357,aleksey,builder,01011987,zerocool,godfather,mylife,donuts,allmine,redfish,777888,sascha,nitram,bounce,333666,smokes,1x2zkg8w,rodman,stunner,zxasqw12,hoosier,hairy,beretta,insert,123456s,rtyuehe,francesc,tights,cheese1,micron,quartz,hockey1,gegcbr,searay,jewels,bogey,paintball,celeron,padres,bing,syncmaster,ziggy,simon1,beaches,prissy,diehard,orange1,mittens,aleksandra,queens,02071986,biggles,thongs,southpark,artur,twinkle,gretzky,rabota,cambiami,monalisa,gollum,chuckles,spike1,gladiator,whisky,spongebob,sexy1,03082006,mazafaka,meathead,4121,ou8122,barefoot,12345678q,cfitymrf,bigass,a1s2d3,kosmos,blessing,titty,clevelan,terrapin,ginger1,johnboy,maggot,clarinet,deeznutz,336699,stumpy,stoney,footbal,traveler,volvo,bucket,snapon,pianoman,hawkeyes,futbol,casanova,tango,goodboy,scuba,honey1,sexyman,warthog,mustard,abc1234,nickel,10203040,meowmeow,1012,boricua,prophet,sauron,12qwas,reefer,andromeda,crystal1,joker1,90210,goofy,loco,lovesex,triangle,whatsup,mellow,bengals,monster1,maste,01011910,lover1,love1,123aaa,sunshin,smeghead,hokies,sting,welder,rambo,cerberus,bunny1,rockford,monke,1q2w3e4r5,goldwing,gabriell,buzzard,crjhgbjy,james007,rainman,groove,tiberius,purdue,nokia6300,hayabusa,shou,jagger,diver,zigzag,poochie,usarmy,phish,redwood,redwing,12345679,salamander,silver1,abcd123,sputnik,boobie,ripple,eternal,12qw34er,thegreat,allstar,slinky,gesperrt,mishka,whiskers,pinhead,overkill,sweet1,rhfcjnrf,montgom240,sersolution,jamie1,starman,proxy,swords,nikolay,bacardi,rasta,badgirl,rebecca1,wildman,penny1,spaceman,1007,10101,logan1,hacked,bulldog1,helmet,windsor,buffy1,runescape,trapper,123451,banane,dbrnjh,ripken,12345qwe,frisky,shun,fester,oasis,lightning,ib6ub9,cicero,kool,pony,thedog,784512,01011992,megatron,illusion,edward1,napster,11223,squash,roadking,woohoo,19411945,hoosiers,01091989,tracker,bagira,midway,leavemealone,br549,14725836,235689,menace,rachel1,feng,laser,stoned,realmadrid,787898,balloons,tinkerbell,5551212,maria1,pobeda,heineken,sonics,moonlight,optimus,comet,orchid,02071982,jaybird,kashmir,12345678a,chuang,chunky,peach,mortgage,rulezzz,saleen,chuckie,zippy,fishing1,gsxr750,doghouse,maxim,reader,shai,buddah,benfica,chou,salomon,meister,eraser,blackbir,bigmike,starter,pissing,angus,deluxe,eagles1,hardcock,135792468,mian,seahawks,godfathe,bookworm,gregor,intel,talisman,blackjack,babyface,hawaiian,dogfood,zhong,01011975,sancho,ludmila,medusa,mortimer,123456654321,roadrunn,just4me,stalin,01011993,handyman,alphabet,pizzas,calgary,clouds,password2,cgfhnfr,f**k,cubswin,gong,lexus,max123,xxx123,digital1,gfhjkm1,7779311,missy1,michae,beautifu,gator1,1005,pacers,buddie,chinook,heckfy,dutchess,sally1,breasts,beowulf,darkman,jenn,tiffany1,zhei,quan,qazwsx1,satana,shang,idontkno,smiths,puddin,nasty1,teddybea,valkyrie,passwd,chao,boxster,killers,yoda,cheater,inuyasha,beast1,wareagle,foryou,dragonball,mermaid,bhbirf,teddy1,dolphin1,misty1,delphi,gromit,sponge,qazzaq,fytxrf,gameover,diao,sergi,beamer,beemer,kittykat,rancid,manowar,adam12,diggler,assword,austin1,wishbone,gonavy,sparky1,fisting,thedude,sinister,1213,venera,novell,salsero,jayden,fuckoff1,linda1,vedder,02021987,1pussy,redline,lust,jktymrf,02011985,dfcbkbq,dragon12,chrome,gamecube,titten,cong,bella1,leng,02081988,eureka,bitchass,147369,banner,lakota,123321a,mustafa,preacher,hotbox,02041986,z1x2c3v4,playstation,01011977,claymore,electra,checkers,zheng,qing,armagedon,02051986,wrestle,svoboda,bulls,nimbus,alenka,madina,newpass6,onetime,aa123456,bartman,02091987,silverad,electron,12345t,devil666,oliver1,skylar,rhtdtlrj,gobucks,johann,12011987,milkman,02101985,camper,thunderb,bigbutt,jammin,davide,cheeks,goaway,lighter,claudi,thumbs,pissoff,ghostrider,cocaine,teng,squall,lotus,hootie,blackout,doitnow,subzero,02031986,marine1,02021988,pothead,123456qw,skate,1369,peng,antoni,neng,miao,bcfields,1492,marika,794613,musashi,tulips,nong,piao,chai,ruan,southpar,02061985,nude,mandarin,654123,ninjas,cannabis,jetski,xerxes,zhuang,kleopatra,dickie,bilbo,pinky,morgan1,1020,1017,dieter,baseball1,tottenham,quest,yfnfkmz,dirtbike,1234567890a,mango,jackson5,ipswich,iamgod,02011987,tdutybz,modena,qiao,slippery,qweasd123,bluefish,samtron,toon,111333,iscool,02091986,petrov,fuzzy,zhou,1357924680,mollydog,deng,02021986,1236987,pheonix,zhun,ghblehjr,othello,starcraf,000111,sanfran,a11111,cameltoe,badman,vasilisa,jiang,1qaz2ws,luan,sveta,12qw12,akira,chuai,369963,cheech,beatle,pickup,paloma,01011983,caravan,elizaveta,gawker,banzai,pussey,mullet,seng,bingo1,bearcat,flexible,farscape,borussia,zhuai,templar,guitar1,toolman,yfcntymrf,chloe1,xiang,slave1,guai,nuggets,02081984,mantis,slim,scorpio1,fyutkbyf,thedoors,02081987,02061986,123qq123,zappa,fergie,7ugd5hip2j,huai,asdfzxcv,sunflower,pussyman,deadpool,bigtit,01011982,love12,lassie,skyler,gatorade,carpedie,jockey,mancity,spectre,02021984,cameron1,artemka,reng,02031984,iomega,jing,moritz,spice,rhino,spinner,heater,zhai,hover,talon,grease,qiong,corleone,ltybcrf,tian,cowboy1,hippie,chimera,ting,alex123,02021985,mickey1,corsair,sonoma,aaron1,xxxpass,bacchus,webmaste,chuo,xyz123,chrysler,spurs1,artem,shei,cosmic,01020304,deutsch,gabriel1,123455,oceans,987456321,binladen,latinas,a12345678,speedo,buttercu,02081989,21031988,merlot,millwall,ceng,kotaku,jiong,dragonba,2580,stonecold,snuffy,01011999,02011986,hellos,blaze,maggie1,slapper,istanbul,bonjovi,babylove,mazda,bullfrog,phoeni,meng,porsche1,nomore,02061989,bobdylan,capslock,orion1,zaraza,teddybear,ntktajy,myname,rong,wraith,mets,niao,02041984,smokie,chevrolet,dialog,gfhjkmgfhjkm,dotcom,vadim,monarch,athlon,mikey1,hamish,pian,liang,coolness,chui,thoma,ramones,ciccio,chippy,eddie1,house1,ning,marker,cougars,jackpot,barbados,reds,pdtplf,knockers,cobalt,amateurs,dipshit,napoli,kilroy,pulsar,jayhawks,daemon,alexey,weng,shuang,9293709b13,shiner,eldorado,soulmate,mclaren,golfer1,andromed,duan,50spanks,sexyboy,dogshit,02021983,shuo,kakashka,syzygy,111111a,yeahbaby,qiang,netscape,fulham,120676,gooner,zhui,rainbow6,laurent,dog123,halifax,freeway,carlitos,147963,eastwood,microphone,monkey12,1123,persik,coldbeer,geng,nuan,danny1,fgtkmcby,entropy,gadget,just4fun,sophi,baggio,carlito,1234567891,02021989,02041983,specialk,piramida,suan,bigblue,salasana,hopeful,mephisto,bailey1,hack,annie1,generic,violetta,spencer1,arcadia,02051983,hondas,9562876,trainer,jones1,smashing,liao,159632,iceberg,rebel1,snooker,temp123,zang,matteo,fastball,q2w3e4r5,bamboo,fuckyo,shutup,astro,buddyboy,nikitos,redbird,maxxxx,shitface,02031987,kuai,kissmyass,sahara,radiohea,1234asdf,wildcard,maxwell1,patric,plasma,heynow,bruno1,shao,bigfish,misfits,sassy1,sheng,02011988,02081986,testpass,nanook,cygnus,licking,slavik,pringles,xing,1022,ninja1,submit,dundee,tiburon,pinkfloyd,yummy,shuai,guang,chopin,obelix,insomnia,stroker,1a2s3d4f,1223,playboy1,lazarus,jorda,spider1,homerj,sleeper,02041982,darklord,cang,02041988,02041987,tripod,magician,jelly,telephon,15975,vsjasnel12,pasword,iverson3,pavlov,homeboy,gamecock,amigo,brodie,budapest,yjdsqgfhjkm,reckless,02011980,pang,tiger123,2469,mason1,orient,01011979,zong,cdtnbr,maksimka,1011,bushido,taxman,giorgio,sphinx,kazantip,02101984,concorde,verizon,lovebug,georg,sam123,seadoo,qazwsxedc123,jiao,jezebel,pharmacy,abnormal,jellybea,maxime,puffy,islander,bunnies,jiggaman,drakon,010180,pluto,zhjckfd,12365,classics,crusher,mordor,hooligan,strawberry,02081985,scrabble,hawaii50,1224,wg8e3wjf,cthtuf,premium,arrow,123456qwe,mazda626,ramrod,tootie,rhjrjlbk,ghost1,1211,bounty,niang,02071984,goat,killer12,sweetnes,porno1,masamune,426hemi,corolla,mariposa,hjccbz,doomsday,bummer,blue12,zhao,bird33,excalibur,samsun,kirsty,buttfuck,kfhbcf,zhuo,marcello,ozzy,02021982,dynamite,655321,master12,123465,lollypop,stepan,1qa2ws,spiker,goirish,callum,michael2,moonbeam,attila,henry1,lindros,andrea1,sporty,lantern,12365478,nextel,violin,volcom,998877,water1,imation,inspiron,dynamo,citadel,placebo,clowns,tiao,02061988,tripper,dabears,haggis,merlin1,02031985,anthrax,amerika,iloveme,vsegda,burrito,bombers,snowboard,forsaken,katarina,a1a2a3,woofer,tigger2,fullmoon,tiger2,spock,hannah1,snoopy1,sexxxy,sausages,stanislav,cobain,robotics,exotic,green123,mobydick,senators,pumpkins,fergus,asddsa,147741,258852,windsurf,reddevil,vfitymrf,nevermind,nang,woodland,4417,mick,shui,q1q2q3,wingman,69696,superb,zuan,ganesh,pecker,zephyr,anastasiya,icu812,larry1,02081982,broker,zalupa,mihail,vfibyf,dogger,7007,paddle,varvara,schalke,1z2x3c,presiden,yankees2,tuning,poopy,02051982,concord,vanguard,stiffy,rjhjktdf,felix1,wrench,firewall,boxer,bubba69,popper,02011984,temppass,gobears,cuan,tipper,fuckme1,kamila,thong,puss,bigcat,drummer1,02031982,sowhat,digimon,tigers1,rang,jingle,bian,uranus,soprano,mandy1,dusty1,fandango,aloha,pumpkin1,postman,02061980,dogcat,bombay,pussy123,onetwo,highheel,pippo,julie1,laura1,pepito,beng,smokey1,stylus,stratus,reload,duckie,karen1,jimbo1,225588,369258,krusty,snappy,asdf12,electro,111qqq,kuang,fishin,clit,abstr,christma,qqqqq1,1234560,carnage,guyver,boxers,kittens,zeng,1000000,qwerty11,toaster,cramps,yugioh,02061987,icehouse,zxcvbnm123,pineapple,namaste,harrypotter,mygirl,falcon1,earnhard,fender1,spikes,nutmeg,01081989,dogboy,02091983,369852,softail,mypassword,prowler,bigboss,1112,harvest,heng,jubilee,killjoy,basset,keng,zaqxswcde,redsox1,biao,titan,misfit99,robot,wifey,kidrock,02101987,gameboy,enrico,1z2x3c4v,broncos1,arrows,havana,banger,cookie1,chriss,123qw,platypus,cindy1,lumber,pinball,foxy,london1,1023,05051987,02041985,password12,superma,longbow,radiohead,nigga,12051988,spongebo,qwert12345,abrakadabra,dodgers1,02101989,chillin,niceguy,pistons,hookup,santafe,bigben,jets,1013,vikings1,mankind,viktoriya,beardog,hammer1,02071980,reddwarf,magelan,longjohn,jennife,gilles,carmex2,02071987,stasik,bumper,doofus,slamdunk,pixies,garion,steffi,alessandro,beerman,niceass,warrior1,honolulu,134679852,visa,johndeer,mother1,windmill,boozer,oatmeal,aptiva,busty,delight,tasty,slick1,bergkamp,badgers,guitars,puffin,02091981,nikki1,irishman,miller1,zildjian,123000,airwolf,magnet,anai,install,02041981,02061983,astra,romans,megan1,mudvayne,freebird,muscles,dogbert,02091980,02091984,snowflak,01011900,mang,joseph1,nygiants,playstat,junior1,vjcrdf,qwer12,webhompas,giraffe,pelican,jefferso,comanche,bruiser,monkeybo,kjkszpj,123456l,micro,albany,02051987,angel123,epsilon,aladin,death666,hounddog,josephin,altima,chilly,02071988,78945,ultra,02041979,gasman,thisisit,pavel,idunno,kimmie,05051985,paulie,ballin,medion,moondog,manolo,pallmall,climber,fishbone,genesis1,153624,toffee,tbone,clippers,krypton,jerry1,picturs,compass,111111q,02051988,1121,02081977,sairam,getout,333777,cobras,22041987,bigblock,severin,booster,norwich,whiteout,ctrhtn,123456m,02061984,hewlett,shocker,fuckinside,02031981,chase1,white1,versace,123456789s,basebal,iloveyou2,bluebell,08031986,anthon,stubby,foreve,undertak,werder,saiyan,mama123,medic,chipmunk,mike123,mazdarx7,qwe123qwe,bowwow,kjrjvjnbd,celeb,choochoo,demo,lovelife,02051984,colnago,lithium,02051989,15051981,zzzxxx,welcom,anastasi,fidelio,franc,26061987,roadster,stone55,drifter,hookem,hellboy,1234qw,cbr900rr,sinned,good123654,storm1,gypsy,zebra,zachary1,toejam,buceta,02021979,testing1,redfox,lineage,mike1,highbury,koroleva,nathan1,washingt,02061982,02091985,vintage,redbaron,dalshe,mykids,11051987,macbeth,julien,james123,krasotka,111000,10011986,987123,pipeline,tatarin,sensei,codered,komodo,frogman,7894561230,nascar24,juicy,01031988,redrose,mydick,pigeon,tkbpfdtnf,smirnoff,1215,spam,winner1,flyfish,moskva,81fukkc,21031987,olesya,starligh,summer99,13041988,fishhead,freesex,super12,06061986,azazel,scoobydoo,02021981,cabron,yogibear,sheba1,konstantin,tranny,chilli,terminat,ghbywtccf,slowhand,soccer12,cricket1,fuckhead,1002,seagull,achtung,blam,bigbob,bdsm,nostromo,survivor,cnfybckfd,lemonade,boomer1,rainbow1,rober,irinka,cocksuck,peaches1,itsme,sugar1,zodiac,upyours,dinara,135791,sunny1,chiara,johnson1,02041989,solitude,habibi,sushi,markiz,smoke1,rockies,catwoman,johnny1,qwerty7,bearcats,username,01011978,wanderer,ohshit,02101986,sigma,stephen1,paradigm,02011989,flanker,sanity,jsbach,spotty,bologna,fantasia,chevys,borabora,cocker,74108520,123ewq,12021988,01061990,gtnhjdbx,02071981,01011960,sundevil,3000gt,mustang6,gagging,maggi,armstron,yfnfkb,13041987,revolver,02021976,trouble1,madcat,jeremy1,jackass1,volkswag,30051985,corndog,pool6123,marines1,03041991,pizza1,piggy,sissy,02031979,sunfire,angelus,undead,24061986,14061991,wildbill,shinobi,45m2do5bs,123qwer,21011989,cleopatr,lasvega,hornets,amorcit,11081989,coventry,nirvana1,destin,sidekick,20061988,02081983,gbhfvblf,sneaky,bmw325,22021989,nfytxrf,sekret,kalina,zanzibar,hotone,qazws,wasabi,heidi1,highlander,blues1,hitachi,paolo,23041987,slayer1,simba1,02011981,tinkerbe,kieran,01121986,172839,boiler,1125,bluesman,waffle,asdfgh01,threesom,conan,1102,reflex,18011987,nautilus,everlast,fatty,vader1,01071986,cyborg,ghbdtn123,birddog,rubble,02071983,suckers,02021973,skyhawk,12qw12qw,dakota1,joebob,nokia6233,woodie,longdong,lamer,troll,ghjcnjgfhjkm,420000,boating,nitro,armada,messiah,1031,penguin1,02091989,americ,02071989,redeye,asdqwe123,07071987,monty1,goten,spikey,sonata,635241,tokiohotel,sonyericsson,citroen,compaq1,1812,umpire,belmont,jonny,pantera1,nudes,palmtree,14111986,fenway,bighead,razor,gryphon,andyod22,aaaaa1,taco,10031988,enterme,malachi,dogface,reptile,01041985,dindom,handball,marseille,candy1,19101987,torino,tigge,matthias,viewsoni,13031987,stinker,evangelion,24011985,123456123,rampage,sandrine,02081980,thecrow,astral,28041987,sprinter,private1,seabee,shibby,02101988,25081988,fearless,junkie,01091987,aramis,antelope,draven,fuck1,mazda6,eggman,02021990,barselona,buddy123,19061987,fyfnjkbq,nancy1,12121990,10071987,sluggo,kille,hotties,irishka,zxcasdqwe123,shamus,fairlane,honeybee,soccer10,13061986,fantomas,17051988,10051987,20111986,gladiato,karachi,gambler,gordo,01011995,biatch,matthe,25800852,papito,excite,buffalo1,bobdole,cheshire,player1,28021992,thewho,10101986,pinky1,mentor,tomahawk,brown1,03041986,bismillah,bigpoppa,ijrjkfl,01121988,runaway,08121986,skibum,studman,helper,squeak,holycow,manfred,harlem,glock,gideon,987321,14021985,yellow1,wizard1,margarit,success1,medved,sf49ers,lambda,pasadena,johngalt,quasar,1776,02031980,coldplay,amand,playa,bigpimp,04041991,capricorn,elefant,sweetness,bruce1,luca,dominik,10011990,biker,09051945,datsun,elcamino,trinitro,malice,audi,voyager1,02101983,joe123,carpente,spartan1,mario1,glamour,diaper,12121985,22011988,winter1,asimov,callisto,nikolai,pebble,02101981,vendetta,david123,boytoy,11061985,02031989,iloveyou1,stupid1,cayman,casper1,zippo,yamahar1,wildwood,foxylady,calibra,02041980,27061988,dungeon,leedsutd,30041986,11051990,bestbuy,antares,dominion,24680,01061986,skillet,enforcer,derparol,01041988,196969,29071983,f00tball,purple1,mingus,25031987,21031990,remingto,giggles,klaste,3x7pxr,01011994,coolcat,29051989,megane,20031987,02051980,04041988,synergy,0000007,macman,iforget,adgjmp,vjqgfhjkm,28011987,rfvfcenhf,16051989,25121987,16051987,rogue,mamamia,08051990,20091991,1210,carnival,bolitas,paris1,dmitriy,dimas,05051989,papillon,knuckles,29011985,hola,tophat,28021990,100500,cutiepie,devo,415263,ducks,ghjuhfvvf,asdqwe,22021986,freefall,parol,02011983,zarina,buste,vitamin,warez,bigones,17061988,baritone,jamess,twiggy,mischief,bitchy,hetfield,1003,dontknow,grinch,sasha_007,18061990,12031985,12031987,calimero,224466,letmei,15011987,acmilan,alexandre,02031977,08081988,whiteboy,21051991,barney1,02071978,money123,18091985,bigdawg,02031988,cygnusx1,zoloto,31011987,firefigh,blowfish,screamer,lfybbk,20051988,chelse,11121986,01031989,harddick,sexylady,30031988,02041974,auditt,pizdec,kojak,kfgjxrf,20091988,123456ru,wp2003wp,1204,15051990,slugger,kordell1,03031986,swinging,01011974,02071979,rockie,dimples,1234123,1dragon,trucking,rusty2,roger1,marijuana,kerouac,02051978,08031985,paco,thecure,keepout,kernel,noname123,13121985,francisc,bozo,02011982,22071986,02101979,obsidian,12345qw,spud,tabasco,02051985,jaguars,dfktynby,kokomo,popova,notused,sevens,4200,magneto,02051976,roswell,15101986,21101986,lakeside,bigbang,aspen,little1,14021986,loki,suckmydick,strawber,carlos1,nokian73,dirty1,joshu,25091987,16121987,02041975,advent,17011987,slimshady,whistler,10101990,stryker,22031984,15021985,01031985,blueball,26031988,ksusha,bahamut,robocop,w_pass,chris123,impreza,prozac,bookie,bricks,13021990,alice1,cassandr,11111q,john123,4ever,korova,02051973,142857,25041988,paramedi,eclipse1,salope,07091990,1124,darkangel,23021986,999666,nomad,02051981,smackdow,01021990,yoyoma,argentin,moonligh,57chevy,bootys,hardone,capricor,galant,spanker,dkflbr,24111989,magpies,krolik,21051988,cevthrb,cheddar,22041988,bigbooty,scuba1,qwedsa,duffman,bukkake,acura,johncena,sexxy,p@ssw0rd,258369,cherries,12345s,asgard,leopold,fuck123,mopar,lalakers,dogpound,matrix1,crusty,spanner,kestrel,fenris,universa,peachy,assasin,lemmein,eggplant,hejsan,canucks,wendy1,doggy1,aikman,tupac,turnip,godlike,fussball,golden1,19283746,april1,django,petrova,captain1,vincent1,ratman,taekwondo,chocha,serpent,perfect1,capetown,vampir,amore,gymnast,timeout,nbvjatq,blue32,ksenia,k.lvbkf,nazgul,budweiser,clutch,mariya,sylveste,02051972,beaker,cartman1,q11111,sexxx,forever1,loser1,marseill,magellan,vehpbr,sexgod,jktxrf,hallo123,132456,liverpool1,southpaw,seneca,camden,357159,camero,tenchi,johndoe,145236,roofer,741963,vlad,02041978,fktyrf,zxcv123,wingnut,wolfpac,notebook,pufunga7782,brandy1,biteme1,goodgirl,redhat,02031978,challeng,millenium,hoops,maveric,noname,angus1,gaell,onion,olympus,sabrina1,ricard,sixpack,gratis,gagged,camaross,hotgirls,flasher,02051977,bubba123,goldfing,moonshin,gerrard,volkov,sonyfuck,mandrake,258963,tracer,lakers1,asians,susan1,money12,helmut,boater,diablo2,1234zxcv,dogwood,bubbles1,happy2,randy1,aries,beach1,marcius2,navigator,goodie,hellokitty,fkbyjxrf,earthlink,lookout,jumbo,opendoor,stanley1,marie1,12345m,07071977,ashle,wormix,murzik,02081976,lakewood,bluejays,loveya,commande,gateway2,peppe,01011976,7896321,goth,oreo,slammer,rasmus,faith1,knight1,stone1,redskin,ironmaiden,gotmilk,destiny1,dejavu,1master,midnite,timosha,espresso,delfin,toriamos,oberon,ceasar,markie,1a2s3d,ghhh47hj7649,vjkjrj,daddyo,dougie,disco,auggie,lekker,therock1,ou8123,start1,noway,p4ssw0rd,shadow12,333444,saigon,2fast4u,capecod,23skidoo,qazxcv,beater,bremen,aaasss,roadrunner,peace1,12345qwer,02071975,platon,bordeaux,vbkfirf,135798642,test12,supernov,beatles1,qwert40,optimist,vanessa1,prince1,ilovegod,nightwish,natasha1,alchemy,bimbo,blue99,patches1,gsxr1000,richar,hattrick,hott,solaris,proton,nevets,enternow,beavis1,amigos,159357a,ambers,lenochka,147896,suckdick,shag,intercourse,blue1234,spiral,02061977,tosser,ilove,02031975,cowgirl,canuck,q2w3e4,munch,spoons,waterboy,123567,evgeniy,savior,zasada,redcar,mamacita,terefon,globus,doggies,htubcnhfwbz,1008,cuervo,suslik,azertyui,limewire,houston1,stratfor,steaua,coors,tennis1,12345qwerty,stigmata,derf,klondike,patrici,marijuan,hardball,odyssey,nineinch,boston1,pass1,beezer,sandr,charon,power123,a1234,vauxhall,875421,awesome1,reggae,boulder,funstuff,iriska,krokodil,rfntymrf,sterva,champ1,bball,peeper,m123456,toolbox,cabernet,sheepdog,magic32,pigpen,02041977,holein1,lhfrjy,banan,dabomb,natalie1,jennaj,montana1,joecool,funky,steven1,ringo,junio,sammy123,qqqwww,baltimor,footjob,geezer,357951,mash4077,cashmone,pancake,monic,grandam,bongo,yessir,gocubs,nastia,vancouve,barley,dragon69,watford,ilikepie,02071976,laddie,123456789m,hairball,toonarmy,pimpdadd,cvthnm,hunte,davinci,lback,sophie1,firenze,q1234567,admin1,bonanza,elway7,daman,strap,azert,wxcvbn,afrika,theforce,123456t,idefix,wolfen,houdini,scheisse,default,beech,maserati,02061976,sigmachi,dylan1,bigdicks,eskimo,mizzou,02101976,riccardo,egghead,111777,kronos,ghbrjk,chaos1,jomama,rfhnjirf,rodeo,dolemite,cafc91,nittany,pathfind,mikael,password9,vqsablpzla,purpl,gabber,modelsne,myxworld,hellsing,punker,rocknrol,fishon,fuck69,02041976,lolol,twinkie,tripleh,cirrus,redbone,killer123,biggun,allegro,gthcbr,smith1,wanking,bootsy,barry1,mohawk,koolaid,5329,futurama,samoht,klizma,996633,lobo,honeys,peanut1,556677,zxasqw,joemama,javelin,samm,223322,sandra1,flicks,montag,nataly,3006,tasha1,1235789,dogbone,poker1,p0o9i8u7,goodday,smoothie,toocool,max333,metroid,archange,vagabond,billabon,22061941,tyson1,02031973,darkange,skateboard,evolutio,morrowind,wizards,frodo1,rockin,cumslut,plastics,zaqwsxcde,5201314,doit,outback,bumble,dominiqu,persona,nevermore,alinka,02021971,forgetit,sexo,all4one,c2h5oh,petunia,sheeba,kenny1,elisabet,aolsucks,woodstoc,pumper,02011975,fabio,granada,scrapper,123459,minimoni,q123456789,breaker,1004,02091976,ncc74656,slimshad,friendster,austin31,wiseguy,donner,dilbert1,132465,blackbird,buffet,jellybean,barfly,behappy,01011971,carebear,fireblad,02051975,boxcar,cheeky,kiteboy,hello12,panda1,elvisp,opennow,doktor,alex12,02101977,pornking,flamengo,02091975,snowbird,lonesome,robin1,11111a,weed420,baracuda,bleach,12345abc,nokia1,metall,singapor,mariner,herewego,dingo,tycoon,cubs,blunts,proview,123456789d,kamasutra,lagnaf,vipergts,navyseal,starwar,masterbate,wildone,peterbil,cucumber,butkus,123qwert,climax,deniro,gotribe,cement,scooby1,summer69,harrier,shodan,newyear,02091977,starwars1,romeo1,sedona,harald,doubled,sasha123,bigguns,salami,awnyce,kiwi,homemade,pimping,azzer,bradley1,warhamme,linkin,dudeman,qwe321,pinnacle,maxdog,flipflop,lfitymrf,fucker1,acidburn,esquire,sperma,fellatio,jeepster,thedon,sexybitch,pookey,spliff,widget,vfntvfnbrf,trinity1,mutant,samuel1,meliss,gohome,1q2q3q,mercede,comein,grin,cartoons,paragon,henrik,rainyday,pacino,senna,bigdog1,alleycat,12345qaz,narnia,mustang2,tanya1,gianni,apollo11,wetter,clovis,escalade,rainbows,freddy1,smart1,daisydog,s123456,cocksucker,pushkin,lefty,sambo,fyutkjxtr,hiziad,boyz,whiplash,orchard,newark,adrenalin,1598753,bootsie,chelle,trustme,chewy,golfgti,tuscl,ambrosia,5wr2i7h8,penetration,shonuf,jughead,payday,stickman,gotham,kolokol,johnny5,kolbasa,stang,puppydog,charisma,gators1,mone,jakarta,draco,nightmar,01011973,inlove,laetitia,02091973,tarpon,nautica,meadow,0192837465,luckyone,14881488,chessie,goldeney,tarakan,69camaro,bungle,wordup,interne,fuckme2,515000,dragonfl,sprout,02081974,gerbil,bandit1,02071971,melanie1,phialpha,camber,kathy1,adriano,gonzo1,10293847,bigjohn,bismarck,7777777a,scamper,12348765,rabbits,222777,bynthytn,dima123,alexander1,mallorca,dragster,favorite6,beethove,burner,cooper1,fosters,hello2,normandy,777999,sebring,1michael,lauren1,blake1,killa,02091971,nounours,trumpet1,thumper1,playball,xantia,rugby1,rocknroll,guillaum,angela1,strelok,prosper,buttercup,masterp,dbnfkbr,cambridg,venom,treefrog,lumina,1234566,supra,sexybabe,freee,shen,frogs,driller,pavement,grace1,dicky,checker,smackdown,pandas,cannibal,asdffdsa,blue42,zyjxrf,nthvbyfnjh,melrose,neon,jabber,gamma,369258147,aprilia,atticus,benessere,catcher,skipper1,azertyuiop,sixty9,thierry,treetop,jello,melons,123456789qwe,tantra,buzzer,catnip,bouncer,computer1,sexyone,ananas,young1,olenka,sexman,mooses,kittys,sephiroth,contra,hallowee,skylark,sparkles,777333,1qazxsw23edc,lucas1,q1w2e3r,gofast,hannes,amethyst,ploppy,flower2,hotass,amatory,volleyba,dixie1,bettyboo,ticklish,02061974,frenchy,phish1,murphy1,trustno,02061972,leinad,mynameis,spooge,jupiter1,hyundai,frosch,junkmail,abacab,marbles,32167,casio,sunshine1,wayne1,longhair,caster,snicker,02101973,gannibal,skinhead,hansol,gatsby,segblue2,montecar,plato,gumby,kaboom,matty,bosco1,888999,jazzy,panter,jesus123,charlie2,giulia,candyass,sex69,travis1,farmboy,special1,02041973,letsdoit,password01,allison1,abcdefg1,notredam,ilikeit,789654123,liberty1,rugger,uptown,alcatraz,123456w,airman,007bond,navajo,kenobi,terrier,stayout,grisha,frankie1,fluff,1qazzaq1,1234561,virginie,1234568,tango1,werdna,octopus,fitter,dfcbkbcf,blacklab,115599,montrose,allen1,supernova,frederik,ilovepussy,justice1,radeon,playboy2,blubber,sliver,swoosh,motocros,lockdown,pearls,thebear,istheman,pinetree,biit,1234rewq,rustydog,tampabay,titts,babycake,jehovah,vampire1,streaming,collie,camil,fidelity,calvin1,stitch,gatit,restart,puppy1,budgie,grunt,capitals,hiking,dreamcas,zorro1,321678,riffraff,makaka,playmate,napalm,rollin,amstel,zxcvb123,samanth,rumble,fuckme69,jimmys,951357,pizzaman,1234567899,tralala,delpiero,alexi,yamato,itisme,1million,vfndtq,kahlua,londo,wonderboy,carrots,tazz,ratboy,rfgecnf,02081973,nico,fujitsu,tujhrf,sergbest,blobby,02051970,sonic1,1357911,smirnov,video1,panhead,bucky,02031974,44332211,duffer,cashmoney,left4dead,bagpuss,salman,01011972,titfuck,66613666,england1,malish,dresden,lemans,darina,zapper,123456as,123456qqq,met2002,02041972,redstar,blue23,1234509876,pajero,booyah,please1,tetsuo,semper,finder,hanuman,sunlight,123456n,02061971,treble,cupoi,password99,dimitri,3ip76k2,popcorn1,lol12345,stellar,nympho,shark1,keith1,saskia,bigtruck,revoluti,rambo1,asd222,feelgood,phat,gogators,bismark,cola,puck,furball,burnout,slonik,bowtie,mommy1,icecube,fabienn,mouser,papamama,rolex,giants1,blue11,trooper1,momdad,iklo,morten,rhubarb,gareth,123456d,blitz,canada1,r2d2,brest,tigercat,usmarine,lilbit,benny1,azrael,lebowski,12345r,madagaskar,begemot,loverman,dragonballz,italiano,mazda3,naughty1,onions,diver1,cyrano,capcom,asdfg123,forlife,fisherman,weare138,requiem,mufasa,alpha123,piercing,hellas,abracadabra,duckman,caracas,macintos,02011971,jordan2,crescent,fduecn,hogtied,eatmenow,ramjet,18121812,kicksass,whatthe,discus,rfhfvtkmrf,rufus1,sqdwfe,mantle,vegitto,trek,dan123,paladin1,rudeboy,liliya,lunchbox,riversid,acapulco,libero,dnsadm,maison,toomuch,boobear,hemlock,sextoy,pugsley,misiek,athome,migue,altoids,marcin,123450,rhfcfdbwf,jeter2,rhinos,rjhjkm,mercury1,ronaldinho,shampoo,makayla,kamilla,masterbating,tennesse,holger,john1,matchbox,hores,poptart,parlament,goodyear,asdfgh1,02081970,hardwood,alain,erection,hfytnrb,highlife,implants,benjami,dipper,jeeper,bendover,supersonic,babybear,laserjet,gotenks,bama,natedogg,aol123,pokemo,rabbit1,raduga,sopranos,cashflow,menthol,pharao,hacking,334455,ghjcnbnenrf,lizzy,muffin1,pooky,penis1,flyer,gramma,dipset,becca,ireland1,diana1,donjuan,pong,ziggy1,alterego,simple1,cbr900,logger,111555,claudia1,cantona7,matisse,ljxtymrf,victori,harle,mamas,encore,mangos,iceman1,diamon,alexxx,tiamat,5000,desktop,mafia,smurf,princesa,shojou,blueberr,welkom,maximka,123890,123q123,tammy1,bobmarley,clips,demon666,ismail,termite,laser1,missie,altair,donna1,bauhaus,trinitron,mogwai,flyers88,juniper,nokia5800,boroda,jingles,qwerasdfzxcv,shakur,777666,legos,mallrats,1qazxsw,goldeneye,tamerlan,julia1,backbone,spleen,49ers,shady,darkone,medic1,justi,giggle,cloudy,aisan,douche,parkour,bluejay,huskers1,redwine,1qw23er4,satchmo,1231234,nineball,stewart1,ballsack,probes,kappa,amiga,flipper1,dortmund,963258,trigun,1237895,homepage,blinky,screwy,gizzmo,belkin,chemist,coolhand,chachi,braves1,thebest,greedisgood,pro100,banana1,101091m,123456g,wonderfu,barefeet,8inches,1111qqqq,kcchiefs,qweasdzxc123,metal1,jennifer1,xian,asdasd123,pollux,cheerleaers,fruity,mustang5,turbos,shopper,photon,espana,hillbill,oyster,macaroni,gigabyte,jesper,motown,tuxedo,buster12,triplex,cyclones,estrell,mortis,holla,456987,fiddle,sapphic,jurassic,thebeast,ghjcnjq,baura,spock1,metallica1,karaoke,nemrac58,love1234,02031970,flvbybcnhfnjh,frisbee,diva,ajax,feathers,flower1,soccer11,allday,mierda,pearl1,amature,marauder,333555,redheads,womans,egorka,godbless,159263,nimitz,aaaa1111,sashka,madcow,socce,greywolf,baboon,pimpdaddy,123456789r,reloaded,lancia,rfhfylfi,dicker,placid,grimace,22446688,olemiss,whores,culinary,wannabe,maxi,1234567aa,amelie,riley1,trample,phantom1,baberuth,bramble,asdfqwer,vides,4you,abc123456,taichi,aztnm,smother,outsider,hakr,blackhawk,bigblack,girlie,spook,valeriya,gianluca,freedo,1q2q3q4q,handbag,lavalamp,cumm,pertinant,whatup,nokia123,redlight,patrik,111aaa,poppy1,dfytxrf,aviator,sweeps,kristin1,cypher,elway,yinyang,access1,poophead,tucson,noles1,monterey,waterfal,dank,dougal,918273,suede,minnesot,legman,bukowski,ganja,mammoth,riverrat,asswipe,daredevi,lian,arizona1,kamikadze,alex1234,smile1,angel2,55bgates,bellagio,0001,wanrltw,stiletto,lipton,arsena,biohazard,bbking,chappy,tetris,as123456,darthvad,lilwayne,nopassword,7412369,123456789987654321,natchez,glitter,14785236,mytime,rubicon,moto,pyon,wazzup,tbird,shane1,nightowl,getoff,beckham7,trueblue,hotgirl,nevermin,deathnote,13131,taffy,bigal,copenhag,apricot,gallaries,dtkjcbgtl,totoro,onlyone,civicsi,jesse1,baby123,sierra1,festus,abacus,sickboy,fishtank,fungus,charle,golfpro,teensex,mario66,seaside,aleksei,rosewood,blackberry,1020304050,bedlam,schumi,deerhunt,contour,darkelf,surveyor,deltas,pitchers,741258963,dipstick,funny1,lizzard,112233445566,jupiter2,softtail,titman,greenman,z1x2c3v4b5,smartass,12345677,notnow,myworld,nascar1,chewbacc,nosferatu,downhill,dallas22,kuan,blazers,whales,soldat,craving,powerman,yfcntyf,hotrats,cfvceyu,qweasdzx,princess1,feline,qqwwee,chitown,1234qaz,mastermind,114477,dingbat,care1839,standby,kismet,atreides,dogmeat,icarus,monkeyboy,alex1,mouses,nicetits,sealteam,chopper1,crispy,winter99,rrpass1,myporn,myspace1,corazo,topolino,ass123,lawman,muffy,orgy,1love,passord,hooyah,ekmzyf,pretzel,amonra,nestle,01011950,jimbeam,happyman,z12345,stonewal,helios,manunited,harcore,dick1,gaymen,2hot4u,light1,qwerty13,kakashi,pjkjnj,alcatel,taylo,allah,buddydog,ltkmaby,mongo,blonds,start123,audia6,123456v,civilwar,bellaco,turtles,mustan,deadspin,aaa123,fynjirf,lucky123,tortoise,amor,summe,waterski,zulu,drag0n,dtxyjcnm,gizmos,strife,interacial,pusyy,goose1,bear1,equinox,matri,jaguar1,tobydog,sammys,nachos,traktor,bryan1,morgoth,444555,dasani,miami1,mashka,xxxxxx1,ownage,nightwin,hotlips,passmast,cool123,skolko,eldiablo,manu,1357908642,screwyou,badabing,foreplay,hydro,kubrick,seductive,demon1,comeon,galileo,aladdin,metoo,happines,902100,mizuno,caddy,bizzare,girls1,redone,ohmygod,sable,bonovox,girlies,hamper,opus,gizmodo1,aaabbb,pizzahut,999888,rocky2,anton1,kikimora,peavey,ocelot,a1a2a3a4,2wsx3edc,jackie1,solace,sprocket,galary,chuck1,volvo1,shurik,poop123,locutus,virago,wdtnjxtr,tequier,bisexual,doodles,makeitso,fishy,789632145,nothing1,fishcake,sentry,libertad,oaktree,fivestar,adidas1,vegitta,mississi,spiffy,carme,neutron,vantage,agassi,boners,123456789v,hilltop,taipan,barrage,kenneth1,fister,martian,willem,lfybkf,bluestar,moonman,ntktdbpjh,paperino,bikers,daffy,benji,quake,dragonfly,suckcock,danilka,lapochka,belinea,calypso,asshol,camero1,abraxas,mike1234,womam,q1q2q3q4q5,youknow,maxpower,pic's,audi80,sonora,raymond1,tickler,tadpole,belair,crazyman,finalfantasy,999000,jonatha,paisley,kissmyas,morgana,monste,mantra,spunk,magic123,jonesy,mark1,alessand,741258,baddest,ghbdtnrfrltkf,zxccxz,tictac,augustin,racers,7grout,foxfire,99762000,openit,nathanie,1z2x3c4v5b,seadog,gangbanged,lovehate,hondacbr,harpoon,mamochka,fisherma,bismilla,locust,wally1,spiderman1,saffron,utjhubq,123456987,20spanks,safeway,pisser,bdfyjd,kristen1,bigdick1,magenta,vfhujif,anfisa,friday13,qaz123wsx,0987654321q,tyrant,guan,meggie,kontol,nurlan,ayanami,rocket1,yaroslav,websol76,mutley,hugoboss,websolutions,elpaso,gagarin,badboys,sephirot,918273645,newuser,qian,edcrfv,booger1,852258,lockout,timoxa94,mazda323,firedog,sokolova,skydiver,jesus777,1234567890z,soulfly,canary,malinka,guillerm,hookers,dogfart,surfer1,osprey,india123,rhjkbr,stoppedby,nokia5530,123456789o,blue1,werter,divers,3000,123456f,alpina,cali,whoknows,godspeed,986532,foreskin,fuzzy1,heyyou,didier,slapnuts,fresno,rosebud1,sandman1,bears1,blade1,honeybun,queen1,baronn,pakista,philipp,9111961,topsecret,sniper1,214365,slipper,letsfuck,pippen33,godawgs,mousey,qw123456,scrotum,loveis,lighthou,bp2002,nancy123,jeffrey1,susieq,buddy2,ralphie,trout1,willi,antonov,sluttey,rehbwf,marty1,darian,losangeles,letme1n,12345d,pusssy,godiva,ender,golfnut,leonidas,a1b2c3d4e5,puffer,general1,wizzard,lehjxrf,racer1,bigbucks,cool12,buddys,zinger,esprit,vbienrf,josep,tickling,froggie,987654321a,895623,daddys,crumbs,gucci,mikkel,opiate,tracy1,christophe,came11,777555,petrovich,humbug,dirtydog,allstate,horatio,wachtwoord,creepers,squirts,rotary,bigd,georgia1,fujifilm,2sweet,dasha,yorkie,slimjim,wiccan,kenzie,system1,skunk,b12345,getit,pommes,daredevil,sugars,bucker,piston,lionheart,1bitch,515051,catfight,recon,icecold,fantom,vodafone,kontakt,boris1,vfcnth,canine,01011961,valleywa,faraon,chickenwing101,qq123456,livewire,livelife,roosters,jeepers,ilya1234,coochie,pavlik,dewalt,dfhdfhf,architec,blackops,1qaz2wsx3edc4rfv,rhfcjnf,wsxedc,teaser,sebora,25252,rhino1,ankara,swifty,decimal,redleg,shanno,nermal,candies,smirnova,dragon01,photo1,ranetki,a1s2d3f4g5,axio,wertzu,maurizio,6uldv8,zxcvasdf,punkass,flowe,graywolf,peddler,3rjs1la7qe,mpegs,seawolf,ladyboy,pianos,piggies,vixen,alexus,orpheus,gdtrfb,z123456,macgyver,hugetits,ralph1,flathead,maurici,mailru,goofball,nissan1,nikon,stopit,odin,big1,smooch,reboot,famil,bullit,anthony7,gerhard,methos,124038,morena,eagle2,jessica2,zebras,getlost,gfynthf,123581321,sarajevo,indon,comets,tatjana,rfgbnjirf,joystick,batman12,123456c,sabre,beerme,victory1,kitties,1475369,badboy1,booboo1,comcast,slava,squid,saxophon,lionhear,qaywsx,bustle,nastena,roadway,loader,hillside,starlight,24681012,niggers,access99,bazooka,molly123,blackice,bandi,cocacol,nfhfrfy,timur,muschi,horse1,quant4307s,squerting,oscars,mygirls,flashman,tangerin,goofy1,p0o9i8,housewifes,newness,monkey69,escorpio,password11,hippo,warcraft3,qazxsw123,qpalzm,ribbit,ghbdtndctv,bogota,star123,258000,lincoln1,bigjim,lacoste,firestorm,legenda,indain,ludacris,milamber,1009,evangeli,letmesee,a111111,hooters1,bigred1,shaker,husky,a4tech,cnfkrth,argyle,rjhjdf,nataha,0o9i8u7y,gibson1,sooners1,glendale,archery,hoochie,stooge,aaaaaa1,scorpions,school1,vegas1,rapier,mike23,bassoon,groupd2013,macaco,baker1,labia,freewill,santiag,silverado,butch1,vflfufcrfh,monica1,rugrat,cornhole,aerosmit,bionicle,gfgfvfvf,daniel12,virgo,fmale,favorite2,detroit1,pokey,shredder,baggies,wednesda,cosmo1,mimosa,sparhawk,firehawk,romario,911turbo,funtimes,fhntvrf,nexus6,159753456,timothy1,bajingan,terry1,frenchie,raiden,1mustang,babemagnet,74123698,nadejda,truffles,rapture,douglas1,lamborghini,motocross,rjcvjc,748596,skeeter1,dante1,angel666,telecom,carsten,pietro,bmw318,astro1,carpediem,samir,orang,helium,scirocco,fuzzball,rushmore,rebelz,hotspur,lacrimosa,chevys10,madonna1,domenico,yfnfirf,jachin,shelby1,bloke,dawgs,dunhill,atlanta1,service1,mikado,devilman,angelit,reznor,euphoria,lesbain,checkmat,browndog,phreak,blaze1,crash1,farida,mutter,luckyme,horsemen,vgirl,jediknig,asdas,cesare,allnight,rockey,starlite,truck1,passfan,close-up,samue,cazzo,wrinkles,homely,eatme1,sexpot,snapshot,dima1995,asthma,thetruth,ducky,blender,priyanka,gaucho,dutchman,sizzle,kakarot,651550,passcode,justinbieber,666333,elodie,sanjay,110442,alex01,lotus1,2300mj,lakshmi,zoomer,quake3,12349876,teapot,12345687,ramada,pennywis,striper,pilot1,chingon,optima,nudity,ethan1,euclid,beeline,loyola,biguns,zaq12345,bravo1,disney1,buffa,assmunch,vivid,6661313,wellingt,aqwzsx,madala11,9874123,sigmar,pictere,tiptop,bettyboop,dinero,tahiti,gregory1,bionic,speed1,fubar1,lexus1,denis1,hawthorn,saxman,suntzu,bernhard,dominika,camaro1,hunter12,balboa,bmw2002,seville,diablo1,vfhbyjxrf,1234abc,carling,lockerroom,punani,darth,baron1,vaness,1password,libido,picher,232425,karamba,futyn007,daydream,11001001,dragon123,friends1,bopper,rocky123,chooch,asslover,shimmer,riddler,openme,tugboat,sexy123,midori,gulnara,christo,swatch,laker,offroad,puddles,hackers,mannheim,manager1,horseman,roman1,dancer1,komputer,pictuers,nokia5130,ejaculation,lioness,123456y,evilone,nastenka,pushok,javie,lilman,3141592,mjolnir,toulouse,pussy2,bigworm,smoke420,fullback,extensa,dreamcast,belize,delboy,willie1,casablanca,csyjxtr,ricky1,bonghit,salvator,basher,pussylover,rosie1,963258741,vivitron,cobra427,meonly,armageddon,myfriend,zardoz,qwedsazxc,kraken,fzappa,starfox,333999,illmatic,capoeira,weenie,ramzes,freedom2,toasty,pupkin,shinigami,fhvfutljy,nocturne,churchil,thumbnils,tailgate,neworder,sexymama,goarmy,cerebus,michelle1,vbifyz,surfsup,earthlin,dabulls,basketbal,aligator,mojojojo,saibaba,welcome2,wifes,wdtnjr,12345w,slasher,papabear,terran,footman,hocke,153759,texans,tom123,sfgiants,billabong,aassdd,monolith,xxx777,l3tm31n,ticktock,newone,hellno,japanees,contortionist,admin123,scout1,alabama1,divx1,rochard,privat,radar1,bigdad,fhctybq,tortuga,citrus,avanti,fantasy1,woodstock,s12345,fireman1,embalmer,woodwork,bonzai,konyor,newstart,jigga,panorama,goats,smithy,rugrats,hotmama,daedalus,nonstop,fruitbat,lisenok,quaker,violator,12345123,my3sons,cajun,fraggle,gayboy,oldfart,vulva,knickerless,orgasms,undertow,binky,litle,kfcnjxrf,masturbation,bunnie,alexis1,planner,transexual,sparty,leeloo,monies,fozzie,stinger1,landrove,anakonda,scoobie,yamaha1,henti,star12,rfhlbyfk,beyonce,catfood,cjytxrf,zealots,strat,fordtruc,archangel,silvi,sativa,boogers,miles1,bigjoe,tulip,petite,greentea,shitter,jonboy,voltron,morticia,evanescence,3edc4rfv,longshot,windows1,serge,aabbcc,starbucks,sinful,drywall,prelude1,www123,camel1,homebrew,marlins,123412,letmeinn,domini,swampy,plokij,fordf350,webcam,michele1,bolivi,27731828,wingzero,qawsedrftg,shinji,sverige,jasper1,piper1,cummer,iiyama,gocats,amour,alfarome,jumanji,mike69,fantasti,1monkey,w00t88,shawn1,lorien,1a2s3d4f5g,koleso,murph,natascha,sunkist,kennwort,emine,grinder,m12345,q1q2q3q4,cheeba,money2,qazwsxedc1,diamante,prosto,pdiddy,stinky1,gabby1,luckys,franci,pornographic,moochie,gfhjdjp,samdog,empire1,comicbookdb,emili,motdepasse,iphone,braveheart,reeses,nebula,sanjose,bubba2,kickflip,arcangel,superbow,porsche911,xyzzy,nigger1,dagobert,devil1,alatam,monkey2,barbara1,12345v,vfpfafrf,alessio,babemagn,aceman,arrakis,kavkaz,987789,jasons,berserk,sublime1,rogue1,myspace,buckwhea,csyekz,pussy4me,vette1,boots1,boingo,arnaud,budlite,redstorm,paramore,becky1,imtheman,chango,marley1,milkyway,666555,giveme,mahalo,lux2000,lucian,paddy,praxis,shimano,bigpenis,creeper,newproject2004,rammstei,j3qq4h7h2v,hfljcnm,lambchop,anthony2,bugman,gfhjkm12,dreamer1,stooges,cybersex,diamant,cowboyup,maximus1,sentra,615243,goethe,manhatta,fastcar,selmer,1213141516,yfnfitymrf,denni,chewey,yankee1,elektra,123456789p,trousers,fishface,topspin,orwell,vorona,sodapop,motherfu,ibilltes,forall,kookie,ronald1,balrog,maximilian,mypasswo,sonny1,zzxxcc,tkfkdg,magoo,mdogg,heeled,gitara,lesbos,marajade,tippy,morozova,enter123,lesbean,pounded,asd456,fialka,scarab,sharpie,spanky1,gstring,sachin,12345asd,princeto,hellohel,ursitesux,billows,1234kekc,kombat,cashew,duracell,kseniya,sevenof9,kostik,arthur1,corvet07,rdfhnbhf,songoku,tiberian,needforspeed,1qwert,dropkick,kevin123,panache,libra,a123456a,kjiflm,vfhnsirf,cntgfy,iamcool,narut,buffer,sk8ordie,urlaub,fireblade,blanked,marishka,gemini1,altec,gorillaz,chief1,revival47,ironman1,space1,ramstein,doorknob,devilmaycry,nemesis1,sosiska,pennstat,monday1,pioner,shevchenko,detectiv,evildead,blessed1,aggie,coffees,tical,scotts,bullwink,marsel,krypto,adrock,rjitxrf,asmodeus,rapunzel,theboys,hotdogs,deepthro,maxpayne,veronic,fyyeirf,otter,cheste,abbey1,thanos,bedrock,bartok,google1,xxxzzz,rodent,montecarlo,hernande,mikayla,123456789l,bravehea,12locked,ltymub,pegasus1,ameteur,saltydog,faisal,milfnew,momsuck,everques,ytngfhjkz,m0nkey,businessbabe,cooki,custard,123456ab,lbvjxrf,outlaws,753357,qwerty78,udacha,insider,chees,fuckmehard,shotokan,katya,seahorse,vtldtlm,turtle1,mike12,beebop,heathe,everton1,darknes,barnie,rbcekz,alisher,toohot,theduke,555222,reddog1,breezy,bulldawg,monkeyman,baylee,losangel,mastermi,apollo1,aurelie,zxcvb12345,cayenne,bastet,wsxzaq,geibcnbr,yello,fucmy69,redwall,ladybird,bitchs,cccccc1,rktjgfnhf,ghjdthrf,quest1,oedipus,linus,impalass,fartman,12345k,fokker,159753a,optiplex,bbbbbb1,realtor,slipkno,santacru,rowdy,jelena,smeller,3984240,ddddd1,sexyme,janet1,3698741,eatme69,cazzone,today1,poobear,ignatius,master123,newpass1,heather2,snoopdogg,blondinka,pass12,honeydew,fuckthat,890098890,lovem,goldrush,gecko,biker1,llama,pendejo,avalanche,fremont,snowman1,gandolf,chowder,1a2b3c4d5e,flyguy,magadan,1fuck,pingvin,nokia5230,ab1234,lothar,lasers,bignuts,renee1,royboy,skynet,12340987,1122334,dragrace,lovely1,22334455,booter,12345612,corvett,123456qq,capital1,videoes,funtik,wyvern,flange,sammydog,hulkster,13245768,not4you,vorlon,omegared,l58jkdjp!,filippo,123mudar,samadams,petrus,chris12,charlie123,123456789123,icetea,sunderla,adrian1,123qweas,kazanova,aslan,monkey123,fktyeirf,goodsex,123ab,lbtest,banaan,bluenose,837519,asd12345,waffenss,whateve,1a2a3a4a,trailers,vfhbirf,bhbcrf,klaatu,turk182,monsoon,beachbum,sunbeam,succes,clyde1,viking1,rawhide,bubblegum,princ,mackenzi,hershey1,222555,dima55,niggaz,manatee,aquila,anechka,pamel,bugsbunn,lovel,sestra,newport1,althor,hornyman,wakeup,zzz111,phishy,cerber,torrent,thething,solnishko,babel,buckeye1,peanu,ethernet,uncencored,baraka,665544,chris2,rb26dett,willy1,choppers,texaco,biggirl,123456b,anna2614,sukebe,caralho,callofduty,rt6ytere,jesus7,angel12,1money,timelord,allblack,pavlova,romanov,tequiero,yitbos,lookup,bulls23,snowflake,dickweed,barks,lever,irisha,firestar,fred1234,ghjnjnbg,danman,gatito,betty1,milhouse,kbctyjr,masterbaiting,delsol,papit,doggys,123698741,bdfyjdf,invictus,bloods,kayla1,yourmama,apple2,angelok,bigboy1,pontiac1,verygood,yeshua,twins2,porn4me,141516,rasta69,james2,bosshog,candys,adventur,stripe,djkjlz,dokken,austin316,skins,hogwarts,vbhevbh,navigato,desperado,xxx666,cneltyn,vasiliy,hazmat,daytek,eightbal,fred1,four20,74227422,fabia,aerosmith,manue,wingchun,boohoo,hombre,sanity72,goatboy,fuckm,partizan,avrora,utahjazz,submarin,pussyeat,heinlein,control1,costaric,smarty,chuan,triplets,snowy,snafu,teacher1,vangogh,vandal,evergree,cochise,qwerty99,pyramid1,saab900,sniffer,qaz741,lebron23,mark123,wolvie,blackbelt,yoshi,feeder,janeway,nutella,fuking,asscock,deepak,poppie,bigshow,housewife,grils,tonto,cynthia1,temptress,irakli,belle1,russell1,manders,frank123,seabass,gforce,songbird,zippy1,naught,brenda1,chewy1,hotshit,topaz,43046721,girfriend,marinka,jakester,thatsme,planeta,falstaff,patrizia,reborn,riptide,cherry1,shuan,nogard,chino,oasis1,qwaszx12,goodlife,davis1,1911a1,harrys,shitfuck,12345678900,russian7,007700,bulls1,porshe,danil,dolphi,river1,sabaka,gobigred,deborah1,volkswagen,miamo,alkaline,muffdive,1letmein,fkbyrf,goodguy,hallo1,nirvan,ozzie,cannonda,cvbhyjdf,marmite,germany1,joeblow,radio1,love11,raindrop,159852,jacko,newday,fathead,elvis123,caspe,citibank,sports1,deuce,boxter,fakepass,golfman,snowdog,birthday4,nonmembe,niklas,parsifal,krasota,theshit,1235813,maganda,nikita1,omicron,cassie1,columbo,buick,sigma1,thistle,bassin,rickster,apteka,sienna,skulls,miamor,coolgirl,gravis,1qazxc,virgini,hunter2,akasha,batma,motorcyc,bambino,tenerife,fordf250,zhuan,iloveporn,markiza,hotbabes,becool,fynjybyf,wapapapa,forme,mamont,pizda,dragonz,sharon1,scrooge,mrbill,pfloyd,leeroy,natedog,ishmael,777111,tecumseh,carajo,nfy.irf,0000000000o,blackcock,fedorov,antigone,feanor,novikova,bobert,peregrin,spartan117,pumkin,rayman,manuals,tooltime,555333,bonethug,marina1,bonnie1,tonyhawk,laracroft,mahalkita,18273645,terriers,gamer,hoser,littlema,molotok,glennwei,lemon1,caboose,tater,12345654321,brians,fritz1,mistral,jigsaw,fuckshit,hornyguy,southside,edthom,antonio1,bobmarle,pitures,ilikesex,crafty,nexus,boarder,fulcrum,astonvil,yanks1,yngwie,account1,zooropa,hotlegs,sammi,gumbo,rover1,perkele,maurolarastefy,lampard,357753,barracud,dmband,abcxyz,pathfinder,335577,yuliya,micky,jayman,asdfg12345,1596321,halcyon,rerfhtre,feniks,zaxscd,gotyoass,jaycee,samson1,jamesb,vibrate,grandpri,camino,colossus,davidb,mamo4ka,nicky1,homer123,pinguin,watermelon,shadow01,lasttime,glider,823762,helen1,pyramids,tulane,osama,rostov,john12,scoote,bhbyrf,gohan,galeries,joyful,bigpussy,tonka,mowgli,astalavista,zzz123,leafs,dalejr8,unicorn1,777000,primal,bigmama,okmijn,killzone,qaz12345,snookie,zxcvvcxz,davidc,epson,rockman,ceaser,beanbag,katten,3151020,duckhunt,segreto,matros,ragnar,699669,sexsexse,123123z,fuckyeah,bigbutts,gbcmrf,element1,marketin,saratov,elbereth,blaster1,yamahar6,grime,masha,juneau,1230123,pappy,lindsay1,mooner,seattle1,katzen,lucent,polly1,lagwagon,pixie,misiaczek,666666a,smokedog,lakers24,eyeball,ironhors,ametuer,volkodav,vepsrf,kimmy,gumby1,poi098,ovation,1q2w3,drinker,penetrating,summertime,1dallas,prima,modles,takamine,hardwork,macintosh,tahoe,passthie,chiks,sundown,flowers1,boromir,music123,phaedrus,albert1,joung,malakas,gulliver,parker1,balder,sonne,jessie1,domainlock2005,express1,vfkbyf,youandme,raketa,koala,dhjnvytyjub,nhfrnjh,testibil,ybrbnjc,987654321q,axeman,pintail,pokemon123,dogggg,shandy,thesaint,11122233,x72jhhu3z,theclash,raptors,zappa1,djdjxrf,hell666,friday1,vivaldi,pluto1,lance1,guesswho,jeadmi,corgan,skillz,skippy1,mango1,gymnastic,satori,362514,theedge,cxfcnkbdfz,sparkey,deicide,bagels,lololol,lemmings,r4e3w2q1,silve,staind,schnuffi,dazzle,basebal1,leroy1,bilbo1,luckie,qwerty2,goodfell,hermione,peaceout,davidoff,yesterda,killah,flippy,chrisb,zelda1,headless,muttley,fuckof,tittys,catdaddy,photog,beeker,reaver,ram1500,yorktown,bolero,tryagain,arman,chicco,learjet,alexei,jenna1,go2hell,12s3t4p55,momsanaladventure,mustang9,protoss,rooter,ginola,dingo1,mojave,erica1,1qazse4,marvin1,redwolf,sunbird,dangerou,maciek,girsl,hawks1,packard1,excellen,dashka,soleda,toonces,acetate,nacked,jbond007,alligator,debbie1,wellhung,monkeyma,supers,rigger,larsson,vaseline,rjnzhf,maripos,123456asd,cbr600rr,doggydog,cronic,jason123,trekker,flipmode,druid,sonyvaio,dodges,mayfair,mystuff,fun4me,samanta,sofiya,magics,1ranger,arcane,sixtynin,222444,omerta,luscious,gbyudby,bobcats,envision,chance1,seaweed,holdem,tomate,mensch,slicer,acura1,goochi,qweewq,punter,repoman,tomboy,never1,cortina,gomets,147896321,369852147,dogma,bhjxrf,loglatin,eragon,strato,gazelle,growler,885522,klaudia,payton34,fuckem,butchie,scorpi,lugano,123456789k,nichola,chipper1,spide,uhbujhbq,rsalinas,vfylfhby,longhorns,bugatti,everquest,!qaz2wsx,blackass,999111,snakeman,p455w0rd,fanatic,family1,pfqxbr,777vlad,mysecret,marat,phoenix2,october1,genghis,panties1,cooker,citron,ace123,1234569,gramps,blackcoc,kodiak1,hickory,ivanhoe,blackboy,escher,sincity,beaks,meandyou,spaniel,canon1,timmy1,lancaste,polaroid,edinburg,fuckedup,hotman,cueball,golfclub,gopack,bookcase,worldcup,dkflbvbhjdbx,twostep,17171717aa,letsplay,zolushka,stella1,pfkegf,kingtut,67camaro,barracuda,wiggles,gjhjkm,prancer,patata,kjifhf,theman1,romanova,sexyass,copper1,dobber,sokolov,pomidor,algernon,cadman,amoremio,william2,silly1,bobbys,hercule,hd764nw5d7e1vb1,defcon,deutschland,robinhood,alfalfa,machoman,lesbens,pandora1,easypay,tomservo,nadezhda,goonies,saab9000,jordyn,f15eagle,dbrecz,12qwerty,greatsex,thrawn,blunted,baywatch,doggystyle,loloxx,chevy2,january1,kodak,bushel,78963214,ub6ib9,zz8807zpl,briefs,hawker,224488,first1,bonzo,brent1,erasure,69213124,sidewind,soccer13,622521,mentos,kolibri,onepiece,united1,ponyboy,keksa12,wayer,mypussy,andrej,mischa,mille,bruno123,garter,bigpun,talgat,familia,jazzy1,mustang8,newjob,747400,bobber,blackbel,hatteras,ginge,asdfjkl;,camelot1,blue44,rebbyt34,ebony1,vegas123,myboys,aleksander,ijrjkflrf,lopata,pilsner,lotus123,m0nk3y,andreev,freiheit,balls1,drjynfrnt,mazda1,waterpolo,shibumi,852963,123bbb,cezer121,blondie1,volkova,rattler,kleenex,ben123,sanane,happydog,satellit,qazplm,qazwsxedcrfvtgb,meowmix,badguy,facefuck,spice1,blondy,major1,25000,anna123,654321a,sober1,deathrow,patterso,china1,naruto1,hawkeye1,waldo1,butchy,crayon,5tgb6yhn,klopik,crocodil,mothra,imhorny,pookie1,splatter,slippy,lizard1,router,buratino,yahweh,123698,dragon11,123qwe456,peepers,trucker1,ganjaman,1hxboqg2,cheyanne,storys,sebastie,zztop,maddison,4rfv3edc,darthvader,jeffro,iloveit,victor1,hotty,delphin,lifeisgood,gooseman,shifty,insertions,dude123,abrupt,123masha,boogaloo,chronos,stamford,pimpster,kthjxrf,getmein,amidala,flubber,fettish,grapeape,dantes,oralsex,jack1,foxcg33,winchest,francis1,getin,archon,cliffy,blueman,1basebal,sport1,emmitt22,porn123,bignasty,morga,123hfjdk147,ferrar,juanito,fabiol,caseydog,steveo,peternorth,paroll,kimchi,bootleg,gaijin,secre,acacia,eatme2,amarillo,monkey11,rfhfgep,tylers,a1a2a3a4a5,sweetass,blower,rodina,babushka,camilo,cimbom,tiffan,vfnbkmlf,ohbaby,gotigers,lindsey1,dragon13,romulus,qazxsw12,zxcvbn1,dropdead,hitman47,snuggle,eleven11,bloopers,357mag,avangard,bmw320,ginscoot,dshade,masterkey,voodoo1,rootedit,caramba,leahcim,hannover,8phrowz622,tim123,cassius,000000a,angelito,zzzzz1,badkarma,star1,malaga,glenwood,footlove,golf1,summer12,helpme1,fastcars,titan1,police1,polinka,k.jdm,marusya,augusto,shiraz,pantyhose,donald1,blaise,arabella,brigada,c3por2d2,peter01,marco1,hellow,dillweed,uzumymw,geraldin,loveyou2,toyota1,088011,gophers,indy500,slainte,5hsu75kpot,teejay,renat,racoon,sabrin,angie1,shiznit,harpua,sexyred,latex,tucker1,alexandru,wahoo,teamwork,deepblue,goodison,rundmc,r2d2c3p0,puppys,samba,ayrton,boobed,999777,topsecre,blowme1,123321z,loudog,random1,pantie,drevil,mandolin,121212q,hottub,brother1,failsafe,spade1,matvey,open1234,carmen1,priscill,schatzi,kajak,gooddog,trojans1,gordon1,kayak,calamity,argent,ufhvjybz,seviyi,penfold,assface,dildos,hawkwind,crowbar,yanks,ruffles,rastus,luv2epus,open123,aquafina,dawns,jared1,teufel,12345c,vwgolf,pepsi123,amores,passwerd,01478520,boliva,smutty,headshot,password3,davidd,zydfhm,gbgbcmrf,pornpass,insertion,ceckbr,test2,car123,checkit,dbnfkbq,niggas,nyyankee,muskrat,nbuhtyjr,gunner1,ocean1,fabienne,chrissy1,wendys,loveme89,batgirl,cerveza,igorek,steel1,ragman,boris123,novifarm,sexy12,qwerty777,mike01,giveitup,123456abc,fuckall,crevice,hackerz,gspot,eight8,assassins,texass,swallows,123458,baldur,moonshine,labatt,modem,sydney1,voland,dbnfkz,hotchick,jacker,princessa,dawgs1,holiday1,booper,reliant,miranda1,jamaica1,andre1,badnaamhere,barnaby,tiger7,david12,margaux,corsica,085tzzqi,universi,thewall,nevermor,martin6,qwerty77,cipher,apples1,0102030405,seraphim,black123,imzadi,gandon,ducati99,1shadow,dkflbvbhjdyf,44magnum,bigbad,feedme,samantha1,ultraman,redneck1,jackdog,usmc0311,fresh1,monique1,tigre,alphaman,cool1,greyhoun,indycar,crunchy,55chevy,carefree,willow1,063dyjuy,xrated,assclown,federica,hilfiger,trivia,bronco1,mamita,100200300,simcity,lexingky,akatsuki,retsam,johndeere,abudfv,raster,elgato,businka,satanas,mattingl,redwing1,shamil,patate,mannn,moonstar,evil666,b123456,bowl300,tanechka,34523452,carthage,babygir,santino,bondarenko,jesuss,chico1,numlock,shyguy,sound1,kirby1,needit,mostwanted,427900,funky1,steve123,passions,anduril,kermit1,prospero,lusty,barakuda,dream1,broodwar,porky,christy1,mahal,yyyyyy1,allan1,1sexy,flintsto,capri,cumeater,heretic,robert2,hippos,blindax,marykay,collecti,kasumi,1qaz!qaz,112233q,123258,chemistr,coolboy,0o9i8u,kabuki,righton,tigress,nessie,sergej,andrew12,yfafyz,ytrhjvfyn,angel7,victo,mobbdeep,lemming,transfor,1725782,myhouse,aeynbr,muskie,leno4ka,westham1,cvbhyjd,daffodil,pussylicker,pamela1,stuffer,warehous,tinker1,2w3e4r,pluton,louise1,polarbea,253634,prime1,anatoliy,januar,wysiwyg,cobraya,ralphy,whaler,xterra,cableguy,112233a,porn69,jamesd,aqualung,jimmy123,lumpy,luckyman,kingsize,golfing1,alpha7,leeds1,marigold,lol1234,teabag,alex11,10sne1,saopaulo,shanny,roland1,basser,3216732167,carol1,year2005,morozov,saturn1,joseluis,bushed,redrock,memnoch,lalaland,indiana1,lovegod,gulnaz,buffalos,loveyou1,anteater,pattaya,jaydee,redshift,bartek,summerti,coffee1,ricochet,incest,schastie,rakkaus,h2opolo,suikoden,perro,dance1,loveme1,whoopass,vladvlad,boober,flyers1,alessia,gfcgjhn,pipers,papaya,gunsling,coolone,blackie1,gonads,gfhjkzytn,foxhound,qwert12,gangrel,ghjvtntq,bluedevi,mywife,summer01,hangman,licorice,patter,vfr750,thorsten,515253,ninguna,dakine,strange1,mexic,vergeten,12345432,8phrowz624,stampede,floyd1,sailfish,raziel,ananda,giacomo,freeme,crfprf,74185296,allstars,master01,solrac,gfnhbjn,bayliner,bmw525,3465xxx,catter,single1,michael3,pentium4,nitrox,mapet123456,halibut,killroy,xxxxx1,phillip1,poopsie,arsenalfc,buffys,kosova,all4me,32165498,arslan,opensesame,brutis,charles2,pochta,nadegda,backspac,mustang0,invis,gogeta,654321q,adam25,niceday,truckin,gfdkbr,biceps,sceptre,bigdave,lauras,user345,sandys,shabba,ratdog,cristiano,natha,march13,gumball,getsdown,wasdwasd,redhead1,dddddd1,longlegs,13572468,starsky,ducksoup,bunnys,omsairam,whoami,fred123,danmark,flapper,swanky,lakings,yfhenj,asterios,rainier,searcher,dapper,ltdjxrf,horsey,seahawk,shroom,tkfkdgo,aquaman,tashkent,number9,messi10,1asshole,milenium,illumina,vegita,jodeci,buster01,bareback,goldfinger,fire1,33rjhjds,sabian,thinkpad,smooth1,sully,bonghits,sushi1,magnavox,colombi,voiture,limpone,oldone,aruba,rooster1,zhenya,nomar5,touchdow,limpbizkit,rhfcfdxbr,baphomet,afrodita,bball1,madiso,ladles,lovefeet,matthew2,theworld,thunderbird,dolly1,123rrr,forklift,alfons,berkut,speedy1,saphire,oilman,creatine,pussylov,bastard1,456258,wicked1,filimon,skyline1,fucing,yfnfkbz,hot123,abdulla,nippon,nolimits,billiard,booty1,buttplug,westlife,coolbean,aloha1,lopas,asasin,1212121,october2,whodat,good4u,d12345,kostas,ilya1992,regal,pioneer1,volodya,focus1,bastos,nbvjif,fenix,anita1,vadimka,nickle,jesusc,123321456,teste,christ1,essendon,evgenii,celticfc,adam1,forumwp,lovesme,26exkp,chillout,burly,thelast1,marcus1,metalgear,test11,ronaldo7,socrate,world1,franki,mommie,vicecity,postov1000,charlie3,oldschool,333221,legoland,antoshka,counterstrike,buggy,mustang3,123454,qwertzui,toons,chesty,bigtoe,tigger12,limpopo,rerehepf,diddle,nokia3250,solidsnake,conan1,rockroll,963369,titanic1,qwezxc,cloggy,prashant,katharin,maxfli,takashi,cumonme,michael9,mymother,pennstate,khalid,48151623,fightclub,showboat,mateusz,elrond,teenie,arrow1,mammamia,dustydog,dominator,erasmus,zxcvb1,1a2a3a,bones1,dennis1,galaxie,pleaseme,whatever1,junkyard,galadriel,charlies,2wsxzaq1,crimson1,behemoth,teres,master11,fairway,shady1,pass99,1batman,joshua12,baraban,apelsin,mousepad,melon,twodogs,123321qwe,metalica,ryjgrf,pipiska,rerfhfxf,lugnut,cretin,iloveu2,powerade,aaaaaaa1,omanko,kovalenko,isabe,chobits,151nxjmt,shadow11,zcxfcnkbdf,gy3yt2rgls,vfhbyrf,159753123,bladerunner,goodone,wonton,doodie,333666999,fuckyou123,kitty123,chisox,orlando1,skateboa,red12345,destroye,snoogans,satan1,juancarlo,goheels,jetson,scottt,fuckup,aleksa,gfhfljrc,passfind,oscar123,derrick1,hateme,viper123,pieman,audi100,tuffy,andover,shooter1,10000,makarov,grant1,nighthaw,13576479,browneye,batigol,nfvfhf,chocolate1,7hrdnw23,petter,bantam,morlii,jediknight,brenden,argonaut,goodstuf,wisconsi,315920,abigail1,dirtbag,splurge,k123456,lucky777,valdepen,gsxr600,322223,ghjnjrjk,zaq1xsw2cde3,schwanz,walter1,letmein22,nomads,124356,codeblue,nokian70,fucke,footbal1,agyvorc,aztecs,passw0r,smuggles,femmes,ballgag,krasnodar,tamuna,schule,sixtynine,empires,erfolg,dvader,ladygaga,elite1,venezuel,nitrous,kochamcie,olivia1,trustn01,arioch,sting1,131415,tristar,555000,maroon,135799,marsik,555556,fomoco,natalka,cwoui,tartan,davecole,nosferat,hotsauce,dmitry,horus,dimasik,skazka,boss302,bluebear,vesper,ultras,tarantul,asd123asd,azteca,theflash,8ball,1footbal,titlover,lucas123,number6,sampson1,789852,party1,dragon99,adonai,carwash,metropol,psychnau,vthctltc,hounds,firework,blink18,145632,wildcat1,satchel,rice80,ghtktcnm,sailor1,cubano,anderso,rocks1,mike11,famili,dfghjc,besiktas,roygbiv,nikko,bethan,minotaur,rakesh,orange12,hfleuf,jackel,myangel,favorite7,1478520,asssss,agnieszka,haley1,raisin,htubyf,1buster,cfiekz,derevo,1a2a3a4a5a,baltika,raffles,scruffy1,clitlick,louis1,buddha1,fy.nrf,walker1,makoto,shadow2,redbeard,vfvfvskfhfve,mycock,sandydog,lineman,network1,favorite8,longdick,mustangg,mavericks,indica,1killer,cisco1,angelofwar,blue69,brianna1,bubbaa,slayer666,level42,baldrick,brutus1,lowdown,haribo,lovesexy,500000,thissuck,picker,stephy,1fuckme,characte,telecast,1bigdog,repytwjdf,thematrix,hammerhe,chucha,ganesha,gunsmoke,georgi,sheltie,1harley,knulla,sallas,westie,dragon7,conker,crappie,margosha,lisboa,3e2w1q,shrike,grifter,ghjcnjghjcnj,asdfg1,mnbvcxz1,myszka,posture,boggie,rocketman,flhtyfkby,twiztid,vostok,pi314159,force1,televizor,gtkmvtym,samhain,imcool,jadzia,dreamers,strannik,k2trix,steelhea,nikitin,commodor,brian123,chocobo,whopper,ibilljpf,megafon,ararat,thomas12,ghbrjkbcn,q1234567890,hibernia,kings1,jim123,redfive,68camaro,iawgk2,xavier1,1234567u,d123456,ndirish,airborn,halfmoon,fluffy1,ranchero,sneaker,soccer2,passion1,cowman,birthday1,johnn,razzle,glock17,wsxqaz,nubian,lucky2,jelly1,henderso,eric1,123123e,boscoe01,fuck0ff,simpson1,sassie,rjyjgkz,nascar3,watashi,loredana,janus,wilso,conman,david2,mothe,iloveher,snikers,davidj,fkmnthyfnbdf,mettss,ratfink,123456h,lostsoul,sweet16,brabus,wobble,petra1,fuckfest,otters,sable1,svetka,spartacu,bigstick,milashka,1lover,pasport,champagn,papichul,hrvatska,hondacivic,kevins,tacit,moneybag,gohogs,rasta1,246813579,ytyfdbcnm,gubber,darkmoon,vitaliy,233223,playboys,tristan1,joyce1,oriflame,mugwump,access2,autocad,thematri,qweqwe123,lolwut,ibill01,multisyn,1233211,pelikan,rob123,chacal,1234432,griffon,pooch,dagestan,geisha,satriani,anjali,rocketma,gixxer,pendrago,vincen,hellokit,killyou,ruger,doodah,bumblebe,badlands,galactic,emachines,foghorn,jackso,jerem,avgust,frontera,123369,daisymae,hornyboy,welcome123,tigger01,diabl,angel13,interex,iwantsex,rockydog,kukolka,sawdust,online1,3234412,bigpapa,jewboy,3263827,dave123,riches,333222,tony1,toggle,farter,124816,tities,balle,brasilia,southsid,micke,ghbdtn12,patit,ctdfcnjgjkm,olds442,zzzzzz1,nelso,gremlins,gypsy1,carter1,slut69,farcry,7415963,michael8,birdie1,charl,123456789abc,100001,aztec,sinjin,bigpimpi,closeup,atlas1,nvidia,doggone,classic1,manana,malcolm1,rfkbyf,hotbabe,rajesh,dimebag,ganjubas,rodion,jagr68,seren,syrinx,funnyman,karapuz,123456789n,bloomin,admin18533362,biggdogg,ocarina,poopy1,hellome,internet1,booties,blowjobs,matt1,donkey1,swede,1jennife,evgeniya,lfhbyf,coach1,444777,green12,patryk,pinewood,justin12,271828,89600506779,notredame,tuborg,lemond,sk8ter,million1,wowser,pablo1,st0n3,jeeves,funhouse,hiroshi,gobucs,angeleye,bereza,winter12,catalin,qazedc,andros,ramazan,vampyre,sweethea,imperium,murat,jamest,flossy,sandeep,morgen,salamandra,bigdogg,stroller,njdevils,nutsack,vittorio,%%passwo,playful,rjyatnrf,tookie,ubnfhf,michi,777444,shadow13,devils1,radiance,toshiba1,beluga,amormi,dandfa,trust1,killemall,smallville,polgara,billyb,landscap,steves,exploite,zamboni,damage11,dzxtckfd,trader12,pokey1,kobe08,damager,egorov,dragon88,ckfdbr,lisa69,blade2,audis4,nelson1,nibbles,23176djivanfros,mutabor,artofwar,matvei,metal666,hrfzlz,schwinn,poohbea,seven77,thinker,123456789qwerty,sobriety,jakers,karamelka,vbkfyf,volodin,iddqd,dale03,roberto1,lizaveta,qqqqqq1,cathy1,08154711,davidm,quixote,bluenote,tazdevil,katrina1,bigfoot1,bublik,marma,olechka,fatpussy,marduk,arina,nonrev67,qqqq1111,camill,wtpfhm,truffle,fairview,mashina,voltaire,qazxswedcvfr,dickface,grassy,lapdance,bosstone,crazy8,yackwin,mobil,danielit,mounta1n,player69,bluegill,mewtwo,reverb,cnthdf,pablito,a123321,elena1,warcraft1,orland,ilovemyself,rfntyjr,joyride,schoo,dthjxrf,thetachi,goodtimes,blacksun,humpty,chewbacca,guyute,123xyz,lexicon,blue45,qwe789,galatasaray,centrino,hendrix1,deimos,saturn5,craig1,vlad1996,sarah123,tupelo,ljrnjh,hotwife,bingos,1231231,nicholas1,flamer,pusher,1233210,heart1,hun999,jiggy,giddyup,oktober,123456zxc,budda,galahad,glamur,samwise,oneton,bugsbunny,dominic1,scooby2,freetime,internat,159753852,sc00ter,wantit,mazinger,inflames,laracrof,greedo,014789,godofwar,repytwjd,water123,fishnet,venus1,wallace1,tenpin,paula1,1475963,mania,novikov,qwertyasdfgh,goldmine,homies,777888999,8balls,holeinon,paper1,samael,013579,mansur,nikit,ak1234,blueline,polska1,hotcock,laredo,windstar,vbkbwbz,raider1,newworld,lfybkrf,catfish1,shorty1,piranha,treacle,royale,2234562,smurfs,minion,cadence,flapjack,123456p,sydne,135531,robinhoo,nasdaq,decatur,cyberonline,newage,gemstone,jabba,touchme,hooch,pigdog,indahous,fonzie,zebra1,juggle,patrick2,nihongo,hitomi,oldnavy,qwerfdsa,ukraina,shakti,allure,kingrich,diane1,canad,piramide,hottie1,clarion,college1,5641110,connect1,therion,clubber,velcro,dave1,astra1,13579-,astroboy,skittle,isgreat,photoes,cvzefh1gkc,001100,2cool4u,7555545,ginger12,2wsxcde3,camaro69,invader,domenow,asd1234,colgate,qwertasdfg,jack123,pass01,maxman,bronte,whkzyc,peter123,bogie,yecgaa,abc321,1qay2wsx,enfield,camaroz2,trashman,bonefish,system32,azsxdcfvgb,peterose,iwantyou,dick69,temp1234,blastoff,capa200,connie1,blazin,12233445,sexybaby,123456j,brentfor,pheasant,hommer,jerryg,thunders,august1,lager,kapusta,boobs1,nokia5300,rocco1,xytfu7,stars1,tugger,123sas,blingbling,1bubba,0wnsyo0,1george,baile,richard2,habana,1diamond,sensatio,1golfer,maverick1,1chris,clinton1,michael7,dragons1,sunrise1,pissant,fatim,mopar1,levani,rostik,pizzapie,987412365,oceans11,748159263,cum4me,palmetto,4r3e2w1q,paige1,muncher,arsehole,kratos,gaffer,banderas,billys,prakash,crabby,bungie,silver12,caddis,spawn1,xboxlive,sylvania,littlebi,524645,futura,valdemar,isacs155,prettygirl,big123,555444,slimer,chicke,newstyle,skypilot,sailormoon,fatluvr69,jetaime,sitruc,jesuschrist,sameer,bear12,hellion,yendor,country1,etnies,conejo,jedimast,darkknight,toobad,yxcvbn,snooks,porn4life,calvary,alfaromeo,ghostman,yannick,fnkfynblf,vatoloco,homebase,5550666,barret,1111111111zz,odysseus,edwardss,favre4,jerrys,crybaby,xsw21qaz,firestor,spanks,indians1,squish,kingair,babycakes,haters,sarahs,212223,teddyb,xfactor,cumload,rhapsody,death123,three3,raccoon,thomas2,slayer66,1q2q3q4q5q,thebes,mysterio,thirdeye,orkiox.,nodoubt,bugsy,schweiz,dima1996,angels1,darkwing,jeronimo,moonpie,ronaldo9,peaches2,mack10,manish,denise1,fellowes,carioca,taylor12,epaulson,makemoney,oc247ngucz,kochanie,3edcvfr4,vulture,1qw23e,1234567z,munchie,picard1,xthtgfirf,sportste,psycho1,tahoe1,creativ,perils,slurred,hermit,scoob,diesel1,cards1,wipeout,weeble,integra1,out3xf,powerpc,chrism,kalle,ariadne,kailua,phatty,dexter1,fordman,bungalow,paul123,compa,train1,thejoker,jys6wz,pussyeater,eatmee,sludge,dominus,denisa,tagheuer,yxcvbnm,bill1,ghfdlf,300zx,nikita123,carcass,semaj,ramone,muenchen,animal1,greeny,annemari,dbrf134,jeepcj7,mollys,garten,sashok,ironmaid,coyotes,astoria,george12,westcoast,primetim,123456o,panchito,rafae,japan1,framer,auralo,tooshort,egorova,qwerty22,callme,medicina,warhawk,w1w2w3w4,cristia,merli,alex22,kawaii,chatte,wargames,utvols,muaddib,trinket,andreas1,jjjjj1,cleric,scooters,cuntlick,gggggg1,slipknot1,235711,handcuff,stussy,guess1,leiceste,ppppp1,passe,lovegun,chevyman,hugecock,driver1,buttsex,psychnaut1,cyber1,black2,alpha12,melbourn,man123,metalman,yjdsqujl,blondi,bungee,freak1,stomper,caitlin1,nikitina,flyaway,prikol,begood,desperad,aurelius,john1234,whosyourdaddy,slimed123,bretagne,den123,hotwheel,king123,roodypoo,izzicam,save13tx,warpten,nokia3310,samolet,ready1,coopers,scott123,bonito,1aaaaa,yomomma,dawg1,rache,itworks,asecret,fencer,451236,polka,olivetti,sysadmin,zepplin,sanjuan,479373,lickem,hondacrx,pulamea,future1,naked1,sexyguy,w4g8at,lollol1,declan,runner1,rumple,daddy123,4snz9g,grandprix,calcio,whatthefuck,nagrom,asslick,pennst,negrit,squiggy,1223334444,police22,giovann,toronto1,tweet,yardbird,seagate,truckers,554455,scimitar,pescator,slydog,gaysex,dogfish,fuck777,12332112,qazxswed,morkovka,daniela1,imback,horny69,789123456,123456789w,jimmy2,bagger,ilove69,nikolaus,atdhfkm,rebirth,1111aaaa,pervasive,gjgeufq,dte4uw,gfhnbpfy,skeletor,whitney1,walkman,delorean,disco1,555888,as1234,ishikawa,fuck12,reaper1,dmitrii,bigshot,morrisse,purgen,qwer4321,itachi,willys,123123qwe,kisska,roma123,trafford,sk84life,326159487,pedros,idiom,plover,bebop,159875321,jailbird,arrowhea,qwaszx123,zaxscdvf,catlover,bakers,13579246,bones69,vermont1,helloyou,simeon,chevyz71,funguy,stargaze,parolparol,steph1,bubby,apathy,poppet,laxman,kelly123,goodnews,741236,boner1,gaetano,astonvilla,virtua,luckyboy,rocheste,hello2u,elohim,trigger1,cstrike,pepsicola,miroslav,96385274,fistfuck,cheval,magyar,svetlanka,lbfyjxrf,mamedov,123123123q,ronaldo1,scotty1,1nicole,pittbull,fredd,bbbbb1,dagwood,gfhkfvtyn,ghblehrb,logan5,1jordan,sexbomb,omega2,montauk,258741,dtythf,gibbon,winamp,thebomb,millerli,852654,gemin,baldy,halflife2,dragon22,mulberry,morrigan,hotel6,zorglub,surfin,951159,excell,arhangel,emachine,moses1,968574,reklama,bulldog2,cuties,barca,twingo,saber,elite11,redtruck,casablan,ashish,moneyy,pepper12,cnhtktw,rjcnbr,arschloch,phenix,cachorro,sunita,madoka,joselui,adams1,mymoney,hemicuda,fyutkjr,jake12,chicas,eeeee1,sonnyboy,smarties,birdy,kitten1,cnfcbr,island1,kurosaki,taekwond,konfetka,bennett1,omega3,jackson2,fresca,minako,octavian,kban667,feyenoord,muaythai,jakedog,fktrcfylhjdyf,1357911q,phuket,sexslave,fktrcfylhjdbx,asdfjk,89015173454,qwerty00,kindbud,eltoro,sex6969,nyknicks,12344321q,caballo,evenflow,hoddle,love22,metro1,mahalko,lawdog,tightass,manitou,buckie,whiskey1,anton123,335533,password4,primo,ramair,timbo,brayden,stewie,pedro1,yorkshir,ganster,hellothe,tippy1,direwolf,genesi,rodrig,enkeli,vaz21099,sorcerer,winky,oneshot,boggle,serebro,badger1,japanes,comicbook,kamehame,alcat,denis123,echo45,sexboy,gr8ful,hondo,voetbal,blue33,2112rush,geneviev,danni1,moosey,polkmn,matthew7,ironhead,hot2trot,ashley12,sweeper,imogen,blue21,retep,stealth1,guitarra,bernard1,tatian,frankfur,vfnhbwf,slacking,haha123,963741,asdasdas,katenok,airforce1,123456789qaz,shotgun1,12qwasz,reggie1,sharo,976431,pacifica,dhip6a,neptun,kardon,spooky1,beaut,555555a,toosweet,tiedup,11121314,startac,lover69,rediska,pirata,vfhrbp,1234qwerty,energize,hansolo1,playbo,larry123,oemdlg,cnjvfnjkju,a123123,alexan,gohawks,antonius,fcbayern,mambo,yummy1,kremlin,ellen1,tremere,vfiekz,bellevue,charlie9,izabella,malishka,fermat,rotterda,dawggy,becket,chasey,kramer1,21125150,lolit,cabrio,schlong,arisha,verity,3some,favorit,maricon,travelle,hotpants,red1234,garrett1,home123,knarf,seven777,figment,asdewq,canseco,good2go,warhol,thomas01,pionee,al9agd,panacea,chevy454,brazzers,oriole,azerty123,finalfan,patricio,northsta,rebelde,bulldo,stallone,boogie1,7uftyx,cfhfnjd,compusa,cornholi,config,deere,hoopster,sepultura,grasshop,babygurl,lesbo,diceman,proverbs,reddragon,nurbek,tigerwoo,superdup,buzzsaw,kakaroto,golgo13,edwar,123qaz123,butter1,sssss1,texas2,respekt,ou812ic,123456qaz,55555a,doctor1,mcgwire,maria123,aol999,cinders,aa1234,joness,ghbrjkmyj,makemone,sammyboy,567765,380zliki,theraven,testme,mylene,elvira26,indiglo,tiramisu,shannara,baby1,123666,gfhreh,papercut,johnmish,orange8,bogey1,mustang7,bagpipes,dimarik,vsijyjr,4637324,ravage,cogito,seven11,natashka,warzone,hr3ytm,4free,bigdee,000006,243462536,bigboi,123333,trouts,sandy123,szevasz,monica2,guderian,newlife1,ratchet,r12345,razorbac,12345i,piazza31,oddjob,beauty1,fffff1,anklet,nodrog,pepit,olivi,puravida,robert12,transam1,portman,bubbadog,steelers1,wilson1,eightball,mexico1,superboy,4rfv5tgb,mzepab,samurai1,fuckslut,colleen1,girdle,vfrcbvec,q1w2e3r4t,soldier1,19844891,alyssa1,a12345a,fidelis,skelter,nolove,mickeymouse,frehley,password69,watermel,aliska,soccer15,12345e,ladybug1,abulafia,adagio,tigerlil,takehana,hecate,bootneck,junfan,arigato,wonkette,bobby123,trustnoone,phantasm,132465798,brianjo,w12345,t34vfrc1991,deadeye,1robert,1daddy,adida,check1,grimlock,muffi,airwalk,prizrak,onclick,longbeac,ernie1,eadgbe,moore1,geniu,shadow123,bugaga,jonathan1,cjrjkjdf,orlova,buldog,talon1,westport,aenima,541233432442,barsuk,chicago2,kellys,hellbent,toughguy,iskander,skoal,whatisit,jake123,scooter2,fgjrfkbgcbc,ghandi,love13,adelphia,vjhrjdrf,adrenali,niunia,jemoeder,rainbo,all4u8,anime1,freedom7,seraph,789321,tommys,antman,firetruc,neogeo,natas,bmwm3,froggy1,paul1,mamit,bayview,gateways,kusanagi,ihateu,frederi,rock1,centurion,grizli,biggin,fish1,stalker1,3girls,ilovepor,klootzak,lollo,redsox04,kirill123,jake1,pampers,vasya,hammers1,teacup,towing,celtic1,ishtar,yingyang,4904s677075,dahc1,patriot1,patrick9,redbirds,doremi,rebecc,yoohoo,makarova,epiphone,rfgbnfy,milesd,blister,chelseafc,katana1,blackrose,1james,primrose,shock5,hard1,scooby12,c6h12o6,dustoff,boing,chisel,kamil,1william,defiant1,tyvugq,mp8o6d,aaa340,nafets,sonnet,flyhigh,242526,crewcom,love23,strike1,stairway,katusha,salamand,cupcake1,password0,007james,sunnie,multisync,harley01,tequila1,fred12,driver8,q8zo8wzq,hunter01,mozzer,temporar,eatmeraw,mrbrownxx,kailey,sycamore,flogger,tincup,rahasia,ganymede,bandera,slinger,1111122222,vander,woodys,1cowboy,khaled,jamies,london12,babyboo,tzpvaw,diogenes,budice,mavrick,135797531,cheeta,macros,squonk,blackber,topfuel,apache1,falcon16,darkjedi,cheeze,vfhvtkfl,sparco,change1,gfhfif,freestyl,kukuruza,loveme2,12345f,kozlov,sherpa,marbella,44445555,bocephus,1winner,alvar,hollydog,gonefish,iwantin,barman,godislove,amanda18,rfpfynbg,eugen,abcdef1,redhawk,thelema,spoonman,baller1,harry123,475869,tigerman,cdtnjxrf,marillio,scribble,elnino,carguy,hardhead,l2g7k3,troopers,selen,dragon76,antigua,ewtosi,ulysse,astana,paroli,cristo,carmex,marjan,bassfish,letitbe,kasparov,jay123,19933991,blue13,eyecandy,scribe,mylord,ukflbjkec,ellie1,beaver1,destro,neuken,halfpint,ameli,lilly1,satanic,xngwoj,12345trewq,asdf1,bulldogg,asakura,jesucrist,flipside,packers4,biggy,kadett,biteme69,bobdog,silverfo,saint1,bobbo,packman,knowledg,foolio,fussbal,12345g,kozerog,westcoas,minidisc,nbvcxw,martini1,alastair,rasengan,superbee,memento,porker,lena123,florenc,kakadu,bmw123,getalife,bigsky,monkee,people1,schlampe,red321,memyself,0147896325,12345678900987654321,soccer14,realdeal,gfgjxrf,bella123,juggs,doritos,celtics1,peterbilt,ghbdtnbrb,gnusmas,xcountry,ghbdtn1,batman99,deusex,gtnhjdf,blablabl,juster,marimba,love2,rerjkrf,alhambra,micros,siemens1,assmaste,moonie,dashadasha,atybrc,eeeeee1,wildrose,blue55,davidl,xrp23q,skyblue,leo123,ggggg1,bestfriend,franny,1234rmvb,fun123,rules1,sebastien,chester2,hakeem,winston2,fartripper,atlant,07831505,iluvsex,q1a2z3,larrys,009900,ghjkju,capitan,rider1,qazxsw21,belochka,andy123,hellya,chicca,maximal,juergen,password1234,howard1,quetzal,daniel123,qpwoeiruty,123555,bharat,ferrari3,numbnuts,savant,ladydog,phipsi,lovepussy,etoile,power2,mitten,britneys,chilidog,08522580,2fchbg,kinky1,bluerose,loulo,ricardo1,doqvq3,kswbdu,013cpfza,timoha,ghbdtnghbdtn,3stooges,gearhead,browns1,g00ber,super7,greenbud,kitty2,pootie,toolshed,gamers,coffe,ibill123,freelove,anasazi,sister1,jigger,natash,stacy1,weronika,luzern,soccer7,hoopla,dmoney,valerie1,canes,razdvatri,washere,greenwoo,rfhjkbyf,anselm,pkxe62,maribe,daniel2,maxim1,faceoff,carbine,xtkjdtr,buddy12,stratos,jumpman,buttocks,aqswdefr,pepsis,sonechka,steeler1,lanman,nietzsch,ballz,biscuit1,wrxsti,goodfood,juventu,federic,mattman,vika123,strelec,jledfyxbr,sideshow,4life,fredderf,bigwilly,12347890,12345671,sharik,bmw325i,fylhtqrf,dannon4,marky,mrhappy,drdoom,maddog1,pompier,cerbera,goobers,howler,jenny69,evely,letitrid,cthuttdyf,felip,shizzle,golf12,t123456,yamah,bluearmy,squishy,roxan,10inches,dollface,babygirl1,blacksta,kaneda,lexingto,canadien,222888,kukushka,sistema,224422,shadow69,ppspankp,mellons,barbie1,free4all,alfa156,lostone,2w3e4r5t,painkiller,robbie1,binger,8dihc6,jaspe,rellik,quark,sogood,hoopstar,number2,snowy1,dad2ownu,cresta,qwe123asd,hjvfyjdf,gibsonsg,qbg26i,dockers,grunge,duckling,lfiekz,cuntsoup,kasia1,1tigger,woaini,reksio,tmoney,firefighter,neuron,audia3,woogie,powerboo,powermac,fatcock,12345666,upnfmc,lustful,porn1,gotlove,amylee,kbytqrf,11924704,25251325,sarasota,sexme,ozzie1,berliner,nigga1,guatemal,seagulls,iloveyou!,chicken2,qwerty21,010203040506,1pillow,libby1,vodoley,backlash,piglets,teiubesc,019283,vonnegut,perico,thunde,buckey,gtxtymrf,manunite,iiiii1,lost4815162342,madonn,270873_,britney1,kevlar,piano1,boondock,colt1911,salamat,doma77ns,anuradha,cnhjqrf,rottweil,newmoon,topgun1,mauser,fightclu,birthday21,reviewpa,herons,aassddff,lakers32,melissa2,vredina,jiujitsu,mgoblue,shakey,moss84,12345zxcvb,funsex,benji1,garci,113322,chipie,windex,nokia5310,pwxd5x,bluemax,cosita,chalupa,trotsky,new123,g3ujwg,newguy,canabis,gnaget,happydays,felixx,1patrick,cumface,sparkie,kozlova,123234,newports,broncos7,golf18,recycle,hahah,harrypot,cachondo,open4me,miria,guessit,pepsione,knocker,usmc1775,countach,playe,wiking,landrover,cracksevi,drumline,a7777777,smile123,manzana,panty,liberta,pimp69,dolfan,quality1,schnee,superson,elaine22,webhompass,mrbrownx,deepsea,4wheel,mamasita,rockport,rollie,myhome,jordan12,kfvgjxrf,hockey12,seagrave,ford1,chelsea2,samsara,marissa1,lamesa,mobil1,piotrek,tommygun,yyyyy1,wesley1,billy123,homersim,julies,amanda12,shaka,maldini,suzenet,springst,iiiiii1,yakuza,111111aa,westwind,helpdesk,annamari,bringit,hopefull,hhhhhhh1,saywhat,mazdarx8,bulova,jennife1,baikal,gfhjkmxbr,victoria1,gizmo123,alex99,defjam,2girls,sandrock,positivo,shingo,syncmast,opensesa,silicone,fuckina,senna1,karlos,duffbeer,montagne,gehrig,thetick,pepino,hamburge,paramedic,scamp,smokeweed,fabregas,phantoms,venom121293,2583458,badone,porno69,manwhore,vfvf123,notagain,vbktyf,rfnthbyrf,wildblue,kelly001,dragon66,camell,curtis1,frolova,1212123,dothedew,tyler123,reddrago,planetx,promethe,gigolo,1001001,thisone,eugeni,blackshe,cruzazul,incognito,puller,joonas,quick1,spirit1,gazza,zealot,gordito,hotrod1,mitch1,pollito,hellcat,mythos,duluth,383pdjvl,easy123,hermos,binkie,its420,lovecraf,darien,romina,doraemon,19877891,syclone,hadoken,transpor,ichiro,intell,gargamel,dragon2,wavpzt,557744,rjw7x4,jennys,kickit,rjynfrn,likeit,555111,corvus,nec3520,133113,mookie1,bochum,samsung2,locoman0,154ugeiu,vfvfbgfgf,135792,[start],tenni,20001,vestax,hufmqw,neveragain,wizkid,kjgfnf,nokia6303,tristen,saltanat,louie1,gandalf2,sinfonia,alpha3,tolstoy,ford150,f00bar,1hello,alici,lol12,riker1,hellou,333888,1hunter,qw1234,vibrator,mets86,43211234,gonzale,cookies1,sissy1,john11,bubber,blue01,cup2006,gtkmvtyb,nazareth,heybaby,suresh,teddie,mozilla,rodeo1,madhouse,gamera,123123321,naresh,dominos,foxtrot1,taras,powerup,kipling,jasonb,fidget,galena,meatman,alpacino,bookmark,farting,humper,titsnass,gorgon,castaway,dianka,anutka,gecko1,fucklove,connery,wings1,erika1,peoria,moneymaker,ichabod,heaven1,paperboy,phaser,breakers,nurse1,westbrom,alex13,brendan1,123asd123,almera,grubber,clarkie,thisisme,welkom01,51051051051,crypto,freenet,pflybwf,black12,testme2,changeit,autobahn,attica,chaoss,denver1,tercel,gnasher23,master2,vasilii,sherman1,gomer,bigbuck,derek1,qwerzxcv,jumble,dragon23,art131313,numark,beasty,cxfcnmttcnm,updown,starion,glist,sxhq65,ranger99,monkey7,shifter,wolves1,4r5t6y,phone1,favorite5,skytommy,abracada,1martin,102030405060,gatech,giulio,blacktop,cheer1,africa1,grizzly1,inkjet,shemales,durango1,booner,11223344q,supergirl,vanyarespekt,dickless,srilanka,weaponx,6string,nashvill,spicey,boxer1,fabien,2sexy2ho,bowhunt,jerrylee,acrobat,tawnee,ulisse,nolimit8,l8g3bkde,pershing,gordo1,allover,gobrowns,123432,123444,321456987,spoon1,hhhhh1,sailing1,gardenia,teache,sexmachine,tratata,pirate1,niceone,jimbos,314159265,qsdfgh,bobbyy,ccccc1,carla1,vjkjltw,savana,biotech,frigid,123456789g,dragon10,yesiam,alpha06,oakwood,tooter,winsto,radioman,vavilon,asnaeb,google123,nariman,kellyb,dthyjcnm,password6,parol1,golf72,skate1,lthtdj,1234567890s,kennet,rossia,lindas,nataliya,perfecto,eminem1,kitana,aragorn1,rexona,arsenalf,planot,coope,testing123,timex,blackbox,bullhead,barbarian,dreamon,polaris1,cfvjktn,frdfhbev,gametime,slipknot666,nomad1,hfgcjlbz,happy69,fiddler,brazil1,joeboy,indianali,113355,obelisk,telemark,ghostrid,preston1,anonim,wellcome,verizon1,sayangku,censor,timeport,dummies,adult1,nbnfybr,donger,thales,iamgay,sexy1234,deadlift,pidaras,doroga,123qwe321,portuga,asdfgh12,happys,cadr14nu,pi3141,maksik,dribble,cortland,darken,stepanova,bommel,tropic,sochi2014,bluegras,shahid,merhaba,nacho,2580456,orange44,kongen,3cudjz,78girl,my3kids,marcopol,deadmeat,gabbie,saruman,jeepman,freddie1,katie123,master99,ronal,ballbag,centauri,killer7,xqgann,pinecone,jdeere,geirby,aceshigh,55832811,pepsimax,rayden,razor1,tallyho,ewelina,coldfire,florid,glotest,999333,sevenup,bluefin,limaperu,apostol,bobbins,charmed1,michelin,sundin,centaur,alphaone,christof,trial1,lions1,45645,just4you,starflee,vicki1,cougar1,green2,jellyfis,batman69,games1,hihje863,crazyzil,w0rm1,oklick,dogbite,yssup,sunstar,paprika,postov10,124578963,x24ik3,kanada,buckster,iloveamy,bear123,smiler,nx74205,ohiostat,spacey,bigbill,doudo,nikolaeva,hcleeb,sex666,mindy1,buster11,deacons,boness,njkcnsq,candy2,cracker1,turkey1,qwertyu1,gogreen,tazzzz,edgewise,ranger01,qwerty6,blazer1,arian,letmeinnow,cigar1,jjjjjj1,grigio,frien,tenchu,f9lmwd,imissyou,filipp,heathers,coolie,salem1,woodduck,scubadiv,123kat,raffaele,nikolaev,dapzu455,skooter,9inches,lthgfhjkm,gr8one,ffffff1,zujlrf,amanda69,gldmeo,m5wkqf,rfrltkf,televisi,bonjou,paleale,stuff1,cumalot,fuckmenow,climb7,mark1234,t26gn4,oneeye,george2,utyyflbq,hunting1,tracy71,ready2go,hotguy,accessno,charger1,rudedog,kmfdm,goober1,sweetie1,wtpmjgda,dimensio,ollie1,pickles1,hellraiser,mustdie,123zzz,99887766,stepanov,verdun,tokenbad,anatol,bartende,cidkid86,onkelz,timmie,mooseman,patch1,12345678c,marta1,dummy1,bethany1,myfamily,history1,178500,lsutiger,phydeaux,moren,dbrnjhjdbx,gnbxrf,uniden,drummers,abpbrf,godboy,daisy123,hogan1,ratpack,irland,tangerine,greddy,flore,sqrunch,billyjoe,q55555,clemson1,98745632,marios,ishot,angelin,access12,naruto12,lolly,scxakv,austin12,sallad,cool99,rockit,mongo1,mark22,ghbynth,ariadna,senha,docto,tyler2,mobius,hammarby,192168,anna12,claire1,pxx3eftp,secreto,greeneye,stjabn,baguvix,satana666,rhbcnbyjxrf,dallastx,garfiel,michaelj,1summer,montan,1234ab,filbert,squids,fastback,lyudmila,chucho,eagleone,kimberle,ar3yuk3,jake01,nokids,soccer22,1066ad,ballon,cheeto,review69,madeira,taylor2,sunny123,chubbs,lakeland,striker1,porche,qwertyu8,digiview,go1234,ferari,lovetits,aditya,minnow,green3,matman,cellphon,fortytwo,minni,pucara,69a20a,roman123,fuente,12e3e456,paul12,jacky,demian,littleman,jadakiss,vlad1997,franca,282860,midian,nunzio,xaccess2,colibri,jessica0,revilo,654456,harvey1,wolf1,macarena,corey1,husky1,arsen,milleniu,852147,crowes,redcat,combat123654,hugger,psalms,quixtar,ilovemom,toyot,ballss,ilovekim,serdar,james23,avenger1,serendip,malamute,nalgas,teflon,shagger,letmein6,vyjujnjxbt,assa1234,student1,dixiedog,gznybwf13,fuckass,aq1sw2de3,robroy,hosehead,sosa21,123345,ias100,teddy123,poppin,dgl70460,zanoza,farhan,quicksilver,1701d,tajmahal,depechemode,paulchen,angler,tommy2,recoil,megamanx,scarecro,nicole2,152535,rfvtgb,skunky,fatty1,saturno,wormwood,milwauke,udbwsk,sexlover,stefa,7bgiqk,gfnhbr,omar10,bratan,lbyfvj,slyfox,forest1,jambo,william3,tempus,solitari,lucydog,murzilka,qweasdzxc1,vehpbkrf,12312345,fixit,woobie,andre123,123456789x,lifter,zinaida,soccer17,andone,foxbat,torsten,apple12,teleport,123456i,leglover,bigcocks,vologda,dodger1,martyn,d6o8pm,naciona,eagleeye,maria6,rimshot,bentley1,octagon,barbos,masaki,gremio,siemen,s1107d,mujeres,bigtits1,cherr,saints1,mrpink,simran,ghzybr,ferrari2,secret12,tornado1,kocham,picolo,deneme,onelove1,rolan,fenster,1fuckyou,cabbie,pegaso,nastyboy,password5,aidana,mine2306,mike13,wetone,tigger69,ytreza,bondage1,myass,golova,tolik,happyboy,poilkj,nimda2k,rammer,rubies,hardcore1,jetset,hoops1,jlaudio,misskitt,1charlie,google12,theone1,phred,porsch,aalborg,luft4,charlie5,password7,gnosis,djgabbab,1daniel,vinny,borris,cumulus,member1,trogdor,darthmau,andrew2,ktjybl,relisys,kriste,rasta220,chgobndg,weener,qwerty66,fritter,followme,freeman1,ballen,blood1,peache,mariso,trevor1,biotch,gtfullam,chamonix,friendste,alligato,misha1,1soccer,18821221,venkat,superd,molotov,bongos,mpower,acun3t1x,dfcmrf,h4x3d,rfhfufylf,tigran,booyaa,plastic1,monstr,rfnhby,lookatme,anabolic,tiesto,simon123,soulman,canes1,skyking,tomcat1,madona,bassline,dasha123,tarheel1,dutch1,xsw23edc,qwerty123456789,imperator,slaveboy,bateau,paypal,house123,pentax,wolf666,drgonzo,perros,digger1,juninho,hellomoto,bladerun,zzzzzzz1,keebler,take8422,fffffff1,ginuwine,israe,caesar1,crack1,precious1,garand,magda1,zigazaga,321ewq,johnpaul,mama1234,iceman69,sanjeev,treeman,elric,rebell,1thunder,cochon,deamon,zoltan,straycat,uhbyuj,luvfur,mugsy,primer,wonder1,teetime,candycan,pfchfytw,fromage,gitler,salvatio,piggy1,23049307,zafira,chicky,sergeev,katze,bangers,andriy,jailbait,vaz2107,ghbhjlf,dbjktnnf,aqswde,zaratustra,asroma,1pepper,alyss,kkkkk1,ryan1,radish,cozumel,waterpol,pentium1,rosebowl,farmall,steinway,dbrekz,baranov,jkmuf,another1,chinacat,qqqqqqq1,hadrian,devilmaycry4,ratbag,teddy2,love21,pullings,packrat,robyn1,boobo,qw12er34,tribe1,rosey,celestia,nikkie,fortune12,olga123,danthema,gameon,vfrfhjys,dilshod,henry14,jenova,redblue,chimaera,pennywise,sokrates,danimal,qqaazz,fuaqz4,killer2,198200,tbone1,kolyan,wabbit,lewis1,maxtor,egoist,asdfas,spyglass,omegas,jack12,nikitka,esperanz,doozer,matematika,wwwww1,ssssss1,poiu0987,suchka,courtney1,gungho,alpha2,fktyjxrf,summer06,bud420,devildriver,heavyd,saracen,foucault,choclate,rjdfktyrj,goblue1,monaro,jmoney,dcpugh,efbcapa201,qqh92r,pepsicol,bbb747,ch5nmk,honeyb,beszoptad,tweeter,intheass,iseedeadpeople,123dan,89231243658s,farside1,findme,smiley1,55556666,sartre,ytcnjh,kacper,costarica,134679258,mikeys,nolimit9,vova123,withyou,5rxypn,love143,freebie,rescue1,203040,michael6,12monkey,redgreen,steff,itstime,naveen,good12345,acidrain,1dawg,miramar,playas,daddio,orion2,852741,studmuff,kobe24,senha123,stephe,mehmet,allalone,scarface1,helloworld,smith123,blueyes,vitali,memphis1,mybitch,colin1,159874,1dick,podaria,d6wnro,brahms,f3gh65,dfcbkmtd,xxxman,corran,ugejvp,qcfmtz,marusia,totem,arachnid,matrix2,antonell,fgntrf,zemfira,christos,surfing1,naruto123,plato1,56qhxs,madzia,vanille,043aaa,asq321,mutton,ohiostate,golde,cdznjckfd,rhfcysq,green5,elephan,superdog,jacqueli,bollock,lolitas,nick12,1orange,maplelea,july23,argento,waldorf,wolfer,pokemon12,zxcvbnmm,flicka,drexel,outlawz,harrie,atrain,juice2,falcons1,charlie6,19391945,tower1,dragon21,hotdamn,dirtyboy,love4ever,1ginger,thunder2,virgo1,alien1,bubblegu,4wwvte,123456789qqq,realtime,studio54,passss,vasilek,awsome,giorgia,bigbass,2002tii,sunghile,mosdef,simbas,count0,uwrl7c,summer05,lhepmz,ranger21,sugarbea,principe,5550123,tatanka,9638v,cheerios,majere,nomercy,jamesbond007,bh90210,7550055,jobber,karaganda,pongo,trickle,defamer,6chid8,1q2a3z,tuscan,nick123,.adgjm,loveyo,hobbes1,note1234,shootme,171819,loveporn,9788960,monty123,fabrice,macduff,monkey13,shadowfa,tweeker,hanna1,madball,telnet,loveu2,qwedcxzas,thatsit,vfhcbr,ptfe3xxp,gblfhfcs,ddddddd1,hakkinen,liverune,deathsta,misty123,suka123,recon1,inferno1,232629,polecat,sanibel,grouch,hitech,hamradio,rkfdbfnehf,vandam,nadin,fastlane,shlong,iddqdidkfa,ledzeppelin,sexyfeet,098123,stacey1,negras,roofing,lucifer1,ikarus,tgbyhn,melnik,barbaria,montego,twisted1,bigal1,jiggle,darkwolf,acerview,silvio,treetops,bishop1,iwanna,pornsite,happyme,gfccdjhl,114411,veritech,batterse,casey123,yhntgb,mailto,milli,guster,q12345678,coronet,sleuth,fuckmeha,armadill,kroshka,geordie,lastochka,pynchon,killall,tommy123,sasha1996,godslove,hikaru,clticic,cornbrea,vfkmdbyf,passmaster,123123123a,souris,nailer,diabolo,skipjack,martin12,hinata,mof6681,brookie,dogfight,johnso,karpov,326598,rfvbrflpt,travesti,caballer,galaxy1,wotan,antoha,art123,xakep1234,ricflair,pervert1,p00kie,ambulanc,santosh,berserker,larry33,bitch123,a987654321,dogstar,angel22,cjcbcrf,redhouse,toodles,gold123,hotspot,kennedy1,glock21,chosen1,schneide,mainman,taffy1,3ki42x,4zqauf,ranger2,4meonly,year2000,121212a,kfylsi,netzwerk,diese,picasso1,rerecz,225522,dastan,swimmer1,brooke1,blackbea,oneway,ruslana,dont4get,phidelt,chrisp,gjyxbr,xwing,kickme,shimmy,kimmy1,4815162342lost,qwerty5,fcporto,jazzbo,mierd,252627,basses,sr20det,00133,florin,howdy1,kryten,goshen,koufax,cichlid,imhotep,andyman,wrest666,saveme,dutchy,anonymou,semprini,siempre,mocha1,forest11,wildroid,aspen1,sesam,kfgekz,cbhbec,a55555,sigmanu,slash1,giggs11,vatech,marias,candy123,jericho1,kingme,123a123,drakula,cdjkjxm,mercur,oneman,hoseman,plumper,ilovehim,lancers,sergey1,takeshi,goodtogo,cranberr,ghjcnj123,harvick,qazxs,1972chev,horsesho,freedom3,letmein7,saitek,anguss,vfvfgfgfz,300000,elektro,toonporn,999111999q,mamuka,q9umoz,edelweis,subwoofer,bayside,disturbe,volition,lucky3,12345678z,3mpz4r,march1,atlantida,strekoza,seagrams,090909t,yy5rbfsc,jack1234,sammy12,sampras,mark12,eintrach,chaucer,lllll1,nochance,whitepower,197000,lbvekz,passer,torana,12345as,pallas,koolio,12qw34,nokia8800,findout,1thomas,mmmmm1,654987,mihaela,chinaman,superduper,donnas,ringo1,jeroen,gfdkjdf,professo,cdtnrf,tranmere,tanstaaf,himera,ukflbfnjh,667788,alex32,joschi,w123456,okidoki,flatline,papercli,super8,doris1,2good4u,4z34l0ts,pedigree,freeride,gsxr1100,wulfgar,benjie,ferdinan,king1,charlie7,djdxbr,fhntvbq,ripcurl,2wsx1qaz,kingsx,desade,sn00py,loveboat,rottie,evgesha,4money,dolittle,adgjmpt,buzzers,brett1,makita,123123qweqwe,rusalka,sluts1,123456e,jameson1,bigbaby,1z2z3z,ckjybr,love4u,fucker69,erhfbyf,jeanluc,farhad,fishfood,merkin,giant1,golf69,rfnfcnhjaf,camera1,stromb,smoothy,774411,nylon,juice1,rfn.irf,newyor,123456789t,marmot,star11,jennyff,jester1,hisashi,kumquat,alex777,helicopt,merkur,dehpye,cummin,zsmj2v,kristjan,april12,englan,honeypot,badgirls,uzumaki,keines,p12345,guita,quake1,duncan1,juicer,milkbone,hurtme,123456789b,qq123456789,schwein,p3wqaw,54132442,qwertyytrewq,andreeva,ruffryde,punkie,abfkrf,kristinka,anna1987,ooooo1,335533aa,umberto,amber123,456123789,456789123,beelch,manta,peeker,1112131415,3141592654,gipper,wrinkle5,katies,asd123456,james11,78n3s5af,michael0,daboss,jimmyb,hotdog1,david69,852123,blazed,sickan,eljefe,2n6wvq,gobills,rfhfcm,squeaker,cabowabo,luebri,karups,test01,melkor,angel777,smallvil,modano,olorin,4rkpkt,leslie1,koffie,shadows1,littleon,amiga1,topeka,summer20,asterix1,pitstop,aloysius,k12345,magazin,joker69,panocha,pass1word,1233214,ironpony,368ejhih,88keys,pizza123,sonali,57np39,quake2,1234567890qw,1020304,sword1,fynjif,abcde123,dfktyjr,rockys,grendel1,harley12,kokakola,super2,azathoth,lisa123,shelley1,girlss,ibragim,seven1,jeff24,1bigdick,dragan,autobot,t4nvp7,omega123,900000,hecnfv,889988,nitro1,doggie1,fatjoe,811pahc,tommyt,savage1,pallino,smitty1,jg3h4hfn,jamielee,1qazwsx,zx123456,machine1,asdfgh123,guinnes,789520,sharkman,jochen,legend1,sonic2,extreme1,dima12,photoman,123459876,nokian95,775533,vaz2109,april10,becks,repmvf,pooker,qwer12345,themaster,nabeel,monkey10,gogetit,hockey99,bbbbbbb1,zinedine,dolphin2,anelka,1superma,winter01,muggsy,horny2,669966,kuleshov,jesusis,calavera,bullet1,87t5hdf,sleepers,winkie,vespa,lightsab,carine,magister,1spider,shitbird,salavat,becca1,wc18c2,shirak,galactus,zaskar,barkley1,reshma,dogbreat,fullsail,asasa,boeder,12345ta,zxcvbnm12,lepton,elfquest,tony123,vkaxcs,savatage,sevilia1,badkitty,munkey,pebbles1,diciembr,qapmoc,gabriel2,1qa2ws3e,cbcmrb,welldone,nfyufh,kaizen,jack11,manisha,grommit,g12345,maverik,chessman,heythere,mixail,jjjjjjj1,sylvia1,fairmont,harve,skully,global1,youwish,pikachu1,badcat,zombie1,49527843,ultra1,redrider,offsprin,lovebird,153426,stymie,aq1sw2,sorrento,0000001,r3ady41t,webster1,95175,adam123,coonass,159487,slut1,gerasim,monkey99,slutwife,159963,1pass1page,hobiecat,bigtymer,all4you,maggie2,olamide,comcast1,infinit,bailee,vasileva,.ktxrf,asdfghjkl1,12345678912,setter,fuckyou7,nnagqx,lifesuck,draken,austi,feb2000,cable1,1234qwerasdf,hax0red,zxcv12,vlad7788,nosaj,lenovo,underpar,huskies1,lovegirl,feynman,suerte,babaloo,alskdjfhg,oldsmobi,bomber1,redrover,pupuce,methodman,phenom,cutegirl,countyli,gretsch,godisgood,bysunsu,hardhat,mironova,123qwe456rty,rusty123,salut,187211,555666777,11111z,mahesh,rjntyjxtr,br00klyn,dunce1,timebomb,bovine,makelove,littlee,shaven,rizwan,patrick7,42042042,bobbijo,rustem,buttmunc,dongle,tiger69,bluecat,blackhol,shirin,peaces,cherub,cubase,longwood,lotus7,gwju3g,bruin,pzaiu8,green11,uyxnyd,seventee,dragon5,tinkerbel,bluess,bomba,fedorova,joshua2,bodyshop,peluche,gbpacker,shelly1,d1i2m3a4,ghtpbltyn,talons,sergeevna,misato,chrisc,sexmeup,brend,olddog,davros,hazelnut,bridget1,hzze929b,readme,brethart,wild1,ghbdtnbr1,nortel,kinger,royal1,bucky1,allah1,drakkar,emyeuanh,gallaghe,hardtime,jocker,tanman,flavio,abcdef123,leviatha,squid1,skeet,sexse,123456x,mom4u4mm,lilred,djljktq,ocean11,cadaver,baxter1,808state,fighton,primavera,1andrew,moogle,limabean,goddess1,vitalya,blue56,258025,bullride,cicci,1234567d,connor1,gsxr11,oliveoil,leonard1,legsex,gavrik,rjnjgtc,mexicano,2bad4u,goodfellas,ornw6d,mancheste,hawkmoon,zlzfrh,schorsch,g9zns4,bashful,rossi46,stephie,rfhfntkm,sellout,123fuck,stewar1,solnze,00007,thor5200,compaq12,didit,bigdeal,hjlbyf,zebulon,wpf8eu,kamran,emanuele,197500,carvin,ozlq6qwm,3syqo15hil,pennys,epvjb6,asdfghjkl123,198000,nfbcbz,jazzer,asfnhg66,zoloft,albundy,aeiou,getlaid,planet1,gjkbyjxrf,alex2000,brianb,moveon,maggie11,eieio,vcradq,shaggy1,novartis,cocoloco,dunamis,554uzpad,sundrop,1qwertyu,alfie,feliks,briand,123www,red456,addams,fhntv1998,goodhead,theway,javaman,angel01,stratoca,lonsdale,15987532,bigpimpin,skater1,issue43,muffie,yasmina,slowride,crm114,sanity729,himmel,carolcox,bustanut,parabola,masterlo,computador,crackhea,dynastar,rockbott,doggysty,wantsome,bigten,gaelle,juicy1,alaska1,etower,sixnine,suntan,froggies,nokia7610,hunter11,njnets,alicante,buttons1,diosesamo,elizabeth1,chiron,trustnoo,amatuers,tinytim,mechta,sammy2,cthulu,trs8f7,poonam,m6cjy69u35,cookie12,blue25,jordans,santa1,kalinka,mikey123,lebedeva,12345689,kissss,queenbee,vjybnjh,ghostdog,cuckold,bearshare,rjcntyrj,alinochka,ghjcnjrdfibyj,aggie1,teens1,3qvqod,dauren,tonino,hpk2qc,iqzzt580,bears85,nascar88,theboy,njqcw4,masyanya,pn5jvw,intranet,lollone,shadow99,00096462,techie,cvtifhbrb,redeemed,gocanes,62717315,topman,intj3a,cobrajet,antivirus,whyme,berserke,ikilz083,airedale,brandon2,hopkig,johanna1,danil8098,gojira,arthu,vision1,pendragon,milen,chrissie,vampiro,mudder,chris22,blowme69,omega7,surfers,goterps,italy1,baseba11,diego1,gnatsum,birdies,semenov,joker123,zenit2011,wojtek,cab4ma99,watchmen,damia,forgotte,fdm7ed,strummer,freelanc,cingular,orange77,mcdonalds,vjhjpjdf,kariya,tombston,starlet,hawaii1,dantheman,megabyte,nbvjirf,anjing,ybrjkftdbx,hotmom,kazbek,pacific1,sashimi,asd12,coorslig,yvtte545,kitte,elysium,klimenko,cobblers,kamehameha,only4me,redriver,triforce,sidorov,vittoria,fredi,dank420,m1234567,fallout2,989244342a,crazy123,crapola,servus,volvos,1scooter,griffin1,autopass,ownzyou,deviant,george01,2kgwai,boeing74,simhrq,hermosa,hardcor,griffy,rolex1,hackme,cuddles1,master3,bujhtr,aaron123,popolo,blader,1sexyred,gerry1,cronos,ffvdj474,yeehaw,bob1234,carlos2,mike77,buckwheat,ramesh,acls2h,monster2,montess,11qq22ww,lazer,zx123456789,chimpy,masterch,sargon,lochness,archana,1234qwert,hbxfhl,sarahb,altoid,zxcvbn12,dakot,caterham,dolomite,chazz,r29hqq,longone,pericles,grand1,sherbert,eagle3,pudge,irontree,synapse,boome,nogood,summer2,pooki,gangsta1,mahalkit,elenka,lbhtrnjh,dukedog,19922991,hopkins1,evgenia,domino1,x123456,manny1,tabbycat,drake1,jerico,drahcir,kelly2,708090a,facesit,11c645df,mac123,boodog,kalani,hiphop1,critters,hellothere,tbirds,valerka,551scasi,love777,paloalto,mrbrown,duke3d,killa1,arcturus,spider12,dizzy1,smudger,goddog,75395,spammy,1357997531,78678,datalife,zxcvbn123,1122112211,london22,23dp4x,rxmtkp,biggirls,ownsu,lzbs2twz,sharps,geryfe,237081a,golakers,nemesi,sasha1995,pretty1,mittens1,d1lakiss,speedrac,gfhjkmm,sabbat,hellrais,159753258,qwertyuiop123,playgirl,crippler,salma,strat1,celest,hello5,omega5,cheese12,ndeyl5,edward12,soccer3,cheerio,davido,vfrcbr,gjhjctyjr,boscoe,inessa,shithole,ibill,qwepoi,201jedlz,asdlkj,davidk,spawn2,ariel1,michael4,jamie123,romantik,micro1,pittsbur,canibus,katja,muhtar,thomas123,studboy,masahiro,rebrov,patrick8,hotboys,sarge1,1hammer,nnnnn1,eistee,datalore,jackdani,sasha2010,mwq6qlzo,cmfnpu,klausi,cnhjbntkm,andrzej,ilovejen,lindaa,hunter123,vvvvv1,novembe,hamster1,x35v8l,lacey1,1silver,iluvporn,valter,herson,alexsandr,cojones,backhoe,womens,777angel,beatit,klingon1,ta8g4w,luisito,benedikt,maxwel,inspecto,zaq12ws,wladimir,bobbyd,peterj,asdfg12,hellspawn,bitch69,nick1234,golfer23,sony123,jello1,killie,chubby1,kodaira52,yanochka,buckfast,morris1,roaddogg,snakeeye,sex1234,mike22,mmouse,fucker11,dantist,brittan,vfrfhjdf,doc123,plokijuh,emerald1,batman01,serafim,elementa,soccer9,footlong,cthuttdbx,hapkido,eagle123,getsmart,getiton,batman2,masons,mastiff,098890,cfvfhf,james7,azalea,sherif,saun24865709,123red,cnhtrjpf,martina1,pupper,michael5,alan12,shakir,devin1,ha8fyp,palom,mamulya,trippy,deerhunter,happyone,monkey77,3mta3,123456789f,crownvic,teodor,natusik,0137485,vovchik,strutter,triumph1,cvetok,moremone,sonnen,screwbal,akira1,sexnow,pernille,independ,poopies,samapi,kbcbxrf,master22,swetlana,urchin,viper2,magica,slurpee,postit,gilgames,kissarmy,clubpenguin,limpbizk,timber1,celin,lilkim,fuckhard,lonely1,mom123,goodwood,extasy,sdsadee23,foxglove,malibog,clark1,casey2,shell1,odense,balefire,dcunited,cubbie,pierr,solei,161718,bowling1,areyukesc,batboy,r123456,1pionee,marmelad,maynard1,cn42qj,cfvehfq,heathrow,qazxcvbn,connecti,secret123,newfie,xzsawq21,tubitzen,nikusha,enigma1,yfcnz123,1austin,michaelc,splunge,wanger,phantom2,jason2,pain4me,primetime21,babes1,liberte,sugarray,undergro,zonker,labatts,djhjyf,watch1,eagle5,madison2,cntgfirf,sasha2,masterca,fiction7,slick50,bruins1,sagitari,12481632,peniss,insuranc,2b8riedt,12346789,mrclean,ssptx452,tissot,q1w2e3r4t5y6u7,avatar1,comet1,spacer,vbrjkf,pass11,wanker1,14vbqk9p,noshit,money4me,sayana,fish1234,seaways,pipper,romeo123,karens,wardog,ab123456,gorilla1,andrey123,lifesucks,jamesr,4wcqjn,bearman,glock22,matt11,dflbvrf,barbi,maine1,dima1997,sunnyboy,6bjvpe,bangkok1,666666q,rafiki,letmein0,0raziel0,dalla,london99,wildthin,patrycja,skydog,qcactw,tmjxn151,yqlgr667,jimmyd,stripclub,deadwood,863abgsg,horses1,qn632o,scatman,sonia1,subrosa,woland,kolya,charlie4,moleman,j12345,summer11,angel11,blasen,sandal,mynewpas,retlaw,cambria,mustang4,nohack04,kimber45,fatdog,maiden1,bigload,necron,dupont24,ghost123,turbo2,.ktymrf,radagast,balzac,vsevolod,pankaj,argentum,2bigtits,mamabear,bumblebee,mercury7,maddie1,chomper,jq24nc,snooky,pussylic,1lovers,taltos,warchild,diablo66,jojo12,sumerki,aventura,gagger,annelies,drumset,cumshots,azimut,123580,clambake,bmw540,birthday54,psswrd,paganini,wildwest,filibert,teaseme,1test,scampi,thunder5,antosha,purple12,supersex,hhhhhh1,brujah,111222333a,13579a,bvgthfnjh,4506802a,killians,choco,qqqwwweee,raygun,1grand,koetsu13,sharp1,mimi92139,fastfood,idontcare,bluered,chochoz,4z3al0ts,target1,sheffiel,labrat,stalingrad,147123,cubfan,corvett1,holden1,snapper1,4071505,amadeo,pollo,desperados,lovestory,marcopolo,mumbles,familyguy,kimchee,marcio,support1,tekila,shygirl1,trekkie,submissi,ilaria,salam,loveu,wildstar,master69,sales1,netware,homer2,arseniy,gerrity1,raspberr,atreyu,stick1,aldric,tennis12,matahari,alohomora,dicanio,michae1,michaeld,666111,luvbug,boyscout,esmerald,mjordan,admiral1,steamboa,616913,ybhdfyf,557711,555999,sunray,apokalipsis,theroc,bmw330,buzzy,chicos,lenusik,shadowma,eagles05,444222,peartree,qqq123,sandmann,spring1,430799,phatass,andi03,binky1,arsch,bamba,kenny123,fabolous,loser123,poop12,maman,phobos,tecate,myxworld4,metros,cocorico,nokia6120,johnny69,hater,spanked,313233,markos,love2011,mozart1,viktoriy,reccos,331234,hornyone,vitesse,1um83z,55555q,proline,v12345,skaven,alizee,bimini,fenerbahce,543216,zaqqaz,poi123,stabilo,brownie1,1qwerty1,dinesh,baggins1,1234567t,davidkin,friend1,lietuva,octopuss,spooks,12345qq,myshit,buttface,paradoxx,pop123,golfin,sweet69,rfghbp,sambuca,kayak1,bogus1,girlz,dallas12,millers,123456zx,operatio,pravda,eternal1,chase123,moroni,proust,blueduck,harris1,redbarch,996699,1010101,mouche,millenni,1123456,score1,1234565,1234576,eae21157,dave12,pussyy,gfif1991,1598741,hoppy,darrian,snoogins,fartface,ichbins,vfkbyrf,rusrap,2741001,fyfrjylf,aprils,favre,thisis,bannana,serval,wiggum,satsuma,matt123,ivan123,gulmira,123zxc123,oscar2,acces,annie2,dragon0,emiliano,allthat,pajaro,amandine,rawiswar,sinead,tassie,karma1,piggys,nokias,orions,origami,type40,mondo,ferrets,monker,biteme2,gauntlet,arkham,ascona,ingram01,klem1,quicksil,bingo123,blue66,plazma,onfire,shortie,spjfet,123963,thered,fire777,lobito,vball,1chicken,moosehea,elefante,babe23,jesus12,parallax,elfstone,number5,shrooms,freya,hacker1,roxette,snoops,number7,fellini,dtlmvf,chigger,mission1,mitsubis,kannan,whitedog,james01,ghjgecr,rfnfgekmnf,everythi,getnaked,prettybo,sylvan,chiller,carrera4,cowbo,biochem,azbuka,qwertyuiop1,midnight1,informat,audio1,alfred1,0range,sucker1,scott2,russland,1eagle,torben,djkrjlfd,rocky6,maddy1,bonobo,portos,chrissi,xjznq5,dexte,vdlxuc,teardrop,pktmxr,iamtheone,danijela,eyphed,suzuki1,etvww4,redtail,ranger11,mowerman,asshole2,coolkid,adriana1,bootcamp,longcut,evets,npyxr5,bighurt,bassman1,stryder,giblet,nastja,blackadd,topflite,wizar,cumnow,technolo,bassboat,bullitt,kugm7b,maksimus,wankers,mine12,sunfish,pimpin1,shearer9,user1,vjzgjxnf,tycobb,80070633pc,stanly,vitaly,shirley1,cinzia,carolyn1,angeliqu,teamo,qdarcv,aa123321,ragdoll,bonit,ladyluck,wiggly,vitara,jetbalance,12345600,ozzman,dima12345,mybuddy,shilo,satan66,erebus,warrio,090808qwe,stupi,bigdan,paul1234,chiapet,brooks1,philly1,dually,gowest,farmer1,1qa2ws3ed4rf,alberto1,beachboy,barne,aa12345,aliyah,radman,benson1,dfkthbq,highball,bonou2,i81u812,workit,darter,redhook,csfbr5yy,buttlove,episode1,ewyuza,porthos,lalal,abcd12,papero,toosexy,keeper1,silver7,jujitsu,corset,pilot123,simonsay,pinggolf,katerinka,kender,drunk1,fylhjvtlf,rashmi,nighthawk,maggy,juggernaut,larryb,cabibble,fyabcf,247365,gangstar,jaybee,verycool,123456789qw,forbidde,prufrock,12345zxc,malaika,blackbur,docker,filipe,koshechka,gemma1,djamaal,dfcbkmtdf,gangst,9988aa,ducks1,pthrfkj,puertorico,muppets,griffins,whippet,sauber,timofey,larinso,123456789zxc,quicken,qsefth,liteon,headcase,bigdadd,zxc321,maniak,jamesc,bassmast,bigdogs,1girls,123xxx,trajan,lerochka,noggin,mtndew,04975756,domin,wer123,fumanchu,lambada,thankgod,june22,kayaking,patchy,summer10,timepass,poiu1234,kondor,kakka,lament,zidane10,686xqxfg,l8v53x,caveman1,nfvthkfy,holymoly,pepita,alex1996,mifune,fighter1,asslicker,jack22,abc123abc,zaxxon,midnigh,winni,psalm23,punky,monkey22,password13,mymusic,justyna,annushka,lucky5,briann,495rus19,withlove,almaz,supergir,miata,bingbong,bradpitt,kamasutr,yfgjktjy,vanman,pegleg,amsterdam1,123a321,letmein9,shivan,korona,bmw520,annette1,scotsman,gandal,welcome12,sc00by,qpwoei,fred69,m1sf1t,hamburg1,1access,dfkmrbhbz,excalibe,boobies1,fuckhole,karamel,starfuck,star99,breakfas,georgiy,ywvxpz,smasher,fatcat1,allanon,12345n,coondog,whacko,avalon1,scythe,saab93,timon,khorne,atlast,nemisis,brady12,blenheim,52678677,mick7278,9skw5g,fleetwoo,ruger1,kissass,pussy7,scruff,12345l,bigfun,vpmfsz,yxkck878,evgeny,55667788,lickher,foothill,alesis,poppies,77777778,californi,mannie,bartjek,qhxbij,thehulk,xirt2k,angelo4ek,rfkmrekznjh,tinhorse,1david,sparky12,night1,luojianhua,bobble,nederland,rosemari,travi,minou,ciscokid,beehive,565hlgqo,alpine1,samsung123,trainman,xpress,logistic,vw198m2n,hanter,zaqwsx123,qwasz,mariachi,paska,kmg365,kaulitz,sasha12,north1,polarbear,mighty1,makeksa11,123456781,one4all,gladston,notoriou,polniypizdec110211,gosia,grandad,xholes,timofei,invalidp,speaker1,zaharov,maggiema,loislane,gonoles,br5499,discgolf,kaskad,snooper,newman1,belial,demigod,vicky1,pridurok,alex1990,tardis1,cruzer,hornie,sacramen,babycat,burunduk,mark69,oakland1,me1234,gmctruck,extacy,sexdog,putang,poppen,billyd,1qaz2w,loveable,gimlet,azwebitalia,ragtop,198500,qweas,mirela,rock123,11bravo,sprewell,tigrenok,jaredleto,vfhbif,blue2,rimjob,catwalk,sigsauer,loqse,doromich,jack01,lasombra,jonny5,newpassword,profesor,garcia1,123as123,croucher,demeter,4_life,rfhfvtkm,superman2,rogues,assword1,russia1,jeff1,mydream,z123456789,rascal1,darre,kimberl,pickle1,ztmfcq,ponchik,lovesporn,hikari,gsgba368,pornoman,chbjun,choppy,diggity,nightwolf,viktori,camar,vfhecmrf,alisa1,minstrel,wishmaster,mulder1,aleks,gogirl,gracelan,8womys,highwind,solstice,dbrnjhjdyf,nightman,pimmel,beertje,ms6nud,wwfwcw,fx3tuo,poopface,asshat,dirtyd,jiminy,luv2fuck,ptybnxtvgbjy,dragnet,pornogra,10inch,scarlet1,guido1,raintree,v123456,1aaaaaaa,maxim1935,hotwater,gadzooks,playaz,harri,brando1,defcon1,ivanna,123654a,arsenal2,candela,nt5d27,jaime1,duke1,burton1,allstar1,dragos,newpoint,albacore,1236987z,verygoodbot,1wildcat,fishy1,ptktysq,chris11,puschel,itdxtyrj,7kbe9d,serpico,jazzie,1zzzzz,kindbuds,wenef45313,1compute,tatung,sardor,gfyfcjybr,test99,toucan,meteora,lysander,asscrack,jowgnx,hevnm4,suckthis,masha123,karinka,marit,oqglh565,dragon00,vvvbbb,cheburashka,vfrfrf,downlow,unforgiven,p3e85tr,kim123,sillyboy,gold1,golfvr6,quicksan,irochka,froglegs,shortsto,caleb1,tishka,bigtitts,smurfy,bosto,dropzone,nocode,jazzbass,digdug,green7,saltlake,therat,dmitriev,lunita,deaddog,summer0,1212qq,bobbyg,mty3rh,isaac1,gusher,helloman,sugarbear,corvair,extrem,teatime,tujazopi,titanik,efyreg,jo9k2jw2,counchac,tivoli,utjvtnhbz,bebit,jacob6,clayton1,incubus1,flash123,squirter,dima2010,cock1,rawks,komatsu,forty2,98741236,cajun1,madelein,mudhoney,magomed,q111111,qaswed,consense,12345b,bakayaro,silencer,zoinks,bigdic,werwolf,pinkpuss,96321478,alfie1,ali123,sarit,minette,musics,chato,iaapptfcor,cobaka,strumpf,datnigga,sonic123,yfnecbr,vjzctvmz,pasta1,tribbles,crasher,htlbcrf,1tiger,shock123,bearshar,syphon,a654321,cubbies1,jlhanes,eyespy,fucktheworld,carrie1,bmw325is,suzuk,mander,dorina,mithril,hondo1,vfhnbyb,sachem,newton1,12345x,7777755102q,230857z,xxxsex,scubapro,hayastan,spankit,delasoul,searock6,fallout3,nilrem,24681357,pashka,voluntee,pharoh,willo,india1,badboy69,roflmao,gunslinger,lovergir,mama12,melange,640xwfkv,chaton,darkknig,bigman1,aabbccdd,harleyd,birdhouse,giggsy,hiawatha,tiberium,joker7,hello1234,sloopy,tm371855,greendog,solar1,bignose,djohn11,espanol,oswego,iridium,kavitha,pavell,mirjam,cyjdsvujljv,alpha5,deluge,hamme,luntik,turismo,stasya,kjkbnf,caeser,schnecke,tweety1,tralfaz,lambrett,prodigy1,trstno1,pimpshit,werty1,karman,bigboob,pastel,blackmen,matthew8,moomin,q1w2e,gilly,primaver,jimmyg,house2,elviss,15975321,1jessica,monaliza,salt55,vfylfhbyrf,harley11,tickleme,murder1,nurgle,kickass1,theresa1,fordtruck,pargolf,managua,inkognito,sherry1,gotit,friedric,metro2033,slk230,freeport,cigarett,492529,vfhctkm,thebeach,twocats,bakugan,yzerman1,charlieb,motoko,skiman,1234567w,pussy3,love77,asenna,buffie,260zntpc,kinkos,access20,mallard1,fuckyou69,monami,rrrrr1,bigdog69,mikola,1boomer,godzila,ginger2,dima2000,skorpion39,dima1234,hawkdog79,warrior2,ltleirf,supra1,jerusale,monkey01,333z333,666888,kelsey1,w8gkz2x1,fdfnfh,msnxbi,qwe123rty,mach1,monkey3,123456789qq,c123456,nezabudka,barclays,nisse,dasha1,12345678987654321,dima1993,oldspice,frank2,rabbitt,prettyboy,ov3ajy,iamthema,kawasak,banjo1,gtivr6,collants,gondor,hibees,cowboys2,codfish,buster2,purzel,rubyred,kayaker,bikerboy,qguvyt,masher,sseexx,kenshiro,moonglow,semenova,rosari,eduard1,deltaforce,grouper,bongo1,tempgod,1taylor,goldsink,qazxsw1,1jesus,m69fg2w,maximili,marysia,husker1,kokanee,sideout,googl,south1,plumber1,trillian,00001,1357900,farkle,1xxxxx,pascha,emanuela,bagheera,hound1,mylov,newjersey,swampfox,sakic19,torey,geforce,wu4etd,conrail,pigman,martin2,ber02,nascar2,angel69,barty,kitsune,cornet,yes90125,goomba,daking,anthea,sivart,weather1,ndaswf,scoubidou,masterchief,rectum,3364068,oranges1,copter,1samanth,eddies,mimoza,ahfywbz,celtic88,86mets,applemac,amanda11,taliesin,1angel,imhere,london11,bandit12,killer666,beer1,06225930,psylocke,james69,schumach,24pnz6kc,endymion,wookie1,poiu123,birdland,smoochie,lastone,rclaki,olive1,pirat,thunder7,chris69,rocko,151617,djg4bb4b,lapper,ajcuivd289,colole57,shadow7,dallas21,ajtdmw,executiv,dickies,omegaman,jason12,newhaven,aaaaaas,pmdmscts,s456123789,beatri,applesauce,levelone,strapon,benladen,creaven,ttttt1,saab95,f123456,pitbul,54321a,sex12345,robert3,atilla,mevefalkcakk,1johnny,veedub,lilleke,nitsuj,5t6y7u8i,teddys,bluefox,nascar20,vwjetta,buffy123,playstation3,loverr,qweasd12,lover2,telekom,benjamin1,alemania,neutrino,rockz,valjean,testicle,trinity3,realty,firestarter,794613852,ardvark,guadalup,philmont,arnold1,holas,zw6syj,birthday299,dover1,sexxy1,gojets,741236985,cance,blue77,xzibit,qwerty88,komarova,qweszxc,footer,rainger,silverst,ghjcnb,catmando,tatooine,31217221027711,amalgam,69dude,qwerty321,roscoe1,74185,cubby,alfa147,perry1,darock,katmandu,darknight,knicks1,freestuff,45454,kidman,4tlved,axlrose,cutie1,quantum1,joseph10,ichigo,pentium3,rfhectkm,rowdy1,woodsink,justforfun,sveta123,pornografia,mrbean,bigpig,tujheirf,delta9,portsmou,hotbod,kartal,10111213,fkbyf001,pavel1,pistons1,necromancer,verga,c7lrwu,doober,thegame1,hatesyou,sexisfun,1melissa,tuczno18,bowhunte,gobama,scorch,campeon,bruce2,fudge1,herpderp,bacon1,redsky,blackeye,19966991,19992000,ripken8,masturba,34524815,primax,paulina1,vp6y38,427cobra,4dwvjj,dracon,fkg7h4f3v6,longview,arakis,panama1,honda2,lkjhgfdsaz,razors,steels,fqkw5m,dionysus,mariajos,soroka,enriqu,nissa,barolo,king1234,hshfd4n279,holland1,flyer1,tbones,343104ky,modems,tk421,ybrbnrf,pikapp,sureshot,wooddoor,florida2,mrbungle,vecmrf,catsdogs,axolotl,nowayout,francoi,chris21,toenail,hartland,asdjkl,nikkii,onlyyou,buckskin,fnord,flutie,holen1,rincewind,lefty1,ducky1,199000,fvthbrf,redskin1,ryno23,lostlove,19mtpgam19,abercrom,benhur,jordan11,roflcopter,ranma,phillesh,avondale,igromania,p4ssword,jenny123,tttttt1,spycams,cardigan,2112yyz,sleepy1,paris123,mopars,lakers34,hustler1,james99,matrix3,popimp,12pack,eggbert,medvedev,testit,performa,logitec,marija,sexybeast,supermanboy,iwantit,rjktcj,jeffer,svarog,halo123,whdbtp,nokia3230,heyjoe,marilyn1,speeder,ibxnsm,prostock,bennyboy,charmin,codydog,parol999,ford9402,jimmer,crayola,159357258,alex77,joey1,cayuga,phish420,poligon,specops,tarasova,caramelo,draconis,dimon,cyzkhw,june29,getbent,1guitar,jimjam,dictiona,shammy,flotsam,0okm9ijn,crapper,technic,fwsadn,rhfdxtyrj,zaq11qaz,anfield1,159753q,curious1,hip-hop,1iiiii,gfhjkm2,cocteau,liveevil,friskie,crackhead,b1afra,elektrik,lancer1,b0ll0cks,jasond,z1234567,tempest1,alakazam,asdfasd,duffy1,oneday,dinkle,qazedctgb,kasimir,happy7,salama,hondaciv,nadezda,andretti,cannondale,sparticu,znbvjd,blueice,money01,finster,eldar,moosie,pappa,delta123,neruda,bmw330ci,jeanpaul,malibu1,alevtina,sobeit,travolta,fullmetal,enamorad,mausi,boston12,greggy,smurf1,ratrace,ichiban,ilovepus,davidg,wolf69,villa1,cocopuff,football12,starfury,zxc12345,forfree,fairfiel,dreams1,tayson,mike2,dogday,hej123,oldtimer,sanpedro,clicker,mollycat,roadstar,golfe,lvbnhbq1,topdevice,a1b2c,sevastopol,calli,milosc,fire911,pink123,team3x,nolimit5,snickers1,annies,09877890,jewel1,steve69,justin11,autechre,killerbe,browncow,slava1,christer,fantomen,redcloud,elenberg,beautiful1,passw0rd1,nazira,advantag,cockring,chaka,rjpzdrf,99941,az123456,biohazar,energie,bubble1,bmw323,tellme,printer1,glavine,1starwar,coolbeans,april17,carly1,quagmire,admin2,djkujuhfl,pontoon,texmex,carlos12,thermo,vaz2106,nougat,bob666,1hockey,1john,cricke,qwerty10,twinz,totalwar,underwoo,tijger,lildevil,123q321,germania,freddd,1scott,beefy,5t4r3e2w1q,fishbait,nobby,hogger,dnstuff,jimmyc,redknapp,flame1,tinfloor,balla,nfnfhby,yukon1,vixens,batata,danny123,1zxcvbnm,gaetan,homewood,greats,tester1,green99,1fucker,sc0tland,starss,glori,arnhem,goatman,1234asd,supertra,bill123,elguapo,sexylegs,jackryan,usmc69,innow,roaddog,alukard,winter11,crawler,gogiants,rvd420,alessandr,homegrow,gobbler,esteba,valeriy,happy12,1joshua,hawking,sicnarf,waynes,iamhappy,bayadera,august2,sashas,gotti,dragonfire,pencil1,halogen,borisov,bassingw,15975346,zachar,sweetp,soccer99,sky123,flipyou,spots3,xakepy,cyclops1,dragon77,rattolo58,motorhea,piligrim,helloween,dmb2010,supermen,shad0w,eatcum,sandokan,pinga,ufkfrnbrf,roksana,amista,pusser,sony1234,azerty1,1qasw2,ghbdt,q1w2e3r4t5y6u7i8,ktutylf,brehznev,zaebali,shitass,creosote,gjrtvjy,14938685,naughtyboy,pedro123,21crack,maurice1,joesakic,nicolas1,matthew9,lbyfhf,elocin,hfcgbplzq,pepper123,tiktak,mycroft,ryan11,firefly1,arriva,cyecvevhbr,loreal,peedee,jessica8,lisa01,anamari,pionex,ipanema,airbag,frfltvbz,123456789aa,epwr49,casper12,sweethear,sanandreas,wuschel,cocodog,france1,119911,redroses,erevan,xtvgbjy,bigfella,geneve,volvo850,evermore,amy123,moxie,celebs,geeman,underwor,haslo1,joy123,hallow,chelsea0,12435687,abarth,12332145,tazman1,roshan,yummie,genius1,chrisd,ilovelife,seventy7,qaz1wsx2,rocket88,gaurav,bobbyboy,tauchen,roberts1,locksmit,masterof,www111,d9ungl,volvos40,asdasd1,golfers,jillian1,7xm5rq,arwpls4u,gbhcf2,elloco,football2,muerte,bob101,sabbath1,strider1,killer66,notyou,lawnboy,de7mdf,johnnyb,voodoo2,sashaa,homedepo,bravos,nihao123,braindea,weedhead,rajeev,artem1,camille1,rockss,bobbyb,aniston,frnhbcf,oakridge,biscayne,cxfcnm,dressage,jesus3,kellyann,king69,juillet,holliste,h00ters,ripoff,123645,1999ar,eric12,123777,tommi,dick12,bilder,chris99,rulezz,getpaid,chicubs,ender1,byajhvfnbrf,milkshak,sk8board,freakshow,antonella,monolit,shelb,hannah01,masters1,pitbull1,1matthew,luvpussy,agbdlcid,panther2,alphas,euskadi,8318131,ronnie1,7558795,sweetgirl,cookie59,sequoia,5552555,ktyxbr,4500455,money7,severus,shinobu,dbityrf,phisig,rogue2,fractal,redfred,sebastian1,nelli,b00mer,cyberman,zqjphsyf6ctifgu,oldsmobile,redeemer,pimpi,lovehurts,1slayer,black13,rtynfdh,airmax,g00gle,1panther,artemon,nopasswo,fuck1234,luke1,trinit,666000,ziadma,oscardog,davex,hazel1,isgood,demond,james5,construc,555551,january2,m1911a1,flameboy,merda,nathan12,nicklaus,dukester,hello99,scorpio7,leviathan,dfcbktr,pourquoi,vfrcbv123,shlomo,rfcgth,rocky3,ignatz,ajhneyf,roger123,squeek,4815162342a,biskit,mossimo,soccer21,gridlock,lunker,popstar,ghhh47hj764,chutney,nitehawk,vortec,gamma1,codeman,dragula,kappasig,rainbow2,milehigh,blueballs,ou8124me,rulesyou,collingw,mystere,aster,astrovan,firetruck,fische,crawfish,hornydog,morebeer,tigerpaw,radost,144000,1chance,1234567890qwe,gracie1,myopia,oxnard,seminoles,evgeni,edvard,partytim,domani,tuffy1,jaimatadi,blackmag,kzueirf,peternor,mathew1,maggie12,henrys,k1234567,fasted,pozitiv,cfdtkbq,jessica7,goleafs,bandito,girl78,sharingan,skyhigh,bigrob,zorros,poopers,oldschoo,pentium2,gripper,norcal,kimba,artiller,moneymak,00197400,272829,shadow1212,thebull,handbags,all4u2c,bigman2,civics,godisgoo,section8,bandaid,suzanne1,zorba,159123,racecars,i62gbq,rambo123,ironroad,johnson2,knobby,twinboys,sausage1,kelly69,enter2,rhjirf,yessss,james12,anguilla,boutit,iggypop,vovochka,06060,budwiser,romuald,meditate,good1,sandrin,herkules,lakers8,honeybea,11111111a,miche,rangers9,lobster1,seiko,belova,midcon,mackdadd,bigdaddy1,daddie,sepultur,freddy12,damon1,stormy1,hockey2,bailey12,hedimaptfcor,dcowboys,sadiedog,thuggin,horny123,josie1,nikki2,beaver69,peewee1,mateus,viktorija,barrys,cubswin1,matt1234,timoxa,rileydog,sicilia,luckycat,candybar,julian1,abc456,pussylip,phase1,acadia,catty,246800,evertonf,bojangle,qzwxec,nikolaj,fabrizi,kagome,noncapa0,marle,popol,hahaha1,cossie,carla10,diggers,spankey,sangeeta,cucciolo,breezer,starwar1,cornholio,rastafari,spring99,yyyyyyy1,webstar,72d5tn,sasha1234,inhouse,gobuffs,civic1,redstone,234523,minnie1,rivaldo,angel5,sti2000,xenocide,11qq11,1phoenix,herman1,holly123,tallguy,sharks1,madri,superbad,ronin,jalal123,hardbody,1234567r,assman1,vivahate,buddylee,38972091,bonds25,40028922,qrhmis,wp2005,ceejay,pepper01,51842543,redrum1,renton,varadero,tvxtjk7r,vetteman,djhvbrc,curly1,fruitcak,jessicas,maduro,popmart,acuari,dirkpitt,buick1,bergerac,golfcart,pdtpljxrf,hooch1,dudelove,d9ebk7,123452000,afdjhbn,greener,123455432,parachut,mookie12,123456780,jeepcj5,potatoe,sanya,qwerty2010,waqw3p,gotika,freaky1,chihuahu,buccanee,ecstacy,crazyboy,slickric,blue88,fktdnbyf,2004rj,delta4,333222111,calient,ptbdhw,1bailey,blitz1,sheila1,master23,hoagie,pyf8ah,orbita,daveyboy,prono1,delta2,heman,1horny,tyrik123,ostrov,md2020,herve,rockfish,el546218,rfhbyjxrf,chessmaster,redmoon,lenny1,215487,tomat,guppy,amekpass,amoeba,my3girls,nottingh,kavita,natalia1,puccini,fabiana,8letters,romeos,netgear,casper2,taters,gowings,iforgot1,pokesmot,pollit,lawrun,petey1,rosebuds,007jr,gthtcnhjqrf,k9dls02a,neener,azertyu,duke11,manyak,tiger01,petros,supermar,mangas,twisty,spotter,takagi,dlanod,qcmfd454,tusymo,zz123456,chach,navyblue,gilbert1,2kash6zq,avemaria,1hxboqg2s,viviane,lhbjkjubz2957704,nowwowtg,1a2b3c4,m0rn3,kqigb7,superpuper,juehtw,gethigh,theclown,makeme,pradeep,sergik,deion21,nurik,devo2706,nbvibt,roman222,kalima,nevaeh,martin7,anathema,florian1,tamwsn3sja,dinmamma,133159,123654q,slicks,pnp0c08,yojimbo,skipp,kiran,pussyfuck,teengirl,apples12,myballs,angeli,1234a,125678,opelastra,blind1,armagedd,fish123,pitufo,chelseaf,thedevil,nugget1,cunt69,beetle1,carter15,apolon,collant,password00,fishboy,djkrjdf,deftone,celti,three11,cyrus1,lefthand,skoal1,ferndale,aries1,fred01,roberta1,chucks,cornbread,lloyd1,icecrea,cisco123,newjerse,vfhrbpf,passio,volcom1,rikimaru,yeah11,djembe,facile,a1l2e3x4,batman7,nurbol,lorenzo1,monica69,blowjob1,998899,spank1,233391,n123456,1bear,bellsout,999998,celtic67,sabre1,putas,y9enkj,alfabeta,heatwave,honey123,hard4u,insane1,xthysq,magnum1,lightsaber,123qweqwe,fisher1,pixie1,precios,benfic,thegirls,bootsman,4321rewq,nabokov,hightime,djghjc,1chelsea,junglist,august16,t3fkvkmj,1232123,lsdlsd12,chuckie1,pescado,granit,toogood,cathouse,natedawg,bmw530,123kid,hajime,198400,engine1,wessonnn,kingdom1,novembre,1rocks,kingfisher,qwerty89,jordan22,zasranec,megat,sucess,installutil,fetish01,yanshi1982,1313666,1314520,clemence,wargod,time1,newzealand,snaker,13324124,cfrehf,hepcat,mazahaka,bigjay,denisov,eastwest,1yellow,mistydog,cheetos,1596357,ginger11,mavrik,bubby1,bhbyf,pyramide,giusepp,luthien,honda250,andrewjackie,kentavr,lampoon,zaq123wsx,sonicx,davidh,1ccccc,gorodok,windsong,programm,blunt420,vlad1995,zxcvfdsa,tarasov,mrskin,sachas,mercedes1,koteczek,rawdog,honeybear,stuart1,kaktys,richard7,55555n,azalia,hockey10,scouter,francy,1xxxxxx,julie456,tequilla,penis123,schmoe,tigerwoods,1ferrari,popov,snowdrop,matthieu,smolensk,cornflak,jordan01,love2000,23wesdxc,kswiss,anna2000,geniusnet,baby2000,33ds5x,waverly,onlyone4,networkingpe,raven123,blesse,gocards,wow123,pjflkork,juicey,poorboy,freeee,billybo,shaheen,zxcvbnm.,berlit,truth1,gepard,ludovic,gunther1,bobby2,bob12345,sunmoon,septembr,bigmac1,bcnjhbz,seaking,all4u,12qw34er56ty,bassie,nokia5228,7355608,sylwia,charvel,billgate,davion,chablis,catsmeow,kjiflrf,amylynn,rfvbkkf,mizredhe,handjob,jasper12,erbol,solara,bagpipe,biffer,notime,erlan,8543852,sugaree,oshkosh,fedora,bangbus,5lyedn,longball,teresa1,bootyman,aleksand,qazwsxedc12,nujbhc,tifosi,zpxvwy,lights1,slowpoke,tiger12,kstate,password10,alex69,collins1,9632147,doglover,baseball2,security1,grunts,orange2,godloves,213qwe879,julieb,1qazxsw23edcvfr4,noidea,8uiazp,betsy1,junior2,parol123,123456zz,piehonkii,kanker,bunky,hingis,reese1,qaz123456,sidewinder,tonedup,footsie,blackpoo,jalapeno,mummy1,always1,josh1,rockyboy,plucky,chicag,nadroj,blarney,blood123,wheaties,packer1,ravens1,mrjones,gfhjkm007,anna2010,awatar,guitar12,hashish,scale1,tomwaits,amrita,fantasma,rfpfym,pass2,tigris,bigair,slicker,sylvi,shilpa,cindylou,archie1,bitches1,poppys,ontime,horney1,camaroz28,alladin,bujhm,cq2kph,alina1,wvj5np,1211123a,tetons,scorelan,concordi,morgan2,awacs,shanty,tomcat14,andrew123,bear69,vitae,fred99,chingy,octane,belgario,fatdaddy,rhodan,password23,sexxes,boomtown,joshua01,war3demo,my2kids,buck1,hot4you,monamour,12345aa,yumiko,parool,carlton1,neverland,rose12,right1,sociald,grouse,brandon0,cat222,alex00,civicex,bintang,malkav,arschloc,dodgeviper,qwerty666,goduke,dante123,boss1,ontheroc,corpsman,love14,uiegu451,hardtail,irondoor,ghjrehfnehf,36460341,konijn,h2slca,kondom25,123456ss,cfytxrf,btnjey,nando,freemail,comander,natas666,siouxsie,hummer1,biomed,dimsum,yankees0,diablo666,lesbian1,pot420,jasonm,glock23,jennyb,itsmine,lena2010,whattheh,beandip,abaddon,kishore,signup,apogee,biteme12,suzieq,vgfun4,iseeyou,rifleman,qwerta,4pussy,hawkman,guest1,june17,dicksuck,bootay,cash12,bassale,ktybyuhfl,leetch,nescafe,7ovtgimc,clapton1,auror,boonie,tracker1,john69,bellas,cabinboy,yonkers,silky1,ladyffesta,drache,kamil1,davidp,bad123,snoopy12,sanche,werthvfy,achille,nefertiti,gerald1,slage33,warszawa,macsan26,mason123,kotopes,welcome8,nascar99,kiril,77778888,hairy1,monito,comicsans,81726354,killabee,arclight,yuo67,feelme,86753099,nnssnn,monday12,88351132,88889999,websters,subito,asdf12345,vaz2108,zvbxrpl,159753456852,rezeda,multimed,noaccess,henrique,tascam,captiva,zadrot,hateyou,sophie12,123123456,snoop1,charlie8,birmingh,hardline,libert,azsxdcf,89172735872,rjpthju,bondar,philips1,olegnaruto,myword,yakman,stardog,banana12,1234567890w,farout,annick,duke01,rfj422,billard,glock19,shaolin1,master10,cinderel,deltaone,manning1,biggreen,sidney1,patty1,goforit1,766rglqy,sevendus,aristotl,armagedo,blumen,gfhfyjz,kazakov,lekbyxxx,accord1,idiota,soccer16,texas123,victoire,ololo,chris01,bobbbb,299792458,eeeeeee1,confiden,07070,clarks,techno1,kayley,stang1,wwwwww1,uuuuu1,neverdie,jasonr,cavscout,481516234,mylove1,shaitan,1qazxcvb,barbaros,123456782000,123wer,thissucks,7seven,227722,faerie,hayduke,dbacks,snorkel,zmxncbv,tiger99,unknown1,melmac,polo1234,sssssss1,1fire,369147,bandung,bluejean,nivram,stanle,ctcnhf,soccer20,blingbli,dirtball,alex2112,183461,skylin,boobman,geronto,brittany1,yyz2112,gizmo69,ktrcec,dakota12,chiken,sexy11,vg08k714,bernadet,1bulldog,beachs,hollyb,maryjoy,margo1,danielle1,chakra,alexand,hullcity,matrix12,sarenna,pablos,antler,supercar,chomsky,german1,airjordan,545ettvy,camaron,flight1,netvideo,tootall,valheru,481516,1234as,skimmer,redcross,inuyash,uthvfy,1012nw,edoardo,bjhgfi,golf11,9379992a,lagarto,socball,boopie,krazy,.adgjmptw,gaydar,kovalev,geddylee,firstone,turbodog,loveee,135711,badbo,trapdoor,opopop11,danny2,max2000,526452,kerry1,leapfrog,daisy2,134kzbip,1andrea,playa1,peekab00,heskey,pirrello,gsewfmck,dimon4ik,puppie,chelios,554433,hypnodanny,fantik,yhwnqc,ghbdtngjrf,anchorag,buffett1,fanta,sappho,024680,vialli,chiva,lucylu,hashem,exbntkm,thema,23jordan,jake11,wildside,smartie,emerica,2wj2k9oj,ventrue,timoth,lamers,baerchen,suspende,boobis,denman85,1adam12,otello,king12,dzakuni,qsawbbs,isgay,porno123,jam123,daytona1,tazzie,bunny123,amaterasu,jeffre,crocus,mastercard,bitchedup,chicago7,aynrand,intel1,tamila,alianza,mulch,merlin12,rose123,alcapone,mircea,loveher,joseph12,chelsea6,dorothy1,wolfgar,unlimite,arturik,qwerty3,paddy1,piramid,linda123,cooool,millie1,warlock1,forgotit,tort02,ilikeyou,avensis,loveislife,dumbass1,clint1,2110se,drlove,olesia,kalinina,sergey123,123423,alicia1,markova,tri5a3,media1,willia1,xxxxxxx1,beercan,smk7366,jesusislord,motherfuck,smacker,birthday5,jbaby,harley2,hyper1,a9387670a,honey2,corvet,gjmptw,rjhjkmbien,apollon,madhuri,3a5irt,cessna17,saluki,digweed,tamia1,yja3vo,cfvlehfr,1111111q,martyna,stimpy1,anjana,yankeemp,jupiler,idkfa,1blue,fromv,afric,3xbobobo,liverp00l,nikon1,amadeus1,acer123,napoleo,david7,vbhjckfdf,mojo69,percy1,pirates1,grunt1,alenushka,finbar,zsxdcf,mandy123,1fred,timewarp,747bbb,druids,julia123,123321qq,spacebar,dreads,fcbarcelona,angela12,anima,christopher1,stargazer,123123s,hockey11,brewski,marlbor,blinker,motorhead,damngood,werthrf,letmein3,moremoney,killer99,anneke,eatit,pilatus,andrew01,fiona1,maitai,blucher,zxgdqn,e5pftu,nagual,panic1,andron,openwide,alphabeta,alison1,chelsea8,fende,mmm666,1shot2,a19l1980,123456@,1black,m1chael,vagner,realgood,maxxx,vekmnbr,stifler,2509mmh,tarkan,sherzod,1234567b,gunners1,artem2010,shooby,sammie1,p123456,piggie,abcde12345,nokia6230,moldir,piter,1qaz3edc,frequenc,acuransx,1star,nikeair,alex21,dapimp,ranjan,ilovegirls,anastasiy,berbatov,manso,21436587,leafs1,106666,angelochek,ingodwetrust,123456aaa,deano,korsar,pipetka,thunder9,minka,himura,installdevic,1qqqqq,digitalprodu,suckmeoff,plonker,headers,vlasov,ktr1996,windsor1,mishanya,garfield1,korvin,littlebit,azaz09,vandamme,scripto,s4114d,passward,britt1,r1chard,ferrari5,running1,7xswzaq,falcon2,pepper76,trademan,ea53g5,graham1,volvos80,reanimator,micasa,1234554321q,kairat,escorpion,sanek94,karolina1,kolovrat,karen2,1qaz@wsx,racing1,splooge,sarah2,deadman1,creed1,nooner,minicoop,oceane,room112,charme,12345ab,summer00,wetcunt,drewman,nastyman,redfire,appels,merlin69,dolfin,bornfree,diskette,ohwell,12345678qwe,jasont,madcap,cobra2,dolemit1,whatthehell,juanit,voldemar,rocke,bianc,elendil,vtufgjkbc,hotwheels,spanis,sukram,pokerface,k1ller,freakout,dontae,realmadri,drumss,gorams,258789,snakey,jasonn,whitewolf,befree,johnny99,pooka,theghost,kennys,vfvektxrf,toby1,jumpman23,deadlock,barbwire,stellina,alexa1,dalamar,mustanggt,northwes,tesoro,chameleo,sigtau,satoshi,george11,hotcum,cornell1,golfer12,geek01d,trololo,kellym,megapolis,pepsi2,hea666,monkfish,blue52,sarajane,bowler1,skeets,ddgirls,hfccbz,bailey01,isabella1,dreday,moose123,baobab,crushme,000009,veryhot,roadie,meanone,mike18,henriett,dohcvtec,moulin,gulnur,adastra,angel9,western1,natura,sweetpe,dtnfkm,marsbar,daisys,frogger1,virus1,redwood1,streetball,fridolin,d78unhxq,midas,michelob,cantik,sk2000,kikker,macanudo,rambone,fizzle,20000,peanuts1,cowpie,stone32,astaroth,dakota01,redso,mustard1,sexylove,giantess,teaparty,bobbin,beerbong,monet1,charles3,anniedog,anna1988,cameleon,longbeach,tamere,qpful542,mesquite,waldemar,12345zx,iamhere,lowboy,canard,granp,daisymay,love33,moosejaw,nivek,ninjaman,shrike01,aaa777,88002000600,vodolei,bambush,falcor,harley69,alphaomega,severine,grappler,bosox,twogirls,gatorman,vettes,buttmunch,chyna,excelsio,crayfish,birillo,megumi,lsia9dnb9y,littlebo,stevek,hiroyuki,firehous,master5,briley2,gangste,chrisk,camaleon,bulle,troyboy,froinlaven,mybutt,sandhya,rapala,jagged,crazycat,lucky12,jetman,wavmanuk,1heather,beegee,negril,mario123,funtime1,conehead,abigai,mhorgan,patagoni,travel1,backspace,frenchfr,mudcat,dashenka,baseball3,rustys,741852kk,dickme,baller23,griffey1,suckmycock,fuhrfzgc,jenny2,spuds,berlin1,justfun,icewind,bumerang,pavlusha,minecraft123,shasta1,ranger12,123400,twisters,buthead,miked,finance1,dignity7,hello9,lvjdp383,jgthfnjh,dalmatio,paparoach,miller31,2bornot2b,fathe,monterre,theblues,satans,schaap,jasmine2,sibelius,manon,heslo,jcnhjd,shane123,natasha2,pierrot,bluecar,iloveass,harriso,red12,london20,job314,beholder,reddawg,fuckyou!,pussylick,bologna1,austintx,ole4ka,blotto,onering,jearly,balbes,lightbul,bighorn,crossfir,lee123,prapor,1ashley,gfhjkm22,wwe123,09090,sexsite,marina123,jagua,witch1,schmoo,parkview,dragon3,chilango,ultimo,abramova,nautique,2bornot2,duende,1arthur,nightwing,surfboar,quant4307,15s9pu03,karina1,shitball,walleye1,wildman1,whytesha,1morgan,my2girls,polic,baranova,berezuckiy,kkkkkk1,forzima,fornow,qwerty02,gokart,suckit69,davidlee,whatnow,edgard,tits1,bayshore,36987412,ghbphfr,daddyy,explore1,zoidberg,5qnzjx,morgane,danilov,blacksex,mickey12,balsam,83y6pv,sarahc,slaye,all4u2,slayer69,nadia1,rlzwp503,4cranker,kaylie,numberon,teremok,wolf12,deeppurple,goodbeer,aaa555,66669999,whatif,harmony1,ue8fpw,3tmnej,254xtpss,dusty197,wcksdypk,zerkalo,dfnheirf,motorol,digita,whoareyou,darksoul,manics,rounders,killer11,d2000lb,cegthgfhjkm,catdog1,beograd,pepsico,julius1,123654987,softbal,killer23,weasel1,lifeson,q123456q,444555666,bunches,andy1,darby1,service01,bear11,jordan123,amega,duncan21,yensid,lerxst,rassvet,bronco2,fortis,pornlove,paiste,198900,asdflkjh,1236547890,futur,eugene1,winnipeg261,fk8bhydb,seanjohn,brimston,matthe1,bitchedu,crisco,302731,roxydog,woodlawn,volgograd,ace1210,boy4u2ownnyc,laura123,pronger,parker12,z123456z,andrew13,longlife,sarang,drogba,gobruins,soccer4,holida,espace,almira,murmansk,green22,safina,wm00022,1chevy,schlumpf,doroth,ulises,golf99,hellyes,detlef,mydog,erkina,bastardo,mashenka,sucram,wehttam,generic1,195000,spaceboy,lopas123,scammer,skynyrd,daddy2,titani,ficker,cr250r,kbnthfnehf,takedown,sticky1,davidruiz,desant,nremtp,painter1,bogies,agamemno,kansas1,smallfry,archi,2b4dnvsx,1player,saddie,peapod,6458zn7a,qvw6n2,gfxqx686,twice2,sh4d0w3d,mayfly,375125,phitau,yqmbevgk,89211375759,kumar1,pfhfpf,toyboy,way2go,7pvn4t,pass69,chipster,spoony,buddycat,diamond3,rincewin,hobie,david01,billbo,hxp4life,matild,pokemon2,dimochka,clown1,148888,jenmt3,cuxldv,cqnwhy,cde34rfv,simone1,verynice,toobig,pasha123,mike00,maria2,lolpop,firewire,dragon9,martesana,a1234567890,birthday3,providen,kiska,pitbulls,556655,misawa,damned69,martin11,goldorak,gunship,glory1,winxclub,sixgun,splodge,agent1,splitter,dome69,ifghjb,eliza1,snaiper,wutang36,phoenix7,666425,arshavin,paulaner,namron,m69fg1w,qwert1234,terrys,zesyrmvu,joeman,scoots,dwml9f,625vrobg,sally123,gostoso,symow8,pelota,c43qpul5rz,majinbuu,lithium1,bigstuff,horndog1,kipelov,kringle,1beavis,loshara,octobe,jmzacf,12342000,qw12qw,runescape1,chargers1,krokus,piknik,jessy,778811,gjvbljh,474jdvff,pleaser,misskitty,breaker1,7f4df451,dayan,twinky,yakumo,chippers,matia,tanith,len2ski1,manni,nichol1,f00b4r,nokia3110,standart,123456789i,shami,steffie,larrywn,chucker,john99,chamois,jjjkkk,penmouse,ktnj2010,gooners,hemmelig,rodney1,merlin01,bearcat1,1yyyyy,159753z,1fffff,1ddddd,thomas11,gjkbyrf,ivanka,f1f2f3,petrovna,phunky,conair,brian2,creative1,klipsch,vbitymrf,freek,breitlin,cecili,westwing,gohabsgo,tippmann,1steve,quattro6,fatbob,sp00ky,rastas,1123581,redsea,rfnmrf,jerky1,1aaaaaa,spk666,simba123,qwert54321,123abcd,beavis69,fyfyfc,starr1,1236547,peanutbutter,sintra,12345abcde,1357246,abcde1,climbon,755dfx,mermaids,monte1,serkan,geilesau,777win,jasonc,parkside,imagine1,rockhead,producti,playhard,principa,spammer,gagher,escada,tsv1860,dbyjuhfl,cruiser1,kennyg,montgome,2481632,pompano,cum123,angel6,sooty,bear01,april6,bodyhamm,pugsly,getrich,mikes,pelusa,fosgate,jasonp,rostislav,kimberly1,128mo,dallas11,gooner1,manuel1,cocacola1,imesh,5782790,password8,daboys,1jones,intheend,e3w2q1,whisper1,madone,pjcgujrat,1p2o3i,jamesp,felicida,nemrac,phikap,firecat,jrcfyjxrf,matt12,bigfan,doedel,005500,jasonx,1234567k,badfish,goosey,utjuhfabz,wilco,artem123,igor123,spike123,jor23dan,dga9la,v2jmsz,morgan12,avery1,dogstyle,natasa,221195ws,twopac,oktober7,karthik,poop1,mightymo,davidr,zermatt,jehova,aezakmi1,dimwit,monkey5,serega123,qwerty111,blabl,casey22,boy123,1clutch,asdfjkl1,hariom,bruce10,jeep95,1smith,sm9934,karishma,bazzzz,aristo,669e53e1,nesterov,kill666,fihdfv,1abc2,anna1,silver11,mojoman,telefono,goeagles,sd3lpgdr,rfhfynby,melinda1,llcoolj,idteul,bigchief,rocky13,timberwo,ballers,gatekeep,kashif,hardass,anastasija,max777,vfuyjkbz,riesling,agent99,kappas,dalglish,tincan,orange3,turtoise,abkbvjy,mike24,hugedick,alabala,geolog,aziza,devilboy,habanero,waheguru,funboy,freedom5,natwest,seashore,impaler,qwaszx1,pastas,bmw535,tecktonik,mika00,jobsearc,pinche,puntang,aw96b6,1corvett,skorpio,foundati,zzr1100,gembird,vfnhjcrby,soccer18,vaz2110,peterp,archer1,cross1,samedi,dima1992,hunter99,lipper,hotbody,zhjckfdf,ducati1,trailer1,04325956,cheryl1,benetton,kononenko,sloneczko,rfgtkmrf,nashua,balalaika,ampere,eliston,dorsai,digge,flyrod,oxymoron,minolta,ironmike,majortom,karimov,fortun,putaria,an83546921an13,blade123,franchis,mxaigtg5,dynxyu,devlt4,brasi,terces,wqmfuh,nqdgxz,dale88,minchia,seeyou,housepen,1apple,1buddy,mariusz,bighouse,tango2,flimflam,nicola1,qwertyasd,tomek1,shumaher,kartoshka,bassss,canaries,redman1,123456789as,preciosa,allblacks,navidad,tommaso,beaudog,forrest1,green23,ryjgjxrf,go4it,ironman2,badnews,butterba,1grizzly,isaeva,rembrand,toront,1richard,bigjon,yfltymrf,1kitty,4ng62t,littlejo,wolfdog,ctvtyjd,spain1,megryan,tatertot,raven69,4809594q,tapout,stuntman,a131313,lagers,hotstuf,lfdbl11,stanley2,advokat,boloto,7894561,dooker,adxel187,cleodog,4play,0p9o8i,masterb,bimota,charlee,toystory,6820055,6666667,crevette,6031769,corsa,bingoo,dima1990,tennis11,samuri,avocado,melissa6,unicor,habari,metart,needsex,cockman,hernan,3891576,3334444,amigo1,gobuffs2,mike21,allianz,2835493,179355,midgard,joey123,oneluv,ellis1,towncar,shonuff,scouse,tool69,thomas19,chorizo,jblaze,lisa1,dima1999,sophia1,anna1989,vfvekbxrf,krasavica,redlegs,jason25,tbontb,katrine,eumesmo,vfhufhbnrf,1654321,asdfghj1,motdepas,booga,doogle,1453145,byron1,158272,kardinal,tanne,fallen1,abcd12345,ufyljy,n12345,kucing,burberry,bodger,1234578,februar,1234512,nekkid,prober,harrison1,idlewild,rfnz90,foiegras,pussy21,bigstud,denzel,tiffany2,bigwill,1234567890zzz,hello69,compute1,viper9,hellspaw,trythis,gococks,dogballs,delfi,lupine,millenia,newdelhi,charlest,basspro,1mike,joeblack,975310,1rosebud,batman11,misterio,fucknut,charlie0,august11,juancho,ilonka,jigei743ks,adam1234,889900,goonie,alicat,ggggggg1,1zzzzzzz,sexywife,northstar,chris23,888111,containe,trojan1,jason5,graikos,1ggggg,1eeeee,tigers01,indigo1,hotmale,jacob123,mishima,richard3,cjxb2014,coco123,meagain,thaman,wallst,edgewood,bundas,1power,matilda1,maradon,hookedup,jemima,r3vi3wpass,2004-10-,mudman,taz123,xswzaq,emerson1,anna21,warlord1,toering,pelle,tgwdvu,masterb8,wallstre,moppel,priora,ghjcnjrdfif,yoland,12332100,1j9e7f6f,jazzzz,yesman,brianm,42qwerty42,12345698,darkmanx,nirmal,john31,bb123456,neuspeed,billgates,moguls,fj1200,hbhlair,shaun1,ghbdfn,305pwzlr,nbu3cd,susanb,pimpdad,mangust6403,joedog,dawidek,gigante,708090,703751,700007,ikalcr,tbivbn,697769,marvi,iyaayas,karen123,jimmyboy,dozer1,e6z8jh,bigtime1,getdown,kevin12,brookly,zjduc3,nolan1,cobber,yr8wdxcq,liebe,m1garand,blah123,616879,action1,600000,sumitomo,albcaz,asian1,557799,dave69,556699,sasa123,streaker,michel1,karate1,buddy7,daulet,koks888,roadtrip,wapiti,oldguy,illini1,1234qq,mrspock,kwiatek,buterfly,august31,jibxhq,jackin,taxicab,tristram,talisker,446655,444666,chrisa,freespace,vfhbfyyf,chevell,444333,notyours,442244,christian1,seemore,sniper12,marlin1,joker666,multik,devilish,crf450,cdfoli,eastern1,asshead,duhast,voyager2,cyberia,1wizard,cybernet,iloveme1,veterok,karandash,392781,looksee,diddy,diabolic,foofight,missey,herbert1,bmw318i,premier1,zsfmpv,eric1234,dun6sm,fuck11,345543,spudman,lurker,bitem,lizzy1,ironsink,minami,339311,s7fhs127,sterne,332233,plankton,galax,azuywe,changepa,august25,mouse123,sikici,killer69,xswqaz,quovadis,gnomik,033028pw,777777a,barrakuda,spawn666,goodgod,slurp,morbius,yelnats,cujo31,norman1,fastone,earwig,aureli,wordlife,bnfkbz,yasmi,austin123,timberla,missy2,legalize,netcom,liljon,takeit,georgin,987654321z,warbird,vitalina,all4u3,mmmmmm1,bichon,ellobo,wahoos,fcazmj,aksarben,lodoss,satnam,vasili,197800,maarten,sam138989,0u812,ankita,walte,prince12,anvils,bestia,hoschi,198300,univer,jack10,ktyecbr,gr00vy,hokie,wolfman1,fuckwit,geyser,emmanue,ybrjkftd,qwerty33,karat,dblock,avocat,bobbym,womersle,1please,nostra,dayana,billyray,alternat,iloveu1,qwerty69,rammstein1,mystikal,winne,drawde,executor,craxxxs,ghjcnjnf,999888777,welshman,access123,963214785,951753852,babe69,fvcnthlfv,****me,666999666,testing2,199200,nintendo64,oscarr,guido8,zhanna,gumshoe,jbird,159357456,pasca,123452345,satan6,mithrand,fhbirf,aa1111aa,viggen,ficktjuv,radial9,davids1,rainbow7,futuro,hipho,platin,poppy123,rhenjq,fulle,rosit,chicano,scrumpy,lumpy1,seifer,uvmrysez,autumn1,xenon,susie1,7u8i9o0p,gamer1,sirene,muffy1,monkeys1,kalinin,olcrackmaster,hotmove,uconn,gshock,merson,lthtdyz,pizzaboy,peggy1,pistache,pinto1,fishka,ladydi,pandor,baileys,hungwell,redboy,rookie1,amanda01,passwrd,clean1,matty1,tarkus,jabba1,bobster,beer30,solomon1,moneymon,sesamo,fred11,sunnysid,jasmine5,thebears,putamadre,workhard,flashbac,counter1,liefde,magnat,corky1,green6,abramov,lordik,univers,shortys,david3,vip123,gnarly,1234567s,billy2,honkey,deathstar,grimmy,govinda,direktor,12345678s,linus1,shoppin,rekbrjdf,santeria,prett,berty75,mohican,daftpunk,uekmyfhf,chupa,strats,ironbird,giants56,salisbur,koldun,summer04,pondscum,jimmyj,miata1,george3,redshoes,weezie,bartman1,0p9o8i7u,s1lver,dorkus,125478,omega9,sexisgood,mancow,patric1,jetta1,074401,ghjuhtcc,gfhjk,bibble,terry2,123213,medicin,rebel2,hen3ry,4freedom,aldrin,lovesyou,browny,renwod,winnie1,belladon,1house,tyghbn,blessme,rfhfrfnbwf,haylee,deepdive,booya,phantasy,gansta,cock69,4mnveh,gazza1,redapple,structur,anakin1,manolito,steve01,poolman,chloe123,vlad1998,qazwsxe,pushit,random123,ontherocks,o236nq,brain1,dimedrol,agape,rovnogod,1balls,knigh,alliso,love01,wolf01,flintstone,beernuts,tuffguy,isengard,highfive,alex23,casper99,rubina,getreal,chinita,italian1,airsoft,qwerty23,muffdiver,willi1,grace123,orioles1,redbull1,chino1,ziggy123,breadman,estefan,ljcneg,gotoit,logan123,wideglid,mancity1,treess,qwe123456,kazumi,qweasdqwe,oddworld,naveed,protos,towson,a801016,godislov,at_asp,bambam1,soccer5,dark123,67vette,carlos123,hoser1,scouser,wesdxc,pelus,dragon25,pflhjn,abdula,1freedom,policema,tarkin,eduardo1,mackdad,gfhjkm11,lfplhfgthvf,adilet,zzzzxxxx,childre,samarkand,cegthgegth,shama,fresher,silvestr,greaser,allout,plmokn,sexdrive,nintendo1,fantasy7,oleander,fe126fd,crumpet,pingzing,dionis,hipster,yfcnz,requin,calliope,jerome1,housecat,abc123456789,doghot,snake123,augus,brillig,chronic1,gfhjkbot,expediti,noisette,master7,caliban,whitetai,favorite3,lisamari,educatio,ghjhjr,saber1,zcegth,1958proman,vtkrbq,milkdud,imajica,thehip,bailey10,hockey19,dkflbdjcnjr,j123456,bernar,aeiouy,gamlet,deltachi,endzone,conni,bcgfybz,brandi1,auckland2010,7653ajl1,mardigra,testuser,bunko18,camaro67,36936,greenie,454dfmcq,6xe8j2z4,mrgreen,ranger5,headhunt,banshee1,moonunit,zyltrc,hello3,pussyboy,stoopid,tigger11,yellow12,drums1,blue02,kils123,junkman,banyan,jimmyjam,tbbucs,sportster,badass1,joshie,braves10,lajolla,1amanda,antani,78787,antero,19216801,chich,rhett32,sarahm,beloit,sucker69,corkey,nicosnn,rccola,caracol,daffyduc,bunny2,mantas,monkies,hedonist,cacapipi,ashton1,sid123,19899891,patche,greekgod,cbr1000,leader1,19977991,ettore,chongo,113311,picass,cfif123,rhtfnbd,frances1,andy12,minnette,bigboy12,green69,alices,babcia,partyboy,javabean,freehand,qawsed123,xxx111,harold1,passwo,jonny1,kappa1,w2dlww3v5p,1merlin,222999,tomjones,jakeman,franken,markhegarty,john01,carole1,daveman,caseys,apeman,mookey,moon123,claret,titans1,residentevil,campari,curitiba,dovetail,aerostar,jackdaniels,basenji,zaq12w,glencoe,biglove,goober12,ncc170,far7766,monkey21,eclipse9,1234567v,vanechka,aristote,grumble,belgorod,abhishek,neworleans,pazzword,dummie,sashadog,diablo11,mst3000,koala1,maureen1,jake99,isaiah1,funkster,gillian1,ekaterina20,chibears,astra123,4me2no,winte,skippe,necro,windows9,vinograd,demolay,vika2010,quiksilver,19371ayj,dollar1,shecky,qzwxecrv,butterfly1,merrill1,scoreland,1crazy,megastar,mandragora,track1,dedhed,jacob2,newhope,qawsedrftgyh,shack1,samvel,gatita,shyster,clara1,telstar,office1,crickett,truls,nirmala,joselito,chrisl,lesnik,aaaabbbb,austin01,leto2010,bubbie,aaa12345,widder,234432,salinger,mrsmith,qazsedcft,newshoes,skunks,yt1300,bmw316,arbeit,smoove,123321qweewq,123qazwsx,22221111,seesaw,0987654321a,peach1,1029384756q,sereda,gerrard8,shit123,batcave,energy1,peterb,mytruck,peter12,alesya,tomato1,spirou,laputaxx,magoo1,omgkremidia,knight12,norton1,vladislava,shaddy,austin11,jlbyjxrf,kbdthgekm,punheta,fetish69,exploiter,roger2,manstein,gtnhjd,32615948worms,dogbreath,ujkjdjkjvrf,vodka1,ripcord,fatrat,kotek1,tiziana,larrybir,thunder3,nbvfnb,9kyq6fge,remembe,likemike,gavin1,shinigam,yfcnfcmz,13245678,jabbar,vampyr,ane4ka,lollipo,ashwin,scuderia,limpdick,deagle,3247562,vishenka,fdhjhf,alex02,volvov70,mandys,bioshock,caraca,tombraider,matrix69,jeff123,13579135,parazit,black3,noway1,diablos,hitmen,garden1,aminor,decembe,august12,b00ger,006900,452073t,schach,hitman1,mariner1,vbnmrf,paint1,742617000027,bitchboy,pfqxjyjr,5681392,marryher,sinnet,malik1,muffin12,aninha,piolin,lady12,traffic1,cbvjyf,6345789,june21,ivan2010,ryan123,honda99,gunny,coorslight,asd321,hunter69,7224763,sonofgod,dolphins1,1dolphin,pavlenko,woodwind,lovelov,pinkpant,gblfhfcbyf,hotel1,justinbiebe,vinter,jeff1234,mydogs,1pizza,boats1,parrothe,shawshan,brooklyn1,cbrown,1rocky,hemi426,dragon64,redwings1,porsches,ghostly,hubbahub,buttnut,b929ezzh,sorokina,flashg,fritos,b7mguk,metatron,treehous,vorpal,8902792,marcu,free123,labamba,chiefs1,zxc123zxc,keli_14,hotti,1steeler,money4,rakker,foxwoods,free1,ahjkjd,sidorova,snowwhit,neptune1,mrlover,trader1,nudelamb,baloo,power7,deltasig,bills1,trevo,7gorwell,nokia6630,nokia5320,madhatte,1cowboys,manga1,namtab,sanjar,fanny1,birdman1,adv12775,carlo1,dude1998,babyhuey,nicole11,madmike,ubvyfpbz,qawsedr,lifetec,skyhook,stalker123,toolong,robertso,ripazha,zippy123,1111111a,manol,dirtyman,analslut,jason3,dutches,minhasenha,cerise,fenrir,jayjay1,flatbush,franka,bhbyjxrf,26429vadim,lawntrax,198700,fritzy,nikhil,ripper1,harami,truckman,nemvxyheqdd5oqxyxyzi,gkfytnf,bugaboo,cableman,hairpie,xplorer,movado,hotsex69,mordred,ohyeah1,patrick3,frolov,katieh,4311111q,mochaj,presari,bigdo,753951852,freedom4,kapitan,tomas1,135795,sweet123,pokers,shagme,tane4ka,sentinal,ufgyndmv,jonnyb,skate123,123456798,123456788,very1,gerrit,damocles,dollarbi,caroline1,lloyds,pizdets,flatland,92702689,dave13,meoff,ajnjuhfabz,achmed,madison9,744744z,amonte,avrillavigne,elaine1,norma1,asseater,everlong,buddy23,cmgang1,trash1,mitsu,flyman,ulugbek,june27,magistr,fittan,sebora64,dingos,sleipnir,caterpil,cindys,212121qaz,partys,dialer,gjytltkmybr,qweqaz,janvier,rocawear,lostboy,aileron,sweety1,everest1,pornman,boombox,potter1,blackdic,44448888,eric123,112233aa,2502557i,novass,nanotech,yourname,x12345,indian1,15975300,1234567l,carla51,chicago0,coleta,cxzdsaewq,qqwweerr,marwan,deltic,hollys,qwerasd,pon32029,rainmake,nathan0,matveeva,legioner,kevink,riven,tombraid,blitzen,a54321,jackyl,chinese1,shalimar,oleg1995,beaches1,tommylee,eknock,berli,monkey23,badbob,pugwash,likewhoa,jesus2,yujyd360,belmar,shadow22,utfp5e,angelo1,minimax,pooder,cocoa1,moresex,tortue,lesbia,panthe,snoopy2,drumnbass,alway,gmcz71,6jhwmqku,leppard,dinsdale,blair1,boriqua,money111,virtuagirl,267605,rattlesn,1sunshin,monica12,veritas1,newmexic,millertime,turandot,rfvxfnrf,jaydog,kakawka,bowhunter,booboo12,deerpark,erreway,taylorma,rfkbybyf,wooglin,weegee,rexdog,iamhorny,cazzo1,vhou812,bacardi1,dctktyyfz,godpasi,peanut12,bertha1,fuckyoubitch,ghosty,altavista,jertoot,smokeit,ghjcnbvtyz,fhnehxbr,rolsen,qazxcdews,maddmaxx,redrocke,qazokm,spencer2,thekiller,asdf11,123sex,tupac1,p1234567,dbrown,1biteme,tgo4466,316769,sunghi,shakespe,frosty1,gucci1,arcana,bandit01,lyubov,poochy,dartmout,magpies1,sunnyd,mouseman,summer07,chester7,shalini,danbury,pigboy,dave99,deniss,harryb,ashley11,pppppp1,01081988m,balloon1,tkachenko,bucks1,master77,pussyca,tricky1,zzxxccvv,zoulou,doomer,mukesh,iluv69,supermax,todays,thefox,don123,dontask,diplom,piglett,shiney,fahbrf,qaz12wsx,temitope,reggin,project1,buffy2,inside1,lbpfqyth,vanilla1,lovecock,u4slpwra,fylh.irf,123211,7ertu3ds,necroman,chalky,artist1,simpso,4x7wjr,chaos666,lazyacres,harley99,ch33s3,marusa,eagle7,dilligas,computadora,lucky69,denwer,nissan350z,unforgiv,oddball,schalke0,aztec1,borisova,branden1,parkave,marie123,germa,lafayett,878kckxy,405060,cheeseca,bigwave,fred22,andreea,poulet,mercutio,psycholo,andrew88,o4izdmxu,sanctuar,newhome,milion,suckmydi,rjvgm.nth,warior,goodgame,1qwertyuiop,6339cndh,scorpio2,macker,southbay,crabcake,toadie,paperclip,fatkid,maddo,cliff1,rastafar,maries,twins1,geujdrf,anjela,wc4fun,dolina,mpetroff,rollout,zydeco,shadow3,pumpki,steeda,volvo240,terras,blowjo,blue2000,incognit,badmojo,gambit1,zhukov,station1,aaronb,graci,duke123,clipper1,qazxsw2,ledzeppe,kukareku,sexkitte,cinco,007008,lakers12,a1234b,acmilan1,afhfjy,starrr,slutty3,phoneman,kostyan,bonzo1,sintesi07,ersatz,cloud1,nephilim,nascar03,rey619,kairos,123456789e,hardon1,boeing1,juliya,hfccdtn,vgfun8,polizei,456838,keithb,minouche,ariston,savag,213141,clarkken,microwav,london2,santacla,campeo,qr5mx7,464811,mynuts,bombo,1mickey,lucky8,danger1,ironside,carter12,wyatt1,borntorun,iloveyou123,jose1,pancake1,tadmichaels,monsta,jugger,hunnie,triste,heat7777,ilovejesus,queeny,luckycharm,lieben,gordolee85,jtkirk,forever21,jetlag,skylane,taucher,neworlea,holera,000005,anhnhoem,melissa7,mumdad,massimiliano,dima1994,nigel1,madison3,slicky,shokolad,serenit,jmh1978,soccer123,chris3,drwho,rfpzdrf,1qasw23ed,free4me,wonka,sasquatc,sanan,maytag,verochka,bankone,molly12,monopoli,xfqybr,lamborgini,gondolin,candycane,needsome,jb007,scottie1,brigit,0147258369,kalamazo,lololyo123,bill1234,ilovejes,lol123123,popkorn,april13,567rntvm,downunde,charle1,angelbab,guildwars,homeworld,qazxcvbnm,superma1,dupa123,kryptoni,happyy,artyom,stormie,cool11,calvin69,saphir,konovalov,jansport,october8,liebling,druuna,susans,megans,tujhjdf,wmegrfux,jumbo1,ljb4dt7n,012345678910,kolesnik,speculum,at4gftlw,kurgan,93pn75,cahek0980,dallas01,godswill,fhifdby,chelsea4,jump23,barsoom,catinhat,urlacher,angel99,vidadi1,678910,lickme69,topaz1,westend,loveone,c12345,gold12,alex1959,mamon,barney12,1maggie,alex12345,lp2568cskt,s1234567,gjikbdctyf,anthony0,browns99,chips1,sunking,widespre,lalala1,tdutif,fucklife,master00,alino4ka,stakan,blonde1,phoebus,tenore,bvgthbz,brunos,suzjv8,uvdwgt,revenant,1banana,veroniqu,sexfun,sp1der,4g3izhox,isakov,shiva1,scooba,bluefire,wizard12,dimitris,funbags,perseus,hoodoo,keving,malboro,157953,a32tv8ls,latics,animate,mossad,yejntb,karting,qmpq39zr,busdrive,jtuac3my,jkne9y,sr20dett,4gxrzemq,keylargo,741147,rfktylfhm,toast1,skins1,xcalibur,gattone,seether,kameron,glock9mm,julio1,delenn,gameday,tommyd,str8edge,bulls123,66699,carlsberg,woodbird,adnama,45auto,codyman,truck2,1w2w3w4w,pvjegu,method1,luetdi,41d8cd98f00b,bankai,5432112345,94rwpe,reneee,chrisx,melvins,775577,sam2000,scrappy1,rachid,grizzley,margare,morgan01,winstons,gevorg,gonzal,crawdad,gfhfdjp,babilon,noneya,pussy11,barbell,easyride,c00li0,777771,311music,karla1,golions,19866891,peejay,leadfoot,hfvbkm,kr9z40sy,cobra123,isotwe,grizz,sallys,****you,aaa123a,dembel,foxs14,hillcres,webman,mudshark,alfredo1,weeded,lester1,hovepark,ratface,000777fffa,huskie,wildthing,elbarto,waikiki,masami,call911,goose2,regin,dovajb,agricola,cjytxrj,andy11,penny123,family01,a121212,1braves,upupa68,happy100,824655,cjlove,firsttim,kalel,redhair,dfhtymt,sliders,bananna,loverbo,fifa2008,crouton,chevy350,panties2,kolya1,alyona,hagrid,spagetti,q2w3e4r,867530,narkoman,nhfdvfnjkju123,1ccccccc,napolean,0072563,allay,w8sted,wigwam,jamesk,state1,parovoz,beach69,kevinb,rossella,logitech1,celula,gnocca,canucks1,loginova,marlboro1,aaaa1,kalleanka,mester,mishutka,milenko,alibek,jersey1,peterc,1mouse,nedved,blackone,ghfplybr,682regkh,beejay,newburgh,ruffian,clarets,noreaga,xenophon,hummerh2,tenshi,smeagol,soloyo,vfhnby,ereiamjh,ewq321,goomie,sportin,cellphone,sonnie,jetblack,saudan,gblfhfc,matheus,uhfvjnf,alicja,jayman1,devon1,hexagon,bailey2,vtufajy,yankees7,salty1,908070,killemal,gammas,eurocard,sydney12,tuesday1,antietam,wayfarer,beast666,19952009sa,aq12ws,eveli,hockey21,haloreach,dontcare,xxxx1,andrea11,karlmarx,jelszo,tylerb,protools,timberwolf,ruffneck,pololo,1bbbbb,waleed,sasami,twinss,fairlady,illuminati,alex007,sucks1,homerjay,scooter7,tarbaby,barmaley,amistad,vanes,randers,tigers12,dreamer2,goleafsg,googie,bernie1,as12345,godeep,james3,phanto,gwbush,cumlover,2196dc,studioworks,995511,golf56,titova,kaleka,itali,socks1,kurwamac,daisuke,hevonen,woody123,daisie,wouter,henry123,gostosa,guppie,porpoise,iamsexy,276115,paula123,1020315,38gjgeuftd,rjrfrjkf,knotty,idiot1,sasha12345,matrix13,securit,radical1,ag764ks,jsmith,coolguy1,secretar,juanas,sasha1988,itout,00000001,tiger11,1butthea,putain,cavalo,basia1,kobebryant,1232323,12345asdfg,sunsh1ne,cyfqgth,tomkat,dorota,dashit,pelmen,5t6y7u,whipit,smokeone,helloall,bonjour1,snowshoe,nilknarf,x1x2x3,lammas,1234599,lol123456,atombomb,ironchef,noclue,alekseev,gwbush1,silver2,12345678m,yesican,fahjlbnf,chapstic,alex95,open1,tiger200,lisichka,pogiako,cbr929,searchin,tanya123,alex1973,phil413,alex1991,dominati,geckos,freddi,silenthill,egroeg,vorobey,antoxa,dark666,shkola,apple22,rebellio,shamanking,7f8srt,cumsucker,partagas,bill99,22223333,arnster55,fucknuts,proxima,silversi,goblues,parcells,vfrcbvjdf,piloto,avocet,emily2,1597530,miniskir,himitsu,pepper2,juiceman,venom1,bogdana,jujube,quatro,botafogo,mama2010,junior12,derrickh,asdfrewq,miller2,chitarra,silverfox,napol,prestigio,devil123,mm111qm,ara123,max33484,sex2000,primo1,sephan,anyuta,alena2010,viborg,verysexy,hibiscus,terps,josefin,oxcart,spooker,speciali,raffaello,partyon,vfhvtkflrf,strela,a123456z,worksuck,glasss,lomonosov,dusty123,dukeblue,1winter,sergeeva,lala123,john22,cmc09,sobolev,bettylou,dannyb,gjkrjdybr,hagakure,iecnhbr,awsedr,pmdmsctsk,costco,alekseeva,fktrcttd,bazuka,flyingv,garuda,buffy16,gutierre,beer12,stomatolog,ernies,palmeiras,golf123,love269,n.kmgfy,gjkysqgbpltw,youare,joeboo,baksik,lifeguar,111a111,nascar8,mindgame,dude1,neopets,frdfkfyu,june24,phoenix8,penelopa,merlin99,mercenar,badluck,mishel,bookert,deadsexy,power9,chinchil,1234567m,alex10,skunk1,rfhkcjy,sammycat,wright1,randy2,marakesh,temppassword,elmer251,mooki,patrick0,bonoedge,1tits,chiar,kylie1,graffix,milkman1,cornel,mrkitty,nicole12,ticketmaster,beatles4,number20,ffff1,terps1,superfre,yfdbufnjh,jake1234,flblfc,1111qq,zanuda,jmol01,wpoolejr,polopol,nicolett,omega13,cannonba,123456789.,sandy69,ribeye,bo243ns,marilena,bogdan123,milla,redskins1,19733791,alias1,movie1,ducat,marzena,shadowru,56565,coolman1,pornlover,teepee,spiff,nafanya,gateway3,fuckyou0,hasher,34778,booboo69,staticx,hang10,qq12345,garnier,bosco123,1234567qw,carson1,samso,1xrg4kcq,cbr929rr,allan123,motorbik,andrew22,pussy101,miroslava,cytujdbr,camp0017,cobweb,snusmumrik,salmon1,cindy2,aliya,serendipity,co437at,tincouch,timmy123,hunter22,st1100,vvvvvv1,blanka,krondor,sweeti,nenit,kuzmich,gustavo1,bmw320i,alex2010,trees1,kyliem,essayons,april26,kumari,sprin,fajita,appletre,fghbjhb,1green,katieb,steven2,corrado1,satelite,1michell,123456789c,cfkfvfylhf,acurarsx,slut543,inhere,bob2000,pouncer,k123456789,fishie,aliso,audia8,bluetick,soccer69,jordan99,fromhell,mammoth1,fighting54,mike25,pepper11,extra1,worldwid,chaise,vfr800,sordfish,almat,nofate,listopad,hellgate,dctvghbdf,jeremia,qantas,lokiju,honker,sprint1,maral,triniti,compaq3,sixsix6,married1,loveman,juggalo1,repvtyrj,zxcasdqw,123445,whore1,123678,monkey6,west123,warcraf,pwnage,mystery1,creamyou,ant123,rehjgfnrf,corona1,coleman1,steve121,alderaan,barnaul,celeste1,junebug1,bombshel,gretzky9,tankist,targa,cachou,vaz2101,playgolf,boneyard,strateg,romawka,iforgotit,pullup,garbage1,irock,archmage,shaft1,oceano,sadies,alvin1,135135ab,psalm69,lmfao,ranger02,zaharova,33334444,perkman,realman,salguod,cmoney,astonmartin,glock1,greyfox,viper99,helpm,blackdick,46775575,family5,shazbot,dewey1,qwertyas,shivani,black22,mailman1,greenday1,57392632,red007,stanky,sanchez1,tysons,daruma,altosax,krayzie,85852008,1forever,98798798,irock.,123456654,142536789,ford22,brick1,michela,preciou,crazy4u,01telemike01,nolife,concac,safety1,annie123,brunswic,destini,123456qwer,madison0,snowball1,137946,1133557799,jarule,scout2,songohan,thedead,00009999,murphy01,spycam,hirsute,aurinko,associat,1miller,baklan,hermes1,2183rm,martie,kangoo,shweta,yvonne1,westsid,jackpot1,rotciv,maratik,fabrika,claude1,nursultan,noentry,ytnhjufnm,electra1,ghjcnjnfr1,puneet,smokey01,integrit,bugeye,trouble2,14071789,paul01,omgwtf,dmh415,ekilpool,yourmom1,moimeme,sparky11,boludo,ruslan123,kissme1,demetrio,appelsin,asshole3,raiders2,bunns,fynjybj,billygoa,p030710p$e4o,macdonal,248ujnfk,acorns,schmidt1,sparrow1,vinbylrj,weasle,jerom,ycwvrxxh,skywalk,gerlinde,solidus,postal1,poochie1,1charles,rhianna,terorist,rehnrf,omgwtfbbq,assfucke,deadend,zidan,jimboy,vengence,maroon5,7452tr,dalejr88,sombra,anatole,elodi,amazonas,147789,q12345q,gawker1,juanma,kassidy,greek1,bruces,bilbob,mike44,0o9i8u7y6t,kaligula,agentx,familie,anders1,pimpjuice,0128um,birthday10,lawncare,hownow,grandorgue,juggerna,scarfac,kensai,swatteam,123four,motorbike,repytxbr,other1,celicagt,pleomax,gen0303,godisgreat,icepick,lucifer666,heavy1,tea4two,forsure,02020,shortdog,webhead,chris13,palenque,3techsrl,knights1,orenburg,prong,nomarg,wutang1,80637852730,laika,iamfree,12345670,pillow1,12343412,bigears,peterg,stunna,rocky5,12123434,damir,feuerwehr,7418529630,danone,yanina,valenci,andy69,111222q,silvia1,1jjjjj,loveforever,passwo1,stratocaster,8928190a,motorolla,lateralu,ujujkm,chubba,ujkjdf,signon,123456789zx,serdce,stevo,wifey200,ololo123,popeye1,1pass,central1,melena,luxor,nemezida,poker123,ilovemusic,qaz1234,noodles1,lakeshow,amarill,ginseng,billiam,trento,321cba,fatback,soccer33,master13,marie2,newcar,bigtop,dark1,camron,nosgoth,155555,biglou,redbud,jordan7,159789,diversio,actros,dazed,drizzit,hjcnjd,wiktoria,justic,gooses,luzifer,darren1,chynna,tanuki,11335577,icculus,boobss,biggi,firstson,ceisi123,gatewa,hrothgar,jarhead1,happyjoy,felipe1,bebop1,medman,athena1,boneman,keiths,djljgfl,dicklick,russ120,mylady,zxcdsa,rock12,bluesea,kayaks,provista,luckies,smile4me,bootycal,enduro,123123f,heartbre,ern3sto,apple13,bigpappa,fy.njxrf,bigtom,cool69,perrito,quiet1,puszek,cious,cruella,temp1,david26,alemap,aa123123,teddies,tricolor,smokey12,kikiriki,mickey01,robert01,super5,ranman,stevenso,deliciou,money777,degauss,mozar,susanne1,asdasd12,shitbag,mommy123,wrestle1,imfree,fuckyou12,barbaris,florent,ujhijr,f8yruxoj,tefjps,anemone,toltec,2gether,left4dead2,ximen,gfkmvf,dunca,emilys,diana123,16473a,mark01,bigbro,annarbor,nikita2000,11aa11,tigres,llllll1,loser2,fbi11213,jupite,qwaszxqw,macabre,123ert,rev2000,mooooo,klapaucius,bagel1,chiquit,iyaoyas,bear101,irocz28,vfktymrfz,smokey2,love99,rfhnbyf,dracul,keith123,slicko,peacock1,orgasmic,thesnake,solder,wetass,doofer,david5,rhfcyjlfh,swanny,tammys,turkiye,tubaman,estefani,firehose,funnyguy,servo,grace17,pippa1,arbiter,jimmy69,nfymrf,asdf67nm,rjcnzy,demon123,thicknes,sexysex,kristall,michail,encarta,banderos,minty,marchenko,de1987ma,mo5kva,aircav,naomi1,bonni,tatoo,cronaldo,49ers1,mama1963,1truck,telecaster,punksnotdead,erotik,1eagles,1fender,luv269,acdeehan,tanner1,freema,1q3e5t7u,linksys,tiger6,megaman1,neophyte,australia1,mydaddy,1jeffrey,fgdfgdfg,gfgekz,1986irachka,keyman,m0b1l3,dfcz123,mikeyg,playstation2,abc125,slacker1,110491g,lordsoth,bhavani,ssecca,dctvghbdtn,niblick,hondacar,baby01,worldcom,4034407,51094didi,3657549,3630000,3578951,sweetpussy,majick,supercoo,robert11,abacabb,panda123,gfhjkm13,ford4x4,zippo1,lapin,1726354,lovesong,dude11,moebius,paravoz,1357642,matkhau,solnyshko,daniel4,multiplelog,starik,martusia,iamtheman,greentre,jetblue,motorrad,vfrcbvev,redoak,dogma1,gnorman,komlos,tonka1,1010220,666satan,losenord,lateralus,absinthe,command1,jigga1,iiiiiii1,pants1,jungfrau,926337,ufhhbgjnnth,yamakasi,888555,sunny7,gemini69,alone1,zxcvbnmz,cabezon,skyblues,zxc1234,456123a,zero00,caseih,azzurra,legolas1,menudo,murcielago,785612,779977,benidorm,viperman,dima1985,piglet1,hemligt,hotfeet,7elephants,hardup,gamess,a000000,267ksyjf,kaitlynn,sharkie,sisyphus,yellow22,667766,redvette,666420,mets69,ac2zxdty,hxxrvwcy,cdavis,alan1,noddy,579300,druss,eatshit1,555123,appleseed,simpleplan,kazak,526282,fynfyfyfhbde,birthday6,dragon6,1pookie,bluedevils,omg123,hj8z6e,x5dxwp,455445,batman23,termin,chrisbrown,animals1,lucky9,443322,kzktxrf,takayuki,fermer,assembler,zomu9q,sissyboy,sergant,felina,nokia6230i,eminem12,croco,hunt4red,festina,darknigh,cptnz062,ndshnx4s,twizzler,wnmaz7sd,aamaax,gfhfcjkmrf,alabama123,barrynov,happy5,punt0it,durandal,8xuuobe4,cmu9ggzh,bruno12,316497,crazyfrog,vfvfktyf,apple3,kasey1,mackdaddy,anthon1,sunnys,angel3,cribbage,moon1,donal,bryce1,pandabear,mwss474,whitesta,freaker,197100,bitche,p2ssw0rd,turnb,tiktonik,moonlite,ferret1,jackas,ferrum,bearclaw,liberty2,1diablo,caribe,snakeeyes,janbam,azonic,rainmaker,vetalik,bigeasy,baby1234,sureno13,blink1,kluivert,calbears,lavanda,198600,dhtlbyf,medvedeva,fox123,whirling,bonscott,freedom9,october3,manoman,segredo,cerulean,robinso,bsmith,flatus,dannon,password21,rrrrrr1,callista,romai,rainman1,trantor,mickeymo,bulldog7,g123456,pavlin,pass22,snowie,hookah,7ofnine,bubba22,cabible,nicerack,moomoo1,summer98,yoyo123,milan1,lieve27,mustang69,jackster,exocet,nadege,qaz12,bahama,watson1,libras,eclipse2,bahram,bapezm,up9x8rww,ghjcnjz,themaste,deflep27,ghost16,gattaca,fotograf,junior123,gilber,gbjyth,8vjzus,rosco1,begonia,aldebara,flower12,novastar,buzzman,manchild,lopez1,mama11,william7,yfcnz1,blackstar,spurs123,moom4242,1amber,iownyou,tightend,07931505,paquito,1johnson,smokepot,pi31415,snowmass,ayacdc,jessicam,giuliana,5tgbnhy6,harlee,giuli,bigwig,tentacle,scoubidou2,benelli,vasilina,nimda,284655,jaihind,lero4ka,1tommy,reggi,ididit,jlbyjxtcndj,mike26,qbert,wweraw,lukasz,loosee123,palantir,flint1,mapper,baldie,saturne,virgin1,meeeee,elkcit,iloveme2,blue15,themoon,radmir,number3,shyanne,missle,hannelor,jasmina,karin1,lewie622,ghjcnjqgfhjkm,blasters,oiseau,sheela,grinders,panget,rapido,positiv,twink,fltkbyf,kzsfj874,daniel01,enjoyit,nofags,doodad,rustler,squealer,fortunat,peace123,khushi,devils2,7inches,candlebo,topdawg,armen,soundman,zxcqweasd,april7,gazeta,netman,hoppers,bear99,ghbjhbntn,mantle7,bigbo,harpo,jgordon,bullshi,vinny1,krishn,star22,thunderc,galinka,phish123,tintable,nightcrawler,tigerboy,rbhgbx,messi,basilisk,masha1998,nina123,yomamma,kayla123,geemoney,0000000000d,motoman,a3jtni,ser123,owen10,italien,vintelok,12345rewq,nightime,jeepin,ch1tt1ck,mxyzptlk,bandido,ohboy,doctorj,hussar,superted,parfilev,grundle,1jack,livestrong,chrisj,matthew3,access22,moikka,fatone,miguelit,trivium,glenn1,smooches,heiko,dezember,spaghett,stason,molokai,bossdog,guitarma,waderh,boriska,photosho,path13,hfrtnf,audre,junior24,monkey24,silke,vaz21093,bigblue1,trident1,candide,arcanum,klinker,orange99,bengals1,rosebu,mjujuj,nallepuh,mtwapa1a,ranger69,level1,bissjop,leica,1tiffany,rutabega,elvis77,kellie1,sameas,barada,karabas,frank12,queenb,toutoune,surfcity,samanth1,monitor1,littledo,kazakova,fodase,mistral1,april22,carlit,shakal,batman123,fuckoff2,alpha01,5544332211,buddy3,towtruck,kenwood1,vfiekmrf,jkl123,pypsik,ranger75,sitges,toyman,bartek1,ladygirl,booman,boeing77,installsqlst,222666,gosling,bigmack,223311,bogos,kevin2,gomez1,xohzi3g4,kfnju842,klubnika,cubalibr,123456789101,kenpo,0147852369,raptor1,tallulah,boobys,jjones,1q2s3c,moogie,vid2600,almas,wombat1,extra300,xfiles1,green77,sexsex1,heyjude,sammyy,missy123,maiyeuem,nccpl25282,thicluv,sissie,raven3,fldjrfn,buster22,broncos2,laurab,letmein4,harrydog,solovey,fishlips,asdf4321,ford123,superjet,norwegen,movieman,psw333333,intoit,postbank,deepwate,ola123,geolog323,murphys,eshort,a3eilm2s2y,kimota,belous,saurus,123321qaz,i81b4u,aaa12,monkey20,buckwild,byabybnb,mapleleafs,yfcnzyfcnz,baby69,summer03,twista,246890,246824,ltcnhjth,z1z2z3,monika1,sad123,uto29321,bathory,villan,funkey,poptarts,spam967888,705499fh,sebast,porn1234,earn381,1porsche,whatthef,123456789y,polo12,brillo,soreilly,waters1,eudora,allochka,is_a_bot,winter00,bassplay,531879fiz,onemore,bjarne,red911,kot123,artur1,qazxdr,c0rvette,diamond7,matematica,klesko,beaver12,2enter,seashell,panam,chaching,edward2,browni,xenogear,cornfed,aniram,chicco22,darwin1,ancella2,sophie2,vika1998,anneli,shawn41,babie,resolute,pandora2,william8,twoone,coors1,jesusis1,teh012,cheerlea,renfield,tessa1,anna1986,madness1,bkmlfh,19719870,liebherr,ck6znp42,gary123,123654z,alsscan,eyedoc,matrix7,metalgea,chinito,4iter,falcon11,7jokx7b9du,bigfeet,tassadar,retnuh,muscle1,klimova,darion,batistuta,bigsur,1herbier,noonie,ghjrehjh,karimova,faustus,snowwhite,1manager,dasboot,michael12,analfuck,inbed,dwdrums,jaysoncj,maranell,bsheep75,164379,rolodex,166666,rrrrrrr1,almaz666,167943,russel1,negrito,alianz,goodpussy,veronik,1w2q3r4e,efremov,emb377,sdpass,william6,alanfahy,nastya1995,panther5,automag,123qwe12,vfvf2011,fishe,1peanut,speedie,qazwsx1234,pass999,171204j,ketamine,sheena1,energizer,usethis1,123abc123,buster21,thechamp,flvbhfk,frank69,chane,hopeful1,claybird,pander,anusha,bigmaxxx,faktor,housebed,dimidrol,bigball,shashi,derby1,fredy,dervish,bootycall,80988218126,killerb,cheese2,pariss,mymail,dell123,catbert,christa1,chevytru,gjgjdf,00998877,overdriv,ratten,golf01,nyyanks,dinamite,bloembol,gismo,magnus1,march2,twinkles,ryan22,duckey,118a105b,kitcat,brielle,poussin,lanzarot,youngone,ssvegeta,hero63,battle1,kiler,fktrcfylh1,newera,vika1996,dynomite,oooppp,beer4me,foodie,ljhjuf,sonshine,godess,doug1,constanc,thinkbig,steve2,damnyou,autogod,www333,kyle1,ranger7,roller1,harry2,dustin1,hopalong,tkachuk,b00bies,bill2,deep111,stuffit,fire69,redfish1,andrei123,graphix,1fishing,kimbo1,mlesp31,ifufkbyf,gurkan,44556,emily123,busman,and123,8546404,paladine,1world,bulgakov,4294967296,bball23,1wwwww,mycats,elain,delta6,36363,emilyb,color1,6060842,cdtnkfyrf,hedonism,gfgfrfhkj,5551298,scubad,gostate,sillyme,hdbiker,beardown,fishers,sektor,00000007,newbaby,rapid1,braves95,gator2,nigge,anthony3,sammmy,oou812,heffer,phishin,roxanne1,yourass,hornet1,albator,2521659,underwat,tanusha,dianas,3f3fpht7op,dragon20,bilbobag,cheroke,radiatio,dwarf1,majik,33st33,dochka,garibald,robinh,sham69,temp01,wakeboar,violet1,1w2w3w,registr,tonite,maranello,1593570,parolamea,galatasara,loranthos,1472583,asmodean,1362840,scylla,doneit,jokerr,porkypig,kungen,mercator,koolhaas,come2me,debbie69,calbear,liverpoolfc,yankees4,12344321a,kennyb,madma,85200258,dustin23,thomas13,tooling,mikasa,mistic,crfnbyf,112233445,sofia1,heinz57,colts1,price1,snowey,joakim,mark11,963147,cnhfcnm,kzinti,1bbbbbbb,rubberdu,donthate,rupert1,sasha1992,regis1,nbuhbwf,fanboy,sundial,sooner1,wayout,vjnjhjkf,deskpro,arkangel,willie12,mikeyb,celtic1888,luis1,buddy01,duane1,grandma1,aolcom,weeman,172839456,basshead,hornball,magnu,pagedown,molly2,131517,rfvtgbyhn,astonmar,mistery,madalina,cash1,1happy,shenlong,matrix01,nazarova,369874125,800500,webguy,rse2540,ashley2,briank,789551,786110,chunli,j0nathan,greshnik,courtne,suckmyco,mjollnir,789632147,asdfg1234,754321,odelay,ranma12,zebedee,artem777,bmw318is,butt1,rambler1,yankees9,alabam,5w76rnqp,rosies,mafioso,studio1,babyruth,tranzit,magical123,gfhjkm135,12345$,soboleva,709394,ubique,drizzt1,elmers,teamster,pokemons,1472583690,1597532486,shockers,merckx,melanie2,ttocs,clarisse,earth1,dennys,slobber,flagman,farfalla,troika,4fa82hyx,hakan,x4ww5qdr,cumsuck,leather1,forum1,july20,barbel,zodiak,samuel12,ford01,rushfan,bugsy1,invest1,tumadre,screwme,a666666,money5,henry8,tiddles,sailaway,starburs,100years,killer01,comando,hiromi,ranetka,thordog,blackhole,palmeira,verboten,solidsna,q1w1e1,humme,kevinc,gbrfxe,gevaudan,hannah11,peter2,vangar,sharky7,talktome,jesse123,chuchi,pammy,!qazxsw2,siesta,twenty1,wetwilly,477041,natural1,sun123,daniel3,intersta,shithead1,hellyea,bonethugs,solitair,bubbles2,father1,nick01,444000,adidas12,dripik,cameron2,442200,a7nz8546,respublika,fkojn6gb,428054,snoppy,rulez1,haslo,rachael1,purple01,zldej102,ab12cd34,cytuehjxrf,madhu,astroman,preteen,handsoff,mrblonde,biggio,testin,vfdhif,twolves,unclesam,asmara,kpydskcw,lg2wmgvr,grolsch,biarritz,feather1,williamm,s62i93,bone1,penske,337733,336633,taurus1,334433,billet,diamondd,333000,nukem,fishhook,godogs,thehun,lena1982,blue00,smelly1,unb4g9ty,65pjv22,applegat,mikehunt,giancarlo,krillin,felix123,december1,soapy,46doris,nicole23,bigsexy1,justin10,pingu,bambou,falcon12,dgthtl,1surfer,qwerty01,estrellit,nfqcjy,easygo,konica,qazqwe,1234567890m,stingers,nonrev,3e4r5t,champio,bbbbbb99,196400,allen123,seppel,simba2,rockme,zebra3,tekken3,endgame,sandy2,197300,fitte,monkey00,eldritch,littleone,rfyfgkz,1member,66chevy,oohrah,cormac,hpmrbm41,197600,grayfox,elvis69,celebrit,maxwell7,rodders,krist,1camaro,broken1,kendall1,silkcut,katenka,angrick,maruni,17071994a,tktyf,kruemel,snuffles,iro4ka,baby12,alexis01,marryme,vlad1994,forward1,culero,badaboom,malvin,hardtoon,hatelove,molley,knopo4ka,duchess1,mensuck,cba321,kickbutt,zastava,wayner,fuckyou6,eddie123,cjkysir,john33,dragonfi,cody1,jabell,cjhjrf,badseed,sweden1,marihuana,brownlov,elland,nike1234,kwiettie,jonnyboy,togepi,billyk,robert123,bb334,florenci,ssgoku,198910,bristol1,bob007,allister,yjdujhjl,gauloise,198920,bellaboo,9lives,aguilas,wltfg4ta,foxyroxy,rocket69,fifty50,babalu,master21,malinois,kaluga,gogosox,obsessio,yeahrigh,panthers1,capstan,liza2000,leigh1,paintball1,blueskie,cbr600f3,bagdad,jose98,mandreki,shark01,wonderbo,muledeer,xsvnd4b2,hangten,200001,grenden,anaell,apa195,model1,245lufpq,zip100,ghjcgtrn,wert1234,misty2,charro,juanjose,fkbcrf,frostbit,badminto,buddyy,1doctor,vanya,archibal,parviz,spunky1,footboy,dm6tzsgp,legola,samadhi,poopee,ytdxz2ca,hallowboy,dposton,gautie,theworm,guilherme,dopehead,iluvtits,bobbob1,ranger6,worldwar,lowkey,chewbaca,oooooo99,ducttape,dedalus,celular,8i9o0p,borisenko,taylor01,111111z,arlingto,p3nnywiz,rdgpl3ds,boobless,kcmfwesg,blacksab,mother2,markus1,leachim,secret2,s123456789,1derful,espero,russell2,tazzer,marykate,freakme,mollyb,lindros8,james00,gofaster,stokrotka,kilbosik,aquamann,pawel1,shedevil,mousie,slot2009,october6,146969,mm259up,brewcrew,choucho,uliana,sexfiend,fktirf,pantss,vladimi,starz,sheeps,12341234q,bigun,tiggers,crjhjcnm,libtech,pudge1,home12,zircon,klaus1,jerry2,pink1,lingus,monkey66,dumass,polopolo09,feuerweh,rjyatnf,chessy,beefer,shamen,poohbear1,4jjcho,bennevis,fatgirls,ujnbrf,cdexswzaq,9noize9,rich123,nomoney,racecar1,hacke,clahay,acuario,getsum,hondacrv,william0,cheyenn,techdeck,atljhjdf,wtcacq,suger,fallenangel,bammer,tranquil,carla123,relayer,lespaul1,portvale,idontno,bycnbnen,trooper2,gennadiy,pompon,billbob,amazonka,akitas,chinatow,atkbrc,busters,fitness1,cateye,selfok2013,1murphy,fullhous,mucker,bajskorv,nectarin,littlebitch,love24,feyenoor,bigal37,lambo1,pussybitch,icecube1,biged,kyocera,ltybcjdf,boodle,theking1,gotrice,sunset1,abm1224,fromme,sexsells,inheat,kenya1,swinger1,aphrodit,kurtcobain,rhind101,poidog,poiulkjh,kuzmina,beantown,tony88,stuttgar,drumer,joaqui,messenge,motorman,amber2,nicegirl,rachel69,andreia,faith123,studmuffin,jaiden,red111,vtkmybr,gamecocks,gumper,bosshogg,4me2know,tokyo1,kleaner,roadhog,fuckmeno,phoenix3,seeme,buttnutt,boner69,andreyka,myheart,katerin,rugburn,jvtuepip,dc3ubn,chile1,ashley69,happy99,swissair,balls2,fylhttdf,jimboo,55555d,mickey11,voronin,m7hsqstm,stufff,merete,weihnachte,dowjones,baloo1,freeones,bears34,auburn1,beverl,timberland,1elvis,guinness1,bombadil,flatron1,logging7,telefoon,merl1n,masha1,andrei1,cowabung,yousuck1,1matrix,peopl,asd123qwe,sweett,mirror1,torrente,joker12,diamond6,jackaroo,00000a,millerlite,ironhorse,2twins,stryke,gggg1,zzzxxxccc,roosevel,8363eddy,angel21,depeche1,d0ct0r,blue14,areyou,veloce,grendal,frederiksberg,cbcntvf,cb207sl,sasha2000,was.here,fritzz,rosedale,spinoza,cokeisit,gandalf3,skidmark,ashley01,12345j,1234567890qaz,sexxxxxx,beagles,lennart,12345789,pass10,politic,max007,gcheckou,12345611,tiffy,lightman,mushin,velosiped,brucewayne,gauthie,elena123,greenegg,h2oski,clocker,nitemare,123321s,megiddo,cassidy1,david13,boywonde,flori,peggy12,pgszt6md,batterie,redlands,scooter6,bckhere,trueno,bailey11,maxwell2,bandana,timoth1,startnow,ducati74,tiern,maxine1,blackmetal,suzyq,balla007,phatfarm,kirsten1,titmouse,benhogan,culito,forbin,chess1,warren1,panman,mickey7,24lover,dascha,speed2,redlion,andrew10,johnwayn,nike23,chacha1,bendog,bullyboy,goldtree,spookie,tigger99,1cookie,poutine,cyclone1,woodpony,camaleun,bluesky1,dfadan,eagles20,lovergirl,peepshow,mine1,dima1989,rjdfkmxer,11111aaaaa,machina,august17,1hhhhh,0773417k,1monster,freaksho,jazzmin,davidw,kurupt,chumly,huggies,sashenka,ccccccc1,bridge1,giggalo,cincinna,pistol1,hello22,david77,lightfoo,lucky6,jimmy12,261397,lisa12,tabaluga,mysite,belo4ka,greenn,eagle99,punkrawk,salvado,slick123,wichsen,knight99,dummys,fefolico,contrera,kalle1,anna1984,delray,robert99,garena,pretende,racefan,alons,serenada,ludmilla,cnhtkjr,l0swf9gx,hankster,dfktynbyrf,sheep1,john23,cv141ab,kalyani,944turbo,crystal2,blackfly,zrjdktdf,eus1sue1,mario5,riverplate,harddriv,melissa3,elliott1,sexybitc,cnhfyybr,jimdavis,bollix,beta1,amberlee,skywalk1,natala,1blood,brattax,shitty1,gb15kv99,ronjon,rothmans,thedoc,joey21,hotboi,firedawg,bimbo38,jibber,aftermat,nomar,01478963,phishing,domodo,anna13,materia,martha1,budman1,gunblade,exclusiv,sasha1997,anastas,rebecca2,fackyou,kallisti,fuckmyass,norseman,ipswich1,151500,1edward,intelinside,darcy1,bcrich,yjdjcnbf,failte,buzzzz,cream1,tatiana1,7eleven,green8,153351,1a2s3d4f5g6h,154263,milano1,bambi1,bruins77,rugby2,jamal1,bolita,sundaypunch,bubba12,realmadr,vfyxtcnth,iwojima,notlob,black666,valkiria,nexus1,millerti,birthday100,swiss1,appollo,gefest,greeneyes,celebrat,tigerr,slava123,izumrud,bubbabub,legoman,joesmith,katya123,sweetdream,john44,wwwwwww1,oooooo1,socal,lovespor,s5r8ed67s,258147,heidis,cowboy22,wachovia,michaelb,qwe1234567,i12345,255225,goldie1,alfa155,45colt,safeu851,antonova,longtong,1sparky,gfvznm,busen,hjlbjy,whateva,rocky4,cokeman,joshua3,kekskek1,sirocco,jagman,123456qwert,phinupi,thomas10,loller,sakur,vika2011,fullred,mariska,azucar,ncstate,glenn74,halima,aleshka,ilovemylife,verlaat,baggie,scoubidou6,phatboy,jbruton,scoop1,barney11,blindman,def456,maximus2,master55,nestea,11223355,diego123,sexpistols,sniffy,philip1,f12345,prisonbreak,nokia2700,ajnjuhfa,yankees3,colfax,ak470000,mtnman,bdfyeirf,fotball,ichbin,trebla,ilusha,riobravo,beaner1,thoradin,polkaudi,kurosawa,honda123,ladybu,valerik,poltava,saviola,fuckyouguys,754740g0,anallove,microlab1,juris01,ncc1864,garfild,shania1,qagsud,makarenko,cindy69,lebedev,andrew11,johnnybo,groovy1,booster1,sanders1,tommyb,johnson4,kd189nlcih,hondaman,vlasova,chick1,sokada,sevisgur,bear2327,chacho,sexmania,roma1993,hjcnbckfd,valley1,howdie,tuppence,jimandanne,strike3,y4kuz4,nhfnfnf,tsubasa,19955991,scabby,quincunx,dima1998,uuuuuu1,logica,skinner1,pinguino,lisa1234,xpressmusic,getfucked,qqqq1,bbbb1,matulino,ulyana,upsman,johnsmith,123579,co2000,spanner1,todiefor,mangoes,isabel1,123852,negra,snowdon,nikki123,bronx1,booom,ram2500,chuck123,fireboy,creek1,batman13,princesse,az12345,maksat,1knight,28infern,241455,r7112s,muselman,mets1986,katydid,vlad777,playme,kmfdm1,asssex,1prince,iop890,bigbroth,mollymoo,waitron,lizottes,125412,juggler,quinta,0sister0,zanardi,nata123,heckfyxbr,22q04w90e,engine2,nikita95,zamira,hammer22,lutscher,carolina1,zz6319,sanman,vfuflfy,buster99,rossco,kourniko,aggarwal,tattoo1,janice1,finger1,125521,19911992,shdwlnds,rudenko,vfvfgfgf123,galatea,monkeybu,juhani,premiumcash,classact,devilmay,helpme2,knuddel,hardpack,ramil,perrit,basil1,zombie13,stockcar,tos8217,honeypie,nowayman,alphadog,melon1,talula,125689,tiribon12,tornike,haribol,telefone,tiger22,sucka,lfytxrf,chicken123,muggins,a23456,b1234567,lytdybr,otter1,pippa,vasilisk,cooking1,helter,78978,bestboy,viper7,ahmed1,whitewol,mommys,apple5,shazam1,chelsea7,kumiko,masterma,rallye,bushmast,jkz123,entrar,andrew6,nathan01,alaric,tavasz,heimdall,gravy1,jimmy99,cthlwt,powerr,gthtrhtcnjr,canesfan,sasha11,ybrbnf_25,august9,brucie,artichok,arnie1,superdude,tarelka,mickey22,dooper,luners,holeshot,good123,gettysbu,bicho,hammer99,divine5,1zxcvbn,stronzo,q22222,disne,bmw750il,godhead,hallodu,aerith,nastik,differen,cestmoi,amber69,5string,pornosta,dirtygirl,ginger123,formel1,scott12,honda200,hotspurs,johnatha,firstone123,lexmark1,msconfig,karlmasc,l123456,123qweasdzx,baldman,sungod,furka,retsub,9811020,ryder1,tcglyued,astron,lbvfcbr,minddoc,dirt49,baseball12,tbear,simpl,schuey,artimus,bikman,plat1num,quantex,gotyou,hailey1,justin01,ellada,8481068,000002,manimal,dthjybxrf,buck123,dick123,6969696,nospam,strong1,kodeord,bama12,123321w,superman123,gladiolus,nintend,5792076,dreamgirl,spankme1,gautam,arianna1,titti,tetas,cool1234,belladog,importan,4206969,87e5nclizry,teufelo7,doller,yfl.irf,quaresma,3440172,melis,bradle,nnmaster,fast1,iverso,blargh,lucas12,chrisg,iamsam,123321az,tomjerry,kawika,2597174,standrew,billyg,muskan,gizmodo2,rz93qpmq,870621345,sathya,qmezrxg4,januari,marthe,moom4261,cum2me,hkger286,lou1988,suckit1,croaker,klaudia1,753951456,aidan1,fsunoles,romanenko,abbydog,isthebes,akshay,corgi,fuck666,walkman555,ranger98,scorpian,hardwareid,bluedragon,fastman,2305822q,iddqdiddqd,1597532,gopokes,zvfrfcb,w1234567,sputnik1,tr1993,pa$$w0rd,2i5fdruv,havvoc,1357913,1313131,bnm123,cowd00d,flexscan,thesims2,boogiema,bigsexxy,powerstr,ngc4565,joshman,babyboy1,123jlb,funfunfu,qwe456,honor1,puttana,bobbyj,daniel21,pussy12,shmuck,1232580,123578951,maxthedo,hithere1,bond0007,gehenna,nomames,blueone,r1234567,bwana,gatinho,1011111,torrents,cinta,123451234,tiger25,money69,edibey,pointman,mmcm19,wales1,caffreys,phaedra,bloodlus,321ret32,rufuss,tarbit,joanna1,102030405,stickboy,lotrfotr34,jamshid,mclarenf1,ataman,99ford,yarrak,logan2,ironlung,pushistik,dragoon1,unclebob,tigereye,pinokio,tylerj,mermaid1,stevie1,jaylen,888777,ramana,roman777,brandon7,17711771s,thiago,luigi1,edgar1,brucey,videogam,classi,birder,faramir,twiddle,cubalibre,grizzy,fucky,jjvwd4,august15,idinahui,ranita,nikita1998,123342,w1w2w3,78621323,4cancel,789963,(null,vassago,jaydog472,123452,timt42,canada99,123589,rebenok,htyfnf,785001,osipov,maks123,neverwinter,love2010,777222,67390436,eleanor1,bykemo,aquemini,frogg,roboto,thorny,shipmate,logcabin,66005918,nokian,gonzos,louisian,1abcdefg,triathlo,ilovemar,couger,letmeino,supera,runvs,fibonacci,muttly,58565254,5thgbqi,vfnehsv,electr,jose12,artemis1,newlove,thd1shr,hawkey,grigoryan,saisha,tosca,redder,lifesux,temple1,bunnyman,thekids,sabbeth,tarzan1,182838,158uefas,dell50,1super,666222,47ds8x,jackhamm,mineonly,rfnfhbyf,048ro,665259,kristina1,bombero,52545856,secure1,bigloser,peterk,alex2,51525354,anarchy1,superx,teenslut,money23,sigmapi,sanfrancisco,acme34,private5,eclips,qwerttrewq,axelle,kokain,hardguy,peter69,jesuschr,dyanna,dude69,sarah69,toyota91,amberr,45645645,bugmenot,bigted,44556677,556644,wwr8x9pu,alphaome,harley13,kolia123,wejrpfpu,revelati,nairda,sodoff,cityboy,pinkpussy,dkalis,miami305,wow12345,triplet,tannenbau,asdfasdf1,darkhors,527952,retired1,soxfan,nfyz123,37583867,goddes,515069,gxlmxbewym,1warrior,36925814,dmb2011,topten,karpova,89876065093rax,naturals,gateway9,cepseoun,turbot,493949,cock22,italia1,sasafras,gopnik,stalke,1qazxdr5,wm2006,ace1062,alieva,blue28,aracel,sandia,motoguzz,terri1,emmajane,conej,recoba,alex1995,jerkyboy,cowboy12,arenrone,precisio,31415927,scsa316,panzer1,studly1,powerhou,bensam,mashoutq,billee,eeyore1,reape,thebeatl,rul3z,montesa,doodle1,cvzefh1gk,424365,a159753,zimmerma,gumdrop,ashaman,grimreap,icandoit,borodina,branca,dima2009,keywest1,vaders,bubluk,diavolo,assss,goleta,eatass,napster1,382436,369741,5411pimo,lenchik,pikach,gilgamesh,kalimera,singer1,gordon2,rjycnbnewbz,maulwurf,joker13,2much4u,bond00,alice123,robotec,fuckgirl,zgjybz,redhorse,margaret1,brady1,pumpkin2,chinky,fourplay,1booger,roisin,1brandon,sandan,blackheart,cheez,blackfin,cntgfyjdf,mymoney1,09080706,goodboss,sebring1,rose1,kensingt,bigboner,marcus12,ym3cautj,struppi,thestone,lovebugs,stater,silver99,forest99,qazwsx12345,vasile,longboar,mkonji,huligan,rhfcbdfz,airmail,porn11,1ooooo,sofun,snake2,msouthwa,dougla,1iceman,shahrukh,sharona,dragon666,france98,196800,196820,ps253535,zjses9evpa,sniper01,design1,konfeta,jack99,drum66,good4you,station2,brucew,regedit,school12,mvtnr765,pub113,fantas,tiburon1,king99,ghjcnjgbpltw,checkito,308win,1ladybug,corneliu,svetasveta,197430,icicle,imaccess,ou81269,jjjdsl,brandon6,bimbo1,smokee,piccolo1,3611jcmg,children2,cookie2,conor1,darth1,margera,aoi856,paully,ou812345,sklave,eklhigcz,30624700,amazing1,wahooo,seau55,1beer,apples2,chulo,dolphin9,heather6,198206,198207,hergood,miracle1,njhyflj,4real,milka,silverfi,fabfive,spring12,ermine,mammy,jumpjet,adilbek,toscana,caustic,hotlove,sammy69,lolita1,byoung,whipme,barney01,mistys,tree1,buster3,kaylin,gfccgjhn,132333,aishiteru,pangaea,fathead1,smurph,198701,ryslan,gasto,xexeylhf,anisimov,chevyss,saskatoo,brandy12,tweaker,irish123,music2,denny1,palpatin,outlaw1,lovesuck,woman1,mrpibb,diadora,hfnfneq,poulette,harlock,mclaren1,cooper12,newpass3,bobby12,rfgecnfcerf,alskdjfh,mini14,dukers,raffael,199103,cleo123,1234567qwertyu,mossberg,scoopy,dctulf,starline,hjvjxrf,misfits1,rangers2,bilbos,blackhea,pappnase,atwork,purple2,daywalker,summoner,1jjjjjjj,swansong,chris10,laluna,12345qqq,charly1,lionsden,money99,silver33,hoghead,bdaddy,199430,saisg002,nosaints,tirpitz,1gggggg,jason13,kingss,ernest1,0cdh0v99ue,pkunzip,arowana,spiri,deskjet1,armine,lances,magic2,thetaxi,14159265,cacique,14142135,orange10,richard0,backdraf,255ooo,humtum,kohsamui,c43dae874d,wrestling1,cbhtym,sorento,megha,pepsiman,qweqwe12,bliss7,mario64,korolev,balls123,schlange,gordit,optiquest,fatdick,fish99,richy,nottoday,dianne1,armyof1,1234qwerasdfzxcv,bbonds,aekara,lidiya,baddog1,yellow5,funkie,ryan01,greentree,gcheckout,marshal1,liliput,000000z,rfhbyrf,gtogto43,rumpole,tarado,marcelit,aqwzsxedc,kenshin1,sassydog,system12,belly1,zilla,kissfan,tools1,desember,donsdad,nick11,scorpio6,poopoo1,toto99,steph123,dogfuck,rocket21,thx113,dude12,sanek,sommar,smacky,pimpsta,letmego,k1200rs,lytghjgtnhjdcr,abigale,buddog,deles,baseball9,roofus,carlsbad,hamzah,hereiam,genial,schoolgirlie,yfz450,breads,piesek,washear,chimay,apocalyp,nicole18,gfgf1234,gobulls,dnevnik,wonderwall,beer1234,1moose,beer69,maryann1,adpass,mike34,birdcage,hottuna,gigant,penquin,praveen,donna123,123lol123,thesame,fregat,adidas11,selrahc,pandoras,test3,chasmo,111222333000,pecos,daniel11,ingersol,shana1,mama12345,cessna15,myhero,1simpson,nazarenko,cognit,seattle2,irina1,azfpc310,rfycthdf,hardy1,jazmyn,sl1200,hotlanta,jason22,kumar123,sujatha,fsd9shtyu,highjump,changer,entertai,kolding,mrbig,sayuri,eagle21,qwertzu,jorge1,0101dd,bigdong,ou812a,sinatra1,htcnjhfy,oleg123,videoman,pbyfblf,tv612se,bigbird1,kenaidog,gunite,silverma,ardmore,123123qq,hotbot,cascada,cbr600f4,harakiri,chico123,boscos,aaron12,glasgow1,kmn5hc,lanfear,1light,liveoak,fizika,ybrjkftdyf,surfside,intermilan,multipas,redcard,72chevy,balata,coolio1,schroede,kanat,testerer,camion,kierra,hejmeddig,antonio2,tornados,isidor,pinkey,n8skfswa,ginny1,houndog,1bill,chris25,hastur,1marine,greatdan,french1,hatman,123qqq,z1z2z3z4,kicker1,katiedog,usopen,smith22,mrmagoo,1234512i,assa123,7seven7,monster7,june12,bpvtyf,149521,guenter,alex1985,voronina,mbkugegs,zaqwsxcderfv,rusty5,mystic1,master0,abcdef12,jndfkb,r4zpm3,cheesey,skripka,blackwhite,sharon69,dro8smwq,lektor,techman,boognish,deidara,heckfyf,quietkey,authcode,monkey4,jayboy,pinkerto,merengue,chulita,bushwick,turambar,kittykit,joseph2,dad123,kristo,pepote,scheiss,hambone1,bigballa,restaura,tequil,111luzer,euro2000,motox,denhaag,chelsi,flaco1,preeti,lillo,1001sin,passw,august24,beatoff,555555d,willis1,kissthis,qwertyz,rvgmw2gl,iloveboobies,timati,kimbo,msinfo,dewdrop,sdbaker,fcc5nky2,messiah1,catboy,small1,chode,beastie1,star77,hvidovre,short1,xavie,dagobah,alex1987,papageno,dakota2,toonami,fuerte,jesus33,lawina,souppp,dirtybir,chrish,naturist,channel1,peyote,flibble,gutentag,lactate,killem,zucchero,robinho,ditka,grumpy1,avr7000,boxxer,topcop,berry1,mypass1,beverly1,deuce1,9638527410,cthuttdf,kzkmrf,lovethem,band1t,cantona1,purple11,apples123,wonderwo,123a456,fuzzie,lucky99,dancer2,hoddling,rockcity,winner12,spooty,mansfiel,aimee1,287hf71h,rudiger,culebra,god123,agent86,daniel0,bunky1,notmine,9ball,goofus,puffy1,xyh28af4,kulikov,bankshot,vurdf5i2,kevinm,ercole,sexygirls,razvan,october7,goater,lollie,raissa,thefrog,mdmaiwa3,mascha,jesussaves,union1,anthony9,crossroa,brother2,areyuke,rodman91,toonsex,dopeman,gericom,vaz2115,cockgobbler,12356789,12345699,signatur,alexandra1,coolwhip,erwin1,awdrgyjilp,pens66,ghjrjgtyrj,linkinpark,emergenc,psych0,blood666,bootmort,wetworks,piroca,johnd,iamthe1,supermario,homer69,flameon,image1,bebert,fylhtq1,annapoli,apple11,hockey22,10048,indahouse,mykiss,1penguin,markp,misha123,foghat,march11,hank1,santorin,defcon4,tampico,vbnhjafy,robert22,bunkie,athlon64,sex777,nextdoor,koskesh,lolnoob,seemnemaailm,black23,march15,yeehaa,chiqui,teagan,siegheil,monday2,cornhusk,mamusia,chilis,sthgrtst,feldspar,scottm,pugdog,rfghjy,micmac,gtnhjdyf,terminato,1jackson,kakosja,bogomol,123321aa,rkbvtyrj,tresor,tigertig,fuckitall,vbkkbjy,caramon,zxc12,balin,dildo1,soccer09,avata,abby123,cheetah1,marquise,jennyc,hondavfr,tinti,anna1985,dennis2,jorel,mayflowe,icema,hal2000,nikkis,bigmouth,greenery,nurjan,leonov,liberty7,fafnir,larionov,sat321321,byteme1,nausicaa,hjvfynbrf,everto,zebra123,sergio1,titone,wisdom1,kahala,104328q,marcin1,salima,pcitra,1nnnnn,nalini,galvesto,neeraj,rick1,squeeky,agnes1,jitterbu,agshar,maria12,0112358,traxxas,stivone,prophet1,bananza,sommer1,canoneos,hotfun,redsox11,1bigmac,dctdjkjl,legion1,everclea,valenok,black9,danny001,roxie1,1theman,mudslide,july16,lechef,chula,glamis,emilka,canbeef,ioanna,cactus1,rockshox,im2cool,ninja9,thvfrjdf,june28,milo17,missyou,micky1,nbibyf,nokiaa,goldi,mattias,fuckthem,asdzxc123,ironfist,junior01,nesta,crazzy,killswit,hygge,zantac,kazama,melvin1,allston,maandag,hiccup,prototyp,specboot,dwl610,hello6,159456,baldhead,redwhite,calpoly,whitetail,agile1,cousteau,matt01,aust1n,malcolmx,gjlfhjr,semperf1,ferarri,a1b2c3d,vangelis,mkvdari,bettis36,andzia,comand,tazzman,morgaine,pepluv,anna1990,inandout,anetka,anna1997,wallpape,moonrake,huntress,hogtie,cameron7,sammy7,singe11,clownboy,newzeala,wilmar,safrane,rebeld,poopi,granat,hammertime,nermin,11251422,xyzzy1,bogeys,jkmxbr,fktrcfyl,11223311,nfyrbcn,11223300,powerpla,zoedog,ybrbnbyf,zaphod42,tarawa,jxfhjdfirf,dude1234,g5wks9,goobe,czekolada,blackros,amaranth,medical1,thereds,julija,nhecsyfujkjdt,promopas,buddy4,marmalad,weihnachten,tronic,letici,passthief,67mustan,ds7zamnw,morri,w8woord,cheops,pinarell,sonofsam,av473dv,sf161pn,5c92v5h6,purple13,tango123,plant1,1baby,xufrgemw,fitta,1rangers,spawns,kenned,taratata,19944991,11111118,coronas,4ebouux8,roadrash,corvette1,dfyjdf846,marley12,qwaszxerdfcv,68stang,67stang,racin,ellehcim,sofiko,nicetry,seabass1,jazzman1,zaqwsx1,laz2937,uuuuuuu1,vlad123,rafale,j1234567,223366,nnnnnn1,226622,junkfood,asilas,cer980,daddymac,persepho,neelam,00700,shithappens,255555,qwertyy,xbox36,19755791,qweasd1,bearcub,jerryb,a1b1c1,polkaudio,basketball1,456rty,1loveyou,marcus2,mama1961,palace1,transcend,shuriken,sudhakar,teenlove,anabelle,matrix99,pogoda,notme,bartend,jordana,nihaoma,ataris,littlegi,ferraris,redarmy,giallo,fastdraw,accountbloc,peludo,pornostar,pinoyako,cindee,glassjaw,dameon,johnnyd,finnland,saudade,losbravo,slonko,toplay,smalltit,nicksfun,stockhol,penpal,caraj,divedeep,cannibus,poppydog,pass88,viktory,walhalla,arisia,lucozade,goldenbo,tigers11,caball,ownage123,tonna,handy1,johny,capital5,faith2,stillher,brandan,pooky1,antananarivu,hotdick,1justin,lacrimos,goathead,bobrik,cgtwbfkbcn,maywood,kamilek,gbplf123,gulnar,beanhead,vfvjyn,shash,viper69,ttttttt1,hondacr,kanako,muffer,dukies,justin123,agapov58,mushka,bad11bad,muleman,jojo123,andreika,makeit,vanill,boomers,bigals,merlin11,quacker,aurelien,spartak1922,ligeti,diana2,lawnmowe,fortune1,awesom,rockyy,anna1994,oinker,love88,eastbay,ab55484,poker0,ozzy666,papasmurf,antihero,photogra,ktm250,painkill,jegr2d2,p3orion,canman,dextur,qwest123,samboy,yomismo,sierra01,herber,vfrcbvvfrcbv,gloria1,llama1,pie123,bobbyjoe,buzzkill,skidrow,grabber,phili,javier1,9379992q,geroin,oleg1994,sovereig,rollover,zaq12qaz,battery1,killer13,alina123,groucho1,mario12,peter22,butterbean,elise1,lucycat,neo123,ferdi,golfer01,randie,gfhfyjbr,ventura1,chelsea3,pinoy,mtgox,yrrim7,shoeman,mirko,ffggyyo,65mustan,ufdibyjd,john55,suckfuck,greatgoo,fvfnjhb,mmmnnn,love20,1bullshi,sucesso,easy1234,robin123,rockets1,diamondb,wolfee,nothing0,joker777,glasnost,richar1,guille,sayan,koresh,goshawk,alexx,batman21,a123456b,hball,243122,rockandr,coolfool,isaia,mary1,yjdbrjdf,lolopc,cleocat,cimbo,lovehina,8vfhnf,passking,bonapart,diamond2,bigboys,kreator,ctvtyjdf,sassy123,shellac,table54781,nedkelly,philbert,sux2bu,nomis,sparky99,python1,littlebear,numpty,silmaril,sweeet,jamesw,cbufhtnf,peggysue,wodahs,luvsex,wizardry,venom123,love4you,bama1,samat,reviewpass,ned467,cjkjdtq,mamula,gijoe,amersham,devochka,redhill,gisel,preggo,polock,cando,rewster,greenlantern,panasonik,dave1234,mikeee,1carlos,miledi,darkness1,p0o9i8u7y6,kathryn1,happyguy,dcp500,assmaster,sambuka,sailormo,antonio3,logans,18254288,nokiax2,qwertzuiop,zavilov,totti,xenon1,edward11,targa1,something1,tony_t,q1w2e3r4t5y6u7i8o9p0,02551670,vladimir1,monkeybutt,greenda,neel21,craiger,saveliy,dei008,honda450,fylhtq95,spike2,fjnq8915,passwordstandard,vova12345,talonesi,richi,gigemags,pierre1,westin,trevoga,dorothee,bastogne,25563o,brandon3,truegrit,krimml,iamgreat,servis,a112233,paulinka,azimuth,corperfmonsy,358hkyp,homerun1,dogbert1,eatmyass,cottage1,savina,baseball7,bigtex,gimmesum,asdcxz,lennon1,a159357,1bastard,413276191q,pngfilt,pchealth,netsnip,bodiroga,1matt,webtvs,ravers,adapters,siddis,mashamasha,coffee2,myhoney,anna1982,marcia1,fairchil,maniek,iloveluc,batmonh,wildon,bowie1,netnwlnk,fancy1,tom204,olga1976,vfif123,queens1,ajax01,lovess,mockba,icam4usb,triada,odinthor,rstlne,exciter,sundog,anchorat,girls69,nfnmzyrf,soloma,gti16v,shadowman,ottom,rataros,tonchin,vishal,chicken0,pornlo,christiaan,volante,likesit,mariupol,runfast,gbpltw123,missys,villevalo,kbpjxrf,ghibli,calla,cessna172,kinglear,dell11,swift1,walera,1cricket,pussy5,turbo911,tucke,maprchem56458,rosehill,thekiwi1,ygfxbkgt,mandarinka,98xa29,magnit,cjfrf,paswoord,grandam1,shenmue,leedsuni,hatrick,zagadka,angeldog,michaell,dance123,koichi,bballs,29palms,xanth,228822,ppppppp1,1kkkkk,1lllll,mynewbots,spurss,madmax1,224455,city1,mmmmmmm1,nnnnnnn1,biedronka,thebeatles,elessar,f14tomcat,jordan18,bobo123,ayi000,tedbear,86chevyx,user123,bobolink,maktub,elmer1,flyfishi,franco1,gandalf0,traxdata,david21,enlighte,dmitrij,beckys,1giants,flippe,12345678w,jossie,rugbyman,snowcat,rapeme,peanut11,gemeni,udders,techn9ne,armani1,chappie,war123,vakantie,maddawg,sewanee,jake5253,tautt1,anthony5,letterma,jimbo2,kmdtyjr,hextall,jessica6,amiga500,hotcunt,phoenix9,veronda,saqartvelo,scubas,sixer3,williamj,nightfal,shihan,melnikova,kosssss,handily,killer77,jhrl0821,march17,rushman,6gcf636i,metoyou,irina123,mine11,primus1,formatters,matthew5,infotech,gangster1,jordan45,moose69,kompas,motoxxx,greatwhi,cobra12,kirpich,weezer1,hello23,montse,tracy123,connecte,cjymrf,hemingwa,azreal,gundam00,mobila,boxman,slayers1,ravshan,june26,fktrcfylhjd,bermuda1,tylerd,maersk,qazwsx11,eybdthcbntn,ash123,camelo,kat123,backd00r,cheyenne1,1king,jerkin,tnt123,trabant,warhammer40k,rambos,punto,home77,pedrito,1frank,brille,guitarman,george13,rakas,tgbxtcrbq,flute1,bananas1,lovezp1314,thespot,postie,buster69,sexytime,twistys,zacharia,sportage,toccata,denver7,terry123,bogdanova,devil69,higgins1,whatluck,pele10,kkk666,jeffery1,1qayxsw2,riptide1,chevy11,munchy,lazer1,hooker1,ghfgjh,vergesse,playgrou,4077mash,gusev,humpin,oneputt,hydepark,monster9,tiger8,tangsoo,guy123,hesoyam1,uhtqneyu,thanku,lomond,ortezza,kronik,geetha,rabbit66,killas,qazxswe,alabaste,1234567890qwerty,capone1,andrea12,geral,beatbox,slutfuck,booyaka,jasmine7,ostsee,maestro1,beatme,tracey1,buster123,donaldduck,ironfish,happy6,konnichi,gintonic,momoney1,dugan1,today2,enkidu,destiny2,trim7gun,katuha,fractals,morganstanley,polkadot,gotime,prince11,204060,fifa2010,bobbyt,seemee,amanda10,airbrush,bigtitty,heidie,layla1,cotton1,5speed,fyfnjkmtdyf,flynavy,joxury8f,meeko,akuma,dudley1,flyboy1,moondog1,trotters,mariami,signin,chinna,legs11,pussy4,1s1h1e1f1,felici,optimus1,iluvu,marlins1,gavaec,balance1,glock40,london01,kokot,southwes,comfort1,sammy11,rockbottom,brianc,litebeer,homero,chopsuey,greenlan,charit,freecell,hampster,smalldog,viper12,blofeld,1234567890987654321,realsex,romann,cartman2,cjdthitycndj,nelly1,bmw528,zwezda,masterba,jeep99,turtl,america2,sunburst,sanyco,auntjudy,125wm,blue10,qwsazx,cartma,toby12,robbob,red222,ilovecock,losfix16,1explore,helge,vaz2114,whynotme,baba123,mugen,1qazwsxedc,albertjr,0101198,sextime,supras,nicolas2,wantsex,pussy6,checkm8,winam,24gordon,misterme,curlew,gbljhfcs,medtech,franzi,butthea,voivod,blackhat,egoiste,pjkeirf,maddog69,pakalolo,hockey4,igor1234,rouges,snowhite,homefree,sexfreak,acer12,dsmith,blessyou,199410,vfrcbvjd,falco02,belinda1,yaglasph,april21,groundho,jasmin1,nevergiveup,elvir,gborv526,c00kie,emma01,awesome2,larina,mike12345,maximu,anupam,bltynbabrfwbz,tanushka,sukkel,raptor22,josh12,schalke04,cosmodog,fuckyou8,busybee,198800,bijoux,frame1,blackmor,giveit,issmall,bear13,123-123,bladez,littlegirl,ultra123,fletch1,flashnet,loploprock,rkelly,12step,lukas1,littlewhore,cuntfinger,stinkyfinger,laurenc,198020,n7td4bjl,jackie69,camel123,ben1234,1gateway,adelheid,fatmike,thuglove,zzaaqq,chivas1,4815162342q,mamadou,nadano,james22,benwin,andrea99,rjirf,michou,abkbgg,d50gnn,aaazzz,a123654,blankman,booboo11,medicus,bigbone,197200,justine1,bendix,morphius,njhvjp,44mag,zsecyus56,goodbye1,nokiadermo,a333444,waratsea,4rzp8ab7,fevral,brillian,kirbys,minim,erathia,grazia,zxcvb1234,dukey,snaggle,poppi,hymen,1video,dune2000,jpthjdf,cvbn123,zcxfcnkbdfz,astonv,ginnie,316271,engine3,pr1ncess,64chevy,glass1,laotzu,hollyy,comicbooks,assasins,nuaddn9561,scottsda,hfcnfvfy,accobra,7777777z,werty123,metalhead,romanson,redsand,365214,shalo,arsenii,1989cc,sissi,duramax,382563,petera,414243,mamapap,jollymon,field1,fatgirl,janets,trompete,matchbox20,rambo2,nepenthe,441232,qwertyuiop10,bozo123,phezc419hv,romantika,lifestyl,pengui,decembre,demon6,panther6,444888,scanman,ghjcnjabkz,pachanga,buzzword,indianer,spiderman3,tony12,startre,frog1,fyutk,483422,tupacshakur,albert12,1drummer,bmw328i,green17,aerdna,invisibl,summer13,calimer,mustaine,lgnu9d,morefun,hesoyam123,escort1,scrapland,stargat,barabbas,dead13,545645,mexicali,sierr,gfhfpbn,gonchar,moonstafa,searock,counte,foster1,jayhawk1,floren,maremma,nastya2010,softball1,adaptec,halloo,barrabas,zxcasd123,hunny,mariana1,kafedra,freedom0,green420,vlad1234,method7,665566,tooting,hallo12,davinchi,conducto,medias,666444,invernes,madhatter,456asd,12345678i,687887,le33px,spring00,help123,bellybut,billy5,vitalik1,river123,gorila,bendis,power666,747200,footslav,acehigh,qazxswedc123,q1a1z1,richard9,peterburg,tabletop,gavrilov,123qwe1,kolosov,fredrau,run4fun,789056,jkbvgbflf,chitra,87654321q,steve22,wideopen,access88,surfe,tdfyutkbjy,impossib,kevin69,880888,cantina,887766,wxcvb,dontforg,qwer1209,asslicke,mamma123,indig,arkasha,scrapp,morelia,vehxbr,jones2,scratch1,cody11,cassie12,gerbera,dontgotm,underhil,maks2010,hollywood1,hanibal,elena2010,jason11,1010321,stewar,elaman,fireplug,goodby,sacrific,babyphat,bobcat12,bruce123,1233215,tony45,tiburo,love15,bmw750,wallstreet,2h0t4me,1346795,lamerz,munkee,134679q,granvill,1512198,armastus,aiden1,pipeutvj,g1234567,angeleyes,usmc1,102030q,putangina,brandnew,shadowfax,eagles12,1falcon,brianw,lokomoti,2022958,scooper,pegas,jabroni1,2121212,buffal,siffredi,wewiz,twotone,rosebudd,nightwis,carpet1,mickey2,2525252,sleddog,red333,jamesm,2797349,jeff12,onizuka,felixxxx,rf6666,fine1,ohlala,forplay,chicago5,muncho,scooby11,ptichka,johnnn,19851985p,dogphil3650,totenkopf,monitor2,macross7,3816778,dudder,semaj1,bounder,racerx1,5556633,7085506,ofclr278,brody1,7506751,nantucke,hedj2n4q,drew1,aessedai,trekbike,pussykat,samatron,imani,9124852,wiley1,dukenukem,iampurehaha2,9556035,obvious1,mccool24,apache64,kravchenko,justforf,basura,jamese,s0ccer,safado,darksta,surfer69,damian1,gjpbnbd,gunny1,wolley,sananton,zxcvbn123456,odt4p6sv8,sergei1,modem1,mansikka,zzzz1,rifraf,dima777,mary69,looking4,donttell,red100,ninjutsu,uaeuaeman,bigbri,brasco,queenas8151,demetri,angel007,bubbl,kolort,conny,antonia1,avtoritet,kaka22,kailayu,sassy2,wrongway,chevy3,1nascar,patriots1,chrisrey,mike99,sexy22,chkdsk,sd3utre7,padawan,a6pihd,doming,mesohorny,tamada,donatello,emma22,eather,susan69,pinky123,stud69,fatbitch,pilsbury,thc420,lovepuss,1creativ,golf1234,hurryup,1honda,huskerdu,marino1,gowron,girl1,fucktoy,gtnhjpfdjlcr,dkjfghdk,pinkfl,loreli,7777777s,donkeykong,rockytop,staples1,sone4ka,xxxjay,flywheel,toppdogg,bigbubba,aaa123456,2letmein,shavkat,paule,dlanor,adamas,0147852,aassaa,dixon1,bmw328,mother12,ilikepussy,holly2,tsmith,excaliber,fhutynbyf,nicole3,tulipan,emanue,flyvholm,currahee,godsgift,antonioj,torito,dinky1,sanna,yfcnzvjz,june14,anime123,123321456654,hanswurst,bandman,hello101,xxxyyy,chevy69,technica,tagada,arnol,v00d00,lilone,filles,drumandbass,dinamit,a1234a,eatmeat,elway07,inout,james6,dawid1,thewolf,diapason,yodaddy,qscwdv,fuckit1,liljoe,sloeber,simbacat,sascha1,qwe1234,1badger,prisca,angel17,gravedig,jakeyboy,longboard,truskawka,golfer11,pyramid7,highspee,pistola,theriver,hammer69,1packers,dannyd,alfonse,qwertgfdsa,11119999,basket1,ghjtrn,saralee,12inches,paolo1,zse4xdr5,taproot,sophieh6,grizzlie,hockey69,danang,biggums,hotbitch,5alive,beloved1,bluewave,dimon95,koketka,multiscan,littleb,leghorn,poker2,delite,skyfir,bigjake,persona1,amberdog,hannah12,derren,ziffle,1sarah,1assword,sparky01,seymur,tomtom1,123321qw,goskins,soccer19,luvbekki,bumhole,2balls,1muffin,borodin,monkey9,yfeiybrb,1alex,betmen,freder,nigger123,azizbek,gjkzrjdf,lilmike,1bigdadd,1rock,taganrog,snappy1,andrey1,kolonka,bunyan,gomango,vivia,clarkkent,satur,gaudeamus,mantaray,1month,whitehea,fargus,andrew99,ray123,redhawks,liza2009,qw12345,den12345,vfhnsyjdf,147258369a,mazepa,newyorke,1arsenal,hondas2000,demona,fordgt,steve12,birthday2,12457896,dickster,edcwsxqaz,sahalin,pantyman,skinny1,hubertus,cumshot1,chiro,kappaman,mark3434,canada12,lichking,bonkers1,ivan1985,sybase,valmet,doors1,deedlit,kyjelly,bdfysx,ford11,throatfuck,backwood,fylhsq,lalit,boss429,kotova,bricky,steveh,joshua19,kissa,imladris,star1234,lubimka,partyman,crazyd,tobias1,ilike69,imhome,whome,fourstar,scanner1,ujhjl312,anatoli,85bears,jimbo69,5678ytr,potapova,nokia7070,sunday1,kalleank,1996gta,refinnej,july1,molodec,nothanks,enigm,12play,sugardog,nhfkbdfkb,larousse,cannon1,144444,qazxcdew,stimorol,jhereg,spawn7,143000,fearme,hambur,merlin21,dobie,is3yeusc,partner1,dekal,varsha,478jfszk,flavi,hippo1,9hmlpyjd,july21,7imjfstw,lexxus,truelov,nokia5200,carlos6,anais,mudbone,anahit,taylorc,tashas,larkspur,animal2000,nibiru,jan123,miyvarxar,deflep,dolore,communit,ifoptfcor,laura2,anadrol,mamaliga,mitzi1,blue92,april15,matveev,kajlas,wowlook1,1flowers,shadow14,alucard1,1golf,bantha,scotlan,singapur,mark13,manchester1,telus01,superdav,jackoff1,madnes,bullnuts,world123,clitty,palmer1,david10,spider10,sargsyan,rattlers,david4,windows2,sony12,visigoth,qqqaaa,penfloor,cabledog,camilla1,natasha123,eagleman,softcore,bobrov,dietmar,divad,sss123,d1234567,tlbyjhju,1q1q1q1,paraiso,dav123,lfiekmrf,drachen,lzhan16889,tplate,gfghbrf,casio1,123boots1,123test,sys64738,heavymetal,andiamo,meduza,soarer,coco12,negrita,amigas,heavymet,bespin,1asdfghj,wharfrat,wetsex,tight1,janus1,sword123,ladeda,dragon98,austin2,atep1,jungle1,12345abcd,lexus300,pheonix1,alex1974,123qw123,137955,bigtim,shadow88,igor1994,goodjob,arzen,champ123,121ebay,changeme1,brooksie,frogman1,buldozer,morrowin,achim,trish1,lasse,festiva,bubbaman,scottb,kramit,august22,tyson123,passsword,oompah,al123456,fucking1,green45,noodle1,looking1,ashlynn,al1716,stang50,coco11,greese,bob111,brennan1,jasonj,1cherry,1q2345,1xxxxxxx,fifa2011,brondby,zachar1,satyam,easy1,magic7,1rainbow,cheezit,1eeeeeee,ashley123,assass1,amanda123,jerbear,1bbbbbb,azerty12,15975391,654321z,twinturb,onlyone1,denis1988,6846kg3r,jumbos,pennydog,dandelion,haileris,epervier,snoopy69,afrodite,oldpussy,green55,poopypan,verymuch,katyusha,recon7,mine69,tangos,contro,blowme2,jade1,skydive1,fiveiron,dimo4ka,bokser,stargirl,fordfocus,tigers2,platina,baseball11,raque,pimper,jawbreak,buster88,walter34,chucko,penchair,horizon1,thecure1,scc1975,adrianna1,kareta,duke12,krille,dumbfuck,cunt1,aldebaran,laverda,harumi,knopfler,pongo1,pfhbyf,dogman1,rossigno,1hardon,scarlets,nuggets1,ibelieve,akinfeev,xfhkbr,athene,falcon69,happie,billly,nitsua,fiocco,qwerty09,gizmo2,slava2,125690,doggy123,craigs,vader123,silkeborg,124365,peterm,123978,krakatoa,123699,123592,kgvebmqy,pensacol,d1d2d3,snowstor,goldenboy,gfg65h7,ev700,church1,orange11,g0dz1ll4,chester3,acheron,cynthi,hotshot1,jesuschris,motdepass,zymurgy,one2one,fietsbel,harryp,wisper,pookster,nn527hp,dolla,milkmaid,rustyboy,terrell1,epsilon1,lillian1,dale3,crhbgrf,maxsim,selecta,mamada,fatman1,ufkjxrf,shinchan,fuckuall,women1,000008,bossss,greta1,rbhjxrf,mamasboy,purple69,felicidade,sexy21,cathay,hunglow,splatt,kahless,shopping1,1gandalf,themis,delta7,moon69,blue24,parliame,mamma1,miyuki,2500hd,jackmeof,razer,rocker1,juvis123,noremac,boing747,9z5ve9rrcz,icewater,titania,alley1,moparman,christo1,oliver2,vinicius,tigerfan,chevyy,joshua99,doda99,matrixx,ekbnrf,jackfrost,viper01,kasia,cnfhsq,triton1,ssbt8ae2,rugby8,ramman,1lucky,barabash,ghtlfntkm,junaid,apeshit,enfant,kenpo1,shit12,007000,marge1,shadow10,qwerty789,richard8,vbitkm,lostboys,jesus4me,richard4,hifive,kolawole,damilola,prisma,paranoya,prince2,lisaann,happyness,cardss,methodma,supercop,a8kd47v5,gamgee,polly123,irene1,number8,hoyasaxa,1digital,matthew0,dclxvi,lisica,roy123,2468013579,sparda,queball,vaffanculo,pass1wor,repmvbx,999666333,freedom8,botanik,777555333,marcos1,lubimaya,flash2,einstei,08080,123456789j,159951159,159357123,carrot1,alina1995,sanjos,dilara,mustang67,wisteria,jhnjgtl12,98766789,darksun,arxangel,87062134,creativ1,malyshka,fuckthemall,barsic,rocksta,2big4u,5nizza,genesis2,romance1,ofcourse,1horse,latenite,cubana,sactown,789456123a,milliona,61808861,57699434,imperia,bubba11,yellow3,change12,55495746,flappy,jimbo123,19372846,19380018,cutlass1,craig123,klepto,beagle1,solus,51502112,pasha1,19822891,46466452,19855891,petshop,nikolaevna,119966,nokia6131,evenpar,hoosier1,contrasena,jawa350,gonzo123,mouse2,115511,eetfuk,gfhfvgfvgfv,1crystal,sofaking,coyote1,kwiatuszek,fhrflbq,valeria1,anthro,0123654789,alltheway,zoltar,maasikas,wildchil,fredonia,earlgrey,gtnhjczy,matrix123,solid1,slavko,12monkeys,fjdksl,inter1,nokia6500,59382113kevinp,spuddy,cachero,coorslit,password!,kiba1z,karizma,vova1994,chicony,english1,bondra12,1rocket,hunden,jimbob1,zpflhjn1,th0mas,deuce22,meatwad,fatfree,congas,sambora,cooper2,janne,clancy1,stonie,busta,kamaz,speedy2,jasmine3,fahayek,arsenal0,beerss,trixie1,boobs69,luansantana,toadman,control2,ewing33,maxcat,mama1964,diamond4,tabaco,joshua0,piper2,music101,guybrush,reynald,pincher,katiebug,starrs,pimphard,frontosa,alex97,cootie,clockwor,belluno,skyeseth,booty69,chaparra,boochie,green4,bobcat1,havok,saraann,pipeman,aekdb,jumpshot,wintermu,chaika,1chester,rjnjatq,emokid,reset1,regal1,j0shua,134679a,asmodey,sarahh,zapidoo,ciccione,sosexy,beckham23,hornets1,alex1971,delerium,manageme,connor11,1rabbit,sane4ek,caseyboy,cbljhjdf,redsox20,tttttt99,haustool,ander,pantera6,passwd1,journey1,9988776655,blue135,writerspace,xiaoyua123,justice2,niagra,cassis,scorpius,bpgjldsgjldthnf,gamemaster,bloody1,retrac,stabbin,toybox,fight1,ytpyf.,glasha,va2001,taylor11,shameles,ladylove,10078,karmann,rodeos,eintritt,lanesra,tobasco,jnrhjqcz,navyman,pablit,leshka,jessica3,123vika,alena1,platinu,ilford,storm7,undernet,sasha777,1legend,anna2002,kanmax1994,porkpie,thunder0,gundog,pallina,easypass,duck1,supermom,roach1,twincam,14028,tiziano,qwerty32,123654789a,evropa,shampoo1,yfxfkmybr,cubby1,tsunami1,fktrcttdf,yasacrac,17098,happyhap,bullrun,rodder,oaktown,holde,isbest,taylor9,reeper,hammer11,julias,rolltide1,compaq123,fourx4,subzero1,hockey9,7mary3,busines,ybrbnjcbr,wagoneer,danniash,portishead,digitex,alex1981,david11,infidel,1snoopy,free30,jaden,tonto1,redcar27,footie,moskwa,thomas21,hammer12,burzum,cosmo123,50000,burltree,54343,54354,vwpassat,jack5225,cougars1,burlpony,blackhorse,alegna,petert,katemoss,ram123,nels0n,ferrina,angel77,cstock,1christi,dave55,abc123a,alex1975,av626ss,flipoff,folgore,max1998,science1,si711ne,yams7,wifey1,sveiks,cabin1,volodia,ox3ford,cartagen,platini,picture1,sparkle1,tiedomi,service321,wooody,christi1,gnasher,brunob,hammie,iraffert,bot2010,dtcyeirf,1234567890p,cooper11,alcoholi,savchenko,adam01,chelsea5,niewiem,icebear,lllooottt,ilovedick,sweetpus,money8,cookie13,rfnthbyf1988,booboo2,angus123,blockbus,david9,chica1,nazaret,samsung9,smile4u,daystar,skinnass,john10,thegirl,sexybeas,wasdwasd1,sigge1,1qa2ws3ed4rf5tg,czarny,ripley1,chris5,ashley19,anitha,pokerman,prevert,trfnthby,tony69,georgia2,stoppedb,qwertyuiop12345,miniclip,franky1,durdom,cabbages,1234567890o,delta5,liudmila,nhfycajhvths,court1,josiew,abcd1,doghead,diman,masiania,songline,boogle,triston,deepika,sexy4me,grapple,spacebal,ebonee,winter0,smokewee,nargiza,dragonla,sassys,andy2000,menards,yoshio,massive1,suckmy1k,passat99,sexybo,nastya1996,isdead,stratcat,hokuto,infix,pidoras,daffyduck,cumhard,baldeagl,kerberos,yardman,shibainu,guitare,cqub6553,tommyy,bk.irf,bigfoo,hecto,july27,james4,biggus,esbjerg,isgod,1irish,phenmarr,jamaic,roma1990,diamond0,yjdbrjd,girls4me,tampa1,kabuto,vaduz,hanse,spieng,dianochka,csm101,lorna1,ogoshi,plhy6hql,2wsx4rfv,cameron0,adebayo,oleg1996,sharipov,bouboule,hollister1,frogss,yeababy,kablam,adelante,memem,howies,thering,cecilia1,onetwo12,ojp123456,jordan9,msorcloledbr,neveraga,evh5150,redwin,1august,canno,1mercede,moody1,mudbug,chessmas,tiikeri,stickdaddy77,alex15,kvartira,7654321a,lollol123,qwaszxedc,algore,solana,vfhbyfvfhbyf,blue72,misha1111,smoke20,junior13,mogli,threee,shannon2,fuckmylife,kevinh,saransk,karenw,isolde,sekirarr,orion123,thomas0,debra1,laketaho,alondra,curiva,jazz1234,1tigers,jambos,lickme2,suomi,gandalf7,028526,zygote,brett123,br1ttany,supafly,159000,kingrat,luton1,cool-ca,bocman,thomasd,skiller,katter,mama777,chanc,tomass,1rachel,oldno7,rfpfyjdf,bigkev,yelrah,primas,osito,kipper1,msvcr71,bigboy11,thesun,noskcaj,chicc,sonja1,lozinka,mobile1,1vader,ummagumma,waves1,punter12,tubgtn,server1,irina1991,magic69,dak001,pandemonium,dead1,berlingo,cherrypi,1montana,lohotron,chicklet,asdfgh123456,stepside,ikmvw103,icebaby,trillium,1sucks,ukrnet,glock9,ab12345,thepower,robert8,thugstools,hockey13,buffon,livefree,sexpics,dessar,ja0000,rosenrot,james10,1fish,svoloch,mykitty,muffin11,evbukb,shwing,artem1992,andrey1992,sheldon1,passpage,nikita99,fubar123,vannasx,eight888,marial,max2010,express2,violentj,2ykn5ccf,spartan11,brenda69,jackiech,abagail,robin2,grass1,andy76,bell1,taison,superme,vika1995,xtr451,fred20,89032073168,denis1984,2000jeep,weetabix,199020,daxter,tevion,panther8,h9iymxmc,bigrig,kalambur,tsalagi,12213443,racecar02,jeffrey4,nataxa,bigsam,purgator,acuracl,troutbum,potsmoke,jimmyz,manutd1,nytimes,pureevil,bearss,cool22,dragonage,nodnarb,dbrbyu,4seasons,freude,elric1,werule,hockey14,12758698,corkie,yeahright,blademan,tafkap,clave,liziko,hofner,jeffhardy,nurich,runne,stanisla,lucy1,monk3y,forzaroma,eric99,bonaire,blackwoo,fengshui,1qaz0okm,newmoney,pimpin69,07078,anonymer,laptop1,cherry12,ace111,salsa1,wilbur1,doom12,diablo23,jgtxzbhr,under1,honda01,breadfan,megan2,juancarlos,stratus1,ackbar,love5683,happytim,lambert1,cbljhtyrj,komarov,spam69,nfhtkrf,brownn,sarmat,ifiksr,spike69,hoangen,angelz,economia,tanzen,avogadro,1vampire,spanners,mazdarx,queequeg,oriana,hershil,sulaco,joseph11,8seconds,aquariu,cumberla,heather9,anthony8,burton12,crystal0,maria3,qazwsxc,snow123,notgood,198520,raindog,heehaw,consulta,dasein,miller01,cthulhu1,dukenuke,iubire,baytown,hatebree,198505,sistem,lena12,welcome01,maraca,middleto,sindhu,mitsou,phoenix5,vovan,donaldo,dylandog,domovoy,lauren12,byrjuybnj,123llll,stillers,sanchin,tulpan,smallvill,1mmmmm,patti1,folgers,mike31,colts18,123456rrr,njkmrjz,phoenix0,biene,ironcity,kasperok,password22,fitnes,matthew6,spotligh,bujhm123,tommycat,hazel5,guitar11,145678,vfcmrf,compass1,willee,1barney,jack2000,littleminge,shemp,derrek,xxx12345,littlefuck,spuds1,karolinka,camneely,qwertyu123,142500,brandon00,munson15,falcon3,passssap,z3cn2erv,goahead,baggio10,141592,denali1,37kazoo,copernic,123456789asd,orange88,bravada,rush211,197700,pablo123,uptheass,samsam1,demoman,mattylad10,heydude,mister2,werken,13467985,marantz,a22222,f1f2f3f4,fm12mn12,gerasimova,burrito1,sony1,glenny,baldeagle,rmfidd,fenomen,verbati,forgetme,5element,wer138,chanel1,ooicu812,10293847qp,minicooper,chispa,myturn,deisel,vthrehbq,boredboi4u,filatova,anabe,poiuyt1,barmalei,yyyy1,fourkids,naumenko,bangbros,pornclub,okaykk,euclid90,warrior3,kornet,palevo,patatina,gocart,antanta,jed1054,clock1,111111w,dewars,mankind1,peugeot406,liten,tahira,howlin,naumov,rmracing,corone,cunthole,passit,rock69,jaguarxj,bumsen,197101,sweet2,197010,whitecat,sawadee,money100,yfhrjnbrb,andyboy,9085603566,trace1,fagget,robot1,angel20,6yhn7ujm,specialinsta,kareena,newblood,chingada,boobies2,bugger1,squad51,133andre,call06,ashes1,ilovelucy,success2,kotton,cavalla,philou,deebee,theband,nine09,artefact,196100,kkkkkkk1,nikolay9,onelov,basia,emilyann,sadman,fkrjujkbr,teamomuch,david777,padrino,money21,firdaus,orion3,chevy01,albatro,erdfcv,2legit,sarah7,torock,kevinn,holio,soloy,enron714,starfleet,qwer11,neverman,doctorwh,lucy11,dino12,trinity7,seatleon,o123456,pimpman,1asdfgh,snakebit,chancho,prorok,bleacher,ramire,darkseed,warhorse,michael123,1spanky,1hotdog,34erdfcv,n0th1ng,dimanche,repmvbyf,michaeljackson,login1,icequeen,toshiro,sperme,racer2,veget,birthday26,daniel9,lbvekmrf,charlus,bryan123,wspanic,schreibe,1andonly,dgoins,kewell,apollo12,egypt1,fernie,tiger21,aa123456789,blowj,spandau,bisquit,12345678d,deadmau5,fredie,311420,happyface,samant,gruppa,filmstar,andrew17,bakesale,sexy01,justlook,cbarkley,paul11,bloodred,rideme,birdbath,nfkbcvfy,jaxson,sirius1,kristof,virgos,nimrod1,hardc0re,killerbee,1abcdef,pitcher1,justonce,vlada,dakota99,vespucci,wpass,outside1,puertori,rfvbkf,teamlosi,vgfun2,porol777,empire11,20091989q,jasong,webuivalidat,escrima,lakers08,trigger2,addpass,342500,mongini,dfhtybr,horndogg,palermo1,136900,babyblu,alla98,dasha2010,jkelly,kernow,yfnecz,rockhopper,toeman,tlaloc,silver77,dave01,kevinr,1234567887654321,135642,me2you,8096468644q,remmus,spider7,jamesa,jilly,samba1,drongo,770129ji,supercat,juntas,tema1234,esthe,1234567892000,drew11,qazqaz123,beegees,blome,rattrace,howhigh,tallboy,rufus2,sunny2,sou812,miller12,indiana7,irnbru,patch123,letmeon,welcome5,nabisco,9hotpoin,hpvteb,lovinit,stormin,assmonke,trill,atlanti,money1234,cubsfan,mello1,stars2,ueptkm,agate,dannym88,lover123,wordz,worldnet,julemand,chaser1,s12345678,pissword,cinemax,woodchuc,point1,hotchkis,packers2,bananana,kalender,420666,penguin8,awo8rx3wa8t,hoppie,metlife,ilovemyfamily,weihnachtsbau,pudding1,luckystr,scully1,fatboy1,amizade,dedham,jahbless,blaat,surrende,****er,1panties,bigasses,ghjuhfvbcn,asshole123,dfktyrb,likeme,nickers,plastik,hektor,deeman,muchacha,cerebro,santana5,testdrive,dracula1,canalc,l1750sq,savannah1,murena,1inside,pokemon00,1iiiiiii,jordan20,sexual1,mailliw,calipso,014702580369,1zzzzzz,1jjjjjj,break1,15253545,yomama1,katinka,kevin11,1ffffff,martijn,sslazio,daniel5,porno2,nosmas,leolion,jscript,15975312,pundai,kelli1,kkkddd,obafgkm,marmaris,lilmama,london123,rfhfnt,elgordo,talk87,daniel7,thesims3,444111,bishkek,afrika2002,toby22,1speedy,daishi,2children,afroman,qqqqwwww,oldskool,hawai,v55555,syndicat,pukimak,fanatik,tiger5,parker01,bri5kev6,timexx,wartburg,love55,ecosse,yelena03,madinina,highway1,uhfdbwfgf,karuna,buhjvfybz,wallie,46and2,khalif,europ,qaz123wsx456,bobbybob,wolfone,falloutboy,manning18,scuba10,schnuff,ihateyou1,lindam,sara123,popcor,fallengun,divine1,montblanc,qwerty8,rooney10,roadrage,bertie1,latinus,lexusis,rhfvfnjhcr,opelgt,hitme,agatka,1yamaha,dmfxhkju,imaloser,michell1,sb211st,silver22,lockedup,andrew9,monica01,sassycat,dsobwick,tinroof,ctrhtnyj,bultaco,rhfcyjzhcr,aaaassss,14ss88,joanne1,momanddad,ahjkjdf,yelhsa,zipdrive,telescop,500600,1sexsex,facial1,motaro,511647,stoner1,temujin,elephant1,greatman,honey69,kociak,ukqmwhj6,altezza,cumquat,zippos,kontiki,123max,altec1,bibigon,tontos,qazsew,nopasaran,militar,supratt,oglala,kobayash,agathe,yawetag,dogs1,cfiekmrf,megan123,jamesdea,porosenok,tiger23,berger1,hello11,seemann,stunner1,walker2,imissu,jabari,minfd,lollol12,hjvfy,1-oct,stjohns,2278124q,123456789qwer,alex1983,glowworm,chicho,mallards,bluedevil,explorer1,543211,casita,1time,lachesis,alex1982,airborn1,dubesor,changa,lizzie1,captaink,socool,bidule,march23,1861brr,k.ljxrf,watchout,fotze,1brian,keksa2,aaaa1122,matrim,providian,privado,dreame,merry1,aregdone,davidt,nounour,twenty2,play2win,artcast2,zontik,552255,shit1,sluggy,552861,dr8350,brooze,alpha69,thunder6,kamelia2011,caleb123,mmxxmm,jamesh,lfybkjd,125267,125000,124536,bliss1,dddsss,indonesi,bob69,123888,tgkbxfgy,gerar,themack,hijodeputa,good4now,ddd123,clk430,kalash,tolkien1,132forever,blackb,whatis,s1s2s3s4,lolkin09,yamahar,48n25rcc,djtiesto,111222333444555,bigbull,blade55,coolbree,kelse,ichwill,yamaha12,sakic,bebeto,katoom,donke,sahar,wahine,645202,god666,berni,starwood,june15,sonoio,time123,llbean,deadsoul,lazarev,cdtnf,ksyusha,madarchod,technik,jamesy,4speed,tenorsax,legshow,yoshi1,chrisbl,44e3ebda,trafalga,heather7,serafima,favorite4,havefun1,wolve,55555r,james13,nosredna,bodean,jlettier,borracho,mickael,marinus,brutu,sweet666,kiborg,rollrock,jackson6,macross1,ousooner,9085084232,takeme,123qwaszx,firedept,vfrfhjd,jackfros,123456789000,briane,cookie11,baby22,bobby18,gromova,systemofadown,martin01,silver01,pimaou,darthmaul,hijinx,commo,chech,skyman,sunse,2vrd6,vladimirovna,uthvfybz,nicole01,kreker,bobo1,v123456789,erxtgb,meetoo,drakcap,vfvf12,misiek1,butane,network2,flyers99,riogrand,jennyk,e12345,spinne,avalon11,lovejone,studen,maint,porsche2,qwerty100,chamberl,bluedog1,sungam,just4u,andrew23,summer22,ludic,musiclover,aguil,beardog1,libertin,pippo1,joselit,patito,bigberth,digler,sydnee,jockstra,poopo,jas4an,nastya123,profil,fuesse,default1,titan2,mendoz,kpcofgs,anamika,brillo021,bomberman,guitar69,latching,69pussy,blues2,phelge,ninja123,m7n56xo,qwertasd,alex1976,cunningh,estrela,gladbach,marillion,mike2000,258046,bypop,muffinman,kd5396b,zeratul,djkxbwf,john77,sigma2,1linda,selur,reppep,quartz1,teen1,freeclus,spook1,kudos4ever,clitring,sexiness,blumpkin,macbook,tileman,centra,escaflowne,pentable,shant,grappa,zverev,1albert,lommerse,coffee11,777123,polkilo,muppet1,alex74,lkjhgfdsazx,olesica,april14,ba25547,souths,jasmi,arashi,smile2,2401pedro,mybabe,alex111,quintain,pimp1,tdeir8b2,makenna,122333444455555,%e2%82%ac,tootsie1,pass111,zaqxsw123,gkfdfybt,cnfnbcnbrf,usermane,iloveyou12,hard69,osasuna,firegod,arvind,babochka,kiss123,cookie123,julie123,kamakazi,dylan2,223355,tanguy,nbhtqa,tigger13,tubby1,makavel,asdflkj,sambo1,mononoke,mickeys,gayguy,win123,green33,wcrfxtvgbjy,bigsmall,1newlife,clove,babyfac,bigwaves,mama1970,shockwav,1friday,bassey,yarddog,codered1,victory7,bigrick,kracker,gulfstre,chris200,sunbanna,bertuzzi,begemotik,kuolema,pondus,destinee,123456789zz,abiodun,flopsy,amadeusptfcor,geronim,yggdrasi,contex,daniel6,suck1,adonis1,moorea,el345612,f22raptor,moviebuf,raunchy,6043dkf,zxcvbnm123456789,eric11,deadmoin,ratiug,nosliw,fannies,danno,888889,blank1,mikey2,gullit,thor99,mamiya,ollieb,thoth,dagger1,websolutionssu,bonker,prive,1346798520,03038,q1234q,mommy2,contax,zhipo,gwendoli,gothic1,1234562000,lovedick,gibso,digital2,space199,b26354,987654123,golive,serious1,pivkoo,better1,824358553,794613258,nata1980,logout,fishpond,buttss,squidly,good4me,redsox19,jhonny,zse45rdx,matrixxx,honey12,ramina,213546879,motzart,fall99,newspape,killit,gimpy,photowiz,olesja,thebus,marco123,147852963,bedbug,147369258,hellbound,gjgjxrf,123987456,lovehurt,five55,hammer01,1234554321a,alina2011,peppino,ang238,questor,112358132,alina1994,alina1998,money77,bobjones,aigerim,cressida,madalena,420smoke,tinchair,raven13,mooser,mauric,lovebu,adidas69,krypton1,1111112,loveline,divin,voshod,michaelm,cocotte,gbkbuhbv,76689295,kellyj,rhonda1,sweetu70,steamforums,geeque,nothere,124c41,quixotic,steam181,1169900,rfcgthcrbq,rfvbkm,sexstuff,1231230,djctvm,rockstar1,fulhamfc,bhecbr,rfntyf,quiksilv,56836803,jedimaster,pangit,gfhjkm777,tocool,1237654,stella12,55378008,19216811,potte,fender12,mortalkombat,ball1,nudegirl,palace22,rattrap,debeers,lickpussy,jimmy6,not4u2c,wert12,bigjuggs,sadomaso,1357924,312mas,laser123,arminia,branford,coastie,mrmojo,19801982,scott11,banaan123,ingres,300zxtt,hooters6,sweeties,19821983,19831985,19833891,sinnfein,welcome4,winner69,killerman,tachyon,tigre1,nymets1,kangol,martinet,sooty1,19921993,789qwe,harsingh,1597535,thecount,phantom3,36985214,lukas123,117711,pakistan1,madmax11,willow01,19932916,fucker12,flhrci,opelagila,theword,ashley24,tigger3,crazyj,rapide,deadfish,allana,31359092,sasha1993,sanders2,discman,zaq!2wsx,boilerma,mickey69,jamesg,babybo,jackson9,orion7,alina2010,indien,breeze1,atease,warspite,bazongaz,1celtic,asguard,mygal,fitzgera,1secret,duke33,cyklone,dipascuc,potapov,1escobar2,c0l0rad0,kki177hk,1little,macondo,victoriya,peter7,red666,winston6,kl?benhavn,muneca,jackme,jennan,happylife,am4h39d8nh,bodybuil,201980,dutchie,biggame,lapo4ka,rauchen,black10,flaquit,water12,31021364,command2,lainth88,mazdamx5,typhon,colin123,rcfhlfc,qwaszx11,g0away,ramir,diesirae,hacked1,cessna1,woodfish,enigma2,pqnr67w5,odgez8j3,grisou,hiheels,5gtgiaxm,2580258,ohotnik,transits,quackers,serjik,makenzie,mdmgatew,bryana,superman12,melly,lokit,thegod,slickone,fun4all,netpass,penhorse,1cooper,nsync,asdasd22,otherside,honeydog,herbie1,chiphi,proghouse,l0nd0n,shagg,select1,frost1996,casper123,countr,magichat,greatzyo,jyothi,3bears,thefly,nikkita,fgjcnjk,nitros,hornys,san123,lightspe,maslova,kimber1,newyork2,spammm,mikejone,pumpk1n,bruiser1,bacons,prelude9,boodie,dragon4,kenneth2,love98,power5,yodude,pumba,thinline,blue30,sexxybj,2dumb2live,matt21,forsale,1carolin,innova,ilikeporn,rbgtkjd,a1s2d3f,wu9942,ruffus,blackboo,qwerty999,draco1,marcelin,hideki,gendalf,trevon,saraha,cartmen,yjhbkmcr,time2go,fanclub,ladder1,chinni,6942987,united99,lindac,quadra,paolit,mainstre,beano002,lincoln7,bellend,anomie,8520456,bangalor,goodstuff,chernov,stepashka,gulla,mike007,frasse,harley03,omnislash,8538622,maryjan,sasha2011,gineok,8807031,hornier,gopinath,princesit,bdr529,godown,bosslady,hakaone,1qwe2,madman1,joshua11,lovegame,bayamon,jedi01,stupid12,sport123,aaa666,tony44,collect1,charliem,chimaira,cx18ka,trrim777,chuckd,thedream,redsox99,goodmorning,delta88,iloveyou11,newlife2,figvam,chicago3,jasonk,12qwer,9875321,lestat1,satcom,conditio,capri50,sayaka,9933162,trunks1,chinga,snooch,alexand1,findus,poekie,cfdbyf,kevind,mike1969,fire13,leftie,bigtuna,chinnu,silence1,celos1,blackdra,alex24,gfgfif,2boobs,happy8,enolagay,sataniv1993,turner1,dylans,peugeo,sasha1994,hoppel,conno,moonshot,santa234,meister1,008800,hanako,tree123,qweras,gfitymrf,reggie31,august29,supert,joshua10,akademia,gbljhfc,zorro123,nathalia,redsox12,hfpdjl,mishmash,nokiae51,nyyankees,tu190022,strongbo,none1,not4u2no,katie2,popart,harlequi,santan,michal1,1therock,screwu,csyekmrf,olemiss1,tyrese,hoople,sunshin1,cucina,starbase,topshelf,fostex,california1,castle1,symantec,pippolo,babare,turntabl,1angela,moo123,ipvteb,gogolf,alex88,cycle1,maxie1,phase2,selhurst,furnitur,samfox,fromvermine,shaq34,gators96,captain2,delonge,tomatoe,bisous,zxcvbnma,glacius,pineapple1,cannelle,ganibal,mko09ijn,paraklast1974,hobbes12,petty43,artema,junior8,mylover,1234567890d,fatal1ty,prostreet,peruan,10020,nadya,caution1,marocas,chanel5,summer08,metal123,111lox,scrapy,thatguy,eddie666,washingto,yannis,minnesota_hp,lucky4,playboy6,naumova,azzurro,patat,dale33,pa55wd,speedster,zemanova,saraht,newto,tony22,qscesz,arkady,1oliver,death6,vkfwx046,antiflag,stangs,jzf7qf2e,brianp,fozzy,cody123,startrek1,yoda123,murciela,trabajo,lvbnhbtdf,canario,fliper,adroit,henry5,goducks,papirus,alskdj,soccer6,88mike,gogetter,tanelorn,donking,marky1,leedsu,badmofo,al1916,wetdog,akmaral,pallet,april24,killer00,nesterova,rugby123,coffee12,browseui,ralliart,paigow,calgary1,armyman,vtldtltd,frodo2,frxtgb,iambigal,benno,jaytee,2hot4you,askar,bigtee,brentwoo,palladin,eddie2,al1916w,horosho,entrada,ilovetits,venture1,dragon19,jayde,chuvak,jamesl,fzr600,brandon8,vjqvbh,snowbal,snatch1,bg6njokf,pudder,karolin,candoo,pfuflrf,satchel1,manteca,khongbiet,critter1,partridg,skyclad,bigdon,ginger69,brave1,anthony4,spinnake,chinadol,passout,cochino,nipples1,15058,lopesk,sixflags,lloo999,parkhead,breakdance,cia123,fidodido,yuitre12,fooey,artem1995,gayathri,medin,nondriversig,l12345,bravo7,happy13,kazuya,camster,alex1998,luckyy,zipcode,dizzle,boating1,opusone,newpassw,movies23,kamikazi,zapato,bart316,cowboys0,corsair1,kingshit,hotdog12,rolyat,h200svrm,qwerty4,boofer,rhtyltkm,chris999,vaz21074,simferopol,pitboss,love3,britania,tanyshka,brause,123qwerty123,abeille,moscow1,ilkaev,manut,process1,inetcfg,dragon05,fortknox,castill,rynner,mrmike,koalas,jeebus,stockpor,longman,juanpabl,caiman,roleplay,jeremi,26058,prodojo,002200,magical1,black5,bvlgari,doogie1,cbhtqa,mahina,a1s2d3f4g5h6,jblpro,usmc01,bismilah,guitar01,april9,santana1,1234aa,monkey14,sorokin,evan1,doohan,animalsex,pfqxtyjr,dimitry,catchme,chello,silverch,glock45,dogleg,litespee,nirvana9,peyton18,alydar,warhamer,iluvme,sig229,minotavr,lobzik,jack23,bushwack,onlin,football123,joshua5,federov,winter2,bigmax,fufnfrhbcnb,hfpldfnhb,1dakota,f56307,chipmonk,4nick8,praline,vbhjh123,king11,22tango,gemini12,street1,77879,doodlebu,homyak,165432,chuluthu,trixi,karlito,salom,reisen,cdtnkzxjr,pookie11,tremendo,shazaam,welcome0,00000ty,peewee51,pizzle,gilead,bydand,sarvar,upskirt,legends1,freeway1,teenfuck,ranger9,darkfire,dfymrf,hunt0802,justme1,buffy1ma,1harry,671fsa75yt,burrfoot,budster,pa437tu,jimmyp,alina2006,malacon,charlize,elway1,free12,summer02,gadina,manara,gomer1,1cassie,sanja,kisulya,money3,pujols,ford50,midiland,turga,orange6,demetriu,freakboy,orosie1,radio123,open12,vfufpby,mustek,chris33,animes,meiling,nthtvjr,jasmine9,gfdkjd,oligarh,marimar,chicago9,.kzirf,bugssgub,samuraix,jackie01,pimpjuic,macdad,cagiva,vernost,willyboy,fynjyjdf,tabby1,privet123,torres9,retype,blueroom,raven11,q12we3,alex1989,bringiton,ridered,kareltje,ow8jtcs8t,ciccia,goniners,countryb,24688642,covingto,24861793,beyblade,vikin,badboyz,wlafiga,walstib,mirand,needajob,chloes,balaton,kbpfdtnf,freyja,bond9007,gabriel12,stormbri,hollage,love4eve,fenomeno,darknite,dragstar,kyle123,milfhunter,ma123123123,samia,ghislain,enrique1,ferien12,xjy6721,natalie2,reglisse,wilson2,wesker,rosebud7,amazon1,robertr,roykeane,xtcnth,mamatata,crazyc,mikie,savanah,blowjob69,jackie2,forty1,1coffee,fhbyjxrf,bubbah,goteam,hackedit,risky1,logoff,h397pnvr,buck13,robert23,bronc,st123st,godflesh,pornog,iamking,cisco69,septiembr,dale38,zhongguo,tibbar,panther9,buffa1,bigjohn1,mypuppy,vehvfycr,april16,shippo,fire1234,green15,q123123,gungadin,steveg,olivier1,chinaski,magnoli,faithy,storm12,toadfrog,paul99,78791,august20,automati,squirtle,cheezy,positano,burbon,nunya,llebpmac,kimmi,turtle2,alan123,prokuror,violin1,durex,pussygal,visionar,trick1,chicken6,29024,plowboy,rfybreks,imbue,sasha13,wagner1,vitalogy,cfymrf,thepro,26028,gorbunov,dvdcom,letmein5,duder,fastfun,pronin,libra1,conner1,harley20,stinker1,20068,20038,amitech,syoung,dugway,18068,welcome7,jimmypag,anastaci,kafka1,pfhfnecnhf,catsss,campus100,shamal,nacho1,fire12,vikings2,brasil1,rangerover,mohamma,peresvet,14058,cocomo,aliona,14038,qwaser,vikes,cbkmdf,skyblue1,ou81234,goodlove,dfkmltvfh,108888,roamer,pinky2,static1,zxcv4321,barmen,rock22,shelby2,morgans,1junior,pasword1,logjam,fifty5,nhfrnjhbcn,chaddy,philli,nemesis2,ingenier,djkrjd,ranger3,aikman8,knothead,daddy69,love007,vsythb,ford350,tiger00,renrut,owen11,energy12,march14,alena123,robert19,carisma,orange22,murphy11,podarok,prozak,kfgeirf,wolf13,lydia1,shazza,parasha,akimov,tobbie,pilote,heather4,baster,leones,gznfxjr,megama,987654321g,bullgod,boxster1,minkey,wombats,vergil,colegiata,lincol,smoothe,pride1,carwash1,latrell,bowling3,fylhtq123,pickwick,eider,bubblebox,bunnies1,loquit,slipper1,nutsac,purina,xtutdfhf,plokiju,1qazxs,uhjpysq,zxcvbasdfg,enjoy1,1pumpkin,phantom7,mama22,swordsma,wonderbr,dogdays,milker,u23456,silvan,dfkthbr,slagelse,yeahman,twothree,boston11,wolf100,dannyg,troll1,fynjy123,ghbcnfd,bftest,ballsdeep,bobbyorr,alphasig,cccdemo,fire123,norwest,claire2,august10,lth1108,problemas,sapito,alex06,1rusty,maccom,goirish1,ohyes,bxdumb,nabila,boobear1,rabbit69,princip,alexsander,travail,chantal1,dogggy,greenpea,diablo69,alex2009,bergen09,petticoa,classe,ceilidh,vlad2011,kamakiri,lucidity,qaz321,chileno,cexfhf,99ranger,mcitra,estoppel,volvos60,carter80,webpass,temp12,touareg,fcgbhby,bubba8,sunitha,200190ru,bitch2,shadow23,iluvit,nicole0,ruben1,nikki69,butttt,shocker1,souschef,lopotok01,kantot,corsano,cfnfyf,riverat,makalu,swapna,all4u9,cdtnkfy,ntktgepbr,ronaldo99,thomasj,bmw540i,chrisw,boomba,open321,z1x2c3v4b5n6m7,gaviota,iceman44,frosya,chris100,chris24,cosette,clearwat,micael,boogyman,pussy9,camus1,chumpy,heccrbq,konoplya,chester8,scooter5,ghjgfufylf,giotto,koolkat,zero000,bonita1,ckflrbq,j1964,mandog,18n28n24a,renob,head1,shergar,ringo123,tanita,sex4free,johnny12,halberd,reddevils,biolog,dillinge,fatb0y,c00per,hyperlit,wallace2,spears1,vitamine,buheirf,sloboda,alkash,mooman,marion1,arsenal7,sunder,nokia5610,edifier,pippone,fyfnjkmtdbx,fujimo,pepsi12,kulikova,bolat,duetto,daimon,maddog01,timoshka,ezmoney,desdemon,chesters,aiden,hugues,patrick5,aikman08,robert4,roenick,nyranger,writer1,36169544,foxmulder,118801,kutter,shashank,jamjar,118811,119955,aspirina,dinkus,1sailor,nalgene,19891959,snarf,allie1,cracky,resipsa,45678912,kemerovo,19841989,netware1,alhimik,19801984,nicole123,19761977,51501984,malaka1,montella,peachfuz,jethro1,cypress1,henkie,holdon,esmith,55443322,1friend,quique,bandicoot,statistika,great123,death13,ucht36,master4,67899876,bobsmith,nikko1,jr1234,hillary1,78978978,rsturbo,lzlzdfcz,bloodlust,shadow00,skagen,bambina,yummies,88887777,91328378,matthew4,itdoes,98256518,102938475,alina2002,123123789,fubared,dannys,123456321,nikifor,suck69,newmexico,scubaman,rhbcnb,fifnfy,puffdadd,159357852,dtheyxbr,theman22,212009164,prohor,shirle,nji90okm,newmedia,goose5,roma1995,letssee,iceman11,aksana,wirenut,pimpdady,1212312121,tamplier,pelican1,domodedovo,1928374655,fiction6,duckpond,ybrecz,thwack,onetwo34,gunsmith,murphydo,fallout1,spectre1,jabberwo,jgjesq,turbo6,bobo12,redryder,blackpus,elena1971,danilova,antoin,bobo1234,bobob,bobbobbo,dean1,222222a,jesusgod,matt23,musical1,darkmage,loppol,werrew,josepha,rebel12,toshka,gadfly,hawkwood,alina12,dnomyar,sexaddict,dangit,cool23,yocrack,archimed,farouk,nhfkzkz,lindalou,111zzzzz,ghjatccjh,wethepeople,m123456789,wowsers,kbkbxrf,bulldog5,m_roesel,sissinit,yamoon6,123ewqasd,dangel,miruvor79,kaytee,falcon7,bandit11,dotnet,dannii,arsenal9,miatamx5,1trouble,strip4me,dogpile,sexyred1,rjdfktdf,google10,shortman,crystal7,awesome123,cowdog,haruka,birthday28,jitter,diabolik,boomer12,dknight,bluewate,hockey123,crm0624,blueboys,willy123,jumpup,google2,cobra777,llabesab,vicelord,hopper1,gerryber,remmah,j10e5d4,qqqqqqw,agusti,fre_ak8yj,nahlik,redrobin,scott3,epson1,dumpy,bundao,aniolek,hola123,jergens,itsasecret,maxsam,bluelight,mountai1,bongwater,1london,pepper14,freeuse,dereks,qweqw,fordgt40,rfhfdfy,raider12,hunnybun,compac,splicer,megamon,tuffgong,gymnast1,butter11,modaddy,wapbbs_1,dandelio,soccer77,ghjnbdjcnjzybt,123xyi2,fishead,x002tp00,whodaman,555aaa,oussama,brunodog,technici,pmtgjnbl,qcxdw8ry,schweden,redsox3,throbber,collecto,japan10,dbm123dm,hellhoun,tech1,deadzone,kahlan,wolf123,dethklok,xzsawq,bigguy1,cybrthc,chandle,buck01,qq123123,secreta,williams1,c32649135,delta12,flash33,123joker,spacejam,polopo,holycrap,daman1,tummybed,financia,nusrat,euroline,magicone,jimkirk,ameritec,daniel26,sevenn,topazz,kingpins,dima1991,macdog,spencer5,oi812,geoffre,music11,baffle,123569,usagi,cassiope,polla,lilcrowe,thecakeisalie,vbhjndjhtw,vthokies,oldmans,sophie01,ghoster,penny2,129834,locutus1,meesha,magik,jerry69,daddysgirl,irondesk,andrey12,jasmine123,vepsrfyn,likesdick,1accord,jetboat,grafix,tomuch,showit,protozoa,mosias98,taburetka,blaze420,esenin,anal69,zhv84kv,puissant,charles0,aishwarya,babylon6,bitter1,lenina,raleigh1,lechat,access01,kamilka,fynjy,sparkplu,daisy3112,choppe,zootsuit,1234567j,rubyrose,gorilla9,nightshade,alternativa,cghfdjxybr,snuggles1,10121v,vova1992,leonardo1,dave2,matthewd,vfhfnbr,1986mets,nobull,bacall,mexican1,juanjo,mafia1,boomer22,soylent,edwards1,jordan10,blackwid,alex86,gemini13,lunar2,dctvcjcfnm,malaki,plugger,eagles11,snafu2,1shelly,cintaku,hannah22,tbird1,maks5843,irish88,homer22,amarok,fktrcfylhjdf,lincoln2,acess,gre69kik,need4speed,hightech,core2duo,blunt1,ublhjgjybrf,dragon33,1autopas,autopas1,wwww1,15935746,daniel20,2500aa,massim,1ggggggg,96ford,hardcor1,cobra5,blackdragon,vovan_lt,orochimaru,hjlbntkb,qwertyuiop12,tallen,paradoks,frozenfish,ghjuhfvvbcn,gerri1,nuggett,camilit,doright,trans1,serena1,catch2,bkmyeh,fireston,afhvfwtdn,purple3,figure8,fuckya,scamp1,laranja,ontheoutside,louis123,yellow7,moonwalk,mercury2,tolkein,raide,amenra,a13579,dranreb,5150vh,harish,tracksta,sexking,ozzmosis,katiee,alomar,matrix19,headroom,jahlove,ringding,apollo8,132546,132613,12345672000,saretta,135798,136666,thomas7,136913,onetwothree,hockey33,calida,nefertit,bitwise,tailhook,boop4,kfgecbr,bujhmbujhm,metal69,thedark,meteoro,felicia1,house12,tinuviel,istina,vaz2105,pimp13,toolfan,nina1,tuesday2,maxmotives,lgkp500,locksley,treech,darling1,kurama,aminka,ramin,redhed,dazzler,jager1,stpiliot,cardman,rfvtym,cheeser,14314314,paramoun,samcat,plumpy,stiffie,vsajyjr,panatha,qqq777,car12345,098poi,asdzx,keegan1,furelise,kalifornia,vbhjckfd,beast123,zcfvfzkexifz,harry5,1birdie,96328i,escola,extra330,henry12,gfhfyjqz,14u2nv,max1234,templar1,1dave,02588520,catrin,pangolin,marhaba,latin1,amorcito,dave22,escape1,advance1,yasuhiro,grepw,meetme,orange01,ernes,erdna,zsergn,nautica1,justinb,soundwav,miasma,greg78,nadine1,sexmad,lovebaby,promo1,excel1,babys,dragonma,camry1,sonnenschein,farooq,wazzkaprivet,magal,katinas,elvis99,redsox24,rooney1,chiefy,peggys,aliev,pilsung,mudhen,dontdoit,dennis12,supercal,energia,ballsout,funone,claudiu,brown2,amoco,dabl1125,philos,gjdtkbntkm,servette,13571113,whizzer,nollie,13467982,upiter,12string,bluejay1,silkie,william4,kosta1,143333,connor12,sustanon,06068,corporat,ssnake,laurita,king10,tahoes,arsenal123,sapato,charless,jeanmarc,levent,algerie,marine21,jettas,winsome,dctvgbplf,1701ab,xxxp455w0rd5,lllllll1,ooooooo1,monalis,koufax32,anastasya,debugger,sarita2,jason69,ufkxjyjr,gjlcnfdf,1jerry,daniel10,balinor,sexkitten,death2,qwertasdfgzxcvb,s9te949f,vegeta1,sysman,maxxam,dimabilan,mooose,ilovetit,june23,illest,doesit,mamou,abby12,longjump,transalp,moderato,littleguy,magritte,dilnoza,hawaiiguy,winbig,nemiroff,kokaine,admira,myemail,dream2,browneyes,destiny7,dragonss,suckme1,asa123,andranik,suckem,fleshbot,dandie,timmys,scitra,timdog,hasbeen,guesss,smellyfe,arachne,deutschl,harley88,birthday27,nobody1,papasmur,home1,jonass,bunia3,epatb1,embalm,vfvekmrf,apacer,12345656,estreet,weihnachtsbaum,mrwhite,admin12,kristie1,kelebek,yoda69,socken,tima123,bayern1,fktrcfylth,tamiya,99strenght,andy01,denis2011,19delta,stokecit,aotearoa,stalker2,nicnac,conrad1,popey,agusta,bowl36,1bigfish,mossyoak,1stunner,getinnow,jessejames,gkfnjy,drako,1nissan,egor123,hotness,1hawaii,zxc123456,cantstop,1peaches,madlen,west1234,jeter1,markis,judit,attack1,artemi,silver69,153246,crazy2,green9,yoshimi,1vette,chief123,jasper2,1sierra,twentyon,drstrang,aspirant,yannic,jenna123,bongtoke,slurpy,1sugar,civic97,rusty21,shineon,james19,anna12345,wonderwoman,1kevin,karol1,kanabis,wert21,fktif6115,evil1,kakaha,54gv768,826248s,tyrone1,1winston,sugar2,falcon01,adelya,mopar440,zasxcd,leecher,kinkysex,mercede1,travka,11234567,rebon,geekboy".split(","),english_wikipedia:"the,of,and,in,was,is,for,as,on,with,by,he,at,from,his,an,were,are,which,doc,https,also,or,has,had,first,one,their,its,after,new,who,they,two,her,she,been,other,when,time,during,there,into,school,more,may,years,over,only,year,most,would,world,city,some,where,between,later,three,state,such,then,national,used,made,known,under,many,university,united,while,part,season,team,these,american,than,film,second,born,south,became,states,war,through,being,including,both,before,north,high,however,people,family,early,history,album,area,them,series,against,until,since,district,county,name,work,life,group,music,following,number,company,several,four,called,played,released,career,league,game,government,house,each,based,day,same,won,use,station,club,international,town,located,population,general,college,east,found,age,march,end,september,began,home,public,church,line,june,river,member,system,place,century,band,july,york,january,october,song,august,best,former,british,party,named,held,village,show,local,november,took,service,december,built,another,major,within,along,members,five,single,due,although,small,old,left,final,large,include,building,served,president,received,games,death,february,main,third,set,children,own,order,species,park,law,air,published,road,died,book,men,women,army,often,according,education,central,country,division,english,top,included,development,french,community,among,water,play,side,list,times,near,late,form,original,different,center,power,led,students,german,moved,court,six,land,council,island,u.s.,record,million,research,art,established,award,street,military,television,given,region,support,western,production,non,political,point,cup,period,business,title,started,various,election,using,england,role,produced,become,program,works,field,total,office,class,written,association,radio,union,level,championship,director,few,force,created,department,founded,services,married,though,per,n't,site,open,act,short,society,version,royal,present,northern,worked,professional,full,returned,joined,story,france,european,currently,language,social,california,india,days,design,st.,further,round,australia,wrote,san,project,control,southern,railway,board,popular,continued,free,battle,considered,video,common,position,living,half,playing,recorded,red,post,described,average,records,special,modern,appeared,announced,areas,rock,release,elected,others,example,term,opened,similar,formed,route,census,current,schools,originally,lake,developed,race,himself,forces,addition,information,upon,province,match,event,songs,result,events,win,eastern,track,lead,teams,science,human,construction,minister,germany,awards,available,throughout,training,style,body,museum,australian,health,seven,signed,chief,eventually,appointed,sea,centre,debut,tour,points,media,light,range,character,across,features,families,largest,indian,network,less,performance,players,refer,europe,sold,festival,usually,taken,despite,designed,committee,process,return,official,episode,institute,stage,followed,performed,japanese,personal,thus,arts,space,low,months,includes,china,study,middle,magazine,leading,japan,groups,aircraft,featured,federal,civil,rights,model,coach,canadian,books,remained,eight,type,independent,completed,capital,academy,instead,kingdom,organization,countries,studies,competition,sports,size,above,section,finished,gold,involved,reported,management,systems,industry,directed,market,fourth,movement,technology,bank,ground,campaign,base,lower,sent,rather,added,provided,coast,grand,historic,valley,conference,bridge,winning,approximately,films,chinese,awarded,degree,russian,shows,native,female,replaced,municipality,square,studio,medical,data,african,successful,mid,bay,attack,previous,operations,spanish,theatre,student,republic,beginning,provide,ship,primary,owned,writing,tournament,culture,introduced,texas,related,natural,parts,governor,reached,ireland,units,senior,decided,italian,whose,higher,africa,standard,income,professor,placed,regional,los,buildings,championships,active,novel,energy,generally,interest,via,economic,previously,stated,itself,channel,below,operation,leader,traditional,trade,structure,limited,runs,prior,regular,famous,saint,navy,foreign,listed,artist,catholic,airport,results,parliament,collection,unit,officer,goal,attended,command,staff,commission,lived,location,plays,commercial,places,foundation,significant,older,medal,self,scored,companies,highway,activities,programs,wide,musical,notable,library,numerous,paris,towards,individual,allowed,plant,property,annual,contract,whom,highest,initially,required,earlier,assembly,artists,rural,seat,practice,defeated,ended,soviet,length,spent,manager,press,associated,author,issues,additional,characters,lord,zealand,policy,engine,township,noted,historical,complete,financial,religious,mission,contains,nine,recent,represented,pennsylvania,administration,opening,secretary,lines,report,executive,youth,closed,theory,writer,italy,angeles,appearance,feature,queen,launched,legal,terms,entered,issue,edition,singer,greek,majority,background,source,anti,cultural,complex,changes,recording,stadium,islands,operated,particularly,basketball,month,uses,port,castle,mostly,names,fort,selected,increased,status,earth,subsequently,pacific,cover,variety,certain,goals,remains,upper,congress,becoming,studied,irish,nature,particular,loss,caused,chart,dr.,forced,create,era,retired,material,review,rate,singles,referred,larger,individuals,shown,provides,products,speed,democratic,poland,parish,olympics,cities,themselves,temple,wing,genus,households,serving,cost,wales,stations,passed,supported,view,cases,forms,actor,male,matches,males,stars,tracks,females,administrative,median,effect,biography,train,engineering,camp,offered,chairman,houses,mainly,19th,surface,therefore,nearly,score,ancient,subject,prime,seasons,claimed,experience,specific,jewish,failed,overall,believed,plot,troops,greater,spain,consists,broadcast,heavy,increase,raised,separate,campus,1980s,appears,presented,lies,composed,recently,influence,fifth,nations,creek,references,elections,britain,double,cast,meaning,earned,carried,producer,latter,housing,brothers,attempt,article,response,border,remaining,nearby,direct,ships,value,workers,politician,academic,label,1970s,commander,rule,fellow,residents,authority,editor,transport,dutch,projects,responsible,covered,territory,flight,races,defense,tower,emperor,albums,facilities,daily,stories,assistant,managed,primarily,quality,function,proposed,distribution,conditions,prize,journal,code,vice,newspaper,corps,highly,constructed,mayor,critical,secondary,corporation,rugby,regiment,ohio,appearances,serve,allow,nation,multiple,discovered,directly,scene,levels,growth,elements,acquired,1990s,officers,physical,20th,latin,host,jersey,graduated,arrived,issued,literature,metal,estate,vote,immediately,quickly,asian,competed,extended,produce,urban,1960s,promoted,contemporary,global,formerly,appear,industrial,types,opera,ministry,soldiers,commonly,mass,formation,smaller,typically,drama,shortly,density,senate,effects,iran,polish,prominent,naval,settlement,divided,basis,republican,languages,distance,treatment,continue,product,mile,sources,footballer,format,clubs,leadership,initial,offers,operating,avenue,officially,columbia,grade,squadron,fleet,percent,farm,leaders,agreement,likely,equipment,website,mount,grew,method,transferred,intended,renamed,iron,asia,reserve,capacity,politics,widely,activity,advanced,relations,scottish,dedicated,crew,founder,episodes,lack,amount,build,efforts,concept,follows,ordered,leaves,positive,economy,entertainment,affairs,memorial,ability,illinois,communities,color,text,railroad,scientific,focus,comedy,serves,exchange,environment,cars,direction,organized,firm,description,agency,analysis,purpose,destroyed,reception,planned,revealed,infantry,architecture,growing,featuring,household,candidate,removed,situated,models,knowledge,solo,technical,organizations,assigned,conducted,participated,largely,purchased,register,gained,combined,headquarters,adopted,potential,protection,scale,approach,spread,independence,mountains,titled,geography,applied,safety,mixed,accepted,continues,captured,rail,defeat,principal,recognized,lieutenant,mentioned,semi,owner,joint,liberal,actress,traffic,creation,basic,notes,unique,supreme,declared,simply,plants,sales,massachusetts,designated,parties,jazz,compared,becomes,resources,titles,concert,learning,remain,teaching,versions,content,alongside,revolution,sons,block,premier,impact,champions,districts,generation,estimated,volume,image,sites,account,roles,sport,quarter,providing,zone,yard,scoring,classes,presence,performances,representatives,hosted,split,taught,origin,olympic,claims,critics,facility,occurred,suffered,municipal,damage,defined,resulted,respectively,expanded,platform,draft,opposition,expected,educational,ontario,climate,reports,atlantic,surrounding,performing,reduced,ranked,allows,birth,nominated,younger,newly,kong,positions,theater,philadelphia,heritage,finals,disease,sixth,laws,reviews,constitution,tradition,swedish,theme,fiction,rome,medicine,trains,resulting,existing,deputy,environmental,labour,classical,develop,fans,granted,receive,alternative,begins,nuclear,fame,buried,connected,identified,palace,falls,letters,combat,sciences,effort,villages,inspired,regions,towns,conservative,chosen,animals,labor,attacks,materials,yards,steel,representative,orchestra,peak,entitled,officials,returning,reference,northwest,imperial,convention,examples,ocean,publication,painting,subsequent,frequently,religion,brigade,fully,sides,acts,cemetery,relatively,oldest,suggested,succeeded,achieved,application,programme,cells,votes,promotion,graduate,armed,supply,flying,communist,figures,literary,netherlands,korea,worldwide,citizens,1950s,faculty,draw,stock,seats,occupied,methods,unknown,articles,claim,holds,authorities,audience,sweden,interview,obtained,covers,settled,transfer,marked,allowing,funding,challenge,southeast,unlike,crown,rise,portion,transportation,sector,phase,properties,edge,tropical,standards,institutions,philosophy,legislative,hills,brand,fund,conflict,unable,founding,refused,attempts,metres,permanent,starring,applications,creating,effective,aired,extensive,employed,enemy,expansion,billboard,rank,battalion,multi,vehicle,fought,alliance,category,perform,federation,poetry,bronze,bands,entry,vehicles,bureau,maximum,billion,trees,intelligence,greatest,screen,refers,commissioned,gallery,injury,confirmed,setting,treaty,adult,americans,broadcasting,supporting,pilot,mobile,writers,programming,existence,squad,minnesota,copies,korean,provincial,sets,defence,offices,agricultural,internal,core,northeast,retirement,factory,actions,prevent,communications,ending,weekly,containing,functions,attempted,interior,weight,bowl,recognition,incorporated,increasing,ultimately,documentary,derived,attacked,lyrics,mexican,external,churches,centuries,metropolitan,selling,opposed,personnel,mill,visited,presidential,roads,pieces,norwegian,controlled,18th,rear,influenced,wrestling,weapons,launch,composer,locations,developing,circuit,specifically,studios,shared,canal,wisconsin,publishing,approved,domestic,consisted,determined,comic,establishment,exhibition,southwest,fuel,electronic,cape,converted,educated,melbourne,hits,wins,producing,norway,slightly,occur,surname,identity,represent,constituency,funds,proved,links,structures,athletic,birds,contest,users,poet,institution,display,receiving,rare,contained,guns,motion,piano,temperature,publications,passenger,contributed,toward,cathedral,inhabitants,architect,exist,athletics,muslim,courses,abandoned,signal,successfully,disambiguation,tennessee,dynasty,heavily,maryland,jews,representing,budget,weather,missouri,introduction,faced,pair,chapel,reform,height,vietnam,occurs,motor,cambridge,lands,focused,sought,patients,shape,invasion,chemical,importance,communication,selection,regarding,homes,voivodeship,maintained,borough,failure,aged,passing,agriculture,oregon,teachers,flow,philippines,trail,seventh,portuguese,resistance,reaching,negative,fashion,scheduled,downtown,universities,trained,skills,scenes,views,notably,typical,incident,candidates,engines,decades,composition,commune,chain,inc.,austria,sale,values,employees,chamber,regarded,winners,registered,task,investment,colonial,swiss,user,entirely,flag,stores,closely,entrance,laid,journalist,coal,equal,causes,turkish,quebec,techniques,promote,junction,easily,dates,kentucky,singapore,residence,violence,advance,survey,humans,expressed,passes,streets,distinguished,qualified,folk,establish,egypt,artillery,visual,improved,actual,finishing,medium,protein,switzerland,productions,operate,poverty,neighborhood,organisation,consisting,consecutive,sections,partnership,extension,reaction,factor,costs,bodies,device,ethnic,racial,flat,objects,chapter,improve,musicians,courts,controversy,membership,merged,wars,expedition,interests,arab,comics,gain,describes,mining,bachelor,crisis,joining,decade,1930s,distributed,habitat,routes,arena,cycle,divisions,briefly,vocals,directors,degrees,object,recordings,installed,adjacent,demand,voted,causing,businesses,ruled,grounds,starred,drawn,opposite,stands,formal,operates,persons,counties,compete,wave,israeli,ncaa,resigned,brief,greece,combination,demographics,historian,contain,commonwealth,musician,collected,argued,louisiana,session,cabinet,parliamentary,electoral,loan,profit,regularly,conservation,islamic,purchase,17th,charts,residential,earliest,designs,paintings,survived,moth,items,goods,grey,anniversary,criticism,images,discovery,observed,underground,progress,additionally,participate,thousands,reduce,elementary,owners,stating,iraq,resolution,capture,tank,rooms,hollywood,finance,queensland,reign,maintain,iowa,landing,broad,outstanding,circle,path,manufacturing,assistance,sequence,gmina,crossing,leads,universal,shaped,kings,attached,medieval,ages,metro,colony,affected,scholars,oklahoma,coastal,soundtrack,painted,attend,definition,meanwhile,purposes,trophy,require,marketing,popularity,cable,mathematics,mississippi,represents,scheme,appeal,distinct,factors,acid,subjects,roughly,terminal,economics,senator,diocese,prix,contrast,argentina,czech,wings,relief,stages,duties,16th,novels,accused,whilst,equivalent,charged,measure,documents,couples,request,danish,defensive,guide,devices,statistics,credited,tries,passengers,allied,frame,puerto,peninsula,concluded,instruments,wounded,differences,associate,forests,afterwards,replace,requirements,aviation,solution,offensive,ownership,inner,legislation,hungarian,contributions,actors,translated,denmark,steam,depending,aspects,assumed,injured,severe,admitted,determine,shore,technique,arrival,measures,translation,debuted,delivered,returns,rejected,separated,visitors,damaged,storage,accompanied,markets,industries,losses,gulf,charter,strategy,corporate,socialist,somewhat,significantly,physics,mounted,satellite,experienced,constant,relative,pattern,restored,belgium,connecticut,partners,harvard,retained,networks,protected,mode,artistic,parallel,collaboration,debate,involving,journey,linked,salt,authors,components,context,occupation,requires,occasionally,policies,tamil,ottoman,revolutionary,hungary,poem,versus,gardens,amongst,audio,makeup,frequency,meters,orthodox,continuing,suggests,legislature,coalition,guitarist,eighth,classification,practices,soil,tokyo,instance,limit,coverage,considerable,ranking,colleges,cavalry,centers,daughters,twin,equipped,broadway,narrow,hosts,rates,domain,boundary,arranged,12th,whereas,brazilian,forming,rating,strategic,competitions,trading,covering,baltimore,commissioner,infrastructure,origins,replacement,praised,disc,collections,expression,ukraine,driven,edited,austrian,solar,ensure,premiered,successor,wooden,operational,hispanic,concerns,rapid,prisoners,childhood,meets,influential,tunnel,employment,tribe,qualifying,adapted,temporary,celebrated,appearing,increasingly,depression,adults,cinema,entering,laboratory,script,flows,romania,accounts,fictional,pittsburgh,achieve,monastery,franchise,formally,tools,newspapers,revival,sponsored,processes,vienna,springs,missions,classified,13th,annually,branches,lakes,gender,manner,advertising,normally,maintenance,adding,characteristics,integrated,decline,modified,strongly,critic,victims,malaysia,arkansas,nazi,restoration,powered,monument,hundreds,depth,15th,controversial,admiral,criticized,brick,honorary,initiative,output,visiting,birmingham,progressive,existed,carbon,1920s,credits,colour,rising,hence,defeating,superior,filmed,listing,column,surrounded,orleans,principles,territories,struck,participation,indonesia,movements,index,commerce,conduct,constitutional,spiritual,ambassador,vocal,completion,edinburgh,residing,tourism,finland,bears,medals,resident,themes,visible,indigenous,involvement,basin,electrical,ukrainian,concerts,boats,styles,processing,rival,drawing,vessels,experimental,declined,touring,supporters,compilation,coaching,cited,dated,roots,string,explained,transit,traditionally,poems,minimum,representation,14th,releases,effectively,architectural,triple,indicated,greatly,elevation,clinical,printed,10th,proposal,peaked,producers,romanized,rapidly,stream,innings,meetings,counter,householder,honour,lasted,agencies,document,exists,surviving,experiences,honors,landscape,hurricane,harbor,panel,competing,profile,vessel,farmers,lists,revenue,exception,customers,11th,participants,wildlife,utah,bible,gradually,preserved,replacing,symphony,begun,longest,siege,provinces,mechanical,genre,transmission,agents,executed,videos,benefits,funded,rated,instrumental,ninth,similarly,dominated,destruction,passage,technologies,thereafter,outer,facing,affiliated,opportunities,instrument,governments,scholar,evolution,channels,shares,sessions,widespread,occasions,engineers,scientists,signing,battery,competitive,alleged,eliminated,supplies,judges,hampshire,regime,portrayed,penalty,taiwan,denied,submarine,scholarship,substantial,transition,victorian,http,nevertheless,filed,supports,continental,tribes,ratio,doubles,useful,honours,blocks,principle,retail,departure,ranks,patrol,yorkshire,vancouver,inter,extent,afghanistan,strip,railways,component,organ,symbol,categories,encouraged,abroad,civilian,periods,traveled,writes,struggle,immediate,recommended,adaptation,egyptian,graduating,assault,drums,nomination,historically,voting,allies,detailed,achievement,percentage,arabic,assist,frequent,toured,apply,and/or,intersection,maine,touchdown,throne,produces,contribution,emerged,obtain,archbishop,seek,researchers,remainder,populations,clan,finnish,overseas,fifa,licensed,chemistry,festivals,mediterranean,injuries,animated,seeking,publisher,volumes,limits,venue,jerusalem,generated,trials,islam,youngest,ruling,glasgow,germans,songwriter,persian,municipalities,donated,viewed,belgian,cooperation,posted,tech,dual,volunteer,settlers,commanded,claiming,approval,delhi,usage,terminus,partly,electricity,locally,editions,premiere,absence,belief,traditions,statue,indicate,manor,stable,attributed,possession,managing,viewers,chile,overview,seed,regulations,essential,minority,cargo,segment,endemic,forum,deaths,monthly,playoffs,erected,practical,machines,suburb,relation,mrs.,descent,indoor,continuous,characterized,solutions,caribbean,rebuilt,serbian,summary,contested,psychology,pitch,attending,muhammad,tenure,drivers,diameter,assets,venture,punk,airlines,concentration,athletes,volunteers,pages,mines,influences,sculpture,protest,ferry,behalf,drafted,apparent,furthermore,ranging,romanian,democracy,lanka,significance,linear,d.c.,certified,voters,recovered,tours,demolished,boundaries,assisted,identify,grades,elsewhere,mechanism,1940s,reportedly,aimed,conversion,suspended,photography,departments,beijing,locomotives,publicly,dispute,magazines,resort,conventional,platforms,internationally,capita,settlements,dramatic,derby,establishing,involves,statistical,implementation,immigrants,exposed,diverse,layer,vast,ceased,connections,belonged,interstate,uefa,organised,abuse,deployed,cattle,partially,filming,mainstream,reduction,automatic,rarely,subsidiary,decides,merger,comprehensive,displayed,amendment,guinea,exclusively,manhattan,concerning,commons,radical,serbia,baptist,buses,initiated,portrait,harbour,choir,citizen,sole,unsuccessful,manufactured,enforcement,connecting,increases,patterns,sacred,muslims,clothing,hindu,unincorporated,sentenced,advisory,tanks,campaigns,fled,repeated,remote,rebellion,implemented,texts,fitted,tribute,writings,sufficient,ministers,21st,devoted,jurisdiction,coaches,interpretation,pole,businessman,peru,sporting,prices,cuba,relocated,opponent,arrangement,elite,manufacturer,responded,suitable,distinction,calendar,dominant,tourist,earning,prefecture,ties,preparation,anglo,pursue,worship,archaeological,chancellor,bangladesh,scores,traded,lowest,horror,outdoor,biology,commented,specialized,loop,arriving,farming,housed,historians,'the,patent,pupils,christianity,opponents,athens,northwestern,maps,promoting,reveals,flights,exclusive,lions,norfolk,hebrew,extensively,eldest,shops,acquisition,virtual,renowned,margin,ongoing,essentially,iranian,alternate,sailed,reporting,conclusion,originated,temperatures,exposure,secured,landed,rifle,framework,identical,martial,focuses,topics,ballet,fighters,belonging,wealthy,negotiations,evolved,bases,oriented,acres,democrat,heights,restricted,vary,graduation,aftermath,chess,illness,participating,vertical,collective,immigration,demonstrated,leaf,completing,organic,missile,leeds,eligible,grammar,confederate,improvement,congressional,wealth,cincinnati,spaces,indicates,corresponding,reaches,repair,isolated,taxes,congregation,ratings,leagues,diplomatic,submitted,winds,awareness,photographs,maritime,nigeria,accessible,animation,restaurants,philippine,inaugural,dismissed,armenian,illustrated,reservoir,speakers,programmes,resource,genetic,interviews,camps,regulation,computers,preferred,travelled,comparison,distinctive,recreation,requested,southeastern,dependent,brisbane,breeding,playoff,expand,bonus,gauge,departed,qualification,inspiration,shipping,slaves,variations,shield,theories,munich,recognised,emphasis,favour,variable,seeds,undergraduate,territorial,intellectual,qualify,mini,banned,pointed,democrats,assessment,judicial,examination,attempting,objective,partial,characteristic,hardware,pradesh,execution,ottawa,metre,drum,exhibitions,withdrew,attendance,phrase,journalism,logo,measured,error,christians,trio,protestant,theology,respective,atmosphere,buddhist,substitute,curriculum,fundamental,outbreak,rabbi,intermediate,designation,globe,liberation,simultaneously,diseases,experiments,locomotive,difficulties,mainland,nepal,relegated,contributing,database,developments,veteran,carries,ranges,instruction,lodge,protests,obama,newcastle,experiment,physician,describing,challenges,corruption,delaware,adventures,ensemble,succession,renaissance,tenth,altitude,receives,approached,crosses,syria,croatia,warsaw,professionals,improvements,worn,airline,compound,permitted,preservation,reducing,printing,scientist,activist,comprises,sized,societies,enters,ruler,gospel,earthquake,extend,autonomous,croatian,serial,decorated,relevant,ideal,grows,grass,tier,towers,wider,welfare,columns,alumni,descendants,interface,reserves,banking,colonies,manufacturers,magnetic,closure,pitched,vocalist,preserve,enrolled,cancelled,equation,2000s,nickname,bulgaria,heroes,exile,mathematical,demands,input,structural,tube,stem,approaches,argentine,axis,manuscript,inherited,depicted,targets,visits,veterans,regard,removal,efficiency,organisations,concepts,lebanon,manga,petersburg,rally,supplied,amounts,yale,tournaments,broadcasts,signals,pilots,azerbaijan,architects,enzyme,literacy,declaration,placing,batting,incumbent,bulgarian,consistent,poll,defended,landmark,southwestern,raid,resignation,travels,casualties,prestigious,namely,aims,recipient,warfare,readers,collapse,coached,controls,volleyball,coup,lesser,verse,pairs,exhibited,proteins,molecular,abilities,integration,consist,aspect,advocate,administered,governing,hospitals,commenced,coins,lords,variation,resumed,canton,artificial,elevated,palm,difficulty,civic,efficient,northeastern,inducted,radiation,affiliate,boards,stakes,byzantine,consumption,freight,interaction,oblast,numbered,seminary,contracts,extinct,predecessor,bearing,cultures,functional,neighboring,revised,cylinder,grants,narrative,reforms,athlete,tales,reflect,presidency,compositions,specialist,cricketer,founders,sequel,widow,disbanded,associations,backed,thereby,pitcher,commanding,boulevard,singers,crops,militia,reviewed,centres,waves,consequently,fortress,tributary,portions,bombing,excellence,nest,payment,mars,plaza,unity,victories,scotia,farms,nominations,variant,attacking,suspension,installation,graphics,estates,comments,acoustic,destination,venues,surrender,retreat,libraries,quarterback,customs,berkeley,collaborated,gathered,syndrome,dialogue,recruited,shanghai,neighbouring,psychological,saudi,moderate,exhibit,innovation,depot,binding,brunswick,situations,certificate,actively,shakespeare,editorial,presentation,ports,relay,nationalist,methodist,archives,experts,maintains,collegiate,bishops,maintaining,temporarily,embassy,essex,wellington,connects,reformed,bengal,recalled,inches,doctrine,deemed,legendary,reconstruction,statements,palestinian,meter,achievements,riders,interchange,spots,auto,accurate,chorus,dissolved,missionary,thai,operators,e.g.,generations,failing,delayed,cork,nashville,perceived,venezuela,cult,emerging,tomb,abolished,documented,gaining,canyon,episcopal,stored,assists,compiled,kerala,kilometers,mosque,grammy,theorem,unions,segments,glacier,arrives,theatrical,circulation,conferences,chapters,displays,circular,authored,conductor,fewer,dimensional,nationwide,liga,yugoslavia,peer,vietnamese,fellowship,armies,regardless,relating,dynamic,politicians,mixture,serie,somerset,imprisoned,posts,beliefs,beta,layout,independently,electronics,provisions,fastest,logic,headquartered,creates,challenged,beaten,appeals,plains,protocol,graphic,accommodate,iraqi,midfielder,span,commentary,freestyle,reflected,palestine,lighting,burial,virtually,backing,prague,tribal,heir,identification,prototype,criteria,dame,arch,tissue,footage,extending,procedures,predominantly,updated,rhythm,preliminary,cafe,disorder,prevented,suburbs,discontinued,retiring,oral,followers,extends,massacre,journalists,conquest,larvae,pronounced,behaviour,diversity,sustained,addressed,geographic,restrictions,voiced,milwaukee,dialect,quoted,grid,nationally,nearest,roster,twentieth,separation,indies,manages,citing,intervention,guidance,severely,migration,artwork,focusing,rivals,trustees,varied,enabled,committees,centered,skating,slavery,cardinals,forcing,tasks,auckland,youtube,argues,colored,advisor,mumbai,requiring,theological,registration,refugees,nineteenth,survivors,runners,colleagues,priests,contribute,variants,workshop,concentrated,creator,lectures,temples,exploration,requirement,interactive,navigation,companion,perth,allegedly,releasing,citizenship,observation,stationed,ph.d.,sheep,breed,discovers,encourage,kilometres,journals,performers,isle,saskatchewan,hybrid,hotels,lancashire,dubbed,airfield,anchor,suburban,theoretical,sussex,anglican,stockholm,permanently,upcoming,privately,receiver,optical,highways,congo,colours,aggregate,authorized,repeatedly,varies,fluid,innovative,transformed,praise,convoy,demanded,discography,attraction,export,audiences,ordained,enlisted,occasional,westminster,syrian,heavyweight,bosnia,consultant,eventual,improving,aires,wickets,epic,reactions,scandal,i.e.,discrimination,buenos,patron,investors,conjunction,testament,construct,encountered,celebrity,expanding,georgian,brands,retain,underwent,algorithm,foods,provision,orbit,transformation,associates,tactical,compact,varieties,stability,refuge,gathering,moreover,manila,configuration,gameplay,discipline,entity,comprising,composers,skill,monitoring,ruins,museums,sustainable,aerial,altered,codes,voyage,friedrich,conflicts,storyline,travelling,conducting,merit,indicating,referendum,currency,encounter,particles,automobile,workshops,acclaimed,inhabited,doctorate,cuban,phenomenon,dome,enrollment,tobacco,governance,trend,equally,manufacture,hydrogen,grande,compensation,download,pianist,grain,shifted,neutral,evaluation,define,cycling,seized,array,relatives,motors,firms,varying,automatically,restore,nicknamed,findings,governed,investigate,manitoba,administrator,vital,integral,indonesian,confusion,publishers,enable,geographical,inland,naming,civilians,reconnaissance,indianapolis,lecturer,deer,tourists,exterior,rhode,bassist,symbols,scope,ammunition,yuan,poets,punjab,nursing,cent,developers,estimates,presbyterian,nasa,holdings,generate,renewed,computing,cyprus,arabia,duration,compounds,gastropod,permit,valid,touchdowns,facade,interactions,mineral,practiced,allegations,consequence,goalkeeper,baronet,copyright,uprising,carved,targeted,competitors,mentions,sanctuary,fees,pursued,tampa,chronicle,capabilities,specified,specimens,toll,accounting,limestone,staged,upgraded,philosophical,streams,guild,revolt,rainfall,supporter,princeton,terrain,hometown,probability,assembled,paulo,surrey,voltage,developer,destroyer,floors,lineup,curve,prevention,potentially,onwards,trips,imposed,hosting,striking,strict,admission,apartments,solely,utility,proceeded,observations,euro,incidents,vinyl,profession,haven,distant,expelled,rivalry,runway,torpedo,zones,shrine,dimensions,investigations,lithuania,idaho,pursuit,copenhagen,considerably,locality,wireless,decrease,genes,thermal,deposits,hindi,habitats,withdrawn,biblical,monuments,casting,plateau,thesis,managers,flooding,assassination,acknowledged,interim,inscription,guided,pastor,finale,insects,transported,activists,marshal,intensity,airing,cardiff,proposals,lifestyle,prey,herald,capitol,aboriginal,measuring,lasting,interpreted,occurring,desired,drawings,healthcare,panels,elimination,oslo,ghana,blog,sabha,intent,superintendent,governors,bankruptcy,p.m.,equity,disk,layers,slovenia,prussia,quartet,mechanics,graduates,politically,monks,screenplay,nato,absorbed,topped,petition,bold,morocco,exhibits,canterbury,publish,rankings,crater,dominican,enhanced,planes,lutheran,governmental,joins,collecting,brussels,unified,streak,strategies,flagship,surfaces,oval,archive,etymology,imprisonment,instructor,noting,remix,opposing,servant,rotation,width,trans,maker,synthesis,excess,tactics,snail,ltd.,lighthouse,sequences,cornwall,plantation,mythology,performs,foundations,populated,horizontal,speedway,activated,performer,diving,conceived,edmonton,subtropical,environments,prompted,semifinals,caps,bulk,treasury,recreational,telegraph,continent,portraits,relegation,catholics,graph,velocity,rulers,endangered,secular,observer,learns,inquiry,idol,dictionary,certification,estimate,cluster,armenia,observatory,revived,nadu,consumers,hypothesis,manuscripts,contents,arguments,editing,trails,arctic,essays,belfast,acquire,promotional,undertaken,corridor,proceedings,antarctic,millennium,labels,delegates,vegetation,acclaim,directing,substance,outcome,diploma,philosopher,malta,albanian,vicinity,degc,legends,regiments,consent,terrorist,scattered,presidents,gravity,orientation,deployment,duchy,refuses,estonia,crowned,separately,renovation,rises,wilderness,objectives,agreements,empress,slopes,inclusion,equality,decree,ballot,criticised,rochester,recurring,struggled,disabled,henri,poles,prussian,convert,bacteria,poorly,sudan,geological,wyoming,consistently,minimal,withdrawal,interviewed,proximity,repairs,initiatives,pakistani,republicans,propaganda,viii,abstract,commercially,availability,mechanisms,naples,discussions,underlying,lens,proclaimed,advised,spelling,auxiliary,attract,lithuanian,editors,o'brien,accordance,measurement,novelist,ussr,formats,councils,contestants,indie,facebook,parishes,barrier,battalions,sponsor,consulting,terrorism,implement,uganda,crucial,unclear,notion,distinguish,collector,attractions,filipino,ecology,investments,capability,renovated,iceland,albania,accredited,scouts,armor,sculptor,cognitive,errors,gaming,condemned,successive,consolidated,baroque,entries,regulatory,reserved,treasurer,variables,arose,technological,rounded,provider,rhine,agrees,accuracy,genera,decreased,frankfurt,ecuador,edges,particle,rendered,calculated,careers,faction,rifles,americas,gaelic,portsmouth,resides,merchants,fiscal,premises,coin,draws,presenter,acceptance,ceremonies,pollution,consensus,membrane,brigadier,nonetheless,genres,supervision,predicted,magnitude,finite,differ,ancestry,vale,delegation,removing,proceeds,placement,emigrated,siblings,molecules,payments,considers,demonstration,proportion,newer,valve,achieving,confederation,continuously,luxury,notre,introducing,coordinates,charitable,squadrons,disorders,geometry,winnipeg,ulster,loans,longtime,receptor,preceding,belgrade,mandate,wrestler,neighbourhood,factories,buddhism,imported,sectors,protagonist,steep,elaborate,prohibited,artifacts,prizes,pupil,cooperative,sovereign,subspecies,carriers,allmusic,nationals,settings,autobiography,neighborhoods,analog,facilitate,voluntary,jointly,newfoundland,organizing,raids,exercises,nobel,machinery,baltic,crop,granite,dense,websites,mandatory,seeks,surrendered,anthology,comedian,bombs,slot,synopsis,critically,arcade,marking,equations,halls,indo,inaugurated,embarked,speeds,clause,invention,premiership,likewise,presenting,demonstrate,designers,organize,examined,km/h,bavaria,troop,referee,detection,zurich,prairie,rapper,wingspan,eurovision,luxembourg,slovakia,inception,disputed,mammals,entrepreneur,makers,evangelical,yield,clergy,trademark,defunct,allocated,depicting,volcanic,batted,conquered,sculptures,providers,reflects,armoured,locals,walt,herzegovina,contracted,entities,sponsorship,prominence,flowing,ethiopia,marketed,corporations,withdraw,carnegie,induced,investigated,portfolio,flowering,opinions,viewing,classroom,donations,bounded,perception,leicester,fruits,charleston,academics,statute,complaints,smallest,deceased,petroleum,resolved,commanders,algebra,southampton,modes,cultivation,transmitter,spelled,obtaining,sizes,acre,pageant,bats,abbreviated,correspondence,barracks,feast,tackles,raja,derives,geology,disputes,translations,counted,constantinople,seating,macedonia,preventing,accommodation,homeland,explored,invaded,provisional,transform,sphere,unsuccessfully,missionaries,conservatives,highlights,traces,organisms,openly,dancers,fossils,absent,monarchy,combining,lanes,stint,dynamics,chains,missiles,screening,module,tribune,generating,miners,nottingham,seoul,unofficial,owing,linking,rehabilitation,citation,louisville,mollusk,depicts,differential,zimbabwe,kosovo,recommendations,responses,pottery,scorer,aided,exceptions,dialects,telecommunications,defines,elderly,lunar,coupled,flown,25th,espn,formula_1,bordered,fragments,guidelines,gymnasium,valued,complexity,papal,presumably,maternal,challenging,reunited,advancing,comprised,uncertain,favorable,twelfth,correspondent,nobility,livestock,expressway,chilean,tide,researcher,emissions,profits,lengths,accompanying,witnessed,itunes,drainage,slope,reinforced,feminist,sanskrit,develops,physicians,outlets,isbn,coordinator,averaged,termed,occupy,diagnosed,yearly,humanitarian,prospect,spacecraft,stems,enacted,linux,ancestors,karnataka,constitute,immigrant,thriller,ecclesiastical,generals,celebrations,enhance,heating,advocated,evident,advances,bombardment,watershed,shuttle,wicket,twitter,adds,branded,teaches,schemes,pension,advocacy,conservatory,cairo,varsity,freshwater,providence,seemingly,shells,cuisine,specially,peaks,intensive,publishes,trilogy,skilled,nacional,unemployment,destinations,parameters,verses,trafficking,determination,infinite,savings,alignment,linguistic,countryside,dissolution,measurements,advantages,licence,subfamily,highlands,modest,regent,algeria,crest,teachings,knockout,brewery,combine,conventions,descended,chassis,primitive,fiji,explicitly,cumberland,uruguay,laboratories,bypass,elect,informal,preceded,holocaust,tackle,minneapolis,quantity,securities,console,doctoral,religions,commissioners,expertise,unveiled,precise,diplomat,standings,infant,disciplines,sicily,endorsed,systematic,charted,armored,mild,lateral,townships,hurling,prolific,invested,wartime,compatible,galleries,moist,battlefield,decoration,convent,tubes,terrestrial,nominee,requests,delegate,leased,dubai,polar,applying,addresses,munster,sings,commercials,teamed,dances,eleventh,midland,cedar,flee,sandstone,snails,inspection,divide,asset,themed,comparable,paramount,dairy,archaeology,intact,institutes,rectangular,instances,phases,reflecting,substantially,applies,vacant,lacked,copa,coloured,encounters,sponsors,encoded,possess,revenues,ucla,chaired,a.m.,enabling,playwright,stoke,sociology,tibetan,frames,motto,financing,illustrations,gibraltar,chateau,bolivia,transmitted,enclosed,persuaded,urged,folded,suffolk,regulated,bros.,submarines,myth,oriental,malaysian,effectiveness,narrowly,acute,sunk,replied,utilized,tasmania,consortium,quantities,gains,parkway,enlarged,sided,employers,adequate,accordingly,assumption,ballad,mascot,distances,peaking,saxony,projected,affiliation,limitations,metals,guatemala,scots,theaters,kindergarten,verb,employer,differs,discharge,controller,seasonal,marching,guru,campuses,avoided,vatican,maori,excessive,chartered,modifications,caves,monetary,sacramento,mixing,institutional,celebrities,irrigation,shapes,broadcaster,anthem,attributes,demolition,offshore,specification,surveys,yugoslav,contributor,auditorium,lebanese,capturing,airports,classrooms,chennai,paths,tendency,determining,lacking,upgrade,sailors,detected,kingdoms,sovereignty,freely,decorative,momentum,scholarly,georges,gandhi,speculation,transactions,undertook,interact,similarities,cove,teammate,constituted,painters,tends,madagascar,partnerships,afghan,personalities,attained,rebounds,masses,synagogue,reopened,asylum,embedded,imaging,catalogue,defenders,taxonomy,fiber,afterward,appealed,communists,lisbon,rica,judaism,adviser,batsman,ecological,commands,lgbt,cooling,accessed,wards,shiva,employs,thirds,scenic,worcester,tallest,contestant,humanities,economist,textile,constituencies,motorway,tram,percussion,cloth,leisure,1880s,baden,flags,resemble,riots,coined,sitcom,composite,implies,daytime,tanzania,penalties,optional,competitor,excluded,steering,reversed,autonomy,reviewer,breakthrough,professionally,damages,pomeranian,deputies,valleys,ventures,highlighted,electorate,mapping,shortened,executives,tertiary,specimen,launching,bibliography,sank,pursuing,binary,descendant,marched,natives,ideology,turks,adolf,archdiocese,tribunal,exceptional,nigerian,preference,fails,loading,comeback,vacuum,favored,alter,remnants,consecrated,spectators,trends,patriarch,feedback,paved,sentences,councillor,astronomy,advocates,broader,commentator,commissions,identifying,revealing,theatres,incomplete,enables,constituent,reformation,tract,haiti,atmospheric,screened,explosive,czechoslovakia,acids,symbolic,subdivision,liberals,incorporate,challenger,erie,filmmaker,laps,kazakhstan,organizational,evolutionary,chemicals,dedication,riverside,fauna,moths,maharashtra,annexed,gen.,resembles,underwater,garnered,timeline,remake,suited,educator,hectares,automotive,feared,latvia,finalist,narrator,portable,airways,plaque,designing,villagers,licensing,flank,statues,struggles,deutsche,migrated,cellular,jacksonville,wimbledon,defining,highlight,preparatory,planets,cologne,employ,frequencies,detachment,readily,libya,resign,halt,helicopters,reef,landmarks,collaborative,irregular,retaining,helsinki,folklore,weakened,viscount,interred,professors,memorable,mega,repertoire,rowing,dorsal,albeit,progressed,operative,coronation,liner,telugu,domains,philharmonic,detect,bengali,synthetic,tensions,atlas,dramatically,paralympics,xbox,shire,kiev,lengthy,sued,notorious,seas,screenwriter,transfers,aquatic,pioneers,unesco,radius,abundant,tunnels,syndicated,inventor,accreditation,janeiro,exeter,ceremonial,omaha,cadet,predators,resided,prose,slavic,precision,abbot,deity,engaging,cambodia,estonian,compliance,demonstrations,protesters,reactor,commodore,successes,chronicles,mare,extant,listings,minerals,tonnes,parody,cultivated,traders,pioneering,supplement,slovak,preparations,collision,partnered,vocational,atoms,malayalam,welcomed,documentation,curved,functioning,presently,formations,incorporates,nazis,botanical,nucleus,ethical,greeks,metric,automated,whereby,stance,europeans,duet,disability,purchasing,email,telescope,displaced,sodium,comparative,processor,inning,precipitation,aesthetic,import,coordination,feud,alternatively,mobility,tibet,regained,succeeding,hierarchy,apostolic,catalog,reproduction,inscriptions,vicar,clusters,posthumously,rican,loosely,additions,photographic,nowadays,selective,derivative,keyboards,guides,collectively,affecting,combines,operas,networking,decisive,terminated,continuity,finishes,ancestor,consul,heated,simulation,leipzig,incorporating,georgetown,formula_2,circa,forestry,portrayal,councillors,advancement,complained,forewings,confined,transaction,definitions,reduces,televised,1890s,rapids,phenomena,belarus,alps,landscapes,quarterly,specifications,commemorate,continuation,isolation,antenna,downstream,patents,ensuing,tended,saga,lifelong,columnist,labeled,gymnastics,papua,anticipated,demise,encompasses,madras,antarctica,interval,icon,rams,midlands,ingredients,priory,strengthen,rouge,explicit,gaza,aging,securing,anthropology,listeners,adaptations,underway,vista,malay,fortified,lightweight,violations,concerto,financed,jesuit,observers,trustee,descriptions,nordic,resistant,opted,accepts,prohibition,andhra,inflation,negro,wholly,imagery,spur,instructed,gloucester,cycles,middlesex,destroyers,statewide,evacuated,hyderabad,peasants,mice,shipyard,coordinate,pitching,colombian,exploring,numbering,compression,countess,hiatus,exceed,raced,archipelago,traits,soils,o'connor,vowel,android,facto,angola,amino,holders,logistics,circuits,emergence,kuwait,partition,emeritus,outcomes,submission,promotes,barack,negotiated,loaned,stripped,50th,excavations,treatments,fierce,participant,exports,decommissioned,cameo,remarked,residences,fuselage,mound,undergo,quarry,node,midwest,specializing,occupies,etc.,showcase,molecule,offs,modules,salon,exposition,revision,peers,positioned,hunters,competes,algorithms,reside,zagreb,calcium,uranium,silicon,airs,counterpart,outlet,collectors,sufficiently,canberra,inmates,anatomy,ensuring,curves,aviv,firearms,basque,volcano,thrust,sheikh,extensions,installations,aluminum,darker,sacked,emphasized,aligned,asserted,pseudonym,spanning,decorations,eighteenth,orbital,spatial,subdivided,notation,decay,macedonian,amended,declining,cyclist,feat,unusually,commuter,birthplace,latitude,activation,overhead,30th,finalists,whites,encyclopedia,tenor,qatar,survives,complement,concentrations,uncommon,astronomical,bangalore,pius,genome,memoir,recruit,prosecutor,modification,paired,container,basilica,arlington,displacement,germanic,mongolia,proportional,debates,matched,calcutta,rows,tehran,aerospace,prevalent,arise,lowland,24th,spokesman,supervised,advertisements,clash,tunes,revelation,wanderers,quarterfinals,fisheries,steadily,memoirs,pastoral,renewable,confluence,acquiring,strips,slogan,upstream,scouting,analyst,practitioners,turbine,strengthened,heavier,prehistoric,plural,excluding,isles,persecution,turin,rotating,villain,hemisphere,unaware,arabs,corpus,relied,singular,unanimous,schooling,passive,angles,dominance,instituted,aria,outskirts,balanced,beginnings,financially,structured,parachute,viewer,attitudes,subjected,escapes,derbyshire,erosion,addressing,styled,declaring,originating,colts,adjusted,stained,occurrence,fortifications,baghdad,nitrogen,localities,yemen,galway,debris,lodz,victorious,pharmaceutical,substances,unnamed,dwelling,atop,developmental,activism,voter,refugee,forested,relates,overlooking,genocide,kannada,insufficient,oversaw,partisan,dioxide,recipients,factions,mortality,capped,expeditions,receptors,reorganized,prominently,atom,flooded,flute,orchestral,scripts,mathematician,airplay,detached,rebuilding,dwarf,brotherhood,salvation,expressions,arabian,cameroon,poetic,recruiting,bundesliga,inserted,scrapped,disabilities,evacuation,pasha,undefeated,crafts,rituals,aluminium,norm,pools,submerged,occupying,pathway,exams,prosperity,wrestlers,promotions,basal,permits,nationalism,trim,merge,gazette,tributaries,transcription,caste,porto,emerge,modeled,adjoining,counterparts,paraguay,redevelopment,renewal,unreleased,equilibrium,similarity,minorities,soviets,comprise,nodes,tasked,unrelated,expired,johan,precursor,examinations,electrons,socialism,exiled,admiralty,floods,wigan,nonprofit,lacks,brigades,screens,repaired,hanover,fascist,labs,osaka,delays,judged,statutory,colt,col.,offspring,solving,bred,assisting,retains,somalia,grouped,corresponds,tunisia,chaplain,eminent,chord,22nd,spans,viral,innovations,possessions,mikhail,kolkata,icelandic,implications,introduces,racism,workforce,alto,compulsory,admits,censorship,onset,reluctant,inferior,iconic,progression,liability,turnout,satellites,behavioral,coordinated,exploitation,posterior,averaging,fringe,krakow,mountainous,greenwich,para,plantations,reinforcements,offerings,famed,intervals,constraints,individually,nutrition,1870s,taxation,threshold,tomatoes,fungi,contractor,ethiopian,apprentice,diabetes,wool,gujarat,honduras,norse,bucharest,23rd,arguably,accompany,prone,teammates,perennial,vacancy,polytechnic,deficit,okinawa,functionality,reminiscent,tolerance,transferring,myanmar,concludes,neighbours,hydraulic,economically,slower,plots,charities,synod,investor,catholicism,identifies,bronx,interpretations,adverse,judiciary,hereditary,nominal,sensor,symmetry,cubic,triangular,tenants,divisional,outreach,representations,passages,undergoing,cartridge,testified,exceeded,impacts,limiting,railroads,defeats,regain,rendering,humid,retreated,reliability,governorate,antwerp,infamous,implied,packaging,lahore,trades,billed,extinction,ecole,rejoined,recognizes,projection,qualifications,stripes,forts,socially,lexington,accurately,sexuality,westward,wikipedia,pilgrimage,abolition,choral,stuttgart,nests,expressing,strikeouts,assessed,monasteries,reconstructed,humorous,marxist,fertile,consort,urdu,patronage,peruvian,devised,lyric,baba,nassau,communism,extraction,popularly,markings,inability,litigation,accounted,processed,emirates,tempo,cadets,eponymous,contests,broadly,oxide,courtyard,frigate,directory,apex,outline,regency,chiefly,patrols,secretariat,cliffs,residency,privy,armament,australians,dorset,geometric,genetics,scholarships,fundraising,flats,demographic,multimedia,captained,documentaries,updates,canvas,blockade,guerrilla,songwriting,administrators,intake,drought,implementing,fraction,cannes,refusal,inscribed,meditation,announcing,exported,ballots,formula_3,curator,basel,arches,flour,subordinate,confrontation,gravel,simplified,berkshire,patriotic,tuition,employing,servers,castile,posting,combinations,discharged,miniature,mutations,constellation,incarnation,ideals,necessity,granting,ancestral,crowds,pioneered,mormon,methodology,rama,indirect,complexes,bavarian,patrons,uttar,skeleton,bollywood,flemish,viable,bloc,breeds,triggered,sustainability,tailed,referenced,comply,takeover,latvian,homestead,platoon,communal,nationality,excavated,targeting,sundays,posed,physicist,turret,endowment,marginal,dispatched,commentators,renovations,attachment,collaborations,ridges,barriers,obligations,shareholders,prof.,defenses,presided,rite,backgrounds,arbitrary,affordable,gloucestershire,thirteenth,inlet,miniseries,possesses,detained,pressures,subscription,realism,solidarity,proto,postgraduate,noun,burmese,abundance,homage,reasoning,anterior,robust,fencing,shifting,vowels,garde,profitable,loch,anchored,coastline,samoa,terminology,prostitution,magistrate,venezuelan,speculated,regulate,fixture,colonists,digit,induction,manned,expeditionary,computational,centennial,principally,vein,preserving,engineered,numerical,cancellation,conferred,continually,borne,seeded,advertisement,unanimously,treaties,infections,ions,sensors,lowered,amphibious,lava,fourteenth,bahrain,niagara,nicaragua,squares,congregations,26th,periodic,proprietary,1860s,contributors,seller,overs,emission,procession,presumed,illustrator,zinc,gases,tens,applicable,stretches,reproductive,sixteenth,apparatus,accomplishments,canoe,guam,oppose,recruitment,accumulated,limerick,namibia,staging,remixes,ordnance,uncertainty,pedestrian,temperate,treason,deposited,registry,cerambycidae,attracting,lankan,reprinted,shipbuilding,homosexuality,neurons,eliminating,1900s,resume,ministries,beneficial,blackpool,surplus,northampton,licenses,constructing,announcer,standardized,alternatives,taipei,inadequate,failures,yields,medalist,titular,obsolete,torah,burlington,predecessors,lublin,retailers,castles,depiction,issuing,gubernatorial,propulsion,tiles,damascus,discs,alternating,pomerania,peasant,tavern,redesignated,27th,illustration,focal,mans,codex,specialists,productivity,antiquity,controversies,promoter,pits,companions,behaviors,lyrical,prestige,creativity,swansea,dramas,approximate,feudal,tissues,crude,campaigned,unprecedented,chancel,amendments,surroundings,allegiance,exchanges,align,firmly,optimal,commenting,reigning,landings,obscure,1850s,contemporaries,paternal,devi,endurance,communes,incorporation,denominations,exchanged,routing,resorts,amnesty,slender,explores,suppression,heats,pronunciation,centred,coupe,stirling,freelance,treatise,linguistics,laos,informs,discovering,pillars,encourages,halted,robots,definitive,maturity,tuberculosis,venetian,silesian,unchanged,originates,mali,lincolnshire,quotes,seniors,premise,contingent,distribute,danube,gorge,logging,dams,curling,seventeenth,specializes,wetlands,deities,assess,thickness,rigid,culminated,utilities,substrate,insignia,nile,assam,shri,currents,suffrage,canadians,mortar,asteroid,bosnian,discoveries,enzymes,sanctioned,replica,hymn,investigators,tidal,dominate,derivatives,converting,leinster,verbs,honoured,criticisms,dismissal,discrete,masculine,reorganization,unlimited,wurttemberg,sacks,allocation,bahn,jurisdictions,participates,lagoon,famine,communion,culminating,surveyed,shortage,cables,intersects,cassette,foremost,adopting,solicitor,outright,bihar,reissued,farmland,dissertation,turnpike,baton,photographed,christchurch,kyoto,finances,rails,histories,linebacker,kilkenny,accelerated,dispersed,handicap,absorption,rancho,ceramic,captivity,cites,font,weighed,mater,utilize,bravery,extract,validity,slovenian,seminars,discourse,ranged,duel,ironically,warships,sega,temporal,surpassed,prolonged,recruits,northumberland,greenland,contributes,patented,eligibility,unification,discusses,reply,translates,beirut,relies,torque,northward,reviewers,monastic,accession,neural,tramway,heirs,sikh,subscribers,amenities,taliban,audit,rotterdam,wagons,kurdish,favoured,combustion,meanings,persia,browser,diagnostic,niger,formula_4,denomination,dividing,parameter,branding,badminton,leningrad,sparked,hurricanes,beetles,propeller,mozambique,refined,diagram,exhaust,vacated,readings,markers,reconciliation,determines,concurrent,imprint,primera,organism,demonstrating,filmmakers,vanderbilt,affiliates,traction,evaluated,defendants,megachile,investigative,zambia,assassinated,rewarded,probable,staffordshire,foreigners,directorate,nominees,consolidation,commandant,reddish,differing,unrest,drilling,bohemia,resembling,instrumentation,considerations,haute,promptly,variously,dwellings,clans,tablet,enforced,cockpit,semifinal,hussein,prisons,ceylon,emblem,monumental,phrases,correspond,crossover,outlined,characterised,acceleration,caucus,crusade,protested,composing,rajasthan,habsburg,rhythmic,interception,inherent,cooled,ponds,spokesperson,gradual,consultation,kuala,globally,suppressed,builders,avengers,suffix,integer,enforce,fibers,unionist,proclamation,uncovered,infrared,adapt,eisenhower,utilizing,captains,stretched,observing,assumes,prevents,analyses,saxophone,caucasus,notices,villains,dartmouth,mongol,hostilities,stretching,veterinary,lenses,texture,prompting,overthrow,excavation,islanders,masovian,battleship,biographer,replay,degradation,departing,luftwaffe,fleeing,oversight,immigrated,serbs,fishermen,strengthening,respiratory,italians,denotes,radial,escorted,motif,wiltshire,expresses,accessories,reverted,establishments,inequality,protocols,charting,famously,satirical,entirety,trench,friction,atletico,sampling,subset,weekday,upheld,sharply,correlation,incorrect,mughal,travelers,hasan,earnings,offset,evaluate,specialised,recognizing,flexibility,nagar,postseason,algebraic,capitalism,crystals,melodies,polynomial,racecourse,defences,austro,wembley,attracts,anarchist,resurrection,reviewing,decreasing,prefix,ratified,mutation,displaying,separating,restoring,assemblies,ordinance,priesthood,cruisers,appoint,moldova,imports,directive,epidemic,militant,senegal,signaling,restriction,critique,retrospective,nationalists,undertake,sioux,canals,algerian,redesigned,philanthropist,depict,conceptual,turbines,intellectuals,eastward,applicants,contractors,vendors,undergone,namesake,ensured,tones,substituted,hindwings,arrests,tombs,transitional,principality,reelection,taiwanese,cavity,manifesto,broadcasters,spawned,thoroughbred,identities,generators,proposes,hydroelectric,johannesburg,cortex,scandinavian,killings,aggression,boycott,catalyst,physiology,fifteenth,waterfront,chromosome,organist,costly,calculation,cemeteries,flourished,recognise,juniors,merging,disciples,ashore,workplace,enlightenment,diminished,debated,hailed,podium,educate,mandated,distributor,litre,electromagnetic,flotilla,estuary,peterborough,staircase,selections,melodic,confronts,wholesale,integrate,intercepted,catalonia,unite,immense,palatinate,switches,earthquakes,occupational,successors,praising,concluding,faculties,firstly,overhaul,empirical,metacritic,inauguration,evergreen,laden,winged,philosophers,amalgamated,geoff,centimeters,napoleonic,upright,planting,brewing,fined,sensory,migrants,wherein,inactive,headmaster,warwickshire,siberia,terminals,denounced,academia,divinity,bilateral,clive,omitted,peerage,relics,apartheid,syndicate,fearing,fixtures,desirable,dismantled,ethnicity,valves,biodiversity,aquarium,ideological,visibility,creators,analyzed,tenant,balkan,postwar,supplier,smithsonian,risen,morphology,digits,bohemian,wilmington,vishnu,demonstrates,aforementioned,biographical,mapped,khorasan,phosphate,presentations,ecosystem,processors,calculations,mosaic,clashes,penned,recalls,coding,angular,lattice,macau,accountability,extracted,pollen,therapeutic,overlap,violinist,deposed,candidacy,infants,covenant,bacterial,restructuring,dungeons,ordination,conducts,builds,invasive,customary,concurrently,relocation,cello,statutes,borneo,entrepreneurs,sanctions,packet,rockefeller,piedmont,comparisons,waterfall,receptions,glacial,surge,signatures,alterations,advertised,enduring,somali,botanist,100th,canonical,motifs,longitude,circulated,alloy,indirectly,margins,preserves,internally,besieged,shale,peripheral,drained,baseman,reassigned,tobago,soloist,socio,grazing,contexts,roofs,portraying,ottomans,shrewsbury,noteworthy,lamps,supplying,beams,qualifier,portray,greenhouse,stronghold,hitter,rites,cretaceous,urging,derive,nautical,aiming,fortunes,verde,donors,reliance,exceeding,exclusion,exercised,simultaneous,continents,guiding,pillar,gradient,poznan,eruption,clinics,moroccan,indicator,trams,piers,parallels,fragment,teatro,potassium,satire,compressed,businessmen,influx,seine,perspectives,shelters,decreases,mounting,formula_5,confederacy,equestrian,expulsion,mayors,liberia,resisted,affinity,shrub,unexpectedly,stimulus,amtrak,deported,perpendicular,statesman,wharf,storylines,romanesque,weights,surfaced,interceptions,dhaka,crambidae,orchestras,rwanda,conclude,constitutes,subsidiaries,admissions,prospective,shear,bilingual,campaigning,presiding,domination,commemorative,trailing,confiscated,petrol,acquisitions,polymer,onlyinclude,chloride,elevations,resolutions,hurdles,pledged,likelihood,objected,erect,encoding,databases,aristotle,hindus,marshes,bowled,ministerial,grange,acronym,annexation,squads,ambient,pilgrims,botany,sofla,astronomer,planetary,descending,bestowed,ceramics,diplomacy,metabolism,colonization,potomac,africans,engraved,recycling,commitments,resonance,disciplinary,jamaican,narrated,spectral,tipperary,waterford,stationary,arbitration,transparency,threatens,crossroads,slalom,oversee,centenary,incidence,economies,livery,moisture,newsletter,autobiographical,bhutan,propelled,dependence,moderately,adobe,barrels,subdivisions,outlook,labelled,stratford,arising,diaspora,barony,automobiles,ornamental,slated,norms,primetime,generalized,analysts,vectors,libyan,yielded,certificates,rooted,vernacular,belarusian,marketplace,prediction,fairfax,malawi,viruses,wooded,demos,mauritius,prosperous,coincided,liberties,huddersfield,ascent,warnings,hinduism,glucose,pulitzer,unused,filters,illegitimate,acquitted,protestants,canopy,staple,psychedelic,winding,abbas,pathways,cheltenham,lagos,niche,invaders,proponents,barred,conversely,doncaster,recession,embraced,rematch,concession,emigration,upgrades,bowls,tablets,remixed,loops,kensington,shootout,monarchs,organizers,harmful,punjabi,broadband,exempt,neolithic,profiles,portrays,parma,cyrillic,quasi,attested,regimental,revive,torpedoes,heidelberg,rhythms,spherical,denote,hymns,icons,theologian,qaeda,exceptionally,reinstated,comune,playhouse,lobbying,grossing,viceroy,delivers,visually,armistice,utrecht,syllable,vertices,analogous,annex,refurbished,entrants,knighted,disciple,rhetoric,detailing,inactivated,ballads,algae,intensified,favourable,sanitation,receivers,pornography,commemorated,cannons,entrusted,manifold,photographers,pueblo,textiles,steamer,myths,marquess,onward,liturgical,romney,uzbekistan,consistency,denoted,hertfordshire,convex,hearings,sulfur,universidad,podcast,selecting,emperors,arises,justices,1840s,mongolian,exploited,termination,digitally,infectious,sedan,symmetric,penal,illustrate,formulation,attribute,problematic,modular,inverse,berth,searches,rutgers,leicestershire,enthusiasts,lockheed,upwards,transverse,accolades,backward,archaeologists,crusaders,nuremberg,defects,ferries,vogue,containers,openings,transporting,separates,lumpur,purchases,attain,wichita,topology,woodlands,deleted,periodically,syntax,overturned,musicals,corp.,strasbourg,instability,nationale,prevailing,cache,marathi,versailles,unmarried,grains,straits,antagonist,segregation,assistants,d'etat,contention,dictatorship,unpopular,motorcycles,criterion,analytical,salzburg,militants,hanged,worcestershire,emphasize,paralympic,erupted,convinces,offences,oxidation,nouns,populace,atari,spanned,hazardous,educators,playable,births,baha'i,preseason,generates,invites,meteorological,handbook,foothills,enclosure,diffusion,mirza,convergence,geelong,coefficient,connector,formula_6,cylindrical,disasters,pleaded,knoxville,contamination,compose,libertarian,arrondissement,franciscan,intercontinental,susceptible,initiation,malaria,unbeaten,consonants,waived,saloon,popularized,estadio,pseudo,interdisciplinary,transports,transformers,carriages,bombings,revolves,ceded,collaborator,celestial,exemption,colchester,maltese,oceanic,ligue,crete,shareholder,routed,depictions,ridden,advisors,calculate,lending,guangzhou,simplicity,newscast,scheduling,snout,eliot,undertaking,armenians,nottinghamshire,whitish,consulted,deficiency,salle,cinemas,superseded,rigorous,kerman,convened,landowners,modernization,evenings,pitches,conditional,scandinavia,differed,formulated,cyclists,swami,guyana,dunes,electrified,appalachian,abdomen,scenarios,prototypes,sindh,consonant,adaptive,boroughs,wolverhampton,modelling,cylinders,amounted,minimize,ambassadors,lenin,settler,coincide,approximation,grouping,murals,bullying,registers,rumours,engagements,energetic,vertex,annals,bordering,geologic,yellowish,runoff,converts,allegheny,facilitated,saturdays,colliery,monitored,rainforest,interfaces,geographically,impaired,prevalence,joachim,paperback,slowed,shankar,distinguishing,seminal,categorized,authorised,auspices,bandwidth,asserts,rebranded,balkans,supplemented,seldom,weaving,capsule,apostles,populous,monmouth,payload,symphonic,densely,shoreline,managerial,masonry,antioch,averages,textbooks,royalist,coliseum,tandem,brewers,diocesan,posthumous,walled,incorrectly,distributions,ensued,reasonably,graffiti,propagation,automation,harmonic,augmented,middleweight,limbs,elongated,landfall,comparatively,literal,grossed,koppen,wavelength,1830s,cerebral,boasts,congestion,physiological,practitioner,coasts,cartoonist,undisclosed,frontal,launches,burgundy,qualifiers,imposing,stade,flanked,assyrian,raided,multiplayer,montane,chesapeake,pathology,drains,vineyards,intercollegiate,semiconductor,grassland,convey,citations,predominant,rejects,benefited,yahoo,graphs,busiest,encompassing,hamlets,explorers,suppress,minors,graphical,calculus,sediment,intends,diverted,mainline,unopposed,cottages,initiate,alumnus,towed,autism,forums,darlington,modernist,oxfordshire,lectured,capitalist,suppliers,panchayat,actresses,foundry,southbound,commodity,wesleyan,divides,palestinians,luton,caretaker,nobleman,mutiny,organizer,preferences,nomenclature,splits,unwilling,offenders,timor,relying,halftime,semitic,arithmetic,milestone,jesuits,arctiidae,retrieved,consuming,contender,edged,plagued,inclusive,transforming,khmer,federally,insurgents,distributing,amherst,rendition,prosecutors,viaduct,disqualified,kabul,liturgy,prevailed,reelected,instructors,swimmers,aperture,churchyard,interventions,totals,darts,metropolis,fuels,fluent,northbound,correctional,inflicted,barrister,realms,culturally,aristocratic,collaborating,emphasizes,choreographer,inputs,ensembles,humboldt,practised,endowed,strains,infringement,archaeologist,congregational,magna,relativity,efficiently,proliferation,mixtape,abruptly,regeneration,commissioning,yukon,archaic,reluctantly,retailer,northamptonshire,universally,crossings,boilers,nickelodeon,revue,abbreviation,retaliation,scripture,routinely,medicinal,benedictine,kenyan,retention,deteriorated,glaciers,apprenticeship,coupling,researched,topography,entrances,anaheim,pivotal,compensate,arched,modify,reinforce,dusseldorf,journeys,motorsport,conceded,sumatra,spaniards,quantitative,loire,cinematography,discarded,botswana,morale,engined,zionist,philanthropy,sainte,fatalities,cypriot,motorsports,indicators,pricing,institut,bethlehem,implicated,gravitational,differentiation,rotor,thriving,precedent,ambiguous,concessions,forecast,conserved,fremantle,asphalt,landslide,middlesbrough,formula_7,humidity,overseeing,chronological,diaries,multinational,crimean,turnover,improvised,youths,declares,tasmanian,canadiens,fumble,refinery,weekdays,unconstitutional,upward,guardians,brownish,imminent,hamas,endorsement,naturalist,martyrs,caledonia,chords,yeshiva,reptiles,severity,mitsubishi,fairs,installment,substitution,repertory,keyboardist,interpreter,silesia,noticeable,rhineland,transmit,inconsistent,booklet,academies,epithet,pertaining,progressively,aquatics,scrutiny,prefect,toxicity,rugged,consume,o'donnell,evolve,uniquely,cabaret,mediated,landowner,transgender,palazzo,compilations,albuquerque,induce,sinai,remastered,efficacy,underside,analogue,specify,possessing,advocating,compatibility,liberated,greenville,mecklenburg,header,memorials,sewage,rhodesia,1800s,salaries,atoll,coordinating,partisans,repealed,amidst,subjective,optimization,nectar,evolving,exploits,madhya,styling,accumulation,raion,postage,responds,buccaneers,frontman,brunei,choreography,coated,kinetic,sampled,inflammatory,complementary,eclectic,norte,vijay,a.k.a,mainz,casualty,connectivity,laureate,franchises,yiddish,reputed,unpublished,economical,periodicals,vertically,bicycles,brethren,capacities,unitary,archeological,tehsil,domesday,wehrmacht,justification,angered,mysore,fielded,abuses,nutrients,ambitions,taluk,battleships,symbolism,superiority,neglect,attendees,commentaries,collaborators,predictions,yorker,breeders,investing,libretto,informally,coefficients,memorandum,pounder,collingwood,tightly,envisioned,arbor,mistakenly,captures,nesting,conflicting,enhancing,streetcar,manufactures,buckinghamshire,rewards,commemorating,stony,expenditure,tornadoes,semantic,relocate,weimar,iberian,sighted,intending,ensign,beverages,expectation,differentiate,centro,utilizes,saxophonist,catchment,transylvania,ecosystems,shortest,sediments,socialists,ineffective,kapoor,formidable,heroine,guantanamo,prepares,scattering,pamphlet,verified,elector,barons,totaling,shrubs,pyrenees,amalgamation,mutually,longitudinal,comte,negatively,masonic,envoy,sexes,akbar,mythical,tonga,bishopric,assessments,malaya,warns,interiors,reefs,reflections,neutrality,musically,nomadic,waterways,provence,collaborate,scaled,adulthood,emerges,euros,optics,incentives,overland,periodical,liege,awarding,realization,slang,affirmed,schooner,hokkaido,czechoslovak,protectorate,undrafted,disagreed,commencement,electors,spruce,swindon,fueled,equatorial,inventions,suites,slovene,backdrop,adjunct,energies,remnant,inhabit,alliances,simulcast,reactors,mosques,travellers,outfielder,plumage,migratory,benin,experimented,fibre,projecting,drafting,laude,evidenced,northernmost,indicted,directional,replication,croydon,comedies,jailed,organizes,devotees,reservoirs,turrets,originate,economists,songwriters,junta,trenches,mounds,proportions,comedic,apostle,azerbaijani,farmhouse,resembled,disrupted,playback,mixes,diagonal,relevance,govern,programmer,gdansk,maize,soundtracks,tendencies,mastered,impacted,believers,kilometre,intervene,chairperson,aerodrome,sails,subsidies,ensures,aesthetics,congresses,ratios,sardinia,southernmost,functioned,controllers,downward,randomly,distortion,regents,palatine,disruption,spirituality,vidhan,tracts,compiler,ventilation,anchorage,symposium,assert,pistols,excelled,avenues,convoys,moniker,constructions,proponent,phased,spines,organising,schleswig,policing,campeonato,mined,hourly,croix,lucrative,authenticity,haitian,stimulation,burkina,espionage,midfield,manually,staffed,awakening,metabolic,biographies,entrepreneurship,conspicuous,guangdong,preface,subgroup,mythological,adjutant,feminism,vilnius,oversees,honourable,tripoli,stylized,kinase,societe,notoriety,altitudes,configurations,outward,transmissions,announces,auditor,ethanol,clube,nanjing,mecca,haifa,blogs,postmaster,paramilitary,depart,positioning,potent,recognizable,spire,brackets,remembrance,overlapping,turkic,articulated,scientology,operatic,deploy,readiness,biotechnology,restrict,cinematographer,inverted,synonymous,administratively,westphalia,commodities,replaces,downloads,centralized,munitions,preached,sichuan,fashionable,implementations,matrices,hiv/aids,loyalist,luzon,celebrates,hazards,heiress,mercenaries,synonym,creole,ljubljana,technician,auditioned,technicians,viewpoint,wetland,mongols,princely,sharif,coating,dynasties,southward,doubling,formula_8,mayoral,harvesting,conjecture,goaltender,oceania,spokane,welterweight,bracket,gatherings,weighted,newscasts,mussolini,affiliations,disadvantage,vibrant,spheres,sultanate,distributors,disliked,establishes,marches,drastically,yielding,jewellery,yokohama,vascular,airlift,canons,subcommittee,repression,strengths,graded,outspoken,fused,pembroke,filmography,redundant,fatigue,repeal,threads,reissue,pennant,edible,vapor,corrections,stimuli,commemoration,dictator,anand,secession,amassed,orchards,pontifical,experimentation,greeted,bangor,forwards,decomposition,quran,trolley,chesterfield,traverse,sermons,burials,skier,climbs,consultants,petitioned,reproduce,parted,illuminated,kurdistan,reigned,occupants,packaged,geometridae,woven,regulating,protagonists,crafted,affluent,clergyman,consoles,migrant,supremacy,attackers,caliph,defect,convection,rallies,huron,resin,segunda,quota,warship,overseen,criticizing,shrines,glamorgan,lowering,beaux,hampered,invasions,conductors,collects,bluegrass,surrounds,substrates,perpetual,chronology,pulmonary,executions,crimea,compiling,noctuidae,battled,tumors,minsk,novgorod,serviced,yeast,computation,swamps,theodor,baronetcy,salford,uruguayan,shortages,odisha,siberian,novelty,cinematic,invitational,decks,dowager,oppression,bandits,appellate,state-of-the-art,clade,palaces,signalling,galaxies,industrialist,tensor,learnt,incurred,magistrates,binds,orbits,ciudad,willingness,peninsular,basins,biomedical,shafts,marlborough,bournemouth,withstand,fitzroy,dunedin,variance,steamship,integrating,muscular,fines,akron,bulbophyllum,malmo,disclosed,cornerstone,runways,medicines,twenty20,gettysburg,progresses,frigates,bodied,transformations,transforms,helens,modelled,versatile,regulator,pursuits,legitimacy,amplifier,scriptures,voyages,examines,presenters,octagonal,poultry,formula_9,anatolia,computed,migrate,directorial,hybrids,localized,preferring,guggenheim,persisted,grassroots,inflammation,fishery,otago,vigorous,professions,instructional,inexpensive,insurgency,legislators,sequels,surnames,agrarian,stainless,nairobi,minas,forerunner,aristocracy,transitions,sicilian,showcased,doses,hiroshima,summarized,gearbox,emancipation,limitation,nuclei,seismic,abandonment,dominating,appropriations,occupations,electrification,hilly,contracting,exaggerated,entertainer,kazan,oricon,cartridges,characterization,parcel,maharaja,exceeds,aspiring,obituary,flattened,contrasted,narration,replies,oblique,outpost,fronts,arranger,talmud,keynes,doctrines,endured,confesses,fortification,supervisors,kilometer,academie,jammu,bathurst,piracy,prostitutes,navarre,cumulative,cruises,lifeboat,twinned,radicals,interacting,expenditures,wexford,libre,futsal,curated,clockwise,colloquially,procurement,immaculate,lyricist,enhancement,porcelain,alzheimer,highlighting,judah,disagreements,storytelling,sheltered,wroclaw,vaudeville,contrasts,neoclassical,compares,contrasting,deciduous,francaise,descriptive,cyclic,reactive,antiquities,meiji,repeats,creditors,forcibly,newmarket,picturesque,impending,uneven,bison,raceway,solvent,ecumenical,optic,professorship,harvested,waterway,banjo,pharaoh,geologist,scanning,dissent,recycled,unmanned,retreating,gospels,aqueduct,branched,tallinn,groundbreaking,syllables,hangar,designations,procedural,craters,cabins,encryption,anthropologist,montevideo,outgoing,inverness,chattanooga,fascism,calais,chapels,groundwater,downfall,misleading,robotic,tortricidae,pixel,handel,prohibit,crewe,renaming,reprised,kickoff,leftist,spaced,integers,causeway,pines,authorship,organise,ptolemy,accessibility,virtues,lesions,iroquois,qur'an,atheist,synthesized,biennial,confederates,dietary,skaters,stresses,tariff,koreans,intercity,republics,quintet,baroness,naive,amplitude,insistence,tbilisi,residues,grammatical,diversified,egyptians,accompaniment,vibration,repository,mandal,topological,distinctions,coherent,invariant,batters,nuevo,internationals,implements,follower,bahia,widened,independents,cantonese,totaled,guadalajara,wolverines,befriended,muzzle,surveying,hungarians,medici,deportation,rayon,approx,recounts,attends,clerical,hellenic,furnished,alleging,soluble,systemic,gallantry,bolshevik,intervened,hostel,gunpowder,specialising,stimulate,leiden,removes,thematic,floral,bafta,printers,conglomerate,eroded,analytic,successively,lehigh,thessaloniki,kilda,clauses,ascended,nehru,scripted,tokugawa,competence,diplomats,exclude,consecration,freedoms,assaults,revisions,blacksmith,textual,sparse,concacaf,slain,uploaded,enraged,whaling,guise,stadiums,debuting,dormitory,cardiovascular,yunnan,dioceses,consultancy,notions,lordship,archdeacon,collided,medial,airfields,garment,wrestled,adriatic,reversal,refueling,verification,jakob,horseshoe,intricate,veracruz,sarawak,syndication,synthesizer,anthologies,stature,feasibility,guillaume,narratives,publicized,antrim,intermittent,constituents,grimsby,filmmaking,doping,unlawful,nominally,transmitting,documenting,seater,internationale,ejected,steamboat,alsace,boise,ineligible,geared,vassal,mustered,ville,inline,pairing,eurasian,kyrgyzstan,barnsley,reprise,stereotypes,rushes,conform,firefighters,deportivo,revolutionaries,rabbis,concurrency,charters,sustaining,aspirations,algiers,chichester,falkland,morphological,systematically,volcanoes,designate,artworks,reclaimed,jurist,anglia,resurrected,chaotic,feasible,circulating,simulated,environmentally,confinement,adventist,harrisburg,laborers,ostensibly,universiade,pensions,influenza,bratislava,octave,refurbishment,gothenburg,putin,barangay,annapolis,breaststroke,illustrates,distorted,choreographed,promo,emphasizing,stakeholders,descends,exhibiting,intrinsic,invertebrates,evenly,roundabout,salts,formula_10,strata,inhibition,branching,stylistic,rumored,realises,mitochondrial,commuted,adherents,logos,bloomberg,telenovela,guineas,charcoal,engages,winery,reflective,siena,cambridgeshire,ventral,flashback,installing,engraving,grasses,traveller,rotated,proprietor,nationalities,precedence,sourced,trainers,cambodian,reductions,depleted,saharan,classifications,biochemistry,plaintiffs,arboretum,humanist,fictitious,aleppo,climates,bazaar,his/her,homogeneous,multiplication,moines,indexed,linguist,skeletal,foliage,societal,differentiated,informing,mammal,infancy,archival,cafes,malls,graeme,musee,schizophrenia,fargo,pronouns,derivation,descend,ascending,terminating,deviation,recaptured,confessions,weakening,tajikistan,bahadur,pasture,b/hip,donegal,supervising,sikhs,thinkers,euclidean,reinforcement,friars,portage,fuscous,lucknow,synchronized,assertion,choirs,privatization,corrosion,multitude,skyscraper,royalties,ligament,usable,spores,directs,clashed,stockport,fronted,dependency,contiguous,biologist,backstroke,powerhouse,frescoes,phylogenetic,welding,kildare,gabon,conveyed,augsburg,severn,continuum,sahib,lille,injuring,passeriformesfamily,succeeds,translating,unitarian,startup,turbulent,outlying,philanthropic,stanislaw,idols,claremont,conical,haryana,armagh,blended,implicit,conditioned,modulation,rochdale,labourers,coinage,shortstop,potsdam,gears,obesity,bestseller,advisers,bouts,comedians,jozef,lausanne,taxonomic,correlated,columbian,marne,indications,psychologists,libel,edict,beaufort,disadvantages,renal,finalized,racehorse,unconventional,disturbances,falsely,zoology,adorned,redesign,executing,narrower,commended,appliances,stalls,resurgence,saskatoon,miscellaneous,permitting,epoch,formula_11,cumbria,forefront,vedic,eastenders,disposed,supermarkets,rower,inhibitor,magnesium,colourful,yusuf,harrow,formulas,centrally,balancing,ionic,nocturnal,consolidate,ornate,raiding,charismatic,accelerate,nominate,residual,dhabi,commemorates,attribution,uninhabited,mindanao,atrocities,genealogical,romani,applicant,enactment,abstraction,trough,pulpit,minuscule,misconduct,grenades,timely,supplements,messaging,curvature,ceasefire,telangana,susquehanna,braking,redistribution,shreveport,neighbourhoods,gregorian,widowed,khuzestan,empowerment,scholastic,evangelist,peptide,topical,theorist,historia,thence,sudanese,museo,jurisprudence,masurian,frankish,headlined,recounted,netball,petitions,tolerant,hectare,truncated,southend,methane,captives,reigns,massif,subunit,acidic,weightlifting,footballers,sabah,britannia,tunisian,segregated,sawmill,withdrawing,unpaid,weaponry,somme,perceptions,unicode,alcoholism,durban,wrought,waterfalls,jihad,auschwitz,upland,eastbound,adjective,anhalt,evaluating,regimes,guildford,reproduced,pamphlets,hierarchical,maneuvers,hanoi,fabricated,repetition,enriched,arterial,replacements,tides,globalization,adequately,westbound,satisfactory,fleets,phosphorus,lastly,neuroscience,anchors,xinjiang,membranes,improvisation,shipments,orthodoxy,submissions,bolivian,mahmud,ramps,leyte,pastures,outlines,flees,transmitters,fares,sequential,stimulated,novice,alternately,symmetrical,breakaway,layered,baronets,lizards,blackish,edouard,horsepower,penang,principals,mercantile,maldives,overwhelmingly,hawke,rallied,prostate,conscription,juveniles,maccabi,carvings,strikers,sudbury,spurred,improves,lombardy,macquarie,parisian,elastic,distillery,shetland,humane,brentford,wrexham,warehouses,routines,encompassed,introductory,isfahan,instituto,palais,revolutions,sporadic,impoverished,portico,fellowships,speculative,enroll,dormant,adhere,fundamentally,sculpted,meritorious,template,upgrading,reformer,rectory,uncredited,indicative,creeks,galveston,radically,hezbollah,firearm,educating,prohibits,trondheim,locus,refit,headwaters,screenings,lowlands,wasps,coarse,attaining,sedimentary,perished,pitchfork,interned,cerro,stagecoach,aeronautical,liter,transitioned,haydn,inaccurate,legislatures,bromwich,knesset,spectroscopy,butte,asiatic,degraded,concordia,catastrophic,lobes,wellness,pensacola,periphery,hapoel,theta,horizontally,freiburg,liberalism,pleas,durable,warmian,offenses,mesopotamia,shandong,unsuitable,hospitalized,appropriately,phonetic,encompass,conversions,observes,illnesses,breakout,assigns,crowns,inhibitors,nightly,manifestation,fountains,maximize,alphabetical,sloop,expands,newtown,widening,gaddafi,commencing,camouflage,footprint,tyrol,barangays,universite,highlanders,budgets,query,lobbied,westchester,equator,stipulated,pointe,distinguishes,allotted,embankment,advises,storing,loyalists,fourier,rehearsals,starvation,gland,rihanna,tubular,expressive,baccalaureate,intersections,revered,carbonate,eritrea,craftsmen,cosmopolitan,sequencing,corridors,shortlisted,bangladeshi,persians,mimic,parades,repetitive,recommends,flanks,promoters,incompatible,teaming,ammonia,greyhound,solos,improper,legislator,newsweek,recurrent,vitro,cavendish,eireann,crises,prophets,mandir,strategically,guerrillas,formula_12,ghent,contenders,equivalence,drone,sociological,hamid,castes,statehood,aland,clinched,relaunched,tariffs,simulations,williamsburg,rotate,mediation,smallpox,harmonica,lodges,lavish,restrictive,o'sullivan,detainees,polynomials,echoes,intersecting,learners,elects,charlemagne,defiance,epsom,liszt,facilitating,absorbing,revelations,padua,pieter,pious,penultimate,mammalian,montenegrin,supplementary,widows,aromatic,croats,roanoke,trieste,legions,subdistrict,babylonian,grasslands,volga,violently,sparsely,oldies,telecommunication,respondents,quarries,downloadable,commandos,taxpayer,catalytic,malabar,afforded,copying,declines,nawab,junctions,assessing,filtering,classed,disused,compliant,christoph,gottingen,civilizations,hermitage,caledonian,whereupon,ethnically,springsteen,mobilization,terraces,indus,excel,zoological,enrichment,simulate,guitarists,registrar,cappella,invoked,reused,manchu,configured,uppsala,genealogy,mergers,casts,curricular,rebelled,subcontinent,horticultural,parramatta,orchestrated,dockyard,claudius,decca,prohibiting,turkmenistan,brahmin,clandestine,obligatory,elaborated,parasitic,helix,constraint,spearheaded,rotherham,eviction,adapting,albans,rescues,sociologist,guiana,convicts,occurrences,kamen,antennas,asturias,wheeled,sanitary,deterioration,trier,theorists,baseline,announcements,valea,planners,factual,serialized,serials,bilbao,demoted,fission,jamestown,cholera,alleviate,alteration,indefinite,sulfate,paced,climatic,valuation,artisans,proficiency,aegean,regulators,fledgling,sealing,influencing,servicemen,frequented,cancers,tambon,narayan,bankers,clarified,embodied,engraver,reorganisation,dissatisfied,dictated,supplemental,temperance,ratification,puget,nutrient,pretoria,papyrus,uniting,ascribed,cores,coptic,schoolhouse,barrio,1910s,armory,defected,transatlantic,regulates,ported,artefacts,specifies,boasted,scorers,mollusks,emitted,navigable,quakers,projective,dialogues,reunification,exponential,vastly,banners,unsigned,dissipated,halves,coincidentally,leasing,purported,escorting,estimation,foxes,lifespan,inflorescence,assimilation,showdown,staunch,prologue,ligand,superliga,telescopes,northwards,keynote,heaviest,taunton,redeveloped,vocalists,podlaskie,soyuz,rodents,azores,moravian,outset,parentheses,apparel,domestically,authoritative,polymers,monterrey,inhibit,launcher,jordanian,folds,taxis,mandates,singled,liechtenstein,subsistence,marxism,ousted,governorship,servicing,offseason,modernism,prism,devout,translators,islamist,chromosomes,pitted,bedfordshire,fabrication,authoritarian,javanese,leaflets,transient,substantive,predatory,sigismund,assassinate,diagrams,arrays,rediscovered,reclamation,spawning,fjord,peacekeeping,strands,fabrics,highs,regulars,tirana,ultraviolet,athenian,filly,barnet,naacp,nueva,favourites,terminates,showcases,clones,inherently,interpreting,bjorn,finely,lauded,unspecified,chola,pleistocene,insulation,antilles,donetsk,funnel,nutritional,biennale,reactivated,southport,primate,cavaliers,austrians,interspersed,restarted,suriname,amplifiers,wladyslaw,blockbuster,sportsman,minogue,brightness,benches,bridgeport,initiating,israelis,orbiting,newcomers,externally,scaling,transcribed,impairment,luxurious,longevity,impetus,temperament,ceilings,tchaikovsky,spreads,pantheon,bureaucracy,1820s,heraldic,villas,formula_13,galician,meath,avoidance,corresponded,headlining,connacht,seekers,rappers,solids,monograph,scoreless,opole,isotopes,himalayas,parodies,garments,microscopic,republished,havilland,orkney,demonstrators,pathogen,saturated,hellenistic,facilitates,aerodynamic,relocating,indochina,laval,astronomers,bequeathed,administrations,extracts,nagoya,torquay,demography,medicare,ambiguity,renumbered,pursuant,concave,syriac,electrode,dispersal,henan,bialystok,walsall,crystalline,puebla,janata,illumination,tianjin,enslaved,coloration,championed,defamation,grille,johor,rejoin,caspian,fatally,planck,workings,appointing,institutionalized,wessex,modernized,exemplified,regatta,jacobite,parochial,programmers,blending,eruptions,insurrection,regression,indices,sited,dentistry,mobilized,furnishings,levant,primaries,ardent,nagasaki,conqueror,dorchester,opined,heartland,amman,mortally,wellesley,bowlers,outputs,coveted,orthography,immersion,disrepair,disadvantaged,curate,childless,condensed,codice_1,remodeled,resultant,bolsheviks,superfamily,saxons,2010s,contractual,rivalries,malacca,oaxaca,magnate,vertebrae,quezon,olympiad,yucatan,tyres,macro,specialization,commendation,caliphate,gunnery,exiles,excerpts,fraudulent,adjustable,aramaic,interceptor,drumming,standardization,reciprocal,adolescents,federalist,aeronautics,favorably,enforcing,reintroduced,zhejiang,refining,biplane,banknotes,accordion,intersect,illustrating,summits,classmate,militias,biomass,massacres,epidemiology,reworked,wrestlemania,nantes,auditory,taxon,elliptical,chemotherapy,asserting,avoids,proficient,airmen,yellowstone,multicultural,alloys,utilization,seniority,kuyavian,huntsville,orthogonal,bloomington,cultivars,casimir,internment,repulsed,impedance,revolving,fermentation,parana,shutout,partnering,empowered,islamabad,polled,classify,amphibians,greyish,obedience,4x100,projectile,khyber,halfback,relational,d'ivoire,synonyms,endeavour,padma,customized,mastery,defenceman,berber,purge,interestingly,covent,promulgated,restricting,condemnation,hillsborough,walkers,privateer,intra,captaincy,naturalized,huffington,detecting,hinted,migrating,bayou,counterattack,anatomical,foraging,unsafe,swiftly,outdated,paraguayan,attire,masjid,endeavors,jerseys,triassic,quechua,growers,axial,accumulate,wastewater,cognition,fungal,animator,pagoda,kochi,uniformly,antibody,yerevan,hypotheses,combatants,italianate,draining,fragmentation,snowfall,formative,inversion,kitchener,identifier,additive,lucha,selects,ashland,cambrian,racetrack,trapping,congenital,primates,wavelengths,expansions,yeomanry,harcourt,wealthiest,awaited,punta,intervening,aggressively,vichy,piloted,midtown,tailored,heyday,metadata,guadalcanal,inorganic,hadith,pulses,francais,tangent,scandals,erroneously,tractors,pigment,constabulary,jiangsu,landfill,merton,basalt,astor,forbade,debuts,collisions,exchequer,stadion,roofed,flavour,sculptors,conservancy,dissemination,electrically,undeveloped,existent,surpassing,pentecostal,manifested,amend,formula_14,superhuman,barges,tunis,analytics,argyll,liquids,mechanized,domes,mansions,himalayan,indexing,reuters,nonlinear,purification,exiting,timbers,triangles,decommissioning,departmental,causal,fonts,americana,sept.,seasonally,incomes,razavi,sheds,memorabilia,rotational,terre,sutra,protege,yarmouth,grandmaster,annum,looted,imperialism,variability,liquidation,baptised,isotope,showcasing,milling,rationale,hammersmith,austen,streamlined,acknowledging,contentious,qaleh,breadth,turing,referees,feral,toulon,unofficially,identifiable,standout,labeling,dissatisfaction,jurgen,angrily,featherweight,cantons,constrained,dominates,standalone,relinquished,theologians,markedly,italics,downed,nitrate,likened,gules,craftsman,singaporean,pixels,mandela,moray,parity,departement,antigen,academically,burgh,brahma,arranges,wounding,triathlon,nouveau,vanuatu,banded,acknowledges,unearthed,stemming,authentication,byzantines,converge,nepali,commonplace,deteriorating,recalling,palette,mathematicians,greenish,pictorial,ahmedabad,rouen,validation,u.s.a.,'best,malvern,archers,converter,undergoes,fluorescent,logistical,notification,transvaal,illicit,symphonies,stabilization,worsened,fukuoka,decrees,enthusiast,seychelles,blogger,louvre,dignitaries,burundi,wreckage,signage,pinyin,bursts,federer,polarization,urbana,lazio,schism,nietzsche,venerable,administers,seton,kilograms,invariably,kathmandu,farmed,disqualification,earldom,appropriated,fluctuations,kermanshah,deployments,deformation,wheelbase,maratha,psalm,bytes,methyl,engravings,skirmish,fayette,vaccines,ideally,astrology,breweries,botanic,opposes,harmonies,irregularities,contended,gaulle,prowess,constants,aground,filipinos,fresco,ochreous,jaipur,willamette,quercus,eastwards,mortars,champaign,braille,reforming,horned,hunan,spacious,agitation,draught,specialties,flourishing,greensboro,necessitated,swedes,elemental,whorls,hugely,structurally,plurality,synthesizers,embassies,assad,contradictory,inference,discontent,recreated,inspectors,unicef,commuters,embryo,modifying,stints,numerals,communicated,boosted,trumpeter,brightly,adherence,remade,leases,restrained,eucalyptus,dwellers,planar,grooves,gainesville,daimler,anzac,szczecin,cornerback,prized,peking,mauritania,khalifa,motorized,lodging,instrumentalist,fortresses,cervical,formula_15,passerine,sectarian,researches,apprenticed,reliefs,disclose,gliding,repairing,queue,kyushu,literate,canoeing,sacrament,separatist,calabria,parkland,flowed,investigates,statistically,visionary,commits,dragoons,scrolls,premieres,revisited,subdued,censored,patterned,elective,outlawed,orphaned,leyland,richly,fujian,miniatures,heresy,plaques,countered,nonfiction,exponent,moravia,dispersion,marylebone,midwestern,enclave,ithaca,federated,electronically,handheld,microscopy,tolls,arrivals,climbers,continual,cossacks,moselle,deserts,ubiquitous,gables,forecasts,deforestation,vertebrates,flanking,drilled,superstructure,inspected,consultative,bypassed,ballast,subsidy,socioeconomic,relic,grenada,journalistic,administering,accommodated,collapses,appropriation,reclassified,foreword,porte,assimilated,observance,fragmented,arundel,thuringia,gonzaga,shenzhen,shipyards,sectional,ayrshire,sloping,dependencies,promenade,ecuadorian,mangrove,constructs,goalscorer,heroism,iteration,transistor,omnibus,hampstead,cochin,overshadowed,chieftain,scalar,finishers,ghanaian,abnormalities,monoplane,encyclopaedia,characterize,travancore,baronetage,bearers,biking,distributes,paving,christened,inspections,banco,humber,corinth,quadratic,albanians,lineages,majored,roadside,inaccessible,inclination,darmstadt,fianna,epilepsy,propellers,papacy,montagu,bhutto,sugarcane,optimized,pilasters,contend,batsmen,brabant,housemates,sligo,ascot,aquinas,supervisory,accorded,gerais,echoed,nunavut,conservatoire,carniola,quartermaster,gminas,impeachment,aquitaine,reformers,quarterfinal,karlsruhe,accelerator,coeducational,archduke,gelechiidae,seaplane,dissident,frenchman,palau,depots,hardcover,aachen,darreh,denominational,groningen,parcels,reluctance,drafts,elliptic,counters,decreed,airship,devotional,contradiction,formula_16,undergraduates,qualitative,guatemalan,slavs,southland,blackhawks,detrimental,abolish,chechen,manifestations,arthritis,perch,fated,hebei,peshawar,palin,immensely,havre,totalling,rampant,ferns,concourse,triples,elites,olympian,larva,herds,lipid,karabakh,distal,monotypic,vojvodina,batavia,multiplied,spacing,spellings,pedestrians,parchment,glossy,industrialization,dehydrogenase,patriotism,abolitionist,mentoring,elizabethan,figurative,dysfunction,abyss,constantin,middletown,stigma,mondays,gambia,gaius,israelites,renounced,nepalese,overcoming,buren,sulphur,divergence,predation,looting,iberia,futuristic,shelved,anthropological,innsbruck,escalated,clermont,entrepreneurial,benchmark,mechanically,detachments,populist,apocalyptic,exited,embryonic,stanza,readership,chiba,landlords,expansive,boniface,therapies,perpetrators,whitehall,kassel,masts,carriageway,clinch,pathogens,mazandaran,undesirable,teutonic,miocene,nagpur,juris,cantata,compile,diffuse,dynastic,reopening,comptroller,o'neal,flourish,electing,scientifically,departs,welded,modal,cosmology,fukushima,libertadores,chang'an,asean,generalization,localization,afrikaans,cricketers,accompanies,emigrants,esoteric,southwards,shutdown,prequel,fittings,innate,wrongly,equitable,dictionaries,senatorial,bipolar,flashbacks,semitism,walkway,lyrically,legality,sorbonne,vigorously,durga,samoan,karel,interchanges,patna,decider,registering,electrodes,anarchists,excursion,overthrown,gilan,recited,michelangelo,advertiser,kinship,taboo,cessation,formula_17,premiers,traversed,madurai,poorest,torneo,exerted,replicate,spelt,sporadically,horde,landscaping,razed,hindered,esperanto,manchuria,propellant,jalan,baha'is,sikkim,linguists,pandit,racially,ligands,dowry,francophone,escarpment,behest,magdeburg,mainstay,villiers,yangtze,grupo,conspirators,martyrdom,noticeably,lexical,kazakh,unrestricted,utilised,sired,inhabits,proofs,joseon,pliny,minted,buddhists,cultivate,interconnected,reuse,viability,australasian,derelict,resolving,overlooks,menon,stewardship,playwrights,thwarted,filmfare,disarmament,protections,bundles,sidelined,hypothesized,singer/songwriter,forage,netted,chancery,townshend,restructured,quotation,hyperbolic,succumbed,parliaments,shenandoah,apical,kibbutz,storeys,pastors,lettering,ukrainians,hardships,chihuahua,avail,aisles,taluka,antisemitism,assent,ventured,banksia,seamen,hospice,faroe,fearful,woreda,outfield,chlorine,transformer,tatar,panoramic,pendulum,haarlem,styria,cornice,importing,catalyzes,subunits,enamel,bakersfield,realignment,sorties,subordinates,deanery,townland,gunmen,tutelage,evaluations,allahabad,thrace,veneto,mennonite,sharia,subgenus,satisfies,puritan,unequal,gastrointestinal,ordinances,bacterium,horticulture,argonauts,adjectives,arable,duets,visualization,woolwich,revamped,euroleague,thorax,completes,originality,vasco,freighter,sardar,oratory,sects,extremes,signatories,exporting,arisen,exacerbated,departures,saipan,furlongs,d'italia,goring,dakar,conquests,docked,offshoot,okrug,referencing,disperse,netting,summed,rewritten,articulation,humanoid,spindle,competitiveness,preventive,facades,westinghouse,wycombe,synthase,emulate,fostering,abdel,hexagonal,myriad,caters,arjun,dismay,axiom,psychotherapy,colloquial,complemented,martinique,fractures,culmination,erstwhile,atrium,electronica,anarchism,nadal,montpellier,algebras,submitting,adopts,stemmed,overcame,internacional,asymmetric,gallipoli,gliders,flushing,extermination,hartlepool,tesla,interwar,patriarchal,hitherto,ganges,combatant,marred,philology,glastonbury,reversible,isthmus,undermined,southwark,gateshead,andalusia,remedies,hastily,optimum,smartphone,evade,patrolled,beheaded,dopamine,waivers,ugandan,gujarati,densities,predicting,intestinal,tentative,interstellar,kolonia,soloists,penetrated,rebellions,qeshlaq,prospered,colegio,deficits,konigsberg,deficient,accessing,relays,kurds,politburo,codified,incarnations,occupancy,cossack,metaphysical,deprivation,chopra,piccadilly,formula_18,makeshift,protestantism,alaskan,frontiers,faiths,tendon,dunkirk,durability,autobots,bonuses,coinciding,emails,gunboat,stucco,magma,neutrons,vizier,subscriptions,visuals,envisaged,carpets,smoky,schema,parliamentarian,immersed,domesticated,parishioners,flinders,diminutive,mahabharata,ballarat,falmouth,vacancies,gilded,twigs,mastering,clerics,dalmatia,islington,slogans,compressor,iconography,congolese,sanction,blends,bulgarians,moderator,outflow,textures,safeguard,trafalgar,tramways,skopje,colonialism,chimneys,jazeera,organisers,denoting,motivations,ganga,longstanding,deficiencies,gwynedd,palladium,holistic,fascia,preachers,embargo,sidings,busan,ignited,artificially,clearwater,cemented,northerly,salim,equivalents,crustaceans,oberliga,quadrangle,historiography,romanians,vaults,fiercely,incidental,peacetime,tonal,bhopal,oskar,radha,pesticides,timeslot,westerly,cathedrals,roadways,aldershot,connectors,brahmins,paler,aqueous,gustave,chromatic,linkage,lothian,specialises,aggregation,tributes,insurgent,enact,hampden,ghulam,federations,instigated,lyceum,fredrik,chairmanship,floated,consequent,antagonists,intimidation,patriarchate,warbler,heraldry,entrenched,expectancy,habitation,partitions,widest,launchers,nascent,ethos,wurzburg,lycee,chittagong,mahatma,merseyside,asteroids,yokosuka,cooperatives,quorum,redistricting,bureaucratic,yachts,deploying,rustic,phonology,chorale,cellist,stochastic,crucifixion,surmounted,confucian,portfolios,geothermal,crested,calibre,tropics,deferred,nasir,iqbal,persistence,essayist,chengdu,aborigines,fayetteville,bastion,interchangeable,burlesque,kilmarnock,specificity,tankers,colonels,fijian,quotations,enquiry,quito,palmerston,delle,multidisciplinary,polynesian,iodine,antennae,emphasised,manganese,baptists,galilee,jutland,latent,excursions,skepticism,tectonic,precursors,negligible,musique,misuse,vitoria,expressly,veneration,sulawesi,footed,mubarak,chongqing,chemically,midday,ravaged,facets,varma,yeovil,ethnographic,discounted,physicists,attache,disbanding,essen,shogunate,cooperated,waikato,realising,motherwell,pharmacology,sulfide,inward,expatriate,devoid,cultivar,monde,andean,groupings,goran,unaffected,moldovan,postdoctoral,coleophora,delegated,pronoun,conductivity,coleridge,disapproval,reappeared,microbial,campground,olsztyn,fostered,vaccination,rabbinical,champlain,milestones,viewership,caterpillar,effected,eupithecia,financier,inferred,uzbek,bundled,bandar,balochistan,mysticism,biosphere,holotype,symbolizes,lovecraft,photons,abkhazia,swaziland,subgroups,measurable,falkirk,valparaiso,ashok,discriminatory,rarity,tabernacle,flyweight,jalisco,westernmost,antiquarian,extracellular,margrave,colspan=9,midsummer,digestive,reversing,burgeoning,substitutes,medallist,khrushchev,guerre,folio,detonated,partido,plentiful,aggregator,medallion,infiltration,shaded,santander,fared,auctioned,permian,ramakrishna,andorra,mentors,diffraction,bukit,potentials,translucent,feminists,tiers,protracted,coburg,wreath,guelph,adventurer,he/she,vertebrate,pipelines,celsius,outbreaks,australasia,deccan,garibaldi,unionists,buildup,biochemical,reconstruct,boulders,stringent,barbed,wording,furnaces,pests,befriends,organises,popes,rizal,tentacles,cadre,tallahassee,punishments,occidental,formatted,mitigation,rulings,rubens,cascades,inducing,choctaw,volta,synagogues,movable,altarpiece,mitigate,practise,intermittently,encountering,memberships,earns,signify,retractable,amounting,pragmatic,wilfrid,dissenting,divergent,kanji,reconstituted,devonian,constitutions,levied,hendrik,starch,costal,honduran,ditches,polygon,eindhoven,superstars,salient,argus,punitive,purana,alluvial,flaps,inefficient,retracted,advantageous,quang,andersson,danville,binghamton,symbolize,conclave,shaanxi,silica,interpersonal,adept,frans,pavilions,lubbock,equip,sunken,limburg,activates,prosecutions,corinthian,venerated,shootings,retreats,parapet,orissa,riviere,animations,parodied,offline,metaphysics,bluffs,plume,piety,fruition,subsidized,steeplechase,shanxi,eurasia,angled,forecasting,suffragan,ashram,larval,labyrinth,chronicler,summaries,trailed,merges,thunderstorms,filtered,formula_19,advertisers,alpes,informatics,parti,constituting,undisputed,certifications,javascript,molten,sclerosis,rumoured,boulogne,hmong,lewes,breslau,notts,bantu,ducal,messengers,radars,nightclubs,bantamweight,carnatic,kaunas,fraternal,triggering,controversially,londonderry,visas,scarcity,offaly,uprisings,repelled,corinthians,pretext,kuomintang,kielce,empties,matriculated,pneumatic,expos,agile,treatises,midpoint,prehistory,oncology,subsets,hydra,hypertension,axioms,wabash,reiterated,swapped,achieves,premio,ageing,overture,curricula,challengers,subic,selangor,liners,frontline,shutter,validated,normalized,entertainers,molluscs,maharaj,allegation,youngstown,synth,thoroughfare,regionally,pillai,transcontinental,pedagogical,riemann,colonia,easternmost,tentatively,profiled,herefordshire,nativity,meuse,nucleotide,inhibits,huntingdon,throughput,recorders,conceding,domed,homeowners,centric,gabled,canoes,fringes,breeder,subtitled,fluoride,haplogroup,zionism,izmir,phylogeny,kharkiv,romanticism,adhesion,usaaf,delegations,lorestan,whalers,biathlon,vaulted,mathematically,pesos,skirmishes,heisman,kalamazoo,gesellschaft,launceston,interacts,quadruple,kowloon,psychoanalysis,toothed,ideologies,navigational,valence,induces,lesotho,frieze,rigging,undercarriage,explorations,spoof,eucharist,profitability,virtuoso,recitals,subterranean,sizeable,herodotus,subscriber,huxley,pivot,forewing,warring,boleslaw,bharatiya,suffixes,trois,percussionist,downturn,garrisons,philosophies,chants,mersin,mentored,dramatist,guilds,frameworks,thermodynamic,venomous,mehmed,assembling,rabbinic,hegemony,replicas,enlargement,claimant,retitled,utica,dumfries,metis,deter,assortment,tubing,afflicted,weavers,rupture,ornamentation,transept,salvaged,upkeep,callsign,rajput,stevenage,trimmed,intracellular,synchronization,consular,unfavorable,royalists,goldwyn,fasting,hussars,doppler,obscurity,currencies,amiens,acorn,tagore,townsville,gaussian,migrations,porta,anjou,graphite,seaport,monographs,gladiators,metrics,calligraphy,sculptural,swietokrzyskie,tolombeh,eredivisie,shoals,queries,carts,exempted,fiberglass,mirrored,bazar,progeny,formalized,mukherjee,professed,amazon.com,cathode,moreton,removable,mountaineers,nagano,transplantation,augustinian,steeply,epilogue,adapter,decisively,accelerating,mediaeval,substituting,tasman,devonshire,litres,enhancements,himmler,nephews,bypassing,imperfect,argentinian,reims,integrates,sochi,ascii,licences,niches,surgeries,fables,versatility,indra,footpath,afonso,crore,evaporation,encodes,shelling,conformity,simplify,updating,quotient,overt,firmware,umpires,architectures,eocene,conservatism,secretion,embroidery,f.c..,tuvalu,mosaics,shipwreck,prefectural,cohort,grievances,garnering,centerpiece,apoptosis,djibouti,bethesda,formula_20,shonen,richland,justinian,dormitories,meteorite,reliably,obtains,pedagogy,hardness,cupola,manifolds,amplification,steamers,familial,dumbarton,jerzy,genital,maidstone,salinity,grumman,signifies,presbytery,meteorology,procured,aegis,streamed,deletion,nuestra,mountaineering,accords,neuronal,khanate,grenoble,axles,dispatches,tokens,turku,auctions,propositions,planters,proclaiming,recommissioned,stravinsky,obverse,bombarded,waged,saviour,massacred,reformist,purportedly,resettlement,ravenna,embroiled,minden,revitalization,hikers,bridging,torpedoed,depletion,nizam,affectionately,latitudes,lubeck,spore,polymerase,aarhus,nazism,101st,buyout,galerie,diets,overflow,motivational,renown,brevet,deriving,melee,goddesses,demolish,amplified,tamworth,retake,brokerage,beneficiaries,henceforth,reorganised,silhouette,browsers,pollutants,peron,lichfield,encircled,defends,bulge,dubbing,flamenco,coimbatore,refinement,enshrined,grizzlies,capacitor,usefulness,evansville,interscholastic,rhodesian,bulletins,diamondbacks,rockers,platted,medalists,formosa,transporter,slabs,guadeloupe,disparate,concertos,violins,regaining,mandible,untitled,agnostic,issuance,hamiltonian,brampton,srpska,homology,downgraded,florentine,epitaph,kanye,rallying,analysed,grandstand,infinitely,antitrust,plundered,modernity,colspan=3|total,amphitheatre,doric,motorists,yemeni,carnivorous,probabilities,prelate,struts,scrapping,bydgoszcz,pancreatic,signings,predicts,compendium,ombudsman,apertura,appoints,rebbe,stereotypical,valladolid,clustered,touted,plywood,inertial,kettering,curving,d'honneur,housewives,grenadier,vandals,barbarossa,necked,waltham,reputedly,jharkhand,cistercian,pursues,viscosity,organiser,cloister,islet,stardom,moorish,himachal,strives,scripps,staggered,blasts,westwards,millimeters,angolan,hubei,agility,admirals,mordellistena,coincides,platte,vehicular,cordillera,riffs,schoolteacher,canaan,acoustics,tinged,reinforcing,concentrates,daleks,monza,selectively,musik,polynesia,exporter,reviving,macclesfield,bunkers,ballets,manors,caudal,microbiology,primes,unbroken,outcry,flocks,pakhtunkhwa,abelian,toowoomba,luminous,mould,appraisal,leuven,experimentally,interoperability,hideout,perak,specifying,knighthood,vasily,excerpt,computerized,niels,networked,byzantium,reaffirmed,geographer,obscured,fraternities,mixtures,allusion,accra,lengthened,inquest,panhandle,pigments,revolts,bluetooth,conjugate,overtaken,foray,coils,breech,streaks,impressionist,mendelssohn,intermediary,panned,suggestive,nevis,upazila,rotunda,mersey,linnaeus,anecdotes,gorbachev,viennese,exhaustive,moldavia,arcades,irrespective,orator,diminishing,predictive,cohesion,polarized,montage,avian,alienation,conus,jaffna,urbanization,seawater,extremity,editorials,scrolling,dreyfus,traverses,topographic,gunboats,extratropical,normans,correspondents,recognises,millennia,filtration,ammonium,voicing,complied,prefixes,diplomas,figurines,weakly,gated,oscillator,lucerne,embroidered,outpatient,airframe,fractional,disobedience,quarterbacks,formula_21,shinto,chiapas,epistle,leakage,pacifist,avignon,penrith,renders,mantua,screenplays,gustaf,tesco,alphabetically,rations,discharges,headland,tapestry,manipur,boolean,mediator,ebenezer,subchannel,fable,bestselling,ateneo,trademarks,recurrence,dwarfs,britannica,signifying,vikram,mediate,condensation,censuses,verbandsgemeinde,cartesian,sprang,surat,britons,chelmsford,courtenay,statistic,retina,abortions,liabilities,closures,mississauga,skyscrapers,saginaw,compounded,aristocrat,msnbc,stavanger,septa,interpretive,hinder,visibly,seeding,shutouts,irregularly,quebecois,footbridge,hydroxide,implicitly,lieutenants,simplex,persuades,midshipman,heterogeneous,officiated,crackdown,lends,tartu,altars,fractions,dissidents,tapered,modernisation,scripting,blazon,aquaculture,thermodynamics,sistan,hasidic,bellator,pavia,propagated,theorized,bedouin,transnational,mekong,chronicled,declarations,kickstarter,quotas,runtime,duquesne,broadened,clarendon,brownsville,saturation,tatars,electorates,malayan,replicated,observable,amphitheater,endorsements,referral,allentown,mormons,pantomime,eliminates,typeface,allegorical,varna,conduction,evoke,interviewer,subordinated,uyghur,landscaped,conventionally,ascend,edifice,postulated,hanja,whitewater,embarking,musicologist,tagalog,frontage,paratroopers,hydrocarbons,transliterated,nicolae,viewpoints,surrealist,asheville,falklands,hacienda,glide,opting,zimbabwean,discal,mortgages,nicaraguan,yadav,ghosh,abstracted,castilian,compositional,cartilage,intergovernmental,forfeited,importation,rapping,artes,republika,narayana,condominium,frisian,bradman,duality,marche,extremist,phosphorylation,genomes,allusions,valencian,habeas,ironworks,multiplex,harpsichord,emigrate,alternated,breda,waffen,smartphones,familiarity,regionalliga,herbaceous,piping,dilapidated,carboniferous,xviii,critiques,carcinoma,sagar,chippewa,postmodern,neapolitan,excludes,notoriously,distillation,tungsten,richness,installments,monoxide,chand,privatisation,molded,maths,projectiles,luoyang,epirus,lemma,concentric,incline,erroneous,sideline,gazetted,leopards,fibres,renovate,corrugated,unilateral,repatriation,orchestration,saeed,rockingham,loughborough,formula_22,bandleader,appellation,openness,nanotechnology,massively,tonnage,dunfermline,exposes,moored,ridership,motte,eurobasket,majoring,feats,silla,laterally,playlist,downwards,methodologies,eastbourne,daimyo,cellulose,leyton,norwalk,oblong,hibernian,opaque,insular,allegory,camogie,inactivation,favoring,masterpieces,rinpoche,serotonin,portrayals,waverley,airliner,longford,minimalist,outsourcing,excise,meyrick,qasim,organisational,synaptic,farmington,gorges,scunthorpe,zoned,tohoku,librarians,davao,decor,theatrically,brentwood,pomona,acquires,planter,capacitors,synchronous,skateboarding,coatings,turbocharged,ephraim,capitulation,scoreboard,hebrides,ensues,cereals,ailing,counterpoint,duplication,antisemitic,clique,aichi,oppressive,transcendental,incursions,rename,renumbering,powys,vestry,bitterly,neurology,supplanted,affine,susceptibility,orbiter,activating,overlaps,ecoregion,raman,canoer,darfur,microorganisms,precipitated,protruding,torun,anthropologists,rennes,kangaroos,parliamentarians,edits,littoral,archived,begum,rensselaer,microphones,ypres,empower,etruscan,wisden,montfort,calibration,isomorphic,rioting,kingship,verbally,smyrna,cohesive,canyons,fredericksburg,rahul,relativistic,micropolitan,maroons,industrialized,henchmen,uplift,earthworks,mahdi,disparity,cultured,transliteration,spiny,fragmentary,extinguished,atypical,inventors,biosynthesis,heralded,curacao,anomalies,aeroplane,surya,mangalore,maastricht,ashkenazi,fusiliers,hangzhou,emitting,monmouthshire,schwarzenegger,ramayana,peptides,thiruvananthapuram,alkali,coimbra,budding,reasoned,epithelial,harbors,rudimentary,classically,parque,ealing,crusades,rotations,riparian,pygmy,inertia,revolted,microprocessor,calendars,solvents,kriegsmarine,accademia,cheshmeh,yoruba,ardabil,mitra,genomic,notables,propagate,narrates,univision,outposts,polio,birkenhead,urinary,crocodiles,pectoral,barrymore,deadliest,rupees,chaim,protons,comical,astrophysics,unifying,formula_23,vassals,cortical,audubon,pedals,tenders,resorted,geophysical,lenders,recognising,tackling,lanarkshire,doctrinal,annan,combating,guangxi,estimating,selectors,tribunals,chambered,inhabiting,exemptions,curtailed,abbasid,kandahar,boron,bissau,150th,codenamed,wearer,whorl,adhered,subversive,famer,smelting,inserting,mogadishu,zoologist,mosul,stumps,almanac,olympiacos,stamens,participatory,cults,honeycomb,geologists,dividend,recursive,skiers,reprint,pandemic,liber,percentages,adversely,stoppage,chieftains,tubingen,southerly,overcrowding,unorganized,hangars,fulfil,hails,cantilever,woodbridge,pinus,wiesbaden,fertilization,fluorescence,enhances,plenary,troublesome,episodic,thrissur,kickboxing,allele,staffing,garda,televisions,philatelic,spacetime,bullpen,oxides,leninist,enrolling,inventive,truro,compatriot,ruskin,normative,assay,gotha,murad,illawarra,gendarmerie,strasse,mazraeh,rebounded,fanfare,liaoning,rembrandt,iranians,emirate,governs,latency,waterfowl,chairmen,katowice,aristocrats,eclipsed,sentient,sonatas,interplay,sacking,decepticons,dynamical,arbitrarily,resonant,petar,velocities,alludes,wastes,prefectures,belleville,sensibility,salvadoran,consolidating,medicaid,trainees,vivekananda,molar,porous,upload,youngster,infused,doctorates,wuhan,annihilation,enthusiastically,gamespot,kanpur,accumulating,monorail,operetta,tiling,sapporo,finns,calvinist,hydrocarbon,sparrows,orienteering,cornelis,minster,vuelta,plebiscite,embraces,panchayats,focussed,remediation,brahman,olfactory,reestablished,uniqueness,northumbria,rwandan,predominately,abode,ghats,balances,californian,uptake,bruges,inert,westerns,reprints,cairn,yarra,resurfaced,audible,rossini,regensburg,italiana,fleshy,irrigated,alerts,yahya,varanasi,marginalized,expatriates,cantonment,normandie,sahitya,directives,rounder,hulls,fictionalized,constables,inserts,hipped,potosi,navies,biologists,canteen,husbandry,augment,fortnight,assamese,kampala,o'keefe,paleolithic,bluish,promontory,consecutively,striving,niall,reuniting,dipole,friendlies,disapproved,thrived,netflix,liberian,dielectric,medway,strategist,sankt,pickups,hitters,encode,rerouted,claimants,anglesey,partitioned,cavan,flutes,reared,repainted,armaments,bowed,thoracic,balliol,piero,chaplains,dehestan,sender,junkers,sindhi,sickle,dividends,metallurgy,honorific,berths,namco,springboard,resettled,gansu,copyrighted,criticizes,utopian,bendigo,ovarian,binomial,spaceflight,oratorio,proprietors,supergroup,duplicated,foreground,strongholds,revolved,optimize,layouts,westland,hurler,anthropomorphic,excelsior,merchandising,reeds,vetoed,cryptography,hollyoaks,monash,flooring,ionian,resilience,johnstown,resolves,lawmakers,alegre,wildcards,intolerance,subculture,selector,slums,formulate,bayonet,istvan,restitution,interchangeably,awakens,rostock,serpentine,oscillation,reichstag,phenotype,recessed,piotr,annotated,preparedness,consultations,clausura,preferential,euthanasia,genoese,outcrops,freemasonry,geometrical,genesee,islets,prometheus,panamanian,thunderbolt,terraced,stara,shipwrecks,futebol,faroese,sharqi,aldermen,zeitung,unify,formula_24,humanism,syntactic,earthen,blyth,taxed,rescinded,suleiman,cymru,dwindled,vitality,superieure,resupply,adolphe,ardennes,rajiv,profiling,olympique,gestation,interfaith,milosevic,tagline,funerary,druze,silvery,plough,shrubland,relaunch,disband,nunatak,minimizing,excessively,waned,attaching,luminosity,bugle,encampment,electrostatic,minesweeper,dubrovnik,rufous,greenock,hochschule,assyrians,extracting,malnutrition,priya,attainment,anhui,connotations,predicate,seabirds,deduced,pseudonyms,gopal,plovdiv,refineries,imitated,kwazulu,terracotta,tenets,discourses,brandeis,whigs,dominions,pulmonate,landslides,tutors,determinant,richelieu,farmstead,tubercles,technicolor,hegel,redundancy,greenpeace,shortening,mules,distilled,xxiii,fundamentalist,acrylic,outbuildings,lighted,corals,signaled,transistors,cavite,austerity,76ers,exposures,dionysius,outlining,commutative,permissible,knowledgeable,howrah,assemblage,inhibited,crewmen,mbit/s,pyramidal,aberdeenshire,bering,rotates,atheism,howitzer,saone,lancet,fermented,contradicted,materiel,ofsted,numeric,uniformity,josephus,nazarene,kuwaiti,noblemen,pediment,emergent,campaigner,akademi,murcia,perugia,gallen,allsvenskan,finned,cavities,matriculation,rosters,twickenham,signatory,propel,readable,contends,artisan,flamboyant,reggio,italo,fumbles,widescreen,rectangle,centimetres,collaborates,envoys,rijeka,phonological,thinly,refractive,civilisation,reductase,cognate,dalhousie,monticello,lighthouses,jitsu,luneburg,socialite,fermi,collectible,optioned,marquee,jokingly,architecturally,kabir,concubine,nationalisation,watercolor,wicklow,acharya,pooja,leibniz,rajendra,nationalized,stalemate,bloggers,glutamate,uplands,shivaji,carolingian,bucuresti,dasht,reappears,muscat,functionally,formulations,hinged,hainan,catechism,autosomal,incremental,asahi,coeur,diversification,multilateral,fewest,recombination,finisher,harrogate,hangul,feasts,photovoltaic,paget,liquidity,alluded,incubation,applauded,choruses,malagasy,hispanics,bequest,underparts,cassava,kazimierz,gastric,eradication,mowtowr,tyrosine,archbishopric,e9e9e9,unproductive,uxbridge,hydrolysis,harbours,officio,deterministic,devonport,kanagawa,breaches,freetown,rhinoceros,chandigarh,janos,sanatorium,liberator,inequalities,agonist,hydrophobic,constructors,nagorno,snowboarding,welcomes,subscribed,iloilo,resuming,catalysts,stallions,jawaharlal,harriers,definitively,roughriders,hertford,inhibiting,elgar,randomized,incumbents,episcopate,rainforests,yangon,improperly,kemal,interpreters,diverged,uttarakhand,umayyad,phnom,panathinaikos,shabbat,diode,jiangxi,forbidding,nozzle,artistry,licensee,processions,staffs,decimated,expressionism,shingle,palsy,ontology,mahayana,maribor,sunil,hostels,edwardian,jetty,freehold,overthrew,eukaryotic,schuylkill,rawalpindi,sheath,recessive,ferenc,mandibles,berlusconi,confessor,convergent,ababa,slugging,rentals,sephardic,equivalently,collagen,markov,dynamically,hailing,depressions,sprawling,fairgrounds,indistinguishable,plutarch,pressurized,banff,coldest,braunschweig,mackintosh,sociedad,wittgenstein,tromso,airbase,lecturers,subtitle,attaches,purified,contemplated,dreamworks,telephony,prophetic,rockland,aylesbury,biscay,coherence,aleksandar,judoka,pageants,theses,homelessness,luthor,sitcoms,hinterland,fifths,derwent,privateers,enigmatic,nationalistic,instructs,superimposed,conformation,tricycle,dusan,attributable,unbeknownst,laptops,etching,archbishops,ayatollah,cranial,gharbi,interprets,lackawanna,abingdon,saltwater,tories,lender,minaj,ancillary,ranching,pembrokeshire,topographical,plagiarism,murong,marque,chameleon,assertions,infiltrated,guildhall,reverence,schenectady,formula_25,kollam,notary,mexicana,initiates,abdication,basra,theorems,ionization,dismantling,eared,censors,budgetary,numeral,verlag,excommunicated,distinguishable,quarried,cagliari,hindustan,symbolizing,watertown,descartes,relayed,enclosures,militarily,sault,devolved,dalian,djokovic,filaments,staunton,tumour,curia,villainous,decentralized,galapagos,moncton,quartets,onscreen,necropolis,brasileiro,multipurpose,alamos,comarca,jorgen,concise,mercia,saitama,billiards,entomologist,montserrat,lindbergh,commuting,lethbridge,phoenician,deviations,anaerobic,denouncing,redoubt,fachhochschule,principalities,negros,announcers,seconded,parrots,konami,revivals,approving,devotee,riyadh,overtook,morecambe,lichen,expressionist,waterline,silverstone,geffen,sternites,aspiration,behavioural,grenville,tripura,mediums,genders,pyotr,charlottesville,sacraments,programmable,ps100,shackleton,garonne,sumerian,surpass,authorizing,interlocking,lagoons,voiceless,advert,steeple,boycotted,alouettes,yosef,oxidative,sassanid,benefiting,sayyid,nauru,predetermined,idealism,maxillary,polymerization,semesters,munchen,conor,outfitted,clapham,progenitor,gheorghe,observational,recognitions,numerically,colonized,hazrat,indore,contaminants,fatality,eradicate,assyria,convocation,cameos,skillful,skoda,corfu,confucius,overtly,ramadan,wollongong,placements,d.c..,permutation,contemporaneous,voltages,elegans,universitat,samar,plunder,dwindling,neuter,antonin,sinhala,campania,solidified,stanzas,fibrous,marburg,modernize,sorcery,deutscher,florets,thakur,disruptive,infielder,disintegration,internazionale,vicariate,effigy,tripartite,corrective,klamath,environs,leavenworth,sandhurst,workmen,compagnie,hoseynabad,strabo,palisades,ordovician,sigurd,grandsons,defection,viacom,sinhalese,innovator,uncontrolled,slavonic,indexes,refrigeration,aircrew,superbike,resumption,neustadt,confrontations,arras,hindenburg,ripon,embedding,isomorphism,dwarves,matchup,unison,lofty,argos,louth,constitutionally,transitive,newington,facelift,degeneration,perceptual,aviators,enclosing,igneous,symbolically,academician,constitutionality,iso/iec,sacrificial,maturation,apprentices,enzymology,naturalistic,hajji,arthropods,abbess,vistula,scuttled,gradients,pentathlon,etudes,freedmen,melaleuca,thrice,conductive,sackville,franciscans,stricter,golds,kites,worshiped,monsignor,trios,orally,tiered,primacy,bodywork,castleford,epidemics,alveolar,chapelle,chemists,hillsboro,soulful,warlords,ngati,huguenot,diurnal,remarking,luger,motorways,gauss,jahan,cutoff,proximal,bandai,catchphrase,jonubi,ossetia,codename,codice_2,throated,itinerant,chechnya,riverfront,leela,evoked,entailed,zamboanga,rejoining,circuitry,haymarket,khartoum,feuds,braced,miyazaki,mirren,lubusz,caricature,buttresses,attrition,characterizes,widnes,evanston,materialism,contradictions,marist,midrash,gainsborough,ulithi,turkmen,vidya,escuela,patrician,inspirations,reagent,premierships,humanistic,euphrates,transitioning,belfry,zedong,adaption,kaliningrad,lobos,epics,waiver,coniferous,polydor,inductee,refitted,moraine,unsatisfactory,worsening,polygamy,rajya,nested,subgenre,broadside,stampeders,lingua,incheon,pretender,peloton,persuading,excitation,multan,predates,tonne,brackish,autoimmune,insulated,podcasts,iraqis,bodybuilding,condominiums,midlothian,delft,debtor,asymmetrical,lycaenidae,forcefully,pathogenic,tamaulipas,andaman,intravenous,advancements,senegalese,chronologically,realigned,inquirer,eusebius,dekalb,additives,shortlist,goldwater,hindustani,auditing,caterpillars,pesticide,nakhon,ingestion,lansdowne,traditionalist,northland,thunderbirds,josip,nominating,locale,ventricular,animators,verandah,epistles,surveyors,anthems,dredd,upheaval,passaic,anatolian,svalbard,associative,floodplain,taranaki,estuaries,irreducible,beginners,hammerstein,allocate,coursework,secreted,counteract,handwritten,foundational,passover,discoverer,decoding,wares,bourgeoisie,playgrounds,nazionale,abbreviations,seanad,golan,mishra,godavari,rebranding,attendances,backstory,interrupts,lettered,hasbro,ultralight,hormozgan,armee,moderne,subdue,disuse,improvisational,enrolment,persists,moderated,carinthia,hatchback,inhibitory,capitalized,anatoly,abstracts,albemarle,bergamo,insolvency,sentai,cellars,walloon,joked,kashmiri,dirac,materialized,renomination,homologous,gusts,eighteens,centrifugal,storied,baluchestan,formula_26,poincare,vettel,infuriated,gauges,streetcars,vedanta,stately,liquidated,goguryeo,swifts,accountancy,levee,acadian,hydropower,eustace,comintern,allotment,designating,torsion,molding,irritation,aerobic,halen,concerted,plantings,garrisoned,gramophone,cytoplasm,onslaught,requisitioned,relieving,genitive,centrist,jeong,espanola,dissolving,chatterjee,sparking,connaught,varese,arjuna,carpathian,empowering,meteorologist,decathlon,opioid,hohenzollern,fenced,ibiza,avionics,footscray,scrum,discounts,filament,directories,a.f.c,stiffness,quaternary,adventurers,transmits,harmonious,taizong,radiating,germantown,ejection,projectors,gaseous,nahuatl,vidyalaya,nightlife,redefined,refuted,destitute,arista,potters,disseminated,distanced,jamboree,kaohsiung,tilted,lakeshore,grained,inflicting,kreis,novelists,descendents,mezzanine,recast,fatah,deregulation,ac/dc,australis,kohgiluyeh,boreal,goths,authoring,intoxicated,nonpartisan,theodosius,pyongyang,shree,boyhood,sanfl,plenipotentiary,photosynthesis,presidium,sinaloa,honshu,texan,avenida,transmembrane,malays,acropolis,catalunya,vases,inconsistencies,methodists,quell,suisse,banat,simcoe,cercle,zealanders,discredited,equine,sages,parthian,fascists,interpolation,classifying,spinoff,yehuda,cruised,gypsum,foaled,wallachia,saraswati,imperialist,seabed,footnotes,nakajima,locales,schoolmaster,drosophila,bridgehead,immanuel,courtier,bookseller,niccolo,stylistically,portmanteau,superleague,konkani,millimetres,arboreal,thanjavur,emulation,sounders,decompression,commoners,infusion,methodological,osage,rococo,anchoring,bayreuth,formula_27,abstracting,symbolized,bayonne,electrolyte,rowed,corvettes,traversing,editorship,sampler,presidio,curzon,adirondack,swahili,rearing,bladed,lemur,pashtun,behaviours,bottling,zaire,recognisable,systematics,leeward,formulae,subdistricts,smithfield,vijaya,buoyancy,boosting,cantonal,rishi,airflow,kamakura,adana,emblems,aquifer,clustering,husayn,woolly,wineries,montessori,turntable,exponentially,caverns,espoused,pianists,vorpommern,vicenza,latterly,o'rourke,williamstown,generale,kosice,duisburg,poirot,marshy,mismanagement,mandalay,dagenham,universes,chiral,radiated,stewards,vegan,crankshaft,kyrgyz,amphibian,cymbals,infrequently,offenbach,environmentalist,repatriated,permutations,midshipmen,loudoun,refereed,bamberg,ornamented,nitric,selim,translational,dorsum,annunciation,gippsland,reflector,informational,regia,reactionary,ahmet,weathering,erlewine,legalized,berne,occupant,divas,manifests,analyzes,disproportionate,mitochondria,totalitarian,paulista,interscope,anarcho,correlate,brookfield,elongate,brunel,ordinal,precincts,volatility,equaliser,hittite,somaliland,ticketing,monochrome,ubuntu,chhattisgarh,titleholder,ranches,referendums,blooms,accommodates,merthyr,religiously,ryukyu,tumultuous,checkpoints,anode,mi'kmaq,cannonball,punctuation,remodelled,assassinations,criminology,alternates,yonge,pixar,namibian,piraeus,trondelag,hautes,lifeboats,shoal,atelier,vehemently,sadat,postcode,jainism,lycoming,undisturbed,lutherans,genomics,popmatters,tabriz,isthmian,notched,autistic,horsham,mites,conseil,bloomsbury,seung,cybertron,idris,overhauled,disbandment,idealized,goldfields,worshippers,lobbyist,ailments,paganism,herbarium,athenians,messerschmitt,faraday,entangled,'olya,untreated,criticising,howitzers,parvati,lobed,debussy,atonement,tadeusz,permeability,mueang,sepals,degli,optionally,fuelled,follies,asterisk,pristina,lewiston,congested,overpass,affixed,pleads,telecasts,stanislaus,cryptographic,friesland,hamstring,selkirk,antisubmarine,inundated,overlay,aggregates,fleur,trolleybus,sagan,ibsen,inductees,beltway,tiled,ladders,cadbury,laplace,ascetic,micronesia,conveying,bellingham,cleft,batches,usaid,conjugation,macedon,assisi,reappointed,brine,jinnah,prairies,screenwriting,oxidized,despatches,linearly,fertilizers,brazilians,absorbs,wagga,modernised,scorsese,ashraf,charlestown,esque,habitable,nizhny,lettres,tuscaloosa,esplanade,coalitions,carbohydrates,legate,vermilion,standardised,galleria,psychoanalytic,rearrangement,substation,competency,nationalised,reshuffle,reconstructions,mehdi,bougainville,receivership,contraception,enlistment,conducive,aberystwyth,solicitors,dismisses,fibrosis,montclair,homeowner,surrealism,s.h.i.e.l.d,peregrine,compilers,1790s,parentage,palmas,rzeszow,worldview,eased,svenska,housemate,bundestag,originator,enlisting,outwards,reciprocity,formula_28,carbohydrate,democratically,firefighting,romagna,acknowledgement,khomeini,carbide,quests,vedas,characteristically,guwahati,brixton,unintended,brothels,parietal,namur,sherbrooke,moldavian,baruch,milieu,undulating,laurier,entre,dijon,ethylene,abilene,heracles,paralleling,ceres,dundalk,falun,auspicious,chisinau,polarity,foreclosure,templates,ojibwe,punic,eriksson,biden,bachchan,glaciation,spitfires,norsk,nonviolent,heidegger,algonquin,capacitance,cassettes,balconies,alleles,airdate,conveys,replays,classifies,infrequent,amine,cuttings,rarer,woking,olomouc,amritsar,rockabilly,illyrian,maoist,poignant,tempore,stalinist,segmented,bandmate,mollusc,muhammed,totalled,byrds,tendered,endogenous,kottayam,aisne,oxidase,overhears,illustrators,verve,commercialization,purplish,directv,moulded,lyttelton,baptismal,captors,saracens,georgios,shorten,polity,grids,fitzwilliam,sculls,impurities,confederations,akhtar,intangible,oscillations,parabolic,harlequin,maulana,ovate,tanzanian,singularity,confiscation,qazvin,speyer,phonemes,overgrown,vicarage,gurion,undocumented,niigata,thrones,preamble,stave,interment,liiga,ataturk,aphrodite,groupe,indentured,habsburgs,caption,utilitarian,ozark,slovenes,reproductions,plasticity,serbo,dulwich,castel,barbuda,salons,feuding,lenape,wikileaks,swamy,breuning,shedding,afield,superficially,operationally,lamented,okanagan,hamadan,accolade,furthering,adolphus,fyodor,abridged,cartoonists,pinkish,suharto,cytochrome,methylation,debit,colspan=9|,refine,taoist,signalled,herding,leaved,bayan,fatherland,rampart,sequenced,negation,storyteller,occupiers,barnabas,pelicans,nadir,conscripted,railcars,prerequisite,furthered,columba,carolinas,markup,gwalior,franche,chaco,eglinton,ramparts,rangoon,metabolites,pollination,croat,televisa,holyoke,testimonial,setlist,safavid,sendai,georgians,shakespearean,galleys,regenerative,krzysztof,overtones,estado,barbary,cherbourg,obispo,sayings,composites,sainsbury,deliberation,cosmological,mahalleh,embellished,ascap,biala,pancras,calumet,grands,canvases,antigens,marianas,defenseman,approximated,seedlings,soren,stele,nuncio,immunology,testimonies,glossary,recollections,suitability,tampere,venous,cohomology,methanol,echoing,ivanovich,warmly,sterilization,imran,multiplying,whitechapel,undersea,xuanzong,tacitus,bayesian,roundhouse,correlations,rioters,molds,fiorentina,bandmates,mezzo,thani,guerilla,200th,premiums,tamils,deepwater,chimpanzees,tribesmen,selwyn,globo,turnovers,punctuated,erode,nouvelle,banbury,exponents,abolishing,helical,maimonides,endothelial,goteborg,infield,encroachment,cottonwood,mazowiecki,parable,saarbrucken,reliever,epistemology,artistes,enrich,rationing,formula_29,palmyra,subfamilies,kauai,zoran,fieldwork,arousal,creditor,friuli,celts,comoros,equated,escalation,negev,tallied,inductive,anion,netanyahu,mesoamerican,lepidoptera,aspirated,remit,westmorland,italic,crosse,vaclav,fuego,owain,balmain,venetians,ethnicities,deflected,ticino,apulia,austere,flycatcher,reprising,repressive,hauptbahnhof,subtype,ophthalmology,summarizes,eniwetok,colonisation,subspace,nymphalidae,earmarked,tempe,burnet,crests,abbots,norwegians,enlarge,ashoka,frankfort,livorno,malware,renters,singly,iliad,moresby,rookies,gustavus,affirming,alleges,legume,chekhov,studded,abdicated,suzhou,isidore,townsite,repayment,quintus,yankovic,amorphous,constructor,narrowing,industrialists,tanganyika,capitalization,connective,mughals,rarities,aerodynamics,worthing,antalya,diagnostics,shaftesbury,thracian,obstetrics,benghazi,multiplier,orbitals,livonia,roscommon,intensify,ravel,oaths,overseer,locomotion,necessities,chickasaw,strathclyde,treviso,erfurt,aortic,contemplation,accrington,markazi,predeceased,hippocampus,whitecaps,assemblyman,incursion,ethnography,extraliga,reproducing,directorship,benzene,byway,stupa,taxable,scottsdale,onondaga,favourably,countermeasures,lithuanians,thatched,deflection,tarsus,consuls,annuity,paralleled,contextual,anglian,klang,hoisted,multilingual,enacting,samaj,taoiseach,carthaginian,apologised,hydrology,entrant,seamless,inflorescences,mugabe,westerners,seminaries,wintering,penzance,mitre,sergeants,unoccupied,delimitation,discriminate,upriver,abortive,nihon,bessarabia,calcareous,buffaloes,patil,daegu,streamline,berks,chaparral,laity,conceptions,typified,kiribati,threaded,mattel,eccentricity,signified,patagonia,slavonia,certifying,adnan,astley,sedition,minimally,enumerated,nikos,goalless,walid,narendra,causa,missoula,coolant,dalek,outcrop,hybridization,schoolchildren,peasantry,afghans,confucianism,shahr,gallic,tajik,kierkegaard,sauvignon,commissar,patriarchs,tuskegee,prussians,laois,ricans,talmudic,officiating,aesthetically,baloch,antiochus,separatists,suzerainty,arafat,shading,u.s.c,chancellors,inc..,toolkit,nepenthes,erebidae,solicited,pratap,kabbalah,alchemist,caltech,darjeeling,biopic,spillway,kaiserslautern,nijmegen,bolstered,neath,pahlavi,eugenics,bureaus,retook,northfield,instantaneous,deerfield,humankind,selectivity,putative,boarders,cornhuskers,marathas,raikkonen,aliabad,mangroves,garages,gulch,karzai,poitiers,chernobyl,thane,alexios,belgrano,scion,solubility,urbanized,executable,guizhou,nucleic,tripled,equalled,harare,houseguests,potency,ghazi,repeater,overarching,regrouped,broward,ragtime,d'art,nandi,regalia,campsites,mamluk,plating,wirral,presumption,zenit,archivist,emmerdale,decepticon,carabidae,kagoshima,franconia,guarani,formalism,diagonally,submarginal,denys,walkways,punts,metrolink,hydrographic,droplets,upperside,martyred,hummingbird,antebellum,curiously,mufti,friary,chabad,czechs,shaykh,reactivity,berklee,turbonilla,tongan,sultans,woodville,unlicensed,enmity,dominicans,operculum,quarrying,watercolour,catalyzed,gatwick,'what,mesozoic,auditors,shizuoka,footballing,haldane,telemundo,appended,deducted,disseminate,o'shea,pskov,abrasive,entente,gauteng,calicut,lemurs,elasticity,suffused,scopula,staining,upholding,excesses,shostakovich,loanwords,naidu,championnat,chromatography,boasting,goaltenders,engulfed,salah,kilogram,morristown,shingles,shi'a,labourer,renditions,frantisek,jekyll,zonal,nanda,sheriffs,eigenvalues,divisione,endorsing,ushered,auvergne,cadres,repentance,freemasons,utilising,laureates,diocletian,semiconductors,o'grady,vladivostok,sarkozy,trackage,masculinity,hydroxyl,mervyn,muskets,speculations,gridiron,opportunistic,mascots,aleutian,fillies,sewerage,excommunication,borrowers,capillary,trending,sydenham,synthpop,rajah,cagayan,deportes,kedah,faure,extremism,michoacan,levski,culminates,occitan,bioinformatics,unknowingly,inciting,emulated,footpaths,piacenza,dreadnought,viceroyalty,oceanographic,scouted,combinatorial,ornithologist,cannibalism,mujahideen,independiente,cilicia,hindwing,minimized,odeon,gyorgy,rubles,purchaser,collieries,kickers,interurban,coiled,lynchburg,respondent,plzen,detractors,etchings,centering,intensification,tomography,ranjit,warblers,retelling,reinstatement,cauchy,modulus,redirected,evaluates,beginner,kalateh,perforated,manoeuvre,scrimmage,internships,megawatts,mottled,haakon,tunbridge,kalyan,summarised,sukarno,quetta,canonized,henryk,agglomeration,coahuila,diluted,chiropractic,yogyakarta,talladega,sheik,cation,halting,reprisals,sulfuric,musharraf,sympathizers,publicised,arles,lectionary,fracturing,startups,sangha,latrobe,rideau,ligaments,blockading,cremona,lichens,fabaceae,modulated,evocative,embodies,battersea,indistinct,altai,subsystem,acidity,somatic,formula_30,tariq,rationality,sortie,ashlar,pokal,cytoplasmic,valour,bangla,displacing,hijacking,spectrometry,westmeath,weill,charing,goias,revolvers,individualized,tenured,nawaz,piquet,chanted,discard,bernd,phalanx,reworking,unilaterally,subclass,yitzhak,piloting,circumvent,disregarded,semicircular,viscous,tibetans,endeavours,retaliated,cretan,vienne,workhouse,sufficiency,aurangzeb,legalization,lipids,expanse,eintracht,sanjak,megas,125th,bahraini,yakima,eukaryotes,thwart,affirmation,peloponnese,retailing,carbonyl,chairwoman,macedonians,dentate,rockaway,correctness,wealthier,metamorphic,aragonese,fermanagh,pituitary,schrodinger,evokes,spoiler,chariots,akita,genitalia,combe,confectionery,desegregation,experiential,commodores,persepolis,viejo,restorations,virtualization,hispania,printmaking,stipend,yisrael,theravada,expended,radium,tweeted,polygonal,lippe,charente,leveraged,cutaneous,fallacy,fragrant,bypasses,elaborately,rigidity,majid,majorca,kongo,plasmodium,skits,audiovisual,eerste,staircases,prompts,coulthard,northwestward,riverdale,beatrix,copyrights,prudential,communicates,mated,obscenity,asynchronous,analyse,hansa,searchlight,farnborough,patras,asquith,qarah,contours,fumbled,pasteur,redistributed,almeria,sanctuaries,jewry,israelite,clinicians,koblenz,bookshop,affective,goulburn,panelist,sikorsky,cobham,mimics,ringed,portraiture,probabilistic,girolamo,intelligible,andalusian,jalal,athenaeum,eritrean,auxiliaries,pittsburg,devolution,sangam,isolating,anglers,cronulla,annihilated,kidderminster,synthesize,popularised,theophilus,bandstand,innumerable,chagrin,retroactively,weser,multiples,birdlife,goryeo,pawnee,grosser,grappling,tactile,ahmadinejad,turboprop,erdogan,matchday,proletarian,adhering,complements,austronesian,adverts,luminaries,archeology,impressionism,conifer,sodomy,interracial,platoons,lessen,postings,pejorative,registrations,cookery,persecutions,microbes,audits,idiosyncratic,subsp,suspensions,restricts,colouring,ratify,instrumentals,nucleotides,sulla,posits,bibliotheque,diameters,oceanography,instigation,subsumed,submachine,acceptor,legation,borrows,sedge,discriminated,loaves,insurers,highgate,detectable,abandons,kilns,sportscaster,harwich,iterations,preakness,arduous,tensile,prabhu,shortwave,philologist,shareholding,vegetative,complexities,councilors,distinctively,revitalize,automaton,amassing,montreux,khanh,surabaya,nurnberg,pernambuco,cuisines,charterhouse,firsts,tercera,inhabitant,homophobia,naturalism,einar,powerplant,coruna,entertainments,whedon,rajputs,raton,democracies,arunachal,oeuvre,wallonia,jeddah,trolleybuses,evangelism,vosges,kiowa,minimise,encirclement,undertakes,emigrant,beacons,deepened,grammars,publius,preeminent,seyyed,repechage,crafting,headingley,osteopathic,lithography,hotly,bligh,inshore,betrothed,olympians,formula_31,dissociation,trivandrum,arran,petrovic,stettin,disembarked,simplification,bronzes,philo,acrobatic,jonsson,conjectured,supercharged,kanto,detects,cheeses,correlates,harmonics,lifecycle,sudamericana,reservists,decayed,elitserien,parametric,113th,dusky,hogarth,modulo,symbiotic,monopolies,discontinuation,converges,southerners,tucuman,eclipses,enclaves,emits,famicom,caricatures,artistically,levelled,mussels,erecting,mouthparts,cunard,octaves,crucible,guardia,unusable,lagrangian,droughts,ephemeral,pashto,canis,tapering,sasebo,silurian,metallurgical,outscored,evolves,reissues,sedentary,homotopy,greyhawk,reagents,inheriting,onshore,tilting,rebuffed,reusable,naturalists,basingstoke,insofar,offensives,dravidian,curators,planks,rajan,isoforms,flagstaff,preside,globular,egalitarian,linkages,biographers,goalscorers,molybdenum,centralised,nordland,jurists,ellesmere,rosberg,hideyoshi,restructure,biases,borrower,scathing,redress,tunnelling,workflow,magnates,mahendra,dissenters,plethora,transcriptions,handicrafts,keyword,xi'an,petrograd,unser,prokofiev,90deg,madan,bataan,maronite,kearny,carmarthen,termini,consulates,disallowed,rockville,bowery,fanzine,docklands,bests,prohibitions,yeltsin,selassie,naturalization,realisation,dispensary,tribeca,abdulaziz,pocahontas,stagnation,pamplona,cuneiform,propagating,subsurface,christgau,epithelium,schwerin,lynching,routledge,hanseatic,upanishad,glebe,yugoslavian,complicity,endowments,girona,mynetworktv,entomology,plinth,ba'ath,supercup,torus,akkadian,salted,englewood,commandery,belgaum,prefixed,colorless,dartford,enthroned,caesarea,nominative,sandown,safeguards,hulled,formula_32,leamington,dieppe,spearhead,generalizations,demarcation,llanelli,masque,brickwork,recounting,sufism,strikingly,petrochemical,onslow,monologues,emigrating,anderlecht,sturt,hossein,sakhalin,subduction,novices,deptford,zanjan,airstrikes,coalfield,reintroduction,timbaland,hornby,messianic,stinging,universalist,situational,radiocarbon,strongman,rowling,saloons,traffickers,overran,fribourg,cambrai,gravesend,discretionary,finitely,archetype,assessor,pilipinas,exhumed,invocation,interacted,digitized,timisoara,smelter,teton,sexism,precepts,srinagar,pilsudski,carmelite,hanau,scoreline,hernando,trekking,blogging,fanbase,wielded,vesicles,nationalization,banja,rafts,motoring,luang,takeda,girder,stimulates,histone,sunda,nanoparticles,attains,jumpers,catalogued,alluding,pontus,ancients,examiners,shinkansen,ribbentrop,reimbursement,pharmacological,ramat,stringed,imposes,cheaply,transplanted,taiping,mizoram,looms,wallabies,sideman,kootenay,encased,sportsnet,revolutionized,tangier,benthic,runic,pakistanis,heatseekers,shyam,mishnah,presbyterians,stadt,sutras,straddles,zoroastrian,infer,fueling,gymnasts,ofcom,gunfight,journeyman,tracklist,oshawa,ps500,pa'in,mackinac,xiongnu,mississippian,breckinridge,freemason,bight,autoroute,liberalization,distantly,thrillers,solomons,presumptive,romanization,anecdotal,bohemians,unpaved,milder,concurred,spinners,alphabets,strenuous,rivieres,kerrang,mistreatment,dismounted,intensively,carlist,dancehall,shunting,pluralism,trafficked,brokered,bonaventure,bromide,neckar,designates,malian,reverses,sotheby,sorghum,serine,environmentalists,languedoc,consulship,metering,bankstown,handlers,militiamen,conforming,regularity,pondicherry,armin,capsized,consejo,capitalists,drogheda,granular,purged,acadians,endocrine,intramural,elicit,terns,orientations,miklos,omitting,apocryphal,slapstick,brecon,pliocene,affords,typography,emigre,tsarist,tomasz,beset,nishi,necessitating,encyclical,roleplaying,journeyed,inflow,sprints,progressives,novosibirsk,cameroonian,ephesus,speckled,kinshasa,freiherr,burnaby,dalmatian,torrential,rigor,renegades,bhakti,nurburgring,cosimo,convincingly,reverting,visayas,lewisham,charlottetown,charadriiformesfamily,transferable,jodhpur,converters,deepening,camshaft,underdeveloped,protease,polonia,uterine,quantify,tobruk,dealerships,narasimha,fortran,inactivity,1780s,victors,categorised,naxos,workstation,skink,sardinian,chalice,precede,dammed,sondheim,phineas,tutored,sourcing,uncompromising,placer,tyneside,courtiers,proclaims,pharmacies,hyogo,booksellers,sengoku,kursk,spectrometer,countywide,wielkopolski,bobsleigh,shetty,llywelyn,consistory,heretics,guinean,cliches,individualism,monolithic,imams,usability,bursa,deliberations,railings,torchwood,inconsistency,balearic,stabilizer,demonstrator,facet,radioactivity,outboard,educates,d'oyly,heretical,handover,jurisdictional,shockwave,hispaniola,conceptually,routers,unaffiliated,trentino,formula_33,cypriots,intervenes,neuchatel,formulating,maggiore,delisted,alcohols,thessaly,potable,estimator,suborder,fluency,mimicry,clergymen,infrastructures,rivals.com,baroda,subplot,majlis,plano,clinching,connotation,carinae,savile,intercultural,transcriptional,sandstones,ailerons,annotations,impresario,heinkel,scriptural,intermodal,astrological,ribbed,northeastward,posited,boers,utilise,kalmar,phylum,breakwater,skype,textured,guideline,azeri,rimini,massed,subsidence,anomalous,wolfsburg,polyphonic,accrediting,vodacom,kirov,captaining,kelantan,logie,fervent,eamon,taper,bundeswehr,disproportionately,divination,slobodan,pundits,hispano,kinetics,reunites,makati,ceasing,statistician,amending,chiltern,eparchy,riverine,melanoma,narragansett,pagans,raged,toppled,breaching,zadar,holby,dacian,ochre,velodrome,disparities,amphoe,sedans,webpage,williamsport,lachlan,groton,baring,swastika,heliport,unwillingness,razorbacks,exhibitors,foodstuffs,impacting,tithe,appendages,dermot,subtypes,nurseries,balinese,simulating,stary,remakes,mundi,chautauqua,geologically,stockade,hakka,dilute,kalimantan,pahang,overlapped,fredericton,baha'u'llah,jahangir,damping,benefactors,shomali,triumphal,cieszyn,paradigms,shielded,reggaeton,maharishi,zambian,shearing,golestan,mirroring,partitioning,flyover,songbook,incandescent,merrimack,huguenots,sangeet,vulnerabilities,trademarked,drydock,tantric,honoris,queenstown,labelling,iterative,enlists,statesmen,anglicans,herge,qinghai,burgundian,islami,delineated,zhuge,aggregated,banknote,qatari,suitably,tapestries,asymptotic,charleroi,majorities,pyramidellidae,leanings,climactic,tahir,ramsar,suppressor,revisionist,trawler,ernakulam,penicillium,categorization,slits,entitlement,collegium,earths,benefice,pinochet,puritans,loudspeaker,stockhausen,eurocup,roskilde,alois,jaroslav,rhondda,boutiques,vigor,neurotransmitter,ansar,malden,ferdinando,sported,relented,intercession,camberwell,wettest,thunderbolts,positional,oriel,cloverleaf,penalized,shoshone,rajkumar,completeness,sharjah,chromosomal,belgians,woolen,ultrasonic,sequentially,boleyn,mordella,microsystems,initiator,elachista,mineralogy,rhododendron,integrals,compostela,hamza,sawmills,stadio,berlioz,maidens,stonework,yachting,tappeh,myocardial,laborer,workstations,costumed,nicaea,lanark,roundtable,mashhad,nablus,algonquian,stuyvesant,sarkar,heroines,diwan,laments,intonation,intrigues,almaty,feuded,grandes,algarve,rehabilitate,macrophages,cruciate,dismayed,heuristic,eliezer,kozhikode,covalent,finalised,dimorphism,yaroslavl,overtaking,leverkusen,middlebury,feeders,brookings,speculates,insoluble,lodgings,jozsef,cysteine,shenyang,habilitation,spurious,brainchild,mtdna,comique,albedo,recife,partick,broadening,shahi,orientated,himalaya,swabia,palme,mennonites,spokeswoman,conscripts,sepulchre,chartres,eurozone,scaffold,invertebrate,parishad,bagan,heian,watercolors,basse,supercomputer,commences,tarragona,plainfield,arthurian,functor,identically,murex,chronicling,pressings,burrowing,histoire,guayaquil,goalkeeping,differentiable,warburg,machining,aeneas,kanawha,holocene,ramesses,reprisal,qingdao,avatars,turkestan,cantatas,besieging,repudiated,teamsters,equipping,hydride,ahmadiyya,euston,bottleneck,computations,terengganu,kalinga,stela,rediscovery,'this,azhar,stylised,karelia,polyethylene,kansai,motorised,lounges,normalization,calculators,1700s,goalkeepers,unfolded,commissary,cubism,vignettes,multiverse,heaters,briton,sparingly,childcare,thorium,plock,riksdag,eunuchs,catalysis,limassol,perce,uncensored,whitlam,ulmus,unites,mesopotamian,refraction,biodiesel,forza,fulda,unseated,mountbatten,shahrak,selenium,osijek,mimicking,antimicrobial,axons,simulcasting,donizetti,swabian,sportsmen,hafiz,neared,heraclius,locates,evaded,subcarpathian,bhubaneswar,negeri,jagannath,thaksin,aydin,oromo,lateran,goldsmiths,multiculturalism,cilia,mihai,evangelists,lorient,qajar,polygons,vinod,mechanised,anglophone,prefabricated,mosses,supervillain,airliners,biofuels,iodide,innovators,valais,wilberforce,logarithm,intelligentsia,dissipation,sanctioning,duchies,aymara,porches,simulators,mostar,telepathic,coaxial,caithness,burghs,fourths,stratification,joaquim,scribes,meteorites,monarchist,germination,vries,desiring,replenishment,istria,winemaking,tammany,troupes,hetman,lanceolate,pelagic,triptych,primeira,scant,outbound,hyphae,denser,bentham,basie,normale,executes,ladislaus,kontinental,herat,cruiserweight,activision,customization,manoeuvres,inglewood,northwood,waveform,investiture,inpatient,alignments,kiryat,rabat,archimedes,ustad,monsanto,archetypal,kirkby,sikhism,correspondingly,catskill,overlaid,petrels,widowers,unicameral,federalists,metalcore,gamerankings,mussel,formula_34,lymphocytes,cystic,southgate,vestiges,immortals,kalam,strove,amazons,pocono,sociologists,sopwith,adheres,laurens,caregivers,inspecting,transylvanian,rebroadcast,rhenish,miserables,pyrams,blois,newtonian,carapace,redshirt,gotland,nazir,unilever,distortions,linebackers,federalism,mombasa,lumen,bernoulli,favouring,aligarh,denounce,steamboats,dnieper,stratigraphic,synths,bernese,umass,icebreaker,guanajuato,heisenberg,boldly,diodes,ladakh,dogmatic,scriptwriter,maritimes,battlestar,symposia,adaptable,toluca,bhavan,nanking,ieyasu,picardy,soybean,adalbert,brompton,deutsches,brezhnev,glandular,laotian,hispanicized,ibadan,personification,dalit,yamuna,regio,dispensed,yamagata,zweibrucken,revising,fandom,stances,participle,flavours,khitan,vertebral,crores,mayaguez,dispensation,guntur,undefined,harpercollins,unionism,meena,leveling,philippa,refractory,telstra,judea,attenuation,pylons,elaboration,elegy,edging,gracillariidae,residencies,absentia,reflexive,deportations,dichotomy,stoves,sanremo,shimon,menachem,corneal,conifers,mordellidae,facsimile,diagnoses,cowper,citta,viticulture,divisive,riverview,foals,mystics,polyhedron,plazas,airspeed,redgrave,motherland,impede,multiplicity,barrichello,airships,pharmacists,harvester,clays,payloads,differentiating,popularize,caesars,tunneling,stagnant,circadian,indemnity,sensibilities,musicology,prefects,serfs,metra,lillehammer,carmarthenshire,kiosks,welland,barbican,alkyl,tillandsia,gatherers,asociacion,showings,bharati,brandywine,subversion,scalable,pfizer,dawla,barium,dardanelles,nsdap,konig,ayutthaya,hodgkin,sedimentation,completions,purchasers,sponsorships,maximizing,banked,taoism,minot,enrolls,fructose,aspired,capuchin,outages,artois,carrollton,totality,osceola,pawtucket,fontainebleau,converged,queretaro,competencies,botha,allotments,sheaf,shastri,obliquely,banding,catharines,outwardly,monchengladbach,driest,contemplative,cassini,ranga,pundit,kenilworth,tiananmen,disulfide,formula_35,townlands,codice_3,looping,caravans,rachmaninoff,segmentation,fluorine,anglicised,gnostic,dessau,discern,reconfigured,altrincham,rebounding,battlecruiser,ramblers,1770s,convective,triomphe,miyagi,mourners,instagram,aloft,breastfeeding,courtyards,folkestone,changsha,kumamoto,saarland,grayish,provisionally,appomattox,uncial,classicism,mahindra,elapsed,supremes,monophyletic,cautioned,formula_36,noblewoman,kernels,sucre,swaps,bengaluru,grenfell,epicenter,rockhampton,worshipful,licentiate,metaphorical,malankara,amputated,wattle,palawan,tankobon,nobunaga,polyhedra,transduction,jilin,syrians,affinities,fluently,emanating,anglicized,sportscar,botanists,altona,dravida,chorley,allocations,kunming,luanda,premiering,outlived,mesoamerica,lingual,dissipating,impairments,attenborough,balustrade,emulator,bakhsh,cladding,increments,ascents,workington,qal'eh,winless,categorical,petrel,emphasise,dormer,toros,hijackers,telescopic,solidly,jankovic,cession,gurus,madoff,newry,subsystems,northside,talib,englishmen,farnese,holographic,electives,argonne,scrivener,predated,brugge,nauvoo,catalyses,soared,siddeley,graphically,powerlifting,funicular,sungai,coercive,fusing,uncertainties,locos,acetic,diverge,wedgwood,dressings,tiebreaker,didactic,vyacheslav,acreage,interplanetary,battlecruisers,sunbury,alkaloids,hairpin,automata,wielkie,interdiction,plugins,monkees,nudibranch,esporte,approximations,disabling,powering,characterisation,ecologically,martinsville,termen,perpetuated,lufthansa,ascendancy,motherboard,bolshoi,athanasius,prunus,dilution,invests,nonzero,mendocino,charan,banque,shaheed,counterculture,unita,voivode,hospitalization,vapour,supermarine,resistor,steppes,osnabruck,intermediates,benzodiazepines,sunnyside,privatized,geopolitical,ponta,beersheba,kievan,embody,theoretic,sangh,cartographer,blige,rotors,thruway,battlefields,discernible,demobilized,broodmare,colouration,sagas,policymakers,serialization,augmentation,hoare,frankfurter,transnistria,kinases,detachable,generational,converging,antiaircraft,khaki,bimonthly,coadjutor,arkhangelsk,kannur,buffers,livonian,northwich,enveloped,cysts,yokozuna,herne,beeching,enron,virginian,woollen,excepting,competitively,outtakes,recombinant,hillcrest,clearances,pathe,cumbersome,brasov,u.s.a,likud,christiania,cruciform,hierarchies,wandsworth,lupin,resins,voiceover,sitar,electrochemical,mediacorp,typhus,grenadiers,hepatic,pompeii,weightlifter,bosniak,oxidoreductase,undersecretary,rescuers,ranji,seleucid,analysing,exegesis,tenancy,toure,kristiansand,110th,carillon,minesweepers,poitou,acceded,palladian,redevelop,naismith,rifled,proletariat,shojo,hackensack,harvests,endpoint,kuban,rosenborg,stonehenge,authorisation,jacobean,revocation,compatriots,colliding,undetermined,okayama,acknowledgment,angelou,fresnel,chahar,ethereal,mg/kg,emmet,mobilised,unfavourable,cultura,characterizing,parsonage,skeptics,expressways,rabaul,medea,guardsmen,visakhapatnam,caddo,homophobic,elmwood,encircling,coexistence,contending,seljuk,mycologist,infertility,moliere,insolvent,covenants,underpass,holme,landesliga,workplaces,delinquency,methamphetamine,contrived,tableau,tithes,overlying,usurped,contingents,spares,oligocene,molde,beatification,mordechai,balloting,pampanga,navigators,flowered,debutant,codec,orogeny,newsletters,solon,ambivalent,ubisoft,archdeaconry,harpers,kirkus,jabal,castings,kazhagam,sylhet,yuwen,barnstaple,amidships,causative,isuzu,watchtower,granules,canaveral,remuneration,insurer,payout,horizonte,integrative,attributing,kiwis,skanderbeg,asymmetry,gannett,urbanism,disassembled,unaltered,precluded,melodifestivalen,ascends,plugin,gurkha,bisons,stakeholder,industrialisation,abbotsford,sextet,bustling,uptempo,slavia,choreographers,midwives,haram,javed,gazetteer,subsection,natively,weighting,lysine,meera,redbridge,muchmusic,abruzzo,adjoins,unsustainable,foresters,kbit/s,cosmopterigidae,secularism,poetics,causality,phonograph,estudiantes,ceausescu,universitario,adjoint,applicability,gastropods,nagaland,kentish,mechelen,atalanta,woodpeckers,lombards,gatineau,romansh,avraham,acetylcholine,perturbation,galois,wenceslaus,fuzhou,meandering,dendritic,sacristy,accented,katha,therapeutics,perceives,unskilled,greenhouses,analogues,chaldean,timbre,sloped,volodymyr,sadiq,maghreb,monogram,rearguard,caucuses,mures,metabolite,uyezd,determinism,theosophical,corbet,gaels,disruptions,bicameral,ribosomal,wolseley,clarksville,watersheds,tarsi,radon,milanese,discontinuous,aristotelian,whistleblower,representational,hashim,modestly,localised,atrial,hazara,ravana,troyes,appointees,rubus,morningside,amity,aberdare,ganglia,wests,zbigniew,aerobatic,depopulated,corsican,introspective,twinning,hardtop,shallower,cataract,mesolithic,emblematic,graced,lubrication,republicanism,voronezh,bastions,meissen,irkutsk,oboes,hokkien,sprites,tenet,individualist,capitulated,oakville,dysentery,orientalist,hillsides,keywords,elicited,incised,lagging,apoel,lengthening,attractiveness,marauders,sportswriter,decentralization,boltzmann,contradicts,draftsman,precipitate,solihull,norske,consorts,hauptmann,riflemen,adventists,syndromes,demolishing,customize,continuo,peripherals,seamlessly,linguistically,bhushan,orphanages,paraul,lessened,devanagari,quarto,responders,patronymic,riemannian,altoona,canonization,honouring,geodetic,exemplifies,republica,enzymatic,porters,fairmount,pampa,sufferers,kamchatka,conjugated,coachella,uthman,repositories,copious,headteacher,awami,phoneme,homomorphism,franconian,moorland,davos,quantified,kamloops,quarks,mayoralty,weald,peacekeepers,valerian,particulate,insiders,perthshire,caches,guimaraes,piped,grenadines,kosciuszko,trombonist,artemisia,covariance,intertidal,soybeans,beatified,ellipse,fruiting,deafness,dnipropetrovsk,accrued,zealous,mandala,causation,junius,kilowatt,bakeries,montpelier,airdrie,rectified,bungalows,toleration,debian,pylon,trotskyist,posteriorly,two-and-a-half,herbivorous,islamists,poetical,donne,wodehouse,frome,allium,assimilate,phonemic,minaret,unprofitable,darpa,untenable,leaflet,bitcoin,zahir,thresholds,argentino,jacopo,bespoke,stratified,wellbeing,shiite,basaltic,timberwolves,secrete,taunts,marathons,isomers,carre,consecrators,penobscot,pitcairn,sakha,crosstown,inclusions,impassable,fenders,indre,uscgc,jordi,retinue,logarithmic,pilgrimages,railcar,cashel,blackrock,macroscopic,aligning,tabla,trestle,certify,ronson,palps,dissolves,thickened,silicate,taman,walsingham,hausa,lowestoft,rondo,oleksandr,cuyahoga,retardation,countering,cricketing,holborn,identifiers,hells,geophysics,infighting,sculpting,balaji,webbed,irradiation,runestone,trusses,oriya,sojourn,forfeiture,colonize,exclaimed,eucharistic,lackluster,glazing,northridge,gutenberg,stipulates,macroeconomic,priori,outermost,annular,udinese,insulating,headliner,godel,polytope,megalithic,salix,sharapova,derided,muskegon,braintree,plateaus,confers,autocratic,isomer,interstitial,stamping,omits,kirtland,hatchery,evidences,intifada,111th,podgorica,capua,motivating,nuneaton,jakub,korsakov,amitabh,mundial,monrovia,gluten,predictor,marshalling,d'orleans,levers,touchscreen,brantford,fricative,banishment,descendent,antagonism,ludovico,loudspeakers,formula_37,livelihoods,manassas,steamships,dewsbury,uppermost,humayun,lures,pinnacles,dependents,lecce,clumps,observatories,paleozoic,dedicating,samiti,draughtsman,gauls,incite,infringing,nepean,pythagorean,convents,triumvirate,seigneur,gaiman,vagrant,fossa,byproduct,serrated,renfrewshire,sheltering,achaemenid,dukedom,catchers,sampdoria,platelet,bielefeld,fluctuating,phenomenology,strikeout,ethnology,prospectors,woodworking,tatra,wildfires,meditations,agrippa,fortescue,qureshi,wojciech,methyltransferase,accusative,saatchi,amerindian,volcanism,zeeland,toyama,vladimirovich,allege,polygram,redox,budgeted,advisories,nematode,chipset,starscream,tonbridge,hardening,shales,accompanist,paraded,phonographic,whitefish,sportive,audiobook,kalisz,hibernation,latif,duels,ps200,coxeter,nayak,safeguarding,cantabria,minesweeping,zeiss,dunams,catholicos,sawtooth,ontological,nicobar,bridgend,unclassified,intrinsically,hanoverian,rabbitohs,kenseth,alcalde,northumbrian,raritan,septuagint,presse,sevres,origen,dandenong,peachtree,intersected,impeded,usages,hippodrome,novara,trajectories,customarily,yardage,inflected,yanow,kalan,taverns,liguria,librettist,intermarriage,1760s,courant,gambier,infanta,ptolemaic,ukulele,haganah,sceptical,manchukuo,plexus,implantation,hilal,intersex,efficiencies,arbroath,hagerstown,adelphi,diario,marais,matti,lifes,coining,modalities,divya,bletchley,conserving,ivorian,mithridates,generative,strikeforce,laymen,toponymy,pogrom,satya,meticulously,agios,dufferin,yaakov,fortnightly,cargoes,deterrence,prefrontal,przemysl,mitterrand,commemorations,chatsworth,gurdwara,abuja,chakraborty,badajoz,geometries,artiste,diatonic,ganglion,presides,marymount,nanak,cytokines,feudalism,storks,rowers,widens,politico,evangelicals,assailants,pittsfield,allowable,bijapur,telenovelas,dichomeris,glenelg,herbivores,keita,inked,radom,fundraisers,constantius,boheme,portability,komnenos,crystallography,derrida,moderates,tavistock,fateh,spacex,disjoint,bristles,commercialized,interwoven,empirically,regius,bulacan,newsday,showa,radicalism,yarrow,pleura,sayed,structuring,cotes,reminiscences,acetyl,edicts,escalators,aomori,encapsulated,legacies,bunbury,placings,fearsome,postscript,powerfully,keighley,hildesheim,amicus,crevices,deserters,benelux,aurangabad,freeware,ioannis,carpathians,chirac,seceded,prepaid,landlocked,naturalised,yanukovych,soundscan,blotch,phenotypic,determinants,twente,dictatorial,giessen,composes,recherche,pathophysiology,inventories,ayurveda,elevating,gravestone,degeneres,vilayet,popularizing,spartanburg,bloemfontein,previewed,renunciation,genotype,ogilvy,tracery,blacklisted,emissaries,diploid,disclosures,tupolev,shinjuku,antecedents,pennine,braganza,bhattacharya,countable,spectroscopic,ingolstadt,theseus,corroborated,compounding,thrombosis,extremadura,medallions,hasanabad,lambton,perpetuity,glycol,besancon,palaiologos,pandey,caicos,antecedent,stratum,laserdisc,novitiate,crowdfunding,palatal,sorceress,dassault,toughness,celle,cezanne,vientiane,tioga,hander,crossbar,gisborne,cursor,inspectorate,serif,praia,sphingidae,nameplate,psalter,ivanovic,sitka,equalised,mutineers,sergius,outgrowth,creationism,haredi,rhizomes,predominate,undertakings,vulgate,hydrothermal,abbeville,geodesic,kampung,physiotherapy,unauthorised,asteraceae,conservationist,minoan,supersport,mohammadabad,cranbrook,mentorship,legitimately,marshland,datuk,louvain,potawatomi,carnivores,levies,lyell,hymnal,regionals,tinto,shikoku,conformal,wanganui,beira,lleida,standstill,deloitte,formula_40,corbusier,chancellery,mixtapes,airtime,muhlenberg,formula_39,bracts,thrashers,prodigious,gironde,chickamauga,uyghurs,substitutions,pescara,batangas,gregarious,gijon,paleo,mathura,pumas,proportionally,hawkesbury,yucca,kristiania,funimation,fluted,eloquence,mohun,aftermarket,chroniclers,futurist,nonconformist,branko,mannerisms,lesnar,opengl,altos,retainers,ashfield,shelbourne,sulaiman,divisie,gwent,locarno,lieder,minkowski,bivalve,redeployed,cartography,seaway,bookings,decays,ostend,antiquaries,pathogenesis,formula_38,chrysalis,esperance,valli,motogp,homelands,bridged,bloor,ghazal,vulgaris,baekje,prospector,calculates,debtors,hesperiidae,titian,returner,landgrave,frontenac,kelowna,pregame,castelo,caius,canoeist,watercolours,winterthur,superintendents,dissonance,dubstep,adorn,matic,salih,hillel,swordsman,flavoured,emitter,assays,monongahela,deeded,brazzaville,sufferings,babylonia,fecal,umbria,astrologer,gentrification,frescos,phasing,zielona,ecozone,candido,manoj,quadrilateral,gyula,falsetto,prewar,puntland,infinitive,contraceptive,bakhtiari,ohrid,socialization,tailplane,evoking,havelock,macapagal,plundering,104th,keynesian,templars,phrasing,morphologically,czestochowa,humorously,catawba,burgas,chiswick,ellipsoid,kodansha,inwards,gautama,katanga,orthopaedic,heilongjiang,sieges,outsourced,subterminal,vijayawada,hares,oration,leitrim,ravines,manawatu,cryogenic,tracklisting,about.com,ambedkar,degenerated,hastened,venturing,lobbyists,shekhar,typefaces,northcote,rugen,'good,ornithology,asexual,hemispheres,unsupported,glyphs,spoleto,epigenetic,musicianship,donington,diogo,kangxi,bisected,polymorphism,megawatt,salta,embossed,cheetahs,cruzeiro,unhcr,aristide,rayleigh,maturing,indonesians,noire,llano,ffffff,camus,purges,annales,convair,apostasy,algol,phage,apaches,marketers,aldehyde,pompidou,kharkov,forgeries,praetorian,divested,retrospectively,gornji,scutellum,bitumen,pausanias,magnification,imitations,nyasaland,geographers,floodlights,athlone,hippolyte,expositions,clarinetist,razak,neutrinos,rotax,sheykh,plush,interconnect,andalus,cladogram,rudyard,resonator,granby,blackfriars,placido,windscreen,sahel,minamoto,haida,cations,emden,blackheath,thematically,blacklist,pawel,disseminating,academical,undamaged,raytheon,harsher,powhatan,ramachandran,saddles,paderborn,capping,zahra,prospecting,glycine,chromatin,profane,banska,helmand,okinawan,dislocation,oscillators,insectivorous,foyle,gilgit,autonomic,tuareg,sluice,pollinated,multiplexed,granary,narcissus,ranchi,staines,nitra,goalscoring,midwifery,pensioners,algorithmic,meetinghouse,biblioteca,besar,narva,angkor,predate,lohan,cyclical,detainee,occipital,eventing,faisalabad,dartmoor,kublai,courtly,resigns,radii,megachilidae,cartels,shortfall,xhosa,unregistered,benchmarks,dystopian,bulkhead,ponsonby,jovanovic,accumulates,papuan,bhutanese,intuitively,gotaland,headliners,recursion,dejan,novellas,diphthongs,imbued,withstood,analgesic,amplify,powertrain,programing,maidan,alstom,affirms,eradicated,summerslam,videogame,molla,severing,foundered,gallium,atmospheres,desalination,shmuel,howmeh,catolica,bossier,reconstructing,isolates,lyase,tweets,unconnected,tidewater,divisible,cohorts,orebro,presov,furnishing,folklorist,simplifying,centrale,notations,factorization,monarchies,deepen,macomb,facilitation,hennepin,declassified,redrawn,microprocessors,preliminaries,enlarging,timeframe,deutschen,shipbuilders,patiala,ferrous,aquariums,genealogies,vieux,unrecognized,bridgwater,tetrahedral,thule,resignations,gondwana,registries,agder,dataset,felled,parva,analyzer,worsen,coleraine,columella,blockaded,polytechnique,reassembled,reentry,narvik,greys,nigra,knockouts,bofors,gniezno,slotted,hamasaki,ferrers,conferring,thirdly,domestication,photojournalist,universality,preclude,ponting,halved,thereupon,photosynthetic,ostrava,mismatch,pangasinan,intermediaries,abolitionists,transited,headings,ustase,radiological,interconnection,dabrowa,invariants,honorius,preferentially,chantilly,marysville,dialectical,antioquia,abstained,gogol,dirichlet,muricidae,symmetries,reproduces,brazos,fatwa,bacillus,ketone,paribas,chowk,multiplicative,dermatitis,mamluks,devotes,adenosine,newbery,meditative,minefields,inflection,oxfam,conwy,bystrica,imprints,pandavas,infinitesimal,conurbation,amphetamine,reestablish,furth,edessa,injustices,frankston,serjeant,4x200,khazar,sihanouk,longchamp,stags,pogroms,coups,upperparts,endpoints,infringed,nuanced,summing,humorist,pacification,ciaran,jamaat,anteriorly,roddick,springboks,faceted,hypoxia,rigorously,cleves,fatimid,ayurvedic,tabled,ratna,senhora,maricopa,seibu,gauguin,holomorphic,campgrounds,amboy,coordinators,ponderosa,casemates,ouachita,nanaimo,mindoro,zealander,rimsky,cluny,tomaszow,meghalaya,caetano,tilak,roussillon,landtag,gravitation,dystrophy,cephalopods,trombones,glens,killarney,denominated,anthropogenic,pssas,roubaix,carcasses,montmorency,neotropical,communicative,rabindranath,ordinated,separable,overriding,surged,sagebrush,conciliation,codice_4,durrani,phosphatase,qadir,votive,revitalized,taiyuan,tyrannosaurus,graze,slovaks,nematodes,environmentalism,blockhouse,illiteracy,schengen,ecotourism,alternation,conic,wields,hounslow,blackfoot,kwame,ambulatory,volhynia,hordaland,croton,piedras,rohit,drava,conceptualized,birla,illustrative,gurgaon,barisal,tutsi,dezong,nasional,polje,chanson,clarinets,krasnoyarsk,aleksandrovich,cosmonaut,d'este,palliative,midseason,silencing,wardens,durer,girders,salamanders,torrington,supersonics,lauda,farid,circumnavigation,embankments,funnels,bajnoksag,lorries,cappadocia,jains,warringah,retirees,burgesses,equalization,cusco,ganesan,algal,amazonian,lineups,allocating,conquerors,usurper,mnemonic,predating,brahmaputra,ahmadabad,maidenhead,numismatic,subregion,encamped,reciprocating,freebsd,irgun,tortoises,governorates,zionists,airfoil,collated,ajmer,fiennes,etymological,polemic,chadian,clerestory,nordiques,fluctuated,calvados,oxidizing,trailhead,massena,quarrels,dordogne,tirunelveli,pyruvate,pulsed,athabasca,sylar,appointee,serer,japonica,andronikos,conferencing,nicolaus,chemin,ascertained,incited,woodbine,helices,hospitalised,emplacements,to/from,orchestre,tyrannical,pannonia,methodism,pop/rock,shibuya,berbers,despot,seaward,westpac,separator,perpignan,alamein,judeo,publicize,quantization,ethniki,gracilis,menlo,offside,oscillating,unregulated,succumbing,finnmark,metrical,suleyman,raith,sovereigns,bundesstrasse,kartli,fiduciary,darshan,foramen,curler,concubines,calvinism,larouche,bukhara,sophomores,mohanlal,lutheranism,monomer,eamonn,'black,uncontested,immersive,tutorials,beachhead,bindings,permeable,postulates,comite,transformative,indiscriminate,hofstra,associacao,amarna,dermatology,lapland,aosta,babur,unambiguous,formatting,schoolboys,gwangju,superconducting,replayed,adherent,aureus,compressors,forcible,spitsbergen,boulevards,budgeting,nossa,annandale,perumal,interregnum,sassoon,kwajalein,greenbrier,caldas,triangulation,flavius,increment,shakhtar,nullified,pinfall,nomen,microfinance,depreciation,cubist,steeper,splendour,gruppe,everyman,chasers,campaigners,bridle,modality,percussive,darkly,capes,velar,picton,triennial,factional,padang,toponym,betterment,norepinephrine,112th,estuarine,diemen,warehousing,morphism,ideologically,pairings,immunization,crassus,exporters,sefer,flocked,bulbous,deseret,booms,calcite,bohol,elven,groot,pulau,citigroup,wyeth,modernizing,layering,pastiche,complies,printmaker,condenser,theropod,cassino,oxyrhynchus,akademie,trainings,lowercase,coxae,parte,chetniks,pentagonal,keselowski,monocoque,morsi,reticulum,meiosis,clapboard,recoveries,tinge,an/fps,revista,sidon,livre,epidermis,conglomerates,kampong,congruent,harlequins,tergum,simplifies,epidemiological,underwriting,tcp/ip,exclusivity,multidimensional,mysql,columbine,ecologist,hayat,sicilies,levees,handset,aesop,usenet,pacquiao,archiving,alexandrian,compensatory,broadsheet,annotation,bahamian,d'affaires,interludes,phraya,shamans,marmara,customizable,immortalized,ambushes,chlorophyll,diesels,emulsion,rheumatoid,voluminous,screenwriters,tailoring,sedis,runcorn,democratization,bushehr,anacostia,constanta,antiquary,sixtus,radiate,advaita,antimony,acumen,barristers,reichsbahn,ronstadt,symbolist,pasig,cursive,secessionist,afrikaner,munnetra,inversely,adsorption,syllabic,moltke,idioms,midline,olimpico,diphosphate,cautions,radziwill,mobilisation,copelatus,trawlers,unicron,bhaskar,financiers,minimalism,derailment,marxists,oireachtas,abdicate,eigenvalue,zafar,vytautas,ganguly,chelyabinsk,telluride,subordination,ferried,dived,vendee,pictish,dimitrov,expiry,carnation,cayley,magnitudes,lismore,gretna,sandwiched,unmasked,sandomierz,swarthmore,tetra,nanyang,pevsner,dehradun,mormonism,rashi,complying,seaplanes,ningbo,cooperates,strathcona,mornington,mestizo,yulia,edgbaston,palisade,ethno,polytopes,espirito,tymoshenko,pronunciations,paradoxical,taichung,chipmunks,erhard,maximise,accretion,kanda,`abdu'l,narrowest,umpiring,mycenaean,divisor,geneticist,ceredigion,barque,hobbyists,equates,auxerre,spinose,cheil,sweetwater,guano,carboxylic,archiv,tannery,cormorant,agonists,fundacion,anbar,tunku,hindrance,meerut,concordat,secunderabad,kachin,achievable,murfreesboro,comprehensively,forges,broadest,synchronised,speciation,scapa,aliyev,conmebol,tirelessly,subjugated,pillaged,udaipur,defensively,lakhs,stateless,haasan,headlamps,patterning,podiums,polyphony,mcmurdo,mujer,vocally,storeyed,mucosa,multivariate,scopus,minimizes,formalised,certiorari,bourges,populate,overhanging,gaiety,unreserved,borromeo,woolworths,isotopic,bashar,purify,vertebra,medan,juxtaposition,earthwork,elongation,chaudhary,schematic,piast,steeped,nanotubes,fouls,achaea,legionnaires,abdur,qmjhl,embraer,hardback,centerville,ilocos,slovan,whitehorse,mauritian,moulding,mapuche,donned,provisioning,gazprom,jonesboro,audley,lightest,calyx,coldwater,trigonometric,petroglyphs,psychoanalyst,congregate,zambezi,fissure,supervises,bexley,etobicoke,wairarapa,tectonics,emphasises,formula_41,debugging,linfield,spatially,ionizing,ungulates,orinoco,clades,erlangen,news/talk,vols.,ceara,yakovlev,finsbury,entanglement,fieldhouse,graphene,intensifying,grigory,keyong,zacatecas,ninian,allgemeine,keswick,societa,snorri,femininity,najib,monoclonal,guyanese,postulate,huntly,abbeys,machinist,yunus,emphasising,ishaq,urmia,bremerton,pretenders,lumiere,thoroughfares,chikara,dramatized,metathorax,taiko,transcendence,wycliffe,retrieves,umpired,steuben,racehorses,taylors,kuznetsov,montezuma,precambrian,canopies,gaozong,propodeum,disestablished,retroactive,shoreham,rhizome,doubleheader,clinician,diwali,quartzite,shabaab,agassiz,despatched,stormwater,luxemburg,callao,universidade,courland,skane,glyph,dormers,witwatersrand,curacy,qualcomm,nansen,entablature,lauper,hausdorff,lusaka,ruthenian,360deg,cityscape,douai,vaishnava,spars,vaulting,rationalist,gygax,sequestration,typology,pollinates,accelerators,leben,colonials,cenotaph,imparted,carthaginians,equaled,rostrum,gobind,bodhisattva,oberst,bicycling,arabi,sangre,biophysics,hainaut,vernal,lunenburg,apportioned,finches,lajos,nenad,repackaged,zayed,nikephoros,r.e.m,swaminarayan,gestalt,unplaced,crags,grohl,sialkot,unsaturated,gwinnett,linemen,forays,palakkad,writs,instrumentalists,aircrews,badged,terrapins,180deg,oneness,commissariat,changi,pupation,circumscribed,contador,isotropic,administrated,fiefs,nimes,intrusions,minoru,geschichte,nadph,tainan,changchun,carbondale,frisia,swapo,evesham,hawai'i,encyclopedic,transporters,dysplasia,formula_42,onsite,jindal,guetta,judgements,narbonne,permissions,paleogene,rationalism,vilna,isometric,subtracted,chattahoochee,lamina,missa,greville,pervez,lattices,persistently,crystallization,timbered,hawaiians,fouling,interrelated,masood,ripening,stasi,gamal,visigothic,warlike,cybernetics,tanjung,forfar,cybernetic,karelian,brooklands,belfort,greifswald,campeche,inexplicably,refereeing,understory,uninterested,prius,collegiately,sefid,sarsfield,categorize,biannual,elsevier,eisteddfod,declension,autonoma,procuring,misrepresentation,novelization,bibliographic,shamanism,vestments,potash,eastleigh,ionized,turan,lavishly,scilly,balanchine,importers,parlance,'that,kanyakumari,synods,mieszko,crossovers,serfdom,conformational,legislated,exclave,heathland,sadar,differentiates,propositional,konstantinos,photoshop,manche,vellore,appalachia,orestes,taiga,exchanger,grozny,invalidated,baffin,spezia,staunchly,eisenach,robustness,virtuosity,ciphers,inlets,bolagh,understandings,bosniaks,parser,typhoons,sinan,luzerne,webcomic,subtraction,jhelum,businessweek,ceske,refrained,firebox,mitigated,helmholtz,dilip,eslamabad,metalwork,lucan,apportionment,provident,gdynia,schooners,casement,danse,hajjiabad,benazir,buttress,anthracite,newsreel,wollaston,dispatching,cadastral,riverboat,provincetown,nantwich,missal,irreverent,juxtaposed,darya,ennobled,electropop,stereoscopic,maneuverability,laban,luhansk,udine,collectibles,haulage,holyrood,materially,supercharger,gorizia,shkoder,townhouses,pilate,layoffs,folkloric,dialectic,exuberant,matures,malla,ceuta,citizenry,crewed,couplet,stopover,transposition,tradesmen,antioxidant,amines,utterance,grahame,landless,isere,diction,appellant,satirist,urbino,intertoto,subiaco,antonescu,nehemiah,ubiquitin,emcee,stourbridge,fencers,103rd,wranglers,monteverdi,watertight,expounded,xiamen,manmohan,pirie,threefold,antidepressant,sheboygan,grieg,cancerous,diverging,bernini,polychrome,fundamentalism,bihari,critiqued,cholas,villers,tendulkar,dafydd,vastra,fringed,evangelization,episcopalian,maliki,sana'a,ashburton,trianon,allegany,heptathlon,insufficiently,panelists,pharrell,hexham,amharic,fertilized,plumes,cistern,stratigraphy,akershus,catalans,karoo,rupee,minuteman,quantification,wigmore,leutnant,metanotum,weeknights,iridescent,extrasolar,brechin,deuterium,kuching,lyricism,astrakhan,brookhaven,euphorbia,hradec,bhagat,vardar,aylmer,positron,amygdala,speculators,unaccompanied,debrecen,slurry,windhoek,disaffected,rapporteur,mellitus,blockers,fronds,yatra,sportsperson,precession,physiologist,weeknight,pidgin,pharma,condemns,standardize,zetian,tibor,glycoprotein,emporia,cormorants,amalie,accesses,leonhard,denbighshire,roald,116th,will.i.am,symbiosis,privatised,meanders,chemnitz,jabalpur,shing,secede,ludvig,krajina,homegrown,snippets,sasanian,euripides,peder,cimarron,streaked,graubunden,kilimanjaro,mbeki,middleware,flensburg,bukovina,lindwall,marsalis,profited,abkhaz,polis,camouflaged,amyloid,morgantown,ovoid,bodleian,morte,quashed,gamelan,juventud,natchitoches,storyboard,freeview,enumeration,cielo,preludes,bulawayo,1600s,olympiads,multicast,faunal,asura,reinforces,puranas,ziegfeld,handicraft,seamount,kheil,noche,hallmarks,dermal,colorectal,encircle,hessen,umbilicus,sunnis,leste,unwin,disclosing,superfund,montmartre,refuelling,subprime,kolhapur,etiology,bismuth,laissez,vibrational,mazar,alcoa,rumsfeld,recurve,ticonderoga,lionsgate,onlookers,homesteads,filesystem,barometric,kingswood,biofuel,belleza,moshav,occidentalis,asymptomatic,northeasterly,leveson,huygens,numan,kingsway,primogeniture,toyotomi,yazoo,limpets,greenbelt,booed,concurrence,dihedral,ventrites,raipur,sibiu,plotters,kitab,109th,trackbed,skilful,berthed,effendi,fairing,sephardi,mikhailovich,lockyer,wadham,invertible,paperbacks,alphabetic,deuteronomy,constitutive,leathery,greyhounds,estoril,beechcraft,poblacion,cossidae,excreted,flamingos,singha,olmec,neurotransmitters,ascoli,nkrumah,forerunners,dualism,disenchanted,benefitted,centrum,undesignated,noida,o'donoghue,collages,egrets,egmont,wuppertal,cleave,montgomerie,pseudomonas,srinivasa,lymphatic,stadia,resold,minima,evacuees,consumerism,ronde,biochemist,automorphism,hollows,smuts,improvisations,vespasian,bream,pimlico,eglin,colne,melancholic,berhad,ousting,saale,notaulices,ouest,hunslet,tiberias,abdomina,ramsgate,stanislas,donbass,pontefract,sucrose,halts,drammen,chelm,l'arc,taming,trolleys,konin,incertae,licensees,scythian,giorgos,dative,tanglewood,farmlands,o'keeffe,caesium,romsdal,amstrad,corte,oglethorpe,huntingdonshire,magnetization,adapts,zamosc,shooto,cuttack,centrepiece,storehouse,winehouse,morbidity,woodcuts,ryazan,buddleja,buoyant,bodmin,estero,austral,verifiable,periyar,christendom,curtail,shura,kaifeng,cotswold,invariance,seafaring,gorica,androgen,usman,seabird,forecourt,pekka,juridical,audacious,yasser,cacti,qianlong,polemical,d'amore,espanyol,distrito,cartographers,pacifism,serpents,backa,nucleophilic,overturning,duplicates,marksman,oriente,vuitton,oberleutnant,gielgud,gesta,swinburne,transfiguration,1750s,retaken,celje,fredrikstad,asuka,cropping,mansard,donates,blacksmiths,vijayanagara,anuradhapura,germinate,betis,foreshore,jalandhar,bayonets,devaluation,frazione,ablaze,abidjan,approvals,homeostasis,corollary,auden,superfast,redcliffe,luxembourgish,datum,geraldton,printings,ludhiana,honoree,synchrotron,invercargill,hurriedly,108th,three-and-a-half,colonist,bexar,limousin,bessemer,ossetian,nunataks,buddhas,rebuked,thais,tilburg,verdicts,interleukin,unproven,dordrecht,solent,acclamation,muammar,dahomey,operettas,4x400,arrears,negotiators,whitehaven,apparitions,armoury,psychoactive,worshipers,sculptured,elphinstone,airshow,kjell,o'callaghan,shrank,professorships,predominance,subhash,coulomb,sekolah,retrofitted,samos,overthrowing,vibrato,resistors,palearctic,datasets,doordarshan,subcutaneous,compiles,immorality,patchwork,trinidadian,glycogen,pronged,zohar,visigoths,freres,akram,justo,agora,intakes,craiova,playwriting,bukhari,militarism,iwate,petitioners,harun,wisla,inefficiency,vendome,ledges,schopenhauer,kashi,entombed,assesses,tenn.,noumea,baguio,carex,o'donovan,filings,hillsdale,conjectures,blotches,annuals,lindisfarne,negated,vivek,angouleme,trincomalee,cofactor,verkhovna,backfield,twofold,automaker,rudra,freighters,darul,gharana,busway,formula_43,plattsburgh,portuguesa,showrunner,roadmap,valenciennes,erdos,biafra,spiritualism,transactional,modifies,carne,107th,cocos,gcses,tiverton,radiotherapy,meadowlands,gunma,srebrenica,foxtel,authenticated,enslavement,classicist,klaipeda,minstrels,searchable,infantrymen,incitement,shiga,nadp+,urals,guilders,banquets,exteriors,counterattacks,visualized,diacritics,patrimony,svensson,transepts,prizren,telegraphy,najaf,emblazoned,coupes,effluent,ragam,omani,greensburg,taino,flintshire,cd/dvd,lobbies,narrating,cacao,seafarers,bicolor,collaboratively,suraj,floodlit,sacral,puppetry,tlingit,malwa,login,motionless,thien,overseers,vihar,golem,specializations,bathhouse,priming,overdubs,winningest,archetypes,uniao,acland,creamery,slovakian,lithographs,maryborough,confidently,excavating,stillborn,ramallah,audiencia,alava,ternary,hermits,rostam,bauxite,gawain,lothair,captions,gulfstream,timelines,receded,mediating,petain,bastia,rudbar,bidders,disclaimer,shrews,tailings,trilobites,yuriy,jamil,demotion,gynecology,rajinikanth,madrigals,ghazni,flycatchers,vitebsk,bizet,computationally,kashgar,refinements,frankford,heralds,europe/africa,levante,disordered,sandringham,queues,ransacked,trebizond,verdes,comedie,primitives,figurine,organists,culminate,gosport,coagulation,ferrying,hoyas,polyurethane,prohibitive,midfielders,ligase,progesterone,defectors,sweetened,backcountry,diodorus,waterside,nieuport,khwaja,jurong,decried,gorkha,ismaili,300th,octahedral,kindergartens,paseo,codification,notifications,disregarding,risque,reconquista,shortland,atolls,texarkana,perceval,d'etudes,kanal,herbicides,tikva,nuova,gatherer,dissented,soweto,dexterity,enver,bacharach,placekicker,carnivals,automate,maynooth,symplectic,chetnik,militaire,upanishads,distributive,strafing,championing,moiety,miliband,blackadder,enforceable,maung,dimer,stadtbahn,diverges,obstructions,coleophoridae,disposals,shamrocks,aural,banca,bahru,coxed,grierson,vanadium,watermill,radiative,ecoregions,berets,hariri,bicarbonate,evacuations,mallee,nairn,rushden,loggia,slupsk,satisfactorily,milliseconds,cariboo,reine,cyclo,pigmentation,postmodernism,aqueducts,vasari,bourgogne,dilemmas,liquefied,fluminense,alloa,ibaraki,tenements,kumasi,humerus,raghu,labours,putsch,soundcloud,bodybuilder,rakyat,domitian,pesaro,translocation,sembilan,homeric,enforcers,tombstones,lectureship,rotorua,salamis,nikolaos,inferences,superfortress,lithgow,surmised,undercard,tarnow,barisan,stingrays,federacion,coldstream,haverford,ornithological,heerenveen,eleazar,jyoti,murali,bamako,riverbed,subsidised,theban,conspicuously,vistas,conservatorium,madrasa,kingfishers,arnulf,credential,syndicalist,sheathed,discontinuity,prisms,tsushima,coastlines,escapees,vitis,optimizing,megapixel,overground,embattled,halide,sprinters,buoys,mpumalanga,peculiarities,106th,roamed,menezes,macao,prelates,papyri,freemen,dissertations,irishmen,pooled,sverre,reconquest,conveyance,subjectivity,asturian,circassian,formula_45,comdr,thickets,unstressed,monro,passively,harmonium,moveable,dinar,carlsson,elysees,chairing,b'nai,confusingly,kaoru,convolution,godolphin,facilitator,saxophones,eelam,jebel,copulation,anions,livres,licensure,pontypridd,arakan,controllable,alessandria,propelling,stellenbosch,tiber,wolka,liberators,yarns,d'azur,tsinghua,semnan,amhara,ablation,melies,tonality,historique,beeston,kahne,intricately,sonoran,robespierre,gyrus,boycotts,defaulted,infill,maranhao,emigres,framingham,paraiba,wilhelmshaven,tritium,skyway,labial,supplementation,possessor,underserved,motets,maldivian,marrakech,quays,wikimedia,turbojet,demobilization,petrarch,encroaching,sloops,masted,karbala,corvallis,agribusiness,seaford,stenosis,hieronymus,irani,superdraft,baronies,cortisol,notability,veena,pontic,cyclin,archeologists,newham,culled,concurring,aeolian,manorial,shouldered,fords,philanthropists,105th,siddharth,gotthard,halim,rajshahi,jurchen,detritus,practicable,earthenware,discarding,travelogue,neuromuscular,elkhart,raeder,zygmunt,metastasis,internees,102nd,vigour,upmarket,summarizing,subjunctive,offsets,elizabethtown,udupi,pardubice,repeaters,instituting,archaea,substandard,technische,linga,anatomist,flourishes,velika,tenochtitlan,evangelistic,fitchburg,springbok,cascading,hydrostatic,avars,occasioned,filipina,perceiving,shimbun,africanus,consternation,tsing,optically,beitar,45deg,abutments,roseville,monomers,huelva,lotteries,hypothalamus,internationalist,electromechanical,hummingbirds,fibreglass,salaried,dramatists,uncovers,invokes,earners,excretion,gelding,ancien,aeronautica,haverhill,stour,ittihad,abramoff,yakov,ayodhya,accelerates,industrially,aeroplanes,deleterious,dwelt,belvoir,harpalus,atpase,maluku,alasdair,proportionality,taran,epistemological,interferometer,polypeptide,adjudged,villager,metastatic,marshalls,madhavan,archduchess,weizmann,kalgoorlie,balan,predefined,sessile,sagaing,brevity,insecticide,psychosocial,africana,steelworks,aether,aquifers,belem,mineiro,almagro,radiators,cenozoic,solute,turbocharger,invicta,guested,buccaneer,idolatry,unmatched,paducah,sinestro,dispossessed,conforms,responsiveness,cyanobacteria,flautist,procurator,complementing,semifinalist,rechargeable,permafrost,cytokine,refuges,boomed,gelderland,franchised,jinan,burnie,doubtless,randomness,colspan=12,angra,ginebra,famers,nuestro,declarative,roughness,lauenburg,motile,rekha,issuer,piney,interceptors,napoca,gipsy,formulaic,formula_44,viswanathan,ebrahim,thessalonica,galeria,muskogee,unsold,html5,taito,mobutu,icann,carnarvon,fairtrade,morphisms,upsilon,nozzles,fabius,meander,murugan,strontium,episcopacy,sandinista,parasol,attenuated,bhima,primeval,panay,ordinator,negara,osteoporosis,glossop,ebook,paradoxically,grevillea,modoc,equating,phonetically,legumes,covariant,dorje,quatre,bruxelles,pyroclastic,shipbuilder,zhaozong,obscuring,sveriges,tremolo,extensible,barrack,multnomah,hakon,chaharmahal,parsing,volumetric,astrophysical,glottal,combinatorics,freestanding,encoder,paralysed,cavalrymen,taboos,heilbronn,orientalis,lockport,marvels,ozawa,dispositions,waders,incurring,saltire,modulate,papilio,phenol,intermedia,rappahannock,plasmid,fortify,phenotypes,transiting,correspondences,leaguer,larnaca,incompatibility,mcenroe,deeming,endeavoured,aboriginals,helmed,salar,arginine,werke,ferrand,expropriated,delimited,couplets,phoenicians,petioles,ouster,anschluss,protectionist,plessis,urchins,orquesta,castleton,juniata,bittorrent,fulani,donji,mykola,rosemont,chandos,scepticism,signer,chalukya,wicketkeeper,coquitlam,programmatic,o'brian,carteret,urology,steelhead,paleocene,konkan,bettered,venkatesh,surfacing,longitudinally,centurions,popularization,yazid,douro,widths,premios,leonards,gristmill,fallujah,arezzo,leftists,ecliptic,glycerol,inaction,disenfranchised,acrimonious,depositing,parashah,cockatoo,marechal,bolzano,chios,cablevision,impartiality,pouches,thickly,equities,bentinck,emotive,boson,ashdown,conquistadors,parsi,conservationists,reductive,newlands,centerline,ornithologists,waveguide,nicene,philological,hemel,setanta,masala,aphids,convening,casco,matrilineal,chalcedon,orthographic,hythe,replete,damming,bolivarian,admixture,embarks,borderlands,conformed,nagarjuna,blenny,chaitanya,suwon,shigeru,tatarstan,lingayen,rejoins,grodno,merovingian,hardwicke,puducherry,prototyping,laxmi,upheavals,headquarter,pollinators,bromine,transom,plantagenet,arbuthnot,chidambaram,woburn,osamu,panelling,coauthored,zhongshu,hyaline,omissions,aspergillus,offensively,electrolytic,woodcut,sodom,intensities,clydebank,piotrkow,supplementing,quipped,focke,harbinger,positivism,parklands,wolfenbuttel,cauca,tryptophan,taunus,curragh,tsonga,remand,obscura,ashikaga,eltham,forelimbs,analogs,trnava,observances,kailash,antithesis,ayumi,abyssinia,dorsally,tralee,pursuers,misadventures,padova,perot,mahadev,tarim,granth,licenced,compania,patuxent,baronial,korda,cochabamba,codices,karna,memorialized,semaphore,playlists,mandibular,halal,sivaji,scherzinger,stralsund,foundries,ribosome,mindfulness,nikolayevich,paraphyletic,newsreader,catalyze,ioannina,thalamus,gbit/s,paymaster,sarab,500th,replenished,gamepro,cracow,formula_46,gascony,reburied,lessing,easement,transposed,meurthe,satires,proviso,balthasar,unbound,cuckoos,durbar,louisbourg,cowes,wholesalers,manet,narita,xiaoping,mohamad,illusory,cathal,reuptake,alkaloid,tahrir,mmorpg,underlies,anglicanism,repton,aharon,exogenous,buchenwald,indigent,odostomia,milled,santorum,toungoo,nevsky,steyr,urbanisation,darkseid,subsonic,canaanite,akiva,eglise,dentition,mediators,cirencester,peloponnesian,malmesbury,durres,oerlikon,tabulated,saens,canaria,ischemic,esterhazy,ringling,centralization,walthamstow,nalanda,lignite,takht,leninism,expiring,circe,phytoplankton,promulgation,integrable,breeches,aalto,menominee,borgo,scythians,skrull,galleon,reinvestment,raglan,reachable,liberec,airframes,electrolysis,geospatial,rubiaceae,interdependence,symmetrically,simulcasts,keenly,mauna,adipose,zaidi,fairport,vestibular,actuators,monochromatic,literatures,congestive,sacramental,atholl,skytrain,tycho,tunings,jamia,catharina,modifier,methuen,tapings,infiltrating,colima,grafting,tauranga,halides,pontificate,phonetics,koper,hafez,grooved,kintetsu,extrajudicial,linkoping,cyberpunk,repetitions,laurentian,parnu,bretton,darko,sverdlovsk,foreshadowed,akhenaten,rehnquist,gosford,coverts,pragmatism,broadleaf,ethiopians,instated,mediates,sodra,opulent,descriptor,enugu,shimla,leesburg,officership,giffard,refectory,lusitania,cybermen,fiume,corus,tydfil,lawrenceville,ocala,leviticus,burghers,ataxia,richthofen,amicably,acoustical,watling,inquired,tiempo,multiracial,parallelism,trenchard,tokyopop,germanium,usisl,philharmonia,shapur,jacobites,latinized,sophocles,remittances,o'farrell,adder,dimitrios,peshwa,dimitar,orlov,outstretched,musume,satish,dimensionless,serialised,baptisms,pagasa,antiviral,1740s,quine,arapaho,bombardments,stratosphere,ophthalmic,injunctions,carbonated,nonviolence,asante,creoles,sybra,boilermakers,abington,bipartite,permissive,cardinality,anheuser,carcinogenic,hohenlohe,surinam,szeged,infanticide,generically,floorball,'white,automakers,cerebellar,homozygous,remoteness,effortlessly,allude,'great,headmasters,minting,manchurian,kinabalu,wemyss,seditious,widgets,marbled,almshouses,bards,subgenres,tetsuya,faulting,kickboxer,gaulish,hoseyn,malton,fluvial,questionnaires,mondale,downplayed,traditionalists,vercelli,sumatran,landfills,gamesradar,exerts,franciszek,unlawfully,huesca,diderot,libertarians,professorial,laane,piecemeal,conidae,taiji,curatorial,perturbations,abstractions,szlachta,watercraft,mullah,zoroastrianism,segmental,khabarovsk,rectors,affordability,scuola,diffused,stena,cyclonic,workpiece,romford,'little,jhansi,stalag,zhongshan,skipton,maracaibo,bernadotte,thanet,groening,waterville,encloses,sahrawi,nuffield,moorings,chantry,annenberg,islay,marchers,tenses,wahid,siegen,furstenberg,basques,resuscitation,seminarians,tympanum,gentiles,vegetarianism,tufted,venkata,fantastical,pterophoridae,machined,superposition,glabrous,kaveri,chicane,executors,phyllonorycter,bidirectional,jasta,undertones,touristic,majapahit,navratilova,unpopularity,barbadian,tinian,webcast,hurdler,rigidly,jarrah,staphylococcus,igniting,irrawaddy,stabilised,airstrike,ragas,wakayama,energetically,ekstraklasa,minibus,largemouth,cultivators,leveraging,waitangi,carnaval,weaves,turntables,heydrich,sextus,excavate,govind,ignaz,pedagogue,uriah,borrowings,gemstones,infractions,mycobacterium,batavian,massing,praetor,subalpine,massoud,passers,geostationary,jalil,trainsets,barbus,impair,budejovice,denbigh,pertain,historicity,fortaleza,nederlandse,lamenting,masterchef,doubs,gemara,conductance,ploiesti,cetaceans,courthouses,bhagavad,mihailovic,occlusion,bremerhaven,bulwark,morava,kaine,drapery,maputo,conquistador,kaduna,famagusta,first-past-the-post,erudite,galton,undated,tangential,filho,dismembered,dashes,criterium,darwen,metabolized,blurring,everard,randwick,mohave,impurity,acuity,ansbach,chievo,surcharge,plantain,algoma,porosity,zirconium,selva,sevenoaks,venizelos,gwynne,golgi,imparting,separatism,courtesan,idiopathic,gravestones,hydroelectricity,babar,orford,purposeful,acutely,shard,ridgewood,viterbo,manohar,expropriation,placenames,brevis,cosine,unranked,richfield,newnham,recoverable,flightless,dispersing,clearfield,abu'l,stranraer,kempe,streamlining,goswami,epidermal,pieta,conciliatory,distilleries,electrophoresis,bonne,tiago,curiosities,candidature,picnicking,perihelion,lintel,povoa,gullies,configure,excision,facies,signers,1730s,insufficiency,semiotics,streatham,deactivation,entomological,skippers,albacete,parodying,escherichia,honorees,singaporeans,counterterrorism,tiruchirappalli,omnivorous,metropole,globalisation,athol,unbounded,codice_5,landforms,classifier,farmhouses,reaffirming,reparation,yomiuri,technologists,mitte,medica,viewable,steampunk,konya,kshatriya,repelling,edgewater,lamiinae,devas,potteries,llandaff,engendered,submits,virulence,uplifted,educationist,metropolitans,frontrunner,dunstable,forecastle,frets,methodius,exmouth,linnean,bouchet,repulsion,computable,equalling,liceo,tephritidae,agave,hydrological,azarenka,fairground,l'homme,enforces,xinhua,cinematographers,cooperstown,sa'id,paiute,christianization,tempos,chippenham,insulator,kotor,stereotyped,dello,cours,hisham,d'souza,eliminations,supercars,passau,rebrand,natures,coote,persephone,rededicated,cleaved,plenum,blistering,indiscriminately,cleese,safed,recursively,compacted,revues,hydration,shillong,echelons,garhwal,pedimented,grower,zwolle,wildflower,annexing,methionine,petah,valens,famitsu,petiole,specialities,nestorian,shahin,tokaido,shearwater,barberini,kinsmen,experimenter,alumnae,cloisters,alumina,pritzker,hardiness,soundgarden,julich,ps300,watercourse,cementing,wordplay,olivet,demesne,chasseurs,amide,zapotec,gaozu,porphyry,absorbers,indium,analogies,devotions,engravers,limestones,catapulted,surry,brickworks,gotra,rodham,landline,paleontologists,shankara,islip,raucous,trollope,arpad,embarkation,morphemes,recites,picardie,nakhchivan,tolerances,formula_47,khorramabad,nichiren,adrianople,kirkuk,assemblages,collider,bikaner,bushfires,roofline,coverings,reredos,bibliotheca,mantras,accentuated,commedia,rashtriya,fluctuation,serhiy,referential,fittipaldi,vesicle,geeta,iraklis,immediacy,chulalongkorn,hunsruck,bingen,dreadnoughts,stonemason,meenakshi,lebesgue,undergrowth,baltistan,paradoxes,parlement,articled,tiflis,dixieland,meriden,tejano,underdogs,barnstable,exemplify,venter,tropes,wielka,kankakee,iskandar,zilina,pharyngeal,spotify,materialised,picts,atlantique,theodoric,prepositions,paramilitaries,pinellas,attlee,actuated,piedmontese,grayling,thucydides,multifaceted,unedited,autonomously,universelle,utricularia,mooted,preto,incubated,underlie,brasenose,nootka,bushland,sensu,benzodiazepine,esteghlal,seagoing,amenhotep,azusa,sappers,culpeper,smokeless,thoroughbreds,dargah,gorda,alumna,mankato,zdroj,deleting,culvert,formula_49,punting,wushu,hindering,immunoglobulin,standardisation,birger,oilfield,quadrangular,ulama,recruiters,netanya,1630s,communaute,istituto,maciej,pathan,meher,vikas,characterizations,playmaker,interagency,intercepts,assembles,horthy,introspection,narada,matra,testes,radnicki,estonians,csiro,instar,mitford,adrenergic,crewmembers,haaretz,wasatch,lisburn,rangefinder,ordre,condensate,reforestation,corregidor,spvgg,modulator,mannerist,faulted,aspires,maktoum,squarepants,aethelred,piezoelectric,mulatto,dacre,progressions,jagiellonian,norge,samaria,sukhoi,effingham,coxless,hermetic,humanists,centrality,litters,stirlingshire,beaconsfield,sundanese,geometrically,caretakers,habitually,bandra,pashtuns,bradenton,arequipa,laminar,brickyard,hitchin,sustains,shipboard,ploughing,trechus,wheelers,bracketed,ilyushin,subotica,d'hondt,reappearance,bridgestone,intermarried,fulfilment,aphasia,birkbeck,transformational,strathmore,hornbill,millstone,lacan,voids,solothurn,gymnasiums,laconia,viaducts,peduncle,teachta,edgware,shinty,supernovae,wilfried,exclaim,parthia,mithun,flashpoint,moksha,cumbia,metternich,avalanches,militancy,motorist,rivadavia,chancellorsville,federals,gendered,bounding,footy,gauri,caliphs,lingam,watchmaker,unrecorded,riverina,unmodified,seafloor,droit,pfalz,chrysostom,gigabit,overlordship,besiege,espn2,oswestry,anachronistic,ballymena,reactivation,duchovny,ghani,abacetus,duller,legio,watercourses,nord-pas-de-calais,leiber,optometry,swarms,installer,sancti,adverbs,iheartmedia,meiningen,zeljko,kakheti,notional,circuses,patrilineal,acrobatics,infrastructural,sheva,oregonian,adjudication,aamir,wloclawek,overfishing,obstructive,subtracting,aurobindo,archeologist,newgate,'cause,secularization,tehsils,abscess,fingal,janacek,elkhorn,trims,kraftwerk,mandating,irregulars,faintly,congregationalist,sveti,kasai,mishaps,kennebec,provincially,durkheim,scotties,aicte,rapperswil,imphal,surrenders,morphs,nineveh,hoxha,cotabato,thuringian,metalworking,retold,shogakukan,anthers,proteasome,tippeligaen,disengagement,mockumentary,palatial,erupts,flume,corrientes,masthead,jaroslaw,rereleased,bharti,labors,distilling,tusks,varzim,refounded,enniskillen,melkite,semifinalists,vadodara,bermudian,capstone,grasse,origination,populus,alesi,arrondissements,semigroup,verein,opossum,messrs.,portadown,bulbul,tirupati,mulhouse,tetrahedron,roethlisberger,nonverbal,connexion,warangal,deprecated,gneiss,octet,vukovar,hesketh,chambre,despatch,claes,kargil,hideo,gravelly,tyndale,aquileia,tuners,defensible,tutte,theotokos,constructivist,ouvrage,dukla,polisario,monasticism,proscribed,commutation,testers,nipissing,codon,mesto,olivine,concomitant,exoskeleton,purports,coromandel,eyalet,dissension,hippocrates,purebred,yaounde,composting,oecophoridae,procopius,o'day,angiogenesis,sheerness,intelligencer,articular,felixstowe,aegon,endocrinology,trabzon,licinius,pagodas,zooplankton,hooghly,satie,drifters,sarthe,mercian,neuilly,tumours,canal+,scheldt,inclinations,counteroffensive,roadrunners,tuzla,shoreditch,surigao,predicates,carnot,algeciras,militaries,generalize,bulkheads,gawler,pollutant,celta,rundgren,microrna,gewog,olimpija,placental,lubelski,roxburgh,discerned,verano,kikuchi,musicale,l'enfant,ferocity,dimorphic,antigonus,erzurum,prebendary,recitative,discworld,cyrenaica,stigmella,totnes,sutta,pachuca,ulsan,downton,landshut,castellan,pleural,siedlce,siecle,catamaran,cottbus,utilises,trophic,freeholders,holyhead,u.s.s,chansons,responder,waziristan,suzuka,birding,shogi,asker,acetone,beautification,cytotoxic,dixit,hunterdon,cobblestone,formula_48,kossuth,devizes,sokoto,interlaced,shuttered,kilowatts,assiniboine,isaak,salto,alderney,sugarloaf,franchising,aggressiveness,toponyms,plaintext,antimatter,henin,equidistant,salivary,bilingualism,mountings,obligate,extirpated,irenaeus,misused,pastoralists,aftab,immigrating,warping,tyrolean,seaforth,teesside,soundwave,oligarchy,stelae,pairwise,iupac,tezuka,posht,orchestrations,landmass,ironstone,gallia,hjalmar,carmelites,strafford,elmhurst,palladio,fragility,teleplay,gruffudd,karoly,yerba,potok,espoo,inductance,macaque,nonprofits,pareto,rock'n'roll,spiritualist,shadowed,skateboarder,utterances,generality,congruence,prostrate,deterred,yellowknife,albarn,maldon,battlements,mohsen,insecticides,khulna,avellino,menstruation,glutathione,springdale,parlophone,confraternity,korps,countrywide,bosphorus,preexisting,damodar,astride,alexandrovich,sprinting,crystallized,botev,leaching,interstates,veers,angevin,undaunted,yevgeni,nishapur,northerners,alkmaar,bethnal,grocers,sepia,tornus,exemplar,trobe,charcot,gyeonggi,larne,tournai,lorain,voided,genji,enactments,maxilla,adiabatic,eifel,nazim,transducer,thelonious,pyrite,deportiva,dialectal,bengt,rosettes,labem,sergeyevich,synoptic,conservator,statuette,biweekly,adhesives,bifurcation,rajapaksa,mammootty,republique,yusef,waseda,marshfield,yekaterinburg,minnelli,fundy,fenian,matchups,dungannon,supremacist,panelled,drenthe,iyengar,fibula,narmada,homeport,oceanside,precept,antibacterial,altarpieces,swath,ospreys,lillooet,legnica,lossless,formula_50,galvatron,iorga,stormont,rsfsr,loggers,kutno,phenomenological,medallists,cuatro,soissons,homeopathy,bituminous,injures,syndicates,typesetting,displacements,dethroned,makassar,lucchese,abergavenny,targu,alborz,akb48,boldface,gastronomy,sacra,amenity,accumulator,myrtaceae,cornices,mourinho,denunciation,oxbow,diddley,aargau,arbitrage,bedchamber,gruffydd,zamindar,klagenfurt,caernarfon,slowdown,stansted,abrasion,tamaki,suetonius,dukakis,individualistic,ventrally,hotham,perestroika,ketones,fertilisation,sobriquet,couplings,renderings,misidentified,rundfunk,sarcastically,braniff,concours,dismissals,elegantly,modifiers,crediting,combos,crucially,seafront,lieut,ischemia,manchus,derivations,proteases,aristophanes,adenauer,porting,hezekiah,sante,trulli,hornblower,foreshadowing,ypsilanti,dharwad,khani,hohenstaufen,distillers,cosmodrome,intracranial,turki,salesian,gorzow,jihlava,yushchenko,leichhardt,venables,cassia,eurogamer,airtel,curative,bestsellers,timeform,sortied,grandview,massillon,ceding,pilbara,chillicothe,heredity,elblag,rogaland,ronne,millennial,batley,overuse,bharata,fille,campbelltown,abeyance,counterclockwise,250cc,neurodegenerative,consigned,electromagnetism,sunnah,saheb,exons,coxswain,gleaned,bassoons,worksop,prismatic,immigrate,pickets,takeo,bobsledder,stosur,fujimori,merchantmen,stiftung,forli,endorses,taskforce,thermally,atman,gurps,floodplains,enthalpy,extrinsic,setubal,kennesaw,grandis,scalability,durations,showrooms,prithvi,outro,overruns,andalucia,amanita,abitur,hipper,mozambican,sustainment,arsene,chesham,palaeolithic,reportage,criminality,knowsley,haploid,atacama,shueisha,ridgefield,astern,getafe,lineal,timorese,restyled,hollies,agincourt,unter,justly,tannins,mataram,industrialised,tarnovo,mumtaz,mustapha,stretton,synthetase,condita,allround,putra,stjepan,troughs,aechmea,specialisation,wearable,kadokawa,uralic,aeros,messiaen,existentialism,jeweller,effigies,gametes,fjordane,cochlear,interdependent,demonstrative,unstructured,emplacement,famines,spindles,amplitudes,actuator,tantalum,psilocybe,apnea,monogatari,expulsions,seleucus,tsuen,hospitaller,kronstadt,eclipsing,olympiakos,clann,canadensis,inverter,helio,egyptologist,squamous,resonate,munir,histology,torbay,khans,jcpenney,veterinarians,aintree,microscopes,colonised,reflectors,phosphorylated,pristimantis,tulare,corvinus,multiplexing,midweek,demosthenes,transjordan,ecija,tengku,vlachs,anamorphic,counterweight,radnor,trinitarian,armidale,maugham,njsiaa,futurism,stairways,avicenna,montebello,bridgetown,wenatchee,lyonnais,amass,surinamese,streptococcus,m*a*s*h,hydrogenation,frazioni,proscenium,kalat,pennsylvanian,huracan,tallying,kralove,nucleolar,phrygian,seaports,hyacinthe,ignace,donning,instalment,regnal,fonds,prawn,carell,folktales,goaltending,bracknell,vmware,patriarchy,mitsui,kragujevac,pythagoras,soult,thapa,disproved,suwalki,secures,somoza,l'ecole,divizia,chroma,herders,technologist,deduces,maasai,rampur,paraphrase,raimi,imaged,magsaysay,ivano,turmeric,formula_51,subcommittees,axillary,ionosphere,organically,indented,refurbishing,pequot,violinists,bearn,colle,contralto,silverton,mechanization,etruscans,wittelsbach,pasir,redshirted,marrakesh,scarp,plein,wafers,qareh,teotihuacan,frobenius,sinensis,rehoboth,bundaberg,newbridge,hydrodynamic,traore,abubakar,adjusts,storytellers,dynamos,verbandsliga,concertmaster,exxonmobil,appreciable,sieradz,marchioness,chaplaincy,rechristened,cunxu,overpopulation,apolitical,sequencer,beaked,nemanja,binaries,intendant,absorber,filamentous,indebtedness,nusra,nashik,reprises,psychedelia,abwehr,ligurian,isoform,resistive,pillaging,mahathir,reformatory,lusatia,allerton,ajaccio,tepals,maturin,njcaa,abyssinian,objector,fissures,sinuous,ecclesiastic,dalits,caching,deckers,phosphates,wurlitzer,navigated,trofeo,berea,purefoods,solway,unlockable,grammys,kostroma,vocalizations,basilan,rebuke,abbasi,douala,helsingborg,ambon,bakar,runestones,cenel,tomislav,pigmented,northgate,excised,seconda,kirke,determinations,dedicates,vilas,pueblos,reversion,unexploded,overprinted,ekiti,deauville,masato,anaesthesia,endoplasmic,transponders,aguascalientes,hindley,celluloid,affording,bayeux,piaget,rickshaws,eishockey,camarines,zamalek,undersides,hardwoods,hermitian,mutinied,monotone,blackmails,affixes,jpmorgan,habermas,mitrovica,paleontological,polystyrene,thana,manas,conformist,turbofan,decomposes,logano,castration,metamorphoses,patroness,herbicide,mikolaj,rapprochement,macroeconomics,barranquilla,matsudaira,lintels,femina,hijab,spotsylvania,morpheme,bitola,baluchistan,kurukshetra,otway,extrusion,waukesha,menswear,helder,trung,bingley,protester,boars,overhang,differentials,exarchate,hejaz,kumara,unjustified,timings,sharpness,nuovo,taisho,sundar,etc..,jehan,unquestionably,muscovy,daltrey,canute,paneled,amedeo,metroplex,elaborates,telus,tetrapods,dragonflies,epithets,saffir,parthenon,lucrezia,refitting,pentateuch,hanshin,montparnasse,lumberjacks,sanhedrin,erectile,odors,greenstone,resurgent,leszek,amory,substituents,prototypical,viewfinder,monck,universiteit,joffre,revives,chatillon,seedling,scherzo,manukau,ashdod,gympie,homolog,stalwarts,ruinous,weibo,tochigi,wallenberg,gayatri,munda,satyagraha,storefronts,heterogeneity,tollway,sportswriters,binocular,gendarmes,ladysmith,tikal,ortsgemeinde,ja'far,osmotic,linlithgow,bramley,telecoms,pugin,repose,rupaul,sieur,meniscus,garmisch,reintroduce,400th,shoten,poniatowski,drome,kazakhstani,changeover,astronautics,husserl,herzl,hypertext,katakana,polybius,antananarivo,seong,breguet,reliquary,utada,aggregating,liangshan,sivan,tonawanda,audiobooks,shankill,coulee,phenolic,brockton,bookmakers,handsets,boaters,wylde,commonality,mappings,silhouettes,pennines,maurya,pratchett,singularities,eschewed,pretensions,vitreous,ibero,totalitarianism,poulenc,lingered,directx,seasoning,deputation,interdict,illyria,feedstock,counterbalance,muzik,buganda,parachuted,violist,homogeneity,comix,fjords,corsairs,punted,verandahs,equilateral,laoghaire,magyars,117th,alesund,televoting,mayotte,eateries,refurbish,nswrl,yukio,caragiale,zetas,dispel,codecs,inoperable,outperformed,rejuvenation,elstree,modernise,contributory,pictou,tewkesbury,chechens,ashina,psionic,refutation,medico,overdubbed,nebulae,sandefjord,personages,eccellenza,businessperson,placename,abenaki,perryville,threshing,reshaped,arecibo,burslem,colspan=3|turnout,rebadged,lumia,erinsborough,interactivity,bitmap,indefatigable,theosophy,excitatory,gleizes,edsel,bermondsey,korce,saarinen,wazir,diyarbakir,cofounder,liberalisation,onsen,nighthawks,siting,retirements,semyon,d'histoire,114th,redditch,venetia,praha,'round,valdosta,hieroglyphic,postmedial,edirne,miscellany,savona,cockpits,minimization,coupler,jacksonian,appeasement,argentines,saurashtra,arkwright,hesiod,folios,fitzalan,publica,rivaled,civitas,beermen,constructivism,ribeira,zeitschrift,solanum,todos,deformities,chilliwack,verdean,meagre,bishoprics,gujrat,yangzhou,reentered,inboard,mythologies,virtus,unsurprisingly,rusticated,museu,symbolise,proportionate,thesaban,symbian,aeneid,mitotic,veliki,compressive,cisterns,abies,winemaker,massenet,bertolt,ahmednagar,triplemania,armorial,administracion,tenures,smokehouse,hashtag,fuerza,regattas,gennady,kanazawa,mahmudabad,crustal,asaph,valentinian,ilaiyaraaja,honeyeater,trapezoidal,cooperatively,unambiguously,mastodon,inhospitable,harnesses,riverton,renewables,djurgardens,haitians,airings,humanoids,boatswain,shijiazhuang,faints,veera,punjabis,steepest,narain,karlovy,serre,sulcus,collectives,1500m,arion,subarctic,liberally,apollonius,ostia,droplet,headstones,norra,robusta,maquis,veronese,imola,primers,luminance,escadrille,mizuki,irreconcilable,stalybridge,temur,paraffin,stuccoed,parthians,counsels,fundamentalists,vivendi,polymath,sugababes,mikko,yonne,fermions,vestfold,pastoralist,kigali,unseeded,glarus,cusps,amasya,northwesterly,minorca,astragalus,verney,trevelyan,antipathy,wollstonecraft,bivalves,boulez,royle,divisao,quranic,bareilly,coronal,deviates,lulea,erectus,petronas,chandan,proxies,aeroflot,postsynaptic,memoriam,moyne,gounod,kuznetsova,pallava,ordinating,reigate,'first,lewisburg,exploitative,danby,academica,bailiwick,brahe,injective,stipulations,aeschylus,computes,gulden,hydroxylase,liveries,somalis,underpinnings,muscovite,kongsberg,domus,overlain,shareware,variegated,jalalabad,agence,ciphertext,insectivores,dengeki,menuhin,cladistic,baerum,betrothal,tokushima,wavelet,expansionist,pottsville,siyuan,prerequisites,carpi,nemzeti,nazar,trialled,eliminator,irrorated,homeward,redwoods,undeterred,strayed,lutyens,multicellular,aurelian,notated,lordships,alsatian,idents,foggia,garros,chalukyas,lillestrom,podlaski,pessimism,hsien,demilitarized,whitewashed,willesden,kirkcaldy,sanctorum,lamia,relaying,escondido,paediatric,contemplates,demarcated,bluestone,betula,penarol,capitalise,kreuznach,kenora,115th,hold'em,reichswehr,vaucluse,m.i.a,windings,boys/girls,cajon,hisar,predictably,flemington,ysgol,mimicked,clivina,grahamstown,ionia,glyndebourne,patrese,aquaria,sleaford,dayal,sportscenter,malappuram,m.b.a.,manoa,carbines,solvable,designator,ramanujan,linearity,academicians,sayid,lancastrian,factorial,strindberg,vashem,delos,comyn,condensing,superdome,merited,kabaddi,intransitive,bideford,neuroimaging,duopoly,scorecards,ziggler,heriot,boyars,virology,marblehead,microtubules,westphalian,anticipates,hingham,searchers,harpist,rapides,morricone,convalescent,mises,nitride,metrorail,matterhorn,bicol,drivetrain,marketer,snippet,winemakers,muban,scavengers,halberstadt,herkimer,peten,laborious,stora,montgomeryshire,booklist,shamir,herault,eurostar,anhydrous,spacewalk,ecclesia,calliostoma,highschool,d'oro,suffusion,imparts,overlords,tagus,rectifier,counterinsurgency,ministered,eilean,milecastle,contre,micromollusk,okhotsk,bartoli,matroid,hasidim,thirunal,terme,tarlac,lashkar,presque,thameslink,flyby,troopship,renouncing,fatih,messrs,vexillum,bagration,magnetite,bornholm,androgynous,vehement,tourette,philosophic,gianfranco,tuileries,codice_6,radially,flexion,hants,reprocessing,setae,burne,palaeographically,infantryman,shorebirds,tamarind,moderna,threading,militaristic,crohn,norrkoping,125cc,stadtholder,troms,klezmer,alphanumeric,brome,emmanuelle,tiwari,alchemical,formula_52,onassis,bleriot,bipedal,colourless,hermeneutics,hosni,precipitating,turnstiles,hallucinogenic,panhellenic,wyandotte,elucidated,chita,ehime,generalised,hydrophilic,biota,niobium,rnzaf,gandhara,longueuil,logics,sheeting,bielsko,cuvier,kagyu,trefoil,docent,pancrase,stalinism,postures,encephalopathy,monckton,imbalances,epochs,leaguers,anzio,diminishes,pataki,nitrite,amuro,nabil,maybach,l'aquila,babbler,bacolod,thutmose,evora,gaudi,breakage,recur,preservative,60deg,mendip,functionaries,columnar,maccabiah,chert,verden,bromsgrove,clijsters,dengue,pastorate,phuoc,principia,viareggio,kharagpur,scharnhorst,anyang,bosons,l'art,criticises,ennio,semarang,brownian,mirabilis,asperger,calibers,typographical,cartooning,minos,disembark,supranational,undescribed,etymologically,alappuzha,vilhelm,lanao,pakenham,bhagavata,rakoczi,clearings,astrologers,manitowoc,bunuel,acetylene,scheduler,defamatory,trabzonspor,leaded,scioto,pentathlete,abrahamic,minigames,aldehydes,peerages,legionary,1640s,masterworks,loudness,bryansk,likeable,genocidal,vegetated,towpath,declination,pyrrhus,divinely,vocations,rosebery,associazione,loaders,biswas,oeste,tilings,xianzong,bhojpuri,annuities,relatedness,idolator,psers,constriction,chuvash,choristers,hanafi,fielders,grammarian,orpheum,asylums,millbrook,gyatso,geldof,stabilise,tableaux,diarist,kalahari,panini,cowdenbeath,melanin,4x100m,resonances,pinar,atherosclerosis,sheringham,castlereagh,aoyama,larks,pantograph,protrude,natak,gustafsson,moribund,cerevisiae,cleanly,polymeric,holkar,cosmonauts,underpinning,lithosphere,firuzabad,languished,mingled,citrate,spadina,lavas,daejeon,fibrillation,porgy,pineville,ps1000,cobbled,emamzadeh,mukhtar,dampers,indelible,salonika,nanoscale,treblinka,eilat,purporting,fluctuate,mesic,hagiography,cutscenes,fondation,barrens,comically,accrue,ibrox,makerere,defections,'there,hollandia,skene,grosseto,reddit,objectors,inoculation,rowdies,playfair,calligrapher,namor,sibenik,abbottabad,propellants,hydraulically,chloroplasts,tablelands,tecnico,schist,klasse,shirvan,bashkortostan,bullfighting,north/south,polski,hanns,woodblock,kilmore,ejecta,ignacy,nanchang,danubian,commendations,snohomish,samaritans,argumentation,vasconcelos,hedgehogs,vajrayana,barents,kulkarni,kumbakonam,identifications,hillingdon,weirs,nayanar,beauvoir,messe,divisors,atlantiques,broods,affluence,tegucigalpa,unsuited,autodesk,akash,princeps,culprits,kingstown,unassuming,goole,visayan,asceticism,blagojevich,irises,paphos,unsound,maurier,pontchartrain,desertification,sinfonietta,latins,especial,limpet,valerenga,glial,brainstem,mitral,parables,sauropod,judean,iskcon,sarcoma,venlo,justifications,zhuhai,blavatsky,alleviated,usafe,steppenwolf,inversions,janko,chagall,secretory,basildon,saguenay,pergamon,hemispherical,harmonized,reloading,franjo,domaine,extravagance,relativism,metamorphosed,labuan,baloncesto,gmail,byproducts,calvinists,counterattacked,vitus,bubonic,120th,strachey,ritually,brookwood,selectable,savinja,incontinence,meltwater,jinja,1720s,brahmi,morgenthau,sheaves,sleeved,stratovolcano,wielki,utilisation,avoca,fluxus,panzergrenadier,philately,deflation,podlaska,prerogatives,kuroda,theophile,zhongzong,gascoyne,magus,takao,arundell,fylde,merdeka,prithviraj,venkateswara,liepaja,daigo,dreamland,reflux,sunnyvale,coalfields,seacrest,soldering,flexor,structuralism,alnwick,outweighed,unaired,mangeshkar,batons,glaad,banshees,irradiated,organelles,biathlete,cabling,chairlift,lollapalooza,newsnight,capacitive,succumbs,flatly,miramichi,burwood,comedienne,charteris,biotic,workspace,aficionados,sokolka,chatelet,o'shaughnessy,prosthesis,neoliberal,refloated,oppland,hatchlings,econometrics,loess,thieu,androids,appalachians,jenin,pterostichinae,downsized,foils,chipsets,stencil,danza,narrate,maginot,yemenite,bisects,crustacean,prescriptive,melodious,alleviation,empowers,hansson,autodromo,obasanjo,osmosis,daugava,rheumatism,moraes,leucine,etymologies,chepstow,delaunay,bramall,bajaj,flavoring,approximates,marsupials,incisive,microcomputer,tactically,waals,wilno,fisichella,ursus,hindmarsh,mazarin,lomza,xenophobia,lawlessness,annecy,wingers,gornja,gnaeus,superieur,tlaxcala,clasps,symbolises,slats,rightist,effector,blighted,permanence,divan,progenitors,kunsthalle,anointing,excelling,coenzyme,indoctrination,dnipro,landholdings,adriaan,liturgies,cartan,ethmia,attributions,sanctus,trichy,chronicon,tancred,affinis,kampuchea,gantry,pontypool,membered,distrusted,fissile,dairies,hyposmocoma,craigie,adarsh,martinsburg,taxiway,30deg,geraint,vellum,bencher,khatami,formula_53,zemun,teruel,endeavored,palmares,pavements,u.s..,internationalization,satirized,carers,attainable,wraparound,muang,parkersburg,extinctions,birkenfeld,wildstorm,payers,cohabitation,unitas,culloden,capitalizing,clwyd,daoist,campinas,emmylou,orchidaceae,halakha,orientales,fealty,domnall,chiefdom,nigerians,ladislav,dniester,avowed,ergonomics,newsmagazine,kitsch,cantilevered,benchmarking,remarriage,alekhine,coldfield,taupo,almirante,substations,apprenticeships,seljuq,levelling,eponym,symbolising,salyut,opioids,underscore,ethnologue,mohegan,marikina,libro,bassano,parse,semantically,disjointed,dugdale,padraig,tulsi,modulating,xfinity,headlands,mstislav,earthworms,bourchier,lgbtq,embellishments,pennants,rowntree,betel,motet,mulla,catenary,washoe,mordaunt,dorking,colmar,girardeau,glentoran,grammatically,samad,recreations,technion,staccato,mikoyan,spoilers,lyndhurst,victimization,chertsey,belafonte,tondo,tonsberg,narrators,subcultures,malformations,edina,augmenting,attests,euphemia,cabriolet,disguising,1650s,navarrese,demoralized,cardiomyopathy,welwyn,wallachian,smoothness,planktonic,voles,issuers,sardasht,survivability,cuauhtemoc,thetis,extruded,signet,raghavan,lombok,eliyahu,crankcase,dissonant,stolberg,trencin,desktops,bursary,collectivization,charlottenburg,triathlete,curvilinear,involuntarily,mired,wausau,invades,sundaram,deletions,bootstrap,abellio,axiomatic,noguchi,setups,malawian,visalia,materialist,kartuzy,wenzong,plotline,yeshivas,parganas,tunica,citric,conspecific,idlib,superlative,reoccupied,blagoevgrad,masterton,immunological,hatta,courbet,vortices,swallowtail,delves,haridwar,diptera,boneh,bahawalpur,angering,mardin,equipments,deployable,guanine,normality,rimmed,artisanal,boxset,chandrasekhar,jools,chenar,tanakh,carcassonne,belatedly,millville,anorthosis,reintegration,velde,surfactant,kanaan,busoni,glyphipterix,personas,fullness,rheims,tisza,stabilizers,bharathi,joost,spinola,mouldings,perching,esztergom,afzal,apostate,lustre,s.league,motorboat,monotheistic,armature,barat,asistencia,bloomsburg,hippocampal,fictionalised,defaults,broch,hexadecimal,lusignan,ryanair,boccaccio,breisgau,southbank,bskyb,adjoined,neurobiology,aforesaid,sadhu,langue,headship,wozniacki,hangings,regulus,prioritized,dynamism,allier,hannity,shimin,antoninus,gymnopilus,caledon,preponderance,melayu,electrodynamics,syncopated,ibises,krosno,mechanistic,morpeth,harbored,albini,monotheism,'real,hyperactivity,haveli,writer/director,minato,nimoy,caerphilly,chitral,amirabad,fanshawe,l'oreal,lorde,mukti,authoritarianism,valuing,spyware,hanbury,restarting,stato,embed,suiza,empiricism,stabilisation,stari,castlemaine,orbis,manufactory,mauritanian,shoji,taoyuan,prokaryotes,oromia,ambiguities,embodying,slims,frente,innovate,ojibwa,powdery,gaeltacht,argentinos,quatermass,detergents,fijians,adaptor,tokai,chileans,bulgars,oxidoreductases,bezirksliga,conceicao,myosin,nellore,500cc,supercomputers,approximating,glyndwr,polypropylene,haugesund,cockerell,tudman,ashbourne,hindemith,bloodlines,rigveda,etruria,romanos,steyn,oradea,deceleration,manhunter,laryngeal,fraudulently,janez,wendover,haplotype,janaki,naoki,belizean,mellencamp,cartographic,sadhana,tricolour,pseudoscience,satara,bytow,s.p.a.,jagdgeschwader,arcot,omagh,sverdrup,masterplan,surtees,apocrypha,ahvaz,d'amato,socratic,leumit,unnumbered,nandini,witold,marsupial,coalesced,interpolated,gimnasia,karadzic,keratin,mamoru,aldeburgh,speculator,escapement,irfan,kashyap,satyajit,haddington,solver,rothko,ashkelon,kickapoo,yeomen,superbly,bloodiest,greenlandic,lithic,autofocus,yardbirds,poona,keble,javan,sufis,expandable,tumblr,ursuline,swimwear,winwood,counsellors,aberrations,marginalised,befriending,workouts,predestination,varietal,siddhartha,dunkeld,judaic,esquimalt,shabab,ajith,telefonica,stargard,hoysala,radhakrishnan,sinusoidal,strada,hiragana,cebuano,monoid,independencia,floodwaters,mildura,mudflats,ottokar,translit,radix,wigner,philosophically,tephritid,synthesizing,castletown,installs,stirner,resettle,bushfire,choirmaster,kabbalistic,shirazi,lightship,rebus,colonizers,centrifuge,leonean,kristofferson,thymus,clackamas,ratnam,rothesay,municipally,centralia,thurrock,gulfport,bilinear,desirability,merite,psoriasis,macaw,erigeron,consignment,mudstone,distorting,karlheinz,ramen,tailwheel,vitor,reinsurance,edifices,superannuation,dormancy,contagion,cobden,rendezvoused,prokaryotic,deliberative,patricians,feigned,degrades,starlings,sopot,viticultural,beaverton,overflowed,convener,garlands,michiel,ternopil,naturelle,biplanes,bagot,gamespy,ventspils,disembodied,flattening,profesional,londoners,arusha,scapular,forestall,pyridine,ulema,eurodance,aruna,callus,periodontal,coetzee,immobilized,o'meara,maharani,katipunan,reactants,zainab,microgravity,saintes,britpop,carrefour,constrain,adversarial,firebirds,brahmo,kashima,simca,surety,surpluses,superconductivity,gipuzkoa,cumans,tocantins,obtainable,humberside,roosting,'king,formula_54,minelayer,bessel,sulayman,cycled,biomarkers,annealing,shusha,barda,cassation,djing,polemics,tuple,directorates,indomitable,obsolescence,wilhelmine,pembina,bojan,tambo,dioecious,pensioner,magnificat,1660s,estrellas,southeasterly,immunodeficiency,railhead,surreptitiously,codeine,encores,religiosity,tempera,camberley,efendi,boardings,malleable,hagia,input/output,lucasfilm,ujjain,polymorphisms,creationist,berners,mickiewicz,irvington,linkedin,endures,kinect,munition,apologetics,fairlie,predicated,reprinting,ethnographer,variances,levantine,mariinsky,jadid,jarrow,asia/oceania,trinamool,waveforms,bisexuality,preselection,pupae,buckethead,hieroglyph,lyricists,marionette,dunbartonshire,restorer,monarchical,pazar,kickoffs,cabildo,savannas,gliese,dench,spoonbills,novelette,diliman,hypersensitivity,authorising,montefiore,mladen,qu'appelle,theistic,maruti,laterite,conestoga,saare,californica,proboscis,carrickfergus,imprecise,hadassah,baghdadi,jolgeh,deshmukh,amusements,heliopolis,berle,adaptability,partenkirchen,separations,baikonur,cardamom,southeastward,southfield,muzaffar,adequacy,metropolitana,rajkot,kiyoshi,metrobus,evictions,reconciles,librarianship,upsurge,knightley,badakhshan,proliferated,spirituals,burghley,electroacoustic,professing,featurette,reformists,skylab,descriptors,oddity,greyfriars,injects,salmond,lanzhou,dauntless,subgenera,underpowered,transpose,mahinda,gatos,aerobatics,seaworld,blocs,waratahs,joris,giggs,perfusion,koszalin,mieczyslaw,ayyubid,ecologists,modernists,sant'angelo,quicktime,him/her,staves,sanyo,melaka,acrocercops,qigong,iterated,generalizes,recuperation,vihara,circassians,psychical,chavo,memoires,infiltrates,notaries,pelecaniformesfamily,strident,chivalric,pierrepont,alleviating,broadsides,centipede,b.tech,reinterpreted,sudetenland,hussite,covenanters,radhika,ironclads,gainsbourg,testis,penarth,plantar,azadegan,beano,espn.com,leominster,autobiographies,nbcuniversal,eliade,khamenei,montferrat,undistinguished,ethnological,wenlock,fricatives,polymorphic,biome,joule,sheaths,astrophysicist,salve,neoclassicism,lovat,downwind,belisarius,forma,usurpation,freie,depopulation,backbench,ascenso,'high,aagpbl,gdanski,zalman,mouvement,encapsulation,bolshevism,statny,voyageurs,hywel,vizcaya,mazra'eh,narthex,azerbaijanis,cerebrospinal,mauretania,fantail,clearinghouse,bolingbroke,pequeno,ansett,remixing,microtubule,wrens,jawahar,palembang,gambian,hillsong,fingerboard,repurposed,sundry,incipient,veolia,theologically,ulaanbaatar,atsushi,foundling,resistivity,myeloma,factbook,mazowiecka,diacritic,urumqi,clontarf,provokes,intelsat,professes,materialise,portobello,benedictines,panionios,introverted,reacquired,bridport,mammary,kripke,oratorios,vlore,stoning,woredas,unreported,antti,togolese,fanzines,heuristics,conservatories,carburetors,clitheroe,cofounded,formula_57,erupting,quinnipiac,bootle,ghostface,sittings,aspinall,sealift,transferase,boldklub,siskiyou,predominated,francophonie,ferruginous,castrum,neogene,sakya,madama,precipitous,'love,posix,bithynia,uttara,avestan,thrushes,seiji,memorably,septimius,libri,cibernetico,hyperinflation,dissuaded,cuddalore,peculiarity,vaslui,grojec,albumin,thurles,casks,fasteners,fluidity,buble,casals,terek,gnosticism,cognates,ulnar,radwanska,babylonians,majuro,oxidizer,excavators,rhythmically,liffey,gorakhpur,eurydice,underscored,arborea,lumumba,tuber,catholique,grama,galilei,scrope,centreville,jacobin,bequests,ardeche,polygamous,montauban,terai,weatherboard,readability,attainder,acraea,transversely,rivets,winterbottom,reassures,bacteriology,vriesea,chera,andesite,dedications,homogenous,reconquered,bandon,forrestal,ukiyo,gurdjieff,tethys,sparc,muscogee,grebes,belchatow,mansa,blantyre,palliser,sokolow,fibroblasts,exmoor,misaki,soundscapes,housatonic,middelburg,convenor,leyla,antipope,histidine,okeechobee,alkenes,sombre,alkene,rubik,macaques,calabar,trophee,pinchot,'free,frusciante,chemins,falaise,vasteras,gripped,schwarzenberg,cumann,kanchipuram,acoustically,silverbacks,fangio,inset,plympton,kuril,vaccinations,recep,theropods,axils,stavropol,encroached,apoptotic,papandreou,wailers,moonstone,assizes,micrometers,hornchurch,truncation,annapurna,egyptologists,rheumatic,promiscuity,satiric,fleche,caloptilia,anisotropy,quaternions,gruppo,viscounts,awardees,aftershocks,sigint,concordance,oblasts,gaumont,stent,commissars,kesteven,hydroxy,vijayanagar,belorussian,fabricius,watermark,tearfully,mamet,leukaemia,sorkh,milepost,tattooing,vosta,abbasids,uncompleted,hedong,woodwinds,extinguishing,malus,multiplexes,francoist,pathet,responsa,bassists,'most,postsecondary,ossory,grampian,saakashvili,alito,strasberg,impressionistic,volador,gelatinous,vignette,underwing,campanian,abbasabad,albertville,hopefuls,nieuwe,taxiways,reconvened,recumbent,pathologists,unionized,faversham,asymptotically,romulo,culling,donja,constricted,annesley,duomo,enschede,lovech,sharpshooter,lansky,dhamma,papillae,alanine,mowat,delius,wrest,mcluhan,podkarpackie,imitators,bilaspur,stunting,pommel,casemate,handicaps,nagas,testaments,hemings,necessitate,rearward,locative,cilla,klitschko,lindau,merion,consequential,antic,soong,copula,berthing,chevrons,rostral,sympathizer,budokan,ranulf,beria,stilt,replying,conflated,alcibiades,painstaking,yamanashi,calif.,arvid,ctesiphon,xizong,rajas,caxton,downbeat,resurfacing,rudders,miscegenation,deathmatch,foregoing,arthropod,attestation,karts,reapportionment,harnessing,eastlake,schola,dosing,postcolonial,imtiaz,formula_55,insulators,gunung,accumulations,pampas,llewelyn,bahnhof,cytosol,grosjean,teaneck,briarcliff,arsenio,canara,elaborating,passchendaele,searchlights,holywell,mohandas,preventable,gehry,mestizos,ustinov,cliched,'national,heidfeld,tertullian,jihadist,tourer,miletus,semicircle,outclassed,bouillon,cardinalate,clarifies,dakshina,bilayer,pandyan,unrwa,chandragupta,formula_56,portola,sukumaran,lactation,islamia,heikki,couplers,misappropriation,catshark,montt,ploughs,carib,stator,leaderboard,kenrick,dendrites,scape,tillamook,molesworth,mussorgsky,melanesia,restated,troon,glycoside,truckee,headwater,mashup,sectoral,gangwon,docudrama,skirting,psychopathology,dramatised,ostroleka,infestations,thabo,depolarization,wideroe,eisenbahn,thomond,kumaon,upendra,foreland,acronyms,yaqui,retaking,raphaelite,specie,dupage,villars,lucasarts,chloroplast,werribee,balsa,ascribe,havant,flava,khawaja,tyumen,subtract,interrogators,reshaping,buzzcocks,eesti,campanile,potemkin,apertures,snowboarder,registrars,handbooks,boyar,contaminant,depositors,proximate,jeunesse,zagora,pronouncements,mists,nihilism,deified,margraviate,pietersen,moderators,amalfi,adjectival,copepods,magnetosphere,pallets,clemenceau,castra,perforation,granitic,troilus,grzegorz,luthier,dockyards,antofagasta,ffestiniog,subroutine,afterword,waterwheel,druce,nitin,undifferentiated,emacs,readmitted,barneveld,tapers,hittites,infomercials,infirm,braathens,heligoland,carpark,geomagnetic,musculoskeletal,nigerien,machinima,harmonize,repealing,indecency,muskoka,verite,steubenville,suffixed,cytoskeleton,surpasses,harmonia,imereti,ventricles,heterozygous,envisions,otsego,ecoles,warrnambool,burgenland,seria,rawat,capistrano,welby,kirin,enrollments,caricom,dragonlance,schaffhausen,expanses,photojournalism,brienne,etude,referent,jamtland,schemas,xianbei,cleburne,bicester,maritima,shorelines,diagonals,bjelke,nonpublic,aliasing,m.f.a,ovals,maitreya,skirmishing,grothendieck,sukhothai,angiotensin,bridlington,durgapur,contras,gakuen,skagit,rabbinate,tsunamis,haphazard,tyldesley,microcontroller,discourages,hialeah,compressing,septimus,larvik,condoleezza,psilocybin,protectionism,songbirds,clandestinely,selectmen,wargame,cinemascope,khazars,agronomy,melzer,latifah,cherokees,recesses,assemblymen,basescu,banaras,bioavailability,subchannels,adenine,o'kelly,prabhakar,leonese,dimethyl,testimonials,geoffroy,oxidant,universiti,gheorghiu,bohdan,reversals,zamorin,herbivore,jarre,sebastiao,infanterie,dolmen,teddington,radomsko,spaceships,cuzco,recapitulation,mahoning,bainimarama,myelin,aykroyd,decals,tokelau,nalgonda,rajasthani,121st,quelled,tambov,illyrians,homilies,illuminations,hypertrophy,grodzisk,inundation,incapacity,equilibria,combats,elihu,steinitz,berengar,gowda,canwest,khosrau,maculata,houten,kandinsky,onside,leatherhead,heritable,belvidere,federative,chukchi,serling,eruptive,patan,entitlements,suffragette,evolutions,migrates,demobilisation,athleticism,trope,sarpsborg,kensal,translink,squamish,concertgebouw,energon,timestamp,competences,zalgiris,serviceman,codice_7,spoofing,assange,mahadevan,skien,suceava,augustan,revisionism,unconvincing,hollande,drina,gottlob,lippi,broglie,darkening,tilapia,eagerness,nacht,kolmogorov,photometric,leeuwarden,jrotc,haemorrhage,almanack,cavalli,repudiation,galactose,zwickau,cetinje,houbraken,heavyweights,gabonese,ordinals,noticias,museveni,steric,charaxes,amjad,resection,joinville,leczyca,anastasius,purbeck,subtribe,dalles,leadoff,monoamine,jettisoned,kaori,anthologized,alfreton,indic,bayezid,tottori,colonizing,assassinating,unchanging,eusebian,d'estaing,tsingtao,toshio,transferases,peronist,metrology,equus,mirpur,libertarianism,kovil,indole,'green,abstention,quantitatively,icebreakers,tribals,mainstays,dryandra,eyewear,nilgiri,chrysanthemum,inositol,frenetic,merchantman,hesar,physiotherapist,transceiver,dancefloor,rankine,neisse,marginalization,lengthen,unaided,rework,pageantry,savio,striated,funen,witton,illuminates,frass,hydrolases,akali,bistrita,copywriter,firings,handballer,tachinidae,dmytro,coalesce,neretva,menem,moraines,coatbridge,crossrail,spoofed,drosera,ripen,protour,kikuyu,boleslav,edwardes,troubadours,haplogroups,wrasse,educationalist,sroda,khaneh,dagbladet,apennines,neuroscientist,deplored,terje,maccabees,daventry,spaceport,lessening,ducats,singer/guitarist,chambersburg,yeong,configurable,ceremonially,unrelenting,caffe,graaf,denizens,kingsport,ingush,panhard,synthesised,tumulus,homeschooled,bozorg,idiomatic,thanhouser,queensway,radek,hippolytus,inking,banovina,peacocks,piaui,handsworth,pantomimes,abalone,thera,kurzweil,bandura,augustinians,bocelli,ferrol,jiroft,quadrature,contravention,saussure,rectification,agrippina,angelis,matanzas,nidaros,palestrina,latium,coriolis,clostridium,ordain,uttering,lanchester,proteolytic,ayacucho,merseburg,holbein,sambalpur,algebraically,inchon,ostfold,savoia,calatrava,lahiri,judgeship,ammonite,masaryk,meyerbeer,hemorrhagic,superspeedway,ningxia,panicles,encircles,khmelnytsky,profusion,esher,babol,inflationary,anhydride,gaspe,mossy,periodicity,nacion,meteorologists,mahjong,interventional,sarin,moult,enderby,modell,palgrave,warners,montcalm,siddha,functionalism,rilke,politicized,broadmoor,kunste,orden,brasileira,araneta,eroticism,colquhoun,mamba,blacktown,tubercle,seagrass,manoel,camphor,neoregelia,llandudno,annexe,enplanements,kamien,plovers,statisticians,iturbide,madrasah,nontrivial,publican,landholders,manama,uninhabitable,revivalist,trunkline,friendliness,gurudwara,rocketry,unido,tripos,besant,braque,evolutionarily,abkhazian,staffel,ratzinger,brockville,bohemond,intercut,djurgarden,utilitarianism,deploys,sastri,absolutism,subhas,asghar,fictions,sepinwall,proportionately,titleholders,thereon,foursquare,machinegun,knightsbridge,siauliai,aqaba,gearboxes,castaways,weakens,phallic,strzelce,buoyed,ruthenia,pharynx,intractable,neptunes,koine,leakey,netherlandish,preempted,vinay,terracing,instigating,alluvium,prosthetics,vorarlberg,politiques,joinery,reduplication,nebuchadnezzar,lenticular,banka,seaborne,pattinson,helpline,aleph,beckenham,californians,namgyal,franziska,aphid,branagh,transcribe,appropriateness,surakarta,takings,propagates,juraj,b0d3fb,brera,arrayed,tailback,falsehood,hazleton,prosody,egyptology,pinnate,tableware,ratan,camperdown,ethnologist,tabari,classifiers,biogas,126th,kabila,arbitron,apuestas,membranous,kincardine,oceana,glories,natick,populism,synonymy,ghalib,mobiles,motherboards,stationers,germinal,patronised,formula_58,gaborone,torts,jeezy,interleague,novaya,batticaloa,offshoots,wilbraham,filename,nswrfl,'well,trilobite,pythons,optimally,scientologists,rhesus,pilsen,backdrops,batang,unionville,hermanos,shrikes,fareham,outlawing,discontinuing,boisterous,shamokin,scanty,southwestward,exchangers,unexpired,mewar,h.m.s,saldanha,pawan,condorcet,turbidity,donau,indulgences,coincident,cliques,weeklies,bardhaman,violators,kenai,caspase,xperia,kunal,fistula,epistemic,cammell,nephi,disestablishment,rotator,germaniawerft,pyaar,chequered,jigme,perlis,anisotropic,popstars,kapil,appendices,berat,defecting,shacks,wrangel,panchayath,gorna,suckling,aerosols,sponheim,talal,borehole,encodings,enlai,subduing,agong,nadar,kitsap,syrmia,majumdar,pichilemu,charleville,embryology,booting,literati,abutting,basalts,jussi,repubblica,hertogenbosch,digitization,relents,hillfort,wiesenthal,kirche,bhagwan,bactrian,oases,phyla,neutralizing,helsing,ebooks,spearheading,margarine,'golden,phosphor,picea,stimulants,outliers,timescale,gynaecology,integrator,skyrocketed,bridgnorth,senecio,ramachandra,suffragist,arrowheads,aswan,inadvertent,microelectronics,118th,sofer,kubica,melanesian,tuanku,balkh,vyborg,crystallographic,initiators,metamorphism,ginzburg,looters,unimproved,finistere,newburyport,norges,immunities,franchisees,asterism,kortrijk,camorra,komsomol,fleurs,draughts,patagonian,voracious,artin,collaborationist,revolucion,revitalizing,xaver,purifying,antipsychotic,disjunct,pompeius,dreamwave,juvenal,beinn,adiyaman,antitank,allama,boletus,melanogaster,dumitru,caproni,aligns,athabaskan,stobart,phallus,veikkausliiga,hornsey,buffering,bourbons,dobruja,marga,borax,electrics,gangnam,motorcyclist,whidbey,draconian,lodger,galilean,sanctification,imitates,boldness,underboss,wheatland,cantabrian,terceira,maumee,redefining,uppercase,ostroda,characterise,universalism,equalized,syndicalism,haringey,masovia,deleuze,funkadelic,conceals,thuan,minsky,pluralistic,ludendorff,beekeeping,bonfires,endoscopic,abuts,prebend,jonkoping,amami,tribunes,yup'ik,awadh,gasification,pforzheim,reforma,antiwar,vaishnavism,maryville,inextricably,margrethe,empresa,neutrophils,sanctified,ponca,elachistidae,curiae,quartier,mannar,hyperplasia,wimax,busing,neologism,florins,underrepresented,digitised,nieuw,cooch,howards,frege,hughie,plied,swale,kapellmeister,vajpayee,quadrupled,aeronautique,dushanbe,custos,saltillo,kisan,tigray,manaus,epigrams,shamanic,peppered,frosts,promotion/relegation,concedes,zwingli,charentes,whangarei,hyung,spring/summer,sobre,eretz,initialization,sawai,ephemera,grandfathered,arnaldo,customised,permeated,parapets,growths,visegrad,estudios,altamont,provincia,apologises,stoppard,carburettor,rifts,kinematic,zhengzhou,eschatology,prakrit,folate,yvelines,scapula,stupas,rishon,reconfiguration,flutist,1680s,apostolate,proudhon,lakshman,articulating,stortford,faithfull,bitterns,upwelling,qur'anic,lidar,interferometry,waterlogged,koirala,ditton,wavefunction,fazal,babbage,antioxidants,lemberg,deadlocked,tolled,ramapo,mathematica,leiria,topologies,khali,photonic,balti,1080p,corrects,recommenced,polyglot,friezes,tiebreak,copacabana,cholmondeley,armband,abolishment,sheamus,buttes,glycolysis,cataloged,warrenton,sassari,kishan,foodservice,cryptanalysis,holmenkollen,cosplay,machi,yousuf,mangal,allying,fertiliser,otomi,charlevoix,metallurg,parisians,bottlenose,oakleigh,debug,cidade,accede,ligation,madhava,pillboxes,gatefold,aveyron,sorin,thirsk,immemorial,menelik,mehra,domingos,underpinned,fleshed,harshness,diphthong,crestwood,miskolc,dupri,pyrausta,muskingum,tuoba,prodi,incidences,waynesboro,marquesas,heydar,artesian,calinescu,nucleation,funders,covalently,compaction,derbies,seaters,sodor,tabular,amadou,peckinpah,o'halloran,zechariah,libyans,kartik,daihatsu,chandran,erzhu,heresies,superheated,yarder,dorde,tanjore,abusers,xuanwu,juniperus,moesia,trusteeship,birdwatching,beatz,moorcock,harbhajan,sanga,choreographic,photonics,boylston,amalgamate,prawns,electrifying,sarath,inaccurately,exclaims,powerpoint,chaining,cpusa,adulterous,saccharomyces,glogow,vfl/afl,syncretic,simla,persisting,functors,allosteric,euphorbiaceae,juryo,mlada,moana,gabala,thornycroft,kumanovo,ostrovsky,sitio,tutankhamun,sauropods,kardzhali,reinterpretation,sulpice,rosyth,originators,halesowen,delineation,asesoria,abatement,gardai,elytra,taillights,overlays,monsoons,sandpipers,ingmar,henrico,inaccuracy,irwell,arenabowl,elche,pressburg,signalman,interviewees,sinkhole,pendle,ecommerce,cellos,nebria,organometallic,surrealistic,propagandist,interlaken,canandaigua,aerials,coutinho,pascagoula,tonopah,letterkenny,gropius,carbons,hammocks,childe,polities,hosiery,donitz,suppresses,diaghilev,stroudsburg,bagram,pistoia,regenerating,unitarians,takeaway,offstage,vidin,glorification,bakunin,yavapai,lutzow,sabercats,witney,abrogated,gorlitz,validating,dodecahedron,stubbornly,telenor,glaxosmithkline,solapur,undesired,jellicoe,dramatization,four-and-a-half,seawall,waterpark,artaxerxes,vocalization,typographic,byung,sachsenhausen,shepparton,kissimmee,konnan,belsen,dhawan,khurd,mutagenesis,vejle,perrot,estradiol,formula_60,saros,chiloe,misiones,lamprey,terrains,speke,miasto,eigenvectors,haydock,reservist,corticosteroids,savitri,shinawatra,developmentally,yehudi,berates,janissaries,recapturing,rancheria,subplots,gresley,nikkatsu,oryol,cosmas,boavista,formula_59,playfully,subsections,commentated,kathakali,dorid,vilaine,seepage,hylidae,keiji,kazakhs,triphosphate,1620s,supersede,monarchists,falla,miyako,notching,bhumibol,polarizing,secularized,shingled,bronislaw,lockerbie,soleyman,bundesbahn,latakia,redoubts,boult,inwardly,invents,ondrej,minangkabau,newquay,permanente,alhaji,madhav,malini,ellice,bookmaker,mankiewicz,etihad,o'dea,interrogative,mikawa,wallsend,canisius,bluesy,vitruvius,noord,ratifying,mixtec,gujranwala,subprefecture,keelung,goiania,nyssa,shi'ite,semitone,ch'uan,computerised,pertuan,catapults,nepomuk,shruti,millstones,buskerud,acolytes,tredegar,sarum,armia,dell'arte,devises,custodians,upturned,gallaudet,disembarking,thrashed,sagrada,myeon,undeclared,qumran,gaiden,tepco,janesville,showground,condense,chalon,unstaffed,pasay,undemocratic,hauts,viridis,uninjured,escutcheon,gymkhana,petaling,hammam,dislocations,tallaght,rerum,shias,indios,guaranty,simplicial,benares,benediction,tajiri,prolifically,huawei,onerous,grantee,ferencvaros,otranto,carbonates,conceit,digipak,qadri,masterclasses,swamiji,cradock,plunket,helmsman,119th,salutes,tippecanoe,murshidabad,intelligibility,mittal,diversifying,bidar,asansol,crowdsourcing,rovere,karakoram,grindcore,skylights,tulagi,furrows,ligne,stuka,sumer,subgraph,amata,regionalist,bulkeley,teletext,glorify,readied,lexicographer,sabadell,predictability,quilmes,phenylalanine,bandaranaike,pyrmont,marksmen,quisling,viscountess,sociopolitical,afoul,pediments,swazi,martyrology,nullify,panagiotis,superconductors,veldenz,jujuy,l'isle,hematopoietic,shafi,subsea,hattiesburg,jyvaskyla,kebir,myeloid,landmine,derecho,amerindians,birkenau,scriabin,milhaud,mucosal,nikaya,freikorps,theoretician,proconsul,o'hanlon,clerked,bactria,houma,macular,topologically,shrubby,aryeh,ghazali,afferent,magalhaes,moduli,ashtabula,vidarbha,securitate,ludwigsburg,adoor,varun,shuja,khatun,chengde,bushels,lascelles,professionnelle,elfman,rangpur,unpowered,citytv,chojnice,quaternion,stokowski,aschaffenburg,commutes,subramaniam,methylene,satrap,gharb,namesakes,rathore,helier,gestational,heraklion,colliers,giannis,pastureland,evocation,krefeld,mahadeva,churchmen,egret,yilmaz,galeazzo,pudukkottai,artigas,generalitat,mudslides,frescoed,enfeoffed,aphorisms,melilla,montaigne,gauliga,parkdale,mauboy,linings,prema,sapir,xylophone,kushan,rockne,sequoyah,vasyl,rectilinear,vidyasagar,microcosm,san'a,carcinogen,thicknesses,aleut,farcical,moderating,detested,hegemonic,instalments,vauban,verwaltungsgemeinschaft,picayune,razorback,magellanic,moluccas,pankhurst,exportation,waldegrave,sufferer,bayswater,1up.com,rearmament,orangutans,varazdin,b.o.b,elucidate,harlingen,erudition,brankovic,lapis,slipway,urraca,shinde,unwell,elwes,euboea,colwyn,srivijaya,grandstands,hortons,generalleutnant,fluxes,peterhead,gandhian,reals,alauddin,maximized,fairhaven,endow,ciechanow,perforations,darters,panellist,manmade,litigants,exhibitor,tirol,caracalla,conformance,hotelier,stabaek,hearths,borac,frisians,ident,veliko,emulators,schoharie,uzbeks,samarra,prestwick,wadia,universita,tanah,bucculatrix,predominates,genotypes,denounces,roadsides,ganassi,keokuk,philatelist,tomic,ingots,conduits,samplers,abdus,johar,allegories,timaru,wolfpacks,secunda,smeaton,sportivo,inverting,contraindications,whisperer,moradabad,calamities,bakufu,soundscape,smallholders,nadeem,crossroad,xenophobic,zakir,nationalliga,glazes,retroflex,schwyz,moroder,rubra,quraysh,theodoros,endemol,infidels,km/hr,repositioned,portraitist,lluis,answerable,arges,mindedness,coarser,eyewall,teleported,scolds,uppland,vibraphone,ricoh,isenburg,bricklayer,cuttlefish,abstentions,communicable,cephalopod,stockyards,balto,kinston,armbar,bandini,elphaba,maxims,bedouins,sachsen,friedkin,tractate,pamir,ivanovo,mohini,kovalainen,nambiar,melvyn,orthonormal,matsuyama,cuernavaca,veloso,overstated,streamer,dravid,informers,analyte,sympathized,streetscape,gosta,thomasville,grigore,futuna,depleting,whelks,kiedis,armadale,earner,wynyard,dothan,animating,tridentine,sabri,immovable,rivoli,ariege,parley,clinker,circulates,junagadh,fraunhofer,congregants,180th,buducnost,formula_62,olmert,dedekind,karnak,bayernliga,mazes,sandpiper,ecclestone,yuvan,smallmouth,decolonization,lemmy,adjudicated,retiro,legia,benue,posit,acidification,wahab,taconic,floatplane,perchlorate,atria,wisbech,divestment,dallara,phrygia,palustris,cybersecurity,rebates,facie,mineralogical,substituent,proteges,fowey,mayenne,smoothbore,cherwell,schwarzschild,junin,murrumbidgee,smalltalk,d'orsay,emirati,calaveras,titusville,theremin,vikramaditya,wampanoag,burra,plaines,onegin,emboldened,whampoa,langa,soderbergh,arnaz,sowerby,arendal,godunov,pathanamthitta,damselfly,bestowing,eurosport,iconoclasm,outfitters,acquiesced,badawi,hypotension,ebbsfleet,annulus,sohrab,thenceforth,chagatai,necessitates,aulus,oddities,toynbee,uniontown,innervation,populaire,indivisible,rossellini,minuet,cyrene,gyeongju,chania,cichlids,harrods,1690s,plunges,abdullahi,gurkhas,homebuilt,sortable,bangui,rediff,incrementally,demetrios,medaille,sportif,svend,guttenberg,tubules,carthusian,pleiades,torii,hoppus,phenyl,hanno,conyngham,teschen,cronenberg,wordless,melatonin,distinctiveness,autos,freising,xuanzang,dunwich,satanism,sweyn,predrag,contractually,pavlovic,malaysians,micrometres,expertly,pannonian,abstaining,capensis,southwesterly,catchphrases,commercialize,frankivsk,normanton,hibernate,verso,deportees,dubliners,codice_8,condors,zagros,glosses,leadville,conscript,morrisons,usury,ossian,oulton,vaccinium,civet,ayman,codrington,hadron,nanometers,geochemistry,extractor,grigori,tyrrhenian,neocollyris,drooping,falsification,werft,courtauld,brigantine,orhan,chapultepec,supercopa,federalized,praga,havering,encampments,infallibility,sardis,pawar,undirected,reconstructionist,ardrossan,varuna,pastimes,archdiocesan,fledging,shenhua,molise,secondarily,stagnated,replicates,ciencias,duryodhana,marauding,ruislip,ilyich,intermixed,ravenswood,shimazu,mycorrhizal,icosahedral,consents,dunblane,follicular,pekin,suffield,muromachi,kinsale,gauche,businesspeople,thereto,watauga,exaltation,chelmno,gorse,proliferate,drainages,burdwan,kangra,transducers,inductor,duvalier,maguindanao,moslem,uncaf,givenchy,plantarum,liturgics,telegraphs,lukashenko,chenango,andante,novae,ironwood,faubourg,torme,chinensis,ambala,pietermaritzburg,virginians,landform,bottlenecks,o'driscoll,darbhanga,baptistery,ameer,needlework,naperville,auditoriums,mullingar,starrer,animatronic,topsoil,madura,cannock,vernet,santurce,catocala,ozeki,pontevedra,multichannel,sundsvall,strategists,medio,135th,halil,afridi,trelawny,caloric,ghraib,allendale,hameed,ludwigshafen,spurned,pavlo,palmar,strafed,catamarca,aveiro,harmonization,surah,predictors,solvay,mande,omnipresent,parenthesis,echolocation,equaling,experimenters,acyclic,lithographic,sepoys,katarzyna,sridevi,impoundment,khosrow,caesarean,nacogdoches,rockdale,lawmaker,caucasians,bahman,miyan,rubric,exuberance,bombastic,ductile,snowdonia,inlays,pinyon,anemones,hurries,hospitallers,tayyip,pulleys,treme,photovoltaics,testbed,polonium,ryszard,osgoode,profiting,ironwork,unsurpassed,nepticulidae,makai,lumbini,preclassic,clarksburg,egremont,videography,rehabilitating,ponty,sardonic,geotechnical,khurasan,solzhenitsyn,henna,phoenicia,rhyolite,chateaux,retorted,tomar,deflections,repressions,harborough,renan,brumbies,vandross,storia,vodou,clerkenwell,decking,universo,salon.com,imprisoning,sudwest,ghaziabad,subscribing,pisgah,sukhumi,econometric,clearest,pindar,yildirim,iulia,atlases,cements,remaster,dugouts,collapsible,resurrecting,batik,unreliability,thiers,conjunctions,colophon,marcher,placeholder,flagella,wolds,kibaki,viviparous,twelver,screenshots,aroostook,khadr,iconographic,itasca,jaume,basti,propounded,varro,be'er,jeevan,exacted,shrublands,creditable,brocade,boras,bittern,oneonta,attentional,herzliya,comprehensible,lakeville,discards,caxias,frankland,camerata,satoru,matlab,commutator,interprovincial,yorkville,benefices,nizami,edwardsville,amigaos,cannabinoid,indianola,amateurliga,pernicious,ubiquity,anarchic,novelties,precondition,zardari,symington,sargodha,headphone,thermopylae,mashonaland,zindagi,thalberg,loewe,surfactants,dobro,crocodilians,samhita,diatoms,haileybury,berwickshire,supercritical,sofie,snorna,slatina,intramolecular,agung,osteoarthritis,obstetric,teochew,vakhtang,connemara,deformations,diadem,ferruccio,mainichi,qualitatively,refrigerant,rerecorded,methylated,karmapa,krasinski,restatement,rouvas,cubitt,seacoast,schwarzkopf,homonymous,shipowner,thiamine,approachable,xiahou,160th,ecumenism,polistes,internazionali,fouad,berar,biogeography,texting,inadequately,'when,4kids,hymenoptera,emplaced,cognomen,bellefonte,supplant,michaelmas,uriel,tafsir,morazan,schweinfurt,chorister,ps400,nscaa,petipa,resolutely,ouagadougou,mascarene,supercell,konstanz,bagrat,harmonix,bergson,shrimps,resonators,veneta,camas,mynydd,rumford,generalmajor,khayyam,web.com,pappus,halfdan,tanana,suomen,yutaka,bibliographical,traian,silat,noailles,contrapuntal,agaricus,'special,minibuses,1670s,obadiah,deepa,rorschach,malolos,lymington,valuations,imperials,caballeros,ambroise,judicature,elegiac,sedaka,shewa,checksum,gosforth,legionaries,corneille,microregion,friedrichshafen,antonis,surnamed,mycelium,cantus,educations,topmost,outfitting,ivica,nankai,gouda,anthemic,iosif,supercontinent,antifungal,belarusians,mudaliar,mohawks,caversham,glaciated,basemen,stevan,clonmel,loughton,deventer,positivist,manipuri,tensors,panipat,changeup,impermeable,dubbo,elfsborg,maritimo,regimens,bikram,bromeliad,substratum,norodom,gaultier,queanbeyan,pompeo,redacted,eurocopter,mothballed,centaurs,borno,copra,bemidji,'home,sopron,neuquen,passo,cineplex,alexandrov,wysokie,mammoths,yossi,sarcophagi,congreve,petkovic,extraneous,waterbirds,slurs,indias,phaeton,discontented,prefaced,abhay,prescot,interoperable,nordisk,bicyclists,validly,sejong,litovsk,zanesville,kapitanleutnant,kerch,changeable,mcclatchy,celebi,attesting,maccoll,sepahan,wayans,veined,gaudens,markt,dansk,soane,quantized,petersham,forebears,nayarit,frenzied,queuing,bygone,viggo,ludwik,tanka,hanssen,brythonic,cornhill,primorsky,stockpiles,conceptualization,lampeter,hinsdale,mesoderm,bielsk,rosenheim,ultron,joffrey,stanwyck,khagan,tiraspol,pavelic,ascendant,empoli,metatarsal,descentralizado,masada,ligier,huseyin,ramadi,waratah,tampines,ruthenium,statoil,mladost,liger,grecian,multiparty,digraph,maglev,reconsideration,radiography,cartilaginous,taizu,wintered,anabaptist,peterhouse,shoghi,assessors,numerator,paulet,painstakingly,halakhic,rocroi,motorcycling,gimel,kryptonian,emmeline,cheeked,drawdown,lelouch,dacians,brahmana,reminiscence,disinfection,optimizations,golders,extensor,tsugaru,tolling,liman,gulzar,unconvinced,crataegus,oppositional,dvina,pyrolysis,mandan,alexius,prion,stressors,loomed,moated,dhivehi,recyclable,relict,nestlings,sarandon,kosovar,solvers,czeslaw,kenta,maneuverable,middens,berkhamsted,comilla,folkways,loxton,beziers,batumi,petrochemicals,optimised,sirjan,rabindra,musicality,rationalisation,drillers,subspaces,'live,bbwaa,outfielders,tsung,danske,vandalised,norristown,striae,kanata,gastroenterology,steadfastly,equalising,bootlegging,mannerheim,notodontidae,lagoa,commentating,peninsulas,chishti,seismology,modigliani,preceptor,canonically,awardee,boyaca,hsinchu,stiffened,nacelle,bogor,dryness,unobstructed,yaqub,scindia,peeters,irritant,ammonites,ferromagnetic,speechwriter,oxygenated,walesa,millais,canarian,faience,calvinistic,discriminant,rasht,inker,annexes,howth,allocates,conditionally,roused,regionalism,regionalbahn,functionary,nitrates,bicentenary,recreates,saboteurs,koshi,plasmids,thinned,124th,plainview,kardashian,neuville,victorians,radiates,127th,vieques,schoolmates,petru,tokusatsu,keying,sunaina,flamethrower,'bout,demersal,hosokawa,corelli,omniscient,o'doherty,niksic,reflectivity,transdev,cavour,metronome,temporally,gabba,nsaids,geert,mayport,hematite,boeotia,vaudreuil,torshavn,sailplane,mineralogist,eskisehir,practises,gallifrey,takumi,unease,slipstream,hedmark,paulinus,ailsa,wielkopolska,filmworks,adamantly,vinaya,facelifted,franchisee,augustana,toppling,velvety,crispa,stonington,histological,genealogist,tactician,tebow,betjeman,nyingma,overwinter,oberoi,rampal,overwinters,petaluma,lactarius,stanmore,balikpapan,vasant,inclines,laminate,munshi,sociedade,rabbah,septal,boyband,ingrained,faltering,inhumans,nhtsa,affix,l'ordre,kazuki,rossendale,mysims,latvians,slaveholders,basilicata,neuburg,assize,manzanillo,scrobipalpa,formula_61,belgique,pterosaurs,privateering,vaasa,veria,northport,pressurised,hobbyist,austerlitz,sahih,bhadra,siliguri,bistrica,bursaries,wynton,corot,lepidus,lully,libor,libera,olusegun,choline,mannerism,lymphocyte,chagos,duxbury,parasitism,ecowas,morotai,cancion,coniston,aggrieved,sputnikmusic,parle,ammonian,civilisations,malformation,cattaraugus,skyhawks,d'arc,demerara,bronfman,midwinter,piscataway,jogaila,threonine,matins,kohlberg,hubli,pentatonic,camillus,nigam,potro,unchained,chauvel,orangeville,cistercians,redeployment,xanthi,manju,carabinieri,pakeha,nikolaevich,kantakouzenos,sesquicentennial,gunships,symbolised,teramo,ballo,crusading,l'oeil,bharatpur,lazier,gabrovo,hysteresis,rothbard,chaumont,roundel,ma'mun,sudhir,queried,newts,shimane,presynaptic,playfield,taxonomists,sensitivities,freleng,burkinabe,orfeo,autovia,proselytizing,bhangra,pasok,jujutsu,heung,pivoting,hominid,commending,formula_64,epworth,christianized,oresund,hantuchova,rajputana,hilversum,masoretic,dayak,bakri,assen,magog,macromolecules,waheed,qaida,spassky,rumped,protrudes,preminger,misogyny,glencairn,salafi,lacunae,grilles,racemes,areva,alighieri,inari,epitomized,photoshoot,one-of-a-kind,tring,muralist,tincture,backwaters,weaned,yeasts,analytically,smaland,caltrans,vysocina,jamuna,mauthausen,175th,nouvelles,censoring,reggina,christology,gilad,amplifying,mehmood,johnsons,redirects,eastgate,sacrum,meteoric,riverbanks,guidebooks,ascribes,scoparia,iconoclastic,telegraphic,chine,merah,mistico,lectern,sheung,aethelstan,capablanca,anant,uspto,albatrosses,mymensingh,antiretroviral,clonal,coorg,vaillant,liquidator,gigas,yokai,eradicating,motorcyclists,waitakere,tandon,nears,montenegrins,250th,tatsuya,yassin,atheistic,syncretism,nahum,berisha,transcended,owensboro,lakshmana,abteilung,unadorned,nyack,overflows,harrisonburg,complainant,uematsu,frictional,worsens,sangguniang,abutment,bulwer,sarma,apollinaire,shippers,lycia,alentejo,porpoises,optus,trawling,augustow,blackwall,workbench,westmount,leaped,sikandar,conveniences,stornoway,culverts,zoroastrians,hristo,ansgar,assistive,reassert,fanned,compasses,delgada,maisons,arima,plonsk,verlaine,starstruck,rakhine,befell,spirally,wyclef,expend,colloquium,formula_63,albertus,bellarmine,handedness,holon,introns,movimiento,profitably,lohengrin,discoverers,awash,erste,pharisees,dwarka,oghuz,hashing,heterodox,uloom,vladikavkaz,linesman,rehired,nucleophile,germanicus,gulshan,songz,bayerische,paralympian,crumlin,enjoined,khanum,prahran,penitent,amersfoort,saranac,semisimple,vagrants,compositing,tualatin,oxalate,lavra,ironi,ilkeston,umpqua,calum,stretford,zakat,guelders,hydrazine,birkin,spurring,modularity,aspartate,sodermanland,hopital,bellary,legazpi,clasico,cadfael,hypersonic,volleys,pharmacokinetics,carotene,orientale,pausini,bataille,lunga,retailed,m.phil,mazowieckie,vijayan,rawal,sublimation,promissory,estimators,ploughed,conflagration,penda,segregationist,otley,amputee,coauthor,sopra,pellew,wreckers,tollywood,circumscription,permittivity,strabane,landward,articulates,beaverbrook,rutherglen,coterminous,whistleblowers,colloidal,surbiton,atlante,oswiecim,bhasa,lampooned,chanter,saarc,landkreis,tribulation,tolerates,daiichi,hatun,cowries,dyschirius,abercromby,attock,aldwych,inflows,absolutist,l'histoire,committeeman,vanbrugh,headstock,westbourne,appenzell,hoxton,oculus,westfalen,roundabouts,nickelback,trovatore,quenching,summarises,conservators,transmutation,talleyrand,barzani,unwillingly,axonal,'blue,opining,enveloping,fidesz,rafah,colborne,flickr,lozenge,dulcimer,ndebele,swaraj,oxidize,gonville,resonated,gilani,superiore,endeared,janakpur,shepperton,solidifying,memoranda,sochaux,kurnool,rewari,emirs,kooning,bruford,unavailability,kayseri,judicious,negating,pterosaur,cytosolic,chernihiv,variational,sabretooth,seawolves,devalued,nanded,adverb,volunteerism,sealers,nemours,smederevo,kashubian,bartin,animax,vicomte,polotsk,polder,archiepiscopal,acceptability,quidditch,tussock,seminaire,immolation,belge,coves,wellingborough,khaganate,mckellen,nayaka,brega,kabhi,pontoons,bascule,newsreels,injectors,cobol,weblog,diplo,biggar,wheatbelt,erythrocytes,pedra,showgrounds,bogdanovich,eclecticism,toluene,elegies,formalize,andromedae,airworthiness,springville,mainframes,overexpression,magadha,bijelo,emlyn,glutamine,accenture,uhuru,metairie,arabidopsis,patanjali,peruvians,berezovsky,accion,astrolabe,jayanti,earnestly,sausalito,recurved,1500s,ramla,incineration,galleons,laplacian,shiki,smethwick,isomerase,dordevic,janow,jeffersonville,internationalism,penciled,styrene,ashur,nucleoside,peristome,horsemanship,sedges,bachata,medes,kristallnacht,schneerson,reflectance,invalided,strutt,draupadi,destino,partridges,tejas,quadrennial,aurel,halych,ethnomusicology,autonomist,radyo,rifting,shi'ar,crvena,telefilm,zawahiri,plana,sultanates,theodorus,subcontractors,pavle,seneschal,teleports,chernivtsi,buccal,brattleboro,stankovic,safar,dunhuang,electrocution,chastised,ergonomic,midsomer,130th,zomba,nongovernmental,escapist,localize,xuzhou,kyrie,carinthian,karlovac,nisan,kramnik,pilipino,digitisation,khasi,andronicus,highwayman,maior,misspelling,sebastopol,socon,rhaetian,archimandrite,partway,positivity,otaku,dingoes,tarski,geopolitics,disciplinarian,zulfikar,kenzo,globose,electrophilic,modele,storekeeper,pohang,wheldon,washers,interconnecting,digraphs,intrastate,campy,helvetic,frontispiece,ferrocarril,anambra,petraeus,midrib,endometrial,dwarfism,mauryan,endocytosis,brigs,percussionists,furtherance,synergistic,apocynaceae,krona,berthier,circumvented,casal,siltstone,precast,ethnikos,realists,geodesy,zarzuela,greenback,tripathi,persevered,interments,neutralization,olbermann,departements,supercomputing,demobilised,cassavetes,dunder,ministering,veszprem,barbarism,'world,pieve,apologist,frentzen,sulfides,firewalls,pronotum,staatsoper,hachette,makhachkala,oberland,phonon,yoshihiro,instars,purnima,winslet,mutsu,ergative,sajid,nizamuddin,paraphrased,ardeidae,kodagu,monooxygenase,skirmishers,sportiva,o'byrne,mykolaiv,ophir,prieta,gyllenhaal,kantian,leche,copan,herero,ps250,gelsenkirchen,shalit,sammarinese,chetwynd,wftda,travertine,warta,sigmaringen,concerti,namespace,ostergotland,biomarker,universals,collegio,embarcadero,wimborne,fiddlers,likening,ransomed,stifled,unabated,kalakaua,khanty,gongs,goodrem,countermeasure,publicizing,geomorphology,swedenborg,undefended,catastrophes,diverts,storyboards,amesbury,contactless,placentia,festivity,authorise,terrane,thallium,stradivarius,antonine,consortia,estimations,consecrate,supergiant,belichick,pendants,butyl,groza,univac,afire,kavala,studi,teletoon,paucity,gonbad,koninklijke,128th,stoichiometric,multimodal,facundo,anatomic,melamine,creuse,altan,brigands,mcguinty,blomfield,tsvangirai,protrusion,lurgan,warminster,tenzin,russellville,discursive,definable,scotrail,lignin,reincorporated,o'dell,outperform,redland,multicolored,evaporates,dimitrie,limbic,patapsco,interlingua,surrogacy,cutty,potrero,masud,cahiers,jintao,ardashir,centaurus,plagiarized,minehead,musings,statuettes,logarithms,seaview,prohibitively,downforce,rivington,tomorrowland,microbiologist,ferric,morag,capsid,kucinich,clairvaux,demotic,seamanship,cicada,painterly,cromarty,carbonic,tupou,oconee,tehuantepec,typecast,anstruther,internalized,underwriters,tetrahedra,flagrant,quakes,pathologies,ulrik,nahal,tarquini,dongguan,parnassus,ryoko,senussi,seleucia,airasia,einer,sashes,d'amico,matriculating,arabesque,honved,biophysical,hardinge,kherson,mommsen,diels,icbms,reshape,brasiliensis,palmach,netaji,oblate,functionalities,grigor,blacksburg,recoilless,melanchthon,reales,astrodome,handcrafted,memes,theorizes,isma'il,aarti,pirin,maatschappij,stabilizes,honiara,ashbury,copts,rootes,defensed,queiroz,mantegna,galesburg,coraciiformesfamily,cabrillo,tokio,antipsychotics,kanon,173rd,apollonia,finial,lydian,hadamard,rangi,dowlatabad,monolingual,platformer,subclasses,chiranjeevi,mirabeau,newsgroup,idmanyurdu,kambojas,walkover,zamoyski,generalist,khedive,flanges,knowle,bande,157th,alleyn,reaffirm,pininfarina,zuckerberg,hakodate,131st,aditi,bellinzona,vaulter,planking,boscombe,colombians,lysis,toppers,metered,nahyan,queensryche,minho,nagercoil,firebrand,foundress,bycatch,mendota,freeform,antena,capitalisation,martinus,overijssel,purists,interventionist,zgierz,burgundians,hippolyta,trompe,umatilla,moroccans,dictionnaire,hydrography,changers,chota,rimouski,aniline,bylaw,grandnephew,neamt,lemnos,connoisseurs,tractive,rearrangements,fetishism,finnic,apalachicola,landowning,calligraphic,circumpolar,mansfeld,legible,orientalism,tannhauser,blamey,maximization,noinclude,blackbirds,angara,ostersund,pancreatitis,glabra,acleris,juried,jungian,triumphantly,singlet,plasmas,synesthesia,yellowhead,unleashes,choiseul,quanzhong,brookville,kaskaskia,igcse,skatepark,jatin,jewellers,scaritinae,techcrunch,tellurium,lachaise,azuma,codeshare,dimensionality,unidirectional,scolaire,macdill,camshafts,unassisted,verband,kahlo,eliya,prelature,chiefdoms,saddleback,sockers,iommi,coloratura,llangollen,biosciences,harshest,maithili,k'iche,plical,multifunctional,andreu,tuskers,confounding,sambre,quarterdeck,ascetics,berdych,transversal,tuolumne,sagami,petrobras,brecker,menxia,instilling,stipulating,korra,oscillate,deadpan,v/line,pyrotechnic,stoneware,prelims,intracoastal,retraining,ilija,berwyn,encrypt,achievers,zulfiqar,glycoproteins,khatib,farmsteads,occultist,saman,fionn,derulo,khilji,obrenovic,argosy,toowong,dementieva,sociocultural,iconostasis,craigslist,festschrift,taifa,intercalated,tanjong,penticton,sharad,marxian,extrapolation,guises,wettin,prabang,exclaiming,kosta,famas,conakry,wanderings,'aliabad,macleay,exoplanet,bancorp,besiegers,surmounting,checkerboard,rajab,vliet,tarek,operable,wargaming,haldimand,fukuyama,uesugi,aggregations,erbil,brachiopods,tokyu,anglais,unfavorably,ujpest,escorial,armagnac,nagara,funafuti,ridgeline,cocking,o'gorman,compactness,retardant,krajowa,barua,coking,bestows,thampi,chicagoland,variably,o'loughlin,minnows,schwa,shaukat,polycarbonate,chlorinated,godalming,gramercy,delved,banqueting,enlil,sarada,prasanna,domhnall,decadal,regressive,lipoprotein,collectable,surendra,zaporizhia,cycliste,suchet,offsetting,formula_65,pudong,d'arte,blyton,quonset,osmania,tientsin,manorama,proteomics,bille,jalpaiguri,pertwee,barnegat,inventiveness,gollancz,euthanized,henricus,shortfalls,wuxia,chlorides,cerrado,polyvinyl,folktale,straddled,bioengineering,eschewing,greendale,recharged,olave,ceylonese,autocephalous,peacebuilding,wrights,guyed,rosamund,abitibi,bannockburn,gerontology,scutari,souness,seagram,codice_9,'open,xhtml,taguig,purposed,darbar,orthopedics,unpopulated,kisumu,tarrytown,feodor,polyhedral,monadnock,gottorp,priam,redesigning,gasworks,elfin,urquiza,homologation,filipovic,bohun,manningham,gornik,soundness,shorea,lanus,gelder,darke,sandgate,criticality,paranaense,153rd,vieja,lithograph,trapezoid,tiebreakers,convalescence,yan'an,actuaries,balad,altimeter,thermoelectric,trailblazer,previn,tenryu,ancaster,endoscopy,nicolet,discloses,fracking,plaine,salado,americanism,placards,absurdist,propylene,breccia,jirga,documenta,ismailis,161st,brentano,dallas/fort,embellishment,calipers,subscribes,mahavidyalaya,wednesbury,barnstormers,miwok,schembechler,minigame,unterberger,dopaminergic,inacio,nizamabad,overridden,monotype,cavernous,stichting,sassafras,sotho,argentinean,myrrh,rapidity,flatts,gowrie,dejected,kasaragod,cyprinidae,interlinked,arcseconds,degeneracy,infamously,incubate,substructure,trigeminal,sectarianism,marshlands,hooliganism,hurlers,isolationist,urania,burrard,switchover,lecco,wilts,interrogator,strived,ballooning,volterra,raciborz,relegating,gilding,cybele,dolomites,parachutist,lochaber,orators,raeburn,backend,benaud,rallycross,facings,banga,nuclides,defencemen,futurity,emitters,yadkin,eudonia,zambales,manasseh,sirte,meshes,peculiarly,mcminnville,roundly,boban,decrypt,icelanders,sanam,chelan,jovian,grudgingly,penalised,subscript,gambrinus,poaceae,infringements,maleficent,runciman,148th,supersymmetry,granites,liskeard,eliciting,involution,hallstatt,kitzbuhel,shankly,sandhills,inefficiencies,yishuv,psychotropic,nightjars,wavell,sangamon,vaikundar,choshu,retrospectives,pitesti,gigantea,hashemi,bosna,gakuin,siochana,arrangers,baronetcies,narayani,temecula,creston,koscierzyna,autochthonous,wyandot,anniston,igreja,mobilise,buzau,dunster,musselburgh,wenzhou,khattak,detoxification,decarboxylase,manlius,campbells,coleoptera,copyist,sympathisers,suisun,eminescu,defensor,transshipment,thurgau,somerton,fluctuates,ambika,weierstrass,lukow,giambattista,volcanics,romanticized,innovated,matabeleland,scotiabank,garwolin,purine,d'auvergne,borderland,maozhen,pricewaterhousecoopers,testator,pallium,scout.com,mv/pi,nazca,curacies,upjohn,sarasvati,monegasque,ketrzyn,malory,spikelets,biomechanics,haciendas,rapped,dwarfed,stews,nijinsky,subjection,matsu,perceptible,schwarzburg,midsection,entertains,circuitous,epiphytic,wonsan,alpini,bluefield,sloths,transportable,braunfels,dictum,szczecinek,jukka,wielun,wejherowo,hucknall,grameen,duodenum,ribose,deshpande,shahar,nexstar,injurious,dereham,lithographer,dhoni,structuralist,progreso,deschutes,christus,pulteney,quoins,yitzchak,gyeongsang,breviary,makkah,chiyoda,jutting,vineland,angiosperms,necrotic,novelisation,redistribute,tirumala,140th,featureless,mafic,rivaling,toyline,2/1st,martius,saalfeld,monthan,texian,kathak,melodramas,mithila,regierungsbezirk,509th,fermenting,schoolmate,virtuosic,briain,kokoda,heliocentric,handpicked,kilwinning,sonically,dinars,kasim,parkways,bogdanov,luxembourgian,halland,avesta,bardic,daugavpils,excavator,qwest,frustrate,physiographic,majoris,'ndrangheta,unrestrained,firmness,montalban,abundances,preservationists,adare,executioners,guardsman,bonnaroo,neglects,nazrul,pro12,hoorn,abercorn,refuting,kabud,cationic,parapsychology,troposphere,venezuelans,malignancy,khoja,unhindered,accordionist,medak,visby,ejercito,laparoscopic,dinas,umayyads,valmiki,o'dowd,saplings,stranding,incisions,illusionist,avocets,buccleuch,amazonia,fourfold,turboprops,roosts,priscus,turnstile,areal,certifies,pocklington,spoofs,viseu,commonalities,dabrowka,annam,homesteaders,daredevils,mondrian,negotiates,fiestas,perennials,maximizes,lubavitch,ravindra,scrapers,finials,kintyre,violas,snoqualmie,wilders,openbsd,mlawa,peritoneal,devarajan,congke,leszno,mercurial,fakir,joannes,bognor,overloading,unbuilt,gurung,scuttle,temperaments,bautzen,jardim,tradesman,visitations,barbet,sagamore,graaff,forecasters,wilsons,assis,l'air,shariah,sochaczew,russa,dirge,biliary,neuve,heartbreakers,strathearn,jacobian,overgrazing,edrich,anticline,parathyroid,petula,lepanto,decius,channelled,parvathi,puppeteers,communicators,francorchamps,kahane,longus,panjang,intron,traite,xxvii,matsuri,amrit,katyn,disheartened,cacak,omonia,alexandrine,partaking,wrangling,adjuvant,haskovo,tendrils,greensand,lammermoor,otherworld,volusia,stabling,one-and-a-half,bresson,zapatista,eotvos,ps150,webisodes,stepchildren,microarray,braganca,quanta,dolne,superoxide,bellona,delineate,ratha,lindenwood,bruhl,cingulate,tallies,bickerton,helgi,bevin,takoma,tsukuba,statuses,changeling,alister,bytom,dibrugarh,magnesia,duplicating,outlier,abated,goncalo,strelitz,shikai,mardan,musculature,ascomycota,springhill,tumuli,gabaa,odenwald,reformatted,autocracy,theresienstadt,suplex,chattopadhyay,mencken,congratulatory,weatherfield,systema,solemnity,projekt,quanzhou,kreuzberg,postbellum,nobuo,mediaworks,finisterre,matchplay,bangladeshis,kothen,oocyte,hovered,aromas,afshar,browed,teases,chorlton,arshad,cesaro,backbencher,iquique,vulcans,padmini,unabridged,cyclase,despotic,kirilenko,achaean,queensberry,debre,octahedron,iphigenia,curbing,karimnagar,sagarmatha,smelters,surrealists,sanada,shrestha,turridae,leasehold,jiedushi,eurythmics,appropriating,correze,thimphu,amery,musicomh,cyborgs,sandwell,pushcart,retorts,ameliorate,deteriorates,stojanovic,spline,entrenchments,bourse,chancellorship,pasolini,lendl,personage,reformulated,pubescens,loiret,metalurh,reinvention,nonhuman,eilema,tarsal,complutense,magne,broadview,metrodome,outtake,stouffville,seinen,bataillon,phosphoric,ostensible,opatow,aristides,beefheart,glorifying,banten,romsey,seamounts,fushimi,prophylaxis,sibylla,ranjith,goslar,balustrades,georgiev,caird,lafitte,peano,canso,bankura,halfpenny,segregate,caisson,bizerte,jamshedpur,euromaidan,philosophie,ridged,cheerfully,reclassification,aemilius,visionaries,samoans,wokingham,chemung,wolof,unbranched,cinerea,bhosle,ourense,immortalised,cornerstones,sourcebook,khufu,archimedean,universitatea,intermolecular,fiscally,suffices,metacomet,adjudicator,stablemate,specks,glace,inowroclaw,patristic,muharram,agitating,ashot,neurologic,didcot,gamla,ilves,putouts,siraj,laski,coaling,diarmuid,ratnagiri,rotulorum,liquefaction,morbihan,harel,aftershock,gruiformesfamily,bonnier,falconiformesfamily,adorns,wikis,maastrichtian,stauffenberg,bishopsgate,fakhr,sevenfold,ponders,quantifying,castiel,opacity,depredations,lenten,gravitated,o'mahony,modulates,inuktitut,paston,kayfabe,vagus,legalised,balked,arianism,tendering,sivas,birthdate,awlaki,khvajeh,shahab,samtgemeinde,bridgeton,amalgamations,biogenesis,recharging,tsukasa,mythbusters,chamfered,enthronement,freelancers,maharana,constantia,sutil,messines,monkton,okanogan,reinvigorated,apoplexy,tanahashi,neues,valiants,harappan,russes,carding,volkoff,funchal,statehouse,imitative,intrepidity,mellotron,samaras,turkana,besting,longitudes,exarch,diarrhoea,transcending,zvonareva,darna,ramblin,disconnection,137th,refocused,diarmait,agricole,ba'athist,turenne,contrabass,communis,daviess,fatimids,frosinone,fittingly,polyphyletic,qanat,theocratic,preclinical,abacha,toorak,marketplaces,conidia,seiya,contraindicated,retford,bundesautobahn,rebuilds,climatology,seaworthy,starfighter,qamar,categoria,malai,hellinsia,newstead,airworthy,catenin,avonmouth,arrhythmias,ayyavazhi,downgrade,ashburnham,ejector,kinematics,petworth,rspca,filmation,accipitridae,chhatrapati,g/mol,bacau,agama,ringtone,yudhoyono,orchestrator,arbitrators,138th,powerplants,cumbernauld,alderley,misamis,hawai`i,cuando,meistriliiga,jermyn,alans,pedigrees,ottavio,approbation,omnium,purulia,prioress,rheinland,lymphoid,lutsk,oscilloscope,ballina,iliac,motorbikes,modernising,uffizi,phylloxera,kalevala,bengalis,amravati,syntheses,interviewers,inflectional,outflank,maryhill,unhurt,profiler,nacelles,heseltine,personalised,guarda,herpetologist,airpark,pigot,margaretha,dinos,peleliu,breakbeat,kastamonu,shaivism,delamere,kingsville,epigram,khlong,phospholipids,journeying,lietuvos,congregated,deviance,celebes,subsoil,stroma,kvitova,lubricating,layoff,alagoas,olafur,doron,interuniversity,raycom,agonopterix,uzice,nanna,springvale,raimundo,wrested,pupal,talat,skinheads,vestige,unpainted,handan,odawara,ammar,attendee,lapped,myotis,gusty,ciconiiformesfamily,traversal,subfield,vitaphone,prensa,hasidism,inwood,carstairs,kropotkin,turgenev,dobra,remittance,purim,tannin,adige,tabulation,lethality,pacha,micronesian,dhruva,defensemen,tibeto,siculus,radioisotope,sodertalje,phitsanulok,euphonium,oxytocin,overhangs,skinks,fabrica,reinterred,emulates,bioscience,paragliding,raekwon,perigee,plausibility,frolunda,erroll,aznar,vyasa,albinus,trevally,confederacion,terse,sixtieth,1530s,kendriya,skateboarders,frontieres,muawiyah,easements,shehu,conservatively,keystones,kasem,brutalist,peekskill,cowry,orcas,syllabary,paltz,elisabetta,denticles,hampering,dolni,eidos,aarau,lermontov,yankton,shahbaz,barrages,kongsvinger,reestablishment,acetyltransferase,zulia,mrnas,slingsby,eucalypt,efficacious,weybridge,gradation,cinematheque,malthus,bampton,coexisted,cisse,hamdi,cupertino,saumarez,chionodes,libertine,formers,sakharov,pseudonymous,vol.1,mcduck,gopalakrishnan,amberley,jorhat,grandmasters,rudiments,dwindle,param,bukidnon,menander,americanus,multipliers,pulawy,homoerotic,pillbox,cd+dvd,epigraph,aleksandrow,extrapolated,horseshoes,contemporain,angiography,hasselt,shawinigan,memorization,legitimized,cyclades,outsold,rodolphe,kelis,powerball,dijkstra,analyzers,incompressible,sambar,orangeburg,osten,reauthorization,adamawa,sphagnum,hypermarket,millipedes,zoroaster,madea,ossuary,murrayfield,pronominal,gautham,resellers,ethers,quarrelled,dolna,stragglers,asami,tangut,passos,educacion,sharaf,texel,berio,bethpage,bezalel,marfa,noronha,36ers,genteel,avram,shilton,compensates,sweetener,reinstalled,disables,noether,1590s,balakrishnan,kotaro,northallerton,cataclysm,gholam,cancellara,schiphol,commends,longinus,albinism,gemayel,hamamatsu,volos,islamism,sidereal,pecuniary,diggings,townsquare,neosho,lushan,chittoor,akhil,disputation,desiccation,cambodians,thwarting,deliberated,ellipsis,bahini,susumu,separators,kohneh,plebeians,kultur,ogaden,pissarro,trypeta,latur,liaodong,vetting,datong,sohail,alchemists,lengthwise,unevenly,masterly,microcontrollers,occupier,deviating,farringdon,baccalaureat,theocracy,chebyshev,archivists,jayaram,ineffectiveness,scandinavians,jacobins,encomienda,nambu,g/cm3,catesby,paavo,heeded,rhodium,idealised,10deg,infective,mecyclothorax,halevy,sheared,minbari,audax,lusatian,rebuffs,hitfix,fastener,subjugate,tarun,binet,compuserve,synthesiser,keisuke,amalric,ligatures,tadashi,ignazio,abramovich,groundnut,otomo,maeve,mortlake,ostrogoths,antillean,todor,recto,millimetre,espousing,inaugurate,paracetamol,galvanic,harpalinae,jedrzejow,reassessment,langlands,civita,mikan,stikine,bijar,imamate,istana,kaiserliche,erastus,federale,cytosine,expansionism,hommes,norrland,smriti,snapdragon,gulab,taleb,lossy,khattab,urbanised,sesto,rekord,diffuser,desam,morganatic,silting,pacts,extender,beauharnais,purley,bouches,halfpipe,discontinuities,houthi,farmville,animism,horni,saadi,interpretative,blockades,symeon,biogeographic,transcaucasian,jetties,landrieu,astrocytes,conjunto,stumpings,weevils,geysers,redux,arching,romanus,tazeh,marcellinus,casein,opava,misrata,anare,sattar,declarer,dreux,oporto,venta,vallis,icosahedron,cortona,lachine,mohammedan,sandnes,zynga,clarin,diomedes,tsuyoshi,pribram,gulbarga,chartist,superettan,boscawen,altus,subang,gating,epistolary,vizianagaram,ogdensburg,panna,thyssen,tarkovsky,dzogchen,biograph,seremban,unscientific,nightjar,legco,deism,n.w.a,sudha,siskel,sassou,flintlock,jovial,montbeliard,pallida,formula_66,tranquillity,nisei,adornment,'people,yamhill,hockeyallsvenskan,adopters,appian,lowicz,haplotypes,succinctly,starogard,presidencies,kheyrabad,sobibor,kinesiology,cowichan,militum,cromwellian,leiningen,ps1.5,concourses,dalarna,goldfield,brzeg,faeces,aquarii,matchless,harvesters,181st,numismatics,korfball,sectioned,transpires,facultative,brandishing,kieron,forages,menai,glutinous,debarge,heathfield,1580s,malang,photoelectric,froome,semiotic,alwar,grammophon,chiaroscuro,mentalist,maramures,flacco,liquors,aleutians,marvell,sutlej,patnaik,qassam,flintoff,bayfield,haeckel,sueno,avicii,exoplanets,hoshi,annibale,vojislav,honeycombs,celebrant,rendsburg,veblen,quails,141st,carronades,savar,narrations,jeeva,ontologies,hedonistic,marinette,godot,munna,bessarabian,outrigger,thame,gravels,hoshino,falsifying,stereochemistry,nacionalista,medially,radula,ejecting,conservatorio,odile,ceiba,jaina,essonne,isometry,allophones,recidivism,iveco,ganda,grammarians,jagan,signposted,uncompressed,facilitators,constancy,ditko,propulsive,impaling,interbank,botolph,amlaib,intergroup,sorbus,cheka,debye,praca,adorning,presbyteries,dormition,strategos,qarase,pentecostals,beehives,hashemite,goldust,euronext,egress,arpanet,soames,jurchens,slovenska,copse,kazim,appraisals,marischal,mineola,sharada,caricaturist,sturluson,galba,faizabad,overwintering,grete,uyezds,didsbury,libreville,ablett,microstructure,anadolu,belenenses,elocution,cloaks,timeslots,halden,rashidun,displaces,sympatric,germanus,tuples,ceska,equalize,disassembly,krautrock,babangida,memel,deild,gopala,hematology,underclass,sangli,wawrinka,assur,toshack,refrains,nicotinic,bhagalpur,badami,racetracks,pocatello,walgreens,nazarbayev,occultation,spinnaker,geneon,josias,hydrolyzed,dzong,corregimiento,waistcoat,thermoplastic,soldered,anticancer,lactobacillus,shafi'i,carabus,adjournment,schlumberger,triceratops,despotate,mendicant,krishnamurti,bahasa,earthworm,lavoisier,noetherian,kalki,fervently,bhawan,saanich,coquille,gannet,motagua,kennels,mineralization,fitzherbert,svein,bifurcated,hairdressing,felis,abounded,dimers,fervour,hebdo,bluffton,aetna,corydon,clevedon,carneiro,subjectively,deutz,gastropoda,overshot,concatenation,varman,carolla,maharshi,mujib,inelastic,riverhead,initialized,safavids,rohini,caguas,bulges,fotbollforbund,hefei,spithead,westville,maronites,lytham,americo,gediminas,stephanus,chalcolithic,hijra,gnu/linux,predilection,rulership,sterility,haidar,scarlatti,saprissa,sviatoslav,pointedly,sunroof,guarantor,thevar,airstrips,pultusk,sture,129th,divinities,daizong,dolichoderus,cobourg,maoists,swordsmanship,uprated,bohme,tashi,largs,chandi,bluebeard,householders,richardsonian,drepanidae,antigonish,elbasan,occultism,marca,hypergeometric,oirat,stiglitz,ignites,dzungar,miquelon,pritam,d'automne,ulidiid,niamey,vallecano,fondo,billiton,incumbencies,raceme,chambery,cadell,barenaked,kagame,summerside,haussmann,hatshepsut,apothecaries,criollo,feint,nasals,timurid,feltham,plotinus,oxygenation,marginata,officinalis,salat,participations,ising,downe,izumo,unguided,pretence,coursed,haruna,viscountcy,mainstage,justicia,powiat,takara,capitoline,implacable,farben,stopford,cosmopterix,tuberous,kronecker,galatians,kweli,dogmas,exhorted,trebinje,skanda,newlyn,ablative,basidia,bhiwani,encroachments,stranglers,regrouping,tubal,shoestring,wawel,anionic,mesenchymal,creationists,pyrophosphate,moshi,despotism,powerbook,fatehpur,rupiah,segre,ternate,jessore,b.i.g,shevardnadze,abounds,gliwice,densest,memoria,suborbital,vietcong,ratepayers,karunanidhi,toolbar,descents,rhymney,exhortation,zahedan,carcinomas,hyperbaric,botvinnik,billets,neuropsychological,tigranes,hoards,chater,biennially,thistles,scotus,wataru,flotillas,hungama,monopolistic,payouts,vetch,generalissimo,caries,naumburg,piran,blizzards,escalates,reactant,shinya,theorize,rizzoli,transitway,ecclesiae,streptomyces,cantal,nisibis,superconductor,unworkable,thallus,roehampton,scheckter,viceroys,makuuchi,ilkley,superseding,takuya,klodzko,borbon,raspberries,operand,w.a.k.o,sarabande,factionalism,egalitarianism,temasek,torbat,unscripted,jorma,westerner,perfective,vrije,underlain,goldfrapp,blaenau,jomon,barthes,drivetime,bassa,bannock,umaga,fengxiang,zulus,sreenivasan,farces,codice_10,freeholder,poddebice,imperialists,deregulated,wingtip,o'hagan,pillared,overtone,hofstadter,149th,kitano,saybrook,standardizing,aldgate,staveley,o'flaherty,hundredths,steerable,soltan,empted,cruyff,intramuros,taluks,cotonou,marae,karur,figueres,barwon,lucullus,niobe,zemlya,lathes,homeported,chaux,amyotrophic,opines,exemplars,bhamo,homomorphisms,gauleiter,ladin,mafiosi,airdrieonians,b/soul,decal,transcaucasia,solti,defecation,deaconess,numidia,sampradaya,normalised,wingless,schwaben,alnus,cinerama,yakutsk,ketchikan,orvieto,unearned,monferrato,rotem,aacsb,loong,decoders,skerries,cardiothoracic,repositioning,pimpernel,yohannan,tenebrionoidea,nargis,nouvel,costliest,interdenominational,noize,redirecting,zither,morcha,radiometric,frequenting,irtysh,gbagbo,chakri,litvinenko,infotainment,ravensbruck,harith,corbels,maegashira,jousting,natan,novus,falcao,minis,railed,decile,rauma,ramaswamy,cavitation,paranaque,berchtesgaden,reanimated,schomberg,polysaccharides,exclusionary,cleon,anurag,ravaging,dhanush,mitchells,granule,contemptuous,keisei,rolleston,atlantean,yorkist,daraa,wapping,micrometer,keeneland,comparably,baranja,oranje,schlafli,yogic,dinajpur,unimpressive,masashi,recreativo,alemannic,petersfield,naoko,vasudeva,autosport,rajat,marella,busko,wethersfield,ssris,soulcalibur,kobani,wildland,rookery,hoffenheim,kauri,aliphatic,balaclava,ferrite,publicise,victorias,theism,quimper,chapbook,functionalist,roadbed,ulyanovsk,cupen,purpurea,calthorpe,teofilo,mousavi,cochlea,linotype,detmold,ellerslie,gakkai,telkom,southsea,subcontractor,inguinal,philatelists,zeebrugge,piave,trochidae,dempo,spoilt,saharanpur,mihrab,parasympathetic,barbarous,chartering,antiqua,katsina,bugis,categorizes,altstadt,kandyan,pambansa,overpasses,miters,assimilating,finlandia,uneconomic,am/fm,harpsichordist,dresdner,luminescence,authentically,overpowers,magmatic,cliftonville,oilfields,skirted,berthe,cuman,oakham,frelimo,glockenspiel,confection,saxophonists,piaseczno,multilevel,antipater,levying,maltreatment,velho,opoczno,harburg,pedophilia,unfunded,palettes,plasterwork,breve,dharmendra,auchinleck,nonesuch,blackmun,libretti,rabbani,145th,hasselbeck,kinnock,malate,vanden,cloverdale,ashgabat,nares,radians,steelworkers,sabor,possums,catterick,hemispheric,ostra,outpaced,dungeness,almshouse,penryn,texians,1000m,franchitti,incumbency,texcoco,newar,tramcars,toroidal,meitetsu,spellbound,agronomist,vinifera,riata,bunko,pinas,ba'al,github,vasilyevich,obsolescent,geodesics,ancestries,tujue,capitalised,unassigned,throng,unpaired,psychometric,skegness,exothermic,buffered,kristiansund,tongued,berenger,basho,alitalia,prolongation,archaeologically,fractionation,cyprinid,echinoderms,agriculturally,justiciar,sonam,ilium,baits,danceable,grazer,ardahan,grassed,preemption,glassworks,hasina,ugric,umbra,wahhabi,vannes,tinnitus,capitaine,tikrit,lisieux,scree,hormuz,despenser,jagiellon,maisonneuve,gandaki,santarem,basilicas,lancing,landskrona,weilburg,fireside,elysian,isleworth,krishnamurthy,filton,cynon,tecmo,subcostal,scalars,triglycerides,hyperplane,farmingdale,unione,meydan,pilings,mercosur,reactivate,akiba,fecundity,jatra,natsume,zarqawi,preta,masao,presbyter,oakenfold,rhodri,ferran,ruizong,cloyne,nelvana,epiphanius,borde,scutes,strictures,troughton,whitestone,sholom,toyah,shingon,kutuzov,abelard,passant,lipno,cafeterias,residuals,anabaptists,paratransit,criollos,pleven,radiata,destabilizing,hadiths,bazaars,mannose,taiyo,crookes,welbeck,baoding,archelaus,nguesso,alberni,wingtips,herts,viasat,lankans,evreux,wigram,fassbinder,ryuichi,storting,reducible,olesnica,znojmo,hyannis,theophanes,flatiron,mustering,rajahmundry,kadir,wayang,prome,lethargy,zubin,illegality,conall,dramedy,beerbohm,hipparchus,ziarat,ryuji,shugo,glenorchy,microarchitecture,morne,lewinsky,cauvery,battenberg,hyksos,wayanad,hamilcar,buhari,brazo,bratianu,solms,aksaray,elamite,chilcotin,bloodstock,sagara,dolny,reunified,umlaut,proteaceae,camborne,calabrian,dhanbad,vaxjo,cookware,potez,rediffusion,semitones,lamentations,allgau,guernica,suntory,pleated,stationing,urgell,gannets,bertelsmann,entryway,raphitomidae,acetaldehyde,nephrology,categorizing,beiyang,permeate,tourney,geosciences,khana,masayuki,crucis,universitaria,slaskie,khaimah,finno,advani,astonishingly,tubulin,vampiric,jeolla,sociale,cleethorpes,badri,muridae,suzong,debater,decimation,kenyans,mutualism,pontifex,middlemen,insee,halevi,lamentation,psychopathy,brassey,wenders,kavya,parabellum,prolactin,inescapable,apses,malignancies,rinzai,stigmatized,menahem,comox,ateliers,welshpool,setif,centimetre,truthfulness,downfield,drusus,woden,glycosylation,emanated,agulhas,dalkeith,jazira,nucky,unifil,jobim,operon,oryzomys,heroically,seances,supernumerary,backhouse,hashanah,tatler,imago,invert,hayato,clockmaker,kingsmill,swiecie,analogously,golconda,poste,tacitly,decentralised,ge'ez,diplomatically,fossiliferous,linseed,mahavira,pedestals,archpriest,byelection,domiciled,jeffersonian,bombus,winegrowing,waukegan,uncultivated,haverfordwest,saumur,communally,disbursed,cleeve,zeljeznicar,speciosa,vacationers,sigur,vaishali,zlatko,iftikhar,cropland,transkei,incompleteness,bohra,subantarctic,slieve,physiologic,similis,klerk,replanted,'right,chafee,reproducible,bayburt,regicide,muzaffarpur,plurals,hanyu,orthologs,diouf,assailed,kamui,tarik,dodecanese,gorne,on/off,179th,shimoga,granaries,carlists,valar,tripolitania,sherds,simmern,dissociated,isambard,polytechnical,yuvraj,brabazon,antisense,pubmed,glans,minutely,masaaki,raghavendra,savoury,podcasting,tachi,bienville,gongsun,ridgely,deform,yuichi,binders,canna,carcetti,llobregat,implored,berri,njegos,intermingled,offload,athenry,motherhouse,corpora,kakinada,dannebrog,imperio,prefaces,musicologists,aerospatiale,shirai,nagapattinam,servius,cristoforo,pomfret,reviled,entebbe,stane,east/west,thermometers,matriarchal,siglo,bodil,legionnaire,ze'ev,theorizing,sangeetha,horticulturist,uncountable,lookalike,anoxic,ionospheric,genealogists,chicopee,imprinting,popish,crematoria,diamondback,cyathea,hanzhong,cameramen,halogaland,naklo,waclaw,storehouses,flexed,comuni,frits,glauca,nilgiris,compresses,nainital,continuations,albay,hypoxic,samajwadi,dunkerque,nanticoke,sarwar,interchanged,jubal,corba,jalgaon,derleth,deathstroke,magny,vinnytsia,hyphenated,rimfire,sawan,boehner,disrepute,normalize,aromanian,dualistic,approximant,chama,karimabad,barnacles,sanok,stipends,dyfed,rijksmuseum,reverberation,suncorp,fungicides,reverie,spectrograph,stereophonic,niazi,ordos,alcan,karaite,lautrec,tableland,lamellar,rieti,langmuir,russula,webern,tweaks,hawick,southerner,morphy,naturalisation,enantiomer,michinoku,barbettes,relieves,carburettors,redruth,oblates,vocabularies,mogilev,bagmati,galium,reasserted,extolled,symon,eurosceptic,inflections,tirtha,recompense,oruro,roping,gouverneur,pared,yayoi,watermills,retooled,leukocytes,jubilant,mazhar,nicolau,manheim,touraine,bedser,hambledon,kohat,powerhouses,tlemcen,reuven,sympathetically,afrikaners,interes,handcrafts,etcher,baddeley,wodonga,amaury,155th,vulgarity,pompadour,automorphisms,1540s,oppositions,prekmurje,deryni,fortifying,arcuate,mahila,bocage,uther,nozze,slashes,atlantica,hadid,rhizomatous,azeris,'with,osmena,lewisville,innervated,bandmaster,outcropping,parallelogram,dominicana,twang,ingushetia,extensional,ladino,sastry,zinoviev,relatable,nobilis,cbeebies,hitless,eulima,sporangia,synge,longlisted,criminalized,penitential,weyden,tubule,volyn,priestesses,glenbrook,kibbutzim,windshaft,canadair,falange,zsolt,bonheur,meine,archangels,safeguarded,jamaicans,malarial,teasers,badging,merseyrail,operands,pulsars,gauchos,biotin,bambara,necaxa,egmond,tillage,coppi,anxiolytic,preah,mausoleums,plautus,feroz,debunked,187th,belediyespor,mujibur,wantage,carboxyl,chettiar,murnau,vagueness,racemic,backstretch,courtland,municipio,palpatine,dezful,hyperbola,sreekumar,chalons,altay,arapahoe,tudors,sapieha,quilon,burdensome,kanya,xxviii,recension,generis,siphuncle,repressor,bitrate,mandals,midhurst,dioxin,democratique,upholds,rodez,cinematographic,epoque,jinping,rabelais,zhytomyr,glenview,rebooted,khalidi,reticulata,122nd,monnaie,passersby,ghazals,europaea,lippmann,earthbound,tadic,andorran,artvin,angelicum,banksy,epicentre,resemblances,shuttled,rathaus,bernt,stonemasons,balochi,siang,tynemouth,cygni,biosynthetic,precipitates,sharecroppers,d'annunzio,softbank,shiji,apeldoorn,polycyclic,wenceslas,wuchang,samnites,tamarack,silmarillion,madinah,palaeontology,kirchberg,sculpin,rohtak,aquabats,oviparous,thynne,caney,blimps,minimalistic,whatcom,palatalization,bardstown,direct3d,paramagnetic,kamboja,khash,globemaster,lengua,matej,chernigov,swanage,arsenals,cascadia,cundinamarca,tusculum,leavers,organics,warplanes,'three,exertions,arminius,gandharva,inquires,comercio,kuopio,chabahar,plotlines,mersenne,anquetil,paralytic,buckminster,ambit,acrolophus,quantifiers,clacton,ciliary,ansaldo,fergana,egoism,thracians,chicoutimi,northbrook,analgesia,brotherhoods,hunza,adriaen,fluoridation,snowfalls,soundboard,fangoria,cannibalistic,orthogonius,chukotka,dindigul,manzoni,chainz,macromedia,beltline,muruga,schistura,provable,litex,initio,pneumoniae,infosys,cerium,boonton,cannonballs,d'une,solvency,mandurah,houthis,dolmens,apologists,radioisotopes,blaxploitation,poroshenko,stawell,coosa,maximilien,tempelhof,espouse,declaratory,hambro,xalapa,outmoded,mihiel,benefitting,desirous,archeparchy,repopulated,telescoping,captor,mackaye,disparaged,ramanathan,crowne,tumbled,technetium,silted,chedi,nievre,hyeon,cartoonish,interlock,infocom,rediff.com,dioramas,timekeeping,concertina,kutaisi,cesky,lubomirski,unapologetic,epigraphic,stalactites,sneha,biofilm,falconry,miraflores,catena,'outstanding,prospekt,apotheosis,o'odham,pacemakers,arabica,gandhinagar,reminisces,iroquoian,ornette,tilling,neoliberalism,chameleons,pandava,prefontaine,haiyan,gneisenau,utama,bando,reconstitution,azaria,canola,paratroops,ayckbourn,manistee,stourton,manifestos,lympne,denouement,tractatus,rakim,bellflower,nanometer,sassanids,turlough,presbyterianism,varmland,20deg,phool,nyerere,almohad,manipal,vlaanderen,quickness,removals,makow,circumflex,eatery,morane,fondazione,alkylation,unenforceable,galliano,silkworm,junior/senior,abducts,phlox,konskie,lofoten,buuren,glyphosate,faired,naturae,cobbles,taher,skrulls,dostoevsky,walkout,wagnerian,orbited,methodically,denzil,sarat,extraterritorial,kohima,d'armor,brinsley,rostropovich,fengtian,comitatus,aravind,moche,wrangell,giscard,vantaa,viljandi,hakoah,seabees,muscatine,ballade,camanachd,sothern,mullioned,durad,margraves,maven,arete,chandni,garifuna,142nd,reading/literature,thickest,intensifies,trygve,khaldun,perinatal,asana,powerline,acetylation,nureyev,omiya,montesquieu,riverwalk,marly,correlating,intermountain,bulgar,hammerheads,underscores,wiretapping,quatrain,ruisseau,newsagent,tuticorin,polygyny,hemsworth,partisanship,banna,istrian,evaporator".split(","),female_names:"mary,patricia,linda,barbara,elizabeth,jennifer,maria,susan,margaret,dorothy,lisa,nancy,karen,betty,helen,sandra,donna,carol,ruth,sharon,michelle,laura,sarah,kimberly,deborah,jessica,shirley,cynthia,angela,melissa,brenda,amy,anna,rebecca,virginia,kathleen,pamela,martha,debra,amanda,stephanie,carolyn,christine,marie,janet,catherine,frances,ann,joyce,diane,alice,julie,heather,teresa,doris,gloria,evelyn,jean,cheryl,mildred,katherine,joan,ashley,judith,rose,janice,kelly,nicole,judy,christina,kathy,theresa,beverly,denise,tammy,irene,jane,lori,rachel,marilyn,andrea,kathryn,louise,sara,anne,jacqueline,wanda,bonnie,julia,ruby,lois,tina,phyllis,norma,paula,diana,annie,lillian,emily,robin,peggy,crystal,gladys,rita,dawn,connie,florence,tracy,edna,tiffany,carmen,rosa,cindy,grace,wendy,victoria,edith,kim,sherry,sylvia,josephine,thelma,shannon,sheila,ethel,ellen,elaine,marjorie,carrie,charlotte,monica,esther,pauline,emma,juanita,anita,rhonda,hazel,amber,eva,debbie,april,leslie,clara,lucille,jamie,joanne,eleanor,valerie,danielle,megan,alicia,suzanne,michele,gail,bertha,darlene,veronica,jill,erin,geraldine,lauren,cathy,joann,lorraine,lynn,sally,regina,erica,beatrice,dolores,bernice,audrey,yvonne,annette,marion,dana,stacy,ana,renee,ida,vivian,roberta,holly,brittany,melanie,loretta,yolanda,jeanette,laurie,katie,kristen,vanessa,alma,sue,elsie,beth,jeanne,vicki,carla,tara,rosemary,eileen,terri,gertrude,lucy,tonya,ella,stacey,wilma,gina,kristin,jessie,natalie,agnes,vera,charlene,bessie,delores,melinda,pearl,arlene,maureen,colleen,allison,tamara,joy,georgia,constance,lillie,claudia,jackie,marcia,tanya,nellie,minnie,marlene,heidi,glenda,lydia,viola,courtney,marian,stella,caroline,dora,vickie,mattie,maxine,irma,mabel,marsha,myrtle,lena,christy,deanna,patsy,hilda,gwendolyn,jennie,nora,margie,nina,cassandra,leah,penny,kay,priscilla,naomi,carole,olga,billie,dianne,tracey,leona,jenny,felicia,sonia,miriam,velma,becky,bobbie,violet,kristina,toni,misty,mae,shelly,daisy,ramona,sherri,erika,katrina,claire,lindsey,lindsay,geneva,guadalupe,belinda,margarita,sheryl,cora,faye,ada,sabrina,isabel,marguerite,hattie,harriet,molly,cecilia,kristi,brandi,blanche,sandy,rosie,joanna,iris,eunice,angie,inez,lynda,madeline,amelia,alberta,genevieve,monique,jodi,janie,kayla,sonya,jan,kristine,candace,fannie,maryann,opal,alison,yvette,melody,luz,susie,olivia,flora,shelley,kristy,mamie,lula,lola,verna,beulah,antoinette,candice,juana,jeannette,pam,kelli,whitney,bridget,karla,celia,latoya,patty,shelia,gayle,della,vicky,lynne,sheri,marianne,kara,jacquelyn,erma,blanca,myra,leticia,pat,krista,roxanne,angelica,robyn,adrienne,rosalie,alexandra,brooke,bethany,sadie,bernadette,traci,jody,kendra,nichole,rachael,mable,ernestine,muriel,marcella,elena,krystal,angelina,nadine,kari,estelle,dianna,paulette,lora,mona,doreen,rosemarie,desiree,antonia,janis,betsy,christie,freda,meredith,lynette,teri,cristina,eula,leigh,meghan,sophia,eloise,rochelle,gretchen,cecelia,raquel,henrietta,alyssa,jana,gwen,jenna,tricia,laverne,olive,tasha,silvia,elvira,delia,kate,patti,lorena,kellie,sonja,lila,lana,darla,mindy,essie,mandy,lorene,elsa,josefina,jeannie,miranda,dixie,lucia,marta,faith,lela,johanna,shari,camille,tami,shawna,elisa,ebony,melba,ora,nettie,tabitha,ollie,winifred,kristie,alisha,aimee,rena,myrna,marla,tammie,latasha,bonita,patrice,ronda,sherrie,addie,francine,deloris,stacie,adriana,cheri,abigail,celeste,jewel,cara,adele,rebekah,lucinda,dorthy,effie,trina,reba,sallie,aurora,lenora,etta,lottie,kerri,trisha,nikki,estella,francisca,josie,tracie,marissa,karin,brittney,janelle,lourdes,laurel,helene,fern,elva,corinne,kelsey,ina,bettie,elisabeth,aida,caitlin,ingrid,iva,eugenia,christa,goldie,maude,jenifer,therese,dena,lorna,janette,latonya,candy,consuelo,tamika,rosetta,debora,cherie,polly,dina,jewell,fay,jillian,dorothea,nell,trudy,esperanza,patrica,kimberley,shanna,helena,cleo,stefanie,rosario,ola,janine,mollie,lupe,alisa,lou,maribel,susanne,bette,susana,elise,cecile,isabelle,lesley,jocelyn,paige,joni,rachelle,leola,daphne,alta,ester,petra,graciela,imogene,jolene,keisha,lacey,glenna,gabriela,keri,ursula,lizzie,kirsten,shana,adeline,mayra,jayne,jaclyn,gracie,sondra,carmela,marisa,rosalind,charity,tonia,beatriz,marisol,clarice,jeanine,sheena,angeline,frieda,lily,shauna,millie,claudette,cathleen,angelia,gabrielle,autumn,katharine,jodie,staci,lea,christi,justine,elma,luella,margret,dominique,socorro,martina,margo,mavis,callie,bobbi,maritza,lucile,leanne,jeannine,deana,aileen,lorie,ladonna,willa,manuela,gale,selma,dolly,sybil,abby,ivy,dee,winnie,marcy,luisa,jeri,magdalena,ofelia,meagan,audra,matilda,leila,cornelia,bianca,simone,bettye,randi,virgie,latisha,barbra,georgina,eliza,leann,bridgette,rhoda,haley,adela,nola,bernadine,flossie,ila,greta,ruthie,nelda,minerva,lilly,terrie,letha,hilary,estela,valarie,brianna,rosalyn,earline,catalina,ava,mia,clarissa,lidia,corrine,alexandria,concepcion,tia,sharron,rae,dona,ericka,jami,elnora,chandra,lenore,neva,marylou,melisa,tabatha,serena,avis,allie,sofia,jeanie,odessa,nannie,harriett,loraine,penelope,milagros,emilia,benita,allyson,ashlee,tania,esmeralda,eve,pearlie,zelma,malinda,noreen,tameka,saundra,hillary,amie,althea,rosalinda,lilia,alana,clare,alejandra,elinor,lorrie,jerri,darcy,earnestine,carmella,noemi,marcie,liza,annabelle,louisa,earlene,mallory,carlene,nita,selena,tanisha,katy,julianne,lakisha,edwina,maricela,margery,kenya,dollie,roxie,roslyn,kathrine,nanette,charmaine,lavonne,ilene,tammi,suzette,corine,kaye,chrystal,lina,deanne,lilian,juliana,aline,luann,kasey,maryanne,evangeline,colette,melva,lawanda,yesenia,nadia,madge,kathie,ophelia,valeria,nona,mitzi,mari,georgette,claudine,fran,alissa,roseann,lakeisha,susanna,reva,deidre,chasity,sheree,elvia,alyce,deirdre,gena,briana,araceli,katelyn,rosanne,wendi,tessa,berta,marva,imelda,marietta,marci,leonor,arline,sasha,madelyn,janna,juliette,deena,aurelia,josefa,augusta,liliana,lessie,amalia,savannah,anastasia,vilma,natalia,rosella,lynnette,corina,alfreda,leanna,amparo,coleen,tamra,aisha,wilda,karyn,maura,mai,evangelina,rosanna,hallie,erna,enid,mariana,lacy,juliet,jacklyn,freida,madeleine,mara,cathryn,lelia,casandra,bridgett,angelita,jannie,dionne,annmarie,katina,beryl,millicent,katheryn,diann,carissa,maryellen,liz,lauri,helga,gilda,rhea,marquita,hollie,tisha,tamera,angelique,francesca,kaitlin,lolita,florine,rowena,reyna,twila,fanny,janell,ines,concetta,bertie,alba,brigitte,alyson,vonda,pansy,elba,noelle,letitia,deann,brandie,louella,leta,felecia,sharlene,lesa,beverley,isabella,herminia,terra,celina,tori,octavia,jade,denice,germaine,michell,cortney,nelly,doretha,deidra,monika,lashonda,judi,chelsey,antionette,margot,adelaide,leeann,elisha,dessie,libby,kathi,gayla,latanya,mina,mellisa,kimberlee,jasmin,renae,zelda,elda,justina,gussie,emilie,camilla,abbie,rocio,kaitlyn,edythe,ashleigh,selina,lakesha,geri,allene,pamala,michaela,dayna,caryn,rosalia,jacquline,rebeca,marybeth,krystle,iola,dottie,belle,griselda,ernestina,elida,adrianne,demetria,delma,jaqueline,arleen,virgina,retha,fatima,tillie,eleanore,cari,treva,wilhelmina,rosalee,maurine,latrice,jena,taryn,elia,debby,maudie,jeanna,delilah,catrina,shonda,hortencia,theodora,teresita,robbin,danette,delphine,brianne,nilda,danna,cindi,bess,iona,winona,vida,rosita,marianna,racheal,guillermina,eloisa,celestine,caren,malissa,lona,chantel,shellie,marisela,leora,agatha,soledad,migdalia,ivette,christen,athena,janel,veda,pattie,tessie,tera,marilynn,lucretia,karrie,dinah,daniela,alecia,adelina,vernice,shiela,portia,merry,lashawn,dara,tawana,verda,alene,zella,sandi,rafaela,maya,kira,candida,alvina,suzan,shayla,lettie,samatha,oralia,matilde,larissa,vesta,renita,delois,shanda,phillis,lorri,erlinda,cathrine,barb,isabell,ione,gisela,roxanna,mayme,kisha,ellie,mellissa,dorris,dalia,bella,annetta,zoila,reta,reina,lauretta,kylie,christal,pilar,charla,elissa,tiffani,tana,paulina,leota,breanna,jayme,carmel,vernell,tomasa,mandi,dominga,santa,melodie,lura,alexa,tamela,mirna,kerrie,venus,felicita,cristy,carmelita,berniece,annemarie,tiara,roseanne,missy,cori,roxana,pricilla,kristal,jung,elyse,haydee,aletha,bettina,marge,gillian,filomena,zenaida,harriette,caridad,vada,aretha,pearline,marjory,marcela,flor,evette,elouise,alina,damaris,catharine,belva,nakia,marlena,luanne,lorine,karon,dorene,danita,brenna,tatiana,louann,julianna,andria,philomena,lucila,leonora,dovie,romona,mimi,jacquelin,gaye,tonja,misti,chastity,stacia,roxann,micaela,velda,marlys,johnna,aura,ivonne,hayley,nicki,majorie,herlinda,yadira,perla,gregoria,antonette,shelli,mozelle,mariah,joelle,cordelia,josette,chiquita,trista,laquita,georgiana,candi,shanon,hildegard,stephany,magda,karol,gabriella,tiana,roma,richelle,oleta,jacque,idella,alaina,suzanna,jovita,tosha,nereida,marlyn,kyla,delfina,tena,stephenie,sabina,nathalie,marcelle,gertie,darleen,thea,sharonda,shantel,belen,venessa,rosalina,genoveva,clementine,rosalba,renate,renata,georgianna,floy,dorcas,ariana,tyra,theda,mariam,juli,jesica,vikki,verla,roselyn,melvina,jannette,ginny,debrah,corrie,violeta,myrtis,latricia,collette,charleen,anissa,viviana,twyla,nedra,latonia,hellen,fabiola,annamarie,adell,sharyn,chantal,niki,maud,lizette,lindy,kesha,jeana,danelle,charline,chanel,valorie,dortha,cristal,sunny,leone,leilani,gerri,debi,andra,keshia,eulalia,easter,dulce,natividad,linnie,kami,georgie,catina,brook,alda,winnifred,sharla,ruthann,meaghan,magdalene,lissette,adelaida,venita,trena,shirlene,shameka,elizebeth,dian,shanta,latosha,carlotta,windy,rosina,mariann,leisa,jonnie,dawna,cathie,astrid,laureen,janeen,holli,fawn,vickey,teressa,shante,rubye,marcelina,chanda,terese,scarlett,marnie,lulu,lisette,jeniffer,elenor,dorinda,donita,carman,bernita,altagracia,aleta,adrianna,zoraida,lyndsey,janina,starla,phylis,phuong,kyra,charisse,blanch,sanjuanita,rona,nanci,marilee,maranda,brigette,sanjuana,marita,kassandra,joycelyn,felipa,chelsie,bonny,mireya,lorenza,kyong,ileana,candelaria,sherie,lucie,leatrice,lakeshia,gerda,edie,bambi,marylin,lavon,hortense,garnet,evie,tressa,shayna,lavina,kyung,jeanetta,sherrill,shara,phyliss,mittie,anabel,alesia,thuy,tawanda,joanie,tiffanie,lashanda,karissa,enriqueta,daria,daniella,corinna,alanna,abbey,roxane,roseanna,magnolia,lida,joellen,coral,carleen,tresa,peggie,novella,nila,maybelle,jenelle,carina,nova,melina,marquerite,margarette,josephina,evonne,cinthia,albina,toya,tawnya,sherita,myriam,lizabeth,lise,keely,jenni,giselle,cheryle,ardith,ardis,alesha,adriane,shaina,linnea,karolyn,felisha,dori,darci,artie,armida,zola,xiomara,vergie,shamika,nena,nannette,maxie,lovie,jeane,jaimie,inge,farrah,elaina,caitlyn,felicitas,cherly,caryl,yolonda,yasmin,teena,prudence,pennie,nydia,mackenzie,orpha,marvel,lizbeth,laurette,jerrie,hermelinda,carolee,tierra,mirian,meta,melony,kori,jennette,jamila,yoshiko,susannah,salina,rhiannon,joleen,cristine,ashton,aracely,tomeka,shalonda,marti,lacie,kala,jada,ilse,hailey,brittani,zona,syble,sherryl,nidia,marlo,kandice,kandi,alycia,ronna,norene,mercy,ingeborg,giovanna,gemma,christel,audry,zora,vita,trish,stephaine,shirlee,shanika,melonie,mazie,jazmin,inga,hettie,geralyn,fonda,estrella,adella,sarita,rina,milissa,maribeth,golda,evon,ethelyn,enedina,cherise,chana,velva,tawanna,sade,mirta,karie,jacinta,elna,davina,cierra,ashlie,albertha,tanesha,nelle,mindi,lorinda,larue,florene,demetra,dedra,ciara,chantelle,ashly,suzy,rosalva,noelia,lyda,leatha,krystyna,kristan,karri,darline,darcie,cinda,cherrie,awilda,almeda,rolanda,lanette,jerilyn,gisele,evalyn,cyndi,cleta,carin,zina,zena,velia,tanika,charissa,talia,margarete,lavonda,kaylee,kathlene,jonna,irena,ilona,idalia,candis,candance,brandee,anitra,alida,sigrid,nicolette,maryjo,linette,hedwig,christiana,alexia,tressie,modesta,lupita,lita,gladis,evelia,davida,cherri,cecily,ashely,annabel,agustina,wanita,shirly,rosaura,hulda,yetta,verona,thomasina,sibyl,shannan,mechelle,leandra,lani,kylee,kandy,jolynn,ferne,eboni,corene,alysia,zula,nada,moira,lyndsay,lorretta,jammie,hortensia,gaynell,adria,vina,vicenta,tangela,stephine,norine,nella,liana,leslee,kimberely,iliana,glory,felica,emogene,elfriede,eden,eartha,carma,ocie,lennie,kiara,jacalyn,carlota,arielle,otilia,kirstin,kacey,johnetta,joetta,jeraldine,jaunita,elana,dorthea,cami,amada,adelia,vernita,tamar,siobhan,renea,rashida,ouida,nilsa,meryl,kristyn,julieta,danica,breanne,aurea,anglea,sherron,odette,malia,lorelei,leesa,kenna,kathlyn,fiona,charlette,suzie,shantell,sabra,racquel,myong,mira,martine,lucienne,lavada,juliann,elvera,delphia,christiane,charolette,carri,asha,angella,paola,ninfa,leda,stefani,shanell,palma,machelle,lissa,kecia,kathryne,karlene,julissa,jettie,jenniffer,corrina,carolann,alena,rosaria,myrtice,marylee,liane,kenyatta,judie,janey,elmira,eldora,denna,cristi,cathi,zaida,vonnie,viva,vernie,rosaline,mariela,luciana,lesli,karan,felice,deneen,adina,wynona,tarsha,sheron,shanita,shani,shandra,randa,pinkie,nelida,marilou,lyla,laurene,laci,janene,dorotha,daniele,dani,carolynn,carlyn,berenice,ayesha,anneliese,alethea,thersa,tamiko,rufina,oliva,mozell,marylyn,kristian,kathyrn,kasandra,kandace,janae,domenica,debbra,dannielle,chun,arcelia,zenobia,sharen,sharee,lavinia,kacie,jackeline,huong,felisa,emelia,eleanora,cythia,cristin,claribel,anastacia,zulma,zandra,yoko,tenisha,susann,sherilyn,shay,shawanda,romana,mathilda,linsey,keiko,joana,isela,gretta,georgetta,eugenie,desirae,delora,corazon,antonina,anika,willene,tracee,tamatha,nichelle,mickie,maegan,luana,lanita,kelsie,edelmira,bree,afton,teodora,tamie,shena,linh,keli,kaci,danyelle,arlette,albertine,adelle,tiffiny,simona,nicolasa,nichol,nakisha,maira,loreen,kizzy,fallon,christene,bobbye,ying,vincenza,tanja,rubie,roni,queenie,margarett,kimberli,irmgard,idell,hilma,evelina,esta,emilee,dennise,dania,carie,risa,rikki,particia,masako,luvenia,loree,loni,lien,gigi,florencia,denita,billye,tomika,sharita,rana,nikole,neoma,margarite,madalyn,lucina,laila,kali,jenette,gabriele,evelyne,elenora,clementina,alejandrina,zulema,violette,vannessa,thresa,retta,patience,noella,nickie,jonell,chaya,camelia,bethel,anya,suzann,mila,lilla,laverna,keesha,kattie,georgene,eveline,estell,elizbeth,vivienne,vallie,trudie,stephane,magaly,madie,kenyetta,karren,janetta,hermine,drucilla,debbi,celestina,candie,britni,beckie,amina,zita,yolande,vivien,vernetta,trudi,pearle,patrina,ossie,nicolle,loyce,letty,katharina,joselyn,jonelle,jenell,iesha,heide,florinda,florentina,elodia,dorine,brunilda,brigid,ashli,ardella,twana,tarah,shavon,serina,rayna,ramonita,margurite,lucrecia,kourtney,kati,jesenia,crista,ayana,alica,alia,vinnie,suellen,romelia,rachell,olympia,michiko,kathaleen,jolie,jessi,janessa,hana,elease,carletta,britany,shona,salome,rosamond,regena,raina,ngoc,nelia,louvenia,lesia,latrina,laticia,larhonda,jina,jacki,emmy,deeann,coretta,arnetta,thalia,shanice,neta,mikki,micki,lonna,leana,lashunda,kiley,joye,jacqulyn,ignacia,hyun,hiroko,henriette,elayne,delinda,dahlia,coreen,consuela,conchita,babette,ayanna,anette,albertina,shawnee,shaneka,quiana,pamelia,merri,merlene,margit,kiesha,kiera,kaylene,jodee,jenise,erlene,emmie,dalila,daisey,casie,belia,babara,versie,vanesa,shelba,shawnda,nikia,naoma,marna,margeret,madaline,lawana,kindra,jutta,jazmine,janett,hannelore,glendora,gertrud,garnett,freeda,frederica,florance,flavia,carline,beverlee,anjanette,valda,tamala,shonna,sarina,oneida,merilyn,marleen,lurline,lenna,katherin,jeni,gracia,glady,farah,enola,dominque,devona,delana,cecila,caprice,alysha,alethia,vena,theresia,tawny,shakira,samara,sachiko,rachele,pamella,marni,mariel,maren,malisa,ligia,lera,latoria,larae,kimber,kathern,karey,jennefer,janeth,halina,fredia,delisa,debroah,ciera,angelika,andree,altha,vivan,terresa,tanna,sudie,signe,salena,ronni,rebbecca,myrtie,malika,maida,leonarda,kayleigh,ethyl,ellyn,dayle,cammie,brittni,birgit,avelina,asuncion,arianna,akiko,venice,tyesha,tonie,tiesha,takisha,steffanie,sindy,meghann,manda,macie,kellye,kellee,joslyn,inger,indira,glinda,glennis,fernanda,faustina,eneida,elicia,digna,dell,arletta,willia,tammara,tabetha,sherrell,sari,rebbeca,pauletta,natosha,nakita,mammie,kenisha,kazuko,kassie,earlean,daphine,corliss,clotilde,carolyne,bernetta,augustina,audrea,annis,annabell,tennille,tamica,selene,rosana,regenia,qiana,markita,macy,leeanne,laurine,jessenia,janita,georgine,genie,emiko,elvie,deandra,dagmar,corie,collen,cherish,romaine,porsha,pearlene,micheline,merna,margorie,margaretta,lore,jenine,hermina,fredericka,elke,drusilla,dorathy,dione,celena,brigida,allegra,tamekia,synthia,sook,slyvia,rosann,reatha,raye,marquetta,margart,ling,layla,kymberly,kiana,kayleen,katlyn,karmen,joella,emelda,eleni,detra,clemmie,cheryll,chantell,cathey,arnita,arla,angle,angelic,alyse,zofia,thomasine,tennie,sherly,sherley,sharyl,remedios,petrina,nickole,myung,myrle,mozella,louanne,lisha,latia,krysta,julienne,jeanene,jacqualine,isaura,gwenda,earleen,cleopatra,carlie,audie,antonietta,alise,verdell,tomoko,thao,talisha,shemika,savanna,santina,rosia,raeann,odilia,nana,minna,magan,lynelle,karma,joeann,ivana,inell,ilana,gudrun,dreama,crissy,chante,carmelina,arvilla,annamae,alvera,aleida,yanira,vanda,tianna,stefania,shira,nicol,nancie,monserrate,melynda,melany,lovella,laure,kacy,jacquelynn,hyon,gertha,eliana,christena,christeen,charise,caterina,carley,candyce,arlena,ammie,willette,vanita,tuyet,syreeta,penney,nyla,maryam,marya,magen,ludie,loma,livia,lanell,kimberlie,julee,donetta,diedra,denisha,deane,dawne,clarine,cherryl,bronwyn,alla,valery,tonda,sueann,soraya,shoshana,shela,sharleen,shanelle,nerissa,meridith,mellie,maye,maple,magaret,lili,leonila,leonie,leeanna,lavonia,lavera,kristel,kathey,kathe,jann,ilda,hildred,hildegarde,genia,fumiko,evelin,ermelinda,elly,dung,doloris,dionna,danae,berneice,annice,alix,verena,verdie,shawnna,shawana,shaunna,rozella,randee,ranae,milagro,lynell,luise,loida,lisbeth,karleen,junita,jona,isis,hyacinth,hedy,gwenn,ethelene,erline,donya,domonique,delicia,dannette,cicely,branda,blythe,bethann,ashlyn,annalee,alline,yuko,vella,trang,towanda,tesha,sherlyn,narcisa,miguelina,meri,maybell,marlana,marguerita,madlyn,lory,loriann,leonore,leighann,laurice,latesha,laronda,katrice,kasie,kaley,jadwiga,glennie,gearldine,francina,epifania,dyan,dorie,diedre,denese,demetrice,delena,cristie,cleora,catarina,carisa,barbera,almeta,trula,tereasa,solange,sheilah,shavonne,sanora,rochell,mathilde,margareta,maia,lynsey,lawanna,launa,kena,keena,katia,glynda,gaylene,elvina,elanor,danuta,danika,cristen,cordie,coletta,clarita,carmon,brynn,azucena,aundrea,angele,verlie,verlene,tamesha,silvana,sebrina,samira,reda,raylene,penni,norah,noma,mireille,melissia,maryalice,laraine,kimbery,karyl,karine,jolanda,johana,jesusa,jaleesa,jacquelyne,iluminada,hilaria,hanh,gennie,francie,floretta,exie,edda,drema,delpha,barbar,assunta,ardell,annalisa,alisia,yukiko,yolando,wonda,waltraud,veta,temeka,tameika,shirleen,shenita,piedad,ozella,mirtha,marilu,kimiko,juliane,jenice,janay,jacquiline,hilde,elois,echo,devorah,chau,brinda,betsey,arminda,aracelis,apryl,annett,alishia,veola,usha,toshiko,theola,tashia,talitha,shery,renetta,reiko,rasheeda,obdulia,mika,melaine,meggan,marlen,marget,marceline,mana,magdalen,librada,lezlie,latashia,lasandra,kelle,isidra,inocencia,gwyn,francoise,erminia,erinn,dimple,devora,criselda,armanda,arie,ariane,angelena,aliza,adriene,adaline,xochitl,twanna,tomiko,tamisha,taisha,susy,rutha,rhona,noriko,natashia,merrie,marinda,mariko,margert,loris,lizzette,leisha,kaila,joannie,jerrica,jene,jannet,janee,jacinda,herta,elenore,doretta,delaine,daniell,claudie,britta,apolonia,amberly,alease,yuri,waneta,tomi,sharri,sandie,roselle,reynalda,raguel,phylicia,patria,olimpia,odelia,mitzie,minda,mignon,mica,mendy,marivel,maile,lynetta,lavette,lauryn,latrisha,lakiesha,kiersten,kary,josphine,jolyn,jetta,janise,jacquie,ivelisse,glynis,gianna,gaynelle,danyell,danille,dacia,coralee,cher,ceola,arianne,aleshia,yung,williemae,trinh,thora,sherika,shemeka,shaunda,roseline,ricki,melda,mallie,lavonna,latina,laquanda,lala,lachelle,klara,kandis,johna,jeanmarie,jaye,grayce,gertude,emerita,ebonie,clorinda,ching,chery,carola,breann,blossom,bernardine,becki,arletha,argelia,alita,yulanda,yessenia,tobi,tasia,sylvie,shirl,shirely,shella,shantelle,sacha,rebecka,providencia,paulene,misha,miki,marline,marica,lorita,latoyia,lasonya,kerstin,kenda,keitha,kathrin,jaymie,gricelda,ginette,eryn,elina,elfrieda,danyel,cheree,chanelle,barrie,aurore,annamaria,alleen,ailene,aide,yasmine,vashti,treasa,tiffaney,sheryll,sharie,shanae,raisa,neda,mitsuko,mirella,milda,maryanna,maragret,mabelle,luetta,lorina,letisha,latarsha,lanelle,lajuana,krissy,karly,karena,jessika,jerica,jeanelle,jalisa,jacelyn,izola,euna,etha,domitila,dominica,daina,creola,carli,camie,brittny,ashanti,anisha,aleen,adah,yasuko,valrie,tona,tinisha,terisa,taneka,simonne,shalanda,serita,ressie,refugia,olene,margherita,mandie,maire,lyndia,luci,lorriane,loreta,leonia,lavona,lashawnda,lakia,kyoko,krystina,krysten,kenia,kelsi,jeanice,isobel,georgiann,genny,felicidad,eilene,deloise,deedee,conception,clora,cherilyn,calandra,armandina,anisa,tiera,theressa,stephania,sima,shyla,shonta,shera,shaquita,shala,rossana,nohemi,nery,moriah,melita,melida,melani,marylynn,marisha,mariette,malorie,madelene,ludivina,loria,lorette,loralee,lianne,lavenia,laurinda,lashon,kimi,keila,katelynn,jone,joane,jayna,janella,hertha,francene,elinore,despina,delsie,deedra,clemencia,carolin,bulah,brittanie,blondell,bibi,beaulah,beata,annita,agripina,virgen,valene,twanda,tommye,tarra,tari,tammera,shakia,sadye,ruthanne,rochel,rivka,pura,nenita,natisha,ming,merrilee,melodee,marvis,lucilla,leena,laveta,larita,lanie,keren,ileen,georgeann,genna,frida,eufemia,emely,edyth,deonna,deadra,darlena,chanell,cathern,cassondra,cassaundra,bernarda,berna,arlinda,anamaria,vertie,valeri,torri,stasia,sherise,sherill,sanda,ruthe,rosy,robbi,ranee,quyen,pearly,palmira,onita,nisha,niesha,nida,merlyn,mayola,marylouise,marth,margene,madelaine,londa,leontine,leoma,leia,lauralee,lanora,lakita,kiyoko,keturah,katelin,kareen,jonie,johnette,jenee,jeanett,izetta,hiedi,heike,hassie,giuseppina,georgann,fidela,fernande,elwanda,ellamae,eliz,dusti,dotty,cyndy,coralie,celesta,alverta,xenia,wava,vanetta,torrie,tashina,tandy,tambra,tama,stepanie,shila,shaunta,sharan,shaniqua,shae,setsuko,serafina,sandee,rosamaria,priscila,olinda,nadene,muoi,michelina,mercedez,maryrose,marcene,magali,mafalda,lannie,kayce,karoline,kamilah,kamala,justa,joline,jennine,jacquetta,iraida,georgeanna,franchesca,emeline,elane,ehtel,earlie,dulcie,dalene,classie,chere,charis,caroyln,carmina,carita,bethanie,ayako,arica,alysa,alessandra,akilah,adrien,zetta,youlanda,yelena,yahaira,xuan,wendolyn,tijuana,terina,teresia,suzi,sherell,shavonda,shaunte,sharda,shakita,sena,ryann,rubi,riva,reginia,rachal,parthenia,pamula,monnie,monet,michaele,melia,malka,maisha,lisandra,lekisha,lean,lakendra,krystin,kortney,kizzie,kittie,kera,kendal,kemberly,kanisha,julene,jule,johanne,jamee,halley,gidget,fredricka,fleta,fatimah,eusebia,elza,eleonore,dorthey,doria,donella,dinorah,delorse,claretha,christinia,charlyn,bong,belkis,azzie,andera,aiko,adena,yajaira,vania,ulrike,toshia,tifany,stefany,shizue,shenika,shawanna,sharolyn,sharilyn,shaquana,shantay,rozanne,roselee,remona,reanna,raelene,phung,petronila,natacha,nancey,myrl,miyoko,miesha,merideth,marvella,marquitta,marhta,marchelle,lizeth,libbie,lahoma,ladawn,kina,katheleen,katharyn,karisa,kaleigh,junie,julieann,johnsie,janean,jaimee,jackqueline,hisako,herma,helaine,gwyneth,gita,eustolia,emelina,elin,edris,donnette,donnetta,dierdre,denae,darcel,clarisa,cinderella,chia,charlesetta,charita,celsa,cassy,cassi,carlee,bruna,brittaney,brande,billi,antonetta,angla,angelyn,analisa,alane,wenona,wendie,veronique,vannesa,tobie,tempie,sumiko,sulema,somer,sheba,sharice,shanel,shalon,rosio,roselia,renay,rema,reena,ozie,oretha,oralee,ngan,nakesha,milly,marybelle,margrett,maragaret,manie,lurlene,lillia,lieselotte,lavelle,lashaunda,lakeesha,kaycee,kalyn,joya,joette,jenae,janiece,illa,grisel,glayds,genevie,gala,fredda,eleonor,debera,deandrea,corrinne,cordia,contessa,colene,cleotilde,chantay,cecille,beatris,azalee,arlean,ardath,anjelica,anja,alfredia,aleisha,zada,yuonne,xiao,willodean,vennie,vanna,tyisha,tova,torie,tonisha,tilda,tien,sirena,sherril,shanti,shan,senaida,samella,robbyn,renda,reita,phebe,paulita,nobuko,nguyet,neomi,mikaela,melania,maximina,marg,maisie,lynna,lilli,lashaun,lakenya,lael,kirstie,kathline,kasha,karlyn,karima,jovan,josefine,jennell,jacqui,jackelyn,hien,grazyna,florrie,floria,eleonora,dwana,dorla,delmy,deja,dede,dann,crysta,clelia,claris,chieko,cherlyn,cherelle,charmain,chara,cammy,arnette,ardelle,annika,amiee,amee,allena,yvone,yuki,yoshie,yevette,yael,willetta,voncile,venetta,tula,tonette,timika,temika,telma,teisha,taren,stacee,shawnta,saturnina,ricarda,pasty,onie,nubia,marielle,mariella,marianela,mardell,luanna,loise,lisabeth,lindsy,lilliana,lilliam,lelah,leigha,leanora,kristeen,khalilah,keeley,kandra,junko,joaquina,jerlene,jani,jamika,hsiu,hermila,genevive,evia,eugena,emmaline,elfreda,elene,donette,delcie,deeanna,darcey,clarinda,cira,chae,celinda,catheryn,casimira,carmelia,camellia,breana,bobette,bernardina,bebe,basilia,arlyne,amal,alayna,zonia,zenia,yuriko,yaeko,wynell,willena,vernia,tora,terrilyn,terica,tenesha,tawna,tajuana,taina,stephnie,sona,sina,shondra,shizuko,sherlene,sherice,sharika,rossie,rosena,rima,rheba,renna,natalya,nancee,melodi,meda,matha,marketta,maricruz,marcelene,malvina,luba,louetta,leida,lecia,lauran,lashawna,laine,khadijah,katerine,kasi,kallie,julietta,jesusita,jestine,jessia,jeffie,janyce,isadora,georgianne,fidelia,evita,eura,eulah,estefana,elsy,eladia,dodie,denisse,deloras,delila,daysi,crystle,concha,claretta,charlsie,charlena,carylon,bettyann,asley,ashlea,amira,agueda,agnus,yuette,vinita,victorina,tynisha,treena,toccara,tish,thomasena,tegan,soila,shenna,sharmaine,shantae,shandi,saran,sarai,sana,rosette,rolande,regine,otelia,olevia,nicholle,necole,naida,myrta,myesha,mitsue,minta,mertie,margy,mahalia,madalene,loura,lorean,lesha,leonida,lenita,lavone,lashell,lashandra,lamonica,kimbra,katherina,karry,kanesha,jong,jeneva,jaquelyn,gilma,ghislaine,gertrudis,fransisca,fermina,ettie,etsuko,ellan,elidia,edra,dorethea,doreatha,denyse,deetta,daine,cyrstal,corrin,cayla,carlita,camila,burma,bula,buena,barabara,avril,alaine,zana,wilhemina,wanetta,verline,vasiliki,tonita,tisa,teofila,tayna,taunya,tandra,takako,sunni,suanne,sixta,sharell,seema,rosenda,robena,raymonde,pamila,ozell,neida,mistie,micha,merissa,maurita,maryln,maryetta,marcell,malena,makeda,lovetta,lourie,lorrine,lorilee,laurena,lashay,larraine,laree,lacresha,kristle,keva,keira,karole,joie,jinny,jeannetta,jama,heidy,gilberte,gema,faviola,evelynn,enda,elli,ellena,divina,dagny,collene,codi,cindie,chassidy,chasidy,catrice,catherina,cassey,caroll,carlena,candra,calista,bryanna,britteny,beula,bari,audrie,audria,ardelia,annelle,angila,alona,allyn".split(","),surnames:"smith,johnson,williams,jones,brown,davis,miller,wilson,moore,taylor,anderson,jackson,white,harris,martin,thompson,garcia,martinez,robinson,clark,rodriguez,lewis,lee,walker,hall,allen,young,hernandez,king,wright,lopez,hill,green,adams,baker,gonzalez,nelson,carter,mitchell,perez,roberts,turner,phillips,campbell,parker,evans,edwards,collins,stewart,sanchez,morris,rogers,reed,cook,morgan,bell,murphy,bailey,rivera,cooper,richardson,cox,howard,ward,torres,peterson,gray,ramirez,watson,brooks,sanders,price,bennett,wood,barnes,ross,henderson,coleman,jenkins,perry,powell,long,patterson,hughes,flores,washington,butler,simmons,foster,gonzales,bryant,alexander,griffin,diaz,hayes,myers,ford,hamilton,graham,sullivan,wallace,woods,cole,west,owens,reynolds,fisher,ellis,harrison,gibson,mcdonald,cruz,marshall,ortiz,gomez,murray,freeman,wells,webb,simpson,stevens,tucker,porter,hicks,crawford,boyd,mason,morales,kennedy,warren,dixon,ramos,reyes,burns,gordon,shaw,holmes,rice,robertson,hunt,black,daniels,palmer,mills,nichols,grant,knight,ferguson,stone,hawkins,dunn,perkins,hudson,spencer,gardner,stephens,payne,pierce,berry,matthews,arnold,wagner,willis,watkins,olson,carroll,duncan,snyder,hart,cunningham,lane,andrews,ruiz,harper,fox,riley,armstrong,carpenter,weaver,greene,elliott,chavez,sims,peters,kelley,franklin,lawson,fields,gutierrez,schmidt,carr,vasquez,castillo,wheeler,chapman,montgomery,richards,williamson,johnston,banks,meyer,bishop,mccoy,howell,alvarez,morrison,hansen,fernandez,garza,harvey,burton,nguyen,jacobs,reid,fuller,lynch,garrett,romero,welch,larson,frazier,burke,hanson,mendoza,moreno,bowman,medina,fowler,brewer,hoffman,carlson,silva,pearson,holland,fleming,jensen,vargas,byrd,davidson,hopkins,herrera,wade,soto,walters,neal,caldwell,lowe,jennings,barnett,graves,jimenez,horton,shelton,barrett,obrien,castro,sutton,mckinney,lucas,miles,rodriquez,chambers,holt,lambert,fletcher,watts,bates,hale,rhodes,pena,beck,newman,haynes,mcdaniel,mendez,bush,vaughn,parks,dawson,santiago,norris,hardy,steele,curry,powers,schultz,barker,guzman,page,munoz,ball,keller,chandler,weber,walsh,lyons,ramsey,wolfe,schneider,mullins,benson,sharp,bowen,barber,cummings,hines,baldwin,griffith,valdez,hubbard,salazar,reeves,warner,stevenson,burgess,santos,tate,cross,garner,mann,mack,moss,thornton,mcgee,farmer,delgado,aguilar,vega,glover,manning,cohen,harmon,rodgers,robbins,newton,blair,higgins,ingram,reese,cannon,strickland,townsend,potter,goodwin,walton,rowe,hampton,ortega,patton,swanson,goodman,maldonado,yates,becker,erickson,hodges,rios,conner,adkins,webster,malone,hammond,flowers,cobb,moody,quinn,pope,osborne,mccarthy,guerrero,estrada,sandoval,gibbs,gross,fitzgerald,stokes,doyle,saunders,wise,colon,gill,alvarado,greer,padilla,waters,nunez,ballard,schwartz,mcbride,houston,christensen,klein,pratt,briggs,parsons,mclaughlin,zimmerman,buchanan,moran,copeland,pittman,brady,mccormick,holloway,brock,poole,logan,bass,marsh,drake,wong,jefferson,morton,abbott,sparks,norton,huff,massey,figueroa,carson,bowers,roberson,barton,tran,lamb,harrington,boone,cortez,clarke,mathis,singleton,wilkins,cain,underwood,hogan,mckenzie,collier,luna,phelps,mcguire,bridges,wilkerson,nash,summers,atkins,wilcox,pitts,conley,marquez,burnett,cochran,chase,davenport,hood,gates,ayala,sawyer,vazquez,dickerson,hodge,acosta,flynn,espinoza,nicholson,monroe,wolf,morrow,whitaker,oconnor,skinner,ware,molina,kirby,huffman,gilmore,dominguez,oneal,lang,combs,kramer,hancock,gallagher,gaines,shaffer,wiggins,mathews,mcclain,fischer,wall,melton,hensley,bond,dyer,grimes,contreras,wyatt,baxter,snow,mosley,shepherd,larsen,hoover,beasley,petersen,whitehead,meyers,garrison,shields,horn,savage,olsen,schroeder,hartman,woodard,mueller,kemp,deleon,booth,patel,calhoun,wiley,eaton,cline,navarro,harrell,humphrey,parrish,duran,hutchinson,hess,dorsey,bullock,robles,beard,dalton,avila,rich,blackwell,johns,blankenship,trevino,salinas,campos,pruitt,callahan,montoya,hardin,guerra,mcdowell,stafford,gallegos,henson,wilkinson,booker,merritt,atkinson,orr,decker,hobbs,tanner,knox,pacheco,stephenson,glass,rojas,serrano,marks,hickman,sweeney,strong,mcclure,conway,roth,maynard,farrell,lowery,hurst,nixon,weiss,trujillo,ellison,sloan,juarez,winters,mclean,boyer,villarreal,mccall,gentry,carrillo,ayers,lara,sexton,pace,hull,leblanc,browning,velasquez,leach,chang,sellers,herring,noble,foley,bartlett,mercado,landry,durham,walls,barr,mckee,bauer,rivers,bradshaw,pugh,velez,rush,estes,dodson,morse,sheppard,weeks,camacho,bean,barron,livingston,middleton,spears,branch,blevins,chen,kerr,mcconnell,hatfield,harding,solis,frost,giles,blackburn,pennington,woodward,finley,mcintosh,koch,mccullough,blanchard,rivas,brennan,mejia,kane,benton,buckley,valentine,maddox,russo,mcknight,buck,moon,mcmillan,crosby,berg,dotson,mays,roach,chan,richmond,meadows,faulkner,oneill,knapp,kline,ochoa,jacobson,gay,hendricks,horne,shepard,hebert,cardenas,mcintyre,waller,holman,donaldson,cantu,morin,gillespie,fuentes,tillman,bentley,peck,key,salas,rollins,gamble,dickson,santana,cabrera,cervantes,howe,hinton,hurley,spence,zamora,yang,mcneil,suarez,petty,gould,mcfarland,sampson,carver,bray,macdonald,stout,hester,melendez,dillon,farley,hopper,galloway,potts,joyner,stein,aguirre,osborn,mercer,bender,franco,rowland,sykes,pickett,sears,mayo,dunlap,hayden,wilder,mckay,coffey,mccarty,ewing,cooley,vaughan,bonner,cotton,holder,stark,ferrell,cantrell,fulton,lott,calderon,pollard,hooper,burch,mullen,fry,riddle,levy,duke,odonnell,britt,daugherty,berger,dillard,alston,frye,riggs,chaney,odom,duffy,fitzpatrick,valenzuela,mayer,alford,mcpherson,acevedo,barrera,cote,reilly,compton,mooney,mcgowan,craft,clemons,wynn,nielsen,baird,stanton,snider,rosales,bright,witt,hays,holden,rutledge,kinney,clements,castaneda,slater,hahn,burks,delaney,pate,lancaster,sharpe,whitfield,talley,macias,burris,ratliff,mccray,madden,kaufman,beach,goff,cash,bolton,mcfadden,levine,byers,kirkland,kidd,workman,carney,mcleod,holcomb,finch,sosa,haney,franks,sargent,nieves,downs,rasmussen,bird,hewitt,foreman,valencia,oneil,delacruz,vinson,dejesus,hyde,forbes,gilliam,guthrie,wooten,huber,barlow,boyle,mcmahon,buckner,rocha,puckett,langley,knowles,cooke,velazquez,whitley,vang,shea,rouse,hartley,mayfield,elder,rankin,hanna,cowan,lucero,arroyo,slaughter,haas,oconnell,minor,boucher,archer,boggs,dougherty,andersen,newell,crowe,wang,friedman,bland,swain,holley,pearce,childs,yarbrough,galvan,proctor,meeks,lozano,mora,rangel,bacon,villanueva,schaefer,rosado,helms,boyce,goss,stinson,ibarra,hutchins,covington,crowley,hatcher,mackey,bunch,womack,polk,dodd,childress,childers,villa,springer,mahoney,dailey,belcher,lockhart,griggs,costa,brandt,walden,moser,tatum,mccann,akers,lutz,pryor,orozco,mcallister,lugo,davies,shoemaker,rutherford,newsome,magee,chamberlain,blanton,simms,godfrey,flanagan,crum,cordova,escobar,downing,sinclair,donahue,krueger,mcginnis,gore,farris,webber,corbett,andrade,starr,lyon,yoder,hastings,mcgrath,spivey,krause,harden,crabtree,kirkpatrick,arrington,ritter,mcghee,bolden,maloney,gagnon,dunbar,ponce,pike,mayes,beatty,mobley,kimball,butts,montes,eldridge,braun,hamm,gibbons,moyer,manley,herron,plummer,elmore,cramer,rucker,pierson,fontenot,rubio,goldstein,elkins,wills,novak,hickey,worley,gorman,katz,dickinson,broussard,woodruff,crow,britton,nance,lehman,bingham,zuniga,whaley,shafer,coffman,steward,delarosa,neely,mata,davila,mccabe,kessler,hinkle,welsh,pagan,goldberg,goins,crouch,cuevas,quinones,mcdermott,hendrickson,samuels,denton,bergeron,ivey,locke,haines,snell,hoskins,byrne,arias,corbin,beltran,chappell,downey,dooley,tuttle,couch,payton,mcelroy,crockett,groves,cartwright,dickey,mcgill,dubois,muniz,tolbert,dempsey,cisneros,sewell,latham,vigil,tapia,rainey,norwood,stroud,meade,tipton,kuhn,hilliard,bonilla,teague,gunn,greenwood,correa,reece,pineda,phipps,frey,kaiser,ames,gunter,schmitt,milligan,espinosa,bowden,vickers,lowry,pritchard,costello,piper,mcclellan,lovell,sheehan,hatch,dobson,singh,jeffries,hollingsworth,sorensen,meza,fink,donnelly,burrell,tomlinson,colbert,billings,ritchie,helton,sutherland,peoples,mcqueen,thomason,givens,crocker,vogel,robison,dunham,coker,swartz,keys,ladner,richter,hargrove,edmonds,brantley,albright,murdock,boswell,muller,quintero,padgett,kenney,daly,connolly,inman,quintana,lund,barnard,villegas,simons,huggins,tidwell,sanderson,bullard,mcclendon,duarte,draper,marrero,dwyer,abrams,stover,goode,fraser,crews,bernal,godwin,conklin,mcneal,baca,esparza,crowder,bower,brewster,mcneill,rodrigues,leal,coates,raines,mccain,mccord,miner,holbrook,swift,dukes,carlisle,aldridge,ackerman,starks,ricks,holliday,ferris,hairston,sheffield,lange,fountain,doss,betts,kaplan,carmichael,bloom,ruffin,penn,kern,bowles,sizemore,larkin,dupree,seals,metcalf,hutchison,henley,farr,mccauley,hankins,gustafson,curran,waddell,ramey,cates,pollock,cummins,messer,heller,funk,cornett,palacios,galindo,cano,hathaway,pham,enriquez,salgado,pelletier,painter,wiseman,blount,feliciano,houser,doherty,mead,mcgraw,swan,capps,blanco,blackmon,thomson,mcmanus,burkett,gleason,dickens,cormier,voss,rushing,rosenberg,hurd,dumas,benitez,arellano,marin,caudill,bragg,jaramillo,huerta,gipson,colvin,biggs,vela,platt,cassidy,tompkins,mccollum,dolan,daley,crump,sneed,kilgore,grove,grimm,davison,brunson,prater,marcum,devine,dodge,stratton,rosas,choi,tripp,ledbetter,hightower,feldman,epps,yeager,posey,scruggs,cope,stubbs,richey,overton,trotter,sprague,cordero,butcher,stiles,burgos,woodson,horner,bassett,purcell,haskins,akins,ziegler,spaulding,hadley,grubbs,sumner,murillo,zavala,shook,lockwood,driscoll,dahl,thorpe,redmond,putnam,mcwilliams,mcrae,romano,joiner,sadler,hedrick,hager,hagen,fitch,coulter,thacker,mansfield,langston,guidry,ferreira,corley,conn,rossi,lackey,baez,saenz,mcnamara,mcmullen,mckenna,mcdonough,link,engel,browne,roper,peacock,eubanks,drummond,stringer,pritchett,parham,mims,landers,grayson,schafer,egan,timmons,ohara,keen,hamlin,finn,cortes,mcnair,nadeau,moseley,michaud,rosen,oakes,kurtz,jeffers,calloway,beal,bautista,winn,suggs,stern,stapleton,lyles,laird,montano,dawkins,hagan,goldman,bryson,barajas,lovett,segura,metz,lockett,langford,hinson,eastman,hooks,smallwood,shapiro,crowell,whalen,triplett,chatman,aldrich,cahill,youngblood,ybarra,stallings,sheets,reeder,connelly,bateman,abernathy,winkler,wilkes,masters,hackett,granger,gillis,schmitz,sapp,napier,souza,lanier,gomes,weir,otero,ledford,burroughs,babcock,ventura,siegel,dugan,bledsoe,atwood,wray,varner,spangler,anaya,staley,kraft,fournier,belanger,wolff,thorne,bynum,burnette,boykin,swenson,purvis,pina,khan,duvall,darby,xiong,kauffman,healy,engle,benoit,valle,steiner,spicer,shaver,randle,lundy,chin,calvert,staton,neff,kearney,darden,oakley,medeiros,mccracken,crenshaw,perdue,dill,whittaker,tobin,washburn,hogue,goodrich,easley,bravo,dennison,shipley,kerns,jorgensen,crain,villalobos,maurer,longoria,keene,coon,witherspoon,staples,pettit,kincaid,eason,madrid,echols,lusk,stahl,currie,thayer,shultz,mcnally,seay,maher,gagne,barrow,nava,moreland,honeycutt,hearn,diggs,caron,whitten,westbrook,stovall,ragland,munson,meier,looney,kimble,jolly,hobson,goddard,culver,burr,presley,negron,connell,tovar,huddleston,ashby,salter,root,pendleton,oleary,nickerson,myrick,judd,jacobsen,bain,adair,starnes,matos,busby,herndon,hanley,bellamy,doty,bartley,yazzie,rowell,parson,gifford,cullen,christiansen,benavides,barnhart,talbot,mock,crandall,connors,bonds,whitt,gage,bergman,arredondo,addison,lujan,dowdy,jernigan,huynh,bouchard,dutton,rhoades,ouellette,kiser,herrington,hare,blackman,babb,allred,rudd,paulson,ogden,koenig,geiger,begay,parra,lassiter,hawk,esposito,waldron,ransom,prather,chacon,vick,sands,roark,parr,mayberry,greenberg,coley,bruner,whitman,skaggs,shipman,leary,hutton,romo,medrano,ladd,kruse,askew,schulz,alfaro,tabor,mohr,gallo,bermudez,pereira,bliss,reaves,flint,comer,woodall,naquin,guevara,delong,carrier,pickens,tilley,schaffer,knutson,fenton,doran,vogt,vann,prescott,mclain,landis,corcoran,zapata,hyatt,hemphill,faulk,dove,boudreaux,aragon,whitlock,trejo,tackett,shearer,saldana,hanks,mckinnon,koehler,bourgeois,keyes,goodson,foote,lunsford,goldsmith,flood,winslow,sams,reagan,mccloud,hough,esquivel,naylor,loomis,coronado,ludwig,braswell,bearden,huang,fagan,ezell,edmondson,cronin,nunn,lemon,guillory,grier,dubose,traylor,ryder,dobbins,coyle,aponte,whitmore,smalls,rowan,malloy,cardona,braxton,borden,humphries,carrasco,ruff,metzger,huntley,hinojosa,finney,madsen,ernst,dozier,burkhart,bowser,peralta,daigle,whittington,sorenson,saucedo,roche,redding,fugate,avalos,waite,lind,huston,hawthorne,hamby,boyles,boles,regan,faust,crook,beam,barger,hinds,gallardo,willoughby,willingham,eckert,busch,zepeda,worthington,tinsley,hoff,hawley,carmona,varela,rector,newcomb,kinsey,dube,whatley,ragsdale,bernstein,becerra,yost,mattson,felder,cheek,handy,grossman,gauthier,escobedo,braden,beckman,mott,hillman,flaherty,dykes,stockton,stearns,lofton,coats,cavazos,beavers,barrios,tang,mosher,cardwell,coles,burnham,weller,lemons,beebe,aguilera,parnell,harman,couture,alley,schumacher,redd,dobbs,blum,blalock,merchant,ennis,denson,cottrell,brannon,bagley,aviles,watt,sousa,rosenthal,rooney,dietz,blank,paquette,mcclelland,duff,velasco,lentz,grubb,burrows,barbour,ulrich,shockley,rader,beyer,mixon,layton,altman,weathers,stoner,squires,shipp,priest,lipscomb,cutler,caballero,zimmer,willett,thurston,storey,medley,epperson,shah,mcmillian,baggett,torrez,hirsch,dent,poirier,peachey,farrar,creech,barth,trimble,dupre,albrecht,sample,lawler,crisp,conroy,wetzel,nesbitt,murry,jameson,wilhelm,patten,minton,matson,kimbrough,guinn,croft,toth,pulliam,nugent,newby,littlejohn,dias,canales,bernier,baron,singletary,renteria,pruett,mchugh,mabry,landrum,brower,stoddard,cagle,stjohn,scales,kohler,kellogg,hopson,gant,tharp,gann,zeigler,pringle,hammons,fairchild,deaton,chavis,carnes,rowley,matlock,kearns,irizarry,carrington,starkey,lopes,jarrell,craven,baum,littlefield,linn,humphreys,etheridge,cuellar,chastain,bundy,speer,skelton,quiroz,pyle,portillo,ponder,moulton,machado,killian,hutson,hitchcock,dowling,cloud,burdick,spann,pedersen,levin,leggett,hayward,dietrich,beaulieu,barksdale,wakefield,snowden,briscoe,bowie,berman,ogle,mcgregor,laughlin,helm,burden,wheatley,schreiber,pressley,parris,alaniz,agee,swann,snodgrass,schuster,radford,monk,mattingly,harp,girard,cheney,yancey,wagoner,ridley,lombardo,hudgins,gaskins,duckworth,coburn,willey,prado,newberry,magana,hammonds,elam,whipple,slade,serna,ojeda,liles,dorman,diehl,upton,reardon,michaels,goetz,eller,bauman,baer,layne,hummel,brenner,amaya,adamson,ornelas,dowell,cloutier,castellanos,wellman,saylor,orourke,moya,montalvo,kilpatrick,durbin,shell,oldham,kang,garvin,foss,branham,bartholomew,templeton,maguire,holton,rider,monahan,mccormack,beaty,anders,streeter,nieto,nielson,moffett,lankford,keating,heck,gatlin,delatorre,callaway,adcock,worrell,unger,robinette,nowak,jeter,brunner,steen,parrott,overstreet,nobles,montanez,clevenger,brinkley,trahan,quarles,pickering,pederson,jansen,grantham,gilchrist,crespo,aiken,schell,schaeffer,lorenz,leyva,harms,dyson,wallis,pease,leavitt,cheng,cavanaugh,batts,warden,seaman,rockwell,quezada,paxton,linder,houck,fontaine,durant,caruso,adler,pimentel,mize,lytle,cleary,cason,acker,switzer,isaacs,higginbotham,waterman,vandyke,stamper,sisk,shuler,riddick,mcmahan,levesque,hatton,bronson,bollinger,arnett,okeefe,gerber,gannon,farnsworth,baughman,silverman,satterfield,mccrary,kowalski,grigsby,greco,cabral,trout,rinehart,mahon,linton,gooden,curley,baugh,wyman,weiner,schwab,schuler,morrissey,mahan,bunn,thrasher,spear,waggoner,qualls,purdy,mcwhorter,mauldin,gilman,perryman,newsom,menard,martino,graf,billingsley,artis,simpkins,salisbury,quintanilla,gilliland,fraley,foust,crouse,scarborough,grissom,fultz,marlow,markham,madrigal,lawton,barfield,whiting,varney,schwarz,gooch,arce,wheat,truong,poulin,hurtado,selby,gaither,fortner,culpepper,coughlin,brinson,boudreau,bales,stepp,holm,schilling,morrell,kahn,heaton,gamez,causey,turpin,shanks,schrader,meek,isom,hardison,carranza,yanez,scroggins,schofield,runyon,ratcliff,murrell,moeller,irby,currier,butterfield,ralston,pullen,pinson,estep,carbone,hawks,ellington,casillas,spurlock,sikes,motley,mccartney,kruger,isbell,houle,burk,tomlin,quigley,neumann,lovelace,fennell,cheatham,bustamante,skidmore,hidalgo,forman,culp,bowens,betancourt,aquino,robb,milner,martel,gresham,wiles,ricketts,dowd,collazo,bostic,blakely,sherrod,kenyon,gandy,ebert,deloach,allard,sauer,robins,olivares,gillette,chestnut,bourque,paine,hite,hauser,devore,crawley,chapa,talbert,poindexter,meador,mcduffie,mattox,kraus,harkins,choate,wren,sledge,sanborn,kinder,geary,cornwell,barclay,abney,seward,rhoads,howland,fortier,benner,vines,tubbs,troutman,rapp,mccurdy,deluca,westmoreland,havens,guajardo,clary,seal,meehan,herzog,guillen,ashcraft,waugh,renner,milam,elrod,churchill,breaux,bolin,asher,windham,tirado,pemberton,nolen,noland,knott,emmons,cornish,christenson,brownlee,barbee,waldrop,pitt,olvera,lombardi,gruber,gaffney,eggleston,banda,archuleta,slone,prewitt,pfeiffer,nettles,mena,mcadams,henning,gardiner,cromwell,chisholm,burleson,vest,oglesby,mccarter,lumpkin,wofford,vanhorn,thorn,teel,swafford,stclair,stanfield,ocampo,herrmann,hannon,arsenault,roush,mcalister,hiatt,gunderson,forsythe,duggan,delvalle,cintron,wilks,weinstein,uribe,rizzo,noyes,mclendon,gurley,bethea,winstead,maples,guyton,giordano,alderman,valdes,polanco,pappas,lively,grogan,griffiths,bobo,arevalo,whitson,sowell,rendon,fernandes,farrow,benavidez,ayres,alicea,stump,smalley,seitz,schulte,gilley,gallant,canfield,wolford,omalley,mcnutt,mcnulty,mcgovern,hardman,harbin,cowart,chavarria,brink,beckett,bagwell,armstead,anglin,abreu,reynoso,krebs,jett,hoffmann,greenfield,forte,burney,broome,sisson,trammell,partridge,mace,lomax,lemieux,gossett,frantz,fogle,cooney,broughton,pence,paulsen,muncy,mcarthur,hollins,beauchamp,withers,osorio,mulligan,hoyle,dockery,cockrell,begley,amador,roby,rains,lindquist,gentile,everhart,bohannon,wylie,sommers,purnell,fortin,dunning,breeden,vail,phelan,phan,marx,cosby,colburn,boling,biddle,ledesma,gaddis,denney,chow,bueno,berrios,wicker,tolliver,thibodeaux,nagle,lavoie,fisk,crist,barbosa,reedy,locklear,kolb,himes,behrens,beckwith,weems,wahl,shorter,shackelford,rees,muse,cerda,valadez,thibodeau,saavedra,ridgeway,reiter,mchenry,majors,lachance,keaton,ferrara,clemens,blocker,applegate,needham,mojica,kuykendall,hamel,escamilla,doughty,burchett,ainsworth,vidal,upchurch,thigpen,strauss,spruill,sowers,riggins,ricker,mccombs,harlow,buffington,sotelo,olivas,negrete,morey,macon,logsdon,lapointe,bigelow,bello,westfall,stubblefield,lindley,hein,hawes,farrington,breen,birch,wilde,steed,sepulveda,reinhardt,proffitt,minter,messina,mcnabb,maier,keeler,gamboa,donohue,basham,shinn,crooks,cota,borders,bills,bachman,tisdale,tavares,schmid,pickard,gulley,fonseca,delossantos,condon,batista,wicks,wadsworth,martell,littleton,ison,haag,folsom,brumfield,broyles,brito,mireles,mcdonnell,leclair,hamblin,gough,fanning,binder,winfield,whitworth,soriano,palumbo,newkirk,mangum,hutcherson,comstock,carlin,beall,bair,wendt,watters,walling,putman,otoole,morley,mares,lemus,keener,hundley,dial,damico,billups,strother,mcfarlane,lamm,eaves,crutcher,caraballo,canty,atwell,taft,siler,rust,rawls,rawlings,prieto,mcneely,mcafee,hulsey,hackney,galvez,escalante,delagarza,crider,bandy,wilbanks,stowe,steinberg,renfro,masterson,massie,lanham,haskell,hamrick,dehart,burdette,branson,bourne,babin,aleman,worthy,tibbs,smoot,slack,paradis,mull,luce,houghton,gantt,furman,danner,christianson,burge,ashford,arndt,almeida,stallworth,shade,searcy,sager,noonan,mclemore,mcintire,maxey,lavigne,jobe,ferrer,falk,coffin,byrnes,aranda,apodaca,stamps,rounds,peek,olmstead,lewandowski,kaminski,dunaway,bruns,brackett,amato,reich,mcclung,lacroix,koontz,herrick,hardesty,flanders,cousins,cato,cade,vickery,shank,nagel,dupuis,croteau,cotter,stuckey,stine,porterfield,pauley,moffitt,knudsen,hardwick,goforth,dupont,blunt,barrows,barnhill,shull,rash,loftis,lemay,kitchens,horvath,grenier,fuchs,fairbanks,culbertson,calkins,burnside,beattie,ashworth,albertson,wertz,vaught,vallejo,turk,tuck,tijerina,sage,peterman,marroquin,marr,lantz,hoang,demarco,cone,berube,barnette,wharton,stinnett,slocum,scanlon,sander,pinto,mancuso,lima,headley,epstein,counts,clarkson,carnahan,boren,arteaga,adame,zook,whittle,whitehurst,wenzel,saxton,reddick,puente,handley,haggerty,earley,devlin,chaffin,cady,acuna,solano,sigler,pollack,pendergrass,ostrander,janes,francois,crutchfield,chamberlin,brubaker,baptiste,willson,reis,neeley,mullin,mercier,lira,layman,keeling,higdon,espinal,chapin,warfield,toledo,pulido,peebles,nagy,montague,mello,lear,jaeger,hogg,graff,furr,soliz,poore,mendenhall,mclaurin,maestas,gable,barraza,tillery,snead,pond,neill,mcculloch,mccorkle,lightfoot,hutchings,holloman,harness,dorn,bock,zielinski,turley,treadwell,stpierre,starling,somers,oswald,merrick,easterling,bivens,truitt,poston,parry,ontiveros,olivarez,moreau,medlin,lenz,knowlton,fairley,cobbs,chisolm,bannister,woodworth,toler,ocasio,noriega,neuman,moye,milburn,mcclanahan,lilley,hanes,flannery,dellinger,danielson,conti,blodgett,beers,weatherford,strain,karr,hitt,denham,custer,coble,clough,casteel,bolduc,batchelor,ammons,whitlow,tierney,staten,sibley,seifert,schubert,salcedo,mattison,laney,haggard,grooms,dees,cromer,cooks,colson,caswell,zarate,swisher,shin,ragan,pridgen,mcvey,matheny,lafleur,franz,ferraro,dugger,whiteside,rigsby,mcmurray,lehmann,jacoby,hildebrand,hendrick,headrick,goad,fincher,drury,borges,archibald,albers,woodcock,trapp,soares,seaton,monson,luckett,lindberg,kopp,keeton,healey,garvey,gaddy,fain,burchfield,wentworth,strand,stack,spooner,saucier,ricci,plunkett,pannell,ness,leger,freitas,fong,elizondo,duval,beaudoin,urbina,rickard,partin,mcgrew,mcclintock,ledoux,forsyth,faison,devries,bertrand,wasson,tilton,scarbrough,leung,irvine,garber,denning,corral,colley,castleberry,bowlin,bogan,beale,baines,trice,rayburn,parkinson,nunes,mcmillen,leahy,kimmel,higgs,fulmer,carden,bedford,taggart,spearman,prichard,morrill,koonce,heinz,hedges,guenther,grice,findley,dover,creighton,boothe,bayer,arreola,vitale,valles,raney,osgood,hanlon,burley,bounds,worden,weatherly,vetter,tanaka,stiltner,nevarez,mosby,montero,melancon,harter,hamer,goble,gladden,gist,ginn,akin,zaragoza,tarver,sammons,royster,oreilly,muir,morehead,luster,kingsley,kelso,grisham,glynn,baumann,alves,yount,tamayo,paterson,oates,menendez,longo,hargis,gillen,desantis,conover,breedlove,sumpter,scherer,rupp,reichert,heredia,creel,cohn,clemmons,casas,bickford,belton,bach,williford,whitcomb,tennant,sutter,stull,mccallum,langlois,keel,keegan,dangelo,dancy,damron,clapp,clanton,bankston,oliveira,mintz,mcinnis,martens,mabe,laster,jolley,hildreth,hefner,glaser,duckett,demers,brockman,blais,alcorn,agnew,toliver,tice,seeley,najera,musser,mcfall,laplante,galvin,fajardo,doan,coyne,copley,clawson,cheung,barone,wynne,woodley,tremblay,stoll,sparrow,sparkman,schweitzer,sasser,samples,roney,legg,heim,farias,colwell,christman,bratcher,winchester,upshaw,southerland,sorrell,sells,mccloskey,martindale,luttrell,loveless,lovejoy,linares,latimer,embry,coombs,bratton,bostick,venable,tuggle,toro,staggs,sandlin,jefferies,heckman,griffis,crayton,clem,browder,thorton,sturgill,sprouse,royer,rousseau,ridenour,pogue,perales,peeples,metzler,mesa,mccutcheon,mcbee,hornsby,heffner,corrigan,armijo,plante,peyton,paredes,macklin,hussey,hodgson,granados,frias,becnel,batten,almanza,turney,teal,sturgeon,meeker,mcdaniels,limon,keeney,hutto,holguin,gorham,fishman,fierro,blanchette,rodrigue,reddy,osburn,oden,lerma,kirkwood,keefer,haugen,hammett,chalmers,brinkman,baumgartner,zhang,valerio,tellez,steffen,shumate,sauls,ripley,kemper,guffey,evers,craddock,carvalho,blaylock,banuelos,balderas,wheaton,turnbull,shuman,pointer,mosier,mccue,ligon,kozlowski,johansen,ingle,herr,briones,snipes,rickman,pipkin,pantoja,orosco,moniz,lawless,kunkel,hibbard,galarza,enos,bussey,schott,salcido,perreault,mcdougal,mccool,haight,garris,easton,conyers,atherton,wimberly,utley,spellman,smithson,slagle,ritchey,rand,petit,osullivan,oaks,nutt,mcvay,mccreary,mayhew,knoll,jewett,harwood,cardoza,ashe,arriaga,zeller,wirth,whitmire,stauffer,rountree,redden,mccaffrey,martz,larose,langdon,humes,gaskin,faber,devito,cass,almond,wingfield,wingate,villareal,tyner,smothers,severson,reno,pennell,maupin,leighton,janssen,hassell,hallman,halcomb,folse,fitzsimmons,fahey,cranford,bolen,battles,battaglia,wooldridge,trask,rosser,regalado,mcewen,keefe,fuqua,echevarria,caro,boynton,andrus,viera,vanmeter,taber,spradlin,seibert,provost,prentice,oliphant,laporte,hwang,hatchett,hass,greiner,freedman,covert,chilton,byars,wiese,venegas,swank,shrader,roberge,mullis,mortensen,mccune,marlowe,kirchner,keck,isaacson,hostetler,halverson,gunther,griswold,fenner,durden,blackwood,ahrens,sawyers,savoy,nabors,mcswain,mackay,lavender,lash,labbe,jessup,fullerton,cruse,crittenden,correia,centeno,caudle,canady,callender,alarcon,ahern,winfrey,tribble,salley,roden,musgrove,minnick,fortenberry,carrion,bunting,batiste,whited,underhill,stillwell,rauch,pippin,perrin,messenger,mancini,lister,kinard,hartmann,fleck,wilt,treadway,thornhill,spalding,rafferty,pitre,patino,ordonez,linkous,kelleher,homan,galbraith,feeney,curtin,coward,camarillo,buss,bunnell,bolt,beeler,autry,alcala,witte,wentz,stidham,shively,nunley,meacham,martins,lemke,lefebvre,hynes,horowitz,hoppe,holcombe,dunne,derr,cochrane,brittain,bedard,beauregard,torrence,strunk,soria,simonson,shumaker,scoggins,oconner,moriarty,kuntz,ives,hutcheson,horan,hales,garmon,fitts,bohn,atchison,wisniewski,vanwinkle,sturm,sallee,prosser,moen,lundberg,kunz,kohl,keane,jorgenson,jaynes,funderburk,freed,durr,creamer,cosgrove,batson,vanhoose,thomsen,teeter,smyth,redmon,orellana,maness,heflin,goulet,frick,forney,bunker,asbury,aguiar,talbott,southard,mowery,mears,lemmon,krieger,hickson,elston,duong,delgadillo,dayton,dasilva,conaway,catron,bruton,bradbury,bordelon,bivins,bittner,bergstrom,beals,abell,whelan,tejada,pulley,pino,norfleet,nealy,maes,loper,gatewood,frierson,freund,finnegan,cupp,covey,catalano,boehm,bader,yoon,walston,tenney,sipes,rawlins,medlock,mccaskill,mccallister,marcotte,maclean,hughey,henke,harwell,gladney,gilson,chism,caskey,brandenburg,baylor,villasenor,veal,thatcher,stegall,petrie,nowlin,navarrete,lombard,loftin,lemaster,kroll,kovach,kimbrell,kidwell,hershberger,fulcher,cantwell,bustos,boland,bobbitt,binkley,wester,weis,verdin,tong,tiller,sisco,sharkey,seymore,rosenbaum,rohr,quinonez,pinkston,malley,logue,lessard,lerner,lebron,krauss,klinger,halstead,haller,getz,burrow,alger,shores,pfeifer,perron,nelms,munn,mcmaster,mckenney,manns,knudson,hutchens,huskey,goebel,flagg,cushman,click,castellano,carder,bumgarner,wampler,spinks,robson,neel,mcreynolds,mathias,maas,loera,jenson,florez,coons,buckingham,brogan,berryman,wilmoth,wilhite,thrash,shephard,seidel,schulze,roldan,pettis,obryan,maki,mackie,hatley,frazer,fiore,chesser,bottoms,bisson,benefield,allman,wilke,trudeau,timm,shifflett,mundy,milliken,mayers,leake,kohn,huntington,horsley,hermann,guerin,fryer,frizzell,foret,flemming,fife,criswell,carbajal,bozeman,boisvert,angulo,wallen,tapp,silvers,ramsay,oshea,orta,moll,mckeever,mcgehee,linville,kiefer,ketchum,howerton,groce,gass,fusco,corbitt,betz,bartels,amaral,aiello,weddle,sperry,seiler,runyan,raley,overby,osteen,olds,mckeown,matney,lauer,lattimore,hindman,hartwell,fredrickson,fredericks,espino,clegg,carswell,cambell,burkholder,woodbury,welker,totten,thornburg,theriault,stitt,stamm,stackhouse,scholl,saxon,rife,razo,quinlan,pinkerton,olivo,nesmith,nall,mattos,lafferty,justus,giron,geer,fielder,drayton,dortch,conners,conger,boatwright,billiot,barden,armenta,tibbetts,steadman,slattery,rinaldi,raynor,pinckney,pettigrew,milne,matteson,halsey,gonsalves,fellows,durand,desimone,cowley,cowles,brill,barham,barela,barba,ashmore,withrow,valenti,tejeda,spriggs,sayre,salerno,peltier,peel,merriman,matheson,lowman,lindstrom,hyland,giroux,earls,dugas,dabney,collado,briseno,baxley,whyte,wenger,vanover,vanburen,thiel,schindler,schiller,rigby,pomeroy,passmore,marble,manzo,mahaffey,lindgren,laflamme,greathouse,fite,calabrese,bayne,yamamoto,wick,townes,thames,reinhart,peeler,naranjo,montez,mcdade,mast,markley,marchand,leeper,kellum,hudgens,hennessey,hadden,gainey,coppola,borrego,bolling,beane,ault,slaton,pape,null,mulkey,lightner,langer,hillard,ethridge,enright,derosa,baskin,weinberg,turman,somerville,pardo,noll,lashley,ingraham,hiller,hendon,glaze,cothran,cooksey,conte,carrico,abner,wooley,swope,summerlin,sturgis,sturdivant,stott,spurgeon,spillman,speight,roussel,popp,nutter,mckeon,mazza,magnuson,lanning,kozak,jankowski,heyward,forster,corwin,callaghan,bays,wortham,usher,theriot,sayers,sabo,poling,loya,lieberman,laroche,labelle,howes,harr,garay,fogarty,everson,durkin,dominquez,chaves,chambliss,witcher,vieira,vandiver,terrill,stoker,schreiner,moorman,liddell,lawhorn,krug,irons,hylton,hollenbeck,herrin,hembree,goolsby,goodin,gilmer,foltz,dinkins,daughtry,caban,brim,briley,bilodeau,wyant,vergara,tallent,swearingen,stroup,scribner,quillen,pitman,mccants,maxfield,martinson,holtz,flournoy,brookins,brody,baumgardner,straub,sills,roybal,roundtree,oswalt,mcgriff,mcdougall,mccleary,maggard,gragg,gooding,godinez,doolittle,donato,cowell,cassell,bracken,appel,zambrano,reuter,perea,nakamura,monaghan,mickens,mcclinton,mcclary,marler,kish,judkins,gilbreath,freese,flanigan,felts,erdmann,dodds,chew,brownell,boatright,barreto,slayton,sandberg,saldivar,pettway,odum,narvaez,moultrie,montemayor,merrell,lees,keyser,hoke,hardaway,hannan,gilbertson,fogg,dumont,deberry,coggins,buxton,bucher,broadnax,beeson,araujo,appleton,amundson,aguayo,ackley,yocum,worsham,shivers,sanches,sacco,robey,rhoden,pender,ochs,mccurry,madera,luong,knotts,jackman,heinrich,hargrave,gault,comeaux,chitwood,caraway,boettcher,bernhardt,barrientos,zink,wickham,whiteman,thorp,stillman,settles,schoonover,roque,riddell,pilcher,phifer,novotny,macleod,hardee,haase,grider,doucette,clausen,bevins,beamon,badillo,tolley,tindall,soule,snook,seale,pinkney,pellegrino,nowell,nemeth,mondragon,mclane,lundgren,ingalls,hudspeth,hixson,gearhart,furlong,downes,dibble,deyoung,cornejo,camara,brookshire,boyette,wolcott,surratt,sellars,segal,salyer,reeve,rausch,labonte,haro,gower,freeland,fawcett,eads,driggers,donley,collett,bromley,boatman,ballinger,baldridge,volz,trombley,stonge,shanahan,rivard,rhyne,pedroza,matias,jamieson,hedgepeth,hartnett,estevez,eskridge,denman,chiu,chinn,catlett,carmack,buie,bechtel,beardsley,bard,ballou,ulmer,skeen,robledo,rincon,reitz,piazza,munger,moten,mcmichael,loftus,ledet,kersey,groff,fowlkes,crumpton,clouse,bettis,villagomez,timmerman,strom,santoro,roddy,penrod,musselman,macpherson,leboeuf,harless,haddad,guido,golding,fulkerson,fannin,dulaney,dowdell,cottle,ceja,cate,bosley,benge,albritton,voigt,trowbridge,soileau,seely,rohde,pearsall,paulk,orth,nason,mota,mcmullin,marquardt,madigan,hoag,gillum,gabbard,fenwick,danforth,cushing,cress,creed,cazares,bettencourt,barringer,baber,stansberry,schramm,rutter,rivero,oquendo,necaise,mouton,montenegro,miley,mcgough,marra,macmillan,lamontagne,jasso,horst,hetrick,heilman,gaytan,gall,fortney,dingle,desjardins,dabbs,burbank,brigham,breland,beaman,arriola,yarborough,wallin,toscano,stowers,reiss,pichardo,orton,michels,mcnamee,mccrory,leatherman,kell,keister,horning,hargett,guay,ferro,deboer,dagostino,carper,blanks,beaudry,towle,tafoya,stricklin,strader,soper,sonnier,sigmon,schenk,saddler,pedigo,mendes,lunn,lohr,lahr,kingsbury,jarman,hume,holliman,hofmann,haworth,harrelson,hambrick,flick,edmunds,dacosta,crossman,colston,chaplin,carrell,budd,weiler,waits,valentino,trantham,tarr,solorio,roebuck,powe,plank,pettus,pagano,mink,luker,leathers,joslin,hartzell,gambrell,cepeda,carty,caputo,brewington,bedell,ballew,applewhite,warnock,walz,urena,tudor,reel,pigg,parton,mickelson,meagher,mclellan,mcculley,mandel,leech,lavallee,kraemer,kling,kipp,kehoe,hochstetler,harriman,gregoire,grabowski,gosselin,gammon,fancher,edens,desai,brannan,armendariz,woolsey,whitehouse,whetstone,ussery,towne,testa,tallman,studer,strait,steinmetz,sorrells,sauceda,rolfe,paddock,mitchem,mcginn,mccrea,lovato,hazen,gilpin,gaynor,fike,devoe,delrio,curiel,burkhardt,bode,backus,zinn,watanabe,wachter,vanpelt,turnage,shaner,schroder,sato,riordan,quimby,portis,natale,mckoy,mccown,kilmer,hotchkiss,hesse,halbert,gwinn,godsey,delisle,chrisman,canter,arbogast,angell,acree,yancy,woolley,wesson,weatherspoon,trainor,stockman,spiller,sipe,rooks,reavis,propst,porras,neilson,mullens,loucks,llewellyn,kumar,koester,klingensmith,kirsch,kester,honaker,hodson,hennessy,helmick,garrity,garibay,drain,casarez,callis,botello,aycock,avant,wingard,wayman,tully,theisen,szymanski,stansbury,segovia,rainwater,preece,pirtle,padron,mincey,mckelvey,mathes,larrabee,kornegay,klug,ingersoll,hecht,germain,eggers,dykstra,deering,decoteau,deason,dearing,cofield,carrigan,bonham,bahr,aucoin,appleby,almonte,yager,womble,wimmer,weimer,vanderpool,stancil,sprinkle,romine,remington,pfaff,peckham,olivera,meraz,maze,lathrop,koehn,hazelton,halvorson,hallock,haddock,ducharme,dehaven,caruthers,brehm,bosworth,bost,bias,beeman,basile,bane,aikens,wold,walther,tabb,suber,strawn,stocker,shirey,schlosser,riedel,rembert,reimer,pyles,peele,merriweather,letourneau,latta,kidder,hixon,hillis,hight,herbst,henriquez,haygood,hamill,gabel,fritts,eubank,dawes,correll,bushey,buchholz,brotherton,botts,barnwell,auger,atchley,westphal,veilleux,ulloa,stutzman,shriver,ryals,pilkington,moyers,marrs,mangrum,maddux,lockard,laing,kuhl,harney,hammock,hamlett,felker,doerr,depriest,carrasquillo,carothers,bogle,bischoff,bergen,albanese,wyckoff,vermillion,vansickle,thibault,tetreault,stickney,shoemake,ruggiero,rawson,racine,philpot,paschal,mcelhaney,mathison,legrand,lapierre,kwan,kremer,jiles,hilbert,geyer,faircloth,ehlers,egbert,desrosiers,dalrymple,cotten,cashman,cadena,boardman,alcaraz,wyrick,therrien,tankersley,strickler,puryear,plourde,pattison,pardue,mcginty,mcevoy,landreth,kuhns,koon,hewett,giddens,emerick,eades,deangelis,cosme,ceballos,birdsong,benham,bemis,armour,anguiano,welborn,tsosie,storms,shoup,sessoms,samaniego,rood,rojo,rhinehart,raby,northcutt,myer,munguia,morehouse,mcdevitt,mallett,lozada,lemoine,kuehn,hallett,grim,gillard,gaylor,garman,gallaher,feaster,faris,darrow,dardar,coney,carreon,braithwaite,boylan,boyett,bixler,bigham,benford,barragan,barnum,zuber,wyche,westcott,vining,stoltzfus,simonds,shupe,sabin,ruble,rittenhouse,richman,perrone,mulholland,millan,lomeli,kite,jemison,hulett,holler,hickerson,herold,hazelwood,griffen,gause,forde,eisenberg,dilworth,charron,chaisson,bristow,breunig,brace,boutwell,bentz,belk,bayless,batchelder,baran,baeza,zimmermann,weathersby,volk,toole,theis,tedesco,searle,schenck,satterwhite,ruelas,rankins,partida,nesbit,morel,menchaca,levasseur,kaylor,johnstone,hulse,hollar,hersey,harrigan,harbison,guyer,gish,giese,gerlach,geller,geisler,falcone,elwell,doucet,deese,darr,corder,chafin,byler,bussell,burdett,brasher,bowe,bellinger,bastian,barner,alleyne,wilborn,weil,wegner,tatro,spitzer,smithers,schoen,resendez,parisi,overman,obrian,mudd,mahler,maggio,lindner,lalonde,lacasse,laboy,killion,kahl,jessen,jamerson,houk,henshaw,gustin,graber,durst,duenas,davey,cundiff,conlon,colunga,coakley,chiles,capers,buell,bricker,bissonnette,bartz,bagby,zayas,volpe,treece,toombs,thom,terrazas,swinney,skiles,silveira,shouse,senn,ramage,moua,langham,kyles,holston,hoagland,herd,feller,denison,carraway,burford,bickel,ambriz,abercrombie,yamada,weidner,waddle,verduzco,thurmond,swindle,schrock,sanabria,rosenberger,probst,peabody,olinger,nazario,mccafferty,mcbroom,mcabee,mazur,matherne,mapes,leverett,killingsworth,heisler,griego,gosnell,frankel,franke,ferrante,fenn,ehrlich,christopherso,chasse,caton,brunelle,bloomfield,babbitt,azevedo,abramson,ables,abeyta,youmans,wozniak,wainwright,stowell,smitherman,samuelson,runge,rothman,rosenfeld,peake,owings,olmos,munro,moreira,leatherwood,larkins,krantz,kovacs,kizer,kindred,karnes,jaffe,hubbell,hosey,hauck,goodell,erdman,dvorak,doane,cureton,cofer,buehler,bierman,berndt,banta,abdullah,warwick,waltz,turcotte,torrey,stith,seger,sachs,quesada,pinder,peppers,pascual,paschall,parkhurst,ozuna,oster,nicholls,lheureux,lavalley,kimura,jablonski,haun,gourley,gilligan,croy,cotto,cargill,burwell,burgett,buckman,booher,adorno,wrenn,whittemore,urias,szabo,sayles,saiz,rutland,rael,pharr,pelkey,ogrady,nickell,musick,moats,mather,massa,kirschner,kieffer,kellar,hendershot,gott,godoy,gadson,furtado,fiedler,erskine,dutcher,dever,daggett,chevalier,brake,ballesteros,amerson,wingo,waldon,trott,silvey,showers,schlegel,ritz,pepin,pelayo,parsley,palermo,moorehead,mchale,lett,kocher,kilburn,iglesias,humble,hulbert,huckaby,hartford,hardiman,gurney,grigg,grasso,goings,fillmore,farber,depew,dandrea,cowen,covarrubias,burrus,bracy,ardoin,thompkins,standley,radcliffe,pohl,persaud,parenteau,pabon,newson,newhouse,napolitano,mulcahy,malave,keim,hooten,hernandes,heffernan,hearne,greenleaf,glick,fuhrman,fetter,faria,dishman,dickenson,crites,criss,clapper,chenault,castor,casto,bugg,bove,bonney,anderton,allgood,alderson,woodman,warrick,toomey,tooley,tarrant,summerville,stebbins,sokol,searles,schutz,schumann,scheer,remillard,raper,proulx,palmore,monroy,messier,melo,melanson,mashburn,manzano,lussier,jenks,huneycutt,hartwig,grimsley,fulk,fielding,fidler,engstrom,eldred,dantzler,crandell,calder,brumley,breton,brann,bramlett,boykins,bianco,bancroft,almaraz,alcantar,whitmer,whitener,welton,vineyard,rahn,paquin,mizell,mcmillin,mckean,marston,maciel,lundquist,liggins,lampkin,kranz,koski,kirkham,jiminez,hazzard,harrod,graziano,grammer,gendron,garrido,fordham,englert,dryden,demoss,deluna,crabb,comeau,brummett,blume,benally,wessel,vanbuskirk,thorson,stumpf,stockwell,reams,radtke,rackley,pelton,niemi,newland,nelsen,morrissette,miramontes,mcginley,mccluskey,marchant,luevano,lampe,lail,jeffcoat,infante,hinman,gaona,eady,desmarais,decosta,dansby,cisco,choe,breckenridge,bostwick,borg,bianchi,alberts,wilkie,whorton,vargo,tait,soucy,schuman,ousley,mumford,lippert,leath,lavergne,laliberte,kirksey,kenner,johnsen,izzo,hiles,gullett,greenwell,gaspar,galbreath,gaitan,ericson,delapaz,croom,cottingham,clift,bushnell,bice,beason,arrowood,waring,voorhees,truax,shreve,shockey,schatz,sandifer,rubino,rozier,roseberry,pieper,peden,nester,nave,murphey,malinowski,macgregor,lafrance,kunkle,kirkman,hipp,hasty,haddix,gervais,gerdes,gamache,fouts,fitzwater,dillingham,deming,deanda,cedeno,cannady,burson,bouldin,arceneaux,woodhouse,whitford,wescott,welty,weigel,torgerson,toms,surber,sunderland,sterner,setzer,riojas,pumphrey,puga,metts,mcgarry,mccandless,magill,lupo,loveland,llamas,leclerc,koons,kahler,huss,holbert,heintz,haupt,grimmett,gaskill,ellingson,dorr,dingess,deweese,desilva,crossley,cordeiro,converse,conde,caldera,cairns,burmeister,burkhalter,brawner,bott,youngs,vierra,valladares,shrum,shropshire,sevilla,rusk,rodarte,pedraza,nino,merino,mcminn,markle,mapp,lajoie,koerner,kittrell,kato,hyder,hollifield,heiser,hazlett,greenwald,fant,eldredge,dreher,delafuente,cravens,claypool,beecher,aronson,alanis,worthen,wojcik,winger,whitacre,valverde,valdivia,troupe,thrower,swindell,suttles,stroman,spires,slate,shealy,sarver,sartin,sadowski,rondeau,rolon,rascon,priddy,paulino,nolte,munroe,molloy,mciver,lykins,loggins,lenoir,klotz,kempf,hupp,hollowell,hollander,haynie,harkness,harker,gottlieb,frith,eddins,driskell,doggett,densmore,charette,cassady,byrum,burcham,buggs,benn,whitted,warrington,vandusen,vaillancourt,steger,siebert,scofield,quirk,purser,plumb,orcutt,nordstrom,mosely,michalski,mcphail,mcdavid,mccraw,marchese,mannino,lefevre,largent,lanza,kress,isham,hunsaker,hoch,hildebrandt,guarino,grijalva,graybill,fick,ewell,ewald,cusick,crumley,coston,cathcart,carruthers,bullington,bowes,blain,blackford,barboza,yingling,wert,weiland,varga,silverstein,sievers,shuster,shumway,runnels,rumsey,renfroe,provencher,polley,mohler,middlebrooks,kutz,koster,groth,glidden,fazio,deen,chipman,chenoweth,champlin,cedillo,carrero,carmody,buckles,brien,boutin,bosch,berkowitz,altamirano,wilfong,wiegand,waites,truesdale,toussaint,tobey,tedder,steelman,sirois,schnell,robichaud,richburg,plumley,pizarro,piercy,ortego,oberg,neace,mertz,mcnew,matta,lapp,lair,kibler,howlett,hollister,hofer,hatten,hagler,falgoust,engelhardt,eberle,dombrowski,dinsmore,daye,casares,braud,balch,autrey,wendel,tyndall,strobel,stoltz,spinelli,serrato,reber,rathbone,palomino,nickels,mayle,mathers,mach,loeffler,littrell,levinson,leong,lemire,lejeune,lazo,lasley,koller,kennard,hoelscher,hintz,hagerman,greaves,fore,eudy,engler,corrales,cordes,brunet,bidwell,bennet,tyrrell,tharpe,swinton,stribling,southworth,sisneros,savoie,samons,ruvalcaba,ries,ramer,omara,mosqueda,millar,mcpeak,macomber,luckey,litton,lehr,lavin,hubbs,hoard,hibbs,hagans,futrell,exum,evenson,culler,carbaugh,callen,brashear,bloomer,blakeney,bigler,addington,woodford,unruh,tolentino,sumrall,stgermain,smock,sherer,rayner,pooler,oquinn,nero,mcglothlin,linden,kowal,kerrigan,ibrahim,harvell,hanrahan,goodall,geist,fussell,fung,ferebee,eley,eggert,dorsett,dingman,destefano,colucci,clemmer,burnell,brumbaugh,boddie,berryhill,avelar,alcantara,winder,winchell,vandenberg,trotman,thurber,thibeault,stlouis,stilwell,sperling,shattuck,sarmiento,ruppert,rumph,renaud,randazzo,rademacher,quiles,pearman,palomo,mercurio,lowrey,lindeman,lawlor,larosa,lander,labrecque,hovis,holifield,henninger,hawkes,hartfield,hann,hague,genovese,garrick,fudge,frink,eddings,dinh,cribbs,calvillo,bunton,brodeur,bolding,blanding,agosto,zahn,wiener,trussell,tello,teixeira,speck,sharma,shanklin,sealy,scanlan,santamaria,roundy,robichaux,ringer,rigney,prevost,polson,nord,moxley,medford,mccaslin,mcardle,macarthur,lewin,lasher,ketcham,keiser,heine,hackworth,grose,grizzle,gillman,gartner,frazee,fleury,edson,edmonson,derry,cronk,conant,burress,burgin,broom,brockington,bolick,boger,birchfield,billington,baily,bahena,armbruster,anson,yoho,wilcher,tinney,timberlake,thielen,sutphin,stultz,sikora,serra,schulman,scheffler,santillan,rego,preciado,pinkham,mickle,lomas,lizotte,lent,kellerman,keil,johanson,hernadez,hartsfield,haber,gorski,farkas,eberhardt,duquette,delano,cropper,cozart,cockerham,chamblee,cartagena,cahoon,buzzell,brister,brewton,blackshear,benfield,aston,ashburn,arruda,wetmore,weise,vaccaro,tucci,sudduth,stromberg,stoops,showalter,shears,runion,rowden,rosenblum,riffle,renfrow,peres,obryant,leftwich,lark,landeros,kistler,killough,kerley,kastner,hoggard,hartung,guertin,govan,gatling,gailey,fullmer,fulford,flatt,esquibel,endicott,edmiston,edelstein,dufresne,dressler,dickman,chee,busse,bonnett,berard,yoshida,velarde,veach,vanhouten,vachon,tolson,tolman,tennyson,stites,soler,shutt,ruggles,rhone,pegues,neese,muro,moncrief,mefford,mcphee,mcmorris,mceachern,mcclurg,mansour,mader,leija,lecompte,lafountain,labrie,jaquez,heald,hash,hartle,gainer,frisby,farina,eidson,edgerton,dyke,durrett,duhon,cuomo,cobos,cervantez,bybee,brockway,borowski,binion,beery,arguello,amaro,acton,yuen,winton,wigfall,weekley,vidrine,vannoy,tardiff,shoop,shilling,schick,safford,prendergast,pilgrim,pellerin,osuna,nissen,nalley,moller,messner,messick,merrifield,mcguinness,matherly,marcano,mahone,lemos,lebrun,jara,hoffer,herren,hecker,haws,haug,gwin,gober,gilliard,fredette,favela,echeverria,downer,donofrio,desrochers,crozier,corson,bechtold,argueta,aparicio,zamudio,westover,westerman,utter,troyer,thies,tapley,slavin,shirk,sandler,roop,rimmer,raymer,radcliff,otten,moorer,millet,mckibben,mccutchen,mcavoy,mcadoo,mayorga,mastin,martineau,marek,madore,leflore,kroeger,kennon,jimerson,hostetter,hornback,hendley,hance,guardado,granado,gowen,goodale,flinn,fleetwood,fitz,durkee,duprey,dipietro,dilley,clyburn,brawley,beckley,arana,weatherby,vollmer,vestal,tunnell,trigg,tingle,takahashi,sweatt,storer,snapp,shiver,rooker,rathbun,poisson,perrine,perri,parmer,parke,pare,papa,palmieri,midkiff,mecham,mccomas,mcalpine,lovelady,lillard,lally,knopp,kile,kiger,haile,gupta,goldsberry,gilreath,fulks,friesen,franzen,flack,findlay,ferland,dreyer,dore,dennard,deckard,debose,crim,coulombe,chancey,cantor,branton,bissell,barns,woolard,witham,wasserman,spiegel,shoffner,scholz,ruch,rossman,petry,palacio,paez,neary,mortenson,millsap,miele,menke,mckim,mcanally,martines,lemley,larochelle,klaus,klatt,kaufmann,kapp,helmer,hedge,halloran,glisson,frechette,fontana,eagan,distefano,danley,creekmore,chartier,chaffee,carillo,burg,bolinger,berkley,benz,basso,bash,zelaya,woodring,witkowski,wilmot,wilkens,wieland,verdugo,urquhart,tsai,timms,swiger,swaim,sussman,pires,molnar,mcatee,lowder,loos,linker,landes,kingery,hufford,higa,hendren,hammack,hamann,gillam,gerhardt,edelman,delk,deans,curl,constantine,cleaver,claar,casiano,carruth,carlyle,brophy,bolanos,bibbs,bessette,beggs,baugher,bartel,averill,andresen,amin,adames,valente,turnbow,swink,sublett,stroh,stringfellow,ridgway,pugliese,poteat,ohare,neubauer,murchison,mingo,lemmons,kwon,kellam,kean,jarmon,hyden,hudak,hollinger,henkel,hemingway,hasson,hansel,halter,haire,ginsberg,gillispie,fogel,flory,etter,elledge,eckman,deas,currin,crafton,coomer,colter,claxton,bulter,braddock,bowyer,binns,bellows,baskerville,barros,ansley,woolf,wight,waldman,wadley,tull,trull,tesch,stouffer,stadler,slay,shubert,sedillo,santacruz,reinke,poynter,neri,neale,mowry,moralez,monger,mitchum,merryman,manion,macdougall,litchfield,levitt,lepage,lasalle,khoury,kavanagh,karns,ivie,huebner,hodgkins,halpin,garica,eversole,dutra,dunagan,duffey,dillman,dillion,deville,dearborn,damato,courson,coulson,burdine,bousquet,bonin,bish,atencio,westbrooks,wages,vaca,toner,tillis,swett,struble,stanfill,solorzano,slusher,sipple,silvas,shults,schexnayder,saez,rodas,rager,pulver,penton,paniagua,meneses,mcfarlin,mcauley,matz,maloy,magruder,lohman,landa,lacombe,jaimes,holzer,holst,heil,hackler,grundy,gilkey,farnham,durfee,dunton,dunston,duda,dews,craver,corriveau,conwell,colella,chambless,bremer,boutte,bourassa,blaisdell,backman,babineaux,audette,alleman,towner,taveras,tarango,sullins,suiter,stallard,solberg,schlueter,poulos,pimental,owsley,okelley,moffatt,metcalfe,meekins,medellin,mcglynn,mccowan,marriott,marable,lennox,lamoureux,koss,kerby,karp,isenberg,howze,hockenberry,highsmith,hallmark,gusman,greeley,giddings,gaudet,gallup,fleenor,eicher,edington,dimaggio,dement,demello,decastro,bushman,brundage,brooker,bourg,blackstock,bergmann,beaton,banister,argo,appling,wortman,watterson,villalpando,tillotson,tighe,sundberg,sternberg,stamey,shipe,seeger,scarberry,sattler,sain,rothstein,poteet,plowman,pettiford,penland,partain,pankey,oyler,ogletree,ogburn,moton,merkel,lucier,lakey,kratz,kinser,kershaw,josephson,imhoff,hendry,hammon,frisbie,frawley,fraga,forester,eskew,emmert,drennan,doyon,dandridge,cawley,carvajal,bracey,belisle,batey,ahner,wysocki,weiser,veliz,tincher,sansone,sankey,sandstrom,rohrer,risner,pridemore,pfeffer,persinger,peery,oubre,nowicki,musgrave,murdoch,mullinax,mccary,mathieu,livengood,kyser,klink,kimes,kellner,kavanaugh,kasten,imes,hoey,hinshaw,hake,gurule,grube,grillo,geter,gatto,garver,garretson,farwell,eiland,dunford,decarlo,corso,colman,collard,cleghorn,chasteen,cavender,carlile,calvo,byerly,brogdon,broadwater,breault,bono,bergin,behr,ballenger,amick,tamez,stiffler,steinke,simmon,shankle,schaller,salmons,sackett,saad,rideout,ratcliffe,ranson,plascencia,petterson,olszewski,olney,olguin,nilsson,nevels,morelli,montiel,monge,michaelson,mertens,mcchesney,mcalpin,mathewson,loudermilk,lineberry,liggett,kinlaw,kight,jost,hereford,hardeman,halpern,halliday,hafer,gaul,friel,freitag,forsberg,evangelista,doering,dicarlo,dendy,delp,deguzman,dameron,curtiss,cosper,cauthen,bradberry,bouton,bonnell,bixby,bieber,beveridge,bedwell,barhorst,bannon,baltazar,baier,ayotte,attaway,arenas,abrego,turgeon,tunstall,thaxton,tenorio,stotts,sthilaire,shedd,seabolt,scalf,salyers,ruhl,rowlett,robinett,pfister,perlman,pepe,parkman,nunnally,norvell,napper,modlin,mckellar,mcclean,mascarenas,leibowitz,ledezma,kuhlman,kobayashi,hunley,holmquist,hinkley,hazard,hartsell,gribble,gravely,fifield,eliason,doak,crossland,carleton,bridgeman,bojorquez,boggess,auten,woosley,whiteley,wexler,twomey,tullis,townley,standridge,santoyo,rueda,riendeau,revell,pless,ottinger,nigro,nickles,mulvey,menefee,mcshane,mcloughlin,mckinzie,markey,lockridge,lipsey,knisley,knepper,kitts,kiel,jinks,hathcock,godin,gallego,fikes,fecteau,estabrook,ellinger,dunlop,dudek,countryman,chauvin,chatham,bullins,brownfield,boughton,bloodworth,bibb,baucom,barbieri,aubin,armitage,alessi,absher,abbate,zito,woolery,wiggs,wacker,tynes,tolle,telles,tarter,swarey,strode,stockdale,stalnaker,spina,schiff,saari,risley,rameriz,rakes,pettaway,penner,paulus,palladino,omeara,montelongo,melnick,mehta,mcgary,mccourt,mccollough,marchetti,manzanares,lowther,leiva,lauderdale,lafontaine,kowalczyk,knighton,joubert,jaworski,huth,hurdle,housley,hackman,gulick,gordy,gilstrap,gehrke,gebhart,gaudette,foxworth,endres,dunkle,cimino,caddell,brauer,braley,bodine,blackmore,belden,backer,ayer,andress,wisner,vuong,valliere,twigg,tavarez,strahan,steib,staub,sowder,seiber,schutt,scharf,schade,rodriques,risinger,renshaw,rahman,presnell,piatt,nieman,nevins,mcilwain,mcgaha,mccully,mccomb,massengale,macedo,lesher,kearse,jauregui,husted,hudnall,holmberg,hertel,hardie,glidewell,frausto,fassett,dalessandro,dahlgren,corum,constantino,conlin,colquitt,colombo,claycomb,cardin,buller,boney,bocanegra,biggers,benedetto,araiza,andino,albin,zorn,werth,weisman,walley,vanegas,ulibarri,towe,tedford,teasley,suttle,steffens,stcyr,squire,singley,sifuentes,shuck,schram,sass,rieger,ridenhour,rickert,richerson,rayborn,rabe,raab,pendley,pastore,ordway,moynihan,mellott,mckissick,mcgann,mccready,mauney,marrufo,lenhart,lazar,lafave,keele,kautz,jardine,jahnke,jacobo,hord,hardcastle,hageman,giglio,gehring,fortson,duque,duplessis,dicken,derosier,deitz,dalessio,cram,castleman,candelario,callison,caceres,bozarth,biles,bejarano,bashaw,avina,armentrout,alverez,acord,waterhouse,vereen,vanlandingham,strawser,shotwell,severance,seltzer,schoonmaker,schock,schaub,schaffner,roeder,rodrigez,riffe,rasberry,rancourt,railey,quade,pursley,prouty,perdomo,oxley,osterman,nickens,murphree,mounts,merida,maus,mattern,masse,martinelli,mangan,lutes,ludwick,loney,laureano,lasater,knighten,kissinger,kimsey,kessinger,honea,hollingshead,hockett,heyer,heron,gurrola,gove,glasscock,gillett,galan,featherstone,eckhardt,duron,dunson,dasher,culbreth,cowden,cowans,claypoole,churchwell,chabot,caviness,cater,caston,callan,byington,burkey,boden,beckford,atwater,archambault,alvey,alsup,whisenant,weese,voyles,verret,tsang,tessier,sweitzer,sherwin,shaughnessy,revis,remy,prine,philpott,peavy,paynter,parmenter,ovalle,offutt,nightingale,newlin,nakano,myatt,muth,mohan,mcmillon,mccarley,mccaleb,maxson,marinelli,maley,liston,letendre,kain,huntsman,hirst,hagerty,gulledge,greenway,grajeda,gorton,goines,gittens,frederickson,fanelli,embree,eichelberger,dunkin,dixson,dillow,defelice,chumley,burleigh,borkowski,binette,biggerstaff,berglund,beller,audet,arbuckle,allain,alfano,youngman,wittman,weintraub,vanzant,vaden,twitty,stollings,standifer,sines,shope,scalise,saville,posada,pisano,otte,nolasco,mier,merkle,mendiola,melcher,mejias,mcmurry,mccalla,markowitz,manis,mallette,macfarlane,lough,looper,landin,kittle,kinsella,kinnard,hobart,helman,hellman,hartsock,halford,hage,gordan,glasser,gayton,gattis,gastelum,gaspard,frisch,fitzhugh,eckstein,eberly,dowden,despain,crumpler,crotty,cornelison,chouinard,chamness,catlin,cann,bumgardner,budde,branum,bradfield,braddy,borst,birdwell,bazan,banas,bade,arango,ahearn,addis,zumwalt,wurth,wilk,widener,wagstaff,urrutia,terwilliger,tart,steinman,staats,sloat,rives,riggle,revels,reichard,prickett,poff,pitzer,petro,pell,northrup,nicks,moline,mielke,maynor,mallon,magness,lingle,lindell,lieb,lesko,lebeau,lammers,lafond,kiernan,ketron,jurado,holmgren,hilburn,hayashi,hashimoto,harbaugh,guillot,gard,froehlich,feinberg,falco,dufour,drees,doney,diep,delao,daves,dail,crowson,coss,congdon,carner,camarena,butterworth,burlingame,bouffard,bloch,bilyeu,barta,bakke,baillargeon,avent,aquilar,zeringue,yarber,wolfson,vogler,voelker,truss,troxell,thrift,strouse,spielman,sistrunk,sevigny,schuller,schaaf,ruffner,routh,roseman,ricciardi,peraza,pegram,overturf,olander,odaniel,millner,melchor,maroney,machuca,macaluso,livesay,layfield,laskowski,kwiatkowski,kilby,hovey,heywood,hayman,havard,harville,haigh,hagood,grieco,glassman,gebhardt,fleischer,fann,elson,eccles,cunha,crumb,blakley,bardwell,abshire,woodham,wines,welter,wargo,varnado,tutt,traynor,swaney,stricker,stoffel,stambaugh,sickler,shackleford,selman,seaver,sansom,sanmiguel,royston,rourke,rockett,rioux,puleo,pitchford,nardi,mulvaney,middaugh,malek,leos,lathan,kujawa,kimbro,killebrew,houlihan,hinckley,herod,hepler,hamner,hammel,hallowell,gonsalez,gingerich,gambill,funkhouser,fricke,fewell,falkner,endsley,dulin,drennen,deaver,dambrosio,chadwell,castanon,burkes,brune,brisco,brinker,bowker,boldt,berner,beaumont,beaird,bazemore,barrick,albano,younts,wunderlich,weidman,vanness,toland,theobald,stickler,steiger,stanger,spies,spector,sollars,smedley,seibel,scoville,saito,rummel,rowles,rouleau,roos,rogan,roemer,ream,raya,purkey,priester,perreira,penick,paulin,parkins,overcash,oleson,neves,muldrow,minard,midgett,michalak,melgar,mcentire,mcauliffe,marte,lydon,lindholm,leyba,langevin,lagasse,lafayette,kesler,kelton,kaminsky,jaggers,humbert,huck,howarth,hinrichs,higley,gupton,guimond,gravois,giguere,fretwell,fontes,feeley,faucher,eichhorn,ecker,earp,dole,dinger,derryberry,demars,deel,copenhaver,collinsworth,colangelo,cloyd,claiborne,caulfield,carlsen,calzada,caffey,broadus,brenneman,bouie,bodnar,blaney,blanc,beltz,behling,barahona,yockey,winkle,windom,wimer,villatoro,trexler,teran,taliaferro,sydnor,swinson,snelling,smtih,simonton,simoneaux,simoneau,sherrer,seavey,scheel,rushton,rupe,ruano,rippy,reiner,reiff,rabinowitz,quach,penley,odle,nock,minnich,mckown,mccarver,mcandrew,longley,laux,lamothe,lafreniere,kropp,krick,kates,jepson,huie,howse,howie,henriques,haydon,haught,hatter,hartzog,harkey,grimaldo,goshorn,gormley,gluck,gilroy,gillenwater,giffin,fluker,feder,eyre,eshelman,eakins,detwiler,delrosario,davisson,catalan,canning,calton,brammer,botelho,blakney,bartell,averett,askins,aker,witmer,winkelman,widmer,whittier,weitzel,wardell,wagers,ullman,tupper,tingley,tilghman,talton,simard,seda,scheller,sala,rundell,rost,ribeiro,rabideau,primm,pinon,peart,ostrom,ober,nystrom,nussbaum,naughton,murr,moorhead,monti,monteiro,melson,meissner,mclin,mcgruder,marotta,makowski,majewski,madewell,lunt,lukens,leininger,lebel,lakin,kepler,jaques,hunnicutt,hungerford,hoopes,hertz,heins,halliburton,grosso,gravitt,glasper,gallman,gallaway,funke,fulbright,falgout,eakin,dostie,dorado,dewberry,derose,cutshall,crampton,costanzo,colletti,cloninger,claytor,chiang,campagna,burd,brokaw,broaddus,bretz,brainard,binford,bilbrey,alpert,aitken,ahlers,zajac,woolfolk,witten,windle,wayland,tramel,tittle,talavera,suter,straley,specht,sommerville,soloman,skeens,sigman,sibert,shavers,schuck,schmit,sartain,sabol,rosenblatt,rollo,rashid,rabb,polston,nyberg,northrop,navarra,muldoon,mikesell,mcdougald,mcburney,mariscal,lozier,lingerfelt,legere,latour,lagunas,lacour,kurth,killen,kiely,kayser,kahle,isley,huertas,hower,hinz,haugh,gumm,galicia,fortunato,flake,dunleavy,duggins,doby,digiovanni,devaney,deltoro,cribb,corpuz,coronel,coen,charbonneau,caine,burchette,blakey,blakemore,bergquist,beene,beaudette,bayles,ballance,bakker,bailes,asberry,arwood,zucker,willman,whitesell,wald,walcott,vancleave,trump,strasser,simas,shick,schleicher,schaal,saleh,rotz,resnick,rainer,partee,ollis,oller,oday,noles,munday,mong,millican,merwin,mazzola,mansell,magallanes,llanes,lewellen,lepore,kisner,keesee,jeanlouis,ingham,hornbeck,hawn,hartz,harber,haffner,gutshall,guth,grays,gowan,finlay,finkelstein,eyler,enloe,dungan,diez,dearman,cull,crosson,chronister,cassity,campion,callihan,butz,breazeale,blumenthal,berkey,batty,batton,arvizu,alderete,aldana,albaugh,abernethy,wolter,wille,tweed,tollefson,thomasson,teter,testerman,sproul,spates,southwick,soukup,skelly,senter,sealey,sawicki,sargeant,rossiter,rosemond,repp,pifer,ormsby,nickelson,naumann,morabito,monzon,millsaps,millen,mcelrath,marcoux,mantooth,madson,macneil,mackinnon,louque,leister,lampley,kushner,krouse,kirwan,jessee,janson,jahn,jacquez,islas,hutt,holladay,hillyer,hepburn,hensel,harrold,gingrich,geis,gales,fults,finnell,ferri,featherston,epley,ebersole,eames,dunigan,drye,dismuke,devaughn,delorenzo,damiano,confer,collum,clower,clow,claussen,clack,caylor,cawthon,casias,carreno,bluhm,bingaman,bewley,belew,beckner,auld,amey,wolfenbarger,wilkey,wicklund,waltman,villalba,valero,valdovinos,ullrich,tyus,twyman,trost,tardif,tanguay,stripling,steinbach,shumpert,sasaki,sappington,sandusky,reinhold,reinert,quijano,placencia,pinkard,phinney,perrotta,pernell,parrett,oxendine,owensby,orman,nuno,mori,mcroberts,mcneese,mckamey,mccullum,markel,mardis,maines,lueck,lubin,lefler,leffler,larios,labarbera,kershner,josey,jeanbaptiste,izaguirre,hermosillo,haviland,hartshorn,hafner,ginter,getty,franck,fiske,dufrene,doody,davie,dangerfield,dahlberg,cuthbertson,crone,coffelt,chidester,chesson,cauley,caudell,cantara,campo,caines,bullis,bucci,brochu,bogard,bickerstaff,benning,arzola,antonelli,adkinson,zellers,wulf,worsley,woolridge,whitton,westerfield,walczak,vassar,truett,trueblood,trawick,townsley,topping,tobar,telford,steverson,stagg,sitton,sill,sergent,schoenfeld,sarabia,rutkowski,rubenstein,rigdon,prentiss,pomerleau,plumlee,philbrick,patnode,oloughlin,obregon,nuss,morell,mikell,mele,mcinerney,mcguigan,mcbrayer,lollar,kuehl,kinzer,kamp,joplin,jacobi,howells,holstein,hedden,hassler,harty,halle,greig,gouge,goodrum,gerhart,geier,geddes,gast,forehand,ferree,fendley,feltner,esqueda,encarnacion,eichler,egger,edmundson,eatmon,doud,donohoe,donelson,dilorenzo,digiacomo,diggins,delozier,dejong,danford,crippen,coppage,cogswell,clardy,cioffi,cabe,brunette,bresnahan,blomquist,blackstone,biller,bevis,bevan,bethune,benbow,baty,basinger,balcom,andes,aman,aguero,adkisson,yandell,wilds,whisenhunt,weigand,weeden,voight,villar,trottier,tillett,suazo,setser,scurry,schuh,schreck,schauer,samora,roane,rinker,reimers,ratchford,popovich,parkin,natal,melville,mcbryde,magdaleno,loehr,lockman,lingo,leduc,larocca,lamere,laclair,krall,korte,koger,jalbert,hughs,higbee,henton,heaney,haith,gump,greeson,goodloe,gholston,gasper,gagliardi,fregoso,farthing,fabrizio,ensor,elswick,elgin,eklund,eaddy,drouin,dorton,dizon,derouen,deherrera,davy,dampier,cullum,culley,cowgill,cardoso,cardinale,brodsky,broadbent,brimmer,briceno,branscum,bolyard,boley,bennington,beadle,baur,ballentine,azure,aultman,arciniega,aguila,aceves,yepez,woodrum,wethington,weissman,veloz,trusty,troup,trammel,tarpley,stivers,steck,sprayberry,spraggins,spitler,spiers,sohn,seagraves,schiffman,rudnick,rizo,riccio,rennie,quackenbush,puma,plott,pearcy,parada,paiz,munford,moskowitz,mease,mcnary,mccusker,lozoya,longmire,loesch,lasky,kuhlmann,krieg,koziol,kowalewski,konrad,kindle,jowers,jolin,jaco,horgan,hine,hileman,hepner,heise,heady,hawkinson,hannigan,haberman,guilford,grimaldi,garton,gagliano,fruge,follett,fiscus,ferretti,ebner,easterday,eanes,dirks,dimarco,depalma,deforest,cruce,craighead,christner,candler,cadwell,burchell,buettner,brinton,brazier,brannen,brame,bova,bomar,blakeslee,belknap,bangs,balzer,athey,armes,alvis,alverson,alvardo,yeung,wheelock,westlund,wessels,volkman,threadgill,thelen,tague,symons,swinford,sturtevant,straka,stier,stagner,segarra,seawright,rutan,roux,ringler,riker,ramsdell,quattlebaum,purifoy,poulson,permenter,peloquin,pasley,pagel,osman,obannon,nygaard,newcomer,munos,motta,meadors,mcquiston,mcniel,mcmann,mccrae,mayne,matte,legault,lechner,kucera,krohn,kratzer,koopman,jeske,horrocks,hock,hibbler,hesson,hersh,harvin,halvorsen,griner,grindle,gladstone,garofalo,frampton,forbis,eddington,diorio,dingus,dewar,desalvo,curcio,creasy,cortese,cordoba,connally,cluff,cascio,capuano,canaday,calabro,bussard,brayton,borja,bigley,arnone,arguelles,acuff,zamarripa,wooton,widner,wideman,threatt,thiele,templin,teeters,synder,swint,swick,sturges,stogner,stedman,spratt,siegfried,shetler,scull,savino,sather,rothwell,rook,rone,rhee,quevedo,privett,pouliot,poche,pickel,petrillo,pellegrini,peaslee,partlow,otey,nunnery,morelock,morello,meunier,messinger,mckie,mccubbin,mccarron,lerch,lavine,laverty,lariviere,lamkin,kugler,krol,kissel,keeter,hubble,hickox,hetzel,hayner,hagy,hadlock,groh,gottschalk,goodsell,gassaway,garrard,galligan,firth,fenderson,feinstein,etienne,engleman,emrick,ellender,drews,doiron,degraw,deegan,dart,crissman,corr,cookson,coil,cleaves,charest,chapple,chaparro,castano,carpio,byer,bufford,bridgewater,bridgers,brandes,borrero,bonanno,aube,ancheta,abarca,abad,wooster,wimbush,willhite,willams,wigley,weisberg,wardlaw,vigue,vanhook,unknow,torre,tasker,tarbox,strachan,slover,shamblin,semple,schuyler,schrimsher,sayer,salzman,rubalcava,riles,reneau,reichel,rayfield,rabon,pyatt,prindle,poss,polito,plemmons,pesce,perrault,pereyra,ostrowski,nilsen,niemeyer,munsey,mundell,moncada,miceli,meader,mcmasters,mckeehan,matsumoto,marron,marden,lizarraga,lingenfelter,lewallen,langan,lamanna,kovac,kinsler,kephart,keown,kass,kammerer,jeffreys,hysell,hosmer,hardnett,hanner,guyette,greening,glazer,ginder,fromm,fluellen,finkle,fessler,essary,eisele,duren,dittmer,crochet,cosentino,cogan,coelho,cavin,carrizales,campuzano,brough,bopp,bookman,bobb,blouin,beesley,battista,bascom,bakken,badgett,arneson,anselmo,albino,ahumada,woodyard,wolters,wireman,willison,warman,waldrup,vowell,vantassel,twombly,toomer,tennison,teets,tedeschi,swanner,stutz,stelly,sheehy,schermerhorn,scala,sandidge,salters,salo,saechao,roseboro,rolle,ressler,renz,renn,redford,raposa,rainbolt,pelfrey,orndorff,oney,nolin,nimmons,nardone,myhre,morman,menjivar,mcglone,mccammon,maxon,marciano,manus,lowrance,lorenzen,lonergan,lollis,littles,lindahl,lamas,lach,kuster,krawczyk,knuth,knecht,kirkendall,keitt,keever,kantor,jarboe,hoye,houchens,holter,holsinger,hickok,helwig,helgeson,hassett,harner,hamman,hames,hadfield,goree,goldfarb,gaughan,gaudreau,gantz,gallion,frady,foti,flesher,ferrin,faught,engram,donegan,desouza,degroot,cutright,crowl,criner,coan,clinkscales,chewning,chavira,catchings,carlock,bulger,buenrostro,bramblett,brack,boulware,bookout,bitner,birt,baranowski,baisden,allmon,acklin,yoakum,wilbourn,whisler,weinberger,washer,vasques,vanzandt,vanatta,troxler,tomes,tindle,tims,throckmorton,thach,stpeter,stlaurent,stenson,spry,spitz,songer,snavely,shroyer,shortridge,shenk,sevier,seabrook,scrivner,saltzman,rosenberry,rockwood,robeson,roan,reiser,ramires,raber,posner,popham,piotrowski,pinard,peterkin,pelham,peiffer,peay,nadler,musso,millett,mestas,mcgowen,marques,marasco,manriquez,manos,mair,lipps,leiker,krumm,knorr,kinslow,kessel,kendricks,kelm,irick,ickes,hurlburt,horta,hoekstra,heuer,helmuth,heatherly,hampson,hagar,haga,greenlaw,grau,godbey,gingras,gillies,gibb,gayden,gauvin,garrow,fontanez,florio,finke,fasano,ezzell,ewers,eveland,eckenrode,duclos,drumm,dimmick,delancey,defazio,dashiell,cusack,crowther,crigger,cray,coolidge,coldiron,cleland,chalfant,cassel,camire,cabrales,broomfield,brittingham,brisson,brickey,braziel,brazell,bragdon,boulanger,boman,bohannan,beem,barre,azar,ashbaugh,armistead,almazan,adamski,zendejas,winburn,willaims,wilhoit,westberry,wentzel,wendling,visser,vanscoy,vankirk,vallee,tweedy,thornberry,sweeny,spradling,spano,smelser,shim,sechrist,schall,scaife,rugg,rothrock,roesler,riehl,ridings,render,ransdell,radke,pinero,petree,pendergast,peluso,pecoraro,pascoe,panek,oshiro,navarrette,murguia,moores,moberg,michaelis,mcwhirter,mcsweeney,mcquade,mccay,mauk,mariani,marceau,mandeville,maeda,lunde,ludlow,loeb,lindo,linderman,leveille,leith,larock,lambrecht,kulp,kinsley,kimberlin,kesterson,hoyos,helfrich,hanke,grisby,goyette,gouveia,glazier,gile,gerena,gelinas,gasaway,funches,fujimoto,flynt,fenske,fellers,fehr,eslinger,escalera,enciso,duley,dittman,dineen,diller,devault,collings,clymer,clowers,chavers,charland,castorena,castello,camargo,bunce,bullen,boyes,borchers,borchardt,birnbaum,birdsall,billman,benites,bankhead,ange,ammerman,adkison,winegar,wickman,warr,warnke,villeneuve,veasey,vassallo,vannatta,vadnais,twilley,towery,tomblin,tippett,theiss,talkington,talamantes,swart,swanger,streit,stines,stabler,spurling,sobel,sine,simmers,shippy,shiflett,shearin,sauter,sanderlin,rusch,runkle,ruckman,rorie,roesch,richert,rehm,randel,ragin,quesenberry,puentes,plyler,plotkin,paugh,oshaughnessy,ohalloran,norsworthy,niemann,nader,moorefield,mooneyham,modica,miyamoto,mickel,mebane,mckinnie,mazurek,mancilla,lukas,lovins,loughlin,lotz,lindsley,liddle,levan,lederman,leclaire,lasseter,lapoint,lamoreaux,lafollette,kubiak,kirtley,keffer,kaczmarek,housman,hiers,hibbert,herrod,hegarty,hathorn,greenhaw,grafton,govea,futch,furst,franko,forcier,foran,flickinger,fairfield,eure,emrich,embrey,edgington,ecklund,eckard,durante,deyo,delvecchio,dade,currey,creswell,cottrill,casavant,cartier,cargile,capel,cammack,calfee,burse,burruss,brust,brousseau,bridwell,braaten,borkholder,bloomquist,bjork,bartelt,amburgey,yeary,whitefield,vinyard,vanvalkenburg,twitchell,timmins,tapper,stringham,starcher,spotts,slaugh,simonsen,sheffer,sequeira,rosati,rhymes,quint,pollak,peirce,patillo,parkerson,paiva,nilson,nevin,narcisse,mitton,merriam,merced,meiners,mckain,mcelveen,mcbeth,marsden,marez,manke,mahurin,mabrey,luper,krull,hunsicker,hornbuckle,holtzclaw,hinnant,heston,hering,hemenway,hegwood,hearns,halterman,guiterrez,grote,granillo,grainger,glasco,gilder,garren,garlock,garey,fryar,fredricks,fraizer,foshee,ferrel,felty,everitt,evens,esser,elkin,eberhart,durso,duguay,driskill,doster,dewall,deveau,demps,demaio,delreal,deleo,darrah,cumberbatch,culberson,cranmer,cordle,colgan,chesley,cavallo,castellon,castelli,carreras,carnell,carlucci,bontrager,blumberg,blasingame,becton,artrip,andujar,alkire,alder,zukowski,zuckerman,wroblewski,wrigley,woodside,wigginton,westman,westgate,werts,washam,wardlow,walser,waiters,tadlock,stringfield,stimpson,stickley,standish,spurlin,spindler,speller,spaeth,sotomayor,sluder,shryock,shepardson,shatley,scannell,santistevan,rosner,resto,reinhard,rathburn,prisco,poulsen,pinney,phares,pennock,pastrana,oviedo,ostler,nauman,mulford,moise,moberly,mirabal,metoyer,metheny,mentzer,meldrum,mcinturff,mcelyea,mcdougle,massaro,lumpkins,loveday,lofgren,lirette,lesperance,lefkowitz,ledger,lauzon,lachapelle,klassen,keough,kempton,kaelin,jeffords,hsieh,hoyer,horwitz,hoeft,hennig,haskin,gourdine,golightly,girouard,fulgham,fritsch,freer,frasher,foulk,firestone,fiorentino,fedor,ensley,englehart,eells,dunphy,donahoe,dileo,dibenedetto,dabrowski,crick,coonrod,conder,coddington,chunn,chaput,cerna,carreiro,calahan,braggs,bourdon,bollman,bittle,bauder,barreras,aubuchon,anzalone,adamo,zerbe,willcox,westberg,weikel,waymire,vroman,vinci,vallejos,truesdell,troutt,trotta,tollison,toles,tichenor,symonds,surles,strayer,stgeorge,sroka,sorrentino,solares,snelson,silvestri,sikorski,shawver,schumaker,schorr,schooley,scates,satterlee,satchell,rymer,roselli,robitaille,riegel,regis,reames,provenzano,priestley,plaisance,pettey,palomares,nowakowski,monette,minyard,mclamb,mchone,mccarroll,masson,magoon,maddy,lundin,licata,leonhardt,landwehr,kircher,kinch,karpinski,johannsen,hussain,houghtaling,hoskinson,hollaway,holeman,hobgood,hiebert,goggin,geissler,gadbois,gabaldon,fleshman,flannigan,fairman,eilers,dycus,dunmire,duffield,dowler,deloatch,dehaan,deemer,clayborn,christofferso,chilson,chesney,chatfield,carron,canale,brigman,branstetter,bosse,borton,bonar,biron,barroso,arispe,zacharias,zabel,yaeger,woolford,whetzel,weakley,veatch,vandeusen,tufts,troxel,troche,traver,townsel,talarico,swilley,sterrett,stenger,speakman,sowards,sours,souders,souder,soles,sobers,snoddy,smither,shute,shoaf,shahan,schuetz,scaggs,santini,rosson,rolen,robidoux,rentas,recio,pixley,pawlowski,pawlak,paull,overbey,orear,oliveri,oldenburg,nutting,naugle,mossman,misner,milazzo,michelson,mcentee,mccullar,mccree,mcaleer,mazzone,mandell,manahan,malott,maisonet,mailloux,lumley,lowrie,louviere,lipinski,lindemann,leppert,leasure,labarge,kubik,knisely,knepp,kenworthy,kennelly,kelch,kanter,houchin,hosley,hosler,hollon,holleman,heitman,haggins,gwaltney,goulding,gorden,geraci,gathers,frison,feagin,falconer,espada,erving,erikson,eisenhauer,ebeling,durgin,dowdle,dinwiddie,delcastillo,dedrick,crimmins,covell,cournoyer,coria,cohan,cataldo,carpentier,canas,campa,brode,brashears,blaser,bicknell,bednar,barwick,ascencio,althoff,almodovar,alamo,zirkle,zabala,wolverton,winebrenner,wetherell,westlake,wegener,weddington,tuten,trosclair,tressler,theroux,teske,swinehart,swensen,sundquist,southall,socha,sizer,silverberg,shortt,shimizu,sherrard,shaeffer,scheid,scheetz,saravia,sanner,rubinstein,rozell,romer,rheaume,reisinger,randles,pullum,petrella,payan,nordin,norcross,nicoletti,nicholes,newbold,nakagawa,monteith,milstead,milliner,mellen,mccardle,liptak,leitch,latimore,larrison,landau,laborde,koval,izquierdo,hymel,hoskin,holte,hoefer,hayworth,hausman,harrill,harrel,hardt,gully,groover,grinnell,greenspan,graver,grandberry,gorrell,goldenberg,goguen,gilleland,fuson,feldmann,everly,dyess,dunnigan,downie,dolby,deatherage,cosey,cheever,celaya,caver,cashion,caplinger,cansler,byrge,bruder,breuer,breslin,brazelton,botkin,bonneau,bondurant,bohanan,bogue,bodner,boatner,blatt,bickley,belliveau,beiler,beier,beckstead,bachmann,atkin,altizer,alloway,allaire,albro,abron,zellmer,yetter,yelverton,wiens,whidden,viramontes,vanwormer,tarantino,tanksley,sumlin,strauch,strang,stice,spahn,sosebee,sigala,shrout,seamon,schrum,schneck,schantz,ruddy,romig,roehl,renninger,reding,polak,pohlman,pasillas,oldfield,oldaker,ohanlon,ogilvie,norberg,nolette,neufeld,nellis,mummert,mulvihill,mullaney,monteleone,mendonca,meisner,mcmullan,mccluney,mattis,massengill,manfredi,luedtke,lounsbury,liberatore,lamphere,laforge,jourdan,iorio,iniguez,ikeda,hubler,hodgdon,hocking,heacock,haslam,haralson,hanshaw,hannum,hallam,haden,garnes,garces,gammage,gambino,finkel,faucett,ehrhardt,eggen,dusek,durrant,dubay,dones,depasquale,delucia,degraff,decamp,davalos,cullins,conard,clouser,clontz,cifuentes,chappel,chaffins,celis,carwile,byram,bruggeman,bressler,brathwaite,brasfield,bradburn,boose,bodie,blosser,bertsch,bernardi,bernabe,bengtson,barrette,astorga,alday,albee,abrahamson,yarnell,wiltse,wiebe,waguespack,vasser,upham,turek,traxler,torain,tomaszewski,tinnin,tiner,tindell,styron,stahlman,staab,skiba,sheperd,seidl,secor,schutte,sanfilippo,ruder,rondon,rearick,procter,prochaska,pettengill,pauly,neilsen,nally,mullenax,morano,meads,mcnaughton,mcmurtry,mcmath,mckinsey,matthes,massenburg,marlar,margolis,malin,magallon,mackin,lovette,loughran,loring,longstreet,loiselle,lenihan,kunze,koepke,kerwin,kalinowski,kagan,innis,innes,holtzman,heinemann,harshman,haider,haack,grondin,grissett,greenawalt,goudy,goodlett,goldston,gokey,gardea,galaviz,gafford,gabrielson,furlow,fritch,fordyce,folger,elizalde,ehlert,eckhoff,eccleston,ealey,dubin,diemer,deschamps,delapena,decicco,debolt,cullinan,crittendon,crase,cossey,coppock,coots,colyer,cluck,chamberland,burkhead,bumpus,buchan,borman,birkholz,berardi,benda,behnke,barter,amezquita,wotring,wirtz,wingert,wiesner,whitesides,weyant,wainscott,venezia,varnell,tussey,thurlow,tabares,stiver,stell,starke,stanhope,stanek,sisler,sinnott,siciliano,shehan,selph,seager,scurlock,scranton,santucci,santangelo,saltsman,rogge,rettig,renwick,reidy,reider,redfield,premo,parente,paolucci,palmquist,ohler,netherton,mutchler,morita,mistretta,minnis,middendorf,menzel,mendosa,mendelson,meaux,mcspadden,mcquaid,mcnatt,manigault,maney,mager,lukes,lopresti,liriano,letson,lechuga,lazenby,lauria,larimore,krupp,krupa,kopec,kinchen,kifer,kerney,kerner,kennison,kegley,karcher,justis,johson,jellison,janke,huskins,holzman,hinojos,hefley,hatmaker,harte,halloway,hallenbeck,goodwyn,glaspie,geise,fullwood,fryman,frakes,fraire,farrer,enlow,engen,ellzey,eckles,earles,dunkley,drinkard,dreiling,draeger,dinardo,dills,desroches,desantiago,curlee,crumbley,critchlow,coury,courtright,coffield,cleek,charpentier,cardone,caples,cantin,buntin,bugbee,brinkerhoff,brackin,bourland,blassingame,beacham,banning,auguste,andreasen,amann,almon,alejo,adelman,abston,yerger,wymer,woodberry,windley,whiteaker,westfield,weibel,wanner,waldrep,villani,vanarsdale,utterback,updike,triggs,topete,tolar,tigner,thoms,tauber,tarvin,tally,swiney,sweatman,studebaker,stennett,starrett,stannard,stalvey,sonnenberg,smithey,sieber,sickles,shinault,segars,sanger,salmeron,rothe,rizzi,restrepo,ralls,ragusa,quiroga,papenfuss,oropeza,okane,mudge,mozingo,molinaro,mcvicker,mcgarvey,mcfalls,mccraney,matus,magers,llanos,livermore,linehan,leitner,laymon,lawing,lacourse,kwong,kollar,kneeland,kennett,kellett,kangas,janzen,hutter,huling,hofmeister,hewes,harjo,habib,guice,grullon,greggs,grayer,granier,grable,gowdy,giannini,getchell,gartman,garnica,ganey,gallimore,fetters,fergerson,farlow,fagundes,exley,esteves,enders,edenfield,easterwood,drakeford,dipasquale,desousa,deshields,deeter,dedmon,debord,daughtery,cutts,courtemanche,coursey,copple,coomes,collis,cogburn,clopton,choquette,chaidez,castrejon,calhoon,burbach,bulloch,buchman,bruhn,bohon,blough,baynes,barstow,zeman,zackery,yardley,yamashita,wulff,wilken,wiliams,wickersham,wible,whipkey,wedgeworth,walmsley,walkup,vreeland,verrill,umana,traub,swingle,summey,stroupe,stockstill,steffey,stefanski,statler,stapp,speights,solari,soderberg,shunk,shorey,shewmaker,sheilds,schiffer,schank,schaff,sagers,rochon,riser,rickett,reale,raglin,polen,plata,pitcock,percival,palen,orona,oberle,nocera,navas,nault,mullings,montejano,monreal,minick,middlebrook,meece,mcmillion,mccullen,mauck,marshburn,maillet,mahaney,magner,maclin,lucey,litteral,lippincott,leite,leaks,lamarre,jurgens,jerkins,jager,hurwitz,hughley,hotaling,horstman,hohman,hocker,hively,hipps,hessler,hermanson,hepworth,helland,hedlund,harkless,haigler,gutierez,grindstaff,glantz,giardina,gerken,gadsden,finnerty,farnum,encinas,drakes,dennie,cutlip,curtsinger,couto,cortinas,corby,chiasson,carle,carballo,brindle,borum,bober,blagg,berthiaume,beahm,batres,basnight,backes,axtell,atterberry,alvares,alegria,woodell,wojciechowski,winfree,winbush,wiest,wesner,wamsley,wakeman,verner,truex,trafton,toman,thorsen,theus,tellier,tallant,szeto,strope,stills,simkins,shuey,shaul,servin,serio,serafin,salguero,ryerson,rudder,ruark,rother,rohrbaugh,rohrbach,rohan,rogerson,risher,reeser,pryce,prokop,prins,priebe,prejean,pinheiro,petrone,petri,penson,pearlman,parikh,natoli,murakami,mullikin,mullane,motes,morningstar,mcveigh,mcgrady,mcgaughey,mccurley,marchan,manske,lusby,linde,likens,licon,leroux,lemaire,legette,laskey,laprade,laplant,kolar,kittredge,kinley,kerber,kanagy,jetton,janik,ippolito,inouye,hunsinger,howley,howery,horrell,holthaus,hiner,hilson,hilderbrand,hartzler,harnish,harada,hansford,halligan,hagedorn,gwynn,gudino,greenstein,greear,gracey,goudeau,goodner,ginsburg,gerth,gerner,fujii,frier,frenette,folmar,fleisher,fleischmann,fetzer,eisenman,earhart,dupuy,dunkelberger,drexler,dillinger,dilbeck,dewald,demby,deford,craine,chesnut,casady,carstens,carrick,carino,carignan,canchola,bushong,burman,buono,brownlow,broach,britten,brickhouse,boyden,boulton,borland,bohrer,blubaugh,bever,berggren,benevides,arocho,arends,amezcua,almendarez,zalewski,witzel,winkfield,wilhoite,vangundy,vanfleet,vanetten,vandergriff,urbanski,troiano,thibodaux,straus,stoneking,stjean,stillings,stange,speicher,speegle,smeltzer,slawson,simmonds,shuttleworth,serpa,senger,seidman,schweiger,schloss,schimmel,schechter,sayler,sabatini,ronan,rodiguez,riggleman,richins,reamer,prunty,porath,plunk,piland,philbrook,pettitt,perna,peralez,pascale,padula,oboyle,nivens,nickols,mundt,munden,montijo,mcmanis,mcgrane,mccrimmon,manzi,mangold,malick,mahar,maddock,losey,litten,leedy,leavell,ladue,krahn,kluge,junker,iversen,imler,hurtt,huizar,hubbert,howington,hollomon,holdren,hoisington,heiden,hauge,hartigan,gutirrez,griffie,greenhill,gratton,granata,gottfried,gertz,gautreaux,furry,furey,funderburg,flippen,fitzgibbon,drucker,donoghue,dildy,devers,detweiler,despres,denby,degeorge,cueto,cranston,courville,clukey,cirillo,chivers,caudillo,butera,bulluck,buckmaster,braunstein,bracamonte,bourdeau,bonnette".split(","),us_tv_and_film:"you,i,to,that,it,me,what,this,know,i'm,no,have,my,don't,just,not,do,be,your,we,it's,so,but,all,well,oh,about,right,you're,get,here,out,going,like,yeah,if,can,up,want,think,that's,now,go,him,how,got,did,why,see,come,good,really,look,will,okay,back,can't,mean,tell,i'll,hey,he's,could,didn't,yes,something,because,say,take,way,little,make,need,gonna,never,we're,too,she's,i've,sure,our,sorry,what's,let,thing,maybe,down,man,very,there's,should,anything,said,much,any,even,off,please,doing,thank,give,thought,help,talk,god,still,wait,find,nothing,again,things,let's,doesn't,call,told,great,better,ever,night,away,believe,feel,everything,you've,fine,last,keep,does,put,around,stop,they're,i'd,guy,isn't,always,listen,wanted,guys,huh,those,big,lot,happened,thanks,won't,trying,kind,wrong,talking,guess,care,bad,mom,remember,getting,we'll,together,dad,leave,understand,wouldn't,actually,hear,baby,nice,father,else,stay,done,wasn't,course,might,mind,every,enough,try,hell,came,someone,you'll,whole,yourself,idea,ask,must,coming,looking,woman,room,knew,tonight,real,son,hope,went,hmm,happy,pretty,saw,girl,sir,friend,already,saying,next,job,problem,minute,thinking,haven't,heard,honey,matter,myself,couldn't,exactly,having,probably,happen,we've,hurt,boy,dead,gotta,alone,excuse,start,kill,hard,you'd,today,car,ready,without,wants,hold,wanna,yet,seen,deal,once,gone,morning,supposed,friends,head,stuff,worry,live,truth,face,forget,true,cause,soon,knows,telling,wife,who's,chance,run,move,anyone,person,bye,somebody,heart,miss,making,meet,anyway,phone,reason,damn,lost,looks,bring,case,turn,wish,tomorrow,kids,trust,check,change,anymore,least,aren't,working,makes,taking,means,brother,hate,ago,says,beautiful,gave,fact,crazy,sit,afraid,important,rest,fun,kid,word,watch,glad,everyone,sister,minutes,everybody,bit,couple,whoa,either,mrs,feeling,daughter,wow,gets,asked,break,promise,door,close,hand,easy,question,tried,far,walk,needs,mine,killed,hospital,anybody,alright,wedding,shut,able,die,perfect,stand,comes,hit,waiting,dinner,funny,husband,almost,pay,answer,cool,eyes,news,child,shouldn't,yours,moment,sleep,read,where's,sounds,sonny,pick,sometimes,bed,date,plan,hours,lose,hands,serious,shit,behind,inside,ahead,week,wonderful,fight,past,cut,quite,he'll,sick,it'll,eat,nobody,goes,save,seems,finally,lives,worried,upset,carly,met,brought,seem,sort,safe,weren't,leaving,front,shot,loved,asking,running,clear,figure,hot,felt,parents,drink,absolutely,how's,daddy,sweet,alive,sense,meant,happens,bet,blood,ain't,kidding,lie,meeting,dear,seeing,sound,fault,ten,buy,hour,speak,lady,jen,thinks,christmas,outside,hang,possible,worse,mistake,ooh,handle,spend,totally,giving,here's,marriage,realize,unless,sex,send,needed,scared,picture,talked,ass,hundred,changed,completely,explain,certainly,sign,boys,relationship,loves,hair,lying,choice,anywhere,future,weird,luck,she'll,turned,touch,kiss,crane,questions,obviously,wonder,pain,calling,somewhere,throw,straight,cold,fast,words,food,none,drive,feelings,they'll,marry,drop,cannot,dream,protect,twenty,surprise,sweetheart,poor,looked,mad,except,gun,y'know,dance,takes,appreciate,especially,situation,besides,pull,hasn't,worth,sheridan,amazing,expect,swear,piece,busy,happening,movie,we'd,catch,perhaps,step,fall,watching,kept,darling,dog,honor,moving,till,admit,problems,murder,he'd,evil,definitely,feels,honest,eye,broke,missed,longer,dollars,tired,evening,starting,entire,trip,niles,suppose,calm,imagine,fair,caught,blame,sitting,favor,apartment,terrible,clean,learn,frasier,relax,accident,wake,prove,smart,message,missing,forgot,interested,table,nbsp,mouth,pregnant,ring,careful,shall,dude,ride,figured,wear,shoot,stick,follow,angry,write,stopped,ran,standing,forgive,jail,wearing,ladies,kinda,lunch,cristian,greenlee,gotten,hoping,phoebe,thousand,ridge,paper,tough,tape,count,boyfriend,proud,agree,birthday,they've,share,offer,hurry,feet,wondering,decision,ones,finish,voice,herself,would've,mess,deserve,evidence,cute,dress,interesting,hotel,enjoy,quiet,concerned,staying,beat,sweetie,mention,clothes,fell,neither,mmm,fix,respect,prison,attention,holding,calls,surprised,bar,keeping,gift,hadn't,putting,dark,owe,ice,helping,normal,aunt,lawyer,apart,plans,jax,girlfriend,floor,whether,everything's,box,judge,upstairs,sake,mommy,possibly,worst,acting,accept,blow,strange,saved,conversation,plane,mama,yesterday,lied,quick,lately,stuck,difference,store,she'd,bought,doubt,listening,walking,cops,deep,dangerous,buffy,sleeping,chloe,rafe,join,card,crime,gentlemen,willing,window,walked,guilty,likes,fighting,difficult,soul,joke,favorite,uncle,promised,bother,seriously,cell,knowing,broken,advice,somehow,paid,losing,push,helped,killing,boss,liked,innocent,rules,learned,thirty,risk,letting,speaking,ridiculous,afternoon,apologize,nervous,charge,patient,boat,how'd,hide,detective,planning,huge,breakfast,horrible,awful,pleasure,driving,hanging,picked,sell,quit,apparently,dying,notice,congratulations,visit,could've,c'mon,letter,decide,forward,fool,showed,smell,seemed,spell,memory,pictures,slow,seconds,hungry,hearing,kitchen,ma'am,should've,realized,kick,grab,discuss,fifty,reading,idiot,suddenly,agent,destroy,bucks,shoes,peace,arms,demon,livvie,consider,papers,incredible,witch,drunk,attorney,tells,knock,ways,gives,nose,skye,turns,keeps,jealous,drug,sooner,cares,plenty,extra,outta,weekend,matters,gosh,opportunity,impossible,waste,pretend,jump,eating,proof,slept,arrest,breathe,perfectly,warm,pulled,twice,easier,goin,dating,suit,romantic,drugs,comfortable,finds,checked,divorce,begin,ourselves,closer,ruin,smile,laugh,treat,fear,what'd,otherwise,excited,mail,hiding,stole,pacey,noticed,fired,excellent,bringing,bottom,note,sudden,bathroom,honestly,sing,foot,remind,charges,witness,finding,tree,dare,hardly,that'll,steal,silly,contact,teach,shop,plus,colonel,fresh,trial,invited,roll,reach,dirty,choose,emergency,dropped,butt,credit,obvious,locked,loving,nuts,agreed,prue,goodbye,condition,guard,fuckin,grow,cake,mood,crap,crying,belong,partner,trick,pressure,dressed,taste,neck,nurse,raise,lots,carry,whoever,drinking,they'd,breaking,file,lock,wine,spot,paying,assume,asleep,turning,viki,bedroom,shower,nikolas,camera,fill,reasons,forty,bigger,nope,breath,doctors,pants,freak,movies,folks,cream,wild,truly,desk,convince,client,threw,hurts,spending,answers,shirt,chair,rough,doin,sees,ought,empty,wind,aware,dealing,pack,tight,hurting,guest,arrested,salem,confused,surgery,expecting,deacon,unfortunately,goddamn,bottle,beyond,whenever,pool,opinion,starts,jerk,secrets,falling,necessary,barely,dancing,tests,copy,cousin,ahem,twelve,tess,skin,fifteen,speech,orders,complicated,nowhere,escape,biggest,restaurant,grateful,usual,burn,address,someplace,screw,everywhere,regret,goodness,mistakes,details,responsibility,suspect,corner,hero,dumb,terrific,whoo,hole,memories,o'clock,teeth,ruined,bite,stenbeck,liar,showing,cards,desperate,search,pathetic,spoke,scare,marah,afford,settle,stayed,checking,hired,heads,concern,blew,alcazar,champagne,connection,tickets,happiness,saving,kissing,hated,personally,suggest,prepared,onto,downstairs,ticket,it'd,loose,holy,duty,convinced,throwing,kissed,legs,loud,saturday,babies,where'd,warning,miracle,carrying,blind,ugly,shopping,hates,sight,bride,coat,clearly,celebrate,brilliant,wanting,forrester,lips,custody,screwed,buying,toast,thoughts,reality,lexie,attitude,advantage,grandfather,sami,grandma,someday,roof,marrying,powerful,grown,grandmother,fake,must've,ideas,exciting,familiar,bomb,bout,harmony,schedule,capable,practically,correct,clue,forgotten,appointment,deserves,threat,bloody,lonely,shame,jacket,hook,scary,investigation,invite,shooting,lesson,criminal,victim,funeral,considering,burning,strength,harder,sisters,pushed,shock,pushing,heat,chocolate,miserable,corinthos,nightmare,brings,zander,crash,chances,sending,recognize,healthy,boring,feed,engaged,headed,treated,knife,drag,badly,hire,paint,pardon,behavior,closet,warn,gorgeous,milk,survive,ends,dump,rent,remembered,thanksgiving,rain,revenge,prefer,spare,pray,disappeared,aside,statement,sometime,meat,fantastic,breathing,laughing,stood,affair,ours,depends,protecting,jury,brave,fingers,murdered,explanation,picking,blah,stronger,handsome,unbelievable,anytime,shake,oakdale,wherever,pulling,facts,waited,lousy,circumstances,disappointed,weak,trusted,license,nothin,trash,understanding,slip,sounded,awake,friendship,stomach,weapon,threatened,mystery,vegas,understood,basically,switch,frankly,cheap,lifetime,deny,clock,garbage,why'd,tear,ears,indeed,changing,singing,tiny,decent,avoid,messed,filled,touched,disappear,exact,pills,kicked,harm,fortune,pretending,insurance,fancy,drove,cared,belongs,nights,lorelai,lift,timing,guarantee,chest,woke,burned,watched,heading,selfish,drinks,doll,committed,elevator,freeze,noise,wasting,ceremony,uncomfortable,staring,files,bike,stress,permission,thrown,possibility,borrow,fabulous,doors,screaming,bone,xander,what're,meal,apology,anger,honeymoon,bail,parking,fixed,wash,stolen,sensitive,stealing,photo,chose,lets,comfort,worrying,pocket,mateo,bleeding,shoulder,ignore,talent,tied,garage,dies,demons,dumped,witches,rude,crack,bothering,radar,soft,meantime,gimme,kinds,fate,concentrate,throat,prom,messages,intend,ashamed,somethin,manage,guilt,interrupt,guts,tongue,shoe,basement,sentence,purse,glasses,cabin,universe,repeat,mirror,wound,travers,tall,engagement,therapy,emotional,jeez,decisions,soup,thrilled,stake,chef,moves,extremely,moments,expensive,counting,shots,kidnapped,cleaning,shift,plate,impressed,smells,trapped,aidan,knocked,charming,attractive,argue,puts,whip,embarrassed,package,hitting,bust,stairs,alarm,pure,nail,nerve,incredibly,walks,dirt,stamp,terribly,friendly,damned,jobs,suffering,disgusting,stopping,deliver,riding,helps,disaster,bars,crossed,trap,talks,eggs,chick,threatening,spoken,introduce,confession,embarrassing,bags,impression,gate,reputation,presents,chat,suffer,argument,talkin,crowd,homework,coincidence,cancel,pride,solve,hopefully,pounds,pine,mate,illegal,generous,outfit,maid,bath,punch,freaked,begging,recall,enjoying,prepare,wheel,defend,signs,painful,yourselves,maris,that'd,suspicious,cooking,button,warned,sixty,pity,yelling,awhile,confidence,offering,pleased,panic,hers,gettin,refuse,grandpa,testify,choices,cruel,mental,gentleman,coma,cutting,proteus,guests,expert,benefit,faces,jumped,toilet,sneak,halloween,privacy,smoking,reminds,twins,swing,solid,options,commitment,crush,ambulance,wallet,gang,eleven,option,laundry,assure,stays,skip,fail,discussion,clinic,betrayed,sticking,bored,mansion,soda,sheriff,suite,handled,busted,load,happier,studying,romance,procedure,commit,assignment,suicide,minds,swim,yell,llanview,chasing,proper,believes,humor,hopes,lawyers,giant,latest,escaped,parent,tricks,insist,dropping,cheer,medication,flesh,routine,sandwich,handed,false,beating,warrant,awfully,odds,treating,thin,suggesting,fever,sweat,silent,clever,sweater,mall,sharing,assuming,judgment,goodnight,divorced,surely,steps,confess,math,listened,comin,answered,vulnerable,bless,dreaming,chip,zero,pissed,nate,kills,tears,knees,chill,brains,unusual,packed,dreamed,cure,lookin,grave,cheating,breaks,locker,gifts,awkward,thursday,joking,reasonable,dozen,curse,quartermaine,millions,dessert,rolling,detail,alien,delicious,closing,vampires,wore,tail,secure,salad,murderer,spit,offense,dust,conscience,bread,answering,lame,invitation,grief,smiling,pregnancy,prisoner,delivery,guards,virus,shrink,freezing,wreck,massimo,wire,technically,blown,anxious,cave,holidays,cleared,wishes,caring,candles,bound,charm,pulse,jumping,jokes,boom,occasion,silence,nonsense,frightened,slipped,dimera,blowing,relationships,kidnapping,spin,tool,roxy,packing,blaming,wrap,obsessed,fruit,torture,personality,there'll,fairy,necessarily,seventy,print,motel,underwear,grams,exhausted,believing,freaking,carefully,trace,touching,messing,recovery,intention,consequences,belt,sacrifice,courage,enjoyed,attracted,remove,testimony,intense,heal,defending,unfair,relieved,loyal,slowly,buzz,alcohol,surprises,psychiatrist,plain,attic,who'd,uniform,terrified,cleaned,zach,threaten,fella,enemies,satisfied,imagination,hooked,headache,forgetting,counselor,andie,acted,badge,naturally,frozen,sakes,appropriate,trunk,dunno,costume,sixteen,impressive,kicking,junk,grabbed,understands,describe,clients,owns,affect,witnesses,starving,instincts,happily,discussing,deserved,strangers,surveillance,admire,questioning,dragged,barn,deeply,wrapped,wasted,tense,hoped,fellas,roommate,mortal,fascinating,stops,arrangements,agenda,literally,propose,honesty,underneath,sauce,promises,lecture,eighty,torn,shocked,backup,differently,ninety,deck,biological,pheebs,ease,creep,waitress,telephone,ripped,raising,scratch,rings,prints,thee,arguing,ephram,asks,oops,diner,annoying,taggert,sergeant,blast,towel,clown,habit,creature,bermuda,snap,react,paranoid,handling,eaten,therapist,comment,sink,reporter,nurses,beats,priority,interrupting,warehouse,loyalty,inspector,pleasant,excuses,threats,guessing,tend,praying,motive,unconscious,mysterious,unhappy,tone,switched,rappaport,sookie,neighbor,loaded,swore,piss,balance,toss,misery,thief,squeeze,lobby,goa'uld,geez,exercise,forth,booked,sandburg,poker,eighteen,d'you,bury,everyday,digging,creepy,wondered,liver,hmmm,magical,fits,discussed,moral,helpful,searching,flew,depressed,aisle,cris,amen,vows,neighbors,darn,cents,arrange,annulment,useless,adventure,resist,fourteen,celebrating,inch,debt,violent,sand,teal'c,celebration,reminded,phones,paperwork,emotions,stubborn,pound,tension,stroke,steady,overnight,chips,beef,suits,boxes,cassadine,collect,tragedy,spoil,realm,wipe,surgeon,stretch,stepped,nephew,neat,limo,confident,perspective,climb,punishment,finest,springfield,hint,furniture,blanket,twist,proceed,fries,worries,niece,gloves,soap,signature,disappoint,crawl,convicted,flip,counsel,doubts,crimes,accusing,shaking,remembering,hallway,halfway,bothered,madam,gather,cameras,blackmail,symptoms,rope,ordinary,imagined,cigarette,supportive,explosion,trauma,ouch,furious,cheat,avoiding,whew,thick,oooh,boarding,approve,urgent,shhh,misunderstanding,drawer,phony,interfere,catching,bargain,tragic,respond,punish,penthouse,thou,rach,ohhh,insult,bugs,beside,begged,absolute,strictly,socks,senses,sneaking,reward,polite,checks,tale,physically,instructions,fooled,blows,tabby,bitter,adorable,y'all,tested,suggestion,jewelry,alike,jacks,distracted,shelter,lessons,constable,circus,audition,tune,shoulders,mask,helpless,feeding,explains,sucked,robbery,objection,behave,valuable,shadows,courtroom,confusing,talented,smarter,mistaken,customer,bizarre,scaring,motherfucker,alert,vecchio,reverend,foolish,compliment,bastards,worker,wheelchair,protective,gentle,reverse,picnic,knee,cage,wives,wednesday,voices,toes,stink,scares,pour,cheated,slide,ruining,filling,exit,cottage,upside,proves,parked,diary,complaining,confessed,pipe,merely,massage,chop,spill,prayer,betray,waiter,scam,rats,fraud,brush,tables,sympathy,pill,filthy,seventeen,employee,bracelet,pays,fairly,deeper,arrive,tracking,spite,shed,recommend,oughta,nanny,menu,diet,corn,roses,patch,dime,devastated,subtle,bullets,beans,pile,confirm,strings,parade,borrowed,toys,straighten,steak,premonition,planted,honored,exam,convenient,traveling,laying,insisted,dish,aitoro,kindly,grandson,donor,temper,teenager,proven,mothers,denial,backwards,tent,swell,noon,happiest,drives,thinkin,spirits,potion,holes,fence,whatsoever,rehearsal,overheard,lemme,hostage,bench,tryin,taxi,shove,moron,impress,needle,intelligent,instant,disagree,stinks,rianna,recover,groom,gesture,constantly,bartender,suspects,sealed,legally,hears,dresses,sheet,psychic,teenage,knocking,judging,accidentally,waking,rumor,manners,homeless,hollow,desperately,tapes,referring,item,genoa,gear,majesty,cried,tons,spells,instinct,quote,motorcycle,convincing,fashioned,aids,accomplished,grip,bump,upsetting,needing,invisible,forgiveness,feds,compare,bothers,tooth,inviting,earn,compromise,cocktail,tramp,jabot,intimate,dignity,dealt,souls,informed,gods,dressing,cigarettes,alistair,leak,fond,corky,seduce,liquor,fingerprints,enchantment,butters,stuffed,stavros,emotionally,transplant,tips,oxygen,nicely,lunatic,drill,complain,announcement,unfortunate,slap,prayers,plug,opens,oath,o'neill,mutual,yacht,remembers,fried,extraordinary,bait,warton,sworn,stare,safely,reunion,burst,might've,dive,aboard,expose,buddies,trusting,booze,sweep,sore,scudder,properly,parole,ditch,canceled,speaks,glow,wears,thirsty,skull,ringing,dorm,dining,bend,unexpected,pancakes,harsh,flattered,ahhh,troubles,fights,favourite,eats,rage,undercover,spoiled,sloane,shine,destroying,deliberately,conspiracy,thoughtful,sandwiches,plates,nails,miracles,fridge,drank,contrary,beloved,allergic,washed,stalking,solved,sack,misses,forgiven,bent,maciver,involve,dragging,cooked,pointing,foul,dull,beneath,heels,faking,deaf,stunt,jealousy,hopeless,fears,cuts,scenario,necklace,crashed,accuse,restraining,homicide,helicopter,firing,safer,auction,videotape,tore,reservations,pops,appetite,wounds,vanquish,ironic,fathers,excitement,anyhow,tearing,sends,rape,laughed,belly,dealer,cooperate,accomplish,wakes,spotted,sorts,reservation,ashes,tastes,supposedly,loft,intentions,integrity,wished,towels,suspected,investigating,inappropriate,lipstick,lawn,compassion,cafeteria,scarf,precisely,obsession,loses,lighten,infection,granddaughter,explode,balcony,this'll,spying,publicity,depend,cracked,conscious,ally,absurd,vicious,invented,forbid,directions,defendant,bare,announce,screwing,salesman,robbed,leap,lakeview,insanity,reveal,possibilities,kidnap,gown,chairs,wishing,setup,punished,criminals,regrets,raped,quarters,lamp,dentist,anyways,anonymous,semester,risks,owes,lungs,explaining,delicate,tricked,eager,doomed,adoption,stab,sickness,scum,floating,envelope,vault,sorel,pretended,potatoes,plea,photograph,payback,misunderstood,kiddo,healing,cascade,capeside,stabbed,remarkable,brat,privilege,passionate,nerves,lawsuit,kidney,disturbed,cozy,tire,shirts,oven,ordering,delay,risky,monsters,honorable,grounded,closest,breakdown,bald,abandon,scar,collar,worthless,sucking,enormous,disturbing,disturb,distract,deals,conclusions,vodka,dishes,crawling,briefcase,wiped,whistle,sits,roast,rented,pigs,flirting,deposit,bottles,topic,riot,overreacting,logical,hostile,embarrass,casual,beacon,amusing,altar,claus,survival,skirt,shave,porch,ghosts,favors,drops,dizzy,chili,advise,strikes,rehab,photographer,peaceful,leery,heavens,fortunately,fooling,expectations,cigar,weakness,ranch,practicing,examine,cranes,bribe,sail,prescription,hush,fragile,forensics,expense,drugged,cows,bells,visitor,suitcase,sorta,scan,manticore,insecure,imagining,hardest,clerk,wrist,what'll,starters,silk,pump,pale,nicer,haul,flies,boot,thumb,there'd,how're,elders,quietly,pulls,idiots,erase,denying,ankle,amnesia,accepting,heartbeat,devane,confront,minus,legitimate,fixing,arrogant,tuna,supper,slightest,sins,sayin,recipe,pier,paternity,humiliating,genuine,snack,rational,minded,guessed,weddings,tumor,humiliated,aspirin,spray,picks,eyed,drowning,contacts,ritual,perfume,hiring,hating,docks,creatures,visions,thanking,thankful,sock,nineteen,fork,throws,teenagers,stressed,slice,rolls,plead,ladder,kicks,detectives,assured,tellin,shallow,responsibilities,repay,howdy,girlfriends,deadly,comforting,ceiling,verdict,insensitive,spilled,respected,messy,interrupted,halliwell,blond,bleed,wardrobe,takin,murders,backs,underestimate,justify,harmless,frustrated,fold,enzo,communicate,bugging,arson,whack,salary,rumors,obligation,liking,dearest,congratulate,vengeance,rack,puzzle,fires,courtesy,caller,blamed,tops,quiz,prep,curiosity,circles,barbecue,sunnydale,spinning,psychotic,cough,accusations,resent,laughs,freshman,envy,drown,bartlet,asses,sofa,poster,highness,dock,apologies,theirs,stat,stall,realizes,psych,mmmm,fools,understandable,treats,succeed,stir,relaxed,makin,gratitude,faithful,accent,witter,wandering,locate,inevitable,gretel,deed,crushed,controlling,smelled,robe,gossip,gambling,cosmetics,accidents,surprising,stiff,sincere,rushed,refrigerator,preparing,nightmares,mijo,ignoring,hunch,fireworks,drowned,brass,whispering,sophisticated,luggage,hike,explore,emotion,crashing,contacted,complications,shining,rolled,righteous,reconsider,goody,geek,frightening,ethics,creeps,courthouse,camping,affection,smythe,haircut,essay,baked,apologized,vibe,respects,receipt,mami,hats,destructive,adore,adopt,tracked,shorts,reminding,dough,creations,cabot,barrel,snuck,slight,reporters,pressing,magnificent,madame,lazy,glorious,fiancee,bits,visitation,sane,kindness,shoulda,rescued,mattress,lounge,lifted,importantly,glove,enterprises,disappointment,condo,beings,admitting,yelled,waving,spoon,screech,satisfaction,reads,nailed,worm,tick,resting,marvelous,fuss,cortlandt,chased,pockets,luckily,lilith,filing,conversations,consideration,consciousness,worlds,innocence,forehead,aggressive,trailer,slam,quitting,inform,delighted,daylight,danced,confidential,aunts,washing,tossed,spectra,marrow,lined,implying,hatred,grill,corpse,clues,sober,offended,morgue,infected,humanity,distraction,cart,wired,violation,promising,harassment,glue,d'angelo,cursed,brutal,warlocks,wagon,unpleasant,proving,priorities,mustn't,lease,flame,disappearance,depressing,thrill,sitter,ribs,flush,earrings,deadline,corporal,collapsed,update,snapped,smack,melt,figuring,delusional,coulda,burnt,tender,sperm,realise,pork,popped,interrogation,esteem,choosing,undo,pres,prayed,plague,manipulate,insulting,detention,delightful,coffeehouse,betrayal,apologizing,adjust,wrecked,wont,whipped,rides,reminder,monsieur,faint,bake,distress,correctly,complaint,blocked,tortured,risking,pointless,handing,dumping,cups,alibi,struggling,shiny,risked,mummy,mint,hose,hobby,fortunate,fleischman,fitting,curtain,counseling,rode,puppet,modeling,memo,irresponsible,humiliation,hiya,freakin,felony,choke,blackmailing,appreciated,tabloid,suspicion,recovering,pledge,panicked,nursery,louder,jeans,investigator,homecoming,frustrating,buys,busting,buff,sleeve,irony,dope,declare,autopsy,workin,torch,prick,limb,hysterical,goddamnit,fetch,dimension,crowded,clip,climbing,bonding,woah,trusts,negotiate,lethal,iced,fantasies,deeds,bore,babysitter,questioned,outrageous,kiriakis,insulted,grudge,driveway,deserted,definite,beep,wires,suggestions,searched,owed,lend,drunken,demanding,costanza,conviction,bumped,weigh,touches,tempted,shout,resolve,relate,poisoned,meals,invitations,haunted,bogus,autograph,affects,tolerate,stepping,spontaneous,sleeps,probation,manny,fist,spectacular,hostages,heroin,havin,habits,encouraging,consult,burgers,boyfriends,bailed,baggage,watches,troubled,torturing,teasing,sweetest,qualities,postpone,overwhelmed,malkovich,impulse,classy,charging,amazed,policeman,hypocrite,humiliate,hideous,d'ya,costumes,bluffing,betting,bein,bedtime,alcoholic,vegetable,tray,suspicions,spreading,splendid,shrimp,shouting,pressed,nooo,grieving,gladly,fling,eliminate,cereal,aaah,sonofabitch,paralyzed,lotta,locks,guaranteed,dummy,despise,dental,briefing,bluff,batteries,whatta,sounding,servants,presume,handwriting,fainted,dried,allright,acknowledge,whacked,toxic,reliable,quicker,overwhelming,lining,harassing,fatal,endless,dolls,convict,whatcha,unlikely,shutting,positively,overcome,goddam,essence,dose,diagnosis,cured,bully,ahold,yearbook,tempting,shelf,prosecution,pouring,possessed,greedy,wonders,thorough,spine,rath,psychiatric,meaningless,latte,jammed,ignored,fiance,evidently,contempt,compromised,cans,weekends,urge,theft,suing,shipment,scissors,responding,proposition,noises,matching,hormones,hail,grandchildren,gently,smashed,sexually,sentimental,nicest,manipulated,intern,handcuffs,framed,errands,entertaining,crib,carriage,barge,spends,slipping,seated,rubbing,rely,reject,recommendation,reckon,headaches,float,embrace,corners,whining,sweating,skipped,mountie,motives,listens,cristobel,cleaner,cheerleader,balsom,unnecessary,stunning,scent,quartermaines,pose,montega,loosen,info,hottest,haunt,gracious,forgiving,errand,cakes,blames,abortion,sketch,shifts,plotting,perimeter,pals,mere,mattered,lonigan,interference,eyewitness,enthusiasm,diapers,strongest,shaken,punched,portal,catches,backyard,terrorists,sabotage,organs,needy,cuff,civilization,woof,who'll,prank,obnoxious,mates,hereby,gabby,faked,cellar,whitelighter,void,strangle,sour,muffins,interfering,demonic,clearing,boutique,barrington,terrace,smoked,righty,quack,petey,pact,knot,ketchup,disappearing,cordy,uptight,ticking,terrifying,tease,swamp,secretly,rejection,reflection,realizing,rays,mentally,marone,doubted,deception,congressman,cheesy,toto,stalling,scoop,ribbon,immune,expects,destined,bets,bathing,appreciation,accomplice,wander,shoved,sewer,scroll,retire,lasts,fugitive,freezer,discount,cranky,crank,clearance,bodyguard,anxiety,accountant,whoops,volunteered,talents,stinking,remotely,garlic,decency,cord,beds,altogether,uniforms,tremendous,popping,outa,observe,lung,hangs,feelin,dudes,donation,disguise,curb,bites,antique,toothbrush,realistic,predict,landlord,hourglass,hesitate,consolation,babbling,tipped,stranded,smartest,repeating,puke,psst,paycheck,overreacted,macho,juvenile,grocery,freshen,disposal,cuffs,caffeine,vanished,unfinished,ripping,pinch,flattering,expenses,dinners,colleague,ciao,belthazor,attorneys,woulda,whereabouts,waitin,truce,tripped,tasted,steer,poisoning,manipulative,immature,husbands,heel,granddad,delivering,condoms,addict,trashed,raining,pasta,needles,leaning,detector,coolest,batch,appointments,almighty,vegetables,spark,perfection,pains,momma,mole,meow,hairs,getaway,cracking,compliments,behold,verge,tougher,timer,tapped,taped,specialty,snooping,shoots,rendezvous,pentagon,leverage,jeopardize,janitor,grandparents,forbidden,clueless,bidding,ungrateful,unacceptable,tutor,serum,scuse,pajamas,mouths,lure,irrational,doom,cries,beautifully,arresting,approaching,traitor,sympathetic,smug,smash,rental,prostitute,premonitions,jumps,inventory,darlin,committing,banging,asap,worms,violated,vent,traumatic,traced,sweaty,shaft,overboard,insight,healed,grasp,experiencing,crappy,crab,chunk,awww,stain,shack,reacted,pronounce,poured,moms,marriages,jabez,handful,flipped,fireplace,embarrassment,disappears,concussion,bruises,brakes,twisting,swept,summon,splitting,sloppy,settling,reschedule,notch,hooray,grabbing,exquisite,disrespect,thornhart,straw,slapped,shipped,shattered,ruthless,refill,payroll,numb,mourning,manly,hunk,entertain,drift,dreadful,doorstep,confirmation,chops,appreciates,vague,tires,stressful,stashed,stash,sensed,preoccupied,predictable,noticing,madly,gunshot,dozens,dork,confuse,cleaners,charade,chalk,cappuccino,bouquet,amulet,addiction,who've,warming,unlock,satisfy,sacrificed,relaxing,lone,blocking,blend,blankets,addicted,yuck,hunger,hamburger,greeting,greet,gravy,gram,dreamt,dice,caution,backpack,agreeing,whale,taller,supervisor,sacrifices,phew,ounce,irrelevant,gran,felon,favorites,farther,fade,erased,easiest,convenience,compassionate,cane,backstage,agony,adores,veins,tweek,thieves,surgical,strangely,stetson,recital,proposing,productive,meaningful,immunity,hassle,goddamned,frighten,dearly,cease,ambition,wage,unstable,salvage,richer,refusing,raging,pumping,pressuring,mortals,lowlife,intimidated,intentionally,inspire,forgave,devotion,despicable,deciding,dash,comfy,breach,bark,aaaah,switching,swallowed,stove,screamed,scars,russians,pounding,poof,pipes,pawn,legit,invest,farewell,curtains,civilized,caviar,boost,token,superstition,supernatural,sadness,recorder,psyched,motivated,microwave,hallelujah,fraternity,dryer,cocoa,chewing,acceptable,unbelievably,smiled,smelling,simpler,respectable,remarks,khasinau,indication,gutter,grabs,fulfill,flashlight,ellenor,blooded,blink,blessings,beware,uhhh,turf,swings,slips,shovel,shocking,puff,mirrors,locking,heartless,fras,childish,cardiac,utterly,tuscany,ticked,stunned,statesville,sadly,purely,kiddin,jerks,hitch,flirt,fare,equals,dismiss,christening,casket,c'mere,breakup,biting,antibiotics,accusation,abducted,witchcraft,thread,runnin,punching,paramedics,newest,murdering,masks,lawndale,initials,grampa,choking,charms,careless,bushes,buns,bummed,shred,saves,saddle,rethink,regards,precinct,persuade,meds,manipulating,llanfair,leash,hearted,guarantees,fucks,disgrace,deposition,bookstore,boil,vitals,veil,trespassing,sidewalk,sensible,punishing,overtime,optimistic,obsessing,notify,mornin,jeopardy,jaffa,injection,hilarious,desires,confide,cautious,yada,where're,vindictive,vial,teeny,stroll,sittin,scrub,rebuild,posters,ordeal,nuns,intimacy,inheritance,exploded,donate,distracting,despair,crackers,wildwind,virtue,thoroughly,tails,spicy,sketches,sights,sheer,shaving,seize,scarecrow,refreshing,prosecute,platter,napkin,misplaced,merchandise,loony,jinx,heroic,frankenstein,ambitious,syrup,solitary,resemblance,reacting,premature,lavery,flashes,cheque,awright,acquainted,wrapping,untie,salute,realised,priceless,partying,lightly,lifting,kasnoff,insisting,glowing,generator,explosives,cutie,confronted,buts,blouse,ballistic,antidote,analyze,allowance,adjourned,unto,understatement,tucked,touchy,subconscious,screws,sarge,roommates,rambaldi,offend,nerd,knives,irresistible,incapable,hostility,goddammit,fuse,frat,curfew,blackmailed,walkin,starve,sleigh,sarcastic,recess,rebound,pinned,parlor,outfits,livin,heartache,haired,fundraiser,doorman,discreet,dilucca,cracks,considerate,climbed,catering,apophis,zoey,urine,strung,stitches,sordid,sark,protector,phoned,pets,hostess,flaw,flavor,deveraux,consumed,confidentiality,bourbon,straightened,specials,spaghetti,prettier,powerless,playin,playground,paranoia,instantly,havoc,exaggerating,eavesdropping,doughnuts,diversion,deepest,cutest,comb,bela,behaving,anyplace,accessory,workout,translate,stuffing,speeding,slime,royalty,polls,marital,lurking,lottery,imaginary,greetings,fairwinds,elegant,elbow,credibility,credentials,claws,chopped,bridal,bedside,babysitting,witty,unforgivable,underworld,tempt,tabs,sophomore,selfless,secrecy,restless,okey,movin,metaphor,messes,meltdown,lecter,incoming,gasoline,diefenbaker,buckle,admired,adjustment,warmth,throats,seduced,queer,parenting,noses,luckiest,graveyard,gifted,footsteps,dimeras,cynical,wedded,verbal,unpredictable,tuned,stoop,slides,sinking,rigged,plumbing,lingerie,hankey,greed,everwood,elope,dresser,chauffeur,bulletin,bugged,bouncing,temptation,strangest,slammed,sarcasm,pending,packages,orderly,obsessive,murderers,meteor,inconvenience,glimpse,froze,execute,courageous,consulate,closes,bosses,bees,amends,wuss,wolfram,wacky,unemployed,testifying,syringe,stew,startled,sorrow,sleazy,shaky,screams,rsquo,remark,poke,nutty,mentioning,mend,inspiring,impulsive,housekeeper,foam,fingernails,conditioning,baking,whine,thug,starved,sniffing,sedative,programmed,picket,paged,hound,homosexual,homo,hips,forgets,flipping,flea,flatter,dwell,dumpster,choo,assignments,ants,vile,unreasonable,tossing,thanked,steals,souvenir,scratched,psychopath,outs,obstruction,obey,lump,insists,harass,gloat,filth,edgy,didn,coroner,confessing,bruise,betraying,bailing,appealing,adebisi,wrath,wandered,waist,vain,traps,stepfather,poking,obligated,heavenly,dilemma,crazed,contagious,coaster,cheering,bundle,vomit,thingy,speeches,robbing,raft,pumped,pillows,peep,packs,neglected,m'kay,loneliness,intrude,helluva,gardener,forresters,drooling,betcha,vase,supermarket,squat,spitting,rhyme,relieve,receipts,racket,pictured,pause,overdue,motivation,morgendorffer,kidnapper,insect,horns,feminine,eyeballs,dumps,disappointing,crock,convertible,claw,clamp,canned,cambias,bathtub,avanya,artery,weep,warmer,suspense,summoned,spiders,reiber,raving,pushy,postponed,ohhhh,noooo,mold,laughter,incompetent,hugging,groceries,drip,communicating,auntie,adios,wraps,wiser,willingly,weirdest,timmih,thinner,swelling,swat,steroids,sensitivity,scrape,rehearse,prophecy,ledge,justified,insults,hateful,handles,doorway,chatting,buyer,buckaroo,bedrooms,askin,ammo,tutoring,subpoena,scratching,privileges,pager,mart,intriguing,idiotic,grape,enlighten,corrupt,brunch,bridesmaid,barking,applause,acquaintance,wretched,superficial,soak,smoothly,sensing,restraint,posing,pleading,payoff,oprah,nemo,morals,loaf,jumpy,ignorant,herbal,hangin,germs,generosity,flashing,doughnut,clumsy,chocolates,captive,behaved,apologise,vanity,stumbled,preview,poisonous,perjury,parental,onboard,mugged,minding,linen,knots,interviewing,humour,grind,greasy,goons,drastic,coop,comparing,cocky,clearer,bruised,brag,bind,worthwhile,whoop,vanquishing,tabloids,sprung,spotlight,sentencing,racist,provoke,pining,overly,locket,imply,impatient,hovering,hotter,fest,endure,dots,doren,debts,crawled,chained,brit,breaths,weirdo,warmed,wand,troubling,tok'ra,strapped,soaked,skipping,scrambled,rattle,profound,musta,mocking,misunderstand,limousine,kacl,hustle,forensic,enthusiastic,duct,drawers,devastating,conquer,clarify,chores,cheerleaders,cheaper,callin,blushing,barging,abused,yoga,wrecking,wits,waffles,virginity,vibes,uninvited,unfaithful,teller,strangled,scheming,ropes,rescuing,rave,postcard,o'reily,morphine,lotion,lads,kidneys,judgement,itch,indefinitely,grenade,glamorous,genetically,freud,discretion,delusions,crate,competent,bakery,argh,ahhhh,wedge,wager,unfit,tripping,torment,superhero,stirring,spinal,sorority,seminar,scenery,rabble,pneumonia,perks,override,ooooh,mija,manslaughter,mailed,lime,lettuce,intimidate,guarded,grieve,grad,frustration,doorbell,chinatown,authentic,arraignment,annulled,allergies,wanta,verify,vegetarian,tighter,telegram,stalk,spared,shoo,satisfying,saddam,requesting,pens,overprotective,obstacles,notified,nasedo,grandchild,genuinely,flushed,fluids,floss,escaping,ditched,cramp,corny,bunk,bitten,billions,bankrupt,yikes,wrists,ultrasound,ultimatum,thirst,sniff,shakes,salsa,retrieve,reassuring,pumps,neurotic,negotiating,needn't,monitors,millionaire,lydecker,limp,incriminating,hatchet,gracias,gordie,fills,feeds,doubting,decaf,biopsy,whiz,voluntarily,ventilator,unpack,unload,toad,spooked,snitch,schillinger,reassure,persuasive,mystical,mysteries,matrimony,mails,jock,headline,explanations,dispatch,curly,cupid,condolences,comrade,cassadines,bulb,bragging,awaits,assaulted,ambush,adolescent,abort,yank,whit,vaguely,undermine,tying,swamped,stabbing,slippers,slash,sincerely,sigh,setback,secondly,rotting,precaution,pcpd,melting,liaison,hots,hooking,headlines,haha,ganz,fury,felicity,fangs,encouragement,earring,dreidel,dory,donut,dictate,decorating,cocktails,bumps,blueberry,believable,backfired,backfire,apron,adjusting,vous,vouch,vitamins,ummm,tattoos,slimy,sibling,shhhh,renting,peculiar,parasite,paddington,marries,mailbox,magically,lovebirds,knocks,informant,exits,drazen,distractions,disconnected,dinosaurs,dashwood,crooked,conveniently,wink,warped,underestimated,tacky,shoving,seizure,reset,pushes,opener,mornings,mash,invent,indulge,horribly,hallucinating,festive,eyebrows,enjoys,desperation,dealers,darkest,daph,boragora,belts,bagel,authorization,auditions,agitated,wishful,wimp,vanish,unbearable,tonic,suffice,suction,slaying,safest,rocking,relive,puttin,prettiest,noisy,newlyweds,nauseous,misguided,mildly,midst,liable,judgmental,indy,hunted,givin,fascinated,elephants,dislike,deluded,decorate,crummy,contractions,carve,bottled,bonded,bahamas,unavailable,twenties,trustworthy,surgeons,stupidity,skies,remorse,preferably,pies,nausea,napkins,mule,mourn,melted,mashed,inherit,greatness,golly,excused,dumbo,drifting,delirious,damaging,cubicle,compelled,comm,chooses,checkup,boredom,bandages,alarms,windshield,who're,whaddya,transparent,surprisingly,sunglasses,slit,roar,reade,prognosis,probe,pitiful,persistent,peas,nosy,nagging,morons,masterpiece,martinis,limbo,liars,irritating,inclined,hump,hoynes,fiasco,eatin,cubans,concentrating,colorful,clam,cider,brochure,barto,bargaining,wiggle,welcoming,weighing,vanquished,stains,sooo,snacks,smear,sire,resentment,psychologist,pint,overhear,morality,landingham,kisser,hoot,holling,handshake,grilled,formality,elevators,depths,confirms,boathouse,accidental,westbridge,wacko,ulterior,thugs,thighs,tangled,stirred,snag,sling,sleaze,rumour,ripe,remarried,puddle,pins,perceptive,miraculous,longing,lockup,librarian,impressions,immoral,hypothetically,guarding,gourmet,gabe,faxed,extortion,downright,digest,cranberry,bygones,buzzing,burying,bikes,weary,taping,takeout,sweeping,stepmother,stale,senor,seaborn,pros,pepperoni,newborn,ludicrous,injected,geeks,forged,faults,drue,dire,dief,desi,deceiving,caterer,calmed,budge,ankles,vending,typing,tribbiani,there're,squared,snowing,shades,sexist,rewrite,regretted,raises,picky,orphan,mural,misjudged,miscarriage,memorize,leaking,jitters,invade,interruption,illegally,handicapped,glitch,gittes,finer,distraught,dispose,dishonest,digs,dads,cruelty,circling,canceling,butterflies,belongings,barbrady,amusement,alias,zombies,where've,unborn,swearing,stables,squeezed,sensational,resisting,radioactive,questionable,privileged,portofino,owning,overlook,orson,oddly,interrogate,imperative,impeccable,hurtful,hors,heap,graders,glance,disgust,devious,destruct,crazier,countdown,chump,cheeseburger,burglar,berries,ballroom,assumptions,annoyed,allergy,admirer,admirable,activate,underpants,twit,tack,strokes,stool,sham,scrap,retarded,resourceful,remarkably,refresh,pressured,precautions,pointy,nightclub,mustache,maui,lace,hunh,hubby,flare,dont,dokey,dangerously,crushing,clinging,choked,chem,cheerleading,checkbook,cashmere,calmly,blush,believer,amazingly,alas,what've,toilets,tacos,stairwell,spirited,sewing,rubbed,punches,protects,nuisance,motherfuckers,mingle,kynaston,knack,kinkle,impose,gullible,godmother,funniest,friggin,folding,fashions,eater,dysfunctional,drool,dripping,ditto,cruising,criticize,conceive,clone,cedars,caliber,brighter,blinded,birthdays,banquet,anticipate,annoy,whim,whichever,volatile,veto,vested,shroud,rests,reindeer,quarantine,pleases,painless,orphans,orphanage,offence,obliged,negotiation,narcotics,mistletoe,meddling,manifest,lookit,lilah,intrigued,injustice,homicidal,gigantic,exposing,elves,disturbance,disastrous,depended,demented,correction,cooped,cheerful,buyers,brownies,beverage,basics,arvin,weighs,upsets,unethical,swollen,sweaters,stupidest,sensation,scalpel,props,prescribed,pompous,objections,mushrooms,mulwray,manipulation,lured,internship,insignificant,inmate,incentive,fulfilled,disagreement,crypt,cornered,copied,brightest,beethoven,attendant,amaze,yogurt,wyndemere,vocabulary,tulsa,tactic,stuffy,respirator,pretends,polygraph,pennies,ordinarily,olives,necks,morally,martyr,leftovers,joints,hopping,homey,hints,heartbroken,forge,florist,firsthand,fiend,dandy,crippled,corrected,conniving,conditioner,clears,chemo,bubbly,bladder,beeper,baptism,wiring,wench,weaknesses,volunteering,violating,unlocked,tummy,surrogate,subid,stray,startle,specifics,slowing,scoot,robbers,rightful,richest,qfxmjrie,puffs,pierced,pencils,paralysis,makeover,luncheon,linksynergy,jerky,jacuzzi,hitched,hangover,fracture,flock,firemen,disgusted,darned,clams,borrowing,banged,wildest,weirder,unauthorized,stunts,sleeves,sixties,shush,shalt,retro,quits,pegged,painfully,paging,omelet,memorized,lawfully,jackets,intercept,ingredient,grownup,glued,fulfilling,enchanted,delusion,daring,compelling,carton,bridesmaids,bribed,boiling,bathrooms,bandage,awaiting,assign,arrogance,antiques,ainsley,turkeys,trashing,stockings,stalked,stabilized,skates,sedated,robes,respecting,psyche,presumptuous,prejudice,paragraph,mocha,mints,mating,mantan,lorne,loads,listener,itinerary,hepatitis,heave,guesses,fading,examining,dumbest,dishwasher,deceive,cunning,cripple,convictions,confided,compulsive,compromising,burglary,bumpy,brainwashed,benes,arnie,affirmative,adrenaline,adamant,watchin,waitresses,transgenic,toughest,tainted,surround,stormed,spree,spilling,spectacle,soaking,shreds,sewers,severed,scarce,scamming,scalp,rewind,rehearsing,pretentious,potions,overrated,obstacle,nerds,meems,mcmurphy,maternity,maneuver,loathe,fertility,eloping,ecstatic,ecstasy,divorcing,dignan,costing,clubhouse,clocks,candid,bursting,breather,braces,bending,arsonist,adored,absorb,valiant,uphold,unarmed,topolsky,thrilling,thigh,terminate,sustain,spaceship,snore,sneeze,smuggling,salty,quaint,patronize,patio,morbid,mamma,kettle,joyous,invincible,interpret,insecurities,impulses,illusions,holed,exploit,drivin,defenseless,dedicate,cradle,coupon,countless,conjure,cardboard,booking,backseat,accomplishment,wordsworth,wisely,valet,vaccine,urges,unnatural,unlucky,truths,traumatized,tasting,swears,strawberries,steaks,stats,skank,seducing,secretive,scumbag,screwdriver,schedules,rooting,rightfully,rattled,qualifies,puppets,prospects,pronto,posse,polling,pedestal,palms,muddy,morty,microscope,merci,lecturing,inject,incriminate,hygiene,grapefruit,gazebo,funnier,cuter,bossy,booby,aides,zende,winthrop,warrants,valentines,undressed,underage,truthfully,tampered,suffers,speechless,sparkling,sidelines,shrek,railing,puberty,pesky,outrage,outdoors,motions,moods,lunches,litter,kidnappers,itching,intuition,imitation,humility,hassling,gallons,drugstore,dosage,disrupt,dipping,deranged,debating,cuckoo,cremated,craziness,cooperating,circumstantial,chimney,blinking,biscuits,admiring,weeping,triad,trashy,soothing,slumber,slayers,skirts,siren,shindig,sentiment,rosco,riddance,quaid,purity,proceeding,pretzels,panicking,mckechnie,lovin,leaked,intruding,impersonating,ignorance,hamburgers,footprints,fluke,fleas,festivities,fences,feisty,evacuate,emergencies,deceived,creeping,craziest,corpses,conned,coincidences,bounced,bodyguards,blasted,bitterness,baloney,ashtray,apocalypse,zillion,watergate,wallpaper,telesave,sympathize,sweeter,startin,spades,sodas,snowed,sleepover,signor,seein,retainer,restroom,rested,repercussions,reliving,reconcile,prevail,preaching,overreact,o'neil,noose,moustache,manicure,maids,landlady,hypothetical,hopped,homesick,hives,hesitation,herbs,hectic,heartbreak,haunting,gangs,frown,fingerprint,exhausting,everytime,disregard,cling,chevron,chaperone,blinding,bitty,beads,battling,badgering,anticipation,upstanding,unprofessional,unhealthy,turmoil,truthful,toothpaste,tippin,thoughtless,tagataya,shooters,senseless,rewarding,propane,preposterous,pigeons,pastry,overhearing,obscene,negotiable,loner,jogging,itchy,insinuating,insides,hospitality,hormone,hearst,forthcoming,fists,fifties,etiquette,endings,destroys,despises,deprived,cuddy,crust,cloak,circumstance,chewed,casserole,bidder,bearer,artoo,applaud,appalling,vowed,virgins,vigilante,undone,throttle,testosterone,tailor,symptom,swoop,suitcases,stomp,sticker,stakeout,spoiling,snatched,smoochy,smitten,shameless,restraints,researching,renew,refund,reclaim,raoul,puzzles,purposely,punks,prosecuted,plaid,picturing,pickin,parasites,mysteriously,multiply,mascara,jukebox,interruptions,gunfire,furnace,elbows,duplicate,drapes,deliberate,decoy,cryptic,coupla,condemn,complicate,colossal,clerks,clarity,brushed,banished,argon,alarmed,worships,versa,uncanny,technicality,sundae,stumble,stripping,shuts,schmuck,satin,saliva,robber,relentless,reconnect,recipes,rearrange,rainy,psychiatrists,policemen,plunge,plugged,patched,overload,o'malley,mindless,menus,lullaby,lotte,leavin,killin,karinsky,invalid,hides,grownups,griff,flaws,flashy,flaming,fettes,evicted,dread,degrassi,dealings,dangers,cushion,bowel,barged,abide,abandoning,wonderfully,wait'll,violate,suicidal,stayin,sorted,slamming,sketchy,shoplifting,raiser,quizmaster,prefers,needless,motherhood,momentarily,migraine,lifts,leukemia,leftover,keepin,hinks,hellhole,gowns,goodies,gallon,futures,entertained,eighties,conspiring,cheery,benign,apiece,adjustments,abusive,abduction,wiping,whipping,welles,unspeakable,unidentified,trivial,transcripts,textbook,supervise,superstitious,stricken,stimulating,spielberg,slices,shelves,scratches,sabotaged,retrieval,repressed,rejecting,quickie,ponies,peeking,outraged,o'connell,moping,moaning,mausoleum,licked,kovich,klutz,interrogating,interfered,insulin,infested,incompetence,hyper,horrified,handedly,gekko,fraid,fractured,examiner,eloped,disoriented,dashing,crashdown,courier,cockroach,chipped,brushing,bombed,bolts,baths,baptized,astronaut,assurance,anemia,abuela,abiding,withholding,weave,wearin,weaker,suffocating,straws,straightforward,stench,steamed,starboard,sideways,shrinks,shortcut,scram,roasted,roaming,riviera,respectfully,repulsive,psychiatry,provoked,penitentiary,painkillers,ninotchka,mitzvah,milligrams,midge,marshmallows,looky,lapse,kubelik,intellect,improvise,implant,goa'ulds,giddy,geniuses,fruitcake,footing,fightin,drinkin,doork,detour,cuddle,crashes,combo,colonnade,cheats,cetera,bailiff,auditioning,assed,amused,alienate,aiding,aching,unwanted,topless,tongues,tiniest,superiors,soften,sheldrake,rawley,raisins,presses,plaster,nessa,narrowed,minions,merciful,lawsuits,intimidating,infirmary,inconvenient,imposter,hugged,honoring,holdin,hades,godforsaken,fumes,forgery,foolproof,folder,flattery,fingertips,exterminator,explodes,eccentric,dodging,disguised,crave,constructive,concealed,compartment,chute,chinpokomon,bodily,astronauts,alimony,accustomed,abdominal,wrinkle,wallow,valium,untrue,uncover,trembling,treasures,torched,toenails,timed,termites,telly,taunting,taransky,talker,succubus,smarts,sliding,sighting,semen,seizures,scarred,savvy,sauna,saddest,sacrificing,rubbish,riled,ratted,rationally,provenance,phonse,perky,pedal,overdose,nasal,nanites,mushy,movers,missus,midterm,merits,melodramatic,manure,knitting,invading,interpol,incapacitated,hotline,hauling,gunpoint,grail,ganza,framing,flannel,faded,eavesdrop,desserts,calories,breathtaking,bleak,blacked,batter,aggravated,yanked,wigand,whoah,unwind,undoubtedly,unattractive,twitch,trimester,torrance,timetable,taxpayers,strained,stared,slapping,sincerity,siding,shenanigans,shacking,sappy,samaritan,poorer,politely,paste,oysters,overruled,nightcap,mosquito,millimeter,merrier,manhood,lucked,kilos,ignition,hauled,harmed,goodwill,freshmen,fenmore,fasten,farce,exploding,erratic,drunks,ditching,d'artagnan,cramped,contacting,closets,clientele,chimp,bargained,arranging,anesthesia,amuse,altering,afternoons,accountable,abetting,wolek,waved,uneasy,toddy,tattooed,spauldings,sliced,sirens,schibetta,scatter,rinse,remedy,redemption,pleasures,optimism,oblige,mmmmm,masked,malicious,mailing,kosher,kiddies,judas,isolate,insecurity,incidentally,heals,headlights,growl,grilling,glazed,flunk,floats,fiery,fairness,exercising,excellency,disclosure,cupboard,counterfeit,condescending,conclusive,clicked,cleans,cholesterol,cashed,broccoli,brats,blueprints,blindfold,billing,attach,appalled,alrighty,wynant,unsolved,unreliable,toots,tighten,sweatshirt,steinbrenner,steamy,spouse,sonogram,slots,sleepless,shines,retaliate,rephrase,redeem,rambling,quilt,quarrel,prying,proverbial,priced,prescribe,prepped,pranks,possessive,plaintiff,pediatrics,overlooked,outcast,nightgown,mumbo,mediocre,mademoiselle,lunchtime,lifesaver,leaned,lambs,interns,hounding,hellmouth,hahaha,goner,ghoul,gardening,frenzy,foyer,extras,exaggerate,everlasting,enlightened,dialed,devote,deceitful,d'oeuvres,cosmetic,contaminated,conspired,conning,cavern,carving,butting,boiled,blurry,babysit,ascension,aaaaah,wildly,whoopee,whiny,weiskopf,walkie,vultures,vacations,upfront,unresolved,tampering,stockholders,snaps,sleepwalking,shrunk,sermon,seduction,scams,revolve,phenomenal,patrolling,paranormal,ounces,omigod,nightfall,lashing,innocents,infierno,incision,humming,haunts,gloss,gloating,frannie,fetal,feeny,entrapment,discomfort,detonator,dependable,concede,complication,commotion,commence,chulak,caucasian,casually,brainer,bolie,ballpark,anwar,analyzing,accommodations,youse,wring,wallowing,transgenics,thrive,tedious,stylish,strippers,sterile,squeezing,squeaky,sprained,solemn,snoring,shattering,shabby,seams,scrawny,revoked,residue,reeks,recite,ranting,quoting,predicament,plugs,pinpoint,petrified,pathological,passports,oughtta,nighter,navigate,kippie,intrigue,intentional,insufferable,hunky,how've,horrifying,hearty,hamptons,grazie,funerals,forks,fetched,excruciating,enjoyable,endanger,dumber,drying,diabolical,crossword,corry,comprehend,clipped,classmates,candlelight,brutally,brutality,boarded,bathrobe,authorize,assemble,aerobics,wholesome,whiff,vermin,trophies,trait,tragically,toying,testy,tasteful,stocked,spinach,sipping,sidetracked,scrubbing,scraping,sanctity,robberies,ridin,retribution,refrain,realities,radiant,protesting,projector,plutonium,payin,parting,o'reilly,nooooo,motherfucking,measly,manic,lalita,juggling,jerking,intro,inevitably,hypnosis,huddle,horrendous,hobbies,heartfelt,harlin,hairdresser,gonorrhea,fussing,furtwangler,fleeting,flawless,flashed,fetus,eulogy,distinctly,disrespectful,denies,crossbow,cregg,crabs,cowardly,contraction,contingency,confirming,condone,coffins,cleansing,cheesecake,certainty,cages,c'est,briefed,bravest,bosom,boils,binoculars,bachelorette,appetizer,ambushed,alerted,woozy,withhold,vulgar,utmost,unleashed,unholy,unhappiness,unconditional,typewriter,typed,twists,supermodel,subpoenaed,stringing,skeptical,schoolgirl,romantically,rocked,revoir,reopen,puncture,preach,polished,planetarium,penicillin,peacefully,nurturing,more'n,mmhmm,midgets,marklar,lodged,lifeline,jellyfish,infiltrate,hutch,horseback,heist,gents,frickin,freezes,forfeit,flakes,flair,fathered,eternally,epiphany,disgruntled,discouraged,delinquent,decipher,danvers,cubes,credible,coping,chills,cherished,catastrophe,bombshell,birthright,billionaire,ample,affections,admiration,abbotts,whatnot,watering,vinegar,unthinkable,unseen,unprepared,unorthodox,underhanded,uncool,timeless,thump,thermometer,theoretically,tapping,tagged,swung,stares,spiked,solves,smuggle,scarier,saucer,quitter,prudent,powdered,poked,pointers,peril,penetrate,penance,opium,nudge,nostrils,neurological,mockery,mobster,medically,loudly,insights,implicate,hypocritical,humanly,holiness,healthier,hammered,haldeman,gunman,gloom,freshly,francs,flunked,flawed,emptiness,drugging,dozer,derevko,deprive,deodorant,cryin,crocodile,coloring,colder,cognac,clocked,clippings,charades,chanting,certifiable,caterers,brute,brochures,botched,blinders,bitchin,banter,woken,ulcer,tread,thankfully,swine,swimsuit,swans,stressing,steaming,stamped,stabilize,squirm,snooze,shuffle,shredded,seafood,scratchy,savor,sadistic,rhetorical,revlon,realist,prosecuting,prophecies,polyester,petals,persuasion,paddles,o'leary,nuthin,neighbour,negroes,muster,meningitis,matron,lockers,letterman,legged,indictment,hypnotized,housekeeping,hopelessly,hallucinations,grader,goldilocks,girly,flask,envelopes,downside,doves,dissolve,discourage,disapprove,diabetic,deliveries,decorator,crossfire,criminally,containment,comrades,complimentary,chatter,catchy,cashier,cartel,caribou,cardiologist,brawl,booted,barbershop,aryan,angst,administer,zellie,wreak,whistles,vandalism,vamps,uterus,upstate,unstoppable,understudy,tristin,transcript,tranquilizer,toxins,tonsils,stempel,spotting,spectator,spatula,softer,snotty,slinging,showered,sexiest,sensual,sadder,rimbaud,restrain,resilient,remission,reinstate,rehash,recollection,rabies,popsicle,plausible,pediatric,patronizing,ostrich,ortolani,oooooh,omelette,mistrial,marseilles,loophole,laughin,kevvy,irritated,infidelity,hypothermia,horrific,groupie,grinding,graceful,goodspeed,gestures,frantic,extradition,echelon,disks,dawnie,dared,damsel,curled,collateral,collage,chant,calculating,bumping,bribes,boardwalk,blinds,blindly,bleeds,bickering,beasts,backside,avenge,apprehended,anguish,abusing,youthful,yells,yanking,whomever,when'd,vomiting,vengeful,unpacking,unfamiliar,undying,tumble,trolls,treacherous,tipping,tantrum,tanked,summons,straps,stomped,stinkin,stings,staked,squirrels,sprinkles,speculate,sorting,skinned,sicko,sicker,shootin,shatter,seeya,schnapps,s'posed,ronee,respectful,regroup,regretting,reeling,reckoned,ramifications,puddy,projections,preschool,plissken,platonic,permalash,outdone,outburst,mutants,mugging,misfortune,miserably,miraculously,medications,margaritas,manpower,lovemaking,logically,leeches,latrine,kneel,inflict,impostor,hypocrisy,hippies,heterosexual,heightened,hecuba,healer,gunned,grooming,groin,gooey,gloomy,frying,friendships,fredo,firepower,fathom,exhaustion,evils,endeavor,eggnog,dreaded,d'arcy,crotch,coughing,coronary,cookin,consummate,congrats,companionship,caved,caspar,bulletproof,brilliance,breakin,brash,blasting,aloud,airtight,advising,advertise,adultery,aches,wronged,upbeat,trillion,thingies,tending,tarts,surreal,specs,specialize,spade,shrew,shaping,selves,schoolwork,roomie,recuperating,rabid,quart,provocative,proudly,pretenses,prenatal,pharmaceuticals,pacing,overworked,originals,nicotine,murderous,mileage,mayonnaise,massages,losin,interrogated,injunction,impartial,homing,heartbreaker,hacks,glands,giver,fraizh,flips,flaunt,englishman,electrocuted,dusting,ducking,drifted,donating,cylon,crutches,crates,cowards,comfortably,chummy,chitchat,childbirth,businesswoman,brood,blatant,bethy,barring,bagged,awakened,asbestos,airplanes,worshipped,winnings,why're,visualize,unprotected,unleash,trays,thicker,therapists,takeoff,streisand,storeroom,stethoscope,stacked,spiteful,sneaks,snapping,slaughtered,slashed,simplest,silverware,shits,secluded,scruples,scrubs,scraps,ruptured,roaring,receptionist,recap,raditch,radiator,pushover,plastered,pharmacist,perverse,perpetrator,ornament,ointment,nineties,napping,nannies,mousse,moors,momentary,misunderstandings,manipulator,malfunction,laced,kivar,kickin,infuriating,impressionable,holdup,hires,hesitated,headphones,hammering,groundwork,grotesque,graces,gauze,gangsters,frivolous,freeing,fours,forwarding,ferrars,faulty,fantasizing,extracurricular,empathy,divorces,detonate,depraved,demeaning,deadlines,dalai,cursing,cufflink,crows,coupons,comforted,claustrophobic,casinos,camped,busboy,bluth,bennetts,baskets,attacker,aplastic,angrier,affectionate,zapped,wormhole,weaken,unrealistic,unravel,unimportant,unforgettable,twain,suspend,superbowl,stutter,stewardess,stepson,standin,spandex,souvenirs,sociopath,skeletons,shivering,sexier,selfishness,scrapbook,ritalin,ribbons,reunite,remarry,relaxation,rattling,rapist,psychosis,prepping,poses,pleasing,pisses,piling,persecuted,padded,operatives,negotiator,natty,menopause,mennihan,martimmys,loyalties,laynie,lando,justifies,intimately,inexperienced,impotent,immortality,horrors,hooky,hinges,heartbreaking,handcuffed,gypsies,guacamole,grovel,graziella,goggles,gestapo,fussy,ferragamo,feeble,eyesight,explosions,experimenting,enchanting,doubtful,dizziness,dismantle,detectors,deserving,defective,dangling,dancin,crumble,creamed,cramping,conceal,clockwork,chrissakes,chrissake,chopping,cabinets,brooding,bonfire,blurt,bloated,blackmailer,beforehand,bathed,bathe,barcode,banish,badges,babble,await,attentive,aroused,antibodies,animosity,ya'll,wrinkled,wonderland,willed,whisk,waltzing,waitressing,vigilant,upbringing,unselfish,uncles,trendy,trajectory,striped,stamina,stalled,staking,stacks,spoils,snuff,snooty,snide,shrinking,senora,secretaries,scoundrel,saline,salads,rundown,riddles,relapse,recommending,raspberry,plight,pecan,pantry,overslept,ornaments,niner,negligent,negligence,nailing,mucho,mouthed,monstrous,malpractice,lowly,loitering,logged,lingering,lettin,lattes,kamal,juror,jillefsky,jacked,irritate,intrusion,insatiable,infect,impromptu,icing,hmmmm,hefty,gasket,frightens,flapping,firstborn,faucet,estranged,envious,dopey,doesn,disposition,disposable,disappointments,dipped,dignified,deceit,dealership,deadbeat,curses,coven,counselors,concierge,clutches,casbah,callous,cahoots,brotherly,britches,brides,bethie,beige,autographed,attendants,attaboy,astonishing,appreciative,antibiotic,aneurysm,afterlife,affidavit,zoning,whats,whaddaya,vasectomy,unsuspecting,toula,topanga,tonio,toasted,tiring,terrorized,tenderness,tailing,sweats,suffocated,sucky,subconsciously,starvin,sprouts,spineless,sorrows,snowstorm,smirk,slicery,sledding,slander,simmer,signora,sigmund,seventies,sedate,scented,sandals,rollers,retraction,resigning,recuperate,receptive,racketeering,queasy,provoking,priors,prerogative,premed,pinched,pendant,outsiders,orbing,opportunist,olanov,neurologist,nanobot,mommies,molested,misread,mannered,laundromat,intercom,inspect,insanely,infatuation,indulgent,indiscretion,inconsiderate,hurrah,howling,herpes,hasta,harassed,hanukkah,groveling,groosalug,gander,galactica,futile,fridays,flier,fixes,exploiting,exorcism,evasive,endorse,emptied,dreary,dreamy,downloaded,dodged,doctored,disobeyed,disneyland,disable,dehydrated,contemplating,coconuts,cockroaches,clogged,chilling,chaperon,cameraman,bulbs,bucklands,bribing,brava,bracelets,bowels,bluepoint,appetizers,appendix,antics,anointed,analogy,almonds,yammering,winch,weirdness,wangler,vibrations,vendor,unmarked,unannounced,twerp,trespass,travesty,transfusion,trainee,towelie,tiresome,straightening,staggering,sonar,socializing,sinus,sinners,shambles,serene,scraped,scones,scepter,sarris,saberhagen,ridiculously,ridicule,rents,reconciled,radios,publicist,pubes,prune,prude,precrime,postponing,pluck,perish,peppermint,peeled,overdo,nutshell,nostalgic,mulan,mouthing,mistook,meddle,maybourne,martimmy,lobotomy,livelihood,lippman,likeness,kindest,kaffee,jocks,jerked,jeopardizing,jazzed,insured,inquisition,inhale,ingenious,holier,helmets,heirloom,heinous,haste,harmsway,hardship,hanky,gutters,gruesome,groping,goofing,godson,glare,finesse,figuratively,ferrie,endangerment,dreading,dozed,dorky,dmitri,divert,discredit,dialing,cufflinks,crutch,craps,corrupted,cocoon,cleavage,cannery,bystander,brushes,bruising,bribery,brainstorm,bolted,binge,ballistics,astute,arroway,adventurous,adoptive,addicts,addictive,yadda,whitelighters,wematanye,weeds,wedlock,wallets,vulnerability,vroom,vents,upped,unsettling,unharmed,trippin,trifle,tracing,tormenting,thats,syphilis,subtext,stickin,spices,sores,smacked,slumming,sinks,signore,shitting,shameful,shacked,septic,seedy,righteousness,relish,rectify,ravishing,quickest,phoebs,perverted,peeing,pedicure,pastrami,passionately,ozone,outnumbered,oregano,offender,nukes,nosed,nighty,nifty,mounties,motivate,moons,misinterpreted,mercenary,mentality,marsellus,lupus,lumbar,lovesick,lobsters,leaky,laundering,latch,jafar,instinctively,inspires,indoors,incarcerated,hundredth,handkerchief,gynecologist,guittierez,groundhog,grinning,goodbyes,geese,fullest,eyelashes,eyelash,enquirer,endlessly,elusive,disarm,detest,deluding,dangle,cotillion,corsage,conjugal,confessional,cones,commandment,coded,coals,chuckle,christmastime,cheeseburgers,chardonnay,celery,campfire,calming,burritos,brundle,broflovski,brighten,borderline,blinked,bling,beauties,bauers,battered,articulate,alienated,ahhhhh,agamemnon,accountants,y'see,wrongful,wrapper,workaholic,winnebago,whispered,warts,vacate,unworthy,unanswered,tonane,tolerated,throwin,throbbing,thrills,thorns,thereof,there've,tarot,sunscreen,stretcher,stereotype,soggy,sobbing,sizable,sightings,shucks,shrapnel,sever,senile,seaboard,scorned,saver,rebellious,rained,putty,prenup,pores,pinching,pertinent,peeping,paints,ovulating,opposites,occult,nutcracker,nutcase,newsstand,newfound,mocked,midterms,marshmallow,marbury,maclaren,leans,krudski,knowingly,keycard,junkies,juilliard,jolinar,irritable,invaluable,inuit,intoxicating,instruct,insolent,inexcusable,incubator,illustrious,hunsecker,houseguest,homosexuals,homeroom,hernia,harming,handgun,hallways,hallucination,gunshots,groupies,groggy,goiter,gingerbread,giggling,frigging,fledged,fedex,fairies,exchanging,exaggeration,esteemed,enlist,drags,dispense,disloyal,disconnect,desks,dentists,delacroix,degenerate,daydreaming,cushions,cuddly,corroborate,complexion,compensated,cobbler,closeness,chilled,checkmate,channing,carousel,calms,bylaws,benefactor,ballgame,baiting,backstabbing,artifact,airspace,adversary,actin,accuses,accelerant,abundantly,abstinence,zissou,zandt,yapping,witchy,willows,whadaya,vilandra,veiled,undress,undivided,underestimating,ultimatums,twirl,truckload,tremble,toasting,tingling,tents,tempered,sulking,stunk,sponges,spills,softly,snipers,scourge,rooftop,riana,revolting,revisit,refreshments,redecorating,recapture,raysy,pretense,prejudiced,precogs,pouting,poofs,pimple,piles,pediatrician,padre,packets,paces,orvelle,oblivious,objectivity,nighttime,nervosa,mexicans,meurice,melts,matchmaker,maeby,lugosi,lipnik,leprechaun,kissy,kafka,introductions,intestines,inspirational,insightful,inseparable,injections,inadvertently,hussy,huckabees,hittin,hemorrhaging,headin,haystack,hallowed,grudges,granilith,grandkids,grading,gracefully,godsend,gobbles,fragrance,fliers,finchley,farts,eyewitnesses,expendable,existential,dorms,delaying,degrading,deduction,darlings,danes,cylons,counsellor,contraire,consciously,conjuring,congratulating,cokes,buffay,brooch,bitching,bistro,bijou,bewitched,benevolent,bends,bearings,barren,aptitude,amish,amazes,abomination,worldly,whispers,whadda,wayward,wailing,vanishing,upscale,untouchable,unspoken,uncontrollable,unavoidable,unattended,trite,transvestite,toupee,timid,timers,terrorizing,swana,stumped,strolling,storybook,storming,stomachs,stoked,stationery,springtime,spontaneity,spits,spins,soaps,sentiments,scramble,scone,rooftops,retract,reflexes,rawdon,ragged,quirky,quantico,psychologically,prodigal,pounce,potty,pleasantries,pints,petting,perceive,onstage,notwithstanding,nibble,newmans,neutralize,mutilated,millionaires,mayflower,masquerade,mangy,macreedy,lunatics,lovable,locating,limping,lasagna,kwang,keepers,juvie,jaded,ironing,intuitive,intensely,insure,incantation,hysteria,hypnotize,humping,happenin,griet,grasping,glorified,ganging,g'night,focker,flunking,flimsy,flaunting,fixated,fitzwallace,fainting,eyebrow,exonerated,ether,electrician,egotistical,earthly,dusted,dignify,detonation,debrief,dazzling,dan'l,damnedest,daisies,crushes,crucify,contraband,confronting,collapsing,cocked,clicks,cliche,circled,chandelier,carburetor,callers,broads,breathes,bloodshed,blindsided,blabbing,bialystock,bashing,ballerina,aviva,arteries,anomaly,airstrip,agonizing,adjourn,aaaaa,yearning,wrecker,witnessing,whence,warhead,unsure,unheard,unfreeze,unfold,unbalanced,ugliest,troublemaker,toddler,tiptoe,threesome,thirties,thermostat,swipe,surgically,subtlety,stung,stumbling,stubs,stride,strangling,sprayed,socket,smuggled,showering,shhhhh,sabotaging,rumson,rounding,risotto,repairman,rehearsed,ratty,ragging,radiology,racquetball,racking,quieter,quicksand,prowl,prompt,premeditated,prematurely,prancing,porcupine,plated,pinocchio,peeked,peddle,panting,overweight,overrun,outing,outgrown,obsess,nursed,nodding,negativity,negatives,musketeers,mugger,motorcade,merrily,matured,masquerading,marvellous,maniacs,lovey,louse,linger,lilies,lawful,kudos,knuckle,juices,judgments,itches,intolerable,intermission,inept,incarceration,implication,imaginative,huckleberry,holster,heartburn,gunna,groomed,graciously,fulfillment,fugitives,forsaking,forgives,foreseeable,flavors,flares,fixation,fickle,fantasize,famished,fades,expiration,exclamation,erasing,eiffel,eerie,earful,duped,dulles,dissing,dissect,dispenser,dilated,detergent,desdemona,debriefing,damper,curing,crispina,crackpot,courting,cordial,conflicted,comprehension,commie,cleanup,chiropractor,charmer,chariot,cauldron,catatonic,bullied,buckets,brilliantly,breathed,booths,boardroom,blowout,blindness,blazing,biologically,bibles,biased,beseech,barbaric,balraj,audacity,anticipating,alcoholics,airhead,agendas,admittedly,absolution,youre,yippee,wittlesey,withheld,willful,whammy,weakest,washes,virtuous,videotapes,vials,unplugged,unpacked,unfairly,turbulence,tumbling,tricking,tremendously,traitors,torches,tinga,thyroid,teased,tawdry,taker,sympathies,swiped,sundaes,suave,strut,stepdad,spewing,spasm,socialize,slither,simulator,shutters,shrewd,shocks,semantics,schizophrenic,scans,savages,rya'c,runny,ruckus,royally,roadblocks,rewriting,revoke,repent,redecorate,recovers,recourse,ratched,ramali,racquet,quince,quiche,puppeteer,puking,puffed,problemo,praises,pouch,postcards,pooped,poised,piled,phoney,phobia,patching,parenthood,pardner,oozing,ohhhhh,numbing,nostril,nosey,neatly,nappa,nameless,mortuary,moronic,modesty,midwife,mcclane,matuka,maitre,lumps,lucid,loosened,loins,lawnmower,lamotta,kroehner,jinxy,jessep,jamming,jailhouse,jacking,intruders,inhuman,infatuated,indigestion,implore,implanted,hormonal,hoboken,hillbilly,heartwarming,headway,hatched,hartmans,harping,grapevine,gnome,forties,flyin,flirted,fingernail,exhilarating,enjoyment,embark,dumper,dubious,drell,docking,disillusioned,dishonor,disbarred,dicey,custodial,counterproductive,corned,cords,contemplate,concur,conceivable,cobblepot,chickened,checkout,carpe,cap'n,campers,buyin,bullies,braid,boxed,bouncy,blueberries,blubbering,bloodstream,bigamy,beeped,bearable,autographs,alarming,wretch,wimps,widower,whirlwind,whirl,warms,vandelay,unveiling,undoing,unbecoming,turnaround,touche,togetherness,tickles,ticker,teensy,taunt,sweethearts,stitched,standpoint,staffers,spotless,soothe,smothered,sickening,shouted,shepherds,shawl,seriousness,schooled,schoolboy,s'mores,roped,reminders,raggedy,preemptive,plucked,pheromones,particulars,pardoned,overpriced,overbearing,outrun,ohmigod,nosing,nicked,neanderthal,mosquitoes,mortified,milky,messin,mecha,markinson,marivellas,mannequin,manderley,madder,macready,lookie,locusts,lifetimes,lanna,lakhi,kholi,impersonate,hyperdrive,horrid,hopin,hogging,hearsay,harpy,harboring,hairdo,hafta,grasshopper,gobble,gatehouse,foosball,floozy,fished,firewood,finalize,felons,euphemism,entourage,elitist,elegance,drokken,drier,dredge,dossier,diseased,diarrhea,diagnose,despised,defuse,d'amour,contesting,conserve,conscientious,conjured,collars,clogs,chenille,chatty,chamomile,casing,calculator,brittle,breached,blurted,birthing,bikinis,astounding,assaulting,aroma,appliance,antsy,amnio,alienating,aliases,adolescence,xerox,wrongs,workload,willona,whistling,werewolves,wallaby,unwelcome,unseemly,unplug,undermining,ugliness,tyranny,tuesdays,trumpets,transference,ticks,tangible,tagging,swallowing,superheroes,studs,strep,stowed,stomping,steffy,sprain,spouting,sponsoring,sneezing,smeared,slink,shakin,sewed,seatbelt,scariest,scammed,sanctimonious,roasting,rightly,retinal,rethinking,resented,reruns,remover,racks,purest,progressing,presidente,preeclampsia,postponement,portals,poppa,pliers,pinning,pelvic,pampered,padding,overjoyed,ooooo,one'll,octavius,nonono,nicknames,neurosurgeon,narrows,misled,mislead,mishap,milltown,milking,meticulous,mediocrity,meatballs,machete,lurch,layin,knockin,khruschev,jurors,jumpin,jugular,jeweler,intellectually,inquiries,indulging,indestructible,indebted,imitate,ignores,hyperventilating,hyenas,hurrying,hermano,hellish,heheh,harshly,handout,grunemann,glances,giveaway,getup,gerome,furthest,frosting,frail,forwarded,forceful,flavored,flammable,flaky,fingered,fatherly,ethic,embezzlement,duffel,dotted,distressed,disobey,disappearances,dinky,diminish,diaphragm,deuces,creme,courteous,comforts,coerced,clots,clarification,chunks,chickie,chases,chaperoning,cartons,caper,calves,caged,bustin,bulging,bringin,boomhauer,blowin,blindfolded,biscotti,ballplayer,bagging,auster,assurances,aschen,arraigned,anonymity,alters,albatross,agreeable,adoring,abduct,wolfi,weirded,watchers,washroom,warheads,vincennes,urgency,understandably,uncomplicated,uhhhh,twitching,treadmill,thermos,tenorman,tangle,talkative,swarm,surrendering,summoning,strive,stilts,stickers,squashed,spraying,sparring,soaring,snort,sneezed,slaps,skanky,singin,sidle,shreck,shortness,shorthand,sharper,shamed,sadist,rydell,rusik,roulette,resumes,respiration,recount,reacts,purgatory,princesses,presentable,ponytail,plotted,pinot,pigtails,phillippe,peddling,paroled,orbed,offends,o'hara,moonlit,minefield,metaphors,malignant,mainframe,magicks,maggots,maclaine,loathing,leper,leaps,leaping,lashed,larch,larceny,lapses,ladyship,juncture,jiffy,jakov,invoke,infantile,inadmissible,horoscope,hinting,hideaway,hesitating,heddy,heckles,hairline,gripe,gratifying,governess,goebbels,freddo,foresee,fascination,exemplary,executioner,etcetera,escorts,endearing,eaters,earplugs,draped,disrupting,disagrees,dimes,devastate,detain,depositions,delicacy,darklighter,cynicism,cyanide,cutters,cronus,continuance,conquering,confiding,compartments,combing,cofell,clingy,cleanse,christmases,cheered,cheekbones,buttle,burdened,bruenell,broomstick,brained,bozos,bontecou,bluntman,blazes,blameless,bizarro,bellboy,beaucoup,barkeep,awaken,astray,assailant,appease,aphrodisiac,alleys,yesss,wrecks,woodpecker,wondrous,wimpy,willpower,wheeling,weepy,waxing,waive,videotaped,veritable,untouched,unlisted,unfounded,unforeseen,twinge,triggers,traipsing,toxin,tombstone,thumping,therein,testicles,telephones,tarmac,talby,tackled,swirling,suicides,suckered,subtitles,sturdy,strangler,stockbroker,stitching,steered,standup,squeal,sprinkler,spontaneously,splendor,spiking,spender,snipe,snagged,skimming,siddown,showroom,shovels,shotguns,shoelaces,shitload,shellfish,sharpest,shadowy,seizing,scrounge,scapegoat,sayonara,saddled,rummaging,roomful,renounce,reconsidered,recharge,realistically,radioed,quirks,quadrant,punctual,practising,pours,poolhouse,poltergeist,pocketbook,plainly,picnics,pesto,pawing,passageway,partied,oneself,numero,nostalgia,nitwit,neuro,mixer,meanest,mcbeal,matinee,margate,marce,manipulations,manhunt,manger,magicians,loafers,litvack,lightheaded,lifeguard,lawns,laughingstock,ingested,indignation,inconceivable,imposition,impersonal,imbecile,huddled,housewarming,horizons,homicides,hiccups,hearse,hardened,gushing,gushie,greased,goddamit,freelancer,forging,fondue,flustered,flung,flinch,flicker,fixin,festivus,fertilizer,farted,faggots,exonerate,evict,enormously,encrypted,emdash,embracing,duress,dupres,dowser,doormat,disfigured,disciplined,dibbs,depository,deathbed,dazzled,cuttin,cures,crowding,crepe,crammed,copycat,contradict,confidant,condemning,conceited,commute,comatose,clapping,circumference,chuppah,chore,choksondik,chestnuts,briault,bottomless,bonnet,blokes,berluti,beret,beggars,bankroll,bania,athos,arsenic,apperantly,ahhhhhh,afloat,accents,zipped,zeros,zeroes,zamir,yuppie,youngsters,yorkers,wisest,wipes,wield,whyn't,weirdos,wednesdays,vicksburg,upchuck,untraceable,unsupervised,unpleasantness,unhook,unconscionable,uncalled,trappings,tragedies,townie,thurgood,things'll,thine,tetanus,terrorize,temptations,tanning,tampons,swarming,straitjacket,steroid,startling,starry,squander,speculating,sollozzo,sneaked,slugs,skedaddle,sinker,silky,shortcomings,sellin,seasoned,scrubbed,screwup,scrapes,scarves,sandbox,salesmen,rooming,romances,revere,reproach,reprieve,rearranging,ravine,rationalize,raffle,punchy,psychobabble,provocation,profoundly,prescriptions,preferable,polishing,poached,pledges,pirelli,perverts,oversized,overdressed,outdid,nuptials,nefarious,mouthpiece,motels,mopping,mongrel,missin,metaphorically,mertin,memos,melodrama,melancholy,measles,meaner,mantel,maneuvering,mailroom,luring,listenin,lifeless,licks,levon,legwork,kneecaps,kippur,kiddie,kaput,justifiable,insistent,insidious,innuendo,innit,indecent,imaginable,horseshit,hemorrhoid,hella,healthiest,haywire,hamsters,hairbrush,grouchy,grisly,gratuitous,glutton,glimmer,gibberish,ghastly,gentler,generously,geeky,fuhrer,fronting,foolin,faxes,faceless,extinguisher,expel,etched,endangering,ducked,dodgeball,dives,dislocated,discrepancy,devour,derail,dementia,daycare,cynic,crumbling,cowardice,covet,cornwallis,corkscrew,cookbook,commandments,coincidental,cobwebs,clouded,clogging,clicking,clasp,chopsticks,chefs,chaps,cashing,carat,calmer,brazen,brainwashing,bradys,bowing,boned,bloodsucking,bleachers,bleached,bedpan,bearded,barrenger,bachelors,awwww,assures,assigning,asparagus,apprehend,anecdote,amoral,aggravation,afoot,acquaintances,accommodating,yakking,worshipping,wladek,willya,willies,wigged,whoosh,whisked,watered,warpath,volts,violates,valuables,uphill,unwise,untimely,unsavory,unresponsive,unpunished,unexplained,tubby,trolling,toxicology,tormented,toothache,tingly,timmiihh,thursdays,thoreau,terrifies,temperamental,telegrams,talkie,takers,symbiote,swirl,suffocate,stupider,strapping,steckler,springing,someway,sleepyhead,sledgehammer,slant,slams,showgirl,shoveling,shmoopy,sharkbait,shan't,scrambling,schematics,sandeman,sabbatical,rummy,reykjavik,revert,responsive,rescheduled,requisition,relinquish,rejoice,reckoning,recant,rebadow,reassurance,rattlesnake,ramble,primed,pricey,prance,pothole,pocus,persist,perpetrated,pekar,peeling,pastime,parmesan,pacemaker,overdrive,ominous,observant,nothings,noooooo,nonexistent,nodded,nieces,neglecting,nauseating,mutated,musket,mumbling,mowing,mouthful,mooseport,monologue,mistrust,meetin,masseuse,mantini,mailer,madre,lowlifes,locksmith,livid,liven,limos,liberating,lhasa,leniency,leering,laughable,lashes,lasagne,laceration,korben,katan,kalen,jittery,jammies,irreplaceable,intubate,intolerant,inhaler,inhaled,indifferent,indifference,impound,impolite,humbly,heroics,heigh,guillotine,guesthouse,grounding,grips,gossiping,goatee,gnomes,gellar,frutt,frobisher,freudian,foolishness,flagged,femme,fatso,fatherhood,fantasized,fairest,faintest,eyelids,extravagant,extraterrestrial,extraordinarily,escalator,elevate,drivel,dissed,dismal,disarray,dinnertime,devastation,dermatologist,delicately,defrost,debutante,debacle,damone,dainty,cuvee,culpa,crucified,creeped,crayons,courtship,convene,congresswoman,concocted,compromises,comprende,comma,coleslaw,clothed,clinically,chickenshit,checkin,cesspool,caskets,calzone,brothel,boomerang,bodega,blasphemy,bitsy,bicentennial,berlini,beatin,beards,barbas,barbarians,backpacking,arrhythmia,arousing,arbitrator,antagonize,angling,anesthetic,altercation,aggressor,adversity,acathla,aaahhh,wreaking,workup,wonderin,wither,wielding,what'm,what'cha,waxed,vibrating,veterinarian,venting,vasey,valor,validate,upholstery,untied,unscathed,uninterrupted,unforgiving,undies,uncut,twinkies,tucking,treatable,treasured,tranquility,townspeople,torso,tomei,tipsy,tinsel,tidings,thirtieth,tantrums,tamper,talky,swayed,swapping,suitor,stylist,stirs,standoff,sprinklers,sparkly,snobby,snatcher,smoother,sleepin,shrug,shoebox,sheesh,shackles,setbacks,sedatives,screeching,scorched,scanned,satyr,roadblock,riverbank,ridiculed,resentful,repellent,recreate,reconvene,rebuttal,realmedia,quizzes,questionnaire,punctured,pucker,prolong,professionalism,pleasantly,pigsty,penniless,paychecks,patiently,parading,overactive,ovaries,orderlies,oracles,oiled,offending,nudie,neonatal,neighborly,moops,moonlighting,mobilize,mmmmmm,milkshake,menial,meats,mayan,maxed,mangled,magua,lunacy,luckier,liters,lansbury,kooky,knowin,jeopardized,inkling,inhalation,inflated,infecting,incense,inbound,impractical,impenetrable,idealistic,i'mma,hypocrites,hurtin,humbled,hologram,hokey,hocus,hitchhiking,hemorrhoids,headhunter,hassled,harts,hardworking,haircuts,hacksaw,genitals,gazillion,gammy,gamesphere,fugue,footwear,folly,flashlights,fives,filet,extenuating,estrogen,entails,embezzled,eloquent,egomaniac,ducts,drowsy,drones,doree,donovon,disguises,diggin,deserting,depriving,defying,deductible,decorum,decked,daylights,daybreak,dashboard,damnation,cuddling,crunching,crickets,crazies,councilman,coughed,conundrum,complimented,cohaagen,clutching,clued,clader,cheques,checkpoint,chats,channeling,ceases,carasco,capisce,cantaloupe,cancelling,campsite,burglars,breakfasts,bra'tac,blueprint,bleedin,blabbed,beneficiary,basing,avert,atone,arlyn,approves,apothecary,antiseptic,aleikuum,advisement,zadir,wobbly,withnail,whattaya,whacking,wedged,wanders,vaginal,unimaginable,undeniable,unconditionally,uncharted,unbridled,tweezers,tvmegasite,trumped,triumphant,trimming,treading,tranquilizers,toontown,thunk,suture,suppressing,strays,stonewall,stogie,stepdaughter,stace,squint,spouses,splashed,speakin,sounder,sorrier,sorrel,sombrero,solemnly,softened,snobs,snippy,snare,smoothing,slump,slimeball,slaving,silently,shiller,shakedown,sensations,scrying,scrumptious,screamin,saucy,santoses,roundup,roughed,rosary,robechaux,retrospect,rescind,reprehensible,repel,remodeling,reconsidering,reciprocate,railroaded,psychics,promos,prob'ly,pristine,printout,priestess,prenuptial,precedes,pouty,phoning,peppy,pariah,parched,panes,overloaded,overdoing,nymphs,nother,notebooks,nearing,nearer,monstrosity,milady,mieke,mephesto,medicated,marshals,manilow,mammogram,m'lady,lotsa,loopy,lesion,lenient,learner,laszlo,kross,kinks,jinxed,involuntary,insubordination,ingrate,inflatable,incarnate,inane,hypoglycemia,huntin,humongous,hoodlum,honking,hemorrhage,helpin,hathor,hatching,grotto,grandmama,gorillas,godless,girlish,ghouls,gershwin,frosted,flutter,flagpole,fetching,fatter,faithfully,exert,evasion,escalate,enticing,enchantress,elopement,drills,downtime,downloading,dorks,doorways,divulge,dissociative,disgraceful,disconcerting,deteriorate,destinies,depressive,dented,denim,decruz,decidedly,deactivate,daydreams,curls,culprit,cruelest,crippling,cranberries,corvis,copped,commend,coastguard,cloning,cirque,churning,chock,chivalry,catalogues,cartwheels,carols,canister,buttered,bundt,buljanoff,bubbling,brokers,broaden,brimstone,brainless,bores,badmouthing,autopilot,ascertain,aorta,ampata,allenby,accosted,absolve,aborted,aaagh,aaaaaah,yonder,yellin,wyndham,wrongdoing,woodsboro,wigging,wasteland,warranty,waltzed,walnuts,vividly,veggie,unnecessarily,unloaded,unicorns,understated,unclean,umbrellas,twirling,turpentine,tupperware,triage,treehouse,tidbit,tickled,threes,thousandth,thingie,terminally,teething,tassel,talkies,swoon,switchboard,swerved,suspiciously,subsequentlyne,subscribe,strudel,stroking,strictest,stensland,starin,stannart,squirming,squealing,sorely,softie,snookums,sniveling,smidge,sloth,skulking,simian,sightseeing,siamese,shudder,shoppers,sharpen,shannen,semtex,secondhand,seance,scowl,scorn,safekeeping,russe,rummage,roshman,roomies,roaches,rinds,retrace,retires,resuscitate,rerun,reputations,rekall,refreshment,reenactment,recluse,ravioli,raves,raking,purses,punishable,punchline,puked,prosky,previews,poughkeepsie,poppins,polluted,placenta,pissy,petulant,perseverance,pears,pawns,pastries,partake,panky,palate,overzealous,orchids,obstructing,objectively,obituaries,obedient,nothingness,musty,motherly,mooning,momentous,mistaking,minutemen,milos,microchip,meself,merciless,menelaus,mazel,masturbate,mahogany,lysistrata,lillienfield,likable,liberate,leveled,letdown,larynx,lardass,lainey,lagged,klorel,kidnappings,keyed,karmic,jeebies,irate,invulnerable,intrusive,insemination,inquire,injecting,informative,informants,impure,impasse,imbalance,illiterate,hurled,hunts,hematoma,headstrong,handmade,handiwork,growling,gorky,getcha,gesundheit,gazing,galley,foolishly,fondness,floris,ferocious,feathered,fateful,fancies,fakes,faker,expire,ever'body,essentials,eskimos,enlightening,enchilada,emissary,embolism,elsinore,ecklie,drenched,drazi,doped,dogging,doable,dislikes,dishonesty,disengage,discouraging,derailed,deformed,deflect,defer,deactivated,crips,constellations,congressmen,complimenting,clubbing,clawing,chromium,chimes,chews,cheatin,chaste,cellblock,caving,catered,catacombs,calamari,bucking,brulee,brits,brisk,breezes,bounces,boudoir,binks,better'n,bellied,behrani,behaves,bedding,balmy,badmouth,backers,avenging,aromatherapy,armpit,armoire,anythin,anonymously,anniversaries,aftershave,affliction,adrift,admissible,adieu,acquittal,yucky,yearn,whitter,whirlpool,wendigo,watchdog,wannabes,wakey,vomited,voicemail,valedictorian,uttered,unwed,unrequited,unnoticed,unnerving,unkind,unjust,uniformed,unconfirmed,unadulterated,unaccounted,uglier,turnoff,trampled,tramell,toads,timbuktu,throwback,thimble,tasteless,tarantula,tamale,takeovers,swish,supposing,streaking,stargher,stanzi,stabs,squeamish,splattered,spiritually,spilt,speciality,smacking,skywire,skips,skaara,simpatico,shredding,showin,shortcuts,shite,shielding,shamelessly,serafine,sentimentality,seasick,schemer,scandalous,sainted,riedenschneider,rhyming,revel,retractor,retards,resurrect,remiss,reminiscing,remanded,reiben,regains,refuel,refresher,redoing,redheaded,reassured,rearranged,rapport,qumar,prowling,prejudices,precarious,powwow,pondering,plunger,plunged,pleasantville,playpen,phlegm,perfected,pancreas,paley,ovary,outbursts,oppressed,ooohhh,omoroca,offed,o'toole,nurture,nursemaid,nosebleed,necktie,muttering,munchies,mucking,mogul,mitosis,misdemeanor,miscarried,millionth,migraines,midler,manicurist,mandelbaum,manageable,malfunctioned,magnanimous,loudmouth,longed,lifestyles,liddy,lickety,leprechauns,komako,klute,kennel,justifying,irreversible,inventing,intergalactic,insinuate,inquiring,ingenuity,inconclusive,incessant,improv,impersonation,hyena,humperdinck,hubba,housework,hoffa,hither,hissy,hippy,hijacked,heparin,hellooo,hearth,hassles,hairstyle,hahahaha,hadda,guys'll,gutted,gulls,gritty,grievous,graft,gossamer,gooder,gambled,gadgets,fundamentals,frustrations,frolicking,frock,frilly,foreseen,footloose,fondly,flirtation,flinched,flatten,farthest,exposer,evading,escrow,empathize,embryos,embodiment,ellsberg,ebola,dulcinea,dreamin,drawbacks,doting,doose,doofy,disturbs,disorderly,disgusts,detox,denominator,demeanor,deliriously,decode,debauchery,croissant,cravings,cranked,coworkers,councilor,confuses,confiscate,confines,conduit,compress,combed,clouding,clamps,cinch,chinnery,celebratory,catalogs,carpenters,carnal,canin,bundys,bulldozer,buggers,bueller,brainy,booming,bookstores,bloodbath,bittersweet,bellhop,beeping,beanstalk,beady,baudelaire,bartenders,bargains,averted,armadillo,appreciating,appraised,antlers,aloof,allowances,alleyway,affleck,abject,zilch,youore,xanax,wrenching,wouldn,witted,wicca,whorehouse,whooo,whips,vouchers,victimized,vicodin,untested,unsolicited,unfocused,unfettered,unfeeling,unexplainable,understaffed,underbelly,tutorial,tryst,trampoline,towering,tirade,thieving,thang,swimmin,swayzak,suspecting,superstitions,stubbornness,streamers,strattman,stonewalling,stiffs,stacking,spout,splice,sonrisa,smarmy,slows,slicing,sisterly,shrill,shined,seeming,sedley,seatbelts,scour,scold,schoolyard,scarring,salieri,rustling,roxbury,rewire,revved,retriever,reputable,remodel,reins,reincarnation,rance,rafters,rackets,quail,pumbaa,proclaim,probing,privates,pried,prewedding,premeditation,posturing,posterity,pleasurable,pizzeria,pimps,penmanship,penchant,pelvis,overturn,overstepped,overcoat,ovens,outsmart,outed,ooohh,oncologist,omission,offhand,odour,nyazian,notarized,nobody'll,nightie,navel,nabbed,mystique,mover,mortician,morose,moratorium,mockingbird,mobsters,mingling,methinks,messengered,merde,masochist,martouf,martians,marinara,manray,majorly,magnifying,mackerel,lurid,lugging,lonnegan,loathsome,llantano,liberace,leprosy,latinos,lanterns,lamest,laferette,kraut,intestine,innocencia,inhibitions,ineffectual,indisposed,incurable,inconvenienced,inanimate,improbable,implode,hydrant,hustling,hustled,huevos,how'm,hooey,hoods,honcho,hinge,hijack,heimlich,hamunaptra,haladki,haiku,haggle,gutsy,grunting,grueling,gribbs,greevy,grandstanding,godparents,glows,glistening,gimmick,gaping,fraiser,formalities,foreigner,folders,foggy,fitty,fiends,fe'nos,favours,eyeing,extort,expedite,escalating,epinephrine,entitles,entice,eminence,eights,earthlings,eagerly,dunville,dugout,doublemeat,doling,dispensing,dispatcher,discoloration,diners,diddly,dictates,diazepam,derogatory,delights,defies,decoder,dealio,danson,cutthroat,crumbles,croissants,crematorium,craftsmanship,could'a,cordless,cools,conked,confine,concealing,complicates,communique,cockamamie,coasters,clobbered,clipping,clipboard,clemenza,cleanser,circumcision,chanukah,certainaly,cellmate,cancels,cadmium,buzzed,bumstead,bucko,browsing,broth,braver,boggling,bobbing,blurred,birkhead,benet,belvedere,bellies,begrudge,beckworth,banky,baldness,baggy,babysitters,aversion,astonished,assorted,appetites,angina,amiss,ambulances,alibis,airway,admires,adhesive,yoyou,xxxxxx,wreaked,wracking,woooo,wooing,wised,wilshire,wedgie,waging,violets,vincey,uplifting,untrustworthy,unmitigated,uneventful,undressing,underprivileged,unburden,umbilical,tweaking,turquoise,treachery,tosses,torching,toothpick,toasts,thickens,tereza,tenacious,teldar,taint,swill,sweatin,subtly,subdural,streep,stopwatch,stockholder,stillwater,stalkers,squished,squeegee,splinters,spliced,splat,spied,spackle,sophistication,snapshots,smite,sluggish,slithered,skeeters,sidewalks,sickly,shrugs,shrubbery,shrieking,shitless,settin,sentinels,selfishly,scarcely,sangria,sanctum,sahjhan,rustle,roving,rousing,rosomorf,riddled,responsibly,renoir,remoray,remedial,refundable,redirect,recheck,ravenwood,rationalizing,ramus,ramelle,quivering,pyjamas,psychos,provocations,prouder,protestors,prodded,proctologist,primordial,pricks,prickly,precedents,pentangeli,pathetically,parka,parakeet,panicky,overthruster,outsmarted,orthopedic,oncoming,offing,nutritious,nuthouse,nourishment,nibbling,newlywed,narcissist,mutilation,mundane,mummies,mumble,mowed,morvern,mortem,mopes,molasses,misplace,miscommunication,miney,midlife,menacing,memorizing,massaging,masking,magnets,luxuries,lounging,lothario,liposuction,lidocaine,libbets,levitate,leeway,launcelot,larek,lackeys,kumbaya,kryptonite,knapsack,keyhole,katarangura,juiced,jakey,ironclad,invoice,intertwined,interlude,interferes,injure,infernal,indeedy,incur,incorrigible,incantations,impediment,igloo,hysterectomy,hounded,hollering,hindsight,heebie,havesham,hasenfuss,hankering,hangers,hakuna,gutless,gusto,grubbing,grrrr,grazed,gratification,grandeur,gorak,godammit,gnawing,glanced,frostbite,frees,frazzled,fraulein,fraternizing,fortuneteller,formaldehyde,followup,foggiest,flunky,flickering,firecrackers,figger,fetuses,fates,eyeliner,extremities,extradited,expires,exceedingly,evaporate,erupt,epileptic,entrails,emporium,egregious,eggshells,easing,duwayne,droll,dreyfuss,dovey,doubly,doozy,donkeys,donde,distrust,distressing,disintegrate,discreetly,decapitated,dealin,deader,dashed,darkroom,dares,daddies,dabble,cushy,cupcakes,cuffed,croupier,croak,crapped,coursing,coolers,contaminate,consummated,construed,condos,concoction,compulsion,commish,coercion,clemency,clairvoyant,circulate,chesterton,checkered,charlatan,chaperones,categorically,cataracts,carano,capsules,capitalize,burdon,bullshitting,brewed,breathless,breasted,brainstorming,bossing,borealis,bonsoir,bobka,boast,blimp,bleep,bleeder,blackouts,bisque,billboards,beatings,bayberry,bashed,bamboozled,balding,baklava,baffled,backfires,babak,awkwardness,attest,attachments,apologizes,anyhoo,antiquated,alcante,advisable,aahhh,aaahh,zatarc,yearbooks,wuddya,wringing,womanhood,witless,winging,whatsa,wetting,waterproof,wastin,vogelman,vocation,vindicated,vigilance,vicariously,venza,vacuuming,utensils,uplink,unveil,unloved,unloading,uninhibited,unattached,tweaked,turnips,trinkets,toughen,toting,topside,terrors,terrify,technologically,tarnish,tagliati,szpilman,surly,supple,summation,suckin,stepmom,squeaking,splashmore,souffle,solitaire,solicitation,solarium,smokers,slugged,slobbering,skylight,skimpy,sinuses,silenced,sideburns,shrinkage,shoddy,shhhhhh,shelled,shareef,shangri,seuss,serenade,scuffle,scoff,scanners,sauerkraut,sardines,sarcophagus,salvy,rusted,russells,rowboat,rolfsky,ringside,respectability,reparations,renegotiate,reminisce,reimburse,regimen,raincoat,quibble,puzzled,purposefully,pubic,proofing,prescribing,prelim,poisons,poaching,personalized,personable,peroxide,pentonville,payphone,payoffs,paleontology,overflowing,oompa,oddest,objecting,o'hare,o'daniel,notches,nobody'd,nightstand,neutralized,nervousness,nerdy,needlessly,naquadah,nappy,nantucket,nambla,mountaineer,motherfuckin,morrie,monopolizing,mohel,mistreated,misreading,misbehave,miramax,minivan,milligram,milkshakes,metamorphosis,medics,mattresses,mathesar,matchbook,matata,marys,malucci,magilla,lymphoma,lowers,lordy,linens,lindenmeyer,limelight,leapt,laxative,lather,lapel,lamppost,laguardia,kindling,kegger,kawalsky,juries,jokin,jesminder,interning,innermost,injun,infallible,industrious,indulgence,incinerator,impossibility,impart,illuminate,iguanas,hypnotic,hyped,hospitable,hoses,homemaker,hirschmuller,helpers,headset,guardianship,guapo,grubby,granola,granddaddy,goren,goblet,gluttony,globes,giorno,getter,geritol,gassed,gaggle,foxhole,fouled,foretold,floorboards,flippers,flaked,fireflies,feedings,fashionably,farragut,fallback,facials,exterminate,excites,everything'll,evenin,ethically,ensue,enema,empath,eluded,eloquently,eject,edema,dumpling,droppings,dolled,distasteful,disputing,displeasure,disdain,deterrent,dehydration,defied,decomposing,dawned,dailies,custodian,crusts,crucifix,crowning,crier,crept,craze,crawls,couldn,correcting,corkmaster,copperfield,cooties,contraption,consumes,conspire,consenting,consented,conquers,congeniality,complains,communicator,commendable,collide,coladas,colada,clout,clooney,classifieds,clammy,civility,cirrhosis,chink,catskills,carvers,carpool,carelessness,cardio,carbs,capades,butabi,busmalis,burping,burdens,bunks,buncha,bulldozers,browse,brockovich,breakthroughs,bravado,boogety,blossoms,blooming,bloodsucker,blight,betterton,betrayer,belittle,beeps,bawling,barts,bartending,bankbooks,babish,atropine,assertive,armbrust,anyanka,annoyance,anemic,anago,airwaves,aimlessly,aaargh,aaand,yoghurt,writhing,workable,winking,winded,widen,whooping,whiter,whatya,wazoo,voila,virile,vests,vestibule,versed,vanishes,urkel,uproot,unwarranted,unscheduled,unparalleled,undergrad,tweedle,turtleneck,turban,trickery,transponder,toyed,townhouse,thyself,thunderstorm,thinning,thawed,tether,technicalities,tau'ri,tarnished,taffeta,tacked,systolic,swerve,sweepstakes,swabs,suspenders,superwoman,sunsets,succulent,subpoenas,stumper,stosh,stomachache,stewed,steppin,stepatech,stateside,spicoli,sparing,soulless,sonnets,sockets,snatching,smothering,slush,sloman,slashing,sitters,simpleton,sighs,sidra,sickens,shunned,shrunken,showbiz,shopped,shimmering,shagging,semblance,segue,sedation,scuzzlebutt,scumbags,screwin,scoundrels,scarsdale,scabs,saucers,saintly,saddened,runaways,runaround,rheya,resenting,rehashing,rehabilitated,regrettable,refreshed,redial,reconnecting,ravenous,raping,rafting,quandary,pylea,putrid,puffing,psychopathic,prunes,probate,prayin,pomegranate,plummeting,planing,plagues,pinata,pithy,perversion,personals,perched,peeps,peckish,pavarotti,pajama,packin,pacifier,overstepping,okama,obstetrician,nutso,nuance,normalcy,nonnegotiable,nomak,ninny,nines,nicey,newsflash,neutered,nether,negligee,necrosis,navigating,narcissistic,mylie,muses,momento,moisturizer,moderation,misinformed,misconception,minnifield,mikkos,methodical,mebbe,meager,maybes,matchmaking,masry,markovic,malakai,luzhin,lusting,lumberjack,loopholes,loaning,lightening,leotard,launder,lamaze,kubla,kneeling,kibosh,jumpsuit,joliet,jogger,janover,jakovasaurs,irreparable,innocently,inigo,infomercial,inexplicable,indispensable,impregnated,impossibly,imitating,hunches,hummus,houmfort,hothead,hostiles,hooves,hooligans,homos,homie,hisself,heyyy,hesitant,hangout,handsomest,handouts,hairless,gwennie,guzzling,guinevere,grungy,goading,glaring,gavel,gardino,gangrene,fruitful,friendlier,freckle,freakish,forthright,forearm,footnote,flops,fixer,firecracker,finito,figgered,fezzik,fastened,farfetched,fanciful,familiarize,faire,fahrenheit,extravaganza,exploratory,explanatory,everglades,eunuch,estas,escapade,erasers,emptying,embarassing,dweeb,dutiful,dumplings,dries,drafty,dollhouse,dismissing,disgraced,discrepancies,disbelief,disagreeing,digestion,didnt,deviled,deviated,demerol,delectable,decaying,decadent,dears,dateless,d'algout,cultivating,cryto,crumpled,crumbled,cronies,crease,craves,cozying,corduroy,congratulated,confidante,compressions,complicating,compadre,coerce,classier,chums,chumash,chivalrous,chinpoko,charred,chafing,celibacy,carted,carryin,carpeting,carotid,cannibals,candor,butterscotch,busts,busier,bullcrap,buggin,brookside,brodski,brassiere,brainwash,brainiac,botrelle,bonbon,boatload,blimey,blaring,blackness,bipartisan,bimbos,bigamist,biebe,biding,betrayals,bestow,bellerophon,bedpans,bassinet,basking,barzini,barnyard,barfed,backups,audited,asinine,asalaam,arouse,applejack,annoys,anchovies,ampule,alameida,aggravate,adage,accomplices,yokel,y'ever,wringer,witwer,withdrawals,windward,willfully,whorfin,whimsical,whimpering,weddin,weathered,warmest,wanton,volant,visceral,vindication,veggies,urinate,uproar,unwritten,unwrap,unsung,unsubstantiated,unspeakably,unscrupulous,unraveling,unquote,unqualified,unfulfilled,undetectable,underlined,unattainable,unappreciated,ummmm,ulcers,tylenol,tweak,turnin,tuatha,tropez,trellis,toppings,tootin,toodle,tinkering,thrives,thespis,theatrics,thatherton,tempers,tavington,tartar,tampon,swelled,sutures,sustenance,sunflowers,sublet,stubbins,strutting,strewn,stowaway,stoic,sternin,stabilizing,spiraling,spinster,speedometer,speakeasy,soooo,soiled,sneakin,smithereens,smelt,smacks,slaughterhouse,slacks,skids,sketching,skateboards,sizzling,sixes,sirree,simplistic,shouts,shorted,shoelace,sheeit,shards,shackled,sequestered,selmak,seduces,seclusion,seamstress,seabeas,scoops,scooped,scavenger,satch,s'more,rudeness,romancing,rioja,rifkin,rieper,revise,reunions,repugnant,replicating,repaid,renewing,relaxes,rekindle,regrettably,regenerate,reels,reciting,reappear,readin,ratting,rapes,rancher,rammed,rainstorm,railroading,queers,punxsutawney,punishes,pssst,prudy,proudest,protectors,procrastinating,proactive,priss,postmortem,pompoms,poise,pickings,perfectionist,peretti,people'll,pecking,patrolman,paralegal,paragraphs,paparazzi,pankot,pampering,overstep,overpower,outweigh,omnipotent,odious,nuwanda,nurtured,newsroom,neeson,needlepoint,necklaces,neato,muggers,muffler,mousy,mourned,mosey,mopey,mongolians,moldy,misinterpret,minibar,microfilm,mendola,mended,melissande,masturbating,masbath,manipulates,maimed,mailboxes,magnetism,m'lord,m'honey,lymph,lunge,lovelier,lefferts,leezak,ledgers,larraby,laloosh,kundun,kozinski,knockoff,kissin,kiosk,kennedys,kellman,karlo,kaleidoscope,jeffy,jaywalking,instructing,infraction,informer,infarction,impulsively,impressing,impersonated,impeach,idiocy,hyperbole,hurray,humped,huhuh,hsing,hordes,hoodlums,honky,hitchhiker,hideously,heaving,heathcliff,headgear,headboard,hazing,harem,handprint,hairspray,gutiurrez,goosebumps,gondola,glitches,gasping,frolic,freeways,frayed,fortitude,forgetful,forefathers,fonder,foiled,foaming,flossing,flailing,fitzgeralds,firehouse,finders,fiftieth,fellah,fawning,farquaad,faraway,fancied,extremists,exorcist,exhale,ethros,entrust,ennui,energized,encephalitis,embezzling,elster,elixir,electrolytes,duplex,dryers,drexl,dredging,drawback,don'ts,dobisch,divorcee,disrespected,disprove,disobeying,disinfectant,dingy,digress,dieting,dictating,devoured,devise,detonators,desist,deserter,derriere,deron,deceptive,debilitating,deathwok,daffodils,curtsy,cursory,cuppa,cumin,cronkite,cremation,credence,cranking,coverup,courted,countin,counselling,cornball,contentment,consensual,compost,cluett,cleverly,cleansed,cleanliness,chopec,chomp,chins,chime,cheswick,chessler,cheapest,chatted,cauliflower,catharsis,catchin,caress,camcorder,calorie,cackling,bystanders,buttoned,buttering,butted,buries,burgel,buffoon,brogna,bragged,boutros,bogeyman,blurting,blurb,blowup,bloodhound,blissful,birthmark,bigot,bestest,belted,belligerent,beggin,befall,beeswax,beatnik,beaming,barricade,baggoli,badness,awoke,artsy,artful,aroun,armpits,arming,annihilate,anise,angiogram,anaesthetic,amorous,ambiance,alligators,adoration,admittance,adama,abydos,zonked,zhivago,yorkin,wrongfully,writin,wrappers,worrywart,woops,wonderfalls,womanly,wickedness,whoopie,wholeheartedly,whimper,which'll,wheelchairs,what'ya,warranted,wallop,wading,wacked,virginal,vermouth,vermeil,verger,ventriss,veneer,vampira,utero,ushers,urgently,untoward,unshakable,unsettled,unruly,unlocks,ungodly,undue,uncooperative,uncontrollably,unbeatable,twitchy,tumbler,truest,triumphs,triplicate,tribbey,tortures,tongaree,tightening,thorazine,theres,testifies,teenaged,tearful,taxing,taldor,syllabus,swoops,swingin,suspending,sunburn,stuttering,stupor,strides,strategize,strangulation,stooped,stipulation,stingy,stapled,squeaks,squawking,spoilsport,splicing,spiel,spencers,spasms,spaniard,softener,sodding,soapbox,smoldering,smithbauer,skittish,sifting,sickest,sicilians,shuffling,shrivel,segretti,seeping,securely,scurrying,scrunch,scrote,screwups,schenkman,sawing,savin,satine,sapiens,salvaging,salmonella,sacrilege,rumpus,ruffle,roughing,rotted,rondall,ridding,rickshaw,rialto,rhinestone,restrooms,reroute,requisite,repress,rednecks,redeeming,rayed,ravell,raked,raincheck,raffi,racked,pushin,profess,prodding,procure,presuming,preppy,prednisone,potted,posttraumatic,poorhouse,podiatrist,plowed,pledging,playroom,plait,placate,pinback,picketing,photographing,pharoah,petrak,petal,persecuting,perchance,pellets,peeved,peerless,payable,pauses,pathologist,pagliacci,overwrought,overreaction,overqualified,overheated,outcasts,otherworldly,opinionated,oodles,oftentimes,occured,obstinate,nutritionist,numbness,nubile,nooooooo,nobodies,nepotism,neanderthals,mushu,mucus,mothering,mothballs,monogrammed,molesting,misspoke,misspelled,misconstrued,miscalculated,minimums,mince,mildew,mighta,middleman,mementos,mellowed,mayol,mauled,massaged,marmalade,mardi,makings,lundegaard,lovingly,loudest,lotto,loosing,loompa,looming,longs,loathes,littlest,littering,lifelike,legalities,laundered,lapdog,lacerations,kopalski,knobs,knitted,kittridge,kidnaps,kerosene,karras,jungles,jockeys,iranoff,invoices,invigorating,insolence,insincere,insectopia,inhumane,inhaling,ingrates,infestation,individuality,indeterminate,incomprehensible,inadequacy,impropriety,importer,imaginations,illuminating,ignite,hysterics,hypodermic,hyperventilate,hyperactive,humoring,honeymooning,honed,hoist,hoarding,hitching,hiker,hightail,hemoglobin,hell'd,heinie,growin,grasped,grandparent,granddaughters,gouged,goblins,gleam,glades,gigantor,get'em,geriatric,gatekeeper,gargoyles,gardenias,garcon,garbo,gallows,gabbing,futon,fulla,frightful,freshener,fortuitous,forceps,fogged,fodder,foamy,flogging,flaun,flared,fireplaces,feverish,favell,fattest,fattening,fallow,extraordinaire,evacuating,errant,envied,enchant,enamored,egocentric,dussander,dunwitty,dullest,dropout,dredged,dorsia,doornail,donot,dongs,dogged,dodgy,ditty,dishonorable,discriminating,discontinue,dings,dilly,dictation,dialysis,delly,delightfully,daryll,dandruff,cruddy,croquet,cringe,crimp,credo,crackling,courtside,counteroffer,counterfeiting,corrupting,copping,conveyor,contusions,contusion,conspirator,consoling,connoisseur,confetti,composure,compel,colic,coddle,cocksuckers,coattails,cloned,claustrophobia,clamoring,churn,chugga,chirping,chasin,chapped,chalkboard,centimeter,caymans,catheter,casings,caprica,capelli,cannolis,cannoli,camogli,camembert,butchers,butchered,busboys,bureaucrats,buckled,bubbe,brownstone,bravely,brackley,bouquets,botox,boozing,boosters,bodhi,blunders,blunder,blockage,biocyte,betrays,bested,beryllium,beheading,beggar,begbie,beamed,bastille,barstool,barricades,barbecues,barbecued,bandwagon,backfiring,bacarra,avenged,autopsies,aunties,associating,artichoke,arrowhead,appendage,apostrophe,antacid,ansel,annul,amuses,amped,amicable,amberg,alluring,adversaries,admirers,adlai,acupuncture,abnormality,aaaahhhh,zooming,zippity,zipping,zeroed,yuletide,yoyodyne,yengeese,yeahhh,wrinkly,wracked,withered,winks,windmills,whopping,wendle,weigart,waterworks,waterbed,watchful,wantin,wagging,waaah,vying,ventricle,varnish,vacuumed,unreachable,unprovoked,unmistakable,unfriendly,unfolding,underpaid,uncuff,unappealing,unabomber,typhoid,tuxedos,tushie,turds,tumnus,troubadour,trinium,treaters,treads,transpired,transgression,tought,thready,thins,thinners,techs,teary,tattaglia,tassels,tarzana,tanking,tablecloths,synchronize,symptomatic,sycophant,swimmingly,sweatshop,surfboard,superpowers,sunroom,sunblock,sugarplum,stupidly,strumpet,strapless,stooping,stools,stealthy,stalks,stairmaster,staffer,sshhh,squatting,squatters,spectacularly,sorbet,socked,sociable,snubbed,snorting,sniffles,snazzy,snakebite,smuggler,smorgasbord,smooching,slurping,slouch,slingshot,slaved,skimmed,sisterhood,silliest,sidarthur,sheraton,shebang,sharpening,shanghaied,shakers,sendoff,scurvy,scoliosis,scaredy,scagnetti,sawchuk,saugus,sasquatch,sandbag,saltines,s'pose,roston,rostle,riveting,ristle,rifling,revulsion,reverently,retrograde,restful,resents,reptilian,reorganize,renovating,reiterate,reinvent,reinmar,reibers,reechard,recuse,reconciling,recognizance,reclaiming,recitation,recieved,rebate,reacquainted,rascals,railly,quintuplets,quahog,pygmies,puzzling,punctuality,prosthetic,proms,probie,preys,preserver,preppie,poachers,plummet,plumbers,plannin,pitying,pitfalls,piqued,pinecrest,pinches,pillage,pigheaded,physique,pessimistic,persecute,perjure,percentile,pentothal,pensky,penises,peini,pazzi,pastels,parlour,paperweight,pamper,pained,overwhelm,overalls,outrank,outpouring,outhouse,outage,ouija,obstructed,obsessions,obeying,obese,o'riley,o'higgins,nosebleeds,norad,noooooooo,nononono,nonchalant,nippy,neurosis,nekhorvich,necronomicon,naquada,n'est,mystik,mystified,mumps,muddle,mothership,moped,monumentally,monogamous,mondesi,misogynistic,misinterpreting,mindlock,mending,megaphone,meeny,medicating,meanie,masseur,markstrom,marklars,margueritas,manifesting,maharajah,lukewarm,loveliest,loran,lizardo,liquored,lipped,lingers,limey,lemkin,leisurely,lathe,latched,lapping,ladle,krevlorneswath,kosygin,khakis,kenaru,keats,kaitlan,julliard,jollies,jaundice,jargon,jackals,invisibility,insipid,inflamed,inferiority,inexperience,incinerated,incinerate,incendiary,incan,inbred,implicating,impersonator,hunks,horsing,hooded,hippopotamus,hiked,hetson,hetero,hessian,henslowe,hendler,hellstrom,headstone,hayloft,harbucks,handguns,hallucinate,haldol,haggling,gynaecologist,gulag,guilder,guaranteeing,groundskeeper,grindstone,grimoir,grievance,griddle,gribbit,greystone,graceland,gooders,goeth,gentlemanly,gelatin,gawking,ganged,fukes,fromby,frenchmen,foursome,forsley,forbids,footwork,foothold,floater,flinging,flicking,fittest,fistfight,fireballs,fillings,fiddling,fennyman,felonious,felonies,feces,favoritism,fatten,fanatics,faceman,excusing,excepted,entwined,entree,ensconced,eladio,ehrlichman,easterland,dueling,dribbling,drape,downtrodden,doused,dosed,dorleen,dokie,distort,displeased,disown,dismount,disinherited,disarmed,disapproves,diperna,dined,diligent,dicaprio,depress,decoded,debatable,dealey,darsh,damsels,damning,dad'll,d'oeuvre,curlers,curie,cubed,crikey,crepes,countrymen,cornfield,coppers,copilot,copier,cooing,conspiracies,consigliere,condoning,commoner,commies,combust,comas,colds,clawed,clamped,choosy,chomping,chimps,chigorin,chianti,cheep,checkups,cheaters,celibate,cautiously,cautionary,castell,carpentry,caroling,carjacking,caritas,caregiver,cardiology,candlesticks,canasta,cain't,burro,burnin,bunking,bumming,bullwinkle,brummel,brooms,brews,breathin,braslow,bracing,botulism,boorish,bloodless,blayne,blatantly,blankie,bedbugs,becuase,barmaid,bared,baracus,banal,bakes,backpacks,attentions,atrocious,ativan,athame,asunder,astound,assuring,aspirins,asphyxiation,ashtrays,aryans,arnon,apprehension,applauding,anvil,antiquing,antidepressants,annoyingly,amputate,altruistic,alotta,alerting,afterthought,affront,affirm,actuality,abysmal,absentee,yeller,yakushova,wuzzy,wriggle,worrier,woogyman,womanizer,windpipe,windbag,willin,whisking,whimsy,wendall,weeny,weensy,weasels,watery,watcha,wasteful,waski,washcloth,waaay,vouched,viznick,ventriloquist,vendettas,veils,vayhue,vamanos,vadimus,upstage,uppity,unsaid,unlocking,unintentionally,undetected,undecided,uncaring,unbearably,tween,tryout,trotting,trini,trimmings,trickier,treatin,treadstone,trashcan,transcendent,tramps,townsfolk,torturous,torrid,toothpicks,tolerable,tireless,tiptoeing,timmay,tillinghouse,tidying,tibia,thumbing,thrusters,thrashing,these'll,thatos,testicular,teriyaki,tenors,tenacity,tellers,telemetry,tarragon,switchblade,swicker,swells,sweatshirts,swatches,surging,supremely,sump'n,succumb,subsidize,stumbles,stuffs,stoppin,stipulate,stenographer,steamroll,stasis,stagger,squandered,splint,splendidly,splashy,splashing,specter,sorcerers,somewheres,somber,snuggled,snowmobile,sniffed,snags,smugglers,smudged,smirking,smearing,slings,sleet,sleepovers,sleek,slackers,siree,siphoning,singed,sincerest,sickened,shuffled,shriveled,shorthanded,shittin,shish,shipwrecked,shins,sheetrock,shawshank,shamu,sha're,servitude,sequins,seascape,scrapings,scoured,scorching,sandpaper,saluting,salud,ruffled,roughnecks,rougher,rosslyn,rosses,roost,roomy,romping,revolutionize,reprimanded,refute,refrigerated,reeled,redundancies,rectal,recklessly,receding,reassignment,reapers,readout,ration,raring,ramblings,raccoons,quarantined,purging,punters,psychically,premarital,pregnancies,predisposed,precautionary,pollute,podunk,plums,plaything,pixilated,pitting,piranhas,pieced,piddles,pickled,photogenic,phosphorous,pffft,pestilence,pessimist,perspiration,perps,penticoff,passageways,pardons,panics,pancamo,paleontologist,overwhelms,overstating,overpaid,overdid,outlive,orthodontist,orgies,oreos,ordover,ordinates,ooooooh,oooohhh,omelettes,officiate,obtuse,obits,nymph,novocaine,noooooooooo,nipping,nilly,nightstick,negate,neatness,natured,narcotic,narcissism,namun,nakatomi,murky,muchacho,mouthwash,motzah,morsel,morph,morlocks,mooch,moloch,molest,mohra,modus,modicum,mockolate,misdemeanors,miscalculation,middies,meringue,mercilessly,meditating,mayakovsky,maximillian,marlee,markovski,maniacal,maneuvered,magnificence,maddening,lutze,lunged,lovelies,lorry,loosening,lookee,littered,lilac,lightened,laces,kurzon,kurtzweil,kind've,kimono,kenji,kembu,keanu,kazuo,jonesing,jilted,jiggling,jewelers,jewbilee,jacqnoud,jacksons,ivories,insurmountable,innocuous,innkeeper,infantery,indulged,indescribable,incoherent,impervious,impertinent,imperfections,hunnert,huffy,horsies,horseradish,hollowed,hogwash,hockley,hissing,hiromitsu,hidin,hereafter,helpmann,hehehe,haughty,happenings,hankie,handsomely,halliwells,haklar,haise,gunsights,grossly,grope,grocer,grits,gripping,grabby,glorificus,gizzard,gilardi,gibarian,geminon,gasses,garnish,galloping,gairwyn,futterman,futility,fumigated,fruitless,friendless,freon,foregone,forego,floored,flighty,flapjacks,fizzled,ficus,festering,farbman,fabricate,eyghon,extricate,exalted,eventful,esophagus,enterprising,entail,endor,emphatically,embarrasses,electroshock,easel,duffle,drumsticks,dissection,dissected,disposing,disparaging,disorientation,disintegrated,disarming,devoting,dessaline,deprecating,deplorable,delve,degenerative,deduct,decomposed,deathly,dearie,daunting,dankova,cyclotron,cyberspace,cutbacks,culpable,cuddled,crumpets,cruelly,crouching,cranium,cramming,cowering,couric,cordesh,conversational,conclusively,clung,clotting,cleanest,chipping,chimpanzee,chests,cheapen,chainsaws,censure,catapult,caravaggio,carats,captivating,calrissian,butlers,busybody,bussing,bunion,bulimic,budging,brung,browbeat,brokenhearted,brecher,breakdowns,bracebridge,boning,blowhard,blisters,blackboard,bigotry,bialy,bhamra,bended,begat,battering,baste,basquiat,barricaded,barometer,balled,baited,badenweiler,backhand,ascenscion,argumentative,appendicitis,apparition,anxiously,antagonistic,angora,anacott,amniotic,ambience,alonna,aleck,akashic,ageless,abouts,aawwww,aaaaarrrrrrggghhh,aaaaaa,zendi,yuppies,yodel,y'hear,wrangle,wombosi,wittle,withstanding,wisecracks,wiggling,wierd,whittlesley,whipper,whattya,whatsamatter,whatchamacallit,whassup,whad'ya,weakling,warfarin,waponis,wampum,wadn't,vorash,vizzini,virtucon,viridiana,veracity,ventilated,varicose,varcon,vandalized,vamos,vamoose,vaccinated,vacationing,usted,urinal,uppers,unwittingly,unsealed,unplanned,unhinged,unhand,unfathomable,unequivocally,unbreakable,unadvisedly,udall,tynacorp,tuxes,tussle,turati,tunic,tsavo,trussed,troublemakers,trollop,tremors,transsexual,transfusions,toothbrushes,toned,toddlers,tinted,tightened,thundering,thorpey,this'd,thespian,thaddius,tenuous,tenths,tenement,telethon,teleprompter,teaspoon,taunted,tattle,tardiness,taraka,tappy,tapioca,tapeworm,talcum,tacks,swivel,swaying,superpower,summarize,sumbitch,sultry,suburbia,styrofoam,stylings,strolls,strobe,stockpile,stewardesses,sterilized,sterilize,stealin,stakeouts,squawk,squalor,squabble,sprinkled,sportsmanship,spokes,spiritus,sparklers,spareribs,sowing,sororities,sonovabitch,solicit,softy,softness,softening,snuggling,snatchers,snarling,snarky,snacking,smears,slumped,slowest,slithering,sleazebag,slayed,slaughtering,skidded,skated,sivapathasundaram,sissies,silliness,silences,sidecar,sicced,shylock,shtick,shrugged,shriek,shoves,should'a,shortcake,shockingly,shirking,shaves,shatner,sharpener,shapely,shafted,sexless,septum,selflessness,seabea,scuff,screwball,scoping,scooch,scolding,schnitzel,schemed,scalper,santy,sankara,sanest,salesperson,sakulos,safehouse,sabers,runes,rumblings,rumbling,ruijven,ringers,righto,rhinestones,retrieving,reneging,remodelling,relentlessly,regurgitate,refills,reeking,reclusive,recklessness,recanted,ranchers,rafer,quaking,quacks,prophesied,propensity,profusely,problema,prided,prays,postmark,popsicles,poodles,pollyanna,polaroids,pokes,poconos,pocketful,plunging,plugging,pleeease,platters,pitied,pinetti,piercings,phooey,phonies,pestering,periscope,pentagram,pelts,patronized,paramour,paralyze,parachutes,pales,paella,paducci,owatta,overdone,overcrowded,overcompensating,ostracized,ordinate,optometrist,operandi,omens,okayed,oedipal,nuttier,nuptial,nunheim,noxious,nourish,notepad,nitroglycerin,nibblet,neuroses,nanosecond,nabbit,mythic,munchkins,multimillion,mulroney,mucous,muchas,mountaintop,morlin,mongorians,moneybags,mom'll,molto,mixup,misgivings,mindset,michalchuk,mesmerized,merman,mensa,meaty,mbwun,materialize,materialistic,masterminded,marginally,mapuhe,malfunctioning,magnify,macnamara,macinerney,machinations,macadamia,lysol,lurks,lovelorn,lopsided,locator,litback,litany,linea,limousines,limes,lighters,liebkind,levity,levelheaded,letterhead,lesabre,leron,lepers,lefts,leftenant,laziness,layaway,laughlan,lascivious,laryngitis,lapsed,landok,laminated,kurten,kobol,knucklehead,knowed,knotted,kirkeby,kinsa,karnovsky,jolla,jimson,jettison,jeric,jawed,jankis,janitors,jango,jalopy,jailbreak,jackers,jackasses,invalidate,intercepting,intercede,insinuations,infertile,impetuous,impaled,immerse,immaterial,imbeciles,imagines,idyllic,idolized,icebox,i'd've,hypochondriac,hyphen,hurtling,hurried,hunchback,hullo,horsting,hoooo,homeboys,hollandaise,hoity,hijinks,hesitates,herrero,herndorff,helplessly,heeyy,heathen,hearin,headband,harrassment,harpies,halstrom,hahahahaha,hacer,grumbling,grimlocks,grift,greets,grandmothers,grander,grafts,gordievsky,gondorff,godorsky,glscripts,gaudy,gardeners,gainful,fuses,fukienese,frizzy,freshness,freshening,fraught,frantically,foxbooks,fortieth,forked,foibles,flunkies,fleece,flatbed,fisted,firefight,fingerpaint,filibuster,fhloston,fenceline,femur,fatigues,fanucci,fantastically,familiars,falafel,fabulously,eyesore,expedient,ewwww,eviscerated,erogenous,epidural,enchante,embarassed,embarass,embalming,elude,elspeth,electrocute,eigth,eggshell,echinacea,eases,earpiece,earlobe,dumpsters,dumbshit,dumbasses,duloc,duisberg,drummed,drinkers,dressy,dorma,doily,divvy,diverting,dissuade,disrespecting,displace,disorganized,disgustingly,discord,disapproving,diligence,didja,diced,devouring,detach,destructing,desolate,demerits,delude,delirium,degrade,deevak,deemesa,deductions,deduce,debriefed,deadbeats,dateline,darndest,damnable,dalliance,daiquiri,d'agosta,cussing,cryss,cripes,cretins,crackerjack,cower,coveting,couriers,countermission,cotswolds,convertibles,conversationalist,consorting,consoled,consarn,confides,confidentially,commited,commiserate,comme,comforter,comeuppance,combative,comanches,colosseum,colling,coexist,coaxing,cliffside,chutes,chucked,chokes,childlike,childhoods,chickening,chenowith,charmingly,changin,catsup,captioning,capsize,cappucino,capiche,candlewell,cakewalk,cagey,caddie,buxley,bumbling,bulky,buggered,brussel,brunettes,brumby,brotha,bronck,brisket,bridegroom,braided,bovary,bookkeeper,bluster,bloodline,blissfully,blase,billionaires,bicker,berrisford,bereft,berating,berate,bendy,belive,belated,beikoku,beens,bedspread,bawdy,barreling,baptize,banya,balthazar,balmoral,bakshi,bails,badgered,backstreet,awkwardly,auras,attuned,atheists,astaire,assuredly,arrivederci,appetit,appendectomy,apologetic,antihistamine,anesthesiologist,amulets,albie,alarmist,aiight,adstream,admirably,acquaint,abound,abominable,aaaaaaah,zekes,zatunica,wussy,worded,wooed,woodrell,wiretap,windowsill,windjammer,windfall,whisker,whims,whatiya,whadya,weirdly,weenies,waunt,washout,wanto,waning,victimless,verdad,veranda,vandaley,vancomycin,valise,vaguest,upshot,unzip,unwashed,untrained,unstuck,unprincipled,unmentionables,unjustly,unfolds,unemployable,uneducated,unduly,undercut,uncovering,unconsciousness,unconsciously,tyndareus,turncoat,turlock,tulle,tryouts,trouper,triplette,trepkos,tremor,treeger,trapeze,traipse,tradeoff,trach,torin,tommorow,tollan,toity,timpani,thumbprint,thankless,tell'em,telepathy,telemarketing,telekinesis,teevee,teeming,tarred,tambourine,talentless,swooped,switcheroo,swirly,sweatpants,sunstroke,suitors,sugarcoat,subways,subterfuge,subservient,subletting,stunningly,strongbox,striptease,stravanavitch,stradling,stoolie,stodgy,stocky,stifle,stealer,squeezes,squatter,squarely,sprouted,spool,spindly,speedos,soups,soundly,soulmates,somebody'll,soliciting,solenoid,sobering,snowflakes,snowballs,snores,slung,slimming,skulk,skivvies,skewered,skewer,sizing,sistine,sidebar,sickos,shushing,shunt,shugga,shone,shol'va,sharpened,shapeshifter,shadowing,shadoe,selectman,sefelt,seared,scrounging,scribbling,scooping,scintillating,schmoozing,scallops,sapphires,sanitarium,sanded,safes,rudely,roust,rosebush,rosasharn,rondell,roadhouse,riveted,rewrote,revamp,retaliatory,reprimand,replicators,replaceable,remedied,relinquishing,rejoicing,reincarnated,reimbursed,reevaluate,redid,redefine,recreating,reconnected,rebelling,reassign,rearview,rayne,ravings,ratso,rambunctious,radiologist,quiver,quiero,queef,qualms,pyrotechnics,pulsating,psychosomatic,proverb,promiscuous,profanity,prioritize,preying,predisposition,precocious,precludes,prattling,prankster,povich,potting,postpartum,porridge,polluting,plowing,pistachio,pissin,pickpocket,physicals,peruse,pertains,personified,personalize,perjured,perfecting,pepys,pepperdine,pembry,peering,peels,pedophile,patties,passkey,paratrooper,paraphernalia,paralyzing,pandering,paltry,palpable,pagers,pachyderm,overstay,overestimated,overbite,outwit,outgrow,outbid,ooops,oomph,oohhh,oldie,obliterate,objectionable,nygma,notting,noches,nitty,nighters,newsstands,newborns,neurosurgery,nauseated,nastiest,narcolepsy,mutilate,muscled,murmur,mulva,mulling,mukada,muffled,morgues,moonbeams,monogamy,molester,molestation,molars,moans,misprint,mismatched,mirth,mindful,mimosas,millander,mescaline,menstrual,menage,mellowing,medevac,meddlesome,matey,manicures,malevolent,madmen,macaroons,lydell,lycra,lunchroom,lunching,lozenges,looped,litigious,liquidate,linoleum,lingk,limitless,limber,lilacs,ligature,liftoff,lemmiwinks,leggo,learnin,lazarre,lawyered,lactose,knelt,kenosha,kemosabe,jussy,junky,jordy,jimmies,jeriko,jakovasaur,issacs,isabela,irresponsibility,ironed,intoxication,insinuated,inherits,ingest,ingenue,inflexible,inflame,inevitability,inedible,inducement,indignant,indictments,indefensible,incomparable,incommunicado,improvising,impounded,illogical,ignoramus,hydrochloric,hydrate,hungover,humorless,humiliations,hugest,hoverdrone,hovel,hmmph,hitchhike,hibernating,henchman,helloooo,heirlooms,heartsick,headdress,hatches,harebrained,hapless,hanen,handsomer,hallows,habitual,guten,gummy,guiltier,guidebook,gstaad,gruff,griss,grieved,grata,gorignak,goosed,goofed,glowed,glitz,glimpses,glancing,gilmores,gianelli,geraniums,garroway,gangbusters,gamblers,galls,fuddy,frumpy,frowning,frothy,fro'tak,frere,fragrances,forgettin,follicles,flowery,flophouse,floatin,flirts,flings,flatfoot,fingerprinting,fingerprinted,fingering,finald,fillet,fianc,femoral,federales,fawkes,fascinates,farfel,fambly,falsified,fabricating,exterminators,expectant,excusez,excrement,excercises,evian,etins,esophageal,equivalency,equate,equalizer,entrees,enquire,endearment,empathetic,emailed,eggroll,earmuffs,dyslexic,duper,duesouth,drunker,druggie,dreadfully,dramatics,dragline,downplay,downers,dominatrix,doers,docket,docile,diversify,distracts,disloyalty,disinterested,discharging,disagreeable,dirtier,dinghy,dimwitted,dimoxinil,dimmy,diatribe,devising,deviate,detriment,desertion,depressants,depravity,deniability,delinquents,defiled,deepcore,deductive,decimate,deadbolt,dauthuille,dastardly,daiquiris,daggers,dachau,curiouser,curdled,cucamonga,cruller,cruces,crosswalk,crinkle,crescendo,cremate,counseled,couches,cornea,corday,copernicus,contrition,contemptible,constipated,conjoined,confounded,condescend,concoct,conch,compensating,committment,commandeered,comely,coddled,cockfight,cluttered,clunky,clownfish,cloaked,clenched,cleanin,civilised,circumcised,cimmeria,cilantro,chutzpah,chucking,chiseled,chicka,chattering,cervix,carrey,carpal,carnations,cappuccinos,candied,calluses,calisthenics,bushy,burners,budington,buchanans,brimming,braids,boycotting,bouncers,botticelli,botherin,bookkeeping,bogyman,bogged,bloodthirsty,blintzes,blanky,binturong,billable,bigboote,bewildered,betas,bequeath,behoove,befriend,bedpost,bedded,baudelaires,barreled,barboni,barbeque,bangin,baltus,bailout,backstabber,baccarat,awning,augie,arguillo,archway,apricots,apologising,annyong,anchorman,amenable,amazement,allspice,alannis,airfare,airbags,ahhhhhhhhh,ahhhhhhhh,ahhhhhhh,agitator,adrenal,acidosis,achoo,accessorizing,accentuate,abrasions,abductor,aaaahhh,aaaaaaaa,aaaaaaa,zeroing,zelner,zeldy,yevgeny,yeska,yellows,yeesh,yeahh,yamuri,wouldn't've,workmanship,woodsman,winnin,winked,wildness,whoring,whitewash,whiney,when're,wheezer,wheelman,wheelbarrow,westerburg,weeding,watermelons,washboard,waltzes,wafting,voulez,voluptuous,vitone,vigilantes,videotaping,viciously,vices,veruca,vermeer,verifying,vasculitis,valets,upholstered,unwavering,untold,unsympathetic,unromantic,unrecognizable,unpredictability,unmask,unleashing,unintentional,unglued,unequivocal,underrated,underfoot,unchecked,unbutton,unbind,unbiased,unagi,uhhhhh,tugging,triads,trespasses,treehorn,traviata,trappers,transplants,trannie,tramping,tracheotomy,tourniquet,tooty,toothless,tomarrow,toasters,thruster,thoughtfulness,thornwood,tengo,tenfold,telltale,telephoto,telephoned,telemarketer,tearin,tastic,tastefully,tasking,taser,tamed,tallow,taketh,taillight,tadpoles,tachibana,syringes,sweated,swarthy,swagger,surges,supermodels,superhighway,sunup,sun'll,sulfa,sugarless,sufficed,subside,strolled,stringy,strengthens,straightest,straightens,storefront,stopper,stockpiling,stimulant,stiffed,steyne,sternum,stepladder,stepbrother,steers,steelheads,steakhouse,stathis,stankylecartmankennymr,standoffish,stalwart,squirted,spritz,sprig,sprawl,spousal,sphincter,spenders,spearmint,spatter,spangled,southey,soured,sonuvabitch,somethng,snuffed,sniffs,smokescreen,smilin,slobs,sleepwalker,sleds,slays,slayage,skydiving,sketched,skanks,sixed,siphoned,siphon,simpering,sigfried,sidearm,siddons,sickie,shuteye,shuffleboard,shrubberies,shrouded,showmanship,shouldn't've,shoplift,shiatsu,sentries,sentance,sensuality,seething,secretions,searing,scuttlebutt,sculpt,scowling,scouring,scorecard,schoolers,schmucks,scepters,scaly,scalps,scaffolding,sauces,sartorius,santen,salivating,sainthood,saget,saddens,rygalski,rusting,ruination,rueland,rudabaga,rottweiler,roofies,romantics,rollerblading,roldy,roadshow,rickets,rible,rheza,revisiting,retentive,resurface,restores,respite,resounding,resorting,resists,repulse,repressing,repaying,reneged,refunds,rediscover,redecorated,reconstructive,recommitted,recollect,receptacle,reassess,reanimation,realtors,razinin,rationalization,ratatouille,rashum,rasczak,rancheros,rampler,quizzing,quips,quartered,purring,pummeling,puede,proximo,prospectus,pronouncing,prolonging,procreation,proclamations,principled,prides,preoccupation,prego,precog,prattle,pounced,potshots,potpourri,porque,pomegranates,polenta,plying,pluie,plesac,playmates,plantains,pillowcase,piddle,pickers,photocopied,philistine,perpetuate,perpetually,perilous,pawned,pausing,pauper,parter,parlez,parlay,pally,ovulation,overtake,overstate,overpowering,overpowered,overconfident,overbooked,ovaltine,outweighs,outings,ottos,orrin,orifice,orangutan,oopsy,ooooooooh,oooooo,ooohhhh,ocular,obstruct,obscenely,o'dwyer,nutjob,nunur,notifying,nostrand,nonny,nonfat,noblest,nimble,nikes,nicht,newsworthy,nestled,nearsighted,ne'er,nastier,narco,nakedness,muted,mummified,mudda,mozzarella,moxica,motivator,motility,mothafucka,mortmain,mortgaged,mores,mongers,mobbed,mitigating,mistah,misrepresented,mishke,misfortunes,misdirection,mischievous,mineshaft,millaney,microwaves,metzenbaum,mccovey,masterful,masochistic,marliston,marijawana,manya,mantumbi,malarkey,magnifique,madrona,madox,machida,m'hidi,lullabies,loveliness,lotions,looka,lompoc,litterbug,litigator,lithe,liquorice,linds,limericks,lightbulb,lewises,letch,lemec,layover,lavatory,laurels,lateness,laparotomy,laboring,kuato,kroff,krispy,krauts,knuckleheads,kitschy,kippers,kimbrow,keypad,keepsake,kebab,karloff,junket,judgemental,jointed,jezzie,jetting,jeeze,jeeter,jeesus,jeebs,janeane,jails,jackhammer,ixnay,irritates,irritability,irrevocable,irrefutable,irked,invoking,intricacies,interferon,intents,insubordinate,instructive,instinctive,inquisitive,inlay,injuns,inebriated,indignity,indecisive,incisors,incacha,inalienable,impresses,impregnate,impregnable,implosion,idolizes,hypothyroidism,hypoglycemic,huseni,humvee,huddling,honing,hobnobbing,hobnob,histrionics,histamine,hirohito,hippocratic,hindquarters,hikita,hikes,hightailed,hieroglyphics,heretofore,herbalist,hehey,hedriks,heartstrings,headmistress,headlight,hardheaded,happend,handlebars,hagitha,habla,gyroscope,guys'd,guy'd,guttersnipe,grump,growed,grovelling,groan,greenbacks,gravedigger,grating,grasshoppers,grandiose,grandest,grafted,gooood,goood,gooks,godsakes,goaded,glamorama,giveth,gingham,ghostbusters,germane,georgy,gazzo,gazelles,gargle,garbled,galgenstein,gaffe,g'day,fyarl,furnish,furies,fulfills,frowns,frowned,frighteningly,freebies,freakishly,forewarned,foreclose,forearms,fordson,fonics,flushes,flitting,flemmer,flabby,fishbowl,fidgeting,fevers,feigning,faxing,fatigued,fathoms,fatherless,fancier,fanatical,factored,eyelid,eyeglasses,expresso,expletive,expectin,excruciatingly,evidentiary,ever'thing,eurotrash,eubie,estrangement,erlich,epitome,entrap,enclose,emphysema,embers,emasculating,eighths,eardrum,dyslexia,duplicitous,dumpty,dumbledore,dufus,duddy,duchamp,drunkenness,drumlin,drowns,droid,drinky,drifts,drawbridge,dramamine,douggie,douchebag,dostoyevsky,doodling,don'tcha,domineering,doings,dogcatcher,doctoring,ditzy,dissimilar,dissecting,disparage,disliking,disintegrating,dishwalla,dishonored,dishing,disengaged,disavowed,dippy,diorama,dimmed,dilate,digitalis,diggory,dicing,diagnosing,devola,desolation,dennings,denials,deliverance,deliciously,delicacies,degenerates,degas,deflector,defile,deference,decrepit,deciphered,dawdle,dauphine,daresay,dangles,dampen,damndest,cucumbers,cucaracha,cryogenically,croaks,croaked,criticise,crisper,creepiest,creams,crackle,crackin,covertly,counterintelligence,corrosive,cordially,cops'll,convulsions,convoluted,conversing,conga,confrontational,confab,condolence,condiments,complicit,compiegne,commodus,comings,cometh,collusion,collared,cockeyed,clobber,clemonds,clarithromycin,cienega,christmasy,christmassy,chloroform,chippie,chested,cheeco,checklist,chauvinist,chandlers,chambermaid,chakras,cellophane,caveat,cataloguing,cartmanland,carples,carny,carded,caramels,cappy,caped,canvassing,callback,calibrated,calamine,buttermilk,butterfingers,bunsen,bulimia,bukatari,buildin,budged,brobich,bringer,brendell,brawling,bratty,braised,boyish,boundless,botch,boosh,bookies,bonbons,bodes,bobunk,bluntly,blossoming,bloomers,bloodstains,bloodhounds,blech,biter,biometric,bioethics,bijan,bigoted,bicep,bereaved,bellowing,belching,beholden,beached,batmobile,barcodes,barch,barbecuing,bandanna,backwater,backtrack,backdraft,augustino,atrophy,atrocity,atley,atchoo,asthmatic,assoc,armchair,arachnids,aptly,appetizing,antisocial,antagonizing,anorexia,anini,andersons,anagram,amputation,alleluia,airlock,aimless,agonized,agitate,aggravating,aerosol,acing,accomplishing,accidently,abuser,abstain,abnormally,aberration,aaaaahh,zlotys,zesty,zerzura,zapruder,zantopia,yelburton,yeess,y'knowwhati'msayin,wwhat,wussies,wrenched,would'a,worryin,wormser,wooooo,wookiee,wolchek,wishin,wiseguys,windbreaker,wiggy,wieners,wiedersehen,whoopin,whittled,wherefore,wharvey,welts,wellstone,wedges,wavered,watchit,wastebasket,wango,waken,waitressed,wacquiem,vrykolaka,voula,vitally,visualizing,viciousness,vespers,vertes,verily,vegetarians,vater,vaporize,vannacutt,vallens,ussher,urinating,upping,unwitting,untangle,untamed,unsanitary,unraveled,unopened,unisex,uninvolved,uninteresting,unintelligible,unimaginative,undeserving,undermines,undergarments,unconcerned,tyrants,typist,tykes,tybalt,twosome,twits,tutti,turndown,tularemia,tuberculoma,tsimshian,truffaut,truer,truant,trove,triumphed,tripe,trigonometry,trifled,trifecta,tribulations,tremont,tremoille,transcends,trafficker,touchin,tomfoolery,tinkered,tinfoil,tightrope,thousan,thoracotomy,thesaurus,thawing,thatta,tessio,temps,taxidermist,tator,tachycardia,t'akaya,swelco,sweetbreads,swatting,supercollider,sunbathing,summarily,suffocation,sueleen,succinct,subsided,submissive,subjecting,subbing,subatomic,stupendous,stunted,stubble,stubbed,streetwalker,strategizing,straining,straightaway,stoli,stiffer,stickup,stens,steamroller,steadwell,steadfast,stateroom,stans,sshhhh,squishing,squinting,squealed,sprouting,sprimp,spreadsheets,sprawled,spotlights,spooning,spirals,speedboat,spectacles,speakerphone,southglen,souse,soundproof,soothsayer,sommes,somethings,solidify,soars,snorted,snorkeling,snitches,sniping,snifter,sniffin,snickering,sneer,snarl,smila,slinking,slanted,slanderous,slammin,skimp,skilosh,siteid,sirloin,singe,sighing,sidekicks,sicken,showstopper,shoplifter,shimokawa,sherborne,shavadai,sharpshooters,sharking,shagged,shaddup,senorita,sesterces,sensuous,seahaven,scullery,scorcher,schotzie,schnoz,schmooze,schlep,schizo,scents,scalping,scalped,scallop,scalding,sayeth,saybrooke,sawed,savoring,sardine,sandstorm,sandalwood,salutations,sagman,s'okay,rsvp'd,rousted,rootin,romper,romanovs,rollercoaster,rolfie,robinsons,ritzy,ritualistic,ringwald,rhymed,rheingold,rewrites,revoking,reverts,retrofit,retort,retinas,respirations,reprobate,replaying,repaint,renquist,renege,relapsing,rekindled,rejuvenating,rejuvenated,reinstating,recriminations,rechecked,reassemble,rears,reamed,reacquaint,rayanne,ravish,rathole,raspail,rarest,rapists,rants,racketeer,quittin,quitters,quintessential,queremos,quellek,quelle,quasimodo,pyromaniac,puttanesca,puritanical,purer,puree,pungent,pummel,puedo,psychotherapist,prosecutorial,prosciutto,propositioning,procrastination,probationary,primping,preventative,prevails,preservatives,preachy,praetorians,practicality,powders,potus,postop,positives,poser,portolano,portokalos,poolside,poltergeists,pocketed,poach,plummeted,plucking,plimpton,playthings,plastique,plainclothes,pinpointed,pinkus,pinks,pigskin,piffle,pictionary,piccata,photocopy,phobias,perignon,perfumes,pecks,pecked,patently,passable,parasailing,paramus,papier,paintbrush,pacer,paaiint,overtures,overthink,overstayed,overrule,overestimate,overcooked,outlandish,outgrew,outdoorsy,outdo,orchestrate,oppress,opposable,oooohh,oomupwah,okeydokey,okaaay,ohashi,of'em,obscenities,oakie,o'gar,nurection,nostradamus,norther,norcom,nooch,nonsensical,nipped,nimbala,nervously,neckline,nebbleman,narwhal,nametag,n'n't,mycenae,muzak,muumuu,mumbled,mulvehill,muggings,muffet,mouthy,motivates,motaba,moocher,mongi,moley,moisturize,mohair,mocky,mmkay,mistuh,missis,misdeeds,mincemeat,miggs,miffed,methadone,messieur,menopausal,menagerie,mcgillicuddy,mayflowers,matrimonial,matick,masai,marzipan,maplewood,manzelle,mannequins,manhole,manhandle,malfunctions,madwoman,machiavelli,lynley,lynched,lurconis,lujack,lubricant,looove,loons,loofah,lonelyhearts,lollipops,lineswoman,lifers,lexter,lepner,lemony,leggy,leafy,leadeth,lazerus,lazare,lawford,languishing,lagoda,ladman,kundera,krinkle,krendler,kreigel,kowolski,knockdown,knifed,kneed,kneecap,kids'll,kennie,kenmore,keeled,kazootie,katzenmoyer,kasdan,karak,kapowski,kakistos,julyan,jockstrap,jobless,jiggly,jaunt,jarring,jabbering,irrigate,irrevocably,irrationally,ironies,invitro,intimated,intently,intentioned,intelligently,instill,instigator,instep,inopportune,innuendoes,inflate,infects,infamy,indiscretions,indiscreet,indio,indignities,indict,indecision,inconspicuous,inappropriately,impunity,impudent,impotence,implicates,implausible,imperfection,impatience,immutable,immobilize,idealist,iambic,hysterically,hyperspace,hygienist,hydraulics,hydrated,huzzah,husks,hunched,huffed,hubris,hubbub,hovercraft,houngan,hosed,horoscopes,hopelessness,hoodwinked,honorably,honeysuckle,homegirl,holiest,hippity,hildie,hieroglyphs,hexton,herein,heckle,heaping,healthilizer,headfirst,hatsue,harlot,hardwired,halothane,hairstyles,haagen,haaaaa,gutting,gummi,groundless,groaning,gristle,grills,graynamore,grabbin,goodes,goggle,glittering,glint,gleaming,glassy,girth,gimbal,giblets,gellers,geezers,geeze,garshaw,gargantuan,garfunkel,gangway,gandarium,gamut,galoshes,gallivanting,gainfully,gachnar,fusionlips,fusilli,furiously,frugal,fricking,frederika,freckling,frauds,fountainhead,forthwith,forgo,forgettable,foresight,foresaw,fondling,fondled,fondle,folksy,fluttering,fluffing,floundering,flirtatious,flexing,flatterer,flaring,fixating,finchy,figurehead,fiendish,fertilize,ferment,fending,fellahs,feelers,fascinate,fantabulous,falsify,fallopian,faithless,fairer,fainter,failings,facetious,eyepatch,exxon,extraterrestrials,extradite,extracurriculars,extinguish,expunged,expelling,exorbitant,exhilarated,exertion,exerting,excercise,everbody,evaporated,escargot,escapee,erases,epizootics,epithelials,ephrum,entanglements,enslave,engrossed,emphatic,emeralds,ember,emancipated,elevates,ejaculate,effeminate,eccentricities,easygoing,earshot,dunks,dullness,dulli,dulled,drumstick,dropper,driftwood,dregs,dreck,dreamboat,draggin,downsizing,donowitz,dominoes,diversions,distended,dissipate,disraeli,disqualify,disowned,dishwashing,disciplining,discerning,disappoints,dinged,digested,dicking,detonating,despising,depressor,depose,deport,dents,defused,deflecting,decryption,decoys,decoupage,decompress,decibel,decadence,deafening,dawning,dater,darkened,dappy,dallying,dagon,czechoslovakians,cuticles,cuteness,cupboards,culottes,cruisin,crosshairs,cronyn,criminalistics,creatively,creaming,crapping,cranny,cowed,contradicting,constipation,confining,confidences,conceiving,conceivably,concealment,compulsively,complainin,complacent,compels,communing,commode,comming,commensurate,columnists,colonoscopy,colchicine,coddling,clump,clubbed,clowning,cliffhanger,clang,cissy,choosers,choker,chiffon,channeled,chalet,cellmates,cathartic,caseload,carjack,canvass,canisters,candlestick,candlelit,camry,calzones,calitri,caldy,byline,butterball,bustier,burlap,bureaucrat,buffoons,buenas,brookline,bronzed,broiled,broda,briss,brioche,briar,breathable,brays,brassieres,boysenberry,bowline,boooo,boonies,booklets,bookish,boogeyman,boogey,bogas,boardinghouse,bluuch,blundering,bluer,blowed,blotchy,blossomed,bloodwork,bloodied,blithering,blinks,blathering,blasphemous,blacking,birdson,bings,bfmid,bfast,bettin,berkshires,benjamins,benevolence,benched,benatar,bellybutton,belabor,behooves,beddy,beaujolais,beattle,baxworth,baseless,barfing,bannish,bankrolled,banek,ballsy,ballpoint,baffling,badder,badda,bactine,backgammon,baako,aztreonam,authoritah,auctioning,arachtoids,apropos,aprons,apprised,apprehensive,anythng,antivenin,antichrist,anorexic,anoint,anguished,angioplasty,angio,amply,ampicillin,amphetamines,alternator,alcove,alabaster,airlifted,agrabah,affidavits,admonished,admonish,addled,addendum,accuser,accompli,absurdity,absolved,abrusso,abreast,aboot,abductions,abducting,aback,ababwa,aaahhhh,zorin,zinthar,zinfandel,zillions,zephyrs,zatarcs,zacks,youuu,yokels,yardstick,yammer,y'understand,wynette,wrung,wreaths,wowed,wouldn'ta,worming,wormed,workday,woodsy,woodshed,woodchuck,wojadubakowski,withering,witching,wiseass,wiretaps,wining,willoby,wiccaning,whupped,whoopi,whoomp,wholesaler,whiteness,whiner,whatchya,wharves,wenus,weirdoes,weaning,watusi,waponi,waistband,wackos,vouching,votre,vivica,viveca,vivant,vivacious,visor,visitin,visage,vicrum,vetted,ventriloquism,venison,varnsen,vaporized,vapid,vanstock,uuuuh,ushering,urologist,urination,upstart,uprooted,unsubtitled,unspoiled,unseat,unseasonably,unseal,unsatisfying,unnerve,unlikable,unleaded,uninsured,uninspired,unicycle,unhooked,unfunny,unfreezing,unflattering,unfairness,unexpressed,unending,unencumbered,unearth,undiscovered,undisciplined,understan,undershirt,underlings,underline,undercurrent,uncivilized,uncharacteristic,umpteenth,uglies,tuney,trumps,truckasaurus,trubshaw,trouser,tringle,trifling,trickster,trespassers,trespasser,traumas,trattoria,trashes,transgressions,trampling,tp'ed,toxoplasmosis,tounge,tortillas,topsy,topple,topnotch,tonsil,tions,timmuh,timithious,tilney,tighty,tightness,tightens,tidbits,ticketed,thyme,threepio,thoughtfully,thorkel,thommo,thing'll,thefts,that've,thanksgivings,tetherball,testikov,terraforming,tepid,tendonitis,tenboom,telex,teenybopper,tattered,tattaglias,tanneke,tailspin,tablecloth,swooping,swizzle,swiping,swindled,swilling,swerving,sweatshops,swaddling,swackhammer,svetkoff,supossed,superdad,sumptuous,sugary,sugai,subvert,substantiate,submersible,sublimating,subjugation,stymied,strychnine,streetlights,strassmans,stranglehold,strangeness,straddling,straddle,stowaways,stotch,stockbrokers,stifling,stepford,steerage,steena,statuary,starlets,staggeringly,ssshhh,squaw,spurt,spungeon,spritzer,sprightly,sprays,sportswear,spoonful,splittin,splitsville,speedily,specialise,spastic,sparrin,souvlaki,southie,sourpuss,soupy,soundstage,soothes,somebody'd,softest,sociopathic,socialized,snyders,snowmobiles,snowballed,snatches,smugness,smoothest,smashes,sloshed,sleight,skyrocket,skied,skewed,sixpence,sipowicz,singling,simulates,shyness,shuvanis,showoff,shortsighted,shopkeeper,shoehorn,shithouse,shirtless,shipshape,shifu,shelve,shelbyville,sheepskin,sharpens,shaquille,shanshu,servings,sequined,seizes,seashells,scrambler,scopes,schnauzer,schmo,schizoid,scampered,savagely,saudis,santas,sandovals,sanding,saleswoman,sagging,s'cuse,rutting,ruthlessly,runneth,ruffians,rubes,rosalita,rollerblades,rohypnol,roasts,roadies,ritten,rippling,ripples,rigoletto,richardo,rethought,reshoot,reserving,reseda,rescuer,reread,requisitions,repute,reprogram,replenish,repetitious,reorganizing,reinventing,reinvented,reheat,refrigerators,reenter,recruiter,recliner,rawdy,rashes,rajeski,raison,raisers,rages,quinine,questscape,queller,pygmalion,pushers,pusan,purview,pumpin,pubescent,prudes,provolone,propriety,propped,procrastinate,processional,preyed,pretrial,portent,pooling,poofy,polloi,policia,poacher,pluses,pleasuring,platitudes,plateaued,plaguing,pittance,pinheads,pincushion,pimply,pimped,piggyback,piecing,phillipe,philipse,philby,pharaohs,petyr,petitioner,peshtigo,pesaram,persnickety,perpetrate,percolating,pepto,penne,penell,pemmican,peeks,pedaling,peacemaker,pawnshop,patting,pathologically,patchouli,pasts,pasties,passin,parlors,paltrow,palamon,padlock,paddling,oversleep,overheating,overdosed,overcharge,overblown,outrageously,ornery,opportune,oooooooooh,oohhhh,ohhhhhh,ogres,odorless,obliterated,nyong,nymphomaniac,ntozake,novocain,nough,nonnie,nonissue,nodules,nightmarish,nightline,niceties,newsman,needra,nedry,necking,navour,nauseam,nauls,narim,namath,nagged,naboo,n'sync,myslexia,mutator,mustafi,musketeer,murtaugh,murderess,munching,mumsy,muley,mouseville,mortifying,morgendorffers,moola,montel,mongoloid,molestered,moldings,mocarbies,mo'ss,mixers,misrell,misnomer,misheard,mishandled,miscreant,misconceptions,miniscule,millgate,mettle,metricconverter,meteors,menorah,mengele,melding,meanness,mcgruff,mcarnold,matzoh,matted,mastectomy,massager,marveling,marooned,marmaduke,marick,manhandled,manatees,man'll,maltin,maliciously,malfeasance,malahide,maketh,makeovers,maiming,machismo,lumpectomy,lumbering,lucci,lording,lorca,lookouts,loogie,loners,loathed,lissen,lighthearted,lifer,lickin,lewen,levitation,lestercorp,lessee,lentils,legislate,legalizing,lederhosen,lawmen,lasskopf,lardner,lambeau,lamagra,ladonn,lactic,lacquer,labatier,krabappel,kooks,knickknacks,klutzy,kleynach,klendathu,kinross,kinkaid,kind'a,ketch,kesher,karikos,karenina,kanamits,junshi,jumbled,joust,jotted,jobson,jingling,jigalong,jerries,jellies,jeeps,javna,irresistable,internist,intercranial,inseminated,inquisitor,infuriate,inflating,infidelities,incessantly,incensed,incase,incapacitate,inasmuch,inaccuracies,imploding,impeding,impediments,immaturity,illegible,iditarod,icicles,ibuprofen,i'i'm,hymie,hydrolase,hunker,humps,humons,humidor,humdinger,humbling,huggin,huffing,housecleaning,hothouse,hotcakes,hosty,hootenanny,hootchie,hoosegow,honks,honeymooners,homily,homeopathic,hitchhikers,hissed,hillnigger,hexavalent,hewwo,hershe,hermey,hergott,henny,hennigans,henhouse,hemolytic,helipad,heifer,hebrews,hebbing,heaved,headlock,harrowing,harnessed,hangovers,handi,handbasket,halfrek,hacene,gyges,guys're,gundersons,gumption,gruntmaster,grubs,grossie,groped,grins,greaseball,gravesite,gratuity,granma,grandfathers,grandbaby,gradski,gracing,gossips,gooble,goners,golitsyn,gofer,godsake,goddaughter,gnats,gluing,glares,givers,ginza,gimmie,gimmee,gennero,gemme,gazpacho,gazed,gassy,gargling,gandhiji,galvanized,gallbladder,gaaah,furtive,fumigation,fucka,fronkonsteen,frills,freezin,freewald,freeloader,frailty,forger,foolhardy,fondest,fomin,followin,follicle,flotation,flopping,floodgates,flogged,flicked,flenders,fleabag,fixings,fixable,fistful,firewater,firelight,fingerbang,finalizing,fillin,filipov,fiderer,felling,feldberg,feign,faunia,fatale,farkus,fallible,faithfulness,factoring,eyeful,extramarital,exterminated,exhume,exasperated,eviscerate,estoy,esmerelda,escapades,epoxy,enticed,enthused,entendre,engrossing,endorphins,emptive,emmys,eminently,embezzler,embarressed,embarrassingly,embalmed,eludes,eling,elated,eirie,egotitis,effecting,eerily,eecom,eczema,earthy,earlobes,eally,dyeing,dwells,duvet,duncans,dulcet,droves,droppin,drools,drey'auc,downriver,domesticity,dollop,doesnt,dobler,divulged,diversionary,distancing,dispensers,disorienting,disneyworld,dismissive,disingenuous,disheveled,disfiguring,dinning,dimming,diligently,dilettante,dilation,dickensian,diaphragms,devastatingly,destabilize,desecrate,deposing,deniece,demony,delving,delicates,deigned,defraud,deflower,defibrillator,defiantly,defenceless,defacing,deconstruction,decompose,deciphering,decibels,deceptively,deceptions,decapitation,debutantes,debonair,deadlier,dawdling,davic,darwinism,darnit,darks,danke,danieljackson,dangled,cytoxan,cutout,cutlery,curveball,curfews,cummerbund,crunches,crouched,crisps,cripples,crilly,cribs,crewman,creepin,creeds,credenza,creak,crawly,crawlin,crawlers,crated,crackheads,coworker,couldn't've,corwins,coriander,copiously,convenes,contraceptives,contingencies,contaminating,conniption,condiment,concocting,comprehending,complacency,commendatore,comebacks,com'on,collarbone,colitis,coldly,coiffure,coffers,coeds,codependent,cocksucking,cockney,cockles,clutched,closeted,cloistered,cleve,cleats,clarifying,clapped,cinnabar,chunnel,chumps,cholinesterase,choirboy,chocolatey,chlamydia,chigliak,cheesie,chauvinistic,chasm,chartreuse,charo,charnier,chapil,chalked,chadway,certifiably,cellulite,celled,cavalcade,cataloging,castrated,cassio,cashews,cartouche,carnivore,carcinogens,capulet,captivated,capt'n,cancellations,campin,callate,callar,caffeinated,cadavers,cacophony,cackle,buzzes,buttoning,busload,burglaries,burbs,buona,bunions,bullheaded,buffs,bucyk,buckling,bruschetta,browbeating,broomsticks,broody,bromly,brolin,briefings,brewskies,breathalyzer,breakups,bratwurst,brania,braiding,brags,braggin,bradywood,bottomed,bossa,bordello,bookshelf,boogida,bondsman,bolder,boggles,bludgeoned,blowtorch,blotter,blips,blemish,bleaching,blainetologists,blading,blabbermouth,birdseed,bimmel,biloxi,biggly,bianchinni,betadine,berenson,belus,belloq,begets,befitting,beepers,beelzebub,beefed,bedridden,bedevere,beckons,beaded,baubles,bauble,battleground,bathrobes,basketballs,basements,barroom,barnacle,barkin,barked,baretta,bangles,bangler,banality,bambang,baltar,ballplayers,bagman,baffles,backroom,babysat,baboons,averse,audiotape,auctioneer,atten,atcha,astonishment,arugula,arroz,antihistamines,annoyances,anesthesiology,anatomically,anachronism,amiable,amaretto,allahu,alight,aimin,ailment,afterglow,affronte,advil,adrenals,actualization,acrost,ached,accursed,accoutrements,absconded,aboveboard,abetted,aargh,aaaahh,zuwicky,zolda,ziploc,zakamatak,youve,yippie,yesterdays,yella,yearns,yearnings,yearned,yawning,yalta,yahtzee,y'mean,y'are,wuthering,wreaks,worrisome,workiiing,wooooooo,wonky,womanizing,wolodarsky,wiwith,withdraws,wishy,wisht,wipers,wiper,winos,windthorne,windsurfing,windermere,wiggled,wiggen,whwhat,whodunit,whoaaa,whittling,whitesnake,whereof,wheezing,wheeze,whatd'ya,whataya,whammo,whackin,wellll,weightless,weevil,wedgies,webbing,weasly,wayside,waxes,waturi,washy,washrooms,wandell,waitaminute,waddya,waaaah,vornac,vishnoor,virulent,vindictiveness,vinceres,villier,vigeous,vestigial,ventilate,vented,venereal,veering,veered,veddy,vaslova,valosky,vailsburg,vaginas,vagas,urethra,upstaged,uploading,unwrapping,unwieldy,untapped,unsatisfied,unquenchable,unnerved,unmentionable,unlovable,unknowns,uninformed,unimpressed,unhappily,unguarded,unexplored,undergarment,undeniably,unclench,unclaimed,uncharacteristically,unbuttoned,unblemished,ululd,uhhhm,tweeze,tutsami,tushy,tuscarora,turkle,turghan,turbinium,tubers,trucoat,troxa,tropicana,triquetra,trimmers,triceps,trespassed,traya,traumatizing,transvestites,trainors,tradin,trackers,townies,tourelles,toucha,tossin,tortious,topshop,topes,tonics,tongs,tomsk,tomorrows,toiling,toddle,tizzy,tippers,timmi,thwap,thusly,ththe,thrusts,throwers,throwed,throughway,thickening,thermonuclear,thelwall,thataway,terrifically,tendons,teleportation,telepathically,telekinetic,teetering,teaspoons,tarantulas,tapas,tanned,tangling,tamales,tailors,tahitian,tactful,tachy,tablespoon,syrah,synchronicity,synch,synapses,swooning,switchman,swimsuits,sweltering,sweetly,suvolte,suslov,surfed,supposition,suppertime,supervillains,superfluous,superego,sunspots,sunning,sunless,sundress,suckah,succotash,sublevel,subbasement,studious,striping,strenuously,straights,stonewalled,stillness,stilettos,stevesy,steno,steenwyck,stargates,stammering,staedert,squiggly,squiggle,squashing,squaring,spreadsheet,spramp,spotters,sporto,spooking,splendido,spittin,spirulina,spiky,spate,spartacus,spacerun,soonest,something'll,someth,somepin,someone'll,sofas,soberly,sobered,snowmen,snowbank,snowballing,snivelling,sniffling,snakeskin,snagging,smush,smooter,smidgen,smackers,slumlord,slossum,slimmer,slighted,sleepwalk,sleazeball,skokie,skeptic,sitarides,sistah,sipped,sindell,simpletons,simony,silkwood,silks,silken,sightless,sideboard,shuttles,shrugging,shrouds,showy,shoveled,shouldn'ta,shoplifters,shitstorm,sheeny,shapetype,shaming,shallows,shackle,shabbily,shabbas,seppuku,senility,semite,semiautomatic,selznick,secretarial,sebacio,scuzzy,scummy,scrutinized,scrunchie,scribbled,scotches,scolded,scissor,schlub,scavenging,scarin,scarfing,scallions,scald,savour,savored,saute,sarcoidosis,sandbar,saluted,salish,saith,sailboats,sagittarius,sacre,saccharine,sacamano,rushdie,rumpled,rumba,rulebook,rubbers,roughage,rotisserie,rootie,roofy,roofie,romanticize,rittle,ristorante,rippin,rinsing,ringin,rincess,rickety,reveling,retest,retaliating,restorative,reston,restaurateur,reshoots,resetting,resentments,reprogramming,repossess,repartee,renzo,remore,remitting,remeber,relaxants,rejuvenate,rejections,regenerated,refocus,referrals,reeno,recycles,recrimination,reclining,recanting,reattach,reassigning,razgul,raved,rattlesnakes,rattles,rashly,raquetball,ransack,raisinettes,raheem,radisson,radishes,raban,quoth,qumari,quints,quilts,quilting,quien,quarreled,purty,purblind,punchbowl,publically,psychotics,psychopaths,psychoanalyze,pruning,provasik,protectin,propping,proportioned,prophylactic,proofed,prompter,procreate,proclivities,prioritizing,prinze,pricked,press'll,presets,prescribes,preocupe,prejudicial,prefex,preconceived,precipice,pralines,pragmatist,powerbar,pottie,pottersville,potsie,potholes,posses,posies,portkey,porterhouse,pornographers,poring,poppycock,poppers,pomponi,pokin,poitier,podiatry,pleeze,pleadings,playbook,platelets,plane'arium,placebos,place'll,pistachios,pirated,pinochle,pineapples,pinafore,pimples,piggly,piddling,picon,pickpockets,picchu,physiologically,physic,phobic,philandering,phenomenally,pheasants,pewter,petticoat,petronis,petitioning,perturbed,perpetuating,permutat,perishable,perimeters,perfumed,percocet,per'sus,pepperjack,penalize,pelting,pellet,peignoir,pedicures,peckers,pecans,pawning,paulsson,pattycake,patrolmen,patois,pathos,pasted,parishioner,parcheesi,parachuting,papayas,pantaloons,palpitations,palantine,paintballing,overtired,overstress,oversensitive,overnights,overexcited,overanxious,overachiever,outwitted,outvoted,outnumber,outlast,outlander,out've,orphey,orchestrating,openers,ooooooo,okies,ohhhhhhhhh,ohhhhhhhh,ogling,offbeat,obsessively,obeyed,o'hana,o'bannon,o'bannion,numpce,nummy,nuked,nuances,nourishing,nosedive,norbu,nomlies,nomine,nixed,nihilist,nightshift,newmeat,neglectful,neediness,needin,naphthalene,nanocytes,nanite,naivete,n'yeah,mystifying,myhnegon,mutating,musing,mulled,muggy,muerto,muckraker,muchachos,mountainside,motherless,mosquitos,morphed,mopped,moodoo,moncho,mollem,moisturiser,mohicans,mocks,mistresses,misspent,misinterpretation,miscarry,minuses,mindee,mimes,millisecond,milked,mightn't,mightier,mierzwiak,microchips,meyerling,mesmerizing,mershaw,meecrob,medicate,meddled,mckinnons,mcgewan,mcdunnough,mcats,mbien,matzah,matriarch,masturbated,masselin,martialed,marlboros,marksmanship,marinate,marchin,manicured,malnourished,malign,majorek,magnon,magnificently,macking,machiavellian,macdougal,macchiato,macaws,macanaw,m'self,lydells,lusts,lucite,lubricants,lopper,lopped,loneliest,lonelier,lomez,lojack,loath,liquefy,lippy,limps,likin,lightness,liesl,liebchen,licious,libris,libation,lhamo,leotards,leanin,laxatives,lavished,latka,lanyard,lanky,landmines,lameness,laddies,lacerated,labored,l'amour,kreskin,kovitch,kournikova,kootchy,konoss,knknow,knickety,knackety,kmart,klicks,kiwanis,kissable,kindergartners,kilter,kidnet,kid'll,kicky,kickbacks,kickback,kholokov,kewpie,kendo,katra,kareoke,kafelnikov,kabob,junjun,jumba,julep,jordie,jondy,jolson,jenoff,jawbone,janitorial,janiro,ipecac,invigorated,intruded,intros,intravenously,interruptus,interrogations,interject,interfacing,interestin,insuring,instilled,insensitivity,inscrutable,inroads,innards,inlaid,injector,ingratitude,infuriates,infra,infliction,indelicate,incubators,incrimination,inconveniencing,inconsolable,incestuous,incas,incarcerate,inbreeding,impudence,impressionists,impeached,impassioned,imipenem,idling,idiosyncrasies,icebergs,hypotensive,hydrochloride,hushed,humus,humph,hummm,hulking,hubcaps,hubald,howya,howbout,how'll,housebroken,hotwire,hotspots,hotheaded,horrace,hopsfield,honto,honkin,honeymoons,homewrecker,hombres,hollers,hollerin,hoedown,hoboes,hobbling,hobble,hoarse,hinky,highlighters,hexes,heru'ur,hernias,heppleman,hell're,heighten,heheheheheh,heheheh,hedging,heckling,heckled,heavyset,heatshield,heathens,heartthrob,headpiece,hayseed,haveo,hauls,hasten,harridan,harpoons,hardens,harcesis,harbouring,hangouts,halkein,haleh,halberstam,hairnet,hairdressers,hacky,haaaa,h'yah,gusta,gushy,gurgling,guilted,gruel,grudging,grrrrrr,grosses,groomsmen,griping,gravest,gratified,grated,goulash,goopy,goona,goodly,godliness,godawful,godamn,glycerin,glutes,glowy,globetrotters,glimpsed,glenville,glaucoma,girlscout,giraffes,gilbey,gigglepuss,ghora,gestating,gelato,geishas,gearshift,gayness,gasped,gaslighting,garretts,garba,gablyczyck,g'head,fumigating,fumbling,fudged,fuckwad,fuck're,fuchsia,fretting,freshest,frenchies,freezers,fredrica,fraziers,fraidy,foxholes,fourty,fossilized,forsake,forfeits,foreclosed,foreal,footsies,florists,flopped,floorshow,floorboard,flinching,flecks,flaubert,flatware,flatulence,flatlined,flashdance,flail,flagging,fiver,fitzy,fishsticks,finetti,finelli,finagle,filko,fieldstone,fibber,ferrini,feedin,feasting,favore,fathering,farrouhk,farmin,fairytale,fairservice,factoid,facedown,fabled,eyeballin,extortionist,exquisitely,expedited,exorcise,existentialist,execs,exculpatory,exacerbate,everthing,eventuality,evander,euphoric,euphemisms,estamos,erred,entitle,enquiries,enormity,enfants,endive,encyclopedias,emulating,embittered,effortless,ectopic,ecirc,easely,earphones,earmarks,dweller,durslar,durned,dunois,dunking,dunked,dumdum,dullard,dudleys,druthers,druggist,drossos,drooled,driveways,drippy,dreamless,drawstring,drang,drainpipe,dozing,dotes,dorkface,doorknobs,doohickey,donnatella,doncha,domicile,dokos,dobermans,dizzying,divola,ditsy,distaste,disservice,dislodged,dislodge,disinherit,disinformation,discounting,dinka,dimly,digesting,diello,diddling,dictatorships,dictators,diagnostician,devours,devilishly,detract,detoxing,detours,detente,destructs,desecrated,derris,deplore,deplete,demure,demolitions,demean,delish,delbruck,delaford,degaulle,deftly,deformity,deflate,definatly,defector,decrypted,decontamination,decapitate,decanter,dardis,dampener,damme,daddy'll,dabbling,dabbled,d'etre,d'argent,d'alene,d'agnasti,czechoslovakian,cymbal,cyberdyne,cutoffs,cuticle,curvaceous,curiousity,crowing,crowed,croutons,cropped,criminy,crescentis,crashers,cranwell,coverin,courtrooms,countenance,cosmically,cosign,corroboration,coroners,cornflakes,copperpot,copperhead,copacetic,coordsize,convulsing,consults,conjures,congenial,concealer,compactor,commercialism,cokey,cognizant,clunkers,clumsily,clucking,cloves,cloven,cloths,clothe,clods,clocking,clings,clavicle,classless,clashing,clanking,clanging,clamping,civvies,citywide,circulatory,circuited,chronisters,chromic,choos,chloroformed,chillun,cheesed,chatterbox,chaperoned,channukah,cerebellum,centerpieces,centerfold,ceecee,ccedil,cavorting,cavemen,cauterized,cauldwell,catting,caterine,cassiopeia,carves,cartwheel,carpeted,carob,caressing,carelessly,careening,capricious,capitalistic,capillaries,candidly,camaraderie,callously,calfskin,caddies,buttholes,busywork,busses,burps,burgomeister,bunkhouse,bungchow,bugler,buffets,buffed,brutish,brusque,bronchitis,bromden,brolly,broached,brewskis,brewin,brean,breadwinner,brana,bountiful,bouncin,bosoms,borgnine,bopping,bootlegs,booing,bombosity,bolting,boilerplate,bluey,blowback,blouses,bloodsuckers,bloodstained,bloat,bleeth,blackface,blackest,blackened,blacken,blackballed,blabs,blabbering,birdbrain,bipartisanship,biodegradable,biltmore,bilked,big'uns,bidet,besotted,bernheim,benegas,bendiga,belushi,bellboys,belittling,behinds,begone,bedsheets,beckoning,beaute,beaudine,beastly,beachfront,bathes,batak,baser,baseballs,barbella,bankrolling,bandaged,baerly,backlog,backin,babying,azkaban,awwwww,aviary,authorizes,austero,aunty,attics,atreus,astounded,astonish,artemus,arses,arintero,appraiser,apathetic,anybody'd,anxieties,anticlimactic,antar,anglos,angleman,anesthetist,androscoggin,andolini,andale,amway,amuck,amniocentesis,amnesiac,americano,amara,alvah,altruism,alternapalooza,alphabetize,alpaca,allus,allergist,alexandros,alaikum,akimbo,agoraphobia,agides,aggrhh,aftertaste,adoptions,adjuster,addictions,adamantium,activator,accomplishes,aberrant,aaaaargh,aaaaaaaaaaaaa,a'ight,zzzzzzz,zucchini,zookeeper,zirconia,zippers,zequiel,zellary,zeitgeist,zanuck,zagat,you'n,ylang,yes'm,yenta,yecchh,yecch,yawns,yankin,yahdah,yaaah,y'got,xeroxed,wwooww,wristwatch,wrangled,wouldst,worthiness,worshiping,wormy,wormtail,wormholes,woosh,wollsten,wolfing,woefully,wobbling,wintry,wingding,windstorm,windowtext,wiluna,wilting,wilted,willick,willenholly,wildflowers,wildebeest,whyyy,whoppers,whoaa,whizzing,whizz,whitest,whistled,whist,whinny,wheelies,whazzup,whatwhatwhaaat,whato,whatdya,what'dya,whacks,wewell,wetsuit,welluh,weeps,waylander,wavin,wassail,wasnt,warneford,warbucks,waltons,wallbanger,waiving,waitwait,vowing,voucher,vornoff,vorhees,voldemort,vivre,vittles,vindaloo,videogames,vichyssoise,vicarious,vesuvius,verguenza,ven't,velveteen,velour,velociraptor,vastness,vasectomies,vapors,vanderhof,valmont,validates,valiantly,vacuums,usurp,usernum,us'll,urinals,unyielding,unvarnished,unturned,untouchables,untangled,unsecured,unscramble,unreturned,unremarkable,unpretentious,unnerstand,unmade,unimpeachable,unfashionable,underwrite,underlining,underling,underestimates,underappreciated,uncouth,uncork,uncommonly,unclog,uncircumcised,unchallenged,uncas,unbuttoning,unapproved,unamerican,unafraid,umpteen,umhmm,uhwhy,ughuh,typewriters,twitches,twitched,twirly,twinkling,twinges,twiddling,turners,turnabout,tumblin,tryed,trowel,trousseau,trivialize,trifles,tribianni,trenchcoat,trembled,traumatize,transitory,transients,transfuse,transcribing,tranq,trampy,traipsed,trainin,trachea,traceable,touristy,toughie,toscanini,tortola,tortilla,torreon,toreador,tommorrow,tollbooth,tollans,toidy,togas,tofurkey,toddling,toddies,toasties,toadstool,to've,tingles,timin,timey,timetables,tightest,thuggee,thrusting,thrombus,throes,thrifty,thornharts,thinnest,thicket,thetas,thesulac,tethered,testaburger,tersenadine,terrif,terdlington,tepui,temping,tector,taxidermy,tastebuds,tartlets,tartabull,tar'd,tantamount,tangy,tangles,tamer,tabula,tabletops,tabithia,szechwan,synthedyne,svenjolly,svengali,survivalists,surmise,surfboards,surefire,suprise,supremacists,suppositories,superstore,supercilious,suntac,sunburned,summercliff,sullied,sugared,suckle,subtleties,substantiated,subsides,subliminal,subhuman,strowman,stroked,stroganoff,streetlight,straying,strainer,straighter,straightener,stoplight,stirrups,stewing,stereotyping,stepmommy,stephano,stashing,starshine,stairwells,squatsie,squandering,squalid,squabbling,squab,sprinkling,spreader,spongy,spokesmen,splintered,spittle,spitter,spiced,spews,spendin,spect,spearchucker,spatulas,southtown,soused,soshi,sorter,sorrowful,sooth,some'in,soliloquy,soiree,sodomized,sobriki,soaping,snows,snowcone,snitching,snitched,sneering,snausages,snaking,smoothed,smoochies,smarten,smallish,slushy,slurring,sluman,slithers,slippin,sleuthing,sleeveless,skinless,skillfully,sketchbook,skagnetti,sista,sinning,singularly,sinewy,silverlake,siguto,signorina,sieve,sidearms,shying,shunning,shtud,shrieks,shorting,shortbread,shopkeepers,shmancy,shizzit,shitheads,shitfaced,shipmates,shiftless,shelving,shedlow,shavings,shatters,sharifa,shampoos,shallots,shafter,sha'nauc,sextant,serviceable,sepsis,senores,sendin,semis,semanski,selflessly,seinfelds,seers,seeps,seductress,secaucus,sealant,scuttling,scusa,scrunched,scissorhands,schreber,schmancy,scamps,scalloped,savoir,savagery,sarong,sarnia,santangel,samool,sallow,salino,safecracker,sadism,sacrilegious,sabrini,sabath,s'aright,ruttheimer,rudest,rubbery,rousting,rotarian,roslin,roomed,romari,romanica,rolltop,rolfski,rockettes,roared,ringleader,riffing,ribcage,rewired,retrial,reting,resuscitated,restock,resale,reprogrammed,replicant,repentant,repellant,repays,repainting,renegotiating,rendez,remem,relived,relinquishes,relearn,relaxant,rekindling,rehydrate,refueled,refreshingly,refilling,reexamine,reeseman,redness,redeemable,redcoats,rectangles,recoup,reciprocated,reassessing,realy,realer,reachin,re'kali,rawlston,ravages,rappaports,ramoray,ramming,raindrops,rahesh,radials,racists,rabartu,quiches,quench,quarreling,quaintly,quadrants,putumayo,put'em,purifier,pureed,punitis,pullout,pukin,pudgy,puddings,puckering,pterodactyl,psychodrama,psats,protestations,protectee,prosaic,propositioned,proclivity,probed,printouts,prevision,pressers,preset,preposition,preempt,preemie,preconceptions,prancan,powerpuff,potties,potpie,poseur,porthole,poops,pooping,pomade,polyps,polymerized,politeness,polisher,polack,pocketknife,poatia,plebeian,playgroup,platonically,platitude,plastering,plasmapheresis,plaids,placemats,pizzazz,pintauro,pinstripes,pinpoints,pinkner,pincer,pimento,pileup,pilates,pigmen,pieeee,phrased,photocopies,phoebes,philistines,philanderer,pheromone,phasers,pfeffernuesse,pervs,perspire,personify,perservere,perplexed,perpetrating,perkiness,perjurer,periodontist,perfunctory,perdido,percodan,pentameter,pentacle,pensive,pensione,pennybaker,pennbrooke,penhall,pengin,penetti,penetrates,pegnoir,peeve,peephole,pectorals,peckin,peaky,peaksville,paxcow,paused,patted,parkishoff,parkers,pardoning,paraplegic,paraphrasing,paperers,papered,pangs,paneling,palooza,palmed,palmdale,palatable,pacify,pacified,owwwww,oversexed,overrides,overpaying,overdrawn,overcompensate,overcomes,overcharged,outmaneuver,outfoxed,oughtn't,ostentatious,oshun,orthopedist,or'derves,ophthalmologist,operagirl,oozes,oooooooh,onesie,omnis,omelets,oktoberfest,okeydoke,ofthe,ofher,obstetrical,obeys,obeah,o'henry,nyquil,nyanyanyanyah,nuttin,nutsy,nutball,nurhachi,numbskull,nullifies,nullification,nucking,nubbin,nourished,nonspecific,noing,noinch,nohoho,nobler,nitwits,newsprint,newspaperman,newscaster,neuropathy,netherworld,neediest,navasky,narcissists,napped,nafta,mache,mykonos,mutilating,mutherfucker,mutha,mutates,mutate,musn't,murchy,multitasking,mujeeb,mudslinging,muckraking,mousetrap,mourns,mournful,motherf,mostro,morphing,morphate,moralistic,moochy,mooching,monotonous,monopolize,monocle,molehill,moland,mofet,mockup,mobilizing,mmmmmmm,mitzvahs,mistreating,misstep,misjudge,misinformation,misdirected,miscarriages,miniskirt,mindwarped,minced,milquetoast,miguelito,mightily,midstream,midriff,mideast,microbe,methuselah,mesdames,mescal,men'll,memma,megaton,megara,megalomaniac,meeee,medulla,medivac,meaninglessness,mcnuggets,mccarthyism,maypole,may've,mauve,mateys,marshack,markles,marketable,mansiere,manservant,manse,manhandling,mallomars,malcontent,malaise,majesties,mainsail,mailmen,mahandra,magnolias,magnified,magev,maelstrom,machu,macado,m'boy,m'appelle,lustrous,lureen,lunges,lumped,lumberyard,lulled,luego,lucks,lubricated,loveseat,loused,lounger,loski,lorre,loora,looong,loonies,loincloth,lofts,lodgers,lobbing,loaner,livered,liqueur,ligourin,lifesaving,lifeguards,lifeblood,liaisons,let'em,lesbianism,lence,lemonlyman,legitimize,leadin,lazars,lazarro,lawyering,laugher,laudanum,latrines,lations,laters,lapels,lakefront,lahit,lafortunata,lachrymose,l'italien,kwaini,kruczynski,kramerica,kowtow,kovinsky,korsekov,kopek,knowakowski,knievel,knacks,kiowas,killington,kickball,keyworth,keymaster,kevie,keveral,kenyons,keggers,keepsakes,kechner,keaty,kavorka,karajan,kamerev,kaggs,jujyfruit,jostled,jonestown,jokey,joists,jocko,jimmied,jiggled,jests,jenzen,jenko,jellyman,jedediah,jealitosis,jaunty,jarmel,jankle,jagoff,jagielski,jackrabbits,jabbing,jabberjaw,izzat,irresponsibly,irrepressible,irregularity,irredeemable,inuvik,intuitions,intubated,intimates,interminable,interloper,intercostal,instyle,instigate,instantaneously,ining,ingrown,ingesting,infusing,infringe,infinitum,infact,inequities,indubitably,indisputable,indescribably,indentation,indefinable,incontrovertible,inconsequential,incompletes,incoherently,inclement,incidentals,inarticulate,inadequacies,imprudent,improprieties,imprison,imprinted,impressively,impostors,importante,imperious,impale,immodest,immobile,imbedded,imbecilic,illegals,idn't,hysteric,hypotenuse,hygienic,hyeah,hushpuppies,hunhh,humpback,humored,hummed,humiliates,humidifier,huggy,huggers,huckster,hotbed,hosing,hosers,horsehair,homebody,homebake,holing,holies,hoisting,hogwallop,hocks,hobbits,hoaxes,hmmmmm,hisses,hippest,hillbillies,hilarity,heurh,herniated,hermaphrodite,hennifer,hemlines,hemline,hemery,helplessness,helmsley,hellhound,heheheheh,heeey,hedda,heartbeats,heaped,healers,headstart,headsets,headlong,hawkland,havta,haulin,harvey'll,hanta,hansom,hangnail,handstand,handrail,handoff,hallucinogen,hallor,halitosis,haberdashery,gypped,guy'll,gumbel,guerillas,guava,guardrail,grunther,grunick,groppi,groomer,grodin,gripes,grinds,grifters,gretch,greevey,greasing,graveyards,grandkid,grainy,gouging,gooney,googly,goldmuff,goldenrod,goingo,godly,gobbledygook,gobbledegook,glues,gloriously,glengarry,glassware,glamor,gimmicks,giggly,giambetti,ghoulish,ghettos,ghali,gether,geriatrics,gerbils,geosynchronous,georgio,gente,gendarme,gelbman,gazillionth,gayest,gauging,gastro,gaslight,gasbag,garters,garish,garas,gantu,gangy,gangly,gangland,galling,gadda,furrowed,funnies,funkytown,fugimotto,fudging,fuckeen,frustrates,froufrou,froot,fromberge,frizzies,fritters,frightfully,friendliest,freeloading,freelancing,freakazoid,fraternization,framers,fornication,fornicating,forethought,footstool,foisting,focussing,focking,flurries,fluffed,flintstones,fledermaus,flayed,flawlessly,flatters,flashbang,flapped,fishies,firmer,fireproof,firebug,fingerpainting,finessed,findin,financials,finality,fillets,fiercest,fiefdom,fibbing,fervor,fentanyl,fenelon,fedorchuk,feckless,feathering,faucets,farewells,fantasyland,fanaticism,faltered,faggy,faberge,extorting,extorted,exterminating,exhumation,exhilaration,exhausts,exfoliate,excels,exasperating,exacting,everybody'd,evasions,espressos,esmail,errrr,erratically,eroding,ernswiler,epcot,enthralled,ensenada,enriching,enrage,enhancer,endear,encrusted,encino,empathic,embezzle,emanates,electricians,eking,egomaniacal,egging,effacing,ectoplasm,eavesdropped,dummkopf,dugray,duchaisne,drunkard,drudge,droop,droids,drips,dripped,dribbles,drazens,downy,downsize,downpour,dosages,doppelganger,dopes,doohicky,dontcha,doneghy,divining,divest,diuretics,diuretic,distrustful,disrupts,dismemberment,dismember,disinfect,disillusionment,disheartening,discourteous,discotheque,discolored,dirtiest,diphtheria,dinks,dimpled,didya,dickwad,diatribes,diathesis,diabetics,deviants,detonates,detests,detestable,detaining,despondent,desecration,derision,derailing,deputized,depressors,dependant,dentures,denominators,demur,demonology,delts,dellarte,delacour,deflated,defib,defaced,decorators,deaqon,davola,datin,darwinian,darklighters,dandelions,dampened,damaskinos,dalrimple,d'peshu,d'hoffryn,d'astier,cynics,cutesy,cutaway,curmudgeon,curdle,culpability,cuisinart,cuffing,crypts,cryptid,crunched,crumblers,crudely,crosscheck,croon,crissake,crevasse,creswood,creepo,creases,creased,creaky,cranks,crabgrass,coveralls,couple'a,coughs,coslaw,corporeal,cornucopia,cornering,corks,cordoned,coolly,coolin,cookbooks,contrite,contented,constrictor,confound,confit,confiscating,condoned,conditioners,concussions,comprendo,comers,combustible,combusted,collingswood,coldness,coitus,codicil,coasting,clydesdale,cluttering,clunker,clunk,clumsiness,clotted,clothesline,clinches,clincher,cleverness,clench,clein,cleanses,claymores,clammed,chugging,chronically,christsakes,choque,chompers,chiseling,chirpy,chirp,chinks,chingachgook,chickenpox,chickadee,chewin,chessboard,chargin,chanteuse,chandeliers,chamdo,chagrined,chaff,certs,certainties,cerreno,cerebrum,censured,cemetary,caterwauling,cataclysmic,casitas,cased,carvel,carting,carrear,carolling,carolers,carnie,cardiogram,carbuncle,capulets,canines,candaules,canape,caldecott,calamitous,cadillacs,cachet,cabeza,cabdriver,buzzards,butai,businesswomen,bungled,bumpkins,bummers,bulldoze,buffybot,bubut,bubbies,brrrrr,brownout,brouhaha,bronzing,bronchial,broiler,briskly,briefcases,bricked,breezing,breeher,breakable,breadstick,bravenet,braved,brandies,brainwaves,brainiest,braggart,bradlee,boys're,boys'll,boys'd,boutonniere,bossed,bosomy,borans,boosts,bookshelves,bookends,boneless,bombarding,bollo,boinked,boink,bluest,bluebells,bloodshot,blockhead,blockbusters,blithely,blather,blankly,bladders,blackbeard,bitte,bippy,biogenetics,bilge,bigglesworth,bicuspids,beususe,betaseron,besmirch,bernece,bereavement,bentonville,benchley,benching,bembe,bellyaching,bellhops,belie,beleaguered,behrle,beginnin,begining,beenie,beefs,beechwood,becau,beaverhausen,beakers,bazillion,baudouin,barrytown,barringtons,barneys,barbs,barbers,barbatus,bankrupted,bailiffs,backslide,baby'd,baaad,b'fore,awwwk,aways,awakes,automatics,authenticate,aught,aubyn,attired,attagirl,atrophied,asystole,astroturf,assertiveness,artichokes,arquillians,aright,archenemy,appraise,appeased,antin,anspaugh,anesthetics,anaphylactic,amscray,ambivalence,amalio,alriiight,alphabetized,alpena,alouette,allora,alliteration,allenwood,allegiances,algerians,alcerro,alastor,ahaha,agitators,aforethought,advertises,admonition,adirondacks,adenoids,acupuncturist,acula,actuarial,activators,actionable,achingly,accusers,acclimated,acclimate,absurdly,absorbent,absolvo,absolutes,absences,abdomenizer,aaaaaaaaah,aaaaaaaaaa,a'right".split(","),male_names:"james,john,robert,michael,william,david,richard,charles,joseph,thomas,christopher,daniel,paul,mark,donald,george,kenneth,steven,edward,brian,ronald,anthony,kevin,jason,matthew,gary,timothy,jose,larry,jeffrey,frank,scott,eric,stephen,andrew,raymond,gregory,joshua,jerry,dennis,walter,patrick,peter,harold,douglas,henry,carl,arthur,ryan,roger,joe,juan,jack,albert,jonathan,justin,terry,gerald,keith,samuel,willie,ralph,lawrence,nicholas,roy,benjamin,bruce,brandon,adam,harry,fred,wayne,billy,steve,louis,jeremy,aaron,randy,eugene,carlos,russell,bobby,victor,ernest,phillip,todd,jesse,craig,alan,shawn,clarence,sean,philip,chris,johnny,earl,jimmy,antonio,danny,bryan,tony,luis,mike,stanley,leonard,nathan,dale,manuel,rodney,curtis,norman,marvin,vincent,glenn,jeffery,travis,jeff,chad,jacob,melvin,alfred,kyle,francis,bradley,jesus,herbert,frederick,ray,joel,edwin,don,eddie,ricky,troy,randall,barry,bernard,mario,leroy,francisco,marcus,micheal,theodore,clifford,miguel,oscar,jay,jim,tom,calvin,alex,jon,ronnie,bill,lloyd,tommy,leon,derek,darrell,jerome,floyd,leo,alvin,tim,wesley,dean,greg,jorge,dustin,pedro,derrick,dan,zachary,corey,herman,maurice,vernon,roberto,clyde,glen,hector,shane,ricardo,sam,rick,lester,brent,ramon,tyler,gilbert,gene,marc,reginald,ruben,brett,nathaniel,rafael,edgar,milton,raul,ben,cecil,duane,andre,elmer,brad,gabriel,ron,roland,jared,adrian,karl,cory,claude,erik,darryl,neil,christian,javier,fernando,clinton,ted,mathew,tyrone,darren,lonnie,lance,cody,julio,kurt,allan,clayton,hugh,max,dwayne,dwight,armando,felix,jimmie,everett,ian,ken,bob,jaime,casey,alfredo,alberto,dave,ivan,johnnie,sidney,byron,julian,isaac,clifton,willard,daryl,virgil,andy,salvador,kirk,sergio,seth,kent,terrance,rene,eduardo,terrence,enrique,freddie,stuart,fredrick,arturo,alejandro,joey,nick,luther,wendell,jeremiah,evan,julius,donnie,otis,trevor,luke,homer,gerard,doug,kenny,hubert,angelo,shaun,lyle,matt,alfonso,orlando,rex,carlton,ernesto,pablo,lorenzo,omar,wilbur,blake,horace,roderick,kerry,abraham,rickey,ira,andres,cesar,johnathan,malcolm,rudolph,damon,kelvin,rudy,preston,alton,archie,marco,pete,randolph,garry,geoffrey,jonathon,felipe,bennie,gerardo,dominic,loren,delbert,colin,guillermo,earnest,benny,noel,rodolfo,myron,edmund,salvatore,cedric,lowell,gregg,sherman,devin,sylvester,roosevelt,israel,jermaine,forrest,wilbert,leland,simon,irving,owen,rufus,woodrow,sammy,kristopher,levi,marcos,gustavo,jake,lionel,marty,gilberto,clint,nicolas,laurence,ismael,orville,drew,ervin,dewey,wilfred,josh,hugo,ignacio,caleb,tomas,sheldon,erick,frankie,darrel,rogelio,terence,alonzo,elias,bert,elbert,ramiro,conrad,noah,grady,phil,cornelius,lamar,rolando,clay,percy,bradford,merle,darin,amos,terrell,moses,irvin,saul,roman,darnell,randal,tommie,timmy,darrin,brendan,toby,van,abel,dominick,emilio,elijah,cary,domingo,aubrey,emmett,marlon,emanuel,jerald,edmond,emil,dewayne,otto,teddy,reynaldo,bret,jess,trent,humberto,emmanuel,stephan,louie,vicente,lamont,garland,micah,efrain,heath,rodger,demetrius,ethan,eldon,rocky,pierre,eli,bryce,antoine,robbie,kendall,royce,sterling,grover,elton,cleveland,dylan,chuck,damian,reuben,stan,leonardo,russel,erwin,benito,hans,monte,blaine,ernie,curt,quentin,agustin,jamal,devon,adolfo,tyson,wilfredo,bart,jarrod,vance,denis,damien,joaquin,harlan,desmond,elliot,darwin,gregorio,kermit,roscoe,esteban,anton,solomon,norbert,elvin,nolan,carey,rod,quinton,hal,brain,rob,elwood,kendrick,darius,moises,marlin,fidel,thaddeus,cliff,marcel,ali,raphael,bryon,armand,alvaro,jeffry,dane,joesph,thurman,ned,sammie,rusty,michel,monty,rory,fabian,reggie,kris,isaiah,gus,avery,loyd,diego,adolph,millard,rocco,gonzalo,derick,rodrigo,gerry,rigoberto,alphonso,rickie,noe,vern,elvis,bernardo,mauricio,hiram,donovan,basil,nickolas,scot,vince,quincy,eddy,sebastian,federico,ulysses,heriberto,donnell,denny,gavin,emery,romeo,jayson,dion,dante,clement,coy,odell,jarvis,bruno,issac,dudley,sanford,colby,carmelo,nestor,hollis,stefan,donny,linwood,beau,weldon,galen,isidro,truman,delmar,johnathon,silas,frederic,irwin,merrill,charley,marcelino,carlo,trenton,kurtis,aurelio,winfred,vito,collin,denver,leonel,emory,pasquale,mohammad,mariano,danial,landon,dirk,branden,adan,numbers,clair,buford,bernie,wilmer,emerson,zachery,jacques,errol,josue,edwardo,wilford,theron,raymundo,daren,tristan,robby,lincoln,jame,genaro,octavio,cornell,hung,arron,antony,herschel,alva,giovanni,garth,cyrus,cyril,ronny,stevie,lon,kennith,carmine,augustine,erich,chadwick,wilburn,russ,myles,jonas,mitchel,mervin,zane,jamel,lazaro,alphonse,randell,johnie,jarrett,ariel,abdul,dusty,luciano,seymour,scottie,eugenio,mohammed,arnulfo,lucien,ferdinand,thad,ezra,aldo,rubin,mitch,earle,abe,marquis,lanny,kareem,jamar,boris,isiah,emile,elmo,aron,leopoldo,everette,josef,eloy,dorian,rodrick,reinaldo,lucio,jerrod,weston,hershel,lemuel,lavern,burt,jules,gil,eliseo,ahmad,nigel,efren,antwan,alden,margarito,refugio,dino,osvaldo,les,deandre,normand,kieth,ivory,trey,norberto,napoleon,jerold,fritz,rosendo,milford,sang,deon,christoper,alfonzo,lyman,josiah,brant,wilton,rico,jamaal,dewitt,brenton,yong,olin,faustino,claudio,judson,gino,edgardo,alec,jarred,donn,trinidad,tad,porfirio,odis,lenard,chauncey,tod,mel,marcelo,kory,augustus,keven,hilario,bud,sal,orval,mauro,dannie,zachariah,olen,anibal,milo,jed,thanh,amado,lenny,tory,richie,horacio,brice,mohamed,delmer,dario,mac,jonah,jerrold,robt,hank,sung,rupert,rolland,kenton,damion,chi,antone,waldo,fredric,bradly,kip,burl,tyree,jefferey,ahmed,willy,stanford,oren,moshe,mikel,enoch,brendon,quintin,jamison,florencio,darrick,tobias,minh,hassan,giuseppe,demarcus,cletus,tyrell,lyndon,keenan,werner,theo,geraldo,columbus,chet,bertram,markus,huey,hilton,dwain,donte,tyron,omer,isaias,hipolito,fermin,chung,adalberto,jamey,teodoro,mckinley,maximo,raleigh,lawerence,abram,rashad,emmitt,daron,chong,samual,otha,miquel,eusebio,dong,domenic,darron,wilber,renato,hoyt,haywood,ezekiel,chas,florentino,elroy,clemente,arden,neville,edison,deshawn,carrol,shayne,nathanial,jordon,danilo,claud,sherwood,raymon,rayford,cristobal,ambrose,titus,hyman,felton,ezequiel,erasmo,lonny,milan,lino,jarod,herb,andreas,rhett,jude,douglass,cordell,oswaldo,ellsworth,virgilio,toney,nathanael,benedict,mose,hong,isreal,garret,fausto,arlen,zack,modesto,francesco,manual,gaylord,gaston,filiberto,deangelo,michale,granville,malik,zackary,tuan,nicky,cristopher,antione,malcom,korey,jospeh,colton,waylon,hosea,shad,santo,rudolf,rolf,renaldo,marcellus,lucius,kristofer,harland,arnoldo,rueben,leandro,kraig,jerrell,jeromy,hobert,cedrick,arlie,winford,wally,luigi,keneth,jacinto,graig,franklyn,edmundo,leif,jeramy,willian,vincenzo,shon,michal,lynwood,jere,elden,darell,broderick,alonso".split(",")},e.exports=t},29478:(e,t,n)=>{var r,i,o,a,s,l;i=n(46556),o=n(92875),s=n(95399),r=n(7609),a=function(){return(new Date).getTime()},l=function(e,t){var n,l,c,u,d,p,h,f,m,g,y;for(null==t&&(t=[]),g=a(),m=[],c=0,u=t.length;c<u;c++)"string"!==(h=typeof(n=t[c]))&&"number"!==h&&"boolean"!==h||m.push(n.toString().toLowerCase());for(p in i.set_user_input_dictionary(m),d=i.omnimatch(e),(f=o.most_guessable_match_sequence(e,d)).calc_time=a()-g,l=s.estimate_attack_times(f.guesses))y=l[p],f[p]=y;return f.feedback=r.get_feedback(f.score,f.sequence),f},e.exports=l},46556:(e,t,n)=>{var r,i,o,a,s,l,c,u,d,p,h,f;for(h in u=n(49594),l=n(3508),f=n(92875),c=function(e){var t,n,r,i;for(i={},t=1,r=0,n=e.length;r<n;r++)i[e[r]]=t,t+=1;return i},a={},u)d=u[h],a[h]=c(d);i={qwerty:l.qwerty,dvorak:l.dvorak,keypad:l.keypad,mac_keypad:l.mac_keypad},o={a:["4","@"],b:["8"],c:["(","{","[","<"],e:["3"],g:["6","9"],i:["1","!","|"],l:["1","|","7"],o:["0"],s:["$","5"],t:["+","7"],x:["%"],z:["2"]},s={recent_year:/19\d\d|200\d|201\d/g},r={4:[[1,2],[2,3]],5:[[1,3],[2,3]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]},p={empty:function(e){var t;return 0===function(){var n;for(t in n=[],e)n.push(t);return n}().length},extend:function(e,t){return e.push.apply(e,t)},translate:function(e,t){var n;return function(){var r,i,o,a;for(a=[],i=0,r=(o=e.split("")).length;i<r;i++)n=o[i],a.push(t[n]||n);return a}().join("")},mod:function(e,t){return(e%t+t)%t},sorted:function(e){return e.sort((function(e,t){return e.i-t.i||e.j-t.j}))},omnimatch:function(e){var t,n,r,i,o;for(i=[],o=0,t=(r=[this.dictionary_match,this.reverse_dictionary_match,this.l33t_match,this.spatial_match,this.repeat_match,this.sequence_match,this.regex_match,this.date_match]).length;o<t;o++)n=r[o],this.extend(i,n.call(this,e));return this.sorted(i)},dictionary_match:function(e,t){var n,r,i,o,s,l,c,u,d,p,h,f,m,g;for(n in null==t&&(t=a),s=[],o=e.length,u=e.toLowerCase(),t)for(p=t[n],r=l=0,h=o;0<=h?l<h:l>h;r=0<=h?++l:--l)for(i=c=f=r,m=o;f<=m?c<m:c>m;i=f<=m?++c:--c)u.slice(r,+i+1||9e9)in p&&(d=p[g=u.slice(r,+i+1||9e9)],s.push({pattern:"dictionary",i:r,j:i,token:e.slice(r,+i+1||9e9),matched_word:g,rank:d,dictionary_name:n,reversed:!1,l33t:!1}));return this.sorted(s)},reverse_dictionary_match:function(e,t){var n,r,i,o,s,l;for(null==t&&(t=a),l=e.split("").reverse().join(""),o=0,n=(i=this.dictionary_match(l,t)).length;o<n;o++)(r=i[o]).token=r.token.split("").reverse().join(""),r.reversed=!0,s=[e.length-1-r.j,e.length-1-r.i],r.i=s[0],r.j=s[1];return this.sorted(i)},set_user_input_dictionary:function(e){return a.user_inputs=c(e.slice())},relevant_l33t_subtable:function(e,t){var n,r,i,o,a,s,l,c,u,d;for(a={},o=0,r=(s=e.split("")).length;o<r;o++)n=s[o],a[n]=!0;for(i in d={},t)u=t[i],(l=function(){var e,t,n;for(n=[],t=0,e=u.length;t<e;t++)(c=u[t])in a&&n.push(c);return n}()).length>0&&(d[i]=l);return d},enumerate_l33t_subs:function(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m;for(o=function(){var t;for(i in t=[],e)t.push(i);return t}(),m=[[]],n=function(e){var t,n,r,o,a,s,l,c;for(n=[],a={},s=0,o=e.length;s<o;s++)l=e[s],t=function(){var e,t,n;for(n=[],c=t=0,e=l.length;t<e;c=++t)i=l[c],n.push([i,c]);return n}(),t.sort(),r=function(){var e,n,r;for(r=[],c=n=0,e=t.length;n<e;c=++n)i=t[c],r.push(i+","+c);return r}().join("-"),r in a||(a[r]=!0,n.push(l));return n},r=function(t){var i,o,a,s,l,c,u,d,p,h,f,g,y,v,b,_;if(t.length){for(o=t[0],y=t.slice(1),u=[],d=0,l=(f=e[o]).length;d<l;d++)for(s=f[d],p=0,c=m.length;p<c;p++){for(i=-1,a=h=0,g=(v=m[p]).length;0<=g?h<g:h>g;a=0<=g?++h:--h)if(v[a][0]===s){i=a;break}-1===i?(_=v.concat([[s,o]]),u.push(_)):((b=v.slice(0)).splice(i,1),b.push([s,o]),u.push(v),u.push(b))}return m=n(u),r(y)}},r(o),f=[],c=0,s=m.length;c<s;c++){for(h={},u=0,l=(p=m[c]).length;u<l;u++)a=(d=p[u])[0],t=d[1],h[a]=t;f.push(h)}return f},l33t_match:function(e,t,n){var r,i,s,l,c,u,d,p,h,f,m,g,y,v,b,_;for(null==t&&(t=a),null==n&&(n=o),d=[],p=0,s=(f=this.enumerate_l33t_subs(this.relevant_l33t_subtable(e,n))).length;p<s&&(g=f[p],!this.empty(g));p++)for(v=this.translate(e,g),h=0,l=(m=this.dictionary_match(v,t)).length;h<l;h++)if(c=m[h],(b=e.slice(c.i,+c.j+1||9e9)).toLowerCase()!==c.matched_word){for(y in u={},g)r=g[y],-1!==b.indexOf(y)&&(u[y]=r);c.l33t=!0,c.token=b,c.sub=u,c.sub_display=function(){var e;for(i in e=[],u)_=u[i],e.push(i+" -> "+_);return e}().join(", "),d.push(c)}return this.sorted(d.filter((function(e){return e.token.length>1})))},spatial_match:function(e,t){var n,r,o;for(r in null==t&&(t=i),o=[],t)n=t[r],this.extend(o,this.spatial_match_helper(e,n,r));return this.sorted(o)},SHIFTED_RX:/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/,spatial_match_helper:function(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g;for(h=[],c=0;c<e.length-1;)for(u=c+1,d=null,g=0,m="qwerty"!==n&&"dvorak"!==n||!this.SHIFTED_RX.exec(e.charAt(c))?0:1;;){if(s=!1,l=-1,a=-1,i=t[e.charAt(u-1)]||[],u<e.length)for(o=e.charAt(u),f=0,p=i.length;f<p;f++)if(a+=1,(r=i[f])&&-1!==r.indexOf(o)){s=!0,l=a,1===r.indexOf(o)&&(m+=1),d!==l&&(g+=1,d=l);break}if(!s){u-c>2&&h.push({pattern:"spatial",i:c,j:u-1,token:e.slice(c,u),graph:n,turns:g,shifted_count:m}),c=u;break}u+=1}return h},repeat_match:function(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,m,g;for(m=[],o=/(.+)\1+/g,u=/(.+?)\1+/g,d=/^(.+?)\1+$/,c=0;c<e.length&&(o.lastIndex=u.lastIndex=c,a=o.exec(e),p=u.exec(e),null!=a);)a[0].length>p[0].length?(h=a,i=d.exec(h[0])[1]):i=(h=p)[1],s=(g=[h.index,h.index+h[0].length-1])[0],l=g[1],r=(t=f.most_guessable_match_sequence(i,this.omnimatch(i))).sequence,n=t.guesses,m.push({pattern:"repeat",i:s,j:l,token:h[0],base_token:i,base_guesses:n,base_matches:r,repeat_count:h[0].length/i.length}),c=l+1;return m},MAX_DELTA:5,sequence_match:function(e){var t,n,r,i,o,a,s,l,c,u;if(1===e.length)return[];for(u=this,c=function(t,n,r){var i,o,a,s;if((n-t>1||1===Math.abs(r))&&0<(i=Math.abs(r))&&i<=u.MAX_DELTA)return s=e.slice(t,+n+1||9e9),/^[a-z]+$/.test(s)?(o="lower",a=26):/^[A-Z]+$/.test(s)?(o="upper",a=26):/^\d+$/.test(s)?(o="digits",a=10):(o="unicode",a=26),l.push({pattern:"sequence",i:t,j:n,token:e.slice(t,+n+1||9e9),sequence_name:o,sequence_space:a,ascending:r>0})},l=[],n=0,o=null,i=a=1,s=e.length;1<=s?a<s:a>s;i=1<=s?++a:--a)t=e.charCodeAt(i)-e.charCodeAt(i-1),null==o&&(o=t),t!==o&&(c(n,r=i-1,o),n=r,o=t);return c(n,e.length-1,o),l},regex_match:function(e,t){var n,r,i,o;for(h in null==t&&(t=s),n=[],t)for((r=t[h]).lastIndex=0;i=r.exec(e);)o=i[0],n.push({pattern:"regex",token:o,i:i.index,j:i.index+i[0].length-1,regex_name:h,regex_match:i});return this.sorted(n)},date_match:function(e){var t,n,i,o,a,s,l,c,u,d,p,h,m,g,y,v,b,_,w,x,k,C,S,M,T,E,P,I,O,L,R,j,D,A;for(h=[],m=/^\d{4,8}$/,g=/^(\d{1,4})([\s\/\\_.-])(\d{1,2})\2(\d{1,4})$/,s=b=0,k=e.length-4;0<=k?b<=k:b>=k;s=0<=k?++b:--b)for(l=_=C=s+3,S=s+7;(C<=S?_<=S:_>=S)&&!(l>=e.length);l=C<=S?++_:--_)if(A=e.slice(s,+l+1||9e9),m.exec(A)){for(i=[],w=0,d=(M=r[A.length]).length;w<d;w++)c=(T=M[w])[0],u=T[1],null!=(a=this.map_ints_to_dmy([parseInt(A.slice(0,c)),parseInt(A.slice(c,u)),parseInt(A.slice(u))]))&&i.push(a);if(i.length>0){for(t=i[0],y=function(e){return Math.abs(e.year-f.REFERENCE_YEAR)},v=y(i[0]),x=0,p=(E=i.slice(1)).length;x<p;x++)(o=y(n=E[x]))<v&&(t=(P=[n,o])[0],v=P[1]);h.push({pattern:"date",token:A,i:s,j:l,separator:"",year:t.year,month:t.month,day:t.day})}}for(s=j=0,I=e.length-6;0<=I?j<=I:j>=I;s=0<=I?++j:--j)for(l=D=O=s+5,L=s+9;(O<=L?D<=L:D>=L)&&!(l>=e.length);l=O<=L?++D:--D)A=e.slice(s,+l+1||9e9),null!=(R=g.exec(A))&&null!=(a=this.map_ints_to_dmy([parseInt(R[1]),parseInt(R[3]),parseInt(R[4])]))&&h.push({pattern:"date",token:A,i:s,j:l,separator:R[2],year:a.year,month:a.month,day:a.day});return this.sorted(h.filter((function(e){var t,n,r,i;for(t=!1,i=0,n=h.length;i<n;i++)if(e!==(r=h[i])&&r.i<=e.i&&r.j>=e.j){t=!0;break}return!t})))},map_ints_to_dmy:function(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g;if(!(e[1]>31||e[1]<=0)){for(s=0,l=0,m=0,a=0,r=e.length;a<r;a++){if(99<(n=e[a])&&n<1e3||n>2050)return;n>31&&(l+=1),n>12&&(s+=1),n<=0&&(m+=1)}if(!(l>=2||3===s||m>=2)){for(c=0,i=(u=[[e[2],e.slice(0,2)],[e[0],e.slice(1,3)]]).length;c<i;c++)if(g=(p=u[c])[0],f=p[1],1e3<=g&&g<=2050)return null!=(t=this.map_ints_to_dm(f))?{year:g,month:t.month,day:t.day}:void 0;for(d=0,o=u.length;d<o;d++)if(g=(h=u[d])[0],f=h[1],null!=(t=this.map_ints_to_dm(f)))return{year:g=this.two_to_four_digit_year(g),month:t.month,day:t.day}}}},map_ints_to_dm:function(e){var t,n,r,i,o,a;for(i=0,n=(o=[e,e.slice().reverse()]).length;i<n;i++)if(t=(a=o[i])[0],r=a[1],1<=t&&t<=31&&1<=r&&r<=12)return{day:t,month:r}},two_to_four_digit_year:function(e){return e>99?e:e>50?e+1900:e+2e3}},e.exports=p},92875:(e,t,n)=>{var r,i,o,a;r=n(3508),i=function(e){var t,n,r,i,o;for(r in t=0,e)o=e[r],t+=function(){var e,t,n;for(n=[],t=0,e=o.length;t<e;t++)(i=o[t])&&n.push(i);return n}().length;return t/=function(){var t;for(n in t=[],e)e[n],t.push(n);return t}().length},a={nCk:function(e,t){var n,r,i,o;if(t>e)return 0;if(0===t)return 1;for(i=1,n=r=1,o=t;1<=o?r<=o:r>=o;n=1<=o?++r:--r)i*=e,i/=n,e-=1;return i},log10:function(e){return Math.log(e)/Math.log(10)},log2:function(e){return Math.log(e)/Math.log(2)},factorial:function(e){var t,n,r,i;if(e<2)return 1;for(t=1,n=r=2,i=e;2<=i?r<=i:r>=i;n=2<=i?++r:--r)t*=n;return t},most_guessable_match_sequence:function(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x,k,C,S;for(null==n&&(n=!1),h=e.length,p=function(){var e,t,n;for(n=[],e=0,t=h;0<=t?e<t:e>t;0<=t?++e:--e)n.push([]);return n}(),f=0,s=t.length;f<s;f++)p[(u=t[f]).j].push(u);for(v=0,l=p.length;v<l;v++)p[v].sort((function(e,t){return e.i-t.i}));for(m={m:function(){var e,t,n;for(t=[],n=0,e=h;0<=e?n<e:n>e;0<=e?++n:--n)t.push({});return t}(),pi:function(){var e,t,n;for(t=[],n=0,e=h;0<=e?n<e:n>e;0<=e?++n:--n)t.push({});return t}(),g:function(){var e,t,n;for(t=[],n=0,e=h;0<=e?n<e:n>e;0<=e?++n:--n)t.push({});return t}()},S=this,k=function(t,r){var i,o,a,s,l,c;for(o in s=t.j,l=S.estimate_guesses(t,e),r>1&&(l*=m.pi[t.i-1][r-1]),a=S.factorial(r)*l,n||(a+=Math.pow(1e4,r-1)),c=m.g[s])if(i=c[o],!(o>r)&&i<=a)return;return m.g[s][r]=a,m.m[s][r]=t,m.pi[s][r]=l},r=function(e){var t,n,r,i,o,a;for(u=d(0,e),k(u,1),o=[],t=a=1,i=e;1<=i?a<=i:a>=i;t=1<=i?++a:--a)u=d(t,e),o.push(function(){var e,i;for(n in i=[],e=m.m[t-1])r=e[n],n=parseInt(n),"bruteforce"!==r.pattern&&i.push(k(u,n+1));return i}());return o},d=function(t,n){return{pattern:"bruteforce",token:e.slice(t,+n+1||9e9),i:t,j:n}},x=function(e){var t,n,r,i,o,a,s;for(n in a=[],i=e-1,o=void 0,r=1/0,s=m.g[i])(t=s[n])<r&&(o=n,r=t);for(;i>=0;)u=m.m[i][o],a.unshift(u),i=u.i-1,o--;return a},o=w=0,b=h;0<=b?w<b:w>b;o=0<=b?++w:--w){for(C=0,c=(_=p[o]).length;C<c;C++)if((u=_[C]).i>0)for(a in m.m[u.i-1])a=parseInt(a),k(u,a+1);else k(u,1);r(o)}return g=(y=x(h)).length,i=0===e.length?1:m.g[h-1][g],{password:e,guesses:i,guesses_log10:this.log10(i),sequence:y}},estimate_guesses:function(e,t){var n,r;return null!=e.guesses||(r=1,e.token.length<t.length&&(r=1===e.token.length?10:50),n={bruteforce:this.bruteforce_guesses,dictionary:this.dictionary_guesses,spatial:this.spatial_guesses,repeat:this.repeat_guesses,sequence:this.sequence_guesses,regex:this.regex_guesses,date:this.date_guesses}[e.pattern].call(this,e),e.guesses=Math.max(n,r),e.guesses_log10=this.log10(e.guesses)),e.guesses},bruteforce_guesses:function(e){var t,n;return(t=Math.pow(10,e.token.length))===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE),n=1===e.token.length?11:51,Math.max(t,n)},repeat_guesses:function(e){return e.base_guesses*e.repeat_count},sequence_guesses:function(e){var t,n;return t="a"===(n=e.token.charAt(0))||"A"===n||"z"===n||"Z"===n||"0"===n||"1"===n||"9"===n?4:n.match(/\d/)?10:26,e.ascending||(t*=2),t*e.token.length},MIN_YEAR_SPACE:20,REFERENCE_YEAR:(new Date).getFullYear(),regex_guesses:function(e){var t,n;return t={alpha_lower:26,alpha_upper:26,alpha:52,alphanumeric:62,digits:10,symbols:33},e.regex_name in t?Math.pow(t[e.regex_name],e.token.length):"recent_year"===e.regex_name?(n=Math.abs(parseInt(e.regex_match[0])-this.REFERENCE_YEAR),n=Math.max(n,this.MIN_YEAR_SPACE)):void 0},date_guesses:function(e){var t;return t=365*Math.max(Math.abs(e.year-this.REFERENCE_YEAR),this.MIN_YEAR_SPACE),e.separator&&(t*=4),t},KEYBOARD_AVERAGE_DEGREE:i(r.qwerty),KEYPAD_AVERAGE_DEGREE:i(r.keypad),KEYBOARD_STARTING_POSITIONS:function(){var e,t;for(o in t=[],e=r.qwerty)e[o],t.push(o);return t}().length,KEYPAD_STARTING_POSITIONS:function(){var e,t;for(o in t=[],e=r.keypad)e[o],t.push(o);return t}().length,spatial_guesses:function(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y;for("qwerty"===(u=e.graph)||"dvorak"===u?(f=this.KEYBOARD_STARTING_POSITIONS,i=this.KEYBOARD_AVERAGE_DEGREE):(f=this.KEYPAD_STARTING_POSITIONS,i=this.KEYPAD_AVERAGE_DEGREE),o=0,t=e.token.length,g=e.turns,a=l=2,d=t;2<=d?l<=d:l>=d;a=2<=d?++l:--l)for(s=c=1,p=Math.min(g,a-1);1<=p?c<=p:c>=p;s=1<=p?++c:--c)o+=this.nCk(a-1,s-1)*f*Math.pow(i,s);if(e.shifted_count)if(n=e.shifted_count,r=e.token.length-e.shifted_count,0===n||0===r)o*=2;else{for(m=0,a=y=1,h=Math.min(n,r);1<=h?y<=h:y>=h;a=1<=h?++y:--y)m+=this.nCk(n+r,a);o*=m}return o},dictionary_guesses:function(e){var t;return e.base_guesses=e.rank,e.uppercase_variations=this.uppercase_variations(e),e.l33t_variations=this.l33t_variations(e),t=e.reversed?2:1,e.base_guesses*e.uppercase_variations*e.l33t_variations*t},START_UPPER:/^[A-Z][^A-Z]+$/,END_UPPER:/^[^A-Z]+[A-Z]$/,ALL_UPPER:/^[^a-z]+$/,ALL_LOWER:/^[^A-Z]+$/,uppercase_variations:function(e){var t,n,r,i,o,a,s,l,c,u,d,p;if((p=e.token).match(this.ALL_LOWER)||p.toLowerCase()===p)return 1;for(a=0,o=(l=[this.START_UPPER,this.END_UPPER,this.ALL_UPPER]).length;a<o;a++)if(u=l[a],p.match(u))return 2;for(n=function(){var e,t,n,i;for(i=[],t=0,e=(n=p.split("")).length;t<e;t++)(r=n[t]).match(/[A-Z]/)&&i.push(r);return i}().length,t=function(){var e,t,n,i;for(i=[],t=0,e=(n=p.split("")).length;t<e;t++)(r=n[t]).match(/[a-z]/)&&i.push(r);return i}().length,d=0,i=s=1,c=Math.min(n,t);1<=c?s<=c:s>=c;i=1<=c?++s:--s)d+=this.nCk(n+t,i);return d},l33t_variations:function(e){var t,n,r,i,o,a,s,l,c,u,d,p;if(!e.l33t)return 1;for(u in p=1,l=e.sub)if(d=l[u],i=e.token.toLowerCase().split(""),t=function(){var e,t,n;for(n=[],t=0,e=i.length;t<e;t++)(r=i[t])===u&&n.push(r);return n}().length,n=function(){var e,t,n;for(n=[],t=0,e=i.length;t<e;t++)(r=i[t])===d&&n.push(r);return n}().length,0===t||0===n)p*=2;else{for(s=0,o=a=1,c=Math.min(n,t);1<=c?a<=c:a>=c;o=1<=c?++a:--a)s+=this.nCk(n+t,o);p*=s}return p}},e.exports=a},95399:e=>{var t;t={estimate_attack_times:function(e){var t,n,r,i;for(r in t={},n={online_throttling_100_per_hour:e/(100/3600),online_no_throttling_10_per_second:e/10,offline_slow_hashing_1e4_per_second:e/1e4,offline_fast_hashing_1e10_per_second:e/1e10})i=n[r],t[r]=this.display_time(i);return{crack_times_seconds:n,crack_times_display:t,score:this.guesses_to_score(e)}},guesses_to_score:function(e){return 5,e<1005?0:e<1000005?1:e<100000005?2:e<10000000005?3:4},display_time:function(e){var t,n,r,i,o,a,s,l;return 60,o=3600,a=31*(n=86400),100*(l=32140800),i=(s=e<1?[null,"less than a second"]:e<60?[t=Math.round(e),t+" second"]:e<o?[t=Math.round(e/60),t+" minute"]:e<n?[t=Math.round(e/o),t+" hour"]:e<a?[t=Math.round(e/n),t+" day"]:e<l?[t=Math.round(e/a),t+" month"]:e<321408e4?[t=Math.round(e/l),t+" year"]:[null,"centuries"])[1],null!=(r=s[0])&&1!==r&&(i+="s"),i}},e.exports=t},64946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"main-app-color":"#43a047","main-info-color":"#546e7a","main-gray-900":"#000","main-gray-800":"#464646","main-gray-700":"#606060","main-gray-600":"#7a7a7a","main-gray-500":"#909090","main-gray-400":"#c2c2c2","main-gray-300":"#e0e0e0","main-gray-200":"#f1f1f1","main-gray-100":"#f7f7f7","main-green-900":"#005c00","main-green-800":"#1e7a14","main-green-700":"#2e8023","main-green-600":"#399d2b","main-green-400":"#5fb854","main-green-200":"#a2d29b","main-green-100":"#d7ebd5","main-green-50":"#e7f5e6","main-blue-600":"#4988ef","orange-papaya":"#f9d76d","type-pears":"#c2df4e","orange-papaya-light":"#fdf3d9","papaya-whip":"#fdf3d9","NDVI-lowest":"#db593b","main-shape-color":"#38f","error-shape-color":"#e95e5f","very-light-azure":"rgba(25,134,245,.25)","azureish-white":"#d5e9fd","dodger-blue":"#1986f5",saffron:"#f4c430","error-background":"#ffe6e0","error-text":"#ff0611","menubar-height":"48px","panel-padding":"1rem"}},49363:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/background.df8889a783eaf9f5a862.jpg"},46821:()=>{},7281:()=>{},9765:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},28344:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},65900:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},94750:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},60901:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>o})},52319:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},97880:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},48720:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},90359:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},64991:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(91839);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},57995:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},91839:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},17578:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},63392:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(19298),i=function(e,t,n){if(e&&"reportValidity"in e){var i=(0,r.U2)(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},o=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?i(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return i(t,n,e)}))};for(var r in t.fields)n(r)},a=function(e,t){t.shouldUseNativeValidation&&o(e,t);var n={};for(var i in e){var a=(0,r.U2)(t.fields,i);(0,r.t8)(n,i,Object.assign(e[i],{ref:a&&a.ref}))}return n},s=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(s,l,c){try{return Promise.resolve(function(r,a){try{var u=(t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](s,Object.assign({abortEarly:!1},t,{context:l}))).then((function(e){return c.shouldUseNativeValidation&&o({},c),{values:n.rawValues?s:e,errors:{}}})))}catch(i){return a(i)}return u&&u.then?u.then(void 0,a):u}(0,(function(e){if(!e.inner)throw e;return{values:{},errors:a((t=e,n=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(t.inner||[]).reduce((function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var i=e[t.path].types,o=i&&i[t.type];e[t.path]=(0,r.KN)(t.path,n,e,t.type,o?[].concat(o,t.message):t.message)}return e}),{})),c)};var t,n})))}catch(i){return Promise.reject(i)}}}},36777:(e,t,n)=>{"use strict";n.d(t,{UQ:()=>CU,rN:()=>Q,_O:()=>Ge,bZ:()=>TU,Cd:()=>Mt,F2:()=>gV,qE:()=>qd.Z,vz:()=>FY,xu:()=>b$,zx:()=>Ju,hE:()=>BU,Bj:()=>yJ,XZ:()=>du,Af:()=>e$,D8:()=>Zd.Z,vL:()=>sV,W2:()=>W$,hO:()=>G$,kX:()=>C$,cZ:()=>k$,iz:()=>Y$,LD:()=>oJ,mQ:()=>Wi,NI:()=>Eo,t8:()=>ud,cw:()=>nd,Q6:()=>n$,lX:()=>_o,Gm:()=>sJ,JO:()=>yU,hU:()=>nt,oG:()=>nu,DQ:()=>NB,wW:()=>lJ,rU:()=>bd,aV:()=>zn,HC:()=>Pd,nZ:()=>Jc,F_:()=>Ld,fl:()=>RU,v2:()=>p$,sN:()=>h$,zu:()=>io,tl:()=>_V,Xk:()=>v$,sw:()=>cJ,Y8:()=>Mc,Ee:()=>id,VQ:()=>uJ,UW:()=>Fd,Ph:()=>l$,mg:()=>eV,o9:()=>x$,Od:()=>lV,Kq:()=>_$,h8:()=>As,_V:()=>Es,Pj:()=>tl,M_:()=>Zs,vF:()=>M$,le:()=>_U,rs:()=>E$,OK:()=>m$,iA:()=>P$,RM:()=>I$,pj:()=>O$,xJ:()=>L$,ss:()=>R$,SC:()=>j$,V2:()=>g$,nv:()=>u$,FB:()=>IQ,yW:()=>gJ,TY:()=>VQ,CO:()=>A$,th:()=>F$,u:()=>nn,ZT:()=>GU,bd:()=>WU,Km:()=>TQ,qp:()=>MQ,zo:()=>l.ZP,rS:()=>Sf,HB:()=>wJ,GN:()=>qU,ac:()=>Vd,Fg:()=>s.Z});var r=n(18178),i=n.t(r,2),o=n(84917),a=n(22297),s=n(56167),l=n(40065),c=n(59120),u=n(30535);function d(e){return(0,u.Z)("MuiAccordion",e)}const p=(0,c.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);function h(e){return(0,u.Z)("MuiAccordionSummary",e)}const f=(0,c.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);function m(e){return(0,u.Z)("MuiAccordionDetails",e)}const g=(0,c.Z)("MuiAccordionDetails",["root"]);function y(e){return(0,u.Z)("MuiList",e)}const v=(0,c.Z)("MuiList",["root","padding","dense","subheader"]);function b(e){return(0,u.Z)("MuiListItemButton",e)}const _=(0,c.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w(e){return(0,u.Z)("MuiListItem",e)}const x=(0,c.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function k(e){return(0,u.Z)("MuiListItemText",e)}const C=(0,c.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const S=(0,c.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const M=(0,c.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var T=n(5380),E=n(97880),P=n(52319),I=(n(19730),n(64692)),O=n(64570),L=n(55582),R=n(72618),j=n(95732),D=n(87534),A=n(45557);function N(e){return(0,u.Z)("MuiCollapse",e)}(0,c.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var F=n(5651);const z=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],B=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,P.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),U=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),$=(0,l.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,P.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),V=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:f,onExit:m,onExited:g,onExiting:y,orientation:v="vertical",style:b,timeout:_=j.x9.standard,TransitionComponent:w=R.ZP}=n,x=(0,E.Z)(n,z),k=(0,P.Z)({},n,{orientation:v,collapsedSize:l}),C=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,O.Z)(r,N,n)})(k),S=(0,s.Z)(),M=r.useRef(),T=r.useRef(null),V=r.useRef(),q="number"===typeof l?`${l}px`:l,Z="horizontal"===v,H=Z?"width":"height";r.useEffect((()=>()=>{clearTimeout(M.current)}),[]);const G=r.useRef(null),W=(0,A.Z)(t,G),Y=e=>t=>{if(e){const n=G.current;void 0===t?e(n):e(n,t)}},K=()=>T.current?T.current[Z?"clientWidth":"clientHeight"]:0,X=Y(((e,t)=>{T.current&&Z&&(T.current.style.position="absolute"),e.style[H]=q,p&&p(e,t)})),J=Y(((e,t)=>{const n=K();T.current&&Z&&(T.current.style.position="");const{duration:r,easing:i}=(0,D.C)({style:b,timeout:_,easing:u},{mode:"enter"});if("auto"===_){const t=S.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,V.current=t}else e.style.transitionDuration="string"===typeof r?r:`${r}ms`;e.style[H]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)})),Q=Y(((e,t)=>{e.style[H]="auto",h&&h(e,t)})),ee=Y((e=>{e.style[H]=`${K()}px`,m&&m(e)})),te=Y(g),ne=Y((e=>{const t=K(),{duration:n,easing:r}=(0,D.C)({style:b,timeout:_,easing:u},{mode:"exit"});if("auto"===_){const n=S.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,V.current=n}else e.style.transitionDuration="string"===typeof n?n:`${n}ms`;e.style[H]=q,e.style.transitionTimingFunction=r,y&&y(e)}));return(0,F.jsx)(w,(0,P.Z)({in:d,onEnter:X,onEntered:Q,onEntering:J,onExit:ee,onExited:te,onExiting:ne,addEndListener:e=>{"auto"===_&&(M.current=setTimeout(e,V.current||0)),i&&i(G.current,e)},nodeRef:G,timeout:"auto"===_?null:_},x,{children:(e,t)=>(0,F.jsx)(B,(0,P.Z)({as:c,className:(0,I.Z)(C.root,a,{entered:C.entered,exited:!d&&"0px"===q&&C.hidden}[e]),style:(0,P.Z)({[Z?"minWidth":"minHeight"]:q},b),ownerState:(0,P.Z)({},k,{state:e}),ref:W},t,{children:(0,F.jsx)(U,{ownerState:(0,P.Z)({},k,{state:e}),className:C.wrapper,ref:T,children:(0,F.jsx)($,{ownerState:(0,P.Z)({},k,{state:e}),className:C.wrapperInner,children:o})})}))}))}));V.muiSupportAuto=!0;const q=V;var Z=n(86504);const H=r.createContext({});const G=n(56040).Z,W=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Y=(0,l.ZP)(Z.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${p.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],n),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${p.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${p.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},!n.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!n.disableGutters&&{[`&.${p.expanded}`]:{margin:"16px 0"}})})),K=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:p=!1,TransitionComponent:h=q,TransitionProps:f}=n,m=(0,E.Z)(n,W),[g,y]=G({controlled:c,default:a,name:"Accordion",state:"expanded"}),v=r.useCallback((e=>{y(!g),u&&u(e,!g)}),[g,u,y]),[b,..._]=r.Children.toArray(i),w=r.useMemo((()=>({expanded:g,disabled:s,disableGutters:l,toggle:v})),[g,s,l,v]),x=(0,P.Z)({},n,{square:p,disabled:s,disableGutters:l,expanded:g}),k=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,O.Z)(a,d,t)})(x);return(0,F.jsxs)(Y,(0,P.Z)({className:(0,I.Z)(k.root,o),ref:t,ownerState:x,square:p},m,{children:[(0,F.jsx)(H.Provider,{value:w,children:b}),(0,F.jsx)(h,(0,P.Z)({in:g,timeout:"auto"},f,{children:(0,F.jsx)("div",{"aria-labelledby":b.props.id,id:b.props["aria-controls"],role:"region",className:k.region,children:_})}))]}))})),X=["className"],J=(0,l.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}})),Q=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,E.Z)(n,X),o=n,a=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},m,t)})(o);return(0,F.jsx)(J,(0,P.Z)({className:(0,I.Z)(a.root,r),ref:t,ownerState:o},i))}));var ee=n(19810);const te=ee.Z;let ne,re=!0,ie=!1;const oe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ae(e){e.metaKey||e.altKey||e.ctrlKey||(re=!0)}function se(){re=!1}function le(){"hidden"===this.visibilityState&&ie&&(re=!0)}function ce(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return re||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!oe[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const ue=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ae,!0),t.addEventListener("mousedown",se,!0),t.addEventListener("pointerdown",se,!0),t.addEventListener("touchstart",se,!0),t.addEventListener("visibilitychange",le,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ce(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ie=!0,window.clearTimeout(ne),ne=window.setTimeout((()=>{ie=!1}),100),t.current=!1,!0)},ref:e}};var de=n(57995),pe=n(90359),he=n(48720),fe=n(64991),me=n(84480);function ge(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function ye(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ve(e,t,n){var i=ge(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,r.isValidElement)(s)){var l=a in t,c=a in i,u=t[a],d=(0,r.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,r.isValidElement)(u)&&(o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ye(s,"exit",e),enter:ye(s,"enter",e)})):o[a]=(0,r.cloneElement)(s,{in:!1}):o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ye(s,"exit",e),enter:ye(s,"enter",e)})}})),o}var be=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},_e=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,he.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,fe.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,i=a,ge(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:ye(e,"appear",n),enter:ye(e,"enter",n),exit:ye(e,"exit",n)})}))):ve(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=ge(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,pe.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,de.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=be(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?r.createElement(me.Z.Provider,{value:o},a):r.createElement(me.Z.Provider,{value:o},r.createElement(t,i,a))},t}(r.Component);_e.propTypes={},_e.defaultProps={component:"div",childFactory:function(e){return e}};const we=_e;const xe=function(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=r.useState(!1),h=(0,I.Z)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),f={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,I.Z)(n.child,d&&n.childLeaving,i&&n.childPulsate);return l||d||p(!0),r.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,F.jsx)("span",{className:h,style:f,children:(0,F.jsx)("span",{className:m})})};const ke=(0,c.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ce=["center","classes","className"];let Se,Me,Te,Ee,Pe=e=>e;const Ie=(0,o.F4)(Se||(Se=Pe`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),Oe=(0,o.F4)(Me||(Me=Pe`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),Le=(0,o.F4)(Te||(Te=Pe`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),Re=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),je=(0,l.ZP)(xe,{name:"MuiTouchRipple",slot:"Ripple"})(Ee||(Ee=Pe`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),ke.rippleVisible,Ie,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),ke.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),ke.child,ke.childLeaving,Oe,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),ke.childPulsate,Le,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),De=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=(0,E.Z)(n,Ce),[l,c]=r.useState([]),u=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=r.useRef(!1),h=r.useRef(0),f=r.useRef(null),m=r.useRef(null);r.useEffect((()=>()=>{h.current&&clearTimeout(h.current)}),[]);const g=r.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c((e=>[...e,(0,F.jsx)(je,{classes:{ripple:(0,I.Z)(o.ripple,ke.ripple),rippleVisible:(0,I.Z)(o.rippleVisible,ke.rippleVisible),ripplePulsate:(0,I.Z)(o.ripplePulsate,ke.ripplePulsate),child:(0,I.Z)(o.child,ke.child),childLeaving:(0,I.Z)(o.childLeaving,ke.childLeaving),childPulsate:(0,I.Z)(o.childPulsate,ke.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),y=r.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:o=i||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[i,g]),v=r.useCallback((()=>{y({},{pulsate:!0})}),[y]),b=r.useCallback(((e,t)=>{if(clearTimeout(h.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(h.current=setTimeout((()=>{b(e,t)})));f.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:y,stop:b})),[v,y,b]),(0,F.jsx)(Re,(0,P.Z)({className:(0,I.Z)(ke.root,o.root,a),ref:m},s,{children:(0,F.jsx)(we,{component:null,exit:!0,children:l})}))})),Ae=De;function Ne(e){return(0,u.Z)("MuiButtonBase",e)}const Fe=(0,c.Z)("MuiButtonBase",["root","disabled","focusVisible"]),ze=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Be=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Fe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ue=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:b,onKeyDown:_,onKeyUp:w,onMouseDown:x,onMouseLeave:k,onMouseUp:C,onTouchEnd:S,onTouchMove:M,onTouchStart:T,tabIndex:R=0,TouchRippleProps:j,touchRippleRef:D,type:N}=n,z=(0,E.Z)(n,ze),B=r.useRef(null),U=r.useRef(null),$=(0,A.Z)(U,D),{isFocusVisibleRef:V,onFocus:q,onBlur:Z,ref:H}=ue(),[G,W]=r.useState(!1);c&&G&&W(!1),r.useImperativeHandle(i,(()=>({focusVisible:()=>{W(!0),B.current.focus()}})),[]);const[Y,K]=r.useState(!1);r.useEffect((()=>{K(!0)}),[]);const X=Y&&!u&&!c;function J(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return te((r=>{t&&t(r);return!n&&U.current&&U.current[e](r),!0}))}r.useEffect((()=>{G&&p&&!u&&Y&&U.current.pulsate()}),[u,p,G,Y]);const Q=J("start",x),ee=J("stop",g),ne=J("stop",y),re=J("stop",C),ie=J("stop",(e=>{G&&e.preventDefault(),k&&k(e)})),oe=J("start",T),ae=J("stop",S),se=J("stop",M),le=J("stop",(e=>{Z(e),!1===V.current&&W(!1),f&&f(e)}),!1),ce=te((e=>{B.current||(B.current=e.currentTarget),q(e),!0===V.current&&(W(!0),b&&b(e)),v&&v(e)})),de=()=>{const e=B.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},pe=r.useRef(!1),he=te((e=>{p&&!pe.current&&G&&U.current&&" "===e.key&&(pe.current=!0,U.current.stop(e,(()=>{U.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),fe=te((e=>{p&&" "===e.key&&U.current&&G&&!e.defaultPrevented&&(pe.current=!1,U.current.stop(e,(()=>{U.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let me=l;"button"===me&&(z.href||z.to)&&(me=h);const ge={};"button"===me?(ge.type=void 0===N?"button":N,ge.disabled=c):(z.href||z.to||(ge.role="button"),c&&(ge["aria-disabled"]=c));const ye=(0,A.Z)(t,H,B);const ve=(0,P.Z)({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:G}),be=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,O.Z)(o,Ne,i);return n&&r&&(a.root+=` ${r}`),a})(ve);return(0,F.jsxs)(Be,(0,P.Z)({as:me,className:(0,I.Z)(be.root,s),ownerState:ve,onBlur:le,onClick:m,onContextMenu:ee,onFocus:ce,onKeyDown:he,onKeyUp:fe,onMouseDown:Q,onMouseLeave:ie,onMouseUp:re,onDragLeave:ne,onTouchEnd:ae,onTouchMove:se,onTouchStart:oe,ref:ye,tabIndex:c?-1:R,type:N},ge,z,{children:[a,X?(0,F.jsx)(Ae,(0,P.Z)({ref:$,center:o},j)):null]}))})),$e=Ue,Ve=["children","className","expandIcon","focusVisibleClassName","onClick"],qe=(0,l.ZP)($e,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;const r={duration:t.transitions.duration.shortest};return(0,P.Z)({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],r),[`&.${f.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${f.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${f.disabled})`]:{cursor:"pointer"}},!n.disableGutters&&{[`&.${f.expanded}`]:{minHeight:64}})})),Ze=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!n.disableGutters&&{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${f.expanded}`]:{margin:"20px 0"}})})),He=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${f.expanded}`]:{transform:"rotate(180deg)"}}})),Ge=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l}=n,c=(0,E.Z)(n,Ve),{disabled:u=!1,disableGutters:d,expanded:p,toggle:f}=r.useContext(H),m=(0,P.Z)({},n,{expanded:p,disabled:u,disableGutters:d}),g=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,O.Z)(o,h,t)})(m);return(0,F.jsxs)(qe,(0,P.Z)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:(0,I.Z)(g.root,o),focusVisibleClassName:(0,I.Z)(g.focusVisible,s),onClick:e=>{f&&f(e),l&&l(e)},ref:t,ownerState:m},c,{children:[(0,F.jsx)(Ze,{className:g.content,ownerState:m,children:i}),a&&(0,F.jsx)(He,{className:g.expandIconWrapper,ownerState:m,children:a})]}))}));var We=n(61131),Ye=n(44387);function Ke(e){return(0,u.Z)("MuiAlert",e)}const Xe=(0,c.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Je(e){return(0,u.Z)("MuiIconButton",e)}const Qe=(0,c.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),et=["edge","children","className","color","disabled","disableFocusRipple","size"],tt=(0,l.ZP)($e,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ye.Z)(n.color)}`],n.edge&&t[`edge${(0,Ye.Z)(n.edge)}`],t[`size${(0,Ye.Z)(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,P.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,P.Z)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,P.Z)({},i&&{backgroundColor:t.vars?`rgba(${i.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${Qe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),nt=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,E.Z)(n,et),d=(0,P.Z)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,Ye.Z)(r)}`,i&&`edge${(0,Ye.Z)(i)}`,`size${(0,Ye.Z)(o)}`]};return(0,O.Z)(a,Je,t)})(d);return(0,F.jsx)(tt,(0,P.Z)({className:(0,I.Z)(p.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:i}))}));var rt=n(75049);const it=(0,rt.Z)((0,F.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ot=(0,rt.Z)((0,F.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),at=(0,rt.Z)((0,F.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),st=(0,rt.Z)((0,F.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lt=(0,rt.Z)((0,F.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ct=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ut=(0,l.ZP)(Z.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Ye.Z)(n.color||n.severity)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?We._j:We.$n,i="light"===t.palette.mode?We.$n:We._j,o=n.color||n.severity;return(0,P.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===n.variant&&{color:t.vars?t.vars.palette.Alert[`${o}Color`]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${o}StandardBg`]:i(t.palette[o].light,.9),[`& .${Xe.icon}`]:t.vars?{color:t.vars.palette.Alert[`${o}IconColor`]}:{color:t.palette[o].main}},o&&"outlined"===n.variant&&{color:t.vars?t.vars.palette.Alert[`${o}Color`]:r(t.palette[o].light,.6),border:`1px solid ${(t.vars||t).palette[o].light}`,[`& .${Xe.icon}`]:t.vars?{color:t.vars.palette.Alert[`${o}IconColor`]}:{color:t.palette[o].main}},o&&"filled"===n.variant&&(0,P.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${o}FilledColor`],backgroundColor:t.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText(t.palette[o].main)}))})),dt=(0,l.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pt=(0,l.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ht=(0,l.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ft={success:(0,F.jsx)(it,{fontSize:"inherit"}),warning:(0,F.jsx)(ot,{fontSize:"inherit"}),error:(0,F.jsx)(at,{fontSize:"inherit"}),info:(0,F.jsx)(st,{fontSize:"inherit"})},mt=r.forwardRef((function(e,t){var n,r,i,o,a,s;const l=(0,L.Z)({props:e,name:"MuiAlert"}),{action:c,children:u,className:d,closeText:p="Close",color:h,components:f={},componentsProps:m={},icon:g,iconMapping:y=ft,onClose:v,role:b="alert",severity:_="success",slotProps:w={},slots:x={},variant:k="standard"}=l,C=(0,E.Z)(l,ct),S=(0,P.Z)({},l,{color:h,severity:_,variant:k}),M=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${(0,Ye.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,O.Z)(o,Ke,i)})(S),T=null!=(n=null!=(r=x.closeButton)?r:f.CloseButton)?n:nt,R=null!=(i=null!=(o=x.closeIcon)?o:f.CloseIcon)?i:lt,j=null!=(a=w.closeButton)?a:m.closeButton,D=null!=(s=w.closeIcon)?s:m.closeIcon;return(0,F.jsxs)(ut,(0,P.Z)({role:b,elevation:0,ownerState:S,className:(0,I.Z)(M.root,d),ref:t},C,{children:[!1!==g?(0,F.jsx)(dt,{ownerState:S,className:M.icon,children:g||y[_]||ft[_]}):null,(0,F.jsx)(pt,{ownerState:S,className:M.message,children:u}),null!=c?(0,F.jsx)(ht,{ownerState:S,className:M.action,children:c}):null,null==c&&v?(0,F.jsx)(ht,{ownerState:S,className:M.action,children:(0,F.jsx)(T,(0,P.Z)({size:"small","aria-label":p,title:p,color:"inherit",onClick:v},j,{children:(0,F.jsx)(R,(0,P.Z)({fontSize:"small"},D))}))}):null]}))}));var gt=n(63411);function yt(e){return(0,u.Z)("MuiTypography",e)}(0,c.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bt=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,Ye.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),_t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wt={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xt=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTypography"}),r=(e=>wt[e]||e)(n.color),i=(0,gt.Z)((0,P.Z)({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=_t}=i,h=(0,E.Z)(i,vt),f=(0,P.Z)({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||_t[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,Ye.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,O.Z)(s,yt,a)})(f);return(0,F.jsx)(bt,(0,P.Z)({as:m,ref:t,ownerState:f,className:(0,I.Z)(g.root,a)},h))}));function kt(e){return(0,u.Z)("MuiAlertTitle",e)}(0,c.Z)("MuiAlertTitle",["root"]);const Ct=["className"],St=(0,l.ZP)(xt,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),Mt=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=(0,E.Z)(n,Ct),o=n,a=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},kt,t)})(o);return(0,F.jsx)(St,(0,P.Z)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,I.Z)(a.root,r)},i))}));function Tt(e){return(0,u.Z)("MuiButton",e)}const Et=(0,c.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);function Pt(e){return(0,u.Z)("MuiButtonGroup",e)}const It=(0,c.Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]);const Ot=r.createContext({}),Lt=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],Rt=(0,l.ZP)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${It.grouped}`]:t.grouped},{[`& .${It.grouped}`]:t[`grouped${(0,Ye.Z)(n.orientation)}`]},{[`& .${It.grouped}`]:t[`grouped${(0,Ye.Z)(n.variant)}`]},{[`& .${It.grouped}`]:t[`grouped${(0,Ye.Z)(n.variant)}${(0,Ye.Z)(n.orientation)}`]},{[`& .${It.grouped}`]:t[`grouped${(0,Ye.Z)(n.variant)}${(0,Ye.Z)(n.color)}`]},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[2]},n.disableElevation&&{boxShadow:"none"},n.fullWidth&&{width:"100%"},"vertical"===n.orientation&&{flexDirection:"column"},{[`& .${It.grouped}`]:(0,P.Z)({minWidth:40,"&:not(:first-of-type)":(0,P.Z)({},"horizontal"===n.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===n.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===n.variant&&"horizontal"===n.orientation&&{marginLeft:-1},"outlined"===n.variant&&"vertical"===n.orientation&&{marginTop:-1}),"&:not(:last-of-type)":(0,P.Z)({},"horizontal"===n.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===n.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===n.variant&&"horizontal"===n.orientation&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${It.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===n.variant&&"vertical"===n.orientation&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${It.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===n.variant&&"inherit"!==n.color&&{borderColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:(0,We.Fq)(t.palette[n.color].main,.5)},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"transparent"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"transparent"},"contained"===n.variant&&"horizontal"===n.orientation&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${It.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===n.variant&&"vertical"===n.orientation&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${It.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===n.variant&&"inherit"!==n.color&&{borderColor:(t.vars||t).palette[n.color].dark},{"&:hover":(0,P.Z)({},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"currentColor"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":(0,P.Z)({},"contained"===n.variant&&{boxShadow:"none"})},"contained"===n.variant&&{boxShadow:"none"})})})),jt=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiButtonGroup"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:p=!1,orientation:h="horizontal",size:f="medium",variant:m="outlined"}=n,g=(0,E.Z)(n,Lt),y=(0,P.Z)({},n,{color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:p,orientation:h,size:f,variant:m}),v=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:a,variant:s}=e,l={root:["root",s,"vertical"===a&&"vertical",o&&"fullWidth",i&&"disableElevation"],grouped:["grouped",`grouped${(0,Ye.Z)(a)}`,`grouped${(0,Ye.Z)(s)}`,`grouped${(0,Ye.Z)(s)}${(0,Ye.Z)(a)}`,`grouped${(0,Ye.Z)(s)}${(0,Ye.Z)(n)}`,r&&"disabled"]};return(0,O.Z)(l,Pt,t)})(y),b=r.useMemo((()=>({className:v.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:p,size:f,variant:m})),[a,l,c,u,d,p,f,m,v.grouped]);return(0,F.jsx)(Rt,(0,P.Z)({as:s,role:"group",className:(0,I.Z)(v.root,o),ref:t,ownerState:y},g,{children:(0,F.jsx)(Ot.Provider,{value:b,children:i})}))}));function Dt(e){return(0,u.Z)("MuiCheckbox",e)}const At=(0,c.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Nt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ft={entering:{opacity:1},entered:{opacity:1}},zt=r.forwardRef((function(e,t){const n=(0,s.Z)(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,style:y,timeout:v=i,TransitionComponent:b=R.ZP}=e,_=(0,E.Z)(e,Nt),w=r.useRef(null),x=(0,A.Z)(w,l.ref,t),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=k(h),S=k(((e,t)=>{(0,D.n)(e);const r=(0,D.C)({style:y,timeout:v,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),M=k(p),T=k(g),I=k((e=>{const t=(0,D.C)({style:y,timeout:v,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=k(m);return(0,F.jsx)(b,(0,P.Z)({appear:a,in:u,nodeRef:w,onEnter:S,onEntered:M,onEntering:C,onExit:I,onExited:O,onExiting:T,addEndListener:e=>{o&&o(w.current,e)},timeout:v},_,{children:(e,t)=>r.cloneElement(l,(0,P.Z)({style:(0,P.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Ft[e],y,l.props.style),ref:x},t))}))})),Bt=zt;var Ut=n(40762),$t=n(29576),Vt=n(16962),qt=n(8135);const Zt=qt.Z;var Ht=n(75306);const Gt=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Wt=(0,l.ZP)(Vt.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,P.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{[`&[data-popper-placement*="bottom"] .${Ht.Z.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ht.Z.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ht.Z.arrow}`]:(0,P.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ht.Z.arrow}`]:(0,P.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),Yt=(0,l.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Ye.Z)(n.placement.split("-")[0])}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,We.Fq)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5)+"em",fontWeight:t.typography.fontWeightRegular},{[`.${Ht.Z.popper}[data-popper-placement*="left"] &`]:(0,P.Z)({transformOrigin:"right center"},n.isRtl?(0,P.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,P.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[`.${Ht.Z.popper}[data-popper-placement*="right"] &`]:(0,P.Z)({transformOrigin:"left center"},n.isRtl?(0,P.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,P.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[`.${Ht.Z.popper}[data-popper-placement*="top"] &`]:(0,P.Z)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[`.${Ht.Z.popper}[data-popper-placement*="bottom"] &`]:(0,P.Z)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r})),Kt=(0,l.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,We.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let Xt=!1,Jt=null,Qt={x:0,y:0};function en(e,t){return n=>{t&&t(n),e(n)}}const tn=r.forwardRef((function(e,t){var n,i,o,a,l,c,u,d,p,h,f,m,g,y,v,b,_,w,x;const k=(0,L.Z)({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:S,components:M={},componentsProps:T={},describeChild:R=!1,disableFocusListener:j=!1,disableHoverListener:D=!1,disableInteractive:N=!1,disableTouchListener:z=!1,enterDelay:B=100,enterNextDelay:U=0,enterTouchDelay:$=700,followCursor:V=!1,id:q,leaveDelay:Z=0,leaveTouchDelay:H=1500,onClose:W,onOpen:Y,open:K,placement:X="bottom",PopperComponent:J,PopperProps:Q={},slotProps:ee={},slots:ne={},title:re,TransitionComponent:ie=$t.Z,TransitionProps:oe}=k,ae=(0,E.Z)(k,Gt),se=r.isValidElement(S)?S:(0,F.jsx)("span",{children:S}),le=(0,s.Z)(),ce="rtl"===le.direction,[de,pe]=r.useState(),[he,fe]=r.useState(null),me=r.useRef(!1),ge=N||V,ye=r.useRef(),ve=r.useRef(),be=r.useRef(),_e=r.useRef(),[we,xe]=G({controlled:K,default:!1,name:"Tooltip",state:"open"});let ke=we;const Ce=Zt(q),Se=r.useRef(),Me=r.useCallback((()=>{void 0!==Se.current&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),clearTimeout(_e.current)}),[]);r.useEffect((()=>()=>{clearTimeout(ye.current),clearTimeout(ve.current),clearTimeout(be.current),Me()}),[Me]);const Te=e=>{clearTimeout(Jt),Xt=!0,xe(!0),Y&&!ke&&Y(e)},Ee=te((e=>{clearTimeout(Jt),Jt=setTimeout((()=>{Xt=!1}),800+Z),xe(!1),W&&ke&&W(e),clearTimeout(ye.current),ye.current=setTimeout((()=>{me.current=!1}),le.transitions.duration.shortest)})),Pe=e=>{me.current&&"touchstart"!==e.type||(de&&de.removeAttribute("title"),clearTimeout(ve.current),clearTimeout(be.current),B||Xt&&U?ve.current=setTimeout((()=>{Te(e)}),Xt?U:B):Te(e))},Ie=e=>{clearTimeout(ve.current),clearTimeout(be.current),be.current=setTimeout((()=>{Ee(e)}),Z)},{isFocusVisibleRef:Oe,onBlur:Le,onFocus:Re,ref:je}=ue(),[,De]=r.useState(!1),Ae=e=>{Le(e),!1===Oe.current&&(De(!1),Ie(e))},Ne=e=>{de||pe(e.currentTarget),Re(e),!0===Oe.current&&(De(!0),Pe(e))},Fe=e=>{me.current=!0;const t=se.props;t.onTouchStart&&t.onTouchStart(e)},ze=Pe,Be=Ie,Ue=e=>{Fe(e),clearTimeout(be.current),clearTimeout(ye.current),Me(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.current=setTimeout((()=>{document.body.style.WebkitUserSelect=Se.current,Pe(e)}),$)},$e=e=>{se.props.onTouchEnd&&se.props.onTouchEnd(e),Me(),clearTimeout(be.current),be.current=setTimeout((()=>{Ee(e)}),H)};r.useEffect((()=>{if(ke)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ee(e)}}),[Ee,ke]);const Ve=(0,A.Z)(se.ref,je,pe,t);re||0===re||(ke=!1);const qe=r.useRef(),Ze={},He="string"===typeof re;R?(Ze.title=ke||!He||D?null:re,Ze["aria-describedby"]=ke?Ce:null):(Ze["aria-label"]=He?re:null,Ze["aria-labelledby"]=ke&&!He?Ce:null);const Ge=(0,P.Z)({},Ze,ae,se.props,{className:(0,I.Z)(ae.className,se.props.className),onTouchStart:Fe,ref:Ve},V?{onMouseMove:e=>{const t=se.props;t.onMouseMove&&t.onMouseMove(e),Qt={x:e.clientX,y:e.clientY},qe.current&&qe.current.update()}}:{});const We={};z||(Ge.onTouchStart=Ue,Ge.onTouchEnd=$e),D||(Ge.onMouseOver=en(ze,Ge.onMouseOver),Ge.onMouseLeave=en(Be,Ge.onMouseLeave),ge||(We.onMouseOver=ze,We.onMouseLeave=Be)),j||(Ge.onFocus=en(Ne,Ge.onFocus),Ge.onBlur=en(Ae,Ge.onBlur),ge||(We.onFocus=Ne,We.onBlur=Ae));const Ke=r.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(he),options:{element:he,padding:4}}];return null!=(e=Q.popperOptions)&&e.modifiers&&(t=t.concat(Q.popperOptions.modifiers)),(0,P.Z)({},Q.popperOptions,{modifiers:t})}),[he,Q]),Xe=(0,P.Z)({},k,{isRtl:ce,arrow:C,disableInteractive:ge,placement:X,PopperComponentProp:J,touch:me.current}),Je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,Ye.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,O.Z)(a,Ht.Q,t)})(Xe),Qe=null!=(n=null!=(i=ne.popper)?i:M.Popper)?n:Wt,et=null!=(o=null!=(a=null!=(l=ne.transition)?l:M.Transition)?a:ie)?o:$t.Z,tt=null!=(c=null!=(u=ne.tooltip)?u:M.Tooltip)?c:Yt,nt=null!=(d=null!=(p=ne.arrow)?p:M.Arrow)?d:Kt,rt=(0,Ut.$)(Qe,(0,P.Z)({},Q,null!=(h=ee.popper)?h:T.popper,{className:(0,I.Z)(Je.popper,null==Q?void 0:Q.className,null==(f=null!=(m=ee.popper)?m:T.popper)?void 0:f.className)}),Xe),it=(0,Ut.$)(et,(0,P.Z)({},oe,null!=(g=ee.transition)?g:T.transition),Xe),ot=(0,Ut.$)(tt,(0,P.Z)({},null!=(y=ee.tooltip)?y:T.tooltip,{className:(0,I.Z)(Je.tooltip,null==(v=null!=(b=ee.tooltip)?b:T.tooltip)?void 0:v.className)}),Xe),at=(0,Ut.$)(nt,(0,P.Z)({},null!=(_=ee.arrow)?_:T.arrow,{className:(0,I.Z)(Je.arrow,null==(w=null!=(x=ee.arrow)?x:T.arrow)?void 0:w.className)}),Xe);return(0,F.jsxs)(r.Fragment,{children:[r.cloneElement(se,Ge),(0,F.jsx)(Qe,(0,P.Z)({as:null!=J?J:Vt.Z,placement:X,anchorEl:V?{getBoundingClientRect:()=>({top:Qt.y,left:Qt.x,right:Qt.x,bottom:Qt.y,width:0,height:0})}:de,popperRef:qe,open:!!de&&ke,id:Ce,transition:!0},We,rt,{popperOptions:Ke,children:e=>{let{TransitionProps:t}=e;return(0,F.jsx)(et,(0,P.Z)({timeout:le.transitions.duration.shorter},t,it,{children:(0,F.jsxs)(tt,(0,P.Z)({},ot,{children:[re,C?(0,F.jsx)(nt,(0,P.Z)({},at,{ref:fe})):null]}))}))}}))]})})),nn=tn;function rn(e){return(0,u.Z)("MuiChip",e)}const on=(0,c.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),an=(0,rt.Z)((0,F.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],ln=(0,l.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${on.avatar}`]:t.avatar},{[`& .${on.avatar}`]:t[`avatar${(0,Ye.Z)(s)}`]},{[`& .${on.avatar}`]:t[`avatarColor${(0,Ye.Z)(r)}`]},{[`& .${on.icon}`]:t.icon},{[`& .${on.icon}`]:t[`icon${(0,Ye.Z)(s)}`]},{[`& .${on.icon}`]:t[`iconColor${(0,Ye.Z)(i)}`]},{[`& .${on.deleteIcon}`]:t.deleteIcon},{[`& .${on.deleteIcon}`]:t[`deleteIcon${(0,Ye.Z)(s)}`]},{[`& .${on.deleteIcon}`]:t[`deleteIconColor${(0,Ye.Z)(r)}`]},{[`& .${on.deleteIcon}`]:t[`deleteIcon${(0,Ye.Z)(l)}Color${(0,Ye.Z)(r)}`]},t.root,t[`size${(0,Ye.Z)(s)}`],t[`color${(0,Ye.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,Ye.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Ye.Z)(r)}`],t[l],t[`${l}${(0,Ye.Z)(r)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,P.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${on.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${on.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},[`& .${on.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${on.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${on.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${on.icon}`]:(0,P.Z)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,P.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),[`& .${on.deleteIcon}`]:(0,P.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:(0,We.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:(0,We.Fq)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?`rgba(${t.vars.palette[n.color].contrastTextChannel} / 0.7)`:(0,We.Fq)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{[`&.${on.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{[`&.${on.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${on.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{[`&:hover, &.${on.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${on.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${on.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${on.avatar}`]:{marginLeft:4},[`& .${on.avatarSmall}`]:{marginLeft:2},[`& .${on.icon}`]:{marginLeft:4},[`& .${on.iconSmall}`]:{marginLeft:2},[`& .${on.deleteIcon}`]:{marginRight:5},[`& .${on.deleteIconSmall}`]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:(0,We.Fq)(t.palette[n.color].main,.7)}`,[`&.${on.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity)},[`&.${on.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:(0,We.Fq)(t.palette[n.color].main,t.palette.action.focusOpacity)},[`& .${on.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:(0,We.Fq)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),cn=(0,l.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Ye.Z)(r)}`]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function un(e){return"Backspace"===e.key||"Delete"===e.key}const dn=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:y="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:_=!1}=n,w=(0,E.Z)(n,sn),x=r.useRef(null),k=(0,A.Z)(x,t),C=e=>{e.stopPropagation(),f&&f(e)},S=!(!1===a||!h)||a,M=S||f?$e:l||"div",T=(0,P.Z)({},n,{component:M,disabled:u,size:y,color:s,iconColor:r.isValidElement(d)&&d.props.color||s,onDelete:!!f,clickable:S,variant:v}),R=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${(0,Ye.Z)(r)}`,`color${(0,Ye.Z)(i)}`,s&&"clickable",s&&`clickableColor${(0,Ye.Z)(i)}`,a&&"deletable",a&&`deletableColor${(0,Ye.Z)(i)}`,`${l}${(0,Ye.Z)(i)}`],label:["label",`label${(0,Ye.Z)(r)}`],avatar:["avatar",`avatar${(0,Ye.Z)(r)}`,`avatarColor${(0,Ye.Z)(i)}`],icon:["icon",`icon${(0,Ye.Z)(r)}`,`iconColor${(0,Ye.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Ye.Z)(r)}`,`deleteIconColor${(0,Ye.Z)(i)}`,`deleteIcon${(0,Ye.Z)(l)}Color${(0,Ye.Z)(i)}`]};return(0,O.Z)(c,rn,t)})(T),j=M===$e?(0,P.Z)({component:l||"div",focusVisibleClassName:R.focusVisible},f&&{disableRipple:!0}):{};let D=null;f&&(D=c&&r.isValidElement(c)?r.cloneElement(c,{className:(0,I.Z)(c.props.className,R.deleteIcon),onClick:C}):(0,F.jsx)(an,{className:(0,I.Z)(R.deleteIcon),onClick:C}));let N=null;i&&r.isValidElement(i)&&(N=r.cloneElement(i,{className:(0,I.Z)(R.avatar,i.props.className)}));let z=null;return d&&r.isValidElement(d)&&(z=r.cloneElement(d,{className:(0,I.Z)(R.icon,d.props.className)})),(0,F.jsxs)(ln,(0,P.Z)({as:M,className:(0,I.Z)(R.root,o),disabled:!(!S||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&un(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&un(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),g&&g(e)},ref:k,tabIndex:_&&u?-1:b,ownerState:T},j,w,{children:[N||z,(0,F.jsx)(cn,{className:(0,I.Z)(R.label),ownerState:T,children:p}),D]}))}));function pn(e){return(0,u.Z)("MuiInputBase",e)}const hn=(0,c.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function fn(e){return(0,u.Z)("MuiFilledInput",e)}const mn=(0,P.Z)({},hn,(0,c.Z)("MuiFilledInput",["root","underline","input"]));function gn(e){return(0,u.Z)("MuiInputAdornment",e)}const yn=(0,c.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);function vn(e){return(0,u.Z)("MuiSelect",e)}const bn=(0,c.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const _n=r.createContext(void 0);function wn(){return r.useContext(_n)}function xn(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}function kn(e){return(0,u.Z)("MuiFormHelperText",e)}const Cn=(0,c.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Sn;const Mn=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Tn=(0,l.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ye.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Cn.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),En=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,a=(0,E.Z)(n,Mn),s=xn({props:n,muiFormControl:wn(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,P.Z)({},n,{component:o,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${(0,Ye.Z)(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,O.Z)(c,kn,t)})(l);return(0,F.jsx)(Tn,(0,P.Z)({as:o,ownerState:l,className:(0,I.Z)(c.root,i),ref:t},a,{children:" "===r?Sn||(Sn=(0,F.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}));function Pn(e){return(0,u.Z)("MuiOutlinedInput",e)}const In=(0,P.Z)({},hn,(0,c.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));var On=n(49949),Ln=n(70353),Rn=n(97722);const jn=Rn.Z;var Dn=n(11078);const An=r.createContext({}),Nn=["children","className","component","dense","disablePadding","subheader"],Fn=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),zn=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,E.Z)(n,Nn),d=r.useMemo((()=>({dense:s})),[s]),p=(0,P.Z)({},n,{component:a,dense:s,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,O.Z)(o,y,t)})(p);return(0,F.jsx)(An.Provider,{value:d,children:(0,F.jsxs)(Fn,(0,P.Z)({as:a,className:(0,I.Z)(h.root,o),ref:t,ownerState:p},u,{children:[c,i]}))})}));function Bn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Un=Bn;var $n=n(32745);const Vn=$n.Z,qn=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zn(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gn(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Wn(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gn(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const Yn=r.forwardRef((function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=(0,E.Z)(e,qn),h=r.useRef(null),f=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vn((()=>{i&&h.current.focus()}),[i]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n=`${Un(jn(e))}px`;h.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,h.current.style.width=`calc(100% + ${n})`}return h.current}})),[]);const m=(0,A.Z)(h,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const y=r.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return(0,F.jsx)(zn,(0,P.Z)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=jn(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wn(t,r,c,l,Zn);else if("ArrowUp"===n)e.preventDefault(),Wn(t,r,c,l,Hn);else if("Home"===n)e.preventDefault(),Wn(t,null,c,l,Zn);else if("End"===n)e.preventDefault(),Wn(t,null,c,l,Hn);else if(1===n.length){const i=f.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&Gn(r,i);i.previousKeyMatched&&(s||Wn(t,r,!1,l,Zn,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:i?0:-1},p,{children:y}))}));var Kn=n(14511);function Xn(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}const Jn=Xn;function Qn(e){return(0,Rn.Z)(e).defaultView||window}const er=Qn;var tr=n(87071),nr=n(52949),rr=n(78210);function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}var or=n(22366);function ar(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sr(e){return parseInt(Qn(e).getComputedStyle(e).paddingRight,10)||0}function lr(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ar(e,i)}))}function cr(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ur(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Rn.Z)(e);return t.body===e?Qn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Bn((0,Rn.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${sr(r)+e}px`;const t=(0,Rn.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sr(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Rn.Z)(r).body;else{const t=r.parentElement,n=Qn(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const dr=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ar(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);lr(t,e.mount,e.modalRef,r,!0);const i=cr(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=cr(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ur(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=cr(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&ar(e.modalRef,t),lr(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&ar(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pr(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:o=dr,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,h=r.useRef({}),f=r.useRef(null),m=r.useRef(null),g=(0,rr.Z)(m,p),[y,v]=r.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),x=()=>{o.mount(w(),{disableScrollLock:i}),m.current&&(m.current.scrollTop=0)},k=(0,ee.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Rn.Z)(f.current).body;o.add(w(),e),m.current&&x()})),C=r.useCallback((()=>o.isTopModal(w())),[o]),S=(0,ee.Z)((e=>{f.current=e,e&&(d&&C()?x():m.current&&ar(m.current,_))})),M=r.useCallback((()=>{o.remove(w(),_)}),[_,o]);r.useEffect((()=>()=>{M()}),[M]),r.useEffect((()=>{d?k():b&&a||M()}),[d,M,b,a,k]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},E=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,or._)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,pe.Z)({},n,t);return(0,pe.Z)({role:"presentation"},r,{onKeyDown:T(r),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,pe.Z)({"aria-hidden":!0},e,{onClick:E(e),open:d})},getTransitionProps:()=>({onEnter:ir((()=>{v(!1),s&&s()}),c.props.onEnter),onExited:ir((()=>{v(!0),l&&l(),a&&M()}),c.props.onExited)}),rootRef:g,portalRef:S,isTopModal:C,exited:y,hasTransition:b}}const hr=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fr(e){const t=[],n=[];return Array.from(e.querySelectorAll(hr)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function mr(){return!0}function gr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=fr,isEnabled:s=mr,open:l}=e,c=r.useRef(!1),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=r.useRef(null),f=r.useRef(!1),m=r.useRef(null),g=(0,rr.Z)(t.ref,m),y=r.useRef(null);r.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),r.useEffect((()=>{if(!l||!m.current)return;const e=(0,Rn.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),r.useEffect((()=>{if(!l||!m.current)return;const e=(0,Rn.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!i&&s()&&!c.current){if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let i=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(i=a(m.current)),i.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=i[0],n=i[i.length-1];"string"!==typeof t&&"string"!==typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{y.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,i,o,s,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,F.jsxs)(r.Fragment,{children:[(0,F.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,F.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}function yr(e){return(0,u.Z)("MuiModal",e)}(0,c.Z)("MuiModal",["root","hidden","backdrop"]);const vr=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],br=r.forwardRef((function(e,t){var n;const{children:i,closeAfterTransition:o=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:h=!1,keepMounted:f=!1,onBackdropClick:m,open:g,slotProps:y={},slots:v={}}=e,b=(0,de.Z)(e,vr),_=(0,pe.Z)({},e,{closeAfterTransition:o,disableAutoFocus:s,disableEnforceFocus:l,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,hideBackdrop:h,keepMounted:f}),{getRootProps:w,getBackdropProps:x,getTransitionProps:k,portalRef:C,isTopModal:S,exited:M,hasTransition:T}=pr((0,pe.Z)({},_,{rootRef:t})),E=(0,pe.Z)({},_,{exited:M,hasTransition:T}),P=(e=>{const{open:t,exited:n}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,O.Z)(r,(0,tr.T)(yr))})(E),I={};if(void 0===i.props.tabIndex&&(I.tabIndex="-1"),T){const{onEnter:e,onExited:t}=k();I.onEnter=e,I.onExited=t}const L=null!=(n=v.root)?n:"div",R=(0,Dn.y)({elementType:L,externalSlotProps:y.root,externalForwardedProps:b,getSlotProps:w,className:P.root,ownerState:E}),j=v.backdrop,D=(0,Dn.y)({elementType:j,externalSlotProps:y.backdrop,getSlotProps:e=>x((0,pe.Z)({},e,{onClick:t=>{m&&m(t),null!=e&&e.onClick&&e.onClick(t)}})),className:P.backdrop,ownerState:E});return f||g||T&&!M?(0,F.jsx)(nr.h,{ref:C,container:a,disablePortal:u,children:(0,F.jsxs)(L,(0,pe.Z)({},R,{children:[!h&&j?(0,F.jsx)(j,(0,pe.Z)({},D)):null,(0,F.jsx)(gr,{disableEnforceFocus:l,disableAutoFocus:s,disableRestoreFocus:d,isEnabled:S,open:g,children:r.cloneElement(i,I)})]}))}):null}));var _r=n(58691);function wr(e){return(0,u.Z)("MuiBackdrop",e)}const xr=(0,c.Z)("MuiBackdrop",["root","invisible"]),kr=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Cr=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),Sr=r.forwardRef((function(e,t){var n,r,i;const o=(0,L.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Bt,transitionDuration:g}=o,y=(0,E.Z)(o,kr),v=(0,P.Z)({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,O.Z)(r,wr,t)})(v),_=null!=(n=h.root)?n:u.root;return(0,F.jsx)(m,(0,P.Z)({in:p,timeout:g},y,{children:(0,F.jsx)(Cr,(0,P.Z)({"aria-hidden":!0},_,{as:null!=(r=null!=(i=f.root)?i:c.Root)?r:l,className:(0,I.Z)(b.root,s,null==_?void 0:_.className),ownerState:(0,P.Z)({},v,null==_?void 0:_.ownerState),classes:b,ref:t,children:a}))}))})),Mr=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],Tr=(0,l.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Er=(0,l.ZP)(Sr,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pr=r.forwardRef((function(e,t){var n,i,o,a,s,l;const c=(0,L.Z)({name:"MuiModal",props:e}),{BackdropComponent:u=Er,BackdropProps:d,classes:p,className:h,closeAfterTransition:f=!1,children:m,container:g,component:y,components:v={},componentsProps:b={},disableAutoFocus:_=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:x=!1,disablePortal:k=!1,disableRestoreFocus:C=!1,disableScrollLock:S=!1,hideBackdrop:M=!1,keepMounted:T=!1,onBackdropClick:O,onClose:R,open:j,slotProps:D,slots:A,theme:N}=c,z=(0,E.Z)(c,Mr),[B,U]=r.useState(!0),$={container:g,closeAfterTransition:f,disableAutoFocus:_,disableEnforceFocus:w,disableEscapeKeyDown:x,disablePortal:k,disableRestoreFocus:C,disableScrollLock:S,hideBackdrop:M,keepMounted:T,onBackdropClick:O,onClose:R,open:j},V=(0,P.Z)({},c,$,{exited:B}),q=null!=(n=null!=(i=null==A?void 0:A.root)?i:v.Root)?n:Tr,Z=null!=(o=null!=(a=null==A?void 0:A.backdrop)?a:v.Backdrop)?o:u,H=null!=(s=null==D?void 0:D.root)?s:b.root,G=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop;return(0,F.jsx)(br,(0,P.Z)({slots:{root:q,backdrop:Z},slotProps:{root:()=>(0,P.Z)({},(0,_r.x)(H,V),!(0,Kn.X)(q)&&{as:y,theme:N},{className:(0,I.Z)(h,null==H?void 0:H.className,null==p?void 0:p.root,!V.open&&V.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>(0,P.Z)({},d,(0,_r.x)(G,V),{className:(0,I.Z)(null==G?void 0:G.className,null==d?void 0:d.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>U(!1),onTransitionExited:()=>U(!0),ref:t},z,$,{children:m}))}));function Ir(e){return(0,u.Z)("MuiPopover",e)}(0,c.Z)("MuiPopover",["root","paper"]);const Or=["onEntering"],Lr=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],Rr=["slotProps"];function jr(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Dr(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ar(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function Nr(e){return"function"===typeof e?e():e}const Fr=(0,l.ZP)(Pr,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zr=(0,l.ZP)(Z.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Br=r.forwardRef((function(e,t){var n,i,o;const a=(0,L.Z)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:y,PaperProps:v={},slots:b,slotProps:_,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x=$t.Z,transitionDuration:k="auto",TransitionProps:{onEntering:C}={}}=a,S=(0,E.Z)(a.TransitionProps,Or),M=(0,E.Z)(a,Lr),T=null!=(n=null==_?void 0:_.paper)?n:v,R=r.useRef(),j=(0,A.Z)(R,T.ref),D=(0,P.Z)({},a,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:T,transformOrigin:w,TransitionComponent:x,transitionDuration:k,TransitionProps:S}),N=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"],paper:["paper"]},Ir,t)})(D),z=r.useCallback((()=>{if("anchorPosition"===d)return u;const e=Nr(l),t=(e&&1===e.nodeType?e:jn(R.current).body).getBoundingClientRect();return{top:t.top+jr(t,c.vertical),left:t.left+Dr(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),B=r.useCallback((e=>({vertical:jr(e,w.vertical),horizontal:Dr(e,w.horizontal)})),[w.horizontal,w.vertical]),U=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=B(t);if("none"===d)return{top:null,left:null,transformOrigin:Ar(n)};const r=z();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,c=er(Nr(l)),u=c.innerHeight-g,p=c.innerWidth-g;if(i<g){const e=i-g;i-=e,n.vertical+=e}else if(a>u){const e=a-u;i-=e,n.vertical+=e}if(o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Ar(n)}}),[l,d,z,B,g]),[$,V]=r.useState(y),q=r.useCallback((()=>{const e=R.current;if(!e)return;const t=U(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,V(!0)}),[U]);r.useEffect((()=>{y&&q()})),r.useImperativeHandle(s,(()=>y?{updatePosition:()=>{q()}}:null),[y,q]),r.useEffect((()=>{if(!y)return;const e=Jn((()=>{q()})),t=er(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,y,q]);let Z=k;"auto"!==k||x.muiSupportAuto||(Z=void 0);const H=f||(l?jn(Nr(l)).body:void 0),G=null!=(i=null==b?void 0:b.root)?i:Fr,W=null!=(o=null==b?void 0:b.paper)?o:zr,Y=(0,Dn.y)({elementType:W,externalSlotProps:(0,P.Z)({},T,{style:$?T.style:(0,P.Z)({},T.style,{opacity:0})}),additionalProps:{elevation:m,ref:j},ownerState:D,className:(0,I.Z)(N.paper,null==T?void 0:T.className)}),K=(0,Dn.y)({elementType:G,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:y},ownerState:D,className:(0,I.Z)(N.root,h)}),{slotProps:X}=K,J=(0,E.Z)(K,Rr);return(0,F.jsx)(G,(0,P.Z)({},J,!(0,Kn.X)(G)&&{slotProps:X},{children:(0,F.jsx)(x,(0,P.Z)({appear:!0,in:y,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{V(!1)},timeout:Z},S,{children:(0,F.jsx)(W,(0,P.Z)({},Y,{children:p}))}))}))}));function Ur(e){return(0,u.Z)("MuiMenu",e)}(0,c.Z)("MuiMenu",["root","paper","list"]);const $r=["onEntering"],Vr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qr={vertical:"top",horizontal:"right"},Zr={vertical:"top",horizontal:"left"},Hr=(0,l.ZP)(Br,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gr=(0,l.ZP)(zr,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Wr=(0,l.ZP)(Yn,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yr=r.forwardRef((function(e,t){var n,i;const o=(0,L.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:p,open:h,PaperProps:f={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:v="selectedMenu",slots:b={},slotProps:_={}}=o,w=(0,E.Z)(o.TransitionProps,$r),x=(0,E.Z)(o,Vr),k=(0,s.Z)(),C="rtl"===k.direction,S=(0,P.Z)({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:y,PaperProps:f,transitionDuration:g,TransitionProps:w,variant:v}),M=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"],paper:["paper"],list:["list"]},Ur,t)})(S),T=a&&!u&&h,R=r.useRef(null);let j=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===j)&&(j=t))}));const D=null!=(n=b.paper)?n:Gr,A=null!=(i=_.paper)?i:f,N=(0,Dn.y)({elementType:b.root,externalSlotProps:_.root,ownerState:S,className:[M.root,c]}),z=(0,Dn.y)({elementType:D,externalSlotProps:A,ownerState:S,className:M.paper});return(0,F.jsx)(Hr,(0,P.Z)({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?qr:Zr,slots:{paper:D,root:b.root},slotProps:{root:N,paper:z},open:h,ref:t,transitionDuration:g,TransitionProps:(0,P.Z)({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,k),y&&y(e,t)}},w),ownerState:S},x,{classes:m,children:(0,F.jsx)(Wr,(0,P.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:R,autoFocus:a&&(-1===j||u),autoFocusItem:T,variant:v},d,{className:(0,I.Z)(M.list,d.className),children:l}))}))}));function Kr(e){return(0,u.Z)("MuiNativeSelect",e)}const Xr=(0,c.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Jr=["className","disabled","error","IconComponent","inputRef","variant"],Qr=e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,P.Z)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Xr.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},ei=(0,l.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:l.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xr.multiple}`]:t.multiple}]}})(Qr),ti=e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${Xr.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ni=(0,l.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ye.Z)(n.variant)}`],n.open&&t.iconOpen]}})(ti),ri=r.forwardRef((function(e,t){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,c=(0,E.Z)(e,Jr),u=(0,P.Z)({},e,{disabled:i,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,Ye.Z)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,O.Z)(s,Kr,t)})(u);return(0,F.jsxs)(r.Fragment,{children:[(0,F.jsx)(ei,(0,P.Z)({ownerState:u,className:(0,I.Z)(d.select,n),disabled:i,ref:s||t},c)),e.multiple?null:(0,F.jsx)(ni,{as:a,ownerState:u,className:d.icon})]})}));function ii(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function oi(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(ii(e.value)&&""!==e.value||t&&ii(e.defaultValue)&&""!==e.defaultValue)}var ai;const si=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],li=(0,l.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${bn.select}`]:t.select},{[`&.${bn.select}`]:t[n.variant]},{[`&.${bn.error}`]:t.error},{[`&.${bn.multiple}`]:t.multiple}]}})(Qr,{[`&.${bn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ci=(0,l.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ye.Z)(n.variant)}`],n.open&&t.iconOpen]}})(ti),ui=(0,l.ZP)("input",{shouldForwardProp:e=>(0,l.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function di(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function pi(e){return null==e||"string"===typeof e&&!e.trim()}const hi=r.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:h=!1,IconComponent:f,inputRef:m,labelId:g,MenuProps:y={},multiple:v,name:b,onBlur:_,onChange:w,onClose:x,onFocus:k,onOpen:C,open:S,readOnly:M,renderValue:T,SelectDisplayProps:L={},tabIndex:R,value:j,variant:D="standard"}=e,N=(0,E.Z)(e,si),[z,B]=G({controlled:j,default:u,name:"Select"}),[U,$]=G({controlled:S,default:c,name:"Select"}),V=r.useRef(null),q=r.useRef(null),[Z,H]=r.useState(null),{current:W}=r.useRef(null!=S),[Y,K]=r.useState(),X=(0,A.Z)(t,m),J=r.useCallback((e=>{q.current=e,e&&H(e)}),[]),Q=null==Z?void 0:Z.parentNode;r.useImperativeHandle(X,(()=>({focus:()=>{q.current.focus()},node:V.current,value:z})),[z]),r.useEffect((()=>{c&&U&&Z&&!W&&(K(a?null:Q.clientWidth),q.current.focus())}),[Z,a]),r.useEffect((()=>{o&&q.current.focus()}),[o]),r.useEffect((()=>{if(!g)return;const e=jn(q.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const ee=(e,t)=>{e?C&&C(t):x&&x(t),W||(K(a?null:Q.clientWidth),$(e))},te=r.Children.toArray(s),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(z)?z.slice():[];const t=z.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),z!==n&&(B(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:b}}),w(i,e)}v||ee(!1,t)}},re=null!==Z&&U;let ie,oe;delete N["aria-invalid"];const ae=[];let se=!1,le=!1;(oi({value:z})||p)&&(T?ie=T(z):se=!0);const ce=te.map((e=>{if(!r.isValidElement(e))return null;let t;if(v){if(!Array.isArray(z))throw new Error((0,Ln.Z)(2));t=z.some((t=>di(t,e.props.value))),t&&se&&ae.push(e.props.children)}else t=di(z,e.props.value),t&&se&&(oe=e.props.children);return t&&(le=!0),r.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ne(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));se&&(ie=v?0===ae.length?null:ae.reduce(((e,t,n)=>(e.push(t),n<ae.length-1&&e.push(", "),e)),[]):oe);let ue,de=Y;!a&&W&&Z&&(de=Q.clientWidth),ue="undefined"!==typeof R?R:d?null:0;const pe=L.id||(b?`mui-component-select-${b}`:void 0),he=(0,P.Z)({},e,{variant:D,value:z,open:re,error:h}),fe=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,Ye.Z)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,O.Z)(s,vn,t)})(he);return(0,F.jsxs)(r.Fragment,{children:[(0,F.jsx)(li,(0,P.Z)({ref:J,tabIndex:ue,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:d||M?null:e=>{0===e.button&&(e.preventDefault(),q.current.focus(),ee(!0,e))},onBlur:e=>{!re&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:b}}),_(e))},onFocus:k},L,{ownerState:he,className:(0,I.Z)(L.className,fe.select,l),id:pe,children:pi(ie)?ai||(ai=(0,F.jsx)("span",{className:"notranslate",children:"\u200b"})):ie})),(0,F.jsx)(ui,(0,P.Z)({"aria-invalid":h,value:Array.isArray(z)?z.join(","):z,name:b,ref:V,"aria-hidden":!0,onChange:e=>{const t=te.find((t=>t.props.value===e.target.value));void 0!==t&&(B(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:fe.nativeInput,autoFocus:o,ownerState:he},N)),(0,F.jsx)(ci,{as:f,className:fe.icon,ownerState:he}),(0,F.jsx)(Yr,(0,P.Z)({id:`menu-${b||""}`,anchorEl:Q,open:re,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,P.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},y.MenuListProps),PaperProps:(0,P.Z)({},y.PaperProps,{style:(0,P.Z)({minWidth:de},null!=y.PaperProps?y.PaperProps.style:null)}),children:ce}))]})})),fi=(0,rt.Z)((0,F.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mi=["onChange","maxRows","minRows","style","value"];function gi(e){return parseInt(e,10)||0}const yi={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function vi(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const bi=r.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:o=1,style:s,value:l}=e,c=(0,de.Z)(e,mi),{current:u}=r.useRef(null!=l),d=r.useRef(null),p=(0,rr.Z)(t,d),h=r.useRef(null),f=r.useRef(0),[m,g]=r.useState({outerHeightStyle:0}),y=r.useCallback((()=>{const t=d.current,n=Qn(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=h.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,s=gi(n.paddingBottom)+gi(n.paddingTop),l=gi(n.borderBottomWidth)+gi(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflow:Math.abs(p-c)<=1}}),[i,o,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},b=r.useCallback((()=>{const e=y();vi(e)||g((t=>v(t,e)))}),[y]);r.useEffect((()=>{const e=Xn((()=>{f.current=0,d.current&&(()=>{const e=y();vi(e)||a.flushSync((()=>{g((t=>v(t,e)))}))})()}));let t;const n=d.current,r=Qn(n);return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),(0,$n.Z)((()=>{b()})),r.useEffect((()=>{f.current=0}),[l]);return(0,F.jsxs)(r.Fragment,{children:[(0,F.jsx)("textarea",(0,pe.Z)({value:l,onChange:e=>{f.current=0,u||b(),n&&n(e)},ref:p,rows:o,style:(0,pe.Z)({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},s)},c)),(0,F.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,pe.Z)({},yi,s,{paddingTop:0,paddingBottom:0})})]})}));var _i=n(46254),wi=n.n(_i);const xi=(0,o.vJ)((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"===typeof t?t(void 0===(r=e.theme)||null===r||0===Object.keys(r).length?n:e.theme):t;var r})),ki=xi;xi.propTypes={defaultTheme:wi().object,styles:wi().oneOfType([wi().array,wi().string,wi().object,wi().func])};var Ci=n(57693);const Si=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=(0,Ci.Z)(r),o="function"===typeof t?t(n&&i[n]||i):t;return(0,F.jsx)(ki,{styles:o})};var Mi=n(86295),Ti=n(97847);const Ei=function(e){return(0,F.jsx)(Si,(0,P.Z)({},e,{defaultTheme:Mi.Z,themeId:Ti.Z}))},Pi=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ii=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,Ye.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Oi=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Li=(0,l.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ii})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hn.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,P.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Ri=(0,l.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Oi})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,P.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,P.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hn.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),ji=(0,F.jsx)(Ei,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Di=r.forwardRef((function(e,t){var n;const i=(0,L.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:y="input",inputProps:v={},inputRef:b,maxRows:_,minRows:w,multiline:x=!1,name:k,onBlur:C,onChange:S,onClick:M,onFocus:T,onKeyDown:R,onKeyUp:j,placeholder:D,readOnly:N,renderSuffix:z,rows:B,slotProps:U={},slots:$={},startAdornment:V,type:q="text",value:Z}=i,H=(0,E.Z)(i,Pi),G=null!=v.value?v.value:Z,{current:W}=r.useRef(null!=G),Y=r.useRef(),K=r.useCallback((e=>{0}),[]),X=(0,A.Z)(Y,b,v.ref,K),[J,Q]=r.useState(!1),ee=wn();const te=xn({props:i,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:J,r.useEffect((()=>{!ee&&p&&J&&(Q(!1),C&&C())}),[ee,p,J,C]);const ne=ee&&ee.onFilled,re=ee&&ee.onEmpty,ie=r.useCallback((e=>{oi(e)?ne&&ne():re&&re()}),[ne,re]);Vn((()=>{W&&ie({value:G})}),[G,ie,W]);r.useEffect((()=>{ie(Y.current)}),[]);let oe=y,ae=v;x&&"input"===oe&&(ae=B?(0,P.Z)({type:void 0,minRows:B,maxRows:B},ae):(0,P.Z)({type:void 0,maxRows:_,minRows:w},ae),oe=bi);r.useEffect((()=>{ee&&ee.setAdornedStart(Boolean(V))}),[ee,V]);const se=(0,P.Z)({},i,{color:te.color||"primary",disabled:te.disabled,endAdornment:f,error:te.error,focused:te.focused,formControl:ee,fullWidth:m,hiddenLabel:te.hiddenLabel,multiline:x,size:te.size,startAdornment:V,type:q}),le=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e,m={root:["root",`color${(0,Ye.Z)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,O.Z)(m,pn,t)})(se),ce=$.root||c.Root||Li,ue=U.root||u.root||{},de=$.input||c.Input||Ri;return ae=(0,P.Z)({},ae,null!=(n=U.input)?n:u.input),(0,F.jsxs)(r.Fragment,{children:[!h&&ji,(0,F.jsxs)(ce,(0,P.Z)({},ue,!(0,Kn.X)(ce)&&{ownerState:(0,P.Z)({},se,ue.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),M&&!te.disabled&&M(e)}},H,{className:(0,I.Z)(le.root,ue.className,l,N&&"MuiInputBase-readOnly"),children:[V,(0,F.jsx)(_n.Provider,{value:null,children:(0,F.jsx)(de,(0,P.Z)({ownerState:se,"aria-invalid":te.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:te.disabled,id:g,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:k,placeholder:D,readOnly:N,required:te.required,rows:B,value:G,onKeyDown:R,onKeyUp:j,type:q},ae,!(0,Kn.X)(de)&&{as:oe,ownerState:(0,P.Z)({},se,ae.ownerState)},{ref:X,className:(0,I.Z)(le.input,ae.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):Q(!1)},onChange:function(e){if(!W){const t=e.target||Y.current;if(null==t)throw new Error((0,Ln.Z)(1));ie({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];v.onChange&&v.onChange(e,...n),S&&S(e,...n)},onFocus:e=>{te.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):Q(!0))}}))}),f,z?z((0,P.Z)({},te,{startAdornment:V})):null]}))]})})),Ai=Di;function Ni(e){return(0,u.Z)("MuiInput",e)}const Fi=(0,P.Z)({},hn,(0,c.Z)("MuiInput",["root","underline","input"])),zi=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Bi=(0,l.ZP)(Li,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ii(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,P.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fi.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fi.disabled}, .${Fi.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Fi.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Ui=(0,l.ZP)(Ri,{name:"MuiInput",slot:"Input",overridesResolver:Oi})({}),$i=r.forwardRef((function(e,t){var n,r,i,o;const a=(0,L.Z)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=a,g=(0,E.Z)(a,zi),y=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,O.Z)(r,Ni,t);return(0,P.Z)({},t,i)})(a),v={root:{ownerState:{disableUnderline:s}}},b=(null!=h?h:c)?(0,On.Z)(null!=h?h:c,v):v,_=null!=(n=null!=(r=f.root)?r:l.Root)?n:Bi,w=null!=(i=null!=(o=f.input)?o:l.Input)?i:Ui;return(0,F.jsx)(Ai,(0,P.Z)({slots:{root:_,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:y}))}));$i.muiName="Input";const Vi=$i,qi=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Zi=(0,l.ZP)(Li,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ii(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,P.Z)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},[`&.${mn.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},[`&.${mn.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mn.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mn.disabled}, .${mn.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${mn.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,P.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Hi=(0,l.ZP)(Ri,{name:"MuiFilledInput",slot:"Input",overridesResolver:Oi})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),Gi=r.forwardRef((function(e,t){var n,r,i,o;const a=(0,L.Z)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=a,m=(0,E.Z)(a,qi),g=(0,P.Z)({},a,{fullWidth:c,inputComponent:u,multiline:d,type:f}),y=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,O.Z)(r,fn,t);return(0,P.Z)({},t,i)})(a),v={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?(0,On.Z)(null!=p?p:l,v):v,_=null!=(n=null!=(r=h.root)?r:s.Root)?n:Zi,w=null!=(i=null!=(o=h.input)?o:s.Input)?i:Hi;return(0,F.jsx)(Ai,(0,P.Z)({slots:{root:_,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:f},m,{classes:y}))}));Gi.muiName="Input";const Wi=Gi;var Yi;const Ki=["children","classes","className","label","notched"],Xi=(0,l.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ji=(0,l.ZP)("legend")((e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,P.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));const Qi=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],eo=(0,l.ZP)(Li,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ii})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,P.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${In.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${In.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${In.focused} .${In.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${In.error} .${In.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${In.disabled} .${In.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,P.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),to=(0,l.ZP)((function(e){const{className:t,label:n,notched:r}=e,i=(0,E.Z)(e,Ki),o=null!=n&&""!==n,a=(0,P.Z)({},e,{notched:r,withLabel:o});return(0,F.jsx)(Xi,(0,P.Z)({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,F.jsx)(Ji,{ownerState:a,children:o?(0,F.jsx)("span",{children:n}):Yi||(Yi=(0,F.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),no=(0,l.ZP)(Ri,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Oi})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),ro=r.forwardRef((function(e,t){var n,i,o,a,s;const l=(0,L.Z)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,y=(0,E.Z)(l,Qi),v=(e=>{const{classes:t}=e,n=(0,O.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Pn,t);return(0,P.Z)({},t,n)})(l),b=wn(),_=xn({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,P.Z)({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:b,fullWidth:u,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:g}),x=null!=(n=null!=(i=m.root)?i:c.Root)?n:eo,k=null!=(o=null!=(a=m.input)?a:c.Input)?o:no;return(0,F.jsx)(Ai,(0,P.Z)({slots:{root:x,input:k},renderSuffix:e=>(0,F.jsx)(to,{ownerState:w,className:v.notchedOutline,label:null!=p&&""!==p&&_.required?s||(s=(0,F.jsxs)(r.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:g},y,{classes:(0,P.Z)({},v,{notchedOutline:null})}))}));ro.muiName="Input";const io=ro,oo=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ao={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,l.FO)(e)&&"variant"!==e,slot:"Root"},so=(0,l.ZP)(Vi,ao)(""),lo=(0,l.ZP)(io,ao)(""),co=(0,l.ZP)(Wi,ao)(""),uo=r.forwardRef((function(e,t){const n=(0,L.Z)({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fi,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:y=!1,native:v=!1,onClose:b,onOpen:_,open:w,renderValue:x,SelectDisplayProps:k,variant:C="outlined"}=n,S=(0,E.Z)(n,oo),M=v?ri:hi,T=xn({props:n,muiFormControl:wn(),states:["variant","error"]}),O=T.variant||C,R=(0,P.Z)({},n,{variant:O,classes:a}),j=(e=>{const{classes:t}=e;return t})(R),D=p||{standard:(0,F.jsx)(so,{ownerState:R}),outlined:(0,F.jsx)(lo,{label:f,ownerState:R}),filled:(0,F.jsx)(co,{ownerState:R})}[O],N=(0,A.Z)(t,D.ref);return(0,F.jsx)(r.Fragment,{children:r.cloneElement(D,(0,P.Z)({inputComponent:M,inputProps:(0,P.Z)({children:o,error:T.error,IconComponent:u,variant:O,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:_,open:w,renderValue:x,SelectDisplayProps:(0,P.Z)({id:d},k)},h,{classes:h?(0,On.Z)(j,h.classes):j},p?p.props.inputProps:{})},y&&v&&"outlined"===O?{notched:!0}:{},{ref:N,className:(0,I.Z)(D.props.className,s)},!p&&{variant:O},S))})}));uo.muiName="Select";const po=uo;function ho(e){return(0,u.Z)("MuiInputLabel",e)}const fo=(0,c.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function mo(e){return(0,u.Z)("MuiFormLabel",e)}const go=(0,c.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yo=["children","className","color","component","disabled","error","filled","focused","required"],vo=(0,l.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,P.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${go.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${go.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${go.error}`]:{color:(t.vars||t).palette.error.main}})})),bo=(0,l.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${go.error}`]:{color:(t.vars||t).palette.error.main}}})),_o=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,a=(0,E.Z)(n,yo),s=xn({props:n,muiFormControl:wn(),states:["color","required","focused","disabled","error","filled"]}),l=(0,P.Z)({},n,{color:s.color||"primary",component:o,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${(0,Ye.Z)(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return(0,O.Z)(l,mo,t)})(l);return(0,F.jsxs)(vo,(0,P.Z)({as:o,ownerState:l,className:(0,I.Z)(c.root,i),ref:t},a,{children:[r,s.required&&(0,F.jsxs)(bo,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),wo=["disableAnimation","margin","shrink","variant","className"],xo=(0,l.ZP)(_o,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${go.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,P.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,P.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,P.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),ko=r.forwardRef((function(e,t){const n=(0,L.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,a=(0,E.Z)(n,wo),s=wn();let l=i;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=xn({props:n,muiFormControl:s,states:["size","variant","required"]}),u=(0,P.Z)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink","small"===r&&"sizeSmall",a],asterisk:[s&&"asterisk"]},c=(0,O.Z)(l,ho,t);return(0,P.Z)({},t,c)})(u);return(0,F.jsx)(xo,(0,P.Z)({"data-shrink":l,ownerState:u,ref:t,className:(0,I.Z)(d.root,o)},a,{classes:d}))}));const Co=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};function So(e){return(0,u.Z)("MuiFormControl",e)}(0,c.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],To=(0,l.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,P.Z)({},t.root,t[`margin${(0,Ye.Z)(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Eo=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,y=(0,E.Z)(n,Mo),v=(0,P.Z)({},n,{color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,Ye.Z)(n)}`,r&&"fullWidth"]};return(0,O.Z)(i,So,t)})(v),[_,w]=r.useState((()=>{let e=!1;return i&&r.Children.forEach(i,(t=>{if(!Co(t,["Input","Select"]))return;const n=Co(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[x,k]=r.useState((()=>{let e=!1;return i&&r.Children.forEach(i,(t=>{Co(t,["Input","Select"])&&(oi(t.props,!0)||oi(t.props.inputProps,!0))&&(e=!0)})),e})),[C,S]=r.useState(!1);l&&C&&S(!1);const M=void 0===u||l?C:u;let T;const R=r.useMemo((()=>({adornedStart:_,setAdornedStart:w,color:a,disabled:l,error:c,filled:x,focused:M,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{S(!0)},registerEffect:T,required:f,variant:g})),[_,a,l,c,x,M,d,p,T,f,m,g]);return(0,F.jsx)(_n.Provider,{value:R,children:(0,F.jsx)(To,(0,P.Z)({as:s,ownerState:v,className:(0,I.Z)(b.root,o),ref:t},y,{children:i}))})}));function Po(e){return(0,u.Z)("MuiTextField",e)}(0,c.Z)("MuiTextField",["root"]);const Io=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Oo={standard:Vi,filled:Wi,outlined:io},Lo=(0,l.ZP)(Eo,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:y,inputRef:v,label:b,maxRows:_,minRows:w,multiline:x=!1,name:k,onBlur:C,onChange:S,onClick:M,onFocus:T,placeholder:R,required:j=!1,rows:D,select:A=!1,SelectProps:N,type:z,value:B,variant:U="outlined"}=n,$=(0,E.Z)(n,Io),V=(0,P.Z)({},n,{autoFocus:i,color:s,disabled:c,error:u,fullWidth:p,multiline:x,required:j,select:A,variant:U}),q=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Po,t)})(V);const Z={};"outlined"===U&&(m&&"undefined"!==typeof m.shrink&&(Z.notched=m.shrink),Z.label=b),A&&(N&&N.native||(Z.id=void 0),Z["aria-describedby"]=void 0);const H=e=>{!c&&M&&(e.stopPropagation(),M(e))},G=(0,qt.Z)(f),W=h&&G?`${G}-helper-text`:void 0,Y=b&&G?`${G}-label`:void 0,K=Oo[U],X=(0,F.jsx)(K,(0,P.Z)({"aria-describedby":W,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:p,multiline:x,name:k,rows:D,maxRows:_,minRows:w,type:z,value:B,id:G,inputRef:v,onBlur:C,onChange:S,onFocus:T,onClick:H,placeholder:R,inputProps:g},Z,y));return(0,F.jsxs)(Lo,(0,P.Z)({className:(0,I.Z)(q.root,a),disabled:c,error:u,fullWidth:p,ref:t,required:j,color:s,variant:U,ownerState:V,onClick:H},$,{children:[null!=b&&""!==b&&(0,F.jsx)(ko,(0,P.Z)({htmlFor:G,id:Y},m,{children:b})),A?(0,F.jsx)(po,(0,P.Z)({"aria-describedby":W,id:G,labelId:Y,value:B,input:X},N,{children:o})):X,h&&(0,F.jsx)(En,(0,P.Z)({id:W},d,{children:h}))]}))})),jo=Ro;function Do(e){return(0,u.Z)("MuiMenuItem",e)}const Ao=(0,c.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function No(e){return(0,u.Z)("MuiDivider",e)}const Fo=(0,c.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zo=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bo=(0,l.ZP)($e,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ao.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Ao.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Ao.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Ao.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Ao.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Fo.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Fo.inset}`]:{marginLeft:52},[`& .${C.root}`]:{marginTop:0,marginBottom:0},[`& .${C.inset}`]:{paddingLeft:36},[`& .${S.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,P.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${S.root} svg`]:{fontSize:"1.25rem"}}))})),Uo=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,h=(0,E.Z)(n,zo),f=r.useContext(An),m=r.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),g=r.useRef(null);Vn((()=>{i&&g.current&&g.current.focus()}),[i]);const y=(0,P.Z)({},n,{dense:m.dense,divider:s,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},l=(0,O.Z)(s,Do,a);return(0,P.Z)({},a,l)})(n),b=(0,A.Z)(g,t);let _;return n.disabled||(_=void 0!==d?d:-1),(0,F.jsx)(An.Provider,{value:m,children:(0,F.jsx)(Bo,(0,P.Z)({ref:b,role:u,tabIndex:_,component:o,focusVisibleClassName:(0,I.Z)(v.focusVisible,c),className:(0,I.Z)(v.root,p)},h,{ownerState:y,classes:v}))})}));function $o(e){return(0,u.Z)("MuiTab",e)}const Vo=(0,c.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),qo=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Zo=(0,l.ZP)($e,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,Ye.Z)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Vo.iconWrapper}`]:(0,P.Z)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,[`&.${Vo.selected}`]:{opacity:1},[`&.${Vo.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${Vo.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Vo.disabled}`]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${Vo.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Vo.disabled}`]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),Ho=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:f,selected:m,selectionFollowsFocus:g,textColor:y="inherit",value:v,wrapped:b=!1}=n,_=(0,E.Z)(n,qo),w=(0,P.Z)({},n,{disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:y,wrapped:b}),x=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${(0,Ye.Z)(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,O.Z)(c,$o,t)})(w),k=l&&d&&r.isValidElement(l)?r.cloneElement(l,{className:(0,I.Z)(x.iconWrapper,l.props.className)}):l;return(0,F.jsxs)(Zo,(0,P.Z)({focusRipple:!a,className:(0,I.Z)(x.root,i),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&p&&p(e,v),h&&h(e)},onFocus:e=>{g&&!m&&p&&p(e,v),f&&f(e)},ownerState:w,tabIndex:m?0:-1},_,{children:["top"===c||"start"===c?(0,F.jsxs)(r.Fragment,{children:[k,d]}):(0,F.jsxs)(r.Fragment,{children:[d,k]}),u]}))}));let Go;function Wo(){if(Go)return Go;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Go="reverse",e.scrollLeft>0?Go="default":(e.scrollLeft=1,0===e.scrollLeft&&(Go="negative")),document.body.removeChild(e),Go}function Yo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Wo()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Ko(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Xo=["onChange"],Jo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const Qo=(0,rt.Z)((0,F.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ea=(0,rt.Z)((0,F.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ta(e){return(0,u.Z)("MuiTabScrollButton",e)}const na=(0,c.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ra=["className","slots","slotProps","direction","orientation","disabled"],ia=(0,l.ZP)($e,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({width:40,flexShrink:0,opacity:.8,[`&.${na.disabled}`]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})})),oa=r.forwardRef((function(e,t){var n,r;const i=(0,L.Z)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:c}=i,u=(0,E.Z)(i,ra),d="rtl"===(0,s.Z)().direction,p=(0,P.Z)({isRtl:d},i),h=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,O.Z)(i,ta,t)})(p),f=null!=(n=a.StartScrollButtonIcon)?n:Qo,m=null!=(r=a.EndScrollButtonIcon)?r:ea,g=(0,Dn.y)({elementType:f,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),y=(0,Dn.y)({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,F.jsx)(ia,(0,P.Z)({component:"div",className:(0,I.Z)(h.root,o),ref:t,role:null,ownerState:p,tabIndex:null},u,{children:"left"===c?(0,F.jsx)(f,(0,P.Z)({},g)):(0,F.jsx)(m,(0,P.Z)({},y))}))}));function aa(e){return(0,u.Z)("MuiTabs",e)}const sa=(0,c.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),la=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ca=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ua=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,da=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},pa=(0,l.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sa.scrollButtons}`]:t.scrollButtons},{[`& .${sa.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${sa.scrollButtons}`]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),ha=(0,l.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),fa=(0,l.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),ma=(0,l.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),ga=(0,l.ZP)((function(e){const{onChange:t}=e,n=(0,E.Z)(e,Xo),i=r.useRef(),o=r.useRef(null),a=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return Vn((()=>{const e=Jn((()=>{const e=i.current;a(),e!==i.current&&t(i.current)})),n=er(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),r.useEffect((()=>{a(),t(i.current)}),[t]),(0,F.jsx)("div",(0,P.Z)({style:Jo,ref:o},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ya={};const va=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTabs"}),i=(0,s.Z)(),o="rtl"===i.direction,{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:v=oa,scrollButtons:b="auto",selectionFollowsFocus:_,slots:w={},slotProps:x={},TabIndicatorProps:k={},TabScrollButtonProps:C={},textColor:S="primary",value:M,variant:T="standard",visibleScrollbar:R=!1}=n,j=(0,E.Z)(n,la),D="scrollable"===T,A="vertical"===y,N=A?"scrollTop":"scrollLeft",z=A?"top":"left",B=A?"bottom":"right",U=A?"clientHeight":"clientWidth",$=A?"height":"width",V=(0,P.Z)({},n,{component:h,allowScrollButtonsMobile:f,indicatorColor:m,orientation:y,vertical:A,scrollButtons:b,textColor:S,variant:T,visibleScrollbar:R,fixed:!D,hideScrollbar:D&&!R,scrollableX:D&&!A,scrollableY:D&&A,centered:u&&!D,scrollButtonsHideMobile:!f}),q=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,O.Z)(c,aa,l)})(V),Z=(0,Dn.y)({elementType:w.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:V}),H=(0,Dn.y)({elementType:w.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:V});const[G,W]=r.useState(!1),[Y,K]=r.useState(ya),[X,J]=r.useState(!1),[Q,ee]=r.useState(!1),[ne,re]=r.useState(!1),[ie,oe]=r.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,se=r.useRef(null),le=r.useRef(null),ce=()=>{const e=se.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Yo(e,i.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==M){const e=le.current.children;if(e.length>0){const t=e[ae.get(M)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ue=te((()=>{const{tabsMeta:e,tabMeta:t}=ce();let n,r=0;if(A)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[$]:t?t[$]:0};if(isNaN(Y[n])||isNaN(Y[$]))K(i);else{const e=Math.abs(Y[n]-i[n]),t=Math.abs(Y[$]-i[$]);(e>=1||t>=1)&&K(i)}})),de=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:o=Ko,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void i(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(N,se.current,e,{duration:i.transitions.duration.standard}):se.current[N]=e},pe=e=>{let t=se.current[N];A?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Wo()?-1:1),de(t)},he=()=>{const e=se.current[U];let t=0;const n=Array.from(le.current.children);for(let r=0;r<n.length;r+=1){const i=n[r];if(t+i[U]>e){0===r&&(t=e);break}t+=i[U]}return t},fe=()=>{pe(-1*he())},me=()=>{pe(he())},ge=r.useCallback((e=>{oe({overflow:null,scrollbarWidth:e})}),[]),ye=te((e=>{const{tabsMeta:t,tabMeta:n}=ce();if(n&&t)if(n[z]<t[z]){const r=t[N]+(n[z]-t[z]);de(r,{animation:e})}else if(n[B]>t[B]){const r=t[N]+(n[B]-t[B]);de(r,{animation:e})}})),ve=te((()=>{D&&!1!==b&&re(!ne)}));r.useEffect((()=>{const e=Jn((()=>{se.current&&ue()})),t=er(se.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(le.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[ue]),r.useEffect((()=>{const e=Array.from(le.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&D&&!1!==b){const n=e[0],r=e[t-1],i={root:se.current,threshold:.99},o=new IntersectionObserver((e=>{J(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{ee(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[D,b,ne,null==d?void 0:d.length]),r.useEffect((()=>{W(!0)}),[]),r.useEffect((()=>{ue()})),r.useEffect((()=>{ye(ya!==Y)}),[ye,Y]),r.useImperativeHandle(c,(()=>({updateIndicator:ue,updateScrollButtons:ve})),[ue,ve]);const be=(0,F.jsx)(ma,(0,P.Z)({},k,{className:(0,I.Z)(q.indicator,k.className),ownerState:V,style:(0,P.Z)({},Y,k.style)}));let _e=0;const we=r.Children.map(d,(e=>{if(!r.isValidElement(e))return null;const t=void 0===e.props.value?_e:e.props.value;ae.set(t,_e);const n=t===M;return _e+=1,r.cloneElement(e,(0,P.Z)({fullWidth:"fullWidth"===T,indicator:n&&!G&&be,selected:n,selectionFollowsFocus:_,onChange:g,textColor:S,value:t},1!==_e||!1!==M||e.props.tabIndex?{}:{tabIndex:0}))})),xe=(()=>{const e={};e.scrollbarSizeListener=D?(0,F.jsx)(ga,{onChange:ge,className:(0,I.Z)(q.scrollableX,q.hideScrollbar)}):null;const t=D&&("auto"===b&&(X||Q)||!0===b);return e.scrollButtonStart=t?(0,F.jsx)(v,(0,P.Z)({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Z},orientation:y,direction:o?"right":"left",onClick:fe,disabled:!X},C,{className:(0,I.Z)(q.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?(0,F.jsx)(v,(0,P.Z)({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:H},orientation:y,direction:o?"left":"right",onClick:me,disabled:!Q},C,{className:(0,I.Z)(q.scrollButtons,C.className)})):null,e})();return(0,F.jsxs)(pa,(0,P.Z)({className:(0,I.Z)(q.root,p),ownerState:V,ref:t,as:h},j,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,(0,F.jsxs)(ha,{className:q.scroller,ownerState:V,style:{overflow:ie.overflow,[A?"margin"+(o?"Left":"Right"):"marginBottom"]:R?void 0:-ie.scrollbarWidth},ref:se,children:[(0,F.jsx)(fa,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===y?"vertical":null,className:q.flexContainer,ownerState:V,onKeyDown:e=>{const t=le.current,n=jn(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===y?"ArrowLeft":"ArrowUp",i="horizontal"===y?"ArrowRight":"ArrowDown";switch("horizontal"===y&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),da(t,n,ua);break;case i:e.preventDefault(),da(t,n,ca);break;case"Home":e.preventDefault(),da(t,null,ca);break;case"End":e.preventDefault(),da(t,null,ua)}},ref:le,role:"tablist",children:we}),G&&be]}),xe.scrollButtonEnd]}))})),ba=va;var _a=n(57998),wa=n(47634);const xa=(0,n(97083).Z)(),ka=(0,_a.Z)({themeId:Ti.Z,defaultTheme:xa,defaultClassName:"MuiBox-root",generateClassName:wa.Z.generate});const Ca=(0,n(87970).ZP)();var Sa=n(52430),Ma=n(55235),Ta=n(13609),Ea=n(10402);const Pa=["component","direction","spacing","divider","children","className","useFlexGap"],Ia=(0,Ma.Z)(),Oa=Ca("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function La(e){return(0,Sa.Z)({props:e,name:"MuiStack",defaultTheme:Ia})}function Ra(e,t){const n=r.Children.toArray(e).filter(Boolean);return n.reduce(((e,i,o)=>(e.push(i),o<n.length-1&&e.push(r.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ja=e=>{let{ownerState:t,theme:n}=e,r=(0,P.Z)({display:"flex",flexDirection:"column"},(0,Ta.k9)({theme:n},(0,Ta.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Ea.hB)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=(0,Ta.P$)({values:t.direction,base:i}),a=(0,Ta.P$)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Ea.NA)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,Ea.NA)(e,n)}};var i};r=(0,On.Z)(r,(0,Ta.k9)({theme:n},a,s))}return r=(0,Ta.dt)(n.breakpoints,r),r};const Da=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Oa,useThemeProps:n=La,componentName:i="MuiStack"}=e,o=t(ja),a=r.forwardRef((function(e,t){const r=n(e),a=(0,gt.Z)(r),{component:s="div",direction:l="column",spacing:c=0,divider:d,children:p,className:h,useFlexGap:f=!1}=a,m=(0,E.Z)(a,Pa),g={direction:l,spacing:c,useFlexGap:f},y=(0,O.Z)({root:["root"]},(e=>(0,u.Z)(i,e)),{});return(0,F.jsx)(o,(0,P.Z)({as:s,ownerState:g,ref:t,className:(0,I.Z)(y.root,h)},m,{children:d?Ra(p,d):p}))}));return a}({createStyledComponent:(0,l.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,L.Z)({props:e,name:"MuiStack"})}),Aa=Da;function Na(e){return(0,u.Z)("MuiDialog",e)}const Fa=(0,c.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const za=r.createContext({}),Ba=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ua=(0,l.ZP)(Sr,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),$a=(0,l.ZP)(Pr,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Va=(0,l.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ye.Z)(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),qa=(0,l.ZP)(Z.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ye.Z)(n.scroll)}`],t[`paperWidth${(0,Ye.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Fa.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${Fa.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Fa.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),Za=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDialog"}),i=(0,s.Z)(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:f=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:y,onClose:v,open:b,PaperComponent:_=Z.Z,PaperProps:w={},scroll:x="paper",TransitionComponent:k=Bt,transitionDuration:C=o,TransitionProps:S}=n,M=(0,E.Z)(n,Ba),T=(0,P.Z)({},n,{disableEscapeKeyDown:h,fullScreen:f,fullWidth:m,maxWidth:g,scroll:x}),R=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,Ye.Z)(n)}`],paper:["paper",`paperScroll${(0,Ye.Z)(n)}`,`paperWidth${(0,Ye.Z)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,O.Z)(a,Na,t)})(T),j=r.useRef(),D=(0,qt.Z)(l),A=r.useMemo((()=>({titleId:D})),[D]);return(0,F.jsx)($a,(0,P.Z)({className:(0,I.Z)(R.root,p),closeAfterTransition:!0,components:{Backdrop:Ua},componentsProps:{backdrop:(0,P.Z)({transitionDuration:C,as:c},u)},disableEscapeKeyDown:h,onClose:v,open:b,ref:t,onClick:e=>{j.current&&(j.current=null,y&&y(e),v&&v(e,"backdropClick"))},ownerState:T},M,{children:(0,F.jsx)(k,(0,P.Z)({appear:!0,in:b,timeout:C,role:"presentation"},S,{children:(0,F.jsx)(Va,{className:(0,I.Z)(R.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:T,children:(0,F.jsx)(qa,(0,P.Z)({as:_,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":D},w,{className:(0,I.Z)(R.paper,w.className),ownerState:T,children:(0,F.jsx)(za.Provider,{value:A,children:d})}))})}))}))}));function Ha(e){return(0,u.Z)("MuiDialogTitle",e)}const Ga=(0,c.Z)("MuiDialogTitle",["root"]),Wa=["className","id"],Ya=(0,l.ZP)(xt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ka=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDialogTitle"}),{className:i,id:o}=n,a=(0,E.Z)(n,Wa),s=n,l=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Ha,t)})(s),{titleId:c=o}=r.useContext(za);return(0,F.jsx)(Ya,(0,P.Z)({component:"h2",className:(0,I.Z)(l.root,i),ownerState:s,ref:t,variant:"h6",id:null!=o?o:c},a))}));function Xa(e){return(0,u.Z)("MuiDialogContentText",e)}(0,c.Z)("MuiDialogContentText",["root"]);const Ja=["children","className"],Qa=(0,l.ZP)(xt,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),es=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDialogContentText"}),{className:r}=n,i=(0,E.Z)(n,Ja),o=(e=>{const{classes:t}=e,n=(0,O.Z)({root:["root"]},Xa,t);return(0,P.Z)({},t,n)})(i);return(0,F.jsx)(Qa,(0,P.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,I.Z)(o.root,r)},n,{classes:o}))}));function ts(e){return(0,u.Z)("MuiDialogContent",e)}(0,c.Z)("MuiDialogContent",["root","dividers"]);const ns=["className","dividers"],rs=(0,l.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${Ga.root} + &`]:{paddingTop:0}})})),is=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=(0,E.Z)(n,ns),a=(0,P.Z)({},n,{dividers:i}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,O.Z)(r,ts,t)})(a);return(0,F.jsx)(rs,(0,P.Z)({className:(0,I.Z)(s.root,r),ownerState:a,ref:t},o))}));function os(e){return(0,u.Z)("MuiDialogActions",e)}(0,c.Z)("MuiDialogActions",["root","spacing"]);const as=["className","disableSpacing"],ss=(0,l.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),ls=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=(0,E.Z)(n,as),a=(0,P.Z)({},n,{disableSpacing:i}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,O.Z)(r,os,t)})(a);return(0,F.jsx)(ss,(0,P.Z)({className:(0,I.Z)(s.root,r),ownerState:a,ref:t},o))})),cs=(0,rt.Z)((0,F.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),us=(0,rt.Z)((0,F.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var ds=n(76685);function ps(e){return(0,u.Z)("MuiStepIcon",e)}const hs=(0,c.Z)("MuiStepIcon",["root","active","completed","error","text"]);var fs;const ms=["active","className","completed","error","icon"],gs=(0,l.ZP)(ds.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${hs.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${hs.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${hs.error}`]:{color:(t.vars||t).palette.error.main}}})),ys=(0,l.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),vs=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:o=!1,error:a=!1,icon:s}=n,l=(0,E.Z)(n,ms),c=(0,P.Z)({},n,{active:r,completed:o,error:a}),u=(e=>{const{classes:t,active:n,completed:r,error:i}=e,o={root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]};return(0,O.Z)(o,ps,t)})(c);if("number"===typeof s||"string"===typeof s){const e=(0,I.Z)(i,u.root);return a?(0,F.jsx)(gs,(0,P.Z)({as:us,className:e,ref:t,ownerState:c},l)):o?(0,F.jsx)(gs,(0,P.Z)({as:cs,className:e,ref:t,ownerState:c},l)):(0,F.jsxs)(gs,(0,P.Z)({className:e,ref:t,ownerState:c},l,{children:[fs||(fs=(0,F.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,F.jsx)(ys,{className:u.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:s})]}))}return s}));function bs(e){return(0,u.Z)("MuiStepper",e)}(0,c.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const _s=r.createContext({});const ws=_s,xs=r.createContext({});const ks=xs;function Cs(e){return(0,u.Z)("MuiStepConnector",e)}(0,c.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Ss=["className"],Ms=(0,l.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),Ts=(0,l.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,Ye.Z)(n.orientation)}`]]}})((e=>{let{ownerState:t,theme:n}=e;const r="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,P.Z)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:r},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),Es=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStepConnector"}),{className:i}=n,o=(0,E.Z)(n,Ss),{alternativeLabel:a,orientation:s="horizontal"}=r.useContext(ws),{active:l,disabled:c,completed:u}=r.useContext(ks),d=(0,P.Z)({},n,{alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c}),p=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",a&&"disabled"],line:["line",`line${(0,Ye.Z)(n)}`]};return(0,O.Z)(s,Cs,t)})(d);return(0,F.jsx)(Ms,(0,P.Z)({className:(0,I.Z)(p.root,i),ref:t,ownerState:d},o,{children:(0,F.jsx)(Ts,{className:p.line,ownerState:d})}))})),Ps=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Is=(0,l.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),Os=(0,F.jsx)(Es,{}),Ls=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:o=!1,children:a,className:s,component:l="div",connector:c=Os,nonLinear:u=!1,orientation:d="horizontal"}=n,p=(0,E.Z)(n,Ps),h=(0,P.Z)({},n,{alternativeLabel:o,orientation:d,component:l}),f=(e=>{const{orientation:t,alternativeLabel:n,classes:r}=e,i={root:["root",t,n&&"alternativeLabel"]};return(0,O.Z)(i,bs,r)})(h),m=r.Children.toArray(a).filter(Boolean),g=m.map(((e,t)=>r.cloneElement(e,(0,P.Z)({index:t,last:t+1===m.length},e.props)))),y=r.useMemo((()=>({activeStep:i,alternativeLabel:o,connector:c,nonLinear:u,orientation:d})),[i,o,c,u,d]);return(0,F.jsx)(ws.Provider,{value:y,children:(0,F.jsx)(Is,(0,P.Z)({as:l,ownerState:h,className:(0,I.Z)(f.root,s),ref:t},p,{children:g}))})}));function Rs(e){return(0,u.Z)("MuiStep",e)}(0,c.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const js=["active","children","className","component","completed","disabled","expanded","index","last"],Ds=(0,l.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),As=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStep"}),{active:i,children:o,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:d,last:p}=n,h=(0,E.Z)(n,js),{activeStep:f,connector:m,alternativeLabel:g,orientation:y,nonLinear:v}=r.useContext(ws);let[b=!1,_=!1,w=!1]=[i,l,c];f===d?b=void 0===i||i:!v&&f>d?_=void 0===l||l:!v&&f<d&&(w=void 0===c||c);const x=r.useMemo((()=>({index:d,last:p,expanded:u,icon:d+1,active:b,completed:_,disabled:w})),[d,p,u,b,_,w]),k=(0,P.Z)({},n,{active:b,orientation:y,alternativeLabel:g,completed:_,disabled:w,expanded:u,component:s}),C=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e,o={root:["root",n,r&&"alternativeLabel",i&&"completed"]};return(0,O.Z)(o,Rs,t)})(k),S=(0,F.jsxs)(Ds,(0,P.Z)({as:s,className:(0,I.Z)(C.root,a),ref:t,ownerState:k},h,{children:[m&&g&&0!==d?m:null,o]}));return(0,F.jsx)(ks.Provider,{value:x,children:m&&!g&&0!==d?(0,F.jsxs)(r.Fragment,{children:[m,S]}):S})}));function Ns(e){return(0,u.Z)("MuiStepLabel",e)}const Fs=(0,c.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),zs=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Bs=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex",alignItems:"center",[`&.${Fs.alternativeLabel}`]:{flexDirection:"column"},[`&.${Fs.disabled}`]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})})),Us=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((e=>{let{theme:t}=e;return(0,P.Z)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${Fs.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${Fs.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${Fs.alternativeLabel}`]:{marginTop:16},[`&.${Fs.error}`]:{color:(t.vars||t).palette.error.main}})})),$s=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Fs.alternativeLabel}`]:{paddingRight:0}}))),Vs=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${Fs.alternativeLabel}`]:{textAlign:"center"}}})),qs=r.forwardRef((function(e,t){var n;const i=(0,L.Z)({props:e,name:"MuiStepLabel"}),{children:o,className:a,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:d={},StepIconComponent:p,StepIconProps:h}=i,f=(0,E.Z)(i,zs),{alternativeLabel:m,orientation:g}=r.useContext(ws),{active:y,disabled:v,completed:b,icon:_}=r.useContext(ks),w=c||_;let x=p;w&&!x&&(x=vs);const k=(0,P.Z)({},i,{active:y,alternativeLabel:m,completed:b,disabled:v,error:l,orientation:g}),C=(e=>{const{classes:t,orientation:n,active:r,completed:i,error:o,disabled:a,alternativeLabel:s}=e,l={root:["root",n,o&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]};return(0,O.Z)(l,Ns,t)})(k),S=null!=(n=d.label)?n:s.label;return(0,F.jsxs)(Bs,(0,P.Z)({className:(0,I.Z)(C.root,a),ref:t,ownerState:k},f,{children:[w||x?(0,F.jsx)($s,{className:C.iconContainer,ownerState:k,children:(0,F.jsx)(x,(0,P.Z)({completed:b,active:y,error:l,icon:w},h))}):null,(0,F.jsxs)(Vs,{className:C.labelContainer,ownerState:k,children:[o?(0,F.jsx)(Us,(0,P.Z)({ownerState:k},S,{className:(0,I.Z)(C.label,null==S?void 0:S.className),children:o})):null,u]})]}))}));qs.muiName="StepLabel";const Zs=qs;function Hs(e){return(0,u.Z)("MuiStepButton",e)}const Gs=(0,c.Z)("MuiStepButton",["root","horizontal","vertical","touchRipple"]),Ws=["children","className","icon","optional"],Ys=(0,l.ZP)($e,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gs.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===t.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${Gs.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})})),Ks=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStepButton"}),{children:i,className:o,icon:a,optional:s}=n,l=(0,E.Z)(n,Ws),{disabled:c,active:u}=r.useContext(ks),{orientation:d}=r.useContext(ws),p=(0,P.Z)({},n,{orientation:d}),h=(e=>{const{classes:t,orientation:n}=e,r={root:["root",n],touchRipple:["touchRipple"]};return(0,O.Z)(r,Hs,t)})(p),f={icon:a,optional:s},m=Co(i,["StepLabel"])?r.cloneElement(i,f):(0,F.jsx)(Zs,(0,P.Z)({},f,{children:i}));return(0,F.jsx)(Ys,(0,P.Z)({focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:(0,I.Z)(h.root,o),ref:t,ownerState:p,"aria-current":u?"step":void 0},l,{children:m}))}));function Xs(e){return(0,u.Z)("MuiStepContent",e)}(0,c.Z)("MuiStepContent",["root","last","transition"]);const Js=["children","className","TransitionComponent","transitionDuration","TransitionProps"],Qs=(0,l.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:n.vars?`1px solid ${n.vars.palette.StepContent.border}`:`1px solid ${"light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600]}`},t.last&&{borderLeft:"none"})})),el=(0,l.ZP)(q,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),tl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiStepContent"}),{children:i,className:o,TransitionComponent:a=q,transitionDuration:s="auto",TransitionProps:l}=n,c=(0,E.Z)(n,Js),{orientation:u}=r.useContext(ws),{active:d,last:p,expanded:h}=r.useContext(ks),f=(0,P.Z)({},n,{last:p}),m=(e=>{const{classes:t,last:n}=e,r={root:["root",n&&"last"],transition:["transition"]};return(0,O.Z)(r,Xs,t)})(f);let g=s;return"auto"!==s||a.muiSupportAuto||(g=void 0),(0,F.jsx)(Qs,(0,P.Z)({className:(0,I.Z)(m.root,o),ref:t,ownerState:f},c,{children:(0,F.jsx)(el,(0,P.Z)({as:a,in:d||h,className:m.transition,ownerState:f,timeout:g,unmountOnExit:!0},l,{children:i}))}))}));function nl(e){return(0,u.Z)("MuiSwitch",e)}const rl=(0,c.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function il(e){return(0,u.Z)("PrivateSwitchBase",e)}(0,c.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ol=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],al=(0,l.ZP)($e)((e=>{let{ownerState:t}=e;return(0,P.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),sl=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ll=r.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:y,readOnly:v,required:b=!1,tabIndex:_,type:w,value:x}=e,k=(0,E.Z)(e,ol),[C,S]=G({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),M=wn();let T=s;M&&"undefined"===typeof T&&(T=M.disabled);const L="checkbox"===w||"radio"===w,R=(0,P.Z)({},e,{checked:C,disabled:T,disableFocusRipple:l,edge:c}),j=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,Ye.Z)(i)}`],input:["input"]};return(0,O.Z)(o,il,t)})(R);return(0,F.jsxs)(al,(0,P.Z)({component:"span",className:(0,I.Z)(j.root,o),centerRipple:!0,focusRipple:!l,disabled:T,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),M&&M.onFocus&&M.onFocus(e)},onBlur:e=>{m&&m(e),M&&M.onBlur&&M.onBlur(e)},ownerState:R,ref:t},k,{children:[(0,F.jsx)(sl,(0,P.Z)({autoFocus:n,checked:r,defaultChecked:a,className:j.input,disabled:T,id:L?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),g&&g(e,t)},readOnly:v,ref:h,required:b,ownerState:R,tabIndex:_,type:w},"checkbox"===w&&void 0===x?{}:{value:x},p)),C?i:u]}))})),cl=ll,ul=["className","color","edge","size","sx"],dl=(0,l.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,Ye.Z)(n.edge)}`],t[`size${(0,Ye.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${rl.thumb}`]:{width:16,height:16},[`& .${rl.switchBase}`]:{padding:4,[`&.${rl.checked}`]:{transform:"translateX(16px)"}}})})),pl=(0,l.ZP)(cl,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${rl.input}`]:t.input},"default"!==n.color&&t[`color${(0,Ye.Z)(n.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${rl.checked}`]:{transform:"translateX(20px)"},[`&.${rl.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${rl.checked} + .${rl.track}`]:{opacity:.5},[`&.${rl.disabled} + .${rl.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${rl.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${rl.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rl.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${"light"===t.palette.mode?(0,We.$n)(t.palette[n.color].main,.62):(0,We._j)(t.palette[n.color].main,.55)}`}},[`&.${rl.checked} + .${rl.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),hl=(0,l.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),fl=(0,l.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),ml=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s}=n,l=(0,E.Z)(n,ul),c=(0,P.Z)({},n,{color:i,edge:o,size:a}),u=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${(0,Ye.Z)(n)}`,`size${(0,Ye.Z)(r)}`],switchBase:["switchBase",`color${(0,Ye.Z)(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,O.Z)(s,nl,t);return(0,P.Z)({},t,l)})(c),d=(0,F.jsx)(fl,{className:u.thumb,ownerState:c});return(0,F.jsxs)(dl,{className:(0,I.Z)(u.root,r),sx:s,ownerState:c,children:[(0,F.jsx)(pl,(0,P.Z)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,P.Z)({},u,{root:u.switchBase})})),(0,F.jsx)(hl,{className:u.track,ownerState:c})]})})),gl=ml;const yl=r.createContext();function vl(e){return(0,u.Z)("MuiTable",e)}(0,c.Z)("MuiTable",["root","stickyHeader"]);const bl=["className","component","padding","size","stickyHeader"],_l=(0,l.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,P.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),wl="table",xl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTable"}),{className:i,component:o=wl,padding:a="normal",size:s="medium",stickyHeader:l=!1}=n,c=(0,E.Z)(n,bl),u=(0,P.Z)({},n,{component:o,padding:a,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,O.Z)(r,vl,t)})(u),p=r.useMemo((()=>({padding:a,size:s,stickyHeader:l})),[a,s,l]);return(0,F.jsx)(yl.Provider,{value:p,children:(0,F.jsx)(_l,(0,P.Z)({as:o,role:o===wl?null:"table",ref:t,className:(0,I.Z)(d.root,i),ownerState:u},c))})}));const kl=r.createContext();function Cl(e){return(0,u.Z)("MuiTableBody",e)}(0,c.Z)("MuiTableBody",["root"]);const Sl=["className","component"],Ml=(0,l.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Tl={variant:"body"},El="tbody",Pl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTableBody"}),{className:r,component:i=El}=n,o=(0,E.Z)(n,Sl),a=(0,P.Z)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Cl,t)})(a);return(0,F.jsx)(kl.Provider,{value:Tl,children:(0,F.jsx)(Ml,(0,P.Z)({className:(0,I.Z)(s.root,r),as:i,ref:t,role:i===El?null:"rowgroup",ownerState:a},o))})}));function Il(e){return(0,u.Z)("MuiTableCell",e)}const Ol=(0,c.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ll=["align","className","component","padding","scope","size","sortDirection","variant"],Rl=(0,l.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,Ye.Z)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,Ye.Z)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,Ye.Z)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===t.palette.mode?(0,We.$n)((0,We.Fq)(t.palette.divider,1),.88):(0,We._j)((0,We.Fq)(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",[`&.${Ol.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),jl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=(0,E.Z)(n,Ll),h=r.useContext(yl),f=r.useContext(kl),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let y=l;"td"===g?y=void 0:!y&&m&&(y="col");const v=d||f&&f.variant,b=(0,P.Z)({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v}),_=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,Ye.Z)(r)}`,"normal"!==i&&`padding${(0,Ye.Z)(i)}`,`size${(0,Ye.Z)(o)}`]};return(0,O.Z)(s,Il,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,F.jsx)(Rl,(0,P.Z)({as:g,ref:t,className:(0,I.Z)(_.root,o),"aria-sort":w,scope:y,ownerState:b},p))})),Dl=jl;function Al(e){return(0,u.Z)("MuiTableContainer",e)}(0,c.Z)("MuiTableContainer",["root"]);const Nl=["className","component"],Fl=(0,l.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTableContainer"}),{className:r,component:i="div"}=n,o=(0,E.Z)(n,Nl),a=(0,P.Z)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Al,t)})(a);return(0,F.jsx)(Fl,(0,P.Z)({ref:t,as:i,className:(0,I.Z)(s.root,r),ownerState:a},o))}));function Bl(e){return(0,u.Z)("MuiTableHead",e)}(0,c.Z)("MuiTableHead",["root"]);const Ul=["className","component"],$l=(0,l.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Vl={variant:"head"},ql="thead",Zl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTableHead"}),{className:r,component:i=ql}=n,o=(0,E.Z)(n,Ul),a=(0,P.Z)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Bl,t)})(a);return(0,F.jsx)(kl.Provider,{value:Vl,children:(0,F.jsx)($l,(0,P.Z)({as:i,className:(0,I.Z)(s.root,r),ref:t,role:i===ql?null:"rowgroup",ownerState:a},o))})}));function Hl(e){return(0,u.Z)("MuiTableRow",e)}const Gl=(0,c.Z)("MuiTableRow",["root","selected","hover","head","footer"]),Wl=["className","component","hover","selected"],Yl=(0,l.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Gl.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Gl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),Kl="tr",Xl=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiTableRow"}),{className:i,component:o=Kl,hover:a=!1,selected:s=!1}=n,l=(0,E.Z)(n,Wl),c=r.useContext(kl),u=(0,P.Z)({},n,{component:o,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,O.Z)(a,Hl,t)})(u);return(0,F.jsx)(Yl,(0,P.Z)({as:o,ref:t,className:(0,I.Z)(d.root,i),role:o===Kl?null:"row",ownerState:u},l))})),Jl=Xl;function Ql(e){return(0,u.Z)("MuiToggleButton",e)}const ec=(0,c.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),tc=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],nc=(0,l.ZP)($e,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Ye.Z)(n.size)}`]]}})((e=>{let t,{theme:n,ownerState:r}=e,i="standard"===r.color?n.palette.text.primary:n.palette[r.color].main;return n.vars&&(i="standard"===r.color?n.vars.palette.text.primary:n.vars.palette[r.color].main,t="standard"===r.color?n.vars.palette.text.primaryChannel:n.vars.palette[r.color].mainChannel),(0,P.Z)({},n.typography.button,{borderRadius:(n.vars||n).shape.borderRadius,padding:11,border:`1px solid ${(n.vars||n).palette.divider}`,color:(n.vars||n).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${ec.disabled}`]:{color:(n.vars||n).palette.action.disabled,border:`1px solid ${(n.vars||n).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / ${n.vars.palette.action.hoverOpacity})`:(0,We.Fq)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ec.selected}`]:{color:i,backgroundColor:n.vars?`rgba(${t} / ${n.vars.palette.action.selectedOpacity})`:(0,We.Fq)(i,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${t} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(i,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?`rgba(${t} / ${n.vars.palette.action.selectedOpacity})`:(0,We.Fq)(i,n.palette.action.selectedOpacity)}}}},"small"===r.size&&{padding:7,fontSize:n.typography.pxToRem(13)},"large"===r.size&&{padding:15,fontSize:n.typography.pxToRem(15)})})),rc=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiToggleButton"}),{children:r,className:i,color:o="standard",disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l=!1,onChange:c,onClick:u,selected:d,size:p="medium",value:h}=n,f=(0,E.Z)(n,tc),m=(0,P.Z)({},n,{color:o,disabled:a,disableFocusRipple:s,fullWidth:l,size:p}),g=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${(0,Ye.Z)(o)}`,a]};return(0,O.Z)(s,Ql,t)})(m);return(0,F.jsx)(nc,(0,P.Z)({className:(0,I.Z)(g.root,i),disabled:a,focusRipple:!s,ref:t,onClick:e=>{u&&(u(e,h),e.defaultPrevented)||c&&c(e,h)},onChange:c,value:h,ownerState:m,"aria-pressed":d},f,{children:r}))}));function ic(e){return(0,u.Z)("MuiToggleButtonGroup",e)}const oc=(0,c.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);function ac(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const sc=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],lc=(0,l.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oc.grouped}`]:t.grouped},{[`& .${oc.grouped}`]:t[`grouped${(0,Ye.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((e=>{let{ownerState:t,theme:n}=e;return(0,P.Z)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${oc.grouped}`]:(0,P.Z)({},"horizontal"===t.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${oc.selected} + .${oc.grouped}.${oc.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${oc.selected} + .${oc.grouped}.${oc.selected}`]:{borderTop:0,marginTop:0}})})})),cc=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:p="medium",value:h}=n,f=(0,E.Z)(n,sc),m=(0,P.Z)({},n,{disabled:s,fullWidth:c,orientation:d,size:p}),g=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${(0,Ye.Z)(n)}`,i&&"disabled"]};return(0,O.Z)(o,ic,t)})(m),y=(e,t)=>{if(!u)return;const n=h&&h.indexOf(t);let r;h&&n>=0?(r=h.slice(),r.splice(n,1)):r=h?h.concat(t):[t],u(e,r)},v=(e,t)=>{u&&u(e,h===t?null:t)};return(0,F.jsx)(lc,(0,P.Z)({role:"group",className:(0,I.Z)(g.root,o),ref:t,ownerState:m},f,{children:r.Children.map(i,(e=>r.isValidElement(e)?r.cloneElement(e,{className:(0,I.Z)(g.grouped,e.props.className),onChange:l?v:y,selected:void 0===e.props.selected?ac(e.props.value,h):e.props.selected,size:e.props.size||p,fullWidth:c,color:e.props.color||a,disabled:e.props.disabled||s}):null))}))}));function uc(e){return(0,u.Z)("MuiAutocomplete",e)}const dc=(0,c.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);function pc(e){return(0,u.Z)("MuiRadio",e)}const hc=(0,c.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),fc=(0,rt.Z)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),mc=(0,rt.Z)((0,F.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),gc=(0,l.ZP)("span")({position:"relative",display:"flex"}),yc=(0,l.ZP)(fc)({transform:"scale(1)"}),vc=(0,l.ZP)(mc)((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));const bc=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,P.Z)({},e,{checked:t});return(0,F.jsxs)(gc,{className:n.root,ownerState:i,children:[(0,F.jsx)(yc,{fontSize:r,className:n.background,ownerState:i}),(0,F.jsx)(vc,{fontSize:r,className:n.dot,ownerState:i})]})},_c=ir;const wc=r.createContext(void 0);const xc=["checked","checkedIcon","color","icon","name","onChange","size","className"],kc=(0,l.ZP)(cl,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ye.Z)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${hc.checked}`]:{color:(t.vars||t).palette[n.color].main}},{[`&.${hc.disabled}`]:{color:(t.vars||t).palette.action.disabled}})}));const Cc=(0,F.jsx)(bc,{checked:!0}),Sc=(0,F.jsx)(bc,{}),Mc=r.forwardRef((function(e,t){var n,i;const o=(0,L.Z)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:s=Cc,color:l="primary",icon:c=Sc,name:u,onChange:d,size:p="medium",className:h}=o,f=(0,E.Z)(o,xc),m=(0,P.Z)({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e,r={root:["root",`color${(0,Ye.Z)(n)}`]};return(0,P.Z)({},t,(0,O.Z)(r,pc,t))})(m),y=r.useContext(wc);let v=a;const b=_c(d,y&&y.onChange);let _=u;var w,x;return y&&("undefined"===typeof v&&(w=y.value,v="object"===typeof(x=o.value)&&null!==x?w===x:String(w)===String(x)),"undefined"===typeof _&&(_=y.name)),(0,F.jsx)(kc,(0,P.Z)({type:"radio",icon:r.cloneElement(c,{fontSize:null!=(n=Sc.props.fontSize)?n:p}),checkedIcon:r.cloneElement(s,{fontSize:null!=(i=Cc.props.fontSize)?i:p}),ownerState:m,classes:g,name:_,checked:v,onChange:b,ref:t,className:(0,I.Z)(g.root,h)},f))}));function Tc(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!==typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Tc.propTypes={children:wi().node,injectFirst:wi().bool};const Ec=r.createContext(null);function Pc(){return r.useContext(Ec)}const Ic="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const Oc=function(e){const{children:t,theme:n}=e,i=Pc(),o=r.useMemo((()=>{const e=null===i?n:function(e,t){if("function"===typeof t)return t(e);return(0,pe.Z)({},e,t)}(i,n);return null!=e&&(e[Ic]=null!==i),e}),[n,i]);return(0,F.jsx)(Ec.Provider,{value:o,children:t})};var Lc=n(24869);const Rc={};function jc(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r.useMemo((()=>{const r=e&&t[e]||t;if("function"===typeof n){const o=n(r),a=e?(0,P.Z)({},t,{[e]:o}):o;return i?()=>a:a}return e?(0,P.Z)({},t,{[e]:n}):(0,P.Z)({},t,n)}),[e,t,n,i])}const Dc=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,Lc.Z)(Rc),a=Pc()||Rc,s=jc(r,i,n),l=jc(r,a,n,!0);return(0,F.jsx)(Oc,{theme:l,children:(0,F.jsx)(o.Ni.Provider,{value:s,children:t})})},Ac=["theme"];function Nc(e){let{theme:t}=e,n=(0,E.Z)(e,Ac);const r=t[Ti.Z];return(0,F.jsx)(Dc,(0,P.Z)({},n,{themeId:r?Ti.Z:void 0,theme:r||t}))}var Fc=n(84365);const zc=["className","component","disableGutters","fixed","maxWidth","classes"],Bc=(0,Ma.Z)(),Uc=Ca("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Fc.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),$c=e=>(0,Sa.Z)({props:e,name:"MuiContainer",defaultTheme:Bc});const Vc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Uc,useThemeProps:n=$c,componentName:i="MuiContainer"}=e,o=t((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:`${i}${t.breakpoints.unit}`}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`}})})),a=r.forwardRef((function(e,t){const r=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:d="lg"}=r,p=(0,E.Z)(r,zc),h=(0,P.Z)({},r,{component:s,disableGutters:l,fixed:c,maxWidth:d}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,Fc.Z)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,O.Z)(a,(e=>(0,u.Z)(t,e)),n)})(h,i);return(0,F.jsx)(o,(0,P.Z)({as:s,ownerState:h,className:(0,I.Z)(f.root,a),ref:t},p))}));return a}({createStyledComponent:(0,l.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Ye.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,L.Z)({props:e,name:"MuiContainer"})}),qc=Vc,Zc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hc=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,We.Fq)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,P.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}})}),(e=>{let{ownerState:t}=e;return(0,P.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Gc=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),Wc=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=(0,E.Z)(n,Zc),f=(0,P.Z)({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,O.Z)(c,No,r)})(f);return(0,F.jsx)(Hc,(0,P.Z)({as:a,className:(0,I.Z)(m.root,o),role:u,ref:t,ownerState:f},h,{children:i?(0,F.jsx)(Gc,{className:m.wrapper,ownerState:f,children:i}):null}))}));Wc.muiSkipListHighlight=!0;const Yc=Wc,Kc=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Xc=(0,l.ZP)($e,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${_.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${_.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${_.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${_.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})})),Jc=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:h}=n,f=(0,E.Z)(n,Kc),m=r.useContext(An),g=r.useMemo((()=>({dense:l||m.dense||!1,alignItems:i,disableGutters:c})),[i,m.dense,l,c]),y=r.useRef(null);Vn((()=>{o&&y.current&&y.current.focus()}),[o]);const v=(0,P.Z)({},n,{alignItems:i,dense:g.dense,disableGutters:c,divider:u,selected:p}),_=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,l={root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},c=(0,O.Z)(l,b,n);return(0,P.Z)({},n,c)})(v),w=(0,A.Z)(y,t);return(0,F.jsx)(An.Provider,{value:g,children:(0,F.jsx)(Xc,(0,P.Z)({ref:w,href:f.href||f.to,component:(f.href||f.to)&&"div"===a?"button":a,focusVisibleClassName:(0,I.Z)(_.focusVisible,d),ownerState:v,className:(0,I.Z)(_.root,h)},f,{classes:_,children:s}))})}));var Qc;const eu=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tu=(0,l.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ye.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{[`&.${yn.positionStart}&:not(.${yn.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),nu=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=(0,E.Z)(n,eu),p=wn()||{};let h=u;u&&p.variant,p&&!h&&(h=p.variant);const f=(0,P.Z)({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${(0,Ye.Z)(i)}`,a,r&&"hiddenLabel",o&&`size${(0,Ye.Z)(o)}`]};return(0,O.Z)(s,gn,t)})(f);return(0,F.jsx)(_n.Provider,{value:null,children:(0,F.jsx)(tu,(0,P.Z)({as:a,ownerState:f,className:(0,I.Z)(m.root,o),ref:t},d,{children:"string"!==typeof i||l?(0,F.jsxs)(r.Fragment,{children:["start"===c?Qc||(Qc=(0,F.jsx)("span",{className:"notranslate",children:"\u200b"})):null,i]}):(0,F.jsx)(xt,{color:"text.secondary",children:i})}))})})),ru=(0,rt.Z)((0,F.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"),iu=(0,rt.Z)((0,F.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"),ou=(0,rt.Z)((0,F.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"),au=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],su=(0,l.ZP)(cl,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ye.Z)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${At.checked}, &.${At.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${At.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),lu=(0,F.jsx)(iu,{}),cu=(0,F.jsx)(ru,{}),uu=(0,F.jsx)(ou,{}),du=r.forwardRef((function(e,t){var n,i;const o=(0,L.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=lu,color:s="primary",icon:l=cu,indeterminate:c=!1,indeterminateIcon:u=uu,inputProps:d,size:p="medium",className:h}=o,f=(0,E.Z)(o,au),m=c?u:l,g=c?u:a,y=(0,P.Z)({},o,{color:s,indeterminate:c,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ye.Z)(r)}`,`size${(0,Ye.Z)(i)}`]},a=(0,O.Z)(o,Dt,t);return(0,P.Z)({},t,a)})(y);return(0,F.jsx)(su,(0,P.Z)({type:"checkbox",inputProps:(0,P.Z)({"data-indeterminate":c},d),icon:r.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:r.cloneElement(g,{fontSize:null!=(i=g.props.fontSize)?i:p}),ownerState:y,ref:t,className:(0,I.Z)(v.root,h)},f,{classes:v}))}));function pu(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function hu(e){return parseFloat(e)}function fu(e){return(0,u.Z)("MuiSkeleton",e)}(0,c.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const mu=["animation","className","component","height","style","variant","width"];let gu,yu,vu,bu,_u=e=>e;const wu=(0,o.F4)(gu||(gu=_u`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),xu=(0,o.F4)(yu||(yu=_u`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),ku=(0,l.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=pu(t.shape.borderRadius)||"px",i=hu(t.shape.borderRadius);return(0,P.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,We.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${r}/${Math.round(i/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,o.iv)(vu||(vu=_u`
      animation: ${0} 1.5s ease-in-out 0.5s infinite;
    `),wu)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,o.iv)(bu||(bu=_u`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 1.6s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),xu,(n.vars||n).palette.action.hover)})),Cu=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:o="span",height:a,style:s,variant:l="text",width:c}=n,u=(0,E.Z)(n,mu),d=(0,P.Z)({},n,{animation:r,component:o,variant:l,hasChildren:Boolean(u.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e,s={root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,O.Z)(s,fu,t)})(d);return(0,F.jsx)(ku,(0,P.Z)({as:o,ref:t,className:(0,I.Z)(p.root,i),ownerState:d},u,{style:(0,P.Z)({width:c,height:a},s)}))})),Su=Cu;var Mu,Tu,Eu=n(28438),Pu=n(55447);const Iu=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ou=["ref"],Lu=(0,l.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${dc.tag}`]:t.tag},{[`& .${dc.tag}`]:t[`tagSize${(0,Ye.Z)(s)}`]},{[`& .${dc.inputRoot}`]:t.inputRoot},{[`& .${dc.input}`]:t.input},{[`& .${dc.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({[`&.${dc.focused} .${dc.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${dc.clearIndicator}`]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{[`& .${dc.tag}`]:(0,P.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${dc.inputRoot}`]:{flexWrap:"wrap",[`.${dc.hasPopupIcon}&, .${dc.hasClearIcon}&`]:{paddingRight:30},[`.${dc.hasPopupIcon}.${dc.hasClearIcon}&`]:{paddingRight:56},[`& .${dc.input}`]:{width:0,minWidth:30}},[`& .${Fi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Fi.root}.${hn.sizeSmall}`]:{[`& .${Fi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${In.root}`]:{padding:9,[`.${dc.hasPopupIcon}&, .${dc.hasClearIcon}&`]:{paddingRight:39},[`.${dc.hasPopupIcon}.${dc.hasClearIcon}&`]:{paddingRight:65},[`& .${dc.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${dc.endAdornment}`]:{right:9}},[`& .${In.root}.${hn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${dc.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${mn.root}`]:{paddingTop:19,paddingLeft:8,[`.${dc.hasPopupIcon}&, .${dc.hasClearIcon}&`]:{paddingRight:39},[`.${dc.hasPopupIcon}.${dc.hasClearIcon}&`]:{paddingRight:65},[`& .${mn.input}`]:{padding:"7px 4px"},[`& .${dc.endAdornment}`]:{right:9}},[`& .${mn.root}.${hn.sizeSmall}`]:{paddingBottom:1,[`& .${mn.input}`]:{padding:"2.5px 4px"}},[`& .${hn.hiddenLabel}`]:{paddingTop:8},[`& .${mn.root}.${hn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${dc.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${mn.root}.${hn.hiddenLabel}.${hn.sizeSmall}`]:{[`& .${dc.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${dc.input}`]:(0,P.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),Ru=(0,l.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),ju=(0,l.ZP)(nt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Du=(0,l.ZP)(nt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,P.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return(0,P.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),Au=(0,l.ZP)(Vt.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dc.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),Nu=(0,l.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,P.Z)({},t.typography.body1,{overflow:"auto"})})),Fu=(0,l.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),zu=(0,l.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Bu=(0,l.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${dc.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${dc.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${dc.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${dc.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${dc.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),Uu=(0,l.ZP)(Pu.Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),$u=(0,l.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${dc.option}`]:{paddingLeft:24}}),Vu=r.forwardRef((function(e,t){var n,i,o,a;const s=(0,L.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=Mu||(Mu=(0,F.jsx)(lt,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b={},defaultValue:_=(s.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:x=!1,disabled:k=!1,disabledItemsFocusable:C=!1,disableListWrap:S=!1,disablePortal:M=!1,filterSelectedOptions:T=!1,forcePopupIcon:R="auto",freeSolo:j=!1,fullWidth:D=!1,getLimitTagsText:N=(e=>`+${e}`),getOptionLabel:z,groupBy:B,handleHomeEndKeys:U=!s.freeSolo,includeInputInList:$=!1,limitTags:V=-1,ListboxComponent:q="ul",ListboxProps:H,loading:G=!1,loadingText:W="Loading\u2026",multiple:Y=!1,noOptionsText:K="No options",openOnFocus:X=!1,openText:J="Open",PaperComponent:Q=Z.Z,PopperComponent:ee=Vt.Z,popupIcon:te=Tu||(Tu=(0,F.jsx)(fi,{})),readOnly:ne=!1,renderGroup:re,renderInput:ie,renderOption:oe,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ce={}}=s,ue=(0,E.Z)(s,Iu),{getRootProps:de,getInputProps:pe,getInputLabelProps:he,getPopupIndicatorProps:fe,getClearProps:me,getTagProps:ge,getListboxProps:ye,getOptionProps:ve,value:be,dirty:_e,expanded:we,id:xe,popupOpen:ke,focused:Ce,focusedTag:Se,anchorEl:Me,setAnchorEl:Te,inputValue:Ee,groupedOptions:Pe}=(0,Eu.o)((0,P.Z)({},s,{componentName:"Autocomplete"})),Ie=!w&&!k&&_e&&!ne,Oe=(!j||!0===R)&&!1!==R,{onMouseDown:Le}=pe(),{ref:Re}=null!=H?H:{},je=ye(),{ref:De}=je,Ae=(0,E.Z)(je,Ou),Ne=(0,A.Z)(De,Re),Fe=z||(e=>{var t;return null!=(t=e.label)?t:e}),ze=(0,P.Z)({},s,{disablePortal:M,expanded:we,focused:Ce,fullWidth:D,getOptionLabel:Fe,hasClearIcon:Ie,hasPopupIcon:Oe,inputFocused:-1===Se,popupOpen:ke,size:le}),Be=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${(0,Ye.Z)(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,O.Z)(d,uc,t)})(ze);let Ue;if(Y&&be.length>0){const e=e=>(0,P.Z)({className:Be.tag,disabled:k},ge(e));Ue=ae?ae(be,e,ze):be.map(((t,n)=>(0,F.jsx)(dn,(0,P.Z)({label:Fe(t),size:le},e({index:n}),p))))}if(V>-1&&Array.isArray(Ue)){const e=Ue.length-V;!Ce&&e>0&&(Ue=Ue.splice(0,V),Ue.push((0,F.jsx)("span",{className:Be.tag,children:N(e)},Ue.length)))}const $e=re||(e=>(0,F.jsxs)("li",{children:[(0,F.jsx)(Uu,{className:Be.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,F.jsx)($u,{className:Be.groupUl,ownerState:ze,children:e.children})]},e.key)),Ve=oe||((e,t)=>(0,F.jsx)("li",(0,P.Z)({},e,{children:Fe(t)}))),qe=(e,t)=>{const n=ve({option:e,index:t});return Ve((0,P.Z)({},n,{className:Be.option}),e,{selected:n["aria-selected"],index:t,inputValue:Ee},ze)},Ze=null!=(n=ce.clearIndicator)?n:b.clearIndicator,He=null!=(i=ce.paper)?i:b.paper,Ge=null!=(o=ce.popper)?o:b.popper,We=null!=(a=ce.popupIndicator)?a:b.popupIndicator;return(0,F.jsxs)(r.Fragment,{children:[(0,F.jsx)(Lu,(0,P.Z)({ref:t,className:(0,I.Z)(Be.root,h),ownerState:ze},de(ue),{children:ie({id:xe,disabled:k,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:he(),InputProps:(0,P.Z)({ref:Te,className:Be.inputRoot,startAdornment:Ue,onClick:e=>{e.target===e.currentTarget&&Le(e)}},(Ie||Oe)&&{endAdornment:(0,F.jsxs)(Ru,{className:Be.endAdornment,ownerState:ze,children:[Ie?(0,F.jsx)(ju,(0,P.Z)({},me(),{"aria-label":y,title:y,ownerState:ze},Ze,{className:(0,I.Z)(Be.clearIndicator,null==Ze?void 0:Ze.className),children:f})):null,Oe?(0,F.jsx)(Du,(0,P.Z)({},fe(),{disabled:k,"aria-label":ke?v:J,title:ke?v:J,ownerState:ze},We,{className:(0,I.Z)(Be.popupIndicator,null==We?void 0:We.className),children:te})):null]})}),inputProps:(0,P.Z)({className:Be.input,disabled:k,readOnly:ne},pe())})})),Me?(0,F.jsx)(Au,(0,P.Z)({as:ee,disablePortal:M,style:{width:Me?Me.clientWidth:null},ownerState:ze,role:"presentation",anchorEl:Me,open:ke},Ge,{className:(0,I.Z)(Be.popper,null==Ge?void 0:Ge.className),children:(0,F.jsxs)(Nu,(0,P.Z)({ownerState:ze,as:Q},He,{className:(0,I.Z)(Be.paper,null==He?void 0:He.className),children:[G&&0===Pe.length?(0,F.jsx)(Fu,{className:Be.loading,ownerState:ze,children:W}):null,0!==Pe.length||j||G?null:(0,F.jsx)(zu,{className:Be.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:K}),Pe.length>0?(0,F.jsx)(Bu,(0,P.Z)({as:q,className:Be.listbox,ownerState:ze},Ae,H,{ref:Ne,children:Pe.map(((e,t)=>B?$e({key:e.key,group:e.group,children:e.options.map(((t,n)=>qe(t,e.index+n)))}):qe(e,t)))})):null]}))})):null]})})),qu=Vu;var Zu=n(97184),Hu=n(75640);const Gu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Wu=e=>(0,P.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Yu=(0,l.ZP)($e,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Ye.Z)(n.color)}`],t[`size${(0,Ye.Z)(n.size)}`],t[`${n.variant}Size${(0,Ye.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const o="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,P.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,P.Z)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,We.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,P.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Et.focusVisible}`]:(0,P.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Et.disabled}`]:(0,P.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,We.Fq)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:o,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Et.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Et.disabled}`]:{boxShadow:"none"}}})),Ku=(0,l.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,Ye.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Wu(t))})),Xu=(0,l.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,Ye.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Wu(t))})),Ju=r.forwardRef((function(e,t){const n=r.useContext(Ot),i=(0,Hu.Z)(n,e),o=(0,L.Z)({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:f,fullWidth:m=!1,size:g="medium",startIcon:y,type:v,variant:b="text"}=o,_=(0,E.Z)(o,Gu),w=(0,P.Z)({},o,{color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:v,variant:b}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${(0,Ye.Z)(t)}`,`size${(0,Ye.Z)(i)}`,`${o}Size${(0,Ye.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,Ye.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,Ye.Z)(i)}`]},l=(0,O.Z)(s,Tt,a);return(0,P.Z)({},a,l)})(w),k=y&&(0,F.jsx)(Ku,{className:x.startIcon,ownerState:w,children:y}),C=h&&(0,F.jsx)(Xu,{className:x.endIcon,ownerState:w,children:h});return(0,F.jsxs)(Yu,(0,P.Z)({ownerState:w,className:(0,I.Z)(n.className,x.root,c),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:(0,I.Z)(x.focusVisible,f),ref:t,type:v},_,{classes:x,children:[k,a,C]}))}));function Qu(e){return(0,u.Z)("MuiFormGroup",e)}(0,c.Z)("MuiFormGroup",["root","row","error"]);const ed=["className","row"],td=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),nd=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1}=n,o=(0,E.Z)(n,ed),a=xn({props:n,muiFormControl:wn(),states:["error"]}),s=(0,P.Z)({},n,{row:i,error:a.error}),l=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,O.Z)(i,Qu,t)})(s);return(0,F.jsx)(td,(0,P.Z)({className:(0,I.Z)(l.root,r),ownerState:s,ref:t},o))})),rd=["actions","children","defaultValue","name","onChange","value"],id=r.forwardRef((function(e,t){const{actions:n,children:i,defaultValue:o,name:a,onChange:s,value:l}=e,c=(0,E.Z)(e,rd),u=r.useRef(null),[d,p]=G({controlled:l,default:o,name:"RadioGroup"});r.useImperativeHandle(n,(()=>({focus:()=>{let e=u.current.querySelector("input:not(:disabled):checked");e||(e=u.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const h=(0,A.Z)(t,u),f=Zt(a),m=r.useMemo((()=>({name:f,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:d})),[f,s,p,d]);return(0,F.jsx)(wc.Provider,{value:m,children:(0,F.jsx)(nd,(0,P.Z)({role:"radiogroup",ref:h},c,{children:i}))})}));function od(e){return(0,u.Z)("MuiFormControlLabel",e)}const ad=(0,c.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sd=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ld=(0,l.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ad.label}`]:t.label},t.root,t[`labelPlacement${(0,Ye.Z)(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ad.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${ad.label}`]:{[`&.${ad.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),cd=(0,l.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${ad.error}`]:{color:(t.vars||t).palette.error.main}}})),ud=r.forwardRef((function(e,t){var n,i;const o=(0,L.Z)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=o,m=(0,E.Z)(o,sd),g=wn(),y=null!=(n=null!=c?c:l.props.disabled)?n:null==g?void 0:g.disabled,v=null!=h?h:l.props.required,b={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof o[e]&&(b[e]=o[e])}));const _=xn({props:o,muiFormControl:g,states:["error"]}),w=(0,P.Z)({},o,{disabled:y,labelPlacement:p,required:v,error:_.error}),x=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,Ye.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,O.Z)(a,od,t)})(w),k=null!=(i=f.typography)?i:s.typography;let C=d;return null==C||C.type===xt||u||(C=(0,F.jsx)(xt,(0,P.Z)({component:"span"},k,{className:(0,I.Z)(x.label,null==k?void 0:k.className),children:C}))),(0,F.jsxs)(ld,(0,P.Z)({className:(0,I.Z)(x.root,a),ownerState:w,ref:t},m,{children:[r.cloneElement(l,b),v?(0,F.jsxs)(Aa,{direction:"row",alignItems:"center",children:[C,(0,F.jsxs)(cd,{ownerState:w,"aria-hidden":!0,className:x.asterisk,children:["\u2009","*"]})]}):C]}))}));function dd(e){return(0,u.Z)("MuiLink",e)}const pd=(0,c.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var hd=n(31843);const fd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},md=e=>{let{theme:t,ownerState:n}=e;const r=(e=>fd[e]||e)(n.color),i=(0,hd.DW)(t,`palette.${r}`,!1)||n.color,o=(0,hd.DW)(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:(0,We.Fq)(i,.4)},gd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],yd=(0,l.ZP)(xt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,Ye.Z)(n.underline)}`],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,P.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:md({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pd.focusVisible}`]:{outline:"auto"}})})),vd=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,h=(0,E.Z)(n,gd),{isFocusVisibleRef:f,onBlur:m,onFocus:g,ref:y}=ue(),[v,b]=r.useState(!1),_=(0,A.Z)(t,y),w=(0,P.Z)({},n,{color:o,component:a,focusVisible:v,underline:u,variant:d}),x=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,Ye.Z)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,O.Z)(o,dd,t)})(w);return(0,F.jsx)(yd,(0,P.Z)({color:o,className:(0,I.Z)(x.root,i),classes:c,component:a,onBlur:e=>{m(e),!1===f.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===f.current&&b(!0),l&&l(e)},ref:_,ownerState:w,variant:d,sx:[...Object.keys(fd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))})),bd=vd;function _d(e){return(0,u.Z)("MuiListItemSecondaryAction",e)}(0,c.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const wd=["className"],xd=(0,l.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),kd=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=(0,E.Z)(n,wd),a=r.useContext(An),s=(0,P.Z)({},n,{disableGutters:a.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,O.Z)(r,_d,n)})(s);return(0,F.jsx)(xd,(0,P.Z)({className:(0,I.Z)(l.root,i),ownerState:s,ref:t},o))}));kd.muiName="ListItemSecondaryAction";const Cd=kd,Sd=["className"],Md=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Td=(0,l.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,P.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,P.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{[`& > .${_.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,We.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),Ed=(0,l.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Pd=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:f=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:_,selected:k=!1,slotProps:C={},slots:S={}}=n,M=(0,E.Z)(n.ContainerProps,Sd),T=(0,E.Z)(n,Md),R=r.useContext(An),j=r.useMemo((()=>({dense:f||R.dense||!1,alignItems:i,disableGutters:g})),[i,R.dense,f,g]),D=r.useRef(null);Vn((()=>{o&&D.current&&D.current.focus()}),[o]);const N=r.Children.toArray(s),z=N.length&&Co(N[N.length-1],["ListItemSecondaryAction"]),B=(0,P.Z)({},n,{alignItems:i,autoFocus:o,button:a,dense:j.dense,disabled:m,disableGutters:g,disablePadding:y,divider:v,hasSecondaryAction:z,selected:k}),U=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,O.Z)(d,w,r)})(B),$=(0,A.Z)(D,t),V=S.root||u.Root||Td,q=C.root||d.root||{},Z=(0,P.Z)({className:(0,I.Z)(U.root,q.className,l),disabled:m},T);let H=c||"li";return a&&(Z.component=c||"div",Z.focusVisibleClassName=(0,I.Z)(x.focusVisible,b),H=$e),z?(H=Z.component||c?H:"div","li"===p&&("li"===H?H="div":"li"===Z.component&&(Z.component="div")),(0,F.jsx)(An.Provider,{value:j,children:(0,F.jsxs)(Ed,(0,P.Z)({as:p,className:(0,I.Z)(U.container,h),ref:$,ownerState:B},M,{children:[(0,F.jsx)(V,(0,P.Z)({},q,!(0,Kn.X)(V)&&{as:H,ownerState:(0,P.Z)({},B,q.ownerState)},Z,{children:N})),N.pop()]}))})):(0,F.jsx)(An.Provider,{value:j,children:(0,F.jsxs)(V,(0,P.Z)({},q,{as:H,ref:$},!(0,Kn.X)(V)&&{ownerState:(0,P.Z)({},B,q.ownerState)},Z,{children:[N,_&&(0,F.jsx)(Cd,{children:_})]}))})})),Id=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Od=(0,l.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${C.primary}`]:t.primary},{[`& .${C.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,P.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),Ld=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=(0,E.Z)(n,Id),{dense:h}=r.useContext(An);let f=null!=l?l:i,m=u;const g=(0,P.Z)({},n,{disableTypography:a,inset:s,primary:!!f,secondary:!!m,dense:h}),y=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,O.Z)(a,k,t)})(g);return null==f||f.type===xt||a||(f=(0,F.jsx)(xt,(0,P.Z)({variant:h?"body2":"body1",className:y.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:f}))),null==m||m.type===xt||a||(m=(0,F.jsx)(xt,(0,P.Z)({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,F.jsxs)(Od,(0,P.Z)({className:(0,I.Z)(y.root,o),ownerState:g,ref:t},p,{children:[f,m]}))})),Rd=(e,t)=>(0,P.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),jd=e=>(0,P.Z)({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}});function Dd(e){return(0,u.Z)("MuiScopedCssBaseline",e)}(0,c.Z)("MuiScopedCssBaseline",["root"]);const Ad=["className","component","enableColorScheme"],Nd=(0,l.ZP)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;const r={};return n.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach((e=>{let[n,i]=e;var o;r[`&${t.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:null==(o=i.palette)?void 0:o.mode}})),(0,P.Z)({},Rd(t,n.enableColorScheme),jd(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},r)})),Fd=r.forwardRef((function(e,t){const n=(0,L.Z)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div"}=n,o=(0,E.Z)(n,Ad),a=(0,P.Z)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,O.Z)({root:["root"]},Dd,t)})(a);return(0,F.jsx)(Nd,(0,P.Z)({as:i,className:(0,I.Z)(s.root,r),ref:t,ownerState:a},o))}));var zd=n(42525);function Bd(e,t,n,i,o){const[a,s]=r.useState((()=>o&&n?n(e).matches:i?i(e).matches:t));return Vn((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&s(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),a}const Ud=i.useSyncExternalStore;function $d(e,t,n,i,o){const a=r.useCallback((()=>t),[t]),s=r.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==i){const{matches:t}=i(e);return()=>t}return a}),[a,e,i,o,n]),[l,c]=r.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return Ud(c,l,s)}function Vd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Lc.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,zd.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"===typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Ud?$d:Bd)(l,i,o,a,s)}var qd=n(94278),Zd=n(61120),Hd=n(76943),Gd=n(45924),Wd=n(27594),Yd=Object.defineProperty,Kd=(e,t,n)=>(((e,t,n)=>{t in e?Yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Xd=(e=>(e[e.REGROW_DEFAULT=0]="REGROW_DEFAULT",e[e.FLUROSENSE_LEGACY=1]="FLUROSENSE_LEGACY",e))(Xd||{});const Jd=["h1","h2","h3","h4","h5","h6","body1","body2"],Qd=["0","1","2","3","4","5","6","7","8"],ep="#FF0EF3",tp={xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px",xxl:"24px"},np=.45,rp=[];let ip=0;for(;ip<64;)rp[ip]=0|4294967296*Math.sin(++ip%Math.PI);const op="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ap=e=>{let t,n,r,i,o,a,s,l="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)i=op.indexOf(e.charAt(c++)),o=op.indexOf(e.charAt(c++)),a=op.indexOf(e.charAt(c++)),s=op.indexOf(e.charAt(c++)),t=i<<2|o>>4,n=(15&o)<<4|a>>2,r=(3&a)<<6|s,l+=String.fromCharCode(t),64!=a&&(l+=String.fromCharCode(n)),64!=s&&(l+=String.fromCharCode(r));return l},sp=["pro","premium"],lp=["perpetual","annual","subscription"];function cp(e){console.error(["*************************************************************","",...e,"","*************************************************************"].join("\n"))}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},up.apply(this,arguments)}function dp(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var pp={exports:{}};var hp,fp,mp,gp,yp,vp;function bp(){if(fp)return hp;fp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return hp=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch{return!1}}()?Object.assign:function(r,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(s[c]=o[c]);if(e){a=e(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s},hp}function _p(){if(gp)return mp;gp=1;return mp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}pp.exports=function(){if(vp)return yp;vp=1;var e=_p();function t(){}function n(){}return n.resetWarningCache=t,yp=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();const wp=(pp.exports.element,()=>null);wp.isRequired=(pp.exports.element.isRequired,()=>null);var xp,kp={exports:{}},Cp={};!function(e){e.exports=function(){if(xp)return Cp;xp=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case o:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Cp.ContextConsumer=s,Cp.ContextProvider=a,Cp.Element=t,Cp.ForwardRef=c,Cp.Fragment=r,Cp.Lazy=h,Cp.Memo=p,Cp.Portal=n,Cp.Profiler=o,Cp.StrictMode=i,Cp.Suspense=u,Cp.SuspenseList=d,Cp.isAsyncMode=function(){return!1},Cp.isConcurrentMode=function(){return!1},Cp.isContextConsumer=function(e){return m(e)===s},Cp.isContextProvider=function(e){return m(e)===a},Cp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cp.isForwardRef=function(e){return m(e)===c},Cp.isFragment=function(e){return m(e)===r},Cp.isLazy=function(e){return m(e)===h},Cp.isMemo=function(e){return m(e)===p},Cp.isPortal=function(e){return m(e)===n},Cp.isProfiler=function(e){return m(e)===o},Cp.isStrictMode=function(e){return m(e)===i},Cp.isSuspense=function(e){return m(e)===u},Cp.isSuspenseList=function(e){return m(e)===d},Cp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cp.typeOf=m,Cp}()}(kp);const Sp=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();pp.exports.oneOfType([pp.exports.func,pp.exports.object]);function Mp(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ep(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}function Pp(e){return e&&e.ownerDocument||document}function Ip(e){return Pp(e).defaultView||window}function Op(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Lp=typeof window<"u"?r.useLayoutEffect:r.useEffect;let Rp=0;const jp=i["useId".toString()];function Dp(e){if(void 0!==jp){const t=jp();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),i=e||t;return r.useEffect((()=>{null==t&&(Rp+=1,n(`mui-${Rp}`))}),[t]),i}(e)}function Ap(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}function Np(e){const t=r.useRef(e);return Lp((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}function Fp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Op(t,e)}))}),t)}const zp=e=>{const t=r.useRef({});return r.useEffect((()=>{t.current=e})),t.current};function Bp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Up=e=>e,$p=(()=>{let e=Up;return{configure(t){e=t},generate:t=>e(t),reset(){e=Up}}})(),Vp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r=Vp[t];return r?`${n}-${r}`:`${$p.generate(e)}-${t}`}function Zp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=qp(e,t,n)})),r}Sp.__MUI_LICENSE_INFO__=Sp.__MUI_LICENSE_INFO__||{key:void 0};class Hp{static getLicenseInfo(){return Sp.__MUI_LICENSE_INFO__}static getLicenseKey(){return Hp.getLicenseInfo().key}static setLicenseKey(e){Hp.getLicenseInfo().key=e}}let Gp=function(e){return e.NotFound="NotFound",e.Invalid="Invalid",e.ExpiredAnnual="ExpiredAnnual",e.ExpiredAnnualGrace="ExpiredAnnualGrace",e.ExpiredVersion="ExpiredVersion",e.Valid="Valid",e.OutOfScope="OutOfScope",e}({});const Wp=/^.*EXPIRY=([0-9]+),.*$/,Yp=e=>{const t=ap(e);return t.includes("KEYVERSION=1")?(e=>{let t;try{t=parseInt(e.match(Wp)[1],10),(!t||Number.isNaN(t))&&(t=null)}catch{t=null}return{scope:"pro",licensingModel:"perpetual",expiryTimestamp:t}})(t):t.includes("KV=2")?(e=>{const t={scope:null,licensingModel:null,expiryTimestamp:null};return e.split(",").map((e=>e.split("="))).filter((e=>2===e.length)).forEach((e=>{let[n,r]=e;if("S"===n&&(t.scope=r),"LM"===n&&(t.licensingModel=r),"E"===n){const e=parseInt(r,10);e&&!Number.isNaN(e)&&(t.expiryTimestamp=e)}})),t})(t):null};function Kp(e){let{releaseInfo:t,licenseKey:n,acceptedScopes:r}=e;if(!t)throw new Error("MUI: The release information is missing. Not able to validate license.");if(!n)return{status:Gp.NotFound};const i=n.substr(0,32),o=n.substr(32);if(i!==function(e){const t=[];let n,r,i,o=unescape(encodeURI(e))+"\x80",a=o.length;const s=[n=1732584193,r=4023233417,~n,~r];for(e=--a/4+2|15,t[--e]=8*a;~a;)t[a>>2]|=o.charCodeAt(a)<<8*a--;for(ip=o=0;ip<e;ip+=16){for(a=s;o<64;a=[i=a[3],n+((i=a[0]+[n&r|~n&i,i&n|~i&r,n^r^i,r^(n|~i)][a=o>>4]+rp[o]+~~t[ip|15&[o,5*o+1,3*o+5,7*o][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>-a),n,r])n=0|a[1],r=a[2];for(o=4;o;)s[--o]+=a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^o++)&15).toString(16);return e}(o))return{status:Gp.Invalid};const a=Yp(o);if(null==a)return console.error("Error checking license. Key version not found!"),{status:Gp.Invalid};if(null==a.licensingModel||!lp.includes(a.licensingModel))return console.error("Error checking license. Licensing model not found or invalid!"),{status:Gp.Invalid};if(null==a.expiryTimestamp)return console.error("Error checking license. Expiry timestamp not found or invalid!"),{status:Gp.Invalid};a.licensingModel;{const e=parseInt(ap(t),10);if(Number.isNaN(e))throw new Error("MUI: The release information is invalid. Not able to validate license.");if(a.expiryTimestamp<e)return{status:Gp.ExpiredVersion}}return null!=a.scope&&sp.includes(a.scope)?r.includes(a.scope)?{status:Gp.Valid}:{status:Gp.OutOfScope}:(console.error("Error checking license. scope not found or invalid!"),{status:Gp.Invalid})}const Xp=r.createContext({key:void 0}),Jp={};function Qp(e,t){const{key:n}=r.useContext(Xp);return r.useMemo((()=>{const r=null!=n?n:Hp.getLicenseKey();if(Jp[e]&&Jp[e].key===r)return Jp[e].licenseVerifier;const i=e.includes("premium")?["premium"]:["pro","premium"],o=e.includes("premium")?"Premium":"Pro",a=Kp({releaseInfo:t,licenseKey:r,acceptedScopes:i});Jp[e]={key:r,licenseVerifier:a};const s=`@mui/${e}`;return a.status!==Gp.Valid&&(a.status===Gp.Invalid?cp(["MUI: Invalid license key.","","Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.","","To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument","Please check the license key installation https://mui.com/r/x-license-key-installation."]):a.status===Gp.OutOfScope?cp(["MUI: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.","","To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.","Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]):a.status===Gp.NotFound?function(e){let{plan:t,packageName:n}=e;cp(["MUI: Missing license key.","",`The license key is missing. You might not be allowed to use \`${n}\` which is part of MUI X ${t}.`,"","To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.","If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately."])}({plan:o,packageName:s}):a.status===Gp.ExpiredAnnualGrace?function(e){let{plan:t,licenseKey:n,expiryTimestamp:r}=e;cp(["MUI: Expired license key.","",`Your annual license key to use MUI X ${t}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${t} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${t}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(r)}`,`- Installed license key: ${n}`,""])}(up({plan:o},a.meta)):a.status===Gp.ExpiredAnnual?function(e){let{plan:t,licenseKey:n,expiryTimestamp:r}=e;throw new Error(["MUI: Expired license key.","",`Your annual license key to use MUI X ${t}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${t} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${t}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(r)}`,`- Installed license key: ${n}`,""].join("\n"))}(up({plan:o},a.meta)):a.status===Gp.ExpiredVersion&&function(e){let{packageName:t}=e;cp(["MUI: Expired package version.","",`You have installed a version of \`${t}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`,"","To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key."])}({packageName:s})),a}),[e,t,n])}var eh,th={exports:{}},nh={};!function(e){e.exports=function(){if(eh)return nh;eh=1,bp();var e=r,t=60103;if(nh.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;t=n("react.element"),nh.Fragment=n("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return nh.jsx=s,nh.jsxs=s,nh}()}(th);const rh=th.exports.Fragment,ih=th.exports.jsx,oh=th.exports.jsxs;function ah(e){switch(e){case Gp.ExpiredAnnualGrace:case Gp.ExpiredAnnual:return"MUI X Expired license key";case Gp.ExpiredVersion:return"MUI X Expired package version";case Gp.Invalid:return"MUI X Invalid license key";case Gp.OutOfScope:return"MUI X License key plan mismatch";case Gp.NotFound:return"MUI X Missing license key";default:throw new Error("MUI: Unhandled MUI X license status.")}}function sh(e){const{packageName:t,releaseInfo:n}=e,r=Qp(t,n);return r.status===Gp.Valid?null:ih("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:ah(r.status)})}var lh={};function ch(e,t){return()=>null}function uh(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function dh(e){if(!uh(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=dh(e[n])})),t}function ph(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const r=n.clone?up({},e):e;return uh(e)&&uh(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(uh(t[i])&&i in e&&uh(e[i])?r[i]=ph(e[i],t[i],n):n.clone?r[i]=uh(t[i])?dh(t[i]):t[i]:r[i]=t[i])})),r}const hh=(pp.exports.element,()=>null);hh.isRequired=(pp.exports.element.isRequired,()=>null);const fh=hh;const mh=(pp.exports.elementType,()=>null);function gh(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const yh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){const t=`${e}`.match(yh);return t&&t[1]||""}(e)||t}function bh(e,t,n){const r=vh(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const _h=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),wh=pp.exports.oneOfType([pp.exports.func,pp.exports.object]);function xh(e){if("string"!=typeof e)throw new Error(gh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function kh(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}function Ch(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Sh(e){return e&&e.ownerDocument||document}function Mh(e){return Sh(e).defaultView||window}function Th(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Eh=typeof window<"u"?r.useLayoutEffect:r.useEffect;let Ph=0;const Ih=i["useId".toString()];function Oh(e){if(void 0!==Ih){const t=Ih();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),i=e||t;return r.useEffect((()=>{null==t&&(Ph+=1,n(`mui-${Ph}`))}),[t]),i}(e)}function Lh(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}function Rh(e){const t=r.useRef(e);return Eh((()=>{t.current=e})),r.useCallback((function(){return(0,t.current)(...arguments)}),[])}function jh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Th(t,e)}))}),t)}let Dh,Ah=!0,Nh=!1;const Fh={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zh(e){e.metaKey||e.altKey||e.ctrlKey||(Ah=!0)}function Bh(){Ah=!1}function Uh(){"hidden"===this.visibilityState&&Nh&&(Ah=!0)}function $h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ah||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&Fh[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Vh(){const e=r.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",zh,!0),e.addEventListener("mousedown",Bh,!0),e.addEventListener("pointerdown",Bh,!0),e.addEventListener("touchstart",Bh,!0),e.addEventListener("visibilitychange",Uh,!0)}(e.ownerDocument)}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!$h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Nh=!0,window.clearTimeout(Dh),Dh=window.setTimeout((()=>{Nh=!1}),100),t.current=!1,!0)},ref:e}}function qh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Zh;function Hh(){if(Zh)return Zh;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Zh="reverse",e.scrollLeft>0?Zh="default":(e.scrollLeft=1,0===e.scrollLeft&&(Zh="negative")),document.body.removeChild(e),Zh}function Gh(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Hh()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Wh=e=>{const t=r.useRef({});return r.useEffect((()=>{t.current=e})),t.current},Yh={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};Number.isInteger;function Kh(){return null}Kh.isRequired=Kh;const Xh=Kh;function Jh(e,t){const n=up({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=up({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=up({},o),Object.keys(i).forEach((e=>{n[r][e]=Jh(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function Qh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const ef=e=>e,tf=(()=>{let e=ef;return{configure(t){e=t},generate:t=>e(t),reset(){e=ef}}})(),nf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function rf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r=nf[t];return r?`${n}-${r}`:`${tf.generate(e)}-${t}`}function of(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=rf(e,t,n)})),r}const af=dp(Object.freeze(Object.defineProperty({__proto__:null,chainPropTypes:ch,deepmerge:ph,isPlainObject:uh,elementAcceptingRef:fh,elementTypeAcceptingRef:mh,exactProp:function(e){return e},formatMuiErrorMessage:gh,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vh(e,"Component");if("object"==typeof e)switch(e.$$typeof){case kp.exports.ForwardRef:return bh(e,e.render,"ForwardRef");case kp.exports.Memo:return bh(e,e.type,"memo");default:return}}},HTMLElementType:function(e,t,n,r,i){return null},ponyfillGlobal:_h,refType:wh,unstable_capitalize:xh,unstable_createChainedFunction:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))},unstable_debounce:kh,unstable_deprecatedPropType:function(e,t){return()=>null},unstable_isMuiElement:Ch,unstable_ownerDocument:Sh,unstable_ownerWindow:Mh,unstable_requirePropFactory:function(e,t){return()=>null},unstable_setRef:Th,unstable_useEnhancedEffect:Eh,unstable_useId:Oh,unstable_unsupportedProp:function(e,t,n,r,i){return null},unstable_useControlled:Lh,unstable_useEventCallback:Rh,unstable_useForkRef:jh,unstable_useIsFocusVisible:Vh,unstable_getScrollbarSize:qh,unstable_detectScrollType:Hh,unstable_getNormalizedScrollLeft:Gh,usePreviousProps:Wh,visuallyHidden:Yh,integerPropType:Xh,internal_resolveProps:Jh,unstable_composeClasses:Qh,unstable_generateUtilityClass:rf,unstable_generateUtilityClasses:of,unstable_ClassNameGenerator:tf},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(lh,"__esModule",{value:!0}),lh.alpha=gf,lh.colorChannel=void 0,lh.darken=yf,lh.decomposeColor=df,lh.emphasize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mf(e)>.5?yf(e,t):vf(e,t)},lh.getContrastRatio=function(e,t){const n=mf(e),r=mf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},lh.getLuminance=mf,lh.hexToRgb=uf,lh.hslToRgb=ff;var sf=lh.lighten=vf;lh.private_safeAlpha=function(e,t,n){try{return gf(e,t)}catch{return e}},lh.private_safeColorChannel=void 0,lh.private_safeDarken=function(e,t,n){try{return yf(e,t)}catch{return e}},lh.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch{return t}},lh.private_safeLighten=function(e,t,n){try{return vf(e,t)}catch{return e}},lh.recomposeColor=hf,lh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=df(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var lf=af;function cf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function uf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function df(e){if(e.type)return e;if("#"===e.charAt(0))return df(uf(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,lf.formatMuiErrorMessage)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,lf.formatMuiErrorMessage)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const pf=e=>{const t=df(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};lh.colorChannel=pf;function hf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function ff(e){e=df(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),hf({type:s,values:l})}function mf(e){let t="hsl"===(e=df(e)).type||"hsla"===e.type?df(ff(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gf(e,t){return e=df(e),t=cf(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hf(e)}function yf(e,t){if(e=df(e),t=cf(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hf(e)}function vf(e,t){if(e=df(e),t=cf(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hf(e)}lh.private_safeColorChannel=(e,t)=>{try{return pf(e)}catch{return e}};const bf={fs_main:{black:"#1B1B1B",gray_800:"#464646",gray_600:"#7A7A7A",gray_400:"#909090",gray_300:"#E0E0E0",gray_200:"#F1F1F1",gray_100:"#F7F7F7",white:"#FFFFFF",green_800:"#005C00",green_600:"#399D2B",green_400:"#A2D29B",green_200:"#E7F5E6",orange_800:"#3E290A",orange_600:"#E09018",orange_400:"#E1AA58",orange_200:"#FEF9F2",red_800:"#340808",red_600:"#FF0611",red_400:"#FF8A8A",red_200:"#FFE6E0"},fs_category:{olive_800:"#1A3417",olive_600:"#5FB854",olive_400:"#85C97D",olive_200:"#EDF1E5",teal_800:"#173133",teal_600:"#44BAC1",teal_400:"#75CACF",teal_200:"#EDF7F8",blue_800:"#122543",blue_600:"#4988EF",blue_400:"#6391DC",blue_200:"#F2F6FB",purple_800:"#270D3C",purple_600:"#934BCC",purple_400:"#A571CB",purple_200:"#F9F3FD",magenta_800:"#3C0623",magenta_600:"#C52C7E",magenta_400:"#CC639C",magenta_200:"#FCF4F8",red_800:"#340808",red_600:"#DC2828",red_400:"#D05D5D",red_200:"#FFF8F8",orange_800:"#3E290A",orange_600:"#E09018",orange_400:"#E1AA58",orange_200:"#FEF9F2",yellow_800:"#423C07",yellow_600:"#F0DD2C",yellow_400:"#ECE071",yellow_200:"#FCFBF1"}},_f={text:{main:bf.fs_main.black,mainInverted:bf.fs_main.white,secondary:bf.fs_main.gray_600,secondaryInverted:bf.fs_main.gray_400,brand:bf.fs_main.green_600,error:bf.fs_main.red_600,success:bf.fs_main.green_600,warning:bf.fs_main.orange_600,info:bf.fs_category.blue_600},textInverted:{main:bf.fs_main.white,secondary:bf.fs_main.gray_400,brand:ep,error:ep,success:ep,warning:ep,info:ep},surface:{main:bf.fs_main.white,mainInverted:bf.fs_main.black,secondary:bf.fs_main.gray_100,secondaryInverted:bf.fs_main.gray_800,brand:bf.fs_main.green_200,error:bf.fs_main.red_200,success:bf.fs_main.green_200,warning:bf.fs_main.orange_200,info:bf.fs_category.blue_200},surfaceInverted:{main:bf.fs_main.black,mainInverted:bf.fs_main.white,secondary:bf.fs_main.gray_800,secondaryInverted:bf.fs_main.gray_100,brand:bf.fs_main.green_800,error:bf.fs_main.red_800,success:bf.fs_main.green_800,warning:bf.fs_main.orange_800,info:bf.fs_category.blue_800},stroke:{subtle:bf.fs_main.gray_200,subtleInverted:bf.fs_main.gray_800,strong:bf.fs_main.gray_300,strongInverted:bf.fs_main.gray_400,brand:bf.fs_main.green_600,error:bf.fs_main.red_600,success:bf.fs_main.green_600,warning:bf.fs_main.orange_600,info:bf.fs_category.blue_600},strokeInverted:{main:bf.fs_main.gray_400,secondary:bf.fs_main.gray_800,brand:ep,error:ep,success:ep,warning:ep,info:ep},highlight:{main:bf.fs_main.gray_300,secondary:bf.fs_main.gray_300,mainInverted:bf.fs_main.gray_300,secondaryInverted:bf.fs_main.gray_300,brand:bf.fs_main.green_400,error:bf.fs_main.red_400,success:bf.fs_main.green_400,warning:bf.fs_main.orange_400,info:bf.fs_category.blue_400}},wf={green:{chart:bf.fs_main.green_600,text:bf.fs_main.green_800,stroke:bf.fs_main.green_800,foreground:bf.fs_main.green_400,background:bf.fs_main.green_200,surfaceInverted:bf.fs_main.green_800},olive:{chart:bf.fs_category.olive_600,text:bf.fs_category.olive_800,stroke:bf.fs_category.olive_800,foreground:bf.fs_category.olive_400,background:bf.fs_category.olive_200,surfaceInverted:bf.fs_category.olive_800},teal:{chart:bf.fs_category.teal_600,text:bf.fs_category.teal_800,stroke:bf.fs_category.teal_800,foreground:bf.fs_category.teal_400,background:bf.fs_category.teal_200,surfaceInverted:bf.fs_category.teal_800},blue:{chart:bf.fs_category.blue_600,text:bf.fs_category.blue_800,stroke:bf.fs_category.blue_800,foreground:bf.fs_category.blue_400,background:bf.fs_category.blue_200,surfaceInverted:bf.fs_category.blue_800},purple:{chart:bf.fs_category.purple_600,text:bf.fs_category.purple_800,stroke:bf.fs_category.purple_800,foreground:bf.fs_category.purple_400,background:bf.fs_category.purple_200,surfaceInverted:bf.fs_category.purple_800},magenta:{chart:bf.fs_category.magenta_600,text:bf.fs_category.magenta_800,stroke:bf.fs_category.magenta_800,foreground:bf.fs_category.magenta_400,background:bf.fs_category.magenta_200,surfaceInverted:bf.fs_category.magenta_800},red:{chart:bf.fs_category.red_600,text:bf.fs_category.red_800,stroke:bf.fs_category.red_800,foreground:bf.fs_category.red_400,background:bf.fs_category.red_200,surfaceInverted:bf.fs_category.red_800},orange:{chart:bf.fs_category.orange_600,text:bf.fs_category.orange_800,stroke:bf.fs_category.orange_800,foreground:bf.fs_category.orange_400,background:bf.fs_category.orange_200,surfaceInverted:bf.fs_category.orange_800},yellow:{chart:bf.fs_category.yellow_600,text:bf.fs_category.yellow_800,stroke:bf.fs_category.yellow_800,foreground:bf.fs_category.yellow_400,background:bf.fs_category.yellow_200,surfaceInverted:bf.fs_category.yellow_800}},xf=Object.values(wf).reduce(((e,t,n)=>{let{background:r,surfaceInverted:i,chart:o,foreground:a,stroke:s,text:l}=t;const c={surface:r,surfaceInverted:i,chart:o,highlight:a,stroke:s,text:l};return{...e,[String(n)]:c}}),{}),kf={text:{..._f.text},textInverted:_f.textInverted,surface:{..._f.surface},surfaceInverted:_f.surfaceInverted,stroke:{main:_f.stroke.strong,secondary:_f.stroke.subtle,error:_f.stroke.error,success:_f.stroke.success,warning:_f.stroke.warning,info:_f.stroke.info,brand:_f.stroke.brand},strokeInverted:_f.strokeInverted,highlight:{..._f.surface}},Cf={common:{black:bf.fs_main.black,white:bf.fs_main.white},grey:{100:bf.fs_main.gray_100,200:bf.fs_main.gray_200,300:bf.fs_main.gray_300,400:bf.fs_main.gray_400,600:bf.fs_main.gray_600,800:bf.fs_main.gray_800,900:bf.fs_main.black,A100:bf.fs_main.gray_100,A200:bf.fs_main.gray_200,A400:bf.fs_main.gray_400,A700:bf.fs_main.gray_600},primary:{main:_f.text.brand},secondary:{main:_f.text.secondary},error:{main:_f.text.error},warning:{main:_f.text.warning},success:{main:_f.text.success},info:{main:_f.text.info},text:{primary:_f.text.main,secondary:_f.text.secondary,disabled:bf.fs_main.gray_300,placeholder:sf(bf.fs_main.gray_800,np)},background:{paper:_f.surface.main,default:_f.surface.main,shadow:bf.fs_main.gray_800},divider:_f.stroke.subtle,semanticPalette:kf,categoryPalette:xf},Sf=((()=>{const e=Object.values(bf).reduce(((e,t)=>({...e,...Object.entries(t).reduce(((e,t)=>{let[n,r]=t;var i;const[o,a]=n.split("_");return o&&a?{...e,[o]:{...null!=(i=e[o])?i:{},[a]:r}}:e}),{})})),{});e.gray[0]=bf.fs_main.white,e.gray[900]=bf.fs_main.black})(),{color:_f,categoryColor:wf,colorPalette:bf,borderRadius:{small:"4px",medium:"8px",large:"16px"},elevation:{low:"drop-shadow(0px 0px 1px rgba(79, 79, 79, 0.4))",medium:"drop-shadow(0px 0px 2.5px rgba(79, 79, 79, 0.35))",high:"drop-shadow(0px 0px 5px rgba(79, 79, 79, 0.3))"},fontWeight:{bold:700,normal:400}}),Mf={fontWeightLight:400,fontWeightRegular:400,fontWeightMedium:700,fontWeightBold:700},Tf={fontFamily:'"Roboto", sans-serif',fontSize:14,...Mf,h1:{fontSize:48,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"64px"},h2:{fontSize:36,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"48px"},h3:{fontSize:24,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"32px"},h4:{fontSize:16,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"24px"},h5:{fontSize:14,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"20px"},h6:{fontSize:12,fontWeight:Mf.fontWeightBold,letterSpacing:0,lineHeight:"16px"},body1:{fontSize:14,fontWeight:Mf.fontWeightRegular,letterSpacing:0,lineHeight:"20px"},body2:{fontSize:12,fontWeight:Mf.fontWeightRegular,letterSpacing:0,lineHeight:"16px"}},Ef={soil:{0:"#FFFFFF",100:"#F8F8F3",200:"#F1F1EC",300:"#D5D2CB",400:"#ABA5A0",500:"#8C857F",600:"#66605C",800:"#363331",900:"#191411"},green:{100:"#F4FBF5",400:"#67B874",500:"#30883E",600:"#096117",800:"#063A21"},orange:{100:"#FFF4E9",400:"#F7A559",500:"#D67D2B",600:"#9A4B03",800:"#49290B"},red:{100:"#FFF3F3",400:"#F05757",500:"#CA3232",600:"#AF0707",800:"#4E0808"},sprout:{100:"#F7FAF0",400:"#9DC04D",500:"#82A632",600:"#49650C",800:"#243304"},rain:{100:"#EAF5F5",400:"#93BFBC",500:"#54948F",600:"#11615B",800:"#042624"},ocean:{100:"#ECF0F5",400:"#8BA6CF",500:"#506D99",600:"#193B6C",800:"#0D0937"},lavender:{100:"#F3F2F9",400:"#9F9BCF",500:"#655FA4",600:"#1D1769",800:"#3A0729"},cherry:{100:"#F8ECF4",400:"#CC8FB7",500:"#B66299",600:"#4E1039",800:"#420A2F"},clay:{100:"#F7ECEB",400:"#D28783",500:"#B65853",600:"#591713",800:"#390A07"},coffee:{100:"#F3EAE2",400:"#CEA27A",500:"#B47C49",600:"#543213",800:"#3A2007"},mustard:{100:"#F3EFE3",400:"#DCBF76",500:"#B49034",600:"#5C460D",800:"#322605"}},Pf={text:{main:Ef.soil[900],secondary:Ef.soil[600],brand:Ef.green[600],error:Ef.red[600],success:Ef.green[600],warning:Ef.orange[600],info:Ef.rain[600]},textInverted:{main:Ef.soil[0],secondary:Ef.soil[400],brand:ep,error:ep,success:ep,warning:ep,info:ep},surface:{main:Ef.soil[0],secondary:Ef.soil[100],brand:Ef.green[100],error:Ef.red[100],success:Ef.green[100],warning:Ef.orange[100],info:Ef.rain[100]},surfaceInverted:{main:Ef.soil[900],secondary:Ef.soil[800],brand:Ef.green[800],error:Ef.red[800],success:Ef.green[800],warning:Ef.orange[800],info:Ef.rain[800]},stroke:{main:Ef.soil[300],secondary:Ef.soil[200],brand:Ef.green[600],error:Ef.red[600],success:Ef.green[600],warning:Ef.orange[600],info:Ef.rain[600]},strokeInverted:{main:Ef.soil[400],secondary:Ef.soil[800],brand:ep,error:ep,success:ep,warning:ep,info:ep},highlight:{main:Ef.soil[300],secondary:Ef.soil[300],brand:Ef.green[400],error:Ef.red[400],success:Ef.green[400],warning:Ef.orange[400],info:Ef.rain[400]}},If={0:{surface:Ef.green[100],chart:Ef.green[500],highlight:Ef.green[400],stroke:Ef.green[600],text:Ef.green[600],surfaceInverted:Ef.green[800]},1:{surface:Ef.sprout[100],chart:Ef.sprout[500],highlight:Ef.sprout[400],stroke:Ef.sprout[600],text:Ef.sprout[600],surfaceInverted:Ef.sprout[800]},2:{surface:Ef.rain[100],chart:Ef.rain[500],highlight:Ef.rain[400],stroke:Ef.rain[600],text:Ef.rain[600],surfaceInverted:Ef.rain[800]},3:{surface:Ef.ocean[100],chart:Ef.ocean[500],highlight:Ef.ocean[400],stroke:Ef.ocean[600],text:Ef.ocean[600],surfaceInverted:Ef.ocean[800]},4:{surface:Ef.lavender[100],chart:Ef.lavender[500],highlight:Ef.lavender[400],stroke:Ef.lavender[600],text:Ef.lavender[600],surfaceInverted:Ef.ocean[800]},5:{surface:Ef.cherry[100],chart:Ef.cherry[500],highlight:Ef.cherry[400],stroke:Ef.cherry[600],text:Ef.cherry[600],surfaceInverted:Ef.cherry[800]},6:{surface:Ef.clay[100],chart:Ef.clay[500],highlight:Ef.clay[400],stroke:Ef.clay[600],text:Ef.clay[600],surfaceInverted:Ef.clay[800]},7:{surface:Ef.coffee[100],chart:Ef.coffee[500],highlight:Ef.coffee[400],stroke:Ef.coffee[600],text:Ef.coffee[600],surfaceInverted:Ef.coffee[800]},8:{surface:Ef.mustard[100],chart:Ef.mustard[500],highlight:Ef.mustard[400],stroke:Ef.mustard[600],text:Ef.mustard[600],surfaceInverted:Ef.mustard[800]}},Of={common:{black:Ef.soil[900],white:Ef.soil[0]},grey:{100:Ef.soil[100],200:Ef.soil[200],300:Ef.soil[300],400:Ef.soil[400],600:Ef.soil[600],800:Ef.soil[800],900:Ef.soil[900],A100:Ef.soil[100],A200:Ef.soil[200],A400:Ef.soil[400],A700:Ef.soil[600]},primary:{main:Pf.text.brand},secondary:{main:Pf.text.secondary},error:{main:Pf.text.error},warning:{main:Pf.text.warning},success:{main:Pf.text.success},info:{main:Pf.text.info},text:{primary:Pf.text.main,secondary:Pf.text.secondary,disabled:Ef.soil[400],placeholder:sf(Ef.soil[600],np)},background:{paper:Pf.surface.main,default:Pf.surface.main,shadow:Ef.soil[800]},divider:Pf.stroke.secondary,semanticPalette:Pf,categoryPalette:If,...If},Lf='"Inter", sans-serif',Rf='"DM Sans", sans-serif',jf={fontWeightLight:400,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700},Df={fontFamily:Lf,fontSize:14,...jf,h1:{fontFamily:Rf,fontSize:48,fontWeight:jf.fontWeightBold,letterSpacing:0,lineHeight:"64px"},h2:{fontFamily:Rf,fontSize:36,fontWeight:jf.fontWeightBold,letterSpacing:0,lineHeight:"48px"},h3:{fontFamily:Rf,fontSize:24,fontWeight:jf.fontWeightBold,letterSpacing:0,lineHeight:"32px"},h4:{fontFamily:Lf,fontSize:16,fontWeight:jf.fontWeightMedium,letterSpacing:0,lineHeight:"24px"},h5:{fontFamily:Lf,fontSize:14,fontWeight:jf.fontWeightMedium,letterSpacing:0,lineHeight:"20px"},h6:{fontFamily:Lf,fontSize:12,fontWeight:jf.fontWeightMedium,letterSpacing:0,lineHeight:"16px"},body1:{fontFamily:Lf,fontSize:14,fontWeight:jf.fontWeightRegular,letterSpacing:0,lineHeight:"20px"},body2:{fontFamily:Lf,fontSize:12,fontWeight:jf.fontWeightRegular,letterSpacing:0,lineHeight:"16px"}},Af=r.createContext(void 0);function Nf(){const e=r.useContext(Af);if(void 0===e)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const Ff={};function zf(e,t){const n=r.useRef(Ff);return n.current===Ff&&(n.current=e(t)),n}const Bf=[];function Uf(e){r.useEffect(e,Bf)}const $f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}},Vf=Object.is;function qf(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const i in e)if(n+=1,!Vf(e[i],t[i])||!(i in t))return!1;for(const i in t)r+=1;return n===r}$f(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Zf(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const Hf=Object.is,Gf=qf,Wf=()=>({state:null,equals:null,selector:null}),Yf=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hf;const i=zf(Wf),o=null!==i.current.selector,[a,s]=r.useState(o?null:Zf(e,t));return i.current.state=a,i.current.equals=n,i.current.selector=t,Uf((()=>e.current.store.subscribe((()=>{const t=Zf(e,i.current.selector);i.current.equals(i.current.state,t)||(i.current.state=t,s(t))})))),a};const Kf=(0,o.vJ)((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(function(e){return null==e||0===Object.keys(e).length}(e.theme)?n:e.theme):t})),Xf=Kf;function Jf(e,t){let n;return n=t?(0,o.ZP)(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):(0,o.ZP)(e),n}Kf.propTypes={defaultTheme:pp.exports.object,styles:pp.exports.oneOfType([pp.exports.array,pp.exports.string,pp.exports.object,pp.exports.func])};function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(this,arguments)}function em(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}const tm=["values","unit","step"],nm=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Qf({},e,{[t.key]:t.val})),{})};const rm={borderRadius:4};function im(e,t){return t?ph(e,t,{clone:!1}):e}const om={xs:0,sm:600,md:900,lg:1200,xl:1536},am={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${om[e]}px)`};function sm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||am;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||am;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||om).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function lm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function cm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function um(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let a;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"==typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}function dm(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function pm(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||i:dm(e,n)||i,t&&(r=t(r,i,e)),r}function hm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=dm(e.theme,r)||{};return sm(e,o,(e=>{let r=pm(a,i,e);return e===r&&"string"==typeof e&&(r=pm(a,i,`${t}${"default"===e?"":xh(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const fm={m:"margin",p:"padding"},mm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ym=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!gm[e])return[e];e=gm[e]}const[t,n]=e.split(""),r=fm[t],i=mm[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),vm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _m(e,t,n,r){var i;const o=null!=(i=dm(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function wm(e){return _m(e,"spacing",8)}function xm(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function km(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=xm(t,n),e)),{})}(ym(n),r);return sm(e,e[n],i)}function Cm(e,t){const n=wm(e.theme);return Object.keys(e).map((r=>km(e,t,r,n))).reduce(im,{})}function Sm(e){return Cm(e,vm)}function Mm(e){return Cm(e,bm)}function Tm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?im(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i}function Em(e){return"number"!=typeof e?e:`${e}px solid`}Sm.propTypes={},Sm.filterProps=vm,Mm.propTypes={},Mm.filterProps=bm;const Pm=hm({prop:"border",themeKey:"borders",transform:Em}),Im=hm({prop:"borderTop",themeKey:"borders",transform:Em}),Om=hm({prop:"borderRight",themeKey:"borders",transform:Em}),Lm=hm({prop:"borderBottom",themeKey:"borders",transform:Em}),Rm=hm({prop:"borderLeft",themeKey:"borders",transform:Em}),jm=hm({prop:"borderColor",themeKey:"palette"}),Dm=hm({prop:"borderTopColor",themeKey:"palette"}),Am=hm({prop:"borderRightColor",themeKey:"palette"}),Nm=hm({prop:"borderBottomColor",themeKey:"palette"}),Fm=hm({prop:"borderLeftColor",themeKey:"palette"}),zm=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_m(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:xm(t,e)});return sm(e,e.borderRadius,n)}return null};zm.propTypes={},zm.filterProps=["borderRadius"],Tm(Pm,Im,Om,Lm,Rm,jm,Dm,Am,Nm,Fm,zm);const Bm=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_m(e.theme,"spacing",8),n=e=>({gap:xm(t,e)});return sm(e,e.gap,n)}return null};Bm.propTypes={},Bm.filterProps=["gap"];const Um=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_m(e.theme,"spacing",8),n=e=>({columnGap:xm(t,e)});return sm(e,e.columnGap,n)}return null};Um.propTypes={},Um.filterProps=["columnGap"];const $m=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_m(e.theme,"spacing",8),n=e=>({rowGap:xm(t,e)});return sm(e,e.rowGap,n)}return null};$m.propTypes={},$m.filterProps=["rowGap"];function Vm(e,t){return"grey"===t?t:e}Tm(Bm,Um,$m,hm({prop:"gridColumn"}),hm({prop:"gridRow"}),hm({prop:"gridAutoFlow"}),hm({prop:"gridAutoColumns"}),hm({prop:"gridAutoRows"}),hm({prop:"gridTemplateColumns"}),hm({prop:"gridTemplateRows"}),hm({prop:"gridTemplateAreas"}),hm({prop:"gridArea"}));function qm(e){return e<=1&&0!==e?100*e+"%":e}Tm(hm({prop:"color",themeKey:"palette",transform:Vm}),hm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vm}),hm({prop:"backgroundColor",themeKey:"palette",transform:Vm}));const Zm=hm({prop:"width",transform:qm}),Hm=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n;return{maxWidth:(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||om[t]||qm(t)}};return sm(e,e.maxWidth,t)}return null};Hm.filterProps=["maxWidth"];const Gm=hm({prop:"minWidth",transform:qm}),Wm=hm({prop:"height",transform:qm}),Ym=hm({prop:"maxHeight",transform:qm}),Km=hm({prop:"minHeight",transform:qm});hm({prop:"size",cssProperty:"width",transform:qm}),hm({prop:"size",cssProperty:"height",transform:qm});Tm(Zm,Hm,Gm,Wm,Ym,Km,hm({prop:"boxSizing"}));const Xm={border:{themeKey:"borders",transform:Em},borderTop:{themeKey:"borders",transform:Em},borderRight:{themeKey:"borders",transform:Em},borderBottom:{themeKey:"borders",transform:Em},borderLeft:{themeKey:"borders",transform:Em},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zm},color:{themeKey:"palette",transform:Vm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vm},backgroundColor:{themeKey:"palette",transform:Vm},p:{style:Mm},pt:{style:Mm},pr:{style:Mm},pb:{style:Mm},pl:{style:Mm},px:{style:Mm},py:{style:Mm},padding:{style:Mm},paddingTop:{style:Mm},paddingRight:{style:Mm},paddingBottom:{style:Mm},paddingLeft:{style:Mm},paddingX:{style:Mm},paddingY:{style:Mm},paddingInline:{style:Mm},paddingInlineStart:{style:Mm},paddingInlineEnd:{style:Mm},paddingBlock:{style:Mm},paddingBlockStart:{style:Mm},paddingBlockEnd:{style:Mm},m:{style:Sm},mt:{style:Sm},mr:{style:Sm},mb:{style:Sm},ml:{style:Sm},mx:{style:Sm},my:{style:Sm},margin:{style:Sm},marginTop:{style:Sm},marginRight:{style:Sm},marginBottom:{style:Sm},marginLeft:{style:Sm},marginX:{style:Sm},marginY:{style:Sm},marginInline:{style:Sm},marginInlineStart:{style:Sm},marginInlineEnd:{style:Sm},marginBlock:{style:Sm},marginBlockStart:{style:Sm},marginBlockEnd:{style:Sm},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Bm},rowGap:{style:$m},columnGap:{style:Um},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qm},maxWidth:{style:Hm},minWidth:{transform:qm},height:{transform:qm},maxHeight:{transform:qm},minHeight:{transform:qm},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Jm=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=dm(n,s)||{};return c?c(i):sm(i,t,(t=>{let n=pm(u,l,t);return t===n&&"string"==typeof t&&(n=pm(u,l,`${e}${"default"===t?"":xh(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:Xm;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=lm(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(a[n])l=im(l,e(n,i,o,a));else{const e=sm({theme:o},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,i)?l=im(l,e):l[n]=t({sx:i,theme:o})}else l=im(l,e(n,i,o,a))})),cm(s,l)}return Array.isArray(i)?i.map(s):s(i)}}();Jm.filterProps=["sx"];const Qm=Jm,eg=["breakpoints","palette","spacing","shape"];function tg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=e,o=em(e,eg),a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=em(e,tm),o=nm(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return Qf({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}(t),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=wm({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(r);let l=ph({breakpoints:a,direction:"ltr",components:{},palette:Qf({mode:"light"},n),spacing:s,shape:Qf({},rm,i)},o);for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return l=u.reduce(((e,t)=>ph(e,t)),l),l.unstable_sxConfig=Qf({},Xm,null==o?void 0:o.unstable_sxConfig),l.unstable_sx=function(e){return Qm({sx:e,theme:this})},l}function ng(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(o.Ni);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const rg=tg();function ig(){return ng(arguments.length>0&&void 0!==arguments[0]?arguments[0]:rg)}function og(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=ig(r),o="function"==typeof t?t(n&&i[n]||i):t;return ih(Xf,{styles:o})}const ag=["sx"],sg=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Xm;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function lg(e){const{sx:t}=e,n=em(e,ag),{systemProps:r,otherProps:i}=sg(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?function(){const e=t(...arguments);return uh(e)?Qf({},r,e):r}:Qf({},r,t),Qf({},i,{sx:o})}function cg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=cg(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ug(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cg(e))&&(r&&(r+=" "),r+=t);return r}const dg=["className","component"];const pg=["variant"];function hg(e){return 0===e.length}function fg(e){const{variant:t}=e,n=em(e,pg);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?hg(r)?e[t]:xh(e[t]):`${hg(r)?t:xh(t)}${xh(e[t].toString())}`})),r}const mg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function gg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yg=tg();function vg(e){let{defaultTheme:t,theme:n,themeId:r}=e;return function(e){return 0===Object.keys(e).length}(n)?t:n[r]||n}function bg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=yg,rootShouldForwardProp:r=gg,slotShouldForwardProp:i=gg}=e,o=e=>Qm(Qf({},e,{theme:vg(Qf({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d}=a,p=em(a,mg),h=void 0!==c?c:l&&"Root"!==l||!1,f=u||!1;let m=gg;"Root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Jf(e,Qf({shouldForwardProp:m,label:undefined},p)),y=function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];const c=a?a.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(Qf({},r,{theme:vg(Qf({},r,{defaultTheme:n,themeId:t}))})):e)):[];let u=r;s&&d&&c.push((e=>{const r=vg(Qf({},e,{defaultTheme:n,themeId:t})),i=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,r);if(i){const t={};return Object.entries(i).forEach((n=>{let[i,o]=n;t[i]="function"==typeof o?o(Qf({},e,{theme:r})):o})),d(e,t)}return null})),s&&!h&&c.push((e=>{const r=vg(Qf({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=null==n||null==(i=n.components)||null==(i=i[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{o[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&a.push(t[fg(n.props)])})),a})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=fg(e.props);r[t]=e.style})),r})(s,r),r,s)})),f||c.push(o);const p=c.length-a.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");u=[...r,...e],u.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(u=e=>r(Qf({},e,{theme:vg(Qf({},e,{defaultTheme:n,themeId:t}))})));const m=g(u,...c);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(y.withConfig=g.withConfig),y}}const _g=bg();function wg(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,o=ig(r);return i&&(o=o[i]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jh(t.components[n].defaultProps,r):r}({theme:o,name:n,props:t})}function xg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kg(e){if(e.type)return e;if("#"===e.charAt(0))return kg(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(gh(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(gh(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}function Cg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Sg(e){let t="hsl"===(e=kg(e)).type||"hsla"===e.type?kg(function(e){e=kg(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Cg({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mg(e,t){return e=kg(e),t=xg(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Cg(e)}function Tg(e,t){if(e=kg(e),t=xg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cg(e)}function Eg(e,t){if(e=kg(e),t=xg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cg(e)}const Pg=["component","direction","spacing","divider","children","className","useFlexGap"],Ig=tg(),Og=_g("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Lg(e){return wg({props:e,name:"MuiStack",defaultTheme:Ig})}function Rg(e,t){const n=r.Children.toArray(e).filter(Boolean);return n.reduce(((e,i,o)=>(e.push(i),o<n.length-1&&e.push(r.cloneElement(t,{key:`separator-${o}`})),e)),[])}const jg=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),Dg=e=>{let{ownerState:t,theme:n}=e,r=Qf({display:"flex",flexDirection:"column"},sm({theme:n},um({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=wm(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"==typeof t.spacing&&null!=t.spacing[n]||"object"==typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=um({values:t.direction,base:i}),a=um({values:t.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}})),r=ph(r,sm({theme:n},a,((n,r)=>t.useFlexGap?{gap:xm(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${jg(r?o[r]:t.direction)}`]:xm(e,n)}})))}return r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=lm(e),o=[i,...n].reduce(((e,t)=>ph(e,t)),{});return cm(Object.keys(i),o)}(n.breakpoints,r),r};const Ag=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Og,useThemeProps:n=Lg,componentName:i="MuiStack"}=e,o=t(Dg);return r.forwardRef((function(e,t){const r=lg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:p=!1}=r,h=em(r,Pg),f={direction:s,spacing:l,useFlexGap:p},m=Qh({root:["root"]},(e=>rf(i,e)),{});return ih(o,Qf({as:a,ownerState:f,ref:t,className:ug(m.root,d)},h,{children:c?Rg(u,c):u}))}))}();function Ng(e){return qp("MuiDataGrid",e)}const Fg=Zp("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),zg=r.createContext(void 0),Bg=()=>{const e=r.useContext(zg);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};var Ug="NOT_FOUND";var $g=function(e,t){return e===t};function Vg(e,t){var n="object"==typeof t?t:{equalityCheck:t},r=n.equalityCheck,i=void 0===r?$g:r,o=n.maxSize,a=void 0===o?1:o,s=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(i),c=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ug},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return Ug}return{get:r,put:function(t,i){r(t)===Ug&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function u(){var t=c.get(arguments);if(t===Ug){if(t=e.apply(null,arguments),s){var n=c.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}c.put(arguments,t)}return t}return u.clearCache=function(){return c.clear()},u}function qg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(s=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),f=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return o=h.apply(null,e)}));return Object.assign(f,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),f}}var Zg=qg(Vg);const Hg={cache:new WeakMap};$f(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function Gg(e){return"current"in e&&"instanceId"in e.current}const Wg={id:"default"},Yg=function(e,t,n,r,i,o){if((arguments.length<=6?0:arguments.length-6)>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&i&&o)a=(a,s)=>{const l=Gg(a),c=null!=s?s:l?a.current.instanceId:Wg,u=l?a.current.state:a,d=e(u,c),p=t(u,c),h=n(u,c),f=r(u,c),m=i(u,c);return o(d,p,h,f,m)};else if(e&&t&&n&&r&&i)a=(o,a)=>{const s=Gg(o),l=null!=a?a:s?o.current.instanceId:Wg,c=s?o.current.state:o,u=e(c,l),d=t(c,l),p=n(c,l),h=r(c,l);return i(u,d,p,h)};else if(e&&t&&n&&r)a=(i,o)=>{const a=Gg(i),s=null!=o?o:a?i.current.instanceId:Wg,l=a?i.current.state:i,c=e(l,s),u=t(l,s),d=n(l,s);return r(c,u,d)};else if(e&&t&&n)a=(r,i)=>{const o=Gg(r),a=null!=i?i:o?r.current.instanceId:Wg,s=o?r.current.state:r,l=e(s,a),c=t(s,a);return n(l,c)};else{if(!e||!t)throw new Error("Missing arguments");a=(n,r)=>{const i=Gg(n),o=null!=r?r:i?n.current.instanceId:Wg,a=i?n.current.state:n,s=e(a,o);return t(s)}}return a.acceptsApiRef=!0,a},Kg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=function(){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];const[a,s]=i,l=Gg(a),c=l?a.current.instanceId:null!=s?s:Wg,u=l?a.current.state:a,{cache:d}=Hg;var p;if(d.get(c)&&null!=(e=d.get(c))&&e.get(t))return null==(p=d.get(c))?void 0:p.get(t)(u,c);const h=Zg(...t);return d.get(c)||d.set(c,new Map),null==(n=d.get(c))||n.set(t,h),h(u,c)};return r.acceptsApiRef=!0,r},Xg=e=>e.columns,Jg=Yg(Xg,(e=>e.orderedFields)),Qg=Yg(Xg,(e=>e.lookup)),ey=Kg(Jg,Qg,((e,t)=>e.map((e=>t[e])))),ty=Yg(Xg,(e=>e.columnVisibilityModel)),ny=Kg(ey,ty,((e,t)=>e.filter((e=>!1!==t[e.field])))),ry=Kg(ny,(e=>e.map((e=>e.field)))),iy=Kg(ny,(e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t})),oy=Yg(ny,iy,((e,t)=>{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),ay=Kg(ey,(e=>e.filter((e=>e.filterable)))),sy=Kg(ey,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),ly=e=>e.columnGrouping,cy=Kg(ly,(e=>{var t;return null!=(t=null==e?void 0:e.unwrappedGroupingModel)?t:{}})),uy=Kg(ly,(e=>{var t;return null!=(t=null==e?void 0:e.lookup)?t:{}})),dy=Kg(ly,(e=>{var t;return null!=(t=null==e?void 0:e.headerStructure)?t:[]})),py=Yg(ly,(e=>{var t;return null!=(t=null==e?void 0:e.maxDepth)?t:0})),hy=e=>e.rows,fy=Yg(hy,(e=>e.totalRowCount)),my=Yg(hy,(e=>e.loading)),gy=Yg(hy,(e=>e.totalTopLevelRowCount)),yy=Yg(hy,(e=>e.dataRowIdToModelLookup)),vy=Yg(hy,(e=>e.dataRowIdToIdLookup)),by=Yg(hy,(e=>e.tree)),_y=Yg(hy,(e=>e.groupingName)),wy=Yg(hy,(e=>e.treeDepths)),xy=Kg(hy,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((e=>{let[,t]=e;return t>0})).map((e=>{let[t]=e;return Number(t)})).sort(((e,t)=>t-e))[0]+1})),ky=Yg(hy,(e=>e.dataRowIds)),Cy=Kg(Yg(hy,(e=>null==e?void 0:e.additionalRowGroups)),(e=>{var t,n;const r=null==e?void 0:e.pinnedRows;return{bottom:null==r||null==(t=r.bottom)?void 0:t.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}})),top:null==r||null==(n=r.top)?void 0:n.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}}))}})),Sy=Yg(Cy,(e=>{var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),My=()=>{var e;const t=Nf(),n=Bg(),r=Yf(t,ny),i=Yf(t,fy),o=Yf(t,py),a=Yf(t,Sy);let s="grid";return null!=(e=n.experimentalFeatures)&&e.ariaV7&&n.treeData&&(s="treegrid"),{role:s,"aria-colcount":r.length,"aria-rowcount":o+1+a+i,"aria-multiselectable":!n.disableMultipleRowSelection}},Ty=_g("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}))),Ey=r.forwardRef(((e,t)=>{var n;const r=Bg(),i=(e=>{const{classes:t}=e;return Bp({root:["main"]},Ng,t)})(r),o=null!=(n=r.experimentalFeatures)&&n.ariaV7?My:null,a="function"==typeof o?o():null;return ih(Ty,up({ref:t,className:i.root,ownerState:r},a,{children:e.children}))})),Py=e=>e.sorting,Iy=Yg(Py,(e=>e.sortedRows)),Oy=Kg(Iy,yy,((e,t)=>e.map((e=>{var n;return{id:e,model:null!=(n=t[e])?n:{}}})))),Ly=Yg(Py,(e=>e.sortModel)),Ry=Kg(Ly,(e=>e.reduce(((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t)),{}))),jy=e=>e.filter,Dy=Yg(jy,(e=>e.filterModel)),Ay=Yg(Dy,(e=>e.quickFilterValues)),Ny=e=>e.visibleRowsLookup,Fy=Yg(jy,(e=>e.filteredRowsLookup)),zy=Yg(jy,(e=>e.filteredDescendantCountLookup)),By=Kg(Ny,Oy,((e,t)=>t.filter((t=>!1!==e[t.id])))),Uy=Kg(By,(e=>e.map((e=>e.id)))),$y=Kg(Fy,Oy,((e,t)=>t.filter((t=>!1!==e[t.id])))),Vy=Kg($y,(e=>e.map((e=>e.id)))),qy=Kg(By,by,xy,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),Zy=Yg(By,(e=>e.length)),Hy=Yg(qy,(e=>e.length)),Gy=Kg(Dy,Qg,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,r;if(!e.field)return!1;const i=t[e.field];if(null==i||!i.filterOperators||0===(null==i||null==(n=i.filterOperators)?void 0:n.length))return!1;const o=i.filterOperators.find((t=>t.value===e.operator));return!!o&&(!o.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),Wy=Kg(Gy,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{}))),Yy=e=>e.focus,Ky=Yg(Yy,(e=>e.cell)),Xy=Yg(Yy,(e=>e.columnHeader)),Jy=Yg(Yy,(e=>e.columnHeaderFilter)),Qy=Yg(Yy,(e=>e.columnGroupHeader)),ev=e=>e.tabIndex,tv=Yg(ev,(e=>e.cell)),nv=Yg(ev,(e=>e.columnHeader)),rv=Yg(ev,(e=>e.columnHeaderFilter)),iv=Yg(ev,(e=>e.columnGroupHeader)),ov=e=>e.density,av=Yg(ov,(e=>e.value)),sv=Yg(ov,(e=>e.factor)),lv=e=>e.columnMenu;function cv(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:i}=e,o=Nf(),a=Bg(),s=r.useRef(null),l=Yf(o,ny),c=Yf(o,Wy),u=Yf(o,Ry),d=Yf(o,iy),p=Yf(o,nv),h=Yf(o,tv),f=Yf(o,iv),m=Yf(o,Xy),g=Yf(o,Qy),y=Yf(o,sv),v=Yf(o,py),b=Yf(o,lv),_=Yf(o,ty),w=Yf(o,dy),x=!(null===f&&null===p&&null===h);Lp((()=>{o.current.computeSizeAndPublishResizeEvent();const e=s.current;if(typeof ResizeObserver>"u")return()=>{};let t;const n=new ResizeObserver((()=>{t=requestAnimationFrame((()=>{o.current.computeSizeAndPublishResizeEvent()}))}));return e&&n.observe(e),()=>{t&&window.cancelAnimationFrame(t),e&&n.unobserve(e)}}),[o]);const k=r.useRef(null),C=r.useRef(null),S=r.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:C,columnHeadersElementRef:k,virtualScrollerRef:S,mainElementRef:s});const M=!!o.current.getRootDimensions();return oh(Ey,{ref:s,children:[ih(a.slots.columnHeaders,up({ref:C,innerRef:k,visibleColumns:l,filterColumnLookup:c,sortColumnLookup:u,columnPositions:d,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:f,columnHeaderFocus:m,columnGroupHeaderFocus:g,densityFactor:y,headerGroupingMaxDepth:v,columnMenuState:b,columnVisibility:_,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:x},n)),M&&ih(t,{ref:S}),i]})}function uv(){var e;const t=Bg();return t.hideFooter?null:ih(t.slots.footer,up({},null==(e=t.slotProps)?void 0:e.footer))}const dv=r.createContext(void 0);function pv(){const e=r.useContext(dv);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const hv="auto-generated-group-node-root",fv=Symbol("mui.id_autogenerated"),mv=()=>({type:"group",id:hv,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function gv(e,t){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"))}const yv=(e,t,n)=>{const r=t?t(e):e.id;return gv(r,e,n),r},vv=e=>{let{rows:t,getRowId:n,loading:r,rowCount:i}=e;const o={type:"full",rows:[]},a={},s={};for(let l=0;l<t.length;l+=1){const e=t[l],r=yv(e,n);a[r]=e,s[r]=r,o.rows.push(r)}return{rowsBeforePartialUpdates:t,loadingPropBeforePartialUpdates:r,rowCountPropBeforePartialUpdates:i,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:a}},bv=e=>{let{tree:t,rowCountProp:n=0}=e;const r=t[hv];return Math.max(n,r.children.length+(null==r.footerId?0:1))},_v=e=>{let{apiRef:t,rowCountProp:n=0,loadingProp:r,previousTree:i,previousTreeDepths:o}=e;const a=t.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u}=t.current.applyStrategyProcessor("rowTreeCreation",{previousTree:i,previousTreeDepths:o,updates:a.updates,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIdToModelLookup:a.dataRowIdToModelLookup}),d=t.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return t.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},up({},d,{totalRowCount:Math.max(n,d.dataRowIds.length),totalTopLevelRowCount:bv({tree:d.tree,rowCountProp:n}),groupingName:u,loading:r})},wv=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,xv=(e,t,n)=>{const r=e[t];if("group"!==r.type)return[];const i=[];for(let o=0;o<r.children.length;o+=1){const t=r.children[o];(!n||!wv(e[t]))&&i.push(t),i.push(...xv(e,t,n))}return!n&&null!=r.footerId&&i.push(r.footerId),i};function kv(e){var t,n;const r=Cy(e);return{top:(null==r||null==(t=r.top)?void 0:t.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0,bottom:(null==r||null==(n=r.bottom)?void 0:n.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0}}function Cv(e,t){const n=sv(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Sv=_g("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapper})((e=>{let{overlayType:t}=e;return{position:"sticky",top:0,left:0,width:0,height:0,zIndex:"loadingOverlay"===t?5:4}})),Mv=_g("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Tv=e=>{const{classes:t}=e;return Bp({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Ng,t)};function Ev(e){var t,n;const i=pv(),o=Bg(),[a,s]=r.useState((()=>{var e,t;return null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),l=r.useCallback((()=>{var e,t;s(null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[i]);Lp((()=>i.current.subscribeEvent("viewportInnerSizeChange",l)),[i,l]);let c=null!=(t=null==a?void 0:a.height)?t:0;o.autoHeight&&0===c&&(c=Cv(i,o.rowHeight));const u=Tv(up({},e,{classes:o.classes}));return a?ih(Sv,{className:ug(u.root),overlayType:e.overlayType,children:ih(Mv,up({className:ug(u.inner),style:{height:c,width:null!=(n=null==a?void 0:a.width)?n:0}},e))}):null}function Pv(){const e=pv(),t=Bg(),n=Yf(e,fy),r=Yf(e,Zy),i=Yf(e,my),o=!i&&n>0&&0===r;let a=null,s="";var l,c,u;i||0!==n||(a=ih(t.slots.noRowsOverlay,up({},null==(l=t.slotProps)?void 0:l.noRowsOverlay)),s="noRowsOverlay");o&&(a=ih(t.slots.noResultsOverlay,up({},null==(c=t.slotProps)?void 0:c.noResultsOverlay)),s="noResultsOverlay");i&&(a=ih(t.slots.loadingOverlay,up({},null==(u=t.slotProps)?void 0:u.loadingOverlay)),s="loadingOverlay");return null===a?null:ih(Ev,{overlayType:s,children:a})}function Iv(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}function Ov(e){return r.memo(e,qf)}let Lv;function Rv(){return void 0===Lv&&document.createElement("div").focus({get preventScroll(){return Lv=!0,!1}}),Lv}var jv=function(e){return e.Cell="cell",e.Row="row",e}(jv||{}),Dv=function(e){return e.Edit="edit",e.View="view",e}(Dv||{}),Av=function(e){return e.Edit="edit",e.View="view",e}(Av||{}),Nv=function(e){return e.And="and",e.Or="or",e}(Nv||{}),Fv=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Fv||{}),zv=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(zv||{}),Bv=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Bv||{}),Uv=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Uv||{});function $v(e){return void 0!==e.field}function Vv(e,t){return e.closest(`.${t}`)}function qv(e){return e.replace(/["\\]/g,"\\$&")}function Zv(e){return`.${Fg.row}[data-id="${qv(String(e))}"]`}function Hv(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function Gv(e,t,n){const i=r.useRef(!0);r.useEffect((()=>{i.current=!1,e.current.register(n,t)}),[e,n,t]),i.current&&e.current.register(n,t)}class Wv extends Error{}function Yv(e,t){const{getRowId:n}=t,i=r.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),o=r.useCallback((t=>{const n=e.current.getRow(t);if(!n)throw new Wv(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:n}}),[e]),a=r.useCallback(((t,n)=>{const r=e.current.getRow(t),i=e.current.getRowNode(t);if(!r||!i)throw new Wv(`No row with id #${t} found`);const o=Ky(e),a=tv(e);return{id:t,field:n,row:r,rowNode:i,value:r[n],colDef:e.current.getColumn(n),cellMode:e.current.getCellMode(t,n),api:e.current,hasFocus:null!==o&&o.field===n&&o.id===t,tabIndex:a&&a.field===n&&a.id===t?0:-1}}),[e]),s=r.useCallback(((t,n)=>{const r=e.current.getColumn(n),i=e.current.getCellValue(t,n),o=e.current.getRow(t),a=e.current.getRowNode(t);if(!o||!a)throw new Wv(`No row with id #${t} found`);const s=Ky(e),l=tv(e),c={id:t,field:n,row:o,rowNode:a,colDef:r,cellMode:e.current.getCellMode(t,n),hasFocus:null!==s&&s.field===n&&s.id===t,tabIndex:l&&l.field===n&&l.id===t?0:-1,value:i,formattedValue:i,isEditable:!1};return r&&r.valueFormatter&&(c.formattedValue=r.valueFormatter({id:t,field:c.field,value:c.value,api:e.current})),c.isEditable=r&&e.current.isCellEditable(c),c}),[e]),l=r.useCallback(((t,n)=>{const r=e.current.getColumn(n);if(!r||!r.valueGetter){const r=e.current.getRow(t);if(!r)throw new Wv(`No row with id #${t} found`);return r[n]}return r.valueGetter(a(t,n))}),[e,a]),c=r.useCallback(((e,t)=>{var r;const i=fv in e?e[fv]:null!=(r=null==n?void 0:n(e))?r:e.id,o=t.field;return t&&t.valueGetter?t.valueGetter(a(i,o)):e[o]}),[a,n]),u=r.useCallback(((t,r)=>{var i;const o=c(t,r);if(!r||!r.valueFormatter)return o;const a=null!=(i=n?n(t):t.id)?i:t[fv],s=r.field;return r.valueFormatter({id:a,field:s,value:o,api:e.current})}),[e,n,c]),d=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${qv(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),p=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(Zv(t))}(e.current.rootElementRef.current,t):null),[e]),h=r.useCallback(((t,n)=>e.current.rootElementRef.current?function(e,t){let{id:n,field:r}=t;const i=`${Zv(n)} .${Fg.cell}[data-field="${qv(r)}"]`;return e.querySelector(i)}(e.current.rootElementRef.current,{id:t,field:n}):null),[e]);Gv(e,{getCellValue:l,getCellParams:s,getCellElement:h,getRowValue:c,getRowFormattedValue:u,getRowParams:o,getRowElement:p,getColumnHeaderParams:i,getColumnHeaderElement:d},"public")}const Kv=["changeReason","unstable_updateValueOnRender"],Xv=["align","children","editCellState","colIndex","column","cellMode","field","formattedValue","hasFocus","height","isEditable","isSelected","rowId","tabIndex","style","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Jv=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],Qv=["changeReason","unstable_updateValueOnRender"],eb={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Dv.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},tb=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:i,isSelectionMode:o,classes:a}=e;return Bp({root:["cell",`cell--text${Mp(t)}`,r&&"cell--editable",i&&"selected",n&&"cell--withRightBorder",o&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]},Ng,a)};const nb=r.forwardRef(((e,t)=>{const{column:n,rowId:r,editCellState:i}=e,o=pv(),a=Bg(),s=n.field,l=Yf(o,(()=>{try{const e=o.current.getCellParams(r,s);return e.api=o.current,e}catch(e){if(e instanceof Wv)return eb;throw e}}),Gf),c=Yf(o,(()=>o.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s})));if(l===eb)return null;const{cellMode:u,hasFocus:d,isEditable:p,value:h,formattedValue:f}=l,m="actions"===n.type,g="view"!==u&&p||m?-1:l.tabIndex,{classes:y,getCellClassName:v}=a,b=o.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});let _;if(n.cellClassName&&b.push("function"==typeof n.cellClassName?n.cellClassName(l):n.cellClassName),v&&b.push(v(l)),null==i&&n.renderCell&&(_=n.renderCell(l),b.push(Fg["cell--withRenderer"]),b.push(null==y?void 0:y["cell--withRenderer"])),null!=i&&n.renderEditCell){const e=up({},l,{row:o.current.getRowWithUpdatedValues(r,n.field)},Iv(i,Kv));_=n.renderEditCell(e),b.push(Fg["cell--editing"]),b.push(null==y?void 0:y["cell--editing"])}const{slots:w}=a,x=w.cell,k=up({},e,{ref:t,field:s,formattedValue:f,hasFocus:d,isEditable:p,isSelected:c,value:h,cellMode:u,children:_,tabIndex:g,className:ug(b)});return ih(x,{...k})})),rb=r.forwardRef(((e,t)=>{var n;const{align:i,children:o,colIndex:a,column:s,cellMode:l,field:c,formattedValue:u,hasFocus:d,height:p,isEditable:h,isSelected:f,rowId:m,tabIndex:g,style:y,value:v,width:b,className:_,showRightBorder:w,colSpan:x,disableDragEvents:k,isNotVisible:C,onClick:S,onDoubleClick:M,onMouseDown:T,onMouseUp:E,onMouseOver:P,onKeyDown:I,onKeyUp:O,onDragEnter:L,onDragOver:R}=e,j=Iv(e,Xv),D=null==u?v:u,A=r.useRef(null),N=Fp(t,A),F=r.useRef(null),z=pv(),B=Bg(),U={align:i,showRightBorder:w,isEditable:h,classes:B.classes,isSelected:f},$=tb(U),V=r.useCallback((e=>t=>{const n=z.current.getCellParams(m,c||"");z.current.publishEvent(e,n,t),E&&E(t)}),[z,c,E,m]),q=r.useCallback((e=>t=>{const n=z.current.getCellParams(m,c||"");z.current.publishEvent(e,n,t),T&&T(t)}),[z,c,T,m]),Z=r.useCallback(((e,t)=>n=>{if(!z.current.getRow(m))return;const r=z.current.getCellParams(m,c||"");z.current.publishEvent(e,r,n),t&&t(n)}),[z,c,m]),H=r.useMemo((()=>C?{padding:0,opacity:0,width:0,border:0}:up({minWidth:b,maxWidth:b,minHeight:p,maxHeight:"auto"===p?"none":p},y)),[b,p,C,y]);r.useEffect((()=>{if(!d||l===Dv.Edit)return;const e=Pp(z.current.rootElementRef.current);if(A.current&&!A.current.contains(e.activeElement)){const e=A.current.querySelector('[tabindex="0"]'),t=F.current||e||A.current;if(Rv())t.focus({preventScroll:!0});else{const e=z.current.getScrollPosition();t.focus(),z.current.scroll(e)}}}),[d,l,z]);let G=j.onFocus;const W="actions"===s.type;let Y=o;if(void 0===Y){const e=null==D?void 0:D.toString();Y=ih("div",{className:$.content,title:e,role:"presentation",children:e})}r.isValidElement(Y)&&W&&(Y=r.cloneElement(Y,{focusElementRef:F}));const K=k?null:{onDragEnter:Z("cellDragEnter",L),onDragOver:Z("cellDragOver",R)},X=null==(n=B.experimentalFeatures)?void 0:n.ariaV7;return ih("div",up({ref:N,className:ug(_,$.root),role:X?"gridcell":"cell","data-field":c,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":x,style:H,tabIndex:g,onClick:Z("cellClick",S),onDoubleClick:Z("cellDoubleClick",M),onMouseOver:Z("cellMouseOver",P),onMouseDown:q("cellMouseDown"),onMouseUp:V("cellMouseUp"),onKeyDown:Z("cellKeyDown",I),onKeyUp:Z("cellKeyUp",O)},K,j,{onFocus:G,children:Y}))})),ib=Ov(nb),ob=r.forwardRef(((e,t)=>{var n,i,o,a;const{column:s,rowId:l,editCellState:c,align:u,colIndex:d,height:p,width:h,className:f,showRightBorder:m,colSpan:g,disableDragEvents:y,isNotVisible:v,onClick:b,onDoubleClick:_,onMouseDown:w,onMouseUp:x,onMouseOver:k,onKeyDown:C,onKeyUp:S,onDragEnter:M,onDragOver:T,style:E}=e,P=Iv(e,Jv),I=pv(),O=Bg(),L=s.field,R=Yf(I,(()=>{try{const e=I.current.getCellParams(l,L);return e.api=I.current,e}catch(e){if(e instanceof Wv)return eb;throw e}}),Gf),j=Yf(I,(()=>I.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:L}))),{cellMode:D,hasFocus:A,isEditable:N,value:F,formattedValue:z}=R,B="actions"===s.type&&(null==(n=(i=s).getActions)?void 0:n.call(i,I.current.getRowParams(l)).some((e=>!e.props.disabled))),U="view"!==D&&N||B?-1:R.tabIndex,{classes:$,getCellClassName:V}=O,q=I.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:L});s.cellClassName&&q.push("function"==typeof s.cellClassName?s.cellClassName(R):s.cellClassName),V&&q.push(V(R));const Z=null==z?F:z,H=r.useRef(null),G=Fp(t,H),W=r.useRef(null),Y=null!=(o=O.unstable_cellSelection)&&o,K={align:u,showRightBorder:m,isEditable:N,classes:O.classes,isSelected:j,isSelectionMode:Y},X=tb(K),J=r.useCallback((e=>t=>{const n=I.current.getCellParams(l,L||"");I.current.publishEvent(e,n,t),x&&x(t)}),[I,L,x,l]),Q=r.useCallback((e=>t=>{const n=I.current.getCellParams(l,L||"");I.current.publishEvent(e,n,t),w&&w(t)}),[I,L,w,l]),ee=r.useCallback(((e,t)=>n=>{if(!I.current.getRow(l))return;const r=I.current.getCellParams(l,L||"");I.current.publishEvent(e,r,n),t&&t(n)}),[I,L,l]),te=r.useMemo((()=>up(v?{padding:0,opacity:0,width:0,border:0}:{minWidth:h,maxWidth:h,minHeight:p,maxHeight:"auto"===p?"none":p},E)),[h,p,v,E]);if(r.useEffect((()=>{if(!A||D===Dv.Edit)return;const e=Pp(I.current.rootElementRef.current);if(H.current&&!H.current.contains(e.activeElement)){const e=H.current.querySelector('[tabindex="0"]'),t=W.current||e||H.current;if(Rv())t.focus({preventScroll:!0});else{const e=I.current.getScrollPosition();t.focus(),I.current.scroll(e)}}}),[A,D,I]),R===eb)return null;let ne,re=P.onFocus;if(null==c&&s.renderCell&&(ne=s.renderCell(R),q.push(Fg["cell--withRenderer"]),q.push(null==$?void 0:$["cell--withRenderer"])),null!=c&&s.renderEditCell){const e=up({},R,{row:I.current.getRowWithUpdatedValues(l,s.field)},Iv(c,Qv));ne=s.renderEditCell(e),q.push(Fg["cell--editing"]),q.push(null==$?void 0:$["cell--editing"])}if(void 0===ne){const e=null==Z?void 0:Z.toString();ne=ih("div",{className:X.content,title:e,role:"presentation",children:e})}r.isValidElement(ne)&&B&&(ne=r.cloneElement(ne,{focusElementRef:W}));const ie=y?null:{onDragEnter:ee("cellDragEnter",M),onDragOver:ee("cellDragOver",T)},oe=null==(a=O.experimentalFeatures)?void 0:a.ariaV7;return ih("div",up({ref:G,className:ug(f,q,X.root),role:oe?"gridcell":"cell","data-field":L,"data-colindex":d,"aria-colindex":d+1,"aria-colspan":g,style:te,tabIndex:U,onClick:ee("cellClick",b),onDoubleClick:ee("cellDoubleClick",_),onMouseOver:ee("cellMouseOver",k),onMouseDown:Q("cellMouseDown"),onMouseUp:J("cellMouseUp"),onKeyDown:ee("cellKeyDown",C),onKeyUp:ee("cellKeyUp",S)},ie,P,{onFocus:re,children:ne}))})),ab=Ov(ob),sb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"];function lb(e){const{value:t}=e,n=Iv(e,sb),i=pv(),o=Bg(),a=(e=>{const{classes:t}=e;return Bp({root:["booleanCell"]},Ng,t)})({classes:o.classes}),s=r.useMemo((()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon),[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return ih(s,up({fontSize:"small",className:a.root,titleAccess:i.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))}const cb=r.memo(lb),ub=e=>wv(e.rowNode)?"":ih(cb,up({},e)),db=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function pb(e){var t;const{id:n,value:i,field:o,className:a,hasFocus:s,onValueChange:l}=e,c=Iv(e,db),u=pv(),d=r.useRef(null),p=Dp(),[h,f]=r.useState(i),m=Bg(),g=(e=>{const{classes:t}=e;return Bp({root:["editBooleanCell"]},Ng,t)})({classes:m.classes}),y=r.useCallback((async e=>{const t=e.target.checked;l&&await l(e,t),f(t),await u.current.setEditCellValue({id:n,field:o,value:t},e)}),[u,o,n,l]);return r.useEffect((()=>{f(i)}),[i]),Lp((()=>{s&&d.current.focus()}),[s]),ih("label",up({htmlFor:p,className:ug(g.root,a)},c,{children:ih(m.slots.baseCheckbox,up({id:p,inputRef:d,checked:Boolean(h),onChange:y,size:"small"},null==(t=m.slotProps)?void 0:t.baseCheckbox))}))}const hb=e=>ih(pb,up({},e));function fb(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}function gb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gb(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gb(e))&&(r&&(r+=" "),r+=t);return r}function vb(e){return"string"==typeof e}function bb(e,t,n){return void 0===e||vb(e)?t:up({},t,{ownerState:up({},t.ownerState,n)})}const _b={disableDefaultClasses:!1},wb=r.createContext(_b);function xb(e){const{disableDefaultClasses:t}=r.useContext(wb);return n=>t?"":e(n)}function kb(e,t){return"function"==typeof e?e(t):e}function Cb(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Sb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=yb(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),t=up({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=up({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(up({},i,r)),s=Cb(r),l=Cb(i),c=t(a),u=yb(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=up({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=up({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const Mb=["elementType","externalSlotProps","ownerState"];function Tb(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=Iv(e,Mb),a=kb(r,i),{props:s,internalRef:l}=Sb(up({},o,{externalSlotProps:a}));return bb(n,up({},s,{ref:Fp(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i)}function Eb(e){return e.substring(2).toLowerCase()}function Pb(e){const{children:t,disableReactTree:n=!1,mouseEvent:i="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=r.useRef(!1),l=r.useRef(null),c=r.useRef(!1),u=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=Fp(t.ref,l),p=Np((e=>{const t=u.current;u.current=!1;const r=Pp(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),!i&&(n||!t)&&o(e)})),h=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:d};return!1!==a&&(f[a]=h(a)),r.useEffect((()=>{if(!1!==a){const e=Eb(a),t=Pp(l.current),n=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,a]),!1!==i&&(f[i]=h(i)),r.useEffect((()=>{if(!1!==i){const e=Eb(i),t=Pp(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,i]),ih(r.Fragment,{children:r.cloneElement(t,f)})}const Ib=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ob(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ib)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===i||!function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)||(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Lb(){return!0}function Rb(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=Ob,isEnabled:s=Lb,open:l}=e,c=r.useRef(!1),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=r.useRef(null),f=r.useRef(!1),m=r.useRef(null),g=Fp(t.ref,m),y=r.useRef(null);r.useEffect((()=>{!l||!m.current||(f.current=!n)}),[n,l]),r.useEffect((()=>{if(!l||!m.current)return;const e=Pp(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),r.useEffect((()=>{if(!l||!m.current)return;const e=Pp(m.current),t=t=>{const{current:n}=m;if(null!==n){if(!e.hasFocus()||i||!s()||c.current)return void(c.current=!1);if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let i=[];if((e.activeElement===u.current||e.activeElement===d.current)&&(i=a(m.current)),i.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=i[0],n=i[i.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}},n=t=>{y.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,i,o,s,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return oh(r.Fragment,{children:[ih("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ih("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}var jb="top",Db="bottom",Ab="right",Nb="left",Fb="auto",zb=[jb,Db,Ab,Nb],Bb="start",Ub="end",$b="clippingParents",Vb="viewport",qb="popper",Zb="reference",Hb=zb.reduce((function(e,t){return e.concat([t+"-"+Bb,t+"-"+Ub])}),[]),Gb=[].concat(zb,[Fb]).reduce((function(e,t){return e.concat([t,t+"-"+Bb,t+"-"+Ub])}),[]),Wb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yb(e){return e?(e.nodeName||"").toLowerCase():null}function Kb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xb(e){return e instanceof Kb(e).Element||e instanceof Element}function Jb(e){return e instanceof Kb(e).HTMLElement||e instanceof HTMLElement}function Qb(e){return!(typeof ShadowRoot>"u")&&(e instanceof Kb(e).ShadowRoot||e instanceof ShadowRoot)}const e_={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Jb(i)||!Yb(i)||(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Jb(r)||!Yb(r)||(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function t_(e){return e.split("-")[0]}var n_=Math.max,r_=Math.min,i_=Math.round;function o_(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function a_(){return!/^((?!chrome|android).)*safari/i.test(o_())}function s_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Jb(e)&&(i=e.offsetWidth>0&&i_(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&i_(r.height)/e.offsetHeight||1);var a=(Xb(e)?Kb(e):window).visualViewport,s=!a_()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function l_(e){var t=s_(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function c_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function u_(e){return Kb(e).getComputedStyle(e)}function d_(e){return["table","td","th"].indexOf(Yb(e))>=0}function p_(e){return((Xb(e)?e.ownerDocument:e.document)||window.document).documentElement}function h_(e){return"html"===Yb(e)?e:e.assignedSlot||e.parentNode||(Qb(e)?e.host:null)||p_(e)}function f_(e){return Jb(e)&&"fixed"!==u_(e).position?e.offsetParent:null}function m_(e){for(var t=Kb(e),n=f_(e);n&&d_(n)&&"static"===u_(n).position;)n=f_(n);return n&&("html"===Yb(n)||"body"===Yb(n)&&"static"===u_(n).position)?t:n||function(e){var t=/firefox/i.test(o_());if(/Trident/i.test(o_())&&Jb(e)&&"fixed"===u_(e).position)return null;var n=h_(e);for(Qb(n)&&(n=n.host);Jb(n)&&["html","body"].indexOf(Yb(n))<0;){var r=u_(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function g_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function y_(e,t,n){return n_(e,r_(t,n))}function v_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function b_(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function __(e){return e.split("-")[1]}var w_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Nb,_=jb,w=window;if(c){var x=m_(n),k="clientHeight",C="clientWidth";if(x===Kb(n)&&("static"!==u_(x=p_(n)).position&&"absolute"===s&&(k="scrollHeight",C="scrollWidth")),i===jb||(i===Nb||i===Ab)&&o===Ub)_=Db,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-r.height,m*=l?1:-1;if(i===Nb||(i===jb||i===Db)&&o===Ub)b=Ab,h-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-r.width,h*=l?1:-1}var S,M=Object.assign({position:s},c&&w_),T=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:i_(n*i)/i||0,y:i_(r*i)/i||0}}({x:h,y:m},Kb(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},M,((S={})[_]=v?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},M,((t={})[_]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}var k_={passive:!0};var C_={left:"right",right:"left",bottom:"top",top:"bottom"};function S_(e){return e.replace(/left|right|bottom|top/g,(function(e){return C_[e]}))}var M_={start:"end",end:"start"};function T_(e){return e.replace(/start|end/g,(function(e){return M_[e]}))}function E_(e){var t=Kb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function P_(e){return s_(p_(e)).left+E_(e).scrollLeft}function I_(e){var t=u_(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function O_(e){return["html","body","#document"].indexOf(Yb(e))>=0?e.ownerDocument.body:Jb(e)&&I_(e)?e:O_(h_(e))}function L_(e,t){var n;void 0===t&&(t=[]);var r=O_(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Kb(r),a=i?[o].concat(o.visualViewport||[],I_(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(L_(h_(a)))}function R_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function j_(e,t,n){return t===Vb?R_(function(e,t){var n=Kb(e),r=p_(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=a_();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+P_(e),y:l}}(e,n)):Xb(t)?function(e,t){var n=s_(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):R_(function(e){var t,n=p_(e),r=E_(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=n_(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=n_(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+P_(e),l=-r.scrollTop;return"rtl"===u_(i||n).direction&&(s+=n_(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(p_(e)))}function D_(e,t,n,r){var i="clippingParents"===t?function(e){var t=L_(h_(e)),n=["absolute","fixed"].indexOf(u_(e).position)>=0&&Jb(e)?m_(e):e;return Xb(n)?t.filter((function(e){return Xb(e)&&c_(e,n)&&"body"!==Yb(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=j_(e,n,r);return t.top=n_(i.top,t.top),t.right=r_(i.right,t.right),t.bottom=r_(i.bottom,t.bottom),t.left=n_(i.left,t.left),t}),j_(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function A_(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?t_(i):null,a=i?__(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case jb:t={x:s,y:n.y-r.height};break;case Db:t={x:s,y:n.y+n.height};break;case Ab:t={x:n.x+n.width,y:l};break;case Nb:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?g_(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Bb:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ub:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function N_(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?$b:s,c=n.rootBoundary,u=void 0===c?Vb:c,d=n.elementContext,p=void 0===d?qb:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=v_("number"!=typeof g?g:b_(g,zb)),v=p===qb?Zb:qb,b=e.rects.popper,_=e.elements[f?v:p],w=D_(Xb(_)?_:_.contextElement||p_(e.elements.popper),l,u,a),x=s_(e.elements.reference),k=A_({reference:x,element:b,strategy:"absolute",placement:i}),C=R_(Object.assign({},b,k)),S=p===qb?C:x,M={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},T=e.modifiersData.offset;if(p===qb&&T){var E=T[i];Object.keys(M).forEach((function(e){var t=[Ab,Db].indexOf(e)>=0?1:-1,n=[jb,Db].indexOf(e)>=0?"y":"x";M[e]+=E[n]*t}))}return M}const F_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=t_(g),v=l||(y===g||!f?[S_(g)]:function(e){if(t_(e)===Fb)return[];var t=S_(e);return[T_(e),t,T_(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(t_(n)===Fb?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Gb:l,u=__(r),d=u?s?Hb:Hb.filter((function(e){return __(e)===u})):zb,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=N_(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[t_(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=b[0],S=0;S<b.length;S++){var M=b[S],T=t_(M),E=__(M)===Bb,P=[jb,Db].indexOf(T)>=0,I=P?"width":"height",O=N_(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=P?E?Ab:Nb:E?Db:jb;_[I]>w[I]&&(L=S_(L));var R=S_(L),j=[];if(o&&j.push(O[T]<=0),s&&j.push(O[L]<=0,O[R]<=0),j.every((function(e){return e}))){C=M,k=!1;break}x.set(M,j)}if(k)for(var D=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=f?3:1;A>0;A--){if("break"===D(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function z_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function B_(e){return[jb,Ab,Db,Nb].some((function(t){return e[t]>=0}))}const U_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=N_(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=t_(t.placement),v=__(t.placement),b=!v,_=g_(y),w=function(e){return"x"===e?"y":"x"}(_),x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(x){if(o){var P,I="y"===_?jb:Nb,O="y"===_?Db:Ab,L="y"===_?"height":"width",R=x[_],j=R+g[I],D=R-g[O],A=h?-C[L]/2:0,N=v===Bb?k[L]:C[L],F=v===Bb?-C[L]:-k[L],z=t.elements.arrow,B=h&&z?l_(z):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[I],V=U[O],q=y_(0,k[L],B[L]),Z=b?k[L]/2-A-q-$-M.mainAxis:N-q-$-M.mainAxis,H=b?-k[L]/2+A+q+V+M.mainAxis:F+q+V+M.mainAxis,G=t.elements.arrow&&m_(t.elements.arrow),W=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[_])?P:0,K=R+H-Y,X=y_(h?r_(j,R+Z-Y-W):j,R,h?n_(D,K):D);x[_]=X,E[_]=X-R}if(s){var J,Q="x"===_?jb:Nb,ee="x"===_?Db:Ab,te=x[w],ne="y"===w?"height":"width",re=te+g[Q],ie=te-g[ee],oe=-1!==[jb,Nb].indexOf(y),ae=null!=(J=null==T?void 0:T[w])?J:0,se=oe?re:te-k[ne]-C[ne]-ae+M.altAxis,le=oe?te+k[ne]+C[ne]-ae-M.altAxis:ie,ce=h&&oe?function(e,t,n){var r=y_(e,t,n);return r>n?n:r}(se,te,le):y_(h?se:re,te,h?le:ie);x[w]=ce,E[w]=ce-te}t.modifiersData[r]=E}},requiresIfExists:["offset"]};function $_(e,t,n){void 0===n&&(n=!1);var r=Jb(t),i=Jb(t)&&function(e){var t=e.getBoundingClientRect(),n=i_(t.width)/e.offsetWidth||1,r=i_(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=p_(t),a=s_(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Yb(t)||I_(o))&&(s=function(e){return e!==Kb(e)&&Jb(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):E_(e)}(t)),Jb(t)?((l=s_(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=P_(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function V_(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function q_(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Z_={placement:"bottom",modifiers:[],strategy:"absolute"};function H_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function G_(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Z_:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z_,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:Xb(e)?L_(e):e.contextElement?L_(e.contextElement):[],popper:L_(t)};var u=function(e){var t=V_(e);return Wb.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(H_(t,n)){i.rects={reference:$_(t,m_(n),"fixed"===i.options.strategy),popper:l_(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"==typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:q_((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!H_(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var W_=G_({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Kb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,k_)})),s&&l.addEventListener("resize",n.update,k_),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,k_)})),s&&l.removeEventListener("resize",n.update,k_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=A_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:t_(t.placement),variation:__(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,x_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,x_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},e_,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Gb.reduce((function(e,n){return e[n]=function(e,t,n){var r=t_(e),i=[Nb,jb].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Nb,Ab].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},F_,U_,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=t_(n.placement),l=g_(s),c=[Nb,Ab].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return v_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:b_(e,zb))}(i.padding,n),d=l_(o),p="y"===l?jb:Nb,h="y"===l?Db:Ab,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=m_(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=u[p],_=y-d[c]-u[h],w=y/2-d[c]/2+v,x=y_(b,w,_),k=l;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!c_(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=N_(t,{elementContext:"reference"}),s=N_(t,{altBoundary:!0}),l=z_(a,r),c=z_(s,i,o),u=B_(l),d=B_(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Y_=r.forwardRef((function(e,t){const{children:n,container:i,disablePortal:o=!1}=e,[s,l]=r.useState(null),c=Fp(r.isValidElement(n)?n.ref:null,t);if(Lp((()=>{o||l(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,o]),Lp((()=>{if(s&&!o)return Op(t,s),()=>{Op(t,null)}}),[t,s,o]),o){if(r.isValidElement(n)){const e={ref:c};return r.cloneElement(n,e)}return ih(r.Fragment,{children:n})}return ih(r.Fragment,{children:s&&a.createPortal(n,s)})}));function K_(e){return qp("MuiPopper",e)}Zp("MuiPopper",["root"]);const X_=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],J_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Q_(e){return"function"==typeof e?e():e}function ew(e){return void 0!==e.nodeType}const tw={},nw=r.forwardRef((function(e,t){var n;const{anchorEl:i,children:o,component:a,direction:s,disablePortal:l,modifiers:c,open:u,ownerState:d,placement:p,popperOptions:h,popperRef:f,slotProps:m={},slots:g={},TransitionProps:y}=e,v=Iv(e,X_),b=r.useRef(null),_=Fp(b,t),w=r.useRef(null),x=Fp(w,f),k=r.useRef(x);Lp((()=>{k.current=x}),[x]),r.useImperativeHandle(f,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,s),[S,M]=r.useState(C),[T,E]=r.useState(Q_(i));r.useEffect((()=>{w.current&&w.current.forceUpdate()})),r.useEffect((()=>{i&&E(Q_(i))}),[i]),Lp((()=>{if(!T||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;(e=>{M(e.placement)})(t)}}];null!=c&&(e=e.concat(c)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=W_(T,b.current,up({placement:C},h,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}),[T,l,c,u,h,C]);const P={placement:S};null!==y&&(P.TransitionProps=y);const I=Bp({root:["root"]},xb(K_)),O=null!=(n=null!=a?a:g.root)?n:"div",L=Tb({elementType:O,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:_},ownerState:up({},e,d),className:I.root});return ih(O,up({},L,{children:"function"==typeof o?o(P):o}))})),rw=r.forwardRef((function(e,t){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=tw,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:y={}}=e,v=Iv(e,J_),[b,_]=r.useState(!0);if(!l&&!u&&(!m||b))return null;let w;if(o)w=o;else if(n){const e=Q_(n);w=e&&ew(e)?Pp(e).body:Pp(null).body}const x=m?{in:u,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return ih(Y_,{disablePortal:s,container:w,children:ih(nw,up({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:m?!b:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:y},v,{style:up({position:"fixed",top:0,left:0,display:u||!l||m&&!b?void 0:"none"},f),TransitionProps:x,children:i}))})}));function iw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ow(e){return parseInt(Ip(e).getComputedStyle(e).paddingRight,10)||0}function aw(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&iw(e,i)}))}function sw(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function lw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Pp(e);return t.body===e?Ip(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Pp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ow(r)+e}px`;const t=Pp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ow(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Pp(r).body;else{const t=r.parentElement,n=Ip(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}function cw(e){return qp("MuiModal",e)}Zp("MuiModal",["root","hidden","backdrop"]);const uw=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const dw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&iw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);aw(t,e.mount,e.modalRef,r,!0);const i=sw(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=sw(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=lw(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=sw(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&iw(e.modalRef,t),aw(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&iw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},pw=r.forwardRef((function(e,t){var n,i;const{children:o,closeAfterTransition:a=!1,component:s,container:l,disableAutoFocus:c=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:d=!1,disablePortal:p=!1,disableRestoreFocus:h=!1,disableScrollLock:f=!1,hideBackdrop:m=!1,keepMounted:g=!1,manager:y=dw,onBackdropClick:v,onClose:b,onKeyDown:_,open:w,onTransitionEnter:x,onTransitionExited:k,slotProps:C={},slots:S={}}=e,M=Iv(e,uw),[T,E]=r.useState(!w),P=r.useRef({}),I=r.useRef(null),O=r.useRef(null),L=Fp(O,t),R=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),j=null==(n=e["aria-hidden"])||n,D=()=>(P.current.modalRef=O.current,P.current.mountNode=I.current,P.current),A=()=>{y.mount(D(),{disableScrollLock:f}),O.current&&(O.current.scrollTop=0)},N=Np((()=>{const e=function(e){return"function"==typeof e?e():e}(l)||Pp(I.current).body;y.add(D(),e),O.current&&A()})),F=r.useCallback((()=>y.isTopModal(D())),[y]),z=Np((e=>{I.current=e,e&&O.current&&(w&&F()?A():iw(O.current,j))})),B=r.useCallback((()=>{y.remove(D(),j)}),[y,j]);r.useEffect((()=>()=>{B()}),[B]),r.useEffect((()=>{w?N():(!R||!a)&&B()}),[w,B,R,a,N]);const U=up({},e,{closeAfterTransition:a,disableAutoFocus:c,disableEnforceFocus:u,disableEscapeKeyDown:d,disablePortal:p,disableRestoreFocus:h,disableScrollLock:f,exited:T,hideBackdrop:m,keepMounted:g}),$=(e=>{const{open:t,exited:n}=e;return Bp({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xb(cw))})(U),V={};void 0===o.props.tabIndex&&(V.tabIndex="-1"),R&&(V.onEnter=Tp((()=>{E(!1),x&&x()}),o.props.onEnter),V.onExited=Tp((()=>{E(!0),k&&k(),a&&B()}),o.props.onExited));const q=null!=(i=null!=s?s:S.root)?i:"div",Z=Tb({elementType:q,externalSlotProps:C.root,externalForwardedProps:M,additionalProps:{ref:L,role:"presentation",onKeyDown:e=>{_&&_(e),"Escape"===e.key&&F()&&(d||(e.stopPropagation(),b&&b(e,"escapeKeyDown")))}},className:$.root,ownerState:U}),H=S.backdrop,G=Tb({elementType:H,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(v&&v(e),b&&b(e,"backdropClick"))},open:w},className:$.backdrop,ownerState:U});return g||w||R&&!T?ih(Y_,{ref:z,container:l,disablePortal:p,children:oh(q,up({},Z,{children:[!m&&H?ih(H,up({},G)):null,ih(Rb,{disableEnforceFocus:u,disableAutoFocus:c,disableRestoreFocus:h,isEnabled:F,open:w,children:r.cloneElement(o,V)})]}))}):null})),hw=pw,fw=["onChange","maxRows","minRows","style","value"];function mw(e){return parseInt(e,10)||0}const gw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function yw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vw=r.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:o=1,style:s,value:l}=e,c=Iv(e,fw),{current:u}=r.useRef(null!=l),d=r.useRef(null),p=Fp(t,d),h=r.useRef(null),f=r.useRef(0),[m,g]=r.useState({outerHeightStyle:0}),y=r.useCallback((()=>{const t=d.current,n=Ip(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=h.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,s=mw(n.paddingBottom)+mw(n.paddingTop),l=mw(n.borderBottomWidth)+mw(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflow:Math.abs(p-c)<=1}}),[i,o,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},b=r.useCallback((()=>{const e=y();yw(e)||g((t=>v(t,e)))}),[y]);r.useEffect((()=>{const e=Ep((()=>{f.current=0,d.current&&(()=>{const e=y();yw(e)||a.flushSync((()=>{g((t=>v(t,e)))}))})()}));let t;const n=d.current,r=Ip(n);return r.addEventListener("resize",e),typeof ResizeObserver<"u"&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),Lp((()=>{b()})),r.useEffect((()=>{f.current=0}),[l]);return oh(r.Fragment,{children:[ih("textarea",up({value:l,onChange:e=>{f.current=0,u||b(),n&&n(e)},ref:p,rows:o,style:up({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},s)},c)),ih("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:up({},gw,s,{padding:0})})]})}));function bw(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function _w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,s)=>{let{inputValue:l,getOptionLabel:c}=s,u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=bw(u));const d=u?e.filter((e=>{let r=(o||c)(e);return n&&(r=r.toLowerCase()),t&&(r=bw(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?d.slice(0,r):d}}function ww(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const xw=_w(),kw=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Cw(e){const{unstable_isActiveElementInListbox:t=kw,unstable_classNamePrefix:n="Mui",autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:y=xw,filterSelectedOptions:v=!1,freeSolo:b=!1,getOptionDisabled:_,getOptionLabel:w=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:x,handleHomeEndKeys:k=!e.freeSolo,id:C,includeInputInList:S=!1,inputValue:M,isOptionEqualToValue:T=((e,t)=>e===t),multiple:E=!1,onChange:P,onClose:I,onHighlightChange:O,onInputChange:L,onOpen:R,open:j,openOnFocus:D=!1,options:A,readOnly:N=!1,selectOnFocus:F=!e.freeSolo,value:z}=e,B=Dp(C);let U=w;U=e=>{const t=w(e);return"string"!=typeof t?String(t):t};const $=r.useRef(!1),V=r.useRef(!0),q=r.useRef(null),Z=r.useRef(null),[H,G]=r.useState(null),[W,Y]=r.useState(-1),K=o?0:-1,X=r.useRef(K),[J,Q]=Ap({controlled:z,default:d,name:u}),[ee,te]=Ap({controlled:M,default:"",name:u,state:"inputValue"}),[ne,re]=r.useState(!1),ie=r.useCallback(((e,t)=>{if(!(E?J.length<t.length:null!==t)&&!l)return;let n;if(E)n="";else if(null==t)n="";else{const e=U(t);n="string"==typeof e?e:""}ee!==n&&(te(n),L&&L(e,n,"reset"))}),[U,ee,E,L,te,l,J]),[oe,ae]=Ap({controlled:j,default:!1,name:u,state:"open"}),[se,le]=r.useState(!0),ce=!E&&null!=J&&ee===U(J),ue=oe&&!N,de=ue?y(A.filter((e=>!(v&&(E?J:[J]).some((t=>null!==t&&T(e,t)))))),{inputValue:ce&&se?"":ee,getOptionLabel:U}):[],pe=zp({filteredOptions:de,value:J});r.useEffect((()=>{const e=J!==pe.value;ne&&!e||b&&!e||ie(null,J)}),[J,ie,ne,pe.value,b]);const he=oe&&de.length>0&&!N;const fe=Np((e=>{-1===e?q.current.focus():H.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{E&&W>J.length-1&&(Y(-1),fe(-1))}),[J,E,W,fe]);const me=Np((e=>{let{event:t,index:r,reason:i="auto"}=e;if(X.current=r,-1===r?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${B}-option-${r}`),O&&O(t,-1===r?null:de[r],i),!Z.current)return;const o=Z.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));const a=Z.current.parentElement.querySelector('[role="listbox"]');if(!a)return;if(-1===r)return void(a.scrollTop=0);const s=Z.current.querySelector(`[data-option-index="${r}"]`);if(s&&(s.classList.add(`${n}-focused`),"keyboard"===i&&s.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==i)){const e=s,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(x?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(x?1.3:0))}})),ge=Np((e=>{let{event:t,diff:n,direction:r="next",reason:o="auto"}=e;if(!ue)return;const a=function(e,t){if(!Z.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===de.length||"previous"===t&&-1===n)return-1;const e=Z.current.querySelector(`[data-option-index="${n}"]`),r=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=de.length-1;if("reset"===n)return K;if("start"===n)return 0;if("end"===n)return e;const t=X.current+n;return t<0?-1===t&&S?-1:g&&-1!==X.current||Math.abs(n)>1?0:e:t>e?t===e+1&&S?-1:g||Math.abs(n)>1?e:0:t})(),r);if(me({index:a,reason:o,event:t}),i&&"reset"!==n)if(-1===a)q.current.value=ee;else{const e=U(de[a]);q.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&q.current.setSelectionRange(ee.length,e.length)}})),ye=r.useCallback((()=>{if(!ue||(()=>{if(-1!==X.current&&pe.filteredOptions&&pe.filteredOptions.length!==de.length&&(E?J.length===pe.value.length&&pe.value.every(((e,t)=>U(J[t])===U(e))):(e=pe.value,t=J,(e?U(e):"")===(t?U(t):"")))){const e=pe.filteredOptions[X.current];if(e&&de.some((t=>U(t)===U(e))))return!0}var e,t;return!1})())return;const e=E?J[0]:J;if(0!==de.length&&null!=e){if(Z.current){if(null!=e){const t=de[X.current];if(E&&t&&-1!==ww(J,(e=>T(t,e))))return;const n=ww(de,(t=>T(t,e)));return void(-1===n?ge({diff:"reset"}):me({index:n}))}if(X.current>=de.length-1)return void me({index:de.length-1});me({index:X.current})}}else ge({diff:"reset"})}),[de.length,!E&&J,v,ge,me,ue,ee,E]),ve=Np((e=>{Op(Z,e),e&&ye()}));r.useEffect((()=>{ye()}),[ye]);const be=e=>{oe||(ae(!0),le(!0),R&&R(e))},_e=(e,t)=>{!oe||(ae(!1),I&&I(e,t))},we=(e,t,n,r)=>{if(E){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;P&&P(e,t,n,r),Q(t)},xe=r.useRef(!1),ke=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=t;if(E){i=Array.isArray(J)?J.slice():[],0;const e=ww(i,(e=>T(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ie(e,i),we(e,i,r,{option:t}),!h&&(!e||!e.ctrlKey&&!e.metaKey)&&_e(e,r),(!0===s||"touch"===s&&xe.current||"mouse"===s&&!xe.current)&&q.current.blur()};const Ce=(e,t)=>{if(!E)return;""===ee&&_e(e,"toggleInput");let n=W;-1===W?""===ee&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=H.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Y(n),fe(n)},Se=e=>{$.current=!0,te(""),L&&L(e,"","clear"),we(e,E?[]:null,"clear")},Me=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==W&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),fe(-1)),229!==t.which))switch(t.key){case"Home":ue&&k&&(t.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ue&&k&&(t.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ge({diff:-5,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"PageDown":t.preventDefault(),ge({diff:5,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowDown":t.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowUp":t.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==X.current&&ue){const e=de[X.current],n=!!_&&_(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),i&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else b&&""!==ee&&!1===ce&&(E&&t.preventDefault(),ke(t,ee,"createOption","freeSolo"));break;case"Escape":ue?(t.preventDefault(),t.stopPropagation(),_e(t,"escape")):c&&(""!==ee||E&&J.length>0)&&(t.preventDefault(),t.stopPropagation(),Se(t));break;case"Backspace":if(E&&!N&&""===ee&&J.length>0){const e=-1===W?J.length-1:W,n=J.slice();n.splice(e,1),we(t,n,"removeOption",{option:J[e]})}break;case"Delete":if(E&&!N&&""===ee&&J.length>0&&-1!==W){const e=W,n=J.slice();n.splice(e,1),we(t,n,"removeOption",{option:J[e]})}}},Te=e=>{re(!0),D&&!$.current&&be(e)},Ee=e=>{t(Z)?q.current.focus():(re(!1),V.current=!0,$.current=!1,a&&-1!==X.current&&ue?ke(e,de[X.current],"blur"):a&&b&&""!==ee?ke(e,ee,"blur","freeSolo"):l&&ie(e,J),_e(e,"blur"))},Pe=e=>{const t=e.target.value;ee!==t&&(te(t),le(!1),L&&L(e,t,"input")),""===t?!p&&!E&&we(e,null,"clear"):be(e)},Ie=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Oe=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xe.current=!0},Le=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,de[t],"selectOption"),xe.current=!1},Re=e=>t=>{const n=J.slice();n.splice(e,1),we(t,n,"removeOption",{option:J[e]})},je=e=>{oe?_e(e,"toggleInput"):be(e)},De=e=>{e.target.getAttribute("id")!==B&&e.preventDefault()},Ae=()=>{q.current.focus(),F&&V.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),V.current=!1},Ne=e=>{(""===ee||!oe)&&je(e)};let Fe=b&&ee.length>0;Fe=Fe||(E?J.length>0:null!==J);let ze=de;if(x){ze=de.reduce(((e,t,n)=>{const r=x(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return f&&ne&&Ee(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return up({"aria-owns":he?`${B}-listbox`:null},e,{onKeyDown:Me(e),onMouseDown:De,onClick:Ae})},getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ee,onBlur:Ee,onFocus:Te,onChange:Pe,onMouseDown:Ne,"aria-activedescendant":ue?"":null,"aria-autocomplete":i?"both":"list","aria-controls":he?`${B}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,onClick:Se}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:je}),getTagProps:e=>{let{index:t}=e;return up({key:t,"data-tag-index":t,tabIndex:-1},!N&&{onDelete:Re(t)})},getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:ve,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;const r=(E?J:[J]).some((e=>null!=e&&T(n,e))),i=!!_&&_(n);return{key:U(n),tabIndex:-1,role:"option",id:`${B}-option-${t}`,onMouseOver:Ie,onClick:Le,onTouchStart:Oe,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:B,inputValue:ee,value:J,dirty:Fe,expanded:ue&&H,popupOpen:ue,focused:ne||-1!==W,anchorEl:H,setAnchorEl:G,focusedTag:W,groupedOptions:ze}}function Sw(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&typeof t[n]>"u"&&(e[n]=r[n]),e)),{})}const Mw=r.createContext(void 0);function Tw(){return r.useContext(Mw)}function Ew(e,t){return mb({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pw={black:"#000",white:"#fff"},Iw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ow={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Lw={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Rw={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},jw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Dw={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Aw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Nw=["mode","contrastThreshold","tonalOffset"],Fw={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Pw.white,default:Pw.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},zw={text:{primary:Pw.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Pw.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bw(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Eg(e.main,i):"dark"===t&&(e.dark=Tg(e.main,o)))}function Uw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=fb(e,Nw),o=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:jw[200],light:jw[50],dark:jw[400]}:{main:jw[700],light:jw[400],dark:jw[800]}}(t),a=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Ow[200],light:Ow[50],dark:Ow[400]}:{main:Ow[500],light:Ow[300],dark:Ow[700]}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Lw[500],light:Lw[300],dark:Lw[700]}:{main:Lw[700],light:Lw[400],dark:Lw[800]}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Dw[400],light:Dw[300],dark:Dw[700]}:{main:Dw[700],light:Dw[500],dark:Dw[900]}}(t),c=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Aw[400],light:Aw[300],dark:Aw[700]}:{main:Aw[800],light:Aw[500],dark:Aw[900]}}(t),u=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Rw[400],light:Rw[300],dark:Rw[700]}:{main:"#ed6c02",light:Rw[500],dark:Rw[900]}}(t);function d(e){const t=function(e,t){const n=Sg(e),r=Sg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,zw.text.primary)>=n?zw.text.primary:Fw.text.primary;return t}const p=e=>{let{color:t,name:n,mainShade:i=500,lightShade:o=300,darkShade:a=700}=e;if(t=mb({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error(gh(11,n?` (${n})`:"",i));if("string"!=typeof t.main)throw new Error(gh(12,n?` (${n})`:"",JSON.stringify(t.main)));return Bw(t,"light",o,r),Bw(t,"dark",a,r),t.contrastText||(t.contrastText=d(t.main)),t},h={dark:zw,light:Fw};return ph(mb({common:mb({},Pw),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Iw,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const $w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Vw(e){return Math.round(1e5*e)/1e5}const qw={textTransform:"uppercase"},Zw='"Roboto", "Helvetica", "Arial", sans-serif';function Hw(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zw,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=fb(n,$w),h=i/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>mb({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Zw?{letterSpacing:`${Vw(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,qw),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ph(mb({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Gw(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const Ww=["none",Gw(0,2,1,-1,0,1,1,0,0,1,3,0),Gw(0,3,1,-2,0,2,2,0,0,1,5,0),Gw(0,3,3,-2,0,3,4,0,0,1,8,0),Gw(0,2,4,-1,0,4,5,0,0,1,10,0),Gw(0,3,5,-1,0,5,8,0,0,1,14,0),Gw(0,3,5,-1,0,6,10,0,0,1,18,0),Gw(0,4,5,-2,0,7,10,1,0,2,16,1),Gw(0,5,5,-3,0,8,10,1,0,3,14,2),Gw(0,5,6,-3,0,9,12,1,0,3,16,2),Gw(0,6,6,-3,0,10,14,1,0,4,18,3),Gw(0,6,7,-4,0,11,15,1,0,4,20,3),Gw(0,7,8,-4,0,12,17,2,0,5,22,4),Gw(0,7,8,-4,0,13,19,2,0,5,24,4),Gw(0,7,9,-4,0,14,21,2,0,5,26,4),Gw(0,8,9,-5,0,15,22,2,0,6,28,5),Gw(0,8,10,-5,0,16,24,2,0,6,30,5),Gw(0,8,11,-5,0,17,26,2,0,6,32,5),Gw(0,9,11,-5,0,18,28,2,0,7,34,6),Gw(0,9,12,-6,0,19,29,2,0,7,36,6),Gw(0,10,13,-6,0,20,31,3,0,8,38,7),Gw(0,10,13,-6,0,21,33,3,0,8,40,7),Gw(0,10,14,-6,0,22,35,3,0,8,42,7),Gw(0,11,14,-7,0,23,36,3,0,9,44,8),Gw(0,11,15,-7,0,24,38,3,0,9,46,8)],Yw=["duration","easing","delay"],Kw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Xw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jw(e){return`${Math.round(e)}ms`}function Qw(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ex(e){const t=mb({},Kw,e.easing),n=mb({},Xw,e.duration);return mb({getAutoHeightDuration:Qw,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;fb(r,Yw);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:Jw(i)} ${o} ${"string"==typeof a?a:Jw(a)}`)).join(",")}},e,{easing:t,duration:n})}const tx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=e,o=fb(e,nx);if(e.vars)throw new Error(gh(18));const a=Uw(n),s=tg(e);let l=ph(s,{mixins:Ew(s.breakpoints,t),palette:a,shadows:Ww.slice(),typography:Hw(a,i),transitions:ex(r),zIndex:mb({},tx)});for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return l=ph(l,o),l=u.reduce(((e,t)=>ph(e,t)),l),l.unstable_sxConfig=mb({},Xm,null==o?void 0:o.unstable_sxConfig),l.unstable_sx=function(e){return Qm({sx:e,theme:this})},l}const ix=rx(),ox=e=>gg(e)&&"classes"!==e,ax=gg,sx=bg({defaultTheme:ix,rootShouldForwardProp:ox});function lx(e){let{props:t,name:n}=e;return wg({props:t,name:n,defaultTheme:ix})}function cx(e){return ih(og,mb({},e,{defaultTheme:ix}))}function ux(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function dx(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(ux(e.value)&&""!==e.value||t&&ux(e.defaultValue)&&""!==e.defaultValue)}function px(e){return rf("MuiInputBase",e)}const hx=of("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),fx=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],mx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xh(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},gx=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},yx=sx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mx})((e=>{let{theme:t,ownerState:n}=e;return mb({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hx.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&mb({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),vx=sx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:gx})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=mb({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return mb({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hx.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hx.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),bx=ih(cx,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_x=r.forwardRef((function(e,t){var n;const i=lx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:y="input",inputProps:v={},inputRef:b,maxRows:_,minRows:w,multiline:x=!1,name:k,onBlur:C,onChange:S,onClick:M,onFocus:T,onKeyDown:E,onKeyUp:P,placeholder:I,readOnly:O,renderSuffix:L,rows:R,slotProps:j={},slots:D={},startAdornment:A,type:N="text",value:F}=i,z=fb(i,fx),B=null!=v.value?v.value:F,{current:U}=r.useRef(null!=B),$=r.useRef(),V=r.useCallback((e=>{}),[]),q=jh($,b,v.ref,V),[Z,H]=r.useState(!1),G=Tw(),W=Sw({props:i,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});W.focused=G?G.focused:Z,r.useEffect((()=>{!G&&p&&Z&&(H(!1),C&&C())}),[G,p,Z,C]);const Y=G&&G.onFilled,K=G&&G.onEmpty,X=r.useCallback((e=>{dx(e)?Y&&Y():K&&K()}),[Y,K]);Eh((()=>{U&&X({value:B})}),[B,X,U]);r.useEffect((()=>{X($.current)}),[]);let J=y,Q=v;x&&"input"===J&&(Q=mb(R?{type:void 0,minRows:R,maxRows:R}:{type:void 0,maxRows:_,minRows:w},Q),J=vw);r.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=mb({},i,{color:W.color||"primary",disabled:W.disabled,endAdornment:f,error:W.error,focused:W.focused,formControl:G,fullWidth:m,hiddenLabel:W.hiddenLabel,multiline:x,size:W.size,startAdornment:A,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e;return Bp({root:["root",`color${xh(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},px,t)})(ee),ne=D.root||c.Root||yx,re=j.root||u.root||{},ie=D.input||c.Input||vx;return Q=mb({},Q,null!=(n=j.input)?n:u.input),oh(r.Fragment,{children:[!h&&bx,oh(ne,mb({},re,!vb(ne)&&{ownerState:mb({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),M&&M(e)}},z,{className:yb(te.root,re.className,l,O&&"MuiInputBase-readOnly"),children:[A,ih(Mw.Provider,{value:null,children:ih(ie,mb({ownerState:ee,"aria-invalid":W.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:W.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:k,placeholder:I,readOnly:O,required:W.required,rows:R,value:B,onKeyDown:E,onKeyUp:P,type:N},Q,!vb(ie)&&{as:J,ownerState:mb({},ee,Q.ownerState)},{ref:q,className:yb(te.input,Q.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):H(!1)},onChange:function(e){if(!U){const t=e.target||$.current;if(null==t)throw new Error(gh(1));X({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];v.onChange&&v.onChange(e,...n),S&&S(e,...n)},onFocus:e=>{W.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):H(!0))}}))}),f,L?L(mb({},W,{startAdornment:A})):null]}))]})})),wx=_x;function xx(){return ig(ix)}const kx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Cx=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Sx=sx(wx)({fontSize:"inherit"});function Mx(e){const{id:t,value:n,field:i,colDef:o,hasFocus:a,inputProps:s,onValueChange:l}=e,c=Iv(e,Cx),u="dateTime"===o.type,d=pv(),p=r.useRef(),h=r.useMemo((()=>{let e,t;return e=null==n?null:n instanceof Date?n:new Date((null!=n?n:"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,u?16:10),{parsed:e,formatted:t}}),[n,u]),[f,m]=r.useState(h),g=(e=>{const{classes:t}=e;return Bp({root:["editInputCell"]},Ng,t)})({classes:Bg().classes}),y=r.useCallback((e=>{if(""===e)return null;const[t,n]=e.split("T"),[r,i,o]=t.split("-"),a=new Date;if(a.setFullYear(Number(r),Number(i)-1,Number(o)),a.setHours(0,0,0,0),n){const[e,t]=n.split(":");a.setHours(Number(e),Number(t),0,0)}return a}),[]),v=r.useCallback((async e=>{const n=e.target.value,r=y(n);l&&await l(e,r),m({parsed:r,formatted:n}),d.current.setEditCellValue({id:t,field:i,value:r},e)}),[d,i,t,l,y]);return r.useEffect((()=>{m((e=>{var t,n;return h.parsed!==e.parsed&&(null==(t=h.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?h:e}))}),[h]),Lp((()=>{a&&p.current.focus()}),[a]),ih(Sx,up({inputRef:p,fullWidth:!0,className:g.root,type:u?"datetime-local":"date",inputProps:up({max:u?"9999-12-31T23:59":"9999-12-31"},s),value:f.formatted,onChange:v},c))}const Tx=e=>ih(Mx,up({},e)),Ex=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Px=sx(wx,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((e=>{let{theme:t}=e;return up({},t.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})})),Ix=r.forwardRef(((e,t)=>{const n=Bg(),{id:i,value:o,field:a,colDef:s,hasFocus:l,debounceMs:c=200,isProcessingProps:u,onValueChange:d}=e,p=Iv(e,Ex),h=pv(),f=r.useRef(),[m,g]=r.useState(o),y=(e=>{const{classes:t}=e;return Bp({root:["editInputCell"]},Ng,t)})(n),v=r.useCallback((async e=>{const t=e.target.value;d&&await d(e,t);const n=h.current.getColumn(a);let r=t;n.valueParser&&(r=n.valueParser(t,h.current.getCellParams(i,a))),g(r),h.current.setEditCellValue({id:i,field:a,value:r,debounceMs:c,unstable_skipValueParser:!0},e)}),[h,c,a,i,d]),b=h.current.unstable_getEditCellMeta(i,a);return r.useEffect((()=>{"debouncedSetEditCellValue"!==(null==b?void 0:b.changeReason)&&g(o)}),[b,o]),Lp((()=>{l&&f.current.focus()}),[l]),ih(Px,up({ref:t,inputRef:f,className:y.root,ownerState:n,fullWidth:!0,type:"number"===s.type?s.type:"text",value:null!=m?m:"",onChange:v,endAdornment:u?ih(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))})),Ox=e=>ih(Ix,up({},e)),Lx=e=>"Escape"===e,Rx=e=>"Tab"===e,jx=e=>" "===e;function Dx(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const Ax=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||jx(e),Nx=e=>Rx(e)||Lx(e);function Fx(e){return"singleSelect"===(null==e?void 0:e.type)}function zx(e,t,n){if(void 0===t)return;const r=t.find((t=>{const r=n(t);return String(r)===String(e)}));return n(r)}const Bx=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Ux=["MenuProps"];function $x(e){var t,n,i;const o=Bg(),{id:a,value:s,field:l,row:c,colDef:u,hasFocus:d,error:p,onValueChange:h,initialOpen:f=o.editMode===jv.Cell,getOptionLabel:m,getOptionValue:g}=e,y=Iv(e,Bx),v=pv(),b=r.useRef(),_=r.useRef(),[w,x]=r.useState(f),k=null!=(n=((null==(t=o.slotProps)?void 0:t.baseSelect)||{}).native)&&n,C=(null==(i=o.slotProps)?void 0:i.baseSelect)||{},{MenuProps:S}=C,M=Iv(C,Ux);if(Lp((()=>{var e;d&&(null==(e=_.current)||e.focus())}),[d]),!Fx(u))return null;let T;if(T="function"==typeof(null==u?void 0:u.valueOptions)?null==u?void 0:u.valueOptions({id:a,row:c,field:l}):null==u?void 0:u.valueOptions,!T)return null;const E=g||u.getOptionValue,P=m||u.getOptionLabel;return T&&u?ih(o.slots.baseSelect,up({ref:b,inputRef:_,value:s,onChange:async e=>{if(!Fx(u)||!T)return;x(!1);const t=zx(e.target.value,T,E);h&&await h(e,t),await v.current.setEditCellValue({id:a,field:l,value:t},e)},open:w,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||x(!0)},MenuProps:up({onClose:(e,t)=>{if(o.editMode!==jv.Row){if("backdropClick"===t||Lx(e.key)){const t=v.current.getCellParams(a,l);v.current.publishEvent("cellEditStop",up({},t,{reason:Lx(e.key)?zv.escapeKeyDown:zv.cellFocusOut}))}}else x(!1)}},S),error:p,native:k,fullWidth:!0},y,M,{children:T.map((e=>{var t;const n=E(e);return(0,r.createElement)(o.slots.baseSelectOption,up({},(null==(t=o.slotProps)?void 0:t.baseSelectOption)||{},{native:k,key:n,value:n}),P(e))}))})):null}const Vx=e=>ih($x,up({},e)),qx=r.createContext({});function Zx(e){return rf("MuiList",e)}of("MuiList",["root","padding","dense","subheader"]);const Hx=["children","className","component","dense","disablePadding","subheader"],Gx=sx("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return mb({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Wx=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=fb(n,Hx),d=r.useMemo((()=>({dense:s})),[s]),p=mb({},n,{component:a,dense:s,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Bp({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Zx,t)})(p);return ih(qx.Provider,{value:d,children:oh(Gx,mb({as:a,className:yb(h.root,o),ref:t,ownerState:p},u,{children:[c,i]}))})})),Yx=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Xx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Jx(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Qx(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Jx(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const ek=r.forwardRef((function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=fb(e,Yx),h=r.useRef(null),f=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eh((()=>{i&&h.current.focus()}),[i]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n=`${qh(Sh(e))}px`;h.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,h.current.style.width=`calc(100% + ${n})`}return h.current}})),[]);const m=jh(h,t);let g=-1;r.Children.forEach(a,((e,t)=>{!r.isValidElement(e)||(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1)))}));const y=r.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return ih(Wx,mb({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=Sh(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Qx(t,r,c,l,Kx);else if("ArrowUp"===n)e.preventDefault(),Qx(t,r,c,l,Xx);else if("Home"===n)e.preventDefault(),Qx(t,null,c,l,Kx);else if("End"===n)e.preventDefault(),Qx(t,null,c,l,Xx);else if(1===n.length){const i=f.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&Jx(r,i);i.previousKeyMatched&&(s||Qx(t,r,!1,l,Kx,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:i?0:-1},p,{children:y}))}));function tk(e,t){return(tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tk(e,t)}const rk=!1;const ik=r.createContext(null);var ok="unmounted",ak="exited",sk="entering",lk="entered",ck="exiting",uk=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=ak,r.appearStatus=sk):i=lk:i=t.unmountOnExit||t.mountOnEnter?ok:ak,r.state={status:i},r.nextCallback=null,r}nk(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ok?{status:ak}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==sk&&n!==lk&&(t=sk):(n===sk||n===lk)&&(t=ck)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===sk){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ak&&this.setState({status:ok})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],s=i[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||rk?this.safeSetState({status:lk},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:sk},(function(){t.props.onEntering(o,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:lk},(function(){t.props.onEntered(o,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!rk?(this.props.onExit(r),this.safeSetState({status:ck},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ak},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ak},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ok)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=Iv(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ih(ik.Provider,{value:null,children:"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i)})},t}(r.Component);function dk(){}uk.contextType=ik,uk.propTypes={},uk.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dk,onEntering:dk,onEntered:dk,onExit:dk,onExiting:dk,onExited:dk},uk.UNMOUNTED=ok,uk.EXITED=ak,uk.ENTERING=sk,uk.ENTERED=lk,uk.EXITING=ck;const pk=uk;function hk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fk(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){var i;n[e.key]=(i=e,t&&(0,r.isValidElement)(i)?t(i):i)})),n}function mk(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gk(e,t){return fk(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:mk(n,"appear",e),enter:mk(n,"enter",e),exit:mk(n,"exit",e)})}))}function yk(e,t,n){var i=fk(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}(t,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,r.isValidElement)(s)){var l=a in t,c=a in i,u=t[a],d=(0,r.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,r.isValidElement)(u)&&(o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:mk(s,"exit",e),enter:mk(s,"enter",e)})):o[a]=(0,r.cloneElement)(s,{in:!1}):o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:mk(s,"exit",e),enter:mk(s,"enter",e)})}})),o}var vk=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bk=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(hk(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}nk(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?gk(e,r):yk(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=fk(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=up({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Iv(e,["component","childFactory"]),i=this.state.contextValue,o=vk(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,ih(ik.Provider,null===t?{value:i,children:o}:{value:i,children:ih(t,{...r,children:o})})},t}(r.Component);bk.propTypes={},bk.defaultProps={component:"div",childFactory:function(e){return e}};const _k=bk,wk=e=>e.scrollTop;function xk(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}const kk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ck(e){return`scale(${e}, ${e**2})`}const Sk={entering:{opacity:1,transform:Ck(1)},entered:{opacity:1,transform:"none"}},Mk=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tk=r.forwardRef((function(e,t){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=pk}=e,y=fb(e,kk),v=r.useRef(),b=r.useRef(),_=xx(),w=r.useRef(null),x=jh(w,o.ref,t),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=k(u),S=k(((e,t)=>{wk(e);const{duration:n,delay:r,easing:i}=xk({style:f,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=_.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:r}),_.transitions.create("transform",{duration:Mk?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)})),M=k(c),T=k(h),E=k((e=>{const{duration:t,delay:n,easing:r}=xk({style:f,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=_.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:n}),_.transitions.create("transform",{duration:Mk?i:.666*i,delay:Mk?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ck(.75),d&&d(e)})),P=k(p);return r.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ih(g,mb({appear:i,in:s,nodeRef:w,onEnter:S,onEntered:M,onEntering:C,onExit:E,onExited:P,onExiting:T,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(w.current,e)},timeout:"auto"===m?null:m},y,{children:(e,t)=>r.cloneElement(o,mb({style:mb({opacity:0,transform:Ck(.75),visibility:"exited"!==e||s?void 0:"hidden"},Sk[e],f,o.props.style),ref:x},t))}))}));Tk.muiSupportAuto=!0;const Ek=Tk;function Pk(e){return rf("MuiPaper",e)}of("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ik=["className","component","elevation","square","variant"],Ok=sx("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return mb({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&mb({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Mg("#fff",kx(n.elevation))}, ${Mg("#fff",kx(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Lk=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=fb(n,Ik),c=mb({},n,{component:i,elevation:o,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Bp({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Pk,i)})(c);return ih(Ok,mb({as:i,ownerState:c,className:yb(u.root,r),ref:t},l))})),Rk=["components","componentsProps","slots","slotProps"],jk=sx(rw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dk=r.forwardRef((function(e,t){var n;const r=ng(),i=lx({props:e,name:"MuiPopper"}),{components:o,componentsProps:a,slots:s,slotProps:l}=i,c=fb(i,Rk),u=null!=(n=null==s?void 0:s.root)?n:null==o?void 0:o.Root;return ih(jk,mb({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=l?l:a},c,{ref:t}))})),Ak=["open","target","onClose","children","position","className","onExited"],Nk=e=>{const{classes:t}=e;return Bp({root:["menu"]},Ng,t)},Fk=sx(Dk,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal,[`& .${Fg.menuList}`]:{outline:0}}})),zk={"bottom-start":"top left","bottom-end":"top right"};function Bk(e){var t;const{open:n,target:i,onClose:o,children:a,position:s,className:l,onExited:c}=e,u=Iv(e,Ak),d=pv(),p=Bg(),h=Nk(p),f=r.useRef(null);Lp((()=>{var e,t;n?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(null==(e=f.current)||null==(t=e.focus)||t.call(e),f.current=null)}),[n]),r.useEffect((()=>{const e=n?"menuOpen":"menuClose";d.current.publishEvent(e,{target:i})}),[d,n,i]);const m=e=>t=>{e&&e(),c&&c(t)},g=e=>{e.target&&(i===e.target||null!=i&&i.contains(e.target))||o(e)};return ih(Fk,up({as:p.slots.basePopper,className:ug(l,h.root),ownerState:p,open:n,anchorEl:i,transition:!0,placement:s},u,null==(t=p.slotProps)?void 0:t.basePopper,{children:e=>{let{TransitionProps:t,placement:n}=e;return ih(Pb,{onClickAway:g,mouseEvent:"onMouseDown",children:ih(Ek,up({},t,{style:{transformOrigin:zk[n]},onExited:m(null==t?void 0:t.onExited),children:ih(Lk,{children:a})}))})}}))}const Uk=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function $k(e){var t;const{colDef:n,id:i,hasFocus:o,tabIndex:a,position:s="bottom-end",focusElementRef:l}=e,c=Iv(e,Uk),[u,d]=r.useState(-1),[p,h]=r.useState(!1),f=pv(),m=r.useRef(null),g=r.useRef(null),y=r.useRef(!1),v=r.useRef({}),b=xx(),_=Dp(),w=Dp(),x=Bg();if(!(e=>"function"==typeof e.getActions)(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(f.current.getRowParams(i)),C=k.filter((e=>!e.props.showInMenu)),S=k.filter((e=>e.props.showInMenu)),M=C.length+(S.length?1:0);r.useLayoutEffect((()=>{o||Object.entries(v.current).forEach((e=>{let[t,n]=e;null==n||n.stop({},(()=>{delete v.current[t]}))}))}),[o]),r.useEffect((()=>{u<0||!m.current||u>=m.current.children.length||m.current.children[u].focus({preventScroll:!0})}),[u]),r.useEffect((()=>{o||(d(-1),y.current=!1)}),[o]),r.useImperativeHandle(l,(()=>({focus(){if(!y.current){const e=k.findIndex((e=>!e.props.disabled));d(e)}}})),[k]),r.useEffect((()=>{u>=M&&d(M-1)}),[u,M]);const T=()=>{h(!1)},E=e=>t=>{v.current[e]=t},P=(e,t)=>n=>{d(e),y.current=!0,t&&t(n)};return oh("div",up({role:"menu",ref:m,tabIndex:-1,className:Fg.actionsCell,onKeyDown:e=>{if(M<=1)return;const t=(e,n)=>{var r;if(e<0||e>k.length)return e;const i=("left"===n?-1:1)*("rtl"===b.direction?-1:1);return null!=(r=k[e+i])&&r.props.disabled?t(e+i,n):e+i};let n=u;"ArrowRight"===e.key?n=t(u,"right"):"ArrowLeft"===e.key&&(n=t(u,"left")),!(n<0||n>=M)&&n!==u&&(e.preventDefault(),e.stopPropagation(),d(n))}},c,{children:[C.map(((e,t)=>r.cloneElement(e,{key:t,touchRippleRef:E(t),onClick:P(t,e.props.onClick),tabIndex:u===t?a:-1}))),S.length>0&&w&&ih(x.slots.baseIconButton,up({ref:g,id:w,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?_:void 0,role:"menuitem",size:"small",onClick:()=>{h(!0),d(M-1),y.current=!0},touchRippleRef:E(w),tabIndex:u===C.length?a:-1},null==(t=x.slotProps)?void 0:t.baseIconButton,{children:ih(x.slots.moreActionsIcon,{fontSize:"small"})})),S.length>0&&ih(Bk,{open:p,target:g.current,position:s,onClose:T,onClick:T,children:ih(ek,{id:_,className:Fg.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&T()},"aria-labelledby":w,variant:"menu",autoFocusItem:!0,children:S.map(((e,t)=>r.cloneElement(e,{key:t})))})})]}))}const Vk=e=>ih($k,up({},e));const qk=of("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zk=["center","classes","className"];let Hk,Gk,Wk,Yk,Kk=e=>e;const Xk=(0,o.F4)(Hk||(Hk=Kk`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),Jk=(0,o.F4)(Gk||(Gk=Kk`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),Qk=(0,o.F4)(Wk||(Wk=Kk`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),eC=sx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tC=sx((function(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=r.useState(!1),h=yb(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),f={width:s,height:s,top:-s/2+a,left:-s/2+o},m=yb(n.child,d&&n.childLeaving,i&&n.childPulsate);return!l&&!d&&p(!0),r.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),ih("span",{className:h,style:f,children:ih("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Yk||(Yk=Kk`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),qk.rippleVisible,Xk,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),qk.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),qk.child,qk.childLeaving,Jk,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),qk.childPulsate,Qk,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),nC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=fb(n,Zk),[l,c]=r.useState([]),u=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=r.useRef(!1),h=r.useRef(null),f=r.useRef(null),m=r.useRef(null);r.useEffect((()=>()=>{clearTimeout(h.current)}),[]);const g=r.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c((e=>[...e,ih(tC,{classes:{ripple:yb(o.ripple,qk.ripple),rippleVisible:yb(o.rippleVisible,qk.rippleVisible),ripplePulsate:yb(o.ripplePulsate,qk.ripplePulsate),child:yb(o.child,qk.child),childLeaving:yb(o.childLeaving,qk.childLeaving),childPulsate:yb(o.childPulsate,qk.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),y=r.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:o=i||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[i,g]),v=r.useCallback((()=>{y({},{pulsate:!0})}),[y]),b=r.useCallback(((e,t)=>{if(clearTimeout(h.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(h.current=setTimeout((()=>{b(e,t)})));f.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:y,stop:b})),[v,y,b]),ih(eC,mb({className:yb(qk.root,o.root,a),ref:m},s,{children:ih(_k,{component:null,exit:!0,children:l})}))}));function rC(e){return rf("MuiButtonBase",e)}const iC=of("MuiButtonBase",["root","disabled","focusVisible"]),oC=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],aC=sx("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:b,onKeyDown:_,onKeyUp:w,onMouseDown:x,onMouseLeave:k,onMouseUp:C,onTouchEnd:S,onTouchMove:M,onTouchStart:T,tabIndex:E=0,TouchRippleProps:P,touchRippleRef:I,type:O}=n,L=fb(n,oC),R=r.useRef(null),j=r.useRef(null),D=jh(j,I),{isFocusVisibleRef:A,onFocus:N,onBlur:F,ref:z}=Vh(),[B,U]=r.useState(!1);c&&B&&U(!1),r.useImperativeHandle(i,(()=>({focusVisible:()=>{U(!0),R.current.focus()}})),[]);const[$,V]=r.useState(!1);r.useEffect((()=>{V(!0)}),[]);const q=$&&!u&&!c;function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return Rh((r=>(t&&t(r),!n&&j.current&&j.current[e](r),!0)))}r.useEffect((()=>{B&&p&&!u&&$&&j.current.pulsate()}),[u,p,B,$]);const H=Z("start",x),G=Z("stop",g),W=Z("stop",y),Y=Z("stop",C),K=Z("stop",(e=>{B&&e.preventDefault(),k&&k(e)})),X=Z("start",T),J=Z("stop",S),Q=Z("stop",M),ee=Z("stop",(e=>{F(e),!1===A.current&&U(!1),f&&f(e)}),!1),te=Rh((e=>{R.current||(R.current=e.currentTarget),N(e),!0===A.current&&(U(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=R.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=r.useRef(!1),ie=Rh((e=>{p&&!re.current&&B&&j.current&&" "===e.key&&(re.current=!0,j.current.stop(e,(()=>{j.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),oe=Rh((e=>{p&&" "===e.key&&j.current&&B&&!e.defaultPrevented&&(re.current=!1,j.current.stop(e,(()=>{j.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(L.href||L.to)&&(ae=h);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=c):(!L.href&&!L.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const le=jh(t,z,R),ce=mb({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:E,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Bp({root:["root",t&&"disabled",n&&"focusVisible"]},rC,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return oh(aC,mb({as:ae,className:yb(ue.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:H,onMouseLeave:K,onMouseUp:Y,onDragLeave:W,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:c?-1:E,type:O},se,L,{children:[a,q?ih(nC,mb({ref:D,center:o},P)):null]}))})),lC=sC;function cC(e){return rf("MuiDivider",e)}const uC=of("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pC=sx("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return mb({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Mg(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{theme:t,ownerState:n}=e;return mb({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})}),(e=>{let{theme:t,ownerState:n}=e;return mb({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(t.vars||t).palette.divider}`,transform:"translateX(0%)"}})}),(e=>{let{ownerState:t}=e;return mb({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),hC=sx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return mb({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),fC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=fb(n,dC),f=mb({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Bp({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cC,r)})(f);return ih(pC,mb({as:a,className:yb(m.root,o),role:u,ref:t,ownerState:f},h,{children:i?ih(hC,{className:m.wrapper,ownerState:f,children:i}):null}))}));function mC(e){return rf("MuiListItemIcon",e)}const gC=of("MuiListItemIcon",["root","alignItemsFlexStart"]),yC=["className"],vC=sx("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:n}=e;return mb({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),bC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemIcon"}),{className:i}=n,o=fb(n,yC),a=mb({},n,{alignItems:r.useContext(qx).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Bp({root:["root","flex-start"===t&&"alignItemsFlexStart"]},mC,n)})(a);return ih(vC,mb({className:yb(s.root,i),ownerState:a,ref:t},o))}));function _C(e){return rf("MuiTypography",e)}of("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xC=sx("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${xh(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return mb({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),kC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},CC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTypography"}),r=(e=>CC[e]||e)(n.color),i=lg(mb({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=kC}=i,h=fb(i,wC),f=mb({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||kC[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Bp({root:["root",o,"inherit"!==e.align&&`align${xh(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},_C,a)})(f);return ih(xC,mb({as:m,ref:t,ownerState:f,className:yb(g.root,a)},h))}));function MC(e){return rf("MuiListItemText",e)}const TC=of("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),EC=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],PC=sx("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${TC.primary}`]:t.primary},{[`& .${TC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return mb({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),IC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=fb(n,EC),{dense:h}=r.useContext(qx);let f=null!=l?l:i,m=u;const g=mb({},n,{disableTypography:a,inset:s,primary:!!f,secondary:!!m,dense:h}),y=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Bp({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},MC,t)})(g);return null!=f&&f.type!==SC&&!a&&(f=ih(SC,mb({variant:h?"body2":"body1",className:y.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:f}))),null!=m&&m.type!==SC&&!a&&(m=ih(SC,mb({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:m}))),oh(PC,mb({className:yb(y.root,o),ownerState:g,ref:t},p,{children:[f,m]}))}));function OC(e){return rf("MuiMenuItem",e)}const LC=of("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jC=sx(lC,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return mb({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${LC.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${LC.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${LC.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${LC.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${LC.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${uC.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${uC.inset}`]:{marginLeft:52},[`& .${TC.root}`]:{marginTop:0,marginBottom:0},[`& .${TC.inset}`]:{paddingLeft:36},[`& .${gC.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&mb({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${gC.root} svg`]:{fontSize:"1.25rem"}}))})),DC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,h=fb(n,RC),f=r.useContext(qx),m=r.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),g=r.useRef(null);Eh((()=>{i&&g.current&&g.current.focus()}),[i]);const y=mb({},n,{dense:m.dense,divider:s,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e;return mb({},a,Bp({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},OC,a))})(n),b=jh(g,t);let _;return n.disabled||(_=void 0!==d?d:-1),ih(qx.Provider,{value:m,children:ih(jC,mb({ref:b,role:u,tabIndex:_,component:o,focusVisibleClassName:yb(v.focusVisible,c),className:yb(v.root,p)},h,{ownerState:y,classes:v}))})})),AC=["label","icon","showInMenu","onClick"],NC=r.forwardRef(((e,t)=>{const{label:n,icon:i,showInMenu:o,onClick:a}=e,s=Iv(e,AC),l=Bg(),c=e=>{a&&a(e)};var u;return o?oh(DC,up({ref:t},s,{onClick:a,children:[i&&ih(bC,{children:i}),n]})):ih(l.slots.baseIconButton,up({ref:t,size:"small",role:"menuitem","aria-label":n},s,{onClick:c},null==(u=l.slotProps)?void 0:u.baseIconButton,{children:r.cloneElement(i,{fontSize:"small"})}))}));function FC(e){return rf("MuiSkeleton",e)}of("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const zC=["animation","className","component","height","style","variant","width"];let BC,UC,$C,VC,qC=e=>e;const ZC=(0,o.F4)(BC||(BC=qC`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),HC=(0,o.F4)(UC||(UC=qC`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),GC=sx("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=function(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}(t.shape.borderRadius)||"px",i=function(e){return parseFloat(e)}(t.shape.borderRadius);return mb({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Mg(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${r}/${Math.round(i/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,o.iv)($C||($C=qC`
      animation: ${0} 1.5s ease-in-out 0.5s infinite;
    `),ZC)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,o.iv)(VC||(VC=qC`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 1.6s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),HC,(n.vars||n).palette.action.hover)})),WC=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:o="span",height:a,style:s,variant:l="text",width:c}=n,u=fb(n,zC),d=mb({},n,{animation:r,component:o,variant:l,hasChildren:Boolean(u.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e;return Bp({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},FC,t)})(d);return ih(GC,mb({as:o,ref:t,className:yb(p.root,i),ownerState:d},u,{style:mb({width:c,height:a},s)}))})),YC=["field","align","width","contentWidth"];function KC(e){const{align:t,width:n,contentWidth:r}=e,i=Iv(e,YC),o=(e=>{const{align:t,classes:n}=e;return Bp({root:["cell","cellSkeleton",`cell--text${Mp(t)}`,"withBorderColor"]},Ng,n)})({classes:Bg().classes,align:t});return ih("div",up({className:o.root,style:{width:n}},i,{children:ih(WC,{width:`${r}%`})}))}const XC={[`.${Fg.columnSeparator}, .${Fg["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},JC={[`& .${Fg.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Fg.menuIcon}`]:{width:"auto",visibility:"visible"}},QC=sx("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Fg.autoHeight}`]:t.autoHeight},{[`&.${Fg.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Fg["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Fg["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Fg["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Fg.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${Fg["root--disableUserSelection"]} .${Fg.cell}`]:t["root--disableUserSelection"]},{[`&.${Fg.autosizing}`]:t.autosizing},{[`& .${Fg.editBooleanCell}`]:t.editBooleanCell},{[`& .${Fg["cell--editing"]}`]:t["cell--editing"]},{[`& .${Fg["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Fg["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Fg["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Fg["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Fg.cell}`]:t.cell},{[`& .${Fg["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${Fg["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${Fg["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${Fg["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${Fg["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${Fg.cellContent}`]:t.cellContent},{[`& .${Fg.cellCheckbox}`]:t.cellCheckbox},{[`& .${Fg.cellSkeleton}`]:t.cellSkeleton},{[`& .${Fg.checkboxInput}`]:t.checkboxInput},{[`& .${Fg["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Fg["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Fg["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Fg["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Fg["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Fg["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Fg["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Fg["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Fg["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${Fg.columnHeader}`]:t.columnHeader},{[`& .${Fg.headerFilterRow}`]:t.headerFilterRow},{[`& .${Fg.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Fg.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Fg.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Fg["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Fg["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Fg.columnSeparator}`]:t.columnSeparator},{[`& .${Fg.filterIcon}`]:t.filterIcon},{[`& .${Fg.iconSeparator}`]:t.iconSeparator},{[`& .${Fg.menuIcon}`]:t.menuIcon},{[`& .${Fg.menuIconButton}`]:t.menuIconButton},{[`& .${Fg.menuOpen}`]:t.menuOpen},{[`& .${Fg.menuList}`]:t.menuList},{[`& .${Fg["row--editable"]}`]:t["row--editable"]},{[`& .${Fg["row--editing"]}`]:t["row--editing"]},{[`& .${Fg["row--dragging"]}`]:t["row--dragging"]},{[`& .${Fg.row}`]:t.row},{[`& .${Fg.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Fg.rowReorderCell}`]:t.rowReorderCell},{[`& .${Fg["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Fg.sortIcon}`]:t.sortIcon},{[`& .${Fg.withBorderColor}`]:t.withBorderColor},{[`& .${Fg.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Fg.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Fg.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Fg["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((e=>{let{theme:t}=e;const n=function(e){return e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?Eg(Mg(e.palette.divider,1),.88):Tg(Mg(e.palette.divider,1),.68)}(t),r=t.shape.borderRadius;return up({"--unstable_DataGrid-radius":"number"==typeof r?`${r}px`:r,"--unstable_DataGrid-headWeight":t.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":t.vars?`rgba(${t.vars.palette.background.defaultChannel} / ${t.vars.palette.action.disabledOpacity})`:Mg(t.palette.background.default,t.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:n,borderRadius:"var(--unstable_DataGrid-radius)",color:(t.vars||t).palette.text.primary},t.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${Fg.autoHeight}`]:{height:"auto",[`& .${Fg["row--lastVisible"]} .${Fg.cell}`]:{borderBottomColor:"transparent"}},[`&.${Fg.autosizing}`]:{[`& .${Fg.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${Fg.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${Fg["virtualScrollerContent--overflowed"]} .${Fg["row--lastVisible"]} .${Fg.cell}`]:{borderBottomColor:"transparent"},[`& .${Fg.columnHeader}, & .${Fg.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Fg.columnHeader}:focus-within, & .${Fg.cell}:focus-within`]:{outline:`solid ${t.vars?`rgba(${t.vars.palette.primary.mainChannel} / 0.5)`:Mg(t.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Fg.columnHeader}:focus, & .${Fg.cell}:focus`]:{outline:`solid ${t.palette.primary.main} 1px`},[`& .${Fg.columnHeaderCheckbox}, & .${Fg.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Fg.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Fg["columnHeader--sorted"]} .${Fg.iconButtonContainer}, & .${Fg["columnHeader--filtered"]} .${Fg.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Fg.columnHeader}:not(.${Fg["columnHeader--sorted"]}) .${Fg.sortIcon}`]:{opacity:0,transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.shorter})},[`& .${Fg.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${Fg.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Fg["columnHeader--filledGroup"]} .${Fg.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Fg["columnHeader--filledGroup"]}.${Fg["columnHeader--showColumnBorder"]} .${Fg.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Fg["columnHeader--filledGroup"]}.${Fg["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Fg.headerFilterRow}`]:{borderTop:`1px solid ${n}`},[`& .${Fg.sortIcon}, & .${Fg.filterIcon}`]:{fontSize:"inherit"},[`& .${Fg["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Fg["columnHeader--alignCenter"]} .${Fg.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Fg["columnHeader--alignRight"]} .${Fg.columnHeaderDraggableContainer}, & .${Fg["columnHeader--alignRight"]} .${Fg.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Fg["columnHeader--alignCenter"]} .${Fg.menuIcon}, & .${Fg["columnHeader--alignRight"]} .${Fg.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Fg["columnHeader--alignRight"]} .${Fg.menuIcon}, & .${Fg["columnHeader--alignRight"]} .${Fg.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Fg["columnHeader--moving"]}`]:{backgroundColor:(t.vars||t).palette.action.hover},[`& .${Fg.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:n},"@media (hover: hover)":{[`& .${Fg.columnHeaders}:hover`]:XC,[`& .${Fg.columnHeader}:hover`]:JC,[`& .${Fg.columnHeader}:not(.${Fg["columnHeader--sorted"]}):hover .${Fg.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${Fg.columnHeaders}`]:XC,[`& .${Fg.columnHeader}`]:JC},[`& .${Fg["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Fg["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Fg["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(t.vars||t).palette.text.primary,"@media (hover: none)":{color:n}},[`&.${Fg["columnSeparator--resizing"]}`]:{color:(t.vars||t).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Fg.iconSeparator}`]:{color:"inherit"},[`& .${Fg.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${Fg.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Fg.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(\n                ${t.vars.palette.action.selectedOpacity} + \n                ${t.vars.palette.action.hoverOpacity}\n              ))`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity)}}}},[`& .${Fg.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity+t.palette.action.hoverOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity)}}}},[`&.${Fg["root--disableUserSelection"]} .${Fg.cell}`]:{userSelect:"none"},[`& .${Fg.row}:not(.${Fg["row--dynamicHeight"]}) > .${Fg.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Fg.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Fg.cell}.${Fg["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Fg.cell}.${Fg["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:t.shadows[2],backgroundColor:(t.vars||t).palette.background.paper,"&:focus-within":{outline:`solid ${(t.vars||t).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Fg["row--editing"]}`]:{boxShadow:t.shadows[2]},[`& .${Fg["row--editing"]} .${Fg.cell}`]:{boxShadow:t.shadows[0],backgroundColor:(t.vars||t).palette.background.paper},[`& .${Fg.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Fg.booleanCell}[data-value="true"]`]:{color:(t.vars||t).palette.text.secondary},[`& .${Fg.booleanCell}[data-value="false"]`]:{color:(t.vars||t).palette.text.disabled},[`& .${Fg.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:t.spacing(1)},[`& .${Fg.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(t.vars||t).palette.action.disabledOpacity},[`& .${Fg["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Fg.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${Fg.withBorderColor}`]:{borderColor:n},[`& .${Fg["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Fg["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Fg["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Fg["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Fg["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Fg.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Fg.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Fg["columnHeader--dragging"]}, & .${Fg["row--dragging"]}`]:{background:(t.vars||t).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(t.vars||t).palette.action.disabledOpacity},[`& .${Fg["row--dragging"]}`]:{background:(t.vars||t).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(t.vars||t).palette.action.disabledOpacity,[`& .${Fg.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Fg.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Fg.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:t.spacing(2)},[`& .${Fg.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Fg.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:t.spacing(2)}})})),eS=["children","className"],tS=r.forwardRef((function(e,t){var n;const i=Bg(),{children:o,className:a}=e,s=Iv(e,eS),l=Nf(),c=Yf(l,av),u=r.useRef(null),d=Fp(u,t),p=null!=(n=i.experimentalFeatures)&&n.ariaV7?null:My,h="function"==typeof p?p():null,f=up({},i,{density:c}),m=(e=>{const{autoHeight:t,density:n,classes:r}=e;return Bp({root:["root",t&&"autoHeight",`root--density${Mp(n)}`,"withBorderColor"]},Ng,r)})(f);l.current.register("public",{rootElementRef:u});const[g,y]=r.useState(!1);return Lp((()=>{y(!0)}),[]),g?ih(QC,up({ref:d,className:ug(a,m.root),ownerState:f},h,s,{children:o})):null})),nS=["className"],rS=_g("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),iS=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,nS),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["footerContainer","withBorderColor"]},Ng,t)})(i);return ih(rS,up({ref:t,className:ug(o.root,n),ownerState:i},r))})),oS=["className"],aS=_g("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),sS=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,oS),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["overlay"]},Ng,t)})(i);return ih(aS,up({ref:t,className:ug(o.root,n),ownerState:i},r))})),lS=["className","children"],cS=_g("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",flexWrap:"wrap",gap:t.spacing(1),padding:t.spacing(.5,.5,0)}})),uS=r.forwardRef((function(e,t){const{className:n,children:r}=e,i=Iv(e,lS),o=Bg(),a=(e=>{const{classes:t}=e;return Bp({root:["toolbarContainer"]},Ng,t)})(o);return r?ih(cS,up({ref:t,className:ug(n,a.root),ownerState:o},i,{children:r})):null}));function dS(e){return rf("MuiBadge",e)}const pS=of("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),hS=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],fS=sx("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),mS=sx("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${xh(n.anchorOrigin.vertical)}${xh(n.anchorOrigin.horizontal)}${xh(n.overlap)}`],"default"!==n.color&&t[`color${xh(n.color)}`],n.invisible&&t.invisible]}})((e=>{let{theme:t,ownerState:n}=e;return mb({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),gS=r.forwardRef((function(e,t){var n,r,i,o,a,s;const l=lx({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:h={},children:f,overlap:m="rectangular",color:g="default",invisible:y=!1,max:v=99,badgeContent:b,slots:_,slotProps:w,showZero:x=!1,variant:k="standard"}=l,C=fb(l,hS),{badgeContent:S,invisible:M,max:T,displayValue:E}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=zp({badgeContent:t,max:r});let a=n;!1===n&&0===t&&!i&&(a=!0);const{badgeContent:s,max:l=r}=a?o:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:v,invisible:y,badgeContent:b,showZero:x}),P=Wh({anchorOrigin:c,color:g,overlap:m,variant:k,badgeContent:b}),I=M||null==S&&"dot"!==k,{color:O=g,overlap:L=m,anchorOrigin:R=c,variant:j=k}=I?P:l,D="dot"!==j?E:void 0,A=mb({},l,{badgeContent:S,invisible:I,max:T,displayValue:D,showZero:x,anchorOrigin:R,color:O,overlap:L,variant:j}),N=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e;return Bp({root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${xh(n.vertical)}${xh(n.horizontal)}`,`anchorOrigin${xh(n.vertical)}${xh(n.horizontal)}${xh(i)}`,`overlap${xh(i)}`,"default"!==t&&`color${xh(t)}`]},dS,a)})(A),F=null!=(n=null!=(r=null==_?void 0:_.root)?r:p.Root)?n:fS,z=null!=(i=null!=(o=null==_?void 0:_.badge)?o:p.Badge)?i:mS,B=null!=(a=null==w?void 0:w.root)?a:h.root,U=null!=(s=null==w?void 0:w.badge)?s:h.badge,$=Tb({elementType:F,externalSlotProps:B,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:yb(null==B?void 0:B.className,N.root,u)}),V=Tb({elementType:z,externalSlotProps:U,ownerState:A,className:yb(N.badge,null==U?void 0:U.className)});return oh(F,mb({},$,{children:[f,ih(z,mb({},V,{children:D}))]}))})),yS=gS,vS=["className"],bS=_g("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),_S=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,vS),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["iconButtonContainer"]},Ng,t)})(i);return ih(bS,up({ref:t,className:ug(o.root,n),ownerState:i},r))}));function wS(e){var t;const{direction:n,index:r,sortingOrder:i}=e,o=pv(),a=Bg(),s=(e=>{const{classes:t}=e;return Bp({icon:["sortIcon"]},Ng,t)})(up({},e,{classes:a.classes})),l=function(e,t,n,r){let i;const o={};return"asc"===t?i=e.columnSortedAscendingIcon:"desc"===t?i=e.columnSortedDescendingIcon:(i=e.columnUnsortedIcon,o.sortingOrder=r),i?ih(i,up({fontSize:"small",className:n},o)):null}(a.slots,n,s.icon,i);if(!l)return null;const c=ih(a.slots.baseIconButton,up({tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},null==(t=a.slotProps)?void 0:t.baseIconButton,{children:l}));return oh(_S,{children:[null!=r&&ih(yS,{badgeContent:r,color:"default",children:c}),null==r&&c]})}const xS=r.memo(wS),kS=r.memo((e=>{var t,n;const{colDef:i,open:o,columnMenuId:a,columnMenuButtonId:s,iconButtonRef:l}=e,c=pv(),u=Bg(),d=(e=>{const{classes:t,open:n}=e;return Bp({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Ng,t)})(up({},e,{classes:u.classes})),p=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c.current.toggleColumnMenu(i.field)}),[c,i.field]);return ih("div",{className:d.root,children:ih(u.slots.baseTooltip,up({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},null==(t=u.slotProps)?void 0:t.baseTooltip,{children:ih(u.slots.baseIconButton,up({ref:l,tabIndex:-1,className:d.button,"aria-label":c.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?a:void 0,id:s},null==(n=u.slotProps)?void 0:n.baseIconButton,{children:ih(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})}));function CS(e){let{columnMenuId:t,columnMenuButtonId:n,ContentComponent:r,contentComponentProps:i,field:o,open:a,target:s,onExited:l}=e;const c=pv(),u=c.current.getColumn(o),d=Np((e=>{e&&(e.stopPropagation(),null!=s&&s.contains(e.target))||c.current.hideColumnMenu()}));return s&&u?ih(Bk,{placement:"bottom-"+("right"===u.align?"start":"end"),open:a,target:s,onClose:d,onExited:l,children:ih(r,up({colDef:u,hideMenu:d,open:a,id:t,labelledby:n},i))}):null}const SS=["className"],MS=_g("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),TS=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,SS),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["columnHeaderTitle"]},Ng,t)})(i);return ih(MS,up({ref:t,className:ug(o.root,n),ownerState:i},r))}));function ES(e){var t;const{label:n,description:i}=e,o=Bg(),a=r.useRef(null),[s,l]=r.useState(""),c=r.useCallback((()=>{if(!i&&null!=a&&a.current){const e=function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(a.current);l(e?n:"")}}),[i,n]);return ih(o.slots.baseTooltip,up({title:i||s},null==(t=o.slotProps)?void 0:t.baseTooltip,{children:ih(TS,{onMouseOver:c,ref:a,children:n})}))}const PS=["resizable","resizing","height","side"];var IS=function(e){return e.Left="left",e.Right="right",e}(IS||{});function OS(e){const{height:t,side:n=IS.Right}=e,i=Iv(e,PS),o=Bg(),a=(e=>{const{resizable:t,resizing:n,classes:r,side:i}=e;return Bp({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",i&&`columnSeparator--side${Mp(i)}`],icon:["iconSeparator"]},Ng,r)})(up({},e,{side:n,classes:o.classes})),s=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return ih("div",up({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},i,{onClick:s,children:ih(o.slots.columnResizeIcon,{className:a.icon})}))}const LS=r.memo(OS),RS=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],jS=r.forwardRef((function(e,t){const{classes:n,columnMenuOpen:i,colIndex:o,height:a,isResizing:s,sortDirection:l,hasFocus:c,tabIndex:u,separatorSide:d,isDraggable:p,headerComponent:h,description:f,width:m,columnMenuIconButton:g=null,columnMenu:y=null,columnTitleIconButtons:v=null,headerClassName:b,label:_,resizable:w,draggableContainerProps:x,columnHeaderSeparatorProps:k}=e,C=Iv(e,RS),S=Nf(),M=Bg(),T=r.useRef(null),[E,P]=r.useState(i),I=Fp(T,t);let O="none";return null!=l&&(O="asc"===l?"ascending":"descending"),r.useEffect((()=>{E||P(i)}),[E,i]),r.useLayoutEffect((()=>{const e=S.current.state.columnMenu;if(c&&!e.open){const e=T.current.querySelector('[tabindex="0"]')||T.current;null==e||e.focus(),S.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[S,c]),oh("div",up({ref:I,className:ug(n.root,b),style:{height:a,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:u,"aria-colindex":o+1,"aria-sort":O,"aria-label":null==h?_:void 0},C,{children:[oh("div",up({className:n.draggableContainer,draggable:p,role:"presentation"},x,{children:[oh("div",{className:n.titleContainer,role:"presentation",children:[ih("div",{className:n.titleContainerContent,children:void 0!==h?h:ih(ES,{label:_,description:f,columnWidth:m})}),v]}),g]})),ih(LS,up({resizable:!M.disableColumnResize&&!!w,resizing:s,height:a,side:d},k)),y]}))}));function DS(e){var t,n,i,o;const{colDef:a,columnMenuOpen:s,colIndex:l,headerHeight:c,isResizing:u,sortDirection:d,sortIndex:p,filterItemsCounter:h,hasFocus:f,tabIndex:m,disableReorder:g,separatorSide:y}=e,v=Nf(),b=Bg(),_=r.useRef(null),w=Dp(),x=Dp(),k=r.useRef(null),[C,S]=r.useState(s),M=r.useMemo((()=>!b.disableColumnReorder&&!g&&!a.disableReorder),[b.disableColumnReorder,g,a.disableReorder]);let T;a.renderHeader&&(T=a.renderHeader(v.current.getColumnHeaderParams(a.field)));const E=(e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:i,showRightBorder:o,filterItemsCounter:a}=e,s=null!=i,l=null!=a&&a>0,c="number"===t.type;return Bp({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",s&&"columnHeader--sorted",l&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",o&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ng,n)})(up({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder})),P=r.useCallback((e=>t=>{Hv(t)||v.current.publishEvent(e,v.current.getColumnHeaderParams(a.field),t)}),[v,a.field]),I=r.useMemo((()=>({onClick:P("columnHeaderClick"),onDoubleClick:P("columnHeaderDoubleClick"),onMouseOver:P("columnHeaderOver"),onMouseOut:P("columnHeaderOut"),onMouseEnter:P("columnHeaderEnter"),onMouseLeave:P("columnHeaderLeave"),onKeyDown:P("columnHeaderKeyDown"),onFocus:P("columnHeaderFocus"),onBlur:P("columnHeaderBlur")})),[P]),O=r.useMemo((()=>M?{onDragStart:P("columnHeaderDragStart"),onDragEnter:P("columnHeaderDragEnter"),onDragOver:P("columnHeaderDragOver"),onDragEnd:P("columnHeaderDragEnd")}:{}),[M,P]),L=r.useMemo((()=>({onMouseDown:P("columnSeparatorMouseDown"),onDoubleClick:P("columnSeparatorDoubleClick")})),[P]);r.useEffect((()=>{C||S(s)}),[C,s]);const R=r.useCallback((()=>{S(!1)}),[]),j=!b.disableColumnMenu&&!a.disableColumnMenu&&ih(kS,{colDef:a,columnMenuId:w,columnMenuButtonId:x,open:C,iconButtonRef:k}),D=ih(CS,{columnMenuId:w,columnMenuButtonId:x,field:a.field,open:s,target:k.current,ContentComponent:b.slots.columnMenu,contentComponentProps:null==(t=b.slotProps)?void 0:t.columnMenu,onExited:R}),A=null!=(n=a.sortingOrder)?n:b.sortingOrder,N=oh(r.Fragment,{children:[!b.disableColumnFilter&&ih(b.slots.columnHeaderFilterIconButton,up({field:a.field,counter:h},null==(i=b.slotProps)?void 0:i.columnHeaderFilterIconButton)),a.sortable&&!a.hideSortIcons&&ih(xS,{direction:d,index:p,sortingOrder:A})]});r.useLayoutEffect((()=>{const e=v.current.state.columnMenu;if(f&&!e.open){const e=_.current.querySelector('[tabindex="0"]')||_.current;null==e||e.focus(),v.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[v,f]);const F="function"==typeof a.headerClassName?a.headerClassName({field:a.field,colDef:a}):a.headerClassName,z=null!=(o=a.headerName)?o:a.field;return ih(jS,up({ref:_,classes:E,columnMenuOpen:s,colIndex:l,height:c,isResizing:u,sortDirection:d,hasFocus:f,tabIndex:m,separatorSide:y,isDraggable:M,headerComponent:T,description:a.description,elementId:a.field,width:a.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:N,headerClassName:F,label:z,resizable:!b.disableColumnResize&&!!a.resizable,"data-field":a.field,columnMenu:D,draggableContainerProps:O,columnHeaderSeparatorProps:L},I))}const AS=()=>({items:[],logicOperator:Nv.And,quickFilterValues:[],quickFilterLogicOperator:Nv.And});class NS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class FS{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}var zS=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(zS||{});class BS{}function US(e){let t=0;return function(n,i,o,a){null===e.registry&&(e.registry=typeof FinalizationRegistry<"u"?new FS:new NS);const[s]=r.useState(new BS),l=r.useRef(null),c=r.useRef();c.current=o;const u=r.useRef(null);if(!l.current&&c.current){const r=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=c.current)||r.call(c,e,t,n))};l.current=n.current.subscribeEvent(i,r,a),t+=1,u.current={cleanupToken:t},e.registry.register(s,(()=>{var e;null==(e=l.current)||e.call(l),l.current=null,u.current=null}),u.current)}else!c.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));r.useEffect((()=>{if(!l.current&&c.current){const e=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=c.current)||r.call(c,e,t,n))};l.current=n.current.subscribeEvent(i,e,a)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var e;null==(e=l.current)||e.call(l),l.current=null}}),[n,i,a])}}const $S={registry:null},VS=US($S),qS={isFirst:!0};function ZS(e,t,n){VS(e,t,n,qS)}function HS(e,t){const n=r.useRef(null);if(n.current)return n.current;const i=e.current.getLogger(t);return n.current=i,i}function GS(e){return"function"==typeof e}function WS(e){return"object"==typeof e&&null!==e}function YS(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const KS=(e,t,n)=>Math.max(t,Math.min(n,e));function XS(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!XS(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const r=n[e];if(!XS(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let i=0;i<r;i+=1){const r=n[i];if(!XS(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function JS(e,t,n){const r=function(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}}(e);return()=>t+(n-t)*r()}function QS(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const eM=(e,t,n,i,o)=>{const a=HS(e,"useNativeEventListener"),[s,l]=r.useState(!1),c=r.useRef(i),u=r.useCallback((e=>c.current&&c.current(e)),[]);r.useEffect((()=>{c.current=i}),[i]),r.useEffect((()=>{let r;if(r=GS(t)?t():t&&t.current?t.current:null,r&&n&&!s){a.debug(`Binding native ${n} event`),r.addEventListener(n,u,o);const t=r;l(!0);const i=()=>{a.debug(`Clearing native ${n} event`),t.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",i)}}),[t,u,n,s,a,o,e])},tM=e=>{const t=r.useRef(!0);t.current&&(t.current=!1,e())},nM=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,rM=($f(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),e=>({page:0,pageSize:e?0:100})),iM=(e,t)=>{if(t===zS.DataGrid&&e>100)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"))},oM=e=>e.pagination,aM=Yg(oM,(e=>e.paginationModel)),sM=Yg(aM,(e=>e.page)),lM=Yg(aM,(e=>e.pageSize)),cM=Yg(aM,Hy,((e,t)=>nM(t,e.pageSize))),uM=Kg(aM,by,xy,By,qy,((e,t,n,r,i)=>{const o=i.length,a=Math.min(e.pageSize*e.page,o-1),s=Math.min(a+e.pageSize-1,o-1);if(-1===a||-1===s)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=i[a],c=s-a+1,u=r.findIndex((e=>e.id===l.id));let d=u,p=0;for(;d<r.length&&p<=c;){var h;const e=null==(h=t[r[d].id])?void 0:h.depth;void 0===e?d+=1:((p<c||e>0)&&(d+=1),0===e&&(p+=1))}return{firstRowIndex:u,lastRowIndex:d-1}})),dM=Kg(By,uM,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),pM=Kg(Uy,uM,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),hM=e=>e.preferencePanel;var fM=function(e){return e.filters="filters",e.columns="columns",e}(fM||{});const mM=e=>e.rowsMeta,gM=e=>e.rowSelection,yM=Yg(gM,(e=>e.length)),vM=Kg(gM,yy,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),bM=Kg(gM,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),_M=$f(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),wM=(e,t)=>t&&e.length>1?(_M(),[e[0]]):e,xM=(e,t)=>n=>up({},n,{sorting:up({},n.sorting,{sortModel:wM(e,t)})}),kM=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},CM=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,SM=new Intl.Collator,MM=(e,t)=>{const n=CM(e,t);return null!==n?n:"string"==typeof e?SM.compare(e.toString(),t.toString()):e-t},TM=(e,t)=>{const n=CM(e,t);return null!==n?n:Number(e)-Number(t)},EM=(e,t)=>{const n=CM(e,t);return null!==n?n:e>t?1:e<t?-1:0},PM=e=>e.headerFiltering,IM=Yg(PM,(e=>e.editing)),OM=Yg(PM,(e=>e.menuOpen)),LM=(e,t)=>up({},e,{virtualization:{enabled:!t.disableVirtualization,enabledForColumns:!0}});function RM(e,t){const n=t=>{e.current.setState((e=>up({},e,{virtualization:up({},e.virtualization,{enabled:t})})))};Gv(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:t=>{e.current.setState((e=>up({},e,{virtualization:up({},e.virtualization,{enabledForColumns:t})})))}},"public"),r.useEffect((()=>{n(!t.disableVirtualization)}),[t.disableVirtualization])}const jM=e=>e.virtualization,DM=Yg(jM,(e=>e.enabled)),AM=Yg(jM,(e=>e.enabledForColumns));function NM(e){var t,n;const{counter:i,field:o,onClick:a}=e,s=pv(),l=Bg(),c=(e=>{const{classes:t}=e;return Bp({icon:["filterIcon"]},Ng,t)})(up({},e,{classes:l.classes})),u=Yf(s,hM),d=Dp(),p=Dp(),h=r.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=hM(s.current.state);t&&n===fM.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,p,d),a&&a(s.current.getColumnHeaderParams(o),e)}),[s,o,a,p,d]);if(!i)return null;const f=u.open&&u.labelId===d,m=ih(l.slots.baseIconButton,up({id:d,onClick:h,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?p:void 0},null==(t=l.slotProps)?void 0:t.baseIconButton,{children:ih(l.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return ih(l.slots.baseTooltip,up({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(i),enterDelay:1e3},null==(n=l.slotProps)?void 0:n.baseTooltip,{children:oh(_S,{children:[i>1&&ih(yS,{badgeContent:i,color:"default",children:m}),1===i&&m]})}))}const FM=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],zM=r.forwardRef((function(e,t){var n;const{field:i,id:o,value:a,rowNode:s,hasFocus:l,tabIndex:c}=e,u=Iv(e,FM),d=pv(),p=Bg(),h=(e=>{const{classes:t}=e;return Bp({root:["checkboxInput"]},Ng,t)})({classes:p.classes}),f=r.useRef(null),m=r.useRef(null),g=Fp(f,t),y=d.current.getCellElement(o,i);r.useLayoutEffect((()=>{0===c&&y&&(y.tabIndex=-1)}),[y,c]),r.useEffect((()=>{if(l){var e;const t=null==(e=f.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else m.current&&m.current.stop({})}),[l]);const v=r.useCallback((e=>{jx(e.key)&&e.stopPropagation()}),[]);if("footer"===s.type||"pinnedRow"===s.type)return null;const b=d.current.isRowSelectable(o),_=d.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return ih(p.slots.baseCheckbox,up({ref:g,tabIndex:c,checked:a,onChange:e=>{const t={value:e.target.checked,id:o};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:h.root,inputProps:{"aria-label":_},onKeyDown:v,disabled:!b,touchRippleRef:m},null==(n=p.slotProps)?void 0:n.baseCheckbox,u))})),BM=zM,UM=["field","colDef"],$M=r.forwardRef((function(e,t){var n;const i=Iv(e,UM),[,o]=r.useState(!1),a=pv(),s=Bg(),l=(e=>{const{classes:t}=e;return Bp({root:["checkboxInput"]},Ng,t)})({classes:s.classes}),c=Yf(a,nv),u=Yf(a,gM),d=Yf(a,Uy),p=Yf(a,pM),h=r.useMemo((()=>"function"!=typeof s.isRowSelectable?u:u.filter((e=>!!a.current.getRow(e)&&s.isRowSelectable(a.current.getRowParams(e))))),[a,s.isRowSelectable,u]),f=r.useMemo((()=>(s.pagination&&s.checkboxSelectionVisibleOnly?p:d).reduce(((e,t)=>(e[t]=!0,e)),{})),[s.pagination,s.checkboxSelectionVisibleOnly,p,d]),m=r.useMemo((()=>h.filter((e=>f[e])).length),[h,f]),g=m>0&&m<Object.keys(f).length,y=m>0,v=null!==c&&c.field===e.field?0:-1;r.useLayoutEffect((()=>{const t=a.current.getColumnHeaderElement(e.field);0===v&&t&&(t.tabIndex=-1)}),[v,a,e.field]);const b=r.useCallback((e=>{" "===e.key&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!y})}),[a,y]),_=r.useCallback((()=>{o((e=>!e))}),[]);r.useEffect((()=>a.current.subscribeEvent("rowSelectionChange",_)),[a,_]);const w=a.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return ih(s.slots.baseCheckbox,up({ref:t,indeterminate:g,checked:y,onChange:e=>{const t={value:e.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",t)},className:l.root,inputProps:{"aria-label":w},tabIndex:v,onKeyDown:b},null==(n=s.slotProps)?void 0:n.baseCheckbox,i))}));function VM(e){return rf("MuiSvgIcon",e)}of("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qM=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ZM=sx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${xh(n.color)}`],t[`fontSize${xh(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,20))||"1.25rem",medium:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,24))||"1.5rem",large:(null==(d=t.typography)||null==(p=d.pxToRem)?void 0:p.call(d,35))||"2.1875rem"}[n.fontSize],color:null!=(h=null==(f=(t.vars||t).palette)||null==(m=f[n.color])?void 0:m.main)?h:{action:null==(g=(t.vars||t).palette)||null==(y=g.action)?void 0:y.active,disabled:null==(v=(t.vars||t).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[n.color]}})),HM=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=fb(n,qM),h=mb({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),f={};c||(f.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return Bp({root:["root","inherit"!==t&&`color${xh(t)}`,`fontSize${xh(n)}`]},VM,r)})(h);return oh(ZM,mb({as:a,className:yb(m.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},f,p,{ownerState:h,children:[r,u?ih("title",{children:u}):null]}))}));HM.muiName="SvgIcon";const GM=HM;function WM(e,t){function n(n,r){return ih(GM,mb({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=GM.muiName,r.memo(r.forwardRef(n))}const YM=WM(ih("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),KM=WM(ih("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),XM=WM(ih("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),JM=WM(ih("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),QM=WM(ih("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),eT=WM(ih("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),tT=WM(ih("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),nT=WM(ih("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),rT=WM(ih("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),iT=WM(ih("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),oT=WM(ih("path",{d:"M11 19V5h2v14z"}),"Separator"),aT=WM(ih("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),sT=WM(ih("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),lT=WM(ih("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),cT=WM(ih("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),uT=WM(ih("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dT=WM(ih("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),pT=WM(ih("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),hT=WM(ih("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),fT=WM(ih("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),mT=WM(ih("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),gT=WM(ih("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),yT=WM(ih("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),vT=WM(ih("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),bT=WM(ih("g",{children:ih("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),_T=WM(ih("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),wT=WM(ih("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),xT=WM(ih("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),kT=["hideMenu","colDef","id","labelledby","className","children","open"],CT=sx(ek)((()=>({minWidth:248}))),ST=r.forwardRef((function(e,t){const{hideMenu:n,id:i,labelledby:o,className:a,children:s,open:l}=e,c=Iv(e,kT),u=r.useCallback((e=>{Rx(e.key)&&e.preventDefault(),Nx(e.key)&&n(e)}),[n]);return ih(CT,up({id:i,ref:t,className:ug(Fg.menuList,a),"aria-labelledby":o,onKeyDown:u,autoFocus:l},c,{children:s}))})),MT=["displayOrder"];function TT(e){const{colDef:t,onClick:n}=e,i=pv(),o=Bg(),a=1===ny(i).filter((e=>!0!==e.disableColumnMenu)).length,s=r.useCallback((e=>{a||(i.current.setColumnVisibility(t.field,!1),n(e))}),[i,t.field,n,a]);return o.disableColumnSelector||!1===t.hideable?null:oh(DC,{onClick:s,disabled:a,children:[ih(bC,{children:ih(o.slots.columnMenuHideIcon,{fontSize:"small"})}),ih(IC,{children:i.current.getLocaleText("columnMenuHideColumn")})]})}function ET(e){const{onClick:t}=e,n=pv(),i=Bg(),o=r.useCallback((e=>{t(e),n.current.showPreferences(fM.columns)}),[n,t]);return i.disableColumnSelector?null:oh(DC,{onClick:o,children:[ih(bC,{children:ih(i.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),ih(IC,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function PT(e){return oh(r.Fragment,{children:[ih(TT,up({},e)),ih(ET,up({},e))]})}function IT(e){const{colDef:t,onClick:n}=e,i=pv(),o=Bg(),a=r.useCallback((e=>{n(e),i.current.showFilterPanel(t.field)}),[i,t.field,n]);return o.disableColumnFilter||!t.filterable?null:oh(DC,{onClick:a,children:[ih(bC,{children:ih(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),ih(IC,{children:i.current.getLocaleText("columnMenuFilter")})]})}function OT(e){var t;const{colDef:n,onClick:i}=e,o=pv(),a=Yf(o,Ly),s=Bg(),l=r.useMemo((()=>{if(!n)return null;const e=a.find((e=>e.field===n.field));return null==e?void 0:e.sort}),[n,a]),c=null!=(t=n.sortingOrder)?t:s.sortingOrder,u=r.useCallback((e=>{i(e);const t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,t===l?null:t)}),[o,n,i,l]);if(!n||!n.sortable||!c.some((e=>!!e)))return null;const d=e=>{const t=o.current.getLocaleText(e);return"function"==typeof t?t(n):t};return oh(r.Fragment,{children:[c.includes("asc")&&"asc"!==l?oh(DC,{onClick:u,"data-value":"asc",children:[ih(bC,{children:ih(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),ih(IC,{children:d("columnMenuSortAsc")})]}):null,c.includes("desc")&&"desc"!==l?oh(DC,{onClick:u,"data-value":"desc",children:[ih(bC,{children:ih(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),ih(IC,{children:d("columnMenuSortDesc")})]}):null,c.includes(null)&&null!=l?oh(DC,{onClick:u,children:[ih(bC,{}),ih(IC,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const LT=["defaultSlots","defaultSlotProps","slots","slotProps"],RT={columnMenuSortItem:OT,columnMenuFilterItem:IT,columnMenuColumnsItem:PT},jT={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},DT=r.forwardRef((function(e,t){const{defaultSlots:n,defaultSlotProps:i,slots:o,slotProps:a}=e,s=Iv(e,LT),l=(e=>{const t=Nf(),{defaultSlots:n,defaultSlotProps:i,slots:o={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=r.useMemo((()=>up({},n,o)),[n,o]),d=r.useMemo((()=>{if(!a||0===Object.keys(a).length)return i;const e=up({},a);return Object.entries(i).forEach((t=>{let[n,r]=t;e[n]=up({},r,a[n]||{})})),e}),[i,a]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=r.useMemo((()=>{const e=Object.keys(n);return Object.keys(o).filter((t=>!e.includes(t)))}),[o,n]);return r.useMemo((()=>{const e=Array.from(new Set([...p,...h])).filter((e=>null!=u[e])).sort(((e,t)=>{const n=d[e],r=d[t];return(Number.isFinite(null==n?void 0:n.displayOrder)?n.displayOrder:100)-(Number.isFinite(null==r?void 0:r.displayOrder)?r.displayOrder:100)}));return e.reduce(((t,n,r)=>{let i={colDef:l,onClick:s};const o=d[n];return o&&(i=up({},i,Iv(o,MT))),c&&r!==e.length-1?[...t,[u[n],i],[fC,{}]]:[...t,[u[n],i]]}),[])}),[c,l,p,s,u,d,h])})(up({},s,{defaultSlots:n,defaultSlotProps:i,slots:o,slotProps:a}));return ih(ST,up({ref:t},s,{children:l.map(((e,t)=>{let[n,r]=e;return ih(n,up({},r),t)}))}))})),AT=r.forwardRef((function(e,t){return ih(DT,up({},e,{ref:t,defaultSlots:RT,defaultSlotProps:jT}))}));function NT(e){return rf("MuiIconButton",e)}const FT=of("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),zT=["edge","children","className","color","disabled","disableFocusRipple","size"],BT=sx(lC,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${xh(n.color)}`],n.edge&&t[`edge${xh(n.edge)}`],t[`size${xh(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return mb({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&mb({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":mb({},i&&{backgroundColor:t.vars?`rgba(${i.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${FT.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),UT=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=fb(n,zT),d=mb({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e;return Bp({root:["root",n&&"disabled","default"!==r&&`color${xh(r)}`,i&&`edge${xh(i)}`,`size${xh(o)}`]},NT,t)})(d);return ih(BT,mb({className:yb(p.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:i}))}));function $T(e){return rf("PrivateSwitchBase",e)}of("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VT=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qT=sx(lC)((e=>{let{ownerState:t}=e;return mb({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),ZT=sx("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),HT=r.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:y,readOnly:v,required:b=!1,tabIndex:_,type:w,value:x}=e,k=fb(e,VT),[C,S]=Lh({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),M=Tw();let T=s;M&&typeof T>"u"&&(T=M.disabled);const E="checkbox"===w||"radio"===w,P=mb({},e,{checked:C,disabled:T,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Bp({root:["root",n&&"checked",r&&"disabled",i&&`edge${xh(i)}`],input:["input"]},$T,t)})(P);return oh(qT,mb({component:"span",className:yb(I.root,o),centerRipple:!0,focusRipple:!l,disabled:T,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),M&&M.onFocus&&M.onFocus(e)},onBlur:e=>{m&&m(e),M&&M.onBlur&&M.onBlur(e)},ownerState:P,ref:t},k,{children:[ih(ZT,mb({autoFocus:n,checked:r,defaultChecked:a,className:I.input,disabled:T,id:E?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),g&&g(e,t)},readOnly:v,ref:h,required:b,ownerState:P,tabIndex:_,type:w},"checkbox"===w&&void 0===x?{}:{value:x},p)),C?i:u]}))})),GT=HT;function WT(e){return rf("MuiSwitch",e)}const YT=of("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),KT=["className","color","edge","size","sx"],XT=sx("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${xh(n.edge)}`],t[`size${xh(n.size)}`]]}})((e=>{let{ownerState:t}=e;return mb({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${YT.thumb}`]:{width:16,height:16},[`& .${YT.switchBase}`]:{padding:4,[`&.${YT.checked}`]:{transform:"translateX(16px)"}}})})),JT=sx(GT,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${YT.input}`]:t.input},"default"!==n.color&&t[`color${xh(n.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${YT.checked}`]:{transform:"translateX(20px)"},[`&.${YT.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${YT.checked} + .${YT.track}`]:{opacity:.5},[`&.${YT.disabled} + .${YT.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${YT.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return mb({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${YT.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${YT.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${"light"===t.palette.mode?Eg(t.palette[n.color].main,.62):Tg(t.palette[n.color].main,.55)}`}},[`&.${YT.checked} + .${YT.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),QT=sx("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),eE=sx("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),tE=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s}=n,l=fb(n,KT),c=mb({},n,{color:i,edge:o,size:a}),u=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e;return mb({},t,Bp({root:["root",n&&`edge${xh(n)}`,`size${xh(r)}`],switchBase:["switchBase",`color${xh(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},WT,t))})(c),d=ih(eE,{className:u.thumb,ownerState:c});return oh(XT,{className:yb(u.root,r),sx:s,ownerState:c,children:[ih(JT,mb({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:mb({},u,{root:u.switchBase})})),ih(QT,{className:u.track,ownerState:c})]})}));function nE(e){return rf("MuiFormControl",e)}of("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],iE=sx("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return mb({},t.root,t[`margin${xh(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return mb({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),oE=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,y=fb(n,rE),v=mb({},n,{color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return Bp({root:["root","none"!==n&&`margin${xh(n)}`,r&&"fullWidth"]},nE,t)})(v),[_,w]=r.useState((()=>{let e=!1;return i&&r.Children.forEach(i,(t=>{if(!Ch(t,["Input","Select"]))return;const n=Ch(t,["Select"])?t.props.input:t;n&&function(e){return e.startAdornment}(n.props)&&(e=!0)})),e})),[x,k]=r.useState((()=>{let e=!1;return i&&r.Children.forEach(i,(t=>{!Ch(t,["Input","Select"])||dx(t.props,!0)&&(e=!0)})),e})),[C,S]=r.useState(!1);l&&C&&S(!1);const M=void 0===u||l?C:u;let T;const E=r.useMemo((()=>({adornedStart:_,setAdornedStart:w,color:a,disabled:l,error:c,filled:x,focused:M,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{S(!0)},registerEffect:T,required:f,variant:g})),[_,a,l,c,x,M,d,p,T,f,m,g]);return ih(Mw.Provider,{value:E,children:ih(iE,mb({as:s,ownerState:v,className:yb(b.root,o),ref:t},y,{children:i}))})}));function aE(e){return rf("MuiFormControlLabel",e)}const sE=of("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),lE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],cE=sx("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sE.label}`]:t.label},t.root,t[`labelPlacement${xh(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sE.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${sE.label}`]:{[`&.${sE.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),uE=r.forwardRef((function(e,t){var n;const i=lx({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:d="end",slotProps:p={}}=i,h=fb(i,lE),f=Tw();let m=l;typeof m>"u"&&typeof s.props.disabled<"u"&&(m=s.props.disabled),typeof m>"u"&&f&&(m=f.disabled);const g={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{typeof s.props[e]>"u"&&typeof i[e]<"u"&&(g[e]=i[e])}));const y=Sw({props:i,muiFormControl:f,states:["error"]}),v=mb({},i,{disabled:m,labelPlacement:d,error:y.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i}=e;return Bp({root:["root",n&&"disabled",`labelPlacement${xh(r)}`,i&&"error"],label:["label",n&&"disabled"]},aE,t)})(v),_=null!=(n=p.typography)?n:a.typography;let w=u;return null!=w&&w.type!==SC&&!c&&(w=ih(SC,mb({component:"span"},_,{className:yb(b.label,null==_?void 0:_.className),children:w}))),oh(cE,mb({className:yb(b.root,o),ownerState:v,ref:t},h,{children:[r.cloneElement(s,g),w]}))})),dE=["className"],pE=e=>{const{classes:t}=e;return Bp({root:["panelContent"]},Ng,t)},hE=_g("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function fE(e){const{className:t}=e,n=Iv(e,dE),r=Bg(),i=pE(r);return ih(hE,up({className:ug(t,i.root),ownerState:r},n))}const mE=["className"],gE=e=>{const{classes:t}=e;return Bp({root:["panelFooter"]},Ng,t)},yE=_g("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5),display:"flex",justifyContent:"space-between"}}));function vE(e){const{className:t}=e,n=Iv(e,mE),r=Bg(),i=gE(r);return ih(yE,up({className:ug(t,i.root),ownerState:r},n))}const bE=["className"],_E=e=>{const{classes:t}=e;return Bp({root:["panelHeader"]},Ng,t)},wE=_g("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((e=>{let{theme:t}=e;return{padding:t.spacing(1)}}));function xE(e){const{className:t}=e,n=Iv(e,bE),r=Bg(),i=_E(r);return ih(wE,up({className:ug(t,i.root),ownerState:r},n))}const kE=["className","slotProps"],CE=sx("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),SE=()=>!0,ME=r.forwardRef((function(e,t){const{className:n,slotProps:r={}}=e,i=Iv(e,kE),o=Bg(),a=(e=>{const{classes:t}=e;return Bp({root:["panelWrapper"]},Ng,t)})(o);return ih(Rb,up({open:!0,disableEnforceFocus:!0,isEnabled:SE},r.TrapFocus,{children:ih(CE,up({ref:t,tabIndex:-1,className:ug(n,a.root),ownerState:o},i))}))})),TE=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],EE=sx("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),PE=sx("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${YT.root}`]:{marginRight:t.spacing(.5)}}})),IE=(sx(UT)({justifyContent:"flex-end"}),new Intl.Collator),OE=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function LE(e){var t,n,i;const o=pv(),a=r.useRef(null),s=Yf(o,ey),l=Yf(o,ty),c=Bg(),[u,d]=r.useState(""),p=(e=>{const{classes:t}=e;return Bp({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ng,t)})(c),{sort:h,searchPredicate:f=OE,autoFocusSearchField:m=!0,disableHideAllButton:g=!1,disableShowAllButton:y=!1,getTogglableColumns:v}=e,b=Iv(e,TE),_=r.useMemo((()=>{switch(h){case"asc":return[...s].sort(((e,t)=>IE.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...s].sort(((e,t)=>-IE.compare(e.headerName||e.field,t.headerName||t.field)));default:return s}}),[s,h]),w=e=>{const{name:t}=e.target;o.current.setColumnVisibility(t,!1===l[t])},x=r.useCallback((e=>{const t=up({},ty(o)),n=v?v(s):null;return s.forEach((r=>{r.hideable&&(null==n||n.includes(r.field))&&(e?delete t[r.field]:t[r.field]=!1)})),o.current.setColumnVisibilityModel(t)}),[o,s,v]),k=r.useCallback((e=>{d(e.target.value)}),[]),C=r.useMemo((()=>{const e=v?v(_):null,t=e?_.filter((t=>{let{field:n}=t;return e.includes(n)})):_;return u?t.filter((e=>f(e,u.toLowerCase()))):t}),[_,u,f,v]),S=r.useRef(null);r.useEffect((()=>{m?a.current.focus():S.current&&"function"==typeof S.current.focus&&S.current.focus()}),[m]);let M=!1;const T=e=>!1===M&&!1!==e.hideable&&(M=!0,!0);return oh(ME,up({},b,{children:[ih(xE,{children:ih(c.slots.baseTextField,up({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:a,value:u,onChange:k,variant:"standard",fullWidth:!0},null==(t=c.slotProps)?void 0:t.baseTextField))}),ih(fE,{children:ih(EE,{className:p.root,ownerState:c,children:C.map((e=>{var t;return oh(PE,{className:p.columnsPanelRow,ownerState:c,children:[ih(uE,{control:ih(c.slots.baseSwitch,up({disabled:!1===e.hideable,checked:!1!==l[e.field],onClick:w,name:e.field,size:"small",inputRef:T(e)?S:void 0},null==(t=c.slotProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!c.disableColumnReorder&&false]},e.field)}))})}),y&&g?null:oh(vE,{children:[g?ih("span",{}):ih(c.slots.baseButton,up({onClick:()=>x(!1)},null==(n=c.slotProps)?void 0:n.baseButton,{disabled:g,children:o.current.getLocaleText("columnsPanelHideAllButton")})),y?null:ih(c.slots.baseButton,up({onClick:()=>x(!0)},null==(i=c.slotProps)?void 0:i.baseButton,{disabled:y,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const RE=["children","className","classes"],jE=Zp("MuiDataGrid",["panel","paper"]),DE=sx(Dk,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),AE=sx(Lk,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),NE=r.forwardRef(((e,t)=>{const{children:n,className:i}=e,o=Iv(e,RE),a=pv(),s=Bg(),l=jE,[c,u]=r.useState(!1),d=r.useCallback((()=>{a.current.hidePreferences()}),[a]),p=r.useCallback((e=>{Lx(e.key)&&a.current.hidePreferences()}),[a]),h=r.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}]),[]),[f,m]=r.useState(null);return r.useEffect((()=>{var e;const t=null==(e=a.current.rootElementRef)||null==(e=e.current)?void 0:e.querySelector(`.${Fg.columnHeaders}`);t&&m(t)}),[a]),f?ih(DE,up({ref:t,placement:"bottom-start",className:ug(i,l.panel),ownerState:s,anchorEl:f,modifiers:h},o,{children:ih(Pb,{mouseEvent:"onMouseUp",onClickAway:d,children:ih(AE,{className:l.paper,ownerState:s,elevation:8,onKeyDown:p,children:c&&n})})})):null})),FE=r.forwardRef((function(e,t){var n,r,i;const o=pv(),a=Yf(o,ey),s=Bg(),l=Yf(o,hM),c=o.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=l.openedPanelValue)?n:fM.filters);return ih(s.slots.panel,up({ref:t,as:s.slots.basePopper,open:a.length>0&&l.open,id:l.panelId,"aria-labelledby":l.labelId},null==(r=s.slotProps)?void 0:r.panel,e,null==(i=s.slotProps)?void 0:i.basePopper,{children:c}))})),zE=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],BE=["InputComponentProps"],UE=sx("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing(1)}})),$E=sx("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((e=>{let{theme:t}=e;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),VE=sx("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),qE=sx("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),ZE=sx("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),HE=sx("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),GE=e=>e.headerName||e.field,WE=new Intl.Collator,YE=r.forwardRef((function(e,t){var n,i,o,a,s,l,c,u,d,p;const{item:h,hasMultipleFilters:f,deleteFilter:m,applyFilterChanges:g,multiFilterOperator:y,showMultiFilterOperators:v,disableMultiFilterOperator:b,applyMultiFilterOperatorChanges:_,focusElementRef:w,logicOperators:x=[Nv.And,Nv.Or],columnsSort:k,filterColumns:C,deleteIconProps:S={},logicOperatorInputProps:M={},operatorInputProps:T={},columnInputProps:E={},valueInputProps:P={}}=e,I=Iv(e,zE),O=pv(),L=Yf(O,ay),R=Yf(O,Dy),j=Dp(),D=Dp(),A=Dp(),N=Dp(),F=Bg(),z=(e=>{const{classes:t}=e;return Bp({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ng,t)})(F),B=r.useRef(null),U=r.useRef(null),$=f&&x.length>0,V=(null==(n=F.slotProps)?void 0:n.baseFormControl)||{},q=null==(o=((null==(i=F.slotProps)?void 0:i.baseSelect)||{}).native)||o,Z=(null==(a=F.slotProps)?void 0:a.baseInputLabel)||{},H=(null==(s=F.slotProps)?void 0:s.baseSelectOption)||{},{InputComponentProps:G}=P,W=Iv(P,BE),Y=r.useMemo((()=>{if(void 0===C||"function"!=typeof C)return L;const e=C({field:h.field,columns:L,currentFilters:(null==R?void 0:R.items)||[]});return L.filter((t=>e.includes(t.field)))}),[C,null==R?void 0:R.items,L,h.field]),K=r.useMemo((()=>{switch(k){case"asc":return Y.sort(((e,t)=>WE.compare(GE(e),GE(t))));case"desc":return Y.sort(((e,t)=>-WE.compare(GE(e),GE(t))));default:return Y}}),[Y,k]),X=h.field?O.current.getColumn(h.field):null,J=r.useMemo((()=>{var e;return h.operator&&X?null==(e=X.filterOperators)?void 0:e.find((e=>e.value===h.operator)):null}),[h,X]),Q=r.useCallback((e=>{const t=e.target.value,n=O.current.getColumn(t);if(n.field===X.field)return;const r=n.filterOperators.find((e=>e.value===h.operator))||n.filterOperators[0],i=!r.InputComponent||r.InputComponent!==(null==J?void 0:J.InputComponent)||n.type!==X.type;g(up({},h,{field:t,operator:r.value,value:i?void 0:h.value}))}),[O,g,h,X,J]),ee=r.useCallback((e=>{const t=e.target.value,n=null==X?void 0:X.filterOperators.find((e=>e.value===t)),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==J?void 0:J.InputComponent);g(up({},h,{operator:t,value:r?void 0:h.value}))}),[g,h,X,J]),te=r.useCallback((e=>{const t=e.target.value===Nv.And.toString()?Nv.And:Nv.Or;_(t)}),[_]);return r.useImperativeHandle(w,(()=>({focus:()=>{var e;null!=J&&J.InputComponent?null==B||null==(e=B.current)||e.focus():U.current.focus()}})),[J]),oh(UE,up({ref:t,className:z.root,"data-id":h.id,ownerState:F},I,{children:[ih($E,up({variant:"standard",as:F.slots.baseFormControl},V,S,{className:ug(z.deleteIcon,V.className,S.className),ownerState:F,children:ih(F.slots.baseIconButton,up({"aria-label":O.current.getLocaleText("filterPanelDeleteIconLabel"),title:O.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{F.disableMultipleColumnsFiltering?void 0===h.value?m(h):g(up({},h,{value:void 0})):m(h)},size:"small"},null==(l=F.slotProps)?void 0:l.baseIconButton,{children:ih(F.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),ih(VE,up({variant:"standard",as:F.slots.baseFormControl},V,M,{sx:up({display:$?"flex":"none",visibility:v?"visible":"hidden"},V.sx||{},M.sx||{}),className:ug(z.logicOperatorInput,V.className,M.className),ownerState:F,children:ih(F.slots.baseSelect,up({inputProps:{"aria-label":O.current.getLocaleText("filterPanelLogicOperator")},value:y,onChange:te,disabled:!!b||1===x.length,native:q},null==(c=F.slotProps)?void 0:c.baseSelect,{children:x.map((e=>(0,r.createElement)(F.slots.baseSelectOption,up({},H,{native:q,key:e.toString(),value:e.toString()}),O.current.getLocaleText((e=>{switch(e){case Nv.And:return"filterPanelOperatorAnd";case Nv.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),oh(qE,up({variant:"standard",as:F.slots.baseFormControl},V,E,{className:ug(z.columnInput,V.className,E.className),ownerState:F,children:[ih(F.slots.baseInputLabel,up({},Z,{htmlFor:j,id:D,children:O.current.getLocaleText("filterPanelColumns")})),ih(F.slots.baseSelect,up({labelId:D,id:j,label:O.current.getLocaleText("filterPanelColumns"),value:h.field||"",onChange:Q,native:q},null==(u=F.slotProps)?void 0:u.baseSelect,{children:K.map((e=>(0,r.createElement)(F.slots.baseSelectOption,up({},H,{native:q,key:e.field,value:e.field}),GE(e))))}))]})),oh(ZE,up({variant:"standard",as:F.slots.baseFormControl},V,T,{className:ug(z.operatorInput,V.className,T.className),ownerState:F,children:[ih(F.slots.baseInputLabel,up({},Z,{htmlFor:A,id:N,children:O.current.getLocaleText("filterPanelOperator")})),ih(F.slots.baseSelect,up({labelId:N,label:O.current.getLocaleText("filterPanelOperator"),id:A,value:h.operator,onChange:ee,native:q,inputRef:U},null==(d=F.slotProps)?void 0:d.baseSelect,{children:null==X||null==(p=X.filterOperators)?void 0:p.map((e=>(0,r.createElement)(F.slots.baseSelectOption,up({},H,{native:q,key:e.value,value:e.value}),e.label||O.current.getLocaleText(`filterOperator${Mp(e.value)}`))))}))]})),ih(HE,up({variant:"standard",as:F.slots.baseFormControl},V,W,{className:ug(z.valueInput,V.className,W.className),ownerState:F,children:null!=J&&J.InputComponent?ih(J.InputComponent,up({apiRef:O,item:h,applyValue:g,focusElementRef:B},J.InputComponentProps,G)):null}))]}))}));class KE{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new KE}start(e,t){this.clear(),this.currentId=setTimeout(t,e)}}function XE(){const e=zf(KE.create).current;return Uf(e.disposeEffect),e}const JE=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function QE(e){var t,n;const{item:i,applyValue:o,type:a,apiRef:s,focusElementRef:l,tabIndex:c,disabled:u,clearButton:d,InputProps:p}=e,h=Iv(e,JE),f=XE(),[m,g]=r.useState(null!=(t=i.value)?t:""),[y,v]=r.useState(!1),b=Dp(),_=Bg(),w=r.useCallback((e=>{const{value:t}=e.target;g(String(t)),v(!0),f.start(_.filterDebounceMs,(()=>{const e=up({},i,{value:t,fromInput:b});o(e),v(!1)}))}),[b,o,i,_.filterDebounceMs,f]);return r.useEffect((()=>{var e;i.fromInput===b&&void 0!==i.value||g(String(null!=(e=i.value)?e:""))}),[b,i]),ih(_.slots.baseTextField,up({id:b,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:w,variant:"standard",type:a||"text",InputProps:up({},y||d?{endAdornment:y?ih(_.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:u},p,{inputProps:up({tabIndex:c},null==p?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},h,null==(n=_.slotProps)?void 0:n.baseTextField))}const eP=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function tP(e){var t,n;const{item:i,applyValue:o,type:a,apiRef:s,focusElementRef:l,InputProps:c,clearButton:u,tabIndex:d,disabled:p}=e,h=Iv(e,eP),f=XE(),[m,g]=r.useState(null!=(t=i.value)?t:""),[y,v]=r.useState(!1),b=Dp(),_=Bg(),w=r.useCallback((e=>{const t=e.target.value;g(String(t)),v(!0),f.start(_.filterDebounceMs,(()=>{o(up({},i,{value:t})),v(!1)}))}),[o,i,_.filterDebounceMs,f]);return r.useEffect((()=>{var e;const t=null!=(e=i.value)?e:"";g(String(t))}),[i.value]),ih(_.slots.baseTextField,up({fullWidth:!0,id:b,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:w,variant:"standard",type:a||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:up({},y||u?{endAdornment:y?ih(_.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:p},c,{inputProps:up({max:"datetime-local"===a?"9999-12-31T23:59":"9999-12-31",tabIndex:d},null==c?void 0:c.inputProps)})},h,null==(n=_.slotProps)?void 0:n.baseTextField))}const nP=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],rP=e=>{let{column:{valueOptions:t,field:n},OptionComponent:i,getOptionLabel:o,getOptionValue:a,isSelectNative:s,baseSelectOptionProps:l}=e;return("function"==typeof t?["",...t({field:n})]:["",...t||[]]).map((e=>{const t=a(e),n=o(e);return(0,r.createElement)(i,up({},l,{native:s,key:t,value:t}),n)}))},iP=sx("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function oP(e){var t,n,i,o,a,s,l,c;const{item:u,applyValue:d,type:p,apiRef:h,focusElementRef:f,getOptionLabel:m,getOptionValue:g,placeholder:y,tabIndex:v,label:b,clearButton:_}=e,w=Iv(e,nP),[x,k]=r.useState(null!=(t=u.value)?t:""),C=Dp(),S=Dp(),M=Bg(),T=null==(n=null==(i=M.slotProps)||null==(i=i.baseSelect)?void 0:i.native)||n;let E=null;if(u.field){const e=h.current.getColumn(u.field);Fx(e)&&(E=e)}const P=g||(null==(o=E)?void 0:o.getOptionValue),I=m||(null==(a=E)?void 0:a.getOptionLabel),O=r.useMemo((()=>{if(E)return"function"==typeof E.valueOptions?E.valueOptions({field:E.field}):E.valueOptions}),[E]),L=r.useCallback((e=>{let t=e.target.value;t=zx(t,O,P),k(String(t)),d(up({},u,{value:t}))}),[O,P,d,u]);if(r.useEffect((()=>{var e;let t;if(void 0!==O){if(t=zx(u.value,O,P),t!==u.value)return void d(up({},u,{value:t}))}else t=u.value;t=null!=(e=t)?e:"",k(String(t))}),[u,O,d,P]),!Fx(E)||!Fx(E))return null;const R=null!=b?b:h.current.getLocaleText("filterPanelInputLabel");return oh(iP,{children:[oh(M.slots.baseFormControl,{children:[ih(M.slots.baseInputLabel,up({},null==(s=M.slotProps)?void 0:s.baseInputLabel,{id:S,htmlFor:C,shrink:!0,variant:"standard",children:R})),ih(M.slots.baseSelect,up({id:C,label:R,labelId:S,value:x,onChange:L,variant:"standard",type:p||"text",inputProps:{tabIndex:v,ref:f,placeholder:null!=y?y:h.current.getLocaleText("filterPanelInputPlaceholder")},native:T},w,null==(l=M.slotProps)?void 0:l.baseSelect,{children:rP({column:E,OptionComponent:M.slots.baseSelectOption,getOptionLabel:I,getOptionValue:P,isSelectNative:T,baseSelectOptionProps:null==(c=M.slotProps)?void 0:c.baseSelectOption})}))]}),_]})}const aP=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],sP=sx("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function lP(e){var t,n,i,o;const{item:a,applyValue:s,apiRef:l,focusElementRef:c,clearButton:u,tabIndex:d,label:p}=e,h=Iv(e,aP),[f,m]=r.useState(a.value||""),g=Bg(),y=Dp(),v=Dp(),b=(null==(t=g.slotProps)?void 0:t.baseSelect)||{},_=null==(n=b.native)||n,w=(null==(i=g.slotProps)?void 0:i.baseSelectOption)||{},x=r.useCallback((e=>{const t=e.target.value;m(t),s(up({},a,{value:t}))}),[s,a]);r.useEffect((()=>{m(a.value||"")}),[a.value]);const k=null!=p?p:l.current.getLocaleText("filterPanelInputLabel");return oh(sP,{children:[oh(g.slots.baseFormControl,{fullWidth:!0,children:[ih(g.slots.baseInputLabel,up({},null==(o=g.slotProps)?void 0:o.baseInputLabel,{id:y,shrink:!0,variant:"standard",children:k})),oh(g.slots.baseSelect,up({labelId:y,id:v,label:k,value:f,onChange:x,variant:"standard",native:_,displayEmpty:!0,inputProps:{ref:c,tabIndex:d}},h,b,{children:[ih(g.slots.baseSelectOption,up({},w,{native:_,value:"",children:l.current.getLocaleText("filterValueAny")})),ih(g.slots.baseSelectOption,up({},w,{native:_,value:"true",children:l.current.getLocaleText("filterValueTrue")})),ih(g.slots.baseSelectOption,up({},w,{native:_,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const cP=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],uP=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),dP=r.forwardRef((function(e,t){var n,i;const o=pv(),a=Bg(),s=Yf(o,Dy),l=Yf(o,ay),c=r.useRef(null),u=r.useRef(null),{logicOperators:d=[Nv.And,Nv.Or],columnsSort:p,filterFormProps:h,getColumnForNewFilter:f,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=e,y=Iv(e,cP),v=o.current.upsertFilterItem,b=r.useCallback((e=>{o.current.setFilterLogicOperator(e)}),[o]),_=r.useCallback((()=>{let e;if(f&&"function"==typeof f){const t=f({currentFilters:(null==s?void 0:s.items)||[],columns:l});if(null===t)return null;e=l.find((e=>{let{field:n}=e;return n===t}))}else e=l.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?uP(e):null}),[null==s?void 0:s.items,l,f]),w=r.useCallback((()=>{if(void 0===f||"function"!=typeof f)return _();const e=s.items.length?s.items:[_()].filter(Boolean),t=f({currentFilters:e,columns:l});if(null===t)return null;const n=l.find((e=>{let{field:n}=e;return n===t}));return n?uP(n):null}),[s.items,l,f,_]),x=r.useMemo((()=>s.items.length?s.items:(u.current||(u.current=_()),u.current?[u.current]:[])),[s.items,_]),k=x.length>1,C=r.useCallback((e=>{const t=1===x.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,x.length]);return r.useEffect((()=>{d.length>0&&s.logicOperator&&!d.includes(s.logicOperator)&&b(d[0])}),[d,b,s.logicOperator]),r.useEffect((()=>{x.length>0&&c.current.focus()}),[x.length]),oh(ME,up({ref:t},y,{children:[ih(fE,{children:x.map(((e,t)=>ih(YE,up({item:e,applyFilterChanges:v,deleteFilter:C,hasMultipleFilters:k,showMultiFilterOperators:t>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:b,focusElementRef:t===x.length-1?c:null,logicOperators:d,columnsSort:p},h),null==e.id?t:e.id)))}),a.disableMultipleColumnsFiltering||m&&g?null:oh(vE,{children:[m?ih("span",{}):ih(a.slots.baseButton,up({onClick:()=>{const e=w();!e||o.current.upsertFilterItems([...x,e])},startIcon:ih(a.slots.filterPanelAddIcon,{})},null==(n=a.slotProps)?void 0:n.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")})),g?null:ih(a.slots.baseButton,up({onClick:()=>{1===x.length&&void 0===x[0].value&&(o.current.deleteFilterItem(x[0]),o.current.hideFilterPanel()),o.current.setFilterModel(up({},s,{items:[]}))},startIcon:ih(a.slots.filterPanelRemoveAllIcon,{})},null==(i=a.slotProps)?void 0:i.baseButton,{children:o.current.getLocaleText("filterPanelRemoveAll")}))]})]}))}));function pP(e){return rf("MuiListSubheader",e)}of("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hP=["className","color","component","disableGutters","disableSticky","inset"],fP=sx("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${xh(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return mb({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),mP=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=fb(n,hP),u=mb({},n,{color:i,component:o,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e;return Bp({root:["root","default"!==n&&`color${xh(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]},pP,t)})(u);return ih(fP,mb({as:o,className:yb(d.root,r),ref:t,ownerState:u},c))}));mP.muiSkipListHighlight=!0;const gP=mP,yP=WM(ih("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function vP(e){return rf("MuiChip",e)}const bP=of("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_P=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],wP=sx("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${bP.avatar}`]:t.avatar},{[`& .${bP.avatar}`]:t[`avatar${xh(s)}`]},{[`& .${bP.avatar}`]:t[`avatarColor${xh(r)}`]},{[`& .${bP.icon}`]:t.icon},{[`& .${bP.icon}`]:t[`icon${xh(s)}`]},{[`& .${bP.icon}`]:t[`iconColor${xh(i)}`]},{[`& .${bP.deleteIcon}`]:t.deleteIcon},{[`& .${bP.deleteIcon}`]:t[`deleteIcon${xh(s)}`]},{[`& .${bP.deleteIcon}`]:t[`deleteIconColor${xh(r)}`]},{[`& .${bP.deleteIcon}`]:t[`deleteIcon${xh(l)}Color${xh(r)}`]},t.root,t[`size${xh(s)}`],t[`color${xh(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${xh(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${xh(r)}`],t[l],t[`${l}${xh(r)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return mb({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${bP.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${bP.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},[`& .${bP.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${bP.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${bP.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${bP.icon}`]:mb({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&mb({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),[`& .${bP.deleteIcon}`]:mb({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:Mg(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Mg(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?`rgba(${t.vars.palette[n.color].contrastTextChannel} / 0.7)`:Mg(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{[`&.${bP.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Mg(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{[`&.${bP.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return mb({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Mg(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${bP.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Mg(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{[`&:hover, &.${bP.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return mb({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${bP.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${bP.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${bP.avatar}`]:{marginLeft:4},[`& .${bP.avatarSmall}`]:{marginLeft:2},[`& .${bP.icon}`]:{marginLeft:4},[`& .${bP.iconSmall}`]:{marginLeft:2},[`& .${bP.deleteIcon}`]:{marginRight:5},[`& .${bP.deleteIconSmall}`]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:Mg(t.palette[n.color].main,.7)}`,[`&.${bP.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette[n.color].main,t.palette.action.hoverOpacity)},[`&.${bP.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:Mg(t.palette[n.color].main,t.palette.action.focusOpacity)},[`& .${bP.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:Mg(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),xP=sx("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${xh(r)}`]]}})((e=>{let{ownerState:t}=e;return mb({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function kP(e){return"Backspace"===e.key||"Delete"===e.key}const CP=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:y="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:_=!1}=n,w=fb(n,_P),x=r.useRef(null),k=jh(x,t),C=e=>{e.stopPropagation(),f&&f(e)},S=!(!1===a||!h)||a,M=S||f?lC:l||"div",T=mb({},n,{component:M,disabled:u,size:y,color:s,iconColor:r.isValidElement(d)&&d.props.color||s,onDelete:!!f,clickable:S,variant:v}),E=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e;return Bp({root:["root",l,n&&"disabled",`size${xh(r)}`,`color${xh(i)}`,s&&"clickable",s&&`clickableColor${xh(i)}`,a&&"deletable",a&&`deletableColor${xh(i)}`,`${l}${xh(i)}`],label:["label",`label${xh(r)}`],avatar:["avatar",`avatar${xh(r)}`,`avatarColor${xh(i)}`],icon:["icon",`icon${xh(r)}`,`iconColor${xh(o)}`],deleteIcon:["deleteIcon",`deleteIcon${xh(r)}`,`deleteIconColor${xh(i)}`,`deleteIcon${xh(l)}Color${xh(i)}`]},vP,t)})(T),P=M===lC?mb({component:l||"div",focusVisibleClassName:E.focusVisible},f&&{disableRipple:!0}):{};let I=null;f&&(I=c&&r.isValidElement(c)?r.cloneElement(c,{className:yb(c.props.className,E.deleteIcon),onClick:C}):ih(yP,{className:yb(E.deleteIcon),onClick:C}));let O=null;i&&r.isValidElement(i)&&(O=r.cloneElement(i,{className:yb(E.avatar,i.props.className)}));let L=null;return d&&r.isValidElement(d)&&(L=r.cloneElement(d,{className:yb(E.icon,d.props.className)})),oh(wP,mb({as:M,className:yb(E.root,o),disabled:!(!S||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&kP(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&kP(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),g&&g(e)},ref:k,tabIndex:_&&u?-1:b,ownerState:T},P,w,{children:[O||L,ih(xP,{className:yb(E.label),ownerState:T,children:p}),I]}))})),SP=CP;function MP(e){return rf("MuiInput",e)}const TP=mb({},hx,of("MuiInput",["root","underline","input"]));function EP(e){return rf("MuiOutlinedInput",e)}const PP=mb({},hx,of("MuiOutlinedInput",["root","notchedOutline","input"]));function IP(e){return rf("MuiFilledInput",e)}const OP=mb({},hx,of("MuiFilledInput",["root","underline","input"])),LP=WM(ih("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),RP=WM(ih("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jP(e){return rf("MuiAutocomplete",e)}const DP=of("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var AP,NP;const FP=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],zP=sx("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${DP.tag}`]:t.tag},{[`& .${DP.tag}`]:t[`tagSize${xh(s)}`]},{[`& .${DP.inputRoot}`]:t.inputRoot},{[`& .${DP.input}`]:t.input},{[`& .${DP.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return mb({[`&.${DP.focused} .${DP.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${DP.clearIndicator}`]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{[`& .${DP.tag}`]:mb({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${DP.inputRoot}`]:{flexWrap:"wrap",[`.${DP.hasPopupIcon}&, .${DP.hasClearIcon}&`]:{paddingRight:30},[`.${DP.hasPopupIcon}.${DP.hasClearIcon}&`]:{paddingRight:56},[`& .${DP.input}`]:{width:0,minWidth:30}},[`& .${TP.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${TP.root}.${hx.sizeSmall}`]:{[`& .${TP.input}`]:{padding:"2px 4px 3px 0"}},[`& .${PP.root}`]:{padding:9,[`.${DP.hasPopupIcon}&, .${DP.hasClearIcon}&`]:{paddingRight:39},[`.${DP.hasPopupIcon}.${DP.hasClearIcon}&`]:{paddingRight:65},[`& .${DP.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${DP.endAdornment}`]:{right:9}},[`& .${PP.root}.${hx.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${DP.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${OP.root}`]:{paddingTop:19,paddingLeft:8,[`.${DP.hasPopupIcon}&, .${DP.hasClearIcon}&`]:{paddingRight:39},[`.${DP.hasPopupIcon}.${DP.hasClearIcon}&`]:{paddingRight:65},[`& .${OP.input}`]:{padding:"7px 4px"},[`& .${DP.endAdornment}`]:{right:9}},[`& .${OP.root}.${hx.sizeSmall}`]:{paddingBottom:1,[`& .${OP.input}`]:{padding:"2.5px 4px"}},[`& .${hx.hiddenLabel}`]:{paddingTop:8},[`& .${OP.root}.${hx.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${DP.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${OP.root}.${hx.hiddenLabel}.${hx.sizeSmall}`]:{[`& .${DP.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${DP.input}`]:mb({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),BP=sx("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),UP=sx(UT,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$P=sx(UT,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return mb({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return mb({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),VP=sx(Dk,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DP.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:n}=e;return mb({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),qP=sx(Lk,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return mb({},t.typography.body1,{overflow:"auto"})})),ZP=sx("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),HP=sx("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),GP=sx("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${DP.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${DP.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${DP.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${DP.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${DP.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Mg(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),WP=sx(gP,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),YP=sx("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${DP.option}`]:{paddingLeft:24}}),KP=r.forwardRef((function(e,t){var n,i,o,a;const s=lx({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=AP||(AP=ih(LP,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b={},defaultValue:_=(s.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:x=!1,disabled:k=!1,disabledItemsFocusable:C=!1,disableListWrap:S=!1,disablePortal:M=!1,filterSelectedOptions:T=!1,forcePopupIcon:E="auto",freeSolo:P=!1,fullWidth:I=!1,getLimitTagsText:O=(e=>`+${e}`),getOptionLabel:L=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:R,handleHomeEndKeys:j=!s.freeSolo,includeInputInList:D=!1,limitTags:A=-1,ListboxComponent:N="ul",ListboxProps:F,loading:z=!1,loadingText:B="Loading\u2026",multiple:U=!1,noOptionsText:$="No options",openOnFocus:V=!1,openText:q="Open",PaperComponent:Z=Lk,PopperComponent:H=Dk,popupIcon:G=NP||(NP=ih(RP,{})),readOnly:W=!1,renderGroup:Y,renderInput:K,renderOption:X,renderTags:J,selectOnFocus:Q=!s.freeSolo,size:ee="medium",slotProps:te={}}=s,ne=fb(s,FP),{getRootProps:re,getInputProps:ie,getInputLabelProps:oe,getPopupIndicatorProps:ae,getClearProps:se,getTagProps:le,getListboxProps:ce,getOptionProps:ue,value:de,dirty:pe,expanded:he,id:fe,popupOpen:me,focused:ge,focusedTag:ye,anchorEl:ve,setAnchorEl:be,inputValue:_e,groupedOptions:we}=Cw(mb({},s,{componentName:"Autocomplete"})),xe=!w&&!k&&pe&&!W,ke=(!P||!0===E)&&!1!==E,Ce=mb({},s,{disablePortal:M,expanded:he,focused:ge,fullWidth:I,hasClearIcon:xe,hasPopupIcon:ke,inputFocused:-1===ye,popupOpen:me,size:ee}),Se=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e;return Bp({root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${xh(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},jP,t)})(Ce);let Me;if(U&&de.length>0){const e=e=>mb({className:Se.tag,disabled:k},le(e));Me=J?J(de,e,Ce):de.map(((t,n)=>ih(SP,mb({label:L(t),size:ee},e({index:n}),p))))}if(A>-1&&Array.isArray(Me)){const e=Me.length-A;!ge&&e>0&&(Me=Me.splice(0,A),Me.push(ih("span",{className:Se.tag,children:O(e)},Me.length)))}const Te=Y||(e=>oh("li",{children:[ih(WP,{className:Se.groupLabel,ownerState:Ce,component:"div",children:e.group}),ih(YP,{className:Se.groupUl,ownerState:Ce,children:e.children})]},e.key)),Ee=X||((e,t)=>ih("li",mb({},e,{children:L(t)}))),Pe=(e,t)=>{const n=ue({option:e,index:t});return Ee(mb({},n,{className:Se.option}),e,{selected:n["aria-selected"],index:t,inputValue:_e})},Ie=null!=(n=te.clearIndicator)?n:b.clearIndicator,Oe=null!=(i=te.paper)?i:b.paper,Le=null!=(o=te.popper)?o:b.popper,Re=null!=(a=te.popupIndicator)?a:b.popupIndicator;return oh(r.Fragment,{children:[ih(zP,mb({ref:t,className:yb(Se.root,h),ownerState:Ce},re(ne),{children:K({id:fe,disabled:k,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:oe(),InputProps:mb({ref:be,className:Se.inputRoot,startAdornment:Me},(xe||ke)&&{endAdornment:oh(BP,{className:Se.endAdornment,ownerState:Ce,children:[xe?ih(UP,mb({},se(),{"aria-label":y,title:y,ownerState:Ce},Ie,{className:yb(Se.clearIndicator,null==Ie?void 0:Ie.className),children:f})):null,ke?ih($P,mb({},ae(),{disabled:k,"aria-label":me?v:q,title:me?v:q,ownerState:Ce},Re,{className:yb(Se.popupIndicator,null==Re?void 0:Re.className),children:G})):null]})}),inputProps:mb({className:Se.input,disabled:k,readOnly:W},ie())})})),ve?ih(VP,mb({as:H,disablePortal:M,style:{width:ve?ve.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ve,open:me},Le,{className:yb(Se.popper,null==Le?void 0:Le.className),children:oh(qP,mb({ownerState:Ce,as:Z},Oe,{className:yb(Se.paper,null==Oe?void 0:Oe.className),children:[z&&0===we.length?ih(ZP,{className:Se.loading,ownerState:Ce,children:B}):null,0!==we.length||P||z?null:ih(HP,{className:Se.noOptions,ownerState:Ce,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:$}),we.length>0?ih(GP,mb({as:N,className:Se.listbox,ownerState:Ce},ce(),F,{children:we.map(((e,t)=>R?Te({key:e.key,group:e.group,children:e.options.map(((t,n)=>Pe(t,e.index+n)))}):Pe(e,t)))})):null]}))})):null]})})),XP=KP,JP=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function QP(e){const{item:t,applyValue:n,type:i,apiRef:o,focusElementRef:a,color:s,error:l,helperText:c,size:u,variant:d}=e,p=Iv(e,JP),h={color:s,error:l,helperText:c,size:u,variant:d},[f,m]=r.useState(t.value||[]),g=Dp(),y=Bg();r.useEffect((()=>{var e;const n=null!=(e=t.value)?e:[];m(n.map(String))}),[t.value]);const v=r.useCallback(((e,r)=>{m(r.map(String)),n(up({},t,{value:[...r]}))}),[n,t]);return ih(XP,up({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:n}=t;return null==n||""===n?[]:[n]},id:g,value:f,onChange:v,renderTags:(e,t)=>e.map(((e,n)=>ih(y.slots.baseChip,up({variant:"outlined",size:"small",label:e},t({index:n}))))),renderInput:e=>{var t;return ih(y.slots.baseTextField,up({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:up({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:i||"text"},h,null==(t=y.slotProps)?void 0:t.baseTextField))}},p))}const eI=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],tI=_w();function nI(e){var t,n;const{item:i,applyValue:o,apiRef:a,focusElementRef:s,color:l,error:c,helperText:u,size:d,variant:p="standard",getOptionLabel:h,getOptionValue:f}=e,m=Iv(e,eI),g={color:l,error:c,helperText:u,size:d,variant:p},y=Dp(),v=Bg();let b=null;if(i.field){const e=a.current.getColumn(i.field);Fx(e)&&(b=e)}const _=f||(null==(t=b)?void 0:t.getOptionValue),w=h||(null==(n=b)?void 0:n.getOptionLabel),x=r.useCallback(((e,t)=>_(e)===_(t)),[_]),k=r.useMemo((()=>{var e;return null!=(e=b)&&e.valueOptions?"function"==typeof b.valueOptions?b.valueOptions({field:b.field}):b.valueOptions:[]}),[b]),C=r.useMemo((()=>null==k?void 0:k.map(_)),[k,_]),S=r.useMemo((()=>Array.isArray(i.value)?void 0!==k?i.value.map((e=>null==C?void 0:C.findIndex((t=>t===e)))).filter((e=>e>=0)).map((e=>k[e])):i.value:[]),[i.value,k,C]);r.useEffect((()=>{(!Array.isArray(i.value)||S.length!==i.value.length)&&o(up({},i,{value:S.map(_)}))}),[i,S,o,_]);const M=r.useCallback(((e,t)=>{o(up({},i,{value:t.map(_)}))}),[o,i,_]);return ih(XP,up({multiple:!0,options:k,isOptionEqualToValue:x,filterOptions:tI,id:y,value:S,onChange:M,getOptionLabel:w,renderTags:(e,t)=>e.map(((e,n)=>ih(v.slots.baseChip,up({variant:"outlined",size:"small",label:w(e)},t({index:n}))))),renderInput:e=>{var t;return ih(v.slots.baseTextField,up({},e,{label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:up({},e.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},g,null==(t=v.slotProps)?void 0:t.baseTextField))}},m))}const rI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,a=Jf("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qm);return r.forwardRef((function(e,r){const s=ig(n),l=lg(e),{className:c,component:u="div"}=l,d=em(l,dg);return ih(a,Qf({as:u,ref:r,className:ug(c,o?o(i):i),theme:t&&s[t]||s},d))}))}({defaultTheme:rx(),defaultClassName:"MuiBox-root",generateClassName:tf.generate}),iI=["onClick"],oI=r.forwardRef((function(e,t){var n;const{onClick:r}=e,i=Iv(e,iI),o=Oh(),a=Oh(),s=pv(),l=Bg(),c=Yf(s,hM);if(l.disableColumnSelector)return null;const u=c.open&&c.panelId===a;return ih(l.slots.baseButton,up({ref:t,id:o,size:"small","aria-label":s.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?a:void 0,startIcon:ih(l.slots.columnSelectorIcon,{})},i,{onClick:e=>{c.open&&c.openedPanelValue===fM.columns?s.current.hidePreferences():s.current.showPreferences(fM.columns,a,o),null==r||r(e)}},null==(n=l.slotProps)?void 0:n.baseButton,{children:s.current.getLocaleText("toolbarColumns")}))})),aI=["onClick"],sI=r.forwardRef((function(e,t){var n;const{onClick:i}=e,o=Iv(e,aI),a=pv(),s=Bg(),l=Yf(a,av),c=Dp(),u=Dp(),[d,p]=r.useState(!1),h=r.useRef(null),f=Fp(t,h),m=[{icon:ih(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:ih(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:ih(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],g=r.useMemo((()=>{switch(l){case"compact":return ih(s.slots.densityCompactIcon,{});case"comfortable":return ih(s.slots.densityComfortableIcon,{});default:return ih(s.slots.densityStandardIcon,{})}}),[l,s]);if(s.disableDensitySelector)return null;const y=m.map(((e,t)=>oh(DC,{onClick:()=>(e=>{a.current.setDensity(e),p(!1)})(e.value),selected:e.value===l,children:[ih(bC,{children:e.icon}),e.label]},t)));return oh(r.Fragment,{children:[ih(s.slots.baseButton,up({ref:f,size:"small",startIcon:g,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?u:void 0,id:c},o,{onClick:e=>{p((e=>!e)),null==i||i(e)}},null==(n=s.slotProps)?void 0:n.baseButton,{children:a.current.getLocaleText("toolbarDensity")})),ih(Bk,{open:d,target:h.current,onClose:()=>{p(!1)},position:"bottom-start",children:ih(ek,{id:u,className:Fg.menuList,"aria-labelledby":c,onKeyDown:e=>{Rx(e.key)&&e.preventDefault(),Nx(e.key)&&p(!1)},autoFocusItem:d,children:y})})]})})),lI=["componentsProps"],cI=sx("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})((e=>{let{theme:t}=e;return{margin:t.spacing(1,1,.5),padding:t.spacing(0,1)}})),uI=r.forwardRef((function(e,t){var n,i;const{componentsProps:o={}}=e,a=Iv(e,lI),s=o.button||{},l=pv(),c=Bg(),u=Yf(l,Gy),d=Yf(l,Qg),p=Yf(l,hM),h=(e=>{const{classes:t}=e;return Bp({root:["toolbarFilterList"]},Ng,t)})(c),f=Dp(),m=Dp(),g=r.useMemo((()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(0===u.length)return l.current.getLocaleText("toolbarFiltersTooltipShow");const e=e=>d[e.field].filterOperators.find((t=>t.value===e.operator)).label||l.current.getLocaleText(`filterOperator${Mp(e.operator)}`).toString(),t=e=>{const{getValueAsString:t}=d[e.field].filterOperators.find((t=>t.value===e.operator));return t?t(e.value):e.value};return oh("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(u.length),ih(cI,{className:h.root,ownerState:c,children:u.map(((n,r)=>up({},d[n.field]&&ih("li",{children:`${d[n.field].headerName||n.field}\n                  ${e(n)}\n                  ${null!=n.value?t(n):""}`},r))))})]})}),[l,c,p.open,u,d,h]);if(c.disableColumnFilter)return null;const y=p.open&&p.panelId===m;return ih(c.slots.baseTooltip,up({title:g,enterDelay:1e3},a,null==(n=c.slotProps)?void 0:n.baseTooltip,{children:ih(c.slots.baseButton,up({ref:t,id:f,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":y?m:void 0,"aria-expanded":y,"aria-haspopup":!0,startIcon:ih(yS,{badgeContent:u.length,color:"primary",children:ih(c.slots.openFilterButtonIcon,{})})},s,{onClick:e=>{var t;const{open:n,openedPanelValue:r}=p;n&&r===fM.filters?l.current.hidePreferences():l.current.showPreferences(fM.filters,m,f),null==(t=s.onClick)||t.call(s,e)}},null==(i=c.slotProps)?void 0:i.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))})),dI=["children","onClick"],pI=r.forwardRef((function(e,t){var n;const{children:i,onClick:o}=e,a=Iv(e,dI),s=pv(),l=Bg(),c=Dp(),u=Dp(),[d,p]=r.useState(!1),h=r.useRef(null),f=Fp(t,h),m=()=>p(!1);return null==i?null:oh(r.Fragment,{children:[ih(l.slots.baseButton,up({ref:f,size:"small",startIcon:ih(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c},a,{onClick:e=>{p((e=>!e)),null==o||o(e)}},null==(n=l.slotProps)?void 0:n.baseButton,{children:s.current.getLocaleText("toolbarExport")})),ih(Bk,{open:d,target:h.current,onClose:m,position:"bottom-start",children:ih(ek,{id:u,className:Fg.menuList,"aria-labelledby":c,onKeyDown:e=>{Rx(e.key)&&e.preventDefault(),Nx(e.key)&&m()},autoFocusItem:d,children:r.Children.map(i,(e=>r.isValidElement(e)?r.cloneElement(e,{hideMenu:m}):e))})})]})})),hI=["hideMenu","options"],fI=["hideMenu","options"],mI=["csvOptions","printOptions","excelOptions"];function gI(e){const t=pv(),{hideMenu:n,options:r}=e,i=Iv(e,hI);return ih(DC,up({onClick:()=>{t.current.exportDataAsCsv(r),null==n||n()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yI(e){const t=pv(),{hideMenu:n,options:r}=e,i=Iv(e,fI);return ih(DC,up({onClick:()=>{t.current.exportDataAsPrint(r),null==n||n()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}const vI=r.forwardRef((function(e,t){const{csvOptions:n={},printOptions:i={},excelOptions:o}=e,a=Iv(e,mI),s=pv().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:o,csvOptions:n,printOptions:i}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===s.length?null:ih(pI,up({},a,{ref:t,children:s.map(((e,t)=>r.cloneElement(e.component,{key:t})))}))})),bI=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_I=sx(yx,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mx(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),mb({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${TP.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${TP.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${TP.disabled}, .${TP.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${TP.disabled}:before`]:{borderBottomStyle:"dotted"}})})),wI=sx(vx,{name:"MuiInput",slot:"Input",overridesResolver:gx})({}),xI=r.forwardRef((function(e,t){var n,r,i,o;const a=lx({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=a,g=fb(a,bI),y=(e=>{const{classes:t,disableUnderline:n}=e;return mb({},t,Bp({root:["root",!n&&"underline"],input:["input"]},MP,t))})(a),v={root:{ownerState:{disableUnderline:s}}},b=(null!=h?h:c)?ph(null!=h?h:c,v):v,_=null!=(n=null!=(r=f.root)?r:l.Root)?n:_I,w=null!=(i=null!=(o=f.input)?o:l.Input)?i:wI;return ih(wx,mb({slots:{root:_,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:y}))}));xI.muiName="Input";const kI=xI,CI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SI=sx(yx,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mx(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return mb({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},[`&.${OP.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},[`&.${OP.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${OP.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${OP.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${OP.disabled}, .${OP.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${OP.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&mb({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),MI=sx(vx,{name:"MuiFilledInput",slot:"Input",overridesResolver:gx})((e=>{let{theme:t,ownerState:n}=e;return mb({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),TI=r.forwardRef((function(e,t){var n,r,i,o;const a=lx({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=a,m=fb(a,CI),g=mb({},a,{fullWidth:c,inputComponent:u,multiline:d,type:f}),y=(e=>{const{classes:t,disableUnderline:n}=e;return mb({},t,Bp({root:["root",!n&&"underline"],input:["input"]},IP,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?ph(null!=p?p:l,v):v,_=null!=(n=null!=(r=h.root)?r:s.Root)?n:SI,w=null!=(i=null!=(o=h.input)?o:s.Input)?i:MI;return ih(wx,mb({slots:{root:_,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:f},m,{classes:y}))}));TI.muiName="Input";const EI=TI;var PI;const II=["children","classes","className","label","notched"],OI=sx("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),LI=sx("legend")((e=>{let{ownerState:t,theme:n}=e;return mb({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&mb({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));const RI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jI=sx(yx,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:mx})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return mb({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${PP.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${PP.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${PP.focused} .${PP.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${PP.error} .${PP.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${PP.disabled} .${PP.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&mb({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),DI=sx((function(e){const{className:t,label:n,notched:r}=e,i=fb(e,II),o=null!=n&&""!==n,a=mb({},e,{notched:r,withLabel:o});return ih(OI,mb({"aria-hidden":!0,className:t,ownerState:a},i,{children:ih(LI,{ownerState:a,children:o?ih("span",{children:n}):PI||(PI=ih("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),AI=sx(vx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:gx})((e=>{let{theme:t,ownerState:n}=e;return mb({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),NI=r.forwardRef((function(e,t){var n,i,o,a,s;const l=lx({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,y=fb(l,RI),v=(e=>{const{classes:t}=e;return mb({},t,Bp({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},EP,t))})(l),b=Tw(),_=Sw({props:l,muiFormControl:b,states:["required"]}),w=mb({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:b,fullWidth:u,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:g}),x=null!=(n=null!=(i=m.root)?i:c.Root)?n:jI,k=null!=(o=null!=(a=m.input)?a:c.Input)?o:AI;return ih(wx,mb({slots:{root:x,input:k},renderSuffix:e=>ih(DI,{ownerState:w,className:v.notchedOutline,label:null!=p&&""!==p&&_.required?s||(s=oh(r.Fragment,{children:[p,"\u2009","*"]})):p,notched:typeof f<"u"?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:g},y,{classes:mb({},v,{notchedOutline:null})}))}));NI.muiName="Input";const FI=NI;function zI(e){return rf("MuiFormLabel",e)}const BI=of("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),UI=["children","className","color","component","disabled","error","filled","focused","required"],$I=sx("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return mb({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return mb({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${BI.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${BI.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${BI.error}`]:{color:(t.vars||t).palette.error.main}})})),VI=sx("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${BI.error}`]:{color:(t.vars||t).palette.error.main}}})),qI=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,a=fb(n,UI),s=Sw({props:n,muiFormControl:Tw(),states:["color","required","focused","disabled","error","filled"]}),l=mb({},n,{color:s.color||"primary",component:o,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e;return Bp({root:["root",`color${xh(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]},zI,t)})(l);return oh($I,mb({as:o,ownerState:l,className:yb(c.root,i),ref:t},a,{children:[r,s.required&&oh(VI,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))}));function ZI(e){return rf("MuiInputLabel",e)}of("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const HI=["disableAnimation","margin","shrink","variant","className"],GI=sx(qI,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BI.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&mb({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&mb({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&mb({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),WI=r.forwardRef((function(e,t){const n=lx({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,a=fb(n,HI),s=Tw();let l=i;typeof l>"u"&&s&&(l=s.filled||s.focused||s.adornedStart);const c=Sw({props:n,muiFormControl:s,states:["size","variant","required"]}),u=mb({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e;return mb({},t,Bp({root:["root",n&&"formControl",!o&&"animated",i&&"shrink","small"===r&&"sizeSmall",a],asterisk:[s&&"asterisk"]},ZI,t))})(u);return ih(GI,mb({"data-shrink":l,ownerState:u,ref:t,className:yb(d.root,o)},a,{classes:d}))}));function YI(e){return rf("MuiFormHelperText",e)}const KI=of("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var XI;const JI=["children","className","component","disabled","error","filled","focused","margin","required","variant"],QI=sx("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xh(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return mb({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KI.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${KI.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),eO=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,a=fb(n,JI),s=Sw({props:n,muiFormControl:Tw(),states:["variant","size","disabled","error","filled","focused","required"]}),l=mb({},n,{component:o,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e;return Bp({root:["root",i&&"disabled",o&&"error",r&&`size${xh(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},YI,t)})(l);return ih(QI,mb({as:o,ownerState:l,className:yb(c.root,i),ref:t},a,{children:" "===r?XI||(XI=ih("span",{className:"notranslate",children:"\u200b"})):r}))})),tO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nO={entering:{opacity:1},entered:{opacity:1}},rO=r.forwardRef((function(e,t){const n=xx(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:y=i,TransitionComponent:v=pk}=e,b=fb(e,tO),_=r.useRef(null),w=jh(_,s.ref,t),x=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},k=x(p),C=x(((e,t)=>{wk(e);const r=xk({style:g,timeout:y,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),S=x(d),M=x(m),T=x((e=>{const t=xk({style:g,timeout:y,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),E=x(f);return ih(v,mb({appear:a,in:c,nodeRef:_,onEnter:C,onEntered:S,onEntering:k,onExit:T,onExited:E,onExiting:M,addEndListener:e=>{o&&o(_.current,e)},timeout:y},b,{children:(e,t)=>r.cloneElement(s,mb({style:mb({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},nO[e],g,s.props.style),ref:w},t))}))}));function iO(e){return rf("MuiBackdrop",e)}of("MuiBackdrop",["root","invisible"]);const oO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aO=sx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return mb({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),sO=r.forwardRef((function(e,t){var n,r,i;const o=lx({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=rO,transitionDuration:g}=o,y=fb(o,oO),v=mb({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Bp({root:["root",n&&"invisible"]},iO,t)})(v),_=null!=(n=h.root)?n:u.root;return ih(m,mb({in:p,timeout:g},y,{children:ih(aO,mb({"aria-hidden":!0},_,{as:null!=(r=null!=(i=f.root)?i:c.Root)?r:l,className:yb(b.root,s,null==_?void 0:_.className),ownerState:mb({},v,null==_?void 0:_.ownerState),classes:b,ref:t,children:a}))}))})),lO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],cO=sx("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return mb({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),uO=sx(sO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dO=r.forwardRef((function(e,t){var n,i,o,a,s,l;const c=lx({name:"MuiModal",props:e}),{BackdropComponent:u=uO,BackdropProps:d,classes:p,className:h,closeAfterTransition:f=!1,children:m,component:g,components:y={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:w=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:C=!1,hideBackdrop:S=!1,keepMounted:M=!1,slotProps:T,slots:E,theme:P}=c,I=fb(c,lO),[O,L]=r.useState(!0),R={closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:_,disableEscapeKeyDown:w,disablePortal:x,disableRestoreFocus:k,disableScrollLock:C,hideBackdrop:S,keepMounted:M},j=mb({},c,R,{exited:O}),D=null!=(n=null!=(i=null==E?void 0:E.root)?i:y.Root)?n:cO,A=null!=(o=null!=(a=null==E?void 0:E.backdrop)?a:y.Backdrop)?o:u,N=null!=(s=null==T?void 0:T.root)?s:v.root,F=null!=(l=null==T?void 0:T.backdrop)?l:v.backdrop;return ih(hw,mb({slots:{root:D,backdrop:A},slotProps:{root:()=>mb({},kb(N,j),!vb(D)&&{as:g,theme:P},{className:yb(h,null==N?void 0:N.className,null==p?void 0:p.root,!j.open&&j.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>mb({},d,kb(F,j),{className:yb(null==F?void 0:F.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>L(!1),onTransitionExited:()=>L(!0),ref:t},I,R,{children:m}))})),pO=dO;function hO(e){return rf("MuiPopover",e)}of("MuiPopover",["root","paper"]);const fO=["onEntering"],mO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function gO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vO(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function bO(e){return"function"==typeof e?e():e}const _O=sx(pO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wO=sx(Lk,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xO=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:h=16,open:f,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:y=Ek,transitionDuration:v="auto",TransitionProps:{onEntering:b}={}}=n,_=fb(n.TransitionProps,fO),w=fb(n,mO),x=r.useRef(),k=jh(x,m.ref),C=mb({},n,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:h,PaperProps:m,transformOrigin:g,TransitionComponent:y,transitionDuration:v,TransitionProps:_}),S=(e=>{const{classes:t}=e;return Bp({root:["root"],paper:["paper"]},hO,t)})(C),M=r.useCallback((()=>{if("anchorPosition"===l)return s;const e=bO(o),t=(e&&1===e.nodeType?e:Sh(x.current).body).getBoundingClientRect();return{top:t.top+gO(t,a.vertical),left:t.left+yO(t,a.horizontal)}}),[o,a.horizontal,a.vertical,s,l]),T=r.useCallback((e=>({vertical:gO(e,g.vertical),horizontal:yO(e,g.horizontal)})),[g.horizontal,g.vertical]),E=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===l)return{top:null,left:null,transformOrigin:vO(n)};const r=M();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Mh(bO(o)),d=u.innerHeight-h,p=u.innerWidth-h;if(i<h){const e=i-h;i-=e,n.vertical+=e}else if(s>d){const e=s-d;i-=e,n.vertical+=e}if(a<h){const e=a-h;a-=e,n.horizontal+=e}else if(c>p){const e=c-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:vO(n)}}),[o,l,M,T,h]),[P,I]=r.useState(f),O=r.useCallback((()=>{const e=x.current;if(!e)return;const t=E(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[E]);r.useEffect((()=>{f&&O()})),r.useImperativeHandle(i,(()=>f?{updatePosition:()=>{O()}}:null),[f,O]),r.useEffect((()=>{if(!f)return;const e=kh((()=>{O()})),t=Mh(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,O]);let L=v;"auto"===v&&!y.muiSupportAuto&&(L=void 0);const R=d||(o?Sh(bO(o)).body:void 0);return ih(_O,mb({BackdropProps:{invisible:!0},className:yb(S.root,u),container:R,open:f,ref:t,ownerState:C},w,{children:ih(y,mb({appear:!0,in:f,onEntering:(e,t)=>{b&&b(e,t),O()},onExited:()=>{I(!1)},timeout:L},_,{children:ih(wO,mb({elevation:p},m,{ref:k,className:yb(S.paper,m.className)},P?void 0:{style:mb({},m.style,{opacity:0})},{ownerState:C,children:c}))}))}))}));function kO(e){return rf("MuiMenu",e)}of("MuiMenu",["root","paper","list"]);const CO=["onEntering"],SO=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],MO={vertical:"top",horizontal:"right"},TO={vertical:"top",horizontal:"left"},EO=sx(xO,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PO=sx(Lk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),IO=sx(ek,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),OO=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:c,PaperProps:u={},PopoverClasses:d,transitionDuration:p="auto",TransitionProps:{onEntering:h}={},variant:f="selectedMenu"}=n,m=fb(n.TransitionProps,CO),g=fb(n,SO),y=xx(),v="rtl"===y.direction,b=mb({},n,{autoFocus:i,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:u,transitionDuration:p,TransitionProps:m,variant:f}),_=(e=>{const{classes:t}=e;return Bp({root:["root"],paper:["paper"],list:["list"]},kO,t)})(b),w=i&&!a&&c,x=r.useRef(null);let k=-1;return r.Children.map(o,((e,t)=>{!r.isValidElement(e)||e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===k)&&(k=t)})),ih(EO,mb({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?MO:TO,PaperProps:mb({as:PO},u,{classes:mb({},u.classes,{root:_.paper})}),className:_.root,open:c,ref:t,transitionDuration:p,TransitionProps:mb({onEntering:(e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,y),h&&h(e,t)}},m),ownerState:b},g,{classes:d,children:ih(IO,mb({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:x,autoFocus:i&&(-1===k||a),autoFocusItem:w,variant:f},s,{className:yb(_.list,s.className),children:o}))}))}));function LO(e){return rf("MuiNativeSelect",e)}const RO=of("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),jO=["className","disabled","IconComponent","inputRef","variant"],DO=e=>{let{ownerState:t,theme:n}=e;return mb({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":mb({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${RO.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},AO=sx("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ox,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${RO.multiple}`]:t.multiple}]}})(DO),NO=e=>{let{ownerState:t,theme:n}=e;return mb({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${RO.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},FO=sx("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xh(n.variant)}`],n.open&&t.iconOpen]}})(NO),zO=r.forwardRef((function(e,t){const{className:n,disabled:i,IconComponent:o,inputRef:a,variant:s="standard"}=e,l=fb(e,jO),c=mb({},e,{disabled:i,variant:s}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e;return Bp({select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${xh(n)}`,o&&"iconOpen",r&&"disabled"]},LO,t)})(c);return oh(r.Fragment,{children:[ih(AO,mb({ownerState:c,className:yb(u.select,n),disabled:i,ref:a||t},l)),e.multiple?null:ih(FO,{as:o,ownerState:c,className:u.icon})]})}));function BO(e){return rf("MuiSelect",e)}const UO=of("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var $O;const VO=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qO=sx("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${UO.select}`]:t.select},{[`&.${UO.select}`]:t[n.variant]},{[`&.${UO.multiple}`]:t.multiple}]}})(DO,{[`&.${UO.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZO=sx("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xh(n.variant)}`],n.open&&t.iconOpen]}})(NO),HO=sx("input",{shouldForwardProp:e=>ax(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function GO(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function WO(e){return null==e||"string"==typeof e&&!e.trim()}const YO=r.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,IconComponent:h,inputRef:f,labelId:m,MenuProps:g={},multiple:y,name:v,onBlur:b,onChange:_,onClose:w,onFocus:x,onOpen:k,open:C,readOnly:S,renderValue:M,SelectDisplayProps:T={},tabIndex:E,value:P,variant:I="standard"}=e,O=fb(e,VO),[L,R]=Lh({controlled:P,default:u,name:"Select"}),[j,D]=Lh({controlled:C,default:c,name:"Select"}),A=r.useRef(null),N=r.useRef(null),[F,z]=r.useState(null),{current:B}=r.useRef(null!=C),[U,$]=r.useState(),V=jh(t,f),q=r.useCallback((e=>{N.current=e,e&&z(e)}),[]),Z=null==F?void 0:F.parentNode;r.useImperativeHandle(V,(()=>({focus:()=>{N.current.focus()},node:A.current,value:L})),[L]),r.useEffect((()=>{c&&j&&F&&!B&&($(a?null:Z.clientWidth),N.current.focus())}),[F,a]),r.useEffect((()=>{o&&N.current.focus()}),[o]),r.useEffect((()=>{if(!m)return;const e=Sh(N.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&N.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const H=(e,t)=>{e?k&&k(t):w&&w(t),B||($(a?null:Z.clientWidth),D(e))},G=r.Children.toArray(s),W=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(R(n),_)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),_(i,e)}y||H(!1,t)}},Y=null!==F&&j;let K,X;delete O["aria-invalid"];const J=[];let Q=!1,ee=!1;(dx({value:L})||p)&&(M?K=M(L):Q=!0);const te=G.map((e=>{if(!r.isValidElement(e))return null;let t;if(y){if(!Array.isArray(L))throw new Error(gh(2));t=L.some((t=>GO(t,e.props.value))),t&&Q&&J.push(e.props.children)}else t=GO(L,e.props.value),t&&Q&&(X=e.props.children);return t&&(ee=!0),r.cloneElement(e,{"aria-selected":t?"true":"false",onClick:W(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Q&&(K=y?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):X);let ne,re=U;!a&&B&&F&&(re=Z.clientWidth),ne=typeof E<"u"?E:d?null:0;const ie=T.id||(v?`mui-component-select-${v}`:void 0),oe=mb({},e,{variant:I,value:L,open:Y}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e;return Bp({select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${xh(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},BO,t)})(oe);return oh(r.Fragment,{children:[ih(qO,mb({ref:q,tabIndex:ne,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{S||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),H(!0,e))},onMouseDown:d||S?null:e=>{0===e.button&&(e.preventDefault(),N.current.focus(),H(!0,e))},onBlur:e=>{!Y&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:v}}),b(e))},onFocus:x},T,{ownerState:oe,className:yb(T.className,ae.select,l),id:ie,children:WO(K)?$O||($O=ih("span",{className:"notranslate",children:"\u200b"})):K})),ih(HO,mb({value:Array.isArray(L)?L.join(","):L,name:v,ref:A,"aria-hidden":!0,onChange:e=>{const t=G.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=G[t];R(n.props.value),_&&_(e,n)},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:o,ownerState:oe},O)),ih(ZO,{as:h,className:ae.icon,ownerState:oe}),ih(OO,mb({id:`menu-${v||""}`,anchorEl:Z,open:Y,onClose:e=>{H(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:mb({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:mb({},g.PaperProps,{style:mb({minWidth:re},null!=g.PaperProps?g.PaperProps.style:null)}),children:te}))]})})),KO=YO;var XO,JO;const QO=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],eL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ox(e)&&"variant"!==e,slot:"Root"},tL=sx(kI,eL)(""),nL=sx(FI,eL)(""),rL=sx(EI,eL)(""),iL=r.forwardRef((function(e,t){const n=lx({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=RP,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:y=!1,native:v=!1,onClose:b,onOpen:_,open:w,renderValue:x,SelectDisplayProps:k,variant:C="outlined"}=n,S=fb(n,QO),M=v?zO:KO,T=Sw({props:n,muiFormControl:Tw(),states:["variant"]}).variant||C,E=p||{standard:XO||(XO=ih(tL,{})),outlined:ih(nL,{label:f}),filled:JO||(JO=ih(rL,{}))}[T],P=(e=>{const{classes:t}=e;return t})(mb({},n,{variant:T,classes:a})),I=jh(t,E.ref);return ih(r.Fragment,{children:r.cloneElement(E,mb({inputComponent:M,inputProps:mb({children:o,IconComponent:u,variant:T,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:_,open:w,renderValue:x,SelectDisplayProps:mb({id:d},k)},h,{classes:h?ph(P,h.classes):P},p?p.props.inputProps:{})},y&&v&&"outlined"===T?{notched:!0}:{},{ref:I,className:yb(E.props.className,s)},!p&&{variant:T},S))})}));iL.muiName="Select";const oL=iL;function aL(e){return rf("MuiTextField",e)}of("MuiTextField",["root"]);const sL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],lL={standard:kI,filled:EI,outlined:FI},cL=sx(oE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uL=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:y,inputRef:v,label:b,maxRows:_,minRows:w,multiline:x=!1,name:k,onBlur:C,onChange:S,onFocus:M,placeholder:T,required:E=!1,rows:P,select:I=!1,SelectProps:O,type:L,value:R,variant:j="outlined"}=n,D=fb(n,sL),A=mb({},n,{autoFocus:i,color:s,disabled:c,error:u,fullWidth:p,multiline:x,required:E,select:I,variant:j}),N=(e=>{const{classes:t}=e;return Bp({root:["root"]},aL,t)})(A),F={};"outlined"===j&&(m&&typeof m.shrink<"u"&&(F.notched=m.shrink),F.label=b),I&&((!O||!O.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const z=Oh(f),B=h&&z?`${z}-helper-text`:void 0,U=b&&z?`${z}-label`:void 0,$=ih(lL[j],mb({"aria-describedby":B,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:p,multiline:x,name:k,rows:P,maxRows:_,minRows:w,type:L,value:R,id:z,inputRef:v,onBlur:C,onChange:S,onFocus:M,placeholder:T,inputProps:g},F,y));return oh(cL,mb({className:yb(N.root,a),disabled:c,error:u,fullWidth:p,ref:t,required:E,color:s,variant:j,ownerState:A},D,{children:[null!=b&&""!==b&&ih(WI,mb({htmlFor:z,id:U},m,{children:b})),I?ih(oL,mb({"aria-describedby":B,id:z,labelId:U,value:R,input:$},O,{children:o})):$,h&&ih(eO,mb({id:B},d,{children:h}))]}))})),dL=uL,pL=["quickFilterParser","quickFilterFormatter","debounceMs"],hL=sx(dL,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})((e=>{let{theme:t}=e;return{width:"auto",paddingBottom:t.spacing(.5),"& input":{marginLeft:t.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n  & input[type="search"]::-webkit-search-cancel-button,\n  & input[type="search"]::-webkit-search-results-button,\n  & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}})),fL=e=>e.split(" ").filter((e=>""!==e)),mL=e=>e.join(" ");function gL(e){var t,n;const i=pv(),o=Bg(),a=Yf(i,Ay),{quickFilterParser:s=fL,quickFilterFormatter:l=mL,debounceMs:c=o.filterDebounceMs}=e,u=Iv(e,pL),[d,p]=r.useState((()=>l(null!=a?a:[]))),h=r.useRef(a);r.useEffect((()=>{XS(h.current,a)||(h.current=a,p((e=>XS(s(e),a)?e:l(null!=a?a:[]))))}),[a,l,s]);const f=r.useCallback((e=>{const t=s(e);h.current=t,i.current.setQuickFilterValues(t)}),[i,s]),m=r.useMemo((()=>Ep(f,c)),[f,c]),g=r.useCallback((e=>{const t=e.target.value;p(t),m(t)}),[m]),y=r.useCallback((()=>{p(""),f("")}),[f]);return ih(hL,up({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:d,onChange:g,placeholder:i.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":i.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},u,{InputProps:up({startAdornment:ih(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:ih(o.slots.baseIconButton,up({"aria-label":i.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:d?"visible":"hidden"},onClick:y},null==(t=o.slotProps)?void 0:t.baseIconButton,{children:ih(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},u.InputProps)},null==(n=o.slotProps)?void 0:n.baseTextField))}const yL=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],vL=r.forwardRef((function(e,t){const{csvOptions:n,printOptions:r,excelOptions:i,showQuickFilter:o=!1,quickFilterProps:a={}}=e,s=Iv(e,yL),l=Bg();return l.disableColumnFilter&&l.disableColumnSelector&&l.disableDensitySelector&&!o?null:oh(uS,up({ref:t},s,{children:[ih(oI,{}),ih(uI,{}),ih(sI,{}),ih(vI,{csvOptions:n,printOptions:r,excelOptions:i}),ih(rI,{sx:{flex:1}}),o&&ih(gL,up({},a))]}))})),bL=["className","selectedRowCount"],_L=_g("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})((e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0,[t.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}})),wL=r.forwardRef((function(e,t){const{className:n,selectedRowCount:r}=e,i=Iv(e,bL),o=pv(),a=Bg(),s=(e=>{const{classes:t}=e;return Bp({root:["selectedRowCount"]},Ng,t)})(a),l=o.current.getLocaleText("footerRowSelected")(r);return ih(_L,up({ref:t,className:ug(s.root,n),ownerState:a},i,{children:l}))})),xL=r.forwardRef((function(e,t){var n,r;const i=pv(),o=Bg(),a=Yf(i,gy),s=Yf(i,yM),l=Yf(i,Hy),c=!o.hideFooterSelectedRowCount&&s>0?ih(wL,{selectedRowCount:s}):ih("div",{}),u=o.hideFooterRowCount||o.pagination?null:ih(o.slots.footerRowCount,up({},null==(n=o.slotProps)?void 0:n.footerRowCount,{rowCount:a,visibleRowCount:l})),d=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&ih(o.slots.pagination,up({},null==(r=o.slotProps)?void 0:r.pagination));return oh(iS,up({ref:t},e,{children:[c,u,d]}))}));function kL(){var e,t;const n=Bg();return oh(r.Fragment,{children:[ih(n.slots.preferencesPanel,up({},null==(e=n.slotProps)?void 0:e.preferencesPanel)),n.slots.toolbar&&ih(n.slots.toolbar,up({},null==(t=n.slotProps)?void 0:t.toolbar))]})}function CL(e){return rf("MuiCircularProgress",e)}of("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const SL=["className","color","disableShrink","size","style","thickness","value","variant"];let ML,TL,EL,PL,IL=e=>e;const OL=44,LL=(0,o.F4)(ML||(ML=IL`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),RL=(0,o.F4)(TL||(TL=IL`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),jL=sx("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xh(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return mb({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,o.iv)(EL||(EL=IL`
      animation: ${0} 1.4s linear infinite;
    `),LL)})),DL=sx("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),AL=sx("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xh(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return mb({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,o.iv)(PL||(PL=IL`
      animation: ${0} 1.4s ease-in-out infinite;
    `),RL)})),NL=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=fb(n,SL),p=mb({},n,{color:i,disableShrink:o,size:a,thickness:l,value:c,variant:u}),h=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e;return Bp({root:["root",n,`color${xh(r)}`],svg:["svg"],circle:["circle",`circle${xh(n)}`,i&&"circleDisableShrink"]},CL,t)})(p),f={},m={},g={};if("determinate"===u){const e=2*Math.PI*((OL-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return ih(jL,mb({className:yb(h.root,r),style:mb({width:a,height:a},m,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:ih(DL,{className:h.svg,ownerState:p,viewBox:"22 22 44 44",children:ih(AL,{className:h.circle,style:f,ownerState:p,cx:OL,cy:OL,r:(OL-l)/2,fill:"none",strokeWidth:l})})}))})),FL=r.forwardRef((function(e,t){return ih(sS,up({ref:t},e,{children:ih(NL,{})}))})),zL=r.forwardRef((function(e,t){const n=pv().current.getLocaleText("noRowsLabel");return ih(sS,up({ref:t},e,{children:n}))})),BL=r.createContext(),UL=r.createContext();function $L(e){return rf("MuiTableCell",e)}const VL=of("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qL=["align","className","component","padding","scope","size","sortDirection","variant"],ZL=sx("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${xh(n.size)}`],"normal"!==n.padding&&t[`padding${xh(n.padding)}`],"inherit"!==n.align&&t[`align${xh(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return mb({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===t.palette.mode?Eg(Mg(t.palette.divider,1),.88):Tg(Mg(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",[`&.${VL.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),HL=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=fb(n,qL),h=r.useContext(BL),f=r.useContext(UL),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let y=l;"td"===g?y=void 0:!y&&m&&(y="col");const v=d||f&&f.variant,b=mb({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v}),_=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e;return Bp({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${xh(r)}`,"normal"!==i&&`padding${xh(i)}`,`size${xh(o)}`]},$L,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),ih(ZL,mb({as:g,ref:t,className:yb(_.root,o),"aria-sort":w,scope:y,ownerState:b},p))}));function GL(e){return rf("MuiToolbar",e)}of("MuiToolbar",["root","gutters","regular","dense"]);const WL=["className","component","disableGutters","variant"],YL=sx("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),KL=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:o=!1,variant:a="regular"}=n,s=fb(n,WL),l=mb({},n,{component:i,disableGutters:o,variant:a}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Bp({root:["root",!n&&"gutters",r]},GL,t)})(l);return ih(YL,mb({as:i,className:yb(c.root,r),ref:t,ownerState:l},s))})),XL=WM(ih("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),JL=WM(ih("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),QL=WM(ih("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),eR=WM(ih("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");var tR,nR,rR,iR,oR,aR,sR,lR;const cR=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],uR=r.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:l,showFirstButton:c,showLastButton:u}=e,d=fb(e,cR),p=xx();return oh("div",mb({ref:t},d,{children:[c&&ih(UT,{onClick:e=>{a(e,0)},disabled:0===s,"aria-label":i("first",s),title:i("first",s),children:"rtl"===p.direction?tR||(tR=ih(QL,{})):nR||(nR=ih(eR,{}))}),ih(UT,mb({onClick:e=>{a(e,s-1)},disabled:0===s,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},n,{children:"rtl"===p.direction?rR||(rR=ih(JL,{})):iR||(iR=ih(XL,{}))})),ih(UT,mb({onClick:e=>{a(e,s+1)},disabled:-1!==r&&s>=Math.ceil(r/l)-1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:"rtl"===p.direction?oR||(oR=ih(XL,{})):aR||(aR=ih(JL,{}))})),u&&ih(UT,{onClick:e=>{a(e,Math.max(0,Math.ceil(r/l)-1))},disabled:s>=Math.ceil(r/l)-1,"aria-label":i("last",s),title:i("last",s),children:"rtl"===p.direction?sR||(sR=ih(eR,{})):lR||(lR=ih(QL,{}))})]}))}));function dR(e){return rf("MuiTablePagination",e)}const pR=of("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var hR;const fR=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],mR=sx(HL,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),gR=sx(KL,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>mb({[`& .${pR.actions}`]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${pR.actions}`]:{flexShrink:0,marginLeft:20}}})),yR=sx("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),vR=sx("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return mb({},t.typography.body2,{flexShrink:0})})),bR=sx(oL,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>mb({[`& .${pR.selectIcon}`]:t.selectIcon,[`& .${pR.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${pR.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),_R=sx(DC,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),wR=sx("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return mb({},t.typography.body2,{flexShrink:0})}));function xR(e){let{from:t,to:n,count:r}=e;return`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`}function kR(e){return`Go to ${e} page`}const CR=sx(r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=uR,backIconButtonProps:o,className:a,colSpan:s,component:l=HL,count:c,getItemAriaLabel:u=kR,labelDisplayedRows:d=xR,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:f,onRowsPerPageChange:m,page:g,rowsPerPage:y,rowsPerPageOptions:v=[10,25,50,100],SelectProps:b={},showFirstButton:_=!1,showLastButton:w=!1}=n,x=fb(n,fR),k=n,C=(e=>{const{classes:t}=e;return Bp({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},dR,t)})(k),S=b.native?"option":_R;let M;(l===HL||"td"===l)&&(M=s||1e3);const T=Oh(b.id),E=Oh(b.labelId);return ih(mR,mb({colSpan:M,ref:t,as:l,ownerState:k,className:yb(C.root,a)},x,{children:oh(gR,{className:C.toolbar,children:[ih(yR,{className:C.spacer}),v.length>1&&ih(vR,{className:C.selectLabel,id:E,children:p}),v.length>1&&ih(bR,mb({variant:"standard"},!b.variant&&{input:hR||(hR=ih(wx,{}))},{value:y,onChange:m,id:T,labelId:E},b,{classes:mb({},b.classes,{root:yb(C.input,C.selectRoot,(b.classes||{}).root),select:yb(C.select,(b.classes||{}).select),icon:yb(C.selectIcon,(b.classes||{}).icon)}),children:v.map((e=>(0,r.createElement)(S,mb({},!vb(S)&&{ownerState:k},{className:C.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),ih(wR,{className:C.displayedRows,children:d({from:0===c?0:g*y+1,to:-1===c?(g+1)*y:-1===y?c:Math.min(c,(g+1)*y),count:-1===c?-1:c,page:g})}),ih(i,{className:C.actions,backIconButtonProps:o,count:c,nextIconButtonProps:h,onPageChange:f,page:g,rowsPerPage:y,showFirstButton:_,showLastButton:w,getItemAriaLabel:u})]})}))})))((e=>{let{theme:t}=e;return{[`& .${pR.selectLabel}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"block"}},[`& .${pR.input}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"inline-flex"}}}})),SR=r.forwardRef((function(e,t){const n=pv(),i=Bg(),o=Yf(n,aM),a=Yf(n,Hy),s=r.useMemo((()=>{var e,t;return null!=(e=null!=(t=i.rowCount)?t:a)?e:0}),[i.rowCount,a]),l=r.useMemo((()=>Math.floor(s/(o.pageSize||1))),[s,o.pageSize]),c=r.useCallback((e=>{const t=Number(e.target.value);n.current.setPageSize(t)}),[n]),u=r.useCallback(((e,t)=>{n.current.setPage(t)}),[n]);const d=(e=>{for(let t=0;t<i.pageSizeOptions.length;t+=1){const n=i.pageSizeOptions[t];if("number"==typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1})(o.pageSize)?i.pageSizeOptions:[];return ih(CR,up({ref:t,component:"div",count:s,page:o.page<=l?o.page:l,rowsPerPageOptions:d,rowsPerPage:o.pageSize,onPageChange:u,onRowsPerPageChange:c},n.current.getLocaleText("MuiTablePagination"),e))})),MR=["className","rowCount","visibleRowCount"],TR=_g("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:t.spacing(0,2)}})),ER=r.forwardRef((function(e,t){const{className:n,rowCount:r,visibleRowCount:i}=e,o=Iv(e,MR),a=pv(),s=Bg(),l=(e=>{const{classes:t}=e;return Bp({root:["rowCount"]},Ng,t)})(s);if(0===r)return null;const c=i<r?a.current.getLocaleText("footerTotalVisibleRows")(i,r):r.toLocaleString();return oh(TR,up({ref:t,className:ug(l.root,n),ownerState:s},o,{children:[a.current.getLocaleText("footerTotalRows")," ",c]}))})),PR=(e,t)=>{let n,r;return t.pagination&&"client"===t.paginationMode?(r=uM(e),n=dM(e)):(n=By(e),r=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},IR=(e,t)=>{const n=PR(e,t);return r.useMemo((()=>({rows:n.rows,range:n.range})),[n.rows,n.range])},OR={current:null};function LR(e){return e.isInternal=!0,e}function RR(e){return void 0!==e&&!0===e.isInternal}function jR(e){return LR(((t,n)=>{const r=e(t,n);return r&&(e=>r(e.value,e.row,n,OR.current))}))}function DR(e){return e.map((e=>up({},e,{getApplyFilterFn:jR(e.getApplyFilterFnV7),getApplyFilterFnV7:LR(e.getApplyFilterFnV7)})))}function AR(e){return LR(((t,n,r)=>{const i=e(t,n,r);return i&&(e=>i(e.value,e.row,n,r))}))}function NR(e){return{current:e.current.getPublicApi()}}const FR=(typeof window>"u"?globalThis:window)[atob("ZXZhbA==")];let zR;try{zR=FR("true")}catch{zR=!1}const BR=(e,t)=>{const n=up({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=Qg(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},UR=$f(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),$R=$f("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),VR=$f("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),qR=(e,t,n)=>{const r=e.items.length>1;let i;r&&t?(UR(),i=[e.items[0]]):i=e.items;const o=r&&i.some((e=>null==e.id)),a=i.some((e=>null==e.operator));return o&&$R(),a&&VR(),a||o?up({},e,{items:i.map((e=>BR(e,n)))}):e.items!==i?up({},e,{items:i}):e},ZR=(e,t,n)=>r=>up({},r,{filterModel:qR(e,t,n)}),HR=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,GR=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var i;const t=n.valueParser;r=Array.isArray(e.value)?null==(i=e.value)?void 0:i.map((e=>t(e))):t(e.value)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=HR(r));const a=up({},e,{value:r}),s=n.filterOperators;if(null==s||!s.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=s.find((e=>e.value===a.operator));if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const c=!RR(l.getApplyFilterFn),u=!RR(l.getApplyFilterFnV7),d=NR(t);if(l.getApplyFilterFnV7&&(!c||u)){const e=l.getApplyFilterFnV7(a,n);return"function"!=typeof e?null:{v7:!0,item:a,fn:r=>{let i=t.current.getRowValue(r,n);return o&&(i=HR(i)),e(i,r,n,d)}}}const p=l.getApplyFilterFn(a,n);return"function"!=typeof p?null:{v7:!1,item:a,fn:e=>{const n=t.current.getCellParams(e,a.field);OR.current=d,o&&(n.value=HR(n.value));const r=p(n);return OR.current=null,r}}};let WR=1;const YR=(e,t,n)=>{const r=((e,t,n)=>{const{items:r}=e,i=r.map((e=>GR(e,t))).filter((e=>!!e));if(0===i.length)return null;if(!zR||n)return(e,n)=>{const r={};for(let o=0;o<i.length;o+=1){const a=i[o];(!n||n(a.item.field))&&(r[a.item.id]=a.v7?a.fn(e):a.fn(t.current.getRowId(e)))}return r};const o=`(function filterItem$$(getRowId, appliers, row, shouldApplyFilter) {\n      ${i.map(((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\n      const result$$ = {\n      ${i.map(((e,t)=>`${JSON.stringify(String(e.item.id))}:\n          !shouldApply${t} ?\n            false :\n            ${e.v7?`appliers[${t}].fn(row)`:`appliers[${t}].fn(getRowId(row))`},\n      `)).join("\n")}};\n\n      return result$$;\n    })`,a=FR(o.replaceAll("$$",String(WR)));return WR+=1,(e,n)=>a(t.current.getRowId,i,e,n)})(e,t,n),i=((e,t)=>{var n,r,i;const o=null!=(n=null==(r=e.quickFilterValues)?void 0:r.filter(Boolean))?n:[];if(0===o.length)return null;const a=null!=(i=e.quickFilterExcludeHiddenColumns)&&i?ry(t):Jg(t),s=[],{ignoreDiacritics:l}=t.current.rootProps,c=NR(t);return a.forEach((e=>{const n=t.current.getColumn(e),r=null==n?void 0:n.getApplyQuickFilterFn,i=null==n?void 0:n.getApplyQuickFilterFnV7,a=!RR(r),u=!RR(i);!i||a&&!u?r&&s.push({column:n,appliers:o.map((e=>{const t=l?HR(e):e;return{v7:!1,fn:r(t,n,c)}}))}):s.push({column:n,appliers:o.map((e=>{const t=l?HR(e):e;return{v7:!0,fn:i(t,n,c)}}))})})),function(e,n){const r={},i={};e:for(let u=0;u<o.length;u+=1){const d=o[u];for(let o=0;o<s.length;o+=1){const{column:p,appliers:h}=s[o],{field:f}=p;if(n&&!n(f))continue;const m=h[u];let g=t.current.getRowValue(e,p);if(null!==m.fn)if(m.v7){if(l&&(g=HR(g)),m.fn(g,e,p,c)){r[d]=!0;continue e}}else{var a;const n=null!=(a=i[f])?a:t.current.getCellParams(t.current.getRowId(e),f);if(l&&(n.value=HR(n.value)),i[f]=n,m.fn(n)){r[d]=!0;continue e}}}r[d]=!1}return r}})(e,t);return function(e,t,n){var o,a;n.passingFilterItems=null!=(o=null==r?void 0:r(e,t))?o:null,n.passingQuickFilterValues=null!=(a=null==i?void 0:i(e,t))?a:null}},KR=e=>null!=e,XR=(e,t,n,r,i)=>{const o=((e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter((e=>null!==GR(e,t)))),e.cleanedFilterItems))(i,r,n.items),a=e.filter(KR),s=t.filter(KR);if(a.length>0){var l;const e=e=>a.some((t=>t[e.id]));if((null!=(l=n.logicOperator)?l:AS().logicOperator)===Nv.And){if(!o.every(e))return!1}else if(!o.some(e))return!1}if(s.length>0&&null!=n.quickFilterValues){var c;const e=e=>s.some((t=>t[e]));if((null!=(c=n.quickFilterLogicOperator)?c:AS().quickFilterLogicOperator)===Nv.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},JR=LR((e=>{if(!e)return null;const t=new RegExp(YS(e),"i");return(e,n,r,i)=>{let o=i.current.getRowFormattedValue(n,r);return i.current.ignoreDiacritics&&(o=HR(o)),null!=o&&t.test(o.toString())}})),QR=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return DR([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(YS(n),"i");return e=>null!=e&&r.test(String(e))},InputComponent:QE},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===r.compare(n,e.toString())},InputComponent:QE},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${YS(n)}.*$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:QE},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${YS(n)}$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:QE},{value:"isEmpty",getApplyFilterFnV7:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some((t=>0===r.compare(t,e.toString()||"")))},InputComponent:QP}])},ej={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:MM,type:"string",align:"left",filterOperators:QR(),renderEditCell:Ox,getApplyQuickFilterFn:AR(JR),getApplyQuickFilterFnV7:JR},tj=()=>DR([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t="true"===e.value;return e=>Boolean(e)===t},InputComponent:lP}]);const nj=up({},ej,{type:"boolean",align:"center",headerAlign:"center",renderCell:ub,renderEditCell:hb,sortComparator:TM,valueFormatter:function(e){let{value:t,api:n}=e;return t?n.getLocaleText("booleanCellTrueLabel"):n.getLocaleText("booleanCellFalseLabel")},filterOperators:tj(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)}),rj="__check__",ij=up({},nj,{field:rj,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>void 0!==bM(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>ih($M,up({},e)),renderCell:e=>ih(BM,up({},e))}),oj="actions",aj=up({},ej,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Vk,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),sj="__detail_panel_toggle__",lj=e=>e.editRows,cj=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function uj(e){let{width:t}=e;if(!t)return null;const n={width:t};return ih("div",{className:`${Fg.cell} ${Fg.withBorderColor}`,style:n})}const dj=r.forwardRef((function(e,t){const{selected:n,hovered:i,rowId:o,row:a,index:s,style:l,position:c,rowHeight:u,className:d,visibleColumns:p,renderedColumns:h,containerWidth:f,firstColumnToRender:m,isLastVisible:g=!1,focusedCellColumnIndexNotInRange:y,isNotVisible:v,focusedCell:b,onClick:_,onDoubleClick:w,onMouseEnter:x,onMouseLeave:k,onMouseOut:C,onMouseOver:S}=e,M=Iv(e,cj),T=pv(),E=r.useRef(null),P=Bg(),I=IR(T,P),O=Yf(T,oy),L=Yf(T,Ly),R=Yf(T,xy),j=Yf(T,py),D=Yf(T,lj),A=Fp(E,t),N=s+j+2,F=(e=>{const{editable:t,editing:n,selected:r,isLastVisible:i,rowHeight:o,classes:a}=e;return Bp({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",i&&"row--lastVisible","auto"===o&&"row--dynamicHeight"]},Ng,a)})({selected:n,hovered:i,isLastVisible:g,classes:P.classes,editing:T.current.getRowMode(o)===Av.Edit,editable:P.editMode===jv.Row,rowHeight:u});r.useLayoutEffect((()=>{"auto"===u&&E.current&&typeof ResizeObserver>"u"&&T.current.unstable_storeRowHeightMeasurement(o,E.current.clientHeight,c)}),[T,u,o,c]),r.useLayoutEffect((()=>{if(I.range){const e=T.current.getRowIndexRelativeToVisibleRows(o);null!=e&&T.current.unstable_setLastMeasuredRowIndex(e)}const e=E.current;if(!e||"auto"!==u||typeof ResizeObserver>"u")return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;T.current.unstable_storeRowHeightMeasurement(o,n,c)}));return t.observe(e),()=>t.disconnect()}),[T,I.range,s,u,o,c]);const z=r.useCallback(((e,t)=>n=>{Hv(n)||!T.current.getRow(o)||(T.current.publishEvent(e,T.current.getRowParams(o),n),t&&t(n))}),[T,o]),B=r.useCallback((e=>{const t=Vv(e.target,Fg.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===ij.field||n===sj||"__reorder__"===n||T.current.getCellMode(o,n)===Dv.Edit)return;const e=T.current.getColumn(n);if((null==e?void 0:e.type)===oj)return}z("rowClick",_)(e)}),[T,_,z,o]),{slots:U,slotProps:$,disableColumnReorder:V}=P,q=U.cell===ab?ab:ib,Z=P.rowReordering,H=(e,t)=>{var n,r;const i=V&&e.disableReorder||!Z&&!!L.length&&R>1&&Object.keys(D).length>0,a=null!=(n=null==(r=D[o])?void 0:r[e.field])?n:null;let s=!1;return void 0!==y&&p[y].field===e.field&&(s=!0),ih(q,up({column:e,width:t.width,rowId:o,height:u,showRightBorder:t.showRightBorder,align:e.align||"left",colIndex:t.indexRelativeToAllColumns,colSpan:t.colSpan,disableDragEvents:i,editCellState:a,isNotVisible:s},null==$?void 0:$.cell),e.field)},G=Yf(T,(()=>up({},T.current.unstable_getRowInternalSizes(o))),Gf);let W=u;if("auto"===W&&G){let e=0;const t=Object.entries(G).reduce(((t,n)=>{let[r,i]=n;return/^base[A-Z]/.test(r)?(e+=1,i>t?i:t):t}),0);t>0&&e>1&&(W=t)}const Y=r.useMemo((()=>{if(v)return{opacity:0,width:0,height:0};const e=up({},l,{maxHeight:"auto"===u?"none":u,minHeight:W});if(null!=G&&G.spacingTop){e["border"===P.rowSpacingType?"borderTopWidth":"marginTop"]=G.spacingTop}if(null!=G&&G.spacingBottom){const t="border"===P.rowSpacingType?"borderBottomWidth":"marginBottom";let n=e[t];"number"!=typeof n&&(n=parseInt(n||"0",10)),n+=G.spacingBottom,e[t]=n}return e}),[v,u,l,W,G,P.rowSpacingType]),K=T.current.unstable_applyPipeProcessors("rowClassName",[],o);if("function"==typeof P.getRowClassName){var X;const e=s-((null==(X=I.range)?void 0:X.firstRowIndex)||0),t=up({},T.current.getRowParams(o),{isFirstVisible:0===e,isLastVisible:e===I.rows.length-1,indexRelativeToCurrentPage:e});K.push(P.getRowClassName(t))}const J=JS(1e4,20,80),Q=T.current.getRowNode(o);if(!Q)return null;const ee=Q.type,te=[];for(let r=0;r<h.length;r+=1){const e=h[r];let t=m+r;void 0!==y&&b&&(p[y].field===e.field?t=y:t-=1);const n=T.current.unstable_getCellColSpanInfo(o,t);if(n&&!n.spannedByColSpan)if("skeletonRow"!==ee){const{colSpan:r,width:i}=n.cellProps,o={width:i,colSpan:r,showRightBorder:P.showCellVerticalBorder,indexRelativeToAllColumns:t};te.push(H(e,o))}else{const{width:t}=n.cellProps,r=Math.round(J());te.push(ih(U.skeletonCell,{width:t,contentWidth:r,field:e.field,align:e.align},e.field))}}const ne=f-O,re=a?{onClick:B,onDoubleClick:z("rowDoubleClick",w),onMouseEnter:z("rowMouseEnter",x),onMouseLeave:z("rowMouseLeave",k),onMouseOut:z("rowMouseOut",C),onMouseOver:z("rowMouseOver",S)}:null;return oh("div",up({ref:A,"data-id":o,"data-rowindex":s,role:"row",className:ug(...K,F.root,d,i&&"Mui-hovered"),"aria-rowindex":N,"aria-selected":n,style:Y},re,M,{children:[te,ne>0&&ih(uj,{width:ne})]}))})),pj=Ov(dj),hj={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search\u2026",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},fj=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:up({},e,{MuiTablePagination:(null==t||null==(n=t.components)||null==(n=n.MuiTablePagination)?void 0:n.defaultProps)||{}})}}}}},mj=fj({noRowsLabel:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0635\u0641\u0648\u0641",noResultsOverlayLabel:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0646\u062a\u0627\u0626\u062c.",toolbarDensity:"\u0627\u0644\u0643\u062b\u0627\u0641\u0629",toolbarDensityLabel:"\u0627\u0644\u0643\u062b\u0627\u0641\u0629",toolbarDensityCompact:"\u0645\u0636\u063a\u0648\u0637",toolbarDensityStandard:"\u0642\u064a\u0627\u0633\u064a",toolbarDensityComfortable:"\u0645\u0631\u064a\u062d",toolbarColumns:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629",toolbarColumnsLabel:"\u062d\u062f\u062f \u0623\u0639\u0645\u062f\u0629",toolbarFilters:"\u0627\u0644\u0645\u064f\u0631\u0634\u0650\u062d\u0627\u062a",toolbarFiltersLabel:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0631\u0634\u0650\u062d\u0627\u062a",toolbarFiltersTooltipHide:"\u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0645\u0631\u0634\u0650\u062d\u0627\u062a",toolbarFiltersTooltipShow:"\u0627\u0638\u0647\u0631 \u0627\u0644\u0645\u0631\u0634\u0650\u062d\u0627\u062a",toolbarFiltersTooltipActive:e=>1!==e?`${e} \u0645\u0646 \u0627\u0644\u0645\u0631\u0634\u0650\u062d\u0627\u062a \u0627\u0644\u0646\u0634\u0637\u0629`:"\u0645\u0631\u0634\u0650\u062d \u0646\u0634\u0637",toolbarQuickFilterPlaceholder:"\u0628\u062d\u062b...",toolbarQuickFilterLabel:"\u0628\u062d\u062b",toolbarQuickFilterDeleteIconLabel:"\u0623\u0632\u0627\u0644",toolbarExport:"\u062a\u0635\u062f\u064a\u0631",toolbarExportLabel:"\u062a\u0635\u062f\u064a\u0631",toolbarExportCSV:"\u062a\u0646\u0632\u064a\u0644 \u0643\u0645\u0644\u0641 CSV",toolbarExportPrint:"\u0637\u0628\u0627\u0639\u0629",toolbarExportExcel:"\u062a\u062d\u0645\u064a\u0644 \u0643\u0645\u0644\u0641 \u0627\u0644\u0625\u0643\u0633\u0644",columnsPanelTextFieldLabel:"\u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u0627\u0644\u0639\u0645\u0648\u062f",columnsPanelTextFieldPlaceholder:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0639\u0645\u0648\u062f",columnsPanelDragIconLabel:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0639\u0645\u0648\u062f",columnsPanelShowAllButton:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0643\u0644",columnsPanelHideAllButton:"\u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0643\u0644",filterPanelAddFilter:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0631\u0634\u0650\u062d",filterPanelRemoveAll:"\u062d\u0630\u0641 \u0627\u0644\u0643\u0644",filterPanelDeleteIconLabel:"\u062d\u0630\u0641",filterPanelLogicOperator:"\u0639\u0627\u0645\u0644 \u0645\u0646\u0637\u0642\u064a",filterPanelOperator:"\u0639\u0627\u0645\u0644",filterPanelOperatorAnd:"\u0648",filterPanelOperatorOr:"\u0623\u0648",filterPanelColumns:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629",filterPanelInputLabel:"\u0627\u0644\u0642\u064a\u0645\u0629",filterPanelInputPlaceholder:"\u062a\u0631\u0634\u0650\u064a\u062d \u0642\u064a\u0645\u0629",filterOperatorContains:"\u064a\u062d\u062a\u0648\u064a",filterOperatorEquals:"\u064a\u0633\u0627\u0648\u064a",filterOperatorStartsWith:"\u064a\u0628\u062f\u0623 \u0628\u0640",filterOperatorEndsWith:"\u064a\u0646\u062a\u0647\u064a \u0628\u0640",filterOperatorIs:"\u064a\u0643\u0648\u0646",filterOperatorNot:"\u0644\u064a\u0633",filterOperatorAfter:"\u0628\u0639\u062f",filterOperatorOnOrAfter:"\u0639\u0646\u062f \u0623\u0648 \u0628\u0639\u062f",filterOperatorBefore:"\u0642\u0628\u0644",filterOperatorOnOrBefore:"\u0639\u0646\u062f \u0623\u0648 \u0642\u0628\u0644",filterOperatorIsEmpty:"\u062e\u0627\u0644\u064a",filterOperatorIsNotEmpty:"\u063a\u064a\u0631 \u062e\u0627\u0644\u064a",filterOperatorIsAnyOf:"\u0623\u064a \u0645\u0646","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649",headerFilterOperatorEquals:"\u064a\u0633\u0627\u0648\u064a",headerFilterOperatorStartsWith:"\u064a\u0628\u062f\u0623 \u0628",headerFilterOperatorEndsWith:"\u064a\u0646\u062a\u0647\u064a \u0628",headerFilterOperatorIs:"\u0647\u0648",headerFilterOperatorNot:"\u0647\u0648 \u0644\u064a\u0633",headerFilterOperatorAfter:"\u064a\u0642\u0639 \u0628\u0639\u062f",headerFilterOperatorOnOrAfter:"\u0647\u0648 \u0639\u0644\u0649 \u0627\u0648 \u0628\u0639\u062f",headerFilterOperatorBefore:"\u064a\u0642\u0639 \u0642\u0628\u0644",headerFilterOperatorOnOrBefore:"\u0647\u0648 \u0639\u0644\u0649 \u0627\u0648 \u0628\u0639\u062f",headerFilterOperatorIsEmpty:"\u0647\u0648 \u0641\u0627\u0631\u063a",headerFilterOperatorIsNotEmpty:"\u0647\u0648 \u0644\u064a\u0633 \u0641\u0627\u0631\u063a",headerFilterOperatorIsAnyOf:"\u0647\u0648 \u0623\u064a \u0645\u0646","headerFilterOperator=":"\u064a\u0633\u0627\u0648\u064a","headerFilterOperator!=":"\u0644\u0627 \u064a\u0633\u0627\u0648\u064a","headerFilterOperator>":"\u0623\u0643\u0628\u0631 \u0645\u0646","headerFilterOperator>=":"\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0648 \u064a\u0633\u0627\u0648\u064a","headerFilterOperator<":"\u0627\u0635\u063a\u0631 \u0645\u0646","headerFilterOperator<=":"\u0627\u0635\u063a\u0631 \u0645\u0646 \u0627\u0648 \u064a\u0633\u0627\u0648\u064a",filterValueAny:"\u0623\u064a",filterValueTrue:"\u0635\u0627\u0626\u0628",filterValueFalse:"\u062e\u0627\u0637\u0626",columnMenuLabel:"\u0627\u0644\u0642\u0627\u0626\u0645\u0629",columnMenuShowColumns:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0623\u0639\u0645\u062f\u0629",columnMenuManageColumns:"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0623\u0639\u0645\u062f\u0629",columnMenuFilter:"\u0627\u0644\u0645\u0631\u0634\u0650\u062d",columnMenuHideColumn:"\u0625\u062e\u0641\u0627\u0621",columnMenuUnsort:"\u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0641\u0631\u0632",columnMenuSortAsc:"\u0627\u0644\u0641\u0631\u0632 \u062a\u0635\u0627\u0639\u062f\u064a\u0627\u064b",columnMenuSortDesc:"\u0627\u0644\u0641\u0631\u0632 \u062a\u0646\u0627\u0632\u0644\u064a\u0627\u064b",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} \u0645\u0646 \u0627\u0644\u0645\u0631\u0634\u0650\u062d\u0627\u062a \u0627\u0644\u0646\u0634\u0637\u0629`:"\u0645\u0631\u0634\u0650\u062d \u0646\u0634\u0637",columnHeaderFiltersLabel:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0631\u0634\u062d\u0627\u062a",columnHeaderSortIconLabel:"\u0641\u0631\u0632",footerRowSelected:e=>1!==e?`\u062a\u0645 \u062a\u062d\u062f\u064a\u062f ${e.toLocaleString()} \u0645\u0646 \u0627\u0644\u0635\u0641\u0648\u0641`:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062f \u0635\u0641 \u0648\u0627\u062d\u062f",footerTotalRows:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0635\u0641\u0648\u0641:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u0645\u0646 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u062a\u062d\u062f\u064a\u062f \u062e\u0627\u0646\u0629 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631",checkboxSelectionSelectAllRows:"\u062a\u062d\u062f\u064a\u062f \u0643\u0644 \u0627\u0644\u0635\u0641\u0648\u0641",checkboxSelectionUnselectAllRows:"\u0627\u0644\u063a\u0627\u0621 \u062a\u062d\u062f\u064a\u062f \u0643\u0644 \u0627\u0644\u0635\u0641\u0648\u0641",checkboxSelectionSelectRow:"\u062a\u062d\u062f\u064a\u062f \u0635\u0641",checkboxSelectionUnselectRow:"\u0627\u0644\u063a\u0627\u0621 \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0635\u0641",booleanCellTrueLabel:"\u0646\u0639\u0645",booleanCellFalseLabel:"\u0644\u0627",actionsCellMore:"\u0627\u0644\u0645\u0632\u064a\u062f",pinToLeft:"\u0627\u0644\u062a\u062f\u0628\u064a\u0633 \u064a\u0645\u064a\u0646\u0627\u064b",pinToRight:"\u0627\u0644\u062a\u062f\u0628\u064a\u0633 \u064a\u0633\u0627\u0631\u0627\u064b",unpin:"\u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062f\u0628\u064a\u0633",treeDataGroupingHeaderName:"\u062a\u062c\u0645\u064a\u0639",treeDataExpand:"\u0631\u0624\u064a\u0629 \u0627\u0644\u0623\u0628\u0646\u0627\u0621",treeDataCollapse:"\u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0623\u0628\u0646\u0627\u0621",groupingColumnHeaderName:"\u062a\u062c\u0645\u064a\u0639",groupColumn:e=>`\u062a\u062c\u0645\u064a\u0639 \u062d\u0633\u0628 ${e}`,unGroupColumn:e=>`\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u062a\u062c\u0645\u064a\u0639 \u062d\u0633\u0628 ${e}`,detailPanelToggle:"\u0627\u0638\u0647\u0627\u0631/\u0627\u062e\u0641\u0627\u0621 \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u0641\u0627\u0635\u064a\u0644",expandDetailPanel:"\u062a\u0648\u0633\u064a\u0639",collapseDetailPanel:"\u0637\u0648\u064a",rowReorderingHeaderName:"\u0623\u0639\u0627\u062f\u0629 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0635\u0641\u0648\u0641",aggregationMenuItemHeader:"\u0627\u0644\u062f\u0644\u0627\u0644\u0627\u062a \u0627\u0644\u062d\u0633\u0627\u0628\u064a\u0629",aggregationFunctionLabelSum:"\u0645\u062c\u0645\u0648\u0639",aggregationFunctionLabelAvg:"\u0645\u0639\u062f\u0644",aggregationFunctionLabelMin:"\u0627\u0644\u062d\u062f \u0627\u0644\u0627\u062f\u0646\u0649",aggregationFunctionLabelMax:"\u0627\u0644\u062d\u062f \u0627\u0644\u0627\u0642\u0635\u0649",aggregationFunctionLabelSize:"\u0627\u0644\u062d\u062c\u0645"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0631"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",labelRowsPerPage:"\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u0648\u0641 \u0641\u064a \u0627\u0644\u0635\u0641\u062d\u0629:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u0645\u0646 ${-1!==r?r:` \u0623\u0643\u062b\u0631 \u0645\u0646${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${1!==e?"\u0646\u062c\u0648\u0645":"\u0646\u062c\u0645\u0629"}`,emptyLabelText:"\u0641\u0627\u0631\u063a"}},MuiAutocomplete:{defaultProps:{clearText:"\u0645\u0633\u062d",closeText:"\u0625\u063a\u0644\u0627\u0642",loadingText:"\u062c\u0627\u0631 \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",noOptionsText:"\u0644\u0627 \u064a\u0648\u062c\u062f \u062e\u064a\u0627\u0631\u0627\u062a",openText:"\u0641\u062a\u062d"}},MuiAlert:{defaultProps:{closeText:"\u0625\u063a\u0644\u0627\u0642"}},MuiPagination:{defaultProps:{"aria-label":"\u0627\u0644\u062a\u0646\u0642\u0644 \u0639\u0628\u0631 \u0627\u0644\u0635\u0641\u062d\u0627\u062a",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 "} \u0635\u0641\u062d\u0629 ${t}`:"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0627\u0644\u064a \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"}}}}),gj=(e,t)=>{let n=t.other;const r=e%10;return r>1&&r<5&&(e<10||e>20)?n=t.twoToFour:1===r&&e%100!==11&&(n=t.one),`${e} ${n}`},yj=fj({noRowsLabel:"\u041d\u044f\u043c\u0430 \u0440\u0430\u0434\u043a\u043e\u045e",noResultsOverlayLabel:"\u0414\u0430\u0434\u0437\u0435\u043d\u044b\u044f \u043d\u0435 \u0437\u043d\u043e\u0439\u0434\u0437\u0435\u043d\u044b.",toolbarDensity:"\u0412\u044b\u0448\u044b\u043d\u044f \u0440\u0430\u0434\u043a\u0430",toolbarDensityLabel:"\u0412\u044b\u0448\u044b\u043d\u044f \u0440\u0430\u0434\u043a\u0430",toolbarDensityCompact:"\u041a\u0430\u043c\u043f\u0430\u043a\u0442\u043d\u044b",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b",toolbarDensityComfortable:"\u041a\u0430\u043c\u0444\u043e\u0440\u0442\u043d\u044b",toolbarColumns:"\u0421\u043b\u0443\u043f\u043a\u0456",toolbarColumnsLabel:"\u0412\u044b\u0431\u0435\u0440\u044b\u0446\u0435 \u0441\u043b\u0443\u043f\u043a\u0456",toolbarFilters:"\u0424\u0456\u043b\u044c\u0442\u0440\u044b",toolbarFiltersLabel:"\u041f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0444\u0456\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipHide:"\u0421\u0445\u0430\u0432\u0430\u0446\u044c \u0444\u0456\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipShow:"\u041f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0444\u0456\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipActive:e=>gj(e,{one:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b \u0444\u0456\u043b\u044c\u0442\u0440",twoToFour:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0430",other:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0430\u045e"}),toolbarQuickFilterPlaceholder:"\u041f\u043e\u0448\u0443\u043a\u2026",toolbarQuickFilterLabel:"\u041f\u043e\u0448\u0443\u043a",toolbarQuickFilterDeleteIconLabel:"\u0410\u0447\u044b\u0441\u0446\u0456\u0446\u044c",toolbarExport:"\u042d\u043a\u0441\u043f\u0430\u0440\u0442",toolbarExportLabel:"\u042d\u043a\u0441\u043f\u0430\u0440\u0442",toolbarExportCSV:"\u0421\u043f\u0430\u043c\u043f\u0430\u0432\u0430\u0446\u044c \u0443 \u0444\u0430\u0440\u043c\u0430\u0446\u0435 CSV",toolbarExportPrint:"\u0414\u0440\u0443\u043a",toolbarExportExcel:"\u0421\u043f\u0430\u043c\u043f\u0430\u0432\u0430\u0446\u044c \u0443 \u0444\u0430\u0440\u043c\u0430\u0446\u0435 Excel",columnsPanelTextFieldLabel:"\u0417\u043d\u0430\u0439\u0441\u0446\u0456 \u0441\u043b\u0443\u043f\u043e\u043a",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u0430\u043b\u043e\u0432\u0430\u043a \u0441\u043b\u0443\u043f\u043a\u0430",columnsPanelDragIconLabel:"\u0417\u043c\u044f\u043d\u0456\u0446\u044c \u0447\u0430\u0440\u0433\u043e\u0432\u0430\u0441\u0446\u044c \u0441\u043b\u0443\u043f\u043a\u043e\u045e",columnsPanelShowAllButton:"\u041f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0443\u0441\u0435",columnsPanelHideAllButton:"\u0421\u0445\u0430\u0432\u0430\u0446\u044c \u0443\u0441\u0435",filterPanelAddFilter:"\u0414\u0430\u0434\u0430\u0446\u044c \u0444\u0456\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0412\u044b\u0434\u0430\u043b\u0456\u0446\u044c",filterPanelLogicOperator:"\u041b\u0430\u0433\u0456\u0447\u043d\u044b\u044f \u0430\u043f\u0435\u0440\u0430\u0442\u0430\u0440\u044b",filterPanelOperator:"\u0410\u043f\u0435\u0440\u0430\u0442\u0430\u0440\u044b",filterPanelOperatorAnd:"\u0406",filterPanelOperatorOr:"\u0410\u0431\u043e",filterPanelColumns:"\u0421\u043b\u0443\u043f\u043a\u0456",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u044d\u043d\u043d\u0435",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u0444\u0456\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u0437\u043c\u044f\u0448\u0447\u0430\u0435",filterOperatorEquals:"\u0440\u043e\u045e\u043d\u044b",filterOperatorStartsWith:"\u043f\u0430\u0447\u044b\u043d\u0430\u0435\u0446\u0446\u0430 \u0437",filterOperatorEndsWith:"\u0441\u043a\u043e\u043d\u0447\u0432\u0430\u0435\u0446\u0446\u0430 \u043d\u0430",filterOperatorIs:"\u0440\u043e\u045e\u043d\u044b",filterOperatorNot:"\u043d\u0435 \u0440\u043e\u045e\u043d\u044b",filterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448 \u0447\u044b\u043c",filterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448 \u0446\u0456 \u0440\u043e\u045e\u043d\u044b",filterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448 \u0447\u044b\u043c",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448 \u0446\u0456 \u0440\u043e\u045e\u043d\u044b",filterOperatorIsEmpty:"\u043f\u0443\u0441\u0442\u044b",filterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u0443\u0441\u0442\u044b",filterOperatorIsAnyOf:"\u0443\u0441\u044f\u043a\u0456 \u0437",filterValueAny:"\u0443\u0441\u044f\u043a\u0456",filterValueTrue:"\u043f\u0440\u0430\u045e\u0434\u0430",filterValueFalse:"\u043d\u044f\u043f\u0440\u0430\u045e\u0434\u0430",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0441\u043b\u0443\u043f\u043a\u0456",columnMenuManageColumns:"\u041a\u0456\u0440\u0430\u0432\u0430\u0446\u044c \u0441\u043b\u0443\u043f\u043a\u0430\u043c\u0456",columnMenuFilter:"\u0424\u0456\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u0445\u0430\u0432\u0430\u0446\u044c",columnMenuUnsort:"\u0421\u043a\u0430\u0441\u0430\u0432\u0430\u0446\u044c \u0441\u0430\u0440\u0442\u044b\u0440\u043e\u045e\u043a\u0443",columnMenuSortAsc:"\u0421\u0430\u0440\u0442\u044b\u0440\u0430\u0432\u0430\u0446\u044c \u043f\u0430 \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u043d\u043d\u044e",columnMenuSortDesc:"\u0421\u0430\u0440\u0442\u044b\u0440\u0430\u0432\u0430\u0446\u044c \u043f\u0430 \u0441\u043f\u0430\u0434\u0430\u043d\u043d\u044e",columnHeaderFiltersTooltipActive:e=>gj(e,{one:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b \u0444\u0456\u043b\u044c\u0442\u0440",twoToFour:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0430",other:"\u0430\u043a\u0442\u044b\u045e\u043d\u044b\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0430\u045e"}),columnHeaderFiltersLabel:"\u041f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0444\u0456\u043b\u044c\u0442\u0440\u044b",columnHeaderSortIconLabel:"\u0421\u0430\u0440\u0442\u044b\u0440\u0430\u0432\u0430\u0446\u044c",footerRowSelected:e=>gj(e,{one:"\u0430\u0431\u0440\u0430\u043d\u044b \u0440\u0430\u0434\u043e\u043a",twoToFour:"\u0430\u0431\u0440\u0430\u043d\u044b\u0445 \u0440\u0430\u0434\u043a\u0430",other:"\u0430\u0431\u0440\u0430\u043d\u044b\u0445 \u0440\u0430\u0434\u043a\u043e\u045e"}),footerTotalRows:"\u0423\u0441\u044f\u0433\u043e \u0440\u0430\u0434\u043a\u043e\u045e:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u0437 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0412\u044b\u0431\u0430\u0440 \u0441\u0446\u044f\u0436\u043a\u0430",checkboxSelectionSelectAllRows:"\u0410\u0431\u0440\u0430\u0446\u044c \u0443\u0441\u0435 \u0440\u0430\u0434\u043a\u0456",checkboxSelectionUnselectAllRows:"\u0421\u043a\u0430\u0441\u0430\u0432\u0430\u0446\u044c \u0432\u044b\u0431\u0430\u0440 \u0443\u0441\u0456\u0445 \u0440\u0430\u0434\u043a\u043e\u045e",checkboxSelectionSelectRow:"\u0410\u0431\u0440\u0430\u0446\u044c \u0440\u0430\u0434\u043e\u043a",checkboxSelectionUnselectRow:"\u0421\u043a\u0430\u0441\u0430\u0432\u0430\u0446\u044c \u0432\u044b\u0431\u0430\u0440 \u0440\u0430\u0434\u043a\u0430",booleanCellTrueLabel:"\u043f\u0440\u0430\u045e\u0434\u0430",booleanCellFalseLabel:"\u043d\u044f\u043f\u0440\u0430\u045e\u0434\u0430",actionsCellMore:"\u0431\u043e\u043b\u044c\u0448",pinToLeft:"\u0417\u0430\u043c\u0430\u0446\u0430\u0432\u0430\u0446\u044c \u0437\u043b\u0435\u0432\u0430",pinToRight:"\u0417\u0430\u043c\u0430\u0446\u0430\u0432\u0430\u0446\u044c \u0441\u043f\u0440\u0430\u0432\u0430",unpin:"\u0410\u0434\u043c\u0430\u0446\u0430\u0432\u0430\u0446\u044c",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u0430",treeDataExpand:"\u043f\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0434\u0430\u0447\u0447\u044b\u043d\u044b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",treeDataCollapse:"\u0441\u0445\u0430\u0432\u0430\u0446\u044c \u0434\u0430\u0447\u0447\u044b\u043d\u044b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",groupingColumnHeaderName:"\u0413\u0440\u0443\u043f\u0430",groupColumn:e=>`\u0413\u0440\u0443\u043f\u0430\u0432\u0430\u0446\u044c \u043f\u0430 ${e}`,unGroupColumn:e=>`\u0420\u0430\u0437\u0433\u0440\u0443\u043f\u0430\u0432\u0430\u0446\u044c \u043f\u0430 ${e}`,detailPanelToggle:"\u0414\u044d\u0442\u0430\u043b\u0456",expandDetailPanel:"\u0420\u0430\u0437\u0433\u0430\u0440\u043d\u0443\u0446\u044c",collapseDetailPanel:"\u0417\u0433\u0430\u0440\u043d\u0443\u0446\u044c",rowReorderingHeaderName:"\u0417\u043c\u044f\u043d\u0435\u043d\u043d\u0435 \u0447\u0430\u0440\u0433\u043e\u0432\u0430\u0441\u0446\u0456 \u0440\u0430\u0434\u043a\u043e\u045e",aggregationMenuItemHeader:"\u0410\u0431'\u044f\u0434\u043d\u0430\u043d\u043d\u0435 \u0434\u0430\u0434\u0437\u0435\u043d\u044b\u0445",aggregationFunctionLabelSum:"\u0441\u0443\u043c\u0430",aggregationFunctionLabelAvg:"\u0441\u044f\u0440\u044d\u0434\u043d\u044f\u0435",aggregationFunctionLabelMin:"\u043c\u0456\u043d\u0456\u043c\u0443\u043c",aggregationFunctionLabelMax:"\u043c\u0430\u043a\u0441\u0456\u043c\u0443\u043c",aggregationFunctionLabelSize:"\u043f\u0430\u043c\u0435\u0440"},{components:{MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u041f\u0435\u0440\u0430\u0439\u0441\u0446\u0456 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443\u044e \u0441\u0442\u0430\u0440\u043e\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0430\u0439\u0441\u0446\u0456 \u043d\u0430 \u0430\u043f\u043e\u0448\u043d\u044e\u044e \u0441\u0442\u0430\u0440\u043e\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0430\u0439\u0441\u0446\u0456 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u0441\u0442\u0430\u0440\u043e\u043d\u043a\u0443":"\u041f\u0435\u0440\u0430\u0439\u0441\u0446\u0456 \u043d\u0430 \u043f\u0430\u043f\u044f\u0440\u044d\u0434\u043d\u044e\u044e \u0441\u0442\u0430\u0440\u043e\u043d\u043a\u0443",labelRowsPerPage:"\u0420\u0430\u0434\u043a\u043e\u045e \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043d\u0446\u044b:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u0437 ${-1!==r?r:`\u0431\u043e\u043b\u044c\u0448 \u0447\u044b\u043c ${n}`}`}}}}}),vj=fj({noRowsLabel:"\u041d\u044f\u043c\u0430 \u0440\u0435\u0434\u043e\u0432\u0435",noResultsOverlayLabel:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438.",toolbarDensity:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityLabel:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430",toolbarColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",toolbarColumnsLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0438",toolbarFilters:"\u0424\u0438\u043b\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u0438\u0439 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipActive:e=>`${e} \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438`,toolbarQuickFilterPlaceholder:"\u0422\u044a\u0440\u0441\u0438\u2026",toolbarQuickFilterLabel:"\u0422\u044a\u0440\u0441\u0435\u043d\u0435",toolbarQuickFilterDeleteIconLabel:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",toolbarExport:"\u0418\u0437\u0442\u0435\u0433\u043b\u0438",toolbarExportLabel:"\u0418\u0437\u0442\u0435\u0433\u043b\u0438",toolbarExportCSV:"\u0418\u0437\u0442\u0435\u0433\u043b\u0438 \u043a\u0430\u0442\u043e CSV",toolbarExportPrint:"\u041f\u0440\u0438\u043d\u0442\u0438\u0440\u0430\u043d\u0435",toolbarExportExcel:"\u0418\u0437\u0442\u0435\u0433\u043b\u0438 \u043a\u0430\u0442\u043e Excel",columnsPanelTextFieldLabel:"\u041d\u0430\u043c\u0435\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043b\u0430\u0432\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelDragIconLabel:"\u041f\u0440\u0435\u043d\u0430\u0440\u0435\u0434\u0438 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0412\u0441\u0438\u0447\u043a\u0438",columnsPanelHideAllButton:"\u0421\u043a\u0440\u0438\u0439 \u0412\u0441\u0438\u0447\u043a\u0438",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0424\u0438\u043b\u0442\u044a\u0440",filterPanelRemoveAll:"\u041f\u0440\u0435\u043c\u0430\u0445\u043d\u0438 \u0432\u0441\u0438\u0447\u043a\u0438",filterPanelDeleteIconLabel:"\u0418\u0437\u0442\u0440\u0438\u0439",filterPanelLogicOperator:"\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440",filterPanelOperator:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",filterPanelInputLabel:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442",filterPanelInputPlaceholder:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0444\u0438\u043b\u0442\u044a\u0440\u0430",filterOperatorContains:"\u0441\u044a\u0434\u044a\u0440\u0436\u0430",filterOperatorEquals:"\u0440\u0430\u0432\u043d\u043e",filterOperatorStartsWith:"\u0437\u0430\u043f\u043e\u0447\u0432\u0430 \u0441",filterOperatorEndsWith:"\u0437\u0430\u0432\u044a\u0440\u0448\u0432\u0430 \u0441",filterOperatorIs:"\u0435",filterOperatorNot:"\u043d\u0435 \u0435",filterOperatorAfter:"\u0435 \u0441\u043b\u0435\u0434",filterOperatorOnOrAfter:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u0441\u043b\u0435\u0434",filterOperatorBefore:"\u0435 \u043f\u0440\u0435\u0434\u0438",filterOperatorOnOrBefore:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0438",filterOperatorIsEmpty:"\u0435 \u043f\u0440\u0430\u0437\u0435\u043d",filterOperatorIsNotEmpty:"\u043d\u0435 \u0435 \u043f\u0440\u0430\u0437\u0435\u043d",filterOperatorIsAnyOf:"\u0435 \u043d\u044f\u043a\u043e\u0439 \u043e\u0442","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u0421\u044a\u0434\u044a\u0440\u0436\u0430",headerFilterOperatorEquals:"\u0420\u0430\u0432\u043do",headerFilterOperatorStartsWith:"\u0417\u0430\u043f\u043e\u0447\u0432\u0430 \u0441",headerFilterOperatorEndsWith:"\u0417\u0430\u0432\u044a\u0440\u0448\u0432\u0430 \u0441",headerFilterOperatorIs:"\u0420\u0430\u0432\u043d\u043e \u0435 \u043d\u0430",headerFilterOperatorNot:"\u041d\u0435 \u0441\u0435 \u0440\u0430\u0432\u043d\u044f\u0432\u0430 \u043d\u0430",headerFilterOperatorAfter:"\u0421\u043b\u0435\u0434",headerFilterOperatorOnOrAfter:"\u0421\u043b\u0435\u0434 (\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u043d\u043e)",headerFilterOperatorBefore:"\u041f\u0440\u0435\u0434\u0438",headerFilterOperatorOnOrBefore:"\u041f\u0440\u0435\u0434\u0438 (\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u043d\u043e)",headerFilterOperatorIsEmpty:"\u041f\u0440\u0430\u0437\u0435\u043d",headerFilterOperatorIsNotEmpty:"\u041d\u0435 \u0435 \u043f\u0440\u0430\u0437\u0435\u043d",headerFilterOperatorIsAnyOf:"\u0412\u0441\u0438\u0447\u043a\u043e \u043e\u0442","headerFilterOperator=":"\u0420\u0430\u0432\u043d\u043e","headerFilterOperator!=":"\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u043e","headerFilterOperator>":"\u041f\u043e-\u0433\u043e\u043b\u044f\u043c\u043e \u043e\u0442","headerFilterOperator>=":"\u041f\u043e-\u0433\u043e\u043b\u044f\u043c\u043e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e \u043d\u0430","headerFilterOperator<":"\u041f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442","headerFilterOperator<=":"\u041f\u043e-\u043c\u0430\u043b\u043a\u043e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e \u043d\u0430",filterValueAny:"\u0432\u0441\u044f\u043a\u0430\u043a\u0432\u0438",filterValueTrue:"\u0432\u044f\u0440\u043d\u043e",filterValueFalse:"\u043d\u0435\u0432\u044f\u0440\u043d\u043e",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0436\u0438 \u043a\u043e\u043b\u043e\u043d\u0438\u0442\u0435",columnMenuManageColumns:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0438",columnMenuFilter:"\u0424\u0438\u043b\u0442\u0440\u0438",columnMenuHideColumn:"\u0421\u043a\u0440\u0438\u0439",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0430\u043d\u0435\u0442\u043e",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u0432\u044a\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u043d\u0438\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnHeaderFiltersTooltipActive:e=>`${e} \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438`,columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \u0438\u0437\u0431\u0440\u0430\u043d\u0438 \u0440\u0435\u0434\u043e\u0432\u0435`:`${e.toLocaleString()} \u0438\u0437\u0431\u0440\u0430\u043d \u0440\u0435\u0434`,footerTotalRows:"\u041e\u0431\u0449\u043e \u0420\u0435\u0434\u043e\u0432\u0435:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u043e\u0442 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0447\u0435",checkboxSelectionSelectAllRows:"\u0418\u0437\u0431\u0435\u0440\u0438 \u0432\u0441\u0438\u0447\u043a\u0438 \u0440\u0435\u0434\u043e\u0432\u0435",checkboxSelectionUnselectAllRows:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0438\u0437\u0431\u043e\u0440\u0430 \u043d\u0430 \u0432\u0441\u0438\u0447\u043a\u0438 \u0440\u0435\u0434\u043e\u0432\u0435",checkboxSelectionSelectRow:"\u0418\u0437\u0431\u0435\u0440\u0438 \u0440\u0435\u0434",checkboxSelectionUnselectRow:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0438\u0437\u0431\u043e\u0440\u0430 \u043d\u0430 \u0440\u0435\u0434",booleanCellTrueLabel:"\u0434\u0430",booleanCellFalseLabel:"\u043d\u0435",actionsCellMore:"\u043e\u0449\u0435",pinToLeft:"\u0417\u0430\u043a\u0430\u0447\u0438 \u0432 \u043b\u044f\u0432\u043e",pinToRight:"\u0417\u0430\u043a\u0430\u0447\u0438 \u0432 \u0434\u044f\u0441\u043d\u043e",unpin:"\u041e\u0442\u043a\u0430\u0447\u0438",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u0430",treeDataExpand:"\u0432\u0438\u0436 \u0434\u0435\u0446\u0430",treeDataCollapse:"\u0441\u043a\u0440\u0438\u0439 \u0434\u0435\u0446\u0430\u0442\u0430",groupingColumnHeaderName:"\u0413\u0440\u0443\u043f\u0430",groupColumn:e=>`\u0413\u0440\u0443\u043f\u0438\u0440\u0430\u0439 \u043f\u043e ${e}`,unGroupColumn:e=>`\u0421\u043f\u0440\u0438 \u0433\u0440\u0443\u043f\u0438\u0440\u0430\u043d\u0435 \u043f\u043e ${e}`,detailPanelToggle:"\u041f\u0440\u0435\u0432\u043a\u043b\u044e\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0430 \u0441 \u0434\u0435\u0442\u0430\u0439\u043b\u0438",expandDetailPanel:"\u0420\u0430\u0437\u0433\u044a\u0432\u0430\u043d\u0435",collapseDetailPanel:"\u0421\u0432\u0438\u0432\u0430\u043d\u0435",rowReorderingHeaderName:"\u041f\u043e\u0434\u0440\u0435\u0434\u0431\u0430 \u043d\u0430 \u0440\u0435\u0434\u043e\u0432\u0435",aggregationMenuItemHeader:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0430\u043d\u0435",aggregationFunctionLabelSum:"\u0441\u0443\u043c\u0430",aggregationFunctionLabelAvg:"\u0441\u0440\u0441\u0442",aggregationFunctionLabelMin:"\u043c\u0438\u043d",aggregationFunctionLabelMax:"\u043c\u0430\u043a\u0441",aggregationFunctionLabelSize:"\u0440\u0430\u0437\u043c\u0435\u0440"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u044a\u0442\u044f"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0420\u0435\u0434\u043e\u0432\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u0417\u0432\u0435\u0437\u0434${1!==e?"\u0438":"\u0430"}`,emptyLabelText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438"}},MuiAutocomplete:{defaultProps:{clearText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438",loadingText:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u2026",noOptionsText:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u0438 \u043e\u043f\u0446\u0438\u0438",openText:"\u041e\u0442\u0432\u043e\u0440\u0438"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"}},MuiPagination:{defaultProps:{"aria-label":"\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u041a\u044a\u043c "}\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ${t}`:"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"}}}}),bj=fj({noRowsLabel:"\u017d\xe1dn\xe9 z\xe1znamy",noResultsOverlayLabel:"Nena\u0161ly se \u017eadn\xe9 v\xfdsledky.",toolbarDensity:"Zobrazen\xed",toolbarDensityLabel:"Zobrazen\xed",toolbarDensityCompact:"Kompaktn\xed",toolbarDensityStandard:"Standartn\xed",toolbarDensityComfortable:"Komfortn\xed",toolbarColumns:"Sloupce",toolbarColumnsLabel:"Vybrat sloupec",toolbarFilters:"Filtry",toolbarFiltersLabel:"Zobrazit filtry",toolbarFiltersTooltipHide:"Skr\xfdt filtry",toolbarFiltersTooltipShow:"Zobrazit filtry",toolbarFiltersTooltipActive:e=>{let t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),`${e} ${t}`},toolbarQuickFilterPlaceholder:"Hledat\u2026",toolbarQuickFilterLabel:"Hledat",toolbarQuickFilterDeleteIconLabel:"Vymazat",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"St\xe1hnout jako CSV",toolbarExportPrint:"Vytisknout",toolbarExportExcel:"St\xe1hnout jako Excel",columnsPanelTextFieldLabel:"Naj\xedt sloupec",columnsPanelTextFieldPlaceholder:"N\xe1zev sloupce",columnsPanelDragIconLabel:"Uspo\u0159\xe1dat sloupce",columnsPanelShowAllButton:"Zobrazit v\u0161e",columnsPanelHideAllButton:"Skr\xfdt v\u0161e",filterPanelAddFilter:"P\u0159idat filtr",filterPanelRemoveAll:"Odstranit v\u0161e",filterPanelDeleteIconLabel:"Odstranit",filterPanelLogicOperator:"Logick\xfd oper\xe1tor",filterPanelOperator:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Nebo",filterPanelColumns:"Sloupce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtru",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 se",filterOperatorStartsWith:"za\u010d\xedn\xe1 na",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nen\xed",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je po v\u010detn\u011b",filterOperatorBefore:"je p\u0159ed",filterOperatorOnOrBefore:"je p\u0159ed v\u010detn\u011b",filterOperatorIsEmpty:"je pr\xe1zdn\xfd",filterOperatorIsNotEmpty:"nen\xed pr\xe1zdn\xfd",filterOperatorIsAnyOf:"je jeden z","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Obsahuje",headerFilterOperatorEquals:"Rovn\xe1 se",headerFilterOperatorStartsWith:"Za\u010d\xedn\xe1 na",headerFilterOperatorEndsWith:"Kon\u010d\xed na",headerFilterOperatorIs:"Je",headerFilterOperatorNot:"Nen\xed",headerFilterOperatorAfter:"Je po",headerFilterOperatorOnOrAfter:"Je po v\u010detn\u011b",headerFilterOperatorBefore:"Je p\u0159ed",headerFilterOperatorOnOrBefore:"Je p\u0159ed v\u010detn\u011b",headerFilterOperatorIsEmpty:"Je pr\xe1zdn\xfd",headerFilterOperatorIsNotEmpty:"Nen\xed pr\xe1zdn\xfd",headerFilterOperatorIsAnyOf:"Je jeden z","headerFilterOperator=":"Rovn\xe1 se","headerFilterOperator!=":"Nerovn\xe1 se","headerFilterOperator>":"V\u011bt\u0161\xed ne\u017e","headerFilterOperator>=":"V\u011bt\u0161\xed ne\u017e nebo rovno","headerFilterOperator<":"Men\u0161\xed ne\u017e","headerFilterOperator<=":"Men\u0161\xed ne\u017e nebo rovno",filterValueAny:"jak\xfdkoliv",filterValueTrue:"ano",filterValueFalse:"ne",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazit sloupce",columnMenuManageColumns:"Spravovat sloupce",columnMenuFilter:"Filtr",columnMenuHideColumn:"Skr\xfdt",columnMenuUnsort:"Zru\u0161it filtry",columnMenuSortAsc:"Se\u0159adit vzestupn\u011b",columnMenuSortDesc:"Se\u0159adit sestupn\u011b",columnHeaderFiltersTooltipActive:e=>{let t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),`${e} ${t}`},columnHeaderFiltersLabel:"Zobrazit filtry",columnHeaderSortIconLabel:"Filtrovat",footerRowSelected:e=>{let t="vybran\xfdch z\xe1znam\u016f";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),`${e} ${t}`},footerTotalRows:"Celkem \u0159\xe1dk\u016f:",footerTotalVisibleRows:(e,t)=>{const n=t.toString(),r=n[0],i=["4","6","7"].includes(r)||"1"===r&&n.length%3===0?"ze":"z";return`${e.toLocaleString()} ${i} ${t.toLocaleString()}`},checkboxSelectionHeaderName:"V\xfdb\u011br \u0159\xe1dku",checkboxSelectionSelectAllRows:"Ozna\u010dit v\u0161echny \u0159\xe1dky",checkboxSelectionUnselectAllRows:"Odzna\u010dit v\u0161echny \u0159\xe1dky",checkboxSelectionSelectRow:"Ozna\u010dit \u0159\xe1dek",checkboxSelectionUnselectRow:"Odzna\u010dit \u0159\xe1dek",booleanCellTrueLabel:"ano",booleanCellFalseLabel:"ne",actionsCellMore:"v\xedce",pinToLeft:"P\u0159ipnout vlevo",pinToRight:"P\u0159ipnout vpravo",unpin:"Odepnout",treeDataGroupingHeaderName:"Skupina",treeDataExpand:"zobrazit potomky",treeDataCollapse:"skr\xfdt potomky",groupingColumnHeaderName:"Skupina",groupColumn:e=>`Zeskupit podle ${e}`,unGroupColumn:e=>`P\u0159estat zeskupovat podle ${e}`,detailPanelToggle:"P\u0159epnout detail panelu",expandDetailPanel:"Rozbalit",collapseDetailPanel:"Sbalit",rowReorderingHeaderName:"P\u0159euspo\u0159\xe1d\xe1v\xe1n\xed \u0159\xe1dk\u016f",aggregationMenuItemHeader:"Seskupov\xe1n\xed",aggregationFunctionLabelSum:"sou\u010det",aggregationFunctionLabelAvg:"pr\u016fm\u011br",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"po\u010det"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Uk\xe1zat cestu"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"J\xedt na p\u0159edchoz\xed str\xe1nku",labelRowsPerPage:"\u0158\xe1dk\u016f na str\xe1nce:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} z ${-1!==r?r:`v\xedce ne\u017e ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>1===e?`${e} hv\u011bzdi\u010dka`:e>=2&&e<=4?`${e} hv\u011bzdi\u010dky`:`${e} hv\u011bzdi\u010dek`,emptyLabelText:"Pr\xe1zdn\xe9"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazat",closeText:"Zav\u0159\xedt",loadingText:"Na\u010d\xedt\xe1n\xed\u2026",noOptionsText:"\u017d\xe1dn\xe9 mo\u017enosti",openText:"Otev\u0159\xedt"}},MuiAlert:{defaultProps:{closeText:"Zav\u0159\xedt"}},MuiPagination:{defaultProps:{"aria-label":"Navigace str\xe1nkov\xe1n\xedm",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"J\xedt na "}${t}. str\xe1nku`:"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"J\xedt na p\u0159edchoz\xed str\xe1nku"}}}}),_j=fj({noRowsLabel:"Ingen r\xe6kker",noResultsOverlayLabel:"Ingen resultater",toolbarDensity:"T\xe6thed",toolbarDensityLabel:"T\xe6thed",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Luftig",toolbarColumns:"Kolonne",toolbarColumnsLabel:"V\xe6lg kolonne",toolbarFilters:"Filtre",toolbarFiltersLabel:"Vis filtre",toolbarFiltersTooltipHide:"Skjul filtre",toolbarFiltersTooltipShow:"Vis filtre",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktive filtre`:`${e} aktivt filter`,toolbarQuickFilterPlaceholder:"S\xf8g\u2026",toolbarQuickFilterLabel:"S\xf8g",toolbarQuickFilterDeleteIconLabel:"Ryd",toolbarExport:"Eksport",toolbarExportLabel:"Eksporter",toolbarExportCSV:"Download som CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download som Excel",columnsPanelTextFieldLabel:"Find kolonne",columnsPanelTextFieldPlaceholder:"Kolonne titel",columnsPanelDragIconLabel:"Reorder kolonne",columnsPanelShowAllButton:"Vis alle",columnsPanelHideAllButton:"Skjul alle",filterPanelAddFilter:"Tilf\xf8j filter",filterPanelRemoveAll:"Fjern alle",filterPanelDeleteIconLabel:"Slet",filterPanelLogicOperator:"Logisk operator",filterPanelOperator:"Operatorer",filterPanelOperatorAnd:"Og",filterPanelOperatorOr:"Eller",filterPanelColumns:"Kolonne",filterPanelInputLabel:"V\xe6rdi",filterPanelInputPlaceholder:"Filter v\xe6rdi",filterOperatorContains:"indeholder",filterOperatorEquals:"lig med",filterOperatorStartsWith:"begynder med",filterOperatorEndsWith:"ender med",filterOperatorIs:"er lig med",filterOperatorNot:"er ikke lig med",filterOperatorAfter:"efter",filterOperatorOnOrAfter:"p\xe5 eller efter",filterOperatorBefore:"f\xf8r",filterOperatorOnOrBefore:"p\xe5 eller f\xf8r",filterOperatorIsEmpty:"indeholder ikke data",filterOperatorIsNotEmpty:"indeholder data",filterOperatorIsAnyOf:"indeholder en af","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Indeholder",headerFilterOperatorEquals:"Lig med",headerFilterOperatorStartsWith:"Begynder med",headerFilterOperatorEndsWith:"Ender med",headerFilterOperatorIs:"Er lig med",headerFilterOperatorNot:"Er ikke lig med",headerFilterOperatorAfter:"Efter",headerFilterOperatorOnOrAfter:"P\xe5 eller efter",headerFilterOperatorBefore:"F\xf8r",headerFilterOperatorOnOrBefore:"P\xe5 eller f\xf8r",headerFilterOperatorIsEmpty:"Indeholder ikke data",headerFilterOperatorIsNotEmpty:"Indeholder data",headerFilterOperatorIsAnyOf:"Indeholder en af","headerFilterOperator=":"Lig med","headerFilterOperator!=":"Ikke lig med","headerFilterOperator>":"St\xf8rre end","headerFilterOperator>=":"St\xf8rre end eller lig med","headerFilterOperator<":"Mindre end","headerFilterOperator<=":"Mindre end eller lig med",filterValueAny:"hvilken som helst",filterValueTrue:"positiv",filterValueFalse:"negativ",columnMenuLabel:"Menu",columnMenuShowColumns:"Vis Kolonner",columnMenuManageColumns:"Administrer kolonner",columnMenuFilter:"Filtre",columnMenuHideColumn:"Skjul",columnMenuUnsort:"Fjern sortering",columnMenuSortAsc:"Sorter stigende",columnMenuSortDesc:"Sorter faldende",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktive filtre`:"\xc9t aktivt filter",columnHeaderFiltersLabel:"Vis filtre",columnHeaderSortIconLabel:"Sorter",footerRowSelected:e=>1!==e?`${e.toLocaleString()} r\xe6kker valgt`:"\xc9n r\xe6kke valgt",footerTotalRows:"Antal r\xe6kker i alt:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} af ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Afkrydsningsvalg",checkboxSelectionSelectAllRows:"V\xe6lg alle r\xe6kker",checkboxSelectionUnselectAllRows:"Frav\xe6lg alle r\xe6kker",checkboxSelectionSelectRow:"V\xe6lg r\xe6kke",checkboxSelectionUnselectRow:"Frav\xe6lg r\xe6kke",booleanCellTrueLabel:"ja",booleanCellFalseLabel:"nej",actionsCellMore:"mere",pinToLeft:"Fastg\xf8r til venstre",pinToRight:"Fastg\xf8r til h\xf8jre",unpin:"Frigiv",treeDataGroupingHeaderName:"Gruppering",treeDataExpand:"Vis underelementer",treeDataCollapse:"Skjul underelementer",groupingColumnHeaderName:"Grupp\xe9r",groupColumn:e=>`Grupp\xe9r efter ${e}`,unGroupColumn:e=>`Fjern grupp\xe9ring efter ${e}`,detailPanelToggle:"Udvid/kollaps detaljepanel",expandDetailPanel:"Udvid",collapseDetailPanel:"Kollaps",rowReorderingHeaderName:"Omarrangering af r\xe6kker",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"gns",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"st\xf8rrelse"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"G\xe5 til den f\xf8rste side":"last"===e?"G\xe5 til den sidste side":"next"===e?"G\xe5 til den n\xe6ste side":"G\xe5 til den forrige side",labelRowsPerPage:"R\xe6kker pr side:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}-${n} af ${-1!==r?r:`mere end ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${1!==e?"er":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Slet",closeText:"Luk",loadingText:"Indl\xe6ser\u2026",noOptionsText:"Ingen muligheder",openText:"\xc5ben"}},MuiAlert:{defaultProps:{closeText:"Luk"}},MuiPagination:{defaultProps:{"aria-label":"Sideinddelings navigation",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Go to "}page ${t}`:"first"===e?"G\xe5 til den f\xf8rste side":"last"===e?"G\xe5 til den sidste side":"next"===e?"G\xe5 til den n\xe6ste side":"G\xe5 til den forrige side"}}}}),wj=fj({noRowsLabel:"Keine Eintr\xe4ge",noResultsOverlayLabel:"Keine Ergebnisse gefunden.",toolbarDensity:"Zeilenh\xf6he",toolbarDensityLabel:"Zeilenh\xf6he",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Breit",toolbarColumns:"Spalten",toolbarColumnsLabel:"Zeige Spaltenauswahl",toolbarFilters:"Filter",toolbarFiltersLabel:"Zeige Filter",toolbarFiltersTooltipHide:"Verberge Filter",toolbarFiltersTooltipShow:"Zeige Filter",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktive Filter`:`${e} aktiver Filter`,toolbarQuickFilterPlaceholder:"Suchen\u2026",toolbarQuickFilterLabel:"Suchen",toolbarQuickFilterDeleteIconLabel:"L\xf6schen",toolbarExport:"Exportieren",toolbarExportLabel:"Exportieren",toolbarExportCSV:"Download als CSV",toolbarExportPrint:"Drucken",toolbarExportExcel:"Download als Excel",columnsPanelTextFieldLabel:"Finde Spalte",columnsPanelTextFieldPlaceholder:"Spalten\xfcberschrift",columnsPanelDragIconLabel:"Spalte umsortieren",columnsPanelShowAllButton:"Zeige alle",columnsPanelHideAllButton:"Verberge alle",filterPanelAddFilter:"Filter hinzuf\xfcgen",filterPanelRemoveAll:"Alle entfernen",filterPanelDeleteIconLabel:"L\xf6schen",filterPanelLogicOperator:"Logische Operatoren",filterPanelOperator:"Operatoren",filterPanelOperatorAnd:"Und",filterPanelOperatorOr:"Oder",filterPanelColumns:"Spalten",filterPanelInputLabel:"Wert",filterPanelInputPlaceholder:"Wert filtern",filterOperatorContains:"enth\xe4lt",filterOperatorEquals:"ist gleich",filterOperatorStartsWith:"beginnt mit",filterOperatorEndsWith:"endet mit",filterOperatorIs:"ist",filterOperatorNot:"ist nicht",filterOperatorAfter:"ist nach",filterOperatorOnOrAfter:"ist am oder nach",filterOperatorBefore:"ist vor",filterOperatorOnOrBefore:"ist am oder vor",filterOperatorIsEmpty:"ist leer",filterOperatorIsNotEmpty:"ist nicht leer",filterOperatorIsAnyOf:"ist einer der Werte","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Enth\xe4lt",headerFilterOperatorEquals:"Gleich",headerFilterOperatorStartsWith:"Beginnt mit",headerFilterOperatorEndsWith:"Endet mit",headerFilterOperatorIs:"Ist",headerFilterOperatorNot:"Ist nicht",headerFilterOperatorAfter:"Ist nach",headerFilterOperatorOnOrAfter:"Ist am oder nach",headerFilterOperatorBefore:"Ist vor",headerFilterOperatorOnOrBefore:"Ist am oder vor",headerFilterOperatorIsEmpty:"Ist leer",headerFilterOperatorIsNotEmpty:"Ist nicht leer",headerFilterOperatorIsAnyOf:"Ist eines von","headerFilterOperator=":"Gleich","headerFilterOperator!=":"Ungleich","headerFilterOperator>":"Gr\xf6\xdfer als","headerFilterOperator>=":"Gr\xf6\xdfer als oder gleich","headerFilterOperator<":"Kleiner als","headerFilterOperator<=":"Kleiner als oder gleich",filterValueAny:"Beliebig",filterValueTrue:"Ja",filterValueFalse:"Nein",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"Zeige alle Spalten",columnMenuManageColumns:"Spalten verwalten",columnMenuFilter:"Filter",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Sortierung deaktivieren",columnMenuSortAsc:"Sortiere aufsteigend",columnMenuSortDesc:"Sortiere absteigend",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktive Filter`:`${e} aktiver Filter`,columnHeaderFiltersLabel:"Zeige Filter",columnHeaderSortIconLabel:"Sortieren",footerRowSelected:e=>1!==e?`${e.toLocaleString()} Eintr\xe4ge ausgew\xe4hlt`:`${e.toLocaleString()} Eintrag ausgew\xe4hlt`,footerTotalRows:"Gesamt:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} von ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox Auswahl",checkboxSelectionSelectAllRows:"Alle Zeilen ausw\xe4hlen",checkboxSelectionUnselectAllRows:"Alle Zeilen abw\xe4hlen",checkboxSelectionSelectRow:"Zeile ausw\xe4hlen",checkboxSelectionUnselectRow:"Zeile abw\xe4hlen",booleanCellTrueLabel:"Ja",booleanCellFalseLabel:"Nein",actionsCellMore:"Mehr",pinToLeft:"Links anheften",pinToRight:"Rechts anheften",unpin:"Losl\xf6sen",treeDataGroupingHeaderName:"Gruppe",treeDataExpand:"Kinder einblenden",treeDataCollapse:"Kinder ausblenden",groupingColumnHeaderName:"Gruppierung",groupColumn:e=>`Gruppieren nach ${e}`,unGroupColumn:e=>`Gruppierung nach ${e} aufheben`,detailPanelToggle:"Detailansicht Kippschalter",expandDetailPanel:"Aufklappen",collapseDetailPanel:"Zuklappen",rowReorderingHeaderName:"Reihen neu ordnen",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"Summe",aggregationFunctionLabelAvg:"Mittelwert",aggregationFunctionLabelMin:"Minimum",aggregationFunctionLabelMax:"Maximum",aggregationFunctionLabelSize:"Anzahl"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pfad anzeigen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"Zur vorherigen Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} von ${-1!==r?r:`mehr als ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${1!==e?"Sterne":"Stern"}`,emptyLabelText:"Keine Wertung"}},MuiAutocomplete:{defaultProps:{clearText:"Leeren",closeText:"Schlie\xdfen",loadingText:"Wird geladen\u2026",noOptionsText:"Keine Optionen",openText:"\xd6ffnen"}},MuiAlert:{defaultProps:{closeText:"Schlie\xdfen"}},MuiPagination:{defaultProps:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Gehe zu "}Seite ${t}`:"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"Zur vorherigen Seite"}}}}),xj=fj({noRowsLabel:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03c4\u03b1\u03c7\u03c9\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2",noResultsOverlayLabel:"\u0394\u03b5\u03bd \u03b2\u03c1\u03ad\u03b8\u03b7\u03ba\u03b1\u03bd \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03ad\u03c3\u03bc\u03b1\u03c4\u03b1.",toolbarDensity:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityLabel:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityCompact:"\u03a3\u03c5\u03bc\u03c0\u03b1\u03b3\u03ae\u03c2",toolbarDensityStandard:"\u03a0\u03c1\u03bf\u03ba\u03b1\u03b8\u03bf\u03c1\u03b9\u03c3\u03bc\u03ad\u03bd\u03bf",toolbarDensityComfortable:"\u03a0\u03bb\u03b1\u03c4\u03cd",toolbarColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarColumnsLabel:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarFilters:"\u03a6\u03af\u03bb\u03c4\u03c1\u03b1",toolbarFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipHide:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipShow:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipActive:e=>1!==e?`${e} \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1`:`${e} \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf`,toolbarQuickFilterPlaceholder:"\u0391\u03bd\u03b1\u03b6\u03ae\u03c4\u03b7\u03c3\u03b7\u2026",toolbarQuickFilterLabel:"\u0391\u03bd\u03b1\u03b6\u03ae\u03c4\u03b7\u03c3\u03b7",toolbarQuickFilterDeleteIconLabel:"\u039a\u03b1\u03b8\u03b1\u03c1\u03b9\u03c3\u03bc\u03cc\u03c2",toolbarExport:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportLabel:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportCSV:"\u039b\u03ae\u03c8\u03b7 \u03c9\u03c2 CSV",toolbarExportPrint:"\u0395\u03ba\u03c4\u03cd\u03c0\u03c9\u03c3\u03b7",toolbarExportExcel:"\u039b\u03ae\u03c8\u03b7 \u03c9\u03c2 Excel",columnsPanelTextFieldLabel:"\u0395\u03cd\u03c1\u03b5\u03c3\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelTextFieldPlaceholder:"\u0395\u03c0\u03b9\u03ba\u03b5\u03c6\u03b1\u03bb\u03af\u03b4\u03b1 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelDragIconLabel:"\u0391\u03bd\u03b1\u03b4\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelShowAllButton:"\u03a0\u03c1\u03bf\u03b2\u03bf\u03bb\u03ae \u03cc\u03bb\u03c9\u03bd",columnsPanelHideAllButton:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03cc\u03bb\u03c9\u03bd",filterPanelAddFilter:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterPanelRemoveAll:"\u0391\u03c6\u03b1\u03af\u03c1\u03b5\u03c3\u03b7 \u03cc\u03bb\u03c9\u03bd",filterPanelDeleteIconLabel:"\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae",filterPanelLogicOperator:"\u039b\u03bf\u03b3\u03b9\u03ba\u03cc\u03c2 \u03c4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ae\u03c2",filterPanelOperator:"\u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2",filterPanelOperatorAnd:"\u039a\u03b1\u03af",filterPanelOperatorOr:"\u0389",filterPanelColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",filterPanelInputLabel:"\u03a4\u03b9\u03bc\u03ae",filterPanelInputPlaceholder:"\u03a4\u03b9\u03bc\u03ae \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterOperatorContains:"\u03c0\u03b5\u03c1\u03b9\u03ad\u03c7\u03b5\u03b9",filterOperatorEquals:"\u03b9\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9",filterOperatorStartsWith:"\u03be\u03b5\u03ba\u03b9\u03bd\u03ac\u03b5\u03b9 \u03bc\u03b5",filterOperatorEndsWith:"\u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03bd\u03b5\u03b9 \u03bc\u03b5",filterOperatorIs:"\u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorNot:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03b5\u03c4\u03ac",filterOperatorOnOrAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03bc\u03b5\u03c4\u03ac",filterOperatorBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03b9\u03bd",filterOperatorOnOrBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03c0\u03c1\u03b9\u03bd",filterOperatorIsEmpty:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",filterOperatorIsNotEmpty:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",filterOperatorIsAnyOf:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03bf\u03c0\u03bf\u03b9\u03bf\u03b4\u03ae\u03c0\u03bf\u03c4\u03b5 \u03b1\u03c0\u03cc","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u03a0\u03b5\u03c1\u03b9\u03ad\u03c7\u03b5\u03b9",headerFilterOperatorEquals:"\u0399\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9",headerFilterOperatorStartsWith:"\u039e\u03b5\u03ba\u03b9\u03bd\u03ac\u03b5\u03b9 \u03bc\u03b5",headerFilterOperatorEndsWith:"\u03a4\u03b5\u03bb\u03b5\u03b9\u03ce\u03bd\u03b5\u03b9 \u03bc\u03b5",headerFilterOperatorIs:"\u0395\u03af\u03bd\u03b1\u03b9",headerFilterOperatorNot:"\u0394\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9",headerFilterOperatorAfter:"\u0395\u03af\u03bd\u03b1\u03b9 \u03bc\u03b5\u03c4\u03ac",headerFilterOperatorOnOrAfter:"\u0395\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03bc\u03b5\u03c4\u03ac",headerFilterOperatorBefore:"\u0395\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03b9\u03bd",headerFilterOperatorOnOrBefore:"\u0395\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03c0\u03c1\u03b9\u03bd",headerFilterOperatorIsEmpty:"\u0395\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",headerFilterOperatorIsNotEmpty:"\u0394\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",headerFilterOperatorIsAnyOf:"\u0395\u03af\u03bd\u03b1\u03b9 \u03bf\u03c0\u03bf\u03b9\u03bf\u03b4\u03ae\u03c0\u03bf\u03c4\u03b5 \u03b1\u03c0\u03cc","headerFilterOperator=":"\u0399\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9","headerFilterOperator!=":"\u0394\u03b5\u03bd \u03b9\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9","headerFilterOperator>":"\u039c\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc","headerFilterOperator>=":"\u039c\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03bf \u03ae \u03af\u03c3\u03bf \u03bc\u03b5","headerFilterOperator<":"\u039c\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc","headerFilterOperator<=":"\u039c\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03bf \u03ae \u03af\u03c3\u03bf \u03bc\u03b5",filterValueAny:"\u03bf\u03c0\u03bf\u03b9\u03bf\u03b4\u03ae\u03c0\u03bf\u03c4\u03b5",filterValueTrue:"\u03b1\u03bb\u03b7\u03b8\u03ad\u03c2",filterValueFalse:"\u03c8\u03b5\u03c5\u03b4\u03ad\u03c2",columnMenuLabel:"\u039c\u03b5\u03bd\u03bf\u03cd",columnMenuShowColumns:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bb\u03ce\u03bd",columnMenuManageColumns:"\u0394\u03b9\u03b1\u03c7\u03b5\u03af\u03c1\u03b9\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bb\u03ce\u03bd",columnMenuFilter:"\u03a6\u03af\u03bb\u03c4\u03c1\u03bf",columnMenuHideColumn:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7",columnMenuUnsort:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7\u03c2",columnMenuSortAsc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03b1\u03cd\u03be\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnMenuSortDesc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03c6\u03b8\u03af\u03bd\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1`:`${e} \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf`,columnHeaderFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",columnHeaderSortIconLabel:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b5\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ad\u03c2`:`${e.toLocaleString()} \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae`,footerTotalRows:"\u03a3\u03cd\u03bd\u03bf\u03bb\u03bf \u0393\u03c1\u03b1\u03bc\u03bc\u03ce\u03bd:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u03b1\u03c0\u03cc ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03c0\u03bb\u03b1\u03b9\u03c3\u03af\u03bf\u03c5 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5",checkboxSelectionSelectAllRows:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03cc\u03bb\u03b5\u03c2 \u03c4\u03b9\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ad\u03c2",checkboxSelectionUnselectAllRows:"\u039a\u03b1\u03c4\u03b1\u03c1\u03b3\u03ae\u03c3\u03b7 \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 \u03cc\u03bb\u03c9\u03bd \u03c4\u03c9\u03bd \u03c3\u03b5\u03b9\u03c1\u03ce\u03bd",checkboxSelectionSelectRow:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae\u03c2",checkboxSelectionUnselectRow:"\u039a\u03b1\u03c4\u03b1\u03c1\u03b3\u03ae\u03c3\u03b7 \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae\u03c2",booleanCellTrueLabel:"\u03bd\u03b1\u03af",booleanCellFalseLabel:"\u03cc\u03c7\u03b9",actionsCellMore:"\u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1",pinToLeft:"\u039a\u03b1\u03c1\u03c6\u03b9\u03c4\u03c3\u03ce\u03bc\u03b1 \u03c3\u03c4\u03b1 \u03b1\u03c1\u03b9\u03c3\u03c4\u03b5\u03c1\u03ac",pinToRight:"\u039a\u03b1\u03c1\u03c6\u03b9\u03c4\u03c3\u03ce\u03bc\u03b1 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03be\u03b9\u03ac",unpin:"\u039e\u03b5\u03ba\u03b1\u03c1\u03c6\u03af\u03c4\u03c3\u03c9\u03bc\u03b1",treeDataGroupingHeaderName:"\u039f\u03bc\u03b1\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7",treeDataExpand:"\u03b5\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c0\u03b5\u03c1\u03b9\u03b5\u03c7\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd",treeDataCollapse:"\u03b1\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03c0\u03b5\u03c1\u03b9\u03b5\u03c7\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd",groupingColumnHeaderName:"\u039f\u03bc\u03b1\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7",groupColumn:e=>`\u039f\u03bc\u03b1\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ba\u03b1\u03c4\u03ac ${e}`,unGroupColumn:e=>`\u0394\u03b9\u03b1\u03ba\u03bf\u03c0\u03ae \u03bf\u03bc\u03b1\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7\u03c2 \u03ba\u03b1\u03c4\u03ac ${e}`,detailPanelToggle:"\u0395\u03bd\u03b1\u03bb\u03bb\u03b1\u03b3\u03ae \u03c0\u03af\u03bd\u03b1\u03ba\u03b1 \u03bb\u03b5\u03c0\u03c4\u03bf\u03bc\u03b5\u03c1\u03b5\u03b9\u03ce\u03bd",expandDetailPanel:"\u0391\u03bd\u03ac\u03c0\u03c4\u03c5\u03be\u03b7",collapseDetailPanel:"\u03a3\u03cd\u03bc\u03c0\u03c4\u03c5\u03be\u03b7",rowReorderingHeaderName:"\u0391\u03bd\u03b1\u03b4\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ce\u03bd",aggregationMenuItemHeader:"\u03a3\u03c5\u03c3\u03c3\u03c9\u03bc\u03ac\u03c4\u03c9\u03c3\u03b7",aggregationFunctionLabelSum:"\u03ac\u03b8\u03c1\u03bf\u03b9\u03c3\u03bc\u03b1",aggregationFunctionLabelAvg:"\u03bc\u03ad\u03c3\u03b7 \u03c4\u03b9\u03bc\u03ae",aggregationFunctionLabelMin:"\u03b5\u03bb\u03ac\u03c7\u03b9\u03c3\u03c4\u03bf",aggregationFunctionLabelMax:"\u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03bf",aggregationFunctionLabelSize:"\u03bc\u03ad\u03b3\u03b5\u03b8\u03bf\u03c2"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03b4\u03b9\u03b1\u03b4\u03c1\u03bf\u03bc\u03ae\u03c2"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u03a0\u03c1\u03ce\u03c4\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"last"===e?"\u03a4\u03b5\u03bb\u03b5\u03c5\u03c4\u03b1\u03af\u03b1 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"next"===e?"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1",labelRowsPerPage:"\u0393\u03c1\u03b1\u03bc\u03bc\u03ad\u03c2 \u03b1\u03bd\u03b1 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u03b1\u03c0\u03cc ${-1!==r?r:`\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u0391\u03c3\u03c4\u03ad\u03c1\u03b9${1!==e?"\u03b1":""}`,emptyLabelText:"\u03a7\u03c9\u03c1\u03af\u03c2 \u03b2\u03b1\u03b8\u03bc\u03bf\u03bb\u03cc\u03b3\u03b7\u03c3\u03b7"}},MuiAutocomplete:{defaultProps:{clearText:"\u039a\u03b1\u03b8\u03b1\u03c1\u03b9\u03c3\u03bc\u03cc\u03c2",closeText:"\u039a\u03bb\u03b5\u03af\u03c3\u03b9\u03bc\u03bf",loadingText:"\u03a6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7\u2026",noOptionsText:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ad\u03c2",openText:"\u0386\u03bd\u03bf\u03b9\u03b3\u03bc\u03b1"}},MuiAlert:{defaultProps:{closeText:"\u039a\u03bb\u03b5\u03af\u03c3\u03b9\u03bc\u03bf"}},MuiPagination:{defaultProps:{"aria-label":"\u03a0\u03bb\u03bf\u03ae\u03b3\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03c3\u03b5\u03bb\u03af\u03b4\u03b5\u03c2",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u039c\u03b5\u03c4\u03ac\u03b2\u03b1\u03c3\u03b7 "}\u03c3\u03b5\u03bb\u03af\u03b4\u03b1 ${t}`:"first"===e?"\u03a0\u03c1\u03ce\u03c4\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"last"===e?"\u03a4\u03b5\u03bb\u03b5\u03c5\u03c4\u03b1\u03af\u03b1 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"next"===e?"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1":"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7 \u03c3\u03b5\u03bb\u03af\u03b4\u03b1"}}}}),kj=fj(hj,{}),Cj=fj({noRowsLabel:"Sin filas",noResultsOverlayLabel:"Resultados no encontrados",toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Est\xe1ndar",toolbarDensityComfortable:"C\xf3moda",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarFiltersTooltipActive:e=>e>1?`${e} filtros activos`:`${e} filtro activo`,toolbarQuickFilterPlaceholder:"Buscar\u2026",toolbarQuickFilterLabel:"Buscar",toolbarQuickFilterDeleteIconLabel:"Limpiar",toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",toolbarExportPrint:"Imprimir",toolbarExportExcel:"Descargar como Excel",columnsPanelTextFieldLabel:"Columna de b\xfasqueda",columnsPanelTextFieldPlaceholder:"T\xedtulo de columna",columnsPanelDragIconLabel:"Reordenar columna",columnsPanelShowAllButton:"Mostrar todo",columnsPanelHideAllButton:"Ocultar todo",filterPanelAddFilter:"Agregar filtro",filterPanelRemoveAll:"Remover todos",filterPanelDeleteIconLabel:"Borrar",filterPanelLogicOperator:"Operador l\xf3gico",filterPanelOperator:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor de filtro",filterOperatorContains:"contiene",filterOperatorEquals:"es igual",filterOperatorStartsWith:"comienza con",filterOperatorEndsWith:"termina con",filterOperatorIs:"es",filterOperatorNot:"no es",filterOperatorAfter:"es posterior",filterOperatorOnOrAfter:"es en o posterior",filterOperatorBefore:"es anterior",filterOperatorOnOrBefore:"es en o anterior",filterOperatorIsEmpty:"esta vac\xedo",filterOperatorIsNotEmpty:"no esta vac\xedo",filterOperatorIsAnyOf:"es cualquiera de","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contiene",headerFilterOperatorEquals:"Es igual a",headerFilterOperatorStartsWith:"Comienza con",headerFilterOperatorEndsWith:"Termina con",headerFilterOperatorIs:"Es",headerFilterOperatorNot:"No es",headerFilterOperatorAfter:"Esta despu\xe9s de",headerFilterOperatorOnOrAfter:"Esta en o despu\xe9s de",headerFilterOperatorBefore:"Esta antes de",headerFilterOperatorOnOrBefore:"Esta en o antes de",headerFilterOperatorIsEmpty:"Esta vac\xedo",headerFilterOperatorIsNotEmpty:"No esta vac\xedo",headerFilterOperatorIsAnyOf:"Es cualquiera de","headerFilterOperator=":"Es igual a","headerFilterOperator!=":"Es diferente a","headerFilterOperator>":"Es mayor que","headerFilterOperator>=":"Es mayor o igual que","headerFilterOperator<":"Es menor que","headerFilterOperator<=":"Es menor o igual que",filterValueAny:"cualquiera",filterValueTrue:"verdadero",filterValueFalse:"falso",columnMenuLabel:"Men\xfa",columnMenuShowColumns:"Mostrar columnas",columnMenuManageColumns:"Administrar columnas",columnMenuFilter:"Filtro",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desordenar",columnMenuSortAsc:"Ordenar ASC",columnMenuSortDesc:"Ordenar DESC",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtros activos`:`${e} filtro activo`,columnHeaderFiltersLabel:"Mostrar filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:e=>e>1?`${e.toLocaleString()} filas seleccionadas`:`${e.toLocaleString()} fila seleccionada`,footerTotalRows:"Filas Totales:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} de ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Seleccionar casilla",checkboxSelectionSelectAllRows:"Seleccionar todas las filas",checkboxSelectionUnselectAllRows:"Deseleccionar todas las filas",checkboxSelectionSelectRow:"Seleccionar fila",checkboxSelectionUnselectRow:"Deseleccionar fila",booleanCellTrueLabel:"si",booleanCellFalseLabel:"no",actionsCellMore:"m\xe1s",pinToLeft:"Anclar a la izquierda",pinToRight:"Anclar a la derecha",unpin:"Desanclar",treeDataGroupingHeaderName:"Grupo",treeDataExpand:"mostrar hijos",treeDataCollapse:"ocultar hijos",groupingColumnHeaderName:"Grupo",groupColumn:e=>`Agrupar por ${e}`,unGroupColumn:e=>`No agrupar por ${e}`,detailPanelToggle:"Alternar detalle",expandDetailPanel:"Expandir",collapseDetailPanel:"Contraer",rowReorderingHeaderName:"Reordenar filas",aggregationMenuItemHeader:"Agregaci\xf3n",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"tama\xf1o"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar ruta"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"Ir a la p\xe1gina anterior",labelRowsPerPage:"Filas por p\xe1gina:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} de ${-1!==r?r:`m\xe1s de ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${1!==e?"s":""}`,emptyLabelText:"Vac\xedo"}},MuiAutocomplete:{defaultProps:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando\u2026",noOptionsText:"Sin opciones",openText:"Abierto"}},MuiAlert:{defaultProps:{closeText:"Cerrar"}},MuiPagination:{defaultProps:{"aria-label":"Paginador",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Ir a la "}p\xe1gina ${t}`:"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"Ir a la p\xe1gina anterior"}}}}),Sj=fj({noRowsLabel:"\u0628\u062f\u0648\u0646 \u0633\u0637\u0631",noResultsOverlayLabel:"\u0646\u062a\u06cc\u062c\u0647 \u0627\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.",toolbarDensity:"\u062a\u0631\u0627\u06a9\u0645",toolbarDensityLabel:"\u062a\u0631\u0627\u06a9\u0645",toolbarDensityCompact:"\u0641\u0634\u0631\u062f\u0647",toolbarDensityStandard:"\u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f",toolbarDensityComfortable:"\u0631\u0627\u062d\u062a",toolbarColumns:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627",toolbarColumnsLabel:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",toolbarFilters:"\u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersLabel:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipHide:"\u0645\u062e\u0641\u06cc \u06a9\u0631\u062f\u0646 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipShow:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipActive:e=>1!==e?`${e} \u0641\u06cc\u0644\u062a\u0631\u0647\u0627\u06cc \u0641\u0639\u0627\u0644`:`${e} \u0641\u06cc\u0644\u062a\u0631 \u0641\u0639\u0627\u0644`,toolbarQuickFilterPlaceholder:"\u062c\u0633\u062a\u062c\u0648...",toolbarQuickFilterLabel:"\u062c\u0633\u062a\u062c\u0648",toolbarQuickFilterDeleteIconLabel:"\u062d\u0630\u0641",toolbarExport:"\u062e\u0631\u0648\u062c\u06cc",toolbarExportLabel:"\u062e\u0631\u0648\u062c\u06cc",toolbarExportCSV:"\u062f\u0627\u0646\u0644\u0648\u062f \u0628\u0647 \u0635\u0648\u0631\u062a CSV",toolbarExportPrint:"\u0686\u0627\u067e",toolbarExportExcel:"\u062f\u0627\u0646\u0644\u0648\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u06a9\u0633\u0644",columnsPanelTextFieldLabel:"\u067e\u06cc\u062f\u0627\u06a9\u0631\u062f\u0646 \u0633\u062a\u0648\u0646",columnsPanelTextFieldPlaceholder:"\u0639\u0646\u0648\u0627\u0646 \u0633\u062a\u0648\u0646",columnsPanelDragIconLabel:"\u062c\u0627\u200c\u0628\u0647\u200c\u062c\u0627\u06cc\u06cc \u0633\u062a\u0648\u0646",columnsPanelShowAllButton:"\u0646\u0645\u0627\u06cc\u0634 \u0647\u0645\u0647",columnsPanelHideAllButton:"\u0645\u062e\u0641\u06cc \u0647\u0645\u0647",filterPanelAddFilter:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0641\u06cc\u0644\u062a\u0631",filterPanelRemoveAll:"\u062d\u0630\u0641 \u0647\u0645\u0647",filterPanelDeleteIconLabel:"\u062d\u0630\u0641",filterPanelLogicOperator:"\u0639\u0645\u0644\u06af\u0631 \u0645\u0646\u0637\u0642\u06cc",filterPanelOperator:"\u0639\u0645\u0644\u06af\u0631\u0647\u0627",filterPanelOperatorAnd:"\u0648",filterPanelOperatorOr:"\u06cc\u0627",filterPanelColumns:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627",filterPanelInputLabel:"\u0645\u0642\u062f\u0627\u0631",filterPanelInputPlaceholder:"\u0641\u06cc\u0644\u062a\u0631 \u0645\u0642\u062f\u0627\u0631",filterOperatorContains:"\u0634\u0627\u0645\u0644",filterOperatorEquals:"\u0645\u0633\u0627\u0648\u06cc",filterOperatorStartsWith:"\u0634\u0631\u0648\u0639 \u0628\u0627",filterOperatorEndsWith:"\u067e\u0627\u06cc\u0627\u0646 \u0628\u0627",filterOperatorIs:"\u0647\u0633\u062a",filterOperatorNot:"\u0646\u06cc\u0633\u062a",filterOperatorAfter:"\u0628\u0639\u062f \u0627\u0632",filterOperatorOnOrAfter:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0628\u0639\u062f\u0634",filterOperatorBefore:"\u0642\u0628\u0644\u0634",filterOperatorOnOrBefore:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0642\u0628\u0644\u0634",filterOperatorIsEmpty:"\u062e\u0627\u0644\u06cc \u0627\u0633\u062a",filterOperatorIsNotEmpty:"\u062e\u0627\u0644\u06cc \u0646\u06cc\u0633\u062a",filterOperatorIsAnyOf:"\u0647\u0631 \u06cc\u06a9 \u0627\u0632","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u0634\u0627\u0645\u0644",headerFilterOperatorEquals:"\u0645\u0633\u0627\u0648\u06cc",headerFilterOperatorStartsWith:"\u0634\u0631\u0648\u0639 \u0628\u0627",headerFilterOperatorEndsWith:"\u067e\u0627\u06cc\u0627\u0646 \u0628\u0627",headerFilterOperatorIs:"\u0647\u0633\u062a",headerFilterOperatorNot:"\u0646\u06cc\u0633\u062a",headerFilterOperatorAfter:"\u0628\u0639\u062f \u0627\u0632",headerFilterOperatorOnOrAfter:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0628\u0639\u062f \u0627\u0632",headerFilterOperatorBefore:"\u0642\u0628\u0644 \u0627\u0632",headerFilterOperatorOnOrBefore:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0642\u0628\u0644 \u0627\u0632",headerFilterOperatorIsEmpty:"\u062e\u0627\u0644\u06cc \u0627\u0633\u062a",headerFilterOperatorIsNotEmpty:"\u062e\u0627\u0644\u06cc \u0646\u06cc\u0633\u062a",headerFilterOperatorIsAnyOf:"\u0647\u0631 \u06cc\u06a9 \u0627\u0632","headerFilterOperator=":"\u0645\u0633\u0627\u0648\u06cc","headerFilterOperator!=":"\u0646\u0627\u0645\u0633\u0627\u0648\u06cc","headerFilterOperator>":"\u0628\u0632\u0631\u06af\u062a\u0631","headerFilterOperator>=":"\u0628\u0632\u0631\u06af\u062a\u0631 \u06cc\u0627 \u0645\u0633\u0627\u0648\u06cc","headerFilterOperator<":"\u06a9\u0648\u0686\u06a9\u062a\u0631","headerFilterOperator<=":"\u06a9\u0648\u0686\u06a9\u062a\u0631 \u06cc\u0627 \u0645\u0633\u0627\u0648\u06cc",filterValueAny:"\u0647\u0631\u0686\u06cc\u0632\u06cc",filterValueTrue:"\u0635\u062d\u06cc\u062d",filterValueFalse:"\u063a\u0644\u0637",columnMenuLabel:"\u0641\u0647\u0631\u0633\u062a",columnMenuShowColumns:"\u0646\u0645\u0627\u06cc\u0634 \u0633\u062a\u0648\u0646\u200c\u0647\u0627",columnMenuManageColumns:"\u0645\u062f\u06cc\u0631\u06cc\u062a \u0633\u062a\u0648\u0646\u200c\u0647\u0627",columnMenuFilter:"\u0641\u06cc\u0644\u062a\u0631",columnMenuHideColumn:"\u0645\u062e\u0641\u06cc",columnMenuUnsort:"\u0646\u0627\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646",columnMenuSortAsc:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646 \u0635\u0639\u0648\u062f\u06cc",columnMenuSortDesc:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646 \u0646\u0632\u0648\u0644\u06cc",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} \u0641\u06cc\u0644\u062a\u0631\u200c\u0647\u0627\u06cc \u0641\u0639\u0627\u0644`:`${e} \u0641\u06cc\u0644\u062a\u0631 \u0641\u0639\u0627\u0644`,columnHeaderFiltersLabel:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",columnHeaderSortIconLabel:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \u0633\u0637\u0631\u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647`:`${e.toLocaleString()} \u0633\u0637\u0631 \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647`,footerTotalRows:"\u0645\u062c\u0645\u0648\u0639 \u0633\u0637\u0631\u0647\u0627:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u0627\u0632 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0686\u06a9\u200c\u0628\u0627\u06a9\u0633 \u0627\u0646\u062a\u062e\u0627\u0628",checkboxSelectionSelectAllRows:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0647\u0645\u0647\u200c\u06cc \u0631\u062f\u06cc\u0641\u200c\u0647\u0627",checkboxSelectionUnselectAllRows:"\u0644\u063a\u0648 \u0627\u0646\u062a\u062e\u0627\u0628 \u0647\u0645\u0647\u200c\u06cc \u0631\u062f\u06cc\u0641\u200c\u0647\u0627",checkboxSelectionSelectRow:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0631\u062f\u06cc\u0641",checkboxSelectionUnselectRow:"\u0644\u063a\u0648 \u0627\u0646\u062a\u062e\u0627\u0628 \u0631\u062f\u06cc\u0641",booleanCellTrueLabel:"\u0635\u062d\u06cc\u062d",booleanCellFalseLabel:"\u063a\u0644\u0637",actionsCellMore:"\u0628\u06cc\u0634\u062a\u0631",pinToLeft:"\u0633\u0646\u062c\u0627\u0642 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0686\u067e",pinToRight:"\u0633\u0646\u062c\u0627\u0642 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0631\u0627\u0633\u062a",unpin:"\u0628\u0631\u062f\u0627\u0634\u062a\u0646 \u0633\u0646\u062c\u0627\u0642",treeDataGroupingHeaderName:"\u06af\u0631\u0648\u0647\u200c\u0628\u0646\u062f\u06cc",treeDataExpand:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u0631\u0632\u0646\u062f\u0627\u0646",treeDataCollapse:"\u067e\u0646\u0647\u0627\u0646\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0632\u0646\u062f\u0627\u0646",groupingColumnHeaderName:"\u06af\u0631\u0648\u0647\u200c\u0628\u0646\u062f\u06cc",groupColumn:e=>`\u06af\u0631\u0648\u0647\u200c\u0628\u0646\u062f\u06cc \u0628\u0631\u0627\u0633\u0627\u0633 ${e}`,unGroupColumn:e=>`\u0644\u063a\u0648 \u06af\u0631\u0648\u0647\u200c\u0628\u0646\u062f\u06cc \u0628\u0631\u0627\u0633\u0627\u0633 ${e}`,detailPanelToggle:"\u067e\u0646\u0644 \u062c\u0632\u0626\u06cc\u0627\u062a",expandDetailPanel:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646 \u067e\u0646\u0644 \u062c\u0632\u0626\u06cc\u0627\u062a",collapseDetailPanel:"\u0628\u0633\u062a\u0646 \u067e\u0646\u0644 \u062c\u0632\u0626\u06cc\u0627\u062a",rowReorderingHeaderName:"\u062a\u0631\u062a\u06cc\u0628 \u0645\u062c\u062f\u062f \u0633\u0637\u0631",aggregationMenuItemHeader:"\u062a\u062c\u0645\u06cc\u0639",aggregationFunctionLabelSum:"\u062c\u0645\u0639",aggregationFunctionLabelAvg:"\u0645\u06cc\u0627\u0646\u06af\u06cc\u0646",aggregationFunctionLabelMin:"\u062d\u062f\u0627\u0642\u0644",aggregationFunctionLabelMax:"\u062d\u062f\u0627\u06a9\u062b\u0631",aggregationFunctionLabelSize:"\u0627\u0646\u062f\u0627\u0632\u0647"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0646\u0645\u0627\u06cc\u0634 \u0645\u0633\u06cc\u0631"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc",labelRowsPerPage:"\u062a\u0639\u062f\u0627\u062f \u0633\u0637\u0631\u0647\u0627\u06cc \u0647\u0631 \u0635\u0641\u062d\u0647:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u0627\u0632 ${-1!==r?r:`\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u0633\u062a\u0627\u0631\u0647`,emptyLabelText:"\u062e\u0627\u0644\u06cc"}},MuiAutocomplete:{defaultProps:{clearText:"\u067e\u0627\u06a9\u200c\u06a9\u0631\u062f\u0646",closeText:"\u0628\u0633\u062a\u0646",loadingText:"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u2026",noOptionsText:"\u0628\u06cc\u200c\u0646\u062a\u06cc\u062c\u0647",openText:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646"}},MuiAlert:{defaultProps:{closeText:"\u0628\u0633\u062a\u0646"}},MuiPagination:{defaultProps:{"aria-label":"\u0646\u0627\u0648\u0628\u0631\u06cc \u0635\u0641\u062d\u0647",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u0631\u0641\u062a\u0646 \u0628\u0647 "}\u0635\u0641\u062d\u0647\u0654 ${t}`:"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc"}}}}),Mj=fj({noRowsLabel:"Ei rivej\xe4",noResultsOverlayLabel:"Ei tuloksia.",toolbarDensity:"Tiiveys",toolbarDensityLabel:"Tiiveys",toolbarDensityCompact:"Kompakti",toolbarDensityStandard:"Vakio",toolbarDensityComfortable:"Mukava",toolbarColumns:"Sarakkeet",toolbarColumnsLabel:"Valitse sarakkeet",toolbarFilters:"Suodattimet",toolbarFiltersLabel:"N\xe4yt\xe4 suodattimet",toolbarFiltersTooltipHide:"Piilota suodattimet",toolbarFiltersTooltipShow:"N\xe4yt\xe4 suodattimet",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktiivista suodatinta`:`${e} aktiivinen suodatin`,toolbarQuickFilterPlaceholder:"Hae\u2026",toolbarQuickFilterLabel:"Hae",toolbarQuickFilterDeleteIconLabel:"Tyhjenn\xe4",toolbarExport:"Vie",toolbarExportLabel:"Vie",toolbarExportCSV:"Lataa CSV-muodossa",toolbarExportPrint:"Tulosta",toolbarExportExcel:"Lataa Excel-muodossa",columnsPanelTextFieldLabel:"Etsi sarake",columnsPanelTextFieldPlaceholder:"Sarakkeen otsikko",columnsPanelDragIconLabel:"J\xe4rjest\xe4 sarake uudelleen",columnsPanelShowAllButton:"N\xe4yt\xe4 kaikki",columnsPanelHideAllButton:"Piilota kaikki",filterPanelAddFilter:"Lis\xe4\xe4 suodatin",filterPanelRemoveAll:"Poista kaikki",filterPanelDeleteIconLabel:"Poista",filterPanelLogicOperator:"Logiikkaoperaattori",filterPanelOperator:"Operaattorit",filterPanelOperatorAnd:"Ja",filterPanelOperatorOr:"Tai",filterPanelColumns:"Sarakkeet",filterPanelInputLabel:"Arvo",filterPanelInputPlaceholder:"Suodattimen arvo",filterOperatorContains:"sis\xe4lt\xe4\xe4",filterOperatorEquals:"on yht\xe4 suuri kuin",filterOperatorStartsWith:"alkaa",filterOperatorEndsWith:"p\xe4\xe4ttyy",filterOperatorIs:"on",filterOperatorNot:"ei ole",filterOperatorAfter:"on j\xe4lkeen",filterOperatorOnOrAfter:"on sama tai j\xe4lkeen",filterOperatorBefore:"on ennen",filterOperatorOnOrBefore:"on sama tai ennen",filterOperatorIsEmpty:"on tyhj\xe4",filterOperatorIsNotEmpty:"ei ole tyhj\xe4",filterOperatorIsAnyOf:"on mik\xe4 tahansa seuraavista","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Sis\xe4lt\xe4\xe4",headerFilterOperatorEquals:"On yht\xe4 suuri kuin",headerFilterOperatorStartsWith:"Alkaa",headerFilterOperatorEndsWith:"P\xe4\xe4ttyy",headerFilterOperatorIs:"On",headerFilterOperatorNot:"Ei ole",headerFilterOperatorAfter:"On j\xe4lkeen",headerFilterOperatorOnOrAfter:"On sama tai j\xe4lkeen",headerFilterOperatorBefore:"On ennen",headerFilterOperatorOnOrBefore:"On sama tai ennen",headerFilterOperatorIsEmpty:"On tyhj\xe4",headerFilterOperatorIsNotEmpty:"Ei ole tyhj\xe4",headerFilterOperatorIsAnyOf:"On mik\xe4 tahansa seuraavista","headerFilterOperator=":"On yht\xe4 suuri kuin","headerFilterOperator!=":"Ei ole yht\xe4 suuri kuin","headerFilterOperator>":"Enemm\xe4n kuin","headerFilterOperator>=":"Enemm\xe4n tai yht\xe4 paljon kuin","headerFilterOperator<":"V\xe4hemm\xe4n kuin","headerFilterOperator<=":"V\xe4hemm\xe4n tai yht\xe4 paljon kuin",filterValueAny:"mik\xe4 tahansa",filterValueTrue:"tosi",filterValueFalse:"ep\xe4tosi",columnMenuLabel:"Valikko",columnMenuShowColumns:"N\xe4yt\xe4 sarakkeet",columnMenuManageColumns:"Hallitse sarakkeita",columnMenuFilter:"Suodata",columnMenuHideColumn:"Piilota",columnMenuUnsort:"Poista j\xe4rjestys",columnMenuSortAsc:"J\xe4rjest\xe4 nousevasti",columnMenuSortDesc:"J\xe4rjest\xe4 laskevasti",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktiivista suodatinta`:`${e} aktiivinen suodatin`,columnHeaderFiltersLabel:"N\xe4yt\xe4 suodattimet",columnHeaderSortIconLabel:"J\xe4rjest\xe4",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rivi\xe4 valittu`:`${e.toLocaleString()} rivi valittu`,footerTotalRows:"Rivej\xe4 yhteens\xe4:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Valintaruutu",checkboxSelectionSelectAllRows:"Valitse kaikki rivit",checkboxSelectionUnselectAllRows:"Poista kaikkien rivien valinta",checkboxSelectionSelectRow:"Valitse rivi",checkboxSelectionUnselectRow:"Poista rivin valinta",booleanCellTrueLabel:"tosi",booleanCellFalseLabel:"ep\xe4tosi",actionsCellMore:"lis\xe4\xe4",pinToLeft:"Kiinnit\xe4 vasemmalle",pinToRight:"Kiinnit\xe4 oikealle",unpin:"Irrota kiinnitys",treeDataGroupingHeaderName:"Ryhm\xe4",treeDataExpand:"Laajenna",treeDataCollapse:"Supista",groupingColumnHeaderName:"Ryhm\xe4",groupColumn:e=>`Ryhmittelyperuste ${e}`,unGroupColumn:e=>`Poista ryhmittelyperuste ${e}`,detailPanelToggle:"Yksityiskohtapaneelin vaihto",expandDetailPanel:"Laajenna",collapseDetailPanel:"Tiivist\xe4",rowReorderingHeaderName:"Rivien uudelleenj\xe4rjestely",aggregationMenuItemHeader:"Koostaminen",aggregationFunctionLabelSum:"summa",aggregationFunctionLabelAvg:"ka.",aggregationFunctionLabelMin:"min.",aggregationFunctionLabelMax:"maks.",aggregationFunctionLabelSize:"koko"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"N\xe4yt\xe4 reitti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"Mene edelliselle sivulle",labelRowsPerPage:"Rivej\xe4 per sivu:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} / ${-1!==r?r:`enemm\xe4n kuin ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} T\xe4ht${1!==e?"e\xe4":"i"}`,emptyLabelText:"Tyhj\xe4"}},MuiAutocomplete:{defaultProps:{clearText:"Tyhjenn\xe4",closeText:"Sulje",loadingText:"Ladataan\u2026",noOptionsText:"Ei valintoja",openText:"Avaa"}},MuiAlert:{defaultProps:{closeText:"Sulje"}},MuiPagination:{defaultProps:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"sivu":"Mene sivulle"} ${t}`:"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"Mene edelliselle sivulle"}}}}),Tj=fj({noRowsLabel:"Pas de r\xe9sultats",noResultsOverlayLabel:"Aucun r\xe9sultat.",toolbarDensity:"Densit\xe9",toolbarDensityLabel:"Densit\xe9",toolbarDensityCompact:"Compacte",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonnes",toolbarColumnsLabel:"Choisir les colonnes",toolbarFilters:"Filtres",toolbarFiltersLabel:"Afficher les filtres",toolbarFiltersTooltipHide:"Cacher les filtres",toolbarFiltersTooltipShow:"Afficher les filtres",toolbarFiltersTooltipActive:e=>e>1?`${e} filtres actifs`:`${e} filtre actif`,toolbarQuickFilterPlaceholder:"Rechercher\u2026",toolbarQuickFilterLabel:"Recherche",toolbarQuickFilterDeleteIconLabel:"Supprimer",toolbarExport:"Exporter",toolbarExportLabel:"Exporter",toolbarExportCSV:"T\xe9l\xe9charger en CSV",toolbarExportPrint:"Imprimer",toolbarExportExcel:"T\xe9l\xe9charger pour Excel",columnsPanelTextFieldLabel:"Chercher une colonne",columnsPanelTextFieldPlaceholder:"Titre de la colonne",columnsPanelDragIconLabel:"R\xe9organiser la colonne",columnsPanelShowAllButton:"Tout afficher",columnsPanelHideAllButton:"Tout cacher",filterPanelAddFilter:"Ajouter un filtre",filterPanelRemoveAll:"Tout supprimer",filterPanelDeleteIconLabel:"Supprimer",filterPanelLogicOperator:"Op\xe9rateur logique",filterPanelOperator:"Op\xe9rateur",filterPanelOperatorAnd:"Et",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valeur",filterPanelInputPlaceholder:"Filtrer la valeur",filterOperatorContains:"contient",filterOperatorEquals:"est \xe9gal \xe0",filterOperatorStartsWith:"commence par",filterOperatorEndsWith:"se termine par",filterOperatorIs:"est",filterOperatorNot:"n'est pas",filterOperatorAfter:"post\xe9rieur",filterOperatorOnOrAfter:"\xe9gal ou post\xe9rieur",filterOperatorBefore:"ant\xe9rieur",filterOperatorOnOrBefore:"\xe9gal ou ant\xe9rieur",filterOperatorIsEmpty:"est vide",filterOperatorIsNotEmpty:"n'est pas vide",filterOperatorIsAnyOf:"fait partie de","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contient",headerFilterOperatorEquals:"Est \xe9gal \xe0",headerFilterOperatorStartsWith:"Commence par",headerFilterOperatorEndsWith:"Se termine par",headerFilterOperatorIs:"Est",headerFilterOperatorNot:"N'est pas",headerFilterOperatorAfter:"Post\xe9rieur",headerFilterOperatorOnOrAfter:"\xc9gal ou post\xe9rieur",headerFilterOperatorBefore:"Ant\xe9rieur",headerFilterOperatorOnOrBefore:"\xc9gal ou ant\xe9rieur",headerFilterOperatorIsEmpty:"Est vide",headerFilterOperatorIsNotEmpty:"N'est pas vide",headerFilterOperatorIsAnyOf:"Fait partie de","headerFilterOperator=":"Est \xe9gal \xe0","headerFilterOperator!=":"N'est pas \xe9gal \xe0","headerFilterOperator>":"Est sup\xe9rieur \xe0","headerFilterOperator>=":"Est sup\xe9rieur ou \xe9gal \xe0","headerFilterOperator<":"Est inf\xe9rieur \xe0","headerFilterOperator<=":"Est inf\xe9rieur ou \xe9gal \xe0",filterValueAny:"tous",filterValueTrue:"vrai",filterValueFalse:"faux",columnMenuLabel:"Menu",columnMenuShowColumns:"Afficher les colonnes",columnMenuManageColumns:"G\xe9rer les colonnes",columnMenuFilter:"Filtrer",columnMenuHideColumn:"Cacher",columnMenuUnsort:"Annuler le tri",columnMenuSortAsc:"Tri ascendant",columnMenuSortDesc:"Tri descendant",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtres actifs`:`${e} filtre actif`,columnHeaderFiltersLabel:"Afficher les filtres",columnHeaderSortIconLabel:"Trier",footerRowSelected:e=>e>1?`${e.toLocaleString()} lignes s\xe9lectionn\xe9es`:`${e.toLocaleString()} ligne s\xe9lectionn\xe9e`,footerTotalRows:"Total de lignes :",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} sur ${t.toLocaleString()}`,checkboxSelectionHeaderName:"S\xe9lection",checkboxSelectionSelectAllRows:"S\xe9lectionner toutes les lignes",checkboxSelectionUnselectAllRows:"D\xe9s\xe9lectionner toutes les lignes",checkboxSelectionSelectRow:"S\xe9lectionner la ligne",checkboxSelectionUnselectRow:"D\xe9s\xe9lectionner la ligne",booleanCellTrueLabel:"vrai",booleanCellFalseLabel:"faux",actionsCellMore:"Plus",pinToLeft:"\xc9pingler \xe0 gauche",pinToRight:"\xc9pingler \xe0 droite",unpin:"D\xe9s\xe9pingler",treeDataGroupingHeaderName:"Groupe",treeDataExpand:"afficher les enfants",treeDataCollapse:"masquer les enfants",groupingColumnHeaderName:"Groupe",groupColumn:e=>`Grouper par ${e}`,unGroupColumn:e=>`Arr\xeater de grouper par ${e}`,detailPanelToggle:"Afficher/masquer les d\xe9tails",expandDetailPanel:"Afficher",collapseDetailPanel:"Masquer",rowReorderingHeaderName:"Positionnement des lignes",aggregationMenuItemHeader:"Agr\xe9gation",aggregationFunctionLabelSum:"Somme",aggregationFunctionLabelAvg:"Moyenne",aggregationFunctionLabelMin:"Minimum",aggregationFunctionLabelMax:"Maximum",aggregationFunctionLabelSize:"Nombre d'\xe9l\xe9ments"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Montrer le chemin"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} sur ${-1!==r?r:`plus que ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${1!==e?"s":""}`,emptyLabelText:"Vide"}},MuiAutocomplete:{defaultProps:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"}},MuiAlert:{defaultProps:{closeText:"Fermer"}},MuiPagination:{defaultProps:{"aria-label":"navigation de pagination",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Aller \xe0 la "}page ${t}`:"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente"}}}}),Ej=fj({noRowsLabel:"\u05d0\u05d9\u05df \u05e9\u05d5\u05e8\u05d5\u05ea",noResultsOverlayLabel:"\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d5 \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea.",toolbarDensity:"\u05e6\u05e4\u05d9\u05e4\u05d5\u05ea",toolbarDensityLabel:"\u05e6\u05e4\u05d9\u05e4\u05d5\u05ea",toolbarDensityCompact:"\u05d3\u05d7\u05d5\u05e1\u05d4",toolbarDensityStandard:"\u05e8\u05d2\u05d9\u05dc\u05d4",toolbarDensityComfortable:"\u05d0\u05d5\u05d5\u05e8\u05d9\u05e8\u05d9\u05ea",toolbarColumns:"\u05e2\u05de\u05d5\u05d3\u05d5\u05ea",toolbarColumnsLabel:"\u05d1\u05d7\u05e8 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",toolbarFilters:"\u05e1\u05d9\u05e0\u05d5\u05df",toolbarFiltersLabel:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipHide:"\u05d4\u05e1\u05ea\u05e8 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipShow:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipActive:e=>1!==e?`${e} \u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd`:"\u05de\u05e1\u05e0\u05df \u05d0\u05d7\u05d3 \u05e4\u05e2\u05d9\u05dc",toolbarQuickFilterPlaceholder:"\u05d7\u05d9\u05e4\u05d5\u05e9\u2026",toolbarQuickFilterLabel:"\u05d7\u05d9\u05e4\u05d5\u05e9",toolbarQuickFilterDeleteIconLabel:"\u05e0\u05d9\u05e7\u05d5\u05d9",toolbarExport:"\u05d9\u05d9\u05e6\u05d5\u05d0",toolbarExportLabel:"\u05d9\u05d9\u05e6\u05d5\u05d0",toolbarExportCSV:"\u05d9\u05d9\u05e6\u05d5\u05d0 \u05dc- CSV",toolbarExportPrint:"\u05d4\u05d3\u05e4\u05e1\u05d4",toolbarExportExcel:"\u05d9\u05d9\u05e6\u05d5\u05d0 \u05dc- Excel",columnsPanelTextFieldLabel:"\u05d7\u05e4\u05e9 \u05e2\u05de\u05d5\u05d3\u05d4",columnsPanelTextFieldPlaceholder:"\u05db\u05d5\u05ea\u05e8\u05ea \u05e2\u05de\u05d5\u05d3\u05d4",columnsPanelDragIconLabel:"\u05e1\u05d3\u05e8 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea \u05de\u05d7\u05d3\u05e9",columnsPanelShowAllButton:"\u05d4\u05e6\u05d2 \u05d4\u05db\u05dc",columnsPanelHideAllButton:"\u05d4\u05e1\u05ea\u05e8 \u05d4\u05db\u05dc",filterPanelAddFilter:"\u05d4\u05d5\u05e1\u05e3 \u05de\u05e1\u05e0\u05df",filterPanelRemoveAll:"\u05de\u05d7\u05e7 \u05d4\u05db\u05dc",filterPanelDeleteIconLabel:"\u05de\u05d7\u05e7",filterPanelLogicOperator:"\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8 \u05dc\u05d5\u05d2\u05d9",filterPanelOperator:"\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8",filterPanelOperatorAnd:"\u05d5\u05d2\u05dd",filterPanelOperatorOr:"\u05d0\u05d5",filterPanelColumns:"\u05e2\u05de\u05d5\u05d3\u05d5\u05ea",filterPanelInputLabel:"\u05e2\u05e8\u05da",filterPanelInputPlaceholder:"\u05e2\u05e8\u05da \u05de\u05e1\u05e0\u05df",filterOperatorContains:"\u05de\u05db\u05d9\u05dc",filterOperatorEquals:"\u05e9\u05d5\u05d5\u05d4",filterOperatorStartsWith:"\u05de\u05ea\u05d7\u05d9\u05dc \u05d1-",filterOperatorEndsWith:"\u05e0\u05d2\u05de\u05e8 \u05d1-",filterOperatorIs:"\u05d4\u05d9\u05e0\u05d5",filterOperatorNot:"\u05d0\u05d9\u05e0\u05d5",filterOperatorAfter:"\u05d0\u05d7\u05e8\u05d9",filterOperatorOnOrAfter:"\u05d1- \u05d0\u05d5 \u05d0\u05d7\u05e8\u05d9",filterOperatorBefore:"\u05dc\u05e4\u05e0\u05d9",filterOperatorOnOrBefore:"\u05d1- \u05d0\u05d5 \u05dc\u05e4\u05e0\u05d9",filterOperatorIsEmpty:"\u05e8\u05d9\u05e7",filterOperatorIsNotEmpty:"\u05d0\u05d9\u05e0\u05d5 \u05e8\u05d9\u05e7",filterOperatorIsAnyOf:"\u05d4\u05d5\u05d0 \u05d0\u05d7\u05d3 \u05de-",headerFilterOperatorContains:"\u05de\u05db\u05d9\u05dc",headerFilterOperatorEquals:"\u05e9\u05d5\u05d5\u05d4",headerFilterOperatorStartsWith:"\u05de\u05ea\u05d7\u05d9\u05dc \u05d1-",headerFilterOperatorEndsWith:"\u05e0\u05d2\u05de\u05e8 \u05d1-",headerFilterOperatorIs:"\u05d4\u05d9\u05e0\u05d5",headerFilterOperatorNot:"\u05d0\u05d9\u05e0\u05d5",headerFilterOperatorAfter:"\u05d0\u05d7\u05e8\u05d9",headerFilterOperatorOnOrAfter:"\u05d1- \u05d0\u05d5 \u05d0\u05d7\u05e8\u05d9",headerFilterOperatorBefore:"\u05dc\u05e4\u05e0\u05d9",headerFilterOperatorOnOrBefore:"\u05d1- \u05d0\u05d5 \u05dc\u05e4\u05e0\u05d9",headerFilterOperatorIsEmpty:"\u05e8\u05d9\u05e7",headerFilterOperatorIsNotEmpty:"\u05d0\u05d9\u05e0\u05d5 \u05e8\u05d9\u05e7",headerFilterOperatorIsAnyOf:"\u05d4\u05d5\u05d0 \u05d0\u05d7\u05d3 \u05de-","headerFilterOperator=":"\u05e9\u05d5\u05d5\u05d4","headerFilterOperator!=":"\u05d0\u05d9\u05e0\u05d5 \u05e9\u05d5\u05d5\u05d4","headerFilterOperator>":"\u05d2\u05d3\u05d5\u05dc \u05de-","headerFilterOperator>=":"\u05d2\u05d3\u05d5\u05dc \u05e9\u05d5\u05d5\u05d4 \u05dc-","headerFilterOperator<":"\u05e7\u05d8\u05df \u05de-","headerFilterOperator<=":"\u05e7\u05d8\u05df \u05e9\u05d5\u05d5\u05d4 \u05dc-",filterValueAny:"\u05db\u05dc \u05e2\u05e8\u05da",filterValueTrue:"\u05db\u05df",filterValueFalse:"\u05dc\u05d0",columnMenuLabel:"\u05ea\u05e4\u05e8\u05d9\u05d8",columnMenuShowColumns:"\u05d4\u05e6\u05d2 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",columnMenuManageColumns:"\u05e0\u05d4\u05dc \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",columnMenuFilter:"\u05e1\u05e0\u05df",columnMenuHideColumn:"\u05d4\u05e1\u05ea\u05e8",columnMenuUnsort:"\u05d1\u05d8\u05dc \u05de\u05d9\u05d5\u05df",columnMenuSortAsc:"\u05de\u05d9\u05d9\u05df \u05d1\u05e1\u05d3\u05e8 \u05e2\u05d5\u05dc\u05d4",columnMenuSortDesc:"\u05de\u05d9\u05d9\u05df \u05d1\u05e1\u05d3\u05e8 \u05d9\u05d5\u05e8\u05d3",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} \u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd`:"\u05de\u05e1\u05e0\u05df \u05d0\u05d7\u05d3 \u05e4\u05e2\u05d9\u05dc",columnHeaderFiltersLabel:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",columnHeaderSortIconLabel:"\u05de\u05d9\u05d9\u05df",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \u05e9\u05d5\u05e8\u05d5\u05ea \u05e0\u05d1\u05d7\u05e8\u05d5`:"\u05e9\u05d5\u05e8\u05d4 \u05d0\u05d7\u05ea \u05e0\u05d1\u05d7\u05e8\u05d4",footerTotalRows:"\u05e1\u05da \u05d4\u05db\u05dc:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u05de\u05ea\u05d5\u05da ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u05d1\u05d7\u05d9\u05e8\u05d4",checkboxSelectionSelectAllRows:"\u05d1\u05d7\u05e8 \u05d4\u05db\u05dc",checkboxSelectionUnselectAllRows:"\u05d1\u05d8\u05dc \u05d4\u05db\u05dc",checkboxSelectionSelectRow:"\u05d1\u05d7\u05e8 \u05e9\u05d5\u05e8\u05d4",checkboxSelectionUnselectRow:"\u05d1\u05d8\u05dc \u05d1\u05d7\u05d9\u05e8\u05ea \u05e9\u05d5\u05e8\u05d4",booleanCellTrueLabel:"\u05db\u05df",booleanCellFalseLabel:"\u05dc\u05d0",actionsCellMore:"\u05e2\u05d5\u05d3",pinToLeft:"\u05e0\u05e2\u05e5 \u05de\u05e9\u05de\u05d0\u05dc",pinToRight:"\u05e0\u05e2\u05e5 \u05de\u05d9\u05de\u05d9\u05df",unpin:"\u05d4\u05e1\u05e8 \u05e0\u05e2\u05d9\u05e6\u05d4",treeDataGroupingHeaderName:"\u05e7\u05d1\u05d5\u05e6\u05d4",treeDataExpand:"\u05d4\u05e8\u05d7\u05d1",treeDataCollapse:"\u05db\u05d5\u05d5\u05e5",groupingColumnHeaderName:"\u05e7\u05d1\u05d5\u05e6\u05d4",groupColumn:e=>`\u05e7\u05d1\u05e5 \u05dc\u05e4\u05d9 ${e}`,unGroupColumn:e=>`\u05d4\u05e4\u05e1\u05e7 \u05dc\u05e7\u05d1\u05e5 \u05dc\u05e4\u05d9 ${e}`,expandDetailPanel:"\u05d4\u05e8\u05d7\u05d1",collapseDetailPanel:"\u05db\u05d5\u05d5\u05e5",rowReorderingHeaderName:"\u05e1\u05d9\u05d3\u05d5\u05e8 \u05e9\u05d5\u05e8\u05d5\u05ea",aggregationMenuItemHeader:"\u05e6\u05d1\u05d9\u05e8\u05d4",aggregationFunctionLabelSum:"\u05e1\u05db\u05d5\u05dd",aggregationFunctionLabelAvg:"\u05de\u05de\u05d5\u05e6\u05e2",aggregationFunctionLabelMin:"\u05de\u05d9\u05e0\u05d9\u05de\u05d5\u05dd",aggregationFunctionLabelMax:"\u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd",aggregationFunctionLabelSize:"\u05d2\u05d5\u05d3\u05dc"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u05d4\u05e6\u05d2 \u05e0\u05ea\u05d9\u05d1"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df":"last"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df":"next"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0":"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd",labelRowsPerPage:"\u05e9\u05d5\u05e8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u05de\u05ea\u05d5\u05da ${-1!==r?r:`\u05d9\u05d5\u05ea\u05e8 \u05de ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u05db\u05d5\u05db\u05d1${1!==e?"\u05d9\u05dd":""}`,emptyLabelText:"\u05e8\u05d9\u05e7"}},MuiAutocomplete:{defaultProps:{clearText:"\u05e0\u05e7\u05d4",closeText:"\u05e1\u05d2\u05d5\u05e8",loadingText:"\u05d8\u05d5\u05e2\u05df\u2026",noOptionsText:"\u05d0\u05d9\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea",openText:"\u05e4\u05ea\u05d7"}},MuiAlert:{defaultProps:{closeText:"\u05e1\u05d2\u05d5\u05e8"}},MuiPagination:{defaultProps:{"aria-label":"\u05e0\u05d9\u05d5\u05d5\u05d8 \u05d1\u05e2\u05de\u05d5\u05d3\u05d9\u05dd",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u05dc "}\u05e2\u05de\u05d5\u05d3 ${t}`:"first"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df":"last"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df":"next"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0":"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd"}}}}),Pj=fj({noRowsLabel:"Nincsenek sorok",noResultsOverlayLabel:"Nincs tal\xe1lat.",toolbarDensity:"Sormagass\xe1g",toolbarDensityLabel:"Sormagass\xe1g",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Norm\xe1l",toolbarDensityComfortable:"K\xe9nyelmes",toolbarColumns:"Oszlopok",toolbarColumnsLabel:"Oszlopok kiv\xe1laszt\xe1sa",toolbarFilters:"Sz\u0171r\u0151k",toolbarFiltersLabel:"Sz\u0171r\u0151k megjelen\xedt\xe9se",toolbarFiltersTooltipHide:"Sz\u0171r\u0151k elrejt\xe9se",toolbarFiltersTooltipShow:"Sz\u0171r\u0151k megjelen\xedt\xe9se",toolbarFiltersTooltipActive:e=>`${e} akt\xedv sz\u0171r\u0151`,toolbarQuickFilterPlaceholder:"Keres\xe9s\u2026",toolbarQuickFilterLabel:"Keres\xe9s",toolbarQuickFilterDeleteIconLabel:"T\xf6rl\xe9s",toolbarExport:"Export\xe1l\xe1s",toolbarExportLabel:"Export\xe1l\xe1s",toolbarExportCSV:"Ment\xe9s CSV f\xe1jlk\xe9nt",toolbarExportPrint:"Nyomtat\xe1s",toolbarExportExcel:"Ment\xe9s Excel f\xe1jlk\xe9nt",columnsPanelTextFieldLabel:"Oszlop keres\xe9se",columnsPanelTextFieldPlaceholder:"Oszlop neve",columnsPanelDragIconLabel:"Oszlop \xe1trendez\xe9se",columnsPanelShowAllButton:"\xd6sszes megjelen\xedt\xe9se",columnsPanelHideAllButton:"\xd6sszes elrejt\xe9se",filterPanelAddFilter:"Sz\u0171r\u0151 hozz\xe1ad\xe1sa",filterPanelRemoveAll:"\xd6sszes t\xf6rl\xe9se",filterPanelDeleteIconLabel:"T\xf6rl\xe9s",filterPanelLogicOperator:"Logikai oper\xe1tor",filterPanelOperator:"Oper\xe1torok",filterPanelOperatorAnd:"\xc9s",filterPanelOperatorOr:"Vagy",filterPanelColumns:"Oszlopok",filterPanelInputLabel:"\xc9rt\xe9k",filterPanelInputPlaceholder:"\xc9rt\xe9k sz\u0171r\xe9se",filterOperatorContains:"tartalmazza:",filterOperatorEquals:"egyenl\u0151 ezzel:",filterOperatorStartsWith:"ezzel kezd\u0151dik:",filterOperatorEndsWith:"ezzel v\xe9gz\u0151dik:",filterOperatorIs:"a k\xf6vetkez\u0151:",filterOperatorNot:"nem a k\xf6vetkez\u0151:",filterOperatorAfter:"ezut\xe1ni:",filterOperatorOnOrAfter:"ekkori vagy ezut\xe1ni:",filterOperatorBefore:"ezel\u0151tti:",filterOperatorOnOrBefore:"ekkori vagy ezel\u0151tti:",filterOperatorIsEmpty:"\xfcres",filterOperatorIsNotEmpty:"nem \xfcres",filterOperatorIsAnyOf:"a k\xf6vetkez\u0151k egyike:","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Tartalmazza:",headerFilterOperatorEquals:"Egyenl\u0151 ezzel:",headerFilterOperatorStartsWith:"Ezzel kezd\u0151dik:",headerFilterOperatorEndsWith:"Ezzel v\xe9gz\u0151dik:",headerFilterOperatorAfter:"Ezut\xe1ni:",headerFilterOperatorOnOrAfter:"Ekkozori vagy ezut\xe1ni:",headerFilterOperatorBefore:"Ezel\u0151tti:",headerFilterOperatorOnOrBefore:"Ekkori vagy ezel\u0151tti:",headerFilterOperatorIsEmpty:"\xdcres",headerFilterOperatorIsNotEmpty:"Nem \xfcres",headerFilterOperatorIsAnyOf:"A k\xf6vetkez\u0151k egyike:","headerFilterOperator=":"Egyenl\u0151","headerFilterOperator!=":"Nem egyenl\u0151","headerFilterOperator>":"Nagyobb mint","headerFilterOperator>=":"Nagyobb vagy egyenl\u0151","headerFilterOperator<":"Kissebb mint","headerFilterOperator<=":"Kissebb vagy enygenl\u0151",filterValueAny:"b\xe1rmilyen",filterValueTrue:"igaz",filterValueFalse:"hamis",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"Oszlopok megjelen\xedt\xe9se",columnMenuManageColumns:"Oszlopok kezel\xe9se",columnMenuFilter:"Sz\u0171r\u0151k",columnMenuHideColumn:"Elrejt\xe9s",columnMenuUnsort:"Sorrend vissza\xe1ll\xedt\xe1sa",columnMenuSortAsc:"N\xf6vekv\u0151 sorrendbe",columnMenuSortDesc:"Cs\xf6kken\u0151 sorrendbe",columnHeaderFiltersTooltipActive:e=>`${e} akt\xedv sz\u0171r\u0151`,columnHeaderFiltersLabel:"Sz\u0171r\u0151k megjelen\xedt\xe9se",columnHeaderSortIconLabel:"\xc1trendez\xe9s",footerRowSelected:e=>`${e.toLocaleString()} sor kiv\xe1lasztva`,footerTotalRows:"\xd6sszesen:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} (\xf6sszesen: ${t.toLocaleString()})`,checkboxSelectionHeaderName:"Jel\xf6l\u0151n\xe9gyzetes kijel\xf6l\xe9s",checkboxSelectionSelectAllRows:"Minden sor kijel\xf6l\xe9se",checkboxSelectionUnselectAllRows:"Minden sor kijel\xf6l\xe9s\xe9nek t\xf6rl\xe9se",checkboxSelectionSelectRow:"Sor kijel\xf6l\xe9se",checkboxSelectionUnselectRow:"Sor kijel\xf6l\xe9s\xe9nek t\xf6rl\xe9se",booleanCellTrueLabel:"igen",booleanCellFalseLabel:"nem",actionsCellMore:"tov\xe1bbi",pinToLeft:"R\xf6gz\xedt\xe9s balra",pinToRight:"R\xf6gz\xedt\xe9s jobbra",unpin:"R\xf6gz\xedt\xe9s t\xf6rl\xe9se",treeDataGroupingHeaderName:"Csoport",treeDataExpand:"gyermekek megjelen\xedt\xe9se",treeDataCollapse:"gyermekek elrejt\xe9se",groupingColumnHeaderName:"Csoportos\xedt\xe1s",groupColumn:e=>`Csoportos\xedt\xe1s ${e} szerint`,unGroupColumn:e=>`${e} szerinti csoportos\xedt\xe1s t\xf6rl\xe9se`,detailPanelToggle:"R\xe9szletek panel v\xe1lt\xe1sa",expandDetailPanel:"Kibont\xe1s",collapseDetailPanel:"\xd6sszecsuk\xe1s",rowReorderingHeaderName:"Sorok \xfajrarendez\xe9se",aggregationMenuItemHeader:"\xd6sszes\xedt\xe9s",aggregationFunctionLabelSum:"\xd6sszeg",aggregationFunctionLabelAvg:"\xc1tlag",aggregationFunctionLabelMin:"Minimum",aggregationFunctionLabelMax:"Maximum",aggregationFunctionLabelSize:"Darabsz\xe1m"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\xdatvonal"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Els\u0151 oldalra":"last"===e?"Utols\xf3 oldalra":"next"===e?"K\xf6vetkez\u0151 oldalra":"El\u0151z\u0151 oldalra",labelRowsPerPage:"Sorok sz\xe1ma:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:"\xdcres"}},MuiAutocomplete:{defaultProps:{clearText:"T\xf6rl\xe9s",closeText:"Bez\xe1r\xe1s",loadingText:"T\xf6lt\xe9s\u2026",noOptionsText:"Nincs tal\xe1lat",openText:"Megnyit\xe1s"}},MuiAlert:{defaultProps:{closeText:"Bez\xe1r\xe1s"}},MuiPagination:{defaultProps:{"aria-label":"Lapoz\xe1s",getItemAriaLabel:(e,t,n)=>"page"===e?`${t}. oldal${n?"":"ra"}`:"first"===e?"Els\u0151 oldalra":"last"===e?"Utols\xf3 oldalra":"next"===e?"K\xf6vetkez\u0151 oldalra":"El\u0151z\u0151 oldalra"}}}}),Ij=fj({noRowsLabel:"Nessun record",noResultsOverlayLabel:"Nessun record trovato.",toolbarDensity:"Densit\xe0",toolbarDensityLabel:"Densit\xe0",toolbarDensityCompact:"Compatta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Colonne",toolbarColumnsLabel:"Seleziona le colonne",toolbarFilters:"Filtri",toolbarFiltersLabel:"Mostra i filtri",toolbarFiltersTooltipHide:"Nascondi i filtri",toolbarFiltersTooltipShow:"Mostra i filtri",toolbarFiltersTooltipActive:e=>e>1?`${e} filtri attivi`:`${e} filtro attivo`,toolbarQuickFilterPlaceholder:"Cerca\u2026",toolbarQuickFilterLabel:"Cerca",toolbarQuickFilterDeleteIconLabel:"Resetta",toolbarExport:"Esporta",toolbarExportLabel:"Esporta",toolbarExportCSV:"Esporta in CSV",toolbarExportPrint:"Stampa",toolbarExportExcel:"Scarica come Excel",columnsPanelTextFieldLabel:"Cerca colonna",columnsPanelTextFieldPlaceholder:"Titolo della colonna",columnsPanelDragIconLabel:"Riordina la colonna",columnsPanelShowAllButton:"Mostra tutto",columnsPanelHideAllButton:"Nascondi tutto",filterPanelAddFilter:"Aggiungi un filtro",filterPanelRemoveAll:"Rimuovi filtri",filterPanelDeleteIconLabel:"Rimuovi",filterPanelLogicOperator:"Operatore logico",filterPanelOperator:"Operatori",filterPanelOperatorAnd:"E (and)",filterPanelOperatorOr:"O (or)",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valore",filterPanelInputPlaceholder:"Filtra il valore",filterOperatorContains:"contiene",filterOperatorEquals:"uguale a",filterOperatorStartsWith:"comincia per",filterOperatorEndsWith:"termina per",filterOperatorIs:"uguale a",filterOperatorNot:"diversa da",filterOperatorAfter:"dopo il",filterOperatorOnOrAfter:"a partire dal",filterOperatorBefore:"prima del",filterOperatorOnOrBefore:"fino al",filterOperatorIsEmpty:"\xe8 vuoto",filterOperatorIsNotEmpty:"non \xe8 vuoto",filterOperatorIsAnyOf:"\xe8 uno tra","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contiene",headerFilterOperatorEquals:"uguale a",headerFilterOperatorStartsWith:"comincia per",headerFilterOperatorEndsWith:"termina per",headerFilterOperatorIs:"uguale a",headerFilterOperatorNot:"diversa da",headerFilterOperatorAfter:"dopo il",headerFilterOperatorOnOrAfter:"a partire dal",headerFilterOperatorBefore:"prima del",headerFilterOperatorOnOrBefore:"fino al",headerFilterOperatorIsEmpty:"\xe8 vuoto",headerFilterOperatorIsNotEmpty:"non \xe8 vuoto",headerFilterOperatorIsAnyOf:"\xe8 uno tra","headerFilterOperator=":"uguale a","headerFilterOperator!=":"diverso da","headerFilterOperator>":"maggiore di","headerFilterOperator>=":"maggiore o uguale a","headerFilterOperator<":"minore di","headerFilterOperator<=":"minore o uguale a",filterValueAny:"qualunque",filterValueTrue:"vero",filterValueFalse:"falso",columnMenuLabel:"Menu",columnMenuShowColumns:"Mostra le colonne",columnMenuManageColumns:"Gestisci colonne",columnMenuFilter:"Filtra",columnMenuHideColumn:"Nascondi",columnMenuUnsort:"Annulla l'ordinamento",columnMenuSortAsc:"Ordinamento crescente",columnMenuSortDesc:"Ordinamento decrescente",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtri attivi`:`${e} filtro attivo`,columnHeaderFiltersLabel:"Mostra i filtri",columnHeaderSortIconLabel:"Ordina",footerRowSelected:e=>e>1?`${e.toLocaleString()} record selezionati`:`${e.toLocaleString()} record selezionato`,footerTotalRows:"Record totali:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} di ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Seleziona",checkboxSelectionSelectAllRows:"Seleziona tutte le righe",checkboxSelectionUnselectAllRows:"Deseleziona tutte le righe",checkboxSelectionSelectRow:"Seleziona riga",checkboxSelectionUnselectRow:"Deseleziona riga",booleanCellTrueLabel:"vero",booleanCellFalseLabel:"falso",actionsCellMore:"pi\xf9",pinToLeft:"Blocca a sinistra",pinToRight:"Blocca a destra",unpin:"Sblocca",treeDataGroupingHeaderName:"Gruppo",treeDataExpand:"mostra figli",treeDataCollapse:"nascondi figli",groupingColumnHeaderName:"Gruppo",groupColumn:e=>`Raggruppa per ${e}`,unGroupColumn:e=>`Annulla raggruppamento per ${e}`,detailPanelToggle:"Abilita pannello dettagli",expandDetailPanel:"Espandi",collapseDetailPanel:"Comprimi",rowReorderingHeaderName:"Riordinamento righe",aggregationMenuItemHeader:"aggregazione",aggregationFunctionLabelSum:"somma",aggregationFunctionLabelAvg:"media",aggregationFunctionLabelMin:"minimo",aggregationFunctionLabelMax:"massimo",aggregationFunctionLabelSize:"numero di elementi"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visualizza percorso"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} di ${-1!==r?r:`pi\xf9 di ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${1!==e?"e":"a"}`,emptyLabelText:"Vuoto"}},MuiAutocomplete:{defaultProps:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso\u2026",noOptionsText:"Nessuna opzione",openText:"Apri"}},MuiAlert:{defaultProps:{closeText:"Chiudi"}},MuiPagination:{defaultProps:{"aria-label":"Navigazione impaginata",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Vai alla "}pagina ${t}`:"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente"}}}}),Oj=fj({noRowsLabel:"\u884c\u304c\u3042\u308a\u307e\u305b\u3093\u3002",noResultsOverlayLabel:"\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093\u3002",toolbarDensity:"\u884c\u9593\u9694",toolbarDensityLabel:"\u884c\u9593\u9694",toolbarDensityCompact:"\u30b3\u30f3\u30d1\u30af\u30c8",toolbarDensityStandard:"\u6a19\u6e96",toolbarDensityComfortable:"\u5e83\u3081",toolbarColumns:"\u5217\u4e00\u89a7",toolbarColumnsLabel:"\u5217\u9078\u629e",toolbarFilters:"\u30d5\u30a3\u30eb\u30bf\u30fc",toolbarFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipHide:"\u30d5\u30a3\u30eb\u30bf\u30fc\u975e\u8868\u793a",toolbarFiltersTooltipShow:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipActive:e=>`${e}\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d`,toolbarQuickFilterPlaceholder:"\u691c\u7d22\u2026",toolbarQuickFilterLabel:"\u691c\u7d22",toolbarQuickFilterDeleteIconLabel:"\u30af\u30ea\u30a2",toolbarExport:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportLabel:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportCSV:"CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",toolbarExportPrint:"\u5370\u5237",toolbarExportExcel:"Excel\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",columnsPanelTextFieldLabel:"\u5217\u691c\u7d22",columnsPanelTextFieldPlaceholder:"\u691c\u7d22\u30af\u30a8\u30ea\u3092\u5165\u529b\u2026",columnsPanelDragIconLabel:"\u5217\u4e26\u3079\u66ff\u3048",columnsPanelShowAllButton:"\u3059\u3079\u3066\u8868\u793a",columnsPanelHideAllButton:"\u3059\u3079\u3066\u975e\u8868\u793a",filterPanelAddFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8ffd\u52a0",filterPanelRemoveAll:"\u3059\u3079\u3066\u524a\u9664",filterPanelDeleteIconLabel:"\u524a\u9664",filterPanelLogicOperator:"\u8ad6\u7406\u6f14\u7b97\u5b50",filterPanelOperator:"\u6f14\u7b97\u5b50",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u5024",filterPanelInputPlaceholder:"\u5024\u3092\u5165\u529b\u2026",filterOperatorContains:"...\u3092\u542b\u3080",filterOperatorEquals:"...\u306b\u7b49\u3057\u3044",filterOperatorStartsWith:"...\u3067\u59cb\u307e\u308b",filterOperatorEndsWith:"...\u3067\u7d42\u308f\u308b",filterOperatorIs:"...\u3067\u3042\u308b",filterOperatorNot:"...\u3067\u306a\u3044",filterOperatorAfter:"...\u3088\u308a\u5f8c\u308d",filterOperatorOnOrAfter:"...\u4ee5\u964d",filterOperatorBefore:"...\u3088\u308a\u524d",filterOperatorOnOrBefore:"...\u4ee5\u524d",filterOperatorIsEmpty:"...\u7a7a\u3067\u3042\u308b",filterOperatorIsNotEmpty:"...\u7a7a\u3067\u306a\u3044",filterOperatorIsAnyOf:"...\u306e\u3044\u305a\u308c\u304b","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u542b\u3080",headerFilterOperatorEquals:"\u7b49\u3057\u3044",headerFilterOperatorStartsWith:"\u3067\u59cb\u307e\u308b",headerFilterOperatorEndsWith:"\u3067\u7d42\u308f\u308b",headerFilterOperatorIs:"\u3067\u3042\u308b",headerFilterOperatorNot:"\u3067\u306f\u306a\u3044",headerFilterOperatorAfter:"...\u3088\u308a\u5f8c\u308d",headerFilterOperatorOnOrAfter:"...\u4ee5\u964d",headerFilterOperatorBefore:"...\u3088\u308a\u524d",headerFilterOperatorOnOrBefore:"...\u4ee5\u524d",headerFilterOperatorIsEmpty:"\u7a7a\u767d",headerFilterOperatorIsNotEmpty:"\u7a7a\u767d\u3067\u306f\u306a\u3044",headerFilterOperatorIsAnyOf:"\u3044\u305a\u308c\u304b","headerFilterOperator=":"\u7b49\u3057\u3044","headerFilterOperator!=":"\u7b49\u3057\u304f\u306a\u3044","headerFilterOperator>":"\u3088\u308a\u5927\u304d\u3044","headerFilterOperator>=":"\u4ee5\u4e0a","headerFilterOperator<":"\u672a\u6e80","headerFilterOperator<=":"\u4ee5\u4e0b",filterValueAny:"\u3044\u305a\u308c\u304b",filterValueTrue:"\u771f",filterValueFalse:"\u507d",columnMenuLabel:"\u30e1\u30cb\u30e5\u30fc",columnMenuShowColumns:"\u5217\u8868\u793a",columnMenuManageColumns:"\u5217\u7ba1\u7406",columnMenuFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc",columnMenuHideColumn:"\u5217\u975e\u8868\u793a",columnMenuUnsort:"\u30bd\u30fc\u30c8\u89e3\u9664",columnMenuSortAsc:"\u6607\u9806\u30bd\u30fc\u30c8",columnMenuSortDesc:"\u964d\u9806\u30bd\u30fc\u30c8",columnHeaderFiltersTooltipActive:e=>`${e}\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d`,columnHeaderFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",columnHeaderSortIconLabel:"\u30bd\u30fc\u30c8",footerRowSelected:e=>`${e}\u884c\u3092\u9078\u629e\u4e2d`,footerTotalRows:"\u7dcf\u884c\u6570:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9",checkboxSelectionSelectAllRows:"\u3059\u3079\u3066\u306e\u884c\u3092\u9078\u629e",checkboxSelectionUnselectAllRows:"\u3059\u3079\u3066\u306e\u884c\u9078\u629e\u3092\u89e3\u9664",checkboxSelectionSelectRow:"\u884c\u3092\u9078\u629e",checkboxSelectionUnselectRow:"\u884c\u9078\u629e\u3092\u89e3\u9664",booleanCellTrueLabel:"\u771f",booleanCellFalseLabel:"\u507d",actionsCellMore:"\u3082\u3063\u3068\u898b\u308b",pinToLeft:"\u5de6\u5074\u306b\u56fa\u5b9a",pinToRight:"\u53f3\u5074\u306b\u56fa\u5b9a",unpin:"\u56fa\u5b9a\u89e3\u9664",treeDataGroupingHeaderName:"\u30b0\u30eb\u30fc\u30d7",treeDataExpand:"\u5c55\u958b",treeDataCollapse:"\u6298\u308a\u305f\u305f\u307f",groupingColumnHeaderName:"\u30b0\u30eb\u30fc\u30d7",groupColumn:e=>`${e}\u3067\u30b0\u30eb\u30fc\u30d7\u5316`,unGroupColumn:e=>`${e}\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u89e3\u9664`,detailPanelToggle:"\u8a73\u7d30\u30d1\u30cd\u30eb\u306e\u5207\u308a\u66ff\u3048",expandDetailPanel:"\u5c55\u958b",collapseDetailPanel:"\u6298\u308a\u305f\u305f\u307f",rowReorderingHeaderName:"\u884c\u4e26\u3073\u66ff\u3048",aggregationMenuItemHeader:"\u5408\u8a08",aggregationFunctionLabelSum:"\u548c",aggregationFunctionLabelAvg:"\u5e73\u5747",aggregationFunctionLabelMin:"\u6700\u5c0f\u5024",aggregationFunctionLabelMax:"\u6700\u5927\u5024",aggregationFunctionLabelSize:"\u30b5\u30a4\u30ba"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u3059\u3079\u3066\u8868\u793a"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u6700\u521d\u306e\u30da\u30fc\u30b8\u3078":"last"===e?"\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u3078":"next"===e?"\u6b21\u306e\u30da\u30fc\u30b8\u3078":"\u524d\u306e\u30da\u30fc\u30b8\u3078",labelRowsPerPage:"\u30da\u30fc\u30b8\u3042\u305f\u308a\u306e\u884c\u6570:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\uff5e${n} / ${-1!==r?r:`${n}\u4ee5\u4e0a`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`\u661f${e}`,emptyLabelText:"\u661f\u306a\u3057"}},MuiAutocomplete:{defaultProps:{clearText:"\u30af\u30ea\u30a2",closeText:"\u9589\u3058\u308b",loadingText:"\u8aad\u307f\u8fbc\u307f\u4e2d\u2026",noOptionsText:"\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093",openText:"\u958b\u304f"}},MuiAlert:{defaultProps:{closeText:"\u9589\u3058\u308b"}},MuiPagination:{defaultProps:{"aria-label":"\u30da\u30fc\u30b8\u9078\u629e",getItemAriaLabel:(e,t,n)=>"page"===e?`\u30da\u30fc\u30b8${t}${n?"":"\u3078"}`:"first"===e?"\u6700\u521d\u306e\u30da\u30fc\u30b8\u3078":"last"===e?"\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u3078":"next"===e?"\u6b21\u306e\u30da\u30fc\u30b8\u3078":"\u524d\u306e\u30da\u30fc\u30b8\u3078"}}}}),Lj=fj({noRowsLabel:"\ud589\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.",noResultsOverlayLabel:"\uacb0\uacfc\uac12\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.",toolbarDensity:"\ud589 \uac04\uaca9",toolbarDensityLabel:"\ud589 \uac04\uaca9",toolbarDensityCompact:"\uc881\uac8c",toolbarDensityStandard:"\uae30\ubcf8",toolbarDensityComfortable:"\ub113\uac8c",toolbarColumns:"\uc5f4 \ubaa9\ub85d",toolbarColumnsLabel:"\uc5f4 \uc120\ud0dd",toolbarFilters:"\ud544\ud130",toolbarFiltersLabel:"\ud544\ud130 \ud45c\uc2dc",toolbarFiltersTooltipHide:"\ud544\ud130 \uc228\uae30\uae30",toolbarFiltersTooltipShow:"\ud544\ud130 \ud45c\uc2dc",toolbarFiltersTooltipActive:e=>`${e}\uac74\uc758 \ud544\ud130\ub97c \uc801\uc6a9\uc911`,toolbarQuickFilterPlaceholder:"\uac80\uc0c9\u2026",toolbarQuickFilterLabel:"\uac80\uc0c9",toolbarQuickFilterDeleteIconLabel:"\ucd08\uae30\ud654",toolbarExport:"\ub0b4\ubcf4\ub0b4\uae30",toolbarExportLabel:"\ub0b4\ubcf4\ub0b4\uae30",toolbarExportCSV:"CSV\ub85c \ub0b4\ubcf4\ub0b4\uae30",toolbarExportPrint:"\ud504\ub9b0\ud2b8",toolbarExportExcel:"Excel\ub85c \ub0b4\ubcf4\ub0b4\uae30",columnsPanelTextFieldLabel:"\uc5f4 \uac80\uc0c9",columnsPanelTextFieldPlaceholder:"\uc5f4 \uc774\ub984",columnsPanelDragIconLabel:"\uc5f4 \uc815\ub82c",columnsPanelShowAllButton:"\ubaa8\ub450 \ubcf4\uae30",columnsPanelHideAllButton:"\ubaa8\ub450 \uc228\uae30\uae30",filterPanelAddFilter:"\ud544\ud130 \ucd94\uac00",filterPanelDeleteIconLabel:"\uc0ad\uc81c",filterPanelLogicOperator:"\ub17c\ub9ac \uc5f0\uc0b0\uc790",filterPanelOperator:"\uc5f0\uc0b0\uc790",filterPanelOperatorAnd:"\uadf8\ub9ac\uace0",filterPanelOperatorOr:"\ub610\ub294",filterPanelColumns:"\ubaa9\ub85d",filterPanelInputLabel:"\uac12",filterPanelInputPlaceholder:"\uac12 \uc785\ub825",filterOperatorContains:"\ud3ec\ud568\ud558\ub294",filterOperatorEquals:"\uac12\uc774 \uac19\uc740",filterOperatorStartsWith:"\uc2dc\uc791\ud558\ub294",filterOperatorEndsWith:"\ub05d\ub098\ub294",filterOperatorIs:"~\uc778",filterOperatorNot:"~\uc544\ub2cc",filterOperatorAfter:"\ub354 \uc774\ud6c4",filterOperatorOnOrAfter:"\uc774\ud6c4",filterOperatorBefore:"\ub354 \uc774\uc804",filterOperatorOnOrBefore:"\uc774\uc804",filterOperatorIsEmpty:"\uac12\uc774 \uc5c6\ub294",filterOperatorIsNotEmpty:"\uac12\uc774 \uc788\ub294",filterOperatorIsAnyOf:"\uac12 \uc911 \ud558\ub098\uc778",filterValueAny:"\uc544\ubb34\uac12",filterValueTrue:"\ucc38",filterValueFalse:"\uac70\uc9d3",columnMenuLabel:"\uba54\ub274",columnMenuShowColumns:"\uc5f4 \ud45c\uc2dc",columnMenuFilter:"\ud544\ud130",columnMenuHideColumn:"\uc5f4 \uc228\uae30\uae30",columnMenuUnsort:"\uc815\ub82c \ud574\uc81c",columnMenuSortAsc:"\uc624\ub984\ucc28\uc21c \uc815\ub82c",columnMenuSortDesc:"\ub0b4\ub9bc\ucc28\uc21c \uc815\ub82c",columnHeaderFiltersTooltipActive:e=>`${e}\uac74\uc758 \ud544\ud130\ub97c \uc801\uc6a9\uc911`,columnHeaderFiltersLabel:"\ud544\ud130 \ud45c\uc2dc",columnHeaderSortIconLabel:"\uc815\ub82c",footerRowSelected:e=>`${e}\ud589 \uc120\ud0dd\uc911`,footerTotalRows:"\ucd1d \ud589\uc218:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\uc120\ud0dd",checkboxSelectionSelectAllRows:"\ubaa8\ub4e0 \ud589 \uc120\ud0dd",checkboxSelectionUnselectAllRows:"\ubaa8\ub4e0 \ud589 \uc120\ud0dd \ud574\uc81c",checkboxSelectionSelectRow:"\ud589 \uc120\ud0dd",checkboxSelectionUnselectRow:"\ud589 \uc120\ud0dd \ud574\uc81c",booleanCellTrueLabel:"\ucc38",booleanCellFalseLabel:"\uac70\uc9d3",actionsCellMore:"\ub354\ubcf4\uae30",pinToLeft:"\uc67c\ucabd\uc5d0 \uace0\uc815",pinToRight:"\uc624\ub978\ucabd\uc5d0 \uace0\uc815",unpin:"\uace0\uc815 \ud574\uc81c",treeDataGroupingHeaderName:"\uadf8\ub8f9",treeDataExpand:"\ud558\uc704\ub178\ub4dc \ud3bc\uce58\uae30",treeDataCollapse:"\ud558\uc704\ub178\ub4dc \uc811\uae30",groupingColumnHeaderName:"\uadf8\ub8f9",groupColumn:e=>`${e} \uac12\uc73c\ub85c \uadf8\ub8f9 \uc0dd\uc131`,unGroupColumn:e=>`${e} \uac12\uc73c\ub85c \uadf8\ub8f9 \ud574\uc81c`,detailPanelToggle:"\uc0c1\uc138 \ud328\ub110 \ud1a0\uae00",expandDetailPanel:"\uc5f4\uae30",collapseDetailPanel:"\uc811\uae30",rowReorderingHeaderName:"\ud589 \uc7ac\ubc30\uce58",aggregationMenuItemHeader:"\ucd1d\uacc4",aggregationFunctionLabelSum:"\ud569",aggregationFunctionLabelAvg:"\ud3c9\uade0",aggregationFunctionLabelMin:"\ucd5c\uc18c\uac12",aggregationFunctionLabelMax:"\ucd5c\ub300\uac12",aggregationFunctionLabelSize:"\ud06c\uae30"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\uacbd\ub85c \ubcf4\uae30"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\uccab \ubc88\uc9f8 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"last"===e?"\ub9c8\uc9c0\ub9c9 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"next"===e?"\ub2e4\uc74c \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"\uc774\uc804 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9",labelRowsPerPage:"\ud398\uc774\uc9c0 \ub2f9 \ud589:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} / ${-1!==r?r:`${n}\uac1c \uc774\uc0c1`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \uc810`,emptyLabelText:"\ube48 \ud14d\uc2a4\ud2b8"}},MuiAutocomplete:{defaultProps:{clearText:"\uc9c0\uc6b0\uae30",closeText:"\ub2eb\uae30",loadingText:"\ubd88\ub7ec\uc624\ub294 \uc911\u2026",noOptionsText:"\uc635\uc158 \uc5c6\uc74c",openText:"\uc5f4\uae30"}},MuiAlert:{defaultProps:{closeText:"\ub2eb\uae30"}},MuiPagination:{defaultProps:{"aria-label":"\ud398\uc774\uc9c0\ub124\uc774\uc158 \ub124\ube44\uac8c\uc774\uc158",getItemAriaLabel:(e,t,n)=>"page"===e?`${t} \ubc88\uc9f8 \ud398\uc774\uc9c0${n?"":"\ub85c \uc774\ub3d9"}`:"first"===e?"\uccab \ubc88\uc9f8 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"last"===e?"\ub9c8\uc9c0\ub9c9 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"next"===e?"\ub2e4\uc74c \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"\uc774\uc804 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9"}}}}),Rj=fj({noRowsLabel:"Ingen rader",noResultsOverlayLabel:"Fant ingen resultat.",toolbarDensity:"Tetthet",toolbarDensityLabel:"Tetthet",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfortabelt",toolbarColumns:"Kolonner",toolbarColumnsLabel:"Velg kolonner",toolbarFilters:"Filter",toolbarFiltersLabel:"Vis filter",toolbarFiltersTooltipHide:"Skjul fitler",toolbarFiltersTooltipShow:"Vis filter",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktive filter`:`${e} aktivt filter`,toolbarQuickFilterPlaceholder:"S\xf8k\u2026",toolbarQuickFilterLabel:"S\xf8k",toolbarQuickFilterDeleteIconLabel:"Slett",toolbarExport:"Eksporter",toolbarExportLabel:"Eksporter",toolbarExportCSV:"Last ned som CSV",toolbarExportPrint:"Skriv ut",toolbarExportExcel:"Last ned som Excel",columnsPanelTextFieldLabel:"Finn kolonne",columnsPanelTextFieldPlaceholder:"Kolonne tittel",columnsPanelDragIconLabel:"Reorganiser kolonne",columnsPanelShowAllButton:"Vis alle",columnsPanelHideAllButton:"Skjul alle",filterPanelAddFilter:"Legg til filter",filterPanelRemoveAll:"Fjern alle",filterPanelDeleteIconLabel:"Slett",filterPanelLogicOperator:"Logisk operator",filterPanelOperator:"Operat\xf8rer",filterPanelOperatorAnd:"Og",filterPanelOperatorOr:"Eller",filterPanelColumns:"Kolonner",filterPanelInputLabel:"Verdi",filterPanelInputPlaceholder:"Filter verdi",filterOperatorContains:"inneholder",filterOperatorEquals:"er lik",filterOperatorStartsWith:"starter med",filterOperatorEndsWith:"slutter med",filterOperatorIs:"er",filterOperatorNot:"er ikke",filterOperatorAfter:"er etter",filterOperatorOnOrAfter:"er p\xe5 eller etter",filterOperatorBefore:"er f\xf8r",filterOperatorOnOrBefore:"er p\xe5 eller f\xf8r",filterOperatorIsEmpty:"er tom",filterOperatorIsNotEmpty:"er ikke tom",filterOperatorIsAnyOf:"er en av",filterValueAny:"noen",filterValueTrue:"sant",filterValueFalse:"usant",columnMenuLabel:"Meny",columnMenuShowColumns:"Vis kolonner",columnMenuManageColumns:"Administrer kolonner",columnMenuFilter:"Filter",columnMenuHideColumn:"Skjul",columnMenuUnsort:"Usorter",columnMenuSortAsc:"Sorter \xd8KENDE",columnMenuSortDesc:"Sorter SYNKENDE",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktive filter`:`${e} aktivt filter`,columnHeaderFiltersLabel:"Vis filter",columnHeaderSortIconLabel:"Sorter",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rader valgt`:`${e.toLocaleString()} rad valgt`,footerTotalRows:"Totalt antall rader:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} av ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Avmerkingsboks valgt",checkboxSelectionSelectAllRows:"Velg alle rader",checkboxSelectionUnselectAllRows:"Velg bort alle rader",checkboxSelectionSelectRow:"Velg rad",checkboxSelectionUnselectRow:"Velg bort rad",booleanCellTrueLabel:"sant",booleanCellFalseLabel:"usant",actionsCellMore:"mer",pinToLeft:"Fest til venstre",pinToRight:"Fest til h\xf8yre",unpin:"L\xf8sne",treeDataGroupingHeaderName:"Grupper",treeDataExpand:"se barn",treeDataCollapse:"skjul barn",groupingColumnHeaderName:"Grupper",groupColumn:e=>`Grupper p\xe5 ${e}`,unGroupColumn:e=>`Stopp \xe5 grupper p\xe5 ${e}`,detailPanelToggle:"Utvid/kollaps detalj panel",expandDetailPanel:"Utvid",collapseDetailPanel:"Kollaps",rowReorderingHeaderName:"Rad reorganisering",aggregationMenuItemHeader:"Aggregering",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"snitt",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"maks",aggregationFunctionLabelSize:"st\xf8rrelse"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"G\xe5 til f\xf8rste side":"last"===e?"G\xe5 til siste side":"next"===e?"G\xe5 til neste side":"G\xe5 til forrige side",labelRowsPerPage:"Rader per side:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} av ${-1!==r?r:`mer enn ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${1!==e?"r":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"T\xf8m",closeText:"Lukk",loadingText:"Laster inn\u2026",noOptionsText:"Ingen alternativer",openText:"\xc5pne"}},MuiAlert:{defaultProps:{closeText:"Lukk"}},MuiPagination:{defaultProps:{"aria-label":"Paginering navigasjon",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"G\xe5 til "}side ${t}`:"first"===e?"G\xe5 til f\xf8rste side":"last"===e?"G\xe5 til siste side":"next"===e?"G\xe5 til neste side":"G\xe5 til forrige side"}}}}),jj=fj({noRowsLabel:"Geen resultaten.",noResultsOverlayLabel:"Geen resultaten gevonden.",toolbarDensity:"Grootte",toolbarDensityLabel:"Grootte",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Normaal",toolbarDensityComfortable:"Breed",toolbarColumns:"Kolommen",toolbarColumnsLabel:"Kies kolommen",toolbarFilters:"Filters",toolbarFiltersLabel:"Toon filters",toolbarFiltersTooltipHide:"Verberg filters",toolbarFiltersTooltipShow:"Toon filters",toolbarFiltersTooltipActive:e=>e>1?`${e} actieve filters`:`${e} filter actief`,toolbarQuickFilterPlaceholder:"Zoeken\u2026",toolbarQuickFilterLabel:"Zoeken",toolbarQuickFilterDeleteIconLabel:"Wissen",toolbarExport:"Exporteren",toolbarExportLabel:"Exporteren",toolbarExportCSV:"Exporteer naar CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Downloaden als Excel-bestand",columnsPanelTextFieldLabel:"Zoek kolom",columnsPanelTextFieldPlaceholder:"Kolomtitel",columnsPanelDragIconLabel:"Kolom herschikken",columnsPanelShowAllButton:"Alles tonen",columnsPanelHideAllButton:"Alles verbergen",filterPanelAddFilter:"Filter toevoegen",filterPanelRemoveAll:"Alles verwijderen",filterPanelDeleteIconLabel:"Verwijderen",filterPanelLogicOperator:"Logische operator",filterPanelOperator:"Operatoren",filterPanelOperatorAnd:"En",filterPanelOperatorOr:"Of",filterPanelColumns:"Kolommen",filterPanelInputLabel:"Waarde",filterPanelInputPlaceholder:"Filter waarde",filterOperatorContains:"bevat",filterOperatorEquals:"gelijk aan",filterOperatorStartsWith:"begint met",filterOperatorEndsWith:"eindigt met",filterOperatorIs:"is",filterOperatorNot:"is niet",filterOperatorAfter:"is na",filterOperatorOnOrAfter:"is gelijk of er na",filterOperatorBefore:"is voor",filterOperatorOnOrBefore:"is gelijk of er voor",filterOperatorIsEmpty:"is leeg",filterOperatorIsNotEmpty:"is niet leeg",filterOperatorIsAnyOf:"is een van","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Bevat",headerFilterOperatorEquals:"Gelijk aan",headerFilterOperatorStartsWith:"Begint met",headerFilterOperatorEndsWith:"Eindigt met",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is niet",headerFilterOperatorAfter:"Is na",headerFilterOperatorOnOrAfter:"Is op of na",headerFilterOperatorBefore:"Is voor",headerFilterOperatorOnOrBefore:"Is op of voor",headerFilterOperatorIsEmpty:"Is leeg",headerFilterOperatorIsNotEmpty:"Is niet leeg",headerFilterOperatorIsAnyOf:"Is een van","headerFilterOperator=":"Gelijk aan","headerFilterOperator!=":"Niet gelijk aan","headerFilterOperator>":"Is groter dan","headerFilterOperator>=":"Is groter dan of gelijk aan","headerFilterOperator<":"Is kleiner dan","headerFilterOperator<=":"Is kleiner dan of gelijk aan",filterValueAny:"alles",filterValueTrue:"waar",filterValueFalse:"onwaar",columnMenuLabel:"Menu",columnMenuShowColumns:"Toon kolommen",columnMenuManageColumns:"Kolommen beheren",columnMenuFilter:"Filteren",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Annuleer sortering",columnMenuSortAsc:"Oplopend sorteren",columnMenuSortDesc:"Aflopend sorteren",columnHeaderFiltersTooltipActive:e=>e>1?`${e} actieve filters`:`${e} filter actief`,columnHeaderFiltersLabel:"Toon filters",columnHeaderSortIconLabel:"Sorteren",footerRowSelected:e=>e>1?`${e.toLocaleString()} rijen geselecteerd`:`${e.toLocaleString()} rij geselecteerd`,footerTotalRows:"Totaal:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} van ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selectie",checkboxSelectionSelectAllRows:"Alle rijen selecteren",checkboxSelectionUnselectAllRows:"Alle rijen de-selecteren",checkboxSelectionSelectRow:"Rij selecteren",checkboxSelectionUnselectRow:"Rij de-selecteren",booleanCellTrueLabel:"waar",booleanCellFalseLabel:"onwaar",actionsCellMore:"meer",pinToLeft:"Links vastzetten",pinToRight:"Rechts vastzetten",unpin:"Losmaken",treeDataGroupingHeaderName:"Groep",treeDataExpand:"Uitvouwen",treeDataCollapse:"Inklappen",groupingColumnHeaderName:"Groep",groupColumn:e=>`Groepeer op ${e}`,unGroupColumn:e=>`Stop groeperen op ${e}`,detailPanelToggle:"Detailmenu in- of uitklappen",expandDetailPanel:"Uitklappen",collapseDetailPanel:"Inklappen",rowReorderingHeaderName:"Rijen hersorteren",aggregationMenuItemHeader:"Aggregatie",aggregationFunctionLabelSum:"som",aggregationFunctionLabelAvg:"gem",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"grootte"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pad tonen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Ga naar eerste pagina":"last"===e?"Ga naar laatste pagina":"next"===e?"Ga naar volgende pagina":"Ga naar vorige pagina",labelRowsPerPage:"Regels per pagina:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} van ${-1!==r?r:`meer dan ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${1!==e?"ren":""}`,emptyLabelText:"Leeg"}},MuiAutocomplete:{defaultProps:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden\u2026",noOptionsText:"Geen opties",openText:"Openen"}},MuiAlert:{defaultProps:{closeText:"Sluiten"}},MuiPagination:{defaultProps:{"aria-label":"Navigatie via paginering",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Ga naar "}pagina ${t}`:"first"===e?"Ga naar eerste pagina":"last"===e?"Ga naar laatste pagina":"next"===e?"Ga naar volgende pagina":"Ga naar vorige pagina"}}}}),Dj=fj({noRowsLabel:"Brak danych",noResultsOverlayLabel:"Nie znaleziono wynik\xf3w.",toolbarDensity:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityLabel:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfort",toolbarColumns:"Kolumny",toolbarColumnsLabel:"Zaznacz kolumny",toolbarFilters:"Filtry",toolbarFiltersLabel:"Poka\u017c filtry",toolbarFiltersTooltipHide:"Ukryj filtry",toolbarFiltersTooltipShow:"Poka\u017c filtry",toolbarFiltersTooltipActive:e=>`Liczba aktywnych filtr\xf3w: ${e}`,toolbarQuickFilterPlaceholder:"Wyszukaj\u2026",toolbarQuickFilterLabel:"Szukaj",toolbarQuickFilterDeleteIconLabel:"Wyczy\u015b\u0107",toolbarExport:"Eksportuj",toolbarExportLabel:"Eksportuj",toolbarExportCSV:"Pobierz jako plik CSV",toolbarExportPrint:"Drukuj",toolbarExportExcel:"Pobierz jako plik Excel",columnsPanelTextFieldLabel:"Znajd\u017a kolumn\u0119",columnsPanelTextFieldPlaceholder:"Tytu\u0142 kolumny",columnsPanelDragIconLabel:"Zmie\u0144 kolejno\u015b\u0107 kolumn",columnsPanelShowAllButton:"Poka\u017c wszystko",columnsPanelHideAllButton:"Ukryj wszystko",filterPanelAddFilter:"Dodaj filtr",filterPanelRemoveAll:"Usu\u0144 wszystkie",filterPanelDeleteIconLabel:"Usu\u0144",filterPanelLogicOperator:"Operator logiczny",filterPanelOperator:"Operator",filterPanelOperatorAnd:"I",filterPanelOperatorOr:"Lub",filterPanelColumns:"Kolumny",filterPanelInputLabel:"Warto\u015b\u0107",filterPanelInputPlaceholder:"Filtrowana warto\u015b\u0107",filterOperatorContains:"zawiera",filterOperatorEquals:"r\xf3wna si\u0119",filterOperatorStartsWith:"zaczyna si\u0119 od",filterOperatorEndsWith:"ko\u0144czy si\u0119 na",filterOperatorIs:"r\xf3wna si\u0119",filterOperatorNot:"r\xf3\u017cne",filterOperatorAfter:"wi\u0119ksze ni\u017c",filterOperatorOnOrAfter:"wi\u0119ksze lub r\xf3wne",filterOperatorBefore:"mniejsze ni\u017c",filterOperatorOnOrBefore:"mniejsze lub r\xf3wne",filterOperatorIsEmpty:"jest pusty",filterOperatorIsNotEmpty:"nie jest pusty",filterOperatorIsAnyOf:"jest jednym z",headerFilterOperatorContains:"Zawiera",headerFilterOperatorEquals:"R\xf3wna si\u0119",headerFilterOperatorStartsWith:"Zaczyna si\u0119 od",headerFilterOperatorEndsWith:"Ko\u0144czy si\u0119 na",headerFilterOperatorNot:"Niepuste",filterValueAny:"dowolny",filterValueTrue:"prawda",filterValueFalse:"fa\u0142sz",columnMenuLabel:"Menu",columnMenuShowColumns:"Poka\u017c wszystkie kolumny",columnMenuManageColumns:"Zarz\u0105dzaj kolumnami",columnMenuFilter:"Filtr",columnMenuHideColumn:"Ukryj",columnMenuUnsort:"Anuluj sortowanie",columnMenuSortAsc:"Sortuj rosn\u0105co",columnMenuSortDesc:"Sortuj malej\u0105co",columnHeaderFiltersTooltipActive:e=>`Liczba aktywnych filtr\xf3w: ${e}`,columnHeaderFiltersLabel:"Poka\u017c filtry",columnHeaderSortIconLabel:"Sortuj",footerRowSelected:e=>`Liczba wybranych wierszy: ${e.toLocaleString()}`,footerTotalRows:"\u0141\u0105czna liczba wierszy:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} z ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Pole wyboru",checkboxSelectionSelectAllRows:"Zaznacz wszystkie wiersze",checkboxSelectionUnselectAllRows:"Odznacz wszystkie wiersze",checkboxSelectionSelectRow:"Zaznacz wiersz",checkboxSelectionUnselectRow:"Odznacz wiersz",booleanCellTrueLabel:"tak",booleanCellFalseLabel:"nie",actionsCellMore:"wi\u0119cej",pinToLeft:"Przypnij do lewej",pinToRight:"Przypnij do prawej",unpin:"Odepnij",treeDataGroupingHeaderName:"Grupa",treeDataExpand:"poka\u017c elementy potomne",treeDataCollapse:"ukryj elementy potomne",groupingColumnHeaderName:"Grupa",groupColumn:e=>`Grupuj wed\u0142ug ${e}`,unGroupColumn:e=>`Rozgrupuj ${e}`,expandDetailPanel:"Rozwi\u0144",collapseDetailPanel:"Zwi\u0144",rowReorderingHeaderName:"Porz\u0105dkowanie wierszy"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Poka\u017c \u015bcie\u017ck\u0119"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"Przejd\u017a do poprzedniej strony",labelRowsPerPage:"Wierszy na stron\u0119:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} z ${-1!==r?r:`ponad ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>{let t="gwiazdek";const n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":1===e&&(t="gwiazdka"),`${e} ${t}`},emptyLabelText:"Brak gwiazdek"}},MuiAutocomplete:{defaultProps:{clearText:"Wyczy\u015b\u0107",closeText:"Zamknij",loadingText:"\u0141adowanie\u2026",noOptionsText:"Brak opcji",openText:"Otw\xf3rz"}},MuiAlert:{defaultProps:{closeText:"Zamknij"}},MuiPagination:{defaultProps:{"aria-label":"Nawigacja podzia\u0142u na strony",getItemAriaLabel:(e,t,n)=>"page"===e?n?`${t}. strona`:`Przejd\u017a do ${t}. strony`:"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"Przejd\u017a do poprzedniej strony"}}}}),Aj=fj({noRowsLabel:"Nenhuma linha",noResultsOverlayLabel:"Nenhum resultado encontrado.",toolbarDensity:"Densidade",toolbarDensityLabel:"Densidade",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padr\xe3o",toolbarDensityComfortable:"Confort\xe1vel",toolbarColumns:"Colunas",toolbarColumnsLabel:"Exibir seletor de colunas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Exibir filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Exibir filtros",toolbarFiltersTooltipActive:e=>`${e} ${1!==e?"filtros":"filtro"} ${1!==e?"ativos":"ativo"}`,toolbarQuickFilterPlaceholder:"Procurar\u2026",toolbarQuickFilterLabel:"Procurar",toolbarQuickFilterDeleteIconLabel:"Limpar",toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Baixar como CSV",toolbarExportPrint:"Imprimir",toolbarExportExcel:"Baixar como Excel",columnsPanelTextFieldLabel:"Localizar coluna",columnsPanelTextFieldPlaceholder:"T\xedtulo da coluna",columnsPanelDragIconLabel:"Reordenar Coluna",columnsPanelShowAllButton:"Mostrar todas",columnsPanelHideAllButton:"Ocultar todas",filterPanelAddFilter:"Adicionar filtro",filterPanelRemoveAll:"Remover todos",filterPanelDeleteIconLabel:"Excluir",filterPanelLogicOperator:"Operador l\xf3gico",filterPanelOperator:"Operador",filterPanelOperatorAnd:"E",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colunas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Filtrar valor",filterOperatorContains:"cont\xe9m",filterOperatorEquals:"\xe9 igual a",filterOperatorStartsWith:"come\xe7a com",filterOperatorEndsWith:"termina com",filterOperatorIs:"\xe9",filterOperatorNot:"n\xe3o \xe9",filterOperatorAfter:"ap\xf3s",filterOperatorOnOrAfter:"em ou ap\xf3s",filterOperatorBefore:"antes de",filterOperatorOnOrBefore:"em ou antes de",filterOperatorIsEmpty:"est\xe1 vazio",filterOperatorIsNotEmpty:"n\xe3o est\xe1 vazio",filterOperatorIsAnyOf:"\xe9 qualquer um dos","filterOperator=":"igual \xe0","filterOperator!=":"diferente de","filterOperator>":"maior que","filterOperator>=":"maior ou igual que","filterOperator<":"menor que","filterOperator<=":"menor ou igual que",headerFilterOperatorContains:"Cont\xe9m",headerFilterOperatorEquals:"Igual",headerFilterOperatorStartsWith:"Come\xe7a com",headerFilterOperatorEndsWith:"Termina com",headerFilterOperatorIs:"\xc9",headerFilterOperatorNot:"N\xe3o \xe9",headerFilterOperatorAfter:"Depois de",headerFilterOperatorOnOrAfter:"Est\xe1 entre ou depois de",headerFilterOperatorBefore:"Antes de",headerFilterOperatorOnOrBefore:"Est\xe1 entre ou antes de",headerFilterOperatorIsEmpty:"\xc9 vazio",headerFilterOperatorIsNotEmpty:"N\xe3o \xe9 vazio",headerFilterOperatorIsAnyOf:"\xc9 algum","headerFilterOperator=":"Igual","headerFilterOperator!=":"N\xe3o igual","headerFilterOperator>":"Maior que","headerFilterOperator>=":"Maior que ou igual a","headerFilterOperator<":"Menor que","headerFilterOperator<=":"Menor que ou igual a",filterValueAny:"qualquer",filterValueTrue:"verdadeiro",filterValueFalse:"falso",columnMenuLabel:"Menu",columnMenuShowColumns:"Exibir colunas",columnMenuManageColumns:"Gerir colunas",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desfazer ordena\xe7\xe3o",columnMenuSortAsc:"Ordenar do menor para o maior",columnMenuSortDesc:"Ordenar do maior para o menor",columnHeaderFiltersTooltipActive:e=>`${e} ${1!==e?"filtros":"filtro"} ${1!==e?"ativos":"ativo"}`,columnHeaderFiltersLabel:"Exibir Filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:e=>1!==e?`${e.toLocaleString()} linhas selecionadas`:`${e.toLocaleString()} linha selecionada`,footerTotalRows:"Total de linhas:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} de ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Sele\xe7\xe3o",checkboxSelectionSelectAllRows:"Selecionar todas linhas",checkboxSelectionUnselectAllRows:"Deselecionar todas linhas",checkboxSelectionSelectRow:"Selecionar linha",checkboxSelectionUnselectRow:"Deselecionar linha",booleanCellTrueLabel:"sim",booleanCellFalseLabel:"n\xe3o",actionsCellMore:"mais",pinToLeft:"Fixar \xe0 esquerda",pinToRight:"Fixar \xe0 direita",unpin:"Desafixar",treeDataGroupingHeaderName:"Grupo",treeDataExpand:"mostrar filhos",treeDataCollapse:"esconder filhos",groupingColumnHeaderName:"Grupo",groupColumn:e=>`Agrupar por ${e}`,unGroupColumn:e=>`Parar agrupamento por ${e}`,detailPanelToggle:"Painel de detalhes",expandDetailPanel:"Expandir",collapseDetailPanel:"Esconder",rowReorderingHeaderName:"Reorganizar linhas",aggregationMenuItemHeader:"Agrupar",aggregationFunctionLabelSum:"soma",aggregationFunctionLabelAvg:"m\xe9dia",aggregationFunctionLabelMin:"m\xedn",aggregationFunctionLabelMax:"m\xe1x",aggregationFunctionLabelSize:"tamanho"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"Ir para a p\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} de ${-1!==r?r:`mais de ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${1!==e?"s":""}`,emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar pela pagina\xe7\xe3o",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Ir para a "}p\xe1gina ${t}`:"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"Ir para a p\xe1gina anterior"}}}}),Nj=fj({noRowsLabel:"Lips\u0103 date",noResultsOverlayLabel:"Nu au fost g\u0103site rezultate.",toolbarDensity:"\xcen\u0103l\u021bime r\xe2nd",toolbarDensityLabel:"\xcen\u0103l\u021bime r\xe2nd",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Lat",toolbarColumns:"Coloane",toolbarColumnsLabel:"Afi\u0219eaz\u0103 selec\u021bie coloane",toolbarFilters:"Filtru",toolbarFiltersLabel:"Afi\u0219eaz\u0103 filtru",toolbarFiltersTooltipHide:"Ascunde filtru",toolbarFiltersTooltipShow:"Afi\u0219eaz\u0103 filtru",toolbarFiltersTooltipActive:e=>`${e} filtru activ`,toolbarQuickFilterPlaceholder:"C\u0103utare\u2026",toolbarQuickFilterLabel:"C\u0103utare",toolbarQuickFilterDeleteIconLabel:"\u0218tergere",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download \xeen format CSV",toolbarExportPrint:"Printare",toolbarExportExcel:"Download \xeen format Excel",columnsPanelTextFieldLabel:"G\u0103se\u0219te coloana",columnsPanelTextFieldPlaceholder:"Titlu coloan\u0103",columnsPanelDragIconLabel:"Resortare coloan\u0103",columnsPanelShowAllButton:"Afi\u0219eaz\u0103 tot",columnsPanelHideAllButton:"Ascunde tot",filterPanelAddFilter:"Ad\u0103ugare filtru",filterPanelRemoveAll:"\u0218terge tot",filterPanelDeleteIconLabel:"\u0218tergere",filterPanelLogicOperator:"Operatori logici",filterPanelOperator:"Operatori",filterPanelOperatorAnd:"\u0218i",filterPanelOperatorOr:"Sau",filterPanelColumns:"Coloane",filterPanelInputLabel:"Valoare",filterPanelInputPlaceholder:"Filtrare valoare",filterOperatorContains:"con\u021bine",filterOperatorEquals:"este egal cu",filterOperatorStartsWith:"\xeencepe cu",filterOperatorEndsWith:"se termin\u0103 cu",filterOperatorIs:"este",filterOperatorNot:"nu este",filterOperatorAfter:"este dup\u0103",filterOperatorOnOrAfter:"este la sau dup\u0103",filterOperatorBefore:"este \xeenainte de",filterOperatorOnOrBefore:"este la sau \xeenainte de",filterOperatorIsEmpty:"este gol",filterOperatorIsNotEmpty:"nu este gol",filterOperatorIsAnyOf:"este una din valori","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Con\u021bine",headerFilterOperatorEquals:"Egal cu",headerFilterOperatorStartsWith:"\xcencepe cu",headerFilterOperatorEndsWith:"Se termin\u0103 cu",headerFilterOperatorIs:"Este",headerFilterOperatorNot:"Nu este",headerFilterOperatorAfter:"Este dup\u0103",headerFilterOperatorOnOrAfter:"Este la sau dup\u0103",headerFilterOperatorBefore:"Este \xeenainte de",headerFilterOperatorOnOrBefore:"este la sau \xeenainte de",headerFilterOperatorIsEmpty:"Este gol",headerFilterOperatorIsNotEmpty:"Nu este gol",headerFilterOperatorIsAnyOf:"Este una din valori","headerFilterOperator=":"Egal cu","headerFilterOperator!=":"Nu este egal cu","headerFilterOperator>":"Mai mare dec\xe2t","headerFilterOperator>=":"Mai mare sau egal cu","headerFilterOperator<":"Mai mic dec\xe2t","headerFilterOperator<=":"Mai mic sau egal cu",filterValueAny:"Aleatoriu",filterValueTrue:"Da",filterValueFalse:"Nu",columnMenuLabel:"Meniu",columnMenuShowColumns:"Afi\u0219eaz\u0103 toate coloanele",columnMenuManageColumns:"Gestioneaz\u0103 coloane",columnMenuFilter:"Filtru",columnMenuHideColumn:"Ascunde",columnMenuUnsort:"Dezactivare sortare",columnMenuSortAsc:"Sorteaz\u0103 cresc\u0103tor",columnMenuSortDesc:"Sorteaz\u0103 descresc\u0103tor",columnHeaderFiltersTooltipActive:e=>`${e} filtru activ`,columnHeaderFiltersLabel:"Afi\u0219eaz\u0103 filtru",columnHeaderSortIconLabel:"Sortare",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \xcenregistr\u0103ri selectate`:`${e.toLocaleString()} \xcenregistrare selectat\u0103`,footerTotalRows:"Total:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} din ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox Selec\u021bie",checkboxSelectionSelectAllRows:"Selectare toate r\xe2ndurile",checkboxSelectionUnselectAllRows:"Deselectare toate r\xe2ndurile",checkboxSelectionSelectRow:"Selectare r\xe2nd",checkboxSelectionUnselectRow:"Deselectare r\xe2nd",booleanCellTrueLabel:"Da",booleanCellFalseLabel:"Nu",actionsCellMore:"Mai multe",pinToLeft:"Fixare \xeen st\xe2nga",pinToRight:"Fixare \xeen dreapta",unpin:"Anulare fixare",treeDataGroupingHeaderName:"Grup",treeDataExpand:"Afi\u0219are copii",treeDataCollapse:"Ascundere copii",groupingColumnHeaderName:"Grupare",groupColumn:e=>`Grupare dup\u0103 ${e}`,unGroupColumn:e=>`Anulare Grupare dup\u0103 ${e}`,detailPanelToggle:"Comutare panou detalii",expandDetailPanel:"Extindere",collapseDetailPanel:"Restr\xe2ngere",rowReorderingHeaderName:"Reordonare r\xe2nduri",aggregationMenuItemHeader:"Agregare",aggregationFunctionLabelSum:"Sum\u0103",aggregationFunctionLabelAvg:"Medie",aggregationFunctionLabelMin:"Minim",aggregationFunctionLabelMax:"Maxim",aggregationFunctionLabelSize:"Num\u0103rul elementelor"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Arat\u0103 calea"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Mergi la prima pagin\u0103":"last"===e?"Mergi la ultima pagin\u0103":"next"===e?"Mergi la pagina urm\u0103toare":"Mergi la pagina precedent\u0103",labelRowsPerPage:"R\xe2nduri pe pagin\u0103:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${1!==e?"ele":"ea"}`,emptyLabelText:"Gol"}},MuiAutocomplete:{defaultProps:{clearText:"\u0218terge",closeText:"\xcenchide",loadingText:"Se \xeencarc\u0103\u2026",noOptionsText:"Nicio op\u021biune",openText:"Deschide"}},MuiAlert:{defaultProps:{closeText:"\xcenchide"}},MuiPagination:{defaultProps:{"aria-label":"Navigare prin paginare",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"Mergi la "}pagina ${t}`:"first"===e?"Mergi la prima pagin\u0103":"last"===e?"Mergi la ultima pagin\u0103":"next"===e?"Mergi la pagina urm\u0103toare":"Mergi la pagina precedent\u0103"}}}}),Fj=fj({noRowsLabel:"\u041d\u0435\u0442 \u0441\u0442\u0440\u043e\u043a",noResultsOverlayLabel:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b.",toolbarDensity:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityLabel:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430\u044f",toolbarColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",toolbarColumnsLabel:"\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b",toolbarFilters:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u044b\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipActive:e=>{let t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432";const n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),`${e} ${t}`},toolbarQuickFilterPlaceholder:"\u041f\u043e\u0438\u0441\u043a\u2026",toolbarQuickFilterLabel:"\u041f\u043e\u0438\u0441\u043a",toolbarQuickFilterDeleteIconLabel:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",toolbarExport:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 CSV",toolbarExportPrint:"\u041f\u0435\u0447\u0430\u0442\u044c",toolbarExportExcel:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 Excel",columnsPanelTextFieldLabel:"\u041d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelDragIconLabel:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",columnsPanelHideAllButton:"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440",filterPanelRemoveAll:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",filterPanelLogicOperator:"\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b",filterPanelOperator:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",filterOperatorEquals:"\u0440\u0430\u0432\u0435\u043d",filterOperatorStartsWith:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441",filterOperatorEndsWith:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0440\u0430\u0432\u0435\u043d",filterOperatorNot:"\u043d\u0435 \u0440\u0430\u0432\u0435\u043d",filterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorIsEmpty:"\u043f\u0443\u0441\u0442\u043e\u0439",filterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439",filterOperatorIsAnyOf:"\u043b\u044e\u0431\u043e\u0439 \u0438\u0437","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",headerFilterOperatorEquals:"\u0440\u0430\u0432\u0435\u043d",headerFilterOperatorStartsWith:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441",headerFilterOperatorEndsWith:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430",headerFilterOperatorIs:"\u0440\u0430\u0432\u0435\u043d",headerFilterOperatorNot:"\u043d\u0435 \u0440\u0430\u0432\u0435\u043d",headerFilterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c",headerFilterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",headerFilterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c",headerFilterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",headerFilterOperatorIsEmpty:"\u043f\u0443\u0441\u0442\u043e\u0439",headerFilterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439",headerFilterOperatorIsAnyOf:"\u043b\u044e\u0431\u043e\u0439 \u0438\u0437","headerFilterOperator=":"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442","headerFilterOperator!=":"\u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442","headerFilterOperator>":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c","headerFilterOperator>=":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","headerFilterOperator<":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c","headerFilterOperator<=":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterValueAny:"\u043b\u044e\u0431\u043e\u0439",filterValueTrue:"\u0438\u0441\u0442\u0438\u043d\u0430",filterValueFalse:"\u043b\u043e\u0436\u044c",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0446\u044b",columnMenuManageColumns:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438",columnMenuFilter:"\u0424\u0438\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u043a\u0440\u044b\u0442\u044c",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e",columnHeaderFiltersTooltipActive:e=>{let t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432";const n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),`${e} ${t}`},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",footerRowSelected:e=>{let t="\u0441\u0442\u0440\u043e\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043e";const n=e%10;return n>1&&n<5?t="\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b":1===n&&(t="\u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430"),`${e} ${t}`},footerTotalRows:"\u0412\u0441\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u0438\u0437 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0412\u044b\u0431\u043e\u0440 \u0444\u043b\u0430\u0436\u043a\u0430",checkboxSelectionSelectAllRows:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438",checkboxSelectionUnselectAllRows:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u043e\u043a",checkboxSelectionSelectRow:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",checkboxSelectionUnselectRow:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u0438",booleanCellTrueLabel:"\u0438\u0441\u0442\u0438\u043d\u0430",booleanCellFalseLabel:"\u043b\u043e\u0436\u044c",actionsCellMore:"\u0435\u0449\u0451",pinToLeft:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043b\u0435\u0432\u0430",pinToRight:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430",unpin:"\u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u043f\u0430",treeDataExpand:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",treeDataCollapse:"\u0441\u043a\u0440\u044b\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",groupingColumnHeaderName:"\u0413\u0440\u0443\u043f\u043f\u0430",groupColumn:e=>`\u0421\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e ${e}`,unGroupColumn:e=>`\u0420\u0430\u0437\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e ${e}`,detailPanelToggle:"\u0414\u0435\u0442\u0430\u043b\u0438",expandDetailPanel:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",collapseDetailPanel:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",rowReorderingHeaderName:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0441\u0442\u0440\u043e\u043a",aggregationMenuItemHeader:"\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445",aggregationFunctionLabelSum:"\u0441\u0443\u043c\u043c",aggregationFunctionLabelAvg:"\u0441\u0440\u0437\u043d\u0430\u0447",aggregationFunctionLabelMin:"\u043c\u0438\u043d",aggregationFunctionLabelMax:"\u043c\u0430\u043a\u0441",aggregationFunctionLabelSize:"\u0441\u0447\u0435\u0442"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443",labelRowsPerPage:"\u0421\u0442\u0440\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u0438\u0437 ${-1!==r?r:`\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>{let t="\u0417\u0432\u0451\u0437\u0434";const n=e%10;return n>1&&n<5?t="\u0417\u0432\u0435\u0437\u0434\u044b":1===n&&(t="\u0417\u0432\u0435\u0437\u0434\u0430"),`${e} ${t}`},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}},MuiAutocomplete:{defaultProps:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",loadingText:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026",noOptionsText:"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}},MuiPagination:{defaultProps:{"aria-label":"\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c",getItemAriaLabel:(e,t,n)=>"page"===e?n?`${t} \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430`:`\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ${t} \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443`:"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"}}}}),zj=fj({noRowsLabel:"\u017diadne z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li sa \u017eadne v\xfdsledky.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xe1",toolbarDensityStandard:"\u0160tandartn\xe1",toolbarDensityComfortable:"Komfortn\xe1",toolbarColumns:"St\u013apce",toolbarColumnsLabel:"Vybra\u0165 st\u013apce",toolbarFilters:"Filtre",toolbarFiltersLabel:"Zobrazi\u0165 filtre",toolbarFiltersTooltipHide:"Skry\u0165 filtre ",toolbarFiltersTooltipShow:"Zobrazi\u0165 filtre",toolbarFiltersTooltipActive:e=>{let t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),`${e} ${t}`},toolbarQuickFilterPlaceholder:"Vyh\u013eada\u0165\u2026",toolbarQuickFilterLabel:"Vyh\u013eada\u0165",toolbarQuickFilterDeleteIconLabel:"Vymaza\u0165",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stiahnu\u0165 ako CSV",toolbarExportPrint:"Vytla\u010di\u0165",toolbarExportExcel:"Stiahnu\u0165 ako Excel",columnsPanelTextFieldLabel:"N\xe1js\u0165 st\u013apec",columnsPanelTextFieldPlaceholder:"N\xe1zov st\u013apca",columnsPanelDragIconLabel:"Usporiad\u0165 st\u013apce",columnsPanelShowAllButton:"Zobrazi\u0165 v\u0161etko",columnsPanelHideAllButton:"Skry\u0165 v\u0161etko",filterPanelAddFilter:"Prida\u0165 filter",filterPanelRemoveAll:"Odstr\xe1ni\u0165 v\u0161etky",filterPanelDeleteIconLabel:"Odstr\xe1ni\u0165",filterPanelLogicOperator:"Logick\xfd oper\xe1tor",filterPanelOperator:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Alebo",filterPanelColumns:"St\u013apce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtra",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 sa",filterOperatorStartsWith:"za\u010d\xedna s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nie je",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na alebo po",filterOperatorBefore:"je pred",filterOperatorOnOrBefore:"je na alebo sk\xf4r",filterOperatorIsEmpty:"je pr\xe1zdny",filterOperatorIsNotEmpty:"nie je pr\xe1zdny",filterOperatorIsAnyOf:"je jeden z","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Obsahuje",headerFilterOperatorEquals:"Rovn\xe1 sa",headerFilterOperatorStartsWith:"Za\u010d\xedna s",headerFilterOperatorEndsWith:"Kon\u010d\xed na",headerFilterOperatorIs:"Je",headerFilterOperatorNot:"Nie je",headerFilterOperatorAfter:"Je po",headerFilterOperatorOnOrAfter:"Je na alebo po",headerFilterOperatorBefore:"Je pred",headerFilterOperatorOnOrBefore:"Je na alebo sk\xf4r",headerFilterOperatorIsEmpty:"Je pr\xe1zdny",headerFilterOperatorIsNotEmpty:"Nie je pr\xe1zdny",headerFilterOperatorIsAnyOf:"Je jeden z","headerFilterOperator=":"Rovn\xe1 sa","headerFilterOperator!=":"Nerovn\xe1 sa","headerFilterOperator>":"V\xe4\u010d\u0161\xed ako","headerFilterOperator>=":"V\xe4\u010d\u0161\xed ako alebo rovn\xfd","headerFilterOperator<":"Men\u0161\xed ako","headerFilterOperator<=":"Men\u0161\xed ako alebo rovn\xfd",filterValueAny:"ak\xfdko\u013evek",filterValueTrue:"\xe1no",filterValueFalse:"nie",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazi\u0165 st\u013apce",columnMenuManageColumns:"Spravova\u0165 st\u013apce",columnMenuFilter:"Filter",columnMenuHideColumn:"Skry\u0165",columnMenuUnsort:"Zru\u0161i\u0165 filtre",columnMenuSortAsc:"Zoradi\u0165 vzostupne",columnMenuSortDesc:"Zoradi\u0165 zostupne",columnHeaderFiltersTooltipActive:e=>{let t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),`${e} ${t}`},columnHeaderFiltersLabel:"Zobrazi\u0165 filtre",columnHeaderSortIconLabel:"Filtrova\u0165",footerRowSelected:e=>{let t="vybran\xfdch z\xe1znamov";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),`${e} ${t}`},footerTotalRows:"Riadkov spolu:",footerTotalVisibleRows:(e,t)=>{const n=t.toString(),r=n[0],i=["4","6","7"].includes(r)||"1"===r&&n.length%3===0?"zo":"z";return`${e.toLocaleString()} ${i} ${t.toLocaleString()}`},checkboxSelectionHeaderName:"V\xfdber riadku",checkboxSelectionSelectAllRows:"Vybra\u0165 v\u0161etky riadky",checkboxSelectionUnselectAllRows:"Zru\u0161i\u0165 v\xfdber v\u0161etk\xfdch riadkov",checkboxSelectionSelectRow:"Vyber riadok",checkboxSelectionUnselectRow:"Zru\u0161 v\xfdber riadku",booleanCellTrueLabel:"\xe1no",booleanCellFalseLabel:"nie",actionsCellMore:"viac",pinToLeft:"Pripn\xfa\u0165 na \u013eavo",pinToRight:"Pripn\xfa\u0165 na pravo",unpin:"Odopn\xfa\u0165",treeDataGroupingHeaderName:"Skupina",treeDataExpand:"zobrazi\u0165 potomkov",treeDataCollapse:"skry\u0165 potomkov",groupingColumnHeaderName:"Skupina",groupColumn:e=>`Zoskupi\u0165 pod\u013ea ${e}`,unGroupColumn:e=>`Presta\u0165 zoskupova\u0165 pod\u013ea ${e}`,detailPanelToggle:"Prepn\xfa\u0165 detail panelu",expandDetailPanel:"Rozbali\u0165",collapseDetailPanel:"Zbali\u0165",rowReorderingHeaderName:"Preusporiad\xe1vanie riadkov",aggregationMenuItemHeader:"Agreg\xe1cia",aggregationFunctionLabelSum:"suma",aggregationFunctionLabelAvg:"priemer",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"po\u010det"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Uk\xe1za\u0165 cestu "}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\xcds\u0165 na prv\xfa str\xe1nku":"last"===e?"\xcds\u0165 na posledn\xfa str\xe1nku":"next"===e?"\xcds\u0165 na \u010fa\u013e\u0161iu str\xe1nku":"\xcds\u0165 na predch\xe1dzaj\xfacu str\xe1nku",labelRowsPerPage:"Riadkov na str\xe1nke:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} z ${-1!==r?r:`viac ako ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>1===e?`${e} hviezdi\u010dka`:e>=2&&e<=4?`${e} hviezdi\u010dky`:`${e} hviezdi\u010diek`,emptyLabelText:"Pr\xe1zdne"}},MuiAutocomplete:{defaultProps:{clearText:"Vymaza\u0165",closeText:"Zavrie\u0165",loadingText:"Na\u010d\xedtanie\u2026",noOptionsText:"\u017diadne mo\u017enosti",openText:"Otvori\u0165"}},MuiAlert:{defaultProps:{closeText:"Zavrie\u0165"}},MuiPagination:{defaultProps:{"aria-label":"Navig\xe1cia str\xe1nkovanim",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\xcds\u0165 na "}str\xe1nku ${t}`:"first"===e?"\xcds\u0165 na prv\xfa str\xe1nku":"last"===e?"\xcds\u0165 na posledn\xfa str\xe1nku":"next"===e?"\xcds\u0165 na \u010fa\u013e\u0161iu str\xe1nku":"\xcds\u0165 na predch\xe1dzaj\xfacu str\xe1nku"}}}}),Bj=fj({noRowsLabel:"Inga rader",noResultsOverlayLabel:"Inga resultat funna.",toolbarDensity:"Densitet",toolbarDensityLabel:"Densitet",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Bekv\xe4m",toolbarColumns:"Kolumner",toolbarColumnsLabel:"V\xe4lj kolumner",toolbarFilters:"Filter",toolbarFiltersLabel:"Visa filter",toolbarFiltersTooltipHide:"D\xf6lj filter",toolbarFiltersTooltipShow:"Visa filter",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktiva filter`:`${e} aktivt filter`,toolbarQuickFilterPlaceholder:"S\xf6k\u2026",toolbarQuickFilterLabel:"S\xf6k",toolbarQuickFilterDeleteIconLabel:"Rensa",toolbarExport:"Exportera",toolbarExportLabel:"Exportera",toolbarExportCSV:"Ladda ner som CSV",toolbarExportPrint:"Skriv ut",toolbarExportExcel:"Ladda ner som Excel",columnsPanelTextFieldLabel:"Hitta kolumn",columnsPanelTextFieldPlaceholder:"Kolumntitel",columnsPanelDragIconLabel:"Ordna om kolumnen",columnsPanelShowAllButton:"Visa alla",columnsPanelHideAllButton:"D\xf6lj alla",filterPanelAddFilter:"L\xe4gg till filter",filterPanelRemoveAll:"Ta bort alla",filterPanelDeleteIconLabel:"Ta bort",filterPanelLogicOperator:"Logisk operat\xf6r",filterPanelOperator:"Operat\xf6r",filterPanelOperatorAnd:"Och",filterPanelOperatorOr:"Eller",filterPanelColumns:"Kolumner",filterPanelInputLabel:"V\xe4rde",filterPanelInputPlaceholder:"Filterv\xe4rde",filterOperatorContains:"inneh\xe5ller",filterOperatorEquals:"\xe4r lika med",filterOperatorStartsWith:"b\xf6rjar med",filterOperatorEndsWith:"slutar med",filterOperatorIs:"\xe4r",filterOperatorNot:"\xe4r inte",filterOperatorAfter:"\xe4r efter",filterOperatorOnOrAfter:"\xe4r p\xe5 eller efter",filterOperatorBefore:"\xe4r innan",filterOperatorOnOrBefore:"\xe4r p\xe5 eller innan",filterOperatorIsEmpty:"\xe4r tom",filterOperatorIsNotEmpty:"\xe4r inte tom",filterOperatorIsAnyOf:"\xe4r n\xe5gon av",filterValueAny:"n\xe5got",filterValueTrue:"sant",filterValueFalse:"falskt",columnMenuLabel:"Meny",columnMenuShowColumns:"Visa kolumner",columnMenuManageColumns:"Hantera kolumner",columnMenuFilter:"Filtrera",columnMenuHideColumn:"D\xf6lj",columnMenuUnsort:"Osortera",columnMenuSortAsc:"Sortera stigande",columnMenuSortDesc:"Sortera fallande",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktiva filter`:`${e} aktivt filter`,columnHeaderFiltersLabel:"Visa filter",columnHeaderSortIconLabel:"Sortera",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rader markerade`:`${e.toLocaleString()} rad markerad`,footerTotalRows:"Totalt antal rader:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} av ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Markering med kryssruta",checkboxSelectionSelectAllRows:"Markera alla rader",checkboxSelectionUnselectAllRows:"Avmarkera alla rader",checkboxSelectionSelectRow:"Markera rad",checkboxSelectionUnselectRow:"Avmarkera rad",booleanCellTrueLabel:"ja",booleanCellFalseLabel:"nej",actionsCellMore:"mer",pinToLeft:"F\xe4st till v\xe4nster",pinToRight:"F\xe4st till h\xf6ger",unpin:"Ta bort f\xe4stning",treeDataGroupingHeaderName:"Grupp",treeDataExpand:"visa underordnade",treeDataCollapse:"d\xf6lj underordnade",groupingColumnHeaderName:"Grupp",groupColumn:e=>`Gruppera efter ${e}`,unGroupColumn:e=>`Sluta gruppera efter ${e}`,detailPanelToggle:"V\xe4xla detaljpanel",expandDetailPanel:"Expandera",collapseDetailPanel:"Kollapsa",rowReorderingHeaderName:"Ordna om rader",aggregationMenuItemHeader:"Aggregering",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"medel",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"antal"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visa s\xf6kv\xe4g"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"G\xe5 till f\xf6rsta sidan":"last"===e?"G\xe5 till sista sidan":"next"===e?"G\xe5 till n\xe4sta sida":"G\xe5 till f\xf6reg\xe5ende sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} av ${-1!==r?r:`fler \xe4n ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${1!==e?"Stj\xe4rnor":"Stj\xe4rna"}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Rensa",closeText:"St\xe4ng",loadingText:"Laddar\u2026",noOptionsText:"Inga alternativ",openText:"\xd6ppna"}},MuiAlert:{defaultProps:{closeText:"St\xe4ng"}},MuiPagination:{defaultProps:{"aria-label":"Sidnavigering",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"G\xe5 till "}sida ${t}`:"first"===e?"G\xe5 till f\xf6rsta sidan":"last"===e?"G\xe5 till sista sidan":"next"===e?"G\xe5 till n\xe4sta sida":"G\xe5 till f\xf6reg\xe5ende sida"}}}}),Uj=fj({noRowsLabel:"Sat\u0131r yok",noResultsOverlayLabel:"Sonu\xe7 bulunamad\u0131.",toolbarDensity:"Yo\u011funluk",toolbarDensityLabel:"Yo\u011funluk",toolbarDensityCompact:"S\u0131k\u0131",toolbarDensityStandard:"Standart",toolbarDensityComfortable:"Rahat",toolbarColumns:"S\xfctunlar",toolbarColumnsLabel:"S\xfctun se\xe7",toolbarFilters:"Filtreler",toolbarFiltersLabel:"Filtreleri g\xf6ster",toolbarFiltersTooltipHide:"Filtreleri gizle",toolbarFiltersTooltipShow:"Filtreleri g\xf6ster",toolbarFiltersTooltipActive:e=>`${e} aktif filtre`,toolbarQuickFilterPlaceholder:"Ara\u2026",toolbarQuickFilterLabel:"Ara",toolbarQuickFilterDeleteIconLabel:"Temizle",toolbarExport:"D\u0131\u015fa aktar",toolbarExportLabel:"D\u0131\u015fa aktar",toolbarExportCSV:"CSV olarak aktar",toolbarExportPrint:"Yazd\u0131r",toolbarExportExcel:"Excel olarak aktar",columnsPanelTextFieldLabel:"S\xfctun ara",columnsPanelTextFieldPlaceholder:"S\xfctun ad\u0131",columnsPanelDragIconLabel:"S\xfctunlar\u0131 yeniden s\u0131rala",columnsPanelShowAllButton:"Hepsini g\xf6ster",columnsPanelHideAllButton:"Hepsini gizle",filterPanelAddFilter:"Filtre Ekle",filterPanelRemoveAll:"Hepsini kald\u0131r",filterPanelDeleteIconLabel:"Kald\u0131r",filterPanelLogicOperator:"Mant\u0131ksal operat\xf6rler",filterPanelOperator:"Operat\xf6r",filterPanelOperatorAnd:"Ve",filterPanelOperatorOr:"Veya",filterPanelColumns:"S\xfctunlar",filterPanelInputLabel:"De\u011fer",filterPanelInputPlaceholder:"Filtre de\u011feri",filterOperatorContains:"i\xe7erir",filterOperatorEquals:"e\u015fittir",filterOperatorStartsWith:"ile ba\u015flar",filterOperatorEndsWith:"ile biter",filterOperatorIs:"e\u015fittir",filterOperatorNot:"e\u015fit de\u011fildir",filterOperatorAfter:"b\xfcy\xfck",filterOperatorOnOrAfter:"b\xfcy\xfck e\u015fit",filterOperatorBefore:"k\xfc\xe7\xfck",filterOperatorOnOrBefore:"k\xfc\xe7\xfck e\u015fit",filterOperatorIsEmpty:"bo\u015f",filterOperatorIsNotEmpty:"dolu",filterOperatorIsAnyOf:"herhangi biri","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u015eunu i\xe7erir",headerFilterOperatorEquals:"\u015euna e\u015fittir",headerFilterOperatorStartsWith:"\u015eununla ba\u015flar",headerFilterOperatorEndsWith:"\u015eununla biter",filterValueAny:"herhangi",filterValueTrue:"do\u011fru",filterValueFalse:"yanl\u0131\u015f",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"S\xfctunlar\u0131 g\xf6ster",columnMenuManageColumns:"S\xfctunlar\u0131 y\xf6net",columnMenuFilter:"Filtre Ekle",columnMenuHideColumn:"Gizle",columnMenuUnsort:"Varsay\u0131lan S\u0131ralama",columnMenuSortAsc:"S\u0131rala - Artan",columnMenuSortDesc:"S\u0131rala - Azalan",columnHeaderFiltersTooltipActive:e=>`${e} filtre aktif`,columnHeaderFiltersLabel:"Filtreleri g\xf6ster",columnHeaderSortIconLabel:"S\u0131rala",footerRowSelected:e=>`${e.toLocaleString()} sat\u0131r se\xe7ildi`,footerTotalRows:"Toplam Sat\u0131r:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Se\xe7im",checkboxSelectionSelectAllRows:"T\xfcm sat\u0131rlar\u0131 se\xe7",checkboxSelectionUnselectAllRows:"T\xfcm sat\u0131rlar\u0131n se\xe7imini kald\u0131r",checkboxSelectionSelectRow:"Sat\u0131r\u0131 se\xe7",checkboxSelectionUnselectRow:"Sat\u0131r se\xe7imini b\u0131rak",booleanCellTrueLabel:"Evet",booleanCellFalseLabel:"Hay\u0131r",actionsCellMore:"daha fazla",pinToLeft:"Sola sabitle",pinToRight:"Sa\u011fa sabitle",unpin:"Sabitlemeyi kald\u0131r",treeDataGroupingHeaderName:"Grup",treeDataExpand:"g\xf6ster",treeDataCollapse:"gizle",groupingColumnHeaderName:"Grup",groupColumn:e=>`${e} i\xe7in grupla`,unGroupColumn:e=>`${e} i\xe7in gruplamay\u0131 kald\u0131r`,detailPanelToggle:"Detay g\xf6r\xfcn\xfcm\xfcne ge\xe7i\u015f",expandDetailPanel:"Geni\u015flet",collapseDetailPanel:"Gizle",rowReorderingHeaderName:"Sat\u0131r\u0131 yeniden s\u0131rala",aggregationMenuItemHeader:"Toplama",aggregationFunctionLabelSum:"top",aggregationFunctionLabelAvg:"ort",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"maks",aggregationFunctionLabelSize:"boyut"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu g\xf6ster"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"\xd6nceki sayfaya git",labelRowsPerPage:"Sayfa ba\u015f\u0131na sat\u0131r:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Y\u0131ld\u0131z`,emptyLabelText:"Bo\u015f"}},MuiAutocomplete:{defaultProps:{clearText:"Temizle",closeText:"Kapat",loadingText:"Y\xfckleniyor\u2026",noOptionsText:"Se\xe7enek yok",openText:"A\xe7"}},MuiAlert:{defaultProps:{closeText:"Kapat"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:(e,t,n)=>"page"===e?`${t}. ${n?"sayfa":"sayfaya git"}`:"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"\xd6nceki sayfaya git"}}}}),$j=(e,t)=>{let n=t.many;const r=e%10;return r>1&&r<5?n=t.few:1===r&&(n=t.one),`${e} ${n}`},Vj=fj({noRowsLabel:"\u041d\u0435\u043c\u0430\u0454 \u0440\u044f\u0434\u043a\u0456\u0432",noResultsOverlayLabel:"\u0414\u0430\u043d\u0456 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e.",toolbarDensity:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityLabel:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0439",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0438\u0439",toolbarColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",toolbarColumnsLabel:"\u0412\u0438\u0434\u0456\u043b\u0456\u0442\u044c \u0441\u0442\u043e\u0432\u043f\u0446\u0456",toolbarFilters:"\u0424\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipHide:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipActive:e=>$j(e,{one:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440",few:"\u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",many:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0456\u0432"}),toolbarQuickFilterPlaceholder:"\u041f\u043e\u0448\u0443\u043a\u2026",toolbarQuickFilterLabel:"\u041f\u043e\u0448\u0443\u043a",toolbarQuickFilterDeleteIconLabel:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",toolbarExport:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 CSV",toolbarExportPrint:"\u0414\u0440\u0443\u043a",toolbarExportExcel:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 Excel",columnsPanelTextFieldLabel:"\u0417\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelDragIconLabel:"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0432\u0441\u0456",columnsPanelHideAllButton:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0432\u0441\u0456",filterPanelAddFilter:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440",filterPanelRemoveAll:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0432\u0441\u0456",filterPanelDeleteIconLabel:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",filterPanelLogicOperator:"\u041b\u043e\u0433\u0456\u0447\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0456\u044f",filterPanelOperator:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0406",filterPanelOperatorOr:"\u0410\u0431\u043e",filterPanelColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0444\u0456\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u043c\u0456\u0441\u0442\u0438\u0442\u044c",filterOperatorEquals:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorStartsWith:"\u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437",filterOperatorEndsWith:"\u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorNot:"\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorBefore:"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorIsEmpty:"\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439",filterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439",filterOperatorIsAnyOf:"\u0431\u0443\u0434\u044c-\u0449\u043e \u0456\u0437","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u041c\u0456\u0441\u0442\u0438\u0442\u044c",headerFilterOperatorEquals:"\u0414\u043e\u0440\u0456\u0432\u043d\u044e\u0454",headerFilterOperatorStartsWith:"\u041f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437",headerFilterOperatorEndsWith:"\u0417\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0430",headerFilterOperatorIs:"\u0414\u043e\u0440\u0456\u0432\u043d\u044e\u0454",headerFilterOperatorNot:"\u041d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",headerFilterOperatorAfter:"\u041f\u0456\u0441\u043b\u044f",headerFilterOperatorOnOrAfter:"\u041f\u0456\u0441\u043b\u044f (\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0447\u0438)",headerFilterOperatorBefore:"\u0420\u0430\u043d\u0456\u0448\u0435",headerFilterOperatorOnOrBefore:"\u0420\u0430\u043d\u0456\u0448\u0435 (\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0447\u0438)",headerFilterOperatorIsEmpty:"\u041f\u043e\u0440\u043e\u0436\u043d\u0454",headerFilterOperatorIsNotEmpty:"\u041d\u0435 \u043f\u043e\u0440\u043e\u0436\u043d\u0454",headerFilterOperatorIsAnyOf:"\u0411\u0443\u0434\u044c-\u0449\u043e \u0456\u0437","headerFilterOperator=":"\u0414\u043e\u0440\u0456\u0432\u043d\u044e\u0454","headerFilterOperator!=":"\u041d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","headerFilterOperator>":"\u0411\u0456\u043b\u044c\u0448\u0435 \u043d\u0456\u0436","headerFilterOperator>=":"\u0411\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","headerFilterOperator<":"\u041c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436","headerFilterOperator<=":"\u041c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterValueAny:"\u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439",filterValueTrue:"\u0442\u0430\u043a",filterValueFalse:"\u043d\u0456",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0446\u0456",columnMenuManageColumns:"\u041a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0442\u043e\u0432\u043f\u0446\u044f\u043c\u0438",columnMenuFilter:"\u0424\u0456\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438",columnMenuUnsort:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0441\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f\u043c",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0441\u043f\u0430\u0434\u0430\u043d\u043d\u044f\u043c",columnHeaderFiltersTooltipActive:e=>$j(e,{one:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440",few:"\u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",many:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0456\u0432"}),columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438",footerRowSelected:e=>$j(e,{one:"\u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a",few:"\u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0440\u044f\u0434\u043a\u0438",many:"\u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0445 \u0440\u044f\u0434\u043a\u0456\u0432"}),footerTotalRows:"\u0423\u0441\u044c\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0456\u0432:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} \u0437 ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u0412\u0438\u0431\u0456\u0440 \u043f\u0440\u0430\u043f\u043e\u0440\u0446\u044f",checkboxSelectionSelectAllRows:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0456 \u0440\u044f\u0434\u043a\u0438",checkboxSelectionUnselectAllRows:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0432\u0441\u0456\u0445 \u0440\u044f\u0434\u043a\u0456\u0432",checkboxSelectionSelectRow:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0440\u044f\u0434\u043e\u043a",checkboxSelectionUnselectRow:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0440\u044f\u0434\u043a\u0430",booleanCellTrueLabel:"\u0442\u0430\u043a",booleanCellFalseLabel:"\u043d\u0456",actionsCellMore:"\u0431\u0456\u043b\u044c\u0448\u0435",pinToLeft:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u043b\u0456\u0432\u043e\u0440\u0443\u0447",pinToRight:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u043f\u0440\u0430\u0432\u043e\u0440\u0443\u0447",unpin:"\u0412\u0456\u0434\u043a\u0440\u0456\u043f\u0438\u0442\u0438",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u0430",treeDataExpand:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0434\u043e\u0447\u0456\u0440\u043d\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438",treeDataCollapse:"\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0434\u043e\u0447\u0456\u0440\u043d\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438",groupingColumnHeaderName:"\u0413\u0440\u0443\u043f\u0430",groupColumn:e=>`\u0413\u0440\u0443\u043f\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 ${e}`,unGroupColumn:e=>`\u0412\u0456\u0434\u043c\u0456\u043d\u0438\u0442\u0438 \u0433\u0440\u0443\u043f\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u0430 ${e}`,detailPanelToggle:"\u041f\u0435\u0440\u0435\u043c\u0438\u043a\u0430\u0447 \u043f\u0430\u043d\u0435\u043b\u0456 \u0434\u0435\u0442\u0430\u043b\u0435\u0439",expandDetailPanel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438",collapseDetailPanel:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438",rowReorderingHeaderName:"\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u044f\u0434\u043a\u0456\u0432",aggregationMenuItemHeader:"\u0410\u0433\u0440\u0435\u0433\u0430\u0446\u0456\u044f",aggregationFunctionLabelSum:"\u0441\u0443\u043c\u0430",aggregationFunctionLabelAvg:"\u0441\u0435\u0440",aggregationFunctionLabelMin:"\u043c\u0456\u043d",aggregationFunctionLabelMax:"\u043c\u0430\u043a\u0441",aggregationFunctionLabelSize:"\u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0448\u043b\u044f\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443",labelRowsPerPage:"\u0420\u044f\u0434\u043a\u0456\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} \u0437 ${-1!==r?r:`\u043f\u043e\u043d\u0430\u0434 ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>{let t="\u0417\u0456\u0440\u043e\u043a";const n=e%10;return n>1&&n<5?t="\u0417\u0456\u0440\u043a\u0438":1===n&&(t="\u0417\u0456\u0440\u043a\u0430"),`${e} ${t}`},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u0432\u0456\u0434\u0441\u0443\u0442\u043d\u0456\u0439"}},MuiAutocomplete:{defaultProps:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",loadingText:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f\u2026",noOptionsText:"\u041d\u0435\u043c\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432",openText:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438"}},MuiPagination:{defaultProps:{"aria-label":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430\u043c\u0438",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 "}\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 ${t}`:"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443"}}}}),qj=fj({noRowsLabel:"\u06a9\u0648\u0626\u06cc \u0642\u0637\u0627\u0631\u06cc\u06ba \u0646\u06c1\u06cc\u06ba",noResultsOverlayLabel:"\u06a9\u0648\u0626\u06cc \u0646\u062a\u0627\u0626\u062c \u0646\u06c1\u06cc\u06ba",toolbarDensity:"\u06a9\u062b\u0627\u0641\u062a",toolbarDensityLabel:"\u06a9\u062b\u0627\u0641\u062a",toolbarDensityCompact:"\u062a\u0646\u06af",toolbarDensityStandard:"\u062f\u0631\u0645\u06cc\u0627\u0646\u06c1",toolbarDensityComfortable:"\u0645\u0646\u0627\u0633\u0628",toolbarColumns:"\u06a9\u0627\u0644\u0645\u0632",toolbarColumnsLabel:"\u06a9\u0627\u0644\u0645\u0632 \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",toolbarFilters:"\u0641\u0644\u0679\u0631\u0632",toolbarFiltersLabel:"\u0641\u0644\u0679\u0631\u0632 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",toolbarFiltersTooltipHide:"\u0641\u0644\u0679\u0631\u0632 \u0686\u06be\u067e\u0627\u0626\u06cc\u06ba",toolbarFiltersTooltipShow:"\u0641\u0644\u0679\u0631\u0632 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",toolbarFiltersTooltipActive:e=>1!==e?`${e} \u0641\u0639\u0627\u0644 \u0641\u0644\u0679\u0631\u0632`:`${e} \u0641\u0644\u0679\u0631\u0632 \u0641\u0639\u0627\u0644`,toolbarQuickFilterPlaceholder:"\u062a\u0644\u0627\u0634 \u06a9\u0631\u06cc\u06ba\u06d4\u06d4\u06d4",toolbarQuickFilterLabel:"\u062a\u0644\u0627\u0634 \u06a9\u0631\u06cc\u06ba",toolbarQuickFilterDeleteIconLabel:"\u06a9\u0644\u0626\u06cc\u0631 \u06a9\u0631\u06cc\u06ba",toolbarExport:"\u0627\u06cc\u06a9\u0633\u067e\u0648\u0631\u0679",toolbarExportLabel:"\u0627\u06cc\u06a9\u0633\u067e\u0648\u0631\u0679",toolbarExportCSV:"CSV \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0688\u0627\u0648\u0674\u0646\u0644\u0648\u0688 \u06a9\u0631\u06cc\u06ba",toolbarExportPrint:"\u067e\u0631\u0646\u0679 \u06a9\u0631\u06cc\u06ba",toolbarExportExcel:"\u0627\u06cc\u06a9\u0633\u0644 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0688\u0627\u0648\u0674\u0646\u0644\u0648\u0688 \u06a9\u0631\u06cc\u06ba",columnsPanelTextFieldLabel:"\u06a9\u0627\u0644\u0645 \u06a9\u0648 \u062a\u0644\u0627\u0634 \u06a9\u0631\u06cc\u06ba",columnsPanelTextFieldPlaceholder:"\u06a9\u0627\u0644\u0645 \u06a9\u0627 \u0639\u0646\u0648\u0627\u0646",columnsPanelDragIconLabel:"\u06a9\u0627\u0644\u0645 \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",columnsPanelShowAllButton:"\u0633\u0627\u0631\u06d2 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",columnsPanelHideAllButton:"\u0633\u0627\u0631\u06d2 \u0686\u06be\u067e\u0627\u0626\u06cc\u06ba",filterPanelAddFilter:"\u0646\u06cc\u0627 \u0641\u0644\u0679\u0631",filterPanelDeleteIconLabel:"\u062e\u062a\u0645 \u06a9\u0631\u06cc\u06ba",filterPanelLogicOperator:"\u0644\u0627\u062c\u06a9 \u0627\u0653\u067e\u0631\u06cc\u0679\u0631",filterPanelOperator:"\u0627\u0653\u067e\u0631\u06cc\u0679\u0631",filterPanelOperatorAnd:"\u0627\u0648\u0631",filterPanelOperatorOr:"\u06cc\u0627",filterPanelColumns:"\u06a9\u0627\u0644\u0645\u0632",filterPanelInputLabel:"\u0648\u06cc\u0644\u06cc\u0648",filterPanelInputPlaceholder:"\u0648\u06cc\u0644\u06cc\u0648 \u06a9\u0648 \u0641\u0644\u0679\u0631 \u06a9\u0631\u06cc\u06ba",filterOperatorContains:"\u0634\u0627\u0645\u0644 \u06c1\u06d2",filterOperatorEquals:"\u0628\u0631\u0627\u0628\u0631 \u06c1\u06d2",filterOperatorStartsWith:"\u0634\u0631\u0648\u0639 \u06c1\u0648\u062a\u0627 \u06c1\u06d2",filterOperatorEndsWith:"\u062e\u062a\u0645 \u06c1\u0648\u062a\u0627 \u06c1\u06d2",filterOperatorIs:"\u06c1\u06d2",filterOperatorNot:"\u0646\u06c1\u06cc\u06ba",filterOperatorAfter:"\u0628\u0639\u062f \u0645\u06cc\u06ba \u06c1\u06d2",filterOperatorOnOrAfter:"\u067e\u0631 \u06cc\u0627 \u0628\u0639\u062f \u0645\u06cc\u06ba \u06c1\u06d2",filterOperatorBefore:"\u067e\u06c1\u0644\u06d2 \u06c1\u06d2",filterOperatorOnOrBefore:"\u067e\u0631 \u06cc\u0627 \u067e\u06c1\u0644\u06d2 \u06c1\u06d2",filterOperatorIsEmpty:"\u062e\u0627\u0644\u06cc \u06c1\u06d2",filterOperatorIsNotEmpty:"\u062e\u0627\u0644\u06cc \u0646\u06c1\u06cc\u06ba \u06c1\u06d2",filterOperatorIsAnyOf:"\u0627\u0646 \u0645\u06cc\u06ba \u0633\u06d2 \u06a9\u0648\u0626\u06cc \u06c1\u06d2",filterValueAny:"\u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc",filterValueTrue:"\u0635\u062d\u06cc\u062d",filterValueFalse:"\u063a\u0644\u0637",columnMenuLabel:"\u0645\u06cc\u0646\u06cc\u0648",columnMenuShowColumns:"\u06a9\u0627\u0644\u0645 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",columnMenuManageColumns:"\u06a9\u0627\u0644\u0645 \u0645\u06cc\u0646\u062c \u06a9\u0631\u06cc\u06ba",columnMenuFilter:"\u0641\u0644\u0679\u0631",columnMenuHideColumn:"\u0686\u06be\u067e\u0627\u0626\u06cc\u06ba",columnMenuUnsort:"sort \u062e\u062a\u0645 \u06a9\u0631\u06cc\u06ba",columnMenuSortAsc:"\u062a\u0631\u062a\u06cc\u0628 \u0635\u0639\u0648\u062f\u06cc",columnMenuSortDesc:"\u062a\u0631\u062a\u06cc\u0628 \u0646\u0632\u0648\u0644\u06cc",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} \u0641\u0639\u0627\u0644 \u0641\u0644\u0679\u0631\u0632`:`${e} \u0641\u0644\u0679\u0631\u0632 \u0641\u0639\u0627\u0644`,columnHeaderFiltersLabel:"\u0641\u0644\u0679\u0631\u0632 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} \u0645\u0646\u062a\u062e\u0628 \u0642\u0637\u0627\u0631\u06cc\u06ba`:`${e.toLocaleString()} \u0645\u0646\u062a\u062e\u0628 \u0642\u0637\u0627\u0631`,footerTotalRows:"\u06a9\u0644 \u0642\u0637\u0627\u0631\u06cc\u06ba:",footerTotalVisibleRows:(e,t)=>`${t.toLocaleString()} \u0645\u06cc\u06ba \u0633\u06d2 ${e.toLocaleString()}`,checkboxSelectionHeaderName:"\u0686\u06cc\u06a9 \u0628\u0627\u06a9\u0633 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",checkboxSelectionSelectAllRows:"\u062a\u0645\u0627\u0645 \u0642\u0637\u0627\u0631\u06cc\u06ba \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",checkboxSelectionUnselectAllRows:"\u062a\u0645\u0627\u0645 \u0642\u0637\u0627\u0631\u06cc\u06ba \u0646\u0627\u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba ",checkboxSelectionSelectRow:"\u0642\u0637\u0627\u0631 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",checkboxSelectionUnselectRow:"\u0642\u0637\u0627\u0631 \u0646\u0627\u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",booleanCellTrueLabel:"\u06c1\u0627\u06ba",booleanCellFalseLabel:"\u0646\u06c1\u06cc\u06ba",actionsCellMore:"\u0630\u06cc\u0627\u062f\u06c1",pinToLeft:"\u0628\u0627\u0626\u06cc\u06ba \u062c\u0627\u0646\u0628 pin \u06a9\u0631\u06cc\u06ba",pinToRight:"\u062f\u0627\u0626\u06cc\u06ba \u062c\u0627\u0646\u0628 pin \u06a9\u0631\u06cc\u06ba",unpin:"pin \u062e\u062a\u0645 \u06a9\u0631\u06cc\u06ba",treeDataGroupingHeaderName:"\u06af\u0631\u0648\u067e",treeDataExpand:"\u0634\u0627\u062e\u06cc\u06ba \u062f\u06cc\u06a9\u06be\u06cc\u06ba",treeDataCollapse:"\u0634\u0627\u062e\u06cc\u06ba \u0686\u06be\u067e\u0627\u0626\u06cc\u06ba",groupingColumnHeaderName:"\u06af\u0631\u0648\u067e",groupColumn:e=>`${e} \u0633\u06d2 \u06af\u0631\u0648\u067e \u06a9\u0631\u06cc\u06ba`,unGroupColumn:e=>`${e} \u0633\u06d2 \u06af\u0631\u0648\u067e \u062e\u062a\u0645 \u06a9\u0631\u06cc\u06ba`,detailPanelToggle:"\u0688\u06cc\u0679\u06cc\u0644 \u067e\u06cc\u0646\u0644 \u06a9\u06be\u0648\u0644\u06cc\u06ba / \u0628\u0646\u062f \u06a9\u0631\u06cc\u06ba",expandDetailPanel:"\u067e\u06be\u06cc\u0644\u0627\u0626\u06cc\u06ba",collapseDetailPanel:"\u062a\u0646\u06af \u06a9\u0631\u06cc\u06ba",rowReorderingHeaderName:"\u0642\u0637\u0627\u0631\u0648\u06ba \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",aggregationMenuItemHeader:"\u0627\u06cc\u06af\u0631\u06cc\u06af\u06cc\u0634\u0646",aggregationFunctionLabelSum:"\u06a9\u0644",aggregationFunctionLabelAvg:"\u0627\u0648\u0633\u0637",aggregationFunctionLabelMin:"\u06a9\u0645 \u0627\u0632 \u06a9\u0645",aggregationFunctionLabelMax:"\u0632\u06cc\u0627\u062f\u06c1 \u0633\u06d2 \u0632\u06cc\u0627\u062f\u06c1",aggregationFunctionLabelSize:"\u0633\u0627\u0626\u0632"},{components:{MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u067e\u06c1\u0644\u06d2 \u0635\u0641\u062d\u06d2 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba":"last"===e?"\u0627\u0653\u062e\u0631\u06cc \u0635\u0641\u062d\u06d2 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba":"next"===e?"\u0627\u06af\u0644\u06d2 \u0635\u0641\u062d\u06d2 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba":"\u067e\u0686\u06be\u0644\u06d2 \u0635\u0641\u062d\u06d2 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba",labelRowsPerPage:"\u0627\u06cc\u06a9 \u0635\u0641\u062d\u06d2 \u067e\u0631 \u0642\u0637\u0627\u0631\u06cc\u06ba:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${-1!==r?`${r} \u0645\u06cc\u06ba \u0633\u06d2`:`${n} \u0633\u06d2 \u0630\u06cc\u0627\u062f\u06c1 \u0645\u06cc\u06ba \u0633\u06d2`} ${t} \u0633\u06d2 ${n} \u0642\u0637\u0627\u0631\u06cc\u06ba`}}}}}),Zj=fj({noRowsLabel:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",noResultsOverlayLabel:"Kh\xf4ng t\xecm th\u1ea5y k\u1ebft qu\u1ea3.",toolbarDensity:"\u0110\u1ed9 gi\xe3n",toolbarDensityLabel:"\u0110\u1ed9 gi\xe3n",toolbarDensityCompact:"Trung b\xecnh",toolbarDensityStandard:"Ti\xeau chu\u1ea9n",toolbarDensityComfortable:"R\u1ed9ng",toolbarColumns:"C\u1ed9t",toolbarColumnsLabel:"Ch\u1ecdn c\u1ed9t",toolbarFilters:"B\u1ed9 l\u1ecdc",toolbarFiltersLabel:"Hi\u1ec3n th\u1ecb b\u1ed9 l\u1ecdc",toolbarFiltersTooltipHide:"\u1ea8n",toolbarFiltersTooltipShow:"Hi\u1ec7n",toolbarFiltersTooltipActive:e=>`${e} b\u1ed9 l\u1ecdc ho\u1ea1t \u0111\u1ed9ng`,toolbarQuickFilterPlaceholder:"T\xecm ki\u1ebfm\u2026",toolbarQuickFilterLabel:"T\xecm ki\u1ebfm",toolbarQuickFilterDeleteIconLabel:"X\xf3a t\xecm ki\u1ebfm",toolbarExport:"Xu\u1ea5t",toolbarExportLabel:"Xu\u1ea5t",toolbarExportCSV:"Xu\u1ea5t CSV",toolbarExportPrint:"In",toolbarExportExcel:"Xu\u1ea5t Excel",columnsPanelTextFieldLabel:"T\xecm ki\u1ebfm",columnsPanelTextFieldPlaceholder:"Ti\xeau \u0111\u1ec1 c\u1ed9t",columnsPanelDragIconLabel:"S\u1eafp x\u1ebfp",columnsPanelShowAllButton:"Hi\u1ec7n t\u1ea5t c\u1ea3",columnsPanelHideAllButton:"\u1ea8n t\u1ea5t c\u1ea3",filterPanelAddFilter:"Th\xeam b\u1ed9 l\u1ecdc",filterPanelRemoveAll:"X\xf3a t\u1ea5t c\u1ea3",filterPanelDeleteIconLabel:"X\xf3a",filterPanelLogicOperator:"To\xe1n t\u1eed logic",filterPanelOperator:"To\xe1n t\u1eed",filterPanelOperatorAnd:"V\xe0",filterPanelOperatorOr:"Ho\u1eb7c",filterPanelColumns:"C\u1ed9t",filterPanelInputLabel:"Gi\xe1 tr\u1ecb",filterPanelInputPlaceholder:"L\u1ecdc gi\xe1 tr\u1ecb",filterOperatorContains:"Ch\u1ee9a",filterOperatorEquals:"B\u1eb1ng",filterOperatorStartsWith:"B\u1eaft \u0111\u1ea7u b\u1eb1ng",filterOperatorEndsWith:"K\u1ebft th\xfac b\u1eb1ng",filterOperatorIs:"L\xe0",filterOperatorNot:"Kh\xf4ng l\xe0",filterOperatorAfter:"Tr\u01b0\u1edbc",filterOperatorOnOrAfter:"b\u1eb1ng ho\u1eb7c sau",filterOperatorBefore:"Sau",filterOperatorOnOrBefore:"b\u1eb1ng ho\u1eb7c tr\u01b0\u1edbc",filterOperatorIsEmpty:"R\u1ed7ng",filterOperatorIsNotEmpty:"Kh\xe1c r\u1ed7ng",filterOperatorIsAnyOf:"B\u1ea5t k\u1ef3","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Ch\u1ee9a",headerFilterOperatorEquals:"B\u1eb1ng",headerFilterOperatorStartsWith:"B\u1eaft \u0111\u1ea7u v\u1edbi",headerFilterOperatorEndsWith:"K\u1ebft th\xfac v\u1edbi",headerFilterOperatorIs:"l\xe0",headerFilterOperatorNot:"Kh\xf4ng l\xe0",headerFilterOperatorAfter:"Sau",headerFilterOperatorOnOrAfter:"\u0110ang ho\u1eb7c sau",headerFilterOperatorBefore:"Tr\u01b0\u1edbc",headerFilterOperatorOnOrBefore:"\u0110ang ho\u1eb7c tr\u01b0\u1edbc",headerFilterOperatorIsEmpty:"R\u1ed7ng",headerFilterOperatorIsNotEmpty:"Kh\xe1c r\u1ed7ng",headerFilterOperatorIsAnyOf:"B\u1ea5t k\u1ef3","headerFilterOperator=":"B\u1eb1ng","headerFilterOperator!=":"Kh\xe1c","headerFilterOperator>":"L\u1edbn h\u01a1n","headerFilterOperator>=":"L\u1edbn h\u01a1n ho\u1eb7c b\u1eb1ng","headerFilterOperator<":"Nh\u1ecf h\u01a1n","headerFilterOperator<=":"Nh\u1ecf h\u01a1n ho\u1eb7c b\u1eb1ng",filterValueAny:"b\u1ea5t k\u1ef3 gi\xe1 tr\u1ecb n\xe0o",filterValueTrue:"C\xf3",filterValueFalse:"Kh\xf4ng",columnMenuLabel:"Danh m\u1ee5c",columnMenuShowColumns:"Danh s\xe1ch c\u1ed9t",columnMenuManageColumns:"Qu\u1ea3n l\xfd c\u1ed9t",columnMenuFilter:"B\u1ed9 l\u1ecdc",columnMenuHideColumn:"\u1ea8n c\u1ed9t",columnMenuUnsort:"B\u1ecf s\u1eafp x\u1ebfp",columnMenuSortAsc:"S\u1eafp x\u1ebfp t\u0103ng d\u1ea7n",columnMenuSortDesc:"S\u1eafp x\u1ebfp gi\u1ea3m d\u1ea7n",columnHeaderFiltersTooltipActive:e=>`${e} b\u1ed9 l\u1ecdc ho\u1ea1t \u0111\u1ed9ng`,columnHeaderFiltersLabel:"B\u1ed9 l\u1ecdc",columnHeaderSortIconLabel:"S\u1eafp x\u1ebfp",footerRowSelected:e=>`${e.toLocaleString()} h\xe0ng \u0111\xe3 ch\u1ecdn`,footerTotalRows:"T\u1ed5ng:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"T\xedch v\xe0o \xf4 tr\u1ed1ng",checkboxSelectionSelectAllRows:"Ch\u1ecdn t\u1ea5t c\u1ea3 h\xe0ng",checkboxSelectionUnselectAllRows:"B\u1ecf ch\u1ecdn t\u1ea5t c\u1ea3 h\xe0ng",checkboxSelectionSelectRow:"Ch\u1ecdn h\xe0ng",checkboxSelectionUnselectRow:"B\u1ecf ch\u1ecdn h\xe0ng",booleanCellTrueLabel:"C\xf3",booleanCellFalseLabel:"Kh\xf4ng",actionsCellMore:"Th\xeam",pinToLeft:"Ghim c\u1ed9t b\xean tr\xe1i",pinToRight:"Ghim c\u1ed9t b\xean ph\u1ea3i",unpin:"B\u1ecf ghim",treeDataGroupingHeaderName:"Nh\xf3m",treeDataExpand:"m\u1edf r\u1ed9ng",treeDataCollapse:"\u1ea9n \u0111i",groupingColumnHeaderName:"Nh\xf3m",groupColumn:e=>`Nh\xf3m theo ${e}`,unGroupColumn:e=>`H\u1ee7y nh\xf3m theo ${e}`,detailPanelToggle:"\u1ea8n/hi\u1ec7n chi ti\u1ebft",expandDetailPanel:"M\u1edf r\u1ed9ng",collapseDetailPanel:"Thu nh\u1ecf",rowReorderingHeaderName:"S\u1eafp x\u1ebfp h\xe0ng",aggregationMenuItemHeader:"T\u1ed5ng h\u1ee3p",aggregationFunctionLabelSum:"T\u1ed5ng",aggregationFunctionLabelAvg:"Trung b\xecnh",aggregationFunctionLabelMin:"T\u1ed1i thi\u1ec3u",aggregationFunctionLabelMax:"T\u1ed1i \u0111a",aggregationFunctionLabelSize:"K\xedch c\u1ee1"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"M\u1edf ra"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3",labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}\u2013${n} trong ${-1!==r?r:`nhi\u1ec1u h\u01a1n ${n}`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"}},MuiAutocomplete:{defaultProps:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn n\xe0o",openText:"M\u1edf"}},MuiAlert:{defaultProps:{closeText:"\u0110\xf3ng"}},MuiPagination:{defaultProps:{"aria-label":"Thanh \u0111i\u1ec1u khi\u1ec3n trang",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"T\u1edbi "}trang ${t}`:"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3"}}}}),Hj=fj({noRowsLabel:"\u6ca1\u6709\u6570\u636e\u3002",noResultsOverlayLabel:"\u672a\u627e\u5230\u6570\u636e\u3002",toolbarDensity:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityLabel:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityCompact:"\u7d27\u5bc6",toolbarDensityStandard:"\u6807\u51c6",toolbarDensityComfortable:"\u7a00\u758f",toolbarColumns:"\u5217",toolbarColumnsLabel:"\u9009\u62e9\u5217",toolbarFilters:"\u7b5b\u9009\u5668",toolbarFiltersLabel:"\u663e\u793a\u7b5b\u9009\u5668",toolbarFiltersTooltipHide:"\u9690\u85cf\u7b5b\u9009\u5668",toolbarFiltersTooltipShow:"\u663e\u793a\u7b5b\u9009\u5668",toolbarFiltersTooltipActive:e=>`${e} \u4e2a\u7b5b\u9009\u5668`,toolbarQuickFilterPlaceholder:"\u641c\u7d22\u2026",toolbarQuickFilterLabel:"\u641c\u7d22",toolbarQuickFilterDeleteIconLabel:"\u6e05\u9664",toolbarExport:"\u5bfc\u51fa",toolbarExportLabel:"\u5bfc\u51fa",toolbarExportCSV:"\u5bfc\u51fa\u81f3CSV",toolbarExportPrint:"\u6253\u5370",toolbarExportExcel:"\u5bfc\u51fa\u81f3Excel",columnsPanelTextFieldLabel:"\u641c\u7d22\u5217",columnsPanelTextFieldPlaceholder:"\u5217\u540d",columnsPanelDragIconLabel:"\u91cd\u6392\u5e8f\u5217",columnsPanelShowAllButton:"\u663e\u793a\u6240\u6709",columnsPanelHideAllButton:"\u9690\u85cf\u6240\u6709",filterPanelAddFilter:"\u6dfb\u52a0\u7b5b\u9009\u5668",filterPanelRemoveAll:"\u6e05\u9664\u5168\u90e8",filterPanelDeleteIconLabel:"\u5220\u9664",filterPanelLogicOperator:"\u903b\u8f91\u64cd\u4f5c\u5668",filterPanelOperator:"\u64cd\u4f5c\u5668",filterPanelOperatorAnd:"\u4e0e",filterPanelOperatorOr:"\u6216",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u503c",filterPanelInputPlaceholder:"\u7b5b\u9009\u503c",filterOperatorContains:"\u5305\u542b",filterOperatorEquals:"\u7b49\u4e8e",filterOperatorStartsWith:"\u5f00\u59cb\u4e8e",filterOperatorEndsWith:"\u7ed3\u675f\u4e8e",filterOperatorIs:"\u662f",filterOperatorNot:"\u4e0d\u662f",filterOperatorAfter:"\u5728\u540e\u9762",filterOperatorOnOrAfter:"\u6b63\u5728\u540e\u9762",filterOperatorBefore:"\u5728\u524d\u9762",filterOperatorOnOrBefore:"\u6b63\u5728\u524d\u9762",filterOperatorIsEmpty:"\u4e3a\u7a7a",filterOperatorIsNotEmpty:"\u4e0d\u4e3a\u7a7a",filterOperatorIsAnyOf:"\u5c5e\u4e8e","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u5305\u542b",headerFilterOperatorEquals:"\u7b49\u4e8e",headerFilterOperatorStartsWith:"\u5f00\u59cb\u4e8e",headerFilterOperatorEndsWith:"\u7ed3\u675f\u4e8e",headerFilterOperatorIs:"\u662f",headerFilterOperatorNot:"\u4e0d\u662f",headerFilterOperatorAfter:"\u5728\u540e\u9762",headerFilterOperatorOnOrAfter:"\u5728\u5f53\u524d\u6216\u540e\u9762",headerFilterOperatorBefore:"\u5728\u524d\u9762",headerFilterOperatorOnOrBefore:"\u5728\u5f53\u524d\u6216\u524d\u9762",headerFilterOperatorIsEmpty:"\u4e3a\u7a7a",headerFilterOperatorIsNotEmpty:"\u4e0d\u4e3a\u7a7a",headerFilterOperatorIsAnyOf:"\u5c5e\u4e8e","headerFilterOperator=":"\u7b49\u4e8e","headerFilterOperator!=":"\u4e0d\u7b49\u4e8e","headerFilterOperator>":"\u5927\u4e8e","headerFilterOperator>=":"\u5927\u4e8e\u6216\u7b49\u4e8e","headerFilterOperator<":"\u5c0f\u96e8","headerFilterOperator<=":"\u5c0f\u4e8e\u6216\u7b49\u4e8e",filterValueAny:"\u4efb\u4f55",filterValueTrue:"\u771f",filterValueFalse:"\u5047",columnMenuLabel:"\u83dc\u5355",columnMenuShowColumns:"\u663e\u793a",columnMenuManageColumns:"\u7ba1\u7406\u5217",columnMenuFilter:"\u7b5b\u9009\u5668",columnMenuHideColumn:"\u9690\u85cf",columnMenuUnsort:"\u6062\u590d\u9ed8\u8ba4",columnMenuSortAsc:"\u5347\u5e8f",columnMenuSortDesc:"\u964d\u5e8f",columnHeaderFiltersTooltipActive:e=>`${e} \u4e2a\u7b5b\u9009\u5668`,columnHeaderFiltersLabel:"\u663e\u793a\u7b5b\u9009\u5668",columnHeaderSortIconLabel:"\u6392\u5e8f",footerRowSelected:e=>`\u5171\u9009\u4e2d\u4e86${e.toLocaleString()}\u884c`,footerTotalRows:"\u6240\u6709\u884c:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u591a\u9009\u6846",checkboxSelectionSelectAllRows:"\u5168\u9009\u884c",checkboxSelectionUnselectAllRows:"\u53cd\u9009\u6240\u6709\u884c",checkboxSelectionSelectRow:"\u9009\u62e9\u884c",checkboxSelectionUnselectRow:"\u53cd\u9009\u884c",booleanCellTrueLabel:"\u771f",booleanCellFalseLabel:"\u5047",actionsCellMore:"\u66f4\u591a",pinToLeft:"\u56fa\u5b9a\u5230\u5de6\u4fa7",pinToRight:"\u56fa\u5b9a\u5230\u53f3\u4fa7",unpin:"\u53d6\u6d88\u56fa\u5b9a",treeDataGroupingHeaderName:"\u7ec4",treeDataExpand:"\u67e5\u770b\u5b50\u9879\u76ee",treeDataCollapse:"\u9690\u85cf\u5b50\u9879\u76ee",groupingColumnHeaderName:"\u7ec4",groupColumn:e=>`\u7528${e}\u5206\u7ec4`,unGroupColumn:e=>`\u4e0d\u518d\u7528${e}\u5206\u7ec4`,detailPanelToggle:"\u8be6\u7ec6\u4fe1\u606f",expandDetailPanel:"\u663e\u793a",collapseDetailPanel:"\u6298\u53e0",rowReorderingHeaderName:"\u91cd\u65b0\u6392\u5217\u884c",aggregationMenuItemHeader:"\u96c6\u5408",aggregationFunctionLabelSum:"\u603b\u6570",aggregationFunctionLabelAvg:"\u5e73\u5747",aggregationFunctionLabelMin:"\u6700\u5c0f",aggregationFunctionLabelMax:"\u6700\u5927",aggregationFunctionLabelSize:"\u5927\u5c0f"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u5c55\u5f00"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u7b2c\u4e00\u9875":"last"===e?"\u6700\u540e\u4e00\u9875":"next"===e?"\u4e0b\u4e00\u9875":"\u4e0a\u4e00\u9875",labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`\u7b2c ${t} \u6761\u5230\u7b2c ${n} \u6761\uff0c${-1!==r?`\u5171 ${r} \u6761`:`\u81f3\u5c11 ${n} \u6761`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u9897\u661f`,emptyLabelText:"\u65e0\u6807\u7b7e"}},MuiAutocomplete:{defaultProps:{clearText:"\u6e05\u7a7a",closeText:"\u5173\u95ed",loadingText:"\u52a0\u8f7d\u4e2d\u2026\u2026",noOptionsText:"\u6ca1\u6709\u53ef\u7528\u9009\u9879",openText:"\u6253\u5f00"}},MuiAlert:{defaultProps:{closeText:"\u5173\u95ed"}}}}),Gj=fj({noRowsLabel:"\u6c92\u6709\u8cc7\u6599",noResultsOverlayLabel:"\u6c92\u6709\u7d50\u679c",toolbarDensity:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityLabel:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityCompact:"\u7dca\u6e4a",toolbarDensityStandard:"\u6a19\u6e96",toolbarDensityComfortable:"\u8212\u9069",toolbarColumns:"\u6b04\u4f4d",toolbarColumnsLabel:"\u9078\u64c7\u6b04\u4f4d",toolbarFilters:"\u7be9\u9078\u5668",toolbarFiltersLabel:"\u986f\u793a\u7be9\u9078\u5668",toolbarFiltersTooltipHide:"\u96b1\u85cf\u7be9\u9078\u5668",toolbarFiltersTooltipShow:"\u986f\u793a\u7be9\u9078\u5668",toolbarFiltersTooltipActive:e=>`${e} \u500b\u7be9\u9078\u5668`,toolbarQuickFilterPlaceholder:"\u641c\u5c0b\u2026",toolbarQuickFilterLabel:"\u641c\u5c0b",toolbarQuickFilterDeleteIconLabel:"\u6e05\u9664",toolbarExport:"\u532f\u51fa",toolbarExportLabel:"\u532f\u51fa",toolbarExportCSV:"\u532f\u51fa CSV",toolbarExportPrint:"\u5217\u5370",toolbarExportExcel:"\u532f\u51fa Excel",columnsPanelTextFieldLabel:"\u6b04\u4f4d\u641c\u5c0b",columnsPanelTextFieldPlaceholder:"\u6b04\u4f4d\u540d\u7a31",columnsPanelDragIconLabel:"\u6392\u5e8f\u6b04\u4f4d",columnsPanelShowAllButton:"\u986f\u793a\u6240\u6709",columnsPanelHideAllButton:"\u96b1\u85cf\u6240\u6709",filterPanelAddFilter:"\u589e\u52a0\u7be9\u9078\u5668",filterPanelRemoveAll:"\u6e05\u9664\u6240\u6709",filterPanelDeleteIconLabel:"\u522a\u9664",filterPanelLogicOperator:"\u908f\u8f2f\u904b\u7b97\u5b50",filterPanelOperator:"\u904b\u7b97\u5b50",filterPanelOperatorAnd:"\u4e14",filterPanelOperatorOr:"\u6216",filterPanelColumns:"\u6b04\u4f4d",filterPanelInputLabel:"\u503c",filterPanelInputPlaceholder:"\u7be9\u9078\u503c",filterOperatorContains:"\u5305\u542b",filterOperatorEquals:"\u7b49\u65bc",filterOperatorStartsWith:"\u4ee5...\u958b\u982d",filterOperatorEndsWith:"\u4ee5...\u7d50\u675f",filterOperatorIs:"\u70ba",filterOperatorNot:"\u4e0d\u70ba",filterOperatorAfter:"...\u4e4b\u5f8c",filterOperatorOnOrAfter:"...(\u542b)\u4e4b\u5f8c",filterOperatorBefore:"...\u4e4b\u524d",filterOperatorOnOrBefore:"...(\u542b)\u4e4b\u524d",filterOperatorIsEmpty:"\u70ba\u7a7a",filterOperatorIsNotEmpty:"\u4e0d\u70ba\u7a7a",filterOperatorIsAnyOf:"\u662f\u5176\u4e2d\u4e4b\u4e00","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"\u5305\u542b",headerFilterOperatorEquals:"\u7b49\u65bc",headerFilterOperatorStartsWith:"\u4ee5...\u958b\u982d",headerFilterOperatorEndsWith:"\u4ee5...\u7d50\u675f",headerFilterOperatorIs:"\u70ba",headerFilterOperatorNot:"\u4e0d\u70ba",headerFilterOperatorAfter:"...\u4e4b\u5f8c",headerFilterOperatorOnOrAfter:"...(\u542b)\u4e4b\u5f8c",headerFilterOperatorBefore:"...\u4e4b\u524d",headerFilterOperatorOnOrBefore:"...(\u542b)\u4e4b\u524d",headerFilterOperatorIsEmpty:"\u70ba\u7a7a",headerFilterOperatorIsNotEmpty:"\u4e0d\u70ba\u7a7a",headerFilterOperatorIsAnyOf:"\u662f\u5176\u4e2d\u4e4b\u4e00","headerFilterOperator=":"\u7b49\u65bc","headerFilterOperator!=":"\u4e0d\u7b49\u65bc","headerFilterOperator>":"\u5927\u65bc","headerFilterOperator>=":"\u5927\u65bc\u6216\u7b49\u65bc","headerFilterOperator<":"\u5c0f\u65bc","headerFilterOperator<=":"\u5c0f\u65bc\u6216\u7b49\u65bc",filterValueAny:"\u4efb\u4f55\u503c",filterValueTrue:"\u771f",filterValueFalse:"\u5047",columnMenuLabel:"\u9078\u55ae",columnMenuShowColumns:"\u986f\u793a\u6b04\u4f4d",columnMenuManageColumns:"\u7ba1\u7406\u6b04\u4f4d",columnMenuFilter:"\u7be9\u9078\u5668",columnMenuHideColumn:"\u96b1\u85cf",columnMenuUnsort:"\u9810\u8a2d\u6392\u5e8f",columnMenuSortAsc:"\u5347\u5e8f",columnMenuSortDesc:"\u964d\u5e8f",columnHeaderFiltersTooltipActive:e=>`${e} \u500b\u7be9\u9078\u5668`,columnHeaderFiltersLabel:"\u986f\u793a\u7be9\u9078\u5668",columnHeaderSortIconLabel:"\u6392\u5e8f",footerRowSelected:e=>`\u5df2\u9078\u53d6 ${e.toLocaleString()} \u500b`,footerTotalRows:"\u7e3d\u6578:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`,checkboxSelectionHeaderName:"\u6838\u53d6\u65b9\u584a",checkboxSelectionSelectAllRows:"\u5168\u9078",checkboxSelectionUnselectAllRows:"\u53d6\u6d88\u5168\u9078",checkboxSelectionSelectRow:"\u9078\u53d6",checkboxSelectionUnselectRow:"\u53d6\u6d88\u9078\u53d6",booleanCellTrueLabel:"\u771f",booleanCellFalseLabel:"\u5047",actionsCellMore:"\u67e5\u770b\u66f4\u591a",pinToLeft:"\u91d8\u9078\u5728\u5de6\u5074",pinToRight:"\u91d8\u9078\u5728\u53f3\u5074",unpin:"\u53d6\u6d88\u91d8\u9078",treeDataGroupingHeaderName:"\u7fa4\u7d44",treeDataExpand:"\u67e5\u770b\u5b50\u9805\u76ee",treeDataCollapse:"\u96b1\u85cf\u5b50\u9805\u76ee",groupingColumnHeaderName:"\u7fa4\u7d44",groupColumn:e=>`\u4ee5 ${e} \u5206\u7d44`,unGroupColumn:e=>`\u53d6\u6d88\u4ee5 ${e} \u5206\u7d44`,detailPanelToggle:"\u5207\u63db\u986f\u793a\u8a73\u7d30\u8cc7\u8a0a",expandDetailPanel:"\u5c55\u958b",collapseDetailPanel:"\u647a\u758a",rowReorderingHeaderName:"\u6392\u5e8f",aggregationMenuItemHeader:"\u96c6\u5408",aggregationFunctionLabelSum:"\u7e3d\u6578",aggregationFunctionLabelAvg:"\u5e73\u5747\u6578",aggregationFunctionLabelMin:"\u6700\u5c0f",aggregationFunctionLabelMax:"\u6700\u5927",aggregationFunctionLabelSize:"\u5c3a\u5bf8"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u5c55\u958b"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"\u7b2c\u4e00\u9801":"last"===e?"\u6700\u5f8c\u4e00\u9801":"next"===e?"\u4e0b\u4e00\u9801":"\u4e0a\u4e00\u9801",labelRowsPerPage:"\u6bcf\u9801\u6578\u91cf:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t} ~ ${n} / ${-1!==r?r:`${n} \u4ee5\u4e0a`}`}}},MuiRating:{defaultProps:{getLabelText:e=>`${e} \u9846\u661f`,emptyLabelText:"\u7121\u6a19\u7c64"}},MuiAutocomplete:{defaultProps:{clearText:"\u6e05\u7a7a",closeText:"\u95dc\u9589",loadingText:"\u8f09\u5165\u4e2d\u2026",noOptionsText:"\u6c92\u6709\u53ef\u7528\u9078\u9805",openText:"\u6253\u958b"}},MuiAlert:{defaultProps:{closeText:"\u95dc\u9589"}}}});function Wj(e){let{privateApiRef:t,props:n,children:i}=e;const o=r.useRef(t.current.getPublicApi());return ih(zg.Provider,{value:n,children:ih(Af.Provider,{value:t,children:ih(dv.Provider,{value:o,children:i})})})}const Yj=/(\d+)-(\d+)-(\d+)/,Kj=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Xj(e,t,n,r){if(!e.value)return null;const[i,o,a,s,l]=e.value.match(n?Kj:Yj).slice(1).map(Number),c=new Date(i,o-1,a,s||0,l||0).getTime();return e=>{if(!e)return!1;if(r)return t(e.getTime(),c);const i=new Date(e).setHours(n?e.getHours():0,n?e.getMinutes():0,0,0);return t(i,c)}}const Jj=e=>DR([{value:"is",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e===t),e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e!==t),e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e>t),e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e>=t),e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e<t),e,!e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>Xj(t,((e,t)=>e<=t),e),InputComponent:tP,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1}]);function Qj(e){let{value:t,columnType:n,rowId:r,field:i}=e;if(!(t instanceof Date))throw new Error([`MUI: \`${n}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${r}, field: "${i}".`].join("\n"))}function eD(e){let{value:t,field:n,id:r}=e;return t?(Qj({value:t,columnType:"date",rowId:r,field:n}),t.toLocaleDateString()):""}function tD(e){let{value:t,field:n,id:r}=e;return t?(Qj({value:t,columnType:"dateTime",rowId:r,field:n}),t.toLocaleString()):""}const nD=up({},ej,{type:"date",sortComparator:EM,valueFormatter:eD,filterOperators:Jj(),renderEditCell:Tx,pastedValueParser:e=>new Date(e)}),rD=up({},ej,{type:"dateTime",sortComparator:EM,valueFormatter:tD,filterOperators:Jj(!0),renderEditCell:Tx,pastedValueParser:e=>new Date(e)}),iD=e=>null==e?null:Number(e),oD=LR((e=>null==e||Number.isNaN(e)||""===e?null:t=>iD(t)===iD(e))),aD=()=>DR([{value:"=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>iD(t)===e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>iD(t)!==e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&iD(t)>e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&iD(t)>=e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&iD(t)<e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&iD(t)<=e.value,InputComponent:QE,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:QP,InputComponentProps:{type:"number"}}]),sD=up({},ej,{type:"number",align:"right",headerAlign:"right",sortComparator:TM,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>{let{value:t}=e;return function(e){return"number"==typeof e&&!Number.isNaN(e)}(t)?t.toLocaleString():t||""},filterOperators:aD(),getApplyQuickFilterFn:AR(oD),getApplyQuickFilterFnV7:oD}),lD=e=>null!=e&&WS(e)?e.value:e,cD=()=>DR([{value:"is",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>lD(t)===lD(e.value),InputComponent:oP},{value:"not",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>lD(t)!==lD(e.value),InputComponent:oP},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(lD);return e=>t.includes(lD(e))},InputComponent:nI}]),uD=up({},ej,{type:"singleSelect",getOptionLabel:e=>WS(e)?e.label:String(e),getOptionValue:e=>WS(e)?e.value:e,valueFormatter(e){const{id:t,field:n,value:r,api:i}=e,o=e.api.getColumn(n);if(!Fx(o))return"";let a;if(a="function"==typeof o.valueOptions?o.valueOptions({id:t,row:t?i.getRow(t):null,field:n}):o.valueOptions,null==r)return"";if(!a)return r;if(!(e=>"object"==typeof e[0])(a))return o.getOptionLabel(r);const s=a.find((e=>o.getOptionValue(e)===r));return s?o.getOptionLabel(s):""},renderEditCell:Vx,filterOperators:cD(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,i="function"==typeof r?r({field:n.field}):r||[],o=n.getOptionValue;if(i.find((t=>o(t)===e)))return e}}),dD="__default__",pD=()=>({string:ej,number:sD,date:nD,dateTime:rD,boolean:nj,singleSelect:uD,[oj]:aj,[dD]:ej}),hD=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}()&&null!=window.localStorage.getItem("DEBUG"),fD=()=>{},mD={debug:fD,info:fD,warn:fD,error:fD},gD=["debug","info","warn","error"];function yD(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console;const r=gD.indexOf(t);if(-1===r)throw new Error(`MUI: Log level ${t} not recognized.`);return gD.reduce(((t,i,o)=>(t[i]=o>=r?function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const[a,...s]=r;n[i](`MUI: ${e} - ${a}`,...s)}:fD,t)),{})}class vD{static create(e){return new vD(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}class bD{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e){const t=this.events[e];if(!t)return;const n=Array.from(t.highPriority.keys()),r=Array.from(t.regular.keys());for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let s=n.length-1;s>=0;s-=1){const e=n[s];t.highPriority.has(e)&&e.apply(this,o)}for(let s=0;s<r.length;s+=1){const e=r[s];t.regular.has(e)&&e.apply(this,o)}}once(e,t){const n=this;this.on(e,(function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.removeListener(e,r),t.apply(n,o)}))}}const _D=Symbol("mui.api_private");let wD=0;function xD(e,t){const n=r.useRef(),i=r.useRef();i.current||(i.current=function(e){var t;const n=null==(t=e.current)?void 0:t[_D];if(n)return n;const r={},i={state:r,store:vD.create(r),instanceId:{id:wD}};return wD+=1,i.getPublicApi=()=>e.current,i.register=(t,n)=>{Object.keys(n).forEach((r=>{const o=n[r],a=i[r];if(!0===(null==a?void 0:a.spying)?a.target=o:i[r]=o,"public"===t){const t=e.current,n=t[r];!0===(null==n?void 0:n.spying)?n.target=o:t[r]=o}}))},i.register("private",{caches:{},eventManager:new bD}),i}(n)),n.current||(n.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[_D]:e.current}}(i));const o=r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const[o,a,s={}]=n;if(s.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(s)&&s.isPropagationStopped())return;const l=t.signature===zS.DataGridPro?{api:i.current.getPublicApi()}:{};i.current.eventManager.emit(o,a,s,l)}),[i,t.signature]),a=r.useCallback(((e,t,n)=>{i.current.eventManager.on(e,t,n);const r=i.current;return()=>{r.eventManager.removeListener(e,t)}}),[i]);return Gv(i,{subscribeEvent:a,publishEvent:o},"public"),r.useImperativeHandle(e,(()=>n.current),[n]),r.useEffect((()=>{const e=i.current;return()=>{e.publishEvent("unmount")}}),[i]),i}function kD(e){return(kD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CD(e){var t=function(e,t){if("object"!==kD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kD(t)?t:String(t)}const SD=(e,t,n)=>{const i=r.useRef(),o=r.useRef(`mui-${Math.round(1e9*Math.random())}`),a=r.useCallback((()=>{i.current=e.current.registerPipeProcessor(t,o.current,n)}),[e,n,t]);tM((()=>{a()}));const s=r.useRef(!0);r.useEffect((()=>(s.current?s.current=!1:a(),()=>{i.current&&(i.current(),i.current=null)})),[a])},MD=(e,t,n)=>{const i=r.useRef(),o=r.useRef(`mui-${Math.round(1e9*Math.random())}`),a=r.useCallback((()=>{i.current=e.current.registerPipeApplier(t,o.current,n)}),[e,n,t]);tM((()=>{a()}));const s=r.useRef(!0);r.useEffect((()=>(s.current?s.current=!1:a(),()=>{i.current&&(i.current(),i.current=null)})),[a])},TD=(e,t,n,i)=>{const o=r.useCallback((()=>{e.current.registerStrategyProcessor(t,n,i)}),[e,i,n,t]);tM((()=>{o()}));const a=r.useRef(!0);r.useEffect((()=>{a.current?a.current=!1:o()}),[o])},ED="none",PD={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},ID=(e,t)=>{const n=xD(e,t);return((e,t)=>{Gv(e,{getLogger:r.useCallback((e=>hD?yD(e,"debug",t.logger):t.logLevel?yD(e,t.logLevel.toString(),t.logger):mD),[t.logLevel,t.logger])},"private")})(n,t),((e,t)=>{const n=r.useRef({}),[,i]=r.useState(),o=r.useCallback((e=>{n.current[e.stateId]=e}),[]),a=r.useCallback(((r,i)=>{let o;if(o=GS(r)?r(e.current.state):r,e.current.state===o)return!1;let a=!1;const s=[];if(Object.keys(n.current).forEach((t=>{const r=n.current[t],i=r.stateSelector(e.current.state,e.current.instanceId),l=r.stateSelector(o,e.current.instanceId);l!==i&&(s.push({stateId:r.stateId,hasPropChanged:l!==r.propModel}),void 0!==r.propModel&&l!==r.propModel&&(a=!0))})),s.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${s[0].stateId}, therefore, you're not allowed to update ${s.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(a||(e.current.state=o,e.current.publishEvent&&e.current.publishEvent("stateChange",o),e.current.store.update(o)),1===s.length){const{stateId:r,hasPropChanged:l}=s[0],c=n.current[r],u=c.stateSelector(o,e.current.instanceId);if(c.propOnChange&&l){const n=t.signature===zS.DataGridPro?{api:e.current,reason:i}:{reason:i};c.propOnChange(u,n)}a||e.current.publishEvent(c.changeEvent,u,{reason:i})}return!a}),[e,t.signature]),s=r.useCallback(((t,n,r)=>e.current.setState((e=>up({},e,{[t]:n(e[t])})),r)),[e]),l=r.useCallback((()=>i((()=>e.current.state))),[e]),c={updateControlState:s,registerControlState:o};Gv(e,{setState:a,forceUpdate:l},"public"),Gv(e,c,"private")})(n,t),(e=>{const t=r.useRef({}),n=r.useRef(!1),i=r.useCallback((e=>{n.current||!e||(n.current=!0,Object.values(e.appliers).forEach((e=>{e()})),n.current=!1)}),[]),o=r.useCallback(((e,n,r)=>{t.current[e]||(t.current[e]={processors:new Map,appliers:{}});const o=t.current[e];return o.processors.get(n)!==r&&(o.processors.set(n,r),i(o)),()=>{t.current[e].processors.set(n,null)}}),[i]),a=r.useCallback(((e,n,r)=>(t.current[e]||(t.current[e]={processors:new Map,appliers:{}}),t.current[e].appliers[n]=r,()=>{const r=Iv(t.current[e].appliers,[n].map(CD));t.current[e].appliers=r})),[]),s=r.useCallback((e=>{const n=t.current[e];i(n)}),[i]),l={unstable_applyPipeProcessors:r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const[i,o,a]=n;return t.current[i]?Array.from(t.current[i].processors.values()).reduce(((e,t)=>t?t(e,a):e),o):o}),[])};Gv(e,{registerPipeProcessor:o,registerPipeApplier:a,requestPipeProcessorsApplication:s},"private"),Gv(e,l,"public")})(n),(e=>{const t=r.useRef(new Map),n=r.useRef({}),i=r.useCallback(((t,r,i)=>{n.current[r]||(n.current[r]={});const o=n.current[r],a=o[t];return o[t]=i,!a||a===i||t===e.current.getActiveStrategy(PD[r])&&e.current.publishEvent("activeStrategyProcessorChange",r),()=>{const e=Iv(n.current[r],[t].map(CD));n.current[r]=e}}),[e]),o=r.useCallback(((t,r)=>{const i=e.current.getActiveStrategy(PD[t]);if(null==i)throw new Error("Can't apply a strategy processor before defining an active strategy");const o=n.current[t];if(!o||!o[i])throw new Error(`No processor found for processor "${t}" on strategy "${i}"`);return(0,o[i])(r)}),[e]),a=r.useCallback((e=>{var n;const r=Array.from(t.current.entries()).find((t=>{let[,n]=t;return n.group===e&&n.isAvailable()}));return null!=(n=null==r?void 0:r[0])?n:ED}),[]),s=r.useCallback(((n,r,i)=>{t.current.set(r,{group:n,isAvailable:i}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Gv(e,{registerStrategyProcessor:i,applyStrategyProcessor:o,getActiveStrategy:a,setStrategyAvailability:s},"private")})(n),((e,t)=>{const n=r.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.register("public",{getLocaleText:n})})(n,t),n.current.register("private",{rootProps:t}),n},OD=(e,t,n)=>{const i=r.useRef(!1);i.current||(t.current.state=e(t.current.state,n,t),i.current=!0)};function LD(e,t){return"string"==typeof e&&[t,"\n","\r",'"'].some((t=>e.includes(t)))?`"${e.replace(/"/g,'""')}"`:e}const RD=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let i;if(r){var o;const t=e.colDef.type;if("number"===t)i=String(e.value);else if("date"===t||"dateTime"===t){var a;i=null==(a=e.value)?void 0:a.toISOString()}else i="function"==typeof(null==(o=e.value)?void 0:o.toString)?e.value.toString():e.value}else i=e.formattedValue;return LD(i,n)};$f(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class jD{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),null==e?this.rowString+="":"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.delimiterCharacter):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function DD(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:i,includeColumnGroupsHeaders:o,ignoreValueFormatter:a,apiRef:s}=e,l=n.reduce(((e,n)=>`${e}${(e=>{let{id:t,columns:n,getCellParams:r,delimiterCharacter:i,ignoreValueFormatter:o}=e;const a=new jD({delimiterCharacter:i});return n.forEach((e=>{const n=r(t,e.field);a.addValue(RD(n,{delimiterCharacter:i,ignoreValueFormatter:o}))})),a.getRowString()})({id:n,columns:t,getCellParams:s.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r\n`),"").trim();if(!i)return l;const c=t.filter((e=>e.field!==ij.field)),u=[];if(o){const e=s.current.unstable_getAllGroupDetails();let t=0;const n=c.reduce(((e,n)=>{const r=s.current.unstable_getColumnGroupPath(n.field);return e[n.field]=r,t=Math.max(t,r.length),e}),{});for(let i=0;i<t;i+=1){const t=new jD({delimiterCharacter:r,sanitizeCellValue:LD});u.push(t),c.forEach((r=>{const o=(n[r.field]||[])[i],a=e[o];t.addValue(a?a.headerName||a.groupId:"")}))}}const d=new jD({delimiterCharacter:r,sanitizeCellValue:LD});return c.forEach((e=>{d.addValue(e.headerName||e.field)})),u.push(d),`${u.map((e=>e.getRowString())).join("\r\n")}\r\n${l}`.trim()}function AD(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const ND=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,i=("object"==typeof n?null==n?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,a=r.useCallback((t=>{if(!t.ctrlKey&&!t.metaKey||"c"!==t.key||function(e){var t;return!!(null!=(t=window.getSelection())&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}(t.target))return;let n="";if(e.current.getSelectedRows().size>0)n=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const t=Ky(e);if(t){const r=e.current.getCellParams(t.id,t.field);n=RD(r,{delimiterCharacter:o,ignoreValueFormatter:i})}}n=e.current.unstable_applyPipeProcessors("clipboardCopy",n),n&&(function(e){navigator.clipboard?navigator.clipboard.writeText(e).catch((()=>{AD(e)})):AD(e)}(n),e.current.publishEvent("clipboardCopy",n))}),[e,i,o]);eM(e,e.current.rootElementRef,"keydown",a),ZS(e,"clipboardCopy",t.onClipboardCopy)},FD=e=>up({},e,{columnMenu:{open:!1}}),zD=e=>{const t=HS(e,"useGridColumnMenu"),n=r.useCallback((n=>{e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),up({},e,{columnMenu:{open:!0,field:n}}))))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),i=r.useCallback((()=>{const n=lv(e.current.state);if(n.field){const t=Qg(e),r=ty(e),i=Jg(e);let o=n.field;if(t[o]||(o=i[0]),!1===r[o]){const e=i.filter((e=>e===o||!1!==r[e])),t=e.indexOf(o);o=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(o)}e.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),up({},e,{columnMenu:up({},e.columnMenu,{open:!1,field:void 0})})):e))&&e.current.forceUpdate()}),[e,t]),o=r.useCallback((r=>{t.debug("Toggle Column Menu");const o=lv(e.current.state);o.open&&o.field===r?i():n(r)}),[e,t,n,i]);Gv(e,{showColumnMenu:n,hideColumnMenu:i,toggleColumnMenu:o},"public"),VS(e,"columnResizeStart",i),VS(e,"virtualScrollerWheel",e.current.hideColumnMenu),VS(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},BD=["maxWidth","minWidth","width","flex"];const UD=(e,t)=>{const n={};let r=0,i=0;const o=[];e.orderedFields.forEach((t=>{const a=up({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])a.computedWidth=0;else{let e;a.flex&&a.flex>0?(r+=a.flex,e=0,o.push(a)):e=KS(a.width||ej.width,a.minWidth||ej.minWidth,a.maxWidth||ej.maxWidth),i+=e,a.computedWidth=e}n[t]=a}));const a=Math.max(t-i,0);if(r>0&&t>0){const e=function(e){let{initialFreeSpace:t,totalFlexUnits:n,flexColumns:r}=e;const i=new Set(r.map((e=>e.field))),o={all:{},frozenFields:[],freeze:e=>{const t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function e(){if(o.frozenFields.length===i.size)return;const a={min:{},max:{}};let s=t,l=n,c=0;o.frozenFields.forEach((e=>{s-=o.all[e].computedWidth,l-=o.all[e].flex}));for(let t=0;t<r.length;t+=1){const e=r[t];if(o.all[e.field]&&!0===o.all[e.field].frozen)continue;let n=s/l*e.flex;n<e.minWidth?(c+=e.minWidth-n,n=e.minWidth,a.min[e.field]=!0):n>e.maxWidth&&(c+=e.maxWidth-n,n=e.maxWidth,a.max[e.field]=!0),o.all[e.field]={frozen:!1,computedWidth:n,flex:e.flex}}c<0?Object.keys(a.max).forEach((e=>{o.freeze(e)})):c>0?Object.keys(a.min).forEach((e=>{o.freeze(e)})):r.forEach((e=>{let{field:t}=e;o.freeze(t)})),e()}(),o.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:o});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return up({},e,{lookup:n})};function $D(e,t){let n=e[dD];return t&&e[t]&&(n=e[t]),n}const VD=e=>{let{apiRef:t,columnsToUpsert:n,initialState:r,columnTypes:i,columnVisibilityModel:o=ty(t),keepOnlyColumnsToUpsert:a=!1}=e;var s,l,c;const u=!t.current.state.columns;let d;if(u)d={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const e=Xg(t.current.state);d={orderedFields:a?[]:[...e.orderedFields],lookup:up({},e.lookup),columnVisibilityModel:o}}let p={};a&&!u&&(p=Object.keys(d.lookup).reduce(((e,t)=>up({},e,{[t]:!1})),{})),n.forEach((e=>{const{field:t}=e;p[t]=!0;let n=d.lookup[t];null==n?(n=up({},$D(i,e.type),{field:t,hasBeenResized:!1}),d.orderedFields.push(t)):a&&d.orderedFields.push(t),n&&n.type!==e.type&&(n=up({},$D(i,e.type),{field:t}));let r=n.hasBeenResized;BD.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),d.lookup[t]=up({},n,e,{hasBeenResized:r})})),a&&!u&&Object.keys(d.lookup).forEach((e=>{p[e]||delete d.lookup[e]}));const h=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,i=Object.keys(r);if(0===i.length&&0===n.length)return e;const o={},a=[];for(let c=0;c<n.length;c+=1){const t=n[c];e.lookup[t]&&(o[t]=!0,a.push(t))}const s=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter((e=>!o[e]))],l=up({},e.lookup);for(let c=0;c<i.length;c+=1){const e=i[c],t=up({},l[e],{hasBeenResized:!0});Object.entries(r[e]).forEach((e=>{let[n,r]=e;t[n]=-1===r?1/0:r})),l[e]=t}return up({},e,{orderedFields:s,lookup:l})})(t.current.unstable_applyPipeProcessors("hydrateColumns",d),r);return UD(h,null!=(s=null==(l=(c=t.current).getRootDimensions)||null==(l=l.call(c))?void 0:l.viewportInnerSize.width)?s:0)},qD=e=>t=>up({},t,{columns:e});function ZD(e){let{firstColumnToRender:t,apiRef:n,firstRowToRender:r,lastRowToRender:i,visibleRows:o}=e,a=t;for(let s=r;s<i;s+=1)if(o[s]){const e=o[s].id,r=n.current.unstable_getCellColSpanInfo(e,t);r&&r.spannedByColSpan&&(a=r.leftVisibleCellIndex)}return a}function HD(e){let{firstColumnIndex:t,minColumnIndex:n,columnBuffer:r,firstRowToRender:i,lastRowToRender:o,apiRef:a,visibleRows:s}=e;return ZD({firstColumnToRender:Math.max(t-r,n),apiRef:a,firstRowToRender:i,lastRowToRender:o,visibleRows:s})}function GD(e,t){const n=sv(e),r=py(e);return Math.floor(t*n)*((null!=r?r:0)+1)}const WD=pD(),YD=(e,t,n)=>{var r,i,o,a;return up({},e,{columns:VD({apiRef:n,columnTypes:WD,columnsToUpsert:t.columns,initialState:null==(r=t.initialState)?void 0:r.columns,columnVisibilityModel:null!=(i=null!=(o=t.columnVisibilityModel)?o:null==(a=t.initialState)||null==(a=a.columns)?void 0:a.columnVisibilityModel)?i:{},keepOnlyColumnsToUpsert:!0})})};function KD(e,t){var n,i;const o=HS(e,"useGridColumns"),a=WD,s=r.useRef(t.columns),l=r.useRef(a);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ty,changeEvent:"columnVisibilityModelChange"});const c=r.useCallback((t=>{o.debug("Updating columns state."),e.current.setState(qD(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.orderedFields)}),[o,e]),u=r.useCallback((t=>Qg(e)[t]),[e]),d=r.useCallback((()=>ey(e)),[e]),p=r.useCallback((()=>ny(e)),[e]),h=r.useCallback((function(t){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?ny(e):ey(e)).findIndex((e=>e.field===t))}),[e]),f=r.useCallback((t=>{const n=h(t);return iy(e)[n]}),[e,h]),m=r.useCallback((t=>{ty(e)!==t&&(e.current.setState((n=>up({},n,{columns:VD({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.forceUpdate())}),[e,a]),g=r.useCallback((t=>{const n=VD({apiRef:e,columnTypes:a,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1});c(n)}),[e,c,a]),y=r.useCallback(((t,n)=>{var r;const i=ty(e);if(n!==(null==(r=i[t])||r)){const r=up({},i,{[t]:n});e.current.setColumnVisibilityModel(r)}}),[e]),v=r.useCallback((t=>Jg(e).findIndex((e=>e===t))),[e]),b=r.useCallback(((t,n)=>{const r=Jg(e),i=v(t);if(i===n)return;o.debug(`Moving column ${t} to index ${n}`);const a=[...r],s=a.splice(i,1)[0];a.splice(n,0,s),c(up({},Xg(e.current.state),{orderedFields:a}));const l={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:i};e.current.publishEvent("columnIndexChange",l)}),[e,o,c,v]),_=r.useCallback(((t,n)=>{var r,i;o.debug(`Updating column ${t} width to ${n}`);const a=Xg(e.current.state),s=up({},a.lookup[t],{width:n,hasBeenResized:!0});c(UD(up({},a,{lookup:up({},a.lookup,{[t]:s})}),null!=(r=null==(i=e.current.getRootDimensions())?void 0:i.viewportInnerSize.width)?r:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:s,width:n})}),[e,o,c]),w={setColumnIndex:b};Gv(e,{getColumn:u,getAllColumns:d,getColumnIndex:h,getColumnPosition:f,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:v,updateColumns:g,setColumnVisibilityModel:m,setColumnVisibility:y,setColumnWidth:_},"public"),Gv(e,w,t.signature===zS.DataGrid?"private":"public");const x=r.useCallback(((n,r)=>{var i,o;const a={},s=ty(e);(!r.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(null!=(i=null==(o=t.initialState)||null==(o=o.columns)?void 0:o.columnVisibilityModel)?i:{}).length>0||Object.keys(s).length>0)&&(a.columnVisibilityModel=s),a.orderedFields=Jg(e);const l=ey(e),c={};return l.forEach((e=>{if(e.hasBeenResized){const t={};BD.forEach((n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r})),c[e.field]=t}})),Object.keys(c).length>0&&(a.dimensions=c),up({},n,{columns:a})}),[e,t.columnVisibilityModel,null==(n=t.initialState)?void 0:n.columns]),k=r.useCallback(((t,n)=>{var r;const i=null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel,o=n.stateToRestore.columns;if(null==i&&null==o)return t;const s=VD({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:o,columnVisibilityModel:i,keepOnlyColumnsToUpsert:!1});return e.current.setState(qD(s)),null!=o&&e.current.publishEvent("columnsChange",s.orderedFields),t}),[e,a]),C=r.useCallback(((e,n)=>{if(n===fM.columns){var r;const e=t.slots.columnsPanel;return ih(e,up({},null==(r=t.slotProps)?void 0:r.columnsPanel))}return e}),[t.slots.columnsPanel,null==(i=t.slotProps)?void 0:i.columnsPanel]),S=r.useCallback((e=>t.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[t.disableColumnSelector]);SD(e,"columnMenu",S),SD(e,"exportState",x),SD(e,"restoreState",k),SD(e,"preferencePanel",C);const M=r.useRef(null);VS(e,"viewportInnerSizeChange",(t=>{M.current!==t.width&&(M.current=t.width,c(UD(Xg(e.current.state),t.width)))}));const T=r.useCallback((()=>{o.info("Columns pipe processing have changed, regenerating the columns");const t=VD({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});c(t)}),[e,o,c,a]);MD(e,"hydrateColumns",T);const E=r.useRef(!0);r.useEffect((()=>{if(E.current)return void(E.current=!1);if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&l.current===a)return;const n=VD({apiRef:e,columnTypes:a,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,l.current=a,c(n)}),[o,e,c,t.columns,a]),r.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,o,t.columnVisibilityModel])}const XD={compact:.7,comfortable:1.3,standard:1},JD=(e,t)=>up({},e,{density:{value:t.density,factor:XD[t.density]}}),QD=(e,t)=>{const n=HS(e,"useDensity"),i=r.useCallback((t=>{n.debug(`Set grid density to ${t}`),e.current.setState((e=>{const n=ov(e),r={value:t,factor:XD[t]};return XS(n,r)?e:up({},e,{density:r})})),e.current.forceUpdate()}),[n,e]);r.useEffect((()=>{e.current.setDensity(t.density)}),[e,t.density]),Gv(e,{setDensity:i},"public")};const eA=e=>{let{apiRef:t,options:n}=e;const r=ey(t);return n.fields?n.fields.reduce(((e,t)=>{const n=r.find((e=>e.field===t));return n&&e.push(n),e}),[]):(n.allColumns?r:ny(t)).filter((e=>!e.disableExport))},tA=e=>{let{apiRef:t}=e;var n,r;const i=Vy(t),o=by(t),a=t.current.getSelectedRows(),s=i.filter((e=>"footer"!==o[e].type)),l=Cy(t),c=(null==l||null==(n=l.top)?void 0:n.map((e=>e.id)))||[],u=(null==l||null==(r=l.bottom)?void 0:r.map((e=>e.id)))||[];return s.unshift(...c),s.push(...u),a.size>0?s.filter((e=>a.has(e))):s},nA=(e,t)=>{const n=HS(e,"useGridCsvExport"),i=t.unstable_ignoreValueFormatterDuringExport,o=("object"==typeof i?null==i?void 0:i.csvExport:i)||!1,a=r.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,i,a;n.debug("Get data as CSV");return DD({columns:eA({apiRef:e,options:t}),rowIds:(null!=(r=t.getRowsToExport)?r:tA)({apiRef:e}),delimiterCharacter:t.delimiter||",",includeHeaders:null==(i=t.includeHeaders)||i,includeColumnGroupsHeaders:null==(a=t.includeColumnGroupsHeaders)||a,ignoreValueFormatter:o,apiRef:e})}),[n,e,o]),s=r.useCallback((e=>{n.debug("Export data as CSV");const t=a(e);!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv";const n=`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title||"untitled"}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),r=document.createElement("a");return r.href=t,r.download=n,r.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[n,a]);Gv(e,{getDataAsCsv:a,exportDataAsCsv:s},"public");const l=r.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:ih(gI,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);SD(e,"exportMenu",l)},rA=(e,t)=>{var n,r;const i=up({},rM(t.autoPageSize),null!=(n=t.paginationModel)?n:null==(r=t.initialState)||null==(r=r.pagination)?void 0:r.paginationModel);return iM(i.pageSize,t.signature),up({},e,{pagination:{paginationModel:i}})},iA=(e,t,n)=>r=>{var i;let o=r.paginationModel;const a=null!=(i=null==n?void 0:n.pageSize)?i:o.pageSize,s=nM(e,a);n&&((null==n?void 0:n.page)!==o.page||(null==n?void 0:n.pageSize)!==o.pageSize)&&(o=n);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===t?e:Math.max(Math.min(e,t-1),0)}(o.page,s);return l!==o.page&&(o=up({},o,{page:l})),iM(o.pageSize,t),{paginationModel:o}},oA=(e,t)=>{var n;const i=HS(e,"useGridPagination"),o=Yf(e,Hy),a=Yf(e,sv),s=Math.floor(t.rowHeight*a);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:aM,changeEvent:"paginationModelChange"});const l=r.useCallback((t=>{const n=aM(e);t!==n.page&&(i.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:n.pageSize}))}),[e,i]),c=r.useCallback((t=>{const n=aM(e);t!==n.pageSize&&(i.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:n.page}))}),[e,i]),u=r.useCallback((n=>{var r;n!==aM(e)&&(i.debug("Setting 'paginationModel' to",n),e.current.updateControlState("pagination",iA(null!=(r=t.rowCount)?r:o,t.signature,n),"setPaginationModel"),e.current.forceUpdate())}),[e,i,t.rowCount,t.signature,o]);Gv(e,{setPage:l,setPageSize:c,setPaginationModel:u},"public");const d=r.useCallback(((n,r)=>{var i;const o=aM(e);return!r.exportOnlyDirtyModels||null!=t.paginationModel||null!=(null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.paginationModel)||0!==o.page&&o.pageSize!==(e=>e?0:100)(t.autoPageSize)?up({},n,{pagination:up({},n.pagination,{paginationModel:o})}):n}),[e,t.paginationModel,null==(n=t.initialState)||null==(n=n.pagination)?void 0:n.paginationModel,t.autoPageSize]),p=r.useCallback(((n,r)=>{var i,a,s;const l=null!=(i=r.stateToRestore.pagination)&&i.paginationModel?up({},rM(t.autoPageSize),null==(a=r.stateToRestore.pagination)?void 0:a.paginationModel):aM(e);return e.current.updateControlState("pagination",iA(null!=(s=t.rowCount)?s:o,t.signature,l),"stateRestorePreProcessing"),n}),[e,t.autoPageSize,t.rowCount,t.signature,o]);SD(e,"exportState",d),SD(e,"restoreState",p);const h=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!t.autoPageSize||!n)return;const r=kv(e),i=Math.floor((n.viewportInnerSize.height-r.top-r.bottom)/s);e.current.setPageSize(i)}),[e,t.autoPageSize,s]);VS(e,"viewportInnerSizeChange",h),VS(e,"paginationModelChange",(()=>{var t;const n=aM(e);null!=(t=e.current.virtualScrollerRef)&&t.current&&e.current.scrollToIndexes({rowIndex:n.page*n.pageSize}),e.current.forceUpdate()})),r.useEffect((()=>{}),[t.rowCount,t.paginationMode]),r.useEffect((()=>{var n;e.current.updateControlState("pagination",iA(null!=(n=t.rowCount)?n:o,t.signature,t.paginationModel))}),[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),r.useEffect((()=>{h()}),[h])};const aA=(e,t)=>{const n=HS(e,"useGridPrintExport"),i=r.useRef(null),o=r.useRef(null),a=r.useRef({}),s=r.useRef([]);r.useEffect((()=>{i.current=Pp(e.current.rootElementRef.current)}),[e]);const l=r.useCallback(((t,n,r)=>new Promise((i=>{const o=eA({apiRef:e,options:{fields:t,allColumns:n}}).map((e=>e.field)),a=ey(e),s={};a.forEach((e=>{s[e.field]=o.includes(e.field)})),r&&(s[ij.field]=!0),e.current.setColumnVisibilityModel(s),i()}))),[e]),c=r.useCallback((t=>{const n=t({apiRef:e}).map((t=>e.current.getRow(t)));e.current.setRows(n)}),[e]),u=r.useCallback(((n,r)=>{var o,a;const s=up({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},r),l=n.contentDocument;if(!l)return;const c=mM(e.current.state),u=e.current.rootElementRef.current,d=u.cloneNode(!0);d.querySelector(`.${Fg.main}`).style.overflow="visible",d.style.contain="size";d.querySelector(`.${Fg.columnHeaders}`).querySelector(`.${Fg.columnHeadersInner}`).style.width="100%";let p=(null==(o=u.querySelector(`.${Fg.toolbarContainer}`))?void 0:o.offsetHeight)||0,h=(null==(a=u.querySelector(`.${Fg.footerContainer}`))?void 0:a.offsetHeight)||0;var f,m;s.hideToolbar&&(null==(f=d.querySelector(`.${Fg.toolbarContainer}`))||f.remove(),p=0);s.hideFooter&&(null==(m=d.querySelector(`.${Fg.footerContainer}`))||m.remove(),h=0);const g=c.currentPageTotalHeight+GD(e,t.columnHeaderHeight)+p+h;if(d.style.height=`${g}px`,d.style.boxSizing="content-box",null!=r&&r.getRowsToExport){const e=d.querySelector(`.${Fg.footerContainer}`);e.style.position="absolute",e.style.width="100%",e.style.top=g-h+"px"}const y=document.createElement("div");y.appendChild(d),l.body.innerHTML=y.innerHTML;const v="function"==typeof s.pageStyle?s.pageStyle():s.pageStyle;if("string"==typeof v){const e=l.createElement("style");e.appendChild(l.createTextNode(v)),l.head.appendChild(e)}s.bodyClassName&&l.body.classList.add(...s.bodyClassName.split(" "));const b=[];if(s.copyStyles){const e=u.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:i.current).querySelectorAll("style, link[rel='stylesheet']");for(let n=0;n<t.length;n+=1){const e=t[n];if("STYLE"===e.tagName){const t=l.createElement(e.tagName),n=e.sheet;if(n){let e="";for(let t=0;t<n.cssRules.length;t+=1)"string"==typeof n.cssRules[t].cssText&&(e+=`${n.cssRules[t].cssText}\r\n`);t.appendChild(l.createTextNode(e)),l.head.appendChild(t)}}else if(e.getAttribute("href")){const t=l.createElement(e.tagName);for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];r&&t.setAttribute(r.nodeName,r.nodeValue||"")}b.push(new Promise((e=>{t.addEventListener("load",(()=>e()))}))),l.head.appendChild(t)}}}Promise.all(b).then((()=>{n.contentWindow.print()}))}),[e,i,t.columnHeaderHeight]),d=r.useCallback((t=>{var n;i.current.body.removeChild(t),e.current.restoreState(o.current||{}),null!=(n=o.current)&&null!=(n=n.columns)&&n.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_setVirtualization(!0),e.current.setRows(s.current),o.current=null,a.current={},s.current=[]}),[e]),p={exportDataAsPrint:r.useCallback((async r=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),a.current=ty(e),s.current=e.current.getSortedRows(),t.pagination){const t=Zy(e),n={page:0,pageSize:t};e.current.updateControlState("pagination",iA(t,"DataGridPro",n)),e.current.forceUpdate()}await l(null==r?void 0:r.fields,null==r?void 0:r.allColumns,null==r?void 0:r.includeCheckboxes),null!=r&&r.getRowsToExport&&c(r.getRowsToExport),e.current.unstable_setVirtualization(!1),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const p=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(null==r?void 0:r.fileName);p.onload=()=>{u(p,r),p.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&d(p)}))},i.current.body.appendChild(p)}),[t,n,e,u,d,l,c])};Gv(e,p,"public");const h=r.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:ih(yI,{options:t.printOptions}),componentName:"printExport"}]}),[]);SD(e,"exportMenu",h)},sA=(e,t,n)=>{var r,i,o;const a=null!=(r=null!=(i=t.filterModel)?i:null==(o=t.initialState)||null==(o=o.filter)?void 0:o.filterModel)?r:AS();return up({},e,{filter:{filterModel:qR(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},lA=e=>e.filteredRowsLookup;function cA(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function uA(){return Vg(Object.values)}const dA=(e,t)=>{var n,i;const o=HS(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Dy,changeEvent:"filterModelChange"});const a=r.useCallback((()=>{e.current.setState((n=>{const r=Dy(n,e.current.instanceId),i="client"===t.filterMode?YR(r,e,t.disableEval):null,o=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:i,filterModel:null!=r?r:AS()}),a=up({},n,{filter:up({},n.filter,o)});return up({},a,{visibleRowsLookup:cA(e,a)})})),e.current.publishEvent("filteredRowsSet")}),[e,t.filterMode,t.disableEval]),s=r.useCallback(((e,n)=>null==n||!1===n.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[t.disableColumnFilter]),l=r.useCallback((()=>{a(),e.current.forceUpdate()}),[e,a]),c=r.useCallback((t=>{const n=Dy(e),r=[...n.items],i=r.findIndex((e=>e.id===t.id));-1===i?r.push(t):r[i]=t,e.current.setFilterModel(up({},n,{items:r}),"upsertFilterItem")}),[e]),u=r.useCallback((t=>{const n=Dy(e),r=[...n.items];t.forEach((e=>{const n=t.findIndex((t=>t.id===e.id));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel(up({},n,{items:t}),"upsertFilterItems")}),[e]),d=r.useCallback((t=>{const n=Dy(e),r=n.items.filter((e=>e.id!==t.id));r.length!==n.items.length&&e.current.setFilterModel(up({},n,{items:r}),"deleteFilterItem")}),[e]),p=r.useCallback(((n,r,i)=>{if(o.debug("Displaying filter panel"),n){const r=Dy(e),i=r.items.filter((t=>{var n;if(void 0!==t.value)return!(Array.isArray(t.value)&&0===t.value.length);const r=null==(n=e.current.getColumn(t.field).filterOperators)?void 0:n.find((e=>e.value===t.operator));return!(typeof(null==r?void 0:r.requiresFilterValue)>"u"||(null==r?void 0:r.requiresFilterValue))}));let o;const a=i.find((e=>e.field===n)),s=e.current.getColumn(n);o=a?i:t.disableMultipleColumnsFiltering?[BR({field:n,operator:s.filterOperators[0].value},e)]:[...i,BR({field:n,operator:s.filterOperators[0].value},e)],e.current.setFilterModel(up({},r,{items:o}))}e.current.showPreferences(fM.filters,r,i)}),[e,o,t.disableMultipleColumnsFiltering]),h=r.useCallback((()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,o]),f=r.useCallback((t=>{const n=Dy(e);n.logicOperator!==t&&e.current.setFilterModel(up({},n,{logicOperator:t}),"changeLogicOperator")}),[e]),m=r.useCallback((t=>{const n=Dy(e);XS(n.quickFilterValues,t)||e.current.setFilterModel(up({},n,{quickFilterValues:[...t]}))}),[e]),g={setFilterLogicOperator:f,unstable_applyFilters:l,deleteFilterItem:d,upsertFilterItem:c,upsertFilterItems:u,setFilterModel:r.useCallback(((n,r)=>{Dy(e)!==n&&(o.debug("Setting filter model"),e.current.updateControlState("filter",ZR(n,t.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,o,t.disableMultipleColumnsFiltering]),showFilterPanel:p,hideFilterPanel:h,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics};Gv(e,g,"public");const y=r.useCallback(((n,r)=>{var i;const o=Dy(e);return r.exportOnlyDirtyModels&&null==t.filterModel&&null==(null==(i=t.initialState)||null==(i=i.filter)?void 0:i.filterModel)&&XS(o,AS())?n:up({},n,{filter:{filterModel:o}})}),[e,t.filterModel,null==(n=t.initialState)||null==(n=n.filter)?void 0:n.filterModel]),v=r.useCallback(((n,r)=>{var i;const o=null==(i=r.stateToRestore.filter)?void 0:i.filterModel;return null==o?n:(e.current.updateControlState("filter",ZR(o,t.disableMultipleColumnsFiltering,e),"restoreState"),up({},n,{callbacks:[...n.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),b=r.useCallback(((e,n)=>{if(n===fM.filters){var r;const e=t.slots.filterPanel;return ih(e,up({},null==(r=t.slotProps)?void 0:r.filterPanel))}return e}),[t.slots.filterPanel,null==(i=t.slotProps)?void 0:i.filterPanel]),{getRowId:_}=t,w=zf(uA),x=r.useCallback((n=>{if("client"!==t.filterMode||!n.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const r=yy(e),i={},{isRowMatchingFilters:o}=n,a={},s={passingFilterItems:null,passingQuickFilterValues:null},l=w.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<l.length;t+=1){const r=l[t],c=_?_(r):r.id;o(r,void 0,s);const u=XR([s.passingFilterItems],[s.passingQuickFilterValues],n.filterModel,e,a);i[c]=u}const c="auto-generated-group-footer-root";return r[c]&&(i[c]=!0),{filteredRowsLookup:i,filteredDescendantCountLookup:{}}}),[e,t.filterMode,_,w]);SD(e,"columnMenu",s),SD(e,"exportState",y),SD(e,"restoreState",v),SD(e,"preferencePanel",b),TD(e,ED,"filtering",x),TD(e,ED,"visibleRowsLookupCreation",lA);const k=r.useCallback((()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const t=Dy(e),n=sy(e),r=t.items.filter((e=>e.field&&n[e.field]));r.length<t.items.length&&e.current.setFilterModel(up({},t,{items:r}))}),[e,o]),C=r.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),S=r.useCallback((()=>{e.current.setState((t=>up({},t,{visibleRowsLookup:cA(e,t)}))),e.current.forceUpdate()}),[e]);VS(e,"rowsSet",a),VS(e,"columnsChange",k),VS(e,"activeStrategyProcessorChange",C),VS(e,"rowExpansionChange",S),VS(e,"columnVisibilityModelChange",(()=>{const t=Dy(e);t.quickFilterValues&&t.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()})),tM((()=>{e.current.unstable_applyFilters()})),Lp((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,o,t.filterModel])},pA=e=>up({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),hA=(e,t)=>{const n=HS(e,"useGridFocus"),i=r.useRef(null),o=r.useCallback(((t,n)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),n)}),[e]),a=r.useCallback(((t,r)=>{const i=Ky(e);(null==i?void 0:i.id)===t&&(null==i?void 0:i.field)===r||(e.current.setState((e=>(n.debug(`Focusing on cell with id=${t} and field=${r}`),up({},e,{tabIndex:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&(i&&o(i,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,r))))}),[e,n,o]),s=r.useCallback((function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Ky(e);o(i,r),e.current.setState((e=>(n.debug(`Focusing on column header with colIndex=${t}`),up({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,n,o]),l=r.useCallback((function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Ky(e);o(i,r),e.current.setState((e=>(n.debug(`Focusing on column header filter with colIndex=${t}`),up({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,n,o]),c=r.useCallback((function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=Ky(e);i&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(i.id,i.field),r),e.current.setState((e=>up({},e,{tabIndex:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}}))),e.current.forceUpdate()}),[e]),u=r.useCallback((()=>Qy(e)),[e]),d=r.useCallback(((n,r,i)=>{let o=e.current.getColumnIndex(r);const a=ny(e),s=PR(e,{pagination:t.pagination,paginationMode:t.paginationMode}),l=Cy(e),c=[].concat(l.top||[],s.rows,l.bottom||[]);let u=c.findIndex((e=>e.id===n));"right"===i?o+=1:"left"===i?o-=1:u+=1,o>=a.length?(u+=1,u<c.length&&(o=0)):o<0&&(u-=1,u>=0&&(o=a.length-1)),u=KS(u,0,c.length-1);const d=c[u];if(!d)return;const p=e.current.unstable_getCellColSpanInfo(d.id,o);p&&p.spannedByColSpan&&("left"===i||"below"===i?o=p.leftVisibleCellIndex:"right"===i&&(o=p.rightVisibleCellIndex)),o=KS(o,0,a.length-1);const h=a[o];e.current.setCellFocus(d.id,h.field)}),[e,t.pagination,t.paginationMode]),p=r.useCallback((t=>{let{id:n,field:r}=t;e.current.setCellFocus(n,r)}),[e]),h=r.useCallback(((t,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||Ax(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),f=r.useCallback(((t,n)=>{let{field:r}=t;n.target===n.currentTarget&&e.current.setColumnHeaderFocus(r,n)}),[e]),m=r.useCallback(((t,n)=>{let{fields:r,depth:i}=t;if(n.target!==n.currentTarget)return;const o=Qy(e);null!==o&&o.depth===i&&r.includes(o.field)||e.current.setColumnGroupHeaderFocus(r[0],i,n)}),[e]),g=r.useCallback(((t,r)=>{var i;null!=(i=r.relatedTarget)&&i.className.includes(Fg.columnHeader)||(n.debug("Clearing focus"),e.current.setState((e=>up({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[n,e]),y=r.useCallback((e=>{i.current=e}),[]),v=r.useCallback((t=>{const n=i.current;i.current=null;const r=Ky(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:n}))return;if(!r)return void(n&&e.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===r.id&&(null==n?void 0:n.field)===r.field)return;const a=e.current.getCellElement(r.id,r.field);null!=a&&a.contains(t.target)||(n?e.current.setCellFocus(n.id,n.field):(e.current.setState((e=>up({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),o(r,t)))}),[e,o]),b=r.useCallback((t=>{if("view"===t.cellMode)return;const n=Ky(e);((null==n?void 0:n.id)!==t.id||(null==n?void 0:n.field)!==t.field)&&e.current.setCellFocus(t.id,t.field)}),[e]),_=r.useCallback((()=>{const t=Ky(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>up({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[e]),w=Np((()=>{const n=Ky(e);if(!n)return;const r=PR(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(r.rows.find((e=>e.id===n.id)))return;const i=ny(e);e.current.setState((e=>up({},e,{tabIndex:{cell:{id:r.rows[0].id,field:i[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),x={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Gv(e,{setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},"public"),Gv(e,x,"private"),r.useEffect((()=>{const t=Pp(e.current.rootElementRef.current);return t.addEventListener("mouseup",v),()=>{t.removeEventListener("mouseup",v)}}),[e,v]),VS(e,"columnHeaderBlur",g),VS(e,"cellDoubleClick",p),VS(e,"cellMouseDown",y),VS(e,"cellKeyDown",h),VS(e,"cellModeChange",b),VS(e,"columnHeaderFocus",f),VS(e,"columnGroupHeaderFocus",m),VS(e,"rowsSet",_),VS(e,"paginationModelChange",w)};const fA=e=>{let{currentColIndex:t,firstColIndex:n,lastColIndex:r,direction:i}=e;if("rtl"===i){if(t<r)return t+1}else if("ltr"===i&&t>n)return t-1;return null},mA=e=>{let{currentColIndex:t,firstColIndex:n,lastColIndex:r,direction:i}=e;if("rtl"===i){if(t>n)return t-1}else if("ltr"===i&&t<r)return t+1;return null},gA=(e,t)=>{const n=HS(e,"useGridKeyboardNavigation"),i=IR(e,t).rows,o=xx(),a=r.useMemo((()=>function(e,t){const n=Cy(e)||{};return[...n.top||[],...t,...n.bottom||[]]}(e,i)),[e,i]),s="DataGrid"!==t.signature&&t.unstable_headerFilters,l=r.useCallback((function(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";const o=By(e),a=e.current.unstable_getCellColSpanInfo(r,t);a&&a.spannedByColSpan&&("left"===i?t=a.leftVisibleCellIndex:"right"===i&&(t=a.rightVisibleCellIndex));const s=o.findIndex((e=>e.id===r));n.debug(`Navigating to cell row ${s}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:s});const l=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(r,l)}),[e,n]),c=r.useCallback(((t,r)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const i=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(i,r)}),[e,n]),u=r.useCallback(((t,r)=>{n.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const i=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(i,r)}),[e,n]),d=r.useCallback(((t,r,i)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:o}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(o,r,i)}),[e,n]),p=r.useCallback((e=>{var t;return null==(t=a[e])?void 0:t.id}),[a]),h=r.useCallback(((t,n)=>{const r=n.currentTarget.querySelector(`.${Fg.columnHeaderTitleContainerContent}`);if(r&&r.contains(n.target)&&t.field!==ij.field||!e.current.getRootDimensions())return;const i=e.current.getViewportPageSize(),h=t.field?e.current.getColumnIndex(t.field):0,f=a.length>0?0:null,m=a.length-1,g=ny(e).length-1,y=py(e);let v=!0;switch(n.key){case"ArrowDown":null!==f&&(s?u(h,n):l(h,p(f)));break;case"ArrowRight":{const e=mA({currentColIndex:h,firstColIndex:0,lastColIndex:g,direction:o.direction});null!==e&&c(e,n);break}case"ArrowLeft":{const e=fA({currentColIndex:h,firstColIndex:0,lastColIndex:g,direction:o.direction});null!==e&&c(e,n);break}case"ArrowUp":y>0&&d(h,y-1,n);break;case"PageDown":null!==f&&null!==m&&l(h,p(Math.min(f+i,m)));break;case"Home":c(0,n);break;case"End":c(g,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:v=!1}v&&n.preventDefault()}),[e,a.length,s,u,l,p,o.direction,c,d]),f=r.useCallback(((t,n)=>{if(!e.current.getRootDimensions())return;const r=IM(e)===t.field,i=OM(e)===t.field;if(r||i||!Ax(n.key))return;const s=e.current.getViewportPageSize(),d=t.field?e.current.getColumnIndex(t.field):0,h=a.length-1,f=ny(e).length-1;let m=!0;switch(n.key){case"ArrowDown":{const e=p(0);null!=e&&l(d,e);break}case"ArrowRight":{const e=mA({currentColIndex:d,firstColIndex:0,lastColIndex:f,direction:o.direction});null!==e&&u(e,n);break}case"ArrowLeft":{const r=fA({currentColIndex:d,firstColIndex:0,lastColIndex:f,direction:o.direction});null!==r?u(r,n):e.current.setColumnHeaderFilterFocus(t.field,n);break}case"ArrowUp":c(d,n);break;case"PageDown":null!==h&&l(d,p(Math.min(0+s,h)));break;case"Home":u(0,n);break;case"End":u(f,n);break;case" ":break;default:m=!1}m&&n.preventDefault()}),[e,a.length,u,o.direction,c,l,p]),m=r.useCallback(((t,n)=>{if(!e.current.getRootDimensions())return;const r=Qy(e);if(null===r)return;const{field:i,depth:o}=r,{fields:s,depth:u,maxDepth:h}=t,f=e.current.getViewportPageSize(),m=e.current.getColumnIndex(i),g=i?e.current.getColumnIndex(i):0,y=a.length-1,v=ny(e).length-1;let b=!0;switch(n.key){case"ArrowDown":u===h-1?c(m,n):d(m,o+1,n);break;case"ArrowUp":u>0&&d(m,o-1,n);break;case"ArrowRight":{const e=s.length-s.indexOf(i)-1;m+e+1<=v&&d(m+e+1,o,n);break}case"ArrowLeft":{const e=s.indexOf(i);m-e-1>=0&&d(m-e-1,o,n);break}case"PageDown":null!==y&&l(g,p(Math.min(0+f,y)));break;case"Home":d(0,o,n);break;case"End":d(v,o,n);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[e,a.length,c,d,l,p]),g=r.useCallback(((t,n)=>{if(Hv(n))return;const r=e.current.getCellParams(t.id,t.field);if(r.cellMode===Dv.Edit||!Ax(n.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:n,cell:r}))return;const i=e.current.getRootDimensions();if(0===a.length||!i)return;const d=o.direction,h=e.current.getViewportPageSize(),f=t.field?e.current.getColumnIndex(t.field):0,m=a.findIndex((e=>e.id===t.id)),g=a.length-1,y=ny(e).length-1;let v=!0;switch(n.key){case"ArrowDown":m<g&&l(f,p(m+1));break;case"ArrowUp":m>0?l(f,p(m-1)):s?u(f,n):c(f,n);break;case"ArrowRight":{const e=mA({currentColIndex:f,firstColIndex:0,lastColIndex:y,direction:d});null!==e&&l(e,p(m),"rtl"===d?"left":"right");break}case"ArrowLeft":{const e=fA({currentColIndex:f,firstColIndex:0,lastColIndex:y,direction:d});null!==e&&l(e,p(m),"rtl"===d?"right":"left");break}case"Tab":n.shiftKey&&f>0?l(f-1,p(m),"left"):!n.shiftKey&&f<y&&l(f+1,p(m),"right");break;case" ":{if(t.field===sj)break;const e=t.colDef;if(e&&"treeDataGroup"===e.type)break;!n.shiftKey&&m<g&&l(f,p(Math.min(m+h,g)));break}case"PageDown":m<g&&l(f,p(Math.min(m+h,g)));break;case"PageUp":{const e=Math.max(m-h,0);e!==m&&e>=0?l(f,p(e)):c(f,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?l(0,p(0)):l(0,p(m));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?l(y,p(g)):l(y,p(m));break;default:v=!1}v&&n.preventDefault()}),[e,a,o.direction,l,p,s,u,c]),y=r.useCallback(((e,t)=>{let{event:n}=t;return" "!==n.key&&e}),[]);SD(e,"canStartEditing",y),VS(e,"columnHeaderKeyDown",h),VS(e,"headerFilterKeyDown",f),VS(e,"columnGroupHeaderKeyDown",m),VS(e,"cellKeyDown",g)},yA=(e,t)=>{var n,r;return up({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},vA=(e,t)=>{var n;const i=HS(e,"useGridPreferencesPanel"),o=r.useRef(),a=r.useRef(),s=r.useCallback((()=>{i.debug("Hiding Preferences Panel");const t=hM(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((e=>up({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,i]),l=r.useCallback((()=>{a.current=setTimeout((()=>clearTimeout(o.current)),0)}),[]),c=r.useCallback((()=>{o.current=setTimeout(s,100)}),[s]),u=r.useCallback(((t,n,r)=>{i.debug("Opening Preferences Panel"),l(),e.current.setState((e=>up({},e,{preferencePanel:up({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:n,labelId:r})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[i,l,e]);Gv(e,{showPreferences:u,hidePreferences:c},"public");const d=r.useCallback(((n,r)=>{var i;const o=hM(e.current.state);return!r.exportOnlyDirtyModels||null!=(null==(i=t.initialState)?void 0:i.preferencePanel)||o.open?up({},n,{preferencePanel:o}):n}),[e,null==(n=t.initialState)?void 0:n.preferencePanel]),p=r.useCallback(((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>up({},e,{preferencePanel:r}))),t}),[e]);SD(e,"exportState",d),SD(e,"restoreState",p),r.useEffect((()=>()=>{clearTimeout(o.current),clearTimeout(a.current)}),[])},bA=["id","field"],_A=["id","field"],wA=$f(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),xA=["id"],kA=["id"],CA=$f(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),SA=e=>up({},e,{editRows:{}}),MA=(e,t)=>{((e,t)=>{const[n,i]=r.useState({}),o=r.useRef(n),a=r.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:l,cellModesModel:c,onCellModesModelChange:u}=t,d=e=>function(){t.editMode===jv.Cell&&e(...arguments)},p=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),h=r.useCallback(((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI: The cell with id=${t} and field=${n} is not in ${r} mode.`)}),[e]),f=r.useCallback(((t,n)=>{if(!t.isEditable||t.cellMode===Dv.Edit)return;const r=up({},t,{reason:Fv.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}),[e]),m=r.useCallback(((t,n)=>{if(t.cellMode===Dv.View||e.current.getCellMode(t.id,t.field)===Dv.View)return;const r=up({},t,{reason:zv.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}),[e]),g=r.useCallback(((t,n)=>{if(t.cellMode===Dv.Edit){if(229===n.which)return;let r;if("Escape"===n.key?r=zv.escapeKeyDown:"Enter"===n.key?r=zv.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?zv.shiftTabKeyDown:zv.tabKeyDown,n.preventDefault()),r){const i=up({},t,{reason:r});e.current.publishEvent("cellEditStop",i,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"cell"}))return;if(Dx(n)?r=Fv.printableKeyDown:(n.ctrlKey||n.metaKey)&&"v"===n.key?r=Fv.pasteKeyDown:"Enter"===n.key?r=Fv.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(r=Fv.deleteKeyDown),r){const i=up({},t,{reason:r,key:n.key});e.current.publishEvent("cellEditStart",i,n)}}}),[e]),y=r.useCallback((t=>{const{id:n,field:r,reason:i}=t,o={id:n,field:r};(i===Fv.printableKeyDown||i===Fv.deleteKeyDown||i===Fv.pasteKeyDown)&&(o.deleteValue=!0),e.current.startCellEditMode(o)}),[e]),v=r.useCallback((t=>{const{id:n,field:r,reason:i}=t;let o;e.current.runPendingEditCellValueMutation(n,r),i===zv.enterKeyDown?o="below":i===zv.tabKeyDown?o="right":i===zv.shiftTabKeyDown&&(o="left");const a="escapeKeyDown"===i;e.current.stopCellEditMode({id:n,field:r,ignoreModifications:a,cellToFocusAfter:o})}),[e]);VS(e,"cellDoubleClick",d(f)),VS(e,"cellFocusOut",d(m)),VS(e,"cellKeyDown",d(g)),VS(e,"cellEditStart",d(y)),VS(e,"cellEditStop",d(v)),ZS(e,"cellEditStart",t.onCellEditStart),ZS(e,"cellEditStop",t.onCellEditStop);const b=r.useCallback(((t,n)=>{const r=lj(e.current.state);return r[t]&&r[t][n]?Dv.Edit:Dv.View}),[e]),_=Np((n=>{const r=n!==t.cellModesModel;u&&r&&u(n,{}),(!t.cellModesModel||!r)&&(i(n),o.current=n,e.current.publishEvent("cellModesModelChange",n))})),w=r.useCallback(((e,t,n)=>{const r=up({},o.current);if(null!==n)r[e]=up({},r[e],{[t]:up({},n)});else{const n=Iv(r[e],[t].map(CD));r[e]=n,0===Object.keys(r[e]).length&&delete r[e]}_(r)}),[_]),x=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const i=up({},e.editRows);return null!==r?i[t]=up({},i[t],{[n]:up({},r)}):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),up({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),k=r.useCallback((e=>{const{id:t,field:n}=e,r=Iv(e,bA);p(t,n),h(t,n,Dv.View),w(t,n,up({mode:Dv.Edit},r))}),[p,h,w]),C=Np((t=>{const{id:n,field:r,deleteValue:i,initialValue:o}=t;let a=e.current.getCellValue(n,r);(i||o)&&(a=i?"":o),x(n,r,{value:a,error:!1,isProcessingProps:!1}),e.current.setCellFocus(n,r)})),S=r.useCallback((e=>{const{id:t,field:n}=e,r=Iv(e,_A);h(t,n,Dv.Edit),w(t,n,up({mode:Dv.View},r))}),[h,w]),M=Np((async t=>{const{id:n,field:r,ignoreModifications:i,cellToFocusAfter:o="none"}=t;h(n,r,Dv.Edit),e.current.runPendingEditCellValueMutation(n,r);const c=()=>{x(n,r,null),w(n,r,null),"none"!==o&&e.current.moveFocusToRelativeCell(n,r,o)};if(i)return void c();const u=lj(e.current.state),{error:d,isProcessingProps:p}=u[n][r];if(d||p)return a.current[n][r].mode=Dv.Edit,void w(n,r,{mode:Dv.Edit});const f=e.current.getRowWithUpdatedValuesFromCellEditing(n,r);if(s){const t=e=>{a.current[n][r].mode=Dv.Edit,w(n,r,{mode:Dv.Edit}),l?l(e):wA()};try{const r=e.current.getRow(n);Promise.resolve(s(f,r)).then((t=>{e.current.updateRows([t]),c()})).catch(t)}catch(m){t(m)}}else e.current.updateRows([f]),c()})),T=r.useCallback((async t=>{var n;const{id:r,field:i,value:o,debounceMs:a,unstable_skipValueParser:s}=t;p(r,i),h(r,i,Dv.Edit);const l=e.current.getColumn(i),c=e.current.getRow(r);let u=o;l.valueParser&&!s&&(u=l.valueParser(o,e.current.getCellParams(r,i)));let d=lj(e.current.state),f=up({},d[r][i],{value:u,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});if(l.preProcessEditCellProps){const e=o!==d[r][i].value;f=up({},f,{isProcessingProps:!0}),x(r,i,f),f=await Promise.resolve(l.preProcessEditCellProps({id:r,row:c,props:f,hasChanged:e}))}return e.current.getCellMode(r,i)!==Dv.View&&(d=lj(e.current.state),f=up({},f,{isProcessingProps:!1}),f.value=l.preProcessEditCellProps?d[r][i].value:u,x(r,i,f),d=lj(e.current.state),!(null!=(n=d[r])&&null!=(n=n[i])&&n.error))}),[e,p,h,x]),E=r.useCallback(((t,n)=>{const r=e.current.getColumn(n),i=lj(e.current.state),o=e.current.getRow(t);if(!i[t]||!i[t][n])return e.current.getRow(t);const{value:a}=i[t][n];return r.valueSetter?r.valueSetter({value:a,row:o}):up({},o,{[n]:a})}),[e]),P={setCellEditingEditCellValue:T,getRowWithUpdatedValuesFromCellEditing:E};Gv(e,{getCellMode:b,startCellEditMode:k,stopCellEditMode:S},"public"),Gv(e,P,"private"),r.useEffect((()=>{c&&_(c)}),[c,_]),Lp((()=>{const t=vy(e),r=a.current;a.current=QS(n),Object.entries(n).forEach((e=>{let[n,i]=e;Object.entries(i).forEach((e=>{let[i,o]=e;var a,s;const l=(null==(a=r[n])||null==(a=a[i])?void 0:a.mode)||Dv.View,c=null!=(s=t[n])?s:n;o.mode===Dv.Edit&&l===Dv.View?C(up({id:c,field:i},o)):o.mode===Dv.View&&l===Dv.Edit&&M(up({id:c,field:i},o))}))}))}),[e,n,C,M])})(e,t),((e,t)=>{const[n,i]=r.useState({}),o=r.useRef(n),a=r.useRef({}),s=r.useRef(null),l=r.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:u,rowModesModel:d,onRowModesModelChange:p}=t,h=e=>function(){t.editMode===jv.Row&&e(...arguments)},f=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),m=r.useCallback(((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI: The row with id=${t} is not in ${n} mode.`)}),[e]),g=r.useCallback(((t,n)=>{if(!t.isEditable||e.current.getRowMode(t.id)===Av.Edit)return;const r=up({},e.current.getRowParams(t.id),{field:t.field,reason:Bv.cellDoubleClick});e.current.publishEvent("rowEditStart",r,n)}),[e]),y=r.useCallback((e=>{l.current=e}),[]),v=r.useCallback(((t,n)=>{!t.isEditable||e.current.getRowMode(t.id)!==Av.View&&(l.current=null,s.current=setTimeout((()=>{var r;if(s.current=null,(null==(r=l.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id)||e.current.getRowMode(t.id)===Av.View)return;const r=up({},e.current.getRowParams(t.id),{field:t.field,reason:Uv.rowFocusOut});e.current.publishEvent("rowEditStop",r,n)}})))}),[e]);r.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const b=r.useCallback(((t,n)=>{if(t.cellMode===Av.Edit){if(229===n.which)return;let r;if("Escape"===n.key)r=Uv.escapeKeyDown;else if("Enter"===n.key)r=Uv.enterKeyDown;else if("Tab"===n.key){const i=ry(e).filter((n=>e.current.getColumn(n).type===oj||e.current.isCellEditable(e.current.getCellParams(t.id,n))));if(n.shiftKey?t.field===i[0]&&(r=Uv.shiftTabKeyDown):t.field===i[i.length-1]&&(r=Uv.tabKeyDown),n.preventDefault(),!r){const r=i.findIndex((e=>e===t.field)),o=i[n.shiftKey?r-1:r+1];e.current.setCellFocus(t.id,o)}}if(r){const i=up({},e.current.getRowParams(t.id),{reason:r,field:t.field});e.current.publishEvent("rowEditStop",i,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"row"}))return;if(Dx(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?r=Bv.printableKeyDown:"Enter"===n.key?r=Bv.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(r=Bv.deleteKeyDown),r){const i=up({},e.current.getRowParams(t.id),{field:t.field,reason:r});e.current.publishEvent("rowEditStart",i,n)}}}),[e]),_=r.useCallback((t=>{const{id:n,field:r,reason:i}=t,o={id:n,fieldToFocus:r};(i===Bv.printableKeyDown||i===Bv.deleteKeyDown)&&(o.deleteValue=!!r),e.current.startRowEditMode(o)}),[e]),w=r.useCallback((t=>{const{id:n,reason:r,field:i}=t;let o;e.current.runPendingEditCellValueMutation(n),r===Uv.enterKeyDown?o="below":r===Uv.tabKeyDown?o="right":r===Uv.shiftTabKeyDown&&(o="left");const a="escapeKeyDown"===r;e.current.stopRowEditMode({id:n,ignoreModifications:a,field:i,cellToFocusAfter:o})}),[e]);VS(e,"cellDoubleClick",h(g)),VS(e,"cellFocusIn",h(y)),VS(e,"cellFocusOut",h(v)),VS(e,"cellKeyDown",h(b)),VS(e,"rowEditStart",h(_)),VS(e,"rowEditStop",h(w)),ZS(e,"rowEditStart",t.onRowEditStart),ZS(e,"rowEditStop",t.onRowEditStop);const x=r.useCallback((n=>{if(t.editMode===jv.Cell)return Av.View;const r=lj(e.current.state);return r[n]&&Object.keys(r[n]).length>0?Av.Edit:Av.View}),[e,t.editMode]),k=Np((n=>{const r=n!==t.rowModesModel;p&&r&&p(n,{}),(!t.rowModesModel||!r)&&(i(n),o.current=n,e.current.publishEvent("rowModesModelChange",n))})),C=r.useCallback(((e,t)=>{const n=up({},o.current);null!==t?n[e]=up({},t):delete n[e],k(n)}),[k]),S=r.useCallback(((t,n)=>{e.current.setState((e=>{const r=up({},e.editRows);return null!==n?r[t]=n:delete r[t],up({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),M=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const i=up({},e.editRows);return null!==r?i[t]=up({},i[t],{[n]:up({},r)}):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),up({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),T=r.useCallback((e=>{const{id:t}=e,n=Iv(e,xA);m(t,Av.View),C(t,up({mode:Av.Edit},n))}),[m,C]),E=Np((t=>{const{id:n,fieldToFocus:r,deleteValue:i,initialValue:o}=t,a=Jg(e).reduce(((t,a)=>{if(!e.current.getCellParams(n,a).isEditable)return t;let s=e.current.getCellValue(n,a);return r===a&&(i||o)&&(s=i?"":o),t[a]={value:s,error:!1,isProcessingProps:!1},t}),{});S(n,a),r&&e.current.setCellFocus(n,r)})),P=r.useCallback((e=>{const{id:t}=e,n=Iv(e,kA);m(t,Av.Edit),C(t,up({mode:Av.View},n))}),[m,C]),I=Np((t=>{const{id:n,ignoreModifications:r,field:i,cellToFocusAfter:o="none"}=t;e.current.runPendingEditCellValueMutation(n);const s=()=>{"none"!==o&&i&&e.current.moveFocusToRelativeCell(n,i,o),S(n,null),C(n,null)};if(r)return void s();const l=lj(e.current.state),d=e.current.getRow(n);if(Object.values(l[n]).some((e=>e.isProcessingProps)))return void(a.current[n].mode=Av.Edit);if(Object.values(l[n]).some((e=>e.error)))return a.current[n].mode=Av.Edit,void C(n,{mode:Av.Edit});const p=e.current.getRowWithUpdatedValuesFromRowEditing(n);if(c){const t=e=>{a.current[n].mode=Av.Edit,C(n,{mode:Av.Edit}),u?u(e):CA()};try{Promise.resolve(c(p,d)).then((t=>{e.current.updateRows([t]),s()})).catch(t)}catch(h){t(h)}}else e.current.updateRows([p]),s()})),O={setRowEditingEditCellValue:r.useCallback((t=>{const{id:n,field:r,value:i,debounceMs:o,unstable_skipValueParser:a}=t;f(n,r);const s=e.current.getColumn(r),l=e.current.getRow(n);let c=i;s.valueParser&&!a&&(c=s.valueParser(i,e.current.getCellParams(n,r)));let u=lj(e.current.state),d=up({},u[n][r],{value:c,changeReason:o?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||M(n,r,d),new Promise((t=>{const i=[];if(s.preProcessEditCellProps){const o=d.value!==u[n][r].value;d=up({},d,{isProcessingProps:!0}),M(n,r,d);const a=Iv(u[n],[r].map(CD)),p=Promise.resolve(s.preProcessEditCellProps({id:n,row:l,props:d,hasChanged:o,otherFieldsProps:a})).then((i=>{e.current.getRowMode(n)!==Av.View?(u=lj(e.current.state),(i=up({},i,{isProcessingProps:!1})).value=s.preProcessEditCellProps?u[n][r].value:c,M(n,r,i)):t(!1)}));i.push(p)}Object.entries(u[n]).forEach((o=>{let[a,s]=o;if(a===r)return;const c=e.current.getColumn(a);if(!c.preProcessEditCellProps)return;s=up({},s,{isProcessingProps:!0}),M(n,a,s),u=lj(e.current.state);const d=Iv(u[n],[a].map(CD)),p=Promise.resolve(c.preProcessEditCellProps({id:n,row:l,props:s,hasChanged:!1,otherFieldsProps:d})).then((r=>{e.current.getRowMode(n)!==Av.View?(r=up({},r,{isProcessingProps:!1}),M(n,a,r)):t(!1)}));i.push(p)})),Promise.all(i).then((()=>{e.current.getRowMode(n)===Av.Edit?(u=lj(e.current.state),t(!u[n][r].error)):t(!1)}))}))}),[e,f,M]),getRowWithUpdatedValuesFromRowEditing:r.useCallback((t=>{const n=lj(e.current.state),r=e.current.getRow(t);if(!n[t])return e.current.getRow(t);let i=up({},r);return Object.entries(n[t]).forEach((t=>{let[n,r]=t;const o=e.current.getColumn(n);o.valueSetter?i=o.valueSetter({value:r.value,row:i}):i[n]=r.value})),i}),[e])};Gv(e,{getRowMode:x,startRowEditMode:T,stopRowEditMode:P},"public"),Gv(e,O,"private"),r.useEffect((()=>{d&&k(d)}),[d,k]),Lp((()=>{const t=vy(e),r=a.current;a.current=QS(n),Object.entries(n).forEach((e=>{let[n,i]=e;var o,a;const s=(null==(o=r[n])?void 0:o.mode)||Av.View,l=null!=(a=t[n])?a:n;i.mode===Av.Edit&&s===Av.View?E(up({id:l},i)):i.mode===Av.View&&s===Av.Edit&&I(up({id:l},i))}))}),[e,n,E,I])})(e,t);const n=r.useRef({}),{isCellEditable:i}=t,o=r.useCallback((e=>!(wv(e.rowNode)||!e.colDef.editable||!e.colDef.renderEditCell)&&(!i||i(e))),[i]);r.useEffect((()=>{const e=n.current;return()=>{Object.entries(e).forEach((t=>{let[n,r]=t;Object.keys(r).forEach((t=>{const[r]=e[n][t];clearTimeout(r),delete e[n][t]}))}))}}),[]);const a=r.useCallback(((e,t)=>{if(n.current[e])if(t){if(n.current[e][t]){const[,r]=n.current[e][t];r()}}else Object.keys(n.current[e]).forEach((t=>{const[,r]=n.current[e][t];r()}))}),[]),s=r.useCallback((r=>{const{id:i,field:o,debounceMs:a}=r;return new Promise((s=>{((e,t,r,i)=>{if(!r)return void i();if(n.current[e]||(n.current[e]={}),n.current[e][t]){const[r]=n.current[e][t];clearTimeout(r)}const o=setTimeout((()=>{i(),delete n.current[e][t]}),r);n.current[e][t]=[o,()=>{const[r]=n.current[e][t];clearTimeout(r),i(),delete n.current[e][t]}]})(i,o,a,(async()=>{const n=t.editMode===jv.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(i,o)===Dv.Edit){const e=await n(r);s(e)}}))}))}),[e,t.editMode]),l=r.useCallback(((n,r)=>t.editMode===jv.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(n,r):e.current.getRowWithUpdatedValuesFromRowEditing(n)),[e,t.editMode]),c=r.useCallback(((t,n)=>{var r,i;return null!=(r=null==(i=lj(e.current.state)[t])?void 0:i[n])?r:null}),[e]),u={runPendingEditCellValueMutation:a};Gv(e,{isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},"public"),Gv(e,u,"private")},TA=(e,t,n)=>(n.current.caches.rows=vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),up({},e,{rows:_v({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),EA=(e,t)=>{const n=HS(e,"useGridRows"),i=IR(e,t),o=r.useRef(Date.now()),a=XE(),s=r.useCallback((t=>{const n=yy(e)[t];if(n)return n;const r=e.current.getRowNode(t);return r&&wv(r)?{[fv]:t}:null}),[e]),l=t.getRowId,c=r.useCallback((e=>fv in e?e[fv]:l?l(e):e.id),[l]),u=r.useMemo((()=>i.rows.reduce(((e,t,n)=>{let{id:r}=t;return e[r]=n,e}),{})),[i.rows]),d=r.useCallback((n=>{let{cache:r,throttle:i}=n;const s=()=>{o.current=Date.now(),e.current.setState((n=>up({},n,{rows:_v({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:by(e),previousTreeDepths:wy(e)})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.clear(),e.current.caches.rows=r,!i)return void s();const l=t.throttleRowsMs-(Date.now()-o.current);l>0?a.start(l,s):s()}),[t.throttleRowsMs,t.rowCount,t.loading,e,a]),p=r.useCallback((r=>{n.debug(`Updating all rows, new length ${r.length}`);const i=vv({rows:r,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),o=e.current.caches.rows;i.rowsBeforePartialUpdates=o.rowsBeforePartialUpdates,d({cache:i,throttle:!0})}),[n,t.getRowId,t.loading,t.rowCount,d,e]),h=r.useCallback((n=>{if(t.signature===zS.DataGrid&&n.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const r=[];n.forEach((n=>{const i=yv(n,t.getRowId,"A row was provided without id when calling updateRows():"),o=e.current.getRowNode(i);if("pinnedRow"===(null==o?void 0:o.type)){const t=e.current.caches.pinnedRows,r=t.idLookup[i];r&&(t.idLookup[i]=up({},r,n))}else r.push(n)}));const i=(e=>{let{previousCache:t,getRowId:n,updates:r}=e;var i,o,a;if("full"===t.updates.type)throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;r.forEach((e=>{const t=yv(e,n,"A row was provided without id when calling updateRows():");s.has(t)?s.set(t,up({},s.get(t),e)):s.set(t,e)}));const l={type:"partial",actions:{insert:[...null!=(i=t.updates.actions.insert)?i:[]],modify:[...null!=(o=t.updates.actions.modify)?o:[]],remove:[...null!=(a=t.updates.actions.remove)?a:[]]},idToActionLookup:up({},t.updates.idToActionLookup)},c=up({},t.dataRowIdToModelLookup),u=up({},t.dataRowIdToIdLookup),d={insert:{},modify:{},remove:{}};s.forEach(((e,t)=>{const n=l.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!c[t])return;return null!=n&&(d[n][t]=!0),l.actions.remove.push(t),delete c[t],void delete u[t]}const r=c[t];if(r)return"remove"===n?(d.remove[t]=!0,l.actions.modify.push(t)):null==n&&l.actions.modify.push(t),void(c[t]=up({},r,e));"remove"===n?(d.remove[t]=!0,l.actions.insert.push(t)):null==n&&l.actions.insert.push(t),c[t]=e,u[t]=t}));const p=Object.keys(d);for(let h=0;h<p.length;h+=1){const e=p[h],t=d[e];Object.keys(t).length>0&&(l.actions[e]=l.actions[e].filter((e=>!t[e])))}return{dataRowIdToModelLookup:c,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:t.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:t.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:t.rowCountPropBeforePartialUpdates}})({updates:r,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:i,throttle:!0})}),[t.signature,t.getRowId,d,e]),f=r.useCallback((()=>{const t=ky(e),n=yy(e);return new Map(t.map((e=>{var t;return[e,null!=(t=n[e])?t:{}]})))}),[e]),m=r.useCallback((()=>fy(e)),[e]),g=r.useCallback((()=>ky(e)),[e]),y=r.useCallback((e=>u[e]),[u]),v=r.useCallback(((t,n)=>{const r=e.current.getRowNode(t);if(!r)throw new Error(`MUI: No row with id #${t} found`);if("group"!==r.type)throw new Error("MUI: Only group nodes can be expanded or collapsed");const i=up({},r,{childrenExpanded:n});e.current.setState((e=>up({},e,{rows:up({},e.rows,{tree:up({},e.rows.tree,{[t]:i})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",i)}),[e]),b=r.useCallback((t=>{var n;return null!=(n=by(e)[t])?n:null}),[e]),_=r.useCallback((t=>{let{skipAutoGeneratedRows:n=!0,groupId:r,applySorting:i,applyFiltering:o}=t;const a=by(e);let s;if(i){const t=a[r];if(!t)return[];const i=Iy(e);s=[];const o=i.findIndex((e=>e===r))+1;for(let e=o;e<i.length&&a[i[e]].depth>t.depth;e+=1){const t=i[e];(!n||!wv(a[t]))&&s.push(t)}}else s=xv(a,r,n);if(o){const t=Fy(e);s=s.filter((e=>!1!==t[e]))}return s}),[e]),w=r.useCallback(((t,r)=>{const i=e.current.getRowNode(t);if(!i)throw new Error(`MUI: No row with id #${t} found`);if(i.parent!==hv)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if("leaf"!==i.type)throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState((i=>{const o=by(i,e.current.instanceId)[hv],a=o.children,s=a.findIndex((e=>e===t));if(-1===s||s===r)return i;n.debug(`Moving row ${t} to index ${r}`);const l=[...a];return l.splice(r,0,l.splice(s,1)[0]),up({},i,{rows:up({},i.rows,{tree:up({},i.rows.tree,{[hv]:up({},o,{children:l})})})})})),e.current.publishEvent("rowsSet")}),[e,n]),x=r.useCallback(((n,r)=>{if(t.signature===zS.DataGrid&&r.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===r.length)return;if(xy(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const i=up({},by(e)),o=up({},yy(e)),a=up({},vy(e)),s=i[hv],l=[...s.children];for(let e=0;e<r.length;e+=1){const s=r[e],c=yv(s,t.getRowId,"A row was provided without id when calling replaceRows()."),[u]=l.splice(n+e,1,c);delete o[u],delete a[u],delete i[u];const d={id:c,depth:0,parent:hv,type:"leaf",groupingKey:null};o[c]=s,a[c]=c,i[c]=d}i[hv]=up({},s,{children:l});const c=l.filter((e=>"leaf"===i[e].type));e.current.caches.rows.dataRowIdToModelLookup=o,e.current.caches.rows.dataRowIdToIdLookup=a,e.current.setState((e=>up({},e,{rows:up({},e.rows,{dataRowIdToModelLookup:o,dataRowIdToIdLookup:a,dataRowIds:c,tree:i})}))),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId]),k={getRow:s,getRowId:c,getRowModels:f,getRowsCount:m,getAllRowIds:g,setRows:p,updateRows:h,getRowNode:b,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:x},C={setRowIndex:w,setRowChildrenExpansion:v,getRowGroupChildren:_},S=r.useCallback((()=>{let r;n.info("Row grouping pre-processing have changed, regenerating the row tree"),r=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?up({},e.current.caches.rows,{updates:{type:"full",rows:ky(e)}}):vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:r,throttle:!1})}),[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),M=r.useCallback((e=>{"rowTreeCreation"===e&&S()}),[S]),T=r.useCallback((()=>{e.current.getActiveStrategy("rowTree")!==_y(e)&&S()}),[e,S]);VS(e,"activeStrategyProcessorChange",M),VS(e,"strategyAvailabilityChange",T);const E=r.useCallback((()=>{e.current.setState((n=>{const r=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:by(n,e.current.instanceId),treeDepths:wy(n,e.current.instanceId),dataRowIds:ky(n,e.current.instanceId),dataRowIdToModelLookup:yy(n,e.current.instanceId),dataRowIdToIdLookup:vy(n,e.current.instanceId)});return up({},n,{rows:up({},n.rows,r,{totalTopLevelRowCount:bv({tree:r.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e,t.rowCount]);MD(e,"hydrateRows",E),Gv(e,k,"public"),Gv(e,C,t.signature===zS.DataGrid?"private":"public");const P=r.useRef(!0);r.useEffect((()=>{if(P.current)return void(P.current=!1);const r=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,i=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,o=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(r)return i||(e.current.setState((e=>up({},e,{rows:up({},e.rows,{loading:t.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),void(o||(e.current.setState((e=>up({},e,{rows:up({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()));n.debug(`Updating all rows, new length ${t.rows.length}`),d({cache:vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})}),[t.rows,t.rowCount,t.getRowId,t.loading,n,d,e])},PA=e=>"full"===e.updates.type?(e=>{const t={[hv]:up({},mv(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:hv,type:"leaf",groupingKey:null}}return{groupingName:ED,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(e=>{let{previousTree:t,actions:n}=e;const r=up({},t),i={};for(let s=0;s<n.remove.length;s+=1){const e=n.remove[s];i[e]=!0,delete r[e]}for(let s=0;s<n.insert.length;s+=1){const e=n.insert[s];r[e]={id:e,depth:0,parent:hv,type:"leaf",groupingKey:null}}const o=r[hv];let a=[...o.children,...n.insert];return Object.values(i).length&&(a=a.filter((e=>!i[e]))),r[hv]=up({},o,{children:a}),{groupingName:ED,tree:r,treeDepths:{0:a.length},dataRowIds:a}})({previousTree:e.previousTree,actions:e.updates.actions}),IA=e=>{TD(e,ED,"rowTreeCreation",PA)},OA=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],LA=(e,t)=>{var n;return up({},e,{rowSelection:t.rowSelection&&null!=(n=OA(t.rowSelectionModel))?n:[]})},RA=(e,t)=>{const n=HS(e,"useGridSelection"),i=e=>function(){t.rowSelection&&e(...arguments)},o=r.useMemo((()=>OA(t.rowSelectionModel,gM(e.current.state))),[e,t.rowSelectionModel]),a=r.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:gM,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:l,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=!l||s,p=IR(e,t),h=r.useCallback((t=>{var n;let r=t;const i=null!=(n=a.current)?n:t,o=e.current.isRowSelected(t);if(o){const t=Uy(e),n=t.findIndex((e=>e===i)),o=t.findIndex((e=>e===r));if(n===o)return;r=n>o?t[o+1]:t[o-1]}a.current=t,e.current.selectRowRange({startId:i,endId:r},!o)}),[e]),f=r.useCallback((r=>{if(t.signature===zS.DataGrid&&!t.checkboxSelection&&Array.isArray(r)&&r.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));gM(e.current.state)!==r&&(n.debug("Setting selection model"),e.current.setState((e=>up({},e,{rowSelection:t.rowSelection?r:[]}))),e.current.forceUpdate())}),[e,n,t.rowSelection,t.signature,t.checkboxSelection]),m=r.useCallback((t=>gM(e.current.state).includes(t)),[e]),g=r.useCallback((t=>{if(u&&!u(e.current.getRowParams(t)))return!1;const n=e.current.getRowNode(t);return!("footer"===(null==n?void 0:n.type)||"pinnedRow"===(null==n?void 0:n.type))}),[e,u]),y=r.useCallback((()=>vM(e)),[e]),v=r.useCallback((function(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.current.isRowSelectable(t))if(a.current=t,i)n.debug(`Setting selection for row ${t}`),e.current.setRowSelectionModel(r?[t]:[]);else{n.debug(`Toggling selection for row ${t}`);const i=gM(e.current.state).filter((e=>e!==t));r&&i.push(t),(i.length<2||d)&&e.current.setRowSelectionModel(i)}}),[e,n,d]),b=r.useCallback((function(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.debug("Setting selection for several rows");const o=t.filter((t=>e.current.isRowSelectable(t)));let a;if(i)a=r?o:[];else{const t=up({},bM(e));o.forEach((e=>{r?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||d)&&e.current.setRowSelectionModel(a)}),[e,n,d]),_=r.useCallback((function(t){let{startId:r,endId:i}=t,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.current.getRow(r)||!e.current.getRow(i))return;n.debug(`Expanding selection from row ${r} to row ${i}`);const s=Uy(e),l=s.indexOf(r),c=s.indexOf(i),[u,d]=l>c?[c,l]:[l,c],p=s.slice(u,d+1);e.current.selectRows(p,o,a)}),[e,n]),w={selectRows:b,selectRowRange:_};Gv(e,{selectRow:v,setRowSelectionModel:f,getSelectedRows:y,isRowSelected:m,isRowSelectable:g},"public"),Gv(e,w,t.signature===zS.DataGrid?"private":"public");const x=r.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const n=gM(e.current.state),r=yy(e),i=up({},bM(e));let o=!1;n.forEach((e=>{r[e]||(delete i[e],o=!0)})),o&&e.current.setRowSelectionModel(Object.values(i))}),[e,t.keepNonExistentRowsSelected]),k=r.useCallback(((t,n)=>{const r=n.metaKey||n.ctrlKey,i=!s&&!r&&!(e=>!!e.key)(n),o=!d||i,a=e.current.isRowSelected(t);o?e.current.selectRow(t,!!i||!a,!0):e.current.selectRow(t,!a,!1)}),[e,d,s]),C=r.useCallback(((t,n)=>{var r;if(c)return;const i=null==(r=n.target.closest(`.${Fg.cell}`))?void 0:r.getAttribute("data-field");if(i!==ij.field&&i!==sj){if(i){const t=e.current.getColumn(i);if((null==t?void 0:t.type)===oj)return}"pinnedRow"!==e.current.getRowNode(t.id).type&&(n.shiftKey&&(d||s)?h(t.id):k(t.id,n))}}),[c,d,s,e,h,k]),S=r.useCallback(((e,t)=>{var n;d&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[d]),M=r.useCallback(((t,n)=>{n.nativeEvent.shiftKey?h(t.id):e.current.selectRow(t.id,t.value)}),[e,h]),T=r.useCallback((n=>{const r=t.checkboxSelectionVisibleOnly&&t.pagination?pM(e):Uy(e);e.current.selectRows(r,n.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),E=r.useCallback(((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==Dv.Edit&&!Hv(n)){if(Ax(n.key)&&n.shiftKey){const r=Ky(e);if(r&&r.id!==t.id){n.preventDefault();const i=e.current.isRowSelected(r.id);if(!d)return void e.current.selectRow(r.id,!i,!0);const o=e.current.getRowIndexRelativeToVisibleRows(r.id),a=e.current.getRowIndexRelativeToVisibleRows(t.id);let s,l;o>a?i?(s=a,l=o-1):(s=a,l=o):i?(s=o+1,l=a):(s=o,l=a);const c=p.rows.slice(s,l+1).map((e=>e.id));return void e.current.selectRows(c,!i)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void k(t.id,n);"a"===n.key&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),b(e.current.getAllRowIds(),!0))}}),[e,k,b,p.rows,d]);VS(e,"sortedRowsSet",i(x)),VS(e,"rowClick",i(C)),VS(e,"rowSelectionCheckboxChange",i(M)),VS(e,"headerSelectionCheckboxChange",T),VS(e,"cellMouseDown",i(S)),VS(e,"cellKeyDown",i(E)),r.useEffect((()=>{void 0!==o&&e.current.setRowSelectionModel(o)}),[e,o,t.rowSelection]),r.useEffect((()=>{t.rowSelection||e.current.setRowSelectionModel([])}),[e,t.rowSelection]);const P=null!=o;r.useEffect((()=>{if(P||!t.rowSelection)return;const n=gM(e.current.state);if(g){const t=n.filter((e=>g(e)));t.length<n.length&&e.current.setRowSelectionModel(t)}}),[e,g,P,t.rowSelection]),r.useEffect((()=>{if(!t.rowSelection||P)return;const n=gM(e.current.state);!d&&n.length>1&&e.current.setRowSelectionModel([])}),[e,d,s,P,t.rowSelection])},jA=(e,t)=>{const n=(e=>{const{classes:t}=e;return r.useMemo((()=>Bp({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ng,t)),[t])})({classes:t.classes}),i=r.useCallback((r=>{const i=up({},ij,{cellClassName:n.cellCheckbox,headerClassName:n.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),o=t.checkboxSelection,a=null!=r.lookup[rj];return o&&!a?(r.lookup[rj]=i,r.orderedFields=[rj,...r.orderedFields]):!o&&a?(delete r.lookup[rj],r.orderedFields=r.orderedFields.filter((e=>e!==rj))):o&&a&&(r.lookup[rj]=up({},i,r.lookup[rj])),r}),[e,n,t.checkboxSelection]);SD(e,"hydrateColumns",i)},DA=(e,t)=>{var n,r,i;const o=null!=(n=null!=(r=t.sortModel)?r:null==(i=t.initialState)||null==(i=i.sorting)?void 0:i.sortModel)?n:[];return up({},e,{sorting:{sortModel:wM(o,t.disableMultipleColumnsSorting),sortedRows:[]}})},AA=(e,t)=>{var n;const i=HS(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Ly,changeEvent:"sortModelChange"});const o=r.useCallback(((t,n)=>{const r=Ly(e),i=r.findIndex((e=>e.field===t));let o=[...r];return i>-1?n?o.splice(i,1,n):o.splice(i,1):o=[...r,n],o}),[e]),a=r.useCallback(((n,r)=>{var i;const o=Ly(e).find((e=>e.field===n.field));if(o){var a;const e=void 0===r?kM(null!=(a=n.sortingOrder)?a:t.sortingOrder,o.sort):r;return null==e?void 0:up({},o,{sort:e})}return{field:n.field,sort:void 0===r?kM(null!=(i=n.sortingOrder)?i:t.sortingOrder):r}}),[e,t.sortingOrder]),s=r.useCallback(((e,n)=>null==n||!1===n.sortable?e:(n.sortingOrder||t.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[t.sortingOrder]),l=r.useCallback((()=>{e.current.setState((n=>{if("server"===t.sortingMode)return i.debug("Skipping sorting rows as sortingMode = server"),up({},n,{sorting:up({},n.sorting,{sortedRows:xv(by(e),hv,!1)})});const r=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=(e=>"desc"===e)(e.sort)?function(){return-1*n.sortComparator(...arguments)}:n.sortComparator;return{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:r}})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>((e,t,n)=>e.reduce(((e,r,i)=>{if(0!==e)return e;const o=t.params[i],a=n.params[i];return r.comparator(o.value,a.value,o,a)}),0))(n,e,t))).map((e=>e.node.id))})(Ly(n,e.current.instanceId),e),o=e.current.applyStrategyProcessor("sorting",{sortRowList:r});return up({},n,{sorting:up({},n.sorting,{sortedRows:o})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,i,t.sortingMode]),c=r.useCallback((n=>{Ly(e)!==n&&(i.debug("Setting sort model"),e.current.setState(xM(n,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,i,t.disableMultipleColumnsSorting]),u=r.useCallback(((n,r,i)=>{if(!n.sortable)return;const s=a(n,r);let l;l=!i||t.disableMultipleColumnsSorting?s?[s]:[]:o(n.field,s),e.current.setSortModel(l)}),[e,o,a,t.disableMultipleColumnsSorting]),d=r.useCallback((()=>Ly(e)),[e]),p=r.useCallback((()=>Oy(e).map((e=>e.model))),[e]),h=r.useCallback((()=>Iy(e)),[e]),f=r.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);Gv(e,{getSortModel:d,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:f,setSortModel:c,sortColumn:u,applySorting:l},"public");const m=r.useCallback(((n,r)=>{var i;const o=Ly(e);return!r.exportOnlyDirtyModels||null!=t.sortModel||null!=(null==(i=t.initialState)||null==(i=i.sorting)?void 0:i.sortModel)||o.length>0?up({},n,{sorting:{sortModel:o}}):n}),[e,t.sortModel,null==(n=t.initialState)||null==(n=n.sorting)?void 0:n.sortModel]),g=r.useCallback(((n,r)=>{var i;const o=null==(i=r.stateToRestore.sorting)?void 0:i.sortModel;return null==o?n:(e.current.setState(xM(o,t.disableMultipleColumnsSorting)),up({},n,{callbacks:[...n.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),y=r.useCallback((t=>{const n=by(e),r=n[hv],i=t.sortRowList?t.sortRowList(r.children.map((e=>n[e]))):[...r.children];return null!=r.footerId&&i.push(r.footerId),i}),[e]);SD(e,"exportState",m),SD(e,"restoreState",g),TD(e,ED,"sorting",y);const v=r.useCallback(((e,t)=>{let{colDef:n}=e;const r=t.shiftKey||t.metaKey||t.ctrlKey;u(n,void 0,r)}),[u]),b=r.useCallback(((e,t)=>{let{colDef:n}=e;(e=>"Enter"===e)(t.key)&&!t.ctrlKey&&!t.metaKey&&u(n,void 0,t.shiftKey)}),[u]),_=r.useCallback((()=>{const t=Ly(e),n=Qg(e);if(t.length>0){const r=t.filter((e=>n[e.field]));r.length<t.length&&e.current.setSortModel(r)}}),[e]),w=r.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);SD(e,"columnMenu",s),VS(e,"columnHeaderClick",v),VS(e,"columnHeaderKeyDown",b),VS(e,"rowsSet",e.current.applySorting),VS(e,"columnsChange",_),VS(e,"activeStrategyProcessorChange",w),tM((()=>{e.current.applySorting()})),Lp((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])};function NA(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:i}=e,o=i+r;return r>t?i:o-t>n?o-t:i<n?i:void 0}const FA=(e,t)=>{const n=xx(),i=HS(e,"useGridScroll"),o=e.current.columnHeadersElementRef,a=e.current.virtualScrollerRef,s=Yf(e,By),l=r.useCallback((n=>{const r=fy(e),o=ny(e);if(null!=n.rowIndex&&0===r||0===o.length)return!1;i.debug(`Scrolling to cell at row ${n.rowIndex}, col: ${n.colIndex} `);let l={};if(null!=n.colIndex){const t=iy(e);let r;if(typeof n.rowIndex<"u"){var c;const t=null==(c=s[n.rowIndex])?void 0:c.id,i=e.current.unstable_getCellColSpanInfo(t,n.colIndex);i&&!i.spannedByColSpan&&(r=i.cellProps.width)}typeof r>"u"&&(r=o[n.colIndex].computedWidth),l.left=NA({clientHeight:a.current.clientWidth,scrollTop:Math.abs(a.current.scrollLeft),offsetHeight:r,offsetTop:t[n.colIndex]})}if(null!=n.rowIndex){var u,d;const r=mM(e.current.state),i=sM(e),o=lM(e),s=t.pagination?n.rowIndex-i*o:n.rowIndex,c=r.positions[s+1]?r.positions[s+1]-r.positions[s]:r.currentPageTotalHeight-r.positions[s],p=(null==(u=a.current.querySelector(`.${Fg["pinnedRows--top"]}`))?void 0:u.clientHeight)||0,h=(null==(d=a.current.querySelector(`.${Fg["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;l.top=NA({clientHeight:a.current.clientHeight-p-h,scrollTop:a.current.scrollTop,offsetHeight:c,offsetTop:r.positions[s]})}return l=e.current.unstable_applyPipeProcessors("scrollToIndexes",l,n),(void 0!==typeof l.left||void 0!==typeof l.top)&&(e.current.scroll(l),!0)}),[i,e,a,t.pagination,s]),c=r.useCallback((e=>{if(a.current&&null!=e.left&&o.current){const t="rtl"===n.direction?-1:1;o.current.scrollLeft=e.left,a.current.scrollLeft=t*e.left,i.debug(`Scrolling left: ${e.left}`)}a.current&&null!=e.top&&(a.current.scrollTop=e.top,i.debug(`Scrolling top: ${e.top}`)),i.debug("Scrolling, updating container, and viewport")}),[a,n.direction,o,i]),u=r.useCallback((()=>null!=a&&a.current?{top:a.current.scrollTop,left:a.current.scrollLeft}:{top:0,left:0}),[a]);Gv(e,{scroll:c,scrollToIndexes:l,getScrollPosition:u},"public")};function zA(e,t){ZS(e,"columnHeaderClick",t.onColumnHeaderClick),ZS(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),ZS(e,"columnHeaderOver",t.onColumnHeaderOver),ZS(e,"columnHeaderOut",t.onColumnHeaderOut),ZS(e,"columnHeaderEnter",t.onColumnHeaderEnter),ZS(e,"columnHeaderLeave",t.onColumnHeaderLeave),ZS(e,"cellClick",t.onCellClick),ZS(e,"cellDoubleClick",t.onCellDoubleClick),ZS(e,"cellKeyDown",t.onCellKeyDown),ZS(e,"preferencePanelClose",t.onPreferencePanelClose),ZS(e,"preferencePanelOpen",t.onPreferencePanelOpen),ZS(e,"menuOpen",t.onMenuOpen),ZS(e,"menuClose",t.onMenuClose),ZS(e,"rowDoubleClick",t.onRowDoubleClick),ZS(e,"rowClick",t.onRowClick),ZS(e,"stateChange",t.onStateChange)}function BA(e,t){const n=HS(e,"useResizeContainer"),i=r.useRef(!1),o=r.useRef(null),a=r.useRef(null),s=Yf(e,mM),l=Yf(e,sv),c=Math.floor(t.rowHeight*l),u=GD(e,t.columnHeaderHeight),d=r.useCallback((()=>{var n;const r=null==(n=e.current.rootElementRef)?void 0:n.current,i=oy(e),l=kv(e);if(!o.current)return;let c,d,p,h;if(null!=t.scrollbarSize)c=t.scrollbarSize;else if(i&&r){const e=Pp(r).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",r.appendChild(e),c=e.offsetWidth-e.clientWidth,r.removeChild(e)}else c=0;if(t.autoHeight)h=!1,p=Math.round(i)>Math.round(o.current.width),d={width:o.current.width,height:s.currentPageTotalHeight+(p?c:0)};else{d={width:o.current.width,height:Math.max(o.current.height-u,0)};const e=(e=>{let{content:t,container:n,scrollBarSize:r}=e;const i=t.width>n.width,o=t.height>n.height;let a=!1,s=!1;return(i||o)&&(a=i,s=t.height+(a?r:0)>n.height,s&&(a=t.width+r>n.width)),{hasScrollX:a,hasScrollY:s}})({content:{width:Math.round(i),height:s.currentPageTotalHeight},container:{width:Math.round(d.width),height:d.height-l.top-l.bottom},scrollBarSize:c});h=e.hasScrollY,p=e.hasScrollX}const f={viewportOuterSize:d,viewportInnerSize:{width:d.width-(h?c:0),height:d.height-(p?c:0)},hasScrollX:p,hasScrollY:h,scrollBarSize:c},m=a.current;a.current=f,(f.viewportInnerSize.width!==(null==m?void 0:m.viewportInnerSize.width)||f.viewportInnerSize.height!==(null==m?void 0:m.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",f.viewportInnerSize)}),[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,u]),[p,h]=r.useState(),f=r.useMemo((()=>Ep(h,60)),[]),m=r.useRef();Lp((()=>{p&&(d(),e.current.publishEvent("debouncedResize",o.current))}),[e,p,d]);const g=r.useCallback((()=>{e.current.computeSizeAndPublishResizeEvent()}),[e]),y=r.useCallback((()=>a.current),[]),v=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!n)return 0;const r=PR(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=e.current.getRenderContext(),n=t.lastRowIndex-t.firstRowIndex;return Math.min(n-1,r.rows.length)}const i=Math.floor(n.viewportInnerSize.height/c);return Math.min(i,r.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight,c]),b=r.useCallback((()=>{var t,n,r;const i=null==(t=e.current.mainElementRef)?void 0:t.current;if(!i)return;const o=Ip(i).getComputedStyle(i),a=parseFloat(o.height)||0,s=parseFloat(o.width)||0,l=a!==(null==(n=m.current)?void 0:n.height),c=s!==(null==(r=m.current)?void 0:r.width);if(!m.current||l||c){const t={width:s,height:a};e.current.publishEvent("resize",t),m.current=t}}),[e]),_={getViewportPageSize:v,updateGridDimensionsRef:d,computeSizeAndPublishResizeEvent:b};Gv(e,{resize:g,getRootDimensions:y},"public"),Gv(e,_,"private");const w=r.useRef(!0),x=r.useCallback((e=>{o.current=e;const r=/jsdom/.test(window.navigator.userAgent);if(0===e.height&&!i.current&&!t.autoHeight&&!r&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),0===e.width&&!i.current&&!r&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),w.current)return h(e),void(w.current=!1);f(e)}),[t.autoHeight,f,n]);Lp((()=>d()),[d]),ZS(e,"sortedRowsSet",d),ZS(e,"paginationModelChange",d),ZS(e,"columnsChange",d),VS(e,"resize",x),ZS(e,"debouncedResize",t.onResize)}const UA=["style"],$A=["style"];function VA(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(n>=r)return n;const i=n+Math.floor((r-n)/2);return e<=t[i]?VA(e,t,n,i):VA(e,t,i+1,r)}const qA=e=>{let{firstIndex:t,lastIndex:n,buffer:r,minFirstIndex:i,maxLastIndex:o}=e;return[KS(t-r,i,o),KS(n+r,i,o)]},ZA=(e,t)=>e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,HA={maxSize:3},GA=e=>{var t,n;const i=Nf(),o=Bg(),s=Yf(i,ny),l=Yf(i,DM),c=Yf(i,AM),{ref:u,onRenderZonePositioning:d,renderZoneMinColumnIndex:p=0,renderZoneMaxColumnIndex:h=s.length,getRowProps:f}=e,m=xx(),g=Yf(i,iy),y=Yf(i,oy),v=Yf(i,Ky),b=Yf(i,tv),_=Yf(i,mM),w=Yf(i,bM),x=IR(i,o),k=r.useRef(null),C=r.useRef(null),S=Fp(u,C),[M,T]=r.useState(null),E=r.useRef(M),P=r.useRef({top:0,left:0}),[I,O]=r.useState({width:null,height:null}),L=r.useRef(y),[R,j]=r.useState(null),D=r.useRef(Object.create(null)),A=r.useRef(),N=r.useRef(),F=r.useRef(Vg(((e,t,n,r,i,o)=>{let a;return o>-1&&(t>o&&o>=r||n<o&&o<i)&&(a=o),{focusedCellColumnIndexNotInRange:a,renderedColumns:e.slice(t,n)}}),HA)),z=r.useMemo((()=>null!==v?s.findIndex((e=>e.field===v.field)):-1),[v,s]),B=r.useCallback((e=>{var t,n;const r=i.current.getLastMeasuredRowIndex();let o=r===1/0;null!=(t=x.range)&&t.lastRowIndex&&!o&&(o=r>=x.range.lastRowIndex);const a=KS(r-((null==(n=x.range)?void 0:n.firstRowIndex)||0),0,_.positions.length);return o||_.positions[a]>=e?VA(e,_.positions):function(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return VA(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,_.positions,a)}),[i,null==(t=x.range)?void 0:t.firstRowIndex,null==(n=x.range)?void 0:n.lastRowIndex,_.positions]),U=r.useCallback((()=>{if(!l)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:e,left:t}=P.current,n=Math.min(B(e),_.positions.length-1),r=o.autoHeight?n+x.rows.length:B(e+I.height);let a=0,u=g.length;if(c){let e=!1;const[s,l]=qA({firstIndex:n,lastIndex:r,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});for(let t=s;t<l&&!e;t+=1){const n=x.rows[t];e=i.current.rowHasAutoHeight(n.id)}e||(a=VA(Math.abs(t),g),u=VA(Math.abs(t)+I.width,g))}return{firstRowIndex:n,lastRowIndex:r,firstColumnIndex:a,lastColumnIndex:u}}),[l,c,B,_.positions.length,o.autoHeight,o.rowBuffer,x.rows,g,s.length,i,I]);Lp((()=>{l?(C.current.scrollLeft=0,C.current.scrollTop=0):k.current.style.transform="translate3d(0px, 0px, 0px)"}),[l]),Lp((()=>{O({width:C.current.clientWidth,height:C.current.clientHeight})}),[_.currentPageTotalHeight]);const $=r.useCallback((()=>{C.current&&O({width:C.current.clientWidth,height:C.current.clientHeight})}),[]);VS(i,"debouncedResize",$);const V=r.useCallback((e=>{const[t,n]=qA({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer}),[r]=qA({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:p,maxLastIndex:h,buffer:o.columnBuffer}),a=ZD({firstColumnToRender:r,apiRef:i,firstRowToRender:t,lastRowToRender:n,visibleRows:x.rows}),s="ltr"===m.direction?1:-1,l=mM(i.current.state).positions[t],c=s*iy(i)[a];k.current.style.transform=`translate3d(${c}px, ${l}px, 0px)`,"function"==typeof d&&d({top:l,left:c})}),[i,x.rows,d,p,h,o.columnBuffer,o.rowBuffer,m.direction]),q=r.useCallback((()=>E.current),[]),Z=r.useCallback((e=>{if(E.current&&ZA(e,E.current))return void V(e);T(e),V(e);const[t,n]=qA({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});i.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:t,lastRowToRender:n}),E.current=e}),[i,T,E,x.rows.length,o.rowBuffer,V]);Lp((()=>{if(null==I.width)return;const e=U();Z(e);const{top:t,left:n}=P.current,r={top:t,left:n,renderContext:e};i.current.publishEvent("scrollPositionChange",r)}),[i,U,I.width,Z]);const H=Np((e=>{const{scrollTop:t,scrollLeft:n}=e.currentTarget;if(P.current.top=t,P.current.left=n,!E.current||t<0||"ltr"===m.direction&&n<0||"rtl"===m.direction&&n>0)return;const r=l?U():E.current,s=Math.abs(r.firstRowIndex-E.current.firstRowIndex),c=Math.abs(r.lastRowIndex-E.current.lastRowIndex),u=Math.abs(r.firstColumnIndex-E.current.firstColumnIndex),d=Math.abs(r.lastColumnIndex-E.current.lastColumnIndex),p=s>=o.rowThreshold||c>=o.rowThreshold||u>=o.columnThreshold||d>=o.columnThreshold||L.current!==y;i.current.publishEvent("scrollPositionChange",{top:t,left:n,renderContext:p?r:E.current},e),p&&(a.flushSync((()=>{Z(r)})),L.current=y)})),G=Np((e=>{i.current.publishEvent("virtualScrollerWheel",{},e)})),W=Np((e=>{i.current.publishEvent("virtualScrollerTouchMove",{},e)})),Y=r.useMemo((()=>null!==v?x.rows.findIndex((e=>e.id===v.id)):-1),[v,x.rows]);VS(i,"rowMouseOver",((e,t)=>{var n;t.currentTarget.contains(t.relatedTarget)||j(null!=(n=e.id)?n:null)})),VS(i,"rowMouseOut",((e,t)=>{t.currentTarget.contains(t.relatedTarget)||j(null)}));const K=I.width&&y>=I.width,X=r.useMemo((()=>{const e=Math.max(_.currentPageTotalHeight,1);let t=!1;null!=C&&C.current&&e<=(null==C?void 0:C.current.clientHeight)&&(t=!0);const n={width:K?y:"auto",height:e,minHeight:t?"100%":"auto"};return o.autoHeight&&0===x.rows.length&&(n.height=Cv(i,o.rowHeight)),n}),[i,C,y,_.currentPageTotalHeight,K,o.autoHeight,o.rowHeight,x.rows.length]);r.useEffect((()=>{i.current.publishEvent("virtualScrollerContentSizeChange")}),[i,X]);const J=r.useMemo((()=>{const e={};return K||(e.overflowX="hidden"),o.autoHeight&&(e.overflowY="hidden"),e}),[K,o.autoHeight]);return i.current.register("private",{getRenderContext:q}),{renderContext:M,updateRenderZonePosition:V,getRows:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:M};var t;const{onRowRender:n,renderContext:r,minFirstColumn:a=p,maxLastColumn:c=h,availableSpace:u=I.width,rowIndexOffset:d=0,position:m="center"}=e;if(!r||null==u)return null;const g=l?o.rowBuffer:0,y=l?o.columnBuffer:0,[_,k]=qA({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:g}),C=[];if(e.rows)e.rows.forEach((e=>{C.push(e),i.current.calculateColSpan({rowId:e.id,minFirstColumn:a,maxLastColumn:c,columns:s})}));else{if(!x.range)return null;for(let e=_;e<k;e+=1){const t=x.rows[e];C.push(t),i.current.calculateColSpan({rowId:t.id,minFirstColumn:a,maxLastColumn:c,columns:s})}}let S=!1;if(Y>-1){const e=x.rows[Y];(_>Y||k<Y)&&(S=!0,Y>_?C.push(e):C.unshift(e),i.current.calculateColSpan({rowId:e.id,minFirstColumn:a,maxLastColumn:c,columns:s}))}const[T,E]=qA({firstIndex:r.firstColumnIndex,lastIndex:r.lastColumnIndex,minFirstIndex:a,maxLastIndex:c,buffer:y}),P=ZD({firstColumnToRender:T,apiRef:i,firstRowToRender:_,lastRowToRender:k,visibleRows:x.rows});let O=!1;(P>z||E<z)&&(O=!0);const{focusedCellColumnIndexNotInRange:L,renderedColumns:j}=F.current(s,P,E,a,c,O?z:-1),B=(null==(t=o.slotProps)?void 0:t.row)||{},{style:U}=B,$=Iv(B,UA);(A.current!==f||N.current!==U)&&(D.current=Object.create(null));const V=[];let q=!1;for(let l=0;l<C.length;l+=1){var Z;const{id:e,model:t}=C[l],r=S&&v.id===e,a=S?_+l===x.rows.length:_+l===x.rows.length-1,c=i.current.rowHasAutoHeight(e)?"auto":i.current.unstable_getRowHeight(e);let p;p=null!=w[e]&&i.current.isRowSelectable(e),n&&n(e);const h=null!==v&&v.id===e?v.field:null,g=void 0!==L&&s[L],y=g&&h?[g,...j]:j;let k=null;null!==b&&b.id===e&&(k="view"===i.current.getCellParams(e,b.field).cellMode?b.field:null);const M="function"==typeof f&&f(e,t)||{},{style:T}=M,I=Iv(M,$A);if(!D.current[e]){const t=up({},T,U);D.current[e]=t}let O=d+((null==x||null==(Z=x.range)?void 0:Z.firstRowIndex)||0)+_+l;S&&(null==v?void 0:v.id)===e?(O=Y,q=!0):q&&(O-=1),V.push(ih(o.slots.row,up({row:t,rowId:e,focusedCellColumnIndexNotInRange:L,isNotVisible:r,rowHeight:c,focusedCell:h,tabbableCell:k,renderedColumns:y,visibleColumns:s,firstColumnToRender:P,lastColumnToRender:E,selected:p,index:O,containerWidth:u,isLastVisible:a,position:m},I,$,{hovered:R===e,style:D.current[e]}),e))}return A.current=f,N.current=U,V},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return up({ref:S,onScroll:H,onWheel:G,onTouchMove:W},e,{style:e.style?up({},e.style,J):J,role:"presentation"})},getContentProps:function(){let{style:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{style:e?up({},e,X):X,role:"presentation"}},getRenderZoneProps:()=>({ref:k,role:"rowgroup"})}};function WA(e){var t;const{groupId:n,width:i,depth:o,maxDepth:a,fields:s,height:l,colIndex:c,hasFocus:u,tabIndex:d,isLastColumn:p}=e,h=Bg(),f=r.useRef(null),m=pv(),g=Yf(m,uy),y=n?g[n]:{},{headerName:v=(null!=n?n:""),description:b="",headerAlign:_}=y;let w;const x=n&&(null==(t=g[n])?void 0:t.renderHeaderGroup),k=r.useMemo((()=>({groupId:n,headerName:v,description:b,depth:o,maxDepth:a,fields:s,colIndex:c,isLastColumn:p})),[n,v,b,o,a,s,c,p]);n&&x&&(w=x(k));const C=h.showColumnVerticalBorder,S=up({},e,{classes:h.classes,showColumnBorder:C,headerAlign:_,depth:o,isDragging:!1}),M=null!=v?v:n,T=Dp(),E=null===n?`empty-group-cell-${T}`:n,P=(e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:i,groupId:o}=e;return Bp({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--showColumnBorder",i&&"columnHeader--withRightBorder","withBorderColor",null===o?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ng,t)})(S);r.useLayoutEffect((()=>{if(u){const e=f.current.querySelector('[tabindex="0"]')||f.current;null==e||e.focus()}}),[m,u]);const I=r.useCallback((e=>t=>{Hv(t)||m.current.publishEvent(e,k,t)}),[m,k]),O=r.useMemo((()=>({onKeyDown:I("columnGroupHeaderKeyDown"),onFocus:I("columnGroupHeaderFocus"),onBlur:I("columnGroupHeaderBlur")})),[I]),L="function"==typeof y.headerClassName?y.headerClassName(k):y.headerClassName;return ih(jS,up({ref:f,classes:P,columnMenuOpen:!1,colIndex:c,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:w,headerClassName:L,description:b,elementId:E,width:i,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:M,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},O))}const YA=sx("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"})));const KA=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:i,sortColumnLookup:o,filterColumnLookup:s,columnPositions:l,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:v}=e,b=xx(),[_,w]=r.useState(""),[x,k]=r.useState(""),C=Nf(),S=Yf(C,AM),M=Bg(),T=r.useRef(null),E=Fp(t,T),[P,I]=r.useState(null),O=r.useRef(P),L=r.useRef(0),R=IR(C,M),j=GD(C,M.columnHeaderHeight),D=Math.floor(M.columnHeaderHeight*h),A=r.useCallback((e=>{P&&e&&ZA(P,e)||I(e)}),[P]);r.useEffect((()=>{C.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[C]);const N=r.useRef(Vg(HD,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),F=r.useCallback((e=>{const[t,r]=qA({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:M.rowBuffer}),i=N.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:n,columnBuffer:M.columnBuffer,firstRowToRender:t,lastRowToRender:r,apiRef:C,visibleRows:R.rows}),o="ltr"===b.direction?1:-1,a=i>0?L.current-o*l[i]:L.current;T.current.style.transform=`translate3d(${-a}px, 0px, 0px)`}),[l,n,M.columnBuffer,C,R.rows,M.rowBuffer,b.direction]);r.useLayoutEffect((()=>{P&&F(P)}),[P,F]);const z=r.useCallback(((e,t)=>{let{left:n,renderContext:r=null}=e;var i,o;if(!T.current||L.current===n&&(null==(i=O.current)?void 0:i.firstColumnIndex)===(null==r?void 0:r.firstColumnIndex)&&(null==(o=O.current)?void 0:o.lastColumnIndex)===(null==r?void 0:r.lastColumnIndex))return;L.current=n;let s=!1;r===O.current&&O.current?s=!0:(function(e){return!!e.target}(t)?(a.flushSync((()=>{A(r)})),s=!0):A(r),O.current=r),r&&s&&F(r)}),[F,A]),B=r.useCallback((e=>k(e.field)),[]),U=r.useCallback((()=>k("")),[]),$=r.useCallback((e=>w(e.field)),[]),V=r.useCallback((()=>w("")),[]);VS(C,"columnResizeStart",B),VS(C,"columnResizeStop",U),VS(C,"columnHeaderDragStart",$),VS(C,"columnHeaderDragEnd",V),VS(C,"scrollPositionChange",z);const q=e=>{const{renderContext:t=P,minFirstColumn:r=n,maxLastColumn:o=i.length}=e||{};if(!t)return null;const[a,s]=qA({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:M.rowBuffer}),l=S?N.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:r,columnBuffer:M.columnBuffer,apiRef:C,firstRowToRender:a,lastRowToRender:s,visibleRows:R.rows}):0,c=S?Math.min(t.lastColumnIndex+M.columnBuffer,o):o;return{renderedColumns:i.slice(l,c),firstColumnToRender:l,lastColumnToRender:c,minFirstColumn:r,maxLastColumn:o}},Z={minHeight:j,maxHeight:j,lineHeight:`${D}px`};return{renderContext:P,getColumnHeaders:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=q(e);if(null==n)return null;const{renderedColumns:r,firstColumnToRender:i}=n,a=[];for(let l=0;l<r.length;l+=1){const e=r[l],n=i+l,u=0===n,p=null!==c&&c.field===e.field||u&&!v?0:-1,h=null!==d&&d.field===e.field,f=m.open&&m.field===e.field;a.push(ih(DS,up({},o[e.field],{columnMenuOpen:f,filterItemsCounter:s[e.field]&&s[e.field].length,headerHeight:D,isDragging:e.field===_,colDef:e,colIndex:n,isResizing:x===e.field,hasFocus:h,tabIndex:p},t),e.field))}return ih(YA,{role:"row","aria-rowindex":f+1,ownerState:M,children:a})},getColumnsToRender:q,getColumnGroupHeaders:e=>{if(0===f)return null;const t=q(e);if(null==t||0===t.renderedColumns.length)return null;const{firstColumnToRender:n,lastColumnToRender:r}=t,o=[],a=[];for(let c=0;c<f;c+=1){var s,l;const e=y[c],t=i[n].field,o=null!=(s=C.current.unstable_getColumnGroupPath(t)[c])?s:null,d=e.findIndex((e=>{let{groupId:n,columnFields:r}=e;return n===o&&r.includes(t)})),h=i[r-1].field,f=null!=(l=C.current.unstable_getColumnGroupPath(h)[c])?l:null,m=e.findIndex((e=>{let{groupId:t,columnFields:n}=e;return t===f&&n.includes(h)})),v=e.slice(d,m+1).map((e=>up({},e,{columnFields:e.columnFields.filter((e=>!1!==g[e]))}))).filter((e=>e.columnFields.length>0)),b=v[0].columnFields.indexOf(t),_=v[0].columnFields.slice(0,b).reduce(((e,t)=>{var n;return e+(null!=(n=C.current.getColumn(t).computedWidth)?n:0)}),0);let w=n;const x=v.map((e=>{let{groupId:t,columnFields:n}=e;const r=null!==p&&p.depth===c&&n.includes(p.field),i=null!==u&&u.depth===c&&n.includes(u.field)?0:-1,o={groupId:t,width:n.reduce(((e,t)=>e+C.current.getColumn(t).computedWidth),0),fields:n,colIndex:w,hasFocus:r,tabIndex:i};return w+=n.length,o}));a.push({leftOverflow:_,elements:x})}return a.forEach(((e,t)=>{o.push(ih(YA,{style:{height:`${D}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:M,children:e.elements.map(((e,n)=>{let{groupId:r,width:o,fields:s,colIndex:l,hasFocus:c,tabIndex:u}=e;return ih(WA,{groupId:r,width:o,fields:s,colIndex:l,depth:t,isLastColumn:l===i.length-s.length,maxDepth:a.length,height:D,hasFocus:c,tabIndex:u},n)}))},t))})),o},isDragging:!!_,getRootProps:function(){return up({style:Z},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:D}},XA=["className"],JA=_g("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),QA=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,XA),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["columnHeaders","withBorderColor"]},Ng,t)})(i);return ih(JA,up({ref:t,className:ug(n,o.root),ownerState:i},r,{role:"presentation"}))})),eN=["isDragging","className"],tN=_g("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Fg.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Fg.columnHeaderDropZone} .${Fg.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Fg["columnHeadersInner--scrollable"]} .${Fg.columnHeader}:last-child`]:{borderRight:"none"}}))),nN=r.forwardRef((function(e,t){var n,r;const{isDragging:i,className:o}=e,a=Iv(e,eN),s=pv(),l=up({},Bg(),{isDragging:i,hasScrollX:null!=(n=null==(r=s.current.getRootDimensions())?void 0:r.hasScrollX)&&n}),c=(e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Bp({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ng,r)})(l);return ih(tN,up({ref:t,className:ug(o,c.root),ownerState:l},a))})),rN=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],iN=Ov(r.forwardRef((function(e,t){const{innerRef:n,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,densityFactor:d,headerGroupingMaxDepth:p,columnMenuState:h,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,y=Iv(e,rN),{isDragging:v,getRootProps:b,getInnerProps:_,getColumnHeaders:w,getColumnGroupHeaders:x}=KA({innerRef:n,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,densityFactor:d,headerGroupingMaxDepth:p,columnMenuState:h,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g});return ih(QA,up({ref:t},b(y),{children:oh(nN,up({isDragging:v},_(),{children:[x(),w()]}))}))}))),oN=r.forwardRef((function(e,t){const n=pv().current.getLocaleText("noResultsOverlayLabel");return ih(sS,up({ref:t},e,{children:n}))})),aN=WM(ih("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"),sN=WM(ih("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"),lN=WM(ih("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");function cN(e){return rf("MuiCheckbox",e)}const uN=of("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),dN=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],pN=sx(GT,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${xh(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${uN.checked}, &.${uN.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${uN.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),hN=ih(sN,{}),fN=ih(aN,{}),mN=ih(lN,{}),gN=r.forwardRef((function(e,t){var n,i;const o=lx({props:e,name:"MuiCheckbox"}),{checkedIcon:a=hN,color:s="primary",icon:l=fN,indeterminate:c=!1,indeterminateIcon:u=mN,inputProps:d,size:p="medium",className:h}=o,f=fb(o,dN),m=c?u:l,g=c?u:a,y=mb({},o,{color:s,indeterminate:c,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return mb({},t,Bp({root:["root",n&&"indeterminate",`color${xh(r)}`]},cN,t))})(y);return ih(pN,mb({type:"checkbox",inputProps:mb({"data-indeterminate":c},d),icon:r.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:r.cloneElement(g,{fontSize:null!=(i=g.props.fontSize)?i:p}),ownerState:y,ref:t,className:yb(v.root,h)},f,{classes:v}))}));function yN(e){return rf("MuiButton",e)}const vN=of("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),bN=r.createContext({}),_N=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],wN=e=>mb({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),xN=sx(lC,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xh(n.color)}`],t[`size${xh(n.size)}`],t[`${n.variant}Size${xh(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;return mb({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":mb({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mg(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":mb({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${vN.focusVisible}`]:mb({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${vN.disabled}`]:mb({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${Mg(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vN.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vN.disabled}`]:{boxShadow:"none"}}})),kN=sx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xh(n.size)}`]]}})((e=>{let{ownerState:t}=e;return mb({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},wN(t))})),CN=sx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xh(n.size)}`]]}})((e=>{let{ownerState:t}=e;return mb({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},wN(t))})),SN=r.forwardRef((function(e,t){const n=r.useContext(bN),i=lx({props:Jh(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=fb(i,_N),_=mb({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:f,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return mb({},a,Bp({root:["root",o,`${o}${xh(t)}`,`size${xh(i)}`,`${o}Size${xh(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xh(i)}`],endIcon:["endIcon",`iconSize${xh(i)}`]},yN,a))})(_),x=g&&ih(kN,{className:w.startIcon,ownerState:_,children:g}),k=p&&ih(CN,{className:w.endIcon,ownerState:_,children:p});return oh(xN,mb({ownerState:_,className:yb(n.className,w.root,l),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:yb(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[x,o,k]}))}));function MN(e){return rf("MuiInputAdornment",e)}const TN=of("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var EN;const PN=["children","className","component","disablePointerEvents","disableTypography","position","variant"],IN=sx("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xh(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{[`&.${TN.positionStart}&:not(.${TN.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),ON=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=fb(n,PN),p=Tw()||{};let h=u;u&&p.variant,p&&!h&&(h=p.variant);const f=mb({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return Bp({root:["root",n&&"disablePointerEvents",i&&`position${xh(i)}`,a,r&&"hiddenLabel",o&&`size${xh(o)}`]},MN,t)})(f);return ih(Mw.Provider,{value:null,children:ih(IN,mb({as:a,ownerState:f,className:yb(m.root,o),ref:t},d,{children:"string"!=typeof i||l?oh(r.Fragment,{children:["start"===c?EN||(EN=ih("span",{className:"notranslate",children:"\u200b"})):null,i]}):ih(SC,{color:"text.secondary",children:i})}))})}));function LN(e){return rf("MuiTooltip",e)}const RN=of("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),jN=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function DN(e){return Math.round(1e5*e)/1e5}const AN=sx(Dk,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return mb({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{[`&[data-popper-placement*="bottom"] .${RN.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${RN.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${RN.arrow}`]:mb({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${RN.arrow}`]:mb({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),NN=sx("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${xh(n.placement.split("-")[0])}`]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Mg(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${DN(16/14)}em`,fontWeight:t.typography.fontWeightRegular},{[`.${RN.popper}[data-popper-placement*="left"] &`]:mb({transformOrigin:"right center"},n.isRtl?mb({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):mb({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[`.${RN.popper}[data-popper-placement*="right"] &`]:mb({transformOrigin:"left center"},n.isRtl?mb({marginRight:"14px"},n.touch&&{marginRight:"24px"}):mb({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[`.${RN.popper}[data-popper-placement*="top"] &`]:mb({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[`.${RN.popper}[data-popper-placement*="bottom"] &`]:mb({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})})})),FN=sx("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Mg(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let zN=!1,BN=null,UN={x:0,y:0};function $N(e,t){return n=>{t&&t(n),e(n)}}const VN=r.forwardRef((function(e,t){var n,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w;const x=lx({props:e,name:"MuiTooltip"}),{arrow:k=!1,children:C,components:S={},componentsProps:M={},describeChild:T=!1,disableFocusListener:E=!1,disableHoverListener:P=!1,disableInteractive:I=!1,disableTouchListener:O=!1,enterDelay:L=100,enterNextDelay:R=0,enterTouchDelay:j=700,followCursor:D=!1,id:A,leaveDelay:N=0,leaveTouchDelay:F=1500,onClose:z,onOpen:B,open:U,placement:$="bottom",PopperComponent:V,PopperProps:q={},slotProps:Z={},slots:H={},title:G,TransitionComponent:W=Ek,TransitionProps:Y}=x,K=fb(x,jN),X=xx(),J="rtl"===X.direction,[Q,ee]=r.useState(),[te,ne]=r.useState(null),re=r.useRef(!1),ie=I||D,oe=r.useRef(),ae=r.useRef(),se=r.useRef(),le=r.useRef(),[ce,ue]=Lh({controlled:U,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=Oh(A),he=r.useRef(),fe=r.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(le.current)}),[]);r.useEffect((()=>()=>{clearTimeout(oe.current),clearTimeout(ae.current),clearTimeout(se.current),fe()}),[fe]);const me=e=>{clearTimeout(BN),zN=!0,ue(!0),B&&!de&&B(e)},ge=Rh((e=>{clearTimeout(BN),BN=setTimeout((()=>{zN=!1}),800+N),ue(!1),z&&de&&z(e),clearTimeout(oe.current),oe.current=setTimeout((()=>{re.current=!1}),X.transitions.duration.shortest)})),ye=e=>{re.current&&"touchstart"!==e.type||(Q&&Q.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(se.current),L||zN&&R?ae.current=setTimeout((()=>{me(e)}),zN?R:L):me(e))},ve=e=>{clearTimeout(ae.current),clearTimeout(se.current),se.current=setTimeout((()=>{ge(e)}),N)},{isFocusVisibleRef:be,onBlur:_e,onFocus:we,ref:xe}=Vh(),[,ke]=r.useState(!1),Ce=e=>{_e(e),!1===be.current&&(ke(!1),ve(e))},Se=e=>{Q||ee(e.currentTarget),we(e),!0===be.current&&(ke(!0),ye(e))},Me=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Te=ye,Ee=ve;r.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&ge(e)}}),[ge,de]);const Pe=jh(C.ref,xe,ee,t);!G&&0!==G&&(de=!1);const Ie=r.useRef(),Oe={},Le="string"==typeof G;T?(Oe.title=de||!Le||P?null:G,Oe["aria-describedby"]=de?pe:null):(Oe["aria-label"]=Le?G:null,Oe["aria-labelledby"]=de&&!Le?pe:null);const Re=mb({},Oe,K,C.props,{className:yb(K.className,C.props.className),onTouchStart:Me,ref:Pe},D?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),UN={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),je={};O||(Re.onTouchStart=e=>{Me(e),clearTimeout(se.current),clearTimeout(oe.current),fe(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,ye(e)}),j)},Re.onTouchEnd=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),fe(),clearTimeout(se.current),se.current=setTimeout((()=>{ge(e)}),F)}),P||(Re.onMouseOver=$N(Te,Re.onMouseOver),Re.onMouseLeave=$N(Ee,Re.onMouseLeave),ie||(je.onMouseOver=Te,je.onMouseLeave=Ee)),E||(Re.onFocus=$N(Se,Re.onFocus),Re.onBlur=$N(Ce,Re.onBlur),ie||(je.onFocus=Se,je.onBlur=Ce));const De=r.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=q.popperOptions)&&e.modifiers&&(t=t.concat(q.popperOptions.modifiers)),mb({},q.popperOptions,{modifiers:t})}),[te,q]),Ae=mb({},x,{isRtl:J,arrow:k,disableInteractive:ie,placement:$,PopperComponentProp:V,touch:re.current}),Ne=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e;return Bp({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${xh(o.split("-")[0])}`],arrow:["arrow"]},LN,t)})(Ae),Fe=null!=(n=null!=(i=H.popper)?i:S.Popper)?n:AN,ze=null!=(o=null!=(a=null!=(s=H.transition)?s:S.Transition)?a:W)?o:Ek,Be=null!=(l=null!=(c=H.tooltip)?c:S.Tooltip)?l:NN,Ue=null!=(u=null!=(d=H.arrow)?d:S.Arrow)?u:FN,$e=bb(Fe,mb({},q,null!=(p=Z.popper)?p:M.popper,{className:yb(Ne.popper,null==q?void 0:q.className,null==(h=null!=(f=Z.popper)?f:M.popper)?void 0:h.className)}),Ae),Ve=bb(ze,mb({},Y,null!=(m=Z.transition)?m:M.transition),Ae),qe=bb(Be,mb({},null!=(g=Z.tooltip)?g:M.tooltip,{className:yb(Ne.tooltip,null==(y=null!=(v=Z.tooltip)?v:M.tooltip)?void 0:y.className)}),Ae),Ze=bb(Ue,mb({},null!=(b=Z.arrow)?b:M.arrow,{className:yb(Ne.arrow,null==(_=null!=(w=Z.arrow)?w:M.arrow)?void 0:_.className)}),Ae);return oh(r.Fragment,{children:[r.cloneElement(C,Re),ih(Fe,mb({as:null!=V?V:Dk,placement:$,anchorEl:D?{getBoundingClientRect:()=>({top:UN.y,left:UN.x,right:UN.x,bottom:UN.y,width:0,height:0})}:Q,popperRef:Ie,open:!!Q&&de,id:pe,transition:!0},je,$e,{popperOptions:De,children:e=>{let{TransitionProps:t}=e;return ih(ze,mb({timeout:X.transitions.duration.shorter},t,Ve,{children:oh(Be,mb({},qe,{children:[G,k?ih(Ue,mb({},Ze,{ref:ne})):null]}))}))}}))]})})),qN=VN,ZN=["sortingOrder"],HN=r.memo((function(e){const{sortingOrder:t}=e,n=Iv(e,ZN),r=Bg(),[i]=t,o="asc"===i?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return o?ih(o,up({},n)):null})),GN=["native"];const WN=up({},{BooleanCellTrueIcon:gT,BooleanCellFalseIcon:uT,ColumnMenuIcon:cT,OpenFilterButtonIcon:QM,FilterPanelDeleteIcon:uT,ColumnFilteredIcon:eT,ColumnSelectorIcon:iT,ColumnUnsortedIcon:HN,ColumnSortedAscendingIcon:YM,ColumnSortedDescendingIcon:KM,ColumnResizeIcon:oT,DensityCompactIcon:aT,DensityStandardIcon:sT,DensityComfortableIcon:lT,ExportIcon:mT,MoreActionsIcon:yT,TreeDataCollapseIcon:JM,TreeDataExpandIcon:XM,GroupingCriteriaCollapseIcon:JM,GroupingCriteriaExpandIcon:XM,DetailPanelExpandIcon:dT,DetailPanelCollapseIcon:pT,RowReorderIcon:fT,QuickFilterIcon:tT,QuickFilterClearIcon:uT,ColumnMenuHideIcon:vT,ColumnMenuSortAscendingIcon:YM,ColumnMenuSortDescendingIcon:KM,ColumnMenuFilterIcon:eT,ColumnMenuManageColumnsIcon:bT,ColumnMenuClearIcon:_T,LoadIcon:hT,FilterPanelAddIcon:dT,FilterPanelRemoveAllIcon:xT,ColumnReorderIcon:fT},{BaseCheckbox:gN,BaseTextField:dL,BaseFormControl:oE,BaseSelect:oL,BaseSwitch:tE,BaseButton:SN,BaseIconButton:UT,BaseInputAdornment:ON,BaseTooltip:qN,BasePopper:Dk,BaseInputLabel:WI,BaseSelectOption:function(e){let{native:t}=e,n=Iv(e,GN);return ih(t?"option":DC,up({},n))},BaseChip:SP}),YN=up({},WN,{Cell:ab,SkeletonCell:KC,ColumnHeaderFilterIconButton:NM,ColumnMenu:AT,ColumnHeaders:iN,Footer:xL,FooterRowCount:ER,Toolbar:null,PreferencesPanel:FE,LoadingOverlay:FL,NoResultsOverlay:oN,NoRowsOverlay:zL,Pagination:SR,FilterPanel:dP,ColumnsPanel:LE,Panel:NE,Row:pj}),KN=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>up({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};function XN(e){let{defaultSlots:t,slots:n,components:r}=e;const i=null!=n?n:r?KN(r):null;if(!i||0===Object.keys(i).length)return t;const o=up({},t);return Object.keys(i).forEach((e=>{const t=e;void 0!==i[t]&&(o[t]=i[t])})),o}const JN=["components","componentsProps"];function QN(e){var t;const n=Object.keys(e);if(!n.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const r={},i=null!=(t=e.forwardedProps)?t:{};for(let o=0;o<n.length;o+=1){const t=n[o];t.startsWith("aria-")||t.startsWith("data-")?i[t]=e[t]:r[t]=e[t]}return r.forwardedProps=i,r}function eF(e){return r.useMemo((()=>{const{components:t,componentsProps:n}=e;return[t,n,QN(Iv(e,JN))]}),[e])}const tF={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},nF={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:jv.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t",rowPositionsDebounceMs:166},rF=KN(YN),iF=e=>up({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}});const oF=(e,t,n)=>"number"==typeof e&&e>0?e:t,aF=(["MUI: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),["MUI: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n"),(e,t)=>{const{getRowHeight:n,getRowSpacing:i,getEstimatedRowHeight:o}=t,a=r.useRef(Object.create(null)),s=r.useRef(-1),l=r.useRef(!1),c=Yf(e,sv),u=Yf(e,Dy),d=Yf(e,oM),p=Yf(e,Ly),h=IR(e,t),f=Yf(e,Cy),m=oF(t.rowHeight,nF.rowHeight),g=Math.floor(m*c),y=r.useCallback((()=>{var t,r;l.current=!1;const u=t=>{a.current[t.id]||(a.current[t.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:r,needsFirstMeasurement:s,sizes:u}=a.current[t.id];let d="number"==typeof g&&g>0?g:52;const p=u.baseCenter;if(r)d=p;else if(n){const e=n(up({},t,{densityFactor:c}));if("auto"===e){if(s){const e=o?o(up({},t,{densityFactor:c})):g;d=null!=e?e:g}else d=p;l.current=!0,a.current[t.id].autoHeight=!0}else d=oF(e,g),a.current[t.id].needsFirstMeasurement=!1,a.current[t.id].autoHeight=!1}else a.current[t.id].needsFirstMeasurement=!1;const f={};for(const e in u)/^base[A-Z]/.test(e)&&(f[e]=u[e]);if(f.baseCenter=d,i){var m,y;const n=e.current.getRowIndexRelativeToVisibleRows(t.id),r=i(up({},t,{isFirstVisible:0===n,isLastVisible:n===h.rows.length-1,indexRelativeToCurrentPage:n}));f.spacingTop=null!=(m=r.top)?m:0,f.spacingBottom=null!=(y=r.bottom)?y:0}const v=e.current.unstable_applyPipeProcessors("rowHeight",f,t);return a.current[t.id].sizes=v,v},d=[],p=h.rows.reduce(((e,t)=>{d.push(e);let n=0,r=0;const i=u(t);for(const o in i){const e=i[o];/^base[A-Z]/.test(o)?n=e>n?e:n:r+=e}return e+n+r}),0);null==f||null==(t=f.top)||t.forEach((e=>{u(e)})),null==f||null==(r=f.bottom)||r.forEach((e=>{u(e)})),e.current.setState((e=>up({},e,{rowsMeta:{currentPageTotalHeight:p,positions:d}}))),l.current||(s.current=1/0),e.current.forceUpdate()}),[e,h.rows,g,n,i,o,f,c]),v=r.useCallback((e=>{const t=a.current[e];return t?t.sizes.baseCenter:g}),[g]),b=r.useCallback(((e,t)=>{a.current[e].sizes.baseCenter=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,y()}),[y]),_=r.useMemo((()=>Ep(y,t.rowPositionsDebounceMs)),[y,t.rowPositionsDebounceMs]),w=r.useCallback(((e,t,n)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const r=a.current[e].sizes[`base${Mp(n)}`]!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes[`base${Mp(n)}`]=t,r&&_()}),[_]),x=r.useCallback((e=>{var t;return(null==(t=a.current[e])?void 0:t.autoHeight)||!1}),[]),k=r.useCallback((()=>s.current),[]),C=r.useCallback((e=>{l.current&&e>s.current&&(s.current=e)}),[]),S=r.useCallback((()=>{a.current={},y()}),[y]);r.useEffect((()=>{y()}),[g,u,d,p,y]),MD(e,"rowHeight",y);const M={getLastMeasuredRowIndex:k,rowHasAutoHeight:x};Gv(e,{unstable_setLastMeasuredRowIndex:C,unstable_getRowHeight:v,unstable_getRowInternalSizes:e=>{var t;return null==(t=a.current[e])?void 0:t.sizes},unstable_setRowHeight:b,unstable_storeRowHeightMeasurement:w,resetRowHeights:S},"public"),Gv(e,M,"private")}),sF=e=>{const t=r.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.current.unstable_applyPipeProcessors("exportState",{},t)}),[e]),n=r.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e]);Gv(e,{exportState:t,restoreState:n},"public")},lF=e=>{const t=r.useRef({}),n=r.useCallback(((e,n,r)=>{const i=t.current;i[e]||(i[e]={}),i[e][n]=r}),[]),i=r.useCallback(((e,n)=>{var r;return null==(r=t.current[e])?void 0:r[n]}),[]),o=r.useCallback((t=>{const{columnIndex:r,rowId:i,minFirstColumnIndex:o,maxLastColumnIndex:a,columns:s}=t,l=s.length,c=s[r],u="function"==typeof c.colSpan?c.colSpan(e.current.getCellParams(i,c.field)):c.colSpan;if(!u||1===u)return n(i,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let d=c.computedWidth;for(let e=1;e<u;e+=1){const t=r+e;if(t>=o&&t<a){d+=s[t].computedWidth,n(i,r+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+u,l-1),leftVisibleCellIndex:r})}n(i,r,{spannedByColSpan:!1,cellProps:{colSpan:u,width:d}})}return{colSpan:u}}),[e,n]),a={calculateColSpan:r.useCallback((e=>{let{rowId:t,minFirstColumn:n,maxLastColumn:r,columns:i}=e;for(let a=n;a<r;a+=1){const e=o({columnIndex:a,rowId:t,minFirstColumnIndex:n,maxLastColumnIndex:r,columns:i});e.colSpan>1&&(a+=e.colSpan-1)}}),[o])};Gv(e,{unstable_getCellColSpanInfo:i},"public"),Gv(e,a,"private");const s=r.useCallback((()=>{t.current={}}),[]);VS(e,"columnOrderChange",s)},cF=(e,t,n)=>{if($v(e)){if(void 0!==n[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:r,children:i}=e;i.forEach((e=>{cF(e,[...t,r],n)}))},uF=e=>{if(!e)return{};const t={};return e.forEach((e=>{cF(e,[],t)})),t},dF=(e,t,n)=>{const r=e=>{var n;return null!=(n=t[e])?n:[]},i=[],o=Math.max(...e.map((e=>r(e).length))),a=(e,t,n)=>XS(r(e).slice(0,n+1),r(t).slice(0,n+1)),s=(e,t)=>!!(null!=n&&n.left&&n.left.includes(e)&&!n.left.includes(t)||null!=n&&n.right&&!n.right.includes(e)&&n.right.includes(t));for(let l=0;l<o;l+=1){const t=e.reduce(((e,t)=>{var n;const i=null!=(n=r(t)[l])?n:null;if(0===e.length)return[{columnFields:[t],groupId:i}];const o=e[e.length-1],c=o.columnFields[o.columnFields.length-1];return o.groupId!==i||!a(c,t,l)||s(c,t)?[...e,{columnFields:[t],groupId:i}]:[...e.slice(0,e.length-1),{columnFields:[...o.columnFields,t],groupId:i}]}),[]);i.push(t)}return i},pF=["groupId","children"],hF=e=>{let t={};return e.forEach((e=>{if($v(e))return;const{groupId:n,children:r}=e,i=Iv(e,pF);if(!n)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");r||console.warn(`MUI: group groupId=${n} has no children.`);const o=up({},i,{groupId:n}),a=hF(r);if(void 0!==a[n]||void 0!==t[n])throw new Error(`MUI: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=up({},t,a,{[n]:o})})),up({},t)},fF=(e,t,n)=>{var r,i,o,a;if(null==(r=t.experimentalFeatures)||!r.columnGrouping)return e;const s=Jg(n),l=ry(n),c=hF(null!=(i=t.columnGroupingModel)?i:[]),u=uF(null!=(o=t.columnGroupingModel)?o:[]),d=dF(s,u,null!=(a=n.current.state.pinnedColumns)?a:{}),p=0===l.length?0:Math.max(...l.map((e=>{var t,n;return null!=(t=null==(n=u[e])?void 0:n.length)?t:0})));return up({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:u,headerStructure:d,maxDepth:p}})},mF=(e,t)=>{var n;const i=r.useCallback((t=>{var n;return null!=(n=cy(e)[t])?n:[]}),[e]),o=r.useCallback((()=>uy(e)),[e]);Gv(e,{unstable_getColumnGroupPath:i,unstable_getAllGroupDetails:o},"public");const a=r.useCallback((()=>{var n;const r=uF(null!=(n=t.columnGroupingModel)?n:[]);e.current.setState((e=>{var t,n,i;const o=null!=(t=null==(n=e.columns)?void 0:n.orderedFields)?t:[],a=null!=(i=e.pinnedColumns)?i:{},s=dF(o,r,a);return up({},e,{columnGrouping:up({},e.columnGrouping,{headerStructure:s})})}))}),[e,t.columnGroupingModel]),s=r.useCallback((n=>{var r,i,o,a;if(null==(r=t.experimentalFeatures)||!r.columnGrouping)return;const s=null!=(i=null==(o=(a=e.current).getPinnedColumns)?void 0:o.call(a))?i:{},l=Jg(e),c=ry(e),u=hF(null!=n?n:[]),d=uF(null!=n?n:[]),p=dF(l,d,s),h=0===c.length?0:Math.max(...c.map((e=>{var t,n;return null!=(t=null==(n=d[e])?void 0:n.length)?t:0})));e.current.setState((e=>up({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:d,headerStructure:p,maxDepth:h}})))}),[e,null==(n=t.experimentalFeatures)?void 0:n.columnGrouping]);VS(e,"columnIndexChange",a),VS(e,"columnsChange",(()=>{s(t.columnGroupingModel)})),VS(e,"columnVisibilityModelChange",(()=>{s(t.columnGroupingModel)})),r.useEffect((()=>{s(t.columnGroupingModel)}),[s,t.columnGroupingModel])},gF=_g("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),yF=r.forwardRef((function(e,t){const n=Bg(),r=(e=>{const{classes:t}=e;return Bp({root:["virtualScroller"]},Ng,t)})(n);return ih(gF,up({ref:t},e,{className:ug(r.root,e.className),ownerState:n}))})),vF=_g("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),bF=r.forwardRef((function(e,t){var n;const r=Bg(),i=((e,t)=>{const{classes:n}=e;return Bp({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ng,n)})(r,!r.autoHeight&&"auto"===(null==(n=e.style)?void 0:n.minHeight));return ih(vF,up({ref:t},e,{ownerState:r,className:ug(i.root,e.className)}))})),_F=["className"],wF=_g("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),xF=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,_F),i=Bg(),o=(e=>{const{classes:t}=e;return Bp({root:["virtualScrollerRenderZone"]},Ng,t)})(i);return ih(wF,up({ref:t,className:ug(o.root,n),ownerState:i},r))})),kF=["className"],CF=r.forwardRef((function(e,t){const{className:n}=e,r=Iv(e,kF),{getRootProps:i,getContentProps:o,getRenderZoneProps:a,getRows:s}=GA({ref:t});return oh(yF,up({className:n},i(r),{children:[ih(Pv,{}),ih(bF,up({},o(),{children:ih(xF,up({},a(),{children:s()}))}))]}))})),SF=nF.filterDebounceMs,MF=nF.filterDebounceMs;r.forwardRef((function(e,t){const n=(e=>{const[t,n,i]=eF(lx({props:e,name:"MuiDataGrid"})),o=r.useMemo((()=>up({},hj,i.localeText)),[i.localeText]),a=r.useMemo((()=>XN({defaultSlots:rF,slots:i.slots,components:t})),[t,i.slots]);return r.useMemo((()=>{var e;return up({},nF,i,{localeText:o,slots:a,slotProps:null!=(e=i.slotProps)?e:n},tF)}),[i,o,a,n])})(e),i=((e,t)=>{const n=ID(e,t);return jA(n,t),IA(n),OD(LA,n,t),OD(YD,n,t),OD(TA,n,t),OD(SA,n,t),OD(pA,n,t),OD(DA,n,t),OD(yA,n,t),OD(sA,n,t),OD(JD,n,t),OD(rA,n,t),OD(iF,n,t),OD(FD,n,t),OD(fF,n,t),OD(LM,n,t),gA(n,t),RA(n,t),KD(n,t),EA(n,t),Yv(n,t),lF(n),mF(n,t),MA(n,t),hA(n,t),vA(n,t),dA(n,t),AA(n,t),QD(n,t),oA(n,t),aF(n,t),FA(n,t),zD(n),nA(n,t),aA(n,t),ND(n,t),BA(n,t),zA(n,t),sF(n),RM(n,t),n})(n.apiRef,n);return ih(Wj,{privateApiRef:i,props:n,children:oh(tS,up({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[ih(kL,{}),ih(cv,{VirtualScrollerComponent:CF}),ih(uv,{})]}))})})).propTypes={apiRef:pp.exports.shape({current:pp.exports.object.isRequired}),"aria-label":pp.exports.string,"aria-labelledby":pp.exports.string,autoHeight:pp.exports.bool,autoPageSize:pp.exports.bool,cellModesModel:pp.exports.object,checkboxSelection:pp.exports.bool,classes:pp.exports.object,clipboardCopyCellDelimiter:pp.exports.string,columnBuffer:pp.exports.number,columnGroupingModel:pp.exports.arrayOf(pp.exports.object),columnHeaderHeight:pp.exports.number,columns:(pp.exports.array.isRequired,()=>null),columnThreshold:pp.exports.number,columnVisibilityModel:pp.exports.object,components:pp.exports.object,componentsProps:pp.exports.object,density:pp.exports.oneOf(["comfortable","compact","standard"]),disableColumnFilter:pp.exports.bool,disableColumnMenu:pp.exports.bool,disableColumnSelector:pp.exports.bool,disableDensitySelector:pp.exports.bool,disableEval:pp.exports.bool,disableRowSelectionOnClick:pp.exports.bool,disableVirtualization:pp.exports.bool,editMode:pp.exports.oneOf(["cell","row"]),experimentalFeatures:pp.exports.shape({ariaV7:pp.exports.bool,columnGrouping:pp.exports.bool,warnIfFocusStateIsNotSynced:pp.exports.bool}),filterDebounceMs:pp.exports.number,filterMode:pp.exports.oneOf(["client","server"]),filterModel:pp.exports.shape({items:pp.exports.arrayOf(pp.exports.shape({field:pp.exports.string.isRequired,id:pp.exports.oneOfType([pp.exports.number,pp.exports.string]),operator:pp.exports.string.isRequired,value:pp.exports.any})).isRequired,logicOperator:pp.exports.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:pp.exports.bool,quickFilterLogicOperator:pp.exports.oneOf(["and","or"]),quickFilterValues:pp.exports.array}),forwardedProps:pp.exports.object,getCellClassName:pp.exports.func,getDetailPanelContent:pp.exports.func,getEstimatedRowHeight:pp.exports.func,getRowClassName:pp.exports.func,getRowHeight:pp.exports.func,getRowId:pp.exports.func,getRowSpacing:pp.exports.func,hideFooter:pp.exports.bool,hideFooterPagination:pp.exports.bool,hideFooterSelectedRowCount:pp.exports.bool,ignoreDiacritics:pp.exports.bool,initialState:pp.exports.object,isCellEditable:pp.exports.func,isRowSelectable:pp.exports.func,keepNonExistentRowsSelected:pp.exports.bool,loading:pp.exports.bool,localeText:pp.exports.object,logger:pp.exports.shape({debug:pp.exports.func.isRequired,error:pp.exports.func.isRequired,info:pp.exports.func.isRequired,warn:pp.exports.func.isRequired}),logLevel:pp.exports.oneOf(["debug","error","info","warn",!1]),nonce:pp.exports.string,onCellClick:pp.exports.func,onCellDoubleClick:pp.exports.func,onCellEditStart:pp.exports.func,onCellEditStop:pp.exports.func,onCellKeyDown:pp.exports.func,onCellModesModelChange:pp.exports.func,onClipboardCopy:pp.exports.func,onColumnHeaderClick:pp.exports.func,onColumnHeaderDoubleClick:pp.exports.func,onColumnHeaderEnter:pp.exports.func,onColumnHeaderLeave:pp.exports.func,onColumnHeaderOut:pp.exports.func,onColumnHeaderOver:pp.exports.func,onColumnOrderChange:pp.exports.func,onColumnVisibilityModelChange:pp.exports.func,onFilterModelChange:pp.exports.func,onMenuClose:pp.exports.func,onMenuOpen:pp.exports.func,onPaginationModelChange:pp.exports.func,onPreferencePanelClose:pp.exports.func,onPreferencePanelOpen:pp.exports.func,onProcessRowUpdateError:pp.exports.func,onResize:pp.exports.func,onRowClick:pp.exports.func,onRowDoubleClick:pp.exports.func,onRowEditCommit:pp.exports.func,onRowEditStart:pp.exports.func,onRowEditStop:pp.exports.func,onRowModesModelChange:pp.exports.func,onRowSelectionModelChange:pp.exports.func,onSortModelChange:pp.exports.func,onStateChange:pp.exports.func,pageSizeOptions:pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.number,pp.exports.shape({label:pp.exports.string.isRequired,value:pp.exports.number.isRequired})]).isRequired),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:pp.exports.oneOf(["client","server"]),paginationModel:pp.exports.shape({page:pp.exports.number.isRequired,pageSize:pp.exports.number.isRequired}),processRowUpdate:pp.exports.func,rowBuffer:pp.exports.number,rowCount:pp.exports.number,rowHeight:pp.exports.number,rowModesModel:pp.exports.object,rowPositionsDebounceMs:pp.exports.number,rows:pp.exports.arrayOf(pp.exports.object).isRequired,rowSelection:pp.exports.bool,rowSelectionModel:pp.exports.oneOfType([pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.number,pp.exports.string]).isRequired),pp.exports.number,pp.exports.string]),rowSpacingType:pp.exports.oneOf(["border","margin"]),rowThreshold:pp.exports.number,scrollbarSize:pp.exports.number,showCellVerticalBorder:pp.exports.bool,showColumnVerticalBorder:pp.exports.bool,slotProps:pp.exports.object,slots:pp.exports.object,sortingMode:pp.exports.oneOf(["client","server"]),sortingOrder:pp.exports.arrayOf(pp.exports.oneOf(["asc","desc"])),sortModel:pp.exports.arrayOf(pp.exports.shape({field:pp.exports.string.isRequired,sort:pp.exports.oneOf(["asc","desc"])})),sx:pp.exports.oneOfType([pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.func,pp.exports.object,pp.exports.bool])),pp.exports.func,pp.exports.object]),unstable_ignoreValueFormatterDuringExport:pp.exports.oneOfType([pp.exports.shape({clipboardExport:pp.exports.bool,csvExport:pp.exports.bool}),pp.exports.bool])};const TF=e=>up({},e,{headerFiltering:{editing:null,menuOpen:null}});const EF=e=>e.columnReorder,PF=Yg(EF,(e=>e.dragCol)),IF="left",OF="right",LF=e=>up({},e,{columnReorder:{dragCol:""}}),RF=(e,t)=>{const n=HS(e,"useGridColumnReorder"),i=r.useRef(null),o=r.useRef({x:0,y:0}),a=r.useRef(null),s=r.useRef({}),l=r.useRef(),c=(e=>{const{classes:t}=e;return Bp({columnHeaderDragging:["columnHeader--dragging"]},Ng,t)})({classes:t.classes}),u=xx();r.useEffect((()=>()=>{clearTimeout(l.current)}),[]);const d=r.useCallback(((r,o)=>{if(t.disableColumnReorder||r.colDef.disableReorder)return;n.debug(`Start dragging col ${r.field}`),o.stopPropagation(),i.current=o.currentTarget,i.current.classList.add(c.columnHeaderDragging),o.dataTransfer&&(o.dataTransfer.effectAllowed="move"),e.current.setState((e=>up({},e,{columnReorder:up({},e.columnReorder,{dragCol:r.field})}))),e.current.forceUpdate(),l.current=setTimeout((()=>{i.current.classList.remove(c.columnHeaderDragging)})),a.current=e.current.getColumnIndex(r.field,!1);const u=e.current.unstable_getColumnGroupPath(r.field),d=a.current,p=e.current.getAllColumns(),h=e.current.unstable_getAllGroupDetails(),f=t=>{const n=p[t].field;return e.current.unstable_getColumnGroupPath(n)};let m=null;u.forEach((e=>{var t;null!=(t=h[e])&&t.freeReordering||(d>0&&f(d-1).includes(e)||d+1<p.length&&f(d+1).includes(e))&&(m=e)})),s.current={};for(let e=0;e<p.length;e+=1){const t=e<=d?e-1:e,n=e<d?e:e+1;if(null!==m){let r=!1;(t>=0&&f(t).includes(m)||n<p.length&&f(n).includes(m))&&(r=!0),r||(s.current[e]=!0)}t>=0&&n<p.length&&f(n).forEach((n=>{var r;f(t).includes(n)&&!u.includes(n)&&(null!=(r=h[n])&&r.freeReordering||(s.current[e]=!0))}))}}),[t.disableColumnReorder,c.columnHeaderDragging,n,e]),p=r.useCallback(((e,t)=>{t.preventDefault(),t.stopPropagation()}),[]),h=r.useCallback(((t,r)=>{const i=PF(e);if(!i)return;n.debug(`Dragging over col ${t.field}`),r.preventDefault(),r.stopPropagation();const a={x:r.clientX,y:r.clientY};if(t.field!==i&&((e,t)=>e.x!==t.x||e.y!==t.y)(o.current,a)){const n=e.current.getColumnIndex(t.field,!1),r=e.current.getColumnIndex(t.field,!0),l=e.current.getColumn(t.field),c=e.current.getColumnIndex(i,!1),d=e.current.getVisibleColumns(),p=e.current.getAllColumns(),h=((e,t)=>e.x<=t.x?OF:IF)(o.current,a),f=h===IF&&("rtl"===u.direction?c<n:n<c),m=h===OF&&("rtl"===u.direction?n<c:c<n);if(f||m){let t,o=0;if(t=!l.disableReorder||(f?r>0&&!d[r-1].disableReorder:r<d.length-1&&!d[r+1].disableReorder),s.current[n]){let e,i=n+o;if(f)for(e=r>0?d[r-1].field:null;i>0&&p[i].field!==e&&s.current[i];)o-=1,i=n+o;else for(e=r+1<d.length?d[r+1].field:null;i<p.length-1&&p[i].field!==e&&s.current[i];)o+=1,i=n+o;(s.current[i]||p[i].field===e)&&(t=!1)}e.current.unstable_applyPipeProcessors("canBeReordered",t,{targetIndex:r})&&e.current.setColumnIndex(i,n+o)}o.current=a}}),[e,n,u.direction]),f=r.useCallback(((r,o)=>{const s=PF(e);if(!t.disableColumnReorder&&s){if(n.debug("End dragging col"),o.preventDefault(),o.stopPropagation(),clearTimeout(l.current),i.current=null,"none"!==o.dataTransfer.dropEffect||t.keepColumnPositionIfDraggedOutside){const t={column:e.current.getColumn(s),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(s),oldIndex:a.current};e.current.publishEvent("columnOrderChange",t)}else e.current.setColumnIndex(s,a.current),a.current=null;e.current.setState((e=>up({},e,{columnReorder:up({},e.columnReorder,{dragCol:""})}))),e.current.forceUpdate()}}),[t.disableColumnReorder,t.keepColumnPositionIfDraggedOutside,n,e]);VS(e,"columnHeaderDragStart",d),VS(e,"columnHeaderDragEnter",p),VS(e,"columnHeaderDragOver",h),VS(e,"columnHeaderDragEnd",f),VS(e,"cellDragEnter",p),VS(e,"cellDragOver",h),ZS(e,"columnOrderChange",t.onColumnOrderChange)};function jF(e,t){var n;return Array.from(null!=(n=e.querySelectorAll(`[data-fields*="|-${t}-|"]`))?n:[])}function DF(e,t){var n,r;if(!Vv(e,Fg.root))throw new Error("MUI: The root element is not found.");const i=e.getAttribute("aria-colindex");if(!i)return[];const o=Number(i)-1,a=[];return null!=(n=t.virtualScrollerRef)&&n.current?((null==(r=t.virtualScrollerRef)?void 0:r.current.querySelectorAll(`:scope > div > div > .${Fg.row}`)).forEach((e=>{const n=e.getAttribute("data-id");if(!n)return;let r=o;const i=t.unstable_getCellColSpanInfo(n,o);i&&i.spannedByColSpan&&(r=i.leftVisibleCellIndex);const s=e.querySelector(`[data-colindex="${r}"]`);s&&a.push(s)})),a):[]}const AF={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1};function NF(e,t){if(void 0!==t&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function FF(e,t,n,r){let i=e;return i+="Right"===r?t-n.left:n.right-t,i}function zF(e,t,n){return"Left"===n?e-t.left:t.right-e}function BF(e,t){const n=e.classList.contains(Fg["columnSeparator--sideRight"])?"Right":"Left";return"rtl"===t?function(e){return"Right"===e?"Left":"Right"}(n):n}function UF(e){e.preventDefault(),e.stopImmediatePropagation()}function $F(e){const t=r.useRef(),n=()=>AM(e),i=Yf(e,n);return r.useEffect((()=>{t.current&&!1===i&&(t.current.resolve(),t.current=void 0)})),()=>{if(!t.current){if(!1===n())return Promise.resolve();t.current=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}()}return t.current}}function VF(e,t,n){const r={},i=e.current.rootElementRef.current;return i.classList.add(Fg.autosizing),n.forEach((n=>{const i=function(e,t){const n=e.virtualScrollerRef.current,r=e=>`:scope > div > div > div > [data-field="${t}"][role="${e}"]`;return Array.from(n.querySelectorAll(`${r("cell")}, ${r("gridcell")}`))}(e.current,n.field).map((e=>{var t,n;const r=window.getComputedStyle(e,null);return parseInt(r.paddingLeft,10)+parseInt(r.paddingRight,10)+(null!=(t=null==(n=e.firstElementChild)?void 0:n.getBoundingClientRect().width)?t:0)})),o=t.includeOutliers?i:function(e,t){if(e.length<4)return e;const n=e.slice();n.sort(((e,t)=>e-t));const r=n[Math.floor(.25*n.length)],i=n[Math.floor(.75*n.length)-1],o=i-r,a=o<5?5:o*t;return n.filter((e=>e>r-a&&e<i+a))}(i,t.outliersFactor);if(t.includeHeaders){const t=function(e,t){return e.columnHeadersContainerElementRef.current.querySelector(`:scope > div > div > [data-field="${t}"][role="columnheader"]`)}(e.current,n.field);if(t){const e=t.querySelector(`.${Fg.columnHeaderTitle}`),n=t.querySelector(`.${Fg.columnHeaderTitleContainerContent}`),r=null!=e?e:n,i=window.getComputedStyle(t,null),a=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+(r.scrollWidth+1);o.push(a)}}const a=n.minWidth!==-1/0&&void 0!==n.minWidth,s=n.maxWidth!==1/0&&void 0!==n.maxWidth,l=a?n.minWidth:0,c=s?n.maxWidth:1/0,u=0===o.length?0:Math.max(...o);r[n.field]=KS(u,l,c)})),i.classList.remove(Fg.autosizing),r}const qF=e=>up({},e,{columnResize:{resizingColumnField:""}}),ZF=up({},ej,{type:"treeDataGroup",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:e=>"group"===e.rowNode.type||"leaf"===e.rowNode.type?e.rowNode.groupingKey:void 0}),HF="__tree_data_group__",GF={field:HF,editable:!1,groupable:!1},WF="tree-data",YF=Bg,KF=pv;function XF(e){var t,n;const{id:r,field:i,formattedValue:o,rowNode:a,hideDescendantCount:s,offsetMultiplier:l=2}=e,c=YF(),u=KF(),d=(e=>{const{classes:t}=e;return Bp({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"]},Ng,t)})({classes:c.classes}),p=null!=(t=Yf(u,zy)[a.id])?t:0,h=a.childrenExpanded?c.slots.treeDataCollapseIcon:c.slots.treeDataExpandIcon;return oh(rI,{className:d.root,sx:{ml:a.depth*l},children:[ih("div",{className:d.toggle,children:p>0&&ih(c.slots.baseIconButton,up({size:"small",onClick:e=>{u.current.setRowChildrenExpansion(r,!a.childrenExpanded),u.current.setCellFocus(r,i),e.stopPropagation()},tabIndex:-1,"aria-label":a.childrenExpanded?u.current.getLocaleText("treeDataCollapse"):u.current.getLocaleText("treeDataExpand")},null==c||null==(n=c.slotProps)?void 0:n.baseIconButton,{children:ih(h,{fontSize:"inherit"})}))}),oh("span",{children:[void 0===o?a.groupingKey:o,!s&&p>0?` (${p})`:""]})]})}const JF=e=>e.pinnedColumns;var QF=function(e){return e.left="left",e.right="right",e}(QF||{});function ez(e){const{colDef:t,onClick:n}=e,i=KF(),o=YF(),a=xx(),s=r.useCallback((e=>r=>{i.current.pinColumn(t.field,e),n(r)}),[i,t.field,n]),l=e=>{i.current.unpinColumn(t.field),n(e)},c=oh(DC,{onClick:s(QF.left),children:[ih(bC,{children:ih(o.slots.columnMenuPinLeftIcon,{fontSize:"small"})}),ih(IC,{children:i.current.getLocaleText("pinToLeft")})]}),u=oh(DC,{onClick:s(QF.right),children:[ih(bC,{children:ih(o.slots.columnMenuPinRightIcon,{fontSize:"small"})}),ih(IC,{children:i.current.getLocaleText("pinToRight")})]});if(!t)return null;const d=i.current.isColumnPinned(t.field);if(d){const e=d===QF.right?QF.left:QF.right,t=e===QF.right?"pinToRight":"pinToLeft",n=d===QF.right?o.slots.columnMenuPinLeftIcon:o.slots.columnMenuPinRightIcon;return oh(r.Fragment,{children:[oh(DC,{onClick:s(e),children:[ih(bC,{children:ih(n,{fontSize:"small"})}),ih(IC,{children:i.current.getLocaleText(t)})]}),oh(DC,{onClick:l,children:[ih(bC,{}),ih(IC,{children:i.current.getLocaleText("unpin")})]})]})}return"rtl"===a.direction?oh(r.Fragment,{children:[u,c]}):oh(r.Fragment,{children:[c,u]})}const tz=e=>e.detailPanel.expandedRowIds,nz=e=>e.detailPanel.contentCache,rz=e=>e.detailPanel.heightCache,iz=Kg(rz,(e=>Object.entries(e).reduce(((e,t)=>{let[n,{height:r}]=t;return e[n]=r||0,e}),{})));function oz(e){var t;const{id:n,value:i}=e,o=YF(),a=KF(),s=(e=>{const{classes:t,isExpanded:n}=e;return Bp({root:["detailPanelToggleCell",n&&"detailPanelToggleCell--expanded"]},Ng,t)})({classes:o.classes,isExpanded:i}),l=Yf(a,nz),c=r.isValidElement(l[n]),u=i?o.slots.detailPanelCollapseIcon:o.slots.detailPanelExpandIcon;return ih(o.slots.baseIconButton,up({size:"small",tabIndex:-1,disabled:!c,className:s.root,"aria-label":i?a.current.getLocaleText("collapseDetailPanel"):a.current.getLocaleText("expandDetailPanel")},null==(t=o.slotProps)?void 0:t.baseIconButton,{children:ih(u,{fontSize:"inherit"})}))}const az=WM(ih("g",{transform:"rotate(-30 15 10)",children:ih("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinRight"),sz=WM(ih("g",{transform:"rotate(30 8 12)",children:ih("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinLeft"),lz=["operators","item","field","buttonRef","headerFilterMenuRef"],cz={width:22,height:22,margin:"auto 0 10px 5px"};function uz(e){var t;const{operators:n,item:i,field:o,buttonRef:a,headerFilterMenuRef:s}=e,l=Iv(e,lz),c=Dp(),u=Dp(),d=YF(),p=pv(),h=Boolean(OM(p)===o&&s.current);return d.slots.headerFilterMenu?oh(r.Fragment,{children:[ih(d.slots.baseIconButton,up({id:c,ref:a,"aria-label":p.current.getLocaleText("filterPanelOperator"),title:p.current.getLocaleText("filterPanelOperator"),"aria-controls":u,"aria-expanded":h?"true":void 0,"aria-haspopup":"true",tabIndex:-1,size:"small",onClick:e=>{s.current=e.currentTarget,p.current.showHeaderFilterMenu(o)},sx:cz},null==(t=d.slotProps)?void 0:t.baseIconButton,{children:ih(d.slots.openFilterButtonIcon,{fontSize:"small"})})),ih(d.slots.headerFilterMenu,up({field:o,open:h,item:i,target:s.current,operators:n,labelledBy:c,id:u},l))]}):null}const dz={padding:"2px"};function pz(e){let{onClick:t}=e;var n;const r=YF();return ih(r.slots.baseIconButton,up({tabIndex:-1,"aria-label":"Clear filter",size:"small",onClick:t,sx:dz},null==(n=r.slotProps)?void 0:n.baseIconButton,{children:ih(r.slots.columnMenuClearIcon,{fontSize:"inherit"})}))}const hz=["colIndex","height","hasFocus","filterOperators","width","headerClassName","colDef","item","headerFilterMenuRef","InputComponentProps","showClearIcon"],fz={'& input[value=""]:not(:focus)':{color:"transparent"}},mz=r.forwardRef(((e,t)=>{var n,i,o;const{colIndex:a,height:s,hasFocus:l,filterOperators:c,width:u,headerClassName:d,colDef:p,item:h,headerFilterMenuRef:f,InputComponentProps:m,showClearIcon:g=!0}=e,y=Iv(e,hz),v=Nf(),b=ry(v),_=YF(),w=r.useRef(null),x=Fp(t,w),k=r.useRef(null),C=r.useRef(null),S=IM(v)===p.field,M=OM(v)===p.field,T=c[0],E=p.filterable?T.InputComponent:null,P=r.useCallback((e=>{!h.value||e.value?v.current.upsertFilterItem(e):v.current.deleteFilterItem(e)}),[v,h]),I=r.useCallback((()=>{v.current.deleteFilterItem(h)}),[v,h]);let O;p.renderHeaderFilter&&(O=p.renderHeaderFilter(e)),r.useLayoutEffect((()=>{if(l&&!M){let e=w.current.querySelector('[tabindex="0"]');S&&E&&(e=k.current);const t=e||w.current;null==t||t.focus(),v.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[E,v,l,S,M]);const L=r.useCallback((e=>{if(!M&&!Ax(e.key))switch(e.key){case"Escape":S&&v.current.stopHeaderFilterEditMode();break;case"Enter":if(S){v.current.stopHeaderFilterEditMode();break}if(e.metaKey||e.ctrlKey){f.current=C.current,v.current.showHeaderFilterMenu(p.field);break}v.current.startHeaderFilterEditMode(p.field);break;case"Tab":if(S){var t;const n=null!=(t=b[a+(e.shiftKey?-1:1)])?t:null;n&&(v.current.startHeaderFilterEditMode(n),v.current.setColumnHeaderFilterFocus(n,e))}break;default:if(S||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)break;v.current.startHeaderFilterEditMode(p.field)}}),[v,p.field,a,b,f,S,M]),R=r.useCallback(((e,t)=>n=>{v.current.publishEvent(e,v.current.getColumnHeaderParams(p.field),n),t&&t(n)}),[v,p.field]),j=r.useCallback((e=>{l||(k.current&&k.current.contains(e.target)&&k.current.focus(),v.current.setColumnHeaderFilterFocus(p.field,e))}),[v,p.field,l]),D=r.useMemo((()=>({onKeyDown:R("headerFilterKeyDown",L),onClick:R("headerFilterClick"),onMouseDown:R("headerFilterMouseDown",j),onBlur:R("headerFilterBlur")})),[j,L,R]),A=(e=>{const{colDef:t,classes:n,showColumnVerticalBorder:r}=e;return Bp({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight","withBorderColor",r&&"columnHeader--withRightBorder"]},Ng,n)})(up({},_,{colDef:p})),N=!1===(null==c||null==(n=c.find((e=>{let{value:t}=e;return h.operator===t})))?void 0:n.requiresFilterValue),F=Boolean(null==h?void 0:h.value)||N,z=null!=(i=T.headerLabel)?i:v.current.getLocaleText(`headerFilterOperator${Mp(h.operator)}`),B=F||l;return oh("div",up({className:ug(A.root,d),ref:x,style:{height:s,width:u,minWidth:u,maxWidth:u},role:"columnheader","aria-colindex":a+1,"aria-label":null==O?null!=(o=p.headerName)?o:p.field:void 0},y,D,{children:[O,E&&void 0===O?oh(r.Fragment,{children:[ih(E,up({apiRef:v,item:h,inputRef:k,applyValue:P,onFocus:()=>v.current.startHeaderFilterEditMode(p.field),onBlur:e=>{var t;v.current.stopHeaderFilterEditMode(),null!=(t=e.relatedTarget)&&t.className.includes("columnHeader")||v.current.setState((e=>up({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},label:Mp(z),placeholder:"",isFilterActive:B,clearButton:g&&F?ih(pz,{onClick:I}):null,disabled:N,tabIndex:-1,InputLabelProps:null,sx:"date"===p.type||"dateTime"===p.type?fz:void 0},N?{value:""}:{},null==T?void 0:T.InputComponentProps,m)),ih(uz,{operators:c,item:h,field:p.field,applyFilterChanges:P,headerFilterMenuRef:f,buttonRef:C})]}):null]}))}));function gz(e){let{open:t,field:n,target:i,applyFilterChanges:o,operators:a,item:s,id:l,labelledBy:c}=e;const u=pv(),d=r.useCallback((()=>{u.current.hideHeaderFilterMenu()}),[u]),p=r.useCallback((e=>{"Tab"===e.key&&e.preventDefault(),("Escape"===e.key||"Tab"===e.key)&&d()}),[d]);return i?ih(Bk,{placement:"bottom-end",open:t,target:i,onClose:d,children:ih(ek,{"aria-labelledby":c,id:l,onKeyDown:p,children:a.map(((e,r)=>{var i;const a=null!=(i=null==e?void 0:e.headerLabel)?i:u.current.getLocaleText(`headerFilterOperator${Mp(e.value)}`);return ih(DC,{onClick:()=>{o(up({},s,{operator:e.value})),d()},autoFocus:0===r&&t,selected:e.value===s.operator,children:a},`${n}-${e.value}`)}))})}):null}const yz=e=>`auto-generated-row-${e.map((e=>`${e.field}/${e.key}`)).join("-")}`,vz=e=>{let{id:t,tree:n}=e;const r=[];let i=n[t];for(;i.id!==hv;)r.push({field:"leaf"===i.type?null:i.groupingField,key:i.groupingKey}),i=n[i.parent];return r.reverse(),r},bz=(e,t,n)=>{let r;return r=e.id===hv||(n?n(e):-1===t||t>e.depth),e.childrenExpanded=r,e},_z=(e,t,n,r)=>{var i;t[e.id]=e,n[e.depth]=(null!=(i=n[e.depth])?i:0)+1;const o=t[e.parent];if("group"===e.type||"leaf"===e.type){var a,s,l;const n=null!=(a=e.groupingField)?a:"__no_field__",i=null!=(s=e.groupingKey)?s:"__no_key__",c=null==(l=o.childrenFromPath)?void 0:l[n];null!==r&&r[o.id]===t[o.id]?o.children=[...o.children,e.id]:o.children.push(e.id),null==c?o.childrenFromPath[n]={[i.toString()]:e.id}:c[i.toString()]=e.id}else"footer"===e.type&&(o.footerId=e.id)},wz=e=>{let{node:t,tree:n,treeDepths:r}=e;delete n[t.id];const i=t.depth,o=r[i];1===o?delete r[i]:r[i]=o-1;const a=n[t.parent];if("footer"===t.type)n[a.id]=up({},a,{footerId:null});else{var s,l;const e=null!=(s=t.groupingField)?s:"__no_field__",r=null!=(l=t.groupingKey)?l:"__no_key__",i=a.children.filter((e=>e!==t.id)),o=a.childrenFromPath;delete o[e][r.toString()],n[a.id]=up({},a,{children:i,childrenFromPath:o})}},xz=e=>{let{node:t,updatedNode:n,previousTree:r,tree:i,treeDepths:o}=e;t.children.forEach((e=>{i[e]=up({},i[e],{parent:n.id})})),wz({node:t,tree:i,treeDepths:o});const a=up({},t,n);_z(a,i,o,r)},kz=()=>({value:{},addAction(e,t){this.value[e]||(this.value[e]={}),this.value[e][t]=!0}}),Cz=e=>{let{tree:t,filteredRowsLookup:n}=e;if(!n)return{};const r={},i=(e,o)=>{const a=n[e.id];"group"===e.type&&e.children.forEach((n=>{const r=t[n];i(r,o&&!!e.childrenExpanded)})),r[e.id]=a&&o,"group"===e.type&&null!=e.footerId&&(r[e.footerId]=a&&o&&!!e.childrenExpanded)},o=Object.values(t);for(let a=0;a<o.length;a+=1){const e=o[a];0===e.depth&&i(e,!0)}return r},Sz=e=>{let{id:t,path:n,updatedGroupsManager:r,previousTree:i,tree:o,treeDepths:a,onDuplicatePath:s,isGroupExpandedByDefault:l,defaultGroupingExpansionDepth:c}=e,u=hv;for(let p=0;p<n.length;p+=1){var d;const{key:e,field:h}=n[p],f=null!=h?h:"__no_field__",m=null!=e?e:"__no_key__",g=null==(d=o[u].childrenFromPath)||null==(d=d[f])?void 0:d[m.toString()];if(p===n.length-1)if(null==g){const n={type:"leaf",id:t,depth:p,parent:u,groupingKey:e};null==r||r.addAction(u,"insertChildren"),_z(n,o,a,i)}else{const e=o[g];"group"===e.type&&e.isAutoGenerated?(null==r||r.addAction(u,"removeChildren"),null==r||r.addAction(u,"insertChildren"),xz({tree:o,previousTree:i,treeDepths:a,node:e,updatedNode:{id:t,isAutoGenerated:!1}})):null==s||s(g,t,n)}else if(null==g){const t=yz(n.slice(0,p+1)),s={type:"group",id:t,parent:u,depth:p,isAutoGenerated:!0,groupingKey:e,groupingField:h,children:[],childrenFromPath:{},childrenExpanded:!1};null==r||r.addAction(u,"insertChildren"),_z(bz(s,c,l),o,a,i),u=t}else{const t=o[g];if("group"!==t.type){const n={type:"group",id:t.id,parent:t.parent,depth:t.depth,isAutoGenerated:!1,groupingKey:e,groupingField:h,children:[],childrenFromPath:{},childrenExpanded:!1};o[g]=bz(n,c,l)}u=t.id}}};class Mz{constructor(e,t){this.next=void 0,this.data=void 0,this.next=t,this.data=e}insertAfter(e){if(!e.first||!e.last)return;const t=this.next;this.next=e.first,e.last.next=t}}class Tz{constructor(e,t){this.first=void 0,this.last=void 0,this.first=e,this.last=t}data(){const e=[];return this.forEach((t=>{e.push(t.data)})),e}forEach(e){let t=this.first;for(;null!==t;)e(t),t=t.next}static from(e){if(0===e.length)return new Tz(null,null);let t=0;const n=new Mz(e[t],null);let r=n;for(;t+1<e.length;){t+=1;const n=new Mz(e[t],null);r.next=n,r=n}return new Tz(n,r)}}const Ez=e=>{let{node:t,tree:n,treeDepths:r,updatedGroupsManager:i}=e;wz({node:t,tree:n,treeDepths:r}),"group"===t.type&&null!=t.footerId&&wz({node:n[t.footerId],tree:n,treeDepths:r});const o=n[t.parent];null==i||i.addAction(o.id,"removeChildren"),o.id!==hv&&0===o.children.length&&(o.isAutoGenerated?Ez({node:o,tree:n,treeDepths:r}):n[o.id]={type:"leaf",id:o.id,depth:o.depth,parent:o.parent,groupingKey:o.groupingKey})},Pz=e=>{let{id:t,tree:n,treeDepths:r,updatedGroupsManager:i}=e;const o=n[t];"group"===o.type&&o.children.length>0?(e=>{let{node:t,tree:n,treeDepths:r,updatedGroupsManager:i}=e;null==i||i.addAction(t.parent,"removeChildren"),null==i||i.addAction(t.parent,"insertChildren"),xz({previousTree:null,tree:n,treeDepths:r,node:t,updatedNode:{id:yz(vz({id:t.id,tree:n})),isAutoGenerated:!0}})})({node:o,tree:n,treeDepths:r,updatedGroupsManager:i}):Ez({node:o,tree:n,treeDepths:r,updatedGroupsManager:i})},Iz=["hideDescendantCount"],Oz=(e,t)=>{const n=r.useCallback((()=>{e.current.setStrategyAvailability("rowTree",WF,t.treeData?()=>!0:()=>!1)}),[e,t.treeData]),i=r.useCallback((()=>{var n;const r=t.groupingColDef;let i;i="function"==typeof r?r({groupingName:WF,fields:[]}):r;const o=null!=(n=i)?n:{},{hideDescendantCount:a}=o,s=Iv(o,Iz),l=up({},ZF,{renderCell:e=>ih(XF,up({},e,{hideDescendantCount:a})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return up({},l,s,GF)}),[e,t.groupingColDef]),o=r.useCallback((e=>{const n=GF.field,r=t.treeData,o=e.lookup[n];if(r){const t=i();if(o&&(t.width=o.width,t.flex=o.flex),e.lookup[n]=t,null==o){const t=e.orderedFields[0]===rj?1:0;e.orderedFields=[...e.orderedFields.slice(0,t),n,...e.orderedFields.slice(t)]}}else!r&&o&&(delete e.lookup[n],e.orderedFields=e.orderedFields.filter((e=>e!==n)));return e}),[t.treeData,i]),a=r.useCallback((e=>{if(!t.getTreeDataPath)throw new Error("MUI: No getTreeDataPath given.");const n=n=>({id:n,path:t.getTreeDataPath(e.dataRowIdToModelLookup[n]).map((e=>({key:e,field:null})))});return"full"===e.updates.type?(e=>{const t=[],n={[hv]:mv()},r={};for(let i=0;i<e.nodes.length;i+=1){const o=e.nodes[i];t.push(o.id),Sz({tree:n,previousTree:e.previousTree,id:o.id,path:o.path,onDuplicatePath:e.onDuplicatePath,treeDepths:r,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth})}return{tree:n,treeDepths:r,groupingName:e.groupingName,dataRowIds:t}})({previousTree:e.previousTree,nodes:e.updates.rows.map(n),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:WF,onDuplicatePath:(e,t,n)=>{throw new Error(["MUI: The path returned by `getTreeDataPath` should be unique.",`The rows with id #${e} and #${t} have the same.`,`Path: ${JSON.stringify(n.map((e=>e.key)))}.`].join("\n"))}}):(e=>{const t=up({},e.previousTree),n=up({},e.previousTreeDepth),r=kz();for(let o=0;o<e.nodes.inserted.length;o+=1){const{id:i,path:a}=e.nodes.inserted[o];Sz({previousTree:e.previousTree,tree:t,treeDepths:n,updatedGroupsManager:r,id:i,path:a,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth})}for(let o=0;o<e.nodes.removed.length;o+=1){const i=e.nodes.removed[o];Pz({tree:t,treeDepths:n,updatedGroupsManager:r,id:i})}for(let o=0;o<e.nodes.modified.length;o+=1){const{id:i,path:a}=e.nodes.modified[o];XS(vz({tree:t,id:i}),a)?null==r||r.addAction(t[i].parent,"modifyChildren"):(Pz({tree:t,treeDepths:n,updatedGroupsManager:r,id:i}),Sz({previousTree:e.previousTree,tree:t,treeDepths:n,updatedGroupsManager:r,id:i,path:a,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth}))}const i=xv(t,hv,!0);return{tree:t,treeDepths:n,groupingName:e.groupingName,dataRowIds:i,updatedGroupsManager:r}})({nodes:{inserted:e.updates.actions.insert.map(n),modified:e.updates.actions.modify.map(n),removed:e.updates.actions.remove},previousTree:e.previousTree,previousTreeDepth:e.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:WF})}),[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),s=r.useCallback((n=>(e=>{const{apiRef:t,rowTree:n,disableChildrenFiltering:r,isRowMatchingFilters:i}=e,o={},a={},s={},l={passingFilterItems:null,passingQuickFilterValues:null},c=(u,d,p)=>{let h;if(r&&u.depth>0)h=null;else if(i&&"footer"!==u.type){const n=t.current.getRow(u.id);i(n,void 0,l),h=XR([l.passingFilterItems],[l.passingQuickFilterValues],e.filterModel,e.apiRef,s)}else h=!0;let f,m=0;switch("group"===u.type&&u.children.forEach((e=>{var t;const r=n[e],i=c(r,null!=(t=h)?t:d,p&&!!u.childrenExpanded);m+=i})),h){case!0:f=!0;break;case!1:f=m>0;break;default:f=d}return o[u.id]=f,f?(a[u.id]=m,"footer"===u.type?m:m+1):0},u=Object.values(n);for(let d=0;d<u.length;d+=1){const e=u[d];0===e.depth&&c(e,!0,!0)}return{filteredRowsLookup:o,filteredDescendantCountLookup:a}})({rowTree:by(e),isRowMatchingFilters:n.isRowMatchingFilters,disableChildrenFiltering:t.disableChildrenFiltering,filterModel:n.filterModel,apiRef:e})),[e,t.disableChildrenFiltering]),l=r.useCallback((n=>(e=>{const{rowTree:t,disableChildrenSorting:n,sortRowList:r,shouldRenderGroupBelowLeaves:i}=e,o=new Map,a=e=>{let s;if(!r||n&&-1!==e.depth)if(i){const n=[],r=[];for(let i=0;i<e.children.length;i+=1){const o=e.children[i],s=t[o];"group"===s.type?(a(s),r.push(o)):"leaf"===s.type&&n.push(o)}s=[...n,...r]}else{for(let n=0;n<e.children.length;n+=1){const r=t[e.children[n]];"group"===r.type&&a(r)}s=[...e.children]}else{for(let n=0;n<e.children.length;n+=1){const r=t[e.children[n]];"group"===r.type&&a(r)}s=r(e.children.map((e=>t[e])))}null!=e.footerId&&s.push(e.footerId),o.set(e.id,s)};a(t[hv]);const s=Tz.from(o.get(hv));return s.forEach((e=>{const t=o.get(e.data);null!=t&&t.length&&e.insertAfter(Tz.from(t))})),s.data()})({rowTree:by(e),sortRowList:n.sortRowList,disableChildrenSorting:t.disableChildrenSorting,shouldRenderGroupBelowLeaves:!1})),[e,t.disableChildrenSorting]);SD(e,"hydrateColumns",o),TD(e,WF,"rowTreeCreation",a),TD(e,WF,"filtering",s),TD(e,WF,"sorting",l),TD(e,WF,"visibleRowsLookupCreation",Cz),tM((()=>{n()}));const c=r.useRef(!0);r.useEffect((()=>{c.current?c.current=!1:n()}),[n])},Lz=Nf,Rz="__detail_panel_toggle__",jz=up({},ej,{field:Rz,type:"detailPanelToggle",editable:!1,sortable:!1,filterable:!1,resizable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,align:"left",width:40,valueGetter:e=>tz(e.api.state).includes(e.id),renderCell:e=>ih(oz,up({},e)),renderHeader:()=>null}),Dz=["rowId","height","style"],Az=sx(rI,{name:"MuiDataGrid",slot:"DetailPanel",overridesResolver:(e,t)=>t.detailPanel})((e=>{let{theme:t}=e;return{zIndex:2,width:"100%",position:"absolute",backgroundColor:(t.vars||t).palette.background.default,overflow:"auto"}}));function Nz(e){const{rowId:t,height:n,style:i={}}=e,o=Iv(e,Dz),a=Lz(),s=r.useRef(),l=YF();r.useLayoutEffect((()=>{"auto"===n&&typeof ResizeObserver>"u"&&a.current.storeDetailPanelHeight(t,s.current.clientHeight)}),[a,n,t]),r.useLayoutEffect((()=>{if("auto"!==n||typeof ResizeObserver>"u")return;const e=new ResizeObserver((e=>{const[n]=e,r=n.borderBoxSize&&n.borderBoxSize.length>0?n.borderBoxSize[0].blockSize:n.contentRect.height;a.current.storeDetailPanelHeight(t,r)}));return e.observe(s.current),()=>e.disconnect()}),[a,n,t]);const c=up({},i,{height:n});return ih(Az,up({ref:s,ownerState:l,style:c},o))}const Fz=["className","disableVirtualization"],zz=(e,t,n)=>{var r,i;if(!Array.isArray(e.left)&&!Array.isArray(e.right))return[[],[]];if(0===(null==(r=e.left)?void 0:r.length)&&0===(null==(i=e.right)?void 0:i.length))return[[],[]];const o=(e,t)=>Array.isArray(e)?e.filter((e=>t.includes(e))):[],a=o(e.left,t),s=t.filter((e=>!a.includes(e))),l=o(e.right,s);return n?[l,a]:[a,l]},Bz=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,t/100},Uz=e=>e.vars?"rgba(0 0 0 /  0.21)":Mg(e.palette.common.black,.21),$z=sx("div",{name:"MuiDataGrid",slot:"DetailPanels",overridesResolver:(e,t)=>t.detailPanels})({position:"relative"}),Vz=`linear-gradient(${Mg("#fff",Bz(2))}, ${Mg("#fff",Bz(2))})`,qz=sx("div",{name:"MuiDataGrid",slot:"PinnedColumns",overridesResolver:(e,t)=>[{[`&.${Fg["pinnedColumns--left"]}`]:t["pinnedColumns--left"]},{[`&.${Fg["pinnedColumns--right"]}`]:t["pinnedColumns--right"]},t.pinnedColumns]})((e=>{let{theme:t,ownerState:n}=e;var r;const i=Uz(t);return up({position:"sticky",overflow:"hidden",zIndex:1,backgroundColor:(t.vars||t).palette.background.default},t.vars?{backgroundImage:null==(r=t.vars.overlays)?void 0:r[2]}:up({},"dark"===t.palette.mode&&{backgroundImage:Vz}),n.side===QF.left&&{left:0,float:"left",boxShadow:`2px 0px 4px -2px ${i}`},n.side===QF.right&&{right:0,float:"right",boxShadow:`-2px 0px 4px -2px ${i}`},n.side===QF.right&&n.showCellVerticalBorder&&{borderLeftWidth:"1px",borderLeftStyle:"solid"})}));var Zz=function(e){return e.top="top",e.bottom="bottom",e}(Zz||{});const Hz=sx("div",{name:"MuiDataGrid",slot:"PinnedRows",overridesResolver:(e,t)=>[{[`&.${Fg["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`&.${Fg["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},t.pinnedRows]})((e=>{let{theme:t,ownerState:n}=e;var r;const i=Uz(t);return up({position:"sticky",zIndex:4,backgroundColor:(t.vars||t).palette.background.default},t.vars?{backgroundImage:null==(r=t.vars.overlays)?void 0:r[2]}:up({},"dark"===t.palette.mode&&{backgroundImage:Vz}),"top"===n.position&&{top:0,boxShadow:`0px 3px 4px -2px ${i}`},n.position===Zz.bottom&&{boxShadow:`0px -3px 4px -2px ${i}`,bottom:0})})),Gz=sx("div")({position:"absolute"}),Wz=r.forwardRef((function(e,t){const n=Iv(e,Fz),i=Lz(),o=YF(),a=Yf(i,ry),s=Yf(i,tz),l=Yf(i,nz),c=Yf(i,iz),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=r.useRef(null),f=xx(),m=r.useCallback((e=>{let{top:t,left:n}=e;u.current&&(u.current.style.transform=`translate3d(0px, ${t}px, 0px)`),d.current&&(d.current.style.transform=`translate3d(0px, ${t}px, 0px)`),p.current&&(p.current.style.transform=`translate3d(${n}px, 0px, 0px)`),h.current&&(h.current.style.transform=`translate3d(${n}px, 0px, 0px)`)}),[]),g=r.useMemo((()=>{const e=new Set;return s.forEach((t=>{e.add(t)})),e}),[s]),y=r.useCallback((e=>g.has(e)?{style:{marginBottom:c[e]}}:null),[c,g]),v=Yf(i,JF),[b,_]=zz(v,a,"rtl"===f.direction),w=Yf(i,Cy),x=r.useMemo((()=>(null==w?void 0:w.top)||[]),[null==w?void 0:w.top]),k=r.useMemo((()=>(null==w?void 0:w.bottom)||[]),[null==w?void 0:w.bottom]),C=up({},o,{classes:o.classes}),S=(e=>{const{classes:t}=e;return Bp({leftPinnedColumns:["pinnedColumns","pinnedColumns--left"],rightPinnedColumns:["pinnedColumns","pinnedColumns--right","withBorderColor"],topPinnedRows:["pinnedRows","pinnedRows--top"],bottomPinnedRows:["pinnedRows","pinnedRows--bottom"],pinnedRowsRenderZone:["pinnedRowsRenderZone"],detailPanels:["detailPanels"],detailPanel:["detailPanel"]},Ng,t)})(C),{renderContext:M,getRows:T,getRootProps:E,getContentProps:P,getRenderZoneProps:I,updateRenderZonePosition:O}=GA(up({ref:t,renderZoneMinColumnIndex:b.length,renderZoneMaxColumnIndex:a.length-_.length,onRenderZonePositioning:m,getRowProps:y},e)),L=r.useCallback((()=>{M&&O(M)}),[M,O]);VS(i,"columnWidthChange",L),VS(i,"columnOrderChange",L),VS(i,"rowOrderChange",L);const R=M&&b.length>0?up({},M,{firstColumnIndex:0,lastColumnIndex:b.length}):null,j=M&&_.length>0?up({},M,{firstColumnIndex:a.length-_.length,lastColumnIndex:a.length}):null,D=[],A=T({renderContext:M,rows:x,position:"center"}),N=kv(i),F=T({renderContext:M,rowIndexOffset:x.length,position:"center",onRowRender:e=>{if(null==o.getDetailPanelContent||!g.has(e))return;const t=(e=>{const t=mM(i.current.state),n=l[e],o=i.current.getRowIndexRelativeToVisibleRows(e),a=void 0!==o;if(r.isValidElement(n)&&a){const r=i.current.detailPanelHasAutoHeight(e)?"auto":c[e],a=i.current.unstable_getRowInternalSizes(e),s=(null==a?void 0:a.spacingTop)||0,l=t.positions[o]+i.current.unstable_getRowHeight(e)+s;return ih(Nz,{rowId:e,style:{top:l},height:r,className:S.detailPanel,children:n},e)}return null})(e);t&&D.push(t)}}),z=T({renderContext:M,rows:k,rowIndexOffset:x.length+(F?F.length:0),position:"center"}),B=P(),U={minHeight:B.style.minHeight};return B.style.minHeight&&"100%"===B.style.minHeight&&(B.style.minHeight=`calc(100% - ${N.top}px - ${N.bottom}px)`),oh(yF,up({},E(n),{children:[ih(Pv,{}),x.length>0?oh(Hz,{className:S.topPinnedRows,ownerState:up({},C,{position:Zz.top}),style:{width:B.style.width,height:N.top},role:"rowgroup",children:[R&&ih(qz,{className:S.leftPinnedColumns,ownerState:up({},C,{side:QF.left,showCellVerticalBorder:o.showCellVerticalBorder}),children:T({renderContext:R,minFirstColumn:R.firstColumnIndex,maxLastColumn:R.lastColumnIndex,availableSpace:0,rows:x,position:"left"})}),ih(Gz,{className:S.pinnedRowsRenderZone,ref:p,role:"presentation",children:A}),j&&ih(qz,{className:S.rightPinnedColumns,ownerState:up({},C,{side:QF.right,showCellVerticalBorder:o.showCellVerticalBorder}),children:T({renderContext:j,minFirstColumn:j.firstColumnIndex,maxLastColumn:j.lastColumnIndex,availableSpace:0,rows:x,position:"right"})})]}):null,oh(bF,up({},B,{children:[R&&ih(qz,{ref:u,className:S.leftPinnedColumns,ownerState:up({},C,{side:QF.left,showCellVerticalBorder:o.showCellVerticalBorder}),style:U,children:T({renderContext:R,minFirstColumn:R.firstColumnIndex,maxLastColumn:R.lastColumnIndex,availableSpace:0,rowIndexOffset:x.length,position:"left"})}),ih(xF,up({},I(),{children:F})),j&&ih(qz,{ref:d,ownerState:up({},C,{side:QF.right,showCellVerticalBorder:o.showCellVerticalBorder}),className:S.rightPinnedColumns,style:U,children:T({renderContext:j,minFirstColumn:j.firstColumnIndex,maxLastColumn:j.lastColumnIndex,availableSpace:0,rowIndexOffset:x.length,position:"right"})}),D.length>0&&ih($z,{className:S.detailPanels,ownerState:C,children:D})]})),k.length>0?oh(Hz,{className:S.bottomPinnedRows,ownerState:up({},C,{position:Zz.bottom}),style:{width:B.style.width,height:N.bottom},role:"rowgroup",children:[R&&ih(qz,{className:S.leftPinnedColumns,ownerState:up({},C,{side:QF.left,showCellVerticalBorder:o.showCellVerticalBorder}),children:T({renderContext:R,minFirstColumn:R.firstColumnIndex,maxLastColumn:R.lastColumnIndex,availableSpace:0,rows:k,rowIndexOffset:x.length+(F?F.length:0),position:"left"})}),ih(Gz,{className:S.pinnedRowsRenderZone,ref:h,role:"presentation",children:z}),j&&ih(qz,{className:S.rightPinnedColumns,ownerState:up({},C,{side:QF.right,showCellVerticalBorder:o.showCellVerticalBorder}),children:T({renderContext:j,minFirstColumn:j.firstColumnIndex,maxLastColumn:j.lastColumnIndex,availableSpace:0,rows:k,rowIndexOffset:x.length+(F?F.length:0),position:"right"})})]}):null]}))})),Yz=(e,t,n)=>{var r;let i;if(n.current.caches.columnPinning={orderedFieldsBeforePinningColumns:null},t.disableColumnPinning)i={};else if(t.pinnedColumns)i=t.pinnedColumns;else if(null!=(r=t.initialState)&&r.pinnedColumns){var o;i=null==(o=t.initialState)?void 0:o.pinnedColumns}else i={};return up({},e,{pinnedColumns:i})},Kz=e=>t=>up({},t,{pinnedColumns:e}),Xz=(e,t)=>{var n,r,i;return up({},e,{detailPanel:{heightCache:{},expandedRowIds:null!=(n=null!=(r=t.detailPanelExpandedRowIds)?r:null==(i=t.initialState)||null==(i=i.detailPanel)?void 0:i.expandedRowIds)?n:[]}})};function Jz(e,t,n,r){if("function"!=typeof t)return{};const i=ky(e),o=i.reduce(((n,r)=>{const i=e.current.getRowParams(r);return n[r]=t(i),n}),{}),a=i.reduce(((t,i)=>{var a;if(null==o[i])return t;const s=e.current.getRowParams(i),l=n(s),c="auto"===l;return t[i]={autoHeight:c,height:c?null==(a=r[i])?void 0:a.height:l},t}),{});return{contentCache:o,heightCache:a}}function Qz(e){const t=pv(),n=YF(),i=Yf(t,Ly),o=Yf(t,xy),a=Yf(t,lj),s=e.row.__reorder__||e.id,l=r.useMemo((()=>!!n.rowReordering&&!i.length&&1===o&&0===Object.keys(a).length),[n.rowReordering,i,o,a]),c=(e=>{const{isDraggable:t,classes:n}=e;return Bp({root:["rowReorderCell",t&&"rowReorderCell--draggable"],placeholder:["rowReorderCellPlaceholder"]},Ng,n)})({isDraggable:l,classes:n.classes}),u=r.useCallback(((n,r)=>i=>{Hv(i)||!t.current.getRow(e.id)||(t.current.publishEvent(n,t.current.getRowParams(e.id),i),r&&r(i))}),[t,e.id]),d=l?{onDragStart:u("rowDragStart"),onDragOver:u("rowDragOver"),onDragEnd:u("rowDragEnd")}:null;return"footer"===e.rowNode.type?null:oh("div",up({className:c.root,draggable:l},d,{children:[ih(n.slots.rowReorderIcon,{}),ih("div",{className:c.placeholder,children:s})]}))}const eB=up({},ej,{field:"__reorder__",type:"reorder",sortable:!1,filterable:!1,width:50,align:"center",headerAlign:"center",disableColumnMenu:!0,disableExport:!0,disableReorder:!0,resizable:!1,aggregable:!1,renderHeader:()=>" ",renderCell:e=>"footer"===e.rowNode.type||"pinnedRow"===e.rowNode.type?null:ih(Qz,up({},e))});var tB=function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e}(tB||{});let nB=null,rB={previousTargetId:null,dragDirection:null};const iB=(e,t)=>{const n=HS(e,"useGridRowReorder"),i=Yf(e,Ly),o=Yf(e,xy),a=r.useRef(null),s=r.useRef(null),l=r.useRef(),c=(e=>{const{classes:t}=e;return Bp({rowDragging:["row--dragging"]},Ng,t)})({classes:t.classes}),[u,d]=r.useState("");r.useEffect((()=>()=>{clearTimeout(l.current)}),[]);const p=r.useMemo((()=>!t.rowReordering||!!i.length||1!==o),[t.rowReordering,i,o]),h=r.useCallback(((t,r)=>{const i=lj(e.current.state);p||0!==Object.keys(i).length||(n.debug(`Start dragging row ${t.id}`),r.stopPropagation(),a.current=r.currentTarget,a.current.classList.add(c.rowDragging),d(t.id),l.current=setTimeout((()=>{a.current.classList.remove(c.rowDragging)})),s.current=e.current.getRowIndexRelativeToVisibleRows(t.id),e.current.setCellFocus(t.id,eB.field))}),[p,c.rowDragging,n,e]),f=r.useCallback(((t,r)=>{if(""===u)return;const i=e.current.getRowNode(t.id);if(!i||"footer"===i.type||"pinnedRow"===i.type)return;n.debug(`Dragging over row ${t.id}`),r.preventDefault(),r.stopPropagation();const o=nB?nB.y-r.clientY:r.clientY;if(t.id!==u){const n=e.current.getRowIndexRelativeToVisibleRows(t.id),r={dragDirection:o>0?tB.DOWN:tB.UP,previousTargetId:t.id},i=r.dragDirection!==rB.dragDirection||r.previousTargetId!==rB.previousTargetId;(null===rB.dragDirection||Math.abs(o)>=1&&i)&&(e.current.setRowIndex(u,n),rB=r)}nB={x:r.clientX,y:r.clientY}}),[e,n,u]),m=r.useCallback(((t,r)=>{const i=lj(e.current.state);if(""!==u&&!p&&0===Object.keys(i).length){if(n.debug("End dragging row"),r.preventDefault(),r.stopPropagation(),clearTimeout(l.current),a.current=null,rB.dragDirection=null,"none"===r.dataTransfer.dropEffect)e.current.setRowIndex(u,s.current),s.current=null;else{const n={row:e.current.getRow(u),targetIndex:e.current.getRowIndexRelativeToVisibleRows(t.id),oldIndex:s.current};e.current.publishEvent("rowOrderChange",n)}d("")}}),[p,n,e,u]);VS(e,"rowDragStart",h),VS(e,"rowDragOver",f),VS(e,"rowDragEnd",m),VS(e,"cellDragOver",f),ZS(e,"rowOrderChange",t.onRowOrderChange)},oB=(e,t)=>{const n=(e=>{const{classes:t}=e;return r.useMemo((()=>Bp({rowReorderCellContainer:["rowReorderCellContainer"],columnHeaderReorder:["columnHeaderReorder"]},Ng,t)),[t])})({classes:t.classes}),i=r.useCallback((r=>{const i=up({},eB,{cellClassName:n.rowReorderCellContainer,headerClassName:n.columnHeaderReorder,headerName:e.current.getLocaleText("rowReorderingHeaderName")}),o=t.rowReordering,a=null!=r.lookup[i.field];return o&&a||(o&&!a?(r.lookup[i.field]=i,r.orderedFields=[i.field,...r.orderedFields]):!o&&a&&(delete r.lookup[i.field],r.orderedFields=r.orderedFields.filter((e=>e!==i.field)))),r}),[e,n,t.rowReordering]);SD(e,"hydrateColumns",i)};function aB(e){let{lazyLoadingFeatureFlag:t,rowsLoadingMode:n,gridDimensions:r}=e;return!t||!r||"server"!==n}const sB=e=>`auto-generated-skeleton-row-root-${e}`;function lB(e,t){var n,r;const i={topIds:[],bottomIds:[],idLookup:{}};return null==e||null==(n=e.top)||n.forEach((e=>{const n=yv(e,t);i.topIds.push(n),i.idLookup[n]=e})),null==e||null==(r=e.bottom)||r.forEach((e=>{const n=yv(e,t);i.bottomIds.push(n),i.idLookup[n]=e})),i}const cB=(e,t,n)=>{var r;return n.current.caches.pinnedRows=lB(t.pinnedRows,t.getRowId),up({},e,{rows:up({},e.rows,{additionalRowGroups:up({},null==(r=e.rows)?void 0:r.additionalRowGroups,{pinnedRows:{top:[],bottom:[]}})})})};function uB(e){let{groupingParams:t,rowModel:n,rowId:r,position:i,apiRef:o,isAutoGenerated:a}=e;var s,l;const c=up({},t.dataRowIdToModelLookup),u=up({},t.dataRowIdToIdLookup),d=up({},t.tree),p=up({},t.treeDepths);_z({type:"pinnedRow",id:r,depth:0,parent:hv,isAutoGenerated:a},d,p,null),a||(c[r]=n,u[r]=r),o.current.caches.rows.dataRowIdToModelLookup[r]=up({},n),o.current.caches.rows.dataRowIdToIdLookup[r]=r;const h=(null==(s=t.additionalRowGroups)?void 0:s.pinnedRows)||{},f={id:r,model:n};return null!=(l=t.additionalRowGroups)&&null!=(l=l.pinnedRows)&&null!=(l=l[i])&&l.includes(f)?up({},t,{dataRowIdToModelLookup:c,dataRowIdToIdLookup:u,tree:d,treeDepths:p}):up({},t,{dataRowIdToModelLookup:c,dataRowIdToIdLookup:u,tree:d,treeDepths:p,additionalRowGroups:up({},t.additionalRowGroups,{pinnedRows:up({},h,{[i]:[...h[i]||[],f]})})})}const dB=(e,t)=>{const n=ID(e,t);return jA(n,t),oB(n,t),Oz(n,t),((e,t)=>{var n;const{lazyLoading:i}=null!=(n=t.experimentalFeatures)?n:{},o=r.useCallback((e=>{const n=e.tree[hv];if(!i||"server"!==t.rowsLoadingMode||!t.rowCount||n.children.length>=t.rowCount)return e;const r=up({},e.tree),o=[...n.children];for(let i=0;i<t.rowCount-n.children.length;i+=1){const e=sB(i);o.push(e);const t={type:"skeletonRow",id:e,parent:hv,depth:0};r[e]=t}return r[hv]=up({},n,{children:o}),up({},e,{tree:r})}),[t.rowCount,t.rowsLoadingMode,i]);SD(e,"hydrateRows",o)})(n,t),(e=>{const t=r.useCallback((t=>{var n,r,i,o;const a=e.current.caches.pinnedRows||{};let s=up({},t,{additionalRowGroups:up({},t.additionalRowGroups,{pinnedRows:{}})});if(null==(n=a.topIds)||n.forEach((t=>{s=uB({groupingParams:s,rowModel:a.idLookup[t],rowId:t,position:"top",apiRef:e,isAutoGenerated:!1})})),null==(r=a.bottomIds)||r.forEach((t=>{s=uB({groupingParams:s,rowModel:a.idLookup[t],rowId:t,position:"bottom",apiRef:e,isAutoGenerated:!1})})),null!=(i=a.bottomIds)&&i.length||null!=(o=a.topIds)&&o.length){const e=e=>!(s.tree[e]&&"pinnedRow"===s.tree[e].type),t=s.tree[hv];s.tree[hv]=up({},t,{children:t.children.filter(e)}),s.dataRowIds=s.dataRowIds.filter(e)}return s}),[e]);SD(e,"hydrateRows",t)})(n),((e,t)=>{const n=r.useCallback((n=>null==t.getDetailPanelContent?(n.lookup[Rz]&&(delete n.lookup[Rz],n.orderedFields=n.orderedFields.filter((e=>e!==Rz))),n):(n.lookup[Rz]||(n.orderedFields=[Rz,...n.orderedFields],n.lookup[Rz]=up({},jz,{headerName:e.current.getLocaleText("detailPanelToggle")})),n)),[e,t.getDetailPanelContent]),i=r.useCallback(((n,r)=>null!=t.getDetailPanelContent&&tz(e.current.state).includes(r)?[...n,Fg["row--detailPanelExpanded"]]:n),[e,t.getDetailPanelContent]);SD(e,"hydrateColumns",n),SD(e,"rowClassName",i)})(n,t),((e,t)=>{const{disableColumnPinning:n,pinnedColumns:i,initialState:o}=t,a=xx();let s=JF(e.current.state);if(null==s){const t=Yz(e.current.state,{disableColumnPinning:n,pinnedColumns:i,initialState:o},e);s=JF(t)}const l=r.useRef([]),c=r.useCallback((t=>{if(0===t.orderedFields.length||n)return t;const[r,i]=zz(s,t.orderedFields,"rtl"===a.direction);let o;const c=[...r,...i],{orderedFieldsBeforePinningColumns:u}=e.current.caches.columnPinning;if(u){o=new Array(t.orderedFields.length).fill(null);const n=[...o],r=[...t.orderedFields];l.current.forEach((e=>{if(!c.includes(e)&&t.lookup[e]){const t=u.indexOf(e);o[t]=e,n[t]=e,r.splice(r.indexOf(e),1)}})),c.forEach((e=>{let i=u.indexOf(e);if((-1===i||i>=n.length)&&(i=t.orderedFields.indexOf(e)),null!==n[i])for(i=0;null!==n[i];)i+=1;o[i]=e,n[i]=e,r.splice(r.indexOf(e),1)}));let i=0;r.forEach((e=>{for(;null!==n[i];)i+=1;n[i]=e,o[i]=e})),e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=n}else o=[...t.orderedFields],e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=[...t.orderedFields];l.current=c;const d=o.filter((e=>!r.includes(e)&&!i.includes(e)));return up({},t,{orderedFields:[...r,...d,...i]})}),[e,n,s,a.direction]);SD(e,"hydrateColumns",c)})(n,t),IA(n),OD(TF,n,t),OD(LA,n,t),OD(Xz,n,t),OD(Yz,n,t),OD(YD,n,t),OD(cB,n,t),OD(TA,n,t),OD(SA,n,t),OD(pA,n,t),OD(DA,n,t),OD(yA,n,t),OD(sA,n,t),OD(JD,n,t),OD(LF,n,t),OD(qF,n,t),OD(rA,n,t),OD(iF,n,t),OD(FD,n,t),OD(fF,n,t),OD(LM,n,t),((e,t)=>{const n=HS(e,"useGridHeaderFiltering"),i=r.useCallback((n=>{e.current.setState((e=>{var r,i;return"DataGrid"===t.signature?e:up({},e,{headerFiltering:{editing:null!=(r=n.editing)?r:null,menuOpen:null!=(i=n.menuOpen)?i:null}})})),e.current.forceUpdate()}),[e,t.signature]),o=r.useCallback((t=>{n.debug(`Starting edit mode on header filter for field: ${t}`),e.current.setHeaderFilterState({editing:t})}),[e,n]),a=r.useCallback((()=>{n.debug("Stopping edit mode on header filter"),e.current.setHeaderFilterState({editing:null})}),[e,n]),s=r.useCallback((t=>{n.debug(`Opening header filter menu for field: ${t}`),e.current.setHeaderFilterState({menuOpen:t})}),[e,n]),l=r.useCallback((()=>{n.debug("Hiding header filter menu for active field");let t=e.current.state.headerFiltering.menuOpen;if(t){const n=Qg(e),r=ty(e),i=Jg(e);if(n[t]||(t=i[0]),!1===r[t]){const e=i.filter((e=>e===t||!1!==r[e])),n=e.indexOf(t);t=e[n+1]||e[n-1]}e.current.setHeaderFilterState({menuOpen:null}),e.current.setColumnHeaderFilterFocus(t)}}),[e,n]),c={setHeaderFilterState:i};Gv(e,{startHeaderFilterEditMode:o,stopHeaderFilterEditMode:a,showHeaderFilterMenu:s,hideHeaderFilterMenu:l},"public"),Gv(e,c,"private")})(n,t),(e=>{const t=r.useCallback(((t,n)=>{if("treeDataGroup"===e.current.getCellParams(t.id,t.field).colDef.type&&" "===n.key&&!n.shiftKey){if("group"!==t.rowNode.type)return;e.current.setRowChildrenExpansion(t.id,!t.rowNode.childrenExpanded)}}),[e]);VS(e,"cellKeyDown",t)})(n),gA(n,t),RA(n,t),((e,t)=>{var n;const i=Yf(e,JF),o=xx(),a=r.useCallback(((n,r)=>{if(t.disableColumnPinning)return n;const a=ry(e),[s,l]=zz(i,a,"rtl"===o.direction);if(!r.colIndex||0===s.length&&0===l.length)return n;const c=ny(e),u=oy(e),d=iy(e),p=e.current.virtualScrollerRef.current.clientWidth,h=Math.abs(e.current.virtualScrollerRef.current.scrollLeft),f=c[r.colIndex].computedWidth,m=d[r.colIndex],g=d[s.length],y=u-d[d.length-l.length],v=m+f;return v-(p-y)>h?up({},n,{left:v-(p-y)}):m<h+g?up({},n,{left:m-g}):n}),[e,i,t.disableColumnPinning,o.direction]),s=r.useCallback(((e,n)=>t.disableColumnPinning||!1===n.pinnable?e:[...e,"columnMenuPinningItem"]),[t.disableColumnPinning]),l=r.useCallback(((t,n)=>{let{targetIndex:r}=n;const a=ry(e),[s,l]=zz(i,a,"rtl"===o.direction);return 0===s.length&&0===l.length?t:!(s.length>0&&r<s.length)&&(l.length>0?!(r>=ny(e).length-l.length)&&t:t)}),[e,i,o.direction]),c=r.useCallback(((n,r)=>{var i,o,a;const s=JF(e.current.state);return!r.exportOnlyDirtyModels||null!=t.pinnedColumns||null!=(null==(i=t.initialState)?void 0:i.pinnedColumns)||(null!=(o=s.left)?o:[]).length>0||(null!=(a=s.right)?a:[]).length>0?up({},n,{pinnedColumns:s}):n}),[e,t.pinnedColumns,null==(n=t.initialState)?void 0:n.pinnedColumns]),u=r.useCallback(((t,n)=>{const r=n.stateToRestore.pinnedColumns;return null!=r&&e.current.setState(Kz(r)),t}),[e]);SD(e,"scrollToIndexes",a),SD(e,"columnMenu",s),SD(e,"canBeReordered",l),SD(e,"exportState",c),SD(e,"restoreState",u),e.current.registerControlState({stateId:"pinnedColumns",propModel:t.pinnedColumns,propOnChange:t.onPinnedColumnsChange,stateSelector:JF,changeEvent:"pinnedColumnsChange"});const d=r.useCallback((e=>{if(t.disableColumnPinning)throw new Error(`MUI: You cannot call \`apiRef.current.${e}\` when \`disableColumnPinning\` is true.`)}),[t.disableColumnPinning]),p=r.useCallback(((t,n)=>{if(d("pinColumn"),e.current.isColumnPinned(t)===n)return;const r=n===QF.right?QF.left:QF.right,o={[n]:[...i[n]||[],t],[r]:(i[r]||[]).filter((e=>e!==t))};e.current.setPinnedColumns(o)}),[e,d,i]),h=r.useCallback((t=>{d("unpinColumn"),e.current.setPinnedColumns({left:(i.left||[]).filter((e=>e!==t)),right:(i.right||[]).filter((e=>e!==t))})}),[e,d,i.left,i.right]),f=r.useCallback((()=>(d("getPinnedColumns"),JF(e.current.state))),[e,d]),m=r.useCallback((t=>{d("setPinnedColumns"),e.current.setState(Kz(t)),e.current.forceUpdate()}),[e,d]),g=r.useCallback((e=>(d("isColumnPinned"),(i.left||[]).includes(e)?QF.left:!!(i.right||[]).includes(e)&&QF.right)),[i.left,i.right,d]);Gv(e,{pinColumn:p,unpinColumn:h,getPinnedColumns:f,setPinnedColumns:m,isColumnPinned:g},"public");const y=r.useCallback((t=>{if(!e.current.caches.columnPinning.orderedFieldsBeforePinningColumns)return;const{column:n,targetIndex:r,oldIndex:i}=t,o=r>i?1:-1,a=Jg(e)[r-o],s=[...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];let l=s.findIndex((e=>e===n.field)),c=l+o;const u=s.findIndex((e=>e===a));for(;o>0?l<u:l>u;){for(;e.current.isColumnPinned(s[c]);)c+=o;const t=s[l];s[l]=s[c],s[c]=t,l=c,c=l+o}e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=s}),[e]);VS(e,"columnOrderChange",y),r.useEffect((()=>{t.pinnedColumns&&e.current.setPinnedColumns(t.pinnedColumns)}),[e,t.pinnedColumns])})(n,t),((e,t)=>{const n=r.useCallback((n=>{e.current.caches.pinnedRows=lB(n,t.getRowId),e.current.requestPipeProcessorsApplication("hydrateRows")}),[e,t.getRowId]);Gv(e,{unstable_setPinnedRows:n},"public");const i=r.useRef(!0);r.useEffect((()=>{i.current?i.current=!1:e.current.unstable_setPinnedRows(t.pinnedRows)}),[e,t.pinnedRows])})(n,t),KD(n,t),EA(n,t),Yv(n,t),((e,t)=>{const n=Yf(e,tz),i=Yf(e,nz),o=r.useCallback(((n,o)=>{if(n.field!==Rz||null==t.getDetailPanelContent)return;const a=i[n.id];!r.isValidElement(a)||o.target!==o.currentTarget&&e.current.toggleDetailPanel(n.id)}),[e,i,t.getDetailPanelContent]),a=r.useCallback(((n,r)=>{null!=t.getDetailPanelContent&&n.field===Rz&&" "===r.key&&e.current.toggleDetailPanel(n.id)}),[e,t.getDetailPanelContent]);VS(e,"cellClick",o),VS(e,"cellKeyDown",a),e.current.registerControlState({stateId:"detailPanels",propModel:t.detailPanelExpandedRowIds,propOnChange:t.onDetailPanelExpandedRowIdsChange,stateSelector:tz,changeEvent:"detailPanelsExpandedRowIdsChange"});const s=r.useCallback((n=>{if(null==t.getDetailPanelContent)return;const o=i[n];if(!r.isValidElement(o))return;const a=e.current.getExpandedDetailPanels();e.current.setExpandedDetailPanels(a.includes(n)?a.filter((e=>e!==n)):[...a,n])}),[e,i,t.getDetailPanelContent]),l=r.useCallback((()=>tz(e.current.state)),[e]),c=r.useCallback((t=>{e.current.setState((e=>up({},e,{detailPanel:up({},e.detailPanel,{expandedRowIds:t})}))),e.current.forceUpdate()}),[e]),u={storeDetailPanelHeight:r.useCallback(((t,n)=>{const r=rz(e.current.state);!r[t]||r[t].height===n||(e.current.setState((e=>up({},e,{detailPanel:up({},e.detailPanel,{heightCache:up({},r,{[t]:up({},r[t],{height:n})})})}))),e.current.requestPipeProcessorsApplication("rowHeight"))}),[e]),detailPanelHasAutoHeight:r.useCallback((t=>{const n=rz(e.current.state);return!!n[t]&&n[t].autoHeight}),[e])};Gv(e,{toggleDetailPanel:s,getExpandedDetailPanels:l,setExpandedDetailPanels:c},"public"),Gv(e,u,"private"),r.useEffect((()=>{t.detailPanelExpandedRowIds&&tz(e.current.state)!==t.detailPanelExpandedRowIds&&e.current.setExpandedDetailPanels(t.detailPanelExpandedRowIds)}),[e,t.detailPanelExpandedRowIds]);const d=r.useCallback((()=>{e.current.setState((n=>up({},n,{detailPanel:up({},n.detailPanel,Jz(e,t.getDetailPanelContent,t.getDetailPanelHeight,n.detailPanel.heightCache))}))),e.current.forceUpdate()}),[e,t.getDetailPanelContent,t.getDetailPanelHeight]);VS(e,"sortedRowsSet",d);const p=r.useRef(),h=r.useRef(),f=r.useCallback((()=>{t.getDetailPanelContent===p.current&&t.getDetailPanelHeight===h.current||(e.current.setState((n=>up({},n,{detailPanel:up({},n.detailPanel,Jz(e,t.getDetailPanelContent,t.getDetailPanelHeight,n.detailPanel.heightCache))}))),p.current=t.getDetailPanelContent,h.current=t.getDetailPanelHeight)}),[e,t.getDetailPanelContent,t.getDetailPanelHeight]),m=r.useCallback(((t,r)=>{var i;if(!n||0===n.length||!n.includes(r.id))return t.detail=0,t;f();const o=iz(e);return t.detail=null!=(i=o[r.id])?i:0,t}),[e,n,f]);SD(e,"rowHeight",m);const g=r.useRef(!0);g.current&&(g.current=!1,f())})(n,t),lF(n),mF(n,t),MA(n,t),hA(n,t),vA(n,t),dA(n,t),AA(n,t),QD(n,t),RF(n,t),((e,t)=>{const n=HS(e,"useGridColumnResize"),i=r.useRef(),o=r.useRef(),a=r.useRef(),s=r.useRef(),l=r.useRef(),c=xx(),u=r.useRef(),d=r.useRef(),p=XE(),h=r.useRef(),f=e=>{n.debug(`Updating width to ${e} for col ${i.current.field}`);const t=o.current.offsetWidth,r=e-t;i.current.computedWidth=e,i.current.width=e,i.current.flex=0,o.current.style.width=`${e}px`,o.current.style.minWidth=`${e}px`,o.current.style.maxWidth=`${e}px`;const c=a.current;c&&(c.style.width=`${e}px`,c.style.minWidth=`${e}px`,c.style.maxWidth=`${e}px`),[...l.current,...s.current].forEach((t=>{const n=t;let i;i="1"===n.getAttribute("aria-colspan")?`${e}px`:`${n.offsetWidth+r}px`,n.style.width=i,n.style.minWidth=i,n.style.maxWidth=i}))},m=t=>{w(),i.current&&(e.current.setColumnWidth(i.current.field,i.current.width),n.debug(`Updating col ${i.current.field} with new width: ${i.current.width}`)),p.start(0,(()=>{e.current.publishEvent("columnResizeStop",null,t)}))},g=Np(m),y=Np((t=>{if(0===t.buttons)return void g(t);let n=FF(u.current,t.clientX,o.current.getBoundingClientRect(),d.current);n=KS(n,i.current.minWidth,i.current.maxWidth),f(n);const r={element:o.current,colDef:i.current,width:n};e.current.publishEvent("columnResize",r,t)})),v=Np((e=>{!NF(e,h.current)||m(e)})),b=Np((t=>{const n=NF(t,h.current);if(!n)return;if("mousemove"===t.type&&0===t.buttons)return void v(t);let r=FF(u.current,n.x,o.current.getBoundingClientRect(),d.current);r=KS(r,i.current.minWidth,i.current.maxWidth),f(r);const a={element:o.current,colDef:i.current,width:r};e.current.publishEvent("columnResize",a,t)})),_=Np((t=>{var r,a;if(!Vv(t.target,Fg["columnSeparator--resizable"]))return;t.preventDefault();const p=t.changedTouches[0];null!=p&&(h.current=p.identifier),o.current=Vv(t.target,Fg.columnHeader);const f=function(e){return e.getAttribute("data-field")}(o.current),m=e.current.getColumn(f);s.current=jF(null==(r=e.current.columnHeadersContainerElementRef)?void 0:r.current,f),n.debug(`Start Resize on col ${m.field}`),e.current.publishEvent("columnResizeStart",{field:f},t),i.current=m,o.current=function(e,t){return e.querySelector(`[data-field="${t}"]`)}(null==(a=e.current.columnHeadersElementRef)?void 0:a.current,m.field),l.current=DF(o.current,e.current),d.current=BF(t.target,c.direction),u.current=zF(p.clientX,o.current.getBoundingClientRect(),d.current);const g=Pp(t.currentTarget);g.addEventListener("touchmove",b),g.addEventListener("touchend",v)})),w=r.useCallback((()=>{const t=Pp(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",g),t.removeEventListener("touchmove",b),t.removeEventListener("touchend",v),setTimeout((()=>{t.removeEventListener("click",UF,!0)}),100),o.current&&(o.current.style.pointerEvents="unset")}),[e,o,y,g,b,v]),x=r.useCallback((t=>{let{field:n}=t;e.current.setState((e=>up({},e,{columnResize:up({},e.columnResize,{resizingColumnField:n})}))),e.current.forceUpdate()}),[e]),k=r.useCallback((()=>{e.current.setState((e=>up({},e,{columnResize:up({},e.columnResize,{resizingColumnField:""})}))),e.current.forceUpdate()}),[e]),C=Np(((t,r)=>{let{colDef:p}=t;var h,f,m;if(0!==r.button||!r.currentTarget.classList.contains(Fg["columnSeparator--resizable"]))return;r.preventDefault(),n.debug(`Start Resize on col ${p.field}`),e.current.publishEvent("columnResizeStart",{field:p.field},r),i.current=p,o.current=null==(h=e.current.columnHeadersContainerElementRef)?void 0:h.current.querySelector(`[data-field="${p.field}"]`);const v=null==(f=e.current.headerFiltersElementRef)?void 0:f.current;v&&(a.current=v.querySelector(`[data-field="${p.field}"]`)),s.current=jF(null==(m=e.current.columnHeadersContainerElementRef)?void 0:m.current,p.field),l.current=DF(o.current,e.current);const b=Pp(e.current.rootElementRef.current);b.body.style.cursor="col-resize",d.current=BF(r.currentTarget,c.direction),u.current=zF(r.clientX,o.current.getBoundingClientRect(),d.current),b.addEventListener("mousemove",y),b.addEventListener("mouseup",g),b.addEventListener("click",UF,!0)})),S=Np(((n,r)=>{if(t.disableAutosize||0!==r.button)return;const i=e.current.state.columns.lookup[n.field];!1!==i.resizable&&e.current.autosizeColumns(up({},t.autosizeOptions,{columns:[i.field]}))})),M=$F(e),T=r.useRef(!1),E=r.useCallback((async t=>{var n,r;if(!(null==(n=e.current.rootElementRef)?void 0:n.current)||T.current)return;T.current=!0;const i=Xg(e.current.state),o=up({},AF,t,{columns:null!=(r=null==t?void 0:t.columns)?r:i.orderedFields});o.columns=o.columns.filter((e=>!1!==i.columnVisibilityModel[e]));const a=o.columns.map((t=>e.current.state.columns.lookup[t]));try{e.current.unstable_setColumnVirtualization(!1),await M();const t=VF(e,o,a),n=a.map((e=>up({},e,{width:t[e.field],computedWidth:t[e.field]})));if(o.expand){var s,l;const r=i.orderedFields.map((e=>i.lookup[e])).filter((e=>!1!==i.columnVisibilityModel[e.field])).reduce(((e,n)=>{var r,i;return e+(null!=(r=null!=(i=t[n.field])?i:n.computedWidth)?r:n.width)}),0),o=(null!=(s=null==(l=e.current.getRootDimensions())?void 0:l.viewportInnerSize.width)?s:0)-r;if(o>0){const e=o/(n.length||1);n.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(n)}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}}),[e,M]);r.useEffect((()=>w),[w]),Uf((()=>{t.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(t.autosizeOptions)}))})),eM(e,(()=>{var t;return null==(t=e.current.columnHeadersElementRef)?void 0:t.current}),"touchstart",_,{passive:!1}),Gv(e,{autosizeColumns:E},"public"),VS(e,"columnResizeStop",k),VS(e,"columnResizeStart",x),VS(e,"columnSeparatorMouseDown",C),VS(e,"columnSeparatorDoubleClick",S),ZS(e,"columnResize",t.onColumnResize),ZS(e,"columnWidthChange",t.onColumnWidthChange)})(n,t),oA(n,t),aF(n,t),iB(n,t),FA(n,t),((e,t)=>{const n=Yf(e,ny),i=IR(e,t),o=Yf(e,mM),a=Math.max(o.currentPageTotalHeight,1),s=r.useRef(!1),l=r.useCallback((r=>{const o=e.current.getRootDimensions();if(!o||"client"!==t.rowsLoadingMode)return;const l=r.top+o.viewportOuterSize.height,c=e.current.getViewportPageSize();if(l<a-t.scrollEndThreshold&&(s.current=!1),l>=a-t.scrollEndThreshold&&!s.current){const t={visibleColumns:n,viewportPageSize:c,visibleRowsCount:i.rows.length};e.current.publishEvent("rowsScrollEnd",t),s.current=!0}}),[a,t.scrollEndThreshold,t.rowsLoadingMode,n,e,i.rows.length]),c=r.useCallback((e=>{let{left:t,top:n}=e;l({left:t,top:n})}),[l]);VS(e,"scrollPositionChange",c),ZS(e,"rowsScrollEnd",t.onRowsScrollEnd)})(n,t),((e,t)=>{var n;const i=IR(e,t),o=Yf(e,Ly),a=Yf(e,Dy),s=r.useRef({firstRowToRender:0,lastRowToRender:0}),{lazyLoading:l}=null!=(n=t.experimentalFeatures)?n:{},c=r.useCallback((()=>{const n=e.current.getRenderContext(),[r,o]=qA({firstIndex:n.firstRowIndex,lastIndex:n.lastRowIndex,minFirstIndex:0,maxLastIndex:i.rows.length,buffer:t.rowBuffer});return{firstRowToRender:r,lastRowToRender:o}}),[e,t.rowBuffer,i.rows.length]),u=r.useCallback((n=>{const r=e.current.getRootDimensions();if(aB({lazyLoadingFeatureFlag:l,rowsLoadingMode:t.rowsLoadingMode,gridDimensions:r}))return;const c={firstRowToRender:n.firstRowToRender,lastRowToRender:n.lastRowToRender,sortModel:o,filterModel:a};if(s.current.firstRowToRender!==n.firstRowToRender||s.current.lastRowToRender!==n.lastRowToRender){if(0===o.length&&0===a.items.length){const t=function(e){let{apiRef:t,visibleRows:n,range:r}=e,{firstRowIndex:i,lastRowIndex:o}=r;const a=n.slice(r.firstRowIndex,r.lastRowIndex);let s=0,l=a.length-1,c=!1;for(;!c&&i<o;){var u,d;const e="skeletonRow"===(null==(u=t.current.getRowNode(a[s].id))?void 0:u.type),n="skeletonRow"===(null==(d=t.current.getRowNode(a[l].id))?void 0:d.type);e&&n&&(c=!0),e||(s+=1,i+=1),n||(l-=1,o-=1)}return c?{firstRowIndex:i,lastRowIndex:o}:void 0}({apiRef:e,visibleRows:i.rows,range:{firstRowIndex:n.firstRowToRender,lastRowIndex:n.lastRowToRender}});if(!t)return;c.firstRowToRender=t.firstRowIndex,c.lastRowToRender=t.lastRowIndex}s.current=n,e.current.publishEvent("fetchRows",c)}}),[e,t.rowsLoadingMode,o,a,i.rows,l]),d=r.useCallback((n=>{const r=e.current.getRootDimensions();if(aB({lazyLoadingFeatureFlag:l,rowsLoadingMode:t.rowsLoadingMode,gridDimensions:r}))return;e.current.requestPipeProcessorsApplication("hydrateRows");const{firstRowToRender:i,lastRowToRender:o}=c(),s={firstRowToRender:i,lastRowToRender:o,sortModel:n,filterModel:a};e.current.publishEvent("fetchRows",s)}),[e,t.rowsLoadingMode,a,l,c]),p=r.useCallback((n=>{const r=e.current.getRootDimensions();if(aB({lazyLoadingFeatureFlag:l,rowsLoadingMode:t.rowsLoadingMode,gridDimensions:r}))return;e.current.requestPipeProcessorsApplication("hydrateRows");const{firstRowToRender:i,lastRowToRender:a}=c(),s={firstRowToRender:i,lastRowToRender:a,sortModel:o,filterModel:n};e.current.publishEvent("fetchRows",s)}),[e,t.rowsLoadingMode,o,l,c]);VS(e,"renderedRowsIntervalChange",u),VS(e,"sortModelChange",d),VS(e,"filterModelChange",p),ZS(e,"fetchRows",t.onFetchRows)})(n,t),zD(n),nA(n,t),aA(n,t),ND(n,t),BA(n,t),zA(n,t),sF(n),RM(n,t),n},pB=up({},RT,{columnMenuPinningItem:ez}),hB=up({},jT,{columnMenuPinningItem:{displayOrder:15}}),fB=r.forwardRef((function(e,t){return ih(DT,up({ref:t},e,{defaultSlots:pB,defaultSlotProps:hB}))})),mB=["getColumnsToRender","getRootProps"],gB=_g("div",{name:"MuiDataGrid",slot:"HeaderFilterRow",overridesResolver:(e,t)=>t.headerFilterRow})((()=>({display:"flex"}))),yB=Object.create(null),vB=e=>{const t=Nf(),{headerGroupingMaxDepth:n,hasOtherElementInTabSequence:i}=e,o=Yf(t,rv),a=KA(up({},e,{hasOtherElementInTabSequence:i||null!==o})),{getColumnsToRender:s,getRootProps:l}=a,c=Iv(a,mB),u=r.useRef(null);t.current.register("private",{headerFiltersElementRef:u});const d=r.useRef(null),p=YF(),h=(e=>{const{classes:t}=e;return r.useMemo((()=>Bp({headerFilterRow:["headerFilterRow"]},Ng,t)),[t])})(p),f=!p.unstable_headerFilters,m=Math.floor(p.columnHeaderHeight*e.densityFactor),g=Yf(t,Dy),y=GD(t,p.columnHeaderHeight)+(f?0:m),v=Yf(t,Jy),b=r.useCallback((e=>{const t=null==g?void 0:g.items.find((t=>t.field===e.field&&"isAnyOf"!==t.operator));if(null!=t)return t;const n=yB[e.field];if(null!=n)return n;const r=uP(e);return yB[e.field]=r,r}),[g]),_={minHeight:y,maxHeight:y,lineHeight:`${m}px`};return up({},c,{getColumnFilters:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f)return null;const i=s(t);if(null==i)return null;const{renderedColumns:a,firstColumnToRender:l}=i,c=[];for(let n=0;n<a.length;n+=1){var g,y,_;const t=a[n],i=l+n,s=(null==v?void 0:v.field)===t.field,u=0===i,h=(null==o?void 0:o.field)===t.field||u&&!e.hasOtherElementInTabSequence?0:-1,f="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,w=null!=(g=null==(y=t.filterOperators)?void 0:y.filter((e=>"isAnyOf"!==e.value)))?g:[],x=b(t);c.push(ih(p.slots.headerFilterCell,up({colIndex:i,height:m,width:t.computedWidth,colDef:t,hasFocus:s,tabIndex:h,headerFilterMenuRef:d,headerClassName:f,filterOperators:w,"data-field":t.field,item:x},null==(_=p.slotProps)?void 0:_.headerFilterCell,r),`${t.field}-filter`))}return ih(gB,{ref:u,ownerState:p,className:h.headerFilterRow,role:"row","aria-rowindex":n+2,children:c})},getRootProps:f?l:function(){return up({style:_},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}})},bB=_g("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Fg["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Fg["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Fg["scrollArea--left"]}`]:{left:0},[`&.${Fg["scrollArea--right"]}`]:{right:0}})));function _B(e){const{scrollDirection:t}=e,n=r.useRef(null),i=pv(),o=XE(),[a,s]=r.useState(!1),[l,c]=r.useState(!0),u=Yf(i,sv),d=Yf(i,oy),p=r.useRef({left:0,top:0}),h=YF(),f=up({},h,{scrollDirection:t}),m=(e=>{const{scrollDirection:t,classes:n}=e;return Bp({root:["scrollArea",`scrollArea--${t}`]},Ng,n)})(f),g=GD(i,h.columnHeaderHeight),y=Math.floor(h.columnHeaderHeight*u),v=r.useCallback((e=>{p.current=e;const n=i.current.getRootDimensions();c((()=>{if("left"===t)return p.current.left>0;if("right"===t){const e=d-n.viewportInnerSize.width;return p.current.left<e}return!1}))}),[i,d,t]),b=r.useCallback((e=>{let r;if(e.preventDefault(),"left"===t)r=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI: Wrong drag direction");r=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}r=1.5*(r-1)+1,o.start(0,(()=>{i.current.scroll({left:p.current.left+r,top:p.current.top})}))}),[t,i,o]),_=Np((()=>{s(!0)})),w=Np((()=>{s(!1)}));return VS(i,"scrollPositionChange",v),VS(i,"columnHeaderDragStart",_),VS(i,"columnHeaderDragEnd",w),a&&l?ih(bB,{ref:n,className:ug(m.root),ownerState:f,onDragOver:b,style:{height:y,top:g-y}}):null}const wB=r.memo(_B),xB=["style","className","innerRef","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence","pinnedColumns"],kB=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,t/100},CB=sx("div",{name:"MuiDataGrid",slot:"PinnedColumnHeaders",overridesResolver:(e,t)=>[{[`&.${Fg["pinnedColumnHeaders--left"]}`]:t["pinnedColumnHeaders--left"]},{[`&.${Fg["pinnedColumnHeaders--right"]}`]:t["pinnedColumnHeaders--right"]},t.pinnedColumnHeaders]})((e=>{let{theme:t,ownerState:n}=e;var r;return up({position:"absolute",top:0,overflow:"hidden",zIndex:1,display:"flex",flexDirection:"column",boxShadow:t.shadows[2],backgroundColor:(t.vars||t).palette.background.default},t.vars?{backgroundImage:null==(r=t.vars.overlays)?void 0:r[2]}:up({},"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Mg("#fff",kB(2))}, ${Mg("#fff",kB(2))})`}),n.side===QF.left&&{left:0},n.side===QF.right&&{right:0},n.side===QF.right&&n.showCellVerticalBorder&&{borderLeftWidth:"1px",borderLeftStyle:"solid"})}));CB.propTypes={ownerState:pp.exports.object.isRequired};const SB=r.forwardRef((function(e,t){const{className:n,innerRef:i,visibleColumns:o,sortColumnLookup:a,filterColumnLookup:s,columnPositions:l,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:v,pinnedColumns:b}=e,_=Iv(e,xB),w=YF(),x=KF(),[k,C]=r.useState(0),S=xx(),M=Np((()=>{const e=x.current.getRootDimensions();if(!e)return;const t=e.hasScrollY?e.scrollBarSize:0;k!==t&&C(t)}));VS(x,"virtualScrollerContentSizeChange",M);const T=r.useMemo((()=>o.map((e=>{let{field:t}=e;return t}))),[o]),[E,P]=zz(b,T,"rtl"===S.direction),{isDragging:I,renderContext:O,getRootProps:L,getInnerProps:R,getColumnHeaders:j,getColumnFilters:D,getColumnGroupHeaders:A}=vB({innerRef:i,visibleColumns:o,sortColumnLookup:a,filterColumnLookup:s,columnPositions:l,columnHeaderTabIndexState:c,hasOtherElementInTabSequence:v,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:y,minColumnIndex:E.length}),N=up({},w,{leftPinnedColumns:E,rightPinnedColumns:P,classes:w.classes}),F=(e=>{const{leftPinnedColumns:t,rightPinnedColumns:n,classes:r}=e;return Bp({leftPinnedColumns:["pinnedColumnHeaders",t&&t.length>0&&"pinnedColumnHeaders--left"],rightPinnedColumns:["pinnedColumnHeaders",n&&n.length>0&&"pinnedColumnHeaders--right","withBorderColor"]},Ng,r)})(N),z=O&&E.length?up({},O,{firstColumnIndex:0,lastColumnIndex:E.length}):null,B=O&&P.length?up({},O,{firstColumnIndex:T.length-P.length,lastColumnIndex:T.length}):null,U=R(),$={role:U.role};return oh(QA,up({ref:t,className:n},L(_),{children:[z&&oh(CB,up({className:F.leftPinnedColumns,ownerState:up({},N,{side:QF.left,showCellVerticalBorder:w.showCellVerticalBorder})},$,{children:[A({renderContext:z,minFirstColumn:z.firstColumnIndex,maxLastColumn:z.lastColumnIndex}),j({renderContext:z,minFirstColumn:z.firstColumnIndex,maxLastColumn:z.lastColumnIndex},{disableReorder:!0}),D({renderContext:z,minFirstColumn:z.firstColumnIndex,maxLastColumn:z.lastColumnIndex})]})),ih(wB,{scrollDirection:"left"}),oh(nN,up({isDragging:I},U,{children:[A({renderContext:O,minFirstColumn:E.length,maxLastColumn:T.length-P.length}),j({renderContext:O,minFirstColumn:E.length,maxLastColumn:T.length-P.length}),D({renderContext:O,minFirstColumn:E.length,maxLastColumn:T.length-P.length})]})),ih(wB,{scrollDirection:"right"}),B&&oh(CB,up({ownerState:up({},N,{side:QF.right,showCellVerticalBorder:w.showCellVerticalBorder}),className:F.rightPinnedColumns,style:{paddingRight:k}},$,{children:[A({renderContext:B,minFirstColumn:B.firstColumnIndex,maxLastColumn:B.lastColumnIndex}),j({renderContext:B,minFirstColumn:B.firstColumnIndex,maxLastColumn:B.lastColumnIndex},{disableReorder:!0,separatorSide:IS.Left}),D({renderContext:B,minFirstColumn:B.firstColumnIndex,maxLastColumn:B.lastColumnIndex})]}))]}))})),MB=up({},{ColumnMenuPinRightIcon:az,ColumnMenuPinLeftIcon:sz}),TB=up({},YN,MB,{ColumnMenu:fB,ColumnHeaders:SB,HeaderFilterCell:mz,HeaderFilterMenu:gz}),EB=up({},nF,{scrollEndThreshold:80,treeData:!1,defaultGroupingExpansionDepth:0,autosizeOnMount:!1,disableAutosize:!1,disableColumnPinning:!1,keepColumnPositionIfDraggedOutside:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,rowReordering:!1,rowsLoadingMode:"client",getDetailPanelHeight:()=>500,unstable_headerFilters:!1}),PB=KN(TB),IB="MTcwMTk5MDAwMDAwMA==",OB=r.forwardRef((function(e,t){const n=(e=>{const[t,n,i]=eF(lx({props:e,name:"MuiDataGrid"})),o=r.useMemo((()=>up({},hj,i.localeText)),[i.localeText]),a=r.useMemo((()=>XN({defaultSlots:PB,slots:i.slots,components:t})),[t,i.slots]);return r.useMemo((()=>{var e;return up({},EB,i,{localeText:o,slots:a,slotProps:null!=(e=i.slotProps)?e:n,signature:"DataGridPro"})}),[i,o,a,n])})(e),i=dB(n.apiRef,n);Qp("x-data-grid-pro",IB);const o=Yf(i,JF);return ih(Wj,{privateApiRef:i,props:n,children:oh(tS,up({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[ih(kL,{}),ih(cv,{VirtualScrollerComponent:Wz,ColumnHeadersProps:{pinnedColumns:o},children:ih(sh,{packageName:"x-data-grid-pro",releaseInfo:IB})}),ih(uv,{})]}))})})),LB=r.memo(OB);OB.propTypes={apiRef:pp.exports.shape({current:pp.exports.object.isRequired}),"aria-label":pp.exports.string,"aria-labelledby":pp.exports.string,autoHeight:pp.exports.bool,autoPageSize:pp.exports.bool,autosizeOnMount:pp.exports.bool,autosizeOptions:pp.exports.shape({columns:pp.exports.arrayOf(pp.exports.string),expand:pp.exports.bool,includeHeaders:pp.exports.bool,includeOutliers:pp.exports.bool,outliersFactor:pp.exports.number}),cellModesModel:pp.exports.object,checkboxSelection:pp.exports.bool,checkboxSelectionVisibleOnly:(pp.exports.bool,()=>null),classes:pp.exports.object,clipboardCopyCellDelimiter:pp.exports.string,columnBuffer:pp.exports.number,columnGroupingModel:pp.exports.arrayOf(pp.exports.object),columnHeaderHeight:pp.exports.number,columns:pp.exports.arrayOf(pp.exports.object).isRequired,columnThreshold:pp.exports.number,columnVisibilityModel:pp.exports.object,components:pp.exports.object,componentsProps:pp.exports.object,defaultGroupingExpansionDepth:pp.exports.number,density:pp.exports.oneOf(["comfortable","compact","standard"]),detailPanelExpandedRowIds:pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.number,pp.exports.string]).isRequired),disableAutosize:pp.exports.bool,disableChildrenFiltering:pp.exports.bool,disableChildrenSorting:pp.exports.bool,disableColumnFilter:pp.exports.bool,disableColumnMenu:pp.exports.bool,disableColumnPinning:pp.exports.bool,disableColumnReorder:pp.exports.bool,disableColumnResize:pp.exports.bool,disableColumnSelector:pp.exports.bool,disableDensitySelector:pp.exports.bool,disableEval:pp.exports.bool,disableMultipleColumnsFiltering:pp.exports.bool,disableMultipleColumnsSorting:pp.exports.bool,disableMultipleRowSelection:pp.exports.bool,disableRowSelectionOnClick:pp.exports.bool,disableVirtualization:pp.exports.bool,editMode:pp.exports.oneOf(["cell","row"]),experimentalFeatures:pp.exports.shape({ariaV7:pp.exports.bool,columnGrouping:pp.exports.bool,lazyLoading:pp.exports.bool,warnIfFocusStateIsNotSynced:pp.exports.bool}),filterDebounceMs:pp.exports.number,filterMode:(pp.exports.oneOf(["client","server"]),()=>null),filterModel:pp.exports.shape({items:pp.exports.arrayOf(pp.exports.shape({field:pp.exports.string.isRequired,id:pp.exports.oneOfType([pp.exports.number,pp.exports.string]),operator:pp.exports.string.isRequired,value:pp.exports.any})).isRequired,logicOperator:pp.exports.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:pp.exports.bool,quickFilterLogicOperator:pp.exports.oneOf(["and","or"]),quickFilterValues:pp.exports.array}),forwardedProps:pp.exports.object,getCellClassName:pp.exports.func,getDetailPanelContent:pp.exports.func,getDetailPanelHeight:pp.exports.func,getEstimatedRowHeight:pp.exports.func,getRowClassName:pp.exports.func,getRowHeight:pp.exports.func,getRowId:pp.exports.func,getRowSpacing:pp.exports.func,getTreeDataPath:pp.exports.func,groupingColDef:pp.exports.oneOfType([pp.exports.func,pp.exports.object]),hideFooter:pp.exports.bool,hideFooterPagination:pp.exports.bool,hideFooterRowCount:(pp.exports.bool,()=>null),hideFooterSelectedRowCount:pp.exports.bool,ignoreDiacritics:pp.exports.bool,initialState:pp.exports.object,isCellEditable:pp.exports.func,isGroupExpandedByDefault:pp.exports.func,isRowSelectable:pp.exports.func,keepColumnPositionIfDraggedOutside:pp.exports.bool,keepNonExistentRowsSelected:pp.exports.bool,loading:pp.exports.bool,localeText:pp.exports.object,logger:pp.exports.shape({debug:pp.exports.func.isRequired,error:pp.exports.func.isRequired,info:pp.exports.func.isRequired,warn:pp.exports.func.isRequired}),logLevel:pp.exports.oneOf(["debug","error","info","warn",!1]),nonce:pp.exports.string,onCellClick:pp.exports.func,onCellDoubleClick:pp.exports.func,onCellEditStart:pp.exports.func,onCellEditStop:pp.exports.func,onCellKeyDown:pp.exports.func,onCellModesModelChange:pp.exports.func,onClipboardCopy:pp.exports.func,onColumnHeaderClick:pp.exports.func,onColumnHeaderDoubleClick:pp.exports.func,onColumnHeaderEnter:pp.exports.func,onColumnHeaderLeave:pp.exports.func,onColumnHeaderOut:pp.exports.func,onColumnHeaderOver:pp.exports.func,onColumnOrderChange:pp.exports.func,onColumnResize:pp.exports.func,onColumnVisibilityModelChange:pp.exports.func,onColumnWidthChange:pp.exports.func,onDetailPanelExpandedRowIdsChange:pp.exports.func,onFetchRows:pp.exports.func,onFilterModelChange:pp.exports.func,onMenuClose:pp.exports.func,onMenuOpen:pp.exports.func,onPaginationModelChange:pp.exports.func,onPinnedColumnsChange:pp.exports.func,onPreferencePanelClose:pp.exports.func,onPreferencePanelOpen:pp.exports.func,onProcessRowUpdateError:pp.exports.func,onResize:pp.exports.func,onRowClick:pp.exports.func,onRowDoubleClick:pp.exports.func,onRowEditCommit:pp.exports.func,onRowEditStart:pp.exports.func,onRowEditStop:pp.exports.func,onRowModesModelChange:pp.exports.func,onRowOrderChange:pp.exports.func,onRowSelectionModelChange:pp.exports.func,onRowsScrollEnd:pp.exports.func,onSortModelChange:pp.exports.func,onStateChange:pp.exports.func,pageSizeOptions:pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.number,pp.exports.shape({label:pp.exports.string.isRequired,value:pp.exports.number.isRequired})]).isRequired),pagination:pp.exports.bool,paginationMode:pp.exports.oneOf(["client","server"]),paginationModel:pp.exports.shape({page:pp.exports.number.isRequired,pageSize:pp.exports.number.isRequired}),pinnedColumns:pp.exports.shape({left:pp.exports.arrayOf(pp.exports.string),right:pp.exports.arrayOf(pp.exports.string)}),pinnedRows:pp.exports.shape({bottom:pp.exports.arrayOf(pp.exports.object),top:pp.exports.arrayOf(pp.exports.object)}),processRowUpdate:pp.exports.func,rowBuffer:pp.exports.number,rowCount:pp.exports.number,rowHeight:pp.exports.number,rowModesModel:pp.exports.object,rowPositionsDebounceMs:pp.exports.number,rowReordering:pp.exports.bool,rows:pp.exports.arrayOf(pp.exports.object).isRequired,rowSelection:pp.exports.bool,rowSelectionModel:pp.exports.oneOfType([pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.number,pp.exports.string]).isRequired),pp.exports.number,pp.exports.string]),rowsLoadingMode:pp.exports.oneOf(["client","server"]),rowSpacingType:pp.exports.oneOf(["border","margin"]),rowThreshold:pp.exports.number,scrollbarSize:pp.exports.number,scrollEndThreshold:pp.exports.number,showCellVerticalBorder:pp.exports.bool,showColumnVerticalBorder:pp.exports.bool,slotProps:pp.exports.object,slots:pp.exports.object,sortingMode:pp.exports.oneOf(["client","server"]),sortingOrder:pp.exports.arrayOf(pp.exports.oneOf(["asc","desc"])),sortModel:pp.exports.arrayOf(pp.exports.shape({field:pp.exports.string.isRequired,sort:pp.exports.oneOf(["asc","desc"])})),sx:pp.exports.oneOfType([pp.exports.arrayOf(pp.exports.oneOfType([pp.exports.func,pp.exports.object,pp.exports.bool])),pp.exports.func,pp.exports.object]),throttleRowsMs:pp.exports.number,treeData:pp.exports.bool,unstable_headerFilters:pp.exports.bool,unstable_ignoreValueFormatterDuringExport:pp.exports.oneOfType([pp.exports.shape({clipboardExport:pp.exports.bool,csvExport:pp.exports.bool}),pp.exports.bool])};const RB=e=>e.columnResize,jB=Yg(RB,(e=>e.resizingColumnField)),DB=()=>r.useRef({}),AB={defaultProps:{slots:{columnMenu:e=>ih(fB,{...e,slots:{columnMenuColumnsItem:null,...e.slots}})},disableColumnMenu:!0,hideFooter:!0,hideFooterPagination:!0,rowSpacingType:"border"},styleOverrides:{root:e=>{let{theme:t}=e;return{backgroundColor:t.palette.semanticPalette.surface.main,boxShadow:"none",border:"none",fontSize:t.typography.body1.fontSize,borderRadius:t.spacing(t.borderRadii.md),flexDirection:"column-reverse"}},footerContainer:e=>{let{theme:t}=e;return{borderBottom:`1px solid ${t.palette.semanticPalette.stroke.main}`,borderTop:"none"}},withBorderColor:e=>{let{theme:t}=e;return{borderColor:t.palette.semanticPalette.stroke.secondary}},columnHeaderTitleContainer:e=>{let{theme:t}=e;return{borderBottom:"none !important",fontWeight:t.typography.fontWeightBold,[`& .${Fg.columnHeaderTitleContainerContent}`]:{justifyContent:"inherit"}}},columnHeaders:e=>{let{theme:t}=e;return{borderBottom:`2px solid ${t.palette.semanticPalette.stroke.secondary}`}},pinnedColumnHeaders:()=>({boxShadow:"2px 0px 4px -2px rgba(27,27,27,0.21)"}),columnHeader:e=>{let{theme:t}=e;return{"&:focus, &:focus-within":{outline:"none"},padding:t.spacing(0,3)}},columnHeaderDraggableContainer:{"&:focus, &:focus-within":{outline:"none"}},cell:e=>{let{theme:t}=e;return{"&:focus-within":{outline:`2px solid ${t.palette.primary}`},padding:t.spacing(0,3)}},row:e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.palette.grey[200]}}}}},NB=Object.freeze(Object.defineProperty({__proto__:null,DataGridOverrides:AB,DataGrid:e=>ih(LB,{...e}),LicenseInfo:Hp,useGridApiContext:KF,useGridApiRef:DB,useGridRootProps:YF,GridColumnMenu:fB,GRID_COLUMN_MENU_SLOTS:pB,GRID_COLUMN_MENU_SLOT_PROPS:hB,GridColumnHeaders:SB,GridBody:cv,GridFooterPlaceholder:uv,GridOverlays:Pv,GridCell:rb,GridBooleanCell:cb,renderBooleanCell:ub,GridEditBooleanCell:pb,renderEditBooleanCell:hb,GridEditDateCell:Mx,renderEditDateCell:Tx,GridEditInputCell:Ix,renderEditInputCell:Ox,GridEditSingleSelectCell:$x,renderEditSingleSelectCell:Vx,GridActionsCell:$k,renderActionsCell:Vk,GridActionsCellItem:NC,GridSkeletonCell:KC,GridRoot:tS,GridFooterContainer:iS,GridOverlay:sS,GridToolbarContainer:uS,GridColumnHeaderItem:DS,GridColumnHeaderSeparator:LS,GridColumnHeaderSeparatorSides:IS,GridColumnHeaderSortIcon:xS,GridColumnHeaderFilterIconButton:NM,GridColumnHeaderTitle:ES,GridCellCheckboxForwardRef:zM,GridCellCheckboxRenderer:BM,GridHeaderCheckbox:$M,GridArrowUpwardIcon:YM,GridArrowDownwardIcon:KM,GridKeyboardArrowRight:XM,GridExpandMoreIcon:JM,GridFilterListIcon:QM,GridFilterAltIcon:eT,GridSearchIcon:tT,GridMenuIcon:nT,GridCheckCircleIcon:rT,GridColumnIcon:iT,GridSeparatorIcon:oT,GridViewHeadlineIcon:aT,GridTableRowsIcon:sT,GridViewStreamIcon:lT,GridTripleDotsVerticalIcon:cT,GridCloseIcon:uT,GridAddIcon:dT,GridRemoveIcon:pT,GridLoadIcon:hT,GridDragIcon:fT,GridSaveAltIcon:mT,GridCheckIcon:gT,GridMoreVertIcon:yT,GridVisibilityOffIcon:vT,GridViewColumnIcon:bT,GridClearIcon:_T,GridDeleteIcon:wT,GridDeleteForeverIcon:xT,GridGenericColumnMenu:DT,GridColumnHeaderMenu:CS,GridColumnMenuContainer:ST,GridColumnMenuColumnsItem:PT,GridColumnMenuManageItem:ET,GridColumnMenuFilterItem:IT,GridColumnMenuHideItem:TT,GridColumnMenuSortItem:OT,GridMenu:Bk,GridColumnsPanel:LE,gridPanelClasses:jE,GridPanel:NE,GridPanelContent:fE,GridPanelFooter:vE,GridPanelHeader:xE,GridPanelWrapper:ME,GridPreferencesPanel:FE,GridFilterPanel:dP,GridFilterForm:YE,GridFilterInputValue:QE,GridFilterInputDate:tP,GridFilterInputSingleSelect:oP,GridFilterInputBoolean:lP,GridFilterInputMultipleValue:QP,GridFilterInputMultipleSingleSelect:nI,GridCsvExportMenuItem:gI,GridPrintExportMenuItem:yI,GridToolbarExport:vI,GridToolbar:vL,GridToolbarColumnsButton:oI,GridToolbarDensitySelector:sI,GridToolbarFilterButton:uI,GridToolbarExportContainer:pI,GridToolbarQuickFilter:gL,GridApiContext:dv,GridFooter:xL,GridHeader:kL,GridLoadingOverlay:FL,GridNoRowsOverlay:zL,GridPagination:SR,GridRowCount:ER,GridRow:pj,GridSelectedRowCount:wL,GRID_EXPERIMENTAL_ENABLED:false,GRID_DEFAULT_LOCALE_TEXT:hj,getDataGridUtilityClass:Ng,gridClasses:Fg,gridColumnMenuSelector:lv,gridColumnFieldsSelector:Jg,gridColumnLookupSelector:Qg,gridColumnDefinitionsSelector:ey,gridColumnVisibilityModelSelector:ty,gridVisibleColumnDefinitionsSelector:ny,gridVisibleColumnFieldsSelector:ry,gridColumnPositionsSelector:iy,gridColumnsTotalWidthSelector:oy,gridFilterableColumnDefinitionsSelector:ay,gridFilterableColumnLookupSelector:sy,gridColumnGroupingSelector:ly,gridColumnGroupsUnwrappedModelSelector:cy,gridColumnGroupsLookupSelector:uy,gridColumnGroupsHeaderStructureSelector:dy,gridColumnGroupsHeaderMaxDepthSelector:py,gridDensitySelector:ov,gridDensityValueSelector:av,gridDensityFactorSelector:sv,getDefaultGridFilterModel:AS,gridFilterModelSelector:Dy,gridQuickFilterValuesSelector:Ay,gridVisibleRowsLookupSelector:Ny,gridFilteredRowsLookupSelector:Fy,gridFilteredDescendantCountLookupSelector:zy,gridExpandedSortedRowEntriesSelector:By,gridExpandedSortedRowIdsSelector:Uy,gridFilteredSortedRowEntriesSelector:$y,gridFilteredSortedRowIdsSelector:Vy,gridFilteredSortedTopLevelRowEntriesSelector:qy,gridExpandedRowCountSelector:Zy,gridFilteredTopLevelRowCountSelector:Hy,gridFilterActiveItemsSelector:Gy,gridFilterActiveItemsLookupSelector:Wy,gridFocusStateSelector:Yy,gridFocusCellSelector:Ky,gridFocusColumnHeaderSelector:Xy,unstable_gridFocusColumnHeaderFilterSelector:Jy,unstable_gridFocusColumnGroupHeaderSelector:Qy,gridTabIndexStateSelector:ev,gridTabIndexCellSelector:tv,gridTabIndexColumnHeaderSelector:nv,unstable_gridTabIndexColumnHeaderFilterSelector:rv,unstable_gridTabIndexColumnGroupHeaderSelector:iv,gridPaginationSelector:oM,gridPaginationModelSelector:aM,gridPageSelector:sM,gridPageSizeSelector:lM,gridPageCountSelector:cM,gridPaginationRowRangeSelector:uM,gridPaginatedVisibleSortedGridRowEntriesSelector:dM,gridPaginatedVisibleSortedGridRowIdsSelector:pM,gridPreferencePanelStateSelector:hM,GridPreferencePanelsValue:fM,gridRowCountSelector:fy,gridRowsLoadingSelector:my,gridTopLevelRowCountSelector:gy,gridRowsLookupSelector:yy,gridRowsDataRowIdToIdLookupSelector:vy,gridRowTreeSelector:by,gridRowGroupingNameSelector:_y,gridRowTreeDepthsSelector:wy,gridRowMaximumTreeDepthSelector:xy,gridDataRowIdsSelector:ky,GRID_ROOT_GROUP_ID:hv,checkGridRowIdIsValid:gv,gridRowsMetaSelector:mM,gridRowSelectionStateSelector:gM,selectedGridRowsCountSelector:yM,selectedGridRowsSelector:vM,selectedIdsLookupSelector:bM,gridDateComparator:EM,gridNumberComparator:TM,gridStringOrNumberComparator:MM,gridSortedRowIdsSelector:Iy,gridSortedRowEntriesSelector:Oy,gridSortModelSelector:Ly,gridSortColumnLookupSelector:Ry,unstable_gridHeaderFilteringStateSelector:PM,unstable_gridHeaderFilteringEditFieldSelector:IM,unstable_gridHeaderFilteringMenuSelector:OM,virtualizationStateInitializer:LM,useGridVirtualization:RM,gridVirtualizationSelector:jM,gridVirtualizationEnabledSelector:DM,gridVirtualizationColumnEnabledSelector:AM,useGridSelector:Yf,createUseGridApiEventHandler:US,unstable_resetCleanupTracking:()=>{var e;null==(e=$S.registry)||e.reset(),$S.registry=null},useGridApiEventHandler:VS,useGridApiOptionHandler:ZS,GridSignature:zS,useGridApiMethod:Gv,useGridLogger:HS,useGridNativeEventListener:eM,useFirstRender:tM,arSD:mj,beBY:yj,bgBG:vj,csCZ:bj,daDK:_j,deDE:wj,elGR:xj,enUS:kj,esES:Cj,faIR:Sj,fiFI:Mj,frFR:Tj,heIL:Ej,huHU:Pj,itIT:Ij,jaJP:Oj,koKR:Lj,nbNO:Rj,nlNL:jj,plPL:Dj,ptBR:Aj,roRO:Nj,ruRU:Fj,skSK:zj,svSE:Bj,trTR:Uj,ukUA:Vj,urPK:qj,viVN:Zj,zhCN:Hj,zhTW:Gj,GridEditModes:jv,GridCellModes:Dv,GridRowModes:Av,GridLogicOperator:Nv,GridCellEditStartReasons:Fv,GridCellEditStopReasons:zv,GridRowEditStartReasons:Bv,GridRowEditStopReasons:Uv,isLeaf:$v,GridContextProvider:Wj,GRID_ACTIONS_COLUMN_TYPE:oj,GRID_ACTIONS_COL_DEF:aj,GRID_BOOLEAN_COL_DEF:nj,GRID_CHECKBOX_SELECTION_FIELD:rj,GRID_CHECKBOX_SELECTION_COL_DEF:ij,gridDateFormatter:eD,gridDateTimeFormatter:tD,GRID_DATE_COL_DEF:nD,GRID_DATETIME_COL_DEF:rD,GRID_NUMERIC_COL_DEF:sD,GRID_SINGLE_SELECT_COL_DEF:uD,GRID_STRING_COL_DEF:ej,getGridBooleanOperators:tj,getGridDateOperators:Jj,getGridNumericQuickFilterFn:oD,getGridNumericOperators:aD,getGridSingleSelectOperators:cD,getGridStringQuickFilterFn:JR,getGridStringOperators:QR,DEFAULT_GRID_COL_TYPE_KEY:dD,getGridDefaultColumnTypes:pD,DATA_GRID_PRO_PROPS_DEFAULT_VALUES:EB,SUBMIT_FILTER_STROKE_TIME:SF,SUBMIT_FILTER_DATE_STROKE_TIME:MF,DataGridPremium:function(){return null},DataGridPro:LB,gridPinnedColumnsSelector:JF,GridPinnedPosition:QF,gridColumnReorderSelector:EF,gridColumnReorderDragColSelector:PF,gridColumnResizeSelector:RB,gridResizingColumnFieldSelector:jB,DEFAULT_GRID_AUTOSIZE_OPTIONS:AF,GRID_REORDER_COL_DEF:eB,GRID_TREE_DATA_GROUPING_FIELD:HF,gridDetailPanelExpandedRowIdsSelector:tz,gridDetailPanelExpandedRowsContentCacheSelector:nz,gridDetailPanelExpandedRowsHeightCacheSelector:iz,GRID_DETAIL_PANEL_TOGGLE_FIELD:Rz,GRID_DETAIL_PANEL_TOGGLE_COL_DEF:jz,GridTreeDataGroupingCell:XF,GridColumnMenuPinningItem:ez,GridDetailPanelToggleCell:oz,GridPushPinRightIcon:az,GridPushPinLeftIcon:sz,GridHeaderFilterMenuContainer:uz,GridHeaderFilterCell:mz,GridHeaderFilterMenu:gz,getGroupRowIdFromPath:yz},Symbol.toStringTag,{value:"Module"})),FB={alfalfa:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8033 5.26239C16.8427 5.19407 15.411 5.39315 14.1962 6.23985C13.6062 6.65115 13.0865 7.20228 12.7011 7.91504C12.4467 8.38539 11.7426 8.54564 11.3039 8.23987C10.0892 7.39317 8.65742 7.19408 7.69679 7.26241C7.30422 7.29033 7 7.61695 7 8.01052C7 10.3703 7.93797 11.883 9.19613 12.76C10.4108 13.6067 11.8426 13.8058 12.8032 13.7375C13.1958 13.7096 13.5 13.3829 13.5 12.9894C13.5 12.3172 13.9915 11.7114 14.6394 11.5322C15.1973 11.3779 15.7715 11.1312 16.304 10.76C17.5622 9.88303 18.5001 8.37033 18.5001 6.0105C18.5001 5.61694 18.1959 5.29032 17.8033 5.26239Z",fill:"#9DC04D"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.25 20.8125C11.9393 20.8125 11.6875 20.5607 11.6875 20.25L11.6875 9.75L12.8125 9.75L12.8125 20.25C12.8125 20.5607 12.5607 20.8125 12.25 20.8125Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8344 9.42852C12.964 7.81191 13.6549 6.86857 14.4467 6.31665C15.1549 5.82304 15.9847 5.61514 16.6658 5.57146C16.5361 7.18807 15.8452 8.13141 15.0534 8.68333C14.3453 9.17694 13.5154 9.38484 12.8344 9.42852ZM15.6967 9.60625C16.9007 8.76699 17.8126 7.31388 17.8126 5.01056L17.8126 4.48665L17.29 4.44948C16.3612 4.38342 14.9749 4.57718 13.8034 5.39373C12.5994 6.23299 11.6876 7.6861 11.6876 9.98942L11.6876 10.5133L12.2102 10.5505C13.139 10.6166 14.5253 10.4228 15.6967 9.60625Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6656 11.4285C11.536 9.81192 10.8451 8.86859 10.0533 8.31666C9.34513 7.82305 8.51527 7.61515 7.83424 7.57147C7.96388 9.18809 8.65478 10.1314 9.44659 10.6833C10.1547 11.177 10.9846 11.3849 11.6656 11.4285ZM8.80328 11.6063C7.59925 10.767 6.68744 9.31389 6.68744 7.01058L6.68744 6.48666L7.21003 6.44949C8.13884 6.38343 9.52514 6.5772 10.6966 7.39374C11.9006 8.233 12.8124 9.68612 12.8124 11.9894L12.8124 12.5133L12.2898 12.5505C11.361 12.6166 9.97473 12.4228 8.80328 11.6063Z",fill:"#49650C"})]}),almond:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EAE2"}),ih("path",{d:"M16 15.9C16 17.8882 14.1532 19.5 11.875 19.5C9.59683 19.5 7.75 17.8882 7.75 15.9C7.75 12.3 10.6964 6 11.875 6C13.0536 6 16 12.3 16 15.9Z",fill:"#CEA27A"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.25 18C11.9069 18 13.25 16.6568 13.25 15C13.25 13.1785 12.5843 10.5615 11.7441 8.35598C11.3279 7.26339 10.8872 6.32074 10.4982 5.66838C10.4079 5.51687 10.3248 5.38859 10.25 5.28211C10.1752 5.38859 10.0921 5.51687 10.0018 5.66838C9.61277 6.32074 9.17214 7.26339 8.75592 8.35598C7.91573 10.5615 7.25 13.1785 7.25 15C7.25 16.6568 8.59315 18 10.25 18ZM10.25 19C12.4591 19 14.25 17.2091 14.25 15C14.25 11 11.3929 3.99998 10.25 3.99998C9.10714 3.99998 6.25 11 6.25 15C6.25 17.2091 8.04086 19 10.25 19Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.178 12.6099L9.75868 5.09276L10.7413 4.90723L12.1606 12.4244C12.5561 14.5186 11.9965 16.6801 10.6346 18.3195L9.86541 17.6805C11.0368 16.2704 11.5181 14.4113 11.178 12.6099Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.24789 13.3066L10.7419 5.08944L9.75806 4.91055L8.26402 13.1278C7.91779 15.032 8.52785 16.985 9.89644 18.3535L10.6035 17.6464C9.46699 16.5099 8.96036 14.888 9.24789 13.3066Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2499 18C17.2947 18 18.2499 17.0768 18.2499 15.8C18.2499 14.3674 17.757 12.2929 17.1296 10.5363C16.8345 9.71008 16.5247 8.99666 16.2499 8.49016C15.9752 8.99666 15.6653 9.71008 15.3703 10.5363C14.7429 12.2929 14.2499 14.3674 14.2499 15.8C14.2499 17.0768 15.2052 18 16.2499 18ZM16.2499 19C17.9068 19 19.2499 17.5673 19.2499 15.8C19.2499 12.6 17.1071 6.99998 16.2499 6.99998C15.3928 6.99998 13.2499 12.6 13.2499 15.8C13.2499 17.5673 14.5931 19 16.2499 19Z",fill:"#3A2007"})]}),barley:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{d:"M10 14.769C10 16.4355 11.2997 17.8094 12.9752 18L13.7748 18C15.4503 17.8094 16.75 16.4355 16.75 14.769V9.61082V9.60178V8.45905C16.75 7.74233 13.8319 7.5 13.375 7.5C12.8525 7.5 10 7.83483 10 8.45905V14.769Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 4.55817C12.75 4.28203 12.5261 4.05817 12.25 4.05817C11.9739 4.05817 11.75 4.28203 11.75 4.55817L11.75 9.30455L9.02905 6.5836V5.30237C9.02905 5.02623 8.80519 4.80237 8.52905 4.80237C8.25291 4.80237 8.02905 5.02623 8.02905 5.30237V6.78979V6.79162V10.5107V10.5126V13.4884C8.02905 15.6504 9.6545 17.4327 11.75 17.68V19.4419C11.75 19.718 11.9739 19.9419 12.25 19.9419C12.5261 19.9419 12.75 19.718 12.75 19.4419V17.68C14.8455 17.4327 16.4709 15.6504 16.4709 13.4884V10.5174V10.5059V6.79644C16.471 6.79262 16.471 6.7888 16.4709 6.78498V5.30237C16.4709 5.02623 16.2471 4.80237 15.9709 4.80237C15.6948 4.80237 15.4709 5.02623 15.4709 5.30237V6.58364L12.75 9.30455L12.75 4.55817ZM12.75 10.7188V13.0255L15.4709 10.3046V7.99785L12.75 10.7188ZM12.75 14.4397L15.4709 11.7188V13.4884C15.4709 15.0972 14.2914 16.4305 12.75 16.6708V14.4397ZM9.02905 11.7188V13.4884C9.02905 15.0972 10.2086 16.4305 11.75 16.6708V14.4397L9.02905 11.7188ZM11.75 13.0255V10.7188L9.02905 7.99782V10.3046L11.75 13.0255Z",fill:"#543E04"})]}),beef:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7ECEB"}),ih("rect",{x:"5.5",y:"7.5",width:"12",height:"6.75",rx:"1.5",fill:"#D28783"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.02081 17.3333C5.02081 17.0227 5.27265 16.7708 5.58331 16.7708L16.9166 16.7708C17.2273 16.7708 17.4791 17.0227 17.4791 17.3333C17.4791 17.644 17.2273 17.8958 16.9166 17.8958L5.58331 17.8958C5.27265 17.8958 5.02081 17.644 5.02081 17.3333Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.03769 12.1969C9.10029 11.9465 9.32528 11.7708 9.58339 11.7708H13.5834C13.8941 11.7708 14.1459 12.0227 14.1459 12.3333V16C14.1459 16.3106 13.8941 16.5625 13.5834 16.5625C13.2727 16.5625 13.0209 16.3106 13.0209 16V12.8958H9.9824C9.89453 13.0984 9.77392 13.316 9.61644 13.5153C9.42678 13.7554 9.15993 13.9959 8.81256 14.1273V16C8.81256 16.3106 8.56072 16.5625 8.25006 16.5625C7.9394 16.5625 7.68756 16.3106 7.68756 16V13.6666C7.68756 13.356 7.9394 13.1041 8.25006 13.1041C8.41712 13.1041 8.57643 13.017 8.73368 12.818C8.89372 12.6154 8.99714 12.3591 9.03769 12.1969Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.68755 8C5.68755 7.68934 5.93939 7.4375 6.25005 7.4375H18.2501C18.4381 7.4375 18.6138 7.53149 18.7181 7.68798L20.0514 9.68798C20.217 9.93638 20.1597 10.2709 19.9209 10.45L18.5876 11.45C18.3636 11.618 18.0502 11.5957 17.8523 11.3977L17.5834 11.1288L16.1459 12.5663V16C16.1459 16.3107 15.894 16.5625 15.5834 16.5625C15.2727 16.5625 15.0209 16.3107 15.0209 16V12.3333C15.0209 12.1841 15.0802 12.0411 15.1856 11.9356L17.1856 9.93559C17.4053 9.71592 17.7615 9.71592 17.9811 9.93559L18.3028 10.2573L18.8202 9.86927L17.949 8.5625H6.81255V16C6.81255 16.3107 6.56071 16.5625 6.25005 16.5625C5.93939 16.5625 5.68755 16.3107 5.68755 16V8Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.25014 8.10419C6.5608 8.10419 6.81264 8.35603 6.81264 8.66669C6.81264 9.38335 6.50143 9.88556 6.07881 10.1898C5.68488 10.4735 5.22904 10.5625 4.91681 10.5625C4.60615 10.5625 4.35431 10.3107 4.35431 10C4.35431 9.68936 4.60615 9.43752 4.91681 9.43752C5.04902 9.43752 5.25985 9.39323 5.42147 9.27687C5.55441 9.18115 5.68764 9.01669 5.68764 8.66669C5.68764 8.35603 5.93948 8.10419 6.25014 8.10419Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9166 6.10419C19.2273 6.10419 19.4791 6.35603 19.4791 6.66669C19.4791 7.38335 19.1679 7.88556 18.7453 8.18984C18.3514 8.47348 17.8955 8.56252 17.5833 8.56252C17.2727 8.56252 17.0208 8.31068 17.0208 8.00002C17.0208 7.68936 17.2727 7.43752 17.5833 7.43752C17.7155 7.43752 17.9264 7.39323 18.088 7.27687C18.2209 7.18115 18.3541 7.01669 18.3541 6.66669C18.3541 6.35603 18.606 6.10419 18.9166 6.10419Z",fill:"#390A07"})]}),canola:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.1826 21.1508C11.872 21.1508 11.6201 20.8989 11.6201 20.5883L11.6201 13.843C11.6201 12.5816 12.2997 11.5591 13.1712 11.0409C14.0403 10.524 15.2078 10.4716 16.0042 11.3596L15.1667 12.1107C14.8288 11.7339 14.2949 11.6815 13.7462 12.0078C13.1998 12.3327 12.7451 12.9965 12.7451 13.843L12.7451 20.5883C12.7451 20.8989 12.4933 21.1508 12.1826 21.1508Z",fill:"#543E04"}),ih("path",{d:"M19.75 13.875C19.75 15.3247 18.5747 16.5 17.125 16.5C15.6753 16.5 14.5 15.3247 14.5 13.875C14.5 12.4253 15.6753 11.25 17.125 11.25C18.5747 11.25 19.75 12.4253 19.75 13.875Z",fill:"#DCBF76"}),ih("path",{d:"M16.75 7.125C16.75 8.57475 15.5747 9.75 14.125 9.75C12.6753 9.75 11.5 8.57475 11.5 7.125C11.5 5.67525 12.6753 4.5 14.125 4.5C15.5747 4.5 16.75 5.67525 16.75 7.125Z",fill:"#DCBF76"}),ih("path",{d:"M10 11.625C10 13.0747 8.82475 14.25 7.375 14.25C5.92525 14.25 4.75 13.0747 4.75 11.625C4.75 10.1753 5.92525 9 7.375 9C8.82475 9 10 10.1753 10 11.625Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.1827 19.4494C12.4934 19.4494 12.7452 19.1976 12.7452 18.8869L12.7452 12.1416C12.7452 10.8802 12.0656 9.85771 11.1942 9.33947C10.3251 8.82264 9.15753 8.77018 8.36114 9.65817L9.19865 10.4093C9.53654 10.0326 10.0704 9.98009 10.6192 10.3064C11.1655 10.6313 11.6202 11.2951 11.6202 12.1416L11.6202 18.8869C11.6202 19.1976 11.8721 19.4494 12.1827 19.4494Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.4796 14.1293C18.4406 14.3134 18.3725 14.4944 18.2737 14.6653C17.7673 15.5425 16.6457 15.843 15.7685 15.3366C15.5975 15.2379 15.4481 15.1152 15.3222 14.9754C15.1382 14.9363 14.9572 14.8682 14.7862 14.7695C13.9091 14.2631 13.6085 13.1414 14.115 12.2643C14.2137 12.0933 14.3364 11.9438 14.4762 11.818C14.5153 11.6339 14.5834 11.453 14.6821 11.282C15.1885 10.4048 16.3101 10.1043 17.1873 10.6107C17.3583 10.7094 17.5078 10.8321 17.6336 10.972C17.8176 11.011 17.9986 11.0791 18.1696 11.1779C19.0468 11.6843 19.3473 12.8059 18.8409 13.683C18.7421 13.854 18.6195 14.0035 18.4796 14.1293ZM17.5197 13.4228C17.6608 13.3656 17.7846 13.2626 17.8666 13.1205C18.0623 12.7815 17.9462 12.3479 17.6071 12.1521C17.465 12.0701 17.3063 12.0428 17.1555 12.0638C17.062 12.0768 16.9626 12.0194 16.9271 11.9319C16.8698 11.7908 16.7669 11.667 16.6248 11.585C16.2857 11.3892 15.8521 11.5054 15.6564 11.8445C15.5744 11.9866 15.5471 12.1452 15.5681 12.2961C15.5811 12.3896 15.5237 12.489 15.4362 12.5245C15.2951 12.5818 15.1713 12.6847 15.0892 12.8268C14.8935 13.1659 15.0097 13.5994 15.3487 13.7952C15.4908 13.8772 15.6495 13.9045 15.8003 13.8835C15.8938 13.8705 15.9933 13.9279 16.0288 14.0154C16.086 14.1565 16.189 14.2803 16.331 14.3623C16.6701 14.5581 17.1037 14.4419 17.2994 14.1028C17.3815 13.9608 17.4087 13.8021 17.3878 13.6513C17.3748 13.5577 17.4322 13.4583 17.5197 13.4228Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.10148 9.22347C9.24472 9.34543 9.37146 9.49147 9.47484 9.65969C10.0052 10.5226 9.73555 11.652 8.87265 12.1824C8.70442 12.2858 8.52539 12.3588 8.3425 12.4029C8.22055 12.5462 8.0745 12.6729 7.90628 12.7763C7.04337 13.3066 5.91393 13.037 5.38361 12.1741C5.28022 12.0059 5.20717 11.8268 5.16307 11.6439C5.01982 11.522 4.89309 11.3759 4.7897 11.2077C4.25937 10.3448 4.52899 9.21536 5.3919 8.68504C5.56012 8.58165 5.73915 8.5086 5.92204 8.4645C6.044 8.32125 6.19004 8.19452 6.35826 8.09113C7.22117 7.56081 8.35061 7.83042 8.88094 8.69333C8.98432 8.86155 9.05737 9.04058 9.10148 9.22347ZM8.02317 9.73136C8.03999 9.58002 8.00838 9.42215 7.92248 9.28238C7.71747 8.94881 7.28087 8.84459 6.94731 9.04959C6.80753 9.1355 6.70803 9.26207 6.65467 9.40468C6.62158 9.49312 6.52377 9.55323 6.42993 9.5428C6.27859 9.52599 6.12072 9.5576 5.98095 9.6435C5.64738 9.8485 5.54316 10.2851 5.74816 10.6187C5.83406 10.7584 5.96063 10.8579 6.10325 10.9113C6.19168 10.9444 6.2518 11.0422 6.24137 11.136C6.22456 11.2874 6.25616 11.4453 6.34207 11.585C6.54707 11.9186 6.98367 12.0228 7.31723 11.8178C7.45701 11.7319 7.55652 11.6053 7.60987 11.4627C7.64296 11.3743 7.74077 11.3142 7.83461 11.3246C7.98595 11.3414 8.14382 11.3098 8.2836 11.2239C8.61716 11.0189 8.72138 10.5823 8.51638 10.2487C8.43048 10.109 8.30391 10.0095 8.16129 9.9561C8.07286 9.92301 8.01275 9.82521 8.02317 9.73136Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9757 7.62395C12.982 9.94272 12.7452 11.8809 12.7452 12.5066V20.163H11.6202V12.5066C11.6202 11.7144 11.8938 9.62597 12.9417 7.18079L13.9757 7.62395Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.8635 4.06214C15.0507 4.08045 15.2382 4.12796 15.4191 4.20701C16.3472 4.61252 16.7709 5.69364 16.3654 6.62177C16.2864 6.80271 16.1811 6.96492 16.0562 7.10556C16.0378 7.2928 15.9903 7.48024 15.9113 7.66117C15.5058 8.5893 14.4247 9.01298 13.4965 8.60747C13.3156 8.52842 13.1534 8.42317 13.0127 8.29823C12.8255 8.27992 12.6381 8.23241 12.4571 8.15336C11.529 7.74785 11.1053 6.66673 11.5108 5.7386C11.5899 5.55766 11.6951 5.39545 11.8201 5.25481C11.8384 5.06757 11.8859 4.88013 11.9649 4.6992C12.3704 3.77107 13.4516 3.34739 14.3797 3.7529C14.5606 3.83195 14.7228 3.9372 14.8635 4.06214ZM14.2684 5.09486C14.1957 4.96103 14.0796 4.84948 13.9293 4.7838C13.5705 4.62705 13.1526 4.79082 12.9958 5.1496C12.9302 5.29994 12.9208 5.46067 12.9584 5.60821C12.9817 5.6997 12.9358 5.80491 12.8528 5.84994C12.719 5.92256 12.6074 6.03866 12.5417 6.189C12.385 6.54778 12.5488 6.9657 12.9075 7.12245C13.0579 7.18814 13.2186 7.19754 13.3661 7.1599C13.4576 7.13656 13.5628 7.18252 13.6079 7.26551C13.6805 7.39934 13.7966 7.51089 13.9469 7.57657C14.3057 7.73332 14.7236 7.56955 14.8804 7.21077C14.9461 7.06043 14.9555 6.8997 14.9178 6.75216C14.8945 6.66067 14.9404 6.55547 15.0234 6.51043C15.1573 6.43781 15.2688 6.32171 15.3345 6.17137C15.4913 5.81259 15.3275 5.39467 14.9687 5.23792C14.8184 5.17223 14.6576 5.16283 14.5101 5.20047C14.4186 5.22382 14.3134 5.17785 14.2684 5.09486Z",fill:"#543E04"})]}),clover:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M19 11.9218C19 15.6929 17.9532 18.75 14.3846 18.75C10.816 18.75 7 15.6929 7 11.9219C7 8.15077 9.89293 6 13.4615 6C17.0301 6 19 8.15077 19 11.9218Z",fill:"#82A632"}),ih("path",{d:"M11.4271 11.1771L8.42997 8.14197M11.4271 11.1771L14.4243 8.14197M11.4271 11.1771L8.42997 14.2121M11.4271 11.1771L14.4243 14.2121M8.42997 8.14197C8.08866 7.79479 7.89741 7.32743 7.89741 6.84058C7.89741 6.35374 8.08866 5.88638 8.42997 5.5392C8.59752 5.36847 8.79742 5.23285 9.01799 5.14026C9.23856 5.04768 9.47537 5 9.71459 5C9.9538 5 10.1906 5.04768 10.4112 5.14026C10.6318 5.23285 10.8317 5.36847 10.9992 5.5392L11.4271 5.88329L11.855 5.5392C12.0226 5.36847 12.2225 5.23285 12.4431 5.14026C12.6636 5.04768 12.9004 5 13.1397 5C13.3789 5 13.6157 5.04768 13.8362 5.14026C14.0568 5.23285 14.2567 5.36847 14.4243 5.5392C14.7656 5.88638 14.9568 6.35374 14.9568 6.84058C14.9568 7.32743 14.7656 7.79479 14.4243 8.14197M8.42997 8.14197C8.08279 7.80067 7.57749 7.64735 7.09064 7.64735C6.6038 7.64735 6.13644 7.8386 5.78926 8.1799C5.61853 8.34746 5.48291 8.54736 5.39033 8.76793C5.29775 8.9885 5.25006 9.22531 5.25006 9.46452C5.25006 9.70374 5.29775 9.94055 5.39033 10.1611C5.48291 10.3817 5.61853 10.5816 5.78926 10.7491L6.13335 11.1771L5.78926 11.605C5.61853 11.7725 5.48291 11.9724 5.39033 12.193C5.29775 12.4136 5.25006 12.6504 5.25006 12.8896C5.25006 13.1288 5.29775 13.3656 5.39033 13.5862C5.48291 13.8068 5.61853 14.0067 5.78926 14.1742C6.13644 14.5155 6.6038 14.7068 7.09064 14.7068C7.57749 14.7068 8.08279 14.5535 8.42997 14.2121M14.4243 8.14197C14.7714 7.80067 15.2767 7.64735 15.7636 7.64735C16.2504 7.64735 16.7178 7.8386 17.065 8.1799C17.2357 8.34746 17.3713 8.54736 17.4639 8.76793C17.5565 8.9885 17.6042 9.22531 17.6042 9.46452C17.6042 9.70374 17.5565 9.94055 17.4639 10.1611C17.3713 10.3817 17.2357 10.5816 17.065 10.7491L16.7209 11.1771L17.065 11.605C17.2357 11.7725 17.3713 11.9724 17.4639 12.193C17.5565 12.4136 17.6042 12.6504 17.6042 12.8896C17.6042 13.1288 17.5565 13.3656 17.4639 13.5862C17.3713 13.8068 17.2357 14.0067 17.065 14.1742C16.7178 14.5155 16.2504 14.7068 15.7636 14.7068C15.2767 14.7068 14.7714 14.5535 14.4243 14.2121M8.42997 14.2121C8.08866 14.5593 7.89741 15.0267 7.89741 15.5135C7.89741 16.0004 8.08866 16.4677 8.42997 16.8149C8.59752 16.9856 8.79742 17.1213 9.01799 17.2139C9.23856 17.3064 9.47537 17.3541 9.71459 17.3541C9.9538 17.3541 10.1906 17.3064 10.4112 17.2139C10.6318 17.1213 10.8317 16.9856 10.9992 16.8149L11.4271 16.4708L11.855 16.8149C12.0226 16.9856 12.2225 17.1213 12.4431 17.2139C12.6636 17.3064 12.9004 17.3541 13.1397 17.3541C13.3789 17.3541 13.6157 17.3064 13.8362 17.2139C14.0568 17.1213 14.2567 16.9856 14.4243 16.8149C14.7656 16.4677 14.9568 16.0004 14.9568 15.5135C14.9568 15.0267 14.7656 14.5593 14.4243 14.2121M14.4243 14.2121L15.8165 15.3517C16.948 16.2779 17.6042 17.6628 17.6042 19.125V19.125",stroke:"#243304","stroke-linecap":"round","stroke-linejoin":"round"})]}),corn:oh(rh,{children:[ih("rect",{width:"20",height:"20",rx:"10",fill:"#F7FAF0"}),ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M16.775 11.5335C16.628 14.9292 14.9793 17.6158 13.0924 17.5341C11.2056 17.4524 9.7952 14.6335 9.9422 11.2377C10.0892 7.84202 9.83123 3.91792 13.6747 4.0843C17.0911 4.23219 16.922 8.13781 16.775 11.5335Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.79713 3.48954C10.0851 3.32035 10.421 3.1875 10.75 3.1875H13C13.3291 3.1875 13.6649 3.32034 13.9529 3.48953C14.2525 3.66555 14.554 3.91227 14.823 4.20903C15.3562 4.79716 15.8125 5.64021 15.8125 6.60714V11.25H14.6875V6.60714C14.6875 5.99612 14.3938 5.4106 13.9895 4.96465C13.7898 4.74436 13.5757 4.57267 13.3831 4.45952C13.1789 4.33956 13.046 4.3125 13 4.3125H10.75C10.7041 4.3125 10.5712 4.33955 10.367 4.45952C10.1744 4.57267 9.96022 4.74437 9.76051 4.96465C9.3562 5.41061 9.06251 5.99613 9.06251 6.60714V11.25H7.93751V6.60714C7.93751 5.6402 8.39385 4.79715 8.92705 4.20903C9.19609 3.91227 9.49753 3.66555 9.79713 3.48954Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1875 12.75C10.1875 12.4393 10.4394 12.1875 10.75 12.1875L12.25 12.1875C12.5607 12.1875 12.8125 12.4393 12.8125 12.75C12.8125 13.0607 12.5607 13.3125 12.25 13.3125L10.75 13.3125C10.4394 13.3125 10.1875 13.0607 10.1875 12.75Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.375 8.8125H8.49998V7.6875L10.375 7.6875C10.6856 7.6875 10.9375 7.93934 10.9375 8.25C10.9375 8.56066 10.6856 8.8125 10.375 8.8125Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6873 10.5C11.6873 10.1893 11.9392 9.9375 12.2498 9.9375H15.0623V11.0625H12.2498C11.9392 11.0625 11.6873 10.8107 11.6873 10.5Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5542 10.5198C16.5872 10.6193 16.6182 10.7193 16.6472 10.8198C17.1536 12.5761 17.0414 14.4803 16.326 16.156C15.6209 17.8076 14.3835 19.1116 12.8571 19.824C12.7462 19.8758 12.6338 19.9244 12.5199 19.9698L11.8151 20.25L11.5586 19.4802C11.5256 19.3807 11.4946 19.2807 11.4656 19.1803C10.9593 17.4239 11.0714 15.5197 11.7868 13.844C12.4919 12.1924 13.7293 10.8884 15.2557 10.176C15.3666 10.1243 15.4791 10.0756 15.5929 10.0302L16.2977 9.75001L16.5542 10.5198ZM12.5083 18.7508C12.0931 17.261 12.1983 15.663 12.7934 14.2692C13.3754 12.9059 14.3798 11.842 15.6045 11.2492C16.0197 12.739 15.9145 14.337 15.3194 15.7309C14.7375 17.0941 13.7331 18.158 12.5083 18.7508Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.05863 10.5198C7.02561 10.6193 6.99461 10.7193 6.96564 10.8197C6.45927 12.5761 6.5714 14.4803 7.28679 16.156C7.99188 17.8076 9.22931 19.1116 10.7557 19.824C10.8666 19.8757 10.9791 19.9244 11.0929 19.9698L11.7977 20.25L12.0542 19.4802C12.0872 19.3807 12.1182 19.2807 12.1472 19.1802C12.6536 17.4239 12.5414 15.5197 11.826 13.844C11.121 12.1924 9.88353 10.8884 8.3571 10.176C8.2462 10.1242 8.13377 10.0756 8.01991 10.0302L7.31514 9.75L7.05863 10.5198ZM11.1045 18.7508C11.5197 17.261 11.4145 15.663 10.8195 14.2691C10.2375 12.9059 9.23306 11.842 8.00831 11.2492C7.59312 12.739 7.69832 14.337 8.29338 15.7308C8.87536 17.0941 9.87977 18.158 11.1045 18.7508Z",fill:"#49650C"})]}),cotton:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#EAF5F5"}),ih("path",{d:"M7.99707 10.2955C8.85472 7.09475 12.1447 5.19525 15.3455 6.0529C18.5463 6.91055 21.8947 10.5888 21.0371 13.7896C20.1794 16.9904 15.2464 19.2261 12.0456 18.3685C8.8448 17.5108 7.13942 13.4963 7.99707 10.2955Z",fill:"white"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.7316 17.1435C14.3356 17.0543 15.2596 16.5107 15.7823 15.9108C16.2192 15.4094 16.4078 14.8325 16.4559 14.3565C14.8518 14.4457 13.9279 14.9892 13.4052 15.5892C12.9683 16.0906 12.7796 16.6674 12.7316 17.1435ZM12.6983 14.9733C13.4878 14.0673 14.8248 13.4062 16.9276 13.4062H17.3565L17.3945 13.8335C17.4595 14.5647 17.2665 15.6345 16.4891 16.5267C15.6997 17.4327 14.3627 18.0937 12.2599 18.0937H11.831L11.793 17.6665C11.728 16.9353 11.921 15.8655 12.6983 14.9733Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7684 17.206C10.1644 17.1168 9.24042 16.5732 8.71769 15.9733C8.2808 15.4719 8.09215 14.895 8.04412 14.419C9.64817 14.5082 10.5721 15.0517 11.0948 15.6517C11.5317 16.1531 11.7204 16.7299 11.7684 17.206ZM11.8017 15.0358C11.0122 14.1298 9.67519 13.4688 7.57244 13.4688H7.14352L7.10553 13.896C7.04053 14.6272 7.23352 15.697 8.01086 16.5892C8.80027 17.4952 10.1373 18.1562 12.2401 18.1562H12.669L12.707 17.729C12.772 16.9978 12.579 15.928 11.8017 15.0358Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7812 21.3749V16.6875H12.7187V21.3749H11.7812Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 8.78129C15.4016 8.78129 14.8419 8.94106 14.3598 9.21997C14.1357 9.3496 13.8489 9.27302 13.7193 9.04894C13.5897 8.82485 13.6662 8.5381 13.8903 8.40847C14.5113 8.04925 15.2324 7.8438 16 7.8438C18.33 7.8438 20.2187 9.73258 20.2187 12.0625C20.2187 13.1854 19.8909 14.2349 19.2472 15.0129C18.5961 15.7999 17.6431 16.2812 16.4688 16.2812C16.2099 16.2812 16 16.0714 16 15.8125C16 15.5536 16.2099 15.3437 16.4688 15.3437C17.3655 15.3437 18.0531 14.9856 18.5249 14.4153C19.0041 13.8361 19.2813 13.0107 19.2813 12.0625C19.2813 10.2503 17.8122 8.78129 16 8.78129Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49997 8.71876C6.6878 8.71876 5.21874 10.1878 5.21874 12C5.21874 12.9482 5.49593 13.7736 5.97513 14.3528C6.44691 14.9231 7.13446 15.2812 8.03122 15.2812C8.2901 15.2812 8.49997 15.4911 8.49997 15.75C8.49997 16.0088 8.2901 16.2187 8.03122 16.2187C6.85693 16.2187 5.90387 15.7374 5.2528 14.9504C4.60915 14.1724 4.28125 13.1229 4.28125 12C4.28125 9.67005 6.17003 7.78127 8.49997 7.78127C9.2676 7.78127 9.98867 7.98672 10.6097 8.34594C10.8338 8.47557 10.9103 8.76232 10.7807 8.9864C10.6511 9.21049 10.3643 9.28707 10.1402 9.15744C9.65809 8.87853 9.0984 8.71876 8.49997 8.71876Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.2501 5.0313C10.4379 5.0313 8.96883 6.50036 8.96883 8.31253H8.03134C8.03134 5.9826 9.92013 4.09381 12.2501 4.09381C14.58 4.09381 16.4688 5.9826 16.4688 8.31253H15.5313C15.5313 6.50036 14.0622 5.0313 12.2501 5.0313Z",fill:"#11615B"})]}),covercrop:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M4 17.25C4 16.0074 5.00736 15 6.25 15H16C17.2426 15 18.25 16.0074 18.25 17.25C18.25 18.4926 17.2426 19.5 16 19.5H6.25C5.00736 19.5 4 18.4926 4 17.25Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.04047 18C4.04047 17.6893 4.29231 17.4375 4.60297 17.4375L19.8971 17.4375C20.2077 17.4375 20.4596 17.6893 20.4596 18C20.4596 18.3107 20.2077 18.5625 19.8971 18.5625L4.60297 18.5625C4.29231 18.5625 4.04047 18.3107 4.04047 18Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.07788 9.96448C6.37363 9.86942 6.69046 10.0321 6.78552 10.3279C7.18138 11.5594 7.37255 13.1132 7.46707 14.3315C7.51477 14.9462 7.5386 15.4864 7.55052 15.8733C7.55649 16.0669 7.55948 16.2224 7.56099 16.33C7.56174 16.3839 7.56212 16.4258 7.56231 16.4545L7.56248 16.4876L7.5625 16.4964L7.56251 16.4998C7.56251 16.4999 7.56251 16.5 7.00001 16.5L7.56251 16.4998C7.56251 16.8105 7.31067 17.0625 7.00001 17.0625C6.68937 17.0625 6.43754 16.8107 6.43751 16.5001M6.43751 16.5001L6.4375 16.4982L6.43749 16.4912L6.43734 16.462C6.43716 16.4359 6.43681 16.3967 6.4361 16.3457C6.43467 16.2438 6.43181 16.0946 6.42605 15.908C6.41454 15.5344 6.3915 15.0121 6.34544 14.4185C6.25247 13.2201 6.06864 11.7739 5.71449 10.6721C5.61943 10.3764 5.78212 10.0595 6.07788 9.96448",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.64045 10.0951C9.41682 9.87945 9.06073 9.88592 8.84509 10.1095C7.62163 11.3783 7.02641 12.9886 6.73339 14.2475C6.58582 14.8815 6.51204 15.4387 6.47505 15.8388C6.45652 16.0392 6.44714 16.201 6.44239 16.3143C6.44001 16.371 6.43879 16.4156 6.43816 16.447L6.4376 16.4839L6.43751 16.4946L6.4375 16.498L6.4375 16.4992C6.4375 16.4994 6.4375 16.5 7 16.5H6.4375C6.4375 16.8107 6.68934 17.0625 7 17.0625C7.31045 17.0625 7.56215 16.811 7.5625 16.5006L7.56254 16.4949L7.56294 16.4695C7.56341 16.446 7.56438 16.4096 7.5664 16.3615C7.57044 16.2651 7.57864 16.1223 7.59527 15.9424C7.62858 15.5821 7.69543 15.0768 7.8291 14.5025C8.09859 13.3447 8.62837 11.955 9.65491 10.8905C9.87055 10.6668 9.86408 10.3107 9.64045 10.0951Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.465 10.9335C13.2902 10.6767 12.9404 10.6102 12.6835 10.785C11.0633 11.8876 10.2502 13.3097 9.84486 14.4526C9.64258 15.0229 9.54101 15.5254 9.48988 15.8883C9.46427 16.07 9.45119 16.2176 9.4445 16.3223C9.44116 16.3746 9.43941 16.4163 9.43849 16.4463C9.43804 16.4613 9.43779 16.4733 9.43765 16.4823L9.43753 16.4935L9.43751 16.4973L9.4375 16.4988L9.4375 16.4994C9.4375 16.4997 9.4375 16.5 10 16.5H9.4375C9.4375 16.8107 9.68934 17.0625 10 17.0625C10.3101 17.0625 10.5616 16.8116 10.5625 16.5017C10.5625 16.5013 10.5625 16.5009 10.5625 16.5005L10.5625 16.5009L10.5625 16.5015L10.5625 16.4991L10.563 16.4806C10.5635 16.4626 10.5647 16.4334 10.5672 16.394C10.5722 16.3152 10.5826 16.1962 10.6039 16.0453C10.6465 15.7428 10.7324 15.3156 10.9051 14.8286C11.2498 13.857 11.9367 12.654 13.3165 11.715C13.5733 11.5402 13.6398 11.1903 13.465 10.9335Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 10.6875C10.3107 10.6875 10.5625 10.9393 10.5625 11.25V16.4997L10 16.5L9.4375 16.5V11.25C9.4375 10.9393 9.68934 10.6875 10 10.6875ZM10 17.0625C9.68934 17.0625 9.4375 16.8106 9.4375 16.5L10 16.5L10.5625 16.4997C10.5625 16.8103 10.3107 17.0625 10 17.0625Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.30605 10.722C5.59766 10.6149 5.92089 10.7644 6.02801 11.056C6.42942 12.1488 6.62175 13.5217 6.71656 14.5909C6.7645 15.1317 6.78845 15.6067 6.80044 15.947C6.80644 16.1173 6.80945 16.2542 6.81097 16.3492C6.81173 16.3967 6.81211 16.4337 6.81231 16.4592L6.81248 16.4886L6.8125 16.4966L6.81251 16.4998C6.81251 16.4999 6.81251 16.5 6.25001 16.5L6.81251 16.4998C6.81251 16.8105 6.56067 17.0625 6.25001 17.0625C5.93938 17.0625 5.68756 16.8107 5.68751 16.5001C5.68751 16.5001 5.68751 16.5001 5.68751 16.5001L5.68751 16.4987L5.68749 16.4928L5.68734 16.4678C5.68717 16.4453 5.68682 16.4114 5.68611 16.3671C5.6847 16.2787 5.68186 16.149 5.67614 15.9866C5.66469 15.6615 5.64176 15.2069 5.59596 14.6903C5.50326 13.6449 5.32059 12.3929 4.97201 11.444C4.86489 11.1524 5.01444 10.8291 5.30605 10.722Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.9166 10.872C20.7078 10.6419 20.3521 10.6247 20.122 10.8334C18.8887 11.9525 18.2851 13.3778 17.9876 14.496C17.8381 15.0581 17.7633 15.5523 17.7258 15.9077C17.707 16.0857 17.6974 16.2298 17.6925 16.3312C17.6901 16.382 17.6888 16.4221 17.6882 16.4506C17.6879 16.4648 17.6877 16.4762 17.6876 16.4844L17.6875 16.4946L17.6875 16.4979L17.6875 16.4991C17.6875 16.4993 17.6875 16.5 18.25 16.5H17.6875C17.6875 16.8107 17.9393 17.0625 18.25 17.0625C18.5604 17.0625 18.812 16.8112 18.8125 16.5009M18.8125 16.5009L18.8125 16.497L18.8129 16.4763C18.8133 16.4568 18.8143 16.4261 18.8162 16.3851C18.8202 16.3031 18.8282 16.1806 18.8445 16.0259C18.8773 15.716 18.9431 15.2805 19.0748 14.7852C19.3399 13.7888 19.8613 12.5892 20.878 11.6666C21.1081 11.4578 21.1253 11.1021 20.9166 10.872",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.306 10.722C17.5977 10.6149 17.9209 10.7644 18.028 11.056C18.4294 12.1488 18.6218 13.5217 18.7166 14.5909C18.7645 15.1317 18.7885 15.6067 18.8004 15.947C18.8064 16.1173 18.8095 16.2542 18.811 16.3492C18.8117 16.3967 18.8121 16.4337 18.8123 16.4592L18.8125 16.4886L18.8125 16.4966L18.8125 16.4998C18.8125 16.4999 18.8125 16.5 18.25 16.5L18.8125 16.4998C18.8125 16.8105 18.5607 17.0625 18.25 17.0625C17.9394 17.0625 17.6876 16.8107 17.6875 16.5001C17.6875 16.5001 17.6875 16.5001 17.6875 16.5001L17.6875 16.4987L17.6875 16.4928L17.6873 16.4678C17.6872 16.4453 17.6868 16.4114 17.6861 16.3671C17.6847 16.2787 17.6819 16.149 17.6761 15.9866C17.6647 15.6615 17.6418 15.2069 17.596 14.6903C17.5033 13.6449 17.3206 12.3929 16.972 11.444C16.8649 11.1524 17.0144 10.8291 17.306 10.722Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.3042 13.0268C19.0429 12.8589 18.6948 12.9345 18.5268 13.1958C18.0885 13.8777 17.8859 14.7198 17.7879 15.3513C17.7378 15.674 17.7128 15.9573 17.7003 16.1607C17.694 16.2626 17.6908 16.3451 17.6892 16.4032C17.6884 16.4323 17.688 16.4553 17.6877 16.4716L17.6875 16.491L17.6875 16.4969L17.6875 16.4988L17.6875 16.4998C17.6875 16.4999 17.6875 16.5 18.25 16.5L17.6875 16.4998C17.6875 16.8104 17.9393 17.0625 18.25 17.0625C18.5605 17.0625 18.8122 16.811 18.8125 16.5005C18.8125 16.5004 18.8125 16.5007 18.8125 16.5005L18.8125 16.4984L18.8126 16.4866C18.8128 16.4755 18.8131 16.458 18.8137 16.4347C18.8151 16.3879 18.8177 16.3181 18.8232 16.2299C18.8341 16.0531 18.8559 15.8052 18.8996 15.5238C18.9891 14.9469 19.1615 14.289 19.4732 13.8042C19.6412 13.5429 19.5655 13.1948 19.3042 13.0268Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5834 10.872C12.7922 10.6419 13.1479 10.6247 13.378 10.8334C14.6113 11.9525 15.2149 13.3778 15.5124 14.496C15.6619 15.0581 15.7367 15.5523 15.7742 15.9077C15.793 16.0857 15.8026 16.2298 15.8075 16.3312C15.8099 16.382 15.8112 16.4221 15.8118 16.4506C15.8121 16.4648 15.8123 16.4762 15.8124 16.4844L15.8125 16.4946L15.8125 16.4979L15.8125 16.4991C15.8125 16.4993 15.8125 16.5 15.25 16.5H15.8125C15.8125 16.8107 15.5607 17.0625 15.25 17.0625C14.9396 17.0625 14.688 16.8112 14.6875 16.5009M14.6875 16.5009L14.6875 16.497L14.6871 16.4763C14.6867 16.4568 14.6857 16.4261 14.6838 16.3851C14.6798 16.3031 14.6718 16.1806 14.6555 16.0259C14.6227 15.716 14.5569 15.2805 14.4252 14.7852C14.1601 13.7888 13.6387 12.5892 12.622 11.6666C12.3919 11.4578 12.3747 11.1021 12.5834 10.872",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7715 5.50734C17.4994 5.35741 17.1573 5.45644 17.0073 5.72853C15.8313 7.86275 15.2578 10.571 14.9737 12.7071C14.8307 13.7822 14.7592 14.7272 14.7234 15.4039C14.7055 15.7425 14.6966 16.0145 14.6921 16.2028C14.6898 16.297 14.6887 16.3703 14.6881 16.4205L14.6876 16.4783L14.6875 16.4938L14.6875 16.4981L14.6875 16.4993C14.6875 16.4995 14.6875 16.5 15.25 16.5L14.6875 16.4993C14.6875 16.81 14.9393 17.0625 15.25 17.0625C15.5606 17.0625 15.8124 16.8107 15.8125 16.5001M15.8125 16.5001L15.8125 16.4969L15.8126 16.4846L15.813 16.4334C15.8135 16.3876 15.8146 16.319 15.8167 16.2298C15.821 16.0512 15.8296 15.79 15.8469 15.4633C15.8814 14.8093 15.9506 13.8948 16.0888 12.8554C16.3672 10.7623 16.9187 8.22058 17.9927 6.27146C18.1426 5.99937 18.0436 5.65726 17.7715 5.50734",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3599 8.45522C14.6608 8.37785 14.9674 8.55904 15.0448 8.85991C15.4336 10.3721 15.6235 12.291 15.7177 13.8089C15.7651 14.5726 15.7888 15.2438 15.8006 15.7244C15.8065 15.9648 15.8095 16.1578 15.811 16.2911C15.8117 16.3577 15.8121 16.4095 15.8123 16.4448L15.8125 16.4853L15.8125 16.4959L15.8125 16.4996C15.8125 16.4997 15.8125 16.5 15.25 16.5L15.8125 16.4996C15.8125 16.8103 15.5607 17.0625 15.25 17.0625C14.9394 17.0625 14.6875 16.8107 14.6875 16.5C14.6875 16.5 14.6875 16.5 14.6875 16.5L14.6875 16.4974L14.6875 16.4882L14.6873 16.4508C14.6871 16.4176 14.6868 16.368 14.6861 16.3037C14.6846 16.1749 14.6817 15.987 14.676 15.7521C14.6644 15.2822 14.6412 14.6253 14.5948 13.8786C14.5015 12.3757 14.3164 10.5446 13.9552 9.14008C13.8779 8.83921 14.059 8.53259 14.3599 8.45522Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.15496 4.69559C6.46115 4.6431 6.75192 4.84876 6.80441 5.15496C7.1858 7.37973 7.37432 10.2221 7.46827 12.4924C7.51538 13.6309 7.53893 14.6317 7.5507 15.3482C7.55659 15.7065 7.55954 15.9938 7.56102 16.1919C7.56176 16.2909 7.56213 16.3676 7.56231 16.4197L7.56248 16.4792L7.5625 16.4996C7.5625 16.4996 7.5625 16.5 7 16.5L6.4375 16.5L6.43748 16.4811L6.43732 16.4237C6.43714 16.373 6.43678 16.2977 6.43605 16.2002C6.4346 16.0052 6.43169 15.7213 6.42586 15.3667C6.4142 14.6573 6.39087 13.666 6.34423 12.5389C6.25067 10.2779 6.0642 7.49527 5.69559 5.34504C5.6431 5.03885 5.84876 4.74808 6.15496 4.69559ZM7 17.0625C6.68934 17.0625 6.4375 16.8106 6.4375 16.5L7 16.5L7.5625 16.4996C7.5625 16.8102 7.31066 17.0625 7 17.0625Z",fill:"#B49034"})]}),dairy:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8ECF4"}),ih("path",{d:"M10.75 20.25C9.92157 20.25 9.25 19.5784 9.25 18.75L9.25 9.75C9.25 8.92157 9.92157 8.25 10.75 8.25L16 8.25C16.8284 8.25 17.5 8.92157 17.5 9.75L17.5 18.75C17.5 19.5784 16.8284 20.25 16 20.25L10.75 20.25Z",fill:"#CC8FB7"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.79598 3.91838C9.04317 3.65471 9.38559 3.5 9.75001 3.5H14.75C15.1144 3.5 15.4568 3.65471 15.704 3.91838C15.9502 4.18095 16.0833 4.53057 16.0833 4.88889V6.53154L16.9269 7.97824C16.9269 7.97828 16.9268 7.9782 16.9269 7.97824C17.4656 8.90169 17.7499 9.96507 17.75 11.048V18.2222C17.75 18.8163 17.5291 19.392 17.1266 19.8213C16.7231 20.2516 16.1688 20.5 15.5833 20.5H8.91667C8.33124 20.5 7.77686 20.2516 7.37339 19.8213C6.97095 19.392 6.75001 18.8163 6.75001 18.2222V11.048C6.75007 9.9651 7.03429 8.90182 7.57307 7.97837C7.57309 7.97833 7.57304 7.97841 7.57307 7.97837L8.41667 6.53154V4.88889C8.41667 4.53057 8.54982 4.18095 8.79598 3.91838ZM9.20392 7.16667L8.43694 8.48207C7.98897 9.24985 7.75006 10.1389 7.75001 11.048C7.75001 11.048 7.75001 11.048 7.75001 11.048V18.2222C7.75001 18.5711 7.88025 18.8998 8.10293 19.1373C8.32458 19.3738 8.61805 19.5 8.91667 19.5H15.5833C15.882 19.5 16.1754 19.3738 16.3971 19.1373C16.6198 18.8998 16.75 18.5711 16.75 18.2222V11.048C16.75 11.048 16.75 11.048 16.75 11.048C16.7499 10.1389 16.5111 9.24997 16.0631 8.4822L15.2961 7.16667H9.20392ZM15.0833 6.16667V4.88889C15.0833 4.77571 15.0409 4.67314 14.9745 4.60232C14.9091 4.53259 14.8276 4.5 14.75 4.5H9.75001C9.67239 4.5 9.59089 4.53259 9.52552 4.60232C9.45912 4.67314 9.41667 4.77571 9.41667 4.88889V6.16667H15.0833Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.25 15C15.25 16.6569 13.9069 18 12.25 18C10.5931 18 9.25 16.6569 9.25 15C9.25 13.3431 10.5931 12 12.25 12C13.9069 12 15.25 13.3431 15.25 15ZM12.25 17C13.3546 17 14.25 16.1046 14.25 15C14.25 13.8954 13.3546 13 12.25 13C11.1454 13 10.25 13.8954 10.25 15C10.25 16.1046 11.1454 17 12.25 17Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.75001 10C9.75001 9.72386 9.97386 9.5 10.25 9.5H14.25C14.5261 9.5 14.75 9.72386 14.75 10C14.75 10.2761 14.5261 10.5 14.25 10.5H10.25C9.97386 10.5 9.75001 10.2761 9.75001 10Z",fill:"#3A0528"})]}),fallow:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.04047 18C4.04047 17.6893 4.29231 17.4375 4.60297 17.4375L19.8971 17.4375C20.2077 17.4375 20.4596 17.6893 20.4596 18C20.4596 18.3107 20.2077 18.5625 19.8971 18.5625L4.60297 18.5625C4.29231 18.5625 4.04047 18.3107 4.04047 18Z",fill:"#322605"})]}),flax:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8ECF4"}),ih("path",{d:"M12.5564 9.33874C12.7185 9.70307 12.8633 10.0154 12.9915 10.2816C13.3603 11.048 13.1204 11.8744 12.2704 11.8429C11.9615 11.8315 11.5731 11.8436 11.0643 11.9252C9.27384 12.2126 8.97549 11.6379 7.48346 10.7757C5.99143 9.91352 5.69302 7.90179 7.48346 7.03962C9.2739 6.17746 11.6612 7.32701 12.5564 9.33874Z",fill:"#CEA27A"}),ih("path",{d:"M16.6576 15.0838C16.26 15.1142 15.9172 15.1458 15.6234 15.1771C14.7777 15.2673 14.0798 14.7638 14.3947 13.9738C14.5092 13.6866 14.6282 13.3167 14.7221 12.81C15.0525 11.027 15.694 10.9389 17.0071 9.82287C18.3201 8.70686 20.3152 9.10112 20.5263 11.0771C20.7374 13.0531 18.8531 14.9159 16.6576 15.0838Z",fill:"#CEA27A"}),ih("path",{d:"M6.62375 14.3802C6.54508 13.9892 6.47196 13.6529 6.40503 13.365C6.21238 12.5366 6.62698 11.7826 7.44955 11.9988C7.74854 12.0774 8.13015 12.1504 8.64457 12.1818C10.4546 12.2923 10.6202 12.9184 11.888 14.0855C13.1558 15.2526 13.0078 17.281 11.0723 17.7314C9.13681 18.1819 7.05814 16.5388 6.62375 14.3802Z",fill:"#CEA27A"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.3018 5.90874C11.3389 6.38819 12.2499 7.26467 12.7489 8.38595C12.9093 8.74628 13.052 9.05402 13.1777 9.31529C13.4049 9.78736 13.4738 10.335 13.2875 10.7977C13.1921 11.0349 13.0291 11.2467 12.7944 11.3931C12.5605 11.5391 12.2842 11.6023 11.9889 11.5913C11.7112 11.5811 11.3555 11.5914 10.8802 11.6677C9.91946 11.8219 9.29362 11.7528 8.69625 11.4873C8.41538 11.3624 8.1538 11.1998 7.88803 11.0291C7.84327 11.0004 7.79813 10.9712 7.75235 10.9417C7.52025 10.7918 7.27158 10.6313 6.97079 10.4575C6.09617 9.95211 5.53839 9.09004 5.49132 8.1835C5.44278 7.24862 5.94227 6.35148 7.00394 5.84024C8.06154 5.33097 9.26512 5.42951 10.3018 5.90874ZM9.88321 6.81417C9.05483 6.43123 8.16956 6.38608 7.43671 6.73897C6.70795 7.0899 6.46141 7.62971 6.48748 8.13178C6.51502 8.66218 6.85245 9.23706 7.46986 9.59383C7.79379 9.78101 8.06521 9.95628 8.2977 10.1064C8.34218 10.1351 8.38524 10.1629 8.42697 10.1897C8.69273 10.3604 8.8974 10.4851 9.10142 10.5758C9.47385 10.7413 9.89241 10.816 10.7221 10.6828C11.2645 10.5957 11.6855 10.5819 12.0257 10.5945C12.1554 10.5993 12.2278 10.5709 12.2664 10.5469C12.3042 10.5232 12.3375 10.4864 12.3622 10.4252C12.4162 10.291 12.4206 10.0422 12.2789 9.74791C12.1484 9.47667 12.0015 9.15983 11.8376 8.7915C11.4413 7.90105 10.7111 7.19689 9.88321 6.81417Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.7704 14.2117C18.9721 15.0894 17.8075 15.7167 16.5198 15.8646C16.0311 15.9208 15.6234 15.9751 15.2863 16.0258C14.7805 16.1019 14.2425 16.0107 13.8557 15.711C13.6568 15.5568 13.4965 15.3445 13.4217 15.0786C13.3468 14.8125 13.3681 14.5305 13.4688 14.2539C13.5725 13.9695 13.683 13.5898 13.7527 13.0366C13.8785 12.0382 14.1349 11.4401 14.5837 10.9313C14.7945 10.6924 15.0384 10.4841 15.2922 10.2737C15.3349 10.2382 15.3781 10.2026 15.422 10.1663C15.6446 9.98276 15.8833 9.78585 16.151 9.54146C16.9268 8.83327 17.965 8.55483 18.8888 8.78144C19.8375 9.01417 20.6051 9.766 20.8159 10.9712C21.0261 12.173 20.5686 13.3341 19.7704 14.2117ZM19.0324 13.5406C19.6713 12.8381 19.9792 11.977 19.8333 11.143C19.688 10.3123 19.2004 9.88496 18.6511 9.75022C18.077 9.60937 17.3745 9.77522 16.8235 10.2782C16.5357 10.5409 16.2757 10.7553 16.0527 10.9392C16.0101 10.9744 15.9688 11.0085 15.9289 11.0415C15.6749 11.2521 15.4857 11.4168 15.3317 11.5913C15.051 11.9094 14.8509 12.3003 14.7424 13.1613C14.6626 13.7946 14.533 14.247 14.4061 14.5955C14.365 14.7081 14.3723 14.7745 14.3819 14.8084C14.3915 14.8425 14.4139 14.8816 14.4668 14.9225C14.5834 15.0129 14.8247 15.0865 15.138 15.0394C15.4881 14.9868 15.9074 14.9309 16.406 14.8736C17.4493 14.7538 18.3936 14.243 19.0324 13.5406Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.02182 17.9582C6.99933 17.3564 6.14702 16.3448 5.73875 15.1146C5.58381 14.6478 5.44717 14.2599 5.32857 13.9402C5.1506 13.4607 5.12979 12.9154 5.34405 12.4755C5.45424 12.2492 5.62925 12.0489 5.87418 11.9212C6.11935 11.7935 6.39977 11.7566 6.69106 11.7987C6.99066 11.8419 7.38498 11.8724 7.94078 11.8274C8.94373 11.7463 9.58168 11.8748 10.1715 12.2101C10.4485 12.3675 10.7024 12.5636 10.9602 12.769C11.0036 12.8035 11.0474 12.8386 11.0918 12.8741C11.3171 13.0544 11.5587 13.2478 11.8527 13.4598C12.7046 14.0743 13.1896 15.0335 13.1568 15.9841C13.1231 16.9604 12.5443 17.8656 11.4077 18.3185C10.2743 18.7702 9.04423 18.5599 8.02182 17.9582ZM8.52778 17.0985C9.34612 17.5802 10.252 17.7053 11.0385 17.3919C11.8218 17.0797 12.1404 16.515 12.1599 15.9498C12.1803 15.3589 11.8742 14.7052 11.2691 14.2688C10.9531 14.0409 10.69 13.8302 10.4644 13.6496C10.4212 13.6151 10.3794 13.5816 10.3389 13.5493C10.0808 13.3438 9.88091 13.1923 9.67859 13.0773C9.3097 12.8676 8.88619 12.7517 8.0212 12.8217C7.38496 12.8731 6.91565 12.8389 6.54854 12.7859C6.42988 12.7688 6.36635 12.7896 6.33519 12.8058C6.30379 12.8222 6.2701 12.8522 6.24084 12.9123C6.17621 13.045 6.15352 13.2962 6.26376 13.5932C6.38693 13.9252 6.5274 14.3242 6.68547 14.8004C7.01628 15.7972 7.70953 16.617 8.52778 17.0985Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.1362 9.29763C10.8927 9.42642 10.5909 9.33345 10.4621 9.08996C10.2447 8.67897 9.50618 7.80933 8.39627 7.69577C8.12225 7.66773 7.92284 7.42286 7.95088 7.14884C7.97892 6.87482 8.22378 6.67541 8.4978 6.70345C10.0595 6.86323 11.0371 8.04366 11.3438 8.62355C11.4726 8.86704 11.3797 9.16883 11.1362 9.29763Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2065 13.8759C16.1528 13.6058 16.3284 13.3432 16.5985 13.2896C17.0546 13.199 18.0993 12.7406 18.5261 11.7097C18.6314 11.4552 18.9231 11.3343 19.1776 11.4396C19.4321 11.545 19.5531 11.8367 19.4477 12.0912C18.8473 13.5417 17.4363 14.1402 16.7928 14.268C16.5226 14.3216 16.2601 14.1461 16.2065 13.8759Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.62111 14.401C7.87459 14.2932 8.16747 14.4113 8.27527 14.6648C8.45722 15.0926 9.11977 16.0215 10.2161 16.2282C10.4868 16.2793 10.6649 16.5401 10.6138 16.8108C10.5628 17.0815 10.302 17.2595 10.0313 17.2085C8.48866 16.9175 7.61407 15.6588 7.35733 15.0552C7.24953 14.8017 7.36763 14.5088 7.62111 14.401Z",fill:"#3A2007"})]}),generic:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8F8F3"}),ih("path",{d:"M17.6166 4.70391C6.96887 2.97901 8.86026 12.6097 10.6115 18C10.6115 10.0942 15.5151 12.969 17.6166 11.1723C19.7181 9.37561 21.1192 5.42259 17.6166 4.70391Z",fill:"#ABA5A0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.17232 5.31774C6.48001 5.27485 6.76421 5.4895 6.80711 5.79719C7.02122 7.33304 7.48877 9.84778 8.19244 12.3774C8.9008 14.9238 9.82973 17.4145 10.9403 18.9538C11.1221 19.2058 11.0652 19.5573 10.8132 19.7391C10.5613 19.9209 10.2097 19.864 10.0279 19.612C8.79346 17.9009 7.82245 15.2451 7.10859 12.6789C6.39003 10.0958 5.91303 7.53168 5.69288 5.95252C5.64999 5.64484 5.86464 5.36064 6.17232 5.31774Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.01455 4.43755C9.32517 4.44235 9.57309 4.69805 9.56829 5.00867C9.55206 6.05907 9.65752 8.85557 9.85555 11.6884C9.95435 13.1018 10.0756 14.5158 10.2151 15.7175C10.3562 16.933 10.5115 17.8902 10.6698 18.4148C10.7595 18.7122 10.5911 19.0261 10.2937 19.1158C9.99627 19.2055 9.68243 19.0371 9.59271 18.7397C9.40206 18.1077 9.23815 17.0583 9.0976 15.8472C8.95545 14.6223 8.83276 13.1899 8.73329 11.7669C8.53477 8.92702 8.42643 6.09146 8.44343 4.99129C8.44823 4.68067 8.70393 4.43275 9.01455 4.43755Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7851 15.6444C10.7412 17.1097 10.8743 18.2757 11.0227 18.7676C11.1124 19.065 10.944 19.3788 10.6466 19.4686C10.3492 19.5583 10.0353 19.3899 9.94559 19.0925C9.74508 18.4278 9.61546 17.119 9.66058 15.6108C9.70615 14.0876 9.93166 12.2934 10.4831 10.6503C11.0324 9.01358 11.9262 7.46598 13.3508 6.52466C14.7991 5.56766 16.7009 5.29917 19.1179 6.04284C19.4148 6.1342 19.5814 6.44897 19.4901 6.74589C19.3987 7.04281 19.084 7.20946 18.787 7.1181C16.617 6.45041 15.0795 6.73079 13.971 7.46327C12.8387 8.21144 12.0579 9.49393 11.5496 11.0083C11.0435 12.5163 10.8285 14.1942 10.7851 15.6444Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0272 16.5221C10.8491 17.6995 10.8844 18.6617 11.0227 19.1204C11.1125 19.4178 10.9441 19.7317 10.6467 19.8214C10.3492 19.9111 10.0354 19.7427 9.94568 19.4453C9.73517 18.7475 9.72825 17.5877 9.91483 16.3539C10.1044 15.1006 10.5066 13.6828 11.1857 12.4538C11.8636 11.2269 12.8459 10.1395 14.2144 9.64593C15.5972 9.14722 17.2627 9.29447 19.2135 10.3163C19.4887 10.4605 19.5949 10.8004 19.4508 11.0756C19.3066 11.3508 18.9667 11.457 18.6915 11.3129C16.9374 10.3941 15.6047 10.3404 14.5961 10.7042C13.5731 11.0731 12.7705 11.9117 12.1704 12.9979C11.5714 14.0819 11.2023 15.3644 11.0272 16.5221Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 10.4169C13.1288 10.1972 13.485 10.1972 13.7046 10.4169L15.116 11.8282C15.3357 12.0479 15.3357 12.4041 15.116 12.6237C14.8963 12.8434 14.5402 12.8434 14.3205 12.6237L12.9091 11.2124C12.6895 10.9927 12.6895 10.6365 12.9091 10.4169Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 6.88843C13.1288 6.66876 13.485 6.66876 13.7046 6.88843L15.116 8.29981C15.3357 8.51948 15.3357 8.87563 15.116 9.0953C14.8963 9.31497 14.5402 9.31497 14.3205 9.0953L12.9091 7.68393C12.6895 7.46426 12.6895 7.1081 12.9091 6.88843Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 9.71125C15.246 9.49158 15.6021 9.49158 15.8218 9.71125L17.2332 11.1226C17.4529 11.3423 17.4529 11.6984 17.2332 11.9181C17.0135 12.1378 16.6574 12.1378 16.4377 11.9181L15.0263 10.5067C14.8067 10.2871 14.8067 9.93092 15.0263 9.71125Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 6.1828C15.246 5.96313 15.6021 5.96313 15.8218 6.1828L17.2332 7.59418C17.4529 7.81385 17.4529 8.17001 17.2332 8.38968C17.0135 8.60935 16.6574 8.60935 16.4377 8.38968L15.0263 6.9783C14.8067 6.75863 14.8067 6.40247 15.0263 6.1828Z",fill:"#66605C"})]}),grapes:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7ECEB"}),ih("path",{d:"M10.9339 18.956L9.27983 10.1653C9.06588 9.02819 10.0364 8.03577 11.1135 8.29019L18.5567 10.0483C19.6826 10.3143 20.1316 11.7445 19.3771 12.6611L13.5879 19.6937C12.7559 20.7044 11.1805 20.2665 10.9339 18.956Z",fill:"#D28783"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2892 11.3322C15.6786 11.1686 15.0509 11.531 14.8872 12.1417C14.7236 12.7524 15.086 13.3801 15.6967 13.5437C16.3074 13.7073 16.9351 13.3449 17.0987 12.7343C17.2623 12.1236 16.8999 11.4959 16.2892 11.3322ZM16.5804 10.2456C15.3696 9.92114 14.125 10.6397 13.8006 11.8505C13.4761 13.0614 14.1947 14.3059 15.4055 14.6304C16.6163 14.9548 17.8609 14.2363 18.1854 13.0254C18.5098 11.8146 17.7912 10.57 16.5804 10.2456Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.7813 10.3923C12.1706 10.2287 11.5429 10.5911 11.3793 11.2017C11.2157 11.8124 11.5781 12.4401 12.1887 12.6037C12.7994 12.7674 13.4271 12.405 13.5907 11.7943C13.7544 11.1836 13.392 10.5559 12.7813 10.3923ZM13.0725 9.30562C11.8616 8.98119 10.6171 9.69974 10.2926 10.9106C9.96819 12.1214 10.6867 13.366 11.8976 13.6904C13.1084 14.0149 14.353 13.2963 14.6774 12.0855C15.0019 10.8746 14.2833 9.63006 13.0725 9.30562Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.27352 9.4524C8.66284 9.28877 8.03514 9.65117 7.87151 10.2618C7.70788 10.8725 8.07028 11.5002 8.68096 11.6639C9.29164 11.8275 9.91934 11.4651 10.083 10.8544C10.2466 10.2437 9.88419 9.61603 9.27352 9.4524ZM9.56469 8.36573C8.35386 8.04129 7.10929 8.75985 6.78485 9.97067C6.46041 11.1815 7.17896 12.4261 8.38979 12.7505C9.60062 13.075 10.8452 12.3564 11.1696 11.1456C11.4941 9.93475 10.7755 8.69017 9.56469 8.36573Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0876 13.4302C9.47688 13.2666 8.84918 13.629 8.68555 14.2397C8.52192 14.8503 8.88433 15.478 9.495 15.6417C10.1057 15.8053 10.7334 15.4429 10.897 14.8322C11.0606 14.2216 10.6982 13.5939 10.0876 13.4302ZM10.3787 12.3436C9.16791 12.0191 7.92333 12.7377 7.59889 13.9485C7.27445 15.1593 7.99301 16.4039 9.20383 16.7283C10.4147 17.0528 11.6592 16.3342 11.9837 15.1234C12.3081 13.9126 11.5896 12.668 10.3787 12.3436Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.9014 17.408C10.2908 17.2443 9.66307 17.6067 9.49944 18.2174C9.33581 18.8281 9.69821 19.4558 10.3089 19.6194C10.9196 19.7831 11.5473 19.4207 11.7109 18.81C11.8745 18.1993 11.5121 17.5716 10.9014 17.408ZM11.1926 16.3213C9.98179 15.9969 8.73722 16.7154 8.41278 17.9263C8.08834 19.1371 8.80689 20.3817 10.0177 20.7061C11.2285 21.0305 12.4731 20.312 12.7976 19.1012C13.122 17.8903 12.4034 16.6458 11.1926 16.3213Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5953 14.3701C12.9847 14.2065 12.357 14.5689 12.1933 15.1796C12.0297 15.7903 12.3921 16.418 13.0028 16.5816C13.6135 16.7452 14.2412 16.3828 14.4048 15.7721C14.5684 15.1615 14.206 14.5338 13.5953 14.3701ZM13.8865 13.2835C12.6757 12.959 11.4311 13.6776 11.1067 14.8884C10.7822 16.0992 11.5008 17.3438 12.7116 17.6683C13.9224 17.9927 15.167 17.2741 15.4915 16.0633C15.8159 14.8525 15.0973 13.6079 13.8865 13.2835Z",fill:"#6A1611"}),ih("path",{d:"M12.8395 9.69035C11.6479 9.46021 9.46534 8.25143 10.2676 5.25743C11.4591 5.48757 13.6417 6.69635 12.8395 9.69035Z",stroke:"#6A1611","stroke-width":"1.125","stroke-linecap":"round"}),ih("path",{d:"M12.8401 9.6885C14.2738 10.1841 17.392 10.2396 18.3948 6.49715C16.9611 6.00156 13.8429 5.946 12.8401 9.6885Z",stroke:"#6A1611","stroke-width":"1.125","stroke-linecap":"round"}),ih("path",{d:"M13.3075 8.42867L14.4824 4.04388",stroke:"#6A1611","stroke-width":"1.125","stroke-linecap":"round"})]}),hay:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M10.8236 7.55882C10.8236 8.37007 11.1459 9.1481 11.7195 9.72174C12.2932 10.2954 13.0712 10.6176 13.8824 10.6176C14.6937 10.6176 15.4717 10.2954 16.0453 9.72174C16.619 9.1481 16.9413 8.37007 16.9413 7.55882C16.9413 6.74757 16.619 5.96955 16.0453 5.39591C15.4717 4.82227 14.6937 4.5 13.8824 4.5C13.0712 4.5 12.2932 4.82227 11.7195 5.39591C11.1459 5.96955 10.8236 6.74757 10.8236 7.55882Z",fill:"#DCBF76"}),ih("path",{d:"M14.647 12.9118C14.647 13.723 14.9693 14.501 15.5429 15.0747C16.1166 15.6483 16.8946 15.9706 17.7059 15.9706C18.5171 15.9706 19.2951 15.6483 19.8688 15.0747C20.4424 14.501 20.7647 13.723 20.7647 12.9118C20.7647 12.1005 20.4424 11.3225 19.8688 10.7489C19.2951 10.1752 18.5171 9.85295 17.7059 9.85295C16.8946 9.85295 16.1166 10.1752 15.5429 10.7489C14.9693 11.3225 14.647 12.1005 14.647 12.9118Z",fill:"#DCBF76"}),ih("path",{d:"M7 12.9118C7 13.723 7.32227 14.501 7.89591 15.0747C8.46955 15.6483 9.24757 15.9706 10.0588 15.9706C10.8701 15.9706 11.6481 15.6483 12.2217 15.0747C12.7954 14.501 13.1176 13.723 13.1176 12.9118C13.1176 12.1005 12.7954 11.3225 12.2217 10.7489C11.6481 10.1752 10.8701 9.85295 10.0588 9.85295C9.24757 9.85295 8.46955 10.1752 7.89591 10.7489C7.32227 11.3225 7 12.1005 7 12.9118Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.68938 5.49816C10.3685 4.81903 11.2896 4.4375 12.25 4.4375C13.2105 4.4375 14.1316 4.81903 14.8107 5.49816C15.4898 6.17729 15.8714 7.09839 15.8714 8.05882C15.8714 9.01926 15.4898 9.94036 14.8107 10.6195C14.1316 11.2986 13.2105 11.6801 12.25 11.6801C11.2896 11.6801 10.3685 11.2986 9.68938 10.6195C9.01025 9.94036 8.62872 9.01926 8.62872 8.05882C8.62872 7.09839 9.01025 6.17729 9.68938 5.49816ZM12.25 5.5625C11.588 5.5625 10.953 5.8255 10.4849 6.29366C10.0167 6.76181 9.75372 7.39676 9.75372 8.05882C9.75372 8.72089 10.0167 9.35584 10.4849 9.82399C10.953 10.2921 11.588 10.5551 12.25 10.5551C12.9121 10.5551 13.5471 10.2921 14.0152 9.82399C14.4834 9.35584 14.7464 8.72089 14.7464 8.05882C14.7464 7.39676 14.4834 6.76181 14.0152 6.29366C13.5471 5.8255 12.9121 5.5625 12.25 5.5625Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5128 10.8511C14.1919 10.172 15.113 9.79044 16.0735 9.79044C17.0339 9.79044 17.955 10.172 18.6341 10.8511C19.3133 11.5302 19.6948 12.4513 19.6948 13.4118C19.6948 14.3722 19.3133 15.2933 18.6341 15.9724C17.955 16.6516 17.0339 17.0331 16.0735 17.0331C15.113 17.0331 14.1919 16.6516 13.5128 15.9724C12.8337 15.2933 12.4521 14.3722 12.4521 13.4118C12.4521 12.4513 12.8337 11.5302 13.5128 10.8511ZM16.0735 10.9154C15.4114 10.9154 14.7765 11.1784 14.3083 11.6466C13.8402 12.1147 13.5771 12.7497 13.5771 13.4118C13.5771 14.0738 13.8402 14.7088 14.3083 15.1769C14.7765 15.6451 15.4114 15.9081 16.0735 15.9081C16.7355 15.9081 17.3705 15.6451 17.8386 15.1769C18.3068 14.7088 18.5698 14.0738 18.5698 13.4118C18.5698 12.7497 18.3068 12.1147 17.8386 11.6466C17.3705 11.1784 16.7355 10.9154 16.0735 10.9154Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.86578 10.8511C6.54491 10.172 7.466 9.79044 8.42644 9.79044C9.38687 9.79044 10.308 10.172 10.9871 10.8511C11.6662 11.5302 12.0478 12.4513 12.0478 13.4118C12.0478 14.3722 11.6662 15.2933 10.9871 15.9724C10.308 16.6516 9.38687 17.0331 8.42644 17.0331C7.466 17.0331 6.54491 16.6516 5.86578 15.9724C5.18665 15.2933 4.80511 14.3722 4.80511 13.4118C4.80511 12.4513 5.18665 11.5302 5.86578 10.8511ZM8.42644 10.9154C7.76437 10.9154 7.12942 11.1784 6.66127 11.6466C6.19312 12.1147 5.93011 12.7497 5.93011 13.4118C5.93011 14.0738 6.19312 14.7088 6.66127 15.1769C7.12942 15.6451 7.76437 15.9081 8.42644 15.9081C9.0885 15.9081 9.72345 15.6451 10.1916 15.1769C10.6598 14.7088 10.9228 14.0738 10.9228 13.4118C10.9228 12.7497 10.6598 12.1147 10.1916 11.6466C9.72345 11.1784 9.0885 10.9154 8.42644 10.9154Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.04053 18C4.04053 17.6893 4.29237 17.4375 4.60303 17.4375L19.8971 17.4375C20.2078 17.4375 20.4596 17.6893 20.4596 18C20.4596 18.3107 20.2078 18.5625 19.8971 18.5625L4.60303 18.5625C4.29237 18.5625 4.04053 18.3107 4.04053 18Z",fill:"#543E04"})]}),legume:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#EAF5F5"}),ih("path",{d:"M11.2842 6.26521C12.4678 4.85029 14.4857 5.59964 16.0963 6.76658C17.9343 8.09829 17.6621 10.0365 16.2975 11.6665C14.933 13.2966 14.071 12.8144 13.6623 11.522C13.3558 10.5527 13.0816 9.93021 11.3626 9.76635C9.64356 9.60248 10.2591 7.49063 11.2842 6.26521Z",fill:"#EAF5F5"}),ih("path",{d:"M18.6096 15.4443C19.6091 16.9947 18.2943 18.6991 16.7017 19.8905C14.8842 21.25 13.1143 20.4146 11.963 18.6274C10.8118 16.8403 11.5282 16.1604 12.8837 16.154C13.9003 16.1492 14.5761 16.0723 15.2431 14.4795C15.9101 12.8866 17.7438 14.1016 18.6096 15.4443Z",fill:"#EAF5F5"}),ih("path",{d:"M8.30039 16.5459C6.49206 16.9104 5.38542 15.0641 4.8578 13.1465C4.25569 10.9581 5.67969 9.61539 7.76379 9.1961C9.84788 8.77681 10.2192 9.69201 9.73032 10.9562C9.36364 11.9044 9.18848 12.5617 10.4278 13.7642C11.6671 14.9667 9.86653 16.2303 8.30039 16.5459Z",fill:"#EAF5F5"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.30844 11.7242C4.76238 10.8024 5.64008 10.0994 6.68038 9.62657C7.6658 9.1787 8.56449 9.02904 9.19597 9.48422C9.83404 9.94415 9.88285 10.7881 9.78359 11.4877C9.71086 12.0003 9.69851 12.2813 9.79844 12.5332C9.89408 12.7743 10.1368 13.086 10.8312 13.5044C11.3066 13.7908 11.6184 14.1875 11.6989 14.6763C11.776 15.1443 11.6227 15.5903 11.4009 15.9581C10.9621 16.6857 10.1282 17.3259 9.33042 17.6889C8.25861 18.1765 7.25008 17.9024 6.4315 17.3076C5.63343 16.7277 4.97405 15.8218 4.48091 14.9117L4.97548 14.6437L4.48091 14.9117C3.864 13.7731 3.84086 12.6737 4.30844 11.7242ZM5.3177 12.2212C5.02997 12.8055 5.00568 13.5187 5.47005 14.3758C5.92442 15.2143 6.48649 15.9569 7.09278 16.3975C7.67855 16.8231 8.25727 16.9412 8.86456 16.6649C9.52098 16.3663 10.1484 15.8567 10.4375 15.3772C10.5797 15.1414 10.6071 14.9695 10.5889 14.8591C10.5741 14.7694 10.5148 14.6272 10.2506 14.468C9.46594 13.9952 8.98013 13.5213 8.75272 12.9481C8.52959 12.3856 8.59966 11.8235 8.66975 11.3296C8.76092 10.6871 8.62062 10.4563 8.53814 10.3968C8.44908 10.3326 8.09578 10.219 7.14586 10.6507C6.25082 11.0575 5.61906 11.6093 5.3177 12.2212Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7104 7.61051C17.6998 8.63794 17.2124 9.65141 16.4789 10.5276C15.7841 11.3576 15.0385 11.8812 14.2723 11.7439C13.4981 11.6051 13.0891 10.8652 12.8761 10.1916C12.72 9.69797 12.6095 9.43919 12.4105 9.25528C12.22 9.07926 11.8663 8.90324 11.0593 8.82631C10.5068 8.77364 10.0541 8.55085 9.77012 8.14492C9.49825 7.75628 9.44355 7.28781 9.48447 6.86028C9.56541 6.01445 10.0404 5.07657 10.6028 4.40429C11.3583 3.50112 12.3862 3.31213 13.3815 3.49439C14.3519 3.67208 15.3382 4.20373 16.1764 4.81107L15.8464 5.26658L16.1764 4.81107C17.2251 5.57087 17.7214 6.55219 17.7104 7.61051ZM16.5855 7.59884C16.5922 6.94762 16.3057 6.29399 15.5163 5.72208C14.744 5.16248 13.916 4.73598 13.1789 4.60099C12.4667 4.47057 11.8938 4.61437 11.4657 5.12612C11.003 5.67926 10.6577 6.41002 10.6044 6.96744C10.5781 7.24153 10.6278 7.40833 10.692 7.50005C10.744 7.57448 10.859 7.67712 11.166 7.70638C12.078 7.79332 12.721 8.01047 13.174 8.429C13.6184 8.83964 13.7983 9.37675 13.9487 9.85241C14.1444 10.4712 14.3707 10.6186 14.4708 10.6365C14.5788 10.6559 14.9465 10.6056 15.6163 9.80547C16.2474 9.0516 16.5784 8.28094 16.5855 7.59884Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.9671 15.8077C19.83 14.7896 19.2218 13.8438 18.3863 13.0644C17.595 12.3261 16.7909 11.8979 16.0476 12.1281C15.2962 12.3608 14.9817 13.1454 14.8534 13.8398C14.7593 14.3488 14.6817 14.619 14.507 14.8257C14.3399 15.0235 14.011 15.2414 13.22 15.4167C12.6783 15.5367 12.2565 15.8133 12.0247 16.2511C11.8029 16.6702 11.8063 17.1417 11.8996 17.5609C12.0841 18.3901 12.6707 19.2624 13.3113 19.8605C14.1719 20.6639 15.2148 20.7256 16.1798 20.4227C17.1206 20.1274 18.0335 19.479 18.7902 18.7736L18.4078 18.3633L18.7902 18.7736C19.737 17.891 20.1084 16.8564 19.9671 15.8077ZM18.8522 15.9579C18.9391 16.6032 18.7354 17.2867 18.0231 17.9507C17.326 18.6005 16.5574 19.1251 15.8429 19.3493C15.1528 19.5659 14.5669 19.4936 14.0791 19.0382C13.5519 18.546 13.1193 17.8632 12.9977 17.3166C12.9379 17.0478 12.9667 16.8762 13.019 16.7775C13.0613 16.6975 13.1625 16.5817 13.4633 16.515C14.3573 16.317 14.9685 16.0227 15.3664 15.5517C15.7568 15.0897 15.869 14.5346 15.9596 14.0442C16.0775 13.4062 16.2838 13.2326 16.3804 13.2027C16.4849 13.1703 16.8558 13.1751 17.6189 13.887C18.3378 14.5577 18.7612 15.2819 18.8522 15.9579Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.60219 12.6022C7.82186 12.3826 8.17802 12.3826 8.39769 12.6022L8.99994 13.2045L9.60219 12.6022L10.3977 13.3977L9.39769 14.3977C9.17802 14.6174 8.82186 14.6174 8.60219 14.3977L7.60219 13.3977C7.38252 13.1781 7.38252 12.8219 7.60219 12.6022Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.3423 9.643C15.1006 9.83825 14.7465 9.80066 14.5512 9.55903L14.0159 8.89657L13.3534 9.43189L12.6463 8.55687L13.7463 7.66801C13.9879 7.47276 14.3421 7.51035 14.5374 7.75198L15.4262 8.85195C15.6215 9.09357 15.5839 9.44774 15.3423 9.643Z",fill:"#11615B"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9541 17.2282C15.6708 17.1008 15.5443 16.7678 15.6717 16.4845L16.0209 15.7076L15.2441 15.3584L15.7054 14.3323L16.9953 14.9122C17.2786 15.0396 17.405 15.3725 17.2777 15.6559L16.6978 16.9458C16.5704 17.2291 16.2374 17.3555 15.9541 17.2282Z",fill:"#11615B"})]}),lucerne:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.5 9.1875C11.8107 9.1875 12.0625 9.43934 12.0625 9.75L12.0625 21C12.0625 21.3107 11.8107 21.5625 11.5 21.5625C11.1893 21.5625 10.9375 21.3107 10.9375 21L10.9375 9.75C10.9375 9.43934 11.1893 9.1875 11.5 9.1875Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.438 15.468C12.8506 15.0764 12.0625 15.4978 12.0625 16.2051V20.25C12.0625 20.5607 11.8107 20.8125 11.5 20.8125C11.1893 20.8125 10.9375 20.5607 10.9375 20.25V16.2051C10.9375 14.6005 12.7259 13.6412 14.062 14.532C14.3205 14.7043 14.3904 15.0535 14.218 15.312C14.0457 15.5705 13.6965 15.6404 13.438 15.468Z",fill:"#243304"}),ih("path",{d:"M16.75 7.125C16.75 8.98896 15.239 10.5 13.375 10.5C11.511 10.5 10 8.98896 10 7.125C10 5.26104 11.511 3.75 13.375 3.75C15.239 3.75 16.75 5.26104 16.75 7.125Z",fill:"#CC8FB7"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5803 16.3419C14.7609 16.4688 15.4483 16.989 15.8544 17.5716C16.2043 18.0737 16.3689 18.6574 16.4197 19.158C15.2391 19.0311 14.5517 18.5109 14.1456 17.9283C13.7956 17.4263 13.6311 16.8426 13.5803 16.3419ZM13.2227 18.5716C13.9167 19.5673 15.115 20.3125 16.9915 20.3125L17.5155 20.3125L17.5526 19.7899C17.6068 19.0278 17.4486 17.8914 16.7773 16.9283C16.0833 15.9326 14.885 15.1875 13.0085 15.1875L12.4845 15.1875L12.4474 15.7101C12.3932 16.4722 12.5514 17.6085 13.2227 18.5716Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.2622 12.508C9.96955 12.7221 10.5233 13.2103 10.8906 13.7075C10.8961 13.715 10.8968 13.719 10.897 13.7201L10.897 13.7201C10.8973 13.722 10.8975 13.7256 10.8959 13.7307C10.8931 13.7405 10.8844 13.7552 10.8608 13.7653C9.72247 14.2515 8.83302 14.0955 8.1682 13.7307C7.69089 13.4689 7.31297 13.089 7.04867 12.7225C7.94609 12.3255 8.68093 12.332 9.2622 12.508ZM9.58815 11.4312C8.5669 11.1221 7.34403 11.2189 5.97614 12.0086L5.52242 12.2706L5.75152 12.7417C6.0626 13.3815 6.69169 14.2039 7.62708 14.7171C8.58869 15.2446 9.84031 15.4245 11.3027 14.7999C11.977 14.512 12.2587 13.6662 11.7955 13.0391C11.3286 12.407 10.5899 11.7345 9.58815 11.4312Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5888 15.2575C15.289 14.2985 16.0831 13.9633 16.7907 13.903C17.4005 13.8509 17.9883 14.0002 18.4473 14.2066C17.7471 15.1656 16.9529 15.5007 16.2453 15.5611C15.6355 15.6132 15.0478 15.4639 14.5888 15.2575ZM16.3409 16.6821C17.5503 16.5788 18.7947 15.9137 19.733 14.2886L19.9949 13.8348L19.5609 13.5414C18.928 13.1133 17.8648 12.6822 16.6951 12.782C15.4858 12.8852 14.2413 13.5504 13.303 15.1755L13.0411 15.6292L13.4751 15.9227C14.108 16.3507 15.1712 16.7819 16.3409 16.6821Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.3945 8.68979C15.3681 9.04917 15.2623 9.40851 15.0707 9.74039C14.3901 10.9192 12.8827 11.3231 11.7039 10.6425C11.372 10.4509 11.1008 10.1926 10.8982 9.89457C10.5388 9.86815 10.1795 9.7624 9.84759 9.57079C8.66876 8.89019 8.26486 7.38282 8.94546 6.20399C9.13707 5.87211 9.39539 5.60085 9.69342 5.39829C9.71983 5.03891 9.82559 4.67957 10.0172 4.34769C10.6978 3.16886 12.2052 2.76496 13.384 3.44556C13.7159 3.63717 13.9871 3.89549 14.1897 4.19351C14.5491 4.21993 14.9084 4.32568 15.2403 4.51729C16.4191 5.19789 16.823 6.70526 16.1424 7.88409C15.9508 8.21597 15.6925 8.48723 15.3945 8.68979ZM14.5126 7.89282C14.7792 7.78463 15.0131 7.59009 15.1681 7.32159C15.5381 6.68084 15.3185 5.86151 14.6778 5.49157C14.4093 5.33655 14.1094 5.28504 13.8244 5.32466C13.6477 5.34923 13.4598 5.24075 13.3927 5.07541C13.2845 4.80878 13.09 4.57486 12.8215 4.41984C12.1807 4.0499 11.3614 4.26944 10.9915 4.91019C10.8365 5.17869 10.7849 5.47854 10.8246 5.76355C10.8491 5.94028 10.7407 6.12817 10.5753 6.19526C10.3087 6.30345 10.0748 6.49799 9.91974 6.76649C9.5498 7.40724 9.76934 8.22657 10.4101 8.59651C10.6786 8.75153 10.9784 8.80304 11.2635 8.76342C11.4402 8.73885 11.6281 8.84733 11.6952 9.01267C11.8034 9.2793 11.9979 9.51322 12.2664 9.66824C12.9071 10.0382 13.7265 9.81864 14.0964 9.17789C14.2514 8.90939 14.3029 8.60954 14.2633 8.32453C14.2388 8.1478 14.3472 7.95991 14.5126 7.89282Z",fill:"#5D1244"})]}),millet:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8F8F3"}),ih("path",{d:"M17.6166 4.70391C6.96887 2.97901 8.86026 12.6097 10.6115 18C10.6115 10.0942 15.5151 12.969 17.6166 11.1723C19.7181 9.37561 21.1192 5.42259 17.6166 4.70391Z",fill:"#ABA5A0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.17232 5.31774C6.48001 5.27485 6.76421 5.4895 6.80711 5.79719C7.02122 7.33304 7.48877 9.84778 8.19244 12.3774C8.9008 14.9238 9.82973 17.4145 10.9403 18.9538C11.1221 19.2058 11.0652 19.5573 10.8132 19.7391C10.5613 19.9209 10.2097 19.864 10.0279 19.612C8.79346 17.9009 7.82245 15.2451 7.10859 12.6789C6.39003 10.0958 5.91303 7.53168 5.69288 5.95252C5.64999 5.64484 5.86464 5.36064 6.17232 5.31774Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.01455 4.43755C9.32517 4.44235 9.57309 4.69805 9.56829 5.00867C9.55206 6.05907 9.65752 8.85557 9.85555 11.6884C9.95435 13.1018 10.0756 14.5158 10.2151 15.7175C10.3562 16.933 10.5115 17.8902 10.6698 18.4148C10.7595 18.7122 10.5911 19.0261 10.2937 19.1158C9.99627 19.2055 9.68243 19.0371 9.59271 18.7397C9.40206 18.1077 9.23815 17.0583 9.0976 15.8472C8.95545 14.6223 8.83276 13.1899 8.73329 11.7669C8.53477 8.92702 8.42643 6.09146 8.44343 4.99129C8.44823 4.68067 8.70393 4.43275 9.01455 4.43755Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7851 15.6444C10.7412 17.1097 10.8743 18.2757 11.0227 18.7676C11.1124 19.065 10.944 19.3788 10.6466 19.4686C10.3492 19.5583 10.0353 19.3899 9.94559 19.0925C9.74508 18.4278 9.61546 17.119 9.66058 15.6108C9.70615 14.0876 9.93166 12.2934 10.4831 10.6503C11.0324 9.01358 11.9262 7.46598 13.3508 6.52466C14.7991 5.56766 16.7009 5.29917 19.1179 6.04284C19.4148 6.1342 19.5814 6.44897 19.4901 6.74589C19.3987 7.04281 19.084 7.20946 18.787 7.1181C16.617 6.45041 15.0795 6.73079 13.971 7.46327C12.8387 8.21144 12.0579 9.49393 11.5496 11.0083C11.0435 12.5163 10.8285 14.1942 10.7851 15.6444Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0272 16.5221C10.8491 17.6995 10.8844 18.6617 11.0227 19.1204C11.1125 19.4178 10.9441 19.7317 10.6467 19.8214C10.3492 19.9111 10.0354 19.7427 9.94568 19.4453C9.73517 18.7475 9.72825 17.5877 9.91483 16.3539C10.1044 15.1006 10.5066 13.6828 11.1857 12.4538C11.8636 11.2269 12.8459 10.1395 14.2144 9.64593C15.5972 9.14722 17.2627 9.29447 19.2135 10.3163C19.4887 10.4605 19.5949 10.8004 19.4508 11.0756C19.3066 11.3508 18.9667 11.457 18.6915 11.3129C16.9374 10.3941 15.6047 10.3404 14.5961 10.7042C13.5731 11.0731 12.7705 11.9117 12.1704 12.9979C11.5714 14.0819 11.2023 15.3644 11.0272 16.5221Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 10.4169C13.1288 10.1972 13.485 10.1972 13.7046 10.4169L15.116 11.8282C15.3357 12.0479 15.3357 12.4041 15.116 12.6237C14.8963 12.8434 14.5402 12.8434 14.3205 12.6237L12.9091 11.2124C12.6895 10.9927 12.6895 10.6365 12.9091 10.4169Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 6.88843C13.1288 6.66876 13.485 6.66876 13.7046 6.88843L15.116 8.29981C15.3357 8.51948 15.3357 8.87563 15.116 9.0953C14.8963 9.31497 14.5402 9.31497 14.3205 9.0953L12.9091 7.68393C12.6895 7.46426 12.6895 7.1081 12.9091 6.88843Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 9.71125C15.246 9.49158 15.6021 9.49158 15.8218 9.71125L17.2332 11.1226C17.4529 11.3423 17.4529 11.6984 17.2332 11.9181C17.0135 12.1378 16.6574 12.1378 16.4377 11.9181L15.0263 10.5067C14.8067 10.2871 14.8067 9.93092 15.0263 9.71125Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 6.1828C15.246 5.96313 15.6021 5.96313 15.8218 6.1828L17.2332 7.59418C17.4529 7.81385 17.4529 8.17001 17.2332 8.38968C17.0135 8.60935 16.6574 8.60935 16.4377 8.38968L15.0263 6.9783C14.8067 6.75863 14.8067 6.40247 15.0263 6.1828Z",fill:"#66605C"})]}),oats:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{d:"M17.6045 9.56567C18.1556 10.2923 17.5224 11.7003 16.1902 12.7105C14.8581 13.7207 13.3315 13.9506 12.7804 13.224C12.2294 12.4974 12.8626 11.0894 14.1948 10.0792C15.5269 9.06896 17.0535 8.83905 17.6045 9.56567Z",fill:"#DCBF76"}),ih("path",{d:"M12.8091 10.0625C12.2848 10.8086 10.7508 10.6342 9.38294 9.67296C8.01505 8.71171 7.33119 7.32761 7.85551 6.58148C8.37983 5.83535 9.91377 6.00975 11.2817 6.971C12.6496 7.93225 13.3334 9.31635 12.8091 10.0625Z",fill:"#DCBF76"}),ih("path",{d:"M13.2526 13.1852C12.9392 14.0416 11.4124 14.27 9.84232 13.6955C8.27228 13.1209 7.25357 11.9609 7.56697 11.1045C7.88037 10.2481 9.4072 10.0197 10.9772 10.5942C12.5473 11.1688 13.566 12.3288 13.2526 13.1852Z",fill:"#DCBF76"}),ih("path",{d:"M16.0708 4.01983C16.788 4.58309 16.5323 6.10559 15.4996 7.42042C14.467 8.73526 13.0485 9.34452 12.3313 8.78126C11.6141 8.218 11.8698 6.6955 12.9025 5.38067C13.9351 4.06584 15.3537 3.45657 16.0708 4.01983Z",fill:"#DCBF76"}),ih("path",{d:"M11.6645 17.4822C11.0127 18.12 9.53642 17.6683 8.36715 16.4733C7.19789 15.2783 6.77841 13.7926 7.43021 13.1548C8.08202 12.517 9.55829 12.9687 10.7276 14.1637C11.8968 15.3587 12.3163 16.8444 11.6645 17.4822Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.37505 3.9086C9.58179 3.74062 9.88555 3.77205 10.0535 3.97879L10.4388 4.45295C14.0115 8.85009 14.0115 15.1499 10.4388 19.5471L10.0535 20.0212C9.88555 20.228 9.58179 20.2594 9.37505 20.0914C9.16831 19.9234 9.13689 19.6197 9.30486 19.4129L9.69012 18.9388C12.9748 14.896 12.9748 9.10398 9.69012 5.06124L9.30486 4.58708C9.13689 4.38034 9.16831 4.07657 9.37505 3.9086Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9837 8.57302C12.6882 7.40502 12.9453 6.57278 13.3643 5.98927C13.7332 5.47557 14.2512 5.12297 14.716 4.91566C15.0115 6.08366 14.7544 6.9159 14.3354 7.49941C13.9665 8.01311 13.4485 8.36572 12.9837 8.57302ZM15.1189 8.06204C15.7894 7.12824 16.081 5.8199 15.4845 4.13006L15.3349 3.70645L14.9018 3.82555C14.201 4.01823 13.2314 4.52052 12.5808 5.42665C11.9103 6.36044 11.6188 7.66879 12.2152 9.35862L12.3648 9.78223L12.7979 9.66313C13.4987 9.47045 14.4683 8.96817 15.1189 8.06204Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1536 12.508C13.4666 11.3446 14.0977 10.7442 14.7484 10.4398C15.3212 10.1719 15.9455 10.1175 16.4523 10.1637C16.1393 11.3272 15.5083 11.9276 14.8576 12.2319C14.2847 12.4998 13.6604 12.5543 13.1536 12.508ZM15.2662 13.1057C16.3075 12.6187 17.2013 11.6197 17.5067 9.8539L17.5833 9.41124L17.1471 9.30346C16.4416 9.12909 15.3502 9.09346 14.3397 9.56604C13.2984 10.0531 12.4047 11.0521 12.0992 12.8179L12.0227 13.2605L12.4588 13.3683C13.1643 13.5427 14.2557 13.5783 15.2662 13.1057Z",fill:"#543E04"}),ih("path",{d:"M18.056 15.8541C18.2722 16.7401 17.1308 17.7796 15.5067 18.1761C13.8825 18.5725 12.3905 18.1757 12.1743 17.2898C11.958 16.4039 13.0994 15.3643 14.7236 14.9679C16.3477 14.5714 17.8397 14.9682 18.056 15.8541Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3896 16.7303C12.9915 15.6866 13.7558 15.2688 14.4629 15.1421C15.0854 15.0306 15.7026 15.1387 16.1805 15.3138C15.5786 16.3575 14.8144 16.7753 14.1073 16.902C13.4848 17.0135 12.8675 16.9055 12.3896 16.7303ZM14.2773 17.8515C15.4089 17.6488 16.5296 16.9134 17.2791 15.2857L17.467 14.8776L17.0733 14.6612C16.4363 14.3112 15.3908 13.9959 14.2928 14.1926C13.1612 14.3953 12.0405 15.1307 11.291 16.7585L11.1032 17.1665L11.4968 17.3829C12.1338 17.7329 13.1793 18.0482 14.2773 17.8515Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0338 8.90831C11.5305 7.81365 10.8079 7.32723 10.1155 7.13604C9.50591 6.96772 8.8813 7.01846 8.38936 7.14887C8.8926 8.24353 9.61518 8.72994 10.3076 8.92114C10.9172 9.08946 11.5418 9.03872 12.0338 8.90831ZM10.0509 9.85098C8.94276 9.54501 7.89453 8.70958 7.29804 7.01974L7.14851 6.59613L7.56045 6.41692C8.2269 6.12699 9.29696 5.9093 10.3723 6.2062C11.4804 6.51217 12.5286 7.3476 13.1251 9.03744L13.2746 9.46105L12.8627 9.64026C12.1962 9.93019 11.1262 10.1479 10.0509 9.85098Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8261 12.4924C11.4258 11.3561 10.7511 10.8052 10.0792 10.5511C9.48769 10.3273 8.86106 10.3203 8.35921 10.4049C8.7595 11.5412 9.43422 12.0921 10.1061 12.3463C10.6976 12.57 11.3243 12.577 11.8261 12.4924ZM9.76484 13.2485C8.6896 12.8418 7.72275 11.9134 7.28441 10.1758L7.17452 9.74022L7.60121 9.5997C8.29153 9.37238 9.3771 9.25414 10.4205 9.64881C11.4957 10.0555 12.4626 10.9839 12.9009 12.7215L13.0108 13.1571L12.5841 13.2976C11.8938 13.5249 10.8082 13.6432 9.76484 13.2485Z",fill:"#543E04"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.1109 16.3737C11.0165 15.1726 10.5062 14.4666 9.92236 14.0482C9.40834 13.6798 8.80461 13.5118 8.29789 13.4644C8.39232 14.6654 8.90258 15.3714 9.48646 15.7899C10.0005 16.1583 10.6042 16.3263 11.1109 16.3737ZM8.92452 16.5739C7.99014 15.9042 7.29472 14.7583 7.31823 12.9664L7.32412 12.5173L7.7726 12.4913C8.49817 12.4492 9.5776 12.6143 10.4843 13.2641C11.4187 13.9338 12.1141 15.0797 12.0906 16.8716L12.0847 17.3208L11.6362 17.3468C10.9107 17.3888 9.83121 17.2238 8.92452 16.5739Z",fill:"#543E04"})]}),orange:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("circle",{cx:"13.75",cy:"15",r:"6",fill:"#DCBF76"}),ih("path",{d:"M13.75 8.24207C12.25 8.33098 9.25 7.70862 9.25 4.50793C10.75 4.41902 13.75 5.04138 13.75 8.24207Z",fill:"#9DC04D"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.60961 9.60961C8.84032 8.3789 10.5095 7.6875 12.25 7.6875C13.9905 7.6875 15.6597 8.3789 16.8904 9.60961C18.1211 10.8403 18.8125 12.5095 18.8125 14.25C18.8125 15.9905 18.1211 17.6597 16.8904 18.8904C15.6597 20.1211 13.9905 20.8125 12.25 20.8125C10.5095 20.8125 8.84032 20.1211 7.60961 18.8904C6.3789 17.6597 5.6875 15.9905 5.6875 14.25C5.6875 12.5095 6.3789 10.8403 7.60961 9.60961ZM12.25 8.8125C10.8079 8.8125 9.42484 9.38538 8.40511 10.4051C7.38538 11.4248 6.8125 12.8079 6.8125 14.25C6.8125 15.6921 7.38538 17.0752 8.40511 18.0949C9.42484 19.1146 10.8079 19.6875 12.25 19.6875C13.6921 19.6875 15.0752 19.1146 16.0949 18.0949C17.1146 17.0752 17.6875 15.6921 17.6875 14.25C17.6875 12.8079 17.1146 11.4248 16.0949 10.4051C15.0752 9.38538 13.6921 8.8125 12.25 8.8125Z",fill:"#B49034"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6625 7.67483C11.534 6.27564 10.9281 5.4602 10.2408 4.98114C9.63579 4.55938 8.92917 4.37272 8.33755 4.32516C8.46604 5.72436 9.07187 6.53979 9.75916 7.01886C10.3642 7.44061 11.0708 7.62728 11.6625 7.67483ZM9.11584 7.94178C8.01598 7.17513 7.1875 5.84945 7.1875 3.75951L7.1875 3.2356L7.71009 3.19843C8.55557 3.13829 9.81687 3.31428 10.8842 4.05822C11.984 4.82487 12.8125 6.15055 12.8125 8.24048L12.8125 8.7644L12.2899 8.80157C11.4444 8.8617 10.1831 8.68572 9.11584 7.94178Z",fill:"#49650C"}),ih("circle",{cx:"11.125",cy:"16.125",r:"0.375",fill:"#B49034"}),ih("circle",{cx:"12.625",cy:"16.125",r:"0.375",fill:"#B49034"}),ih("circle",{cx:"11.875",cy:"14.625",r:"0.375",fill:"#B49034"})]}),pasture:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M6.25 17.25C6.25 16.0074 7.25736 15 8.5 15H18.25C19.4926 15 20.5 16.0074 20.5 17.25C20.5 18.4926 19.4926 19.5 18.25 19.5H8.5C7.25736 19.5 6.25 18.4926 6.25 17.25Z",fill:"#9DC04D"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99274 10.7498C6.269 10.6077 6.60814 10.7165 6.75022 10.9927C7.29619 12.0543 7.55581 13.3836 7.68321 14.4099C7.74779 14.9301 7.78004 15.387 7.79619 15.7145C7.80427 15.8784 7.80835 16.0104 7.8104 16.1023C7.81143 16.1483 7.81195 16.1843 7.81222 16.2092L7.81246 16.2382L7.81249 16.2463L7.8125 16.2495C7.8125 16.2496 7.8125 16.25 7.25 16.25L7.8125 16.2495C7.8125 16.5602 7.56066 16.8125 7.25 16.8125C6.93941 16.8125 6.68761 16.5608 6.6875 16.2502C6.6875 16.2502 6.6875 16.2502 6.6875 16.2502M6.6875 16.2502L6.68749 16.2492L6.68747 16.2441L6.68728 16.2212C6.68706 16.2004 6.68661 16.1689 6.68568 16.1275C6.68383 16.0447 6.68009 15.9228 6.67255 15.7699C6.65745 15.4637 6.6272 15.0352 6.56678 14.5485C6.44419 13.5609 6.20381 12.3901 5.74977 11.5073C5.60769 11.231 5.71647 10.8919 5.99274 10.7498",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.65331 10.8579C9.43675 10.6352 9.08063 10.6301 8.85789 10.8467C7.75445 11.9195 7.21783 13.2813 6.95407 14.3436C6.82124 14.8786 6.75481 15.3489 6.72147 15.687C6.70476 15.8563 6.69628 15.9934 6.69197 16.0898C6.68981 16.138 6.68869 16.1762 6.68812 16.2032L6.68759 16.2353L6.68751 16.2449L6.6875 16.248L6.6875 16.2491C6.6875 16.2493 6.6875 16.25 7.25 16.25H6.6875C6.6875 16.5607 6.93934 16.8125 7.25 16.8125C7.56038 16.8125 7.81205 16.5611 7.8125 16.2508C7.8125 16.2507 7.8125 16.251 7.8125 16.2508L7.81253 16.2471L7.81286 16.2272C7.81326 16.2085 7.8141 16.1791 7.81584 16.14C7.81934 16.0618 7.82649 15.9449 7.84103 15.7974C7.87019 15.5018 7.92876 15.0866 8.04593 14.6147C8.28217 13.6632 8.74555 12.525 9.64211 11.6533C9.86485 11.4368 9.86986 11.0806 9.65331 10.8579Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.722 10.9441C13.553 10.6834 13.2047 10.609 12.944 10.778C11.3234 11.8284 10.5062 13.1862 10.0978 14.2829C9.89427 14.8294 9.79195 15.3113 9.74038 15.6599C9.71456 15.8344 9.70134 15.9763 9.69457 16.0773C9.69118 16.1278 9.6894 16.1681 9.68847 16.1972C9.688 16.2118 9.68775 16.2235 9.68761 16.2324L9.68748 16.2434L9.68745 16.2473L9.68745 16.2488L9.68745 16.2494C9.68745 16.2497 9.68745 16.25 10.2499 16.25H9.68745C9.68745 16.5607 9.93929 16.8125 10.2499 16.8125C10.56 16.8125 10.8114 16.5617 10.8124 16.252C10.8124 16.2515 10.8124 16.251 10.8124 16.2506C10.8124 16.2505 10.8124 16.2505 10.8124 16.2505C10.8124 16.2505 10.8124 16.2505 10.8124 16.2505V16.2506L10.8124 16.2509L10.8124 16.2516L10.8125 16.25L10.8129 16.2332C10.8134 16.2166 10.8146 16.1894 10.817 16.1526C10.822 16.0788 10.8322 15.9668 10.8533 15.8245C10.8954 15.5394 10.9806 15.1359 11.1521 14.6755C11.4937 13.7583 12.1765 12.616 13.5559 11.722C13.8166 11.5531 13.8909 11.2048 13.722 10.9441Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2499 10.6875C10.5606 10.6875 10.8124 10.9393 10.8124 11.25V16.25L10.2499 16.25L9.68744 16.25V11.25C9.68744 10.9393 9.93928 10.6875 10.2499 10.6875ZM10.2499 16.8125C9.93928 16.8125 9.68744 16.5606 9.68744 16.25L10.2499 16.25L10.8124 16.25C10.8124 16.5606 10.5606 16.8125 10.2499 16.8125Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.99268 10.7498C4.26894 10.6077 4.60808 10.7165 4.75016 10.9927C5.29613 12.0543 5.55575 13.3836 5.68315 14.4099C5.74773 14.9301 5.77998 15.387 5.79613 15.7145C5.80421 15.8784 5.80829 16.0104 5.81034 16.1023C5.81137 16.1483 5.81189 16.1843 5.81216 16.2092L5.8124 16.2382L5.81243 16.2463L5.81243 16.2495C5.81243 16.2496 5.81243 16.25 5.24993 16.25L5.81243 16.2495C5.81243 16.5602 5.5606 16.8125 5.24993 16.8125C4.93935 16.8125 4.68755 16.5608 4.68744 16.2502C4.68744 16.2502 4.68744 16.2502 4.68744 16.2502M4.68744 16.2502L4.68743 16.2492L4.68741 16.2441L4.68722 16.2212C4.687 16.2004 4.68655 16.1689 4.68562 16.1275C4.68377 16.0447 4.68003 15.9228 4.67249 15.7699C4.65739 15.4637 4.62714 15.0352 4.56672 14.5485C4.44412 13.5609 4.20374 12.3901 3.74971 11.5073C3.60763 11.231 3.71641 10.8919 3.99268 10.7498",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.6534 10.8579C20.4368 10.6352 20.0807 10.6301 19.858 10.8467C18.7545 11.9195 18.2179 13.2813 17.9541 14.3436C17.8213 14.8786 17.7549 15.3489 17.7215 15.687C17.7048 15.8563 17.6963 15.9934 17.692 16.0898C17.6899 16.138 17.6888 16.1762 17.6882 16.2032L17.6877 16.2353L17.6876 16.2449L17.6876 16.248L17.6876 16.2491C17.6876 16.2493 17.6876 16.25 18.2501 16.25H17.6876C17.6876 16.5607 17.9394 16.8125 18.2501 16.8125C18.5604 16.8125 18.8121 16.5611 18.8126 16.2508C18.8126 16.2507 18.8126 16.251 18.8126 16.2508L18.8126 16.2471L18.8129 16.2272C18.8133 16.2085 18.8142 16.1791 18.8159 16.14C18.8194 16.0618 18.8265 15.9449 18.8411 15.7974C18.8702 15.5018 18.9288 15.0866 19.046 14.6147C19.2822 13.6632 19.7456 12.525 20.6422 11.6533C20.8649 11.4368 20.8699 11.0806 20.6534 10.8579Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5072 10.7498C16.2309 10.6077 15.8918 10.7165 15.7497 10.9927C15.2037 12.0543 14.9441 13.3836 14.8167 14.4099C14.7521 14.9301 14.7199 15.387 14.7037 15.7145C14.6957 15.8784 14.6916 16.0104 14.6895 16.1023C14.6885 16.1483 14.688 16.1843 14.6877 16.2092L14.6875 16.2382L14.6874 16.2463L14.6874 16.2495C14.6874 16.2496 14.6874 16.25 15.2499 16.25L14.6874 16.2495C14.6874 16.5602 14.9393 16.8125 15.2499 16.8125C15.5605 16.8125 15.8123 16.5608 15.8124 16.2502C15.8124 16.2502 15.8124 16.2502 15.8124 16.2502M15.8124 16.2502L15.8124 16.2492L15.8125 16.2441L15.8126 16.2212C15.8129 16.2004 15.8133 16.1689 15.8142 16.1275C15.8161 16.0447 15.8198 15.9228 15.8274 15.7699C15.8425 15.4637 15.8727 15.0352 15.9331 14.5485C16.0557 13.5609 16.2961 12.3901 16.7502 11.5073C16.8922 11.231 16.7835 10.8919 16.5072 10.7498",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.9928 10.7498C17.2691 10.6077 17.6082 10.7165 17.7503 10.9927C18.2963 12.0543 18.5559 13.3836 18.6833 14.4099C18.7479 14.9301 18.7801 15.387 18.7963 15.7145C18.8043 15.8784 18.8084 16.0104 18.8105 16.1023C18.8115 16.1483 18.812 16.1843 18.8123 16.2092L18.8125 16.2382L18.8126 16.2463L18.8126 16.2495C18.8126 16.2496 18.8126 16.25 18.2501 16.25L18.8126 16.2495C18.8126 16.5602 18.5607 16.8125 18.2501 16.8125C17.9395 16.8125 17.6877 16.5608 17.6876 16.2502C17.6876 16.2502 17.6876 16.2502 17.6876 16.2502M17.6876 16.2502L17.6876 16.2492L17.6875 16.2441L17.6874 16.2212C17.6871 16.2004 17.6867 16.1689 17.6858 16.1275C17.6839 16.0447 17.6802 15.9228 17.6726 15.7699C17.6575 15.4637 17.6273 15.0352 17.5669 14.5485C17.4443 13.5609 17.2039 12.3901 16.7498 11.5073C16.6078 11.231 16.7165 10.8919 16.9928 10.7498",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.616 12.8229C19.3801 12.6208 19.025 12.6481 18.8229 12.8839C18.2343 13.5706 17.9579 14.4269 17.8241 15.0735C17.756 15.4025 17.722 15.6914 17.705 15.8992C17.6964 16.0034 17.692 16.088 17.6898 16.148C17.6887 16.178 17.6881 16.2019 17.6878 16.2191L17.6875 16.2398L17.6875 16.2463L17.6874 16.2485L17.6874 16.2493C17.6874 16.2495 17.6874 16.25 18.2499 16.25",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8466 10.8579C13.0632 10.6352 13.4193 10.6301 13.642 10.8467C14.7455 11.9195 15.2821 13.2813 15.5459 14.3436C15.6787 14.8786 15.7451 15.3489 15.7785 15.687C15.7952 15.8563 15.8037 15.9934 15.808 16.0898C15.8101 16.138 15.8112 16.1762 15.8118 16.2032L15.8123 16.2353L15.8124 16.2449L15.8124 16.248L15.8124 16.2491C15.8124 16.2493 15.8124 16.25 15.2499 16.25H15.8124C15.8124 16.5607 15.5606 16.8125 15.2499 16.8125C14.9396 16.8125 14.6879 16.5611 14.6874 16.2508C14.6874 16.2507 14.6874 16.251 14.6874 16.2508L14.6874 16.2471L14.6871 16.2272C14.6867 16.2085 14.6858 16.1791 14.6841 16.14C14.6806 16.0618 14.6735 15.9449 14.6589 15.7974C14.6298 15.5018 14.5712 15.0866 14.454 14.6147C14.2178 13.6632 13.7544 12.525 12.8578 11.6533C12.6351 11.4368 12.6301 11.0806 12.8466 10.8579Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.04047 18C4.04047 17.6893 4.29231 17.4375 4.60297 17.4375L19.8971 17.4375C20.2077 17.4375 20.4596 17.6893 20.4596 18C20.4596 18.3107 20.2077 18.5625 19.8971 18.5625L4.60297 18.5625C4.29231 18.5625 4.04047 18.3107 4.04047 18Z",fill:"#243304"})]}),peanuts:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7ECEB"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.56906 10.9487C10.4392 10.2993 11.1622 9.31633 11.4986 8.284C11.6284 7.88561 11.8062 7.48408 12.0327 7.09176C13.2172 5.04002 15.2864 4.01695 16.6542 4.80667C18.022 5.59639 18.1706 7.89985 16.986 9.95159C16.7595 10.344 16.5006 10.6987 16.2205 11.0104C15.4946 11.8178 15.0047 12.9354 14.8774 14.0136C14.7814 14.8275 14.5017 15.6843 14.0303 16.5008C12.6483 18.8945 10.1419 20.0347 8.43212 19.0476C6.72233 18.0604 6.4566 15.3197 7.8386 12.926C8.31001 12.1095 8.91224 11.4388 9.56906 10.9487Z",fill:"#D28783"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6814 4.95227C12.8781 5.34945 12.0685 6.10455 11.4713 7.13894C11.1974 7.61329 10.9958 8.0988 10.8639 8.5729C10.5375 9.74609 9.76226 10.8605 8.80697 11.5981C8.22737 12.0457 7.69034 12.6517 7.26411 13.3899C6.61302 14.5177 6.36114 15.7095 6.45835 16.7122C6.55568 17.7161 6.99356 18.4875 7.68026 18.8839C8.36697 19.2804 9.25396 19.2739 10.172 18.8563C11.089 18.4391 11.9952 17.6251 12.6463 16.4973C13.0725 15.7591 13.3288 14.991 13.4266 14.2652C13.5878 13.0691 14.1652 11.8405 15.018 10.9712C15.3627 10.62 15.6823 10.2026 15.9562 9.72831C16.5534 8.69392 16.8025 7.61517 16.7448 6.72092C16.6869 5.82249 16.3296 5.17102 15.7804 4.85396C15.2313 4.5369 14.4885 4.55323 13.6814 4.95227ZM13.2393 4.0581C14.2385 3.56407 15.3513 3.4544 16.2792 3.9901C17.207 4.52581 17.6685 5.5444 17.7402 6.65672C17.8122 7.77322 17.502 9.04591 16.82 10.2271C16.5051 10.7725 16.1348 11.2573 15.7301 11.6698C15.0355 12.3778 14.5491 13.4048 14.4152 14.3984C14.2993 15.2582 13.9987 16.1499 13.5101 16.9961C12.7671 18.2831 11.712 19.2515 10.5851 19.7642C9.45921 20.2764 8.21961 20.3471 7.18151 19.7478C6.14342 19.1485 5.58487 18.0396 5.46551 16.8084C5.34604 15.5761 5.65719 14.1782 6.40025 12.8912C6.88878 12.045 7.51069 11.3388 8.19733 10.8086C8.99086 10.1959 9.6371 9.26105 9.90289 8.30556C10.0578 7.74875 10.2925 7.18565 10.6074 6.64019C11.2893 5.45904 12.2364 4.55399 13.2393 4.0581Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5022 10.8406C13.325 10.6296 13.3525 10.315 13.5634 10.1379C14.0127 9.76067 14.8861 8.62678 14.7317 7.22796C14.7015 6.95417 14.8989 6.70772 15.1727 6.67751C15.4465 6.64729 15.693 6.84475 15.7232 7.11854C15.9274 8.96874 14.8005 10.4018 14.2048 10.9018C13.9939 11.079 13.6793 11.0515 13.5022 10.8406Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1902 9.50859C12.9792 9.3315 12.9517 9.01691 13.1288 8.80593C13.2008 8.72013 13.4473 8.27935 13.3418 7.62611C13.2979 7.35418 13.4827 7.09813 13.7546 7.05422C14.0266 7.01031 14.2826 7.19515 14.3265 7.46708C14.4799 8.41701 14.1443 9.14768 13.8928 9.44721C13.7158 9.6582 13.4012 9.68568 13.1902 9.50859Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.74584 18.4838C8.64849 18.2261 8.77846 17.9383 9.03614 17.8409C9.6911 17.5935 11.1665 16.6296 11.6082 14.8577C11.6749 14.5904 11.9455 14.4278 12.2128 14.4944C12.4801 14.561 12.6427 14.8317 12.5761 15.099C12.031 17.2857 10.2424 18.4515 9.38868 18.7741C9.131 18.8714 8.8432 18.7414 8.74584 18.4838Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5585 11.6148C10.7132 11.8427 10.6538 12.1529 10.4259 12.3076C9.4509 12.9693 7.56917 14.4756 7.86794 16.9329C7.90118 17.2063 7.70647 17.4549 7.43303 17.4882C7.15959 17.5214 6.91098 17.3267 6.87773 17.0533C6.50256 13.9676 8.88106 12.1505 9.86579 11.4822C10.0937 11.3275 10.4039 11.3869 10.5585 11.6148Z",fill:"#3A2007"})]}),peas:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M16.2004 18.7036C15.8202 23.1597 1.28621 12.1509 5.95924 6.71026C6.17257 6.46189 6.53851 6.42341 6.82135 6.58613L8.02841 7.28058C8.79243 7.72014 9.32682 8.46932 9.49355 9.33462L9.68752 10.3413C9.8028 10.9396 10.2677 11.4084 10.8658 11.5296L10.9746 11.5516C11.6418 11.6867 12.1087 12.2873 12.0749 12.9667C12.0465 13.5381 12.3771 14.0583 12.8968 14.2973C14.4497 15.0114 16.4141 16.1981 16.2004 18.7036Z",fill:"#54948F"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.34675 5.78486C6.85957 5.7094 6.32093 5.93347 6.08533 6.43286C5.20262 8.30394 5.83304 10.1398 7.08602 11.6811C8.33536 13.2178 10.2625 14.5498 12.2128 15.5227C14.1616 16.4949 16.1973 17.1401 17.6961 17.2574C18.4274 17.3147 19.1316 17.2554 19.6237 16.9471C19.8865 16.7826 20.0927 16.5437 20.1899 16.2272C20.2844 15.9197 20.2608 15.589 20.1622 15.2578C19.5147 13.0819 18.4723 12.0918 17.2531 11.8133C16.719 11.6913 16.2117 11.5595 15.7766 11.3546C15.3476 11.1525 15.0191 10.8931 14.8123 10.532L14.7863 10.4866C14.4032 9.81754 13.7637 9.33426 13.0153 9.14817C12.5295 9.02738 12.1145 8.71342 11.8661 8.27886L11.655 7.90946C11.0776 6.89889 10.0716 6.20689 8.92088 6.02866L7.34675 5.78486ZM6.98702 6.85674C7.00918 6.80978 7.08288 6.75398 7.19162 6.77082L8.76575 7.01463C9.61723 7.14651 10.3616 7.65856 10.7889 8.40634L11 8.77574C11.383 9.44595 12.0231 9.93015 12.7723 10.1165C13.2576 10.2371 13.6722 10.5505 13.9207 10.9843L13.9467 11.0297C14.2859 11.622 14.8024 11.9996 15.3498 12.2574C15.891 12.5124 16.4914 12.6633 17.0287 12.786C17.7756 12.9567 18.6194 13.5726 19.2063 15.5448C19.2674 15.75 19.2567 15.8712 19.2367 15.9364C19.2194 15.9926 19.1836 16.0471 19.0961 16.1019C18.8877 16.2325 18.4583 16.3161 17.7766 16.2628C16.4496 16.1589 14.5419 15.5685 12.6598 14.6296C10.7792 13.6915 8.98766 12.4369 7.86039 11.0503C6.73676 9.66819 6.33259 8.24392 6.98702 6.85674Z",fill:"#042624"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.0061 13.9881C15.8441 14.0427 15.7755 14.1292 15.7528 14.1981C15.73 14.2669 15.7336 14.3773 15.8314 14.5176C15.9293 14.6581 16.1061 14.7989 16.3487 14.8789C16.5913 14.959 16.8172 14.9511 16.9794 14.8965C17.1415 14.8419 17.2101 14.7554 17.2328 14.6865C17.2555 14.6177 17.2519 14.5073 17.1542 14.367C17.0563 14.2265 16.8795 14.0857 16.6369 14.0057C16.3943 13.9256 16.1684 13.9335 16.0061 13.9881ZM15.6879 13.0427C16.0736 12.9129 16.5218 12.9173 16.9495 13.0584C17.3772 13.1996 17.74 13.4628 17.9726 13.7968C18.2054 14.1309 18.3232 14.5653 18.1801 14.9992C18.0369 15.433 17.6836 15.7119 17.2977 15.8419C16.9119 15.9717 16.4638 15.9673 16.0361 15.8262C15.6083 15.685 15.2456 15.4218 15.013 15.0878C14.7802 14.7537 14.6623 14.3193 14.8055 13.8854C14.9487 13.4516 15.302 13.1727 15.6879 13.0427Z",fill:"#042624"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0772 11.5C11.8319 11.511 11.6767 11.6055 11.5974 11.7218C11.518 11.8381 11.4866 12.017 11.5659 12.2495C11.6452 12.4821 11.8287 12.7356 12.1149 12.9309C12.4012 13.1262 12.7041 13.2046 12.9497 13.1936C13.195 13.1827 13.3502 13.0882 13.4295 12.9719C13.5089 12.8556 13.5403 12.6766 13.461 12.4442C13.3817 12.2116 13.1982 11.9581 12.912 11.7628C12.6257 11.5675 12.3228 11.489 12.0772 11.5ZM12.0326 10.5035C12.5137 10.482 13.0269 10.6336 13.4742 10.9388C13.9214 11.244 14.2498 11.6665 14.4052 12.1223C14.5606 12.5784 14.5495 13.1003 14.2535 13.5341C13.9575 13.9679 13.4756 14.1686 12.9943 14.1901C12.5132 14.2117 12 14.06 11.5527 13.7549C11.1055 13.4497 10.7771 13.0272 10.6217 12.5713C10.4663 12.1153 10.4774 11.5934 10.7734 11.1596C11.0694 10.7258 11.5513 10.5251 12.0326 10.5035Z",fill:"#042624"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.02146 8.48618C8.79727 8.4245 8.63306 8.46505 8.53119 8.54392C8.42932 8.62279 8.34894 8.77161 8.3525 9.0041C8.35606 9.23679 8.44756 9.52013 8.64991 9.78149C8.85226 10.0429 9.10365 10.2024 9.32803 10.2641C9.55222 10.3258 9.71643 10.2853 9.8183 10.2064C9.92017 10.1275 10.0006 9.97871 9.997 9.74621C9.99343 9.51353 9.90194 9.23019 9.69959 8.96882C9.49723 8.70746 9.24584 8.54791 9.02146 8.48618ZM9.28606 7.52442C9.7378 7.6487 10.1666 7.94265 10.4883 8.35817C10.81 8.77369 10.9872 9.26247 10.9944 9.73094C11.0016 10.1996 10.8348 10.681 10.429 10.9951C10.0232 11.3093 9.51535 11.3502 9.06343 11.2259C8.61169 11.1016 8.18287 10.8077 7.86117 10.3921C7.53947 9.97663 7.36229 9.48785 7.35512 9.01938C7.34794 8.55072 7.51474 8.06935 7.92054 7.75518C8.32633 7.44101 8.83414 7.40008 9.28606 7.52442Z",fill:"#042624"})]}),popcorn:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8ECF4"}),ih("path",{d:"M5.56621 11.7076C5.96689 10.2122 7.50393 9.32484 8.99929 9.72552C10.4947 10.1262 12.059 11.8446 11.6583 13.34C11.2576 14.8353 8.95297 15.8798 7.45761 15.4791C5.96225 15.0785 5.16553 13.203 5.56621 11.7076Z",fill:"white"}),ih("path",{d:"M12.3162 6.45761C12.7169 4.96225 14.2539 4.07484 15.7493 4.47552C17.2447 4.8762 18.809 6.59462 18.4083 8.08998C18.0076 9.58534 15.703 10.6298 14.2076 10.2291C12.7123 9.82846 11.9155 7.95297 12.3162 6.45761Z",fill:"white"}),ih("path",{d:"M12.3162 14.7076C12.7169 13.2122 14.2539 12.3248 15.7493 12.7255C17.2447 13.1262 18.809 14.8446 18.4083 16.34C18.0076 17.8353 15.703 18.8798 14.2076 18.4791C12.7123 18.0785 11.9155 16.203 12.3162 14.7076Z",fill:"white"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.7876 16.1088C14.9511 16.236 14.9805 16.4716 14.8534 16.6351C14.4941 17.097 14.1187 17.7438 14.051 18.2356C14.0184 18.4716 14.0648 18.6047 14.1388 18.6831C14.2192 18.7681 14.4145 18.8771 14.8738 18.8771C15.3293 18.8771 15.6254 18.7823 15.8175 18.6594C16.0056 18.5391 16.1211 18.3748 16.1881 18.1808C16.3298 17.77 16.2476 17.2347 16.1044 16.8529C16.0317 16.659 16.13 16.4428 16.3239 16.3701C16.5178 16.2974 16.734 16.3956 16.8067 16.5895C16.9799 17.0514 17.1192 17.7816 16.8971 18.4253C16.7821 18.7585 16.5694 19.0688 16.2216 19.2912C15.8779 19.5111 15.4306 19.6271 14.8738 19.6271C14.3206 19.6271 13.8779 19.4989 13.5938 19.1983C13.3034 18.8911 13.2588 18.4904 13.308 18.1332C13.4037 17.4386 13.8825 16.6618 14.2614 16.1746C14.3885 16.0111 14.6241 15.9817 14.7876 16.1088Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7277 14.4681C18.0067 14.6571 18.2337 14.9368 18.3856 15.3165C18.5339 15.6873 18.5721 16.0317 18.51 16.3444C18.4479 16.6573 18.2912 16.909 18.0981 17.1039C17.723 17.4823 17.1956 17.6635 16.8336 17.7238C16.6293 17.7579 16.4361 17.6199 16.402 17.4156C16.368 17.2113 16.506 17.0181 16.7103 16.984C16.981 16.9389 17.3395 16.8038 17.5655 16.5758C17.6729 16.4675 17.7456 16.3435 17.7744 16.1983C17.8032 16.053 17.794 15.8569 17.6892 15.595C17.588 15.3419 17.4512 15.1867 17.307 15.089C17.1601 14.9894 16.9847 14.9357 16.7893 14.92C16.3877 14.8876 15.9509 15.0201 15.6742 15.1584C15.4889 15.251 15.2637 15.176 15.1711 14.9907C15.0784 14.8055 15.1535 14.5802 15.3388 14.4876C15.6948 14.3096 16.2704 14.1257 16.8495 14.1724C17.1444 14.1962 17.4515 14.2809 17.7277 14.4681Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9006 14.0591C14.4895 13.9055 14.005 13.8834 13.4848 14.1955C13.2508 14.3359 13.1546 14.4974 13.1201 14.6619C13.0822 14.8418 13.1102 15.0684 13.2084 15.3332C13.4064 15.8664 13.8403 16.4229 14.1898 16.7724C14.3362 16.9189 14.3362 17.1563 14.1898 17.3027C14.0433 17.4492 13.8059 17.4492 13.6595 17.3027C13.2708 16.9141 12.7556 16.2684 12.5053 15.5942C12.3795 15.2552 12.3086 14.8767 12.3861 14.5077C12.4669 14.1231 12.7002 13.7916 13.0989 13.5524C13.8443 13.1052 14.5724 13.1358 15.1632 13.3565C15.7391 13.5718 16.1873 13.9665 16.432 14.2724C16.5614 14.4341 16.5352 14.6701 16.3735 14.7995C16.2117 14.9289 15.9758 14.9026 15.8464 14.7409C15.6693 14.5195 15.3265 14.2182 14.9006 14.0591Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1794 12.6597C10.3259 12.5132 10.5633 12.5132 10.7098 12.6597C10.794 12.7439 10.8604 12.8581 10.911 12.9643C10.9653 13.0781 11.0156 13.2133 11.0575 13.3615C11.1412 13.657 11.1975 14.0255 11.1749 14.41C11.1522 14.7951 11.0493 15.2105 10.8003 15.5809C10.5482 15.9561 10.1616 16.2617 9.61408 16.4442C8.71464 16.7441 7.99749 16.4905 7.49196 16.0458C7.00692 15.6191 6.72309 15.0265 6.60399 14.6097C6.54709 14.4105 6.6624 14.203 6.86154 14.1461C7.06068 14.0892 7.26823 14.2045 7.32513 14.4036C7.41694 14.725 7.63929 15.1765 7.98735 15.4827C8.31493 15.7708 8.75779 15.9391 9.37691 15.7327C9.77847 15.5989 10.0247 15.3905 10.1779 15.1625C10.3342 14.9299 10.4093 14.6532 10.4262 14.366C10.4431 14.0782 10.4005 13.7942 10.3359 13.5658C10.3037 13.452 10.2675 13.3573 10.234 13.287C10.205 13.2261 10.1848 13.198 10.1799 13.1911C10.1785 13.1891 10.1783 13.1889 10.1794 13.19C10.033 13.0435 10.033 12.8061 10.1794 12.6597Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.77169 8.80684C7.30912 8.48439 7.80452 8.39738 8.24085 8.48848C8.693 8.58289 9.1577 8.81842 9.57318 9.07104C9.94032 9.29427 10.2943 9.54697 10.5903 9.75829C10.6321 9.78816 10.6728 9.81721 10.7122 9.84523C11.0225 10.0659 11.3513 10.3733 11.6866 10.7923C11.9733 11.1508 12.1339 11.5089 12.1824 11.8601C12.2312 12.2127 12.1634 12.5332 12.0333 12.8083C11.78 13.3442 11.2909 13.7118 10.9287 13.8929C10.7435 13.9856 10.5182 13.9105 10.4256 13.7252C10.333 13.54 10.4081 13.3147 10.5933 13.2221C10.8638 13.0869 11.1974 12.8217 11.3553 12.4877C11.4309 12.3278 11.4659 12.1539 11.4395 11.9628C11.4129 11.7703 11.3204 11.5352 11.1009 11.2609C10.8032 10.8886 10.5237 10.6315 10.2775 10.4564C10.2367 10.4274 10.1951 10.3977 10.1529 10.3676C9.85508 10.155 9.5252 9.91962 9.18354 9.71189C8.78987 9.47253 8.41286 9.29057 8.08756 9.22265C7.87197 9.17764 7.56766 9.2039 7.15756 9.44996C6.63157 9.76555 6.39327 10.2185 6.30443 10.6717C6.21326 11.1366 6.28308 11.5925 6.37128 11.8571C6.43677 12.0536 6.33059 12.266 6.13411 12.3315C5.93763 12.397 5.72526 12.2908 5.65977 12.0943C5.53706 11.7262 5.44869 11.1381 5.56844 10.5274C5.6905 9.90483 6.03221 9.25053 6.77169 8.80684Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00378 11.5403C7.06953 11.7367 6.96362 11.9492 6.76722 12.0149C6.40809 12.1352 5.89813 12.4015 5.54174 12.7915C5.19836 13.1672 5.01096 13.6353 5.2011 14.2294C5.42053 14.915 5.69441 15.05 5.83923 15.0747C6.02184 15.1059 6.24125 15.0097 6.39847 14.8693C6.55297 14.7314 6.79002 14.7448 6.92795 14.8993C7.06587 15.0538 7.05243 15.2909 6.89793 15.4288C6.6542 15.6464 6.21204 15.8992 5.71306 15.814C5.17627 15.7224 4.7485 15.2757 4.4868 14.4581C4.19581 13.5489 4.50959 12.8091 4.98813 12.2855C5.45367 11.7762 6.08639 11.452 6.52914 11.3037C6.72553 11.238 6.93804 11.3439 7.00378 11.5403Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5763 6.13891C15.0582 6.20463 15.4807 6.42581 15.7314 6.61384C15.8971 6.73811 15.9307 6.97316 15.8064 7.13884C15.6822 7.30453 15.4471 7.33811 15.2814 7.21384C15.1103 7.08551 14.8051 6.92705 14.475 6.88204C14.1588 6.83891 13.8366 6.8994 13.557 7.17901C13.3456 7.39044 13.2762 7.53154 13.2546 7.61525C13.2363 7.68667 13.244 7.74843 13.2806 7.83386C13.311 7.9048 13.343 7.95765 13.3856 8.02792C13.4137 8.07426 13.4464 8.12818 13.4862 8.19987C13.5703 8.35124 13.6668 8.55762 13.6668 8.81205C13.6668 9.0377 13.587 9.27073 13.5285 9.44155C13.5267 9.44689 13.5249 9.45218 13.5231 9.4574C13.4552 9.65604 13.4028 9.81042 13.3882 9.95663C13.3752 10.0871 13.3952 10.1884 13.4641 10.2854C13.5405 10.3929 13.7055 10.5351 14.0639 10.6784C15.3851 11.2069 16.3279 10.1638 16.0918 9.21936C16.0415 9.01844 16.1637 8.81484 16.3646 8.76461C16.5655 8.71438 16.7691 8.83654 16.8194 9.03746C17.216 10.624 15.6277 12.1117 13.7854 11.3748C13.3529 11.2018 13.0433 10.9881 12.8528 10.7198C12.6548 10.4412 12.6155 10.147 12.6419 9.88203C12.6655 9.64583 12.7441 9.41696 12.8038 9.24298C12.8071 9.23337 12.8103 9.22393 12.8135 9.21466C12.8831 9.01105 12.9168 8.8957 12.9168 8.81205C12.9168 8.75011 12.8948 8.67967 12.8306 8.5641C12.8176 8.54077 12.7992 8.50998 12.7779 8.47434C12.7201 8.37775 12.6411 8.24551 12.5913 8.1293C12.5092 7.93792 12.4576 7.70307 12.5283 7.42847C12.5957 7.16615 12.7636 6.91179 13.0267 6.64868C13.5064 6.16901 14.0806 6.07131 14.5763 6.13891Z",fill:"#5D1244"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2062 6.14944C14.6112 5.06952 16.1553 4.36479 17.6127 5.33636C17.9936 5.59031 18.2069 5.89514 18.2682 6.24019C18.3262 6.56642 18.2357 6.86689 18.1498 7.08876C18.1174 7.17268 18.0806 7.25704 18.0492 7.32906C18.0392 7.35198 18.0297 7.37365 18.0211 7.39366C17.9902 7.46567 17.9689 7.51926 17.9555 7.56148C18.2564 7.71718 18.5628 7.91698 18.7287 8.24888C18.9131 8.61773 18.8799 9.05214 18.7095 9.56337C18.5212 10.1282 18.0172 10.3647 17.582 10.4529C17.143 10.542 16.6794 10.5047 16.382 10.4452C16.1789 10.4046 16.0472 10.2071 16.0879 10.004C16.1285 9.80089 16.326 9.66918 16.5291 9.7098C16.7591 9.75578 17.118 9.78178 17.433 9.7179C17.7518 9.65325 17.9332 9.52064 17.998 9.32619C18.144 8.88832 18.1108 8.68999 18.0579 8.58429C17.9989 8.46625 17.8646 8.35398 17.5533 8.19836C17.4032 8.1233 17.2779 8.00208 17.2211 7.82761C17.1697 7.66959 17.1918 7.5182 17.219 7.41024C17.2468 7.30025 17.2924 7.18994 17.332 7.09766C17.3439 7.06983 17.3555 7.04326 17.3668 7.0174C17.3966 6.94917 17.4241 6.88596 17.4504 6.81802C17.5227 6.63125 17.5509 6.49012 17.5298 6.37146C17.512 6.27162 17.4485 6.12826 17.1967 5.96039C16.1231 5.24467 15.1363 5.80541 14.9085 6.41278C14.8358 6.6067 14.6196 6.70495 14.4257 6.63223C14.2318 6.55951 14.1335 6.34336 14.2062 6.14944Z",fill:"#5D1244"})]}),potatoes:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M6.99813 16.3831C4.84579 14.2467 6.76648 11.207 9.65883 9.05434C12.0254 6.78685 12.9579 5.21878 15.4548 7.15617C17.9517 9.09356 17.1383 12.4595 15.2176 15.4993C13.2969 18.539 9.15047 18.5194 6.99813 16.3831Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7613 4.7943C12.5497 4.67371 13.4668 4.80141 14.5406 5.23932C15.6719 5.70074 16.4024 6.4538 16.815 7.36861C17.2213 8.26919 17.3057 9.29388 17.2166 10.2973C17.0389 12.2974 16.1589 14.3552 15.4594 15.5533C14.7018 16.8511 13.1257 17.9228 11.45 18.3254C9.76004 18.7315 7.85349 18.4787 6.53398 16.9523C5.56259 15.8286 5.0949 14.8227 5.01401 13.8969C4.93229 12.9616 5.25189 12.1853 5.69815 11.5416C6.10663 10.9524 6.64158 10.4472 7.09262 10.0213C7.12444 9.99129 7.15584 9.96164 7.18675 9.93238C7.42853 9.70353 7.63878 9.50072 7.80879 9.30785C7.98042 9.11314 8.0868 8.95501 8.14072 8.82307M11.7613 4.7943C10.9667 4.91582 10.3459 5.28301 9.86009 5.75854ZM9.86009 5.75854C9.03317 6.56794 8.57514 7.72695 8.26063 8.52278ZM8.26063 8.52278C8.21824 8.63006 8.17845 8.73073 8.14072 8.82307ZM9.19448 8.87617C9.15028 8.98693 9.10702 9.09536 9.0641 9.2004L9.06409 9.20041C8.9489 9.48229 8.75934 9.73799 8.55708 9.96744C8.35319 10.1987 8.1116 10.4305 7.87247 10.6568C7.84677 10.6811 7.82105 10.7054 7.79535 10.7297C7.32834 11.1713 6.8648 11.6095 6.51792 12.1099C6.16091 12.6249 5.95204 13.1728 6.00772 13.8101C6.06423 14.4568 6.3998 15.2718 7.28861 16.2999C8.29146 17.4601 9.76715 17.7039 11.217 17.3555C12.6813 17.0037 14.0026 16.0701 14.5979 15.0504C15.2514 13.9312 16.0624 12.0162 16.223 10.2091C16.303 9.30895 16.2182 8.47142 15.9058 7.77879C15.5997 7.10036 15.0618 6.52919 14.1639 6.16296C13.2083 5.77322 12.4765 5.69401 11.9121 5.78033C11.3538 5.86572 10.9176 6.11927 10.5578 6.47139C9.89516 7.12003 9.51965 8.06119 9.19448 8.87617Z",fill:"#3A2007"}),ih("path",{d:"M9.35457 15.4074C8.67923 12.9241 11.3806 11.5051 14.4196 11.1503C17.121 10.4881 18.4716 9.73129 19.4846 12.2146C20.4976 14.6979 18.4716 16.8264 15.7702 18.2454C13.0689 19.6645 10.0299 17.8907 9.35457 15.4074Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9711 10.5295C19.3657 10.8692 19.6778 11.3677 19.9464 12.0262C20.5289 13.4541 20.224 14.7849 19.4282 15.9161C18.6469 17.0266 17.3882 17.9589 16.0022 18.687C12.9787 20.2752 9.62014 18.2845 8.8733 15.5383C8.67748 14.8182 8.72179 14.1489 8.97417 13.5506C9.22368 12.9591 9.66175 12.4713 10.1999 12.078C11.26 11.3032 12.7771 10.8437 14.3305 10.6586C14.6516 10.5795 14.9539 10.4991 15.2429 10.4221L15.2538 10.4192C15.5458 10.3414 15.8268 10.2666 16.0919 10.203C16.6221 10.0758 17.1335 9.98189 17.6091 10.0047C18.1035 10.0284 18.563 10.1783 18.9711 10.5295ZM15.4996 11.386C15.2026 11.4651 14.8815 11.5506 14.5383 11.6347L14.5082 11.6421L14.4774 11.6457C13.0027 11.8179 11.6628 12.2443 10.7885 12.8833C10.3559 13.1995 10.0553 13.5542 9.89325 13.9383C9.7341 14.3156 9.69399 14.7549 9.83584 15.2765C10.4397 17.4969 13.1591 19.0537 15.5383 17.8039C16.8536 17.113 17.9586 16.2714 18.6124 15.3421C19.2516 14.4335 19.4533 13.4584 19.0228 12.403C18.7849 11.8198 18.5483 11.4817 18.3203 11.2855C18.1058 11.1009 17.8689 11.0158 17.5613 11.001C17.235 10.9854 16.839 11.0496 16.3245 11.173C16.0716 11.2337 15.8008 11.3058 15.5033 11.385L15.4996 11.386Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7546 7.8728C11.5327 8.03602 11.2206 7.98846 11.0573 7.76657C10.991 7.67635 10.6208 7.33281 9.96113 7.28112C9.68652 7.25961 9.48135 7.01955 9.50287 6.74494C9.52438 6.47033 9.76444 6.26515 10.0391 6.28667C10.9983 6.36183 11.6291 6.86049 11.8609 7.17551C12.0241 7.39739 11.9765 7.70958 11.7546 7.8728Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.0046 10.1228C13.7827 10.286 13.4706 10.2385 13.3073 10.0166C13.241 9.92635 12.8708 9.58281 12.2111 9.53112C11.9365 9.50961 11.7313 9.26955 11.7529 8.99494C11.7744 8.72033 12.0144 8.51515 12.2891 8.53667C13.2483 8.61183 13.8791 9.11049 14.1109 9.42551C14.2741 9.64739 14.2265 9.95958 14.0046 10.1228Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5855 13.2161C15.3107 13.1967 15.1037 12.9583 15.123 12.6835C15.1309 12.5718 15.0715 12.0703 14.6024 11.6036C14.4071 11.4093 14.4063 11.0935 14.6006 10.8983C14.7948 10.703 15.1106 10.7022 15.3059 10.8964C15.988 11.5751 16.1456 12.3636 16.1181 12.7537C16.0987 13.0285 15.8602 13.2355 15.5855 13.2161Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5855 15.4661C12.3107 15.4467 12.1037 15.2083 12.123 14.9335C12.1309 14.8218 12.0715 14.3203 11.6024 13.8536C11.4071 13.6593 11.4063 13.3435 11.6006 13.1483C11.7948 12.953 12.1106 12.9522 12.3059 13.1464C12.988 13.8251 13.1456 14.6136 13.1181 15.0037C13.0987 15.2785 12.8602 15.4855 12.5855 15.4661Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.5855 16.2161C18.3107 16.1967 18.1037 15.9583 18.123 15.6835C18.1309 15.5718 18.0715 15.0703 17.6024 14.6036C17.4071 14.4093 17.4063 14.0935 17.6006 13.8983C17.7948 13.703 18.1106 13.7022 18.3059 13.8964C18.988 14.5751 19.1456 15.3636 19.1181 15.7537C19.0987 16.0285 18.8602 16.2355 18.5855 16.2161Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.50463 11.6228C9.28275 11.786 8.97056 11.7385 8.80734 11.5166C8.74097 11.4263 8.37082 11.0828 7.71113 11.0311C7.43652 11.0096 7.23135 10.7695 7.25287 10.4949C7.27438 10.2203 7.51444 10.0152 7.78905 10.0367C8.74835 10.1118 9.37914 10.6105 9.61086 10.9255C9.77408 11.1474 9.72652 11.4596 9.50463 11.6228Z",fill:"#3A2007"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.50463 15.3728C9.28275 15.536 8.97056 15.4885 8.80734 15.2666C8.74097 15.1763 8.37082 14.8328 7.71113 14.7811C7.43652 14.7596 7.23135 14.5195 7.25287 14.2449C7.27438 13.9703 7.51444 13.7652 7.78905 13.7867C8.74835 13.8618 9.37914 14.3605 9.61086 14.6755C9.77408 14.8974 9.72652 15.2096 9.50463 15.3728Z",fill:"#3A2007"})]}),pumpkin:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.142 6.60641C11.3267 6.87297 11.4232 7.21535 11.4325 7.57039C11.4403 7.86846 11.6498 8.1159 11.9004 8.12307C12.151 8.13024 12.3478 7.89443 12.3399 7.59636C12.3253 7.0376 12.1722 6.44191 11.8296 5.94759C11.4815 5.44546 10.9667 5.08975 10.2956 4.96857C10.046 4.92351 9.82418 5.1259 9.80004 5.42063C9.7759 5.71536 9.95862 5.99081 10.2082 6.03587C10.6724 6.1197 10.9627 6.34766 11.142 6.60641Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.79024 16.7901C9.06472 16.7901 9.33134 16.7426 9.58623 16.6532C9.82188 16.5706 10.0812 16.5706 10.3169 16.6532C10.5718 16.7426 10.8384 16.7901 11.1129 16.7901C11.4864 16.7901 11.8454 16.7022 12.18 16.5403C12.4815 16.3945 12.8412 16.3945 13.1427 16.5403C13.4773 16.7022 13.8363 16.7901 14.2098 16.7901C16.027 16.7901 17.5001 14.7104 17.5001 12.145C17.5001 9.57966 16.027 7.5 14.2098 7.5C13.8363 7.5 13.4773 7.58787 13.1427 7.74978C12.8412 7.89563 12.4815 7.89563 12.18 7.74978C11.8454 7.58787 11.4864 7.5 11.1129 7.5C10.8384 7.5 10.5718 7.54745 10.3169 7.63685C10.0812 7.71951 9.82188 7.71951 9.58623 7.63685C9.33134 7.54745 9.06472 7.5 8.79024 7.5C6.97309 7.5 5.5 9.57966 5.5 12.145C5.5 14.7104 6.97309 16.7901 8.79024 16.7901Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.20161 16.6154C9.40424 16.6154 9.60294 16.5788 9.79744 16.5067C10.2552 16.337 10.7609 16.337 11.2187 16.5067C11.4132 16.5788 11.6119 16.6154 11.8145 16.6154C12.0889 16.6154 12.3594 16.5481 12.6232 16.4128C13.2069 16.1135 13.906 16.1135 14.4898 16.4128C14.7536 16.5481 15.024 16.6154 15.2984 16.6154C15.9111 16.6154 16.5631 16.2664 17.1019 15.5057C17.639 14.7475 18.0025 13.6481 18.0025 12.3871C18.0025 11.1261 17.639 10.0267 17.1019 9.26848C16.5631 8.50785 15.9111 8.1588 15.2984 8.1588C15.024 8.1588 14.7536 8.22614 14.4898 8.36141C13.906 8.66073 13.2069 8.66073 12.6232 8.36141C12.3594 8.22614 12.0889 8.1588 11.8145 8.1588C11.6119 8.1588 11.4132 8.19545 11.2187 8.26753C10.7609 8.43719 10.2552 8.43719 9.79744 8.26753C9.60294 8.19545 9.40424 8.1588 9.20161 8.1588C8.58894 8.1588 7.93694 8.50785 7.39816 9.26848C6.86109 10.0267 6.4975 11.1261 6.4975 12.3871C6.4975 13.6481 6.86109 14.7475 7.39816 15.5057C7.93694 16.2664 8.58894 16.6154 9.20161 16.6154ZM10.1441 17.442C9.84317 17.5535 9.5273 17.6129 9.20161 17.6129C7.15727 17.6129 5.5 15.2732 5.5 12.3871C5.5 9.50097 7.15727 7.1613 9.20161 7.1613C9.5273 7.1613 9.84317 7.22068 10.1441 7.33219C10.3782 7.41897 10.6379 7.41897 10.8721 7.33219C11.173 7.22068 11.4888 7.1613 11.8145 7.1613C12.2584 7.1613 12.684 7.27159 13.0783 7.4738C13.3763 7.6266 13.7366 7.6266 14.0346 7.4738C14.429 7.27159 14.8546 7.1613 15.2984 7.1613C17.3428 7.1613 19 9.50097 19 12.3871C19 15.2732 17.3428 17.6129 15.2984 17.6129C14.8546 17.6129 14.429 17.5026 14.0346 17.3004C13.7366 17.1476 13.3763 17.1476 13.0783 17.3004C12.684 17.5026 12.2584 17.6129 11.8145 17.6129C11.4888 17.6129 11.173 17.5535 10.8721 17.442C10.6379 17.3552 10.3782 17.3552 10.1441 17.442Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9399 15.5354C13.7091 15.3849 13.6441 15.0759 13.7945 14.8452C14.1764 14.2596 14.8784 12.3535 14.1705 9.8965C14.0943 9.63181 14.247 9.35542 14.5117 9.27916C14.7764 9.20291 15.0528 9.35566 15.129 9.62034C15.9201 12.3662 15.1644 14.5707 14.6301 15.3901C14.4796 15.6208 14.1706 15.6859 13.9399 15.5354Z",fill:"#6A1611"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8305 15.4041C11.0663 15.2617 11.142 14.9551 10.9996 14.7193C10.7442 14.2966 10.4041 13.5278 10.2489 12.6445C10.0938 11.7617 10.1311 10.8123 10.5667 9.9816C10.6946 9.73765 10.6006 9.43619 10.3566 9.30828C10.1127 9.18036 9.81123 9.27442 9.68331 9.51837C9.11148 10.6089 9.08814 11.8022 9.26647 12.8171C9.44471 13.8317 9.83213 14.7159 10.1457 15.2351C10.2882 15.4708 10.5948 15.5465 10.8305 15.4041Z",fill:"#6A1611"})]}),rapeseed:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EAE2"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 8.50127C13.2754 8.50127 13.4987 8.72456 13.4987 9.00002L13.4987 20.25C13.4987 20.5255 13.2754 20.7488 13 20.7488C12.7245 20.7488 12.5012 20.5255 12.5012 20.25L12.5012 9.00002C12.5012 8.72456 12.7245 8.50127 13 8.50127Z",fill:"#243304"}),ih("path",{d:"M16.0002 7.27501C16.0002 8.31054 15.1607 9.15001 14.1252 9.15001C13.0896 9.15001 12.2502 8.31054 12.2502 7.27501C12.2502 6.23948 13.0896 5.40001 14.1252 5.40001C15.1607 5.40001 16.0002 6.23948 16.0002 7.27501Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.4907 8.38935C15.457 8.60082 15.3848 8.80975 15.2718 9.00547C14.7744 9.86701 13.6727 10.1622 12.8112 9.66479C12.6155 9.55179 12.4485 9.40693 12.3135 9.24067C12.1021 9.20689 11.8931 9.13474 11.6974 9.02175C10.8359 8.52433 10.5407 7.42267 11.0381 6.56112C11.1511 6.36541 11.296 6.19846 11.4622 6.06347C11.496 5.85199 11.5681 5.64306 11.6811 5.44735C12.1786 4.5858 13.2802 4.29061 14.1418 4.78803C14.3375 4.90102 14.5044 5.04588 14.6394 5.21214C14.8509 5.24592 15.0598 5.31807 15.2555 5.43107C16.1171 5.92848 16.4123 7.03014 15.9149 7.89169C15.8019 8.0874 15.657 8.25435 15.4907 8.38935ZM14.6577 7.73568C14.8176 7.67076 14.958 7.55404 15.051 7.39294C15.273 7.00849 15.1412 6.51689 14.7568 6.29493C14.5957 6.20191 14.4158 6.17101 14.2448 6.19478C14.1387 6.20952 14.026 6.14443 13.9857 6.04523C13.9208 5.88525 13.8041 5.7449 13.643 5.65189C13.2586 5.42992 12.767 5.56164 12.545 5.9461C12.452 6.1072 12.4211 6.28711 12.4449 6.45811C12.4596 6.56415 12.3945 6.67688 12.2953 6.71714C12.1353 6.78205 11.995 6.89878 11.902 7.05987C11.68 7.44433 11.8117 7.93592 12.1962 8.15789C12.3573 8.2509 12.5372 8.2818 12.7082 8.25803C12.8142 8.24329 12.927 8.30838 12.9672 8.40758C13.0321 8.56756 13.1488 8.70792 13.3099 8.80093C13.6944 9.02289 14.186 8.89117 14.408 8.50672C14.501 8.34562 14.5319 8.1657 14.5081 7.9947C14.4934 7.88866 14.5585 7.77593 14.6577 7.73568Z",fill:"#322605"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.1662 14.0959C13.7218 14.5066 13.4987 15.1109 13.4986 15.7501C13.4986 16.0255 13.2753 16.2488 12.9998 16.2488C12.7244 16.2487 12.5011 16.0254 12.5011 15.75C12.5012 14.8891 12.8024 13.998 13.4892 13.3633C14.1846 12.7206 15.2105 12.4001 16.5373 12.5638C16.8107 12.5975 17.005 12.8464 16.9713 13.1198C16.9375 13.3932 16.6886 13.5875 16.4152 13.5538C15.3143 13.418 14.602 13.6931 14.1662 14.0959Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9304 16.7492C13.6413 17.0789 13.4988 17.5544 13.4988 18C13.4987 18.2755 13.2754 18.4988 13 18.4987C12.7245 18.4987 12.5012 18.2754 12.5013 17.9999C12.5013 17.3712 12.6968 16.6431 13.1803 16.0916C13.6836 15.5175 14.455 15.1865 15.4759 15.3124C15.7492 15.3461 15.9435 15.5951 15.9098 15.8685C15.8761 16.1418 15.6271 16.3361 15.3537 16.3024C14.6357 16.2138 14.1998 16.4419 13.9304 16.7492Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0869 12.5336C12.4853 13.2377 12.6078 14.1545 12.5055 14.9352C12.4697 15.2083 12.6621 15.4587 12.9352 15.4945C13.2083 15.5303 13.4587 15.3379 13.4945 15.0648C13.6191 14.1144 13.4803 12.9707 12.9551 12.0424C12.4151 11.0882 11.4673 10.3724 10.0587 10.3615C9.78323 10.3594 9.5582 10.5809 9.55606 10.8564C9.55392 11.1318 9.77548 11.3568 10.0509 11.359C11.065 11.3668 11.7032 11.8554 12.0869 12.5336Z",fill:"#243304"}),ih("path",{d:"M10 10.125C10 11.1605 9.16053 12 8.125 12C7.08947 12 6.25 11.1605 6.25 10.125C6.25 9.08947 7.08947 8.25 8.125 8.25C9.16053 8.25 10 9.08947 10 10.125Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2407 11.3893C10.207 11.6008 10.1348 11.8098 10.0218 12.0055C9.5244 12.867 8.42275 13.1622 7.5612 12.6648C7.36548 12.5518 7.19853 12.4069 7.06354 12.2407C6.85206 12.2069 6.64313 12.1347 6.44742 12.0217C5.58587 11.5243 5.29068 10.4227 5.7881 9.56112C5.90109 9.36541 6.04595 9.19846 6.21221 9.06347C6.24599 8.85199 6.31814 8.64306 6.43114 8.44735C6.92855 7.5858 8.03021 7.29061 8.89176 7.78803C9.08747 7.90102 9.25442 8.04588 9.38942 8.21214C9.60089 8.24592 9.80982 8.31807 10.0055 8.43107C10.8671 8.92848 11.1623 10.0301 10.6649 10.8917C10.5519 11.0874 10.407 11.2544 10.2407 11.3893ZM9.40765 10.7357C9.56763 10.6708 9.70799 10.554 9.801 10.3929C10.023 10.0085 9.89124 9.51689 9.50679 9.29493C9.34569 9.20191 9.16578 9.17101 8.99477 9.19478C8.88873 9.20952 8.776 9.14443 8.73575 9.04523C8.67083 8.88525 8.55411 8.7449 8.39301 8.65189C8.00856 8.42992 7.51696 8.56164 7.295 8.9461C7.20199 9.1072 7.17108 9.28711 7.19485 9.45811C7.20959 9.56415 7.14451 9.67688 7.0453 9.71714C6.88532 9.78205 6.74497 9.89878 6.65196 10.0599C6.42999 10.4443 6.56172 10.9359 6.94617 11.1579C7.10727 11.2509 7.28718 11.2818 7.45818 11.258C7.56422 11.2433 7.67695 11.3084 7.71721 11.4076C7.78213 11.5676 7.89885 11.7079 8.05995 11.8009C8.4444 12.0229 8.936 11.8912 9.15796 11.5067C9.25097 11.3456 9.28187 11.1657 9.25811 10.9947C9.24337 10.8887 9.30845 10.7759 9.40765 10.7357Z",fill:"#322605"})]}),rice:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M17.6166 4.70391C6.96887 2.97901 8.86026 12.6097 10.6115 18C10.6115 10.0942 15.5151 12.969 17.6166 11.1723C19.7181 9.37561 21.1192 5.42259 17.6166 4.70391Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.17232 5.31774C6.48001 5.27485 6.76421 5.4895 6.80711 5.79719C7.02122 7.33304 7.48877 9.84778 8.19244 12.3774C8.9008 14.9238 9.82973 17.4145 10.9403 18.9538C11.1221 19.2058 11.0652 19.5573 10.8132 19.7391C10.5613 19.9209 10.2097 19.864 10.0279 19.612C8.79346 17.9009 7.82245 15.2451 7.10859 12.6789C6.39003 10.0958 5.91303 7.53168 5.69288 5.95252C5.64999 5.64484 5.86464 5.36064 6.17232 5.31774Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.01455 4.43755C9.32517 4.44235 9.57309 4.69805 9.56829 5.00867C9.55206 6.05907 9.65752 8.85557 9.85555 11.6884C9.95435 13.1018 10.0756 14.5158 10.2151 15.7175C10.3562 16.933 10.5115 17.8902 10.6698 18.4148C10.7595 18.7122 10.5911 19.0261 10.2937 19.1158C9.99627 19.2055 9.68243 19.0371 9.59271 18.7397C9.40206 18.1077 9.23815 17.0583 9.0976 15.8472C8.95545 14.6223 8.83276 13.1899 8.73329 11.7669C8.53477 8.92702 8.42643 6.09146 8.44343 4.99129C8.44823 4.68067 8.70393 4.43275 9.01455 4.43755Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7851 15.6444C10.7413 17.1097 10.8743 18.2757 11.0227 18.7676C11.1124 19.065 10.944 19.3788 10.6466 19.4686C10.3492 19.5583 10.0353 19.3899 9.94561 19.0925C9.74509 18.4278 9.61548 17.119 9.6606 15.6108C9.70617 14.0876 9.93167 12.2934 10.4831 10.6503C11.0324 9.01358 11.9262 7.46598 13.3508 6.52466C14.7991 5.56766 16.7009 5.29917 19.1179 6.04284C19.4148 6.1342 19.5815 6.44897 19.4901 6.74589C19.3987 7.04281 19.084 7.20946 18.7871 7.1181C16.617 6.45041 15.0795 6.73079 13.971 7.46327C12.8387 8.21144 12.0579 9.49393 11.5497 11.0083C11.0435 12.5163 10.8285 14.1942 10.7851 15.6444Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0272 16.5221C10.8491 17.6995 10.8844 18.6617 11.0227 19.1204C11.1125 19.4178 10.9441 19.7317 10.6467 19.8214C10.3492 19.9111 10.0354 19.7427 9.94568 19.4453C9.73517 18.7475 9.72825 17.5877 9.91483 16.3539C10.1044 15.1006 10.5066 13.6828 11.1857 12.4538C11.8636 11.2269 12.8459 10.1395 14.2144 9.64593C15.5972 9.14722 17.2627 9.29447 19.2135 10.3163C19.4887 10.4605 19.5949 10.8004 19.4508 11.0756C19.3066 11.3508 18.9667 11.457 18.6915 11.3129C16.9374 10.3941 15.6047 10.3404 14.5961 10.7042C13.5731 11.0731 12.7705 11.9117 12.1704 12.9979C11.5714 14.0819 11.2023 15.3644 11.0272 16.5221Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 10.4169C13.1288 10.1972 13.485 10.1972 13.7046 10.4169L15.116 11.8282C15.3357 12.0479 15.3357 12.4041 15.116 12.6237C14.8963 12.8434 14.5402 12.8434 14.3205 12.6237L12.9091 11.2124C12.6895 10.9927 12.6895 10.6365 12.9091 10.4169Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 6.88843C13.1288 6.66876 13.485 6.66876 13.7046 6.88843L15.116 8.29981C15.3357 8.51948 15.3357 8.87563 15.116 9.0953C14.8963 9.31497 14.5402 9.31497 14.3205 9.0953L12.9091 7.68393C12.6895 7.46426 12.6895 7.1081 12.9091 6.88843Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 9.71125C15.246 9.49158 15.6021 9.49158 15.8218 9.71125L17.2332 11.1226C17.4529 11.3423 17.4529 11.6984 17.2332 11.9181C17.0135 12.1378 16.6574 12.1378 16.4377 11.9181L15.0263 10.5067C14.8067 10.2871 14.8067 9.93092 15.0263 9.71125Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 6.1828C15.246 5.96313 15.6021 5.96313 15.8218 6.1828L17.2332 7.59418C17.4529 7.81385 17.4529 8.17001 17.2332 8.38968C17.0135 8.60935 16.6574 8.60935 16.4377 8.38968L15.0263 6.9783C14.8067 6.75863 14.8067 6.40247 15.0263 6.1828Z",fill:"#49650C"})]}),rye:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8ECF4"}),ih("rect",{x:"7.75",y:"18",width:"12",height:"8.25",rx:"4.125",transform:"rotate(-90 7.75 18)",fill:"#CC8FB7"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.45099 4.35308C9.67327 4.29352 9.90174 4.42543 9.9613 4.64771L13.8436 19.1366C13.9031 19.3589 13.7712 19.5873 13.549 19.6469C13.3267 19.7065 13.0982 19.5746 13.0387 19.3523L9.15636 4.86339C9.09681 4.64111 9.22871 4.41264 9.45099 4.35308Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.88824 5.6801C8.06042 5.52742 8.32376 5.54323 8.47644 5.7154L10.949 8.50379C11.1017 8.67597 11.0859 8.93931 10.9137 9.09199C10.7416 9.24466 10.4782 9.22886 10.3255 9.05668L7.85294 6.26829C7.70026 6.09612 7.71607 5.83277 7.88824 5.6801Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4679 4.72094C11.6933 4.76707 11.8387 4.98723 11.7926 5.21268L11.0454 8.8638C10.9993 9.08924 10.7791 9.23461 10.5537 9.18847C10.3282 9.14234 10.1829 8.92218 10.229 8.69673L10.9762 5.04561C11.0223 4.82017 11.2425 4.6748 11.4679 4.72094Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.2635 16.5307C11.9033 15.5542 11.3135 15.0869 10.7299 14.8759C10.2161 14.6902 9.67476 14.6921 9.24234 14.7715C9.60252 15.748 10.1923 16.2153 10.7759 16.4263C11.2897 16.612 11.8311 16.6101 12.2635 16.5307ZM10.4926 17.21C9.55864 16.8723 8.71171 16.0826 8.31103 14.5872L8.21059 14.2124L8.57738 14.0856C9.17079 13.8805 10.107 13.7646 11.0133 14.0923C11.9472 14.4299 12.7941 15.2196 13.1948 16.715L13.2952 17.0898L12.9285 17.2166C12.3351 17.4217 11.3988 17.5376 10.4926 17.21Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1041 16.3055C12.9278 15.2797 13.205 14.5801 13.6049 14.1056C13.9569 13.6878 14.4267 13.4188 14.8409 13.2714C15.0172 14.2971 14.7401 14.9967 14.3402 15.4712C13.9881 15.889 13.5183 16.158 13.1041 16.3055ZM14.9774 16.0083C15.6174 15.2489 15.956 14.1415 15.5553 12.6461L15.4549 12.2713L15.0738 12.3449C14.4574 12.4639 13.5886 12.8317 12.9676 13.5686C12.3277 14.328 11.989 15.4353 12.3897 16.9307L12.4902 17.3056L12.8712 17.232C13.4877 17.1129 14.3564 16.7452 14.9774 16.0083Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4008 13.311C11.0406 12.3345 10.4508 11.8672 9.86718 11.6562C9.3534 11.4704 8.81203 11.4723 8.37961 11.5517C8.73979 12.5282 9.3296 12.9955 9.9132 13.2065C10.427 13.3923 10.9683 13.3904 11.4008 13.311ZM9.62985 13.9902C8.69591 13.6525 7.84898 12.8628 7.4483 11.3675L7.34786 10.9926L7.71465 10.8658C8.30805 10.6607 9.24426 10.5448 10.1505 10.8725C11.0845 11.2102 11.9314 11.9999 12.3321 13.4952L12.4325 13.8701L12.0657 13.9969C11.4723 14.202 10.5361 14.3179 9.62985 13.9902Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.2414 13.0857C12.0651 12.06 12.3422 11.3604 12.7421 10.8858C13.0942 10.4681 13.564 10.199 13.9782 10.0516C14.1545 11.0774 13.8774 11.7769 13.4774 12.2515C13.1254 12.6692 12.6556 12.9383 12.2414 13.0857ZM14.1147 12.7885C14.7547 12.0291 15.0933 10.9217 14.6926 9.42638L14.5922 9.05153L14.2111 9.12512C13.5946 9.24419 12.7259 9.61192 12.1049 10.3488C11.4649 11.1082 11.1263 12.2156 11.527 13.7109L11.6274 14.0858L12.0085 14.0122C12.6249 13.8931 13.4937 13.5254 14.1147 12.7885Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.538 10.0912C10.1778 9.11473 9.58805 8.64743 9.00445 8.43642C8.49067 8.25066 7.9493 8.25257 7.51687 8.33197C7.87706 9.30846 8.46686 9.77576 9.05046 9.98676C9.56424 10.1725 10.1056 10.1706 10.538 10.0912ZM8.76712 10.7704C7.83318 10.4328 6.98625 9.64308 6.58557 8.14773L6.48512 7.77287L6.85191 7.64608C7.44532 7.44096 8.38153 7.32507 9.28779 7.65274C10.2217 7.99041 11.0687 8.7801 11.4693 10.2755L11.5698 10.6503L11.203 10.7771C10.6096 10.9822 9.67338 11.0981 8.76712 10.7704Z",fill:"#3A0528"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3787 9.86597C11.2023 8.84021 11.4795 8.14062 11.8794 7.66608C12.2314 7.24832 12.7012 6.97929 13.1154 6.83184C13.2917 7.8576 13.0146 8.55719 12.6147 9.03173C12.2626 9.44949 11.7928 9.71852 11.3787 9.86597ZM13.2519 9.56874C13.8919 8.80934 14.2305 7.70198 13.8298 6.20663L13.7294 5.83177L13.3484 5.90536C12.7319 6.02443 11.8632 6.39216 11.2422 7.12907C10.6022 7.88847 10.2636 8.99583 10.6642 10.4912L10.7647 10.866L11.1457 10.7924C11.7622 10.6734 12.6309 10.3056 13.2519 9.56874Z",fill:"#3A0528"})]}),sorghum:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F8F8F3"}),ih("path",{d:"M17.6166 4.70391C6.96887 2.97901 8.86026 12.6097 10.6115 18C10.6115 10.0942 15.5151 12.969 17.6166 11.1723C19.7181 9.37561 21.1192 5.42259 17.6166 4.70391Z",fill:"#ABA5A0"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.17232 5.31774C6.48001 5.27485 6.76421 5.4895 6.80711 5.79719C7.02122 7.33304 7.48877 9.84778 8.19244 12.3774C8.9008 14.9238 9.82973 17.4145 10.9403 18.9538C11.1221 19.2058 11.0652 19.5573 10.8132 19.7391C10.5613 19.9209 10.2097 19.864 10.0279 19.612C8.79346 17.9009 7.82245 15.2451 7.10859 12.6789C6.39003 10.0958 5.91303 7.53168 5.69288 5.95252C5.64999 5.64484 5.86464 5.36064 6.17232 5.31774Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.01455 4.43755C9.32517 4.44235 9.57309 4.69805 9.56829 5.00867C9.55206 6.05907 9.65752 8.85557 9.85555 11.6884C9.95435 13.1018 10.0756 14.5158 10.2151 15.7175C10.3562 16.933 10.5115 17.8902 10.6698 18.4148C10.7595 18.7122 10.5911 19.0261 10.2937 19.1158C9.99627 19.2055 9.68243 19.0371 9.59271 18.7397C9.40206 18.1077 9.23815 17.0583 9.0976 15.8472C8.95545 14.6223 8.83276 13.1899 8.73329 11.7669C8.53477 8.92702 8.42643 6.09146 8.44343 4.99129C8.44823 4.68067 8.70393 4.43275 9.01455 4.43755Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7851 15.6444C10.7412 17.1097 10.8743 18.2757 11.0227 18.7676C11.1124 19.065 10.944 19.3788 10.6466 19.4686C10.3492 19.5583 10.0353 19.3899 9.94559 19.0925C9.74508 18.4278 9.61546 17.119 9.66058 15.6108C9.70615 14.0876 9.93166 12.2934 10.4831 10.6503C11.0324 9.01358 11.9262 7.46598 13.3508 6.52466C14.7991 5.56766 16.7009 5.29917 19.1179 6.04284C19.4148 6.1342 19.5814 6.44897 19.4901 6.74589C19.3987 7.04281 19.084 7.20946 18.787 7.1181C16.617 6.45041 15.0795 6.73079 13.971 7.46327C12.8387 8.21144 12.0579 9.49393 11.5496 11.0083C11.0435 12.5163 10.8285 14.1942 10.7851 15.6444Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0272 16.5221C10.8491 17.6995 10.8844 18.6617 11.0227 19.1204C11.1125 19.4178 10.9441 19.7317 10.6467 19.8214C10.3492 19.9111 10.0354 19.7427 9.94568 19.4453C9.73517 18.7475 9.72825 17.5877 9.91483 16.3539C10.1044 15.1006 10.5066 13.6828 11.1857 12.4538C11.8636 11.2269 12.8459 10.1395 14.2144 9.64593C15.5972 9.14722 17.2627 9.29447 19.2135 10.3163C19.4887 10.4605 19.5949 10.8004 19.4508 11.0756C19.3066 11.3508 18.9667 11.457 18.6915 11.3129C16.9374 10.3941 15.6047 10.3404 14.5961 10.7042C13.5731 11.0731 12.7705 11.9117 12.1704 12.9979C11.5714 14.0819 11.2023 15.3644 11.0272 16.5221Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 10.4169C13.1288 10.1972 13.485 10.1972 13.7046 10.4169L15.116 11.8282C15.3357 12.0479 15.3357 12.4041 15.116 12.6237C14.8963 12.8434 14.5402 12.8434 14.3205 12.6237L12.9091 11.2124C12.6895 10.9927 12.6895 10.6365 12.9091 10.4169Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9091 6.88843C13.1288 6.66876 13.485 6.66876 13.7046 6.88843L15.116 8.29981C15.3357 8.51948 15.3357 8.87563 15.116 9.0953C14.8963 9.31497 14.5402 9.31497 14.3205 9.0953L12.9091 7.68393C12.6895 7.46426 12.6895 7.1081 12.9091 6.88843Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 9.71125C15.246 9.49158 15.6021 9.49158 15.8218 9.71125L17.2332 11.1226C17.4529 11.3423 17.4529 11.6984 17.2332 11.9181C17.0135 12.1378 16.6574 12.1378 16.4377 11.9181L15.0263 10.5067C14.8067 10.2871 14.8067 9.93092 15.0263 9.71125Z",fill:"#66605C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0263 6.1828C15.246 5.96313 15.6021 5.96313 15.8218 6.1828L17.2332 7.59418C17.4529 7.81385 17.4529 8.17001 17.2332 8.38968C17.0135 8.60935 16.6574 8.60935 16.4377 8.38968L15.0263 6.9783C14.8067 6.75863 14.8067 6.40247 15.0263 6.1828Z",fill:"#66605C"})]}),soybeans:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M10.3483 19.1367C12.2057 23.205 22.1876 7.9475 15.9562 4.39663C15.6718 4.23453 15.3142 4.32144 15.1027 4.56985L14.1997 5.62999C13.6281 6.30101 13.377 7.18633 13.5112 8.05727L13.6673 9.07055C13.7601 9.67274 13.4801 10.2706 12.9576 10.586L12.8626 10.6433C12.2798 10.9951 12.0421 11.7178 12.3026 12.3462C12.5216 12.8747 12.3854 13.4758 11.9764 13.8757C10.7543 15.0708 9.30388 16.8493 10.3483 19.1367Z",fill:"#82A632"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0286 13.4416C10.4289 13.4518 10.8648 13.5888 11.1756 14.0028C11.5106 14.449 11.2943 14.9335 11.0905 15.2204C10.8771 15.5206 10.5686 15.7765 10.348 15.9262C10.0139 16.186 9.47351 16.5166 8.92462 16.6476C8.6451 16.7143 8.33272 16.7367 8.0358 16.642C7.72521 16.543 7.46781 16.3272 7.29915 15.9892C7.13461 15.6596 7.10586 15.3337 7.19484 15.0315C7.28082 14.7396 7.46643 14.5039 7.67116 14.3208C8.06998 13.9641 8.61727 13.7386 8.99861 13.6331C9.27201 13.5352 9.64617 13.4319 10.0286 13.4416ZM10.0113 14.1908C9.75933 14.1844 9.4816 14.2561 9.24129 14.343L9.22687 14.3482L9.21207 14.3522C8.89171 14.4392 8.45769 14.6246 8.1726 14.8796C8.03276 15.0047 7.94913 15.1283 7.91489 15.2445C7.88366 15.3506 7.88371 15.4819 7.97069 15.6561C8.05355 15.8221 8.15577 15.8941 8.26252 15.9281C8.38294 15.9665 8.54564 15.9671 8.74856 15.9186C9.15863 15.8208 9.60684 15.5532 9.89465 15.3277L9.90553 15.3192L9.917 15.3115C10.094 15.1928 10.3312 14.9923 10.4781 14.7856C10.6383 14.5602 10.5973 14.4806 10.5754 14.4515C10.4402 14.2713 10.2521 14.197 10.0113 14.1908Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5528 9.99479C12.9596 9.90327 13.4202 9.95528 13.8473 10.3027C14.2748 10.6506 14.2716 11.1628 14.181 11.5371C14.0905 11.9113 13.8918 12.2641 13.7344 12.4833C13.5116 12.8462 13.114 13.3427 12.6255 13.6253C12.3736 13.771 12.0723 13.8743 11.7459 13.8446C11.4106 13.814 11.1005 13.6479 10.8328 13.3495C10.5695 13.056 10.4304 12.739 10.4032 12.4143C10.3764 12.0942 10.461 11.7984 10.5908 11.5453C10.8413 11.057 11.2862 10.674 11.6179 10.4624C11.8459 10.288 12.1727 10.0803 12.5528 9.99479ZM12.7198 10.7248C12.4885 10.7768 12.2589 10.9154 12.0652 11.065L12.0509 11.0761L12.0355 11.0857C11.7692 11.2531 11.4324 11.5513 11.2604 11.8867C11.177 12.0492 11.1398 12.2056 11.1522 12.3537C11.1642 12.4974 11.2253 12.6648 11.3929 12.8516C11.5561 13.0335 11.6987 13.0889 11.8129 13.0993C11.9358 13.1105 12.0807 13.0742 12.2469 12.9781C12.5884 12.7804 12.9101 12.393 13.0991 12.0818L13.1072 12.0686L13.1163 12.056C13.2376 11.8894 13.3878 11.6188 13.4503 11.3605C13.5145 11.0951 13.4657 10.9578 13.3724 10.8819C13.1484 10.6996 12.9324 10.677 12.7198 10.7248Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4025 6.40827C13.6614 6.11485 14.0405 5.89632 14.5548 5.92588C15.0814 5.95615 15.3542 6.36434 15.4819 6.69736C15.6104 7.03212 15.6455 7.40873 15.642 7.66079C15.6643 8.05715 15.6251 8.64996 15.4059 9.13158C15.2929 9.37978 15.1196 9.62547 14.8548 9.78425C14.5815 9.94817 14.2537 9.99358 13.8888 9.91279C13.5308 9.83351 13.2532 9.66599 13.0579 9.42897C12.866 9.19607 12.7741 8.92139 12.7391 8.6576C12.6718 8.14929 12.806 7.61596 12.9442 7.27477C13.0241 7.0186 13.1609 6.68211 13.4025 6.40827ZM13.9658 6.90224C13.8224 7.0647 13.7237 7.29152 13.6571 7.50878L13.6519 7.52564L13.6452 7.54194C13.5338 7.81183 13.4384 8.21637 13.4836 8.55749C13.5055 8.72254 13.5577 8.8544 13.6386 8.95245C13.716 9.04639 13.8398 9.13426 14.0534 9.18155C14.2601 9.22731 14.3855 9.19271 14.4691 9.14258C14.5613 9.08729 14.6487 8.98487 14.7222 8.82342C14.8732 8.49188 14.9119 8.02825 14.8915 7.69317L14.8905 7.67793L14.8909 7.66267C14.8948 7.47265 14.8664 7.19059 14.7805 6.96667C14.6912 6.7341 14.5924 6.67842 14.5096 6.67366C14.2622 6.65944 14.0971 6.75339 13.9658 6.90224Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3503 4.18397C14.7502 3.91821 15.3215 3.92157 15.6938 4.30197C17.083 5.72172 17.1339 7.59721 16.5077 9.44041C15.8828 11.2794 14.5666 13.1586 13.0899 14.7167C11.6142 16.2737 9.94207 17.5481 8.57098 18.1525C7.89462 18.4506 7.23191 18.6127 6.68496 18.5028C6.40066 18.4457 6.14346 18.3138 5.94537 18.0898C5.74964 17.8684 5.63423 17.5827 5.58512 17.2538C5.38184 15.8927 5.8016 14.8386 6.47426 14.0268C7.13545 13.2289 8.03647 12.6695 8.7994 12.257C9.17448 12.0541 9.3875 11.6568 9.3411 11.2473C9.24379 10.3884 9.78721 9.58819 10.6217 9.36153L10.7317 9.33163C11.1752 9.21119 11.502 8.83615 11.5603 8.38081L11.6903 7.36598C11.8162 6.38407 12.3618 5.50569 13.1863 4.95763L14.3503 4.18397ZM15.1576 4.82515C15.0728 4.73856 14.9104 4.71298 14.7672 4.80819L13.6032 5.58185C12.9592 6.00989 12.533 6.69591 12.4348 7.46279L12.3048 8.47762C12.208 9.23295 11.6658 9.85507 10.9303 10.0549L10.8202 10.0848C10.3423 10.2146 10.0311 10.6728 10.0868 11.1647C10.1692 11.8916 9.78873 12.5751 9.15794 12.9162C8.41509 13.3179 7.61929 13.822 7.05292 14.5055C6.49801 15.1751 6.15946 16.0203 6.32742 17.145C6.36082 17.3686 6.43072 17.5076 6.50749 17.5945C6.58189 17.6786 6.68437 17.7385 6.83131 17.768C7.14685 17.8314 7.63289 17.7461 8.2666 17.4667C9.51563 16.9162 11.1088 15.7154 12.5442 14.2008C13.9786 12.6874 15.219 10.8989 15.7969 9.19811C16.3733 7.50153 16.2731 5.96517 15.1576 4.82515Z",fill:"#243304"})]}),sugar_beets:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7ECEB"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.2234 3.98228C16.373 3.9218 15.1056 4.09804 14.0303 4.84758C13.5079 5.21168 13.0479 5.69956 12.7067 6.33053C12.4815 6.7469 11.8582 6.88877 11.4698 6.61808V6.61808C10.3945 5.86854 9.12706 5.6923 8.27667 5.75279V5.75279C7.92914 5.7775 7.65984 6.06665 7.65984 6.41505V6.41505C7.65984 8.50407 8.49017 9.84318 9.60395 10.6195C10.6793 11.3691 11.9467 11.5453 12.7971 11.4848V11.4848C13.1446 11.4601 13.4139 11.171 13.4139 10.8226V10.8226V10.8226C13.4139 10.2275 13.8491 9.69119 14.4226 9.53258C14.9165 9.396 15.4248 9.17759 15.8962 8.84902C17.0099 8.07268 17.8403 6.73356 17.8403 4.64454V4.64454C17.8403 4.29614 17.571 4.007 17.2234 3.98228V3.98228Z",fill:"#9DC04D"}),ih("path",{d:"M10.071 15.375C9.471 12.375 12.821 11.375 14.571 11.25C17.946 11.25 17.946 14.25 17.196 16.5C16.8598 17.5086 15.9585 18.6428 15.033 19.5991C13.9808 20.6863 12.2683 20.5516 11.5237 19.2345C10.9393 18.2009 10.3725 16.8827 10.071 15.375Z",fill:"#CC8FB7"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8375 7.67484C12.966 6.27565 13.5719 5.46021 14.2592 4.98114C14.8642 4.55939 15.5708 4.37272 16.1625 4.32517C16.034 5.72437 15.4281 6.5398 14.7408 7.01887C14.1358 7.44062 13.4292 7.62729 12.8375 7.67484ZM15.3842 7.94179C16.484 7.17513 17.3125 5.84946 17.3125 3.75952L17.3125 3.23561L16.7899 3.19844C15.9444 3.1383 14.6831 3.31429 13.6158 4.05822C12.516 4.82488 11.6875 6.15056 11.6875 8.24049L11.6875 8.7644L12.2101 8.80157C13.0556 8.86171 14.3169 8.68572 15.3842 7.94179Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6625 9.17484C11.534 7.77565 10.9281 6.96021 10.2408 6.48114C9.63579 6.05939 8.92917 5.87272 8.33755 5.82517C8.46604 7.22437 9.07187 8.0398 9.75916 8.51887C10.3642 8.94062 11.0708 9.12729 11.6625 9.17484ZM9.11584 9.44179C8.01598 8.67513 7.1875 7.34946 7.1875 5.25952L7.1875 4.73561L7.71009 4.69844C8.55557 4.6383 9.81687 4.81429 10.8842 5.55823C11.984 6.32488 12.8125 7.65056 12.8125 9.74049L12.8125 10.2644L12.2899 10.3016C11.4444 10.3617 10.1831 10.1857 9.11584 9.44179Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0509 9.9375H13.071C13.997 9.9375 14.7488 10.1437 15.3279 10.5395C15.9108 10.938 16.2708 11.496 16.4664 12.1107C16.8476 13.3087 16.6196 14.7581 16.2297 15.9279C15.8901 16.9467 15.0703 18.0197 14.2439 18.9157C13.4049 19.8254 12.5003 20.6148 11.9164 21.069L11.5244 21.3739L11.1733 21.0228C10.3573 20.2068 8.64443 17.8604 8.01942 14.7353C7.84702 13.8734 7.95422 13.1203 8.2711 12.4822C8.58411 11.8519 9.08208 11.3725 9.63224 11.0134C10.7203 10.303 12.0985 10.0055 13.0309 9.93893L13.0509 9.9375ZM13.091 11.0625C12.2744 11.1238 11.1146 11.3891 10.2472 11.9554C9.81616 12.2368 9.47975 12.5777 9.2787 12.9826C9.08152 13.3797 8.99496 13.8766 9.12257 14.5147C9.61653 16.9845 10.8575 18.922 11.6312 19.8526C12.1465 19.4206 12.8015 18.8203 13.4169 18.153C14.2218 17.2803 14.902 16.3533 15.1624 15.5721C15.5225 14.4919 15.6694 13.3163 15.3944 12.4518C15.2618 12.0352 15.0358 11.7026 14.693 11.4683C14.3493 11.2334 13.8414 11.0655 13.091 11.0625Z",fill:"#390A07"})," "]}),sugarcane:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3666 7.30129C13.538 8.03018 13.0915 9.13027 12.9277 10.3872C12.8876 10.6952 12.6053 10.9124 12.2973 10.8723C11.9892 10.8322 11.772 10.5499 11.8122 10.2418C11.9962 8.82935 12.5171 7.42984 13.6236 6.45657C14.7432 5.4717 16.3704 5.00335 18.5924 5.27741C18.9007 5.31544 19.1198 5.59621 19.0818 5.90454C19.0438 6.21286 18.763 6.43198 18.4547 6.39395C16.4577 6.14764 15.182 6.58401 14.3666 7.30129Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0951 6.71842C10.7431 7.5303 11.1145 8.79651 11.2505 10.2832C11.2802 10.6079 11.5426 10.8851 11.8366 10.9024C12.1305 10.9197 12.3448 10.6706 12.3151 10.3459C12.1707 8.76782 11.7623 7.16426 10.8506 6.02191C9.89159 4.82045 8.49467 4.26843 6.66112 4.59055C6.37945 4.64003 6.22344 4.94066 6.31266 5.26202C6.40188 5.58338 6.70255 5.80377 6.98422 5.75429C8.55134 5.47897 9.4943 5.96565 10.0951 6.71842Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.28715 8.55462C7.74143 9.21009 7.96654 10.0337 7.98821 10.8603C7.99702 11.1965 8.23327 11.4756 8.51588 11.4837C8.7985 11.4918 9.02045 11.2258 9.01164 10.8897C8.98394 9.83331 8.69494 8.72397 8.06263 7.81161C7.42421 6.89044 6.46801 6.21707 5.18169 5.98485C4.90026 5.93404 4.65004 6.16231 4.62282 6.49471C4.59561 6.82711 4.80169 7.13777 5.08313 7.18858C6.13612 7.37868 6.83899 7.90797 7.28715 8.55462Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.727 7.59118C12.8553 7.30823 13.1886 7.18284 13.4716 7.3111L15.2895 8.1352C15.5724 8.26346 15.6978 8.59681 15.5696 8.87976C15.4413 9.1627 15.1079 9.2881 14.825 9.15983L13.0071 8.33574C12.7241 8.20747 12.5987 7.87412 12.727 7.59118Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4985 7.18571C11.3299 6.88621 11.0069 6.76376 10.777 6.91222L9.31162 7.85835C9.08169 8.00681 9.03194 8.36995 9.2005 8.66946C9.36905 8.96896 9.69209 9.09141 9.92201 8.94295L11.3873 7.99682C11.6173 7.84836 11.667 7.48522 11.4985 7.18571Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4603 6.18532C14.5885 5.90238 14.9219 5.77699 15.2048 5.90525L17.0228 6.72934C17.3057 6.85761 17.4311 7.19096 17.3028 7.47391C17.1746 7.75685 16.8412 7.88224 16.5583 7.75398L14.7404 6.92989C14.4574 6.80162 14.332 6.46827 14.4603 6.18532Z",fill:"#49650C"}),ih("path",{d:"M12.625 21.75C12.0037 21.75 11.5 21.2463 11.5 20.625L11.5 13.125C11.5 12.5037 12.0037 12 12.625 12V12C13.2463 12 13.75 12.5037 13.75 13.125L13.75 20.625C13.75 21.2463 13.2463 21.75 12.625 21.75V21.75Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6939 16.8656C10.4444 16.117 11.0015 15.344 11.7906 15.344H12.7094C13.4985 15.344 14.0556 16.117 13.8061 16.8656L13.6737 17.2629C13.662 17.298 13.656 17.3347 13.656 17.3717V20.1283C13.656 20.1653 13.662 20.202 13.6737 20.2371L13.8061 20.6344C14.0556 21.383 13.4985 22.156 12.7094 22.156H11.7906C11.0015 22.156 10.4444 21.383 10.6939 20.6344L10.8263 20.2371C10.838 20.202 10.844 20.1653 10.844 20.1283V17.3717C10.844 17.3347 10.838 17.298 10.8263 17.2629L10.6939 16.8656ZM11.7906 16.156C11.5558 16.156 11.39 16.386 11.4642 16.6088L11.5967 17.0062C11.636 17.124 11.656 17.2475 11.656 17.3717V20.1283C11.656 20.2525 11.636 20.376 11.5967 20.4939L11.4642 20.8912C11.39 21.114 11.5558 21.344 11.7906 21.344H12.7094C12.9442 21.344 13.11 21.114 13.0358 20.8912L12.9033 20.4939C12.864 20.376 12.844 20.2525 12.844 20.1283V17.3717C12.844 17.2475 12.864 17.124 12.9033 17.0062L13.0358 16.6088C13.11 16.386 12.9442 16.156 12.7094 16.156H11.7906Z",fill:"#243304"}),ih("path",{d:"M16.375 20.25C15.7537 20.25 15.25 19.7463 15.25 19.125L15.25 13.125C15.25 12.5037 15.7537 12 16.375 12V12C16.9963 12 17.5 12.5037 17.5 13.125L17.5 19.125C17.5 19.7463 16.9963 20.25 16.375 20.25V20.25Z",fill:"#DCBF76"}),ih("path",{d:"M8.875 20.25C8.25368 20.25 7.75 19.7463 7.75 19.125L7.75 13.125C7.75 12.5037 8.25368 12 8.875 12V12C9.49632 12 10 12.5037 10 13.125L10 19.125C10 19.7463 9.49632 20.25 8.875 20.25V20.25Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5765 16.7563C14.2354 16.1166 14.6989 15.344 15.4239 15.344H16.5761C17.3011 15.344 17.7646 16.1166 17.4235 16.7563C17.412 16.7778 17.406 16.8017 17.406 16.8261V18.4239C17.406 18.4483 17.412 18.4722 17.4235 18.4937C17.7646 19.1334 17.3011 19.906 16.5761 19.906H15.4239C14.6989 19.906 14.2354 19.1334 14.5765 18.4937C14.588 18.4722 14.594 18.4483 14.594 18.4239V16.8261C14.594 16.8017 14.588 16.7778 14.5765 16.7563ZM15.293 18.8759C15.2403 18.9747 15.3119 19.094 15.4239 19.094H16.5761C16.6881 19.094 16.7597 18.9747 16.707 18.8759C16.6328 18.7368 16.594 18.5816 16.594 18.4239V16.8261C16.594 16.6685 16.6328 16.5132 16.707 16.3742C16.7597 16.2754 16.6881 16.156 16.5761 16.156H15.4239C15.3119 16.156 15.2403 16.2754 15.293 16.3742C15.3672 16.5132 15.406 16.6685 15.406 16.8261V18.4239C15.406 18.5816 15.3672 18.7368 15.293 18.8759Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.07654 16.7563C6.73536 16.1166 7.19892 15.344 7.92391 15.344H9.07609C9.80108 15.344 10.2646 16.1166 9.92347 16.7563C9.91201 16.7778 9.90601 16.8017 9.90601 16.8261V18.4239C9.90601 18.4483 9.91201 18.4722 9.92347 18.4937C10.2646 19.1334 9.80108 19.906 9.07609 19.906H7.92391C7.19892 19.906 6.73536 19.1334 7.07654 18.4937C7.08799 18.4722 7.09399 18.4483 7.09399 18.4239V16.8261C7.09399 16.8017 7.08799 16.7778 7.07654 16.7563ZM7.79303 18.8759C7.74033 18.9747 7.81193 19.094 7.92391 19.094H9.07609C9.18807 19.094 9.25967 18.9747 9.20697 18.8759C9.13279 18.7368 9.09399 18.5816 9.09399 18.4239V16.8261C9.09399 16.6685 9.13279 16.5132 9.20697 16.3742C9.25967 16.2754 9.18807 16.156 9.07609 16.156H7.92391C7.81193 16.156 7.74033 16.2754 7.79303 16.3742C7.86721 16.5132 7.90601 16.6685 7.90601 16.8261V18.4239C7.90601 18.5816 7.86721 18.7368 7.79303 18.8759Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.758 11.6615C10.4698 10.9049 11.0286 10.094 11.8383 10.094H12.6617C13.4714 10.094 14.0302 10.9049 13.742 11.6615L13.6785 11.8281C13.6636 11.8672 13.656 11.9087 13.656 11.9505V14.2995C13.656 14.3413 13.6636 14.3828 13.6785 14.4219L13.742 14.5885C14.0302 15.3451 13.4714 16.156 12.6617 16.156H11.8383C11.0286 16.156 10.4698 15.3451 10.758 14.5885L10.8214 14.4219C10.8363 14.3828 10.844 14.3413 10.844 14.2995V11.9505C10.844 11.9087 10.8363 11.8672 10.8214 11.8281L10.758 11.6615ZM11.8383 10.906C11.5974 10.906 11.4311 11.1473 11.5168 11.3725L11.5803 11.539C11.6303 11.6704 11.656 11.8099 11.656 11.9505V14.2995C11.656 14.4401 11.6303 14.5796 11.5803 14.711L11.5168 14.8775C11.4311 15.1027 11.5974 15.344 11.8383 15.344H12.6617C12.9026 15.344 13.0689 15.1027 12.9832 14.8775L12.9197 14.711C12.8696 14.5796 12.844 14.4401 12.844 14.2995V11.9505C12.844 11.8099 12.8696 11.6704 12.9197 11.539L12.9832 11.3725C13.0689 11.1473 12.9026 10.906 12.6617 10.906H11.8383Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5684 12.4036C14.2424 11.6701 14.7793 10.844 15.5819 10.844H16.4181C17.2207 10.844 17.7576 11.6701 17.4316 12.4036C17.4147 12.4415 17.406 12.4826 17.406 12.5242V14.4758C17.406 14.5174 17.4147 14.5585 17.4316 14.5965C17.7576 15.3299 17.2207 16.156 16.4181 16.156H15.5819C14.7793 16.156 14.2424 15.3299 14.5684 14.5965C14.5853 14.5585 14.594 14.5174 14.594 14.4758V12.5242C14.594 12.4826 14.5853 12.4415 14.5684 12.4036ZM15.3104 14.9263C15.2231 15.1227 15.3669 15.344 15.5819 15.344H16.4181C16.6331 15.344 16.7769 15.1227 16.6896 14.9263C16.6265 14.7844 16.594 14.631 16.594 14.4758V12.5242C16.594 12.369 16.6265 12.2156 16.6896 12.0738C16.7769 11.8773 16.6331 11.656 16.4181 11.656H15.5819C15.3669 11.656 15.2231 11.8773 15.3104 12.0738C15.3734 12.2156 15.406 12.369 15.406 12.5242V14.4758C15.406 14.631 15.3734 14.7844 15.3104 14.9263Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.06838 12.4036C6.7424 11.6701 7.27928 10.844 8.08189 10.844H8.9181C9.72071 10.844 10.2576 11.6701 9.93161 12.4036C9.91473 12.4415 9.90601 12.4826 9.90601 12.5242V14.4758C9.90601 14.5174 9.91473 14.5585 9.93161 14.5965C10.2576 15.3299 9.72071 16.156 8.9181 16.156H8.08189C7.27928 16.156 6.7424 15.3299 7.06838 14.5965C7.08526 14.5585 7.09398 14.5174 7.09398 14.4758V12.5242C7.09398 12.4826 7.08526 12.4415 7.06838 12.4036ZM7.81042 14.9263C7.7231 15.1227 7.86691 15.344 8.08189 15.344H8.9181C9.13308 15.344 9.27689 15.1227 9.18957 14.9263C9.12655 14.7844 9.09398 14.631 9.09398 14.4758V12.5242C9.09398 12.369 9.12655 12.2156 9.18957 12.0738C9.27689 11.8773 9.13308 11.656 8.9181 11.656H8.08189C7.86691 11.656 7.7231 11.8773 7.81042 12.0738C7.87344 12.2156 7.90601 12.369 7.90601 12.5242V14.4758C7.90601 14.631 7.87344 14.7844 7.81042 14.9263Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1012 5.57167C9.93263 5.27216 9.6096 5.14971 9.37967 5.29817L7.91434 6.24431C7.68441 6.39276 7.63466 6.75591 7.80322 7.05541C7.97178 7.35492 8.29481 7.47737 8.52473 7.32891L9.99007 6.38277C10.22 6.23432 10.2697 5.87117 10.1012 5.57167Z",fill:"#49650C"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.07148 8.09333C8.01669 7.75404 7.7558 7.5276 7.48876 7.58754L5.78686 7.96957C5.51982 8.02951 5.34775 8.35315 5.40253 8.69243C5.45732 9.03172 5.71821 9.25816 5.98525 9.19822L7.68715 8.81619C7.95419 8.75625 8.12626 8.43261 8.07148 8.09333Z",fill:"#49650C"})]}),sunflowers:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F3EFE3"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0577 18.1383C11.5224 16.5089 10.575 15.7238 9.61761 15.3777C8.73239 15.0576 7.79998 15.0996 7.10677 15.2649C7.64199 16.8943 8.58939 17.6794 9.54682 18.0256C10.432 18.3456 11.3644 18.3036 12.0577 18.1383ZM9.27071 18.7892C7.9728 18.3199 6.77894 17.2207 6.20912 15.0941L6.11125 14.7288L6.46866 14.6053C7.30336 14.3167 8.62276 14.1545 9.89371 14.614C11.1916 15.0833 12.3855 16.1826 12.9553 18.3092L13.0532 18.6744L12.6958 18.798C11.8611 19.0865 10.5417 19.2487 9.27071 18.7892Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.791 18.1383C13.3262 16.5089 14.2736 15.7238 15.231 15.3777C16.1162 15.0576 17.0487 15.0996 17.7419 15.2649C17.2066 16.8943 16.2592 17.6794 15.3018 18.0256C14.4166 18.3456 13.4842 18.3036 12.791 18.1383ZM15.5779 18.7892C16.8758 18.3199 18.0697 17.2207 18.6395 15.0941L18.7374 14.7288L18.38 14.6053C17.5453 14.3167 16.2259 14.1545 14.9549 14.614C13.657 15.0833 12.4631 16.1826 11.8933 18.3092L11.7955 18.6744L12.1529 18.798C12.9876 19.0865 14.307 19.2487 15.5779 18.7892Z",fill:"#243304"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.2828 14.1241C12.507 14.1241 12.6888 14.3058 12.6888 14.5301L12.6888 20.2143C12.6888 20.4385 12.507 20.6203 12.2828 20.6203C12.0585 20.6203 11.8768 20.4385 11.8768 20.2143L11.8768 14.5301C11.8768 14.3058 12.0585 14.1241 12.2828 14.1241Z",fill:"#243304"}),ih("path",{d:"M17.5 9.75C17.5 12.2353 15.4853 14.25 13 14.25C10.5147 14.25 8.5 12.2353 8.5 9.75C8.5 7.26472 10.5147 5.25 13 5.25C15.4853 5.25 17.5 7.26472 17.5 9.75Z",fill:"#DCBF76"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8325 4.98052C11.2171 4.59585 11.7388 4.37975 12.2828 4.37975C12.8268 4.37975 13.3486 4.59585 13.7332 4.98052L13.6335 5.08026L13.7332 4.98052C13.7481 4.99536 13.7627 5.01041 13.777 5.02566C13.9867 4.95474 14.2085 4.91758 14.434 4.91758C14.978 4.91758 15.4998 5.13369 15.8844 5.51835L15.5973 5.80545L15.8844 5.51835C16.2691 5.90302 16.4852 6.42474 16.4852 6.96874C16.4852 7.24817 16.4282 7.52171 16.3206 7.77382C16.5571 7.8756 16.7746 8.02195 16.9602 8.20754C17.3448 8.5922 17.5609 9.11392 17.5609 9.65793C17.5609 10.2019 17.3448 10.7236 16.9602 11.1083C16.7746 11.2939 16.5571 11.4403 16.3206 11.542C16.4282 11.7941 16.4852 12.0677 16.4852 12.3471C16.4852 12.8911 16.2691 13.4128 15.8844 13.7975C15.4998 14.1822 14.978 14.3983 14.434 14.3983C14.2085 14.3983 13.9867 14.3611 13.777 14.2902C13.7627 14.3054 13.7481 14.3205 13.7332 14.3353C13.3486 14.72 12.8268 14.9361 12.2828 14.9361C11.7388 14.9361 11.2171 14.72 10.8325 14.3353C10.8176 14.3205 10.803 14.3054 10.7886 14.2901C10.5788 14.3611 10.357 14.3983 10.1313 14.3983C9.58735 14.3983 9.06563 14.1822 8.68096 13.7975C8.29629 13.4128 8.08019 12.8911 8.08019 12.3471C8.08019 12.0677 8.13721 11.7941 8.24482 11.542C8.00836 11.4402 7.79092 11.2939 7.60536 11.1083C7.2207 10.7236 7.00459 10.2019 7.00459 9.65793C7.00459 9.11392 7.2207 8.5922 7.60536 8.20754L7.89246 8.49463L7.60536 8.20754C7.79092 8.02198 8.00836 7.87565 8.24482 7.77388C8.13721 7.52175 8.08019 7.24819 8.08019 6.96874C8.08019 6.42474 8.29629 5.90302 8.68096 5.51835C9.06563 5.13369 9.58735 4.91758 10.1313 4.91758C10.357 4.91758 10.5788 4.95477 10.7886 5.02573C10.803 5.01046 10.8176 4.99539 10.8325 4.98052ZM12.2828 5.19177C11.9542 5.19177 11.639 5.32232 11.4066 5.55471L11.1195 5.26761M12.2828 5.19177C12.6115 5.19177 12.9267 5.32232 13.159 5.55471ZM10.1313 5.72961C9.80271 5.72961 9.48753 5.86016 9.25515 6.09254C9.02277 6.32492 8.89222 6.6401 8.89222 6.96874C8.89222 7.26026 8.99494 7.5412 9.18035 7.76313C9.27607 7.87771 9.30118 8.03559 9.24573 8.17422C9.19029 8.31284 9.06323 8.40985 8.91489 8.42682C8.6381 8.45848 8.37848 8.5828 8.17955 8.78173C7.94717 9.01411 7.81662 9.32929 7.81662 9.65793C7.81662 9.98656 7.94717 10.3017 8.17955 10.5341C8.37848 10.7331 8.6381 10.8574 8.91489 10.889C9.06323 10.906 9.19029 11.003 9.24573 11.1416C9.30118 11.2803 9.27607 11.4381 9.18035 11.5527C8.99494 11.7747 8.89222 12.0556 8.89222 12.3471C8.89222 12.6757 9.02277 12.9909 9.25515 13.2233C9.48753 13.4557 9.80271 13.5862 10.1313 13.5862C10.3386 13.5862 10.5404 13.5343 10.7196 13.4377C10.9043 13.3381 11.1345 13.3956 11.2506 13.5704C11.2958 13.6385 11.348 13.7025 11.4066 13.7611C11.639 13.9935 11.9542 14.1241 12.2828 14.1241C12.6115 14.1241 12.9267 13.9935 13.159 13.7611C13.2177 13.7025 13.2698 13.6386 13.315 13.5705C13.4311 13.3958 13.6612 13.3382 13.8459 13.4378C14.0251 13.5344 14.2269 13.5862 14.434 13.5862C14.7627 13.5862 15.0778 13.4557 15.3102 13.2233C15.5426 12.9909 15.6732 12.6757 15.6732 12.3471C15.6732 12.0556 15.5704 11.7747 15.385 11.5527C15.2893 11.4381 15.2642 11.2803 15.3197 11.1416C15.3751 11.003 15.5022 10.906 15.6505 10.889C15.9274 10.8574 16.187 10.7331 16.386 10.5341C16.6184 10.3017 16.7489 9.98656 16.7489 9.65793C16.7489 9.32929 16.6184 9.01411 16.386 8.78173C16.187 8.58277 15.9274 8.45845 15.6505 8.42681C15.5022 8.40985 15.3751 8.31284 15.3197 8.17422C15.2642 8.03559 15.2893 7.87771 15.385 7.76312C15.5704 7.54119 15.6732 7.26025 15.6732 6.96874C15.6732 6.6401 15.5426 6.32492 15.3102 6.09254C15.0778 5.86016 14.7627 5.72961 14.434 5.72961C14.2269 5.72961 14.0251 5.78148 13.8459 5.87806C13.6612 5.97763 13.4311 5.92009 13.315 5.74531C13.2698 5.67726 13.2177 5.61336 13.159 5.55471M10.1313 5.72961C10.3386 5.72961 10.5404 5.78151 10.7196 5.87815ZM11.4066 5.55471C11.348 5.61338 11.2958 5.67732 11.2506 5.7454C11.1345 5.92022 10.9043 5.97777 10.7196 5.87815",fill:"#322605"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0824 7.58243C10.6154 7.04943 11.3383 6.75 12.0921 6.75C12.8459 6.75 13.5688 7.04943 14.1018 7.58243C14.6347 8.11542 14.9342 8.83832 14.9342 9.59209C14.9342 10.3459 14.6347 11.0688 14.1018 11.6018C13.5688 12.1347 12.8459 12.4342 12.0921 12.4342C11.3383 12.4342 10.6154 12.1347 10.0824 11.6018C9.54943 11.0688 9.25 10.3459 9.25 9.59209C9.25 8.83832 9.54943 8.11542 10.0824 7.58243ZM12.0921 7.56203C11.5537 7.56203 11.0373 7.77591 10.6566 8.15662C10.2759 8.53733 10.062 9.05368 10.062 9.59209C10.062 10.1305 10.2759 10.6469 10.6566 11.0276C11.0373 11.4083 11.5537 11.6222 12.0921 11.6222C12.6305 11.6222 13.1469 11.4083 13.5276 11.0276C13.9083 10.6469 14.1222 10.1305 14.1222 9.59209C14.1222 9.05368 13.9083 8.53733 13.5276 8.15662C13.1469 7.77591 12.6305 7.56203 12.0921 7.56203Z",fill:"#322605"})]}),triticale:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7ECEB"}),ih("path",{d:"M11.6704 17.7528C9.48613 17.1056 8.24005 14.8102 8.88726 12.6259L9.95259 9.0304C10.5998 6.84609 12.8952 5.60002 15.0795 6.24722C17.2638 6.89442 18.5099 9.18982 17.8627 11.3741L16.7973 14.9696C16.1501 17.1539 13.8547 18.4 11.6704 17.7528Z",fill:"#D28783"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.25 2.4375C12.5607 2.4375 12.8125 2.68934 12.8125 3L12.8125 21C12.8125 21.3107 12.5607 21.5625 12.25 21.5625C11.9393 21.5625 11.6875 21.3107 11.6875 21L11.6875 3C11.6875 2.68934 11.9393 2.4375 12.25 2.4375Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6581 17.4197C11.5312 16.2391 11.011 15.5517 10.4283 15.1456C9.92626 14.7957 9.34262 14.6311 8.84194 14.5803C8.96884 15.7609 9.48904 16.4483 10.0717 16.8544C10.5737 17.2044 11.1574 17.3689 11.6581 17.4197ZM9.42834 17.7773C8.43264 17.0833 7.6875 15.885 7.6875 14.0085L7.6875 13.4845L8.21009 13.4474C8.97223 13.3932 10.1085 13.5514 11.0717 14.2227C12.0674 14.9167 12.8125 16.115 12.8125 17.9915L12.8125 18.5155L12.2899 18.5526C11.5278 18.6068 10.3915 18.4486 9.42834 17.7773Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8419 17.4197C12.9688 16.2391 13.489 15.5517 14.0717 15.1456C14.5737 14.7957 15.1574 14.6311 15.6581 14.5803C15.5312 15.7609 15.011 16.4483 14.4283 16.8544C13.9263 17.2044 13.3426 17.3689 12.8419 17.4197ZM15.0717 17.7773C16.0674 17.0833 16.8125 15.885 16.8125 14.0085L16.8125 13.4845L16.2899 13.4474C15.5278 13.3932 14.3915 13.5514 13.4283 14.2227C12.4326 14.9167 11.6875 16.115 11.6875 17.9915L11.6875 18.5155L12.2101 18.5526C12.9722 18.6068 14.1085 18.4486 15.0717 17.7773Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6581 13.4197C11.5312 12.2391 11.011 11.5517 10.4283 11.1456C9.92626 10.7957 9.34262 10.6311 8.84194 10.5803C8.96884 11.7609 9.48904 12.4483 10.0717 12.8544C10.5737 13.2044 11.1574 13.3689 11.6581 13.4197ZM9.42834 13.7773C8.43264 13.0833 7.6875 11.885 7.6875 10.0085L7.6875 9.48455L8.21009 9.44738C8.97223 9.39317 10.1085 9.55137 11.0717 10.2227C12.0674 10.9167 12.8125 12.115 12.8125 13.9915L12.8125 14.5155L12.2899 14.5526C11.5278 14.6068 10.3915 14.4486 9.42834 13.7773Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8419 13.4197C12.9688 12.2391 13.489 11.5517 14.0717 11.1456C14.5737 10.7957 15.1574 10.6311 15.6581 10.5803C15.5312 11.7609 15.011 12.4483 14.4283 12.8544C13.9263 13.2044 13.3426 13.3689 12.8419 13.4197ZM15.0717 13.7773C16.0674 13.0833 16.8125 11.885 16.8125 10.0085L16.8125 9.48455L16.2899 9.44738C15.5278 9.39317 14.3915 9.55137 13.4283 10.2227C12.4326 10.9167 11.6875 12.115 11.6875 13.9915L11.6875 14.5155L12.2101 14.5526C12.9722 14.6068 14.1085 14.4486 15.0717 13.7773Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6581 9.41967C11.5312 8.23909 11.011 7.55173 10.4283 7.14562C9.92626 6.79565 9.34262 6.63111 8.84194 6.58034C8.96884 7.76092 9.48904 8.44828 10.0717 8.85439C10.5737 9.20436 11.1574 9.3689 11.6581 9.41967ZM9.42834 9.77731C8.43264 9.08326 7.6875 7.88502 7.6875 6.00846L7.6875 5.48455L8.21009 5.44738C8.97223 5.39317 10.1085 5.55137 11.0717 6.2227C12.0674 6.91675 12.8125 8.11499 12.8125 9.99155L12.8125 10.5155L12.2899 10.5526C11.5278 10.6068 10.3915 10.4486 9.42834 9.77731Z",fill:"#390A07"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8419 9.41967C12.9688 8.23909 13.489 7.55173 14.0717 7.14562C14.5737 6.79565 15.1574 6.63111 15.6581 6.58034C15.5312 7.76092 15.011 8.44828 14.4283 8.85439C13.9263 9.20436 13.3426 9.3689 12.8419 9.41967ZM15.0717 9.77731C16.0674 9.08326 16.8125 7.88502 16.8125 6.00846L16.8125 5.48455L16.2899 5.44738C15.5278 5.39317 14.3915 5.55137 13.4283 6.2227C12.4326 6.91675 11.6875 8.11499 11.6875 9.99155L11.6875 10.5155L12.2101 10.5526C12.9722 10.6068 14.1085 10.4486 15.0717 9.77731Z",fill:"#390A07"})]}),wheat_spring:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#F7FAF0"}),ih("path",{d:"M10 14.769C10 16.4355 11.2997 17.8094 12.9752 18L13.7748 18C15.4503 17.8094 16.75 16.4355 16.75 14.769V9.61082V9.60178V8.45905C16.75 7.74233 13.8319 7.5 13.375 7.5C12.8525 7.5 10 7.83483 10 8.45905V14.769Z",fill:"#CEA27A"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 4.55817C12.75 4.28202 12.5261 4.05817 12.25 4.05817C11.9738 4.05817 11.75 4.28202 11.75 4.55817V9.30455L9.02905 6.5836V5.30237C9.02905 5.02623 8.80519 4.80237 8.52905 4.80237C8.25291 4.80237 8.02905 5.02623 8.02905 5.30237V6.79071V10.5117V13.4884C8.02905 15.6504 9.65449 17.4327 11.75 17.68V19.4419C11.75 19.718 11.9738 19.9419 12.25 19.9419C12.5261 19.9419 12.75 19.718 12.75 19.4419V17.68C14.8455 17.4327 16.4709 15.6504 16.4709 13.4884V10.5175V10.5058V6.79657C16.4709 6.79267 16.4709 6.78876 16.4709 6.78485V5.30237C16.4709 5.02623 16.247 4.80237 15.9709 4.80237C15.6947 4.80237 15.4709 5.02623 15.4709 5.30237V6.58364L12.75 9.30455L12.75 4.55817ZM12.75 10.7188V13.0255L15.4709 10.3046V7.99785L12.75 10.7188ZM12.75 14.4397L15.4709 11.7188V13.4884C15.4709 15.0972 14.2914 16.4305 12.75 16.6708V14.4397ZM9.02905 11.7188V13.4884C9.02905 15.0972 10.2086 16.4305 11.75 16.6708V14.4397L9.02905 11.7188ZM11.75 13.0255L9.02905 10.3046V7.99782L11.75 10.7188V13.0255Z",fill:"#543213"})]}),wheat_winter:oh(rh,{children:[ih("rect",{x:"0.25",width:"24",height:"24",rx:"12",fill:"#ECF0F5"}),ih("path",{d:"M13 15.519C13 17.1855 14.2997 18.5594 15.9752 18.75L16.7748 18.75C18.4503 18.5594 19.75 17.1855 19.75 15.519V10.3608V10.3518V9.20905C19.75 8.49233 16.8319 8.25 16.375 8.25C15.8525 8.25 13 8.58483 13 9.20905V15.519Z",fill:"#8BA6CF"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.75 5.30817C15.75 5.03202 15.5261 4.80817 15.25 4.80817C14.9738 4.80817 14.75 5.03202 14.75 5.30817V10.0546L12.029 7.3336V6.05237C12.029 5.77623 11.8052 5.55237 11.5291 5.55237C11.2529 5.55237 11.0291 5.77623 11.0291 6.05237V7.54071V11.2617V14.2384C11.0291 16.4004 12.6545 18.1827 14.75 18.43V20.1919C14.75 20.468 14.9738 20.6919 15.25 20.6919C15.5261 20.6919 15.75 20.468 15.75 20.1919V18.43C17.8455 18.1827 19.4709 16.4004 19.4709 14.2384V11.2675V11.2558V7.54657C19.4709 7.54267 19.4709 7.53876 19.4709 7.53485V6.05237C19.4709 5.77623 19.247 5.55237 18.9709 5.55237C18.6947 5.55237 18.4709 5.77623 18.4709 6.05237V7.33364L15.75 10.0546L15.75 5.30817ZM15.75 11.4688V13.7755L18.4709 11.0546V8.74785L15.75 11.4688ZM15.75 15.1897L18.4709 12.4688V14.2384C18.4709 15.8472 17.2914 17.1805 15.75 17.4208V15.1897ZM12.029 12.4688V14.2384C12.029 15.8472 13.2086 17.1805 14.75 17.4208V15.1897L12.029 12.4688ZM14.75 13.7755L12.029 11.0546V8.74782L14.75 11.4688V13.7755Z",fill:"#0D0937"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.375 4.6875C7.68566 4.6875 7.9375 4.93934 7.9375 5.25V6.50652L8.9606 5.89266C9.22699 5.73283 9.57251 5.81921 9.73234 6.0856C9.89217 6.35199 9.80579 6.69751 9.53941 6.85734L8.4683 7.5L9.53941 8.14266C9.80579 8.30249 9.89217 8.64802 9.73234 8.9144C9.57251 9.18079 9.22699 9.26717 8.9606 9.10734L7.9375 8.49348V9.75C7.9375 10.0607 7.68566 10.3125 7.375 10.3125C7.06434 10.3125 6.8125 10.0607 6.8125 9.75V8.49348L5.7894 9.10734C5.52302 9.26717 5.17749 9.18079 5.01766 8.9144C4.85783 8.64802 4.94421 8.30249 5.2106 8.14266L6.2817 7.5L5.2106 6.85734C4.94421 6.69751 4.85783 6.35199 5.01766 6.0856C5.17749 5.81921 5.52302 5.73283 5.7894 5.89266L6.8125 6.50652V5.25C6.8125 4.93934 7.06434 4.6875 7.375 4.6875Z",fill:"#0D0937"})]})},zB={accreditation:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8001 9.4033C11.9747 9.81603 11.75 10.2472 11.75 10.5C11.75 10.7528 11.9747 11.184 12.8001 11.5967C13.5804 11.9869 14.7108 12.25 16 12.25C17.2892 12.25 18.4196 11.9869 19.1999 11.5967C20.0253 11.184 20.25 10.7528 20.25 10.5C20.25 10.2472 20.0253 9.81603 19.1999 9.4033C18.4196 9.01308 17.2892 8.75 16 8.75C14.7108 8.75 13.5804 9.01308 12.8001 9.4033ZM12.1292 8.0617C13.1586 7.54692 14.5282 7.25 16 7.25C17.4718 7.25 18.8414 7.54692 19.8708 8.0617C20.8552 8.55397 21.75 9.37277 21.75 10.5C21.75 11.6272 20.8552 12.446 19.8708 12.9383C18.8414 13.4531 17.4718 13.75 16 13.75C14.5282 13.75 13.1586 13.4531 12.1292 12.9383C11.7642 12.7558 11.4116 12.5284 11.1123 12.2571C10.2122 12.5725 9.13928 12.75 8 12.75C6.52822 12.75 5.15859 12.4531 4.12918 11.9383C3.14478 11.446 2.25 10.6272 2.25 9.5C2.25 9.08579 2.58579 8.75 3 8.75C3.41421 8.75 3.75 9.08579 3.75 9.5C3.75 9.75277 3.97472 10.184 4.80007 10.5967C5.58041 10.9869 6.71078 11.25 8 11.25C8.85115 11.25 9.63639 11.1354 10.2977 10.9433C10.2666 10.8013 10.25 10.6535 10.25 10.5C10.25 9.37277 11.1448 8.55397 12.1292 8.0617ZM3 12.25C3.41421 12.25 3.75 12.5858 3.75 13C3.75 13.2528 3.97472 13.684 4.80007 14.0967C5.58041 14.4869 6.71078 14.75 8 14.75C8.83128 14.75 9.59924 14.6407 10.2512 14.4565C10.2738 14.0625 10.6004 13.75 11 13.75C11.4142 13.75 11.75 14.0858 11.75 14.5C11.75 14.7528 11.9747 15.184 12.8001 15.5967C13.5804 15.9869 14.7108 16.25 16 16.25C17.2892 16.25 18.4196 15.9869 19.1999 15.5967C20.0253 15.184 20.25 14.7528 20.25 14.5C20.25 14.0858 20.5858 13.75 21 13.75C21.4142 13.75 21.75 14.0858 21.75 14.5C21.75 15.6272 20.8552 16.446 19.8708 16.9383C18.8414 17.4531 17.4718 17.75 16 17.75C14.5282 17.75 13.1586 17.4531 12.1292 16.9383C11.6036 16.6755 11.1035 16.3195 10.7516 15.8733C9.931 16.1157 8.99103 16.25 8 16.25C6.52822 16.25 5.15859 15.9531 4.12918 15.4383C3.14478 14.946 2.25 14.1272 2.25 13C2.25 12.5858 2.58579 12.25 3 12.25Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.75C3.41421 4.75 3.75 5.08579 3.75 5.5V16.5C3.75 16.7528 3.97472 17.184 4.80007 17.5967C5.58041 17.9869 6.71078 18.25 8 18.25C8.83075 18.25 9.59826 18.1408 10.25 17.9568V10.5C10.25 10.0858 10.5858 9.75 11 9.75C11.4142 9.75 11.75 10.0858 11.75 10.5V18.5C11.75 18.7528 11.9747 19.184 12.8001 19.5967C13.5804 19.9869 14.7108 20.25 16 20.25C17.2892 20.25 18.4196 19.9869 19.1999 19.5967C20.0253 19.184 20.25 18.7528 20.25 18.5V10.5C20.25 10.0858 20.5858 9.75 21 9.75C21.4142 9.75 21.75 10.0858 21.75 10.5V18.5C21.75 19.6272 20.8552 20.446 19.8708 20.9383C18.8414 21.4531 17.4718 21.75 16 21.75C14.5282 21.75 13.1586 21.4531 12.1292 20.9383C11.4464 20.5969 10.8067 20.0983 10.4788 19.4487C9.72529 19.6434 8.88291 19.75 8 19.75C6.52822 19.75 5.15859 19.4531 4.12918 18.9383C3.14478 18.446 2.25 17.6272 2.25 16.5V5.5C2.25 5.08579 2.58579 4.75 3 4.75ZM13 4.75C13.4142 4.75 13.75 5.08579 13.75 5.5V8.5C13.75 8.91421 13.4142 9.25 13 9.25C12.5858 9.25 12.25 8.91421 12.25 8.5V5.5C12.25 5.08579 12.5858 4.75 13 4.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.80007 4.4033C3.97472 4.81603 3.75 5.24723 3.75 5.5C3.75 5.75277 3.97472 6.18397 4.80007 6.5967C5.58041 6.98692 6.71078 7.25 8 7.25C9.28922 7.25 10.4196 6.98692 11.1999 6.5967C12.0253 6.18397 12.25 5.75277 12.25 5.5C12.25 5.24723 12.0253 4.81603 11.1999 4.4033C10.4196 4.01308 9.28922 3.75 8 3.75C6.71078 3.75 5.58041 4.01308 4.80007 4.4033ZM4.12918 3.0617C5.15859 2.54692 6.52822 2.25 8 2.25C9.47178 2.25 10.8414 2.54692 11.8708 3.0617C12.8552 3.55397 13.75 4.37277 13.75 5.5C13.75 6.62723 12.8552 7.44603 11.8708 7.9383C10.8414 8.45308 9.47178 8.75 8 8.75C6.52822 8.75 5.15859 8.45308 4.12918 7.9383C3.14478 7.44603 2.25 6.62723 2.25 5.5C2.25 4.37277 3.14478 3.55397 4.12918 3.0617Z"})]}),"arrow-down":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V19.1893L19.9697 11.9697C20.2626 11.6768 20.7374 11.6768 21.0303 11.9697C21.3232 12.2626 21.3232 12.7374 21.0303 13.0303L12.5303 21.5303C12.2374 21.8232 11.7626 21.8232 11.4697 21.5303L2.96967 13.0303C2.67678 12.7374 2.67678 12.2626 2.96967 11.9697C3.26256 11.6768 3.73744 11.6768 4.03033 11.9697L11.25 19.1893V3C11.25 2.58579 11.5858 2.25 12 2.25Z"}),"arrow-left":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0303 2.96967C12.3232 3.26256 12.3232 3.73744 12.0303 4.03033L4.81066 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H4.81066L12.0303 19.9697C12.3232 20.2626 12.3232 20.7374 12.0303 21.0303C11.7374 21.3232 11.2626 21.3232 10.9697 21.0303L2.46967 12.5303C2.17678 12.2374 2.17678 11.7626 2.46967 11.4697L10.9697 2.96967C11.2626 2.67678 11.7374 2.67678 12.0303 2.96967Z"}),"arrow-right":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9697 2.96967C12.2626 2.67678 12.7374 2.67678 13.0303 2.96967L21.5303 11.4697C21.8232 11.7626 21.8232 12.2374 21.5303 12.5303L13.0303 21.0303C12.7374 21.3232 12.2626 21.3232 11.9697 21.0303C11.6768 20.7374 11.6768 20.2626 11.9697 19.9697L19.1893 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H19.1893L11.9697 4.03033C11.6768 3.73744 11.6768 3.26256 11.9697 2.96967Z"}),"arrow-up":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 2.46967C11.7626 2.17678 12.2374 2.17678 12.5303 2.46967L21.0303 10.9697C21.3232 11.2626 21.3232 11.7374 21.0303 12.0303C20.7374 12.3232 20.2626 12.3232 19.9697 12.0303L12.75 4.81066V21C12.75 21.4142 12.4142 21.75 12 21.75C11.5858 21.75 11.25 21.4142 11.25 21V4.81066L4.03033 12.0303C3.73744 12.3232 3.26256 12.3232 2.96967 12.0303C2.67678 11.7374 2.67678 11.2626 2.96967 10.9697L11.4697 2.46967Z"}),attachment:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.778 2.74977C14.9155 2.74977 14.0882 3.09242 13.4783 3.70233L4.28833 12.8923C3.30314 13.8775 2.74966 15.2137 2.74966 16.607C2.74966 18.0003 3.30314 19.3365 4.28833 20.3217C5.27352 21.3069 6.60973 21.8603 8.003 21.8603C9.39627 21.8603 10.7325 21.3069 11.7177 20.3217L20.9077 11.1317C21.2006 10.8388 21.6754 10.8388 21.9683 11.1317C22.2612 11.4246 22.2612 11.8994 21.9683 12.1923L12.7783 21.3823C11.5118 22.6488 9.7941 23.3603 8.003 23.3603C6.21191 23.3603 4.49417 22.6488 3.22767 21.3823C1.96117 20.1158 1.24966 18.3981 1.24966 16.607C1.24966 14.8159 1.96117 13.0982 3.22767 11.8317L12.4177 2.64167C13.3089 1.75045 14.5176 1.24977 15.778 1.24977C17.0384 1.24977 18.2471 1.75045 19.1383 2.64167C20.0295 3.53288 20.5302 4.74163 20.5302 6.002C20.5302 7.26237 20.0295 8.47111 19.1383 9.36233L9.93833 18.5523C9.68287 18.8078 9.37959 19.0104 9.04581 19.1487C8.71203 19.287 8.35428 19.3581 7.993 19.3581C7.63172 19.3581 7.27397 19.287 6.9402 19.1487C6.60642 19.0104 6.30314 18.8078 6.04767 18.5523C5.79221 18.2969 5.58956 17.9936 5.4513 17.6598C5.31305 17.326 5.24189 16.9683 5.24189 16.607C5.24189 16.2457 5.31305 15.888 5.4513 15.5542C5.58956 15.2204 5.79221 14.9171 6.04767 14.6617L14.538 6.18136C14.831 5.88864 15.3059 5.88892 15.5986 6.18198C15.8914 6.47505 15.8911 6.94992 15.598 7.24264L7.10833 15.7223C7.10823 15.7224 7.10844 15.7222 7.10833 15.7223C6.9923 15.8384 6.89994 15.9766 6.83712 16.1282C6.77425 16.28 6.74189 16.4427 6.74189 16.607C6.74189 16.7713 6.77425 16.934 6.83712 17.0858C6.9 17.2376 6.99215 17.3755 7.10833 17.4917C7.22451 17.6078 7.36243 17.7 7.51422 17.7629C7.66602 17.8258 7.8287 17.8581 7.993 17.8581C8.1573 17.8581 8.31999 17.8258 8.47178 17.7629C8.62357 17.7 8.76149 17.6078 8.87767 17.4917L18.0777 8.30167C18.6876 7.69176 19.0302 6.86454 19.0302 6.002C19.0302 5.13946 18.6876 4.31224 18.0777 3.70233C17.4678 3.09242 16.6405 2.74977 15.778 2.74977Z"}),bell:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.20987 3.36203C8.47221 2.01561 10.1939 1.25 12 1.25C13.8053 1.25 15.5278 2.01675 16.7899 3.3618L16.7902 3.36204C18.05 4.7059 18.75 6.5192 18.75 8.4C18.75 12.0307 19.4786 14.3111 20.1678 15.6587C20.513 16.3339 20.8517 16.7814 21.092 17.052C21.2123 17.1875 21.3086 17.2792 21.3693 17.3332C21.3997 17.3602 21.4213 17.3778 21.4327 17.3868L21.4414 17.3936C21.7025 17.5837 21.8129 17.9199 21.7145 18.2281C21.6152 18.539 21.3263 18.75 21 18.75H3.00001C2.67367 18.75 2.38479 18.539 2.28554 18.2281C2.18713 17.9199 2.29753 17.5836 2.55863 17.3936L2.56734 17.3868C2.57868 17.3778 2.60027 17.3602 2.63067 17.3332C2.69146 17.2792 2.78768 17.1875 2.90802 17.052C3.14832 16.7814 3.48697 16.3339 3.83225 15.6587C4.52137 14.3111 5.25001 12.0307 5.25001 8.4C5.25001 6.5192 5.94999 4.7059 7.20985 3.36204L7.20987 3.36203ZM4.63893 17.25H19.3611C19.1889 16.9905 19.01 16.6891 18.8323 16.3416C18.0214 14.7559 17.25 12.2363 17.25 8.4C17.25 6.88691 16.6861 5.44432 15.6961 4.3882M4.63893 17.25C4.81108 16.9905 4.99006 16.6891 5.16776 16.3416C5.97864 14.7559 6.75001 12.2363 6.75001 8.4C6.75001 6.8868 7.31402 5.4441 8.30416 4.38796C9.29382 3.33238 10.6241 2.75 12 2.75C13.3746 2.75 14.706 3.33316 15.6959 4.38796M9.89424 20.3509C10.2527 20.1434 10.7116 20.2658 10.9191 20.6242C11.0288 20.8138 11.1864 20.9711 11.3761 21.0805C11.5659 21.1899 11.781 21.2474 12 21.2474C12.219 21.2474 12.4341 21.1899 12.6239 21.0805C12.8136 20.9711 12.9712 20.8138 13.0809 20.6242C13.2885 20.2658 13.7473 20.1434 14.1058 20.3509C14.4642 20.5585 14.5866 21.0173 14.3791 21.3758C14.1376 21.7929 13.7907 22.1392 13.3731 22.38C12.9555 22.6207 12.482 22.7474 12 22.7474C11.518 22.7474 11.0445 22.6207 10.6269 22.38C10.2094 22.1392 9.86243 21.7929 9.62093 21.3758C9.4134 21.0173 9.53576 20.5585 9.89424 20.3509Z"}),"bell-badge":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 1.282C8.62002 1.497 6.16302 3.685 5.46202 6.66C5.31902 7.269 5.28402 7.635 5.24102 8.941C5.16202 11.362 4.90002 12.942 4.31202 14.54C3.87802 15.719 3.14402 16.929 2.60302 17.358C2.35202 17.556 2.26502 17.73 2.26802 18.024C2.27202 18.464 2.48602 18.694 2.93102 18.739C3.06802 18.753 7.24002 18.759 12.203 18.752L21.226 18.74L21.388 18.633C21.655 18.456 21.824 18.111 21.774 17.845C21.755 17.742 21.647 17.606 21.336 17.293C20.13 16.08 19.301 14.061 18.957 11.501C18.847 10.686 18.818 10.572 18.683 10.437C18.376 10.13 17.653 10.227 17.459 10.601C17.378 10.758 17.385 11.089 17.482 11.768C17.778 13.841 18.331 15.541 19.154 16.91L19.352 17.24H4.64802L4.84702 16.91C5.58602 15.685 6.17202 13.962 6.45602 12.18C6.61502 11.184 6.67602 10.482 6.72202 9.14C6.77802 7.492 6.85902 6.987 7.20502 6.12C7.89502 4.39 9.44102 3.12 11.227 2.816C11.607 2.751 12.166 2.753 13 2.823C13.21 2.841 13.287 2.83 13.4 2.768C13.608 2.653 13.733 2.383 13.737 2.04C13.741 1.712 13.668 1.586 13.398 1.452C13.111 1.309 12.21 1.229 11.5 1.282ZM18.595 1.282C18.0931 1.33735 17.6075 1.49309 17.167 1.73996C16.7265 1.98683 16.3402 2.31978 16.031 2.719C15.793 3.032 15.468 3.687 15.382 4.025C15.231 4.66623 15.231 5.33377 15.382 5.975C15.468 6.313 15.793 6.968 16.031 7.281C16.397 7.763 16.848 8.118 17.452 8.4C17.85 8.586 18.154 8.668 18.635 8.717C19.2896 8.78585 19.9506 8.67631 20.548 8.4C21.403 8.001 21.954 7.46 22.361 6.62C22.5643 6.23044 22.6855 5.80329 22.717 5.365C22.7859 4.71041 22.6763 4.04939 22.4 3.452C21.96 2.51 21.272 1.867 20.293 1.485C19.852 1.312 19.122 1.225 18.595 1.282ZM19.574 2.823C19.95 2.92 20.271 3.11 20.58 3.42C21.036 3.876 21.24 4.364 21.24 5C21.24 5.636 21.036 6.124 20.58 6.58C20.124 7.036 19.636 7.24 19 7.24C18.364 7.24 17.876 7.036 17.42 6.58C16.964 6.124 16.76 5.636 16.76 5C16.76 4.364 16.964 3.876 17.42 3.42C17.879 2.962 18.336 2.768 18.974 2.763C19.177 2.761 19.434 2.787 19.574 2.823ZM10.195 20.229C9.98502 20.259 9.66502 20.489 9.57002 20.678C9.45102 20.914 9.45602 21.02 9.59902 21.304C9.84002 21.784 10.252 22.181 10.78 22.441C11.22 22.658 11.5 22.723 12 22.723C12.5 22.723 12.78 22.658 13.22 22.442C13.585 22.262 13.864 22.044 14.111 21.746C14.316 21.5 14.52 21.107 14.519 20.964C14.515 20.481 13.839 20.073 13.411 20.294C13.34 20.331 13.192 20.48 13.081 20.626C12.75 21.063 12.433 21.24 11.979 21.24C11.562 21.24 11.244 21.056 10.919 20.626C10.669 20.296 10.474 20.189 10.195 20.229Z"}),"bell-off":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.75C10.6253 2.75 9.29381 3.33325 8.30392 4.3882C8.02049 4.69026 7.54585 4.70536 7.2438 4.42193C6.94174 4.13849 6.92664 3.66386 7.21007 3.3618C8.47218 2.01675 10.1947 1.25 12 1.25C13.8061 1.25 15.5278 2.01561 16.7901 3.36203L16.7901 3.36204C18.05 4.7059 18.75 6.5192 18.75 8.4C18.75 12.0307 19.4786 14.3111 20.1678 15.6587C20.513 16.3339 20.8517 16.7814 21.092 17.052C21.2123 17.1875 21.3085 17.2792 21.3693 17.3332C21.3997 17.3602 21.4213 17.3778 21.4327 17.3868C21.4367 17.39 21.4394 17.3921 21.4408 17.3932C21.7731 17.6345 21.8498 18.0991 21.6112 18.4346C21.3712 18.7722 20.903 18.8513 20.5654 18.6112L20.9845 18.0217C20.5654 18.6112 20.5649 18.6109 20.5644 18.6105L20.5633 18.6097L20.5609 18.608L20.5553 18.604L20.541 18.5933C20.53 18.5851 20.5163 18.5745 20.4999 18.5616C20.4673 18.5357 20.4245 18.5002 20.3729 18.4543C20.2696 18.3626 20.1314 18.2293 19.9705 18.0481C19.6483 17.6854 19.237 17.133 18.8322 16.3416C18.0214 14.7559 17.25 12.2363 17.25 8.4C17.25 6.8868 16.686 5.4441 15.6958 4.38796C14.7062 3.33238 13.3759 2.75 12 2.75ZM2.46966 2.46967C2.76256 2.17678 3.23743 2.17678 3.53032 2.46967L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L17.6893 18.75H2.99999C2.67366 18.75 2.38477 18.539 2.28552 18.2281C2.18708 17.9198 2.29761 17.5834 2.55894 17.3934C2.56024 17.3924 2.56306 17.3902 2.56733 17.3868C2.57867 17.3778 2.60025 17.3602 2.63066 17.3332C2.69145 17.2792 2.78766 17.1875 2.908 17.052C3.1483 16.7814 3.48695 16.3339 3.83224 15.6587C4.52136 14.3111 5.24999 12.0307 5.24999 8.4C5.24999 7.7672 5.32939 7.14297 5.48149 6.54216L2.46966 3.53033C2.17677 3.23744 2.17677 2.76256 2.46966 2.46967ZM6.77618 7.83685C6.75882 8.0232 6.74999 8.21113 6.74999 8.4C6.74999 12.2363 5.97863 14.7559 5.16775 16.3416C4.99005 16.6891 4.81107 16.9905 4.63891 17.25H16.1893L6.77618 7.83685ZM9.89423 20.3509C10.2527 20.1434 10.7115 20.2658 10.9191 20.6242C11.0288 20.8138 11.1864 20.9711 11.3761 21.0805C11.5659 21.1899 11.781 21.2474 12 21.2474C12.219 21.2474 12.4341 21.1899 12.6239 21.0805C12.8136 20.9711 12.9712 20.8138 13.0809 20.6242C13.2885 20.2658 13.7473 20.1434 14.1058 20.3509C14.4642 20.5585 14.5866 21.0173 14.3791 21.3758C14.1376 21.7929 13.7907 22.1392 13.3731 22.38C12.9555 22.6207 12.482 22.7474 12 22.7474C11.518 22.7474 11.0445 22.6207 10.6269 22.38C10.2093 22.1392 9.86241 21.7929 9.62092 21.3758C9.41339 21.0173 9.53575 20.5585 9.89423 20.3509Z"}),bookmark:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3.75C6.66848 3.75 6.35054 3.8817 6.11612 4.11612C5.8817 4.35054 5.75 4.66848 5.75 5V19.6261L10.5123 16.5642C10.5123 16.5642 10.5123 16.5642 10.5124 16.5641C10.9561 16.2788 11.4725 16.127 12 16.127C12.5275 16.127 13.0439 16.2788 13.4876 16.5641C13.4877 16.5642 13.4877 16.5642 13.4878 16.5642L18.25 19.6261V5C18.25 4.66848 18.1183 4.35054 17.8839 4.11612C17.6495 3.8817 17.3315 3.75 17 3.75H7ZM5.05546 3.05546C5.57118 2.53973 6.27065 2.25 7 2.25H17C17.7293 2.25 18.4288 2.53973 18.9445 3.05546C19.4603 3.57118 19.75 4.27065 19.75 5V21C19.75 21.2744 19.6002 21.5268 19.3594 21.6583C19.1186 21.7898 18.8252 21.7792 18.5944 21.6309L12.6764 17.8259L12.6763 17.8258C12.4746 17.696 12.2398 17.627 12 17.627C11.7602 17.627 11.5254 17.696 11.3238 17.8258L11.3236 17.8259L5.40561 21.6309C5.17483 21.7792 4.88145 21.7898 4.64063 21.6583C4.39981 21.5268 4.25 21.2744 4.25 21V5C4.25 4.27065 4.53973 3.57118 5.05546 3.05546Z"}),calendar:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.25C7.41421 1.25 7.75 1.58579 7.75 2V6C7.75 6.41421 7.41421 6.75 7 6.75C6.58579 6.75 6.25 6.41421 6.25 6V4.75H5C4.66848 4.75 4.35054 4.8817 4.11612 5.11612C3.8817 5.35054 3.75 5.66848 3.75 6V9.25H20.25V6C20.25 5.66848 20.1183 5.35054 19.8839 5.11612C19.6495 4.8817 19.3315 4.75 19 4.75H18.5C18.0858 4.75 17.75 4.41421 17.75 4C17.75 3.58579 18.0858 3.25 18.5 3.25H19C19.7293 3.25 20.4288 3.53973 20.9445 4.05546C21.4603 4.57118 21.75 5.27065 21.75 6V19C21.75 19.7293 21.4603 20.4288 20.9445 20.9445C20.4288 21.4603 19.7293 21.75 19 21.75H5C4.27065 21.75 3.57118 21.4603 3.05546 20.9445C2.53973 20.4288 2.25 19.7293 2.25 19V6C2.25 5.27065 2.53973 4.57118 3.05546 4.05546C3.57118 3.53973 4.27065 3.25 5 3.25H6.25V2C6.25 1.58579 6.58579 1.25 7 1.25ZM20.25 10.75H3.75V19C3.75 19.3315 3.8817 19.6495 4.11612 19.8839C4.35054 20.1183 4.66848 20.25 5 20.25H19C19.3315 20.25 19.6495 20.1183 19.8839 19.8839C20.1183 19.6495 20.25 19.3315 20.25 19V10.75ZM15 1.25C15.4142 1.25 15.75 1.58579 15.75 2V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6V4.75H10.5C10.0858 4.75 9.75 4.41421 9.75 4C9.75 3.58579 10.0858 3.25 10.5 3.25H14.25V2C14.25 1.58579 14.5858 1.25 15 1.25Z"}),chart:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6454 2.64541C14.8986 2.39223 15.242 2.25 15.6 2.25H20.4C20.758 2.25 21.1014 2.39223 21.3546 2.64541C21.6078 2.89858 21.75 3.24196 21.75 3.6V20.4C21.75 20.758 21.6078 21.1014 21.3546 21.3546C21.1014 21.6078 20.758 21.75 20.4 21.75H3.6C3.24196 21.75 2.89858 21.6078 2.64541 21.3546C2.39223 21.1014 2.25 20.758 2.25 20.4V16.6C2.25 16.242 2.39223 15.8986 2.64541 15.6454C2.89858 15.3922 3.24196 15.25 3.6 15.25H8.25V9.6C8.25 9.24196 8.39223 8.89858 8.64541 8.64541C8.89858 8.39223 9.24196 8.25 9.6 8.25H14.25V3.6C14.25 3.24196 14.3922 2.89858 14.6454 2.64541ZM14.25 9.75H9.75V20.25H14.25V9.75ZM15.75 20.25H20.25V3.75H15.75V20.25ZM8.25 20.25V16.75H3.75V20.25H8.25Z"}),chat:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 8C6.25 7.58579 6.58579 7.25 7 7.25H13C13.4142 7.25 13.75 7.58579 13.75 8C13.75 8.41421 13.4142 8.75 13 8.75H7C6.58579 8.75 6.25 8.41421 6.25 8ZM6.25 12C6.25 11.5858 6.58579 11.25 7 11.25H17C17.4142 11.25 17.75 11.5858 17.75 12C17.75 12.4142 17.4142 12.75 17 12.75H7C6.58579 12.75 6.25 12.4142 6.25 12Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3.75C4.66848 3.75 4.35054 3.8817 4.11612 4.11612C3.8817 4.35054 3.75 4.66848 3.75 5V19.8621L5.81433 17.2815C6.07194 16.9597 6.39879 16.6998 6.77031 16.5213C7.14183 16.3428 7.54873 16.2501 7.96091 16.25H19C19.3315 16.25 19.6495 16.1183 19.8839 15.8839C20.1183 15.6495 20.25 15.3315 20.25 15V5C20.25 4.66848 20.1183 4.35054 19.8839 4.11612C19.6495 3.8817 19.3315 3.75 19 3.75H5ZM3.05546 3.05546C3.57118 2.53973 4.27065 2.25 5 2.25H19C19.7293 2.25 20.4288 2.53973 20.9445 3.05546C21.4603 3.57118 21.75 4.27065 21.75 5V15C21.75 15.7293 21.4603 16.4288 20.9445 16.9445C20.4288 17.4603 19.7293 17.75 19 17.75H7.96109C7.96106 17.75 7.96112 17.75 7.96109 17.75C7.77377 17.75 7.58876 17.7922 7.41991 17.8733C7.25114 17.9544 7.10274 18.0724 6.98567 18.2185C6.9856 18.2186 6.98574 18.2184 6.98567 18.2185L4.65525 21.1318C4.48076 21.3501 4.24221 21.5097 3.97359 21.5871C3.70467 21.6645 3.41833 21.6565 3.15419 21.564C2.89004 21.4716 2.66114 21.2994 2.49915 21.0712C2.33717 20.843 2.2501 20.5701 2.25 20.2903L2.25 5C2.25 4.27065 2.53973 3.57118 3.05546 3.05546Z"})]}),"check-mark":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5303 6.46967C19.8232 6.76256 19.8232 7.23744 19.5303 7.53033L9.53033 17.5303C9.23744 17.8232 8.76256 17.8232 8.46967 17.5303L4.46967 13.5303C4.17678 13.2374 4.17678 12.7626 4.46967 12.4697C4.76256 12.1768 5.23744 12.1768 5.53033 12.4697L9 15.9393L18.4697 6.46967C18.7626 6.17678 19.2374 6.17678 19.5303 6.46967Z"}),"check-mark-circled":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5303 7.96967C17.8232 8.26256 17.8232 8.73744 17.5303 9.03033L10.5303 16.0303C10.2374 16.3232 9.76256 16.3232 9.46967 16.0303L6.46967 13.0303C6.17678 12.7374 6.17678 12.2626 6.46967 11.9697C6.76256 11.6768 7.23744 11.6768 7.53033 11.9697L10 14.4393L16.4697 7.96967C16.7626 7.67678 17.2374 7.67678 17.5303 7.96967Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75Z"})]}),"checkbox-unchecked":ih("path",{d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1zm1-16H5c-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"}),"chevron-down":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z"}),"chevron-left":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5303 5.46967C15.8232 5.76256 15.8232 6.23744 15.5303 6.53033L10.0607 12L15.5303 17.4697C15.8232 17.7626 15.8232 18.2374 15.5303 18.5303C15.2374 18.8232 14.7626 18.8232 14.4697 18.5303L8.46967 12.5303C8.17678 12.2374 8.17678 11.7626 8.46967 11.4697L14.4697 5.46967C14.7626 5.17678 15.2374 5.17678 15.5303 5.46967Z"}),"chevron-right":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46967 5.46967C8.76256 5.17678 9.23744 5.17678 9.53033 5.46967L15.5303 11.4697C15.8232 11.7626 15.8232 12.2374 15.5303 12.5303L9.53033 18.5303C9.23744 18.8232 8.76256 18.8232 8.46967 18.5303C8.17678 18.2374 8.17678 17.7626 8.46967 17.4697L13.9393 12L8.46967 6.53033C8.17678 6.23744 8.17678 5.76256 8.46967 5.46967Z"}),"chevron-up":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 8.46967C11.7626 8.17678 12.2374 8.17678 12.5303 8.46967L18.5303 14.4697C18.8232 14.7626 18.8232 15.2374 18.5303 15.5303C18.2374 15.8232 17.7626 15.8232 17.4697 15.5303L12 10.0607L6.53033 15.5303C6.23744 15.8232 5.76256 15.8232 5.46967 15.5303C5.17678 15.2374 5.17678 14.7626 5.46967 14.4697L11.4697 8.46967Z"}),"chevron-drag":ih("path",{d:"M11.4697 2.46967C11.7626 2.17678 12.2374 2.17678 12.5303 2.46967L17.5303 7.46967C17.8232 7.76256 17.8232 8.23744 17.5303 8.53033C17.2374 8.82322 16.7626 8.82322 16.4697 8.53033L12 4.06066L7.53033 8.53033C7.23744 8.82322 6.76256 8.82322 6.46967 8.53033C6.17678 8.23744 6.17678 7.76256 6.46967 7.46967L11.4697 2.46967ZM6.46967 15.4697C6.76256 15.1768 7.23744 15.1768 7.53033 15.4697L12 19.9393L16.4697 15.4697C16.7626 15.1768 17.2374 15.1768 17.5303 15.4697C17.8232 15.7626 17.8232 16.2374 17.5303 16.5303L12.5303 21.5303C12.2374 21.8232 11.7626 21.8232 11.4697 21.5303L6.46967 16.5303C6.17678 16.2374 6.17678 15.7626 6.46967 15.4697Z"}),"collapse-dia":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5303 3.46967C20.8232 3.76256 20.8232 4.23744 20.5303 4.53033L16.8107 8.25H19C19.4142 8.25 19.75 8.58579 19.75 9C19.75 9.41421 19.4142 9.75 19 9.75H15C14.5858 9.75 14.25 9.41421 14.25 9V5C14.25 4.58579 14.5858 4.25 15 4.25C15.4142 4.25 15.75 4.58579 15.75 5V7.18934L19.4697 3.46967C19.7626 3.17678 20.2374 3.17678 20.5303 3.46967ZM5 15.75C4.58579 15.75 4.25 15.4142 4.25 15C4.25 14.5858 4.58579 14.25 5 14.25H9C9.41421 14.25 9.75 14.5858 9.75 15V19C9.75 19.4142 9.41421 19.75 9 19.75C8.58579 19.75 8.25 19.4142 8.25 19V16.8107L4.53033 20.5303C4.23744 20.8232 3.76256 20.8232 3.46967 20.5303C3.17678 20.2374 3.17678 19.7626 3.46967 19.4697L7.18934 15.75H5Z"}),copy:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75 9.75V19.25H19.25V9.75H9.75ZM8.64541 8.64541C8.89858 8.39223 9.24196 8.25 9.6 8.25H19.4C19.758 8.25 20.1014 8.39223 20.3546 8.64541C20.6078 8.89858 20.75 9.24196 20.75 9.6V19.4C20.75 19.758 20.6078 20.1014 20.3546 20.3546C20.1014 20.6078 19.758 20.75 19.4 20.75H9.6C9.24196 20.75 8.89858 20.6078 8.64541 20.3546C8.39223 20.1014 8.25 19.758 8.25 19.4V9.6C8.25 9.24196 8.39223 8.89858 8.64541 8.64541Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.64541 3.64541C3.89858 3.39223 4.24196 3.25 4.6 3.25H14.4C14.758 3.25 15.1014 3.39223 15.3546 3.64541C15.6078 3.89858 15.75 4.24196 15.75 4.6V9C15.75 9.41421 15.4142 9.75 15 9.75C14.5858 9.75 14.25 9.41421 14.25 9V4.75H4.75V14.25H9C9.41421 14.25 9.75 14.5858 9.75 15C9.75 15.4142 9.41421 15.75 9 15.75H4.6C4.24196 15.75 3.89858 15.6078 3.64541 15.3546C3.39223 15.1014 3.25 14.758 3.25 14.4V4.6C3.25 4.24196 3.39223 3.89858 3.64541 3.64541Z"})]}),cross:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22772 6.22662C6.52064 5.93376 6.99551 5.9338 7.28838 6.22672L12.0001 10.9393L16.7137 6.22662C17.0066 5.93376 17.4815 5.9338 17.7744 6.22672C18.0672 6.51965 18.0672 6.99452 17.7743 7.28738L13.0612 11.9996L17.7743 16.7127C18.0672 17.0056 18.0672 17.4804 17.7743 17.7733C17.4814 18.0662 17.0066 18.0662 16.7137 17.7733L12.001 13.0607L7.28833 17.7733C6.99543 18.0662 6.52056 18.0662 6.22767 17.7733C5.93477 17.4804 5.93477 17.0056 6.22767 16.7127L10.9399 12.0005L6.22761 7.28728C5.93475 6.99436 5.93479 6.51949 6.22772 6.22662Z"}),"cross-circled":ih(rh,{children:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75ZM8.64158 8.64176C8.93442 8.34882 9.40929 8.34873 9.70224 8.64158L12.0009 10.9394L14.2987 8.64167C14.5916 8.34878 15.0664 8.34878 15.3593 8.64167C15.6522 8.93456 15.6522 9.40944 15.3593 9.70233L13.0617 12L15.3593 14.2977C15.6522 14.5906 15.6522 15.0654 15.3593 15.3583C15.0664 15.6512 14.5916 15.6512 14.2987 15.3583L12.0009 13.0606L9.70224 15.3584C9.40929 15.6513 8.93442 15.6512 8.64158 15.3582C8.34873 15.0653 8.34882 14.5904 8.64176 14.2976L10.9402 12L8.64176 9.70242C8.34882 9.40958 8.34873 8.93471 8.64158 8.64176Z"})}),dashboard:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H9C9.41421 5.25 9.75 5.58579 9.75 6C9.75 6.41421 9.41421 6.75 9 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM15.5 6.75C15.0359 6.75 14.5908 6.93437 14.2626 7.26256C13.9344 7.59075 13.75 8.03587 13.75 8.5C13.75 8.96413 13.9344 9.40925 14.2626 9.73744C14.5908 10.0656 15.0359 10.25 15.5 10.25C15.9641 10.25 16.4092 10.0656 16.7374 9.73744C17.0656 9.40925 17.25 8.96413 17.25 8.5C17.25 8.03587 17.0656 7.59075 16.7374 7.26256C16.4092 6.93437 15.9641 6.75 15.5 6.75ZM13.2019 6.2019C13.8114 5.59241 14.638 5.25 15.5 5.25C16.362 5.25 17.1886 5.59241 17.7981 6.2019C18.4076 6.8114 18.75 7.63805 18.75 8.5C18.75 9.36195 18.4076 10.1886 17.7981 10.7981C17.1886 11.4076 16.362 11.75 15.5 11.75C14.638 11.75 13.8114 11.4076 13.2019 10.7981C12.5924 10.1886 12.25 9.36195 12.25 8.5C12.25 7.63805 12.5924 6.8114 13.2019 6.2019ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H10C10.4142 8.25 10.75 8.58579 10.75 9C10.75 9.41421 10.4142 9.75 10 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9ZM5.41435 12.5315C5.67311 12.208 6.14507 12.1556 6.46852 12.4143L11 16.0395L13.0315 14.4143C13.2865 14.2103 13.6443 14.1948 13.916 14.376L18.416 17.376C18.7607 17.6057 18.8538 18.0714 18.624 18.416C18.3943 18.7607 17.9286 18.8538 17.584 18.624L13.5403 15.9282L11.4685 17.5857C11.1946 17.8048 10.8054 17.8048 10.5315 17.5857L5.53148 13.5857C5.20803 13.3269 5.15559 12.8549 5.41435 12.5315Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.75 3.75V20.25H20.25V3.75H3.75ZM2.64541 2.64541C2.89858 2.39223 3.24196 2.25 3.6 2.25H20.4C20.758 2.25 21.1014 2.39223 21.3546 2.64541C21.6078 2.89858 21.75 3.24196 21.75 3.6V20.4C21.75 20.758 21.6078 21.1014 21.3546 21.3546C21.1014 21.6078 20.758 21.75 20.4 21.75H3.6C3.24196 21.75 2.89858 21.6078 2.64541 21.3546C2.39223 21.1014 2.25 20.758 2.25 20.4V3.6C2.25 3.24196 2.39223 2.89858 2.64541 2.64541Z"})]}),"data-review":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.35201 1.281C3.93901 1.351 3.56301 1.654 3.36501 2.075L3.26001 2.3V21.7L3.36501 21.925C3.51401 22.241 3.72501 22.458 4.03301 22.61L4.29801 22.74H7.77901C11.188 22.74 11.263 22.738 11.396 22.66C11.669 22.499 11.792 22.182 11.723 21.815C11.709 21.7159 11.6722 21.6214 11.6155 21.539C11.5587 21.4566 11.4836 21.3884 11.396 21.34C11.263 21.262 11.177 21.26 8.01001 21.249L4.76001 21.237V2.76H15.234L15.247 4.23L15.26 5.7L15.365 5.925C15.514 6.241 15.725 6.458 16.033 6.61L16.298 6.74L17.767 6.753L19.237 6.766L19.248 9.513C19.26 12.177 19.262 12.264 19.34 12.396C19.3884 12.4836 19.4566 12.5587 19.539 12.6154C19.6214 12.6722 19.7159 12.709 19.815 12.723C20.182 12.792 20.499 12.669 20.66 12.396C20.738 12.263 20.74 12.188 20.74 8.86V5.46L20.608 5.18C20.485 4.919 20.359 4.783 18.768 3.198C16.95 1.387 16.909 1.353 16.452 1.278C16.17 1.232 4.62701 1.235 4.35201 1.281ZM17.72 4.3L18.659 5.24H16.76V4.3C16.76 3.783 16.765 3.36 16.77 3.36C16.776 3.36 17.203 3.783 17.72 4.3ZM7.78701 5.278C7.44501 5.346 7.26801 5.592 7.26801 6C7.26801 6.462 7.47501 6.692 7.93101 6.74C8.06801 6.754 9.09801 6.76 10.22 6.753C12.176 6.741 12.266 6.737 12.396 6.66C12.669 6.499 12.792 6.182 12.723 5.815C12.709 5.71591 12.6722 5.62142 12.6155 5.53899C12.5587 5.45656 12.4836 5.38844 12.396 5.34C12.265 5.263 12.182 5.26 10.1 5.254C8.91201 5.25 7.87101 5.261 7.78701 5.278ZM7.78701 9.278C7.44501 9.346 7.26801 9.592 7.26801 10C7.26801 10.462 7.47501 10.693 7.93101 10.739C8.06801 10.753 9.99801 10.759 12.22 10.752C16.177 10.74 16.263 10.738 16.396 10.66C16.669 10.499 16.792 10.182 16.723 9.815C16.709 9.71591 16.6722 9.62142 16.6155 9.53899C16.5587 9.45656 16.4836 9.38844 16.396 9.34C16.263 9.261 16.183 9.26 12.1 9.254C9.81201 9.251 7.87101 9.262 7.78701 9.278ZM7.78701 13.278C7.44501 13.347 7.26801 13.592 7.26801 14C7.26801 14.461 7.47501 14.692 7.93101 14.74C8.06801 14.754 8.87301 14.76 9.72001 14.753C11.175 14.741 11.267 14.736 11.396 14.66C11.669 14.499 11.792 14.182 11.723 13.815C11.709 13.7159 11.6722 13.6214 11.6155 13.539C11.5587 13.4566 11.4836 13.3884 11.396 13.34C11.266 13.264 11.182 13.26 9.60001 13.253C8.68701 13.25 7.87101 13.261 7.78701 13.278ZM17.595 14.282C17.0931 14.3373 16.6075 14.4931 16.167 14.74C15.7265 14.9868 15.3402 15.3198 15.031 15.719C14.793 16.032 14.468 16.687 14.382 17.025C14.231 17.6662 14.231 18.3338 14.382 18.975C14.468 19.313 14.793 19.968 15.031 20.281C15.397 20.763 15.848 21.118 16.452 21.4C17.0482 21.6755 17.7077 21.7854 18.361 21.718C18.889 21.663 19.2 21.573 19.655 21.342L20.06 21.136L20.86 21.924C21.745 22.795 21.829 22.849 22.165 22.759C22.386 22.699 22.699 22.386 22.759 22.165C22.849 21.829 22.795 21.745 21.924 20.86L21.136 20.06L21.342 19.655C21.573 19.2 21.663 18.889 21.718 18.361C21.7854 17.7077 21.6755 17.0482 21.4 16.452C20.96 15.51 20.272 14.867 19.293 14.485C18.852 14.312 18.122 14.225 17.595 14.282ZM18.574 15.823C18.95 15.92 19.271 16.11 19.58 16.42C20.036 16.876 20.24 17.364 20.24 18C20.24 18.636 20.036 19.124 19.58 19.58C19.124 20.036 18.636 20.24 18 20.24C17.364 20.24 16.876 20.036 16.42 19.58C15.964 19.124 15.76 18.636 15.76 18C15.76 17.364 15.964 16.876 16.42 16.42C16.879 15.962 17.336 15.768 17.974 15.763C18.177 15.761 18.434 15.787 18.574 15.823Z"}),delete:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.26 1.27799C9.94081 1.31137 9.63181 1.40972 9.35203 1.56699C8.72751 1.90437 8.25065 2.46178 8.01403 3.13099C7.91203 3.43999 7.90503 3.51399 7.88903 4.34799L7.87203 5.23699L5.30603 5.24799C2.82303 5.25999 2.73603 5.26299 2.60403 5.33999C2.33103 5.50099 2.20803 5.81799 2.27703 6.18499C2.29102 6.28409 2.32784 6.37858 2.38458 6.46101C2.44133 6.54344 2.51645 6.61156 2.60403 6.65999C2.73903 6.73899 2.81203 6.73999 12 6.73999C21.188 6.73999 21.261 6.73899 21.396 6.65999C21.4836 6.61156 21.5587 6.54344 21.6155 6.46101C21.6722 6.37858 21.709 6.28409 21.723 6.18499C21.792 5.81799 21.669 5.50099 21.396 5.33999C21.264 5.26299 21.177 5.25999 18.694 5.24799L16.128 5.23699L16.111 4.34799C16.095 3.51899 16.087 3.43899 15.988 3.13999C15.7512 2.46805 15.2738 1.90767 14.648 1.56699C14.08 1.27199 14.063 1.26999 12.18 1.25799C11.256 1.25199 10.392 1.26099 10.26 1.27799ZM13.721 2.79999C14.068 2.89599 14.417 3.22799 14.556 3.59299C14.594 3.69199 14.618 3.98399 14.63 4.48999L14.649 5.23999H9.35103L9.37103 4.48999C9.38103 4.07699 9.41103 3.67299 9.43603 3.59199C9.53403 3.27899 9.88103 2.94199 10.235 2.81499C10.414 2.75099 13.498 2.73799 13.721 2.79999ZM3.74803 8.29699C3.34803 8.40499 3.19603 8.68399 3.27503 9.16899C3.56003 10.914 5.30203 20.682 5.36303 20.874C5.67503 21.854 6.59103 22.6 7.63003 22.719C8.10003 22.773 15.9 22.773 16.37 22.719C17.409 22.6 18.325 21.854 18.637 20.874C18.748 20.525 20.732 9.23999 20.737 8.93299C20.74 8.66999 20.679 8.54199 20.478 8.39299C20.351 8.29899 19.964 8.22299 19.784 8.25699C19.6877 8.28125 19.5978 8.32631 19.5208 8.38903C19.4437 8.45174 19.3813 8.53058 19.338 8.61999C19.309 8.68799 18.834 11.317 18.282 14.462C17.73 17.607 17.248 20.279 17.211 20.4C17.159 20.571 17.09 20.674 16.902 20.863C16.496 21.271 16.902 21.24 12 21.24C7.09503 21.24 7.50603 21.272 7.09303 20.86C6.89703 20.664 6.83403 20.569 6.78403 20.397C6.75003 20.278 6.28103 17.66 5.74103 14.58C5.20103 11.5 4.73903 8.89299 4.71503 8.78799C4.61103 8.33499 4.26403 8.15799 3.74803 8.29699Z"}),document:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.05546 3.05546C3.57118 2.53973 4.27065 2.25 5 2.25H19C19.7293 2.25 20.4288 2.53973 20.9445 3.05546C21.4603 3.57118 21.75 4.27065 21.75 5V19C21.75 19.7293 21.4603 20.4288 20.9445 20.9445C20.4288 21.4603 19.7293 21.75 19 21.75H5C4.27065 21.75 3.57118 21.4603 3.05546 20.9445C2.53973 20.4288 2.25 19.7293 2.25 19V5C2.25 4.27065 2.53973 3.57118 3.05546 3.05546ZM5 3.75C4.66848 3.75 4.35054 3.8817 4.11612 4.11612C3.8817 4.35054 3.75 4.66848 3.75 5V19C3.75 19.3315 3.8817 19.6495 4.11612 19.8839C4.35054 20.1183 4.66848 20.25 5 20.25H19C19.3315 20.25 19.6495 20.1183 19.8839 19.8839C20.1183 19.6495 20.25 19.3315 20.25 19V5C20.25 4.66848 20.1183 4.35054 19.8839 4.11612C19.6495 3.8817 19.3315 3.75 19 3.75H5ZM6.25 7C6.25 6.58579 6.58579 6.25 7 6.25H17C17.4142 6.25 17.75 6.58579 17.75 7C17.75 7.41421 17.4142 7.75 17 7.75H7C6.58579 7.75 6.25 7.41421 6.25 7ZM6.25 12C6.25 11.5858 6.58579 11.25 7 11.25H17C17.4142 11.25 17.75 11.5858 17.75 12C17.75 12.4142 17.4142 12.75 17 12.75H7C6.58579 12.75 6.25 12.4142 6.25 12ZM6.25 17C6.25 16.5858 6.58579 16.25 7 16.25H13C13.4142 16.25 13.75 16.5858 13.75 17C13.75 17.4142 13.4142 17.75 13 17.75H7C6.58579 17.75 6.25 17.4142 6.25 17Z"}),"dots-vertical":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.75C11.6685 2.75 11.3505 2.8817 11.1161 3.11612C10.8817 3.35054 10.75 3.66848 10.75 4C10.75 4.33152 10.8817 4.64946 11.1161 4.88388C11.3505 5.1183 11.6685 5.25 12 5.25C12.3315 5.25 12.6495 5.1183 12.8839 4.88388C13.1183 4.64946 13.25 4.33152 13.25 4C13.25 3.66848 13.1183 3.35054 12.8839 3.11612C12.6495 2.8817 12.3315 2.75 12 2.75ZM12 10.75C11.6685 10.75 11.3505 10.8817 11.1161 11.1161C10.8817 11.3505 10.75 11.6685 10.75 12C10.75 12.3315 10.8817 12.6495 11.1161 12.8839C11.3505 13.1183 11.6685 13.25 12 13.25C12.3315 13.25 12.6495 13.1183 12.8839 12.8839C13.1183 12.6495 13.25 12.3315 13.25 12C13.25 11.6685 13.1183 11.3505 12.8839 11.1161C12.6495 10.8817 12.3315 10.75 12 10.75ZM12 18.75C11.6685 18.75 11.3505 18.8817 11.1161 19.1161C10.8817 19.3505 10.75 19.6685 10.75 20C10.75 20.3315 10.8817 20.6495 11.1161 20.8839C11.3505 21.1183 11.6685 21.25 12 21.25C12.3315 21.25 12.6495 21.1183 12.8839 20.8839C13.1183 20.6495 13.25 20.3315 13.25 20C13.25 19.6685 13.1183 19.3505 12.8839 19.1161C12.6495 18.8817 12.3315 18.75 12 18.75Z"}),download:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4V14.1893L14.9697 11.9697C15.2626 11.6768 15.7374 11.6768 16.0303 11.9697C16.3232 12.2626 16.3232 12.7374 16.0303 13.0303L12.5303 16.5303C12.2374 16.8232 11.7626 16.8232 11.4697 16.5303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L11.25 14.1893V4C11.25 3.58579 11.5858 3.25 12 3.25ZM5.25 20C5.25 19.5858 5.58579 19.25 6 19.25H18C18.4142 19.25 18.75 19.5858 18.75 20C18.75 20.4142 18.4142 20.75 18 20.75H6C5.58579 20.75 5.25 20.4142 5.25 20Z"}),drag:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 5.25C9.16848 5.25 8.85054 5.3817 8.61612 5.61612C8.38169 5.85054 8.25 6.16848 8.25 6.5C8.25 6.83152 8.38169 7.14946 8.61612 7.38388C8.85054 7.6183 9.16848 7.75 9.5 7.75C9.83152 7.75 10.1495 7.6183 10.3839 7.38388C10.6183 7.14946 10.75 6.83152 10.75 6.5C10.75 6.16848 10.6183 5.85054 10.3839 5.61612C10.1495 5.3817 9.83152 5.25 9.5 5.25ZM14.5 5.25C14.1685 5.25 13.8505 5.3817 13.6161 5.61612C13.3817 5.85054 13.25 6.16848 13.25 6.5C13.25 6.83152 13.3817 7.14946 13.6161 7.38388C13.8505 7.6183 14.1685 7.75 14.5 7.75C14.8315 7.75 15.1495 7.6183 15.3839 7.38388C15.6183 7.14946 15.75 6.83152 15.75 6.5C15.75 6.16848 15.6183 5.85054 15.3839 5.61612C15.1495 5.3817 14.8315 5.25 14.5 5.25ZM9.5 10.25C9.16848 10.25 8.85054 10.3817 8.61612 10.6161C8.38169 10.8505 8.25 11.1685 8.25 11.5C8.25 11.8315 8.38169 12.1495 8.61612 12.3839C8.85054 12.6183 9.16848 12.75 9.5 12.75C9.83152 12.75 10.1495 12.6183 10.3839 12.3839C10.6183 12.1495 10.75 11.8315 10.75 11.5C10.75 11.1685 10.6183 10.8505 10.3839 10.6161C10.1495 10.3817 9.83152 10.25 9.5 10.25ZM9.5 15.25C9.16848 15.25 8.85054 15.3817 8.61612 15.6161C8.38169 15.8505 8.25 16.1685 8.25 16.5C8.25 16.8315 8.38169 17.1495 8.61612 17.3839C8.85054 17.6183 9.16848 17.75 9.5 17.75C9.83152 17.75 10.1495 17.6183 10.3839 17.3839C10.6183 17.1495 10.75 16.8315 10.75 16.5C10.75 16.1685 10.6183 15.8505 10.3839 15.6161C10.1495 15.3817 9.83152 15.25 9.5 15.25ZM14.5 10.25C14.1685 10.25 13.8505 10.3817 13.6161 10.6161C13.3817 10.8505 13.25 11.1685 13.25 11.5C13.25 11.8315 13.3817 12.1495 13.6161 12.3839C13.8505 12.6183 14.1685 12.75 14.5 12.75C14.8315 12.75 15.1495 12.6183 15.3839 12.3839C15.6183 12.1495 15.75 11.8315 15.75 11.5C15.75 11.1685 15.6183 10.8505 15.3839 10.6161C15.1495 10.3817 14.8315 10.25 14.5 10.25ZM14.5 15.25C14.1685 15.25 13.8505 15.3817 13.6161 15.6161C13.3817 15.8505 13.25 16.1685 13.25 16.5C13.25 16.8315 13.3817 17.1495 13.6161 17.3839C13.8505 17.6183 14.1685 17.75 14.5 17.75C14.8315 17.75 15.1495 17.6183 15.3839 17.3839C15.6183 17.1495 15.75 16.8315 15.75 16.5C15.75 16.1685 15.6183 15.8505 15.3839 15.6161C15.1495 15.3817 14.8315 15.25 14.5 15.25Z"}),email:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.38558 8.5699C6.62311 8.23057 7.09076 8.14804 7.4301 8.38558L12 11.5845L16.5699 8.38558C16.9092 8.14804 17.3769 8.23057 17.6144 8.5699C17.852 8.90924 17.7694 9.37689 17.4301 9.61442L12.4301 13.1144C12.1719 13.2952 11.8281 13.2952 11.5699 13.1144L6.5699 9.61442C6.23057 9.37689 6.14804 8.90924 6.38558 8.5699Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.75C3.66848 5.75 3.35054 5.8817 3.11612 6.11612C2.8817 6.35054 2.75 6.66848 2.75 7V17C2.75 17.3315 2.8817 17.6495 3.11612 17.8839C3.35054 18.1183 3.66848 18.25 4 18.25H20C20.3315 18.25 20.6495 18.1183 20.8839 17.8839C21.1183 17.6495 21.25 17.3315 21.25 17V7C21.25 6.66848 21.1183 6.35054 20.8839 6.11612C20.6495 5.8817 20.3315 5.75 20 5.75H4ZM2.05546 5.05546C2.57118 4.53973 3.27065 4.25 4 4.25H20C20.7293 4.25 21.4288 4.53973 21.9445 5.05546C22.4603 5.57118 22.75 6.27065 22.75 7V17C22.75 17.7293 22.4603 18.4288 21.9445 18.9445C21.4288 19.4603 20.7293 19.75 20 19.75H4C3.27065 19.75 2.57118 19.4603 2.05546 18.9445C1.53973 18.4288 1.25 17.7293 1.25 17V7C1.25 6.27065 1.53973 5.57118 2.05546 5.05546Z"})]}),enrollment:ih(rh,{children:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.35201 1.281C3.93901 1.351 3.56301 1.654 3.36501 2.075L3.26001 2.3V21.7L3.36501 21.925C3.51401 22.241 3.72501 22.458 4.03301 22.61L4.29801 22.74H7.77901C11.188 22.74 11.263 22.738 11.396 22.66C11.669 22.499 11.792 22.182 11.723 21.815C11.709 21.7159 11.6722 21.6214 11.6155 21.539C11.5587 21.4566 11.4836 21.3884 11.396 21.34C11.263 21.262 11.177 21.26 8.01001 21.249L4.76001 21.237V2.76H15.234L15.247 4.23L15.26 5.7L15.365 5.925C15.514 6.241 15.725 6.458 16.033 6.61L16.298 6.74L17.767 6.753L19.237 6.766L19.248 9.513C19.26 12.177 19.262 12.264 19.34 12.396C19.3884 12.4836 19.4566 12.5587 19.539 12.6154C19.6214 12.6722 19.7159 12.709 19.815 12.723C20.182 12.792 20.499 12.669 20.66 12.396C20.738 12.263 20.74 12.188 20.74 8.86V5.46L20.608 5.18C20.485 4.919 20.359 4.783 18.768 3.198C16.95 1.387 16.909 1.353 16.452 1.278C16.17 1.232 4.62701 1.235 4.35201 1.281ZM17.72 4.3L18.659 5.24H16.76V4.3C16.76 3.783 16.765 3.36 16.77 3.36C16.776 3.36 17.203 3.783 17.72 4.3ZM7.78701 5.278C7.44501 5.346 7.26801 5.592 7.26801 6C7.26801 6.462 7.47501 6.692 7.93101 6.74C8.06801 6.754 9.09801 6.76 10.22 6.753C12.176 6.741 12.266 6.737 12.396 6.66C12.669 6.499 12.792 6.182 12.723 5.815C12.709 5.71591 12.6722 5.62142 12.6155 5.53899C12.5587 5.45656 12.4836 5.38844 12.396 5.34C12.265 5.263 12.182 5.26 10.1 5.254C8.91201 5.25 7.87101 5.261 7.78701 5.278ZM7.78701 9.278C7.44501 9.346 7.26801 9.592 7.26801 10C7.26801 10.462 7.47501 10.693 7.93101 10.739C8.06801 10.753 9.99801 10.759 12.22 10.752C16.177 10.74 16.263 10.738 16.396 10.66C16.669 10.499 16.792 10.182 16.723 9.815C16.709 9.71591 16.6722 9.62142 16.6155 9.53899C16.5587 9.45656 16.4836 9.38844 16.396 9.34C16.263 9.261 16.183 9.26 12.1 9.254C9.81201 9.251 7.87101 9.262 7.78701 9.278ZM7.78701 13.278C7.44501 13.347 7.26801 13.592 7.26801 14C7.26801 14.461 7.47501 14.692 7.93101 14.74C8.06801 14.754 8.87301 14.76 9.72001 14.753C11.175 14.741 11.267 14.736 11.396 14.66C11.669 14.499 11.792 14.182 11.723 13.815C11.709 13.7159 11.6722 13.6214 11.6155 13.539C11.5587 13.4566 11.4836 13.3884 11.396 13.34C11.266 13.264 11.182 13.26 9.60001 13.253C8.68701 13.25 7.87101 13.261 7.78701 13.278ZM19.179 14.95C19.069 14.989 18.889 15.073 18.779 15.136C18.552 15.267 14.585 19.193 14.3 19.57C14.204 19.697 14.09 19.897 14.046 20.014C13.938 20.303 13.663 22.079 13.698 22.265C13.739 22.482 13.942 22.677 14.197 22.743C14.399 22.795 14.471 22.79 15.333 22.656C16.362 22.497 16.577 22.432 16.91 22.18C17.036 22.084 18.069 21.073 19.204 19.933C21.191 17.938 21.275 17.848 21.423 17.544C21.564 17.257 21.579 17.195 21.593 16.837C21.613 16.338 21.519 15.996 21.266 15.653C21.051 15.361 20.849 15.197 20.494 15.031C20.248 14.915 20.176 14.901 19.8 14.89C19.475 14.881 19.334 14.895 19.179 14.95ZM19.898 16.399C20.03 16.45 20.14 16.675 20.103 16.822C20.074 16.938 19.619 17.44 19.542 17.44C19.487 17.44 19.04 16.993 19.04 16.938C19.04 16.889 19.468 16.467 19.58 16.406C19.68 16.351 19.767 16.349 19.898 16.399ZM17.27 19.752C16.605 20.419 16.015 20.989 15.96 21.018C15.8462 21.0612 15.7272 21.0887 15.606 21.1L15.351 21.129L15.38 20.874C15.396 20.734 15.427 20.584 15.449 20.54C15.471 20.496 16.04 19.907 16.714 19.23L17.939 18.001L18.21 18.27L18.481 18.539L17.27 19.752Z"})}),"expand-dia":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.25 4C15.25 3.58579 15.5858 3.25 16 3.25H20C20.4142 3.25 20.75 3.58579 20.75 4V8C20.75 8.41421 20.4142 8.75 20 8.75C19.5858 8.75 19.25 8.41421 19.25 8V5.81066L15.5303 9.53033C15.2374 9.82322 14.7626 9.82322 14.4697 9.53033C14.1768 9.23744 14.1768 8.76256 14.4697 8.46967L18.1893 4.75H16C15.5858 4.75 15.25 4.41421 15.25 4ZM9.53033 14.4697C9.82322 14.7626 9.82322 15.2374 9.53033 15.5303L5.81066 19.25H8C8.41421 19.25 8.75 19.5858 8.75 20C8.75 20.4142 8.41421 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.5858 3.58579 15.25 4 15.25C4.41421 15.25 4.75 15.5858 4.75 16V18.1893L8.46967 14.4697C8.76256 14.1768 9.23744 14.1768 9.53033 14.4697Z"}),file:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.35201 1.281C3.93901 1.351 3.56301 1.654 3.36501 2.075L3.26001 2.3V21.7L3.36501 21.925C3.51401 22.241 3.72501 22.458 4.03301 22.61L4.29801 22.74H19.702L19.967 22.61C20.2642 22.4686 20.5012 22.2257 20.635 21.925L20.74 21.7V5.46L20.608 5.18C20.485 4.919 20.359 4.783 18.768 3.198C16.95 1.387 16.909 1.353 16.452 1.278C16.17 1.232 4.62701 1.235 4.35201 1.281ZM15.247 4.231L15.26 5.702L15.39 5.967C15.542 6.275 15.759 6.486 16.075 6.635L16.3 6.74L17.77 6.753L19.24 6.766V21.24H4.76001V2.76H15.234L15.247 4.231ZM17.72 4.3L18.659 5.24H16.76V4.3C16.76 3.783 16.765 3.36 16.77 3.36C16.776 3.36 17.203 3.783 17.72 4.3ZM7.78701 9.278C7.44501 9.346 7.26801 9.592 7.26801 10C7.26801 10.462 7.47501 10.693 7.93101 10.739C8.06801 10.753 9.99801 10.759 12.22 10.752C16.177 10.74 16.263 10.738 16.396 10.66C16.669 10.499 16.792 10.182 16.723 9.815C16.709 9.71591 16.6722 9.62142 16.6155 9.53899C16.5587 9.45656 16.4836 9.38844 16.396 9.34C16.263 9.261 16.183 9.26 12.1 9.254C9.81201 9.251 7.87101 9.262 7.78701 9.278ZM7.78701 13.278C7.44501 13.346 7.26801 13.592 7.26801 14C7.26801 14.462 7.47501 14.692 7.93101 14.74C8.06801 14.754 9.09801 14.76 10.22 14.753C12.176 14.741 12.266 14.737 12.396 14.66C12.4836 14.6116 12.5587 14.5434 12.6155 14.461C12.6722 14.3786 12.709 14.2841 12.723 14.185C12.792 13.818 12.669 13.501 12.396 13.34C12.265 13.263 12.182 13.26 10.1 13.254C8.91201 13.25 7.87101 13.261 7.78701 13.278ZM7.78701 17.278C7.44501 17.346 7.26801 17.592 7.26801 18C7.26801 18.462 7.47501 18.693 7.93101 18.739C8.06801 18.753 9.99801 18.759 12.22 18.752C16.177 18.74 16.263 18.738 16.396 18.66C16.669 18.499 16.792 18.182 16.723 17.815C16.709 17.7159 16.6722 17.6214 16.6155 17.539C16.5587 17.4566 16.4836 17.3884 16.396 17.34C16.263 17.261 16.183 17.26 12.1 17.254C9.81201 17.251 7.87101 17.262 7.78701 17.278Z"}),filter:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.70101 2.285C3.36801 2.333 3.06101 2.498 2.78001 2.78C2.32401 3.235 2.24101 3.542 2.24201 4.78C2.24301 5.7 2.27701 5.992 2.42201 6.325C2.52701 6.565 2.73401 6.78 5.88701 9.941L9.24001 13.302L9.24101 16.241C9.24101 17.963 9.25801 19.296 9.28101 19.46C9.35901 20.009 9.72801 20.533 10.203 20.768C10.42 20.875 12.338 21.378 12.77 21.441C13.303 21.518 13.82 21.34 14.223 20.941C14.503 20.663 14.657 20.369 14.718 19.997C14.744 19.834 14.76 18.558 14.76 16.521V13.302L18.113 9.941C21.266 6.78 21.473 6.565 21.578 6.325C21.723 5.992 21.757 5.7 21.758 4.78C21.759 3.542 21.676 3.235 21.22 2.78C20.929 2.488 20.633 2.335 20.26 2.282C19.91 2.232 4.04601 2.234 3.70101 2.285ZM20.167 3.826C20.234 3.887 20.24 3.971 20.24 4.795V5.698L16.887 9.059C13.731 12.222 13.527 12.435 13.422 12.675C13.361 12.815 13.296 13.049 13.277 13.195C13.258 13.341 13.242 14.89 13.241 16.637C13.24 19.536 13.234 19.82 13.174 19.887C13.1282 19.9312 13.0676 19.9568 13.004 19.959C12.947 19.958 12.442 19.842 11.881 19.701C11.174 19.523 10.847 19.424 10.811 19.375C10.771 19.319 10.76 18.695 10.759 16.382C10.758 14.775 10.742 13.341 10.723 13.195C10.6951 13.0166 10.6464 12.8421 10.578 12.675C10.473 12.435 10.266 12.22 7.11301 9.059L3.76001 5.698V4.802C3.76001 4.025 3.76901 3.897 3.82601 3.833C3.89001 3.763 4.19601 3.76 11.993 3.76C19.475 3.76 20.099 3.765 20.167 3.826Z"}),"first-page":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5303 5.46967C11.8232 5.76256 11.8232 6.23744 11.5303 6.53033L6.06066 12L11.5303 17.4697C11.8232 17.7626 11.8232 18.2374 11.5303 18.5303C11.2374 18.8232 10.7626 18.8232 10.4697 18.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697L10.4697 5.46967C10.7626 5.17678 11.2374 5.17678 11.5303 5.46967ZM19.5303 5.46967C19.8232 5.76256 19.8232 6.23744 19.5303 6.53033L14.0607 12L19.5303 17.4697C19.8232 17.7626 19.8232 18.2374 19.5303 18.5303C19.2374 18.8232 18.7626 18.8232 18.4697 18.5303L12.4697 12.5303C12.1768 12.2374 12.1768 11.7626 12.4697 11.4697L18.4697 5.46967C18.7626 5.17678 19.2374 5.17678 19.5303 5.46967Z"}),folder:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.75 4.75V10.25H21.25V7.75H12.7221C12.722 7.75 12.7221 7.75 12.7221 7.75C12.4003 7.75001 12.0891 7.63511 11.8446 7.426L8.72256 4.75H2.75ZM21.25 11.75H2.75V19.25H21.25V11.75ZM1.64541 3.64541C1.89858 3.39223 2.24196 3.25 2.6 3.25H8.77794C8.77792 3.25 8.77796 3.25 8.77794 3.25C9.09969 3.24999 9.41092 3.36489 9.65544 3.574L12.7774 6.25H21.4C21.5773 6.25 21.7528 6.28492 21.9166 6.35276C22.0804 6.42061 22.2292 6.52005 22.3546 6.64541C22.48 6.77076 22.5794 6.91959 22.6472 7.08338C22.7151 7.24717 22.75 7.42272 22.75 7.6V19.4C22.75 19.758 22.6078 20.1014 22.3546 20.3546C22.1014 20.6078 21.758 20.75 21.4 20.75H2.6C2.24196 20.75 1.89858 20.6078 1.64541 20.3546C1.39223 20.1014 1.25 19.758 1.25 19.4V4.6C1.25 4.24196 1.39223 3.89858 1.64541 3.64541Z"}),home:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.83852L2.33542 8.67082C1.96494 8.85606 1.51443 8.70589 1.32919 8.33541C1.14395 7.96492 1.29412 7.51442 1.6646 7.32918L11.3966 2.46318C11.5839 2.36969 11.7907 2.32082 12 2.32082C12.2093 2.32082 12.4157 2.36948 12.603 2.46297L22.3354 7.32918C22.7059 7.51442 22.8561 7.96492 22.6708 8.33541C22.4856 8.70589 22.0351 8.85606 21.6646 8.67082L12 3.83852ZM12 13.75C11.6685 13.75 11.3505 13.8817 11.1161 14.1161C10.8817 14.3505 10.75 14.6685 10.75 15V18C10.75 18.4142 10.4142 18.75 10 18.75C9.5858 18.75 9.25001 18.4142 9.25001 18V15C9.25001 14.2706 9.53974 13.5712 10.0555 13.0555C10.5712 12.5397 11.2707 12.25 12 12.25C12.7294 12.25 13.4288 12.5397 13.9446 13.0555C14.4603 13.5712 14.75 14.2706 14.75 15V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V15C13.25 14.6685 13.1183 14.3505 12.8839 14.1161C12.6495 13.8817 12.3315 13.75 12 13.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.00001 10.25C4.41423 10.25 4.75001 10.5858 4.75001 11V19C4.75001 19.3315 4.88171 19.6495 5.11613 19.8839C5.35055 20.1183 5.66849 20.25 6.00001 20.25H18C18.3315 20.25 18.6495 20.1183 18.8839 19.8839C19.1183 19.6495 19.25 19.3315 19.25 19V11C19.25 10.5858 19.5858 10.25 20 10.25C20.4142 10.25 20.75 10.5858 20.75 11V19C20.75 19.7293 20.4603 20.4288 19.9446 20.9445C19.4288 21.4603 18.7294 21.75 18 21.75H6.00001C5.27067 21.75 4.57119 21.4603 4.05547 20.9445C3.53974 20.4288 3.25001 19.7293 3.25001 19V11C3.25001 10.5858 3.5858 10.25 4.00001 10.25Z"})]}),"info-circled":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75ZM12.5145 6.94405C12.821 7.22268 12.8436 7.69702 12.565 8.00351L12.555 8.01451C12.2763 8.321 11.802 8.34358 11.4955 8.06495C11.189 7.78632 11.1664 7.31199 11.445 7.00549L11.455 6.99449C11.7337 6.688 12.208 6.66542 12.5145 6.94405ZM12 10.75C12.4142 10.75 12.75 11.0858 12.75 11.5V16.5C12.75 16.9142 12.4142 17.25 12 17.25C11.5858 17.25 11.25 16.9142 11.25 16.5V11.5C11.25 11.0858 11.5858 10.75 12 10.75Z"}),language:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.25C9.41421 2.25 9.75 2.58579 9.75 3V4.25H16C16.4142 4.25 16.75 4.58579 16.75 5C16.75 5.41421 16.4142 5.75 16 5.75H14.0468C13.2071 8.20446 11.7118 10.5038 10.0251 12.542L12.5219 14.9614C12.8194 15.2496 12.8269 15.7244 12.5386 16.0219C12.2504 16.3194 11.7756 16.3269 11.4781 16.0386L9.04233 13.6784C7.53174 15.3536 5.92187 16.8401 4.48818 18.0694C4.17373 18.339 3.70025 18.3026 3.43063 17.9882C3.16102 17.6737 3.19737 17.2002 3.51182 16.9306C4.94061 15.7056 6.52886 14.2357 8.0029 12.5909C7.5724 12.0785 7.09778 11.4651 6.66951 10.8792C6.09602 10.0946 5.56072 9.29849 5.32918 8.83541C5.14394 8.46493 5.29411 8.01442 5.66459 7.82918C6.03507 7.64394 6.48558 7.79411 6.67082 8.16459C6.83928 8.50151 7.30398 9.20535 7.88049 9.99403C8.24447 10.492 8.63488 10.9991 8.99305 11.4354C10.4421 9.66228 11.6864 7.74253 12.4513 5.75H2C1.58579 5.75 1.25 5.41421 1.25 5C1.25 4.58579 1.58579 4.25 2 4.25H8.25V3C8.25 2.58579 8.58579 2.25 9 2.25ZM17.5 9.75C17.8112 9.75 18.0901 9.94219 18.2009 10.233L21.0579 17.733L22.2009 20.733C22.3483 21.12 22.1541 21.5534 21.767 21.7009C21.38 21.8483 20.9466 21.6541 20.7991 21.267L19.8402 18.75H15.1598L14.2009 21.267C14.0534 21.6541 13.62 21.8483 13.233 21.7009C12.8459 21.5534 12.6517 21.12 12.7991 20.733L13.9421 17.733L16.7991 10.233C16.9099 9.94219 17.1888 9.75 17.5 9.75ZM15.7313 17.25H19.2687L17.5 12.6069L15.7313 17.25Z"}),"last-page":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.46967 5.46967C4.76256 5.17678 5.23744 5.17678 5.53033 5.46967L11.5303 11.4697C11.8232 11.7626 11.8232 12.2374 11.5303 12.5303L5.53033 18.5303C5.23744 18.8232 4.76256 18.8232 4.46967 18.5303C4.17678 18.2374 4.17678 17.7626 4.46967 17.4697L9.93934 12L4.46967 6.53033C4.17678 6.23744 4.17678 5.76256 4.46967 5.46967ZM12.4697 5.46967C12.7626 5.17678 13.2374 5.17678 13.5303 5.46967L19.5303 11.4697C19.8232 11.7626 19.8232 12.2374 19.5303 12.5303L13.5303 18.5303C13.2374 18.8232 12.7626 18.8232 12.4697 18.5303C12.1768 18.2374 12.1768 17.7626 12.4697 17.4697L17.9393 12L12.4697 6.53033C12.1768 6.23744 12.1768 5.76256 12.4697 5.46967Z"}),link:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 11.998C1.25 8.80371 3.90916 6.25 7.143 6.25H8.857C12.1014 6.25 14.75 9.09595 14.75 11.998C14.75 12.4122 14.4142 12.748 14 12.748C13.5858 12.748 13.25 12.4122 13.25 11.998C13.25 9.91605 11.2646 7.75 8.857 7.75H7.143C4.69684 7.75 2.75 9.6723 2.75 11.998C2.75 14.0024 4.19361 15.7046 6.16151 16.1386C6.4837 16.2095 6.81264 16.2452 7.14254 16.245C7.55675 16.2447 7.89275 16.5803 7.893 16.9945C7.89325 17.4088 7.55767 17.7447 7.14346 17.745C6.7047 17.7453 6.26721 17.6978 5.83871 17.6035C3.22661 17.0274 1.25 14.7497 1.25 11.998Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8566 6.25C17.2953 6.24977 17.7328 6.29722 18.1612 6.39153C20.7739 6.96655 22.75 9.24567 22.75 11.998C22.75 15.1925 20.0906 17.745 16.857 17.745H15.143C11.8987 17.745 9.25 14.8991 9.25 11.998C9.25 11.5838 9.58579 11.248 10 11.248C10.4142 11.248 10.75 11.5838 10.75 11.998C10.75 14.0789 12.7353 16.245 15.143 16.245H16.857C19.3034 16.245 21.25 14.3235 21.25 11.998C21.25 9.99233 19.8061 8.28945 17.8388 7.85647C17.5165 7.78553 17.1874 7.74983 16.8574 7.75C16.4432 7.75022 16.1072 7.41461 16.107 7.0004C16.1068 6.58619 16.4424 6.25022 16.8566 6.25Z"})]}),"line-chart":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3.25C4.41422 3.25 4.75 3.58579 4.75 4V19.25H20C20.4142 19.25 20.75 19.5858 20.75 20C20.75 20.4142 20.4142 20.75 20 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V4C3.25 3.58579 3.58579 3.25 4 3.25Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0303 6.96967C20.3232 7.26256 20.3232 7.73744 20.0303 8.03033L15.5303 12.5303C15.2374 12.8232 14.7626 12.8232 14.4697 12.5303L11.9832 10.0438L4.51296 17.0472C4.21077 17.3305 3.73615 17.3151 3.45285 17.013C3.16955 16.7108 3.18486 16.2361 3.48705 15.9528L11.487 8.45285C11.7824 8.17599 12.2441 8.18343 12.5303 8.46967L15 10.9393L18.9697 6.96967C19.2626 6.67678 19.7374 6.67678 20.0303 6.96967Z"})]}),lock:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.19134 5.06191C8.93037 4.03543 10.1555 3.25 12 3.25C13.8445 3.25 15.0696 4.03543 15.8087 5.06191C16.5202 6.05015 16.75 7.21346 16.75 8V11.25H17.4C17.758 11.25 18.1014 11.3922 18.3546 11.6454C18.6078 11.8986 18.75 12.242 18.75 12.6V19.4C18.75 19.758 18.6078 20.1014 18.3546 20.3546C18.1014 20.6078 17.758 20.75 17.4 20.75H6.6C6.24196 20.75 5.89858 20.6078 5.64541 20.3546C5.39223 20.1014 5.25 19.758 5.25 19.4V12.6C5.25 12.242 5.39223 11.8986 5.64541 11.6454C5.89858 11.3922 6.24196 11.25 6.6 11.25H7.25V8C7.25 7.21346 7.47984 6.05015 8.19134 5.06191ZM8.75 11.25H15.25V8C15.25 7.45354 15.0798 6.61685 14.5913 5.93834C14.1304 5.29807 13.3555 4.75 12 4.75C10.6445 4.75 9.86963 5.29807 9.40866 5.93834C8.92016 6.61685 8.75 7.45354 8.75 8V11.25ZM6.75 12.75V19.25H17.25V12.75H6.75Z"}),"lock-open":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.46967 2.46967C2.76256 2.17678 3.23744 2.17678 3.53033 2.46967L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L18.7007 19.7614C18.639 19.9837 18.5206 20.1886 18.3546 20.3546C18.1014 20.6078 17.758 20.75 17.4 20.75H6.6C6.24196 20.75 5.89858 20.6078 5.64541 20.3546C5.39223 20.1014 5.25 19.758 5.25 19.4V12.6C5.25 12.242 5.39223 11.8986 5.64541 11.6454C5.89858 11.3922 6.24196 11.25 6.6 11.25H7.25V8.31066L2.46967 3.53033C2.17678 3.23744 2.17678 2.76256 2.46967 2.46967ZM8.75 9.81066V11.25H10.1893L8.75 9.81066ZM11.67 12.7307C11.6154 12.7433 11.5585 12.75 11.5 12.75H6.75V19.25H17.25V18.5C17.25 18.4415 17.2567 18.3846 17.2693 18.33L11.67 12.7307ZM9.80959 3.70736C10.4263 3.41487 11.1537 3.25 12 3.25C13.8445 3.25 15.0696 4.03543 15.8087 5.06191C16.5202 6.05015 16.75 7.21346 16.75 8V11.25H17.4C17.758 11.25 18.1014 11.3922 18.3546 11.6454C18.6078 11.8986 18.75 12.242 18.75 12.6V13C18.75 13.4142 18.4142 13.75 18 13.75C17.5858 13.75 17.25 13.4142 17.25 13V12.75H16C15.5858 12.75 15.25 12.4142 15.25 12V8C15.25 7.45354 15.0798 6.61685 14.5913 5.93834C14.1304 5.29807 13.3555 4.75 12 4.75C11.3523 4.75 10.8477 4.87513 10.4524 5.06264C10.0782 5.24015 9.63087 5.08066 9.45336 4.70641C9.27585 4.33216 9.43534 3.88487 9.80959 3.70736Z"}),location:oh(rh,{children:[ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.25 12C4.25 7.7198 7.7198 4.25 12 4.25C16.2802 4.25 19.75 7.7198 19.75 12C19.75 16.2802 16.2802 19.75 12 19.75C7.7198 19.75 4.25 16.2802 4.25 12ZM12 5.75C8.54822 5.75 5.75 8.54822 5.75 12C5.75 15.4518 8.54822 18.25 12 18.25C15.4518 18.25 18.25 15.4518 18.25 12C18.25 8.54822 15.4518 5.75 12 5.75Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 18.25C12.4142 18.25 12.75 18.5858 12.75 19V21C12.75 21.4142 12.4142 21.75 12 21.75C11.5858 21.75 11.25 21.4142 11.25 21V19C11.25 18.5858 11.5858 18.25 12 18.25Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H5C5.41421 11.25 5.75 11.5858 5.75 12C5.75 12.4142 5.41421 12.75 5 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V5C12.75 5.41421 12.4142 5.75 12 5.75C11.5858 5.75 11.25 5.41421 11.25 5V3C11.25 2.58579 11.5858 2.25 12 2.25Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.25 12C18.25 11.5858 18.5858 11.25 19 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H19C18.5858 12.75 18.25 12.4142 18.25 12Z"})]}),magic:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 1.25C6.91421 1.25 7.25 1.58579 7.25 2C7.25 3.50553 7.57403 4.38876 8.09993 4.91115C8.62685 5.43456 9.51143 5.75 11 5.75C11.4142 5.75 11.75 6.08579 11.75 6.5C11.75 6.91421 11.4142 7.25 11 7.25C9.51653 7.25 8.6305 7.57291 8.10171 8.10171C7.57291 8.6305 7.25 9.51653 7.25 11C7.25 11.4142 6.91421 11.75 6.5 11.75C6.08579 11.75 5.75 11.4142 5.75 11C5.75 9.51771 5.42538 8.63135 4.89533 8.10211C4.36505 7.57265 3.47838 7.25 2 7.25C1.58579 7.25 1.25 6.91421 1.25 6.5C1.25 6.08579 1.58579 5.75 2 5.75C3.48348 5.75 4.36871 5.43482 4.8971 4.91075C5.42425 4.38792 5.75 3.50435 5.75 2C5.75 1.58579 6.08579 1.25 6.5 1.25ZM6.49876 5.2869C6.3444 5.53734 6.16345 5.76742 5.9534 5.97575C5.74785 6.17962 5.52181 6.35533 5.27678 6.50542C5.52262 6.6574 5.74923 6.83501 5.95517 7.04064C6.16441 7.24956 6.34479 7.47987 6.49876 7.73012C6.65229 7.48006 6.83222 7.24987 7.04105 7.04105C7.24686 6.83523 7.47342 6.65749 7.7193 6.50542C7.47422 6.35524 7.24824 6.1794 7.04282 5.97535C6.83317 5.7671 6.65267 5.53715 6.49876 5.2869ZM15 7.25C15.4142 7.25 15.75 7.58579 15.75 8C15.75 10.3891 16.2623 11.8973 17.1949 12.8238C18.1284 13.7513 19.638 14.25 22 14.25C22.4142 14.25 22.75 14.5858 22.75 15C22.75 15.4142 22.4142 15.75 22 15.75C19.6429 15.75 18.132 16.2612 17.1966 17.1966C16.2612 18.132 15.75 19.6429 15.75 22C15.75 22.4142 15.4142 22.75 15 22.75C14.5858 22.75 14.25 22.4142 14.25 22C14.25 19.6442 13.7356 18.1329 12.7982 17.197C11.8606 16.2609 10.3489 15.75 8 15.75C7.58579 15.75 7.25 15.4142 7.25 15C7.25 14.5858 7.58579 14.25 8 14.25C10.3539 14.25 11.8642 13.7516 12.8 12.8234C13.7345 11.8964 14.25 10.3878 14.25 8C14.25 7.58579 14.5858 7.25 15 7.25ZM14.9984 12.2241C14.7107 12.8587 14.3338 13.4147 13.8563 13.8884C13.3846 14.3562 12.8338 14.7248 12.2086 15.0063C12.8348 15.2917 13.3862 15.6644 13.858 16.1355C14.3345 16.6112 14.711 17.1682 14.9984 17.8021C15.2849 17.1685 15.6602 16.6116 16.1359 16.1359C16.6072 15.6646 17.1583 15.2917 17.7848 15.0063C17.1594 14.7248 16.6088 14.356 16.1376 13.8879C15.661 13.4144 15.2851 12.8584 14.9984 12.2241Z"}),map:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.62101 2.307C8.55601 2.343 7.27201 2.782 5.76901 3.284C4.26601 3.786 2.97801 4.232 2.90801 4.276C2.73893 4.38242 2.59495 4.52425 2.48601 4.69172C2.37707 4.85919 2.30576 5.0483 2.27701 5.246C2.25201 5.406 2.24201 8.259 2.24901 12.98L2.26001 20.46L2.37501 20.709C2.50901 21 2.79201 21.284 3.07101 21.411C3.21401 21.476 3.33801 21.497 3.58001 21.496C3.89001 21.496 3.98101 21.469 6.45001 20.645L9.00101 19.794L11.73 20.702C13.232 21.202 14.527 21.645 14.608 21.686C14.799 21.781 15.195 21.785 15.372 21.694C15.442 21.657 16.729 21.217 18.232 20.716C19.735 20.214 21.022 19.768 21.092 19.724C21.304 19.593 21.509 19.354 21.628 19.1L21.74 18.86V3.54L21.625 3.291C21.4773 2.9863 21.2324 2.73935 20.929 2.589C20.788 2.526 20.659 2.504 20.42 2.503C20.108 2.501 20.034 2.523 17.55 3.354L14.999 4.206L12.27 3.298C10.768 2.798 9.47301 2.355 9.39201 2.314C9.20301 2.22 8.79001 2.216 8.62101 2.307ZM8.24001 11.25V18.46L6.00001 19.207L3.76001 19.953V5.539L5.99001 4.793L8.23001 4.043C8.23601 4.041 8.24001 7.285 8.24001 11.25ZM14.24 12.746V19.953L12 19.207L9.76001 18.46V4.047L12 4.793L14.24 5.54V12.746ZM20.24 11.25V18.46L18 19.207L15.76 19.953V5.539L17.99 4.793L20.23 4.043C20.235 4.041 20.24 7.285 20.24 11.25Z"}),minus:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H6C5.58579 12.75 5.25 12.4142 5.25 12Z"}),measurement:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.75 2.75V21.25H9.25V16.75H7C6.58579 16.75 6.25 16.4142 6.25 16C6.25 15.5858 6.58579 15.25 7 15.25H9.25V10.75H7C6.58579 10.75 6.25 10.4142 6.25 10C6.25 9.58579 6.58579 9.25 7 9.25H9.25V7C9.25 6.58579 9.58579 6.25 10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V9.25H15.25V7C15.25 6.58579 15.5858 6.25 16 6.25C16.4142 6.25 16.75 6.58579 16.75 7V9.25H21.25V2.75H2.75ZM21.4 10.75C21.758 10.75 22.1014 10.6078 22.3546 10.3546C22.6078 10.1014 22.75 9.75804 22.75 9.4V2.6C22.75 2.24196 22.6078 1.89858 22.3546 1.64541C22.1014 1.39223 21.758 1.25 21.4 1.25H2.6C2.24196 1.25 1.89858 1.39223 1.64541 1.64541C1.39223 1.89858 1.25 2.24196 1.25 2.6V21.4C1.25 21.5773 1.28492 21.7528 1.35276 21.9166C1.42061 22.0804 1.52005 22.2292 1.64541 22.3546C1.77076 22.48 1.91959 22.5794 2.08338 22.6472C2.24717 22.7151 2.42272 22.75 2.6 22.75H9.4C9.57728 22.75 9.75283 22.7151 9.91662 22.6472C10.0804 22.5794 10.2292 22.48 10.3546 22.3546C10.48 22.2292 10.5794 22.0804 10.6472 21.9166C10.7151 21.7528 10.75 21.5773 10.75 21.4V10.75H21.4Z"}),"menu-hamburger":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 5C2.25 4.58579 2.58579 4.25 3 4.25H11C11.4142 4.25 11.75 4.58579 11.75 5C11.75 5.41421 11.4142 5.75 11 5.75H3C2.58579 5.75 2.25 5.41421 2.25 5ZM2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H16C16.4142 11.25 16.75 11.5858 16.75 12C16.75 12.4142 16.4142 12.75 16 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12ZM2.25 19C2.25 18.5858 2.58579 18.25 3 18.25H21C21.4142 18.25 21.75 18.5858 21.75 19C21.75 19.4142 21.4142 19.75 21 19.75H3C2.58579 19.75 2.25 19.4142 2.25 19Z"}),"open-link":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75ZM9.128 9.172C9.128 8.75779 9.46379 8.422 9.878 8.422H14.828C15.2422 8.422 15.578 8.75779 15.578 9.172V14.122C15.578 14.5362 15.2422 14.872 14.828 14.872C14.4138 14.872 14.078 14.5362 14.078 14.122V10.9824L9.70128 15.3584C9.40836 15.6512 8.93349 15.6512 8.64062 15.3583C8.34776 15.0654 8.3478 14.5905 8.64072 14.2976L13.0171 9.922H9.878C9.46379 9.922 9.128 9.58621 9.128 9.172Z"}),pencil:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2576 4.33594C17.0934 4.33594 16.9308 4.36829 16.7791 4.43114C16.6274 4.49399 16.4896 4.5861 16.3735 4.70223L15.4238 5.65194L18.606 8.83341L19.5556 7.88375C19.5556 7.88378 19.5557 7.88373 19.5556 7.88375C19.7899 7.64935 19.9216 7.33142 19.9216 7.00001C19.9216 6.66859 19.79 6.35074 19.5557 6.11634C19.5557 6.11631 19.5558 6.11636 19.5557 6.11634L18.1417 4.70234C18.0256 4.58621 17.8877 4.49399 17.736 4.43114C17.5843 4.36829 17.4218 4.33594 17.2576 4.33594ZM17.5454 9.89409L14.3631 6.71258L5.27739 15.7973C5.0699 16.0048 4.94202 16.2787 4.91614 16.571C4.91614 16.571 4.91615 16.5709 4.91614 16.571L4.67408 19.3116C4.67084 19.3481 4.67561 19.3847 4.68808 19.4191C4.70055 19.4535 4.7204 19.4847 4.74624 19.5106C4.77207 19.5364 4.80326 19.5563 4.83763 19.5688C4.87199 19.5813 4.90867 19.5861 4.94509 19.5829L7.6858 19.3408C7.97852 19.3153 8.25288 19.1874 8.4607 18.9797L17.5454 9.89409ZM13.8328 5.12165L15.3126 3.64179C15.568 3.38631 15.8712 3.18365 16.2049 3.04538C16.5386 2.90711 16.8963 2.83594 17.2576 2.83594C17.6188 2.83594 17.9765 2.90711 18.3102 3.04538C18.6439 3.18364 18.9471 3.38631 19.2025 3.64179L20.6164 5.05568C21.1319 5.57138 21.4216 6.2708 21.4216 7.00001C21.4216 7.72921 21.132 8.42855 20.6165 8.94425L19.1364 10.4243L9.52141 20.0403C9.06417 20.4974 8.46039 20.7789 7.81631 20.8351L5.07704 21.0771C4.82211 21.0996 4.56534 21.0659 4.32484 20.9784C4.08436 20.8909 3.86597 20.7518 3.68509 20.5707C3.50421 20.3897 3.36524 20.1712 3.27798 19.9306C3.19079 19.6902 3.15734 19.4337 3.17996 19.179C3.17995 19.1791 3.17997 19.1789 3.17996 19.179C3.17997 19.1789 3.18001 19.1785 3.18002 19.1783L3.42196 16.439C3.47884 15.7959 3.7602 15.1932 4.21672 14.7367L13.8328 5.12165Z"}),people:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12.75C6.3424 12.75 4.75268 13.4085 3.58058 14.5806C2.40848 15.7527 1.75 17.3424 1.75 19V20C1.75 20.4142 1.41421 20.75 1 20.75C0.585786 20.75 0.25 20.4142 0.25 20V19C0.25 16.9446 1.06652 14.9733 2.51992 13.5199C3.97333 12.0665 5.94457 11.25 8 11.25C10.0554 11.25 12.0267 12.0665 13.4801 13.5199C14.9335 14.9733 15.75 16.9446 15.75 19V20C15.75 20.4142 15.4142 20.75 15 20.75C14.5858 20.75 14.25 20.4142 14.25 20V19C14.25 17.3424 13.5915 15.7527 12.4194 14.5806C11.2473 13.4085 9.6576 12.75 8 12.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9.75C16.8728 9.75 15.7918 10.1978 14.9948 10.9948C14.1978 11.7918 13.75 12.8728 13.75 14C13.75 14.4142 13.4142 14.75 13 14.75C12.5858 14.75 12.25 14.4142 12.25 14C12.25 12.475 12.8558 11.0125 13.9341 9.93414C15.0125 8.8558 16.475 8.25 18 8.25C18.7551 8.25 19.5028 8.39873 20.2004 8.68769C20.8981 8.97666 21.5319 9.4002 22.0659 9.93414C22.5998 10.4681 23.0233 11.1019 23.3123 11.7996C23.6013 12.4972 23.75 13.2449 23.75 14V14.5C23.75 14.9142 23.4142 15.25 23 15.25C22.5858 15.25 22.25 14.9142 22.25 14.5V14C22.25 13.4419 22.1401 12.8892 21.9265 12.3736C21.7129 11.858 21.3999 11.3894 21.0052 10.9948C20.6106 10.6001 20.142 10.2871 19.6264 10.0735C19.1108 9.85993 18.5581 9.75 18 9.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3483 3.34835C16.0516 2.64509 17.0054 2.25 18 2.25C18.9946 2.25 19.9484 2.64509 20.6517 3.34835C21.3549 4.05161 21.75 5.00544 21.75 6C21.75 6.99456 21.3549 7.94839 20.6517 8.65165C19.9484 9.35491 18.9946 9.75 18 9.75C17.0054 9.75 16.0516 9.35491 15.3483 8.65165C14.6451 7.94839 14.25 6.99456 14.25 6C14.25 5.00544 14.6451 4.05161 15.3483 3.34835ZM18 3.75C17.4033 3.75 16.831 3.98705 16.409 4.40901C15.9871 4.83097 15.75 5.40326 15.75 6C15.75 6.59674 15.9871 7.16903 16.409 7.59099C16.831 8.01295 17.4033 8.25 18 8.25C18.5967 8.25 19.169 8.01295 19.591 7.59099C20.0129 7.16903 20.25 6.59674 20.25 6C20.25 5.40326 20.0129 4.83097 19.591 4.40901C19.169 3.98705 18.5967 3.75 18 3.75ZM4.64124 4.64124C5.53204 3.75044 6.74022 3.25 8 3.25C9.25978 3.25 10.468 3.75044 11.3588 4.64124C12.2496 5.53204 12.75 6.74022 12.75 8C12.75 9.25978 12.2496 10.468 11.3588 11.3588C10.468 12.2496 9.25978 12.75 8 12.75C6.74022 12.75 5.53204 12.2496 4.64124 11.3588C3.75044 10.468 3.25 9.25978 3.25 8C3.25 6.74022 3.75044 5.53204 4.64124 4.64124ZM8 4.75C7.13805 4.75 6.3114 5.09241 5.7019 5.7019C5.09241 6.3114 4.75 7.13805 4.75 8C4.75 8.86195 5.09241 9.6886 5.7019 10.2981C6.3114 10.9076 7.13805 11.25 8 11.25C8.86195 11.25 9.6886 10.9076 10.2981 10.2981C10.9076 9.6886 11.25 8.86195 11.25 8C11.25 7.13805 10.9076 6.3114 10.2981 5.7019C9.6886 5.09241 8.86195 4.75 8 4.75Z"})]}),person:ih(rh,{children:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.64124 4.64124C9.53204 3.75044 10.7402 3.25 12 3.25C13.2598 3.25 14.468 3.75044 15.3588 4.64124C16.2496 5.53204 16.75 6.74022 16.75 8C16.75 9.25978 16.2496 10.468 15.3588 11.3588C15.2007 11.5168 15.0326 11.6626 14.8561 11.7955C15.83 12.1816 16.7249 12.7648 17.4801 13.5199C18.9335 14.9733 19.75 16.9446 19.75 19V20C19.75 20.4142 19.4142 20.75 19 20.75C18.5858 20.75 18.25 20.4142 18.25 20V19C18.25 17.3424 17.5915 15.7527 16.4194 14.5806C15.2473 13.4085 13.6576 12.75 12 12.75C10.3424 12.75 8.75268 13.4085 7.58058 14.5806C6.40848 15.7527 5.75 17.3424 5.75 19V20C5.75 20.4142 5.41421 20.75 5 20.75C4.58579 20.75 4.25 20.4142 4.25 20V19C4.25 16.9446 5.06652 14.9733 6.51992 13.5199C7.27507 12.7648 8.17002 12.1816 9.14393 11.7955C8.96736 11.6626 8.79931 11.5168 8.64124 11.3588C7.75044 10.468 7.25 9.25978 7.25 8C7.25 6.74022 7.75044 5.53204 8.64124 4.64124ZM12 4.75C11.138 4.75 10.3114 5.09241 9.7019 5.7019C9.09241 6.3114 8.75 7.13805 8.75 8C8.75 8.86195 9.09241 9.6886 9.7019 10.2981C10.3114 10.9076 11.138 11.25 12 11.25C12.862 11.25 13.6886 10.9076 14.2981 10.2981C14.9076 9.6886 15.25 8.86195 15.25 8C15.25 7.13805 14.9076 6.3114 14.2981 5.7019C13.6886 5.09241 12.862 4.75 12 4.75Z"})}),plus:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z"}),profile:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.34838 6.34835C10.0516 5.64509 11.0055 5.25 12 5.25C12.9946 5.25 13.9484 5.64509 14.6517 6.34835C15.3549 7.05161 15.75 8.00544 15.75 9C15.75 9.99456 15.3549 10.9484 14.6517 11.6517C13.9484 12.3549 12.9946 12.75 12 12.75C11.0055 12.75 10.0516 12.3549 9.34838 11.6517C8.64512 10.9484 8.25003 9.99456 8.25003 9C8.25003 8.00544 8.64512 7.05161 9.34838 6.34835ZM12 6.75C11.4033 6.75 10.831 6.98705 10.409 7.40901C9.98708 7.83097 9.75003 8.40326 9.75003 9C9.75003 9.59674 9.98708 10.169 10.409 10.591C10.831 11.0129 11.4033 11.25 12 11.25C12.5968 11.25 13.1691 11.0129 13.591 10.591C14.013 10.169 14.25 9.59674 14.25 9C14.25 8.40326 14.013 7.83097 13.591 7.40901C13.1691 6.98705 12.5968 6.75 12 6.75ZM4.27103 18.346L3.68057 17.8836C3.42517 18.2097 3.48248 18.6811 3.80858 18.9365C4.13355 19.191 4.60281 19.1349 4.85881 18.8118M4.27103 18.346C3.68057 17.8836 3.68028 17.8839 3.68057 17.8836L3.68176 17.882L3.68316 17.8803L3.6866 17.8759L3.69604 17.8642C3.70348 17.8551 3.71321 17.8433 3.72528 17.8291C3.74941 17.8006 3.78287 17.7623 3.82594 17.7155C3.91207 17.6221 4.03672 17.4948 4.20207 17.3452C4.53278 17.046 5.02671 16.6572 5.70084 16.2719C7.05389 15.4985 9.11379 14.75 12 14.75C14.8863 14.75 16.9464 15.4985 18.2997 16.2718C18.9739 16.6572 19.468 17.0459 19.7987 17.3451C19.9641 17.4947 20.0888 17.622 20.175 17.7154C20.2181 17.7622 20.2515 17.8005 20.2757 17.829C20.2877 17.8432 20.2975 17.855 20.3049 17.8641L20.3144 17.8758L20.3178 17.8801L20.3192 17.8819L20.3198 17.8827C20.3201 17.8831 20.3204 17.8834 19.7552 18.3263L20.3198 17.8827C20.5753 18.2087 20.5187 18.6809 20.1926 18.9364C19.8677 19.191 19.3983 19.135 19.1423 18.8119C19.1414 18.8108 19.1405 18.8097 19.1397 18.8086L19.73 18.346C19.1397 18.8086 19.1394 18.8083 19.1397 18.8086L19.1407 18.8098L19.1423 18.8119C19.1409 18.8102 19.1372 18.8057 19.1316 18.7991C19.1204 18.7859 19.1006 18.7631 19.072 18.732C19.0147 18.6698 18.9222 18.5748 18.7926 18.4576C18.5334 18.2231 18.1262 17.9003 17.5554 17.5742C16.4187 16.9245 14.6138 16.25 12 16.25C9.38627 16.25 7.58167 16.9245 6.44522 17.5741C5.87459 17.9003 5.46753 18.223 5.20843 18.4575C5.07887 18.5747 4.98641 18.6697 4.92915 18.7319C4.90053 18.7629 4.88074 18.7858 4.86953 18.799C4.86393 18.8056 4.86015 18.8102 4.85881 18.8118L4.8605 18.8097"})]}),question:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.55712 5.96705C9.02514 6.41845 8.64999 7.10275 8.64999 8.07999C8.64999 8.49421 8.31421 8.82999 7.89999 8.82999C7.48578 8.82999 7.14999 8.49421 7.14999 8.07999C7.14999 6.67074 7.71235 5.56516 8.58662 4.82331C9.44459 4.0953 10.5618 3.75024 11.65 3.75024C12.7382 3.75024 13.8554 4.0953 14.7134 4.82331C15.5876 5.56516 16.15 6.67074 16.15 8.07999C16.15 9.07312 15.897 9.81578 15.4914 10.4242C15.1448 10.9441 14.6942 11.3466 14.3164 11.684C14.2757 11.7203 14.2359 11.7559 14.1972 11.7907C13.7764 12.1694 13.4313 12.5053 13.1763 12.9556C12.9288 13.393 12.741 13.9869 12.741 14.898C12.741 15.3122 12.4052 15.648 11.991 15.648C11.5768 15.648 11.241 15.3122 11.241 14.898C11.241 13.7636 11.4793 12.9086 11.871 12.2167C12.2552 11.5379 12.7623 11.0641 13.1938 10.6758C13.2298 10.6434 13.265 10.6117 13.2996 10.5807C13.7007 10.2207 14.0082 9.94474 14.2433 9.59215C14.4769 9.24183 14.65 8.79137 14.65 8.07999C14.65 7.10275 14.2748 6.41845 13.7429 5.96705C13.1946 5.50182 12.4368 5.25024 11.65 5.25024C10.8632 5.25024 10.1054 5.50182 9.55712 5.96705ZM12.5145 18.4441C12.821 18.7227 12.8436 19.197 12.5649 19.5035L12.5549 19.5145C12.2763 19.821 11.802 19.8436 11.4955 19.5649C11.189 19.2863 11.1664 18.812 11.4451 18.5055L11.4551 18.4945C11.7337 18.188 12.208 18.1654 12.5145 18.4441Z"}),"question-circled":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C17.9372 1.25 22.75 6.06279 22.75 12C22.75 17.9372 17.9372 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12ZM12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C17.1088 21.25 21.25 17.1088 21.25 12C21.25 6.89121 17.1088 2.75 12 2.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3446 7.60313C10.0001 7.89541 9.75 8.34102 9.75 9C9.75 9.41421 9.41421 9.75 9 9.75C8.58579 9.75 8.25 9.41421 8.25 9C8.25 7.90898 8.68736 7.04209 9.37414 6.45937C10.0446 5.89048 10.9119 5.625 11.75 5.625C12.5881 5.625 13.4554 5.89048 14.1259 6.45937C14.8126 7.04209 15.25 7.90898 15.25 9C15.25 9.76588 15.0538 10.3495 14.7334 10.8301C14.4642 11.234 14.1143 11.5462 13.839 11.7919C13.8089 11.8187 13.7798 11.8447 13.7517 11.87C13.4446 12.1464 13.213 12.3743 13.0433 12.6741C12.881 12.961 12.75 13.3617 12.75 14C12.75 14.4142 12.4142 14.75 12 14.75C11.5858 14.75 11.25 14.4142 11.25 14C11.25 13.1383 11.4315 12.4765 11.7379 11.9352C12.037 11.4069 12.4304 11.0411 12.7483 10.755C12.7729 10.7328 12.797 10.7112 12.8205 10.6901C13.1207 10.4205 13.3276 10.2347 13.4853 9.99804C13.6337 9.77553 13.75 9.48412 13.75 9C13.75 8.34102 13.4999 7.89541 13.1554 7.60313C12.7946 7.29702 12.2869 7.125 11.75 7.125C11.2131 7.125 10.7054 7.29702 10.3446 7.60313ZM12.5145 17.4441C12.821 17.7227 12.8436 18.197 12.5649 18.5035L12.5549 18.5145C12.2763 18.821 11.802 18.8436 11.4955 18.5649C11.189 18.2863 11.1664 17.812 11.4451 17.5055L11.4551 17.4945C11.7337 17.188 12.208 17.1654 12.5145 17.4441Z"})]}),refresh:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.75C6.89121 2.75 2.75 6.89121 2.75 12C2.75 17.1088 6.89121 21.25 12 21.25C16.6363 21.25 20.4767 17.838 21.1464 13.3884C21.208 12.9788 21.59 12.6967 21.9996 12.7584C22.4092 12.82 22.6913 13.202 22.6297 13.6116C21.8513 18.784 17.3897 22.75 12 22.75C6.06279 22.75 1.25 17.9372 1.25 12C1.25 6.06279 6.06279 1.25 12 1.25C16.4086 1.25 20.1972 3.90434 21.8553 7.69975C22.0211 8.07933 21.8478 8.52146 21.4682 8.68728C21.0887 8.8531 20.6465 8.67982 20.4807 8.30025C19.0528 5.03166 15.7914 2.75 12 2.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 2.25C22.4142 2.25 22.75 2.58579 22.75 3V7.4C22.75 7.57728 22.7151 7.75283 22.6472 7.91662C22.5794 8.08041 22.48 8.22924 22.3546 8.35459C22.2292 8.47995 22.0804 8.57939 21.9166 8.64724C21.7528 8.71508 21.5773 8.75 21.4 8.75H17C16.5858 8.75 16.25 8.41421 16.25 8C16.25 7.58579 16.5858 7.25 17 7.25H21.25V3C21.25 2.58579 21.5858 2.25 22 2.25Z"})]}),redo:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.28 4.264C16.117 4.334 15.858 4.573 15.777 4.728C15.701 4.872 15.705 5.134 15.785 5.292C15.821 5.362 16.373 5.946 17.012 6.589L18.173 7.758L13.217 7.77L8.26002 7.783L7.76002 7.894C6.42602 8.189 5.38702 8.728 4.63102 9.515C3.60202 10.585 3.16102 11.975 3.28202 13.767C3.38802 15.351 3.90202 16.579 4.86002 17.541C5.61402 18.299 6.60502 18.818 7.86002 19.112L8.30002 19.216L13.12 19.229L17.94 19.242L18.117 19.151C18.357 19.028 18.44 18.861 18.44 18.5C18.44 18.166 18.357 17.979 18.155 17.86C18.023 17.782 17.928 17.78 13.28 17.758C8.91002 17.738 8.51702 17.73 8.24102 17.664C6.14202 17.162 5.04802 16.003 4.79802 14.018C4.72802 13.468 4.77002 12.472 4.87902 12.06C5.07102 11.335 5.51902 10.648 6.08602 10.211C6.55502 9.849 7.29102 9.534 8.10002 9.348C8.45102 9.267 8.57602 9.265 13.319 9.251L18.178 9.238L17.014 10.409C16.374 11.053 15.821 11.638 15.785 11.708C15.7452 11.7968 15.7239 11.8928 15.7225 11.9902C15.7212 12.0875 15.7397 12.1841 15.777 12.274C15.867 12.447 16.176 12.71 16.355 12.763C16.696 12.866 16.722 12.845 18.615 10.964C20.477 9.113 20.693 8.88 20.764 8.641C20.867 8.3 20.858 8.289 18.805 6.232C16.684 4.107 16.669 4.096 16.28 4.264Z"}),registration:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.75C3.66848 5.75 3.35054 5.8817 3.11612 6.11612C2.8817 6.35054 2.75 6.66848 2.75 7V17C2.75 17.3315 2.8817 17.6495 3.11612 17.8839C3.35054 18.1183 3.66848 18.25 4 18.25H20C20.3315 18.25 20.6495 18.1183 20.8839 17.8839C21.1183 17.6495 21.25 17.3315 21.25 17V9.75H6C5.58579 9.75 5.25 9.41421 5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H21.25V7C21.25 6.66848 21.1183 6.35054 20.8839 6.11612C20.6495 5.8817 20.3315 5.75 20 5.75H4ZM2.05546 5.05546C2.57118 4.53973 3.27065 4.25 4 4.25H20C20.7293 4.25 21.4288 4.53973 21.9445 5.05546C22.4603 5.57118 22.75 6.27065 22.75 7V17C22.75 17.7293 22.4603 18.4288 21.9445 18.9445C21.4288 19.4603 20.7293 19.75 20 19.75H4C3.27065 19.75 2.57118 19.4603 2.05546 18.9445C1.53973 18.4288 1.25 17.7293 1.25 17V7C1.25 6.27065 1.53973 5.57118 2.05546 5.05546Z"}),"remote-sensing":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.379 2.282C9.42007 2.40777 7.5448 3.12213 5.9987 4.33153C4.4526 5.54094 3.30772 7.18902 2.71397 9.06C2.54045 9.61759 2.41499 10.189 2.33897 10.768C2.27397 11.269 2.25097 12.504 2.29897 12.945C2.44097 14.26 2.78597 15.427 3.34297 16.476L3.52097 16.811L3.40297 16.996C2.86997 17.828 2.77097 18.79 3.14097 19.545C3.49897 20.278 4.31897 20.93 5.07197 21.081C5.62497 21.192 6.28897 21.048 6.91797 20.681C7.62297 20.27 9.07497 18.908 9.49797 18.263C9.92797 17.607 10.253 16.777 10.422 15.9C10.46 15.702 10.506 15.524 10.524 15.504C10.543 15.483 10.627 15.494 10.728 15.532C11.188 15.703 11.411 15.738 12.04 15.736C12.598 15.734 12.696 15.723 13.019 15.624C14.324 15.227 15.227 14.324 15.624 13.019C15.723 12.696 15.734 12.598 15.736 12.04C15.738 11.416 15.7 11.167 15.538 10.749C15.511 10.6848 15.4916 10.6177 15.48 10.549C15.48 10.518 15.655 10.465 15.944 10.408C16.831 10.232 17.637 9.915 18.267 9.496C18.5352 9.30322 18.7889 9.09098 19.026 8.861L19.449 8.448L19.57 8.714C19.855 9.343 20.111 10.297 20.198 11.06C20.251 11.523 20.252 12.486 20.199 12.921C19.905 15.358 18.584 17.525 16.577 18.861C15.345 19.681 13.605 20.24 12.281 20.24C11.702 20.24 11.424 20.355 11.311 20.64C11.24 20.817 11.26 21.258 11.344 21.402C11.527 21.714 11.74 21.769 12.58 21.719C14.3037 21.6264 15.9698 21.0667 17.4 20.1C18.4832 19.3857 19.4088 18.4573 20.12 17.372C21.309 15.581 21.835 13.616 21.716 11.409C21.6547 10.0964 21.3127 8.81219 20.713 7.643L20.481 7.185L20.598 7.003C21.13 6.172 21.228 5.209 20.859 4.455C20.501 3.723 19.668 3.059 18.927 2.917C18.5575 2.86392 18.1811 2.88534 17.82 2.98C17.484 3.084 16.998 3.346 16.637 3.617C16.207 3.94 15.206 4.869 14.876 5.251C14.238 5.989 13.841 6.857 13.582 8.077C13.5522 8.23239 13.5161 8.38651 13.474 8.539C13.466 8.547 13.333 8.51 13.177 8.458C12.75 8.314 12.361 8.267 11.82 8.292C11.347 8.30296 10.8818 8.41407 10.455 8.618C9.96652 8.84399 9.5319 9.17158 9.18011 9.57889C8.82833 9.9862 8.56747 10.4639 8.41497 10.98C8.31397 11.312 8.30497 11.393 8.30497 12.02C8.30497 12.65 8.31297 12.725 8.41397 13.04C8.45733 13.1701 8.49668 13.3015 8.53197 13.434C8.53797 13.473 8.40697 13.516 8.07997 13.584C6.70897 13.869 5.81997 14.314 4.97397 15.139L4.55097 15.552L4.43097 15.288C3.65497 13.575 3.54397 11.402 4.13797 9.52C4.50997 8.341 5.11897 7.305 6.00097 6.349C6.78197 5.504 7.97297 4.703 9.03997 4.305C9.87289 3.98479 10.7524 3.8024 11.644 3.765C12.379 3.723 12.52 3.676 12.648 3.425C12.745 3.234 12.764 2.798 12.681 2.638C12.498 2.285 12.28 2.226 11.379 2.282ZM18.856 4.461C19.234 4.64 19.6 5.125 19.6 5.446C19.6 5.671 19.458 6.008 19.205 6.384C18.938 6.78 18.094 7.713 17.703 8.045C17.129 8.531 16.324 8.838 15.048 9.056L14.917 9.079L14.942 8.929C15.159 7.667 15.462 6.881 15.955 6.297C16.383 5.79 17.439 4.841 17.828 4.613C18.26 4.36 18.552 4.317 18.856 4.461ZM12.5 9.82C13.329 9.995 14.04 10.721 14.22 11.58C14.252 11.734 14.279 11.932 14.279 12.02C14.279 12.561 14.007 13.196 13.601 13.601C13.196 14.007 12.561 14.279 12.02 14.279C11.46 14.279 10.85 14.011 10.424 13.577C9.85997 13.005 9.65697 12.317 9.81997 11.54C9.91297 11.103 10.091 10.784 10.438 10.438C11.01 9.866 11.714 9.655 12.5 9.82ZM9.05797 15.07C8.84497 16.307 8.54097 17.109 8.06597 17.68C7.80897 17.99 6.79997 18.941 6.45997 19.193C5.92897 19.588 5.47997 19.708 5.14797 19.544C4.87428 19.3941 4.64859 19.1698 4.49697 18.897C4.41097 18.721 4.39397 18.64 4.40897 18.479C4.43297 18.232 4.64797 17.787 4.91197 17.438C5.19697 17.062 6.01697 16.186 6.31997 15.934C6.86997 15.476 7.79797 15.124 8.91997 14.947L9.05197 14.925C9.06897 14.922 9.07197 14.988 9.05797 15.07Z"}),search:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.81282 4.81282C6.45376 3.17187 8.67936 2.25 11 2.25C13.3206 2.25 15.5462 3.17187 17.1872 4.81282C18.8281 6.45376 19.75 8.67936 19.75 11C19.75 13.0693 19.017 15.0631 17.6948 16.6341L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L16.6341 17.6948C15.0631 19.017 13.0693 19.75 11 19.75C8.67936 19.75 6.45376 18.8281 4.81282 17.1872C3.17187 15.5462 2.25 13.3206 2.25 11C2.25 8.67936 3.17187 6.45376 4.81282 4.81282ZM11 3.75C9.07718 3.75 7.23311 4.51384 5.87348 5.87348C4.51384 7.23311 3.75 9.07718 3.75 11C3.75 12.9228 4.51384 14.7669 5.87348 16.1265C7.23311 17.4862 9.07718 18.25 11 18.25C12.9228 18.25 14.7669 17.4862 16.1265 16.1265C17.4862 14.7669 18.25 12.9228 18.25 11C18.25 9.07718 17.4862 7.23311 16.1265 5.87348C14.7669 4.51384 12.9228 3.75 11 3.75Z"}),settings:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.34835 9.34835C10.0516 8.64509 11.0054 8.25 12 8.25C12.9946 8.25 13.9484 8.64509 14.6517 9.34835C15.3549 10.0516 15.75 11.0054 15.75 12C15.75 12.9946 15.3549 13.9484 14.6517 14.6517C13.9484 15.3549 12.9946 15.75 12 15.75C11.0054 15.75 10.0516 15.3549 9.34835 14.6517C8.64509 13.9484 8.25 12.9946 8.25 12C8.25 11.0054 8.64509 10.0516 9.34835 9.34835ZM12 9.75C11.4033 9.75 10.831 9.98705 10.409 10.409C9.98705 10.831 9.75 11.4033 9.75 12C9.75 12.5967 9.98705 13.169 10.409 13.591C10.831 14.0129 11.4033 14.25 12 14.25C12.5967 14.25 13.169 14.0129 13.591 13.591C14.0129 13.169 14.25 12.5967 14.25 12C14.25 11.4033 14.0129 10.831 13.591 10.409C13.169 9.98705 12.5967 9.75 12 9.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2557 1.80909C10.3424 1.47962 10.6403 1.25 10.981 1.25H12.935C13.2758 1.25 13.5737 1.47974 13.6604 1.80933L14.1885 3.8183L16.1262 4.61501L17.5127 3.42989C17.8103 3.17551 18.2535 3.19283 18.5303 3.46967L20.5303 5.46967C20.806 5.74538 20.8245 6.18637 20.5728 6.48416L19.3927 7.88025L20.1712 9.76083L22.1849 10.2732C22.5173 10.3577 22.75 10.657 22.75 11V12.978C22.75 13.3196 22.5192 13.618 22.1886 13.7039L20.1641 14.23L19.384 16.114L20.572 17.5149C20.8245 17.8127 20.8064 18.2543 20.5303 18.5303L18.5303 20.5303C18.2486 20.8121 17.7957 20.8243 17.4992 20.5583L17.4436 20.5086C17.4076 20.4765 17.3556 20.4301 17.2917 20.3734C17.1638 20.2599 16.989 20.1055 16.8007 19.9416C16.5686 19.7395 16.3306 19.5356 16.1368 19.3757L14.2388 20.1619L13.7271 22.184C13.6429 22.5168 13.3434 22.75 13 22.75H11C10.6565 22.75 10.3569 22.5167 10.2728 22.1836L9.76231 20.1619L7.91871 19.4035L6.47388 20.5813C6.17563 20.8245 5.74176 20.8024 5.46967 20.5303L3.46967 18.5303C3.18854 18.2492 3.17563 17.7976 3.44024 17.5008L4.64078 16.1546L3.85162 14.2825L1.80261 13.7236C1.47634 13.6346 1.25 13.3382 1.25 13V11C1.25 10.6515 1.49009 10.3489 1.82949 10.2696L3.8244 9.80391L4.59117 7.91751L3.41782 6.47283C3.17556 6.17454 3.19794 5.7414 3.46967 5.46967L5.46967 3.46967C5.75056 3.18878 6.20174 3.17562 6.49852 3.43966L7.84886 4.64102L9.71764 3.85324L10.2557 1.80909ZM11.5591 2.75L11.0743 4.59191C11.0151 4.81693 10.8547 5.00172 10.6403 5.0921L7.99533 6.2071C7.72886 6.31944 7.42154 6.26856 7.20548 6.07634L6.03006 5.0306L5.00854 6.05212L6.03518 7.31617C6.20766 7.52853 6.25082 7.81797 6.1478 8.07142L5.0678 10.7284C4.97611 10.954 4.78062 11.121 4.54351 11.1764L2.75 11.5951V12.4272L4.59839 12.9314C4.8206 12.9921 5.00263 13.1514 5.0921 13.3637L6.2071 16.0087C6.31956 16.2754 6.26844 16.5831 6.07576 16.7992L5.03119 17.9705L6.05125 18.9906L7.31712 17.9587C7.53042 17.7848 7.82182 17.7417 8.07632 17.8464L10.6823 18.9184C10.9021 19.0088 11.066 19.198 11.1242 19.4284L11.5842 21.25H12.4161L12.8769 19.429C12.935 19.1994 13.0982 19.0107 13.317 18.9201L15.968 17.8221C16.2072 17.723 16.4806 17.7543 16.6912 17.9049C16.9477 18.0882 17.4135 18.4863 17.7858 18.8104C17.8487 18.8652 17.9102 18.9189 17.9689 18.9705L18.9812 17.9582L17.944 16.7351C17.7622 16.5207 17.7155 16.2228 17.823 15.9631L18.921 13.3111C19.011 13.0938 19.1977 12.9313 19.4254 12.8721L21.25 12.398V11.5831L19.4371 11.1218C19.2078 11.0635 19.0195 10.9004 18.929 10.6819L17.832 8.03186C17.7247 7.77261 17.7711 7.47513 17.9522 7.26084L18.9819 6.04261L17.9601 5.02075L16.7523 6.05311C16.5384 6.23597 16.2401 6.28368 15.9798 6.17666L13.2728 5.06366C13.0554 4.97425 12.8924 4.78806 12.8326 4.56067L12.3567 2.75H11.5591Z"})]}),share:ih(rh,{children:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 2.46967C11.7626 2.17678 12.2374 2.17678 12.5303 2.46967L16.0303 5.96967C16.3232 6.26256 16.3232 6.73744 16.0303 7.03033C15.7374 7.32322 15.2626 7.32322 14.9697 7.03033L12.75 4.81066V15C12.75 15.4142 12.4142 15.75 12 15.75C11.5858 15.75 11.25 15.4142 11.25 15V4.81066L9.03033 7.03033C8.73744 7.32322 8.26256 7.32322 7.96967 7.03033C7.67678 6.73744 7.67678 6.26256 7.96967 5.96967L11.4697 2.46967ZM4 12.25C4.41421 12.25 4.75 12.5858 4.75 13V19C4.75 19.3315 4.8817 19.6495 5.11612 19.8839C5.35054 20.1183 5.66848 20.25 6 20.25H18C18.3315 20.25 18.6495 20.1183 18.8839 19.8839C19.1183 19.6495 19.25 19.3315 19.25 19V13C19.25 12.5858 19.5858 12.25 20 12.25C20.4142 12.25 20.75 12.5858 20.75 13V19C20.75 19.7293 20.4603 20.4288 19.9445 20.9445C19.4288 21.4603 18.7293 21.75 18 21.75H6C5.27065 21.75 4.57118 21.4603 4.05546 20.9445C3.53973 20.4288 3.25 19.7293 3.25 19V13C3.25 12.5858 3.58579 12.25 4 12.25Z"})}),star:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.59 1.801C11.3063 1.88176 11.0474 2.03235 10.837 2.239C10.668 2.408 10.486 2.748 9.36201 4.996C8.65701 6.406 8.07201 7.56 8.06201 7.56C8.05201 7.56 6.79801 7.741 5.27501 7.963C3.53901 8.216 2.43101 8.395 2.30301 8.443C2.16111 8.50246 2.02682 8.57866 1.90301 8.67C1.56377 8.93493 1.34148 9.32193 1.28356 9.74844C1.22565 10.175 1.3367 10.6072 1.59301 10.953C1.67401 11.059 2.62701 12.006 3.71001 13.056C5.35201 14.648 5.67701 14.98 5.66001 15.053C5.64801 15.101 5.43901 16.292 5.19401 17.7C4.66501 20.735 4.65801 20.819 4.89001 21.288C5.26501 22.046 6.11201 22.42 6.87101 22.162C6.99701 22.12 8.20201 21.508 9.55001 20.803L12 19.521L14.45 20.803C15.797 21.508 17.003 22.12 17.129 22.163C17.889 22.42 18.735 22.046 19.11 21.288C19.342 20.818 19.335 20.735 18.806 17.7C18.6538 16.8171 18.4984 15.9348 18.34 15.053C18.323 14.98 18.649 14.646 20.29 13.057C21.373 12.007 22.326 11.06 22.407 10.953C22.613 10.6747 22.727 10.3391 22.733 9.99294C22.7391 9.64679 22.637 9.30736 22.441 9.022C22.2542 8.76491 21.9993 8.56507 21.705 8.445C21.564 8.392 20.536 8.226 18.724 7.962C17.7959 7.82622 16.8676 7.69222 15.939 7.56C15.929 7.56 15.343 6.406 14.638 4.996C13.209 2.139 13.221 2.158 12.697 1.913C12.48 1.811 12.373 1.787 12.087 1.776C11.9209 1.76717 11.7544 1.77554 11.59 1.801ZM12.06 3.265C12.098 3.28 12.702 4.454 13.478 6.021C14.822 8.734 14.831 8.752 15.007 8.854C15.168 8.949 15.447 8.996 18.102 9.379C19.707 9.61 21.065 9.813 21.12 9.831C21.373 9.91 21.332 9.955 19.1 12.117C17.934 13.246 16.936 14.243 16.882 14.332C16.8113 14.4399 16.7789 14.5685 16.79 14.697C16.793 14.809 17.014 16.158 17.28 17.695C17.546 19.232 17.759 20.535 17.752 20.591C17.745 20.646 17.712 20.71 17.677 20.731C17.629 20.761 16.986 20.441 14.917 19.357C12.324 17.999 12.211 17.944 12 17.944C11.788 17.944 11.679 17.997 9.08301 19.357C7.01301 20.442 6.37101 20.761 6.32301 20.731C6.28801 20.71 6.25501 20.647 6.24801 20.592C6.24101 20.537 6.45501 19.225 6.72201 17.676C6.98901 16.127 7.21001 14.777 7.21201 14.676C7.21604 14.5539 7.1833 14.4333 7.11801 14.33C7.06401 14.241 6.06601 13.245 4.90001 12.117C2.66701 9.955 2.62701 9.91 2.88001 9.831C3.88442 9.66993 4.89048 9.51926 5.89801 9.379C8.55201 8.996 8.83301 8.948 8.99301 8.854C9.16801 8.752 9.17901 8.732 10.522 6.02C11.266 4.518 11.898 3.279 11.927 3.267L11.987 3.243C12.0122 3.24727 12.0367 3.25466 12.06 3.265Z"}),sort:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4697 3.46967C18.7626 3.17678 19.2374 3.17678 19.5303 3.46967L22.5303 6.46967C22.8232 6.76256 22.8232 7.23744 22.5303 7.53033C22.2374 7.82322 21.7626 7.82322 21.4697 7.53033L19.75 5.81066V18.1893L21.4697 16.4697C21.7626 16.1768 22.2374 16.1768 22.5303 16.4697C22.8232 16.7626 22.8232 17.2374 22.5303 17.5303L19.5303 20.5303C19.2374 20.8232 18.7626 20.8232 18.4697 20.5303L15.4697 17.5303C15.1768 17.2374 15.1768 16.7626 15.4697 16.4697C15.7626 16.1768 16.2374 16.1768 16.5303 16.4697L18.25 18.1893V5.81066L16.5303 7.53033C16.2374 7.82322 15.7626 7.82322 15.4697 7.53033C15.1768 7.23744 15.1768 6.76256 15.4697 6.46967L18.4697 3.46967ZM1.25 6C1.25 5.58579 1.58579 5.25 2 5.25H6C6.41421 5.25 6.75 5.58579 6.75 6C6.75 6.41421 6.41421 6.75 6 6.75H2C1.58579 6.75 1.25 6.41421 1.25 6ZM1.25 10C1.25 9.58579 1.58579 9.25 2 9.25H8C8.41421 9.25 8.75 9.58579 8.75 10C8.75 10.4142 8.41421 10.75 8 10.75H2C1.58579 10.75 1.25 10.4142 1.25 10ZM1.25 14C1.25 13.5858 1.58579 13.25 2 13.25H10C10.4142 13.25 10.75 13.5858 10.75 14C10.75 14.4142 10.4142 14.75 10 14.75H2C1.58579 14.75 1.25 14.4142 1.25 14ZM1.25 18C1.25 17.5858 1.58579 17.25 2 17.25H12C12.4142 17.25 12.75 17.5858 12.75 18C12.75 18.4142 12.4142 18.75 12 18.75H2C1.58579 18.75 1.25 18.4142 1.25 18Z"}),"sort-asc":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4697 3.46967C18.7626 3.17678 19.2374 3.17678 19.5303 3.46967L22.5303 6.46967C22.8232 6.76256 22.8232 7.23744 22.5303 7.53033C22.2374 7.82322 21.7626 7.82322 21.4697 7.53033L19.75 5.81066V14C19.75 14.4142 19.4142 14.75 19 14.75C18.5858 14.75 18.25 14.4142 18.25 14V5.81066L16.5303 7.53033C16.2374 7.82322 15.7626 7.82322 15.4697 7.53033C15.1768 7.23744 15.1768 6.76256 15.4697 6.46967L18.4697 3.46967ZM1.25 6C1.25 5.58579 1.58579 5.25 2 5.25H6C6.41421 5.25 6.75 5.58579 6.75 6C6.75 6.41421 6.41421 6.75 6 6.75H2C1.58579 6.75 1.25 6.41421 1.25 6ZM1.25 10C1.25 9.58579 1.58579 9.25 2 9.25H10C10.4142 9.25 10.75 9.58579 10.75 10C10.75 10.4142 10.4142 10.75 10 10.75H2C1.58579 10.75 1.25 10.4142 1.25 10ZM1.25 14C1.25 13.5858 1.58579 13.25 2 13.25H14C14.4142 13.25 14.75 13.5858 14.75 14C14.75 14.4142 14.4142 14.75 14 14.75H2C1.58579 14.75 1.25 14.4142 1.25 14ZM1.25 18C1.25 17.5858 1.58579 17.25 2 17.25H18C18.4142 17.25 18.75 17.5858 18.75 18C18.75 18.4142 18.4142 18.75 18 18.75H2C1.58579 18.75 1.25 18.4142 1.25 18Z"}),"sort-desc":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 6C1.25 5.58579 1.58579 5.25 2 5.25H18C18.4142 5.25 18.75 5.58579 18.75 6C18.75 6.41421 18.4142 6.75 18 6.75H2C1.58579 6.75 1.25 6.41421 1.25 6ZM1.25 10C1.25 9.58579 1.58579 9.25 2 9.25H14C14.4142 9.25 14.75 9.58579 14.75 10C14.75 10.4142 14.4142 10.75 14 10.75H2C1.58579 10.75 1.25 10.4142 1.25 10ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V18.1893L21.4697 16.4697C21.7626 16.1768 22.2374 16.1768 22.5303 16.4697C22.8232 16.7626 22.8232 17.2374 22.5303 17.5303L19.5303 20.5303C19.2374 20.8232 18.7626 20.8232 18.4697 20.5303L15.4697 17.5303C15.1768 17.2374 15.1768 16.7626 15.4697 16.4697C15.7626 16.1768 16.2374 16.1768 16.5303 16.4697L18.25 18.1893V10C18.25 9.58579 18.5858 9.25 19 9.25ZM1.25 14C1.25 13.5858 1.58579 13.25 2 13.25H10C10.4142 13.25 10.75 13.5858 10.75 14C10.75 14.4142 10.4142 14.75 10 14.75H2C1.58579 14.75 1.25 14.4142 1.25 14ZM1.25 18C1.25 17.5858 1.58579 17.25 2 17.25H6C6.41421 17.25 6.75 17.5858 6.75 18C6.75 18.4142 6.41421 18.75 6 18.75H2C1.58579 18.75 1.25 18.4142 1.25 18Z"}),table:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.75 3.75V8.25H8.25V3.75H3.75ZM3.6 2.25C3.24196 2.25 2.89858 2.39223 2.64541 2.64541C2.39223 2.89858 2.25 3.24196 2.25 3.6V20.4C2.25 20.758 2.39223 21.1014 2.64541 21.3546C2.89858 21.6078 3.24196 21.75 3.6 21.75H20.4C20.758 21.75 21.1014 21.6078 21.3546 21.3546C21.6078 21.1014 21.75 20.758 21.75 20.4V3.6C21.75 3.24196 21.6078 2.89858 21.3546 2.64541C21.1014 2.39223 20.758 2.25 20.4 2.25H3.6ZM9.75 3.75V8.25H14.25V3.75H9.75ZM15.75 3.75V8.25H20.25V3.75H15.75ZM20.25 9.75H15.75V14.25H20.25V9.75ZM20.25 15.75H15.75V20.25H20.25V15.75ZM14.25 20.25V15.75H9.75V20.25H14.25ZM8.25 20.25V15.75H3.75V20.25H8.25ZM3.75 14.25H8.25V9.75H3.75V14.25ZM9.75 9.75V14.25H14.25V9.75H9.75Z"}),template:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.05546 4.05546C4.57118 3.53973 5.27065 3.25 6 3.25H8.5C8.91421 3.25 9.25 3.58579 9.25 4C9.25 4.41421 8.91421 4.75 8.5 4.75H6C5.66848 4.75 5.35054 4.8817 5.11612 5.11612C4.8817 5.35054 4.75 5.66848 4.75 6V20C4.75 20.3315 4.8817 20.6495 5.11612 20.8839C5.35054 21.1183 5.66848 21.25 6 21.25H18C18.3315 21.25 18.6495 21.1183 18.8839 20.8839C19.1183 20.6495 19.25 20.3315 19.25 20V6C19.25 5.66848 19.1183 5.35054 18.8839 5.11612C18.6495 4.8817 18.3315 4.75 18 4.75H15.5C15.0858 4.75 14.75 4.41421 14.75 4C14.75 3.58579 15.0858 3.25 15.5 3.25H18C18.7293 3.25 19.4288 3.53973 19.9445 4.05546C20.4603 4.57118 20.75 5.27065 20.75 6V20C20.75 20.7293 20.4603 21.4288 19.9445 21.9445C19.4288 22.4603 18.7293 22.75 18 22.75H6C5.27065 22.75 4.57118 22.4603 4.05546 21.9445C3.53973 21.4288 3.25 20.7293 3.25 20V6C3.25 5.27065 3.53973 4.57118 4.05546 4.05546Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3189 2.41739C9.99995 2.79378 9.85356 3.27185 9.79093 3.63236L9.79059 3.63434C9.70279 4.13186 9.31543 4.61405 8.75 4.72581V6.25H15.25V4.72581C14.6846 4.61405 14.2972 4.13186 14.2094 3.63434L14.2091 3.63236C14.1464 3.27185 14 2.79378 13.6811 2.41739C13.3879 2.07138 12.8997 1.75 12 1.75C11.1003 1.75 10.6121 2.07138 10.3189 2.41739ZM9.17458 1.44761C9.76185 0.75462 10.6737 0.25 12 0.25C13.3263 0.25 14.2381 0.75462 14.8254 1.44761C15.345 2.06075 15.5676 2.76922 15.6656 3.26101C15.936 3.29714 16.1888 3.42107 16.3839 3.61612C16.6183 3.85054 16.75 4.16848 16.75 4.5V6.4C16.75 6.75804 16.6078 7.10142 16.3546 7.35459C16.1014 7.60777 15.758 7.75 15.4 7.75H8.6C8.24196 7.75 7.89858 7.60777 7.64541 7.35459C7.39223 7.10142 7.25 6.75804 7.25 6.4V4.5C7.25 4.16848 7.38169 3.85054 7.61612 3.61612C7.81116 3.42107 8.06403 3.29714 8.33444 3.26101C8.43242 2.76922 8.65497 2.06075 9.17458 1.44761Z"})]}),tools:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37364 1.13067C3.61697 0.88734 3.99467 0.840819 4.28976 1.01783L7.82576 3.13883C8.12721 3.31965 8.26263 3.68557 8.15152 4.01907L7.59101 5.70138L10.0933 8.20367C10.3862 8.49656 10.3862 8.97143 10.0933 9.26433C9.8004 9.55722 9.32553 9.55722 9.03264 9.26433L6.53014 6.76183L4.84664 7.32167C4.51321 7.43256 4.1475 7.29708 3.96677 6.99573L1.84678 3.46073C1.6698 3.16564 1.71634 2.78798 1.95964 2.54467L3.37364 1.13067ZM6.14008 5.31078L6.53826 4.1157L4.02029 2.60534L3.43428 3.19135L4.9439 5.70856L6.14008 5.31078ZM10.5803 10.0767C10.8732 10.3696 10.8732 10.8444 10.5803 11.1373L3.5103 18.2073C3.39408 18.3234 3.30159 18.4616 3.23868 18.6133C3.17578 18.7651 3.1434 18.9277 3.1434 19.092C3.1434 19.2563 3.17578 19.4189 3.23868 19.5707C3.30159 19.7224 3.39379 19.8603 3.51001 19.9764C3.74442 20.2107 4.06252 20.3426 4.39397 20.3426C4.72543 20.3426 5.04331 20.2109 5.27772 19.9766L12.3476 12.9047C12.6404 12.6118 13.1153 12.6117 13.4082 12.9046C13.7012 13.1974 13.7012 13.6723 13.4084 13.9653L13.0852 14.2885L18.7732 19.9756C19.0076 20.2099 19.3255 20.3416 19.657 20.3416C19.9883 20.3416 20.3061 20.21 20.5405 19.9757C20.7748 19.7414 20.9065 19.4234 20.9065 19.092C20.9065 18.7606 20.7749 18.4427 20.5406 18.2083C20.5406 18.2083 20.5406 18.2083 20.5406 18.2083L16.6626 14.3303C16.3697 14.0374 16.3697 13.5626 16.6626 13.2697C16.9555 12.9768 17.4304 12.9768 17.7233 13.2697L21.6013 17.1477C22.1168 17.6634 22.4065 18.3628 22.4065 19.092C22.4065 19.8212 22.1169 20.5205 21.6014 21.0362C21.0857 21.5518 20.3862 21.8416 19.657 21.8416C18.9278 21.8416 18.2284 21.5519 17.7127 21.0364L12.0247 15.3493L6.33838 21.0372C5.82268 21.5528 5.12317 21.8426 4.39397 21.8426C3.66487 21.8426 2.96562 21.553 2.44994 21.0376C2.19426 20.7822 1.99142 20.4789 1.85303 20.1451C1.71463 19.8112 1.6434 19.4534 1.6434 19.092C1.6434 18.7306 1.71463 18.3728 1.85303 18.0389C1.99136 17.7052 2.1941 17.402 2.44964 17.1467C2.44955 17.1468 2.44974 17.1466 2.44964 17.1467L9.51964 10.0767C9.81253 9.78377 10.2874 9.78377 10.5803 10.0767Z"}),ih("path",{fillRule:"evenodd",clipRule:" evenodd",d:"M14.567 3.05084C13.4495 3.21306 12.3732 3.68732 11.6412 4.41933C10.1741 5.88649 9.9769 8.36582 10.7482 10.3333C10.8993 10.7189 10.7093 11.1541 10.3236 11.3053C9.93798 11.4564 9.50281 11.2664 9.35163 10.8807C8.4349 8.54218 8.56773 5.3715 10.5806 3.35867C11.5886 2.35068 12.9872 1.76444 14.3515 1.5664C15.7076 1.36955 17.1401 1.54122 18.214 2.18601C18.4119 2.30488 18.5441 2.5083 18.5723 2.73749C18.6005 2.96667 18.5215 3.19605 18.3582 3.35933L15.5102 6.20734L15.3333 8.15183L17.2776 7.97559L20.1255 5.12676C20.2887 4.96345 20.5181 4.88445 20.7473 4.91259C20.9765 4.94073 21.1799 5.07286 21.2988 5.27081C21.9442 6.34518 22.1158 7.77799 21.9188 9.13419C21.7207 10.4984 21.1342 11.8969 20.1262 12.9043M20.1262 12.9043C18.1134 14.917 14.9437 15.05 12.6052 14.1333C12.2195 13.9821 12.0295 13.5469 12.1806 13.1613C12.3318 12.7756 12.767 12.5856 13.1526 12.7367C15.12 13.508 17.5984 13.3109 19.0656 11.8437C19.7975 11.1122 20.2721 10.036 20.4344 8.91856C20.5347 8.22832 20.5102 7.56415 20.3801 6.9937L18.1463 9.22824C18.0222 9.3524 17.8584 9.42909 17.6836 9.44494L14.5726 9.72694C14.3509 9.74703 14.1318 9.66764 13.9745 9.51024C13.8171 9.35285 13.7378 9.1337 13.758 8.91205L14.041 5.80105C14.0569 5.62634 14.1335 5.46272 14.2576 5.33867L16.4912 3.10504C15.921 2.97518 15.2571 2.95067 14.567 3.05084"})]}),undo:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.23998 4.283C7.10398 4.344 6.60898 4.816 5.19498 6.232C3.14198 8.289 3.13298 8.3 3.23598 8.641C3.30698 8.88 3.52298 9.113 5.38498 10.964C7.27798 12.845 7.30398 12.866 7.64498 12.763C7.82398 12.71 8.13298 12.447 8.22298 12.274C8.2603 12.1841 8.27884 12.0875 8.27747 11.9902C8.27609 11.8928 8.25483 11.7968 8.21498 11.708C8.17898 11.638 7.62598 11.053 6.98598 10.409L5.82198 9.238L10.681 9.251C15.424 9.265 15.549 9.267 15.9 9.348C17.396 9.691 18.345 10.335 18.84 11.34C19.126 11.921 19.202 12.251 19.228 13.021C19.27 14.241 19.041 15.19 18.518 15.965C18.03 16.687 17.197 17.258 16.221 17.539C15.446 17.762 15.518 17.76 10.598 17.76H6.05698L5.88098 17.85C5.64298 17.972 5.55998 18.14 5.55998 18.5C5.55998 18.861 5.64298 19.028 5.88298 19.151L6.05998 19.242L10.88 19.229L15.7 19.216L16.14 19.112C18.03 18.668 19.36 17.692 20.1 16.204C20.586 15.228 20.812 13.953 20.718 12.715C20.636 11.632 20.385 10.882 19.833 10.074C19.104 9.007 17.861 8.253 16.24 7.894L15.74 7.783L10.783 7.77L5.82698 7.758L6.98798 6.589C7.62698 5.946 8.17898 5.362 8.21498 5.292C8.29498 5.134 8.29898 4.872 8.22298 4.728C8.09398 4.482 7.69998 4.198 7.49098 4.201C7.40383 4.21623 7.31931 4.24384 7.23998 4.283Z"}),"unfold-less":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.46967 6.46967C3.76256 6.17678 4.23744 6.17678 4.53033 6.46967L9.53033 11.4697C9.82322 11.7626 9.82322 12.2374 9.53033 12.5303L4.53033 17.5303C4.23744 17.8232 3.76256 17.8232 3.46967 17.5303C3.17678 17.2374 3.17678 16.7626 3.46967 16.4697L7.93934 12L3.46967 7.53033C3.17678 7.23744 3.17678 6.76256 3.46967 6.46967ZM20.5303 6.46967C20.8232 6.76256 20.8232 7.23744 20.5303 7.53033L16.0607 12L20.5303 16.4697C20.8232 16.7626 20.8232 17.2374 20.5303 17.5303C20.2374 17.8232 19.7626 17.8232 19.4697 17.5303L14.4697 12.5303C14.1768 12.2374 14.1768 11.7626 14.4697 11.4697L19.4697 6.46967C19.7626 6.17678 20.2374 6.17678 20.5303 6.46967Z"}),"unfold-more":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53033 6.46967C8.82322 6.76256 8.82322 7.23744 8.53033 7.53033L4.06066 12L8.53033 16.4697C8.82322 16.7626 8.82322 17.2374 8.53033 17.5303C8.23744 17.8232 7.76256 17.8232 7.46967 17.5303L2.46967 12.5303C2.17678 12.2374 2.17678 11.7626 2.46967 11.4697L7.46967 6.46967C7.76256 6.17678 8.23744 6.17678 8.53033 6.46967ZM15.4697 6.46967C15.7626 6.17678 16.2374 6.17678 16.5303 6.46967L21.5303 11.4697C21.8232 11.7626 21.8232 12.2374 21.5303 12.5303L16.5303 17.5303C16.2374 17.8232 15.7626 17.8232 15.4697 17.5303C15.1768 17.2374 15.1768 16.7626 15.4697 16.4697L19.9393 12L15.4697 7.53033C15.1768 7.23744 15.1768 6.76256 15.4697 6.46967Z"}),upload:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 3.46967C11.7626 3.17678 12.2374 3.17678 12.5303 3.46967L16.0303 6.96967C16.3232 7.26256 16.3232 7.73744 16.0303 8.03033C15.7374 8.32322 15.2626 8.32322 14.9697 8.03033L12.75 5.81066V16C12.75 16.4142 12.4142 16.75 12 16.75C11.5858 16.75 11.25 16.4142 11.25 16V5.81066L9.03033 8.03033C8.73744 8.32322 8.26256 8.32322 7.96967 8.03033C7.67678 7.73744 7.67678 7.26256 7.96967 6.96967L11.4697 3.46967ZM5.25 20C5.25 19.5858 5.58579 19.25 6 19.25H18C18.4142 19.25 18.75 19.5858 18.75 20C18.75 20.4142 18.4142 20.75 18 20.75H6C5.58579 20.75 5.25 20.4142 5.25 20Z"}),verified:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4469 5.17299C12.997 4.65315 11.4192 4.60859 9.94225 5.04576C8.46531 5.48293 7.16599 6.37913 6.23265 7.60441C5.2993 8.8297 4.78045 10.3204 4.7513 11.8604C4.72215 13.4004 5.18423 14.9097 6.07053 16.1694C6.95684 17.4291 8.22132 18.3739 9.68066 18.8666C11.14 19.3594 12.7183 19.3745 14.1869 18.9099C15.6554 18.4453 16.9378 17.5251 17.8482 16.2826C18.7585 15.0402 19.2495 13.5401 19.25 11.9998C19.2501 11.5856 19.586 11.2499 20.0002 11.25C20.4144 11.2501 20.7501 11.586 20.75 12.0002C20.7494 13.8592 20.1569 15.6697 19.0581 17.1692C17.9594 18.6687 16.4117 19.7793 14.6393 20.3401C12.867 20.9008 10.9621 20.8825 9.20079 20.2878C7.43953 19.6931 5.91343 18.5529 4.84375 17.0325C3.77407 15.5122 3.21639 13.6906 3.25157 11.832C3.28675 9.9734 3.91295 8.17427 5.0394 6.69548C6.16585 5.21668 7.734 4.13507 9.51651 3.60745C11.299 3.07982 13.2032 3.13361 14.9531 3.76101C15.343 3.9008 15.5458 4.33022 15.406 4.72013C15.2662 5.11004 14.8368 5.31279 14.4469 5.17299ZM20.5303 5.46967C20.8232 5.76256 20.8232 6.23744 20.5303 6.53033L12.5303 14.5303C12.3897 14.671 12.1989 14.75 12 14.75C11.8011 14.75 11.6103 14.671 11.4697 14.5303L8.46967 11.5303C8.17678 11.2374 8.17678 10.7626 8.46967 10.4697C8.76256 10.1768 9.23744 10.1768 9.53033 10.4697L12 12.9393L19.4697 5.46967C19.7626 5.17678 20.2374 5.17678 20.5303 5.46967Z"}),"verified-badge":ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.651 1.502C11.348 1.583 11.242 1.662 10.177 2.59L9.21398 3.429L7.91698 3.313C7.20398 3.25 6.52998 3.208 6.41998 3.22C5.98798 3.27 5.55498 3.584 5.37898 3.974C5.32898 4.087 5.15598 4.747 4.99598 5.441L4.70498 6.702L3.55598 7.395C2.92498 7.777 2.34498 8.154 2.26798 8.234C1.97598 8.539 1.84098 8.974 1.91798 9.364C1.94298 9.493 2.18798 10.125 2.46198 10.769C2.73598 11.413 2.95998 11.967 2.95998 12C2.95998 12.033 2.73598 12.587 2.46198 13.231C2.18798 13.875 1.94298 14.507 1.91798 14.636C1.83598 15.051 2.00298 15.527 2.33698 15.832C2.42698 15.913 2.99598 16.276 3.60198 16.639L4.70498 17.297L4.99598 18.559C5.15598 19.252 5.32898 19.913 5.37898 20.026C5.56998 20.45 6.01798 20.755 6.49398 20.785C6.62898 20.794 7.29798 20.751 7.97998 20.69L9.21998 20.579L10.22 21.449C10.77 21.928 11.294 22.356 11.385 22.401C11.785 22.598 12.215 22.598 12.615 22.401C12.706 22.356 13.23 21.928 13.78 21.449L14.78 20.578L16.02 20.689C16.702 20.751 17.371 20.794 17.506 20.785C17.7332 20.7678 17.9526 20.694 18.144 20.5703C18.3354 20.4467 18.4929 20.2771 18.602 20.077C18.648 19.985 18.82 19.342 18.982 18.647C19.145 17.952 19.286 17.362 19.296 17.336C19.306 17.309 19.826 16.981 20.451 16.605C21.191 16.161 21.639 15.867 21.733 15.763C22.034 15.429 22.159 15.026 22.082 14.636C22.057 14.507 21.812 13.875 21.538 13.231C21.264 12.587 21.04 12.033 21.04 12C21.04 11.967 21.263 11.415 21.537 10.773C21.81 10.131 22.054 9.507 22.079 9.385C22.159 8.997 22.032 8.569 21.742 8.247C21.659 8.155 21.159 7.828 20.452 7.404L19.297 6.71L19.005 5.445C18.844 4.749 18.671 4.087 18.621 3.974C18.5221 3.77298 18.3755 3.59918 18.1941 3.46776C18.0126 3.33635 17.8018 3.25129 17.58 3.22C17.47 3.208 16.796 3.25 16.083 3.313L14.786 3.429L13.823 2.59C13.293 2.128 12.792 1.707 12.71 1.655C12.542 1.548 12.167 1.439 11.982 1.443C11.87 1.45208 11.7592 1.47184 11.651 1.502ZM12.997 3.86C13.605 4.389 14.04 4.737 14.171 4.799C14.468 4.939 14.755 4.942 16.097 4.822C16.734 4.765 17.267 4.733 17.283 4.749C17.298 4.766 17.431 5.311 17.578 5.96C17.87 7.246 17.975 7.536 18.234 7.77C18.319 7.846 18.877 8.202 19.476 8.561C20.074 8.92 20.556 9.233 20.546 9.257L20.042 10.449C19.775 11.081 19.541 11.688 19.524 11.799C19.506 11.9321 19.506 12.0669 19.524 12.2C19.541 12.309 19.774 12.917 20.042 13.55L20.547 14.743C20.556 14.767 20.074 15.08 19.476 15.439C18.877 15.798 18.319 16.154 18.234 16.23C17.975 16.464 17.87 16.754 17.578 18.04C17.431 18.689 17.297 19.235 17.28 19.253C17.263 19.272 16.703 19.239 16.035 19.18C15.367 19.121 14.719 19.08 14.597 19.088C14.225 19.115 14.013 19.255 12.98 20.157C12.6591 20.4433 12.3323 20.723 12 20.996C11.989 20.996 11.548 20.619 11.02 20.157C9.98699 19.255 9.77498 19.115 9.40298 19.088C9.28098 19.08 8.63298 19.121 7.96498 19.18C7.29698 19.239 6.73698 19.272 6.71998 19.253C6.70298 19.235 6.56898 18.689 6.42198 18.04C6.12998 16.754 6.02498 16.464 5.76598 16.23C5.68098 16.154 5.12298 15.798 4.52398 15.439C3.92598 15.08 3.44398 14.767 3.45298 14.743L3.95798 13.55C4.22598 12.917 4.45898 12.309 4.47598 12.2C4.49398 12.09 4.49398 11.91 4.47598 11.8C4.45898 11.691 4.22598 11.083 3.95798 10.45L3.45298 9.257C3.44398 9.233 3.92598 8.92 4.52398 8.561C5.12298 8.202 5.68098 7.846 5.76598 7.77C6.02498 7.536 6.12998 7.246 6.42198 5.96C6.56898 5.311 6.70198 4.766 6.71698 4.749C6.73298 4.733 7.26598 4.765 7.90298 4.822C8.53898 4.879 9.18598 4.919 9.33998 4.912C9.78598 4.889 9.94199 4.79 11.02 3.846C11.548 3.383 11.991 3.008 12.006 3.013C12.02 3.017 12.466 3.398 12.997 3.86ZM15.9 9.259C15.8473 9.27478 15.7939 9.28813 15.74 9.299C15.65 9.319 15.034 9.91 13.31 11.632L11.001 13.938L10.21 13.154C9.77598 12.723 9.37498 12.347 9.31998 12.318C9.21455 12.2817 9.10348 12.2644 8.99198 12.267C8.49198 12.267 8.15098 12.716 8.28098 13.205C8.32098 13.358 8.46498 13.52 9.43298 14.493C10.042 15.105 10.594 15.635 10.66 15.671C10.817 15.756 11.184 15.756 11.34 15.671C11.406 15.635 12.633 14.43 14.067 12.993C16.415 10.639 16.679 10.363 16.72 10.205C16.7644 10.0534 16.7584 9.89147 16.7029 9.74358C16.6473 9.5957 16.5452 9.46985 16.412 9.385C16.271 9.294 15.993 9.226 15.9 9.259Z"}),visibility:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0555 10.0555C10.5712 9.53973 11.2707 9.25 12 9.25C12.7293 9.25 13.4288 9.53973 13.9445 10.0555C14.4603 10.5712 14.75 11.2707 14.75 12C14.75 12.7293 14.4603 13.4288 13.9445 13.9445C13.4288 14.4603 12.7293 14.75 12 14.75C11.2707 14.75 10.5712 14.4603 10.0555 13.9445C9.53974 13.4288 9.25 12.7293 9.25 12C9.25 11.2707 9.53974 10.5712 10.0555 10.0555ZM12 10.75C11.6685 10.75 11.3505 10.8817 11.1161 11.1161C10.8817 11.3505 10.75 11.6685 10.75 12C10.75 12.3315 10.8817 12.6495 11.1161 12.8839C11.3505 13.1183 11.6685 13.25 12 13.25C12.3315 13.25 12.6495 13.1183 12.8839 12.8839C13.1183 12.6495 13.25 12.3315 13.25 12C13.25 11.6685 13.1183 11.3505 12.8839 11.1161C12.6495 10.8817 12.3315 10.75 12 10.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.9285 12.0469C4.80049 13.3204 5.94592 14.5633 7.25513 15.515C8.71884 16.579 10.3452 17.25 12 17.25C13.6548 17.25 15.2812 16.579 16.7449 15.515C18.0541 14.5633 19.1995 13.3204 20.0715 12.0469C17.8285 9.30531 15.4201 6.75 12 6.75C8.57991 6.75 6.1715 9.30531 3.9285 12.0469ZM2.4169 11.5283C4.67192 8.74068 7.58025 5.25 12 5.25C16.4198 5.25 19.3281 8.74068 21.5831 11.5283C21.7852 11.7781 21.8057 12.1288 21.6341 12.4005C20.646 13.9651 19.2629 15.539 17.6269 16.7283C15.9923 17.9165 14.0632 18.75 12 18.75C9.93681 18.75 8.00766 17.9165 6.37313 16.7283C4.73711 15.539 3.35404 13.9651 2.36588 12.4005C2.19432 12.1288 2.21484 11.7781 2.4169 11.5283Z"})]}),"visibility-off":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.46967 2.46967C2.76257 2.17678 3.23744 2.17678 3.53033 2.46967L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L13.3408 14.4014C12.9087 14.6429 12.4159 14.7652 11.9139 14.7496C11.2144 14.7279 10.5494 14.4404 10.0545 13.9455C9.55964 13.4506 9.27207 12.7856 9.25039 12.0861C9.23483 11.5841 9.35706 11.0913 9.59857 10.6592L2.46967 3.53033C2.17678 3.23744 2.17678 2.76256 2.46967 2.46967ZM10.7619 11.8225C10.7516 11.894 10.7474 11.9666 10.7497 12.0397C10.7595 12.3576 10.8902 12.6599 11.1152 12.8848C11.3401 13.1098 11.6424 13.2405 11.9604 13.2503C12.0334 13.2526 12.106 13.2484 12.1775 13.2381L10.7619 11.8225Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 6C11.25 5.58579 11.5858 5.25 12 5.25C16.4198 5.25 19.3281 8.74068 21.5831 11.5283C21.7853 11.7783 21.8057 12.1293 21.6338 12.401C21.2885 12.9467 20.9113 13.4716 20.5042 13.9729C20.243 14.2944 19.7707 14.3433 19.4492 14.0822C19.1276 13.821 19.0787 13.3487 19.3398 13.0271C19.5971 12.7105 19.8411 12.3834 20.0715 12.0468C17.8285 9.30527 15.4201 6.75 12 6.75C11.5858 6.75 11.25 6.41421 11.25 6ZM7.97615 7.13051C8.2139 7.4697 8.13168 7.9374 7.79249 8.17515C6.35007 9.18622 5.10953 10.6025 3.9285 12.0469C4.80049 13.3204 5.94592 14.5633 7.25513 15.515C8.71884 16.579 10.3452 17.25 12 17.25C13.3792 17.25 14.738 16.7844 16.0036 16.0102C16.357 15.7941 16.8187 15.9053 17.0348 16.2586C17.2509 16.612 17.1397 17.0737 16.7864 17.2898C15.348 18.1696 13.7208 18.75 12 18.75C9.93681 18.75 8.00766 17.9165 6.37313 16.7283C4.73711 15.539 3.35404 13.9651 2.36588 12.4005C2.19427 12.1288 2.21486 11.7779 2.41706 11.5281C3.68962 9.95607 5.15126 8.19472 6.93151 6.94685C7.2707 6.7091 7.7384 6.79133 7.97615 7.13051Z"})]}),"warning-triangled":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9159 4.3893C10.9159 4.38936 10.9159 4.38925 10.9159 4.3893L2.87328 18.3767C2.87324 18.3767 2.87331 18.3766 2.87328 18.3767C2.39456 19.21 2.99617 20.25 3.957 20.25H20.043C21.0032 20.25 21.6055 19.2098 21.1267 18.3767L13.0839 4.38894C13.0838 4.38891 13.0839 4.38897 13.0839 4.38894C12.6034 3.55382 11.3977 3.5531 10.9159 4.3893ZM9.61607 3.6407C10.6744 1.8031 13.3265 1.80232 14.3841 3.64107L22.4272 17.6292C23.4804 19.4621 22.1568 21.75 20.043 21.75H3.957C1.84189 21.75 0.519612 19.4619 1.57272 17.6293L9.61607 3.6407ZM12 8.25C12.4142 8.25 12.75 8.58579 12.75 9V13C12.75 13.4142 12.4142 13.75 12 13.75C11.5858 13.75 11.25 13.4142 11.25 13V9C11.25 8.58579 11.5858 8.25 12 8.25Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5145 16.4441C12.821 16.7227 12.8436 17.197 12.5649 17.5035L12.5549 17.5145C12.2763 17.821 11.802 17.8436 11.4955 17.5649C11.189 17.2863 11.1664 16.812 11.4451 16.5055L11.4551 16.4945C11.7337 16.188 12.208 16.1654 12.5145 16.4441Z"})]}),contract:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.46 3.277C14.35 3.328 13.085 4.57 10.394 7.266C7.29601 10.37 6.46601 11.222 6.38601 11.384C6.20801 11.742 6.19501 11.949 6.20801 14.28L6.22001 16.46L6.31101 16.606C6.49601 16.905 6.44701 16.899 8.78001 16.912C10.087 16.92 10.977 16.909 11.176 16.882C11.788 16.8 11.539 17.022 15.813 12.761C17.948 10.632 19.732 8.822 19.788 8.727C19.8535 8.63053 19.8886 8.51661 19.8886 8.4C19.8886 8.28339 19.8535 8.16946 19.788 8.073C19.732 7.978 18.645 6.862 17.373 5.594C15.398 3.624 15.037 3.281 14.9 3.244C14.687 3.186 14.647 3.189 14.46 3.277ZM16.4 6.74L18.06 8.4L17.33 9.13L16.6 9.86L14.93 8.19L13.26 6.52L13.98 5.8C14.375 5.404 14.708 5.08 14.72 5.08C14.731 5.08 15.487 5.827 16.4 6.74ZM13.88 9.26L15.54 10.92L13.3 13.16L11.06 15.4H7.68001V12.102L9.93001 9.851C11.167 8.613 12.188 7.6 12.2 7.6C12.211 7.6 12.967 8.347 13.88 9.26ZM3.78701 19.278C3.44601 19.345 3.26801 19.592 3.26801 20C3.26801 20.462 3.47501 20.693 3.93101 20.739C4.06801 20.753 7.79801 20.759 12.22 20.752C20.177 20.74 20.261 20.739 20.396 20.66C20.4836 20.6116 20.5587 20.5434 20.6154 20.461C20.6722 20.3786 20.709 20.2841 20.723 20.185C20.792 19.818 20.669 19.501 20.396 19.34C20.261 19.261 20.183 19.26 12.1 19.254C7.61201 19.251 3.87101 19.262 3.78701 19.278Z"}),crop:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.875 4.723C9.63903 5.051 7.81003 6.82501 7.27903 9.18001C7.11203 9.92301 7.13203 11.041 7.32503 11.797C7.53203 12.607 7.96803 13.413 8.56403 14.091L8.76703 14.323L8.48603 14.951C7.88403 16.295 7.43103 17.726 7.28003 18.76C7.19503 19.345 7.35103 19.623 7.81903 19.72C8.11403 19.781 8.33403 19.74 8.50103 19.594C8.65703 19.457 8.68503 19.378 8.80003 18.765C8.96703 17.865 9.40603 16.524 9.84503 15.569C9.93303 15.378 10.01 15.216 10.017 15.209C10.024 15.202 10.163 15.249 10.325 15.313C11.189 15.6629 12.134 15.7627 13.052 15.601C14.193 15.406 15.143 14.904 16.001 14.043C16.526 13.516 16.874 13.032 17.16 12.429C17.425 11.869 17.448 11.793 18.09 9.32C18.727 6.862 18.74 6.784 18.546 6.388C18.4403 6.15785 18.2534 5.97482 18.021 5.874C17.835 5.786 13.878 4.826 13.34 4.739C12.8541 4.67528 12.3623 4.66991 11.875 4.723ZM13.12 6.217C13.544 6.293 17.013 7.127 17.054 7.162C17.073 7.179 16.932 7.801 16.741 8.546C15.969 11.554 15.977 11.529 15.607 12.16C15.314 12.659 14.653 13.33 14.174 13.613C13.395 14.075 12.582 14.262 11.799 14.16C11.444 14.114 10.859 13.954 10.787 13.882C10.717 13.814 11.634 12.554 12.357 11.725C12.766 11.257 12.84 11.092 12.761 10.827C12.695 10.607 12.377 10.299 12.156 10.239C11.784 10.139 11.555 10.314 10.735 11.325C10.393 11.746 9.71203 12.678 9.60103 12.876C9.55203 12.964 9.47603 12.888 9.25603 12.536C9.02447 12.1651 8.85428 11.7592 8.75203 11.334C8.62403 10.82 8.62703 9.929 8.75703 9.42C9.14603 7.906 10.172 6.761 11.516 6.342C12.113 6.156 12.579 6.12 13.12 6.217Z"}),finalize:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5303 6.46967C16.8232 6.76256 16.8232 7.23744 16.5303 7.53033L12.5303 11.5303C12.2374 11.8232 11.7626 11.8232 11.4697 11.5303C11.1768 11.2374 11.1768 10.7626 11.4697 10.4697L15.4697 6.46967C15.7626 6.17678 16.2374 6.17678 16.5303 6.46967ZM0.96967 11.9697C1.26256 11.6768 1.73744 11.6768 2.03033 11.9697L6 15.9393L8.46967 13.4697C8.76256 13.1768 9.23744 13.1768 9.53033 13.4697C9.82322 13.7626 9.82322 14.2374 9.53033 14.5303L6.95433 17.1063C6.7012 17.3591 6.35775 17.5015 6 17.5015C5.64225 17.5015 5.29912 17.3595 5.046 17.1067L0.96967 13.0303C0.676777 12.7374 0.676777 12.2626 0.96967 11.9697Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5303 6.46967C22.8232 6.76256 22.8232 7.23744 22.5303 7.53033L12.9543 17.1063C12.7012 17.3591 12.3578 17.5015 12 17.5015C11.6422 17.5015 11.2991 17.3595 11.046 17.1067L6.46967 12.5303C6.17678 12.2374 6.17678 11.7626 6.46967 11.4697C6.76256 11.1768 7.23744 11.1768 7.53033 11.4697L12 15.9393L21.4697 6.46967C21.7626 6.17678 22.2374 6.17678 22.5303 6.46967Z"})]}),farm:ih(rh,{children:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.66459 4.32918C7.87574 4.22361 8.12426 4.22361 8.33541 4.32918L14.3354 7.32918C14.5895 7.45622 14.75 7.71592 14.75 8V13.25H22C22.4142 13.25 22.75 13.5858 22.75 14C22.75 14.4142 22.4142 14.75 22 14.75H18.75V16.25H22C22.4142 16.25 22.75 16.5858 22.75 17C22.75 17.4142 22.4142 17.75 22 17.75H18.75V20C18.75 20.4142 18.4142 20.75 18 20.75C17.5858 20.75 17.25 20.4142 17.25 20V17.75H14.75V20C14.75 20.4142 14.4142 20.75 14 20.75H2C1.58579 20.75 1.25 20.4142 1.25 20V8C1.25 7.71592 1.4105 7.45622 1.66459 7.32918L7.66459 4.32918ZM14.75 16.25H17.25V14.75H14.75V16.25ZM13.25 19.25H11.75V13C11.75 12.5858 11.4142 12.25 11 12.25H5C4.58579 12.25 4.25 12.5858 4.25 13V19.25H2.75V8.46353L8 5.83853L13.25 8.46353V19.25ZM5.75 19.25H10.25V13.75H5.75V19.25Z"})}),fields:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.7194 4.81178C9.66612 4.79777 9.60969 4.80175 9.5589 4.82312L5.06149 6.71496C4.94996 6.76188 4.88804 6.88192 4.91445 6.99999L5.95585 11.6544C5.99013 11.8077 6.15557 11.8917 6.29957 11.8291L10.5879 9.96298L17.0325 7.19674C17.251 7.10292 17.2275 6.7857 16.9974 6.72522L9.7194 4.81178ZM8.97729 3.44047C9.33281 3.29091 9.72778 3.263 10.1008 3.36107L17.3788 5.27452C18.989 5.69786 19.1541 7.9184 17.6241 8.57512L11.183 11.3399L11.1795 11.3414L6.89809 13.2045C5.89011 13.6431 4.73206 13.0547 4.49204 11.9819L3.45065 7.32751C3.26572 6.50101 3.6992 5.66071 4.47987 5.33231L8.97729 3.44047Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2893 11.9396C12.4465 11.4253 13.75 12.2724 13.75 13.5388V18C13.75 18.9665 12.9665 19.75 12 19.75H8.79551C7.98061 19.75 7.27356 19.1875 7.09032 18.3935L6.45467 15.639C6.26621 14.8223 6.68322 13.9867 7.44911 13.6463L11.2893 11.9396ZM12.25 13.5388C12.25 13.3579 12.0638 13.2368 11.8985 13.3103L8.05832 15.017C7.9489 15.0657 7.88933 15.185 7.91625 15.3017L8.55191 18.0562C8.57809 18.1697 8.67909 18.25 8.79551 18.25H12C12.1381 18.25 12.25 18.1381 12.25 18V13.5388Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2758 8.95987C18.4345 8.4332 19.75 9.28025 19.75 10.553V14.4638C19.75 15.1388 19.3618 15.7536 18.7524 16.0438L16.7524 16.9962C15.5911 17.5492 14.25 16.7025 14.25 15.4162V11.4621C14.25 10.7758 14.6511 10.1529 15.2758 9.86896L17.2758 8.95987ZM18.25 10.553C18.25 10.3712 18.0621 10.2502 17.8965 10.3254L15.8965 11.2345C15.8073 11.2751 15.75 11.3641 15.75 11.4621V15.4162C15.75 15.6 15.9416 15.7209 16.1075 15.6419L18.1075 14.6896C18.1945 14.6481 18.25 14.5603 18.25 14.4638V10.553Z"})]}),harvest:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.64124 4.64124C9.53204 3.75045 10.7402 3.25 12 3.25C13.2598 3.25 14.468 3.75045 15.3588 4.64124C16.2496 5.53204 16.75 6.74022 16.75 8C16.75 9.25978 16.2496 10.468 15.3588 11.3588C14.468 12.2496 13.2598 12.75 12 12.75C10.7402 12.75 9.53204 12.2496 8.64124 11.3588C7.75045 10.468 7.25 9.25978 7.25 8C7.25 6.74022 7.75045 5.53204 8.64124 4.64124ZM12 4.75C11.138 4.75 10.3114 5.09241 9.7019 5.7019C9.09241 6.3114 8.75 7.13805 8.75 8C8.75 8.86195 9.09241 9.6886 9.7019 10.2981C10.3114 10.9076 11.138 11.25 12 11.25C12.862 11.25 13.6886 10.9076 14.2981 10.2981C14.9076 9.6886 15.25 8.86195 15.25 8C15.25 7.13805 14.9076 6.3114 14.2981 5.7019C13.6886 5.09241 12.862 4.75 12 4.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6412 11.6412C14.532 10.7504 15.7402 10.25 17 10.25C18.2598 10.25 19.468 10.7504 20.3588 11.6412C21.2496 12.532 21.75 13.7402 21.75 15C21.75 16.2598 21.2496 17.468 20.3588 18.3588C19.468 19.2496 18.2598 19.75 17 19.75C15.7402 19.75 14.532 19.2496 13.6412 18.3588C12.7504 17.468 12.25 16.2598 12.25 15C12.25 13.7402 12.7504 12.532 13.6412 11.6412ZM17 11.75C16.138 11.75 15.3114 12.0924 14.7019 12.7019C14.0924 13.3114 13.75 14.138 13.75 15C13.75 15.862 14.0924 16.6886 14.7019 17.2981C15.3114 17.9076 16.138 18.25 17 18.25C17.862 18.25 18.6886 17.9076 19.2981 17.2981C19.9076 16.6886 20.25 15.862 20.25 15C20.25 14.138 19.9076 13.3114 19.2981 12.7019C18.6886 12.0924 17.862 11.75 17 11.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.64124 11.6412C4.53204 10.7504 5.74022 10.25 7 10.25C8.25978 10.25 9.46796 10.7504 10.3588 11.6412C11.2496 12.532 11.75 13.7402 11.75 15C11.75 16.2598 11.2496 17.468 10.3588 18.3588C9.46796 19.2496 8.25978 19.75 7 19.75C5.74022 19.75 4.53204 19.2496 3.64124 18.3588C2.75045 17.468 2.25 16.2598 2.25 15C2.25 13.7402 2.75045 12.532 3.64124 11.6412ZM7 11.75C6.13805 11.75 5.3114 12.0924 4.7019 12.7019C4.09241 13.3114 3.75 14.138 3.75 15C3.75 15.862 4.09241 16.6886 4.7019 17.2981C5.3114 17.9076 6.13805 18.25 7 18.25C7.86195 18.25 8.6886 17.9076 9.2981 17.2981C9.90759 16.6886 10.25 15.862 10.25 15C10.25 14.138 9.90759 13.3114 9.2981 12.7019C8.6886 12.0924 7.86195 11.75 7 11.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 21C1.25 20.5858 1.58579 20.25 2 20.25H22C22.4142 20.25 22.75 20.5858 22.75 21C22.75 21.4142 22.4142 21.75 22 21.75H2C1.58579 21.75 1.25 21.4142 1.25 21Z"})]}),irrigation:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8659 3.92661C11.8658 3.92651 11.866 3.92671 11.8659 3.92661V3.92661ZM12 4.06066L14.9697 7.03033C15.5571 7.6177 15.9572 8.36609 16.1193 9.18083C16.2814 9.99556 16.1982 10.8401 15.8803 11.6075C15.5625 12.375 15.0241 13.031 14.3334 13.4925C13.6427 13.954 12.8307 14.2004 12 14.2004C11.1693 14.2004 10.3573 13.954 9.66656 13.4925C8.97587 13.031 8.43754 12.375 8.11966 11.6075C7.80179 10.8401 7.71864 9.99556 7.88073 9.18083C8.04283 8.36609 8.44288 7.61773 9.0303 7.03036L12 4.06066ZM12.1341 3.92661C12.134 3.92671 12.1342 3.92651 12.1341 3.92661V3.92661ZM11.4987 2.58169C11.6576 2.51585 11.828 2.48196 12 2.48196C12.172 2.48196 12.3424 2.51585 12.5013 2.58169C12.6603 2.64754 12.8047 2.74404 12.9264 2.8657L16.0303 5.96965C16.0303 5.96964 16.0303 5.96966 16.0303 5.96965C16.8275 6.76678 17.3705 7.78244 17.5904 8.88813C17.8104 9.99384 17.6976 11.14 17.2662 12.1815C16.8348 13.2231 16.1042 14.1133 15.1668 14.7397C14.2294 15.366 13.1274 15.7004 12 15.7004C10.8726 15.7004 9.77056 15.366 8.83319 14.7397C7.89582 14.1133 7.16523 13.2231 6.73383 12.1815C6.30243 11.14 6.18958 9.99384 6.40957 8.88813C6.62955 7.78244 7.17247 6.76681 7.96967 5.96967C7.96966 5.96968 7.96968 5.96967 7.96967 5.96967L11.0736 2.8657C11.1953 2.74404 11.3397 2.64754 11.4987 2.58169ZM1.25 12C1.25 11.5858 1.58579 11.25 2 11.25H4C4.41421 11.25 4.75 11.5858 4.75 12C4.75 12.4142 4.41421 12.75 4 12.75H2C1.58579 12.75 1.25 12.4142 1.25 12ZM19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H22C22.4142 11.25 22.75 11.5858 22.75 12C22.75 12.4142 22.4142 12.75 22 12.75H20C19.5858 12.75 19.25 12.4142 19.25 12ZM6.5145 15.444C6.82099 15.7227 6.84359 16.197 6.56496 16.5035L6.55496 16.5145C6.27634 16.821 5.802 16.8436 5.49551 16.565C5.18901 16.2863 5.16641 15.812 5.44504 15.5055L5.45504 15.4945C5.73366 15.188 6.208 15.1654 6.5145 15.444ZM18.5145 15.444C18.821 15.7227 18.8436 16.197 18.565 16.5035L18.555 16.5145C18.2763 16.821 17.802 16.8436 17.4955 16.565C17.189 16.2863 17.1664 15.812 17.445 15.5055L17.455 15.4945C17.7337 15.188 18.208 15.1654 18.5145 15.444ZM3.51451 19.4441C3.821 19.7227 3.84358 20.197 3.56495 20.5035L3.55495 20.5145C3.27631 20.821 2.80198 20.8436 2.49549 20.565C2.189 20.2863 2.16642 19.812 2.44505 19.5055L2.45505 19.4945C2.73369 19.188 3.20802 19.1654 3.51451 19.4441ZM9.51452 19.4441C9.821 19.7227 9.84358 20.197 9.56494 20.5035L9.55494 20.5145C9.2763 20.821 8.80197 20.8436 8.49548 20.5649C8.18899 20.2863 8.16642 19.812 8.44506 19.5055L8.45506 19.4945C8.7337 19.188 9.20803 19.1654 9.51452 19.4441ZM15.5145 19.4441C15.821 19.7227 15.8436 20.197 15.5649 20.5035L15.5549 20.5145C15.2763 20.821 14.802 20.8436 14.4955 20.5649C14.189 20.2863 14.1664 19.812 14.4451 19.5055L14.4551 19.4945C14.7337 19.188 15.208 19.1654 15.5145 19.4441ZM21.5145 19.4441C21.821 19.7227 21.8436 20.197 21.5649 20.5035L21.5549 20.5145C21.2763 20.821 20.802 20.8436 20.4955 20.5649C20.189 20.2863 20.1664 19.812 20.4451 19.5055L20.4551 19.4945C20.7337 19.188 21.208 19.1654 21.5145 19.4441Z"}),livestock:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 20C1.25 19.5858 1.58579 19.25 2 19.25H19C19.4142 19.25 19.75 19.5858 19.75 20C19.75 20.4142 19.4142 20.75 19 20.75H2C1.58579 20.75 1.25 20.4142 1.25 20Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.27239 12.3181C7.35586 11.9842 7.65585 11.75 8 11.75H14C14.4142 11.75 14.75 12.0858 14.75 12.5V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V13.25H8.53653C8.40588 13.5628 8.22136 13.9044 7.97601 14.2149C7.68746 14.5802 7.28062 14.9414 6.75 15.1252V18C6.75 18.4142 6.41421 18.75 6 18.75C5.58579 18.75 5.25 18.4142 5.25 18V14.5C5.25 14.0858 5.58579 13.75 6 13.75C6.28942 13.75 6.55275 13.5968 6.79899 13.2851C7.04895 12.9687 7.20907 12.5714 7.27239 12.3181Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 6C2.25 5.58579 2.58579 5.25 3 5.25H21C21.2508 5.25 21.4849 5.37533 21.624 5.58397L23.624 8.58397C23.8448 8.91517 23.7684 9.36117 23.45 9.6L21.45 11.1C21.1514 11.3239 20.7336 11.2942 20.4697 11.0303L20 10.5607L17.75 12.8107V18C17.75 18.4142 17.4142 18.75 17 18.75C16.5858 18.75 16.25 18.4142 16.25 18V12.5C16.25 12.3011 16.329 12.1103 16.4697 11.9697L19.4697 8.96967C19.7626 8.67678 20.2374 8.67678 20.5303 8.96967L21.0704 9.50972L21.9824 8.82569L20.5986 6.75H3.75V18C3.75 18.4142 3.41421 18.75 3 18.75C2.58579 18.75 2.25 18.4142 2.25 18V6Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6.25C3.41421 6.25 3.75 6.58579 3.75 7C3.75 8.04444 3.29802 8.7696 2.68823 9.20865C2.11668 9.62016 1.45335 9.75 1 9.75C0.585786 9.75 0.25 9.41421 0.25 9C0.25 8.58579 0.585786 8.25 1 8.25C1.21332 8.25 1.54998 8.17984 1.81177 7.99135C2.03532 7.8304 2.25 7.55556 2.25 7C2.25 6.58579 2.58579 6.25 3 6.25Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 3.25C22.4142 3.25 22.75 3.58579 22.75 4C22.75 5.04444 22.298 5.7696 21.6882 6.20865C21.1167 6.62016 20.4534 6.75 20 6.75C19.5858 6.75 19.25 6.41421 19.25 6C19.25 5.58579 19.5858 5.25 20 5.25C20.2133 5.25 20.55 5.17984 20.8118 4.99135C21.0353 4.8304 21.25 4.55556 21.25 4C21.25 3.58579 21.5858 3.25 22 3.25Z"})]}),nutrients:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 12.5C12.8284 12.5 13.5 11.8284 13.5 11C13.5 10.1716 12.8284 9.5 12 9.5C11.1716 9.5 10.5 10.1716 10.5 11C10.5 11.8284 11.1716 12.5 12 12.5ZM12 14C13.6569 14 15 12.6569 15 11C15 9.34315 13.6569 8 12 8C10.3431 8 9 9.34315 9 11C9 12.6569 10.3431 14 12 14Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2718 5.68917C14.8383 5.56465 13.3695 5.5 11.8735 5.5C10.4508 5.5 9.05285 5.55846 7.68644 5.67127L7.74238 5.70381L7.40985 6.83262C6.88468 8.61539 6.60231 10.5039 6.60231 12.4609C6.60231 14.4549 6.89543 16.3777 7.43987 18.1901L7.77874 19.3181L7.76197 19.328C9.13117 19.4413 10.5321 19.5 11.9578 19.5C13.4148 19.5 14.846 19.4387 16.2439 19.3205L16.571 18.2421C17.1255 16.4145 17.4242 14.4739 17.4242 12.4609C17.4242 10.4557 17.1278 8.52242 16.5775 6.70106L16.2718 5.68917ZM5.97099 6.40876C5.4057 8.32769 5.10231 10.3589 5.10231 12.4609C5.10231 14.6026 5.41726 16.6708 6.00329 18.6217C5.95446 18.6504 5.90583 18.6794 5.85734 18.7088C5.74846 18.7747 5.64048 18.8423 5.53326 18.9116C4.73922 19.425 5.06247 20.5522 6.00184 20.6608C7.927 20.8833 9.9187 21 11.9578 21C13.9969 21 15.9886 20.8833 17.9137 20.6608C18.8531 20.5522 19.1764 19.425 18.3823 18.9116C18.2581 18.8313 18.1328 18.7533 18.0064 18.6775C18.6033 16.7103 18.9242 14.6231 18.9242 12.4609C18.9242 10.3071 18.6057 8.22772 18.0134 6.26723C18.057 6.24062 18.1004 6.21374 18.1437 6.18658C18.1953 6.15423 18.2468 6.12149 18.298 6.08837C19.092 5.57496 18.7688 4.44777 17.8294 4.33922C15.9043 4.11673 13.9125 4 11.8735 4C9.83438 4 7.84267 4.11673 5.91752 4.33922C4.97815 4.44777 4.6549 5.57495 5.44894 6.08837C5.62083 6.19952 5.79494 6.30636 5.97099 6.40876Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 16.25C9 15.8358 9.33579 15.5 9.75 15.5H14.25C14.6642 15.5 15 15.8358 15 16.25C15 16.6642 14.6642 17 14.25 17H9.75C9.33579 17 9 16.6642 9 16.25Z"})]}),quantification:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.75C2.66848 1.75 2.35054 1.8817 2.11612 2.11612C1.8817 2.35054 1.75 2.66848 1.75 3V21C1.75 21.3315 1.8817 21.6495 2.11612 21.8839C2.35054 22.1183 2.66848 22.25 3 22.25H21C21.3315 22.25 21.6495 22.1183 21.8839 21.8839C22.1183 21.6495 22.25 21.3315 22.25 21V3C22.25 2.66848 22.1183 2.35054 21.8839 2.11612C21.6495 1.8817 21.3315 1.75 21 1.75H3ZM1.05546 1.05546C1.57118 0.539731 2.27065 0.25 3 0.25H21C21.7293 0.25 22.4288 0.539732 22.9445 1.05546C23.4603 1.57118 23.75 2.27065 23.75 3V21C23.75 21.7293 23.4603 22.4288 22.9445 22.9445C22.4288 23.4603 21.7293 23.75 21 23.75H3C2.27065 23.75 1.57118 23.4603 1.05546 22.9445C0.539732 22.4288 0.25 21.7293 0.25 21V3C0.25 2.27065 0.539731 1.57118 1.05546 1.05546Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4.25C7.41421 4.25 7.75 4.58579 7.75 5V6.25H9C9.41421 6.25 9.75 6.58579 9.75 7C9.75 7.41421 9.41421 7.75 9 7.75H7.75V9C7.75 9.41421 7.41421 9.75 7 9.75C6.58579 9.75 6.25 9.41421 6.25 9V7.75H5C4.58579 7.75 4.25 7.41421 4.25 7C4.25 6.58579 4.58579 6.25 5 6.25H6.25V5C6.25 4.58579 6.58579 4.25 7 4.25ZM14.25 7C14.25 6.58579 14.5858 6.25 15 6.25H19C19.4142 6.25 19.75 6.58579 19.75 7C19.75 7.41421 19.4142 7.75 19 7.75H15C14.5858 7.75 14.25 7.41421 14.25 7ZM14.25 15.5C14.25 15.0858 14.5858 14.75 15 14.75H19C19.4142 14.75 19.75 15.0858 19.75 15.5C19.75 15.9142 19.4142 16.25 19 16.25H15C14.5858 16.25 14.25 15.9142 14.25 15.5ZM5.05567 15.0557C5.34856 14.7628 5.82344 14.7628 6.11633 15.0557L7.00019 15.9395L7.88486 15.0555C8.17785 14.7627 8.65273 14.7629 8.94552 15.0559C9.23831 15.3489 9.23814 15.8237 8.94514 16.1165L8.06104 17L8.94514 17.8835C9.23814 18.1763 9.23831 18.6511 8.94552 18.9441C8.65273 19.2371 8.17785 19.2373 7.88486 18.9445L7.00019 18.0605L6.11633 18.9443C5.82344 19.2372 5.34856 19.2372 5.05567 18.9443C4.76278 18.6514 4.76278 18.1766 5.05567 17.8837L5.93934 17L5.05567 16.1163C4.76278 15.8234 4.76278 15.3486 5.05567 15.0557ZM14.25 18.5C14.25 18.0858 14.5858 17.75 15 17.75H19C19.4142 17.75 19.75 18.0858 19.75 18.5C19.75 18.9142 19.4142 19.25 19 19.25H15C14.5858 19.25 14.25 18.9142 14.25 18.5Z"})]}),soil:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 4C1.25 3.58579 1.58579 3.25 2 3.25H22C22.4142 3.25 22.75 3.58579 22.75 4C22.75 4.41421 22.4142 4.75 22 4.75H2C1.58579 4.75 1.25 4.41421 1.25 4ZM3.5145 7.44404C3.821 7.72267 3.84359 8.19701 3.56496 8.5035L3.55496 8.5145C3.27633 8.821 2.80199 8.84359 2.4955 8.56496C2.189 8.28633 2.16641 7.812 2.44504 7.5055L2.45504 7.4945C2.73367 7.188 3.20801 7.16541 3.5145 7.44404ZM9.51451 7.44405C9.821 7.72268 9.84358 8.19702 9.56495 8.50351L9.55495 8.51451C9.27632 8.821 8.80198 8.84358 8.49549 8.56495C8.189 8.28632 8.16642 7.81199 8.44505 7.50549L8.45505 7.49449C8.73368 7.188 9.20802 7.16542 9.51451 7.44405ZM15.5145 7.44405C15.821 7.72268 15.8436 8.19702 15.565 8.50351L15.555 8.51451C15.2763 8.821 14.802 8.84358 14.4955 8.56495C14.189 8.28632 14.1664 7.81199 14.445 7.50549L14.455 7.49449C14.7337 7.188 15.208 7.16542 15.5145 7.44405ZM21.5145 7.44405C21.821 7.72268 21.8436 8.19702 21.565 8.50351L21.555 8.51451C21.2763 8.821 20.802 8.84358 20.4955 8.56495C20.189 8.28632 20.1664 7.81199 20.445 7.50549L20.455 7.49449C20.7337 7.188 21.208 7.16542 21.5145 7.44405ZM6.5145 11.444C6.82099 11.7227 6.84359 12.197 6.56496 12.5035L6.55496 12.5145C6.27634 12.821 5.802 12.8436 5.49551 12.565C5.18901 12.2863 5.16641 11.812 5.44504 11.5055L5.45504 11.4945C5.73366 11.188 6.208 11.1654 6.5145 11.444ZM12.5145 11.444C12.821 11.7227 12.8436 12.197 12.565 12.5035L12.555 12.5145C12.2763 12.821 11.802 12.8436 11.4955 12.565C11.189 12.2863 11.1664 11.812 11.445 11.5055L11.455 11.4945C11.7337 11.188 12.208 11.1654 12.5145 11.444ZM18.5145 11.444C18.821 11.7227 18.8436 12.197 18.565 12.5035L18.555 12.5145C18.2763 12.821 17.802 12.8436 17.4955 12.565C17.189 12.2863 17.1664 11.812 17.445 11.5055L17.455 11.4945C17.7337 11.188 18.208 11.1654 18.5145 11.444ZM3.51449 15.444C3.82099 15.7227 3.84359 16.197 3.56497 16.5035L3.55497 16.5145C3.27635 16.821 2.80201 16.8436 2.49551 16.565C2.18901 16.2863 2.16641 15.812 2.44503 15.5055L2.45503 15.4945C2.73365 15.188 3.20799 15.1654 3.51449 15.444ZM9.5145 15.444C9.82099 15.7227 9.84359 16.197 9.56496 16.5035L9.55496 16.5145C9.27634 16.821 8.802 16.8436 8.4955 16.565C8.18901 16.2863 8.16641 15.812 8.44504 15.5055L8.45504 15.4945C8.73366 15.188 9.208 15.1654 9.5145 15.444ZM15.5145 15.444C15.821 15.7227 15.8436 16.197 15.565 16.5035L15.555 16.5145C15.2763 16.821 14.802 16.8436 14.4955 16.565C14.189 16.2863 14.1664 15.812 14.445 15.5055L14.455 15.4945C14.7337 15.188 15.208 15.1654 15.5145 15.444ZM21.5145 15.444C21.821 15.7227 21.8436 16.197 21.565 16.5035L21.555 16.5145C21.2763 16.821 20.802 16.8436 20.4955 16.565C20.189 16.2863 20.1664 15.812 20.445 15.5055L20.455 15.4945C20.7337 15.188 21.208 15.1654 21.5145 15.444ZM6.51452 19.4441C6.82101 19.7227 6.84358 20.197 6.56494 20.5035L6.55494 20.5145C6.2763 20.821 5.80197 20.8436 5.49548 20.5649C5.189 20.2863 5.16642 19.812 5.44506 19.5055L5.45506 19.4945C5.7337 19.188 6.20803 19.1654 6.51452 19.4441ZM12.5145 19.4441C12.821 19.7227 12.8436 20.197 12.5649 20.5035L12.5549 20.5145C12.2763 20.821 11.802 20.8436 11.4955 20.5649C11.189 20.2863 11.1664 19.812 11.4451 19.5055L11.4551 19.4945C11.7337 19.188 12.208 19.1654 12.5145 19.4441ZM18.5145 19.4441C18.821 19.7227 18.8436 20.197 18.5649 20.5035L18.5549 20.5145C18.2763 20.821 17.802 20.8436 17.4955 20.5649C17.189 20.2863 17.1664 19.812 17.4451 19.5055L17.4551 19.4945C17.7337 19.188 18.208 19.1654 18.5145 19.4441Z"}),"soil-sampling":oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 11.5858 1.58579 11.25 2 11.25H6C6.41421 11.25 6.75 11.5858 6.75 12C6.75 12.4142 6.41421 12.75 6 12.75H2C1.58579 12.75 1.25 12.4142 1.25 12ZM16.25 12C16.25 11.5858 16.5858 11.25 17 11.25H22C22.4142 11.25 22.75 11.5858 22.75 12C22.75 12.4142 22.4142 12.75 22 12.75H17C16.5858 12.75 16.25 12.4142 16.25 12ZM6.5145 15.444C6.82099 15.7227 6.84359 16.197 6.56496 16.5035L6.55496 16.5145C6.27634 16.821 5.802 16.8436 5.49551 16.565C5.18901 16.2863 5.16641 15.812 5.44504 15.5055L5.45504 15.4945C5.73366 15.188 6.208 15.1654 6.5145 15.444ZM18.5145 15.444C18.821 15.7227 18.8436 16.197 18.565 16.5035L18.555 16.5145C18.2763 16.821 17.802 16.8436 17.4955 16.565C17.189 16.2863 17.1664 15.812 17.445 15.5055L17.455 15.4945C17.7337 15.188 18.208 15.1654 18.5145 15.444ZM3.51451 19.4441C3.821 19.7227 3.84358 20.197 3.56495 20.5035L3.55495 20.5145C3.27631 20.821 2.80198 20.8436 2.49549 20.5649C2.189 20.2863 2.16642 19.812 2.44505 19.5055L2.45505 19.4945C2.73369 19.188 3.20802 19.1654 3.51451 19.4441ZM9.51452 19.4441C9.821 19.7227 9.84358 20.197 9.56494 20.5035L9.55494 20.5145C9.2763 20.821 8.80197 20.8436 8.49548 20.5649C8.18899 20.2863 8.16642 19.812 8.44506 19.5055L8.45506 19.4945C8.7337 19.188 9.20803 19.1654 9.51452 19.4441ZM15.5145 19.4441C15.821 19.7227 15.8436 20.197 15.5649 20.5035L15.5549 20.5145C15.2763 20.821 14.802 20.8436 14.4955 20.5649C14.189 20.2863 14.1664 19.812 14.4451 19.5055L14.4551 19.4945C14.7337 19.188 15.208 19.1654 15.5145 19.4441ZM21.5145 19.4441C21.821 19.7227 21.8436 20.197 21.5649 20.5035L21.5549 20.5145C21.2763 20.821 20.802 20.8436 20.4955 20.5649C20.189 20.2863 20.1664 19.812 20.4451 19.5055L20.4551 19.4945C20.7337 19.188 21.208 19.1654 21.5145 19.4441Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 6C6.25 5.58579 6.58579 5.25 7 5.25H10C10.4142 5.25 10.75 5.58579 10.75 6C10.75 6.41421 10.4142 6.75 10 6.75H7C6.58579 6.75 6.25 6.41421 6.25 6Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.25 6C13.25 5.58579 13.5858 5.25 14 5.25H17C17.4142 5.25 17.75 5.58579 17.75 6C17.75 6.41421 17.4142 6.75 17 6.75H14C13.5858 6.75 13.25 6.41421 13.25 6Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25 5C9.25 3.48122 10.4812 2.25 12 2.25C13.5188 2.25 14.75 3.48122 14.75 5V16C14.75 17.5188 13.5188 18.75 12 18.75C10.4812 18.75 9.25 17.5188 9.25 16V5ZM12 17.25C12.6904 17.25 13.25 16.6904 13.25 16V5C13.25 4.30964 12.6904 3.75 12 3.75C11.3096 3.75 10.75 4.30964 10.75 5V16C10.75 16.6904 11.3096 17.25 12 17.25Z"})]}),tillage:oh(rh,{children:[ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 12C5.25 8.27199 8.27199 5.25 12 5.25C15.728 5.25 18.75 8.27199 18.75 12C18.75 15.728 15.728 18.75 12 18.75C8.27199 18.75 5.25 15.728 5.25 12ZM12 6.75C9.10041 6.75 6.75 9.10041 6.75 12C6.75 14.8996 9.10041 17.25 12 17.25C14.8996 17.25 17.25 14.8996 17.25 12C17.25 9.10041 14.8996 6.75 12 6.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25 12C9.25 10.4812 10.4812 9.25 12 9.25C13.5188 9.25 14.75 10.4812 14.75 12C14.75 13.5188 13.5188 14.75 12 14.75C10.4812 14.75 9.25 13.5188 9.25 12ZM12 10.75C11.3096 10.75 10.75 11.3096 10.75 12C10.75 12.6904 11.3096 13.25 12 13.25C12.6904 13.25 13.25 12.6904 13.25 12C13.25 11.3096 12.6904 10.75 12 10.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25 3C9.25 2.58579 9.58579 2.25 10 2.25H12C12.4142 2.25 12.75 2.58579 12.75 3V6C12.75 6.41421 12.4142 6.75 12 6.75C11.5858 6.75 11.25 6.41421 11.25 6V3.75H10C9.58579 3.75 9.25 3.41421 9.25 3ZM12 17.75C12.4142 17.75 12.75 18.0858 12.75 18.5V20.25H14C14.4142 20.25 14.75 20.5858 14.75 21C14.75 21.4142 14.4142 21.75 14 21.75H12C11.5858 21.75 11.25 21.4142 11.25 21V18.5C11.25 18.0858 11.5858 17.75 12 17.75Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.75 10V12C21.75 12.1989 21.671 12.3897 21.5303 12.5303C21.3897 12.671 21.1989 12.75 21 12.75H18C17.5858 12.75 17.25 12.4142 17.25 12C17.25 11.5858 17.5858 11.25 18 11.25H20.25V10C20.25 9.58579 20.5858 9.25 21 9.25C21.4142 9.25 21.75 9.58579 21.75 10ZM6.75 12C6.75 12.4142 6.41421 12.75 6 12.75H3.75V14C3.75 14.4142 3.41421 14.75 3 14.75C2.58579 14.75 2.25 14.4142 2.25 14L2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H6C6.41421 11.25 6.75 11.5858 6.75 12Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4697 3.74176C16.7626 3.44886 17.2374 3.44886 17.5303 3.74176L18.8943 5.10571C19.0349 5.24636 19.114 5.43713 19.114 5.63604C19.114 5.83495 19.0349 6.02572 18.8943 6.16637L17.0303 8.03032C16.7374 8.32322 16.2626 8.32322 15.9697 8.03032C15.6768 7.73743 15.6768 7.26255 15.9697 6.96966L17.3033 5.63604L16.4697 4.80242C16.1768 4.50952 16.1768 4.03465 16.4697 3.74176ZM8.03034 15.9697C8.32323 16.2626 8.32323 16.7374 8.03034 17.0303L6.6967 18.364L7.53034 19.1976C7.82323 19.4905 7.82323 19.9654 7.53034 20.2583C7.23745 20.5512 6.76257 20.5512 6.46968 20.2583L5.10571 18.8943C4.81282 18.6014 4.81282 18.1265 5.10571 17.8336L6.96968 15.9697C7.26257 15.6768 7.73744 15.6768 8.03034 15.9697Z"}),ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.96968 7.03032C2.67678 6.73743 2.67678 6.26256 2.96968 5.96966L4.46966 4.46968C4.61031 4.32903 4.80108 4.25001 4.99999 4.25001C5.1989 4.25001 5.38967 4.32903 5.53032 4.46968L8.03031 6.96966C8.3232 7.26256 8.3232 7.73743 8.03031 8.03032C7.73741 8.32322 7.26254 8.32322 6.96965 8.03032L4.99999 6.06067L4.03034 7.03032C3.73744 7.32322 3.26257 7.32322 2.96968 7.03032ZM15.9696 15.9697C16.2625 15.6768 16.7374 15.6768 17.0303 15.9697L19 17.9393L19.9697 16.9697C20.2626 16.6768 20.7374 16.6768 21.0303 16.9697C21.3232 17.2626 21.3232 17.7374 21.0303 18.0303L19.5303 19.5303C19.2374 19.8232 18.7626 19.8232 18.4697 19.5303L15.9696 17.0303C15.6768 16.7374 15.6768 16.2626 15.9696 15.9697Z"})]}),eligibility:ih(rh,{children:ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.3161 13.3078C16.9814 5.89741 7.01861 5.89741 3.68394 13.3078C3.51396 13.6855 3.06996 13.8539 2.69223 13.6839C2.3145 13.514 2.14608 13.07 2.31606 12.6922C6.1814 4.10259 17.8186 4.10259 21.6839 12.6922C21.8539 13.07 21.6855 13.514 21.3078 13.6839C20.93 13.8539 20.486 13.6855 20.3161 13.3078ZM12 11.75C10.7573 11.75 9.75 12.7573 9.75 14C9.75 15.2427 10.7573 16.25 12 16.25C13.2427 16.25 14.25 15.2427 14.25 14C14.25 12.7573 13.2427 11.75 12 11.75ZM8.25 14C8.25 11.9289 9.92889 10.25 12 10.25C14.0711 10.25 15.75 11.9289 15.75 14C15.75 16.0711 14.0711 17.75 12 17.75C9.92889 17.75 8.25 16.0711 8.25 14Z"})}),cloud:ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.10688 2.86413C7.02939 1.32662 8.81736 0.25 12 0.25C15.1826 0.25 16.9706 1.32662 17.8931 2.86413C18.5827 4.01348 18.7175 5.32248 18.7437 6.30083C19.609 6.41468 20.6494 6.73335 21.5632 7.39135C22.798 8.2804 23.75 9.75556 23.75 12C23.75 14.2444 22.798 15.7196 21.5632 16.6087C20.3667 17.4702 18.9534 17.75 18 17.75H6C5.04665 17.75 3.63332 17.4702 2.43677 16.6087C1.20198 15.7196 0.25 14.2444 0.25 12C0.25 9.75556 1.20198 8.2804 2.43677 7.39135C3.35065 6.73336 4.39099 6.41468 5.25627 6.30083C5.28248 5.32248 5.41727 4.01348 6.10688 2.86413ZM7.39312 3.63587C6.76553 4.68186 6.75 5.97236 6.75 7C6.75 7.41421 6.41421 7.75 6 7.75C5.28668 7.75 4.20001 7.97016 3.31323 8.60865C2.46468 9.2196 1.75 10.2444 1.75 12C1.75 13.7556 2.46468 14.7804 3.31323 15.3913C4.20001 16.0298 5.28668 16.25 6 16.25H18C18.7133 16.25 19.8 16.0298 20.6868 15.3913C21.5353 14.7804 22.25 13.7556 22.25 12C22.25 10.2444 21.5353 9.2196 20.6868 8.60865C19.8 7.97017 18.7133 7.75 18 7.75C17.5858 7.75 17.25 7.41421 17.25 7C17.25 5.97236 17.2345 4.68186 16.6069 3.63587C16.0294 2.67338 14.8174 1.75 12 1.75C9.18264 1.75 7.97061 2.67338 7.39312 3.63587Z"}),water:ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5159 1.45562L12 1.99999L11.4841 1.45562L12 0.96669L12.5159 1.45562ZM12 3.05006C11.8063 3.24356 11.5656 3.48759 11.2906 3.77357C10.5499 4.54372 9.56431 5.61398 8.58078 6.81769C7.59493 8.02422 6.6242 9.34898 5.90354 10.629C5.17155 11.9291 4.75 13.0927 4.75 14C4.75 18.0041 7.99593 21.25 12 21.25C16.0041 21.25 19.25 18.0041 19.25 14C19.25 13.0927 18.8284 11.9291 18.0965 10.629C17.3758 9.34898 16.4051 8.02422 15.4192 6.81769C14.4357 5.61398 13.4501 4.54372 12.7094 3.77357C12.4344 3.48759 12.1937 3.24356 12 3.05006ZM11.4841 1.45562C11.4842 1.45549 11.4841 1.45562 12 1.99999C12.5159 1.45562 12.5158 1.45549 12.5159 1.45562L12.523 1.46233L12.5414 1.47992L12.611 1.54683C12.6714 1.6052 12.7592 1.69068 12.8706 1.80066C13.0934 2.02056 13.4105 2.33862 13.7906 2.73378C14.5499 3.52327 15.5643 4.62458 16.5808 5.86859C17.5949 7.10977 18.6242 8.50887 19.4035 9.89308C20.1716 11.2572 20.75 12.6982 20.75 14C20.75 18.8325 16.8325 22.75 12 22.75C7.16751 22.75 3.25 18.8325 3.25 14C3.25 12.6982 3.82845 11.2572 4.59646 9.89308C5.3758 8.50887 6.40507 7.10977 7.41922 5.86859C8.43569 4.62458 9.45014 3.52327 10.2094 2.73378C10.5895 2.33862 10.9066 2.02056 11.1294 1.80066C11.2408 1.69068 11.3286 1.6052 11.389 1.54683L11.4586 1.47992L11.477 1.46233L11.4841 1.45562Z"}),biodiversity:ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.28432 6.36816C6.59892 3.4898 9.0379 1.25 12 1.25C14.9621 1.25 17.4012 3.48988 17.7157 6.36832C20.5859 6.93436 22.75 9.4641 22.75 12.5C22.75 15.9518 19.9518 18.75 16.5 18.75H12.75V22C12.75 22.4142 12.4142 22.75 12 22.75C11.5858 22.75 11.25 22.4142 11.25 22V18.75H7.5C4.04822 18.75 1.25 15.9518 1.25 12.5C1.25 9.46419 3.41443 6.93391 6.28432 6.36816ZM7.81597 6.25H9C9.41421 6.25 9.75 6.58579 9.75 7C9.75 7.41421 9.41421 7.75 9 7.75H7.5C4.87664 7.75 2.75 9.87664 2.75 12.5C2.75 15.1234 4.87664 17.25 7.5 17.25H11.25V10C11.25 9.58579 11.5858 9.25 12 9.25C12.4142 9.25 12.75 9.58579 12.75 10V12.7865L15.6646 11.3292C16.0351 11.1439 16.4856 11.2941 16.6708 11.6646C16.8561 12.0351 16.7059 12.4856 16.3354 12.6708L12.75 14.4635V17.25H16.5C19.1234 17.25 21.25 15.1234 21.25 12.5C21.25 10.0227 19.3529 7.98753 16.9327 7.76943C16.5386 7.73392 16.2433 7.39963 16.2501 7.01017C16.25 7.00678 16.25 7.00339 16.25 7C16.25 4.6528 14.3472 2.75 12 2.75C9.90871 2.75 8.1702 4.26049 7.81597 6.25Z"}),"yield-resilience":ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7288 2.82855C11.7288 2.82856 11.7288 2.82855 11.7288 2.82855L4.06669 4.53126C3.93522 4.56047 3.85493 4.68113 3.87283 4.80646L5.74247 17.8939L5.7436 17.9019C5.77009 18.0883 5.86275 18.7406 6.58309 19.3714C7.32705 20.0228 8.85586 20.75 12 20.75C15.1442 20.75 16.673 20.0228 17.4169 19.3714C18.1373 18.7406 18.2299 18.0883 18.2564 17.9019L18.2575 17.894L20.1271 4.80645C20.1451 4.6811 20.0648 4.56047 19.9333 4.53126L12.2712 2.82855C12.2712 2.82855 12.2712 2.82856 12.2712 2.82855C12.0926 2.78887 11.9074 2.78887 11.7288 2.82855ZM11.4034 1.36426C11.7964 1.27696 12.2036 1.27696 12.5966 1.36426L20.2587 3.06698C21.1474 3.26447 21.742 4.10937 21.6121 5.01859L19.7425 18.106C19.6968 18.4259 19.5314 19.5137 18.4051 20.4999C17.2917 21.4747 15.3559 22.25 12 22.25C8.64416 22.25 6.70833 21.4747 5.59496 20.4999C4.46862 19.5137 4.30324 18.4259 4.25755 18.1061L2.38791 5.0186C2.38791 5.01859 2.38791 5.0186 2.38791 5.0186C2.25801 4.10935 2.85258 3.26447 3.74129 3.06698C3.74129 3.06698 3.74129 3.06698 3.74129 3.06698L11.4034 1.36426ZM11.8354 6.32918C12.2059 6.51442 12.3561 6.96492 12.1708 7.33541L10.2135 11.25H15C15.2599 11.25 15.5013 11.3846 15.638 11.6057C15.7747 11.8268 15.7871 12.1029 15.6708 12.3354L13.1708 17.3354C12.9856 17.7059 12.5351 17.8561 12.1646 17.6708C11.7941 17.4856 11.6439 17.0351 11.8292 16.6646L13.7865 12.75H9.00001C8.74008 12.75 8.49868 12.6154 8.36202 12.3943C8.22537 12.1732 8.21294 11.8971 8.32919 11.6646L10.8292 6.66459C11.0144 6.2941 11.4649 6.14393 11.8354 6.32918Z"}),explore:ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.2823 5.42543L4.90607 9.45076L11.6492 12.4177L11.6493 12.4178C11.9351 12.5436 12.1641 12.772 12.2901 13.0588L11.6034 13.3605L12.2899 13.0584L12.2901 13.0588L15.2569 19.8015L15.0687 20.4736C15.1322 20.2485 15.4432 20.2259 15.538 20.4405L15.5382 20.4408L15.5382 20.4409C15.5382 20.4408 15.5381 20.4406 15.538 20.4405L15.2569 19.8015L19.2823 5.42543ZM4.26714 9.16963C4.26704 9.16958 4.26693 9.16954 4.26682 9.16949L4.26683 9.1695L4.26714 9.16963ZM19.3058 3.86114C20.2446 3.59831 21.1093 4.46333 20.8465 5.40184L20.8465 5.4019L16.513 20.8785L16.513 20.8785C16.1966 22.0084 14.6379 22.1195 14.1652 21.0449L10.9561 13.7515L3.66274 10.5425C2.58846 10.0698 2.69898 8.51106 3.8291 8.19462L3.82911 8.19462L19.3058 3.86115L19.3058 3.86114Z",fill:"black"}),pin:oh(rh,{children:[ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 3.75C7.99593 3.75 4.75 6.99593 4.75 11C4.75 11.9073 5.17155 13.0709 5.90354 14.371C6.6242 15.651 7.59493 16.9758 8.58078 18.1823C9.56431 19.386 10.5499 20.4563 11.2906 21.2264C11.5656 21.5124 11.8063 21.7564 12 21.9499C12.1937 21.7564 12.4344 21.5124 12.7094 21.2264C13.4501 20.4563 14.4357 19.386 15.4192 18.1823C16.4051 16.9758 17.3758 15.651 18.0965 14.371C18.8284 13.0709 19.25 11.9073 19.25 11C19.25 6.99593 16.0041 3.75 12 3.75ZM12 23C11.4841 23.5444 11.4838 23.5441 11.4838 23.5441L11.477 23.5377L11.4586 23.5201L11.389 23.4532C11.3286 23.3948 11.2408 23.3093 11.1294 23.1993C10.9066 22.9794 10.5895 22.6614 10.2094 22.2662C9.45014 21.4767 8.43569 20.3754 7.41922 19.1314C6.40507 17.8902 5.3758 16.4911 4.59646 15.1069C3.82845 13.7428 3.25 12.3018 3.25 11C3.25 6.16751 7.16751 2.25 12 2.25C16.8325 2.25 20.75 6.16751 20.75 11C20.75 12.3018 20.1716 13.7428 19.4035 15.1069C18.6242 16.4911 17.5949 17.8902 16.5808 19.1314C15.5643 20.3754 14.5499 21.4767 13.7906 22.2662C13.4105 22.6614 13.0934 22.9794 12.8706 23.1993C12.7592 23.3093 12.6714 23.3948 12.611 23.4532L12.5414 23.5201L12.523 23.5377L12.518 23.5424L12.5166 23.5437C12.5166 23.5437 12.5159 23.5444 12 23ZM12 23L12.5166 23.5437L12 24.0333L11.4838 23.5441L12 23Z"}),ih("path",{d:"M12 12C12.5523 12 13 11.5523 13 11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11C11 11.5523 11.4477 12 12 12Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.25 11C10.25 10.0335 11.0335 9.25 12 9.25C12.9665 9.25 13.75 10.0335 13.75 11C13.75 11.9665 12.9665 12.75 12 12.75C11.0335 12.75 10.25 11.9665 10.25 11ZM12 10.75C11.8619 10.75 11.75 10.8619 11.75 11C11.75 11.1381 11.8619 11.25 12 11.25C12.1381 11.25 12.25 11.1381 12.25 11C12.25 10.8619 12.1381 10.75 12 10.75Z"})]}),save:oh(rh,{children:[ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3.75C4.30964 3.75 3.75 4.30964 3.75 5V19C3.75 19.6904 4.30964 20.25 5 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V7.82843C20.25 7.4969 20.1183 7.17897 19.8839 6.94455L17.0555 4.11613C16.821 3.88168 16.5031 3.75 16.1716 3.75H5ZM2.25 5C2.25 3.48122 3.48122 2.25 5 2.25H16.1716C16.9009 2.25 17.6004 2.53974 18.1161 3.05545L20.9445 5.88387C21.4603 6.39961 21.75 7.09909 21.75 7.82843V19C21.75 20.5188 20.5188 21.75 19 21.75H5C3.48122 21.75 2.25 20.5188 2.25 19V5Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.25 3.6C7.25 2.85442 7.85442 2.25 8.6 2.25H15.4C16.1456 2.25 16.75 2.85444 16.75 3.6V8.4C16.75 9.14556 16.1456 9.75 15.4 9.75H8.6C7.85442 9.75 7.25 9.14558 7.25 8.4V3.6ZM8.75 3.75V8.25H15.25V3.75H8.75Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.25 13.6C5.25 12.8544 5.85444 12.25 6.6 12.25H17.4C18.1456 12.25 18.75 12.8544 18.75 13.6V21.75H5.25V13.6ZM6.75 13.75V20.25H17.25V13.75H6.75Z"})]}),"cloud-saving":oh(rh,{children:[ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.10688 3.86413C7.02939 2.32662 8.81736 1.25 12 1.25C15.1826 1.25 16.9706 2.32662 17.8931 3.86413C18.5827 5.01348 18.7175 6.32248 18.7437 7.30083C19.609 7.41468 20.6494 7.73335 21.5632 8.39135C22.798 9.2804 23.75 10.7556 23.75 13C23.75 14.4934 23.3284 15.6616 22.6577 16.5458C21.9929 17.4221 21.1179 17.9748 20.2736 18.3056C19.8879 18.4567 19.4528 18.2666 19.3017 17.8809C19.1506 17.4952 19.3407 17.0601 19.7264 16.909C20.3758 16.6546 21.0008 16.2481 21.4626 15.6393C21.9184 15.0384 22.25 14.1955 22.25 13C22.25 11.2444 21.5353 10.2196 20.6868 9.60865C19.8 8.97017 18.7133 8.75 18 8.75C17.5858 8.75 17.25 8.41421 17.25 8C17.25 6.97236 17.2345 5.68186 16.6069 4.63587C16.0294 3.67338 14.8174 2.75 12 2.75C9.18264 2.75 7.97061 3.67338 7.39312 4.63587C6.76553 5.68186 6.75 6.97236 6.75 8C6.75 8.41421 6.41421 8.75 6 8.75C5.28668 8.75 4.20001 8.97016 3.31323 9.60865C2.46468 10.2196 1.75 11.2444 1.75 13C1.75 14.1955 2.08156 15.0384 2.53739 15.6393C2.99923 16.2481 3.6242 16.6546 4.27358 16.909C4.65926 17.0601 4.84942 17.4952 4.69832 17.8809C4.54722 18.2666 4.11209 18.4567 3.72642 18.3056C2.88208 17.9748 2.00705 17.4221 1.34232 16.5458C0.671581 15.6616 0.25 14.4934 0.25 13C0.25 10.7556 1.20198 9.2804 2.43677 8.39135C3.35065 7.73336 4.39099 7.41468 5.25627 7.30083C5.28248 6.32248 5.41727 5.01348 6.10688 3.86413Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.05026 18.9571C7.34316 18.6642 7.81803 18.6642 8.11092 18.9571L9.87868 20.7249C11.1479 21.9941 13.2057 21.9941 14.4749 20.7249L14.8285 20.3713C15.1214 20.0784 15.5962 20.0784 15.8891 20.3713C16.182 20.6642 16.182 21.139 15.8891 21.4319L15.5355 21.7855C13.6805 23.6405 10.6731 23.6405 8.81804 21.7855L7.05026 20.0177C6.75736 19.7248 6.75737 19.25 7.05026 18.9571Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.05026 18.9571C7.21719 18.7901 7.45296 18.7115 7.68666 18.7449L10.1615 19.0985C10.4427 19.1387 10.6771 19.3343 10.7669 19.6038C10.8567 19.8733 10.7866 20.1705 10.5857 20.3713L8.46446 22.4926C8.26359 22.6935 7.96646 22.7636 7.69696 22.6738C7.42746 22.584 7.23184 22.3496 7.19167 22.0684L6.83812 19.5935C6.80473 19.3598 6.88333 19.124 7.05026 18.9571Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0606 14.6036L16.8284 16.3713C17.1213 16.6641 17.1213 17.139 16.8284 17.4319C16.5356 17.7248 16.0607 17.7248 15.7678 17.4319L14 15.6642C12.7308 14.395 10.6729 14.395 9.40379 15.6642L9.05017 16.0178C8.75726 16.3106 8.28238 16.3106 7.98951 16.0177C7.69665 15.7248 7.69669 15.2499 7.9896 14.957L8.34311 14.6036C10.1981 12.7486 13.2057 12.7486 15.0606 14.6036Z"}),ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.1817 13.7153C16.4512 13.8051 16.6468 14.0395 16.687 14.3207L17.0406 16.7956C17.0739 17.0293 16.9954 17.265 16.8284 17.4319C16.6615 17.5988 16.4257 17.6775 16.192 17.6442L13.7171 17.2906C13.4359 17.2504 13.2015 17.0548 13.1117 16.7853C13.0219 16.5158 13.092 16.2186 13.2929 16.0178L15.4142 13.8965C15.615 13.6956 15.9122 13.6255 16.1817 13.7153Z"})]}),"cloud-saved":ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.10688 3.86413C7.02939 2.32662 8.81736 1.25 12 1.25C15.1826 1.25 16.9706 2.32662 17.8931 3.86413C18.5827 5.01348 18.7175 6.32248 18.7437 7.30083C19.609 7.41468 20.6494 7.73335 21.5632 8.39135C22.798 9.2804 23.75 10.7556 23.75 13C23.75 14.4934 23.3284 15.6616 22.6577 16.5458C21.9929 17.4221 21.1179 17.9748 20.2736 18.3056C19.8879 18.4567 19.4528 18.2666 19.3017 17.8809C19.1506 17.4952 19.3407 17.0601 19.7264 16.909C20.3758 16.6546 21.0008 16.2481 21.4626 15.6393C21.9184 15.0384 22.25 14.1955 22.25 13C22.25 11.2444 21.5353 10.2196 20.6868 9.60865C19.8 8.97017 18.7133 8.75 18 8.75C17.5858 8.75 17.25 8.41421 17.25 8C17.25 6.97236 17.2345 5.68186 16.6069 4.63587C16.0294 3.67338 14.8174 2.75 12 2.75C9.18264 2.75 7.97061 3.67338 7.39312 4.63587C6.76553 5.68186 6.75 6.97236 6.75 8C6.75 8.41421 6.41421 8.75 6 8.75C5.28668 8.75 4.20001 8.97016 3.31323 9.60865C2.46468 10.2196 1.75 11.2444 1.75 13C1.75 14.1955 2.08156 15.0384 2.53739 15.6393C2.99923 16.2481 3.6242 16.6546 4.27358 16.909C4.65926 17.0601 4.84942 17.4952 4.69832 17.8809C4.54722 18.2666 4.11209 18.4567 3.72642 18.3056C2.88208 17.9748 2.00705 17.4221 1.34232 16.5458C0.671581 15.6616 0.25 14.4934 0.25 13C0.25 10.7556 1.20198 9.2804 2.43677 8.39135C3.35065 7.73336 4.39099 7.41468 5.25627 7.30083C5.28248 6.32248 5.41727 5.01348 6.10688 3.86413ZM16.5303 15.4697C16.8232 15.7626 16.8232 16.2374 16.5303 16.5303L11.5303 21.5303C11.2374 21.8232 10.7626 21.8232 10.4697 21.5303L7.46967 18.5303C7.17678 18.2374 7.17678 17.7626 7.46967 17.4697C7.76256 17.1768 8.23744 17.1768 8.53033 17.4697L11 19.9393L15.4697 15.4697C15.7626 15.1768 16.2374 15.1768 16.5303 15.4697Z"}),"cloud-error":ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.10688 3.86413C7.02939 2.32662 8.81736 1.25 12 1.25C15.1826 1.25 16.9706 2.32662 17.8931 3.86413C18.5827 5.01348 18.7175 6.32248 18.7437 7.30083C19.609 7.41468 20.6494 7.73335 21.5632 8.39135C22.798 9.2804 23.75 10.7556 23.75 13C23.75 14.4934 23.3284 15.6616 22.6577 16.5458C21.9929 17.4221 21.1179 17.9748 20.2736 18.3056C19.8879 18.4567 19.4528 18.2666 19.3017 17.8809C19.1506 17.4952 19.3407 17.0601 19.7264 16.909C20.3758 16.6546 21.0008 16.2481 21.4626 15.6393C21.9184 15.0384 22.25 14.1955 22.25 13C22.25 11.2444 21.5353 10.2196 20.6868 9.60865C19.8 8.97017 18.7133 8.75 18 8.75C17.5858 8.75 17.25 8.41421 17.25 8C17.25 6.97236 17.2345 5.68186 16.6069 4.63587C16.0294 3.67338 14.8174 2.75 12 2.75C9.18264 2.75 7.97061 3.67338 7.39312 4.63587C6.76553 5.68186 6.75 6.97236 6.75 8C6.75 8.41421 6.41421 8.75 6 8.75C5.28668 8.75 4.20001 8.97016 3.31323 9.60865C2.46468 10.2196 1.75 11.2444 1.75 13C1.75 14.1955 2.08156 15.0384 2.53739 15.6393C2.99923 16.2481 3.6242 16.6546 4.27358 16.909C4.65926 17.0601 4.84942 17.4952 4.69832 17.8809C4.54722 18.2666 4.11209 18.4567 3.72642 18.3056C2.88208 17.9748 2.00705 17.4221 1.34232 16.5458C0.671581 15.6616 0.25 14.4934 0.25 13C0.25 10.7556 1.20198 9.2804 2.43677 8.39135C3.35065 7.73336 4.39099 7.41468 5.25627 7.30083C5.28248 6.32248 5.41727 5.01348 6.10688 3.86413ZM8.46963 15.4697C8.76249 15.1768 9.23737 15.1768 9.53029 15.4696L12.0004 17.9393L14.4696 15.4697C14.7625 15.1768 15.2374 15.1768 15.5303 15.4696C15.8232 15.7625 15.8232 16.2374 15.5304 16.5303L13.0611 19L15.5304 21.4697C15.8232 21.7626 15.8232 22.2375 15.5303 22.5304C15.2374 22.8232 14.7625 22.8232 14.4696 22.5303L12.0004 20.0607L9.53029 22.5304C9.23737 22.8232 8.76249 22.8232 8.46963 22.5303C8.17676 22.2374 8.1768 21.7625 8.46971 21.4696L10.9398 19L8.46971 16.5304C8.1768 16.2375 8.17676 15.7626 8.46963 15.4697Z"}),"cover-crop":ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.9876 4.25072H17.9884H18.6801H19.4301L19.4629 5L19.4916 5.65603L19.4916 5.65691C19.5673 7.43365 18.8959 9.12865 17.6388 10.3725C16.3829 11.6151 14.6446 12.3077 12.8077 12.3096H12.8069H12.6346H12.1152H11.8846H11.3652H11.1928L11.1921 12.3096C9.35512 12.3077 7.61688 11.6151 6.36099 10.3725C5.10384 9.12865 4.43249 7.43365 4.50813 5.65691L4.50817 5.65603L4.53687 5L4.56964 4.25072H5.31964H6.01139H6.01218C7.84912 4.25265 9.58736 4.94522 10.8432 6.18781C11.3136 6.6532 11.702 7.18174 11.9999 7.75409C12.2978 7.18174 12.6861 6.6532 13.1565 6.18781C14.4124 4.94522 16.1506 4.25265 17.9876 4.25072ZM17.9947 5.74966C16.5531 5.76603 15.2049 6.31677 14.2368 7.27467C13.2793 8.22202 12.7701 9.49047 12.8006 10.8106C14.2422 10.7943 15.5904 10.2435 16.5585 9.28564C17.516 8.33828 18.0252 7.06983 17.9947 5.74966ZM2.25 15C2.25 14.5858 2.58579 14.25 3 14.25H21C21.4142 14.25 21.75 14.5858 21.75 15C21.75 15.4142 21.4142 15.75 21 15.75H3C2.58579 15.75 2.25 15.4142 2.25 15ZM4.5 19.75C4.5 20.1642 4.16421 20.5 3.75 20.5C3.33579 20.5 3 20.1642 3 19.75C3 19.3358 3.33579 19 3.75 19C4.16421 19 4.5 19.3358 4.5 19.75ZM9.25 20.5C9.66421 20.5 10 20.1642 10 19.75C10 19.3358 9.66421 19 9.25 19C8.83579 19 8.5 19.3358 8.5 19.75C8.5 20.1642 8.83579 20.5 9.25 20.5ZM15.5 19.75C15.5 20.1642 15.1642 20.5 14.75 20.5C14.3358 20.5 14 20.1642 14 19.75C14 19.3358 14.3358 19 14.75 19C15.1642 19 15.5 19.3358 15.5 19.75ZM20.25 20.5C20.6642 20.5 21 20.1642 21 19.75C21 19.3358 20.6642 19 20.25 19C19.8358 19 19.5 19.3358 19.5 19.75C19.5 20.1642 19.8358 20.5 20.25 20.5ZM9.76299 7.27467C8.79484 6.31677 7.44665 5.76603 6.0051 5.74966C5.97458 7.06983 6.48375 8.33828 7.44124 9.28564C8.4094 10.2435 9.75758 10.7943 11.1991 10.8106C11.2297 9.49048 10.7205 8.22202 9.76299 7.27467Z"}),"commodity-crop":ih("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4229 4.5C11.0442 4.5 10.6858 4.67175 10.4486 4.96701L9.77569 5.80435C9.59732 6.02633 9.50008 6.30257 9.50008 6.58734V7H10.7501C11.1643 7 11.5001 7.33579 11.5001 7.75C11.5001 8.16421 11.1643 8.5 10.7501 8.5H9.50008V11.4338C10.6382 12.5068 11.3568 13.7002 11.7862 14.8837C12.2065 13.7255 12.9037 12.5577 14.0001 11.5027V10.5H12.7501C12.3359 10.5 12.0001 10.1642 12.0001 9.75C12.0001 9.33579 12.3359 9 12.7501 9H14.0001V6.58734C14.0001 6.30257 13.9028 6.02633 13.7245 5.80435L13.0516 4.96701C12.8143 4.67175 12.456 4.5 12.0772 4.5H11.4229ZM11.8348 21.244L12.5456 20.9393C15.4968 19.6742 16.8931 17.7026 17.3716 15.672C17.8391 13.6882 17.4113 11.7379 16.8972 10.4685L16.5638 9.64526L15.8081 10.1118C15.7032 10.1766 15.6005 10.2422 15.5001 10.3085V9.75V6.58734C15.5001 5.96084 15.2862 5.35312 14.8937 4.86476L14.2209 4.02742C13.6989 3.37785 12.9105 3 12.0772 3H11.4229C10.5896 3 9.80127 3.37785 9.27929 4.02742L8.60643 4.86476C8.214 5.35312 8.00008 5.96084 8.00008 6.58734V7.75V10.2611C7.92281 10.2109 7.84425 10.1611 7.76439 10.1118L7.00864 9.64526L6.67526 10.4685C6.16116 11.7379 5.73339 13.6882 6.20085 15.672C6.67933 17.7026 8.07568 19.6742 11.0269 20.9393L11.7377 21.244L11.7476 21.2814L11.7862 21.2649L11.8249 21.2814L11.8348 21.244ZM12.7987 19.1515C14.7334 18.0925 15.5913 16.6874 15.9116 15.328C16.1931 14.1332 16.0707 12.9195 15.8063 11.9302C12.9068 14.143 12.5386 17.1691 12.7987 19.1515ZM7.66087 15.328C7.98119 16.6874 8.83902 18.0925 10.7738 19.1515C11.0338 17.1691 10.6656 14.143 7.7662 11.9302C7.50173 12.9195 7.37933 14.1332 7.66087 15.328Z"}),...FB},BB=e=>void 0===e,UB=e=>(e=>null===e)(e)||BB(e),$B=e=>!UB(e),VB=e=>"string"==typeof e,qB=e=>VB(e)&&!(e=>VB(e)&&""===e)(e),ZB=e=>Array.isArray(e),HB=e=>ZB(e)&&0===e.length,GB=e=>ZB(e)&&e.length>0,WB=e=>Qd.includes(e),YB=["error"],KB=e=>YB.includes(e),XB=e=>"string"==typeof e&&!!zB[e];function JB(e){return rf("MuiDialog",e)}const QB=of("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),eU=r.createContext({}),tU=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],nU=sx(sO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rU=sx(pO,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),iU=sx("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${xh(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return mb({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),oU=sx(Lk,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${xh(n.scroll)}`],t[`paperWidth${xh(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return mb({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`${t.breakpoints.values.xs}${t.breakpoints.unit}`,[`&.${QB.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${QB.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${QB.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),aU=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiDialog"}),i=xx(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClose:y,open:v,PaperComponent:b=Lk,PaperProps:_={},scroll:w="paper",TransitionComponent:x=rO,transitionDuration:k=o,TransitionProps:C}=n,S=fb(n,tU),M=mb({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:w}),T=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e;return Bp({root:["root"],container:["container",`scroll${xh(n)}`],paper:["paper",`paperScroll${xh(n)}`,`paperWidth${xh(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},JB,t)})(M),E=r.useRef(),P=Oh(s),I=r.useMemo((()=>({titleId:P})),[P]);return ih(rU,mb({className:yb(T.root,d),closeAfterTransition:!0,components:{Backdrop:nU},componentsProps:{backdrop:mb({transitionDuration:k,as:l},c)},disableEscapeKeyDown:p,onClose:y,open:v,ref:t,onClick:e=>{!E.current||(E.current=null,g&&g(e),y&&y(e,"backdropClick"))},ownerState:M},S,{children:ih(x,mb({appear:!0,in:v,timeout:k,role:"presentation"},C,{children:ih(iU,{className:yb(T.container),onMouseDown:e=>{E.current=e.target===e.currentTarget},ownerState:M,children:ih(oU,mb({as:b,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":P},_,{className:yb(T.paper,_.className),ownerState:M,children:ih(eU.Provider,{value:I,children:u})}))})}))}))})),sU=aU;of("MuiDialogActions",["root","spacing"]);sx("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return mb({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})}));of("MuiDialogContent",["root","dividers"]);const lU=of("MuiDialogTitle",["root"]),cU=(sx("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return mb({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${lU.root} + &`]:{paddingTop:0}})})),["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]);const uU=["onChange"],dU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const pU=of("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);sx(lC,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return mb({width:40,flexShrink:0,opacity:.8,[`&.${pU.disabled}`]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})}));const hU=of("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);sx("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hU.scrollButtons}`]:t.scrollButtons},{[`& .${hU.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return mb({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${hU.scrollButtons}`]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),sx("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return mb({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),sx("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return mb({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),sx("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return mb({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),sx((function(e){const{onChange:t}=e,n=fb(e,uU),i=r.useRef(),o=r.useRef(null),a=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return r.useEffect((()=>{const e=kh((()=>{const e=i.current;a(),e!==i.current&&t(i.current)})),n=Mh(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),r.useEffect((()=>{a(),t(i.current)}),[t]),ih("div",mb({style:dU,ref:o},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}});const fU={contract:oh(rh,{children:[ih("path",{d:"M1.13181 14.1118C1.5768 14.0354 3.4652 13.6742 4.20293 12.9365L2.22722 10.9608C1.48951 11.6985 1.12873 13.5874 1.05243 14.0325C1.05052 14.0433 1.05125 14.0545 1.05457 14.065C1.05788 14.0755 1.06368 14.085 1.07147 14.0928C1.07926 14.1006 1.08881 14.1064 1.09932 14.1097C1.10982 14.113 1.12097 14.1137 1.13181 14.1118Z"}),ih("path",{d:"M13.9573 3.22149C14.0599 3.1189 14.1175 2.97975 14.1175 2.83467C14.1175 2.68959 14.0599 2.55045 13.9573 2.44786L12.7161 1.2066C12.6653 1.1558 12.605 1.11551 12.5386 1.08802C12.4722 1.06053 12.4011 1.04638 12.3293 1.04638C12.2574 1.04638 12.1863 1.06053 12.1199 1.08803C12.0535 1.11552 11.9932 1.15582 11.9424 1.20662L10.6521 2.49695L12.667 4.51182L13.9573 3.22149Z"}),ih("path",{d:"M10.0862 3.06364L2.77441 10.3754L4.789 12.39L12.1008 5.07823L10.0862 3.06364Z"}),ih("path",{d:"M1.26023 15.5057L1.64817 15.6648C2.1128 15.8655 2.61866 15.9524 3.12363 15.9181C3.46288 15.8899 3.78594 15.7117 4.12787 15.5231C4.67743 15.2201 5.29989 14.8761 6.12849 15.0788C6.27509 15.1152 6.41079 15.1863 6.52418 15.2861C6.63757 15.3858 6.72531 15.5114 6.78003 15.6522C6.97262 16.144 7.2692 16.2174 7.42888 16.2174C7.5885 16.2174 7.88507 16.144 8.07767 15.6521L8.64301 14.2083C8.64694 14.1981 8.65087 14.1887 8.65471 14.1798C8.65855 14.1887 8.66239 14.1982 8.6664 14.2083L9.23166 15.652C9.42425 16.1439 9.72083 16.2174 9.88044 16.2174C10.0401 16.2174 10.3367 16.144 10.5293 15.652L11.0946 14.2083C11.0986 14.1982 11.1025 14.1886 11.1063 14.1797C11.1102 14.1886 11.114 14.1981 11.118 14.2082L11.6834 15.6522C11.876 16.144 12.1726 16.2174 12.3322 16.2174C12.4918 16.2174 12.7884 16.144 12.9809 15.6521L13.5463 14.2083C13.5591 14.1755 13.5712 14.1485 13.5824 14.1265C15.4451 15.9948 15.7287 16.2761 15.922 16.2761C15.957 16.2745 15.9916 16.2679 16.0249 16.2567C16.0907 16.2382 16.1496 16.2004 16.1938 16.1482C16.238 16.096 16.2656 16.0317 16.273 15.9637C16.2804 15.8956 16.2672 15.827 16.2352 15.7665C16.2033 15.706 16.1539 15.6564 16.0935 15.6242C15.8896 15.4536 14.8663 14.4452 13.9614 13.5378C13.8955 13.4722 13.8144 13.424 13.7253 13.3974C13.6361 13.3709 13.5418 13.367 13.4508 13.3859C13.22 13.4378 13.0377 13.6305 12.9092 13.9588L12.3438 15.4027C12.3398 15.4128 12.336 15.4224 12.3321 15.4312C12.3283 15.4223 12.3245 15.4128 12.3205 15.4027L11.7551 13.9588C11.5625 13.467 11.2659 13.3936 11.1063 13.3936C10.9466 13.3936 10.6501 13.467 10.4575 13.9589L9.89221 15.4026C9.8882 15.4127 9.88428 15.4223 9.88044 15.4312C9.87668 15.4223 9.87275 15.4127 9.86874 15.4026L9.30348 13.9589C9.11097 13.4671 8.81439 13.3936 8.65471 13.3936C8.49509 13.3936 8.19852 13.467 8.00592 13.9588L7.44059 15.4026C7.43657 15.4128 7.43264 15.4223 7.42888 15.4313C7.42504 15.4223 7.42112 15.4128 7.41711 15.4027C7.32232 15.1598 7.17054 14.9431 6.97453 14.7711C6.77853 14.5991 6.54405 14.4767 6.29085 14.4142C5.20318 14.1487 4.39062 14.5968 3.79738 14.924C3.57474 15.0713 3.32726 15.1771 3.06691 15.2363C2.66977 15.261 2.27245 15.1909 1.90775 15.0317L1.51981 14.8726C1.47822 14.8555 1.43367 14.8467 1.38869 14.8468C1.34372 14.8469 1.2992 14.8559 1.2577 14.8732C1.21619 14.8905 1.17851 14.9159 1.14681 14.9478C1.1151 14.9797 1.09 15.0175 1.07294 15.0591C1.05588 15.1008 1.04719 15.1453 1.04737 15.1903C1.04755 15.2353 1.05659 15.2798 1.07399 15.3213C1.09138 15.3627 1.11679 15.4004 1.14874 15.432C1.1807 15.4637 1.21858 15.4887 1.26023 15.5057H1.26023Z"})]}),crop:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.93286 3.93288C11.6644 5.72776 14.1342 10.0038 11.3959 16.7082C9.89259 14.4382 8.604 11.4819 7.53018 7.83937C8.33555 11.7459 9.57045 15.6524 12.255 18.767C14.2953 17.1305 15.6913 14.6493 16.7651 12.3266C15.4228 14.7021 14.0805 16.5498 12.6845 17.8696C11.7181 12.7489 14.0805 10.1622 19.6644 10.0566C16.9262 13.6463 19.4496 17.2889 13.7584 17.9751C13.4362 18.2391 12.0402 19.5588 11.9866 19.6644C11.3423 18.8198 10.7517 17.9223 10.2147 16.9721C1.73152 14.3326 6.67112 9.84541 3.93286 3.93288Z"}),eligibility:ih("path",{d:"M11.475 4C8.67217 4 6.40002 5.13608 6.40002 6.5375C6.40002 7.93892 8.67217 9.075 11.475 9.075C14.2779 9.075 16.55 7.93892 16.55 6.5375C16.55 5.13608 14.2779 4 11.475 4ZM6.40568 8.38398V9.31855C6.61548 9.69419 7.04062 10.0608 7.67443 10.3777C8.6201 10.8506 9.981 11.165 11.4807 11.165C12.9803 11.165 14.3299 10.8506 15.2756 10.3777C15.9193 10.0559 16.3437 9.68322 16.55 9.30156V8.38398C16.2812 8.60714 15.9665 8.81168 15.6211 8.98438C14.5332 9.52832 13.0842 9.83965 11.4807 9.83965C9.87718 9.83965 8.41685 9.52832 7.32893 8.98438C6.98367 8.81175 6.67349 8.60705 6.40568 8.38398ZM6.40568 10.5193V11.4936C6.61548 11.8692 7.04062 12.2358 7.67443 12.5527C8.6201 13.0256 9.981 13.34 11.4807 13.34C12.9803 13.34 14.3299 13.0256 15.2756 12.5527C15.9193 12.2309 16.3437 11.8582 16.55 11.4766V10.5193C16.2812 10.7424 15.9664 10.9414 15.6211 11.1141C14.5332 11.658 13.0842 11.975 11.4807 11.975C9.87718 11.975 8.41685 11.658 7.32893 11.1141C6.98376 10.9415 6.67346 10.7423 6.40568 10.5193ZM6.40568 12.6943V13.6629C6.61464 14.04 7.03824 14.4096 7.67443 14.7277C8.6201 15.2006 9.981 15.515 11.4807 15.515C11.9587 15.515 12.4186 15.4781 12.8571 15.4188C13.3291 14.4544 14.3198 13.7875 15.4625 13.7875C15.7747 13.7875 16.0753 13.8372 16.3574 13.9291C16.435 13.8367 16.4993 13.7454 16.55 13.6516V12.6943C16.2812 12.9174 15.9664 13.1164 15.6211 13.2891C14.5332 13.833 13.0842 14.15 11.4807 14.15C9.87718 14.15 8.41685 13.833 7.32893 13.2891C6.98376 13.1165 6.67346 12.9173 6.40568 12.6943ZM15.4625 14.15C14.0611 14.15 12.925 15.2861 12.925 16.6875C12.925 18.0889 14.0611 19.225 15.4625 19.225C16.8639 19.225 18 18.0889 18 16.6875C18 15.2861 16.8639 14.15 15.4625 14.15ZM6.40002 14.8693V15.2375C6.40002 16.6389 8.67301 17.775 11.475 17.775C11.9138 17.775 12.3384 17.7426 12.7438 17.69C12.6277 17.377 12.5625 17.0401 12.5625 16.6875C12.5625 16.5446 12.5763 16.4058 12.5965 16.2684C12.2348 16.3035 11.8632 16.325 11.4807 16.325C9.87718 16.325 8.41685 16.008 7.32893 15.4641C6.98236 15.2908 6.66853 15.0934 6.40002 14.8693ZM16.703 15.6C16.8003 15.5933 16.9009 15.628 16.9805 15.702C17.1345 15.848 17.1126 16.0531 17.0145 16.1891L15.5645 18.0016C15.4499 18.1439 15.2233 18.1805 15.0717 18.0695L13.803 17.1633C13.6324 17.0606 13.6026 16.8157 13.718 16.6535C13.8334 16.4913 14.0741 16.4577 14.2221 16.5742L15.2133 17.2822L16.4481 15.7359C16.5114 15.655 16.6055 15.6067 16.703 15.6Z"}),farm:oh(rh,{children:[ih("path",{d:"M12.8995 16.2242L14.88 14.5738V17.8745L12.8995 16.2242Z"}),ih("path",{d:"M10.1349 13.9201H13.8653L12 15.4743L10.1349 13.9201Z"}),ih("path",{d:"M13.8651 18.528H10.1349L12 16.9738L13.8651 18.528Z"}),ih("path",{d:"M9.12012 14.5738L11.1006 16.2242L9.12012 17.8747V14.5738Z"}),ih("path",{d:"M11.9999 7.60421C9.03354 8.09477 6.69844 9.71429 5.66394 11.9805V18.528H7.96794V13.056C7.96794 12.8969 8.09696 12.768 8.25594 12.768H15.7439C15.9029 12.768 16.0319 12.8969 16.0319 13.056V18.528H18.3359V11.9803C17.3009 9.71371 14.966 8.09477 11.9999 7.60421ZM13.7279 11.328C13.7279 11.487 13.5989 11.616 13.4399 11.616H10.5599C10.401 11.616 10.2719 11.487 10.2719 11.328V9.60005C10.2719 9.44088 10.401 9.31205 10.5599 9.31205H13.4399C13.5989 9.31205 13.7279 9.44088 13.7279 9.60005V11.328Z"}),ih("path",{d:"M19.5292 11.83C18.3912 8.98471 15.5801 6.97351 12.0001 6.43802C8.42006 6.97351 5.60899 8.98471 4.471 11.83C4.35254 12.1247 4.01769 12.2673 3.72201 12.1508C3.42672 12.0323 3.29961 11.6975 3.41769 11.4018C4.71926 8.14798 7.88688 5.86145 11.9185 5.28583C11.9724 5.27796 12.0275 5.27796 12.0817 5.28583C16.1133 5.86145 19.2809 8.14798 20.5825 11.4018C20.7006 11.6975 20.5735 12.0323 20.2782 12.1508C19.9767 12.2702 19.6459 12.1206 19.5292 11.83Z"})]}),fields:oh(rh,{children:[ih("path",{d:"M7.13684 7.78393L16.6381 5.1597",stroke:"#191411","stroke-width":"1.25609","stroke-miterlimit":"10","stroke-linecap":"round"}),ih("path",{d:"M16.6368 5.29691L18.7423 18.6364",stroke:"#191411","stroke-width":"1.25609","stroke-miterlimit":"10","stroke-linecap":"round"}),ih("path",{d:"M18.7428 18.7701L7.00476 16.1538",stroke:"#191411","stroke-width":"1.25609","stroke-miterlimit":"10","stroke-linecap":"round"}),ih("path",{d:"M6.83594 16.0815L7.17497 7.90228",stroke:"#191411","stroke-width":"1.25609","stroke-miterlimit":"10","stroke-linecap":"round"}),ih("path",{d:"M16.8572 18.157C16.8572 19.0539 17.5843 19.7871 18.4812 19.7871C19.3781 19.7871 20.1052 19.0539 20.1052 18.157C20.1052 17.2601 19.3781 16.5269 18.4812 16.5269C17.5843 16.5269 16.8572 17.2601 16.8572 18.157Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M18.5686 17.1203H18.5115C17.9697 17.1203 17.5305 17.5595 17.5305 18.1013C17.5305 18.6431 17.9697 19.0822 18.5115 19.0822H18.5686C19.1104 19.0822 19.5495 18.6431 19.5495 18.1013C19.5495 17.5595 19.1104 17.1203 18.5686 17.1203Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M15.0151 5.29765C15.0151 6.19456 15.7422 6.92773 16.6391 6.92773C17.536 6.92773 18.2631 6.19456 18.2631 5.29765C18.2631 4.40074 17.536 3.66757 16.6391 3.66757C15.7422 3.66757 15.0151 4.40074 15.0151 5.29765Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M16.7272 4.26089H16.67C16.1283 4.26089 15.6891 4.70008 15.6891 5.24185C15.6891 5.78362 16.1283 6.22281 16.67 6.22281H16.7272C17.2689 6.22281 17.7081 5.78362 17.7081 5.24185C17.7081 4.70008 17.2689 4.26089 16.7272 4.26089Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M5.55286 16.0826C5.55286 16.9795 6.27995 17.7127 7.17686 17.7127C8.07377 17.7127 8.80086 16.9795 8.80086 16.0826C8.80086 15.1857 8.07377 14.4525 7.17686 14.4525C6.27995 14.4525 5.55286 15.1857 5.55286 16.0826Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M7.26317 15.0461H7.20605C6.66429 15.0461 6.2251 15.4853 6.2251 16.0271C6.2251 16.5688 6.66429 17.008 7.20605 17.008H7.26318C7.80494 17.008 8.24413 16.5688 8.24413 16.0271C8.24413 15.4853 7.80494 15.0461 7.26317 15.0461Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M5.51294 7.90303C5.51294 8.79994 6.24003 9.5331 7.13694 9.5331C8.03385 9.5331 8.76094 8.79994 8.76094 7.90303C8.76094 7.00612 8.03385 6.27295 7.13694 6.27295C6.24003 6.27295 5.51294 7.00612 5.51294 7.90303Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"}),ih("path",{d:"M7.22558 6.86652H7.16846C6.62669 6.86652 6.1875 7.30571 6.1875 7.84747C6.1875 8.38924 6.62669 8.82843 7.16846 8.82843H7.22558C7.76734 8.82843 8.20653 8.38924 8.20653 7.84747C8.20653 7.30571 7.76734 6.86652 7.22558 6.86652Z","stroke-width":"0.314023","stroke-miterlimit":"10","stroke-linejoin":"bevel"})]}),harvest:ih("path",{d:"M20.798 9.57313C20.5852 7.14056 19.0817 5.75133 18.4397 5.15811C18.3749 5.09822 18.3189 5.04647 18.2822 5.00976C15.8697 2.59674 11.9442 2.59674 9.53172 5.00976C8.43244 6.10925 7.79076 7.56982 7.725 9.12236C7.6664 10.5061 8.068 11.8555 8.86251 12.9712L3.35172 18.4602C3.25416 18.5573 3.19951 18.6895 3.19995 18.8272C3.2004 18.9649 3.25585 19.0967 3.35399 19.1933L4.83661 20.652C4.93699 20.7507 5.06758 20.8 5.1982 20.8C5.3302 20.8 5.46217 20.7496 5.56279 20.6489L12.064 14.1465C12.2861 13.9683 12.3218 13.6439 12.1438 13.4217C10.8279 11.7791 10.9589 9.41694 12.4485 7.92708C14.0569 6.31846 16.6738 6.31846 18.2821 7.92708C19.0791 8.72429 19.4284 9.00061 19.8168 9.83557C19.9224 10.0626 20.1758 10.1809 20.4175 10.1162C20.6593 10.0516 20.8198 9.82254 20.798 9.57313ZM5.19521 19.558L4.44856 18.8234L8.80022 14.4889L9.53172 15.2206L5.19521 19.558ZM11.7193 7.19777C10.8171 8.10019 10.2839 9.30018 10.2181 10.5767C10.1609 11.686 10.4591 12.7744 11.0634 13.6886L10.2609 14.4912L9.53093 13.7611L9.91191 13.3816C10.1013 13.193 10.1152 12.8909 9.94391 12.6857C8.22482 10.6257 8.36108 7.63927 10.2609 5.73909C12.2714 3.72828 15.5425 3.72828 17.553 5.73909C17.7583 5.94446 18.187 6.29295 18.6275 6.85024C16.6041 5.19469 13.6063 5.31049 11.7193 7.19777Z"}),irrigation:ih("path",{d:"M12.357 4C15.0352 7.10242 17.514 10.7347 17.514 14.032C17.514 17.3295 15.2035 20 12.357 20C9.51046 20 7.19995 17.3295 7.19995 14.032C7.19995 10.7347 9.67879 7.10242 12.357 4ZM15.5739 13.6346C15.5111 13.6242 15.4468 13.6296 15.3865 13.6503C15.3261 13.671 15.2714 13.7065 15.2271 13.7536C15.1827 13.8007 15.15 13.8582 15.1316 13.9212C15.1132 13.9841 15.1097 14.0507 15.1214 14.1154C15.2923 15.2167 14.5586 16.6248 13.7392 17.1923C13.6954 17.2221 13.6577 17.2605 13.6283 17.3054C13.5989 17.3502 13.5784 17.4007 13.5678 17.4538C13.5573 17.5069 13.5571 17.5616 13.5671 17.6148C13.5771 17.668 13.5972 17.7187 13.6261 17.7638C13.6551 17.809 13.6924 17.8478 13.736 17.878C13.7795 17.9082 13.8283 17.9293 13.8797 17.9399C13.9311 17.9505 13.9841 17.9505 14.0355 17.94C14.0869 17.9294 14.1357 17.9084 14.1793 17.8782C15.2892 17.1095 16.1455 15.5077 15.9086 13.9808C15.8962 13.8935 15.8569 13.8128 15.7967 13.7504C15.7364 13.6881 15.6583 13.6475 15.5739 13.6346Z"}),livestock:ih("path",{d:"M16.2943 11.9205H15.0213L15.5825 16.1671C15.6662 16.7997 15.7751 16.7997 15.9007 16.7997H16.3194C16.5456 16.7997 16.5539 16.8344 16.5204 16.1584L16.2943 11.9205ZM18.5723 13.5931C18.4467 13.4631 18.455 13.2638 18.589 13.1251C18.7147 12.9951 18.9073 13.0125 19.0329 13.1425C19.1585 13.2725 19.1501 13.4718 19.0162 13.5931C18.8822 13.7145 18.6979 13.7231 18.5723 13.5931ZM13.1621 16.3664C13.1286 16.7997 13.1286 16.7997 13.3966 16.7997H13.7232C13.9912 16.7997 13.9912 16.7997 14.0582 16.3664L14.544 13.3331H13.3882L13.1621 16.3664ZM10.859 12.4838L7.80219 12.7438L10.055 13.5498C10.2895 13.6365 10.524 13.5151 10.5994 13.2725L10.859 12.4838ZM9.35154 13.8098L8.12044 13.3765L8.38006 16.3664C8.41356 16.7997 8.41356 16.7997 8.68155 16.7997H9.02492C9.25105 16.7997 9.25105 16.7997 9.2678 16.3664L9.35154 13.8098ZM7.4672 13.3158C9.50229 12.1025 11.8138 12.9085 14.5188 12.8998C15.3061 12.8998 15.6997 12.8998 15.8002 12.8998C17.6594 12.8998 17.9107 16.7997 19.661 15.6904L19.6443 12.3625C20.4064 12.4405 20.666 12.5705 20.8 12.1025C20.2724 11.9205 19.9625 11.7299 19.2841 10.7505C16.9308 7.86463 16.2357 6.4 13.7232 6.4H7.47557C6.73858 6.4 6.07697 6.75533 6.07697 7.7953C6.07697 9.23392 6.09372 10.3172 5.42373 11.2359C4.62812 11.2359 4.19262 11.6085 4 12.4492C6.29472 12.2758 6.65484 10.7332 6.65484 7.7953C6.65484 7.43131 7.07358 7.43131 7.07358 7.7953V10.2826C7.07358 11.9378 6.10209 12.2845 6.06859 13.0385L5.92622 16.3664C5.90947 16.7997 5.90947 16.7997 6.17747 16.7997H6.54596C6.81396 16.7997 6.80558 16.7997 6.88096 16.3664L7.4672 13.3158Z"}),nutrients:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0226 11.0573H18.3189L18.3189 11.0574C18.7958 11.0574 19.1911 11.4639 19.1911 11.9352C19.1911 12.4072 18.7958 12.7972 18.3189 12.7972H17.9725C17.9236 12.8943 17.8741 12.9921 17.8246 13.0734L17.8079 13.09L17.8079 13.09C17.331 13.6102 16.8541 14.1304 16.3438 14.6347C15.8502 15.1384 15.3238 15.6262 14.7807 16.0816C14.7312 16.1305 14.665 16.147 14.5994 16.1305C14.5338 16.1146 14.4844 16.0657 14.4516 16.0168L14.0897 15.3175L13.7439 15.7405C13.7111 15.7894 13.6617 15.8218 13.5961 15.8218C13.5472 15.8218 13.4978 15.7894 13.4483 15.757L13.1025 15.4153L13.152 16.0981C13.1687 16.1629 13.1359 16.2118 13.0864 16.2607C13.0536 16.2931 13.0041 16.3096 12.9546 16.3096H12.9051C11.6711 16.0491 10.2726 15.2196 9.05524 14.0166C7.88747 12.8626 7.06477 11.5452 6.76847 10.3746H6.47217C5.99461 10.3746 5.59998 9.98395 5.59998 9.51266C5.59998 9.04072 5.99527 8.65073 6.47217 8.65073H6.81796C6.86681 8.55356 6.9163 8.45573 6.96579 8.37443L6.9825 8.35792C7.45941 7.83771 7.93631 7.31751 8.44665 6.81318C8.94026 6.3095 9.46666 5.82169 10.0098 5.36626L10.0265 5.34975C10.1088 5.30148 10.2071 5.25257 10.3061 5.20366V4.86193C10.3061 4.39062 10.7007 4 11.1776 4C11.6552 4 12.0498 4.39064 12.0498 4.86193V5.15475C13.235 5.44744 14.5673 6.26052 15.7358 7.41527C16.9036 8.56927 17.7263 9.88665 18.0226 11.0573ZM14.421 16.1947C14.0424 16.1947 13.73 16.5034 13.73 16.8775C13.73 17.2516 14.0424 17.5603 14.421 17.5603C14.7996 17.5603 15.1286 17.2516 15.1286 16.8775C15.1286 16.504 14.8163 16.1947 14.421 16.1947ZM12.1041 17.6911C12.1041 17.317 12.4165 17.0083 12.7951 17.0083V17.0083C13.1903 17.0083 13.5027 17.3335 13.5027 17.7076C13.5027 18.0817 13.1736 18.3746 12.7951 18.3739C12.4165 18.3739 12.1041 18.0652 12.1041 17.6911ZM13.73 19.3174C13.73 18.9433 14.0424 18.6346 14.421 18.6346C14.8163 18.6346 15.1286 18.944 15.1286 19.3174C15.1286 19.6916 14.7996 20.0003 14.421 20.0003C14.0424 20.0003 13.73 19.6916 13.73 19.3174Z"}),soil:ih("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3231 17.4289C8.66932 17.459 7.98882 17.869 7.42037 19.1895C11.0844 19.1895 14.7486 19.1895 18.4127 19.1895C18.6442 17.7745 16.892 17.0306 15.986 18.5947C15.5196 15.5972 10.6498 15.6597 10.3231 17.4289ZM10.3883 10.822C4.22262 10.6423 5.97523 8.15212 4.2356 5.19136C8.26463 4.68238 12.0375 5.6443 11.0828 10.452C11.6752 11.9717 12.3775 12.8823 12.6389 15.9266C12.3927 15.8796 12.1466 15.8977 11.8933 15.9483C11.8239 12.6263 10.8013 10.9863 10.3883 10.822ZM13.5355 15.988C13.2601 15.9086 12.9955 15.8978 12.6912 15.9195C14.2408 10.4988 16.2389 8.19537 19.5049 6.0941C16.6194 7.65946 15.5415 8.65745 14.048 10.984C13.241 5.41183 16.8866 6.55953 20.3245 5.24974C19.0624 8.45467 20.2678 13.2759 15.2239 11.5394C14.5277 12.2759 13.5827 14.3762 13.5355 15.988Z"}),"soil-sampling":oh(rh,{children:[ih("path",{d:"M19.282 8.55721H14.8246C14.4587 8.55721 14.1261 8.85659 14.1261 9.25576C14.1261 9.62167 14.4255 9.95431 14.8246 9.95431H14.991V17.9044C14.991 19.0354 15.9224 20.0001 17.0866 20.0001C18.2509 20.0001 19.1822 19.0687 19.1822 17.9044V9.92104H19.3486C19.7145 9.92104 20.0471 9.62167 20.0471 9.2225C19.9806 8.85659 19.6812 8.55721 19.282 8.55721ZM18.4172 14.3784H15.6895V9.92104H18.4172V14.3784Z"}),ih("path",{d:"M5.44412 19.3013C5.17801 19.3013 4.9119 19.1683 4.77884 18.9022C4.64578 18.6693 4.64578 18.3699 4.77884 18.1371L9.23624 10.7857C9.2695 10.7192 9.2695 10.6859 9.2695 10.6194V6.49464H13.0284V10.5861C13.0284 10.6527 13.0284 10.7192 13.0616 10.7524L14.2259 12.6818V11.3845L13.6604 10.4531V6.46137H14.3257C14.5252 6.46137 14.6583 6.29505 14.6583 6.12873V4.33247C14.6583 4.13288 14.5252 3.99982 14.3257 3.99982H8.07199C7.90567 3.99982 7.73935 4.13288 7.73935 4.33247V6.16199C7.73935 6.32832 7.90567 6.49464 8.07199 6.49464H8.63748V10.4863L4.21335 17.7712C3.94724 18.2369 3.94724 18.7691 4.18009 19.2348C4.4462 19.7005 4.9119 19.9666 5.44412 19.9666H15.2571C15.0242 19.767 14.8579 19.5342 14.6916 19.3013H5.44412Z"}),ih("path",{d:"M11.6978 12.083C12.0469 12.083 12.3298 11.8001 12.3298 11.451C12.3298 11.1019 12.0469 10.819 11.6978 10.819C11.3488 10.819 11.0658 11.1019 11.0658 11.451C11.0658 11.8001 11.3488 12.083 11.6978 12.083Z"}),ih("path",{d:"M10.8661 9.65458C11.2152 9.65458 11.4982 9.37161 11.4982 9.02256C11.4982 8.67351 11.2152 8.39054 10.8661 8.39054C10.5171 8.39054 10.2341 8.67351 10.2341 9.02256C10.2341 9.37161 10.5171 9.65458 10.8661 9.65458Z"}),ih("path",{d:"M5.44421 18.5364H14.3923C14.2925 18.104 14.3257 18.2038 14.3257 14.2121L14.1262 13.8794H11.0659C11.0659 13.5135 10.7665 13.2474 10.4338 13.2474C10.0679 13.2474 9.80182 13.5468 9.80182 13.8794H8.3382L5.44421 18.5364ZM12.4962 16.8399C12.7623 16.8399 12.9952 17.0395 12.9952 17.3056C12.9952 17.5717 12.7623 17.8046 12.4962 17.8046C12.2301 17.8046 11.9973 17.605 11.9973 17.3056C12.0305 17.0395 12.2301 16.8399 12.4962 16.8399ZM11.332 15.2433C11.5316 15.2433 11.6646 15.4096 11.6646 15.5759C11.6646 15.7422 11.5316 15.9085 11.332 15.9085C11.1324 15.9085 10.9993 15.7755 10.9993 15.5759C10.9993 15.3763 11.1657 15.2433 11.332 15.2433ZM10.1012 16.7069C10.3673 16.7069 10.6002 16.9397 10.6002 17.2058C10.6002 17.472 10.4006 17.7048 10.1012 17.7048C9.83508 17.7048 9.60223 17.472 9.60223 17.2058C9.60223 16.9065 9.83508 16.7069 10.1012 16.7069ZM9.26959 14.6445C9.43591 14.6445 9.56897 14.7776 9.56897 14.9439C9.56897 15.1102 9.43591 15.2433 9.26959 15.2433C9.10327 15.2433 8.97022 15.1102 8.97022 14.9439C9.00348 14.7776 9.10327 14.6445 9.26959 14.6445Z"})]}),tillage:ih("path",{d:"M19.8148 16.1726L14.3752 10.721L19.0531 6.68775L17.3128 4.94403L13.2873 9.63095L7.84617 4.18087C7.789 4.12353 7.72112 4.07804 7.6464 4.04701C7.57167 4.01597 7.49158 4 7.41069 4C7.3298 4 7.24971 4.01597 7.17499 4.04701C7.10026 4.07804 7.03238 4.12353 6.97521 4.18087L5.56107 5.59774C5.52668 5.63302 5.49671 5.67237 5.47182 5.71491L4.14693 7.45092C4.10157 7.49326 4.06519 7.54432 4.03996 7.60106C4.01473 7.6578 4.00117 7.71904 4.00007 7.78115C3.99898 7.84325 4.01038 7.90494 4.0336 7.96253C4.05682 8.02012 4.09137 8.07244 4.13521 8.11636C4.17905 8.16028 4.23126 8.1949 4.28874 8.21817C4.34623 8.24143 4.4078 8.25285 4.46978 8.25176C4.53176 8.25066 4.59289 8.23707 4.64952 8.21179C4.70615 8.18651 4.75711 8.15006 4.79937 8.10462L6.64591 6.68775C6.7031 6.63045 6.77099 6.585 6.84571 6.55399C6.92043 6.52298 7.00052 6.50702 7.08139 6.50702C7.16227 6.50702 7.24235 6.52298 7.31707 6.55399C7.39179 6.585 7.45968 6.63045 7.51687 6.68775C7.57405 6.74505 7.61942 6.81307 7.65037 6.88793C7.68132 6.9628 7.69725 7.04304 7.69725 7.12407C7.69725 7.2051 7.68132 7.28534 7.65037 7.3602C7.61942 7.43506 7.57405 7.50308 7.51687 7.56038L6.10272 9.41048C6.02118 9.49816 5.97679 9.61413 5.9789 9.73395C5.98101 9.85378 6.02946 9.9681 6.11404 10.0528C6.19862 10.1376 6.31272 10.1861 6.43232 10.1882C6.55191 10.1904 6.66766 10.1459 6.75517 10.0642L8.60171 8.64731C8.71761 8.53037 8.87514 8.46434 9.03963 8.46377C9.20412 8.46319 9.3621 8.5281 9.47882 8.64423C9.59554 8.76036 9.66143 8.91818 9.66201 9.08299C9.66259 9.2478 9.5978 9.40608 9.48189 9.52303L8.06467 11.3731C8.01734 11.4147 7.979 11.4655 7.95199 11.5225C7.92499 11.5795 7.9099 11.6414 7.90765 11.7044C7.9054 11.7674 7.91603 11.8302 7.9389 11.889C7.96177 11.9477 7.9964 12.0012 8.04064 12.046C8.08488 12.0909 8.13782 12.1262 8.19618 12.1498C8.25455 12.1734 8.31712 12.1848 8.38005 12.1833C8.44297 12.1818 8.50493 12.1674 8.5621 12.141C8.61927 12.1147 8.67045 12.0768 8.7125 12.0299L10.559 10.613C10.6745 10.4973 10.8312 10.4323 10.9945 10.4323C11.1579 10.4323 11.3145 10.4973 11.43 10.613C11.5455 10.7288 11.6104 10.8857 11.6104 11.0494C11.6104 11.213 11.5455 11.37 11.43 11.4857L10.0159 13.3358C9.92872 13.4235 9.87993 13.5423 9.88022 13.666C9.88051 13.7898 9.92985 13.9083 10.0174 13.9956C10.1049 14.0829 10.2235 14.1318 10.347 14.1315C10.4705 14.1312 10.5889 14.0818 10.676 13.9941L12.5225 12.5772C12.638 12.4615 12.7947 12.3965 12.958 12.3965C13.1213 12.3965 13.278 12.4615 13.3935 12.5772C13.509 12.6929 13.5739 12.8499 13.5739 13.0135C13.5739 13.1772 13.509 13.3341 13.3935 13.4499L11.9793 15.3C11.8978 15.3876 11.8534 15.5036 11.8555 15.6234C11.8576 15.7433 11.9061 15.8576 11.9907 15.9423C12.0752 16.0271 12.1893 16.0756 12.3089 16.0777C12.4285 16.0798 12.5443 16.0354 12.6318 15.9537L14.4783 14.5368C14.5938 14.4211 14.7505 14.3561 14.9138 14.3561C15.0771 14.3561 15.2338 14.4211 15.3493 14.5368C15.4648 14.6525 15.5297 14.8095 15.5297 14.9731C15.5297 15.1368 15.4648 15.2937 15.3493 15.4094L13.9444 17.2626C13.8628 17.3503 13.8184 17.4662 13.8205 17.5861C13.8227 17.7059 13.8711 17.8202 13.9557 17.905C14.0403 17.9897 14.1544 18.0383 14.274 18.0404C14.3936 18.0425 14.5093 17.998 14.5968 17.9163L16.4434 16.4994C16.5589 16.3837 16.7155 16.3187 16.8788 16.3187C17.0422 16.3187 17.1988 16.3837 17.3143 16.4994C17.4298 16.6152 17.4947 16.7721 17.4947 16.9358C17.4947 17.0994 17.4298 17.2563 17.3143 17.3721L15.9002 19.2222C15.8186 19.3098 15.7742 19.4258 15.7763 19.5456C15.7784 19.6655 15.8269 19.7798 15.9115 19.8645C15.9961 19.9493 16.1102 19.9978 16.2298 19.9999C16.3494 20.002 16.4651 19.9576 16.5526 19.8759L18.2853 18.5484C18.329 18.5257 18.3699 18.4978 18.4068 18.4652L19.821 17.0483C19.8783 16.9906 19.9236 16.922 19.9543 16.8467C19.985 16.7713 20.0006 16.6906 20 16.6092C19.9994 16.5277 19.9828 16.4473 19.951 16.3723C19.9192 16.2974 19.8729 16.2295 19.8148 16.1726ZM16.9865 6.3609C17.0511 6.29616 17.1333 6.25205 17.2229 6.23416C17.3125 6.21626 17.4053 6.22539 17.4897 6.26038C17.5741 6.29537 17.6462 6.35465 17.697 6.43073C17.7477 6.5068 17.7748 6.59625 17.7748 6.68775C17.7748 6.77925 17.7477 6.8687 17.697 6.94478C17.6462 7.02085 17.5741 7.08013 17.4897 7.11512C17.4053 7.15011 17.3125 7.15924 17.2229 7.14135C17.1333 7.12345 17.0511 7.07934 16.9865 7.0146C16.9001 6.92788 16.8515 6.81032 16.8515 6.68775C16.8515 6.56518 16.9001 6.44762 16.9865 6.3609Z"})};function mU(e){let{type:t}=e;const n=zB,r={...zB,...fU},i={[Xd.FLUROSENSE_LEGACY]:r,[Xd.REGROW_DEFAULT]:n},{name:o}=(0,s.Z)();return(e=>{var t;return null!=(t=i[e])?t:n})(o)[t]}const gU=(0,l.ZP)("svg")`
  transform-box: fill-box;
  /* Prevent line-height from influencing parent element */
  vertical-align: top;

  ${e=>{let{size:t}=e;return`\n      min-width: ${t}px;\n      min-height: ${t}px;\n    `}};
`;function yU(e){let{className:t,color:n,size:r=20,type:i,style:o}=e;const a=(0,s.Z)();return ih(gU,{fontSize:r,"aria-hidden":!0,className:t,style:o,fill:null!=n?n:a.palette.text.primary,height:r,width:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",size:r,children:ih(mU,{type:i})})}const vU=e=>Jd.includes(e),bU={defaultProps:{fontSize:"inherit",color:"inherit"},styleOverrides:{root:e=>{let{ownerState:{fontSize:t},theme:n}=e;return{"&.MuiSvgIcon-colorMain":{color:n.palette.text.primary},...vU(t)&&{fontSize:n.typography[t].lineHeight,verticalAlign:"bottom"}}},fontSizeSmall:e=>{let{theme:t}=e;return{fontSize:t.typography.h5.lineHeight}},fontSizeMedium:e=>{let{theme:t}=e;return{fontSize:t.typography.h4.lineHeight}},fontSizeLarge:e=>{let{theme:t}=e;return{fontSize:t.typography.h3.lineHeight}},colorDisabled:e=>{let{theme:t}=e;return{color:t.palette.text.disabled}}}},_U=e=>ih(GM,{...e,children:ih(mU,{type:e.type})}),wU={defaultProps:{disableGutters:!0,elevation:0,square:!1},styleOverrides:{root:e=>{let{theme:t,ownerState:{color:n,size:r}}=e;return{border:`1px solid ${t.palette.divider}`,borderLeft:0,borderRight:0,borderTop:0,"&:last-child":{borderBottom:0},"&:before":{display:"none"},[`&.${p.disabled}`]:{backgroundColor:t.palette.background.paper,color:t.palette.text.disabled},...$B(n)&&{[`&.${p.rounded}`]:{overflow:"hidden"}},[`& .${f.root}`]:{minHeight:t.spacing(12),padding:t.spacing(2,3),...$B(n)&&{padding:t.spacing(3),..."default"===n&&{backgroundColor:t.palette.semanticPalette.surface.secondary,borderLeft:`${t.spacing(2)} solid ${t.palette.semanticPalette.stroke.main}`},...WB(n)&&{backgroundColor:t.palette.categoryPalette[n].surface,borderLeft:`${t.spacing(2)} solid ${t.palette.categoryPalette[n].highlight}`}},..."small"===r&&{minHeight:t.spacing(6),padding:t.spacing(1,2)},[`& .${f.content}`]:{margin:0},[`& .${f.expandIconWrapper}`]:{color:t.palette.semanticPalette.text.main}},[`& .${g.root}`]:{padding:t.spacing(2,3,4,3),...$B(n)&&{padding:t.spacing(5),[`& .${v.root}`]:{margin:t.spacing(-5),padding:0,[`& .${_.root}, & .${x.root}`]:{padding:t.spacing(2.5,3,2.5,5),height:t.spacing(13),"&:hover":{backgroundColor:t.palette.grey[200]}},[`& .${_.selected}`]:{backgroundColor:t.palette.semanticPalette.surface.info},[`& .${C.root}`]:{marginBottom:0,marginTop:0},[`& .${S.root}, & .${M.root}`]:{minWidth:"auto",marginRight:t.spacing(2)},[`& .${M.root} .${T.Z.root}`]:{backgroundColor:t.palette.semanticPalette.text.brand,height:t.spacing(6),width:t.spacing(6),svg:{fontSize:t.typography.body2.lineHeight}}}},..."small"===r&&{padding:t.spacing(1,2,3,2)}},".MuiFormControlLabel-root":{marginLeft:"-8px"}}}}},xU={defaultProps:{expandIcon:ih(_U,{type:"chevron-down"})}},kU=e=>ih(K,{...e});kU.displayName="Accordion";const CU=kU;CU.displayName="Accordion",Q.displayName="AccordionDetails",Ge.displayName="AccordionSummary";const SU="success",MU={defaultProps:{variant:"outlined",severity:SU,iconMapping:{success:ih(_U,{type:"check-mark-circled"}),warning:ih(_U,{type:"warning-triangled"}),error:ih(_U,{type:"cross-circled"}),info:ih(_U,{type:"info-circled"})}},styleOverrides:{root:e=>{let{theme:t}=e;return{padding:t.spacing(2,3),display:"flex"}},outlined:e=>{let{theme:t,ownerState:{severity:n=SU}}=e;return{borderColor:t.palette.semanticPalette.stroke[n],backgroundColor:t.palette.semanticPalette.surface[n]}},icon:()=>({padding:0}),message:e=>{let{theme:t,ownerState:{severity:n=SU}}=e;return{color:t.palette.semanticPalette.text[n],fontSize:t.typography.body1.fontSize,lineHeight:t.typography.body1.lineHeight,padding:`${t.spacing(.5)} 0`,overflow:"unset"}},action:e=>{let{theme:t}=e;return{paddingTop:0,paddingRight:t.spacing(1)}}}},TU=e=>ih(mt,{...e});function EU(e){return rf("MuiLoadingButton",e)}TU.displayName="Alert",Mt.displayName="AlertTitle";const PU=of("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),IU=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],OU=sx(SN,{shouldForwardProp:e=>(e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e)(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${PU.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${PU.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})((e=>{let{ownerState:t,theme:n}=e;return mb({[`& .${PU.startIconLoadingStart}, & .${PU.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},"center"===t.loadingPosition&&{transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),[`&.${PU.loading}`]:{color:"transparent"}},"start"===t.loadingPosition&&t.fullWidth&&{[`& .${PU.startIconLoadingStart}, & .${PU.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===t.loadingPosition&&t.fullWidth&&{[`& .${PU.startIconLoadingStart}, & .${PU.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginLeft:-8}})})),LU=sx("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${xh(n.loadingPosition)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return mb({position:"absolute",visibility:"visible",display:"flex"},"start"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{left:"small"===n.size?10:14},"start"===n.loadingPosition&&"text"===n.variant&&{left:6},"center"===n.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},"end"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{right:"small"===n.size?10:14},"end"===n.loadingPosition&&"text"===n.variant&&{right:6},"start"===n.loadingPosition&&n.fullWidth&&{position:"relative",left:-10},"end"===n.loadingPosition&&n.fullWidth&&{position:"relative",right:-10})})),RU=r.forwardRef((function(e,t){const n=lx({props:e,name:"MuiLoadingButton"}),{children:r,disabled:i=!1,id:o,loading:a=!1,loadingIndicator:s,loadingPosition:l="center",variant:c="text"}=n,u=fb(n,IU),d=Oh(o),p=null!=s?s:ih(NL,{"aria-labelledby":d,color:"inherit",size:16}),h=mb({},n,{disabled:i,loading:a,loadingIndicator:p,loadingPosition:l,variant:c}),f=(e=>{const{loading:t,loadingPosition:n,classes:r}=e;return mb({},r,Bp({root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${xh(n)}`],endIcon:[t&&`endIconLoading${xh(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${xh(n)}`]},EU,r))})(h),m=a?ih(LU,{className:f.loadingIndicator,ownerState:h,children:p}):null;return oh(OU,mb({disabled:i||a,id:d,ref:t},u,{variant:c,classes:f,ownerState:h,children:["end"===h.loadingPosition?r:m,"end"===h.loadingPosition?m:r]}))}));of("MuiTabPanel",["root"]);sx("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{padding:t.spacing(3)}}));const jU=(e,t)=>((e,t)=>void 0!==t.palette[e])(e,t)?t.palette[e]:t.palette.primary,DU={defaultProps:{variant:"contained",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,disableElevation:!0},styleOverrides:{root:e=>{let{theme:t}=e;return{[`&.${Et.disabled}`]:{color:t.palette.semanticPalette.textInverted.secondary}}},sizeSmall:e=>{let{theme:t}=e;return{[`&.${Et.sizeSmall}`]:{padding:t.spacing(1,2),fontSize:`${t.typography.body2.fontSize}px`,lineHeight:t.spacing(4),"&:has(> svg)":{padding:"4px 8px"},"& svg":{minHeight:t.spacing(4),height:t.spacing(4)}}}},contained:e=>{let{ownerState:{color:t="primary"},theme:n}=e;return{"&:active, &:hover":{backgroundColor:(0,We._j)(jU(t,n).dark,.08)},[`&.${Et.disabled}`]:{backgroundColor:n.palette.semanticPalette.stroke.secondary}}},containedSecondary:e=>{let{theme:t}=e;return{backgroundColor:t.palette.semanticPalette.highlight.secondary,color:t.palette.semanticPalette.text.main,"&:active, &:hover":{backgroundColor:(0,We._j)(t.palette.semanticPalette.highlight.secondary,.3)}}},outlined:e=>{let{ownerState:{color:t="primary"},theme:n}=e;return{borderColor:jU(t,n).main,backgroundColor:n.palette.semanticPalette.surface.main,[`&.${Et.outlined}`]:{padding:"7px 11px","&:has(> svg)":{padding:"7px"}},"&:active, &:hover":{backgroundColor:(0,We.$n)(jU(t,n).light,.95)},[`&.${Et.disabled}`]:{borderColor:n.palette.semanticPalette.stroke.secondary}}},outlinedSecondary:e=>{let{theme:t}=e;return{borderColor:t.palette.semanticPalette.stroke.main,color:t.palette.semanticPalette.text.main,"&:active, &:hover":{backgroundColor:t.palette.semanticPalette.surface.secondary,borderColor:t.palette.semanticPalette.stroke.main}}},outlinedSizeSmall:()=>({[`&.${Et.outlinedSizeSmall}`]:{padding:"3px 7px","&:has(> svg)":{padding:"3px 7px"}}}),text:e=>{let{ownerState:{color:t="primary"},theme:n}=e;return{color:jU(t,n).main,"&:active, &:hover":{backgroundColor:(0,We.$n)(jU(t,n).light,.95)}}},textSecondary:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main}}}},AU=DU,NU=DU,FU={defaultProps:{color:"secondary"},styleOverrides:{root:e=>{let{theme:t}=e;return{[`&&.${Qe.sizeSmall}`]:{minWidth:"unset",padding:t.spacing(.5)},[`&&.${Qe.sizeMedium}`]:{minWidth:"unset",padding:t.spacing(2)}}},colorPrimary:e=>{let{theme:t}=e;return{":hover":{backgroundColor:t.palette.grey[200]},color:t.palette.semanticPalette.text.main}}}},zU={defaultProps:{disableRipple:!0,disableTouchRipple:!0},styleOverrides:{root:e=>{let{theme:t}=e;return{[`&.${Fe.root}`]:{textTransform:"none",lineHeight:"20px",minWidth:t.spacing(9),padding:t.spacing(2,3),"&:has(> svg)":{padding:t.spacing(2,2),minWidth:"initial"},"& svg":{fill:"currentColor"}}}}}},BU=(0,r.forwardRef)(((e,t)=>ih(jt,{ref:t,...e})));BU.displayName="ButtonGroup";const UU=ih("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:ih("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5"})}),$U=oh("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[ih("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5"}),ih("g",{clipPath:"url(#clip0_886_16447)",children:ih("path",{d:"M6 12H18",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),ih("defs",{children:ih("clipPath",{id:"clip0_886_16447",children:ih("rect",{width:"24",height:"24",rx:"4"})})})]}),VU={defaultProps:{color:"primary",disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,icon:UU,checkedIcon:oh("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[ih("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5"}),ih("g",{clipPath:"url(#clip0_868_16086)",children:ih("path",{d:"M5 13L9 17L19 7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),ih("defs",{children:ih("clipPath",{id:"clip0_868_16086",children:ih("rect",{width:"24",height:"24",rx:"4"})})})]}),indeterminateIcon:$U},styleOverrides:{root:e=>{let{theme:t,ownerState:{color:n="default"}}=e;return{fill:"none",color:t.palette.semanticPalette.surface.main,stroke:KB(n)?t.palette.semanticPalette.stroke[n]:t.palette.semanticPalette.stroke.main,"& > svg path":{stroke:t.palette.common.black},[`&.${At.checked}, &.${At.indeterminate}`]:{color:KB(n)?t.palette.semanticPalette.surface[n]:t.palette.semanticPalette.surface.brand},[`&.${At.disabled}`]:{color:t.palette.semanticPalette.surface.secondary,stroke:t.palette.semanticPalette.stroke.secondary,"& > svg path":{stroke:t.palette.semanticPalette.stroke.main}},[`&.${At.root}:has(> svg[font-size="medium"])`]:{padding:`0 ${t.spacing(2)}`,"> svg":{height:20,width:20}},[`&.${At.root}:has(> svg[font-size="small"])`]:{padding:`0 ${t.spacing(2)}`,"> svg":{height:16,width:16}}}}}};function qU(e,t){const n=(0,r.useRef)(null),[i,o]=(0,r.useState)(e);return[i,(0,r.useCallback)((e=>{null!==n.current&&clearTimeout(n.current),n.current=setTimeout((()=>{o(e),n.current=null}),t)}),[o,t])]}function ZU(e){const[t,n]=qU({width:0,height:0},200),i=(0,r.useRef)();return(0,r.useLayoutEffect)((()=>{if(e)return i.current?(i.current.unobserve(e),i.current.observe(e)):(i.current=new ResizeObserver((e=>{for(let t=0;t<e.length;t++){const r=e[t],{width:i,height:o}=r.contentRect;n({width:i,height:o})}})),i.current.observe(e)),()=>{var e;null==(e=i.current)||e.disconnect()}}),[e,n]),t}const HU={defaultProps:{placement:"top",arrow:!0,TransitionComponent:Bt,enterDelay:0,enterTouchDelay:0},styleOverrides:{tooltip:e=>{let{theme:t}=e;return{backgroundColor:t.palette.semanticPalette.surfaceInverted.main,fontSize:t.typography.body2.fontSize,fontWeight:t.typography.body2.fontWeight,padding:t.spacing(2)}},arrow:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.surfaceInverted.main}}}},GU=(0,r.forwardRef)(((e,t)=>ih(xt,{ref:t,...e})));GU.displayName="Typography";const WU=e=>{let{clampLines:t=1,tooltipContent:n,TooltipComponent:i=nn,TooltipProps:o={},...a}=e;const s=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1),{height:u,width:d}=ZU(s.current);(0,r.useLayoutEffect)((()=>{const e=s.current;e&&c(1===t?e.offsetWidth<e.scrollWidth:e.clientHeight<e.scrollHeight)}),[t,d,u,s]);const p=(0,r.useMemo)((()=>{var e;return l&&null!=(e=null!=n?n:a.children)?e:""}),[l,a.children,n]),h=(0,r.useMemo)((()=>1===t?YU:KU(t)),[t]);return ih(i,{title:p,id:String(a.children),...o,children:ih(GU,{component:"span",variant:"body1",sx:h,...a,ref:s})})},YU={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},KU=e=>({display:"-webkit-box","-webkit-line-clamp":`${e}`,"-webkit-box-orient":"vertical",overflow:"hidden",height:"fit-content",whiteSpace:"normal",wordBreak:"break-word"}),XU=["success","warning","error","info","secondary","primary"],JU=e=>XU.includes(e),QU={defaultProps:{variant:"filled",color:"primary",size:"medium"},styleOverrides:{root:e=>{let{theme:t,ownerState:{color:n}}=e;return{fontSize:t.typography.body1.fontSize,padding:`${t.spacing(2)} 0`,height:"auto",borderRadius:t.shape.borderRadius*t.borderRadii.md,lineHeight:t.typography.body1.lineHeight,...n&&"default"!==n&&"inherit"!==n&&"primary"!==n&&{backgroundColor:t.palette.semanticPalette.surface[n],color:t.palette.semanticPalette.text[n],borderColor:t.palette.semanticPalette.stroke[n],"&:hover":{backgroundColor:(0,We._j)(t.palette.semanticPalette.surface[n],.1)}}}},colorPrimary:e=>{let{theme:t}=e;return{backgroundColor:t.palette.semanticPalette.surface.brand,color:t.palette.semanticPalette.text.brand,borderColor:t.palette.semanticPalette.stroke.brand,"&:hover":{backgroundColor:(0,We._j)(t.palette.semanticPalette.surface.brand,.1)}}},colorSecondary:e=>{let{theme:t}=e;return{borderColor:t.palette.semanticPalette.strokeInverted.secondary,color:t.palette.semanticPalette.text.secondary,backgroundColor:t.palette.semanticPalette.surface.secondary,"&:hover":{backgroundColor:(0,We._j)(t.palette.semanticPalette.surface.secondary,.1)}}},deletable:e=>{let{theme:t,ownerState:n}=e;return{[`&.${on.root}`]:{"&:has(>svg)":{padding:`${t.spacing(2)} 0`,[`&.${on.sizeSmall}`]:{padding:`${t.spacing(1)} 0`},svg:{marginRight:t.spacing(2),fontSize:t.typography.body1.lineHeight,...JU(n.color)&&{color:t.palette[n.color].main,"&:hover":{color:t.palette[n.color].dark}}}}}}},iconMedium:e=>{let{theme:t}=e;return{fontSize:t.typography.h5.lineHeight}},outlined:e=>{let{ownerState:{size:t}}=e;return{padding:"7px 0",..."small"===t&&{[`&.${on.root}`]:{padding:"3px 0"}}}},sizeSmall:e=>{let{theme:t}=e;return{fontSize:t.typography.h6.fontSize,lineHeight:t.typography.h6.lineHeight,[`&.${on.root}`]:{padding:`${t.spacing(1)} 0`},[`&.${on.icon}`]:{marginLeft:t.spacing(0)}}}}},e$=(0,r.forwardRef)(((e,t)=>{const n=(0,s.Z)(),{label:r,color:i,variant:o,sx:a,...l}=e,c=Boolean(l.onDelete),u="string"==typeof r?ih(WU,{component:"div",children:r}):r;return $B(i)&&WB(i)?ih(dn,{ref:t,sx:{backgroundColor:n.palette.categoryPalette[i].surface,"&:hover":{backgroundColor:(0,We._j)(n.palette.categoryPalette[i].surface,.1)},color:n.palette.categoryPalette[i].text,borderColor:"outlined"===o?n.palette.categoryPalette[i].stroke:"inherit",...c&&{[`&.${on.root}`]:{"&:has(>svg)":{svg:{color:n.palette.categoryPalette[i].text,"&:hover":{color:n.palette.categoryPalette[i].surfaceInverted}}}}},...a},variant:o,label:u,...l}):ih(dn,{ref:t,color:i,variant:o,label:u,...l})}));e$.displayName="Chip";const t$={defaultProps:{fullWidth:!0,disableUnderline:!0,color:void 0},styleOverrides:{root:e=>{let{ownerState:{color:t},theme:n}=e;return{[`&.${mn.root}, &.${mn.root}:hover, &.${mn.root}.${mn.disabled}`]:{transition:"none",background:t?n.palette.semanticPalette.surface[t]:"none",borderRadius:0,borderWidth:"2px",borderStyle:"solid",borderColor:"transparent",padding:`${n.spacing(3.5)} ${n.spacing(3)}`,[`&.${mn.multiline}`]:{padding:`${n.spacing(3.5)} ${n.spacing(2.5)}`},[`&.${hn.adornedStart}`]:{paddingLeft:n.spacing(3),[`& .${yn.positionStart}`]:{paddingLeft:0}},[`&.${hn.adornedEnd}`]:{paddingRight:n.spacing(3),[`& .${yn.positionEnd}`]:{paddingRight:0}},[`& .${mn.input}`]:{padding:0,[`&.${bn.select}`]:{paddingRight:n.spacing(5.5)}},":before, :after":{border:"none",transition:"none"}},[`&.${mn.root}.${mn.focused}`]:{borderColor:t?n.palette.semanticPalette.stroke[t]:n.palette.semanticPalette.stroke.brand},[`& .${hn.inputAdornedEnd}`]:{textOverflow:"ellipsis"}}},error:e=>{let{theme:t}=e;return{[`&.${mn.error}, &.${mn.error}:hover`]:{background:t.palette.semanticPalette.surface.error},[`&.${mn.error}.${mn.focused}`]:{borderColor:t.palette.semanticPalette.stroke.error}}}}},n$=e=>{const t=wn(),{error:n}=t||{error:e.error};return oh(En,{component:"div",...e,variant:"outlined",children:[n&&ih(_U,{type:"cross-circled"}),e.children]})},r$={styleOverrides:{root:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main,svg:{fontSize:t.typography.body1.lineHeight},[`&&.${yn.root}.${yn.positionStart}`]:{marginTop:0}}}}},i$={styleOverrides:{root:e=>{let{theme:t}=e;return{[`.${hn.input}`]:{height:t.typography.body1.lineHeight,lineHeight:t.typography.body1.lineHeight,padding:`${t.spacing(2)} ${t.spacing(3)}`,boxSizing:"content-box","&::placeholder, &::-webkit-input-placeholder":{color:(0,We.$n)(t.palette.text.secondary,np),opacity:1,transition:"none"},[`&.${hn.readOnly}`]:{color:(0,We.$n)(t.palette.text.secondary,.35)},"&.Mui-disabled":{opacity:.65}},[`&.${hn.root}.${hn.multiline}`]:{height:"auto",padding:0},[`&.${hn.adornedStart}`]:{paddingLeft:0,[`& .${yn.positionStart}`]:{paddingLeft:t.spacing(3)}},[`&.${hn.adornedEnd}`]:{paddingRight:0,[`& .${yn.positionEnd}`]:{paddingRight:t.spacing(3)}},[`.${hn.inputAdornedStart}`]:{paddingLeft:0},[`.${hn.inputAdornedEnd}`]:{paddingRight:0},[`&.${hn.adornedEnd} .${bn.icon}`]:{right:t.spacing(9)}}},inputTypeSearch:()=>({"::-webkit-search-cancel-button":{display:"none"}})}},o$={defaultProps:{notched:!1},styleOverrides:{root:e=>{let{theme:t}=e;return{background:t.palette.semanticPalette.surface.main,[`& .${In.notchedOutline}, &:hover .${In.notchedOutline}, &.${In.disabled} .${In.notchedOutline}`]:{borderColor:t.palette.semanticPalette.stroke.main},[`&.${In.focused} .${In.notchedOutline}`]:{borderColor:t.palette.semanticPalette.stroke.brand},[`&.${In.error}`]:{background:t.palette.semanticPalette.surface.error},[`&.${In.error}:hover .${In.notchedOutline}, &.${In.error}.${In.focused} .${In.notchedOutline}`]:{borderColor:t.palette.semanticPalette.stroke.error},[`& .${hn.inputAdornedEnd}`]:{textOverflow:"ellipsis"}}}}},a$={defaultProps:{MenuProps:{elevation:4}},styleOverrides:{select:()=>({[`&&.${bn.select}`]:{background:"none"}}),icon:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main,fontSize:t.typography.h5.lineHeight,right:t.spacing(2)}}}},s$=e=>{let{className:t}=e;return ih(_U,{type:"chevron-down",className:t,color:"inherit",fontSize:"h5"})},l$=function(e){const{onChange:t,IconComponent:n=s$,...r}=e;return ih(po,{IconComponent:n,onChange:t,autoComplete:"off",...r})},c$={defaultProps:{size:"medium",InputLabelProps:{shrink:!1,disableAnimation:!1}},styleOverrides:{root:e=>{let{theme:t}=e;return{[`.${Cn.root}`]:{marginLeft:0,marginTop:t.spacing(2)},[`.${fo.formControl}`]:{position:"relative",transform:"none",paddingBottom:t.spacing(2),maxWidth:"unset",whiteSpace:"unset"},[`.${bn.icon}`]:{right:t.spacing(3)},"label[data-shrink=false] + .MuiInputBase-formControl .MuiInputBase-input::-webkit-input-placeholder":{color:(0,We.$n)(t.palette.text.secondary,np),opacity:"1 !important"}}}}},u$=e=>{var t;const{color:n,InputProps:r,FormHelperTextProps:i,SelectProps:o,select:a,...s}=e,l={...r,color:n},c={...o,IconComponent:null!=(t=null==o?void 0:o.IconComponent)?t:s$},u={...i,component:n$};return ih(jo,{FormHelperTextProps:u,InputProps:l,...a&&{select:a,SelectProps:c},...s})},d$={styleOverrides:{root:e=>{let{theme:t,ownerState:n}=e;return{"&:hover":{backgroundColor:t.palette.grey[200]},"&:active":{backgroundColor:t.palette.semanticPalette.highlight.secondary},[`&.${Ao.root}&.${Ao.selected}`]:{backgroundColor:"transparent",fontWeight:t.typography.h5.fontWeight,"&:hover":{backgroundColor:t.palette.grey[200]},"&:active":{backgroundColor:t.palette.semanticPalette.highlight.secondary},"&:focus":{backgroundColor:t.palette.grey[200]}},..."option"===n.role&&{[`&&.${Ao.root}.${Ao.selected}`]:{fontWeight:t.typography.body1.fontWeight}}}}}},p$=(0,r.forwardRef)(((e,t)=>{var n;return ih(Yr,{ref:t,...e,transitionDuration:null!=(n=e.transitionDuration)?n:0})}));p$.displayName="Menu";const h$=(0,r.forwardRef)(((e,t)=>ih(Uo,{ref:t,...e})));h$.displayName="MenuItem";const f$={defaultProps:{iconPosition:"start"},styleOverrides:{root:e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightRegular,padding:t.spacing(1,2),[`&.${Vo.selected}`]:{fontWeight:t.typography.fontWeightBold},[`&.${Fe.root}`]:{padding:t.spacing(1,5)},borderBottom:`2px solid ${t.palette.semanticPalette.stroke.main}`}},labelIcon:{minHeight:"initial"},textColorPrimary:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.secondary,[`&.${Vo.selected}`]:{color:t.palette.semanticPalette.text.main}}}}},m$=e=>ih(Ho,{...e}),g$=e=>ih(ba,{...e});m$.displayName="Tab",g$.displayName="Tabs";const y$={defaultProps:{elevation:2},styleOverrides:{root:e=>{let{theme:t}=e;return{[`&:has(> .${p.rounded})`]:{borderRadius:t.shape.borderRadius*t.borderRadii.sm}}},rounded:e=>{let{theme:t}=e;return{borderRadius:t.shape.borderRadius*t.borderRadii.md}}}},v$=(0,r.forwardRef)(((e,t)=>{var n;const{bgcolor:r,fullHeight:i,fullWidth:o,...a}=e;return ih(Z.Z,{ref:t,...a,sx:{...null!=(n=e.sx)?n:{},...r?{backgroundColor:r}:{},...i?{height:1}:{},...o?{width:1}:{}}})}));v$.displayName="Paper";const b$=(0,r.forwardRef)(((e,t)=>ih(ka,{ref:t,...e})));b$.displayName="Box";const _$=(0,r.forwardRef)(((e,t)=>ih(Aa,{ref:t,...e})));_$.displayName="Stack";const w$={defaultProps:{fullWidth:!0,maxWidth:"sm",scroll:"paper"},styleOverrides:{paper:e=>{let{theme:t,ownerState:{maxWidth:n}}=e;return{boxShadow:t.shadows[t.boxShadows.lg],paddingBottom:t.spacing(5),maxWidth:!1!==n&&void 0!==n?t.fixedWidths[n]:void 0}},root:e=>{let{theme:t}=e;return{[`& >.${xr.root}`]:{backgroundColor:`${t.palette.semanticPalette.surfaceInverted.main}80`}}}}},x$=e=>{let{title:t,disableBackdropClick:n,onClose:r,description:i,hideCloseIcon:o,children:a,...s}=e;return oh(Za,{...s,onClose:(e,t)=>{n&&"backdropClick"===t||null==r||r(e,t)},children:[ih(Ka,{children:oh(_$,{gap:1,children:[t,i&&ih(es,{children:i})]})}),!o&&ih(b$,{position:"absolute",right:18,top:18,children:ih(nt,{color:"primary",onClick:e=>null==r?void 0:r(e,"iconClick"),children:ih(_U,{fontSize:"small",type:"cross"})})}),a]})},k$=e=>ih(is,{...e}),C$=e=>ih(ls,{...e});x$.displayName="SimpleDialog",k$.displayName="DialogContent",C$.displayName="DialogActions";const S$={defaultProps:{StepIconComponent:e=>{let{completed:t,icon:n,active:r}=e;return t?ih(_U,{type:"check-mark"}):ih(vs,{icon:n,active:r})}},styleOverrides:{label:e=>{let{theme:t}=e;return{fontSize:t.typography.h5.fontSize,maxWidth:t.spacing(30),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}},iconContainer:e=>{let{theme:t}=e;return{fontSize:t.typography.h3.fontSize,borderRadius:t.borderRadii.pill,padding:0,marginRight:t.spacing(2),color:t.palette.semanticPalette.surface.main,backgroundColor:t.palette.grey[400],"&.Mui-active":{backgroundColor:t.palette.primary.main},"&.Mui-completed":{backgroundColor:t.palette.primary.main},"&.Mui-disabled":{backgroundColor:t.palette.grey[300]},svg:{padding:t.spacing(.5),borderRadius:t.borderRadii.pill}}},vertical:()=>({alignItems:"flex-start"})}};function M$(e){return ih(Ls,{...e})}M$.displayName="Stepper",As.displayName="Step",Zs.displayName="StepLabel",vs.displayName="StepIcon",Ks.displayName="StepButton",Es.displayName="StepConnector",tl.displayName="StepContent";const T$={defaultProps:{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0},styleOverrides:{root:e=>{let{theme:t}=e;return{width:45,height:24,padding:0,marginLeft:t.spacing(2),marginRight:t.spacing(2),[`&.${rl.edgeStart}`]:{marginLeft:0},[`&.${rl.edgeEnd}`]:{marginRight:0},[`& .${rl.switchBase}`]:{padding:t.spacing(0),margin:t.spacing(.5),minWidth:20,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},[`&.${rl.disabled}`]:{[`.${rl.thumb}`]:{color:t.palette.text.disabled},[`+ .${rl.track}`]:{backgroundColor:t.palette.semanticPalette.stroke.secondary,opacity:1}},[`&.${rl.checked}`]:{transform:"translateX(21px)",color:t.palette.semanticPalette.surface.main,"&:hover":{backgroundColor:"transparent"},[`+ .${rl.track}`]:{backgroundColor:t.palette.primary.main,opacity:1,border:0},[`&.${rl.disabled}`]:{[`.${rl.thumb}`]:{color:t.palette.text.disabled},[`+ .${rl.track}`]:{backgroundColor:t.palette.grey[200]}}}}}},track:e=>{let{theme:t}=e;return{borderRadius:t.borderRadii.pill,backgroundColor:t.palette.grey[300],opacity:1}}}},E$=(0,r.forwardRef)(((e,t)=>ih(gl,{ref:t,...e}))),P$=xl,I$=Pl,O$=Dl,L$=zl,R$=Zl,j$=Jl,D$={styleOverrides:{root:e=>{let{theme:t}=e;return{[`&.${ec.root}`]:{backgroundColor:t.palette.semanticPalette.surface.main,borderColor:t.palette.semanticPalette.stroke.main,color:t.palette.semanticPalette.text.secondary,padding:"7px 11px","&:has(> svg)":{padding:"7px"},"&:hover":{color:t.palette.semanticPalette.text.main,backgroundColor:t.palette.semanticPalette.surface.main}},[`&.${ec.selected}, &:active`]:{backgroundColor:t.palette.semanticPalette.surface.secondary,color:t.palette.semanticPalette.text.main,"&:hover":{backgroundColor:t.palette.semanticPalette.surface.secondary},[`&.${ec.primary}`]:{backgroundColor:t.palette.semanticPalette.surface.brand,color:t.palette.semanticPalette.text.brand,"&:hover":{backgroundColor:t.palette.semanticPalette.surface.brand},[`&.${ec.disabled}`]:{color:t.palette.semanticPalette.textInverted.secondary}}},[`&.${ec.disabled}`]:{color:t.palette.semanticPalette.textInverted.secondary}}},sizeSmall:e=>{let{theme:t}=e;return{[`&.${ec.sizeSmall}`]:{fontSize:`${t.typography.body2.fontSize}px`,lineHeight:t.spacing(4),padding:"3px 7px","&:has(> svg)":{paddingTop:"3px",paddingBottom:"3px"}}}}}},A$=(0,r.forwardRef)(((e,t)=>ih(rc,{ref:t,...e})));A$.displayName="ToggleButton";const N$={styleOverrides:{grouped:e=>{let{theme:t}=e;return{[`&.${oc.grouped}`]:{borderColor:t.palette.semanticPalette.stroke.main}}}}},F$=(0,r.forwardRef)(((e,t)=>ih(cc,{ref:t,...e})));F$.displayName="ToggleButtonGroup";const z$={defaultProps:{limitTags:1,multiple:!1,popupIcon:ih(_U,{type:"chevron-down"}),clearIcon:ih(_U,{type:"cross-circled"})},styleOverrides:{root:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main,[`.${dc.popupIndicator}`]:{paddingRight:t.spacing(.5),[`&.${Qe.sizeSmall}`]:{marginRight:t.spacing(.5)}},[`.${dc.clearIndicator}`]:{[`&.${Qe.sizeSmall}`]:{marginRight:t.spacing(1)}},[`.${Qe.root}`]:{fontSize:t.typography.h5.lineHeight,[`&.${Qe.sizeMedium}`]:{padding:`${t.spacing(2)} ${t.spacing(1)}`}},[`.${Qe.root}:hover`]:{backgroundColor:"transparent"},[`.${In.root} .${dc.endAdornment}`]:{right:t.spacing(3)},[`.${mn.root} .${dc.endAdornment}`]:{right:t.spacing(2.5)}}},clearIndicator:e=>{let{theme:t}=e;return{visibility:"visible",color:t.palette.semanticPalette.text.main}},endAdornment:e=>{let{theme:t}=e;return{transform:"translate(0px, 0%)",top:`calc(50% - ${t.spacing(4.5)})`}},inputRoot:e=>{let{theme:t,ownerState:n}=e;return{[`&.${dc.inputRoot}.${In.root}`]:{paddingTop:t.spacing(0),paddingBottom:t.spacing(0),paddingLeft:t.spacing(3)},[`&.${dc.inputRoot}.${mn.root}`]:{paddingTop:t.spacing(3),paddingBottom:t.spacing(3),paddingLeft:t.spacing(3),paddingRight:t.spacing(3)},...!0===n.focused&&{[`&.${dc.inputRoot}.${mn.root} .${on.root}`]:{padding:"0"}}}},input:e=>{let{theme:t}=e;return{[`&.${dc.input}`]:{paddingLeft:0,paddingTop:t.spacing(2),paddingBottom:t.spacing(2),paddingRight:0,minWidth:"initial",[`&.${mn.input}`]:{paddingTop:t.spacing(0),paddingBottom:t.spacing(0)}}}},listbox:e=>{let{theme:t}=e;return{paddingTop:t.spacing(3),paddingBottom:t.spacing(3),[`& .${dc.option}[aria-disabled="true"]`]:{color:t.palette.text.disabled,opacity:1}}},popper:e=>{let{theme:t}=e;return{paddingTop:t.spacing(1)}},popupIndicator:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main}}}},B$="leaf__checked-circle-mark",U$="leaf__background-circle",$$=ih("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ih("circle",{cx:"10",cy:"10",r:"9.5",fill:"white",className:U$})}),V$={defaultProps:{color:"primary",disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,checkedIcon:oh("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ih("circle",{cx:"10",cy:"10",r:"9.5",className:U$}),ih("circle",{cx:"10",cy:"10",r:"4",className:B$})]}),icon:$$},styleOverrides:{root:e=>{let{theme:t,ownerState:{color:n="default"}}=e;return{fill:"none",stroke:t.palette.semanticPalette.stroke[KB(n)?n:"main"],[`& .${U$}`]:{fill:t.palette.semanticPalette.surface[KB(n)?n:"main"]},[`&.${hc.checked}`]:{color:t.palette.semanticPalette.stroke[KB(n)?n:"success"],[`& .${B$}`]:{stroke:t.palette.semanticPalette.stroke[KB(n)?n:"success"]}},[`&.${hc.disabled}`]:{color:t.palette.semanticPalette.surface.secondary,stroke:t.palette.semanticPalette.stroke.secondary,[`& .${B$}`]:{color:t.palette.semanticPalette.stroke.secondary,stroke:t.palette.semanticPalette.stroke.secondary}},[`&.${hc.root}:has(> svg[font-size="medium"])`]:{padding:`0 ${t.spacing(2)}`,"> svg":{height:20,width:20}},[`&.${hc.root}:has(> svg[font-size="small"])`]:{padding:`0 ${t.spacing(2)}`,"> svg":{height:16,width:16}}}}}};Mc.displayName="Radio";const q$={MuiButton:AU,MuiButtonBase:zU,MuiButtonGroup:{defaultProps:{disableRipple:!0,disableFocusRipple:!0,disableElevation:!0,color:"secondary"}},MuiCheckbox:VU,MuiToggleButton:D$,MuiToggleButtonGroup:N$,MuiIconButton:FU,MuiLoadingButton:NU,MuiChip:QU,MuiInputAdornment:r$,MuiInputBase:i$,MuiFilledInput:t$,MuiOutlinedInput:o$,MuiTooltip:HU,MuiTextField:c$,MuiSelect:a$,MuiFormLabel:{styleOverrides:{root:e=>{let{theme:t}=e;return{color:t.palette.semanticPalette.text.main}}}},MuiFormHelperText:{styleOverrides:{root:e=>{let{theme:t}=e;return{margin:0,display:"flex",alignItems:"center","& > svg":{marginRight:t.spacing(1)}}}}},MuiMenu:{styleOverrides:{root:e=>{let{theme:t}=e;return{padding:t.spacing(0,2)}},list:e=>{let{theme:t}=e;return{padding:t.spacing(3,0)}},paper:e=>{let{theme:t}=e;return{boxShadow:t.shadows[t.boxShadows.md],marginTop:t.spacing(1)}}}},MuiMenuItem:d$,MuiPaper:y$,MuiTableCell:{styleOverrides:{root:e=>{let{theme:t}=e;return{fontSize:t.typography.body1.fontSize,borderColor:t.palette.semanticPalette.stroke.secondary}}}},MuiSwitch:T$,MuiAccordion:wU,MuiAccordionSummary:xU,MuiDataGrid:AB,MuiSvgIcon:bU,MuiStep:{styleOverrides:{root:e=>{let{ownerState:t}=e;if(t.onClick)return{cursor:"pointer"}}}},MuiStepLabel:S$,MuiStepIcon:{styleOverrides:{root:{backgroundColor:"currentcolor"}}},MuiStepButton:{styleOverrides:{}},MuiStepConnector:{styleOverrides:{line:e=>{let{theme:t}=e;return{borderTopWidth:2,borderColor:t.palette.semanticPalette.stroke.main}},lineVertical:()=>({borderLeftWidth:2,marginLeft:-1})}},MuiStepContent:{styleOverrides:{root:e=>{let{theme:t}=e;return{marginLeft:11,borderLeftWidth:2,borderColor:t.palette.semanticPalette.stroke.main}}}},MuiDialog:w$,MuiDialogTitle:{defaultProps:{variant:"h3"},styleOverrides:{root:e=>{let{theme:t}=e;return{padding:t.spacing(5,14,5,5)}}}},MuiDialogContent:{styleOverrides:{root:e=>{let{theme:t,ownerState:n}=e;return{padding:t.spacing(n.dividers?5:0,5)}}}},MuiDialogActions:{styleOverrides:{spacing:e=>{let{theme:t}=e;return{padding:t.spacing(5,5,0),"& > :not(:first-of-type)":{marginLeft:t.spacing(3)}}}}},MuiAlert:MU,MuiAlertTitle:{styleOverrides:{root:e=>{let{theme:t}=e;return{margin:0,paddingRight:t.spacing(1),display:"inline"}}}},MuiTab:f$,MuiTabs:{styleOverrides:{indicator:e=>{let{theme:t,ownerState:n}=e;return{...("primary"===n.textColor||"primary"===n.indicatorColor)&&{backgroundColor:t.palette.semanticPalette.surfaceInverted.main}}},scrollButtons:e=>{let{theme:t}=e;return{borderBottom:`2px solid ${t.palette.semanticPalette.stroke.main}`,"&.Mui-disabled":{opacity:1,"> svg":{opacity:.5}}}}}},MuiAutocomplete:z$,MuiRadio:V$,MuiLink:{defaultProps:{},styleOverrides:{root:e=>{let{theme:t}=e;return{fontFamily:t.typography.fontFamily}}}}};Xd.REGROW_DEFAULT,Xd.FLUROSENSE_LEGACY;const Z$={[Xd.REGROW_DEFAULT]:{cssFontFile:"regrowFonts.css",palette:Of,typography:Df,name:Xd.REGROW_DEFAULT},[Xd.FLUROSENSE_LEGACY]:{cssFontFile:"flurosenseFonts.css",palette:Cf,typography:Tf,name:Xd.FLUROSENSE_LEGACY}},H$=e=>({palette:Z$[e].palette,spacing:4,keyedSpacing:tp,name:e,shape:{borderRadius:4},breakpoints:{values:{xs:0,sm:720,md:1024,lg:1280,xl:1920}},fixedWidths:{xs:280,sm:400,md:600,lg:1e3,xl:1200},shadows:["none",`0px 0px 1px 0px ${Z$[e].palette.background.shadow}61`,`0px 0px 2px 0px ${Z$[e].palette.background.shadow}61`,`0px 0px 3px 0px ${Z$[e].palette.background.shadow}4D`,`0px 0px 4px 0px ${Z$[e].palette.background.shadow}4D`,`0px 0px 5px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 6px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 7px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 8px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 9px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 10px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 11px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 12px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 13px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 14px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 15px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 16px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 17px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 18px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 19px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 20px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 21px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 22px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 23px 0px ${Z$[e].palette.background.shadow}33`,`0px 0px 24px 0px ${Z$[e].palette.background.shadow}33`],borderRadii:{sm:1,md:2,pill:9999},boxShadows:{sm:2,md:4,lg:8},typography:Z$[e].typography,components:q$});function G$(e){let{muiThemeKey:t,children:n}=e;const i=(0,r.useMemo)((()=>rx(H$(null!=t?t:Xd.FLUROSENSE_LEGACY))),[t]);return ih(Tc,{injectFirst:!0,children:ih(Nc,{theme:i,children:ih(o.f6,{theme:Sf,children:n})})})}const W$=(0,r.forwardRef)(((e,t)=>ih(qc,{ref:t,...e})));W$.displayName="Container";const Y$=e=>ih(Yc,{...e});Y$.displayName="Divider";var K$=(e=>(e.SELECT_ALL="Select All",e.DESELECT_ALL="Deselect All",e))(K$||{}),X$=(e=>(e.ITEMS_SELECTED="items selected",e))(X$||{});function J$(e){let{onClear:t,disabled:n,error:r}=e;return ih(nt,{size:"small",onClick:t,"aria-label":"clear-select-input",disabled:n,color:r?"error":"primary",children:ih(_U,{type:"cross-circled",fontSize:"h5"})})}function Q$(e){let{options:t,localeText:n,handleOnClick:r}=e;const{selectAllLabel:i,deselectAllLabel:o}=null!=n?n:{selectAllLabel:K$.SELECT_ALL,deselectAllLabel:K$.DESELECT_ALL};return oh(rh,{children:[ih(Jc,{sx:{display:"inline-block"},color:"secondary",onClick:e=>{e.stopPropagation();const n=null==t?void 0:t.filter((e=>!e.disabled)).map((e=>e.value));r(e.target,n)},children:ih(GU,{variant:"h5",component:"span",children:i})}),ih(Jc,{sx:{display:"inline-block"},onClick:e=>{e.stopPropagation(),r(e.target,[])},color:"secondary",children:ih(GU,{variant:"h5",component:"span",children:o})}),ih(Y$,{})]})}function eV(e){const{placeholder:t,options:n=[],required:i=!1,onChange:o,value:a,multiple:s,hasSelectAll:l,hasClear:c,localeText:u,name:d,disabled:p,renderValue:h,sx:f,...m}=e,g=wn(),{error:y}=g||{error:e.error},{handleRenderValue:v,makePlaceholderMenuItem:b}=function(e){const t="Select a value";return{handleRenderValue:(n,r,i)=>{var o,a,s;return UB(n)||""===n||HB(n)?ih(GU,{color:"text.placeholder",children:null!=e?e:t}):Array.isArray(n)?n.length>1?null!=(o=null==i?void 0:i({selectedCount:n.length}))?o:`${n.length} ${X$.ITEMS_SELECTED}`:n.join(""):null!=(s=null==(a=null==r?void 0:r.find((e=>e.value===n)))?void 0:a.label)?s:""},makePlaceholderMenuItem:n=>{let{required:r}=n;return!r&&ih(h$,{value:"",children:ih(GU,{color:"text.placeholder",children:null!=e?e:t})})}}}(t),_=e=>!e.disabled&&GB(a)&&a.includes(e.value),w=Array.isArray(a)&&!a.length,x=!Array.isArray(a)&&!a,[k,C]=(0,r.useState)(!1),S=(0,r.useCallback)(((e,t)=>{const n={...new Event("change",{bubbles:!1}),target:{...e,name:d,value:t}};o(n)}),[d,o]);return oh(l$,{displayEmpty:!0,inputProps:{placeholder:null!=t?t:"Select a value",required:i,...e.inputProps},endAdornment:ih(nu,{position:"end",children:oh(Aa,{direction:"row",gap:1,children:[c&&!(x||w)&&ih(J$,{disabled:HB(a)||""===a,onClear:e=>{S(e.target,GB(a)?[]:"")},error:y}),ih(nt,{"aria-label":"toggle dropdown",disabled:p,onClick:()=>C(!0),size:"small",color:"primary",children:ih(_U,{type:k?"chevron-up":"chevron-down"})})]})}),multiple:s,open:k,onOpen:()=>C(!0),onClose:()=>C(!1),value:a,onChange:o,renderValue:"function"==typeof h?h:e=>v(e,n,null==u?void 0:u.getMultiSelectText),disabled:p,sx:{[`&.${hn.root}`]:{[`.${bn.icon}`]:{display:"none"},[`.${Qe.root}`]:{padding:0},[`.${Qe.root}:hover`]:{backgroundColor:"transparent"},[`& .${yn.positionEnd}`]:{paddingRight:3}},...f},...m,children:[l&&ih(Q$,{options:n,handleOnClick:S,localeText:{selectAllLabel:u.selectAll,deselectAllLabel:u.deselectAll}}),!s&&b({required:i}),n.map((e=>oh(h$,{value:e.value,disabled:e.disabled,children:[s&&ih(ka,{component:"span",pl:1,children:ih(du,{checked:_(e),edge:"start"})}),e.label]},`key-${e.value}`)))]})}eV.displayName="SelectField";const tV=(0,l.ZP)(Eo)`
  flex-grow: 1;
`,nV=(0,l.ZP)(Eo)`
  min-width: auto;
`,rV=(0,l.ZP)("div")((e=>{let{$paddingRight:t=0}=e;return`\n  visibility: hidden;\n  overflow: hidden;\n  height: 0;\n  padding-right: ${t}px;\n  white-space: nowrap;\n  width: fit-content;\n  min-width: 50px;\n  `})),iV=(0,l.ZP)(b$)`
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
  width: fit-content;
  min-width: 100%;
`,oV=(0,l.ZP)(b$)((e=>{let{theme:t,$error:n,$variant:r,$focused:i,$color:o}=e,a=t.palette.semanticPalette.stroke.main,s=t.palette.semanticPalette.stroke.brand;const l="filled"===r?0:t.shape.borderRadius;let c="filled"===r?0:1;switch(o){case"main":default:s=t.palette.semanticPalette.stroke.brand;break;case"success":s=t.palette.semanticPalette.stroke.success;break;case"warning":s=t.palette.semanticPalette.stroke.warning}return(n||"error"===o)&&(o="error",a=t.palette.semanticPalette.stroke.error,s=t.palette.semanticPalette.stroke.error),i&&(c=2,a=s),{"&":{backgroundColor:o?t.palette.semanticPalette.surface[o]:"transparent",border:`${c}px solid ${a}`,borderRadius:`${l}px`,boxSizing:"border-box",position:"absolute",width:"100%",height:"100%"}}}));(0,l.ZP)(Jl)`
  &:hover {
    background-color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.surface.secondary}};
  }
`;const aV="combined-select-placeholder",sV=(0,r.forwardRef)(((e,t)=>{var n;const{variant:i="filled",disabled:o,readOnly:a,selectOptions:l,selectDefaultValue:c,SelectProps:u={},MenuItemProps:d,sx:p,value:h,textAlign:f="right",...m}=e,g=(0,s.Z)(),{sx:y,placeholder:v,...b}=u,_=wn(),[w,x]=qU(null==_?void 0:_.focused,50),[k,C]=(0,r.useState)(null!=(n=null!=h?h:m.defaultValue)?n:""),S=(e=>{let{selectOptions:t=[]}=e;return(0,r.useMemo)((()=>{let e="";return null==t||t.forEach((t=>{var n,r,i,o;let a="";"string"==typeof t.label?a=t.label:(e=>"object"==typeof e&&null!==e&&"props"in e)(t.label)&&"string"==typeof(null==(r=null==(n=t.label)?void 0:n.props)?void 0:r.children)&&(a=null==(o=null==(i=t.label)?void 0:i.props)?void 0:o.children),a.length>e.length&&(e=a)})),e}),[t])})({selectOptions:l}),M=null!=m&&m.onChange?h:k,T=24+("number"===m.type?15:0),E=(0,r.useMemo)((()=>"outlined"===i?io:Wi),[i]),P=(0,r.useMemo)((()=>({[`&.${hn.root}, \n        &.${hn.root}.${hn.disabled},\n        &.${hn.root}.${hn.error},\n        &.${hn.root}.${mn.root},\n        &.${hn.root}.${mn.root}:hover,\n        &.${hn.root}:hover`]:{borderWidth:0,backgroundColor:"transparent"},[`& .${hn.input}`]:{textAlign:f},[`&.${hn.root}.${mn.root},\n        &.${hn.root}.${mn.root}:hover`]:{padding:g.spacing(4,3)},[`& .${In.notchedOutline}`]:{display:"none"},...null!=p?p:{}})),[p,f,g]),I=(0,r.useMemo)((()=>({[`&.${hn.root},\n        &.${hn.root}:hover,\n        &.${hn.root}.${hn.disabled},\n        &.${hn.root}.${hn.error},\n        &.${hn.root}.${hn.focused}`]:{[`&& .${bn.select}`]:{paddingRight:g.spacing(7)},padding:0,borderWidth:0,backgroundColor:"transparent"},...null!=y?y:{}})),[y,g]),O=(0,r.useMemo)((()=>null==l?void 0:l.map(((e,t)=>ih(h$,{value:e.value,disabled:e.disabled,...null!=d?d:{},children:e.label},`opt-${t}`)))),[l,d]),L=!v||c&&""!==c?c:aV;return oh(iV,{onFocus:()=>x(!0),onBlur:()=>x(!1),children:[ih(oV,{$variant:i,$error:m.error||(null==_?void 0:_.error),$focused:w||(null==_?void 0:_.focused),$color:m.color}),oh(tV,{disabled:null!=o?o:null==_?void 0:_.disabled,children:[ih(rV,{$paddingRight:T,children:M}),ih(rV,{$paddingRight:T,children:m.placeholder}),ih(E,{...m,value:M,onChange:e=>{var t,n;return null!=(n=null==(t=null==m?void 0:m.onChange)?void 0:t.call(m,e))?n:C(e.target.value)},ref:t,sx:P,readOnly:a})]}),oh(nV,{disabled:null!=o?o:null==_?void 0:_.disabled,children:[ih(rV,{$paddingRight:28,children:S}),oh(l$,{...b,defaultValue:L,readOnly:a,sx:I,variant:"filled",children:[v?ih(h$,{disabled:!0,value:aV,children:ih(GU,{color:"text.placeholder",children:v})}):null,O]})]})]})}));function lV(e){return ih(Su,{...e,animation:"wave"})}sV.displayName="CombinedInputWithSelect";const cV=e=>{let{title:t,description:n}=e;return oh(rh,{children:[ih(GU,{variant:"body1",component:n?"div":"span",children:t}),n&&ih(GU,{variant:"body2",color:"secondary",component:"span",children:n})]})};function uV(e){const{placeholder:t,readOnly:n,label:r,description:i,params:o,variant:a,helperText:s,inputProps:l}=e,{inputProps:c}=o,u={...c,...l},d=wn(),{error:p,disabled:h,focused:f,required:m}=d||{error:e.error,helperText:e.helperText,disabled:e.disabled,focused:e.focused,required:e.required};return ih(u$,{"aria-readonly":n,...o,disabled:h,focused:f,required:m,error:p,helperText:s,label:r?ih(cV,{title:r,description:i}):"",placeholder:t,size:"medium",variant:null!=a?a:"outlined",inputProps:u})}function dV(e){let{renderOptionProps:t,option:{DisplayLabel:n,...i},selected:o,multiple:a}=e;return(0,r.createElement)(Uo,{...t,sx:e=>({...a&&{[`&&&.${dc.option}`]:{paddingLeft:e.spacing(1),paddingY:e.spacing(2)}}}),key:i.label},a&&ih(du,{checked:o}),$B(n)?n:ih(WU,{children:i.label}))}function pV(e){return ih(Uo,{...e.renderOptionProps,sx:e=>({"&&&&":{width:"50%",display:"inline-flex",padding:e.spacing(0),minHeight:e.spacing(9),borderBottom:`1px solid ${e.palette.divider}`}}),children:ih(b$,{display:"flex",justifyContent:"center",width:"100%",children:ih(GU,{variant:"h5",component:"span",children:e.option.label})})})}function hV(e){let{group:t,children:n,expanded:i,onChange:o,indeterminate:a,selected:s,disabled:l,multiple:c}=e;const[u,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i&&d(!0)}),[i]),oh(b$,{children:[oh(b$,{display:"flex",justifyContent:"space-between",alignItems:"center",onClick:()=>d(!u),pl:1,pr:2,sx:e=>({cursor:"pointer","&:hover":{backgroundColor:(0,We.$n)(e.palette.common.black,.96)}}),children:[oh(b$,{pl:c?0:3,color:e=>l?e.palette.text.disabled:"inherit","aria-disabled":l,children:[c&&ih(du,{indeterminate:a,checked:s,onClick:e=>{e.stopPropagation(),o(e,t)}}),t]}),ih(nt,{onClick:()=>d(!u),children:ih(_U,{fontSize:"body1",type:u?"chevron-up":"chevron-down",color:"main"})})]}),u&&ih(b$,{pl:7,children:n})]})}function fV(e){var t,n;const{readOnly:r,value:i,freeSolo:o,ownerState:a,multiSelectText:s}=e,l=o&&(i[0].label||i)||i[0].label;if(!r&&a.focused){const e=i.length<=1?l:null!=s&&s.getLimitTagsTextFocused?null==(t=null==s?void 0:s.getLimitTagsTextFocused)?void 0:t.call(s,i.length):`${i.length} ${X$.ITEMS_SELECTED}`;return ih(dn,{label:e,color:"secondary",size:"small",sx:{maxWidth:"80%",mr:e=>e.spacing(1),[`&&&:has(>svg).${on.sizeSmall}`]:{padding:"0"}}})}const c=i.length>1?null!=s&&s.getLimitTagsText?null==(n=null==s?void 0:s.getLimitTagsText)?void 0:n.call(s,i.length):`${i.length} ${X$.ITEMS_SELECTED}`:l;return ih(WU,{variant:"body1",component:"span",color:e=>r?e.palette.grey[400]:"inherit",children:c})}const mV=e=>!0===e.hasSelectAll;function gV(e){const[t,n]=(0,r.useState)(""),{description:i,disabled:o,error:a,focused:s,freeSolo:l,hasClear:c,hasSelectAll:u,helperText:d,inputVariant:p,label:h,localeText:f,multiple:m,onChange:g,options:y,readOnly:v,required:b,onInputChange:_,inputProps:w,...x}=e,k={description:i,disabled:o,error:a,focused:s,helperText:d,label:h,readOnly:v,required:b,inputProps:w,variant:p},C=(0,r.useMemo)((()=>{var e,t;return u&&mV({hasSelectAll:u,localeText:f})?[{label:null!=(e=null==f?void 0:f.selectAll)?e:K$.SELECT_ALL,value:"select-all"},{label:null!=(t=null==f?void 0:f.deselectAll)?t:K$.DESELECT_ALL,value:"deselect-all"}]:[]}),[u,f]),S=(0,r.useMemo)((()=>[...C,...y]),[C,y]),M=[],T=(t,n,r,i)=>{if(g){if(u){if("select-all"===(null==i?void 0:i.option.value)){const n=e.options.filter((e=>!e.disabled&&"select-all"!==e.value&&"deselect-all"!==e.value));return void g(t,n,r,i)}if("deselect-all"===(null==i?void 0:i.option.value))return void g(t,M,r,i)}g(t,n,r,i)}},E=(e,t)=>{const n=P(t);if(I(t)){const n=D.filter((e=>t!==e.group));T(e,n,"selectOption")}else if(n.every((e=>e.disabled||D.includes(e)))){const t=D.filter((e=>!n.includes(e)));T(e,t,"selectOption")}else{const t=n.filter((e=>!D.includes(e)&&!e.disabled));T(e,[...D,...t],"selectOption")}},P=e=>y.filter((t=>t.group===e)),I=t=>{const n=P(t);if(ZB(e.value)&&$B(e.value))return n.every((e=>D.includes(e)))},O=Array.isArray(e.value)&&e.value.length,L=m&&O?"":e.placeholder,R=!l&&!c,j=y.some((e=>$B(e.group))),D=$B(e.value)?e.value:[],A=(0,r.useMemo)((()=>{const e=y.filter((e=>e.label.toLowerCase().includes(t.toLowerCase())));return Array.from(new Set(e.map((e=>e.group)).filter($B)))}),[y,t]);return ih(qu,{...x,disabled:o,freeSolo:l,disableClearable:R,getOptionDisabled:e=>!!e.disabled,isOptionEqualToValue:(e,t)=>e.value===t.value,multiple:m,onInputChange:(e,t,r)=>{null==_||_(e,t,r),n(t)},onChange:T,options:u?S:y,readOnly:v,placeholder:void 0,renderInput:e=>ih(uV,{placeholder:L,params:e,...k}),renderTags:(e,t,n)=>ih(fV,{value:e,ownerState:n,readOnly:v,freeSolo:l,multiSelectText:{getLimitTagsText:null==f?void 0:f.getLimitTagsText,getLimitTagsTextFocused:null==f?void 0:f.getLimitTagsTextFocused}}),renderOption:(e,t,n)=>{let{selected:r}=n;return"select-all"===t.value||"deselect-all"===t.value?ih(pV,{option:t,renderOptionProps:e},t.value):ih(dV,{renderOptionProps:e,selected:r,option:t,multiple:m},t.value)},groupBy:j?e=>e.group:void 0,renderGroup:e=>{let{key:n,group:r,children:i}=e;if(BB(r)||!ZB(D))return i;const o=I(r),a=!o&&GB(D)&&D.some((e=>e.group===r)),s=qB(t)&&GB(A)&&A.includes(r),l=(e=>P(e).every((e=>e.disabled)))(r);return ih(hV,{expanded:s,group:r,multiple:m,onChange:E,indeterminate:a,selected:null!=o&&o,disabled:l,children:i},n)},slotProps:{popper:{sx:e=>({minWidth:u?e.fixedWidths.xs:"auto"})},...e.slotProps}})}gV.displayName="Autocomplete";const yV={previous:"chevron-left",next:"chevron-right",first:"first-page",last:"last-page"},vV=["previous","next","first","last"],bV=e=>{let{from:t,to:n,count:r}=e;return`Showing ${t} - ${n} out of ${r}`},_V=e=>{let{size:t="small",rowsPerPage:n=10,count:i,page:o,showPages:a,showDisplayedRowsLabel:l,rowsPerPageOptions:c,onSetRowsPerPage:u,labelRowsPerPage:d="Rows per page",labelDisplayedRows:p=bV,onSetPage:h,...f}=e;const m=(0,s.Z)(),g=n?Math.ceil(i/n):i,y=o+1,{items:v}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:o=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:p=1}=e,h=fb(e,cU),[f,m]=Lh({controlled:c,default:i,name:n,state:"page"}),g=(e,t)=>{c||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},((t,n)=>e+n))},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),_=Math.max(Math.min(f-p,r-t-2*p-1),t+2),w=Math.min(Math.max(f+p,t+2*p+2),b.length>0?b[0]-2:r-1),x=[...u?["first"]:[],...s?[]:["previous"],...v,..._>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(_,w),...w<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...a?[]:["next"],...d?["last"]:[]],k=e=>{switch(e){case"first":return 1;case"previous":return f-1;case"next":return f+1;case"last":return r;default:return null}};return mb({items:x.map((e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===f,disabled:o,"aria-current":e===f?"true":void 0}:{onClick:t=>{g(t,k(e))},type:e,page:k(e),selected:!1,disabled:o||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?f>=r:f<=1)}))},h)}({...f,onChange:(e,t)=>h(t-1),page:y,count:g}),b=p({from:y*n-n+1,to:y*n>i?i:y*n,count:i}),_=(null==c?void 0:c.length)&&u,w="small"===t?"body2":"body1",x=(0,r.useMemo)((()=>({[`&.${hn.root}`]:{padding:"small"===t?m.spacing(1,2):m.spacing(2,3),gap:2,[`.${bn.icon}`]:{display:"none"},[`.${Zu.Z.root}`]:{fontSize:m.typography["small"===t?"h5":"h6"].lineHeight},[`.${Fe.root}`]:{padding:0},[`&> .${yn.root}.${yn.positionEnd}`]:{paddingRight:0,margin:0},[`.${bn.select}`]:{minHeight:"auto",height:"auto"},[`.${hn.input}.${In.input}`]:{padding:0,color:m.palette.semanticPalette.text.secondary,fontSize:m.typography[w]}}})),[t,m,w]);return oh(b$,{display:"flex",alignItems:"center",gap:2,children:[_&&oh(b$,{display:"flex",gap:3,alignItems:"center",marginRight:3,children:[ih(GU,{color:"secondary",variant:w,children:d}),ih(eV,{required:!0,onChange:e=>{h(0),u(e.target.value)},value:n,options:c,sx:x})]}),l?ih(GU,{color:"secondary",variant:w,children:b}):null,ih(BU,{size:t,children:v.map(((e,t)=>{let{page:n,type:r,selected:i,disabled:o,onClick:s}=e;if(vV.includes(r))return ih(wV,{"area-label":`pagination-button-${r}`,onClick:s,disabled:o,color:"secondary",selected:i,children:ih(_U,{fontSize:"h5",type:yV[r]})},t);if(a){return ih(wV,{"area-label":`pagination-button-${r}`,onClick:n?s:void 0,disabled:o,color:"secondary",selected:i,children:ih(GU,{variant:"h6",color:i?"main":"secondary",children:null!=n?n:"\u2026"})},t)}return null}))})]})},wV=_g(Ju)`
  background-color: ${e=>{let{theme:t,selected:n}=e;return t.palette.semanticPalette.surface[n?"secondary":"main"]}};
  min-width: 36px;
`;id.displayName="RadioGroup";var xV={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(xV);const kV=xV.exports;function CV(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function SV(e){return CV(1,arguments),e instanceof Date||"object"===kD(e)&&"[object Date]"===Object.prototype.toString.call(e)}function MV(e){CV(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===kD(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function TV(e){if(CV(1,arguments),!SV(e)&&"number"!=typeof e)return!1;var t=MV(e);return!isNaN(Number(t))}function EV(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function PV(e,t){CV(2,arguments);var n=MV(e).getTime(),r=EV(t);return new Date(n+r)}function IV(e,t){return CV(2,arguments),PV(e,-EV(t))}function OV(e){CV(1,arguments);var t=MV(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function LV(e){CV(1,arguments);var t=MV(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=OV(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=OV(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var RV=6048e5;function jV(e){CV(1,arguments);var t=MV(e),n=OV(t).getTime()-function(e){CV(1,arguments);var t=LV(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),OV(n)}(t).getTime();return Math.round(n/RV)+1}var DV={};function AV(){return DV}function NV(e,t){var n,r,i,o,a,s,l,c;CV(1,arguments);var u=AV(),d=EV(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=MV(e),h=p.getUTCDay(),f=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function FV(e,t){var n,r,i,o,a,s,l,c;CV(1,arguments);var u=MV(e),d=u.getUTCFullYear(),p=AV(),h=EV(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var m=NV(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var y=NV(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}var zV=6048e5;function BV(e,t){CV(1,arguments);var n=MV(e),r=NV(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,c;CV(1,arguments);var u=AV(),d=EV(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=FV(e,t),h=new Date(0);return h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0),NV(h,t)}(n,t).getTime();return Math.round(r/zV)+1}function UV(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const $V={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return UV("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):UV(n+1,2)},d:function(e,t){return UV(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return UV(e.getUTCHours()%12||12,t.length)},H:function(e,t){return UV(e.getUTCHours(),t.length)},m:function(e,t){return UV(e.getUTCMinutes(),t.length)},s:function(e,t){return UV(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return UV(Math.floor(r*Math.pow(10,n-3)),t.length)}};var VV="midnight",qV="noon",ZV="morning",HV="afternoon",GV="evening",WV="night";function YV(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+UV(o,2)}function KV(e,t){return e%60===0?(e>0?"-":"+")+UV(Math.abs(e)/60,2):XV(e,t)}function XV(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+UV(Math.floor(i/60),2)+n+UV(i%60,2)}const JV={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return $V.y(e,t)},Y:function(e,t,n,r){var i=FV(e,r),o=i>0?i:1-i;return"YY"===t?UV(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):UV(o,t.length)},R:function(e,t){return UV(LV(e),t.length)},u:function(e,t){return UV(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return UV(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return UV(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return $V.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return UV(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=BV(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):UV(i,t.length)},I:function(e,t,n){var r=jV(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):UV(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):$V.d(e,t)},D:function(e,t,n){var r=function(e){CV(1,arguments);var t=MV(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):UV(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return UV(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return UV(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return UV(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?qV:0===i?VV:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?GV:i>=12?HV:i>=4?ZV:WV,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $V.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):$V.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):UV(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):UV(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):$V.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):$V.s(e,t)},S:function(e,t){return $V.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return KV(i);case"XXXX":case"XX":return XV(i);default:return XV(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return KV(i);case"xxxx":case"xx":return XV(i);default:return XV(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+YV(i,":");default:return"GMT"+XV(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+YV(i,":");default:return"GMT"+XV(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return UV(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return UV((r._originalDate||e).getTime(),t.length)}};var QV=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},eq=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const tq={p:eq,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return QV(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",QV(i,t)).replace("{{time}}",eq(o,t))}};function nq(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var rq=["D","DD"],iq=["YY","YYYY"];function oq(e){return-1!==rq.indexOf(e)}function aq(e){return-1!==iq.indexOf(e)}function sq(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var lq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const cq=function(e,t,n){var r,i=lq[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uq(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var dq={date:uq({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:uq({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:uq({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var pq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function hq(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function fq(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}const mq={code:"en-US",formatDistance:cq,formatLong:dq,formatRelative:function(e,t,n,r){return pq[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:hq({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:hq({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:hq({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:hq({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:hq({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:fq({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:fq({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:fq({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:fq({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:fq({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var gq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vq=/^'([^]*?)'?$/,bq=/''/g,_q=/[a-zA-Z]/;function wq(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_;CV(2,arguments);var w=String(t),x=AV(),k=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:x.locale)&&void 0!==r?r:mq,C=EV(null!==(o=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=EV(null!==(h=null!==(f=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(y=n.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==f?f:null===(b=x.locale)||void 0===b||null===(_=b.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var M=MV(e);if(!TV(M))throw new RangeError("Invalid time value");var T=IV(M,nq(M)),E={firstWeekContainsDate:C,weekStartsOn:S,locale:k,_originalDate:M},P=w.match(yq).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,tq[t])(e,k.formatLong):e})).join("").match(gq).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(vq);return t?t[1].replace(bq,"'"):e}(r);var o=JV[i];if(o)return!(null!=n&&n.useAdditionalWeekYearTokens)&&aq(r)&&sq(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&oq(r)&&sq(r,t,String(e)),o(T,r,k.localize,E);if(i.match(_q))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return P}var xq=6e4;function kq(e,t){return CV(2,arguments),PV(e,EV(t)*xq)}var Cq=36e5;function Sq(e,t){return CV(2,arguments),PV(e,EV(t)*Cq)}function Mq(e,t){CV(2,arguments);var n=MV(e),r=EV(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Tq(e,t){return CV(2,arguments),Mq(e,7*EV(t))}function Eq(e,t){CV(2,arguments);var n=MV(e),r=EV(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Pq(e,t){return CV(2,arguments),Eq(e,3*EV(t))}function Iq(e,t){return CV(2,arguments),Eq(e,12*EV(t))}function Oq(e,t){return CV(2,arguments),Eq(e,-EV(t))}function Lq(e,t){return CV(2,arguments),Iq(e,-EV(t))}function Rq(e){return CV(1,arguments),MV(e).getSeconds()}function jq(e){return CV(1,arguments),MV(e).getMinutes()}function Dq(e){return CV(1,arguments),MV(e).getHours()}function Aq(e){return CV(1,arguments),MV(e).getDate()}function Nq(e,t){var n,r,i,o,a,s,l,c;CV(1,arguments);var u=AV(),d=EV(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=MV(e),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p}function Fq(e){return CV(1,arguments),Nq(e,{weekStartsOn:1})}function zq(e){CV(1,arguments);var t=function(e){CV(1,arguments);var t=MV(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Fq(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=Fq(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Fq(n)}function Bq(e){return CV(1,arguments),MV(e).getMonth()}function Uq(e){CV(1,arguments);var t=MV(e);return Math.floor(t.getMonth()/3)+1}function $q(e){return CV(1,arguments),MV(e).getFullYear()}function Vq(e){return CV(1,arguments),MV(e).getTime()}function qq(e,t){CV(2,arguments);var n=MV(e),r=EV(t);return n.setMinutes(r),n}function Zq(e,t){CV(2,arguments);var n=MV(e),r=EV(t);return n.setHours(r),n}function Hq(e,t){CV(2,arguments);var n=MV(e),r=EV(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=function(e){CV(1,arguments);var t=MV(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(r,Math.min(o,s)),n}function Gq(e,t){CV(2,arguments);var n=MV(e),r=EV(t)-(Math.floor(n.getMonth()/3)+1);return Hq(n,n.getMonth()+3*r)}function Wq(e,t){CV(2,arguments);var n=MV(e),r=EV(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Yq(e){var t,n;if(CV(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==kD(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=MV(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function Kq(e){var t,n;if(CV(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==kD(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=MV(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}function Xq(e){CV(1,arguments);var t=MV(e);return t.setHours(0,0,0,0),t}var Jq=864e5;function Qq(e,t){CV(2,arguments);var n=Xq(e),r=Xq(t),i=n.getTime()-nq(n),o=r.getTime()-nq(r);return Math.round((i-o)/Jq)}function eZ(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function tZ(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getFullYear()-r.getFullYear()}function nZ(e){CV(1,arguments);var t=MV(e);return t.setDate(1),t.setHours(0,0,0,0),t}function rZ(e){CV(1,arguments);var t=MV(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function iZ(e){CV(1,arguments);var t=MV(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function oZ(e){CV(1,arguments);var t=MV(e);return t.setHours(23,59,59,999),t}function aZ(e){CV(1,arguments);var t=MV(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function sZ(e){CV(1,arguments);var t=MV(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function lZ(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getTime()>r.getTime()}function cZ(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getTime()<r.getTime()}function uZ(e,t){CV(2,arguments);var n=MV(e).getTime(),r=MV(t.start).getTime(),i=MV(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function dZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pZ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return dZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dZ(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{!a&&null!=n.return&&n.return()}finally{if(s)throw o}}}}function hZ(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function fZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tk(e,t)}function mZ(e){return(mZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gZ(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=mZ(e);if(t){var i=mZ(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hk(e)}(this,n)}}function yZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CD(r.key),r)}}function bZ(e,t,n){return t&&vZ(e.prototype,t),n&&vZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Z(e,t,n){return(t=CD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wZ=function(){function e(){yZ(this,e),_Z(this,"priority",void 0),_Z(this,"subPriority",0)}return bZ(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),xZ=function(e){fZ(n,e);var t=gZ(n);function n(e,r,i,o,a){var s;return yZ(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return bZ(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(wZ),kZ=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",10),_Z(hk(e),"subPriority",-1),e}return bZ(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(wZ),CZ=function(){function e(){yZ(this,e),_Z(this,"incompatibleTokens",void 0),_Z(this,"priority",void 0),_Z(this,"subPriority",void 0)}return bZ(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new xZ(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),SZ=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",140),_Z(hk(e),"incompatibleTokens",["R","u","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),MZ=6e4,TZ=36e5,EZ=/^(1[0-2]|0?\d)/,PZ=/^(3[0-1]|[0-2]?\d)/,IZ=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,OZ=/^(5[0-3]|[0-4]?\d)/,LZ=/^(2[0-3]|[0-1]?\d)/,RZ=/^(2[0-4]|[0-1]?\d)/,jZ=/^(1[0-1]|0?\d)/,DZ=/^(1[0-2]|0?\d)/,AZ=/^[0-5]?\d/,NZ=/^[0-5]?\d/,FZ=/^\d/,zZ=/^\d{1,2}/,BZ=/^\d{1,3}/,UZ=/^\d{1,4}/,$Z=/^-?\d+/,VZ=/^-?\d/,qZ=/^-?\d{1,2}/,ZZ=/^-?\d{1,3}/,HZ=/^-?\d{1,4}/,GZ=/^([+-])(\d{2})(\d{2})?|Z/,WZ=/^([+-])(\d{2})(\d{2})|Z/,YZ=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,KZ=/^([+-])(\d{2}):(\d{2})|Z/,XZ=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function JZ(e,t){return e&&{value:t(e.value),rest:e.rest}}function QZ(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function eH(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*TZ+o*MZ+1e3*a),rest:t.slice(n[0].length)}}function tH(e){return QZ($Z,e)}function nH(e,t){switch(e){case 1:return QZ(FZ,t);case 2:return QZ(zZ,t);case 3:return QZ(BZ,t);case 4:return QZ(UZ,t);default:return QZ(new RegExp("^\\d{1,"+e+"}"),t)}}function rH(e,t){switch(e){case 1:return QZ(VZ,t);case 2:return QZ(qZ,t);case 3:return QZ(ZZ,t);case 4:return QZ(HZ,t);default:return QZ(new RegExp("^-?\\d{1,"+e+"}"),t)}}function iH(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oH(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function aH(e){return e%400===0||e%4===0&&e%100!==0}var sH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",130),_Z(hk(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return JZ(nH(4,e),r);case"yo":return JZ(n.ordinalNumber(e,{unit:"year"}),r);default:return JZ(nH(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=oH(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),lH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",130),_Z(hk(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return JZ(nH(4,e),r);case"Yo":return JZ(n.ordinalNumber(e,{unit:"year"}),r);default:return JZ(nH(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=FV(e,r);if(n.isTwoDigitYear){var o=oH(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),NV(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),NV(e,r)}}]),n}(CZ),cH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",130),_Z(hk(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t){return rH("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),OV(r)}}]),n}(CZ),uH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",130),_Z(hk(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t){return rH("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),dH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",120),_Z(hk(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return nH(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),pH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",120),_Z(hk(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return nH(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),hH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_Z(hk(e),"priority",110),e}return bZ(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return JZ(QZ(EZ,e),r);case"MM":return JZ(nH(2,e),r);case"Mo":return JZ(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),fH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",110),_Z(hk(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return JZ(QZ(EZ,e),r);case"LL":return JZ(nH(2,e),r);case"Lo":return JZ(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(CZ);var mH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",100),_Z(hk(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return QZ(OZ,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return NV(function(e,t,n){CV(2,arguments);var r=MV(e),i=EV(t),o=BV(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(CZ);var gH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",100),_Z(hk(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return QZ(OZ,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return OV(function(e,t){CV(2,arguments);var n=MV(e),r=EV(t),i=jV(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(CZ),yH=[31,28,31,30,31,30,31,31,30,31,30,31],vH=[31,29,31,30,31,30,31,31,30,31,30,31],bH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"subPriority",1),_Z(hk(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return QZ(PZ,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){var n=aH(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=vH[r]:t>=1&&t<=yH[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),_H=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"subpriority",1),_Z(hk(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return QZ(IZ,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return aH(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(CZ);function wH(e,t,n){var r,i,o,a,s,l,c,u;CV(2,arguments);var d=AV(),p=EV(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=MV(e),f=EV(t),m=((f%7+7)%7<p?7:0)+f-h.getUTCDay();return h.setUTCDate(h.getUTCDate()+m),h}var xH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=wH(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(CZ),kH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return JZ(nH(t.length,e),i);case"eo":return JZ(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=wH(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(CZ),CH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return JZ(nH(t.length,e),i);case"co":return JZ(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=wH(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(CZ);var SH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",90),_Z(hk(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return nH(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return JZ(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return JZ(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return JZ(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return JZ(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){CV(2,arguments);var n=EV(t);n%7===0&&(n-=7);var r=MV(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(CZ),MH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",80),_Z(hk(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(iH(n),0,0,0),e}}]),n}(CZ),TH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",80),_Z(hk(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(iH(n),0,0,0),e}}]),n}(CZ),EH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",80),_Z(hk(e),"incompatibleTokens",["a","b","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(iH(n),0,0,0),e}}]),n}(CZ),PH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",70),_Z(hk(e),"incompatibleTokens",["H","K","k","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return QZ(DZ,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(CZ),IH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",70),_Z(hk(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return QZ(LZ,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(CZ),OH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",70),_Z(hk(e),"incompatibleTokens",["h","H","k","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return QZ(jZ,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(CZ),LH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",70),_Z(hk(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return QZ(RZ,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(CZ),RH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",60),_Z(hk(e),"incompatibleTokens",["t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return QZ(AZ,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(CZ),jH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",50),_Z(hk(e),"incompatibleTokens",["t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return QZ(NZ,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return nH(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(CZ),DH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",30),_Z(hk(e),"incompatibleTokens",["t","T"]),e}return bZ(n,[{key:"parse",value:function(e,t){return JZ(nH(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(CZ),AH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",10),_Z(hk(e),"incompatibleTokens",["t","T","x"]),e}return bZ(n,[{key:"parse",value:function(e,t){switch(t){case"X":return eH(GZ,e);case"XX":return eH(WZ,e);case"XXXX":return eH(YZ,e);case"XXXXX":return eH(XZ,e);default:return eH(KZ,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(CZ),NH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",10),_Z(hk(e),"incompatibleTokens",["t","T","X"]),e}return bZ(n,[{key:"parse",value:function(e,t){switch(t){case"x":return eH(GZ,e);case"xx":return eH(WZ,e);case"xxxx":return eH(YZ,e);case"xxxxx":return eH(XZ,e);default:return eH(KZ,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(CZ),FH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",40),_Z(hk(e),"incompatibleTokens","*"),e}return bZ(n,[{key:"parse",value:function(e){return tH(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(CZ),zH=function(e){fZ(n,e);var t=gZ(n);function n(){var e;yZ(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _Z(hk(e=t.call.apply(t,[this].concat(i))),"priority",20),_Z(hk(e),"incompatibleTokens","*"),e}return bZ(n,[{key:"parse",value:function(e){return tH(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(CZ),BH={G:new SZ,y:new sH,Y:new lH,R:new cH,u:new uH,Q:new dH,q:new pH,M:new hH,L:new fH,w:new mH,I:new gH,d:new bH,D:new _H,E:new xH,e:new kH,c:new CH,i:new SH,a:new MH,b:new TH,B:new EH,h:new PH,H:new IH,K:new OH,k:new LH,m:new RH,s:new jH,S:new DH,X:new AH,x:new NH,t:new FH,T:new zH},UH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$H=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VH=/^'([^]*?)'?$/,qH=/''/g,ZH=/\S/,HH=/[a-zA-Z]/;function GH(e,t,n,r){var i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_,w;CV(3,arguments);var x=String(e),k=String(t),C=AV(),S=null!==(i=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:C.locale)&&void 0!==i?i:mq;if(!S.match)throw new RangeError("locale must contain match property");var M=EV(null!==(a=null!==(s=null!==(l=null!==(c=null==r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:C.firstWeekContainsDate)&&void 0!==s?s:null===(p=C.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==a?a:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=EV(null!==(f=null!==(m=null!==(g=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==m?m:null===(_=C.locale)||void 0===_||null===(w=_.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?MV(n):new Date(NaN);var E,P={firstWeekContainsDate:M,weekStartsOn:T,locale:S},I=[new kZ],O=k.match($H).map((function(e){var t=e[0];return t in tq?(0,tq[t])(e,S.formatLong):e})).join("").match(UH),L=[],R=pZ(O);try{var j=function(){var t=E.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&aq(t)&&sq(t,k,e),(null==r||!r.useAdditionalDayOfYearTokens)&&oq(t)&&sq(t,k,e);var n=t[0],i=BH[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=L.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===i.incompatibleTokens&&L.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));L.push({token:n,fullToken:t});var s=i.run(x,t,S.match,P);if(!s)return{v:new Date(NaN)};I.push(s.setter),x=s.rest}else{if(n.match(HH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=function(e){return e.match(VH)[1].replace(qH,"'")}(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(R.s();!(E=R.n()).done;){var D=j();if("object"===kD(D))return D.v}}catch(q){R.e(q)}finally{R.f()}if(x.length>0&&ZH.test(x))return new Date(NaN);var A=I.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return I.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),N=MV(n);if(isNaN(N.getTime()))return new Date(NaN);var F,z=IV(N,nq(N)),B={},U=pZ(A);try{for(U.s();!(F=U.n()).done;){var $=F.value;if(!$.validate(z,P))return new Date(NaN);var V=$.set(z,B,P);Array.isArray(V)?(z=V[0],hZ(B,V[1])):z=V}}catch(q){U.e(q)}finally{U.f()}return z}function WH(e,t){var n;CV(1,arguments);var r=EV(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,o=function(e){var t,n={},r=e.split(YH.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],YH.timeZoneDelimiter.test(n.date)&&(n.date=e.split(YH.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=YH.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(o.date){var a=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,r);i=function(e,t){if(null===t)return new Date(NaN);var n=e.match(KH);if(!n)return new Date(NaN);var r=!!n[4],i=QH(n[1]),o=QH(n[2])-1,a=QH(n[3]),s=QH(n[4]),l=QH(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(tG[t]||(nG(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(nG(e)?366:365)}(t,i)?(c.setUTCFullYear(t,o,Math.max(i,a)),c):new Date(NaN)}(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s,l=i.getTime(),c=0;if(o.time&&(c=function(e){var t=e.match(XH);if(!t)return NaN;var n=eG(t[1]),r=eG(t[2]),i=eG(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*TZ+r*MZ+1e3*i:NaN}(o.time),isNaN(c)))return new Date(NaN);if(!o.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(JH);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*TZ+i*MZ):NaN}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var YH={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},KH=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,XH=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,JH=/^([+-])(\d{2})(?::?(\d{2}))?$/;function QH(e){return e?parseInt(e):1}function eG(e){return e&&parseFloat(e.replace(",","."))||0}var tG=[31,null,31,30,31,30,31,31,30,31,30,31];function nG(e){return e%400===0||e%4===0&&e%100!==0}function rG(e,t){return(rG=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oG(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var aG,sG=function(e){return void 0===e&&(e=0),function(){return++e}}(),lG={},cG={},uG=["touchstart","touchmove"];function dG(e,t){var n={};return-1!==uG.indexOf(t)&&aG&&(n.passive=!e.props.preventDefault),n}function pG(e,t){var n,i,o=e.displayName||e.name||"Component";return i=n=function(n){function i(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,a.findDOMNode)(e)},r.enableOnClickOutside=function(){if(!(typeof document>"u"||cG[r._uid])){typeof aG>"u"&&(aG=function(){if(!(typeof window>"u"||"function"!=typeof window.addEventListener)){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),cG[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),lG[r._uid]=function(e){null===r.componentNode||(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&function(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}(e))||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&oG(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)},e.forEach((function(e){document.addEventListener(e,lG[r._uid],dG(iG(r),e))}))}},r.disableOnClickOutside=function(){delete cG[r._uid];var e=lG[r._uid];if(e&&typeof document<"u"){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,dG(iG(r),t))})),delete lG[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=sG(),r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rG(e,t)}(i,n);var s=i.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},s.componentDidMount=function(){if(!(typeof document>"u")&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+o+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},i}(r.Component),n.displayName="OnClickOutside("+o+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},i}var hG=r.createContext(),fG=r.createContext();function mG(e){var t=e.children,n=r.useState(null),i=n[0],o=n[1],a=r.useRef(!1);r.useEffect((function(){return function(){a.current=!0}}),[]);var s=r.useCallback((function(e){a.current||o(e)}),[]);return ih(hG.Provider,{value:i,children:ih(fG.Provider,{value:s,children:t})})}var gG=function(e){return Array.isArray(e)?e[0]:e},yG=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},vG=function(e,t){if("function"==typeof e)return yG(e,t);null!=e&&(e.current=t)},bG=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},_G=typeof window<"u"&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,wG=typeof Element<"u",xG="function"==typeof Map,kG="function"==typeof Set,CG="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function SG(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!SG(e[r],t[r]))return!1;return!0}if(xG&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!SG(r.value[1],t.get(r.value[0])))return!1;return!0}if(kG&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(CG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wG&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==i[r]&&"__v"!==i[r]&&"__o"!==i[r]||!e.$$typeof)&&!SG(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var MG=function(e,t){try{return SG(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}},TG=[],EG=function(){},PG=function(){return Promise.resolve(null)},IG=[];function OG(e){var t=e.placement,n=void 0===t?"bottom":t,i=e.strategy,o=void 0===i?"absolute":i,s=e.modifiers,l=void 0===s?IG:s,c=e.referenceElement,u=e.onFirstUpdate,d=e.innerRef,p=e.children,h=r.useContext(hG),f=r.useState(null),m=f[0],g=f[1],y=r.useState(null),v=y[0],b=y[1];r.useEffect((function(){vG(d,m)}),[d,m]);var _=r.useMemo((function(){return{placement:n,strategy:o,onFirstUpdate:u,modifiers:[].concat(l,[{name:"arrow",enabled:null!=v,options:{element:v}}])}}),[n,o,u,l,v]),w=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||TG},s=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:bG(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:bG(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return MG(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),p=r.useRef();return _G((function(){p.current&&p.current.setOptions(d)}),[d]),_G((function(){if(null!=e&&null!=t){var r=(n.createPopper||W_)(e,t,d);return p.current=r,function(){r.destroy(),p.current=null}}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:l.styles,attributes:l.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}(c||h,m,_),x=w.state,k=w.styles,C=w.forceUpdate,S=w.update,M=r.useMemo((function(){return{ref:g,style:k.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:b},forceUpdate:C||EG,update:S||PG}}),[g,b,n,x,k,S,C]);return gG(p)(M)}var LG=function(){},RG=LG;function jG(e){var t=e.children,n=e.innerRef,i=r.useContext(fG),o=r.useCallback((function(e){vG(n,e),yG(i,e)}),[n,i]);return r.useEffect((function(){return function(){return vG(n,null)}}),[]),r.useEffect((function(){RG(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),gG(t)({ref:o})}function DG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DG(Object(n),!0).forEach((function(t){UG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NG(e){return(NG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KG(r.key),r)}}function BG(e,t,n){return t&&zG(e.prototype,t),n&&zG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UG(e,t,n){return(t=KG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $G(){return $G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$G.apply(this,arguments)}function VG(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZG(e,t)}function qG(e){return(qG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ZG(e,t){return(ZG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function HG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GG(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=qG(e);if(t){var i=qG(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return HG(e)}(this,n)}}function WG(e){return function(e){if(Array.isArray(e))return YG(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return YG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YG(e,t)}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KG(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var XG=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},JG=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},QG={p:JG,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return XG(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",XG(i,t)).replace("{{time}}",JG(o,t))}},eW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function tW(e){var t=e?"string"==typeof e||e instanceof String?WH(e):MV(e):new Date;return nW(t)?t:null}function nW(e,t){return t=t||new Date("1/1/1000"),TV(e)&&!cZ(e,t)}function rW(e,t,n){if("en"===n)return wq(e,t,{awareOfUnicodeTokens:!0});var r=vW(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&yW()&&vW(yW())&&(r=vW(yW())),wq(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function iW(e,t){var n=t.dateFormat,r=t.locale;return e&&rW(e,Array.isArray(n)?n[0]:n,r)||""}function oW(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second;return Zq(qq(function(e,t){CV(2,arguments);var n=MV(e),r=EV(t);return n.setSeconds(r),n}(e,void 0===a?0:a),o),r)}function aW(e,t,n){return Nq(e,{locale:vW(t||yW()),weekStartsOn:n})}function sW(e){return nZ(e)}function lW(e){return iZ(e)}function cW(e){return rZ(e)}function uW(){return Xq(tW())}function dW(e,t){return e&&t?function(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getFullYear()===r.getFullYear()}(e,t):!e&&!t}function pW(e,t){return e&&t?function(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t):!e&&!t}function hW(e,t){return e&&t?function(e,t){CV(2,arguments);var n=rZ(e),r=rZ(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function fW(e,t){return e&&t?function(e,t){CV(2,arguments);var n=Xq(e),r=Xq(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function mW(e,t){return e&&t?function(e,t){CV(2,arguments);var n=MV(e),r=MV(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function gW(e,t,n){var r,i=Xq(t),o=oZ(n);try{r=uZ(e,{start:i,end:o})}catch{r=!1}return r}function yW(){return(typeof window<"u"?window:globalThis).__localeId__}function vW(e){if("string"==typeof e){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function bW(e,t){return rW(Hq(tW(),e),"LLLL",t)}function _W(e,t){return rW(Hq(tW(),e),"LLL",t)}function wW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return PW(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return fW(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return uZ(e,{start:n,end:r})}))||a&&!a.some((function(t){return fW(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return uZ(e,{start:n,end:r})}))||l&&!l(tW(e))||!1}function xW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return uZ(e,{start:n,end:r})})):n&&n.some((function(t){return fW(e,t)}))||!1}function kW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return PW(e,{minDate:nZ(n),maxDate:aZ(r)})||i&&i.some((function(t){return pW(e,t)}))||o&&!o.some((function(t){return pW(e,t)}))||a&&!a(tW(e))||!1}function CW(e,t,n,r){var i=$q(e),o=Bq(e),a=$q(t),s=Bq(t),l=$q(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function SW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return PW(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return hW(e,t)}))||o&&!o.some((function(t){return hW(e,t)}))||a&&!a(tW(e))||!1}function MW(e,t,n){if(!TV(t)||!TV(n))return!1;var r=$q(t),i=$q(n);return r<=e&&i>=e}function TW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return PW(s,{minDate:iZ(n),maxDate:sZ(r)})||i&&i.some((function(e){return dW(s,e)}))||o&&!o.some((function(e){return dW(s,e)}))||a&&!a(tW(s))||!1}function EW(e,t,n,r){var i=$q(e),o=Uq(e),a=$q(t),s=Uq(t),l=$q(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function PW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Qq(e,n)<0||r&&Qq(e,r)>0}function IW(e,t){return t.some((function(t){return Dq(t)===Dq(e)&&jq(t)===jq(e)}))}function OW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&IW(e,n)||r&&!IW(e,r)||i&&!i(e)||!1}function LW(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=tW(),a=Zq(qq(o,jq(e)),Dq(e)),s=Zq(qq(o,jq(n)),Dq(n)),l=Zq(qq(o,jq(r)),Dq(r));try{i=!uZ(a,{start:s,end:l})}catch{i=!1}return i}function RW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Oq(e,1);return n&&eZ(n,i)>0||r&&r.every((function(e){return eZ(e,i)>0}))||!1}function jW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Eq(e,1);return n&&eZ(i,n)>0||r&&r.every((function(e){return eZ(i,e)>0}))||!1}function DW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Lq(e,1);return n&&tZ(n,i)>0||r&&r.every((function(e){return tZ(e,i)>0}))||!1}function AW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Iq(e,1);return n&&tZ(i,n)>0||r&&r.every((function(e){return tZ(i,e)>0}))||!1}function NW(e){var t=e.minDate,n=e.includeDates;return n&&t?Yq(n.filter((function(e){return Qq(e,t)>=0}))):n?Yq(n):t}function FW(e){var t=e.maxDate,n=e.includeDates;return n&&t?Kq(n.filter((function(e){return Qq(e,t)<=0}))):n?Kq(n):t}function zW(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(SV(o)){var a=rW(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===NG(o)){var l=Object.keys(o),c=l[0],u=o[l[0]];if("string"==typeof c&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var h=rW(u[d],"MM.dd.yyyy"),f=n.get(h)||[];f.includes(c)||(f.push(c),n.set(h,f))}}}return n}function BW(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=kq(Sq(e,Dq(i[s])),jq(i[s])),c=kq(e,(n+1)*r);lZ(l,t)&&cZ(l,c)&&a.push(i[s])}return a}function UW(e){return e<10?"0".concat(e):"".concat(e)}function $W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil($q(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function VW(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=$q(n)<=a),r&&s&&(s=$q(r)>=a),s&&i.push(a)}return i}var qW=pG(function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;FG(this,n),UG(HG(i=t.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return oh("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",onClick:i.onChange.bind(HG(i),t),"aria-selected":e===t?"true":void 0,children:[e===t?ih("span",{className:"react-datepicker__year-option--selected",children:"\u2713"}):"",t]},t)})),n=i.props.minDate?$q(i.props.minDate):null,r=i.props.maxDate?$q(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(ih("div",{className:"react-datepicker__year-option",onClick:i.incrementYears,children:ih("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"})},"upcoming")),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(ih("div",{className:"react-datepicker__year-option",onClick:i.decrementYears,children:ih("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"})},"previous")),t})),UG(HG(i),"onChange",(function(e){i.props.onChange(e)})),UG(HG(i),"handleClickOutside",(function(){i.props.onCancel()})),UG(HG(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),UG(HG(i),"incrementYears",(function(){return i.shiftYears(1)})),UG(HG(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:VW(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=(0,r.createRef)(),i}return BG(n,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=kV({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ih("div",{className:e,ref:this.dropdownRef,children:this.renderOptions()})}}]),n}()),ZW=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return UG(HG(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),UG(HG(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?$q(e.props.minDate):1900,n=e.props.maxDate?$q(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(ih("option",{value:i,children:i},i));return r})),UG(HG(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),UG(HG(e),"renderSelectMode",(function(){return ih("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange,children:e.renderSelectOptions()})})),UG(HG(e),"renderReadView",(function(t){return oh("div",{style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)},children:[ih("span",{className:"react-datepicker__year-read-view--down-arrow"}),ih("span",{className:"react-datepicker__year-read-view--selected-year",children:e.props.year})]},"read")})),UG(HG(e),"renderDropdown",(function(){return r.createElement(qW,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),UG(HG(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),UG(HG(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),UG(HG(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),UG(HG(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),UG(HG(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),UG(HG(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return BG(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ih("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode),children:e})}}]),n}(),HW=pG(function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return UG(HG(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),UG(HG(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return oh("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",onClick:e.onChange.bind(HG(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0,children:[e.isSelectedMonth(n)?ih("span",{className:"react-datepicker__month-option--selected",children:"\u2713"}):"",t]},t)}))})),UG(HG(e),"onChange",(function(t){return e.props.onChange(t)})),UG(HG(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return BG(n,[{key:"render",value:function(){return ih("div",{className:"react-datepicker__month-dropdown",children:this.renderOptions()})}}]),n}()),GW=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return UG(HG(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),UG(HG(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return ih("option",{value:t,children:e},t)}))})),UG(HG(e),"renderSelectMode",(function(t){return ih("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)},children:e.renderSelectOptions(t)})})),UG(HG(e),"renderReadView",(function(t,n){return oh("div",{style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown,children:[ih("span",{className:"react-datepicker__month-read-view--down-arrow"}),ih("span",{className:"react-datepicker__month-read-view--selected-month",children:n[e.props.month]})]},"read")})),UG(HG(e),"renderDropdown",(function(t){return ih(HW,{month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown},"dropdown")})),UG(HG(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),UG(HG(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),UG(HG(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return BG(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return _W(e,t.props.locale)}:function(e){return bW(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ih("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode),children:e})}}]),n}();function WW(e,t){for(var n=[],r=sW(e),i=sW(t);!lZ(r,i);)n.push(tW(r)),r=Eq(r,1);return n}var YW,KW=pG(function(e){VG(n,r.Component);var t=GG(n);function n(e){var r;return FG(this,n),UG(HG(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Vq(e),n=dW(r.props.date,e)&&pW(r.props.date,e);return oh("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",onClick:r.onChange.bind(HG(r),t),"aria-selected":n?"true":void 0,children:[n?ih("span",{className:"react-datepicker__month-year-option--selected",children:"\u2713"}):"",rW(e,r.props.dateFormat,r.props.locale)]},t)}))})),UG(HG(r),"onChange",(function(e){return r.props.onChange(e)})),UG(HG(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:WW(r.props.minDate,r.props.maxDate)},r}return BG(n,[{key:"render",value:function(){var e=kV({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ih("div",{className:e,children:this.renderOptions()})}}]),n}()),XW=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return UG(HG(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),UG(HG(e),"renderSelectOptions",(function(){for(var t=sW(e.props.minDate),n=sW(e.props.maxDate),r=[];!lZ(t,n);){var i=Vq(t);r.push(ih("option",{value:i,children:rW(t,e.props.dateFormat,e.props.locale)},i)),t=Eq(t,1)}return r})),UG(HG(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),UG(HG(e),"renderSelectMode",(function(){return ih("select",{value:Vq(sW(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange,children:e.renderSelectOptions()})})),UG(HG(e),"renderReadView",(function(t){var n=rW(e.props.date,e.props.dateFormat,e.props.locale);return oh("div",{style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)},children:[ih("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ih("span",{className:"react-datepicker__month-year-read-view--selected-month-year",children:n})]},"read")})),UG(HG(e),"renderDropdown",(function(){return ih(KW,{date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale},"dropdown")})),UG(HG(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),UG(HG(e),"onChange",(function(t){e.toggleDropdown();var n=tW(parseInt(t));dW(e.props.date,n)&&pW(e.props.date,n)||e.props.onChange(n)})),UG(HG(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return BG(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ih("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode),children:e})}}]),n}(),JW=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return UG(HG(e=t.call.apply(t,[this].concat(o))),"dayEl",r.createRef()),UG(HG(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),UG(HG(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),UG(HG(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),UG(HG(e),"isSameDay",(function(t){return fW(e.props.day,t)})),UG(HG(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),UG(HG(e),"isDisabled",(function(){return wW(e.props.day,e.props)})),UG(HG(e),"isExcluded",(function(){return xW(e.props.day,e.props)})),UG(HG(e),"getHighLightedClass",(function(){var t=e.props,n=t.day,r=t.highlightDates;if(!r)return!1;var i=rW(n,"MM.dd.yyyy");return r.get(i)})),UG(HG(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&gW(n,r,i)})),UG(HG(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||o||a)||!u||!s&&e.isDisabled())&&(i&&c&&(cZ(u,c)||mW(u,c))?gW(r,u,c):(o&&l&&(lZ(u,l)||mW(u,l))||!(!a||!l||c||!lZ(u,l)&&!mW(u,l)))&&gW(r,l,u))})),UG(HG(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return fW(r,o?a:i)})),UG(HG(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=n.selectsRange,s=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return fW(r,o||a?s:i)})),UG(HG(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&fW(r,n)})),UG(HG(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&fW(i,n)})),UG(HG(e),"isWeekend",(function(){var t=function(e){return CV(1,arguments),MV(e).getDay()}(e.props.day);return 0===t||6===t})),UG(HG(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Bq(e.props.day)})),UG(HG(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Bq(e.props.day)+1)%12===e.props.month})),UG(HG(e),"isCurrentDay",(function(){return e.isSameDay(tW())})),UG(HG(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),UG(HG(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return kV("react-datepicker__day",n,"react-datepicker__day--"+rW(e.props.day,"ddd",undefined),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),UG(HG(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(rW(n,"PPPP",e.props.locale))})),UG(HG(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&fW(i,r)?0:-1})),UG(HG(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(n=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(n=!1)),n&&e.dayEl.current.focus({preventScroll:!0})})),UG(HG(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Aq(e.props.day),e.props.day):Aq(e.props.day)})),UG(HG(e),"render",(function(){return ih("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange(),children:e.renderDayContents()})})),e}return BG(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(),QW=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return UG(HG(e=t.call.apply(t,[this].concat(i))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return BG(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return ih("div",{className:kV(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,children:t})}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),eY=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return UG(HG(e=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),UG(HG(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),UG(HG(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),UG(HG(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):function(e,t){var n=yW()&&vW(yW());return function(e){CV(1,arguments);var t=MV(e),n=Fq(t).getTime()-zq(t).getTime();return Math.round(n/6048e5)+1}(e,n?{locale:n}:null)}(t)})),UG(HG(e),"renderDays",(function(){var t=aW(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],i=e.formatWeekNumber(t);if(e.props.showWeekNumber){var o=e.props.onWeekSelect?e.handleWeekClick.bind(HG(e),t,i):void 0;n.push(ih(QW,{weekNumber:i,onClick:o,ariaLabelPrefix:e.props.ariaLabelPrefix},"W"))}return n.concat([0,1,2,3,4,5,6].map((function(n){var i=Mq(t,n);return r.createElement(JW,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:i.valueOf(),day:i,month:e.props.month,onClick:e.handleDayClick.bind(HG(e),i),onMouseEnter:e.handleDayMouseEnter.bind(HG(e),i),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return BG(n,[{key:"render",value:function(){return ih("div",{className:"react-datepicker__week",children:this.renderDays()})}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),tY="two_columns",nY="three_columns",rY="four_columns",iY=(UG(YW={},tY,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),UG(YW,nY,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),UG(YW,rY,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),YW);function oY(e,t){return e?rY:t?tY:nY}var aY=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return UG(HG(e=t.call.apply(t,[this].concat(o))),"MONTH_REFS",WG(Array(12)).map((function(){return r.createRef()}))),UG(HG(e),"QUARTER_REFS",WG(Array(4)).map((function(){return r.createRef()}))),UG(HG(e),"isDisabled",(function(t){return wW(t,e.props)})),UG(HG(e),"isExcluded",(function(t){return xW(t,e.props)})),UG(HG(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),UG(HG(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),UG(HG(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),UG(HG(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&pW(Hq(r,t),i)})),UG(HG(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&hW(Gq(r,t),i)})),UG(HG(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&pW(Hq(r,t),o)})),UG(HG(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&hW(Gq(r,t),o)})),UG(HG(e),"isInSelectingRangeMonth",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?CW(u,c,t,i):(a&&l||!(!s||!l||c))&&CW(l,u,t,i))})),UG(HG(e),"isSelectingMonthRangeStart",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.startDate,a=r.selectsStart,s=Hq(i,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return pW(s,a?l:o)})),UG(HG(e),"isSelectingMonthRangeEnd",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.endDate,a=r.selectsEnd,s=r.selectsRange,l=Hq(i,t),c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return pW(l,a||s?c:o)})),UG(HG(e),"isInSelectingRangeQuarter",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?EW(u,c,t,i):(a&&l||!(!s||!l||c))&&EW(l,u,t,i))})),UG(HG(e),"isWeekInMonth",(function(t){var n=e.props.day,r=Mq(t,6);return pW(t,n)||pW(r,n)})),UG(HG(e),"isCurrentMonth",(function(e,t){return $q(e)===$q(tW())&&t===Bq(tW())})),UG(HG(e),"isCurrentQuarter",(function(e,t){return $q(e)===$q(tW())&&t===Uq(tW())})),UG(HG(e),"isSelectedMonth",(function(e,t,n){return Bq(n)===t&&$q(e)===$q(n)})),UG(HG(e),"isSelectedQuarter",(function(e,t,n){return Uq(e)===t&&$q(e)===$q(n)})),UG(HG(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,o=aW(sW(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(ih(eY,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,day:o,month:Bq(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart},r)),!i;){r++,o=Tq(o,1);var a=n&&r>=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),UG(HG(e),"onMonthClick",(function(t,n){e.handleDayClick(sW(Hq(e.props.day,n)),t)})),UG(HG(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(sW(Hq(e.props.day,t)))})),UG(HG(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),UG(HG(e),"onMonthKeyDown",(function(t,n){var r=e.props,i=r.selected,o=r.preSelection,a=r.disabledKeyboardNavigation,s=r.showTwoColumnMonthYearPicker,l=r.showFourColumnMonthYearPicker,c=r.setPreSelection,u=t.key;if("Tab"!==u&&t.preventDefault(),!a){var d=oY(l,s),p=iY[d].verticalNavigationOffset,h=iY[d].grid;switch(u){case"Enter":e.onMonthClick(t,n),c(i);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,Eq(o,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Oq(o,1));break;case"ArrowUp":e.handleMonthNavigation(h[0].includes(n)?n+12-p:n-p,Oq(o,p));break;case"ArrowDown":e.handleMonthNavigation(h[h.length-1].includes(n)?n-12+p:n+p,Eq(o,p))}}})),UG(HG(e),"onQuarterClick",(function(t,n){e.handleDayClick(cW(Gq(e.props.day,n)),t)})),UG(HG(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(cW(Gq(e.props.day,t)))})),UG(HG(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),UG(HG(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,Pq(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,function(e,t){return CV(2,arguments),Pq(e,-EV(t))}(e.props.preSelection,1))}})),UG(HG(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=n.excludeDates,p=n.includeDates,h=u?u(Hq(r,t)):void 0,f=Hq(r,t);return kV("react-datepicker__month-text","react-datepicker__month-".concat(t),h,{"react-datepicker__month-text--disabled":(s||l||d||p)&&kW(f,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Bq(c)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":CW(i,o,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),UG(HG(e),"getTabIndex",(function(t){var n=Bq(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),UG(HG(e),"getQuarterTabIndex",(function(t){var n=Uq(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),UG(HG(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=Hq(n.day,t),l=e.isDisabled(s)||e.isExcluded(s)?a:i;return"".concat(l," ").concat(rW(s,"MMMM yyyy"))})),UG(HG(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection;return kV("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(s||l)&&SW(Gq(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":Uq(c)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":EW(i,o,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),UG(HG(e),"getMonthContent",(function(t){var n=e.props,r=n.showFullMonthYearPicker,i=n.renderMonthContent,o=n.locale,a=_W(t,o),s=bW(t,o);return i?i(t,a,s):r?s:a})),UG(HG(e),"getQuarterContent",(function(t){var n,r,i=e.props,o=i.renderQuarterContent,a=(n=t,r=i.locale,rW(Gq(tW(),n),"QQQ",r));return o?o(t,a):a})),UG(HG(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,i=t.day,o=t.selected;return iY[oY(r,n)].grid.map((function(t,n){return ih("div",{className:"react-datepicker__month-wrapper",children:t.map((function(t,n){return ih("div",{ref:e.MONTH_REFS[t],onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(i,t)?"date":void 0,"aria-selected":e.isSelectedMonth(i,t,o),children:e.getMonthContent(t)},n)}))},n)}))})),UG(HG(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ih("div",{className:"react-datepicker__quarter-wrapper",children:[1,2,3,4].map((function(t,i){return ih("div",{ref:e.QUARTER_REFS[i],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0,children:e.getQuarterContent(t)},i)}))})})),UG(HG(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker;return kV("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a})})),e}return BG(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return ih("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(rW(r,"yyyy-MM")),role:"listbox",children:t?this.renderMonths():n?this.renderQuarters():this.renderWeeks()})}}]),n}(),sY=function(e){VG(n,r.Component);var t=GG(n);function n(){var e;FG(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return UG(HG(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),UG(HG(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&LW(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&OW(t,e.props)||e.props.onChange(t)})),UG(HG(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===Dq(t)&&r===jq(t)})),UG(HG(e),"liClasses",(function(t,n,r){var i=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&i.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&LW(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&OW(t,e.props))&&i.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*Dq(t)+jq(t))%e.props.intervals!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")})),UG(HG(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),UG(HG(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,i=Xq(tW(e.props.selected)),o=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),s=e.props.selected||e.props.openToDate||tW(),l=Dq(s),c=jq(s),u=Zq(qq(i,c),l),d=0;d<o;d++){var p=kq(i,d*r);if(t.push(p),a){var h=BW(i,p,d,r,a);t=t.concat(h)}}return t.map((function(t,r){return ih("li",{onClick:e.handleClick.bind(HG(e),t),className:e.liClasses(t,l,c),ref:function(n){(cZ(t,u)||mW(t,u))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,l,c)?"true":void 0,children:rW(t,n,e.props.locale)},r)}))})),e}return BG(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return oh("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":""),children:[ih("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t},children:ih("div",{className:"react-datepicker-time__header",children:this.props.timeCaption})}),ih("div",{className:"react-datepicker__time",children:ih("div",{className:"react-datepicker__time-box",children:ih("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0",children:this.renderTimes()})})})]})}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();UG(sY,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var lY=function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;return FG(this,n),UG(HG(i=t.call(this,e)),"YEAR_REFS",WG(Array(i.props.yearItemNumber)).map((function(){return r.createRef()}))),UG(HG(i),"isDisabled",(function(e){return wW(e,i.props)})),UG(HG(i),"isExcluded",(function(e){return xW(e,i.props)})),UG(HG(i),"selectingDate",(function(){var e;return null!==(e=i.props.selectingDate)&&void 0!==e?e:i.props.preSelection})),UG(HG(i),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(HG(i));window.requestAnimationFrame(t)})),UG(HG(i),"handleYearClick",(function(e,t){i.props.onDayClick&&i.props.onDayClick(e,t)})),UG(HG(i),"handleYearNavigation",(function(e,t){var n=i.props,r=n.date,o=n.yearItemNumber,a=$W(r,o).startPeriod;i.isDisabled(t)||i.isExcluded(t)||(i.props.setPreSelection(t),e-a==-1?i.updateFocusOnPaginate(o-1):e-a===o?i.updateFocusOnPaginate(0):i.YEAR_REFS[e-a].current.focus())})),UG(HG(i),"isSameDay",(function(e,t){return fW(e,t)})),UG(HG(i),"isCurrentYear",(function(e){return e===$q(tW())})),UG(HG(i),"isRangeStart",(function(e){return i.props.startDate&&i.props.endDate&&dW(Wq(tW(),e),i.props.startDate)})),UG(HG(i),"isRangeEnd",(function(e){return i.props.startDate&&i.props.endDate&&dW(Wq(tW(),e),i.props.endDate)})),UG(HG(i),"isInRange",(function(e){return MW(e,i.props.startDate,i.props.endDate)})),UG(HG(i),"isInSelectingRange",(function(e){var t=i.props,n=t.selectsStart,r=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||r||o)||!i.selectingDate())&&(n&&s?MW(e,i.selectingDate(),s):(r&&a||!(!o||!a||s))&&MW(e,a,i.selectingDate()))})),UG(HG(i),"isSelectingRangeStart",(function(e){if(!i.isInSelectingRange(e))return!1;var t=i.props,n=t.startDate,r=t.selectsStart;return dW(Wq(tW(),e),r?i.selectingDate():n)})),UG(HG(i),"isSelectingRangeEnd",(function(e){if(!i.isInSelectingRange(e))return!1;var t=i.props,n=t.endDate,r=t.selectsEnd,o=t.selectsRange;return dW(Wq(tW(),e),r||o?i.selectingDate():n)})),UG(HG(i),"isKeyboardSelected",(function(e){var t=lW(Wq(i.props.date,e));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!fW(t,lW(i.props.selected))&&fW(t,lW(i.props.preSelection))})),UG(HG(i),"onYearClick",(function(e,t){var n=i.props.date;i.handleYearClick(lW(Wq(n,t)),e)})),UG(HG(i),"onYearKeyDown",(function(e,t){var n=e.key;if(!i.props.disabledKeyboardNavigation)switch(n){case"Enter":i.onYearClick(e,t),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(t+1,Iq(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(t-1,Lq(i.props.preSelection,1))}})),UG(HG(i),"getYearClassNames",(function(e){var t=i.props,n=t.minDate,r=t.maxDate,o=t.selected,a=t.excludeDates,s=t.includeDates,l=t.filterDate;return kV("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===$q(o),"react-datepicker__year-text--disabled":(n||r||a||s||l)&&TW(e,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(e),"react-datepicker__year-text--range-start":i.isRangeStart(e),"react-datepicker__year-text--range-end":i.isRangeEnd(e),"react-datepicker__year-text--in-range":i.isInRange(e),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(e),"react-datepicker__year-text--today":i.isCurrentYear(e)})})),UG(HG(i),"getYearTabIndex",(function(e){return i.props.disabledKeyboardNavigation?"-1":e===$q(i.props.preSelection)?"0":"-1"})),UG(HG(i),"getYearContainerClassNames",(function(){var e=i.props,t=e.selectingDate,n=e.selectsStart,r=e.selectsEnd,o=e.selectsRange;return kV("react-datepicker__year",{"react-datepicker__year--selecting-range":t&&(n||r||o)})})),UG(HG(i),"getYearContent",(function(e){return i.props.renderYearContent?i.props.renderYearContent(e):e})),i}return BG(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,o=n.onYearMouseEnter,a=n.onYearMouseLeave,s=$W(r,i),l=s.startPeriod,c=s.endPeriod,u=function(n){t.push(ih("div",{ref:e.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),onMouseEnter:function(e){return o(e,n)},onMouseLeave:function(e){return a(e,n)},"aria-current":e.isCurrentYear(n)?"date":void 0,children:e.getYearContent(n)},n))},d=l;d<=c;d++)u(d);return ih("div",{className:this.getYearContainerClassNames(),children:ih("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate,children:t})})}}]),n}(),cY=function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;return FG(this,n),UG(HG(i=t.call(this,e)),"onTimeChange",(function(e){i.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),i.props.onChange(t)})),UG(HG(i),"renderTimeInput",(function(){var e=i.state.time,t=i.props,n=t.date,o=t.timeString,a=t.customTimeInput;return a?r.cloneElement(a,{date:n,value:e,onChange:i.onTimeChange}):ih("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){i.onTimeChange(e.target.value||o)}})})),i.state={time:i.props.timeString},i}return BG(n,[{key:"render",value:function(){return oh("div",{className:"react-datepicker__input-time-container",children:[ih("div",{className:"react-datepicker-time__caption",children:this.props.timeInputLabel}),ih("div",{className:"react-datepicker-time__input-container",children:ih("div",{className:"react-datepicker-time__input",children:this.renderTimeInput()})})]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}();function uY(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps;return oh("div",{className:t,children:[r&&ih("div",{...$G({className:"react-datepicker__triangle"},void 0===i?{}:i)}),n]})}var dY=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],pY=function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;return FG(this,n),UG(HG(i=t.call(this,e)),"handleClickOutside",(function(e){i.props.onClickOutside(e)})),UG(HG(i),"setClickOutsideRef",(function(){return i.containerRef.current})),UG(HG(i),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return dY.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&i.props.onDropdownFocus()})),UG(HG(i),"getDateInView",(function(){var e=i.props,t=e.preSelection,n=e.selected,r=e.openToDate,o=NW(i.props),a=FW(i.props),s=tW();return r||n||t||(o&&cZ(s,o)?o:a&&lZ(s,a)?a:s)})),UG(HG(i),"increaseMonth",(function(){i.setState((function(e){return{date:Eq(e.date,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),UG(HG(i),"decreaseMonth",(function(){i.setState((function(e){return{date:Oq(e.date,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),UG(HG(i),"handleDayClick",(function(e,t,n){i.props.onSelect(e,t,n),i.props.setPreSelection&&i.props.setPreSelection(e)})),UG(HG(i),"handleDayMouseEnter",(function(e){i.setState({selectingDate:e}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(e)})),UG(HG(i),"handleMonthMouseLeave",(function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()})),UG(HG(i),"handleYearMouseEnter",(function(e,t){i.setState({selectingDate:Wq(tW(),t)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(e,t)})),UG(HG(i),"handleYearMouseLeave",(function(e,t){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(e,t)})),UG(HG(i),"handleYearChange",(function(e){i.props.onYearChange&&(i.props.onYearChange(e),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(e),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(e)})),UG(HG(i),"handleMonthChange",(function(e){i.handleCustomMonthChange(e),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(e),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(e)})),UG(HG(i),"handleCustomMonthChange",(function(e){i.props.onMonthChange&&(i.props.onMonthChange(e),i.setState({isRenderAriaLiveMessage:!0}))})),UG(HG(i),"handleMonthYearChange",(function(e){i.handleYearChange(e),i.handleMonthChange(e)})),UG(HG(i),"changeYear",(function(e){i.setState((function(t){return{date:Wq(t.date,e)}}),(function(){return i.handleYearChange(i.state.date)}))})),UG(HG(i),"changeMonth",(function(e){i.setState((function(t){return{date:Hq(t.date,e)}}),(function(){return i.handleMonthChange(i.state.date)}))})),UG(HG(i),"changeMonthYear",(function(e){i.setState((function(t){return{date:Wq(Hq(t.date,Bq(e)),$q(e))}}),(function(){return i.handleMonthYearChange(i.state.date)}))})),UG(HG(i),"header",(function(){var e=aW(arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),t=[];return i.props.showWeekNumbers&&t.push(ih("div",{className:"react-datepicker__day-name",children:i.props.weekLabel||"#"},"W")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=Mq(e,t),r=i.formatWeekday(n,i.props.locale),o=i.props.weekDayClassName?i.props.weekDayClassName(n):void 0;return ih("div",{className:kV("react-datepicker__day-name",o),children:r},t)})))})),UG(HG(i),"formatWeekday",(function(e,t){return i.props.formatWeekDay?(n=e,(0,i.props.formatWeekDay)(rW(n,"EEEE",t))):i.props.useWeekdaysShort?function(e,t){return rW(e,"EEE",t)}(e,t):function(e,t){return rW(e,"EEEEEE",t)}(e,t);var n})),UG(HG(i),"decreaseYear",(function(){i.setState((function(e){return{date:Lq(e.date,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),UG(HG(i),"clearSelectingDate",(function(){i.setState({selectingDate:null})})),UG(HG(i),"renderPreviousButton",(function(){if(!i.props.renderCustomHeader){var e;switch(!0){case i.props.showMonthYearPicker:e=DW(i.state.date,i.props);break;case i.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?12:r,o=$W(lW(Lq(e,i)),i).endPeriod,a=n&&$q(n);return a&&a>o||!1}(i.state.date,i.props);break;default:e=RW(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!e)&&!i.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(n=i.decreaseYear),e&&i.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,o=i.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=i.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Previous Month":c,d=l.previousYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Previous Year":d;return ih("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:i.props.handleOnKeyDown,"aria-label":r?p:u,children:ih("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" "),children:r?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel})})}}})),UG(HG(i),"increaseYear",(function(){i.setState((function(e){return{date:Iq(e.date,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),UG(HG(i),"renderNextButton",(function(){if(!i.props.renderCustomHeader){var e;switch(!0){case i.props.showMonthYearPicker:e=AW(i.state.date,i.props);break;case i.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?12:r,o=$W(Iq(e,i),i).startPeriod,a=n&&$q(n);return a&&a<o||!1}(i.state.date,i.props);break;default:e=jW(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!e)&&!i.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(n=i.increaseYear),e&&i.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,o=i.props,a=o.nextMonthButtonLabel,s=o.nextYearButtonLabel,l=i.props,c=l.nextMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Next Month":c,d=l.nextYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Next Year":d;return ih("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:i.props.handleOnKeyDown,"aria-label":r?p:u,children:ih("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" "),children:r?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel})})}}})),UG(HG(i),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,t=["react-datepicker__current-month"];return i.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ih("div",{className:t.join(" "),children:rW(e,i.props.dateFormat,i.props.locale)})})),UG(HG(i),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showYearDropdown&&!e)return ih(ZW,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:$q(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})})),UG(HG(i),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthDropdown&&!e)return r.createElement(GW,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:Bq(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})})),UG(HG(i),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthYearDropdown&&!e)return ih(XW,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})})),UG(HG(i),"handleTodayButtonClick",(function(e){i.props.onSelect(uW(),e),i.props.setPreSelection&&i.props.setPreSelection(uW())})),UG(HG(i),"renderTodayButton",(function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return ih("div",{className:"react-datepicker__today-button",onClick:function(e){return i.handleTodayButtonClick(e)},children:i.props.todayButton})})),UG(HG(i),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return oh("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":""),children:[i.renderCurrentMonth(t),oh("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus,children:[i.renderMonthDropdown(0!==n),i.renderMonthYearDropdown(0!==n),i.renderYearDropdown(0!==n)]}),ih("div",{className:"react-datepicker__day-names",children:i.header(t)})]})})),UG(HG(i),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var r=RW(i.state.date,i.props),o=jW(i.state.date,i.props),a=DW(i.state.date,i.props),s=AW(i.state.date,i.props),l=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return oh("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus,children:[i.props.renderCustomHeader(AG(AG({},i.state),{},{customHeaderCount:n,monthDate:t,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:r,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&ih("div",{className:"react-datepicker__day-names",children:i.header(t)})]})})),UG(HG(i),"renderYearHeader",(function(){var e=i.state.date,t=i.props,n=t.showYearPicker,r=$W(e,t.yearItemNumber),o=r.startPeriod,a=r.endPeriod;return ih("div",{className:"react-datepicker__header react-datepicker-year-header",children:n?"".concat(o," - ").concat(a):$q(e)})})),UG(HG(i),"renderHeader",(function(e){switch(!0){case void 0!==i.props.renderCustomHeader:return i.renderCustomHeader(e);case i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker:return i.renderYearHeader(e);default:return i.renderDefaultHeader(e)}})),UG(HG(i),"renderMonths",(function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var e=[],t=i.props.showPreviousMonths?i.props.monthsShown-1:0,n=Oq(i.state.date,t),r=0;r<i.props.monthsShown;++r){var o=Eq(n,r-i.props.monthSelectedIn),a="month-".concat(r),s=r<i.props.monthsShown-1,l=r>0;e.push(oh("div",{ref:function(e){i.monthContainer=e},className:"react-datepicker__month-container",children:[i.renderHeader({monthDate:o,i:r}),ih(aY,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:o,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:r,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:s,monthShowsDuplicateDaysStart:l})]},a))}return e}})),UG(HG(i),"renderYears",(function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?oh("div",{className:"react-datepicker__year--container",children:[i.renderHeader(),ih(lY,{...$G({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave})})]}):void 0})),UG(HG(i),"renderTimeSection",(function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return ih(sY,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})})),UG(HG(i),"renderInputTimeSection",(function(){var e=new Date(i.props.selected),t=nW(e)&&Boolean(i.props.selected)?"".concat(UW(e.getHours()),":").concat(UW(e.getMinutes())):"";if(i.props.showTimeInput)return ih(cY,{date:e,timeString:t,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})})),UG(HG(i),"renderAriaLiveRegion",(function(){var e,t=$W(i.state.date,i.props.yearItemNumber),n=t.startPeriod,r=t.endPeriod;return e=i.props.showYearPicker?"".concat(n," - ").concat(r):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?$q(i.state.date):"".concat(bW(Bq(i.state.date),i.props.locale)," ").concat($q(i.state.date)),ih("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live",children:i.state.isRenderAriaLiveMessage&&e})})),UG(HG(i),"renderChildren",(function(){if(i.props.children)return ih("div",{className:"react-datepicker__children-container",children:i.props.children})})),i.containerRef=r.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return BG(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||fW(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!fW(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!pW(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||uY;return r.createElement("div",{ref:this.containerRef},r.createElement(e,{className:kV("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),hY=function(e){VG(n,r.Component);var t=GG(n);function n(e){var r;return FG(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return BG(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return a.createPortal(this.props.children,this.el)}}]),n}(),fY=function(e){return!e.disabled&&-1!==e.tabIndex},mY=function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;return FG(this,n),UG(HG(i=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(fY)})),UG(HG(i),"handleFocusStart",(function(){var e=i.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),UG(HG(i),"handleFocusEnd",(function(){var e=i.getTabChildren();e&&e.length>1&&e[0].focus()})),i.tabLoopRef=r.createRef(),i}return BG(n,[{key:"render",value:function(){return this.props.enableTabLoop?oh("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef,children:[ih("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ih("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})]}):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),gY=function(e){VG(n,r.Component);var t=GG(n);function n(){return FG(this,n),t.apply(this,arguments)}return BG(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,i=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,s=t.popperModifiers,l=t.popperPlacement,c=t.popperProps,u=t.targetComponent,d=t.enableTabLoop,p=t.popperOnKeyDown,h=t.portalId,f=t.portalHost;if(!o){var m=kV("react-datepicker-popper",n);e=r.createElement(OG,$G({modifiers:s,placement:l},c),(function(e){var t=e.ref,n=e.style,i=e.placement,o=e.arrowProps;return ih(mY,{enableTabLoop:d,children:ih("div",{ref:t,style:n,className:m,"data-placement":i,onKeyDown:p,children:r.cloneElement(a,{arrowProps:o})})})}))}this.props.popperContainer&&(e=r.createElement(this.props.popperContainer,{},e)),h&&!o&&(e=ih(hY,{portalId:h,portalHost:f,children:e}));var g=kV("react-datepicker-wrapper",i);return r.createElement(mG,{className:"react-datepicker-manager"},r.createElement(jG,null,(function(e){var t=e.ref;return ih("div",{ref:t,className:g,children:u})})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),yY="react-datepicker-ignore-onclickoutside",vY=pG(pY),bY="Date input not valid.",_Y=(function(e){VG(n,r.Component);var t=GG(n);function n(e){var i;return FG(this,n),UG(HG(i=t.call(this,e)),"getPreSelection",(function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:tW()})),UG(HG(i),"calcInitialState",(function(){var e,t=i.getPreSelection(),n=NW(i.props),r=FW(i.props),o=n&&cZ(t,Xq(n))?n:r&&lZ(t,oZ(r))?r:t;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=i.props.selectsRange?i.props.startDate:i.props.selected)&&void 0!==e?e:o,highlightDates:zW(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),UG(HG(i),"clearPreventFocusTimeout",(function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)})),UG(HG(i),"setFocus",(function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})})),UG(HG(i),"setBlur",(function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()})),UG(HG(i),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.setState({open:e,preSelection:e&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:wY},(function(){e||i.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&i.setBlur(),i.setState({inputValue:null})}))}))})),UG(HG(i),"inputOk",(function(){return SV(i.state.preSelection)})),UG(HG(i),"isCalendarOpen",(function(){return void 0===i.props.open?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open})),UG(HG(i),"handleFocus",(function(e){i.state.preventFocus||(i.props.onFocus(e),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})})),UG(HG(i),"cancelFocusInput",(function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null})),UG(HG(i),"deferFocusInput",(function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout((function(){return i.setFocus()}),1)})),UG(HG(i),"handleDropdownFocus",(function(){i.cancelFocusInput()})),UG(HG(i),"handleBlur",(function(e){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(e),i.setState({focused:!1})})),UG(HG(i),"handleCalendarClickOutside",(function(e){i.props.inline||i.setOpen(!1),i.props.onClickOutside(e),i.props.withPortal&&e.preventDefault()})),UG(HG(i),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(HG(i),t),"function"==typeof r.isDefaultPrevented&&!r.isDefaultPrevented())){i.setState({inputValue:r.target.value,lastPreSelectChange:_Y});var o,a,s,l,c,u,d,p,h=(o=r.target.value,a=i.props.dateFormat,s=i.props.locale,l=i.props.strictParsing,c=i.props.minDate,u=null,d=vW(s)||vW(yW()),p=!0,Array.isArray(a)?(a.forEach((function(e){var t=GH(o,e,new Date,{locale:d});l&&(p=nW(t,c)&&o===rW(t,e,s)),nW(t,c)&&p&&(u=t)})),u):(u=GH(o,a,new Date,{locale:d}),l?p=nW(u)&&o===rW(u,a,s):nW(u)||(a=a.match(eW).map((function(e){var t=e[0];return"p"===t||"P"===t?d?(0,QG[t])(e,d.formatLong):t:e})).join(""),o.length>0&&(u=GH(o,a.slice(0,o.length),new Date)),nW(u)||(u=new Date(o))),nW(u)&&p?u:null));i.props.showTimeSelectOnly&&i.props.selected&&!fW(h,i.props.selected)&&(h=function(e,t){if(CV(2,arguments),"object"!==kD(t)||null===t)throw new RangeError("values parameter must be an object");var n=MV(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Hq(n,t.month)),null!=t.date&&n.setDate(EV(t.date)),null!=t.hours&&n.setHours(EV(t.hours)),null!=t.minutes&&n.setMinutes(EV(t.minutes)),null!=t.seconds&&n.setSeconds(EV(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(EV(t.milliseconds)),n)}(i.props.selected,null==h?{hours:Dq(i.props.selected),minutes:jq(i.props.selected),seconds:Rq(i.props.selected)}:{hours:Dq(h),minutes:jq(h),seconds:Rq(h)})),!h&&r.target.value||i.setSelected(h,r,!0)}})),UG(HG(i),"handleSelect",(function(e,t,n){if(i.setState({preventFocus:!0},(function(){return i.preventFocusTimeout=setTimeout((function(){return i.setState({preventFocus:!1})}),50),i.preventFocusTimeout})),i.props.onChangeRaw&&i.props.onChangeRaw(t),i.setSelected(e,t,!1,n),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(e);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var r=i.props,o=r.startDate,a=r.endDate;!o||a||cZ(e,o)||i.setOpen(!1)}})),UG(HG(i),"setSelected",(function(e,t,n,r){var o=e;if(i.props.showYearPicker){if(null!==o&&TW($q(o),i.props))return}else if(i.props.showMonthYearPicker){if(null!==o&&kW(o,i.props))return}else if(null!==o&&wW(o,i.props))return;var a=i.props,s=a.onChange,l=a.selectsRange,c=a.startDate,u=a.endDate;if(!mW(i.props.selected,o)||i.props.allowSameDay||l)if(null!==o&&(!i.props.selected||n&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(o=oW(o,{hour:Dq(i.props.selected),minute:jq(i.props.selected),second:Rq(i.props.selected)})),i.props.inline||i.setState({preSelection:o}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:r})),l){var d=c&&u;c||u?c&&!u&&(cZ(o,c)?s([o,null],t):s([c,o],t)):s([o,null],t),d&&s([o,null],t)}else s(o,t);n||(i.props.onSelect(o,t),i.setState({inputValue:null}))})),UG(HG(i),"setPreSelection",(function(e){var t=void 0!==i.props.minDate,n=void 0!==i.props.maxDate,r=!0;if(e){var o=Xq(e);if(t&&n)r=gW(e,i.props.minDate,i.props.maxDate);else if(t){var a=Xq(i.props.minDate);r=lZ(e,a)||mW(o,a)}else if(n){var s=oZ(i.props.maxDate);r=cZ(e,s)||mW(o,s)}}r&&i.setState({preSelection:e})})),UG(HG(i),"handleTimeChange",(function(e){var t=oW(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Dq(e),minute:jq(e)});i.setState({preSelection:t}),i.props.onChange(t),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})})),UG(HG(i),"onInputClick",(function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()})),UG(HG(i),"onInputKeyDown",(function(e){i.props.onKeyDown(e);var t=e.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var r=tW(i.state.preSelection);"Enter"===t?(e.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===wY?(i.handleSelect(r,e),!i.props.shouldCloseOnSelect&&i.setPreSelection(r)):i.setOpen(!1)):"Escape"===t?(e.preventDefault(),i.setOpen(!1)):"Tab"===t&&e.shiftKey&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:bY})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||i.onInputClick()})),UG(HG(i),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),i.setState({preventFocus:!0},(function(){i.setOpen(!1),setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))})))})),UG(HG(i),"onDayKeyDown",(function(e){i.props.onKeyDown(e);var t=e.key,n=tW(i.state.preSelection);if("Enter"===t)e.preventDefault(),i.handleSelect(n,e),!i.props.shouldCloseOnSelect&&i.setPreSelection(n);else if("Escape"===t)e.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:bY});else if(!i.props.disabledKeyboardNavigation){var r;switch(t){case"ArrowLeft":r=function(e,t){return CV(2,arguments),Mq(e,-EV(t))}(n,1);break;case"ArrowRight":r=Mq(n,1);break;case"ArrowUp":r=function(e,t){return CV(2,arguments),Tq(e,-EV(t))}(n,1);break;case"ArrowDown":r=Tq(n,1);break;case"PageUp":r=Oq(n,1);break;case"PageDown":r=Eq(n,1);break;case"Home":r=Lq(n,1);break;case"End":r=Iq(n,1)}if(!r)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:bY}));if(e.preventDefault(),i.setState({lastPreSelectChange:wY}),i.props.adjustDateOnChange&&i.setSelected(r),i.setPreSelection(r),i.props.inline){var o=Bq(n),a=Bq(r),s=$q(n),l=$q(r);o!==a||s!==l?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}})),UG(HG(i),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),i.setState({preventFocus:!0},(function(){i.setOpen(!1),setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))})))})),UG(HG(i),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],e):i.props.onChange(null,e),i.setState({inputValue:null})})),UG(HG(i),"clear",(function(){i.onClearClick()})),UG(HG(i),"onScroll",(function(e){"boolean"==typeof i.props.closeOnScroll&&i.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||i.setOpen(!1):"function"==typeof i.props.closeOnScroll&&i.props.closeOnScroll(e)&&i.setOpen(!1)})),UG(HG(i),"renderCalendar",(function(){return i.props.inline||i.isCalendarOpen()?ih(vY,{ref:function(e){i.calendar=e},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:yY,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection,children:i.props.children}):null})),UG(HG(i),"renderAriaLiveRegion",(function(){var e,t=i.props,n=t.dateFormat,r=t.locale,o=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return e=i.props.selectsRange?"Selected start date: ".concat(iW(i.props.startDate,{dateFormat:o,locale:r}),". ").concat(i.props.endDate?"End date: "+iW(i.props.endDate,{dateFormat:o,locale:r}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(iW(i.props.selected,{dateFormat:n,locale:r})):i.props.showYearPicker?"Selected year: ".concat(iW(i.props.selected,{dateFormat:"yyyy",locale:r})):i.props.showMonthYearPicker?"Selected month: ".concat(iW(i.props.selected,{dateFormat:"MMMM yyyy",locale:r})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(iW(i.props.selected,{dateFormat:"yyyy, QQQ",locale:r})):"Selected date: ".concat(iW(i.props.selected,{dateFormat:o,locale:r})),ih("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live",children:e})})),UG(HG(i),"renderDateInput",(function(){var e,t=kV(i.props.className,UG({},yY,i.state.open)),n=i.props.customInput||ih("input",{type:"text"}),o=i.props.customInputRef||"ref",a="string"==typeof i.props.value?i.props.value:"string"==typeof i.state.inputValue?i.state.inputValue:i.props.selectsRange?function(e,t,n){if(!e)return"";var r=iW(e,n),i=t?iW(t,n):"";return"".concat(r," - ").concat(i)}(i.props.startDate,i.props.endDate,i.props):iW(i.props.selected,i.props);return r.cloneElement(n,(UG(e={},o,(function(e){i.input=e})),UG(e,"value",a),UG(e,"onBlur",i.handleBlur),UG(e,"onChange",i.handleChange),UG(e,"onClick",i.onInputClick),UG(e,"onFocus",i.handleFocus),UG(e,"onKeyDown",i.onInputKeyDown),UG(e,"id",i.props.id),UG(e,"name",i.props.name),UG(e,"form",i.props.form),UG(e,"autoFocus",i.props.autoFocus),UG(e,"placeholder",i.props.placeholderText),UG(e,"disabled",i.props.disabled),UG(e,"autoComplete",i.props.autoComplete),UG(e,"className",kV(n.props.className,t)),UG(e,"title",i.props.title),UG(e,"readOnly",i.props.readOnly),UG(e,"required",i.props.required),UG(e,"tabIndex",i.props.tabIndex),UG(e,"aria-describedby",i.props.ariaDescribedBy),UG(e,"aria-invalid",i.props.ariaInvalid),UG(e,"aria-labelledby",i.props.ariaLabelledBy),UG(e,"aria-required",i.props.ariaRequired),e))})),UG(HG(i),"renderClearButton",(function(){var e=i.props,t=e.isClearable,n=e.selected,r=e.startDate,o=e.endDate,a=e.clearButtonTitle,s=e.clearButtonClassName,l=void 0===s?"":s,c=e.ariaLabelClose,u=void 0===c?"Close":c;return!t||null==n&&null==r&&null==o?null:ih("button",{type:"button",className:"react-datepicker__close-icon ".concat(l).trim(),"aria-label":u,onClick:i.onClearClick,title:a,tabIndex:-1})})),i.state=i.calcInitialState(),i}BG(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Bq(n)!==Bq(r)||$q(n)!==$q(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:zW(this.props.highlightDates)}),t.focused||mW(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props.showIcon;return oh("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":""),children:[e&&ih("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ih("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})}),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton()]})}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ih(mY,{enableTabLoop:this.props.enableTabLoop,children:ih("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown,children:e})}):null;return this.state.open&&this.props.portalId&&(t=ih(hY,{portalId:this.props.portalId,portalHost:this.props.portalHost,children:t})),oh("div",{children:[this.renderInputContainer(),t]})}return r.createElement(gY,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}])}(),"input"),wY="navigate";(0,l.ZP)("div")`
  .react-datepicker {
    border: 0;
    box-shadow: ${e=>{let{theme:t}=e;return t.shadows[t.boxShadows.sm]}};
  }
  .react-datepicker__input-container .react-datepicker__calendar-icon {
    position: absolute;
    padding: 0.5rem;
    padding: 0;
    top: 6px;
    left: 6px;
  }
  .react-datepicker__month-container {
    padding: ${e=>{let{theme:t}=e;return t.spacing(1)}};
  }

  .react-datepicker__header {
    background-color: transparent;
    border-bottom: none;
    padding: ${e=>{let{theme:t}=e;return t.spacing(3)}} 0 ${e=>{let{theme:t}=e;return t.spacing(3)}};
  }
  .react-datepicker__day--keyboard-selected,
  .react-datepicker__month-text--keyboard-selected,
  .react-datepicker__quarter-text--keyboard-selected,
  .react-datepicker__year-text--keyboard-selected {
    background-color: ${e=>{let{theme:t}=e;return t.palette.primary.main}};
    color: ${e=>{let{theme:t}=e;return t.palette.primary.contrastText}};
    &:hover {
      background-color: ${e=>{let{theme:t}=e;return t.palette.primary.dark}};
    }
  }
  .react-datepicker__day--outside-month {
    color: ${e=>{let{theme:t}=e;return t.palette.text.disabled}};
  }
  .react-datepicker__day-name {
    color: ${e=>{let{theme:t}=e;return t.palette.text.secondary}};
  }
  .react-datepicker__day-name,
  .react-datepicker__day,
  .react-datepicker__time-name {
    width: 2.25rem;
    line-height: 2.25rem;
    border: 1px solid transparent;
  }
  .react-datepicker__day--selected,
  .react-datepicker__day--in-selecting-range,
  .react-datepicker__month-text--selected,
  .react-datepicker__month-text--in-selecting-range,
  .react-datepicker__month-text--in-range,
  .react-datepicker__quarter-text--selected,
  .react-datepicker__quarter-text--in-selecting-range,
  .react-datepicker__quarter-text--in-range,
  .react-datepicker__year-text--selected,
  .react-datepicker__year-text--in-selecting-range,
  .react-datepicker__year-text--in-range {
    background-color: ${e=>{let{theme:t}=e;return t.palette.primary.main}};
  }
  .react-datepicker__day--selected:hover,
  .react-datepicker__day--in-selecting-range:hover,
  .react-datepicker__day--in-range:hover,
  .react-datepicker__month-text--selected:hover,
  .react-datepicker__month-text--in-selecting-range:hover,
  .react-datepicker__month-text--in-range:hover,
  .react-datepicker__quarter-text--selected:hover,
  .react-datepicker__quarter-text--in-selecting-range:hover,
  .react-datepicker__quarter-text--in-range:hover,
  .react-datepicker__year-text--selected:hover,
  .react-datepicker__year-text--in-selecting-range:hover,
  .react-datepicker__year-text--in-range:hover,
  .react-datepicker__day:hover {
    background-color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.surface.secondary}};
    border: 1px solid ${e=>{let{theme:t}=e;return t.palette.semanticPalette.stroke.main}};
    color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.text.main}};
  }
  .react-datepicker__day.react-datepicker__day--in-selecting-range,
  .react-datepicker__day--in-range,
  .react-datepicker__day--in-selecting-range,
  .react-datepicker__day--in-selecting-range-start,
  .react-datepicker__day--in-selecting-range-end {
    background-color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.surface.success}};
    color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.text.main}};
  }
  .react-datepicker__day.react-datepicker__day--selected.react-datepicker__day--selecting-range-start,
  .react-datepicker__day.react-datepicker__day--selected.react-datepicker__day--range-start,
  .react-datepicker__day--range-end {
    background-color: ${e=>{let{theme:t}=e;return t.palette.primary.main}};
    color: ${e=>{let{theme:t}=e;return t.palette.semanticPalette.textInverted.main}};
  }
`;var xY=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===kY}(e)}(e)};var kY="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function CY(e,t){return!1!==t.clone&&t.isMergeableObject(e)?PY(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function SY(e,t,n){return e.concat(t).map((function(e){return CY(e,n)}))}function MY(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function TY(e,t){try{return t in e}catch{return!1}}function EY(e,t,n){var r={};return n.isMergeableObject(e)&&MY(e).forEach((function(t){r[t]=CY(e[t],n)})),MY(t).forEach((function(i){(function(e,t){return TY(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(TY(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return PY;var n=t.customMerge(e);return"function"==typeof n?n:PY}(i,n)(e[i],t[i],n):r[i]=CY(t[i],n))})),r}function PY(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||SY,n.isMergeableObject=n.isMergeableObject||xY,n.cloneUnlessOtherwiseSpecified=CY;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):EY(e,t,n):CY(t,n)}PY.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return PY(e,n,t)}),{})};var IY=PY;const OY={id:"colorThemes",defaults:{type:"disabled"},beforeInit(e,t,n){const{palette:r,type:i,color:o=r.categoryPalette[1].chart}=n,a=r.semanticPalette.surface.main;e.ctx.fillStyle=a,"disabled"!==i&&e.config.data.datasets.forEach(((t,n)=>{const a=$B(t.type)?t.type:(e=>"type"in e)(e.config)?e.config.type:"";let s,l,c,u;switch(i){case"trafficlight-single":s=RY(n,r),l=DY(s,t.data.length);break;case"tonal-single":s=o,l=()=>DY(s,e.config.data.datasets.length)(n);break;case"multi-single":s=jY(n,r.categoryPalette),l=()=>s;break;case"tonal":s=o,l=DY(s,t.data.length);break;case"multi":s="",l=e=>jY(e,r.categoryPalette);break;default:s=o,l=()=>s}switch(a){case"pie":case"doughnut":u=e=>{let{dataIndex:t}=e;return l(t)};break;case"scatter":c=e=>{let{dataIndex:t}=e;return l(t)};break;case"line":const t=LY(l,e);u=e=>{let{dataIndex:n}=e;return t(n)},c=e=>{let{dataIndex:t}=e;return l(t)};break;default:u=e=>{let{dataIndex:t}=e;return l(t)},c=e=>{let{dataIndex:t}=e;return l(t)}}UB(t.backgroundColor)&&$B(u)&&(t.backgroundColor=u),UB(t.borderColor)&&$B(c)&&(t.borderColor=c)}))}},LY=(e,t)=>n=>{const r=e(n),i=t.ctx.canvas.height;if(0===i)return r;const o=t.ctx.createLinearGradient(0,0,0,i/2);return o.addColorStop(0,r),o.addColorStop(.75,(0,We.Fq)(r,.05)),o.addColorStop(1,(0,We.Fq)(r,0)),o},RY=(e,t)=>{var n;return null!=(n=[t.categoryPalette[1].chart,t.categoryPalette[6].chart,t.semanticPalette.surface.secondary][e])?n:t.categoryPalette[1].chart},jY=(e,t)=>{const n=""+(e+1)%(Object.keys(t).length-1),r=((e,t)=>Object.hasOwn(t,e))(n,t)?n:"1";return t[r].chart},DY=(e,t)=>n=>(0,We.$n)(e,n/t),AY=e=>{const t=(0,s.Z)();return(0,r.useMemo)((()=>(e.defaults.maintainAspectRatio=!1,e.defaults.interaction.intersect=!1,e.defaults.interaction.mode="index",e.defaults.animation=!1,e.defaults.color=t.palette.semanticPalette.text.secondary,e.defaults.font.size=Number(t.typography.body2.fontSize),e.defaults.scales.category&&(e.defaults.scales.category.border={...e.defaults.scales.category.border,display:!1},e.defaults.scales.category.grid={...e.defaults.scales.category.grid,lineWidth:e=>{var t;return 0===(null==(t=null==e?void 0:e.tick)?void 0:t.value)?2:1}}),e.defaults.scales.linear&&(e.defaults.scales.linear.border={...e.defaults.scales.linear.border,display:!1},e.defaults.scales.linear.grid={...e.defaults.scales.linear.grid,lineWidth:e=>{var t;return 0===(null==(t=null==e?void 0:e.tick)?void 0:t.value)?2:1}}),e.defaults.plugins.legend&&(e.defaults.plugins.legend.display=!1,e.defaults.plugins.legend.position="bottom",e.defaults.plugins.legend.labels={...e.defaults.plugins.legend.labels,pointStyle:"circle",usePointStyle:!0,boxWidth:7,boxHeight:7,font:{size:Number(t.typography.body2.fontSize),lineHeight:Number(t.typography.body2.lineHeight)}}),e.defaults.plugins.tooltip&&(e.defaults.plugins.tooltip.backgroundColor=t.palette.semanticPalette.surfaceInverted.main,e.defaults.plugins.tooltip.titleColor=t.palette.semanticPalette.textInverted.main,e.defaults.plugins.tooltip.padding=8,e.defaults.plugins.tooltip.displayColors=!1,e.defaults.plugins.tooltip.caretSize=8,e.defaults.plugins.tooltip.cornerRadius=t.shape.borderRadius),t)),[e,t])},NY=e=>(0,r.useMemo)((()=>[OY,...null!=e?e:[]]),[e]);Hd.kL.register(Hd.uw,Hd.f$,Hd.ZL,Hd.De,Hd.u);const FY=e=>{let{data:t,options:n,redraw:i,plugins:o,stacked:a}=e;const{palette:s,shape:{borderRadius:l}}=AY(Hd.kL),c=NY(o),u=(0,r.useMemo)((()=>{var e;const r={indexAxis:"x",scales:{x:{grid:{display:!1},stacked:a},y:{title:{display:!0,text:null==(e=t.datasets[0])?void 0:e.label},stacked:a}},datasets:{bar:{borderRadius:l,maxBarThickness:80}},plugins:{legend:{display:t.datasets.length>1,align:"center"},colorThemes:{type:"single",palette:s}}};return n?IY(r,n):r}),[n,t.datasets,a,s,l]);return ih(Wd.$Q,{data:t,options:u,redraw:i,plugins:c})};function zY(e){return e+.5|0}const BY=(e,t,n)=>Math.max(Math.min(e,n),t);function UY(e){return BY(zY(2.55*e),0,255)}function $Y(e){return BY(zY(255*e),0,255)}function VY(e){return BY(zY(e/2.55)/100,0,1)}function qY(e){return BY(zY(100*e),0,100)}const ZY={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},HY=[..."0123456789ABCDEF"],GY=e=>HY[15&e],WY=e=>HY[(240&e)>>4]+HY[15&e],YY=e=>(240&e)>>4===(15&e);function KY(e){var t=(e=>YY(e.r)&&YY(e.g)&&YY(e.b)&&YY(e.a))(e)?GY:WY;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const XY=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function JY(e,t,n){const r=t*Math.min(n,1-n),i=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function QY(e,t,n){const r=function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function eK(e,t,n){const r=JY(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function tK(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,i),s=60*s+.5),[0|s,l||0,a]}function nK(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map($Y)}function rK(e,t,n){return nK(JY,e,t,n)}function iK(e){return(e%360+360)%360}function oK(e){const t=XY.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?UY(+t[5]):$Y(+t[5]));const i=iK(+t[2]),o=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return nK(eK,e,t,n)}(i,o,a):"hsv"===t[1]?function(e,t,n){return nK(QY,e,t,n)}(i,o,a):rK(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}const aK={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},sK={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let lK;function cK(e){lK||(lK=function(){const e={},t=Object.keys(sK),n=Object.keys(aK);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,aK[o]);o=parseInt(sK[a],16),e[s]=[o>>16&255,o>>8&255,255&o]}return e}(),lK.transparent=[0,0,0,0]);const t=lK[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const uK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const dK=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,pK=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function hK(e,t,n){if(e){let r=tK(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=rK(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function fK(e,t){return e&&Object.assign(t||{},e)}function mK(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=$Y(e[3]))):(t=fK(e,{r:0,g:0,b:0,a:1})).a=$Y(t.a),t}function gK(e){return"r"===e.charAt(0)?function(e){const t=uK.exec(e);let n,r,i,o=255;if(t){if(t[7]!==n){const e=+t[7];o=t[8]?UY(e):BY(255*e,0,255)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?UY(n):BY(n,0,255)),r=255&(t[4]?UY(r):BY(r,0,255)),i=255&(t[6]?UY(i):BY(i,0,255)),{r:n,g:r,b:i,a:o}}}(e):oK(e)}class yK{constructor(e){if(e instanceof yK)return e;const t=typeof e;let n;"object"===t?n=mK(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ZY[e[1]],g:255&17*ZY[e[2]],b:255&17*ZY[e[3]],a:5===n?17*ZY[e[4]]:255}:(7===n||9===n)&&(t={r:ZY[e[1]]<<4|ZY[e[2]],g:ZY[e[3]]<<4|ZY[e[4]],b:ZY[e[5]]<<4|ZY[e[6]],a:9===n?ZY[e[7]]<<4|ZY[e[8]]:255})),t}(e)||cK(e)||gK(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=fK(this._rgb);return e&&(e.a=VY(e.a)),e}set rgb(e){this._rgb=mK(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${VY(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?KY(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=tK(e),n=t[0],r=qY(t[1]),i=qY(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${VY(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let i;const o=t===i?.5:t,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=pK(VY(e.r)),i=pK(VY(e.g)),o=pK(VY(e.b));return{r:$Y(dK(r+n*(pK(VY(t.r))-r))),g:$Y(dK(i+n*(pK(VY(t.g))-i))),b:$Y(dK(o+n*(pK(VY(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new yK(this.rgb)}alpha(e){return this._rgb.a=$Y(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=zY(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return hK(this._rgb,2,e),this}darken(e){return hK(this._rgb,2,-e),this}saturate(e){return hK(this._rgb,1,e),this}desaturate(e){return hK(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=tK(e);n[0]=iK(n[0]+t),n=rK(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function vK(e){return null===e||typeof e>"u"}function bK(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function _K(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function wK(e,t){return typeof e>"u"?t:e}function xK(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function kK(e){if(bK(e))return e.map(kK);if(_K(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=kK(e[n[i]]);return t}return e}function CK(e,t,n,r){if(!function(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}(e))return;const i=t[e],o=n[e];_K(i)&&_K(o)?SK(i,o,r):t[e]=kK(o)}function SK(e,t,n){const r=bK(t)?t:[t],i=r.length;if(!_K(e))return e;const o=(n=n||{}).merger||CK;let a;for(let s=0;s<i;++s){if(a=r[s],!_K(a))continue;const t=Object.keys(a);for(let r=0,i=t.length;r<i;++r)o(t[r],e,a,n)}return e}const MK=Math.PI,TK=2*MK,EK=MK/180,PK=MK/2,IK=MK/4,OK=2*MK/3,LK=Math.log10;function RK(e){return function(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}(e)?e:new yK(e).saturate(.5).darken(.1).hexString()}const jK=["x","y","borderWidth","radius","tension"],DK=["color","borderColor","backgroundColor"];const AK=new Map;function NK(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=AK.get(n);return r||(r=new Intl.NumberFormat(e,t),AK.set(n,r)),r}(t,n).format(e)}const FK={values:e=>bK(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const a=LK(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),NK(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(LK(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?FK.numeric.call(this,e,t,n):""}};var zK={formatters:FK};const BK=Object.create(null),UK=Object.create(null);function $K(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const t=n[r];e=e[t]||(e[t]=Object.create(null))}return e}function VK(e,t,n){return"string"==typeof t?SK($K(e,t),n):SK($K(e,""),t)}class qK{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>RK(t.backgroundColor),this.hoverBorderColor=(e,t)=>RK(t.borderColor),this.hoverColor=(e,t)=>RK(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return VK(this,e,t)}get(e){return $K(this,e)}describe(e,t){return VK(UK,e,t)}override(e,t){return VK(BK,e,t)}route(e,t,n,r){const i=$K(this,e),o=$K(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[r];return _K(e)?Object.assign({},t,e):wK(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ZK=new qK({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:DK},numbers:{type:"number",properties:jK}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zK.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function HK(e,t,n,r){!function(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*EK;if(h&&"object"==typeof h&&(o=h.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,TK):e.arc(n,r,m,0,TK),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=OK,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=OK,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+IK)*l,d=Math.cos(g+IK)*(i?i/2-c:l),s=Math.sin(g+IK)*l,p=Math.sin(g+IK)*(i?i/2-c:l),e.arc(n-d,r-s,c,g-MK,g-PK),e.arc(n+p,r-a,c,g-PK,g),e.arc(n+d,r+s,c,g,g+PK),e.arc(n-p,r+a,c,g+PK,g+MK),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}g+=IK;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":g+=IK;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),g+=IK,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}(e,t,n,r,null)}const GK=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,WK=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function YK(e,t){const n=(""+e).match(GK);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const KK=e=>+e||0;function XK(e){return function(e,t){const n={},r=_K(t),i=r?Object.keys(t):t,o=_K(e)?r?n=>wK(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of i)n[a]=KK(o(a));return n}(e,{top:"y",right:"x",bottom:"y",left:"x"})}function JK(e){const t=XK(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function QK(e,t){e=e||{},t=t||ZK.font;let n=wK(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=wK(e.style,t.style);r&&!(""+r).match(WK)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:wK(e.family,t.family),lineHeight:YK(wK(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:wK(e.weight,t.weight),string:""};return i.string=function(e){return!e||vK(e.size)||vK(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function eX(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&bK(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tX(e,t,n,r,i){let{eps:o,quantiles:a,coef:s,whiskersMode:l}=i;const c=(e,t)=>Math.abs(e-t)<o,{median:u,q1:d,q3:p}=a(e,t),h=p-d,f="number"==typeof s&&s>0;let m=f?Math.max(n,d-s*h):n,g=f?Math.min(r,p+s*h):r;const y=[];for(let b=0;b<t;b+=1){const t=e[b];if(t>=m||c(t,m)){"nearest"===l&&(m=t);break}(0===y.length||!c(y[y.length-1],t))&&y.push(t)}const v=[];for(let b=t-1;b>=0;b-=1){const t=e[b];if(t<=g||c(t,g)){"nearest"===l&&(g=t);break}(0===v.length||!c(v[v.length-1],t))&&(0===y.length||!c(y[y.length-1],t))&&v.push(t)}return{median:u,q1:d,q3:p,iqr:h,outlier:y.concat(v.reverse()),whiskerHigh:g,whiskerLow:m}}function nX(e,t){let n=0;for(let i=0;i<t;i++){n+=e[i]}n/=t;let r=0;for(let i=0;i<t;i++){const t=e[i];r+=(t-n)*(t-n)}return r/=t,{mean:n,variance:r}}function rX(e){const t={coef:1.5,eps:.01,quantiles:oX,validAndSorted:!1,whiskersMode:"nearest",...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},{missing:n,s:r,min:i,max:o}=t.validAndSorted?function(e){return 0===e.length?{min:Number.NaN,max:Number.NaN,missing:0,s:[]}:{min:e[0],max:e[e.length-1],missing:0,s:e}}(e):function(e){let t=0;const{length:n}=e,r=e instanceof Float64Array?new Float64Array(n):new Float32Array(n);for(let a=0;a<n;a+=1){const n=e[a];null===n||Number.isNaN(n)||(r[t]=n,t+=1)}const i=n-t;if(0===t)return{min:Number.NaN,max:Number.NaN,missing:i,s:[]};const o=t===n?r:r.subarray(0,t);return o.sort(((e,t)=>e===t?0:e<t?-1:1)),{min:o[0],max:o[o.length-1],missing:i,s:o}}(e),a={min:Number.NaN,max:Number.NaN,mean:Number.NaN,missing:n,iqr:Number.NaN,count:e.length,whiskerHigh:Number.NaN,whiskerLow:Number.NaN,outlier:[],median:Number.NaN,q1:Number.NaN,q3:Number.NaN,variance:0,items:[]},s=e.length-n;return 0===s?a:{...{min:i,max:o,count:e.length,missing:n,items:r,...nX(r,s),...tX(r,s,i,o,t)}}}function iX(e,t,n){const r=t-1,i=t=>{const i=t*r,o=Math.floor(i),a=i-o,s=e[o];return 0===a?s:n(s,e[Math.min(o+1,r)],a)};return{q1:i(.25),median:i(.5),q3:i(.75)}}function oX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,((e,t,n)=>e+n*(t-e)))}function aX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,((e,t,n)=>e+(t-e)*n))}function sX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,(e=>e))}function lX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,((e,t)=>t))}function cX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,((e,t,n)=>n<.5?e:t))}function uX(e){return iX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,((e,t)=>.5*(e+t)))}function dX(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,n=Math.floor((t+3)/2)/2,r=t=>.5*(e[Math.floor(t)-1]+e[Math.ceil(t)-1]);return{q1:r(n),median:r((t+1)/2),q3:r(t+1-n)}}function pX(e){return dX(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length)}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}}();const hX={coef:1.5,quantiles:7};function fX(e){const t=null===e||"number"!=typeof(null==e?void 0:e.coef)?hX.coef:e.coef,n=function(e){return"function"==typeof e?e:{hinges:pX,fivenum:dX,7:oX,quantiles:oX,linear:aX,lower:sX,higher:lX,nearest:cX,midpoint:uX}[e]||oX}(null===e||null===(null==e?void 0:e.quantiles)?oX:null==e?void 0:e.quantiles);return{coef:t,quantiles:n}}function mX(e,t){if(e){if("number"==typeof e.median&&"number"==typeof e.q1&&"number"==typeof e.q3){if(typeof e.whiskerMin>"u"){const{coef:n}=fX(t),{whiskerMin:r,whiskerMax:i}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.5;const r=e.q3-e.q1,i="number"==typeof n&&n>0;let o=i?Math.max(e.min,e.q1-n*r):e.min,a=i?Math.min(e.max,e.q3+n*r):e.max;if(Array.isArray(t)){for(let e=0;e<t.length;e+=1){const n=t[e];if(n>=o){o=n;break}}for(let e=t.length-1;e>=0;e-=1){const n=t[e];if(n<=a){a=n;break}}}return{whiskerMin:o,whiskerMax:a}}(e,Array.isArray(e.items)?e.items.slice().sort(((e,t)=>e-t)):null,n);e.whiskerMin=r,e.whiskerMax=i}return e}if(Array.isArray(e))return function(e,t){const n=rX(null===window.Float64Array||e instanceof Float32Array||e instanceof Float64Array?e:Float64Array.from(e),fX(t));return{items:Array.from(n.items),outliers:n.outlier,whiskerMax:n.whiskerHigh,whiskerMin:n.whiskerLow,max:n.max,median:n.median,mean:n.mean,min:n.min,q1:n.q1,q3:n.q3}}(e,t)}}const gX={borderWidth:1,outlierStyle:"circle",outlierRadius:2,outlierBorderWidth:1,itemStyle:"circle",itemRadius:0,itemBorderWidth:0,meanStyle:"circle",meanRadius:3,meanBorderWidth:1,hitPadding:2,outlierHitRadius:4},yX={outlierBackgroundColor:"backgroundColor",outlierBorderColor:"borderColor",itemBackgroundColor:"backgroundColor",itemBorderColor:"borderColor",meanBackgroundColor:"backgroundColor",meanBorderColor:"borderColor"},vX=(()=>Object.keys(gX).concat(Object.keys(yX)))();class bX extends Hd.W_{isVertical(){return!this.horizontal}_drawItems(e){const t=this.isVertical(),n=this.getProps(["x","y","items","width","height","outliers"]),{options:r}=this;if(r.itemRadius<=0||!n.items||n.items.length<=0)return;e.save(),e.strokeStyle=r.itemBorderColor,e.fillStyle=r.itemBackgroundColor,e.lineWidth=r.itemBorderWidth;const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return()=>(e=(9301*e+49297)%233280,e/233280)}(1e3*this._datasetIndex+this._index),o={pointStyle:r.itemStyle,radius:r.itemRadius,borderWidth:r.itemBorderWidth},a=new Set(n.outliers||[]);t?n.items.forEach((t=>{a.has(t)||HK(e,o,n.x-n.width/2+i()*n.width,t)})):n.items.forEach((t=>{a.has(t)||HK(e,o,t,n.y-n.height/2+i()*n.height)})),e.restore()}_drawOutliers(e){const t=this.isVertical(),n=this.getProps(["x","y","outliers"]),{options:r}=this;if(r.outlierRadius<=0||!n.outliers||0===n.outliers.length)return;e.save(),e.fillStyle=r.outlierBackgroundColor,e.strokeStyle=r.outlierBorderColor,e.lineWidth=r.outlierBorderWidth;const i={pointStyle:r.outlierStyle,radius:r.outlierRadius,borderWidth:r.outlierBorderWidth};t?n.outliers.forEach((t=>{HK(e,i,n.x,t)})):n.outliers.forEach((t=>{HK(e,i,t,n.y)})),e.restore()}_drawMeanDot(e){const t=this.isVertical(),n=this.getProps(["x","y","mean"]),{options:r}=this;if(r.meanRadius<=0||null===n.mean||Number.isNaN(n.mean))return;e.save(),e.fillStyle=r.meanBackgroundColor,e.strokeStyle=r.meanBorderColor,e.lineWidth=r.meanBorderWidth;const i={pointStyle:r.meanStyle,radius:r.meanRadius,borderWidth:r.meanBorderWidth};t?HK(e,i,n.x,Number(n.mean)):HK(e,i,Number(n.mean),n.y),e.restore()}_getBounds(e){return{left:0,top:0,right:0,bottom:0}}_getHitBounds(e){const t=this.options.hitPadding,n=this._getBounds(e);return{left:n.left-t,top:n.top-t,right:n.right+t,bottom:n.bottom+t}}inRange(e,t,n){return(!Number.isNaN(this.x)||!Number.isNaN(this.y))&&(this._boxInRange(e,t,n)||this._outlierIndexInRange(e,t,n)>=0)}inXRange(e,t){const n=this._getHitBounds(t);return e>=n.left&&e<=n.right}inYRange(e,t){const n=this._getHitBounds(t);return e>=n.top&&e<=n.bottom}_outlierIndexInRange(e,t,n){const r=this.getProps(["x","y"],n),i=this.options.outlierHitRadius,o=this._getOutliers(n),a=this.isVertical();if(a&&Math.abs(e-r.x)>i||!a&&Math.abs(t-r.y)>i)return-1;const s=a?t:e;for(let l=0;l<o.length;l+=1)if(Math.abs(o[l]-s)<=i)return l;return-1}_boxInRange(e,t,n){const r=this._getHitBounds(n);return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}getCenterPoint(e){const t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}_getOutliers(e){return this.getProps(["outliers"],e).outliers||[]}tooltipPosition(e,t){if(!e||"boolean"==typeof e)return this.getCenterPoint();const n=this.getProps(["x","y"]),r=this._outlierIndexInRange(e.x,e.y);return r<0||!t?this.getCenterPoint():this.isVertical()?{x:n.x,y:this._getOutliers()[r]}:{x:this._getOutliers()[r],y:n.y}}}const _X=vX.concat(["medianColor","lowerBackgroundColor"]);class wX extends bX{draw(e){e.save(),e.fillStyle=this.options.backgroundColor,e.strokeStyle=this.options.borderColor,e.lineWidth=this.options.borderWidth,this._drawBoxPlot(e),this._drawOutliers(e),this._drawMeanDot(e),e.restore(),this._drawItems(e)}_drawBoxPlot(e){this.isVertical()?this._drawBoxPlotVertical(e):this._drawBoxPlotHorizontal(e)}_drawBoxPlotVertical(e){const{options:t}=this,n=this.getProps(["x","width","q1","q3","median","whiskerMin","whiskerMax"]),{x:r,width:i,median:o,q1:a,q3:s,whiskerMin:l,whiskerMax:c}=n,u=r-i/2;e.beginPath(),s>a?e.roundRect(u,a,i,o-a,[0,0,4,4]):e.roundRect(u,s,i,o-s,[4,4,0,0]),e.fill(),t.medianColor&&"transparent"!==t.medianColor&&(e.strokeStyle=t.medianColor),e.lineWidth=3,e.beginPath(),e.moveTo(u,o),e.lineTo(u+i,o),e.stroke(),t.lowerBackgroundColor&&"transparent"!==t.lowerBackgroundColor?e.fillStyle=t.lowerBackgroundColor:e.fillStyle=Eg(t.backgroundColor,.4),s>a?e.roundRect(u,o,i,s-o,[0,0,4,4]):e.roundRect(u,o,i,a-o,[0,0,4,4]),e.fill(),e.restore(),e.beginPath(),e.strokeStyle=t.backgroundColor,e.moveTo(r-15,l),e.lineTo(r+15,l),e.moveTo(r,l),e.lineTo(r,a+2),e.moveTo(r-15,c),e.lineTo(r+15,c),e.moveTo(r,c),e.lineTo(r,s-2),e.stroke()}_drawBoxPlotHorizontal(e){const{options:t}=this,n=this.getProps(["y","height","q1","q3","median","whiskerMin","whiskerMax"]),{y:r,height:i,q1:o,q3:a,median:s,whiskerMin:l,whiskerMax:c}=n,u=r-i/2;a>o?e.fillRect(o,u,a-o,i):e.fillRect(a,u,o-a,i),e.save(),t.medianColor&&"transparent"!==t.medianColor&&(e.strokeStyle=t.medianColor),e.beginPath(),e.moveTo(s,u),e.lineTo(s,u+i),e.closePath(),e.stroke(),e.restore(),e.save(),t.lowerBackgroundColor&&"transparent"!==t.lowerBackgroundColor&&(e.fillStyle=t.lowerBackgroundColor,a>o?e.fillRect(s,u,a-s,i):e.fillRect(s,u,o-s,i)),e.restore(),a>o?e.strokeRect(o,u,a-o,i):e.strokeRect(a,u,o-a,i),e.beginPath(),e.moveTo(l,u),e.lineTo(l,u+i),e.moveTo(l,r),e.lineTo(o,r),e.moveTo(c,u),e.lineTo(c,u+i),e.moveTo(c,r),e.lineTo(a,r),e.closePath(),e.stroke()}_getBounds(e){const t=this.isVertical();if(null===this.x)return{left:0,top:0,right:0,bottom:0};if(t){const{x:t,width:n,whiskerMax:r,whiskerMin:i}=this.getProps(["x","width","whiskerMin","whiskerMax"],e),o=t-n/2;return{left:o,top:r,right:o+n,bottom:i}}const{y:n,height:r,whiskerMax:i,whiskerMin:o}=this.getProps(["y","height","whiskerMin","whiskerMax"],e),a=n-r/2;return{left:o,top:a,right:i,bottom:a+r}}}Kd(wX,"id","boxandwhiskers"),Kd(wX,"defaults",{...Hd.ZL.defaults,...gX,medianColor:"transparent",lowerBackgroundColor:"transparent"}),Kd(wX,"defaultRoutes",{...Hd.ZL.defaultRoutes,...yX});class xX extends Hd.vn{_transformStats(e,t,n){for(const r of["min","max","median","q3","q1","mean"]){const i=t[r];"number"==typeof i&&(e[r]=n(i))}for(const r of["outliers","items"])Array.isArray(t[r])&&(e[r]=t[r].map(n))}getMinMax(e,t){const n=e.axis,r=this.options;e.axis=r.minStats;const{min:i}=super.getMinMax(e,t);e.axis=r.maxStats;const{max:o}=super.getMinMax(e,t);return e.axis=n,{min:i,max:o}}parsePrimitiveData(e,t,n,r){const i=e.vScale,o=e.iScale,a=o.getLabels(),s=[];for(let l=0;l<r;l+=1){const e=l+n,r={};r[o.axis]=o.parse(a[e],e);const c=this._parseStats(null===t?null:t[e],this.options);c&&(Object.assign(r,c),r[i.axis]=c.median),s.push(r)}return s}parseArrayData(e,t,n,r){return this.parsePrimitiveData(e,t,n,r)}parseObjectData(e,t,n,r){return this.parsePrimitiveData(e,t,n,r)}getLabelAndValue(e){const t=super.getLabelAndValue(e),{vScale:n}=this._cachedMeta,r=this.getParsed(e);if(!n||!r||"NaN"===t.value)return t;t.value={raw:r,hoveredOutlierIndex:-1},this._transformStats(t.value,r,(e=>n.getLabelForValue(e)));const i=this._toStringStats(t.value.raw);return t.value.toString=function(){return this.hoveredOutlierIndex>=0?`(outlier: ${this.outliers[this.hoveredOutlierIndex]})`:i},t}_toStringStats(e){const t=e=>null===e?"NaN":NK(e,this.chart.options.locale,{});return`(min: ${t(e.min)}, 25% quantile: ${t(e.q1)}, median: ${t(e.median)}, mean: ${t(e.mean)}, 75% quantile: ${t(e.q3)}, max: ${t(e.max)})`}updateElement(e,t,n,r){const i="reset"===r,o=this._cachedMeta.vScale,a=this.getParsed(t),s=o.getBasePixel();n._datasetIndex=this.index,n._index=t,this._transformStats(n,a,(e=>i?s:o.getPixelForValue(e,t))),super.updateElement(e,t,n,r)}}class kX extends xX{_parseStats(e,t){return mX(e,t)}_transformStats(e,t,n){super._transformStats(e,t,n);const r=["whiskerMin","whiskerMax"];for(const i of r)e[i]=n(t[i])}}Kd(kX,"id","boxplot"),Kd(kX,"defaults",SK({},[Hd.vn.defaults,function(e){const t=["borderColor","backgroundColor"].concat(e.filter((e=>e.endsWith("Color"))));return{animations:{colors:{type:"color",properties:t}},transitions:{show:{animations:{colors:{type:"color",properties:t,from:"transparent"}}},hide:{animations:{colors:{type:"color",properties:t,to:"transparent"}}}},minStats:"min",maxStats:"max",...hX}}(_X),{animations:{numbers:{type:"number",properties:Hd.vn.defaults.animations.numbers.properties.concat(["q1","q3","min","max","median","whiskerMin","whiskerMax","mean"],_X.filter((e=>!e.endsWith("Color"))))}},dataElementType:wX.id}]));class CX extends Hd.kL{constructor(e,t){super(e,function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Hd.i_.addControllers(n),Array.isArray(r)?Hd.i_.addElements(...r):Hd.i_.addElements(r),Array.isArray(i)?Hd.i_.addScales(...i):Hd.i_.addScales(i);const o=t;return o.type=e,o}("boxplot",t,kX,wX,[Hd.f$,Hd.uw]))}}Kd(CX,"id",kX.id),Hd.kL.register(Hd.uw,Hd.f$,Hd.ZL,Hd.De,Hd.u,kX,wX);var SX=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),MX=function(e){var t,n=[];for(e=[].concat(e);e.length;)"string"==typeof(t=e.pop())?n.unshift.apply(n,t.split("\n")):Array.isArray(t)?e.push.apply(e,t):vK(e)||n.unshift(""+t);return n},TX=function(e,t,n){var r,i=[].concat(t),o=i.length,a=e.font,s=0;for(e.font=n.string,r=0;r<o;++r)s=Math.max(e.measureText(i[r]).width,s);return e.font=a,{height:o*n.lineHeight,width:s}},EX=function(e,t,n){return Math.max(e,Math.min(t,n))},PX=function(e,t){var n,r,i,o,a=e.slice(),s=[];for(n=0,i=t.length;n<i;++n)o=t[n],-1===(r=a.indexOf(o))?s.push([o,1]):a.splice(r,1);for(n=0,i=a.length;n<i;++n)s.push([a[n],-1]);return s};function IX(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var i=e.x-n,o=e.y-r,a=Math.sqrt(i*i+o*o);return{x:a?i/a:0,y:a?o/a:-1}}var OX=0,LX=1,RX=2,jX=4,DX=8;function AX(e,t,n){var r=OX;return e<n.left?r|=LX:e>n.right&&(r|=RX),t<n.top?r|=DX:t>n.bottom&&(r|=jX),r}function NX(e,t){var n,r,i=t.anchor,o=e;return t.clamp&&(o=function(e,t){for(var n,r,i,o=e.x0,a=e.y0,s=e.x1,l=e.y1,c=AX(o,a,t),u=AX(s,l,t);c|u&&!(c&u);)(n=c||u)&DX?(r=o+(s-o)*(t.top-a)/(l-a),i=t.top):n&jX?(r=o+(s-o)*(t.bottom-a)/(l-a),i=t.bottom):n&RX?(i=a+(l-a)*(t.right-o)/(s-o),r=t.right):n&LX&&(i=a+(l-a)*(t.left-o)/(s-o),r=t.left),n===c?c=AX(o=r,a=i,t):u=AX(s=r,l=i,t);return{x0:o,x1:s,y0:a,y1:l}}(o,t.area)),"start"===i?(n=o.x0,r=o.y0):"end"===i?(n=o.x1,r=o.y1):(n=(o.x0+o.x1)/2,r=(o.y0+o.y1)/2),function(e,t,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var FX={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),o=e.innerRadius,a=e.outerRadius;return NX({x0:e.x+r*o,y0:e.y+i*o,x1:e.x+r*a,y1:e.y+i*a,vx:r,vy:i},t)},point:function(e,t){var n=IX(e,t.origin),r=n.x*e.options.radius,i=n.y*e.options.radius;return NX({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=IX(e,t.origin),r=e.x,i=e.y,o=0,a=0;return e.horizontal?(r=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),a=Math.abs(e.base-e.y)),NX({x0:r,y0:i+a,x1:r+o,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=IX(e,t.origin);return NX({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},zX=function(e){return Math.round(e*SX)/SX};function BX(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function UX(e){return e instanceof Hd.qi?FX.arc:e instanceof Hd.od?FX.point:e instanceof Hd.ZL?FX.bar:FX.fallback}function $X(e,t,n){var r=n.backgroundColor,i=n.borderColor,o=n.borderWidth;!r&&(!i||!o)||(e.beginPath(),function(e,t,n,r,i,o){var a=Math.PI/2;if(o){var s=Math.min(o,i/2,r/2),l=t+s,c=n+s,u=t+r-s,d=n+i-s;e.moveTo(t,c),l<u&&c<d?(e.arc(l,c,s,-Math.PI,-a),e.arc(u,c,s,-a,0),e.arc(u,d,s,0,a),e.arc(l,d,s,a,Math.PI)):l<u?(e.moveTo(l,n),e.arc(u,c,s,-a,a),e.arc(l,c,s,a,Math.PI+a)):c<d?(e.arc(l,c,s,-Math.PI,0),e.arc(l,d,s,0,Math.PI)):e.arc(l,c,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)}(e,zX(t.x)+o/2,zX(t.y)+o/2,zX(t.w)-o,zX(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&o&&(e.strokeStyle=i,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}function VX(e,t,n){var r=e.shadowBlur,i=n.stroked,o=zX(n.x),a=zX(n.y),s=zX(n.w);i&&e.strokeText(t,o,a,s),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,o,a,s),r&&i&&(e.shadowBlur=r))}var qX=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};SK(qX.prototype,{_modelize:function(e,t,n,r){var i=this,o=i._index,a=QK(eX([n.font,{}],r,o)),s=eX([n.color,Gd.d.color],r,o);return{align:eX([n.align,"center"],r,o),anchor:eX([n.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:eX([n.backgroundColor,null],r,o),borderColor:eX([n.borderColor,null],r,o),borderRadius:eX([n.borderRadius,0],r,o),borderWidth:eX([n.borderWidth,0],r,o),clamp:eX([n.clamp,!1],r,o),clip:eX([n.clip,!1],r,o),color:s,display:e,font:a,lines:t,offset:eX([n.offset,4],r,o),opacity:eX([n.opacity,1],r,o),origin:BX(i._el,r),padding:JK(eX([n.padding,4],r,o)),positioner:UX(i._el),rotation:eX([n.rotation,0],r,o)*(Math.PI/180),size:TX(i._ctx,t,a),textAlign:eX([n.textAlign,"start"],r,o),textShadowBlur:eX([n.textShadowBlur,0],r,o),textShadowColor:eX([n.textShadowColor,s],r,o),textStrokeColor:eX([n.textStrokeColor,s],r,o),textStrokeWidth:eX([n.textStrokeWidth,0],r,o)}},update:function(e){var t,n,r,i=this,o=null,a=null,s=i._index,l=i._config,c=eX([l.display,!0],e,s);c&&(t=e.dataset.data[s],(r=vK(n=wK(xK(l.formatter,[t,e]),t))?[]:MX(n)).length&&(a=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,o=-i/2,a=-r/2;return{frame:{x:o-n.left-t,y:a-n.top-t,w:i+n.width+2*t,h:r+n.height+2*t},text:{x:o,y:a,w:i,h:r}}}(o=i._modelize(c,r,l,e)))),i._model=o,i._rects=a},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,r=e.ctx,i=this._model,o=this._rects;!this.visible()||(r.save(),i.clip&&(n=i.area,r.beginPath(),r.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),r.clip()),r.globalAlpha=EX(0,i.opacity,1),r.translate(zX(t.x),zX(t.y)),r.rotate(i.rotation),$X(r,o.frame,i),function(e,t,n,r){var i,o=r.textAlign,a=r.color,s=!!a,l=r.font,c=t.length,u=r.textStrokeColor,d=r.textStrokeWidth,p=u&&d;if(c&&(s||p))for(n=function(e,t,n){var r=n.lineHeight,i=e.w,o=e.x;return"center"===t?o+=i/2:("end"===t||"right"===t)&&(o+=i),{h:r,w:i,x:o,y:e.y+r/2}}(n,o,l),e.font=l.string,e.textAlign=o,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=a),p&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=u),i=0,c=t.length;i<c;++i)VX(e,t[i],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*i})}(r,i.lines,o.text,i),r.restore())}});var ZX=Number.MIN_SAFE_INTEGER||-9007199254740991,HX=Number.MAX_SAFE_INTEGER||9007199254740991;function GX(e,t,n){var r=Math.cos(n),i=Math.sin(n),o=t.x,a=t.y;return{x:o+r*(e.x-o)-i*(e.y-a),y:a+i*(e.x-o)+r*(e.y-a)}}function WX(e,t){var n,r,i,o,a,s=HX,l=ZX,c=t.origin;for(n=0;n<e.length;++n)i=(r=e[n]).x-c.x,o=r.y-c.y,a=t.vx*i+t.vy*o,s=Math.min(s,a),l=Math.max(l,a);return{min:s,max:l}}function YX(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var KX=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function XX(e,t,n){var r=t.positioner(e,t),i=r.vx,o=r.vy;if(!i&&!o)return{x:r.x,y:r.y};var a=n.w,s=n.h,l=t.rotation,c=Math.abs(a/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),u=Math.abs(a/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(o));return c*=i*d,u*=o*d,c+=t.offset*i,u+=t.offset*o,{x:r.x+c,y:r.y+u}}SK(KX.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=t._rect;return!((e=GX(e,t.center(),-t._rotation)).x<n.x-1||e.y<n.y-1||e.x>n.x+n.w+2||e.y>n.y+n.h+2)},intersects:function(e){var t,n,r,i=this._points(),o=e._points(),a=[YX(i[0],i[1]),YX(i[0],i[3])];for(this._rotation!==e._rotation&&a.push(YX(o[0],o[1]),YX(o[0],o[3])),t=0;t<a.length;++t)if(n=WX(i,a[t]),r=WX(o,a[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[GX({x:t.x,y:t.y},r,n),GX({x:t.x+t.w,y:t.y},r,n),GX({x:t.x+t.w,y:t.y+t.h},r,n),GX({x:t.x,y:t.y+t.h},r,n)]}});var JX={prepare:function(e){var t,n,r,i,o,a=[];for(t=0,r=e.length;t<r;++t)for(n=0,i=e[t].length;n<i;++n)o=e[t][n],a.push(o),o.$layout={_box:new KX,_hidable:!1,_visible:!0,_set:t,_idx:o._index};return a.sort((function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx})),this.update(a),a},update:function(e){var t,n,r,i,o,a=!1;for(t=0,n=e.length;t<n;++t)i=(r=e[t]).model(),(o=r.$layout)._hidable=i&&"auto"===i.display,o._visible=r.visible(),a|=o._hidable;a&&function(e){var t,n,r,i,o,a,s;for(t=0,n=e.length;t<n;++t)(i=(r=e[t]).$layout)._visible&&(s=new Proxy(r._el,{get:(e,t)=>e.getProps([t],!0)[t]}),o=r.geometry(),a=XX(s,r.model(),o),i._box.update(a,o,r.rotation()));(function(e,t){var n,r,i,o;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)(o=e[r].$layout)._visible&&i._box.intersects(o._box)&&t(i,o)})(e,(function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)}))}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,i,o,a,s;for(n=0,r=t.length;n<r;++n)(o=(i=t[n]).$layout)._visible&&(a=i.geometry(),s=XX(i._el,i.model(),a),o._box.update(s,a,i.rotation()),i.draw(e,s))}},QX="$datalabels",eJ="$default";function tJ(e,t){var n,r,i=e.datalabels,o={},a=[];return!1===i?null:(!0===i&&(i={}),t=SK({},[t,i]),n=t.labels||{},r=Object.keys(n),delete t.labels,r.length?r.forEach((function(e){n[e]&&a.push(SK({},[t,n[e],{_key:e}]))})):a.push(t),o=a.reduce((function(e,t){return function(e,t,n,r){let i,o,a;if(bK(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(_K(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}(t.listeners||{},(function(n,r){e[r]=e[r]||{},e[r][t._key||eJ]=n})),delete t.listeners,e}),{}),{labels:a,listeners:o})}function nJ(e,t,n,r){if(t){var i,o=n.$context,a=n.$groups;!t[a._set]||(i=t[a._set][a._key])&&!0===xK(i,[o,r])&&(e[QX]._dirty=!0,n.update(o))}}function rJ(e,t){var n,r,i=e[QX],o=i._listeners;if(o.enter||o.leave){if("mousemove"===t.type)r=JX.lookup(i._labels,t);else if("mouseout"!==t.type)return;n=i._hovered,i._hovered=r,function(e,t,n,r,i){var o,a;!n&&!r||(n?r?n!==r&&(a=o=!0):a=!0:o=!0,a&&nJ(e,t.leave,n,i),o&&nJ(e,t.enter,r,i))}(e,o,n,r,t)}}var iJ={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(vK(e))return null;var t,n,r,i=e;if(_K(e))if(vK(e.label))if(vK(e.r))for(i="",r=0,n=(t=Object.keys(e)).length;r<n;++r)i+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else i=e.r;else i=e.label;return""+i},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(e){e[QX]={_actives:[]}},beforeUpdate:function(e){var t=e[QX];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,i,o,a,s,l,c,u,d=t.index,p=e[QX],h=p._datasets[d]=[],f=e.isDatasetVisible(d),m=e.data.datasets[d],g=tJ(m,n),y=t.meta.data||[],v=e.ctx;for(v.save(),r=0,o=y.length;r<o;++r)if((c=y[r])[QX]=[],f&&c&&e.getDataVisibility(r)&&!c.skip)for(i=0,a=g.labels.length;i<a;++i)l=(s=g.labels[i])._key,(u=new qX(s,v,c,r)).$groups={_set:d,_key:l||eJ},u.$context={active:!1,chart:e,dataIndex:r,dataset:m,datasetIndex:d},u.update(u.$context),c[QX].push(u),h.push(u);v.restore(),SK(p._listeners,g.listeners,{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],p._listened=!0}})},afterUpdate:function(e){e[QX]._labels=JX.prepare(e[QX]._datasets)},afterDatasetsDraw:function(e){JX.draw(e,e[QX]._labels)},beforeEvent:function(e,t){if(e[QX]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":rJ(e,n);break;case"click":!function(e,t){var n=e[QX],r=n._listeners.click,i=r&&JX.lookup(n._labels,t);i&&nJ(e,r,i,t)}(e,n)}}},afterEvent:function(e){var t,n,r,i,o,a,s,l=e[QX],c=l._actives,u=l._actives=e.getActiveElements(),d=PX(c,u);for(t=0,n=d.length;t<n;++t)if((o=d[t])[1])for(r=0,i=(s=o[0].element[QX]||[]).length;r<i;++r)(a=s[r]).$context.active=1===o[1],a.update(a.$context);(l._dirty||d.length)&&(JX.update(l._labels),e.render()),delete l._dirty}};Hd.kL.register(Hd.qi,Hd.u);const oJ=e=>{let{data:t,options:n,redraw:i,plugins:o=[]}=e;const{palette:a,shape:{borderRadius:s}}=AY(Hd.kL),l=NY([...o,iJ]),c=(0,r.useMemo)((()=>{const e={interaction:{mode:"index",axis:"r",intersect:!0},layout:{padding:e=>{const t=e.chart.height/10+10;return{left:t,right:t,top:t,bottom:t}}},cutout:"70%",datasets:{doughnut:{spacing:2,borderRadius:s,borderWidth:4,hoverBorderWidth:4,borderColor:a.semanticPalette.surface.main,hoverBorderColor:a.semanticPalette.surface.main}},plugins:{legend:{display:!1,align:"center"},datalabels:{align:"end",anchor:"end",display:"auto",formatter:aJ,font:{size:12},offset:8},colorThemes:{type:"tonal",palette:a}}};return n?IY(e,n):e}),[n,a,s]);return ih(Wd.$I,{data:t,options:c,redraw:i,plugins:l})};function aJ(e,t){var n,r;if("number"!=typeof e)throw new Error(`${oJ.name} - ${aJ.name}: value must be a number.`);const i=t.chart.data;if(1!==i.datasets.length)throw new Error(`${oJ.name} - ${aJ.name}: currently only supports a single dataset.`);return`${null==(n=i.labels)?void 0:n[t.dataIndex]}\n${(e/(null==(r=i.datasets)?void 0:r[0].data.reduce(((e,t)=>e+t),0))*100).toFixed(2)}%`}Hd.kL.register(Hd.uw,Hd.f$,Hd.ZL,Hd.De,Hd.u);const sJ=e=>{let{data:t,options:n,redraw:i,plugins:o,stacked:a}=e;const{palette:s,shape:{borderRadius:l}}=AY(Hd.kL),c=NY(o),u=(0,r.useMemo)((()=>{var e;const r={indexAxis:"y",interaction:{axis:"y"},scales:{y:{grid:{display:!1},stacked:a},x:{title:{display:!0,text:null==(e=t.datasets[0])?void 0:e.label},stacked:a}},datasets:{bar:{maxBarThickness:56,borderRadius:l}},plugins:{legend:{display:t.datasets.length>1,align:"center"},colorThemes:{type:"single",palette:s}}};return n?IY(r,n):r}),[n,t.datasets,a,s,l]);return ih(Wd.$Q,{data:t,options:u,redraw:i,plugins:c})};Hd.kL.register(Hd.uw,Hd.f$,Hd.jn,Hd.od,Hd.Gu,Hd.u);const lJ=e=>{let{data:t,options:n,redraw:i,plugins:o}=e;const{palette:a}=AY(Hd.kL),s=NY(o),l=(0,r.useMemo)((()=>{var e;const r={scales:{x:{grid:{display:!1}},y:{title:{display:!0,text:null==(e=t.datasets[0])?void 0:e.label}}},datasets:{line:{backgroundColor:"transparent",borderWidth:2,fill:"start",pointRadius:4,pointBorderWidth:2,pointHoverRadius:6,pointHoverBorderWidth:2,pointBackgroundColor:a.semanticPalette.surface.main,pointHoverBackgroundColor:a.semanticPalette.surface.main,tension:.4}},plugins:{legend:{display:t.datasets.length>1,align:"center"},colorThemes:{type:"single",palette:a}}};return n?IY(r,n):r}),[n,t.datasets,a]);return ih(Wd.x1,{data:t,options:l,redraw:i,plugins:s})};Hd.kL.register(Hd.uw,Hd.f$,Hd.ZL,Hd.De,Hd.u);const cJ=e=>{let{data:t,options:n,redraw:i,formatTooltipLabel:o,plugins:a}=e;AY(Hd.kL);const{palette:l,shape:{borderRadius:c}}=(0,s.Z)(),u=NY(a),d=(0,r.useMemo)((()=>{const e={indexAxis:"y",interaction:{mode:"x"},plugins:{legend:{display:!0,align:"center"},tooltip:{position:"progressChartCenter",xAlign:"center",yAlign:"top",callbacks:{title:e=>e[0].dataset.label,label:o}},colorThemes:{type:"tonal-single",palette:l}},datasets:{bar:{barThickness:36,borderSkipped:!1,borderRadius:e=>((e,t)=>{const n=e.chart.getVisibleDatasetCount();return 0===e.datasetIndex&&e.datasetIndex===n-1?t:0===e.datasetIndex?{topLeft:t,topRight:0,bottomLeft:t,bottomRight:0}:e.datasetIndex===n-1?{topLeft:0,topRight:t,bottomLeft:0,bottomRight:t}:0})(e,c)}},scales:{x:{stacked:!0,grid:{display:!1},border:{display:!1},ticks:{display:!1}},y:{stacked:!0,grid:{display:!1},ticks:{display:!1},border:{display:!1}}}};return n?IY(e,n):e}),[n,o,c,l]),p=(0,r.useMemo)((()=>IY({labels:[""],datasets:[]},t)),[t]);return ih(Wd.$Q,{data:p,options:d,redraw:i,plugins:u})};Hd.u.positioners.progressChartCenter=e=>{if(!e.length)return!1;const{x:t,y:n,width:r}=e[0].element;return{x:t-r/2,y:n}},Hd.kL.register(Hd.uw,Hd.f$,Hd.De,Hd.u,Hd.od);const uJ=e=>{let{data:t,options:n,redraw:i,xAxisLabel:o,yAxisLabel:a,suggestedMinX:s,suggestedMaxX:l,suggestedMinY:c,suggestedMaxY:u,formatTooltipLabel:d,plugins:p}=e;const{palette:h}=AY(Hd.kL),f=NY(p),m=(0,r.useMemo)((()=>{const e={datasets:{scatter:{borderWidth:2,pointRadius:4,pointHoverRadius:4,pointHoverBorderWidth:2,backgroundColor:"transparent"}},interaction:{mode:"nearest"},plugins:{tooltip:{callbacks:{label:e=>{var t;return null!=(t=null==d?void 0:d(e))?t:[`${o}: ${e.parsed.x}`,`${a}: ${e.parsed.y}`]}}},colorThemes:{type:"single",palette:h}},scales:{x:{title:{display:!!o,text:o},grid:{drawTicks:!1},ticks:{padding:10},suggestedMin:s,suggestedMax:l},y:{title:{display:!!a,text:a},grid:{drawTicks:!1},ticks:{padding:10},suggestedMin:c,suggestedMax:u}}};return n?IY(e,n):e}),[d,n,l,u,s,c,o,a,h]);return ih(Wd.bp,{data:t,options:m,redraw:i,plugins:f})},dJ=["line","bar"],pJ={id:"averageLine",afterDatasetDraw(e,t,n){const{data:{datasets:r}}=e,{type:i,indexAxis:o}=t.meta;if(!dJ.includes(i)||"x"!==o||!(e=>"number"==typeof e[0])(r[0].data))return;const{label:a,formatter:s,palette:l}=n,c=hJ(r[0].data),u=`${a}: ${s?s(c):Intl.NumberFormat().format(c)}`;fJ({average:c,chart:e,strokeColor:l.semanticPalette.stroke.main}),mJ({annotation:u,average:c,chart:e,textColor:l.semanticPalette.text.secondary})}},hJ=e=>{const t=e.filter($B);return t.reduce(((e,t)=>e+t),0)/t.length},fJ=e=>{let{average:t,chart:n,strokeColor:r}=e;const{ctx:i,scales:{x:o,y:a}}=n,s=a.getPixelForValue(t),l=i.getLineDash();i.lineWidth=1,i.beginPath(),i.moveTo(o.left,s),i.setLineDash([6,3]),i.lineTo(o.right,s),i.strokeStyle=r,i.stroke(),i.setLineDash(l)},mJ=e=>{let{annotation:t,average:n,chart:r,textColor:i}=e;const{ctx:o,scales:{x:a,y:s}}=r,{width:l,actualBoundingBoxAscent:c,actualBoundingBoxDescent:u}=o.measureText(t),d=l+4+8,p=c+u+8,h=a.left+4,f=s.getPixelForValue(n)-4-4;o.fillStyle="#FFFFFF99",o.beginPath(),o.roundRect(h,f+4+1,d,-p,4),o.fill();const m=h+4;o.fillStyle=i,o.fillText(t,m,f)};Hd.kL.register(Hd.uw,Hd.f$,Hd.jn,Hd.od,Hd.Gu,Hd.u);const gJ=e=>{const{data:{labels:t},data:{datasets:{0:{data:n}}},formatter:i,unitLabel:o,redraw:a,options:s,data:l,plugins:c=[]}=e,{palette:u}=AY(Hd.kL),d=NY([...c,pJ]),p=(0,r.useMemo)((()=>{const e=i||(e=>`${Intl.NumberFormat("en-US",{notation:"compact"}).format(e)}`),r=t=>`${e(t)} ${o}`,a={datasets:{line:{backgroundColor:"transparent",borderWidth:2,fill:"start",pointRadius:4,pointBorderWidth:2,pointBorderColor:"transparent",pointBackgroundColor:"transparent",pointHoverBackgroundColor:u.semanticPalette.surface.main,pointHoverBorderColor:u.categoryPalette[1].chart,tension:.2}},scales:{x:{ticks:{callback:(e,r)=>0===r||r===n.length-1?`${null==t?void 0:t[r]}`:""},grid:{display:!1}},y:{title:{display:!1},ticks:{callback:t=>e(Number(t))}}},plugins:{colorThemes:{type:"single",palette:u},averageLine:{label:"YoY average",palette:u,formatter:r},tooltip:{caretPadding:8,callbacks:{label:e=>{let{chart:t,dataIndex:n,parsed:i}=e;var o,a,s;return((e,t)=>`${e}: ${r(t)}`)(null!=(s=null==(a=null==(o=t.data)?void 0:o.labels)?void 0:a[n])?s:"-",i.y)},title:()=>""}}}};return s?IY(a,s):a}),[s,n.length,t,i,o,u]);return ih(Wd.x1,{data:l,options:p,redraw:a,plugins:d})},yJ=e=>{let{title:t,description:n,tooltip:r,belowTitleContent:i,pagination:o,menuItems:a,children:s}=e;return ih(v$,{fullHeight:!0,fullWidth:!0,children:oh(Ag,{gap:2,p:3,height:1,width:1,children:[oh(b$,{display:"flex",justifyContent:"space-between",gap:4,alignItems:"end",children:[t&&ih(GU,{variant:"h5",children:t}),oh(b$,{display:"flex",alignItems:"start",gap:3,children:[!!o&&o,oh(BU,{sx:{opacity:.5},size:"small",color:"secondary",variant:"outlined",children:[r&&ih(nn,{title:r,children:ih(Ju,{variant:"outlined",children:ih(yU,{type:"question"})})}),ih(vJ,{menuItems:a})]})]})]}),n&&ih(GU,{variant:"body2",color:"text.secondary",children:n}),i?ih(b$,{mt:2,children:i}):null,ih(b$,{mt:3,flexGrow:"1",children:s})]})})},vJ=e=>{let{menuItems:t}=e;const[n,i]=(0,r.useState)(null),o=(0,r.useCallback)((e=>{i(e.currentTarget)}),[]),a=(0,r.useCallback)((()=>{i(null)}),[]),s=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return()=>{null==t||t(),e||a()}};return null!=t&&t.length?oh(rh,{children:[ih(Ju,{onClick:o,children:ih(yU,{type:"dots-vertical"})}),ih(p$,{anchorOrigin:bJ,anchorEl:n,onClose:a,open:Boolean(n),children:t.map(((e,t)=>{let{label:n,onClick:r,disabled:i,preventMenuCloseOnClick:o}=e;return ih(h$,{disabled:i,onClick:s(o,r),children:n},`chart-tile--menuItem--${t}`)}))})]}):null},bJ={vertical:"bottom",horizontal:"left"};function _J(e,t,n){return t&&Array.isArray(t)&&t.length>n?[...t].splice(e*n,n):t}function wJ(e){let{data:t,paginated:n,page:i,pageSize:o}=e;const a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;const o=(0,r.useMemo)((()=>({datasets:e.datasets.map((e=>({...e,data:_J(t,e.data,i)}))),labels:_J(t,e.labels,i)})),[e.datasets,e.labels,t,i]);return n?o:e}(t,i,n,o);return(0,r.useMemo)((()=>({page:i,paginatedData:a})),[i,n,a])}function xJ(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function kJ(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CJ(e){return(CJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SJ(e){kJ(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===CJ(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function MJ(e,t){kJ(2,arguments);var n=SJ(e),r=xJ(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function TJ(e,t){kJ(2,arguments);var n=SJ(e),r=xJ(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}var EJ={};function PJ(){return EJ}function IJ(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function OJ(e){kJ(1,arguments);var t=SJ(e);return t.setHours(0,0,0,0),t}var LJ=864e5;function RJ(e,t){return kJ(2,arguments),MJ(e,7*xJ(t))}var jJ=7;function DJ(e){return(DJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AJ(e){if(kJ(1,arguments),!function(e){return kJ(1,arguments),e instanceof Date||"object"===DJ(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=SJ(e);return!isNaN(Number(t))}function NJ(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function FJ(e,t){kJ(2,arguments);var n=SJ(e),r=SJ(t),i=NJ(n,r),o=Math.abs(function(e,t){kJ(2,arguments);var n=OJ(e),r=OJ(t),i=n.getTime()-IJ(n),o=r.getTime()-IJ(r);return Math.round((i-o)/LJ)}(n,r));n.setDate(n.getDate()-i*o);var a=i*(o-Number(NJ(n,r)===-i));return 0===a?0:a}function zJ(e){kJ(1,arguments);var t=SJ(e);return t.setDate(1),t.setHours(0,0,0,0),t}function BJ(e,t){return kJ(2,arguments),function(e,t){kJ(2,arguments);var n=SJ(e).getTime(),r=xJ(t);return new Date(n+r)}(e,-xJ(t))}function UJ(e){kJ(1,arguments);var t=SJ(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function $J(e){kJ(1,arguments);var t=SJ(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=UJ(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=UJ(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function VJ(e){kJ(1,arguments);var t=SJ(e),n=UJ(t).getTime()-function(e){kJ(1,arguments);var t=$J(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),UJ(n)}(t).getTime();return Math.round(n/6048e5)+1}function qJ(e,t){var n,r,i,o,a,s,l,c;kJ(1,arguments);var u=PJ(),d=xJ(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=SJ(e),h=p.getUTCDay(),f=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function ZJ(e,t){var n,r,i,o,a,s,l,c;kJ(1,arguments);var u=SJ(e),d=u.getUTCFullYear(),p=PJ(),h=xJ(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var m=qJ(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var y=qJ(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}function HJ(e,t){kJ(1,arguments);var n=SJ(e),r=qJ(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,c;kJ(1,arguments);var u=PJ(),d=xJ(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=ZJ(e,t),h=new Date(0);return h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0),qJ(h,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function GJ(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const WJ={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return GJ("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):GJ(n+1,2)},d:function(e,t){return GJ(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return GJ(e.getUTCHours()%12||12,t.length)},H:function(e,t){return GJ(e.getUTCHours(),t.length)},m:function(e,t){return GJ(e.getUTCMinutes(),t.length)},s:function(e,t){return GJ(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return GJ(Math.floor(r*Math.pow(10,n-3)),t.length)}};var YJ="midnight",KJ="noon",XJ="morning",JJ="afternoon",QJ="evening",eQ="night";function tQ(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+GJ(o,2)}function nQ(e,t){return e%60===0?(e>0?"-":"+")+GJ(Math.abs(e)/60,2):rQ(e,t)}function rQ(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+GJ(Math.floor(i/60),2)+n+GJ(i%60,2)}const iQ={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return WJ.y(e,t)},Y:function(e,t,n,r){var i=ZJ(e,r),o=i>0?i:1-i;return"YY"===t?GJ(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):GJ(o,t.length)},R:function(e,t){return GJ($J(e),t.length)},u:function(e,t){return GJ(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return GJ(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return GJ(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return WJ.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return GJ(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=HJ(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):GJ(i,t.length)},I:function(e,t,n){var r=VJ(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):GJ(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):WJ.d(e,t)},D:function(e,t,n){var r=function(e){kJ(1,arguments);var t=SJ(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):GJ(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return GJ(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return GJ(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return GJ(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?KJ:0===i?YJ:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?QJ:i>=12?JJ:i>=4?XJ:eQ,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return WJ.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):WJ.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):GJ(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):GJ(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):WJ.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):WJ.s(e,t)},S:function(e,t){return WJ.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return nQ(i);case"XXXX":case"XX":return rQ(i);default:return rQ(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return nQ(i);case"xxxx":case"xx":return rQ(i);default:return rQ(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tQ(i,":");default:return"GMT"+rQ(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tQ(i,":");default:return"GMT"+rQ(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return GJ(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return GJ((r._originalDate||e).getTime(),t.length)}};var oQ=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},aQ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const sQ={p:aQ,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return oQ(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",oQ(i,t)).replace("{{time}}",aQ(o,t))}};var lQ=["D","DD"],cQ=["YY","YYYY"];function uQ(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var dQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const pQ=function(e,t,n){var r,i=dQ[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function hQ(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var fQ={date:hQ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hQ({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:hQ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var mQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gQ(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function yQ(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}const vQ={code:"en-US",formatDistance:pQ,formatLong:fQ,formatRelative:function(e,t,n,r){return mQ[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gQ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gQ({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:gQ({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:gQ({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:gQ({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:yQ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:yQ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yQ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:yQ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:yQ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var bQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_Q=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wQ=/^'([^]*?)'?$/,xQ=/''/g,kQ=/[a-zA-Z]/;function CQ(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,_;kJ(2,arguments);var w=String(t),x=PJ(),k=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:x.locale)&&void 0!==r?r:vQ,C=xJ(null!==(o=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=xJ(null!==(h=null!==(f=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(y=n.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==f?f:null===(b=x.locale)||void 0===b||null===(_=b.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var M=SJ(e);if(!AJ(M))throw new RangeError("Invalid time value");var T=BJ(M,IJ(M)),E={firstWeekContainsDate:C,weekStartsOn:S,locale:k,_originalDate:M},P=w.match(_Q).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,sQ[t])(e,k.formatLong):e})).join("").match(bQ).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(wQ);return t?t[1].replace(xQ,"'"):e}(r);var o=iQ[i];if(o)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==cQ.indexOf(e)}(r)&&uQ(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==lQ.indexOf(e)}(r)&&uQ(r,t,String(e)),o(T,r,k.localize,E);if(i.match(kQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return P}function SQ(e){kJ(1,arguments);var t=SJ(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function MQ(e,t){e=e.replace("#","");const n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16),o=Math.round(255*(1-t)+t*n),a=Math.round(255*(1-t)+t*r),s=Math.round(255*(1-t)+t*i);return`#${o.toString(16)}${a.toString(16)}${s.toString(16)}`}function TQ(e,t){e=e.replace("#","");return`rgba(${parseInt(e.slice(0,2),16)}, ${parseInt(e.slice(2,4),16)}, ${parseInt(e.slice(4,6),16)}, ${t})`}function EQ(e){let{content:t,offset:n,alignment:r}=e;return ih(ka,{position:"absolute",bottom:0,display:"flex",width:"2px",height:"calc(100% - 36px)",justifyContent:"center",bgcolor:e=>e.palette.semanticPalette.surfaceInverted.main,style:{left:n},children:ih(PQ,{position:"absolute",top:"-16px",paddingY:1,paddingX:2,$alignment:r,borderRadius:e=>e.spacing(e.borderRadii.pill),bgcolor:e=>e.palette.semanticPalette.surfaceInverted.main,color:e=>e.palette.semanticPalette.textInverted.main,whiteSpace:"nowrap",children:ih(xt,{variant:"body2",children:t})})})}const PQ=(0,l.ZP)(ka)`
  ${e=>{let{$alignment:t}=e;switch(t){case"left":return"\n          transform: translateX(calc(-50% + 10px));\n        ";case"right":return"\n          left: -10px;\n        "}}}
`;var IQ=(e=>(e.Daily="daily",e.Monthly="monthly",e.Biannual="biannual",e))(IQ||{}),OQ=(e=>(e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e))(OQ||{}),LQ=(e=>(e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e))(LQ||{});const RQ={noEventsOrMinRangeProvided:"Either no events were found, or a minimum range was not provided to calculate the timeline range."},jQ=6,DQ=18;function AQ(e,t,n){var r;let i,o;if(n)i=n.startDate,o=n.endDate;else{const t=null==(r=e.find((e=>e.events.length>0)))?void 0:r.events[0];i=null==t?void 0:t.startDate,o=(null==t?void 0:t.endDate)||i}if(void 0===i||void 0===o)throw new Error(RQ.noEventsOrMinRangeProvided);for(let a=0;a<e.length;a++){const t=e[a].events;for(let e=0;e<t.length;e++){const n=t[e];n.startDate<i&&(i=n.startDate),n.endDate&&n.endDate>o&&(o=n.endDate),n.startDate>o&&(o=n.startDate),n.endDate&&n.endDate<i&&(i=n.endDate)}}switch(t){case IQ.Daily:case IQ.Monthly:i=zJ(i),o=OJ(function(e){kJ(1,arguments);var t=SJ(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(o));break;case IQ.Biannual:i=function(e){const t=e.getFullYear(),n=e.getMonth(),r=e.getDate();return 0===n&&1===r||6===n&&1===r?e:n>=6?new Date(t,6,1):n>=1?new Date(t,0,1):new Date(t-1,6,1)}(i),o=function(e){const t=e.getFullYear(),n=e.getMonth();return n>=0&&n<6?new Date(t,5,30):new Date(t,11,31)}(o)}return{startDate:i,endDate:o}}function NQ(e,t,n){const r=[];let i=new Date(t.startDate);const o=t.endDate;switch(e){case IQ.Daily:case IQ.Monthly:for(;i<=o;)r.push({label:CQ(i,"MMM ''yy",{locale:n}).replace(".",""),startDate:i,endDate:new Date(new Date(i).setDate(SQ(i)))}),i=TJ(i,1);break;case IQ.Biannual:const e=i.getMonth()%jQ;for(0!==e&&(i=TJ(i,jQ-e));i<=o;){const e=TJ(i,jQ-1);r.push({label:CQ(i,"MMM ''yy",{locale:n}).replace(".",""),startDate:i,endDate:new Date(new Date(e).setDate(SQ(e)))}),i=TJ(i,jQ)}}return r}function FQ(e,t,n,r){switch(e){case IQ.Daily:return[];case IQ.Monthly:return r<DQ?[]:function(e,t){const n=[];let r=new Date(e.startDate);for(r.getDay()>t&&(r=function(e,t){var n,r,i,o,a,s,l,c;kJ(1,arguments);var u=PJ(),d=xJ(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=SJ(e),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p}(RJ(r,1),{weekStartsOn:t}));r<=e.endDate;){if(1===r.getDate()){r=RJ(r,1);continue}n.push({startDate:r});const e=jJ-(r.getDay()-t);r=MJ(r,e)}return n}(t,n);case IQ.Biannual:return function(e){const t=[];let n=new Date(e.startDate);const r=e.endDate;for(n.getDate()>1&&(n=zJ(TJ(n,1)));n<=r;){const e=n.getMonth();e!==LQ.January&&e!==LQ.July&&t.push({startDate:n}),n=TJ(n,1)}return t}(t)}}function zQ(e,t,n,r){let{hasBorderOffset:i=!0}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=i?1:0;if(!r)return t+o;const a=FJ(r,n)+1;switch(e){case IQ.Daily:return a*t+o;case IQ.Monthly:case IQ.Biannual:return a/jJ*t+o}}function BQ(e,t,n,r){const i=r.startDate.getDate()-1,o=FJ(n,r.startDate)+i;switch(e){case IQ.Daily:return o*t;case IQ.Monthly:case IQ.Biannual:return o/jJ*t}}function UQ(e,t,n){const r=t/n,i=function(e){switch(e){case IQ.Daily:return 8;case IQ.Monthly:return 12;case IQ.Biannual:return 4}}(e);return r>i?r:i}function $Q(e,t){const n=FJ(t.endDate,t.startDate)+1;switch(e){case IQ.Daily:return n;case IQ.Monthly:case IQ.Biannual:return n/jJ}}function VQ(e){let{rows:t,locale:n,highlightedRowId:i,initialStartDate:o,initialEndDate:a,markers:s=[],timeScale:l=IQ.Monthly,weekStartsOn:c=OQ.Monday,ariaLabel:u="Timeline",style:d,className:p,scrollToEnd:h,emptyMessage:f="There are no timeline events to display."}=e;const{validatedRows:m,eventsExist:g}=(0,r.useMemo)((()=>{const{processedRows:e,timelineRowsHaveEvents:n}=function(e){let t=!1;const n=[];return e.forEach((e=>{const r=e.events.filter((e=>e.endDate?AJ(e.endDate)&&AJ(e.startDate):AJ(e.startDate)));!t&&r.length>0&&(t=!0),n.push({...e,events:r})})),{processedRows:n,timelineRowsHaveEvents:t}}(t);return{validatedRows:e,eventsExist:n}}),[t]),y=(0,r.useMemo)((()=>{let e;return o&&(e={startDate:o,endDate:g?a:MJ(o,365)}),AQ(m,l,e)}),[m,l,o,a,g]),{sections:v,totalUnits:b}=(0,r.useMemo)((()=>({sections:NQ(l,y,n),totalUnits:$Q(l,y)})),[l,y,n]),[_,w]=(0,r.useState)(null),{width:x}=ZU(_),k=x>0,C=(0,r.useMemo)((()=>UQ(l,x,b)),[l,x,b]),S=(0,r.useMemo)((()=>FQ(l,y,c,C)),[l,y,c,C]),M=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{h&&M.current&&x&&(M.current.scrollLeft=x)}),[h,x]),oh(ka,{"aria-label":u,role:"img",style:d,className:p,display:"flex",flexDirection:"row",width:"100%",minHeight:"150px",children:[ih(ka,{"aria-hidden":!0,display:"flex",flexDirection:"column",gap:2,paddingTop:12,paddingBottom:6,paddingRight:1,whiteSpace:"nowrap",children:m.map((e=>ih(ka,{paddingY:2.5,children:ih(HQ,{$highlighted:e.id===i,variant:"body2",color:e=>e.palette.text.secondary,children:e.title})},e.id)))}),oh(qQ,{ref:e=>{w(e),h&&(M.current=e)},"aria-hidden":!0,children:[oh(ka,{height:"100%",children:[!g&&ih(ka,{position:"absolute",top:"50%",left:0,right:0,zIndex:e=>e.zIndex.tooltip,margin:"0 auto",textAlign:"center",sx:{transform:"translateY(-50%)"},paddingTop:8,children:ih(ka,{bgcolor:e=>e.palette.semanticPalette.surface.warning,border:e=>`1px solid ${e.palette.semanticPalette.stroke.warning}`,color:e=>e.palette.semanticPalette.text.warning,paddingY:2,paddingX:3,display:"inline-block",borderRadius:e=>e.spacing(e.borderRadii.sm),children:ih(xt,{variant:"h6",children:f})})}),k&&oh(rh,{children:[v.map((e=>oh(ka,{position:"absolute",display:"flex",flexDirection:"column",gap:5,height:"100%",style:{width:zQ(l,C,e.startDate,e.endDate,{hasBorderOffset:!1}),left:BQ(l,C,e.startDate,y)},children:[ih(xt,{variant:"body2",children:e.label}),ih(ka,{height:"100%",borderLeft:e=>`2px solid ${e.palette.divider}`})]},e.label))),S.map((e=>ih(ZQ,{style:{left:BQ(l,C,e.startDate,y)},timeScale:l,position:"absolute",bottom:0,height:"calc(100% - 36px)"},e.startDate.getTime())))]})]}),ih(ka,{position:"absolute",top:48,left:0,children:ih(ka,{display:"flex",flexDirection:"column",gap:2,position:"relative",children:k&&m.map((e=>ih(ka,{display:"flex",flexDirection:"row",position:"relative",height:36,children:e.events.map((e=>ih(nn,{id:`tooltip-${e.id}`,title:e.tooltip,disableInteractive:!0,followCursor:!0,PopperProps:{modifiers:[{name:"preventOverflow",options:{boundary:_,padding:8}}]},slotProps:{tooltip:{sx:{maxWidth:"none"}}},children:ih(GQ,{$color:e.color,$variant:e.variant,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",height:36,top:0,borderRadius:e=>e.spacing(e.borderRadii.sm),style:{width:zQ(l,C,e.startDate,e.endDate),left:BQ(l,C,e.startDate,y)},children:e.title&&oh(WQ,{borderRadius:e=>e.spacing(e.borderRadii.sm),display:"flex",alignItems:"center",gap:1,paddingY:1,paddingX:2,$color:e.color,$variant:e.variant,whiteSpace:"nowrap",children:[XB(e.icon)&&ih(_U,{type:e.icon,fontSize:"body2"}),ih(xt,{variant:"body1",children:e.title})]})})},e.id)))},e.id)))})}),k&&s.map((e=>ih(EQ,{content:e.content,offset:BQ(l,C,e.endOfDay?MJ(e.date,1):e.date,y),alignment:e.alignment},e.date.toISOString())))]})]})}const qQ=(0,l.ZP)("div")`
  width: 100%;
  overflow-x: auto;
  position: relative;
  // For the right border offset (events touching the edge of the container)
  padding-right: 1px;
`,ZQ=(0,l.ZP)(ka)`
  border-left: 1px solid
    ${e=>{let{theme:t,timeScale:n}=e;return n===IQ.Monthly?MQ(t.palette.divider,.5):t.palette.divider}};
`,HQ=(0,l.ZP)(xt)`
  ${e=>{let{$highlighted:t,theme:n}=e;return t&&`\n      font-weight: ${n.typography.h1.fontWeight};\n      color: ${n.palette.text.primary};\n    `}}
`,GQ=(0,l.ZP)(ka)`
  ${e=>{let{$color:t,$variant:n,theme:r}=e;return"subtle"===n?`\n        border: 1px solid ${MQ(r.palette.categoryPalette[t].chart,.5)};\n        background-color: ${MQ(r.palette.categoryPalette[t].surface,.5)};\n        border-style: dashed;\n      `:`\n      border: 1px solid ${r.palette.categoryPalette[t].stroke};\n      background-color: ${r.palette.categoryPalette[t].surface};\n    `}};
`,WQ=(0,l.ZP)(ka)`
  ${e=>{let{$color:t,$variant:n,theme:r}=e;return"subtle"===n?`\n        background-color: ${MQ(r.palette.categoryPalette[t].highlight,.5)};\n      `:`\n      background-color: ${r.palette.categoryPalette[t].highlight};\n    `}};
`;(0,l.ZP)(sU)((e=>{let{theme:t,$hasCloseIcon:n,$hasDividers:r,$hasFooter:i,$hasHeader:o,$hasSubtitle:a,$hasTitle:s}=e;return{"& .MuiPaper-root":{borderRadius:"8px"},...o?{"& .RegrowDialogHeader":{minHeight:n&&!s?t.spacing(15):"none",position:"relative",padding:((e,n)=>{switch(!0){case e&&n:return t.spacing(5,15,5,5);case e:return t.spacing(5);default:return 0}})(s,n),...r?{boxShadow:"0px 0px 4px rgba(0, 0, 0, 0.25)"}:{}}}:{},...a?{"& .RegrowDialogSubtitle":{paddingTop:t.spacing(2)}}:{},...n?{"& .RegrowDialogCloseIcon ":{padding:t.spacing(2),position:"absolute",right:t.spacing(3),top:t.spacing(3),"& svg":{height:t.spacing(5),minWidth:"unset",minHeight:"unset",width:t.spacing(5)}}}:{},"& .MuiDialogContent-root":{paddingBottom:t.spacing(5),paddingLeft:t.spacing(5),paddingRight:t.spacing(5),paddingTop:!o||o&&r?t.spacing(5):0},"& .MuiDialogContent-dividers":{...o?{}:{borderTop:"none"},...i?{}:{borderBottom:"none"}},...i?{"& .MuiDialogActions-root":{padding:t.spacing(5),...r?{boxShadow:"0px 0px 4px rgba(0, 0, 0, 0.25)"}:{}}}:{}}}));Hp.setLicenseKey("31d3fb4a2f419c990a3c68a7f59a901cTz03ODk2NyxFPTE3MzE4Nzk4MDMwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI=")},85346:(e,t,n)=>{"use strict";n.d(t,{G:()=>p});var r=n(60003),i=n(75754),o=n(22873),a=n(84525);class s{constructor(e,t){let n,r;n=e||new a.s,r=t||new a.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return(0,i.J8)(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function l(){const e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new s((0,o.Y)("defaultCurrentScope",(()=>new a.s)),(0,o.Y)("defaultIsolationScope",(()=>new a.s)))}function c(e){return l().withScope(e)}function u(e,t){const n=l();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function d(e){return l().withScope((()=>e(l().getIsolationScope())))}function p(e){const t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},60003:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,q:()=>a});var r=n(22873),i=n(56469);function o(){return a(r.GLOBAL_OBJ),r.GLOBAL_OBJ}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},41414:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="production"},3667:(e,t,n)=>{"use strict";n.d(t,{$e:()=>u,aF:()=>l,lW:()=>c,nZ:()=>s,s3:()=>d});var r=n(22873),i=n(85346),o=n(60003),a=n(84525);function s(){const e=(0,o.c)();return(0,i.G)(e).getCurrentScope()}function l(){const e=(0,o.c)();return(0,i.G)(e).getIsolationScope()}function c(){return(0,r.Y)("globalScope",(()=>new a.s))}function u(){const e=(0,o.c)(),t=(0,i.G)(e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];if(2===r.length){const[e,n]=r;return e?t.withSetScope(e,n):t.withScope(n)}return t.withScope(r[0])}function d(){return s().getClient()}},28940:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},15690:(e,t,n)=>{"use strict";n.d(t,{Qy:()=>d,Tb:()=>l,cg:()=>m,eN:()=>c,v:()=>u,yj:()=>p});var r=n(22873),i=n(41414),o=n(3667),a=n(63872),s=n(42639);function l(e,t){return(0,o.nZ)().captureException(e,(0,s.U0)(t))}function c(e,t){return(0,o.nZ)().captureEvent(e,t)}function u(e,t){(0,o.aF)().setContext(e,t)}function d(e){(0,o.aF)().addEventProcessor(e)}function p(e){const t=(0,o.s3)(),n=(0,o.aF)(),s=(0,o.nZ)(),{release:l,environment:c=i.J}=t&&t.getOptions()||{},{userAgent:u}=r.GLOBAL_OBJ.navigator||{},d=(0,a.Hv)({release:l,environment:c,user:s.getUser()||n.getUser(),...u&&{userAgent:u},...e}),p=n.getSession();return p&&"ok"===p.status&&(0,a.CT)(p,{status:"exited"}),h(),n.setSession(d),s.setSession(d),d}function h(){const e=(0,o.aF)(),t=(0,o.nZ)(),n=t.getSession()||e.getSession();n&&(0,a.RJ)(n),f(),e.setSession(),t.setSession()}function f(){const e=(0,o.aF)(),t=(0,o.nZ)(),n=(0,o.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function m(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?h():f()}},65217:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(42787);const i="_sentryMetrics";function o(e){const t=e[i];if(!t)return;const n={};for(const[,[i,o]]of t)n[i]||(n[i]=[]),n[i].push((0,r.Jr)(o));return n}},84525:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var r=n(67054),i=n(75754),o=n(12770),a=n(86540),s=n(53049),l=n(63872),c=n(62533);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.Q)()}clone(){const e=new u;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e,[n,r]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const d=u},54518:(e,t,n)=>{"use strict";n.d(t,{$J:()=>o,E1:()=>l,JQ:()=>d,S3:()=>a,TE:()=>i,Wb:()=>c,Zj:()=>r,ju:()=>s,p6:()=>u});const r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",l="sentry.measurement_unit",c="sentry.measurement_value",u="sentry.profile_id",d="sentry.exclusive_time"},63872:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>l});var r=n(12770),i=n(86540),o=n(42787);function a(e){const t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},59426:(e,t,n)=>{"use strict";n.d(t,{Lh:()=>c,_l:()=>u,jC:()=>d});var r=n(42787),i=n(41414),o=n(3667),a=n(54518),s=n(47555);const l="_frozenDsc";function c(e,t){const n=e;(0,r.xp)(n,l,t)}function u(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},a=(0,r.Jr)({environment:n.environment||i.J,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",a),a}function d(e){const t=(0,o.s3)();if(!t)return{};const n=u((0,s.XU)(e).trace_id||"",t),r=(0,s.Gx)(e);if(!r)return n;const i=r[l];if(i)return i;const c=(0,s.XU)(r),d=c.data||{},p=d[a.TE];null!=p&&(n.sample_rate=`${p}`);const h=d[a.Zj];return h&&"url"!==h&&(n.transaction=c.description),n.sampled=String((0,s.Tt)(r)),t.emit("createDsc",n),n}},828:(e,t,n)=>{"use strict";n.d(t,{OP:()=>i,Q0:()=>a,jt:()=>o,pq:()=>r});const r=0,i=1,o=2;function a(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},42639:(e,t,n)=>{"use strict";n.d(t,{U0:()=>C,R:()=>x});var r=n(86540),i=n(12770),o=n(79268),a=n(22873),s=n(78353),l=n(41414),c=n(3667),u=n(39579),d=n(53049),p=n(75754),h=n(28940);function f(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new u.cW(((i,o)=>{const a=e[r];if(null===t||"function"!==typeof a)i(t);else{const s=a({...t},n);h.X&&a.id&&null===s&&d.kg.log(`Event processor "${a.id}" dropped event`),(0,p.J8)(s)?s.then((t=>f(e,t,n,r+1).then(i))).then(null,o):f(e,s,n,r+1).then(i).then(null,o)}}))}var m=n(84525),g=n(42787),y=n(59426),v=n(47555);function b(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=(0,g.Jr)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=(0,g.Jr)(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=(0,g.Jr)(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=(0,g.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),i&&function(e,t){e.contexts={trace:(0,v.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,y.jC)(t),...e.sdkProcessingMetadata};const n=(0,v.Gx)(t),r=(0,v.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),function(e,t){e.fingerprint=e.fingerprint?(0,r.lE)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function _(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;w(e,"extra",n),w(e,"tags",r),w(e,"user",i),w(e,"contexts",o),w(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function w(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function x(e,t,n,u,d,p){const{normalizeDepth:h=3,normalizeMaxBreadth:g=1e3}=e,y={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},v=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,o.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));const c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))}(y,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(y,v),void 0===t.type&&function(e,t){const n=a.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let r;const i=k.get(t);i?r=i:(r=new Map,k.set(t,r));const o=Object.keys(n).reduce(((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(s){}}(y,e.stackParser);const w=function(e,t){if(!t)return e;const n=e?e.clone():new m.s;return n.update(t),n}(u,n.captureContext);n.mechanism&&(0,r.EG)(y,n.mechanism);const x=d?d.getEventProcessors():[],C=(0,c.lW)().getScopeData();if(p){_(C,p.getScopeData())}if(w){_(C,w.getScopeData())}const S=[...n.attachments||[],...C.attachments];S.length&&(n.attachments=S),b(y,C);return f([...x,...C.eventProcessors],y,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof h&&h>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))));return r}(e,h,g):e)))}const k=new WeakMap;function C(e){if(e)return function(e){return e instanceof m.s||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>S.includes(e)))}(e)?{captureContext:e}:e}const S=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},62533:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Y:()=>a});var r=n(42787);const i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function a(e){return e[i]}},47555:(e,t,n)=>{"use strict";n.d(t,{$k:()=>v,Dp:()=>T,Gx:()=>E,HN:()=>P,HR:()=>m,Hb:()=>y,Tt:()=>w,XU:()=>_,_4:()=>x,ed:()=>M,i0:()=>f,j5:()=>S,ve:()=>h,wy:()=>g});var r=n(42787),i=n(10003),o=n(12770),a=n(85346),s=n(60003),l=n(3667),c=n(65217),u=n(54518),d=n(828),p=n(62533);const h=0,f=1;function m(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,origin:l}=_(e);return(0,r.Jr)({parent_span_id:a,span_id:t,trace_id:n,data:i,op:o,status:s,origin:l})}function g(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=_(e);return(0,r.Jr)({parent_span_id:i,span_id:t,trace_id:n})}function y(e){const{traceId:t,spanId:n}=e.spanContext(),r=w(e);return(0,i.$p)(t,n,r)}function v(e){return"number"===typeof e?b(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?b(e.getTime()):(0,o.ph)()}function b(e){return e>9999999999?e/1e3:e}function _(e){if(function(e){return"function"===typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}(e)){const{attributes:i,startTime:o,name:a,endTime:s,parentSpanId:l,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:a,parent_span_id:l,start_timestamp:v(o),timestamp:v(s)||void 0,status:x(d),op:i[u.$J],origin:i[u.S3],_metrics_summary:(0,c.y)(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function w(e){const{traceFlags:t}=e.spanContext();return t===f}function x(e){if(e&&e.code!==d.pq)return e.code===d.OP?"ok":e.message||"unknown_error"}const k="_sentryChildSpans",C="_sentryRootSpan";function S(e,t){const n=e[C]||e;(0,r.xp)(t,C,n),e[k]?e[k].add(t):(0,r.xp)(e,k,new Set([t]))}function M(e,t){e[k]&&e[k].delete(t)}function T(e){const t=new Set;return function e(n){if(!t.has(n)&&w(n)){t.add(n);const r=n[k]?Array.from(n[k]):[];for(const t of r)e(t)}}(e),Array.from(t)}function E(e){return e[C]||e}function P(){const e=(0,s.c)(),t=(0,a.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,p.Y)((0,l.nZ)())}},43014:(e,t,n)=>{"use strict";n.d(t,{EN:()=>u,IQ:()=>d,bU:()=>a});var r=n(43921),i=n(75754),o=n(53049);const a="baggage",s="sentry-",l=/^sentry-/,c=8192;function u(e){const t=function(e){if(!e||!(0,i.HD)(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=p(t);for(const r of Object.keys(n))e[r]=n[r];return e}),{});return p(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,t)=>{let[n,r]=t;if(n.match(l)){e[n.slice(s.length)]=r}return e}),{});return Object.keys(n).length>0?n:void 0}function d(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,t,n)=>{let[i,a]=t;const s=`${encodeURIComponent(i)}=${encodeURIComponent(a)}`,l=0===n?s:`${e},${s}`;return l.length>c?(r.X&&o.kg.warn(`Not adding key: ${i} with val: ${a} to baggage header due to exceeding baggage size limits.`),e):l}),"")}(Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return r&&(e[`${s}${n}`]=r),e}),{}))}function p(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{let[n,r]=t;return e[n]=r,e}),{})}},96170:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,iY:()=>u,l4:()=>l,qT:()=>c});var r=n(75754);const i=n(22873).GLOBAL_OBJ,o=80;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,l=0;const c=" > ",u=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&a++<r&&(d=s(n,p),!("html"===d||a>1&&l+i.length*u+d.length>=h));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(n){return"<unknown>"}}function s(e,t){const n=e,o=[];let a,s,l,c,u;if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&o.push(`#${n.id}`),a=n.className,a&&(0,r.HD)(a))for(s=a.split(/\s+/),u=0;u<s.length;u++)o.push(`.${s[u]}`);const p=["aria-label","type","name","title","alt"];for(u=0;u<p.length;u++)l=p[u],c=n.getAttribute(l),c&&o.push(`[${l}="${c}"]`);return o.join("")}function l(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function u(e){if(!i.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},43921:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},75754:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>y,HD:()=>c,J8:()=>g,Kj:()=>m,Le:()=>u,PO:()=>p,TX:()=>s,V9:()=>v,VW:()=>a,VZ:()=>i,cO:()=>h,fm:()=>l,kK:()=>f,pt:()=>d,y1:()=>b});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return"object"===typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!==typeof e&&"function"!==typeof e}function p(e){return o(e,"Object")}function h(e){return"undefined"!==typeof Event&&v(e,Event)}function f(e){return"undefined"!==typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(n){return!1}}function b(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}},53049:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>s,LD:()=>a,RU:()=>o,kg:()=>l});var r=n(43921),i=n(22873);const o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,n={},r=Object.keys(a);r.forEach((e=>{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const l=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach((n=>{t[n]=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e&&s((()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...r)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}()},86540:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,Db:()=>l,EG:()=>c,YO:()=>u,jH:()=>s,lE:()=>d});var r=n(42787),i=n(22873);function o(){const e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function d(e){return Array.isArray(e)?e:[e]}},78353:(e,t,n)=>{"use strict";n.d(t,{Fv:()=>a,Qy:()=>s});var r=n(75754);var i=n(42787),o=n(74234);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return l("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=a(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?s(e,t-1,n):r;var i}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}();const[c,u]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"===typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof global&&t===global)return"[Global]";if("undefined"!==typeof window&&t===window)return"[Window]";if("undefined"!==typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"===typeof t&&t!==t)return"[NaN]";if("function"===typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"===typeof t)return`[${String(t)}]`;if("bigint"===typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const p="number"===typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===p)return d.replace("object ","");if(c(t))return"[Circular ~]";const h=t;if(h&&"function"===typeof h.toJSON)try{return l("",h.toJSON(),p-1,a,s)}catch(y){}const f=Array.isArray(t)?[]:{};let m=0;const g=(0,i.Sh)(t);for(const r in g){if(!Object.prototype.hasOwnProperty.call(g,r))continue;if(m>=a){f[r]="[MaxProperties ~]";break}const e=g[r];f[r]=l(r,e,p-1,a,s),m++}return u(t),f}},42787:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>d,Jr:()=>y,Sh:()=>h,_j:()=>p,hl:()=>l,xp:()=>c,zf:()=>g});var r=n(96170),i=n(43921),o=n(75754),a=n(53049),s=n(79268);function l(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&u(i,r),e[t]=i}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){i.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(n){}}function d(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function h(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,o.cO)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...m(e)};return"undefined"!==typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function m(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(h(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:(0,s.$G)(e,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,o.PO)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(v(e,t))})),r}return e}},67054:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(86540);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},74234:(e,t,n)=>{"use strict";n.d(t,{$P:()=>u,Fi:()=>i,Fr:()=>d,Sq:()=>l,pE:()=>s});const r=50,i="?",o=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const s=t.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const l=[],c=e.split("\n");for(let i=t;i<c.length;i++){const e=c[i];if(e.length>1024)continue;const t=o.test(e)?e.replace(o,"$1"):e;if(!t.match(/\S*Error: /)){for(const e of s){const n=e(t);if(n){l.push(n);break}}if(l.length>=r+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),a.test(t[t.length-1].function||"")&&(t.pop(),a.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,r).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||i})))}(l.slice(n))}}function l(e){return Array.isArray(e)?s(...e):e}const c="<anonymous>";function u(e){try{return e&&"function"===typeof e&&e.name||c}catch(t){return c}}function d(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(n){return}}}},79268:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,U0:()=>a,nK:()=>o});var r=n(75754);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";const n=[];for(let o=0;o<e.length;o++){const t=e[o];try{(0,r.y1)(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(i){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,n,t)))}},39579:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var r,i=n(75754);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},12770:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>l,ph:()=>a,yW:()=>o});var r=n(22873);const i=1e3;function o(){return Date.now()/i}const a=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return o;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/i}();let s;const l=(()=>{const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return void(s="none");const t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,l=e.timing&&e.timing.navigationStart,c="number"===typeof l?Math.abs(l+n-i):t;return a||c<t?o<=c?(s="timeOrigin",e.timeOrigin):(s="navigationStart",l):(s="dateNow",i)})()},10003:(e,t,n)=>{"use strict";n.d(t,{$p:()=>s,pT:()=>a});var r=n(43014),i=n(86540);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){const n=function(e){if(!e)return;const t=e.match(o);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),a=(0,r.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:a||{}}:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.DM)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.DM)().substring(16),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},56469:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="8.9.2"},22873:(e,t,n)=>{"use strict";n.d(t,{GLOBAL_OBJ:()=>i,Y:()=>o});var r=n(56469);const i=globalThis;function o(e,t,n){const o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.J]=a[r.J]||{};return s[e]||(s[e]=t())}},36888:(e,t,n)=>{"use strict";n.d(t,{SOn:()=>Y,VWR:()=>F,FWy:()=>B,Scw:()=>G,Xwo:()=>H,TE$:()=>$,uf4:()=>g,dqO:()=>_,BM7:()=>r,yue:()=>p});var r={};n.r(r),n.d(r,{areaFactors:()=>s,bearingToAzimuth:()=>S,convertArea:()=>P,convertLength:()=>E,degreesToRadians:()=>T,earthRadius:()=>i,factors:()=>o,feature:()=>l,featureCollection:()=>g,geometry:()=>c,geometryCollection:()=>_,isNumber:()=>I,isObject:()=>O,lengthToDegrees:()=>C,lengthToRadians:()=>k,lineString:()=>f,lineStrings:()=>m,multiLineString:()=>y,multiPoint:()=>v,multiPolygon:()=>b,point:()=>u,points:()=>d,polygon:()=>p,polygons:()=>h,radiansToDegrees:()=>M,radiansToLength:()=>x,round:()=>w,unitsFactors:()=>a,validateBBox:()=>L,validateId:()=>R});var i=6371008.8,o={centimeters:100*i,centimetres:100*i,degrees:i/111325,feet:3.28084*i,inches:39.37*i,kilometers:i/1e3,kilometres:i/1e3,meters:i,metres:i,miles:i/1609.344,millimeters:1e3*i,millimetres:1e3*i,nauticalmiles:i/1852,radians:1,yards:1.0936*i},a={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/i,yards:1.0936133},s={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function l(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function c(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return u(t).geometry;case"LineString":return f(t).geometry;case"Polygon":return p(t).geometry;case"MultiPoint":return v(t).geometry;case"MultiLineString":return y(t).geometry;case"MultiPolygon":return b(t).geometry;default:throw new Error(e+" is invalid")}}function u(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!I(e[0])||!I(e[1]))throw new Error("coordinates must contain numbers");return l({type:"Point",coordinates:e},t,n)}function d(e,t,n){return void 0===n&&(n={}),g(e.map((function(e){return u(e,t)})),n)}function p(e,t,n){void 0===n&&(n={});for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return l({type:"Polygon",coordinates:e},t,n)}function h(e,t,n){return void 0===n&&(n={}),g(e.map((function(e){return p(e,t)})),n)}function f(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return l({type:"LineString",coordinates:e},t,n)}function m(e,t,n){return void 0===n&&(n={}),g(e.map((function(e){return f(e,t)})),n)}function g(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function y(e,t,n){return void 0===n&&(n={}),l({type:"MultiLineString",coordinates:e},t,n)}function v(e,t,n){return void 0===n&&(n={}),l({type:"MultiPoint",coordinates:e},t,n)}function b(e,t,n){return void 0===n&&(n={}),l({type:"MultiPolygon",coordinates:e},t,n)}function _(e,t,n){return void 0===n&&(n={}),l({type:"GeometryCollection",geometries:e},t,n)}function w(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n}function x(e,t){void 0===t&&(t="kilometers");var n=o[t];if(!n)throw new Error(t+" units is invalid");return e*n}function k(e,t){void 0===t&&(t="kilometers");var n=o[t];if(!n)throw new Error(t+" units is invalid");return e/n}function C(e,t){return M(k(e,t))}function S(e){var t=e%360;return t<0&&(t+=360),t}function M(e){return 180*(e%(2*Math.PI))/Math.PI}function T(e){return e%360*Math.PI/180}function E(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return x(k(e,t),n)}function P(e,t,n){if(void 0===t&&(t="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var r=s[t];if(!r)throw new Error("invalid original units");var i=s[n];if(!i)throw new Error("invalid final units");return e/r*i}function I(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function O(e){return!!e&&e.constructor===Object}function L(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!I(e))throw new Error("bbox must only contain numbers")}))}function R(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function j(e,t,n){if(null!==e)for(var r,i,o,a,s,l,c,u,d=0,p=0,h=e.type,f="FeatureCollection"===h,m="Feature"===h,g=f?e.features.length:1,y=0;y<g;y++){s=(u=!!(c=f?e.features[y].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var v=0;v<s;v++){var b=0,_=0;if(null!==(a=u?c.geometries[v]:c)){l=a.coordinates;var w=a.type;switch(d=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(l,p,y,b,_))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===t(l[r],p,y,b,_))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(i=0;i<l[r].length-d;i++){if(!1===t(l[r][i],p,y,b,_))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(_=0,i=0;i<l[r].length;i++){for(o=0;o<l[r][i].length-d;o++){if(!1===t(l[r][i][o],p,y,b,_))return!1;p++}_++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===j(a.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function D(e,t){var n,r,i,o,a,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}function A(e,t){D(e,(function(e,n,r,i,o){var a,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(l(e,r,{bbox:i,id:o}),n,0)&&void 0}switch(s){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u=e.coordinates[c];if(!1===t(l({type:a,coordinates:u},r),n,c))return!1}}))}function N(e){var t=[1/0,1/0,-1/0,-1/0];return j(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}N.default=N;const F=N;function z(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}n(30758);n(9402);function B(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r,i=z(e),o="Feature"===(r=t).type?r.geometry:r,a=o.type,s=t.bbox,l=o.coordinates;if(s&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,s))return!1;"Polygon"===a&&(l=[l]);for(var c=!1,u=0;u<l.length&&!c;u++)if(U(i,l[u][0],n.ignoreBoundary)){for(var d=!1,p=1;p<l[u].length&&!d;)U(i,l[u][p],!n.ignoreBoundary)&&(d=!0),p++;d||(c=!0)}return c}function U(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;i<t.length;o=i++){var a=t[i][0],s=t[i][1],l=t[o][0],c=t[o][1];if(e[1]*(a-l)+s*(l-e[0])+c*(e[0]-a)===0&&(a-e[0])*(l-e[0])<=0&&(s-e[1])*(c-e[1])<=0)return!n;s>e[1]!==c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}const $=function(e,t,n){void 0===n&&(n={});var r=z(e),i=z(t),o=T(i[1]-r[1]),a=T(i[0]-r[0]),s=T(r[1]),l=T(i[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return x(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)};Object.prototype.hasOwnProperty;var V=new ArrayBuffer(16);new Float64Array(V),new Uint32Array(V);n(92785);!function(){function e(e){this.points=e.points||[],this.duration=e.duration||1e4,this.sharpness=e.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=e.stepLength||60,this.length=this.points.length,this.delay=0;for(var t=0;t<this.length;t++)this.points[t].z=this.points[t].z||0;for(t=0;t<this.length-1;t++){var n=this.points[t],r=this.points[t+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(t=0;t<this.centers.length-1;t++){var i=this.points[t+1].x-(this.centers[t].x+this.centers[t+1].x)/2,o=this.points[t+1].y-(this.centers[t].y+this.centers[t+1].y)/2,a=this.points[t+1].z-(this.centers[t].y+this.centers[t+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t].z+a)},{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t+1].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t+1].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t+1].z+a)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}e.prototype.cacheSteps=function(e){var t=[],n=this.pos(0);t.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>e&&(t.push(r),n=i)}return t},e.prototype.vector=function(e){var t=this.pos(e+10),n=this.pos(e-10);return{angle:180*Math.atan2(t.y-n.y,t.x-n.x)/3.14,speed:Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)+(n.z-t.z)*(n.z-t.z))}},e.prototype.pos=function(e){var t=e-this.delay;t<0&&(t=0),t>this.duration&&(t=this.duration-1);var n=t/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(e,t,n,r,i){var o=function(e){var t=e*e,n=t*e;return[n,3*t*(1-e),3*e*(1-e)*(1-e),(1-e)*(1-e)*(1-e)]}(e);return{x:i.x*o[0]+r.x*o[1]+n.x*o[2]+t.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+t.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+t.z*o[3]}}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])}}();const q=function(e){return function(e,t){void 0===t&&(t={});var n=Number(e[0]),r=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var a=[n,r];return p([[a,[i,r],[i,o],[n,o],a]],t.properties,{bbox:e,id:t.id})}(F(e))};function Z(e,t,n,r){void 0===r&&(r={});var i=z(e),o=T(i[0]),a=T(i[1]),s=T(n),l=k(t,r.units),c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(s));return u([M(o+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c))),M(c)],r.properties)}const H=function(e,t,n){void 0===n&&(n={});for(var r=n.steps||64,i=n.properties?n.properties:!Array.isArray(e)&&"Feature"===e.type&&e.properties?e.properties:{},o=[],a=0;a<r;a++)o.push(Z(e,t,-360*a/r,n).geometry.coordinates);return o.push(o[0]),p([o],i)};const G=function(e,t){void 0===t&&(t={});var n=0,r=0,i=0;return j(e,(function(e){n+=e[0],r+=e[1],i++}),!0),u([n/i,r/i],t.properties)};n(86407);n(21099);var W=6378137;function Y(e){return function(e,t,n){var r=n;return D(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r}(e,(function(e,t){return e+function(e){var t,n=0;switch(e.type){case"Polygon":return K(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=K(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)}),0)}function K(e){var t=0;if(e&&e.length>0){t+=Math.abs(X(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(X(e[n]))}return t}function X(e){var t,n,r,i,o,a,s=0,l=e.length;if(l>2){for(a=0;a<l;a++)a===l-2?(r=l-2,i=l-1,o=0):a===l-1?(r=l-1,i=0,o=1):(r=a,i=a+1,o=a+2),t=e[r],n=e[i],s+=(J(e[o][0])-J(t[0]))*Math.sin(J(n[1]));s=s*W*W/2}return s}function J(e){return e*Math.PI/180}var Q=Math.PI/180,ee=180/Math.PI,te=function(e,t){this.lon=e,this.lat=t,this.x=Q*e,this.y=Q*t};te.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},te.prototype.antipode=function(){var e=-1*this.lat,t=this.lon<0?180+this.lon:-1*(180-this.lon);return new te(t,e)};var ne=function(){this.coords=[],this.length=0};ne.prototype.move_to=function(e){this.length++,this.coords.push(e)};var re=function(e){this.properties=e||{},this.geometries=[]};re.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var e=[],t=0;t<this.geometries.length;t++)e.push(this.geometries[t].coords);return{geometry:{type:"MultiLineString",coordinates:e},type:"Feature",properties:this.properties}},re.prototype.wkt=function(){for(var e="",t="LINESTRING(",n=function(e){t+=e[0]+" "+e[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),e+=t.substring(0,t.length-1)+")"}return e};var ie=function(e,t,n){if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new te(e.x,e.y),this.end=new te(t.x,t.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+e.view()+" and "+t.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+e+" and "+t)};ie.prototype.interpolate=function(e){var t=Math.sin((1-e)*this.g)/Math.sin(this.g),n=Math.sin(e*this.g)/Math.sin(this.g),r=t*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=t*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=t*Math.sin(this.start.y)+n*Math.sin(this.end.y),a=ee*Math.atan2(o,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[ee*Math.atan2(i,r),a]},ie.prototype.Arc=function(e,t){var n=[];if(!e||e<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(e-1),i=0;i<e;++i){var o=r*i,a=this.interpolate(o);n.push(a)}for(var s=!1,l=0,c=t&&t.offset?t.offset:10,u=180-c,d=-180+c,p=360-c,h=1;h<n.length;++h){var f=n[h-1][0],m=n[h][0],g=Math.abs(m-f);g>p&&(m>u&&f<d||f>u&&m<d)?s=!0:g>l&&(l=g)}var y=[];if(s&&l<c){var v=[];y.push(v);for(var b=0;b<n.length;++b){var _=parseFloat(n[b][0]);if(b>0&&Math.abs(_-n[b-1][0])>p){var w=parseFloat(n[b-1][0]),x=parseFloat(n[b-1][1]),k=parseFloat(n[b][0]),C=parseFloat(n[b][1]);if(w>-180&&w<d&&180===k&&b+1<n.length&&n[b-1][0]>-180&&n[b-1][0]<d){v.push([-180,n[b][1]]),b++,v.push([n[b][0],n[b][1]]);continue}if(w>u&&w<180&&-180===k&&b+1<n.length&&n[b-1][0]>u&&n[b-1][0]<180){v.push([180,n[b][1]]),b++,v.push([n[b][0],n[b][1]]);continue}if(w<d&&k>u){var S=w;w=k,k=S;var M=x;x=C,C=M}if(w>u&&k<d&&(k+=360),w<=180&&k>=180&&w<k){var T=(180-w)/(k-w),E=T*C+(1-T)*x;v.push([n[b-1][0]>u?180:-180,E]),(v=[]).push([n[b-1][0]>u?-180:180,E]),y.push(v)}else v=[],y.push(v);v.push([_,n[b][1]])}else v.push([n[b][0],n[b][1]])}}else{var P=[];y.push(P);for(var I=0;I<n.length;++I)P.push([n[I][0],n[I][1]])}for(var O=new re(this.properties),L=0;L<y.length;++L){var R=new ne;O.geometries.push(R);for(var j=y[L],D=0;D<j.length;++D)R.move_to(j[D])}return O};n(17458);var oe=[],ae=[],se=[],le=[],ce=[],ue=[],de=[],pe=[],he=[],fe=[],me=[],ge=[],ye=[],ve=[],be=[],_e=[],we=[],xe=[],ke=[],Ce=[],Se=[],Me=[],Te=[],Ee=[];de[85]=fe[85]=-1,pe[85]=me[85]=0,he[85]=ge[85]=1,ke[85]=Me[85]=1,Ce[85]=Te[85]=0,Se[85]=Ee[85]=1,oe[85]=le[85]=0,ae[85]=ce[85]=-1,se[85]=be[85]=0,_e[85]=ye[85]=0,we[85]=ve[85]=1,ue[85]=xe[85]=1,Me[1]=Me[169]=0,Te[1]=Te[169]=-1,Ee[1]=Ee[169]=0,ye[1]=ye[169]=-1,ve[1]=ve[169]=0,be[1]=be[169]=0,fe[4]=fe[166]=0,me[4]=me[166]=-1,ge[4]=ge[166]=1,_e[4]=_e[166]=1,we[4]=we[166]=0,xe[4]=xe[166]=0,de[16]=de[154]=0,pe[16]=pe[154]=1,he[16]=he[154]=1,le[16]=le[154]=1,ce[16]=ce[154]=0,ue[16]=ue[154]=1,ke[64]=ke[106]=0,Ce[64]=Ce[106]=1,Se[64]=Se[106]=0,oe[64]=oe[106]=-1,ae[64]=ae[106]=0,se[64]=se[106]=1,ke[2]=ke[168]=0,Ce[2]=Ce[168]=-1,Se[2]=Se[168]=1,Me[2]=Me[168]=0,Te[2]=Te[168]=-1,Ee[2]=Ee[168]=0,ye[2]=ye[168]=-1,ve[2]=ve[168]=0,be[2]=be[168]=0,_e[2]=_e[168]=-1,we[2]=we[168]=0,xe[2]=xe[168]=1,de[8]=de[162]=0,pe[8]=pe[162]=-1,he[8]=he[162]=0,fe[8]=fe[162]=0,me[8]=me[162]=-1,ge[8]=ge[162]=1,ye[8]=ye[162]=1,ve[8]=ve[162]=0,be[8]=be[162]=1,_e[8]=_e[162]=1,we[8]=we[162]=0,xe[8]=xe[162]=0,de[32]=de[138]=0,pe[32]=pe[138]=1,he[32]=he[138]=1,fe[32]=fe[138]=0,me[32]=me[138]=1,ge[32]=ge[138]=0,oe[32]=oe[138]=1,ae[32]=ae[138]=0,se[32]=se[138]=0,le[32]=le[138]=1,ce[32]=ce[138]=0,ue[32]=ue[138]=1,Me[128]=Me[42]=0,Te[128]=Te[42]=1,Ee[128]=Ee[42]=1,ke[128]=ke[42]=0,Ce[128]=Ce[42]=1,Se[128]=Se[42]=0,oe[128]=oe[42]=-1,ae[128]=ae[42]=0,se[128]=se[42]=1,le[128]=le[42]=-1,ce[128]=ce[42]=0,ue[128]=ue[42]=0,fe[5]=fe[165]=-1,me[5]=me[165]=0,ge[5]=ge[165]=0,Me[5]=Me[165]=1,Te[5]=Te[165]=0,Ee[5]=Ee[165]=0,_e[20]=_e[150]=0,we[20]=we[150]=1,xe[20]=xe[150]=1,le[20]=le[150]=0,ce[20]=ce[150]=-1,ue[20]=ue[150]=1,de[80]=de[90]=-1,pe[80]=pe[90]=0,he[80]=he[90]=1,ke[80]=ke[90]=1,Ce[80]=Ce[90]=0,Se[80]=Se[90]=1,ye[65]=ye[105]=0,ve[65]=ve[105]=1,be[65]=be[105]=0,oe[65]=oe[105]=0,ae[65]=ae[105]=-1,se[65]=se[105]=0,de[160]=de[10]=-1,pe[160]=pe[10]=0,he[160]=he[10]=1,fe[160]=fe[10]=-1,me[160]=me[10]=0,ge[160]=ge[10]=0,Me[160]=Me[10]=1,Te[160]=Te[10]=0,Ee[160]=Ee[10]=0,ke[160]=ke[10]=1,Ce[160]=Ce[10]=0,Se[160]=Se[10]=1,_e[130]=_e[40]=0,we[130]=we[40]=1,xe[130]=xe[40]=1,ye[130]=ye[40]=0,ve[130]=ve[40]=1,be[130]=be[40]=0,oe[130]=oe[40]=0,ae[130]=ae[40]=-1,se[130]=se[40]=0,le[130]=le[40]=0,ce[130]=ce[40]=-1,ue[130]=ue[40]=1,fe[37]=fe[133]=0,me[37]=me[133]=1,ge[37]=ge[133]=1,Me[37]=Me[133]=0,Te[37]=Te[133]=1,Ee[37]=Ee[133]=0,oe[37]=oe[133]=-1,ae[37]=ae[133]=0,se[37]=se[133]=0,le[37]=le[133]=1,ce[37]=ce[133]=0,ue[37]=ue[133]=0,_e[148]=_e[22]=-1,we[148]=we[22]=0,xe[148]=xe[22]=0,Me[148]=Me[22]=0,Te[148]=Te[22]=-1,Ee[148]=Ee[22]=1,ke[148]=ke[22]=0,Ce[148]=Ce[22]=1,Se[148]=Se[22]=1,le[148]=le[22]=-1,ce[148]=ce[22]=0,ue[148]=ue[22]=1,de[82]=de[88]=0,pe[82]=pe[88]=-1,he[82]=he[88]=1,_e[82]=_e[88]=1,we[82]=we[88]=0,xe[82]=xe[88]=1,ye[82]=ye[88]=-1,ve[82]=ve[88]=0,be[82]=be[88]=1,ke[82]=ke[88]=0,Ce[82]=Ce[88]=-1,Se[82]=Se[88]=0,de[73]=de[97]=0,pe[73]=pe[97]=1,he[73]=he[97]=0,fe[73]=fe[97]=0,me[73]=me[97]=-1,ge[73]=ge[97]=0,ye[73]=ye[97]=1,ve[73]=ve[97]=0,be[73]=be[97]=0,oe[73]=oe[97]=1,ae[73]=ae[97]=0,se[73]=se[97]=1,de[145]=de[25]=0,pe[145]=pe[25]=-1,he[145]=he[25]=0,ye[145]=ye[25]=1,ve[145]=ve[25]=0,be[145]=be[25]=1,Me[145]=Me[25]=0,Te[145]=Te[25]=1,Ee[145]=Ee[25]=1,le[145]=le[25]=-1,ce[145]=ce[25]=0,ue[145]=ue[25]=0,fe[70]=fe[100]=0,me[70]=me[100]=1,ge[70]=ge[100]=0,_e[70]=_e[100]=-1,we[70]=we[100]=0,xe[70]=xe[100]=1,ke[70]=ke[100]=0,Ce[70]=Ce[100]=-1,Se[70]=Se[100]=1,oe[70]=oe[100]=1,ae[70]=ae[100]=0,se[70]=se[100]=0,fe[101]=fe[69]=0,me[101]=me[69]=1,ge[101]=ge[69]=0,oe[101]=oe[69]=1,ae[101]=ae[69]=0,se[101]=se[69]=0,Me[149]=Me[21]=0,Te[149]=Te[21]=1,Ee[149]=Ee[21]=1,le[149]=le[21]=-1,ce[149]=ce[21]=0,ue[149]=ue[21]=0,_e[86]=_e[84]=-1,we[86]=we[84]=0,xe[86]=xe[84]=1,ke[86]=ke[84]=0,Ce[86]=Ce[84]=-1,Se[86]=Se[84]=1,de[89]=de[81]=0,pe[89]=pe[81]=-1,he[89]=he[81]=0,ye[89]=ye[81]=1,ve[89]=ve[81]=0,be[89]=be[81]=1,de[96]=de[74]=0,pe[96]=pe[74]=1,he[96]=he[74]=0,fe[96]=fe[74]=-1,me[96]=me[74]=0,ge[96]=ge[74]=1,ke[96]=ke[74]=1,Ce[96]=Ce[74]=0,Se[96]=Se[74]=0,oe[96]=oe[74]=1,ae[96]=ae[74]=0,se[96]=se[74]=1,de[24]=de[146]=0,pe[24]=pe[146]=-1,he[24]=he[146]=1,_e[24]=_e[146]=1,we[24]=we[146]=0,xe[24]=xe[146]=1,ye[24]=ye[146]=0,ve[24]=ve[146]=1,be[24]=be[146]=1,le[24]=le[146]=0,ce[24]=ce[146]=-1,ue[24]=ue[146]=0,fe[6]=fe[164]=-1,me[6]=me[164]=0,ge[6]=ge[164]=1,_e[6]=_e[164]=-1,we[6]=we[164]=0,xe[6]=xe[164]=0,Me[6]=Me[164]=0,Te[6]=Te[164]=-1,Ee[6]=Ee[164]=1,ke[6]=ke[164]=1,Ce[6]=Ce[164]=0,Se[6]=Se[164]=0,ye[129]=ye[41]=0,ve[129]=ve[41]=1,be[129]=be[41]=1,Me[129]=Me[41]=0,Te[129]=Te[41]=1,Ee[129]=Ee[41]=0,oe[129]=oe[41]=-1,ae[129]=ae[41]=0,se[129]=se[41]=0,le[129]=le[41]=0,ce[129]=ce[41]=-1,ue[129]=ue[41]=0,_e[66]=_e[104]=0,we[66]=we[104]=1,xe[66]=xe[104]=0,ye[66]=ye[104]=-1,ve[66]=ve[104]=0,be[66]=be[104]=1,ke[66]=ke[104]=0,Ce[66]=Ce[104]=-1,Se[66]=Se[104]=0,oe[66]=oe[104]=0,ae[66]=ae[104]=-1,se[66]=se[104]=1,de[144]=de[26]=-1,pe[144]=pe[26]=0,he[144]=he[26]=0,Me[144]=Me[26]=1,Te[144]=Te[26]=0,Ee[144]=Ee[26]=1,ke[144]=ke[26]=0,Ce[144]=Ce[26]=1,Se[144]=Se[26]=1,le[144]=le[26]=-1,ce[144]=ce[26]=0,ue[144]=ue[26]=1,fe[36]=fe[134]=0,me[36]=me[134]=1,ge[36]=ge[134]=1,_e[36]=_e[134]=0,we[36]=we[134]=1,xe[36]=xe[134]=0,oe[36]=oe[134]=0,ae[36]=ae[134]=-1,se[36]=se[134]=1,le[36]=le[134]=1,ce[36]=ce[134]=0,ue[36]=ue[134]=0,de[9]=de[161]=-1,pe[9]=pe[161]=0,he[9]=he[161]=0,fe[9]=fe[161]=0,me[9]=me[161]=-1,ge[9]=ge[161]=0,ye[9]=ye[161]=1,ve[9]=ve[161]=0,be[9]=be[161]=0,Me[9]=Me[161]=1,Te[9]=Te[161]=0,Ee[9]=Ee[161]=1,de[136]=0,pe[136]=1,he[136]=1,fe[136]=0,me[136]=1,ge[136]=0,_e[136]=-1,we[136]=0,xe[136]=1,ye[136]=-1,ve[136]=0,be[136]=0,Me[136]=0,Te[136]=-1,Ee[136]=0,ke[136]=0,Ce[136]=-1,Se[136]=1,oe[136]=1,ae[136]=0,se[136]=0,le[136]=1,ce[136]=0,ue[136]=1,de[34]=0,pe[34]=-1,he[34]=0,fe[34]=0,me[34]=-1,ge[34]=1,_e[34]=1,we[34]=0,xe[34]=0,ye[34]=1,ve[34]=0,be[34]=1,Me[34]=0,Te[34]=1,Ee[34]=1,ke[34]=0,Ce[34]=1,Se[34]=0,oe[34]=-1,ae[34]=0,se[34]=1,le[34]=-1,ce[34]=0,ue[34]=0,de[35]=0,pe[35]=1,he[35]=1,fe[35]=0,me[35]=-1,ge[35]=1,_e[35]=1,we[35]=0,xe[35]=0,ye[35]=-1,ve[35]=0,be[35]=0,Me[35]=0,Te[35]=-1,Ee[35]=0,ke[35]=0,Ce[35]=1,Se[35]=0,oe[35]=-1,ae[35]=0,se[35]=1,le[35]=1,ce[35]=0,ue[35]=1,de[153]=0,pe[153]=1,he[153]=1,ye[153]=-1,ve[153]=0,be[153]=0,Me[153]=0,Te[153]=-1,Ee[153]=0,le[153]=1,ce[153]=0,ue[153]=1,fe[102]=0,me[102]=-1,ge[102]=1,_e[102]=1,we[102]=0,xe[102]=0,ke[102]=0,Ce[102]=1,Se[102]=0,oe[102]=-1,ae[102]=0,se[102]=1,de[155]=0,pe[155]=-1,he[155]=0,ye[155]=1,ve[155]=0,be[155]=1,Me[155]=0,Te[155]=1,Ee[155]=1,le[155]=-1,ce[155]=0,ue[155]=0,fe[103]=0,me[103]=1,ge[103]=0,_e[103]=-1,we[103]=0,xe[103]=1,ke[103]=0,Ce[103]=-1,Se[103]=1,oe[103]=1,ae[103]=0,se[103]=0,de[152]=0,pe[152]=1,he[152]=1,_e[152]=-1,we[152]=0,xe[152]=1,ye[152]=-1,ve[152]=0,be[152]=0,Me[152]=0,Te[152]=-1,Ee[152]=0,ke[152]=0,Ce[152]=-1,Se[152]=1,le[152]=1,ce[152]=0,ue[152]=1,de[156]=0,pe[156]=-1,he[156]=1,_e[156]=1,we[156]=0,xe[156]=1,ye[156]=-1,ve[156]=0,be[156]=0,Me[156]=0,Te[156]=-1,Ee[156]=0,ke[156]=0,Ce[156]=1,Se[156]=1,le[156]=-1,ce[156]=0,ue[156]=1,de[137]=0,pe[137]=1,he[137]=1,fe[137]=0,me[137]=1,ge[137]=0,ye[137]=-1,ve[137]=0,be[137]=0,Me[137]=0,Te[137]=-1,Ee[137]=0,oe[137]=1,ae[137]=0,se[137]=0,le[137]=1,ce[137]=0,ue[137]=1,de[139]=0,pe[139]=1,he[139]=1,fe[139]=0,me[139]=-1,ge[139]=0,ye[139]=1,ve[139]=0,be[139]=0,Me[139]=0,Te[139]=1,Ee[139]=0,oe[139]=-1,ae[139]=0,se[139]=0,le[139]=1,ce[139]=0,ue[139]=1,de[98]=0,pe[98]=-1,he[98]=0,fe[98]=0,me[98]=-1,ge[98]=1,_e[98]=1,we[98]=0,xe[98]=0,ye[98]=1,ve[98]=0,be[98]=1,ke[98]=0,Ce[98]=1,Se[98]=0,oe[98]=-1,ae[98]=0,se[98]=1,de[99]=0,pe[99]=1,he[99]=0,fe[99]=0,me[99]=-1,ge[99]=1,_e[99]=1,we[99]=0,xe[99]=0,ye[99]=-1,ve[99]=0,be[99]=1,ke[99]=0,Ce[99]=-1,Se[99]=0,oe[99]=1,ae[99]=0,se[99]=1,fe[38]=0,me[38]=-1,ge[38]=1,_e[38]=1,we[38]=0,xe[38]=0,Me[38]=0,Te[38]=1,Ee[38]=1,ke[38]=0,Ce[38]=1,Se[38]=0,oe[38]=-1,ae[38]=0,se[38]=1,le[38]=-1,ce[38]=0,ue[38]=0,fe[39]=0,me[39]=1,ge[39]=1,_e[39]=-1,we[39]=0,xe[39]=0,Me[39]=0,Te[39]=-1,Ee[39]=1,ke[39]=0,Ce[39]=1,Se[39]=0,oe[39]=-1,ae[39]=0,se[39]=1,le[39]=1,ce[39]=0,ue[39]=0;var Pe=function(e){return[[e.bottomleft,0],[0,0],[0,e.leftbottom]]},Ie=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0]]},Oe=function(e){return[[e.topright,1],[1,1],[1,e.righttop]]},Le=function(e){return[[0,e.lefttop],[0,1],[e.topleft,1]]},Re=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop]]},je=function(e){return[[e.bottomright,0],[e.bottomleft,0],[1,e.righttop],[1,e.rightbottom]]},De=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.topleft,1],[e.topright,1]]},Ae=function(e){return[[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},Ne=[],Fe=[],ze=[],Be=[],Ue=[],$e=[],Ve=[],qe=[];Be[1]=Ue[1]=18,Be[169]=Ue[169]=18,ze[4]=Fe[4]=12,ze[166]=Fe[166]=12,Ne[16]=qe[16]=4,Ne[154]=qe[154]=4,$e[64]=Ve[64]=22,$e[106]=Ve[106]=22,ze[2]=$e[2]=17,Be[2]=Ue[2]=18,ze[168]=$e[168]=17,Be[168]=Ue[168]=18,Ne[8]=Be[8]=9,Fe[8]=ze[8]=12,Ne[162]=Be[162]=9,Fe[162]=ze[162]=12,Ne[32]=qe[32]=4,Fe[32]=Ve[32]=1,Ne[138]=qe[138]=4,Fe[138]=Ve[138]=1,Ue[128]=qe[128]=21,$e[128]=Ve[128]=22,Ue[42]=qe[42]=21,$e[42]=Ve[42]=22,Fe[5]=Ue[5]=14,Fe[165]=Ue[165]=14,ze[20]=qe[20]=6,ze[150]=qe[150]=6,Ne[80]=$e[80]=11,Ne[90]=$e[90]=11,Be[65]=Ve[65]=3,Be[105]=Ve[105]=3,Ne[160]=$e[160]=11,Fe[160]=Ue[160]=14,Ne[10]=$e[10]=11,Fe[10]=Ue[10]=14,ze[130]=qe[130]=6,Be[130]=Ve[130]=3,ze[40]=qe[40]=6,Be[40]=Ve[40]=3,Fe[101]=Ve[101]=1,Fe[69]=Ve[69]=1,Ue[149]=qe[149]=21,Ue[21]=qe[21]=21,ze[86]=$e[86]=17,ze[84]=$e[84]=17,Ne[89]=Be[89]=9,Ne[81]=Be[81]=9,Ne[96]=Ve[96]=0,Fe[96]=$e[96]=15,Ne[74]=Ve[74]=0,Fe[74]=$e[74]=15,Ne[24]=ze[24]=8,Be[24]=qe[24]=7,Ne[146]=ze[146]=8,Be[146]=qe[146]=7,Fe[6]=$e[6]=15,ze[6]=Ue[6]=16,Fe[164]=$e[164]=15,ze[164]=Ue[164]=16,Be[129]=qe[129]=7,Ue[129]=Ve[129]=20,Be[41]=qe[41]=7,Ue[41]=Ve[41]=20,ze[66]=Ve[66]=2,Be[66]=$e[66]=19,ze[104]=Ve[104]=2,Be[104]=$e[104]=19,Ne[144]=Ue[144]=10,$e[144]=qe[144]=23,Ne[26]=Ue[26]=10,$e[26]=qe[26]=23,Fe[36]=qe[36]=5,ze[36]=Ve[36]=2,Fe[134]=qe[134]=5,ze[134]=Ve[134]=2,Ne[9]=Ue[9]=10,Fe[9]=Be[9]=13,Ne[161]=Ue[161]=10,Fe[161]=Be[161]=13,Fe[37]=qe[37]=5,Ue[37]=Ve[37]=20,Fe[133]=qe[133]=5,Ue[133]=Ve[133]=20,ze[148]=Ue[148]=16,$e[148]=qe[148]=23,ze[22]=Ue[22]=16,$e[22]=qe[22]=23,Ne[82]=ze[82]=8,Be[82]=$e[82]=19,Ne[88]=ze[88]=8,Be[88]=$e[88]=19,Ne[73]=Ve[73]=0,Fe[73]=Be[73]=13,Ne[97]=Ve[97]=0,Fe[97]=Be[97]=13,Ne[145]=Be[145]=9,Ue[145]=qe[145]=21,Ne[25]=Be[25]=9,Ue[25]=qe[25]=21,Fe[70]=Ve[70]=1,ze[70]=$e[70]=17,Fe[100]=Ve[100]=1,ze[100]=$e[100]=17,Ne[34]=Be[34]=9,Fe[34]=ze[34]=12,Ue[34]=qe[34]=21,$e[34]=Ve[34]=22,Ne[136]=qe[136]=4,Fe[136]=Ve[136]=1,ze[136]=$e[136]=17,Be[136]=Ue[136]=18,Ne[35]=qe[35]=4,Fe[35]=ze[35]=12,Be[35]=Ue[35]=18,$e[35]=Ve[35]=22,Ne[153]=qe[153]=4,Be[153]=Ue[153]=18,Fe[102]=ze[102]=12,$e[102]=Ve[102]=22,Ne[155]=Be[155]=9,Ue[155]=qe[155]=23,Fe[103]=Ve[103]=1,ze[103]=$e[103]=17,Ne[152]=qe[152]=4,ze[152]=$e[152]=17,Be[152]=Ue[152]=18,Ne[156]=ze[156]=8,Be[156]=Ue[156]=18,$e[156]=qe[156]=23,Ne[137]=qe[137]=4,Fe[137]=Ve[137]=1,Be[137]=Ue[137]=18,Ne[139]=qe[139]=4,Fe[139]=Be[139]=13,Ue[139]=Ve[139]=20,Ne[98]=Be[98]=9,Fe[98]=ze[98]=12,$e[98]=Ve[98]=22,Ne[99]=Ve[99]=0,Fe[99]=ze[99]=12,Be[99]=$e[99]=19,Fe[38]=ze[38]=12,Ue[38]=qe[38]=21,$e[38]=Ve[38]=22,Fe[39]=qe[39]=5,ze[39]=Ue[39]=16,$e[39]=Ve[39]=22;var Ze=[];Ze[1]=Ze[169]=Pe,Ze[4]=Ze[166]=Ie,Ze[16]=Ze[154]=Oe,Ze[64]=Ze[106]=Le,Ze[168]=Ze[2]=Re,Ze[162]=Ze[8]=je,Ze[138]=Ze[32]=De,Ze[42]=Ze[128]=Ae,Ze[5]=Ze[165]=function(e){return[[0,0],[0,e.leftbottom],[1,e.rightbottom],[1,0]]},Ze[20]=Ze[150]=function(e){return[[1,0],[e.bottomright,0],[e.topright,1],[1,1]]},Ze[80]=Ze[90]=function(e){return[[1,1],[1,e.righttop],[0,e.lefttop],[0,1]]},Ze[65]=Ze[105]=function(e){return[[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},Ze[160]=Ze[10]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.leftbottom],[0,e.lefttop]]},Ze[130]=Ze[40]=function(e){return[[e.topleft,1],[e.topright,1],[e.bottomright,0],[e.bottomleft,0]]},Ze[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},Ze[101]=Ze[69]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,1],[e.topleft,1]]},Ze[149]=Ze[21]=function(e){return[[e.topright,1],[1,1],[1,0],[0,0],[0,e.leftbottom]]},Ze[86]=Ze[84]=function(e){return[[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[1,1]]},Ze[89]=Ze[81]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,1]]},Ze[96]=Ze[74]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.lefttop],[0,1],[e.topleft,1]]},Ze[24]=Ze[146]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[e.topright,1]]},Ze[6]=Ze[164]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop]]},Ze[129]=Ze[41]=function(e){return[[e.topright,1],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1]]},Ze[66]=Ze[104]=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ze[144]=Ze[26]=function(e){return[[1,1],[1,e.righttop],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ze[36]=Ze[134]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[e.topleft,1],[e.topright,1]]},Ze[9]=Ze[161]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom]]},Ze[37]=Ze[133]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},Ze[148]=Ze[22]=function(e){return[[1,1],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ze[82]=Ze[88]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1]]},Ze[73]=Ze[97]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},Ze[145]=Ze[25]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},Ze[70]=Ze[100]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ze[34]=function(e){return[Ae(e),je(e)]},Ze[35]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},Ze[136]=function(e){return[De(e),Re(e)]},Ze[153]=function(e){return[Oe(e),Pe(e)]},Ze[102]=function(e){return[Ie(e),Le(e)]},Ze[155]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},Ze[103]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ze[152]=function(e){return[Oe(e),Re(e)]},Ze[156]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ze[137]=function(e){return[De(e),Pe(e)]},Ze[139]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},Ze[98]=function(e){return[je(e),Le(e)]},Ze[99]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ze[38]=function(e){return[Ie(e),Ae(e)]},Ze[39]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]};function He(e,t,n){var r,i=t[0]-e[0],o=t[1]-e[1],a=n[0]-t[0],s=n[1]-t[1];return((r=i*s-a*o)>0)-(r<0)||+r}function Ge(e,t){return t.geometry.coordinates[0].every((function(t){return B(u(t),e)}))}var We=function(){function e(t){this.id=e.buildId(t),this.coordinates=t,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return e.buildId=function(e){return e.join(",")},e.prototype.removeInnerEdge=function(e){this.innerEdges=this.innerEdges.filter((function(t){return t.from.id!==e.from.id}))},e.prototype.removeOuterEdge=function(e){this.outerEdges=this.outerEdges.filter((function(t){return t.to.id!==e.to.id}))},e.prototype.addOuterEdge=function(e){this.outerEdges.push(e),this.outerEdgesSorted=!1},e.prototype.sortOuterEdges=function(){var e=this;this.outerEdgesSorted||(this.outerEdges.sort((function(t,n){var r=t.to,i=n.to;if(r.coordinates[0]-e.coordinates[0]>=0&&i.coordinates[0]-e.coordinates[0]<0)return 1;if(r.coordinates[0]-e.coordinates[0]<0&&i.coordinates[0]-e.coordinates[0]>=0)return-1;if(r.coordinates[0]-e.coordinates[0]===0&&i.coordinates[0]-e.coordinates[0]===0)return r.coordinates[1]-e.coordinates[1]>=0||i.coordinates[1]-e.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=He(e.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-e.coordinates[0],2)+Math.pow(r.coordinates[1]-e.coordinates[1],2)-(Math.pow(i.coordinates[0]-e.coordinates[0],2)+Math.pow(i.coordinates[1]-e.coordinates[1],2))})),this.outerEdgesSorted=!0)},e.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},e.prototype.getOuterEdge=function(e){return this.sortOuterEdges(),this.outerEdges[e]},e.prototype.addInnerEdge=function(e){this.innerEdges.push(e)},e}();const Ye=We;const Ke=function(){function e(e,t){this.from=e,this.to=t,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return e.prototype.getSymetric=function(){return this.symetric||(this.symetric=new e(this.to,this.from),this.symetric.symetric=this),this.symetric},e.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},e.prototype.isEqual=function(e){return this.from.id===e.from.id&&this.to.id===e.to.id},e.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},e.prototype.toLineString=function(){return f([this.from.coordinates,this.to.coordinates])},e.prototype.compareTo=function(e){return He(e.from.coordinates,e.to.coordinates,this.to.coordinates)},e}();var Xe=function(){function e(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return e.prototype.push=function(e){this.edges.push(e),this.polygon=this.envelope=void 0},e.prototype.get=function(e){return this.edges[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.edges.forEach(e)},e.prototype.map=function(e){return this.edges.map(e)},e.prototype.some=function(e){return this.edges.some(e)},e.prototype.isValid=function(){return!0},e.prototype.isHole=function(){var e=this,t=this.edges.reduce((function(t,n,r){return n.from.coordinates[1]>e.edges[t].from.coordinates[1]&&(t=r),t}),0),n=(0===t?this.length:t)-1,r=(t+1)%this.length,i=He(this.edges[n].from.coordinates,this.edges[t].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0},e.prototype.toMultiPoint=function(){return v(this.edges.map((function(e){return e.from.coordinates})))},e.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var e=this.edges.map((function(e){return e.from.coordinates}));return e.push(this.edges[0].from.coordinates),this.polygon=p([e])},e.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=q(this.toPolygon())},e.findEdgeRingContaining=function(e,t){var n,r,i=e.getEnvelope();return t.forEach((function(t){var o=t.getEnvelope();if(r&&(n=r.getEnvelope()),!function(e,t){var n=e.geometry.coordinates[0].map((function(e){return e[0]})),r=e.geometry.coordinates[0].map((function(e){return e[1]})),i=t.geometry.coordinates[0].map((function(e){return e[0]})),o=t.geometry.coordinates[0].map((function(e){return e[1]}));return Math.max.apply(null,n)===Math.max.apply(null,i)&&Math.max.apply(null,r)===Math.max.apply(null,o)&&Math.min.apply(null,n)===Math.min.apply(null,i)&&Math.min.apply(null,r)===Math.min.apply(null,o)}(o,i)&&Ge(o,i)){for(var a=e.map((function(e){return e.from.coordinates})),s=void 0,l=function(e){t.some((function(t){return n=e,r=t.from.coordinates,n[0]===r[0]&&n[1]===r[1];var n,r}))||(s=e)},c=0,d=a;c<d.length;c++){l(d[c])}s&&t.inside(u(s))&&(r&&!Ge(n,o)||(r=t))}})),r},e.prototype.inside=function(e){return B(e,this.toPolygon())},e}();const Je=Xe;!function(){function e(){this.edges=[],this.nodes={}}e.fromGeoJson=function(t){!function(e){if(!e)throw new Error("No geojson passed");if("FeatureCollection"!==e.type&&"GeometryCollection"!==e.type&&"MultiLineString"!==e.type&&"LineString"!==e.type&&"Feature"!==e.type)throw new Error("Invalid input type '"+e.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(t);var n=new e;return A(t,(function(e){!function(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)}(e,"LineString","Graph::fromGeoJson"),function(e,t,n,r){var i=n;j(e,(function(e,r,o,a,s){i=0===r&&void 0===n?e:t(i,e,r,o,a,s)}),r)}(e,(function(e,t){if(e){var r=n.getNode(e),i=n.getNode(t);n.addEdge(r,i)}return t}))})),n},e.prototype.getNode=function(e){var t=Ye.buildId(e),n=this.nodes[t];return n||(n=this.nodes[t]=new Ye(e)),n},e.prototype.addEdge=function(e,t){var n=new Ke(e,t),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},e.prototype.deleteDangles=function(){var e=this;Object.keys(this.nodes).map((function(t){return e.nodes[t]})).forEach((function(t){return e._removeIfDangle(t)}))},e.prototype._removeIfDangle=function(e){var t=this;if(e.innerEdges.length<=1){var n=e.getOuterEdges().map((function(e){return e.to}));this.removeNode(e),n.forEach((function(e){return t._removeIfDangle(e)}))}},e.prototype.deleteCutEdges=function(){var e=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(t){t.label===t.symetric.label&&(e.removeEdge(t.symetric),e.removeEdge(t))}))},e.prototype._computeNextCWEdges=function(e){var t=this;"undefined"===typeof e?Object.keys(this.nodes).forEach((function(e){return t._computeNextCWEdges(t.nodes[e])})):e.getOuterEdges().forEach((function(t,n){e.getOuterEdge((0===n?e.getOuterEdges().length:n)-1).symetric.next=t}))},e.prototype._computeNextCCWEdges=function(e,t){for(var n,r,i=e.getOuterEdges(),o=i.length-1;o>=0;--o){var a=i[o],s=a.symetric,l=void 0,c=void 0;a.label===t&&(l=a),s.label===t&&(c=s),l&&c&&(c&&(r=c),l&&(r&&(r.next=l,r=void 0),n||(n=l)))}r&&(r.next=n)},e.prototype._findLabeledEdgeRings=function(){var e=[],t=0;return this.edges.forEach((function(n){if(!(n.label>=0)){e.push(n);var r=n;do{r.label=t,r=r.next}while(!n.isEqual(r));t++}})),e},e.prototype.getEdgeRings=function(){var e=this;this._computeNextCWEdges(),this.edges.forEach((function(e){e.label=void 0})),this._findLabeledEdgeRings().forEach((function(t){e._findIntersectionNodes(t).forEach((function(n){e._computeNextCCWEdges(n,t.label)}))}));var t=[];return this.edges.forEach((function(n){n.ring||t.push(e._findEdgeRing(n))})),t},e.prototype._findIntersectionNodes=function(e){var t=[],n=e,r=function(){var r=0;n.from.getOuterEdges().forEach((function(t){t.label===e.label&&++r})),r>1&&t.push(n.from),n=n.next};do{r()}while(!e.isEqual(n));return t},e.prototype._findEdgeRing=function(e){var t=e,n=new Je;do{n.push(t),t.ring=n,t=t.next}while(!e.isEqual(t));return n},e.prototype.removeNode=function(e){var t=this;e.getOuterEdges().forEach((function(e){return t.removeEdge(e)})),e.innerEdges.forEach((function(e){return t.removeEdge(e)})),delete this.nodes[e.id]},e.prototype.removeEdge=function(e){this.edges=this.edges.filter((function(t){return!t.isEqual(e)})),e.deleteEdge()}}();n(903);n(42781);n(90427);function Qe(e){for(var t=e,n=[];t.parent;)n.unshift(t),t=t.parent;return n}var et={search:function(e,t,n,r){e.cleanDirty();var i=(r=r||{}).heuristic||et.heuristics.manhattan,o=r.closest||!1,a=new rt((function(e){return e.f})),s=t;for(t.h=i(t,n),a.push(t);a.size()>0;){var l=a.pop();if(l===n)return Qe(l);l.closed=!0;for(var c=e.neighbors(l),u=0,d=c.length;u<d;++u){var p=c[u];if(!p.closed&&!p.isWall()){var h=l.g+p.getCost(l),f=p.visited;(!f||h<p.g)&&(p.visited=!0,p.parent=l,p.h=p.h||i(p,n),p.g=h,p.f=p.g+p.h,e.markDirty(p),o&&(p.h<s.h||p.h===s.h&&p.g<s.g)&&(s=p),f?a.rescoreElement(p):a.push(p))}}}return o?Qe(s):[]},heuristics:{manhattan:function(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},diagonal:function(e,t){var n=Math.sqrt(2),r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(e){e.f=0,e.g=0,e.h=0,e.visited=!1,e.closed=!1,e.parent=null}};function tt(e,t){t=t||{},this.nodes=[],this.diagonal=!!t.diagonal,this.grid=[];for(var n=0;n<e.length;n++){this.grid[n]=[];for(var r=0,i=e[n];r<i.length;r++){var o=new nt(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function nt(e,t,n){this.x=e,this.y=t,this.weight=n}function rt(e){this.content=[],this.scoreFunction=e}tt.prototype.init=function(){this.dirtyNodes=[];for(var e=0;e<this.nodes.length;e++)et.cleanNode(this.nodes[e])},tt.prototype.cleanDirty=function(){for(var e=0;e<this.dirtyNodes.length;e++)et.cleanNode(this.dirtyNodes[e]);this.dirtyNodes=[]},tt.prototype.markDirty=function(e){this.dirtyNodes.push(e)},tt.prototype.neighbors=function(e){var t=[],n=e.x,r=e.y,i=this.grid;return i[n-1]&&i[n-1][r]&&t.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&t.push(i[n+1][r]),i[n]&&i[n][r-1]&&t.push(i[n][r-1]),i[n]&&i[n][r+1]&&t.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&t.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&t.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&t.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&t.push(i[n+1][r+1])),t},tt.prototype.toString=function(){for(var e,t,n,r,i=[],o=this.grid,a=0,s=o.length;a<s;a++){for(e=[],n=0,r=(t=o[a]).length;n<r;n++)e.push(t[n].weight);i.push(e.join(" "))}return i.join("\n")},nt.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},nt.prototype.getCost=function(e){return e&&e.x!==this.x&&e.y!==this.y?1.41421*this.weight:this.weight},nt.prototype.isWall=function(){return 0===this.weight},rt.prototype={push:function(e){this.content.push(e),this.sinkDown(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},remove:function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},size:function(){return this.content.length},rescoreElement:function(e){this.sinkDown(this.content.indexOf(e))},sinkDown:function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},bubbleUp:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i,o=e+1<<1,a=o-1,s=null;if(a<t){var l=this.content[a];(i=this.scoreFunction(l))<r&&(s=a)}if(o<t){var c=this.content[o];this.scoreFunction(c)<(null===s?r:i)&&(s=o)}if(null===s)break;this.content[e]=this.content[s],this.content[s]=n,e=s}}};function it(){this._=null}function ot(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function at(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function st(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function lt(e){for(;e.L;)e=e.L;return e}it.prototype={constructor:it,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=lt(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(at(this,n),n=(e=n).U),n.C=!1,r.C=!0,st(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(st(this,n),n=(e=n).U),n.C=!1,r.C=!0,at(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?lt(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,at(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,st(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,at(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,st(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,at(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,st(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};const ct=it;function ut(e,t,n,r){var i=[null,null],o=jt.push(i)-1;return i.left=e,i.right=t,n&&pt(i,e,t,n),r&&pt(i,t,e,r),Lt[e.index].halfedges.push(o),Lt[t.index].halfedges.push(o),i}function dt(e,t,n){var r=[t,n];return r.left=e,r}function pt(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function ht(e,t,n,r,i){var o,a=e[0],s=e[1],l=a[0],c=a[1],u=0,d=1,p=s[0]-l,h=s[1]-c;if(o=t-l,p||!(o>0)){if(o/=p,p<0){if(o<u)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>u&&(u=o)}if(o=r-l,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>u&&(u=o)}else if(p>0){if(o<u)return;o<d&&(d=o)}if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<u)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>u&&(u=o)}if(o=i-c,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>u&&(u=o)}else if(h>0){if(o<u)return;o<d&&(d=o)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*p,c+u*h]),d<1&&(e[1]=[l+d*p,c+d*h]),!0)}}}}}function ft(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],p=c[1],h=u[0],f=u[1],m=(d+h)/2,g=(p+f)/2;if(f===p){if(m<t||m>=r)return;if(d>h){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]<n)return}else l=[m,i];o=[m,n]}}else if(s=g-(a=(d-h)/(f-p))*m,a<-1||a>1)if(d>h){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]<n)return}else l=[(i-s)/a,i];o=[(n-s)/a,n]}else if(p<f){if(l){if(l[0]>=r)return}else l=[t,a*t+s];o=[r,a*r+s]}else{if(l){if(l[0]<t)return}else l=[r,a*r+s];o=[t,a*t+s]}return e[0]=l,e[1]=o,!0}function mt(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function gt(e,t){return t[+(t.left!==e.site)]}function yt(e,t){return t[+(t.left===e.site)]}var vt,bt=[];function _t(){ot(this),this.x=this.y=this.arc=this.site=this.cy=null}function wt(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,c=r[1]-s,u=o[0]-a,d=o[1]-s,p=2*(l*d-c*u);if(!(p>=-At)){var h=l*l+c*c,f=u*u+d*d,m=(d*h-c*f)/p,g=(l*f-u*h)/p,y=bt.pop()||new _t;y.arc=e,y.site=i,y.x=m+a,y.y=(y.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=y;for(var v=null,b=Rt._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}Rt.insert(v,y),v||(vt=y)}}}}function xt(e){var t=e.circle;t&&(t.P||(vt=t.N),Rt.remove(t),bt.push(t),ot(t),e.circle=null)}var kt=[];function Ct(){ot(this),this.edge=this.site=this.circle=null}function St(e){var t=kt.pop()||new Ct;return t.site=e,t}function Mt(e){xt(e),Ot.remove(e),kt.push(e),ot(e)}function Tt(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];Mt(e);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<Dt&&Math.abs(r-l.circle.cy)<Dt;)o=l.P,s.unshift(l),Mt(l),l=o;s.unshift(l),xt(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<Dt&&Math.abs(r-c.circle.cy)<Dt;)a=c.N,s.push(c),Mt(c),c=a;s.push(c),xt(c);var u,d=s.length;for(u=1;u<d;++u)c=s[u],l=s[u-1],pt(c.edge,l.site,c.site,i);l=s[0],(c=s[d-1]).edge=ut(l.site,c.site,null,i),wt(l),wt(c)}function Et(e){for(var t,n,r,i,o=e[0],a=e[1],s=Ot._;s;)if((r=Pt(s,a)-o)>Dt)s=s.L;else{if(!((i=o-It(s,a))>Dt)){r>-Dt?(t=s.P,n=s):i>-Dt?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Lt[e.index]={site:e,halfedges:[]}}(e);var l=St(e);if(Ot.insert(t,l),t||n){if(t===n)return xt(t),n=St(t.site),Ot.insert(l,n),l.edge=n.edge=ut(t.site,l.site),wt(t),void wt(n);if(n){xt(t),xt(n);var c=t.site,u=c[0],d=c[1],p=e[0]-u,h=e[1]-d,f=n.site,m=f[0]-u,g=f[1]-d,y=2*(p*g-h*m),v=p*p+h*h,b=m*m+g*g,_=[(g*v-h*b)/y+u,(p*b-m*v)/y+d];pt(n.edge,c,f,_),l.edge=ut(c,e,null,_),n.edge=ut(e,f,null,_),wt(t),wt(n)}else l.edge=ut(t.site,l.site)}}function Pt(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/o-1/c,p=u/c;return d?(-p+Math.sqrt(p*p-2*d*(u*u/(-2*c)-l+c/2+i-o/2)))/d+r:(r+s)/2}function It(e,t){var n=e.N;if(n)return Pt(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Ot,Lt,Rt,jt,Dt=1e-6,At=1e-12;function Nt(e,t){return t[1]-e[1]||t[0]-e[0]}function Ft(e,t){var n,r,i,o=e.sort(Nt).pop();for(jt=[],Lt=new Array(e.length),Ot=new ct,Rt=new ct;;)if(i=vt,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(Et(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;Tt(i.arc)}if(function(){for(var e,t,n,r,i=0,o=Lt.length;i<o;++i)if((e=Lt[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=mt(e,jt[t[n]]);for(a.sort((function(e,t){return s[t]-s[e]})),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],l=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var i,o=jt.length;o--;)ft(i=jt[o],e,t,n,r)&&ht(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>Dt||Math.abs(i[0][1]-i[1][1])>Dt)||delete jt[o]}(a,s,l,c),function(e,t,n,r){var i,o,a,s,l,c,u,d,p,h,f,m,g=Lt.length,y=!0;for(i=0;i<g;++i)if(o=Lt[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)jt[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)f=(h=yt(o,jt[l[s]]))[0],m=h[1],d=(u=gt(o,jt[l[++s%c]]))[0],p=u[1],(Math.abs(f-d)>Dt||Math.abs(m-p)>Dt)&&(l.splice(s,0,jt.push(dt(a,h,Math.abs(f-e)<Dt&&r-m>Dt?[e,Math.abs(d-e)<Dt?p:r]:Math.abs(m-r)<Dt&&n-f>Dt?[Math.abs(p-r)<Dt?d:n,r]:Math.abs(f-n)<Dt&&m-t>Dt?[n,Math.abs(d-n)<Dt?p:t]:Math.abs(m-t)<Dt&&f-e>Dt?[Math.abs(p-t)<Dt?d:e,t]:null))-1),++c);c&&(y=!1)}if(y){var v,b,_,w=1/0;for(i=0,y=null;i<g;++i)(o=Lt[i])&&(_=(v=(a=o.site)[0]-e)*v+(b=a[1]-t)*b)<w&&(w=_,y=o);if(y){var x=[e,t],k=[e,r],C=[n,r],S=[n,t];y.halfedges.push(jt.push(dt(a=y.site,x,k))-1,jt.push(dt(a,k,C))-1,jt.push(dt(a,C,S))-1,jt.push(dt(a,S,x))-1)}}for(i=0;i<g;++i)(o=Lt[i])&&(o.halfedges.length||delete Lt[i])}(a,s,l,c)}this.edges=jt,this.cells=Lt,Ot=Rt=jt=Lt=null}Ft.prototype={constructor:Ft,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return gt(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s,l,c,u=n.site,d=-1,p=t[i[o-1]],h=p.left===u?p.right:p.left;++d<o;)a=h,h=(p=t[i[d]]).left===u?p.right:p.left,a&&h&&r<a.index&&r<h.index&&(l=a,c=h,((s=u)[0]-c[0])*(l[1]-s[1])-(s[0]-l[0])*(c[1]-s[1])<0)&&e.push([u.data,a.data,h.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}}))}while(null!==a);return o._found=r,null==n||u<=n*n?i.site:null}};n(23615);n(15078);function zt(){return new Bt}function Bt(){this.reset()}Bt.prototype={constructor:Bt,reset:function(){this.s=this.t=0},add:function(e){$t(Ut,e,this.t),$t(this,Ut.s,this.s),this.s?this.t+=Ut.t:this.s=Ut.t},valueOf:function(){return this.s}};var Ut=new Bt;function $t(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Vt=1e-6,qt=Math.PI,Zt=qt/2,Ht=qt/4,Gt=2*qt,Wt=qt/180,Yt=Math.abs,Kt=Math.atan,Xt=Math.atan2,Jt=Math.cos,Qt=(Math.ceil,Math.exp),en=(Math.floor,Math.log),tn=(Math.pow,Math.sin),nn=(Math.sign,Math.sqrt),rn=Math.tan;function on(e){return e>1?Zt:e<-1?-Zt:Math.asin(e)}function an(){}zt(),zt();function sn(e){var t=e[0],n=e[1],r=Jt(n);return[r*Jt(t),r*tn(t),tn(n)]}function ln(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function cn(e){var t=nn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}zt();function un(e,t){return[e>qt?e-Gt:e<-qt?e+Gt:e,t]}function dn(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function pn(e,t,n,r,i){var o,a,s=[],l=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(u=a,Yt((c=r)[0]-u[0])<Vt&&Yt(c[1]-u[1])<Vt){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else{var c,u;s.push(n=new dn(r,e,null,!0)),l.push(n.o=new dn(r,null,n,!1)),s.push(n=new dn(a,e,null,!1)),l.push(n.o=new dn(a,null,n,!0))}}})),s.length){for(l.sort(t),hn(s),hn(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;for(var c,u,d=s[0];;){for(var p=d,h=!0;p.v;)if((p=p.n)===d)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(h)for(o=0,a=c.length;o<a;++o)i.point((u=c[o])[0],u[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(h)for(c=p.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(p.x,p.p.x,-1,i);p=p.p}c=(p=p.o).z,h=!h}while(!p.v);i.lineEnd()}}}function hn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function fn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}un.invert=un;var mn=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return fn(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}(fn);mn.right,mn.left;var gn=Array.prototype;gn.slice,gn.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var yn=zt();function vn(e,t){var n=t[0],r=t[1],i=[tn(n),-Jt(n),0],o=0,a=0;yn.reset();for(var s=0,l=e.length;s<l;++s)if(u=(c=e[s]).length)for(var c,u,d=c[u-1],p=d[0],h=d[1]/2+Ht,f=tn(h),m=Jt(h),g=0;g<u;++g,p=v,f=_,m=w,d=y){var y=c[g],v=y[0],b=y[1]/2+Ht,_=tn(b),w=Jt(b),x=v-p,k=x>=0?1:-1,C=k*x,S=C>qt,M=f*_;if(yn.add(Xt(M*k*tn(C),m*w+M*Jt(C))),o+=S?x+k*Gt:x,S^p>=n^v>=n){var T=ln(sn(d),sn(y));cn(T);var E=ln(i,T);cn(E);var P=(S^x>=0?-1:1)*on(E[2]);(r>P||r===P&&(T[0]||T[1]))&&(a+=S^x>=0?1:-1)}}return(o<-Vt||o<Vt&&yn<-Vt)^1&a}zt();zt(),zt();zt();function bn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function _n(e){return e.length>1}function wn(e,t){return((e=e.x)[0]<0?e[1]-Zt-Vt:Zt-e[1])-((t=t.x)[0]<0?t[1]-Zt-Vt:Zt-t[1])}bn(4.5);function xn(e){return function(t){var n=new kn;for(var r in e)n[r]=e[r];return n.stream=t,n}}function kn(){}kn.prototype={constructor:kn,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};Jt(30*Wt);xn({point:function(e,t){this.stream.point(e*Wt,t*Wt)}});function Cn(e){return function(t,n){var r=Jt(t),i=Jt(n),o=e(r*i);return[o*i*tn(t),o*tn(n)]}}function Sn(e){return function(t,n){var r=nn(t*t+n*n),i=e(r),o=tn(i),a=Jt(i);return[Xt(t*o,r*a),on(r&&n*o/r)]}}var Mn=Cn((function(e){return nn(2/(1+e))}));Mn.invert=Sn((function(e){return 2*on(e/2)}));var Tn=Cn((function(e){return(e=(t=e)>1?0:t<-1?qt:Math.acos(t))&&e/tn(e);var t}));function En(e,t){return[e,en(rn((Zt+t)/2))]}function Pn(e,t){return[e,t]}function In(e,t){var n=Jt(t),r=Jt(e)*n;return[n*tn(e)/r,tn(t)/r]}function On(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Ln(e,t){return[Jt(t)*tn(e),tn(t)]}function Rn(e,t){var n=Jt(t),r=1+Jt(e)*n;return[n*tn(e)/r,tn(t)/r]}function jn(e,t){return[en(rn((Zt+t)/2)),-e]}Tn.invert=Sn((function(e){return e})),En.invert=function(e,t){return[e,2*Kt(Qt(t))-Zt]},Pn.invert=Pn,In.invert=Sn(Kt),On.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Yt(n)>Vt&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Ln.invert=Sn(on),Rn.invert=Sn((function(e){return 2*Kt(e)})),jn.invert=function(e,t){return[-t,2*Kt(Qt(e))-Zt]}},26264:(e,t,n)=>{"use strict";n.d(t,{IZ:()=>p,d7:()=>o});var r=n(66364);const{Axios:i,AxiosError:o,CanceledError:a,isCancel:s,CancelToken:l,VERSION:c,all:u,Cancel:d,isAxiosError:p,spread:h,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:v,mergeConfig:b}=r.default},66364:(e,t,n)=>{"use strict";n.d(t,{default:()=>We});var r={};function i(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>ie,hasStandardBrowserEnv:()=>oe,hasStandardBrowserWebWorkerEnv:()=>se});const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,p=u("undefined");const h=c("ArrayBuffer");const f=u("string"),m=u("function"),g=u("number"),y=e=>null!==e&&"object"===typeof e,v=e=>{if("object"!==s(e))return!1;const t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},b=c("Date"),_=c("File"),w=c("Blob"),x=c("FileList"),k=c("URLSearchParams");function C(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),d(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(n=0;n<o;n++)a=r[n],t.call(null,e[a],a,e)}}function S(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const M="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,T=e=>!p(e)&&e!==M;const E=(P="undefined"!==typeof Uint8Array&&a(Uint8Array),e=>P&&e instanceof P);var P;const I=c("HTMLFormElement"),O=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),L=c("RegExp"),R=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},j="abcdefghijklmnopqrstuvwxyz",D="0123456789",A={DIGIT:D,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+D};const N=c("AsyncFunction"),F={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=s(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:f,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:v,isUndefined:p,isDate:b,isFile:_,isBlob:w,isRegExp:L,isFunction:m,isStream:e=>y(e)&&m(e.pipe),isURLSearchParams:k,isTypedArray:E,isFileList:x,forEach:C,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},r=(r,i)=>{const o=t&&S(n,i)||i;v(n[o])&&v(r)?n[o]=e(n[o],r):v(r)?n[o]=e({},r):d(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&C(arguments[i],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return C(t,((t,r)=>{n&&m(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:R,freezeMethods:e=>{R(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:S,global:M,isContextDefined:T,ALPHABET:A,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=d(e)?[]:{};return C(e,((e,t)=>{const o=n(e,r+1);!p(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:N,isThenable:e=>e&&(y(e)||m(e))&&m(e.then)&&m(e.catch)};function z(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}F.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const B=z.prototype,U={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{U[e]={value:e}})),Object.defineProperties(z,U),Object.defineProperty(B,"isAxiosError",{value:!0}),z.from=(e,t,n,r,i,o)=>{const a=Object.create(B);return F.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),z.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const $=z;var V=n(25846).Buffer;function q(e){return F.isPlainObject(e)||F.isArray(e)}function Z(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function H(e,t,n){return e?e.concat(t).map((function(e,t){return e=Z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const G=F.toFlatObject(F,{},null,(function(e){return/^is[A-Z]/.test(e)}));const W=function(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!F.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(F.isDate(e))return e.toISOString();if(!s&&F.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(e)||F.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):V.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(F.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(F.isArray(e)&&function(e){return F.isArray(e)&&!e.some(q)}(e)||(F.isFileList(e)||F.endsWith(n,"[]"))&&(s=F.toArray(e)))return n=Z(n),s.forEach((function(e,r){!F.isUndefined(e)&&null!==e&&t.append(!0===a?H([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!q(e)||(t.append(H(i,n,o),l(e)),!1)}const u=[],d=Object.assign(G,{defaultVisitor:c,convertValue:l,isVisitable:q});if(!F.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!F.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),F.forEach(n,(function(n,o){!0===(!(F.isUndefined(n)||null===n)&&i.call(t,n,F.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function K(e,t){this._pairs=[],e&&W(e,this,t)}const X=K.prototype;X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const J=K;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,n){if(!t)return e;const r=n&&n.encode||Q,i=n&&n.serialize;let o;if(o=i?i(t,n):F.isURLSearchParams(t)?t.toString():new J(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const te=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:J,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ie="undefined"!==typeof window&&"undefined"!==typeof document,oe=(ae="undefined"!==typeof navigator&&navigator.product,ie&&["ReactNative","NativeScript","NS"].indexOf(ae)<0);var ae;const se="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,le={...r,...re};const ce=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&F.isArray(r)?r.length:o,s)return F.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&F.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&F.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,((e,r)=>{t(function(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ue={transitional:ne,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=F.isObject(e);i&&F.isHTMLForm(e)&&(e=new FormData(e));if(F.isFormData(e))return r?JSON.stringify(ce(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return W(e,new le.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return le.isNode&&F.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return W(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&F.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw $.from(i,$.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],(e=>{ue.headers[e]={}}));const de=ue,pe=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),he=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:F.isArray(e)?e.map(me):String(e)}function ge(e,t,n,r,i){return F.isFunction(r)?r.call(this,t,n):(i&&(t=n),F.isString(t)?F.isString(r)?-1!==t.indexOf(r):F.isRegExp(r)?r.test(t):void 0:void 0)}class ye{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=fe(t);if(!i)throw new Error("header name must be a non-empty string");const o=F.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=me(e))}const o=(e,t)=>F.forEach(e,((e,n)=>i(e,n,t)));return F.isPlainObject(e)||e instanceof this.constructor?o(e,t):F.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&pe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=fe(e)){const n=F.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(F.isFunction(t))return t.call(this,e,n);if(F.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const n=F.findKey(this,e);return!(!n||void 0===this[n]||t&&!ge(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=fe(e)){const i=F.findKey(n,e);!i||t&&!ge(0,n[i],i,t)||(delete n[i],r=!0)}}return F.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!ge(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return F.forEach(this,((r,i)=>{const o=F.findKey(n,i);if(o)return t[o]=me(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=me(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return F.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&F.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[he]=this[he]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=fe(e);t[r]||(!function(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return F.isArray(e)?e.forEach(r):r(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(ye.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),F.freezeMethods(ye);const ve=ye;function be(e,t){const n=this||de,r=t||n,i=ve.from(r.headers);let o=r.data;return F.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function _e(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(we,$,{__CANCEL__:!0});const xe=we;const ke=le.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),F.isString(r)&&a.push("path="+r),F.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ce(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Se=le.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=F.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const Me=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};function Te(e,t){let n=0;const r=Me(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Ee={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=ve.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(F.isFormData(r))if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const d=Ce(e.baseURL,e.url);function p(){if(!u)return;const r=ve.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),ee(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new $("Request aborted",$.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ne;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new $(t,r.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,u)),u=null},le.hasStandardBrowserEnv&&(l&&F.isFunction(l)&&(l=l(e)),l||!1!==l&&Se(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ke.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&F.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),F.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",Te(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Te(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new xe(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);h&&-1===le.protocols.indexOf(h)?n(new $("Unsupported protocol "+h+":",$.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};F.forEach(Ee,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Pe=e=>`- ${e}`,Ie=e=>F.isFunction(e)||null===e||!1===e,Oe=e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Ie(n)&&(r=Ee[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Pe).join("\n"):" "+Pe(e[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe(null,e)}function Re(e){Le(e),e.headers=ve.from(e.headers),e.data=be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Oe(e.adapter||de.adapter)(e).then((function(t){return Le(e),t.data=be.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return _e(t)||(Le(e),t&&t.response&&(t.response.data=be.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const je=e=>e instanceof ve?{...e}:e;function De(e,t){t=t||{};const n={};function r(e,t,n){return F.isPlainObject(e)&&F.isPlainObject(t)?F.merge.call({caseless:n},e,t):F.isPlainObject(t)?F.merge({},t):F.isArray(t)?t.slice():t}function i(e,t,n){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!F.isUndefined(t))return r(void 0,t)}function a(e,t){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(je(e),je(t),!0)};return F.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);F.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Ae="1.6.8",Ne={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ne[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Fe={};Ne.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new $(r(i," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!Fe[i]&&(Fe[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const ze={assertOptions:function(e,t,n){if("object"!==typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new $("option "+o+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+o,$.ERR_BAD_OPTION)}},validators:Ne},Be=ze.validators;class Ue{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=De(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&ze.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),null!=r&&(F.isFunction(r)?t.paramsSerializer={serialize:r}:ze.assertOptions(r,{encode:Be.function,serialize:Be.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&F.merge(i.common,i[t.method]);i&&F.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=ve.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Re.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{c=Re.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return ee(Ce((e=De(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}F.forEach(["delete","get","head","options"],(function(e){Ue.prototype[e]=function(t,n){return this.request(De(n||{},{method:e,url:t,data:(n||{}).data}))}})),F.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(De(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ue.prototype[e]=t(),Ue.prototype[e+"Form"]=t(!0)}));const $e=Ue;class Ve{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new xe(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ve((function(t){e=t})),cancel:e}}}const qe=Ve;const Ze={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ze).forEach((e=>{let[t,n]=e;Ze[n]=t}));const He=Ze;const Ge=function e(t){const n=new $e(t),r=i($e.prototype.request,n);return F.extend(r,$e.prototype,n,{allOwnKeys:!0}),F.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(De(t,n))},r}(de);Ge.Axios=$e,Ge.CanceledError=xe,Ge.CancelToken=qe,Ge.isCancel=_e,Ge.VERSION=Ae,Ge.toFormData=W,Ge.AxiosError=$,Ge.Cancel=Ge.CanceledError,Ge.all=function(e){return Promise.all(e)},Ge.spread=function(e){return function(t){return e.apply(null,t)}},Ge.isAxiosError=function(e){return F.isObject(e)&&!0===e.isAxiosError},Ge.mergeConfig=De,Ge.AxiosHeaders=ve,Ge.formToJSON=e=>ce(F.isHTMLForm(e)?new FormData(e):e),Ge.getAdapter=Oe,Ge.HttpStatusCode=He,Ge.default=Ge;const We=Ge},76943:(e,t,n)=>{"use strict";n.d(t,{De:()=>mn,Gu:()=>dn,ST:()=>j,W_:()=>Me,ZL:()=>At,f$:()=>Un,ho:()=>F,i_:()=>ze,jI:()=>R,jn:()=>Tt,kL:()=>pt,od:()=>Pt,qi:()=>vt,u:()=>jn,uw:()=>Fn,vn:()=>O,zX:()=>hr});var r=n(60901),i=n(45924);class o{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const i=t.listeners[r],o=t.duration;i.forEach((r=>r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(e),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=i.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var a=new o;const s="transparent",l={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=(0,i.c)(e||s),o=r.valid&&(0,i.c)(t||s);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class c{constructor(e,t,n,r){const o=t[n];r=(0,i.a)([e.to,r,o,e.from]);const a=(0,i.a)([e.from,o,r]);this._active=!0,this._fn=e.fn||l[e.type||typeof a],this._easing=i.e[e.easing]||i.e.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=(0,i.a)([e.to,t,r,e.from]),this._from=(0,i.a)([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=i:(s=t/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][t]()}}class u{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!(0,i.i)(e))return;const t=Object.keys(i.d.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!(0,i.i)(o))return;const a={};for(const e of t)a[e]=o[e];((0,i.b)(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,a)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const t=e[r[i]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),i}_createAnimations(e,t){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const u=t[l];let d=i[l];const p=n.get(l);if(d){if(p&&d.active()){d.update(p,u,a);continue}d.cancel()}p&&p.duration?(i[l]=d=new c(p,e,l,u),r.push(d)):e[l]=u}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(a.add(this._chart,n),!0):void 0}}function d(e,t){const n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function p(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function h(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=e.keys,a="single"===r.mode;let s,l,c,u;if(null!==t){for(s=0,l=o.length;s<l;++s){if(c=+o[s],c===n){if(r.all)continue;break}u=e.values[c],(0,i.g)(u)&&(a||0===t||(0,i.s)(t)===(0,i.s)(u))&&(t+=u)}return t}}function f(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function m(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function g(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function y(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const e=t[h],{[l]:n,[c]:o}=e;p=(e._stacks||(e._stacks={}))[c]=m(i,u,n),p[s]=o,p._top=g(p,a,!0,r.type),p._bottom=g(p,a,!1,r.type);(p._visualValues||(p._visualValues={}))[s]=o}}function v(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function b(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const _=e=>"reset"===e||"none"===e,w=(e,t)=>t?e:Object.assign({},e);class x{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=f(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&b(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=(0,i.v)(n.xAxisID,v(e,"x")),a=t.yAxisID=(0,i.v)(n.yAxisID,v(e,"y")),s=t.rAxisID=(0,i.v)(n.rAxisID,v(e,"r")),l=t.indexAxis,c=t.iAxisID=r(l,o,a,s),u=t.vAxisID=r(l,a,o,s);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&(0,i.u)(this._data,this),e._stacked&&b(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if((0,i.i)(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}(t);else if(n!==t){if(n){(0,i.u)(n,this);const e=this._cachedMeta;b(e),e._parsed=[]}t&&Object.isExtensible(t)&&(0,i.l)(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=t._stacked;t._stacked=f(t.vScale,t),t.stack!==n.stack&&(r=!0,b(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&y(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:a}=n,s=o.axis;let l,c,u,d=0===e&&t===r.length||n._sorted,p=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,u=r;else{u=(0,i.b)(r[e])?this.parseArrayData(n,r,e,t):(0,i.i)(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===c[s]||p&&c[s]<p[s];for(l=0;l<t;++l)n._parsed[l+e]=c=u[l],d&&(o()&&(d=!1),p=c);n._sorted=d}a&&y(this,u)}parsePrimitiveData(e,t,n,r){const{iScale:i,vScale:o}=e,a=i.axis,s=o.axis,l=i.getLabels(),c=i===o,u=new Array(r);let d,p,h;for(d=0,p=r;d<p;++d)h=d+n,u[d]={[a]:c||i.parse(l[h],h),[s]:o.parse(t[h],h)};return u}parseArrayData(e,t,n,r){const{xScale:i,yScale:o}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:i.parse(u[0],c),y:o.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:o,yScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(r);let u,d,p,h;for(u=0,d=r;u<d;++u)p=u+n,h=t[p],c[u]={x:o.parse((0,i.f)(h,s),p),y:a.parse((0,i.f)(h,l),p)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,i=this._cachedMeta,o=t[e.axis];return h({keys:p(r,!0),values:t._stacks[e.axis]._visualValues},o,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const i=n[t.axis];let o=null===i?NaN:i;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,o=h(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,a=r.length,s=this._getOtherScale(e),l=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:p(n,!0),values:null})(t,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=function(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(s);let h,f;function m(){f=r[h];const t=f[s.axis];return!(0,i.g)(f[e.axis])||u>t||d<t}for(h=0;h<a&&(m()||(this.updateRangeFromParsed(c,e,f,l),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(c,e,f,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,a;for(r=0,o=t.length;r<o;++r)a=t[r][e.axis],(0,i.g)(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return(0,i.i)(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}((0,i.v)(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=d(e,n),i=d(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,i,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?o.push(t):t.draw(e,i))}for(c=0;c<o.length;++c)o[c].draw(e,i)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return(0,i.j)(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return(0,i.j)(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const r="active"===t,o=this._cachedDataOpts,a=e+"-"+t,s=o[a],l=this.enableOptionSharing&&(0,i.h)(n);if(s)return w(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=r?[`${e}Hover`,"hover",e,""]:[e,""],p=c.getOptionScopes(this.getDataset(),u),h=Object.keys(i.d.elements[e]),f=c.resolveNamedOptions(p,h,(()=>this.getContext(n,r,t)),d);return f.$shared&&(f.$shared=l,o[a]=Object.freeze(w(f,l))),f}_resolveAnimations(e,t,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${t}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(e,n,t))}const l=new u(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||_(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:o}}updateElement(e,t,n,r){_(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!_(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const r=n.length,i=t.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this._cachedMeta,i=r.data,o=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=o;a--)e[a]=e[a-t]};for(s(i),a=e;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&b(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function k(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,i=n.length;t<i;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=(0,i._)(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,a,s,l=t._length;const c=()=>{32767!==a&&-32768!==a&&((0,i.h)(s)&&(l=Math.min(l,Math.abs(a-s)||l)),s=a)};for(r=0,o=n.length;r<o;++r)a=t.getPixelForValue(n[r]),c();for(s=void 0,r=0,o=t.ticks.length;r<o;++r)a=t.getPixelForTick(r),c();return l}function C(e,t,n,r){return(0,i.b)(e)?function(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function S(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[i.axis]=s||i.parse(a[c],c),l.push(C(p,d,o,c));return l}function M(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function T(e,t,n,r){let i=t.borderSkipped;const o={};if(!i)return void(e.borderSkipped=o);if(!0===i)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}(e);"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[E(u,a,s,l)]=!0,i=c)),o[E(i,a,s,l)]=!0,e.borderSkipped=o}function E(e,t,n,r){var i,o,a;return r?(a=n,e=P(e=(i=e)===(o=t)?a:i===a?o:i,n,t)):e=P(e,t,n),e}function P(e,t,n){return"start"===e?t:"end"===e?n:e}function I(e,t,n){let{inflateAmount:r}=t;e.inflateAmount="auto"===r?1===n?.33:0:r}(0,r.Z)(x,"defaults",{}),(0,r.Z)(x,"datasetElementType",null),(0,r.Z)(x,"dataElementType",null);class O extends x{parsePrimitiveData(e,t,n,r){return S(e,t,n,r)}parseArrayData(e,t,n,r){return S(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c="x"===o.axis?s:l,u="x"===a.axis?s:l,d=[];let p,h,f,m;for(p=n,h=n+r;p<h;++p)m=t[p],f={},f[o.axis]=o.parse((0,i.f)(m,c),p),d.push(C((0,i.f)(m,u),f,a,p));return d}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,i=this.getParsed(e),o=i._custom,a=M(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:p}=this._getSharedOptions(t,r);for(let h=t;h<t+n;h++){const t=this.getParsed(h),n=o||(0,i.k)(t[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,u),m=(t._stacks||{})[s.axis],g={horizontal:c,base:n.base,enableBorderRadius:!m||M(t._custom)||a===m._top||a===m._bottom,x:c?n.head:f.center,y:c?f.center:n.head,height:c?f.size:Math.abs(n.size),width:c?Math.abs(n.size):f.size};p&&(g.options=d||this.resolveDataElementOptions(h,e[h].active?"active":r));const y=g.options||e[h].options;T(g,y,m,a),I(g,y,u.ratio),this.updateElement(e[h],h,g,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,a=[],s=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if((0,i.k)(r)||isNaN(r))return!0};for(const i of r)if((void 0===t||!s(i))&&((!1===o||-1===a.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&a.push(i.stack),i.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let i,o;for(i=0,o=t.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const a=e.barThickness;return{min:a||k(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(e),c=l._custom,u=M(c);let d,p,h=l[t.axis],f=0,m=n?this.applyStack(t,l,n):h;m!==h&&(f=m-h,m=h),u&&(h=c.barStart,m=c.barEnd-c.barStart,0!==h&&(0,i.s)(h)!==(0,i.s)(c.barEnd)&&(f=0),f+=h);const g=(0,i.k)(o)||u?f:o;let y=t.getPixelForValue(g);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(f+m):y,p=d-y,Math.abs(p)<a){p=function(e,t,n){return 0!==e?(0,i.s)(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(p,t,s)*a,h===s&&(y-=p/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),c=Math.min(e,o),f=Math.max(e,o);y=Math.max(Math.min(y,f),c),d=y+p,n&&!u&&(l._stacks[t.axis]._visualValues[r]=t.getValueForPixel(d)-t.getValueForPixel(y))}if(y===t.getPixelForValue(s)){const e=(0,i.s)(p)*t.getLineWidthForValue(s)/2;y+=e,p-=e}return{size:p,base:y,head:d,center:d+p/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,a=(0,i.v)(r.maxBarThickness,1/0);let s,l;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,c="flex"===r.barThickness?function(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let a,s;return(0,i.k)(o)?(a=t.min*n.categoryPercentage,s=n.barPercentage):(a=o*r,s=1),{chunk:a/r,ratio:s,start:t.pixels[e]-a/2}}(e,t,r,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);s=c.start+c.chunk*u+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=n.getPixelForValue(this.getParsed(e)[n.axis],e),l=Math.min(a,t.min*t.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let i=0;for(;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}(0,r.Z)(O,"id","bar"),(0,r.Z)(O,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),(0,r.Z)(O,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class L extends x{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const i=super.parsePrimitiveData(e,t,n,r);for(let o=0;o<i.length;o++)i[o]._custom=this.resolveDataElementOptions(o+n).radius;return i}parseArrayData(e,t,n,r){const o=super.parseArrayData(e,t,n,r);for(let a=0;a<o.length;a++){const e=t[n+a];o[a]._custom=(0,i.v)(e[2],this.resolveDataElementOptions(a+n).radius)}return o}parseObjectData(e,t,n,r){const o=super.parseObjectData(e,t,n,r);for(let a=0;a<o.length;a++){const e=t[n+a];o[a]._custom=(0,i.v)(e&&e.r&&+e.r,this.resolveDataElementOptions(a+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,o=this.getParsed(e),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y),l=o._custom;return{label:n[e]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const i="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=o.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!i&&this.getParsed(d),p={},h=p[c]=i?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),f=p[u]=i?a.getBasePixel():a.getPixelForValue(n[u]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=s||this.resolveDataElementOptions(d,t.active?"active":r),i&&(p.options.radius=0)),this.updateElement(t,d,p,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==t&&(r.radius=0),r.radius+=(0,i.v)(n&&n._custom,o),r}}(0,r.Z)(L,"id","bubble"),(0,r.Z)(L,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),(0,r.Z)(L,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class R extends x{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,a,s=e=>+n[e];if((0,i.i)(n[e])){const{key:e="value"}=this._parsing;s=t=>+(0,i.f)(n[t],e)}for(o=e,a=e+t;o<a;++o)r._parsed[o]=s(o)}}_getRotation(){return(0,i.t)(this.options.rotation-90)}_getCircumference(){return(0,i.t)(this.options.circumference)}_getRotationExtents(){let e=i.T,t=-i.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+o)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,o=r.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-a)/2,0),l=Math.min((0,i.m)(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:f,offsetY:m}=function(e,t,n){let r=1,o=1,a=0,s=0;if(t<i.T){const l=e,c=l+t,u=Math.cos(l),d=Math.sin(l),p=Math.cos(c),h=Math.sin(c),f=(e,t,r)=>(0,i.p)(e,l,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>(0,i.p)(e,l,c,!0)?-1:Math.min(t,t*n,r,r*n),g=f(0,u,p),y=f(i.H,d,h),v=m(i.P,u,p),b=m(i.P+i.H,d,h);r=(g-v)/2,o=(y-b)/2,a=-(g+v)/2,s=-(y+b)/2}return{ratioX:r,ratioY:o,offsetX:a,offsetY:s}}(d,u,l),g=(n.width-a)/p,y=(n.height-a)/h,v=Math.max(Math.min(g,y)/2,0),b=(0,i.n)(this.options.radius,v),_=(b-Math.max(b*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*b,this.offsetY=m*b,r.total=this.calculateTotal(),this.outerRadius=b-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/i.T)}updateElements(e,t,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=i&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,i);for(m=t;m<t+n;++m){const t=this._circumference(m,i),n=e[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:d};f&&(o.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,o,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const i=e._parsed[n];null===i||isNaN(i)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(i))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?i.T*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=(0,i.o)(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,i,o,a,s;if(!e)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){o=n.getDatasetMeta(r),e=o.data,a=o.controller;break}if(!e)return 0;for(r=0,i=e.length;r<i;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max((0,i.v)(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}(0,r.Z)(R,"id","doughnut"),(0,r.Z)(R,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),(0,r.Z)(R,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),(0,r.Z)(R,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,i)=>{const o=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class j extends x{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,a=this.chart._animationsDisabled;let{start:s,count:l}=(0,i.q)(t,r,a);this._drawStart=s,this._drawCount=l,(0,i.w)(t)&&(s=0,l=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:c},e),this.updateElements(r,s,l,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r),p=a.axis,h=s.axis,{spanGaps:f,segment:m}=this.options,g=(0,i.x)(f)?f:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||"none"===r,v=t+n,b=e.length;let _=t>0&&this.getParsed(t-1);for(let w=0;w<b;++w){const n=e[w],f=y?n:{};if(w<t||w>=v){f.skip=!0;continue}const b=this.getParsed(w),x=(0,i.k)(b[h]),k=f[p]=a.getPixelForValue(b[p],w),C=f[h]=o||x?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,b,l):b[h],w);f.skip=isNaN(k)||isNaN(C)||x,f.stop=w>0&&Math.abs(b[p]-_[p])>g,m&&(f.parsed=b,f.raw=c.data[w]),d&&(f.options=u||this.resolveDataElementOptions(w,n.active?"active":r)),y||this.updateElement(n,w,f,r),_=b}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}(0,r.Z)(j,"id","line"),(0,r.Z)(j,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),(0,r.Z)(j,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class D extends x{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=(0,i.o)(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return i.y.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,t,n,r){const o="reset"===r,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*i.P;let p,h=d;const f=360/this.countVisibleElements();for(p=0;p<t;++p)h+=this._computeAngle(p,r,f);for(p=t;p<t+n;p++){const t=e[p];let n=h,i=h+this._computeAngle(p,r,f),m=a.getDataVisibility(p)?l.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=i,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=i=d));const g={x:c,y:u,innerRadius:0,outerRadius:m,startAngle:n,endAngle:i,options:this.resolveDataElementOptions(p,t.active?"active":r)};this.updateElement(t,p,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?(0,i.t)(this.resolveDataElementOptions(e,t).angle||n):0}}(0,r.Z)(D,"id","polarArea"),(0,r.Z)(D,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),(0,r.Z)(D,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,i)=>{const o=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class A extends R{}(0,r.Z)(A,"id","pie"),(0,r.Z)(A,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class N extends x{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return i.y.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,o,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":r),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,c=o?i.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,r)}}}(0,r.Z)(N,"id","radar"),(0,r.Z)(N,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),(0,r.Z)(N,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class F extends x{getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,o=this.getParsed(e),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y);return{label:n[e]||"",value:"("+a+", "+s+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:o,count:a}=(0,i.q)(t,n,r);if(this._drawStart=o,this._drawCount=a,(0,i.w)(t)&&(o=0,a=n.length),this.options.showLine){const{dataset:i,_dataset:o}=t;i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:a},e)}this.updateElements(n,o,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,r){const o="reset"===r,{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(t,r),d=this.getSharedOptions(u),p=this.includeOptions(r,d),h=a.axis,f=s.axis,{spanGaps:m,segment:g}=this.options,y=(0,i.x)(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let b=t>0&&this.getParsed(t-1);for(let _=t;_<t+n;++_){const t=e[_],n=this.getParsed(_),u=v?t:{},m=(0,i.k)(n[f]),w=u[h]=a.getPixelForValue(n[h],_),x=u[f]=o||m?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,n,l):n[f],_);u.skip=isNaN(w)||isNaN(x)||m,u.stop=_>0&&Math.abs(n[h]-b[h])>y,g&&(u.parsed=n,u.raw=c.data[_]),p&&(u.options=d||this.resolveDataElementOptions(_,t.active?"active":r)),v||this.updateElement(t,_,u,r),b=n}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const i=t[0].size(this.resolveDataElementOptions(0)),o=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,o)/2}}(0,r.Z)(F,"id","scatter"),(0,r.Z)(F,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),(0,r.Z)(F,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var z=Object.freeze({__proto__:null,BarController:O,BubbleController:L,DoughnutController:R,LineController:j,PieController:A,PolarAreaController:D,RadarController:N,ScatterController:F});function B(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class U{static override(e){Object.assign(U.prototype,e)}constructor(e){(0,r.Z)(this,"options",void 0),this.options=e||{}}init(){}formats(){return B()}parse(){return B()}format(){return B()}add(){return B()}diff(){return B()}startOf(){return B()}endOf(){return B()}}var $=U;function V(e,t,n,r){const{controller:o,data:a,_sorted:s}=e,l=o._cachedMeta.iScale;if(l&&t===l.axis&&"r"!==t&&s&&a.length){const e=l._reversePixels?i.A:i.B;if(!r)return e(a,t,n);if(o._sharedOptions){const r=a[0],i="function"===typeof r.getRange&&r.getRange(t);if(i){const r=e(a,t,n-i),o=e(a,t,n+i);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function q(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:e,data:n}=o[s],{lo:l,hi:c}=V(o[s],t,a,i);for(let t=l;t<=c;++t){const i=n[t];i.skip||r(i,e,t)}}}function Z(e,t,n,r,o){const a=[];if(!o&&!e.isPointInArea(t))return a;return q(e,n,t,(function(n,s,l){(o||(0,i.C)(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:s,index:l})}),!0),a}function H(e,t,n,r,i,o){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return q(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,i);if(r&&!d)return;const p=n.getCenterPoint(i);if(!(!!o||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function G(e,t,n,r,o,a){return a||e.isPointInArea(t)?"r"!==n||r?H(e,t,n,r,o,a):function(e,t,n,r){let o=[];return q(e,n,t,(function(e,n,a){const{startAngle:s,endAngle:l}=e.getProps(["startAngle","endAngle"],r),{angle:c}=(0,i.D)(e,{x:t.x,y:t.y});(0,i.p)(c,s,l)&&o.push({element:e,datasetIndex:n,index:a})})),o}(e,t,n,o):[]}function W(e,t,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return q(e,n,t,((e,r,l)=>{e[a](t[n],i)&&(o.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,i))})),r&&!s?[]:o}var Y={evaluateInteractionItems:q,modes:{index(e,t,n,r){const o=(0,i.z)(t,e),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?Z(e,o,a,r,s):G(e,o,a,!1,r,s),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=l[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})})),c):[]},dataset(e,t,n,r){const o=(0,i.z)(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?Z(e,o,a,r,s):G(e,o,a,!1,r,s);if(l.length>0){const t=l[0].datasetIndex,n=e.getDatasetMeta(t).data;l=[];for(let e=0;e<n.length;++e)l.push({element:n[e],datasetIndex:t,index:e})}return l},point:(e,t,n,r)=>Z(e,(0,i.z)(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=(0,i.z)(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return G(e,o,a,n.intersect,r,s)},x:(e,t,n,r)=>W(e,(0,i.z)(t,e),"x",n.intersect,r),y:(e,t,n,r)=>W(e,(0,i.z)(t,e),"y",n.intersect,r)}};const K=["left","top","right","bottom"];function X(e,t){return e.filter((e=>e.pos===t))}function J(e,t){return e.filter((e=>-1===K.indexOf(e.pos)&&e.box.axis===t))}function Q(e,t){return e.sort(((e,n)=>{const r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function ee(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:i}=n;if(!e||!K.includes(r))continue;const o=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:a&&t.availableHeight)}return n}function te(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ne(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function re(e,t,n,r){const{pos:o,box:a}=n,s=e.maxPadding;if(!(0,i.i)(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[o]+=n.size}a.getPadding&&ne(s,a.getPadding());const l=Math.max(0,t.outerWidth-te(s,e,"left","right")),c=Math.max(0,t.outerHeight-te(s,e,"top","bottom")),u=l!==e.w,d=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function ie(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function oe(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,ie(s.horizontal,t));const{same:a,other:d}=re(t,n,s,r);c|=a&&i.length,u=u||d,l.fullSize||i.push(s)}return c&&oe(i,t,n,r)||u}function ae(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function se(e,t,n,r){const o=n.padding;let{x:a,y:s}=t;for(const l of e){const e=l.box,c=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/c.weight||1;if(l.horizontal){const r=t.w*u,a=c.size||e.height;(0,i.h)(c.start)&&(s=c.start),e.fullSize?ae(e,o.left,s,n.outerWidth-o.right-o.left,a):ae(e,t.left+c.placed,s,r,a),c.start=s,c.placed+=r,s=e.bottom}else{const r=t.h*u,s=c.size||e.width;(0,i.h)(c.start)&&(a=c.start),e.fullSize?ae(e,a,o.top,s,n.outerHeight-o.bottom-o.top):ae(e,a,t.top+c.placed,s,r),c.start=a,c.placed+=r,a=e.right}}t.x=a,t.y=s}var le={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=(0,i.E)(e.options.layout.padding),a=Math.max(t-o.width,0),s=Math.max(n-o.height,0),l=function(e){const t=function(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],({position:o,options:{stack:a,stackWeight:s=1}}=i),t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}(e),n=Q(t.filter((e=>e.box.fullSize)),!0),r=Q(X(t,"left"),!0),i=Q(X(t,"right")),o=Q(X(t,"top"),!0),a=Q(X(t,"bottom")),s=J(t,"x"),l=J(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:X(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),c=l.vertical,u=l.horizontal;(0,i.F)(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const d=c.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/d,hBoxMaxHeight:s/2}),h=Object.assign({},o);ne(h,(0,i.E)(r));const f=Object.assign({maxPadding:h,w:a,h:s,x:o.left,y:o.top},o),m=ee(c.concat(u),p);oe(l.fullSize,f,p,m),oe(c,f,p,m),oe(u,f,p,m)&&oe(c,f,p,m),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(f),se(l.leftAndTop,f,p,m),f.x+=f.w,f.y+=f.h,se(l.rightAndBottom,f,p,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},(0,i.F)(l.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class ce{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class ue extends ce{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const de="$chartjs",pe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},he=e=>null===e||""===e;const fe=!!i.K&&{passive:!0};function me(e,t,n){e.canvas.removeEventListener(t,n,fe)}function ge(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function ye(e,t,n){const r=e.canvas,i=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||ge(n.addedNodes,r),t=t&&!ge(n.removedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function ve(e,t,n){const r=e.canvas,i=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||ge(n.removedNodes,r),t=t&&!ge(n.addedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const be=new Map;let _e=0;function we(){const e=window.devicePixelRatio;e!==_e&&(_e=e,be.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function xe(e,t,n){const r=e.canvas,o=r&&(0,i.I)(r);if(!o)return;const a=(0,i.L)(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),s=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return s.observe(o),function(e,t){be.size||window.addEventListener("resize",we),be.set(e,t)}(e,a),s}function ke(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){be.delete(e),be.size||window.removeEventListener("resize",we)}(e)}function Ce(e,t,n){const r=e.canvas,o=(0,i.L)((t=>{null!==e.ctx&&n(function(e,t){const n=pe[e.type]||e.type,{x:r,y:o}=(0,i.z)(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e.addEventListener(t,n,fe)}(r,t,o),o}class Se extends ce{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[de]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",he(o)){const t=(0,i.J)(e,"width");void 0!==t&&(e.width=t)}if(he(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=(0,i.J)(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[de])return!1;const n=t[de].initial;["height","width"].forEach((e=>{const r=n[e];(0,i.k)(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[de],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),i={attach:ye,detach:ve,resize:xe}[t]||Ce;r[t]=i(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:ke,detach:ke,resize:ke}[t]||me)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return(0,i.G)(e,t,n,r)}isAttached(e){const t=(0,i.I)(e);return!(!t||!t.isConnected)}}class Me{constructor(){(0,r.Z)(this,"x",void 0),(0,r.Z)(this,"y",void 0),(0,r.Z)(this,"active",!1),(0,r.Z)(this,"options",void 0),(0,r.Z)(this,"$animations",void 0)}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return(0,i.x)(this.x)&&(0,i.x)(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function Te(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),o=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],s=a.length,l=a[0],c=a[s-1],u=[];if(s>o)return function(e,t,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===a&&(t.push(e[i]),o++,a=n[o*r])}(t,u,a,s/o),u;const d=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const a=(0,i.N)(r);for(let i=0,s=a.length-1;i<s;i++){const e=a[i];if(e>o)return e}return Math.max(o,1)}(a,t,o);if(s>0){let e,n;const r=s>1?Math.round((c-l)/(s-1)):null;for(Ee(t,u,d,(0,i.k)(r)?0:l-r,l),e=0,n=s-1;e<n;e++)Ee(t,u,d,a[e],a[e+1]);return Ee(t,u,d,c,(0,i.k)(r)?t.length:c+r),u}return Ee(t,u,d),u}function Ee(e,t,n,r,o){const a=(0,i.v)(r,0),s=Math.min((0,i.v)(o,e.length),e.length);let l,c,u,d=0;for(n=Math.ceil(n),o&&(l=o-r,n=l/Math.floor(l/n)),u=a;u<0;)d++,u=Math.round(a+d*n);for(c=Math.max(a,0);c<s;c++)c===u&&(t.push(e[c]),d++,u=Math.round(a+d*n))}(0,r.Z)(Me,"defaults",{}),(0,r.Z)(Me,"defaultRoutes",void 0);const Pe=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,Ie=(e,t)=>Math.min(t||e,e);function Oe(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function Le(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(c-o,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<o-s||c>a+s)))return c}function Re(e){return e.drawTicks?e.tickLength:0}function je(e,t){if(!e.display)return 0;const n=(0,i.a0)(e.font,t),r=(0,i.E)(e.padding);return((0,i.b)(e.text)?e.text.length:1)*n.lineHeight+r.height}function De(e,t,n){let r=(0,i.a1)(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class Ae extends Me{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=(0,i.O)(e,Number.POSITIVE_INFINITY),t=(0,i.O)(t,Number.NEGATIVE_INFINITY),n=(0,i.O)(n,Number.POSITIVE_INFINITY),r=(0,i.O)(r,Number.NEGATIVE_INFINITY),{min:(0,i.O)(e,n),max:(0,i.O)(t,r),minDefined:(0,i.g)(e),maxDefined:(0,i.g)(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let i=0,l=s.length;i<l;++i)t=s[i].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),a||(r=Math.max(r,t.max));return n=a&&n>r?r:n,r=o&&n>r?n:r,{min:(0,i.O)(n,(0,i.O)(r,n)),max:(0,i.O)(r,(0,i.O)(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.Q)(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.R)(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Oe(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=Te(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,i.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,i.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,i.Q)(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),(0,i.Q)(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,i.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=(0,i.Q)(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){(0,i.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,i.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=Ie(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let a,s,l,c=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const u=this._getLabelSizes(),d=u.widest.width,p=u.highest.height,h=(0,i.S)(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),d+6>a&&(a=h/(n-(e.offset?.5:1)),s=this.maxHeight-Re(e.grid)-t.padding-je(e.title,this.chart.options.font),l=Math.sqrt(d*d+p*p),c=(0,i.U)(Math.min(Math.asin((0,i.S)((u.highest.height+6)/a,-1,1)),Math.asin((0,i.S)(s/l,-1,1))-Math.asin((0,i.S)(p/l,-1,1)))),c=Math.max(r,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,i.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,i.Q)(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=je(r,t.options.font);if(s?(e.width=this.maxWidth,e.height=Re(o)+a):(e.height=this.maxHeight,e.width=Re(o)+a),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:a}=this._getLabelSizes(),l=2*n.padding,c=(0,i.t)(this.labelRotation),u=Math.cos(c),d=Math.sin(c);if(s){const t=n.mirror?0:d*o.width+u*a.height;e.height=Math.min(this.maxHeight,e.height+t+l)}else{const t=n.mirror?0:u*o.width+d*a.height;e.width=Math.min(this.maxWidth,e.width+t+l)}this._calculatePadding(t,r,d,u)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===i?d=t.width:"end"===i?u=e.width:"inner"!==i&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===i?(n=0,r=e.height):"end"===i&&(n=t.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)(0,i.k)(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Oe(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(t/Ie(t,n));let c,u,d,p,h,f,m,g,y,v,b,_=0,w=0;for(c=0;c<t;c+=l){if(p=e[c].label,h=this._resolveTickFontOptions(c),r.font=f=h.string,m=o[f]=o[f]||{data:{},gc:[]},g=h.lineHeight,y=v=0,(0,i.k)(p)||(0,i.b)(p)){if((0,i.b)(p))for(u=0,d=p.length;u<d;++u)b=p[u],(0,i.k)(b)||(0,i.b)(b)||(y=(0,i.V)(r,m.data,m.gc,y,b),v+=g)}else y=(0,i.V)(r,m.data,m.gc,y,p),v=g;a.push(y),s.push(v),_=Math.max(y,_),w=Math.max(v,w)}!function(e,t){(0,i.F)(e,(e=>{const n=e.gc,r=n.length/2;let i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}}))}(o,t);const x=a.indexOf(_),k=s.indexOf(w),C=e=>({width:a[e]||0,height:s[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(k),widths:a,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return(0,i.W)(this._alignToPixels?(0,i.X)(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return(0,i.j)(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=function(e,t){return(0,i.j)(e,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=(0,i.t)(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),a=e.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*n>s*r?s/n:l/r:l*r<s*n?l/n:s/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Re(o),p=[],h=s.setContext(this.getContext()),f=h.display?h.width:0,m=f/2,g=function(e){return(0,i.X)(n,e,f)};let y,v,b,_,w,x,k,C,S,M,T,E;if("top"===a)y=g(this.bottom),x=this.bottom-d,C=y-m,M=g(e.top)+m,E=e.bottom;else if("bottom"===a)y=g(this.top),M=e.top,E=g(e.bottom)-m,x=y+m,C=this.top+d;else if("left"===a)y=g(this.right),w=this.right-d,k=y-m,S=g(e.left)+m,T=e.right;else if("right"===a)y=g(this.left),S=e.left,T=g(e.right)-m,w=y+m,k=this.left+d;else if("x"===t){if("center"===a)y=g((e.top+e.bottom)/2+.5);else if((0,i.i)(a)){const e=Object.keys(a)[0],t=a[e];y=g(this.chart.scales[e].getPixelForValue(t))}M=e.top,E=e.bottom,x=y+m,C=x+d}else if("y"===t){if("center"===a)y=g((e.left+e.right)/2);else if((0,i.i)(a)){const e=Object.keys(a)[0],t=a[e];y=g(this.chart.scales[e].getPixelForValue(t))}w=y-m,k=w-d,S=e.left,T=e.right}const P=(0,i.v)(r.ticks.maxTicksLimit,u),I=Math.max(1,Math.ceil(u/P));for(v=0;v<u;v+=I){const e=this.getContext(v),t=o.setContext(e),r=s.setContext(e),a=t.lineWidth,u=t.color,d=r.dash||[],h=r.dashOffset,f=t.tickWidth,m=t.tickColor,g=t.tickBorderDash||[],y=t.tickBorderDashOffset;b=Le(this,v,l),void 0!==b&&(_=(0,i.X)(n,b,a),c?w=k=S=T=_:x=C=M=E=_,p.push({tx1:w,ty1:x,tx2:k,ty2:C,x1:S,y1:M,x2:T,y2:E,width:a,color:u,borderDash:d,borderDashOffset:h,tickWidth:f,tickColor:m,tickBorderDash:g,tickBorderDashOffset:y}))}return this._ticksLength=u,this._borderValue=y,p}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,p=Re(n.grid),h=p+u,f=d?-u:h,m=-(0,i.t)(this.labelRotation),g=[];let y,v,b,_,w,x,k,C,S,M,T,E,P="middle";if("top"===r)x=this.bottom-f,k=this._getXAxisLabelAlignment();else if("bottom"===r)x=this.top+f,k=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(p);k=e.textAlign,w=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(p);k=e.textAlign,w=e.x}else if("x"===t){if("center"===r)x=(e.top+e.bottom)/2+h;else if((0,i.i)(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+h}k=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)w=(e.left+e.right)/2-h;else if((0,i.i)(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)}k=this._getYAxisLabelAlignment(p).textAlign}"y"===t&&("start"===l?P="top":"end"===l&&(P="bottom"));const I=this._getLabelSizes();for(y=0,v=s.length;y<v;++y){b=s[y],_=b.label;const e=o.setContext(this.getContext(y));C=this.getPixelForTick(y)+o.labelOffset,S=this._resolveTickFontOptions(y),M=S.lineHeight,T=(0,i.b)(_)?_.length:1;const t=T/2,n=e.color,l=e.textStrokeColor,u=e.textStrokeWidth;let p,h=k;if(a?(w=C,"inner"===k&&(h=y===v-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),E="top"===r?"near"===c||0!==m?-T*M+M/2:"center"===c?-I.highest.height/2-t*M+M:-I.highest.height+M/2:"near"===c||0!==m?M/2:"center"===c?I.highest.height/2-t*M:I.highest.height-T*M,d&&(E*=-1),0===m||e.showLabelBackdrop||(w+=M/2*Math.sin(m))):(x=C,E=(1-T)*M/2),e.showLabelBackdrop){const t=(0,i.E)(e.backdropPadding),n=I.heights[y],r=I.widths[y];let o=E-t.top,a=0-t.left;switch(P){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":a-=r/2;break;case"right":a-=r}p={left:a,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:_,font:S,textOffset:E,options:{rotation:m,color:n,strokeColor:l,strokeWidth:u,textAlign:h,textBaseline:P,translation:[w,x],backdrop:p}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-(0,i.t)(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,o=e+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,o),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,o;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,o=r.length;i<o;++i){const e=r[i];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),a=n.display?o.width:0;if(!a)return;const s=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,p;this.isHorizontal()?(c=(0,i.X)(e,this.left,a)-a/2,u=(0,i.X)(e,this.right,s)+s/2,d=p=l):(d=(0,i.X)(e,this.top,a)-a/2,p=(0,i.X)(e,this.bottom,s)+s/2,c=u=l),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(c,d),t.lineTo(u,p),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&(0,i.Y)(t,n);const r=this.getLabelItems(e);for(const o of r){const e=o.options,n=o.font,r=o.label,a=o.textOffset;(0,i.Z)(t,r,0,a,n,e)}n&&(0,i.$)(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=(0,i.a0)(n.font),a=(0,i.E)(n.padding),s=n.align;let l=o.lineHeight/2;"bottom"===t||"center"===t||(0,i.i)(t)?(l+=a.bottom,(0,i.b)(n.text)&&(l+=o.lineHeight*(n.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:d,rotation:p}=function(e,t,n,r){const{top:o,left:a,bottom:s,right:l,chart:c}=e,{chartArea:u,scales:d}=c;let p,h,f,m=0;const g=s-o,y=l-a;if(e.isHorizontal()){if(h=(0,i.a2)(r,a,l),(0,i.i)(n)){const e=Object.keys(n)[0],r=n[e];f=d[e].getPixelForValue(r)+g-t}else f="center"===n?(u.bottom+u.top)/2+g-t:Pe(e,n,t);p=l-a}else{if((0,i.i)(n)){const e=Object.keys(n)[0],r=n[e];h=d[e].getPixelForValue(r)-y+t}else h="center"===n?(u.left+u.right)/2-y+t:Pe(e,n,t);f=(0,i.a2)(r,s,o),m="left"===n?-i.H:i.H}return{titleX:h,titleY:f,maxWidth:p,rotation:m}}(this,l,t,s);(0,i.Z)(e,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:p,textAlign:De(s,t,r),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=(0,i.v)(e.grid&&e.grid.z,-1),r=(0,i.v)(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Ae.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=t.length;i<o;++i){const o=t[i];o[n]!==this.id||e&&o.type!==e||r.push(o)}return r}_resolveTickFontOptions(e){const t=this.options.ticks.setContext(this.getContext(e));return(0,i.a0)(t.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Ne{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=(0,i.a4)(Object.create(null),[n?i.d.get(n):{},i.d.get(t),e.defaults]);i.d.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),a=[e].concat(r).join("."),s=t[n].split("."),l=s.pop(),c=s.join(".");i.d.route(a,o,c,l)}))}(t,e.defaultRoutes);e.descriptors&&i.d.describe(t,e.descriptors)}(e,a,n),this.override&&i.d.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in i.d[r]&&(delete i.d[r][n],this.override&&delete i.a3[n])}}class Fe{constructor(){this.controllers=new Ne(x,"datasets",!0),this.elements=new Ne(Me,"elements"),this.plugins=new Ne(Object,"plugins"),this.scales=new Ne(Ae,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):(0,i.F)(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=(0,i.a5)(e);(0,i.Q)(n["before"+r],[],n),t[e](n),(0,i.Q)(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var ze=new Fe;class Be{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin,a=e[n],s=[t,r,o.options];if(!1===(0,i.Q)(a,s,e)&&r.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=(0,i.v)(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(ze.plugins.items);for(let o=0;o<r.length;o++)n.push(ze.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const e=i[o];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,t,n,r){let{plugins:i,localIds:o}=t;const a=[],s=e.getContext();for(const l of i){const t=l.id,i=Ue(n[t],r);null!==i&&a.push({plugin:l,options:$e(e.config,{plugin:l,local:o[t]},i,s)})}return a}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Ue(e,t){return t||!1!==e?!0===e?{}:e:null}function $e(e,t,n,r){let{plugin:i,local:o}=t;const a=e.pluginScopeKeys(i),s=e.getOptionScopes(n,a);return o&&i.defaults&&s.push(i.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ve(e,t){const n=i.d.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function qe(e){if("x"===e||"y"===e||"r"===e)return e}function Ze(e){if(qe(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const o of n){const t=o.axis||("top"===(i=o.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||e.length>1&&qe(e[0].toLowerCase());if(t)return t}var i;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function He(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Ge(e,t){const n=i.a3[e.type]||{scales:{}},r=t.scales||{},o=Ve(e.type,t),a=Object.create(null);return Object.keys(r).forEach((t=>{const s=r[t];if(!(0,i.i)(s))return console.error(`Invalid scale configuration for scale: ${t}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Ze(t,s,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return He(e,"x",n[0])||He(e,"y",n[0])}return{}}(t,e),i.d.scales[s.type]),c=function(e,t){return e===t?"_index_":"_value_"}(l,o),u=n.scales||{};a[t]=(0,i.ab)(Object.create(null),[{axis:l},s,u[l],u[c]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,s=n.indexAxis||Ve(o,t),l=(i.a3[o]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),o=n[t+"AxisID"]||t;a[o]=a[o]||Object.create(null),(0,i.ab)(a[o],[{axis:t},r[o],l[e]])}))})),Object.keys(a).forEach((e=>{const t=a[e];(0,i.ab)(t,[i.d.scales[t.type],i.d.scale])})),a}function We(e){const t=e.options||(e.options={});t.plugins=(0,i.v)(t.plugins,{}),t.scales=Ge(e,t)}function Ye(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Ke=new Map,Xe=new Set;function Je(e,t){let n=Ke.get(e);return n||(n=t(),Ke.set(e,n),Xe.add(n)),n}const Qe=(e,t,n)=>{const r=(0,i.f)(t,n);void 0!==r&&e.add(r)};class et{constructor(e){this._config=function(e){return(e=e||{}).data=Ye(e.data),We(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Ye(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),We(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Je(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Je(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Je(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Je(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,a=this._cachedScopes(e,n),s=a.get(t);if(s)return s;const l=new Set;t.forEach((t=>{e&&(l.add(e),t.forEach((t=>Qe(l,e,t)))),t.forEach((e=>Qe(l,r,e))),t.forEach((e=>Qe(l,i.a3[o]||{},e))),t.forEach((e=>Qe(l,i.d,e))),t.forEach((e=>Qe(l,i.a6,e)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Xe.has(t)&&a.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,i.a3[t]||{},i.d.datasets[t]||{},{type:t},i.d,i.a6]}resolveNamedOptions(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const o={$shared:!0},{resolver:a,subPrefixes:s}=tt(this._resolverCache,e,r);let l=a;if(function(e,t){const{isScriptable:n,isIndexable:r}=(0,i.aa)(e);for(const o of t){const t=n(o),a=r(o),s=(a||t)&&e[o];if(t&&((0,i.a7)(s)||nt(s))||a&&(0,i.b)(s))return!0}return!1}(a,t)){o.$shared=!1,n=(0,i.a7)(n)?n():n;const t=this.createResolver(e,n,s);l=(0,i.a8)(a,n,t)}for(const i of t)o[i]=l[i];return o}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0;const{resolver:o}=tt(this._resolverCache,e,n);return(0,i.i)(t)?(0,i.a8)(o,t,void 0,r):o}}function tt(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let a=r.get(o);if(!a){a={resolver:(0,i.a9)(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,a)}return a}const nt=e=>(0,i.i)(e)&&Object.getOwnPropertyNames(e).reduce(((t,n)=>t||(0,i.a7)(e[n])),!1);const rt=["top","bottom","left","right","chartArea"];function it(e,t){return"top"===e||"bottom"===e||-1===rt.indexOf(e)&&"x"===t}function ot(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function at(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),(0,i.Q)(n&&n.onComplete,[e],t)}function st(e){const t=e.chart,n=t.options.animation;(0,i.Q)(n&&n.onProgress,[e],t)}function lt(e){return(0,i.M)()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ct={},ut=e=>{const t=lt(e);return Object.values(ct).filter((e=>e.canvas===t)).pop()};function dt(e,t,n){const r=Object.keys(e);for(const i of r){const r=+i;if(r>=t){const o=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=o)}}}class pt{static register(){ze.add(...arguments),ht()}static unregister(){ze.remove(...arguments),ht()}constructor(e,t){const n=this.config=new et(t),r=lt(e),o=ut(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!(0,i.M)()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?ue:Se}(r)),this.platform.updateConfig(n);const l=this.platform.acquireContext(r,s.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;this.id=(0,i.ac)(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Be,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ad)((e=>this.update(e)),s.resizeDelay||0),this._dataChanges=[],ct[this.id]=this,l&&c?(a.listen(this,"complete",at),a.listen(this,"progress",st),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return(0,i.k)(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return ze}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.af)(this.canvas,this.ctx),this}stop(){return a.stop(this),this}resize(e,t){a.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,i.ae)(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),(0,i.Q)(n.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};(0,i.F)(e,((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Ze(e,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),(0,i.F)(o,(t=>{const o=t.options,a=o.id,s=Ze(a,o),l=(0,i.v)(o.type,t.dtype);void 0!==o.position&&it(o.position,s)===it(t.dposition)||(o.position=t.dposition),r[a]=!0;let c=null;if(a in n&&n[a].type===l)c=n[a];else{c=new(ze.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),n[c.id]=c}c.init(o,e)})),(0,i.F)(r,((e,t)=>{e||delete n[t]})),(0,i.F)(n,(e=>{le.configure(this,e,e.options),le.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(ot("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=r.indexAxis||Ve(a,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=ze.getController(a),{datasetElementType:r,dataElementType:s}=i.d.datasets[a];Object.assign(t,{dataElementType:ze.getElement(s),datasetElementType:r&&ze.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){(0,i.F)(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let i=0,c=this.data.datasets.length;i<c;i++){const{controller:e}=this.getDatasetMeta(i),t=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(t),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||(0,i.F)(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ot("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){(0,i.F)(this.scales,(e=>{le.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);(0,i.ag)(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){dt(e,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let o=1;o<t;o++)if(!(0,i.ag)(r,n(o)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;le.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],(0,i.F)(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,(0,i.a7)(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(a.has(this)?this.attached&&!a.running(this)&&a.start(this):(this.draw(),at({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];e&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}(e)||this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&(0,i.Y)(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&(0,i.$)(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return(0,i.C)(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=Y.modes[t];return"function"===typeof i?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=(0,i.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),a=o.controller._resolveAnimations(void 0,r);(0,i.h)(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),a.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),(0,i.af)(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete ct[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};(0,i.F)(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){(0,i.F)(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},(0,i.F)(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){o=e[a];const t=o&&this.getDatasetMeta(o.datasetIndex).controller;t&&t[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[n],index:n}}));!(0,i.ah)(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,a=t,s=this._getActiveElements(e,r,n,a),l=(0,i.ai)(e),c=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,(0,i.Q)(o.onHover,[e,s,this],this),l&&(0,i.Q)(o.onClick,[e,s,this],this));const u=!(0,i.ah)(s,r);return(u||t)&&(this._active=s,this._updateHoverStyles(s,r,t)),this._lastEvent=c,u}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}function ht(){return(0,i.F)(pt.instances,(e=>e._plugins.invalidate()))}function ft(e,t,n,r){const o=(a=e.options.borderRadius,(0,i.ak)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(n-t)/2,l=Math.min(s,r*t/2),c=e=>{const t=(n-Math.min(s,e))*r/2;return(0,i.S)(e,0,Math.min(s,t))};return{outerStart:c(o.outerStart),outerEnd:c(o.outerEnd),innerStart:(0,i.S)(o.innerStart,0,l),innerEnd:(0,i.S)(o.innerEnd,0,l)}}function mt(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function gt(e,t,n,r,o,a){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:d}=t,p=Math.max(t.outerRadius+r+n-u,0),h=d>0?d+r+n+u:0;let f=0;const m=o-c;if(r){const e=((d>0?d-r:0)+(p>0?p-r:0))/2;f=(m-(0!==e?m*e/(e+r):m))/2}const g=(m-Math.max(.001,m*p-n/i.P)/p)/2,y=c+g+f,v=o-g-f,{outerStart:b,outerEnd:_,innerStart:w,innerEnd:x}=ft(t,h,p,v-y),k=p-b,C=p-_,S=y+b/k,M=v-_/C,T=h+w,E=h+x,P=y+w/T,I=v-x/E;if(e.beginPath(),a){const t=(S+M)/2;if(e.arc(s,l,p,S,t),e.arc(s,l,p,t,M),_>0){const t=mt(C,M,s,l);e.arc(t.x,t.y,_,M,v+i.H)}const n=mt(E,v,s,l);if(e.lineTo(n.x,n.y),x>0){const t=mt(E,I,s,l);e.arc(t.x,t.y,x,v+i.H,I+Math.PI)}const r=(v-x/h+(y+w/h))/2;if(e.arc(s,l,h,v-x/h,r,!0),e.arc(s,l,h,r,y+w/h,!0),w>0){const t=mt(T,P,s,l);e.arc(t.x,t.y,w,P+Math.PI,y-i.H)}const o=mt(k,y,s,l);if(e.lineTo(o.x,o.y),b>0){const t=mt(k,S,s,l);e.arc(t.x,t.y,b,y-i.H,S)}}else{e.moveTo(s,l);const t=Math.cos(S)*p+s,n=Math.sin(S)*p+l;e.lineTo(t,n);const r=Math.cos(M)*p+s,i=Math.sin(M)*p+l;e.lineTo(r,i)}e.closePath()}function yt(e,t,n,r,o){const{fullCircles:a,startAngle:s,circumference:l,options:c}=t,{borderWidth:u,borderJoinStyle:d,borderDash:p,borderDashOffset:h}=c,f="inner"===c.borderAlign;if(!u)return;e.setLineDash(p||[]),e.lineDashOffset=h,f?(e.lineWidth=2*u,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let m=t.endAngle;if(a){gt(e,t,n,r,m,o);for(let t=0;t<a;++t)e.stroke();isNaN(l)||(m=s+(l%i.T||i.T))}f&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:a,y:s,outerRadius:l,innerRadius:c}=t;let u=o/l;e.beginPath(),e.arc(a,s,l,r-u,n+u),c>o?(u=o/c,e.arc(a,s,c,n+u,r-u,!0)):e.arc(a,s,o,n+i.H,r-i.H),e.closePath(),e.clip()}(e,t,m),a||(gt(e,t,n,r,m,o),e.stroke())}(0,r.Z)(pt,"defaults",i.d),(0,r.Z)(pt,"instances",ct),(0,r.Z)(pt,"overrides",i.a3),(0,r.Z)(pt,"registry",ze),(0,r.Z)(pt,"version","4.3.0"),(0,r.Z)(pt,"getChart",ut);class vt extends Me{constructor(e){super(),(0,r.Z)(this,"circumference",void 0),(0,r.Z)(this,"endAngle",void 0),(0,r.Z)(this,"fullCircles",void 0),(0,r.Z)(this,"innerRadius",void 0),(0,r.Z)(this,"outerRadius",void 0),(0,r.Z)(this,"pixelMargin",void 0),(0,r.Z)(this,"startAngle",void 0),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:a}=(0,i.D)(r,{x:e,y:t}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,h=(0,i.v)(d,l-s)>=i.T||(0,i.p)(o,s,l),f=(0,i.aj)(a,c+p,u+p);return h&&f}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(r+i)/2,u=(o+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>i.T?Math.floor(n/i.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*r,Math.sin(s)*r);const l=r*(1-Math.sin(Math.min(i.P,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:a,startAngle:s,circumference:l}=t;let c=t.endAngle;if(a){gt(e,t,n,r,c,o);for(let t=0;t<a;++t)e.fill();isNaN(l)||(c=s+(l%i.T||i.T))}gt(e,t,n,r,c,o),e.fill()}(e,this,l,o,a),yt(e,this,l,o,a),e.restore()}}function bt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=(0,i.v)(n.borderCapStyle,t.borderCapStyle),e.setLineDash((0,i.v)(n.borderDash,t.borderDash)),e.lineDashOffset=(0,i.v)(n.borderDashOffset,t.borderDashOffset),e.lineJoin=(0,i.v)(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=(0,i.v)(n.borderWidth,t.borderWidth),e.strokeStyle=(0,i.v)(n.borderColor,t.borderColor)}function _t(e,t,n){e.lineTo(n.x,n.y)}function wt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function xt(e,t,n,r){const{points:o,options:a}=t,{count:s,start:l,loop:c,ilen:u}=wt(o,n,r),d=function(e){return e.stepped?i.ar:e.tension||"monotone"===e.cubicInterpolationMode?i.as:_t}(a);let p,h,f,{move:m=!0,reverse:g}=r||{};for(p=0;p<=u;++p)h=o[(l+(g?u-p:p))%s],h.skip||(m?(e.moveTo(h.x,h.y),m=!1):d(e,f,h,g,a.stepped),f=h);return c&&(h=o[(l+(g?u:0))%s],d(e,f,h,g,a.stepped)),!!c}function kt(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=wt(i,n,r),{move:l=!0,reverse:c}=r||{};let u,d,p,h,f,m,g=0,y=0;const v=e=>(a+(c?s-e:e))%o,b=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(d=i[v(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=i[v(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===p?(n<h?h=n:n>f&&(f=n),g=(y*g+t)/++y):(b(),e.lineTo(t,n),p=r,y=0,h=f=n),m=n}b()}function Ct(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?kt:xt}(0,r.Z)(vt,"id","arc"),(0,r.Z)(vt,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),(0,r.Z)(vt,"defaultRoutes",{backgroundColor:"backgroundColor"}),(0,r.Z)(vt,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const St="function"===typeof Path2D;function Mt(e,t,n,r){St&&!t.options.segment?function(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),bt(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){const{segments:i,options:o}=t,a=Ct(t);for(const s of i)bt(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class Tt extends Me{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;(0,i.al)(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.am)(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,a=(0,i.an)(this,{property:t,start:r,end:r});if(!a.length)return;const s=[],l=function(e){return e.stepped?i.ao:e.tension||"monotone"===e.cubicInterpolationMode?i.ap:i.aq}(n);let c,u;for(c=0,u=a.length;c<u;++c){const{start:i,end:u}=a[c],d=o[i],p=o[u];if(d===p){s.push(d);continue}const h=l(d,p,Math.abs((r-d[t])/(p[t]-d[t])),n.stepped);h[t]=e[t],s.push(h)}return 1===s.length?s[0]:s}pathSegment(e,t,n){return Ct(this)(e,this,t,n)}path(e,t,n){const r=this.segments,i=Ct(this);let o=this._loop;t=t||0,n=n||this.points.length-t;for(const a of r)o&=i(e,this,a,{start:t,end:t+n-1});return!!o}draw(e,t,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),Mt(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Et(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}(0,r.Z)(Tt,"id","line"),(0,r.Z)(Tt,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),(0,r.Z)(Tt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),(0,r.Z)(Tt,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class Pt extends Me{constructor(e){super(),(0,r.Z)(this,"parsed",void 0),(0,r.Z)(this,"skip",void 0),(0,r.Z)(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(e-i,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return Et(this,e,"x",t)}inYRange(e,t){return Et(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!(0,i.C)(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,(0,i.at)(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function It(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,s=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function Ot(e,t,n,r){return e?0:(0,i.S)(t,n,r)}function Lt(e){const t=It(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,a=(0,i.av)(r);return{t:Ot(o.top,a.top,0,n),r:Ot(o.right,a.right,0,t),b:Ot(o.bottom,a.bottom,0,n),l:Ot(o.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,a=(0,i.aw)(o),s=Math.min(t,n),l=e.borderSkipped,c=r||(0,i.i)(o);return{topLeft:Ot(!c||l.top||l.left,a.topLeft,0,s),topRight:Ot(!c||l.top||l.right,a.topRight,0,s),bottomLeft:Ot(!c||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:Ot(!c||l.bottom||l.right,a.bottomRight,0,s)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Rt(e,t,n,r){const o=null===t,a=null===n,s=e&&!(o&&a)&&It(e,r);return s&&(o||(0,i.aj)(t,s.left,s.right))&&(a||(0,i.aj)(n,s.top,s.bottom))}function jt(e,t){e.rect(t.x,t.y,t.w,t.h)}function Dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}(0,r.Z)(Pt,"id","point"),(0,r.Z)(Pt,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,r.Z)(Pt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class At extends Me{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:a}=Lt(this),s=function(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(a.radius)?i.au:jt;e.save(),a.w===o.w&&a.h===o.h||(e.beginPath(),s(e,Dt(a,t,o)),e.clip(),s(e,Dt(o,-t,a)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),s(e,Dt(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return Rt(this,e,t,n)}inXRange(e,t){return Rt(this,e,null,t)}inYRange(e,t){return Rt(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}(0,r.Z)(At,"id","bar"),(0,r.Z)(At,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),(0,r.Z)(At,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Nt=Object.freeze({__proto__:null,ArcElement:vt,BarElement:At,LineElement:Tt,PointElement:Pt});const Ft=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],zt=Ft.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function Bt(e){return Ft[e%Ft.length]}function Ut(e){return zt[e%zt.length]}function $t(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof R?t=function(e,t){return e.backgroundColor=e.data.map((()=>Bt(t++))),t}(n,t):i instanceof D?t=function(e,t){return e.backgroundColor=e.data.map((()=>Ut(t++))),t}(n,t):i&&(t=function(e,t){return e.borderColor=Bt(t),e.backgroundColor=Ut(t),++t}(n,t))}}function Vt(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var qt={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(Vt(r)||(a=i)&&(a.borderColor||a.backgroundColor)||o&&Vt(o)))return;var a;const s=$t(e);r.forEach(s)}};function Zt(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Ht(e){e.data.datasets.forEach((e=>{Zt(e)}))}var Gt={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Ht(e);const r=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:a,indexAxis:s}=t,l=e.getDatasetMeta(o),c=a||t.data;if("y"===(0,i.a)([s,e.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(e.options.parsing)return;let{start:d,count:p}=function(e,t){const n=t.length;let r,o=0;const{iScale:a}=e,{min:s,max:l,minDefined:c,maxDefined:u}=a.getUserBounds();return c&&(o=(0,i.S)((0,i.B)(t,a.axis,s).lo,0,n-1)),r=u?(0,i.S)((0,i.B)(t,a.axis,l).hi+1,o,n)-o:n-o,{start:o,count:r}}(l,c);if(p<=(n.threshold||4*r))return void Zt(t);let h;switch((0,i.k)(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const c=t+n-1;let u,d,p,h,f,m=t;for(a[l++]=e[m],u=0;u<o-2;u++){let r,i=0,o=0;const c=Math.floor((u+1)*s)+1+t,g=Math.min(Math.floor((u+2)*s)+1,n)+t,y=g-c;for(r=c;r<g;r++)i+=e[r].x,o+=e[r].y;i/=y,o/=y;const v=Math.floor(u*s)+1+t,b=Math.min(Math.floor((u+1)*s)+1,n)+t,{x:_,y:w}=e[m];for(p=h=-1,r=v;r<b;r++)h=.5*Math.abs((_-i)*(e[r].y-w)-(_-e[r].x)*(o-w)),h>p&&(p=h,d=e[r],f=r);a[l++]=d,m=f}return a[l++]=e[c],a}(c,d,p,r,n);break;case"min-max":h=function(e,t,n,r){let o,a,s,l,c,u,d,p,h,f,m=0,g=0;const y=[],v=t+n-1,b=e[t].x,_=e[v].x-b;for(o=t;o<t+n;++o){a=e[o],s=(a.x-b)/_*r,l=a.y;const t=0|s;if(t===c)l<h?(h=l,u=o):l>f&&(f=l,d=o),m=(g*m+a.x)/++g;else{const n=o-1;if(!(0,i.k)(u)&&!(0,i.k)(d)){const t=Math.min(u,d),r=Math.max(u,d);t!==p&&t!==n&&y.push({...e[t],x:m}),r!==p&&r!==n&&y.push({...e[r],x:m})}o>0&&n!==p&&y.push(e[n]),y.push(a),c=t,g=0,h=f=l,u=d=p=o}}return y}(c,d,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=h}))},destroy(e){Ht(e)}};function Wt(e,t,n,r){if(r)return;let o=t[e],a=n[e];return"angle"===e&&(o=(0,i.ay)(o),a=(0,i.ay)(a)),{property:e,start:o,end:a}}function Yt(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Kt(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Xt(e,t){let n=[],r=!1;return(0,i.b)(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach((e=>{let{start:t,end:a}=e;a=Yt(t,a,i);const s=i[t],l=i[a];null!==r?(o.push({x:s.x,y:r}),o.push({x:l.x,y:r})):null!==n&&(o.push({x:n,y:s.y}),o.push({x:n,y:l.y}))})),o}(e,t),n.length?new Tt({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Jt(e){return e&&!1!==e.fill}function Qt(e,t,n){let r=e[t].fill;const o=[t];let a;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!(0,i.g)(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function en(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=(0,i.v)(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if((0,i.i)(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return(0,i.g)(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function tn(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=nn(o,t,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function nn(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],a=e.segments,s=e.points;let l=!1,c=!1;for(let u=0;u<a.length;u++){const e=a[u],t=s[e.start][n],r=s[e.end][n];if((0,i.aj)(o,t,r)){l=o===t,c=o===r;break}}return{first:l,last:c,point:r}}class rn{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:a}=this;return t=t||{start:0,end:i.T},e.arc(r,o,a,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function on(e){const{chart:t,fill:n,line:r}=e;if((0,i.g)(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const e=r[i];if(e.index===t)break;e.hidden||n.unshift(e.dataset)}return n}(t,n);s.push(Xt({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const e=o[l];for(let t=e.start;t<=e.end;t++)tn(i,a[t],s)}return new Tt({points:i,options:{}})}(e);if("shape"===n)return!0;const o=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,a=r.reverse?t.max:t.min,s=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:(0,i.i)(e)?e.value:t.getBaseValue(),r}(n,t,a),l=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,a);return new rn({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(s)})}for(let i=0;i<o;++i)l.push(t.getPointPositionForValue(i,s));return l}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:(0,i.i)(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if((0,i.g)(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return o instanceof rn?o:Xt(o,r)}function an(e,t,n){const r=on(t),{line:o,scale:a,axis:s}=t,l=o.options,c=l.fill,u=l.backgroundColor,{above:d=u,below:p=u}=c||{};r&&o.points.length&&((0,i.Y)(e,n),function(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&o!==i&&(sn(e,r,a.top),ln(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),sn(e,r,a.bottom));ln(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}(e,{line:o,target:r,above:d,below:p,area:n,scale:a,axis:s}),(0,i.$)(e))}function sn(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=i[r],u=i[Yt(r,l,i)];o?(e.moveTo(c.x,c.y),o=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function ln(e,t){const{line:n,target:r,property:o,color:a,scale:s}=t,l=function(e,t,n){const r=e.segments,o=e.points,a=t.points,s=[];for(const l of r){let{start:e,end:r}=l;r=Yt(e,r,o);const c=Wt(n,o[e],o[r],l.loop);if(!t.segments){s.push({source:l,target:c,start:o[e],end:o[r]});continue}const u=(0,i.an)(t,c);for(const t of u){const e=Wt(n,a[t.start],a[t.end],t.loop),r=(0,i.ax)(l,o,e);for(const i of r)s.push({source:i,target:t,start:{[n]:Kt(c,e,"start",Math.max)},end:{[n]:Kt(c,e,"end",Math.min)}})}}return s}(n,r,o);for(const{source:i,target:c,start:u,end:d}of l){const{style:{backgroundColor:t=a}={}}=i,l=!0!==r;e.save(),e.fillStyle=t,cn(e,s,l&&Wt(o,u,d)),e.beginPath();const p=!!n.pathSegment(e,i);let h;if(l){p?e.closePath():un(e,r,d,o);const t=!!r.pathSegment(e,c,{move:p,reverse:!0});h=p&&t,h||un(e,r,u,o)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function cn(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};"x"===o&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function un(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var dn={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Tt&&(l={visible:e.isDatasetVisible(a),index:a,fill:en(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],l&&!1!==l.fill&&(l.fill=Qt(i,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const t=i[a].$filler;t&&(t.line.updateControlPoints(o,t.axis),r&&t.fill&&an(e.ctx,t,o))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const t=r[i].$filler;Jt(t)&&an(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Jt(r)&&"beforeDatasetDraw"===n.drawTime&&an(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const pn=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class hn extends Me{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=(0,i.Q)(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=(0,i.a0)(n.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=pn(n,o);let c,u;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;i.textAlign="left",i.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>o)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-e;let u=a,d=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,o)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,i){const o=function(e,t,n,r){let i=e.text;i&&"string"!==typeof i&&(i=i.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+r.measureText(i).width}(r,e,t,n),a=function(e,t,n){let r=e;"string"!==typeof t.text&&(r=fn(t,n));return r}(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}(n,t,i,e,r);o>0&&p+g+2*a>c&&(u+=d+a,l.push({width:d,height:p}),h+=d+a,f++,d=p=0),s[o]={left:h,top:p,col:f,width:m,height:g},d=Math.max(d,m),p+=g+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,a=(0,i.az)(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[o]);for(const l of t)o!==l.row&&(o=l.row,s=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+e+r,l.left=a.leftForLtr(a.x(s),l.width),s+=l.width+r}else{let o=0,s=(0,i.a2)(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const l of t)l.col!==o&&(o=l.col,s=(0,i.a2)(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),l.top=s,l.left+=this.left+r,l.left=a.leftForLtr(a.x(l.left),l.width),s+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;(0,i.Y)(e,this),this._draw(),(0,i.$)(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:a}=e,s=i.d.color,l=(0,i.az)(e.rtl,this.left,this.width),c=(0,i.a0)(a.font),{padding:u}=a,d=c.size,p=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=pn(a,d),y=this.isHorizontal(),v=this._computeTitleHeight();h=y?{x:(0,i.a2)(o,this.left+u,this.right-n[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:(0,i.a2)(o,this.top+v+u,this.bottom-t[0].height),line:0},(0,i.aA)(this.ctx,e.textDirection);const b=g+u;this.legendItems.forEach(((_,w)=>{r.strokeStyle=_.fontColor,r.fillStyle=_.fontColor;const x=r.measureText(_.text).width,k=l.textAlign(_.textAlign||(_.textAlign=a.textAlign)),C=f+p+x;let S=h.x,M=h.y;l.setWidth(this.width),y?w>0&&S+C+u>this.right&&(M=h.y+=b,h.line++,S=h.x=(0,i.a2)(o,this.left+u,this.right-n[h.line])):w>0&&M+b>this.bottom&&(S=h.x=S+t[h.line].width+u,h.line++,M=h.y=(0,i.a2)(o,this.top+v+u,this.bottom-t[h.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;r.save();const o=(0,i.v)(n.lineWidth,1);if(r.fillStyle=(0,i.v)(n.fillStyle,s),r.lineCap=(0,i.v)(n.lineCap,"butt"),r.lineDashOffset=(0,i.v)(n.lineDashOffset,0),r.lineJoin=(0,i.v)(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=(0,i.v)(n.strokeStyle,s),r.setLineDash((0,i.v)(n.lineDash,[])),a.usePointStyle){const s={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},c=l.xPlus(e,f/2),u=t+p;(0,i.aD)(r,s,c,u,a.pointStyleWidth&&f)}else{const a=t+Math.max((d-m)/2,0),s=l.leftForLtr(e,f),c=(0,i.aw)(n.borderRadius);r.beginPath(),Object.values(c).some((e=>0!==e))?(0,i.au)(r,{x:s,y:a,w:f,h:m,radius:c}):r.rect(s,a,f,m),r.fill(),0!==o&&r.stroke()}r.restore()}(l.x(S),M,_),S=(0,i.aB)(k,S+f+p,y?S+C:this.right,e.rtl),function(e,t,n){(0,i.Z)(r,n.text,e,t+g/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(S),M,_),y)h.x+=C+u;else if("string"!==typeof _.text){const e=c.lineHeight;h.y+=fn(_,e)}else h.y+=b})),(0,i.aC)(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=(0,i.a0)(t.font),r=(0,i.E)(t.padding);if(!t.display)return;const o=(0,i.az)(e.rtl,this.left,this.width),a=this.ctx,s=t.position,l=n.size/2,c=r.top+l;let u,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,d=(0,i.a2)(e.align,d,this.right-p);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);u=c+(0,i.a2)(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=(0,i.a2)(s,d,d+p);a.textAlign=o.textAlign((0,i.a1)(s)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,(0,i.Z)(a,t.text,h,u,n)}_computeTitleHeight(){const e=this.options.title,t=(0,i.a0)(e.font),n=(0,i.E)(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if((0,i.aj)(e,this.left,this.right)&&(0,i.aj)(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],(0,i.aj)(e,r.left,r.left+r.width)&&(0,i.aj)(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const a=this._hoveredItem,s=(o=n,null!==(r=a)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);a&&!s&&(0,i.Q)(t.onLeave,[e,a,this],this),this._hoveredItem=n,n&&!s&&(0,i.Q)(t.onHover,[e,n,this],this)}else n&&(0,i.Q)(t.onClick,[e,n,this],this);var r,o}}function fn(e,t){return t*(e.text?e.text.length+.5:0)}var mn={id:"legend",_element:hn,start(e,t,n){const r=e.legend=new hn({ctx:e.ctx,options:n,chart:e});le.configure(e,r,n),le.addBox(e,r)},stop(e){le.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;le.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const c=e.controller.getStyle(n?0:void 0),u=(0,i.E)(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(l||c.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class gn extends Me{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.E)(n.padding);const o=r*(0,i.a0)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:a}=this,s=a.align;let l,c,u,d=0;return this.isHorizontal()?(c=(0,i.a2)(s,n,o),u=t+e,l=o-n):("left"===a.position?(c=n+e,u=(0,i.a2)(s,r,t),d=-.5*i.P):(c=o-e,u=(0,i.a2)(s,t,r),d=.5*i.P),l=r-t),{titleX:c,titleY:u,maxWidth:l,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=(0,i.a0)(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(r);(0,i.Z)(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:l,textAlign:(0,i.a1)(t.align),textBaseline:"middle",translation:[o,a]})}}var yn={id:"title",_element:gn,start(e,t,n){!function(e,t){const n=new gn({ctx:e.ctx,options:t,chart:e});le.configure(e,n,t),le.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;le.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;le.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vn=new WeakMap;var bn={id:"subtitle",start(e,t,n){const r=new gn({ctx:e.ctx,options:n,chart:e});le.configure(e,r,n),le.addBox(e,r),vn.set(e,r)},stop(e){le.removeBox(e,vn.get(e)),vn.delete(e)},beforeUpdate(e,t,n){const r=vn.get(e);le.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _n={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r+=e.x,i+=e.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n,r,o,a=t.x,s=t.y,l=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=r.getCenterPoint(),n=(0,i.aE)(t,e);n<l&&(l=n,o=r)}}if(o){const e=o.tooltipPosition();a=e.x,s=e.y}return{x:a,y:s}}};function wn(e,t){return t&&((0,i.b)(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function xn(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function kn(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Cn(e,t){const n=e.chart.ctx,{body:r,footer:o,title:a}=e,{boxWidth:s,boxHeight:l}=t,c=(0,i.a0)(t.bodyFont),u=(0,i.a0)(t.titleFont),d=(0,i.a0)(t.footerFont),p=a.length,h=o.length,f=r.length,m=(0,i.E)(t.padding);let g=m.height,y=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,p&&(g+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),v){g+=f*(t.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(v-f)*c.lineHeight+(v-1)*t.bodySpacing}h&&(g+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let b=0;const _=function(e){y=Math.max(y,n.measureText(e).width+b)};return n.save(),n.font=u.string,(0,i.F)(e.title,_),n.font=c.string,(0,i.F)(e.beforeBody.concat(e.afterBody),_),b=t.displayColors?s+2+t.boxPadding:0,(0,i.F)(r,(e=>{(0,i.F)(e.before,_),(0,i.F)(e.lines,_),(0,i.F)(e.after,_)})),b=0,n.font=d.string,(0,i.F)(e.footer,_),n.restore(),y+=m.width,{width:y,height:g}}function Sn(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||"right"===e&&i-o-a<0||void 0}(c,e,t,n)&&(c="center"),c}function Mn(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||Sn(e,t,n,r),yAlign:r}}function Tn(e,t,n,r){const{caretSize:o,caretPadding:a,cornerRadius:s}=e,{xAlign:l,yAlign:c}=n,u=o+a,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:f}=(0,i.aw)(s);let m=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,l);const g=function(e,t,n){let{y:r,height:i}=e;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,c,u);return"center"===c?"left"===l?m+=u:"right"===l&&(m-=u):"left"===l?m-=Math.max(d,h)+o:"right"===l&&(m+=Math.max(p,f)+o),{x:(0,i.S)(m,0,r.width-t.width),y:(0,i.S)(g,0,r.height-t.height)}}function En(e,t,n){const r=(0,i.E)(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function Pn(e){return wn([],xn(e))}function In(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const On={beforeTitle:i.aF,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:i.aF,beforeBody:i.aF,beforeLabel:i.aF,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return(0,i.k)(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:i.aF,afterBody:i.aF,beforeFooter:i.aF,footer:i.aF,afterFooter:i.aF};function Ln(e,t,n,r){const i=e[t].call(n,r);return"undefined"===typeof i?On[t].call(n,r):i}class Rn extends Me{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new u(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,(0,i.j)(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=Ln(n,"beforeTitle",this,e),i=Ln(n,"title",this,e),o=Ln(n,"afterTitle",this,e);let a=[];return a=wn(a,xn(r)),a=wn(a,xn(i)),a=wn(a,xn(o)),a}getBeforeBody(e,t){return Pn(Ln(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return(0,i.F)(e,(e=>{const t={before:[],lines:[],after:[]},i=In(n,e);wn(t.before,xn(Ln(i,"beforeLabel",this,e))),wn(t.lines,Ln(i,"label",this,e)),wn(t.after,xn(Ln(i,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return Pn(Ln(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=Ln(n,"beforeFooter",this,e),i=Ln(n,"footer",this,e),o=Ln(n,"afterFooter",this,e);let a=[];return a=wn(a,xn(r)),a=wn(a,xn(i)),a=wn(a,xn(o)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],a=[];let s,l,c=[];for(s=0,l=t.length;s<l;++s)c.push(kn(this.chart,t[s]));return e.filter&&(c=c.filter(((t,r,i)=>e.filter(t,r,i,n)))),e.itemSort&&(c=c.sort(((t,r)=>e.itemSort(t,r,n)))),(0,i.F)(c,(t=>{const n=In(e.callbacks,t);r.push(Ln(n,"labelColor",this,t)),o.push(Ln(n,"labelPointStyle",this,t)),a.push(Ln(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=c,c}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const e=_n[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const t=this._size=Cn(this,n),a=Object.assign({},e,t),s=Mn(this.chart,n,a),l=Tn(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=(0,i.aw)(s),{x:p,y:h}=e,{width:f,height:m}=t;let g,y,v,b,_,w;return"center"===o?(_=h+m/2,"left"===r?(g=p,y=g-a,b=_+a,w=_-a):(g=p+f,y=g+a,b=_-a,w=_+a),v=g):(y="left"===r?p+Math.max(l,u)+a:"right"===r?p+f-Math.max(c,d)-a:this.caretX,"top"===o?(b=h,_=b-a,g=y-a,v=y+a):(b=h+m,_=b+a,g=y+a,v=y-a),w=b),{x1:g,x2:y,x3:v,y1:b,y2:_,y3:w}}drawTitle(e,t,n){const r=this.title,o=r.length;let a,s,l;if(o){const c=(0,i.az)(n.rtl,this.x,this.width);for(e.x=En(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline="middle",a=(0,i.a0)(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,l=0;l<o;++l)t.fillText(r[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+s,l+1===o&&(e.y+=n.titleMarginBottom-s)}}_drawColorBox(e,t,n,r,o){const a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=o,u=(0,i.a0)(o.bodyFont),d=En(this,"left",o),p=r.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,f=t.y+h;if(o.usePointStyle){const t={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=r.leftForLtr(p,c)+c/2,u=f+l/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,(0,i.at)(e,t,n,u),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,(0,i.at)(e,t,n,u)}else{e.lineWidth=(0,i.i)(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const t=r.leftForLtr(p,c),n=r.leftForLtr(r.xPlus(p,1),c-2),s=(0,i.aw)(a.borderRadius);Object.values(s).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,(0,i.au)(e,{x:t,y:f,w:c,h:l,radius:s}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),(0,i.au)(e,{x:n,y:f+1,w:c-2,h:l-2,radius:s}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,f,c,l),e.strokeRect(t,f,c,l),e.fillStyle=a.backgroundColor,e.fillRect(n,f+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=n,d=(0,i.a0)(n.bodyFont);let p=d.lineHeight,h=0;const f=(0,i.az)(n.rtl,this.x,this.width),m=function(n){t.fillText(n,f.x(e.x+h),e.y+p/2),e.y+=p+o},g=f.textAlign(a);let y,v,b,_,w,x,k;for(t.textAlign=a,t.textBaseline="middle",t.font=d.string,e.x=En(this,g,n),t.fillStyle=n.bodyColor,(0,i.F)(this.beforeBody,m),h=s&&"right"!==g?"center"===a?c/2+u:c+2+u:0,_=0,x=r.length;_<x;++_){for(y=r[_],v=this.labelTextColors[_],t.fillStyle=v,(0,i.F)(y.before,m),b=y.lines,s&&b.length&&(this._drawColorBox(t,e,_,f,n),p=Math.max(d.lineHeight,l)),w=0,k=b.length;w<k;++w)m(b[w]),p=d.lineHeight;(0,i.F)(y.after,m)}h=0,p=d.lineHeight,(0,i.F)(this.afterBody,m),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let a,s;if(o){const l=(0,i.az)(n.rtl,this.x,this.width);for(e.x=En(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=l.textAlign(n.footerAlign),t.textBaseline="middle",a=(0,i.a0)(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,s=0;s<o;++s)t.fillText(r[s],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=e,{width:c,height:u}=n,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:f}=(0,i.aw)(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(s+d,l),"top"===a&&this.drawCaret(e,t,n,r),t.lineTo(s+c-p,l),t.quadraticCurveTo(s+c,l,s+c,l+p),"center"===a&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(s+c,l+u-f),t.quadraticCurveTo(s+c,l+u,s+c-f,l+u),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(s+h,l+u),t.quadraticCurveTo(s,l+u,s,l+u-h),"center"===a&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(s,l+d),t.quadraticCurveTo(s,l,s+d,l),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=_n[e.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Cn(this,e),a=Object.assign({},n,this._size),s=Mn(t,e,a),l=Tn(e,a,s,t);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=(0,i.E)(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),(0,i.aA)(e,t.textDirection),o.y+=a.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),(0,i.aC)(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[n],index:n}})),o=!(0,i.ah)(n,r),a=this._positionChanged(r,t);(o||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],a=this._getActiveElements(e,o,t,n),s=this._positionChanged(a,e),l=t||!(0,i.ah)(a,o)||s;return l&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),l}_getActiveElements(e,t,n,r){const i=this.options;if("mouseout"===e.type)return[];if(!r)return t;const o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:n,caretY:r,options:i}=this,o=_n[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}(0,r.Z)(Rn,"positioners",_n);var jn={id:"tooltip",_element:Rn,positioners:_n,afterInit(e,t,n){n&&(e.tooltip=new Rn({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:On},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Dn=Object.freeze({__proto__:null,Colors:qt,Decimation:Gt,Filler:dn,Legend:mn,SubTitle:bn,Title:yn,Tooltip:jn});function An(e,t,n,r){const i=e.indexOf(t);if(-1===i)return((e,t,n,r)=>("string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return i!==e.lastIndexOf(t)?n:i}function Nn(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Fn extends Ae{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if((0,i.k)(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:(0,i.S)(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:An(n,e,(0,i.v)(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=e;o<=t;o++)r.push({value:o});return r}getLabelForValue(e){return Nn.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function zn(e,t,n){let{horizontal:r,minRotation:o}=n;const a=(0,i.t)(o),s=(r?Math.sin(a):Math.cos(a))||.001,l=.75*t*(""+e).length;return Math.min(t/s,l)}(0,r.Z)(Fn,"id","category"),(0,r.Z)(Fn,"defaults",{ticks:{callback:Nn}});class Bn extends Ae{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return(0,i.k)(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const a=e=>r=t?r:e,s=e=>o=n?o:e;if(e){const e=(0,i.s)(r),t=(0,i.s)(o);e<0&&t<0?s(0):e>0&&t>0&&a(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);s(o+t),e||a(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(e,t){const n=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:p}=e,h=o||1,f=u-1,{min:m,max:g}=t,y=!(0,i.k)(a),v=!(0,i.k)(s),b=!(0,i.k)(c),_=(g-m)/(d+1);let w,x,k,C,S=(0,i.aH)((g-m)/f/h)*h;if(S<1e-14&&!y&&!v)return[{value:m},{value:g}];C=Math.ceil(g/S)-Math.floor(m/S),C>f&&(S=(0,i.aH)(C*S/f/h)*h),(0,i.k)(l)||(w=Math.pow(10,l),S=Math.ceil(S*w)/w),"ticks"===r?(x=Math.floor(m/S)*S,k=Math.ceil(g/S)*S):(x=m,k=g),y&&v&&o&&(0,i.aI)((s-a)/o,S/1e3)?(C=Math.round(Math.min((s-a)/S,u)),S=(s-a)/C,x=a,k=s):b?(x=y?a:x,k=v?s:k,C=c-1,S=(k-x)/C):(C=(k-x)/S,C=(0,i.aJ)(C,Math.round(C),S/1e3)?Math.round(C):Math.ceil(C));const M=Math.max((0,i.aK)(S),(0,i.aK)(x));w=Math.pow(10,(0,i.k)(l)?M:l),x=Math.round(x*w)/w,k=Math.round(k*w)/w;let T=0;for(y&&(p&&x!==a?(n.push({value:a}),x<a&&T++,(0,i.aJ)(Math.round((x+T*S)*w)/w,a,zn(a,_,e))&&T++):x<a&&T++);T<C;++T){const e=Math.round((x+T*S)*w)/w;if(v&&e>s)break;n.push({value:e})}return v&&p&&k!==s?n.length&&(0,i.aJ)(n[n.length-1].value,s,zn(s,_,e))?n[n.length-1].value=s:n.push({value:s}):v&&k!==s||n.push({value:k}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&(0,i.aG)(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return(0,i.o)(e,this.chart.options.locale,this.options.ticks.format)}}class Un extends Bn{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=(0,i.g)(e)?e:0,this.max=(0,i.g)(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=(0,i.t)(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}(0,r.Z)(Un,"id","linear"),(0,r.Z)(Un,"defaults",{ticks:{callback:i.aL.formatters.numeric}});const $n=e=>Math.floor((0,i.aM)(e)),Vn=(e,t)=>Math.pow(10,$n(e)+t);function qn(e){return 1===e/Math.pow(10,$n(e))}function Zn(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function Hn(e,t){let{min:n,max:r}=t;n=(0,i.O)(e.min,n);const o=[],a=$n(n);let s=function(e,t){let n=$n(t-e);for(;Zn(e,t,n)>10;)n++;for(;Zn(e,t,n)<10;)n--;return Math.min(n,$n(e))}(n,r),l=s<0?Math.pow(10,Math.abs(s)):1;const c=Math.pow(10,s),u=a>s?Math.pow(10,a):0,d=Math.round((n-u)*l)/l,p=Math.floor((n-u)/c/10)*c*10;let h=Math.floor((d-p)/Math.pow(10,s)),f=(0,i.O)(e.min,Math.round((u+p+h*Math.pow(10,s))*l)/l);for(;f<r;)o.push({value:f,major:qn(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,l=s>=0?1:l),f=Math.round((u+p+h*Math.pow(10,s))*l)/l;const m=(0,i.O)(e.max,f);return o.push({value:m,major:qn(m),significand:h}),o}class Gn extends Ae{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=Bn.prototype.parse.apply(this,[e,t]);if(0!==n)return(0,i.g)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=(0,i.g)(e)?Math.max(0,e):null,this.max=(0,i.g)(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,i.g)(this._userMin)&&(this.min=e===Vn(this.min,0)?Vn(this.min,-1):Vn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const i=t=>n=e?n:t,o=e=>r=t?r:e;n===r&&(n<=0?(i(1),o(10)):(i(Vn(n,-1)),o(Vn(r,1)))),n<=0&&i(Vn(r,-1)),r<=0&&o(Vn(n,1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=Hn({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&(0,i.aG)(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":(0,i.o)(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=(0,i.aM)(e),this._valueRange=(0,i.aM)(this.max)-(0,i.aM)(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:((0,i.aM)(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Wn(e){const t=e.ticks;if(t.display&&e.display){const e=(0,i.E)(t.backdropPadding);return(0,i.v)(t.font&&t.font.size,i.d.font.size)+e.height}return 0}function Yn(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Kn(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],a=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?i.P/a:0;for(let p=0;p<a;p++){const a=s.setContext(e.getPointLabelContext(p));o[p]=a.padding;const h=e.getPointPosition(p,e.drawingArea+o[p],l),f=(0,i.a0)(a.font),m=(c=e.ctx,u=f,d=e._pointLabels[p],d=(0,i.b)(d)?d:[d],{w:(0,i.aN)(c,u.string,d),h:d.length*u.lineHeight});r[p]=m;const g=(0,i.ay)(e.getIndexAngle(p)+l),y=Math.round((0,i.U)(g));Xn(n,t,g,Yn(y,h.x,m.w,0,180),Yn(y,h.y,m.h,90,270))}var c,u,d;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],o=e._pointLabels.length,a=e.options,{centerPointLabels:s,display:l}=a.pointLabels,c={extra:Wn(a)/2,additionalAngle:s?i.P/o:0};let u;for(let i=0;i<o;i++){c.padding=n[i],c.size=t[i];const o=Jn(e,i,c);r.push(o),"auto"===l&&(o.visible=Qn(o,u),o.visible&&(u=o))}return r}(e,r,o)}function Xn(e,t,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Jn(e,t,n){const r=e.drawingArea,{extra:o,additionalAngle:a,padding:s,size:l}=n,c=e.getPointPosition(t,r+o+s,a),u=Math.round((0,i.U)((0,i.ay)(c.angle+i.H))),d=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(c.y,l.h,u),p=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(u),h=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(c.x,l.w,p);return{visible:!0,x:c.x,y:d,textAlign:p,left:h,top:d,right:h+l.w,bottom:d+l.h}}function Qn(e,t){if(!t)return!0;const{left:n,top:r,right:o,bottom:a}=e;return!((0,i.C)({x:n,y:r},t)||(0,i.C)({x:n,y:a},t)||(0,i.C)({x:o,y:r},t)||(0,i.C)({x:o,y:a},t))}function er(e,t,n){const{left:r,top:o,right:a,bottom:s}=n,{backdropColor:l}=t;if(!(0,i.k)(l)){const n=(0,i.aw)(t.borderRadius),c=(0,i.E)(t.backdropPadding);e.fillStyle=l;const u=r-c.left,d=o-c.top,p=a-r+c.width,h=s-o+c.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),(0,i.au)(e,{x:u,y:d,w:p,h:h,radius:n}),e.fill()):e.fillRect(u,d,p,h)}}function tr(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,i.T);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),o.lineTo(n.x,n.y)}}(0,r.Z)(Gn,"id","logarithmic"),(0,r.Z)(Gn,"defaults",{ticks:{callback:i.aL.formatters.logarithmic,major:{enabled:!0}}});class nr extends Bn{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=(0,i.E)(Wn(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=(0,i.g)(e)&&!isNaN(e)?e:0,this.max=(0,i.g)(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Wn(this.options))}generateTickLabels(e){Bn.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=(0,i.Q)(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?Kn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){const t=i.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,i.ay)(e*t+(0,i.t)(n))}getDistanceFromCenterForValue(e){if((0,i.k)(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if((0,i.k)(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return(0,i.j)(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.getIndexAngle(e)-i.H+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),tr(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r,border:o}=t,a=this._pointLabels.length;let s,l,c;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=e._pointLabelItems[o];if(!t.visible)continue;const a=r.setContext(e.getPointLabelContext(o));er(n,a,t);const s=(0,i.a0)(a.font),{x:l,y:c,textAlign:u}=t;(0,i.Z)(n,e._pointLabels[o],l,c+s.lineHeight/2,s,{color:a.color,textAlign:u,textBaseline:"middle"})}}(this,a),r.display&&this.ticks.forEach(((e,t)=>{if(0!==t){l=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),i=r.setContext(n),s=o.setContext(n);!function(e,t,n,r,i){const o=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),tr(e,n,a,r),o.closePath(),o.stroke(),o.restore())}(this,i,l,a,s)}})),n.display){for(e.save(),s=a-1;s>=0;s--){const r=n.setContext(this.getPointLabelContext(s)),{color:i,lineWidth:o}=r;o&&i&&(e.lineWidth=o,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,l=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((r,s)=>{if(0===s&&!t.reverse)return;const l=n.setContext(this.getContext(s)),c=(0,i.a0)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=l.backdropColor;const t=(0,i.E)(l.backdropPadding);e.fillRect(-a/2-t.left,-o-c.size/2-t.top,a+t.width,c.size+t.height)}(0,i.Z)(e,r.label,0,-o,c,{color:l.color})})),e.restore()}drawTitle(){}}(0,r.Z)(nr,"id","radialLinear"),(0,r.Z)(nr,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:i.aL.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),(0,r.Z)(nr,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),(0,r.Z)(nr,"descriptors",{angleLines:{_fallback:"grid"}});const rr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ir=Object.keys(rr);function or(e,t){return e-t}function ar(e,t){if((0,i.k)(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:a}=e._parseOpts;let s=t;return"function"===typeof r&&(s=r(s)),(0,i.g)(s)||(s="string"===typeof r?n.parse(s,r):n.parse(s)),null===s?null:(o&&(s="week"!==o||!(0,i.x)(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function sr(e,t,n,r){const i=ir.length;for(let o=ir.indexOf(e);o<i-1;++o){const e=rr[ir[o]],i=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return ir[o]}return ir[i-1]}function lr(e,t,n){if(n){if(n.length){const{lo:r,hi:o}=(0,i.aP)(n,t);e[n[r]>=t?n[r]:n[o]]=!0}}else e[t]=!0}function cr(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,i,n):r}class ur extends Ae{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.time||(e.time={}),r=this._adapter=new $(e.adapters.date);r.init(t),(0,i.ab)(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:ar(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(e){a||isNaN(e.min)||(r=Math.min(r,e.min)),s||isNaN(e.max)||(o=Math.max(o,e.max))}a&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),r=(0,i.g)(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=(0,i.g)(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,a=this.max,s=(0,i.aO)(r,o,a);return this._unit=t.unit||(n.autoSkip?sr(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,i){for(let o=ir.length-1;o>=ir.indexOf(n);o--){const n=ir[o];if(rr[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return ir[n?ir.indexOf(n):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=ir.indexOf(e)+1,n=ir.length;t<n;++t)if(rr[ir[t]].common)return ir[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&s.reverse(),cr(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0,o=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),r=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),o=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);const a=n.length<3?.5:.25;r=(0,i.S)(r,0,a),o=(0,i.S)(o,0,a),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,a=o.unit||sr(o.minUnit,t,n,this._getLabelCapacity(t)),s=(0,i.v)(r.ticks.stepSize,1),l="week"===a&&o.isoWeekday,c=(0,i.x)(l)||!0===l,u={};let d,p,h=t;if(c&&(h=+e.startOf(h,"isoWeek",l)),h=+e.startOf(h,c?"day":a),e.diff(n,t,a)>1e5*s)throw new Error(t+" and "+n+" are too far apart with stepSize of "+s+" "+a);const f="data"===r.ticks.source&&this.getDataTimestamps();for(d=h,p=0;d<n;d=+e.add(d,s,a),p++)lr(u,d,f);return d!==n&&"ticks"!==r.bounds&&1!==p||lr(u,d,f),Object.keys(u).sort(((e,t)=>e-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){const o=this.options,a=o.ticks.callback;if(a)return(0,i.Q)(a,[e,t,n],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],p=n[t],h=c&&d&&p&&p.major;return this._adapter.format(e,r||(h?d:u))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=(0,i.t)(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(r),a=Math.sin(r),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,cr(this,[e],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(ar(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return(0,i._)(e.sort(or))}}function dr(e,t,n){let r,o,a,s,l=0,c=e.length-1;n?(t>=e[l].pos&&t<=e[c].pos&&({lo:l,hi:c}=(0,i.B)(e,"pos",t)),({pos:r,time:a}=e[l]),({pos:o,time:s}=e[c])):(t>=e[l].time&&t<=e[c].time&&({lo:l,hi:c}=(0,i.B)(e,"time",t)),({time:r,pos:a}=e[l]),({time:o,pos:s}=e[c]));const u=o-r;return u?a+(s-a)*(t-r)/u:a}(0,r.Z)(ur,"id","time"),(0,r.Z)(ur,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class pr extends ur{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=dr(t,this.min),this._tableRange=dr(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],i=[];let o,a,s,l,c;for(o=0,a=e.length;o<a;++o)l=e[o],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)c=r[o+1],s=r[o-1],l=r[o],Math.round((c+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(dr(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return dr(this._table,n*this._tableRange+this._minPos,!0)}}(0,r.Z)(pr,"id","timeseries"),(0,r.Z)(pr,"defaults",ur.defaults);const hr=[z,Nt,Dn,Object.freeze({__proto__:null,CategoryScale:Fn,LinearScale:Un,LogarithmicScale:Gn,RadialLinearScale:nr,TimeScale:ur,TimeSeriesScale:pr})]},45924:(e,t,n)=>{"use strict";function r(e){return e+.5|0}n.d(t,{$:()=>Ct,A:()=>Ne,B:()=>Ae,C:()=>xt,D:()=>Te,E:()=>Ft,F:()=>G,G:()=>_n,H:()=>he,I:()=>pn,J:()=>kn,K:()=>xn,L:()=>qe,M:()=>dn,N:()=>_e,O:()=>$,P:()=>le,Q:()=>H,R:()=>Ut,S:()=>Le,T:()=>ce,U:()=>Se,V:()=>gt,W:()=>Re,X:()=>vt,Y:()=>kt,Z:()=>Pt,_:()=>$e,a:()=>Bt,a0:()=>zt,a1:()=>He,a2:()=>Ge,a3:()=>ut,a4:()=>J,a5:()=>re,a6:()=>dt,a7:()=>oe,a8:()=>qt,a9:()=>Vt,aA:()=>In,aB:()=>We,aC:()=>On,aD:()=>wt,aE:()=>Ee,aF:()=>A,aG:()=>ke,aH:()=>be,aI:()=>xe,aJ:()=>ve,aK:()=>Me,aL:()=>ct,aM:()=>ge,aN:()=>yt,aO:()=>Fe,aP:()=>De,aa:()=>Zt,ab:()=>Q,ac:()=>N,ad:()=>Ze,ae:()=>wn,af:()=>bt,ag:()=>ae,ah:()=>W,ai:()=>se,aj:()=>je,ak:()=>Dt,al:()=>un,am:()=>An,an:()=>Dn,ao:()=>Sn,ap:()=>Mn,aq:()=>Cn,ar:()=>St,as:()=>Mt,at:()=>_t,au:()=>It,av:()=>At,aw:()=>Nt,ax:()=>jn,ay:()=>Ie,az:()=>Pn,b:()=>z,c:()=>nt,d:()=>mt,e:()=>et,f:()=>ne,g:()=>U,h:()=>ie,i:()=>B,j:()=>$t,k:()=>F,l:()=>Be,m:()=>q,n:()=>Z,o:()=>st,p:()=>Oe,q:()=>Ye,r:()=>Ve,s:()=>ye,t:()=>Ce,u:()=>Ue,v:()=>V,w:()=>Ke,x:()=>we,y:()=>nn,z:()=>vn});const i=(e,t,n)=>Math.max(Math.min(e,n),t);function o(e){return i(r(2.55*e),0,255)}function a(e){return i(r(255*e),0,255)}function s(e){return i(r(e/2.55)/100,0,1)}function l(e){return i(r(100*e),0,100)}const c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},u=[..."0123456789ABCDEF"],d=e=>u[15&e],p=e=>u[(240&e)>>4]+u[15&e],h=e=>(240&e)>>4===(15&e);function f(e){var t=(e=>h(e.r)&&h(e.g)&&h(e.b)&&h(e.a))(e)?d:p;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(e,t,n){const r=t*Math.min(n,1-n),i=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function y(e,t,n){const r=function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function v(e,t,n){const r=g(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function b(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,i),s=60*s+.5),[0|s,l||0,a]}function _(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(a)}function w(e,t,n){return _(g,e,t,n)}function x(e){return(e%360+360)%360}function k(e){const t=m.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?o(+t[5]):a(+t[5]));const i=x(+t[2]),s=+t[3]/100,l=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return _(v,e,t,n)}(i,s,l):"hsv"===t[1]?function(e,t,n){return _(y,e,t,n)}(i,s,l):w(i,s,l),{r:n[0],g:n[1],b:n[2],a:r}}const C={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let M;function T(e){M||(M=function(){const e={},t=Object.keys(S),n=Object.keys(C);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,C[o]);o=parseInt(S[a],16),e[s]=[o>>16&255,o>>8&255,255&o]}return e}(),M.transparent=[0,0,0,0]);const t=M[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const E=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const P=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,I=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function O(e,t,n){if(e){let r=b(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=w(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function L(e,t){return e?Object.assign(t||{},e):e}function R(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=a(e[3]))):(t=L(e,{r:0,g:0,b:0,a:1})).a=a(t.a),t}function j(e){return"r"===e.charAt(0)?function(e){const t=E.exec(e);let n,r,a,s=255;if(t){if(t[7]!==n){const e=+t[7];s=t[8]?o(e):i(255*e,0,255)}return n=+t[1],r=+t[3],a=+t[5],n=255&(t[2]?o(n):i(n,0,255)),r=255&(t[4]?o(r):i(r,0,255)),a=255&(t[6]?o(a):i(a,0,255)),{r:n,g:r,b:a,a:s}}}(e):k(e)}class D{constructor(e){if(e instanceof D)return e;const t=typeof e;let n;"object"===t?n=R(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*c[e[1]],g:255&17*c[e[2]],b:255&17*c[e[3]],a:5===n?17*c[e[4]]:255}:7!==n&&9!==n||(t={r:c[e[1]]<<4|c[e[2]],g:c[e[3]]<<4|c[e[4]],b:c[e[5]]<<4|c[e[6]],a:9===n?c[e[7]]<<4|c[e[8]]:255})),t}(e)||T(e)||j(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=L(this._rgb);return e&&(e.a=s(e.a)),e}set rgb(e){this._rgb=R(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${s(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?f(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=b(e),n=t[0],r=l(t[1]),i=l(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${s(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let i;const o=t===i?.5:t,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=I(s(e.r)),i=I(s(e.g)),o=I(s(e.b));return{r:a(P(r+n*(I(s(t.r))-r))),g:a(P(i+n*(I(s(t.g))-i))),b:a(P(o+n*(I(s(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new D(this.rgb)}alpha(e){return this._rgb.a=a(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=r(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return O(this._rgb,2,e),this}darken(e){return O(this._rgb,2,-e),this}saturate(e){return O(this._rgb,1,e),this}desaturate(e){return O(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=b(e);n[0]=x(n[0]+t),n=w(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function A(){}const N=(()=>{let e=0;return()=>e++})();function F(e){return null===e||"undefined"===typeof e}function z(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function B(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function U(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function $(e,t){return U(e)?e:t}function V(e,t){return"undefined"===typeof e?t:e}const q=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,Z=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function H(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function G(e,t,n,r){let i,o,a;if(z(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(B(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function W(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Y(e){if(z(e))return e.map(Y);if(B(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Y(e[n[i]]);return t}return e}function K(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function X(e,t,n,r){if(!K(e))return;const i=t[e],o=n[e];B(i)&&B(o)?J(i,o,r):t[e]=Y(o)}function J(e,t,n){const r=z(t)?t:[t],i=r.length;if(!B(e))return e;const o=(n=n||{}).merger||X;let a;for(let s=0;s<i;++s){if(a=r[s],!B(a))continue;const t=Object.keys(a);for(let r=0,i=t.length;r<i;++r)o(t[r],e,a,n)}return e}function Q(e,t){return J(e,t,{merger:ee})}function ee(e,t,n){if(!K(e))return;const r=t[e],i=n[e];B(r)&&B(i)?Q(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Y(i))}const te={"":e=>e,x:e=>e.x,y:e=>e.y};function ne(e,t){const n=te[t]||(te[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function re(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ie=e=>"undefined"!==typeof e,oe=e=>"function"===typeof e,ae=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function se(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}const le=Math.PI,ce=2*le,ue=ce+le,de=Number.POSITIVE_INFINITY,pe=le/180,he=le/2,fe=le/4,me=2*le/3,ge=Math.log10,ye=Math.sign;function ve(e,t,n){return Math.abs(e-t)<n}function be(e){const t=Math.round(e);e=ve(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ge(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function _e(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}function we(e){return!isNaN(parseFloat(e))&&isFinite(e)}function xe(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function ke(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Ce(e){return e*(le/180)}function Se(e){return e*(180/le)}function Me(e){if(!U(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Te(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*le&&(o+=ce),{angle:o,distance:i}}function Ee(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Pe(e,t){return(e-t+ue)%ce-le}function Ie(e){return(e%ce+ce)%ce}function Oe(e,t,n,r){const i=Ie(e),o=Ie(t),a=Ie(n),s=Ie(o-i),l=Ie(a-i),c=Ie(i-o),u=Ie(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function Le(e,t,n){return Math.max(t,Math.min(n,e))}function Re(e){return Le(e,-32768,32767)}function je(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function De(e,t,n){n=n||(n=>e[n]<t);let r,i=e.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const Ae=(e,t,n,r)=>De(e,n,r?r=>{const i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),Ne=(e,t,n)=>De(e,n,(r=>e[r][t]>=n));function Fe(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const ze=["push","pop","shift","splice","unshift"];function Be(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ze.forEach((t=>{const n="_onData"+re(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];const a=r.apply(this,i);return e._chartjs.listeners.forEach((e=>{"function"===typeof e[n]&&e[n](...i)})),a}})})))}function Ue(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(ze.forEach((t=>{delete e[t]})),delete e._chartjs)}function $e(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Ve="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function qe(e,t){let n=[],r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n=o,r||(r=!0,Ve.call(window,(()=>{r=!1,e.apply(t,n)})))}}function Ze(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const He=e=>"start"===e?"left":"end"===e?"right":"center",Ge=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,We=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function Ye(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(i=Le(Math.min(Ae(s,a.axis,c).lo,n?r:Ae(t,l,a.getPixelForValue(c)).lo),0,r-1)),o=p?Le(Math.max(Ae(s,a.axis,u,!0).hi+1,n?0:Ae(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function Ke(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Xe=e=>0===e||1===e,Je=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ce/n),Qe=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ce/n)+1,et={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*he),easeOutSine:e=>Math.sin(e*he),easeInOutSine:e=>-.5*(Math.cos(le*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Xe(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Xe(e)?e:Je(e,.075,.3),easeOutElastic:e=>Xe(e)?e:Qe(e,.075,.3),easeInOutElastic(e){const t=.1125;return Xe(e)?e:e<.5?.5*Je(2*e,t,.45):.5+.5*Qe(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-et.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*et.easeInBounce(2*e):.5*et.easeOutBounce(2*e-1)+.5};function tt(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function nt(e){return tt(e)?e:new D(e)}function rt(e){return tt(e)?e:new D(e).saturate(.5).darken(.1).hexString()}const it=["x","y","borderWidth","radius","tension"],ot=["color","borderColor","backgroundColor"];const at=new Map;function st(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=at.get(n);return r||(r=new Intl.NumberFormat(e,t),at.set(n,r)),r}(t,n).format(e)}const lt={values:e=>z(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=ge(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),st(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ge(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?lt.numeric.call(this,e,t,n):""}};var ct={formatters:lt};const ut=Object.create(null),dt=Object.create(null);function pt(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const t=n[r];e=e[t]||(e[t]=Object.create(null))}return e}function ht(e,t,n){return"string"===typeof t?J(pt(e,t),n):J(pt(e,""),t)}class ft{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>rt(t.backgroundColor),this.hoverBorderColor=(e,t)=>rt(t.borderColor),this.hoverColor=(e,t)=>rt(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return ht(this,e,t)}get(e){return pt(this,e)}describe(e,t){return ht(dt,e,t)}override(e,t){return ht(ut,e,t)}route(e,t,n,r){const i=pt(this,e),o=pt(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[r];return B(e)?Object.assign({},t,e):V(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var mt=new ft({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:ot},numbers:{type:"number",properties:it}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ct.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function gt(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function yt(e,t,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const s=n.length;let l,c,u,d,p;for(l=0;l<s;l++)if(d=n[l],void 0===d||null===d||z(d)){if(z(d))for(c=0,u=d.length;c<u;c++)p=d[c],void 0===p||null===p||z(p)||(a=gt(e,i,o,a,p))}else a=gt(e,i,o,a,d);e.restore();const h=o.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[o[l]];o.splice(0,h)}return a}function vt(e,t,n){const r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function bt(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function _t(e,t,n,r){wt(e,t,n,r,null)}function wt(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*pe;if(h&&"object"===typeof h&&(o=h.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,ce):e.arc(n,r,m,0,ce),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=me,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=me,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+fe)*l,d=Math.cos(g+fe)*(i?i/2-c:l),s=Math.sin(g+fe)*l,p=Math.sin(g+fe)*(i?i/2-c:l),e.arc(n-d,r-s,c,g-le,g-he),e.arc(n+p,r-a,c,g-he,g),e.arc(n+d,r+s,c,g,g+he),e.arc(n-p,r+a,c,g+he,g+le),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}g+=fe;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":g+=fe;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),g+=fe,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function xt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function kt(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ct(e){e.restore()}function St(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Mt(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Tt(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function Et(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Pt(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=z(t)?t:[t],s=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),F(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&Et(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),F(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),Tt(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function It(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-he,le,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,le,he,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,he,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-he,!0),e.lineTo(n+a.topLeft,r)}const Ot=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Lt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Rt(e,t){const n=(""+e).match(Ot);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const jt=e=>+e||0;function Dt(e,t){const n={},r=B(t),i=r?Object.keys(t):t,o=B(e)?r?n=>V(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of i)n[a]=jt(o(a));return n}function At(e){return Dt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Nt(e){return Dt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(e){const t=At(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function zt(e,t){e=e||{},t=t||mt.font;let n=V(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let r=V(e.style,t.style);r&&!(""+r).match(Lt)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:V(e.family,t.family),lineHeight:Rt(V(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:V(e.weight,t.weight),string:""};return i.string=function(e){return!e||F(e.size)||F(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function Bt(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&z(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function Ut(e,t,n){const{min:r,max:i}=e,o=Z(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function $t(e,t){return Object.assign(Object.create(e),t)}function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];const i=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof n&&(n=en("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>Vt([r,...e],t,i,n)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>Wt(n,r,(()=>function(e,t,n,r){let i;for(const o of t)if(i=en(Ht(o,e),n),"undefined"!==typeof i)return Gt(e,i)?Jt(n,r,e,i):i}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tn(e).includes(t),ownKeys:e=>tn(e),set(e,t,n){const i=e._storage||(e._storage=r());return e[t]=i[t]=n,delete e._keys,!0}})}function qt(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Zt(e,r),setContext:t=>qt(e,t,n,r),override:i=>qt(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Wt(e,t,(()=>function(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];oe(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);s.delete(e),Gt(e,l)&&(l=Jt(i._scopes,i,e,l));return l}(t,s,e,n));z(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if("undefined"!==typeof o.index&&r(e))return t[o.index%t.length];if(B(t[0])){const n=t,r=i._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Jt(r,i,e,l);t.push(qt(n,o,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Gt(t,s)&&(s=qt(s,i,o&&o[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function Zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:oe(n)?n:()=>n,isIndexable:oe(r)?r:()=>r}}const Ht=(e,t)=>e?e+re(t):t,Gt=(e,t)=>B(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Wt(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Yt(e,t,n){return oe(e)?e(t,n):e}const Kt=(e,t)=>!0===e?t:"string"===typeof e?ne(t,e):void 0;function Xt(e,t,n,r,i){for(const o of t){const t=Kt(n,o);if(t){e.add(t);const o=Yt(t._fallback,n,i);if("undefined"!==typeof o&&o!==n&&o!==r)return o}else if(!1===t&&"undefined"!==typeof r&&n!==r)return null}return!1}function Jt(e,t,n,r){const i=t._rootScopes,o=Yt(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Qt(s,a,n,o||n,r);return null!==l&&(("undefined"===typeof o||o===n||(l=Qt(s,a,o,l,r),null!==l))&&Vt(Array.from(s),[""],i,o,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];if(z(i)&&B(n))return n;return i||{}}(t,n,r))))}function Qt(e,t,n,r,i){for(;n;)n=Xt(e,t,n,r,i);return n}function en(e,t){for(const n of t){if(!n)continue;const t=n[e];if("undefined"!==typeof t)return t}}function tn(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function nn(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={r:i.parse(ne(u,o),c)};return a}const rn=Number.EPSILON||1e-14,on=(e,t)=>t<e.length&&!e[t].skip&&e[t],an=e=>"x"===e?"y":"x";function sn(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=Ee(o,i),l=Ee(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=an(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=on(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=on(e,a+1),l){if(c){const e=c[t]-l[t];i[a]=0!==e?(c[n]-l[n])/e:0}o[a]=s?c?ye(i[a-1])!==ye(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(e,t,n){const r=e.length;let i,o,a,s,l,c=on(e,0);for(let u=0;u<r-1;++u)l=c,c=on(e,u+1),l&&c&&(ve(t[u],0,rn)?n[u]=n[u+1]=0:(i=n[u]/t[u],o=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[u]=i*a*t[u],n[u+1]=o*a*t[u])))}(e,i,o),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const r=an(n),i=e.length;let o,a,s,l=on(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=on(e,c+1),!s)continue;const i=s[n],u=s[r];a&&(o=(i-a[n])/3,s[`cp1${n}`]=i-o,s[`cp1${r}`]=u-o*t[c]),l&&(o=(l[n]-i)/3,s[`cp2${n}`]=i+o,s[`cp2${r}`]=u+o*t[c])}}(e,o,t)}function cn(e,t,n){return Math.max(Math.min(e,n),t)}function un(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)ln(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=sn(n,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a,s=xt(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&xt(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=cn(i.cp1x,t.left,t.right),i.cp1y=cn(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=cn(i.cp2x,t.left,t.right),i.cp2y=cn(i.cp2y,t.top,t.bottom)))}(e,n)}function dn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function pn(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function hn(e,t,n){let r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const fn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const mn=["top","right","bottom","left"];function gn(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=mn[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const yn=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function vn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=fn(n),o="border-box"===i.boxSizing,a=gn(i,"padding"),s=gn(i,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(yn(i,o,e.target))a=i,s=o;else{const e=t.getBoundingClientRect();a=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:f}=t;return o&&(h-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/f*n.height/r)}}const bn=e=>Math.round(10*e)/10;function _n(e,t,n,r){const i=fn(e),o=gn(i,"margin"),a=hn(i.maxWidth,e,"clientWidth")||de,s=hn(i.maxHeight,e,"clientHeight")||de,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){const o=pn(e);if(o){const e=o.getBoundingClientRect(),a=fn(o),s=gn(a,"border","width"),l=gn(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=hn(a.maxWidth,o,"clientWidth"),i=hn(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||de,maxHeight:i||de}}(e,t,n);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const e=gn(i,"border","width"),t=gn(i,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=bn(Math.min(c,a,l.maxWidth)),u=bn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=bn(c/2));return(void 0!==t||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=bn(Math.floor(u*r))),{width:c,height:u}}function wn(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}const xn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function kn(e,t){const n=function(e,t){return fn(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Cn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Sn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Mn(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Cn(e,i,n),s=Cn(i,o,n),l=Cn(o,t,n),c=Cn(a,s,n),u=Cn(s,l,n);return Cn(c,u,n)}const Tn=function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}},En=function(){return{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}};function Pn(e,t,n){return e?Tn(t,n):En()}function In(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function On(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ln(e){return"angle"===e?{between:Oe,compare:Pe,normalize:Ie}:{between:je,compare:(e,t)=>e-t,normalize:e=>e}}function Rn(e){let{start:t,end:n,count:r,loop:i,style:o}=e;return{start:t%r,end:n%r,loop:i&&(n-t+1)%r===0,style:o}}function jn(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=Ln(r),{start:u,end:d,loop:p,style:h}=function(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Ln(r),l=t.length;let c,u,{start:d,end:p,loop:h}=e;if(h){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][r]),i,o);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:h,style:e.style}}(e,t,n),f=[];let m,g,y,v=!1,b=null;const _=()=>v||l(i,y,m)&&0!==s(i,y),w=()=>!v||0===s(o,m)||l(o,y,m);for(let x=u,k=u;x<=d;++x)g=t[x%a],g.skip||(m=c(g[r]),m!==y&&(v=l(m,i,o),null===b&&_()&&(b=0===s(m,i)?x:k),null!==b&&w()&&(f.push(Rn({start:b,end:x,loop:p,count:a,style:h})),b=null),k=x,y=m));return null!==b&&f.push(Rn({start:b,end:d,loop:p,count:a,style:h})),f}function Dn(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=jn(r[i],e.points,t);o.length&&n.push(...o)}return n}function An(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}(n,i,o,r);if(!0===r)return Nn(e,[{start:a,end:s,loop:o}],n,t);return Nn(e,function(e,t,n,r){const i=e.length,o=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:t%i,end:(a-1)%i,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&o.push({start:t%i,end:s%i,loop:r}),o}(n,a,s<a?s+i:s,!!e._fullLoop&&0===a&&s===i-1),n,t)}function Nn(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const i=e._chart.getContext(),o=Fn(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=o,d=t[0].start,p=d;function h(e,t,r,i){const o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:r,style:i}),u=i,d=t%l)}}for(const f of t){d=s?d:f.start;let e,t=n[d%l];for(p=d+1;p<=f.end;p++){const o=n[p%l];e=Fn(r.setContext($t(i,{type:"segment",p0:t,p1:o,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),zn(e,u)&&h(d,p-1,f.loop,u),t=o,u=e}d<p-1&&h(d,p-1,f.loop,u)}return c}(e,t,n,r):t}function Fn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function zn(e,t){if(!t)return!1;const n=[],r=function(e,t){return tt(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}},64692:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{Z:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},27594:(e,t,n)=>{"use strict";n.d(t,{$I:()=>m,$Q:()=>f,bp:()=>g,x1:()=>h});var r=n(18178),i=n(76943);const o="label";function a(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function s(e,t){e.labels=t}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;const r=[];e.datasets=t.map((t=>{const i=e.datasets.find((e=>e[n]===t[n]));return i&&t.data&&!r.includes(i)?(r.push(i),Object.assign(i,t),i):{...t}}))}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;const n={labels:[],datasets:[]};return s(n,e.labels),l(n,e.datasets,t),n}function u(e,t){const{height:n=150,width:o=300,redraw:u=!1,datasetIdKey:d,type:p,data:h,options:f,plugins:m=[],fallbackContent:g,updateMode:y,...v}=e,b=(0,r.useRef)(null),_=(0,r.useRef)(),w=()=>{b.current&&(_.current=new i.kL(b.current,{type:p,data:c(h,d),options:f&&{...f},plugins:m}),a(t,_.current))},x=()=>{a(t,null),_.current&&(_.current.destroy(),_.current=null)};return(0,r.useEffect)((()=>{!u&&_.current&&f&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(_.current,f)}),[u,f]),(0,r.useEffect)((()=>{!u&&_.current&&s(_.current.config.data,h.labels)}),[u,h.labels]),(0,r.useEffect)((()=>{!u&&_.current&&h.datasets&&l(_.current.config.data,h.datasets,d)}),[u,h.datasets]),(0,r.useEffect)((()=>{_.current&&(u?(x(),setTimeout(w)):_.current.update(y))}),[u,f,h.labels,h.datasets,y]),(0,r.useEffect)((()=>{_.current&&(x(),setTimeout(w))}),[p]),(0,r.useEffect)((()=>(w(),()=>x())),[]),r.createElement("canvas",Object.assign({ref:b,role:"img",height:n,width:o},v),g)}const d=(0,r.forwardRef)(u);function p(e,t){return i.kL.register(t),(0,r.forwardRef)(((t,n)=>r.createElement(d,Object.assign({},t,{ref:n,type:e}))))}const h=p("line",i.ST),f=p("bar",i.vn),m=p("doughnut",i.jI),g=p("scatter",i.ho)},19298:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>be,Gc:()=>E,KN:()=>V,Qr:()=>$,RV:()=>P,U2:()=>g,cI:()=>Be,t8:()=>B});var r=n(18178),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;const s=e=>"object"===typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),c=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,u=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function h(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(p&&(e instanceof Blob||e instanceof FileList)||!n&&!l(e))return e;if(t=n?[]:{},n||d(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=h(e[n]));else t=e}return t}var f=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;const r=f(t.split(/[,[\].]+?/)).reduce(((e,t)=>a(e)?e:e[t]),e);return m(r)||r===e?m(e[t])?n:e[t]:r},y=e=>"boolean"===typeof e;const v={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_="max",w="min",x="maxLength",k="minLength",C="pattern",S="required",M="validate",T=r.createContext(null),E=()=>r.useContext(T),P=e=>{const{children:t,...n}=e;return r.createElement(T.Provider,{value:n},t)};var I=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==b.all&&(t._proxyFormState[i]=!r||b.all),n&&(n[i]=!0),e[i]}});return i},O=e=>l(e)&&!Object.keys(e).length,L=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return O(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||b.all)))},R=e=>Array.isArray(e)?e:[e],j=(e,t,n)=>!e||!t||e===t||R(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function D(e){const t=r.useRef(e);t.current=e,r.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var A=e=>"string"===typeof e,N=(e,t,n,r,i)=>A(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),g(n,e)))):(r&&(t.watchAll=!0),n);var F=e=>/^\w*$/.test(e),z=e=>f(e.replace(/["|']|\]/g,"").split(/\.|\[/)),B=(e,t,n)=>{let r=-1;const i=F(t)?[t]:z(t),o=i.length,a=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==a){const n=e[t];o=l(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=o,e=e[t]}return e};function U(e){const t=E(),{name:n,disabled:i,control:o=t.control,shouldUnregister:a}=e,s=u(o._names.array,n),l=function(e){const t=E(),{control:n=t.control,name:i,defaultValue:o,disabled:a,exact:s}=e||{},l=r.useRef(i);l.current=i,D({disabled:a,subject:n._subjects.values,next:e=>{j(l.current,e.name,s)&&u(h(N(l.current,n._names,e.values||n._formValues,!1,o)))}});const[c,u]=r.useState(n._getWatch(i,o));return r.useEffect((()=>n._removeUnmounted())),c}({control:o,name:n,defaultValue:g(o._formValues,n,g(o._defaultValues,n,e.defaultValue)),exact:!0}),d=function(e){const t=E(),{control:n=t.control,disabled:i,name:o,exact:a}=e||{},[s,l]=r.useState(n._formState),c=r.useRef(!0),u=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=r.useRef(o);return d.current=o,D({disabled:i,next:e=>c.current&&j(d.current,e.name,a)&&L(e,u.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),r.useEffect((()=>(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),I(s,n,u.current,!1)}({control:o,name:n}),p=r.useRef(o.register(n,{...e.rules,value:l,...y(e.disabled)?{disabled:e.disabled}:{}}));return r.useEffect((()=>{const e=o._options.shouldUnregister||a,t=(e,t)=>{const n=g(o._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=h(g(o._options.defaultValues,n));B(o._defaultValues,n,e),m(g(o._formValues,n))&&B(o._formValues,n,e)}return()=>{(s?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}}),[n,o,s,a]),r.useEffect((()=>{g(o._fields,n)&&o._updateDisabledField({disabled:i,fields:o._fields,name:n,value:g(o._fields,n)._f.value})}),[i,n,o]),{field:{name:n,value:l,...y(i)||d.disabled?{disabled:d.disabled||i}:{},onChange:r.useCallback((e=>p.current.onChange({target:{value:c(e),name:n},type:v.CHANGE})),[n]),onBlur:r.useCallback((()=>p.current.onBlur({target:{value:g(o._formValues,n),name:n},type:v.BLUR})),[n,o]),ref:e=>{const t=g(o._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!g(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!g(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!g(d.validatingFields,n)},error:{enumerable:!0,get:()=>g(d.errors,n)}})}}const $=e=>e.render(U(e));var V=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},q=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)}))},Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.shouldFocus||m(n.shouldFocus)?n.focusName||`${e}.${m(n.focusIndex)?t:n.focusIndex}.`:""},H=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),G=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const W=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const n=g(e,i);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break;W(o,t)}else l(o)&&W(o,t)}}};var Y=(e,t,n)=>{const r=f(g(e,n));return B(r,"root",t[n]),B(e,n,r),e},K=e=>"file"===e.type,X=e=>"function"===typeof e,J=e=>{if(!p)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>A(e),ee=e=>"radio"===e.type,te=e=>e instanceof RegExp;const ne={value:!1,isValid:!1},re={value:!0,isValid:!0};var ie=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?re:{value:e[0].value,isValid:!0}:re:ne}return ne};const oe={isValid:!1,value:null};var ae=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),oe):oe;function se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Q(e)||Array.isArray(e)&&e.every(Q)||y(e)&&!e)return{type:n,message:Q(e)?e:"",ref:t}}var le=e=>l(e)&&!te(e)?e:{value:e,message:""},ce=async(e,t,n,r,o)=>{const{ref:s,refs:c,required:u,maxLength:d,minLength:p,min:h,max:f,pattern:v,validate:b,name:T,valueAsNumber:E,mount:P,disabled:I}=e._f,L=g(t,T);if(!P||I)return{};const R=c?c[0]:s,j=e=>{r&&R.reportValidity&&(R.setCustomValidity(y(e)?"":e||""),R.reportValidity())},D={},N=ee(s),F=i(s),z=N||F,B=(E||K(s))&&m(s.value)&&m(L)||J(s)&&""===s.value||""===L||Array.isArray(L)&&!L.length,U=V.bind(null,T,n,D),$=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:k;const o=e?t:n;D[T]={type:e?r:i,message:o,ref:s,...U(e?r:i,o)}};if(o?!Array.isArray(L)||!L.length:u&&(!z&&(B||a(L))||y(L)&&!L||F&&!ie(c).isValid||N&&!ae(c).isValid)){const{value:e,message:t}=Q(u)?{value:!!u,message:u}:le(u);if(e&&(D[T]={type:S,message:t,ref:R,...U(S,t)},!n))return j(t),D}if(!B&&(!a(h)||!a(f))){let e,t;const r=le(f),i=le(h);if(a(L)||isNaN(L)){const n=s.valueAsDate||new Date(L),o=e=>new Date((new Date).toDateString()+" "+e),a="time"==s.type,l="week"==s.type;A(r.value)&&L&&(e=a?o(L)>o(r.value):l?L>r.value:n>new Date(r.value)),A(i.value)&&L&&(t=a?o(L)<o(i.value):l?L<i.value:n<new Date(i.value))}else{const n=s.valueAsNumber||(L?+L:L);a(r.value)||(e=n>r.value),a(i.value)||(t=n<i.value)}if((e||t)&&($(!!e,r.message,i.message,_,w),!n))return j(D[T].message),D}if((d||p)&&!B&&(A(L)||o&&Array.isArray(L))){const e=le(d),t=le(p),r=!a(e.value)&&L.length>+e.value,i=!a(t.value)&&L.length<+t.value;if((r||i)&&($(r,e.message,t.message),!n))return j(D[T].message),D}if(v&&!B&&A(L)){const{value:e,message:t}=le(v);if(te(e)&&!L.match(e)&&(D[T]={type:C,message:t,ref:s,...U(C,t)},!n))return j(t),D}if(b)if(X(b)){const e=se(await b(L,t),R);if(e&&(D[T]={...e,...U(M,e.message)},!n))return j(e.message),D}else if(l(b)){let e={};for(const r in b){if(!O(e)&&!n)break;const i=se(await b[r](L,t),R,r);i&&(e={...i,...U(r,i.message)},j(i.message),n&&(D[T]=e))}if(!O(e)&&(D[T]={ref:R,...e},!n))return D}return j(!0),D},ue=(e,t)=>[...e,...R(t)],de=e=>Array.isArray(e)?e.map((()=>{})):void 0;function pe(e,t,n){return[...e.slice(0,t),...R(n),...e.slice(t)]}var he=(e,t,n)=>Array.isArray(e)?(m(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],fe=(e,t)=>[...R(t),...R(e)];var me=(e,t)=>m(t)?[]:function(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return f(r).length?r:[]}(e,R(t).sort(((e,t)=>e-t))),ge=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function ye(e,t){const n=Array.isArray(t)?t:F(t)?[t]:z(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=m(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(l(r)&&O(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(r))&&ye(e,n.slice(0,-1)),e}var ve=(e,t,n)=>(e[t]=n,e);function be(e){const t=E(),{control:n=t.control,name:i,keyName:o="id",shouldUnregister:a}=e,[s,l]=r.useState(n._getFieldArray(i)),c=r.useRef(n._getFieldArray(i).map(q)),u=r.useRef(s),d=r.useRef(i),p=r.useRef(!1);d.current=i,u.current=s,n._names.array.add(i),e.rules&&n.register(i,e.rules),D({next:e=>{let{values:t,name:n}=e;if(n===d.current||!n){const e=g(t,d.current);Array.isArray(e)&&(l(e),c.current=e.map(q))}},subject:n._subjects.array});const f=r.useCallback((e=>{p.current=!0,n._updateFieldArray(i,e)}),[n,i]);return r.useEffect((()=>{if(n._state.action=!1,G(i,n._names)&&n._subjects.state.next({...n._formState}),p.current&&(!H(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([i]).then((e=>{const t=g(e.errors,i),r=g(n._formState.errors,i);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?B(n._formState.errors,i,t):ye(n._formState.errors,i),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=g(n._fields,i);!e||!e._f||H(n._options.reValidateMode).isOnSubmit&&H(n._options.mode).isOnSubmit||ce(e,n._formValues,n._options.criteriaMode===b.all,n._options.shouldUseNativeValidation,!0).then((e=>!O(e)&&n._subjects.state.next({errors:Y(n._formState.errors,e,i)})))}n._subjects.values.next({name:i,values:{...n._formValues}}),n._names.focus&&W(n._fields,((e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1})),n._names.focus="",n._updateValid(),p.current=!1}),[s,i,n]),r.useEffect((()=>(!g(n._formValues,i)&&n._updateFieldArray(i),()=>{(n._options.shouldUnregister||a)&&n.unregister(i)})),[i,n,o,a]),{swap:r.useCallback(((e,t)=>{const r=n._getFieldArray(i);ge(r,e,t),ge(c.current,e,t),f(r),l(r),n._updateFieldArray(i,r,ge,{argA:e,argB:t},!1)}),[f,i,n]),move:r.useCallback(((e,t)=>{const r=n._getFieldArray(i);he(r,e,t),he(c.current,e,t),f(r),l(r),n._updateFieldArray(i,r,he,{argA:e,argB:t},!1)}),[f,i,n]),prepend:r.useCallback(((e,t)=>{const r=R(h(e)),o=fe(n._getFieldArray(i),r);n._names.focus=Z(i,0,t),c.current=fe(c.current,r.map(q)),f(o),l(o),n._updateFieldArray(i,o,fe,{argA:de(e)})}),[f,i,n]),append:r.useCallback(((e,t)=>{const r=R(h(e)),o=ue(n._getFieldArray(i),r);n._names.focus=Z(i,o.length-1,t),c.current=ue(c.current,r.map(q)),f(o),l(o),n._updateFieldArray(i,o,ue,{argA:de(e)})}),[f,i,n]),remove:r.useCallback((e=>{const t=me(n._getFieldArray(i),e);c.current=me(c.current,e),f(t),l(t),n._updateFieldArray(i,t,me,{argA:e})}),[f,i,n]),insert:r.useCallback(((e,t,r)=>{const o=R(h(t)),a=pe(n._getFieldArray(i),e,o);n._names.focus=Z(i,e,r),c.current=pe(c.current,e,o.map(q)),f(a),l(a),n._updateFieldArray(i,a,pe,{argA:e,argB:de(t)})}),[f,i,n]),update:r.useCallback(((e,t)=>{const r=h(t),o=ve(n._getFieldArray(i),e,r);c.current=[...o].map(((t,n)=>t&&n!==e?c.current[n]:q())),f(o),l([...o]),n._updateFieldArray(i,o,ve,{argA:e,argB:r},!0,!1)}),[f,i,n]),replace:r.useCallback((e=>{const t=R(h(e));c.current=t.map(q),f([...t]),l([...t]),n._updateFieldArray(i,[...t],(e=>e),{},!0,!1)}),[f,i,n]),fields:r.useMemo((()=>s.map(((e,t)=>({...e,[o]:c.current[t]||q()})))),[s,o])}}var _e=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},we=e=>a(e)||!s(e);function xe(e,t){if(we(e)||we(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!xe(n,e):n!==e)return!1}}return!0}var ke=e=>"select-multiple"===e.type,Ce=e=>ee(e)||i(e),Se=e=>J(e)&&e.isConnected,Me=e=>{for(const t in e)if(X(e[t]))return!0;return!1};function Te(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e);if(l(e)||n)for(const r in e)Array.isArray(e[r])||l(e[r])&&!Me(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Te(e[r],t[r])):a(e[r])||(t[r]=!0);return t}function Ee(e,t,n){const r=Array.isArray(e);if(l(e)||r)for(const i in e)Array.isArray(e[i])||l(e[i])&&!Me(e[i])?m(t)||we(n[i])?n[i]=Array.isArray(e[i])?Te(e[i],[]):{...Te(e[i])}:Ee(e[i],a(t)?{}:t[i],n[i]):n[i]=!xe(e[i],t[i]);return n}var Pe=(e,t)=>Ee(e,t,Te(t)),Ie=(e,t)=>{let{valueAsNumber:n,valueAsDate:r,setValueAs:i}=t;return m(e)?e:n?""===e?NaN:e?+e:e:r&&A(e)?new Date(e):i?i(e):e};function Oe(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return K(t)?t.files:ee(t)?ae(e.refs).value:ke(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):i(t)?ie(e.refs).value:Ie(m(t.value)?e.ref.value:t.value,e)}var Le=(e,t,n,r)=>{const i={};for(const o of e){const e=g(t,o);e&&B(i,o,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Re=e=>m(e)?e:te(e)?e.source:l(e)?te(e.value)?e.value.source:e.value:e,je=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function De(e,t,n){const r=g(e,n);if(r||F(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var Ae=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),Ne=(e,t)=>!f(g(e,t)).length&&ye(e,t);const Fe={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function ze(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={...Fe,...t},r={submitCount:0,isDirty:!1,isLoading:X(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},d=(l(n.defaultValues)||l(n.values))&&h(n.defaultValues||n.values)||{},_=n.shouldUnregister?{}:h(d),w={action:!1,mount:!1,watch:!1},x={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={values:_e(),array:_e(),state:_e()},M=H(n.mode),T=H(n.reValidateMode),E=n.criteriaMode===b.all,P=async e=>{if(C.isValid||e){const e=n.resolver?O((await F()).errors):await z(s,!0);e!==r.isValid&&S.state.next({isValid:e})}},I=(e,t)=>{(C.isValidating||C.validatingFields)&&((e||Array.from(x.mount)).forEach((e=>{e&&(t?B(r.validatingFields,e,t):ye(r.validatingFields,e))})),S.state.next({validatingFields:r.validatingFields,isValidating:!O(r.validatingFields)}))},L=(e,t,n,r)=>{const i=g(s,e);if(i){const o=g(_,e,m(n)?g(d,e):n);m(o)||r&&r.defaultChecked||t?B(_,e,t?o:Oe(i._f)):V(e,o),w.mount&&P()}},j=(e,t,n,i,o)=>{let a=!1,l=!1;const c={name:e},u=!(!g(s,e)||!g(s,e)._f.disabled);if(!n||i){C.isDirty&&(l=r.isDirty,r.isDirty=c.isDirty=U(),a=l!==c.isDirty);const n=u||xe(g(d,e),t);l=!(u||!g(r.dirtyFields,e)),n||u?ye(r.dirtyFields,e):B(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,a=a||C.dirtyFields&&l!==!n}if(n){const t=g(r.touchedFields,e);t||(B(r.touchedFields,e,n),c.touchedFields=r.touchedFields,a=a||C.touchedFields&&t!==n)}return a&&o&&S.state.next(c),a?c:{}},D=(n,i,o,a)=>{const s=g(r.errors,n),l=C.isValid&&y(i)&&r.isValid!==i;var c;if(t.delayError&&o?(c=()=>((e,t)=>{B(r.errors,e,t),S.state.next({errors:r.errors})})(n,o),e=e=>{clearTimeout(k),k=setTimeout(c,e)},e(t.delayError)):(clearTimeout(k),e=null,o?B(r.errors,n,o):ye(r.errors,n)),(o?!xe(s,o):s)||!O(a)||l){const e={...a,...l&&y(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},S.state.next(e)}},F=async e=>{I(e,!0);const t=await n.resolver(_,n.context,Le(e||x.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return I(e),t},z=async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const o in e){const a=e[o];if(a){const{_f:e,...s}=a;if(e){const s=x.array.has(e.name);I([o],!0);const l=await ce(a,_,E,n.shouldUseNativeValidation&&!t,s);if(I([o]),l[e.name]&&(i.valid=!1,t))break;!t&&(g(l,e.name)?s?Y(r.errors,l,e.name):B(r.errors,e.name,l[e.name]):ye(r.errors,e.name))}s&&await z(s,t,i)}}return i.valid},U=(e,t)=>(e&&t&&B(_,e,t),!xe(ne(),d)),$=(e,t,n)=>N(e,x,{...w.mount?_:m(t)?d:A(e)?{[e]:t}:t},n,t),V=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=g(s,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&B(_,e,Ie(t,n)),o=J(n.ref)&&a(t)?"":t,ke(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):K(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||S.values.next({name:e,values:{..._}})))}(n.shouldDirty||n.shouldTouch)&&j(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&te(e)},q=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,l=g(s,a);!x.array.has(e)&&we(i)&&(!l||l._f)||o(i)?V(a,i,n):q(a,i,n)}},Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=g(s,e),o=x.array.has(e),l=h(t);B(_,e,l),o?(S.array.next({name:e,values:{..._}}),(C.isDirty||C.dirtyFields)&&n.shouldDirty&&S.state.next({name:e,dirtyFields:Pe(d,_),isDirty:U(e,l)})):!i||i._f||a(l)?V(e,l,n):q(e,l,n),G(e,x)&&S.state.next({...r}),S.values.next({name:w.mount?e:void 0,values:{..._}})},Q=async t=>{w.mount=!0;const i=t.target;let o=i.name,a=!0;const l=g(s,o),u=e=>{a=Number.isNaN(e)||e===g(_,o,e)};if(l){let d,p;const h=i.type?Oe(l._f):c(t),f=t.type===v.BLUR||t.type===v.FOCUS_OUT,m=!je(l._f)&&!n.resolver&&!g(r.errors,o)&&!l._f.deps||Ae(f,g(r.touchedFields,o),r.isSubmitted,T,M),y=G(o,x,f);B(_,o,h),f?(l._f.onBlur&&l._f.onBlur(t),e&&e(0)):l._f.onChange&&l._f.onChange(t);const b=j(o,h,f,!1),w=!O(b)||y;if(!f&&S.values.next({name:o,type:t.type,values:{..._}}),m)return C.isValid&&P(),w&&S.state.next({name:o,...y?{}:b});if(!f&&y&&S.state.next({...r}),n.resolver){const{errors:e}=await F([o]);if(u(h),a){const t=De(r.errors,s,o),n=De(e,s,t.name||o);d=n.error,o=n.name,p=O(e)}}else I([o],!0),d=(await ce(l,_,E,n.shouldUseNativeValidation))[o],I([o]),u(h),a&&(d?p=!1:C.isValid&&(p=await z(s,!0)));a&&(l._f.deps&&te(l._f.deps),D(o,p,d,b))}},ee=(e,t)=>{if(g(r.errors,t)&&e.focus)return e.focus(),1},te=async function(e){let t,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=R(e);if(n.resolver){const n=await(async e=>{const{errors:t}=await F(e);if(e)for(const n of e){const e=g(t,n);e?B(r.errors,n,e):ye(r.errors,n)}else r.errors=t;return t})(m(e)?e:a);t=O(n),i=e?!a.some((e=>g(n,e))):t}else e?(i=(await Promise.all(a.map((async e=>{const t=g(s,e);return await z(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&P()):i=t=await z(s);return S.state.next({...!A(e)||C.isValid&&t!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:t}:{},errors:r.errors}),o.shouldFocus&&!i&&W(s,ee,e?a:x.mount),i},ne=e=>{const t={...d,...w.mount?_:{}};return m(e)?t:A(e)?g(t,e):e.map((e=>g(t,e)))},re=(e,t)=>({invalid:!!g((t||r).errors,e),isDirty:!!g((t||r).dirtyFields,e),isTouched:!!g((t||r).touchedFields,e),isValidating:!!g((t||r).validatingFields,e),error:g((t||r).errors,e)}),ie=(e,t,n)=>{const i=(g(s,e,{_f:{}})._f||{}).ref;B(r.errors,e,{...t,ref:i}),S.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},oe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const i of e?R(e):x.mount)x.mount.delete(i),x.array.delete(i),t.keepValue||(ye(s,i),ye(_,i)),!t.keepError&&ye(r.errors,i),!t.keepDirty&&ye(r.dirtyFields,i),!t.keepTouched&&ye(r.touchedFields,i),!t.keepIsValidating&&ye(r.validatingFields,i),!n.shouldUnregister&&!t.keepDefaultValue&&ye(d,i);S.values.next({values:{..._}}),S.state.next({...r,...t.keepDirty?{isDirty:U()}:{}}),!t.keepIsValid&&P()},ae=e=>{let{disabled:t,name:n,field:r,fields:i,value:o}=e;if(y(t)){const e=t?void 0:m(o)?Oe(r?r._f:g(i,n)._f):o;B(_,n,e),j(n,e,!1,!1,!0)}},se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=g(s,e);const i=y(t.disabled);return B(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),x.mount.add(e),r?ae({field:r,disabled:t.disabled,name:e,value:t.value}):L(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Re(t.min),max:Re(t.max),minLength:Re(t.minLength),maxLength:Re(t.maxLength),pattern:Re(t.pattern)}:{},name:e,onChange:Q,onBlur:Q,ref:i=>{if(i){se(e,t),r=g(s,e);const n=m(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=Ce(n),a=r._f.refs||[];if(o?a.find((e=>e===n)):n===r._f.ref)return;B(s,e,{_f:{...r._f,...o?{refs:[...a.filter(Se),n,...Array.isArray(g(d,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),L(e,!1,void 0,n)}else r=g(s,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!u(x.array,e)||!w.action)&&x.unMount.add(e)}}},le=()=>n.shouldFocusError&&W(s,ee,x.mount),ue=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=h(_);if(S.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await F();r.errors=e,a=t}else await z(s);if(ye(r.errors,"root"),O(r.errors)){S.state.next({errors:{}});try{await e(a,i)}catch(l){o=l}}else t&&await t({...r.errors},i),le(),setTimeout(le);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},de=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e?h(e):d,o=h(i),a=O(e),l=a?d:o;if(n.keepDefaultValues||(d=i),!n.keepValues){if(n.keepDirtyValues)for(const e of x.mount)g(r.dirtyFields,e)?B(l,e,g(_,e)):Z(e,g(l,e));else{if(p&&m(e))for(const e of x.mount){const t=g(s,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(J(e)){const t=e.closest("form");if(t){t.reset();break}}}}s={}}_=t.shouldUnregister?n.keepDefaultValues?h(d):{}:h(l),S.array.next({values:{...l}}),S.values.next({values:{...l}})}x={mount:n.keepDirtyValues?x.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount=!C.isValid||!!n.keepIsValid||!!n.keepDirtyValues,w.watch=!!t.shouldUnregister,S.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!a&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||xe(e,d))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:a?[]:n.keepDirtyValues?n.keepDefaultValues&&_?Pe(d,_):r.dirtyFields:n.keepDefaultValues&&e?Pe(d,e):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},pe=(e,t)=>de(X(e)?e(_):e,t);return{control:{register:se,unregister:oe,getFieldState:re,handleSubmit:ue,setError:ie,_executeSchema:F,_getWatch:$,_getDirty:U,_updateValid:P,_removeUnmounted:()=>{for(const e of x.unMount){const t=g(s,e);t&&(t._f.refs?t._f.refs.every((e=>!Se(e))):!Se(t._f.ref))&&oe(e)}x.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(i&&n){if(w.action=!0,a&&Array.isArray(g(s,e))){const t=n(g(s,e),i.argA,i.argB);o&&B(s,e,t)}if(a&&Array.isArray(g(r.errors,e))){const t=n(g(r.errors,e),i.argA,i.argB);o&&B(r.errors,e,t),Ne(r.errors,e)}if(C.touchedFields&&a&&Array.isArray(g(r.touchedFields,e))){const t=n(g(r.touchedFields,e),i.argA,i.argB);o&&B(r.touchedFields,e,t)}C.dirtyFields&&(r.dirtyFields=Pe(d,_)),S.state.next({name:e,isDirty:U(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else B(_,e,t)},_updateDisabledField:ae,_getFieldArray:e=>f(g(w.mount?_:d,e,t.shouldUnregister?g(d,e,[]):[])),_reset:de,_resetDefaultValues:()=>X(n.defaultValues)&&n.defaultValues().then((e=>{pe(e,n.resetOptions),S.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{y(e)&&(S.state.next({disabled:e}),W(s,((t,n)=>{let r=e;const i=g(s,n);i&&y(i._f.disabled)&&(r||(r=i._f.disabled)),t.disabled=r}),0,!1))},_subjects:S,_proxyFormState:C,_setErrors:e=>{r.errors=e,S.state.next({errors:r.errors,isValid:!1})},get _fields(){return s},get _formValues(){return _},get _state(){return w},set _state(e){w=e},get _defaultValues(){return d},get _names(){return x},set _names(e){x=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:te,register:se,handleSubmit:ue,watch:(e,t)=>X(e)?S.values.subscribe({next:n=>e($(void 0,t),n)}):$(e,t,!0),setValue:Z,getValues:ne,reset:pe,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(s,e)&&(m(t.defaultValue)?Z(e,h(g(d,e))):(Z(e,t.defaultValue),B(d,e,h(t.defaultValue))),t.keepTouched||ye(r.touchedFields,e),t.keepDirty||(ye(r.dirtyFields,e),r.isDirty=t.defaultValue?U(e,h(g(d,e))):U()),t.keepError||(ye(r.errors,e),C.isValid&&P()),S.state.next({...r}))},clearErrors:e=>{e&&R(e).forEach((e=>ye(r.errors,e))),S.state.next({errors:e?r.errors:{}})},unregister:oe,setError:ie,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=g(s,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:re}}function Be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=r.useRef(),n=r.useRef(),[i,o]=r.useState({isDirty:!1,isValidating:!1,isLoading:X(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:X(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ze(e),formState:i});const a=t.current.control;return a._options=e,D({subject:a._subjects.state,next:e=>{L(e,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),r.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),r.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==i.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,i.isDirty]),r.useEffect((()=>{e.values&&!xe(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,o((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),r.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),r.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),r.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=I(i,a),t.current}},52466:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,BN:()=>N,DY:()=>f,J$:()=>Z,JG:()=>U,JN:()=>_,LI:()=>P,PM:()=>c,W6:()=>T,i_:()=>o,kY:()=>Y,ko:()=>J,kw:()=>E,mf:()=>l,o8:()=>s,qC:()=>L,s6:()=>X,sj:()=>A,u3:()=>j,u_:()=>$,w6:()=>M,xD:()=>Q});var r=n(18178);const i=()=>{},o=i(),a=Object,s=e=>e===o,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>l(e.then),d=new WeakMap;let p=0;const h=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(a(e)!==e||r||n==RegExp)i=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=d.get(e),i)return i;if(i=++p+"~",d.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=h(e[o])+",";d.set(e,i)}if(n==a){i="#";const t=a.keys(e).sort();for(;!s(o=t.pop());)s(e[o])||(i+=o+":"+h(e[o])+",");d.set(e,i)}}return i},f=new WeakMap,m={},g={},y="undefined",v=typeof window!=y,b=typeof document!=y,_=(e,t)=>{const n=f.get(e);return[()=>!s(t)&&e.get(t)||m,r=>{if(!s(t)){const i=e.get(t);t in g||(g[t]=i),n[5](t,c(i,r),i||m)}},n[6],()=>!s(t)&&t in g?g[t]:!s(t)&&e.get(t)||m]};let w=!0;const[x,k]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],C={isOnline:()=>w,isVisible:()=>{const e=b&&document.visibilityState;return s(e)||"hidden"!==e}},S={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),x("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),k("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return x("online",t),x("offline",n),()=>{k("online",t),k("offline",n)}}},M=!r.useId,T=!v||"Deno"in window,E=e=>v&&typeof window.requestAnimationFrame!=y?window.requestAnimationFrame(e):setTimeout(e,1),P=T?r.useEffect:r.useLayoutEffect,I="undefined"!==typeof navigator&&navigator.connection,O=!T&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),L=e=>{if(l(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?h(e):"",t]};let R=0;const j=()=>++R,D=2;var A={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:D,RECONNECT_EVENT:1};async function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,a,d]=t,p=c({populateCache:!0,throwOnError:!0},"boolean"===typeof d?{revalidate:d}:d||{});let h=p.populateCache;const m=p.rollbackOnError;let g=p.optimisticData;const y=p.throwOnError;if(l(i)){const e=i,t=[],n=r.keys();for(const i of n)!/^\$(inf|sub)\$/.test(i)&&e(r.get(i)._k)&&t.push(i);return Promise.all(t.map(v))}return v(i);async function v(e){const[n]=L(e);if(!n)return;const[i,c]=_(r,n),[d,v,b,w]=f.get(r),x=()=>{const t=d[n];return(l(p.revalidate)?p.revalidate(i().data,e):!1!==p.revalidate)&&(delete b[n],delete w[n],t&&t[0])?t[0](D).then((()=>i().data)):i().data};if(t.length<3)return x();let k,C=a;const S=j();v[n]=[S,0];const M=!s(g),T=i(),E=T.data,P=T._c,I=s(P)?E:P;if(M&&(g=l(g)?g(I,E):g,c({data:g,_c:I})),l(C))try{C=C(I)}catch(O){k=O}if(C&&u(C)){if(C=await C.catch((e=>{k=e})),S!==v[n][0]){if(k)throw k;return C}k&&M&&(e=>"function"===typeof m?m(e):!1!==m)(k)&&(h=!0,c({data:I,_c:o}))}if(h&&!k)if(l(h)){const e=h(C,I);c({data:e,error:o,_c:o})}else c({data:C,error:o,_c:o});if(v[n][1]=j(),Promise.resolve(x()).then((()=>{c({_c:o})})),!k)return C;if(y)throw k}}const F=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!f.has(e)){const n=c(S,t),r={},a=N.bind(o,e);let s=i;const l={},u=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const i=l[t];if(i)for(const e of i)e(n,r)},p=()=>{if(!f.has(e)&&(f.set(e,[r,{},{},{},a,d,u]),!T)){const t=n.initFocus(setTimeout.bind(o,F.bind(o,r,0))),i=n.initReconnect(setTimeout.bind(o,F.bind(o,r,1)));s=()=>{t&&t(),i&&i(),f.delete(e)}}};return p(),[e,a,p,s]}return[e,f.get(e)[4]]},[B,U]=z(new Map),$=c({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(o)&&a>o||setTimeout(r,l,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:O?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:O?5e3:3e3,compare:(e,t)=>h(e)==h(t),isPaused:()=>!1,cache:B,mutate:U,fallback:{}},C),V=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=c(i,a))}return n},q=(0,r.createContext)({}),Z=e=>{const{value:t}=e,n=(0,r.useContext)(q),i=l(t),a=(0,r.useMemo)((()=>i?t(n):t),[i,n,t]),s=(0,r.useMemo)((()=>i?a:V(n,a)),[i,n,a]),u=a&&a.provider,d=(0,r.useRef)(o);u&&!d.current&&(d.current=z(u(s.cache||B),a));const p=d.current;return p&&(s.cache=p[0],s.mutate=p[1]),P((()=>{if(p)return p[2]&&p[2](),p[3]}),[]),(0,r.createElement)(q.Provider,c(e,{value:s}))},H=v&&window.__SWR_DEVTOOLS_USE__,G=H?window.__SWR_DEVTOOLS_USE__:[],W=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>c($,(0,r.useContext)(q)),K=G.concat((e=>(t,n,r)=>e(t,n&&function(){const[e]=L(t),[,,,r]=f.get(B);if(e.startsWith("$inf$"))return n(...arguments);const i=r[e];return s(i)?n(...arguments):(delete r[e],i)},r))),X=e=>function(){const t=Y();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const[o,a,s]=W(r),l=V(t,s);let c=e;const{use:u}=l,d=(u||[]).concat(K);for(let e=d.length;e--;)c=d[e](c);return c(o,a||l.fetcher||null,l)},J=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q=(e,t)=>function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const[o,a,s]=W(r),l=(s.use||[]).concat(t);return e(o,a,{...s,use:l})};H&&(window.__SWR_DEVTOOLS_REACT__=r)},54697:(e,t,n)=>{"use strict";n.d(t,{J$:()=>l,JG:()=>o.JG,ZP:()=>c,kY:()=>o.kY});var r=n(18178),i=n(69030),o=n(52466);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},l=o.$l.defineProperty(o.J$,"defaultValue",{value:o.u_}),c=(0,o.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:g,keepPreviousData:y}=n,[v,b,_,w]=o.DY.get(l),[x,k]=(0,o.qC)(e),C=(0,r.useRef)(!1),S=(0,r.useRef)(!1),M=(0,r.useRef)(x),T=(0,r.useRef)(t),E=(0,r.useRef)(n),P=()=>E.current,I=()=>P().isVisible()&&P().isOnline(),[O,L,R,j]=(0,o.JN)(l,x),D=(0,r.useRef)({}).current,A=(0,o.o8)(d)?n.fallback[x]:d,N=(e,t)=>{for(const n in D){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,o.o8)(e[r]))return!1;if(!c(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},F=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,o.o8)(p)?!P().isPaused()&&!u&&(!!(0,o.o8)(h)||h):p),n=t=>{const n=(0,o.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),i=j(),a=n(r),s=r===i?a:n(i);let l=a;return[()=>{const e=n(O());return N(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,x]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>R(x,((t,n)=>{N(n,t)||e()}))),[l,x]),F[0],F[1]),B=!C.current,U=v[x]&&v[x].length>0,$=z.data,V=(0,o.o8)($)?A:$,q=z.error,Z=(0,r.useRef)(V),H=y?(0,o.o8)($)?Z.current:$:V,G=!(U&&!(0,o.o8)(q))&&(B&&!(0,o.o8)(p)?p:!P().isPaused()&&(u?!(0,o.o8)(V)&&h:(0,o.o8)(V)||h)),W=!!(x&&t&&B&&G),Y=(0,o.o8)(z.isValidating)?W:z.isValidating,K=(0,o.o8)(z.isLoading)?W:z.isLoading,X=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||S.current||P().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!_[x]||!s.dedupe,u=()=>o.w6?!S.current&&x===M.current&&C.current:x===M.current,d={isValidating:!1,isLoading:!1},p=()=>{L(d)},h=()=>{const e=_[x];e&&e[1]===i&&delete _[x]},f={isValidating:!0};(0,o.o8)(O().data)&&(f.isLoading=!0);try{if(l&&(L(f),n.loadingTimeout&&(0,o.o8)(O().data)&&setTimeout((()=>{a&&u()&&P().onLoadingSlow(x,n)}),n.loadingTimeout),_[x]=[t(k),(0,o.u3)()]),[r,i]=_[x],r=await r,l&&setTimeout(h,n.dedupingInterval),!_[x]||_[x][1]!==i)return l&&u()&&P().onDiscarded(x),!1;d.error=o.i_;const e=b[x];if(!(0,o.o8)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return p(),l&&u()&&P().onDiscarded(x),!1;const s=O().data;d.data=c(s,r)?s:r,l&&u()&&P().onSuccess(r,x,n)}catch(m){h();const e=P(),{shouldRetryOnError:t}=e;e.isPaused()||(d.error=m,l&&u()&&(e.onError(m,x,e),(!0===t||(0,o.mf)(t)&&t(m))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!I()||e.onErrorRetry(m,x,e,(e=>{const t=v[x];t&&t[0]&&t[0](o.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return a=!1,p(),!0}),[x,l]),J=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.BN)(l,M.current,...t)}),[]);if((0,o.LI)((()=>{T.current=t,E.current=n,(0,o.o8)($)||(Z.current=$)})),(0,o.LI)((()=>{if(!x)return;const e=X.bind(o.i_,s);let t=0;const n=(0,o.ko)(x,v,(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==o.sj.FOCUS_EVENT){const n=Date.now();P().revalidateOnFocus&&n>t&&I()&&(t=n+P().focusThrottleInterval,e())}else if(n==o.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&I()&&e();else{if(n==o.sj.MUTATE_EVENT)return X();if(n==o.sj.ERROR_REVALIDATE_EVENT)return X(r)}}));return S.current=!1,M.current=x,C.current=!0,L({_k:k}),G&&((0,o.o8)(V)||o.W6?e():(0,o.kw)(e)),()=>{S.current=!0,n()}}),[x]),(0,o.LI)((()=>{let e;function t(){const t=(0,o.mf)(f)?f(O().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!m&&!P().isVisible()||!g&&!P().isOnline()?t():X(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,m,g,x]),(0,r.useDebugValue)(H),u&&(0,o.o8)(V)&&x){if(!o.w6&&o.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,E.current=n,S.current=!1;const e=w[x];if(!(0,o.o8)(e)){const t=J(e);a(t)}if(!(0,o.o8)(q))throw q;{const e=X(s);(0,o.o8)(H)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:J,get data(){return D.data=!0,H},get error(){return D.error=!0,q},get isValidating(){return D.isValidating=!0,Y},get isLoading(){return D.isLoading=!0,K}}}))},10561:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(18178),i=n(69030),o=n(52466);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0};o.$l.defineProperty(o.J$,"defaultValue",{value:o.u_});const l=(0,o.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:g,keepPreviousData:y}=n,[v,b,_,w]=o.DY.get(l),[x,k]=(0,o.qC)(e),C=(0,r.useRef)(!1),S=(0,r.useRef)(!1),M=(0,r.useRef)(x),T=(0,r.useRef)(t),E=(0,r.useRef)(n),P=()=>E.current,I=()=>P().isVisible()&&P().isOnline(),[O,L,R,j]=(0,o.JN)(l,x),D=(0,r.useRef)({}).current,A=(0,o.o8)(d)?n.fallback[x]:d,N=(e,t)=>{for(const n in D){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,o.o8)(e[r]))return!1;if(!c(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},F=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,o.o8)(p)?!P().isPaused()&&!u&&(!!(0,o.o8)(h)||h):p),n=t=>{const n=(0,o.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),i=j(),a=n(r),s=r===i?a:n(i);let l=a;return[()=>{const e=n(O());return N(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,x]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>R(x,((t,n)=>{N(n,t)||e()}))),[l,x]),F[0],F[1]),B=!C.current,U=v[x]&&v[x].length>0,$=z.data,V=(0,o.o8)($)?A:$,q=z.error,Z=(0,r.useRef)(V),H=y?(0,o.o8)($)?Z.current:$:V,G=!(U&&!(0,o.o8)(q))&&(B&&!(0,o.o8)(p)?p:!P().isPaused()&&(u?!(0,o.o8)(V)&&h:(0,o.o8)(V)||h)),W=!!(x&&t&&B&&G),Y=(0,o.o8)(z.isValidating)?W:z.isValidating,K=(0,o.o8)(z.isLoading)?W:z.isLoading,X=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||S.current||P().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!_[x]||!s.dedupe,u=()=>o.w6?!S.current&&x===M.current&&C.current:x===M.current,d={isValidating:!1,isLoading:!1},p=()=>{L(d)},h=()=>{const e=_[x];e&&e[1]===i&&delete _[x]},f={isValidating:!0};(0,o.o8)(O().data)&&(f.isLoading=!0);try{if(l&&(L(f),n.loadingTimeout&&(0,o.o8)(O().data)&&setTimeout((()=>{a&&u()&&P().onLoadingSlow(x,n)}),n.loadingTimeout),_[x]=[t(k),(0,o.u3)()]),[r,i]=_[x],r=await r,l&&setTimeout(h,n.dedupingInterval),!_[x]||_[x][1]!==i)return l&&u()&&P().onDiscarded(x),!1;d.error=o.i_;const e=b[x];if(!(0,o.o8)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return p(),l&&u()&&P().onDiscarded(x),!1;const s=O().data;d.data=c(s,r)?s:r,l&&u()&&P().onSuccess(r,x,n)}catch(m){h();const e=P(),{shouldRetryOnError:t}=e;e.isPaused()||(d.error=m,l&&u()&&(e.onError(m,x,e),(!0===t||(0,o.mf)(t)&&t(m))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!I()||e.onErrorRetry(m,x,e,(e=>{const t=v[x];t&&t[0]&&t[0](o.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return a=!1,p(),!0}),[x,l]),J=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.BN)(l,M.current,...t)}),[]);if((0,o.LI)((()=>{T.current=t,E.current=n,(0,o.o8)($)||(Z.current=$)})),(0,o.LI)((()=>{if(!x)return;const e=X.bind(o.i_,s);let t=0;const n=(0,o.ko)(x,v,(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==o.sj.FOCUS_EVENT){const n=Date.now();P().revalidateOnFocus&&n>t&&I()&&(t=n+P().focusThrottleInterval,e())}else if(n==o.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&I()&&e();else{if(n==o.sj.MUTATE_EVENT)return X();if(n==o.sj.ERROR_REVALIDATE_EVENT)return X(r)}}));return S.current=!1,M.current=x,C.current=!0,L({_k:k}),G&&((0,o.o8)(V)||o.W6?e():(0,o.kw)(e)),()=>{S.current=!0,n()}}),[x]),(0,o.LI)((()=>{let e;function t(){const t=(0,o.mf)(f)?f(O().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!m&&!P().isVisible()||!g&&!P().isOnline()?t():X(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,m,g,x]),(0,r.useDebugValue)(H),u&&(0,o.o8)(V)&&x){if(!o.w6&&o.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,E.current=n,S.current=!1;const e=w[x];if(!(0,o.o8)(e)){const t=J(e);a(t)}if(!(0,o.o8)(q))throw q;{const e=X(s);(0,o.o8)(H)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:J,get data(){return D.data=!0,H},get error(){return D.error=!0,q},get isValidating(){return D.isValidating=!0,Y},get isLoading(){return D.isLoading=!0,K}}})),c=(0,o.xD)(l,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))))},55239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(18178),i=n(69030),o=n(52466);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0};o.$l.defineProperty(o.J$,"defaultValue",{value:o.u_});const l=(0,o.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:g,keepPreviousData:y}=n,[v,b,_,w]=o.DY.get(l),[x,k]=(0,o.qC)(e),C=(0,r.useRef)(!1),S=(0,r.useRef)(!1),M=(0,r.useRef)(x),T=(0,r.useRef)(t),E=(0,r.useRef)(n),P=()=>E.current,I=()=>P().isVisible()&&P().isOnline(),[O,L,R,j]=(0,o.JN)(l,x),D=(0,r.useRef)({}).current,A=(0,o.o8)(d)?n.fallback[x]:d,N=(e,t)=>{for(const n in D){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,o.o8)(e[r]))return!1;if(!c(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},F=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,o.o8)(p)?!P().isPaused()&&!u&&(!!(0,o.o8)(h)||h):p),n=t=>{const n=(0,o.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),i=j(),a=n(r),s=r===i?a:n(i);let l=a;return[()=>{const e=n(O());return N(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,x]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>R(x,((t,n)=>{N(n,t)||e()}))),[l,x]),F[0],F[1]),B=!C.current,U=v[x]&&v[x].length>0,$=z.data,V=(0,o.o8)($)?A:$,q=z.error,Z=(0,r.useRef)(V),H=y?(0,o.o8)($)?Z.current:$:V,G=!(U&&!(0,o.o8)(q))&&(B&&!(0,o.o8)(p)?p:!P().isPaused()&&(u?!(0,o.o8)(V)&&h:(0,o.o8)(V)||h)),W=!!(x&&t&&B&&G),Y=(0,o.o8)(z.isValidating)?W:z.isValidating,K=(0,o.o8)(z.isLoading)?W:z.isLoading,X=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||S.current||P().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!_[x]||!s.dedupe,u=()=>o.w6?!S.current&&x===M.current&&C.current:x===M.current,d={isValidating:!1,isLoading:!1},p=()=>{L(d)},h=()=>{const e=_[x];e&&e[1]===i&&delete _[x]},f={isValidating:!0};(0,o.o8)(O().data)&&(f.isLoading=!0);try{if(l&&(L(f),n.loadingTimeout&&(0,o.o8)(O().data)&&setTimeout((()=>{a&&u()&&P().onLoadingSlow(x,n)}),n.loadingTimeout),_[x]=[t(k),(0,o.u3)()]),[r,i]=_[x],r=await r,l&&setTimeout(h,n.dedupingInterval),!_[x]||_[x][1]!==i)return l&&u()&&P().onDiscarded(x),!1;d.error=o.i_;const e=b[x];if(!(0,o.o8)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return p(),l&&u()&&P().onDiscarded(x),!1;const s=O().data;d.data=c(s,r)?s:r,l&&u()&&P().onSuccess(r,x,n)}catch(m){h();const e=P(),{shouldRetryOnError:t}=e;e.isPaused()||(d.error=m,l&&u()&&(e.onError(m,x,e),(!0===t||(0,o.mf)(t)&&t(m))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!I()||e.onErrorRetry(m,x,e,(e=>{const t=v[x];t&&t[0]&&t[0](o.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return a=!1,p(),!0}),[x,l]),J=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.BN)(l,M.current,...t)}),[]);if((0,o.LI)((()=>{T.current=t,E.current=n,(0,o.o8)($)||(Z.current=$)})),(0,o.LI)((()=>{if(!x)return;const e=X.bind(o.i_,s);let t=0;const n=(0,o.ko)(x,v,(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==o.sj.FOCUS_EVENT){const n=Date.now();P().revalidateOnFocus&&n>t&&I()&&(t=n+P().focusThrottleInterval,e())}else if(n==o.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&I()&&e();else{if(n==o.sj.MUTATE_EVENT)return X();if(n==o.sj.ERROR_REVALIDATE_EVENT)return X(r)}}));return S.current=!1,M.current=x,C.current=!0,L({_k:k}),G&&((0,o.o8)(V)||o.W6?e():(0,o.kw)(e)),()=>{S.current=!0,n()}}),[x]),(0,o.LI)((()=>{let e;function t(){const t=(0,o.mf)(f)?f(O().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!m&&!P().isVisible()||!g&&!P().isOnline()?t():X(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,m,g,x]),(0,r.useDebugValue)(H),u&&(0,o.o8)(V)&&x){if(!o.w6&&o.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,E.current=n,S.current=!1;const e=w[x];if(!(0,o.o8)(e)){const t=J(e);a(t)}if(!(0,o.o8)(q))throw q;{const e=X(s);(0,o.o8)(H)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:J,get data(){return D.data=!0,H},get error(){return D.error=!0,q},get isValidating(){return D.isValidating=!0,Y},get isLoading(){return D.isLoading=!0,K}}})),c=o.w6?e=>{e()}:r.startTransition,u=(0,o.xD)(l,(()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{mutate:i}=(0,o.kY)(),a=(0,r.useRef)(e),s=(0,r.useRef)(t),l=(0,r.useRef)(n),u=(0,r.useRef)(0),[d,p,h]=(e=>{const[,t]=(0,r.useState)({}),n=(0,r.useRef)(!1),i=(0,r.useRef)(e),a=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),s=(0,r.useCallback)((e=>{let r=!1;const o=i.current;for(const t in e){const n=t;o[n]!==e[n]&&(o[n]=e[n],a.current[n]&&(r=!0))}r&&!n.current&&t({})}),[]);return(0,o.LI)((()=>(n.current=!1,()=>{n.current=!0}))),[i,a.current,s]})({data:o.i_,error:o.i_,isMutating:!1}),f=d.current,m=(0,r.useCallback)((async(e,t)=>{const[n,r]=(0,o.qC)(a.current);if(!s.current)throw new Error("Can\u2019t trigger the mutation: missing fetcher.");if(!n)throw new Error("Can\u2019t trigger the mutation: missing key.");const d=(0,o.PM)((0,o.PM)({populateCache:!1,throwOnError:!0},l.current),t),p=(0,o.u3)();u.current=p,h({isMutating:!0});try{const t=await i(n,s.current(r,{arg:e}),(0,o.PM)(d,{throwOnError:!0}));return u.current<=p&&(c((()=>h({data:t,isMutating:!1,error:void 0}))),null==d.onSuccess||d.onSuccess.call(d,t,n,d)),t}catch(f){if(u.current<=p&&(c((()=>h({error:f,isMutating:!1}))),null==d.onError||d.onError.call(d,f,n,d),d.throwOnError))throw f}}),[]),g=(0,r.useCallback)((()=>{u.current=(0,o.u3)(),h({data:o.i_,error:o.i_,isMutating:!1})}),[]);return(0,o.LI)((()=>{a.current=e,s.current=t,l.current=n})),{trigger:m,reset:g,get data(){return p.data=!0,f.data},get error(){return p.error=!0,f.error},get isMutating(){return p.isMutating=!0,f.isMutating}}}))},99073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},5836:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>j,__assign:()=>o,__asyncDelegator:()=>S,__asyncGenerator:()=>C,__asyncValues:()=>M,__await:()=>k,__awaiter:()=>f,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>L,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>A,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>I,__importStar:()=>P,__makeTemplateObject:()=>T,__metadata:()=>h,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>w,__values:()=>v,default:()=>N});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!==typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),p=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"===typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"===typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof k?Promise.resolve(e.value.v).then(l,c):u(o[0][2],e)}(i[e](t))}catch(n){u(o[0][3],n)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:k(e[r](t)),done:!1}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return E(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function L(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function R(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function j(e,t,n){if(null!==t&&void 0!==t){if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!==typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function A(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(o){t(o)}}if(e.hasError)throw e.error}()}const N={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:_,__spreadArrays:w,__spreadArray:x,__await:k,__asyncGenerator:C,__asyncDelegator:S,__asyncValues:M,__makeTemplateObject:T,__importStar:P,__importDefault:I,__classPrivateFieldGet:O,__classPrivateFieldSet:L,__classPrivateFieldIn:R,__addDisposableResource:j,__disposeResources:A}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.c=t,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{48:"ea05d40d",96:"92587bd8",125:"fee954db",160:"04ff5de0",361:"855229c0",381:"11c47c59",401:"43e9269a",449:"122c37e8",520:"eff83c97",525:"9f215b18",587:"79c0e20c",603:"e92b5df8",645:"52c539d2",653:"b4143a04",662:"390183f6",709:"7c095345",888:"eabed8d6",962:"3a37566a"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{125:"b3608d7b",520:"258726f0"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="flurosense-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,n,r,i)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,o.parentNode&&o.parentNode.removeChild(o),i(l)}},o.href=t,n?n.parentNode.insertBefore(o,n.nextSibling):document.head.appendChild(o)})(e,o,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{125:1,520:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkflurosense_ui=self.webpackChunkflurosense_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();n(n.s=97463)})();
//# sourceMappingURL=main.0dae915e.js.map